@prefecthq/prefect-ui-library 1.6.31 → 1.6.32
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/{index-192322cc.mjs → index-9c80682e.mjs} +22951 -22330
- package/dist/index-9c80682e.mjs.map +1 -0
- package/dist/prefect-ui-library.mjs +115 -113
- package/dist/prefect-ui-library.umd.js +78 -78
- package/dist/prefect-ui-library.umd.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/demo/services/mockWorkspaceFlowRunsApi.d.ts +1 -0
- package/dist/types/src/components/WorkPoolAverageLateTime.vue.d.ts +19 -0
- package/dist/types/src/compositions/index.d.ts +1 -0
- package/dist/types/src/compositions/useFlows.d.ts +3 -2
- package/dist/types/src/compositions/useInterval.d.ts +5 -0
- package/dist/types/src/models/WorkPool.d.ts +2 -0
- package/dist/types/src/models/api/WorkPoolResponse.d.ts +1 -0
- package/dist/types/src/services/WorkspaceFlowRunsApi.d.ts +2 -0
- package/dist/{viewport.es-ae91b8e8-6ca2c9d1.mjs → viewport.es-ae91b8e8-8b154159.mjs} +2 -2
- package/dist/{viewport.es-ae91b8e8-6ca2c9d1.mjs.map → viewport.es-ae91b8e8-8b154159.mjs.map} +1 -1
- package/package.json +1 -1
- package/dist/index-192322cc.mjs.map +0 -1
|
@@ -20,6 +20,7 @@ export * from './useFlowRunsInfiniteScroll';
|
|
|
20
20
|
export * from './useFlows';
|
|
21
21
|
export * from './useFlowsCount';
|
|
22
22
|
export * from './useForm';
|
|
23
|
+
export * from './useInterval';
|
|
23
24
|
export * from './useJsonRecord';
|
|
24
25
|
export * from './useLastFlowRun';
|
|
25
26
|
export * from './useNextFlowRun';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { SubscriptionOptions } from '@prefecthq/vue-compositions';
|
|
1
2
|
import { FlowsFilter } from '../models';
|
|
2
3
|
import { WorkspaceFlowsApi } from '../services';
|
|
3
4
|
import { MaybeRef } from '../types';
|
|
4
5
|
import { UseEntitySubscription } from '../types/useEntitySubscription';
|
|
5
6
|
export type UseFlows = UseEntitySubscription<WorkspaceFlowsApi['getFlows'], 'flows'>;
|
|
6
|
-
export declare function useFlows(filter: MaybeRef<FlowsFilter | null | undefined
|
|
7
|
-
export declare function useFlows(flowIds: MaybeRef<string[] | null | undefined
|
|
7
|
+
export declare function useFlows(filter: MaybeRef<FlowsFilter | null | undefined>, options?: SubscriptionOptions): UseFlows;
|
|
8
|
+
export declare function useFlows(flowIds: MaybeRef<string[] | null | undefined>, options?: SubscriptionOptions): UseFlows;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { SubscriptionOptions } from '@prefecthq/vue-compositions';
|
|
2
|
+
import { InjectionKey } from 'vue';
|
|
3
|
+
export type UseInterval = Pick<SubscriptionOptions, 'interval'>;
|
|
4
|
+
export declare const subscriptionIntervalKey: InjectionKey<UseInterval>;
|
|
5
|
+
export declare function useInterval(defaults?: UseInterval): UseInterval | undefined;
|
|
@@ -8,6 +8,7 @@ export interface IWorkPool {
|
|
|
8
8
|
description: string | null;
|
|
9
9
|
type: string;
|
|
10
10
|
isPaused: boolean;
|
|
11
|
+
isPushPool: boolean;
|
|
11
12
|
defaultQueueId: string;
|
|
12
13
|
concurrencyLimit: number | null;
|
|
13
14
|
baseJobTemplate: BaseJobTemplateRequest;
|
|
@@ -20,6 +21,7 @@ export declare class WorkPool implements IWorkPool {
|
|
|
20
21
|
description: string | null;
|
|
21
22
|
type: string;
|
|
22
23
|
isPaused: boolean;
|
|
24
|
+
isPushPool: boolean;
|
|
23
25
|
defaultQueueId: string;
|
|
24
26
|
concurrencyLimit: number | null;
|
|
25
27
|
baseJobTemplate: BaseJobTemplateRequest;
|
|
@@ -10,6 +10,7 @@ export interface IWorkspaceFlowRunsApi {
|
|
|
10
10
|
getFlowRuns: (filter: FlowRunsFilter) => Promise<FlowRun[]>;
|
|
11
11
|
getFlowRunsCount: (filter: FlowRunsFilter) => Promise<number>;
|
|
12
12
|
getFlowRunsHistory: (filter: FlowRunsHistoryFilter) => Promise<RunHistory[]>;
|
|
13
|
+
getFlowRunsAverageLateness: (filter: FlowRunsFilter) => Promise<number | null>;
|
|
13
14
|
getFlowRunsGraph: (flowRunId: string) => Promise<GraphNode[]>;
|
|
14
15
|
getFlowRunsTimeline: (flowRunId: string) => Promise<GraphTimelineNode[]>;
|
|
15
16
|
retryFlowRun: (flowRunId: string) => Promise<void>;
|
|
@@ -24,6 +25,7 @@ export declare class WorkspaceFlowRunsApi extends WorkspaceApi implements IWorks
|
|
|
24
25
|
getFlowRuns(filter?: FlowRunsFilter): Promise<FlowRun[]>;
|
|
25
26
|
getFlowRunsCount(filter?: FlowRunsFilter): Promise<number>;
|
|
26
27
|
getFlowRunsHistory(filter: FlowRunsHistoryFilter): Promise<RunHistory[]>;
|
|
28
|
+
getFlowRunsAverageLateness(filter: FlowRunsFilter): Promise<number | null>;
|
|
27
29
|
getFlowRunsGraph(flowRunId: string): Promise<GraphNode[]>;
|
|
28
30
|
getFlowRunsTimeline(id: string): Promise<GraphTimelineNode[]>;
|
|
29
31
|
retryFlowRun(id: string): Promise<void>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { k as O, f as k, $ as b, l as c } from "./index-
|
|
1
|
+
import { k as O, f as k, $ as b, l as c } from "./index-9c80682e.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-
|
|
1538
|
+
//# sourceMappingURL=viewport.es-ae91b8e8-8b154159.mjs.map
|