@eggjs/tegg-types 4.0.0-beta.4 → 4.0.0-beta.5
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
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { AccessLevel } from "./enum/AccessLevel.js";
|
|
2
|
+
import { ObjectInitTypeLike } from "./enum/ObjectInitType.js";
|
|
3
|
+
|
|
4
|
+
//#region src/core-decorator/Prototype.d.ts
|
|
5
|
+
interface PrototypeParams {
|
|
6
|
+
name?: string;
|
|
7
|
+
initType?: ObjectInitTypeLike;
|
|
8
|
+
accessLevel?: AccessLevel;
|
|
9
|
+
protoImplType?: string;
|
|
10
|
+
}
|
|
11
|
+
declare const DEFAULT_PROTO_IMPL_TYPE = "DEFAULT";
|
|
12
|
+
//#endregion
|
|
13
|
+
export { DEFAULT_PROTO_IMPL_TYPE, PrototypeParams };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AccessLevel } from "./enum/AccessLevel.js";
|
|
2
|
+
|
|
3
|
+
//#region src/core-decorator/SingletonProto.d.ts
|
|
4
|
+
interface SingletonProtoParams {
|
|
5
|
+
name?: string;
|
|
6
|
+
accessLevel?: AccessLevel;
|
|
7
|
+
protoImplType?: string;
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
|
10
|
+
export { SingletonProtoParams };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region src/core-decorator/enum/AccessLevel.ts
|
|
2
|
+
let AccessLevel = /* @__PURE__ */ function(AccessLevel$1) {
|
|
3
|
+
AccessLevel$1["PRIVATE"] = "PRIVATE";
|
|
4
|
+
AccessLevel$1["PUBLIC"] = "PUBLIC";
|
|
5
|
+
return AccessLevel$1;
|
|
6
|
+
}({});
|
|
7
|
+
|
|
8
|
+
//#endregion
|
|
9
|
+
export { AccessLevel };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region src/core-decorator/enum/InjectType.ts
|
|
2
|
+
let InjectType = /* @__PURE__ */ function(InjectType$1) {
|
|
3
|
+
InjectType$1["PROPERTY"] = "PROPERTY";
|
|
4
|
+
InjectType$1["CONSTRUCTOR"] = "CONSTRUCTOR";
|
|
5
|
+
return InjectType$1;
|
|
6
|
+
}({});
|
|
7
|
+
|
|
8
|
+
//#endregion
|
|
9
|
+
export { InjectType };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region src/core-decorator/enum/MultiInstanceType.ts
|
|
2
|
+
let MultiInstanceType = /* @__PURE__ */ function(MultiInstanceType$1) {
|
|
3
|
+
MultiInstanceType$1["STATIC"] = "STATIC";
|
|
4
|
+
MultiInstanceType$1["DYNAMIC"] = "DYNAMIC";
|
|
5
|
+
return MultiInstanceType$1;
|
|
6
|
+
}({});
|
|
7
|
+
|
|
8
|
+
//#endregion
|
|
9
|
+
export { MultiInstanceType };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
//#region src/core-decorator/enum/ObjectInitType.d.ts
|
|
2
|
+
declare enum ObjectInitType {
|
|
3
|
+
ALWAYS_NEW = "ALWAYS_NEW",
|
|
4
|
+
CONTEXT = "CONTEXT",
|
|
5
|
+
SINGLETON = "SINGLETON",
|
|
6
|
+
}
|
|
7
|
+
type ObjectInitTypeLike = ObjectInitType | string;
|
|
8
|
+
declare const INIT_TYPE_TRY_ORDER: ObjectInitType[];
|
|
9
|
+
//#endregion
|
|
10
|
+
export { INIT_TYPE_TRY_ORDER, ObjectInitType, ObjectInitTypeLike };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/core-decorator/enum/ObjectInitType.ts
|
|
2
|
+
let ObjectInitType = /* @__PURE__ */ function(ObjectInitType$1) {
|
|
3
|
+
ObjectInitType$1["ALWAYS_NEW"] = "ALWAYS_NEW";
|
|
4
|
+
ObjectInitType$1["CONTEXT"] = "CONTEXT";
|
|
5
|
+
ObjectInitType$1["SINGLETON"] = "SINGLETON";
|
|
6
|
+
return ObjectInitType$1;
|
|
7
|
+
}({});
|
|
8
|
+
const INIT_TYPE_TRY_ORDER = [
|
|
9
|
+
ObjectInitType.CONTEXT,
|
|
10
|
+
ObjectInitType.SINGLETON,
|
|
11
|
+
ObjectInitType.ALWAYS_NEW
|
|
12
|
+
];
|
|
13
|
+
|
|
14
|
+
//#endregion
|
|
15
|
+
export { INIT_TYPE_TRY_ORDER, ObjectInitType };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
//#region src/core-decorator/enum/Qualifier.d.ts
|
|
2
|
+
declare const ConfigSourceQualifierAttribute: unique symbol;
|
|
3
|
+
declare const EggQualifierAttribute: unique symbol;
|
|
4
|
+
declare const InitTypeQualifierAttribute: unique symbol;
|
|
5
|
+
declare const LoadUnitNameQualifierAttribute: unique symbol;
|
|
6
|
+
declare const QUALIFIER_META_DATA: unique symbol;
|
|
7
|
+
declare const PROPERTY_QUALIFIER_META_DATA: unique symbol;
|
|
8
|
+
declare const CONSTRUCTOR_QUALIFIER_META_DATA: unique symbol;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { CONSTRUCTOR_QUALIFIER_META_DATA, ConfigSourceQualifierAttribute, EggQualifierAttribute, InitTypeQualifierAttribute, LoadUnitNameQualifierAttribute, PROPERTY_QUALIFIER_META_DATA, QUALIFIER_META_DATA };
|
|
@@ -0,0 +1,11 @@
|
|
|
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 };
|
|
@@ -0,0 +1,7 @@
|
|
|
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 };
|
|
@@ -0,0 +1,8 @@
|
|
|
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 };
|
|
@@ -0,0 +1,18 @@
|
|
|
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 };
|
|
@@ -0,0 +1,12 @@
|
|
|
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 };
|
|
@@ -0,0 +1,62 @@
|
|
|
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[]>;
|
|
11
|
+
}
|
|
12
|
+
interface MultiInstancePrototypeGetObjectsContext {
|
|
13
|
+
moduleName: string;
|
|
14
|
+
unitPath: string;
|
|
15
|
+
}
|
|
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[];
|
|
37
|
+
}
|
|
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[]>;
|
|
60
|
+
}
|
|
61
|
+
//#endregion
|
|
62
|
+
export { EggMultiInstanceCallbackPrototypeInfo, EggMultiInstancePrototypeInfo, MultiInstancePrototypeGetObjectsContext, ObjectInfo };
|
|
@@ -0,0 +1,39 @@
|
|
|
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[]>;
|
|
37
|
+
}
|
|
38
|
+
//#endregion
|
|
39
|
+
export { EggProtoImplClass, EggPrototypeInfo, EggPrototypeName };
|
|
@@ -0,0 +1,23 @@
|
|
|
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;
|
|
21
|
+
}
|
|
22
|
+
//#endregion
|
|
23
|
+
export { InjectConstructorInfo };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,18 @@
|
|
|
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;
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
export { EggObjectName, InjectObjectInfo };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -1,5 +1,6 @@
|
|
|
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
|
* To locate prototype
|
|
5
6
|
*
|
|
@@ -32,7 +33,9 @@ export type QualifierValue = string | number;
|
|
|
32
33
|
* helloService: HelloService;
|
|
33
34
|
* }
|
|
34
35
|
*/
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
interface QualifierInfo {
|
|
37
|
+
attribute: QualifierAttribute;
|
|
38
|
+
value: QualifierValue;
|
|
38
39
|
}
|
|
40
|
+
//#endregion
|
|
41
|
+
export { QualifierAttribute, QualifierInfo, QualifierValue };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,6 @@
|
|
|
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 };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
//#region src/dal/Qualifier.d.ts
|
|
2
|
+
declare const DAL_COLUMN_INFO_MAP: unique symbol;
|
|
3
|
+
declare const DAL_COLUMN_TYPE_MAP: unique symbol;
|
|
4
|
+
declare const DAL_INDEX_LIST: unique symbol;
|
|
5
|
+
declare const DAL_IS_TABLE: unique symbol;
|
|
6
|
+
declare const DAL_TABLE_PARAMS: unique symbol;
|
|
7
|
+
declare const DAL_IS_DAO: unique 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 };
|
|
@@ -0,0 +1,10 @@
|
|
|
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 };
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import { ColumnFormat } from "../enum/ColumnFormat.js";
|
|
2
|
+
import { ColumnType } from "../enum/ColumnType.js";
|
|
3
|
+
|
|
4
|
+
//#region src/dal/decorator/Column.d.ts
|
|
5
|
+
interface ColumnParams {
|
|
6
|
+
name?: string;
|
|
7
|
+
default?: string;
|
|
8
|
+
canNull?: boolean;
|
|
9
|
+
comment?: string;
|
|
10
|
+
visible?: boolean;
|
|
11
|
+
autoIncrement?: boolean;
|
|
12
|
+
uniqueKey?: boolean;
|
|
13
|
+
primaryKey?: boolean;
|
|
14
|
+
collate?: string;
|
|
15
|
+
columnFormat?: ColumnFormat;
|
|
16
|
+
engineAttribute?: string;
|
|
17
|
+
secondaryEngineAttribute?: string;
|
|
18
|
+
}
|
|
19
|
+
interface IColumnTypeParams {
|
|
20
|
+
type: ColumnType;
|
|
21
|
+
}
|
|
22
|
+
interface BitParams extends IColumnTypeParams {
|
|
23
|
+
type: ColumnType.BIT;
|
|
24
|
+
length?: number;
|
|
25
|
+
}
|
|
26
|
+
interface BoolParams extends IColumnTypeParams {
|
|
27
|
+
type: ColumnType.BOOL;
|
|
28
|
+
}
|
|
29
|
+
interface BaseNumericParams extends IColumnTypeParams {
|
|
30
|
+
length?: number;
|
|
31
|
+
unsigned?: boolean;
|
|
32
|
+
zeroFill?: boolean;
|
|
33
|
+
}
|
|
34
|
+
interface BaseFloatNumericParams extends IColumnTypeParams {
|
|
35
|
+
length?: number;
|
|
36
|
+
fractionalLength?: number;
|
|
37
|
+
unsigned?: boolean;
|
|
38
|
+
zeroFill?: boolean;
|
|
39
|
+
}
|
|
40
|
+
interface TinyIntParams extends BaseNumericParams {
|
|
41
|
+
type: ColumnType.TINYINT;
|
|
42
|
+
}
|
|
43
|
+
interface SmallIntParams extends BaseNumericParams {
|
|
44
|
+
type: ColumnType.SMALLINT;
|
|
45
|
+
}
|
|
46
|
+
interface MediumIntParams extends BaseNumericParams {
|
|
47
|
+
type: ColumnType.MEDIUMINT;
|
|
48
|
+
}
|
|
49
|
+
interface IntParams extends BaseNumericParams {
|
|
50
|
+
type: ColumnType.INT;
|
|
51
|
+
}
|
|
52
|
+
interface BigIntParams extends BaseNumericParams {
|
|
53
|
+
type: ColumnType.BIGINT;
|
|
54
|
+
}
|
|
55
|
+
interface DecimalParams extends BaseFloatNumericParams {
|
|
56
|
+
type: ColumnType.DECIMAL;
|
|
57
|
+
}
|
|
58
|
+
interface FloatParams extends BaseFloatNumericParams {
|
|
59
|
+
type: ColumnType.FLOAT;
|
|
60
|
+
}
|
|
61
|
+
interface DoubleParams extends BaseFloatNumericParams {
|
|
62
|
+
type: ColumnType.DOUBLE;
|
|
63
|
+
}
|
|
64
|
+
interface DateParams extends IColumnTypeParams {
|
|
65
|
+
type: ColumnType.DATE;
|
|
66
|
+
}
|
|
67
|
+
interface DateTimeParams extends IColumnTypeParams {
|
|
68
|
+
type: ColumnType.DATETIME;
|
|
69
|
+
precision?: number;
|
|
70
|
+
autoUpdate?: boolean;
|
|
71
|
+
}
|
|
72
|
+
interface TimestampParams extends IColumnTypeParams {
|
|
73
|
+
type: ColumnType.TIMESTAMP;
|
|
74
|
+
precision?: number;
|
|
75
|
+
autoUpdate?: boolean;
|
|
76
|
+
}
|
|
77
|
+
interface TimeParams extends IColumnTypeParams {
|
|
78
|
+
type: ColumnType.TIME;
|
|
79
|
+
precision?: number;
|
|
80
|
+
}
|
|
81
|
+
interface YearParams extends IColumnTypeParams {
|
|
82
|
+
type: ColumnType.YEAR;
|
|
83
|
+
}
|
|
84
|
+
interface CharParams extends IColumnTypeParams {
|
|
85
|
+
type: ColumnType.CHAR;
|
|
86
|
+
length?: number;
|
|
87
|
+
characterSet?: string;
|
|
88
|
+
collate?: string;
|
|
89
|
+
}
|
|
90
|
+
interface VarCharParams extends IColumnTypeParams {
|
|
91
|
+
type: ColumnType.VARCHAR;
|
|
92
|
+
length: number;
|
|
93
|
+
characterSet?: string;
|
|
94
|
+
collate?: string;
|
|
95
|
+
}
|
|
96
|
+
interface BinaryParams extends IColumnTypeParams {
|
|
97
|
+
type: ColumnType.BINARY;
|
|
98
|
+
length?: number;
|
|
99
|
+
}
|
|
100
|
+
interface VarBinaryParams extends IColumnTypeParams {
|
|
101
|
+
type: ColumnType.VARBINARY;
|
|
102
|
+
length: number;
|
|
103
|
+
}
|
|
104
|
+
interface TinyBlobParams extends IColumnTypeParams {
|
|
105
|
+
type: ColumnType.TINYBLOB;
|
|
106
|
+
}
|
|
107
|
+
interface TinyTextParams extends IColumnTypeParams {
|
|
108
|
+
type: ColumnType.TINYTEXT;
|
|
109
|
+
characterSet?: string;
|
|
110
|
+
collate?: string;
|
|
111
|
+
}
|
|
112
|
+
interface BlobParams extends IColumnTypeParams {
|
|
113
|
+
type: ColumnType.BLOB;
|
|
114
|
+
length?: number;
|
|
115
|
+
}
|
|
116
|
+
interface TextParams extends IColumnTypeParams {
|
|
117
|
+
type: ColumnType.TEXT;
|
|
118
|
+
length?: number;
|
|
119
|
+
characterSet?: string;
|
|
120
|
+
collate?: string;
|
|
121
|
+
}
|
|
122
|
+
interface MediumBlobParams extends IColumnTypeParams {
|
|
123
|
+
type: ColumnType.MEDIUMBLOB;
|
|
124
|
+
}
|
|
125
|
+
interface LongBlobParams extends IColumnTypeParams {
|
|
126
|
+
type: ColumnType.LONGBLOB;
|
|
127
|
+
}
|
|
128
|
+
interface MediumTextParams extends IColumnTypeParams {
|
|
129
|
+
type: ColumnType.MEDIUMTEXT;
|
|
130
|
+
characterSet?: string;
|
|
131
|
+
collate?: string;
|
|
132
|
+
}
|
|
133
|
+
interface LongTextParams extends IColumnTypeParams {
|
|
134
|
+
type: ColumnType.LONGTEXT;
|
|
135
|
+
characterSet?: string;
|
|
136
|
+
collate?: string;
|
|
137
|
+
}
|
|
138
|
+
interface EnumParams extends IColumnTypeParams {
|
|
139
|
+
type: ColumnType.ENUM;
|
|
140
|
+
enums: string[];
|
|
141
|
+
characterSet?: string;
|
|
142
|
+
collate?: string;
|
|
143
|
+
}
|
|
144
|
+
interface SetParams extends IColumnTypeParams {
|
|
145
|
+
type: ColumnType.SET;
|
|
146
|
+
enums: string[];
|
|
147
|
+
characterSet?: string;
|
|
148
|
+
collate?: string;
|
|
149
|
+
}
|
|
150
|
+
interface JsonParams extends IColumnTypeParams {
|
|
151
|
+
type: ColumnType.JSON;
|
|
152
|
+
}
|
|
153
|
+
interface BaseSpatialParams extends IColumnTypeParams {
|
|
154
|
+
SRID?: number;
|
|
155
|
+
}
|
|
156
|
+
interface GeometryParams extends BaseSpatialParams {
|
|
157
|
+
type: ColumnType.GEOMETRY;
|
|
158
|
+
}
|
|
159
|
+
interface PointParams extends BaseSpatialParams {
|
|
160
|
+
type: ColumnType.POINT;
|
|
161
|
+
}
|
|
162
|
+
interface LinestringParams extends BaseSpatialParams {
|
|
163
|
+
type: ColumnType.LINESTRING;
|
|
164
|
+
}
|
|
165
|
+
interface PolygonParams extends BaseSpatialParams {
|
|
166
|
+
type: ColumnType.POLYGON;
|
|
167
|
+
}
|
|
168
|
+
interface MultiPointParams extends BaseSpatialParams {
|
|
169
|
+
type: ColumnType.MULTIPOINT;
|
|
170
|
+
}
|
|
171
|
+
interface MultiLinestringParams extends BaseSpatialParams {
|
|
172
|
+
type: ColumnType.MULTILINESTRING;
|
|
173
|
+
}
|
|
174
|
+
interface MultiPolygonParams extends BaseSpatialParams {
|
|
175
|
+
type: ColumnType.MULTIPOLYGON;
|
|
176
|
+
}
|
|
177
|
+
interface GeometryCollectionParams extends BaseSpatialParams {
|
|
178
|
+
type: ColumnType.GEOMETRYCOLLECTION;
|
|
179
|
+
}
|
|
180
|
+
type ColumnTypeParams = BitParams | BoolParams | TinyIntParams | SmallIntParams | MediumIntParams | IntParams | BigIntParams | DecimalParams | FloatParams | DoubleParams | DateParams | DateTimeParams | TimestampParams | TimeParams | YearParams | CharParams | VarCharParams | BinaryParams | VarBinaryParams | TinyBlobParams | TinyTextParams | BlobParams | TextParams | MediumBlobParams | MediumTextParams | LongBlobParams | LongTextParams | EnumParams | SetParams | JsonParams | GeometryParams | PointParams | LinestringParams | PolygonParams | MultiPointParams | MultiLinestringParams | MultiPolygonParams | GeometryCollectionParams;
|
|
181
|
+
//#endregion
|
|
182
|
+
export { 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 };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|