@fluidframework/aqueduct 2.0.0-internal.7.2.2 → 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/README.md +1 -2
- package/dist/aqueduct-alpha.d.ts +396 -0
- package/dist/aqueduct-beta.d.ts +146 -0
- package/dist/aqueduct-public.d.ts +146 -0
- package/dist/aqueduct-untrimmed.d.ts +459 -0
- package/dist/container-runtime-factories/{baseContainerRuntimeFactory.js → baseContainerRuntimeFactory.cjs} +2 -2
- package/dist/container-runtime-factories/{baseContainerRuntimeFactory.js.map → baseContainerRuntimeFactory.cjs.map} +1 -1
- package/dist/container-runtime-factories/baseContainerRuntimeFactory.d.ts +1 -1
- package/dist/container-runtime-factories/{containerRuntimeFactoryWithDefaultDataStore.js → containerRuntimeFactoryWithDefaultDataStore.cjs} +4 -4
- package/dist/container-runtime-factories/containerRuntimeFactoryWithDefaultDataStore.cjs.map +1 -0
- package/dist/container-runtime-factories/containerRuntimeFactoryWithDefaultDataStore.d.ts +1 -1
- package/dist/container-runtime-factories/{index.js → index.cjs} +3 -3
- package/dist/container-runtime-factories/index.cjs.map +1 -0
- package/dist/data-object-factories/{dataObjectFactory.js → dataObjectFactory.cjs} +3 -3
- package/dist/data-object-factories/dataObjectFactory.cjs.map +1 -0
- package/dist/data-object-factories/dataObjectFactory.d.ts +1 -1
- package/dist/data-object-factories/{index.js → index.cjs} +3 -3
- package/dist/data-object-factories/index.cjs.map +1 -0
- package/dist/data-object-factories/{pureDataObjectFactory.js → pureDataObjectFactory.cjs} +2 -2
- package/dist/data-object-factories/pureDataObjectFactory.cjs.map +1 -0
- package/dist/data-object-factories/pureDataObjectFactory.d.ts +3 -2
- package/dist/data-object-factories/pureDataObjectFactory.d.ts.map +1 -1
- package/dist/data-objects/{dataObject.js → dataObject.cjs} +3 -3
- package/dist/data-objects/{dataObject.js.map → dataObject.cjs.map} +1 -1
- package/dist/data-objects/dataObject.d.ts +1 -1
- package/dist/data-objects/{index.js → index.cjs} +3 -3
- package/dist/data-objects/index.cjs.map +1 -0
- package/dist/data-objects/{pureDataObject.js → pureDataObject.cjs} +2 -2
- package/dist/data-objects/{pureDataObject.js.map → pureDataObject.cjs.map} +1 -1
- package/dist/data-objects/pureDataObject.d.ts +1 -1
- package/dist/data-objects/{types.js → types.cjs} +1 -1
- package/dist/data-objects/types.cjs.map +1 -0
- package/dist/data-objects/types.d.ts +2 -2
- package/dist/{index.js → index.cjs} +6 -6
- package/dist/index.cjs.map +1 -0
- package/dist/request-handlers/{index.js → index.cjs} +2 -2
- package/dist/request-handlers/index.cjs.map +1 -0
- package/dist/request-handlers/{requestHandlers.js → requestHandlers.cjs} +4 -4
- package/dist/request-handlers/requestHandlers.cjs.map +1 -0
- package/dist/request-handlers/requestHandlers.d.ts +3 -3
- package/dist/tsdoc-metadata.json +1 -1
- package/dist/utils/{containerInteractions.js → containerInteractions.cjs} +4 -4
- package/dist/utils/containerInteractions.cjs.map +1 -0
- package/dist/utils/containerInteractions.d.ts +3 -3
- package/dist/utils/{index.js → index.cjs} +2 -2
- package/dist/utils/index.cjs.map +1 -0
- package/lib/aqueduct-alpha.d.ts +396 -0
- package/lib/aqueduct-beta.d.ts +146 -0
- package/lib/aqueduct-public.d.ts +146 -0
- package/lib/aqueduct-untrimmed.d.ts +459 -0
- package/lib/container-runtime-factories/baseContainerRuntimeFactory.d.ts +59 -0
- package/lib/container-runtime-factories/baseContainerRuntimeFactory.d.ts.map +1 -0
- package/lib/container-runtime-factories/{baseContainerRuntimeFactory.js → baseContainerRuntimeFactory.mjs} +2 -3
- package/lib/container-runtime-factories/baseContainerRuntimeFactory.mjs.map +1 -0
- package/lib/container-runtime-factories/containerRuntimeFactoryWithDefaultDataStore.d.ts +45 -0
- package/lib/container-runtime-factories/containerRuntimeFactoryWithDefaultDataStore.d.ts.map +1 -0
- package/lib/container-runtime-factories/{containerRuntimeFactoryWithDefaultDataStore.js → containerRuntimeFactoryWithDefaultDataStore.mjs} +4 -5
- package/lib/container-runtime-factories/containerRuntimeFactoryWithDefaultDataStore.mjs.map +1 -0
- package/lib/container-runtime-factories/index.d.ts +7 -0
- package/lib/container-runtime-factories/index.d.ts.map +1 -0
- package/lib/container-runtime-factories/{index.js → index.mjs} +3 -3
- package/lib/container-runtime-factories/index.mjs.map +1 -0
- package/lib/data-object-factories/dataObjectFactory.d.ts +23 -0
- package/lib/data-object-factories/dataObjectFactory.d.ts.map +1 -0
- package/lib/data-object-factories/{dataObjectFactory.js → dataObjectFactory.mjs} +3 -3
- package/lib/data-object-factories/dataObjectFactory.mjs.map +1 -0
- package/lib/data-object-factories/index.d.ts +7 -0
- package/lib/data-object-factories/index.d.ts.map +1 -0
- package/lib/data-object-factories/index.mjs +7 -0
- package/lib/data-object-factories/index.mjs.map +1 -0
- package/lib/data-object-factories/pureDataObjectFactory.d.ts +100 -0
- package/lib/data-object-factories/pureDataObjectFactory.d.ts.map +1 -0
- package/lib/data-object-factories/{pureDataObjectFactory.js → pureDataObjectFactory.mjs} +2 -2
- package/lib/data-object-factories/pureDataObjectFactory.mjs.map +1 -0
- package/lib/data-objects/dataObject.d.ts +38 -0
- package/lib/data-objects/dataObject.d.ts.map +1 -0
- package/lib/data-objects/{dataObject.js → dataObject.mjs} +3 -3
- package/lib/data-objects/dataObject.mjs.map +1 -0
- package/lib/data-objects/index.d.ts +8 -0
- package/lib/data-objects/index.d.ts.map +1 -0
- package/lib/data-objects/index.mjs +7 -0
- package/lib/data-objects/index.mjs.map +1 -0
- package/lib/data-objects/pureDataObject.d.ts +98 -0
- package/lib/data-objects/pureDataObject.d.ts.map +1 -0
- package/lib/data-objects/{pureDataObject.js → pureDataObject.mjs} +2 -2
- package/lib/data-objects/pureDataObject.mjs.map +1 -0
- package/lib/data-objects/types.d.ts +36 -0
- package/lib/data-objects/types.d.ts.map +1 -0
- package/lib/data-objects/{types.js → types.mjs} +1 -1
- package/lib/data-objects/types.mjs.map +1 -0
- package/lib/index.d.ts +10 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.mjs +10 -0
- package/lib/index.mjs.map +1 -0
- package/lib/request-handlers/index.d.ts +6 -0
- package/lib/request-handlers/index.d.ts.map +1 -0
- package/lib/request-handlers/{index.js → index.mjs} +2 -2
- package/lib/request-handlers/index.mjs.map +1 -0
- package/lib/request-handlers/requestHandlers.d.ts +46 -0
- package/lib/request-handlers/requestHandlers.d.ts.map +1 -0
- package/lib/request-handlers/{requestHandlers.js → requestHandlers.mjs} +4 -5
- package/lib/request-handlers/requestHandlers.mjs.map +1 -0
- package/lib/utils/containerInteractions.d.ts +38 -0
- package/lib/utils/containerInteractions.d.ts.map +1 -0
- package/lib/utils/{containerInteractions.js → containerInteractions.mjs} +4 -4
- package/lib/utils/containerInteractions.mjs.map +1 -0
- package/lib/utils/index.d.ts +6 -0
- package/lib/utils/index.d.ts.map +1 -0
- package/lib/utils/{index.js → index.mjs} +2 -2
- package/lib/utils/index.mjs.map +1 -0
- package/package.json +55 -36
- package/dist/container-runtime-factories/containerRuntimeFactoryWithDefaultDataStore.js.map +0 -1
- package/dist/container-runtime-factories/index.js.map +0 -1
- package/dist/data-object-factories/dataObjectFactory.js.map +0 -1
- package/dist/data-object-factories/index.js.map +0 -1
- package/dist/data-object-factories/pureDataObjectFactory.js.map +0 -1
- package/dist/data-objects/index.js.map +0 -1
- package/dist/data-objects/types.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/request-handlers/index.js.map +0 -1
- package/dist/request-handlers/requestHandlers.js.map +0 -1
- package/dist/utils/containerInteractions.js.map +0 -1
- package/dist/utils/index.js.map +0 -1
- package/lib/container-runtime-factories/baseContainerRuntimeFactory.js.map +0 -1
- package/lib/container-runtime-factories/containerRuntimeFactoryWithDefaultDataStore.js.map +0 -1
- package/lib/container-runtime-factories/index.js.map +0 -1
- package/lib/data-object-factories/dataObjectFactory.js.map +0 -1
- package/lib/data-object-factories/index.js +0 -7
- package/lib/data-object-factories/index.js.map +0 -1
- package/lib/data-object-factories/pureDataObjectFactory.js.map +0 -1
- package/lib/data-objects/dataObject.js.map +0 -1
- package/lib/data-objects/index.js +0 -7
- package/lib/data-objects/index.js.map +0 -1
- package/lib/data-objects/pureDataObject.js.map +0 -1
- package/lib/data-objects/types.js.map +0 -1
- package/lib/index.js +0 -24
- package/lib/index.js.map +0 -1
- package/lib/request-handlers/index.js.map +0 -1
- package/lib/request-handlers/requestHandlers.js.map +0 -1
- package/lib/utils/containerInteractions.js.map +0 -1
- package/lib/utils/index.js.map +0 -1
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
import { FluidDataStoreRegistry, ContainerRuntime, } from "@fluidframework/container-runtime";
|
|
6
|
-
// eslint-disable-next-line import/no-deprecated
|
|
7
6
|
import { buildRuntimeRequestHandler } from "@fluidframework/request-handler";
|
|
8
7
|
import { DependencyContainer, } from "@fluidframework/synthesize";
|
|
9
8
|
import { RuntimeFactoryHelper } from "@fluidframework/runtime-utils";
|
|
@@ -11,7 +10,7 @@ import { RuntimeFactoryHelper } from "@fluidframework/runtime-utils";
|
|
|
11
10
|
* BaseContainerRuntimeFactory produces container runtimes with the specified data store and service registries,
|
|
12
11
|
* request handlers, runtimeOptions, and entryPoint initialization function.
|
|
13
12
|
* It can be subclassed to implement a first-time initialization procedure for the containers it creates.
|
|
14
|
-
* @
|
|
13
|
+
* @alpha
|
|
15
14
|
*/
|
|
16
15
|
export class BaseContainerRuntimeFactory extends RuntimeFactoryHelper {
|
|
17
16
|
get IFluidDataStoreRegistry() {
|
|
@@ -71,4 +70,4 @@ export class BaseContainerRuntimeFactory extends RuntimeFactoryHelper {
|
|
|
71
70
|
*/
|
|
72
71
|
async containerHasInitialized(runtime) { }
|
|
73
72
|
}
|
|
74
|
-
//# sourceMappingURL=baseContainerRuntimeFactory.
|
|
73
|
+
//# sourceMappingURL=baseContainerRuntimeFactory.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"baseContainerRuntimeFactory.mjs","sourceRoot":"","sources":["../../src/container-runtime-factories/baseContainerRuntimeFactory.ts"],"names":[],"mappings":"AAAA;;;GAGG;OAGI,EAEN,sBAAsB,EACtB,gBAAgB,GAChB,MAAM,mCAAmC;OAGnC,EAAyB,0BAA0B,EAAE,MAAM,iCAAiC;OAM5F,EACN,mBAAmB,GAGnB,MAAM,4BAA4B;OAC5B,EAAE,oBAAoB,EAAE,MAAM,+BAA+B;AAGpE;;;;;GAKG;AACH,MAAM,OAAO,2BACZ,SAAQ,oBAAoB;IAG5B,IAAW,uBAAuB;QACjC,OAAO,IAAI,CAAC,QAAQ,CAAC;IACtB,CAAC;IASD;;;;;;;OAOG;IACH,YAAY,KAOX;QACA,KAAK,EAAE,CAAC;QAER,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC,eAAe,CAAC;QAC7C,IAAI,CAAC,mBAAmB,GAAG,KAAK,CAAC,mBAAmB,CAAC;QACrD,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC,cAAc,CAAC;QAC3C,IAAI,CAAC,iBAAiB,GAAG,KAAK,CAAC,iBAAiB,CAAC;QACjD,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC,eAAe,IAAI,EAAE,CAAC;QACnD,IAAI,CAAC,QAAQ,GAAG,IAAI,sBAAsB,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;IAClE,CAAC;IAEM,KAAK,CAAC,oBAAoB,CAAC,OAAyB;QAC1D,MAAM,IAAI,CAAC,8BAA8B,CAAC,OAAO,CAAC,CAAC;QACnD,MAAM,IAAI,CAAC,uBAAuB,CAAC,OAAO,CAAC,CAAC;IAC7C,CAAC;IAEM,KAAK,CAAC,uBAAuB,CAAC,OAAyB;QAC7D,MAAM,IAAI,CAAC,uBAAuB,CAAC,OAAO,CAAC,CAAC;IAC7C,CAAC;IAEM,KAAK,CAAC,aAAa,CACzB,OAA0B,EAC1B,QAAiB;QAEjB,MAAM,KAAK,GAAgD,OAAO,CAAC,KAAK,CAAC;QACzE,IAAI,IAAI,CAAC,mBAAmB,EAAE;YAC7B,MAAM,EAAE,GAAG,IAAI,mBAAmB,CACjC,IAAI,CAAC,mBAAmB,EACxB,KAAK,CAAC,2BAA2B,CACjC,CAAC;YACF,KAAK,CAAC,2BAA2B,GAAG,EAAE,CAAC;SACvC;QAED,OAAO,gBAAgB,CAAC,WAAW,CAAC;YACnC,OAAO;YACP,QAAQ;YACR,cAAc,EAAE,IAAI,CAAC,cAAc;YACnC,eAAe,EAAE,IAAI,CAAC,eAAe;YACrC,cAAc,EAAE,KAAK;YACrB,gDAAgD;YAChD,cAAc,EAAE,0BAA0B,CAAC,GAAG,IAAI,CAAC,eAAe,CAAC;YACnE,iBAAiB,EAAE,IAAI,CAAC,iBAAiB;SACzC,CAAC,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACO,KAAK,CAAC,8BAA8B,CAAC,OAA0B,IAAG,CAAC;IAE7E;;;;OAIG;IACO,KAAK,CAAC,uBAAuB,CAAC,OAA0B,IAAG,CAAC;CACtE","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { IContainerContext } from \"@fluidframework/container-definitions\";\nimport {\n\tIContainerRuntimeOptions,\n\tFluidDataStoreRegistry,\n\tContainerRuntime,\n} from \"@fluidframework/container-runtime\";\nimport { IContainerRuntime } from \"@fluidframework/container-runtime-definitions\";\n// eslint-disable-next-line import/no-deprecated\nimport { RuntimeRequestHandler, buildRuntimeRequestHandler } from \"@fluidframework/request-handler\";\nimport {\n\tIFluidDataStoreRegistry,\n\tIProvideFluidDataStoreRegistry,\n\tNamedFluidDataStoreRegistryEntries,\n} from \"@fluidframework/runtime-definitions\";\nimport {\n\tDependencyContainer,\n\tIFluidDependencySynthesizer,\n\tIProvideFluidDependencySynthesizer,\n} from \"@fluidframework/synthesize\";\nimport { RuntimeFactoryHelper } from \"@fluidframework/runtime-utils\";\nimport { FluidObject } from \"@fluidframework/core-interfaces\";\n\n/**\n * BaseContainerRuntimeFactory produces container runtimes with the specified data store and service registries,\n * request handlers, runtimeOptions, and entryPoint initialization function.\n * It can be subclassed to implement a first-time initialization procedure for the containers it creates.\n * @alpha\n */\nexport class BaseContainerRuntimeFactory\n\textends RuntimeFactoryHelper\n\timplements IProvideFluidDataStoreRegistry\n{\n\tpublic get IFluidDataStoreRegistry() {\n\t\treturn this.registry;\n\t}\n\tprivate readonly registry: IFluidDataStoreRegistry;\n\n\tprivate readonly registryEntries: NamedFluidDataStoreRegistryEntries;\n\tprivate readonly dependencyContainer?: IFluidDependencySynthesizer;\n\tprivate readonly runtimeOptions?: IContainerRuntimeOptions;\n\tprivate readonly requestHandlers: RuntimeRequestHandler[];\n\tprivate readonly provideEntryPoint: (runtime: IContainerRuntime) => Promise<FluidObject>;\n\n\t/**\n\t * @param registryEntries - The data store registry for containers produced\n\t * @param dependencyContainer - deprecated, will be removed in a future release\n\t * @param requestHandlers - Request handlers for containers produced\n\t * @param runtimeOptions - The runtime options passed to the ContainerRuntime when instantiating it\n\t * @param provideEntryPoint - Function that will initialize the entryPoint of the ContainerRuntime instances\n\t * created with this factory\n\t */\n\tconstructor(props: {\n\t\tregistryEntries: NamedFluidDataStoreRegistryEntries;\n\t\tdependencyContainer?: IFluidDependencySynthesizer;\n\t\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\trequestHandlers?: RuntimeRequestHandler[];\n\t\truntimeOptions?: IContainerRuntimeOptions;\n\t\tprovideEntryPoint: (runtime: IContainerRuntime) => Promise<FluidObject>;\n\t}) {\n\t\tsuper();\n\n\t\tthis.registryEntries = props.registryEntries;\n\t\tthis.dependencyContainer = props.dependencyContainer;\n\t\tthis.runtimeOptions = props.runtimeOptions;\n\t\tthis.provideEntryPoint = props.provideEntryPoint;\n\t\tthis.requestHandlers = props.requestHandlers ?? [];\n\t\tthis.registry = new FluidDataStoreRegistry(this.registryEntries);\n\t}\n\n\tpublic async instantiateFirstTime(runtime: ContainerRuntime): Promise<void> {\n\t\tawait this.containerInitializingFirstTime(runtime);\n\t\tawait this.containerHasInitialized(runtime);\n\t}\n\n\tpublic async instantiateFromExisting(runtime: ContainerRuntime): Promise<void> {\n\t\tawait this.containerHasInitialized(runtime);\n\t}\n\n\tpublic async preInitialize(\n\t\tcontext: IContainerContext,\n\t\texisting: boolean,\n\t): Promise<ContainerRuntime> {\n\t\tconst scope: Partial<IProvideFluidDependencySynthesizer> = context.scope;\n\t\tif (this.dependencyContainer) {\n\t\t\tconst dc = new DependencyContainer<FluidObject>(\n\t\t\t\tthis.dependencyContainer,\n\t\t\t\tscope.IFluidDependencySynthesizer,\n\t\t\t);\n\t\t\tscope.IFluidDependencySynthesizer = dc;\n\t\t}\n\n\t\treturn ContainerRuntime.loadRuntime({\n\t\t\tcontext,\n\t\t\texisting,\n\t\t\truntimeOptions: this.runtimeOptions,\n\t\t\tregistryEntries: this.registryEntries,\n\t\t\tcontainerScope: scope,\n\t\t\t// eslint-disable-next-line import/no-deprecated\n\t\t\trequestHandler: buildRuntimeRequestHandler(...this.requestHandlers),\n\t\t\tprovideEntryPoint: this.provideEntryPoint,\n\t\t});\n\t}\n\n\t/**\n\t * Subclasses may override containerInitializingFirstTime to perform any setup steps at the time the container\n\t * is created. This likely includes creating any initial data stores that are expected to be there at the outset.\n\t * @param runtime - The container runtime for the container being initialized\n\t */\n\tprotected async containerInitializingFirstTime(runtime: IContainerRuntime) {}\n\n\t/**\n\t * Subclasses may override containerHasInitialized to perform any steps after the container has initialized.\n\t * This likely includes loading any data stores that are expected to be there at the outset.\n\t * @param runtime - The container runtime for the container being initialized\n\t */\n\tprotected async containerHasInitialized(runtime: IContainerRuntime) {}\n}\n"]}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*/
|
|
5
|
+
import { IContainerRuntimeOptions } from "@fluidframework/container-runtime";
|
|
6
|
+
import { IFluidDataStoreFactory, NamedFluidDataStoreRegistryEntries } from "@fluidframework/runtime-definitions";
|
|
7
|
+
import { IContainerRuntime } from "@fluidframework/container-runtime-definitions";
|
|
8
|
+
import { IFluidDependencySynthesizer } from "@fluidframework/synthesize";
|
|
9
|
+
import { RuntimeRequestHandler } from "@fluidframework/request-handler";
|
|
10
|
+
import { FluidObject } from "@fluidframework/core-interfaces";
|
|
11
|
+
import { BaseContainerRuntimeFactory } from "./baseContainerRuntimeFactory.mjs";
|
|
12
|
+
/**
|
|
13
|
+
* A ContainerRuntimeFactory that initializes Containers with a single default data store, which can be requested from
|
|
14
|
+
* the container with an empty URL.
|
|
15
|
+
*
|
|
16
|
+
* This factory should be exposed as fluidExport off the entry point to your module.
|
|
17
|
+
* @alpha
|
|
18
|
+
*/
|
|
19
|
+
export declare class ContainerRuntimeFactoryWithDefaultDataStore extends BaseContainerRuntimeFactory {
|
|
20
|
+
static readonly defaultDataStoreId = "default";
|
|
21
|
+
protected readonly defaultFactory: IFluidDataStoreFactory;
|
|
22
|
+
/**
|
|
23
|
+
* Constructor
|
|
24
|
+
* @param defaultFactory -
|
|
25
|
+
* @param registryEntries -
|
|
26
|
+
* @param dependencyContainer - deprecated, will be removed in a future release
|
|
27
|
+
* @param requestHandlers -
|
|
28
|
+
* @param runtimeOptions -
|
|
29
|
+
* @param provideEntryPoint -
|
|
30
|
+
*/
|
|
31
|
+
constructor(props: {
|
|
32
|
+
defaultFactory: IFluidDataStoreFactory;
|
|
33
|
+
registryEntries: NamedFluidDataStoreRegistryEntries;
|
|
34
|
+
dependencyContainer?: IFluidDependencySynthesizer;
|
|
35
|
+
/** @deprecated Will be removed in future major release. Migrate all usage of IFluidRouter to the "entryPoint" pattern. Refer to Removing-IFluidRouter.md */
|
|
36
|
+
requestHandlers?: RuntimeRequestHandler[];
|
|
37
|
+
runtimeOptions?: IContainerRuntimeOptions;
|
|
38
|
+
provideEntryPoint?: (runtime: IContainerRuntime) => Promise<FluidObject>;
|
|
39
|
+
});
|
|
40
|
+
/**
|
|
41
|
+
* {@inheritDoc BaseContainerRuntimeFactory.containerInitializingFirstTime}
|
|
42
|
+
*/
|
|
43
|
+
protected containerInitializingFirstTime(runtime: IContainerRuntime): Promise<void>;
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=containerRuntimeFactoryWithDefaultDataStore.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"containerRuntimeFactoryWithDefaultDataStore.d.ts","sourceRoot":"","sources":["../../src/container-runtime-factories/containerRuntimeFactoryWithDefaultDataStore.ts"],"names":[],"mappings":"AAAA;;;GAGG;OAEI,EAAE,wBAAwB,EAAE,MAAM,mCAAmC;OACrE,EACN,sBAAsB,EACtB,kCAAkC,EAClC,MAAM,qCAAqC;OACrC,EAAE,iBAAiB,EAAE,MAAM,+CAA+C;OAC1E,EAAE,2BAA2B,EAAE,MAAM,4BAA4B;OACjE,EAAE,qBAAqB,EAAE,MAAM,iCAAiC;OAChE,EAAE,WAAW,EAAE,MAAM,iCAAiC;OAGtD,EAAE,2BAA2B,EAAE;AAYtC;;;;;;GAMG;AACH,qBAAa,2CAA4C,SAAQ,2BAA2B;IAC3F,gBAAuB,kBAAkB,aAAsB;IAE/D,SAAS,CAAC,QAAQ,CAAC,cAAc,EAAE,sBAAsB,CAAC;IAE1D;;;;;;;;OAQG;gBACS,KAAK,EAAE;QAClB,cAAc,EAAE,sBAAsB,CAAC;QACvC,eAAe,EAAE,kCAAkC,CAAC;QACpD,mBAAmB,CAAC,EAAE,2BAA2B,CAAC;QAClD,4JAA4J;QAC5J,eAAe,CAAC,EAAE,qBAAqB,EAAE,CAAC;QAC1C,cAAc,CAAC,EAAE,wBAAwB,CAAC;QAC1C,iBAAiB,CAAC,EAAE,CAAC,OAAO,EAAE,iBAAiB,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC;KACzE;IAcD;;OAEG;cACa,8BAA8B,CAAC,OAAO,EAAE,iBAAiB;CAIzE"}
|
|
@@ -2,9 +2,8 @@
|
|
|
2
2
|
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
|
-
|
|
6
|
-
import {
|
|
7
|
-
import { BaseContainerRuntimeFactory } from "./baseContainerRuntimeFactory";
|
|
5
|
+
import { defaultRouteRequestHandler } from "../request-handlers/index.mjs";
|
|
6
|
+
import { BaseContainerRuntimeFactory } from "./baseContainerRuntimeFactory.mjs";
|
|
8
7
|
const defaultDataStoreId = "default";
|
|
9
8
|
const getDefaultFluidObject = async (runtime) => {
|
|
10
9
|
const entryPoint = await runtime.getAliasedDataStoreEntryPoint("default");
|
|
@@ -18,7 +17,7 @@ const getDefaultFluidObject = async (runtime) => {
|
|
|
18
17
|
* the container with an empty URL.
|
|
19
18
|
*
|
|
20
19
|
* This factory should be exposed as fluidExport off the entry point to your module.
|
|
21
|
-
* @
|
|
20
|
+
* @alpha
|
|
22
21
|
*/
|
|
23
22
|
export class ContainerRuntimeFactoryWithDefaultDataStore extends BaseContainerRuntimeFactory {
|
|
24
23
|
/**
|
|
@@ -50,4 +49,4 @@ export class ContainerRuntimeFactoryWithDefaultDataStore extends BaseContainerRu
|
|
|
50
49
|
}
|
|
51
50
|
}
|
|
52
51
|
ContainerRuntimeFactoryWithDefaultDataStore.defaultDataStoreId = defaultDataStoreId;
|
|
53
|
-
//# sourceMappingURL=containerRuntimeFactoryWithDefaultDataStore.
|
|
52
|
+
//# sourceMappingURL=containerRuntimeFactoryWithDefaultDataStore.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"containerRuntimeFactoryWithDefaultDataStore.mjs","sourceRoot":"","sources":["../../src/container-runtime-factories/containerRuntimeFactoryWithDefaultDataStore.ts"],"names":[],"mappings":"AAAA;;;GAGG;OAYI,EAAE,0BAA0B,EAAE;OAC9B,EAAE,2BAA2B,EAAE;AAEtC,MAAM,kBAAkB,GAAG,SAAS,CAAC;AAErC,MAAM,qBAAqB,GAAG,KAAK,EAAE,OAA0B,EAAE,EAAE;IAClE,MAAM,UAAU,GAAG,MAAM,OAAO,CAAC,6BAA6B,CAAC,SAAS,CAAC,CAAC;IAC1E,IAAI,UAAU,KAAK,SAAS,EAAE;QAC7B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;KAChD;IACD,OAAO,UAAU,CAAC,GAAG,EAAE,CAAC;AACzB,CAAC,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,OAAO,2CAA4C,SAAQ,2BAA2B;IAK3F;;;;;;;;OAQG;IACH,YAAY,KAQX;QACA,MAAM,eAAe,GAAG,KAAK,CAAC,eAAe,IAAI,EAAE,CAAC;QACpD,MAAM,iBAAiB,GAAG,KAAK,CAAC,iBAAiB,IAAI,qBAAqB,CAAC;QAE3E,KAAK,CAAC;YACL,GAAG,KAAK;YACR,gDAAgD;YAChD,eAAe,EAAE,CAAC,0BAA0B,CAAC,kBAAkB,CAAC,EAAE,GAAG,eAAe,CAAC;YACrF,iBAAiB;SACjB,CAAC,CAAC;QAEH,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC,cAAc,CAAC;IAC5C,CAAC;IAED;;OAEG;IACO,KAAK,CAAC,8BAA8B,CAAC,OAA0B;QACxE,MAAM,SAAS,GAAG,MAAM,OAAO,CAAC,eAAe,CAAC,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;QAC1E,MAAM,SAAS,CAAC,WAAW,CAAC,kBAAkB,CAAC,CAAC;IACjD,CAAC;;AAzCsB,8DAAkB,GAAG,kBAAkB,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { IContainerRuntimeOptions } from \"@fluidframework/container-runtime\";\nimport {\n\tIFluidDataStoreFactory,\n\tNamedFluidDataStoreRegistryEntries,\n} from \"@fluidframework/runtime-definitions\";\nimport { IContainerRuntime } from \"@fluidframework/container-runtime-definitions\";\nimport { IFluidDependencySynthesizer } from \"@fluidframework/synthesize\";\nimport { RuntimeRequestHandler } from \"@fluidframework/request-handler\";\nimport { FluidObject } from \"@fluidframework/core-interfaces\";\n// eslint-disable-next-line import/no-deprecated\nimport { defaultRouteRequestHandler } from \"../request-handlers\";\nimport { BaseContainerRuntimeFactory } from \"./baseContainerRuntimeFactory\";\n\nconst defaultDataStoreId = \"default\";\n\nconst getDefaultFluidObject = async (runtime: IContainerRuntime) => {\n\tconst entryPoint = await runtime.getAliasedDataStoreEntryPoint(\"default\");\n\tif (entryPoint === undefined) {\n\t\tthrow new Error(\"default dataStore must exist\");\n\t}\n\treturn entryPoint.get();\n};\n\n/**\n * A ContainerRuntimeFactory that initializes Containers with a single default data store, which can be requested from\n * the container with an empty URL.\n *\n * This factory should be exposed as fluidExport off the entry point to your module.\n * @alpha\n */\nexport class ContainerRuntimeFactoryWithDefaultDataStore extends BaseContainerRuntimeFactory {\n\tpublic static readonly defaultDataStoreId = defaultDataStoreId;\n\n\tprotected readonly defaultFactory: IFluidDataStoreFactory;\n\n\t/**\n\t * Constructor\n\t * @param defaultFactory -\n\t * @param registryEntries -\n\t * @param dependencyContainer - deprecated, will be removed in a future release\n\t * @param requestHandlers -\n\t * @param runtimeOptions -\n\t * @param provideEntryPoint -\n\t */\n\tconstructor(props: {\n\t\tdefaultFactory: IFluidDataStoreFactory;\n\t\tregistryEntries: NamedFluidDataStoreRegistryEntries;\n\t\tdependencyContainer?: IFluidDependencySynthesizer;\n\t\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\trequestHandlers?: RuntimeRequestHandler[];\n\t\truntimeOptions?: IContainerRuntimeOptions;\n\t\tprovideEntryPoint?: (runtime: IContainerRuntime) => Promise<FluidObject>;\n\t}) {\n\t\tconst requestHandlers = props.requestHandlers ?? [];\n\t\tconst provideEntryPoint = props.provideEntryPoint ?? getDefaultFluidObject;\n\n\t\tsuper({\n\t\t\t...props,\n\t\t\t// eslint-disable-next-line import/no-deprecated\n\t\t\trequestHandlers: [defaultRouteRequestHandler(defaultDataStoreId), ...requestHandlers],\n\t\t\tprovideEntryPoint,\n\t\t});\n\n\t\tthis.defaultFactory = props.defaultFactory;\n\t}\n\n\t/**\n\t * {@inheritDoc BaseContainerRuntimeFactory.containerInitializingFirstTime}\n\t */\n\tprotected async containerInitializingFirstTime(runtime: IContainerRuntime) {\n\t\tconst dataStore = await runtime.createDataStore(this.defaultFactory.type);\n\t\tawait dataStore.trySetAlias(defaultDataStoreId);\n\t}\n}\n"]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*/
|
|
5
|
+
export { BaseContainerRuntimeFactory } from "./baseContainerRuntimeFactory.mjs";
|
|
6
|
+
export { ContainerRuntimeFactoryWithDefaultDataStore } from "./containerRuntimeFactoryWithDefaultDataStore.mjs";
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/container-runtime-factories/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;OAEI,EAAE,2BAA2B,EAAE;OAC/B,EAAE,2CAA2C,EAAE"}
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
|
-
export { BaseContainerRuntimeFactory } from "./baseContainerRuntimeFactory";
|
|
6
|
-
export { ContainerRuntimeFactoryWithDefaultDataStore } from "./containerRuntimeFactoryWithDefaultDataStore";
|
|
7
|
-
//# sourceMappingURL=index.
|
|
5
|
+
export { BaseContainerRuntimeFactory } from "./baseContainerRuntimeFactory.mjs";
|
|
6
|
+
export { ContainerRuntimeFactoryWithDefaultDataStore } from "./containerRuntimeFactoryWithDefaultDataStore.mjs";
|
|
7
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/container-runtime-factories/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;OAEI,EAAE,2BAA2B,EAAE;OAC/B,EAAE,2CAA2C,EAAE","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nexport { BaseContainerRuntimeFactory } from \"./baseContainerRuntimeFactory\";\nexport { ContainerRuntimeFactoryWithDefaultDataStore } from \"./containerRuntimeFactoryWithDefaultDataStore\";\n"]}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*/
|
|
5
|
+
import { NamedFluidDataStoreRegistryEntries } from "@fluidframework/runtime-definitions";
|
|
6
|
+
import { IChannelFactory } from "@fluidframework/datastore-definitions";
|
|
7
|
+
import { FluidObjectSymbolProvider } from "@fluidframework/synthesize";
|
|
8
|
+
import { FluidDataStoreRuntime } from "@fluidframework/datastore";
|
|
9
|
+
import { DataObject, DataObjectTypes, IDataObjectProps } from "../data-objects/index.mjs";
|
|
10
|
+
import { PureDataObjectFactory } from "./pureDataObjectFactory.mjs";
|
|
11
|
+
/**
|
|
12
|
+
* DataObjectFactory is the IFluidDataStoreFactory for use with DataObjects.
|
|
13
|
+
* It facilitates DataObject's features (such as its shared directory) by
|
|
14
|
+
* ensuring relevant shared objects etc are available to the factory.
|
|
15
|
+
*
|
|
16
|
+
* @typeParam TObj - DataObject (concrete type)
|
|
17
|
+
* @typeParam I - The input types for the DataObject
|
|
18
|
+
* @alpha
|
|
19
|
+
*/
|
|
20
|
+
export declare class DataObjectFactory<TObj extends DataObject<I>, I extends DataObjectTypes = DataObjectTypes> extends PureDataObjectFactory<TObj, I> {
|
|
21
|
+
constructor(type: string, ctor: new (props: IDataObjectProps<I>) => TObj, sharedObjects: readonly IChannelFactory[] | undefined, optionalProviders: FluidObjectSymbolProvider<I["OptionalProviders"]>, registryEntries?: NamedFluidDataStoreRegistryEntries, runtimeFactory?: typeof FluidDataStoreRuntime);
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=dataObjectFactory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dataObjectFactory.d.ts","sourceRoot":"","sources":["../../src/data-object-factories/dataObjectFactory.ts"],"names":[],"mappings":"AAAA;;;GAGG;OAGI,EAAE,kCAAkC,EAAE,MAAM,qCAAqC;OACjF,EAAE,eAAe,EAAE,MAAM,uCAAuC;OAChE,EAAE,yBAAyB,EAAE,MAAM,4BAA4B;OAC/D,EAAE,qBAAqB,EAAE,MAAM,2BAA2B;OAE1D,EAAE,UAAU,EAAE,eAAe,EAAE,gBAAgB,EAAE;OACjD,EAAE,qBAAqB,EAAE;AAEhC;;;;;;;;GAQG;AACH,qBAAa,iBAAiB,CAC7B,IAAI,SAAS,UAAU,CAAC,CAAC,CAAC,EAC1B,CAAC,SAAS,eAAe,GAAG,eAAe,CAC1C,SAAQ,qBAAqB,CAAC,IAAI,EAAE,CAAC,CAAC;gBAEtC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,KAAK,KAAK,EAAE,gBAAgB,CAAC,CAAC,CAAC,KAAK,IAAI,EAC9C,aAAa,wCAAiC,EAC9C,iBAAiB,EAAE,yBAAyB,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,EACpE,eAAe,CAAC,EAAE,kCAAkC,EACpD,cAAc,GAAE,OAAO,qBAA6C;CAiBrE"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { DirectoryFactory, MapFactory, SharedDirectory, SharedMap } from "@fluidframework/map";
|
|
6
6
|
import { FluidDataStoreRuntime } from "@fluidframework/datastore";
|
|
7
|
-
import { PureDataObjectFactory } from "./pureDataObjectFactory";
|
|
7
|
+
import { PureDataObjectFactory } from "./pureDataObjectFactory.mjs";
|
|
8
8
|
/**
|
|
9
9
|
* DataObjectFactory is the IFluidDataStoreFactory for use with DataObjects.
|
|
10
10
|
* It facilitates DataObject's features (such as its shared directory) by
|
|
@@ -12,7 +12,7 @@ import { PureDataObjectFactory } from "./pureDataObjectFactory";
|
|
|
12
12
|
*
|
|
13
13
|
* @typeParam TObj - DataObject (concrete type)
|
|
14
14
|
* @typeParam I - The input types for the DataObject
|
|
15
|
-
* @
|
|
15
|
+
* @alpha
|
|
16
16
|
*/
|
|
17
17
|
export class DataObjectFactory extends PureDataObjectFactory {
|
|
18
18
|
constructor(type, ctor, sharedObjects = [], optionalProviders, registryEntries, runtimeFactory = FluidDataStoreRuntime) {
|
|
@@ -29,4 +29,4 @@ export class DataObjectFactory extends PureDataObjectFactory {
|
|
|
29
29
|
super(type, ctor, mergedObjects, optionalProviders, registryEntries, runtimeFactory);
|
|
30
30
|
}
|
|
31
31
|
}
|
|
32
|
-
//# sourceMappingURL=dataObjectFactory.
|
|
32
|
+
//# sourceMappingURL=dataObjectFactory.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dataObjectFactory.mjs","sourceRoot":"","sources":["../../src/data-object-factories/dataObjectFactory.ts"],"names":[],"mappings":"AAAA;;;GAGG;OAEI,EAAE,gBAAgB,EAAE,UAAU,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,qBAAqB;OAIvF,EAAE,qBAAqB,EAAE,MAAM,2BAA2B;OAG1D,EAAE,qBAAqB,EAAE;AAEhC;;;;;;;;GAQG;AACH,MAAM,OAAO,iBAGX,SAAQ,qBAA8B;IACvC,YACC,IAAY,EACZ,IAA8C,EAC9C,gBAA4C,EAAE,EAC9C,iBAAoE,EACpE,eAAoD,EACpD,iBAA+C,qBAAqB;QAEpE,MAAM,aAAa,GAAG,CAAC,GAAG,aAAa,CAAC,CAAC;QAEzC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,KAAK,gBAAgB,CAAC,IAAI,CAAC,EAAE;YAC7E,sCAAsC;YACtC,aAAa,CAAC,IAAI,CAAC,eAAe,CAAC,UAAU,EAAE,CAAC,CAAC;SACjD;QAED,0GAA0G;QAC1G,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,OAAO,CAAC,IAAI,KAAK,UAAU,CAAC,IAAI,CAAC,EAAE;YACvE,gCAAgC;YAChC,aAAa,CAAC,IAAI,CAAC,SAAS,CAAC,UAAU,EAAE,CAAC,CAAC;SAC3C;QAED,KAAK,CAAC,IAAI,EAAE,IAAI,EAAE,aAAa,EAAE,iBAAiB,EAAE,eAAe,EAAE,cAAc,CAAC,CAAC;IACtF,CAAC;CACD","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { DirectoryFactory, MapFactory, SharedDirectory, SharedMap } from \"@fluidframework/map\";\nimport { NamedFluidDataStoreRegistryEntries } from \"@fluidframework/runtime-definitions\";\nimport { IChannelFactory } from \"@fluidframework/datastore-definitions\";\nimport { FluidObjectSymbolProvider } from \"@fluidframework/synthesize\";\nimport { FluidDataStoreRuntime } from \"@fluidframework/datastore\";\n\nimport { DataObject, DataObjectTypes, IDataObjectProps } from \"../data-objects\";\nimport { PureDataObjectFactory } from \"./pureDataObjectFactory\";\n\n/**\n * DataObjectFactory is the IFluidDataStoreFactory for use with DataObjects.\n * It facilitates DataObject's features (such as its shared directory) by\n * ensuring relevant shared objects etc are available to the factory.\n *\n * @typeParam TObj - DataObject (concrete type)\n * @typeParam I - The input types for the DataObject\n * @alpha\n */\nexport class DataObjectFactory<\n\tTObj extends DataObject<I>,\n\tI extends DataObjectTypes = DataObjectTypes,\n> extends PureDataObjectFactory<TObj, I> {\n\tconstructor(\n\t\ttype: string,\n\t\tctor: new (props: IDataObjectProps<I>) => TObj,\n\t\tsharedObjects: readonly IChannelFactory[] = [],\n\t\toptionalProviders: FluidObjectSymbolProvider<I[\"OptionalProviders\"]>,\n\t\tregistryEntries?: NamedFluidDataStoreRegistryEntries,\n\t\truntimeFactory: typeof FluidDataStoreRuntime = FluidDataStoreRuntime,\n\t) {\n\t\tconst mergedObjects = [...sharedObjects];\n\n\t\tif (!sharedObjects.find((factory) => factory.type === DirectoryFactory.Type)) {\n\t\t\t// User did not register for directory\n\t\t\tmergedObjects.push(SharedDirectory.getFactory());\n\t\t}\n\n\t\t// TODO: Remove SharedMap factory when compatibility with SharedMap DataObject is no longer needed in 0.10\n\t\tif (!sharedObjects.find((factory) => factory.type === MapFactory.Type)) {\n\t\t\t// User did not register for map\n\t\t\tmergedObjects.push(SharedMap.getFactory());\n\t\t}\n\n\t\tsuper(type, ctor, mergedObjects, optionalProviders, registryEntries, runtimeFactory);\n\t}\n}\n"]}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*/
|
|
5
|
+
export { DataObjectFactory } from "./dataObjectFactory.mjs";
|
|
6
|
+
export { IRootDataObjectFactory, PureDataObjectFactory } from "./pureDataObjectFactory.mjs";
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/data-object-factories/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;OAEI,EAAE,iBAAiB,EAAE;OACrB,EAAE,sBAAsB,EAAE,qBAAqB,EAAE"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*/
|
|
5
|
+
export { DataObjectFactory } from "./dataObjectFactory.mjs";
|
|
6
|
+
export { PureDataObjectFactory } from "./pureDataObjectFactory.mjs";
|
|
7
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/data-object-factories/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;OAEI,EAAE,iBAAiB,EAAE;OACrB,EAA0B,qBAAqB,EAAE","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nexport { DataObjectFactory } from \"./dataObjectFactory\";\nexport { IRootDataObjectFactory, PureDataObjectFactory } from \"./pureDataObjectFactory\";\n"]}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*/
|
|
5
|
+
import { IFluidRouter } from "@fluidframework/core-interfaces";
|
|
6
|
+
import { FluidDataStoreRuntime } from "@fluidframework/datastore";
|
|
7
|
+
import { IFluidDataStoreContext, IContainerRuntimeBase, IFluidDataStoreFactory, IFluidDataStoreRegistry, IProvideFluidDataStoreRegistry, NamedFluidDataStoreRegistryEntries, NamedFluidDataStoreRegistryEntry, IFluidDataStoreContextDetached } from "@fluidframework/runtime-definitions";
|
|
8
|
+
import { IContainerRuntime } from "@fluidframework/container-runtime-definitions";
|
|
9
|
+
import { IChannelFactory } from "@fluidframework/datastore-definitions";
|
|
10
|
+
import { FluidObjectSymbolProvider } from "@fluidframework/synthesize";
|
|
11
|
+
import { IDataObjectProps, PureDataObject, DataObjectTypes } from "../data-objects/index.mjs";
|
|
12
|
+
/**
|
|
13
|
+
* Useful interface in places where it's useful to do type erasure for PureDataObject generic
|
|
14
|
+
* @deprecated Will be removed in future major release. Please remove all usage of it.
|
|
15
|
+
* @alpha
|
|
16
|
+
*/
|
|
17
|
+
export interface IRootDataObjectFactory extends IFluidDataStoreFactory {
|
|
18
|
+
createRootInstance(rootDataStoreId: string, runtime: IContainerRuntime): Promise<IFluidRouter>;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* PureDataObjectFactory is a barebones IFluidDataStoreFactory for use with PureDataObject.
|
|
22
|
+
* Consumers should typically use DataObjectFactory instead unless creating
|
|
23
|
+
* another base data store factory.
|
|
24
|
+
*
|
|
25
|
+
* @typeParam TObj - DataObject (concrete type)
|
|
26
|
+
* @typeParam I - The input types for the DataObject
|
|
27
|
+
* @alpha
|
|
28
|
+
*/
|
|
29
|
+
export declare class PureDataObjectFactory<TObj extends PureDataObject<I>, I extends DataObjectTypes = DataObjectTypes> implements IFluidDataStoreFactory, Partial<IProvideFluidDataStoreRegistry>, IRootDataObjectFactory {
|
|
30
|
+
readonly type: string;
|
|
31
|
+
private readonly ctor;
|
|
32
|
+
private readonly optionalProviders;
|
|
33
|
+
private readonly runtimeClass;
|
|
34
|
+
private readonly sharedObjectRegistry;
|
|
35
|
+
private readonly registry;
|
|
36
|
+
constructor(type: string, ctor: new (props: IDataObjectProps<I>) => TObj, sharedObjects: readonly IChannelFactory[], optionalProviders: FluidObjectSymbolProvider<I["OptionalProviders"]>, registryEntries?: NamedFluidDataStoreRegistryEntries, runtimeClass?: typeof FluidDataStoreRuntime);
|
|
37
|
+
get IFluidDataStoreFactory(): this;
|
|
38
|
+
get IFluidDataStoreRegistry(): IFluidDataStoreRegistry | undefined;
|
|
39
|
+
/**
|
|
40
|
+
* Convenience helper to get the data store's/factory's data store registry entry.
|
|
41
|
+
* The return type hides the factory's generics, easing grouping of registry
|
|
42
|
+
* entries that differ only in this way into the same array.
|
|
43
|
+
* @returns The NamedFluidDataStoreRegistryEntry
|
|
44
|
+
*/
|
|
45
|
+
get registryEntry(): NamedFluidDataStoreRegistryEntry;
|
|
46
|
+
/**
|
|
47
|
+
* This is where we do data store setup.
|
|
48
|
+
*
|
|
49
|
+
* @param context - data store context used to load a data store runtime
|
|
50
|
+
*/
|
|
51
|
+
instantiateDataStore(context: IFluidDataStoreContext, existing: boolean): Promise<FluidDataStoreRuntime>;
|
|
52
|
+
/**
|
|
53
|
+
* Creates a new instance of the object. Uses parent context's registry to build package path to this factory.
|
|
54
|
+
* In other words, registry of context passed in has to contain this factory, with the name that matches
|
|
55
|
+
* this factory's type.
|
|
56
|
+
* It is intended to be used by data store objects that create sub-objects.
|
|
57
|
+
* @param context - The context being used to create the runtime
|
|
58
|
+
* (the created object will have its own new context created as well)
|
|
59
|
+
* @param initialState - The initial state to provide to the created data store.
|
|
60
|
+
* @returns an object created by this factory. Data store and objects created are not attached to container.
|
|
61
|
+
* They get attached only when a handle to one of them is attached to already attached objects.
|
|
62
|
+
*/
|
|
63
|
+
createChildInstance(parentContext: IFluidDataStoreContext, initialState?: I["InitialState"]): Promise<TObj>;
|
|
64
|
+
/**
|
|
65
|
+
* Creates a new instance of the object. Uses peer context's registry and its package path to identify this factory.
|
|
66
|
+
* In other words, registry of context passed in has to have this factory.
|
|
67
|
+
* Intended to be used by data store objects that need to create peers (similar) instances of existing objects.
|
|
68
|
+
* @param context - The component context being used to create the object
|
|
69
|
+
* (the created object will have its own new context created as well)
|
|
70
|
+
* @param initialState - The initial state to provide to the created component.
|
|
71
|
+
* @returns an object created by this factory. Data store and objects created are not attached to container.
|
|
72
|
+
* They get attached only when a handle to one of them is attached to already attached objects.
|
|
73
|
+
*/
|
|
74
|
+
createPeerInstance(peerContext: IFluidDataStoreContext, initialState?: I["InitialState"]): Promise<TObj>;
|
|
75
|
+
/**
|
|
76
|
+
* Creates a new instance of the object. Uses container's registry to find this factory.
|
|
77
|
+
* It's expected that only container owners would use this functionality, as only such developers
|
|
78
|
+
* have knowledge of entries in container registry.
|
|
79
|
+
* The name in this registry for such record should match type of this factory.
|
|
80
|
+
* @param runtime - container runtime. It's registry is used to create an object.
|
|
81
|
+
* @param initialState - The initial state to provide to the created component.
|
|
82
|
+
* @returns an object created by this factory. Data store and objects created are not attached to container.
|
|
83
|
+
* They get attached only when a handle to one of them is attached to already attached objects.
|
|
84
|
+
*/
|
|
85
|
+
createInstance(runtime: IContainerRuntimeBase, initialState?: I["InitialState"]): Promise<TObj>;
|
|
86
|
+
/**
|
|
87
|
+
* Creates a new root instance of the object. Uses container's registry to find this factory.
|
|
88
|
+
* It's expected that only container owners would use this functionality, as only such developers
|
|
89
|
+
* have knowledge of entries in container registry.
|
|
90
|
+
* The name in this registry for such record should match type of this factory.
|
|
91
|
+
* @param runtime - container runtime. It's registry is used to create an object.
|
|
92
|
+
* @param initialState - The initial state to provide to the created component.
|
|
93
|
+
* @returns an object created by this factory. Data store and objects created are not attached to container.
|
|
94
|
+
* They get attached only when a handle to one of them is attached to already attached objects.
|
|
95
|
+
*/
|
|
96
|
+
createRootInstance(rootDataStoreId: string, runtime: IContainerRuntime, initialState?: I["InitialState"]): Promise<TObj>;
|
|
97
|
+
protected createNonRootInstanceCore(containerRuntime: IContainerRuntimeBase, packagePath: Readonly<string[]>, initialState?: I["InitialState"]): Promise<TObj>;
|
|
98
|
+
protected createInstanceCore(context: IFluidDataStoreContextDetached, initialState?: I["InitialState"]): Promise<TObj>;
|
|
99
|
+
}
|
|
100
|
+
//# sourceMappingURL=pureDataObjectFactory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pureDataObjectFactory.d.ts","sourceRoot":"","sources":["../../src/data-object-factories/pureDataObjectFactory.ts"],"names":[],"mappings":"AAAA;;;GAGG;OAGI,EAAY,YAAY,EAAe,MAAM,iCAAiC;OAC9E,EACN,qBAAqB,EAGrB,MAAM,2BAA2B;OAE3B,EACN,sBAAsB,EACtB,qBAAqB,EACrB,sBAAsB,EACtB,uBAAuB,EACvB,8BAA8B,EAC9B,kCAAkC,EAClC,gCAAgC,EAChC,8BAA8B,EAC9B,MAAM,qCAAqC;OACrC,EAAE,iBAAiB,EAAE,MAAM,+CAA+C;OAC1E,EAAE,eAAe,EAA0B,MAAM,uCAAuC;OACxF,EAEN,yBAAyB,EAEzB,MAAM,4BAA4B;OAG5B,EAAE,gBAAgB,EAAE,cAAc,EAAE,eAAe,EAAE;AAC5D;;;;GAIG;AACH,MAAM,WAAW,sBAAuB,SAAQ,sBAAsB;IAErE,kBAAkB,CAAC,eAAe,EAAE,MAAM,EAAE,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;CAC/F;AAoFD;;;;;;;;GAQG;AACH,qBAAa,qBAAqB,CAChC,IAAI,SAAS,cAAc,CAAC,CAAC,CAAC,EAC9B,CAAC,SAAS,eAAe,GAAG,eAAe,CAE5C,YACC,sBAAsB,EACtB,OAAO,CAAC,8BAA8B,CAAC,EACvC,sBAAsB;aAMN,IAAI,EAAE,MAAM;IAC5B,OAAO,CAAC,QAAQ,CAAC,IAAI;IAErB,OAAO,CAAC,QAAQ,CAAC,iBAAiB;IAElC,OAAO,CAAC,QAAQ,CAAC,YAAY;IAT9B,OAAO,CAAC,QAAQ,CAAC,oBAAoB,CAAwB;IAC7D,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAsC;gBAG9C,IAAI,EAAE,MAAM,EACX,IAAI,EAAE,KAAK,KAAK,EAAE,gBAAgB,CAAC,CAAC,CAAC,KAAK,IAAI,EAC/D,aAAa,EAAE,SAAS,eAAe,EAAE,EACxB,iBAAiB,EAAE,yBAAyB,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,EACrF,eAAe,CAAC,EAAE,kCAAkC,EACnC,YAAY,GAAE,OAAO,qBAA6C;IAWpF,IAAW,sBAAsB,SAEhC;IAED,IAAW,uBAAuB,wCAEjC;IAED;;;;;OAKG;IACH,IAAW,aAAa,IAAI,gCAAgC,CAE3D;IAED;;;;OAIG;IACU,oBAAoB,CAAC,OAAO,EAAE,sBAAsB,EAAE,QAAQ,EAAE,OAAO;IAapF;;;;;;;;;;OAUG;IACU,mBAAmB,CAC/B,aAAa,EAAE,sBAAsB,EACrC,YAAY,CAAC,EAAE,CAAC,CAAC,cAAc,CAAC,GAC9B,OAAO,CAAC,IAAI,CAAC;IAQhB;;;;;;;;;OASG;IACU,kBAAkB,CAC9B,WAAW,EAAE,sBAAsB,EACnC,YAAY,CAAC,EAAE,CAAC,CAAC,cAAc,CAAC,GAC9B,OAAO,CAAC,IAAI,CAAC;IAQhB;;;;;;;;;OASG;IACU,cAAc,CAC1B,OAAO,EAAE,qBAAqB,EAC9B,YAAY,CAAC,EAAE,CAAC,CAAC,cAAc,CAAC,GAC9B,OAAO,CAAC,IAAI,CAAC;IAIhB;;;;;;;;;OASG;IACU,kBAAkB,CAC9B,eAAe,EAAE,MAAM,EACvB,OAAO,EAAE,iBAAiB,EAC1B,YAAY,CAAC,EAAE,CAAC,CAAC,cAAc,CAAC,GAC9B,OAAO,CAAC,IAAI,CAAC;cAKA,yBAAyB,CACxC,gBAAgB,EAAE,qBAAqB,EACvC,WAAW,EAAE,QAAQ,CAAC,MAAM,EAAE,CAAC,EAC/B,YAAY,CAAC,EAAE,CAAC,CAAC,cAAc,CAAC,GAC9B,OAAO,CAAC,IAAI,CAAC;cAKA,kBAAkB,CACjC,OAAO,EAAE,8BAA8B,EACvC,YAAY,CAAC,EAAE,CAAC,CAAC,cAAc,CAAC,GAC9B,OAAO,CAAC,IAAI,CAAC;CAehB"}
|
|
@@ -62,7 +62,7 @@ async function createDataObject(ctor, context, sharedObjectRegistry, optionalPro
|
|
|
62
62
|
*
|
|
63
63
|
* @typeParam TObj - DataObject (concrete type)
|
|
64
64
|
* @typeParam I - The input types for the DataObject
|
|
65
|
-
* @
|
|
65
|
+
* @alpha
|
|
66
66
|
*/
|
|
67
67
|
export class PureDataObjectFactory {
|
|
68
68
|
constructor(type, ctor, sharedObjects, optionalProviders, registryEntries, runtimeClass = FluidDataStoreRuntime) {
|
|
@@ -167,4 +167,4 @@ export class PureDataObjectFactory {
|
|
|
167
167
|
return instance;
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
|
-
//# sourceMappingURL=pureDataObjectFactory.
|
|
170
|
+
//# sourceMappingURL=pureDataObjectFactory.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pureDataObjectFactory.mjs","sourceRoot":"","sources":["../../src/data-object-factories/pureDataObjectFactory.ts"],"names":[],"mappings":"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","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\n// eslint-disable-next-line import/no-deprecated\nimport { IRequest, IFluidRouter, FluidObject } from \"@fluidframework/core-interfaces\";\nimport {\n\tFluidDataStoreRuntime,\n\tISharedObjectRegistry,\n\tmixinRequestHandler,\n} from \"@fluidframework/datastore\";\nimport { FluidDataStoreRegistry } from \"@fluidframework/container-runtime\";\nimport {\n\tIFluidDataStoreContext,\n\tIContainerRuntimeBase,\n\tIFluidDataStoreFactory,\n\tIFluidDataStoreRegistry,\n\tIProvideFluidDataStoreRegistry,\n\tNamedFluidDataStoreRegistryEntries,\n\tNamedFluidDataStoreRegistryEntry,\n\tIFluidDataStoreContextDetached,\n} from \"@fluidframework/runtime-definitions\";\nimport { IContainerRuntime } from \"@fluidframework/container-runtime-definitions\";\nimport { IChannelFactory, IFluidDataStoreRuntime } from \"@fluidframework/datastore-definitions\";\nimport {\n\tAsyncFluidObjectProvider,\n\tFluidObjectSymbolProvider,\n\tIFluidDependencySynthesizer,\n} from \"@fluidframework/synthesize\";\n\nimport { assert } from \"@fluidframework/core-utils\";\nimport { IDataObjectProps, PureDataObject, DataObjectTypes } from \"../data-objects\";\n/**\n * Useful interface in places where it's useful to do type erasure for PureDataObject generic\n * @deprecated Will be removed in future major release. Please remove all usage of it.\n * @alpha\n */\nexport interface IRootDataObjectFactory extends IFluidDataStoreFactory {\n\t// eslint-disable-next-line import/no-deprecated\n\tcreateRootInstance(rootDataStoreId: string, runtime: IContainerRuntime): Promise<IFluidRouter>;\n}\n\n/**\n * Proxy over PureDataObject\n * Does delayed creation & initialization of PureDataObject\n */\nasync function createDataObject<\n\tTObj extends PureDataObject,\n\tI extends DataObjectTypes = DataObjectTypes,\n>(\n\tctor: new (props: IDataObjectProps<I>) => TObj,\n\tcontext: IFluidDataStoreContext,\n\tsharedObjectRegistry: ISharedObjectRegistry,\n\toptionalProviders: FluidObjectSymbolProvider<I[\"OptionalProviders\"]>,\n\truntimeClassArg: typeof FluidDataStoreRuntime,\n\texisting: boolean,\n\tinitProps?: I[\"InitialState\"],\n) {\n\t// base\n\tlet runtimeClass = runtimeClassArg;\n\n\t// request mixin in\n\truntimeClass = mixinRequestHandler(\n\t\tasync (request: IRequest, runtimeArg: FluidDataStoreRuntime) => {\n\t\t\t// The provideEntryPoint callback below always returns TObj, so this cast is safe\n\t\t\tconst dataObject = (await runtimeArg.entryPoint.get()) as TObj;\n\t\t\tassert(\n\t\t\t\tdataObject.request !== undefined,\n\t\t\t\t0x795 /* Data store runtime entryPoint does not have request */,\n\t\t\t);\n\t\t\treturn dataObject.request(request);\n\t\t},\n\t\truntimeClass,\n\t);\n\n\t// Create a new runtime for our data store, as if via new FluidDataStoreRuntime,\n\t// but using the runtimeClass that's been augmented with mixins\n\t// The runtime is what Fluid uses to create DDS' and route to your data store\n\tconst runtime: FluidDataStoreRuntime = new runtimeClass( // calls new FluidDataStoreRuntime(...)\n\t\tcontext,\n\t\tsharedObjectRegistry,\n\t\texisting,\n\t\tasync (rt: IFluidDataStoreRuntime) => {\n\t\t\tassert(instance !== undefined, 0x46a /* entryPoint is undefined */);\n\t\t\t// Calling finishInitialization here like PureDataObject.getDataObject did, to keep the same behavior,\n\t\t\t// since accessing the runtime's entryPoint is how we want the data object to be retrieved going forward.\n\t\t\t// Without this I ran into issues with the load-existing flow not working correctly.\n\t\t\tawait instance.finishInitialization(true);\n\t\t\treturn instance;\n\t\t} /* provideEntryPoint */,\n\t);\n\n\t// Create object right away.\n\t// This allows object to register various callbacks with runtime before runtime\n\t// becomes globally available. But it's not full initialization - constructor can't\n\t// access DDSes or other services of runtime as objects are not fully initialized.\n\t// In order to use object, we need to go through full initialization by calling finishInitialization().\n\tconst scope: FluidObject<IFluidDependencySynthesizer> = context.scope;\n\tconst providers =\n\t\tscope.IFluidDependencySynthesizer?.synthesize<I[\"OptionalProviders\"]>(\n\t\t\toptionalProviders,\n\t\t\t{},\n\t\t) ??\n\t\t// eslint-disable-next-line @typescript-eslint/consistent-type-assertions\n\t\t({} as AsyncFluidObjectProvider<never>);\n\n\tconst instance = new ctor({ runtime, context, providers, initProps });\n\n\t// if it's a newly created object, we need to wait for it to finish initialization\n\t// as that results in creation of DDSes, before it gets attached, providing atomic\n\t// guarantee of creation.\n\t// WARNING: we can't do the same (yet) for already existing PureDataObject!\n\t// This will result in deadlock, as it tries to resolve internal handles, but any\n\t// handle resolution goes through root (container runtime), which can't route it back\n\t// to this data store, as it's still not initialized and not known to container runtime yet.\n\t// In the future, we should address it by using relative paths for handles and be able to resolve\n\t// local DDSes while data store is not fully initialized.\n\tif (!existing) {\n\t\tawait instance.finishInitialization(existing);\n\t}\n\n\treturn { instance, runtime };\n}\n\n/**\n * PureDataObjectFactory is a barebones IFluidDataStoreFactory for use with PureDataObject.\n * Consumers should typically use DataObjectFactory instead unless creating\n * another base data store factory.\n *\n * @typeParam TObj - DataObject (concrete type)\n * @typeParam I - The input types for the DataObject\n * @alpha\n */\nexport class PureDataObjectFactory<\n\t\tTObj extends PureDataObject<I>,\n\t\tI extends DataObjectTypes = DataObjectTypes,\n\t>\n\timplements\n\t\tIFluidDataStoreFactory,\n\t\tPartial<IProvideFluidDataStoreRegistry>,\n\t\tIRootDataObjectFactory\n{\n\tprivate readonly sharedObjectRegistry: ISharedObjectRegistry;\n\tprivate readonly registry: IFluidDataStoreRegistry | undefined;\n\n\tconstructor(\n\t\tpublic readonly type: string,\n\t\tprivate readonly ctor: new (props: IDataObjectProps<I>) => TObj,\n\t\tsharedObjects: readonly IChannelFactory[],\n\t\tprivate readonly optionalProviders: FluidObjectSymbolProvider<I[\"OptionalProviders\"]>,\n\t\tregistryEntries?: NamedFluidDataStoreRegistryEntries,\n\t\tprivate readonly runtimeClass: typeof FluidDataStoreRuntime = FluidDataStoreRuntime,\n\t) {\n\t\tif (this.type === \"\") {\n\t\t\tthrow new Error(\"undefined type member\");\n\t\t}\n\t\tif (registryEntries !== undefined) {\n\t\t\tthis.registry = new FluidDataStoreRegistry(registryEntries);\n\t\t}\n\t\tthis.sharedObjectRegistry = new Map(sharedObjects.map((ext) => [ext.type, ext]));\n\t}\n\n\tpublic get IFluidDataStoreFactory() {\n\t\treturn this;\n\t}\n\n\tpublic get IFluidDataStoreRegistry() {\n\t\treturn this.registry;\n\t}\n\n\t/**\n\t * Convenience helper to get the data store's/factory's data store registry entry.\n\t * The return type hides the factory's generics, easing grouping of registry\n\t * entries that differ only in this way into the same array.\n\t * @returns The NamedFluidDataStoreRegistryEntry\n\t */\n\tpublic get registryEntry(): NamedFluidDataStoreRegistryEntry {\n\t\treturn [this.type, Promise.resolve(this)];\n\t}\n\n\t/**\n\t * This is where we do data store setup.\n\t *\n\t * @param context - data store context used to load a data store runtime\n\t */\n\tpublic async instantiateDataStore(context: IFluidDataStoreContext, existing: boolean) {\n\t\tconst { runtime } = await createDataObject(\n\t\t\tthis.ctor,\n\t\t\tcontext,\n\t\t\tthis.sharedObjectRegistry,\n\t\t\tthis.optionalProviders,\n\t\t\tthis.runtimeClass,\n\t\t\texisting,\n\t\t);\n\n\t\treturn runtime;\n\t}\n\n\t/**\n\t * Creates a new instance of the object. Uses parent context's registry to build package path to this factory.\n\t * In other words, registry of context passed in has to contain this factory, with the name that matches\n\t * this factory's type.\n\t * It is intended to be used by data store objects that create sub-objects.\n\t * @param context - The context being used to create the runtime\n\t * (the created object will have its own new context created as well)\n\t * @param initialState - The initial state to provide to the created data store.\n\t * @returns an object created by this factory. Data store and objects created are not attached to container.\n\t * They get attached only when a handle to one of them is attached to already attached objects.\n\t */\n\tpublic async createChildInstance(\n\t\tparentContext: IFluidDataStoreContext,\n\t\tinitialState?: I[\"InitialState\"],\n\t): Promise<TObj> {\n\t\treturn this.createNonRootInstanceCore(\n\t\t\tparentContext.containerRuntime,\n\t\t\t[...parentContext.packagePath, this.type],\n\t\t\tinitialState,\n\t\t);\n\t}\n\n\t/**\n\t * Creates a new instance of the object. Uses peer context's registry and its package path to identify this factory.\n\t * In other words, registry of context passed in has to have this factory.\n\t * Intended to be used by data store objects that need to create peers (similar) instances of existing objects.\n\t * @param context - The component context being used to create the object\n\t * (the created object will have its own new context created as well)\n\t * @param initialState - The initial state to provide to the created component.\n\t * @returns an object created by this factory. Data store and objects created are not attached to container.\n\t * They get attached only when a handle to one of them is attached to already attached objects.\n\t */\n\tpublic async createPeerInstance(\n\t\tpeerContext: IFluidDataStoreContext,\n\t\tinitialState?: I[\"InitialState\"],\n\t): Promise<TObj> {\n\t\treturn this.createNonRootInstanceCore(\n\t\t\tpeerContext.containerRuntime,\n\t\t\tpeerContext.packagePath,\n\t\t\tinitialState,\n\t\t);\n\t}\n\n\t/**\n\t * Creates a new instance of the object. Uses container's registry to find this factory.\n\t * It's expected that only container owners would use this functionality, as only such developers\n\t * have knowledge of entries in container registry.\n\t * The name in this registry for such record should match type of this factory.\n\t * @param runtime - container runtime. It's registry is used to create an object.\n\t * @param initialState - The initial state to provide to the created component.\n\t * @returns an object created by this factory. Data store and objects created are not attached to container.\n\t * They get attached only when a handle to one of them is attached to already attached objects.\n\t */\n\tpublic async createInstance(\n\t\truntime: IContainerRuntimeBase,\n\t\tinitialState?: I[\"InitialState\"],\n\t): Promise<TObj> {\n\t\treturn this.createNonRootInstanceCore(runtime, [this.type], initialState);\n\t}\n\n\t/**\n\t * Creates a new root instance of the object. Uses container's registry to find this factory.\n\t * It's expected that only container owners would use this functionality, as only such developers\n\t * have knowledge of entries in container registry.\n\t * The name in this registry for such record should match type of this factory.\n\t * @param runtime - container runtime. It's registry is used to create an object.\n\t * @param initialState - The initial state to provide to the created component.\n\t * @returns an object created by this factory. Data store and objects created are not attached to container.\n\t * They get attached only when a handle to one of them is attached to already attached objects.\n\t */\n\tpublic async createRootInstance(\n\t\trootDataStoreId: string,\n\t\truntime: IContainerRuntime,\n\t\tinitialState?: I[\"InitialState\"],\n\t): Promise<TObj> {\n\t\tconst context = runtime.createDetachedRootDataStore([this.type], rootDataStoreId);\n\t\treturn this.createInstanceCore(context, initialState);\n\t}\n\n\tprotected async createNonRootInstanceCore(\n\t\tcontainerRuntime: IContainerRuntimeBase,\n\t\tpackagePath: Readonly<string[]>,\n\t\tinitialState?: I[\"InitialState\"],\n\t): Promise<TObj> {\n\t\tconst context = containerRuntime.createDetachedDataStore(packagePath);\n\t\treturn this.createInstanceCore(context, initialState);\n\t}\n\n\tprotected async createInstanceCore(\n\t\tcontext: IFluidDataStoreContextDetached,\n\t\tinitialState?: I[\"InitialState\"],\n\t): Promise<TObj> {\n\t\tconst { instance, runtime } = await createDataObject(\n\t\t\tthis.ctor,\n\t\t\tcontext,\n\t\t\tthis.sharedObjectRegistry,\n\t\t\tthis.optionalProviders,\n\t\t\tthis.runtimeClass,\n\t\t\tfalse, // existing\n\t\t\tinitialState,\n\t\t);\n\n\t\tawait context.attachRuntime(this, runtime);\n\n\t\treturn instance;\n\t}\n}\n"]}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*/
|
|
5
|
+
import { ISharedDirectory } from "@fluidframework/map";
|
|
6
|
+
import { PureDataObject } from "./pureDataObject.mjs";
|
|
7
|
+
import { DataObjectTypes } from "./types.mjs";
|
|
8
|
+
/**
|
|
9
|
+
* DataObject is a base data store that is primed with a root directory. It
|
|
10
|
+
* ensures that it is created and ready before you can access it.
|
|
11
|
+
*
|
|
12
|
+
* Having a single root directory allows for easier development. Instead of creating
|
|
13
|
+
* and registering channels with the runtime any new DDS that is set on the root
|
|
14
|
+
* will automatically be registered.
|
|
15
|
+
*
|
|
16
|
+
* @typeParam I - The optional input types used to strongly type the data object
|
|
17
|
+
* @alpha
|
|
18
|
+
*/
|
|
19
|
+
export declare abstract class DataObject<I extends DataObjectTypes = DataObjectTypes> extends PureDataObject<I> {
|
|
20
|
+
private internalRoot;
|
|
21
|
+
private readonly rootDirectoryId;
|
|
22
|
+
/**
|
|
23
|
+
* The root directory will either be ready or will return an error. If an error is thrown
|
|
24
|
+
* the root has not been correctly created/set.
|
|
25
|
+
*/
|
|
26
|
+
protected get root(): ISharedDirectory;
|
|
27
|
+
/**
|
|
28
|
+
* Initializes internal objects and calls initialization overrides.
|
|
29
|
+
* Caller is responsible for ensuring this is only invoked once.
|
|
30
|
+
*/
|
|
31
|
+
initializeInternal(existing: boolean): Promise<void>;
|
|
32
|
+
/**
|
|
33
|
+
* Generates an error string indicating an item is uninitialized.
|
|
34
|
+
* @param item - The name of the item that was uninitialized.
|
|
35
|
+
*/
|
|
36
|
+
protected getUninitializedErrorString(item: string): string;
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=dataObject.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dataObject.d.ts","sourceRoot":"","sources":["../../src/data-objects/dataObject.ts"],"names":[],"mappings":"AAAA;;;GAGG;OAEI,EAAE,gBAAgB,EAA+B,MAAM,qBAAqB;OAC5E,EAAE,cAAc,EAAE;OAClB,EAAE,eAAe,EAAE;AAE1B;;;;;;;;;;GAUG;AACH,8BAAsB,UAAU,CAC/B,CAAC,SAAS,eAAe,GAAG,eAAe,CAC1C,SAAQ,cAAc,CAAC,CAAC,CAAC;IAC1B,OAAO,CAAC,YAAY,CAA+B;IACnD,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAU;IAE1C;;;OAGG;IACH,SAAS,KAAK,IAAI,IAAI,gBAAgB,CAMrC;IAED;;;OAGG;IACU,kBAAkB,CAAC,QAAQ,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC;IA2BjE;;;OAGG;IACH,SAAS,CAAC,2BAA2B,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;CAG3D"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*/
|
|
5
5
|
import { MapFactory, SharedDirectory } from "@fluidframework/map";
|
|
6
|
-
import { PureDataObject } from "./pureDataObject";
|
|
6
|
+
import { PureDataObject } from "./pureDataObject.mjs";
|
|
7
7
|
/**
|
|
8
8
|
* DataObject is a base data store that is primed with a root directory. It
|
|
9
9
|
* ensures that it is created and ready before you can access it.
|
|
@@ -13,7 +13,7 @@ import { PureDataObject } from "./pureDataObject";
|
|
|
13
13
|
* will automatically be registered.
|
|
14
14
|
*
|
|
15
15
|
* @typeParam I - The optional input types used to strongly type the data object
|
|
16
|
-
* @
|
|
16
|
+
* @alpha
|
|
17
17
|
*/
|
|
18
18
|
export class DataObject extends PureDataObject {
|
|
19
19
|
constructor() {
|
|
@@ -64,4 +64,4 @@ export class DataObject extends PureDataObject {
|
|
|
64
64
|
return `${item} must be initialized before being accessed.`;
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
|
-
//# sourceMappingURL=dataObject.
|
|
67
|
+
//# sourceMappingURL=dataObject.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dataObject.mjs","sourceRoot":"","sources":["../../src/data-objects/dataObject.ts"],"names":[],"mappings":"AAAA;;;GAGG;OAEI,EAAoB,UAAU,EAAE,eAAe,EAAE,MAAM,qBAAqB;OAC5E,EAAE,cAAc,EAAE;AAGzB;;;;;;;;;;GAUG;AACH,MAAM,OAAgB,UAEpB,SAAQ,cAAiB;IAF3B;;QAIkB,oBAAe,GAAG,MAAM,CAAC;IAoD3C,CAAC;IAlDA;;;OAGG;IACH,IAAc,IAAI;QACjB,IAAI,CAAC,IAAI,CAAC,YAAY,EAAE;YACvB,MAAM,IAAI,KAAK,CAAC,IAAI,CAAC,2BAA2B,CAAC,MAAM,CAAC,CAAC,CAAC;SAC1D;QAED,OAAO,IAAI,CAAC,YAAY,CAAC;IAC1B,CAAC;IAED;;;OAGG;IACI,KAAK,CAAC,kBAAkB,CAAC,QAAiB;QAChD,IAAI,CAAC,QAAQ,EAAE;YACd,+EAA+E;YAC/E,IAAI,CAAC,YAAY,GAAG,eAAe,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,eAAe,CAAC,CAAC;YAC/E,IAAI,CAAC,YAAY,CAAC,aAAa,EAAE,CAAC;SAClC;aAAM;YACN,oGAAoG;YACpG,IAAI,CAAC,YAAY,GAAG,CAAC,MAAM,IAAI,CAAC,OAAO,CAAC,UAAU,CACjD,IAAI,CAAC,eAAe,CACpB,CAAqB,CAAC;YAEvB,oGAAoG;YACpG,gGAAgG;YAChG,qGAAqG;YACrG,IAAI,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC,IAAI,KAAK,UAAU,CAAC,IAAI,EAAE;gBAC1D,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC;oBACxB,QAAQ,EAAE,SAAS;oBACnB,SAAS,EAAE,eAAe;oBAC1B,OAAO,EACN,6EAA6E;iBAC9E,CAAC,CAAC;aACH;SACD;QAED,MAAM,KAAK,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CAAC;IAC1C,CAAC;IAED;;;OAGG;IACO,2BAA2B,CAAC,IAAY;QACjD,OAAO,GAAG,IAAI,6CAA6C,CAAC;IAC7D,CAAC;CACD","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { ISharedDirectory, MapFactory, SharedDirectory } from \"@fluidframework/map\";\nimport { PureDataObject } from \"./pureDataObject\";\nimport { DataObjectTypes } from \"./types\";\n\n/**\n * DataObject is a base data store that is primed with a root directory. It\n * ensures that it is created and ready before you can access it.\n *\n * Having a single root directory allows for easier development. Instead of creating\n * and registering channels with the runtime any new DDS that is set on the root\n * will automatically be registered.\n *\n * @typeParam I - The optional input types used to strongly type the data object\n * @alpha\n */\nexport abstract class DataObject<\n\tI extends DataObjectTypes = DataObjectTypes,\n> extends PureDataObject<I> {\n\tprivate internalRoot: ISharedDirectory | undefined;\n\tprivate readonly rootDirectoryId = \"root\";\n\n\t/**\n\t * The root directory will either be ready or will return an error. If an error is thrown\n\t * the root has not been correctly created/set.\n\t */\n\tprotected get root(): ISharedDirectory {\n\t\tif (!this.internalRoot) {\n\t\t\tthrow new Error(this.getUninitializedErrorString(`root`));\n\t\t}\n\n\t\treturn this.internalRoot;\n\t}\n\n\t/**\n\t * Initializes internal objects and calls initialization overrides.\n\t * Caller is responsible for ensuring this is only invoked once.\n\t */\n\tpublic async initializeInternal(existing: boolean): Promise<void> {\n\t\tif (!existing) {\n\t\t\t// Create a root directory and register it before calling initializingFirstTime\n\t\t\tthis.internalRoot = SharedDirectory.create(this.runtime, this.rootDirectoryId);\n\t\t\tthis.internalRoot.bindToContext();\n\t\t} else {\n\t\t\t// data store has a root directory so we just need to set it before calling initializingFromExisting\n\t\t\tthis.internalRoot = (await this.runtime.getChannel(\n\t\t\t\tthis.rootDirectoryId,\n\t\t\t)) as ISharedDirectory;\n\n\t\t\t// This will actually be an ISharedMap if the channel was previously created by the older version of\n\t\t\t// DataObject which used a SharedMap. Since SharedMap and SharedDirectory are compatible unless\n\t\t\t// SharedDirectory-only commands are used on SharedMap, this will mostly just work for compatibility.\n\t\t\tif (this.internalRoot.attributes.type === MapFactory.Type) {\n\t\t\t\tthis.runtime.logger.send({\n\t\t\t\t\tcategory: \"generic\",\n\t\t\t\t\teventName: \"MapDataObject\",\n\t\t\t\t\tmessage:\n\t\t\t\t\t\t\"Legacy document, SharedMap is masquerading as SharedDirectory in DataObject\",\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\n\t\tawait super.initializeInternal(existing);\n\t}\n\n\t/**\n\t * Generates an error string indicating an item is uninitialized.\n\t * @param item - The name of the item that was uninitialized.\n\t */\n\tprotected getUninitializedErrorString(item: string): string {\n\t\treturn `${item} must be initialized before being accessed.`;\n\t}\n}\n"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) Microsoft Corporation and contributors. All rights reserved.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*/
|
|
5
|
+
export { DataObject } from "./dataObject.mjs";
|
|
6
|
+
export { PureDataObject } from "./pureDataObject.mjs";
|
|
7
|
+
export { DataObjectTypes, IDataObjectProps } from "./types.mjs";
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/data-objects/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;OAEI,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;OAClB,EAAE,eAAe,EAAE,gBAAgB,EAAE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/data-objects/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;OAEI,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nexport { DataObject } from \"./dataObject\";\nexport { PureDataObject } from \"./pureDataObject\";\nexport { DataObjectTypes, IDataObjectProps } from \"./types\";\n"]}
|