mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### What problem does this PR solve? Feat: Initialize the data pipeline canvas. #9869 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
44 lines
892 B
TypeScript
44 lines
892 B
TypeScript
import { RAGFlowNodeType } from '@/interfaces/database/flow';
|
|
import { FormInstance } from 'antd';
|
|
|
|
export interface IOperatorForm {
|
|
onValuesChange?(changedValues: any, values: any): void;
|
|
form?: FormInstance;
|
|
node?: RAGFlowNodeType;
|
|
nodeId?: string;
|
|
}
|
|
|
|
export interface INextOperatorForm {
|
|
node?: RAGFlowNodeType;
|
|
nodeId?: string;
|
|
}
|
|
|
|
export interface IGenerateParameter {
|
|
id?: string;
|
|
key: string;
|
|
component_id?: string;
|
|
}
|
|
|
|
export interface IInvokeVariable extends IGenerateParameter {
|
|
value?: string;
|
|
}
|
|
|
|
export type IPosition = { top: number; right: number; idx: number };
|
|
|
|
export interface BeginQuery {
|
|
key: string;
|
|
type: string;
|
|
value: string;
|
|
optional: boolean;
|
|
name: string;
|
|
options: (number | string | boolean)[];
|
|
}
|
|
|
|
export type IInputs = {
|
|
avatar: string;
|
|
title: string;
|
|
inputs: Record<string, BeginQuery>;
|
|
prologue: string;
|
|
mode: string;
|
|
};
|