@fluidframework/driver-definitions 2.0.0-dev.7.4.0.215930 → 2.0.0-dev.7.4.0.217212
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-lint.json +13 -0
- package/api-extractor.json +0 -4
- package/api-report/driver-definitions.api.md +33 -33
- package/dist/driver-definitions-alpha.d.ts +51 -158
- package/dist/driver-definitions-beta.d.ts +73 -621
- package/dist/driver-definitions-public.d.ts +73 -621
- package/dist/driver-definitions-untrimmed.d.ts +71 -0
- package/dist/driverError.d.ts +23 -0
- package/dist/driverError.d.ts.map +1 -1
- package/dist/driverError.js +2 -0
- package/dist/driverError.js.map +1 -1
- package/dist/storage.d.ts +36 -0
- package/dist/storage.d.ts.map +1 -1
- package/dist/storage.js +6 -0
- package/dist/storage.js.map +1 -1
- package/dist/urlResolver.d.ts +12 -0
- package/dist/urlResolver.d.ts.map +1 -1
- package/dist/urlResolver.js +1 -0
- package/dist/urlResolver.js.map +1 -1
- package/lib/driver-definitions-alpha.d.ts +51 -158
- package/lib/driver-definitions-beta.d.ts +73 -621
- package/lib/driver-definitions-public.d.ts +73 -621
- package/lib/driver-definitions-untrimmed.d.ts +71 -0
- package/lib/driverError.d.ts +23 -0
- package/lib/driverError.d.ts.map +1 -1
- package/lib/driverError.js +2 -0
- package/lib/driverError.js.map +1 -1
- package/lib/storage.d.ts +36 -0
- package/lib/storage.d.ts.map +1 -1
- package/lib/storage.js +6 -0
- package/lib/storage.js.map +1 -1
- package/lib/urlResolver.d.ts +12 -0
- package/lib/urlResolver.d.ts.map +1 -1
- package/lib/urlResolver.js +1 -0
- package/lib/urlResolver.js.map +1 -1
- package/package.json +4 -3
- package/src/driverError.ts +23 -0
- package/src/storage.ts +36 -0
- package/src/urlResolver.ts +12 -0
|
@@ -18,6 +18,9 @@ import { ITelemetryBaseLogger } from '@fluidframework/core-interfaces';
|
|
|
18
18
|
import { ITokenClaims } from '@fluidframework/protocol-definitions';
|
|
19
19
|
import { IVersion } from '@fluidframework/protocol-definitions';
|
|
20
20
|
|
|
21
|
+
/**
|
|
22
|
+
* @internal
|
|
23
|
+
*/
|
|
21
24
|
export declare type DriverError = IThrottlingWarning | IGenericNetworkError | IAuthorizationError | ILocationRedirectionError | IDriverBasicError;
|
|
22
25
|
|
|
23
26
|
/**
|
|
@@ -25,6 +28,7 @@ export declare type DriverError = IThrottlingWarning | IGenericNetworkError | IA
|
|
|
25
28
|
* Lists types that are likely to be used by all drivers
|
|
26
29
|
*
|
|
27
30
|
* @deprecated Use {@link (DriverErrorTypes:type)} instead.
|
|
31
|
+
* @alpha
|
|
28
32
|
*/
|
|
29
33
|
export declare enum DriverErrorType {
|
|
30
34
|
/**
|
|
@@ -112,6 +116,7 @@ export declare enum DriverErrorType {
|
|
|
112
116
|
|
|
113
117
|
/**
|
|
114
118
|
* Different error types the Driver may report out to the Host.
|
|
119
|
+
* @internal
|
|
115
120
|
*/
|
|
116
121
|
export declare const DriverErrorTypes: {
|
|
117
122
|
/**
|
|
@@ -187,10 +192,14 @@ export declare const DriverErrorTypes: {
|
|
|
187
192
|
readonly usageError: "usageError";
|
|
188
193
|
};
|
|
189
194
|
|
|
195
|
+
/**
|
|
196
|
+
* @internal
|
|
197
|
+
*/
|
|
190
198
|
export declare type DriverErrorTypes = (typeof DriverErrorTypes)[keyof typeof DriverErrorTypes];
|
|
191
199
|
|
|
192
200
|
/**
|
|
193
201
|
* Additional key in the loader request header
|
|
202
|
+
* @internal
|
|
194
203
|
*/
|
|
195
204
|
export declare enum DriverHeader {
|
|
196
205
|
summarizingClient = "fluid-client-summarizer",
|
|
@@ -200,6 +209,7 @@ export declare enum DriverHeader {
|
|
|
200
209
|
/**
|
|
201
210
|
* Information that can be returned by a lightweight, seperately exported driver function. Used to preanalyze a URL
|
|
202
211
|
* for driver compatibility and preload information.
|
|
212
|
+
* @internal
|
|
203
213
|
*/
|
|
204
214
|
export declare interface DriverPreCheckInfo {
|
|
205
215
|
/**
|
|
@@ -213,11 +223,17 @@ export declare interface DriverPreCheckInfo {
|
|
|
213
223
|
criticalBootDomains?: string[];
|
|
214
224
|
}
|
|
215
225
|
|
|
226
|
+
/**
|
|
227
|
+
* @alpha
|
|
228
|
+
*/
|
|
216
229
|
export declare enum FetchSource {
|
|
217
230
|
default = "default",
|
|
218
231
|
noCache = "noCache"
|
|
219
232
|
}
|
|
220
233
|
|
|
234
|
+
/**
|
|
235
|
+
* @alpha
|
|
236
|
+
*/
|
|
221
237
|
export declare type FiveDaysMs = 432000000;
|
|
222
238
|
|
|
223
239
|
/**
|
|
@@ -228,11 +244,15 @@ export declare type FiveDaysMs = 432000000;
|
|
|
228
244
|
* "Any" in the interface name is a nod to the fact that errorType has lost its type constraint.
|
|
229
245
|
* It will be either DriverErrorType or the specific driver's specialized error type enum,
|
|
230
246
|
* but we can't reference a specific driver's error type enum in this code.
|
|
247
|
+
* @alpha
|
|
231
248
|
*/
|
|
232
249
|
export declare interface IAnyDriverError extends Omit<IDriverErrorBase, "errorType"> {
|
|
233
250
|
readonly errorType: string;
|
|
234
251
|
}
|
|
235
252
|
|
|
253
|
+
/**
|
|
254
|
+
* @internal
|
|
255
|
+
*/
|
|
236
256
|
export declare interface IAuthorizationError extends IDriverErrorBase {
|
|
237
257
|
readonly errorType: DriverErrorType.authorizationError;
|
|
238
258
|
readonly claims?: string;
|
|
@@ -241,6 +261,7 @@ export declare interface IAuthorizationError extends IDriverErrorBase {
|
|
|
241
261
|
|
|
242
262
|
/**
|
|
243
263
|
* Container package info handed off to resolver.
|
|
264
|
+
* @alpha
|
|
244
265
|
*/
|
|
245
266
|
export declare interface IContainerPackageInfo {
|
|
246
267
|
/**
|
|
@@ -249,6 +270,9 @@ export declare interface IContainerPackageInfo {
|
|
|
249
270
|
name: string;
|
|
250
271
|
}
|
|
251
272
|
|
|
273
|
+
/**
|
|
274
|
+
* @internal
|
|
275
|
+
*/
|
|
252
276
|
export declare interface IDeltasFetchResult {
|
|
253
277
|
/**
|
|
254
278
|
* Sequential set of messages starting from 'from' sequence number.
|
|
@@ -265,6 +289,7 @@ export declare interface IDeltasFetchResult {
|
|
|
265
289
|
|
|
266
290
|
/**
|
|
267
291
|
* Interface to provide access to stored deltas for a shared object
|
|
292
|
+
* @internal
|
|
268
293
|
*/
|
|
269
294
|
export declare interface IDeltaStorageService {
|
|
270
295
|
/**
|
|
@@ -282,6 +307,9 @@ export declare interface IDeltaStorageService {
|
|
|
282
307
|
fetchReason?: string): Promise<IDeltasFetchResult>;
|
|
283
308
|
}
|
|
284
309
|
|
|
310
|
+
/**
|
|
311
|
+
* @alpha
|
|
312
|
+
*/
|
|
285
313
|
export declare interface IDocumentDeltaConnection extends IDisposable, IEventProvider<IDocumentDeltaConnectionEvents> {
|
|
286
314
|
/**
|
|
287
315
|
* ClientID for the connection
|
|
@@ -344,6 +372,9 @@ export declare interface IDocumentDeltaConnection extends IDisposable, IEventPro
|
|
|
344
372
|
submitSignal(content: any, targetClientId?: string): void;
|
|
345
373
|
}
|
|
346
374
|
|
|
375
|
+
/**
|
|
376
|
+
* @alpha
|
|
377
|
+
*/
|
|
347
378
|
export declare interface IDocumentDeltaConnectionEvents extends IErrorEvent {
|
|
348
379
|
(event: "nack", listener: (documentId: string, message: INack[]) => void): any;
|
|
349
380
|
(event: "disconnect", listener: (reason: IAnyDriverError) => void): any;
|
|
@@ -355,6 +386,7 @@ export declare interface IDocumentDeltaConnectionEvents extends IErrorEvent {
|
|
|
355
386
|
|
|
356
387
|
/**
|
|
357
388
|
* Interface to provide access to stored deltas for a shared object
|
|
389
|
+
* @alpha
|
|
358
390
|
*/
|
|
359
391
|
export declare interface IDocumentDeltaStorageService {
|
|
360
392
|
/**
|
|
@@ -370,6 +402,9 @@ export declare interface IDocumentDeltaStorageService {
|
|
|
370
402
|
fetchMessages(from: number, to: number | undefined, abortSignal?: AbortSignal, cachedOnly?: boolean, fetchReason?: string): IStream<ISequencedDocumentMessage[]>;
|
|
371
403
|
}
|
|
372
404
|
|
|
405
|
+
/**
|
|
406
|
+
* @alpha
|
|
407
|
+
*/
|
|
373
408
|
export declare interface IDocumentService {
|
|
374
409
|
resolvedUrl: IResolvedUrl;
|
|
375
410
|
/**
|
|
@@ -401,6 +436,9 @@ export declare interface IDocumentService {
|
|
|
401
436
|
dispose(error?: any): void;
|
|
402
437
|
}
|
|
403
438
|
|
|
439
|
+
/**
|
|
440
|
+
* @alpha
|
|
441
|
+
*/
|
|
404
442
|
export declare interface IDocumentServiceFactory {
|
|
405
443
|
/**
|
|
406
444
|
* Creates the document service after extracting different endpoints URLs from a resolved URL.
|
|
@@ -428,6 +466,9 @@ export declare interface IDocumentServiceFactory {
|
|
|
428
466
|
createContainer(createNewSummary: ISummaryTree | undefined, createNewResolvedUrl: IResolvedUrl, logger?: ITelemetryBaseLogger, clientIsSummarizer?: boolean): Promise<IDocumentService>;
|
|
429
467
|
}
|
|
430
468
|
|
|
469
|
+
/**
|
|
470
|
+
* @alpha
|
|
471
|
+
*/
|
|
431
472
|
export declare interface IDocumentServicePolicies {
|
|
432
473
|
/**
|
|
433
474
|
* Do not connect to delta stream
|
|
@@ -441,6 +482,7 @@ export declare interface IDocumentServicePolicies {
|
|
|
441
482
|
|
|
442
483
|
/**
|
|
443
484
|
* Interface to provide access to snapshots saved for a shared object
|
|
485
|
+
* @alpha
|
|
444
486
|
*/
|
|
445
487
|
export declare interface IDocumentStorageService extends Partial<IDisposable> {
|
|
446
488
|
repositoryUrl: string;
|
|
@@ -492,6 +534,7 @@ export declare interface IDocumentStorageService extends Partial<IDisposable> {
|
|
|
492
534
|
/**
|
|
493
535
|
* Policies describing attributes or characteristics of the driver's storage service,
|
|
494
536
|
* to direct how other components interact with the driver
|
|
537
|
+
* @alpha
|
|
495
538
|
*/
|
|
496
539
|
export declare interface IDocumentStorageServicePolicies {
|
|
497
540
|
/**
|
|
@@ -512,6 +555,7 @@ export declare interface IDocumentStorageServicePolicies {
|
|
|
512
555
|
/**
|
|
513
556
|
* Having this uber interface without types that have their own interfaces
|
|
514
557
|
* allows compiler to differentiate interfaces based on error type
|
|
558
|
+
* @internal
|
|
515
559
|
*/
|
|
516
560
|
export declare interface IDriverBasicError extends IDriverErrorBase {
|
|
517
561
|
readonly errorType: DriverErrorType.genericError | DriverErrorType.fileNotFoundOrAccessDeniedError | DriverErrorType.offlineError | DriverErrorType.unsupportedClientProtocolVersion | DriverErrorType.writeError | DriverErrorType.fetchFailure | DriverErrorType.fetchTokenError | DriverErrorType.incorrectServerResponse | DriverErrorType.fileOverwrittenInStorage | DriverErrorType.fluidInvalidSchema | DriverErrorType.usageError | DriverErrorType.fileIsLocked | DriverErrorType.outOfStorageError;
|
|
@@ -520,6 +564,7 @@ export declare interface IDriverBasicError extends IDriverErrorBase {
|
|
|
520
564
|
|
|
521
565
|
/**
|
|
522
566
|
* Base interface for all errors and warnings
|
|
567
|
+
* @alpha
|
|
523
568
|
*/
|
|
524
569
|
export declare interface IDriverErrorBase {
|
|
525
570
|
/**
|
|
@@ -547,21 +592,33 @@ export declare interface IDriverErrorBase {
|
|
|
547
592
|
endpointReached?: boolean;
|
|
548
593
|
}
|
|
549
594
|
|
|
595
|
+
/**
|
|
596
|
+
* @internal
|
|
597
|
+
*/
|
|
550
598
|
export declare interface IDriverHeader {
|
|
551
599
|
[DriverHeader.summarizingClient]: boolean;
|
|
552
600
|
[DriverHeader.createNew]: any;
|
|
553
601
|
}
|
|
554
602
|
|
|
603
|
+
/**
|
|
604
|
+
* @internal
|
|
605
|
+
*/
|
|
555
606
|
export declare interface IGenericNetworkError extends IDriverErrorBase {
|
|
556
607
|
readonly errorType: DriverErrorType.genericNetworkError;
|
|
557
608
|
readonly statusCode?: number;
|
|
558
609
|
}
|
|
559
610
|
|
|
611
|
+
/**
|
|
612
|
+
* @internal
|
|
613
|
+
*/
|
|
560
614
|
export declare interface ILocationRedirectionError extends IDriverErrorBase {
|
|
561
615
|
readonly errorType: DriverErrorType.locationRedirection;
|
|
562
616
|
readonly redirectUrl: IResolvedUrl;
|
|
563
617
|
}
|
|
564
618
|
|
|
619
|
+
/**
|
|
620
|
+
* @alpha
|
|
621
|
+
*/
|
|
565
622
|
export declare interface IResolvedUrl {
|
|
566
623
|
type: "fluid";
|
|
567
624
|
/**
|
|
@@ -579,11 +636,15 @@ export declare interface IResolvedUrl {
|
|
|
579
636
|
|
|
580
637
|
/**
|
|
581
638
|
* Read interface for the Queue
|
|
639
|
+
* @alpha
|
|
582
640
|
*/
|
|
583
641
|
export declare interface IStream<T> {
|
|
584
642
|
read(): Promise<IStreamResult<T>>;
|
|
585
643
|
}
|
|
586
644
|
|
|
645
|
+
/**
|
|
646
|
+
* @alpha
|
|
647
|
+
*/
|
|
587
648
|
export declare type IStreamResult<T> = {
|
|
588
649
|
done: true;
|
|
589
650
|
} | {
|
|
@@ -594,6 +655,7 @@ export declare type IStreamResult<T> = {
|
|
|
594
655
|
/**
|
|
595
656
|
* Context for uploading a summary to storage.
|
|
596
657
|
* Indicates the previously acked summary.
|
|
658
|
+
* @alpha
|
|
597
659
|
*/
|
|
598
660
|
export declare interface ISummaryContext {
|
|
599
661
|
/**
|
|
@@ -607,11 +669,17 @@ export declare interface ISummaryContext {
|
|
|
607
669
|
readonly referenceSequenceNumber: number;
|
|
608
670
|
}
|
|
609
671
|
|
|
672
|
+
/**
|
|
673
|
+
* @internal
|
|
674
|
+
*/
|
|
610
675
|
export declare interface IThrottlingWarning extends IDriverErrorBase {
|
|
611
676
|
readonly errorType: DriverErrorType.throttlingError;
|
|
612
677
|
readonly retryAfterSeconds: number;
|
|
613
678
|
}
|
|
614
679
|
|
|
680
|
+
/**
|
|
681
|
+
* @alpha
|
|
682
|
+
*/
|
|
615
683
|
export declare interface IUrlResolver {
|
|
616
684
|
resolve(request: IRequest): Promise<IResolvedUrl | undefined>;
|
|
617
685
|
/**
|
|
@@ -624,6 +692,9 @@ export declare interface IUrlResolver {
|
|
|
624
692
|
getAbsoluteUrl(resolvedUrl: IResolvedUrl, relativeUrl: string, packageInfoSource?: IContainerPackageInfo): Promise<string>;
|
|
625
693
|
}
|
|
626
694
|
|
|
695
|
+
/**
|
|
696
|
+
* @alpha
|
|
697
|
+
*/
|
|
627
698
|
export declare enum LoaderCachingPolicy {
|
|
628
699
|
/**
|
|
629
700
|
* The loader should not implement any prefetching or caching policy.
|
package/lib/driverError.d.ts
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
import { IResolvedUrl } from "./urlResolver";
|
|
6
6
|
/**
|
|
7
7
|
* Different error types the Driver may report out to the Host.
|
|
8
|
+
* @internal
|
|
8
9
|
*/
|
|
9
10
|
export declare const DriverErrorTypes: {
|
|
10
11
|
/**
|
|
@@ -79,12 +80,16 @@ export declare const DriverErrorTypes: {
|
|
|
79
80
|
readonly throttlingError: "throttlingError";
|
|
80
81
|
readonly usageError: "usageError";
|
|
81
82
|
};
|
|
83
|
+
/**
|
|
84
|
+
* @internal
|
|
85
|
+
*/
|
|
82
86
|
export type DriverErrorTypes = (typeof DriverErrorTypes)[keyof typeof DriverErrorTypes];
|
|
83
87
|
/**
|
|
84
88
|
* Driver Error types
|
|
85
89
|
* Lists types that are likely to be used by all drivers
|
|
86
90
|
*
|
|
87
91
|
* @deprecated Use {@link (DriverErrorTypes:type)} instead.
|
|
92
|
+
* @alpha
|
|
88
93
|
*/
|
|
89
94
|
export declare enum DriverErrorType {
|
|
90
95
|
/**
|
|
@@ -177,12 +182,14 @@ export declare enum DriverErrorType {
|
|
|
177
182
|
* "Any" in the interface name is a nod to the fact that errorType has lost its type constraint.
|
|
178
183
|
* It will be either DriverErrorType or the specific driver's specialized error type enum,
|
|
179
184
|
* but we can't reference a specific driver's error type enum in this code.
|
|
185
|
+
* @alpha
|
|
180
186
|
*/
|
|
181
187
|
export interface IAnyDriverError extends Omit<IDriverErrorBase, "errorType"> {
|
|
182
188
|
readonly errorType: string;
|
|
183
189
|
}
|
|
184
190
|
/**
|
|
185
191
|
* Base interface for all errors and warnings
|
|
192
|
+
* @alpha
|
|
186
193
|
*/
|
|
187
194
|
export interface IDriverErrorBase {
|
|
188
195
|
/**
|
|
@@ -209,19 +216,31 @@ export interface IDriverErrorBase {
|
|
|
209
216
|
*/
|
|
210
217
|
endpointReached?: boolean;
|
|
211
218
|
}
|
|
219
|
+
/**
|
|
220
|
+
* @internal
|
|
221
|
+
*/
|
|
212
222
|
export interface IThrottlingWarning extends IDriverErrorBase {
|
|
213
223
|
readonly errorType: DriverErrorType.throttlingError;
|
|
214
224
|
readonly retryAfterSeconds: number;
|
|
215
225
|
}
|
|
226
|
+
/**
|
|
227
|
+
* @internal
|
|
228
|
+
*/
|
|
216
229
|
export interface IGenericNetworkError extends IDriverErrorBase {
|
|
217
230
|
readonly errorType: DriverErrorType.genericNetworkError;
|
|
218
231
|
readonly statusCode?: number;
|
|
219
232
|
}
|
|
233
|
+
/**
|
|
234
|
+
* @internal
|
|
235
|
+
*/
|
|
220
236
|
export interface IAuthorizationError extends IDriverErrorBase {
|
|
221
237
|
readonly errorType: DriverErrorType.authorizationError;
|
|
222
238
|
readonly claims?: string;
|
|
223
239
|
readonly tenantId?: string;
|
|
224
240
|
}
|
|
241
|
+
/**
|
|
242
|
+
* @internal
|
|
243
|
+
*/
|
|
225
244
|
export interface ILocationRedirectionError extends IDriverErrorBase {
|
|
226
245
|
readonly errorType: DriverErrorType.locationRedirection;
|
|
227
246
|
readonly redirectUrl: IResolvedUrl;
|
|
@@ -229,10 +248,14 @@ export interface ILocationRedirectionError extends IDriverErrorBase {
|
|
|
229
248
|
/**
|
|
230
249
|
* Having this uber interface without types that have their own interfaces
|
|
231
250
|
* allows compiler to differentiate interfaces based on error type
|
|
251
|
+
* @internal
|
|
232
252
|
*/
|
|
233
253
|
export interface IDriverBasicError extends IDriverErrorBase {
|
|
234
254
|
readonly errorType: DriverErrorType.genericError | DriverErrorType.fileNotFoundOrAccessDeniedError | DriverErrorType.offlineError | DriverErrorType.unsupportedClientProtocolVersion | DriverErrorType.writeError | DriverErrorType.fetchFailure | DriverErrorType.fetchTokenError | DriverErrorType.incorrectServerResponse | DriverErrorType.fileOverwrittenInStorage | DriverErrorType.fluidInvalidSchema | DriverErrorType.usageError | DriverErrorType.fileIsLocked | DriverErrorType.outOfStorageError;
|
|
235
255
|
readonly statusCode?: number;
|
|
236
256
|
}
|
|
257
|
+
/**
|
|
258
|
+
* @internal
|
|
259
|
+
*/
|
|
237
260
|
export type DriverError = IThrottlingWarning | IGenericNetworkError | IAuthorizationError | ILocationRedirectionError | IDriverBasicError;
|
|
238
261
|
//# sourceMappingURL=driverError.d.ts.map
|
package/lib/driverError.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"driverError.d.ts","sourceRoot":"","sources":["../src/driverError.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAM7C
|
|
1
|
+
{"version":3,"file":"driverError.d.ts","sourceRoot":"","sources":["../src/driverError.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAM7C;;;GAGG;AACH,eAAO,MAAM,gBAAgB;IAI5B;;;OAGG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;OAEG;;;IAQH;;;OAGG;;IAGH;;;;;OAKG;;IAGH;;OAEG;;IAGH;;OAEG;;IAGH;;;;;OAKG;;IAGH;;OAEG;;IAGH;;;OAGG;;IAGH;;;;OAIG;;IAGH;;OAEG;;IAGH;;OAEG;;;;;CAEM,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,OAAO,gBAAgB,CAAC,CAAC,MAAM,OAAO,gBAAgB,CAAC,CAAC;AAExF;;;;;;GAMG;AACH,oBAAY,eAAe;IAC1B;;OAEG;IACH,YAAY,iBAAiB;IAE7B;;;OAGG;IACH,mBAAmB,wBAAwB;IAE3C;;OAEG;IACH,kBAAkB,uBAAuB;IAEzC;;OAEG;IACH,+BAA+B,oCAAoC;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AAC,EAAE,MAAM,CAAC;CAC7B;AAED;;GAEG;AACH,MAAM,WAAW,mBAAoB,SAAQ,gBAAgB;IAC5D,QAAQ,CAAC,SAAS,EAAE,eAAe,CAAC,kBAAkB,CAAC;IACvD,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED;;GAEG;AACH,MAAM,WAAW,yBAA0B,SAAQ,gBAAgB;IAClE,QAAQ,CAAC,SAAS,EAAE,eAAe,CAAC,mBAAmB,CAAC;IACxD,QAAQ,CAAC,WAAW,EAAE,YAAY,CAAC;CACnC;AAED;;;;GAIG;AACH,MAAM,WAAW,iBAAkB,SAAQ,gBAAgB;IAC1D,QAAQ,CAAC,SAAS,EACf,eAAe,CAAC,YAAY,GAC5B,eAAe,CAAC,+BAA+B,GAC/C,eAAe,CAAC,YAAY,GAC5B,eAAe,CAAC,gCAAgC,GAChD,eAAe,CAAC,UAAU,GAC1B,eAAe,CAAC,YAAY,GAC5B,eAAe,CAAC,eAAe,GAC/B,eAAe,CAAC,uBAAuB,GACvC,eAAe,CAAC,wBAAwB,GACxC,eAAe,CAAC,kBAAkB,GAClC,eAAe,CAAC,UAAU,GAC1B,eAAe,CAAC,YAAY,GAC5B,eAAe,CAAC,iBAAiB,CAAC;IACrC,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED;;GAEG;AACH,MAAM,MAAM,WAAW,GACpB,kBAAkB,GAClB,oBAAoB,GACpB,mBAAmB,GACnB,yBAAyB,GACzB,iBAAiB,CAAC"}
|
package/lib/driverError.js
CHANGED
|
@@ -7,6 +7,7 @@ import { FluidErrorTypes } from "@fluidframework/core-interfaces";
|
|
|
7
7
|
const { dataCorruptionError, dataProcessingError, ...FluidErrorTypesExceptDataTypes } = FluidErrorTypes;
|
|
8
8
|
/**
|
|
9
9
|
* Different error types the Driver may report out to the Host.
|
|
10
|
+
* @internal
|
|
10
11
|
*/
|
|
11
12
|
export const DriverErrorTypes = {
|
|
12
13
|
// Inherit base error types
|
|
@@ -88,6 +89,7 @@ export const DriverErrorTypes = {
|
|
|
88
89
|
* Lists types that are likely to be used by all drivers
|
|
89
90
|
*
|
|
90
91
|
* @deprecated Use {@link (DriverErrorTypes:type)} instead.
|
|
92
|
+
* @alpha
|
|
91
93
|
*/
|
|
92
94
|
export var DriverErrorType;
|
|
93
95
|
(function (DriverErrorType) {
|
package/lib/driverError.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"driverError.js","sourceRoot":"","sources":["../src/driverError.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAIlE,8GAA8G;AAC9G,MAAM,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,GAAG,8BAA8B,EAAE,GACpF,eAAe,CAAC;AAEjB;;GAEG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC/B,2BAA2B;IAC3B,GAAG,8BAA8B;IAEjC;;;OAGG;IACH,mBAAmB,EAAE,qBAAqB;IAE1C;;OAEG;IACH,kBAAkB,EAAE,oBAAoB;IAExC;;OAEG;IACH,+BAA+B,EAAE,iCAAiC;IAElE;;OAEG;IACH,YAAY,EAAE,cAAc;IAE5B;;OAEG;IACH,gCAAgC,EAAE,kCAAkC;IAEpE;;;OAGG;IACH,UAAU,EAAE,YAAY;IAExB;;;;;OAKG;IACH,YAAY,EAAE,cAAc;IAE5B;;OAEG;IACH,eAAe,EAAE,iBAAiB;IAElC;;OAEG;IACH,uBAAuB,EAAE,yBAAyB;IAElD;;;;;OAKG;IACH,wBAAwB,EAAE,0BAA0B;IAEpD;;OAEG;IACH,8BAA8B,EAAE,gCAAgC;IAEhE;;;OAGG;IACH,mBAAmB,EAAE,qBAAqB;IAE1C;;;;OAIG;IACH,kBAAkB,EAAE,oBAAoB;IAExC;;OAEG;IACH,YAAY,EAAE,cAAc;IAE5B;;OAEG;IACH,iBAAiB,EAAE,mBAAmB;CAC7B,CAAC;AAGX;;;;;GAKG;AACH,MAAM,CAAN,IAAY,eAsGX;AAtGD,WAAY,eAAe;IAC1B;;OAEG;IACH,gDAA6B,CAAA;IAE7B;;;OAGG;IACH,8DAA2C,CAAA;IAE3C;;OAEG;IACH,4DAAyC,CAAA;IAEzC;;OAEG;IACH,sFAAmE,CAAA;IAEnE;;OAEG;IACH,sDAAmC,CAAA;IAEnC;;OAEG;IACH,gDAA6B,CAAA;IAE7B;;OAEG;IACH,wFAAqE,CAAA;IAErE;;;OAGG;IACH,4CAAyB,CAAA;IAEzB;;;;;OAKG;IACH,gDAA6B,CAAA;IAE7B;;OAEG;IACH,sDAAmC,CAAA;IAEnC;;OAEG;IACH,sEAAmD,CAAA;IAEnD;;;;;OAKG;IACH,wEAAqD,CAAA;IAErD;;OAEG;IACH,oFAAiE,CAAA;IAEjE;;;OAGG;IACH,8DAA2C,CAAA;IAE3C;;;;OAIG;IACH,4DAAyC,CAAA;IAEzC;;;OAGG;IACH,4CAAyB,CAAA;IAEzB;;OAEG;IACH,gDAA6B,CAAA;IAE7B;;OAEG;IACH,0DAAuC,CAAA;AACxC,CAAC,EAtGW,eAAe,KAAf,eAAe,QAsG1B","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { FluidErrorTypes } from \"@fluidframework/core-interfaces\";\n\nimport { IResolvedUrl } from \"./urlResolver\";\n\n// Omit `dataCorruptionError` and `dataProcessingError` from the list of values inherited from FluidErrorTypes\nconst { dataCorruptionError, dataProcessingError, ...FluidErrorTypesExceptDataTypes } =\n\tFluidErrorTypes;\n\n/**\n * Different error types the Driver may report out to the Host.\n */\nexport const DriverErrorTypes = {\n\t// Inherit base error types\n\t...FluidErrorTypesExceptDataTypes,\n\n\t/**\n\t * Some non-categorized (below) networking error\n\t * Include errors like fatal server error (usually 500).\n\t */\n\tgenericNetworkError: \"genericNetworkError\",\n\n\t/**\n\t * Access denied - user does not have enough privileges to open a file, or continue to operate on a file\n\t */\n\tauthorizationError: \"authorizationError\",\n\n\t/**\n\t * File not found, or file deleted during session\n\t */\n\tfileNotFoundOrAccessDeniedError: \"fileNotFoundOrAccessDeniedError\",\n\n\t/**\n\t * We can not reach server due to computer being offline.\n\t */\n\tofflineError: \"offlineError\",\n\n\t/*\n\t * Unsupported client protocol\n\t */\n\tunsupportedClientProtocolVersion: \"unsupportedClientProtocolVersion\",\n\n\t/**\n\t * User does not have write permissions to a file, but is changing content of a file.\n\t * That might be indication of some data store error - data stores should not generate ops in readonly mode.\n\t */\n\twriteError: \"writeError\",\n\n\t/**\n\t * A generic fetch failure that indicates we were not able to get a response from the server.\n\t * This may be due to the client being offline (though, if we are able to detect offline state it will be\n\t * logged as an offlineError instead). Other possibilities could be DNS errors, malformed fetch request,\n\t * CSP violation, etc.\n\t */\n\tfetchFailure: \"fetchFailure\",\n\n\t/**\n\t * This error occurs when token provider fails to fetch orderer token\n\t */\n\tfetchTokenError: \"fetchTokenError\",\n\n\t/**\n\t * Unexpected response from server. Either JSON is malformed, or some required properties are missing\n\t */\n\tincorrectServerResponse: \"incorrectServerResponse\",\n\n\t/**\n\t * This error occurs when the file is modified externally (not through Fluid protocol) in storage.\n\t * It will occur in cases where client has some state or cache that is based on old content (identity) of a file,\n\t * and storage / driver / loader detects such mismatch.\n\t * When it's hit, client needs to forget all the knowledge about this file and start over.\n\t */\n\tfileOverwrittenInStorage: \"fileOverwrittenInStorage\",\n\n\t/**\n\t * The document is read-only and delta stream connection is forbidden.\n\t */\n\tdeltaStreamConnectionForbidden: \"deltaStreamConnectionForbidden\",\n\n\t/**\n\t * The location of file/container can change on server. So if the file location moves and we try to access the old\n\t * location, then this error is thrown to let the client know about the new location info.\n\t */\n\tlocationRedirection: \"locationRedirection\",\n\n\t/**\n\t * When a file is not a Fluid file, but has Fluid extension such as \".note\",\n\t * server won't be able to open it and will return this error. The innerMostErrorCode will be\n\t * \"fluidInvalidSchema\"\n\t */\n\tfluidInvalidSchema: \"fluidInvalidSchema\",\n\n\t/**\n\t * File is locked for read/write by storage, e.g. whole collection is locked and access denied.\n\t */\n\tfileIsLocked: \"fileIsLocked\",\n\n\t/**\n\t * Storage is out of space\n\t */\n\toutOfStorageError: \"outOfStorageError\",\n} as const;\nexport type DriverErrorTypes = (typeof DriverErrorTypes)[keyof typeof DriverErrorTypes];\n\n/**\n * Driver Error types\n * Lists types that are likely to be used by all drivers\n *\n * @deprecated Use {@link (DriverErrorTypes:type)} instead.\n */\nexport enum DriverErrorType {\n\t/**\n\t * A fatal error with no specific interpretation covered by other DriverErrorType values\n\t */\n\tgenericError = \"genericError\",\n\n\t/**\n\t * Some non-categorized (below) networking error\n\t * Include errors like fatal server error (usually 500).\n\t */\n\tgenericNetworkError = \"genericNetworkError\",\n\n\t/**\n\t * Access denied - user does not have enough privileges to open a file, or continue to operate on a file\n\t */\n\tauthorizationError = \"authorizationError\",\n\n\t/**\n\t * File not found, or file deleted during session\n\t */\n\tfileNotFoundOrAccessDeniedError = \"fileNotFoundOrAccessDeniedError\",\n\n\t/**\n\t * Throttling error from server. Server is busy and is asking not to reconnect for some time\n\t */\n\tthrottlingError = \"throttlingError\",\n\n\t/**\n\t * We can not reach server due to computer being offline.\n\t */\n\tofflineError = \"offlineError\",\n\n\t/*\n\t * Unsupported client protocol\n\t */\n\tunsupportedClientProtocolVersion = \"unsupportedClientProtocolVersion\",\n\n\t/**\n\t * User does not have write permissions to a file, but is changing content of a file.\n\t * That might be indication of some data store error - data stores should not generate ops in readonly mode.\n\t */\n\twriteError = \"writeError\",\n\n\t/**\n\t * A generic fetch failure that indicates we were not able to get a response from the server.\n\t * This may be due to the client being offline (though, if we are able to detect offline state it will be\n\t * logged as an offlineError instead). Other possibilities could be DNS errors, malformed fetch request,\n\t * CSP violation, etc.\n\t */\n\tfetchFailure = \"fetchFailure\",\n\n\t/**\n\t * This error occurs when token provider fails to fetch orderer token\n\t */\n\tfetchTokenError = \"fetchTokenError\",\n\n\t/**\n\t * Unexpected response from server. Either JSON is malformed, or some required properties are missing\n\t */\n\tincorrectServerResponse = \"incorrectServerResponse\",\n\n\t/**\n\t * This error occurs when the file is modified externally (not through Fluid protocol) in storage.\n\t * It will occur in cases where client has some state or cache that is based on old content (identity) of a file,\n\t * and storage / driver / loader detects such mismatch.\n\t * When it's hit, client needs to forget all the knowledge about this file and start over.\n\t */\n\tfileOverwrittenInStorage = \"fileOverwrittenInStorage\",\n\n\t/**\n\t * The document is read-only and delta stream connection is forbidden.\n\t */\n\tdeltaStreamConnectionForbidden = \"deltaStreamConnectionForbidden\",\n\n\t/**\n\t * The location of file/container can change on server. So if the file location moves and we try to access the old\n\t * location, then this error is thrown to let the client know about the new location info.\n\t */\n\tlocationRedirection = \"locationRedirection\",\n\n\t/**\n\t * When a file is not a Fluid file, but has Fluid extension such as \".note\",\n\t * server won't be able to open it and will return this error. The innerMostErrorCode will be\n\t * \"fluidInvalidSchema\"\n\t */\n\tfluidInvalidSchema = \"fluidInvalidSchema\",\n\n\t/**\n\t * Error indicating an API is being used improperly resulting in an invalid operation.\n\t * ! Should match the value of ContainerErrorType.usageError\n\t */\n\tusageError = \"usageError\",\n\n\t/**\n\t * File is locked for read/write by storage, e.g. whole collection is locked and access denied.\n\t */\n\tfileIsLocked = \"fileIsLocked\",\n\n\t/**\n\t * Storage is out of space\n\t */\n\toutOfStorageError = \"outOfStorageError\",\n}\n\n/**\n * Interface describing errors and warnings raised by any driver code.\n * Not expected to be implemented by a class or an object literal, but rather used in place of\n * any or unknown in various function signatures that pass errors around.\n *\n * \"Any\" in the interface name is a nod to the fact that errorType has lost its type constraint.\n * It will be either DriverErrorType or the specific driver's specialized error type enum,\n * but we can't reference a specific driver's error type enum in this code.\n */\nexport interface IAnyDriverError extends Omit<IDriverErrorBase, \"errorType\"> {\n\treadonly errorType: string;\n}\n\n/**\n * Base interface for all errors and warnings\n */\nexport interface IDriverErrorBase {\n\t/**\n\t * Classification of what type of error this is, used programmatically by consumers to interpret the error.\n\t *\n\t * @privateRemarks TODO: use {@link DriverErrorTypes} instead (breaking change).\n\t */\n\treadonly errorType: DriverErrorType;\n\n\t/**\n\t * Free-form error message\n\t */\n\treadonly message: string;\n\n\t/**\n\t * True indicates the caller may retry the failed action. False indicates it's a fatal error\n\t */\n\tcanRetry: boolean;\n\n\t/**\n\t * Best guess as to network conditions (online/offline) when the error arose.\n\t * See OnlineStatus enum in driver-utils package for expected values.\n\t */\n\tonline?: string;\n\n\t/**\n\t * Whether service was reachable and we got some response from service.\n\t */\n\tendpointReached?: boolean;\n}\n\nexport interface IThrottlingWarning extends IDriverErrorBase {\n\treadonly errorType: DriverErrorType.throttlingError;\n\treadonly retryAfterSeconds: number;\n}\n\nexport interface IGenericNetworkError extends IDriverErrorBase {\n\treadonly errorType: DriverErrorType.genericNetworkError;\n\treadonly statusCode?: number;\n}\n\nexport interface IAuthorizationError extends IDriverErrorBase {\n\treadonly errorType: DriverErrorType.authorizationError;\n\treadonly claims?: string;\n\treadonly tenantId?: string;\n}\n\nexport interface ILocationRedirectionError extends IDriverErrorBase {\n\treadonly errorType: DriverErrorType.locationRedirection;\n\treadonly redirectUrl: IResolvedUrl;\n}\n\n/**\n * Having this uber interface without types that have their own interfaces\n * allows compiler to differentiate interfaces based on error type\n */\nexport interface IDriverBasicError extends IDriverErrorBase {\n\treadonly errorType:\n\t\t| DriverErrorType.genericError\n\t\t| DriverErrorType.fileNotFoundOrAccessDeniedError\n\t\t| DriverErrorType.offlineError\n\t\t| DriverErrorType.unsupportedClientProtocolVersion\n\t\t| DriverErrorType.writeError\n\t\t| DriverErrorType.fetchFailure\n\t\t| DriverErrorType.fetchTokenError\n\t\t| DriverErrorType.incorrectServerResponse\n\t\t| DriverErrorType.fileOverwrittenInStorage\n\t\t| DriverErrorType.fluidInvalidSchema\n\t\t| DriverErrorType.usageError\n\t\t| DriverErrorType.fileIsLocked\n\t\t| DriverErrorType.outOfStorageError;\n\treadonly statusCode?: number;\n}\n\nexport type DriverError =\n\t| IThrottlingWarning\n\t| IGenericNetworkError\n\t| IAuthorizationError\n\t| ILocationRedirectionError\n\t| IDriverBasicError;\n"]}
|
|
1
|
+
{"version":3,"file":"driverError.js","sourceRoot":"","sources":["../src/driverError.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAIlE,8GAA8G;AAC9G,MAAM,EAAE,mBAAmB,EAAE,mBAAmB,EAAE,GAAG,8BAA8B,EAAE,GACpF,eAAe,CAAC;AAEjB;;;GAGG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC/B,2BAA2B;IAC3B,GAAG,8BAA8B;IAEjC;;;OAGG;IACH,mBAAmB,EAAE,qBAAqB;IAE1C;;OAEG;IACH,kBAAkB,EAAE,oBAAoB;IAExC;;OAEG;IACH,+BAA+B,EAAE,iCAAiC;IAElE;;OAEG;IACH,YAAY,EAAE,cAAc;IAE5B;;OAEG;IACH,gCAAgC,EAAE,kCAAkC;IAEpE;;;OAGG;IACH,UAAU,EAAE,YAAY;IAExB;;;;;OAKG;IACH,YAAY,EAAE,cAAc;IAE5B;;OAEG;IACH,eAAe,EAAE,iBAAiB;IAElC;;OAEG;IACH,uBAAuB,EAAE,yBAAyB;IAElD;;;;;OAKG;IACH,wBAAwB,EAAE,0BAA0B;IAEpD;;OAEG;IACH,8BAA8B,EAAE,gCAAgC;IAEhE;;;OAGG;IACH,mBAAmB,EAAE,qBAAqB;IAE1C;;;;OAIG;IACH,kBAAkB,EAAE,oBAAoB;IAExC;;OAEG;IACH,YAAY,EAAE,cAAc;IAE5B;;OAEG;IACH,iBAAiB,EAAE,mBAAmB;CAC7B,CAAC;AAMX;;;;;;GAMG;AACH,MAAM,CAAN,IAAY,eAsGX;AAtGD,WAAY,eAAe;IAC1B;;OAEG;IACH,gDAA6B,CAAA;IAE7B;;;OAGG;IACH,8DAA2C,CAAA;IAE3C;;OAEG;IACH,4DAAyC,CAAA;IAEzC;;OAEG;IACH,sFAAmE,CAAA;IAEnE;;OAEG;IACH,sDAAmC,CAAA;IAEnC;;OAEG;IACH,gDAA6B,CAAA;IAE7B;;OAEG;IACH,wFAAqE,CAAA;IAErE;;;OAGG;IACH,4CAAyB,CAAA;IAEzB;;;;;OAKG;IACH,gDAA6B,CAAA;IAE7B;;OAEG;IACH,sDAAmC,CAAA;IAEnC;;OAEG;IACH,sEAAmD,CAAA;IAEnD;;;;;OAKG;IACH,wEAAqD,CAAA;IAErD;;OAEG;IACH,oFAAiE,CAAA;IAEjE;;;OAGG;IACH,8DAA2C,CAAA;IAE3C;;;;OAIG;IACH,4DAAyC,CAAA;IAEzC;;;OAGG;IACH,4CAAyB,CAAA;IAEzB;;OAEG;IACH,gDAA6B,CAAA;IAE7B;;OAEG;IACH,0DAAuC,CAAA;AACxC,CAAC,EAtGW,eAAe,KAAf,eAAe,QAsG1B","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { FluidErrorTypes } from \"@fluidframework/core-interfaces\";\n\nimport { IResolvedUrl } from \"./urlResolver\";\n\n// Omit `dataCorruptionError` and `dataProcessingError` from the list of values inherited from FluidErrorTypes\nconst { dataCorruptionError, dataProcessingError, ...FluidErrorTypesExceptDataTypes } =\n\tFluidErrorTypes;\n\n/**\n * Different error types the Driver may report out to the Host.\n * @internal\n */\nexport const DriverErrorTypes = {\n\t// Inherit base error types\n\t...FluidErrorTypesExceptDataTypes,\n\n\t/**\n\t * Some non-categorized (below) networking error\n\t * Include errors like fatal server error (usually 500).\n\t */\n\tgenericNetworkError: \"genericNetworkError\",\n\n\t/**\n\t * Access denied - user does not have enough privileges to open a file, or continue to operate on a file\n\t */\n\tauthorizationError: \"authorizationError\",\n\n\t/**\n\t * File not found, or file deleted during session\n\t */\n\tfileNotFoundOrAccessDeniedError: \"fileNotFoundOrAccessDeniedError\",\n\n\t/**\n\t * We can not reach server due to computer being offline.\n\t */\n\tofflineError: \"offlineError\",\n\n\t/*\n\t * Unsupported client protocol\n\t */\n\tunsupportedClientProtocolVersion: \"unsupportedClientProtocolVersion\",\n\n\t/**\n\t * User does not have write permissions to a file, but is changing content of a file.\n\t * That might be indication of some data store error - data stores should not generate ops in readonly mode.\n\t */\n\twriteError: \"writeError\",\n\n\t/**\n\t * A generic fetch failure that indicates we were not able to get a response from the server.\n\t * This may be due to the client being offline (though, if we are able to detect offline state it will be\n\t * logged as an offlineError instead). Other possibilities could be DNS errors, malformed fetch request,\n\t * CSP violation, etc.\n\t */\n\tfetchFailure: \"fetchFailure\",\n\n\t/**\n\t * This error occurs when token provider fails to fetch orderer token\n\t */\n\tfetchTokenError: \"fetchTokenError\",\n\n\t/**\n\t * Unexpected response from server. Either JSON is malformed, or some required properties are missing\n\t */\n\tincorrectServerResponse: \"incorrectServerResponse\",\n\n\t/**\n\t * This error occurs when the file is modified externally (not through Fluid protocol) in storage.\n\t * It will occur in cases where client has some state or cache that is based on old content (identity) of a file,\n\t * and storage / driver / loader detects such mismatch.\n\t * When it's hit, client needs to forget all the knowledge about this file and start over.\n\t */\n\tfileOverwrittenInStorage: \"fileOverwrittenInStorage\",\n\n\t/**\n\t * The document is read-only and delta stream connection is forbidden.\n\t */\n\tdeltaStreamConnectionForbidden: \"deltaStreamConnectionForbidden\",\n\n\t/**\n\t * The location of file/container can change on server. So if the file location moves and we try to access the old\n\t * location, then this error is thrown to let the client know about the new location info.\n\t */\n\tlocationRedirection: \"locationRedirection\",\n\n\t/**\n\t * When a file is not a Fluid file, but has Fluid extension such as \".note\",\n\t * server won't be able to open it and will return this error. The innerMostErrorCode will be\n\t * \"fluidInvalidSchema\"\n\t */\n\tfluidInvalidSchema: \"fluidInvalidSchema\",\n\n\t/**\n\t * File is locked for read/write by storage, e.g. whole collection is locked and access denied.\n\t */\n\tfileIsLocked: \"fileIsLocked\",\n\n\t/**\n\t * Storage is out of space\n\t */\n\toutOfStorageError: \"outOfStorageError\",\n} as const;\n/**\n * @internal\n */\nexport type DriverErrorTypes = (typeof DriverErrorTypes)[keyof typeof DriverErrorTypes];\n\n/**\n * Driver Error types\n * Lists types that are likely to be used by all drivers\n *\n * @deprecated Use {@link (DriverErrorTypes:type)} instead.\n * @alpha\n */\nexport enum DriverErrorType {\n\t/**\n\t * A fatal error with no specific interpretation covered by other DriverErrorType values\n\t */\n\tgenericError = \"genericError\",\n\n\t/**\n\t * Some non-categorized (below) networking error\n\t * Include errors like fatal server error (usually 500).\n\t */\n\tgenericNetworkError = \"genericNetworkError\",\n\n\t/**\n\t * Access denied - user does not have enough privileges to open a file, or continue to operate on a file\n\t */\n\tauthorizationError = \"authorizationError\",\n\n\t/**\n\t * File not found, or file deleted during session\n\t */\n\tfileNotFoundOrAccessDeniedError = \"fileNotFoundOrAccessDeniedError\",\n\n\t/**\n\t * Throttling error from server. Server is busy and is asking not to reconnect for some time\n\t */\n\tthrottlingError = \"throttlingError\",\n\n\t/**\n\t * We can not reach server due to computer being offline.\n\t */\n\tofflineError = \"offlineError\",\n\n\t/*\n\t * Unsupported client protocol\n\t */\n\tunsupportedClientProtocolVersion = \"unsupportedClientProtocolVersion\",\n\n\t/**\n\t * User does not have write permissions to a file, but is changing content of a file.\n\t * That might be indication of some data store error - data stores should not generate ops in readonly mode.\n\t */\n\twriteError = \"writeError\",\n\n\t/**\n\t * A generic fetch failure that indicates we were not able to get a response from the server.\n\t * This may be due to the client being offline (though, if we are able to detect offline state it will be\n\t * logged as an offlineError instead). Other possibilities could be DNS errors, malformed fetch request,\n\t * CSP violation, etc.\n\t */\n\tfetchFailure = \"fetchFailure\",\n\n\t/**\n\t * This error occurs when token provider fails to fetch orderer token\n\t */\n\tfetchTokenError = \"fetchTokenError\",\n\n\t/**\n\t * Unexpected response from server. Either JSON is malformed, or some required properties are missing\n\t */\n\tincorrectServerResponse = \"incorrectServerResponse\",\n\n\t/**\n\t * This error occurs when the file is modified externally (not through Fluid protocol) in storage.\n\t * It will occur in cases where client has some state or cache that is based on old content (identity) of a file,\n\t * and storage / driver / loader detects such mismatch.\n\t * When it's hit, client needs to forget all the knowledge about this file and start over.\n\t */\n\tfileOverwrittenInStorage = \"fileOverwrittenInStorage\",\n\n\t/**\n\t * The document is read-only and delta stream connection is forbidden.\n\t */\n\tdeltaStreamConnectionForbidden = \"deltaStreamConnectionForbidden\",\n\n\t/**\n\t * The location of file/container can change on server. So if the file location moves and we try to access the old\n\t * location, then this error is thrown to let the client know about the new location info.\n\t */\n\tlocationRedirection = \"locationRedirection\",\n\n\t/**\n\t * When a file is not a Fluid file, but has Fluid extension such as \".note\",\n\t * server won't be able to open it and will return this error. The innerMostErrorCode will be\n\t * \"fluidInvalidSchema\"\n\t */\n\tfluidInvalidSchema = \"fluidInvalidSchema\",\n\n\t/**\n\t * Error indicating an API is being used improperly resulting in an invalid operation.\n\t * ! Should match the value of ContainerErrorType.usageError\n\t */\n\tusageError = \"usageError\",\n\n\t/**\n\t * File is locked for read/write by storage, e.g. whole collection is locked and access denied.\n\t */\n\tfileIsLocked = \"fileIsLocked\",\n\n\t/**\n\t * Storage is out of space\n\t */\n\toutOfStorageError = \"outOfStorageError\",\n}\n\n/**\n * Interface describing errors and warnings raised by any driver code.\n * Not expected to be implemented by a class or an object literal, but rather used in place of\n * any or unknown in various function signatures that pass errors around.\n *\n * \"Any\" in the interface name is a nod to the fact that errorType has lost its type constraint.\n * It will be either DriverErrorType or the specific driver's specialized error type enum,\n * but we can't reference a specific driver's error type enum in this code.\n * @alpha\n */\nexport interface IAnyDriverError extends Omit<IDriverErrorBase, \"errorType\"> {\n\treadonly errorType: string;\n}\n\n/**\n * Base interface for all errors and warnings\n * @alpha\n */\nexport interface IDriverErrorBase {\n\t/**\n\t * Classification of what type of error this is, used programmatically by consumers to interpret the error.\n\t *\n\t * @privateRemarks TODO: use {@link DriverErrorTypes} instead (breaking change).\n\t */\n\treadonly errorType: DriverErrorType;\n\n\t/**\n\t * Free-form error message\n\t */\n\treadonly message: string;\n\n\t/**\n\t * True indicates the caller may retry the failed action. False indicates it's a fatal error\n\t */\n\tcanRetry: boolean;\n\n\t/**\n\t * Best guess as to network conditions (online/offline) when the error arose.\n\t * See OnlineStatus enum in driver-utils package for expected values.\n\t */\n\tonline?: string;\n\n\t/**\n\t * Whether service was reachable and we got some response from service.\n\t */\n\tendpointReached?: boolean;\n}\n\n/**\n * @internal\n */\nexport interface IThrottlingWarning extends IDriverErrorBase {\n\treadonly errorType: DriverErrorType.throttlingError;\n\treadonly retryAfterSeconds: number;\n}\n\n/**\n * @internal\n */\nexport interface IGenericNetworkError extends IDriverErrorBase {\n\treadonly errorType: DriverErrorType.genericNetworkError;\n\treadonly statusCode?: number;\n}\n\n/**\n * @internal\n */\nexport interface IAuthorizationError extends IDriverErrorBase {\n\treadonly errorType: DriverErrorType.authorizationError;\n\treadonly claims?: string;\n\treadonly tenantId?: string;\n}\n\n/**\n * @internal\n */\nexport interface ILocationRedirectionError extends IDriverErrorBase {\n\treadonly errorType: DriverErrorType.locationRedirection;\n\treadonly redirectUrl: IResolvedUrl;\n}\n\n/**\n * Having this uber interface without types that have their own interfaces\n * allows compiler to differentiate interfaces based on error type\n * @internal\n */\nexport interface IDriverBasicError extends IDriverErrorBase {\n\treadonly errorType:\n\t\t| DriverErrorType.genericError\n\t\t| DriverErrorType.fileNotFoundOrAccessDeniedError\n\t\t| DriverErrorType.offlineError\n\t\t| DriverErrorType.unsupportedClientProtocolVersion\n\t\t| DriverErrorType.writeError\n\t\t| DriverErrorType.fetchFailure\n\t\t| DriverErrorType.fetchTokenError\n\t\t| DriverErrorType.incorrectServerResponse\n\t\t| DriverErrorType.fileOverwrittenInStorage\n\t\t| DriverErrorType.fluidInvalidSchema\n\t\t| DriverErrorType.usageError\n\t\t| DriverErrorType.fileIsLocked\n\t\t| DriverErrorType.outOfStorageError;\n\treadonly statusCode?: number;\n}\n\n/**\n * @internal\n */\nexport type DriverError =\n\t| IThrottlingWarning\n\t| IGenericNetworkError\n\t| IAuthorizationError\n\t| ILocationRedirectionError\n\t| IDriverBasicError;\n"]}
|
package/lib/storage.d.ts
CHANGED
|
@@ -6,6 +6,9 @@ import { IDisposable, IEventProvider, IErrorEvent, ITelemetryBaseLogger } from "
|
|
|
6
6
|
import { ConnectionMode, IClient, IClientConfiguration, ICreateBlobResponse, IDocumentMessage, INack, ISequencedDocumentMessage, ISignalClient, ISignalMessage, ISnapshotTree, ISummaryHandle, ISummaryTree, ITokenClaims, IVersion } from "@fluidframework/protocol-definitions";
|
|
7
7
|
import { IAnyDriverError } from "./driverError";
|
|
8
8
|
import { IResolvedUrl } from "./urlResolver";
|
|
9
|
+
/**
|
|
10
|
+
* @internal
|
|
11
|
+
*/
|
|
9
12
|
export interface IDeltasFetchResult {
|
|
10
13
|
/**
|
|
11
14
|
* Sequential set of messages starting from 'from' sequence number.
|
|
@@ -21,6 +24,7 @@ export interface IDeltasFetchResult {
|
|
|
21
24
|
}
|
|
22
25
|
/**
|
|
23
26
|
* Interface to provide access to stored deltas for a shared object
|
|
27
|
+
* @internal
|
|
24
28
|
*/
|
|
25
29
|
export interface IDeltaStorageService {
|
|
26
30
|
/**
|
|
@@ -37,6 +41,9 @@ export interface IDeltaStorageService {
|
|
|
37
41
|
to: number, // exclusive
|
|
38
42
|
fetchReason?: string): Promise<IDeltasFetchResult>;
|
|
39
43
|
}
|
|
44
|
+
/**
|
|
45
|
+
* @alpha
|
|
46
|
+
*/
|
|
40
47
|
export type IStreamResult<T> = {
|
|
41
48
|
done: true;
|
|
42
49
|
} | {
|
|
@@ -45,12 +52,14 @@ export type IStreamResult<T> = {
|
|
|
45
52
|
};
|
|
46
53
|
/**
|
|
47
54
|
* Read interface for the Queue
|
|
55
|
+
* @alpha
|
|
48
56
|
*/
|
|
49
57
|
export interface IStream<T> {
|
|
50
58
|
read(): Promise<IStreamResult<T>>;
|
|
51
59
|
}
|
|
52
60
|
/**
|
|
53
61
|
* Interface to provide access to stored deltas for a shared object
|
|
62
|
+
* @alpha
|
|
54
63
|
*/
|
|
55
64
|
export interface IDocumentDeltaStorageService {
|
|
56
65
|
/**
|
|
@@ -65,10 +74,14 @@ export interface IDocumentDeltaStorageService {
|
|
|
65
74
|
*/
|
|
66
75
|
fetchMessages(from: number, to: number | undefined, abortSignal?: AbortSignal, cachedOnly?: boolean, fetchReason?: string): IStream<ISequencedDocumentMessage[]>;
|
|
67
76
|
}
|
|
77
|
+
/**
|
|
78
|
+
* @alpha
|
|
79
|
+
*/
|
|
68
80
|
export type FiveDaysMs = 432000000;
|
|
69
81
|
/**
|
|
70
82
|
* Policies describing attributes or characteristics of the driver's storage service,
|
|
71
83
|
* to direct how other components interact with the driver
|
|
84
|
+
* @alpha
|
|
72
85
|
*/
|
|
73
86
|
export interface IDocumentStorageServicePolicies {
|
|
74
87
|
/**
|
|
@@ -87,6 +100,7 @@ export interface IDocumentStorageServicePolicies {
|
|
|
87
100
|
}
|
|
88
101
|
/**
|
|
89
102
|
* Interface to provide access to snapshots saved for a shared object
|
|
103
|
+
* @alpha
|
|
90
104
|
*/
|
|
91
105
|
export interface IDocumentStorageService extends Partial<IDisposable> {
|
|
92
106
|
repositoryUrl: string;
|
|
@@ -134,6 +148,9 @@ export interface IDocumentStorageService extends Partial<IDisposable> {
|
|
|
134
148
|
*/
|
|
135
149
|
downloadSummary(handle: ISummaryHandle): Promise<ISummaryTree>;
|
|
136
150
|
}
|
|
151
|
+
/**
|
|
152
|
+
* @alpha
|
|
153
|
+
*/
|
|
137
154
|
export interface IDocumentDeltaConnectionEvents extends IErrorEvent {
|
|
138
155
|
(event: "nack", listener: (documentId: string, message: INack[]) => void): any;
|
|
139
156
|
(event: "disconnect", listener: (reason: IAnyDriverError) => void): any;
|
|
@@ -142,6 +159,9 @@ export interface IDocumentDeltaConnectionEvents extends IErrorEvent {
|
|
|
142
159
|
(event: "pong", listener: (latency: number) => void): any;
|
|
143
160
|
(event: "error", listener: (error: any) => void): any;
|
|
144
161
|
}
|
|
162
|
+
/**
|
|
163
|
+
* @alpha
|
|
164
|
+
*/
|
|
145
165
|
export interface IDocumentDeltaConnection extends IDisposable, IEventProvider<IDocumentDeltaConnectionEvents> {
|
|
146
166
|
/**
|
|
147
167
|
* ClientID for the connection
|
|
@@ -203,6 +223,9 @@ export interface IDocumentDeltaConnection extends IDisposable, IEventProvider<ID
|
|
|
203
223
|
*/
|
|
204
224
|
submitSignal(content: any, targetClientId?: string): void;
|
|
205
225
|
}
|
|
226
|
+
/**
|
|
227
|
+
* @alpha
|
|
228
|
+
*/
|
|
206
229
|
export declare enum LoaderCachingPolicy {
|
|
207
230
|
/**
|
|
208
231
|
* The loader should not implement any prefetching or caching policy.
|
|
@@ -213,6 +236,9 @@ export declare enum LoaderCachingPolicy {
|
|
|
213
236
|
*/
|
|
214
237
|
Prefetch = 1
|
|
215
238
|
}
|
|
239
|
+
/**
|
|
240
|
+
* @alpha
|
|
241
|
+
*/
|
|
216
242
|
export interface IDocumentServicePolicies {
|
|
217
243
|
/**
|
|
218
244
|
* Do not connect to delta stream
|
|
@@ -223,6 +249,9 @@ export interface IDocumentServicePolicies {
|
|
|
223
249
|
*/
|
|
224
250
|
readonly summarizeProtocolTree?: boolean;
|
|
225
251
|
}
|
|
252
|
+
/**
|
|
253
|
+
* @alpha
|
|
254
|
+
*/
|
|
226
255
|
export interface IDocumentService {
|
|
227
256
|
resolvedUrl: IResolvedUrl;
|
|
228
257
|
/**
|
|
@@ -253,6 +282,9 @@ export interface IDocumentService {
|
|
|
253
282
|
*/
|
|
254
283
|
dispose(error?: any): void;
|
|
255
284
|
}
|
|
285
|
+
/**
|
|
286
|
+
* @alpha
|
|
287
|
+
*/
|
|
256
288
|
export interface IDocumentServiceFactory {
|
|
257
289
|
/**
|
|
258
290
|
* Creates the document service after extracting different endpoints URLs from a resolved URL.
|
|
@@ -282,6 +314,7 @@ export interface IDocumentServiceFactory {
|
|
|
282
314
|
/**
|
|
283
315
|
* Context for uploading a summary to storage.
|
|
284
316
|
* Indicates the previously acked summary.
|
|
317
|
+
* @alpha
|
|
285
318
|
*/
|
|
286
319
|
export interface ISummaryContext {
|
|
287
320
|
/**
|
|
@@ -294,6 +327,9 @@ export interface ISummaryContext {
|
|
|
294
327
|
readonly ackHandle: string | undefined;
|
|
295
328
|
readonly referenceSequenceNumber: number;
|
|
296
329
|
}
|
|
330
|
+
/**
|
|
331
|
+
* @alpha
|
|
332
|
+
*/
|
|
297
333
|
export declare enum FetchSource {
|
|
298
334
|
default = "default",
|
|
299
335
|
noCache = "noCache"
|
package/lib/storage.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../src/storage.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACN,WAAW,EACX,cAAc,EACd,WAAW,EACX,oBAAoB,EACpB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACN,cAAc,EACd,OAAO,EACP,oBAAoB,EACpB,mBAAmB,EACnB,gBAAgB,EAChB,KAAK,EACL,yBAAyB,EACzB,aAAa,EACb,cAAc,EACd,aAAa,EACb,cAAc,EACd,YAAY,EACZ,YAAY,EACZ,QAAQ,EACR,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAE7C,MAAM,WAAW,kBAAkB;IAClC;;;OAGG;IACH,QAAQ,EAAE,yBAAyB,EAAE,CAAC;IAEtC;;;;OAIG;IACH,aAAa,EAAE,OAAO,CAAC;CACvB;AAED
|
|
1
|
+
{"version":3,"file":"storage.d.ts","sourceRoot":"","sources":["../src/storage.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACN,WAAW,EACX,cAAc,EACd,WAAW,EACX,oBAAoB,EACpB,MAAM,iCAAiC,CAAC;AACzC,OAAO,EACN,cAAc,EACd,OAAO,EACP,oBAAoB,EACpB,mBAAmB,EACnB,gBAAgB,EAChB,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G;AACH,MAAM,WAAW,eAAe;IAC/B;;OAEG;IACH,QAAQ,CAAC,cAAc,EAAE,MAAM,GAAG,SAAS,CAAC;IAE5C;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,SAAS,CAAC;IAEvC,QAAQ,CAAC,uBAAuB,EAAE,MAAM,CAAC;CACzC;AAED;;GAEG;AACH,oBAAY,WAAW;IACtB,OAAO,YAAY;IACnB,OAAO,YAAY;CACnB"}
|
package/lib/storage.js
CHANGED
|
@@ -2,6 +2,9 @@
|
|
|
2
2
|
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
|
+
/**
|
|
6
|
+
* @alpha
|
|
7
|
+
*/
|
|
5
8
|
export var LoaderCachingPolicy;
|
|
6
9
|
(function (LoaderCachingPolicy) {
|
|
7
10
|
/**
|
|
@@ -13,6 +16,9 @@ export var LoaderCachingPolicy;
|
|
|
13
16
|
*/
|
|
14
17
|
LoaderCachingPolicy[LoaderCachingPolicy["Prefetch"] = 1] = "Prefetch";
|
|
15
18
|
})(LoaderCachingPolicy || (LoaderCachingPolicy = {}));
|
|
19
|
+
/**
|
|
20
|
+
* @alpha
|
|
21
|
+
*/
|
|
16
22
|
export var FetchSource;
|
|
17
23
|
(function (FetchSource) {
|
|
18
24
|
FetchSource["default"] = "default";
|