@prefecthq/prefect-ui-library
Version:
This library is the Vue and Typescript component library for [Prefect 2](https://github.com/PrefectHQ/prefect) and [Prefect Cloud 2](https://www.prefect.io/cloud/). _The components and utilities in this project are not meant to be used independently_.
42 lines (41 loc) • 1.07 kB
TypeScript
import { RunGraphEdge, RunGraphNodeKind, StateType } from '@prefecthq/graphs';
import { ServerStateType } from '../../models/StateType';
export type RunGraphDataResponse = {
start_time: string;
end_time: string | null;
root_node_ids: string[];
nodes: [string, RunGraphNodeResponse][];
artifacts?: RunGraphArtifactResponse[];
states?: RunGraphStateResponse[];
};
export type RunGraphNodeResponse = {
kind: RunGraphNodeKind;
id: string;
label: string;
state_name: string;
state_type: ServerStateType;
start_time: string;
end_time: string | null;
parents: RunGraphEdge[];
children: RunGraphEdge[];
artifacts?: RunGraphArtifactResponse[];
encapsulating?: RunGraphParent[];
};
export type RunGraphArtifactResponse = {
id: string;
is_latest: boolean;
created: string;
key: string;
type: string;
data?: number;
};
export type RunGraphStateResponse = {
id: string;
timestamp: string;
type: StateType;
name: string;
};
type RunGraphParent = {
id: string;
};
export {};