import{a as s}from"./chunk-KFDEPCY3.js";import{a as o}from"./chunk-KOXD6BDO.js";import{a,f as p}from"./chunk-GYAYEJFB.js";import{ea as n,ka as l}from"./chunk-LEOKSAW2.js";import{a as i}from"./chunk-K4ALXBGI.js";var y=(()=>{class e{constructor(t){this._http=t}salesRegistration(t){return this._http.post("/api/sell-document",i({},t))}getAll(t){return this._http.post("/api/sell-document/all",i({},t),{headers:s})}getById(t){return this._http.get(`/api/sell-document/${t}`)}fiscalizeById(t){return this._http.post("/api/sell-document/fiscalize",{documentId:t})}externalFiscalize(t){return this._http.post("/api/sell-document/external-fiscalize",i({},t))}getSellDocumentByNumber(t,r){return this._http.get(`/api/sell-document/${r}/return`,{params:{"by-number":t}})}syncSellDocument(t,r=!1){return r?this._http.post(`/api/sell-document/${t}/sync`,{},{headers:s}):this._http.post(`/api/sell-document/${t}/sync`,{})}delete(t,r=!1){let c=new a().append(o.SkipError,"skipError");return r?this._http.delete(`/api/sell-document/${t}`,{headers:c}):this._http.delete(`/api/sell-document/${t}`)}static{this.\u0275fac=function(r){return new(r||e)(l(p))}}static{this.\u0275prov=n({token:e,factory:e.\u0275fac})}}return e})();var z=(()=>{class e{constructor(t){this._http=t}returnSellRegistration(t){return this._http.post("/api/return-sell-document",i({},t))}getAll(t){return this._http.post("/api/return-sell-document/all",i({},t),{headers:s})}getById(t){return this._http.get(`/api/return-sell-document/${t}`)}fiscalizeById(t){return this._http.post("/api/return-sell-document/fiscalize",{documentId:t})}externalFiscalize(t){return this._http.post("/api/return-sell-document/external-fiscalize",i({},t))}syncReturnSellDocument(t,r=!1){return r?this._http.post(`/api/return-sell-document/${t}/sync`,{},{headers:s}):this._http.post(`/api/return-sell-document/${t}/sync`,{})}delete(t){return this._http.delete(`/api/return-sell-document/${t}`)}static{this.\u0275fac=function(r){return new(r||e)(l(p))}}static{this.\u0275prov=n({token:e,factory:e.\u0275fac})}}return e})();export{y as a,z as b};
