import{E as n}from"./index-DPtT_PqD.js";const s={async summary(a,t){const{data:c}=await n.get("/accounting/summary",{params:{start_date:a,end_date:t}});return c.data},async categories(a="active"){const{data:t}=await n.get("/accounting/expense-categories",{params:{status:a}});return t.data},async createCategory(a){const{data:t}=await n.post("/accounting/expense-categories",a);return t.data},async updateCategory(a,t){const{data:c}=await n.patch(`/accounting/expense-categories/${a.id}`,t);return c.data},async accounts(a="active"){const{data:t}=await n.get("/accounting/accounts",{params:{status:a}});return t.data},async createAccount(a){const{data:t}=await n.post("/accounting/accounts",a);return t.data},async updateAccount(a,t){const{data:c}=await n.patch(`/accounting/accounts/${a.id}`,t);return c.data},async transactions(a={}){const{data:t}=await n.get("/accounting/transactions",{params:a});return t.data},async exportTransactionsCsv(a={}){const{data:t}=await n.get("/accounting/transactions/export/csv",{params:a,responseType:"blob"});return t},async createTransaction(a){const{data:t}=await n.post("/accounting/transactions",a);return t.data},async createTransfer(a){const{data:t}=await n.post("/accounting/transfers",a);return t.data},async expenses(a={}){const{data:t}=await n.get("/accounting/expenses",{params:a});return t.data},async exportExpensesCsv(a={}){const{data:t}=await n.get("/accounting/expenses/export/csv",{params:a,responseType:"blob"});return t},async createExpense(a){const{data:t}=await n.post("/accounting/expenses",a);return t.data},async updateExpense(a,t){const{data:c}=await n.patch(`/accounting/expenses/${a.id}`,t);return c.data}};export{s as a};
