@prefecthq/prefect-ui-library 2.9.15 → 2.9.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,15 @@
1
+ import { isDeploymentStatusTrigger } from '../../automations/types/deploymentStatusTrigger';
2
+ import { isFlowRunStateTrigger } from '../../automations/types/flowRunStateTrigger';
3
+ import { AutomationTrigger } from '../../automations/types/triggers';
4
+ import { isWorkPoolStatusTrigger } from '../../automations/types/workPoolStatusTrigger';
5
+ import { isWorkQueueStatusTrigger } from '../../automations/types/workQueueStatusTrigger';
1
6
  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";
2
7
  export type AutomationTriggerTemplate = typeof automationTriggerTemplates[number];
8
+ export declare function getAutomationTriggerTemplateLabel(template: AutomationTriggerTemplate): string;
9
+ export declare const automationTriggerTemplateChecks: {
10
+ readonly 'deployment-status': typeof isDeploymentStatusTrigger;
11
+ readonly 'flow-run-state': typeof isFlowRunStateTrigger;
12
+ readonly 'work-pool-status': typeof isWorkPoolStatusTrigger;
13
+ readonly 'work-queue-status': typeof isWorkQueueStatusTrigger;
14
+ };
15
+ export declare function getAutomationTriggerTemplate(trigger: AutomationTrigger): AutomationTriggerTemplate;
@@ -1,3 +1,4 @@
1
1
  import { AutomationTriggerEvent } from '../../automations/types/automationTriggerEvent';
2
2
  export declare function isAutomationTriggerEvent(value: unknown): value is AutomationTriggerEvent;
3
3
  export type AutomationTrigger = AutomationTriggerEvent;
4
+ export declare function isAutomationTrigger(value: unknown): value is AutomationTrigger;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prefecthq/prefect-ui-library",
3
- "version": "2.9.15",
3
+ "version": "2.9.16",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",