Fix/upload document limit (#1033)
This commit is contained in:
parent
934def5fcc
commit
a7415ecfd8
8 changed files with 57 additions and 12 deletions
|
|
@ -2,6 +2,7 @@ import type { Fetcher } from 'swr'
|
|||
import { del, get, patch, post, put } from './base'
|
||||
import type {
|
||||
AccountIntegrate, CommonResponse, DataSourceNotion,
|
||||
DocumentsLimitResponse,
|
||||
FileUploadConfigResponse,
|
||||
ICurrentWorkspace,
|
||||
IWorkspace, LangGeniusVersionResponse, Member,
|
||||
|
|
@ -179,3 +180,7 @@ export const submitFreeQuota: Fetcher<{ type: string; redirect_url?: string; res
|
|||
export const fetchFileUploadConfig: Fetcher<FileUploadConfigResponse, { url: string }> = ({ url }) => {
|
||||
return get(url) as Promise<FileUploadConfigResponse>
|
||||
}
|
||||
|
||||
export const fetchDocumentsLimit: Fetcher<DocumentsLimitResponse, string> = (url) => {
|
||||
return get(url) as Promise<DocumentsLimitResponse>
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue