@fluidframework/file-driver 1.4.0-121020 → 2.0.0-dev-rc.1.0.0.224419
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 +6 -7
- package/CHANGELOG.md +117 -0
- package/README.md +39 -1
- package/api-extractor-lint.json +4 -0
- package/api-extractor.json +2 -2
- package/api-report/file-driver.api.md +171 -0
- package/dist/file-driver-alpha.d.ts +51 -0
- package/dist/file-driver-beta.d.ts +69 -0
- package/dist/file-driver-public.d.ts +69 -0
- package/dist/file-driver-untrimmed.d.ts +209 -0
- package/dist/fileDeltaStorageService.d.ts +1 -0
- package/dist/fileDeltaStorageService.d.ts.map +1 -1
- package/dist/fileDeltaStorageService.js +3 -2
- package/dist/fileDeltaStorageService.js.map +1 -1
- package/dist/fileDocumentDeltaConnection.d.ts +6 -2
- package/dist/fileDocumentDeltaConnection.d.ts.map +1 -1
- package/dist/fileDocumentDeltaConnection.js +19 -18
- package/dist/fileDocumentDeltaConnection.js.map +1 -1
- package/dist/fileDocumentService.d.ts +2 -2
- package/dist/fileDocumentService.d.ts.map +1 -1
- package/dist/fileDocumentService.js +3 -5
- package/dist/fileDocumentService.js.map +1 -1
- package/dist/fileDocumentServiceFactory.d.ts +3 -3
- package/dist/fileDocumentServiceFactory.d.ts.map +1 -1
- package/dist/fileDocumentServiceFactory.js +3 -3
- package/dist/fileDocumentServiceFactory.js.map +1 -1
- package/dist/fileDocumentStorageService.d.ts +19 -3
- package/dist/fileDocumentStorageService.d.ts.map +1 -1
- package/dist/fileDocumentStorageService.js +31 -10
- package/dist/fileDocumentStorageService.js.map +1 -1
- package/dist/index.d.ts +4 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +13 -15
- package/dist/index.js.map +1 -1
- package/dist/tsdoc-metadata.json +11 -0
- package/lib/file-driver-alpha.d.ts +51 -0
- package/lib/file-driver-beta.d.ts +69 -0
- package/lib/file-driver-public.d.ts +69 -0
- package/lib/file-driver-untrimmed.d.ts +209 -0
- package/package.json +61 -42
- package/prettier.config.cjs +8 -0
- package/src/fileDeltaStorageService.ts +55 -51
- package/src/fileDocumentDeltaConnection.ts +192 -179
- package/src/fileDocumentService.ts +24 -28
- package/src/fileDocumentServiceFactory.ts +39 -34
- package/src/fileDocumentStorageService.ts +215 -179
- package/src/index.ts +11 -5
- package/tsconfig.json +12 -14
- package/dist/packageVersion.d.ts +0 -9
- package/dist/packageVersion.d.ts.map +0 -1
- package/dist/packageVersion.js +0 -12
- package/dist/packageVersion.js.map +0 -1
- package/src/packageVersion.ts +0 -9
package/.eslintrc.js
CHANGED
|
@@ -4,10 +4,9 @@
|
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
6
|
module.exports = {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}
|
|
7
|
+
extends: [require.resolve("@fluidframework/eslint-config-fluid/minimal"), "prettier"],
|
|
8
|
+
rules: {
|
|
9
|
+
"@typescript-eslint/strict-boolean-expressions": "off",
|
|
10
|
+
"import/no-nodejs-modules": ["error", { allow: ["fs"] }],
|
|
11
|
+
},
|
|
12
|
+
};
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
# @fluidframework/file-driver
|
|
2
|
+
|
|
3
|
+
## 2.0.0-internal.8.0.0
|
|
4
|
+
|
|
5
|
+
Dependency updates only.
|
|
6
|
+
|
|
7
|
+
## 2.0.0-internal.7.4.0
|
|
8
|
+
|
|
9
|
+
Dependency updates only.
|
|
10
|
+
|
|
11
|
+
## 2.0.0-internal.7.3.0
|
|
12
|
+
|
|
13
|
+
Dependency updates only.
|
|
14
|
+
|
|
15
|
+
## 2.0.0-internal.7.2.0
|
|
16
|
+
|
|
17
|
+
Dependency updates only.
|
|
18
|
+
|
|
19
|
+
## 2.0.0-internal.7.1.0
|
|
20
|
+
|
|
21
|
+
Dependency updates only.
|
|
22
|
+
|
|
23
|
+
## 2.0.0-internal.7.0.0
|
|
24
|
+
|
|
25
|
+
### Major Changes
|
|
26
|
+
|
|
27
|
+
- Dependencies on @fluidframework/protocol-definitions package updated to 3.0.0 [871b3493dd](https://github.com/microsoft/FluidFramework/commits/871b3493dd0d7ea3a89be64998ceb6cb9021a04e)
|
|
28
|
+
|
|
29
|
+
This included the following changes from the protocol-definitions release:
|
|
30
|
+
|
|
31
|
+
- Updating signal interfaces for some planned improvements. The intention is split the interface between signals
|
|
32
|
+
submitted by clients to the server and the resulting signals sent from the server to clients.
|
|
33
|
+
- A new optional type member is available on the ISignalMessage interface and a new ISentSignalMessage interface has
|
|
34
|
+
been added, which will be the typing for signals sent from the client to the server. Both extend a new
|
|
35
|
+
ISignalMessageBase interface that contains common members.
|
|
36
|
+
- The @fluidframework/common-definitions package dependency has been updated to version 1.0.0.
|
|
37
|
+
|
|
38
|
+
- Server upgrade: dependencies on Fluid server packages updated to 2.0.1 [871b3493dd](https://github.com/microsoft/FluidFramework/commits/871b3493dd0d7ea3a89be64998ceb6cb9021a04e)
|
|
39
|
+
|
|
40
|
+
Dependencies on the following Fluid server package have been updated to version 2.0.1:
|
|
41
|
+
|
|
42
|
+
- @fluidframework/gitresources: 2.0.1
|
|
43
|
+
- @fluidframework/server-kafka-orderer: 2.0.1
|
|
44
|
+
- @fluidframework/server-lambdas: 2.0.1
|
|
45
|
+
- @fluidframework/server-lambdas-driver: 2.0.1
|
|
46
|
+
- @fluidframework/server-local-server: 2.0.1
|
|
47
|
+
- @fluidframework/server-memory-orderer: 2.0.1
|
|
48
|
+
- @fluidframework/protocol-base: 2.0.1
|
|
49
|
+
- @fluidframework/server-routerlicious: 2.0.1
|
|
50
|
+
- @fluidframework/server-routerlicious-base: 2.0.1
|
|
51
|
+
- @fluidframework/server-services: 2.0.1
|
|
52
|
+
- @fluidframework/server-services-client: 2.0.1
|
|
53
|
+
- @fluidframework/server-services-core: 2.0.1
|
|
54
|
+
- @fluidframework/server-services-ordering-kafkanode: 2.0.1
|
|
55
|
+
- @fluidframework/server-services-ordering-rdkafka: 2.0.1
|
|
56
|
+
- @fluidframework/server-services-ordering-zookeeper: 2.0.1
|
|
57
|
+
- @fluidframework/server-services-shared: 2.0.1
|
|
58
|
+
- @fluidframework/server-services-telemetry: 2.0.1
|
|
59
|
+
- @fluidframework/server-services-utils: 2.0.1
|
|
60
|
+
- @fluidframework/server-test-utils: 2.0.1
|
|
61
|
+
- tinylicious: 2.0.1
|
|
62
|
+
|
|
63
|
+
- Minimum TypeScript version now 5.1.6 [871b3493dd](https://github.com/microsoft/FluidFramework/commits/871b3493dd0d7ea3a89be64998ceb6cb9021a04e)
|
|
64
|
+
|
|
65
|
+
The minimum supported TypeScript version for Fluid 2.0 clients is now 5.1.6.
|
|
66
|
+
|
|
67
|
+
## 2.0.0-internal.6.4.0
|
|
68
|
+
|
|
69
|
+
Dependency updates only.
|
|
70
|
+
|
|
71
|
+
## 2.0.0-internal.6.3.0
|
|
72
|
+
|
|
73
|
+
Dependency updates only.
|
|
74
|
+
|
|
75
|
+
## 2.0.0-internal.6.2.0
|
|
76
|
+
|
|
77
|
+
Dependency updates only.
|
|
78
|
+
|
|
79
|
+
## 2.0.0-internal.6.1.0
|
|
80
|
+
|
|
81
|
+
Dependency updates only.
|
|
82
|
+
|
|
83
|
+
## 2.0.0-internal.6.0.0
|
|
84
|
+
|
|
85
|
+
### Major Changes
|
|
86
|
+
|
|
87
|
+
- Upgraded typescript transpilation target to ES2020 [8abce8cdb4](https://github.com/microsoft/FluidFramework/commits/8abce8cdb4e2832fb6405fb44e393bef03d5648a)
|
|
88
|
+
|
|
89
|
+
Upgraded typescript transpilation target to ES2020. This is done in order to decrease the bundle sizes of Fluid Framework packages. This has provided size improvements across the board for ex. Loader, Driver, Runtime etc. Reduced bundle sizes helps to load lesser code in apps and hence also helps to improve the perf.If any app wants to target any older versions of browsers with which this target version is not compatible, then they can use packages like babel to transpile to a older target.
|
|
90
|
+
|
|
91
|
+
## 2.0.0-internal.5.4.0
|
|
92
|
+
|
|
93
|
+
Dependency updates only.
|
|
94
|
+
|
|
95
|
+
## 2.0.0-internal.5.3.0
|
|
96
|
+
|
|
97
|
+
Dependency updates only.
|
|
98
|
+
|
|
99
|
+
## 2.0.0-internal.5.2.0
|
|
100
|
+
|
|
101
|
+
Dependency updates only.
|
|
102
|
+
|
|
103
|
+
## 2.0.0-internal.5.1.0
|
|
104
|
+
|
|
105
|
+
Dependency updates only.
|
|
106
|
+
|
|
107
|
+
## 2.0.0-internal.5.0.0
|
|
108
|
+
|
|
109
|
+
Dependency updates only.
|
|
110
|
+
|
|
111
|
+
## 2.0.0-internal.4.4.0
|
|
112
|
+
|
|
113
|
+
Dependency updates only.
|
|
114
|
+
|
|
115
|
+
## 2.0.0-internal.4.1.0
|
|
116
|
+
|
|
117
|
+
Dependency updates only.
|
package/README.md
CHANGED
|
@@ -1,3 +1,41 @@
|
|
|
1
1
|
# @fluidframework/file-driver
|
|
2
2
|
|
|
3
|
-
This is an implementation of a driver which provides a DocumentService which uses local filesystem to get data for different endpoints like Document Storage, Delta Storage and Delta stream. It also provides implementation of Document Storage, Delta Storage and Delta stream. It also has a replay service which provides user the capability to replays ops accordingly.
|
|
3
|
+
This is an implementation of a driver which provides a DocumentService which uses local filesystem to get data for different endpoints like Document Storage, Delta Storage and Delta stream. It also provides implementation of Document Storage, Delta Storage and Delta stream. It also has a replay service which provides user the capability to replays ops accordingly.
|
|
4
|
+
|
|
5
|
+
<!-- AUTO-GENERATED-CONTENT:START (README_DEPENDENCY_GUIDELINES_SECTION:includeHeading=TRUE) -->
|
|
6
|
+
|
|
7
|
+
<!-- prettier-ignore-start -->
|
|
8
|
+
<!-- NOTE: This section is automatically generated using @fluid-tools/markdown-magic. Do not update these generated contents directly. -->
|
|
9
|
+
|
|
10
|
+
## Using Fluid Framework libraries
|
|
11
|
+
|
|
12
|
+
When taking a dependency on a Fluid Framework library, we recommend using a `^` (caret) version range, such as `^1.3.4`.
|
|
13
|
+
While Fluid Framework libraries may use different ranges with interdependencies between other Fluid Framework libraries,
|
|
14
|
+
library consumers should always prefer `^`.
|
|
15
|
+
|
|
16
|
+
Note that when depending on a library version of the form `2.0.0-internal.x.y.z`, called the Fluid internal version scheme,
|
|
17
|
+
you must use a `>= <` dependency range (such as `>=2.0.0-internal.x.y.z <2.0.0-internal.w.0.0` where `w` is `x+1`).
|
|
18
|
+
Standard `^` and `~` ranges will not work as expected.
|
|
19
|
+
See the [@fluid-tools/version-tools](https://github.com/microsoft/FluidFramework/blob/main/build-tools/packages/version-tools/README.md)
|
|
20
|
+
package for more information including tools to convert between version schemes.
|
|
21
|
+
|
|
22
|
+
<!-- prettier-ignore-end -->
|
|
23
|
+
|
|
24
|
+
<!-- AUTO-GENERATED-CONTENT:END -->
|
|
25
|
+
|
|
26
|
+
<!-- AUTO-GENERATED-CONTENT:START (README_TRADEMARK_SECTION:includeHeading=TRUE) -->
|
|
27
|
+
|
|
28
|
+
<!-- prettier-ignore-start -->
|
|
29
|
+
<!-- NOTE: This section is automatically generated using @fluid-tools/markdown-magic. Do not update these generated contents directly. -->
|
|
30
|
+
|
|
31
|
+
## Trademark
|
|
32
|
+
|
|
33
|
+
This project may contain Microsoft trademarks or logos for Microsoft projects, products, or services.
|
|
34
|
+
|
|
35
|
+
Use of these trademarks or logos must follow Microsoft's [Trademark & Brand Guidelines](https://www.microsoft.com/en-us/legal/intellectualproperty/trademarks/usage/general).
|
|
36
|
+
|
|
37
|
+
Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship.
|
|
38
|
+
|
|
39
|
+
<!-- prettier-ignore-end -->
|
|
40
|
+
|
|
41
|
+
<!-- AUTO-GENERATED-CONTENT:END -->
|
package/api-extractor.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
|
|
3
|
+
"extends": "../../../common/build/build-common/api-extractor-base.json"
|
|
4
4
|
}
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
## API Report File for "@fluidframework/file-driver"
|
|
2
|
+
|
|
3
|
+
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
|
|
4
|
+
|
|
5
|
+
```ts
|
|
6
|
+
|
|
7
|
+
import * as api from '@fluidframework/protocol-definitions';
|
|
8
|
+
import { ConnectionMode } from '@fluidframework/protocol-definitions';
|
|
9
|
+
import { IClientConfiguration } from '@fluidframework/protocol-definitions';
|
|
10
|
+
import { IConnected } from '@fluidframework/protocol-definitions';
|
|
11
|
+
import { IDisposable } from '@fluidframework/core-interfaces';
|
|
12
|
+
import { IDocumentDeltaConnection } from '@fluidframework/driver-definitions';
|
|
13
|
+
import { IDocumentDeltaConnectionEvents } from '@fluidframework/driver-definitions';
|
|
14
|
+
import { IDocumentDeltaStorageService } from '@fluidframework/driver-definitions';
|
|
15
|
+
import { IDocumentMessage } from '@fluidframework/protocol-definitions';
|
|
16
|
+
import { IDocumentService } from '@fluidframework/driver-definitions';
|
|
17
|
+
import { IDocumentServiceFactory } from '@fluidframework/driver-definitions';
|
|
18
|
+
import { IDocumentStorageService } from '@fluidframework/driver-definitions';
|
|
19
|
+
import { IDocumentStorageServicePolicies } from '@fluidframework/driver-definitions';
|
|
20
|
+
import { IFileSnapshot } from '@fluidframework/replay-driver';
|
|
21
|
+
import { IResolvedUrl } from '@fluidframework/driver-definitions';
|
|
22
|
+
import { ISequencedDocumentMessage } from '@fluidframework/protocol-definitions';
|
|
23
|
+
import { ISignalClient } from '@fluidframework/protocol-definitions';
|
|
24
|
+
import { ISignalMessage } from '@fluidframework/protocol-definitions';
|
|
25
|
+
import { IStream } from '@fluidframework/driver-definitions';
|
|
26
|
+
import { ISummaryContext } from '@fluidframework/driver-definitions';
|
|
27
|
+
import { ISummaryTree } from '@fluidframework/protocol-definitions';
|
|
28
|
+
import { ITelemetryBaseLogger } from '@fluidframework/core-interfaces';
|
|
29
|
+
import { ITokenClaims } from '@fluidframework/protocol-definitions';
|
|
30
|
+
import { ReadDocumentStorageServiceBase } from '@fluidframework/replay-driver';
|
|
31
|
+
import { TypedEventEmitter } from '@fluid-internal/client-utils';
|
|
32
|
+
|
|
33
|
+
// @internal
|
|
34
|
+
export class FileDeltaStorageService implements IDocumentDeltaStorageService {
|
|
35
|
+
constructor(path: string);
|
|
36
|
+
// (undocumented)
|
|
37
|
+
fetchMessages(from: number, to: number | undefined, abortSignal?: AbortSignal, cachedOnly?: boolean): IStream<api.ISequencedDocumentMessage[]>;
|
|
38
|
+
getFromWebSocket(from: number, to: number): api.ISequencedDocumentMessage[];
|
|
39
|
+
// (undocumented)
|
|
40
|
+
get ops(): readonly Readonly<api.ISequencedDocumentMessage>[];
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// @internal
|
|
44
|
+
export class FileDocumentServiceFactory implements IDocumentServiceFactory {
|
|
45
|
+
constructor(storage: IDocumentStorageService, deltaStorage: FileDeltaStorageService, deltaConnection: IDocumentDeltaConnection);
|
|
46
|
+
// (undocumented)
|
|
47
|
+
createContainer(createNewSummary: ISummaryTree, resolvedUrl: IResolvedUrl, logger?: ITelemetryBaseLogger, clientIsSummarizer?: boolean): Promise<IDocumentService>;
|
|
48
|
+
createDocumentService(resolvedUrl: IResolvedUrl, logger?: ITelemetryBaseLogger, clientIsSummarizer?: boolean): Promise<IDocumentService>;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// @internal (undocumented)
|
|
52
|
+
export const FileSnapshotWriterClassFactory: <TBase extends ReaderConstructor>(Base: TBase) => {
|
|
53
|
+
new (...args: any[]): {
|
|
54
|
+
blobsWriter: Map<string, ArrayBufferLike>;
|
|
55
|
+
latestWriterTree?: api.ISnapshotTree | undefined;
|
|
56
|
+
docId?: string | undefined;
|
|
57
|
+
reset(): void;
|
|
58
|
+
onSnapshotHandler(snapshot: IFileSnapshot): void;
|
|
59
|
+
readBlob(sha: string): Promise<ArrayBufferLike>;
|
|
60
|
+
getVersions(versionId: string | null, count: number): Promise<api.IVersion[]>;
|
|
61
|
+
getSnapshotTree(version?: api.IVersion): Promise<api.ISnapshotTree | null>;
|
|
62
|
+
uploadSummaryWithContext(summary: api.ISummaryTree, context: ISummaryContext): Promise<string>;
|
|
63
|
+
buildTree(snapshotTree: api.ISnapshotTree): Promise<api.ITree>;
|
|
64
|
+
repositoryUrl: string;
|
|
65
|
+
readonly policies?: IDocumentStorageServicePolicies | undefined;
|
|
66
|
+
createBlob(file: ArrayBufferLike): Promise<api.ICreateBlobResponse>;
|
|
67
|
+
downloadSummary(handle: api.ISummaryHandle): Promise<api.ISummaryTree>;
|
|
68
|
+
readonly disposed?: boolean | undefined;
|
|
69
|
+
dispose?: ((error?: Error | undefined) => void) | undefined;
|
|
70
|
+
};
|
|
71
|
+
} & TBase;
|
|
72
|
+
|
|
73
|
+
// @internal (undocumented)
|
|
74
|
+
export const FileStorageDocumentName = "FileStorageDocId";
|
|
75
|
+
|
|
76
|
+
// @internal
|
|
77
|
+
export class FluidFetchReader extends ReadDocumentStorageServiceBase implements IDocumentStorageService {
|
|
78
|
+
constructor(path: string, versionName?: string | undefined);
|
|
79
|
+
// (undocumented)
|
|
80
|
+
protected docTree: api.ISnapshotTree | null;
|
|
81
|
+
getSnapshotTree(version?: api.IVersion): Promise<api.ISnapshotTree | null>;
|
|
82
|
+
getVersions(versionId: string | null, count: number): Promise<api.IVersion[]>;
|
|
83
|
+
// (undocumented)
|
|
84
|
+
readBlob(sha: string): Promise<ArrayBufferLike>;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
// @internal (undocumented)
|
|
88
|
+
export const FluidFetchReaderFileSnapshotWriter: {
|
|
89
|
+
new (...args: any[]): {
|
|
90
|
+
blobsWriter: Map<string, ArrayBufferLike>;
|
|
91
|
+
latestWriterTree?: api.ISnapshotTree | undefined;
|
|
92
|
+
docId?: string | undefined;
|
|
93
|
+
reset(): void;
|
|
94
|
+
onSnapshotHandler(snapshot: IFileSnapshot): void;
|
|
95
|
+
readBlob(sha: string): Promise<ArrayBufferLike>;
|
|
96
|
+
getVersions(versionId: string | null, count: number): Promise<api.IVersion[]>;
|
|
97
|
+
getSnapshotTree(version?: api.IVersion): Promise<api.ISnapshotTree | null>;
|
|
98
|
+
uploadSummaryWithContext(summary: api.ISummaryTree, context: ISummaryContext): Promise<string>;
|
|
99
|
+
buildTree(snapshotTree: api.ISnapshotTree): Promise<api.ITree>;
|
|
100
|
+
repositoryUrl: string;
|
|
101
|
+
readonly policies?: IDocumentStorageServicePolicies | undefined;
|
|
102
|
+
createBlob(file: ArrayBufferLike): Promise<api.ICreateBlobResponse>;
|
|
103
|
+
downloadSummary(handle: api.ISummaryHandle): Promise<api.ISummaryTree>;
|
|
104
|
+
readonly disposed?: boolean | undefined;
|
|
105
|
+
dispose?: ((error?: Error | undefined) => void) | undefined;
|
|
106
|
+
};
|
|
107
|
+
} & typeof FluidFetchReader;
|
|
108
|
+
|
|
109
|
+
// @internal (undocumented)
|
|
110
|
+
export interface ISnapshotWriterStorage extends IDocumentStorageService {
|
|
111
|
+
// (undocumented)
|
|
112
|
+
onSnapshotHandler(snapshot: IFileSnapshot): void;
|
|
113
|
+
// (undocumented)
|
|
114
|
+
reset(): void;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
// @internal (undocumented)
|
|
118
|
+
export type ReaderConstructor = new (...args: any[]) => IDocumentStorageService;
|
|
119
|
+
|
|
120
|
+
// @internal
|
|
121
|
+
export class Replayer {
|
|
122
|
+
constructor(deltaConnection: ReplayFileDeltaConnection, documentStorageService: FileDeltaStorageService);
|
|
123
|
+
// (undocumented)
|
|
124
|
+
get currentReplayedOp(): number;
|
|
125
|
+
set currentReplayedOp(op: number);
|
|
126
|
+
// (undocumented)
|
|
127
|
+
get ops(): readonly Readonly<ISequencedDocumentMessage>[];
|
|
128
|
+
replay(replayTo: number): number;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
// @internal (undocumented)
|
|
132
|
+
export class ReplayFileDeltaConnection extends TypedEventEmitter<IDocumentDeltaConnectionEvents> implements IDocumentDeltaConnection, IDisposable {
|
|
133
|
+
constructor(details: IConnected, documentDeltaStorageService: FileDeltaStorageService);
|
|
134
|
+
// (undocumented)
|
|
135
|
+
get claims(): ITokenClaims;
|
|
136
|
+
// (undocumented)
|
|
137
|
+
get clientId(): string;
|
|
138
|
+
static create(documentDeltaStorageService: FileDeltaStorageService): Promise<ReplayFileDeltaConnection>;
|
|
139
|
+
// (undocumented)
|
|
140
|
+
details: IConnected;
|
|
141
|
+
// (undocumented)
|
|
142
|
+
dispose(): void;
|
|
143
|
+
// (undocumented)
|
|
144
|
+
get disposed(): boolean;
|
|
145
|
+
// (undocumented)
|
|
146
|
+
get existing(): boolean;
|
|
147
|
+
// (undocumented)
|
|
148
|
+
getReplayer(): Replayer;
|
|
149
|
+
// (undocumented)
|
|
150
|
+
get initialClients(): ISignalClient[];
|
|
151
|
+
// (undocumented)
|
|
152
|
+
get initialMessages(): ISequencedDocumentMessage[];
|
|
153
|
+
// (undocumented)
|
|
154
|
+
get initialSignals(): ISignalMessage[];
|
|
155
|
+
// (undocumented)
|
|
156
|
+
readonly maxMessageSize: number;
|
|
157
|
+
// (undocumented)
|
|
158
|
+
get mode(): ConnectionMode;
|
|
159
|
+
// (undocumented)
|
|
160
|
+
get serviceConfiguration(): IClientConfiguration;
|
|
161
|
+
// (undocumented)
|
|
162
|
+
submit(documentMessages: IDocumentMessage[]): void;
|
|
163
|
+
// (undocumented)
|
|
164
|
+
submitSignal(message: any): Promise<void>;
|
|
165
|
+
// (undocumented)
|
|
166
|
+
get version(): string;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
// (No @packageDocumentation comment for this package)
|
|
170
|
+
|
|
171
|
+
```
|
|
@@ -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,69 @@
|
|
|
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: IDocumentDeltaConnection */
|
|
40
|
+
|
|
41
|
+
/* Excluded from this release type: IDocumentDeltaConnectionEvents */
|
|
42
|
+
|
|
43
|
+
/* Excluded from this release type: IDocumentDeltaStorageService */
|
|
44
|
+
|
|
45
|
+
/* Excluded from this release type: IDocumentService */
|
|
46
|
+
|
|
47
|
+
/* Excluded from this release type: IDocumentServiceFactory */
|
|
48
|
+
|
|
49
|
+
/* Excluded from this release type: IDocumentStorageService */
|
|
50
|
+
|
|
51
|
+
/* Excluded from this release type: IFileSnapshot */
|
|
52
|
+
|
|
53
|
+
/* Excluded from this release type: IResolvedUrl */
|
|
54
|
+
|
|
55
|
+
/* Excluded from this release type: ISnapshotWriterStorage */
|
|
56
|
+
|
|
57
|
+
/* Excluded from this release type: IStream */
|
|
58
|
+
|
|
59
|
+
/* Excluded from this release type: ISummaryContext */
|
|
60
|
+
|
|
61
|
+
/* Excluded from this release type: ReadDocumentStorageServiceBase */
|
|
62
|
+
|
|
63
|
+
/* Excluded from this release type: ReaderConstructor */
|
|
64
|
+
|
|
65
|
+
/* Excluded from this release type: Replayer */
|
|
66
|
+
|
|
67
|
+
/* Excluded from this release type: ReplayFileDeltaConnection */
|
|
68
|
+
|
|
69
|
+
export { }
|
|
@@ -0,0 +1,69 @@
|
|
|
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: IDocumentDeltaConnection */
|
|
40
|
+
|
|
41
|
+
/* Excluded from this release type: IDocumentDeltaConnectionEvents */
|
|
42
|
+
|
|
43
|
+
/* Excluded from this release type: IDocumentDeltaStorageService */
|
|
44
|
+
|
|
45
|
+
/* Excluded from this release type: IDocumentService */
|
|
46
|
+
|
|
47
|
+
/* Excluded from this release type: IDocumentServiceFactory */
|
|
48
|
+
|
|
49
|
+
/* Excluded from this release type: IDocumentStorageService */
|
|
50
|
+
|
|
51
|
+
/* Excluded from this release type: IFileSnapshot */
|
|
52
|
+
|
|
53
|
+
/* Excluded from this release type: IResolvedUrl */
|
|
54
|
+
|
|
55
|
+
/* Excluded from this release type: ISnapshotWriterStorage */
|
|
56
|
+
|
|
57
|
+
/* Excluded from this release type: IStream */
|
|
58
|
+
|
|
59
|
+
/* Excluded from this release type: ISummaryContext */
|
|
60
|
+
|
|
61
|
+
/* Excluded from this release type: ReadDocumentStorageServiceBase */
|
|
62
|
+
|
|
63
|
+
/* Excluded from this release type: ReaderConstructor */
|
|
64
|
+
|
|
65
|
+
/* Excluded from this release type: Replayer */
|
|
66
|
+
|
|
67
|
+
/* Excluded from this release type: ReplayFileDeltaConnection */
|
|
68
|
+
|
|
69
|
+
export { }
|