@budibase/types 3.2.29 → 3.2.30

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.
@@ -9,7 +9,7 @@ export interface UpdateDatasourceResponse {
9
9
  export interface CreateDatasourceRequest {
10
10
  datasource: Datasource;
11
11
  fetchSchema?: boolean;
12
- tablesFilter: string[];
12
+ tablesFilter?: string[];
13
13
  }
14
14
  export interface VerifyDatasourceRequest {
15
15
  datasource: Datasource;
@@ -235,4 +235,11 @@ export type RowUpdatedTriggerOutputs = {
235
235
  id: string;
236
236
  revision?: string;
237
237
  };
238
+ export type WebhookTriggerInputs = {
239
+ schemaUrl: string;
240
+ triggerUrl: string;
241
+ };
242
+ export type WebhookTriggerOutputs = {
243
+ fields: Record<string, any>;
244
+ };
238
245
  export {};
@@ -126,6 +126,7 @@ export interface Automation extends Document {
126
126
  }
127
127
  interface BaseIOStructure {
128
128
  type?: AutomationIOType;
129
+ subtype?: AutomationIOType;
129
130
  customType?: AutomationCustomIOType;
130
131
  title?: string;
131
132
  description?: string;
@@ -164,7 +165,7 @@ export declare enum AutomationStoppedReason {
164
165
  export interface AutomationResults {
165
166
  automationId?: string;
166
167
  status?: AutomationStatus;
167
- trigger?: any;
168
+ trigger?: AutomationTrigger;
168
169
  steps: {
169
170
  stepId: AutomationTriggerStepId | AutomationActionStepId;
170
171
  inputs: {
@@ -1,5 +1,5 @@
1
1
  import { Hosting } from "../../../sdk";
2
- import { AutomationActionStepId, ActionImplementation, AutomationStepType, AutomationFeature, InputOutputBlock, AutomationTriggerStepId } from "./automation";
2
+ import { AutomationActionStepId, ActionImplementation, AutomationStepType, AutomationFeature, InputOutputBlock, AutomationTriggerStepId, AutomationEventType } from "./automation";
3
3
  import { CollectStepInputs, CollectStepOutputs, CreateRowStepInputs, CreateRowStepOutputs, DelayStepInputs, DelayStepOutputs, DeleteRowStepInputs, DeleteRowStepOutputs, ExecuteQueryStepInputs, ExecuteQueryStepOutputs, ExecuteScriptStepInputs, ExecuteScriptStepOutputs, FilterStepInputs, FilterStepOutputs, QueryRowsStepInputs, QueryRowsStepOutputs, SmtpEmailStepInputs, ServerLogStepInputs, ServerLogStepOutputs, TriggerAutomationStepInputs, TriggerAutomationStepOutputs, UpdateRowStepInputs, UpdateRowStepOutputs, OutgoingWebhookStepInputs, ExternalAppStepOutputs, DiscordStepInputs, SlackStepInputs, ZapierStepInputs, ZapierStepOutputs, MakeIntegrationInputs, n8nStepInputs, BashStepInputs, BashStepOutputs, OpenAIStepInputs, OpenAIStepOutputs, LoopStepInputs, AppActionTriggerInputs, CronTriggerInputs, RowUpdatedTriggerInputs, RowCreatedTriggerInputs, RowDeletedTriggerInputs, BranchStepInputs, BaseAutomationOutputs } from "./StepInputsOutputs";
4
4
  export type ActionImplementations<T extends Hosting> = {
5
5
  [AutomationActionStepId.COLLECT]: ActionImplementation<CollectStepInputs, CollectStepOutputs>;
@@ -27,6 +27,7 @@ export type ActionImplementations<T extends Hosting> = {
27
27
  export interface AutomationStepSchemaBase {
28
28
  name: string;
29
29
  stepTitle?: string;
30
+ event?: AutomationEventType;
30
31
  tagline: string;
31
32
  icon: string;
32
33
  description: string;
@@ -84,7 +85,7 @@ export type AutomationTriggerInputs<T extends AutomationTriggerStepId> = T exten
84
85
  export interface AutomationTriggerSchema<TTrigger extends AutomationTriggerStepId> extends AutomationStepSchemaBase {
85
86
  id: string;
86
87
  type: AutomationStepType.TRIGGER;
87
- event?: string;
88
+ event?: AutomationEventType;
88
89
  cronJobId?: string;
89
90
  stepId: TTrigger;
90
91
  inputs: AutomationTriggerInputs<TTrigger> & Record<string, any>;
@@ -74,6 +74,7 @@ export interface ViewV2 {
74
74
  type?: SortType;
75
75
  };
76
76
  schema?: ViewV2Schema;
77
+ rowHeight?: number;
77
78
  }
78
79
  export interface PublicAPIView extends Omit<ViewV2, "query" | "queryUI"> {
79
80
  query?: UISearchFilter;
@@ -1,4 +1,5 @@
1
1
  import { Document } from "../document";
2
+ import { JSONSchema7 } from "json-schema";
2
3
  export declare enum WebhookActionType {
3
4
  AUTOMATION = "automation"
4
5
  }
@@ -9,5 +10,5 @@ export interface Webhook extends Document {
9
10
  type: WebhookActionType;
10
11
  target: string;
11
12
  };
12
- bodySchema?: any;
13
+ bodySchema?: JSONSchema7;
13
14
  }
@@ -58,6 +58,8 @@ export interface User extends Document {
58
58
  appFavourites?: string[];
59
59
  ssoId?: string;
60
60
  appSort?: string;
61
+ budibaseAccess?: boolean;
62
+ accountPortalAccess?: boolean;
61
63
  }
62
64
  export interface UserBindings extends Document {
63
65
  firstName?: string;
package/dist/index.d.ts CHANGED
@@ -3,3 +3,4 @@ export * from "./sdk";
3
3
  export * from "./api";
4
4
  export * from "./core";
5
5
  export * from "./shared";
6
+ export * from "./ui";