import{b as i}from"./index-d4c21fa3.js";const c=new Map;class e{constructor(t){this.setData(t)}setData(t){Object.assign(this,t)}static get(t){let a=c.get(t.id);return a?a.setData(t):(a=new e(t),c.set(a.id,a)),a}static async findAndCountAll(t){const a=i(),{total:s,items:n,st:r,pp:o}=await a.get({path:"/api/v1/classifications",query:{...t}})||{};return{items:n,total:s,st:r,pp:o}}static async addClassification(t){return await i().post("/api/v1/classification",t)||{}}static async editClassification(t,a){return await i().patch(`/api/v1/classification/${t}`,a)||{}}static async deleteClassification(t){return await i().delete(`/api/v1/classification/${t}`)||{}}}export{e as C};
