@budibase/types 2.20.14 → 2.21.1
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/api/web/app/permission.d.ts +17 -1
- package/dist/api/web/app/rows.d.ts +3 -1
- package/dist/api/web/application.d.ts +5 -0
- package/dist/api/web/index.d.ts +1 -0
- package/dist/api/web/query.d.ts +25 -0
- package/dist/documents/app/query.d.ts +0 -16
- package/dist/documents/app/table/table.d.ts +2 -1
- package/dist/index.js.map +2 -2
- package/dist/index.js.meta.json +1 -1
- package/dist/sdk/datasources.d.ts +10 -1
- package/dist/sdk/search.d.ts +4 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PlanType } from "../../../sdk";
|
|
1
|
+
import { PermissionLevel, PlanType } from "../../../sdk";
|
|
2
2
|
export interface ResourcePermissionInfo {
|
|
3
3
|
role: string;
|
|
4
4
|
permissionType: string;
|
|
@@ -11,3 +11,19 @@ export interface GetResourcePermsResponse {
|
|
|
11
11
|
export interface GetDependantResourcesResponse {
|
|
12
12
|
resourceByType?: Record<string, number>;
|
|
13
13
|
}
|
|
14
|
+
export interface AddedPermission {
|
|
15
|
+
_id?: string;
|
|
16
|
+
rev?: string;
|
|
17
|
+
error?: string;
|
|
18
|
+
reason?: string;
|
|
19
|
+
}
|
|
20
|
+
export type AddPermissionResponse = AddedPermission[];
|
|
21
|
+
export interface AddPermissionRequest {
|
|
22
|
+
roleId: string;
|
|
23
|
+
resourceId: string;
|
|
24
|
+
level: PermissionLevel;
|
|
25
|
+
}
|
|
26
|
+
export interface RemovePermissionRequest extends AddPermissionRequest {
|
|
27
|
+
}
|
|
28
|
+
export interface RemovePermissionResponse extends AddPermissionResponse {
|
|
29
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { SearchFilters, SearchParams } from "../../../sdk";
|
|
3
3
|
import { Row } from "../../../documents";
|
|
4
|
-
import { SortOrder } from "../../../api";
|
|
4
|
+
import { PaginationResponse, SortOrder } from "../../../api";
|
|
5
5
|
import { ReadStream } from "fs";
|
|
6
6
|
export interface SaveRowRequest extends Row {
|
|
7
7
|
}
|
|
@@ -19,6 +19,8 @@ export interface SearchViewRowRequest extends Pick<SearchRowRequest, "sort" | "s
|
|
|
19
19
|
export interface SearchRowResponse {
|
|
20
20
|
rows: any[];
|
|
21
21
|
}
|
|
22
|
+
export interface PaginatedSearchRowResponse extends SearchRowResponse, PaginationResponse {
|
|
23
|
+
}
|
|
22
24
|
export interface ExportRowsRequest {
|
|
23
25
|
rows: string[];
|
|
24
26
|
columns?: string[];
|
package/dist/api/web/index.d.ts
CHANGED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { QueryPreview, QuerySchema } from "../../documents";
|
|
2
|
+
export interface PreviewQueryRequest extends QueryPreview {
|
|
3
|
+
}
|
|
4
|
+
export interface PreviewQueryResponse {
|
|
5
|
+
rows: any[];
|
|
6
|
+
nestedSchemaFields: {
|
|
7
|
+
[key: string]: {
|
|
8
|
+
[key: string]: string | QuerySchema;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
schema: {
|
|
12
|
+
[key: string]: string | QuerySchema;
|
|
13
|
+
};
|
|
14
|
+
info: any;
|
|
15
|
+
extra: any;
|
|
16
|
+
}
|
|
17
|
+
export interface ExecuteQueryRequest {
|
|
18
|
+
parameters?: {
|
|
19
|
+
[key: string]: string;
|
|
20
|
+
};
|
|
21
|
+
pagination?: any;
|
|
22
|
+
}
|
|
23
|
+
export interface ExecuteQueryResponse {
|
|
24
|
+
data: Record<string, any>[];
|
|
25
|
+
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Document } from "../document";
|
|
2
|
-
import type { Row } from "./row";
|
|
3
2
|
export interface QuerySchema {
|
|
4
3
|
name?: string;
|
|
5
4
|
type: string;
|
|
@@ -57,21 +56,6 @@ export interface PaginationValues {
|
|
|
57
56
|
page: string | number | null;
|
|
58
57
|
limit: number | null;
|
|
59
58
|
}
|
|
60
|
-
export interface PreviewQueryRequest extends Omit<Query, "parameters"> {
|
|
61
|
-
parameters: {};
|
|
62
|
-
flags?: {
|
|
63
|
-
urlName?: boolean;
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
export interface ExecuteQueryRequest {
|
|
67
|
-
parameters?: {
|
|
68
|
-
[key: string]: string;
|
|
69
|
-
};
|
|
70
|
-
pagination?: any;
|
|
71
|
-
}
|
|
72
|
-
export interface ExecuteQueryResponse {
|
|
73
|
-
data: Row[];
|
|
74
|
-
}
|
|
75
59
|
export declare enum HttpMethod {
|
|
76
60
|
GET = "GET",
|
|
77
61
|
POST = "POST",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Document } from "../../document";
|
|
2
2
|
import { View, ViewV2 } from "../view";
|
|
3
|
-
import { RenameColumn } from "../../../sdk";
|
|
3
|
+
import { AddColumn, RenameColumn } from "../../../sdk";
|
|
4
4
|
import { TableSchema } from "./schema";
|
|
5
5
|
export declare const INTERNAL_TABLE_SOURCE_ID = "bb_internal";
|
|
6
6
|
export declare enum TableSourceType {
|
|
@@ -29,5 +29,6 @@ export interface Table extends Document {
|
|
|
29
29
|
}
|
|
30
30
|
export interface TableRequest extends Table {
|
|
31
31
|
_rename?: RenameColumn;
|
|
32
|
+
_add?: AddColumn;
|
|
32
33
|
created?: boolean;
|
|
33
34
|
}
|