import{a as n}from"./chunk-C2ZF4U5U.js";import{a as c}from"./chunk-PDYJ5OYY.js";import{d as a,i as o}from"./chunk-JLM6CY35.js";import{fa as l,ka as p}from"./chunk-4HRPSKID.js";import{a as s}from"./chunk-B7YGBANW.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})}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 u=new a().append(c.SkipError,"skipError");return r?this._http.delete(`/api/sell-document/${t}`,{headers:u}):this._http.delete(`/api/sell-document/${t}`)}};e.\u0275fac=function(r){return new(r||e)(p(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 u=new a().append(c.SkipError,"skipError");return r?this._http.delete(`/api/return-sell-document/${t}`,{headers:u}):this._http.delete(`/api/return-sell-document/${t}`)}};e.\u0275fac=function(r){return new(r||e)(p(o))},e.\u0275prov=l({token:e,factory:e.\u0275fac});let i=e;return i})();export{_ as a,k as b};
//# sourceMappingURL=chunk-D4Z4ZMOL.js.map
