fix: Change document status with @tanstack/react-query #13306 (#2788)

### What problem does this PR solve?

fix: Change document status with @tanstack/react-query #13306

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
- [ ] New Feature (non-breaking change which adds functionality)
- [ ] Documentation Update
- [ ] Refactoring
- [ ] Performance Improvement
- [ ] Other (please describe):
This commit is contained in:
balibabu
2024-10-11 08:45:10 +08:00
committed by GitHub
parent 2c56d274d8
commit a2f9c03a95
20 changed files with 375 additions and 865 deletions

View File

@ -1,3 +1,5 @@
import { RunningStatus } from '@/constants/knowledge';
export interface IDocumentInfo {
chunk_num: number;
create_date: string;
@ -7,13 +9,13 @@ export interface IDocumentInfo {
kb_id: string;
location: string;
name: string;
parser_config: Parserconfig;
parser_config: IParserConfig;
parser_id: string;
process_begin_at: null;
process_duation: number;
progress: number;
progress_msg: string;
run: string;
run: RunningStatus;
size: number;
source_type: string;
status: string;
@ -24,9 +26,11 @@ export interface IDocumentInfo {
update_time: number;
}
interface Parserconfig {
chunk_token_num: number;
export interface IParserConfig {
delimiter: string;
html4excel: boolean;
layout_recognize: boolean;
pages: any[];
raptor: Raptor;
}