1
0
Fork 0
mirror of synced 2024-09-21 11:53:49 +12:00
budibase/packages/server/src/definitions/automations.ts

30 lines
564 B
TypeScript
Raw Normal View History

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