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]>
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
'use strict'
|
||||
|
||||
const { createJsonExportDualHealMixin } = require('pearcord-json-export-mixin')
|
||||
|
||||
const presenceJsonMixin = createJsonExportDualHealMixin({
|
||||
gossipEntries: [
|
||||
{ method: '_shouldGossipPresenceRegistryJson', keysField: '_presenceRegistryJsonGossipKeys', initMethod: '_initPresenceJsonMixinState' },
|
||||
{ method: '_shouldGossipReadStateExportJson', gossipHashPrefix: 'effective:', keysField: '_readStateRegistryJsonGossipKeys', initMethod: '_initReadStateJsonMixinState' },
|
||||
],
|
||||
heals: [
|
||||
{
|
||||
watermarkField: '_presenceJsonHealWatermark',
|
||||
shouldGossipMethod: '_shouldGossipPresenceRegistryJson',
|
||||
healMethod: '_healPresenceActivityExportCursorOnPartition',
|
||||
spanKind: 'presence.json',
|
||||
healContext: 'heal.presence',
|
||||
countField: 'guildPresenceJsonCount',
|
||||
bridgeKind: 'presence.json',
|
||||
listExportsMethod: 'listPresenceActivityJsonExports'
|
||||
},
|
||||
{
|
||||
watermarkField: '_readStateExportJsonHealWatermark',
|
||||
shouldGossipMethod: '_shouldGossipReadStateExportJson',
|
||||
healMethod: '_healReadStateExportCursorOnPartition',
|
||||
spanKind: 'presence.json',
|
||||
healContext: 'heal.read-state',
|
||||
countField: 'guildPresenceJsonCount',
|
||||
bridgeKind: 'presence.json',
|
||||
listExportsMethod: 'listReadStateExportJsonExports'
|
||||
}
|
||||
]
|
||||
})
|
||||
|
||||
module.exports = { presenceJsonMixin }
|
||||
Reference in New Issue
Block a user