mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-23 08:56:42 +08:00
### What problem does this PR solve? Fix: Bug fixes New search popup style modification Fixed multilingual settings not updating immediately on personal center page Changed overlapped percent to percentage format, with maximum value of 30% ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
54 lines
1.1 KiB
TypeScript
54 lines
1.1 KiB
TypeScript
import { RunningStatus } from '@/constants/knowledge';
|
|
import { DataSourceKey } from './contant';
|
|
|
|
export interface IDataSorceInfo {
|
|
id: DataSourceKey;
|
|
name: string;
|
|
description: string;
|
|
icon: React.ReactNode;
|
|
}
|
|
|
|
export type IDataSource = IDataSourceBase & {
|
|
config: any;
|
|
indexing_start: null | string;
|
|
input_type: string;
|
|
prune_freq: number;
|
|
refresh_freq: number;
|
|
status: string;
|
|
tenant_id: string;
|
|
update_date: string;
|
|
update_time: number;
|
|
};
|
|
|
|
export interface IDataSourceBase {
|
|
id: string;
|
|
name: string;
|
|
source: DataSourceKey;
|
|
}
|
|
|
|
export interface IDataSourceLog {
|
|
connector_id: string;
|
|
error_count: number;
|
|
error_msg: string;
|
|
id: string;
|
|
kb_id: string;
|
|
kb_name: string;
|
|
name: string;
|
|
new_docs_indexed: number;
|
|
poll_range_end: null | string;
|
|
poll_range_start: null | string;
|
|
reindex: string;
|
|
source: DataSourceKey;
|
|
status: RunningStatus;
|
|
tenant_id: string;
|
|
timeout_secs: number;
|
|
}
|
|
|
|
interface IDataSourceInfoItem {
|
|
name: string;
|
|
description: string;
|
|
icon: JSX.Element;
|
|
}
|
|
|
|
export type IDataSourceInfoMap = Record<DataSourceKey, IDataSourceInfoItem>;
|