@fluidframework/driver-utils 2.0.0-internal.7.3.0 → 2.0.0-internal.8.0.0
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/CHANGELOG.md +8 -0
- package/api-extractor-lint.json +13 -0
- package/api-extractor.json +9 -1
- package/api-report/driver-utils.api.md +47 -47
- package/dist/adapters/compression/compressionTypes.d.ts +2 -2
- package/dist/adapters/compression/compressionTypes.js +1 -1
- package/dist/adapters/compression/compressionTypes.js.map +1 -1
- package/dist/adapters/compression/summaryblob/documentStorageServiceSummaryBlobCompressionAdapter.d.ts +1 -1
- package/dist/adapters/compression/summaryblob/documentStorageServiceSummaryBlobCompressionAdapter.js +1 -1
- package/dist/adapters/compression/summaryblob/documentStorageServiceSummaryBlobCompressionAdapter.js.map +1 -1
- package/dist/adapters/predefinedAdapters.d.ts +1 -1
- package/dist/adapters/predefinedAdapters.js +1 -1
- package/dist/adapters/predefinedAdapters.js.map +1 -1
- package/dist/blob.d.ts +3 -3
- package/dist/blob.js +3 -3
- package/dist/blob.js.map +1 -1
- package/dist/buildSnapshotTree.d.ts +1 -1
- package/dist/buildSnapshotTree.js +1 -1
- package/dist/buildSnapshotTree.js.map +1 -1
- package/dist/documentStorageServiceProxy.d.ts +1 -1
- package/dist/documentStorageServiceProxy.js +1 -1
- package/dist/documentStorageServiceProxy.js.map +1 -1
- package/dist/driver-utils-alpha.d.ts +169 -0
- package/dist/driver-utils-beta.d.ts +176 -0
- package/dist/driver-utils-public.d.ts +176 -0
- package/dist/driver-utils-untrimmed.d.ts +590 -0
- package/dist/error.d.ts +1 -1
- package/dist/error.js +1 -1
- package/dist/error.js.map +1 -1
- package/dist/insecureUrlResolver.d.ts +1 -1
- package/dist/insecureUrlResolver.js +1 -1
- package/dist/insecureUrlResolver.js.map +1 -1
- package/dist/messageRecognition.d.ts +3 -3
- package/dist/messageRecognition.js +3 -3
- package/dist/messageRecognition.js.map +1 -1
- package/dist/network.d.ts +19 -19
- package/dist/network.d.ts.map +1 -1
- package/dist/network.js +18 -18
- package/dist/network.js.map +1 -1
- package/dist/networkUtils.d.ts +1 -1
- package/dist/networkUtils.js +1 -1
- 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 +6 -6
- package/dist/parallelRequests.js +6 -6
- package/dist/parallelRequests.js.map +1 -1
- package/dist/prefetchDocumentStorageService.d.ts +1 -1
- package/dist/prefetchDocumentStorageService.js +1 -1
- package/dist/prefetchDocumentStorageService.js.map +1 -1
- package/dist/rateLimiter.d.ts +1 -1
- package/dist/rateLimiter.js +1 -1
- package/dist/rateLimiter.js.map +1 -1
- package/dist/readAndParse.d.ts +1 -1
- package/dist/readAndParse.js +1 -1
- package/dist/readAndParse.js.map +1 -1
- package/dist/runWithRetry.d.ts +3 -3
- package/dist/runWithRetry.js +2 -2
- package/dist/runWithRetry.js.map +1 -1
- package/dist/summaryForCreateNew.d.ts +2 -2
- package/dist/summaryForCreateNew.js +2 -2
- package/dist/summaryForCreateNew.js.map +1 -1
- package/dist/treeConversions.d.ts +1 -1
- package/dist/treeConversions.js +1 -1
- package/dist/treeConversions.js.map +1 -1
- package/lib/adapters/compression/compressionTypes.d.ts +2 -2
- package/lib/adapters/compression/compressionTypes.js +1 -1
- package/lib/adapters/compression/compressionTypes.js.map +1 -1
- package/lib/adapters/compression/summaryblob/documentStorageServiceSummaryBlobCompressionAdapter.d.ts +1 -1
- package/lib/adapters/compression/summaryblob/documentStorageServiceSummaryBlobCompressionAdapter.js +1 -1
- package/lib/adapters/compression/summaryblob/documentStorageServiceSummaryBlobCompressionAdapter.js.map +1 -1
- package/lib/adapters/predefinedAdapters.d.ts +1 -1
- package/lib/adapters/predefinedAdapters.js +1 -1
- package/lib/adapters/predefinedAdapters.js.map +1 -1
- package/lib/blob.d.ts +3 -3
- package/lib/blob.js +3 -3
- package/lib/blob.js.map +1 -1
- package/lib/buildSnapshotTree.d.ts +1 -1
- package/lib/buildSnapshotTree.js +1 -1
- package/lib/buildSnapshotTree.js.map +1 -1
- package/lib/documentStorageServiceProxy.d.ts +1 -1
- package/lib/documentStorageServiceProxy.js +1 -1
- package/lib/documentStorageServiceProxy.js.map +1 -1
- package/lib/driver-utils-alpha.d.ts +169 -0
- package/lib/driver-utils-beta.d.ts +176 -0
- package/lib/driver-utils-public.d.ts +176 -0
- package/lib/driver-utils-untrimmed.d.ts +590 -0
- package/lib/error.d.ts +1 -1
- package/lib/error.js +1 -1
- package/lib/error.js.map +1 -1
- package/lib/insecureUrlResolver.d.ts +1 -1
- package/lib/insecureUrlResolver.js +1 -1
- package/lib/insecureUrlResolver.js.map +1 -1
- package/lib/messageRecognition.d.ts +3 -3
- package/lib/messageRecognition.js +3 -3
- package/lib/messageRecognition.js.map +1 -1
- package/lib/network.d.ts +19 -19
- package/lib/network.d.ts.map +1 -1
- package/lib/network.js +18 -18
- package/lib/network.js.map +1 -1
- package/lib/networkUtils.d.ts +1 -1
- package/lib/networkUtils.js +1 -1
- 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 +6 -6
- package/lib/parallelRequests.js +6 -6
- package/lib/parallelRequests.js.map +1 -1
- package/lib/prefetchDocumentStorageService.d.ts +1 -1
- package/lib/prefetchDocumentStorageService.js +1 -1
- package/lib/prefetchDocumentStorageService.js.map +1 -1
- package/lib/rateLimiter.d.ts +1 -1
- package/lib/rateLimiter.js +1 -1
- package/lib/rateLimiter.js.map +1 -1
- package/lib/readAndParse.d.ts +1 -1
- package/lib/readAndParse.js +1 -1
- package/lib/readAndParse.js.map +1 -1
- package/lib/runWithRetry.d.ts +3 -3
- package/lib/runWithRetry.js +2 -2
- package/lib/runWithRetry.js.map +1 -1
- package/lib/summaryForCreateNew.d.ts +2 -2
- package/lib/summaryForCreateNew.js +2 -2
- package/lib/summaryForCreateNew.js.map +1 -1
- package/lib/treeConversions.d.ts +1 -1
- package/lib/treeConversions.js +1 -1
- package/lib/treeConversions.js.map +1 -1
- package/package.json +31 -12
- package/src/adapters/compression/compressionTypes.ts +2 -2
- package/src/adapters/compression/summaryblob/documentStorageServiceSummaryBlobCompressionAdapter.ts +1 -1
- package/src/adapters/predefinedAdapters.ts +1 -1
- package/src/blob.ts +3 -3
- package/src/buildSnapshotTree.ts +1 -1
- package/src/documentStorageServiceProxy.ts +1 -1
- package/src/error.ts +1 -1
- package/src/insecureUrlResolver.ts +1 -1
- package/src/messageRecognition.ts +3 -3
- package/src/network.ts +19 -19
- package/src/networkUtils.ts +1 -1
- package/src/packageVersion.ts +1 -1
- package/src/parallelRequests.ts +6 -6
- package/src/prefetchDocumentStorageService.ts +1 -1
- package/src/rateLimiter.ts +1 -1
- package/src/readAndParse.ts +1 -1
- package/src/runWithRetry.ts +3 -3
- package/src/summaryForCreateNew.ts +2 -2
- package/src/treeConversions.ts +1 -1
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
|
-
* @
|
|
7
|
+
* @alpha
|
|
8
8
|
*/
|
|
9
9
|
export enum SummaryCompressionAlgorithm {
|
|
10
10
|
None = 0,
|
|
@@ -12,7 +12,7 @@ export enum SummaryCompressionAlgorithm {
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
|
-
* @
|
|
15
|
+
* @alpha
|
|
16
16
|
*/
|
|
17
17
|
export interface ICompressionStorageConfig {
|
|
18
18
|
algorithm: SummaryCompressionAlgorithm;
|
package/src/adapters/compression/summaryblob/documentStorageServiceSummaryBlobCompressionAdapter.ts
CHANGED
|
@@ -20,7 +20,7 @@ import { DocumentStorageServiceProxy } from "../../../documentStorageServiceProx
|
|
|
20
20
|
import { ICompressionStorageConfig, SummaryCompressionAlgorithm } from "../";
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
|
-
* @
|
|
23
|
+
* @internal
|
|
24
24
|
*/
|
|
25
25
|
export const blobHeadersBlobName = ".metadata.blobHeaders";
|
|
26
26
|
const metadataBlobName = ".metadata";
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
* @param documentServiceFactory - The document service factory to apply compression to.
|
|
18
18
|
* @param config - The compression configuration.
|
|
19
19
|
* @returns The document service factory possibly with compression applied.
|
|
20
|
-
* @
|
|
20
|
+
* @internal
|
|
21
21
|
*/
|
|
22
22
|
export function applyStorageCompression(
|
|
23
23
|
documentServiceFactory: IDocumentServiceFactory,
|
package/src/blob.ts
CHANGED
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* Basic implementation of a blob ITreeEntry
|
|
16
|
-
* @
|
|
16
|
+
* @internal
|
|
17
17
|
*/
|
|
18
18
|
export class BlobTreeEntry {
|
|
19
19
|
public readonly mode = FileMode.File;
|
|
@@ -37,7 +37,7 @@ export class BlobTreeEntry {
|
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
39
|
* Basic implementation of a tree ITreeEntry
|
|
40
|
-
* @
|
|
40
|
+
* @internal
|
|
41
41
|
*/
|
|
42
42
|
export class TreeTreeEntry {
|
|
43
43
|
public readonly mode = FileMode.Directory;
|
|
@@ -56,7 +56,7 @@ export class TreeTreeEntry {
|
|
|
56
56
|
|
|
57
57
|
/**
|
|
58
58
|
* Basic implementation of an attachment ITreeEntry
|
|
59
|
-
* @
|
|
59
|
+
* @internal
|
|
60
60
|
*/
|
|
61
61
|
export class AttachmentTreeEntry {
|
|
62
62
|
public readonly mode = FileMode.File;
|
package/src/buildSnapshotTree.ts
CHANGED
|
@@ -86,7 +86,7 @@ function flatten(tree: ITreeEntry[], blobMap: Map<string, ArrayBufferLike>): git
|
|
|
86
86
|
* @param blobMap - a map of blob's sha1 to content that gets filled with content from entries
|
|
87
87
|
* NOTE: blobMap's validity is contingent on the returned promise's resolution
|
|
88
88
|
* @returns the hierarchical tree
|
|
89
|
-
* @
|
|
89
|
+
* @internal
|
|
90
90
|
*/
|
|
91
91
|
export function buildSnapshotTree(
|
|
92
92
|
entries: ITreeEntry[],
|
package/src/error.ts
CHANGED
|
@@ -9,7 +9,7 @@ import { IFluidErrorBase, LoggingError } from "@fluidframework/telemetry-utils";
|
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Error indicating an API is being used improperly resulting in an invalid operation.
|
|
12
|
-
* @
|
|
12
|
+
* @internal
|
|
13
13
|
*/
|
|
14
14
|
export class UsageError extends LoggingError implements IDriverErrorBase, IFluidErrorBase {
|
|
15
15
|
// eslint-disable-next-line import/no-deprecated
|
|
@@ -22,7 +22,7 @@ import Axios from "axios";
|
|
|
22
22
|
* The tenantId/documentId pair defines the 'full' document ID the service makes use of. The path is then an optional
|
|
23
23
|
* part of the URL that the document interprets and maps to a data store. It's exactly similar to how a web service
|
|
24
24
|
* works or a router inside of a single page app framework.
|
|
25
|
-
* @
|
|
25
|
+
* @internal
|
|
26
26
|
*/
|
|
27
27
|
export class InsecureUrlResolver implements IUrlResolver {
|
|
28
28
|
private readonly cache = new Map<string, Promise<IResolvedUrl>>();
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
* Tells if message was sent by container runtime
|
|
13
13
|
* @privateRemarks ADO #1385: To be moved to container-definitions
|
|
14
14
|
* @returns whether the message is a runtime message
|
|
15
|
-
* @
|
|
15
|
+
* @internal
|
|
16
16
|
*/
|
|
17
17
|
export function isRuntimeMessage(message: { type: string }): boolean {
|
|
18
18
|
return message.type === MessageType.Operation;
|
|
@@ -21,7 +21,7 @@ export function isRuntimeMessage(message: { type: string }): boolean {
|
|
|
21
21
|
/**
|
|
22
22
|
* @privateRemarks ADO #1385: staging code changes across layers.
|
|
23
23
|
* Eventually to be replaced by MessageType.accept
|
|
24
|
-
* @
|
|
24
|
+
* @internal
|
|
25
25
|
*/
|
|
26
26
|
export enum MessageType2 {
|
|
27
27
|
Accept = "accept",
|
|
@@ -29,7 +29,7 @@ export enum MessageType2 {
|
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
31
|
* @privateRemarks ADO #1385: To be moved to packages/protocol-base/src/protocol.ts
|
|
32
|
-
* @
|
|
32
|
+
* @internal
|
|
33
33
|
*/
|
|
34
34
|
export function canBeCoalescedByService(
|
|
35
35
|
message: ISequencedDocumentMessage | IDocumentMessage,
|
package/src/network.ts
CHANGED
|
@@ -17,7 +17,7 @@ import { ITelemetryProperties } from "@fluidframework/core-interfaces";
|
|
|
17
17
|
import { IFluidErrorBase, LoggingError } from "@fluidframework/telemetry-utils";
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
|
-
* @
|
|
20
|
+
* @internal
|
|
21
21
|
*/
|
|
22
22
|
export enum OnlineStatus {
|
|
23
23
|
Offline,
|
|
@@ -29,7 +29,7 @@ export enum OnlineStatus {
|
|
|
29
29
|
* It tells if we have local connection only - we might not have connection to web.
|
|
30
30
|
* No solution for node.js (other than resolve dns names / ping specific sites)
|
|
31
31
|
* Can also use window.addEventListener("online" / "offline")
|
|
32
|
-
* @
|
|
32
|
+
* @internal
|
|
33
33
|
*/
|
|
34
34
|
export function isOnline(): OnlineStatus {
|
|
35
35
|
if (
|
|
@@ -44,7 +44,7 @@ export function isOnline(): OnlineStatus {
|
|
|
44
44
|
|
|
45
45
|
/**
|
|
46
46
|
* Telemetry props with driver-specific required properties
|
|
47
|
-
* @
|
|
47
|
+
* @internal
|
|
48
48
|
*/
|
|
49
49
|
export type DriverErrorTelemetryProps = ITelemetryProperties & {
|
|
50
50
|
driverVersion: string | undefined;
|
|
@@ -52,7 +52,7 @@ export type DriverErrorTelemetryProps = ITelemetryProperties & {
|
|
|
52
52
|
|
|
53
53
|
/**
|
|
54
54
|
* Generic network error class.
|
|
55
|
-
* @
|
|
55
|
+
* @internal
|
|
56
56
|
*/
|
|
57
57
|
export class GenericNetworkError extends LoggingError implements IDriverErrorBase, IFluidErrorBase {
|
|
58
58
|
// eslint-disable-next-line import/no-deprecated
|
|
@@ -69,7 +69,7 @@ export class GenericNetworkError extends LoggingError implements IDriverErrorBas
|
|
|
69
69
|
|
|
70
70
|
/**
|
|
71
71
|
* FluidInvalidSchema error class.
|
|
72
|
-
* @
|
|
72
|
+
* @internal
|
|
73
73
|
*/
|
|
74
74
|
export class FluidInvalidSchemaError
|
|
75
75
|
extends LoggingError
|
|
@@ -85,7 +85,7 @@ export class FluidInvalidSchemaError
|
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
/**
|
|
88
|
-
* @
|
|
88
|
+
* @internal
|
|
89
89
|
*/
|
|
90
90
|
export class DeltaStreamConnectionForbiddenError
|
|
91
91
|
extends LoggingError
|
|
@@ -104,7 +104,7 @@ export class DeltaStreamConnectionForbiddenError
|
|
|
104
104
|
}
|
|
105
105
|
|
|
106
106
|
/**
|
|
107
|
-
* @
|
|
107
|
+
* @internal
|
|
108
108
|
*/
|
|
109
109
|
export class AuthorizationError
|
|
110
110
|
extends LoggingError
|
|
@@ -126,7 +126,7 @@ export class AuthorizationError
|
|
|
126
126
|
}
|
|
127
127
|
|
|
128
128
|
/**
|
|
129
|
-
* @
|
|
129
|
+
* @internal
|
|
130
130
|
*/
|
|
131
131
|
export class LocationRedirectionError
|
|
132
132
|
extends LoggingError
|
|
@@ -147,7 +147,7 @@ export class LocationRedirectionError
|
|
|
147
147
|
}
|
|
148
148
|
|
|
149
149
|
/**
|
|
150
|
-
* @
|
|
150
|
+
* @internal
|
|
151
151
|
*/
|
|
152
152
|
export class NetworkErrorBasic<T extends string> extends LoggingError implements IFluidErrorBase {
|
|
153
153
|
constructor(
|
|
@@ -161,7 +161,7 @@ export class NetworkErrorBasic<T extends string> extends LoggingError implements
|
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
/**
|
|
164
|
-
* @
|
|
164
|
+
* @internal
|
|
165
165
|
*/
|
|
166
166
|
export class NonRetryableError<T extends string> extends NetworkErrorBasic<T> {
|
|
167
167
|
constructor(
|
|
@@ -174,7 +174,7 @@ export class NonRetryableError<T extends string> extends NetworkErrorBasic<T> {
|
|
|
174
174
|
}
|
|
175
175
|
|
|
176
176
|
/**
|
|
177
|
-
* @
|
|
177
|
+
* @internal
|
|
178
178
|
*/
|
|
179
179
|
export class RetryableError<T extends string> extends NetworkErrorBasic<T> {
|
|
180
180
|
constructor(
|
|
@@ -188,7 +188,7 @@ export class RetryableError<T extends string> extends NetworkErrorBasic<T> {
|
|
|
188
188
|
|
|
189
189
|
/**
|
|
190
190
|
* Throttling error class - used to communicate all throttling errors
|
|
191
|
-
* @
|
|
191
|
+
* @internal
|
|
192
192
|
*/
|
|
193
193
|
export class ThrottlingError extends LoggingError implements IThrottlingWarning, IFluidErrorBase {
|
|
194
194
|
// eslint-disable-next-line import/no-deprecated
|
|
@@ -205,13 +205,13 @@ export class ThrottlingError extends LoggingError implements IThrottlingWarning,
|
|
|
205
205
|
}
|
|
206
206
|
|
|
207
207
|
/**
|
|
208
|
-
* @
|
|
208
|
+
* @internal
|
|
209
209
|
*/
|
|
210
210
|
export const createWriteError = (message: string, props: DriverErrorTelemetryProps) =>
|
|
211
211
|
new NonRetryableError(message, DriverErrorTypes.writeError, props);
|
|
212
212
|
|
|
213
213
|
/**
|
|
214
|
-
* @
|
|
214
|
+
* @internal
|
|
215
215
|
*/
|
|
216
216
|
export function createGenericNetworkError(
|
|
217
217
|
message: string,
|
|
@@ -228,20 +228,20 @@ export function createGenericNetworkError(
|
|
|
228
228
|
* Check if a connection error can be retried. Unless explicitly allowed, retry is disallowed.
|
|
229
229
|
* I.e. asserts or unexpected exceptions in our code result in container failure.
|
|
230
230
|
* @param error - The error to inspect for ability to retry
|
|
231
|
-
* @
|
|
231
|
+
* @internal
|
|
232
232
|
*/
|
|
233
233
|
export const canRetryOnError = (error: any): boolean => error?.canRetry === true;
|
|
234
234
|
|
|
235
235
|
/**
|
|
236
236
|
* Check retryAfterSeconds property on error
|
|
237
|
-
* @
|
|
238
|
-
|
|
237
|
+
* @internal
|
|
238
|
+
*/
|
|
239
239
|
export const getRetryDelaySecondsFromError = (error: any): number | undefined =>
|
|
240
240
|
error?.retryAfterSeconds as number | undefined;
|
|
241
241
|
|
|
242
242
|
/**
|
|
243
243
|
* Check retryAfterSeconds property on error and convert to ms
|
|
244
|
-
* @
|
|
245
|
-
|
|
244
|
+
* @internal
|
|
245
|
+
*/
|
|
246
246
|
export const getRetryDelayFromError = (error: any): number | undefined =>
|
|
247
247
|
error?.retryAfterSeconds !== undefined ? error.retryAfterSeconds * 1000 : undefined;
|
package/src/networkUtils.ts
CHANGED
package/src/packageVersion.ts
CHANGED
package/src/parallelRequests.ts
CHANGED
|
@@ -30,7 +30,7 @@ type WorkingState = "working" | "done" | "canceled";
|
|
|
30
30
|
* @param logger - logger to use
|
|
31
31
|
* @param requestCallback - callback to request batches
|
|
32
32
|
* @returns Queue that can be used to retrieve data
|
|
33
|
-
* @
|
|
33
|
+
* @internal
|
|
34
34
|
*/
|
|
35
35
|
export class ParallelRequests<T> {
|
|
36
36
|
private latestRequested: number;
|
|
@@ -340,7 +340,7 @@ export class ParallelRequests<T> {
|
|
|
340
340
|
/**
|
|
341
341
|
* Helper queue class to allow async push / pull
|
|
342
342
|
* It's essentially a pipe allowing multiple writers, and single reader
|
|
343
|
-
* @
|
|
343
|
+
* @internal
|
|
344
344
|
*/
|
|
345
345
|
export class Queue<T> implements IStream<T> {
|
|
346
346
|
private readonly queue: Promise<IStreamResult<T>>[] = [];
|
|
@@ -533,7 +533,7 @@ async function getSingleOpBatch(
|
|
|
533
533
|
* @param signal - Cancelation signal
|
|
534
534
|
* @param scenarioName - Reason for fetching ops
|
|
535
535
|
* @returns Messages fetched
|
|
536
|
-
* @
|
|
536
|
+
* @internal
|
|
537
537
|
*/
|
|
538
538
|
export function requestOps(
|
|
539
539
|
get: (
|
|
@@ -655,7 +655,7 @@ export function requestOps(
|
|
|
655
655
|
}
|
|
656
656
|
|
|
657
657
|
/**
|
|
658
|
-
* @
|
|
658
|
+
* @internal
|
|
659
659
|
*/
|
|
660
660
|
export const emptyMessageStream: IStream<ISequencedDocumentMessage[]> = {
|
|
661
661
|
read: async () => {
|
|
@@ -664,7 +664,7 @@ export const emptyMessageStream: IStream<ISequencedDocumentMessage[]> = {
|
|
|
664
664
|
};
|
|
665
665
|
|
|
666
666
|
/**
|
|
667
|
-
* @
|
|
667
|
+
* @internal
|
|
668
668
|
*/
|
|
669
669
|
export function streamFromMessages(
|
|
670
670
|
messagesArg: Promise<ISequencedDocumentMessage[]>,
|
|
@@ -683,7 +683,7 @@ export function streamFromMessages(
|
|
|
683
683
|
}
|
|
684
684
|
|
|
685
685
|
/**
|
|
686
|
-
* @
|
|
686
|
+
* @internal
|
|
687
687
|
*/
|
|
688
688
|
export function streamObserver<T>(
|
|
689
689
|
stream: IStream<T>,
|
|
@@ -8,7 +8,7 @@ import { DocumentStorageServiceProxy } from "./documentStorageServiceProxy";
|
|
|
8
8
|
import { canRetryOnError } from "./network";
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
|
-
* @
|
|
11
|
+
* @internal
|
|
12
12
|
*/
|
|
13
13
|
export class PrefetchDocumentStorageService extends DocumentStorageServiceProxy {
|
|
14
14
|
// BlobId -> blob prefetchCache cache
|
package/src/rateLimiter.ts
CHANGED
package/src/readAndParse.ts
CHANGED
|
@@ -17,7 +17,7 @@ import { IDocumentStorageService } from "@fluidframework/driver-definitions";
|
|
|
17
17
|
* @typeParam T - Output type matching JSON format of inpyt blob data.
|
|
18
18
|
*
|
|
19
19
|
* @returns The object that we decoded and parsed via `JSON.parse`.
|
|
20
|
-
* @
|
|
20
|
+
* @internal
|
|
21
21
|
*/
|
|
22
22
|
export async function readAndParse<T>(
|
|
23
23
|
storage: Pick<IDocumentStorageService, "readBlob">,
|
package/src/runWithRetry.ts
CHANGED
|
@@ -14,7 +14,7 @@ import { NonRetryableError } from ".";
|
|
|
14
14
|
/**
|
|
15
15
|
* Interface describing an object passed to various network APIs.
|
|
16
16
|
* It allows caller to control cancellation, as well as learn about any delays.
|
|
17
|
-
* @
|
|
17
|
+
* @internal
|
|
18
18
|
*/
|
|
19
19
|
export interface IProgress {
|
|
20
20
|
/**
|
|
@@ -45,7 +45,7 @@ export interface IProgress {
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
/**
|
|
48
|
-
* @
|
|
48
|
+
* @internal
|
|
49
49
|
*/
|
|
50
50
|
export async function runWithRetry<T>(
|
|
51
51
|
api: (cancel?: AbortSignal) => Promise<T>,
|
|
@@ -151,7 +151,7 @@ const MaxReconnectDelayInMsWhenEndpointIsNotReachable = 8000;
|
|
|
151
151
|
* @param delayMs - wait time for previous iteration
|
|
152
152
|
* @param error - error based on which we decide wait time.
|
|
153
153
|
* @returns Wait time to wait for.
|
|
154
|
-
* @
|
|
154
|
+
* @internal
|
|
155
155
|
*/
|
|
156
156
|
export function calculateMaxWaitTime(delayMs: number, error: unknown): number {
|
|
157
157
|
const retryDelayFromError = getRetryDelayFromError(error);
|
|
@@ -49,7 +49,7 @@ export function isCombinedAppAndProtocolSummary(
|
|
|
49
49
|
/**
|
|
50
50
|
* Extract the attributes from the protocol summary.
|
|
51
51
|
* @param protocolSummary - protocol summary from which the values are to be extracted.
|
|
52
|
-
* @
|
|
52
|
+
* @internal
|
|
53
53
|
*/
|
|
54
54
|
export function getDocAttributesFromProtocolSummary(
|
|
55
55
|
protocolSummary: ISummaryTree,
|
|
@@ -61,7 +61,7 @@ export function getDocAttributesFromProtocolSummary(
|
|
|
61
61
|
/**
|
|
62
62
|
* Extract quorum values from the protocol summary.
|
|
63
63
|
* @param protocolSummary - protocol summary from which the values are to be extracted.
|
|
64
|
-
* @
|
|
64
|
+
* @internal
|
|
65
65
|
*/
|
|
66
66
|
export function getQuorumValuesFromProtocolSummary(
|
|
67
67
|
protocolSummary: ISummaryTree,
|
package/src/treeConversions.ts
CHANGED
|
@@ -12,7 +12,7 @@ import { isCombinedAppAndProtocolSummary } from "./summaryForCreateNew";
|
|
|
12
12
|
/**
|
|
13
13
|
* Converts ISummaryTree to ITree format.
|
|
14
14
|
* @param summaryTree - summary tree in ISummaryTree format
|
|
15
|
-
* @
|
|
15
|
+
* @internal
|
|
16
16
|
*/
|
|
17
17
|
export function convertSummaryTreeToSnapshotITree(summaryTree: ISummaryTree): ITree {
|
|
18
18
|
const entries: ITreeEntry[] = [];
|