@prefecthq/prefect-ui-library 2.2.2 → 2.2.3

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.
@@ -188,6 +188,12 @@ export declare const maps: {
188
188
  PrefectWorkerCollectionResponse: {
189
189
  WorkerCollectionItem: import("..").MapFunction<import("..").PrefectWorkerCollectionResponse, import("..").WorkerCollectionItem[]>;
190
190
  };
191
+ RunGraphDataResponse: {
192
+ RunGraphData: import("..").MapFunction<import("../models/api/RunGraphDataResponse").RunGraphDataResponse, import("@prefecthq/graphs").RunGraphData>;
193
+ };
194
+ RunGraphNodeResponse: {
195
+ RunGraphNode: import("..").MapFunction<import("../models/api/RunGraphDataResponse").RunGraphNodeResponse, import("@prefecthq/graphs").RunGraphNode>;
196
+ };
191
197
  RunHistory: {
192
198
  FlowRunHistoryResponse: import("..").MapFunction<import("..").RunHistory, import("..").FlowRunHistoryResponse>;
193
199
  DivergingBarChartItem: import("..").MapFunction<import("..").RunHistory, import("@prefecthq/vue-charts").DivergingBarChartItem>;
@@ -0,0 +1,5 @@
1
+ import { RunGraphData, RunGraphNode } from '@prefecthq/graphs';
2
+ import { RunGraphDataResponse, RunGraphNodeResponse } from '../models/api/RunGraphDataResponse';
3
+ import { MapFunction } from '../services/Mapper';
4
+ export declare const mapRunGraphNodeResponse: MapFunction<RunGraphNodeResponse, RunGraphNode>;
5
+ export declare const mapRunGraphDataResponse: MapFunction<RunGraphDataResponse, RunGraphData>;
@@ -0,0 +1,19 @@
1
+ import { RunGraphEdge, RunGraphNodeKind } from '@prefecthq/graphs';
2
+ import { ServerStateType } from '../../models/StateType';
3
+ export type RunGraphDataResponse = {
4
+ start_time: string;
5
+ end_time: string | null;
6
+ root_node_ids: string[];
7
+ nodes: [string, RunGraphNodeResponse][];
8
+ };
9
+ export type RunGraphNodeResponse = {
10
+ kind: RunGraphNodeKind;
11
+ id: string;
12
+ label: string;
13
+ state_name: string;
14
+ state_type: ServerStateType;
15
+ start_time: string;
16
+ end_time: string | null;
17
+ parents: RunGraphEdge[];
18
+ children: RunGraphEdge[];
19
+ };
@@ -212,6 +212,12 @@ export declare const mapper: Mapper<{
212
212
  PrefectWorkerCollectionResponse: {
213
213
  WorkerCollectionItem: MapFunction<import("..").PrefectWorkerCollectionResponse, import("..").WorkerCollectionItem[]>;
214
214
  };
215
+ RunGraphDataResponse: {
216
+ RunGraphData: MapFunction<import("../models/api/RunGraphDataResponse").RunGraphDataResponse, import("@prefecthq/graphs").RunGraphData>;
217
+ };
218
+ RunGraphNodeResponse: {
219
+ RunGraphNode: MapFunction<import("../models/api/RunGraphDataResponse").RunGraphNodeResponse, import("@prefecthq/graphs").RunGraphNode>;
220
+ };
215
221
  RunHistory: {
216
222
  FlowRunHistoryResponse: MapFunction<import("..").RunHistory, import("..").FlowRunHistoryResponse>;
217
223
  DivergingBarChartItem: MapFunction<import("..").RunHistory, import("@prefecthq/vue-charts").DivergingBarChartItem>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prefecthq/prefect-ui-library",
3
- "version": "2.2.2",
3
+ "version": "2.2.3",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -45,9 +45,9 @@
45
45
  "@types/lodash.camelcase": "4.3.9",
46
46
  "@types/lodash.debounce": "4.0.9",
47
47
  "@types/lodash.merge": "4.6.9",
48
- "@types/node": "^20.8.10",
49
- "@types/prismjs": "^1.26.2",
50
- "@vitejs/plugin-vue": "4.4.0",
48
+ "@types/node": "^20.9.0",
49
+ "@types/prismjs": "^1.26.3",
50
+ "@vitejs/plugin-vue": "4.4.1",
51
51
  "auto-changelog": "^2.4.0",
52
52
  "autoprefixer": "10.4.16",
53
53
  "eslint": "8.53.0",
@@ -71,10 +71,10 @@
71
71
  "vue-router": "^4.0.12"
72
72
  },
73
73
  "dependencies": {
74
- "@prefecthq/graphs": "2.1.6",
75
- "@types/lodash.isequal": "4.5.7",
74
+ "@prefecthq/graphs": "2.1.7",
75
+ "@types/lodash.isequal": "4.5.8",
76
76
  "axios": "0.27.2",
77
- "cronstrue": "^2.32.0",
77
+ "cronstrue": "^2.43.0",
78
78
  "d3": "7.8.5",
79
79
  "date-fns": "2.30.0",
80
80
  "date-fns-tz": "1.3.7",