@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

ParameterType
_configServiceIConfigService
_httpServiceHTTPService

Returns

RequestService

Methods

dispose()

dispose(): void

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

Returns

void

Implementation of

IDisposable.dispose


export()

export(exportRequest): Promise<undefined | IExportResponse>

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

Parameters

ParameterType
exportRequestIExportRequest

Returns

Promise<undefined | IExportResponse>

Implementation of

IRequestService.export


getTask()

getTask(taskID): Promise<undefined | IGetTaskResponse>

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

Parameters

ParameterType
taskIDstring

Returns

Promise<undefined | IGetTaskResponse>

Implementation of

IRequestService.getTask


import()

import(importRequest): Promise<undefined | IImportResponse>

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

Parameters

ParameterType
importRequestIImportRequest

Returns

Promise<undefined | IImportResponse>

Implementation of

IRequestService.import


signUrl()

signUrl(fileID): Promise<undefined | ISignUrlResponse>

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

Parameters

ParameterType
fileIDstring

Returns

Promise<undefined | ISignUrlResponse>

Implementation of

IRequestService.signUrl


upload()

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

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

upload file to server

Parameters

ParameterTypeDefault value
filestring | Fileundefined
sizenumber0
flatebooleanfalse

Returns

Promise<undefined | IFileUploadResponse>

Implementation of

IRequestService.upload