import{a as n}from"./chunk-7N232KV6.js";import{a as u}from"./chunk-PDYJ5OYY.js";import{d as p,i as o}from"./chunk-NDLDFKR2.js";import{fa as l,ka as a}from"./chunk-PVUKHE45.js";import{a as s}from"./chunk-MZPAXKJS.js";var _=(()=>{let e=class e{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:n})}getSellDocumentsDataView(t){return this._http.post("/api/sell-document/dataview",t,{headers:n})}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,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:n}):this._http.post(`/api/sell-document/${t}/sync`,{})}delete(t,r=!1){let c=new p().append(u.SkipError,"skipError");return r?this._http.delete(`/api/sell-document/${t}`,{headers:c}):this._http.delete(`/api/sell-document/${t}`)}};e.\u0275fac=function(r){return new(r||e)(a(o))},e.\u0275prov=l({token:e,factory:e.\u0275fac});let i=e;return i})();var k=(()=>{let e=class e{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:n})}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,r=!1){return r?this._http.post(`/api/return-sell-document/${t}/sync`,{},{headers:n}):this._http.post(`/api/return-sell-document/${t}/sync`,{})}delete(t,r=!1){let c=new p().append(u.SkipError,"skipError");return r?this._http.delete(`/api/return-sell-document/${t}`,{headers:c}):this._http.delete(`/api/return-sell-document/${t}`)}};e.\u0275fac=function(r){return new(r||e)(a(o))},e.\u0275prov=l({token:e,factory:e.\u0275fac});let i=e;return i})();export{_ as a,k as b};
//# sourceMappingURL=chunk-4TUZRTJV.js.map
