@univerjs-pro/exchange-client v0.5.4


Interface: IExchangeService

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

Properties

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

Methods

exportDOCXBySnapshot()

exportDOCXBySnapshot(snapshot): Promise<undefined | File>

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

Export DOCX file by document data

Parameters

ParameterType
snapshotIDocumentData

Returns

Promise<undefined | File>


exportDOCXByUnitId()

exportDOCXByUnitId(unitId): Promise<undefined | File>

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

Export DOCX file by unit id

Parameters

ParameterType
unitIdstring

Returns

Promise<undefined | File>


exportXLSXBySnapshot()

exportXLSXBySnapshot(snapshot): Promise<undefined | File>

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

Export XLSX file by workbook data

Parameters

ParameterType
snapshotIWorkbookData

Returns

Promise<undefined | File>


exportXLSXByUnitId()

exportXLSXByUnitId(unitId): Promise<undefined | File>

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

Export XLSX file by unit id

Parameters

ParameterType
unitIdstring

Returns

Promise<undefined | File>


importDOCXToSnapshot()

importDOCXToSnapshot(file): Promise<
  | undefined
| IDocumentData>

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

Import DOCX file to document data

Parameters

ParameterType
filestring | File

Returns

Promise< | undefined | IDocumentData>


importFileToUnitId()

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

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

Import file to unit id

Parameters

ParameterType
filestring | File
univerTypeUniverType

Returns

Promise<undefined | string>


importXLSXToSnapshot()

importXLSXToSnapshot(file): Promise<
  | undefined
| IWorkbookData>

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

Import XLSX file to workbook data

Parameters

ParameterType
filestring | File

Returns

Promise< | undefined | IWorkbookData>