import{_ as u}from"./index-BiWH3VAt.js";const o=u.injectEndpoints({endpoints:r=>({getOrderDetailsByPage:r.mutation({query:({page:e,size:t,searchByName:a,includeCounts:d})=>({url:`order/search-by-criteria?page=${e}&size=${t}${d===!1?"&includeCounts=false":""}`,method:"POST",body:a,headers:{entityName:"Order"}})}),getOrderById:r.query({query:({orderId:e})=>({url:`order/${e}`,method:"GET",headers:{entityName:"Order"}})}),getOrderDetailsbyIdAll:r.query({query:({id:e})=>({url:`order/full/${e}`,method:"GET",headers:{entityName:"Order"}})}),saveOrderDetails:r.mutation({query:({order:e})=>({url:"order",method:"POST",body:e,headers:{entityName:"Order"}})}),updateOrderDetails:r.mutation({query:({order:e})=>({url:"order",method:"PUT",body:e,headers:{entityName:"Order"}})}),deleteOrder:r.mutation({query:({id:e})=>({url:`order/${e}`,method:"DELETE",headers:{entityName:"Order"}})}),checkDuplicateOrder:r.mutation({query:({check:e})=>({url:"order/dup",method:"POST",body:e,headers:{entityName:"Order"}})}),getOrderFromQuotation:r.query({query:({quotationId:e})=>({url:`order/from-quotation/${e}`,method:"GET",headers:{entityName:"Order"}}),keepUnusedDataFor:0})})}),{useGetOrderDetailsByPageMutation:y,useLazyGetOrderByIdQuery:i,useGetOrderByIdQuery:n,useLazyGetOrderDetailsbyIdAllQuery:O,useGetOrderDetailsbyIdAllQuery:m,useSaveOrderDetailsMutation:l,useUpdateOrderDetailsMutation:h,useDeleteOrderMutation:D,useCheckDuplicateOrderMutation:p,useLazyGetOrderFromQuotationQuery:c}=o;export{h as a,c as b,O as c,y as d,D as e,l as u};
