Skip to main content
Version: v1

IDeltaStorageService Interface

Interface to provide access to stored deltas for a shared object

Signature

export interface IDeltaStorageService

Methods

MethodReturn TypeDescription
get(tenantId, id, from, to, fetchReason)Promise<IDeltasFetchResult>Retrieves all the delta operations within the inclusive sequence number range

Method Details

get

Retrieves all the delta operations within the inclusive sequence number range

Signature

get(tenantId: string, id: string, from: number, // inclusive
to: number, // exclusive
fetchReason?: string): Promise<IDeltasFetchResult>;

Parameters

ParameterModifiersTypeDescription
tenantIdstringId of the tenant.
idstringdocument id.
fromnumberfirst op to retrieve (inclusive)
tonumberfirst op not to retrieve (exclusive end)
fetchReasonoptionalstringReason for fetching the messages. Example, gap between seq number of Op on wire and known seq number. It should not contain any PII. It can be logged by spo which could help in debugging sessions if any issue occurs.

Returns

Return type: Promise<IDeltasFetchResult>