@budibase/types 3.13.6 → 3.13.7

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.
@@ -114,6 +114,15 @@ export type Branch = {
114
114
  id: any;
115
115
  name: string;
116
116
  condition: BranchSearchFilters;
117
+ conditionUI?: {
118
+ groups?: {
119
+ filters?: {
120
+ field: string;
121
+ operator: BasicOperator;
122
+ value: any;
123
+ }[];
124
+ }[];
125
+ };
117
126
  };
118
127
  export type BranchSearchFilters = Pick<SearchFilters, BasicOperator.EQUAL | BasicOperator.NOT_EQUAL | LogicalOperator.AND | LogicalOperator.OR>;
119
128
  export type MakeIntegrationInputs = {
@@ -180,6 +180,8 @@ export interface AutomationStepResultInputs {
180
180
  }
181
181
  export interface AutomationStepResult {
182
182
  id: string;
183
+ name?: string;
184
+ icon?: string;
183
185
  stepId: AutomationActionStepId;
184
186
  inputs: AutomationStepResultInputs;
185
187
  outputs: AutomationStepResultOutputs;
@@ -188,6 +190,8 @@ export type AutomationTriggerResultInputs = Record<string, any>;
188
190
  export type AutomationTriggerResultOutputs = Record<string, any>;
189
191
  export interface AutomationTriggerResult {
190
192
  id: string;
193
+ name?: string;
194
+ icon?: string;
191
195
  stepId: AutomationTriggerStepId;
192
196
  inputs?: AutomationTriggerResultInputs | null;
193
197
  outputs: AutomationTriggerResultOutputs;
@@ -1,6 +1,6 @@
1
1
  import { Hosting } from "../../../sdk";
2
2
  import { AutomationActionStepId, ActionImplementation, AutomationStepType, AutomationFeature, InputOutputBlock, AutomationTriggerStepId, AutomationEventType, AutomationIOType } from "./automation";
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, CronTriggerInputs, RowUpdatedTriggerInputs, RowCreatedTriggerInputs, RowDeletedTriggerInputs, BranchStepInputs, BaseAutomationOutputs, AppActionTriggerOutputs, CronTriggerOutputs, RowDeletedTriggerOutputs, RowCreatedTriggerOutputs, RowUpdatedTriggerOutputs, WebhookTriggerOutputs, RowActionTriggerInputs, ClassifyContentStepOutputs, ClassifyContentStepInputs, PromptLLMStepOutputs, PromptLLMStepInputs, TranslateStepOutputs, TranslateStepInputs, SummariseStepInputs, SummariseStepOutputs, GenerateTextStepInputs, GenerateTextStepOutputs, ExtractFileDataStepOutputs, ExtractFileDataStepInputs, APIRequestStepInputs, APIRequestStepOutputs } from "./StepInputsOutputs";
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, CronTriggerInputs, RowUpdatedTriggerInputs, RowCreatedTriggerInputs, RowDeletedTriggerInputs, BranchStepInputs, BaseAutomationOutputs, AppActionTriggerOutputs, CronTriggerOutputs, RowDeletedTriggerOutputs, RowCreatedTriggerOutputs, RowUpdatedTriggerOutputs, WebhookTriggerOutputs, RowActionTriggerInputs, ClassifyContentStepOutputs, ClassifyContentStepInputs, PromptLLMStepOutputs, PromptLLMStepInputs, TranslateStepOutputs, TranslateStepInputs, SummariseStepInputs, SummariseStepOutputs, GenerateTextStepInputs, GenerateTextStepOutputs, ExtractFileDataStepOutputs, ExtractFileDataStepInputs, APIRequestStepInputs, APIRequestStepOutputs, BranchSearchFilters } from "./StepInputsOutputs";
4
4
  export type ActionImplementations<T extends Hosting> = {
5
5
  [AutomationActionStepId.COLLECT]: ActionImplementation<CollectStepInputs, CollectStepOutputs>;
6
6
  [AutomationActionStepId.CREATE_ROW]: ActionImplementation<CreateRowStepInputs, CreateRowStepOutputs>;
@@ -87,7 +87,11 @@ export type TranslateStep = AutomationStepSchema<AutomationActionStepId.TRANSLAT
87
87
  export type SummariseStep = AutomationStepSchema<AutomationActionStepId.SUMMARISE>;
88
88
  export type GenerateTextStep = AutomationStepSchema<AutomationActionStepId.GENERATE_TEXT>;
89
89
  export type ExtractFileDataStep = AutomationStepSchema<AutomationActionStepId.EXTRACT_FILE_DATA>;
90
- export type BranchStep = AutomationStepSchema<AutomationActionStepId.BRANCH>;
90
+ export type BranchStep = AutomationStepSchema<AutomationActionStepId.BRANCH> & {
91
+ conditionUI?: {
92
+ groups: BranchSearchFilters[];
93
+ };
94
+ };
91
95
  export type AutomationStep = CollectStep | CreateRowStep | DelayStep | DeleteRowStep | ExecuteQueryStep | APIRequestStep | ExecuteScriptStep | ExecuteScriptV2Step | FilterStep | QueryRowsStep | SendEmailSmtpStep | ServerLogStep | TriggerAutomationRunStep | UpdateRowStep | OutgoingWebhookStep | DiscordStep | SlackStep | ZapierStep | IntegromatStep | N8nStep | LoopStep | ExecuteBashStep | OpenAIStep | BranchStep | ClassifyContentStep | PromptLLMStep | TranslateStep | SummariseStep | GenerateTextStep | ExtractFileDataStep;
92
96
  export declare function isBranchStep(step: AutomationStep | AutomationTrigger): step is BranchStep;
93
97
  export declare function isTrigger(step: AutomationStep | AutomationTrigger): step is AutomationTrigger;