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


Interface: IExchangeService

Properties

PropertyTypeDefined in
requestState$Observable<IRequestState>packages/exchange-client/src/services/exchange.service.ts:33

Methods

exportDOCXBySnapshot()

exportDOCXBySnapshot(snapshot): Promise<undefined | File>

Export DOCX file by document data

Parameters

ParameterType
snapshotIDocumentData

Returns

Promise<undefined | File>

Defined in

packages/exchange-client/src/services/exchange.service.ts:71


exportDOCXByUnitId()

exportDOCXByUnitId(unitId): Promise<undefined | File>

Export DOCX file by unit id

Parameters

ParameterType
unitIdstring

Returns

Promise<undefined | File>

Defined in

packages/exchange-client/src/services/exchange.service.ts:64


exportXLSXBySnapshot()

exportXLSXBySnapshot(snapshot): Promise<undefined | File>

Export XLSX file by workbook data

Parameters

ParameterType
snapshotIWorkbookData

Returns

Promise<undefined | File>

Defined in

packages/exchange-client/src/services/exchange.service.ts:52


exportXLSXByUnitId()

exportXLSXByUnitId(unitId): Promise<undefined | File>

Export XLSX file by unit id

Parameters

ParameterType
unitIdstring

Returns

Promise<undefined | File>

Defined in

packages/exchange-client/src/services/exchange.service.ts:45


importDOCXToSnapshot()

importDOCXToSnapshot(file): Promise<undefined | IDocumentData>

Import DOCX file to document data

Parameters

ParameterType
filestring | File

Returns

Promise<undefined | IDocumentData>

Defined in

packages/exchange-client/src/services/exchange.service.ts:58


importFileToUnitId()

importFileToUnitId(file, univerType): Promise<undefined | string>

Import file to unit id

Parameters

ParameterType
filestring | File
univerTypeUniverType

Returns

Promise<undefined | string>

Defined in

packages/exchange-client/src/services/exchange.service.ts:78


importXLSXToSnapshot()

importXLSXToSnapshot(file): Promise<undefined | IWorkbookData>

Import XLSX file to workbook data

Parameters

ParameterType
filestring | File

Returns

Promise<undefined | IWorkbookData>

Defined in

packages/exchange-client/src/services/exchange.service.ts:39