import{a as r}from"./chunk-E65DJUZB.js";import{f as o}from"./chunk-IQZCMWOL.js";import{da as c,ja as n}from"./chunk-AO7NUUXN.js";import{a}from"./chunk-K4ALXBGI.js";var h=(()=>{class e{constructor(t){this._http=t,this._defaultFilter={criteria:null,take:100,skip:0,orderBy:"id",isAscending:!0}}getAccounts(t=this._defaultFilter){return this._http.post("/api/account/all",a({},t),{headers:r})}getAccount(t){return this._http.get(`/api/account/${t}`)}create(t){return this._http.post("/api/account",t)}edit(t,i){return this._http.put(`/api/account/${t}`,i)}operations(t){return this._http.post(`/api/account/${t}/operations`,{})}getAllAccountOperations(t,i){return this._http.post(`/api/account/${t}/operations`,a({},i),{headers:r})}getAccountOperationByOperationId(t){return this._http.get(`/api/account-operation/${t}`)}getDefaultCashAccount(t){return this._http.get(`/api/account/${t}/default-cash-account`)}syncAccount(t=!1){return t?this._http.post("/api/account/sync",{},{headers:r}):this._http.post("/api/account/sync",{})}static{this.\u0275fac=function(i){return new(i||e)(n(o))}}static{this.\u0275prov=c({token:e,factory:e.\u0275fac})}}return e})();export{h as a};
