@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_.
30 lines (29 loc) • 1.33 kB
TypeScript
import { AutomationTriggerMatch } from '../../automations/types/api/triggers';
import { Require } from '../../types/utilities';
export declare const automationTriggerEventPosture: readonly ["Reactive", "Proactive"], isAutomationTriggerEventPosture: (value: unknown) => value is "Reactive" | "Proactive";
export declare const DEFAULT_EVENT_TRIGGER_WITHIN = 0;
export declare const DEFAULT_EVENT_TRIGGER_THRESHOLD = 1;
export type AutomationTriggerEventPosture = typeof automationTriggerEventPosture[number];
export declare function getAutomationTriggerEventPostureLabel(posture: AutomationTriggerEventPosture): string;
export type IAutomationTriggerEvent = {
posture: AutomationTriggerEventPosture;
match: AutomationTriggerMatch;
matchRelated: AutomationTriggerMatch;
forEach: string[];
after: string[];
expect: string[];
threshold: number;
within?: number | undefined;
};
export declare class AutomationTriggerEvent implements IAutomationTriggerEvent {
readonly type = "event";
posture: AutomationTriggerEventPosture;
match: AutomationTriggerMatch;
matchRelated: AutomationTriggerMatch;
forEach: string[];
after: string[];
expect: string[];
threshold: number;
within: number;
constructor(trigger: Require<Partial<IAutomationTriggerEvent>, 'posture'>);
}