Feat/customizable file upload config (#818)
This commit is contained in:
parent
b7c29ea1b6
commit
155a4733f6
13 changed files with 122 additions and 83 deletions
|
|
@ -168,3 +168,8 @@ export type PluginProvider = {
|
|||
api_key: string
|
||||
} | null
|
||||
}
|
||||
|
||||
export type FileUploadConfigResponse = {
|
||||
file_size_limit: number
|
||||
batch_count_limit: number
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,14 +24,18 @@ export type DataSet = {
|
|||
word_count: number
|
||||
}
|
||||
|
||||
export type File = {
|
||||
id: string
|
||||
name: string
|
||||
size: number
|
||||
extension: string
|
||||
mime_type: string
|
||||
created_by: string
|
||||
created_at: number
|
||||
export type CustomFile = File & {
|
||||
id?: string
|
||||
extension?: string
|
||||
mime_type?: string
|
||||
created_by?: string
|
||||
created_at?: number
|
||||
}
|
||||
|
||||
export type FileItem = {
|
||||
fileID: string
|
||||
file: CustomFile
|
||||
progress: number
|
||||
}
|
||||
|
||||
export type DataSetListResponse = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue