@univerjs-pro/exchange-client v0.5.4
Class: ExchangeOperateService
Defined in: packages/exchange-client/src/services/operate.service.ts:98
Extends
Implements
Constructors
new ExchangeOperateService()
new ExchangeOperateService(
_univerInstanceService,
_messageService,
_localeService,
_exchangeService,
_uploadNotificationService,
_logService): ExchangeOperateService
Defined in: packages/exchange-client/src/services/operate.service.ts:109
Parameters
Parameter | Type |
---|---|
_univerInstanceService | IUniverInstanceService |
_messageService | IMessageService |
_localeService | LocaleService |
_exchangeService | ExchangeService |
_uploadNotificationService | UploadNotificationService |
_logService | ILogService |
Returns
Overrides
Properties
Property | Modifier | Type | Default value | Description | Inherited from | Defined in |
---|---|---|---|---|---|---|
_disposed | protected | boolean | false | - | Disposable ._disposed | submodules/univer/packages/core/src/shared/lifecycle.ts:96 |
_logService | readonly | ILogService | undefined | - | - | packages/exchange-client/src/services/operate.service.ts:115 |
progress$ | readonly | Observable <IUploadProgress > | undefined | Observable of upload progress | - | packages/exchange-client/src/services/operate.service.ts:103 |
Methods
dispose()
dispose(): void
Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:109
Returns
void
Implementation of
Inherited from
disposeWithMe()
disposeWithMe(disposable): IDisposable
Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:99
Parameters
Parameter | Type |
---|---|
disposable | DisposableLike |
Returns
Inherited from
ensureNotDisposed()
protected ensureNotDisposed(): void
Defined in: submodules/univer/packages/core/src/shared/lifecycle.ts:103
Returns
void
Inherited from
exportDOCXBySnapshot()
exportDOCXBySnapshot(): Promise<void>
Defined in: packages/exchange-client/src/services/operate.service.ts:155
Export docx file by snapshot
Returns
Promise
<void
>
Implementation of
IExchangeOperateService
.exportDOCXBySnapshot
exportDOCXByUnitId()
exportDOCXByUnitId(
unitId?,
unitName?,
unitType?): Promise<void>
Defined in: packages/exchange-client/src/services/operate.service.ts:151
Export docx file by unitId
Parameters
Parameter | Type |
---|---|
unitId ? | string |
unitName ? | string |
unitType ? | UniverInstanceType |
Returns
Promise
<void
>
Implementation of
IExchangeOperateService
.exportDOCXByUnitId
exportXLSXBySnapshot()
exportXLSXBySnapshot(): Promise<void>
Defined in: packages/exchange-client/src/services/operate.service.ts:196
Export xlsx file by snapshot
Returns
Promise
<void
>
Implementation of
IExchangeOperateService
.exportXLSXBySnapshot
exportXLSXByUnitId()
exportXLSXByUnitId(unitId?, unitName?): Promise<void>
Defined in: packages/exchange-client/src/services/operate.service.ts:184
Export xlsx file by unitId
Parameters
Parameter | Type |
---|---|
unitId ? | string |
unitName ? | string |
Returns
Promise
<void
>
Implementation of
IExchangeOperateService
.exportXLSXByUnitId
importDOCXToSnapshot()
importDOCXToSnapshot(): Promise<void>
Defined in: packages/exchange-client/src/services/operate.service.ts:147
Upload docx file to server, get snapshot and refresh current doc
Returns
Promise
<void
>
Implementation of
IExchangeOperateService
.importDOCXToSnapshot
importDOCXToUnitId()
importDOCXToUnitId(): Promise<undefined | string>
Defined in: packages/exchange-client/src/services/operate.service.ts:139
Upload file to server, get unitId and open unit
Returns
Promise
<undefined
| string
>
Implementation of
IExchangeOperateService
.importDOCXToUnitId
importXLSXToSnapshot()
importXLSXToSnapshot(): Promise<void>
Defined in: packages/exchange-client/src/services/operate.service.ts:168
Upload xlsx file to server, get snapshot and refresh current sheet
Returns
Promise
<void
>
Implementation of
IExchangeOperateService
.importXLSXToSnapshot
importXLSXToUnitId()
importXLSXToUnitId(): Promise<undefined | string>
Defined in: packages/exchange-client/src/services/operate.service.ts:159
Upload file to server, get unitId and open unit
Returns
Promise
<undefined
| string
>
Implementation of
IExchangeOperateService
.importXLSXToUnitId
interrupt()
interrupt(): void
Defined in: packages/exchange-client/src/services/operate.service.ts:129
Returns
void
Implementation of
IExchangeOperateService
.interrupt
registerLink()
registerLink(getLink): void
Defined in: packages/exchange-client/src/services/operate.service.ts:209
Customize the imported Unit URL format according to the needs of your own scene
Parameters
Parameter | Type |
---|---|
getLink | (unitId , univerType ) => string |
Returns
void
Implementation of
IExchangeOperateService
.registerLink
uploadFileToUnitId()
uploadFileToUnitId(types): Promise<
| undefined
| {
type: UniverType;
unitId: string;
}>
Defined in: packages/exchange-client/src/services/operate.service.ts:135
Upload file, supports multiple types
Parameters
Parameter | Type |
---|---|
types | UniverType [] |
Returns
Promise
<
| undefined
| {
type
: UniverType
;
unitId
: string
;
}>