"use strict";const e=require("./index.cjs77.js");class s{static configure(t){t(e)}constructor(){if(this.constructor===s)throw new TypeError('Abstract class "BaseService" cannot be instantiated directly.')}create(t){const r=this.getTransform();return e.post(this.getBaseUrl(),r.toPayload(t),this.getConfig())}delete(t){return e.delete(`${this.getBaseUrl()}/${t.id}`)}fetchAll(t){return e.get(this.getBaseUrl(),{params:t})}fetchOne(t){return e.get(`${this.getBaseUrl()}/${t}`)}save(t){return t.id?this.update(t):this.create(t)}search(t){return e.post(`${this.getBaseUrl()}/search`,t)}update(t){const r=this.getTransform();return e.put(`${this.getBaseUrl()}/${t.id}`,r.toPayload(t),this.getConfig())}getAxios(){return e}getBaseUrl(){return""}getConfig(){return null}getTransform(){return{}}}module.exports=s;
//# sourceMappingURL=index.cjs15.js.map
