@prefecthq/prefect-ui-library 2.9.5 → 2.9.7

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,7 +1,7 @@
1
1
  import { ServerStateType } from '../../models/StateType';
2
2
  import { SchemaValues } from '../../schemas/types/schemaValues';
3
3
  import { Require } from '../../types/utilities';
4
- export declare const automationActionTypes: readonly ["cancel-flow-run", "suspend-flow-run", "change-flow-run-state", "run-deployment", "pause-deployment", "resume-deployment", "pause-work-queue", "resume-work-queue", "pause-work-pool", "resume-work-pool", "pause-automation", "resume-automation", "send-notification"], isAutomationActionType: (value: unknown) => value is "cancel-flow-run" | "suspend-flow-run" | "change-flow-run-state" | "run-deployment" | "pause-deployment" | "resume-deployment" | "pause-work-queue" | "resume-work-queue" | "pause-work-pool" | "resume-work-pool" | "pause-automation" | "resume-automation" | "send-notification";
4
+ export declare const automationActionTypes: readonly ["cancel-flow-run", "suspend-flow-run", "change-flow-run-state", "run-deployment", "pause-deployment", "resume-deployment", "pause-work-queue", "resume-work-queue", "pause-work-pool", "resume-work-pool", "pause-automation", "resume-automation", "send-notification", "do-nothing"], isAutomationActionType: (value: unknown) => value is "cancel-flow-run" | "suspend-flow-run" | "change-flow-run-state" | "run-deployment" | "pause-deployment" | "resume-deployment" | "pause-work-queue" | "resume-work-queue" | "pause-work-pool" | "resume-work-pool" | "pause-automation" | "resume-automation" | "send-notification" | "do-nothing";
5
5
  export type AutomationActionType = typeof automationActionTypes[number];
6
6
  export declare const automationActionTypeLabels: {
7
7
  readonly 'cancel-flow-run': "Cancel a flow run";
@@ -17,6 +17,7 @@ export declare const automationActionTypeLabels: {
17
17
  readonly 'pause-automation': "Pause an automation";
18
18
  readonly 'resume-automation': "Resume an automation";
19
19
  readonly 'send-notification': "Send a notification";
20
+ readonly 'do-nothing': "Do nothing";
20
21
  };
21
22
  /**
22
23
  * Utility type for creating individual automation action types.
@@ -70,6 +71,7 @@ export type AutomationActionSendNotification = AutomationActionWithType<'send-no
70
71
  subject: string;
71
72
  body: string;
72
73
  }>;
73
- export type AutomationAction = AutomationActionCancelFlowRun | AutomationActionSuspendFlowRun | AutomationActionChangeFlowRunState | AutomationActionRunDeployment | AutomationActionPauseDeployment | AutomationActionResumeDeployment | AutomationActionPauseWorkQueue | AutomationActionResumeWorkQueue | AutomationActionPauseWorkPool | AutomationActionResumeWorkPool | AutomationActionPauseAutomation | AutomationActionResumeAutomation | AutomationActionSendNotification;
74
+ export type AutomationActionDoNothing = AutomationActionWithType<'do-nothing'>;
75
+ export type AutomationAction = AutomationActionCancelFlowRun | AutomationActionSuspendFlowRun | AutomationActionChangeFlowRunState | AutomationActionRunDeployment | AutomationActionPauseDeployment | AutomationActionResumeDeployment | AutomationActionPauseWorkQueue | AutomationActionResumeWorkQueue | AutomationActionPauseWorkPool | AutomationActionResumeWorkPool | AutomationActionPauseAutomation | AutomationActionResumeAutomation | AutomationActionSendNotification | AutomationActionDoNothing;
74
76
  export type AutomationActionFields<T extends AutomationAction> = Require<Partial<T>, 'type'>;
75
77
  export declare function isAutomationAction(value: unknown): value is AutomationAction;
@@ -1,7 +1,7 @@
1
1
  import { AutomationActionWithType } from '../../../automations/types/actions';
2
2
  import { ServerStateType } from '../../../models/StateType';
3
3
  import { SchemaValues } from '../../../schemas/types/schemaValues';
4
- export type AutomationActionResponse = AutomationActionCancelFlowRunResponse | AutomationActionSuspendFlowRunResponse | AutomationActionChangeFlowRunStateResponse | AutomationActionRunDeploymentResponse | AutomationActionPauseDeploymentResponse | AutomationActionResumeDeploymentResponse | AutomationActionPauseWorkQueueResponse | AutomationActionResumeWorkQueueResponse | AutomationActionPauseWorkPoolResponse | AutomationActionResumeWorkPoolResponse | AutomationActionPauseAutomationResponse | AutomationActionResumeAutomationResponse | AutomationActionSendNotificationResponse;
4
+ export type AutomationActionResponse = AutomationActionCancelFlowRunResponse | AutomationActionSuspendFlowRunResponse | AutomationActionChangeFlowRunStateResponse | AutomationActionRunDeploymentResponse | AutomationActionPauseDeploymentResponse | AutomationActionResumeDeploymentResponse | AutomationActionPauseWorkQueueResponse | AutomationActionResumeWorkQueueResponse | AutomationActionPauseWorkPoolResponse | AutomationActionResumeWorkPoolResponse | AutomationActionPauseAutomationResponse | AutomationActionResumeAutomationResponse | AutomationActionSendNotificationResponse | AutomationActionDoNothingResponse;
5
5
  export type AutomationActionRequest = AutomationActionResponse;
6
6
  export declare function isAutomationActionResponse(value: unknown): value is AutomationActionResponse;
7
7
  export type AutomationActionCancelFlowRunResponse = AutomationActionWithType<'cancel-flow-run'>;
@@ -90,3 +90,7 @@ export type AutomationActionSendNotificationResponse = AutomationActionWithType<
90
90
  subject: string;
91
91
  body: string;
92
92
  }>;
93
+ /**
94
+ * Do nothing
95
+ */
96
+ export type AutomationActionDoNothingResponse = AutomationActionWithType<'do-nothing'>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prefecthq/prefect-ui-library",
3
- "version": "2.9.5",
3
+ "version": "2.9.7",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",