'use strict' const { createJsonExportDualHealMixin } = require('pearcord-json-export-mixin') const screenJsonMixin = createJsonExportDualHealMixin({ gossipEntries: [ { method: '_shouldGossipScreenRegistryJson', keysField: '_screenRegistryJsonGossipKeys', initMethod: '_initScreenJsonMixinState' }, { method: '_shouldGossipSoundboardRegistryExportJson', gossipHashPrefix: 'effective:', keysField: '_soundboardRegistryJsonGossipKeys', initMethod: '_initSoundboardRegistryJsonMixinState' }, ], heals: [ { watermarkField: '_screenJsonHealWatermark', shouldGossipMethod: '_shouldGossipScreenRegistryJson', healMethod: '_healScreenShareExportCursorOnPartition', spanKind: 'screen.json', healContext: 'heal.screen', countField: 'guildScreenJsonCount', bridgeKind: 'screen.json', listExportsMethod: 'listScreenShareJsonExports' }, { watermarkField: '_soundboardRegistryExportJsonHealWatermark', shouldGossipMethod: '_shouldGossipSoundboardRegistryExportJson', healMethod: '_healSoundboardRegistryExportCursorOnPartition', spanKind: 'screen.json', healContext: 'heal.soundboard', countField: 'guildScreenJsonCount', bridgeKind: 'screen.json', listExportsMethod: 'listSoundboardRegistryExportJsonExports' } ] }) module.exports = { screenJsonMixin }