mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### What problem does this PR solve? Fix: Optimize code and fix ts type errors #9869 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
63 lines
1.4 KiB
TypeScript
63 lines
1.4 KiB
TypeScript
import { RunningStatus, RunningStatusMap } from '../dataset/constant';
|
|
import { LogTabs } from './dataset-common';
|
|
|
|
export interface DocumentLog {
|
|
fileName: string;
|
|
status: RunningStatus;
|
|
statusName: typeof RunningStatusMap;
|
|
}
|
|
|
|
export interface FileLogsTableProps {
|
|
data: Array<IFileLogItem & DocumentLog>;
|
|
pageCount: number;
|
|
pagination: {
|
|
current: number;
|
|
pageSize: number;
|
|
total: number;
|
|
};
|
|
setPagination: (pagination: { page: number; pageSize: number }) => void;
|
|
loading?: boolean;
|
|
active: (typeof LogTabs)[keyof typeof LogTabs];
|
|
}
|
|
|
|
export interface IOverviewTital {
|
|
cancelled: number;
|
|
failed: number;
|
|
finished: number;
|
|
processing: number;
|
|
}
|
|
|
|
export interface IFileLogItem {
|
|
create_date: string;
|
|
create_time: number;
|
|
document_id: string;
|
|
document_name: string;
|
|
document_suffix: string;
|
|
document_type: string;
|
|
dsl: any;
|
|
path: string[];
|
|
task_id: string;
|
|
id: string;
|
|
name: string;
|
|
kb_id: string;
|
|
operation_status: string;
|
|
parser_id: string;
|
|
pipeline_id: string;
|
|
pipeline_title: string;
|
|
avatar: string;
|
|
process_begin_at: null | 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 IFileLogList {
|
|
logs: Array<IFileLogItem & DocumentLog>;
|
|
total: number;
|
|
}
|