import{a as s}from"./chunk-ACIZE7HS.js";import{e as o}from"./chunk-EMTGVP7F.js";import{da as a,ja as n}from"./chunk-A4WWLITB.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};
