@prefecthq/prefect-ui-library 2.0.4 → 2.0.5
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-b0681a2f.mjs → index-71009ec6.mjs} +20455 -23178
- package/dist/index-71009ec6.mjs.map +1 -0
- package/dist/prefect-ui-library.mjs +1 -1
- package/dist/prefect-ui-library.umd.js +76 -591
- package/dist/prefect-ui-library.umd.js.map +1 -1
- package/dist/types/demo/services/mockWorkspaceFlowRunsApi.d.ts +2 -2
- package/dist/types/src/maps/flowRunTimeline.d.ts +4 -0
- package/dist/types/src/maps/index.d.ts +1 -0
- package/dist/types/src/services/Mapper.d.ts +1 -0
- package/dist/types/src/services/WorkspaceFlowRunsApi.d.ts +3 -3
- package/dist/types/src/utilities/timeline.d.ts +0 -3
- package/dist/{viewport.es-3ce16114-fbed2709.mjs → viewport.es-88169ec4-146d955f.mjs} +20 -724
- package/dist/viewport.es-88169ec4-146d955f.mjs.map +1 -0
- package/package.json +2 -2
- package/dist/index-b0681a2f.mjs.map +0 -1
- package/dist/viewport.es-3ce16114-fbed2709.mjs.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GraphTimelineNode } from '@prefecthq/graphs';
|
|
2
2
|
import { MockApi } from '../../src/../demo/services/MockApi';
|
|
3
3
|
import { FlowRun, GraphNode, RunHistory, StateUpdate } from '../../src/models';
|
|
4
4
|
import { FlowRunsFilter, FlowRunsHistoryFilter } from '../../src/models/Filters';
|
|
@@ -16,7 +16,7 @@ export declare class MockWorkspaceFlowRunsApi extends MockApi implements IWorksp
|
|
|
16
16
|
getFlowRunsHistory(filter: FlowRunsHistoryFilter): Promise<RunHistory[]>;
|
|
17
17
|
getFlowRunsAverageLateness(filter: FlowRunsFilter): Promise<number | null>;
|
|
18
18
|
getFlowRunsGraph(graphId: string): Promise<GraphNode[]>;
|
|
19
|
-
getFlowRunsTimeline(): Promise<
|
|
19
|
+
getFlowRunsTimeline(): Promise<GraphTimelineNode[]>;
|
|
20
20
|
retryFlowRun(): Promise<void>;
|
|
21
21
|
setFlowRunState(flowRunId: string, body: StateUpdate): Promise<void>;
|
|
22
22
|
resumeFlowRun(flowRunId: string): Promise<void>;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { GraphTimelineNode } from '@prefecthq/graphs';
|
|
2
|
+
import { FlowRunGraphResponse } from '../models/api/FlowRunGraphResponse';
|
|
3
|
+
import { MapFunction } from '../services/Mapper';
|
|
4
|
+
export declare const mapFlowRunGraphResponseToTimelineNode: MapFunction<FlowRunGraphResponse, GraphTimelineNode>;
|
|
@@ -140,6 +140,7 @@ export declare const maps: {
|
|
|
140
140
|
};
|
|
141
141
|
FlowRunGraphResponse: {
|
|
142
142
|
GraphNode: import("..").MapFunction<import("..").FlowRunGraphResponse, import("..").GraphNode>;
|
|
143
|
+
TimelineNode: import("..").MapFunction<import("..").FlowRunGraphResponse, import("@prefecthq/graphs").GraphTimelineNode>;
|
|
143
144
|
};
|
|
144
145
|
FlowRunHistoryResponse: {
|
|
145
146
|
RunHistory: import("..").MapFunction<import("..").FlowRunHistoryResponse, import("..").RunHistory>;
|
|
@@ -164,6 +164,7 @@ export declare const mapper: Mapper<{
|
|
|
164
164
|
};
|
|
165
165
|
FlowRunGraphResponse: {
|
|
166
166
|
GraphNode: MapFunction<import("..").FlowRunGraphResponse, import("..").GraphNode>;
|
|
167
|
+
TimelineNode: MapFunction<import("..").FlowRunGraphResponse, import("@prefecthq/graphs").GraphTimelineNode>;
|
|
167
168
|
};
|
|
168
169
|
FlowRunHistoryResponse: {
|
|
169
170
|
RunHistory: MapFunction<import("..").FlowRunHistoryResponse, import("..").RunHistory>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GraphTimelineNode } from '@prefecthq/graphs';
|
|
2
2
|
import { StateUpdate } from '../models';
|
|
3
3
|
import { FlowRunsFilter, FlowRunsHistoryFilter } from '../models/Filters';
|
|
4
4
|
import { FlowRun } from '../models/FlowRun';
|
|
@@ -12,7 +12,7 @@ export interface IWorkspaceFlowRunsApi {
|
|
|
12
12
|
getFlowRunsHistory: (filter: FlowRunsHistoryFilter) => Promise<RunHistory[]>;
|
|
13
13
|
getFlowRunsAverageLateness: (filter: FlowRunsFilter) => Promise<number | null>;
|
|
14
14
|
getFlowRunsGraph: (flowRunId: string) => Promise<GraphNode[]>;
|
|
15
|
-
getFlowRunsTimeline: (flowRunId: string) => Promise<
|
|
15
|
+
getFlowRunsTimeline: (flowRunId: string) => Promise<GraphTimelineNode[]>;
|
|
16
16
|
retryFlowRun: (flowRunId: string) => Promise<void>;
|
|
17
17
|
setFlowRunState: (flowRunId: string, body: StateUpdate) => Promise<void>;
|
|
18
18
|
resumeFlowRun: (flowRunId: string) => Promise<void>;
|
|
@@ -27,7 +27,7 @@ export declare class WorkspaceFlowRunsApi extends WorkspaceApi implements IWorks
|
|
|
27
27
|
getFlowRunsHistory(filter: FlowRunsHistoryFilter): Promise<RunHistory[]>;
|
|
28
28
|
getFlowRunsAverageLateness(filter: FlowRunsFilter): Promise<number | null>;
|
|
29
29
|
getFlowRunsGraph(flowRunId: string): Promise<GraphNode[]>;
|
|
30
|
-
getFlowRunsTimeline(id: string): Promise<
|
|
30
|
+
getFlowRunsTimeline(id: string): Promise<GraphTimelineNode[]>;
|
|
31
31
|
retryFlowRun(id: string): Promise<void>;
|
|
32
32
|
setFlowRunState(id: string, body: StateUpdate): Promise<void>;
|
|
33
33
|
resumeFlowRun(id: string): Promise<void>;
|