import{a as c}from"./chunk-NHAEOK7K.js";import{x as o}from"./chunk-OIJW4GMG.js";import{ca as a,ia as n}from"./chunk-3FIHWXA5.js";import{a as r}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",r({},t),{headers:c})}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`,r({},i),{headers:c})}getAccountOperationByOperationId(t){return this._http.get(`/api/account-operation/${t}`)}getDefaultCashAccount(t){return this._http.get(`/api/account/${t}/default-cash-account`)}syncAccount(){return this._http.post("/api/account/sync",{})}static{this.\u0275fac=function(i){return new(i||e)(n(o))}}static{this.\u0275prov=a({token:e,factory:e.\u0275fac})}}return e})();export{h as a};
