@budibase/types 2.23.6 → 2.23.9
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/searchFilter.d.ts +2 -56
- package/dist/api/web/user.d.ts +4 -2
- package/dist/documents/app/table/table.d.ts +1 -2
- package/dist/documents/global/user.d.ts +7 -0
- package/dist/index.js +25 -18
- package/dist/index.js.map +4 -4
- package/dist/index.js.meta.json +1 -1
- package/dist/sdk/datasources.d.ts +1 -0
- package/dist/sdk/search.d.ts +30 -15
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
|
@@ -1,64 +1,10 @@
|
|
|
1
1
|
import { FieldType } from "../../documents";
|
|
2
|
-
import { EmptyFilterOption } from "../../sdk";
|
|
2
|
+
import { EmptyFilterOption, SearchFilters } from "../../sdk";
|
|
3
3
|
export type SearchFilter = {
|
|
4
|
-
operator: keyof
|
|
4
|
+
operator: keyof SearchFilters | "rangeLow" | "rangeHigh";
|
|
5
5
|
onEmptyFilter?: EmptyFilterOption;
|
|
6
6
|
field: string;
|
|
7
7
|
type?: FieldType;
|
|
8
8
|
value: any;
|
|
9
9
|
externalType?: string;
|
|
10
10
|
};
|
|
11
|
-
export declare enum SearchQueryOperators {
|
|
12
|
-
STRING = "string",
|
|
13
|
-
FUZZY = "fuzzy",
|
|
14
|
-
RANGE = "range",
|
|
15
|
-
EQUAL = "equal",
|
|
16
|
-
NOT_EQUAL = "notEqual",
|
|
17
|
-
EMPTY = "empty",
|
|
18
|
-
NOT_EMPTY = "notEmpty",
|
|
19
|
-
ONE_OF = "oneOf",
|
|
20
|
-
CONTAINS = "contains",
|
|
21
|
-
NOT_CONTAINS = "notContains",
|
|
22
|
-
CONTAINS_ANY = "containsAny"
|
|
23
|
-
}
|
|
24
|
-
export type SearchQuery = {
|
|
25
|
-
allOr?: boolean;
|
|
26
|
-
onEmptyFilter?: EmptyFilterOption;
|
|
27
|
-
[SearchQueryOperators.STRING]?: {
|
|
28
|
-
[key: string]: string;
|
|
29
|
-
};
|
|
30
|
-
[SearchQueryOperators.FUZZY]?: {
|
|
31
|
-
[key: string]: string;
|
|
32
|
-
};
|
|
33
|
-
[SearchQueryOperators.RANGE]?: {
|
|
34
|
-
[key: string]: {
|
|
35
|
-
high: number | string;
|
|
36
|
-
low: number | string;
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
[SearchQueryOperators.EQUAL]?: {
|
|
40
|
-
[key: string]: any;
|
|
41
|
-
};
|
|
42
|
-
[SearchQueryOperators.NOT_EQUAL]?: {
|
|
43
|
-
[key: string]: any;
|
|
44
|
-
};
|
|
45
|
-
[SearchQueryOperators.EMPTY]?: {
|
|
46
|
-
[key: string]: any;
|
|
47
|
-
};
|
|
48
|
-
[SearchQueryOperators.NOT_EMPTY]?: {
|
|
49
|
-
[key: string]: any;
|
|
50
|
-
};
|
|
51
|
-
[SearchQueryOperators.ONE_OF]?: {
|
|
52
|
-
[key: string]: any[];
|
|
53
|
-
};
|
|
54
|
-
[SearchQueryOperators.CONTAINS]?: {
|
|
55
|
-
[key: string]: any[];
|
|
56
|
-
};
|
|
57
|
-
[SearchQueryOperators.NOT_CONTAINS]?: {
|
|
58
|
-
[key: string]: any[];
|
|
59
|
-
};
|
|
60
|
-
[SearchQueryOperators.CONTAINS_ANY]?: {
|
|
61
|
-
[key: string]: any[];
|
|
62
|
-
};
|
|
63
|
-
};
|
|
64
|
-
export type SearchQueryFields = Omit<SearchQuery, "allOr" | "onEmptyFilter">;
|
package/dist/api/web/user.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { User } from "../../documents";
|
|
2
|
-
import {
|
|
2
|
+
import { SearchFilters } from "../../sdk";
|
|
3
3
|
export interface SaveUserResponse {
|
|
4
4
|
_id: string;
|
|
5
5
|
_rev: string;
|
|
@@ -57,7 +57,7 @@ export interface InviteUsersResponse {
|
|
|
57
57
|
}
|
|
58
58
|
export interface SearchUsersRequest {
|
|
59
59
|
bookmark?: string;
|
|
60
|
-
query?:
|
|
60
|
+
query?: SearchFilters;
|
|
61
61
|
appId?: string;
|
|
62
62
|
limit?: number;
|
|
63
63
|
paginate?: boolean;
|
|
@@ -67,6 +67,8 @@ export interface CreateAdminUserRequest {
|
|
|
67
67
|
password?: string;
|
|
68
68
|
tenantId: string;
|
|
69
69
|
ssoId?: string;
|
|
70
|
+
familyName?: string;
|
|
71
|
+
givenName?: string;
|
|
70
72
|
}
|
|
71
73
|
export interface AddSSoUserRequest {
|
|
72
74
|
ssoId: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Document } from "../../document";
|
|
2
2
|
import { View, ViewV2 } from "../view";
|
|
3
|
-
import {
|
|
3
|
+
import { 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 {
|
|
@@ -30,6 +30,5 @@ export interface Table extends Document {
|
|
|
30
30
|
}
|
|
31
31
|
export interface TableRequest extends Table {
|
|
32
32
|
_rename?: RenameColumn;
|
|
33
|
-
_add?: AddColumn;
|
|
34
33
|
created?: boolean;
|
|
35
34
|
}
|
|
@@ -16,6 +16,13 @@ export interface UserSSO {
|
|
|
16
16
|
providerType: SSOProviderType;
|
|
17
17
|
oauth2?: OAuth2;
|
|
18
18
|
thirdPartyProfile?: SSOProfileJson;
|
|
19
|
+
profile?: {
|
|
20
|
+
displayName?: string;
|
|
21
|
+
name?: {
|
|
22
|
+
givenName?: string;
|
|
23
|
+
familyName?: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
19
26
|
}
|
|
20
27
|
export type SSOUser = User & UserSSO;
|
|
21
28
|
export declare function isSSOUser(user: User): user is SSOUser;
|
package/dist/index.js
CHANGED
|
@@ -95,13 +95,14 @@ __export(src_exports, {
|
|
|
95
95
|
QuotaUsageType: () => QuotaUsageType,
|
|
96
96
|
RelationshipType: () => RelationshipType,
|
|
97
97
|
RestAuthType: () => RestAuthType,
|
|
98
|
+
RowOperations: () => RowOperations,
|
|
98
99
|
SEPARATOR: () => SEPARATOR,
|
|
99
100
|
SQLiteType: () => SQLiteType,
|
|
100
101
|
SSOProviderType: () => SSOProviderType,
|
|
101
102
|
ScheduleRepeatPeriod: () => ScheduleRepeatPeriod,
|
|
102
103
|
ScheduleType: () => ScheduleType,
|
|
104
|
+
SearchFilterOperator: () => SearchFilterOperator,
|
|
103
105
|
SearchIndex: () => SearchIndex,
|
|
104
|
-
SearchQueryOperators: () => SearchQueryOperators,
|
|
105
106
|
ServiceType: () => ServiceType,
|
|
106
107
|
SortDirection: () => SortDirection,
|
|
107
108
|
SortOption: () => SortOption,
|
|
@@ -577,6 +578,13 @@ var Operation = /* @__PURE__ */ ((Operation2) => {
|
|
|
577
578
|
Operation2["DELETE_TABLE"] = "DELETE_TABLE";
|
|
578
579
|
return Operation2;
|
|
579
580
|
})(Operation || {});
|
|
581
|
+
var RowOperations = [
|
|
582
|
+
"CREATE" /* CREATE */,
|
|
583
|
+
"READ" /* READ */,
|
|
584
|
+
"UPDATE" /* UPDATE */,
|
|
585
|
+
"DELETE" /* DELETE */,
|
|
586
|
+
"BULK_CREATE" /* BULK_CREATE */
|
|
587
|
+
];
|
|
580
588
|
var SortDirection = /* @__PURE__ */ ((SortDirection2) => {
|
|
581
589
|
SortDirection2["ASCENDING"] = "ASCENDING";
|
|
582
590
|
SortDirection2["DESCENDING"] = "DESCENDING";
|
|
@@ -647,6 +655,20 @@ var DatasourceFeature = /* @__PURE__ */ ((DatasourceFeature2) => {
|
|
|
647
655
|
})(DatasourceFeature || {});
|
|
648
656
|
|
|
649
657
|
// src/sdk/search.ts
|
|
658
|
+
var SearchFilterOperator = /* @__PURE__ */ ((SearchFilterOperator2) => {
|
|
659
|
+
SearchFilterOperator2["STRING"] = "string";
|
|
660
|
+
SearchFilterOperator2["FUZZY"] = "fuzzy";
|
|
661
|
+
SearchFilterOperator2["RANGE"] = "range";
|
|
662
|
+
SearchFilterOperator2["EQUAL"] = "equal";
|
|
663
|
+
SearchFilterOperator2["NOT_EQUAL"] = "notEqual";
|
|
664
|
+
SearchFilterOperator2["EMPTY"] = "empty";
|
|
665
|
+
SearchFilterOperator2["NOT_EMPTY"] = "notEmpty";
|
|
666
|
+
SearchFilterOperator2["ONE_OF"] = "oneOf";
|
|
667
|
+
SearchFilterOperator2["CONTAINS"] = "contains";
|
|
668
|
+
SearchFilterOperator2["NOT_CONTAINS"] = "notContains";
|
|
669
|
+
SearchFilterOperator2["CONTAINS_ANY"] = "containsAny";
|
|
670
|
+
return SearchFilterOperator2;
|
|
671
|
+
})(SearchFilterOperator || {});
|
|
650
672
|
var EmptyFilterOption = /* @__PURE__ */ ((EmptyFilterOption2) => {
|
|
651
673
|
EmptyFilterOption2["RETURN_ALL"] = "all";
|
|
652
674
|
EmptyFilterOption2["RETURN_NONE"] = "none";
|
|
@@ -1221,22 +1243,6 @@ var SortType = /* @__PURE__ */ ((SortType2) => {
|
|
|
1221
1243
|
return SortType2;
|
|
1222
1244
|
})(SortType || {});
|
|
1223
1245
|
|
|
1224
|
-
// src/api/web/searchFilter.ts
|
|
1225
|
-
var SearchQueryOperators = /* @__PURE__ */ ((SearchQueryOperators2) => {
|
|
1226
|
-
SearchQueryOperators2["STRING"] = "string";
|
|
1227
|
-
SearchQueryOperators2["FUZZY"] = "fuzzy";
|
|
1228
|
-
SearchQueryOperators2["RANGE"] = "range";
|
|
1229
|
-
SearchQueryOperators2["EQUAL"] = "equal";
|
|
1230
|
-
SearchQueryOperators2["NOT_EQUAL"] = "notEqual";
|
|
1231
|
-
SearchQueryOperators2["EMPTY"] = "empty";
|
|
1232
|
-
SearchQueryOperators2["NOT_EMPTY"] = "notEmpty";
|
|
1233
|
-
SearchQueryOperators2["ONE_OF"] = "oneOf";
|
|
1234
|
-
SearchQueryOperators2["CONTAINS"] = "contains";
|
|
1235
|
-
SearchQueryOperators2["NOT_CONTAINS"] = "notContains";
|
|
1236
|
-
SearchQueryOperators2["CONTAINS_ANY"] = "containsAny";
|
|
1237
|
-
return SearchQueryOperators2;
|
|
1238
|
-
})(SearchQueryOperators || {});
|
|
1239
|
-
|
|
1240
1246
|
// src/core/installation.ts
|
|
1241
1247
|
var ServiceType = /* @__PURE__ */ ((ServiceType2) => {
|
|
1242
1248
|
ServiceType2["WORKER"] = "worker";
|
|
@@ -1324,13 +1330,14 @@ var MaintenanceType = /* @__PURE__ */ ((MaintenanceType2) => {
|
|
|
1324
1330
|
QuotaUsageType,
|
|
1325
1331
|
RelationshipType,
|
|
1326
1332
|
RestAuthType,
|
|
1333
|
+
RowOperations,
|
|
1327
1334
|
SEPARATOR,
|
|
1328
1335
|
SQLiteType,
|
|
1329
1336
|
SSOProviderType,
|
|
1330
1337
|
ScheduleRepeatPeriod,
|
|
1331
1338
|
ScheduleType,
|
|
1339
|
+
SearchFilterOperator,
|
|
1332
1340
|
SearchIndex,
|
|
1333
|
-
SearchQueryOperators,
|
|
1334
1341
|
ServiceType,
|
|
1335
1342
|
SortDirection,
|
|
1336
1343
|
SortOption,
|