@eggjs/tegg-types 4.0.0-beta.8 → 4.0.0-beta.9
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 -2
- package/dist/aop/Advice.js +2 -3
- package/dist/aop/Aspect.d.ts +13 -23
- package/dist/aop/Aspect.js +2 -3
- package/dist/aop/Crosscut.d.ts +28 -25
- package/dist/aop/Crosscut.js +3 -3
- package/dist/aop/Pointcut.d.ts +25 -22
- package/dist/aop/Pointcut.js +17 -3
- package/dist/aop/index.d.ts +4 -26
- package/dist/aop/index.js +5 -7
- package/dist/common/Graph.d.ts +3 -2
- package/dist/common/Graph.js +2 -3
- package/dist/common/Logger.d.ts +7 -2
- package/dist/common/Logger.js +2 -3
- package/dist/common/ModuleConfig.d.ts +27 -2
- package/dist/common/ModuleConfig.js +2 -3
- package/dist/common/RuntimeConfig.d.ts +15 -2
- package/dist/common/RuntimeConfig.js +2 -3
- package/dist/common/index.d.ts +4 -6
- package/dist/common/index.js +5 -7
- package/dist/controller-decorator/HTTPController.d.ts +5 -2
- package/dist/controller-decorator/HTTPController.js +2 -3
- package/dist/controller-decorator/HTTPMethod.d.ts +6 -26
- package/dist/controller-decorator/HTTPMethod.js +2 -7
- package/dist/controller-decorator/HTTPParam.d.ts +9 -2
- package/dist/controller-decorator/HTTPParam.js +2 -3
- package/dist/controller-decorator/MetadataKey.d.ts +20 -2
- package/dist/controller-decorator/MetadataKey.js +21 -3
- package/dist/controller-decorator/builder.d.ts +6 -26
- package/dist/controller-decorator/builder.js +2 -3
- package/dist/controller-decorator/index.d.ts +6 -31
- package/dist/controller-decorator/index.js +7 -12
- package/dist/controller-decorator/model/ControllerMetadata.d.ts +11 -24
- package/dist/controller-decorator/model/ControllerMetadata.js +2 -3
- package/dist/controller-decorator/model/MethodMeta.d.ts +6 -3
- package/dist/controller-decorator/model/MethodMeta.js +2 -3
- package/dist/controller-decorator/model/index.d.ts +3 -25
- package/dist/controller-decorator/model/index.js +4 -6
- package/dist/controller-decorator/model/types.d.ts +45 -2
- package/dist/controller-decorator/model/types.js +42 -3
- package/dist/core-decorator/ContextProto.d.ts +6 -9
- package/dist/core-decorator/ContextProto.js +2 -10
- package/dist/core-decorator/Inject.d.ts +4 -2
- package/dist/core-decorator/Inject.js +2 -3
- package/dist/core-decorator/Metadata.d.ts +1 -2
- package/dist/core-decorator/Metadata.js +2 -3
- package/dist/core-decorator/MultiInstanceProto.d.ts +26 -15
- package/dist/core-decorator/MultiInstanceProto.js +2 -3
- package/dist/core-decorator/Prototype.d.ts +8 -9
- package/dist/core-decorator/Prototype.js +2 -3
- package/dist/core-decorator/SingletonProto.d.ts +6 -9
- package/dist/core-decorator/SingletonProto.js +2 -3
- package/dist/core-decorator/enum/AccessLevel.d.ts +4 -2
- package/dist/core-decorator/enum/AccessLevel.js +8 -3
- package/dist/core-decorator/enum/EggType.d.ts +4 -2
- package/dist/core-decorator/enum/EggType.js +6 -3
- package/dist/core-decorator/enum/InjectType.d.ts +4 -2
- package/dist/core-decorator/enum/InjectType.js +6 -3
- package/dist/core-decorator/enum/MultiInstanceType.d.ts +4 -2
- package/dist/core-decorator/enum/MultiInstanceType.js +6 -3
- package/dist/core-decorator/enum/ObjectInitType.d.ts +7 -2
- package/dist/core-decorator/enum/ObjectInitType.js +15 -3
- package/dist/core-decorator/enum/Qualifier.d.ts +7 -2
- package/dist/core-decorator/enum/Qualifier.js +8 -3
- package/dist/core-decorator/enum/index.d.ts +6 -8
- package/dist/core-decorator/enum/index.js +7 -9
- package/dist/core-decorator/index.d.ts +8 -21
- package/dist/core-decorator/index.js +9 -22
- package/dist/core-decorator/model/EggMultiInstancePrototypeInfo.d.ts +57 -11
- package/dist/core-decorator/model/EggMultiInstancePrototypeInfo.js +4 -12
- package/dist/core-decorator/model/EggPrototypeInfo.d.ts +34 -10
- package/dist/core-decorator/model/EggPrototypeInfo.js +3 -11
- package/dist/core-decorator/model/InjectConstructorInfo.d.ts +19 -3
- package/dist/core-decorator/model/InjectConstructorInfo.js +2 -3
- package/dist/core-decorator/model/InjectObjectInfo.d.ts +15 -2
- package/dist/core-decorator/model/InjectObjectInfo.js +2 -3
- package/dist/core-decorator/model/QualifierInfo.d.ts +38 -2
- package/dist/core-decorator/model/QualifierInfo.js +2 -3
- package/dist/core-decorator/model/index.d.ts +5 -14
- package/dist/core-decorator/model/index.js +6 -15
- package/dist/dal/Qualifier.d.ts +6 -2
- package/dist/dal/Qualifier.js +7 -3
- package/dist/dal/decorator/Column.d.ts +178 -12
- package/dist/dal/decorator/Column.js +2 -3
- package/dist/dal/decorator/DataSourceQualifier.d.ts +2 -2
- package/dist/dal/decorator/DataSourceQualifier.js +3 -3
- package/dist/dal/decorator/Table.d.ts +21 -12
- package/dist/dal/decorator/Table.js +2 -3
- package/dist/dal/decorator/index.d.ts +14 -15
- package/dist/dal/decorator/index.js +4 -6
- package/dist/dal/enum/ColumnFormat.d.ts +5 -2
- package/dist/dal/enum/ColumnFormat.js +7 -3
- package/dist/dal/enum/ColumnType.d.ts +40 -2
- package/dist/dal/enum/ColumnType.js +48 -3
- package/dist/dal/enum/CompressionType.d.ts +5 -2
- package/dist/dal/enum/CompressionType.js +7 -3
- package/dist/dal/enum/IndexStoreType.d.ts +4 -2
- package/dist/dal/enum/IndexStoreType.js +6 -3
- package/dist/dal/enum/IndexType.d.ts +7 -2
- package/dist/dal/enum/IndexType.js +9 -3
- package/dist/dal/enum/InsertMethod.d.ts +5 -2
- package/dist/dal/enum/InsertMethod.js +7 -3
- package/dist/dal/enum/RowFormat.d.ts +8 -2
- package/dist/dal/enum/RowFormat.js +10 -3
- package/dist/dal/enum/SqlType.d.ts +7 -2
- package/dist/dal/enum/SqlType.js +9 -3
- package/dist/dal/enum/Templates.d.ts +5 -2
- package/dist/dal/enum/Templates.js +7 -3
- package/dist/dal/enum/index.d.ts +9 -11
- package/dist/dal/enum/index.js +10 -12
- package/dist/dal/index.d.ts +4 -44
- package/dist/dal/index.js +5 -25
- package/dist/dal/type/BaseDao.d.ts +9 -33
- package/dist/dal/type/BaseDao.js +2 -3
- package/dist/dal/type/CodeGenerator.d.ts +6 -2
- package/dist/dal/type/CodeGenerator.js +2 -3
- package/dist/dal/type/ColumnTsType.d.ts +41 -3
- package/dist/dal/type/ColumnTsType.js +2 -3
- package/dist/dal/type/DateSource.d.ts +13 -2
- package/dist/dal/type/DateSource.js +2 -3
- package/dist/dal/type/Spatial.d.ts +11 -2
- package/dist/dal/type/Spatial.js +2 -3
- package/dist/dal/type/SqlMap.d.ts +18 -12
- package/dist/dal/type/SqlMap.js +2 -3
- package/dist/dal/type/index.d.ts +6 -38
- package/dist/dal/type/index.js +7 -9
- package/dist/dynamic-inject.d.ts +13 -22
- package/dist/dynamic-inject.js +2 -3
- package/dist/index.d.ts +12 -76
- package/dist/index.js +13 -89
- package/dist/lifecycle/EggObjectLifecycle.d.ts +35 -29
- package/dist/lifecycle/EggObjectLifecycle.js +2 -3
- package/dist/lifecycle/IdenticalObject.d.ts +4 -2
- package/dist/lifecycle/IdenticalObject.js +2 -3
- package/dist/lifecycle/LifecycleHook.d.ts +13 -3
- package/dist/lifecycle/LifecycleHook.js +2 -3
- package/dist/lifecycle/index.d.ts +3 -29
- package/dist/lifecycle/index.js +4 -6
- package/dist/metadata/enum/ProtoDescriptorType.d.ts +3 -2
- package/dist/metadata/enum/ProtoDescriptorType.js +5 -3
- package/dist/metadata/enum/index.d.ts +1 -3
- package/dist/metadata/enum/index.js +2 -4
- package/dist/metadata/errors.d.ts +5 -2
- package/dist/metadata/errors.js +7 -3
- package/dist/metadata/index.d.ts +3 -29
- package/dist/metadata/index.js +4 -35
- package/dist/metadata/model/EggPrototype.d.ts +136 -29
- package/dist/metadata/model/EggPrototype.js +4 -28
- package/dist/metadata/model/LoadUnit.d.ts +29 -29
- package/dist/metadata/model/LoadUnit.js +7 -3
- package/dist/metadata/model/Loader.d.ts +7 -22
- package/dist/metadata/model/Loader.js +2 -3
- package/dist/metadata/model/ProtoDescriptor.d.ts +22 -24
- package/dist/metadata/model/ProtoDescriptor.js +3 -25
- package/dist/metadata/model/index.d.ts +4 -29
- package/dist/metadata/model/index.js +5 -33
- package/dist/orm.d.ts +30 -2
- package/dist/orm.js +7 -3
- package/dist/runtime/Factory.d.ts +6 -29
- package/dist/runtime/Factory.js +2 -3
- package/dist/runtime/index.d.ts +2 -29
- package/dist/runtime/index.js +3 -9
- package/dist/runtime/model/EggContainer.d.ts +11 -29
- package/dist/runtime/model/EggContainer.js +2 -3
- package/dist/runtime/model/EggContext.d.ts +7 -29
- package/dist/runtime/model/EggContext.js +2 -3
- package/dist/runtime/model/EggObject.d.ts +24 -29
- package/dist/runtime/model/EggObject.js +9 -3
- package/dist/runtime/model/LoadUnitInstance.d.ts +9 -29
- package/dist/runtime/model/LoadUnitInstance.js +2 -3
- package/dist/runtime/model/index.d.ts +4 -29
- package/dist/runtime/model/index.js +5 -7
- package/dist/schedule.d.ts +30 -2
- package/dist/schedule.js +10 -3
- package/dist/transaction.d.ts +23 -2
- package/dist/transaction.js +10 -3
- package/package.json +2 -2
- package/dist/AccessLevel-BmHWkz-U.js +0 -9
- package/dist/AccessLevel-CCiGTqJJ.d.ts +0 -7
- package/dist/Advice-B4Ts38yJ.d.ts +0 -42
- package/dist/Advice-BwhUgRjK.js +0 -1
- package/dist/Aspect-CTW_0pmy.d.ts +0 -17
- package/dist/Aspect-DXu-kwdZ.js +0 -5
- package/dist/BaseDao-TBMMfekC.d.ts +0 -13
- package/dist/BaseDao-kXru0LGa.js +0 -1
- package/dist/CodeGenerator-BXae3hkj.d.ts +0 -9
- package/dist/CodeGenerator-CC1LH3Nd.js +0 -1
- package/dist/Column-BLmjqPaT.js +0 -1
- package/dist/Column-JNyjCJMp.d.ts +0 -182
- package/dist/ColumnFormat-NfbFD-Qq.js +0 -10
- package/dist/ColumnFormat-YNjWfTAq.d.ts +0 -8
- package/dist/ColumnTsType-Bn82JG3Z.js +0 -1
- package/dist/ColumnTsType-C-tU6Fl2.d.ts +0 -45
- package/dist/ColumnType-Baa2fUne.js +0 -45
- package/dist/ColumnType-oCNvXvt4.d.ts +0 -43
- package/dist/CompressionType-BSzjn3NF.d.ts +0 -8
- package/dist/CompressionType-rjfbKy8y.js +0 -10
- package/dist/ContextProto-B9GGOED5.js +0 -1
- package/dist/ContextProto-DNcKWLwE.d.ts +0 -10
- package/dist/ControllerMetadata-_P0ZOday.d.ts +0 -15
- package/dist/ControllerMetadata-uOWyAhxg.js +0 -1
- package/dist/Crosscut-CFVGqlTe.d.ts +0 -32
- package/dist/Crosscut-RtDGP_jE.js +0 -6
- package/dist/DataSourceQualifier-BYTDOFX_.js +0 -6
- package/dist/DataSourceQualifier-tL1buEEH.d.ts +0 -5
- package/dist/DateSource-D9CDT4dT.d.ts +0 -16
- package/dist/DateSource-DZkuQC77.js +0 -1
- package/dist/EggContainer-SVX9XNK2.js +0 -1
- package/dist/EggContext-GNBG4Rj7.js +0 -1
- package/dist/EggMultiInstancePrototypeInfo-BqfEf8bP.d.ts +0 -62
- package/dist/EggMultiInstancePrototypeInfo-KJT1L6LW.js +0 -1
- package/dist/EggObject-BmvZuwV_.js +0 -12
- package/dist/EggObjectLifecycle-D3YqlfEg.js +0 -1
- package/dist/EggPrototype-DT7xhNEp.js +0 -1
- package/dist/EggPrototypeInfo-DB-Ka_mi.js +0 -1
- package/dist/EggPrototypeInfo-DtKJNqMh.d.ts +0 -39
- package/dist/EggType-CWiNumD0.d.ts +0 -7
- package/dist/EggType-Gbn2fclg.js +0 -9
- package/dist/Factory-NttwzKhi.js +0 -1
- package/dist/Graph-BoS2dLfr.js +0 -1
- package/dist/Graph-DV_lJFde.d.ts +0 -6
- package/dist/HTTPController-DUeli07o.js +0 -1
- package/dist/HTTPController-DWaTpXho.d.ts +0 -8
- package/dist/HTTPMethod-BXEIRfwp.d.ts +0 -10
- package/dist/HTTPMethod-hvD7QIK7.js +0 -1
- package/dist/HTTPParam-BSihwHRr.d.ts +0 -12
- package/dist/HTTPParam-Le3ct7ye.js +0 -1
- package/dist/IdenticalObject-CgLvCa4Z.js +0 -1
- package/dist/IdenticalObject-DWtk6w0C.d.ts +0 -7
- package/dist/IndexStoreType-BoZ6JVlo.js +0 -9
- package/dist/IndexStoreType-CyG2LFa7.d.ts +0 -7
- package/dist/IndexType-C2UAjKxX.js +0 -12
- package/dist/IndexType-Df7nUq-E.d.ts +0 -10
- package/dist/Inject-CJoudlde.d.ts +0 -7
- package/dist/Inject-DuZBYpk5.js +0 -1
- package/dist/InjectConstructorInfo-C2StiUhG.d.ts +0 -23
- package/dist/InjectConstructorInfo-Hnid0JYk.js +0 -1
- package/dist/InjectObjectInfo-1V6YBUpK.d.ts +0 -18
- package/dist/InjectObjectInfo-DEoSk7Pn.js +0 -1
- package/dist/InjectType-CFz0_dok.js +0 -9
- package/dist/InjectType-s8nLOlv2.d.ts +0 -7
- package/dist/InsertMethod-CK5Y5i-0.d.ts +0 -8
- package/dist/InsertMethod-CndhCMXe.js +0 -10
- package/dist/LifecycleHook-Bo14zgud.d.ts +0 -16
- package/dist/LifecycleHook-Cz0mYIGG.js +0 -1
- package/dist/LoadUnit-DHzr1WxT.js +0 -10
- package/dist/LoadUnitInstance-CU2hw0zx.js +0 -1
- package/dist/Loader-CeoaOmMk.d.ts +0 -12
- package/dist/Loader-tg663nX2.js +0 -1
- package/dist/Logger-B4gKN85p.d.ts +0 -10
- package/dist/Logger-DWAU5XJy.js +0 -1
- package/dist/Metadata-2R5ZbPIh.js +0 -1
- package/dist/Metadata-BCDj-rjy.d.ts +0 -4
- package/dist/MetadataKey-DHtJYAMe.js +0 -24
- package/dist/MetadataKey-DtGflg7d.d.ts +0 -23
- package/dist/MethodMeta-CRxnzXjS.js +0 -1
- package/dist/MethodMeta-DhgwCoNi.d.ts +0 -10
- package/dist/ModuleConfig-BAMzgp3C.d.ts +0 -29
- package/dist/ModuleConfig-cL7yqQ_U.js +0 -1
- package/dist/MultiInstanceProto-7QFGZfAk.d.ts +0 -31
- package/dist/MultiInstanceProto-FQ3UjFp4.js +0 -1
- package/dist/MultiInstanceType-BGZS96By.d.ts +0 -7
- package/dist/MultiInstanceType-ClAOva8a.js +0 -9
- package/dist/ObjectInitType-B1ZmILoP.js +0 -15
- package/dist/ObjectInitType-Bup9dZmi.d.ts +0 -10
- package/dist/Pointcut-CU11keh_.js +0 -20
- package/dist/Pointcut-Cjch6vux.d.ts +0 -29
- package/dist/ProtoDescriptor-C46l15Hq.d.ts +0 -29
- package/dist/ProtoDescriptor-C7lYBF_c.js +0 -1
- package/dist/ProtoDescriptorType-4nWZH9VX.js +0 -8
- package/dist/ProtoDescriptorType-Ccx3k2nQ.d.ts +0 -6
- package/dist/Prototype-DVMZnlzR.d.ts +0 -13
- package/dist/Prototype-DkOAbbWd.js +0 -5
- package/dist/Qualifier-BdK6CR6I.js +0 -11
- package/dist/Qualifier-DHoHs6N1.d.ts +0 -9
- package/dist/Qualifier-Do-37C7R.d.ts +0 -10
- package/dist/Qualifier-DqQ1SHGp.js +0 -10
- package/dist/QualifierInfo-BAKTckQb.d.ts +0 -41
- package/dist/QualifierInfo-BPycgg_P.js +0 -1
- package/dist/RowFormat-D9-zkd7Y.d.ts +0 -11
- package/dist/RowFormat-j0MO7-Ti.js +0 -13
- package/dist/RuntimeConfig-B8mz1XU4.js +0 -1
- package/dist/RuntimeConfig-D3ZIrFDE.d.ts +0 -18
- package/dist/SingletonProto-4_tj18YD.js +0 -1
- package/dist/SingletonProto-CwutNiFl.d.ts +0 -10
- package/dist/Spatial-Bobfh4hS.js +0 -1
- package/dist/Spatial-DR_aZctq.d.ts +0 -14
- package/dist/SqlMap-C4zS_FfM.js +0 -1
- package/dist/SqlMap-CElpXNYO.d.ts +0 -22
- package/dist/SqlType-3poChZq3.js +0 -12
- package/dist/SqlType-CTfZJaDy.d.ts +0 -10
- package/dist/Table-C7PwEyW3.js +0 -1
- package/dist/Table-y7qTEg4Y.d.ts +0 -27
- package/dist/Templates-CzZva9K4.d.ts +0 -8
- package/dist/Templates-RNDj6Xzm.js +0 -10
- package/dist/aop-DsxLLCBn.js +0 -1
- package/dist/builder-Cc8YzNyP.js +0 -1
- package/dist/builder-D5y-duIA.d.ts +0 -10
- package/dist/common-CKFqCHwu.js +0 -1
- package/dist/controller-decorator-LXQBm3FM.js +0 -1
- package/dist/core-decorator-D7IpfnBM.js +0 -1
- package/dist/dal-CxBKEWLS.js +0 -1
- package/dist/decorator-siRZOEcm.js +0 -1
- package/dist/dynamic-inject-DAPxfjab.js +0 -5
- package/dist/dynamic-inject-s2d6E4bg.d.ts +0 -18
- package/dist/enum-BLhDoXEr.js +0 -1
- package/dist/enum-DPmNBh9B.js +0 -1
- package/dist/enum-Dq4iL6Z6.js +0 -1
- package/dist/errors-D0-3zz_0.d.ts +0 -8
- package/dist/errors-f8c86iks.js +0 -10
- package/dist/index-2Mg7qf3C.d.ts +0 -1
- package/dist/index-2g6qjnfC.d.ts +0 -1
- package/dist/index-B49vchMV.d.ts +0 -1
- package/dist/index-BdAuF5sH.d.ts +0 -16
- package/dist/index-CAfgpWI7.d.ts +0 -1
- package/dist/index-CQhjd39A.d.ts +0 -1
- package/dist/index-ChT-j2Wd.d.ts +0 -1
- package/dist/index-CxtfLU1L.d.ts +0 -259
- package/dist/index-D32kgK7U.d.ts +0 -1
- package/dist/index-DAzj8jAF.d.ts +0 -1
- package/dist/index-DIk3-d3u.d.ts +0 -1
- package/dist/index-DKjTz6WE.d.ts +0 -1
- package/dist/index-LUGmBzeE.d.ts +0 -1
- package/dist/lifecycle-De43j7QN.js +0 -1
- package/dist/metadata-4rC6zz4u.js +0 -1
- package/dist/model-B2jQYVY_.js +0 -1
- package/dist/model-BGXnWY4v.js +0 -1
- package/dist/model-Cgjw7oIu.js +0 -1
- package/dist/model-CrxScfQ9.js +0 -1
- package/dist/orm-C3AVUU9c.js +0 -10
- package/dist/orm-C5YAuOG4.d.ts +0 -33
- package/dist/runtime-7iHvU3SV.js +0 -1
- package/dist/schedule-C1BbX-U_.d.ts +0 -33
- package/dist/schedule-DpXiSIJj.js +0 -13
- package/dist/transaction-BS1Kmzb9.d.ts +0 -26
- package/dist/transaction-C_PbpkW9.js +0 -13
- package/dist/type-DIfgT8T2.js +0 -1
- package/dist/types-C0VFNhau.js +0 -45
- package/dist/types-DuksKbpi.d.ts +0 -49
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
//#region src/core-decorator/model/QualifierInfo.d.ts
|
|
2
|
-
type QualifierAttribute = symbol | string;
|
|
3
|
-
type QualifierValue = string | number;
|
|
4
|
-
/**
|
|
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;
|
|
39
|
-
}
|
|
40
|
-
//#endregion
|
|
41
|
-
export { QualifierAttribute, QualifierInfo, QualifierValue };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
//#region src/dal/enum/RowFormat.ts
|
|
2
|
-
let RowFormat = /* @__PURE__ */ function(RowFormat$1) {
|
|
3
|
-
RowFormat$1["DEFAULT"] = "DEFAULT";
|
|
4
|
-
RowFormat$1["DYNAMIC"] = "DYNAMIC";
|
|
5
|
-
RowFormat$1["FIXED"] = "FIXED";
|
|
6
|
-
RowFormat$1["COMPRESSED"] = "COMPRESSED";
|
|
7
|
-
RowFormat$1["REDUNDANT"] = "REDUNDANT";
|
|
8
|
-
RowFormat$1["COMPACT"] = "COMPACT";
|
|
9
|
-
return RowFormat$1;
|
|
10
|
-
}({});
|
|
11
|
-
|
|
12
|
-
//#endregion
|
|
13
|
-
export { RowFormat };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
//#region src/common/RuntimeConfig.d.ts
|
|
2
|
-
type EnvType = 'local' | 'unittest' | 'prod' | string;
|
|
3
|
-
interface RuntimeConfig {
|
|
4
|
-
/**
|
|
5
|
-
* Application name
|
|
6
|
-
*/
|
|
7
|
-
name: string;
|
|
8
|
-
/**
|
|
9
|
-
* Application environment
|
|
10
|
-
*/
|
|
11
|
-
env: EnvType;
|
|
12
|
-
/**
|
|
13
|
-
* Application directory
|
|
14
|
-
*/
|
|
15
|
-
baseDir: string;
|
|
16
|
-
}
|
|
17
|
-
//#endregion
|
|
18
|
-
export { EnvType, RuntimeConfig };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { AccessLevel } from "./AccessLevel-CCiGTqJJ.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 };
|
package/dist/Spatial-Bobfh4hS.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
//#region src/dal/type/Spatial.d.ts
|
|
2
|
-
interface Point {
|
|
3
|
-
x: number;
|
|
4
|
-
y: number;
|
|
5
|
-
}
|
|
6
|
-
type Line = Array<Point>;
|
|
7
|
-
type Polygon = Array<Line>;
|
|
8
|
-
type Geometry = Point | Line | Polygon;
|
|
9
|
-
type MultiPoint = Array<Point>;
|
|
10
|
-
type MultiLine = Array<Line>;
|
|
11
|
-
type MultiPolygon = Array<Polygon>;
|
|
12
|
-
type GeometryCollection = Array<Point | Line | Polygon>;
|
|
13
|
-
//#endregion
|
|
14
|
-
export { Geometry, GeometryCollection, Line, MultiLine, MultiPoint, MultiPolygon, Point, Polygon };
|
package/dist/SqlMap-C4zS_FfM.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { SqlType } from "./SqlType-CTfZJaDy.js";
|
|
2
|
-
|
|
3
|
-
//#region src/dal/type/SqlMap.d.ts
|
|
4
|
-
interface BaseSqlMap {
|
|
5
|
-
type?: SqlType;
|
|
6
|
-
}
|
|
7
|
-
interface FullSqlMap extends BaseSqlMap {
|
|
8
|
-
type: SqlType.DELETE | SqlType.INSERT | SqlType.UPDATE | SqlType.SELECT;
|
|
9
|
-
sql: string;
|
|
10
|
-
}
|
|
11
|
-
interface BlockSqlMap extends BaseSqlMap {
|
|
12
|
-
type: SqlType.BLOCK;
|
|
13
|
-
content: string;
|
|
14
|
-
}
|
|
15
|
-
type SqlMap = FullSqlMap | BlockSqlMap;
|
|
16
|
-
interface GenerateSqlMap {
|
|
17
|
-
name: string;
|
|
18
|
-
type: SqlType.DELETE | SqlType.UPDATE | SqlType.INSERT | SqlType.SELECT;
|
|
19
|
-
sql: string;
|
|
20
|
-
}
|
|
21
|
-
//#endregion
|
|
22
|
-
export { BaseSqlMap, BlockSqlMap, FullSqlMap, GenerateSqlMap, SqlMap };
|
package/dist/SqlType-3poChZq3.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
//#region src/dal/enum/SqlType.ts
|
|
2
|
-
let SqlType = /* @__PURE__ */ function(SqlType$1) {
|
|
3
|
-
SqlType$1["BLOCK"] = "BLOCK";
|
|
4
|
-
SqlType$1["INSERT"] = "INSERT";
|
|
5
|
-
SqlType$1["SELECT"] = "SELECT";
|
|
6
|
-
SqlType$1["UPDATE"] = "UPDATE";
|
|
7
|
-
SqlType$1["DELETE"] = "DELETE";
|
|
8
|
-
return SqlType$1;
|
|
9
|
-
}({});
|
|
10
|
-
|
|
11
|
-
//#endregion
|
|
12
|
-
export { SqlType };
|
package/dist/Table-C7PwEyW3.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
package/dist/Table-y7qTEg4Y.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { CompressionType } from "./CompressionType-BSzjn3NF.js";
|
|
2
|
-
import { InsertMethod } from "./InsertMethod-CK5Y5i-0.js";
|
|
3
|
-
import { RowFormat } from "./RowFormat-D9-zkd7Y.js";
|
|
4
|
-
|
|
5
|
-
//#region src/dal/decorator/Table.d.ts
|
|
6
|
-
interface TableParams {
|
|
7
|
-
name?: string;
|
|
8
|
-
dataSourceName?: string;
|
|
9
|
-
comment?: string;
|
|
10
|
-
autoExtendSize?: number;
|
|
11
|
-
autoIncrement?: number;
|
|
12
|
-
avgRowLength?: number;
|
|
13
|
-
characterSet?: string;
|
|
14
|
-
collate?: string;
|
|
15
|
-
compression?: CompressionType;
|
|
16
|
-
encryption?: boolean;
|
|
17
|
-
engine?: string;
|
|
18
|
-
engineAttribute?: string;
|
|
19
|
-
insertMethod?: InsertMethod;
|
|
20
|
-
keyBlockSize?: number;
|
|
21
|
-
maxRows?: number;
|
|
22
|
-
minRows?: number;
|
|
23
|
-
rowFormat?: RowFormat;
|
|
24
|
-
secondaryEngineAttribute?: string;
|
|
25
|
-
}
|
|
26
|
-
//#endregion
|
|
27
|
-
export { TableParams };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
//#region src/dal/enum/Templates.ts
|
|
2
|
-
let Templates = /* @__PURE__ */ function(Templates$1) {
|
|
3
|
-
Templates$1["BASE_DAO"] = "base_dao";
|
|
4
|
-
Templates$1["DAO"] = "dao";
|
|
5
|
-
Templates$1["EXTENSION"] = "extension";
|
|
6
|
-
return Templates$1;
|
|
7
|
-
}({});
|
|
8
|
-
|
|
9
|
-
//#endregion
|
|
10
|
-
export { Templates };
|
package/dist/aop-DsxLLCBn.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
package/dist/builder-Cc8YzNyP.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { EggProtoImplClass } from "./EggPrototypeInfo-DtKJNqMh.js";
|
|
2
|
-
import { ControllerMetadata } from "./ControllerMetadata-_P0ZOday.js";
|
|
3
|
-
|
|
4
|
-
//#region src/controller-decorator/builder.d.ts
|
|
5
|
-
interface ControllerMetaBuilder {
|
|
6
|
-
build(): ControllerMetadata | undefined;
|
|
7
|
-
}
|
|
8
|
-
type ControllerMetaBuilderCreator = (clazz: EggProtoImplClass) => ControllerMetaBuilder;
|
|
9
|
-
//#endregion
|
|
10
|
-
export { ControllerMetaBuilder, ControllerMetaBuilderCreator };
|
package/dist/common-CKFqCHwu.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
package/dist/dal-CxBKEWLS.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { QualifierValue } from "./QualifierInfo-BAKTckQb.js";
|
|
2
|
-
import { EggProtoImplClass } from "./EggPrototypeInfo-DtKJNqMh.js";
|
|
3
|
-
|
|
4
|
-
//#region src/dynamic-inject.d.ts
|
|
5
|
-
type EggAbstractClazz<T extends object = object> = Function & {
|
|
6
|
-
prototype: T;
|
|
7
|
-
};
|
|
8
|
-
type ImplTypeEnum = {
|
|
9
|
-
[id: string]: QualifierValue;
|
|
10
|
-
};
|
|
11
|
-
type ImplDecorator<T extends object, Enum extends ImplTypeEnum> = (type: Enum[keyof Enum]) => ((clazz: EggProtoImplClass<T>) => void);
|
|
12
|
-
interface EggObjectFactory {
|
|
13
|
-
getEggObject<T extends object>(abstractClazz: EggAbstractClazz<T>, qualifierValue: QualifierValue): Promise<T>;
|
|
14
|
-
getEggObjects<T extends object>(abstractClazz: EggAbstractClazz<T>): Promise<AsyncIterable<T>>;
|
|
15
|
-
}
|
|
16
|
-
declare const QUALIFIER_IMPL_MAP: unique symbol;
|
|
17
|
-
//#endregion
|
|
18
|
-
export { EggAbstractClazz, EggObjectFactory, ImplDecorator, ImplTypeEnum, QUALIFIER_IMPL_MAP };
|
package/dist/enum-BLhDoXEr.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
package/dist/enum-DPmNBh9B.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
package/dist/enum-Dq4iL6Z6.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
package/dist/errors-f8c86iks.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
//#region src/metadata/errors.ts
|
|
2
|
-
let ErrorCodes = /* @__PURE__ */ function(ErrorCodes$1) {
|
|
3
|
-
ErrorCodes$1["EGG_PROTO_NOT_FOUND"] = "EGG_PROTO_NOT_FOUND";
|
|
4
|
-
ErrorCodes$1["MULTI_PROTO_FOUND"] = "MULTI_PROTO_FOUND";
|
|
5
|
-
ErrorCodes$1["INCOMPATIBLE_PROTO_INJECT"] = "INCOMPATIBLE_PROTO_INJECT";
|
|
6
|
-
return ErrorCodes$1;
|
|
7
|
-
}({});
|
|
8
|
-
|
|
9
|
-
//#endregion
|
|
10
|
-
export { ErrorCodes };
|
package/dist/index-2Mg7qf3C.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
package/dist/index-2g6qjnfC.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
package/dist/index-B49vchMV.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
package/dist/index-BdAuF5sH.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { IndexStoreType } from "./IndexStoreType-CyG2LFa7.js";
|
|
2
|
-
import { IndexType } from "./IndexType-Df7nUq-E.js";
|
|
3
|
-
|
|
4
|
-
//#region src/dal/decorator/index.d.ts
|
|
5
|
-
interface IndexParams {
|
|
6
|
-
keys: string[];
|
|
7
|
-
name?: string;
|
|
8
|
-
type?: IndexType;
|
|
9
|
-
storeType?: IndexStoreType;
|
|
10
|
-
comment?: string;
|
|
11
|
-
engineAttribute?: string;
|
|
12
|
-
secondaryEngineAttribute?: string;
|
|
13
|
-
parser?: string;
|
|
14
|
-
}
|
|
15
|
-
//#endregion
|
|
16
|
-
export { IndexParams };
|
package/dist/index-CAfgpWI7.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
package/dist/index-CQhjd39A.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
package/dist/index-ChT-j2Wd.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
package/dist/index-CxtfLU1L.d.ts
DELETED
|
@@ -1,259 +0,0 @@
|
|
|
1
|
-
import { AccessLevel } from "./AccessLevel-CCiGTqJJ.js";
|
|
2
|
-
import { ObjectInitTypeLike } from "./ObjectInitType-Bup9dZmi.js";
|
|
3
|
-
import { InjectType } from "./InjectType-s8nLOlv2.js";
|
|
4
|
-
import { QualifierAttribute, QualifierInfo, QualifierValue } from "./QualifierInfo-BAKTckQb.js";
|
|
5
|
-
import { EggProtoImplClass, EggPrototypeInfo, EggPrototypeName } from "./EggPrototypeInfo-DtKJNqMh.js";
|
|
6
|
-
import { EggObjectName } from "./InjectObjectInfo-1V6YBUpK.js";
|
|
7
|
-
import { MetaDataKey } from "./Metadata-BCDj-rjy.js";
|
|
8
|
-
import { Loader } from "./Loader-CeoaOmMk.js";
|
|
9
|
-
import { LifecycleContext, LifecycleObject } from "./LifecycleHook-Bo14zgud.js";
|
|
10
|
-
|
|
11
|
-
//#region src/metadata/model/LoadUnit.d.ts
|
|
12
|
-
declare enum EggLoadUnitType {
|
|
13
|
-
MODULE = "MODULE",
|
|
14
|
-
PLUGIN = "PLUGIN",
|
|
15
|
-
APP = "APP",
|
|
16
|
-
}
|
|
17
|
-
type EggLoadUnitTypeLike = EggLoadUnitType | string;
|
|
18
|
-
interface LoadUnitLifecycleContext extends LifecycleContext {
|
|
19
|
-
unitPath: string;
|
|
20
|
-
loader: Loader;
|
|
21
|
-
}
|
|
22
|
-
interface LoadUnit extends LifecycleObject<LoadUnitLifecycleContext> {
|
|
23
|
-
readonly name: string;
|
|
24
|
-
readonly unitPath: string;
|
|
25
|
-
readonly type: EggLoadUnitTypeLike;
|
|
26
|
-
iterateEggPrototype(): IterableIterator<EggPrototype>;
|
|
27
|
-
registerEggPrototype(proto: EggPrototype): void;
|
|
28
|
-
deletePrototype(proto: EggPrototype): void;
|
|
29
|
-
getEggPrototype(name: EggPrototypeName, qualifiers: QualifierInfo[]): EggPrototype[];
|
|
30
|
-
containPrototype(proto: EggPrototype): boolean;
|
|
31
|
-
}
|
|
32
|
-
interface LoadUnitPair {
|
|
33
|
-
loadUnit: LoadUnit;
|
|
34
|
-
ctx: LoadUnitLifecycleContext;
|
|
35
|
-
}
|
|
36
|
-
type LoadUnitCreator = (ctx: LoadUnitLifecycleContext) => LoadUnit;
|
|
37
|
-
//#endregion
|
|
38
|
-
//#region src/metadata/model/EggPrototype.d.ts
|
|
39
|
-
interface InjectObjectProto {
|
|
40
|
-
/**
|
|
41
|
-
* property name obj inject to
|
|
42
|
-
*/
|
|
43
|
-
refName: PropertyKey;
|
|
44
|
-
/**
|
|
45
|
-
* obj's name will be injected
|
|
46
|
-
*/
|
|
47
|
-
objName: PropertyKey;
|
|
48
|
-
/**
|
|
49
|
-
* inject qualifiers
|
|
50
|
-
*/
|
|
51
|
-
qualifiers: QualifierInfo[];
|
|
52
|
-
/**
|
|
53
|
-
* optional inject
|
|
54
|
-
*/
|
|
55
|
-
optional?: boolean;
|
|
56
|
-
/**
|
|
57
|
-
* inject prototype
|
|
58
|
-
*/
|
|
59
|
-
proto: EggPrototype;
|
|
60
|
-
}
|
|
61
|
-
interface InjectConstructorProto {
|
|
62
|
-
/**
|
|
63
|
-
* inject args index
|
|
64
|
-
*/
|
|
65
|
-
refIndex: number;
|
|
66
|
-
/**
|
|
67
|
-
* property name obj inject to
|
|
68
|
-
*/
|
|
69
|
-
refName: PropertyKey;
|
|
70
|
-
/**
|
|
71
|
-
* obj's name will be injected
|
|
72
|
-
*/
|
|
73
|
-
objName: PropertyKey;
|
|
74
|
-
/**
|
|
75
|
-
* inject qualifiers
|
|
76
|
-
*/
|
|
77
|
-
qualifiers: QualifierInfo[];
|
|
78
|
-
/**
|
|
79
|
-
* optional inject
|
|
80
|
-
*/
|
|
81
|
-
optional?: boolean;
|
|
82
|
-
/**
|
|
83
|
-
* inject prototype
|
|
84
|
-
*/
|
|
85
|
-
proto: EggPrototype;
|
|
86
|
-
}
|
|
87
|
-
interface InjectObject {
|
|
88
|
-
/**
|
|
89
|
-
* property name obj inject to
|
|
90
|
-
*/
|
|
91
|
-
refName: PropertyKey;
|
|
92
|
-
/**
|
|
93
|
-
* obj's name will be injected
|
|
94
|
-
*/
|
|
95
|
-
objName: PropertyKey;
|
|
96
|
-
/**
|
|
97
|
-
* obj's initType will be injected
|
|
98
|
-
* if null same as current obj
|
|
99
|
-
*/
|
|
100
|
-
initType?: ObjectInitTypeLike;
|
|
101
|
-
/**
|
|
102
|
-
* optional inject
|
|
103
|
-
*/
|
|
104
|
-
optional?: boolean;
|
|
105
|
-
}
|
|
106
|
-
interface InjectConstructor {
|
|
107
|
-
/**
|
|
108
|
-
* property name obj inject to
|
|
109
|
-
*/
|
|
110
|
-
refIndex: number;
|
|
111
|
-
/**
|
|
112
|
-
* property name obj inject to
|
|
113
|
-
*/
|
|
114
|
-
refName: PropertyKey;
|
|
115
|
-
/**
|
|
116
|
-
* obj's name will be injected
|
|
117
|
-
*/
|
|
118
|
-
objName: PropertyKey;
|
|
119
|
-
/**
|
|
120
|
-
* obj's initType will be injected
|
|
121
|
-
* if null same as current obj
|
|
122
|
-
*/
|
|
123
|
-
initType?: ObjectInitTypeLike;
|
|
124
|
-
/**
|
|
125
|
-
* optional inject
|
|
126
|
-
*/
|
|
127
|
-
optional?: boolean;
|
|
128
|
-
}
|
|
129
|
-
type EggPrototypeClass = new (...args: any[]) => EggPrototype;
|
|
130
|
-
interface EggPrototypeLifecycleContext extends LifecycleContext {
|
|
131
|
-
clazz: EggProtoImplClass;
|
|
132
|
-
prototypeInfo: EggPrototypeInfo;
|
|
133
|
-
loadUnit: LoadUnit;
|
|
134
|
-
}
|
|
135
|
-
interface EggPrototype extends LifecycleObject<EggPrototypeLifecycleContext> {
|
|
136
|
-
[key: symbol]: PropertyDescriptor;
|
|
137
|
-
readonly name: EggPrototypeName;
|
|
138
|
-
readonly initType: ObjectInitTypeLike;
|
|
139
|
-
readonly accessLevel: AccessLevel;
|
|
140
|
-
readonly loadUnitId: string;
|
|
141
|
-
readonly injectObjects: Array<InjectObjectProto | InjectConstructorProto>;
|
|
142
|
-
readonly injectType?: InjectType;
|
|
143
|
-
readonly className?: string;
|
|
144
|
-
readonly multiInstanceConstructorIndex?: number;
|
|
145
|
-
readonly multiInstanceConstructorAttributes?: QualifierAttribute[];
|
|
146
|
-
/**
|
|
147
|
-
* get metadata for key
|
|
148
|
-
* @param {MetaDataKey} metadataKey
|
|
149
|
-
*/
|
|
150
|
-
getMetaData<T>(metadataKey: MetaDataKey): T | undefined;
|
|
151
|
-
/**
|
|
152
|
-
* verify proto is satisfied with qualifier
|
|
153
|
-
*
|
|
154
|
-
* default qualifier:
|
|
155
|
-
* - load unit name
|
|
156
|
-
* - init type
|
|
157
|
-
*
|
|
158
|
-
* @param qualifier
|
|
159
|
-
*/
|
|
160
|
-
verifyQualifier(qualifier: QualifierInfo): boolean;
|
|
161
|
-
verifyQualifiers(qualifiers: QualifierInfo[]): boolean;
|
|
162
|
-
getQualifier(attribute: QualifierAttribute): QualifierValue | undefined;
|
|
163
|
-
/**
|
|
164
|
-
* construct egg object, not trigger lifecycle method/hook
|
|
165
|
-
*/
|
|
166
|
-
constructEggObject(...args: any): object;
|
|
167
|
-
}
|
|
168
|
-
interface EggPrototypeWithClazz extends EggPrototype {
|
|
169
|
-
clazz?: EggProtoImplClass;
|
|
170
|
-
}
|
|
171
|
-
type EggPrototypeCreator = (ctx: EggPrototypeLifecycleContext) => EggPrototype;
|
|
172
|
-
//#endregion
|
|
173
|
-
//#region src/runtime/model/EggContext.d.ts
|
|
174
|
-
interface EggContextLifecycleContext {}
|
|
175
|
-
interface EggRuntimeContext extends EggContainer<EggContextLifecycleContext> {
|
|
176
|
-
get(key: string | symbol): any | undefined;
|
|
177
|
-
set(key: string | symbol, val: any): void;
|
|
178
|
-
}
|
|
179
|
-
//#endregion
|
|
180
|
-
//#region src/runtime/model/LoadUnitInstance.d.ts
|
|
181
|
-
interface LoadUnitInstanceLifecycleContext {
|
|
182
|
-
loadUnit: LoadUnit;
|
|
183
|
-
}
|
|
184
|
-
interface LoadUnitInstance extends EggContainer<LoadUnitInstanceLifecycleContext> {
|
|
185
|
-
readonly name: string;
|
|
186
|
-
readonly loadUnit: LoadUnit;
|
|
187
|
-
}
|
|
188
|
-
//#endregion
|
|
189
|
-
//#region src/runtime/model/EggObject.d.ts
|
|
190
|
-
declare enum EggObjectStatus {
|
|
191
|
-
PENDING = "PENDING",
|
|
192
|
-
READY = "READY",
|
|
193
|
-
ERROR = "ERROR",
|
|
194
|
-
DESTROYING = "DESTROYING",
|
|
195
|
-
DESTROYED = "DESTROYED",
|
|
196
|
-
}
|
|
197
|
-
interface EggObjectLifeCycleContext extends LifecycleContext {
|
|
198
|
-
readonly loadUnit: LoadUnit;
|
|
199
|
-
readonly loadUnitInstance: LoadUnitInstance;
|
|
200
|
-
}
|
|
201
|
-
interface EggObject extends LifecycleObject<EggObjectLifeCycleContext> {
|
|
202
|
-
readonly isReady: boolean;
|
|
203
|
-
readonly obj: Record<string | symbol, any>;
|
|
204
|
-
readonly proto: EggPrototype;
|
|
205
|
-
readonly name: EggPrototypeName;
|
|
206
|
-
readonly ctx?: EggRuntimeContext;
|
|
207
|
-
injectProperty(name: string, descriptor: PropertyDescriptor): void;
|
|
208
|
-
}
|
|
209
|
-
//#endregion
|
|
210
|
-
//#region src/runtime/model/EggContainer.d.ts
|
|
211
|
-
interface EggContainer<T extends LifecycleContext> extends LifecycleObject<T> {
|
|
212
|
-
iterateProtoToCreate(): IterableIterator<[EggObjectName, EggPrototype]>;
|
|
213
|
-
addProtoToCreate(name: EggPrototypeName, proto: EggPrototype): void;
|
|
214
|
-
deleteProtoToCreate(name: EggPrototypeName): void;
|
|
215
|
-
getOrCreateEggObject(name: EggPrototypeName, proto: EggPrototype): Promise<EggObject>;
|
|
216
|
-
getEggObject(name: EggPrototypeName, proto: EggPrototype): EggObject;
|
|
217
|
-
}
|
|
218
|
-
//#endregion
|
|
219
|
-
//#region src/runtime/Factory.d.ts
|
|
220
|
-
type ContainerGetMethod = (proto: EggPrototype) => EggContainer<LifecycleContext>;
|
|
221
|
-
type CreateObjectMethod = (name: EggObjectName, proto: EggPrototype, lifecycleContext: EggObjectLifeCycleContext) => Promise<EggObject>;
|
|
222
|
-
//#endregion
|
|
223
|
-
//#region src/lifecycle/EggObjectLifecycle.d.ts
|
|
224
|
-
/**
|
|
225
|
-
* lifecycle hook interface for egg object
|
|
226
|
-
*/
|
|
227
|
-
interface EggObjectLifecycle {
|
|
228
|
-
/**
|
|
229
|
-
* call before project load
|
|
230
|
-
*/
|
|
231
|
-
preLoad?(ctx: EggObjectLifeCycleContext): Promise<void>;
|
|
232
|
-
/**
|
|
233
|
-
* call after construct
|
|
234
|
-
*/
|
|
235
|
-
postConstruct?(ctx: EggObjectLifeCycleContext, eggObj: EggObject): Promise<void>;
|
|
236
|
-
/**
|
|
237
|
-
* call before inject deps
|
|
238
|
-
*/
|
|
239
|
-
preInject?(ctx: EggObjectLifeCycleContext, eggObj: EggObject): Promise<void>;
|
|
240
|
-
/**
|
|
241
|
-
* call after inject deps
|
|
242
|
-
*/
|
|
243
|
-
postInject?(ctx: EggObjectLifeCycleContext, eggObj: EggObject): Promise<void>;
|
|
244
|
-
/**
|
|
245
|
-
* before object is ready
|
|
246
|
-
*/
|
|
247
|
-
init?(ctx: EggObjectLifeCycleContext, eggObj: EggObject): Promise<void>;
|
|
248
|
-
/**
|
|
249
|
-
* call before destroy
|
|
250
|
-
*/
|
|
251
|
-
preDestroy?(ctx: EggObjectLifeCycleContext, eggObj: EggObject): Promise<void>;
|
|
252
|
-
/**
|
|
253
|
-
* destroy the object
|
|
254
|
-
*/
|
|
255
|
-
destroy?(ctx: EggObjectLifeCycleContext, eggObj: EggObject): Promise<void>;
|
|
256
|
-
}
|
|
257
|
-
type LifecycleHookName = keyof EggObjectLifecycle;
|
|
258
|
-
//#endregion
|
|
259
|
-
export { ContainerGetMethod, CreateObjectMethod, EggContainer, EggContextLifecycleContext, EggLoadUnitType, EggLoadUnitTypeLike, EggObject, EggObjectLifeCycleContext, EggObjectLifecycle, EggObjectStatus, EggPrototype, EggPrototypeClass, EggPrototypeCreator, EggPrototypeLifecycleContext, EggPrototypeWithClazz, EggRuntimeContext, InjectConstructor, InjectConstructorProto, InjectObject, InjectObjectProto, LifecycleHookName, LoadUnit, LoadUnitCreator, LoadUnitInstance, LoadUnitInstanceLifecycleContext, LoadUnitLifecycleContext, LoadUnitPair };
|
package/dist/index-D32kgK7U.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
package/dist/index-DAzj8jAF.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
package/dist/index-DIk3-d3u.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
package/dist/index-DKjTz6WE.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
package/dist/index-LUGmBzeE.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
package/dist/model-B2jQYVY_.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
package/dist/model-BGXnWY4v.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
package/dist/model-Cgjw7oIu.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
package/dist/model-CrxScfQ9.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|