@univerjs-pro/exchange-client v0.5.0-beta.1Docs


Class: RequestService

TODO@Dushusir maybe move to ExchangeClientPlugin plugin for reuse

Implements

Constructors

new RequestService()

new RequestService(_configService, _httpService): RequestService

Parameters

ParameterType
_configServiceIConfigService
_httpServiceHTTPService

Returns

RequestService

Defined in

packages/exchange-client/src/services/request.service.ts:132

Methods

dispose()

dispose(): void

Returns

void

Implementation of

IDisposable.dispose

Defined in

packages/exchange-client/src/services/request.service.ts:138


export()

export(exportRequest): Promise<undefined | IExportResponse>

Parameters

ParameterType
exportRequestIExportRequest

Returns

Promise<undefined | IExportResponse>

Implementation of

IRequestService.export

Defined in

packages/exchange-client/src/services/request.service.ts:208


getTask()

getTask(taskID): Promise<undefined | IGetTaskResponse>

Parameters

ParameterType
taskIDstring

Returns

Promise<undefined | IGetTaskResponse>

Implementation of

IRequestService.getTask

Defined in

packages/exchange-client/src/services/request.service.ts:236


import()

import(importRequest): Promise<undefined | IImportResponse>

Parameters

ParameterType
importRequestIImportRequest

Returns

Promise<undefined | IImportResponse>

Implementation of

IRequestService.import

Defined in

packages/exchange-client/src/services/request.service.ts:181


signUrl()

signUrl(fileID): Promise<undefined | ISignUrlResponse>

Parameters

ParameterType
fileIDstring

Returns

Promise<undefined | ISignUrlResponse>

Implementation of

IRequestService.signUrl

Defined in

packages/exchange-client/src/services/request.service.ts:277


upload()

upload(
   file, 
   size, 
flate): Promise<undefined | IFileUploadResponse>

upload file to server

Parameters

ParameterTypeDefault value
filestring | Fileundefined
sizenumber0
flatebooleanfalse

Returns

Promise<undefined | IFileUploadResponse>

Implementation of

IRequestService.upload

Defined in

packages/exchange-client/src/services/request.service.ts:143