import{b9 as o,al as u}from"./index-ktJf6c6X.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:i,useGetOrderTrackingQuery:O,useGetJobCardTrackingQuery:m,useLazyGetJobCardTrackingQuery:c}=s,n=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"}})}),syncOrderSentQty:r.mutation({query:({id:e,items:t})=>({url:`order/${e}/sync-sent-qty`,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:h,useLazyGetOrderByIdQuery:l,useGetOrderByIdQuery:q,useLazyGetOrderDetailsbyIdAllQuery:p,useGetOrderDetailsbyIdAllQuery:T,useSaveOrderDetailsMutation:g,useUpdateOrderDetailsMutation:G,useDeleteOrderMutation:k,useRejectOrderMutation:N,useStartOrderMutation:Q,useCompleteOrderMutation:D,useMarkOrderProductsSentQtyMutation:P,useSyncOrderSentQtyMutation:S,useCheckDuplicateOrderMutation:$,useLazyGetOrderFromQuotationQuery:E,useLazyGetOrderForReorderQuery:M}=n;export{g as a,G as b,E as c,p as d,h as e,k as f,N as g,M as h,Q as i,S as j,m as k,i as u};
