2024-06-05 10:46:06 +08:00
|
|
|
export type DSLComponents = Record<string, IOperator>;
|
2024-05-27 08:21:30 +08:00
|
|
|
|
|
|
|
|
export interface DSL {
|
|
|
|
|
components: DSLComponents;
|
|
|
|
|
history: any[];
|
|
|
|
|
path: string[];
|
|
|
|
|
answer: any[];
|
|
|
|
|
}
|
|
|
|
|
|
2024-06-05 10:46:06 +08:00
|
|
|
export interface IOperator {
|
|
|
|
|
obj: IOperatorNode;
|
2024-05-27 08:21:30 +08:00
|
|
|
downstream: string[];
|
|
|
|
|
upstream: string[];
|
|
|
|
|
}
|
|
|
|
|
|
2024-06-05 10:46:06 +08:00
|
|
|
export interface IOperatorNode {
|
2024-05-27 08:21:30 +08:00
|
|
|
component_name: string;
|
|
|
|
|
params: Record<string, unknown>;
|
|
|
|
|
}
|