@budibase/types 3.2.31 → 3.2.33
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/global/self.d.ts +9 -2
- package/dist/documents/app/app.d.ts +7 -4
- package/dist/documents/global/config.d.ts +1 -0
- package/dist/index.js +12 -0
- package/dist/index.js.map +2 -2
- package/dist/index.js.meta.json +1 -1
- package/dist/sdk/featureFlag.d.ts +8 -3
- package/dist/ui/stores/grid/user.d.ts +3 -0
- package/dist/ui/stores/index.d.ts +2 -0
- package/dist/ui/stores/misc.d.ts +1 -0
- package/dist/ui/stores/preview.d.ts +1 -0
- package/package.json +2 -2
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { License } from "../../../sdk";
|
|
2
|
+
import { Account, DevInfo, User } from "../../../documents";
|
|
3
|
+
import { FeatureFlags } from "@budibase/types";
|
|
2
4
|
export interface GenerateAPIKeyRequest {
|
|
3
5
|
userId?: string;
|
|
4
6
|
}
|
|
@@ -7,5 +9,10 @@ export interface GenerateAPIKeyResponse extends DevInfo {
|
|
|
7
9
|
export interface FetchAPIKeyResponse extends DevInfo {
|
|
8
10
|
}
|
|
9
11
|
export interface GetGlobalSelfResponse extends User {
|
|
10
|
-
flags?:
|
|
12
|
+
flags?: FeatureFlags;
|
|
13
|
+
account?: Account;
|
|
14
|
+
license: License;
|
|
15
|
+
budibaseAccess: boolean;
|
|
16
|
+
accountPortalAccess: boolean;
|
|
17
|
+
csrfToken: boolean;
|
|
11
18
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { User, Document, Plugin, Snippet } from "../";
|
|
1
|
+
import { User, Document, Plugin, Snippet, Theme } from "../";
|
|
2
2
|
import { SocketSession } from "../../sdk";
|
|
3
3
|
export type AppMetadataErrors = {
|
|
4
4
|
[key: string]: string[];
|
|
@@ -14,7 +14,7 @@ export interface App extends Document {
|
|
|
14
14
|
instance: AppInstance;
|
|
15
15
|
tenantId: string;
|
|
16
16
|
status: string;
|
|
17
|
-
theme?:
|
|
17
|
+
theme?: Theme;
|
|
18
18
|
customTheme?: AppCustomTheme;
|
|
19
19
|
revertableVersion?: string;
|
|
20
20
|
lockedBy?: User;
|
|
@@ -35,8 +35,8 @@ export interface AppInstance {
|
|
|
35
35
|
}
|
|
36
36
|
export interface AppNavigation {
|
|
37
37
|
navigation: string;
|
|
38
|
-
title
|
|
39
|
-
navWidth
|
|
38
|
+
title?: string;
|
|
39
|
+
navWidth?: string;
|
|
40
40
|
sticky?: boolean;
|
|
41
41
|
hideLogo?: boolean;
|
|
42
42
|
logoUrl?: string;
|
|
@@ -44,12 +44,15 @@ export interface AppNavigation {
|
|
|
44
44
|
navBackground?: string;
|
|
45
45
|
navTextColor?: string;
|
|
46
46
|
links?: AppNavigationLink[];
|
|
47
|
+
textAlign?: string;
|
|
47
48
|
}
|
|
48
49
|
export interface AppNavigationLink {
|
|
49
50
|
text: string;
|
|
50
51
|
url: string;
|
|
51
52
|
id?: string;
|
|
52
53
|
roleId?: string;
|
|
54
|
+
type?: string;
|
|
55
|
+
subLinks?: AppNavigationLink[];
|
|
53
56
|
}
|
|
54
57
|
export interface AppCustomTheme {
|
|
55
58
|
buttonBorderRadius?: string;
|
|
@@ -110,6 +110,7 @@ export interface AIInnerConfig {
|
|
|
110
110
|
}
|
|
111
111
|
export interface AIConfig extends Config<AIInnerConfig> {
|
|
112
112
|
}
|
|
113
|
+
export declare const isConfig: (config: Object) => config is Config;
|
|
113
114
|
export declare const isSettingsConfig: (config: Config) => config is SettingsConfig;
|
|
114
115
|
export declare const isSMTPConfig: (config: Config) => config is SMTPConfig;
|
|
115
116
|
export declare const isGoogleConfig: (config: Config) => config is GoogleConfig;
|
package/dist/index.js
CHANGED
|
@@ -72,6 +72,7 @@ __export(src_exports, {
|
|
|
72
72
|
EventType: () => EventType,
|
|
73
73
|
Feature: () => Feature,
|
|
74
74
|
FeatureFlag: () => FeatureFlag,
|
|
75
|
+
FeatureFlagDefaults: () => FeatureFlagDefaults,
|
|
75
76
|
FieldType: () => FieldType,
|
|
76
77
|
FilterType: () => FilterType,
|
|
77
78
|
FormulaType: () => FormulaType,
|
|
@@ -153,6 +154,7 @@ __export(src_exports, {
|
|
|
153
154
|
isArraySearchOperator: () => isArraySearchOperator,
|
|
154
155
|
isBasicSearchOperator: () => isBasicSearchOperator,
|
|
155
156
|
isCloudAccount: () => isCloudAccount,
|
|
157
|
+
isConfig: () => isConfig,
|
|
156
158
|
isConstantQuota: () => isConstantQuota,
|
|
157
159
|
isCreatePasswordAccount: () => isCreatePasswordAccount,
|
|
158
160
|
isDocument: () => isDocument,
|
|
@@ -852,6 +854,13 @@ var FeatureFlag = /* @__PURE__ */ ((FeatureFlag2) => {
|
|
|
852
854
|
FeatureFlag2["USE_ZOD_VALIDATOR"] = "USE_ZOD_VALIDATOR";
|
|
853
855
|
return FeatureFlag2;
|
|
854
856
|
})(FeatureFlag || {});
|
|
857
|
+
var FeatureFlagDefaults = {
|
|
858
|
+
["DEFAULT_VALUES" /* DEFAULT_VALUES */]: true,
|
|
859
|
+
["AUTOMATION_BRANCHING" /* AUTOMATION_BRANCHING */]: true,
|
|
860
|
+
["AI_CUSTOM_CONFIGS" /* AI_CUSTOM_CONFIGS */]: true,
|
|
861
|
+
["BUDIBASE_AI" /* BUDIBASE_AI */]: true,
|
|
862
|
+
["USE_ZOD_VALIDATOR" /* USE_ZOD_VALIDATOR */]: false
|
|
863
|
+
};
|
|
855
864
|
|
|
856
865
|
// src/sdk/environmentVariables.ts
|
|
857
866
|
var AppEnvironment = /* @__PURE__ */ ((AppEnvironment2) => {
|
|
@@ -1382,6 +1391,7 @@ var MetadataType = /* @__PURE__ */ ((MetadataType2) => {
|
|
|
1382
1391
|
})(MetadataType || {});
|
|
1383
1392
|
|
|
1384
1393
|
// src/documents/global/config.ts
|
|
1394
|
+
var isConfig = (config) => "type" in config && "config" in config;
|
|
1385
1395
|
var isSettingsConfig = (config) => config.type === "settings" /* SETTINGS */;
|
|
1386
1396
|
var isSMTPConfig = (config) => config.type === "smtp" /* SMTP */;
|
|
1387
1397
|
var isGoogleConfig = (config) => config.type === "google" /* GOOGLE */;
|
|
@@ -1647,6 +1657,7 @@ var EventType = /* @__PURE__ */ ((EventType2) => {
|
|
|
1647
1657
|
EventType,
|
|
1648
1658
|
Feature,
|
|
1649
1659
|
FeatureFlag,
|
|
1660
|
+
FeatureFlagDefaults,
|
|
1650
1661
|
FieldType,
|
|
1651
1662
|
FilterType,
|
|
1652
1663
|
FormulaType,
|
|
@@ -1728,6 +1739,7 @@ var EventType = /* @__PURE__ */ ((EventType2) => {
|
|
|
1728
1739
|
isArraySearchOperator,
|
|
1729
1740
|
isBasicSearchOperator,
|
|
1730
1741
|
isCloudAccount,
|
|
1742
|
+
isConfig,
|
|
1731
1743
|
isConstantQuota,
|
|
1732
1744
|
isCreatePasswordAccount,
|
|
1733
1745
|
isDocument,
|