import{L as a}from"./index-ktJf6c6X.js";const t="purchase-return",s=a.injectEndpoints({endpoints:u=>({listPurchaseReturns:u.query({query:()=>({url:t,method:"GET"})}),getPurchaseReturnById:u.query({query:e=>({url:`${t}/${e}`,method:"GET"})}),listPurchaseReturnsByMrn:u.query({query:e=>({url:`${t}/mrn/${e}`,method:"GET"})}),createPurchaseReturn:u.mutation({query:({body:e})=>({url:t,method:"POST",body:e})}),updatePurchaseReturn:u.mutation({query:({body:e})=>({url:t,method:"PUT",body:e})}),deletePurchaseReturnDraft:u.mutation({query:e=>({url:`${t}/${e}`,method:"DELETE"})}),approvePurchaseReturn:u.mutation({query:({id:e})=>({url:`${t}/${e}/approve`,method:"POST"})}),submitPurchaseReturn:u.mutation({query:({id:e})=>({url:`${t}/${e}/submit`,method:"POST"})}),cancelPurchaseReturn:u.mutation({query:({id:e,body:r})=>({url:`${t}/${e}/cancel`,method:"POST",body:r})}),validatePurchaseReturn:u.mutation({query:({body:e})=>({url:`${t}/validate`,method:"POST",body:e})})}),overrideExisting:!1}),{useListPurchaseReturnsQuery:c,useLazyListPurchaseReturnsQuery:o,useGetPurchaseReturnByIdQuery:h,useLazyGetPurchaseReturnByIdQuery:P,useListPurchaseReturnsByMrnQuery:y,useLazyListPurchaseReturnsByMrnQuery:i,useCreatePurchaseReturnMutation:R,useUpdatePurchaseReturnMutation:m,useDeletePurchaseReturnDraftMutation:p,useApprovePurchaseReturnMutation:d,useSubmitPurchaseReturnMutation:q,useCancelPurchaseReturnMutation:$,useValidatePurchaseReturnMutation:l}=s;export{d as a,q as b,$ as c,p as d,i as e,P as f,R as g,m as h,h as i,c as u};
