@fluidframework/file-driver 2.0.0-internal.7.3.0 → 2.0.0-internal.7.4.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 (33) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/api-extractor-lint.json +13 -0
  3. package/api-extractor.json +3 -3
  4. package/api-report/file-driver.api.md +10 -10
  5. package/dist/file-driver-alpha.d.ts +51 -0
  6. package/dist/file-driver-beta.d.ts +75 -0
  7. package/dist/file-driver-public.d.ts +75 -0
  8. package/dist/file-driver-untrimmed.d.ts +209 -0
  9. package/dist/fileDeltaStorageService.d.ts +1 -0
  10. package/dist/fileDeltaStorageService.d.ts.map +1 -1
  11. package/dist/fileDeltaStorageService.js +1 -0
  12. package/dist/fileDeltaStorageService.js.map +1 -1
  13. package/dist/fileDocumentDeltaConnection.d.ts +4 -0
  14. package/dist/fileDocumentDeltaConnection.d.ts.map +1 -1
  15. package/dist/fileDocumentDeltaConnection.js +4 -0
  16. package/dist/fileDocumentDeltaConnection.js.map +1 -1
  17. package/dist/fileDocumentServiceFactory.d.ts +1 -0
  18. package/dist/fileDocumentServiceFactory.d.ts.map +1 -1
  19. package/dist/fileDocumentServiceFactory.js +1 -0
  20. package/dist/fileDocumentServiceFactory.js.map +1 -1
  21. package/dist/fileDocumentStorageService.d.ts +16 -0
  22. package/dist/fileDocumentStorageService.d.ts.map +1 -1
  23. package/dist/fileDocumentStorageService.js +10 -0
  24. package/dist/fileDocumentStorageService.js.map +1 -1
  25. package/lib/file-driver-alpha.d.ts +51 -0
  26. package/lib/file-driver-beta.d.ts +75 -0
  27. package/lib/file-driver-public.d.ts +75 -0
  28. package/lib/file-driver-untrimmed.d.ts +209 -0
  29. package/package.json +27 -12
  30. package/src/fileDeltaStorageService.ts +1 -0
  31. package/src/fileDocumentDeltaConnection.ts +4 -0
  32. package/src/fileDocumentServiceFactory.ts +1 -0
  33. package/src/fileDocumentStorageService.ts +16 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # @fluidframework/file-driver
2
2
 
3
+ ## 2.0.0-internal.7.4.0
4
+
5
+ Dependency updates only.
6
+
3
7
  ## 2.0.0-internal.7.3.0
4
8
 
5
9
  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
  }
@@ -30,7 +30,7 @@ import { ITokenClaims } from '@fluidframework/protocol-definitions';
30
30
  import { ReadDocumentStorageServiceBase } from '@fluidframework/replay-driver';
31
31
  import { TypedEventEmitter } from '@fluid-internal/client-utils';
32
32
 
33
- // @public
33
+ // @internal
34
34
  export class FileDeltaStorageService implements IDocumentDeltaStorageService {
35
35
  constructor(path: string);
36
36
  // (undocumented)
@@ -40,7 +40,7 @@ export class FileDeltaStorageService implements IDocumentDeltaStorageService {
40
40
  get ops(): readonly Readonly<api.ISequencedDocumentMessage>[];
41
41
  }
42
42
 
43
- // @public
43
+ // @internal
44
44
  export class FileDocumentServiceFactory implements IDocumentServiceFactory {
45
45
  constructor(storage: IDocumentStorageService, deltaStorage: FileDeltaStorageService, deltaConnection: IDocumentDeltaConnection);
46
46
  // (undocumented)
@@ -48,7 +48,7 @@ export class FileDocumentServiceFactory implements IDocumentServiceFactory {
48
48
  createDocumentService(resolvedUrl: IResolvedUrl, logger?: ITelemetryBaseLogger, clientIsSummarizer?: boolean): Promise<IDocumentService>;
49
49
  }
50
50
 
51
- // @public (undocumented)
51
+ // @internal (undocumented)
52
52
  export const FileSnapshotWriterClassFactory: <TBase extends ReaderConstructor>(Base: TBase) => {
53
53
  new (...args: any[]): {
54
54
  blobsWriter: Map<string, ArrayBufferLike>;
@@ -70,10 +70,10 @@ export const FileSnapshotWriterClassFactory: <TBase extends ReaderConstructor>(B
70
70
  };
71
71
  } & TBase;
72
72
 
73
- // @public (undocumented)
73
+ // @internal (undocumented)
74
74
  export const FileStorageDocumentName = "FileStorageDocId";
75
75
 
76
- // @public
76
+ // @internal
77
77
  export class FluidFetchReader extends ReadDocumentStorageServiceBase implements IDocumentStorageService {
78
78
  constructor(path: string, versionName?: string | undefined);
79
79
  // (undocumented)
@@ -84,7 +84,7 @@ export class FluidFetchReader extends ReadDocumentStorageServiceBase implements
84
84
  readBlob(sha: string): Promise<ArrayBufferLike>;
85
85
  }
86
86
 
87
- // @public (undocumented)
87
+ // @internal (undocumented)
88
88
  export const FluidFetchReaderFileSnapshotWriter: {
89
89
  new (...args: any[]): {
90
90
  blobsWriter: Map<string, ArrayBufferLike>;
@@ -106,7 +106,7 @@ export const FluidFetchReaderFileSnapshotWriter: {
106
106
  };
107
107
  } & typeof FluidFetchReader;
108
108
 
109
- // @public (undocumented)
109
+ // @internal (undocumented)
110
110
  export interface ISnapshotWriterStorage extends IDocumentStorageService {
111
111
  // (undocumented)
112
112
  onSnapshotHandler(snapshot: IFileSnapshot): void;
@@ -114,10 +114,10 @@ export interface ISnapshotWriterStorage extends IDocumentStorageService {
114
114
  reset(): void;
115
115
  }
116
116
 
117
- // @public (undocumented)
117
+ // @internal (undocumented)
118
118
  export type ReaderConstructor = new (...args: any[]) => IDocumentStorageService;
119
119
 
120
- // @public
120
+ // @internal
121
121
  export class Replayer {
122
122
  constructor(deltaConnection: ReplayFileDeltaConnection, documentStorageService: FileDeltaStorageService);
123
123
  // (undocumented)
@@ -128,7 +128,7 @@ export class Replayer {
128
128
  replay(replayTo: number): number;
129
129
  }
130
130
 
131
- // @public (undocumented)
131
+ // @internal (undocumented)
132
132
  export class ReplayFileDeltaConnection extends TypedEventEmitter<IDocumentDeltaConnectionEvents> implements IDocumentDeltaConnection, IDisposable {
133
133
  constructor(details: IConnected, documentDeltaStorageService: FileDeltaStorageService);
134
134
  // (undocumented)
@@ -0,0 +1,51 @@
1
+ import * as api from '@fluidframework/protocol-definitions';
2
+ import { ConnectionMode } from '@fluidframework/protocol-definitions';
3
+ import { IClientConfiguration } from '@fluidframework/protocol-definitions';
4
+ import { IConnected } from '@fluidframework/protocol-definitions';
5
+ import { IDisposable } from '@fluidframework/core-interfaces';
6
+ import { IDocumentDeltaConnection } from '@fluidframework/driver-definitions';
7
+ import { IDocumentDeltaConnectionEvents } from '@fluidframework/driver-definitions';
8
+ import { IDocumentDeltaStorageService } from '@fluidframework/driver-definitions';
9
+ import { IDocumentMessage } from '@fluidframework/protocol-definitions';
10
+ import { IDocumentService } from '@fluidframework/driver-definitions';
11
+ import { IDocumentServiceFactory } from '@fluidframework/driver-definitions';
12
+ import { IDocumentStorageService } from '@fluidframework/driver-definitions';
13
+ import { IDocumentStorageServicePolicies } from '@fluidframework/driver-definitions';
14
+ import { IFileSnapshot } from '@fluidframework/replay-driver';
15
+ import { IResolvedUrl } from '@fluidframework/driver-definitions';
16
+ import { ISequencedDocumentMessage } from '@fluidframework/protocol-definitions';
17
+ import { ISignalClient } from '@fluidframework/protocol-definitions';
18
+ import { ISignalMessage } from '@fluidframework/protocol-definitions';
19
+ import { IStream } from '@fluidframework/driver-definitions';
20
+ import { ISummaryContext } from '@fluidframework/driver-definitions';
21
+ import { ISummaryTree } from '@fluidframework/protocol-definitions';
22
+ import { ITelemetryBaseLogger } from '@fluidframework/core-interfaces';
23
+ import { ITokenClaims } from '@fluidframework/protocol-definitions';
24
+ import { ReadDocumentStorageServiceBase } from '@fluidframework/replay-driver';
25
+ import { TypedEventEmitter } from '@fluid-internal/client-utils';
26
+
27
+ /* Excluded from this release type: FileDeltaStorageService */
28
+
29
+ /* Excluded from this release type: FileDocumentServiceFactory */
30
+
31
+ /* Excluded from this release type: FileSnapshotWriterClassFactory */
32
+
33
+ /* Excluded from this release type: FileStorageDocumentName */
34
+
35
+ /* Excluded from this release type: FluidFetchReader */
36
+
37
+ /* Excluded from this release type: FluidFetchReaderFileSnapshotWriter */
38
+
39
+ /* Excluded from this release type: IFileSnapshot */
40
+
41
+ /* Excluded from this release type: ISnapshotWriterStorage */
42
+
43
+ /* Excluded from this release type: ReadDocumentStorageServiceBase */
44
+
45
+ /* Excluded from this release type: ReaderConstructor */
46
+
47
+ /* Excluded from this release type: Replayer */
48
+
49
+ /* Excluded from this release type: ReplayFileDeltaConnection */
50
+
51
+ export { }
@@ -0,0 +1,75 @@
1
+ import * as api from '@fluidframework/protocol-definitions';
2
+ import { ConnectionMode } from '@fluidframework/protocol-definitions';
3
+ import { IClientConfiguration } from '@fluidframework/protocol-definitions';
4
+ import { IConnected } from '@fluidframework/protocol-definitions';
5
+ import { IDisposable } from '@fluidframework/core-interfaces';
6
+ import { IDocumentDeltaConnection } from '@fluidframework/driver-definitions';
7
+ import { IDocumentDeltaConnectionEvents } from '@fluidframework/driver-definitions';
8
+ import { IDocumentDeltaStorageService } from '@fluidframework/driver-definitions';
9
+ import { IDocumentMessage } from '@fluidframework/protocol-definitions';
10
+ import { IDocumentService } from '@fluidframework/driver-definitions';
11
+ import { IDocumentServiceFactory } from '@fluidframework/driver-definitions';
12
+ import { IDocumentStorageService } from '@fluidframework/driver-definitions';
13
+ import { IDocumentStorageServicePolicies } from '@fluidframework/driver-definitions';
14
+ import { IFileSnapshot } from '@fluidframework/replay-driver';
15
+ import { IResolvedUrl } from '@fluidframework/driver-definitions';
16
+ import { ISequencedDocumentMessage } from '@fluidframework/protocol-definitions';
17
+ import { ISignalClient } from '@fluidframework/protocol-definitions';
18
+ import { ISignalMessage } from '@fluidframework/protocol-definitions';
19
+ import { IStream } from '@fluidframework/driver-definitions';
20
+ import { ISummaryContext } from '@fluidframework/driver-definitions';
21
+ import { ISummaryTree } from '@fluidframework/protocol-definitions';
22
+ import { ITelemetryBaseLogger } from '@fluidframework/core-interfaces';
23
+ import { ITokenClaims } from '@fluidframework/protocol-definitions';
24
+ import { ReadDocumentStorageServiceBase } from '@fluidframework/replay-driver';
25
+ import { TypedEventEmitter } from '@fluid-internal/client-utils';
26
+
27
+ /* Excluded from this release type: FileDeltaStorageService */
28
+
29
+ /* Excluded from this release type: FileDocumentServiceFactory */
30
+
31
+ /* Excluded from this release type: FileSnapshotWriterClassFactory */
32
+
33
+ /* Excluded from this release type: FileStorageDocumentName */
34
+
35
+ /* Excluded from this release type: FluidFetchReader */
36
+
37
+ /* Excluded from this release type: FluidFetchReaderFileSnapshotWriter */
38
+
39
+ /* Excluded from this release type: IDisposable */
40
+
41
+ /* Excluded from this release type: IDocumentDeltaConnection */
42
+
43
+ /* Excluded from this release type: IDocumentDeltaConnectionEvents */
44
+
45
+ /* Excluded from this release type: IDocumentDeltaStorageService */
46
+
47
+ /* Excluded from this release type: IDocumentService */
48
+
49
+ /* Excluded from this release type: IDocumentServiceFactory */
50
+
51
+ /* Excluded from this release type: IDocumentStorageService */
52
+
53
+ /* Excluded from this release type: IFileSnapshot */
54
+
55
+ /* Excluded from this release type: IResolvedUrl */
56
+
57
+ /* Excluded from this release type: ISnapshotWriterStorage */
58
+
59
+ /* Excluded from this release type: IStream */
60
+
61
+ /* Excluded from this release type: ISummaryContext */
62
+
63
+ /* Excluded from this release type: ITelemetryBaseLogger */
64
+
65
+ /* Excluded from this release type: ReadDocumentStorageServiceBase */
66
+
67
+ /* Excluded from this release type: ReaderConstructor */
68
+
69
+ /* Excluded from this release type: Replayer */
70
+
71
+ /* Excluded from this release type: ReplayFileDeltaConnection */
72
+
73
+ /* Excluded from this release type: TypedEventEmitter */
74
+
75
+ export { }
@@ -0,0 +1,75 @@
1
+ import * as api from '@fluidframework/protocol-definitions';
2
+ import { ConnectionMode } from '@fluidframework/protocol-definitions';
3
+ import { IClientConfiguration } from '@fluidframework/protocol-definitions';
4
+ import { IConnected } from '@fluidframework/protocol-definitions';
5
+ import { IDisposable } from '@fluidframework/core-interfaces';
6
+ import { IDocumentDeltaConnection } from '@fluidframework/driver-definitions';
7
+ import { IDocumentDeltaConnectionEvents } from '@fluidframework/driver-definitions';
8
+ import { IDocumentDeltaStorageService } from '@fluidframework/driver-definitions';
9
+ import { IDocumentMessage } from '@fluidframework/protocol-definitions';
10
+ import { IDocumentService } from '@fluidframework/driver-definitions';
11
+ import { IDocumentServiceFactory } from '@fluidframework/driver-definitions';
12
+ import { IDocumentStorageService } from '@fluidframework/driver-definitions';
13
+ import { IDocumentStorageServicePolicies } from '@fluidframework/driver-definitions';
14
+ import { IFileSnapshot } from '@fluidframework/replay-driver';
15
+ import { IResolvedUrl } from '@fluidframework/driver-definitions';
16
+ import { ISequencedDocumentMessage } from '@fluidframework/protocol-definitions';
17
+ import { ISignalClient } from '@fluidframework/protocol-definitions';
18
+ import { ISignalMessage } from '@fluidframework/protocol-definitions';
19
+ import { IStream } from '@fluidframework/driver-definitions';
20
+ import { ISummaryContext } from '@fluidframework/driver-definitions';
21
+ import { ISummaryTree } from '@fluidframework/protocol-definitions';
22
+ import { ITelemetryBaseLogger } from '@fluidframework/core-interfaces';
23
+ import { ITokenClaims } from '@fluidframework/protocol-definitions';
24
+ import { ReadDocumentStorageServiceBase } from '@fluidframework/replay-driver';
25
+ import { TypedEventEmitter } from '@fluid-internal/client-utils';
26
+
27
+ /* Excluded from this release type: FileDeltaStorageService */
28
+
29
+ /* Excluded from this release type: FileDocumentServiceFactory */
30
+
31
+ /* Excluded from this release type: FileSnapshotWriterClassFactory */
32
+
33
+ /* Excluded from this release type: FileStorageDocumentName */
34
+
35
+ /* Excluded from this release type: FluidFetchReader */
36
+
37
+ /* Excluded from this release type: FluidFetchReaderFileSnapshotWriter */
38
+
39
+ /* Excluded from this release type: IDisposable */
40
+
41
+ /* Excluded from this release type: IDocumentDeltaConnection */
42
+
43
+ /* Excluded from this release type: IDocumentDeltaConnectionEvents */
44
+
45
+ /* Excluded from this release type: IDocumentDeltaStorageService */
46
+
47
+ /* Excluded from this release type: IDocumentService */
48
+
49
+ /* Excluded from this release type: IDocumentServiceFactory */
50
+
51
+ /* Excluded from this release type: IDocumentStorageService */
52
+
53
+ /* Excluded from this release type: IFileSnapshot */
54
+
55
+ /* Excluded from this release type: IResolvedUrl */
56
+
57
+ /* Excluded from this release type: ISnapshotWriterStorage */
58
+
59
+ /* Excluded from this release type: IStream */
60
+
61
+ /* Excluded from this release type: ISummaryContext */
62
+
63
+ /* Excluded from this release type: ITelemetryBaseLogger */
64
+
65
+ /* Excluded from this release type: ReadDocumentStorageServiceBase */
66
+
67
+ /* Excluded from this release type: ReaderConstructor */
68
+
69
+ /* Excluded from this release type: Replayer */
70
+
71
+ /* Excluded from this release type: ReplayFileDeltaConnection */
72
+
73
+ /* Excluded from this release type: TypedEventEmitter */
74
+
75
+ export { }
@@ -0,0 +1,209 @@
1
+ import * as api from '@fluidframework/protocol-definitions';
2
+ import { ConnectionMode } from '@fluidframework/protocol-definitions';
3
+ import { IClientConfiguration } from '@fluidframework/protocol-definitions';
4
+ import { IConnected } from '@fluidframework/protocol-definitions';
5
+ import { IDisposable } from '@fluidframework/core-interfaces';
6
+ import { IDocumentDeltaConnection } from '@fluidframework/driver-definitions';
7
+ import { IDocumentDeltaConnectionEvents } from '@fluidframework/driver-definitions';
8
+ import { IDocumentDeltaStorageService } from '@fluidframework/driver-definitions';
9
+ import { IDocumentMessage } from '@fluidframework/protocol-definitions';
10
+ import { IDocumentService } from '@fluidframework/driver-definitions';
11
+ import { IDocumentServiceFactory } from '@fluidframework/driver-definitions';
12
+ import { IDocumentStorageService } from '@fluidframework/driver-definitions';
13
+ import { IDocumentStorageServicePolicies } from '@fluidframework/driver-definitions';
14
+ import { IFileSnapshot } from '@fluidframework/replay-driver';
15
+ import { IResolvedUrl } from '@fluidframework/driver-definitions';
16
+ import { ISequencedDocumentMessage } from '@fluidframework/protocol-definitions';
17
+ import { ISignalClient } from '@fluidframework/protocol-definitions';
18
+ import { ISignalMessage } from '@fluidframework/protocol-definitions';
19
+ import { IStream } from '@fluidframework/driver-definitions';
20
+ import { ISummaryContext } from '@fluidframework/driver-definitions';
21
+ import { ISummaryTree } from '@fluidframework/protocol-definitions';
22
+ import { ITelemetryBaseLogger } from '@fluidframework/core-interfaces';
23
+ import { ITokenClaims } from '@fluidframework/protocol-definitions';
24
+ import { ReadDocumentStorageServiceBase } from '@fluidframework/replay-driver';
25
+ import { TypedEventEmitter } from '@fluid-internal/client-utils';
26
+
27
+ /**
28
+ * Provides access to the underlying delta storage on the local file storage for file driver.
29
+ * @internal
30
+ */
31
+ export declare class FileDeltaStorageService implements IDocumentDeltaStorageService {
32
+ private readonly path;
33
+ private readonly messages;
34
+ private lastOps;
35
+ constructor(path: string);
36
+ fetchMessages(from: number, to: number | undefined, abortSignal?: AbortSignal, cachedOnly?: boolean): IStream<api.ISequencedDocumentMessage[]>;
37
+ get ops(): readonly Readonly<api.ISequencedDocumentMessage>[];
38
+ /**
39
+ * Retrieve ops within the exclusive sequence number range.
40
+ *
41
+ * @param from - First op to be fetched.
42
+ * @param to - Last op to be fetched. This is exclusive.
43
+ */
44
+ getFromWebSocket(from: number, to: number): api.ISequencedDocumentMessage[];
45
+ }
46
+
47
+ /**
48
+ * Factory for creating the file document service. Use this if you want to
49
+ * use the local file storage as underlying storage.
50
+ * @internal
51
+ */
52
+ export declare class FileDocumentServiceFactory implements IDocumentServiceFactory {
53
+ private readonly storage;
54
+ private readonly deltaStorage;
55
+ private readonly deltaConnection;
56
+ constructor(storage: IDocumentStorageService, deltaStorage: FileDeltaStorageService, deltaConnection: IDocumentDeltaConnection);
57
+ /**
58
+ * Creates the file document service if the path exists.
59
+ *
60
+ * @param fileURL - Path of directory containing ops/snapshots.
61
+ * @returns file document service.
62
+ */
63
+ createDocumentService(resolvedUrl: IResolvedUrl, logger?: ITelemetryBaseLogger, clientIsSummarizer?: boolean): Promise<IDocumentService>;
64
+ createContainer(createNewSummary: ISummaryTree, resolvedUrl: IResolvedUrl, logger?: ITelemetryBaseLogger, clientIsSummarizer?: boolean): Promise<IDocumentService>;
65
+ }
66
+
67
+ /**
68
+ * @internal
69
+ */
70
+ export declare const FileSnapshotWriterClassFactory: <TBase extends ReaderConstructor>(Base: TBase) => {
71
+ new (...args: any[]): {
72
+ blobsWriter: Map<string, ArrayBufferLike>;
73
+ latestWriterTree?: api.ISnapshotTree | undefined;
74
+ docId?: string | undefined;
75
+ reset(): void;
76
+ onSnapshotHandler(snapshot: IFileSnapshot): void;
77
+ readBlob(sha: string): Promise<ArrayBufferLike>;
78
+ getVersions(versionId: string | null, count: number): Promise<api.IVersion[]>;
79
+ getSnapshotTree(version?: api.IVersion): Promise<api.ISnapshotTree | null>;
80
+ uploadSummaryWithContext(summary: api.ISummaryTree, context: ISummaryContext): Promise<string>;
81
+ buildTree(snapshotTree: api.ISnapshotTree): Promise<api.ITree>;
82
+ repositoryUrl: string;
83
+ readonly policies?: IDocumentStorageServicePolicies | undefined;
84
+ createBlob(file: ArrayBufferLike): Promise<api.ICreateBlobResponse>;
85
+ downloadSummary(handle: api.ISummaryHandle): Promise<api.ISummaryTree>;
86
+ readonly disposed?: boolean | undefined;
87
+ dispose?: ((error?: Error | undefined) => void) | undefined;
88
+ };
89
+ } & TBase;
90
+
91
+ /**
92
+ * @internal
93
+ */
94
+ export declare const FileStorageDocumentName = "FileStorageDocId";
95
+
96
+ /**
97
+ * Document storage service for the file driver.
98
+ * @internal
99
+ */
100
+ export declare class FluidFetchReader extends ReadDocumentStorageServiceBase implements IDocumentStorageService {
101
+ private readonly path;
102
+ private readonly versionName?;
103
+ protected docTree: api.ISnapshotTree | null;
104
+ constructor(path: string, versionName?: string | undefined);
105
+ /**
106
+ * Read the file and returns the snapshot tree.
107
+ * @param version - The version contains the path of the file which contains the snapshot tree.
108
+ */
109
+ getSnapshotTree(version?: api.IVersion): Promise<api.ISnapshotTree | null>;
110
+ /**
111
+ * Gets the path of the snapshot tree to be read.
112
+ * @param versionId - version ID.
113
+ * @param count - Number of versions to be returned.
114
+ */
115
+ getVersions(versionId: string | null, count: number): Promise<api.IVersion[]>;
116
+ readBlob(sha: string): Promise<ArrayBufferLike>;
117
+ }
118
+
119
+ /**
120
+ * @internal
121
+ */
122
+ export declare const FluidFetchReaderFileSnapshotWriter: {
123
+ new (...args: any[]): {
124
+ blobsWriter: Map<string, ArrayBufferLike>;
125
+ latestWriterTree?: api.ISnapshotTree | undefined;
126
+ docId?: string | undefined;
127
+ reset(): void;
128
+ onSnapshotHandler(snapshot: IFileSnapshot): void;
129
+ readBlob(sha: string): Promise<ArrayBufferLike>;
130
+ getVersions(versionId: string | null, count: number): Promise<api.IVersion[]>;
131
+ getSnapshotTree(version?: api.IVersion): Promise<api.ISnapshotTree | null>;
132
+ uploadSummaryWithContext(summary: api.ISummaryTree, context: ISummaryContext): Promise<string>;
133
+ buildTree(snapshotTree: api.ISnapshotTree): Promise<api.ITree>;
134
+ repositoryUrl: string;
135
+ readonly policies?: IDocumentStorageServicePolicies | undefined;
136
+ createBlob(file: ArrayBufferLike): Promise<api.ICreateBlobResponse>;
137
+ downloadSummary(handle: api.ISummaryHandle): Promise<api.ISummaryTree>;
138
+ readonly disposed?: boolean | undefined;
139
+ dispose?: ((error?: Error | undefined) => void) | undefined;
140
+ };
141
+ } & typeof FluidFetchReader;
142
+
143
+ /**
144
+ * @internal
145
+ */
146
+ export declare interface ISnapshotWriterStorage extends IDocumentStorageService {
147
+ onSnapshotHandler(snapshot: IFileSnapshot): void;
148
+ reset(): void;
149
+ }
150
+
151
+ /**
152
+ * @internal
153
+ */
154
+ export declare type ReaderConstructor = new (...args: any[]) => IDocumentStorageService;
155
+
156
+ /**
157
+ * Replay service used to play ops using the delta connection.
158
+ * @internal
159
+ */
160
+ export declare class Replayer {
161
+ private readonly deltaConnection;
162
+ private readonly documentStorageService;
163
+ private currentReplayOp;
164
+ constructor(deltaConnection: ReplayFileDeltaConnection, documentStorageService: FileDeltaStorageService);
165
+ get currentReplayedOp(): number;
166
+ set currentReplayedOp(op: number);
167
+ get ops(): readonly Readonly<ISequencedDocumentMessage>[];
168
+ /**
169
+ * Replay the ops upto a certain number.
170
+ * @param replayTo - The last op number to be replayed.
171
+ */
172
+ replay(replayTo: number): number;
173
+ private isDoneFetch;
174
+ private emit;
175
+ }
176
+
177
+ /**
178
+ * @internal
179
+ */
180
+ export declare class ReplayFileDeltaConnection extends TypedEventEmitter<IDocumentDeltaConnectionEvents> implements IDocumentDeltaConnection, IDisposable {
181
+ details: IConnected;
182
+ /**
183
+ * Mimic the delta connection to replay ops on it.
184
+ *
185
+ * @param documentDeltaStorageService - The delta storage service to get ops from.
186
+ * @returns Document delta connection.
187
+ */
188
+ static create(documentDeltaStorageService: FileDeltaStorageService): Promise<ReplayFileDeltaConnection>;
189
+ readonly maxMessageSize: number;
190
+ private readonly replayer;
191
+ constructor(details: IConnected, documentDeltaStorageService: FileDeltaStorageService);
192
+ getReplayer(): Replayer;
193
+ get clientId(): string;
194
+ get mode(): ConnectionMode;
195
+ get claims(): ITokenClaims;
196
+ get existing(): boolean;
197
+ get version(): string;
198
+ get initialMessages(): ISequencedDocumentMessage[];
199
+ get initialSignals(): ISignalMessage[];
200
+ get initialClients(): ISignalClient[];
201
+ get serviceConfiguration(): IClientConfiguration;
202
+ submit(documentMessages: IDocumentMessage[]): void;
203
+ submitSignal(message: any): Promise<void>;
204
+ private _disposed;
205
+ get disposed(): boolean;
206
+ dispose(): void;
207
+ }
208
+
209
+ export { }
@@ -6,6 +6,7 @@ import { IDocumentDeltaStorageService, IStream } from "@fluidframework/driver-de
6
6
  import * as api from "@fluidframework/protocol-definitions";
7
7
  /**
8
8
  * Provides access to the underlying delta storage on the local file storage for file driver.
9
+ * @internal
9
10
  */
10
11
  export declare class FileDeltaStorageService implements IDocumentDeltaStorageService {
11
12
  private readonly path;
@@ -1 +1 @@
1
- {"version":3,"file":"fileDeltaStorageService.d.ts","sourceRoot":"","sources":["../src/fileDeltaStorageService.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EAAE,4BAA4B,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAC;AAE3F,OAAO,KAAK,GAAG,MAAM,sCAAsC,CAAC;AAE5D;;GAEG;AACH,qBAAa,uBAAwB,YAAW,4BAA4B;IAI/D,OAAO,CAAC,QAAQ,CAAC,IAAI;IAHjC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAkC;IAC3D,OAAO,CAAC,OAAO,CAAuC;gBAEzB,IAAI,EAAE,MAAM;IAkBlC,aAAa,CACnB,IAAI,EAAE,MAAM,EACZ,EAAE,EAAE,MAAM,GAAG,SAAS,EACtB,WAAW,CAAC,EAAE,WAAW,EACzB,UAAU,CAAC,EAAE,OAAO,GAClB,OAAO,CAAC,GAAG,CAAC,yBAAyB,EAAE,CAAC;IAI3C,IAAW,GAAG,IAAI,SAAS,QAAQ,CAAC,GAAG,CAAC,yBAAyB,CAAC,EAAE,CAEnE;IAED;;;;;OAKG;IACI,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,GAAG,CAAC,yBAAyB,EAAE;CAmBlF"}
1
+ {"version":3,"file":"fileDeltaStorageService.d.ts","sourceRoot":"","sources":["../src/fileDeltaStorageService.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EAAE,4BAA4B,EAAE,OAAO,EAAE,MAAM,oCAAoC,CAAC;AAE3F,OAAO,KAAK,GAAG,MAAM,sCAAsC,CAAC;AAE5D;;;GAGG;AACH,qBAAa,uBAAwB,YAAW,4BAA4B;IAI/D,OAAO,CAAC,QAAQ,CAAC,IAAI;IAHjC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAkC;IAC3D,OAAO,CAAC,OAAO,CAAuC;gBAEzB,IAAI,EAAE,MAAM;IAkBlC,aAAa,CACnB,IAAI,EAAE,MAAM,EACZ,EAAE,EAAE,MAAM,GAAG,SAAS,EACtB,WAAW,CAAC,EAAE,WAAW,EACzB,UAAU,CAAC,EAAE,OAAO,GAClB,OAAO,CAAC,GAAG,CAAC,yBAAyB,EAAE,CAAC;IAI3C,IAAW,GAAG,IAAI,SAAS,QAAQ,CAAC,GAAG,CAAC,yBAAyB,CAAC,EAAE,CAEnE;IAED;;;;;OAKG;IACI,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,GAAG,CAAC,yBAAyB,EAAE;CAmBlF"}
@@ -13,6 +13,7 @@ const core_utils_1 = require("@fluidframework/core-utils");
13
13
  const driver_utils_1 = require("@fluidframework/driver-utils");
14
14
  /**
15
15
  * Provides access to the underlying delta storage on the local file storage for file driver.
16
+ * @internal
16
17
  */
17
18
  class FileDeltaStorageService {
18
19
  constructor(path) {
@@ -1 +1 @@
1
- {"version":3,"file":"fileDeltaStorageService.js","sourceRoot":"","sources":["../src/fileDeltaStorageService.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;AAEH,4CAAoB;AACpB,2DAAoD;AAEpD,+DAAkE;AAGlE;;GAEG;AACH,MAAa,uBAAuB;IAInC,YAA6B,IAAY;QAAZ,SAAI,GAAJ,IAAI,CAAQ;QAFjC,YAAO,GAAoC,EAAE,CAAC;QAGrD,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC;QACnB,IAAI,OAAO,GAAG,CAAC,CAAC;QAChB,iDAAiD;QACjD,OAAO,IAAI,EAAE;YACZ,MAAM,QAAQ,GAAG,GAAG,IAAI,CAAC,IAAI,aAAa,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,OAAO,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AAC,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;QACrD,IAAA,mBAAM,EACL,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,cAAc,KAAK,QAAQ,GAAG,CAAC,EAC/C,KAAK,CAAC,kEAAkE,CACxE,CAAC;QACF,OAAO,IAAI,CAAC,OAAO,CAAC;IACrB,CAAC;CACD;AA5DD,0DA4DC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport fs from \"fs\";\nimport { assert } from \"@fluidframework/core-utils\";\nimport { IDocumentDeltaStorageService, IStream } from \"@fluidframework/driver-definitions\";\nimport { emptyMessageStream } from \"@fluidframework/driver-utils\";\nimport * as api from \"@fluidframework/protocol-definitions\";\n\n/**\n * Provides access to the underlying delta storage on the local file storage for file driver.\n */\nexport class FileDeltaStorageService implements IDocumentDeltaStorageService {\n\tprivate readonly messages: api.ISequencedDocumentMessage[];\n\tprivate lastOps: api.ISequencedDocumentMessage[] = [];\n\n\tconstructor(private readonly path: string) {\n\t\tthis.messages = [];\n\t\tlet counter = 0;\n\t\t// eslint-disable-next-line no-constant-condition\n\t\twhile (true) {\n\t\t\tconst filename = `${this.path}//messages${counter === 0 ? \"\" : counter}.json`;\n\t\t\tif (!fs.existsSync(filename)) {\n\t\t\t\tif (counter === 0) {\n\t\t\t\t\tthrow new Error(`file ${filename} not found`);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tconst data = fs.readFileSync(filename);\n\t\t\tthis.messages = this.messages.concat(JSON.parse(data.toString(\"utf-8\")));\n\t\t\tcounter++;\n\t\t}\n\t}\n\n\tpublic fetchMessages(\n\t\tfrom: number,\n\t\tto: number | undefined,\n\t\tabortSignal?: AbortSignal,\n\t\tcachedOnly?: boolean,\n\t): IStream<api.ISequencedDocumentMessage[]> {\n\t\treturn emptyMessageStream;\n\t}\n\n\tpublic get ops(): readonly Readonly<api.ISequencedDocumentMessage>[] {\n\t\treturn this.messages;\n\t}\n\n\t/**\n\t * Retrieve ops within the exclusive sequence number range.\n\t *\n\t * @param from - First op to be fetched.\n\t * @param to - Last op to be fetched. This is exclusive.\n\t */\n\tpublic getFromWebSocket(from: number, to: number): api.ISequencedDocumentMessage[] {\n\t\tconst readFrom = Math.max(from, 0); // Inclusive\n\t\tconst readTo = Math.min(to, this.messages.length); // Exclusive\n\n\t\tif (readFrom >= this.messages.length || readTo <= 0 || readFrom >= readTo) {\n\t\t\treturn [];\n\t\t}\n\n\t\t// Optimizations for multiple readers (replay tool)\n\t\tif (this.lastOps.length > 0 && this.lastOps[0].sequenceNumber === readFrom + 1) {\n\t\t\treturn this.lastOps;\n\t\t}\n\t\tthis.lastOps = this.messages.slice(readFrom, readTo);\n\t\tassert(\n\t\t\tthis.lastOps[0].sequenceNumber === readFrom + 1,\n\t\t\t0x091 /* \"Retrieved ops' first sequence number has unexpected value!\" */,\n\t\t);\n\t\treturn this.lastOps;\n\t}\n}\n"]}
1
+ {"version":3,"file":"fileDeltaStorageService.js","sourceRoot":"","sources":["../src/fileDeltaStorageService.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;AAEH,4CAAoB;AACpB,2DAAoD;AAEpD,+DAAkE;AAGlE;;;GAGG;AACH,MAAa,uBAAuB;IAInC,YAA6B,IAAY;QAAZ,SAAI,GAAJ,IAAI,CAAQ;QAFjC,YAAO,GAAoC,EAAE,CAAC;QAGrD,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC;QACnB,IAAI,OAAO,GAAG,CAAC,CAAC;QAChB,iDAAiD;QACjD,OAAO,IAAI,EAAE;YACZ,MAAM,QAAQ,GAAG,GAAG,IAAI,CAAC,IAAI,aAAa,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,OAAO,CAAC;YAC9E,IAAI,CAAC,YAAE,CAAC,UAAU,CAAC,QAAQ,C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Q,EAAE,MAAM,CAAC,CAAC;QACrD,IAAA,mBAAM,EACL,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,cAAc,KAAK,QAAQ,GAAG,CAAC,EAC/C,KAAK,CAAC,kEAAkE,CACxE,CAAC;QACF,OAAO,IAAI,CAAC,OAAO,CAAC;IACrB,CAAC;CACD;AA5DD,0DA4DC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport fs from \"fs\";\nimport { assert } from \"@fluidframework/core-utils\";\nimport { IDocumentDeltaStorageService, IStream } from \"@fluidframework/driver-definitions\";\nimport { emptyMessageStream } from \"@fluidframework/driver-utils\";\nimport * as api from \"@fluidframework/protocol-definitions\";\n\n/**\n * Provides access to the underlying delta storage on the local file storage for file driver.\n * @internal\n */\nexport class FileDeltaStorageService implements IDocumentDeltaStorageService {\n\tprivate readonly messages: api.ISequencedDocumentMessage[];\n\tprivate lastOps: api.ISequencedDocumentMessage[] = [];\n\n\tconstructor(private readonly path: string) {\n\t\tthis.messages = [];\n\t\tlet counter = 0;\n\t\t// eslint-disable-next-line no-constant-condition\n\t\twhile (true) {\n\t\t\tconst filename = `${this.path}//messages${counter === 0 ? \"\" : counter}.json`;\n\t\t\tif (!fs.existsSync(filename)) {\n\t\t\t\tif (counter === 0) {\n\t\t\t\t\tthrow new Error(`file ${filename} not found`);\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tconst data = fs.readFileSync(filename);\n\t\t\tthis.messages = this.messages.concat(JSON.parse(data.toString(\"utf-8\")));\n\t\t\tcounter++;\n\t\t}\n\t}\n\n\tpublic fetchMessages(\n\t\tfrom: number,\n\t\tto: number | undefined,\n\t\tabortSignal?: AbortSignal,\n\t\tcachedOnly?: boolean,\n\t): IStream<api.ISequencedDocumentMessage[]> {\n\t\treturn emptyMessageStream;\n\t}\n\n\tpublic get ops(): readonly Readonly<api.ISequencedDocumentMessage>[] {\n\t\treturn this.messages;\n\t}\n\n\t/**\n\t * Retrieve ops within the exclusive sequence number range.\n\t *\n\t * @param from - First op to be fetched.\n\t * @param to - Last op to be fetched. This is exclusive.\n\t */\n\tpublic getFromWebSocket(from: number, to: number): api.ISequencedDocumentMessage[] {\n\t\tconst readFrom = Math.max(from, 0); // Inclusive\n\t\tconst readTo = Math.min(to, this.messages.length); // Exclusive\n\n\t\tif (readFrom >= this.messages.length || readTo <= 0 || readFrom >= readTo) {\n\t\t\treturn [];\n\t\t}\n\n\t\t// Optimizations for multiple readers (replay tool)\n\t\tif (this.lastOps.length > 0 && this.lastOps[0].sequenceNumber === readFrom + 1) {\n\t\t\treturn this.lastOps;\n\t\t}\n\t\tthis.lastOps = this.messages.slice(readFrom, readTo);\n\t\tassert(\n\t\t\tthis.lastOps[0].sequenceNumber === readFrom + 1,\n\t\t\t0x091 /* \"Retrieved ops' first sequence number has unexpected value!\" */,\n\t\t);\n\t\treturn this.lastOps;\n\t}\n}\n"]}
@@ -9,6 +9,7 @@ import { TypedEventEmitter } from "@fluid-internal/client-utils";
9
9
  import { FileDeltaStorageService } from "./fileDeltaStorageService";
10
10
  /**
11
11
  * Replay service used to play ops using the delta connection.
12
+ * @internal
12
13
  */
13
14
  export declare class Replayer {
14
15
  private readonly deltaConnection;
@@ -26,6 +27,9 @@ export declare class Replayer {
26
27
  private isDoneFetch;
27
28
  private emit;
28
29
  }
30
+ /**
31
+ * @internal
32
+ */
29
33
  export declare class ReplayFileDeltaConnection extends TypedEventEmitter<IDocumentDeltaConnectionEvents> implements IDocumentDeltaConnection, IDisposable {
30
34
  details: IConnected;
31
35
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"fileDocumentDeltaConnection.d.ts","sourceRoot":"","sources":["../src/fileDocumentDeltaConnection.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EACN,wBAAwB,EACxB,8BAA8B,EAC9B,MAAM,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AC,QAAQ,EAAE,MAAM;IAwB9B,OAAO,CAAC,WAAW;IAOnB,OAAO,CAAC,IAAI;CAOZ;AAED;;GAEG;AACH,qBAAa,yBACZ,SAAQ,iBAAiB,CAAC,8BAA8B,CACxD,YAAW,wBAAwB,EAAE,WAAW;IAwCxC,OAAO,EAAE,UAAU;IAtC3B;;;;;OAKG;WACiB,MAAM,CACzB,2BAA2B,EAAE,uBAAuB,GAClD,OAAO,CAAC,yBAAyB,CAAC;IA0BrC,SAAgB,cAAc,SAAwB;IACtD,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAW;gBAG5B,OAAO,EAAE,UAAU,EAC1B,2BAA2B,EAAE,uBAAuB;IAM9C,WAAW;IAIlB,IAAW,QAAQ,IAAI,MAAM,CAE5B;IAED,IAAW,IAAI,IAAI,cAAc,CAEhC;IAED,IAAW,MAAM,IAAI,YAAY,CAEhC;IAED,IAAW,QAAQ,IAAI,OAAO,CAE7B;IAED,IAAW,OAAO,IAAI,MAAM,CAE3B;IAED,IAAW,eAAe,IAAI,yBAAyB,EAAE,CAExD;IAED,IAAW,cAAc,IAAI,cAAc,EAAE,CAE5C;IAED,IAAW,cAAc,IAAI,aAAa,EAAE,CAE3C;IAED,IAAW,oBAAoB,IAAI,oBAAoB,CAEtD;IAEM,MAAM,CAAC,gBAAgB,EAAE,gBAAgB,EAAE,GAAG,IAAI;IAM5C,YAAY,CAAC,OAAO,EAAE,GAAG;IAEtC,OAAO,CAAC,SAAS,CAAS;IAC1B,IAAW,QAAQ,YAElB;IACM,OAAO;CAGd"}
@@ -25,6 +25,7 @@ const Claims = {
25
25
  };
26
26
  /**
27
27
  * Replay service used to play ops using the delta connection.
28
+ * @internal
28
29
  */
29
30
  class Replayer {
30
31
  constructor(deltaConnection, documentStorageService) {
@@ -79,6 +80,9 @@ class Replayer {
79
80
  }
80
81
  }
81
82
  exports.Replayer = Replayer;
83
+ /**
84
+ * @internal
85
+ */
82
86
  class ReplayFileDeltaConnection extends client_utils_1.TypedEventEmitter {
83
87
  /**
84
88
  * Mimic the delta connection to replay ops on it.