import{a as r}from"./chunk-KXX3UDJ3.js";import{j as o}from"./chunk-GQAU5ACB.js";import{la as c,pa as n}from"./chunk-ISMRT7VU.js";import{a}from"./chunk-M5TX2NVG.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};
//# sourceMappingURL=chunk-TTBMNJPA.js.map
