@univerjs-pro/exchange-client v0.5.4
Class: RequestService
Defined in: packages/exchange-client/src/services/request.service.ts:131
TODO@Dushusir maybe move to ExchangeClientPlugin plugin for reuse
Implements
Constructors
new RequestService()
new RequestService(_configService, _httpService): RequestService
Defined in: packages/exchange-client/src/services/request.service.ts:132
Parameters
Parameter | Type |
---|---|
_configService | IConfigService |
_httpService | HTTPService |
Returns
Methods
dispose()
dispose(): void
Defined in: packages/exchange-client/src/services/request.service.ts:138
Returns
void
Implementation of
export()
export(exportRequest): Promise<undefined | IExportResponse>
Defined in: packages/exchange-client/src/services/request.service.ts:208
Parameters
Parameter | Type |
---|---|
exportRequest | IExportRequest |
Returns
Promise
<undefined
| IExportResponse
>
Implementation of
getTask()
getTask(taskID): Promise<undefined | IGetTaskResponse>
Defined in: packages/exchange-client/src/services/request.service.ts:236
Parameters
Parameter | Type |
---|---|
taskID | string |
Returns
Promise
<undefined
| IGetTaskResponse
>
Implementation of
import()
import(importRequest): Promise<undefined | IImportResponse>
Defined in: packages/exchange-client/src/services/request.service.ts:181
Parameters
Parameter | Type |
---|---|
importRequest | IImportRequest |
Returns
Promise
<undefined
| IImportResponse
>
Implementation of
signUrl()
signUrl(fileID): Promise<undefined | ISignUrlResponse>
Defined in: packages/exchange-client/src/services/request.service.ts:277
Parameters
Parameter | Type |
---|---|
fileID | string |
Returns
Promise
<undefined
| ISignUrlResponse
>
Implementation of
upload()
upload(
file,
size,
flate): Promise<undefined | IFileUploadResponse>
Defined in: packages/exchange-client/src/services/request.service.ts:143
upload file to server
Parameters
Parameter | Type | Default value |
---|---|---|
file | string | File | undefined |
size | number | 0 |
flate | boolean | false |
Returns
Promise
<undefined
| IFileUploadResponse
>