@univerjs-pro/exchange-client v0.5.4
Interface: IExchangeService
Defined in: packages/exchange-client/src/services/exchange.service.ts:31
Properties
Property | Type | Defined 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
Parameter | Type |
---|---|
snapshot | IDocumentData |
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
Parameter | Type |
---|---|
unitId | string |
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
Parameter | Type |
---|---|
snapshot | IWorkbookData |
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
Parameter | Type |
---|---|
unitId | string |
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
Parameter | Type |
---|---|
file | string | 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
Parameter | Type |
---|---|
file | string | File |
univerType | UniverType |
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
Parameter | Type |
---|---|
file | string | File |
Returns
Promise
<
| undefined
| IWorkbookData
>