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]>
35 lines
1.4 KiB
JavaScript
35 lines
1.4 KiB
JavaScript
'use strict'
|
|
|
|
const { createJsonExportDualHealMixin } = require('pearcord-json-export-mixin')
|
|
|
|
const sessionJsonMixin = createJsonExportDualHealMixin({
|
|
gossipEntries: [
|
|
{ method: '_shouldGossipSessionActivityRegistryJson', keysField: '_sessionActivityRegistryJsonGossipKeys', initMethod: '_initSessionActivityJsonMixinState' },
|
|
{ method: '_shouldGossipAvatarDecorationExportJson', gossipHashPrefix: 'effective:', keysField: '_avatarDecorationRegistryJsonGossipKeys', initMethod: '_initAvatarDecorationJsonMixinState' },
|
|
],
|
|
heals: [
|
|
{
|
|
watermarkField: '_sessionJsonHealWatermark',
|
|
shouldGossipMethod: '_shouldGossipSessionActivityRegistryJson',
|
|
healMethod: '_healSessionActivityExportCursorOnPartition',
|
|
spanKind: 'session.json',
|
|
healContext: 'heal.session',
|
|
countField: 'guildSessionJsonCount',
|
|
bridgeKind: 'session.json',
|
|
listExportsMethod: 'listSessionActivityJsonExports'
|
|
},
|
|
{
|
|
watermarkField: '_avatarDecorationExportJsonHealWatermark',
|
|
shouldGossipMethod: '_shouldGossipAvatarDecorationExportJson',
|
|
healMethod: '_healAvatarDecorationExportCursorOnPartition',
|
|
spanKind: 'session.json',
|
|
healContext: 'heal.avatar-decoration',
|
|
countField: 'guildSessionJsonCount',
|
|
bridgeKind: 'session.json',
|
|
listExportsMethod: 'listAvatarDecorationExportJsonExports'
|
|
}
|
|
]
|
|
})
|
|
|
|
module.exports = { sessionJsonMixin }
|