import{a as i}from"./chunk-KXX3UDJ3.js";import{f as o,j as c}from"./chunk-GQAU5ACB.js";import{la as n,pa as s}from"./chunk-ISMRT7VU.js";var l=(()=>{class e{static{this.type="[NomenclatureDiscount] Set NomenclatureDiscount"}constructor(t){this.discounts=t}}return e})(),p=(()=>{class e{static{this.type="[NomenclatureDiscount] Clear NomenclatureDiscount"}}return e})();var N=(()=>{class e{constructor(t){this._http=t,this.defaultFilter={take:100,skip:0,orderBy:"id",isAscending:!0,criteria:null}}getAll(t=this.defaultFilter){return this._http.post("/api/nomenclature-discount/all",t,{headers:i})}upsert(t){return this._http.post("/api/nomenclature-discount",t)}delete(t){let r=new o;return t.forEach(u=>r=r.append("DiscountIds",u)),this._http.delete("/api/nomenclature-discount",{params:r})}sync(){return this._http.post("/api/nomenclature-discount/sync",{},{headers:i})}static{this.\u0275fac=function(r){return new(r||e)(s(c))}}static{this.\u0275prov=n({token:e,factory:e.\u0275fac})}}return e})();export{l as a,p as b,N as c};
//# sourceMappingURL=chunk-VJ6OJDTB.js.map
