@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_.
16 lines (15 loc) • 1.35 kB
TypeScript
import { isDeploymentStatusTrigger } from '../../automations/types/deploymentStatusTrigger';
import { isFlowRunStateTrigger } from '../../automations/types/flowRunStateTrigger';
import { AutomationTrigger } from '../../automations/types/triggers';
import { isWorkPoolStatusTrigger } from '../../automations/types/workPoolStatusTrigger';
import { isWorkQueueStatusTrigger } from '../../automations/types/workQueueStatusTrigger';
export declare const automationTriggerTemplates: readonly ["deployment-status", "flow-run-state", "work-pool-status", "work-queue-status", "custom"], isAutomationTriggerTemplate: (value: unknown) => value is "deployment-status" | "flow-run-state" | "work-pool-status" | "work-queue-status" | "custom";
export type AutomationTriggerTemplate = typeof automationTriggerTemplates[number];
export declare function getAutomationTriggerTemplateLabel(template: AutomationTriggerTemplate): string;
export declare const automationTriggerTemplateChecks: {
readonly 'deployment-status': typeof isDeploymentStatusTrigger;
readonly 'flow-run-state': typeof isFlowRunStateTrigger;
readonly 'work-pool-status': typeof isWorkPoolStatusTrigger;
readonly 'work-queue-status': typeof isWorkQueueStatusTrigger;
};
export declare function getAutomationTriggerTemplate(trigger: AutomationTrigger): AutomationTriggerTemplate;