'use strict' const { createJsonExportDualHealMixin } = require('pearcord-json-export-mixin') const notificationJsonMixin = createJsonExportDualHealMixin({ gossipEntries: [ { method: '_shouldGossipNotificationRegistryJson', keysField: '_notificationRegistryJsonGossipKeys', initMethod: '_initNotificationJsonMixinState' }, { method: '_shouldGossipChannelFollowExportJson', gossipHashPrefix: 'effective:', keysField: '_channelFollowRegistryJsonGossipKeys', initMethod: '_initChannelFollowJsonMixinState' }, ], heals: [ { watermarkField: '_notificationJsonHealWatermark', shouldGossipMethod: '_shouldGossipNotificationRegistryJson', healMethod: '_healNotificationOverrideExportCursorOnPartition', spanKind: 'notification.json', healContext: 'heal.notification', countField: 'guildNotificationJsonCount', bridgeKind: 'notification.json', listExportsMethod: 'listNotificationOverrideJsonExports' }, { watermarkField: '_channelFollowExportJsonHealWatermark', shouldGossipMethod: '_shouldGossipChannelFollowExportJson', healMethod: '_healChannelFollowExportCursorOnPartition', spanKind: 'notification.json', healContext: 'heal.channel-follow', countField: 'guildNotificationJsonCount', bridgeKind: 'notification.json', listExportsMethod: 'listChannelFollowExportJsonExports' } ] }) module.exports = { notificationJsonMixin }