@fluidframework/file-driver 2.0.0-rc.1.0.4 → 2.0.0-rc.2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{.eslintrc.js → .eslintrc.cjs} +4 -1
- package/CHANGELOG.md +20 -0
- package/{api-extractor-esm.json → api-extractor-cjs.json} +5 -2
- package/api-extractor-lint.json +1 -1
- package/api-extractor.json +1 -1
- package/api-report/file-driver.api.md +4 -2
- package/dist/file-driver-alpha.d.ts +2 -0
- package/dist/file-driver-beta.d.ts +2 -0
- package/dist/file-driver-public.d.ts +2 -0
- package/dist/file-driver-untrimmed.d.ts +4 -2
- package/dist/fileDocumentDeltaConnection.d.ts +1 -1
- package/dist/fileDocumentDeltaConnection.d.ts.map +1 -1
- package/dist/fileDocumentDeltaConnection.js.map +1 -1
- package/dist/fileDocumentService.d.ts +3 -2
- package/dist/fileDocumentService.d.ts.map +1 -1
- package/dist/fileDocumentService.js +3 -1
- package/dist/fileDocumentService.js.map +1 -1
- package/dist/fileDocumentServiceFactory.d.ts +1 -1
- package/dist/fileDocumentServiceFactory.d.ts.map +1 -1
- package/dist/fileDocumentServiceFactory.js +2 -2
- package/dist/fileDocumentServiceFactory.js.map +1 -1
- package/dist/fileDocumentStorageService.d.ts +2 -2
- package/dist/index.d.ts +4 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -12
- package/dist/index.js.map +1 -1
- package/dist/package.json +3 -0
- package/dist/tsdoc-metadata.json +1 -1
- package/lib/file-driver-alpha.d.ts +53 -0
- package/lib/file-driver-beta.d.ts +71 -0
- package/lib/file-driver-public.d.ts +71 -0
- package/lib/file-driver-untrimmed.d.ts +211 -0
- package/lib/fileDeltaStorageService.d.ts +26 -0
- package/lib/fileDeltaStorageService.d.ts.map +1 -0
- package/lib/fileDeltaStorageService.js +59 -0
- package/lib/fileDeltaStorageService.js.map +1 -0
- package/lib/fileDocumentDeltaConnection.d.ts +61 -0
- package/lib/fileDocumentDeltaConnection.d.ts.map +1 -0
- package/lib/fileDocumentDeltaConnection.js +161 -0
- package/lib/fileDocumentDeltaConnection.js.map +1 -0
- package/lib/fileDocumentService.d.ts +31 -0
- package/lib/fileDocumentService.d.ts.map +1 -0
- package/lib/fileDocumentService.js +37 -0
- package/lib/fileDocumentService.js.map +1 -0
- package/lib/fileDocumentServiceFactory.d.ts +28 -0
- package/lib/fileDocumentServiceFactory.d.ts.map +1 -0
- package/lib/fileDocumentServiceFactory.js +31 -0
- package/lib/fileDocumentServiceFactory.js.map +1 -0
- package/lib/fileDocumentStorageService.d.ts +91 -0
- package/lib/fileDocumentStorageService.d.ts.map +1 -0
- package/lib/fileDocumentStorageService.js +197 -0
- package/lib/fileDocumentStorageService.js.map +1 -0
- package/lib/index.d.ts +9 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +9 -0
- package/lib/index.js.map +1 -0
- package/lib/test/types/validateFileDriverPrevious.generated.d.ts +2 -0
- package/lib/test/types/validateFileDriverPrevious.generated.d.ts.map +1 -0
- package/lib/test/types/validateFileDriverPrevious.generated.js +26 -0
- package/lib/test/types/validateFileDriverPrevious.generated.js.map +1 -0
- package/package.json +61 -19
- package/src/fileDocumentDeltaConnection.ts +1 -1
- package/src/fileDocumentService.ts +9 -3
- package/src/fileDocumentServiceFactory.ts +2 -2
- package/src/index.ts +4 -4
- package/tsconfig.cjs.json +7 -0
- package/tsconfig.json +2 -5
|
@@ -4,7 +4,10 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
module.exports = {
|
|
7
|
-
extends: [
|
|
7
|
+
extends: [
|
|
8
|
+
require.resolve("@fluidframework/eslint-config-fluid/minimal-deprecated"),
|
|
9
|
+
"prettier",
|
|
10
|
+
],
|
|
8
11
|
rules: {
|
|
9
12
|
"@typescript-eslint/strict-boolean-expressions": "off",
|
|
10
13
|
"import/no-nodejs-modules": ["error", { allow: ["fs"] }],
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
# @fluidframework/file-driver
|
|
2
2
|
|
|
3
|
+
## 2.0.0-rc.2.0.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- driver-definitions: Deprecate `ISnapshotContents` ([#19314](https://github.com/microsoft/FluidFramework/issues/19314)) [fc731b69de](https://github.com/microsoft/FluidFramework/commits/fc731b69deed4a2987e9b97d8918492d689bafbc)
|
|
8
|
+
|
|
9
|
+
`ISnapshotContents` is deprecated. It has been replaced with `ISnapshot`.
|
|
10
|
+
|
|
11
|
+
- driver-definitions: repositoryUrl removed from IDocumentStorageService ([#19522](https://github.com/microsoft/FluidFramework/issues/19522)) [90eb3c9d33](https://github.com/microsoft/FluidFramework/commits/90eb3c9d33d80e24caa1393a50f414c5602f6aa3)
|
|
12
|
+
|
|
13
|
+
The `repositoryUrl` member of `IDocumentStorageService` was unused and always equal to the empty string. It has been removed.
|
|
14
|
+
|
|
15
|
+
- container-definitions: Added containerMetadata prop on IContainer interface ([#19142](https://github.com/microsoft/FluidFramework/issues/19142)) [d0d77f3516](https://github.com/microsoft/FluidFramework/commits/d0d77f3516d67f3c9faedb47b20dbd4e309c3bc2)
|
|
16
|
+
|
|
17
|
+
Added `containerMetadata` prop on IContainer interface.
|
|
18
|
+
|
|
19
|
+
- runtime-definitions: Moved ISignalEnvelope interface to core-interfaces ([#19142](https://github.com/microsoft/FluidFramework/issues/19142)) [d0d77f3516](https://github.com/microsoft/FluidFramework/commits/d0d77f3516d67f3c9faedb47b20dbd4e309c3bc2)
|
|
20
|
+
|
|
21
|
+
The `ISignalEnvelope` interface has been moved to the @fluidframework/core-interfaces package.
|
|
22
|
+
|
|
3
23
|
## 2.0.0-rc.1.0.0
|
|
4
24
|
|
|
5
25
|
### Minor Changes
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
|
|
3
|
-
"extends": "../../../common/build/build-common/api-extractor-base
|
|
4
|
-
|
|
3
|
+
"extends": "../../../common/build/build-common/api-extractor-base.cjs.primary.json",
|
|
4
|
+
// CJS is actually secondary; so, no report.
|
|
5
|
+
"apiReport": {
|
|
6
|
+
"enabled": false
|
|
7
|
+
}
|
|
5
8
|
}
|
package/api-extractor-lint.json
CHANGED
package/api-extractor.json
CHANGED
|
@@ -22,6 +22,8 @@ import { IResolvedUrl } from '@fluidframework/driver-definitions';
|
|
|
22
22
|
import { ISequencedDocumentMessage } from '@fluidframework/protocol-definitions';
|
|
23
23
|
import { ISignalClient } from '@fluidframework/protocol-definitions';
|
|
24
24
|
import { ISignalMessage } from '@fluidframework/protocol-definitions';
|
|
25
|
+
import { ISnapshot } from '@fluidframework/driver-definitions';
|
|
26
|
+
import { ISnapshotFetchOptions } from '@fluidframework/driver-definitions';
|
|
25
27
|
import { IStream } from '@fluidframework/driver-definitions';
|
|
26
28
|
import { ISummaryContext } from '@fluidframework/driver-definitions';
|
|
27
29
|
import { ISummaryTree } from '@fluidframework/protocol-definitions';
|
|
@@ -61,8 +63,8 @@ export const FileSnapshotWriterClassFactory: <TBase extends ReaderConstructor>(B
|
|
|
61
63
|
getSnapshotTree(version?: api.IVersion): Promise<api.ISnapshotTree | null>;
|
|
62
64
|
uploadSummaryWithContext(summary: api.ISummaryTree, context: ISummaryContext): Promise<string>;
|
|
63
65
|
buildTree(snapshotTree: api.ISnapshotTree): Promise<api.ITree>;
|
|
64
|
-
repositoryUrl: string;
|
|
65
66
|
readonly policies?: IDocumentStorageServicePolicies | undefined;
|
|
67
|
+
getSnapshot?(snapshotFetchOptions?: ISnapshotFetchOptions | undefined): Promise<ISnapshot>;
|
|
66
68
|
createBlob(file: ArrayBufferLike): Promise<api.ICreateBlobResponse>;
|
|
67
69
|
downloadSummary(handle: api.ISummaryHandle): Promise<api.ISummaryTree>;
|
|
68
70
|
readonly disposed?: boolean | undefined;
|
|
@@ -97,8 +99,8 @@ export const FluidFetchReaderFileSnapshotWriter: {
|
|
|
97
99
|
getSnapshotTree(version?: api.IVersion): Promise<api.ISnapshotTree | null>;
|
|
98
100
|
uploadSummaryWithContext(summary: api.ISummaryTree, context: ISummaryContext): Promise<string>;
|
|
99
101
|
buildTree(snapshotTree: api.ISnapshotTree): Promise<api.ITree>;
|
|
100
|
-
repositoryUrl: string;
|
|
101
102
|
readonly policies?: IDocumentStorageServicePolicies | undefined;
|
|
103
|
+
getSnapshot?(snapshotFetchOptions?: ISnapshotFetchOptions | undefined): Promise<ISnapshot>;
|
|
102
104
|
createBlob(file: ArrayBufferLike): Promise<api.ICreateBlobResponse>;
|
|
103
105
|
downloadSummary(handle: api.ISummaryHandle): Promise<api.ISummaryTree>;
|
|
104
106
|
readonly disposed?: boolean | undefined;
|
|
@@ -16,6 +16,8 @@ import { IResolvedUrl } from '@fluidframework/driver-definitions';
|
|
|
16
16
|
import { ISequencedDocumentMessage } from '@fluidframework/protocol-definitions';
|
|
17
17
|
import { ISignalClient } from '@fluidframework/protocol-definitions';
|
|
18
18
|
import { ISignalMessage } from '@fluidframework/protocol-definitions';
|
|
19
|
+
import { ISnapshot } from '@fluidframework/driver-definitions';
|
|
20
|
+
import { ISnapshotFetchOptions } from '@fluidframework/driver-definitions';
|
|
19
21
|
import { IStream } from '@fluidframework/driver-definitions';
|
|
20
22
|
import { ISummaryContext } from '@fluidframework/driver-definitions';
|
|
21
23
|
import { ISummaryTree } from '@fluidframework/protocol-definitions';
|
|
@@ -16,6 +16,8 @@ import { IResolvedUrl } from '@fluidframework/driver-definitions';
|
|
|
16
16
|
import { ISequencedDocumentMessage } from '@fluidframework/protocol-definitions';
|
|
17
17
|
import { ISignalClient } from '@fluidframework/protocol-definitions';
|
|
18
18
|
import { ISignalMessage } from '@fluidframework/protocol-definitions';
|
|
19
|
+
import { ISnapshot } from '@fluidframework/driver-definitions';
|
|
20
|
+
import { ISnapshotFetchOptions } from '@fluidframework/driver-definitions';
|
|
19
21
|
import { IStream } from '@fluidframework/driver-definitions';
|
|
20
22
|
import { ISummaryContext } from '@fluidframework/driver-definitions';
|
|
21
23
|
import { ISummaryTree } from '@fluidframework/protocol-definitions';
|
|
@@ -16,6 +16,8 @@ import { IResolvedUrl } from '@fluidframework/driver-definitions';
|
|
|
16
16
|
import { ISequencedDocumentMessage } from '@fluidframework/protocol-definitions';
|
|
17
17
|
import { ISignalClient } from '@fluidframework/protocol-definitions';
|
|
18
18
|
import { ISignalMessage } from '@fluidframework/protocol-definitions';
|
|
19
|
+
import { ISnapshot } from '@fluidframework/driver-definitions';
|
|
20
|
+
import { ISnapshotFetchOptions } from '@fluidframework/driver-definitions';
|
|
19
21
|
import { IStream } from '@fluidframework/driver-definitions';
|
|
20
22
|
import { ISummaryContext } from '@fluidframework/driver-definitions';
|
|
21
23
|
import { ISummaryTree } from '@fluidframework/protocol-definitions';
|
|
@@ -16,6 +16,8 @@ import { IResolvedUrl } from '@fluidframework/driver-definitions';
|
|
|
16
16
|
import { ISequencedDocumentMessage } from '@fluidframework/protocol-definitions';
|
|
17
17
|
import { ISignalClient } from '@fluidframework/protocol-definitions';
|
|
18
18
|
import { ISignalMessage } from '@fluidframework/protocol-definitions';
|
|
19
|
+
import { ISnapshot } from '@fluidframework/driver-definitions';
|
|
20
|
+
import { ISnapshotFetchOptions } from '@fluidframework/driver-definitions';
|
|
19
21
|
import { IStream } from '@fluidframework/driver-definitions';
|
|
20
22
|
import { ISummaryContext } from '@fluidframework/driver-definitions';
|
|
21
23
|
import { ISummaryTree } from '@fluidframework/protocol-definitions';
|
|
@@ -79,8 +81,8 @@ export declare const FileSnapshotWriterClassFactory: <TBase extends ReaderConstr
|
|
|
79
81
|
getSnapshotTree(version?: api.IVersion): Promise<api.ISnapshotTree | null>;
|
|
80
82
|
uploadSummaryWithContext(summary: api.ISummaryTree, context: ISummaryContext): Promise<string>;
|
|
81
83
|
buildTree(snapshotTree: api.ISnapshotTree): Promise<api.ITree>;
|
|
82
|
-
repositoryUrl: string;
|
|
83
84
|
readonly policies?: IDocumentStorageServicePolicies | undefined;
|
|
85
|
+
getSnapshot?(snapshotFetchOptions?: ISnapshotFetchOptions | undefined): Promise<ISnapshot>;
|
|
84
86
|
createBlob(file: ArrayBufferLike): Promise<api.ICreateBlobResponse>;
|
|
85
87
|
downloadSummary(handle: api.ISummaryHandle): Promise<api.ISummaryTree>;
|
|
86
88
|
readonly disposed?: boolean | undefined;
|
|
@@ -131,8 +133,8 @@ export declare const FluidFetchReaderFileSnapshotWriter: {
|
|
|
131
133
|
getSnapshotTree(version?: api.IVersion): Promise<api.ISnapshotTree | null>;
|
|
132
134
|
uploadSummaryWithContext(summary: api.ISummaryTree, context: ISummaryContext): Promise<string>;
|
|
133
135
|
buildTree(snapshotTree: api.ISnapshotTree): Promise<api.ITree>;
|
|
134
|
-
repositoryUrl: string;
|
|
135
136
|
readonly policies?: IDocumentStorageServicePolicies | undefined;
|
|
137
|
+
getSnapshot?(snapshotFetchOptions?: ISnapshotFetchOptions | undefined): Promise<ISnapshot>;
|
|
136
138
|
createBlob(file: ArrayBufferLike): Promise<api.ICreateBlobResponse>;
|
|
137
139
|
downloadSummary(handle: api.ISummaryHandle): Promise<api.ISummaryTree>;
|
|
138
140
|
readonly disposed?: boolean | undefined;
|
|
@@ -6,7 +6,7 @@ import { IDisposable } from "@fluidframework/core-interfaces";
|
|
|
6
6
|
import { IDocumentDeltaConnection, IDocumentDeltaConnectionEvents } from "@fluidframework/driver-definitions";
|
|
7
7
|
import { ConnectionMode, IClientConfiguration, IConnected, IDocumentMessage, ISequencedDocumentMessage, ISignalClient, ISignalMessage, ITokenClaims } from "@fluidframework/protocol-definitions";
|
|
8
8
|
import { TypedEventEmitter } from "@fluid-internal/client-utils";
|
|
9
|
-
import { FileDeltaStorageService } from "./fileDeltaStorageService";
|
|
9
|
+
import { FileDeltaStorageService } from "./fileDeltaStorageService.js";
|
|
10
10
|
/**
|
|
11
11
|
* Replay service used to play ops using the delta connection.
|
|
12
12
|
* @internal
|
|
@@ -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,oCAAoC,CAAC;AAC5C,OAAO,EACN,cAAc,EACd,oBAAoB,EACpB,UAAU,EACV,gBAAgB,EAChB,yBAAyB,EACzB,aAAa,EACb,cAAc,EACd,YAAY,EAEZ,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,uBAAuB,EAAE,MAAM,
|
|
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,oCAAoC,CAAC;AAC5C,OAAO,EACN,cAAc,EACd,oBAAoB,EACpB,UAAU,EACV,gBAAgB,EAChB,yBAAyB,EACzB,aAAa,EACb,cAAc,EACd,YAAY,EAEZ,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAuBvE;;;GAGG;AACH,qBAAa,QAAQ;IAInB,OAAO,CAAC,QAAQ,CAAC,eAAe;IAChC,OAAO,CAAC,QAAQ,CAAC,sBAAsB;IAJxC,OAAO,CAAC,eAAe,CAAK;gBAGV,eAAe,EAAE,yBAAyB,EAC1C,sBAAsB,EAAE,uBAAuB;IAGjE,IAAW,iBAAiB,IAIK,MAAM,CAFtC;IAED,IAAW,iBAAiB,CAAC,EAAE,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AC,cAAc,CAAC;IACpC,CAAC;IAED,IAAW,oBAAoB;QAC9B,OAAO,IAAI,CAAC,OAAO,CAAC,oBAAoB,CAAC;IAC1C,CAAC;IAEM,MAAM,CAAC,gBAAoC;QACjD,0FAA0F;QAC1F,0CAA0C;QAC1C,MAAM,IAAI,KAAK,CAAC,oDAAoD,CAAC,CAAC;IACvE,CAAC;IAEM,KAAK,CAAC,YAAY,CAAC,OAAY,IAAG,CAAC;IAG1C,IAAW,QAAQ;QAClB,OAAO,IAAI,CAAC,SAAS,CAAC;IACvB,CAAC;IACM,OAAO;QACb,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;IACvB,CAAC;CACD;AAxGD,8DAwGC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { IDisposable } from \"@fluidframework/core-interfaces\";\nimport {\n\tIDocumentDeltaConnection,\n\tIDocumentDeltaConnectionEvents,\n} from \"@fluidframework/driver-definitions\";\nimport {\n\tConnectionMode,\n\tIClientConfiguration,\n\tIConnected,\n\tIDocumentMessage,\n\tISequencedDocumentMessage,\n\tISignalClient,\n\tISignalMessage,\n\tITokenClaims,\n\tScopeType,\n} from \"@fluidframework/protocol-definitions\";\nimport { TypedEventEmitter } from \"@fluid-internal/client-utils\";\nimport { FileDeltaStorageService } from \"./fileDeltaStorageService\";\n\nconst MaxBatchDeltas = 2000;\n\n// Since the replay service never actually sends messages the size below is arbitrary\nconst ReplayMaxMessageSize = 16 * 1024;\n\nconst fileProtocolVersion = \"^0.1.0\";\n\nconst replayDocumentId = \"replayDocId\";\n\nconst Claims: ITokenClaims = {\n\tdocumentId: replayDocumentId,\n\tscopes: [ScopeType.DocRead],\n\ttenantId: \"\",\n\tuser: {\n\t\tid: \"\",\n\t},\n\tiat: Math.round(new Date().getTime() / 1000),\n\texp: Math.round(new Date().getTime() / 1000) + 60 * 60, // 1 hour expiration\n\tver: \"1.0\",\n};\n\n/**\n * Replay service used to play ops using the delta connection.\n * @internal\n */\nexport class Replayer {\n\tprivate currentReplayOp = 0;\n\n\tconstructor(\n\t\tprivate readonly deltaConnection: ReplayFileDeltaConnection,\n\t\tprivate readonly documentStorageService: FileDeltaStorageService,\n\t) {}\n\n\tpublic get currentReplayedOp() {\n\t\treturn this.currentReplayOp;\n\t}\n\n\tpublic set currentReplayedOp(op: number) {\n\t\tthis.currentReplayOp = op;\n\t}\n\n\tpublic get ops(): readonly Readonly<ISequencedDocumentMessage>[] {\n\t\treturn this.documentStorageService.ops;\n\t}\n\n\t/**\n\t * Replay the ops upto a certain number.\n\t * @param replayTo - The last op number to be replayed.\n\t */\n\tpublic replay(replayTo: number) {\n\t\tlet totalReplayedOps = 0;\n\t\tlet done: boolean;\n\t\tdo {\n\t\t\tconst fetchToBatch = this.currentReplayOp + MaxBatchDeltas;\n\t\t\tconst fetchTo = Math.min(fetchToBatch, replayTo);\n\n\t\t\tconst fetchedOps = this.documentStorageService.getFromWebSocket(\n\t\t\t\tthis.currentReplayOp,\n\t\t\t\tfetchTo,\n\t\t\t);\n\n\t\t\tif (fetchedOps.length <= 0) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tthis.emit(fetchedOps);\n\t\t\t\ttotalReplayedOps += fetchedOps.length;\n\t\t\t\tthis.currentReplayOp += fetchedOps.length;\n\t\t\t\tdone = this.isDoneFetch(replayTo);\n\t\t\t}\n\t\t} while (!done);\n\t\treturn totalReplayedOps;\n\t}\n\n\tprivate isDoneFetch(replayTo: number) {\n\t\tif (replayTo >= 0) {\n\t\t\treturn this.currentReplayOp >= replayTo;\n\t\t}\n\t\treturn false;\n\t}\n\n\tprivate emit(ops: ISequencedDocumentMessage[]) {\n\t\t// Note: do not clone messages here!\n\t\t// If Replay Tool fails due to one container patching message in-place,\n\t\t// then same thing can happen in shipping product due to\n\t\t// socket reuse in ODSP between main and summarizer containers.\n\t\tthis.deltaConnection.emit(\"op\", replayDocumentId, ops);\n\t}\n}\n\n/**\n * @internal\n */\nexport class ReplayFileDeltaConnection\n\textends TypedEventEmitter<IDocumentDeltaConnectionEvents>\n\timplements IDocumentDeltaConnection, IDisposable\n{\n\t/**\n\t * Mimic the delta connection to replay ops on it.\n\t *\n\t * @param documentDeltaStorageService - The delta storage service to get ops from.\n\t * @returns Document delta connection.\n\t */\n\tpublic static async create(\n\t\tdocumentDeltaStorageService: FileDeltaStorageService,\n\t): Promise<ReplayFileDeltaConnection> {\n\t\tconst mode: ConnectionMode = \"read\";\n\t\tconst connection = {\n\t\t\tclaims: Claims,\n\t\t\tclientId: \"PseudoClientId\",\n\t\t\texisting: true,\n\t\t\tinitialMessages: [],\n\t\t\tinitialSignals: [],\n\t\t\tinitialClients: [],\n\t\t\tmaxMessageSize: ReplayMaxMessageSize,\n\t\t\tmode,\n\t\t\tserviceConfiguration: {\n\t\t\t\tblockSize: 64436,\n\t\t\t\tmaxMessageSize: ReplayMaxMessageSize,\n\t\t\t},\n\t\t\tsupportedVersions: [fileProtocolVersion],\n\t\t\tuser: null,\n\t\t\tversion: fileProtocolVersion,\n\t\t};\n\t\tconst deltaConnection = new ReplayFileDeltaConnection(\n\t\t\tconnection,\n\t\t\tdocumentDeltaStorageService,\n\t\t);\n\t\treturn deltaConnection;\n\t}\n\n\tpublic readonly maxMessageSize = ReplayMaxMessageSize;\n\tprivate readonly replayer: Replayer;\n\n\tpublic constructor(\n\t\tpublic details: IConnected,\n\t\tdocumentDeltaStorageService: FileDeltaStorageService,\n\t) {\n\t\tsuper();\n\t\tthis.replayer = new Replayer(this, documentDeltaStorageService);\n\t}\n\n\tpublic getReplayer() {\n\t\treturn this.replayer;\n\t}\n\n\tpublic get clientId(): string {\n\t\treturn this.details.clientId;\n\t}\n\n\tpublic get mode(): ConnectionMode {\n\t\treturn this.details.mode;\n\t}\n\n\tpublic get claims(): ITokenClaims {\n\t\treturn this.details.claims;\n\t}\n\n\tpublic get existing(): boolean {\n\t\treturn this.details.existing;\n\t}\n\n\tpublic get version(): string {\n\t\treturn this.details.version;\n\t}\n\n\tpublic get initialMessages(): ISequencedDocumentMessage[] {\n\t\treturn this.details.initialMessages;\n\t}\n\n\tpublic get initialSignals(): ISignalMessage[] {\n\t\treturn this.details.initialSignals;\n\t}\n\n\tpublic get initialClients(): ISignalClient[] {\n\t\treturn this.details.initialClients;\n\t}\n\n\tpublic get serviceConfiguration(): IClientConfiguration {\n\t\treturn this.details.serviceConfiguration;\n\t}\n\n\tpublic submit(documentMessages: IDocumentMessage[]): void {\n\t\t// ReplayFileDeltaConnection.submit() can't be called - client never sees its own join on,\n\t\t// and thus can never move to sending ops.\n\t\tthrow new Error(\"ReplayFileDeltaConnection.submit() can't be called\");\n\t}\n\n\tpublic async submitSignal(message: any) {}\n\n\tprivate _disposed = false;\n\tpublic get disposed() {\n\t\treturn this._disposed;\n\t}\n\tpublic dispose() {\n\t\tthis._disposed = true;\n\t}\n}\n"]}
|
|
1
|
+
{"version":3,"file":"fileDocumentDeltaConnection.js","sourceRoot":"","sources":["../src/fileDocumentDeltaConnection.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAOH,+EAU8C;AAC9C,+DAAiE;AAGjE,MAAM,cAAc,GAAG,IAAI,CAAC;AAE5B,qFAAqF;AACrF,MAAM,oBAAoB,GAAG,EAAE,GAAG,IAAI,CAAC;AAEvC,MAAM,mBAAmB,GAAG,QAAQ,CAAC;AAErC,MAAM,gBAAgB,GAAG,aAAa,CAAC;AAEvC,MAAM,MAAM,GAAiB;IAC5B,UAAU,EAAE,gBAAgB;IAC5B,MAAM,EAAE,CAAC,gCAAS,CAAC,OAAO,CAAC;IAC3B,QAAQ,EAAE,EAAE;IACZ,IAAI,EAAE;QACL,EAAE,EAAE,EAAE;KACN;IACD,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE,GAAG,IAAI,CAAC;IAC5C,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,IAAI,IAAI,EAAE,CAAC,OAAO,EAAE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,CAAC,CAAC;IACjE,CAAC;IAEM,WAAW;QACjB,OAAO,IAAI,CAAC,QAAQ,CAAC;IACtB,CAAC;IAED,IAAW,QAAQ;QAClB,OAAO,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC;IAC9B,CAAC;IAED,IAAW,IAAI;QACd,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC;IAC1B,CAAC;IAED,IAAW,MAAM;QAChB,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC;IAC5B,CAAC;IAED,IAAW,QAAQ;QAClB,OAAO,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC;IAC9B,CAAC;IAED,IAAW,OAAO;QACjB,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC;IAC7B,CAAC;IAED,IAAW,eAAe;QACzB,OAAO,IAAI,CAAC,OAAO,CAAC,eAAe,CAAC;IACrC,CAAC;IAED,IAAW,cAAc;QACxB,OAAO,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC;IACpC,CAAC;IAED,IAAW,cAAc;QACxB,OAAO,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC;IACpC,CAAC;IAED,IAAW,oBAAoB;QAC9B,OAAO,IAAI,CAAC,OAAO,CAAC,oBAAoB,CAAC;IAC1C,CAAC;IAEM,MAAM,CAAC,gBAAoC;QACjD,0FAA0F;QAC1F,0CAA0C;QAC1C,MAAM,IAAI,KAAK,CAAC,oDAAoD,CAAC,CAAC;IACvE,CAAC;IAEM,KAAK,CAAC,YAAY,CAAC,OAAY,IAAG,CAAC;IAG1C,IAAW,QAAQ;QAClB,OAAO,IAAI,CAAC,SAAS,CAAC;IACvB,CAAC;IACM,OAAO;QACb,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;IACvB,CAAC;CACD;AAxGD,8DAwGC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { IDisposable } from \"@fluidframework/core-interfaces\";\nimport {\n\tIDocumentDeltaConnection,\n\tIDocumentDeltaConnectionEvents,\n} from \"@fluidframework/driver-definitions\";\nimport {\n\tConnectionMode,\n\tIClientConfiguration,\n\tIConnected,\n\tIDocumentMessage,\n\tISequencedDocumentMessage,\n\tISignalClient,\n\tISignalMessage,\n\tITokenClaims,\n\tScopeType,\n} from \"@fluidframework/protocol-definitions\";\nimport { TypedEventEmitter } from \"@fluid-internal/client-utils\";\nimport { FileDeltaStorageService } from \"./fileDeltaStorageService.js\";\n\nconst MaxBatchDeltas = 2000;\n\n// Since the replay service never actually sends messages the size below is arbitrary\nconst ReplayMaxMessageSize = 16 * 1024;\n\nconst fileProtocolVersion = \"^0.1.0\";\n\nconst replayDocumentId = \"replayDocId\";\n\nconst Claims: ITokenClaims = {\n\tdocumentId: replayDocumentId,\n\tscopes: [ScopeType.DocRead],\n\ttenantId: \"\",\n\tuser: {\n\t\tid: \"\",\n\t},\n\tiat: Math.round(new Date().getTime() / 1000),\n\texp: Math.round(new Date().getTime() / 1000) + 60 * 60, // 1 hour expiration\n\tver: \"1.0\",\n};\n\n/**\n * Replay service used to play ops using the delta connection.\n * @internal\n */\nexport class Replayer {\n\tprivate currentReplayOp = 0;\n\n\tconstructor(\n\t\tprivate readonly deltaConnection: ReplayFileDeltaConnection,\n\t\tprivate readonly documentStorageService: FileDeltaStorageService,\n\t) {}\n\n\tpublic get currentReplayedOp() {\n\t\treturn this.currentReplayOp;\n\t}\n\n\tpublic set currentReplayedOp(op: number) {\n\t\tthis.currentReplayOp = op;\n\t}\n\n\tpublic get ops(): readonly Readonly<ISequencedDocumentMessage>[] {\n\t\treturn this.documentStorageService.ops;\n\t}\n\n\t/**\n\t * Replay the ops upto a certain number.\n\t * @param replayTo - The last op number to be replayed.\n\t */\n\tpublic replay(replayTo: number) {\n\t\tlet totalReplayedOps = 0;\n\t\tlet done: boolean;\n\t\tdo {\n\t\t\tconst fetchToBatch = this.currentReplayOp + MaxBatchDeltas;\n\t\t\tconst fetchTo = Math.min(fetchToBatch, replayTo);\n\n\t\t\tconst fetchedOps = this.documentStorageService.getFromWebSocket(\n\t\t\t\tthis.currentReplayOp,\n\t\t\t\tfetchTo,\n\t\t\t);\n\n\t\t\tif (fetchedOps.length <= 0) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tthis.emit(fetchedOps);\n\t\t\t\ttotalReplayedOps += fetchedOps.length;\n\t\t\t\tthis.currentReplayOp += fetchedOps.length;\n\t\t\t\tdone = this.isDoneFetch(replayTo);\n\t\t\t}\n\t\t} while (!done);\n\t\treturn totalReplayedOps;\n\t}\n\n\tprivate isDoneFetch(replayTo: number) {\n\t\tif (replayTo >= 0) {\n\t\t\treturn this.currentReplayOp >= replayTo;\n\t\t}\n\t\treturn false;\n\t}\n\n\tprivate emit(ops: ISequencedDocumentMessage[]) {\n\t\t// Note: do not clone messages here!\n\t\t// If Replay Tool fails due to one container patching message in-place,\n\t\t// then same thing can happen in shipping product due to\n\t\t// socket reuse in ODSP between main and summarizer containers.\n\t\tthis.deltaConnection.emit(\"op\", replayDocumentId, ops);\n\t}\n}\n\n/**\n * @internal\n */\nexport class ReplayFileDeltaConnection\n\textends TypedEventEmitter<IDocumentDeltaConnectionEvents>\n\timplements IDocumentDeltaConnection, IDisposable\n{\n\t/**\n\t * Mimic the delta connection to replay ops on it.\n\t *\n\t * @param documentDeltaStorageService - The delta storage service to get ops from.\n\t * @returns Document delta connection.\n\t */\n\tpublic static async create(\n\t\tdocumentDeltaStorageService: FileDeltaStorageService,\n\t): Promise<ReplayFileDeltaConnection> {\n\t\tconst mode: ConnectionMode = \"read\";\n\t\tconst connection = {\n\t\t\tclaims: Claims,\n\t\t\tclientId: \"PseudoClientId\",\n\t\t\texisting: true,\n\t\t\tinitialMessages: [],\n\t\t\tinitialSignals: [],\n\t\t\tinitialClients: [],\n\t\t\tmaxMessageSize: ReplayMaxMessageSize,\n\t\t\tmode,\n\t\t\tserviceConfiguration: {\n\t\t\t\tblockSize: 64436,\n\t\t\t\tmaxMessageSize: ReplayMaxMessageSize,\n\t\t\t},\n\t\t\tsupportedVersions: [fileProtocolVersion],\n\t\t\tuser: null,\n\t\t\tversion: fileProtocolVersion,\n\t\t};\n\t\tconst deltaConnection = new ReplayFileDeltaConnection(\n\t\t\tconnection,\n\t\t\tdocumentDeltaStorageService,\n\t\t);\n\t\treturn deltaConnection;\n\t}\n\n\tpublic readonly maxMessageSize = ReplayMaxMessageSize;\n\tprivate readonly replayer: Replayer;\n\n\tpublic constructor(\n\t\tpublic details: IConnected,\n\t\tdocumentDeltaStorageService: FileDeltaStorageService,\n\t) {\n\t\tsuper();\n\t\tthis.replayer = new Replayer(this, documentDeltaStorageService);\n\t}\n\n\tpublic getReplayer() {\n\t\treturn this.replayer;\n\t}\n\n\tpublic get clientId(): string {\n\t\treturn this.details.clientId;\n\t}\n\n\tpublic get mode(): ConnectionMode {\n\t\treturn this.details.mode;\n\t}\n\n\tpublic get claims(): ITokenClaims {\n\t\treturn this.details.claims;\n\t}\n\n\tpublic get existing(): boolean {\n\t\treturn this.details.existing;\n\t}\n\n\tpublic get version(): string {\n\t\treturn this.details.version;\n\t}\n\n\tpublic get initialMessages(): ISequencedDocumentMessage[] {\n\t\treturn this.details.initialMessages;\n\t}\n\n\tpublic get initialSignals(): ISignalMessage[] {\n\t\treturn this.details.initialSignals;\n\t}\n\n\tpublic get initialClients(): ISignalClient[] {\n\t\treturn this.details.initialClients;\n\t}\n\n\tpublic get serviceConfiguration(): IClientConfiguration {\n\t\treturn this.details.serviceConfiguration;\n\t}\n\n\tpublic submit(documentMessages: IDocumentMessage[]): void {\n\t\t// ReplayFileDeltaConnection.submit() can't be called - client never sees its own join on,\n\t\t// and thus can never move to sending ops.\n\t\tthrow new Error(\"ReplayFileDeltaConnection.submit() can't be called\");\n\t}\n\n\tpublic async submitSignal(message: any) {}\n\n\tprivate _disposed = false;\n\tpublic get disposed() {\n\t\treturn this._disposed;\n\t}\n\tpublic dispose() {\n\t\tthis._disposed = true;\n\t}\n}\n"]}
|
|
@@ -2,14 +2,15 @@
|
|
|
2
2
|
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
|
+
import { TypedEventEmitter } from "@fluid-internal/client-utils";
|
|
5
6
|
import * as api from "@fluidframework/driver-definitions";
|
|
6
7
|
import { IClient } from "@fluidframework/protocol-definitions";
|
|
7
|
-
import { FileDeltaStorageService } from "./fileDeltaStorageService";
|
|
8
|
+
import { FileDeltaStorageService } from "./fileDeltaStorageService.js";
|
|
8
9
|
/**
|
|
9
10
|
* The DocumentService manages the different endpoints for connecting to
|
|
10
11
|
* underlying storage for file document service.
|
|
11
12
|
*/
|
|
12
|
-
export declare class FileDocumentService implements api.IDocumentService {
|
|
13
|
+
export declare class FileDocumentService extends TypedEventEmitter<api.IDocumentServiceEvents> implements api.IDocumentService {
|
|
13
14
|
readonly resolvedUrl: api.IResolvedUrl;
|
|
14
15
|
private readonly storage;
|
|
15
16
|
private readonly deltaStorage;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fileDocumentService.d.ts","sourceRoot":"","sources":["../src/fileDocumentService.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,GAAG,MAAM,oCAAoC,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,sCAAsC,CAAC;AAC/D,OAAO,EAAE,uBAAuB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"fileDocumentService.d.ts","sourceRoot":"","sources":["../src/fileDocumentService.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,KAAK,GAAG,MAAM,oCAAoC,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,sCAAsC,CAAC;AAC/D,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAEvE;;;GAGG;AAEH,qBAAa,mBACZ,SAAQ,iBAAiB,CAAC,GAAG,CAAC,sBAAsB,CACpD,YAAW,GAAG,CAAC,gBAAgB;aAGd,WAAW,EAAE,GAAG,CAAC,YAAY;IAC7C,OAAO,CAAC,QAAQ,CAAC,OAAO;IACxB,OAAO,CAAC,QAAQ,CAAC,YAAY;IAC7B,OAAO,CAAC,QAAQ,CAAC,eAAe;gBAHhB,WAAW,EAAE,GAAG,CAAC,YAAY,EAC5B,OAAO,EAAE,GAAG,CAAC,uBAAuB,EACpC,YAAY,EAAE,uBAAuB,EACrC,eAAe,EAAE,GAAG,CAAC,wBAAwB;IAKxD,OAAO;IAED,gBAAgB,IAAI,OAAO,CAAC,GAAG,CAAC,uBAAuB,CAAC;IAIxD,qBAAqB,IAAI,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC;IAI/E;;;;;;OAMG;IACU,oBAAoB,CAAC,MAAM,EAAE,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,wBAAwB,CAAC;CAGzF"}
|
|
@@ -5,13 +5,15 @@
|
|
|
5
5
|
*/
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
exports.FileDocumentService = void 0;
|
|
8
|
+
const client_utils_1 = require("@fluid-internal/client-utils");
|
|
8
9
|
/**
|
|
9
10
|
* The DocumentService manages the different endpoints for connecting to
|
|
10
11
|
* underlying storage for file document service.
|
|
11
12
|
*/
|
|
12
13
|
// eslint-disable-next-line import/namespace
|
|
13
|
-
class FileDocumentService {
|
|
14
|
+
class FileDocumentService extends client_utils_1.TypedEventEmitter {
|
|
14
15
|
constructor(resolvedUrl, storage, deltaStorage, deltaConnection) {
|
|
16
|
+
super();
|
|
15
17
|
this.resolvedUrl = resolvedUrl;
|
|
16
18
|
this.storage = storage;
|
|
17
19
|
this.deltaStorage = deltaStorage;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fileDocumentService.js","sourceRoot":"","sources":["../src/fileDocumentService.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;
|
|
1
|
+
{"version":3,"file":"fileDocumentService.js","sourceRoot":"","sources":["../src/fileDocumentService.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,+DAAiE;AAKjE;;;GAGG;AACH,4CAA4C;AAC5C,MAAa,mBACZ,SAAQ,gCAA6C;IAGrD,YACiB,WAA6B,EAC5B,OAAoC,EACpC,YAAqC,EACrC,eAA6C;QAE9D,KAAK,EAAE,CAAC;QALQ,gBAAW,GAAX,WAAW,CAAkB;QAC5B,YAAO,GAAP,OAAO,CAA6B;QACpC,iBAAY,GAAZ,YAAY,CAAyB;QACrC,oBAAe,GAAf,eAAe,CAA8B;IAG/D,CAAC;IAEM,OAAO,KAAI,CAAC;IAEZ,KAAK,CAAC,gBAAgB;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC;IACrB,CAAC;IAEM,KAAK,CAAC,qBAAqB;QACjC,OAAO,IAAI,CAAC,YAAY,CAAC;IAC1B,CAAC;IAED;;;;;;OAMG;IACI,KAAK,CAAC,oBAAoB,CAAC,MAAe;QAChD,OAAO,IAAI,CAAC,eAAe,CAAC;IAC7B,CAAC;CACD;AAjCD,kDAiCC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { TypedEventEmitter } from \"@fluid-internal/client-utils\";\nimport * as api from \"@fluidframework/driver-definitions\";\nimport { IClient } from \"@fluidframework/protocol-definitions\";\nimport { FileDeltaStorageService } from \"./fileDeltaStorageService.js\";\n\n/**\n * The DocumentService manages the different endpoints for connecting to\n * underlying storage for file document service.\n */\n// eslint-disable-next-line import/namespace\nexport class FileDocumentService\n\textends TypedEventEmitter<api.IDocumentServiceEvents>\n\timplements api.IDocumentService\n{\n\tconstructor(\n\t\tpublic readonly resolvedUrl: api.IResolvedUrl,\n\t\tprivate readonly storage: api.IDocumentStorageService,\n\t\tprivate readonly deltaStorage: FileDeltaStorageService,\n\t\tprivate readonly deltaConnection: api.IDocumentDeltaConnection,\n\t) {\n\t\tsuper();\n\t}\n\n\tpublic dispose() {}\n\n\tpublic async connectToStorage(): Promise<api.IDocumentStorageService> {\n\t\treturn this.storage;\n\t}\n\n\tpublic async connectToDeltaStorage(): Promise<api.IDocumentDeltaStorageService> {\n\t\treturn this.deltaStorage;\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 *\n\t * @param client - Client that connects to socket.\n\t * @returns returns the delta stream service.\n\t */\n\tpublic async connectToDeltaStream(client: IClient): Promise<api.IDocumentDeltaConnection> {\n\t\treturn this.deltaConnection;\n\t}\n}\n"]}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import { IDocumentDeltaConnection, IDocumentService, IDocumentServiceFactory, IDocumentStorageService, IResolvedUrl } from "@fluidframework/driver-definitions";
|
|
6
6
|
import { ITelemetryBaseLogger } from "@fluidframework/core-interfaces";
|
|
7
7
|
import { ISummaryTree } from "@fluidframework/protocol-definitions";
|
|
8
|
-
import { FileDeltaStorageService } from "./fileDeltaStorageService";
|
|
8
|
+
import { FileDeltaStorageService } from "./fileDeltaStorageService.js";
|
|
9
9
|
/**
|
|
10
10
|
* Factory for creating the file document service. Use this if you want to
|
|
11
11
|
* use the local file storage as underlying storage.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fileDocumentServiceFactory.d.ts","sourceRoot":"","sources":["../src/fileDocumentServiceFactory.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACN,wBAAwB,EACxB,gBAAgB,EAChB,uBAAuB,EACvB,uBAAuB,EACvB,YAAY,EACZ,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AACpE,OAAO,EAAE,uBAAuB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"fileDocumentServiceFactory.d.ts","sourceRoot":"","sources":["../src/fileDocumentServiceFactory.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACN,wBAAwB,EACxB,gBAAgB,EAChB,uBAAuB,EACvB,uBAAuB,EACvB,YAAY,EACZ,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AACvE,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AACpE,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AAGvE;;;;GAIG;AACH,qBAAa,0BAA2B,YAAW,uBAAuB;IAExE,OAAO,CAAC,QAAQ,CAAC,OAAO;IACxB,OAAO,CAAC,QAAQ,CAAC,YAAY;IAC7B,OAAO,CAAC,QAAQ,CAAC,eAAe;gBAFf,OAAO,EAAE,uBAAuB,EAChC,YAAY,EAAE,uBAAuB,EACrC,eAAe,EAAE,wBAAwB;IAG3D;;;;;OAKG;IACU,qBAAqB,CACjC,WAAW,EAAE,YAAY,EACzB,MAAM,CAAC,EAAE,oBAAoB,EAC7B,kBAAkB,CAAC,EAAE,OAAO,GAC1B,OAAO,CAAC,gBAAgB,CAAC;IAUf,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"}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
exports.FileDocumentServiceFactory = void 0;
|
|
8
|
-
const
|
|
8
|
+
const fileDocumentService_js_1 = require("./fileDocumentService.js");
|
|
9
9
|
/**
|
|
10
10
|
* Factory for creating the file document service. Use this if you want to
|
|
11
11
|
* use the local file storage as underlying storage.
|
|
@@ -24,7 +24,7 @@ class FileDocumentServiceFactory {
|
|
|
24
24
|
* @returns file document service.
|
|
25
25
|
*/
|
|
26
26
|
async createDocumentService(resolvedUrl, logger, clientIsSummarizer) {
|
|
27
|
-
return new
|
|
27
|
+
return new fileDocumentService_js_1.FileDocumentService(resolvedUrl, this.storage, this.deltaStorage, this.deltaConnection);
|
|
28
28
|
}
|
|
29
29
|
// TODO: Issue-2109 Implement detach container api or put appropriate comment.
|
|
30
30
|
async createContainer(createNewSummary, resolvedUrl, logger, clientIsSummarizer) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fileDocumentServiceFactory.js","sourceRoot":"","sources":["../src/fileDocumentServiceFactory.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAYH
|
|
1
|
+
{"version":3,"file":"fileDocumentServiceFactory.js","sourceRoot":"","sources":["../src/fileDocumentServiceFactory.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAYH,qEAA+D;AAE/D;;;;GAIG;AACH,MAAa,0BAA0B;IACtC,YACkB,OAAgC,EAChC,YAAqC,EACrC,eAAyC;QAFzC,YAAO,GAAP,OAAO,CAAyB;QAChC,iBAAY,GAAZ,YAAY,CAAyB;QACrC,oBAAe,GAAf,eAAe,CAA0B;IACxD,CAAC;IAEJ;;;;;OAKG;IACI,KAAK,CAAC,qBAAqB,CACjC,WAAyB,EACzB,MAA6B,EAC7B,kBAA4B;QAE5B,OAAO,IAAI,4CAAmB,CAC7B,WAAW,EACX,IAAI,CAAC,OAAO,EACZ,IAAI,CAAC,YAAY,EACjB,IAAI,CAAC,eAAe,CACpB,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;AAnCD,gEAmCC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport {\n\tIDocumentDeltaConnection,\n\tIDocumentService,\n\tIDocumentServiceFactory,\n\tIDocumentStorageService,\n\tIResolvedUrl,\n} from \"@fluidframework/driver-definitions\";\nimport { ITelemetryBaseLogger } from \"@fluidframework/core-interfaces\";\nimport { ISummaryTree } from \"@fluidframework/protocol-definitions\";\nimport { FileDeltaStorageService } from \"./fileDeltaStorageService.js\";\nimport { FileDocumentService } from \"./fileDocumentService.js\";\n\n/**\n * Factory for creating the file document service. Use this if you want to\n * use the local file storage as underlying storage.\n * @internal\n */\nexport class FileDocumentServiceFactory implements IDocumentServiceFactory {\n\tconstructor(\n\t\tprivate readonly storage: IDocumentStorageService,\n\t\tprivate readonly deltaStorage: FileDeltaStorageService,\n\t\tprivate readonly deltaConnection: IDocumentDeltaConnection,\n\t) {}\n\n\t/**\n\t * Creates the file document service if the path exists.\n\t *\n\t * @param fileURL - Path of directory containing ops/snapshots.\n\t * @returns file 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\treturn new FileDocumentService(\n\t\t\tresolvedUrl,\n\t\t\tthis.storage,\n\t\t\tthis.deltaStorage,\n\t\t\tthis.deltaConnection,\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"]}
|
|
@@ -57,8 +57,8 @@ export declare const FileSnapshotWriterClassFactory: <TBase extends ReaderConstr
|
|
|
57
57
|
getSnapshotTree(version?: api.IVersion): Promise<api.ISnapshotTree | null>;
|
|
58
58
|
uploadSummaryWithContext(summary: api.ISummaryTree, context: ISummaryContext): Promise<string>;
|
|
59
59
|
buildTree(snapshotTree: api.ISnapshotTree): Promise<api.ITree>;
|
|
60
|
-
repositoryUrl: string;
|
|
61
60
|
readonly policies?: import("@fluidframework/driver-definitions").IDocumentStorageServicePolicies | undefined;
|
|
61
|
+
getSnapshot?(snapshotFetchOptions?: import("@fluidframework/driver-definitions").ISnapshotFetchOptions | undefined): Promise<import("@fluidframework/driver-definitions").ISnapshot>;
|
|
62
62
|
createBlob(file: ArrayBufferLike): Promise<api.ICreateBlobResponse>;
|
|
63
63
|
downloadSummary(handle: api.ISummaryHandle): Promise<api.ISummaryTree>;
|
|
64
64
|
readonly disposed?: boolean | undefined;
|
|
@@ -80,8 +80,8 @@ export declare const FluidFetchReaderFileSnapshotWriter: {
|
|
|
80
80
|
getSnapshotTree(version?: api.IVersion): Promise<api.ISnapshotTree | null>;
|
|
81
81
|
uploadSummaryWithContext(summary: api.ISummaryTree, context: ISummaryContext): Promise<string>;
|
|
82
82
|
buildTree(snapshotTree: api.ISnapshotTree): Promise<api.ITree>;
|
|
83
|
-
repositoryUrl: string;
|
|
84
83
|
readonly policies?: import("@fluidframework/driver-definitions").IDocumentStorageServicePolicies | undefined;
|
|
84
|
+
getSnapshot?(snapshotFetchOptions?: import("@fluidframework/driver-definitions").ISnapshotFetchOptions | undefined): Promise<import("@fluidframework/driver-definitions").ISnapshot>;
|
|
85
85
|
createBlob(file: ArrayBufferLike): Promise<api.ICreateBlobResponse>;
|
|
86
86
|
downloadSummary(handle: api.ISummaryHandle): Promise<api.ISummaryTree>;
|
|
87
87
|
readonly disposed?: boolean | undefined;
|
package/dist/index.d.ts
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
|
-
export { FileDeltaStorageService } from "./fileDeltaStorageService";
|
|
6
|
-
export { FileDocumentServiceFactory } from "./fileDocumentServiceFactory";
|
|
7
|
-
export { Replayer, ReplayFileDeltaConnection } from "./fileDocumentDeltaConnection";
|
|
8
|
-
export { FileSnapshotWriterClassFactory, FileStorageDocumentName, FluidFetchReader, FluidFetchReaderFileSnapshotWriter, ISnapshotWriterStorage, ReaderConstructor, } from "./fileDocumentStorageService";
|
|
5
|
+
export { FileDeltaStorageService } from "./fileDeltaStorageService.js";
|
|
6
|
+
export { FileDocumentServiceFactory } from "./fileDocumentServiceFactory.js";
|
|
7
|
+
export { Replayer, ReplayFileDeltaConnection } from "./fileDocumentDeltaConnection.js";
|
|
8
|
+
export { FileSnapshotWriterClassFactory, FileStorageDocumentName, FluidFetchReader, FluidFetchReaderFileSnapshotWriter, ISnapshotWriterStorage, ReaderConstructor, } from "./fileDocumentStorageService.js";
|
|
9
9
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,uBAAuB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,0BAA0B,EAAE,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAE,QAAQ,EAAE,yBAAyB,EAAE,MAAM,kCAAkC,CAAC;AACvF,OAAO,EACN,8BAA8B,EAC9B,uBAAuB,EACvB,gBAAgB,EAChB,kCAAkC,EAClC,sBAAsB,EACtB,iBAAiB,GACjB,MAAM,iCAAiC,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -5,16 +5,16 @@
|
|
|
5
5
|
*/
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
7
|
exports.FluidFetchReaderFileSnapshotWriter = exports.FluidFetchReader = exports.FileStorageDocumentName = exports.FileSnapshotWriterClassFactory = exports.ReplayFileDeltaConnection = exports.Replayer = exports.FileDocumentServiceFactory = exports.FileDeltaStorageService = void 0;
|
|
8
|
-
var
|
|
9
|
-
Object.defineProperty(exports, "FileDeltaStorageService", { enumerable: true, get: function () { return
|
|
10
|
-
var
|
|
11
|
-
Object.defineProperty(exports, "FileDocumentServiceFactory", { enumerable: true, get: function () { return
|
|
12
|
-
var
|
|
13
|
-
Object.defineProperty(exports, "Replayer", { enumerable: true, get: function () { return
|
|
14
|
-
Object.defineProperty(exports, "ReplayFileDeltaConnection", { enumerable: true, get: function () { return
|
|
15
|
-
var
|
|
16
|
-
Object.defineProperty(exports, "FileSnapshotWriterClassFactory", { enumerable: true, get: function () { return
|
|
17
|
-
Object.defineProperty(exports, "FileStorageDocumentName", { enumerable: true, get: function () { return
|
|
18
|
-
Object.defineProperty(exports, "FluidFetchReader", { enumerable: true, get: function () { return
|
|
19
|
-
Object.defineProperty(exports, "FluidFetchReaderFileSnapshotWriter", { enumerable: true, get: function () { return
|
|
8
|
+
var fileDeltaStorageService_js_1 = require("./fileDeltaStorageService.js");
|
|
9
|
+
Object.defineProperty(exports, "FileDeltaStorageService", { enumerable: true, get: function () { return fileDeltaStorageService_js_1.FileDeltaStorageService; } });
|
|
10
|
+
var fileDocumentServiceFactory_js_1 = require("./fileDocumentServiceFactory.js");
|
|
11
|
+
Object.defineProperty(exports, "FileDocumentServiceFactory", { enumerable: true, get: function () { return fileDocumentServiceFactory_js_1.FileDocumentServiceFactory; } });
|
|
12
|
+
var fileDocumentDeltaConnection_js_1 = require("./fileDocumentDeltaConnection.js");
|
|
13
|
+
Object.defineProperty(exports, "Replayer", { enumerable: true, get: function () { return fileDocumentDeltaConnection_js_1.Replayer; } });
|
|
14
|
+
Object.defineProperty(exports, "ReplayFileDeltaConnection", { enumerable: true, get: function () { return fileDocumentDeltaConnection_js_1.ReplayFileDeltaConnection; } });
|
|
15
|
+
var fileDocumentStorageService_js_1 = require("./fileDocumentStorageService.js");
|
|
16
|
+
Object.defineProperty(exports, "FileSnapshotWriterClassFactory", { enumerable: true, get: function () { return fileDocumentStorageService_js_1.FileSnapshotWriterClassFactory; } });
|
|
17
|
+
Object.defineProperty(exports, "FileStorageDocumentName", { enumerable: true, get: function () { return fileDocumentStorageService_js_1.FileStorageDocumentName; } });
|
|
18
|
+
Object.defineProperty(exports, "FluidFetchReader", { enumerable: true, get: function () { return fileDocumentStorageService_js_1.FluidFetchReader; } });
|
|
19
|
+
Object.defineProperty(exports, "FluidFetchReaderFileSnapshotWriter", { enumerable: true, get: function () { return fileDocumentStorageService_js_1.FluidFetchReaderFileSnapshotWriter; } });
|
|
20
20
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,2EAAuE;AAA9D,qIAAA,uBAAuB,OAAA;AAChC,iFAA6E;AAApE,2IAAA,0BAA0B,OAAA;AACnC,mFAAuF;AAA9E,0HAAA,QAAQ,OAAA;AAAE,2IAAA,yBAAyB,OAAA;AAC5C,iFAOyC;AANxC,+IAAA,8BAA8B,OAAA;AAC9B,wIAAA,uBAAuB,OAAA;AACvB,iIAAA,gBAAgB,OAAA;AAChB,mJAAA,kCAAkC,OAAA","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nexport { FileDeltaStorageService } from \"./fileDeltaStorageService.js\";\nexport { FileDocumentServiceFactory } from \"./fileDocumentServiceFactory.js\";\nexport { Replayer, ReplayFileDeltaConnection } from \"./fileDocumentDeltaConnection.js\";\nexport {\n\tFileSnapshotWriterClassFactory,\n\tFileStorageDocumentName,\n\tFluidFetchReader,\n\tFluidFetchReaderFileSnapshotWriter,\n\tISnapshotWriterStorage,\n\tReaderConstructor,\n} from \"./fileDocumentStorageService.js\";\n"]}
|
package/dist/tsdoc-metadata.json
CHANGED
|
@@ -0,0 +1,53 @@
|
|
|
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 { ISnapshot } from '@fluidframework/driver-definitions';
|
|
20
|
+
import { ISnapshotFetchOptions } from '@fluidframework/driver-definitions';
|
|
21
|
+
import { IStream } from '@fluidframework/driver-definitions';
|
|
22
|
+
import { ISummaryContext } from '@fluidframework/driver-definitions';
|
|
23
|
+
import { ISummaryTree } from '@fluidframework/protocol-definitions';
|
|
24
|
+
import { ITelemetryBaseLogger } from '@fluidframework/core-interfaces';
|
|
25
|
+
import { ITokenClaims } from '@fluidframework/protocol-definitions';
|
|
26
|
+
import { ReadDocumentStorageServiceBase } from '@fluidframework/replay-driver';
|
|
27
|
+
import { TypedEventEmitter } from '@fluid-internal/client-utils';
|
|
28
|
+
|
|
29
|
+
/* Excluded from this release type: FileDeltaStorageService */
|
|
30
|
+
|
|
31
|
+
/* Excluded from this release type: FileDocumentServiceFactory */
|
|
32
|
+
|
|
33
|
+
/* Excluded from this release type: FileSnapshotWriterClassFactory */
|
|
34
|
+
|
|
35
|
+
/* Excluded from this release type: FileStorageDocumentName */
|
|
36
|
+
|
|
37
|
+
/* Excluded from this release type: FluidFetchReader */
|
|
38
|
+
|
|
39
|
+
/* Excluded from this release type: FluidFetchReaderFileSnapshotWriter */
|
|
40
|
+
|
|
41
|
+
/* Excluded from this release type: IFileSnapshot */
|
|
42
|
+
|
|
43
|
+
/* Excluded from this release type: ISnapshotWriterStorage */
|
|
44
|
+
|
|
45
|
+
/* Excluded from this release type: ReadDocumentStorageServiceBase */
|
|
46
|
+
|
|
47
|
+
/* Excluded from this release type: ReaderConstructor */
|
|
48
|
+
|
|
49
|
+
/* Excluded from this release type: Replayer */
|
|
50
|
+
|
|
51
|
+
/* Excluded from this release type: ReplayFileDeltaConnection */
|
|
52
|
+
|
|
53
|
+
export { }
|
|
@@ -0,0 +1,71 @@
|
|
|
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 { ISnapshot } from '@fluidframework/driver-definitions';
|
|
20
|
+
import { ISnapshotFetchOptions } from '@fluidframework/driver-definitions';
|
|
21
|
+
import { IStream } from '@fluidframework/driver-definitions';
|
|
22
|
+
import { ISummaryContext } from '@fluidframework/driver-definitions';
|
|
23
|
+
import { ISummaryTree } from '@fluidframework/protocol-definitions';
|
|
24
|
+
import { ITelemetryBaseLogger } from '@fluidframework/core-interfaces';
|
|
25
|
+
import { ITokenClaims } from '@fluidframework/protocol-definitions';
|
|
26
|
+
import { ReadDocumentStorageServiceBase } from '@fluidframework/replay-driver';
|
|
27
|
+
import { TypedEventEmitter } from '@fluid-internal/client-utils';
|
|
28
|
+
|
|
29
|
+
/* Excluded from this release type: FileDeltaStorageService */
|
|
30
|
+
|
|
31
|
+
/* Excluded from this release type: FileDocumentServiceFactory */
|
|
32
|
+
|
|
33
|
+
/* Excluded from this release type: FileSnapshotWriterClassFactory */
|
|
34
|
+
|
|
35
|
+
/* Excluded from this release type: FileStorageDocumentName */
|
|
36
|
+
|
|
37
|
+
/* Excluded from this release type: FluidFetchReader */
|
|
38
|
+
|
|
39
|
+
/* Excluded from this release type: FluidFetchReaderFileSnapshotWriter */
|
|
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: ReadDocumentStorageServiceBase */
|
|
64
|
+
|
|
65
|
+
/* Excluded from this release type: ReaderConstructor */
|
|
66
|
+
|
|
67
|
+
/* Excluded from this release type: Replayer */
|
|
68
|
+
|
|
69
|
+
/* Excluded from this release type: ReplayFileDeltaConnection */
|
|
70
|
+
|
|
71
|
+
export { }
|