import{a as o}from"./chunk-NHAEOK7K.js";import{a as p}from"./chunk-KOXD6BDO.js";import{t as a,x as l}from"./chunk-OIJW4GMG.js";import{ca as s,ia as n}from"./chunk-3FIHWXA5.js";import{a as r}from"./chunk-K4ALXBGI.js";var y=(()=>{class e{constructor(t){this._http=t}salesRegistration(t){return this._http.post("/api/sell-document",r({},t))}getAll(t){return this._http.post("/api/sell-document/all",r({},t),{headers:o})}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",r({},t))}getSellDocumentByNumber(t,i){return this._http.get(`/api/sell-document/${i}/return`,{params:{"by-number":t}})}syncSellDocument(t){return this._http.post(`/api/sell-document/${t}/sync`,{})}delete(t,i=!1){let c=new a().append(p.SkipError,"skipError");return i?this._http.delete(`/api/sell-document/${t}`,{headers:c}):this._http.delete(`/api/sell-document/${t}`)}static{this.\u0275fac=function(i){return new(i||e)(n(l))}}static{this.\u0275prov=s({token:e,factory:e.\u0275fac})}}return e})();var I=(()=>{class e{constructor(t){this._http=t}returnSellRegistration(t){return this._http.post("/api/return-sell-document",r({},t))}getAll(t){return this._http.post("/api/return-sell-document/all",r({},t),{headers:o})}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",r({},t))}syncReturnSellDocument(t){return this._http.post(`/api/return-sell-document/${t}/sync`,{})}delete(t){return this._http.delete(`/api/return-sell-document/${t}`)}static{this.\u0275fac=function(i){return new(i||e)(n(l))}}static{this.\u0275prov=s({token:e,factory:e.\u0275fac})}}return e})();export{y as a,I as b};
