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