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]>
22 lines
804 B
JavaScript
22 lines
804 B
JavaScript
'use strict'
|
|
|
|
const { createJsonExportMeshMixin } = require('pearcord-json-export-mixin')
|
|
|
|
const webhookExecuteJsonMixin = createJsonExportMeshMixin({
|
|
keysField: '_webhookExecuteRegistryJsonGossipKeys',
|
|
watermarkField: '_webhookExecuteJsonHealWatermark',
|
|
initMethod: '_initWebhookExecuteJsonMixinState',
|
|
shouldGossipMethod: '_shouldGossipWebhookExecuteExportJson',
|
|
healMethod: '_healWebhookExecuteJsonExportCursorOnPartition',
|
|
spanKind: 'webhook.json',
|
|
healContext: 'heal.webhook',
|
|
countField: 'guildWebhookExecuteJsonCount',
|
|
bridgeKind: 'webhook.json',
|
|
listExportsMethod: 'listWebhookExecuteExportJsonExports',
|
|
extraSpanEnd: (rows) => ({
|
|
webhookCount: rows[0]?.webhookCount || 0
|
|
}),
|
|
})
|
|
|
|
module.exports = { webhookExecuteJsonMixin, webhookJsonMixin: webhookExecuteJsonMixin }
|