This commit is contained in:
2025-11-25 16:54:15 +08:00
parent de1b221bc5
commit 4bfa15b9d2
11 changed files with 218 additions and 43 deletions

View File

@@ -1,6 +1,7 @@
import { Query } from './api.ts';
import { Meta } from './meta/index.ts';
import { Record } from './record.ts';
import { Upload } from './data/upload.ts';
export type NocoApiOptions = {
table?: string;
token?: string;
@@ -11,6 +12,7 @@ export class NocoApi {
query: Query;
record: Record;
meta: Meta;
upload: Upload;
constructor(options?: NocoApiOptions) {
const table = options?.table;
@@ -19,6 +21,7 @@ export class NocoApi {
this.query = new Query({ baseURL, token });
this.record = new Record(this.query, table);
this.meta = new Meta({ query: this.query });
this.upload = new Upload(this.query);
}
/**
*