@univerjs-pro/collaboration-client v0.5.4


Class: SnapshotServerOverHTTPService

Defined in: packages/collaboration-client/src/services/snapshot-server/snapshot-server.service.ts:26

Implements

Constructors

new SnapshotServerOverHTTPService()

new SnapshotServerOverHTTPService(_configService, _httpService): SnapshotServerOverHTTPService

Defined in: packages/collaboration-client/src/services/snapshot-server/snapshot-server.service.ts:27

Parameters

ParameterType
_configServiceIConfigService
_httpServiceHTTPService

Returns

SnapshotServerOverHTTPService

Methods

copyFileMeta()

copyFileMeta(): Promise<CopyFileMetaResponse>

Defined in: packages/collaboration-client/src/services/snapshot-server/snapshot-server.service.ts:125

Returns

Promise<CopyFileMetaResponse>

Implementation of

ISnapshotServerService.copyFileMeta


fetchMissingChangesets()

fetchMissingChangesets(_context, params): Promise<FetchMissingChangesetsResponse>

Defined in: packages/collaboration-client/src/services/snapshot-server/snapshot-server.service.ts:76

Fetch missing changeset

Parameters

ParameterType
_contextILogContext
paramsFetchMissingChangesetsRequest

Returns

Promise<FetchMissingChangesetsResponse>

Implementation of

ISnapshotServerService.fetchMissingChangesets


getDeserializedSheetBlock()

getDeserializedSheetBlock(_context, params): Promise<GetDeserializedSheetBlockResponse>

Defined in: packages/collaboration-client/src/services/snapshot-server/snapshot-server.service.ts:68

Parameters

ParameterType
_contextILogContext
paramsGetSheetBlockRequest

Returns

Promise<GetDeserializedSheetBlockResponse>

Implementation of

ISnapshotServerService.getDeserializedSheetBlock


getLatestCsReqIdBySid()

getLatestCsReqIdBySid(): Promise<GetLatestCsReqIdBySidResponse>

Defined in: packages/collaboration-client/src/services/snapshot-server/snapshot-server.service.ts:129

Returns

Promise<GetLatestCsReqIdBySidResponse>

Implementation of

ISnapshotServerService.getLatestCsReqIdBySid


getResourcesRequest()

getResourcesRequest(_context, params): Promise<GetResourcesResponse>

Defined in: packages/collaboration-client/src/services/snapshot-server/snapshot-server.service.ts:104

Parameters

ParameterType
_contextILogContext
paramsGetResourcesRequest

Returns

Promise<GetResourcesResponse>

Implementation of

ISnapshotServerService.getResourcesRequest


getSheetBlock()

getSheetBlock(_context, params): Promise<GetSheetBlockResponse>

Defined in: packages/collaboration-client/src/services/snapshot-server/snapshot-server.service.ts:60

Load sheet block from a database.

Parameters

ParameterType
_contextILogContext
paramsGetSheetBlockRequest

Returns

Promise<GetSheetBlockResponse>

Implementation of

ISnapshotServerService.getSheetBlock


getSnapshotAPIPath()

getSnapshotAPIPath(): string

Defined in: packages/collaboration-client/src/services/snapshot-server/snapshot-server.service.ts:91

Get the prefix of the snapshot server API.

Returns

string

The prefix of the snapshot server API.


getUnitOnRev()

getUnitOnRev(_context, params): Promise<GetUnitOnRevResponse>

Defined in: packages/collaboration-client/src/services/snapshot-server/snapshot-server.service.ts:32

Load snapshot from a database.

Parameters

ParameterType
_contextILogContext
paramsGetUnitOnRevRequest

Returns

Promise<GetUnitOnRevResponse>

Implementation of

ISnapshotServerService.getUnitOnRev


saveChangeset()

saveChangeset(): Promise<SaveChangesetResponse>

Defined in: packages/collaboration-client/src/services/snapshot-server/snapshot-server.service.ts:121

Save changeset to a database.

Returns

Promise<SaveChangesetResponse>

Implementation of

ISnapshotServerService.saveChangeset


saveSheetBlock()

saveSheetBlock(): Promise<SaveSheetBlockResponse>

Defined in: packages/collaboration-client/src/services/snapshot-server/snapshot-server.service.ts:117

Save sheet block to a database.

Returns

Promise<SaveSheetBlockResponse>

Implementation of

ISnapshotServerService.saveSheetBlock


saveSnapshot()

saveSnapshot(): Promise<SaveSnapshotResponse>

Defined in: packages/collaboration-client/src/services/snapshot-server/snapshot-server.service.ts:113

Save snapshot to a database.

Returns

Promise<SaveSnapshotResponse>

Implementation of

ISnapshotServerService.saveSnapshot