Skip to main content
Version: v1

SnapshotStorage Class

Signature

export declare class SnapshotStorage extends ReadDocumentStorageServiceBase

Extends: ReadDocumentStorageServiceBase

Constructors

ConstructorDescription
(constructor)(storage, docTree)Constructs a new instance of the SnapshotStorage class

Properties

PropertyModifiersTypeDescription
docIdoptionalstring
docTreeISnapshotTree | null
storageIDocumentStorageService

Methods

MethodReturn TypeDescription
getSnapshotTree(versionRequested)Promise<ISnapshotTree | null>
getVersions(versionId, count)Promise<IVersion[]>
readBlob(blobId)Promise<ArrayBufferLike>

Constructor Details

(constructor)

Constructs a new instance of the SnapshotStorage class

Signature

constructor(storage: IDocumentStorageService, docTree: ISnapshotTree | null);

Parameters

ParameterTypeDescription
storageIDocumentStorageService
docTreeISnapshotTree | null

Property Details

docId

Signature

protected docId?: string;

Type: string

docTree

Signature

protected readonly docTree: ISnapshotTree | null;

Type: ISnapshotTree | null

storage

Signature

protected readonly storage: IDocumentStorageService;

Type: IDocumentStorageService

Method Details

getSnapshotTree

Signature

getSnapshotTree(versionRequested?: IVersion): Promise<ISnapshotTree | null>;

Parameters

ParameterModifiersTypeDescription
versionRequestedoptionalIVersion

Returns

Return type: Promise<ISnapshotTree | null>

getVersions

Signature

getVersions(versionId: string | null, count: number): Promise<IVersion[]>;

Parameters

ParameterTypeDescription
versionIdstring | null
countnumber

Returns

Return type: Promise<IVersion[]>

readBlob

Signature

readBlob(blobId: string): Promise<ArrayBufferLike>;

Parameters

ParameterTypeDescription
blobIdstring

Returns

Return type: Promise<ArrayBufferLike>