feat: document update change to batch api

This commit is contained in:
Joel
2024-12-06 11:53:28 +08:00
parent 91666c4394
commit f3cfcb757e
3 changed files with 68 additions and 6 deletions

View File

@ -614,3 +614,20 @@ export type ChildChunkDetail = {
created_at: number
type: ChildChunkType
}
export type UpdateDocumentParams = {
datasetId: string
documentId: string
}
export enum BatchActionType {
enable = 'enable',
disable = 'disable',
archive = 'archive',
}
export type UpdateDocumentBatchParams = {
datasetId: string
documentIds: string[]
action: BatchActionType
}