@prefecthq/prefect-ui-library 2.7.2 → 2.7.4
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.
- package/dist/{FlowRunsPageWithDefaultFilter-l3wIyLZg.mjs → FlowRunsPageWithDefaultFilter-prLlwhsw.mjs} +2 -2
- package/dist/{FlowRunsPageWithDefaultFilter-l3wIyLZg.mjs.map → FlowRunsPageWithDefaultFilter-prLlwhsw.mjs.map} +1 -1
- package/dist/{index-fnlPyQFY.mjs → index-ZgdcBPuR.mjs} +675 -666
- package/dist/index-ZgdcBPuR.mjs.map +1 -0
- package/dist/prefect-ui-library.mjs +1 -1
- package/dist/prefect-ui-library.umd.js +27 -27
- package/dist/prefect-ui-library.umd.js.map +1 -1
- package/dist/types/src/automations/types/actions.d.ts +6 -4
- package/dist/types/src/automations/types/api/actions.d.ts +3 -2
- package/dist/types/src/services/can.d.ts +1 -1
- package/package.json +1 -1
- package/dist/index-fnlPyQFY.mjs.map +0 -1
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { Require } from '../../types/utilities';
|
|
2
|
-
export declare const automationActionTypes: readonly ["cancel-flow-run", "pause-deployment", "resume-deployment", "pause-work-queue", "resume-work-queue", "pause-work-pool", "resume-work-pool"], isAutomationActionType: (value: unknown) => value is "cancel-flow-run" | "pause-deployment" | "resume-deployment" | "pause-work-queue" | "resume-work-queue" | "pause-work-pool" | "resume-work-pool";
|
|
2
|
+
export declare const automationActionTypes: readonly ["cancel-flow-run", "suspend-flow-run", "pause-deployment", "resume-deployment", "pause-work-queue", "resume-work-queue", "pause-work-pool", "resume-work-pool"], isAutomationActionType: (value: unknown) => value is "cancel-flow-run" | "suspend-flow-run" | "pause-deployment" | "resume-deployment" | "pause-work-queue" | "resume-work-queue" | "pause-work-pool" | "resume-work-pool";
|
|
3
3
|
export type AutomationActionType = typeof automationActionTypes[number];
|
|
4
4
|
export declare const automationActionTypeLabels: {
|
|
5
|
+
readonly 'cancel-flow-run': "Cancel a flow run";
|
|
6
|
+
readonly 'suspend-flow-run': "Suspend a flow run";
|
|
5
7
|
readonly 'pause-deployment': "Pause a deployment";
|
|
6
8
|
readonly 'resume-deployment': "Resume a deployment";
|
|
7
|
-
readonly 'cancel-flow-run': "Cancel a flow run";
|
|
8
9
|
readonly 'pause-work-queue': "Pause a work queue";
|
|
9
10
|
readonly 'resume-work-queue': "Resume a work queue";
|
|
10
11
|
readonly 'pause-work-pool': "Pause a work pool";
|
|
@@ -17,6 +18,8 @@ export declare const automationActionTypeLabels: {
|
|
|
17
18
|
export type AutomationActionWithType<TType extends AutomationActionType, TRest extends Record<string, unknown> = Record<never, never>> = {
|
|
18
19
|
type: TType;
|
|
19
20
|
} & TRest;
|
|
21
|
+
export type AutomationActionCancelFlowRun = AutomationActionWithType<'cancel-flow-run'>;
|
|
22
|
+
export type AutomationActionSuspendFlowRun = AutomationActionWithType<'suspend-flow-run'>;
|
|
20
23
|
export type AutomationActionPauseDeployment = AutomationActionWithType<'pause-deployment', {
|
|
21
24
|
deploymentId?: string | null;
|
|
22
25
|
}>;
|
|
@@ -25,7 +28,6 @@ export type AutomationActionResumeDeployment = AutomationActionWithType<'resume-
|
|
|
25
28
|
deploymentId?: string | null;
|
|
26
29
|
}>;
|
|
27
30
|
export declare function isAutomationActionResumeDeployment(value: unknown): value is AutomationActionResumeDeployment;
|
|
28
|
-
export type AutomationActionCancelFlowRun = AutomationActionWithType<'cancel-flow-run'>;
|
|
29
31
|
export type AutomationActionPauseWorkQueue = AutomationActionWithType<'pause-work-queue', {
|
|
30
32
|
workQueueId?: string | null;
|
|
31
33
|
}>;
|
|
@@ -38,6 +40,6 @@ export type AutomationActionPauseWorkPool = AutomationActionWithType<'pause-work
|
|
|
38
40
|
export type AutomationActionResumeWorkPool = AutomationActionWithType<'resume-work-pool', {
|
|
39
41
|
workPoolId?: string | null;
|
|
40
42
|
}>;
|
|
41
|
-
export type AutomationAction = AutomationActionCancelFlowRun | AutomationActionPauseDeployment | AutomationActionResumeDeployment | AutomationActionPauseWorkQueue | AutomationActionResumeWorkQueue | AutomationActionPauseWorkPool | AutomationActionResumeWorkPool;
|
|
43
|
+
export type AutomationAction = AutomationActionCancelFlowRun | AutomationActionSuspendFlowRun | AutomationActionPauseDeployment | AutomationActionResumeDeployment | AutomationActionPauseWorkQueue | AutomationActionResumeWorkQueue | AutomationActionPauseWorkPool | AutomationActionResumeWorkPool;
|
|
42
44
|
export type AutomationActionFields<T extends AutomationAction> = Require<Partial<T>, 'type'>;
|
|
43
45
|
export declare function isAutomationAction(value: unknown): value is AutomationAction;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { AutomationActionWithType } from '../../../automations/types/actions';
|
|
2
|
-
export type AutomationActionResponse =
|
|
2
|
+
export type AutomationActionResponse = AutomationActionCancelFlowRunResponse | AutomationActionSuspendFlowRunResponse | AutomationActionPauseDeploymentResponse | AutomationActionResumeDeploymentResponse | AutomationActionPauseWorkQueueResponse | AutomationActionResumeWorkQueueResponse | AutomationActionPauseWorkPoolResponse | AutomationActionResumeWorkPoolResponse;
|
|
3
3
|
export type AutomationActionRequest = AutomationActionResponse;
|
|
4
4
|
export declare function isAutomationActionResponse(value: unknown): value is AutomationActionResponse;
|
|
5
|
+
export type AutomationActionCancelFlowRunResponse = AutomationActionWithType<'cancel-flow-run'>;
|
|
6
|
+
export type AutomationActionSuspendFlowRunResponse = AutomationActionWithType<'suspend-flow-run'>;
|
|
5
7
|
export type AutomationActionPauseDeploymentSelectedResponse = {
|
|
6
8
|
source: 'selected';
|
|
7
9
|
deployment_id: string;
|
|
@@ -18,7 +20,6 @@ export type AutomationActionResumeDeploymentInferredResponse = {
|
|
|
18
20
|
source: 'inferred';
|
|
19
21
|
};
|
|
20
22
|
export type AutomationActionResumeDeploymentResponse = AutomationActionWithType<'resume-deployment', AutomationActionResumeDeploymentSelectedResponse | AutomationActionResumeDeploymentInferredResponse>;
|
|
21
|
-
export type AutomationActionCancelFlowRunResponse = AutomationActionWithType<'cancel-flow-run'>;
|
|
22
23
|
export type AutomationActionPauseWorkQueueSelectedResponse = {
|
|
23
24
|
source: 'selected';
|
|
24
25
|
work_queue_id: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { InjectionKey } from 'vue';
|
|
2
2
|
import { MaybeRef } from '../types/reactivity';
|
|
3
|
-
export declare const workspaceFeatureFlags: readonly ["access:deploymentStatus", "access:workQueueStatus", "access:flowRunInfraOverrides"];
|
|
3
|
+
export declare const workspaceFeatureFlags: readonly ["access:deploymentStatus", "access:workQueueStatus", "access:flowRunInfraOverrides", "access:deploymentScheduleFlowRunInfraOverrides"];
|
|
4
4
|
export type WorkspaceFeatureFlag = typeof workspaceFeatureFlags[number];
|
|
5
5
|
export declare const workspacePermissions: readonly ["create:artifact", "create:automation", "create:block", "create:concurrency_limit", "create:deployment", "create:flow_run", "create:flow", "create:log", "create:notification_policy", "create:saved_search", "create:task_run", "create:variable", "create:work_queue", "create:work_pool_queue", "create:work_pool", "create:workspace_bot_access", "create:workspace_user_access", "delete:artifact", "delete:automation", "delete:block", "delete:concurrency_limit", "delete:deployment", "delete:flow_run", "delete:flow", "delete:notification_policy", "delete:saved_search", "delete:task_run", "delete:work_queue", "delete:work_pool_queue", "delete:work_pool", "delete:workspace_bot_access", "delete:workspace_user_access", "delete:variable", "read:artifact", "read:automation", "read:block", "read:concurrency_limit", "read:deployment", "read:flow_run", "read:flow", "read:log", "read:notification_policy", "read:saved_search", "read:task_run", "read:variable", "read:work_queue", "read:work_pool_queue", "read:work_pool", "read:workspace_bot_access", "read:workspace_settings", "read:workspace_user_access", "run:deployment", "update:automation", "update:block", "update:concurrency_limit", "update:deployment", "update:flow_run", "update:flow", "update:notification_policy", "update:task_run", "update:variable", "update:work_queue", "update:work_pool_queue", "update:work_pool", "update:workspace_bot_access", "update:workspace_settings", "update:workspace_user_access", "update:workspace"];
|
|
6
6
|
export type WorkspacePermission = typeof workspacePermissions[number];
|