'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 }), }) webhookExecuteJsonMixin._healWebhookJsonExportCursorOnPartition = function _healWebhookJsonExportCursorOnPartition ( guildId ) { return this._healWebhookExecuteJsonExportCursorOnPartition(guildId) } module.exports = { webhookExecuteJsonMixin, webhookJsonMixin: webhookExecuteJsonMixin }