@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.
@@ -1,4 +1,4 @@
1
- import { TimelineData } from '@prefecthq/graphs';
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<TimelineData>;
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 { TimelineData } from '@prefecthq/graphs';
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<TimelineData>;
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<TimelineData>;
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>;
@@ -1,3 +0,0 @@
1
- import { TimelineData } from '@prefecthq/graphs';
2
- import { FlowRunGraphResponse } from '../models/api/FlowRunGraphResponse';
3
- export declare function mapFlowRunGraphResponseToTimelineData(input: FlowRunGraphResponse[]): TimelineData;