@prefecthq/prefect-ui-library 1.6.9 → 1.6.11

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,16 +1,16 @@
1
1
  import { FlowRunsFilter } from '../models/Filters';
2
2
  declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
3
3
  flowRunFilter: FlowRunsFilter;
4
- states?: ("Cancelled" | "Completed" | "Crashed" | "Failed" | "Late" | "Pending" | "Retrying" | "Running" | "Scheduled" | "Resuming" | "Paused" | "Cancelling" | "TimedOut")[] | undefined;
4
+ states?: ("Cancelled" | "Completed" | "Crashed" | "Failed" | "Late" | "Pending" | "Retrying" | "Running" | "Scheduled" | "Resuming" | "Paused" | "Skipped" | "Cancelling" | "TimedOut")[] | undefined;
5
5
  disabled?: boolean | undefined;
6
6
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
7
- "update:states": (value: ("Cancelled" | "Completed" | "Crashed" | "Failed" | "Late" | "Pending" | "Retrying" | "Running" | "Scheduled" | "Resuming" | "Paused" | "Cancelling" | "TimedOut")[]) => void;
7
+ "update:states": (value: ("Cancelled" | "Completed" | "Crashed" | "Failed" | "Late" | "Pending" | "Retrying" | "Running" | "Scheduled" | "Resuming" | "Paused" | "Skipped" | "Cancelling" | "TimedOut")[]) => void;
8
8
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
9
9
  flowRunFilter: FlowRunsFilter;
10
- states?: ("Cancelled" | "Completed" | "Crashed" | "Failed" | "Late" | "Pending" | "Retrying" | "Running" | "Scheduled" | "Resuming" | "Paused" | "Cancelling" | "TimedOut")[] | undefined;
10
+ states?: ("Cancelled" | "Completed" | "Crashed" | "Failed" | "Late" | "Pending" | "Retrying" | "Running" | "Scheduled" | "Resuming" | "Paused" | "Skipped" | "Cancelling" | "TimedOut")[] | undefined;
11
11
  disabled?: boolean | undefined;
12
12
  }>>> & {
13
- "onUpdate:states"?: ((value: ("Cancelled" | "Completed" | "Crashed" | "Failed" | "Late" | "Pending" | "Retrying" | "Running" | "Scheduled" | "Resuming" | "Paused" | "Cancelling" | "TimedOut")[]) => any) | undefined;
13
+ "onUpdate:states"?: ((value: ("Cancelled" | "Completed" | "Crashed" | "Failed" | "Late" | "Pending" | "Retrying" | "Running" | "Scheduled" | "Resuming" | "Paused" | "Skipped" | "Cancelling" | "TimedOut")[]) => any) | undefined;
14
14
  }, {}, {}>, {
15
15
  "empty-message"?(_: {}): any;
16
16
  }>;
@@ -1,5 +1,6 @@
1
+ import { SubscriptionOptions } from '@prefecthq/vue-compositions';
1
2
  import { Ref } from 'vue';
2
3
  import { WorkspaceFlowRunsApi } from '../services';
3
4
  import { UseEntitySubscription } from '../types/useEntitySubscription';
4
5
  export type UseFlowRun = UseEntitySubscription<WorkspaceFlowRunsApi['getFlowRun'], 'flowRun'>;
5
- export declare function useFlowRun(flowRunId: string | Ref<string | null | undefined>): UseFlowRun;
6
+ export declare function useFlowRun(flowRunId: string | Ref<string | null | undefined>, options?: SubscriptionOptions): UseFlowRun;
@@ -175,5 +175,6 @@ export declare const localization: {
175
175
  taskInput: string;
176
176
  workPoolInfrastructureConfigurationInstructions: string;
177
177
  workPoolInfrastructureConfigurationAgent: string;
178
+ disableFlowRunCancel: string;
178
179
  };
179
180
  };
@@ -175,5 +175,6 @@ export declare const en: {
175
175
  taskInput: string;
176
176
  workPoolInfrastructureConfigurationInstructions: string;
177
177
  workPoolInfrastructureConfigurationAgent: string;
178
+ disableFlowRunCancel: string;
178
179
  };
179
180
  };
@@ -3,6 +3,7 @@ export interface IWorkPoolQueue {
3
3
  created: Date;
4
4
  updated: Date;
5
5
  workPoolId: string;
6
+ workPoolName?: string;
6
7
  name: string;
7
8
  description: string | null;
8
9
  isPaused: boolean;
@@ -14,6 +15,7 @@ export declare class WorkPoolQueue implements IWorkPoolQueue {
14
15
  created: Date;
15
16
  updated: Date;
16
17
  workPoolId: string;
18
+ workPoolName?: string;
17
19
  name: string;
18
20
  description: string | null;
19
21
  isPaused: boolean;
@@ -1,8 +1,8 @@
1
+ import { IWorkPoolQueue } from '../models';
1
2
  import { WorkPoolQueue } from '../models/WorkPoolQueue';
2
- import { IWorkQueue } from '../models/WorkQueue';
3
3
  export declare class WorkPoolQueueTableData extends WorkPoolQueue {
4
4
  disabled: boolean;
5
- constructor(workPoolQueue: IWorkQueue & {
5
+ constructor(workPoolQueue: IWorkPoolQueue & {
6
6
  disabled: boolean;
7
7
  });
8
8
  }
@@ -10,6 +10,7 @@ export interface IWorkQueue {
10
10
  concurrencyLimit: number | null;
11
11
  priority: number;
12
12
  workPoolId: string;
13
+ workPoolName?: string;
13
14
  }
14
15
  export declare class WorkQueue implements IWorkQueue {
15
16
  readonly id: string;
@@ -22,6 +23,7 @@ export declare class WorkQueue implements IWorkQueue {
22
23
  concurrencyLimit: number | null;
23
24
  priority: number;
24
25
  workPoolId: string;
26
+ workPoolName?: string;
25
27
  get deprecated(): boolean;
26
28
  constructor(workQueue: IWorkQueue);
27
29
  }
@@ -4,6 +4,7 @@ export type WorkPoolQueueResponse = {
4
4
  created: DateString;
5
5
  updated: DateString;
6
6
  work_pool_id: string;
7
+ work_pool_name?: string;
7
8
  name: string;
8
9
  description: string | null;
9
10
  is_paused: boolean | null;
@@ -11,4 +11,5 @@ export type WorkQueueResponse = {
11
11
  concurrency_limit: number | null;
12
12
  priority: number;
13
13
  work_pool_id: string;
14
+ work_pool_name?: string;
14
15
  };
@@ -1,6 +1,6 @@
1
1
  import { InjectionKey } from 'vue';
2
2
  import { MaybeRef } from '../types/reactivity';
3
- export declare const workspaceFeatureFlags: readonly ["access:collections", "access:workers", "access:variables"];
3
+ export declare const workspaceFeatureFlags: readonly ["access:collections", "access:workers", "access:variables", "access:dashboard"];
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: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];
@@ -1,3 +1,19 @@
1
- export declare const prefectStateNames: readonly ["Scheduled", "Late", "Resuming", "Pending", "Paused", "Running", "Retrying", "Completed", "Cancelled", "Cancelling", "Crashed", "Failed", "TimedOut"];
1
+ export declare const prefectStateNames: readonly ["Scheduled", "Late", "Resuming", "Pending", "Paused", "Running", "Retrying", "Completed", "Skipped", "Cancelled", "Cancelling", "Crashed", "Failed", "TimedOut"];
2
2
  export type PrefectStateNames = typeof prefectStateNames[number];
3
+ export declare const prefectStateNameTypes: {
4
+ readonly Scheduled: "scheduled";
5
+ readonly Late: "scheduled";
6
+ readonly Resuming: "scheduled";
7
+ readonly Pending: "pending";
8
+ readonly Paused: "paused";
9
+ readonly Running: "running";
10
+ readonly Retrying: "running";
11
+ readonly Completed: "completed";
12
+ readonly Skipped: "completed";
13
+ readonly Cancelled: "cancelled";
14
+ readonly Cancelling: "cancelled";
15
+ readonly Crashed: "crashed";
16
+ readonly Failed: "failed";
17
+ readonly TimedOut: "failed";
18
+ };
3
19
  export declare const prefectStateNamesWithoutScheduled: readonly ["Pending", "Paused", "Running", "Retrying", "Completed", "Cancelled", "Cancelling", "Crashed", "Failed", "TimedOut"];
@@ -3,4 +3,8 @@ export declare function mapStateNameToStateType(stateName?: string): {
3
3
  name: string;
4
4
  type: StateType | null;
5
5
  };
6
+ export declare function getStateTypeStyles(type: StateType | null): {
7
+ color: string;
8
+ background: string;
9
+ };
6
10
  export declare function mapStateTypeOrNameToStateName(stateTypeOrName: string): string;
@@ -1,4 +1,4 @@
1
- import { k as O, f as k, $ as b, l as c } from "./index-cad14502.mjs";
1
+ import { k as O, f as k, $ as b, l as c } from "./index-2e3b5fb2.mjs";
2
2
  import "vue";
3
3
  import "@prefecthq/vue-charts";
4
4
  import "@prefecthq/prefect-design";
@@ -1535,4 +1535,4 @@ export {
1535
1535
  C as Viewport,
1536
1536
  N as Wheel
1537
1537
  };
1538
- //# sourceMappingURL=viewport.es-ae91b8e8-6b2d3bf6.mjs.map
1538
+ //# sourceMappingURL=viewport.es-ae91b8e8-920dd30d.mjs.map