feat: build react flow nodes and edges from mock data #918 (#919)

### What problem does this PR solve?
feat: build react flow nodes and edges from mock data #918

### Type of change

- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
balibabu
2024-05-27 08:21:30 +08:00
committed by GitHub
parent 20b57144b0
commit 55fb96131e
8 changed files with 129 additions and 31 deletions

View File

@ -0,0 +1,19 @@
export type DSLComponents = Record<string, Operator>;
export interface DSL {
components: DSLComponents;
history: any[];
path: string[];
answer: any[];
}
export interface Operator {
obj: OperatorNode;
downstream: string[];
upstream: string[];
}
export interface OperatorNode {
component_name: string;
params: Record<string, unknown>;
}