import{b as e}from"./index-d4c21fa3.js";const i=new Map;class n{constructor(t){this.setData(t)}setData(t){Object.assign(this,t)}static get(t){let a=i.get(t.id);return a?a.setData(t):(a=new n(t),i.set(a.id,a)),n}static async findAndCountAll(t){const a=e(),{total:s,items:r,st:g,pp:d}=await a.get({path:"/api/v1/gradings",query:{...t}})||{};return{items:r,total:s,st:g,pp:d}}static async addGrade(t){return await e().post("/api/v1/grading",t)||{}}static async editGrade(t,a){return await e().patch(`/api/v1/grading/${t}`,a)||{}}static async deleteGrade(t){return await e().delete(`/api/v1/grading/${t}`)||{}}static async getGradeLevel(){return await e().get("/api/v1/gradingLevel")||{}}}export{n as G};
