@budibase/types 3.5.3 → 3.6.0
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 +2 -0
- package/dist/api/web/app/oauth2.d.ts +41 -4
- package/dist/api/web/app/rows/search.d.ts +24 -24
- package/dist/api/web/searchFilter.d.ts +6 -2
- package/dist/documents/app/datasource.d.ts +12 -4
- package/dist/documents/app/oauth2.d.ts +9 -4
- package/dist/documents/app/query.d.ts +2 -0
- package/dist/documents/app/table/schema.d.ts +5 -5
- package/dist/documents/global/user.d.ts +2 -1
- package/dist/index.js +11 -11
- package/dist/index.js.map +4 -4
- package/dist/sdk/featureFlag.d.ts +3 -2
- package/dist/sdk/locks.d.ts +2 -1
- package/dist/ui/fields/fields.d.ts +31 -0
- package/dist/ui/fields/index.d.ts +2 -0
- package/dist/ui/fields/validationRules.d.ts +8 -0
- package/dist/ui/index.d.ts +1 -0
- package/package.json +2 -2
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
export declare enum FeatureFlag {
|
|
2
2
|
USE_ZOD_VALIDATOR = "USE_ZOD_VALIDATOR",
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
AI_JS_GENERATION = "AI_JS_GENERATION",
|
|
4
|
+
OAUTH2_CONFIG = "OAUTH2_CONFIG",
|
|
5
|
+
DIRECT_LOGIN_TO_ACCOUNT_PORTAL = "DIRECT_LOGIN_TO_ACCOUNT_PORTAL"
|
|
5
6
|
}
|
|
6
7
|
export declare const FeatureFlagDefaults: Record<FeatureFlag, boolean>;
|
|
7
8
|
export type FeatureFlags = typeof FeatureFlagDefaults;
|
package/dist/sdk/locks.d.ts
CHANGED
|
@@ -19,7 +19,8 @@ export declare enum LockName {
|
|
|
19
19
|
PERSIST_WRITETHROUGH = "persist_writethrough",
|
|
20
20
|
QUOTA_USAGE_EVENT = "quota_usage_event",
|
|
21
21
|
APP_MIGRATION = "app_migrations",
|
|
22
|
-
PROCESS_USER_INVITE = "process_user_invite"
|
|
22
|
+
PROCESS_USER_INVITE = "process_user_invite",
|
|
23
|
+
SQS_SYNC_DEFINITIONS = "sys_sync_definitions"
|
|
23
24
|
}
|
|
24
25
|
export type LockOptions = {
|
|
25
26
|
/**
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { FieldType, FieldConstraints, type FieldSchema, type FormulaResponseType } from "../../";
|
|
2
|
+
export interface UIField {
|
|
3
|
+
name: string;
|
|
4
|
+
type: FieldType;
|
|
5
|
+
subtype?: string;
|
|
6
|
+
icon: string;
|
|
7
|
+
constraints?: {
|
|
8
|
+
type?: string;
|
|
9
|
+
presence?: boolean;
|
|
10
|
+
length?: any;
|
|
11
|
+
inclusion?: string[];
|
|
12
|
+
numericality?: {
|
|
13
|
+
greaterThanOrEqualTo?: string;
|
|
14
|
+
lessThanOrEqualTo?: string;
|
|
15
|
+
};
|
|
16
|
+
datetime?: {
|
|
17
|
+
latest?: string;
|
|
18
|
+
earliest?: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
export type FieldSchemaConfig = FieldSchema & {
|
|
23
|
+
constraints: FieldConstraints;
|
|
24
|
+
fieldName?: string;
|
|
25
|
+
responseType?: FormulaResponseType;
|
|
26
|
+
default?: any;
|
|
27
|
+
fieldId?: string;
|
|
28
|
+
optionColors?: string[];
|
|
29
|
+
schema?: any;
|
|
30
|
+
json?: string;
|
|
31
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FieldType } from "../../documents";
|
|
2
|
+
export interface UIFieldValidationRule {
|
|
3
|
+
type: `${FieldType}`;
|
|
4
|
+
constraint: FieldValidationRuleType;
|
|
5
|
+
value?: string | number | string[];
|
|
6
|
+
error: string;
|
|
7
|
+
}
|
|
8
|
+
export type FieldValidationRuleType = "required" | "minLength" | "maxLength" | "minValue" | "maxValue" | "inclusion" | "equal" | "notEqual" | "regex" | "notRegex" | "contains" | "notContains" | "json" | "maxFileSize" | "maxUploadSize";
|
package/dist/ui/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@budibase/types",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.6.0",
|
|
4
4
|
"description": "Budibase types",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -27,5 +27,5 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"scim-patch": "^0.8.1"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "fcc8291c1f2968ee7fd17bd47ee6ca19181a14a7"
|
|
31
31
|
}
|