Move 136 prototype mixins under mixins/domain, json-export, and runtime/* so the package root stays navigable. Manifest assign order is unchanged; apply-platform-mixins and runtime registry paths updated. Co-authored-by: Cursor <[email protected]>
35 lines
1.3 KiB
JavaScript
35 lines
1.3 KiB
JavaScript
'use strict'
|
|
|
|
const { createJsonExportDualHealMixin } = require('pearcord-json-export-mixin')
|
|
|
|
const statusJsonMixin = createJsonExportDualHealMixin({
|
|
gossipEntries: [
|
|
{ method: '_shouldGossipCustomStatusRegistryJson', keysField: '_customStatusRegistryJsonGossipKeys', initMethod: '_initCustomStatusJsonMixinState' },
|
|
{ method: '_shouldGossipGuildWidgetExportJson', gossipHashPrefix: 'effective:', keysField: '_guildWidgetRegistryJsonGossipKeys', initMethod: '_initGuildWidgetJsonMixinState' },
|
|
],
|
|
heals: [
|
|
{
|
|
watermarkField: '_statusJsonHealWatermark',
|
|
shouldGossipMethod: '_shouldGossipCustomStatusRegistryJson',
|
|
healMethod: '_healCustomStatusExportCursorOnPartition',
|
|
spanKind: 'status.json',
|
|
healContext: 'heal.status',
|
|
countField: 'guildStatusJsonCount',
|
|
bridgeKind: 'status.json',
|
|
listExportsMethod: 'listCustomStatusJsonExports'
|
|
},
|
|
{
|
|
watermarkField: '_guildWidgetExportJsonHealWatermark',
|
|
shouldGossipMethod: '_shouldGossipGuildWidgetExportJson',
|
|
healMethod: '_healGuildWidgetExportCursorOnPartition',
|
|
spanKind: 'status.json',
|
|
healContext: 'heal.guild-widget',
|
|
countField: 'guildStatusJsonCount',
|
|
bridgeKind: 'status.json',
|
|
listExportsMethod: 'listGuildWidgetExportJsonExports'
|
|
}
|
|
]
|
|
})
|
|
|
|
module.exports = { statusJsonMixin }
|