@budibase/types 3.16.1 → 3.17.1

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.
@@ -8,7 +8,6 @@ export interface PublishAppResponse extends DeploymentDoc {
8
8
  }
9
9
  export declare enum PublishResourceState {
10
10
  PUBLISHED = "published",
11
- UNPUBLISHED = "unpublished",
12
11
  DISABLED = "disabled"
13
12
  }
14
13
  export type PublishStatusResource = {
@@ -24,4 +24,5 @@ export * from "./view";
24
24
  export * from "./webhook";
25
25
  export * from "./navigation";
26
26
  export * from "./resource";
27
+ export * from "./workspaceFavourites";
27
28
  export * from "./recaptcha";
@@ -16,6 +16,7 @@ export interface DeleteScreenResponse {
16
16
  export interface ScreenUsage {
17
17
  url: string;
18
18
  _id: string;
19
+ workspaceAppId: string;
19
20
  }
20
21
  export interface UsageInScreensResponse {
21
22
  sourceType: SourceType;
@@ -1,6 +1,6 @@
1
1
  import { App } from "../../../documents";
2
2
  import stream from "node:stream";
3
- export type ServeAppResponse = string;
3
+ export type ServeAppResponse = string | App;
4
4
  interface BuilderPreview extends App {
5
5
  builderPreview: boolean;
6
6
  }
@@ -6,6 +6,8 @@ export interface WorkspaceAppResponse {
6
6
  url: string;
7
7
  navigation: AppNavigation;
8
8
  isDefault: boolean;
9
+ createdAt: string;
10
+ updatedAt: string;
9
11
  disabled?: boolean;
10
12
  }
11
13
  export interface InsertWorkspaceAppRequest {
@@ -0,0 +1,25 @@
1
+ import { DocumentDestroyResponse } from "@budibase/nano";
2
+ import { WorkspaceFavourite } from "../../../documents";
3
+ export declare enum WorkspaceResource {
4
+ DATASOURCE = "datasource",
5
+ QUERY = "query",
6
+ TABLE = "table",
7
+ AUTOMATION = "automation",
8
+ WORKSPACE_APP = "workspace_app",
9
+ VIEW = "view"
10
+ }
11
+ export interface AddWorkspaceFavouriteRequest {
12
+ resourceType: WorkspaceResource;
13
+ resourceId: string;
14
+ }
15
+ export interface AddWorkspaceFavouriteResponse {
16
+ _id: string;
17
+ _rev: string;
18
+ resourceType: WorkspaceResource;
19
+ resourceId: string;
20
+ }
21
+ export interface WorkspaceFavouriteResponse {
22
+ favourites: WorkspaceFavourite[];
23
+ }
24
+ export interface DeleteWorkspaceFavouriteResponse extends DocumentDestroyResponse {
25
+ }
@@ -127,7 +127,7 @@ export interface AutomationTriggerSchema<TTrigger extends AutomationTriggerStepI
127
127
  event?: AutomationEventType;
128
128
  cronJobId?: string;
129
129
  stepId: TTrigger;
130
- inputs: AutomationTriggerInputs<AutomationTriggerStepId>;
130
+ inputs: AutomationTriggerInputs<TTrigger>;
131
131
  }
132
132
  export type AutomationTrigger = AppActionTrigger | CronTrigger | RowActionTrigger | RowDeletedTrigger | RowSavedTrigger | RowUpdatedTrigger | WebhookTrigger;
133
133
  export type AppActionTrigger = AutomationTriggerSchema<AutomationTriggerStepId.APP>;
@@ -22,3 +22,4 @@ export * from "./theme";
22
22
  export * from "./user";
23
23
  export * from "./view";
24
24
  export * from "./webhook";
25
+ export * from "./workspaceFavourite";
@@ -0,0 +1,7 @@
1
+ import { WorkspaceResource } from "../../api";
2
+ import { Document } from "../document";
3
+ export interface WorkspaceFavourite extends Document {
4
+ resourceType: WorkspaceResource;
5
+ resourceId: string;
6
+ createdBy: string;
7
+ }
@@ -40,7 +40,8 @@ export declare enum DocumentType {
40
40
  OAUTH2_CONFIG_LOG = "oauth2log",
41
41
  AGENT_CHAT = "agentchat",
42
42
  AGENT_TOOL_SOURCE = "agenttoolsource",
43
- WORKSPACE_APP = "workspace_app"
43
+ WORKSPACE_APP = "workspace_app",
44
+ WORKSPACE_FAVOURITE = "workspace_favourite"
44
45
  }
45
46
  export declare const DocumentTypesToImport: DocumentType[];
46
47
  export declare enum InternalTable {