feat(web): copy awel flow (#1200)

Co-authored-by: Fangyin Cheng <staneyffer@gmail.com>
This commit is contained in:
Hzh_97
2024-02-28 21:03:23 +08:00
committed by GitHub
parent 0837da48ba
commit 673ddaab5b
68 changed files with 898 additions and 190 deletions

View File

@@ -1,5 +1,7 @@
import { Node } from 'reactflow';
export type FlowState = 'deployed' | 'developing' | 'initializing' | 'testing' | 'disabled' | 'running' | 'load_failed';
export type IFlowUpdateParam = {
name: string;
label: string;
@@ -7,9 +9,13 @@ export type IFlowUpdateParam = {
description: string;
uid?: string;
flow_data?: IFlowData;
state?: FlowState;
};
export type IFlow = {
dag_id: string;
gmt_created: string;
gmt_modified: string;
uid: string;
name: string;
label: string;
@@ -17,6 +23,8 @@ export type IFlow = {
description: string;
flow_data: IFlowData;
source: string;
state?: FlowState;
error_message?: string;
};
export type IFlowResponse = {