@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_.
30 lines (29 loc) • 838 B
TypeScript
import { State } from '../models/State';
export type TaskRunInputType = 'constant' | 'parameter' | 'task_run';
export interface IGraphNode {
id: string;
upstreamDependencies: {
inputType: TaskRunInputType;
id: string;
}[];
state: State | null;
expectedStartTime: Date | null;
estimatedRunTime: number | null;
totalRunTime: number | null;
startTime: Date | null;
endTime: Date | null;
}
export declare class GraphNode implements IGraphNode {
readonly id: string;
upstreamDependencies: {
inputType: TaskRunInputType;
id: string;
}[];
state: State | null;
expectedStartTime: Date | null;
estimatedRunTime: number | null;
totalRunTime: number | null;
startTime: Date | null;
endTime: Date | null;
constructor(graphNode: GraphNode);
}