Skip to main content
Version: v1

DocumentStorageServiceProxy Class

Signature​

export declare class DocumentStorageServiceProxy implements IDocumentStorageService

Implements: IDocumentStorageService

Constructors​

ConstructorDescription
(constructor)(internalStorageService)Constructs a new instance of the DocumentStorageServiceProxy class

Properties​

PropertyTypeDescription
internalStorageServiceIDocumentStorageService
policiesIDocumentStorageServicePolicies | undefined
repositoryUrlstring

Methods​

MethodReturn TypeDescription
createBlob(file)Promise<ICreateBlobResponse>
downloadSummary(handle)Promise<ISummaryTree>
getSnapshotTree(version, scenarioName)Promise<ISnapshotTree | null>
getVersions(versionId, count, scenarioName)Promise<IVersion[]>
readBlob(blobId)Promise<ArrayBufferLike>
uploadSummaryWithContext(summary, context)Promise<string>

Constructor Details​

(constructor)​

Constructs a new instance of the DocumentStorageServiceProxy class

Signature​

constructor(internalStorageService: IDocumentStorageService);

Parameters​

ParameterTypeDescription
internalStorageServiceIDocumentStorageService

Property Details​

internalStorageService​

Signature​

protected readonly internalStorageService: IDocumentStorageService;

Type: IDocumentStorageService

policies​

Signature​

get policies(): IDocumentStorageServicePolicies | undefined;

set policies(policies: IDocumentStorageServicePolicies | undefined);

Type: IDocumentStorageServicePolicies | undefined

repositoryUrl​

Signature​

get repositoryUrl(): string;

Type: string

Method Details​

createBlob​

Signature​

createBlob(file: ArrayBufferLike): Promise<ICreateBlobResponse>;

Parameters​

ParameterTypeDescription
fileArrayBufferLike

Returns​

Return type: Promise<ICreateBlobResponse>

downloadSummary​

Signature​

downloadSummary(handle: ISummaryHandle): Promise<ISummaryTree>;

Parameters​

ParameterTypeDescription
handleISummaryHandle

Returns​

Return type: Promise<ISummaryTree>

getSnapshotTree​

Signature​

getSnapshotTree(version?: IVersion, scenarioName?: string): Promise<ISnapshotTree | null>;

Parameters​

ParameterModifiersTypeDescription
versionoptionalIVersion
scenarioNameoptionalstring

Returns​

Return type: Promise<ISnapshotTree | null>

getVersions​

Signature​

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

Parameters​

ParameterModifiersTypeDescription
versionIdstring | null
countnumber
scenarioNameoptionalstring

Returns​

Return type: Promise<IVersion[]>

readBlob​

Signature​

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

Parameters​

ParameterTypeDescription
blobIdstring

Returns​

Return type: Promise<ArrayBufferLike>

uploadSummaryWithContext​

Signature​

uploadSummaryWithContext(summary: ISummaryTree, context: ISummaryContext): Promise<string>;

Parameters​

ParameterTypeDescription
summaryISummaryTree
contextISummaryContext

Returns​

Return type: Promise<string>