Files
pearcord-platform/mixins/json-export/notification-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.4 KiB
JavaScript

'use strict'
const { createJsonExportDualHealMixin } = require('pearcord-json-export-mixin')
const notificationJsonMixin = createJsonExportDualHealMixin({
gossipEntries: [
{ method: '_shouldGossipNotificationRegistryJson', keysField: '_notificationRegistryJsonGossipKeys', initMethod: '_initNotificationJsonMixinState' },
{ method: '_shouldGossipChannelFollowExportJson', gossipHashPrefix: 'effective:', keysField: '_channelFollowRegistryJsonGossipKeys', initMethod: '_initChannelFollowJsonMixinState' },
],
heals: [
{
watermarkField: '_notificationJsonHealWatermark',
shouldGossipMethod: '_shouldGossipNotificationRegistryJson',
healMethod: '_healNotificationOverrideExportCursorOnPartition',
spanKind: 'notification.json',
healContext: 'heal.notification',
countField: 'guildNotificationJsonCount',
bridgeKind: 'notification.json',
listExportsMethod: 'listNotificationOverrideJsonExports'
},
{
watermarkField: '_channelFollowExportJsonHealWatermark',
shouldGossipMethod: '_shouldGossipChannelFollowExportJson',
healMethod: '_healChannelFollowExportCursorOnPartition',
spanKind: 'notification.json',
healContext: 'heal.channel-follow',
countField: 'guildNotificationJsonCount',
bridgeKind: 'notification.json',
listExportsMethod: 'listChannelFollowExportJsonExports'
}
]
})
module.exports = { notificationJsonMixin }