'use strict' const { createJsonExportDualHealMixin } = require('pearcord-json-export-mixin') const pollJsonMixin = createJsonExportDualHealMixin({ gossipEntries: [ { method: '_shouldGossipPollRegistryJson', keysField: '_pollRegistryJsonGossipKeys', initMethod: '_initPollRegistryJsonMixinState' }, { method: '_shouldGossipScheduledMessageExportJson', gossipHashPrefix: 'effective:', keysField: '_scheduledMessageRegistryJsonGossipKeys', initMethod: '_initScheduledMessageJsonMixinState' }, ], heals: [ { watermarkField: '_pollJsonHealWatermark', shouldGossipMethod: '_shouldGossipPollRegistryJson', healMethod: '_healPollRegistryExportCursorOnPartition', spanKind: 'poll.json', healContext: 'heal.poll', countField: 'guildPollJsonCount', bridgeKind: 'poll.json', listExportsMethod: 'listPollRegistryJsonExports' }, { watermarkField: '_scheduledMessageJsonHealWatermark', shouldGossipMethod: '_shouldGossipScheduledMessageExportJson', healMethod: '_healScheduledMessageExportCursorOnPartition', spanKind: 'poll.json', healContext: 'heal.schedule', countField: 'guildPollJsonCount', bridgeKind: 'poll.json', listExportsMethod: 'listScheduledMessageExportJsonExports' } ] }) module.exports = { pollJsonMixin }