import{C as i}from"./router-C3xfRTQ9.js";import"./jwt-decode.esm-CX61wVx3.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[t]="3cdf8ae7-37bc-4306-a47c-4bbd753e2b84",s._sentryDebugIdIdentifier="sentry-dbid-3cdf8ae7-37bc-4306-a47c-4bbd753e2b84")}catch{}})();class d{async list(t){return i.get(`projects/${t}/system-tables`)}async selectRows(t){return i.get(`projects/${t.projectId}/system-tables/${t.tableName}/rows`,{limit:t.limit.toString(),offset:t.offset.toString(),search:t.search,where:JSON.stringify(t.where),orderBy:t.orderBy?JSON.stringify(t.orderBy):void 0})}}const a=new d;class o{constructor(t,e){this.projectId=t,this.dto=e}static async list(t){return(await a.list(t)).map(r=>new o(t,r))}static async get(t,e){return(await o.list(t)).find(n=>n.name===e)??null}get name(){return this.dto.name}getColumns(){return this.dto.columns}async select(t={},e,r,n,c){return a.selectRows({projectId:this.projectId,tableName:this.dto.name,where:t,limit:r,offset:e,search:n,orderBy:c})}}export{o as S};
//# sourceMappingURL=systemTables-CTITfv8m.js.map
