2022-10-25 19:19:18 +02:00
|
|
|
import { AutomationResults, AutomationStep, Document } 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 {
|
|
|
|
inputs: {
|
2022-08-11 14:50:05 +02:00
|
|
|
option: LoopStepType
|
2022-07-20 20:05:54 +02:00
|
|
|
[key: string]: any
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface LoopInput {
|
|
|
|
binding: string[] | string
|
|
|
|
}
|
|
|
|
|
|
|
|
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
|
|
|
|
}
|
2022-07-20 23:38:06 +02:00
|
|
|
|
|
|
|
export interface AutomationMetadata extends Document {
|
|
|
|
errorCount?: number
|
|
|
|
}
|