@univerjs-procollaboration-clientclassesSnapshotserveroverhttpservice

@univerjs-pro/collaboration-client v0.5.0-beta.1Docs


Class: SnapshotServerOverHTTPService

Implements

Constructors

new SnapshotServerOverHTTPService()

new SnapshotServerOverHTTPService(_configService, _httpService): SnapshotServerOverHTTPService

Parameters

ParameterType
_configServiceIConfigService
_httpServiceHTTPService

Returns

SnapshotServerOverHTTPService

Defined in

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

Methods

copyFileMeta()

copyFileMeta(): Promise<CopyFileMetaResponse>

Returns

Promise<CopyFileMetaResponse>

Implementation of

ISnapshotServerService.copyFileMeta

Defined in

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


fetchMissingChangesets()

fetchMissingChangesets(_context, params): Promise<FetchMissingChangesetsResponse>

Fetch missing changeset

Parameters

ParameterType
_contextILogContext
paramsFetchMissingChangesetsRequest

Returns

Promise<FetchMissingChangesetsResponse>

Implementation of

ISnapshotServerService.fetchMissingChangesets

Defined in

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


getDeserializedSheetBlock()

getDeserializedSheetBlock(_context, params): Promise<GetDeserializedSheetBlockResponse>

Parameters

ParameterType
_contextILogContext
paramsGetSheetBlockRequest

Returns

Promise<GetDeserializedSheetBlockResponse>

Implementation of

ISnapshotServerService.getDeserializedSheetBlock

Defined in

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


getLatestCsReqIdBySid()

getLatestCsReqIdBySid(): Promise<GetLatestCsReqIdBySidResponse>

Returns

Promise<GetLatestCsReqIdBySidResponse>

Implementation of

ISnapshotServerService.getLatestCsReqIdBySid

Defined in

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


getResourcesRequest()

getResourcesRequest(_context, params): Promise<GetResourcesResponse>

Parameters

ParameterType
_contextILogContext
paramsGetResourcesRequest

Returns

Promise<GetResourcesResponse>

Implementation of

ISnapshotServerService.getResourcesRequest

Defined in

packages/collaboration-client/src/services/snapshot-server/snapshot-server.service.ts:100


getSheetBlock()

getSheetBlock(_context, params): Promise<GetSheetBlockResponse>

Load sheet block from a database.

Parameters

ParameterType
_contextILogContext
paramsGetSheetBlockRequest

Returns

Promise<GetSheetBlockResponse>

Implementation of

ISnapshotServerService.getSheetBlock

Defined in

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


getUnitOnRev()

getUnitOnRev(_context, params): Promise<GetUnitOnRevResponse>

Load snapshot from a database.

Parameters

ParameterType
_contextILogContext
paramsGetUnitOnRevRequest

Returns

Promise<GetUnitOnRevResponse>

Implementation of

ISnapshotServerService.getUnitOnRev

Defined in

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


saveChangeset()

saveChangeset(): Promise<SaveChangesetResponse>

Save changeset to a database.

Returns

Promise<SaveChangesetResponse>

Implementation of

ISnapshotServerService.saveChangeset

Defined in

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


saveSheetBlock()

saveSheetBlock(): Promise<SaveSheetBlockResponse>

Save sheet block to a database.

Returns

Promise<SaveSheetBlockResponse>

Implementation of

ISnapshotServerService.saveSheetBlock

Defined in

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


saveSnapshot()

saveSnapshot(): Promise<SaveSnapshotResponse>

Save snapshot to a database.

Returns

Promise<SaveSnapshotResponse>

Implementation of

ISnapshotServerService.saveSnapshot

Defined in

packages/collaboration-client/src/services/snapshot-server/snapshot-server.service.ts:109