@fluidframework/driver-utils 2.0.0-dev.7.2.0.203917 → 2.0.0-dev.7.2.0.204906
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api-extractor.json +1 -12
- package/api-report/driver-utils.api.md +9 -1
- package/dist/adapters/compression/compressionTypes.d.ts +6 -0
- package/dist/adapters/compression/compressionTypes.d.ts.map +1 -1
- package/dist/adapters/compression/compressionTypes.js +3 -0
- package/dist/adapters/compression/compressionTypes.js.map +1 -1
- package/dist/adapters/compression/summaryblob/documentStorageServiceSummaryBlobCompressionAdapter.d.ts +4 -0
- package/dist/adapters/compression/summaryblob/documentStorageServiceSummaryBlobCompressionAdapter.d.ts.map +1 -1
- package/dist/adapters/compression/summaryblob/documentStorageServiceSummaryBlobCompressionAdapter.js +4 -0
- package/dist/adapters/compression/summaryblob/documentStorageServiceSummaryBlobCompressionAdapter.js.map +1 -1
- package/dist/adapters/predefinedAdapters.d.ts +1 -0
- package/dist/adapters/predefinedAdapters.d.ts.map +1 -1
- package/dist/adapters/predefinedAdapters.js +1 -0
- package/dist/adapters/predefinedAdapters.js.map +1 -1
- package/dist/blob.d.ts +3 -0
- package/dist/blob.d.ts.map +1 -1
- package/dist/blob.js +3 -0
- package/dist/blob.js.map +1 -1
- package/dist/buildSnapshotTree.d.ts +1 -0
- package/dist/buildSnapshotTree.d.ts.map +1 -1
- package/dist/buildSnapshotTree.js +1 -0
- package/dist/buildSnapshotTree.js.map +1 -1
- package/dist/documentStorageServiceProxy.d.ts +3 -0
- package/dist/documentStorageServiceProxy.d.ts.map +1 -1
- package/dist/documentStorageServiceProxy.js +3 -0
- package/dist/documentStorageServiceProxy.js.map +1 -1
- package/dist/driver-utils-alpha.d.ts +112 -5
- package/dist/driver-utils-beta.d.ts +112 -5
- package/dist/driver-utils-public.d.ts +112 -5
- package/dist/driver-utils-untrimmed.d.ts +112 -5
- package/dist/error.d.ts +4 -1
- package/dist/error.d.ts.map +1 -1
- package/dist/error.js +4 -1
- package/dist/error.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/insecureUrlResolver.d.ts +1 -0
- package/dist/insecureUrlResolver.d.ts.map +1 -1
- package/dist/insecureUrlResolver.js +1 -0
- package/dist/insecureUrlResolver.js.map +1 -1
- package/dist/messageRecognition.d.ts +10 -0
- package/dist/messageRecognition.d.ts.map +1 -1
- package/dist/messageRecognition.js +10 -3
- package/dist/messageRecognition.js.map +1 -1
- package/dist/network.d.ts +49 -3
- package/dist/network.d.ts.map +1 -1
- package/dist/network.js +45 -5
- package/dist/network.js.map +1 -1
- package/dist/networkUtils.d.ts +3 -0
- package/dist/networkUtils.d.ts.map +1 -1
- package/dist/networkUtils.js +3 -0
- package/dist/networkUtils.js.map +1 -1
- package/dist/packageVersion.d.ts +1 -1
- package/dist/packageVersion.js +1 -1
- package/dist/packageVersion.js.map +1 -1
- package/dist/parallelRequests.d.ts +12 -0
- package/dist/parallelRequests.d.ts.map +1 -1
- package/dist/parallelRequests.js +12 -0
- package/dist/parallelRequests.js.map +1 -1
- package/dist/prefetchDocumentStorageService.d.ts +3 -0
- package/dist/prefetchDocumentStorageService.d.ts.map +1 -1
- package/dist/prefetchDocumentStorageService.js +3 -0
- package/dist/prefetchDocumentStorageService.js.map +1 -1
- package/dist/rateLimiter.d.ts +3 -0
- package/dist/rateLimiter.d.ts.map +1 -1
- package/dist/rateLimiter.js +3 -0
- package/dist/rateLimiter.js.map +1 -1
- package/dist/readAndParse.d.ts +1 -0
- package/dist/readAndParse.d.ts.map +1 -1
- package/dist/readAndParse.js +1 -0
- package/dist/readAndParse.js.map +1 -1
- package/dist/runWithRetry.d.ts +5 -0
- package/dist/runWithRetry.d.ts.map +1 -1
- package/dist/runWithRetry.js +4 -0
- package/dist/runWithRetry.js.map +1 -1
- package/dist/summaryForCreateNew.d.ts +2 -0
- package/dist/summaryForCreateNew.d.ts.map +1 -1
- package/dist/summaryForCreateNew.js +2 -0
- package/dist/summaryForCreateNew.js.map +1 -1
- package/dist/treeConversions.d.ts +1 -0
- package/dist/treeConversions.d.ts.map +1 -1
- package/dist/treeConversions.js +1 -0
- package/dist/treeConversions.js.map +1 -1
- package/lib/adapters/compression/compressionTypes.d.ts +6 -0
- package/lib/adapters/compression/compressionTypes.d.ts.map +1 -1
- package/lib/adapters/compression/compressionTypes.js +3 -0
- package/lib/adapters/compression/compressionTypes.js.map +1 -1
- package/lib/adapters/compression/summaryblob/documentStorageServiceSummaryBlobCompressionAdapter.d.ts +4 -0
- package/lib/adapters/compression/summaryblob/documentStorageServiceSummaryBlobCompressionAdapter.d.ts.map +1 -1
- package/lib/adapters/compression/summaryblob/documentStorageServiceSummaryBlobCompressionAdapter.js +4 -0
- package/lib/adapters/compression/summaryblob/documentStorageServiceSummaryBlobCompressionAdapter.js.map +1 -1
- package/lib/adapters/predefinedAdapters.d.ts +1 -0
- package/lib/adapters/predefinedAdapters.d.ts.map +1 -1
- package/lib/adapters/predefinedAdapters.js +1 -0
- package/lib/adapters/predefinedAdapters.js.map +1 -1
- package/lib/blob.d.ts +3 -0
- package/lib/blob.d.ts.map +1 -1
- package/lib/blob.js +3 -0
- package/lib/blob.js.map +1 -1
- package/lib/buildSnapshotTree.d.ts +1 -0
- package/lib/buildSnapshotTree.d.ts.map +1 -1
- package/lib/buildSnapshotTree.js +1 -0
- package/lib/buildSnapshotTree.js.map +1 -1
- package/lib/documentStorageServiceProxy.d.ts +3 -0
- package/lib/documentStorageServiceProxy.d.ts.map +1 -1
- package/lib/documentStorageServiceProxy.js +3 -0
- package/lib/documentStorageServiceProxy.js.map +1 -1
- package/lib/error.d.ts +4 -1
- package/lib/error.d.ts.map +1 -1
- package/lib/error.js +4 -1
- package/lib/error.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/insecureUrlResolver.d.ts +1 -0
- package/lib/insecureUrlResolver.d.ts.map +1 -1
- package/lib/insecureUrlResolver.js +1 -0
- package/lib/insecureUrlResolver.js.map +1 -1
- package/lib/messageRecognition.d.ts +10 -0
- package/lib/messageRecognition.d.ts.map +1 -1
- package/lib/messageRecognition.js +10 -3
- package/lib/messageRecognition.js.map +1 -1
- package/lib/network.d.ts +49 -3
- package/lib/network.d.ts.map +1 -1
- package/lib/network.js +45 -5
- package/lib/network.js.map +1 -1
- package/lib/networkUtils.d.ts +3 -0
- package/lib/networkUtils.d.ts.map +1 -1
- package/lib/networkUtils.js +3 -0
- package/lib/networkUtils.js.map +1 -1
- package/lib/packageVersion.d.ts +1 -1
- package/lib/packageVersion.js +1 -1
- package/lib/packageVersion.js.map +1 -1
- package/lib/parallelRequests.d.ts +12 -0
- package/lib/parallelRequests.d.ts.map +1 -1
- package/lib/parallelRequests.js +12 -0
- package/lib/parallelRequests.js.map +1 -1
- package/lib/prefetchDocumentStorageService.d.ts +3 -0
- package/lib/prefetchDocumentStorageService.d.ts.map +1 -1
- package/lib/prefetchDocumentStorageService.js +3 -0
- package/lib/prefetchDocumentStorageService.js.map +1 -1
- package/lib/rateLimiter.d.ts +3 -0
- package/lib/rateLimiter.d.ts.map +1 -1
- package/lib/rateLimiter.js +3 -0
- package/lib/rateLimiter.js.map +1 -1
- package/lib/readAndParse.d.ts +1 -0
- package/lib/readAndParse.d.ts.map +1 -1
- package/lib/readAndParse.js +1 -0
- package/lib/readAndParse.js.map +1 -1
- package/lib/runWithRetry.d.ts +5 -0
- package/lib/runWithRetry.d.ts.map +1 -1
- package/lib/runWithRetry.js +4 -0
- package/lib/runWithRetry.js.map +1 -1
- package/lib/summaryForCreateNew.d.ts +2 -0
- package/lib/summaryForCreateNew.d.ts.map +1 -1
- package/lib/summaryForCreateNew.js +2 -0
- package/lib/summaryForCreateNew.js.map +1 -1
- package/lib/treeConversions.d.ts +1 -0
- package/lib/treeConversions.d.ts.map +1 -1
- package/lib/treeConversions.js +1 -0
- package/lib/treeConversions.js.map +1 -1
- package/package.json +7 -7
- package/src/adapters/compression/compressionTypes.ts +6 -0
- package/src/adapters/compression/summaryblob/documentStorageServiceSummaryBlobCompressionAdapter.ts +4 -0
- package/src/adapters/predefinedAdapters.ts +1 -0
- package/src/blob.ts +3 -0
- package/src/buildSnapshotTree.ts +1 -0
- package/src/documentStorageServiceProxy.ts +3 -0
- package/src/error.ts +4 -1
- package/src/index.ts +1 -0
- package/src/insecureUrlResolver.ts +1 -0
- package/src/messageRecognition.ts +10 -3
- package/src/network.ts +49 -6
- package/src/networkUtils.ts +3 -0
- package/src/packageVersion.ts +1 -1
- package/src/parallelRequests.ts +12 -0
- package/src/prefetchDocumentStorageService.ts +3 -0
- package/src/rateLimiter.ts +3 -0
- package/src/readAndParse.ts +1 -0
- package/src/runWithRetry.ts +5 -0
- package/src/summaryForCreateNew.ts +2 -0
- package/src/treeConversions.ts +1 -0
|
@@ -38,11 +38,13 @@ import { LoaderCachingPolicy } from '@fluidframework/driver-definitions';
|
|
|
38
38
|
* @param documentServiceFactory - The document service factory to apply compression to.
|
|
39
39
|
* @param config - The compression configuration.
|
|
40
40
|
* @returns The document service factory possibly with compression applied.
|
|
41
|
+
* @public
|
|
41
42
|
*/
|
|
42
43
|
export declare function applyStorageCompression(documentServiceFactory: IDocumentServiceFactory, config?: ICompressionStorageConfig | boolean): IDocumentServiceFactory;
|
|
43
44
|
|
|
44
45
|
/**
|
|
45
46
|
* Basic implementation of an attachment ITreeEntry
|
|
47
|
+
* @public
|
|
46
48
|
*/
|
|
47
49
|
export declare class AttachmentTreeEntry {
|
|
48
50
|
readonly path: string;
|
|
@@ -58,6 +60,9 @@ export declare class AttachmentTreeEntry {
|
|
|
58
60
|
constructor(path: string, id: string);
|
|
59
61
|
}
|
|
60
62
|
|
|
63
|
+
/**
|
|
64
|
+
* @public
|
|
65
|
+
*/
|
|
61
66
|
export declare class AuthorizationError extends LoggingError implements IAuthorizationError, IFluidErrorBase {
|
|
62
67
|
readonly claims: string | undefined;
|
|
63
68
|
readonly tenantId: string | undefined;
|
|
@@ -66,10 +71,14 @@ export declare class AuthorizationError extends LoggingError implements IAuthori
|
|
|
66
71
|
constructor(message: string, claims: string | undefined, tenantId: string | undefined, props: DriverErrorTelemetryProps);
|
|
67
72
|
}
|
|
68
73
|
|
|
74
|
+
/**
|
|
75
|
+
* @public
|
|
76
|
+
*/
|
|
69
77
|
export declare const blobHeadersBlobName = ".metadata.blobHeaders";
|
|
70
78
|
|
|
71
79
|
/**
|
|
72
80
|
* Basic implementation of a blob ITreeEntry
|
|
81
|
+
* @public
|
|
73
82
|
*/
|
|
74
83
|
export declare class BlobTreeEntry {
|
|
75
84
|
readonly path: string;
|
|
@@ -92,6 +101,7 @@ export declare class BlobTreeEntry {
|
|
|
92
101
|
* @param blobMap - a map of blob's sha1 to content that gets filled with content from entries
|
|
93
102
|
* NOTE: blobMap's validity is contingent on the returned promise's resolution
|
|
94
103
|
* @returns the hierarchical tree
|
|
104
|
+
* @public
|
|
95
105
|
*/
|
|
96
106
|
export declare function buildSnapshotTree(entries: ITreeEntry[], blobMap: Map<string, ArrayBufferLike>): ISnapshotTree;
|
|
97
107
|
|
|
@@ -101,15 +111,21 @@ export declare function buildSnapshotTree(entries: ITreeEntry[], blobMap: Map<st
|
|
|
101
111
|
* to when endpoint is reachable in which case it is 30s.
|
|
102
112
|
* @param error - error based on which we decide max wait time.
|
|
103
113
|
* @returns Max wait time.
|
|
114
|
+
* @public
|
|
104
115
|
*/
|
|
105
116
|
export declare function calculateMaxWaitTime(error: unknown): number;
|
|
106
117
|
|
|
118
|
+
/**
|
|
119
|
+
* @privateRemarks ADO #1385: To be moved to packages/protocol-base/src/protocol.ts
|
|
120
|
+
* @public
|
|
121
|
+
*/
|
|
107
122
|
export declare function canBeCoalescedByService(message: ISequencedDocumentMessage | IDocumentMessage): boolean;
|
|
108
123
|
|
|
109
124
|
/**
|
|
110
125
|
* Check if a connection error can be retried. Unless explicitly allowed, retry is disallowed.
|
|
111
126
|
* I.e. asserts or unexpected exceptions in our code result in container failure.
|
|
112
127
|
* @param error - The error to inspect for ability to retry
|
|
128
|
+
* @public
|
|
113
129
|
*/
|
|
114
130
|
export declare const canRetryOnError: (error: any) => boolean;
|
|
115
131
|
|
|
@@ -118,16 +134,26 @@ export declare const canRetryOnError: (error: any) => boolean;
|
|
|
118
134
|
/**
|
|
119
135
|
* Converts ISummaryTree to ITree format.
|
|
120
136
|
* @param summaryTree - summary tree in ISummaryTree format
|
|
137
|
+
* @public
|
|
121
138
|
*/
|
|
122
139
|
export declare function convertSummaryTreeToSnapshotITree(summaryTree: ISummaryTree): ITree;
|
|
123
140
|
|
|
141
|
+
/**
|
|
142
|
+
* @public
|
|
143
|
+
*/
|
|
124
144
|
export declare function createGenericNetworkError(message: string, retryInfo: {
|
|
125
145
|
canRetry: boolean;
|
|
126
146
|
retryAfterMs?: number;
|
|
127
147
|
}, props: DriverErrorTelemetryProps): ThrottlingError | GenericNetworkError;
|
|
128
148
|
|
|
149
|
+
/**
|
|
150
|
+
* @public
|
|
151
|
+
*/
|
|
129
152
|
export declare const createWriteError: (message: string, props: DriverErrorTelemetryProps) => NonRetryableError<"writeError">;
|
|
130
153
|
|
|
154
|
+
/**
|
|
155
|
+
* @public
|
|
156
|
+
*/
|
|
131
157
|
export declare class DeltaStreamConnectionForbiddenError extends LoggingError implements IDriverErrorBase, IFluidErrorBase {
|
|
132
158
|
static readonly errorType = DriverErrorType.deltaStreamConnectionForbidden;
|
|
133
159
|
readonly errorType = DriverErrorType.deltaStreamConnectionForbidden;
|
|
@@ -136,6 +162,9 @@ export declare class DeltaStreamConnectionForbiddenError extends LoggingError im
|
|
|
136
162
|
constructor(message: string, props: DriverErrorTelemetryProps, storageOnlyReason?: string);
|
|
137
163
|
}
|
|
138
164
|
|
|
165
|
+
/**
|
|
166
|
+
* @public
|
|
167
|
+
*/
|
|
139
168
|
export declare class DocumentStorageServiceProxy implements IDocumentStorageService {
|
|
140
169
|
protected readonly internalStorageService: IDocumentStorageService;
|
|
141
170
|
private _policies;
|
|
@@ -151,15 +180,22 @@ export declare class DocumentStorageServiceProxy implements IDocumentStorageServ
|
|
|
151
180
|
readBlob(blobId: string): Promise<ArrayBufferLike>;
|
|
152
181
|
}
|
|
153
182
|
|
|
154
|
-
/**
|
|
183
|
+
/**
|
|
184
|
+
* Telemetry props with driver-specific required properties
|
|
185
|
+
* @public
|
|
186
|
+
*/
|
|
155
187
|
export declare type DriverErrorTelemetryProps = ITelemetryProperties & {
|
|
156
188
|
driverVersion: string | undefined;
|
|
157
189
|
};
|
|
158
190
|
|
|
191
|
+
/**
|
|
192
|
+
* @public
|
|
193
|
+
*/
|
|
159
194
|
export declare const emptyMessageStream: IStream<ISequencedDocumentMessage[]>;
|
|
160
195
|
|
|
161
196
|
/**
|
|
162
197
|
* FluidInvalidSchema error class.
|
|
198
|
+
* @public
|
|
163
199
|
*/
|
|
164
200
|
export declare class FluidInvalidSchemaError extends LoggingError implements IDriverErrorBase, IFluidErrorBase {
|
|
165
201
|
readonly errorType = DriverErrorType.fluidInvalidSchema;
|
|
@@ -169,6 +205,7 @@ export declare class FluidInvalidSchemaError extends LoggingError implements IDr
|
|
|
169
205
|
|
|
170
206
|
/**
|
|
171
207
|
* Generic network error class.
|
|
208
|
+
* @public
|
|
172
209
|
*/
|
|
173
210
|
export declare class GenericNetworkError extends LoggingError implements IDriverErrorBase, IFluidErrorBase {
|
|
174
211
|
readonly canRetry: boolean;
|
|
@@ -179,21 +216,32 @@ export declare class GenericNetworkError extends LoggingError implements IDriver
|
|
|
179
216
|
/**
|
|
180
217
|
* Extract the attributes from the protocol summary.
|
|
181
218
|
* @param protocolSummary - protocol summary from which the values are to be extracted.
|
|
219
|
+
* @public
|
|
182
220
|
*/
|
|
183
221
|
export declare function getDocAttributesFromProtocolSummary(protocolSummary: ISummaryTree): IDocumentAttributes;
|
|
184
222
|
|
|
185
223
|
/**
|
|
186
224
|
* Extract quorum values from the protocol summary.
|
|
187
225
|
* @param protocolSummary - protocol summary from which the values are to be extracted.
|
|
226
|
+
* @public
|
|
188
227
|
*/
|
|
189
228
|
export declare function getQuorumValuesFromProtocolSummary(protocolSummary: ISummaryTree): [string, ICommittedProposal][];
|
|
190
229
|
|
|
191
|
-
/**
|
|
230
|
+
/**
|
|
231
|
+
* Check retryAfterSeconds property on error and convert to ms
|
|
232
|
+
* @public
|
|
233
|
+
* */
|
|
192
234
|
export declare const getRetryDelayFromError: (error: any) => number | undefined;
|
|
193
235
|
|
|
194
|
-
/**
|
|
236
|
+
/**
|
|
237
|
+
* Check retryAfterSeconds property on error
|
|
238
|
+
* @public
|
|
239
|
+
* */
|
|
195
240
|
export declare const getRetryDelaySecondsFromError: (error: any) => number | undefined;
|
|
196
241
|
|
|
242
|
+
/**
|
|
243
|
+
* @public
|
|
244
|
+
*/
|
|
197
245
|
export declare interface ICompressionStorageConfig {
|
|
198
246
|
algorithm: SummaryCompressionAlgorithm;
|
|
199
247
|
minSizeToCompress: number;
|
|
@@ -212,6 +260,7 @@ export declare interface ICompressionStorageConfig {
|
|
|
212
260
|
* The tenantId/documentId pair defines the 'full' document ID the service makes use of. The path is then an optional
|
|
213
261
|
* part of the URL that the document interprets and maps to a data store. It's exactly similar to how a web service
|
|
214
262
|
* works or a router inside of a single page app framework.
|
|
263
|
+
* @public
|
|
215
264
|
*/
|
|
216
265
|
export declare class InsecureUrlResolver implements IUrlResolver {
|
|
217
266
|
private readonly hostUrl;
|
|
@@ -231,6 +280,7 @@ export declare class InsecureUrlResolver implements IUrlResolver {
|
|
|
231
280
|
/**
|
|
232
281
|
* Interface describing an object passed to various network APIs.
|
|
233
282
|
* It allows caller to control cancellation, as well as learn about any delays.
|
|
283
|
+
* @public
|
|
234
284
|
*/
|
|
235
285
|
export declare interface IProgress {
|
|
236
286
|
/**
|
|
@@ -261,17 +311,27 @@ export declare interface IProgress {
|
|
|
261
311
|
|
|
262
312
|
/* Excluded from this release type: isCombinedAppAndProtocolSummary */
|
|
263
313
|
|
|
314
|
+
/**
|
|
315
|
+
* It tells if we have local connection only - we might not have connection to web.
|
|
316
|
+
* No solution for node.js (other than resolve dns names / ping specific sites)
|
|
317
|
+
* Can also use window.addEventListener("online" / "offline")
|
|
318
|
+
* @public
|
|
319
|
+
*/
|
|
264
320
|
export declare function isOnline(): OnlineStatus;
|
|
265
321
|
|
|
266
322
|
/**
|
|
267
323
|
* Tells if message was sent by container runtime
|
|
268
324
|
* @privateRemarks ADO #1385: To be moved to container-definitions
|
|
269
325
|
* @returns whether the message is a runtime message
|
|
326
|
+
* @public
|
|
270
327
|
*/
|
|
271
328
|
export declare function isRuntimeMessage(message: {
|
|
272
329
|
type: string;
|
|
273
330
|
}): boolean;
|
|
274
331
|
|
|
332
|
+
/**
|
|
333
|
+
* @public
|
|
334
|
+
*/
|
|
275
335
|
export declare class LocationRedirectionError extends LoggingError implements ILocationRedirectionError, IFluidErrorBase {
|
|
276
336
|
readonly redirectUrl: IResolvedUrl;
|
|
277
337
|
readonly errorType = DriverErrorType.locationRedirection;
|
|
@@ -281,23 +341,40 @@ export declare class LocationRedirectionError extends LoggingError implements IL
|
|
|
281
341
|
|
|
282
342
|
/* Excluded from this release type: LoggingError */
|
|
283
343
|
|
|
344
|
+
/**
|
|
345
|
+
* @public
|
|
346
|
+
*/
|
|
284
347
|
export declare function logNetworkFailure(logger: ITelemetryLoggerExt, event: ITelemetryErrorEvent, error?: any): void;
|
|
285
348
|
|
|
349
|
+
/**
|
|
350
|
+
* @privateRemarks ADO #1385: staging code changes across layers.
|
|
351
|
+
* Eventually to be replaced by MessageType.accept
|
|
352
|
+
* @public
|
|
353
|
+
*/
|
|
286
354
|
export declare enum MessageType2 {
|
|
287
355
|
Accept = "accept"
|
|
288
356
|
}
|
|
289
357
|
|
|
358
|
+
/**
|
|
359
|
+
* @public
|
|
360
|
+
*/
|
|
290
361
|
export declare class NetworkErrorBasic<T extends string> extends LoggingError implements IFluidErrorBase {
|
|
291
362
|
readonly errorType: T;
|
|
292
363
|
readonly canRetry: boolean;
|
|
293
364
|
constructor(message: string, errorType: T, canRetry: boolean, props: DriverErrorTelemetryProps);
|
|
294
365
|
}
|
|
295
366
|
|
|
367
|
+
/**
|
|
368
|
+
* @public
|
|
369
|
+
*/
|
|
296
370
|
export declare class NonRetryableError<T extends string> extends NetworkErrorBasic<T> {
|
|
297
371
|
readonly errorType: T;
|
|
298
372
|
constructor(message: string, errorType: T, props: DriverErrorTelemetryProps);
|
|
299
373
|
}
|
|
300
374
|
|
|
375
|
+
/**
|
|
376
|
+
* @public
|
|
377
|
+
*/
|
|
301
378
|
export declare enum OnlineStatus {
|
|
302
379
|
Offline = 0,
|
|
303
380
|
Online = 1,
|
|
@@ -315,6 +392,7 @@ export declare enum OnlineStatus {
|
|
|
315
392
|
* @param logger - logger to use
|
|
316
393
|
* @param requestCallback - callback to request batches
|
|
317
394
|
* @returns Queue that can be used to retrieve data
|
|
395
|
+
* @public
|
|
318
396
|
*/
|
|
319
397
|
export declare class ParallelRequests<T> {
|
|
320
398
|
private to;
|
|
@@ -347,6 +425,9 @@ export declare class ParallelRequests<T> {
|
|
|
347
425
|
private addRequestCore;
|
|
348
426
|
}
|
|
349
427
|
|
|
428
|
+
/**
|
|
429
|
+
* @public
|
|
430
|
+
*/
|
|
350
431
|
export declare class PrefetchDocumentStorageService extends DocumentStorageServiceProxy {
|
|
351
432
|
private readonly prefetchCache;
|
|
352
433
|
private prefetchEnabled;
|
|
@@ -365,6 +446,7 @@ export declare class PrefetchDocumentStorageService extends DocumentStorageServi
|
|
|
365
446
|
/**
|
|
366
447
|
* Helper queue class to allow async push / pull
|
|
367
448
|
* It's essentially a pipe allowing multiple writers, and single reader
|
|
449
|
+
* @public
|
|
368
450
|
*/
|
|
369
451
|
export declare class Queue<T> implements IStream<T> {
|
|
370
452
|
private readonly queue;
|
|
@@ -377,6 +459,9 @@ export declare class Queue<T> implements IStream<T> {
|
|
|
377
459
|
read(): Promise<IStreamResult<T>>;
|
|
378
460
|
}
|
|
379
461
|
|
|
462
|
+
/**
|
|
463
|
+
* @public
|
|
464
|
+
*/
|
|
380
465
|
export declare class RateLimiter {
|
|
381
466
|
private maxRequests;
|
|
382
467
|
private readonly tasks;
|
|
@@ -398,6 +483,7 @@ export declare class RateLimiter {
|
|
|
398
483
|
* @typeParam T - Output type matching JSON format of inpyt blob data.
|
|
399
484
|
*
|
|
400
485
|
* @returns The object that we decoded and parsed via `JSON.parse`.
|
|
486
|
+
* @public
|
|
401
487
|
*/
|
|
402
488
|
export declare function readAndParse<T>(storage: Pick<IDocumentStorageService, "readBlob">, id: string): Promise<T>;
|
|
403
489
|
|
|
@@ -412,27 +498,44 @@ export declare function readAndParse<T>(storage: Pick<IDocumentStorageService, "
|
|
|
412
498
|
* @param signal - Cancelation signal
|
|
413
499
|
* @param scenarioName - Reason for fetching ops
|
|
414
500
|
* @returns Messages fetched
|
|
501
|
+
* @public
|
|
415
502
|
*/
|
|
416
503
|
export declare function requestOps(get: (from: number, to: number, telemetryProps: ITelemetryProperties) => Promise<IDeltasFetchResult>, concurrency: number, fromTotal: number, toTotal: number | undefined, payloadSize: number, logger: ITelemetryLoggerExt, signal?: AbortSignal, scenarioName?: string): IStream<ISequencedDocumentMessage[]>;
|
|
417
504
|
|
|
505
|
+
/**
|
|
506
|
+
* @public
|
|
507
|
+
*/
|
|
418
508
|
export declare class RetryableError<T extends string> extends NetworkErrorBasic<T> {
|
|
419
509
|
readonly errorType: T;
|
|
420
510
|
constructor(message: string, errorType: T, props: DriverErrorTelemetryProps);
|
|
421
511
|
}
|
|
422
512
|
|
|
513
|
+
/**
|
|
514
|
+
* @public
|
|
515
|
+
*/
|
|
423
516
|
export declare function runWithRetry<T>(api: (cancel?: AbortSignal) => Promise<T>, fetchCallName: string, logger: ITelemetryLoggerExt, progress: IProgress): Promise<T>;
|
|
424
517
|
|
|
518
|
+
/**
|
|
519
|
+
* @public
|
|
520
|
+
*/
|
|
425
521
|
export declare function streamFromMessages(messagesArg: Promise<ISequencedDocumentMessage[]>): IStream<ISequencedDocumentMessage[]>;
|
|
426
522
|
|
|
523
|
+
/**
|
|
524
|
+
* @public
|
|
525
|
+
*/
|
|
427
526
|
export declare function streamObserver<T>(stream: IStream<T>, handler: (value: IStreamResult<T>) => void): IStream<T>;
|
|
428
527
|
|
|
429
|
-
|
|
528
|
+
/**
|
|
529
|
+
* @public
|
|
530
|
+
*/
|
|
531
|
+
export declare enum SummaryCompressionAlgorithm {
|
|
430
532
|
None = 0,
|
|
431
533
|
LZ4 = 1
|
|
432
534
|
}
|
|
433
535
|
|
|
434
536
|
/**
|
|
435
537
|
* Throttling error class - used to communicate all throttling errors
|
|
538
|
+
* @public
|
|
436
539
|
*/
|
|
437
540
|
export declare class ThrottlingError extends LoggingError implements IThrottlingWarning, IFluidErrorBase {
|
|
438
541
|
readonly retryAfterSeconds: number;
|
|
@@ -443,6 +546,7 @@ export declare class ThrottlingError extends LoggingError implements IThrottling
|
|
|
443
546
|
|
|
444
547
|
/**
|
|
445
548
|
* Basic implementation of a tree ITreeEntry
|
|
549
|
+
* @public
|
|
446
550
|
*/
|
|
447
551
|
export declare class TreeTreeEntry {
|
|
448
552
|
readonly path: string;
|
|
@@ -457,7 +561,10 @@ export declare class TreeTreeEntry {
|
|
|
457
561
|
constructor(path: string, value: ITree);
|
|
458
562
|
}
|
|
459
563
|
|
|
460
|
-
/**
|
|
564
|
+
/**
|
|
565
|
+
* Error indicating an API is being used improperly resulting in an invalid operation.
|
|
566
|
+
* @public
|
|
567
|
+
*/
|
|
461
568
|
export declare class UsageError extends LoggingError implements IDriverErrorBase, IFluidErrorBase {
|
|
462
569
|
readonly errorType = DriverErrorType.usageError;
|
|
463
570
|
readonly canRetry = false;
|