"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.metadata=void 0;const query_1=require("@b/utils/query");exports.metadata={summary:"Bulk deletes investment plans by IDs",operationId:"bulkDeleteInvestmentPlans",tags:["Admin","Investment Plans"],logModule:"ADMIN_FIN",logTitle:"Bulk Delete Investment Plans",parameters:(0,query_1.commonBulkDeleteParams)("Investment Plans"),requestBody:{required:!0,content:{"application/json":{schema:{type:"object",properties:{ids:{type:"array",items:{type:"string"},description:"Array of investment plan IDs to delete"}},required:["ids"]}}}},responses:(0,query_1.commonBulkDeleteResponses)("Investment Plans"),requiresAuth:!0,permission:"delete.investment.plan"};exports.default=async e=>{const{body:t,query:s,ctx:n}=e,{ids:l}=t;null==n||n.step("Deleting investment plans");const r=await(0,query_1.handleBulkDelete)({model:"investmentPlan",ids:l,query:s});null==n||n.success("Investment plans deleted successfully");return r};