import{t as e}from"./client-hbcFGf8j.js";import{t}from"./endpoints-Bdye5CiX.js";var n={async list(n){let{data:r}=await e.get(t.INVOICES,{params:n});return r},async get(n){let{data:r}=await e.get(`${t.INVOICES}/${n}`);return r},async create(n){let{data:r}=await e.post(t.INVOICES,n);return r},async update(n,r){let{data:i}=await e.put(`${t.INVOICES}/${n}`,r);return i},async delete(n){let{data:r}=await e.post(t.INVOICES_DELETE,n);return r},async send(n){let{data:r}=await e.post(`${t.INVOICES}/${n.id}/send`,n);return r},async sendPreview(n){let{data:r}=await e.get(`${t.INVOICES}/${n.id}/send/preview`,{params:n});return r},async clone(n){let{data:r}=await e.post(`${t.INVOICES}/${n}/clone`);return r},async convertToEstimate(n){let{data:r}=await e.post(`${t.INVOICES}/${n}/convert-to-estimate`);return r},async changeStatus(n){let{data:r}=await e.post(`${t.INVOICES}/${n.id}/status`,n);return r},async getNextNumber(n){let{data:r}=await e.get(t.NEXT_NUMBER,{params:{key:`invoice`,...n}});return r},async getTemplates(){let{data:n}=await e.get(t.INVOICE_TEMPLATES);return n}};export{n as t};