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.3 KiB
JavaScript
35 lines
1.3 KiB
JavaScript
'use strict'
|
|
|
|
const { createJsonExportDualHealMixin } = require('pearcord-json-export-mixin')
|
|
|
|
const banJsonMixin = createJsonExportDualHealMixin({
|
|
gossipEntries: [
|
|
{ method: '_shouldGossipBanRegistryJson', keysField: '_banRegistryJsonGossipKeys', initMethod: '_initBanRegistryJsonMixinState' },
|
|
{ method: '_shouldGossipAutomodRuleExportJson', gossipHashPrefix: 'effective:', keysField: '_automodRuleRegistryJsonGossipKeys', initMethod: '_initAutomodRuleJsonMixinState' },
|
|
],
|
|
heals: [
|
|
{
|
|
watermarkField: '_banJsonHealWatermark',
|
|
shouldGossipMethod: '_shouldGossipBanRegistryJson',
|
|
healMethod: '_healBanRegistryExportCursorOnPartition',
|
|
spanKind: 'ban.json',
|
|
healContext: 'heal.ban',
|
|
countField: 'guildBanJsonCount',
|
|
bridgeKind: 'ban.json',
|
|
listExportsMethod: 'listBanRegistryJsonExports'
|
|
},
|
|
{
|
|
watermarkField: '_automodRuleJsonHealWatermark',
|
|
shouldGossipMethod: '_shouldGossipAutomodRuleExportJson',
|
|
healMethod: '_healAutomodRuleExportCursorOnPartition',
|
|
spanKind: 'ban.json',
|
|
healContext: 'heal.automod',
|
|
countField: 'guildBanJsonCount',
|
|
bridgeKind: 'ban.json',
|
|
listExportsMethod: 'listAutomodRuleExportJsonExports'
|
|
}
|
|
]
|
|
})
|
|
|
|
module.exports = { banJsonMixin }
|