@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.
@@ -132,9 +132,16 @@ export declare enum Event {
132
132
  ROW_ACTION_CREATED = "row_action:created",
133
133
  ACTION_AUTOMATION_STEP_EXECUTED = "action:automation_step:executed",
134
134
  ACTION_CRUD_EXECUTED = "action:crud:executed",
135
- ACTION_AI_AGENT_EXECUTED = "action:ai_agent:executed"
135
+ ACTION_AI_AGENT_EXECUTED = "action:ai_agent:executed",
136
+ WORKSPACE_CREATED = "workspace:created",
137
+ WORKSPACE_UPDATED = "workspace:updated",
138
+ WORKSPACE_DELETED = "workspace:deleted",
139
+ WORKSPACE_APP_CREATED = "workspace_app:created",
140
+ WORKSPACE_APP_UPDATED = "workspace_app:updated",
141
+ WORKSPACE_APP_DELETED = "workspace_app:deleted"
136
142
  }
137
143
  export declare const UserGroupSyncEvents: Event[];
144
+ export declare const WorkspaceResourceEvents: Event[];
138
145
  export declare const AsyncEvents: Event[];
139
146
  export declare const AuditedEventFriendlyName: Record<Event, string | undefined>;
140
147
  export interface BaseEvent {
@@ -12,6 +12,8 @@ export interface Group {
12
12
  export interface TenantGroup extends Group {
13
13
  profession?: string;
14
14
  companySize?: string;
15
+ createdAt?: string | number;
16
+ createdVersion: string;
15
17
  installationId: string;
16
18
  }
17
19
  export interface InstallationGroup extends Group {
@@ -26,3 +26,4 @@ export * from "./backup";
26
26
  export * from "./environmentVariable";
27
27
  export * from "./auditLog";
28
28
  export * from "./rowAction";
29
+ export * from "./workspaceApp";
@@ -9,7 +9,8 @@ export interface ViewUpdatedEvent extends BaseEvent {
9
9
  tableId: string;
10
10
  }
11
11
  export interface ViewDeletedEvent extends BaseEvent {
12
- tableId: string;
12
+ tableId?: string;
13
+ id?: string;
13
14
  }
14
15
  export interface ViewExportedEvent extends BaseEvent {
15
16
  tableId: string;
@@ -0,0 +1,7 @@
1
+ import { BaseEvent } from "./event";
2
+ export interface WorkspaceAppDeletedEvent extends BaseEvent {
3
+ workspaceAppId: string;
4
+ audited: {
5
+ name: string;
6
+ };
7
+ }
@@ -4,7 +4,7 @@ export declare enum FeatureFlag {
4
4
  AI_JS_GENERATION = "AI_JS_GENERATION",
5
5
  AI_TABLE_GENERATION = "AI_TABLE_GENERATION",
6
6
  AI_AGENTS = "AI_AGENTS",
7
- WORKSPACE_APPS = "WORKSPACE_APPS",
7
+ WORKSPACES = "WORKSPACES",
8
8
  DIRECT_LOGIN_TO_ACCOUNT_PORTAL = "DIRECT_LOGIN_TO_ACCOUNT_PORTAL"
9
9
  }
10
10
  export declare const FeatureFlagDefaults: Record<FeatureFlag, boolean>;
@@ -1,4 +1,5 @@
1
- import { GetAutomationActionDefinitionsResponse, GetAutomationTriggerDefinitionsResponse } from "../../api";
1
+ import { GetAutomationActionDefinitionsResponse, GetAutomationTriggerDefinitionsResponse, PublishStatusResource } from "../../api";
2
+ import { Automation } from "../../documents";
2
3
  export interface BlockPath {
3
4
  stepIdx: number;
4
5
  branchIdx: number;
@@ -21,3 +22,6 @@ export interface BlockDefinitions {
21
22
  [BlockDefinitionTypes.CREATABLE_TRIGGER]: Partial<GetAutomationTriggerDefinitionsResponse>;
22
23
  [BlockDefinitionTypes.ACTION]: Partial<GetAutomationActionDefinitionsResponse>;
23
24
  }
25
+ export interface UIAutomation extends Automation {
26
+ publishStatus: PublishStatusResource;
27
+ }
@@ -1,4 +1,6 @@
1
+ import { PublishStatusResource } from "../api";
1
2
  import { WorkspaceApp, Screen } from "../documents";
2
3
  export interface UIWorkspaceApp extends WorkspaceApp {
3
4
  screens: Screen[];
5
+ publishStatus: PublishStatusResource;
4
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@budibase/types",
3
- "version": "3.16.1",
3
+ "version": "3.17.1",
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": "6e6f06e392e69521daaf3f68263cf8c5e7978e03"
30
+ "gitHead": "cdf45e122b198e4d763dd4f0d6cbcfe547441fb6"
31
31
  }