chore(web): strong type (#1259)
This commit is contained in:
parent
657fa80f4d
commit
52bec63275
4 changed files with 46 additions and 36 deletions
|
|
@ -183,15 +183,22 @@ export type DocumentListResponse = {
|
|||
limit: number
|
||||
}
|
||||
|
||||
export type CreateDocumentReq = {
|
||||
export type DocumentReq = {
|
||||
original_document_id?: string
|
||||
indexing_technique?: string
|
||||
doc_form: 'text_model' | 'qa_model'
|
||||
doc_language: string
|
||||
data_source: DataSource
|
||||
process_rule: ProcessRule
|
||||
}
|
||||
|
||||
export type CreateDocumentReq = DocumentReq & {
|
||||
data_source: DataSource
|
||||
}
|
||||
|
||||
export type IndexingEstimateParams = DocumentReq & Partial<DataSource> & {
|
||||
dataset_id: string
|
||||
}
|
||||
|
||||
export type DataSource = {
|
||||
type: DataSourceType
|
||||
info_list: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue