"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 orders by IDs",operationId:"bulkDeleteExchangeOrders",tags:["Admin","Exchange Orders"],parameters:(0,query_1.commonBulkDeleteParams)("Exchange Orders"),requestBody:{required:!0,content:{"application/json":{schema:{type:"object",properties:{ids:{type:"array",items:{type:"string"},description:"Array of exchange order IDs to delete"}},required:["ids"]}}}},responses:(0,query_1.commonBulkDeleteResponses)("Exchange Orders"),requiresAuth:!0,permission:"delete.exchange.order",logModule:"ADMIN_FIN",logTitle:"Bulk Delete Exchange Orders"};exports.default=async e=>{const{body:r,query:s,ctx:t}=e,{ids:o}=r;null==t||t.step("Delete Exchange Orders...");const a=await(0,query_1.handleBulkDelete)({model:"exchangeOrder",ids:o,query:s});null==t||t.success("Bulk Delete Exchange Orders completed successfully");return a};