import{a as i}from"./chunk-KXX3UDJ3.js";import{a as o}from"./chunk-PDYJ5OYY.js";import{d as p,j as a}from"./chunk-GQAU5ACB.js";import{la as n,pa as l}from"./chunk-ISMRT7VU.js";import{a as s}from"./chunk-M5TX2NVG.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})}getSellDocumentsDataView(t){return this._http.post("/api/sell-document/dataview",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(o.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(a))}}static{this.\u0275prov=n({token:r,factory:r.\u0275fac})}}return r})();var D=(()=>{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(o.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(a))}}static{this.\u0275prov=n({token:r,factory:r.\u0275fac})}}return r})();export{_ as a,D as b};
//# sourceMappingURL=chunk-OTNTPU5O.js.map
