2024-12-30 17:47:47 +08:00
|
|
|
import { RAGFlowNodeType } from '@/interfaces/database/flow';
|
2024-06-06 11:01:14 +08:00
|
|
|
import { FormInstance } from 'antd';
|
2024-06-05 10:46:06 +08:00
|
|
|
|
|
|
|
|
export interface IOperatorForm {
|
|
|
|
|
onValuesChange?(changedValues: any, values: any): void;
|
2024-06-06 11:01:14 +08:00
|
|
|
form?: FormInstance;
|
2024-12-30 17:47:47 +08:00
|
|
|
node?: RAGFlowNodeType;
|
2024-06-28 08:59:51 +08:00
|
|
|
nodeId?: string;
|
2024-06-05 10:46:06 +08:00
|
|
|
}
|
|
|
|
|
|
2024-07-03 12:00:56 +08:00
|
|
|
export interface IGenerateParameter {
|
|
|
|
|
id?: string;
|
|
|
|
|
key: string;
|
|
|
|
|
component_id?: string;
|
|
|
|
|
}
|
|
|
|
|
|
2024-10-28 18:56:38 +08:00
|
|
|
export interface IInvokeVariable extends IGenerateParameter {
|
|
|
|
|
value?: string;
|
|
|
|
|
}
|
|
|
|
|
|
2024-07-11 18:01:50 +08:00
|
|
|
export type IPosition = { top: number; right: number; idx: number };
|
2024-11-13 14:54:10 +08:00
|
|
|
|
|
|
|
|
export interface BeginQuery {
|
|
|
|
|
key: string;
|
|
|
|
|
type: string;
|
|
|
|
|
value: string;
|
|
|
|
|
optional: boolean;
|
|
|
|
|
name: string;
|
|
|
|
|
options: (number | string | boolean)[];
|
|
|
|
|
}
|