@fluidframework/file-driver 2.0.0-rc.2.0.2 → 2.0.0-rc.3.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/CHANGELOG.md +23 -0
- package/api-report/file-driver.api.md +14 -14
- package/dist/fileDeltaStorageService.d.ts +1 -1
- package/dist/fileDeltaStorageService.d.ts.map +1 -1
- package/dist/fileDeltaStorageService.js +4 -4
- package/dist/fileDeltaStorageService.js.map +1 -1
- package/dist/fileDocumentDeltaConnection.d.ts +2 -2
- package/dist/fileDocumentDeltaConnection.d.ts.map +1 -1
- package/dist/fileDocumentDeltaConnection.js +1 -1
- package/dist/fileDocumentDeltaConnection.js.map +1 -1
- package/dist/fileDocumentService.d.ts +1 -1
- package/dist/fileDocumentService.d.ts.map +1 -1
- package/dist/fileDocumentService.js +0 -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.map +1 -1
- package/dist/fileDocumentStorageService.d.ts +6 -6
- package/dist/fileDocumentStorageService.d.ts.map +1 -1
- package/dist/fileDocumentStorageService.js +10 -10
- package/dist/fileDocumentStorageService.js.map +1 -1
- package/dist/public.d.ts +12 -0
- package/internal.d.ts +11 -0
- package/lib/fileDeltaStorageService.d.ts +1 -1
- package/lib/fileDeltaStorageService.d.ts.map +1 -1
- package/lib/fileDeltaStorageService.js +2 -2
- package/lib/fileDeltaStorageService.js.map +1 -1
- package/lib/fileDocumentDeltaConnection.d.ts +2 -2
- package/lib/fileDocumentDeltaConnection.d.ts.map +1 -1
- package/lib/fileDocumentDeltaConnection.js +1 -1
- package/lib/fileDocumentDeltaConnection.js.map +1 -1
- package/lib/fileDocumentService.d.ts +1 -1
- package/lib/fileDocumentService.d.ts.map +1 -1
- package/lib/fileDocumentService.js +0 -1
- package/lib/fileDocumentService.js.map +1 -1
- package/lib/fileDocumentServiceFactory.d.ts +1 -1
- package/lib/fileDocumentServiceFactory.d.ts.map +1 -1
- package/lib/fileDocumentServiceFactory.js.map +1 -1
- package/lib/fileDocumentStorageService.d.ts +6 -6
- package/lib/fileDocumentStorageService.d.ts.map +1 -1
- package/lib/fileDocumentStorageService.js +3 -3
- package/lib/fileDocumentStorageService.js.map +1 -1
- package/lib/public.d.ts +12 -0
- package/package.json +26 -43
- package/src/fileDeltaStorageService.ts +4 -3
- package/src/fileDocumentDeltaConnection.ts +3 -2
- package/src/fileDocumentService.ts +3 -2
- package/src/fileDocumentServiceFactory.ts +3 -2
- package/src/fileDocumentStorageService.ts +14 -4
- package/api-extractor-cjs.json +0 -8
- package/dist/file-driver-alpha.d.ts +0 -53
- package/dist/file-driver-beta.d.ts +0 -71
- package/dist/file-driver-public.d.ts +0 -71
- package/dist/file-driver-untrimmed.d.ts +0 -211
- package/lib/file-driver-alpha.d.ts +0 -53
- package/lib/file-driver-beta.d.ts +0 -71
- package/lib/file-driver-public.d.ts +0 -71
- package/lib/file-driver-untrimmed.d.ts +0 -211
- package/lib/test/types/validateFileDriverPrevious.generated.d.ts +0 -2
- package/lib/test/types/validateFileDriverPrevious.generated.d.ts.map +0 -1
- package/lib/test/types/validateFileDriverPrevious.generated.js +0 -26
- package/lib/test/types/validateFileDriverPrevious.generated.js.map +0 -1
- /package/{dist → lib}/tsdoc-metadata.json +0 -0
|
@@ -1,71 +0,0 @@
|
|
|
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 { }
|
|
@@ -1,71 +0,0 @@
|
|
|
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 { }
|
|
@@ -1,211 +0,0 @@
|
|
|
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
|
-
/**
|
|
30
|
-
* Provides access to the underlying delta storage on the local file storage for file driver.
|
|
31
|
-
* @internal
|
|
32
|
-
*/
|
|
33
|
-
export declare class FileDeltaStorageService implements IDocumentDeltaStorageService {
|
|
34
|
-
private readonly path;
|
|
35
|
-
private readonly messages;
|
|
36
|
-
private lastOps;
|
|
37
|
-
constructor(path: string);
|
|
38
|
-
fetchMessages(from: number, to: number | undefined, abortSignal?: AbortSignal, cachedOnly?: boolean): IStream<api.ISequencedDocumentMessage[]>;
|
|
39
|
-
get ops(): readonly Readonly<api.ISequencedDocumentMessage>[];
|
|
40
|
-
/**
|
|
41
|
-
* Retrieve ops within the exclusive sequence number range.
|
|
42
|
-
*
|
|
43
|
-
* @param from - First op to be fetched.
|
|
44
|
-
* @param to - Last op to be fetched. This is exclusive.
|
|
45
|
-
*/
|
|
46
|
-
getFromWebSocket(from: number, to: number): api.ISequencedDocumentMessage[];
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* Factory for creating the file document service. Use this if you want to
|
|
51
|
-
* use the local file storage as underlying storage.
|
|
52
|
-
* @internal
|
|
53
|
-
*/
|
|
54
|
-
export declare class FileDocumentServiceFactory implements IDocumentServiceFactory {
|
|
55
|
-
private readonly storage;
|
|
56
|
-
private readonly deltaStorage;
|
|
57
|
-
private readonly deltaConnection;
|
|
58
|
-
constructor(storage: IDocumentStorageService, deltaStorage: FileDeltaStorageService, deltaConnection: IDocumentDeltaConnection);
|
|
59
|
-
/**
|
|
60
|
-
* Creates the file document service if the path exists.
|
|
61
|
-
*
|
|
62
|
-
* @param fileURL - Path of directory containing ops/snapshots.
|
|
63
|
-
* @returns file document service.
|
|
64
|
-
*/
|
|
65
|
-
createDocumentService(resolvedUrl: IResolvedUrl, logger?: ITelemetryBaseLogger, clientIsSummarizer?: boolean): Promise<IDocumentService>;
|
|
66
|
-
createContainer(createNewSummary: ISummaryTree, resolvedUrl: IResolvedUrl, logger?: ITelemetryBaseLogger, clientIsSummarizer?: boolean): Promise<IDocumentService>;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
/**
|
|
70
|
-
* @internal
|
|
71
|
-
*/
|
|
72
|
-
export declare const FileSnapshotWriterClassFactory: <TBase extends ReaderConstructor>(Base: TBase) => {
|
|
73
|
-
new (...args: any[]): {
|
|
74
|
-
blobsWriter: Map<string, ArrayBufferLike>;
|
|
75
|
-
latestWriterTree?: api.ISnapshotTree | undefined;
|
|
76
|
-
docId?: string | undefined;
|
|
77
|
-
reset(): void;
|
|
78
|
-
onSnapshotHandler(snapshot: IFileSnapshot): void;
|
|
79
|
-
readBlob(sha: string): Promise<ArrayBufferLike>;
|
|
80
|
-
getVersions(versionId: string | null, count: number): Promise<api.IVersion[]>;
|
|
81
|
-
getSnapshotTree(version?: api.IVersion): Promise<api.ISnapshotTree | null>;
|
|
82
|
-
uploadSummaryWithContext(summary: api.ISummaryTree, context: ISummaryContext): Promise<string>;
|
|
83
|
-
buildTree(snapshotTree: api.ISnapshotTree): Promise<api.ITree>;
|
|
84
|
-
readonly policies?: IDocumentStorageServicePolicies | undefined;
|
|
85
|
-
getSnapshot?(snapshotFetchOptions?: ISnapshotFetchOptions | undefined): Promise<ISnapshot>;
|
|
86
|
-
createBlob(file: ArrayBufferLike): Promise<api.ICreateBlobResponse>;
|
|
87
|
-
downloadSummary(handle: api.ISummaryHandle): Promise<api.ISummaryTree>;
|
|
88
|
-
readonly disposed?: boolean | undefined;
|
|
89
|
-
dispose?: ((error?: Error | undefined) => void) | undefined;
|
|
90
|
-
};
|
|
91
|
-
} & TBase;
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
* @internal
|
|
95
|
-
*/
|
|
96
|
-
export declare const FileStorageDocumentName = "FileStorageDocId";
|
|
97
|
-
|
|
98
|
-
/**
|
|
99
|
-
* Document storage service for the file driver.
|
|
100
|
-
* @internal
|
|
101
|
-
*/
|
|
102
|
-
export declare class FluidFetchReader extends ReadDocumentStorageServiceBase implements IDocumentStorageService {
|
|
103
|
-
private readonly path;
|
|
104
|
-
private readonly versionName?;
|
|
105
|
-
protected docTree: api.ISnapshotTree | null;
|
|
106
|
-
constructor(path: string, versionName?: string | undefined);
|
|
107
|
-
/**
|
|
108
|
-
* Read the file and returns the snapshot tree.
|
|
109
|
-
* @param version - The version contains the path of the file which contains the snapshot tree.
|
|
110
|
-
*/
|
|
111
|
-
getSnapshotTree(version?: api.IVersion): Promise<api.ISnapshotTree | null>;
|
|
112
|
-
/**
|
|
113
|
-
* Gets the path of the snapshot tree to be read.
|
|
114
|
-
* @param versionId - version ID.
|
|
115
|
-
* @param count - Number of versions to be returned.
|
|
116
|
-
*/
|
|
117
|
-
getVersions(versionId: string | null, count: number): Promise<api.IVersion[]>;
|
|
118
|
-
readBlob(sha: string): Promise<ArrayBufferLike>;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
/**
|
|
122
|
-
* @internal
|
|
123
|
-
*/
|
|
124
|
-
export declare const FluidFetchReaderFileSnapshotWriter: {
|
|
125
|
-
new (...args: any[]): {
|
|
126
|
-
blobsWriter: Map<string, ArrayBufferLike>;
|
|
127
|
-
latestWriterTree?: api.ISnapshotTree | undefined;
|
|
128
|
-
docId?: string | undefined;
|
|
129
|
-
reset(): void;
|
|
130
|
-
onSnapshotHandler(snapshot: IFileSnapshot): void;
|
|
131
|
-
readBlob(sha: string): Promise<ArrayBufferLike>;
|
|
132
|
-
getVersions(versionId: string | null, count: number): Promise<api.IVersion[]>;
|
|
133
|
-
getSnapshotTree(version?: api.IVersion): Promise<api.ISnapshotTree | null>;
|
|
134
|
-
uploadSummaryWithContext(summary: api.ISummaryTree, context: ISummaryContext): Promise<string>;
|
|
135
|
-
buildTree(snapshotTree: api.ISnapshotTree): Promise<api.ITree>;
|
|
136
|
-
readonly policies?: IDocumentStorageServicePolicies | undefined;
|
|
137
|
-
getSnapshot?(snapshotFetchOptions?: ISnapshotFetchOptions | undefined): Promise<ISnapshot>;
|
|
138
|
-
createBlob(file: ArrayBufferLike): Promise<api.ICreateBlobResponse>;
|
|
139
|
-
downloadSummary(handle: api.ISummaryHandle): Promise<api.ISummaryTree>;
|
|
140
|
-
readonly disposed?: boolean | undefined;
|
|
141
|
-
dispose?: ((error?: Error | undefined) => void) | undefined;
|
|
142
|
-
};
|
|
143
|
-
} & typeof FluidFetchReader;
|
|
144
|
-
|
|
145
|
-
/**
|
|
146
|
-
* @internal
|
|
147
|
-
*/
|
|
148
|
-
export declare interface ISnapshotWriterStorage extends IDocumentStorageService {
|
|
149
|
-
onSnapshotHandler(snapshot: IFileSnapshot): void;
|
|
150
|
-
reset(): void;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
/**
|
|
154
|
-
* @internal
|
|
155
|
-
*/
|
|
156
|
-
export declare type ReaderConstructor = new (...args: any[]) => IDocumentStorageService;
|
|
157
|
-
|
|
158
|
-
/**
|
|
159
|
-
* Replay service used to play ops using the delta connection.
|
|
160
|
-
* @internal
|
|
161
|
-
*/
|
|
162
|
-
export declare class Replayer {
|
|
163
|
-
private readonly deltaConnection;
|
|
164
|
-
private readonly documentStorageService;
|
|
165
|
-
private currentReplayOp;
|
|
166
|
-
constructor(deltaConnection: ReplayFileDeltaConnection, documentStorageService: FileDeltaStorageService);
|
|
167
|
-
get currentReplayedOp(): number;
|
|
168
|
-
set currentReplayedOp(op: number);
|
|
169
|
-
get ops(): readonly Readonly<ISequencedDocumentMessage>[];
|
|
170
|
-
/**
|
|
171
|
-
* Replay the ops upto a certain number.
|
|
172
|
-
* @param replayTo - The last op number to be replayed.
|
|
173
|
-
*/
|
|
174
|
-
replay(replayTo: number): number;
|
|
175
|
-
private isDoneFetch;
|
|
176
|
-
private emit;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
/**
|
|
180
|
-
* @internal
|
|
181
|
-
*/
|
|
182
|
-
export declare class ReplayFileDeltaConnection extends TypedEventEmitter<IDocumentDeltaConnectionEvents> implements IDocumentDeltaConnection, IDisposable {
|
|
183
|
-
details: IConnected;
|
|
184
|
-
/**
|
|
185
|
-
* Mimic the delta connection to replay ops on it.
|
|
186
|
-
*
|
|
187
|
-
* @param documentDeltaStorageService - The delta storage service to get ops from.
|
|
188
|
-
* @returns Document delta connection.
|
|
189
|
-
*/
|
|
190
|
-
static create(documentDeltaStorageService: FileDeltaStorageService): Promise<ReplayFileDeltaConnection>;
|
|
191
|
-
readonly maxMessageSize: number;
|
|
192
|
-
private readonly replayer;
|
|
193
|
-
constructor(details: IConnected, documentDeltaStorageService: FileDeltaStorageService);
|
|
194
|
-
getReplayer(): Replayer;
|
|
195
|
-
get clientId(): string;
|
|
196
|
-
get mode(): ConnectionMode;
|
|
197
|
-
get claims(): ITokenClaims;
|
|
198
|
-
get existing(): boolean;
|
|
199
|
-
get version(): string;
|
|
200
|
-
get initialMessages(): ISequencedDocumentMessage[];
|
|
201
|
-
get initialSignals(): ISignalMessage[];
|
|
202
|
-
get initialClients(): ISignalClient[];
|
|
203
|
-
get serviceConfiguration(): IClientConfiguration;
|
|
204
|
-
submit(documentMessages: IDocumentMessage[]): void;
|
|
205
|
-
submitSignal(message: any): Promise<void>;
|
|
206
|
-
private _disposed;
|
|
207
|
-
get disposed(): boolean;
|
|
208
|
-
dispose(): void;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
export { }
|
|
@@ -1,53 +0,0 @@
|
|
|
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 { }
|
|
@@ -1,71 +0,0 @@
|
|
|
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 { }
|
|
@@ -1,71 +0,0 @@
|
|
|
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 { }
|