2023-05-17 13:26:07 +02:00
|
|
|
import { AutomationResults, AutomationStep } from "@budibase/types"
|
2022-07-20 20:05:54 +02:00
|
|
|
|
2022-08-11 14:50:05 +02:00
|
|
|
export enum LoopStepType {
|
2022-07-20 20:05:54 +02:00
|
|
|
ARRAY = "Array",
|
|
|
|
STRING = "String",
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface LoopStep extends AutomationStep {
|
2024-01-30 11:00:44 +01:00
|
|
|
inputs: LoopInput
|
2022-07-20 20:05:54 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface LoopInput {
|
2024-01-30 11:00:44 +01:00
|
|
|
option: LoopStepType
|
2024-01-30 11:23:11 +01:00
|
|
|
binding?: string[] | string | number[]
|
2022-07-20 20:05:54 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
export interface TriggerOutput {
|
|
|
|
metadata?: any
|
|
|
|
appId?: string
|
|
|
|
timestamp?: number
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface AutomationContext extends AutomationResults {
|
|
|
|
steps: any[]
|
2023-01-16 17:47:59 +01:00
|
|
|
env?: Record<string, string>
|
2022-07-20 20:05:54 +02:00
|
|
|
trigger: any
|
|
|
|
}
|