@budibase/types 3.11.0 → 3.11.2

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.
@@ -1,5 +1,5 @@
1
1
  import type { PlanType } from "../../../sdk";
2
- import type { Layout, App, Screen } from "../../../documents";
2
+ import type { Layout, App, Screen, WorkspaceApp } from "../../../documents";
3
3
  import { ReadStream } from "fs";
4
4
  export interface SyncAppResponse {
5
5
  message: string;
@@ -31,10 +31,14 @@ export interface FetchAppDefinitionResponse {
31
31
  screens: Screen[];
32
32
  libraries: string[];
33
33
  }
34
+ interface WorkspaceAppResponse extends WorkspaceApp {
35
+ screens: Screen[];
36
+ }
34
37
  export interface FetchAppPackageResponse {
35
38
  application: App;
36
39
  licenseType: PlanType;
37
40
  screens: Screen[];
41
+ workspaceApps: WorkspaceAppResponse[];
38
42
  layouts: Layout[];
39
43
  clientLibPath: string;
40
44
  hasLock: boolean;
@@ -79,3 +83,4 @@ export interface ExportAppDumpRequest {
79
83
  encryptPassword?: string;
80
84
  }
81
85
  export type ExportAppDumpResponse = ReadStream;
86
+ export {};
@@ -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";
@@ -0,0 +1,28 @@
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
+ }
@@ -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[];