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 voiceJsonMixin = createJsonExportDualHealMixin({
|
|
gossipEntries: [
|
|
{ method: '_shouldGossipVoiceRegistryJson', keysField: '_voiceRegistryJsonGossipKeys', initMethod: '_initVoiceJsonMixinState' },
|
|
{ method: '_shouldGossipBoostLedgerExportJson', gossipHashPrefix: 'effective:', keysField: '_boostLedgerRegistryJsonGossipKeys', initMethod: '_initBoostLedgerJsonMixinState' },
|
|
],
|
|
heals: [
|
|
{
|
|
watermarkField: '_voiceJsonHealWatermark',
|
|
shouldGossipMethod: '_shouldGossipVoiceRegistryJson',
|
|
healMethod: '_healVoiceStateExportCursorOnPartition',
|
|
spanKind: 'voice.json',
|
|
healContext: 'heal.voice',
|
|
countField: 'guildVoiceJsonCount',
|
|
bridgeKind: 'voice.json',
|
|
listExportsMethod: 'listVoiceStateJsonExports'
|
|
},
|
|
{
|
|
watermarkField: '_boostLedgerExportJsonHealWatermark',
|
|
shouldGossipMethod: '_shouldGossipBoostLedgerExportJson',
|
|
healMethod: '_healBoostLedgerExportCursorOnPartition',
|
|
spanKind: 'voice.json',
|
|
healContext: 'heal.boost',
|
|
countField: 'guildVoiceJsonCount',
|
|
bridgeKind: 'voice.json',
|
|
listExportsMethod: 'listBoostLedgerExportJsonExports'
|
|
}
|
|
]
|
|
})
|
|
|
|
module.exports = { voiceJsonMixin }
|