@univerjs-pro/exchange-client v0.5.4
Interface: IExchangeOperateService
Defined in: packages/exchange-client/src/services/operate.service.ts:15
Properties
Property | Type | Description | Defined in |
---|---|---|---|
progress$ | Observable <IUploadProgress > | Observable of upload progress | packages/exchange-client/src/services/operate.service.ts:84 |
Methods
exportDOCXBySnapshot()
exportDOCXBySnapshot(): Promise<void>
Defined in: packages/exchange-client/src/services/operate.service.ts:67
Export docx file by snapshot
Returns
Promise
<void
>
exportDOCXByUnitId()
exportDOCXByUnitId(
unitId?,
unitName?,
unitType?): Promise<void>
Defined in: packages/exchange-client/src/services/operate.service.ts:61
Export docx file by unitId
Parameters
Parameter | Type |
---|---|
unitId ? | string |
unitName ? | string |
unitType ? | UniverType |
Returns
Promise
<void
>
exportXLSXBySnapshot()
exportXLSXBySnapshot(): Promise<void>
Defined in: packages/exchange-client/src/services/operate.service.ts:42
Export xlsx file by snapshot
Returns
Promise
<void
>
exportXLSXByUnitId()
exportXLSXByUnitId(
unitId?,
unitName?,
unitType?): Promise<void>
Defined in: packages/exchange-client/src/services/operate.service.ts:36
Export xlsx file by unitId
Parameters
Parameter | Type |
---|---|
unitId ? | string |
unitName ? | string |
unitType ? | UniverInstanceType |
Returns
Promise
<void
>
importDOCXToSnapshot()
importDOCXToSnapshot(): Promise<void>
Defined in: packages/exchange-client/src/services/operate.service.ts:55
Upload docx file to server, get snapshot and refresh current doc
Returns
Promise
<void
>
importDOCXToUnitId()
importDOCXToUnitId(): Promise<undefined | string>
Defined in: packages/exchange-client/src/services/operate.service.ts:49
Upload file to server, get unitId and open unit
Returns
Promise
<undefined
| string
>
importXLSXToSnapshot()
importXLSXToSnapshot(): Promise<void>
Defined in: packages/exchange-client/src/services/operate.service.ts:30
Upload xlsx file to server, get snapshot and refresh current sheet
Returns
Promise
<void
>
importXLSXToUnitId()
importXLSXToUnitId(): Promise<undefined | string>
Defined in: packages/exchange-client/src/services/operate.service.ts:24
Upload file to server, get unitId and open unit
Returns
Promise
<undefined
| string
>
interrupt()
interrupt(): void
Defined in: packages/exchange-client/src/services/operate.service.ts:17
Returns
void
registerLink()
registerLink(getLink): void
Defined in: packages/exchange-client/src/services/operate.service.ts:79
Customize the imported Unit URL format according to the needs of your own scene
Parameters
Parameter | Type |
---|---|
getLink | (unitId , univerType ) => string |
Returns
void
uploadFileToUnitId()
uploadFileToUnitId(types): Promise<
| undefined
| {
type: UniverType;
unitId: string;
}>
Defined in: packages/exchange-client/src/services/operate.service.ts:73
Upload file, supports multiple types
Parameters
Parameter | Type |
---|---|
types | UniverType [] |
Returns
Promise
<
| undefined
| {
type
: UniverType
;
unitId
: string
;
}>