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]>
32 lines
950 B
JavaScript
32 lines
950 B
JavaScript
'use strict'
|
|
|
|
const { createJsonExportHealDelegateMixin } = require('pearcord-json-export-mixin')
|
|
|
|
const permissionJsonMixin = createJsonExportHealDelegateMixin({
|
|
gossipEntries: [
|
|
{
|
|
method: '_shouldGossipRoleOverrideJson',
|
|
keysField: '_roleOverrideRegistryJsonGossipKeys',
|
|
initMethod: '_initRoleOverrideJsonMixinState'
|
|
},
|
|
{
|
|
method: '_shouldGossipEffectivePermissionExportJson',
|
|
gossipHashPrefix: 'effective:',
|
|
keysField: '_effectivePermissionRegistryJsonGossipKeys',
|
|
initMethod: '_initEffectivePermissionJsonMixinState'
|
|
}
|
|
],
|
|
delegates: [
|
|
{
|
|
legacyHeal: '_healRoleOverrideExportCursorOnPartition',
|
|
dedicatedHeal: '_healRoleOverrideJsonExportCursorOnPartition'
|
|
},
|
|
{
|
|
legacyHeal: '_healEffectivePermissionExportCursorOnPartition',
|
|
dedicatedHeal: '_healEffectivePermissionJsonExportCursorOnPartition'
|
|
}
|
|
]
|
|
})
|
|
|
|
module.exports = { permissionJsonMixin }
|