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 activityJsonMixin = createJsonExportDualHealMixin({
|
|
gossipEntries: [
|
|
{ method: '_shouldGossipActivityInviteRegistryJson', keysField: '_activityInviteRegistryJsonGossipKeys', initMethod: '_initActivityInviteJsonMixinState' },
|
|
{ method: '_shouldGossipProfileBannerExportJson', gossipHashPrefix: 'effective:', keysField: '_profileBannerRegistryJsonGossipKeys', initMethod: '_initProfileBannerJsonMixinState' },
|
|
],
|
|
heals: [
|
|
{
|
|
watermarkField: '_activityJsonHealWatermark',
|
|
shouldGossipMethod: '_shouldGossipActivityInviteRegistryJson',
|
|
healMethod: '_healActivityInviteExportCursorOnPartition',
|
|
spanKind: 'activity.json',
|
|
healContext: 'heal.activity',
|
|
countField: 'guildActivityJsonCount',
|
|
bridgeKind: 'activity.json',
|
|
listExportsMethod: 'listActivityInviteJsonExports'
|
|
},
|
|
{
|
|
watermarkField: '_profileBannerExportJsonHealWatermark',
|
|
shouldGossipMethod: '_shouldGossipProfileBannerExportJson',
|
|
healMethod: '_healProfileBannerExportCursorOnPartition',
|
|
spanKind: 'activity.json',
|
|
healContext: 'heal.profile-banner',
|
|
countField: 'guildActivityJsonCount',
|
|
bridgeKind: 'activity.json',
|
|
listExportsMethod: 'listProfileBannerExportJsonExports'
|
|
}
|
|
]
|
|
})
|
|
|
|
module.exports = { activityJsonMixin }
|