import{b8 as o,am as u}from"./index-DlNZgIG9.js";const s=o.injectEndpoints({endpoints:r=>({getOrderTracking:r.query({query:({orderId:e})=>({url:`order-tracking/${e}`,method:"GET",headers:{entityName:"Order"}})}),getJobCardTracking:r.query({query:({jobCardId:e})=>({url:`job-card-tracking/${encodeURIComponent(e)}`,method:"GET",headers:{entityName:"Job Card"}})})})}),{useLazyGetOrderTrackingQuery:m,useGetOrderTrackingQuery:O,useGetJobCardTrackingQuery:i,useLazyGetJobCardTrackingQuery:h}=s,y=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"}})}),rejectOrder:r.mutation({query:({id:e})=>({url:`order/${e}/reject`,method:"POST",headers:{entityName:"Order"}})}),startOrder:r.mutation({query:({id:e})=>({url:`order/${e}/start`,method:"POST",headers:{entityName:"Order"}})}),completeOrder:r.mutation({query:({id:e})=>({url:`order/${e}/complete`,method:"POST",headers:{entityName:"Order"}})}),markOrderProductsSentQty:r.mutation({query:({id:e,items:t})=>({url:`order/${e}/products-sent-qty`,method:"POST",body:t,headers:{entityName:"Order"}})}),getOrderPayments:r.query({query:({orderId:e})=>({url:`order/${e}/payments`,method:"GET",headers:{entityName:"Order"}}),keepUnusedDataFor:0}),addOrderPayment:r.mutation({query:({orderId:e,payment:t})=>({url:`order/${e}/payments`,method:"POST",body:t,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}),getOrderForReorder:r.query({query:({id:e})=>({url:`order/reorder/${e}`,method:"GET",headers:{entityName:"Order"}}),keepUnusedDataFor:0})})}),{useGetOrderDetailsByPageMutation:c,useLazyGetOrderByIdQuery:l,useGetOrderByIdQuery:p,useLazyGetOrderDetailsbyIdAllQuery:q,useGetOrderDetailsbyIdAllQuery:T,useSaveOrderDetailsMutation:g,useUpdateOrderDetailsMutation:G,useDeleteOrderMutation:P,useRejectOrderMutation:k,useStartOrderMutation:N,useCompleteOrderMutation:D,useMarkOrderProductsSentQtyMutation:Q,useCheckDuplicateOrderMutation:$,useLazyGetOrderFromQuotationQuery:E,useLazyGetOrderForReorderQuery:S,useLazyGetOrderPaymentsQuery:M,useGetOrderPaymentsQuery:C,useAddOrderPaymentMutation:z}=y;export{q as a,i as b,m as c,M as d,z as e,g as f,G as g,E as h,P as i,k as j,S as k,N as l,c as u};
