'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 }