import{st as e}from"./index-Bo9BrBsx.js";const t={getAll:t=>e.get(`/api/dispatch/plans/`,{params:t}).then(e=>e.data),getById:t=>e.get(`/api/dispatch/plans/${t}/`).then(e=>e.data),create:t=>e.post(`/api/dispatch/plans/`,t).then(e=>e.data),update:(t,n)=>e.put(`/api/dispatch/plans/${t}/`,n).then(e=>e.data),delete:t=>e.delete(`/api/dispatch/plans/${t}/`).then(e=>e.data),getAvailableOrders:t=>e.post(`/api/dispatch/available-orders/`,t).then(e=>e.data),getStatusCount:async()=>(await e.get(`/api/dispatch/dispatchplan/status-count/`)).data,uploadAttachment:(t,n,r)=>{let i=new FormData;return i.append(r.toLowerCase(),n),e.post(`/api/dispatch/${t}/attachments/`,i).then(e=>e.data)},generateDispatchNumber:t=>e.get(`/api/dispatch/generate-number/`,{params:{location:t}}).then(e=>e.data)};export{t};