UNPKG

@prefecthq/prefect-ui-library

Version:

This library is the Vue and Typescript component library for [Prefect 2](https://github.com/PrefectHQ/prefect) and [Prefect Cloud 2](https://www.prefect.io/cloud/). _The components and utilities in this project are not meant to be used independently_.

17 lines (14 loc) 500 B
import { AutomationTrigger } from '@/automations/types/triggers' export interface IAutomationTriggerSequence { triggers: AutomationTrigger[], within: number, } export class AutomationTriggerSequence implements IAutomationTriggerSequence { public readonly type = 'sequence' public triggers: AutomationTrigger[] public within: number public constructor(trigger: Partial<IAutomationTriggerSequence>) { this.within = trigger.within ?? 0 this.triggers = trigger.triggers ?? [] } }