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.EXPENSES,{params:n});return r},async get(n){let{data:r}=await e.get(`${t.EXPENSES}/${n}`);return r},async create(n){let{data:r}=await e.post(t.EXPENSES,n);return r},async update(n,r){let{data:i}=await e.post(`${t.EXPENSES}/${n}`,r);return i},async delete(n){let{data:r}=await e.post(t.EXPENSES_DELETE,n);return r},async showReceipt(n){let{data:r}=await e.get(`${t.EXPENSES}/${n}/show/receipt`,{responseType:`blob`});return r},async uploadReceipt(n,r){let{data:i}=await e.post(`${t.EXPENSES}/${n}/upload/receipts`,r);return i},async listCategories(n){let{data:r}=await e.get(t.CATEGORIES,{params:n});return r},async getCategory(n){let{data:r}=await e.get(`${t.CATEGORIES}/${n}`);return r},async createCategory(n){let{data:r}=await e.post(t.CATEGORIES,n);return r},async updateCategory(n,r){let{data:i}=await e.put(`${t.CATEGORIES}/${n}`,r);return i},async deleteCategory(n){let{data:r}=await e.delete(`${t.CATEGORIES}/${n}`);return r}};export{n as t};