import{a}from"./chunk-P5XIDEFS.js";import{i as s}from"./chunk-CO3WTSA4.js";import{ea as n,ja as o}from"./chunk-DYUFV4HF.js";import{a as c}from"./chunk-B7YGBANW.js";var l=(()=>{let e=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",c({},t),{headers:a})}getAccount(t){return this._http.get(`/api/account/${t}`)}create(t){return this._http.post("/api/account",t)}edit(t,r){return this._http.put(`/api/account/${t}`,r)}operations(t){return this._http.post(`/api/account/${t}/operations`,{})}getAllAccountOperations(t,r){return this._http.post(`/api/account/${t}/operations`,c({},r),{headers:a})}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:a}):this._http.post("/api/account/sync",{})}};e.\u0275fac=function(r){return new(r||e)(o(s))},e.\u0275prov=n({token:e,factory:e.\u0275fac});let i=e;return i})();export{l as a};
//# sourceMappingURL=chunk-GJ2XPATQ.js.map
