"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.metadata=void 0;const query_1=require("@b/utils/query");exports.metadata={summary:"Deletes an exchange order",operationId:"deleteExchangeOrder",tags:["Admin","Exchange Order"],parameters:(0,query_1.deleteRecordParams)("exchange order"),responses:(0,query_1.deleteRecordResponses)("Exchange Order"),requiresAuth:!0,permission:"delete.exchange.order",logModule:"ADMIN_FIN",logTitle:"Delete Exchange Order"};exports.default=async e=>{const{params:r,query:t,ctx:a}=e;return(0,query_1.handleSingleDelete)({model:"exchangeOrder",id:r.id,query:t})};