budibase/packages/server/src/definitions/automations.ts

28 lines
514 B
TypeScript
Raw Normal View History

2023-05-17 13:26:07 +02: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
binding: string[] | string
}
export interface TriggerOutput {
metadata?: any
appId?: string
timestamp?: number
}
export interface AutomationContext extends AutomationResults {
steps: any[]
env?: Record<string, string>
trigger: any
}