Files
pearcord-platform/mixins/json-export/screen-json-mixin.js
T
Raven ScottandCursor a5dba86570 refactor(platform): organize mixins into category directories
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]>
2026-06-03 17:42:26 -04:00

35 lines
1.3 KiB
JavaScript

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