2025-02-24 17:19:06 +08:00
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
|
2025-02-25 16:57:46 +08:00
|
|
|
export interface INextOperatorForm {
|
|
|
|
|
node?: RAGFlowNodeType;
|
|
|
|
|
nodeId?: string;
|
|
|
|
|
}
|
|
|
|
|
|
2025-02-24 17:19:06 +08:00
|
|
|
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)[];
|
|
|
|
|
}
|