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