import { PipelineResultSearchParams } from './constant'; export interface ComponentParams { debug_inputs: Record; delay_after_error: number; description: string; exception_default_value: any; exception_goto: any; exception_method: any; inputs: Record; field_name: string; max_retries: number; message_history_window_size: number; outputs: { _created_time: Record; _elapsed_time: Record; name: Record; output_format: { type: string; value: string }; json: { type: string; value: string }; }; persist_logs: boolean; timeout: number; } interface ComponentObject { component_name: string; params: ComponentParams; } export interface IDslComponent { downstream: Array; obj: ComponentObject; upstream: Array; } interface NodeData { label: string; name: string; form?: { outputs?: Record< string, { type: string; value: string | Array> | number; } >; setups?: Array>; chunk_token_size?: number; delimiters?: Array<{ value: string; }>; overlapped_percent?: number; }; } interface EdgeData { isHovered: boolean; } interface Position { x: number; y: number; } interface Measured { height: number; width: number; } interface Node { data: NodeData; dragging: boolean; id: string; measured: Measured; position: Position; selected: boolean; sourcePosition: string; targetPosition: string; type: string; } interface Edge { data: EdgeData; id: string; source: string; sourceHandle: string; target: string; targetHandle: string; } interface GraphData { edges: Edge[]; nodes: Node[]; } export interface IPipelineFileLogDetail { avatar: string; create_date: string; create_time: number; document_id: string; document_name: string; document_suffix: string; document_type: string; dsl: { components: { [key: string]: IDslComponent; }; graph: GraphData; task_id: string; path: Array; }; id: string; kb_id: string; operation_status: string; parser_id: string; pipeline_id: string; pipeline_title: string; process_begin_at: string; process_duration: number; progress: number; progress_msg: string; source_from: string; status: string; task_type: string; tenant_id: string; update_date: string; update_time: number; } export interface IChunk { available_int?: number; // Whether to enable, 0: not enabled, 1: enabled chunk_id?: string; content_with_weight?: string; doc_id?: string; doc_name?: string; image_id?: string; important_kwd?: string[]; question_kwd?: string[]; // keywords tag_kwd?: string[]; positions: number[][]; tag_feas?: Record; text: string; } export interface NavigateToDataflowResultProps { id: string; [PipelineResultSearchParams.KnowledgeId]?: string; [PipelineResultSearchParams.DocumentId]: string; [PipelineResultSearchParams.AgentId]?: string; [PipelineResultSearchParams.AgentTitle]?: string; [PipelineResultSearchParams.IsReadOnly]?: string; [PipelineResultSearchParams.Type]: string; [PipelineResultSearchParams.CreatedBy]?: string; [PipelineResultSearchParams.DocumentExtension]?: string; }