@eggjs/tegg-types 4.0.0-beta.7 → 4.0.0-beta.8
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/AccessLevel-BmHWkz-U.js +9 -0
- package/dist/AccessLevel-CCiGTqJJ.d.ts +7 -0
- package/dist/Advice-B4Ts38yJ.d.ts +42 -0
- package/dist/Advice-BwhUgRjK.js +1 -0
- package/dist/Aspect-CTW_0pmy.d.ts +17 -0
- package/dist/Aspect-DXu-kwdZ.js +5 -0
- package/dist/BaseDao-TBMMfekC.d.ts +13 -0
- package/dist/BaseDao-kXru0LGa.js +1 -0
- package/dist/CodeGenerator-BXae3hkj.d.ts +9 -0
- package/dist/CodeGenerator-CC1LH3Nd.js +1 -0
- package/dist/Column-BLmjqPaT.js +1 -0
- package/dist/Column-JNyjCJMp.d.ts +182 -0
- package/dist/ColumnFormat-NfbFD-Qq.js +10 -0
- package/dist/ColumnFormat-YNjWfTAq.d.ts +8 -0
- package/dist/ColumnTsType-Bn82JG3Z.js +1 -0
- package/dist/ColumnTsType-C-tU6Fl2.d.ts +45 -0
- package/dist/ColumnType-Baa2fUne.js +45 -0
- package/dist/ColumnType-oCNvXvt4.d.ts +43 -0
- package/dist/CompressionType-BSzjn3NF.d.ts +8 -0
- package/dist/CompressionType-rjfbKy8y.js +10 -0
- package/dist/ContextProto-B9GGOED5.js +1 -0
- package/dist/ContextProto-DNcKWLwE.d.ts +10 -0
- package/dist/ControllerMetadata-_P0ZOday.d.ts +15 -0
- package/dist/ControllerMetadata-uOWyAhxg.js +1 -0
- package/dist/Crosscut-CFVGqlTe.d.ts +32 -0
- package/dist/Crosscut-RtDGP_jE.js +6 -0
- package/dist/DataSourceQualifier-BYTDOFX_.js +6 -0
- package/dist/DataSourceQualifier-tL1buEEH.d.ts +5 -0
- package/dist/DateSource-D9CDT4dT.d.ts +16 -0
- package/dist/DateSource-DZkuQC77.js +1 -0
- package/dist/EggContainer-SVX9XNK2.js +1 -0
- package/dist/EggContext-GNBG4Rj7.js +1 -0
- package/dist/EggMultiInstancePrototypeInfo-BqfEf8bP.d.ts +62 -0
- package/dist/EggMultiInstancePrototypeInfo-KJT1L6LW.js +1 -0
- package/dist/EggObject-BmvZuwV_.js +12 -0
- package/dist/EggObjectLifecycle-D3YqlfEg.js +1 -0
- package/dist/EggPrototype-DT7xhNEp.js +1 -0
- package/dist/EggPrototypeInfo-DB-Ka_mi.js +1 -0
- package/dist/EggPrototypeInfo-DtKJNqMh.d.ts +39 -0
- package/dist/EggType-CWiNumD0.d.ts +7 -0
- package/dist/EggType-Gbn2fclg.js +9 -0
- package/dist/Factory-NttwzKhi.js +1 -0
- package/dist/Graph-BoS2dLfr.js +1 -0
- package/dist/Graph-DV_lJFde.d.ts +6 -0
- package/dist/HTTPController-DUeli07o.js +1 -0
- package/dist/HTTPController-DWaTpXho.d.ts +8 -0
- package/dist/HTTPMethod-BXEIRfwp.d.ts +10 -0
- package/dist/HTTPMethod-hvD7QIK7.js +1 -0
- package/dist/HTTPParam-BSihwHRr.d.ts +12 -0
- package/dist/HTTPParam-Le3ct7ye.js +1 -0
- package/dist/IdenticalObject-CgLvCa4Z.js +1 -0
- package/dist/IdenticalObject-DWtk6w0C.d.ts +7 -0
- package/dist/IndexStoreType-BoZ6JVlo.js +9 -0
- package/dist/IndexStoreType-CyG2LFa7.d.ts +7 -0
- package/dist/IndexType-C2UAjKxX.js +12 -0
- package/dist/IndexType-Df7nUq-E.d.ts +10 -0
- package/dist/Inject-CJoudlde.d.ts +7 -0
- package/dist/Inject-DuZBYpk5.js +1 -0
- package/dist/InjectConstructorInfo-C2StiUhG.d.ts +23 -0
- package/dist/InjectConstructorInfo-Hnid0JYk.js +1 -0
- package/dist/InjectObjectInfo-1V6YBUpK.d.ts +18 -0
- package/dist/InjectObjectInfo-DEoSk7Pn.js +1 -0
- package/dist/InjectType-CFz0_dok.js +9 -0
- package/dist/InjectType-s8nLOlv2.d.ts +7 -0
- package/dist/InsertMethod-CK5Y5i-0.d.ts +8 -0
- package/dist/InsertMethod-CndhCMXe.js +10 -0
- package/dist/LifecycleHook-Bo14zgud.d.ts +16 -0
- package/dist/LifecycleHook-Cz0mYIGG.js +1 -0
- package/dist/LoadUnit-DHzr1WxT.js +10 -0
- package/dist/LoadUnitInstance-CU2hw0zx.js +1 -0
- package/dist/Loader-CeoaOmMk.d.ts +12 -0
- package/dist/Loader-tg663nX2.js +1 -0
- package/dist/Logger-B4gKN85p.d.ts +10 -0
- package/dist/Logger-DWAU5XJy.js +1 -0
- package/dist/Metadata-2R5ZbPIh.js +1 -0
- package/dist/Metadata-BCDj-rjy.d.ts +4 -0
- package/dist/MetadataKey-DHtJYAMe.js +24 -0
- package/dist/MetadataKey-DtGflg7d.d.ts +23 -0
- package/dist/MethodMeta-CRxnzXjS.js +1 -0
- package/dist/MethodMeta-DhgwCoNi.d.ts +10 -0
- package/dist/ModuleConfig-BAMzgp3C.d.ts +29 -0
- package/dist/ModuleConfig-cL7yqQ_U.js +1 -0
- package/dist/MultiInstanceProto-7QFGZfAk.d.ts +31 -0
- package/dist/MultiInstanceProto-FQ3UjFp4.js +1 -0
- package/dist/MultiInstanceType-BGZS96By.d.ts +7 -0
- package/dist/MultiInstanceType-ClAOva8a.js +9 -0
- package/dist/ObjectInitType-B1ZmILoP.js +15 -0
- package/dist/ObjectInitType-Bup9dZmi.d.ts +10 -0
- package/dist/Pointcut-CU11keh_.js +20 -0
- package/dist/Pointcut-Cjch6vux.d.ts +29 -0
- package/dist/ProtoDescriptor-C46l15Hq.d.ts +29 -0
- package/dist/ProtoDescriptor-C7lYBF_c.js +1 -0
- package/dist/ProtoDescriptorType-4nWZH9VX.js +8 -0
- package/dist/ProtoDescriptorType-Ccx3k2nQ.d.ts +6 -0
- package/dist/Prototype-DVMZnlzR.d.ts +13 -0
- package/dist/Prototype-DkOAbbWd.js +5 -0
- package/dist/Qualifier-BdK6CR6I.js +11 -0
- package/dist/Qualifier-DHoHs6N1.d.ts +9 -0
- package/dist/Qualifier-Do-37C7R.d.ts +10 -0
- package/dist/Qualifier-DqQ1SHGp.js +10 -0
- package/dist/QualifierInfo-BAKTckQb.d.ts +41 -0
- package/dist/QualifierInfo-BPycgg_P.js +1 -0
- package/dist/RowFormat-D9-zkd7Y.d.ts +11 -0
- package/dist/RowFormat-j0MO7-Ti.js +13 -0
- package/dist/RuntimeConfig-B8mz1XU4.js +1 -0
- package/dist/RuntimeConfig-D3ZIrFDE.d.ts +18 -0
- package/dist/SingletonProto-4_tj18YD.js +1 -0
- package/dist/SingletonProto-CwutNiFl.d.ts +10 -0
- package/dist/Spatial-Bobfh4hS.js +1 -0
- package/dist/Spatial-DR_aZctq.d.ts +14 -0
- package/dist/SqlMap-C4zS_FfM.js +1 -0
- package/dist/SqlMap-CElpXNYO.d.ts +22 -0
- package/dist/SqlType-3poChZq3.js +12 -0
- package/dist/SqlType-CTfZJaDy.d.ts +10 -0
- package/dist/Table-C7PwEyW3.js +1 -0
- package/dist/Table-y7qTEg4Y.d.ts +27 -0
- package/dist/Templates-CzZva9K4.d.ts +8 -0
- package/dist/Templates-RNDj6Xzm.js +10 -0
- package/dist/aop/Advice.d.ts +1 -41
- package/dist/aop/Advice.js +2 -0
- package/dist/aop/Aspect.d.ts +22 -16
- package/dist/aop/Aspect.js +1 -3
- package/dist/aop/Crosscut.d.ts +24 -31
- package/dist/aop/Crosscut.js +1 -4
- package/dist/aop/Pointcut.d.ts +21 -28
- package/dist/aop/Pointcut.js +1 -18
- package/dist/aop/index.d.ts +25 -4
- package/dist/aop/index.js +5 -3
- package/dist/aop-DsxLLCBn.js +1 -0
- package/dist/builder-Cc8YzNyP.js +1 -0
- package/dist/builder-D5y-duIA.d.ts +10 -0
- package/dist/common/Graph.d.ts +1 -5
- package/dist/common/Graph.js +2 -0
- package/dist/common/Logger.d.ts +1 -9
- package/dist/common/Logger.js +2 -0
- package/dist/common/ModuleConfig.d.ts +1 -28
- package/dist/common/ModuleConfig.js +2 -0
- package/dist/common/RuntimeConfig.d.ts +1 -17
- package/dist/common/RuntimeConfig.js +2 -0
- package/dist/common/index.d.ts +5 -4
- package/dist/common/index.js +6 -0
- package/dist/common-CKFqCHwu.js +1 -0
- package/dist/controller-decorator/HTTPController.d.ts +1 -7
- package/dist/controller-decorator/HTTPController.js +2 -0
- package/dist/controller-decorator/HTTPMethod.d.ts +25 -9
- package/dist/controller-decorator/HTTPMethod.js +6 -0
- package/dist/controller-decorator/HTTPParam.d.ts +1 -11
- package/dist/controller-decorator/HTTPParam.js +2 -0
- package/dist/controller-decorator/MetadataKey.d.ts +1 -22
- package/dist/controller-decorator/MetadataKey.js +1 -22
- package/dist/controller-decorator/builder.d.ts +25 -9
- package/dist/controller-decorator/builder.js +2 -0
- package/dist/controller-decorator/index.d.ts +30 -8
- package/dist/controller-decorator/index.js +10 -2
- package/dist/controller-decorator/model/ControllerMetadata.d.ts +23 -14
- package/dist/controller-decorator/model/ControllerMetadata.js +2 -0
- package/dist/controller-decorator/model/MethodMeta.d.ts +2 -9
- package/dist/controller-decorator/model/MethodMeta.js +2 -0
- package/dist/controller-decorator/model/index.d.ts +24 -3
- package/dist/controller-decorator/model/index.js +4 -1
- package/dist/controller-decorator/model/types.d.ts +2 -49
- package/dist/controller-decorator/model/types.js +1 -43
- package/dist/controller-decorator-LXQBm3FM.js +1 -0
- package/dist/core-decorator/ContextProto.d.ts +8 -9
- package/dist/core-decorator/ContextProto.js +8 -1
- package/dist/core-decorator/Inject.d.ts +1 -6
- package/dist/core-decorator/Inject.js +2 -0
- package/dist/core-decorator/Metadata.d.ts +1 -3
- package/dist/core-decorator/Metadata.js +2 -0
- package/dist/core-decorator/MultiInstanceProto.d.ts +14 -30
- package/dist/core-decorator/MultiInstanceProto.js +2 -0
- package/dist/core-decorator/Prototype.d.ts +8 -12
- package/dist/core-decorator/Prototype.js +1 -3
- package/dist/core-decorator/SingletonProto.d.ts +8 -9
- package/dist/core-decorator/SingletonProto.js +2 -0
- package/dist/core-decorator/enum/AccessLevel.d.ts +1 -6
- package/dist/core-decorator/enum/AccessLevel.js +1 -7
- package/dist/core-decorator/enum/EggType.d.ts +1 -6
- package/dist/core-decorator/enum/EggType.js +1 -7
- package/dist/core-decorator/enum/InjectType.d.ts +1 -6
- package/dist/core-decorator/enum/InjectType.js +1 -7
- package/dist/core-decorator/enum/MultiInstanceType.d.ts +1 -6
- package/dist/core-decorator/enum/MultiInstanceType.js +1 -7
- package/dist/core-decorator/enum/ObjectInitType.d.ts +1 -9
- package/dist/core-decorator/enum/ObjectInitType.js +1 -13
- package/dist/core-decorator/enum/Qualifier.d.ts +1 -9
- package/dist/core-decorator/enum/Qualifier.js +1 -9
- package/dist/core-decorator/enum/index.d.ts +7 -6
- package/dist/core-decorator/enum/index.js +7 -6
- package/dist/core-decorator/index.d.ts +20 -17
- package/dist/core-decorator/index.js +20 -10
- package/dist/core-decorator/model/EggMultiInstancePrototypeInfo.d.ts +10 -61
- package/dist/core-decorator/model/EggMultiInstancePrototypeInfo.js +10 -2
- package/dist/core-decorator/model/EggPrototypeInfo.d.ts +9 -38
- package/dist/core-decorator/model/EggPrototypeInfo.js +9 -1
- package/dist/core-decorator/model/InjectConstructorInfo.d.ts +2 -22
- package/dist/core-decorator/model/InjectConstructorInfo.js +2 -0
- package/dist/core-decorator/model/InjectObjectInfo.d.ts +1 -17
- package/dist/core-decorator/model/InjectObjectInfo.js +2 -0
- package/dist/core-decorator/model/QualifierInfo.d.ts +1 -40
- package/dist/core-decorator/model/QualifierInfo.js +2 -0
- package/dist/core-decorator/model/index.d.ts +13 -5
- package/dist/core-decorator/model/index.js +13 -2
- package/dist/core-decorator-D7IpfnBM.js +1 -0
- package/dist/dal/Qualifier.d.ts +1 -8
- package/dist/dal/Qualifier.js +1 -8
- package/dist/dal/decorator/Column.d.ts +11 -181
- package/dist/dal/decorator/Column.js +2 -0
- package/dist/dal/decorator/DataSourceQualifier.d.ts +1 -4
- package/dist/dal/decorator/DataSourceQualifier.js +1 -4
- package/dist/dal/decorator/Table.d.ts +11 -26
- package/dist/dal/decorator/Table.js +2 -0
- package/dist/dal/decorator/index.d.ts +14 -18
- package/dist/dal/decorator/index.js +4 -1
- package/dist/dal/enum/ColumnFormat.d.ts +1 -7
- package/dist/dal/enum/ColumnFormat.js +1 -8
- package/dist/dal/enum/ColumnType.d.ts +1 -42
- package/dist/dal/enum/ColumnType.js +1 -43
- package/dist/dal/enum/CompressionType.d.ts +1 -7
- package/dist/dal/enum/CompressionType.js +1 -8
- package/dist/dal/enum/IndexStoreType.d.ts +1 -6
- package/dist/dal/enum/IndexStoreType.js +1 -7
- package/dist/dal/enum/IndexType.d.ts +1 -9
- package/dist/dal/enum/IndexType.js +1 -10
- package/dist/dal/enum/InsertMethod.d.ts +1 -7
- package/dist/dal/enum/InsertMethod.js +1 -8
- package/dist/dal/enum/RowFormat.d.ts +1 -10
- package/dist/dal/enum/RowFormat.js +1 -11
- package/dist/dal/enum/SqlType.d.ts +1 -9
- package/dist/dal/enum/SqlType.js +1 -10
- package/dist/dal/enum/Templates.d.ts +1 -7
- package/dist/dal/enum/Templates.js +1 -8
- package/dist/dal/enum/index.d.ts +10 -9
- package/dist/dal/enum/index.js +10 -9
- package/dist/dal/index.d.ts +43 -20
- package/dist/dal/index.js +23 -12
- package/dist/dal/type/BaseDao.d.ts +32 -12
- package/dist/dal/type/BaseDao.js +2 -0
- package/dist/dal/type/CodeGenerator.d.ts +1 -8
- package/dist/dal/type/CodeGenerator.js +2 -0
- package/dist/dal/type/ColumnTsType.d.ts +2 -44
- package/dist/dal/type/ColumnTsType.js +2 -0
- package/dist/dal/type/DateSource.d.ts +1 -15
- package/dist/dal/type/DateSource.js +2 -0
- package/dist/dal/type/Spatial.d.ts +1 -13
- package/dist/dal/type/Spatial.js +2 -0
- package/dist/dal/type/SqlMap.d.ts +11 -21
- package/dist/dal/type/SqlMap.js +2 -0
- package/dist/dal/type/index.d.ts +37 -6
- package/dist/dal/type/index.js +8 -0
- package/dist/dal-CxBKEWLS.js +1 -0
- package/dist/decorator-siRZOEcm.js +1 -0
- package/dist/dynamic-inject-DAPxfjab.js +5 -0
- package/dist/dynamic-inject-s2d6E4bg.d.ts +18 -0
- package/dist/dynamic-inject.d.ts +21 -17
- package/dist/dynamic-inject.js +1 -3
- package/dist/enum-BLhDoXEr.js +1 -0
- package/dist/enum-DPmNBh9B.js +1 -0
- package/dist/enum-Dq4iL6Z6.js +1 -0
- package/dist/errors-D0-3zz_0.d.ts +8 -0
- package/dist/errors-f8c86iks.js +10 -0
- package/dist/index-2Mg7qf3C.d.ts +1 -0
- package/dist/index-2g6qjnfC.d.ts +1 -0
- package/dist/index-B49vchMV.d.ts +1 -0
- package/dist/index-BdAuF5sH.d.ts +16 -0
- package/dist/index-CAfgpWI7.d.ts +1 -0
- package/dist/index-CQhjd39A.d.ts +1 -0
- package/dist/index-ChT-j2Wd.d.ts +1 -0
- package/dist/index-CxtfLU1L.d.ts +259 -0
- package/dist/index-D32kgK7U.d.ts +1 -0
- package/dist/index-DAzj8jAF.d.ts +1 -0
- package/dist/index-DIk3-d3u.d.ts +1 -0
- package/dist/index-DKjTz6WE.d.ts +1 -0
- package/dist/index-LUGmBzeE.d.ts +1 -0
- package/dist/index.d.ts +75 -71
- package/dist/index.js +87 -36
- package/dist/lifecycle/EggObjectLifecycle.d.ts +28 -39
- package/dist/lifecycle/EggObjectLifecycle.js +2 -0
- package/dist/lifecycle/IdenticalObject.d.ts +1 -6
- package/dist/lifecycle/IdenticalObject.js +2 -0
- package/dist/lifecycle/LifecycleHook.d.ts +2 -15
- package/dist/lifecycle/LifecycleHook.js +2 -0
- package/dist/lifecycle/index.d.ts +28 -3
- package/dist/lifecycle/index.js +5 -0
- package/dist/lifecycle-De43j7QN.js +1 -0
- package/dist/metadata/enum/ProtoDescriptorType.d.ts +1 -5
- package/dist/metadata/enum/ProtoDescriptorType.js +1 -6
- package/dist/metadata/enum/index.d.ts +2 -1
- package/dist/metadata/enum/index.js +2 -1
- package/dist/metadata/errors.d.ts +1 -7
- package/dist/metadata/errors.js +1 -8
- package/dist/metadata/index.d.ts +28 -6
- package/dist/metadata/index.js +33 -4
- package/dist/metadata/model/EggPrototype.d.ts +28 -144
- package/dist/metadata/model/EggPrototype.js +26 -1
- package/dist/metadata/model/LoadUnit.d.ts +28 -33
- package/dist/metadata/model/LoadUnit.js +1 -8
- package/dist/metadata/model/Loader.d.ts +21 -11
- package/dist/metadata/model/Loader.js +2 -0
- package/dist/metadata/model/ProtoDescriptor.d.ts +23 -28
- package/dist/metadata/model/ProtoDescriptor.js +23 -1
- package/dist/metadata/model/index.d.ts +28 -4
- package/dist/metadata/model/index.js +31 -3
- package/dist/metadata-4rC6zz4u.js +1 -0
- package/dist/model-B2jQYVY_.js +1 -0
- package/dist/model-BGXnWY4v.js +1 -0
- package/dist/model-Cgjw7oIu.js +1 -0
- package/dist/model-CrxScfQ9.js +1 -0
- package/dist/orm-C3AVUU9c.js +10 -0
- package/dist/orm-C5YAuOG4.d.ts +33 -0
- package/dist/orm.d.ts +1 -32
- package/dist/orm.js +1 -8
- package/dist/runtime/Factory.d.ts +28 -10
- package/dist/runtime/Factory.js +2 -0
- package/dist/runtime/index.d.ts +28 -5
- package/dist/runtime/index.js +7 -1
- package/dist/runtime/model/EggContainer.d.ts +28 -15
- package/dist/runtime/model/EggContainer.js +2 -0
- package/dist/runtime/model/EggContext.d.ts +28 -9
- package/dist/runtime/model/EggContext.js +2 -0
- package/dist/runtime/model/EggObject.d.ts +28 -28
- package/dist/runtime/model/EggObject.js +1 -10
- package/dist/runtime/model/LoadUnitInstance.d.ts +28 -12
- package/dist/runtime/model/LoadUnitInstance.js +2 -0
- package/dist/runtime/model/index.d.ts +28 -4
- package/dist/runtime/model/index.js +5 -1
- package/dist/runtime-7iHvU3SV.js +1 -0
- package/dist/schedule-C1BbX-U_.d.ts +33 -0
- package/dist/schedule-DpXiSIJj.js +13 -0
- package/dist/schedule.d.ts +1 -32
- package/dist/schedule.js +1 -11
- package/dist/transaction-BS1Kmzb9.d.ts +26 -0
- package/dist/transaction-C_PbpkW9.js +13 -0
- package/dist/transaction.d.ts +1 -25
- package/dist/transaction.js +1 -11
- package/dist/type-DIfgT8T2.js +1 -0
- package/dist/types-C0VFNhau.js +45 -0
- package/dist/types-DuksKbpi.d.ts +49 -0
- package/package.json +1 -1
|
@@ -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,42 @@
|
|
|
1
|
+
//#region src/aop/Advice.d.ts
|
|
2
|
+
interface AdviceContext<T = object, K = any> {
|
|
3
|
+
that: T;
|
|
4
|
+
method: PropertyKey;
|
|
5
|
+
args: any[];
|
|
6
|
+
adviceParams?: K;
|
|
7
|
+
get(key: PropertyKey): any | undefined;
|
|
8
|
+
set(set: PropertyKey, value: any): this;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* execute order:
|
|
12
|
+
* 1. beforeCall
|
|
13
|
+
* 1. around
|
|
14
|
+
* 1. afterReturn/afterThrow
|
|
15
|
+
* 1. afterFinally
|
|
16
|
+
*/
|
|
17
|
+
interface IAdvice<T = object, K = any> {
|
|
18
|
+
/**
|
|
19
|
+
* call before function
|
|
20
|
+
* @param ctx
|
|
21
|
+
*/
|
|
22
|
+
beforeCall?(ctx: AdviceContext<T, K>): Promise<void>;
|
|
23
|
+
/**
|
|
24
|
+
* call after function succeed
|
|
25
|
+
*/
|
|
26
|
+
afterReturn?(ctx: AdviceContext<T, K>, result: any): Promise<void>;
|
|
27
|
+
/**
|
|
28
|
+
* call after function throw error
|
|
29
|
+
*/
|
|
30
|
+
afterThrow?(ctx: AdviceContext<T, K>, error: Error): Promise<void>;
|
|
31
|
+
/**
|
|
32
|
+
* always call after function done
|
|
33
|
+
*/
|
|
34
|
+
afterFinally?(ctx: AdviceContext<T, K>): Promise<void>;
|
|
35
|
+
/**
|
|
36
|
+
* execute the function
|
|
37
|
+
* the only one can modify the function return value
|
|
38
|
+
*/
|
|
39
|
+
around?(ctx: AdviceContext<T, K>, next: () => Promise<any>): Promise<any>;
|
|
40
|
+
}
|
|
41
|
+
//#endregion
|
|
42
|
+
export { AdviceContext, IAdvice };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IAdvice } from "./Advice-B4Ts38yJ.js";
|
|
2
|
+
import { EggProtoImplClass } from "./EggPrototypeInfo-DtKJNqMh.js";
|
|
3
|
+
|
|
4
|
+
//#region src/aop/Aspect.d.ts
|
|
5
|
+
interface AdviceInfo {
|
|
6
|
+
clazz: EggProtoImplClass<IAdvice>;
|
|
7
|
+
order: number;
|
|
8
|
+
adviceParams: any;
|
|
9
|
+
}
|
|
10
|
+
interface AspectAdvice {
|
|
11
|
+
name: string;
|
|
12
|
+
clazz: EggProtoImplClass<IAdvice>;
|
|
13
|
+
adviceParams: any;
|
|
14
|
+
}
|
|
15
|
+
declare const ASPECT_LIST: unique symbol;
|
|
16
|
+
//#endregion
|
|
17
|
+
export { ASPECT_LIST, AdviceInfo, AspectAdvice };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { EggProtoImplClass } from "./EggPrototypeInfo-DtKJNqMh.js";
|
|
2
|
+
import { SqlMap } from "./SqlMap-CElpXNYO.js";
|
|
3
|
+
|
|
4
|
+
//#region src/dal/type/BaseDao.d.ts
|
|
5
|
+
interface BaseDaoType {
|
|
6
|
+
new (...args: any[]): object;
|
|
7
|
+
clazzModel: EggProtoImplClass<object>;
|
|
8
|
+
clazzExtension: Record<string, SqlMap>;
|
|
9
|
+
tableStature: object;
|
|
10
|
+
tableSql: string;
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
13
|
+
export { BaseDaoType };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
import { ColumnFormat } from "./ColumnFormat-YNjWfTAq.js";
|
|
2
|
+
import { ColumnType } from "./ColumnType-oCNvXvt4.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,10 @@
|
|
|
1
|
+
//#region src/dal/enum/ColumnFormat.ts
|
|
2
|
+
let ColumnFormat = /* @__PURE__ */ function(ColumnFormat$1) {
|
|
3
|
+
ColumnFormat$1["FIXED"] = "FIXED";
|
|
4
|
+
ColumnFormat$1["DYNAMIC"] = "DYNAMIC";
|
|
5
|
+
ColumnFormat$1["DEFAULT"] = "DEFAULT";
|
|
6
|
+
return ColumnFormat$1;
|
|
7
|
+
}({});
|
|
8
|
+
|
|
9
|
+
//#endregion
|
|
10
|
+
export { ColumnFormat };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Geometry, GeometryCollection, Line, MultiLine, MultiPoint, MultiPolygon, Point, Polygon } from "./Spatial-DR_aZctq.js";
|
|
2
|
+
|
|
3
|
+
//#region src/dal/type/ColumnTsType.d.ts
|
|
4
|
+
interface ColumnTsType {
|
|
5
|
+
BIT: Buffer;
|
|
6
|
+
TINYINT: number;
|
|
7
|
+
BOOL: 0 | 1;
|
|
8
|
+
SMALLINT: number;
|
|
9
|
+
MEDIUMINT: number;
|
|
10
|
+
INT: number;
|
|
11
|
+
BIGINT: string;
|
|
12
|
+
DECIMAL: string;
|
|
13
|
+
FLOAT: number;
|
|
14
|
+
DOUBLE: number;
|
|
15
|
+
DATE: Date;
|
|
16
|
+
DATETIME: Date;
|
|
17
|
+
TIMESTAMP: Date;
|
|
18
|
+
TIME: string;
|
|
19
|
+
YEAR: number;
|
|
20
|
+
CHAR: string;
|
|
21
|
+
VARCHAR: string;
|
|
22
|
+
BINARY: Buffer;
|
|
23
|
+
VARBINARY: Buffer;
|
|
24
|
+
TINYBLOB: Buffer;
|
|
25
|
+
TINYTEXT: string;
|
|
26
|
+
BLOB: Buffer;
|
|
27
|
+
TEXT: string;
|
|
28
|
+
MEDIUMBLOB: Buffer;
|
|
29
|
+
MEDIUMTEXT: string;
|
|
30
|
+
LONGBLOB: Buffer;
|
|
31
|
+
LONGTEXT: string;
|
|
32
|
+
ENUM: string;
|
|
33
|
+
SET: string;
|
|
34
|
+
JSON: object;
|
|
35
|
+
GEOMETRY: Geometry;
|
|
36
|
+
POINT: Point;
|
|
37
|
+
LINESTRING: Line;
|
|
38
|
+
POLYGON: Polygon;
|
|
39
|
+
MULTIPOINT: MultiPoint;
|
|
40
|
+
MULTILINESTRING: MultiLine;
|
|
41
|
+
MULTIPOLYGON: MultiPolygon;
|
|
42
|
+
GEOMETRYCOLLECTION: GeometryCollection;
|
|
43
|
+
}
|
|
44
|
+
//#endregion
|
|
45
|
+
export { ColumnTsType };
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
//#region src/dal/enum/ColumnType.ts
|
|
2
|
+
let ColumnType = /* @__PURE__ */ function(ColumnType$1) {
|
|
3
|
+
ColumnType$1["BIT"] = "BIT";
|
|
4
|
+
ColumnType$1["TINYINT"] = "TINYINT";
|
|
5
|
+
ColumnType$1["BOOL"] = "BOOL";
|
|
6
|
+
ColumnType$1["SMALLINT"] = "SMALLINT";
|
|
7
|
+
ColumnType$1["MEDIUMINT"] = "MEDIUMINT";
|
|
8
|
+
ColumnType$1["INT"] = "INT";
|
|
9
|
+
ColumnType$1["BIGINT"] = "BIGINT";
|
|
10
|
+
ColumnType$1["DECIMAL"] = "DECIMAL";
|
|
11
|
+
ColumnType$1["FLOAT"] = "FLOAT";
|
|
12
|
+
ColumnType$1["DOUBLE"] = "DOUBLE";
|
|
13
|
+
ColumnType$1["DATE"] = "DATE";
|
|
14
|
+
ColumnType$1["DATETIME"] = "DATETIME";
|
|
15
|
+
ColumnType$1["TIMESTAMP"] = "TIMESTAMP";
|
|
16
|
+
ColumnType$1["TIME"] = "TIME";
|
|
17
|
+
ColumnType$1["YEAR"] = "YEAR";
|
|
18
|
+
ColumnType$1["CHAR"] = "CHAR";
|
|
19
|
+
ColumnType$1["VARCHAR"] = "VARCHAR";
|
|
20
|
+
ColumnType$1["BINARY"] = "BINARY";
|
|
21
|
+
ColumnType$1["VARBINARY"] = "VARBINARY";
|
|
22
|
+
ColumnType$1["TINYBLOB"] = "TINYBLOB";
|
|
23
|
+
ColumnType$1["TINYTEXT"] = "TINYTEXT";
|
|
24
|
+
ColumnType$1["BLOB"] = "BLOB";
|
|
25
|
+
ColumnType$1["TEXT"] = "TEXT";
|
|
26
|
+
ColumnType$1["MEDIUMBLOB"] = "MEDIUMBLOB";
|
|
27
|
+
ColumnType$1["MEDIUMTEXT"] = "MEDIUMTEXT";
|
|
28
|
+
ColumnType$1["LONGBLOB"] = "LONGBLOB";
|
|
29
|
+
ColumnType$1["LONGTEXT"] = "LONGTEXT";
|
|
30
|
+
ColumnType$1["ENUM"] = "ENUM";
|
|
31
|
+
ColumnType$1["SET"] = "SET";
|
|
32
|
+
ColumnType$1["JSON"] = "JSON";
|
|
33
|
+
ColumnType$1["GEOMETRY"] = "GEOMETRY";
|
|
34
|
+
ColumnType$1["POINT"] = "POINT";
|
|
35
|
+
ColumnType$1["LINESTRING"] = "LINESTRING";
|
|
36
|
+
ColumnType$1["POLYGON"] = "POLYGON";
|
|
37
|
+
ColumnType$1["MULTIPOINT"] = "MULTIPOINT";
|
|
38
|
+
ColumnType$1["MULTILINESTRING"] = "MULTILINESTRING";
|
|
39
|
+
ColumnType$1["MULTIPOLYGON"] = "MULTIPOLYGON";
|
|
40
|
+
ColumnType$1["GEOMETRYCOLLECTION"] = "GEOMETRYCOLLECTION";
|
|
41
|
+
return ColumnType$1;
|
|
42
|
+
}({});
|
|
43
|
+
|
|
44
|
+
//#endregion
|
|
45
|
+
export { ColumnType };
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
//#region src/dal/enum/ColumnType.d.ts
|
|
2
|
+
declare enum ColumnType {
|
|
3
|
+
BIT = "BIT",
|
|
4
|
+
TINYINT = "TINYINT",
|
|
5
|
+
BOOL = "BOOL",
|
|
6
|
+
SMALLINT = "SMALLINT",
|
|
7
|
+
MEDIUMINT = "MEDIUMINT",
|
|
8
|
+
INT = "INT",
|
|
9
|
+
BIGINT = "BIGINT",
|
|
10
|
+
DECIMAL = "DECIMAL",
|
|
11
|
+
FLOAT = "FLOAT",
|
|
12
|
+
DOUBLE = "DOUBLE",
|
|
13
|
+
DATE = "DATE",
|
|
14
|
+
DATETIME = "DATETIME",
|
|
15
|
+
TIMESTAMP = "TIMESTAMP",
|
|
16
|
+
TIME = "TIME",
|
|
17
|
+
YEAR = "YEAR",
|
|
18
|
+
CHAR = "CHAR",
|
|
19
|
+
VARCHAR = "VARCHAR",
|
|
20
|
+
BINARY = "BINARY",
|
|
21
|
+
VARBINARY = "VARBINARY",
|
|
22
|
+
TINYBLOB = "TINYBLOB",
|
|
23
|
+
TINYTEXT = "TINYTEXT",
|
|
24
|
+
BLOB = "BLOB",
|
|
25
|
+
TEXT = "TEXT",
|
|
26
|
+
MEDIUMBLOB = "MEDIUMBLOB",
|
|
27
|
+
MEDIUMTEXT = "MEDIUMTEXT",
|
|
28
|
+
LONGBLOB = "LONGBLOB",
|
|
29
|
+
LONGTEXT = "LONGTEXT",
|
|
30
|
+
ENUM = "ENUM",
|
|
31
|
+
SET = "SET",
|
|
32
|
+
JSON = "JSON",
|
|
33
|
+
GEOMETRY = "GEOMETRY",
|
|
34
|
+
POINT = "POINT",
|
|
35
|
+
LINESTRING = "LINESTRING",
|
|
36
|
+
POLYGON = "POLYGON",
|
|
37
|
+
MULTIPOINT = "MULTIPOINT",
|
|
38
|
+
MULTILINESTRING = "MULTILINESTRING",
|
|
39
|
+
MULTIPOLYGON = "MULTIPOLYGON",
|
|
40
|
+
GEOMETRYCOLLECTION = "GEOMETRYCOLLECTION",
|
|
41
|
+
}
|
|
42
|
+
//#endregion
|
|
43
|
+
export { ColumnType };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
//#region src/dal/enum/CompressionType.ts
|
|
2
|
+
let CompressionType = /* @__PURE__ */ function(CompressionType$1) {
|
|
3
|
+
CompressionType$1["ZLIB"] = "ZLIB";
|
|
4
|
+
CompressionType$1["LZ4"] = "LZ4";
|
|
5
|
+
CompressionType$1["NONE"] = "NONE";
|
|
6
|
+
return CompressionType$1;
|
|
7
|
+
}({});
|
|
8
|
+
|
|
9
|
+
//#endregion
|
|
10
|
+
export { CompressionType };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AccessLevel } from "./AccessLevel-CCiGTqJJ.js";
|
|
2
|
+
|
|
3
|
+
//#region src/core-decorator/ContextProto.d.ts
|
|
4
|
+
interface ContextProtoParams {
|
|
5
|
+
name?: string;
|
|
6
|
+
accessLevel?: AccessLevel;
|
|
7
|
+
protoImplType?: string;
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
|
10
|
+
export { ContextProtoParams };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { EggPrototypeName } from "./EggPrototypeInfo-DtKJNqMh.js";
|
|
2
|
+
import { ControllerTypeLike, MiddlewareFunc } from "./types-DuksKbpi.js";
|
|
3
|
+
import { MethodMeta } from "./MethodMeta-DhgwCoNi.js";
|
|
4
|
+
|
|
5
|
+
//#region src/controller-decorator/model/ControllerMetadata.d.ts
|
|
6
|
+
interface ControllerMetadata {
|
|
7
|
+
readonly protoName: EggPrototypeName;
|
|
8
|
+
readonly controllerName: string;
|
|
9
|
+
readonly className: string;
|
|
10
|
+
readonly type: ControllerTypeLike;
|
|
11
|
+
readonly methods: readonly MethodMeta[];
|
|
12
|
+
readonly middlewares: readonly MiddlewareFunc[];
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
export { ControllerMetadata };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { EggProtoImplClass } from "./EggPrototypeInfo-DtKJNqMh.js";
|
|
2
|
+
import { AdviceInfo } from "./Aspect-CTW_0pmy.js";
|
|
3
|
+
import { CustomPointcutCallback, PointcutInfo, PointcutType } from "./Pointcut-Cjch6vux.js";
|
|
4
|
+
|
|
5
|
+
//#region src/aop/Crosscut.d.ts
|
|
6
|
+
interface CrosscutOptions {
|
|
7
|
+
order?: number;
|
|
8
|
+
adviceParams?: any;
|
|
9
|
+
}
|
|
10
|
+
interface ClassCrosscutParam {
|
|
11
|
+
type: PointcutType.CLASS;
|
|
12
|
+
clazz: EggProtoImplClass;
|
|
13
|
+
methodName: PropertyKey;
|
|
14
|
+
}
|
|
15
|
+
interface NameCrosscutParam {
|
|
16
|
+
type: PointcutType.NAME;
|
|
17
|
+
className: RegExp;
|
|
18
|
+
methodName: RegExp;
|
|
19
|
+
}
|
|
20
|
+
interface CustomCrosscutParam {
|
|
21
|
+
type: PointcutType.CUSTOM;
|
|
22
|
+
callback: CustomPointcutCallback;
|
|
23
|
+
}
|
|
24
|
+
type CrosscutParam = ClassCrosscutParam | NameCrosscutParam | CustomCrosscutParam;
|
|
25
|
+
declare const CROSSCUT_INFO_LIST: unique symbol;
|
|
26
|
+
declare const IS_CROSSCUT_ADVICE: unique symbol;
|
|
27
|
+
interface CrosscutInfo {
|
|
28
|
+
pointcutInfo: PointcutInfo;
|
|
29
|
+
adviceInfo: AdviceInfo;
|
|
30
|
+
}
|
|
31
|
+
//#endregion
|
|
32
|
+
export { CROSSCUT_INFO_LIST, ClassCrosscutParam, CrosscutInfo, CrosscutOptions, CrosscutParam, CustomCrosscutParam, IS_CROSSCUT_ADVICE, NameCrosscutParam };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
//#region src/dal/type/DateSource.d.ts
|
|
2
|
+
interface PaginateData<T> {
|
|
3
|
+
total: number;
|
|
4
|
+
pageNum: number;
|
|
5
|
+
rows: Array<T>;
|
|
6
|
+
}
|
|
7
|
+
interface DataSource<T> {
|
|
8
|
+
execute(sqlName: string, data?: any): Promise<Array<T>>;
|
|
9
|
+
executeScalar(sqlName: string, data?: any): Promise<T | null>;
|
|
10
|
+
executeRaw(sqlName: string, data?: any): Promise<Array<any>>;
|
|
11
|
+
executeRawScalar(sqlName: string, data?: any): Promise<any | null>;
|
|
12
|
+
paginate(sqlName: string, data: any, currentPage: number, perPageCount: number): Promise<PaginateData<T>>;
|
|
13
|
+
count(sqlName: string, data?: any): Promise<number>;
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { DataSource, PaginateData };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { AccessLevel } from "./AccessLevel-CCiGTqJJ.js";
|
|
2
|
+
import { ObjectInitTypeLike } from "./ObjectInitType-Bup9dZmi.js";
|
|
3
|
+
import { QualifierInfo } from "./QualifierInfo-BAKTckQb.js";
|
|
4
|
+
import { EggPrototypeName } from "./EggPrototypeInfo-DtKJNqMh.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 @@
|
|
|
1
|
+
export { };
|