@eggjs/tegg-types 4.0.0-beta.34 → 4.0.0-beta.36
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/dist/aop/Advice.d.ts +39 -36
- package/dist/aop/Advice.js +1 -2
- package/dist/aop/Aspect.d.ts +15 -11
- package/dist/aop/Aspect.js +5 -2
- package/dist/aop/Crosscut.d.ts +27 -23
- package/dist/aop/Crosscut.js +6 -3
- package/dist/aop/Pointcut.d.ts +27 -23
- package/dist/aop/Pointcut.js +9 -15
- package/dist/aop/index.d.ts +5 -4
- package/dist/aop/index.js +5 -5
- package/dist/common/Graph.d.ts +5 -2
- package/dist/common/Graph.js +1 -2
- package/dist/common/Logger.d.ts +9 -6
- package/dist/common/Logger.js +1 -2
- package/dist/common/ModuleConfig.d.ts +24 -22
- package/dist/common/ModuleConfig.js +1 -2
- package/dist/common/RuntimeConfig.d.ts +17 -14
- package/dist/common/RuntimeConfig.js +1 -2
- package/dist/common/index.d.ts +5 -4
- package/dist/common/index.js +1 -5
- package/dist/controller-decorator/HTTPController.d.ts +7 -4
- package/dist/controller-decorator/HTTPController.js +1 -2
- package/dist/controller-decorator/HTTPMethod.d.ts +10 -5
- package/dist/controller-decorator/HTTPMethod.js +1 -2
- package/dist/controller-decorator/HTTPParam.d.ts +9 -6
- package/dist/controller-decorator/HTTPParam.js +1 -2
- package/dist/controller-decorator/MetadataKey.d.ts +23 -20
- package/dist/controller-decorator/MetadataKey.js +24 -21
- package/dist/controller-decorator/builder.d.ts +10 -5
- package/dist/controller-decorator/builder.js +1 -2
- package/dist/controller-decorator/index.d.ts +10 -6
- package/dist/controller-decorator/index.js +4 -7
- package/dist/controller-decorator/model/ControllerMetadata.d.ts +14 -10
- package/dist/controller-decorator/model/ControllerMetadata.js +1 -2
- package/dist/controller-decorator/model/MethodMeta.d.ts +9 -5
- package/dist/controller-decorator/model/MethodMeta.js +1 -2
- package/dist/controller-decorator/model/index.d.ts +4 -3
- package/dist/controller-decorator/model/index.js +3 -4
- package/dist/controller-decorator/model/types.d.ts +47 -44
- package/dist/controller-decorator/model/types.js +37 -34
- package/dist/core-decorator/ContextProto.d.ts +9 -5
- package/dist/core-decorator/ContextProto.js +3 -2
- package/dist/core-decorator/Inject.d.ts +6 -3
- package/dist/core-decorator/Inject.js +1 -2
- package/dist/core-decorator/Metadata.d.ts +4 -1
- package/dist/core-decorator/Metadata.js +1 -2
- package/dist/core-decorator/MultiInstanceProto.d.ts +28 -23
- package/dist/core-decorator/MultiInstanceProto.js +1 -2
- package/dist/core-decorator/Prototype.d.ts +12 -7
- package/dist/core-decorator/Prototype.js +5 -2
- package/dist/core-decorator/SingletonProto.d.ts +9 -5
- package/dist/core-decorator/SingletonProto.js +1 -2
- package/dist/core-decorator/enum/AccessLevel.d.ts +7 -4
- package/dist/core-decorator/enum/AccessLevel.js +7 -6
- package/dist/core-decorator/enum/EggType.d.ts +7 -4
- package/dist/core-decorator/enum/EggType.js +7 -4
- package/dist/core-decorator/enum/InjectType.d.ts +7 -4
- package/dist/core-decorator/enum/InjectType.js +7 -4
- package/dist/core-decorator/enum/MultiInstanceType.d.ts +7 -4
- package/dist/core-decorator/enum/MultiInstanceType.js +7 -4
- package/dist/core-decorator/enum/ObjectInitType.d.ts +10 -7
- package/dist/core-decorator/enum/ObjectInitType.js +12 -12
- package/dist/core-decorator/enum/Qualifier.d.ts +10 -7
- package/dist/core-decorator/enum/Qualifier.js +11 -8
- package/dist/core-decorator/enum/index.d.ts +7 -6
- package/dist/core-decorator/enum/index.js +8 -7
- package/dist/core-decorator/index.d.ts +18 -8
- package/dist/core-decorator/index.js +12 -9
- package/dist/core-decorator/model/EggMultiInstancePrototypeInfo.d.ts +58 -53
- package/dist/core-decorator/model/EggMultiInstancePrototypeInfo.js +4 -4
- package/dist/core-decorator/model/EggPrototypeInfo.d.ts +38 -33
- package/dist/core-decorator/model/EggPrototypeInfo.js +3 -3
- package/dist/core-decorator/model/InjectConstructorInfo.d.ts +22 -18
- package/dist/core-decorator/model/InjectConstructorInfo.js +1 -2
- package/dist/core-decorator/model/InjectObjectInfo.d.ts +17 -14
- package/dist/core-decorator/model/InjectObjectInfo.js +1 -2
- package/dist/core-decorator/model/QualifierInfo.d.ts +39 -36
- package/dist/core-decorator/model/QualifierInfo.js +1 -2
- package/dist/core-decorator/model/index.d.ts +6 -5
- package/dist/core-decorator/model/index.js +4 -6
- package/dist/dal/Qualifier.d.ts +9 -6
- package/dist/dal/Qualifier.js +10 -7
- package/dist/dal/decorator/Column.d.ts +145 -141
- package/dist/dal/decorator/Column.js +1 -2
- package/dist/dal/decorator/DataSourceQualifier.d.ts +5 -2
- package/dist/dal/decorator/DataSourceQualifier.js +6 -3
- package/dist/dal/decorator/Table.d.ts +26 -20
- package/dist/dal/decorator/Table.js +1 -2
- package/dist/dal/decorator/index.d.ts +18 -13
- package/dist/dal/decorator/index.js +3 -4
- package/dist/dal/enum/ColumnFormat.d.ts +8 -5
- package/dist/dal/enum/ColumnFormat.js +8 -5
- package/dist/dal/enum/ColumnType.d.ts +43 -40
- package/dist/dal/enum/ColumnType.js +43 -46
- package/dist/dal/enum/CompressionType.d.ts +8 -5
- package/dist/dal/enum/CompressionType.js +8 -5
- package/dist/dal/enum/IndexStoreType.d.ts +7 -4
- package/dist/dal/enum/IndexStoreType.js +7 -4
- package/dist/dal/enum/IndexType.d.ts +10 -7
- package/dist/dal/enum/IndexType.js +10 -7
- package/dist/dal/enum/InsertMethod.d.ts +8 -5
- package/dist/dal/enum/InsertMethod.js +8 -5
- package/dist/dal/enum/RowFormat.d.ts +11 -8
- package/dist/dal/enum/RowFormat.js +11 -8
- package/dist/dal/enum/SqlType.d.ts +10 -7
- package/dist/dal/enum/SqlType.js +10 -7
- package/dist/dal/enum/Templates.d.ts +8 -5
- package/dist/dal/enum/Templates.js +8 -5
- package/dist/dal/enum/index.d.ts +10 -9
- package/dist/dal/enum/index.js +11 -10
- package/dist/dal/index.d.ts +21 -4
- package/dist/dal/index.js +13 -5
- package/dist/dal/type/BaseDao.d.ts +12 -8
- package/dist/dal/type/BaseDao.js +1 -2
- package/dist/dal/type/CodeGenerator.d.ts +8 -5
- package/dist/dal/type/CodeGenerator.js +1 -2
- package/dist/dal/type/ColumnTsType.d.ts +44 -40
- package/dist/dal/type/ColumnTsType.js +1 -2
- package/dist/dal/type/DateSource.d.ts +14 -11
- package/dist/dal/type/DateSource.js +1 -2
- package/dist/dal/type/Spatial.d.ts +13 -10
- package/dist/dal/type/Spatial.js +1 -2
- package/dist/dal/type/SqlMap.d.ts +18 -14
- package/dist/dal/type/SqlMap.js +1 -2
- package/dist/dal/type/index.d.ts +7 -6
- package/dist/dal/type/index.js +1 -7
- package/dist/dynamic-inject.d.ts +15 -10
- package/dist/dynamic-inject.js +5 -2
- package/dist/index.d.ts +73 -12
- package/dist/index.js +38 -13
- package/dist/lifecycle/EggObjectLifecycle.d.ts +38 -33
- package/dist/lifecycle/EggObjectLifecycle.js +1 -2
- package/dist/lifecycle/IdenticalObject.d.ts +6 -3
- package/dist/lifecycle/IdenticalObject.js +1 -2
- package/dist/lifecycle/LifecycleHook.d.ts +14 -11
- package/dist/lifecycle/LifecycleHook.js +1 -2
- package/dist/lifecycle/index.d.ts +4 -3
- package/dist/lifecycle/index.js +1 -4
- package/dist/metadata/enum/ProtoDescriptorType.d.ts +6 -3
- package/dist/metadata/enum/ProtoDescriptorType.js +5 -4
- package/dist/metadata/enum/index.d.ts +2 -1
- package/dist/metadata/enum/index.js +3 -2
- package/dist/metadata/errors.d.ts +8 -5
- package/dist/metadata/errors.js +8 -5
- package/dist/metadata/index.d.ts +7 -3
- package/dist/metadata/index.js +6 -4
- package/dist/metadata/model/EggPrototype.d.ts +138 -129
- package/dist/metadata/model/EggPrototype.js +3 -4
- package/dist/metadata/model/LoadUnit.d.ts +31 -26
- package/dist/metadata/model/LoadUnit.js +8 -5
- package/dist/metadata/model/Loader.d.ts +10 -5
- package/dist/metadata/model/Loader.js +1 -2
- package/dist/metadata/model/ProtoDescriptor.d.ts +27 -20
- package/dist/metadata/model/ProtoDescriptor.js +3 -3
- package/dist/metadata/model/index.d.ts +5 -4
- package/dist/metadata/model/index.js +5 -5
- package/dist/orm.d.ts +28 -25
- package/dist/orm.js +10 -7
- package/dist/runtime/Factory.d.ts +11 -6
- package/dist/runtime/Factory.js +1 -2
- package/dist/runtime/index.d.ts +6 -2
- package/dist/runtime/index.js +3 -3
- package/dist/runtime/model/EggContainer.d.ts +15 -10
- package/dist/runtime/model/EggContainer.js +1 -2
- package/dist/runtime/model/EggContext.d.ts +9 -6
- package/dist/runtime/model/EggContext.js +1 -2
- package/dist/runtime/model/EggObject.d.ts +27 -22
- package/dist/runtime/model/EggObject.js +10 -7
- package/dist/runtime/model/LoadUnitInstance.d.ts +11 -7
- package/dist/runtime/model/LoadUnitInstance.js +1 -2
- package/dist/runtime/model/index.d.ts +5 -4
- package/dist/runtime/model/index.js +3 -5
- package/dist/schedule.d.ts +42 -38
- package/dist/schedule.js +11 -8
- package/dist/transaction.d.ts +24 -21
- package/dist/transaction.js +9 -8
- package/package.json +29 -33
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
// new object only once
|
|
7
|
-
SINGLETON: 'SINGLETON',
|
|
1
|
+
//#region src/core-decorator/enum/ObjectInitType.ts
|
|
2
|
+
const ObjectInitType = {
|
|
3
|
+
ALWAYS_NEW: "ALWAYS_NEW",
|
|
4
|
+
CONTEXT: "CONTEXT",
|
|
5
|
+
SINGLETON: "SINGLETON"
|
|
8
6
|
};
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
const INIT_TYPE_TRY_ORDER = [
|
|
8
|
+
ObjectInitType.CONTEXT,
|
|
9
|
+
ObjectInitType.SINGLETON,
|
|
10
|
+
ObjectInitType.ALWAYS_NEW
|
|
13
11
|
];
|
|
14
|
-
|
|
12
|
+
|
|
13
|
+
//#endregion
|
|
14
|
+
export { INIT_TYPE_TRY_ORDER, ObjectInitType };
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
//#region src/core-decorator/enum/Qualifier.d.ts
|
|
2
|
+
declare const ConfigSourceQualifierAttribute: symbol;
|
|
3
|
+
declare const EggQualifierAttribute: symbol;
|
|
4
|
+
declare const InitTypeQualifierAttribute: symbol;
|
|
5
|
+
declare const LoadUnitNameQualifierAttribute: symbol;
|
|
6
|
+
declare const QUALIFIER_META_DATA: symbol;
|
|
7
|
+
declare const PROPERTY_QUALIFIER_META_DATA: symbol;
|
|
8
|
+
declare const CONSTRUCTOR_QUALIFIER_META_DATA: symbol;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { CONSTRUCTOR_QUALIFIER_META_DATA, ConfigSourceQualifierAttribute, EggQualifierAttribute, InitTypeQualifierAttribute, LoadUnitNameQualifierAttribute, PROPERTY_QUALIFIER_META_DATA, QUALIFIER_META_DATA };
|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
//#region src/core-decorator/enum/Qualifier.ts
|
|
2
|
+
const ConfigSourceQualifierAttribute = Symbol.for("Qualifier.ConfigSource");
|
|
3
|
+
const EggQualifierAttribute = Symbol.for("Qualifier.Egg");
|
|
4
|
+
const InitTypeQualifierAttribute = Symbol.for("Qualifier.InitType");
|
|
5
|
+
const LoadUnitNameQualifierAttribute = Symbol.for("Qualifier.LoadUnitName");
|
|
6
|
+
const QUALIFIER_META_DATA = Symbol.for("EggPrototype#qualifier");
|
|
7
|
+
const PROPERTY_QUALIFIER_META_DATA = Symbol.for("EggPrototype#propertyQualifier");
|
|
8
|
+
const CONSTRUCTOR_QUALIFIER_META_DATA = Symbol.for("EggPrototype#constructorQualifier");
|
|
9
|
+
|
|
10
|
+
//#endregion
|
|
11
|
+
export { CONSTRUCTOR_QUALIFIER_META_DATA, ConfigSourceQualifierAttribute, EggQualifierAttribute, InitTypeQualifierAttribute, LoadUnitNameQualifierAttribute, PROPERTY_QUALIFIER_META_DATA, QUALIFIER_META_DATA };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { AccessLevel } from "./AccessLevel.js";
|
|
2
|
+
import { EggType } from "./EggType.js";
|
|
3
|
+
import { INIT_TYPE_TRY_ORDER, ObjectInitType, ObjectInitTypeLike } from "./ObjectInitType.js";
|
|
4
|
+
import { CONSTRUCTOR_QUALIFIER_META_DATA, ConfigSourceQualifierAttribute, EggQualifierAttribute, InitTypeQualifierAttribute, LoadUnitNameQualifierAttribute, PROPERTY_QUALIFIER_META_DATA, QUALIFIER_META_DATA } from "./Qualifier.js";
|
|
5
|
+
import { InjectType } from "./InjectType.js";
|
|
6
|
+
import { MultiInstanceType } from "./MultiInstanceType.js";
|
|
7
|
+
export { AccessLevel, CONSTRUCTOR_QUALIFIER_META_DATA, ConfigSourceQualifierAttribute, EggQualifierAttribute, EggType, INIT_TYPE_TRY_ORDER, InitTypeQualifierAttribute, InjectType, LoadUnitNameQualifierAttribute, MultiInstanceType, ObjectInitType, ObjectInitTypeLike, PROPERTY_QUALIFIER_META_DATA, QUALIFIER_META_DATA };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { AccessLevel } from "./AccessLevel.js";
|
|
2
|
+
import { EggType } from "./EggType.js";
|
|
3
|
+
import { INIT_TYPE_TRY_ORDER, ObjectInitType } from "./ObjectInitType.js";
|
|
4
|
+
import { CONSTRUCTOR_QUALIFIER_META_DATA, ConfigSourceQualifierAttribute, EggQualifierAttribute, InitTypeQualifierAttribute, LoadUnitNameQualifierAttribute, PROPERTY_QUALIFIER_META_DATA, QUALIFIER_META_DATA } from "./Qualifier.js";
|
|
5
|
+
import { InjectType } from "./InjectType.js";
|
|
6
|
+
import { MultiInstanceType } from "./MultiInstanceType.js";
|
|
7
|
+
|
|
8
|
+
export { AccessLevel, CONSTRUCTOR_QUALIFIER_META_DATA, ConfigSourceQualifierAttribute, EggQualifierAttribute, EggType, INIT_TYPE_TRY_ORDER, InitTypeQualifierAttribute, InjectType, LoadUnitNameQualifierAttribute, MultiInstanceType, ObjectInitType, PROPERTY_QUALIFIER_META_DATA, QUALIFIER_META_DATA };
|
|
@@ -1,8 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { AccessLevel } from "./enum/AccessLevel.js";
|
|
2
|
+
import { EggType } from "./enum/EggType.js";
|
|
3
|
+
import { INIT_TYPE_TRY_ORDER, ObjectInitType, ObjectInitTypeLike } from "./enum/ObjectInitType.js";
|
|
4
|
+
import { CONSTRUCTOR_QUALIFIER_META_DATA, ConfigSourceQualifierAttribute, EggQualifierAttribute, InitTypeQualifierAttribute, LoadUnitNameQualifierAttribute, PROPERTY_QUALIFIER_META_DATA, QUALIFIER_META_DATA } from "./enum/Qualifier.js";
|
|
5
|
+
import { InjectType } from "./enum/InjectType.js";
|
|
6
|
+
import { MultiInstanceType } from "./enum/MultiInstanceType.js";
|
|
7
|
+
import { QualifierAttribute, QualifierInfo, QualifierValue } from "./model/QualifierInfo.js";
|
|
8
|
+
import { EggProtoImplClass, EggPrototypeInfo, EggPrototypeName } from "./model/EggPrototypeInfo.js";
|
|
9
|
+
import { EggMultiInstanceCallbackPrototypeInfo, EggMultiInstancePrototypeInfo, MultiInstancePrototypeGetObjectsContext, ObjectInfo } from "./model/EggMultiInstancePrototypeInfo.js";
|
|
10
|
+
import { EggObjectName, InjectObjectInfo } from "./model/InjectObjectInfo.js";
|
|
11
|
+
import { InjectConstructorInfo } from "./model/InjectConstructorInfo.js";
|
|
12
|
+
import { ContextProtoParams } from "./ContextProto.js";
|
|
13
|
+
import { InjectParams } from "./Inject.js";
|
|
14
|
+
import { MetaDataKey } from "./Metadata.js";
|
|
15
|
+
import { BaseMultiInstancePrototypeCallbackParams, MultiInstancePrototypeCallbackParams, MultiInstancePrototypeParams, MultiInstancePrototypeStaticParams } from "./MultiInstanceProto.js";
|
|
16
|
+
import { DEFAULT_PROTO_IMPL_TYPE, PrototypeParams } from "./Prototype.js";
|
|
17
|
+
import { SingletonProtoParams } from "./SingletonProto.js";
|
|
18
|
+
export { AccessLevel, BaseMultiInstancePrototypeCallbackParams, CONSTRUCTOR_QUALIFIER_META_DATA, ConfigSourceQualifierAttribute, ContextProtoParams, DEFAULT_PROTO_IMPL_TYPE, EggMultiInstanceCallbackPrototypeInfo, EggMultiInstancePrototypeInfo, EggObjectName, EggProtoImplClass, EggPrototypeInfo, EggPrototypeName, EggQualifierAttribute, EggType, INIT_TYPE_TRY_ORDER, InitTypeQualifierAttribute, InjectConstructorInfo, InjectObjectInfo, InjectParams, InjectType, LoadUnitNameQualifierAttribute, MetaDataKey, MultiInstancePrototypeCallbackParams, MultiInstancePrototypeGetObjectsContext, MultiInstancePrototypeParams, MultiInstancePrototypeStaticParams, MultiInstanceType, ObjectInfo, ObjectInitType, ObjectInitTypeLike, PROPERTY_QUALIFIER_META_DATA, PrototypeParams, QUALIFIER_META_DATA, QualifierAttribute, QualifierInfo, QualifierValue, SingletonProtoParams };
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { AccessLevel } from "./enum/AccessLevel.js";
|
|
2
|
+
import { EggType } from "./enum/EggType.js";
|
|
3
|
+
import { INIT_TYPE_TRY_ORDER, ObjectInitType } from "./enum/ObjectInitType.js";
|
|
4
|
+
import { CONSTRUCTOR_QUALIFIER_META_DATA, ConfigSourceQualifierAttribute, EggQualifierAttribute, InitTypeQualifierAttribute, LoadUnitNameQualifierAttribute, PROPERTY_QUALIFIER_META_DATA, QUALIFIER_META_DATA } from "./enum/Qualifier.js";
|
|
5
|
+
import { InjectType } from "./enum/InjectType.js";
|
|
6
|
+
import { MultiInstanceType } from "./enum/MultiInstanceType.js";
|
|
7
|
+
import "./enum/index.js";
|
|
8
|
+
import "./model/index.js";
|
|
9
|
+
import "./ContextProto.js";
|
|
10
|
+
import { DEFAULT_PROTO_IMPL_TYPE } from "./Prototype.js";
|
|
11
|
+
|
|
12
|
+
export { AccessLevel, CONSTRUCTOR_QUALIFIER_META_DATA, ConfigSourceQualifierAttribute, DEFAULT_PROTO_IMPL_TYPE, EggQualifierAttribute, EggType, INIT_TYPE_TRY_ORDER, InitTypeQualifierAttribute, InjectType, LoadUnitNameQualifierAttribute, MultiInstanceType, ObjectInitType, PROPERTY_QUALIFIER_META_DATA, QUALIFIER_META_DATA };
|
|
@@ -1,57 +1,62 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { AccessLevel } from "../enum/AccessLevel.js";
|
|
2
|
+
import { ObjectInitTypeLike } from "../enum/ObjectInitType.js";
|
|
3
|
+
import { QualifierInfo } from "./QualifierInfo.js";
|
|
4
|
+
import { EggPrototypeName } from "./EggPrototypeInfo.js";
|
|
5
|
+
|
|
6
|
+
//#region src/core-decorator/model/EggMultiInstancePrototypeInfo.d.ts
|
|
7
|
+
interface ObjectInfo {
|
|
8
|
+
name: EggPrototypeName;
|
|
9
|
+
qualifiers: QualifierInfo[];
|
|
10
|
+
properQualifiers?: Record<PropertyKey, QualifierInfo[]>;
|
|
8
11
|
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
+
interface MultiInstancePrototypeGetObjectsContext {
|
|
13
|
+
moduleName: string;
|
|
14
|
+
unitPath: string;
|
|
12
15
|
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
16
|
+
interface EggMultiInstancePrototypeInfo {
|
|
17
|
+
/**
|
|
18
|
+
* The class name of the object
|
|
19
|
+
*/
|
|
20
|
+
className?: string;
|
|
21
|
+
/**
|
|
22
|
+
* obj init type
|
|
23
|
+
*/
|
|
24
|
+
initType: ObjectInitTypeLike;
|
|
25
|
+
/**
|
|
26
|
+
* access level
|
|
27
|
+
*/
|
|
28
|
+
accessLevel: AccessLevel;
|
|
29
|
+
/**
|
|
30
|
+
* EggPrototype implement type
|
|
31
|
+
*/
|
|
32
|
+
protoImplType: string;
|
|
33
|
+
/**
|
|
34
|
+
* object info list
|
|
35
|
+
*/
|
|
36
|
+
objects: ObjectInfo[];
|
|
34
37
|
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
38
|
+
interface EggMultiInstanceCallbackPrototypeInfo {
|
|
39
|
+
/**
|
|
40
|
+
* The class name of the object
|
|
41
|
+
*/
|
|
42
|
+
className?: string;
|
|
43
|
+
/**
|
|
44
|
+
* obj init type
|
|
45
|
+
*/
|
|
46
|
+
initType: ObjectInitTypeLike;
|
|
47
|
+
/**
|
|
48
|
+
* access level
|
|
49
|
+
*/
|
|
50
|
+
accessLevel: AccessLevel;
|
|
51
|
+
/**
|
|
52
|
+
* EggPrototype implement type
|
|
53
|
+
*/
|
|
54
|
+
protoImplType: string;
|
|
55
|
+
/**
|
|
56
|
+
* get object callback
|
|
57
|
+
* @param ctx
|
|
58
|
+
*/
|
|
59
|
+
getObjects(ctx: MultiInstancePrototypeGetObjectsContext): ObjectInfo[] | Promise<ObjectInfo[]>;
|
|
57
60
|
}
|
|
61
|
+
//#endregion
|
|
62
|
+
export { EggMultiInstanceCallbackPrototypeInfo, EggMultiInstancePrototypeInfo, MultiInstancePrototypeGetObjectsContext, ObjectInfo };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import "../enum/index.js";
|
|
2
|
+
import "./EggPrototypeInfo.js";
|
|
3
|
+
|
|
4
|
+
export { };
|
|
@@ -1,34 +1,39 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
1
|
+
import { AccessLevel } from "../enum/AccessLevel.js";
|
|
2
|
+
import { ObjectInitTypeLike } from "../enum/ObjectInitType.js";
|
|
3
|
+
import { QualifierInfo } from "./QualifierInfo.js";
|
|
4
|
+
|
|
5
|
+
//#region src/core-decorator/model/EggPrototypeInfo.d.ts
|
|
6
|
+
type EggProtoImplClass<T = object> = new (...args: any[]) => T;
|
|
7
|
+
type EggPrototypeName = PropertyKey;
|
|
8
|
+
interface EggPrototypeInfo {
|
|
9
|
+
/**
|
|
10
|
+
* egg object name
|
|
11
|
+
*/
|
|
12
|
+
name: EggPrototypeName;
|
|
13
|
+
/**
|
|
14
|
+
* The class name of the object
|
|
15
|
+
*/
|
|
16
|
+
className?: string;
|
|
17
|
+
/**
|
|
18
|
+
* obj init type
|
|
19
|
+
*/
|
|
20
|
+
initType: ObjectInitTypeLike;
|
|
21
|
+
/**
|
|
22
|
+
* access level
|
|
23
|
+
*/
|
|
24
|
+
accessLevel: AccessLevel;
|
|
25
|
+
/**
|
|
26
|
+
* EggPrototype implement type
|
|
27
|
+
*/
|
|
28
|
+
protoImplType: string;
|
|
29
|
+
/**
|
|
30
|
+
* EggPrototype qualifiers
|
|
31
|
+
*/
|
|
32
|
+
qualifiers?: QualifierInfo[];
|
|
33
|
+
/**
|
|
34
|
+
* EggPrototype properties qualifiers
|
|
35
|
+
*/
|
|
36
|
+
properQualifiers?: Record<string, QualifierInfo[]>;
|
|
34
37
|
}
|
|
38
|
+
//#endregion
|
|
39
|
+
export { EggProtoImplClass, EggPrototypeInfo, EggPrototypeName };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import "../enum/index.js";
|
|
2
|
+
|
|
3
|
+
export { };
|
|
@@ -1,19 +1,23 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
import { EggObjectName } from "./InjectObjectInfo.js";
|
|
2
|
+
|
|
3
|
+
//#region src/core-decorator/model/InjectConstructorInfo.d.ts
|
|
4
|
+
interface InjectConstructorInfo {
|
|
5
|
+
/**
|
|
6
|
+
* inject args index
|
|
7
|
+
*/
|
|
8
|
+
refIndex: number;
|
|
9
|
+
/**
|
|
10
|
+
* inject args name
|
|
11
|
+
*/
|
|
12
|
+
refName: string;
|
|
13
|
+
/**
|
|
14
|
+
* obj's name will be injected
|
|
15
|
+
*/
|
|
16
|
+
objName: EggObjectName;
|
|
17
|
+
/**
|
|
18
|
+
* optional inject
|
|
19
|
+
*/
|
|
20
|
+
optional?: boolean;
|
|
19
21
|
}
|
|
22
|
+
//#endregion
|
|
23
|
+
export { InjectConstructorInfo };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiSW5qZWN0Q29uc3RydWN0b3JJbmZvLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3JjL2NvcmUtZGVjb3JhdG9yL21vZGVsL0luamVjdENvbnN0cnVjdG9ySW5mby50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIn0=
|
|
1
|
+
export { };
|
|
@@ -1,15 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
//#region src/core-decorator/model/InjectObjectInfo.d.ts
|
|
2
|
+
type EggObjectName = PropertyKey;
|
|
3
|
+
interface InjectObjectInfo {
|
|
4
|
+
/**
|
|
5
|
+
* property name obj inject to
|
|
6
|
+
*/
|
|
7
|
+
refName: PropertyKey;
|
|
8
|
+
/**
|
|
9
|
+
* obj's name will be injected
|
|
10
|
+
*/
|
|
11
|
+
objName: EggObjectName;
|
|
12
|
+
/**
|
|
13
|
+
* optional inject
|
|
14
|
+
*/
|
|
15
|
+
optional?: boolean;
|
|
15
16
|
}
|
|
17
|
+
//#endregion
|
|
18
|
+
export { EggObjectName, InjectObjectInfo };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiSW5qZWN0T2JqZWN0SW5mby5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb3JlLWRlY29yYXRvci9tb2RlbC9JbmplY3RPYmplY3RJbmZvLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIifQ==
|
|
1
|
+
export { };
|
|
@@ -1,38 +1,41 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
//#region src/core-decorator/model/QualifierInfo.d.ts
|
|
2
|
+
type QualifierAttribute = symbol | string;
|
|
3
|
+
type QualifierValue = string | number;
|
|
3
4
|
/**
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
5
|
+
* To locate prototype
|
|
6
|
+
*
|
|
7
|
+
* Example:
|
|
8
|
+
* Has a decorator named HelloService
|
|
9
|
+
* value is:
|
|
10
|
+
* - Email
|
|
11
|
+
* - Message
|
|
12
|
+
*
|
|
13
|
+
* interface HelloService {
|
|
14
|
+
* hello(name: string): Promise<void>;
|
|
15
|
+
* }
|
|
16
|
+
*
|
|
17
|
+
* \@ContextProto({ name: 'helloService' })
|
|
18
|
+
* \@HelloService(HelloServiceType.Email)
|
|
19
|
+
* class EmailHelloService implement HelloService {
|
|
20
|
+
* ...
|
|
21
|
+
* }
|
|
22
|
+
*
|
|
23
|
+
* \@ContextProto({ name: 'helloService' })
|
|
24
|
+
* \@HelloService(HelloServiceType.Message)
|
|
25
|
+
* class MessageHelloService implement HelloService {
|
|
26
|
+
* ...
|
|
27
|
+
* }
|
|
28
|
+
*
|
|
29
|
+
* \@ContextProto()
|
|
30
|
+
* class HelloFacade {
|
|
31
|
+
* \@Inject
|
|
32
|
+
* \@HelloService(HelloServiceType.Message)
|
|
33
|
+
* helloService: HelloService;
|
|
34
|
+
* }
|
|
35
|
+
*/
|
|
36
|
+
interface QualifierInfo {
|
|
37
|
+
attribute: QualifierAttribute;
|
|
38
|
+
value: QualifierValue;
|
|
38
39
|
}
|
|
40
|
+
//#endregion
|
|
41
|
+
export { QualifierAttribute, QualifierInfo, QualifierValue };
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUXVhbGlmaWVySW5mby5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9jb3JlLWRlY29yYXRvci9tb2RlbC9RdWFsaWZpZXJJbmZvLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIifQ==
|
|
1
|
+
export { };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { QualifierAttribute, QualifierInfo, QualifierValue } from "./QualifierInfo.js";
|
|
2
|
+
import { EggProtoImplClass, EggPrototypeInfo, EggPrototypeName } from "./EggPrototypeInfo.js";
|
|
3
|
+
import { EggMultiInstanceCallbackPrototypeInfo, EggMultiInstancePrototypeInfo, MultiInstancePrototypeGetObjectsContext, ObjectInfo } from "./EggMultiInstancePrototypeInfo.js";
|
|
4
|
+
import { EggObjectName, InjectObjectInfo } from "./InjectObjectInfo.js";
|
|
5
|
+
import { InjectConstructorInfo } from "./InjectConstructorInfo.js";
|
|
6
|
+
export { EggMultiInstanceCallbackPrototypeInfo, EggMultiInstancePrototypeInfo, EggObjectName, EggProtoImplClass, EggPrototypeInfo, EggPrototypeName, InjectConstructorInfo, InjectObjectInfo, MultiInstancePrototypeGetObjectsContext, ObjectInfo, QualifierAttribute, QualifierInfo, QualifierValue };
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export
|
|
5
|
-
export * from "./QualifierInfo.js";
|
|
6
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvY29yZS1kZWNvcmF0b3IvbW9kZWwvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyxvQ0FBb0MsQ0FBQztBQUNuRCxjQUFjLHVCQUF1QixDQUFDO0FBQ3RDLGNBQWMsNEJBQTRCLENBQUM7QUFDM0MsY0FBYyx1QkFBdUIsQ0FBQztBQUN0QyxjQUFjLG9CQUFvQixDQUFDIn0=
|
|
1
|
+
import "./EggPrototypeInfo.js";
|
|
2
|
+
import "./EggMultiInstancePrototypeInfo.js";
|
|
3
|
+
|
|
4
|
+
export { };
|
package/dist/dal/Qualifier.d.ts
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
//#region src/dal/Qualifier.d.ts
|
|
2
|
+
declare const DAL_COLUMN_INFO_MAP: symbol;
|
|
3
|
+
declare const DAL_COLUMN_TYPE_MAP: symbol;
|
|
4
|
+
declare const DAL_INDEX_LIST: symbol;
|
|
5
|
+
declare const DAL_IS_TABLE: symbol;
|
|
6
|
+
declare const DAL_TABLE_PARAMS: symbol;
|
|
7
|
+
declare const DAL_IS_DAO: symbol;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { DAL_COLUMN_INFO_MAP, DAL_COLUMN_TYPE_MAP, DAL_INDEX_LIST, DAL_IS_DAO, DAL_IS_TABLE, DAL_TABLE_PARAMS };
|
package/dist/dal/Qualifier.js
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
//#region src/dal/Qualifier.ts
|
|
2
|
+
const DAL_COLUMN_INFO_MAP = Symbol.for("EggPrototype#dalColumnInfoMap");
|
|
3
|
+
const DAL_COLUMN_TYPE_MAP = Symbol.for("EggPrototype#dalColumnTypeMap");
|
|
4
|
+
const DAL_INDEX_LIST = Symbol.for("EggPrototype#dalIndexList");
|
|
5
|
+
const DAL_IS_TABLE = Symbol.for("EggPrototype#dalIsTable");
|
|
6
|
+
const DAL_TABLE_PARAMS = Symbol.for("EggPrototype#dalTableParams");
|
|
7
|
+
const DAL_IS_DAO = Symbol.for("EggPrototype#dalIsDao");
|
|
8
|
+
|
|
9
|
+
//#endregion
|
|
10
|
+
export { DAL_COLUMN_INFO_MAP, DAL_COLUMN_TYPE_MAP, DAL_INDEX_LIST, DAL_IS_DAO, DAL_IS_TABLE, DAL_TABLE_PARAMS };
|