@budibase/types 3.11.1 → 3.12.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.
@@ -11,6 +11,7 @@ export * from "./layout";
11
11
  export * from "./metadata";
12
12
  export * from "./oauth2";
13
13
  export * from "./permission";
14
+ export * from "./workspaceApp";
14
15
  export * from "./query";
15
16
  export * from "./role";
16
17
  export * from "./rowAction";
@@ -21,3 +22,4 @@ export * from "./table";
21
22
  export * from "./user";
22
23
  export * from "./view";
23
24
  export * from "./webhook";
25
+ export * from "./navigation";
@@ -0,0 +1,4 @@
1
+ import { AppNavigation } from "../../../documents";
2
+ export interface UpdateNavigationRequest {
3
+ navigation: AppNavigation;
4
+ }
@@ -6,6 +6,7 @@ export interface FetchClientScreenRoutingResponse extends FetchScreenRoutingResp
6
6
  }
7
7
  export type FetchScreenResponse = Screen[];
8
8
  export interface SaveScreenRequest extends Screen {
9
+ navigationLinkLabel?: string;
9
10
  }
10
11
  export interface SaveScreenResponse extends Screen {
11
12
  }
@@ -0,0 +1,31 @@
1
+ export interface WorkspaceAppResponse {
2
+ _id: string;
3
+ _rev: string;
4
+ name: string;
5
+ urlPrefix: string;
6
+ icon: string;
7
+ iconColor?: string;
8
+ }
9
+ export interface InsertWorkspaceAppRequest {
10
+ name: string;
11
+ urlPrefix: string;
12
+ icon: string;
13
+ iconColor: string;
14
+ }
15
+ export interface InsertWorkspaceAppResponse {
16
+ workspaceApp: WorkspaceAppResponse;
17
+ }
18
+ export interface UpdateWorkspaceAppRequest {
19
+ _id: string;
20
+ _rev: string;
21
+ name: string;
22
+ urlPrefix: string;
23
+ icon: string;
24
+ iconColor: string;
25
+ }
26
+ export interface UpdateWorkspaceAppResponse {
27
+ workspaceApp: WorkspaceAppResponse;
28
+ }
29
+ export interface FetchWorkspaceAppResponse {
30
+ workspaceApps: WorkspaceAppResponse[];
31
+ }
@@ -53,7 +53,7 @@ export interface AppNavigationLink {
53
53
  url: string;
54
54
  id?: string;
55
55
  roleId?: string;
56
- type?: string;
56
+ type: "link" | "sublinks";
57
57
  subLinks?: AppNavigationLink[];
58
58
  }
59
59
  export interface AppCustomTheme {
@@ -14,7 +14,8 @@ export declare enum AutomationIOType {
14
14
  JSON = "json",
15
15
  DATE = "date",
16
16
  DATETIME = "datetime",
17
- ATTACHMENT = "attachment"
17
+ ATTACHMENT = "attachment",
18
+ LONGFORM = "longform"
18
19
  }
19
20
  export declare enum AutomationCustomIOType {
20
21
  TABLE = "table",
@@ -9,6 +9,7 @@ export * from "./layout";
9
9
  export * from "./links";
10
10
  export * from "./metadata";
11
11
  export * from "./oauth2";
12
+ export * from "./workspaceApp";
12
13
  export * from "./query";
13
14
  export * from "./role";
14
15
  export * from "./row";
@@ -25,6 +25,7 @@ export interface Screen extends Document {
25
25
  pluginAdded?: boolean;
26
26
  onLoad?: EventHandler[];
27
27
  variant?: ScreenVariant;
28
+ workspaceAppId?: string;
28
29
  }
29
30
  export interface ScreenRoutesViewOutput extends Document {
30
31
  id: string;
@@ -0,0 +1,7 @@
1
+ import { Document } from "../document";
2
+ export interface WorkspaceApp extends Document {
3
+ name: string;
4
+ urlPrefix: string;
5
+ icon: string;
6
+ iconColor?: string;
7
+ }
@@ -40,7 +40,8 @@ export declare enum DocumentType {
40
40
  ROW_ACTIONS = "ra",
41
41
  OAUTH2_CONFIG = "oauth2",
42
42
  OAUTH2_CONFIG_LOG = "oauth2log",
43
- AGENT_CHAT = "agentchat"
43
+ AGENT_CHAT = "agentchat",
44
+ WORKSPACE_APP = "workspace_app"
44
45
  }
45
46
  export declare function getDocumentType(id: string): DocumentType | undefined;
46
47
  export declare const DocumentTypesToImport: DocumentType[];