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