@prefecthq/prefect-ui-library 1.6.31 → 1.6.33
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-d57850eb.mjs} +23398 -22773
- package/dist/index-d57850eb.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/localization/index.d.ts +3 -1
- package/dist/types/src/localization/locale/en.d.ts +3 -1
- 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-be42b24a.mjs} +2 -2
- package/dist/{viewport.es-ae91b8e8-6ca2c9d1.mjs.map → viewport.es-ae91b8e8-be42b24a.mjs.map} +1 -1
- package/package.json +1 -1
- package/dist/index-192322cc.mjs.map +0 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { FlowRunsFilter, WorkPool } from '../models';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
workPool: {
|
|
4
|
+
type: import("vue").PropType<WorkPool>;
|
|
5
|
+
required: true;
|
|
6
|
+
};
|
|
7
|
+
filter: {
|
|
8
|
+
type: import("vue").PropType<FlowRunsFilter>;
|
|
9
|
+
};
|
|
10
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
11
|
+
workPool: {
|
|
12
|
+
type: import("vue").PropType<WorkPool>;
|
|
13
|
+
required: true;
|
|
14
|
+
};
|
|
15
|
+
filter: {
|
|
16
|
+
type: import("vue").PropType<FlowRunsFilter>;
|
|
17
|
+
};
|
|
18
|
+
}>>, {}, {}>;
|
|
19
|
+
export default _default;
|
|
@@ -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;
|
|
@@ -161,7 +161,9 @@ export declare const localization: {
|
|
|
161
161
|
result: string;
|
|
162
162
|
noResults: string;
|
|
163
163
|
none: string;
|
|
164
|
-
|
|
164
|
+
dashboardWorkPoolCardTitle: string;
|
|
165
|
+
dashboardWorkPoolCardEmpty: string;
|
|
166
|
+
dashboardWorkPoolCardViewAll: string;
|
|
165
167
|
percentChangeOverTimePeriod: (percent: string | number) => string;
|
|
166
168
|
infraOverrides: string;
|
|
167
169
|
terminalTaskRunNoArtifacts: string;
|
|
@@ -161,7 +161,9 @@ export declare const en: {
|
|
|
161
161
|
result: string;
|
|
162
162
|
noResults: string;
|
|
163
163
|
none: string;
|
|
164
|
-
|
|
164
|
+
dashboardWorkPoolCardTitle: string;
|
|
165
|
+
dashboardWorkPoolCardEmpty: string;
|
|
166
|
+
dashboardWorkPoolCardViewAll: string;
|
|
165
167
|
percentChangeOverTimePeriod: (percent: string | number) => string;
|
|
166
168
|
infraOverrides: string;
|
|
167
169
|
terminalTaskRunNoArtifacts: string;
|
|
@@ -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-d57850eb.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-be42b24a.mjs.map
|