import{al as e}from"./index-ktJf6c6X.js";const n=e.injectEndpoints({endpoints:o=>({saveCostEstimation:o.mutation({query:t=>({url:"cost-estimation",method:"POST",body:t})}),updateCostEstimation:o.mutation({query:t=>({url:"cost-estimation",method:"PUT",body:t})}),getCostEstimationById:o.query({query:t=>`cost-estimation/${t}`}),getAllCostEstimations:o.query({query:()=>"cost-estimation"}),deleteCostEstimation:o.mutation({query:t=>({url:`cost-estimation/${t}`,method:"DELETE"})}),searchCostEstimationByCriteria:o.mutation({query:({criteria:t,page:s,size:i,includeCounts:a})=>({url:`cost-estimation/search-by-criteria?page=${s}&size=${i}${a?"&includeCounts=true":""}`,method:"POST",body:t})}),linkCostEstimationQuotation:o.mutation({query:({costEstimationId:t,...s})=>({url:`cost-estimation/${t}/link-quotation`,method:"POST",body:s})}),approveCostEstimation:o.mutation({query:t=>({url:`cost-estimation/${t}/approve`,method:"POST"})}),rejectCostEstimation:o.mutation({query:t=>({url:`cost-estimation/${t}/reject`,method:"POST"})})}),overrideExisting:!1}),{useSaveCostEstimationMutation:u,useUpdateCostEstimationMutation:r,useGetCostEstimationByIdQuery:E,useLazyGetCostEstimationByIdQuery:C,useGetAllCostEstimationsQuery:c,useDeleteCostEstimationMutation:y,useSearchCostEstimationByCriteriaMutation:p,useLinkCostEstimationQuotationMutation:q,useApproveCostEstimationMutation:d,useRejectCostEstimationMutation:h}=n;export{c as a,d as b,h as c,u as d,r as e,p as f,y as g,E as h,q as i,C as u};
