@fluidframework/replay-driver 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.
Files changed (54) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/api-extractor-lint.json +13 -0
  3. package/api-extractor.json +3 -3
  4. package/api-report/replay-driver.api.md +9 -9
  5. package/dist/replay-driver-alpha.d.ts +34 -0
  6. package/dist/replay-driver-beta.d.ts +48 -0
  7. package/dist/replay-driver-public.d.ts +48 -0
  8. package/dist/replay-driver-untrimmed.d.ts +187 -0
  9. package/dist/replayController.cjs +2 -0
  10. package/dist/replayController.cjs.map +1 -1
  11. package/dist/replayController.d.ts +2 -0
  12. package/dist/replayController.d.ts.map +1 -1
  13. package/dist/replayDocumentService.cjs +1 -0
  14. package/dist/replayDocumentService.cjs.map +1 -1
  15. package/dist/replayDocumentService.d.ts +1 -0
  16. package/dist/replayDocumentService.d.ts.map +1 -1
  17. package/dist/replayDocumentServiceFactory.cjs +3 -0
  18. package/dist/replayDocumentServiceFactory.cjs.map +1 -1
  19. package/dist/replayDocumentServiceFactory.d.ts +3 -0
  20. package/dist/replayDocumentServiceFactory.d.ts.map +1 -1
  21. package/dist/storageImplementations.cjs +12 -0
  22. package/dist/storageImplementations.cjs.map +1 -1
  23. package/dist/storageImplementations.d.ts +13 -0
  24. package/dist/storageImplementations.d.ts.map +1 -1
  25. package/lib/emptyDeltaStorageService.d.ts.map +1 -1
  26. package/lib/index.d.ts +4 -4
  27. package/lib/index.d.ts.map +1 -1
  28. package/lib/replay-driver-alpha.d.ts +34 -0
  29. package/lib/replay-driver-beta.d.ts +48 -0
  30. package/lib/replay-driver-public.d.ts +48 -0
  31. package/lib/replay-driver-untrimmed.d.ts +187 -0
  32. package/lib/replayController.d.ts +2 -0
  33. package/lib/replayController.d.ts.map +1 -1
  34. package/lib/replayController.mjs +2 -0
  35. package/lib/replayController.mjs.map +1 -1
  36. package/lib/replayDocumentDeltaConnection.d.ts +1 -1
  37. package/lib/replayDocumentDeltaConnection.d.ts.map +1 -1
  38. package/lib/replayDocumentService.d.ts +2 -1
  39. package/lib/replayDocumentService.d.ts.map +1 -1
  40. package/lib/replayDocumentService.mjs +1 -0
  41. package/lib/replayDocumentService.mjs.map +1 -1
  42. package/lib/replayDocumentServiceFactory.d.ts +4 -1
  43. package/lib/replayDocumentServiceFactory.d.ts.map +1 -1
  44. package/lib/replayDocumentServiceFactory.mjs +3 -0
  45. package/lib/replayDocumentServiceFactory.mjs.map +1 -1
  46. package/lib/storageImplementations.d.ts +14 -1
  47. package/lib/storageImplementations.d.ts.map +1 -1
  48. package/lib/storageImplementations.mjs +12 -0
  49. package/lib/storageImplementations.mjs.map +1 -1
  50. package/package.json +27 -12
  51. package/src/replayController.ts +2 -0
  52. package/src/replayDocumentService.ts +1 -0
  53. package/src/replayDocumentServiceFactory.ts +3 -0
  54. package/src/storageImplementations.ts +13 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @fluidframework/replay-driver
2
2
 
3
+ ## 2.0.0-internal.8.0.0
4
+
5
+ Dependency updates only.
6
+
7
+ ## 2.0.0-internal.7.4.0
8
+
9
+ Dependency updates only.
10
+
3
11
  ## 2.0.0-internal.7.3.0
4
12
 
5
13
  Dependency updates only.
@@ -0,0 +1,13 @@
1
+ {
2
+ "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
3
+ "extends": "../../../common/build/build-common/api-extractor-lint.json",
4
+ "messages": {
5
+ "extractorMessageReporting": {
6
+ // TODO: remove once base config has this enabled as an error
7
+ "ae-incompatible-release-tags": {
8
+ "logLevel": "error",
9
+ "addToApiReportFile": false
10
+ }
11
+ }
12
+ }
13
+ }
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
3
- "extends": "@fluidframework/build-common/api-extractor-base.json",
3
+ "extends": "../../../common/build/build-common/api-extractor-base.json",
4
4
  "messages": {
5
5
  "extractorMessageReporting": {
6
- "ae-missing-release-tag": {
7
- // TODO: Fix violations and remove this rule override
6
+ // TODO: Add missing documentation and remove this rule override
7
+ "ae-undocumented": {
8
8
  "logLevel": "none"
9
9
  }
10
10
  }
@@ -19,7 +19,7 @@ import { ITelemetryLoggerExt } from '@fluidframework/telemetry-utils';
19
19
  import { ITree } from '@fluidframework/protocol-definitions';
20
20
  import { IVersion } from '@fluidframework/protocol-definitions';
21
21
 
22
- // @public (undocumented)
22
+ // @internal (undocumented)
23
23
  export class FileSnapshotReader extends ReadDocumentStorageServiceBase implements IDocumentStorageService {
24
24
  constructor(json: IFileSnapshot);
25
25
  // (undocumented)
@@ -46,7 +46,7 @@ export class FileSnapshotReader extends ReadDocumentStorageServiceBase implement
46
46
  };
47
47
  }
48
48
 
49
- // @public
49
+ // @internal
50
50
  export interface IFileSnapshot {
51
51
  // (undocumented)
52
52
  commits: {
@@ -56,7 +56,7 @@ export interface IFileSnapshot {
56
56
  tree: ITree;
57
57
  }
58
58
 
59
- // @public (undocumented)
59
+ // @internal (undocumented)
60
60
  export class OpStorage extends ReadDocumentStorageServiceBase {
61
61
  // (undocumented)
62
62
  getSnapshotTree(version?: IVersion): Promise<ISnapshotTree | null>;
@@ -66,7 +66,7 @@ export class OpStorage extends ReadDocumentStorageServiceBase {
66
66
  readBlob(blobId: string): Promise<ArrayBufferLike>;
67
67
  }
68
68
 
69
- // @public
69
+ // @internal
70
70
  export abstract class ReadDocumentStorageServiceBase implements IDocumentStorageService {
71
71
  // (undocumented)
72
72
  createBlob(file: ArrayBufferLike): Promise<api.ICreateBlobResponse>;
@@ -84,7 +84,7 @@ export abstract class ReadDocumentStorageServiceBase implements IDocumentStorage
84
84
  uploadSummaryWithContext(summary: api.ISummaryTree, context: ISummaryContext): Promise<string>;
85
85
  }
86
86
 
87
- // @public
87
+ // @internal
88
88
  export abstract class ReplayController extends ReadDocumentStorageServiceBase {
89
89
  abstract fetchTo(currentOp: number): number | undefined;
90
90
  abstract getStartingOpSequence(): Promise<number>;
@@ -93,7 +93,7 @@ export abstract class ReplayController extends ReadDocumentStorageServiceBase {
93
93
  abstract replay(emitter: (op: api.ISequencedDocumentMessage[]) => void, fetchedOps: api.ISequencedDocumentMessage[]): Promise<void>;
94
94
  }
95
95
 
96
- // @public
96
+ // @internal
97
97
  export class ReplayDocumentService implements api_2.IDocumentService {
98
98
  constructor(controller: api_2.IDocumentStorageService, deltaStorage: api_2.IDocumentDeltaConnection);
99
99
  connectToDeltaStorage(): Promise<api_2.IDocumentDeltaStorageService>;
@@ -107,7 +107,7 @@ export class ReplayDocumentService implements api_2.IDocumentService {
107
107
  get resolvedUrl(): api_2.IResolvedUrl;
108
108
  }
109
109
 
110
- // @public (undocumented)
110
+ // @internal (undocumented)
111
111
  export class ReplayDocumentServiceFactory implements IDocumentServiceFactory {
112
112
  constructor(documentServiceFactory: IDocumentServiceFactory, controller: ReplayController);
113
113
  // (undocumented)
@@ -117,7 +117,7 @@ export class ReplayDocumentServiceFactory implements IDocumentServiceFactory {
117
117
  createDocumentService(resolvedUrl: IResolvedUrl, logger?: ITelemetryBaseLogger, clientIsSummarizer?: boolean): Promise<IDocumentService>;
118
118
  }
119
119
 
120
- // @public (undocumented)
120
+ // @internal (undocumented)
121
121
  export class SnapshotStorage extends ReadDocumentStorageServiceBase {
122
122
  constructor(storage: IDocumentStorageService, docTree: ISnapshotTree | null);
123
123
  // (undocumented)
@@ -134,7 +134,7 @@ export class SnapshotStorage extends ReadDocumentStorageServiceBase {
134
134
  protected readonly storage: IDocumentStorageService;
135
135
  }
136
136
 
137
- // @public (undocumented)
137
+ // @internal (undocumented)
138
138
  export class StaticStorageDocumentServiceFactory implements IDocumentServiceFactory {
139
139
  constructor(storage: IDocumentStorageService);
140
140
  // (undocumented)
@@ -0,0 +1,34 @@
1
+ import * as api from '@fluidframework/protocol-definitions';
2
+ import * as api_2 from '@fluidframework/driver-definitions';
3
+ import { IClient } from '@fluidframework/protocol-definitions';
4
+ import { IDocumentService } from '@fluidframework/driver-definitions';
5
+ import { IDocumentServiceFactory } from '@fluidframework/driver-definitions';
6
+ import { IDocumentStorageService } from '@fluidframework/driver-definitions';
7
+ import { IResolvedUrl } from '@fluidframework/driver-definitions';
8
+ import { ISnapshotTree } from '@fluidframework/protocol-definitions';
9
+ import { ISummaryContext } from '@fluidframework/driver-definitions';
10
+ import { ISummaryTree } from '@fluidframework/protocol-definitions';
11
+ import { ITelemetryBaseLogger } from '@fluidframework/core-interfaces';
12
+ import { ITelemetryLoggerExt } from '@fluidframework/telemetry-utils';
13
+ import { ITree } from '@fluidframework/protocol-definitions';
14
+ import { IVersion } from '@fluidframework/protocol-definitions';
15
+
16
+ /* Excluded from this release type: FileSnapshotReader */
17
+
18
+ /* Excluded from this release type: IFileSnapshot */
19
+
20
+ /* Excluded from this release type: OpStorage */
21
+
22
+ /* Excluded from this release type: ReadDocumentStorageServiceBase */
23
+
24
+ /* Excluded from this release type: ReplayController */
25
+
26
+ /* Excluded from this release type: ReplayDocumentService */
27
+
28
+ /* Excluded from this release type: ReplayDocumentServiceFactory */
29
+
30
+ /* Excluded from this release type: SnapshotStorage */
31
+
32
+ /* Excluded from this release type: StaticStorageDocumentServiceFactory */
33
+
34
+ export { }
@@ -0,0 +1,48 @@
1
+ import * as api from '@fluidframework/protocol-definitions';
2
+ import * as api_2 from '@fluidframework/driver-definitions';
3
+ import { IClient } from '@fluidframework/protocol-definitions';
4
+ import { IDocumentService } from '@fluidframework/driver-definitions';
5
+ import { IDocumentServiceFactory } from '@fluidframework/driver-definitions';
6
+ import { IDocumentStorageService } from '@fluidframework/driver-definitions';
7
+ import { IResolvedUrl } from '@fluidframework/driver-definitions';
8
+ import { ISnapshotTree } from '@fluidframework/protocol-definitions';
9
+ import { ISummaryContext } from '@fluidframework/driver-definitions';
10
+ import { ISummaryTree } from '@fluidframework/protocol-definitions';
11
+ import { ITelemetryBaseLogger } from '@fluidframework/core-interfaces';
12
+ import { ITelemetryLoggerExt } from '@fluidframework/telemetry-utils';
13
+ import { ITree } from '@fluidframework/protocol-definitions';
14
+ import { IVersion } from '@fluidframework/protocol-definitions';
15
+
16
+ /* Excluded from this release type: FileSnapshotReader */
17
+
18
+ /* Excluded from this release type: IDocumentService */
19
+
20
+ /* Excluded from this release type: IDocumentServiceFactory */
21
+
22
+ /* Excluded from this release type: IDocumentStorageService */
23
+
24
+ /* Excluded from this release type: IFileSnapshot */
25
+
26
+ /* Excluded from this release type: IResolvedUrl */
27
+
28
+ /* Excluded from this release type: ISummaryContext */
29
+
30
+ /* Excluded from this release type: ITelemetryBaseLogger */
31
+
32
+ /* Excluded from this release type: ITelemetryLoggerExt */
33
+
34
+ /* Excluded from this release type: OpStorage */
35
+
36
+ /* Excluded from this release type: ReadDocumentStorageServiceBase */
37
+
38
+ /* Excluded from this release type: ReplayController */
39
+
40
+ /* Excluded from this release type: ReplayDocumentService */
41
+
42
+ /* Excluded from this release type: ReplayDocumentServiceFactory */
43
+
44
+ /* Excluded from this release type: SnapshotStorage */
45
+
46
+ /* Excluded from this release type: StaticStorageDocumentServiceFactory */
47
+
48
+ export { }
@@ -0,0 +1,48 @@
1
+ import * as api from '@fluidframework/protocol-definitions';
2
+ import * as api_2 from '@fluidframework/driver-definitions';
3
+ import { IClient } from '@fluidframework/protocol-definitions';
4
+ import { IDocumentService } from '@fluidframework/driver-definitions';
5
+ import { IDocumentServiceFactory } from '@fluidframework/driver-definitions';
6
+ import { IDocumentStorageService } from '@fluidframework/driver-definitions';
7
+ import { IResolvedUrl } from '@fluidframework/driver-definitions';
8
+ import { ISnapshotTree } from '@fluidframework/protocol-definitions';
9
+ import { ISummaryContext } from '@fluidframework/driver-definitions';
10
+ import { ISummaryTree } from '@fluidframework/protocol-definitions';
11
+ import { ITelemetryBaseLogger } from '@fluidframework/core-interfaces';
12
+ import { ITelemetryLoggerExt } from '@fluidframework/telemetry-utils';
13
+ import { ITree } from '@fluidframework/protocol-definitions';
14
+ import { IVersion } from '@fluidframework/protocol-definitions';
15
+
16
+ /* Excluded from this release type: FileSnapshotReader */
17
+
18
+ /* Excluded from this release type: IDocumentService */
19
+
20
+ /* Excluded from this release type: IDocumentServiceFactory */
21
+
22
+ /* Excluded from this release type: IDocumentStorageService */
23
+
24
+ /* Excluded from this release type: IFileSnapshot */
25
+
26
+ /* Excluded from this release type: IResolvedUrl */
27
+
28
+ /* Excluded from this release type: ISummaryContext */
29
+
30
+ /* Excluded from this release type: ITelemetryBaseLogger */
31
+
32
+ /* Excluded from this release type: ITelemetryLoggerExt */
33
+
34
+ /* Excluded from this release type: OpStorage */
35
+
36
+ /* Excluded from this release type: ReadDocumentStorageServiceBase */
37
+
38
+ /* Excluded from this release type: ReplayController */
39
+
40
+ /* Excluded from this release type: ReplayDocumentService */
41
+
42
+ /* Excluded from this release type: ReplayDocumentServiceFactory */
43
+
44
+ /* Excluded from this release type: SnapshotStorage */
45
+
46
+ /* Excluded from this release type: StaticStorageDocumentServiceFactory */
47
+
48
+ export { }
@@ -0,0 +1,187 @@
1
+ import * as api from '@fluidframework/protocol-definitions';
2
+ import * as api_2 from '@fluidframework/driver-definitions';
3
+ import { IClient } from '@fluidframework/protocol-definitions';
4
+ import { IDocumentService } from '@fluidframework/driver-definitions';
5
+ import { IDocumentServiceFactory } from '@fluidframework/driver-definitions';
6
+ import { IDocumentStorageService } from '@fluidframework/driver-definitions';
7
+ import { IResolvedUrl } from '@fluidframework/driver-definitions';
8
+ import { ISnapshotTree } from '@fluidframework/protocol-definitions';
9
+ import { ISummaryContext } from '@fluidframework/driver-definitions';
10
+ import { ISummaryTree } from '@fluidframework/protocol-definitions';
11
+ import { ITelemetryBaseLogger } from '@fluidframework/core-interfaces';
12
+ import { ITelemetryLoggerExt } from '@fluidframework/telemetry-utils';
13
+ import { ITree } from '@fluidframework/protocol-definitions';
14
+ import { IVersion } from '@fluidframework/protocol-definitions';
15
+
16
+ /**
17
+ * @internal
18
+ */
19
+ export declare class FileSnapshotReader extends ReadDocumentStorageServiceBase implements IDocumentStorageService {
20
+ protected static readonly FileStorageVersionTreeId = "FileStorageTreeId";
21
+ protected docId?: string;
22
+ protected docTree: ISnapshotTree;
23
+ protected blobs: Map<string, ArrayBufferLike>;
24
+ protected readonly commits: {
25
+ [key: string]: ITree;
26
+ };
27
+ protected readonly trees: {
28
+ [key: string]: ISnapshotTree;
29
+ };
30
+ constructor(json: IFileSnapshot);
31
+ getVersions(versionId: string | null, count: number): Promise<IVersion[]>;
32
+ getSnapshotTree(versionRequested?: IVersion): Promise<ISnapshotTree | null>;
33
+ readBlob(blobId: string): Promise<ArrayBufferLike>;
34
+ }
35
+
36
+ /**
37
+ * Structure of snapshot on disk, when we store snapshot as single file
38
+ * @internal
39
+ */
40
+ export declare interface IFileSnapshot {
41
+ tree: ITree;
42
+ commits: {
43
+ [key: string]: ITree;
44
+ };
45
+ }
46
+
47
+ /**
48
+ * @internal
49
+ */
50
+ export declare class OpStorage extends ReadDocumentStorageServiceBase {
51
+ getVersions(versionId: string | null, count: number): Promise<IVersion[]>;
52
+ getSnapshotTree(version?: IVersion): Promise<ISnapshotTree | null>;
53
+ readBlob(blobId: string): Promise<ArrayBufferLike>;
54
+ }
55
+
56
+ /**
57
+ * Partial implementation of IDocumentStorageService
58
+ * @internal
59
+ */
60
+ export declare abstract class ReadDocumentStorageServiceBase implements IDocumentStorageService {
61
+ abstract getVersions(versionId: string | null, count: number): Promise<api.IVersion[]>;
62
+ abstract getSnapshotTree(version?: api.IVersion): Promise<api.ISnapshotTree | null>;
63
+ abstract readBlob(blobId: string): Promise<ArrayBufferLike>;
64
+ uploadSummaryWithContext(summary: api.ISummaryTree, context: ISummaryContext): Promise<string>;
65
+ createBlob(file: ArrayBufferLike): Promise<api.ICreateBlobResponse>;
66
+ downloadSummary(handle: api.ISummaryHandle): Promise<api.ISummaryTree>;
67
+ get repositoryUrl(): string;
68
+ }
69
+
70
+ /**
71
+ * Replay controller object
72
+ * It controls where we start (snapshot, local file, no snapshots)
73
+ * As well as dispatch of ops
74
+ * @internal
75
+ */
76
+ export declare abstract class ReplayController extends ReadDocumentStorageServiceBase {
77
+ /**
78
+ * Initialize reply controller
79
+ * @param documentService - the real document service
80
+ * @returns Whether or not the controller should be used.
81
+ * If `false` is returned, caller should fallback to original storage.
82
+ */
83
+ abstract initStorage(documentService: IDocumentService): Promise<boolean>;
84
+ /**
85
+ * Returns sequence number to start processing ops
86
+ * Should be zero if not using snapshot, and snapshot seq# otherwise
87
+ */
88
+ abstract getStartingOpSequence(): Promise<number>;
89
+ /**
90
+ * Returns last op number to fetch from current op
91
+ * Note: this API is called while replay() is in progress - next batch of ops is downloaded in parallel
92
+ * @param currentOp - current op
93
+ */
94
+ abstract fetchTo(currentOp: number): number | undefined;
95
+ /**
96
+ * Returns true if no more ops should be processed (or downloaded for future processing).
97
+ * It's called at end of each batch with latest op timestamp.
98
+ * Also it's called when there are no more ops available (lastTimeStamp === undefined).
99
+ * If false is returned and there are no more ops, request for more ops is made every 2 seconds.
100
+ * Note: this API is called while replay() is in progress - next batch of ops is downloaded in parallel
101
+ * @param currentOp - current op
102
+ * @param lastTimeStamp - timestamp of last op (if more ops are available). Undefined otherwise.
103
+ */
104
+ abstract isDoneFetch(currentOp: number, lastTimeStamp?: number): boolean;
105
+ /**
106
+ * Replay batch of ops
107
+ * NOTE: new batch of ops is fetched (fetchTo() & isDoneFetch() APIs are called) while this call is in flights
108
+ * @param emitter - callback to emit ops
109
+ * @param fetchedOps - ops to process
110
+ */
111
+ abstract replay(emitter: (op: api.ISequencedDocumentMessage[]) => void, fetchedOps: api.ISequencedDocumentMessage[]): Promise<void>;
112
+ }
113
+
114
+ /**
115
+ * The Replay document service dummies out the snapshot and the delta storage.
116
+ * Delta connection simulates the socket by fetching the ops from delta storage
117
+ * and emitting them with a pre determined delay
118
+ * @internal
119
+ */
120
+ export declare class ReplayDocumentService implements api_2.IDocumentService {
121
+ private readonly controller;
122
+ private readonly deltaStorage;
123
+ static create(documentService: api_2.IDocumentService, controller: ReplayController): Promise<api_2.IDocumentService>;
124
+ constructor(controller: api_2.IDocumentStorageService, deltaStorage: api_2.IDocumentDeltaConnection);
125
+ dispose(): void;
126
+ get resolvedUrl(): api_2.IResolvedUrl;
127
+ /**
128
+ * Connects to a storage endpoint for snapshot service and blobs.
129
+ * @returns returns the dummy document storage service for replay driver.
130
+ */
131
+ connectToStorage(): Promise<api_2.IDocumentStorageService>;
132
+ /**
133
+ * Connects to a delta storage endpoint for getting ops between a range.
134
+ * @returns returns the dummy document delta storage service for replay driver.
135
+ */
136
+ connectToDeltaStorage(): Promise<api_2.IDocumentDeltaStorageService>;
137
+ /**
138
+ * Connects to a delta storage endpoint of provided documentService to get ops and then replaying
139
+ * them so as to mimic a delta stream endpoint.
140
+ * @param client - Client that connects to socket.
141
+ * @returns returns the delta stream service which replay ops from --from to --to arguments.
142
+ */
143
+ connectToDeltaStream(client: IClient): Promise<api_2.IDocumentDeltaConnection>;
144
+ }
145
+
146
+ /**
147
+ * @internal
148
+ */
149
+ export declare class ReplayDocumentServiceFactory implements IDocumentServiceFactory {
150
+ private readonly documentServiceFactory;
151
+ private readonly controller;
152
+ static create(from: number, to: number, documentServiceFactory: IDocumentServiceFactory): ReplayDocumentServiceFactory;
153
+ constructor(documentServiceFactory: IDocumentServiceFactory, controller: ReplayController);
154
+ /**
155
+ * Creates a replay document service which uses the document service of provided
156
+ * documentServiceFactory for connecting to delta stream endpoint.
157
+ * @param resolvedUrl - URL to be used for connecting to endpoints.
158
+ * @returns returns the requested document service
159
+ */
160
+ createDocumentService(resolvedUrl: IResolvedUrl, logger?: ITelemetryBaseLogger, clientIsSummarizer?: boolean): Promise<IDocumentService>;
161
+ createContainer(createNewSummary: ISummaryTree, resolvedUrl: IResolvedUrl, logger?: ITelemetryBaseLogger, clientIsSummarizer?: boolean): Promise<IDocumentService>;
162
+ }
163
+
164
+ /**
165
+ * @internal
166
+ */
167
+ export declare class SnapshotStorage extends ReadDocumentStorageServiceBase {
168
+ protected readonly storage: IDocumentStorageService;
169
+ protected readonly docTree: ISnapshotTree | null;
170
+ protected docId?: string;
171
+ constructor(storage: IDocumentStorageService, docTree: ISnapshotTree | null);
172
+ getVersions(versionId: string | null, count: number): Promise<IVersion[]>;
173
+ getSnapshotTree(versionRequested?: IVersion): Promise<ISnapshotTree | null>;
174
+ readBlob(blobId: string): Promise<ArrayBufferLike>;
175
+ }
176
+
177
+ /**
178
+ * @internal
179
+ */
180
+ export declare class StaticStorageDocumentServiceFactory implements IDocumentServiceFactory {
181
+ protected readonly storage: IDocumentStorageService;
182
+ constructor(storage: IDocumentStorageService);
183
+ createDocumentService(fileURL: IResolvedUrl, logger?: ITelemetryLoggerExt, clientIsSummarizer?: boolean): Promise<IDocumentService>;
184
+ createContainer(createNewSummary: ISummaryTree, resolvedUrl: IResolvedUrl, logger: ITelemetryLoggerExt, clientIsSummarizer?: boolean): Promise<IDocumentService>;
185
+ }
186
+
187
+ export { }
@@ -7,6 +7,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
7
7
  exports.ReplayController = exports.ReadDocumentStorageServiceBase = void 0;
8
8
  /**
9
9
  * Partial implementation of IDocumentStorageService
10
+ * @internal
10
11
  */
11
12
  class ReadDocumentStorageServiceBase {
12
13
  async uploadSummaryWithContext(summary, context) {
@@ -27,6 +28,7 @@ exports.ReadDocumentStorageServiceBase = ReadDocumentStorageServiceBase;
27
28
  * Replay controller object
28
29
  * It controls where we start (snapshot, local file, no snapshots)
29
30
  * As well as dispatch of ops
31
+ * @internal
30
32
  */
31
33
  class ReplayController extends ReadDocumentStorageServiceBase {
32
34
  }
@@ -1 +1 @@
1
- {"version":3,"file":"replayController.cjs","sourceRoot":"","sources":["../src/replayController.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AASH;;GAEG;AACH,MAAsB,8BAA8B;IAK5C,KAAK,CAAC,wBAAwB,CACpC,OAAyB,EACzB,OAAwB;QAExB,MAAM,IAAI,KAAK,CAAC,mBAAmB,CAAC,CAAC;IACtC,CAAC;IAEM,KAAK,CAAC,UAAU,CAAC,IAAqB;QAC5C,MAAM,IAAI,KAAK,CAAC,mBAAmB,CAAC,CAAC;IACtC,CAAC;IAEM,KAAK,CAAC,eAAe,CAAC,MAA0B;QACtD,MAAM,IAAI,KAAK,CAAC,mBAAmB,CAAC,CAAC;IACtC,CAAC;IAED,IAAW,aAAa;QACvB,MAAM,IAAI,KAAK,CAAC,mBAAmB,CAAC,CAAC;IACtC,CAAC;CACD;AAvBD,wEAuBC;AAED;;;;GAIG;AACH,MAAsB,gBAAiB,SAAQ,8BAA8B;CA2C5E;AA3CD,4CA2CC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport {\n\tIDocumentService,\n\tIDocumentStorageService,\n\tISummaryContext,\n} from \"@fluidframework/driver-definitions\";\nimport * as api from \"@fluidframework/protocol-definitions\";\n\n/**\n * Partial implementation of IDocumentStorageService\n */\nexport abstract class ReadDocumentStorageServiceBase implements IDocumentStorageService {\n\tpublic abstract getVersions(versionId: string | null, count: number): Promise<api.IVersion[]>;\n\tpublic abstract getSnapshotTree(version?: api.IVersion): Promise<api.ISnapshotTree | null>;\n\tpublic abstract readBlob(blobId: string): Promise<ArrayBufferLike>;\n\n\tpublic async uploadSummaryWithContext(\n\t\tsummary: api.ISummaryTree,\n\t\tcontext: ISummaryContext,\n\t): Promise<string> {\n\t\tthrow new Error(\"Invalid operation\");\n\t}\n\n\tpublic async createBlob(file: ArrayBufferLike): Promise<api.ICreateBlobResponse> {\n\t\tthrow new Error(\"Invalid operation\");\n\t}\n\n\tpublic async downloadSummary(handle: api.ISummaryHandle): Promise<api.ISummaryTree> {\n\t\tthrow new Error(\"Invalid operation\");\n\t}\n\n\tpublic get repositoryUrl(): string {\n\t\tthrow new Error(\"Invalid operation\");\n\t}\n}\n\n/**\n * Replay controller object\n * It controls where we start (snapshot, local file, no snapshots)\n * As well as dispatch of ops\n */\nexport abstract class ReplayController extends ReadDocumentStorageServiceBase {\n\t/**\n\t * Initialize reply controller\n\t * @param documentService - the real document service\n\t * @returns Whether or not the controller should be used.\n\t * If `false` is returned, caller should fallback to original storage.\n\t */\n\tpublic abstract initStorage(documentService: IDocumentService): Promise<boolean>;\n\n\t/**\n\t * Returns sequence number to start processing ops\n\t * Should be zero if not using snapshot, and snapshot seq# otherwise\n\t */\n\tpublic abstract getStartingOpSequence(): Promise<number>;\n\n\t/**\n\t * Returns last op number to fetch from current op\n\t * Note: this API is called while replay() is in progress - next batch of ops is downloaded in parallel\n\t * @param currentOp - current op\n\t */\n\tpublic abstract fetchTo(currentOp: number): number | undefined;\n\n\t/**\n\t * Returns true if no more ops should be processed (or downloaded for future processing).\n\t * It's called at end of each batch with latest op timestamp.\n\t * Also it's called when there are no more ops available (lastTimeStamp === undefined).\n\t * If false is returned and there are no more ops, request for more ops is made every 2 seconds.\n\t * Note: this API is called while replay() is in progress - next batch of ops is downloaded in parallel\n\t * @param currentOp - current op\n\t * @param lastTimeStamp - timestamp of last op (if more ops are available). Undefined otherwise.\n\t */\n\tpublic abstract isDoneFetch(currentOp: number, lastTimeStamp?: number): boolean;\n\n\t/**\n\t * Replay batch of ops\n\t * NOTE: new batch of ops is fetched (fetchTo() & isDoneFetch() APIs are called) while this call is in flights\n\t * @param emitter - callback to emit ops\n\t * @param fetchedOps - ops to process\n\t */\n\tpublic abstract replay(\n\t\temitter: (op: api.ISequencedDocumentMessage[]) => void,\n\t\tfetchedOps: api.ISequencedDocumentMessage[],\n\t): Promise<void>;\n}\n"]}
1
+ {"version":3,"file":"replayController.cjs","sourceRoot":"","sources":["../src/replayController.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AASH;;;GAGG;AACH,MAAsB,8BAA8B;IAK5C,KAAK,CAAC,wBAAwB,CACpC,OAAyB,EACzB,OAAwB;QAExB,MAAM,IAAI,KAAK,CAAC,mBAAmB,CAAC,CAAC;IACtC,CAAC;IAEM,KAAK,CAAC,UAAU,CAAC,IAAqB;QAC5C,MAAM,IAAI,KAAK,CAAC,mBAAmB,CAAC,CAAC;IACtC,CAAC;IAEM,KAAK,CAAC,eAAe,CAAC,MAA0B;QACtD,MAAM,IAAI,KAAK,CAAC,mBAAmB,CAAC,CAAC;IACtC,CAAC;IAED,IAAW,aAAa;QACvB,MAAM,IAAI,KAAK,CAAC,mBAAmB,CAAC,CAAC;IACtC,CAAC;CACD;AAvBD,wEAuBC;AAED;;;;;GAKG;AACH,MAAsB,gBAAiB,SAAQ,8BAA8B;CA2C5E;AA3CD,4CA2CC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport {\n\tIDocumentService,\n\tIDocumentStorageService,\n\tISummaryContext,\n} from \"@fluidframework/driver-definitions\";\nimport * as api from \"@fluidframework/protocol-definitions\";\n\n/**\n * Partial implementation of IDocumentStorageService\n * @internal\n */\nexport abstract class ReadDocumentStorageServiceBase implements IDocumentStorageService {\n\tpublic abstract getVersions(versionId: string | null, count: number): Promise<api.IVersion[]>;\n\tpublic abstract getSnapshotTree(version?: api.IVersion): Promise<api.ISnapshotTree | null>;\n\tpublic abstract readBlob(blobId: string): Promise<ArrayBufferLike>;\n\n\tpublic async uploadSummaryWithContext(\n\t\tsummary: api.ISummaryTree,\n\t\tcontext: ISummaryContext,\n\t): Promise<string> {\n\t\tthrow new Error(\"Invalid operation\");\n\t}\n\n\tpublic async createBlob(file: ArrayBufferLike): Promise<api.ICreateBlobResponse> {\n\t\tthrow new Error(\"Invalid operation\");\n\t}\n\n\tpublic async downloadSummary(handle: api.ISummaryHandle): Promise<api.ISummaryTree> {\n\t\tthrow new Error(\"Invalid operation\");\n\t}\n\n\tpublic get repositoryUrl(): string {\n\t\tthrow new Error(\"Invalid operation\");\n\t}\n}\n\n/**\n * Replay controller object\n * It controls where we start (snapshot, local file, no snapshots)\n * As well as dispatch of ops\n * @internal\n */\nexport abstract class ReplayController extends ReadDocumentStorageServiceBase {\n\t/**\n\t * Initialize reply controller\n\t * @param documentService - the real document service\n\t * @returns Whether or not the controller should be used.\n\t * If `false` is returned, caller should fallback to original storage.\n\t */\n\tpublic abstract initStorage(documentService: IDocumentService): Promise<boolean>;\n\n\t/**\n\t * Returns sequence number to start processing ops\n\t * Should be zero if not using snapshot, and snapshot seq# otherwise\n\t */\n\tpublic abstract getStartingOpSequence(): Promise<number>;\n\n\t/**\n\t * Returns last op number to fetch from current op\n\t * Note: this API is called while replay() is in progress - next batch of ops is downloaded in parallel\n\t * @param currentOp - current op\n\t */\n\tpublic abstract fetchTo(currentOp: number): number | undefined;\n\n\t/**\n\t * Returns true if no more ops should be processed (or downloaded for future processing).\n\t * It's called at end of each batch with latest op timestamp.\n\t * Also it's called when there are no more ops available (lastTimeStamp === undefined).\n\t * If false is returned and there are no more ops, request for more ops is made every 2 seconds.\n\t * Note: this API is called while replay() is in progress - next batch of ops is downloaded in parallel\n\t * @param currentOp - current op\n\t * @param lastTimeStamp - timestamp of last op (if more ops are available). Undefined otherwise.\n\t */\n\tpublic abstract isDoneFetch(currentOp: number, lastTimeStamp?: number): boolean;\n\n\t/**\n\t * Replay batch of ops\n\t * NOTE: new batch of ops is fetched (fetchTo() & isDoneFetch() APIs are called) while this call is in flights\n\t * @param emitter - callback to emit ops\n\t * @param fetchedOps - ops to process\n\t */\n\tpublic abstract replay(\n\t\temitter: (op: api.ISequencedDocumentMessage[]) => void,\n\t\tfetchedOps: api.ISequencedDocumentMessage[],\n\t): Promise<void>;\n}\n"]}
@@ -6,6 +6,7 @@ import { IDocumentService, IDocumentStorageService, ISummaryContext } from "@flu
6
6
  import * as api from "@fluidframework/protocol-definitions";
7
7
  /**
8
8
  * Partial implementation of IDocumentStorageService
9
+ * @internal
9
10
  */
10
11
  export declare abstract class ReadDocumentStorageServiceBase implements IDocumentStorageService {
11
12
  abstract getVersions(versionId: string | null, count: number): Promise<api.IVersion[]>;
@@ -20,6 +21,7 @@ export declare abstract class ReadDocumentStorageServiceBase implements IDocumen
20
21
  * Replay controller object
21
22
  * It controls where we start (snapshot, local file, no snapshots)
22
23
  * As well as dispatch of ops
24
+ * @internal
23
25
  */
24
26
  export declare abstract class ReplayController extends ReadDocumentStorageServiceBase {
25
27
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"replayController.d.ts","sourceRoot":"","sources":["../src/replayController.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACN,gBAAgB,EAChB,uBAAuB,EACvB,eAAe,EACf,MAAM,oCAAoC,CAAC;AAC5C,OAAO,KAAK,GAAG,MAAM,sCAAsC,CAAC;AAE5D;;GAEG;AACH,8BAAsB,8BAA+B,YAAW,uBAAuB;aACtE,WAAW,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC;aAC7E,eAAe,CAAC,OAAO,CAAC,EAAE,GAAG,CAAC,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,aAAa,GAAG,IAAI,CAAC;aAC1E,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC;IAErD,wBAAwB,CACpC,OAAO,EAAE,GAAG,CAAC,YAAY,EACzB,OAAO,EAAE,eAAe,GACtB,OAAO,CAAC,MAAM,CAAC;IAIL,UAAU,CAAC,IAAI,EAAE,eAAe,GAAG,OAAO,CAAC,GAAG,CAAC,mBAAmB,CAAC;IAInE,eAAe,CAAC,MAAM,EAAE,GAAG,CAAC,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC;IAInF,IAAW,aAAa,IAAI,MAAM,CAEjC;CACD;AAED;;;;GAIG;AACH,8BAAsB,gBAAiB,SAAQ,8BAA8B;IAC5E;;;;;OAKG;aACa,WAAW,CAAC,eAAe,EAAE,gBAAgB,GAAG,OAAO,CAAC,OAAO,CAAC;IAEhF;;;OAGG;aACa,qBAAqB,IAAI,OAAO,CAAC,MAAM,CAAC;IAExD;;;;OAIG;aACa,OAAO,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;IAE9D;;;;;;;;OAQG;aACa,WAAW,CAAC,SAAS,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,MAAM,GAAG,OAAO;IAE/E;;;;;OAKG;aACa,MAAM,CACrB,OAAO,EAAE,CAAC,EAAE,EAAE,GAAG,CAAC,yBAAyB,EAAE,KAAK,IAAI,EACtD,UAAU,EAAE,GAAG,CAAC,yBAAyB,EAAE,GACzC,OAAO,CAAC,IAAI,CAAC;CAChB"}
1
+ {"version":3,"file":"replayController.d.ts","sourceRoot":"","sources":["../src/replayController.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACN,gBAAgB,EAChB,uBAAuB,EACvB,eAAe,EACf,MAAM,oCAAoC,CAAC;AAC5C,OAAO,KAAK,GAAG,MAAM,sCAAsC,CAAC;AAE5D;;;GAGG;AACH,8BAAsB,8BAA+B,YAAW,uBAAuB;aACtE,WAAW,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC;aAC7E,eAAe,CAAC,OAAO,CAAC,EAAE,GAAG,CAAC,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,aAAa,GAAG,IAAI,CAAC;aAC1E,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC;IAErD,wBAAwB,CACpC,OAAO,EAAE,GAAG,CAAC,YAAY,EACzB,OAAO,EAAE,eAAe,GACtB,OAAO,CAAC,MAAM,CAAC;IAIL,UAAU,CAAC,IAAI,EAAE,eAAe,GAAG,OAAO,CAAC,GAAG,CAAC,mBAAmB,CAAC;IAInE,eAAe,CAAC,MAAM,EAAE,GAAG,CAAC,cAAc,GAAG,OAAO,CAAC,GAAG,CAAC,YAAY,CAAC;IAInF,IAAW,aAAa,IAAI,MAAM,CAEjC;CACD;AAED;;;;;GAKG;AACH,8BAAsB,gBAAiB,SAAQ,8BAA8B;IAC5E;;;;;OAKG;aACa,WAAW,CAAC,eAAe,EAAE,gBAAgB,GAAG,OAAO,CAAC,OAAO,CAAC;IAEhF;;;OAGG;aACa,qBAAqB,IAAI,OAAO,CAAC,MAAM,CAAC;IAExD;;;;OAIG;aACa,OAAO,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS;IAE9D;;;;;;;;OAQG;aACa,WAAW,CAAC,SAAS,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,MAAM,GAAG,OAAO;IAE/E;;;;;OAKG;aACa,MAAM,CACrB,OAAO,EAAE,CAAC,EAAE,EAAE,GAAG,CAAC,yBAAyB,EAAE,KAAK,IAAI,EACtD,UAAU,EAAE,GAAG,CAAC,yBAAyB,EAAE,GACzC,OAAO,CAAC,IAAI,CAAC;CAChB"}
@@ -11,6 +11,7 @@ const replayDocumentDeltaConnection_1 = require("./replayDocumentDeltaConnection
11
11
  * The Replay document service dummies out the snapshot and the delta storage.
12
12
  * Delta connection simulates the socket by fetching the ops from delta storage
13
13
  * and emitting them with a pre determined delay
14
+ * @internal
14
15
  */
15
16
  // eslint-disable-next-line import/namespace
16
17
  class ReplayDocumentService {
@@ -1 +1 @@
1
- {"version":3,"file":"replayDocumentService.cjs","sourceRoot":"","sources":["../src/replayDocumentService.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAIH,6EAAsE;AAEtE,uFAAgF;AAEhF;;;;GAIG;AACH,4CAA4C;AAC5C,MAAa,qBAAqB;IAC1B,MAAM,CAAC,KAAK,CAAC,MAAM,CACzB,eAAqC,EACrC,UAA4B;QAE5B,MAAM,aAAa,GAAG,MAAM,UAAU,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC;QACpE,IAAI,CAAC,aAAa,EAAE;YACnB,OAAO,eAAe,CAAC;SACvB;QAED,MAAM,eAAe,GAAG,6DAA6B,CAAC,MAAM,CAC3D,MAAM,eAAe,CAAC,qBAAqB,EAAE,EAC7C,UAAU,CACV,CAAC;QACF,OAAO,IAAI,qBAAqB,CAAC,UAAU,EAAE,eAAe,CAAC,CAAC;IAC/D,CAAC;IAED,YACkB,UAAuC,EACvC,YAA0C;QAD1C,eAAU,GAAV,UAAU,CAA6B;QACvC,iBAAY,GAAZ,YAAY,CAA8B;IACzD,CAAC;IAEG,OAAO,KAAI,CAAC;IAEnB,8EAA8E;IAC9E,IAAW,WAAW;QACrB,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACpC,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,gBAAgB;QAC5B,OAAO,IAAI,CAAC,UAAU,CAAC;IACxB,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,qBAAqB;QACjC,OAAO,IAAI,mDAAwB,EAAE,CAAC;IACvC,CAAC;IAED;;;;;OAKG;IACI,KAAK,CAAC,oBAAoB,CAAC,MAAe;QAChD,OAAO,IAAI,CAAC,YAAY,CAAC;IAC1B,CAAC;CACD;AAtDD,sDAsDC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport * as api from \"@fluidframework/driver-definitions\";\nimport { IClient } from \"@fluidframework/protocol-definitions\";\nimport { EmptyDeltaStorageService } from \"./emptyDeltaStorageService\";\nimport { ReplayController } from \"./replayController\";\nimport { ReplayDocumentDeltaConnection } from \"./replayDocumentDeltaConnection\";\n\n/**\n * The Replay document service dummies out the snapshot and the delta storage.\n * Delta connection simulates the socket by fetching the ops from delta storage\n * and emitting them with a pre determined delay\n */\n// eslint-disable-next-line import/namespace\nexport class ReplayDocumentService implements api.IDocumentService {\n\tpublic static async create(\n\t\tdocumentService: api.IDocumentService,\n\t\tcontroller: ReplayController,\n\t): Promise<api.IDocumentService> {\n\t\tconst useController = await controller.initStorage(documentService);\n\t\tif (!useController) {\n\t\t\treturn documentService;\n\t\t}\n\n\t\tconst deltaConnection = ReplayDocumentDeltaConnection.create(\n\t\t\tawait documentService.connectToDeltaStorage(),\n\t\t\tcontroller,\n\t\t);\n\t\treturn new ReplayDocumentService(controller, deltaConnection);\n\t}\n\n\tconstructor(\n\t\tprivate readonly controller: api.IDocumentStorageService,\n\t\tprivate readonly deltaStorage: api.IDocumentDeltaConnection,\n\t) {}\n\n\tpublic dispose() {}\n\n\t// TODO: Issue-2109 Implement detach container api or put appropriate comment.\n\tpublic get resolvedUrl(): api.IResolvedUrl {\n\t\tthrow new Error(\"Not implemented\");\n\t}\n\n\t/**\n\t * Connects to a storage endpoint for snapshot service and blobs.\n\t * @returns returns the dummy document storage service for replay driver.\n\t */\n\tpublic async connectToStorage(): Promise<api.IDocumentStorageService> {\n\t\treturn this.controller;\n\t}\n\n\t/**\n\t * Connects to a delta storage endpoint for getting ops between a range.\n\t * @returns returns the dummy document delta storage service for replay driver.\n\t */\n\tpublic async connectToDeltaStorage(): Promise<api.IDocumentDeltaStorageService> {\n\t\treturn new EmptyDeltaStorageService();\n\t}\n\n\t/**\n\t * Connects to a delta storage endpoint of provided documentService to get ops and then replaying\n\t * them so as to mimic a delta stream endpoint.\n\t * @param client - Client that connects to socket.\n\t * @returns returns the delta stream service which replay ops from --from to --to arguments.\n\t */\n\tpublic async connectToDeltaStream(client: IClient): Promise<api.IDocumentDeltaConnection> {\n\t\treturn this.deltaStorage;\n\t}\n}\n"]}
1
+ {"version":3,"file":"replayDocumentService.cjs","sourceRoot":"","sources":["../src/replayDocumentService.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAIH,6EAAsE;AAEtE,uFAAgF;AAEhF;;;;;GAKG;AACH,4CAA4C;AAC5C,MAAa,qBAAqB;IAC1B,MAAM,CAAC,KAAK,CAAC,MAAM,CACzB,eAAqC,EACrC,UAA4B;QAE5B,MAAM,aAAa,GAAG,MAAM,UAAU,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC;QACpE,IAAI,CAAC,aAAa,EAAE;YACnB,OAAO,eAAe,CAAC;SACvB;QAED,MAAM,eAAe,GAAG,6DAA6B,CAAC,MAAM,CAC3D,MAAM,eAAe,CAAC,qBAAqB,EAAE,EAC7C,UAAU,CACV,CAAC;QACF,OAAO,IAAI,qBAAqB,CAAC,UAAU,EAAE,eAAe,CAAC,CAAC;IAC/D,CAAC;IAED,YACkB,UAAuC,EACvC,YAA0C;QAD1C,eAAU,GAAV,UAAU,CAA6B;QACvC,iBAAY,GAAZ,YAAY,CAA8B;IACzD,CAAC;IAEG,OAAO,KAAI,CAAC;IAEnB,8EAA8E;IAC9E,IAAW,WAAW;QACrB,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACpC,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,gBAAgB;QAC5B,OAAO,IAAI,CAAC,UAAU,CAAC;IACxB,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,qBAAqB;QACjC,OAAO,IAAI,mDAAwB,EAAE,CAAC;IACvC,CAAC;IAED;;;;;OAKG;IACI,KAAK,CAAC,oBAAoB,CAAC,MAAe;QAChD,OAAO,IAAI,CAAC,YAAY,CAAC;IAC1B,CAAC;CACD;AAtDD,sDAsDC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport * as api from \"@fluidframework/driver-definitions\";\nimport { IClient } from \"@fluidframework/protocol-definitions\";\nimport { EmptyDeltaStorageService } from \"./emptyDeltaStorageService\";\nimport { ReplayController } from \"./replayController\";\nimport { ReplayDocumentDeltaConnection } from \"./replayDocumentDeltaConnection\";\n\n/**\n * The Replay document service dummies out the snapshot and the delta storage.\n * Delta connection simulates the socket by fetching the ops from delta storage\n * and emitting them with a pre determined delay\n * @internal\n */\n// eslint-disable-next-line import/namespace\nexport class ReplayDocumentService implements api.IDocumentService {\n\tpublic static async create(\n\t\tdocumentService: api.IDocumentService,\n\t\tcontroller: ReplayController,\n\t): Promise<api.IDocumentService> {\n\t\tconst useController = await controller.initStorage(documentService);\n\t\tif (!useController) {\n\t\t\treturn documentService;\n\t\t}\n\n\t\tconst deltaConnection = ReplayDocumentDeltaConnection.create(\n\t\t\tawait documentService.connectToDeltaStorage(),\n\t\t\tcontroller,\n\t\t);\n\t\treturn new ReplayDocumentService(controller, deltaConnection);\n\t}\n\n\tconstructor(\n\t\tprivate readonly controller: api.IDocumentStorageService,\n\t\tprivate readonly deltaStorage: api.IDocumentDeltaConnection,\n\t) {}\n\n\tpublic dispose() {}\n\n\t// TODO: Issue-2109 Implement detach container api or put appropriate comment.\n\tpublic get resolvedUrl(): api.IResolvedUrl {\n\t\tthrow new Error(\"Not implemented\");\n\t}\n\n\t/**\n\t * Connects to a storage endpoint for snapshot service and blobs.\n\t * @returns returns the dummy document storage service for replay driver.\n\t */\n\tpublic async connectToStorage(): Promise<api.IDocumentStorageService> {\n\t\treturn this.controller;\n\t}\n\n\t/**\n\t * Connects to a delta storage endpoint for getting ops between a range.\n\t * @returns returns the dummy document delta storage service for replay driver.\n\t */\n\tpublic async connectToDeltaStorage(): Promise<api.IDocumentDeltaStorageService> {\n\t\treturn new EmptyDeltaStorageService();\n\t}\n\n\t/**\n\t * Connects to a delta storage endpoint of provided documentService to get ops and then replaying\n\t * them so as to mimic a delta stream endpoint.\n\t * @param client - Client that connects to socket.\n\t * @returns returns the delta stream service which replay ops from --from to --to arguments.\n\t */\n\tpublic async connectToDeltaStream(client: IClient): Promise<api.IDocumentDeltaConnection> {\n\t\treturn this.deltaStorage;\n\t}\n}\n"]}
@@ -9,6 +9,7 @@ import { ReplayController } from "./replayController";
9
9
  * The Replay document service dummies out the snapshot and the delta storage.
10
10
  * Delta connection simulates the socket by fetching the ops from delta storage
11
11
  * and emitting them with a pre determined delay
12
+ * @internal
12
13
  */
13
14
  export declare class ReplayDocumentService implements api.IDocumentService {
14
15
  private readonly controller;
@@ -1 +1 @@
1
- {"version":3,"file":"replayDocumentService.d.ts","sourceRoot":"","sources":["../src/replayDocumentService.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,GAAG,MAAM,oCAAoC,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,sCAAsC,CAAC;AAE/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAGtD;;;;GAIG;AAEH,qBAAa,qBAAsB,YAAW,GAAG,CAAC,gBAAgB;IAkBhE,OAAO,CAAC,QAAQ,CAAC,UAAU;IAC3B,OAAO,CAAC,QAAQ,CAAC,YAAY;WAlBV,MAAM,CACzB,eAAe,EAAE,GAAG,CAAC,gBAAgB,EACrC,UAAU,EAAE,gBAAgB,GAC1B,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC;gBAcd,UAAU,EAAE,GAAG,CAAC,uBAAuB,EACvC,YAAY,EAAE,GAAG,CAAC,wBAAwB;IAGrD,OAAO;IAGd,IAAW,WAAW,IAAI,GAAG,CAAC,YAAY,CAEzC;IAED;;;OAGG;IACU,gBAAgB,IAAI,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC;IAIrE;;;OAGG;IACU,qBAAqB,IAAI,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC;IAI/E;;;;;OAKG;IACU,oBAAoB,CAAC,MAAM,EAAE,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC;CAGzF"}
1
+ {"version":3,"file":"replayDocumentService.d.ts","sourceRoot":"","sources":["../src/replayDocumentService.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,GAAG,MAAM,oCAAoC,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,sCAAsC,CAAC;AAE/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAGtD;;;;;GAKG;AAEH,qBAAa,qBAAsB,YAAW,GAAG,CAAC,gBAAgB;IAkBhE,OAAO,CAAC,QAAQ,CAAC,UAAU;IAC3B,OAAO,CAAC,QAAQ,CAAC,YAAY;WAlBV,MAAM,CACzB,eAAe,EAAE,GAAG,CAAC,gBAAgB,EACrC,UAAU,EAAE,gBAAgB,GAC1B,OAAO,CAAC,GAAG,CAAC,gBAAgB,CAAC;gBAcd,UAAU,EAAE,GAAG,CAAC,uBAAuB,EACvC,YAAY,EAAE,GAAG,CAAC,wBAAwB;IAGrD,OAAO;IAGd,IAAW,WAAW,IAAI,GAAG,CAAC,YAAY,CAEzC;IAED;;;OAGG;IACU,gBAAgB,IAAI,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC;IAIrE;;;OAGG;IACU,qBAAqB,IAAI,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC;IAI/E;;;;;OAKG;IACU,oBAAoB,CAAC,MAAM,EAAE,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC;CAGzF"}
@@ -8,6 +8,9 @@ exports.ReplayDocumentServiceFactory = void 0;
8
8
  const telemetry_utils_1 = require("@fluidframework/telemetry-utils");
9
9
  const replayDocumentDeltaConnection_1 = require("./replayDocumentDeltaConnection.cjs");
10
10
  const replayDocumentService_1 = require("./replayDocumentService.cjs");
11
+ /**
12
+ * @internal
13
+ */
11
14
  class ReplayDocumentServiceFactory {
12
15
  static create(from, to, documentServiceFactory) {
13
16
  return new ReplayDocumentServiceFactory(documentServiceFactory, new replayDocumentDeltaConnection_1.ReplayControllerStatic(from, to));
@@ -1 +1 @@
1
- {"version":3,"file":"replayDocumentServiceFactory.cjs","sourceRoot":"","sources":["../src/replayDocumentServiceFactory.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AASH,qEAAoE;AAEpE,uFAAyE;AACzE,uEAAgE;AAEhE,MAAa,4BAA4B;IACjC,MAAM,CAAC,MAAM,CACnB,IAAY,EACZ,EAAU,EACV,sBAA+C;QAE/C,OAAO,IAAI,4BAA4B,CACtC,sBAAsB,EACtB,IAAI,sDAAsB,CAAC,IAAI,EAAE,EAAE,CAAC,CACpC,CAAC;IACH,CAAC;IAED,YACkB,sBAA+C,EAC/C,UAA4B;QAD5B,2BAAsB,GAAtB,sBAAsB,CAAyB;QAC/C,eAAU,GAAV,UAAU,CAAkB;IAC3C,CAAC;IAEJ;;;;;OAKG;IACI,KAAK,CAAC,qBAAqB,CACjC,WAAyB,EACzB,MAA6B,EAC7B,kBAA4B;QAE5B,iEAAiE;QACjE,wGAAwG;QACxG,MAAM,YAAY,GAAG,IAAA,mCAAiB,EAAC;YACtC,MAAM;YACN,UAAU,EAAE,EAAE,GAAG,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE;SACvC,CAAC,CAAC;QAEH,OAAO,6CAAqB,CAAC,MAAM,CAClC,MAAM,IAAI,CAAC,sBAAsB,CAAC,qBAAqB,CACtD,WAAW,EACX,YAAY,EACZ,kBAAkB,CAClB,EACD,IAAI,CAAC,UAAU,CACf,CAAC;IACH,CAAC;IAED,8EAA8E;IACvE,KAAK,CAAC,eAAe,CAC3B,gBAA8B,EAC9B,WAAyB,EACzB,MAA6B,EAC7B,kBAA4B;QAE5B,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACpC,CAAC;CACD;AAtDD,oEAsDC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport {\n\tIDocumentService,\n\tIDocumentServiceFactory,\n\tIResolvedUrl,\n} from \"@fluidframework/driver-definitions\";\nimport { ISummaryTree } from \"@fluidframework/protocol-definitions\";\nimport { ITelemetryBaseLogger } from \"@fluidframework/core-interfaces\";\nimport { createChildLogger } from \"@fluidframework/telemetry-utils\";\nimport { ReplayController } from \"./replayController\";\nimport { ReplayControllerStatic } from \"./replayDocumentDeltaConnection\";\nimport { ReplayDocumentService } from \"./replayDocumentService\";\n\nexport class ReplayDocumentServiceFactory implements IDocumentServiceFactory {\n\tpublic static create(\n\t\tfrom: number,\n\t\tto: number,\n\t\tdocumentServiceFactory: IDocumentServiceFactory,\n\t) {\n\t\treturn new ReplayDocumentServiceFactory(\n\t\t\tdocumentServiceFactory,\n\t\t\tnew ReplayControllerStatic(from, to),\n\t\t);\n\t}\n\n\tpublic constructor(\n\t\tprivate readonly documentServiceFactory: IDocumentServiceFactory,\n\t\tprivate readonly controller: ReplayController,\n\t) {}\n\n\t/**\n\t * Creates a replay document service which uses the document service of provided\n\t * documentServiceFactory for connecting to delta stream endpoint.\n\t * @param resolvedUrl - URL to be used for connecting to endpoints.\n\t * @returns returns the requested document service\n\t */\n\tpublic async createDocumentService(\n\t\tresolvedUrl: IResolvedUrl,\n\t\tlogger?: ITelemetryBaseLogger,\n\t\tclientIsSummarizer?: boolean,\n\t): Promise<IDocumentService> {\n\t\t// Always include isReplay: true on events for the Replay Driver.\n\t\t// It's used in testing/debugging scenarios, so we want to be able to filter these events out sometimes.\n\t\tconst replayLogger = createChildLogger({\n\t\t\tlogger,\n\t\t\tproperties: { all: { isReplay: true } },\n\t\t});\n\n\t\treturn ReplayDocumentService.create(\n\t\t\tawait this.documentServiceFactory.createDocumentService(\n\t\t\t\tresolvedUrl,\n\t\t\t\treplayLogger,\n\t\t\t\tclientIsSummarizer,\n\t\t\t),\n\t\t\tthis.controller,\n\t\t);\n\t}\n\n\t// TODO: Issue-2109 Implement detach container api or put appropriate comment.\n\tpublic async createContainer(\n\t\tcreateNewSummary: ISummaryTree,\n\t\tresolvedUrl: IResolvedUrl,\n\t\tlogger?: ITelemetryBaseLogger,\n\t\tclientIsSummarizer?: boolean,\n\t): Promise<IDocumentService> {\n\t\tthrow new Error(\"Not implemented\");\n\t}\n}\n"]}
1
+ {"version":3,"file":"replayDocumentServiceFactory.cjs","sourceRoot":"","sources":["../src/replayDocumentServiceFactory.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AASH,qEAAoE;AAEpE,uFAAyE;AACzE,uEAAgE;AAEhE;;GAEG;AACH,MAAa,4BAA4B;IACjC,MAAM,CAAC,MAAM,CACnB,IAAY,EACZ,EAAU,EACV,sBAA+C;QAE/C,OAAO,IAAI,4BAA4B,CACtC,sBAAsB,EACtB,IAAI,sDAAsB,CAAC,IAAI,EAAE,EAAE,CAAC,CACpC,CAAC;IACH,CAAC;IAED,YACkB,sBAA+C,EAC/C,UAA4B;QAD5B,2BAAsB,GAAtB,sBAAsB,CAAyB;QAC/C,eAAU,GAAV,UAAU,CAAkB;IAC3C,CAAC;IAEJ;;;;;OAKG;IACI,KAAK,CAAC,qBAAqB,CACjC,WAAyB,EACzB,MAA6B,EAC7B,kBAA4B;QAE5B,iEAAiE;QACjE,wGAAwG;QACxG,MAAM,YAAY,GAAG,IAAA,mCAAiB,EAAC;YACtC,MAAM;YACN,UAAU,EAAE,EAAE,GAAG,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE;SACvC,CAAC,CAAC;QAEH,OAAO,6CAAqB,CAAC,MAAM,CAClC,MAAM,IAAI,CAAC,sBAAsB,CAAC,qBAAqB,CACtD,WAAW,EACX,YAAY,EACZ,kBAAkB,CAClB,EACD,IAAI,CAAC,UAAU,CACf,CAAC;IACH,CAAC;IAED,8EAA8E;IACvE,KAAK,CAAC,eAAe,CAC3B,gBAA8B,EAC9B,WAAyB,EACzB,MAA6B,EAC7B,kBAA4B;QAE5B,MAAM,IAAI,KAAK,CAAC,iBAAiB,CAAC,CAAC;IACpC,CAAC;CACD;AAtDD,oEAsDC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport {\n\tIDocumentService,\n\tIDocumentServiceFactory,\n\tIResolvedUrl,\n} from \"@fluidframework/driver-definitions\";\nimport { ISummaryTree } from \"@fluidframework/protocol-definitions\";\nimport { ITelemetryBaseLogger } from \"@fluidframework/core-interfaces\";\nimport { createChildLogger } from \"@fluidframework/telemetry-utils\";\nimport { ReplayController } from \"./replayController\";\nimport { ReplayControllerStatic } from \"./replayDocumentDeltaConnection\";\nimport { ReplayDocumentService } from \"./replayDocumentService\";\n\n/**\n * @internal\n */\nexport class ReplayDocumentServiceFactory implements IDocumentServiceFactory {\n\tpublic static create(\n\t\tfrom: number,\n\t\tto: number,\n\t\tdocumentServiceFactory: IDocumentServiceFactory,\n\t) {\n\t\treturn new ReplayDocumentServiceFactory(\n\t\t\tdocumentServiceFactory,\n\t\t\tnew ReplayControllerStatic(from, to),\n\t\t);\n\t}\n\n\tpublic constructor(\n\t\tprivate readonly documentServiceFactory: IDocumentServiceFactory,\n\t\tprivate readonly controller: ReplayController,\n\t) {}\n\n\t/**\n\t * Creates a replay document service which uses the document service of provided\n\t * documentServiceFactory for connecting to delta stream endpoint.\n\t * @param resolvedUrl - URL to be used for connecting to endpoints.\n\t * @returns returns the requested document service\n\t */\n\tpublic async createDocumentService(\n\t\tresolvedUrl: IResolvedUrl,\n\t\tlogger?: ITelemetryBaseLogger,\n\t\tclientIsSummarizer?: boolean,\n\t): Promise<IDocumentService> {\n\t\t// Always include isReplay: true on events for the Replay Driver.\n\t\t// It's used in testing/debugging scenarios, so we want to be able to filter these events out sometimes.\n\t\tconst replayLogger = createChildLogger({\n\t\t\tlogger,\n\t\t\tproperties: { all: { isReplay: true } },\n\t\t});\n\n\t\treturn ReplayDocumentService.create(\n\t\t\tawait this.documentServiceFactory.createDocumentService(\n\t\t\t\tresolvedUrl,\n\t\t\t\treplayLogger,\n\t\t\t\tclientIsSummarizer,\n\t\t\t),\n\t\t\tthis.controller,\n\t\t);\n\t}\n\n\t// TODO: Issue-2109 Implement detach container api or put appropriate comment.\n\tpublic async createContainer(\n\t\tcreateNewSummary: ISummaryTree,\n\t\tresolvedUrl: IResolvedUrl,\n\t\tlogger?: ITelemetryBaseLogger,\n\t\tclientIsSummarizer?: boolean,\n\t): Promise<IDocumentService> {\n\t\tthrow new Error(\"Not implemented\");\n\t}\n}\n"]}
@@ -6,6 +6,9 @@ import { IDocumentService, IDocumentServiceFactory, IResolvedUrl } from "@fluidf
6
6
  import { ISummaryTree } from "@fluidframework/protocol-definitions";
7
7
  import { ITelemetryBaseLogger } from "@fluidframework/core-interfaces";
8
8
  import { ReplayController } from "./replayController";
9
+ /**
10
+ * @internal
11
+ */
9
12
  export declare class ReplayDocumentServiceFactory implements IDocumentServiceFactory {
10
13
  private readonly documentServiceFactory;
11
14
  private readonly controller;
@@ -1 +1 @@
1
- {"version":3,"file":"replayDocumentServiceFactory.d.ts","sourceRoot":"","sources":["../src/replayDocumentServiceFactory.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACN,gBAAgB,EAChB,uBAAuB,EACvB,YAAY,EACZ,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AAEvE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAItD,qBAAa,4BAA6B,YAAW,uBAAuB;IAa1E,OAAO,CAAC,QAAQ,CAAC,sBAAsB;IACvC,OAAO,CAAC,QAAQ,CAAC,UAAU;WAbd,MAAM,CACnB,IAAI,EAAE,MAAM,EACZ,EAAE,EAAE,MAAM,EACV,sBAAsB,EAAE,uBAAuB;gBAS9B,sBAAsB,EAAE,uBAAuB,EAC/C,UAAU,EAAE,gBAAgB;IAG9C;;;;;OAKG;IACU,qBAAqB,CACjC,WAAW,EAAE,YAAY,EACzB,MAAM,CAAC,EAAE,oBAAoB,EAC7B,kBAAkB,CAAC,EAAE,OAAO,GAC1B,OAAO,CAAC,gBAAgB,CAAC;IAmBf,eAAe,CAC3B,gBAAgB,EAAE,YAAY,EAC9B,WAAW,EAAE,YAAY,EACzB,MAAM,CAAC,EAAE,oBAAoB,EAC7B,kBAAkB,CAAC,EAAE,OAAO,GAC1B,OAAO,CAAC,gBAAgB,CAAC;CAG5B"}
1
+ {"version":3,"file":"replayDocumentServiceFactory.d.ts","sourceRoot":"","sources":["../src/replayDocumentServiceFactory.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACN,gBAAgB,EAChB,uBAAuB,EACvB,YAAY,EACZ,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AAEvE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAItD;;GAEG;AACH,qBAAa,4BAA6B,YAAW,uBAAuB;IAa1E,OAAO,CAAC,QAAQ,CAAC,sBAAsB;IACvC,OAAO,CAAC,QAAQ,CAAC,UAAU;WAbd,MAAM,CACnB,IAAI,EAAE,MAAM,EACZ,EAAE,EAAE,MAAM,EACV,sBAAsB,EAAE,uBAAuB;gBAS9B,sBAAsB,EAAE,uBAAuB,EAC/C,UAAU,EAAE,gBAAgB;IAG9C;;;;;OAKG;IACU,qBAAqB,CACjC,WAAW,EAAE,YAAY,EACzB,MAAM,CAAC,EAAE,oBAAoB,EAC7B,kBAAkB,CAAC,EAAE,OAAO,GAC1B,OAAO,CAAC,gBAAgB,CAAC;IAmBf,eAAe,CAC3B,gBAAgB,EAAE,YAAY,EAC9B,WAAW,EAAE,YAAY,EACzB,MAAM,CAAC,EAAE,oBAAoB,EAC7B,kBAAkB,CAAC,EAAE,OAAO,GAC1B,OAAO,CAAC,gBAAgB,CAAC;CAG5B"}
@@ -9,6 +9,9 @@ const core_utils_1 = require("@fluidframework/core-utils");
9
9
  const driver_utils_1 = require("@fluidframework/driver-utils");
10
10
  const emptyDeltaStorageService_1 = require("./emptyDeltaStorageService.cjs");
11
11
  const replayController_1 = require("./replayController.cjs");
12
+ /**
13
+ * @internal
14
+ */
12
15
  class FileSnapshotReader extends replayController_1.ReadDocumentStorageServiceBase {
13
16
  constructor(json) {
14
17
  super();
@@ -59,6 +62,9 @@ class FileSnapshotReader extends replayController_1.ReadDocumentStorageServiceBa
59
62
  exports.FileSnapshotReader = FileSnapshotReader;
60
63
  // IVersion.treeId used to communicate between getVersions() & getSnapshotTree() calls to indicate IVersion is ours.
61
64
  FileSnapshotReader.FileStorageVersionTreeId = "FileStorageTreeId";
65
+ /**
66
+ * @internal
67
+ */
62
68
  class SnapshotStorage extends replayController_1.ReadDocumentStorageServiceBase {
63
69
  constructor(storage, docTree) {
64
70
  super();
@@ -86,6 +92,9 @@ class SnapshotStorage extends replayController_1.ReadDocumentStorageServiceBase
86
92
  }
87
93
  }
88
94
  exports.SnapshotStorage = SnapshotStorage;
95
+ /**
96
+ * @internal
97
+ */
89
98
  class OpStorage extends replayController_1.ReadDocumentStorageServiceBase {
90
99
  async getVersions(versionId, count) {
91
100
  return [];
@@ -116,6 +125,9 @@ class StaticStorageDocumentService {
116
125
  }
117
126
  }
118
127
  exports.StaticStorageDocumentService = StaticStorageDocumentService;
128
+ /**
129
+ * @internal
130
+ */
119
131
  class StaticStorageDocumentServiceFactory {
120
132
  constructor(storage) {
121
133
  this.storage = storage;