@fluidframework/local-driver 2.0.0-internal.7.3.0 → 2.0.0-internal.7.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/api-extractor-lint.json +13 -0
- package/api-extractor.json +3 -3
- package/api-report/local-driver.api.md +9 -9
- package/dist/local-driver-alpha.d.ts +108 -0
- package/dist/local-driver-beta.d.ts +81 -0
- package/dist/local-driver-public.d.ts +81 -0
- package/dist/local-driver-untrimmed.d.ts +224 -0
- package/dist/localDeltaStorageService.cjs +1 -0
- package/dist/localDeltaStorageService.cjs.map +1 -1
- package/dist/localDeltaStorageService.d.ts +1 -0
- package/dist/localDeltaStorageService.d.ts.map +1 -1
- package/dist/localDocumentDeltaConnection.cjs +1 -0
- package/dist/localDocumentDeltaConnection.cjs.map +1 -1
- package/dist/localDocumentDeltaConnection.d.ts +1 -0
- package/dist/localDocumentDeltaConnection.d.ts.map +1 -1
- package/dist/localDocumentService.cjs +2 -0
- package/dist/localDocumentService.cjs.map +1 -1
- package/dist/localDocumentService.d.ts +2 -0
- package/dist/localDocumentService.d.ts.map +1 -1
- package/dist/localDocumentServiceFactory.cjs +1 -0
- package/dist/localDocumentServiceFactory.cjs.map +1 -1
- package/dist/localDocumentServiceFactory.d.ts +1 -0
- package/dist/localDocumentServiceFactory.d.ts.map +1 -1
- package/dist/localDocumentStorageService.cjs +3 -0
- package/dist/localDocumentStorageService.cjs.map +1 -1
- package/dist/localDocumentStorageService.d.ts +3 -0
- package/dist/localDocumentStorageService.d.ts.map +1 -1
- package/dist/localResolver.cjs +4 -0
- package/dist/localResolver.cjs.map +1 -1
- package/dist/localResolver.d.ts +4 -0
- package/dist/localResolver.d.ts.map +1 -1
- package/dist/localSessionStorageDb.cjs +1 -0
- package/dist/localSessionStorageDb.cjs.map +1 -1
- package/dist/localSessionStorageDb.d.ts +1 -0
- package/dist/localSessionStorageDb.d.ts.map +1 -1
- package/lib/auth.d.ts.map +1 -1
- package/lib/index.d.ts +7 -7
- package/lib/index.d.ts.map +1 -1
- package/lib/local-driver-alpha.d.ts +108 -0
- package/lib/local-driver-beta.d.ts +81 -0
- package/lib/local-driver-public.d.ts +81 -0
- package/lib/local-driver-untrimmed.d.ts +224 -0
- package/lib/localCreateDocument.d.ts.map +1 -1
- package/lib/localDeltaStorageService.d.ts +1 -0
- package/lib/localDeltaStorageService.d.ts.map +1 -1
- package/lib/localDeltaStorageService.mjs +1 -0
- package/lib/localDeltaStorageService.mjs.map +1 -1
- package/lib/localDocumentDeltaConnection.d.ts +1 -0
- package/lib/localDocumentDeltaConnection.d.ts.map +1 -1
- package/lib/localDocumentDeltaConnection.mjs +1 -0
- package/lib/localDocumentDeltaConnection.mjs.map +1 -1
- package/lib/localDocumentService.d.ts +3 -1
- package/lib/localDocumentService.d.ts.map +1 -1
- package/lib/localDocumentService.mjs +2 -0
- package/lib/localDocumentService.mjs.map +1 -1
- package/lib/localDocumentServiceFactory.d.ts +1 -0
- package/lib/localDocumentServiceFactory.d.ts.map +1 -1
- package/lib/localDocumentServiceFactory.mjs +1 -0
- package/lib/localDocumentServiceFactory.mjs.map +1 -1
- package/lib/localDocumentStorageService.d.ts +3 -0
- package/lib/localDocumentStorageService.d.ts.map +1 -1
- package/lib/localDocumentStorageService.mjs +3 -0
- package/lib/localDocumentStorageService.mjs.map +1 -1
- package/lib/localResolver.d.ts +4 -0
- package/lib/localResolver.d.ts.map +1 -1
- package/lib/localResolver.mjs +4 -0
- package/lib/localResolver.mjs.map +1 -1
- package/lib/localSessionStorageDb.d.ts +1 -0
- package/lib/localSessionStorageDb.d.ts.map +1 -1
- package/lib/localSessionStorageDb.mjs +1 -0
- package/lib/localSessionStorageDb.mjs.map +1 -1
- package/package.json +34 -27
- package/src/localDeltaStorageService.ts +1 -0
- package/src/localDocumentDeltaConnection.ts +1 -0
- package/src/localDocumentService.ts +2 -0
- package/src/localDocumentServiceFactory.ts +1 -0
- package/src/localDocumentStorageService.ts +3 -0
- package/src/localResolver.ts +4 -0
- package/src/localSessionStorageDb.ts +1 -0
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { DocumentDeltaConnection } from '@fluidframework/driver-base';
|
|
2
|
+
import { GitManager } from '@fluidframework/server-services-client';
|
|
3
|
+
import { IClient } from '@fluidframework/protocol-definitions';
|
|
4
|
+
import { ICreateBlobResponse } from '@fluidframework/protocol-definitions';
|
|
5
|
+
import { IDatabaseManager } from '@fluidframework/server-services-core';
|
|
6
|
+
import { IDb } from '@fluidframework/server-services-core';
|
|
7
|
+
import { IDocumentDeltaConnection } 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 { IDocumentServicePolicies } from '@fluidframework/driver-definitions';
|
|
13
|
+
import { IDocumentStorageService } from '@fluidframework/driver-definitions';
|
|
14
|
+
import { IDocumentStorageServicePolicies } from '@fluidframework/driver-definitions';
|
|
15
|
+
import { ILocalDeltaConnectionServer } from '@fluidframework/server-local-server';
|
|
16
|
+
import { IRequest } from '@fluidframework/core-interfaces';
|
|
17
|
+
import { IResolvedUrl } from '@fluidframework/driver-definitions';
|
|
18
|
+
import { ISequencedDocumentMessage } from '@fluidframework/protocol-definitions';
|
|
19
|
+
import { ISnapshotTreeEx } from '@fluidframework/protocol-definitions';
|
|
20
|
+
import { IStream } from '@fluidframework/driver-definitions';
|
|
21
|
+
import { ISummaryContext } from '@fluidframework/driver-definitions';
|
|
22
|
+
import { ISummaryHandle } from '@fluidframework/protocol-definitions';
|
|
23
|
+
import { ISummaryTree } from '@fluidframework/protocol-definitions';
|
|
24
|
+
import { ITelemetryBaseLogger } from '@fluidframework/core-interfaces';
|
|
25
|
+
import { ITestDbFactory } from '@fluidframework/server-test-utils';
|
|
26
|
+
import { ITokenProvider } from '@fluidframework/routerlicious-driver';
|
|
27
|
+
import { IUrlResolver } from '@fluidframework/driver-definitions';
|
|
28
|
+
import { IVersion } from '@fluidframework/protocol-definitions';
|
|
29
|
+
import { IWebSocketServer } from '@fluidframework/server-services-core';
|
|
30
|
+
import { NackErrorType } from '@fluidframework/protocol-definitions';
|
|
31
|
+
import type { Socket } from 'socket.io-client';
|
|
32
|
+
|
|
33
|
+
/* Excluded from this release type: createLocalDocumentService */
|
|
34
|
+
|
|
35
|
+
/* Excluded from this release type: createLocalResolverCreateNewRequest */
|
|
36
|
+
|
|
37
|
+
/* Excluded from this release type: DocumentDeltaConnection */
|
|
38
|
+
|
|
39
|
+
/* Excluded from this release type: IDocumentDeltaConnection */
|
|
40
|
+
|
|
41
|
+
/* Excluded from this release type: IDocumentDeltaStorageService */
|
|
42
|
+
|
|
43
|
+
/* Excluded from this release type: IDocumentService */
|
|
44
|
+
|
|
45
|
+
/* Excluded from this release type: IDocumentServiceFactory */
|
|
46
|
+
|
|
47
|
+
/* Excluded from this release type: IDocumentServicePolicies */
|
|
48
|
+
|
|
49
|
+
/* Excluded from this release type: IDocumentStorageService */
|
|
50
|
+
|
|
51
|
+
/* Excluded from this release type: IDocumentStorageServicePolicies */
|
|
52
|
+
|
|
53
|
+
/* Excluded from this release type: IRequest */
|
|
54
|
+
|
|
55
|
+
/* Excluded from this release type: IResolvedUrl */
|
|
56
|
+
|
|
57
|
+
/* Excluded from this release type: IStream */
|
|
58
|
+
|
|
59
|
+
/* Excluded from this release type: ISummaryContext */
|
|
60
|
+
|
|
61
|
+
/* Excluded from this release type: ITelemetryBaseLogger */
|
|
62
|
+
|
|
63
|
+
/* Excluded from this release type: ITokenProvider */
|
|
64
|
+
|
|
65
|
+
/* Excluded from this release type: IUrlResolver */
|
|
66
|
+
|
|
67
|
+
/* Excluded from this release type: LocalDeltaStorageService */
|
|
68
|
+
|
|
69
|
+
/* Excluded from this release type: LocalDocumentDeltaConnection */
|
|
70
|
+
|
|
71
|
+
/* Excluded from this release type: LocalDocumentService */
|
|
72
|
+
|
|
73
|
+
/* Excluded from this release type: LocalDocumentServiceFactory */
|
|
74
|
+
|
|
75
|
+
/* Excluded from this release type: LocalDocumentStorageService */
|
|
76
|
+
|
|
77
|
+
/* Excluded from this release type: LocalResolver */
|
|
78
|
+
|
|
79
|
+
/* Excluded from this release type: LocalSessionStorageDbFactory */
|
|
80
|
+
|
|
81
|
+
export { }
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { DocumentDeltaConnection } from '@fluidframework/driver-base';
|
|
2
|
+
import { GitManager } from '@fluidframework/server-services-client';
|
|
3
|
+
import { IClient } from '@fluidframework/protocol-definitions';
|
|
4
|
+
import { ICreateBlobResponse } from '@fluidframework/protocol-definitions';
|
|
5
|
+
import { IDatabaseManager } from '@fluidframework/server-services-core';
|
|
6
|
+
import { IDb } from '@fluidframework/server-services-core';
|
|
7
|
+
import { IDocumentDeltaConnection } 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 { IDocumentServicePolicies } from '@fluidframework/driver-definitions';
|
|
13
|
+
import { IDocumentStorageService } from '@fluidframework/driver-definitions';
|
|
14
|
+
import { IDocumentStorageServicePolicies } from '@fluidframework/driver-definitions';
|
|
15
|
+
import { ILocalDeltaConnectionServer } from '@fluidframework/server-local-server';
|
|
16
|
+
import { IRequest } from '@fluidframework/core-interfaces';
|
|
17
|
+
import { IResolvedUrl } from '@fluidframework/driver-definitions';
|
|
18
|
+
import { ISequencedDocumentMessage } from '@fluidframework/protocol-definitions';
|
|
19
|
+
import { ISnapshotTreeEx } from '@fluidframework/protocol-definitions';
|
|
20
|
+
import { IStream } from '@fluidframework/driver-definitions';
|
|
21
|
+
import { ISummaryContext } from '@fluidframework/driver-definitions';
|
|
22
|
+
import { ISummaryHandle } from '@fluidframework/protocol-definitions';
|
|
23
|
+
import { ISummaryTree } from '@fluidframework/protocol-definitions';
|
|
24
|
+
import { ITelemetryBaseLogger } from '@fluidframework/core-interfaces';
|
|
25
|
+
import { ITestDbFactory } from '@fluidframework/server-test-utils';
|
|
26
|
+
import { ITokenProvider } from '@fluidframework/routerlicious-driver';
|
|
27
|
+
import { IUrlResolver } from '@fluidframework/driver-definitions';
|
|
28
|
+
import { IVersion } from '@fluidframework/protocol-definitions';
|
|
29
|
+
import { IWebSocketServer } from '@fluidframework/server-services-core';
|
|
30
|
+
import { NackErrorType } from '@fluidframework/protocol-definitions';
|
|
31
|
+
import type { Socket } from 'socket.io-client';
|
|
32
|
+
|
|
33
|
+
/* Excluded from this release type: createLocalDocumentService */
|
|
34
|
+
|
|
35
|
+
/* Excluded from this release type: createLocalResolverCreateNewRequest */
|
|
36
|
+
|
|
37
|
+
/* Excluded from this release type: DocumentDeltaConnection */
|
|
38
|
+
|
|
39
|
+
/* Excluded from this release type: IDocumentDeltaConnection */
|
|
40
|
+
|
|
41
|
+
/* Excluded from this release type: IDocumentDeltaStorageService */
|
|
42
|
+
|
|
43
|
+
/* Excluded from this release type: IDocumentService */
|
|
44
|
+
|
|
45
|
+
/* Excluded from this release type: IDocumentServiceFactory */
|
|
46
|
+
|
|
47
|
+
/* Excluded from this release type: IDocumentServicePolicies */
|
|
48
|
+
|
|
49
|
+
/* Excluded from this release type: IDocumentStorageService */
|
|
50
|
+
|
|
51
|
+
/* Excluded from this release type: IDocumentStorageServicePolicies */
|
|
52
|
+
|
|
53
|
+
/* Excluded from this release type: IRequest */
|
|
54
|
+
|
|
55
|
+
/* Excluded from this release type: IResolvedUrl */
|
|
56
|
+
|
|
57
|
+
/* Excluded from this release type: IStream */
|
|
58
|
+
|
|
59
|
+
/* Excluded from this release type: ISummaryContext */
|
|
60
|
+
|
|
61
|
+
/* Excluded from this release type: ITelemetryBaseLogger */
|
|
62
|
+
|
|
63
|
+
/* Excluded from this release type: ITokenProvider */
|
|
64
|
+
|
|
65
|
+
/* Excluded from this release type: IUrlResolver */
|
|
66
|
+
|
|
67
|
+
/* Excluded from this release type: LocalDeltaStorageService */
|
|
68
|
+
|
|
69
|
+
/* Excluded from this release type: LocalDocumentDeltaConnection */
|
|
70
|
+
|
|
71
|
+
/* Excluded from this release type: LocalDocumentService */
|
|
72
|
+
|
|
73
|
+
/* Excluded from this release type: LocalDocumentServiceFactory */
|
|
74
|
+
|
|
75
|
+
/* Excluded from this release type: LocalDocumentStorageService */
|
|
76
|
+
|
|
77
|
+
/* Excluded from this release type: LocalResolver */
|
|
78
|
+
|
|
79
|
+
/* Excluded from this release type: LocalSessionStorageDbFactory */
|
|
80
|
+
|
|
81
|
+
export { }
|
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
import { DocumentDeltaConnection } from '@fluidframework/driver-base';
|
|
2
|
+
import { GitManager } from '@fluidframework/server-services-client';
|
|
3
|
+
import { IClient } from '@fluidframework/protocol-definitions';
|
|
4
|
+
import { ICreateBlobResponse } from '@fluidframework/protocol-definitions';
|
|
5
|
+
import { IDatabaseManager } from '@fluidframework/server-services-core';
|
|
6
|
+
import { IDb } from '@fluidframework/server-services-core';
|
|
7
|
+
import { IDocumentDeltaConnection } 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 { IDocumentServicePolicies } from '@fluidframework/driver-definitions';
|
|
13
|
+
import { IDocumentStorageService } from '@fluidframework/driver-definitions';
|
|
14
|
+
import { IDocumentStorageServicePolicies } from '@fluidframework/driver-definitions';
|
|
15
|
+
import { ILocalDeltaConnectionServer } from '@fluidframework/server-local-server';
|
|
16
|
+
import { IRequest } from '@fluidframework/core-interfaces';
|
|
17
|
+
import { IResolvedUrl } from '@fluidframework/driver-definitions';
|
|
18
|
+
import { ISequencedDocumentMessage } from '@fluidframework/protocol-definitions';
|
|
19
|
+
import { ISnapshotTreeEx } from '@fluidframework/protocol-definitions';
|
|
20
|
+
import { IStream } from '@fluidframework/driver-definitions';
|
|
21
|
+
import { ISummaryContext } from '@fluidframework/driver-definitions';
|
|
22
|
+
import { ISummaryHandle } from '@fluidframework/protocol-definitions';
|
|
23
|
+
import { ISummaryTree } from '@fluidframework/protocol-definitions';
|
|
24
|
+
import { ITelemetryBaseLogger } from '@fluidframework/core-interfaces';
|
|
25
|
+
import { ITestDbFactory } from '@fluidframework/server-test-utils';
|
|
26
|
+
import { ITokenProvider } from '@fluidframework/routerlicious-driver';
|
|
27
|
+
import { IUrlResolver } from '@fluidframework/driver-definitions';
|
|
28
|
+
import { IVersion } from '@fluidframework/protocol-definitions';
|
|
29
|
+
import { IWebSocketServer } from '@fluidframework/server-services-core';
|
|
30
|
+
import { NackErrorType } from '@fluidframework/protocol-definitions';
|
|
31
|
+
import type { Socket } from 'socket.io-client';
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Creates and returns a document service for local use.
|
|
35
|
+
* @param localDeltaConnectionServer - delta connection server for ops
|
|
36
|
+
* @param tokenProvider - token provider with a single token
|
|
37
|
+
* @param tenantId - ID of tenant
|
|
38
|
+
* @param documentId - ID of document
|
|
39
|
+
* @internal
|
|
40
|
+
*/
|
|
41
|
+
export declare function createLocalDocumentService(resolvedUrl: IResolvedUrl, localDeltaConnectionServer: ILocalDeltaConnectionServer, tokenProvider: ITokenProvider, tenantId: string, documentId: string, documentDeltaConnectionsMap: Map<string, LocalDocumentDeltaConnection>, policies?: IDocumentServicePolicies, innerDocumentService?: IDocumentService, logger?: ITelemetryBaseLogger): IDocumentService;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* @alpha
|
|
45
|
+
*/
|
|
46
|
+
export declare function createLocalResolverCreateNewRequest(documentId: string): IRequest;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Provides access to the underlying delta storage on the server for local driver.
|
|
50
|
+
* @internal
|
|
51
|
+
*/
|
|
52
|
+
export declare class LocalDeltaStorageService implements IDocumentDeltaStorageService {
|
|
53
|
+
private readonly tenantId;
|
|
54
|
+
private readonly id;
|
|
55
|
+
private readonly databaseManager;
|
|
56
|
+
constructor(tenantId: string, id: string, databaseManager: IDatabaseManager);
|
|
57
|
+
fetchMessages(from: number, to: number | undefined, abortSignal?: AbortSignal, cachedOnly?: boolean): IStream<ISequencedDocumentMessage[]>;
|
|
58
|
+
private getCore;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Represents a connection to a stream of delta updates
|
|
63
|
+
* @internal
|
|
64
|
+
*/
|
|
65
|
+
export declare class LocalDocumentDeltaConnection extends DocumentDeltaConnection {
|
|
66
|
+
/**
|
|
67
|
+
* Create a LocalDocumentDeltaConnection
|
|
68
|
+
* Handle initial messages, contents or signals if they were in queue
|
|
69
|
+
*
|
|
70
|
+
* @param tenantId - the ID of the tenant
|
|
71
|
+
* @param id - document ID
|
|
72
|
+
* @param token - authorization token for storage service
|
|
73
|
+
* @param client - information about the client
|
|
74
|
+
* @param webSocketServer - web socket server to create connection
|
|
75
|
+
*/
|
|
76
|
+
static create(tenantId: string, id: string, token: string, client: IClient, webSocketServer: IWebSocketServer, timeoutMs?: number, logger?: ITelemetryBaseLogger): Promise<LocalDocumentDeltaConnection>;
|
|
77
|
+
constructor(socket: Socket, documentId: string, logger?: ITelemetryBaseLogger);
|
|
78
|
+
/**
|
|
79
|
+
* Submits a new delta operation to the server
|
|
80
|
+
*/
|
|
81
|
+
submit(messages: IDocumentMessage[]): void;
|
|
82
|
+
/**
|
|
83
|
+
* Submits a new signal to the server
|
|
84
|
+
*/
|
|
85
|
+
submitSignal(message: any): void;
|
|
86
|
+
/**
|
|
87
|
+
* Send a "disconnect" message on the socket.
|
|
88
|
+
* @param disconnectReason - The reason of the disconnection.
|
|
89
|
+
*/
|
|
90
|
+
disconnectClient(disconnectReason: string): void;
|
|
91
|
+
/**
|
|
92
|
+
* * Sends a "nack" message on the socket.
|
|
93
|
+
* @param code - An error code number that represents the error. It will be a valid HTTP error code.
|
|
94
|
+
* @param type - Type of the Nack.
|
|
95
|
+
* @param message - A message about the nack for debugging/logging/telemetry purposes.
|
|
96
|
+
*/
|
|
97
|
+
nackClient(code: number | undefined, type: NackErrorType | undefined, message: any): void;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Basic implementation of a document service for local use.
|
|
102
|
+
* @internal
|
|
103
|
+
*/
|
|
104
|
+
export declare class LocalDocumentService implements IDocumentService {
|
|
105
|
+
readonly resolvedUrl: IResolvedUrl;
|
|
106
|
+
private readonly localDeltaConnectionServer;
|
|
107
|
+
private readonly tokenProvider;
|
|
108
|
+
private readonly tenantId;
|
|
109
|
+
private readonly documentId;
|
|
110
|
+
private readonly documentDeltaConnectionsMap;
|
|
111
|
+
readonly policies: IDocumentServicePolicies;
|
|
112
|
+
private readonly innerDocumentService?;
|
|
113
|
+
private readonly logger?;
|
|
114
|
+
/**
|
|
115
|
+
* @param localDeltaConnectionServer - delta connection server for ops
|
|
116
|
+
* @param tokenProvider - token provider
|
|
117
|
+
* @param tenantId - ID of tenant
|
|
118
|
+
* @param documentId - ID of document
|
|
119
|
+
*/
|
|
120
|
+
constructor(resolvedUrl: IResolvedUrl, localDeltaConnectionServer: ILocalDeltaConnectionServer, tokenProvider: ITokenProvider, tenantId: string, documentId: string, documentDeltaConnectionsMap: Map<string, LocalDocumentDeltaConnection>, policies?: IDocumentServicePolicies, innerDocumentService?: IDocumentService | undefined, logger?: ITelemetryBaseLogger | undefined);
|
|
121
|
+
dispose(): void;
|
|
122
|
+
/**
|
|
123
|
+
* Creates and returns a document storage service for local use.
|
|
124
|
+
*/
|
|
125
|
+
connectToStorage(): Promise<IDocumentStorageService>;
|
|
126
|
+
/**
|
|
127
|
+
* Creates and returns a delta storage service for local use.
|
|
128
|
+
*/
|
|
129
|
+
connectToDeltaStorage(): Promise<IDocumentDeltaStorageService>;
|
|
130
|
+
/**
|
|
131
|
+
* Creates and returns a delta stream for local use.
|
|
132
|
+
* @param client - client data
|
|
133
|
+
*/
|
|
134
|
+
connectToDeltaStream(client: IClient): Promise<IDocumentDeltaConnection>;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Implementation of document service factory for local use.
|
|
139
|
+
* @alpha
|
|
140
|
+
*/
|
|
141
|
+
export declare class LocalDocumentServiceFactory implements IDocumentServiceFactory {
|
|
142
|
+
private readonly localDeltaConnectionServer;
|
|
143
|
+
private readonly policies?;
|
|
144
|
+
private readonly innerDocumentService?;
|
|
145
|
+
private readonly documentDeltaConnectionsMap;
|
|
146
|
+
/**
|
|
147
|
+
* @param localDeltaConnectionServer - delta connection server for ops
|
|
148
|
+
*/
|
|
149
|
+
constructor(localDeltaConnectionServer: ILocalDeltaConnectionServer, policies?: IDocumentServicePolicies | undefined, innerDocumentService?: IDocumentService | undefined);
|
|
150
|
+
createContainer(createNewSummary: ISummaryTree | undefined, resolvedUrl: IResolvedUrl, logger?: ITelemetryBaseLogger, clientIsSummarizer?: boolean): Promise<IDocumentService>;
|
|
151
|
+
/**
|
|
152
|
+
* Creates and returns a document service for testing using the given resolved
|
|
153
|
+
* URL for the tenant ID, document ID, and token.
|
|
154
|
+
* @param resolvedUrl - resolved URL of document
|
|
155
|
+
*/
|
|
156
|
+
createDocumentService(resolvedUrl: IResolvedUrl, logger?: ITelemetryBaseLogger, clientIsSummarizer?: boolean): Promise<IDocumentService>;
|
|
157
|
+
/**
|
|
158
|
+
* Gets the document delta connection for the clientId and asks it to disconnect the client.
|
|
159
|
+
* @param clientId - The ID of the client to be disconnected.
|
|
160
|
+
* @param disconnectReason - The reason of the disconnection.
|
|
161
|
+
*/
|
|
162
|
+
disconnectClient(clientId: string, disconnectReason: string): void;
|
|
163
|
+
/**
|
|
164
|
+
* Gets the document delta connection for the clientId and asks it to nack the client.
|
|
165
|
+
* @param clientId - The ID of the client to be Nack'd.
|
|
166
|
+
* @param code - An error code number that represents the error. It will be a valid HTTP error code.
|
|
167
|
+
* @param type - Type of the Nack.
|
|
168
|
+
* @param message - A message about the nack for debugging/logging/telemetry purposes.
|
|
169
|
+
*/
|
|
170
|
+
nackClient(clientId: string, code?: number, type?: NackErrorType, message?: any): void;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* @internal
|
|
175
|
+
*/
|
|
176
|
+
export declare class LocalDocumentStorageService implements IDocumentStorageService {
|
|
177
|
+
private readonly id;
|
|
178
|
+
private readonly manager;
|
|
179
|
+
readonly policies: IDocumentStorageServicePolicies;
|
|
180
|
+
private readonly localDeltaConnectionServer?;
|
|
181
|
+
private readonly resolvedUrl?;
|
|
182
|
+
protected readonly blobsShaCache: Map<string, string>;
|
|
183
|
+
private readonly summaryTreeUploadManager;
|
|
184
|
+
get repositoryUrl(): string;
|
|
185
|
+
constructor(id: string, manager: GitManager, policies: IDocumentStorageServicePolicies, localDeltaConnectionServer?: ILocalDeltaConnectionServer | undefined, resolvedUrl?: IResolvedUrl | undefined);
|
|
186
|
+
getVersions(versionId: string | null, count: number): Promise<IVersion[]>;
|
|
187
|
+
getSnapshotTree(version?: IVersion): Promise<ISnapshotTreeEx | null>;
|
|
188
|
+
readBlob(blobId: string): Promise<ArrayBufferLike>;
|
|
189
|
+
uploadSummaryWithContext(summary: ISummaryTree, context: ISummaryContext): Promise<string>;
|
|
190
|
+
createBlob(file: ArrayBufferLike): Promise<ICreateBlobResponse>;
|
|
191
|
+
downloadSummary(handle: ISummaryHandle): Promise<ISummaryTree>;
|
|
192
|
+
private getPreviousFullSnapshot;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* Resolves URLs by providing fake URLs which succeed with the other
|
|
197
|
+
* related local classes.
|
|
198
|
+
* @alpha
|
|
199
|
+
*/
|
|
200
|
+
export declare class LocalResolver implements IUrlResolver {
|
|
201
|
+
private readonly tenantId;
|
|
202
|
+
private readonly tokenKey;
|
|
203
|
+
constructor();
|
|
204
|
+
/**
|
|
205
|
+
* Resolves URL requests by providing fake URLs with an actually generated
|
|
206
|
+
* token from constant test strings. The root of the URL is fake, but the
|
|
207
|
+
* remaining relative URL can still be parsed.
|
|
208
|
+
* @param request - request to handle
|
|
209
|
+
*/
|
|
210
|
+
resolve(request: IRequest): Promise<IResolvedUrl>;
|
|
211
|
+
getAbsoluteUrl(resolvedUrl: IResolvedUrl, relativeUrl: string): Promise<string>;
|
|
212
|
+
createCreateNewRequest(documentId: string): IRequest;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
/**
|
|
216
|
+
* A database factory for testing that stores data in the browsers session storage
|
|
217
|
+
* @internal
|
|
218
|
+
*/
|
|
219
|
+
export declare class LocalSessionStorageDbFactory implements ITestDbFactory {
|
|
220
|
+
readonly testDatabase: IDb;
|
|
221
|
+
connect(): Promise<IDb>;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
export { }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"localCreateDocument.d.ts","sourceRoot":"","sources":["../src/localCreateDocument.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"localCreateDocument.d.ts","sourceRoot":"","sources":["../src/localCreateDocument.ts"],"names":[],"mappings":"AAAA;;;GAGG;OAEI,EAAE,YAAY,EAAE,MAAM,oCAAoC;OAM1D,EAAE,YAAY,EAAE,MAAM,sCAAsC;AAInE,wBAAsB,cAAc,CACnC,0BAA0B,KAAA,EAC1B,WAAW,EAAE,YAAY,EACzB,OAAO,EAAE,YAAY,iBA6BrB"}
|
|
@@ -7,6 +7,7 @@ import { ISequencedDocumentMessage } from "@fluidframework/protocol-definitions"
|
|
|
7
7
|
import { IDatabaseManager } from "@fluidframework/server-services-core";
|
|
8
8
|
/**
|
|
9
9
|
* Provides access to the underlying delta storage on the server for local driver.
|
|
10
|
+
* @internal
|
|
10
11
|
*/
|
|
11
12
|
export declare class LocalDeltaStorageService implements IDocumentDeltaStorageService {
|
|
12
13
|
private readonly tenantId;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"localDeltaStorageService.d.ts","sourceRoot":"","sources":["../src/localDeltaStorageService.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"localDeltaStorageService.d.ts","sourceRoot":"","sources":["../src/localDeltaStorageService.ts"],"names":[],"mappings":"AAAA;;;GAGG;OAEI,EAAE,4BAA4B,EAAE,OAAO,EAAE,MAAM,oCAAoC;OACnF,EAAE,yBAAyB,EAAE,MAAM,sCAAsC;OACzE,EAAE,gBAAgB,EAAE,MAAM,sCAAsC;AAGvE;;;GAGG;AACH,qBAAa,wBAAyB,YAAW,4BAA4B;IAE3E,OAAO,CAAC,QAAQ,CAAC,QAAQ;IACzB,OAAO,CAAC,QAAQ,CAAC,EAAE;IACnB,OAAO,CAAC,QAAQ,CAAC,eAAe;gBAFf,QAAQ,EAAE,MAAM,EAChB,EAAE,EAAE,MAAM,EACV,eAAe,EAAE,gBAAgB;IAG5C,aAAa,CACnB,IAAI,EAAE,MAAM,EACZ,EAAE,EAAE,MAAM,GAAG,SAAS,EACtB,WAAW,CAAC,EAAE,WAAW,EACzB,UAAU,CAAC,EAAE,OAAO,GAClB,OAAO,CAAC,yBAAyB,EAAE,CAAC;YAIzB,OAAO;CAcrB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"localDeltaStorageService.mjs","sourceRoot":"","sources":["../src/localDeltaStorageService.ts"],"names":[],"mappings":"AAAA;;;GAGG;OAKI,EAAE,kBAAkB,EAAE,MAAM,8BAA8B;AAEjE
|
|
1
|
+
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K,CAAC,SAAS,CAAC,CAAC;QAC1D,OAAO,QAAQ,CAAC;IACjB,CAAC;CACD","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { IDocumentDeltaStorageService, IStream } from \"@fluidframework/driver-definitions\";\nimport { ISequencedDocumentMessage } from \"@fluidframework/protocol-definitions\";\nimport { IDatabaseManager } from \"@fluidframework/server-services-core\";\nimport { streamFromMessages } from \"@fluidframework/driver-utils\";\n\n/**\n * Provides access to the underlying delta storage on the server for local driver.\n * @internal\n */\nexport class LocalDeltaStorageService implements IDocumentDeltaStorageService {\n\tconstructor(\n\t\tprivate readonly tenantId: string,\n\t\tprivate readonly id: string,\n\t\tprivate readonly databaseManager: IDatabaseManager,\n\t) {}\n\n\tpublic fetchMessages(\n\t\tfrom: number,\n\t\tto: number | undefined,\n\t\tabortSignal?: AbortSignal,\n\t\tcachedOnly?: boolean,\n\t): IStream<ISequencedDocumentMessage[]> {\n\t\treturn streamFromMessages(this.getCore(from, to));\n\t}\n\n\tprivate async getCore(from: number, to?: number) {\n\t\tconst query = { documentId: this.id, tenantId: this.tenantId };\n\t\tquery[\"operation.sequenceNumber\"] = {};\n\t\tquery[\"operation.sequenceNumber\"].$gt = from - 1; // from is inclusive\n\n\t\t// This looks like a bug. It used to work without setting $lt key. Now it does not\n\t\t// Need follow up\n\t\tquery[\"operation.sequenceNumber\"].$lt = to ?? Number.MAX_SAFE_INTEGER;\n\n\t\tconst allDeltas = await this.databaseManager.getDeltaCollection(this.tenantId, this.id);\n\t\tconst dbDeltas = await allDeltas.find(query, { \"operation.sequenceNumber\": 1 });\n\t\tconst messages = dbDeltas.map((delta) => delta.operation);\n\t\treturn messages;\n\t}\n}\n"]}
|
|
@@ -9,6 +9,7 @@ import type { Socket } from "socket.io-client";
|
|
|
9
9
|
import { ITelemetryBaseLogger } from "@fluidframework/core-interfaces";
|
|
10
10
|
/**
|
|
11
11
|
* Represents a connection to a stream of delta updates
|
|
12
|
+
* @internal
|
|
12
13
|
*/
|
|
13
14
|
export declare class LocalDocumentDeltaConnection extends DocumentDeltaConnection {
|
|
14
15
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"localDocumentDeltaConnection.d.ts","sourceRoot":"","sources":["../src/localDocumentDeltaConnection.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"localDocumentDeltaConnection.d.ts","sourceRoot":"","sources":["../src/localDocumentDeltaConnection.ts"],"names":[],"mappings":"AAAA;;;GAGG;OAEI,EAAE,uBAAuB,EAAE,MAAM,6BAA6B;OAC9D,EACN,OAAO,EAEP,gBAAgB,EAChB,aAAa,EACb,MAAM,sCAAsC;OAGtC,EAAE,gBAAgB,EAAE,MAAM,sCAAsC;OAChE,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB;OACvC,EAAE,oBAAoB,EAAE,MAAM,iCAAiC;AAItE;;;GAGG;AACH,qBAAa,4BAA6B,SAAQ,uBAAuB;IACxE;;;;;;;;;OASG;WACiB,MAAM,CACzB,QAAQ,EAAE,MAAM,EAChB,EAAE,EAAE,MAAM,EACV,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,OAAO,EACf,eAAe,EAAE,gBAAgB,EACjC,SAAS,SAAQ,EACjB,MAAM,CAAC,EAAE,oBAAoB,GAC3B,OAAO,CAAC,4BAA4B,CAAC;gBAqB5B,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,oBAAoB;IAI7E;;OAEG;IACI,MAAM,CAAC,QAAQ,EAAE,gBAAgB,EAAE,GAAG,IAAI;IAQjD;;OAEG;IACI,YAAY,CAAC,OAAO,EAAE,GAAG,GAAG,IAAI;IAIvC;;;OAGG;IACI,gBAAgB,CAAC,gBAAgB,EAAE,MAAM;IAIhD;;;;;OAKG;IACI,UAAU,CAChB,IAAI,oBAAc,EAClB,IAAI,2BAA+C,EACnD,OAAO,EAAE,GAAG;CAab"}
|
|
@@ -8,6 +8,7 @@ import { createChildLogger } from "@fluidframework/telemetry-utils";
|
|
|
8
8
|
const testProtocolVersions = ["^0.3.0", "^0.2.0", "^0.1.0"];
|
|
9
9
|
/**
|
|
10
10
|
* Represents a connection to a stream of delta updates
|
|
11
|
+
* @internal
|
|
11
12
|
*/
|
|
12
13
|
export class LocalDocumentDeltaConnection extends DocumentDeltaConnection {
|
|
13
14
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"localDocumentDeltaConnection.mjs","sourceRoot":"","sources":["../src/localDocumentDeltaConnection.ts"],"names":[],"mappings":"AAAA;;;GAGG;OAEI,EAAE,uBAAuB,EAAE,MAAM,6BAA6B;OAC9D,EAIN,aAAa,GACb,MAAM,sCAAsC;OACtC,EAAE,iBAAiB,EAAE,MAAM,iCAAiC;AAMnE,MAAM,oBAAoB,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;AAE5D
|
|
1
|
+
{"version":3,"file":"localDocumentDeltaConnection.mjs","sourceRoot":"","sources":["../src/localDocumentDeltaConnection.ts"],"names":[],"mappings":"AAAA;;;GAGG;OAEI,EAAE,uBAAuB,EAAE,MAAM,6BAA6B;OAC9D,EAIN,aAAa,GACb,MAAM,sCAAsC;OACtC,EAAE,iBAAiB,EAAE,MAAM,iCAAiC;AAMnE,MAAM,oBAAoB,GAAG,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;AAE5D;;;GAGG;AACH,MAAM,OAAO,4BAA6B,SAAQ,uBAAuB;IACxE;;;;;;;;;OASG;IACI,MAAM,CAAC,KAAK,CAAC,MAAM,CACzB,QAAgB,EAChB,EAAU,EACV,KAAa,EACb,MAAe,EACf,eAAiC,EACjC,SAAS,GAAG,KAAK,EACjB,MAA6B;QAE7B,MAAM,MAAM,GAAI,eAAwC,CAAC,gBAAgB,EAAE,CAAC;QAE5E,4GAA4G;QAC5G,0EAA0E;QAC1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I;gBACJ,OAAO;aACP;SACD,CAAC;QACF,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,EAAE,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC;IAC7C,CAAC;CACD","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { DocumentDeltaConnection } from \"@fluidframework/driver-base\";\nimport {\n\tIClient,\n\tIConnect,\n\tIDocumentMessage,\n\tNackErrorType,\n} from \"@fluidframework/protocol-definitions\";\nimport { createChildLogger } from \"@fluidframework/telemetry-utils\";\nimport { LocalWebSocketServer } from \"@fluidframework/server-local-server\";\nimport { IWebSocketServer } from \"@fluidframework/server-services-core\";\nimport type { Socket } from \"socket.io-client\";\nimport { ITelemetryBaseLogger } from \"@fluidframework/core-interfaces\";\n\nconst testProtocolVersions = [\"^0.3.0\", \"^0.2.0\", \"^0.1.0\"];\n\n/**\n * Represents a connection to a stream of delta updates\n * @internal\n */\nexport class LocalDocumentDeltaConnection extends DocumentDeltaConnection {\n\t/**\n\t * Create a LocalDocumentDeltaConnection\n\t * Handle initial messages, contents or signals if they were in queue\n\t *\n\t * @param tenantId - the ID of the tenant\n\t * @param id - document ID\n\t * @param token - authorization token for storage service\n\t * @param client - information about the client\n\t * @param webSocketServer - web socket server to create connection\n\t */\n\tpublic static async create(\n\t\ttenantId: string,\n\t\tid: string,\n\t\ttoken: string,\n\t\tclient: IClient,\n\t\twebSocketServer: IWebSocketServer,\n\t\ttimeoutMs = 60000,\n\t\tlogger?: ITelemetryBaseLogger,\n\t): Promise<LocalDocumentDeltaConnection> {\n\t\tconst socket = (webSocketServer as LocalWebSocketServer).createConnection();\n\n\t\t// Cast LocalWebSocket to SocketIOClient.Socket which is the socket that the base class needs. This is hacky\n\t\t// but should be fine because this delta connection is for local use only.\n\t\tconst socketWithListener = socket as unknown as Socket;\n\n\t\tconst deltaConnection = new LocalDocumentDeltaConnection(socketWithListener, id, logger);\n\n\t\tconst connectMessage: IConnect = {\n\t\t\tclient,\n\t\t\tid,\n\t\t\tmode: client.mode,\n\t\t\ttenantId,\n\t\t\ttoken, // Token is going to indicate tenant level information, etc...\n\t\t\tversions: testProtocolVersions,\n\t\t};\n\t\tawait deltaConnection.initialize(connectMessage, timeoutMs);\n\t\treturn deltaConnection;\n\t}\n\n\tconstructor(socket: Socket, documentId: string, logger?: ITelemetryBaseLogger) {\n\t\tsuper(socket, documentId, createChildLogger({ logger }));\n\t}\n\n\t/**\n\t * Submits a new delta operation to the server\n\t */\n\tpublic submit(messages: IDocumentMessage[]): void {\n\t\t// We use a promise resolve to force a turn break given message processing is sync\n\t\t// eslint-disable-next-line @typescript-eslint/no-floating-promises\n\t\tPromise.resolve().then(() => {\n\t\t\tthis.emitMessages(\"submitOp\", [messages]);\n\t\t});\n\t}\n\n\t/**\n\t * Submits a new signal to the server\n\t */\n\tpublic submitSignal(message: any): void {\n\t\tthis.emitMessages(\"submitSignal\", [[message]]);\n\t}\n\n\t/**\n\t * Send a \"disconnect\" message on the socket.\n\t * @param disconnectReason - The reason of the disconnection.\n\t */\n\tpublic disconnectClient(disconnectReason: string) {\n\t\tthis.socket.emit(\"disconnect\", disconnectReason);\n\t}\n\n\t/**\n\t * * Sends a \"nack\" message on the socket.\n\t * @param code - An error code number that represents the error. It will be a valid HTTP error code.\n\t * @param type - Type of the Nack.\n\t * @param message - A message about the nack for debugging/logging/telemetry purposes.\n\t */\n\tpublic nackClient(\n\t\tcode: number = 400,\n\t\ttype: NackErrorType = NackErrorType.ThrottlingError,\n\t\tmessage: any,\n\t) {\n\t\tconst nackMessage = {\n\t\t\toperation: undefined,\n\t\t\tsequenceNumber: -1,\n\t\t\tcontent: {\n\t\t\t\tcode,\n\t\t\t\ttype,\n\t\t\t\tmessage,\n\t\t\t},\n\t\t};\n\t\tthis.socket.emit(\"nack\", \"\", [nackMessage]);\n\t}\n}\n"]}
|
|
@@ -7,9 +7,10 @@ import { IClient } from "@fluidframework/protocol-definitions";
|
|
|
7
7
|
import { ITokenProvider } from "@fluidframework/routerlicious-driver";
|
|
8
8
|
import { ILocalDeltaConnectionServer } from "@fluidframework/server-local-server";
|
|
9
9
|
import { ITelemetryBaseLogger } from "@fluidframework/core-interfaces";
|
|
10
|
-
import { LocalDocumentDeltaConnection } from "./localDocumentDeltaConnection";
|
|
10
|
+
import { LocalDocumentDeltaConnection } from "./localDocumentDeltaConnection.mjs";
|
|
11
11
|
/**
|
|
12
12
|
* Basic implementation of a document service for local use.
|
|
13
|
+
* @internal
|
|
13
14
|
*/
|
|
14
15
|
export declare class LocalDocumentService implements IDocumentService {
|
|
15
16
|
readonly resolvedUrl: IResolvedUrl;
|
|
@@ -49,6 +50,7 @@ export declare class LocalDocumentService implements IDocumentService {
|
|
|
49
50
|
* @param tokenProvider - token provider with a single token
|
|
50
51
|
* @param tenantId - ID of tenant
|
|
51
52
|
* @param documentId - ID of document
|
|
53
|
+
* @internal
|
|
52
54
|
*/
|
|
53
55
|
export declare function createLocalDocumentService(resolvedUrl: IResolvedUrl, localDeltaConnectionServer: ILocalDeltaConnectionServer, tokenProvider: ITokenProvider, tenantId: string, documentId: string, documentDeltaConnectionsMap: Map<string, LocalDocumentDeltaConnection>, policies?: IDocumentServicePolicies, innerDocumentService?: IDocumentService, logger?: ITelemetryBaseLogger): IDocumentService;
|
|
54
56
|
//# sourceMappingURL=localDocumentService.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"localDocumentService.d.ts","sourceRoot":"","sources":["../src/localDocumentService.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"localDocumentService.d.ts","sourceRoot":"","sources":["../src/localDocumentService.ts"],"names":[],"mappings":"AAAA;;;GAGG;OAEI,EACN,wBAAwB,EACxB,4BAA4B,EAC5B,gBAAgB,EAChB,wBAAwB,EACxB,uBAAuB,EACvB,YAAY,EACZ,MAAM,oCAAoC;OACpC,EAAE,OAAO,EAAE,MAAM,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EAClB,2BAA2B,EAAE,GAAG,CAAC,MAAM,EAAE,4BAA4B,CAAC,EACtE,QAAQ,CAAC,EAAE,wBAAwB,EACnC,oBAAoB,CAAC,EAAE,gBAAgB,EACvC,MAAM,CAAC,EAAE,oBAAoB,GAC3B,gBAAgB,CAYlB"}
|
|
@@ -9,6 +9,7 @@ import { LocalDocumentDeltaConnection } from "./localDocumentDeltaConnection.mjs
|
|
|
9
9
|
import { LocalDeltaStorageService } from "./localDeltaStorageService.mjs";
|
|
10
10
|
/**
|
|
11
11
|
* Basic implementation of a document service for local use.
|
|
12
|
+
* @internal
|
|
12
13
|
*/
|
|
13
14
|
export class LocalDocumentService {
|
|
14
15
|
/**
|
|
@@ -75,6 +76,7 @@ export class LocalDocumentService {
|
|
|
75
76
|
* @param tokenProvider - token provider with a single token
|
|
76
77
|
* @param tenantId - ID of tenant
|
|
77
78
|
* @param documentId - ID of document
|
|
79
|
+
* @internal
|
|
78
80
|
*/
|
|
79
81
|
export function createLocalDocumentService(resolvedUrl, localDeltaConnectionServer, tokenProvider, tenantId, documentId, documentDeltaConnectionsMap, policies, innerDocumentService, logger) {
|
|
80
82
|
return new LocalDocumentService(resolvedUrl, localDeltaConnectionServer, tokenProvider, tenantId, documentId, documentDeltaConnectionsMap, policies, innerDocumentService, logger);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"localDocumentService.mjs","sourceRoot":"","sources":["../src/localDocumentService.ts"],"names":[],"mappings":"AAAA;;;GAGG;OAYI,EAAE,UAAU,EAAE,MAAM,wCAAwC;OAC5D,EAAE,aAAa,EAAE,MAAM,mCAAmC;OAG1D,EAAE,2BAA2B,EAAE;OAC/B,EAAE,4BAA4B,EAAE;OAChC,EAAE,wBAAwB,EAAE;AAEnC
|
|
1
|
+
{"version":3,"file":"localDocumentService.mjs","sourceRoot":"","sources":["../src/localDocumentService.ts"],"names":[],"mappings":"AAAA;;;GAGG;OAYI,EAAE,UAAU,EAAE,MAAM,wCAAwC;OAC5D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EACR,UAAU,EACV,2BAA2B,EAC3B,QAAQ,EACR,oBAAoB,EACpB,MAAM,CACN,CAAC;AACH,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport {\n\tIDocumentDeltaConnection,\n\tIDocumentDeltaStorageService,\n\tIDocumentService,\n\tIDocumentServicePolicies,\n\tIDocumentStorageService,\n\tIResolvedUrl,\n} from \"@fluidframework/driver-definitions\";\nimport { IClient } from \"@fluidframework/protocol-definitions\";\nimport { ITokenProvider } from \"@fluidframework/routerlicious-driver\";\nimport { GitManager } from \"@fluidframework/server-services-client\";\nimport { TestHistorian } from \"@fluidframework/server-test-utils\";\nimport { ILocalDeltaConnectionServer } from \"@fluidframework/server-local-server\";\nimport { ITelemetryBaseLogger } from \"@fluidframework/core-interfaces\";\nimport { LocalDocumentStorageService } from \"./localDocumentStorageService\";\nimport { LocalDocumentDeltaConnection } from \"./localDocumentDeltaConnection\";\nimport { LocalDeltaStorageService } from \"./localDeltaStorageService\";\n\n/**\n * Basic implementation of a document service for local use.\n * @internal\n */\nexport class LocalDocumentService implements IDocumentService {\n\t/**\n\t * @param localDeltaConnectionServer - delta connection server for ops\n\t * @param tokenProvider - token provider\n\t * @param tenantId - ID of tenant\n\t * @param documentId - ID of document\n\t */\n\tconstructor(\n\t\tpublic readonly resolvedUrl: IResolvedUrl,\n\t\tprivate readonly localDeltaConnectionServer: ILocalDeltaConnectionServer,\n\t\tprivate readonly tokenProvider: ITokenProvider,\n\t\tprivate readonly tenantId: string,\n\t\tprivate readonly documentId: string,\n\t\tprivate readonly documentDeltaConnectionsMap: Map<string, LocalDocumentDeltaConnection>,\n\t\tpublic readonly policies: IDocumentServicePolicies = {},\n\t\tprivate readonly innerDocumentService?: IDocumentService,\n\t\tprivate readonly logger?: ITelemetryBaseLogger,\n\t) {}\n\n\tpublic dispose() {}\n\n\t/**\n\t * Creates and returns a document storage service for local use.\n\t */\n\tpublic async connectToStorage(): Promise<IDocumentStorageService> {\n\t\treturn new LocalDocumentStorageService(\n\t\t\tthis.documentId,\n\t\t\tnew GitManager(\n\t\t\t\tnew TestHistorian(this.localDeltaConnectionServer.testDbFactory.testDatabase),\n\t\t\t),\n\t\t\t{\n\t\t\t\tmaximumCacheDurationMs: 432_000_000, // 5 days in ms. Not actually enforced but shouldn't matter for any local driver scenario\n\t\t\t},\n\t\t\tthis.localDeltaConnectionServer,\n\t\t\tthis.resolvedUrl,\n\t\t);\n\t}\n\n\t/**\n\t * Creates and returns a delta storage service for local use.\n\t */\n\tpublic async connectToDeltaStorage(): Promise<IDocumentDeltaStorageService> {\n\t\tif (this.innerDocumentService) {\n\t\t\treturn this.innerDocumentService.connectToDeltaStorage();\n\t\t}\n\t\treturn new LocalDeltaStorageService(\n\t\t\tthis.tenantId,\n\t\t\tthis.documentId,\n\t\t\tthis.localDeltaConnectionServer.databaseManager,\n\t\t);\n\t}\n\n\t/**\n\t * Creates and returns a delta stream for local use.\n\t * @param client - client data\n\t */\n\tpublic async connectToDeltaStream(client: IClient): Promise<IDocumentDeltaConnection> {\n\t\tif (this.policies.storageOnly === true) {\n\t\t\tthrow new Error(\"can't connect to delta stream in storage-only mode\");\n\t\t}\n\t\tif (this.innerDocumentService) {\n\t\t\treturn this.innerDocumentService.connectToDeltaStream(client);\n\t\t}\n\t\tconst ordererToken = await this.tokenProvider.fetchOrdererToken(\n\t\t\tthis.tenantId,\n\t\t\tthis.documentId,\n\t\t);\n\t\tconst documentDeltaConnection = await LocalDocumentDeltaConnection.create(\n\t\t\tthis.tenantId,\n\t\t\tthis.documentId,\n\t\t\tordererToken.jwt,\n\t\t\tclient,\n\t\t\tthis.localDeltaConnectionServer.webSocketServer,\n\t\t\tundefined,\n\t\t\tthis.logger,\n\t\t);\n\t\tconst clientId = documentDeltaConnection.clientId;\n\n\t\t// Add this document service for the clientId in the document service factory.\n\t\tthis.documentDeltaConnectionsMap.set(clientId, documentDeltaConnection);\n\n\t\t// Add a listener to remove this document service when the client is disconnected.\n\t\tdocumentDeltaConnection.on(\"disconnect\", () => {\n\t\t\tthis.documentDeltaConnectionsMap.delete(clientId);\n\t\t});\n\n\t\treturn documentDeltaConnection;\n\t}\n}\n\n/**\n * Creates and returns a document service for local use.\n * @param localDeltaConnectionServer - delta connection server for ops\n * @param tokenProvider - token provider with a single token\n * @param tenantId - ID of tenant\n * @param documentId - ID of document\n * @internal\n */\nexport function createLocalDocumentService(\n\tresolvedUrl: IResolvedUrl,\n\tlocalDeltaConnectionServer: ILocalDeltaConnectionServer,\n\ttokenProvider: ITokenProvider,\n\ttenantId: string,\n\tdocumentId: string,\n\tdocumentDeltaConnectionsMap: Map<string, LocalDocumentDeltaConnection>,\n\tpolicies?: IDocumentServicePolicies,\n\tinnerDocumentService?: IDocumentService,\n\tlogger?: ITelemetryBaseLogger,\n): IDocumentService {\n\treturn new LocalDocumentService(\n\t\tresolvedUrl,\n\t\tlocalDeltaConnectionServer,\n\t\ttokenProvider,\n\t\ttenantId,\n\t\tdocumentId,\n\t\tdocumentDeltaConnectionsMap,\n\t\tpolicies,\n\t\tinnerDocumentService,\n\t\tlogger,\n\t);\n}\n"]}
|
|
@@ -8,6 +8,7 @@ import { ILocalDeltaConnectionServer } from "@fluidframework/server-local-server
|
|
|
8
8
|
import { ISummaryTree, NackErrorType } from "@fluidframework/protocol-definitions";
|
|
9
9
|
/**
|
|
10
10
|
* Implementation of document service factory for local use.
|
|
11
|
+
* @alpha
|
|
11
12
|
*/
|
|
12
13
|
export declare class LocalDocumentServiceFactory implements IDocumentServiceFactory {
|
|
13
14
|
private readonly localDeltaConnectionServer;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"localDocumentServiceFactory.d.ts","sourceRoot":"","sources":["../src/localDocumentServiceFactory.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"localDocumentServiceFactory.d.ts","sourceRoot":"","sources":["../src/localDocumentServiceFactory.ts"],"names":[],"m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|
|
9
9
|
/**
|
|
10
10
|
* Implementation of document service factory for local use.
|
|
11
|
+
* @alpha
|
|
11
12
|
*/
|
|
12
13
|
export class LocalDocumentServiceFactory {
|
|
13
14
|
/**
|