@budibase/types 3.5.2 → 3.5.3
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/ai.d.ts +6 -0
- package/dist/api/web/app/index.d.ts +14 -13
- package/dist/api/web/app/oauth2.d.ts +9 -0
- package/dist/api/web/app/rows/search.d.ts +16 -10
- package/dist/api/web/index.d.ts +1 -0
- package/dist/documents/app/index.d.ts +14 -13
- package/dist/documents/app/oauth2.d.ts +7 -0
- package/dist/documents/document.d.ts +2 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +4 -4
- package/dist/sdk/featureFlag.d.ts +3 -5
- package/dist/sdk/row.d.ts +1 -1
- package/package.json +2 -2
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
export * from "./
|
|
2
|
-
export * from "./datasource";
|
|
3
|
-
export * from "./view";
|
|
4
|
-
export * from "./rows";
|
|
5
|
-
export * from "./table";
|
|
6
|
-
export * from "./permission";
|
|
1
|
+
export * from "./application";
|
|
7
2
|
export * from "./attachment";
|
|
8
|
-
export * from "./user";
|
|
9
|
-
export * from "./rowAction";
|
|
10
3
|
export * from "./automation";
|
|
4
|
+
export * from "./backup";
|
|
11
5
|
export * from "./component";
|
|
6
|
+
export * from "./datasource";
|
|
7
|
+
export * from "./deployment";
|
|
12
8
|
export * from "./integration";
|
|
9
|
+
export * from "./layout";
|
|
13
10
|
export * from "./metadata";
|
|
11
|
+
export * from "./oauth2";
|
|
12
|
+
export * from "./permission";
|
|
14
13
|
export * from "./query";
|
|
15
|
-
export * from "./screen";
|
|
16
|
-
export * from "./application";
|
|
17
|
-
export * from "./layout";
|
|
18
|
-
export * from "./deployment";
|
|
19
14
|
export * from "./role";
|
|
20
|
-
export * from "./
|
|
15
|
+
export * from "./rowAction";
|
|
16
|
+
export * from "./rows";
|
|
17
|
+
export * from "./screen";
|
|
21
18
|
export * from "./static";
|
|
19
|
+
export * from "./table";
|
|
20
|
+
export * from "./user";
|
|
21
|
+
export * from "./view";
|
|
22
|
+
export * from "./webhook";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EmptyFilterOption } from "../../../../sdk";
|
|
2
2
|
import { Row } from "../../../../documents";
|
|
3
|
-
import { PaginationResponse, SortOrder } from "../../../../api/web/pagination";
|
|
3
|
+
import { PaginationResponse, SortOrder, SortType } from "../../../../api/web/pagination";
|
|
4
4
|
import { z } from "zod";
|
|
5
5
|
declare const searchRowRequest: z.ZodObject<{
|
|
6
6
|
query: z.ZodOptional<z.ZodObject<{
|
|
@@ -57,11 +57,14 @@ declare const searchRowRequest: z.ZodObject<{
|
|
|
57
57
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
58
58
|
sort: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
59
59
|
sortOrder: z.ZodOptional<z.ZodNativeEnum<typeof SortOrder>>;
|
|
60
|
+
sortType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof SortType>>>;
|
|
60
61
|
version: z.ZodOptional<z.ZodString>;
|
|
61
62
|
disableEscaping: z.ZodOptional<z.ZodBoolean>;
|
|
62
63
|
countRows: z.ZodOptional<z.ZodBoolean>;
|
|
63
64
|
}, "strip", z.ZodTypeAny, {
|
|
64
65
|
version?: string | undefined;
|
|
66
|
+
limit?: number | undefined;
|
|
67
|
+
sort?: string | null | undefined;
|
|
65
68
|
query?: {
|
|
66
69
|
allOr?: boolean | undefined;
|
|
67
70
|
onEmptyFilter?: EmptyFilterOption | undefined;
|
|
@@ -79,15 +82,16 @@ declare const searchRowRequest: z.ZodObject<{
|
|
|
79
82
|
$and?: any;
|
|
80
83
|
$or?: any;
|
|
81
84
|
} | undefined;
|
|
82
|
-
sort?: string | null | undefined;
|
|
83
|
-
limit?: number | undefined;
|
|
84
85
|
paginate?: boolean | undefined;
|
|
85
86
|
bookmark?: string | number | null | undefined;
|
|
86
87
|
sortOrder?: SortOrder | undefined;
|
|
88
|
+
sortType?: SortType | null | undefined;
|
|
87
89
|
disableEscaping?: boolean | undefined;
|
|
88
90
|
countRows?: boolean | undefined;
|
|
89
91
|
}, {
|
|
90
92
|
version?: string | undefined;
|
|
93
|
+
limit?: number | undefined;
|
|
94
|
+
sort?: string | null | undefined;
|
|
91
95
|
query?: {
|
|
92
96
|
allOr?: boolean | undefined;
|
|
93
97
|
onEmptyFilter?: EmptyFilterOption | undefined;
|
|
@@ -105,11 +109,10 @@ declare const searchRowRequest: z.ZodObject<{
|
|
|
105
109
|
$and?: any;
|
|
106
110
|
$or?: any;
|
|
107
111
|
} | undefined;
|
|
108
|
-
sort?: string | null | undefined;
|
|
109
|
-
limit?: number | undefined;
|
|
110
112
|
paginate?: boolean | undefined;
|
|
111
113
|
bookmark?: string | number | null | undefined;
|
|
112
114
|
sortOrder?: SortOrder | undefined;
|
|
115
|
+
sortType?: SortType | null | undefined;
|
|
113
116
|
disableEscaping?: boolean | undefined;
|
|
114
117
|
countRows?: boolean | undefined;
|
|
115
118
|
}>;
|
|
@@ -168,11 +171,14 @@ export declare const searchRowRequestValidator: z.ZodObject<{
|
|
|
168
171
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
169
172
|
sort: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
170
173
|
sortOrder: z.ZodOptional<z.ZodNativeEnum<typeof SortOrder>>;
|
|
174
|
+
sortType: z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<typeof SortType>>>;
|
|
171
175
|
version: z.ZodOptional<z.ZodString>;
|
|
172
176
|
disableEscaping: z.ZodOptional<z.ZodBoolean>;
|
|
173
177
|
countRows: z.ZodOptional<z.ZodBoolean>;
|
|
174
178
|
}, "strip", z.ZodTypeAny, {
|
|
175
179
|
version?: string | undefined;
|
|
180
|
+
limit?: number | undefined;
|
|
181
|
+
sort?: string | null | undefined;
|
|
176
182
|
query?: {
|
|
177
183
|
allOr?: boolean | undefined;
|
|
178
184
|
onEmptyFilter?: EmptyFilterOption | undefined;
|
|
@@ -190,15 +196,16 @@ export declare const searchRowRequestValidator: z.ZodObject<{
|
|
|
190
196
|
$and?: any;
|
|
191
197
|
$or?: any;
|
|
192
198
|
} | undefined;
|
|
193
|
-
sort?: string | null | undefined;
|
|
194
|
-
limit?: number | undefined;
|
|
195
199
|
paginate?: boolean | undefined;
|
|
196
200
|
bookmark?: string | number | null | undefined;
|
|
197
201
|
sortOrder?: SortOrder | undefined;
|
|
202
|
+
sortType?: SortType | null | undefined;
|
|
198
203
|
disableEscaping?: boolean | undefined;
|
|
199
204
|
countRows?: boolean | undefined;
|
|
200
205
|
}, {
|
|
201
206
|
version?: string | undefined;
|
|
207
|
+
limit?: number | undefined;
|
|
208
|
+
sort?: string | null | undefined;
|
|
202
209
|
query?: {
|
|
203
210
|
allOr?: boolean | undefined;
|
|
204
211
|
onEmptyFilter?: EmptyFilterOption | undefined;
|
|
@@ -216,16 +223,15 @@ export declare const searchRowRequestValidator: z.ZodObject<{
|
|
|
216
223
|
$and?: any;
|
|
217
224
|
$or?: any;
|
|
218
225
|
} | undefined;
|
|
219
|
-
sort?: string | null | undefined;
|
|
220
|
-
limit?: number | undefined;
|
|
221
226
|
paginate?: boolean | undefined;
|
|
222
227
|
bookmark?: string | number | null | undefined;
|
|
223
228
|
sortOrder?: SortOrder | undefined;
|
|
229
|
+
sortType?: SortType | null | undefined;
|
|
224
230
|
disableEscaping?: boolean | undefined;
|
|
225
231
|
countRows?: boolean | undefined;
|
|
226
232
|
}>;
|
|
227
233
|
export type SearchRowRequest = z.infer<typeof searchRowRequest>;
|
|
228
|
-
export type SearchViewRowRequest = Pick<SearchRowRequest, "sort" | "sortOrder" | "limit" | "bookmark" | "paginate" | "query" | "countRows">;
|
|
234
|
+
export type SearchViewRowRequest = Pick<SearchRowRequest, "sort" | "sortOrder" | "sortType" | "limit" | "bookmark" | "paginate" | "query" | "countRows">;
|
|
229
235
|
export interface SearchRowResponse {
|
|
230
236
|
rows: Row[];
|
|
231
237
|
}
|
package/dist/api/web/index.d.ts
CHANGED
|
@@ -1,22 +1,23 @@
|
|
|
1
|
+
export * from "../document";
|
|
1
2
|
export * from "./app";
|
|
2
3
|
export * from "./automation";
|
|
4
|
+
export * from "./backup";
|
|
5
|
+
export * from "./component";
|
|
3
6
|
export * from "./datasource";
|
|
7
|
+
export * from "./deployment";
|
|
4
8
|
export * from "./layout";
|
|
9
|
+
export * from "./links";
|
|
10
|
+
export * from "./metadata";
|
|
11
|
+
export * from "./oauth2";
|
|
5
12
|
export * from "./query";
|
|
6
13
|
export * from "./role";
|
|
7
|
-
export * from "./table";
|
|
8
|
-
export * from "./screen";
|
|
9
|
-
export * from "./view";
|
|
10
|
-
export * from "../document";
|
|
11
14
|
export * from "./row";
|
|
12
|
-
export * from "./user";
|
|
13
|
-
export * from "./backup";
|
|
14
|
-
export * from "./webhook";
|
|
15
|
-
export * from "./links";
|
|
16
|
-
export * from "./component";
|
|
17
|
-
export * from "./sqlite";
|
|
18
|
-
export * from "./snippet";
|
|
19
15
|
export * from "./rowAction";
|
|
16
|
+
export * from "./screen";
|
|
17
|
+
export * from "./snippet";
|
|
18
|
+
export * from "./sqlite";
|
|
19
|
+
export * from "./table";
|
|
20
20
|
export * from "./theme";
|
|
21
|
-
export * from "./
|
|
22
|
-
export * from "./
|
|
21
|
+
export * from "./user";
|
|
22
|
+
export * from "./view";
|
|
23
|
+
export * from "./webhook";
|
|
@@ -37,7 +37,8 @@ export declare enum DocumentType {
|
|
|
37
37
|
AUDIT_LOG = "al",
|
|
38
38
|
APP_MIGRATION_METADATA = "_design/migrations",
|
|
39
39
|
SCIM_LOG = "scimlog",
|
|
40
|
-
ROW_ACTIONS = "ra"
|
|
40
|
+
ROW_ACTIONS = "ra",
|
|
41
|
+
OAUTH2_CONFIG = "oauth2"
|
|
41
42
|
}
|
|
42
43
|
export declare function getDocumentType(id: string): DocumentType | undefined;
|
|
43
44
|
export declare const DocumentTypesToImport: DocumentType[];
|