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