@fluidframework/datastore-definitions 2.0.0-internal.6.4.0 → 2.0.0-internal.7.1.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 +64 -0
- package/api-extractor.json +9 -1
- package/api-report/datastore-definitions.api.md +155 -0
- package/dist/dataStoreRuntime.d.ts +2 -7
- package/dist/dataStoreRuntime.d.ts.map +1 -1
- package/dist/dataStoreRuntime.js.map +1 -1
- package/dist/datastore-definitions-alpha.d.ts +445 -0
- package/dist/datastore-definitions-beta.d.ts +445 -0
- package/dist/datastore-definitions-public.d.ts +445 -0
- package/dist/datastore-definitions.d.ts +445 -0
- package/dist/jsonable.d.ts +1 -1
- package/dist/jsonable.d.ts.map +1 -1
- package/dist/serializable.d.ts +1 -1
- package/dist/serializable.d.ts.map +1 -1
- package/dist/tsdoc-metadata.json +1 -1
- package/package.json +16 -16
- package/src/dataStoreRuntime.ts +4 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,69 @@
|
|
|
1
1
|
# @fluidframework/datastore-definitions
|
|
2
2
|
|
|
3
|
+
## 2.0.0-internal.7.1.0
|
|
4
|
+
|
|
5
|
+
Dependency updates only.
|
|
6
|
+
|
|
7
|
+
## 2.0.0-internal.7.0.0
|
|
8
|
+
|
|
9
|
+
### Major Changes
|
|
10
|
+
|
|
11
|
+
- Dependencies on @fluidframework/protocol-definitions package updated to 3.0.0 [871b3493dd](https://github.com/microsoft/FluidFramework/commits/871b3493dd0d7ea3a89be64998ceb6cb9021a04e)
|
|
12
|
+
|
|
13
|
+
This included the following changes from the protocol-definitions release:
|
|
14
|
+
|
|
15
|
+
- Updating signal interfaces for some planned improvements. The intention is split the interface between signals
|
|
16
|
+
submitted by clients to the server and the resulting signals sent from the server to clients.
|
|
17
|
+
- A new optional type member is available on the ISignalMessage interface and a new ISentSignalMessage interface has
|
|
18
|
+
been added, which will be the typing for signals sent from the client to the server. Both extend a new
|
|
19
|
+
ISignalMessageBase interface that contains common members.
|
|
20
|
+
- The @fluidframework/common-definitions package dependency has been updated to version 1.0.0.
|
|
21
|
+
|
|
22
|
+
- Server upgrade: dependencies on Fluid server packages updated to 2.0.1 [871b3493dd](https://github.com/microsoft/FluidFramework/commits/871b3493dd0d7ea3a89be64998ceb6cb9021a04e)
|
|
23
|
+
|
|
24
|
+
Dependencies on the following Fluid server package have been updated to version 2.0.1:
|
|
25
|
+
|
|
26
|
+
- @fluidframework/gitresources: 2.0.1
|
|
27
|
+
- @fluidframework/server-kafka-orderer: 2.0.1
|
|
28
|
+
- @fluidframework/server-lambdas: 2.0.1
|
|
29
|
+
- @fluidframework/server-lambdas-driver: 2.0.1
|
|
30
|
+
- @fluidframework/server-local-server: 2.0.1
|
|
31
|
+
- @fluidframework/server-memory-orderer: 2.0.1
|
|
32
|
+
- @fluidframework/protocol-base: 2.0.1
|
|
33
|
+
- @fluidframework/server-routerlicious: 2.0.1
|
|
34
|
+
- @fluidframework/server-routerlicious-base: 2.0.1
|
|
35
|
+
- @fluidframework/server-services: 2.0.1
|
|
36
|
+
- @fluidframework/server-services-client: 2.0.1
|
|
37
|
+
- @fluidframework/server-services-core: 2.0.1
|
|
38
|
+
- @fluidframework/server-services-ordering-kafkanode: 2.0.1
|
|
39
|
+
- @fluidframework/server-services-ordering-rdkafka: 2.0.1
|
|
40
|
+
- @fluidframework/server-services-ordering-zookeeper: 2.0.1
|
|
41
|
+
- @fluidframework/server-services-shared: 2.0.1
|
|
42
|
+
- @fluidframework/server-services-telemetry: 2.0.1
|
|
43
|
+
- @fluidframework/server-services-utils: 2.0.1
|
|
44
|
+
- @fluidframework/server-test-utils: 2.0.1
|
|
45
|
+
- tinylicious: 2.0.1
|
|
46
|
+
|
|
47
|
+
- test-utils: provideEntryPoint is required [871b3493dd](https://github.com/microsoft/FluidFramework/commits/871b3493dd0d7ea3a89be64998ceb6cb9021a04e)
|
|
48
|
+
|
|
49
|
+
The optional `provideEntryPoint` method has become required on a number of constructors. A value will need to be provided to the following classes:
|
|
50
|
+
|
|
51
|
+
- `BaseContainerRuntimeFactory`
|
|
52
|
+
- `RuntimeFactory`
|
|
53
|
+
- `ContainerRuntime` (constructor and `loadRuntime`)
|
|
54
|
+
- `FluidDataStoreRuntime`
|
|
55
|
+
|
|
56
|
+
See [testContainerRuntimeFactoryWithDefaultDataStore.ts](https://github.com/microsoft/FluidFramework/tree/main/packages/test/test-utils/src/testContainerRuntimeFactoryWithDefaultDataStore.ts) for an example implemtation of `provideEntryPoint` for ContainerRuntime.
|
|
57
|
+
See [pureDataObjectFactory.ts](https://github.com/microsoft/FluidFramework/tree/main/packages/framework/aqueduct/src/data-object-factories/pureDataObjectFactory.ts#L83) for an example implementation of `provideEntryPoint` for DataStoreRuntime.
|
|
58
|
+
|
|
59
|
+
Subsequently, various `entryPoint` and `getEntryPoint()` endpoints have become required. Please see [containerRuntime.ts](https://github.com/microsoft/FluidFramework/tree/main/packages/runtime/container-runtime/src/containerRuntime.ts) for example implementations of these APIs.
|
|
60
|
+
|
|
61
|
+
For more details, see [Removing-IFluidRouter.md](https://github.com/microsoft/FluidFramework/blob/main/packages/common/core-interfaces/Removing-IFluidRouter.md)
|
|
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
|
+
|
|
3
67
|
## 2.0.0-internal.6.4.0
|
|
4
68
|
|
|
5
69
|
Dependency updates only.
|
package/api-extractor.json
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
|
|
3
|
-
"extends": "@fluidframework/build-common/api-extractor-
|
|
3
|
+
"extends": "@fluidframework/build-common/api-extractor-base.json",
|
|
4
|
+
"messages": {
|
|
5
|
+
"extractorMessageReporting": {
|
|
6
|
+
"ae-missing-release-tag": {
|
|
7
|
+
// TODO: Fix violations and remove this rule override
|
|
8
|
+
"logLevel": "none"
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
}
|
|
4
12
|
}
|
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
## API Report File for "@fluidframework/datastore-definitions"
|
|
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 { AttachState } from '@fluidframework/container-definitions';
|
|
8
|
+
import { FluidObject } from '@fluidframework/core-interfaces';
|
|
9
|
+
import { IAudience } from '@fluidframework/container-definitions';
|
|
10
|
+
import { IDeltaManager } from '@fluidframework/container-definitions';
|
|
11
|
+
import { IDisposable } from '@fluidframework/core-interfaces';
|
|
12
|
+
import { IDocumentMessage } from '@fluidframework/protocol-definitions';
|
|
13
|
+
import { IEvent } from '@fluidframework/core-interfaces';
|
|
14
|
+
import { IEventProvider } from '@fluidframework/core-interfaces';
|
|
15
|
+
import { IExperimentalIncrementalSummaryContext } from '@fluidframework/runtime-definitions';
|
|
16
|
+
import { IFluidHandle } from '@fluidframework/core-interfaces';
|
|
17
|
+
import { IFluidHandleContext } from '@fluidframework/core-interfaces';
|
|
18
|
+
import { IFluidLoadable } from '@fluidframework/core-interfaces';
|
|
19
|
+
import { IFluidRouter } from '@fluidframework/core-interfaces';
|
|
20
|
+
import { IGarbageCollectionData } from '@fluidframework/runtime-definitions';
|
|
21
|
+
import { IIdCompressor } from '@fluidframework/runtime-definitions';
|
|
22
|
+
import { IInboundSignalMessage } from '@fluidframework/runtime-definitions';
|
|
23
|
+
import { ILoaderOptions } from '@fluidframework/container-definitions';
|
|
24
|
+
import { IProvideFluidDataStoreRegistry } from '@fluidframework/runtime-definitions';
|
|
25
|
+
import { IQuorumClients } from '@fluidframework/protocol-definitions';
|
|
26
|
+
import { IRequest } from '@fluidframework/core-interfaces';
|
|
27
|
+
import { IResponse } from '@fluidframework/core-interfaces';
|
|
28
|
+
import { ISequencedDocumentMessage } from '@fluidframework/protocol-definitions';
|
|
29
|
+
import { ISummaryTreeWithStats } from '@fluidframework/runtime-definitions';
|
|
30
|
+
import { ITelemetryContext } from '@fluidframework/runtime-definitions';
|
|
31
|
+
import { ITelemetryLogger } from '@fluidframework/core-interfaces';
|
|
32
|
+
|
|
33
|
+
// @public (undocumented)
|
|
34
|
+
export interface IChannel extends IFluidLoadable {
|
|
35
|
+
// (undocumented)
|
|
36
|
+
readonly attributes: IChannelAttributes;
|
|
37
|
+
connect(services: IChannelServices): void;
|
|
38
|
+
getAttachSummary(fullTree?: boolean, trackState?: boolean, telemetryContext?: ITelemetryContext): ISummaryTreeWithStats;
|
|
39
|
+
getGCData(fullGC?: boolean): IGarbageCollectionData;
|
|
40
|
+
readonly id: string;
|
|
41
|
+
isAttached(): boolean;
|
|
42
|
+
summarize(fullTree?: boolean, trackState?: boolean, telemetryContext?: ITelemetryContext, incrementalSummaryContext?: IExperimentalIncrementalSummaryContext): Promise<ISummaryTreeWithStats>;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// @public
|
|
46
|
+
export interface IChannelAttributes {
|
|
47
|
+
readonly packageVersion?: string;
|
|
48
|
+
readonly snapshotFormatVersion: string;
|
|
49
|
+
readonly type: string;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
// @public
|
|
53
|
+
export interface IChannelFactory {
|
|
54
|
+
readonly attributes: IChannelAttributes;
|
|
55
|
+
create(runtime: IFluidDataStoreRuntime, id: string): IChannel;
|
|
56
|
+
load(runtime: IFluidDataStoreRuntime, id: string, services: IChannelServices, channelAttributes: Readonly<IChannelAttributes>): Promise<IChannel>;
|
|
57
|
+
readonly type: string;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// @public
|
|
61
|
+
export interface IChannelServices {
|
|
62
|
+
// (undocumented)
|
|
63
|
+
deltaConnection: IDeltaConnection;
|
|
64
|
+
// (undocumented)
|
|
65
|
+
objectStorage: IChannelStorageService;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
// @public
|
|
69
|
+
export interface IChannelStorageService {
|
|
70
|
+
contains(path: string): Promise<boolean>;
|
|
71
|
+
list(path: string): Promise<string[]>;
|
|
72
|
+
readBlob(path: string): Promise<ArrayBufferLike>;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
// @public
|
|
76
|
+
export interface IDeltaConnection {
|
|
77
|
+
addedGCOutboundReference?(srcHandle: IFluidHandle, outboundHandle: IFluidHandle): void;
|
|
78
|
+
attach(handler: IDeltaHandler): void;
|
|
79
|
+
// (undocumented)
|
|
80
|
+
connected: boolean;
|
|
81
|
+
dirty(): void;
|
|
82
|
+
submit(messageContent: any, localOpMetadata: unknown): void;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
// @public
|
|
86
|
+
export interface IDeltaHandler {
|
|
87
|
+
applyStashedOp(message: any): unknown;
|
|
88
|
+
process: (message: ISequencedDocumentMessage, local: boolean, localOpMetadata: unknown) => void;
|
|
89
|
+
reSubmit(message: any, localOpMetadata: unknown): void;
|
|
90
|
+
rollback?(message: any, localOpMetadata: unknown): void;
|
|
91
|
+
setConnectionState(connected: boolean): void;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
// @public
|
|
95
|
+
export interface IFluidDataStoreRuntime extends IEventProvider<IFluidDataStoreRuntimeEvents>, IDisposable, Partial<IProvideFluidDataStoreRegistry> {
|
|
96
|
+
readonly attachState: AttachState;
|
|
97
|
+
bindChannel(channel: IChannel): void;
|
|
98
|
+
// (undocumented)
|
|
99
|
+
readonly channelsRoutingContext: IFluidHandleContext;
|
|
100
|
+
// (undocumented)
|
|
101
|
+
readonly clientId: string | undefined;
|
|
102
|
+
// (undocumented)
|
|
103
|
+
readonly connected: boolean;
|
|
104
|
+
createChannel(id: string | undefined, type: string): IChannel;
|
|
105
|
+
// (undocumented)
|
|
106
|
+
readonly deltaManager: IDeltaManager<ISequencedDocumentMessage, IDocumentMessage>;
|
|
107
|
+
ensureNoDataModelChanges<T>(callback: () => T): T;
|
|
108
|
+
readonly entryPoint: IFluidHandle<FluidObject>;
|
|
109
|
+
getAudience(): IAudience;
|
|
110
|
+
getChannel(id: string): Promise<IChannel>;
|
|
111
|
+
getQuorum(): IQuorumClients;
|
|
112
|
+
// (undocumented)
|
|
113
|
+
readonly id: string;
|
|
114
|
+
// (undocumented)
|
|
115
|
+
readonly idCompressor?: IIdCompressor;
|
|
116
|
+
// (undocumented)
|
|
117
|
+
readonly IFluidHandleContext: IFluidHandleContext;
|
|
118
|
+
// @deprecated (undocumented)
|
|
119
|
+
readonly IFluidRouter: IFluidRouter;
|
|
120
|
+
// (undocumented)
|
|
121
|
+
readonly logger: ITelemetryLogger;
|
|
122
|
+
// (undocumented)
|
|
123
|
+
readonly objectsRoutingContext: IFluidHandleContext;
|
|
124
|
+
// (undocumented)
|
|
125
|
+
readonly options: ILoaderOptions;
|
|
126
|
+
// @deprecated (undocumented)
|
|
127
|
+
request(request: IRequest): Promise<IResponse>;
|
|
128
|
+
// (undocumented)
|
|
129
|
+
readonly rootRoutingContext: IFluidHandleContext;
|
|
130
|
+
submitSignal(type: string, content: any): void;
|
|
131
|
+
uploadBlob(blob: ArrayBufferLike, signal?: AbortSignal): Promise<IFluidHandle<ArrayBufferLike>>;
|
|
132
|
+
waitAttached(): Promise<void>;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
// @public (undocumented)
|
|
136
|
+
export interface IFluidDataStoreRuntimeEvents extends IEvent {
|
|
137
|
+
// (undocumented)
|
|
138
|
+
(event: "disconnected" | "dispose" | "attaching" | "attached", listener: () => void): any;
|
|
139
|
+
// (undocumented)
|
|
140
|
+
(event: "op", listener: (message: ISequencedDocumentMessage) => void): any;
|
|
141
|
+
// (undocumented)
|
|
142
|
+
(event: "signal", listener: (message: IInboundSignalMessage, local: boolean) => void): any;
|
|
143
|
+
// (undocumented)
|
|
144
|
+
(event: "connected", listener: (clientId: string) => void): any;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
// @public
|
|
148
|
+
export type Jsonable<T = any, TReplaced = void> = T extends undefined | null | boolean | number | string | TReplaced ? T : Extract<T, Function> extends never ? {
|
|
149
|
+
[K in keyof T]: Extract<K, symbol> extends never ? Jsonable<T[K], TReplaced> : never;
|
|
150
|
+
} : never;
|
|
151
|
+
|
|
152
|
+
// @public
|
|
153
|
+
export type Serializable<T = any> = Jsonable<T, IFluidHandle>;
|
|
154
|
+
|
|
155
|
+
```
|
|
@@ -81,14 +81,9 @@ export interface IFluidDataStoreRuntime extends IEventProvider<IFluidDataStoreRu
|
|
|
81
81
|
waitAttached(): Promise<void>;
|
|
82
82
|
/**
|
|
83
83
|
* Exposes a handle to the root object / entryPoint of the data store. Use this as the primary way of interacting
|
|
84
|
-
* with it.
|
|
85
|
-
* particular scenario) fall back to the current approach of requesting the root object through the request pattern.
|
|
86
|
-
*
|
|
87
|
-
* @remarks The plan is that eventually the data store will stop providing IFluidRouter functionality, this property
|
|
88
|
-
* will become non-optional and return an IFluidHandle (no undefined) and will become the only way to access
|
|
89
|
-
* the data store's entryPoint.
|
|
84
|
+
* with it.
|
|
90
85
|
*/
|
|
91
|
-
readonly entryPoint
|
|
86
|
+
readonly entryPoint: IFluidHandle<FluidObject>;
|
|
92
87
|
/**
|
|
93
88
|
* @deprecated - Will be removed in future major release. Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md
|
|
94
89
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataStoreRuntime.d.ts","sourceRoot":"","sources":["../src/dataStoreRuntime.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EACN,MAAM,EACN,cAAc,EACd,gBAAgB,EAChB,WAAW,EACX,mBAAmB,
|
|
1
|
+
{"version":3,"file":"dataStoreRuntime.d.ts","sourceRoot":"","sources":["../src/dataStoreR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W,CAAC,CAAC;IAE/C;;OAEG;IACH,OAAO,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;IAE/C;;OAEG;IAEH,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAC;CACpC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataStoreRuntime.js","sourceRoot":"","sources":["../src/dataStoreRuntime.ts"],"names":[],"mappings":";AAAA;;;GAGG","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport {\n\tIEvent,\n\tIEventProvider,\n\tITelemetryLogger,\n\tIDisposable,\n\tIFluidHandleContext,\n\tIFluidRouter,\n\tIFluidHandle,\n\tFluidObject,\n\tIRequest,\n\tIResponse,\n} from \"@fluidframework/core-interfaces\";\nimport {\n\tIAudience,\n\tIDeltaManager,\n\tAttachState,\n\tILoaderOptions,\n} from \"@fluidframework/container-definitions\";\nimport {\n\tIDocumentMessage,\n\tIQuorumClients,\n\tISequencedDocumentMessage,\n} from \"@fluidframework/protocol-definitions\";\nimport {\n\tIIdCompressor,\n\tIInboundSignalMessage,\n\tIProvideFluidDataStoreRegistry,\n} from \"@fluidframework/runtime-definitions\";\nimport { IChannel } from \".\";\n\nexport interface IFluidDataStoreRuntimeEvents extends IEvent {\n\t(event: \"disconnected\" | \"dispose\" | \"attaching\" | \"attached\", listener: () => void);\n\t(event: \"op\", listener: (message: ISequencedDocumentMessage) => void);\n\t(event: \"signal\", listener: (message: IInboundSignalMessage, local: boolean) => void);\n\t(event: \"connected\", listener: (clientId: string) => void);\n}\n\n/**\n * Represents the runtime for the data store. Contains helper functions/state of the data store.\n */\nexport interface IFluidDataStoreRuntime\n\textends IEventProvider<IFluidDataStoreRuntimeEvents>,\n\t\tIDisposable,\n\t\tPartial<IProvideFluidDataStoreRegistry> {\n\treadonly id: string;\n\n\treadonly IFluidHandleContext: IFluidHandleContext;\n\n\treadonly rootRoutingContext: IFluidHandleContext;\n\treadonly channelsRoutingContext: IFluidHandleContext;\n\treadonly objectsRoutingContext: IFluidHandleContext;\n\n\treadonly options: ILoaderOptions;\n\n\treadonly deltaManager: IDeltaManager<ISequencedDocumentMessage, IDocumentMessage>;\n\n\treadonly clientId: string | undefined;\n\n\treadonly connected: boolean;\n\n\treadonly logger: ITelemetryLogger;\n\n\t/**\n\t * Indicates the attachment state of the data store to a host service.\n\t */\n\treadonly attachState: AttachState;\n\n\treadonly idCompressor?: IIdCompressor;\n\n\t/**\n\t * Returns the channel with the given id\n\t */\n\tgetChannel(id: string): Promise<IChannel>;\n\n\t/**\n\t * Invokes the given callback and expects that no ops are submitted\n\t * until execution finishes. If an op is submitted, an error will be raised.\n\t *\n\t * Can be disabled by feature gate `Fluid.ContainerRuntime.DisableOpReentryCheck`\n\t *\n\t * @param callback - the callback to be invoked\n\t */\n\tensureNoDataModelChanges<T>(callback: () => T): T;\n\n\t/**\n\t * Creates a new channel of the given type.\n\t * @param id - ID of the channel to be created. A unique ID will be generated if left undefined.\n\t * @param type - Type of the channel.\n\t */\n\tcreateChannel(id: string | undefined, type: string): IChannel;\n\n\t/**\n\t * Bind the channel with the data store runtime. If the runtime\n\t * is attached then we attach the channel to make it live.\n\t */\n\tbindChannel(channel: IChannel): void;\n\n\t// Blob related calls\n\t/**\n\t * Api to upload a blob of data.\n\t * @param blob - blob to be uploaded.\n\t */\n\tuploadBlob(blob: ArrayBufferLike, signal?: AbortSignal): Promise<IFluidHandle<ArrayBufferLike>>;\n\n\t/**\n\t * Submits the signal to be sent to other clients.\n\t * @param type - Type of the signal.\n\t * @param content - Content of the signal.\n\t */\n\tsubmitSignal(type: string, content: any): void;\n\n\t/**\n\t * Returns the current quorum.\n\t */\n\tgetQuorum(): IQuorumClients;\n\n\t/**\n\t * Returns the current audience.\n\t */\n\tgetAudience(): IAudience;\n\n\t/**\n\t * Resolves when a local data store is attached.\n\t */\n\twaitAttached(): Promise<void>;\n\n\t/**\n\t * Exposes a handle to the root object / entryPoint of the data store. Use this as the primary way of interacting\n\t * with it
|
|
1
|
+
{"version":3,"file":"dataStoreRuntime.js","sourceRoot":"","sources":["../src/dataStoreRuntime.ts"],"names":[],"mappings":";AAAA;;;GAGG","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport {\n\tIEvent,\n\tIEventProvider,\n\tITelemetryLogger,\n\tIDisposable,\n\tIFluidHandleContext,\n\t// eslint-disable-next-line import/no-deprecated\n\tIFluidRouter,\n\tIFluidHandle,\n\tFluidObject,\n\tIRequest,\n\tIResponse,\n} from \"@fluidframework/core-interfaces\";\nimport {\n\tIAudience,\n\tIDeltaManager,\n\tAttachState,\n\tILoaderOptions,\n} from \"@fluidframework/container-definitions\";\nimport {\n\tIDocumentMessage,\n\tIQuorumClients,\n\tISequencedDocumentMessage,\n} from \"@fluidframework/protocol-definitions\";\nimport {\n\tIIdCompressor,\n\tIInboundSignalMessage,\n\tIProvideFluidDataStoreRegistry,\n} from \"@fluidframework/runtime-definitions\";\nimport { IChannel } from \".\";\n\nexport interface IFluidDataStoreRuntimeEvents extends IEvent {\n\t(event: \"disconnected\" | \"dispose\" | \"attaching\" | \"attached\", listener: () => void);\n\t(event: \"op\", listener: (message: ISequencedDocumentMessage) => void);\n\t(event: \"signal\", listener: (message: IInboundSignalMessage, local: boolean) => void);\n\t(event: \"connected\", listener: (clientId: string) => void);\n}\n\n/**\n * Represents the runtime for the data store. Contains helper functions/state of the data store.\n */\nexport interface IFluidDataStoreRuntime\n\textends IEventProvider<IFluidDataStoreRuntimeEvents>,\n\t\tIDisposable,\n\t\tPartial<IProvideFluidDataStoreRegistry> {\n\treadonly id: string;\n\n\treadonly IFluidHandleContext: IFluidHandleContext;\n\n\treadonly rootRoutingContext: IFluidHandleContext;\n\treadonly channelsRoutingContext: IFluidHandleContext;\n\treadonly objectsRoutingContext: IFluidHandleContext;\n\n\treadonly options: ILoaderOptions;\n\n\treadonly deltaManager: IDeltaManager<ISequencedDocumentMessage, IDocumentMessage>;\n\n\treadonly clientId: string | undefined;\n\n\treadonly connected: boolean;\n\n\treadonly logger: ITelemetryLogger;\n\n\t/**\n\t * Indicates the attachment state of the data store to a host service.\n\t */\n\treadonly attachState: AttachState;\n\n\treadonly idCompressor?: IIdCompressor;\n\n\t/**\n\t * Returns the channel with the given id\n\t */\n\tgetChannel(id: string): Promise<IChannel>;\n\n\t/**\n\t * Invokes the given callback and expects that no ops are submitted\n\t * until execution finishes. If an op is submitted, an error will be raised.\n\t *\n\t * Can be disabled by feature gate `Fluid.ContainerRuntime.DisableOpReentryCheck`\n\t *\n\t * @param callback - the callback to be invoked\n\t */\n\tensureNoDataModelChanges<T>(callback: () => T): T;\n\n\t/**\n\t * Creates a new channel of the given type.\n\t * @param id - ID of the channel to be created. A unique ID will be generated if left undefined.\n\t * @param type - Type of the channel.\n\t */\n\tcreateChannel(id: string | undefined, type: string): IChannel;\n\n\t/**\n\t * Bind the channel with the data store runtime. If the runtime\n\t * is attached then we attach the channel to make it live.\n\t */\n\tbindChannel(channel: IChannel): void;\n\n\t// Blob related calls\n\t/**\n\t * Api to upload a blob of data.\n\t * @param blob - blob to be uploaded.\n\t */\n\tuploadBlob(blob: ArrayBufferLike, signal?: AbortSignal): Promise<IFluidHandle<ArrayBufferLike>>;\n\n\t/**\n\t * Submits the signal to be sent to other clients.\n\t * @param type - Type of the signal.\n\t * @param content - Content of the signal.\n\t */\n\tsubmitSignal(type: string, content: any): void;\n\n\t/**\n\t * Returns the current quorum.\n\t */\n\tgetQuorum(): IQuorumClients;\n\n\t/**\n\t * Returns the current audience.\n\t */\n\tgetAudience(): IAudience;\n\n\t/**\n\t * Resolves when a local data store is attached.\n\t */\n\twaitAttached(): Promise<void>;\n\n\t/**\n\t * Exposes a handle to the root object / entryPoint of the data store. Use this as the primary way of interacting\n\t * with it.\n\t */\n\treadonly entryPoint: IFluidHandle<FluidObject>;\n\n\t/**\n\t * @deprecated - Will be removed in future major release. Migrate all usage of IFluidRouter to the \"entryPoint\" pattern. Refer to Removing-IFluidRouter.md\n\t */\n\trequest(request: IRequest): Promise<IResponse>;\n\n\t/**\n\t * @deprecated - Will be removed in future major release. Migrate all usage of IFluidRouter to the \"entryPoint\" pattern. Refer to Removing-IFluidRouter.md\n\t */\n\t// eslint-disable-next-line import/no-deprecated\n\treadonly IFluidRouter: IFluidRouter;\n}\n"]}
|