@budibase/types 2.8.22-alpha.3 → 2.8.22-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/api/web/app/index.d.ts +3 -0
- package/dist/cjs/api/web/app/index.js +3 -0
- package/dist/cjs/api/web/app/index.js.map +1 -1
- package/dist/cjs/api/web/app/rows.d.ts +3 -0
- package/dist/cjs/api/web/app/rows.js +3 -0
- package/dist/cjs/api/web/app/rows.js.map +1 -0
- package/dist/cjs/api/web/app/table.d.ts +12 -0
- package/dist/cjs/api/web/app/table.js +3 -0
- package/dist/cjs/api/web/app/table.js.map +1 -0
- package/dist/cjs/api/web/app/view.d.ts +5 -0
- package/dist/cjs/api/web/app/view.js +3 -0
- package/dist/cjs/api/web/app/view.js.map +1 -0
- package/dist/cjs/documents/app/table/table.d.ts +2 -2
- package/dist/cjs/documents/app/view.d.ts +16 -0
- package/dist/cjs/documents/app/view.js.map +1 -1
- package/dist/cjs/tsconfig-cjs.build.tsbuildinfo +1 -1
- package/dist/mjs/api/web/app/index.d.ts +3 -0
- package/dist/mjs/api/web/app/index.js +3 -0
- package/dist/mjs/api/web/app/index.js.map +1 -1
- package/dist/mjs/api/web/app/rows.d.ts +3 -0
- package/dist/mjs/api/web/app/rows.js +2 -0
- package/dist/mjs/api/web/app/rows.js.map +1 -0
- package/dist/mjs/api/web/app/table.d.ts +12 -0
- package/dist/mjs/api/web/app/table.js +2 -0
- package/dist/mjs/api/web/app/table.js.map +1 -0
- package/dist/mjs/api/web/app/view.d.ts +5 -0
- package/dist/mjs/api/web/app/view.js +2 -0
- package/dist/mjs/api/web/app/view.js.map +1 -0
- package/dist/mjs/documents/app/table/table.d.ts +2 -2
- package/dist/mjs/documents/app/view.d.ts +16 -0
- package/dist/mjs/documents/app/view.js.map +1 -1
- package/dist/mjs/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/api/web/app/index.ts +3 -0
- package/src/api/web/app/rows.ts +3 -0
- package/src/api/web/app/table.ts +13 -0
- package/src/api/web/app/view.ts +7 -0
- package/src/documents/app/table/table.ts +2 -2
- package/src/documents/app/view.ts +18 -0
|
@@ -16,4 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./backup"), exports);
|
|
18
18
|
__exportStar(require("./datasource"), exports);
|
|
19
|
+
__exportStar(require("./view"), exports);
|
|
20
|
+
__exportStar(require("./rows"), exports);
|
|
21
|
+
__exportStar(require("./table"), exports);
|
|
19
22
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/api/web/app/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAwB;AACxB,+CAA4B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/api/web/app/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,2CAAwB;AACxB,+CAA4B;AAC5B,yCAAsB;AACtB,yCAAsB;AACtB,0CAAuB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rows.js","sourceRoot":"","sources":["../../../../../src/api/web/app/rows.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Table, TableSchema, View, ViewV2 } from "../../../documents";
|
|
2
|
+
interface ViewV2Response extends ViewV2 {
|
|
3
|
+
schema: TableSchema;
|
|
4
|
+
}
|
|
5
|
+
export declare type TableViewsResponse = {
|
|
6
|
+
[key: string]: View | ViewV2Response;
|
|
7
|
+
};
|
|
8
|
+
export interface TableResponse extends Table {
|
|
9
|
+
views?: TableViewsResponse;
|
|
10
|
+
}
|
|
11
|
+
export declare type FetchTablesResponse = TableResponse[];
|
|
12
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table.js","sourceRoot":"","sources":["../../../../../src/api/web/app/table.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"view.js","sourceRoot":"","sources":["../../../../../src/api/web/app/view.ts"],"names":[],"mappings":""}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Document } from "../../document";
|
|
2
|
-
import { View } from "../view";
|
|
2
|
+
import { View, ViewV2 } from "../view";
|
|
3
3
|
import { RenameColumn } from "../../../sdk";
|
|
4
4
|
import { TableSchema } from "./schema";
|
|
5
5
|
export interface Table extends Document {
|
|
6
6
|
type?: string;
|
|
7
7
|
views?: {
|
|
8
|
-
[key: string]: View;
|
|
8
|
+
[key: string]: View | ViewV2;
|
|
9
9
|
};
|
|
10
10
|
name: string;
|
|
11
11
|
primary?: string[];
|
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import { SortOrder, SortType } from "../../api";
|
|
2
|
+
import { SearchFilters } from "../../sdk";
|
|
3
|
+
import { UIFieldMetadata } from "./table";
|
|
1
4
|
export interface View {
|
|
2
5
|
name: string;
|
|
3
6
|
tableId: string;
|
|
@@ -9,6 +12,19 @@ export interface View {
|
|
|
9
12
|
reduce?: any;
|
|
10
13
|
meta?: Record<string, any>;
|
|
11
14
|
}
|
|
15
|
+
export interface ViewV2 {
|
|
16
|
+
version: 2;
|
|
17
|
+
id: string;
|
|
18
|
+
name: string;
|
|
19
|
+
tableId: string;
|
|
20
|
+
query?: SearchFilters;
|
|
21
|
+
sort?: {
|
|
22
|
+
field: string;
|
|
23
|
+
order?: SortOrder;
|
|
24
|
+
type?: SortType;
|
|
25
|
+
};
|
|
26
|
+
columns?: Record<string, UIFieldMetadata>;
|
|
27
|
+
}
|
|
12
28
|
export declare type ViewSchema = ViewCountOrSumSchema | ViewStatisticsSchema;
|
|
13
29
|
export interface ViewCountOrSumSchema {
|
|
14
30
|
field: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view.js","sourceRoot":"","sources":["../../../../src/documents/app/view.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"view.js","sourceRoot":"","sources":["../../../../src/documents/app/view.ts"],"names":[],"mappings":";;;AA2DA,IAAY,eAIX;AAJD,WAAY,eAAe;IACzB,8BAAW,CAAA;IACX,kCAAe,CAAA;IACf,uCAAoB,CAAA;AACtB,CAAC,EAJW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAI1B"}
|