import{g3 as t}from"./index-DdWwwZXu.js";import{a as e}from"./vendor-utils-BveVE6Uf.js";const d=()=>({addAccountingPersonAsync:async n=>(n.firstName=t(n.firstName),n.lastName=t(n.lastName),(await e.post("AccountingPerson/AddAccountingPerson",n)).data),getAccountingPersonsAsync:async n=>(await e.get("AccountingPerson/GetAccountingPersons",{params:n})).data,getAccountingPersonByIdAsync:async n=>(await e.get(`AccountingPerson/GetAccountingPersonById/${n}`)).data,updateAccountingPersonAsync:async n=>(n.firstName=t(n.firstName),n.lastName=t(n.lastName),(await e.put(`AccountingPerson/UpdateAccountingPerson/${n.id}`,n)).data),deleteAccountingAsync:async n=>(await e.delete(`AccountingPerson/DeleteAccountingPerson/${n}`)).data,getPersonTypesAsync:async()=>(await e.get("AccountingPerson/GetPersonTypes")).data,getBaseTypesAsync:async()=>(await e.get("AccountingPerson/GetBaseTypes")).data,getSubTypesAsync:async()=>(await e.get("AccountingPerson/GetSubTypes")).data});export{d as a};
