@eggjs/tegg-types 4.0.0-beta.4 → 4.0.0-beta.6
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 +12 -0
- package/dist/aop/Advice.d.ts +42 -0
- package/dist/aop/Advice.js +1 -0
- package/dist/aop/Aspect.d.ts +17 -0
- package/dist/aop/Aspect.js +5 -0
- package/dist/aop/Crosscut.d.ts +32 -0
- package/dist/aop/Crosscut.js +6 -0
- package/dist/aop/Pointcut.d.ts +29 -0
- package/dist/aop/Pointcut.js +20 -0
- package/dist/aop/index.d.ts +5 -0
- package/dist/aop/index.js +5 -0
- package/dist/common/Graph.d.ts +6 -0
- package/dist/common/Graph.js +1 -0
- package/dist/common/Logger.d.ts +10 -0
- package/dist/common/Logger.js +1 -0
- package/dist/common/ModuleConfig.d.ts +29 -0
- package/dist/common/ModuleConfig.js +1 -0
- package/dist/common/RuntimeConfig.d.ts +18 -0
- package/dist/common/RuntimeConfig.js +1 -0
- package/dist/common/index.d.ts +5 -0
- package/dist/common/index.js +1 -0
- package/dist/controller-decorator/HTTPController.d.ts +8 -0
- package/dist/controller-decorator/HTTPController.js +1 -0
- package/dist/controller-decorator/HTTPMethod.d.ts +10 -0
- package/dist/controller-decorator/HTTPMethod.js +1 -0
- package/dist/controller-decorator/HTTPParam.d.ts +12 -0
- package/dist/controller-decorator/HTTPParam.js +1 -0
- package/dist/controller-decorator/MetadataKey.d.ts +23 -0
- package/dist/controller-decorator/MetadataKey.js +24 -0
- package/dist/controller-decorator/builder.d.ts +10 -0
- package/dist/controller-decorator/builder.js +1 -0
- package/dist/controller-decorator/index.d.ts +9 -0
- package/dist/controller-decorator/index.js +4 -0
- package/dist/controller-decorator/model/ControllerMetadata.d.ts +15 -0
- package/dist/controller-decorator/model/ControllerMetadata.js +1 -0
- package/dist/controller-decorator/model/MethodMeta.d.ts +10 -0
- package/dist/controller-decorator/model/MethodMeta.js +1 -0
- package/dist/controller-decorator/model/index.d.ts +4 -0
- package/dist/controller-decorator/model/index.js +3 -0
- package/dist/controller-decorator/model/types.d.ts +49 -0
- package/dist/controller-decorator/model/types.js +45 -0
- package/dist/core-decorator/ContextProto.d.ts +10 -0
- package/dist/core-decorator/ContextProto.js +3 -0
- package/dist/core-decorator/Inject.d.ts +7 -0
- package/dist/core-decorator/Inject.js +1 -0
- package/dist/core-decorator/Metadata.d.ts +4 -0
- package/dist/core-decorator/Metadata.js +1 -0
- package/dist/core-decorator/MultiInstanceProto.d.ts +31 -0
- package/dist/core-decorator/MultiInstanceProto.js +1 -0
- package/dist/core-decorator/Prototype.d.ts +13 -0
- package/dist/core-decorator/Prototype.js +5 -0
- package/dist/core-decorator/SingletonProto.d.ts +10 -0
- package/dist/core-decorator/SingletonProto.js +1 -0
- package/dist/core-decorator/enum/AccessLevel.d.ts +7 -0
- package/dist/core-decorator/enum/AccessLevel.js +9 -0
- package/dist/core-decorator/enum/EggType.d.ts +7 -0
- package/dist/core-decorator/enum/EggType.js +9 -0
- package/dist/core-decorator/enum/InjectType.d.ts +7 -0
- package/dist/core-decorator/enum/InjectType.js +9 -0
- package/dist/core-decorator/enum/MultiInstanceType.d.ts +7 -0
- package/dist/core-decorator/enum/MultiInstanceType.js +9 -0
- package/dist/core-decorator/enum/ObjectInitType.d.ts +10 -0
- package/dist/core-decorator/enum/ObjectInitType.js +15 -0
- package/dist/core-decorator/enum/Qualifier.d.ts +10 -0
- package/dist/core-decorator/enum/Qualifier.js +11 -0
- package/dist/core-decorator/enum/index.d.ts +7 -0
- package/dist/core-decorator/enum/index.js +8 -0
- package/dist/core-decorator/index.d.ts +18 -0
- package/dist/core-decorator/index.js +12 -0
- package/dist/core-decorator/model/EggMultiInstancePrototypeInfo.d.ts +62 -0
- package/dist/core-decorator/model/EggMultiInstancePrototypeInfo.js +4 -0
- package/dist/core-decorator/model/EggPrototypeInfo.d.ts +39 -0
- package/dist/core-decorator/model/EggPrototypeInfo.js +3 -0
- package/dist/core-decorator/model/InjectConstructorInfo.d.ts +23 -0
- package/dist/core-decorator/model/InjectConstructorInfo.js +1 -0
- package/dist/core-decorator/model/InjectObjectInfo.d.ts +18 -0
- package/dist/core-decorator/model/InjectObjectInfo.js +1 -0
- package/{core-decorator → dist/core-decorator}/model/QualifierInfo.d.ts +8 -5
- package/dist/core-decorator/model/QualifierInfo.js +1 -0
- package/dist/core-decorator/model/index.d.ts +6 -0
- package/dist/core-decorator/model/index.js +4 -0
- package/dist/dal/Qualifier.d.ts +9 -0
- package/dist/dal/Qualifier.js +10 -0
- package/dist/dal/decorator/Column.d.ts +182 -0
- package/dist/dal/decorator/Column.js +1 -0
- package/dist/dal/decorator/DataSourceQualifier.d.ts +5 -0
- package/dist/dal/decorator/DataSourceQualifier.js +6 -0
- package/dist/dal/decorator/Table.d.ts +27 -0
- package/dist/dal/decorator/Table.js +1 -0
- package/dist/dal/decorator/index.d.ts +19 -0
- package/dist/dal/decorator/index.js +3 -0
- package/dist/dal/enum/ColumnFormat.d.ts +8 -0
- package/dist/dal/enum/ColumnFormat.js +10 -0
- package/dist/dal/enum/ColumnType.d.ts +43 -0
- package/dist/dal/enum/ColumnType.js +45 -0
- package/dist/dal/enum/CompressionType.d.ts +8 -0
- package/dist/dal/enum/CompressionType.js +10 -0
- package/dist/dal/enum/IndexStoreType.d.ts +7 -0
- package/dist/dal/enum/IndexStoreType.js +9 -0
- package/dist/dal/enum/IndexType.d.ts +10 -0
- package/dist/dal/enum/IndexType.js +12 -0
- package/dist/dal/enum/InsertMethod.d.ts +8 -0
- package/dist/dal/enum/InsertMethod.js +10 -0
- package/dist/dal/enum/RowFormat.d.ts +11 -0
- package/dist/dal/enum/RowFormat.js +13 -0
- package/dist/dal/enum/SqlType.d.ts +10 -0
- package/dist/dal/enum/SqlType.js +12 -0
- package/dist/dal/enum/Templates.d.ts +8 -0
- package/dist/dal/enum/Templates.js +10 -0
- package/dist/dal/enum/index.d.ts +10 -0
- package/dist/dal/enum/index.js +11 -0
- package/dist/dal/index.d.ts +21 -0
- package/dist/dal/index.js +14 -0
- package/dist/dal/type/BaseDao.d.ts +13 -0
- package/dist/dal/type/BaseDao.js +1 -0
- package/dist/dal/type/CodeGenerator.d.ts +9 -0
- package/dist/dal/type/CodeGenerator.js +1 -0
- package/dist/dal/type/ColumnTsType.d.ts +45 -0
- package/dist/dal/type/ColumnTsType.js +1 -0
- package/dist/dal/type/DateSource.d.ts +16 -0
- package/dist/dal/type/DateSource.js +1 -0
- package/dist/dal/type/Spatial.d.ts +14 -0
- package/dist/dal/type/Spatial.js +1 -0
- package/dist/dal/type/SqlMap.d.ts +22 -0
- package/dist/dal/type/SqlMap.js +1 -0
- package/dist/dal/type/index.d.ts +7 -0
- package/dist/dal/type/index.js +1 -0
- package/dist/dynamic-inject.d.ts +18 -0
- package/dist/dynamic-inject.js +5 -0
- package/dist/index.d.ts +72 -0
- package/dist/index.js +38 -0
- package/dist/lifecycle/EggObjectLifecycle.d.ts +40 -0
- package/dist/lifecycle/EggObjectLifecycle.js +1 -0
- package/dist/lifecycle/IdenticalObject.d.ts +7 -0
- package/dist/lifecycle/IdenticalObject.js +1 -0
- package/dist/lifecycle/LifecycleHook.d.ts +16 -0
- package/dist/lifecycle/LifecycleHook.js +1 -0
- package/dist/lifecycle/index.d.ts +4 -0
- package/dist/lifecycle/index.js +1 -0
- package/dist/metadata/enum/ProtoDescriptorType.d.ts +6 -0
- package/dist/metadata/enum/ProtoDescriptorType.js +8 -0
- package/dist/metadata/enum/index.d.ts +2 -0
- package/dist/metadata/enum/index.js +3 -0
- package/dist/metadata/errors.d.ts +8 -0
- package/dist/metadata/errors.js +10 -0
- package/dist/metadata/index.d.ts +7 -0
- package/dist/metadata/index.js +6 -0
- package/dist/metadata/model/EggPrototype.d.ts +145 -0
- package/dist/metadata/model/EggPrototype.js +3 -0
- package/dist/metadata/model/LoadUnit.d.ts +34 -0
- package/dist/metadata/model/LoadUnit.js +10 -0
- package/dist/metadata/model/Loader.d.ts +12 -0
- package/dist/metadata/model/Loader.js +1 -0
- package/dist/metadata/model/ProtoDescriptor.d.ts +29 -0
- package/dist/metadata/model/ProtoDescriptor.js +3 -0
- package/dist/metadata/model/index.d.ts +5 -0
- package/dist/metadata/model/index.js +5 -0
- package/dist/orm.d.ts +33 -0
- package/dist/orm.js +10 -0
- package/dist/runtime/Factory.d.ts +11 -0
- package/dist/runtime/Factory.js +1 -0
- package/dist/runtime/index.d.ts +6 -0
- package/dist/runtime/index.js +3 -0
- package/dist/runtime/model/EggContainer.d.ts +16 -0
- package/dist/runtime/model/EggContainer.js +1 -0
- package/dist/runtime/model/EggContext.d.ts +10 -0
- package/dist/runtime/model/EggContext.js +1 -0
- package/dist/runtime/model/EggObject.d.ts +29 -0
- package/dist/runtime/model/EggObject.js +12 -0
- package/dist/runtime/model/LoadUnitInstance.d.ts +13 -0
- package/dist/runtime/model/LoadUnitInstance.js +1 -0
- package/dist/runtime/model/index.d.ts +5 -0
- package/dist/runtime/model/index.js +3 -0
- package/dist/schedule.d.ts +33 -0
- package/dist/schedule.js +13 -0
- package/dist/transaction.d.ts +26 -0
- package/dist/transaction.js +13 -0
- package/package.json +109 -67
- package/aop/Advice.d.ts +0 -39
- package/aop/Advice.js +0 -2
- package/aop/Aspect.d.ts +0 -13
- package/aop/Aspect.js +0 -2
- package/aop/Crosscut.d.ts +0 -28
- package/aop/Crosscut.js +0 -3
- package/aop/Pointcut.d.ts +0 -25
- package/aop/Pointcut.js +0 -17
- package/aop/index.d.ts +0 -4
- package/aop/index.js +0 -5
- package/common/Graph.d.ts +0 -3
- package/common/Graph.js +0 -2
- package/common/Logger.d.ts +0 -7
- package/common/Logger.js +0 -2
- package/common/ModuleConfig.d.ts +0 -27
- package/common/ModuleConfig.js +0 -2
- package/common/RuntimeConfig.d.ts +0 -15
- package/common/RuntimeConfig.js +0 -2
- package/common/index.d.ts +0 -4
- package/common/index.js +0 -5
- package/controller-decorator/HTTPController.d.ts +0 -5
- package/controller-decorator/HTTPController.js +0 -2
- package/controller-decorator/HTTPMethod.d.ts +0 -6
- package/controller-decorator/HTTPMethod.js +0 -2
- package/controller-decorator/HTTPParam.d.ts +0 -9
- package/controller-decorator/HTTPParam.js +0 -2
- package/controller-decorator/MetadataKey.d.ts +0 -20
- package/controller-decorator/MetadataKey.js +0 -21
- package/controller-decorator/builder.d.ts +0 -6
- package/controller-decorator/builder.js +0 -2
- package/controller-decorator/index.d.ts +0 -6
- package/controller-decorator/index.js +0 -7
- package/controller-decorator/model/ControllerMetadata.d.ts +0 -11
- package/controller-decorator/model/ControllerMetadata.js +0 -2
- package/controller-decorator/model/MethodMeta.d.ts +0 -6
- package/controller-decorator/model/MethodMeta.js +0 -2
- package/controller-decorator/model/index.d.ts +0 -3
- package/controller-decorator/model/index.js +0 -4
- package/controller-decorator/model/types.d.ts +0 -45
- package/controller-decorator/model/types.js +0 -42
- package/core-decorator/ContextProto.d.ts +0 -6
- package/core-decorator/ContextProto.js +0 -2
- package/core-decorator/Inject.d.ts +0 -4
- package/core-decorator/Inject.js +0 -2
- package/core-decorator/Metadata.d.ts +0 -1
- package/core-decorator/Metadata.js +0 -2
- package/core-decorator/MultiInstanceProto.d.ts +0 -26
- package/core-decorator/MultiInstanceProto.js +0 -2
- package/core-decorator/Prototype.d.ts +0 -8
- package/core-decorator/Prototype.js +0 -2
- package/core-decorator/SingletonProto.d.ts +0 -6
- package/core-decorator/SingletonProto.js +0 -2
- package/core-decorator/enum/AccessLevel.d.ts +0 -4
- package/core-decorator/enum/AccessLevel.js +0 -8
- package/core-decorator/enum/EggType.d.ts +0 -4
- package/core-decorator/enum/EggType.js +0 -6
- package/core-decorator/enum/InjectType.d.ts +0 -4
- package/core-decorator/enum/InjectType.js +0 -6
- package/core-decorator/enum/MultiInstanceType.d.ts +0 -4
- package/core-decorator/enum/MultiInstanceType.js +0 -6
- package/core-decorator/enum/ObjectInitType.d.ts +0 -7
- package/core-decorator/enum/ObjectInitType.js +0 -15
- package/core-decorator/enum/Qualifier.d.ts +0 -7
- package/core-decorator/enum/Qualifier.js +0 -8
- package/core-decorator/enum/index.d.ts +0 -6
- package/core-decorator/enum/index.js +0 -7
- package/core-decorator/index.d.ts +0 -8
- package/core-decorator/index.js +0 -9
- package/core-decorator/model/EggMultiInstancePrototypeInfo.d.ts +0 -57
- package/core-decorator/model/EggMultiInstancePrototypeInfo.js +0 -2
- package/core-decorator/model/EggPrototypeInfo.d.ts +0 -34
- package/core-decorator/model/EggPrototypeInfo.js +0 -2
- package/core-decorator/model/InjectConstructorInfo.d.ts +0 -19
- package/core-decorator/model/InjectConstructorInfo.js +0 -2
- package/core-decorator/model/InjectObjectInfo.d.ts +0 -15
- package/core-decorator/model/InjectObjectInfo.js +0 -2
- package/core-decorator/model/QualifierInfo.js +0 -2
- package/core-decorator/model/index.d.ts +0 -5
- package/core-decorator/model/index.js +0 -6
- package/dal/Qualifier.d.ts +0 -6
- package/dal/Qualifier.js +0 -7
- package/dal/decorator/Column.d.ts +0 -178
- package/dal/decorator/Column.js +0 -2
- package/dal/decorator/DataSourceQualifier.d.ts +0 -2
- package/dal/decorator/DataSourceQualifier.js +0 -3
- package/dal/decorator/Table.d.ts +0 -21
- package/dal/decorator/Table.js +0 -2
- package/dal/decorator/index.d.ts +0 -14
- package/dal/decorator/index.js +0 -4
- package/dal/enum/ColumnFormat.d.ts +0 -5
- package/dal/enum/ColumnFormat.js +0 -7
- package/dal/enum/ColumnType.d.ts +0 -40
- package/dal/enum/ColumnType.js +0 -48
- package/dal/enum/CompressionType.d.ts +0 -5
- package/dal/enum/CompressionType.js +0 -7
- package/dal/enum/IndexStoreType.d.ts +0 -4
- package/dal/enum/IndexStoreType.js +0 -6
- package/dal/enum/IndexType.d.ts +0 -7
- package/dal/enum/IndexType.js +0 -9
- package/dal/enum/InsertMethod.d.ts +0 -5
- package/dal/enum/InsertMethod.js +0 -7
- package/dal/enum/RowFormat.d.ts +0 -8
- package/dal/enum/RowFormat.js +0 -10
- package/dal/enum/SqlType.d.ts +0 -7
- package/dal/enum/SqlType.js +0 -9
- package/dal/enum/Templates.d.ts +0 -5
- package/dal/enum/Templates.js +0 -7
- package/dal/enum/index.d.ts +0 -9
- package/dal/enum/index.js +0 -10
- package/dal/index.d.ts +0 -4
- package/dal/index.js +0 -5
- package/dal/type/BaseDao.d.ts +0 -9
- package/dal/type/BaseDao.js +0 -2
- package/dal/type/CodeGenerator.d.ts +0 -6
- package/dal/type/CodeGenerator.js +0 -2
- package/dal/type/ColumnTsType.d.ts +0 -41
- package/dal/type/ColumnTsType.js +0 -2
- package/dal/type/DateSource.d.ts +0 -13
- package/dal/type/DateSource.js +0 -2
- package/dal/type/Spatial.d.ts +0 -11
- package/dal/type/Spatial.js +0 -2
- package/dal/type/SqlMap.d.ts +0 -18
- package/dal/type/SqlMap.js +0 -2
- package/dal/type/index.d.ts +0 -6
- package/dal/type/index.js +0 -7
- package/dynamic-inject.d.ts +0 -13
- package/dynamic-inject.js +0 -2
- package/index.d.ts +0 -12
- package/index.js +0 -13
- package/lifecycle/EggObjectLifecycle.d.ts +0 -35
- package/lifecycle/EggObjectLifecycle.js +0 -2
- package/lifecycle/IdenticalObject.d.ts +0 -4
- package/lifecycle/IdenticalObject.js +0 -2
- package/lifecycle/LifecycleHook.d.ts +0 -13
- package/lifecycle/LifecycleHook.js +0 -2
- package/lifecycle/index.d.ts +0 -3
- package/lifecycle/index.js +0 -4
- package/metadata/enum/ProtoDescriptorType.d.ts +0 -3
- package/metadata/enum/ProtoDescriptorType.js +0 -5
- package/metadata/enum/index.d.ts +0 -1
- package/metadata/enum/index.js +0 -2
- package/metadata/errors.d.ts +0 -5
- package/metadata/errors.js +0 -7
- package/metadata/index.d.ts +0 -3
- package/metadata/index.js +0 -4
- package/metadata/model/EggPrototype.d.ts +0 -136
- package/metadata/model/EggPrototype.js +0 -2
- package/metadata/model/LoadUnit.d.ts +0 -29
- package/metadata/model/LoadUnit.js +0 -7
- package/metadata/model/Loader.d.ts +0 -7
- package/metadata/model/Loader.js +0 -2
- package/metadata/model/ProtoDescriptor.d.ts +0 -22
- package/metadata/model/ProtoDescriptor.js +0 -2
- package/metadata/model/index.d.ts +0 -4
- package/metadata/model/index.js +0 -5
- package/orm.d.ts +0 -30
- package/orm.js +0 -7
- package/runtime/Factory.d.ts +0 -6
- package/runtime/Factory.js +0 -2
- package/runtime/index.d.ts +0 -2
- package/runtime/index.js +0 -3
- package/runtime/model/EggContainer.d.ts +0 -11
- package/runtime/model/EggContainer.js +0 -2
- package/runtime/model/EggContext.d.ts +0 -7
- package/runtime/model/EggContext.js +0 -2
- package/runtime/model/EggObject.d.ts +0 -24
- package/runtime/model/EggObject.js +0 -9
- package/runtime/model/LoadUnitInstance.d.ts +0 -9
- package/runtime/model/LoadUnitInstance.js +0 -2
- package/runtime/model/index.d.ts +0 -4
- package/runtime/model/index.js +0 -5
- package/schedule.d.ts +0 -30
- package/schedule.js +0 -10
- package/transaction.d.ts +0 -23
- package/transaction.js +0 -10
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { AdviceContext, IAdvice } from "./aop/Advice.js";
|
|
2
|
+
import { AccessLevel } from "./core-decorator/enum/AccessLevel.js";
|
|
3
|
+
import { EggType } from "./core-decorator/enum/EggType.js";
|
|
4
|
+
import { INIT_TYPE_TRY_ORDER, ObjectInitType, ObjectInitTypeLike } from "./core-decorator/enum/ObjectInitType.js";
|
|
5
|
+
import { CONSTRUCTOR_QUALIFIER_META_DATA, ConfigSourceQualifierAttribute, EggQualifierAttribute, InitTypeQualifierAttribute, LoadUnitNameQualifierAttribute, PROPERTY_QUALIFIER_META_DATA, QUALIFIER_META_DATA } from "./core-decorator/enum/Qualifier.js";
|
|
6
|
+
import { InjectType } from "./core-decorator/enum/InjectType.js";
|
|
7
|
+
import { MultiInstanceType } from "./core-decorator/enum/MultiInstanceType.js";
|
|
8
|
+
import { QualifierAttribute, QualifierInfo, QualifierValue } from "./core-decorator/model/QualifierInfo.js";
|
|
9
|
+
import { EggProtoImplClass, EggPrototypeInfo, EggPrototypeName } from "./core-decorator/model/EggPrototypeInfo.js";
|
|
10
|
+
import { EggMultiInstanceCallbackPrototypeInfo, EggMultiInstancePrototypeInfo, MultiInstancePrototypeGetObjectsContext, ObjectInfo } from "./core-decorator/model/EggMultiInstancePrototypeInfo.js";
|
|
11
|
+
import { EggObjectName, InjectObjectInfo } from "./core-decorator/model/InjectObjectInfo.js";
|
|
12
|
+
import { InjectConstructorInfo } from "./core-decorator/model/InjectConstructorInfo.js";
|
|
13
|
+
import { ContextProtoParams } from "./core-decorator/ContextProto.js";
|
|
14
|
+
import { InjectParams } from "./core-decorator/Inject.js";
|
|
15
|
+
import { MetaDataKey } from "./core-decorator/Metadata.js";
|
|
16
|
+
import { BaseMultiInstancePrototypeCallbackParams, MultiInstancePrototypeCallbackParams, MultiInstancePrototypeParams, MultiInstancePrototypeStaticParams } from "./core-decorator/MultiInstanceProto.js";
|
|
17
|
+
import { DEFAULT_PROTO_IMPL_TYPE, PrototypeParams } from "./core-decorator/Prototype.js";
|
|
18
|
+
import { SingletonProtoParams } from "./core-decorator/SingletonProto.js";
|
|
19
|
+
import { ASPECT_LIST, AdviceInfo, AspectAdvice } from "./aop/Aspect.js";
|
|
20
|
+
import { CustomPointcutCallback, POINTCUT_ADVICE_INFO_LIAR, PointcutInfo, PointcutOptions, PointcutType } from "./aop/Pointcut.js";
|
|
21
|
+
import { CROSSCUT_INFO_LIST, ClassCrosscutParam, CrosscutInfo, CrosscutOptions, CrosscutParam, CustomCrosscutParam, IS_CROSSCUT_ADVICE, NameCrosscutParam } from "./aop/Crosscut.js";
|
|
22
|
+
import { GraphNodeObj } from "./common/Graph.js";
|
|
23
|
+
import { Logger } from "./common/Logger.js";
|
|
24
|
+
import { InlineModuleReferenceConfig, ModuleConfig, ModuleConfigHolder, ModuleReference, ModuleReferenceConfig, NpmModuleReferenceConfig, ReadModuleReferenceOptions } from "./common/ModuleConfig.js";
|
|
25
|
+
import { EnvType, RuntimeConfig } from "./common/RuntimeConfig.js";
|
|
26
|
+
import { HTTPControllerParams } from "./controller-decorator/HTTPController.js";
|
|
27
|
+
import { ControllerType, ControllerTypeLike, EggContext, HTTPMethodEnum, HTTPParamType, HostType, IncomingHttpHeaders, MethodType, MethodTypeLike, MiddlewareFunc, Next } from "./controller-decorator/model/types.js";
|
|
28
|
+
import { MethodMeta } from "./controller-decorator/model/MethodMeta.js";
|
|
29
|
+
import { ControllerMetadata } from "./controller-decorator/model/ControllerMetadata.js";
|
|
30
|
+
import { HTTPMethodParams } from "./controller-decorator/HTTPMethod.js";
|
|
31
|
+
import { HTTPParamParams, HTTPQueriesParams, HTTPQueryParams } from "./controller-decorator/HTTPParam.js";
|
|
32
|
+
import { CONTROLLER_ACL, CONTROLLER_AOP_MIDDLEWARES, CONTROLLER_HOST, CONTROLLER_HTTP_PATH, CONTROLLER_META_DATA, CONTROLLER_METHOD_METHOD_MAP, CONTROLLER_METHOD_PARAM_NAME_MAP, CONTROLLER_METHOD_PARAM_TYPE_MAP, CONTROLLER_METHOD_PATH_MAP, CONTROLLER_METHOD_PRIORITY, CONTROLLER_MIDDLEWARES, CONTROLLER_NAME, CONTROLLER_TYPE, METHOD_ACL, METHOD_AOP_MIDDLEWARES, METHOD_AOP_REGISTER_MAP, METHOD_CONTEXT_INDEX, METHOD_CONTROLLER_HOST, METHOD_CONTROLLER_TYPE_MAP, METHOD_MIDDLEWARES } from "./controller-decorator/MetadataKey.js";
|
|
33
|
+
import { ControllerMetaBuilder, ControllerMetaBuilderCreator } from "./controller-decorator/builder.js";
|
|
34
|
+
import { DAL_COLUMN_INFO_MAP, DAL_COLUMN_TYPE_MAP, DAL_INDEX_LIST, DAL_IS_DAO, DAL_IS_TABLE, DAL_TABLE_PARAMS } from "./dal/Qualifier.js";
|
|
35
|
+
import { ColumnFormat } from "./dal/enum/ColumnFormat.js";
|
|
36
|
+
import { ColumnType } from "./dal/enum/ColumnType.js";
|
|
37
|
+
import { CompressionType } from "./dal/enum/CompressionType.js";
|
|
38
|
+
import { IndexStoreType } from "./dal/enum/IndexStoreType.js";
|
|
39
|
+
import { IndexType } from "./dal/enum/IndexType.js";
|
|
40
|
+
import { InsertMethod } from "./dal/enum/InsertMethod.js";
|
|
41
|
+
import { RowFormat } from "./dal/enum/RowFormat.js";
|
|
42
|
+
import { SqlType } from "./dal/enum/SqlType.js";
|
|
43
|
+
import { Templates } from "./dal/enum/Templates.js";
|
|
44
|
+
import { BaseSpatialParams, BigIntParams, BinaryParams, BitParams, BlobParams, BoolParams, CharParams, ColumnParams, ColumnTypeParams, DateParams, DateTimeParams, DecimalParams, DoubleParams, EnumParams, FloatParams, GeometryCollectionParams, GeometryParams, IColumnTypeParams, IntParams, JsonParams, LinestringParams, LongBlobParams, LongTextParams, MediumBlobParams, MediumIntParams, MediumTextParams, MultiLinestringParams, MultiPointParams, MultiPolygonParams, PointParams, PolygonParams, SetParams, SmallIntParams, TextParams, TimeParams, TimestampParams, TinyBlobParams, TinyIntParams, TinyTextParams, VarBinaryParams, VarCharParams, YearParams } from "./dal/decorator/Column.js";
|
|
45
|
+
import { DataSourceInjectName, DataSourceQualifierAttribute } from "./dal/decorator/DataSourceQualifier.js";
|
|
46
|
+
import { TableParams } from "./dal/decorator/Table.js";
|
|
47
|
+
import { IndexParams } from "./dal/decorator/index.js";
|
|
48
|
+
import { BaseSqlMap, BlockSqlMap, FullSqlMap, GenerateSqlMap, SqlMap } from "./dal/type/SqlMap.js";
|
|
49
|
+
import { BaseDaoType } from "./dal/type/BaseDao.js";
|
|
50
|
+
import { CodeGeneratorOptions } from "./dal/type/CodeGenerator.js";
|
|
51
|
+
import { Geometry, GeometryCollection, Line, MultiLine, MultiPoint, MultiPolygon, Point, Polygon } from "./dal/type/Spatial.js";
|
|
52
|
+
import { ColumnTsType } from "./dal/type/ColumnTsType.js";
|
|
53
|
+
import { DataSource, PaginateData } from "./dal/type/DateSource.js";
|
|
54
|
+
import { EggAbstractClazz, EggObjectFactory, ImplDecorator, ImplTypeEnum, QUALIFIER_IMPL_MAP } from "./dynamic-inject.js";
|
|
55
|
+
import { ErrorCodes } from "./metadata/errors.js";
|
|
56
|
+
import { Loader } from "./metadata/model/Loader.js";
|
|
57
|
+
import { EggLoadUnitType, EggLoadUnitTypeLike, LoadUnit, LoadUnitCreator, LoadUnitLifecycleContext, LoadUnitPair } from "./metadata/model/LoadUnit.js";
|
|
58
|
+
import { EggPrototype, EggPrototypeClass, EggPrototypeCreator, EggPrototypeLifecycleContext, EggPrototypeWithClazz, InjectConstructor, InjectConstructorProto, InjectObject, InjectObjectProto } from "./metadata/model/EggPrototype.js";
|
|
59
|
+
import { ProtoDescriptorType } from "./metadata/enum/ProtoDescriptorType.js";
|
|
60
|
+
import { InjectObjectDescriptor, ProtoDescriptor, ProtoDescriptorTypeLike } from "./metadata/model/ProtoDescriptor.js";
|
|
61
|
+
import { EggContextLifecycleContext, EggRuntimeContext } from "./runtime/model/EggContext.js";
|
|
62
|
+
import { LoadUnitInstance, LoadUnitInstanceLifecycleContext } from "./runtime/model/LoadUnitInstance.js";
|
|
63
|
+
import { EggObject, EggObjectLifeCycleContext, EggObjectStatus } from "./runtime/model/EggObject.js";
|
|
64
|
+
import { EggContainer } from "./runtime/model/EggContainer.js";
|
|
65
|
+
import { ContainerGetMethod, CreateObjectMethod } from "./runtime/Factory.js";
|
|
66
|
+
import { EggObjectLifecycle, LifecycleHookName } from "./lifecycle/EggObjectLifecycle.js";
|
|
67
|
+
import { Id, IdenticalObject } from "./lifecycle/IdenticalObject.js";
|
|
68
|
+
import { LifecycleContext, LifecycleHook, LifecycleObject } from "./lifecycle/LifecycleHook.js";
|
|
69
|
+
import { AttributeOptions, IS_MODEL, IndexOptions, MODEL_DATA_ATTRIBUTES, MODEL_DATA_INDICES, MODEL_DATA_SOURCE, MODEL_DATA_TABLE_NAME, MODEL_PROTO_IMPL_TYPE, ModelAttributeInfo, ModelIndexInfo, ModelParams } from "./orm.js";
|
|
70
|
+
import { CronParams, CronScheduleParams, IS_SCHEDULE, IntervalParams, IntervalScheduleParams, SCHEDULE_METADATA, SCHEDULE_OPTIONS, SCHEDULE_PARAMS, ScheduleOptions, ScheduleParams, ScheduleSubscriber, ScheduleType, ScheduleTypeLike } from "./schedule.js";
|
|
71
|
+
import { IS_TRANSACTION_CLAZZ, PropagationType, TRANSACTION_META_DATA, TransactionMetadata, TransactionalParams } from "./transaction.js";
|
|
72
|
+
export { ASPECT_LIST, AccessLevel, AdviceContext, AdviceInfo, AspectAdvice, AttributeOptions, BaseDaoType, BaseMultiInstancePrototypeCallbackParams, BaseSpatialParams, BaseSqlMap, BigIntParams, BinaryParams, BitParams, BlobParams, BlockSqlMap, BoolParams, CONSTRUCTOR_QUALIFIER_META_DATA, CONTROLLER_ACL, CONTROLLER_AOP_MIDDLEWARES, CONTROLLER_HOST, CONTROLLER_HTTP_PATH, CONTROLLER_META_DATA, CONTROLLER_METHOD_METHOD_MAP, CONTROLLER_METHOD_PARAM_NAME_MAP, CONTROLLER_METHOD_PARAM_TYPE_MAP, CONTROLLER_METHOD_PATH_MAP, CONTROLLER_METHOD_PRIORITY, CONTROLLER_MIDDLEWARES, CONTROLLER_NAME, CONTROLLER_TYPE, CROSSCUT_INFO_LIST, CharParams, ClassCrosscutParam, CodeGeneratorOptions, ColumnFormat, ColumnParams, ColumnTsType, ColumnType, ColumnTypeParams, CompressionType, ConfigSourceQualifierAttribute, ContainerGetMethod, ContextProtoParams, ControllerMetaBuilder, ControllerMetaBuilderCreator, ControllerMetadata, ControllerType, ControllerTypeLike, CreateObjectMethod, CronParams, CronScheduleParams, CrosscutInfo, CrosscutOptions, CrosscutParam, CustomCrosscutParam, CustomPointcutCallback, DAL_COLUMN_INFO_MAP, DAL_COLUMN_TYPE_MAP, DAL_INDEX_LIST, DAL_IS_DAO, DAL_IS_TABLE, DAL_TABLE_PARAMS, DEFAULT_PROTO_IMPL_TYPE, DataSource, DataSourceInjectName, DataSourceQualifierAttribute, DateParams, DateTimeParams, DecimalParams, DoubleParams, EggAbstractClazz, EggContainer, EggContext, EggContextLifecycleContext, EggLoadUnitType, EggLoadUnitTypeLike, EggMultiInstanceCallbackPrototypeInfo, EggMultiInstancePrototypeInfo, EggObject, EggObjectFactory, EggObjectLifeCycleContext, EggObjectLifecycle, EggObjectName, EggObjectStatus, EggProtoImplClass, EggPrototype, EggPrototypeClass, EggPrototypeCreator, EggPrototypeInfo, EggPrototypeLifecycleContext, EggPrototypeName, EggPrototypeWithClazz, EggQualifierAttribute, EggRuntimeContext, EggType, EnumParams, EnvType, ErrorCodes, FloatParams, FullSqlMap, GenerateSqlMap, Geometry, GeometryCollection, GeometryCollectionParams, GeometryParams, GraphNodeObj, HTTPControllerParams, HTTPMethodEnum, HTTPMethodParams, HTTPParamParams, HTTPParamType, HTTPQueriesParams, HTTPQueryParams, HostType, IAdvice, IColumnTypeParams, INIT_TYPE_TRY_ORDER, IS_CROSSCUT_ADVICE, IS_MODEL, IS_SCHEDULE, IS_TRANSACTION_CLAZZ, Id, IdenticalObject, ImplDecorator, ImplTypeEnum, IncomingHttpHeaders, IndexOptions, IndexParams, IndexStoreType, IndexType, InitTypeQualifierAttribute, InjectConstructor, InjectConstructorInfo, InjectConstructorProto, InjectObject, InjectObjectDescriptor, InjectObjectInfo, InjectObjectProto, InjectParams, InjectType, InlineModuleReferenceConfig, InsertMethod, IntParams, IntervalParams, IntervalScheduleParams, JsonParams, LifecycleContext, LifecycleHook, LifecycleHookName, LifecycleObject, Line, LinestringParams, LoadUnit, LoadUnitCreator, LoadUnitInstance, LoadUnitInstanceLifecycleContext, LoadUnitLifecycleContext, LoadUnitNameQualifierAttribute, LoadUnitPair, Loader, Logger, LongBlobParams, LongTextParams, METHOD_ACL, METHOD_AOP_MIDDLEWARES, METHOD_AOP_REGISTER_MAP, METHOD_CONTEXT_INDEX, METHOD_CONTROLLER_HOST, METHOD_CONTROLLER_TYPE_MAP, METHOD_MIDDLEWARES, MODEL_DATA_ATTRIBUTES, MODEL_DATA_INDICES, MODEL_DATA_SOURCE, MODEL_DATA_TABLE_NAME, MODEL_PROTO_IMPL_TYPE, MediumBlobParams, MediumIntParams, MediumTextParams, MetaDataKey, MethodMeta, MethodType, MethodTypeLike, MiddlewareFunc, ModelAttributeInfo, ModelIndexInfo, ModelParams, ModuleConfig, ModuleConfigHolder, ModuleReference, ModuleReferenceConfig, MultiInstancePrototypeCallbackParams, MultiInstancePrototypeGetObjectsContext, MultiInstancePrototypeParams, MultiInstancePrototypeStaticParams, MultiInstanceType, MultiLine, MultiLinestringParams, MultiPoint, MultiPointParams, MultiPolygon, MultiPolygonParams, NameCrosscutParam, Next, NpmModuleReferenceConfig, ObjectInfo, ObjectInitType, ObjectInitTypeLike, POINTCUT_ADVICE_INFO_LIAR, PROPERTY_QUALIFIER_META_DATA, PaginateData, Point, PointParams, PointcutInfo, PointcutOptions, PointcutType, Polygon, PolygonParams, PropagationType, ProtoDescriptor, ProtoDescriptorType, ProtoDescriptorTypeLike, PrototypeParams, QUALIFIER_IMPL_MAP, QUALIFIER_META_DATA, QualifierAttribute, QualifierInfo, QualifierValue, ReadModuleReferenceOptions, RowFormat, RuntimeConfig, SCHEDULE_METADATA, SCHEDULE_OPTIONS, SCHEDULE_PARAMS, ScheduleOptions, ScheduleParams, ScheduleSubscriber, ScheduleType, ScheduleTypeLike, SetParams, SingletonProtoParams, SmallIntParams, SqlMap, SqlType, TRANSACTION_META_DATA, TableParams, Templates, TextParams, TimeParams, TimestampParams, TinyBlobParams, TinyIntParams, TinyTextParams, TransactionMetadata, TransactionalParams, VarBinaryParams, VarCharParams, YearParams };
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { QUALIFIER_IMPL_MAP } from "./dynamic-inject.js";
|
|
2
|
+
import { ASPECT_LIST } from "./aop/Aspect.js";
|
|
3
|
+
import { CROSSCUT_INFO_LIST, IS_CROSSCUT_ADVICE } from "./aop/Crosscut.js";
|
|
4
|
+
import { POINTCUT_ADVICE_INFO_LIAR, PointcutType } from "./aop/Pointcut.js";
|
|
5
|
+
import "./aop/index.js";
|
|
6
|
+
import { ControllerType, HTTPMethodEnum, HTTPParamType, MethodType } from "./controller-decorator/model/types.js";
|
|
7
|
+
import { CONTROLLER_ACL, CONTROLLER_AOP_MIDDLEWARES, CONTROLLER_HOST, CONTROLLER_HTTP_PATH, CONTROLLER_META_DATA, CONTROLLER_METHOD_METHOD_MAP, CONTROLLER_METHOD_PARAM_NAME_MAP, CONTROLLER_METHOD_PARAM_TYPE_MAP, CONTROLLER_METHOD_PATH_MAP, CONTROLLER_METHOD_PRIORITY, CONTROLLER_MIDDLEWARES, CONTROLLER_NAME, CONTROLLER_TYPE, METHOD_ACL, METHOD_AOP_MIDDLEWARES, METHOD_AOP_REGISTER_MAP, METHOD_CONTEXT_INDEX, METHOD_CONTROLLER_HOST, METHOD_CONTROLLER_TYPE_MAP, METHOD_MIDDLEWARES } from "./controller-decorator/MetadataKey.js";
|
|
8
|
+
import "./controller-decorator/index.js";
|
|
9
|
+
import { AccessLevel } from "./core-decorator/enum/AccessLevel.js";
|
|
10
|
+
import { EggType } from "./core-decorator/enum/EggType.js";
|
|
11
|
+
import { INIT_TYPE_TRY_ORDER, ObjectInitType } from "./core-decorator/enum/ObjectInitType.js";
|
|
12
|
+
import { CONSTRUCTOR_QUALIFIER_META_DATA, ConfigSourceQualifierAttribute, EggQualifierAttribute, InitTypeQualifierAttribute, LoadUnitNameQualifierAttribute, PROPERTY_QUALIFIER_META_DATA, QUALIFIER_META_DATA } from "./core-decorator/enum/Qualifier.js";
|
|
13
|
+
import { InjectType } from "./core-decorator/enum/InjectType.js";
|
|
14
|
+
import { MultiInstanceType } from "./core-decorator/enum/MultiInstanceType.js";
|
|
15
|
+
import { DEFAULT_PROTO_IMPL_TYPE } from "./core-decorator/Prototype.js";
|
|
16
|
+
import "./core-decorator/index.js";
|
|
17
|
+
import { ColumnFormat } from "./dal/enum/ColumnFormat.js";
|
|
18
|
+
import { ColumnType } from "./dal/enum/ColumnType.js";
|
|
19
|
+
import { CompressionType } from "./dal/enum/CompressionType.js";
|
|
20
|
+
import { IndexStoreType } from "./dal/enum/IndexStoreType.js";
|
|
21
|
+
import { IndexType } from "./dal/enum/IndexType.js";
|
|
22
|
+
import { InsertMethod } from "./dal/enum/InsertMethod.js";
|
|
23
|
+
import { RowFormat } from "./dal/enum/RowFormat.js";
|
|
24
|
+
import { SqlType } from "./dal/enum/SqlType.js";
|
|
25
|
+
import { Templates } from "./dal/enum/Templates.js";
|
|
26
|
+
import { DataSourceInjectName, DataSourceQualifierAttribute } from "./dal/decorator/DataSourceQualifier.js";
|
|
27
|
+
import { DAL_COLUMN_INFO_MAP, DAL_COLUMN_TYPE_MAP, DAL_INDEX_LIST, DAL_IS_DAO, DAL_IS_TABLE, DAL_TABLE_PARAMS } from "./dal/Qualifier.js";
|
|
28
|
+
import "./dal/index.js";
|
|
29
|
+
import { ErrorCodes } from "./metadata/errors.js";
|
|
30
|
+
import { EggLoadUnitType } from "./metadata/model/LoadUnit.js";
|
|
31
|
+
import { ProtoDescriptorType } from "./metadata/enum/ProtoDescriptorType.js";
|
|
32
|
+
import "./metadata/index.js";
|
|
33
|
+
import { IS_MODEL, MODEL_DATA_ATTRIBUTES, MODEL_DATA_INDICES, MODEL_DATA_SOURCE, MODEL_DATA_TABLE_NAME, MODEL_PROTO_IMPL_TYPE } from "./orm.js";
|
|
34
|
+
import { EggObjectStatus } from "./runtime/model/EggObject.js";
|
|
35
|
+
import { IS_SCHEDULE, SCHEDULE_METADATA, SCHEDULE_OPTIONS, SCHEDULE_PARAMS, ScheduleType } from "./schedule.js";
|
|
36
|
+
import { IS_TRANSACTION_CLAZZ, PropagationType, TRANSACTION_META_DATA } from "./transaction.js";
|
|
37
|
+
|
|
38
|
+
export { ASPECT_LIST, AccessLevel, CONSTRUCTOR_QUALIFIER_META_DATA, CONTROLLER_ACL, CONTROLLER_AOP_MIDDLEWARES, CONTROLLER_HOST, CONTROLLER_HTTP_PATH, CONTROLLER_META_DATA, CONTROLLER_METHOD_METHOD_MAP, CONTROLLER_METHOD_PARAM_NAME_MAP, CONTROLLER_METHOD_PARAM_TYPE_MAP, CONTROLLER_METHOD_PATH_MAP, CONTROLLER_METHOD_PRIORITY, CONTROLLER_MIDDLEWARES, CONTROLLER_NAME, CONTROLLER_TYPE, CROSSCUT_INFO_LIST, ColumnFormat, ColumnType, CompressionType, ConfigSourceQualifierAttribute, ControllerType, DAL_COLUMN_INFO_MAP, DAL_COLUMN_TYPE_MAP, DAL_INDEX_LIST, DAL_IS_DAO, DAL_IS_TABLE, DAL_TABLE_PARAMS, DEFAULT_PROTO_IMPL_TYPE, DataSourceInjectName, DataSourceQualifierAttribute, EggLoadUnitType, EggObjectStatus, EggQualifierAttribute, EggType, ErrorCodes, HTTPMethodEnum, HTTPParamType, INIT_TYPE_TRY_ORDER, IS_CROSSCUT_ADVICE, IS_MODEL, IS_SCHEDULE, IS_TRANSACTION_CLAZZ, IndexStoreType, IndexType, InitTypeQualifierAttribute, InjectType, InsertMethod, LoadUnitNameQualifierAttribute, METHOD_ACL, METHOD_AOP_MIDDLEWARES, METHOD_AOP_REGISTER_MAP, METHOD_CONTEXT_INDEX, METHOD_CONTROLLER_HOST, METHOD_CONTROLLER_TYPE_MAP, METHOD_MIDDLEWARES, MODEL_DATA_ATTRIBUTES, MODEL_DATA_INDICES, MODEL_DATA_SOURCE, MODEL_DATA_TABLE_NAME, MODEL_PROTO_IMPL_TYPE, MethodType, MultiInstanceType, ObjectInitType, POINTCUT_ADVICE_INFO_LIAR, PROPERTY_QUALIFIER_META_DATA, PointcutType, PropagationType, ProtoDescriptorType, QUALIFIER_IMPL_MAP, QUALIFIER_META_DATA, RowFormat, SCHEDULE_METADATA, SCHEDULE_OPTIONS, SCHEDULE_PARAMS, ScheduleType, SqlType, TRANSACTION_META_DATA, Templates };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { EggObject, EggObjectLifeCycleContext } from "../runtime/model/EggObject.js";
|
|
2
|
+
|
|
3
|
+
//#region src/lifecycle/EggObjectLifecycle.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* lifecycle hook interface for egg object
|
|
7
|
+
*/
|
|
8
|
+
interface EggObjectLifecycle {
|
|
9
|
+
/**
|
|
10
|
+
* call before project load
|
|
11
|
+
*/
|
|
12
|
+
preLoad?(ctx: EggObjectLifeCycleContext): Promise<void>;
|
|
13
|
+
/**
|
|
14
|
+
* call after construct
|
|
15
|
+
*/
|
|
16
|
+
postConstruct?(ctx: EggObjectLifeCycleContext, eggObj: EggObject): Promise<void>;
|
|
17
|
+
/**
|
|
18
|
+
* call before inject deps
|
|
19
|
+
*/
|
|
20
|
+
preInject?(ctx: EggObjectLifeCycleContext, eggObj: EggObject): Promise<void>;
|
|
21
|
+
/**
|
|
22
|
+
* call after inject deps
|
|
23
|
+
*/
|
|
24
|
+
postInject?(ctx: EggObjectLifeCycleContext, eggObj: EggObject): Promise<void>;
|
|
25
|
+
/**
|
|
26
|
+
* before object is ready
|
|
27
|
+
*/
|
|
28
|
+
init?(ctx: EggObjectLifeCycleContext, eggObj: EggObject): Promise<void>;
|
|
29
|
+
/**
|
|
30
|
+
* call before destroy
|
|
31
|
+
*/
|
|
32
|
+
preDestroy?(ctx: EggObjectLifeCycleContext, eggObj: EggObject): Promise<void>;
|
|
33
|
+
/**
|
|
34
|
+
* destroy the object
|
|
35
|
+
*/
|
|
36
|
+
destroy?(ctx: EggObjectLifeCycleContext, eggObj: EggObject): Promise<void>;
|
|
37
|
+
}
|
|
38
|
+
type LifecycleHookName = keyof EggObjectLifecycle;
|
|
39
|
+
//#endregion
|
|
40
|
+
export { EggObjectLifecycle, LifecycleHookName };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { IdenticalObject } from "./IdenticalObject.js";
|
|
2
|
+
|
|
3
|
+
//#region src/lifecycle/LifecycleHook.d.ts
|
|
4
|
+
interface LifecycleContext {}
|
|
5
|
+
interface LifecycleObject<T extends LifecycleContext> extends IdenticalObject {
|
|
6
|
+
preLoad?(): Promise<void>;
|
|
7
|
+
init?(ctx: T): Promise<void>;
|
|
8
|
+
destroy?(ctx: T): Promise<void>;
|
|
9
|
+
}
|
|
10
|
+
interface LifecycleHook<T extends LifecycleContext, R extends LifecycleObject<T>> {
|
|
11
|
+
preCreate?(ctx: T, obj: R): Promise<void>;
|
|
12
|
+
postCreate?(ctx: T, obj: R): Promise<void>;
|
|
13
|
+
preDestroy?(ctx: T, obj: R): Promise<void>;
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { LifecycleContext, LifecycleHook, LifecycleObject };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { EggObjectLifecycle, LifecycleHookName } from "./EggObjectLifecycle.js";
|
|
2
|
+
import { Id, IdenticalObject } from "./IdenticalObject.js";
|
|
3
|
+
import { LifecycleContext, LifecycleHook, LifecycleObject } from "./LifecycleHook.js";
|
|
4
|
+
export { EggObjectLifecycle, Id, IdenticalObject, LifecycleContext, LifecycleHook, LifecycleHookName, LifecycleObject };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
//#region src/metadata/errors.ts
|
|
2
|
+
let ErrorCodes = /* @__PURE__ */ function(ErrorCodes$1) {
|
|
3
|
+
ErrorCodes$1["EGG_PROTO_NOT_FOUND"] = "EGG_PROTO_NOT_FOUND";
|
|
4
|
+
ErrorCodes$1["MULTI_PROTO_FOUND"] = "MULTI_PROTO_FOUND";
|
|
5
|
+
ErrorCodes$1["INCOMPATIBLE_PROTO_INJECT"] = "INCOMPATIBLE_PROTO_INJECT";
|
|
6
|
+
return ErrorCodes$1;
|
|
7
|
+
}({});
|
|
8
|
+
|
|
9
|
+
//#endregion
|
|
10
|
+
export { ErrorCodes };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ErrorCodes } from "./errors.js";
|
|
2
|
+
import { Loader } from "./model/Loader.js";
|
|
3
|
+
import { EggLoadUnitType, EggLoadUnitTypeLike, LoadUnit, LoadUnitCreator, LoadUnitLifecycleContext, LoadUnitPair } from "./model/LoadUnit.js";
|
|
4
|
+
import { EggPrototype, EggPrototypeClass, EggPrototypeCreator, EggPrototypeLifecycleContext, EggPrototypeWithClazz, InjectConstructor, InjectConstructorProto, InjectObject, InjectObjectProto } from "./model/EggPrototype.js";
|
|
5
|
+
import { ProtoDescriptorType } from "./enum/ProtoDescriptorType.js";
|
|
6
|
+
import { InjectObjectDescriptor, ProtoDescriptor, ProtoDescriptorTypeLike } from "./model/ProtoDescriptor.js";
|
|
7
|
+
export { EggLoadUnitType, EggLoadUnitTypeLike, EggPrototype, EggPrototypeClass, EggPrototypeCreator, EggPrototypeLifecycleContext, EggPrototypeWithClazz, ErrorCodes, InjectConstructor, InjectConstructorProto, InjectObject, InjectObjectDescriptor, InjectObjectProto, LoadUnit, LoadUnitCreator, LoadUnitLifecycleContext, LoadUnitPair, Loader, ProtoDescriptor, ProtoDescriptorType, ProtoDescriptorTypeLike };
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { AccessLevel } from "../../core-decorator/enum/AccessLevel.js";
|
|
2
|
+
import { ObjectInitTypeLike } from "../../core-decorator/enum/ObjectInitType.js";
|
|
3
|
+
import { InjectType } from "../../core-decorator/enum/InjectType.js";
|
|
4
|
+
import { QualifierAttribute, QualifierInfo, QualifierValue } from "../../core-decorator/model/QualifierInfo.js";
|
|
5
|
+
import { EggProtoImplClass, EggPrototypeInfo, EggPrototypeName } from "../../core-decorator/model/EggPrototypeInfo.js";
|
|
6
|
+
import { MetaDataKey } from "../../core-decorator/Metadata.js";
|
|
7
|
+
import { LoadUnit } from "./LoadUnit.js";
|
|
8
|
+
import { LifecycleContext, LifecycleObject } from "../../lifecycle/LifecycleHook.js";
|
|
9
|
+
|
|
10
|
+
//#region src/metadata/model/EggPrototype.d.ts
|
|
11
|
+
interface InjectObjectProto {
|
|
12
|
+
/**
|
|
13
|
+
* property name obj inject to
|
|
14
|
+
*/
|
|
15
|
+
refName: PropertyKey;
|
|
16
|
+
/**
|
|
17
|
+
* obj's name will be injected
|
|
18
|
+
*/
|
|
19
|
+
objName: PropertyKey;
|
|
20
|
+
/**
|
|
21
|
+
* inject qualifiers
|
|
22
|
+
*/
|
|
23
|
+
qualifiers: QualifierInfo[];
|
|
24
|
+
/**
|
|
25
|
+
* optional inject
|
|
26
|
+
*/
|
|
27
|
+
optional?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* inject prototype
|
|
30
|
+
*/
|
|
31
|
+
proto: EggPrototype;
|
|
32
|
+
}
|
|
33
|
+
interface InjectConstructorProto {
|
|
34
|
+
/**
|
|
35
|
+
* inject args index
|
|
36
|
+
*/
|
|
37
|
+
refIndex: number;
|
|
38
|
+
/**
|
|
39
|
+
* property name obj inject to
|
|
40
|
+
*/
|
|
41
|
+
refName: PropertyKey;
|
|
42
|
+
/**
|
|
43
|
+
* obj's name will be injected
|
|
44
|
+
*/
|
|
45
|
+
objName: PropertyKey;
|
|
46
|
+
/**
|
|
47
|
+
* inject qualifiers
|
|
48
|
+
*/
|
|
49
|
+
qualifiers: QualifierInfo[];
|
|
50
|
+
/**
|
|
51
|
+
* optional inject
|
|
52
|
+
*/
|
|
53
|
+
optional?: boolean;
|
|
54
|
+
/**
|
|
55
|
+
* inject prototype
|
|
56
|
+
*/
|
|
57
|
+
proto: EggPrototype;
|
|
58
|
+
}
|
|
59
|
+
interface InjectObject {
|
|
60
|
+
/**
|
|
61
|
+
* property name obj inject to
|
|
62
|
+
*/
|
|
63
|
+
refName: PropertyKey;
|
|
64
|
+
/**
|
|
65
|
+
* obj's name will be injected
|
|
66
|
+
*/
|
|
67
|
+
objName: PropertyKey;
|
|
68
|
+
/**
|
|
69
|
+
* obj's initType will be injected
|
|
70
|
+
* if null same as current obj
|
|
71
|
+
*/
|
|
72
|
+
initType?: ObjectInitTypeLike;
|
|
73
|
+
/**
|
|
74
|
+
* optional inject
|
|
75
|
+
*/
|
|
76
|
+
optional?: boolean;
|
|
77
|
+
}
|
|
78
|
+
interface InjectConstructor {
|
|
79
|
+
/**
|
|
80
|
+
* property name obj inject to
|
|
81
|
+
*/
|
|
82
|
+
refIndex: number;
|
|
83
|
+
/**
|
|
84
|
+
* property name obj inject to
|
|
85
|
+
*/
|
|
86
|
+
refName: PropertyKey;
|
|
87
|
+
/**
|
|
88
|
+
* obj's name will be injected
|
|
89
|
+
*/
|
|
90
|
+
objName: PropertyKey;
|
|
91
|
+
/**
|
|
92
|
+
* obj's initType will be injected
|
|
93
|
+
* if null same as current obj
|
|
94
|
+
*/
|
|
95
|
+
initType?: ObjectInitTypeLike;
|
|
96
|
+
/**
|
|
97
|
+
* optional inject
|
|
98
|
+
*/
|
|
99
|
+
optional?: boolean;
|
|
100
|
+
}
|
|
101
|
+
type EggPrototypeClass = new (...args: any[]) => EggPrototype;
|
|
102
|
+
interface EggPrototypeLifecycleContext extends LifecycleContext {
|
|
103
|
+
clazz: EggProtoImplClass;
|
|
104
|
+
prototypeInfo: EggPrototypeInfo;
|
|
105
|
+
loadUnit: LoadUnit;
|
|
106
|
+
}
|
|
107
|
+
interface EggPrototype extends LifecycleObject<EggPrototypeLifecycleContext> {
|
|
108
|
+
[key: symbol]: PropertyDescriptor;
|
|
109
|
+
readonly name: EggPrototypeName;
|
|
110
|
+
readonly initType: ObjectInitTypeLike;
|
|
111
|
+
readonly accessLevel: AccessLevel;
|
|
112
|
+
readonly loadUnitId: string;
|
|
113
|
+
readonly injectObjects: Array<InjectObjectProto | InjectConstructorProto>;
|
|
114
|
+
readonly injectType?: InjectType;
|
|
115
|
+
readonly className?: string;
|
|
116
|
+
readonly multiInstanceConstructorIndex?: number;
|
|
117
|
+
readonly multiInstanceConstructorAttributes?: QualifierAttribute[];
|
|
118
|
+
/**
|
|
119
|
+
* get metadata for key
|
|
120
|
+
* @param {MetaDataKey} metadataKey
|
|
121
|
+
*/
|
|
122
|
+
getMetaData<T>(metadataKey: MetaDataKey): T | undefined;
|
|
123
|
+
/**
|
|
124
|
+
* verify proto is satisfied with qualifier
|
|
125
|
+
*
|
|
126
|
+
* default qualifier:
|
|
127
|
+
* - load unit name
|
|
128
|
+
* - init type
|
|
129
|
+
*
|
|
130
|
+
* @param qualifier
|
|
131
|
+
*/
|
|
132
|
+
verifyQualifier(qualifier: QualifierInfo): boolean;
|
|
133
|
+
verifyQualifiers(qualifiers: QualifierInfo[]): boolean;
|
|
134
|
+
getQualifier(attribute: QualifierAttribute): QualifierValue | undefined;
|
|
135
|
+
/**
|
|
136
|
+
* construct egg object, not trigger lifecycle method/hook
|
|
137
|
+
*/
|
|
138
|
+
constructEggObject(...args: any): object;
|
|
139
|
+
}
|
|
140
|
+
interface EggPrototypeWithClazz extends EggPrototype {
|
|
141
|
+
clazz?: EggProtoImplClass;
|
|
142
|
+
}
|
|
143
|
+
type EggPrototypeCreator = (ctx: EggPrototypeLifecycleContext) => EggPrototype;
|
|
144
|
+
//#endregion
|
|
145
|
+
export { EggPrototype, EggPrototypeClass, EggPrototypeCreator, EggPrototypeLifecycleContext, EggPrototypeWithClazz, InjectConstructor, InjectConstructorProto, InjectObject, InjectObjectProto };
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { QualifierInfo } from "../../core-decorator/model/QualifierInfo.js";
|
|
2
|
+
import { EggPrototypeName } from "../../core-decorator/model/EggPrototypeInfo.js";
|
|
3
|
+
import { Loader } from "./Loader.js";
|
|
4
|
+
import { EggPrototype } from "./EggPrototype.js";
|
|
5
|
+
import { LifecycleContext, LifecycleObject } from "../../lifecycle/LifecycleHook.js";
|
|
6
|
+
|
|
7
|
+
//#region src/metadata/model/LoadUnit.d.ts
|
|
8
|
+
declare enum EggLoadUnitType {
|
|
9
|
+
MODULE = "MODULE",
|
|
10
|
+
PLUGIN = "PLUGIN",
|
|
11
|
+
APP = "APP",
|
|
12
|
+
}
|
|
13
|
+
type EggLoadUnitTypeLike = EggLoadUnitType | string;
|
|
14
|
+
interface LoadUnitLifecycleContext extends LifecycleContext {
|
|
15
|
+
unitPath: string;
|
|
16
|
+
loader: Loader;
|
|
17
|
+
}
|
|
18
|
+
interface LoadUnit extends LifecycleObject<LoadUnitLifecycleContext> {
|
|
19
|
+
readonly name: string;
|
|
20
|
+
readonly unitPath: string;
|
|
21
|
+
readonly type: EggLoadUnitTypeLike;
|
|
22
|
+
iterateEggPrototype(): IterableIterator<EggPrototype>;
|
|
23
|
+
registerEggPrototype(proto: EggPrototype): void;
|
|
24
|
+
deletePrototype(proto: EggPrototype): void;
|
|
25
|
+
getEggPrototype(name: EggPrototypeName, qualifiers: QualifierInfo[]): EggPrototype[];
|
|
26
|
+
containPrototype(proto: EggPrototype): boolean;
|
|
27
|
+
}
|
|
28
|
+
interface LoadUnitPair {
|
|
29
|
+
loadUnit: LoadUnit;
|
|
30
|
+
ctx: LoadUnitLifecycleContext;
|
|
31
|
+
}
|
|
32
|
+
type LoadUnitCreator = (ctx: LoadUnitLifecycleContext) => LoadUnit;
|
|
33
|
+
//#endregion
|
|
34
|
+
export { EggLoadUnitType, EggLoadUnitTypeLike, LoadUnit, LoadUnitCreator, LoadUnitLifecycleContext, LoadUnitPair };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
//#region src/metadata/model/LoadUnit.ts
|
|
2
|
+
let EggLoadUnitType = /* @__PURE__ */ function(EggLoadUnitType$1) {
|
|
3
|
+
EggLoadUnitType$1["MODULE"] = "MODULE";
|
|
4
|
+
EggLoadUnitType$1["PLUGIN"] = "PLUGIN";
|
|
5
|
+
EggLoadUnitType$1["APP"] = "APP";
|
|
6
|
+
return EggLoadUnitType$1;
|
|
7
|
+
}({});
|
|
8
|
+
|
|
9
|
+
//#endregion
|
|
10
|
+
export { EggLoadUnitType };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { EggProtoImplClass } from "../../core-decorator/model/EggPrototypeInfo.js";
|
|
2
|
+
|
|
3
|
+
//#region src/metadata/model/Loader.d.ts
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Loader to load class list in module
|
|
7
|
+
*/
|
|
8
|
+
interface Loader {
|
|
9
|
+
load(): Promise<EggProtoImplClass[]>;
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { Loader };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { AccessLevel } from "../../core-decorator/enum/AccessLevel.js";
|
|
2
|
+
import { ObjectInitTypeLike } from "../../core-decorator/enum/ObjectInitType.js";
|
|
3
|
+
import { QualifierInfo } from "../../core-decorator/model/QualifierInfo.js";
|
|
4
|
+
import { EggPrototypeInfo } from "../../core-decorator/model/EggPrototypeInfo.js";
|
|
5
|
+
import { ProtoDescriptorType } from "../enum/ProtoDescriptorType.js";
|
|
6
|
+
|
|
7
|
+
//#region src/metadata/model/ProtoDescriptor.d.ts
|
|
8
|
+
type ProtoDescriptorTypeLike = ProtoDescriptorType | string;
|
|
9
|
+
interface InjectObjectDescriptor {
|
|
10
|
+
refName: PropertyKey;
|
|
11
|
+
objName: PropertyKey;
|
|
12
|
+
qualifiers: QualifierInfo[];
|
|
13
|
+
}
|
|
14
|
+
interface ProtoDescriptor extends EggPrototypeInfo {
|
|
15
|
+
name: PropertyKey;
|
|
16
|
+
accessLevel: AccessLevel;
|
|
17
|
+
initType: ObjectInitTypeLike;
|
|
18
|
+
qualifiers: QualifierInfo[];
|
|
19
|
+
injectObjects: InjectObjectDescriptor[];
|
|
20
|
+
protoImplType: string;
|
|
21
|
+
properQualifiers: Record<PropertyKey, QualifierInfo[]>;
|
|
22
|
+
defineModuleName: string;
|
|
23
|
+
defineUnitPath: string;
|
|
24
|
+
instanceModuleName: string;
|
|
25
|
+
instanceDefineUnitPath: string;
|
|
26
|
+
equal(protoDescriptor: ProtoDescriptor): boolean;
|
|
27
|
+
}
|
|
28
|
+
//#endregion
|
|
29
|
+
export { InjectObjectDescriptor, ProtoDescriptor, ProtoDescriptorTypeLike };
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Loader } from "./Loader.js";
|
|
2
|
+
import { EggLoadUnitType, EggLoadUnitTypeLike, LoadUnit, LoadUnitCreator, LoadUnitLifecycleContext, LoadUnitPair } from "./LoadUnit.js";
|
|
3
|
+
import { EggPrototype, EggPrototypeClass, EggPrototypeCreator, EggPrototypeLifecycleContext, EggPrototypeWithClazz, InjectConstructor, InjectConstructorProto, InjectObject, InjectObjectProto } from "./EggPrototype.js";
|
|
4
|
+
import { InjectObjectDescriptor, ProtoDescriptor, ProtoDescriptorTypeLike } from "./ProtoDescriptor.js";
|
|
5
|
+
export { EggLoadUnitType, EggLoadUnitTypeLike, EggPrototype, EggPrototypeClass, EggPrototypeCreator, EggPrototypeLifecycleContext, EggPrototypeWithClazz, InjectConstructor, InjectConstructorProto, InjectObject, InjectObjectDescriptor, InjectObjectProto, LoadUnit, LoadUnitCreator, LoadUnitLifecycleContext, LoadUnitPair, Loader, ProtoDescriptor, ProtoDescriptorTypeLike };
|
package/dist/orm.d.ts
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
//#region src/orm.d.ts
|
|
2
|
+
interface AttributeOptions {
|
|
3
|
+
name?: string;
|
|
4
|
+
allowNull?: boolean;
|
|
5
|
+
autoIncrement?: boolean;
|
|
6
|
+
primary?: boolean;
|
|
7
|
+
unique?: boolean;
|
|
8
|
+
}
|
|
9
|
+
interface IndexOptions {
|
|
10
|
+
unique?: boolean;
|
|
11
|
+
primary?: boolean;
|
|
12
|
+
name?: string;
|
|
13
|
+
}
|
|
14
|
+
interface ModelParams {
|
|
15
|
+
tableName?: string;
|
|
16
|
+
dataSource?: string;
|
|
17
|
+
}
|
|
18
|
+
interface ModelIndexInfo {
|
|
19
|
+
fields: string[];
|
|
20
|
+
options?: IndexOptions;
|
|
21
|
+
}
|
|
22
|
+
interface ModelAttributeInfo {
|
|
23
|
+
dataType: string;
|
|
24
|
+
options?: AttributeOptions;
|
|
25
|
+
}
|
|
26
|
+
declare const MODEL_PROTO_IMPL_TYPE = "MODEL_PROTO";
|
|
27
|
+
declare const IS_MODEL: unique symbol;
|
|
28
|
+
declare const MODEL_DATA_SOURCE: unique symbol;
|
|
29
|
+
declare const MODEL_DATA_TABLE_NAME: unique symbol;
|
|
30
|
+
declare const MODEL_DATA_INDICES: unique symbol;
|
|
31
|
+
declare const MODEL_DATA_ATTRIBUTES: unique symbol;
|
|
32
|
+
//#endregion
|
|
33
|
+
export { AttributeOptions, IS_MODEL, IndexOptions, MODEL_DATA_ATTRIBUTES, MODEL_DATA_INDICES, MODEL_DATA_SOURCE, MODEL_DATA_TABLE_NAME, MODEL_PROTO_IMPL_TYPE, ModelAttributeInfo, ModelIndexInfo, ModelParams };
|
package/dist/orm.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
//#region src/orm.ts
|
|
2
|
+
const MODEL_PROTO_IMPL_TYPE = "MODEL_PROTO";
|
|
3
|
+
const IS_MODEL = Symbol.for("EggPrototype#model#isModel");
|
|
4
|
+
const MODEL_DATA_SOURCE = Symbol.for("EggPrototype#model#dataSource");
|
|
5
|
+
const MODEL_DATA_TABLE_NAME = Symbol.for("EggPrototype#model#tableName");
|
|
6
|
+
const MODEL_DATA_INDICES = Symbol.for("EggPrototype#model#indices");
|
|
7
|
+
const MODEL_DATA_ATTRIBUTES = Symbol.for("EggPrototype#model#attributes");
|
|
8
|
+
|
|
9
|
+
//#endregion
|
|
10
|
+
export { IS_MODEL, MODEL_DATA_ATTRIBUTES, MODEL_DATA_INDICES, MODEL_DATA_SOURCE, MODEL_DATA_TABLE_NAME, MODEL_PROTO_IMPL_TYPE };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { EggObjectName } from "../core-decorator/model/InjectObjectInfo.js";
|
|
2
|
+
import { EggPrototype } from "../metadata/model/EggPrototype.js";
|
|
3
|
+
import { EggObject, EggObjectLifeCycleContext } from "./model/EggObject.js";
|
|
4
|
+
import { EggContainer } from "./model/EggContainer.js";
|
|
5
|
+
import { LifecycleContext } from "../lifecycle/LifecycleHook.js";
|
|
6
|
+
|
|
7
|
+
//#region src/runtime/Factory.d.ts
|
|
8
|
+
type ContainerGetMethod = (proto: EggPrototype) => EggContainer<LifecycleContext>;
|
|
9
|
+
type CreateObjectMethod = (name: EggObjectName, proto: EggPrototype, lifecycleContext: EggObjectLifeCycleContext) => Promise<EggObject>;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { ContainerGetMethod, CreateObjectMethod };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { EggContextLifecycleContext, EggRuntimeContext } from "./model/EggContext.js";
|
|
2
|
+
import { LoadUnitInstance, LoadUnitInstanceLifecycleContext } from "./model/LoadUnitInstance.js";
|
|
3
|
+
import { EggObject, EggObjectLifeCycleContext, EggObjectStatus } from "./model/EggObject.js";
|
|
4
|
+
import { EggContainer } from "./model/EggContainer.js";
|
|
5
|
+
import { ContainerGetMethod, CreateObjectMethod } from "./Factory.js";
|
|
6
|
+
export { ContainerGetMethod, CreateObjectMethod, EggContainer, EggContextLifecycleContext, EggObject, EggObjectLifeCycleContext, EggObjectStatus, EggRuntimeContext, LoadUnitInstance, LoadUnitInstanceLifecycleContext };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { EggPrototypeName } from "../../core-decorator/model/EggPrototypeInfo.js";
|
|
2
|
+
import { EggObjectName } from "../../core-decorator/model/InjectObjectInfo.js";
|
|
3
|
+
import { EggPrototype } from "../../metadata/model/EggPrototype.js";
|
|
4
|
+
import { EggObject } from "./EggObject.js";
|
|
5
|
+
import { LifecycleContext, LifecycleObject } from "../../lifecycle/LifecycleHook.js";
|
|
6
|
+
|
|
7
|
+
//#region src/runtime/model/EggContainer.d.ts
|
|
8
|
+
interface EggContainer<T extends LifecycleContext> extends LifecycleObject<T> {
|
|
9
|
+
iterateProtoToCreate(): IterableIterator<[EggObjectName, EggPrototype]>;
|
|
10
|
+
addProtoToCreate(name: EggPrototypeName, proto: EggPrototype): void;
|
|
11
|
+
deleteProtoToCreate(name: EggPrototypeName): void;
|
|
12
|
+
getOrCreateEggObject(name: EggPrototypeName, proto: EggPrototype): Promise<EggObject>;
|
|
13
|
+
getEggObject(name: EggPrototypeName, proto: EggPrototype): EggObject;
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { EggContainer };
|