import{a as s}from"./chunk-NHAEOK7K.js";import{x as o}from"./chunk-OIJW4GMG.js";import{ca as a,ia as n}from"./chunk-3FIHWXA5.js";import{a as r}from"./chunk-K4ALXBGI.js";var l=(()=>{class i{get defaultFilterFields(){return{criteria:{search:null,filter:{nomenclatureIds:null,name:null,barcode:null,article:null,unitId:[],viewArchived:null,categoryId:[]}},skip:0,take:10,orderBy:"id",isAscending:!1}}constructor(t){this._http=t}getProductRemains(t,e){return this._http.post(`/api/warehouse/${t}/remains`,r({},e),{headers:s})}getProductRemainsForRevision(t,e){return this._http.post(`/api/warehouse/${t}/remains-for-revisions`,r({},e),{headers:s})}getProductRemainById(t){return this._http.get(`/api/remains/${t}`)}editProductRemain(t,e){return this._http.put(`/api/remains/${t}`,r({},e))}getProductRemainConsignments(t,e){return this._http.post(`/api/remains/${t}/consignments`,r({},e),{headers:s})}getProductRemainHistory(t,e){return this._http.post(`/api/remains/${t}/history`,r({},e),{headers:s})}getCalculatedProductsCost(t){return this._http.post("/api/remains/calculate-cost",t)}static{this.\u0275fac=function(e){return new(e||i)(n(o))}}static{this.\u0275prov=a({token:i,factory:i.\u0275fac})}}return i})();export{l as a};
