import{a}from"./chunk-7N232KV6.js";import{i as s}from"./chunk-NDLDFKR2.js";import{fa as n,ka as o}from"./chunk-PVUKHE45.js";import{a as c}from"./chunk-MZPAXKJS.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-T747WFOH.js.map
