"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.metadata=void 0;const query_1=require("@b/utils/query");exports.metadata={summary:"Bulk deletes exchange markets by IDs",operationId:"bulkDeleteExchangeMarkets",tags:["Admin","Exchange","Markets"],parameters:(0,query_1.commonBulkDeleteParams)("Exchange Markets"),requestBody:{required:!0,content:{"application/json":{schema:{type:"object",properties:{ids:{type:"array",items:{type:"string"},description:"Array of exchange market IDs to delete"}},required:["ids"]}}}},responses:(0,query_1.commonBulkDeleteResponses)("Exchange Markets"),requiresAuth:!0,permission:"delete.exchange.market",logModule:"ADMIN_FIN",logTitle:"Bulk Delete Exchange Markets"};exports.default=async e=>{const{body:t,query:r,ctx:s}=e,{ids:a}=t;null==s||s.step("Executing bulk delete");const o=await(0,query_1.handleBulkDelete)({model:"exchangeMarket",ids:a,query:r});null==s||s.success();return o};