@adaas/a-concept 0.0.3 → 0.0.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/dist/examples/simple/components/A.component.d.ts +7 -0
- package/dist/examples/simple/components/A.component.js +57 -0
- package/dist/examples/simple/components/A.component.js.map +1 -0
- package/dist/examples/simple/components/B.component.d.ts +9 -0
- package/dist/examples/simple/components/B.component.js +77 -0
- package/dist/examples/simple/components/B.component.js.map +1 -0
- package/dist/examples/simple/concept.d.ts +1 -0
- package/dist/examples/simple/concept.js +53 -11
- package/dist/examples/simple/concept.js.map +1 -1
- package/dist/examples/simple/containers/Main.container.d.ts +11 -0
- package/dist/examples/simple/containers/Main.container.js +71 -0
- package/dist/examples/simple/containers/Main.container.js.map +1 -0
- package/dist/examples/simple/context/Fragment_A.context.d.ts +6 -0
- package/dist/examples/simple/context/Fragment_A.context.js +16 -0
- package/dist/examples/simple/context/Fragment_A.context.js.map +1 -0
- package/dist/examples/simple/context/Fragment_B.context.d.ts +6 -0
- package/dist/examples/simple/context/Fragment_B.context.js +16 -0
- package/dist/examples/simple/context/Fragment_B.context.js.map +1 -0
- package/dist/examples/simple-http-server/components/http-error-handler.component.d.ts +9 -0
- package/dist/examples/simple-http-server/components/http-error-handler.component.js +63 -0
- package/dist/examples/simple-http-server/components/http-error-handler.component.js.map +1 -0
- package/dist/examples/simple-http-server/components/http-request-handler.component.d.ts +2 -0
- package/dist/examples/simple-http-server/components/http-request-handler.component.js +7 -0
- package/dist/examples/simple-http-server/components/http-request-handler.component.js.map +1 -0
- package/dist/examples/simple-http-server/concept.js +21 -22
- package/dist/examples/simple-http-server/concept.js.map +1 -1
- package/dist/examples/simple-http-server/containers/http-server.container.d.ts +8 -8
- package/dist/examples/simple-http-server/containers/http-server.container.js +34 -30
- package/dist/examples/simple-http-server/containers/http-server.container.js.map +1 -1
- package/dist/examples/simple-http-server/containers/http-server.controller.js +1 -1
- package/dist/examples/simple-http-server/containers/http-server.router.js +2 -2
- package/dist/examples/simple-http-server/containers/http-server.router.js.map +1 -1
- package/dist/examples/simple-http-server/contexts/http-request.context.d.ts +13 -0
- package/dist/examples/simple-http-server/contexts/http-request.context.js +51 -0
- package/dist/examples/simple-http-server/contexts/http-request.context.js.map +1 -0
- package/dist/examples/simple-http-server/contexts/http-server.context.types.d.ts +0 -4
- package/dist/examples/simple-http-server/contexts/http-server.context.types.js +0 -98
- package/dist/examples/simple-http-server/contexts/http-server.context.types.js.map +1 -1
- package/dist/examples/simple-http-server/contexts/http-server.namespace.d.ts +1 -1
- package/dist/examples/simple-http-server/contexts/http-server.namespace.js +1 -1
- package/dist/examples/simple-http-server/controllers/users.controller.js +2 -2
- package/dist/examples/simple-http-server/test.d.ts +68 -0
- package/dist/examples/simple-http-server/test.js +162 -0
- package/dist/examples/simple-http-server/test.js.map +1 -0
- package/dist/index.d.ts +27 -19
- package/dist/index.js +58 -26
- package/dist/index.js.map +1 -1
- package/dist/src/base/A-Config/A-Config.container.d.ts +8 -0
- package/dist/src/base/A-Config/A-Config.container.js +64 -0
- package/dist/src/base/A-Config/A-Config.container.js.map +1 -0
- package/dist/src/base/A-Config/A-Config.context.d.ts +30 -0
- package/dist/src/base/A-Config/A-Config.context.js +58 -0
- package/dist/src/base/A-Config/A-Config.context.js.map +1 -0
- package/dist/src/base/A-Config/A-Config.types.d.ts +16 -0
- package/dist/src/base/A-Config/A-Config.types.js +7 -0
- package/dist/src/base/A-Config/A-Config.types.js.map +1 -0
- package/dist/src/base/A-Config/components/ConfigReader.component.d.ts +19 -0
- package/dist/src/base/A-Config/components/ConfigReader.component.js +53 -0
- package/dist/src/base/A-Config/components/ConfigReader.component.js.map +1 -0
- package/dist/src/base/A-Config/components/ENVConfigReader.component.d.ts +10 -0
- package/dist/src/base/A-Config/components/ENVConfigReader.component.js +37 -0
- package/dist/src/base/A-Config/components/ENVConfigReader.component.js.map +1 -0
- package/dist/src/base/A-Config/components/FileConfigReader.component.d.ts +11 -0
- package/dist/src/base/A-Config/components/FileConfigReader.component.js +47 -0
- package/dist/src/base/A-Config/components/FileConfigReader.component.js.map +1 -0
- package/dist/src/base/A-Errors/A-Errors.component.d.ts +18 -0
- package/dist/src/base/A-Errors/A-Errors.component.js +85 -0
- package/dist/src/base/A-Errors/A-Errors.component.js.map +1 -0
- package/dist/src/base/A-Errors/A-Errors.context.d.ts +27 -0
- package/dist/src/base/A-Errors/A-Errors.context.js +50 -0
- package/dist/src/base/A-Errors/A-Errors.context.js.map +1 -0
- package/dist/src/base/A-Errors/A-Errors.types.d.ts +5 -0
- package/dist/src/base/A-Errors/A-Errors.types.js +3 -0
- package/dist/src/base/A-Errors/A-Errors.types.js.map +1 -0
- package/dist/src/base/A-Logger/A-Logger.component.d.ts +28 -0
- package/dist/src/base/A-Logger/A-Logger.component.js +142 -0
- package/dist/src/base/A-Logger/A-Logger.component.js.map +1 -0
- package/dist/src/base/A-Logger/A-Logger.types.js +2 -0
- package/dist/src/base/A-Logger/A-Logger.types.js.map +1 -0
- package/dist/src/constants/A_ConceptLifecycle.constants.d.ts +0 -2
- package/dist/src/constants/A_ConceptLifecycle.constants.js +9 -10
- package/dist/src/constants/A_ConceptLifecycle.constants.js.map +1 -1
- package/dist/src/containers/A-Config/A-Config.container.js +1 -1
- package/dist/src/containers/A-Config/A-Config.namespace.d.ts +1 -1
- package/dist/src/containers/A-Config/A-Config.namespace.js +1 -1
- package/dist/src/containers/A-Config/A-Config.types.d.ts +1 -1
- package/dist/src/containers/A-Errors/A-Errors.container.js +1 -1
- package/dist/src/containers/A-Errors/A-Errors.namespace.d.ts +1 -1
- package/dist/src/containers/A-Errors/A-Errors.namespace.js +1 -1
- package/dist/src/containers/A-Errors/A-Errors.types.d.ts +1 -1
- package/dist/src/containers/A-Logger/A-Logger.container.js +1 -1
- package/dist/src/containers/A-Logger/A-Logger.namespace.d.ts +1 -1
- package/dist/src/containers/A-Logger/A-Logger.namespace.js +1 -1
- package/dist/src/containers/A-Logger/components/Logger.component.d.ts +1 -1
- package/dist/src/decorators/A-ConceptLifecycle/A-Run/A-Run.decorator.js.map +1 -1
- package/dist/src/decorators/A-Define/Feature/Feature.decorator.d.ts +16 -0
- package/dist/src/decorators/A-Define/Feature/Feature.decorator.js +36 -0
- package/dist/src/decorators/A-Define/Feature/Feature.decorator.js.map +1 -0
- package/dist/src/decorators/A-Define/Feature/Feature.decorator.types.d.ts +8 -0
- package/dist/src/decorators/A-Define/Feature/Feature.decorator.types.js +3 -0
- package/dist/src/decorators/A-Define/Feature/Feature.decorator.types.js.map +1 -0
- package/dist/src/decorators/A-Define/Lifecycle/Lifecycle.decorator.d.ts +14 -0
- package/dist/src/decorators/A-Define/Lifecycle/Lifecycle.decorator.js +24 -0
- package/dist/src/decorators/A-Define/Lifecycle/Lifecycle.decorator.js.map +1 -0
- package/dist/src/decorators/A-Define/Lifecycle/Lifecycle.decorator.types.d.ts +8 -0
- package/dist/src/decorators/A-Define/Lifecycle/Lifecycle.decorator.types.js +3 -0
- package/dist/src/decorators/A-Define/Lifecycle/Lifecycle.decorator.types.js.map +1 -0
- package/dist/src/decorators/A-Define/index.d.ts +7 -0
- package/dist/src/decorators/A-Define/index.js +10 -0
- package/dist/src/decorators/A-Define/index.js.map +1 -0
- package/dist/src/decorators/A-Extend/A-Extend.decorator.d.ts +18 -0
- package/dist/src/decorators/A-Extend/A-Extend.decorator.js +37 -0
- package/dist/src/decorators/A-Extend/A-Extend.decorator.js.map +1 -0
- package/dist/src/decorators/A-Extend/A-Extend.decorator.types.d.ts +21 -0
- package/dist/src/decorators/A-Extend/A-Extend.decorator.types.js +3 -0
- package/dist/src/decorators/A-Extend/A-Extend.decorator.types.js.map +1 -0
- package/dist/src/decorators/A-Feature/A-Feature-Define.decorator.d.ts +16 -0
- package/dist/src/decorators/A-Feature/A-Feature-Define.decorator.js +37 -0
- package/dist/src/decorators/A-Feature/A-Feature-Define.decorator.js.map +1 -0
- package/dist/src/decorators/A-Feature/A-Feature-Extend.decorator.d.ts +16 -0
- package/dist/src/decorators/A-Feature/A-Feature-Extend.decorator.js +42 -0
- package/dist/src/decorators/A-Feature/A-Feature-Extend.decorator.js.map +1 -0
- package/dist/src/decorators/A-Feature/A-Feature.decorator.types.d.ts +20 -0
- package/dist/src/decorators/A-Feature/A-Feature.decorator.types.js +1 -0
- package/dist/src/decorators/A-Inject/A-Inject.decorator.d.ts +12 -10
- package/dist/src/decorators/A-Inject/A-Inject.decorator.js +16 -26
- package/dist/src/decorators/A-Inject/A-Inject.decorator.js.map +1 -1
- package/dist/src/decorators/A-Inject/A-Inject.decorator.types.d.ts +4 -3
- package/dist/src/decorators/A-Stage/A-Stage.decorator.d.ts +12 -0
- package/dist/src/decorators/A-Stage/A-Stage.decorator.js +35 -0
- package/dist/src/decorators/A-Stage/A-Stage.decorator.js.map +1 -0
- package/dist/src/decorators/A-Stage/A-Stage.decorator.types.d.ts +2 -0
- package/dist/src/decorators/A-Stage/A-Stage.decorator.types.js +3 -0
- package/dist/src/decorators/A-Stage/A-Stage.decorator.types.js.map +1 -0
- package/dist/src/global/A-Channel/A-Channel.class.d.ts +18 -0
- package/dist/src/global/A-Channel/A-Channel.class.js +54 -0
- package/dist/src/global/A-Channel/A-Channel.class.js.map +1 -0
- package/dist/src/global/A-Channel/A-Channel.types.d.ts +35 -0
- package/dist/src/global/A-Channel/A-Channel.types.js +3 -0
- package/dist/src/global/A-Channel/A-Channel.types.js.map +1 -0
- package/dist/src/global/A-Component/A-Component.class.d.ts +1 -11
- package/dist/src/global/A-Component/A-Component.class.js +0 -7
- package/dist/src/global/A-Component/A-Component.class.js.map +1 -1
- package/dist/src/global/A-Component/A-Component.meta.d.ts +4 -0
- package/dist/src/global/A-Component/A-Component.meta.js +8 -0
- package/dist/src/global/A-Component/A-Component.meta.js.map +1 -0
- package/dist/src/global/A-Component/A-Component.types.d.ts +18 -0
- package/dist/src/global/A-Component/A-Component.types.js +10 -0
- package/dist/src/global/A-Component/A-Component.types.js.map +1 -0
- package/dist/src/global/A-Concept/A_Concept.class.d.ts +41 -17
- package/dist/src/global/A-Concept/A_Concept.class.js +120 -43
- package/dist/src/global/A-Concept/A_Concept.class.js.map +1 -1
- package/dist/src/global/A-Concept/A_Concept.meta.d.ts +3 -0
- package/dist/src/global/A-Concept/A_Concept.meta.js +9 -0
- package/dist/src/global/A-Concept/A_Concept.meta.js.map +1 -0
- package/dist/src/global/A-Concept/A_Concept.types.d.ts +31 -16
- package/dist/src/global/A-Concept/A_Concept.types.js +25 -0
- package/dist/src/global/A-Concept/A_Concept.types.js.map +1 -1
- package/dist/src/global/A-Container/A-Container.class.d.ts +72 -10
- package/dist/src/global/A-Container/A-Container.class.js +119 -9
- package/dist/src/global/A-Container/A-Container.class.js.map +1 -1
- package/dist/src/global/A-Container/A-Container.meta.d.ts +7 -0
- package/dist/src/global/A-Container/A-Container.meta.js +54 -0
- package/dist/src/global/A-Container/A-Container.meta.js.map +1 -0
- package/dist/src/global/A-Container/A-Container.types.d.ts +31 -0
- package/dist/src/global/A-Container/A-Container.types.js +9 -0
- package/dist/src/global/A-Container/A-Container.types.js.map +1 -0
- package/dist/src/global/A-Context/A-Context.class.d.ts +37 -54
- package/dist/src/global/A-Context/A-Context.class.js +129 -61
- package/dist/src/global/A-Context/A-Context.class.js.map +1 -1
- package/dist/src/global/A-Context/A-Context.types.d.ts +12 -0
- package/dist/src/global/A-Context/A-Context.types.js +1 -0
- package/dist/src/global/A-Context/A-ContextFragment.class.d.ts +12 -0
- package/dist/src/global/A-Context/A-ContextFragment.class.js +19 -0
- package/dist/src/global/A-Context/A-ContextFragment.class.js.map +1 -0
- package/dist/src/global/A-Dependency/A-DependencyReference.class.d.ts +0 -17
- package/dist/src/global/A-Dependency/A-DependencyReference.class.js +47 -65
- package/dist/src/global/A-Dependency/A-DependencyReference.class.js.map +1 -1
- package/dist/src/global/A-Dependency/A-DependencyReference.types.d.ts +0 -55
- package/dist/src/global/A-Dependency/A-DependencyReference.types.js +56 -1
- package/dist/src/global/A-Dependency/A-DependencyReference.types.js.map +1 -1
- package/dist/src/global/A-Entity/A-Entity.class.d.ts +57 -0
- package/dist/src/global/A-Entity/A-Entity.class.js +102 -0
- package/dist/src/global/A-Entity/A-Entity.class.js.map +1 -0
- package/dist/src/global/A-Entity/A-Entity.types.d.ts +13 -0
- package/dist/src/global/A-Entity/A-Entity.types.js +4 -0
- package/dist/src/global/A-Entity/A-Entity.types.js.map +1 -0
- package/dist/src/global/A-Feature/A-Feature.class.d.ts +44 -0
- package/dist/src/global/A-Feature/A-Feature.class.js +125 -0
- package/dist/src/global/A-Feature/A-Feature.class.js.map +1 -0
- package/dist/src/global/A-Feature/A-Feature.types.d.ts +17 -0
- package/dist/src/global/A-Feature/A-Feature.types.js +11 -0
- package/dist/src/global/A-Feature/A-Feature.types.js.map +1 -0
- package/dist/src/global/A-Fragment/A-Fragment.class.d.ts +38 -0
- package/dist/src/global/A-Fragment/A-Fragment.class.js +107 -0
- package/dist/src/global/A-Fragment/A-Fragment.class.js.map +1 -0
- package/dist/src/global/A-Fragment/A-Fragment.types.d.ts +3 -0
- package/dist/src/global/A-Fragment/A-Fragment.types.js +3 -0
- package/dist/src/global/A-Fragment/A-Fragment.types.js.map +1 -0
- package/dist/src/global/A-Meta/A-Meta.class.d.ts +16 -0
- package/dist/src/global/A-Meta/A-Meta.class.js +69 -0
- package/dist/src/global/A-Meta/A-Meta.class.js.map +1 -0
- package/dist/src/global/A-Meta/A-Meta.types.js +2 -0
- package/dist/src/global/A-Meta/A-Meta.types.js.map +1 -0
- package/dist/src/global/A-Scope/A-Scope.class.d.ts +51 -0
- package/dist/src/global/A-Scope/A-Scope.class.js +135 -0
- package/dist/src/global/A-Scope/A-Scope.class.js.map +1 -0
- package/dist/src/global/A-Scope/A-Scope.types.d.ts +32 -0
- package/dist/src/global/A-Scope/A-Scope.types.js +3 -0
- package/dist/src/global/A-Scope/A-Scope.types.js.map +1 -0
- package/dist/src/storage/A_Component.storage.d.ts +10 -0
- package/dist/src/storage/A_Component.storage.js +17 -0
- package/dist/src/storage/A_Component.storage.js.map +1 -0
- package/dist/src/storage/A_Concept.storage.js +2 -2
- package/dist/src/storage/A_Concept.storage.js.map +1 -1
- package/dist/src/storage/A_Container.storage.d.ts +8 -0
- package/dist/src/storage/A_Container.storage.js +17 -0
- package/dist/src/storage/A_Container.storage.js.map +1 -0
- package/dist/src/storage/A_Inject.storage.d.ts +9 -0
- package/dist/src/storage/A_Inject.storage.js +13 -0
- package/dist/src/storage/A_Inject.storage.js.map +1 -0
- package/examples/simple/components/A.component.ts +35 -0
- package/examples/simple/components/B.component.ts +46 -0
- package/examples/simple/concept.ts +49 -12
- package/examples/simple/containers/Main.container.ts +47 -0
- package/examples/simple/context/Fragment_A.context.ts +25 -0
- package/examples/simple/context/Fragment_B.context.ts +19 -0
- package/examples/simple-http-server/components/http-error-handler.component.ts +44 -0
- package/examples/simple-http-server/components/http-request-handler.component.ts +9 -0
- package/examples/simple-http-server/concept.ts +22 -21
- package/examples/simple-http-server/containers/http-server.container.ts +23 -38
- package/examples/simple-http-server/contexts/http-request.context.ts +59 -0
- package/examples/simple-http-server/contexts/http-server.context.types.ts +0 -108
- package/examples/simple-http-server/test.ts +290 -0
- package/index.ts +53 -22
- package/jest.config.ts +1 -3
- package/package.json +4 -7
- package/src/{containers → base}/A-Config/A-Config.container.ts +21 -20
- package/src/{containers/A-Config/A-Config.namespace.ts → base/A-Config/A-Config.context.ts} +12 -5
- package/src/{containers → base}/A-Config/A-Config.types.ts +15 -4
- package/src/{containers → base}/A-Config/components/ConfigReader.component.ts +7 -3
- package/src/{containers → base}/A-Config/components/ENVConfigReader.component.ts +1 -1
- package/src/{containers → base}/A-Config/components/FileConfigReader.component.ts +1 -1
- package/src/base/A-Errors/A-Errors.component.ts +102 -0
- package/src/{containers/A-Errors/A-Errors.namespace.ts → base/A-Errors/A-Errors.context.ts} +24 -39
- package/src/{containers → base}/A-Errors/A-Errors.types.ts +2 -2
- package/src/base/A-Logger/A-Logger.component.ts +169 -0
- package/src/base/A-Logger/A-Logger.types.ts +0 -0
- package/src/constants/A_ConceptLifecycle.constants.ts +9 -9
- package/src/decorators/A-Feature/A-Feature-Define.decorator.ts +57 -0
- package/src/decorators/A-Feature/A-Feature-Extend.decorator.ts +57 -0
- package/src/decorators/A-Feature/A-Feature.decorator.types.ts +56 -0
- package/src/decorators/A-Inject/A-Inject.decorator.ts +64 -53
- package/src/decorators/A-Inject/A-Inject.decorator.types.ts +31 -4
- package/src/decorators/A-Stage/A-Stage.decorator.ts +57 -0
- package/src/decorators/A-Stage/A-Stage.decorator.types.ts +23 -0
- package/src/global/A-Channel/A-Channel.class.ts +48 -0
- package/src/global/A-Channel/A-Channel.types.ts +60 -0
- package/src/global/A-Component/A-Component.class.ts +1 -29
- package/src/global/A-Component/A-Component.meta.ts +9 -0
- package/src/global/A-Component/A-Component.types.ts +40 -0
- package/src/global/A-Concept/A_Concept.class.ts +160 -66
- package/src/global/A-Concept/A_Concept.meta.ts +9 -0
- package/src/global/A-Concept/A_Concept.types.ts +45 -10
- package/src/global/A-Container/A-Container.class.ts +172 -22
- package/src/global/A-Container/A-Container.meta.ts +80 -0
- package/src/global/A-Container/A-Container.types.ts +40 -0
- package/src/global/A-Context/A-Context.class.ts +233 -130
- package/src/global/A-Context/A-Context.types.ts +15 -0
- package/src/global/A-Dependency/A-DependencyReference.class.ts +61 -61
- package/src/global/A-Dependency/A-DependencyReference.types.ts +56 -56
- package/src/global/A-Entity/A-Entity.class.ts +141 -0
- package/src/global/A-Entity/A-Entity.types.ts +17 -0
- package/src/global/A-Feature/A-Feature.class.ts +156 -0
- package/src/global/A-Feature/A-Feature.types.ts +20 -0
- package/src/global/{A-Namespace/A_Namespace.class.ts → A-Fragment/A-Fragment.class.ts} +24 -30
- package/src/global/A-Fragment/A-Fragment.types.ts +6 -0
- package/src/global/A-Meta/A-Meta.class.ts +96 -0
- package/src/global/A-Meta/A-Meta.types.ts +0 -0
- package/src/global/A-Scope/A-Scope.class.ts +211 -0
- package/src/global/A-Scope/A-Scope.types.ts +37 -0
- package/tsconfig.json +1 -3
- package/examples/sdk/concept.ts +0 -24
- package/examples/sdk/orders.api.ts +0 -21
- package/examples/sdk/users.api.ts +0 -21
- package/examples/simple-http-server/containers/http-server.controller.ts +0 -24
- package/examples/simple-http-server/containers/http-server.router.ts +0 -23
- package/examples/simple-http-server/contexts/http-server.namespace.ts +0 -36
- package/src/containers/A-Errors/A-Errors.container.ts +0 -14
- package/src/containers/A-Logger/A-Logger.container.ts +0 -22
- package/src/containers/A-Logger/A-Logger.namespace.ts +0 -26
- package/src/containers/A-Logger/components/Logger.component.ts +0 -169
- package/src/decorators/A-ConceptLifecycle/A-ConceptLifecycle.decorator.types.ts +0 -46
- package/src/decorators/A-ConceptLifecycle/A-Load/A-Load.decorator.ts +0 -55
- package/src/decorators/A-ConceptLifecycle/A-Load/A-Load.decorator.types.ts +0 -20
- package/src/decorators/A-ConceptLifecycle/A-Run/A-Run.decorator.ts +0 -62
- package/src/decorators/A-ConceptLifecycle/A-Run/A-Run.decorator.types.ts +0 -28
- package/src/decorators/A-ConceptLifecycle/index.ts +0 -9
- package/src/decorators/A-Feature/A-Feature.decorator.ts +0 -13
- package/src/decorators/A_Lazy.decorator.ts +0 -31
- package/src/global/A-Namespace/A_Namespace.types.ts +0 -24
- package/src/storage/A_Concept.storage.ts +0 -45
- /package/{src/containers/A-Logger/A-Logger.types.ts → dist/src/base/A-Logger/A-Logger.types.d.ts} +0 -0
- /package/{src/decorators/A_ConceptMethods.decorator.ts → dist/src/global/A-Meta/A-Meta.types.d.ts} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"A-Errors.component.js","sourceRoot":"","sources":["../../../../src/base/A-Errors/A-Errors.component.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,iFAAwE;AACxE,gGAAmF;AACnF,yDAA8C;AAC9C,4CAAyF;AACzF,uFAA8E;AAEvE,IAAM,eAAe,GAArB,MAAM,eAAe;IAExB,YACiC,KAAc,E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AAC,IAAI,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,UAAU,KAAK,CAAC,EAAE,EAAE,CAAC;gBAC3E,CAAC;gBAED,IAAI,YAAY,IAAI,KAAK;oBACrB,OAAO,IAAI,uBAAa,CAAC;wBACrB,aAAa,EAAE,KAAK;wBACpB,IAAI,EAAE,OAAO;wBACb,UAAU,EAAE,KAAK,CAAC,UAAU;wBAC5B,IAAI,EAAE,KAAK,CAAC,IAAI;wBAChB,OAAO,EAAE,KAAK,CAAC,OAAO;wBACtB,IAAI,EAAE,KAAK,CAAC,IAAI;wBAChB,WAAW,EAAE,KAAK,CAAC,WAAW;qBACjC,CAAC,CAAC;;oBAEH,OAAO,IAAI,iBAAO,CAAC;wBACf,aAAa,EAAE,KAAK;wBACpB,IAAI,EAAE,OAAO;wBACb,IAAI,EAAE,KAAK,CAAC,IAAI;wBAChB,OAAO,EAAE,KAAK,CAAC,OAAO;wBACtB,IAAI,EAAE,KAAK,CAAC,IAAI;wBAChB,WAAW,EAAE,KAAK,CAAC,WAAW;qBACjC,CAAC,CAAC;YAEX;gBACI,OAAO,IAAI,iBAAO,CAAC,KAAK,CAAC,CAAC;QAClC,CAAC;IACL,CAAC;CACJ,CAAA;AA/FY,0CAAe;0BAAf,eAAe;IAGnB,WAAA,IAAA,6BAAQ,EAAC,uBAAO,CAAC,CAAA;IACjB,WAAA,IAAA,6BAAQ,EAAC,2BAAQ,CAAC,CAAA;GAJd,eAAe,CA+F3B"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { A_CONSTANTS__ERROR_CODES, A_TYPES__Dictionary, A_TYPES__Error, A_TYPES__ServerError } from "@adaas/a-utils";
|
|
2
|
+
import { A_TYPES__A_ErrorsConstructor } from "./A-Errors.types";
|
|
3
|
+
import { A_Fragment } from "../../global/A-Fragment/A-Fragment.class";
|
|
4
|
+
export declare class A_Errors extends A_Fragment {
|
|
5
|
+
protected registeredErrors: Map<string, A_TYPES__Error | A_TYPES__ServerError>;
|
|
6
|
+
constructor(params: Partial<A_TYPES__A_ErrorsConstructor>);
|
|
7
|
+
/**
|
|
8
|
+
* This method adds a dictionary of errors to the registry.
|
|
9
|
+
*
|
|
10
|
+
* @param registry
|
|
11
|
+
*/
|
|
12
|
+
addRegistry(registry: A_TYPES__Dictionary<A_TYPES__Error> | A_TYPES__Error[]): A_Errors;
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* Adds an error to the registry
|
|
16
|
+
*
|
|
17
|
+
* @param error
|
|
18
|
+
*/
|
|
19
|
+
registerError(error: A_TYPES__Error): A_Errors;
|
|
20
|
+
/**
|
|
21
|
+
* This method returns an error object by its code.
|
|
22
|
+
*
|
|
23
|
+
* @param code
|
|
24
|
+
* @returns
|
|
25
|
+
*/
|
|
26
|
+
get(code: A_CONSTANTS__ERROR_CODES | string): A_TYPES__Error | A_TYPES__ServerError;
|
|
27
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.A_Errors = void 0;
|
|
4
|
+
const a_utils_1 = require("@adaas/a-utils");
|
|
5
|
+
const errors_constants_1 = require("@adaas/a-utils/dist/src/constants/errors.constants");
|
|
6
|
+
const A_Fragment_class_1 = require("../../global/A-Fragment/A-Fragment.class");
|
|
7
|
+
class A_Errors extends A_Fragment_class_1.A_Fragment {
|
|
8
|
+
constructor(params) {
|
|
9
|
+
super(Object.assign(Object.assign({}, params), { name: params.name || 'a-errors' }));
|
|
10
|
+
this.registeredErrors = new Map();
|
|
11
|
+
if (params.errors) {
|
|
12
|
+
this.addRegistry(params.errors);
|
|
13
|
+
}
|
|
14
|
+
this.addRegistry(errors_constants_1.A_CONSTANTS__DEFAULT_ERRORS);
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* This method adds a dictionary of errors to the registry.
|
|
18
|
+
*
|
|
19
|
+
* @param registry
|
|
20
|
+
*/
|
|
21
|
+
addRegistry(registry) {
|
|
22
|
+
const errors = Array.isArray(registry) ? registry : Object.values(registry);
|
|
23
|
+
errors.forEach(err => this.registerError(err));
|
|
24
|
+
return this;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* Adds an error to the registry
|
|
29
|
+
*
|
|
30
|
+
* @param error
|
|
31
|
+
*/
|
|
32
|
+
registerError(error) {
|
|
33
|
+
this.registeredErrors.set(error.code, error);
|
|
34
|
+
return this;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* This method returns an error object by its code.
|
|
38
|
+
*
|
|
39
|
+
* @param code
|
|
40
|
+
* @returns
|
|
41
|
+
*/
|
|
42
|
+
get(code) {
|
|
43
|
+
let template = this.registeredErrors.get(code);
|
|
44
|
+
if (!template)
|
|
45
|
+
template = this.registeredErrors.get(a_utils_1.A_CONSTANTS__ERROR_CODES.UNEXPECTED_ERROR);
|
|
46
|
+
return template;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
exports.A_Errors = A_Errors;
|
|
50
|
+
//# sourceMappingURL=A-Errors.context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"A-Errors.context.js","sourceRoot":"","sources":["../../../../src/base/A-Errors/A-Errors.context.ts"],"names":[],"mappings":";;;AAAA,4CAA6I;AAE7I,yFAAiG;AACjG,0FAAiF;AAGjF,MAAa,QAAS,SAAQ,6BAAU;IAIpC,YACI,MAA6C;QAG7C,KAAK,iCACE,MAAM,KACT,IAAI,EAAE,MAAM,CAAC,IAAI,IAAI,UAAU,IACjC,CAAC;QATG,qBAAgB,GAAuD,IAAI,GAAG,EAAE,CAAC;QAWvF,IAAI,MAAM,CAAC,MAAM,EAAE,CAAC;YAChB,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;QACpC,CAAC;QAED,IAAI,CAAC,WAAW,CAAC,8CAA2B,CAAC,CAAC;IAClD,CAAC;IAGD;;;;OAIG;IACH,WAAW,CACP,QAAgE;QAEhE,MAAM,MAAM,GAAG,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QAE5E,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,CAAC;QAE/C,OAAO,IAAI,CAAC;IAChB,CAAC;IAGD;;;;;OAKG;IACH,aAAa,CAAC,KAAqB;QAC/B,IAAI,CAAC,gBAAgB,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;QAE7C,OAAO,IAAI,CAAC;IAChB,CAAC;IAGD;;;;;OAKG;IACH,GAAG,CAAC,IAAuC;QACvC,IAAI,QAAQ,GAAG,IAAI,CAAC,gBAAgB,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QAE/C,IAAI,CAAC,QAAQ;YACT,QAAQ,GAAG,IAAI,CAAC,gBAAgB,CAAC,GAAG,CAAC,kCAAwB,CAAC,gBAAgB,CAAE,CAAC;QAErF,OAAO,QAAQ,CAAC;IACpB,CAAC;CAmBJ;AAlFD,4BAkFC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { A_TYPES__FragmentConstructor } from "../../global/A-Fragment/A-Fragment.types";
|
|
2
|
+
import { A_TYPES__Dictionary, A_TYPES__Error } from "@adaas/a-utils";
|
|
3
|
+
export type A_TYPES__A_ErrorsConstructor = {
|
|
4
|
+
errors: A_TYPES__Dictionary<A_TYPES__Error> | A_TYPES__Error[];
|
|
5
|
+
} & A_TYPES__FragmentConstructor;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"A-Errors.types.js","sourceRoot":"","sources":["../../../../src/base/A-Errors/A-Errors.types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { A_Error } from "@adaas/a-utils";
|
|
2
|
+
import { A_Config } from "../A-Config/A-Config.context";
|
|
3
|
+
import { A_Scope } from "../../global/A-Scope/A-Scope.class";
|
|
4
|
+
export declare class A_Logger {
|
|
5
|
+
protected scope: A_Scope;
|
|
6
|
+
protected config: A_Config;
|
|
7
|
+
constructor(scope: A_Scope, config: A_Config);
|
|
8
|
+
readonly colors: {
|
|
9
|
+
readonly green: "32";
|
|
10
|
+
readonly blue: "34";
|
|
11
|
+
readonly red: "31";
|
|
12
|
+
readonly yellow: "33";
|
|
13
|
+
readonly gray: "90";
|
|
14
|
+
readonly magenta: "35";
|
|
15
|
+
readonly cyan: "36";
|
|
16
|
+
readonly white: "37";
|
|
17
|
+
readonly pink: "95";
|
|
18
|
+
};
|
|
19
|
+
get scopeLength(): number;
|
|
20
|
+
compile(color: keyof typeof this.colors, ...args: any[]): Array<string>;
|
|
21
|
+
log(...args: any[]): void;
|
|
22
|
+
warning(...args: any[]): void;
|
|
23
|
+
error(...args: any[]): void;
|
|
24
|
+
protected log_A_Error(error: A_Error): void;
|
|
25
|
+
protected compile_A_Error(error: A_Error): string;
|
|
26
|
+
protected compile_Error(error: Error): string;
|
|
27
|
+
protected getTime(): string;
|
|
28
|
+
}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
9
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.A_Logger = void 0;
|
|
13
|
+
const A_Inject_decorator_1 = require("../../decorators/A-Inject/A-Inject.decorator");
|
|
14
|
+
const a_utils_1 = require("@adaas/a-utils");
|
|
15
|
+
const A_Config_context_1 = require("../A-Config/A-Config.context");
|
|
16
|
+
const A_Scope_class_1 = require("../../global/A-Scope/A-Scope.class");
|
|
17
|
+
let A_Logger = class A_Logger {
|
|
18
|
+
constructor(scope, config) {
|
|
19
|
+
this.scope = scope;
|
|
20
|
+
this.config = config;
|
|
21
|
+
this.colors = {
|
|
22
|
+
green: '32',
|
|
23
|
+
blue: '34',
|
|
24
|
+
red: '31',
|
|
25
|
+
yellow: '33',
|
|
26
|
+
gray: '90',
|
|
27
|
+
magenta: '35',
|
|
28
|
+
cyan: '36',
|
|
29
|
+
white: '37',
|
|
30
|
+
pink: '95',
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
get scopeLength() {
|
|
34
|
+
return this.scope.name.length;
|
|
35
|
+
}
|
|
36
|
+
compile(color, ...args) {
|
|
37
|
+
return [
|
|
38
|
+
`\x1b[${this.colors[color]}m[${this.scope.name}] |${this.getTime()}|`,
|
|
39
|
+
(args.length > 1
|
|
40
|
+
? '\n' + `${' '.repeat(this.scopeLength + 3)}|-------------------------------`
|
|
41
|
+
: ''),
|
|
42
|
+
...(args
|
|
43
|
+
.map((arg, i) => {
|
|
44
|
+
switch (true) {
|
|
45
|
+
case arg instanceof a_utils_1.A_Error:
|
|
46
|
+
return this.compile_A_Error(arg);
|
|
47
|
+
case arg instanceof Error:
|
|
48
|
+
return this.compile_Error(arg);
|
|
49
|
+
case typeof arg === 'object':
|
|
50
|
+
return JSON.stringify(arg, null, 2)
|
|
51
|
+
.replace(/\n/g, '\n' + `${' '.repeat(this.scopeLength + 3)}| `);
|
|
52
|
+
default:
|
|
53
|
+
return String(((i > 0 || args.length > 1) ? '\n' : '')
|
|
54
|
+
+ arg)
|
|
55
|
+
.replace(/\n/g, '\n' + `${' '.repeat(this.scopeLength + 3)}| `);
|
|
56
|
+
}
|
|
57
|
+
})),
|
|
58
|
+
(args.length > 1
|
|
59
|
+
? '\n' + `${' '.repeat(this.scopeLength + 3)}|-------------------------------\x1b[0m`
|
|
60
|
+
: '\x1b[0m')
|
|
61
|
+
];
|
|
62
|
+
}
|
|
63
|
+
log(...args) {
|
|
64
|
+
if (!this.config.get('CONFIG_VERBOSE'))
|
|
65
|
+
return;
|
|
66
|
+
console.log(...this.compile('blue', ...args));
|
|
67
|
+
}
|
|
68
|
+
warning(...args) {
|
|
69
|
+
if (!this.config.get('CONFIG_VERBOSE'))
|
|
70
|
+
return;
|
|
71
|
+
console.log(...this.compile('yellow', ...args));
|
|
72
|
+
}
|
|
73
|
+
error(...args) {
|
|
74
|
+
if (this.config.get('CONFIG_IGNORE_ERRORS'))
|
|
75
|
+
return;
|
|
76
|
+
return console.log(...this.compile('red', ...args));
|
|
77
|
+
}
|
|
78
|
+
log_A_Error(error) {
|
|
79
|
+
var _a, _b;
|
|
80
|
+
const time = this.getTime();
|
|
81
|
+
console.log(`\x1b[31m[${this.scope.name}] |${time}| ERROR ${error.code}
|
|
82
|
+
${' '.repeat(this.scopeLength + 3)}| ${error.message}
|
|
83
|
+
${' '.repeat(this.scopeLength + 3)}| ${error.description}
|
|
84
|
+
${' '.repeat(this.scopeLength + 3)}|-------------------------------
|
|
85
|
+
${' '.repeat(this.scopeLength + 3)}| ${((_a = error.stack) === null || _a === void 0 ? void 0 : _a.split('\n').map((line, index) => index === 0 ? line : `${' '.repeat(this.scopeLength + 3)}| ${line}`).join('\n')) || 'No stack trace'}
|
|
86
|
+
${' '.repeat(this.scopeLength + 3)}|-------------------------------
|
|
87
|
+
\x1b[0m`
|
|
88
|
+
+ (error.originalError ? `\x1b[31m${' '.repeat(this.scopeLength + 3)}| Wrapped From ${error.originalError.message}
|
|
89
|
+
${' '.repeat(this.scopeLength + 3)}|-------------------------------
|
|
90
|
+
${' '.repeat(this.scopeLength + 3)}| ${((_b = error.originalError.stack) === null || _b === void 0 ? void 0 : _b.split('\n').map((line, index) => index === 0 ? line : `${' '.repeat(this.scopeLength + 3)}| ${line}`).join('\n')) || 'No stack trace'}
|
|
91
|
+
${' '.repeat(this.scopeLength + 3)}|-------------------------------
|
|
92
|
+
\x1b[0m` : '')
|
|
93
|
+
+ (error.link ? `\x1b[31m${' '.repeat(this.scopeLength + 3)}| Read in docs: ${error.link}
|
|
94
|
+
${' '.repeat(this.scopeLength + 3)}|-------------------------------
|
|
95
|
+
\x1b[0m` : ''));
|
|
96
|
+
}
|
|
97
|
+
compile_A_Error(error) {
|
|
98
|
+
var _a, _b;
|
|
99
|
+
const time = this.getTime();
|
|
100
|
+
return '\n' +
|
|
101
|
+
`${' '.repeat(this.scopeLength + 3)}|-------------------------------` +
|
|
102
|
+
'\n' +
|
|
103
|
+
`${' '.repeat(this.scopeLength + 3)}| Error: | ${error.code}
|
|
104
|
+
${' '.repeat(this.scopeLength + 3)}|-------------------------------
|
|
105
|
+
${' '.repeat(this.scopeLength + 3)}|${' '.repeat(10)}| ${error.message}
|
|
106
|
+
${' '.repeat(this.scopeLength + 3)}|${' '.repeat(10)}| ${error.description}
|
|
107
|
+
${' '.repeat(this.scopeLength + 3)}|-------------------------------
|
|
108
|
+
${' '.repeat(this.scopeLength + 3)}| ${((_a = error.stack) === null || _a === void 0 ? void 0 : _a.split('\n').map((line, index) => index === 0 ? line : `${' '.repeat(this.scopeLength + 3)}| ${line}`).join('\n')) || 'No stack trace'}
|
|
109
|
+
${' '.repeat(this.scopeLength + 3)}|-------------------------------`
|
|
110
|
+
+
|
|
111
|
+
(error.originalError ? `${' '.repeat(this.scopeLength + 3)}| Wrapped From ${error.originalError.message}
|
|
112
|
+
${' '.repeat(this.scopeLength + 3)}|-------------------------------
|
|
113
|
+
${' '.repeat(this.scopeLength + 3)}| ${((_b = error.originalError.stack) === null || _b === void 0 ? void 0 : _b.split('\n').map((line, index) => index === 0 ? line : `${' '.repeat(this.scopeLength + 3)}| ${line}`).join('\n')) || 'No stack trace'}
|
|
114
|
+
${' '.repeat(this.scopeLength + 3)}|-------------------------------` : '')
|
|
115
|
+
+
|
|
116
|
+
(error.link ? `${' '.repeat(this.scopeLength + 3)}| Read in docs: ${error.link}
|
|
117
|
+
${' '.repeat(this.scopeLength + 3)}|-------------------------------` : '');
|
|
118
|
+
}
|
|
119
|
+
compile_Error(error) {
|
|
120
|
+
var _a;
|
|
121
|
+
return JSON.stringify({
|
|
122
|
+
name: error.name,
|
|
123
|
+
message: error.message,
|
|
124
|
+
stack: (_a = error.stack) === null || _a === void 0 ? void 0 : _a.split('\n').map((line, index) => index === 0 ? line : `${' '.repeat(this.scopeLength + 3)}| ${line}`).join('\n')
|
|
125
|
+
}, null, 2)
|
|
126
|
+
.replace(/\n/g, '\n' + `${' '.repeat(this.scopeLength + 3)}| `)
|
|
127
|
+
.replace(/\\n/g, '\n');
|
|
128
|
+
}
|
|
129
|
+
getTime() {
|
|
130
|
+
const now = new Date();
|
|
131
|
+
const minutes = String(now.getMinutes()).padStart(2, '0');
|
|
132
|
+
const seconds = String(now.getSeconds()).padStart(2, '0');
|
|
133
|
+
const milliseconds = String(now.getMilliseconds()).padStart(4, '0');
|
|
134
|
+
return `${minutes}:${seconds}:${milliseconds}`;
|
|
135
|
+
}
|
|
136
|
+
};
|
|
137
|
+
exports.A_Logger = A_Logger;
|
|
138
|
+
exports.A_Logger = A_Logger = __decorate([
|
|
139
|
+
__param(0, (0, A_Inject_decorator_1.A_Inject)(A_Scope_class_1.A_Scope)),
|
|
140
|
+
__param(1, (0, A_Inject_decorator_1.A_Inject)(A_Config_context_1.A_Config))
|
|
141
|
+
], A_Logger);
|
|
142
|
+
//# sourceMappingURL=A-Logger.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"A-Logger.component.js","sourceRoot":"","sources":["../../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,CAAC,GAAG,CAAC,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;QAC1D,MAAM,OAAO,GAAG,MAAM,CAAC,GAAG,CAAC,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;QAC1D,MAAM,YAAY,GAAG,MAAM,CAAC,GAAG,CAAC,eAAe,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;QACpE,OAAO,GAAG,OAAO,IAAI,OAAO,IAAI,YAAY,EAAE,CAAC;IACnD,CAAC;CACJ,CAAA;AAjKY,4BAAQ;mBAAR,QAAQ;IAGZ,WAAA,IAAA,6BAAQ,EAAC,uBAAO,CAAC,CAAA;IACjB,WAAA,IAAA,6BAAQ,EAAC,2BAAQ,CAAC,CAAA;GAJd,QAAQ,CAiKpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"A-Logger.types.js","sourceRoot":"","sources":["../../../../src/base/A-Logger/A-Logger.types.ts"],"names":[],"mappings":""}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
};
|
|
2
|
+
// import { A_TYPES__ConceptLifecycle_MethodDeclarationConfig } from "../decorators/A-ConceptLifecycle/A-ConceptLifecycle.decorator.types";
|
|
3
|
+
// export const A_CONSTANTS__DEFAULT_CONCEPT_LIFECYCLE_METHOD_DECLARATION_CONFIG: A_TYPES__ConceptLifecycle_MethodDeclarationConfig = {
|
|
4
|
+
// name: '',
|
|
5
|
+
// behavior: 'sync',
|
|
6
|
+
// type: 'extension',
|
|
7
|
+
// after: [],
|
|
8
|
+
// before: [],
|
|
9
|
+
// override: []
|
|
10
|
+
// }
|
|
12
11
|
//# sourceMappingURL=A_ConceptLifecycle.constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"A_ConceptLifecycle.constants.js","sourceRoot":"","sources":["../../../src/constants/A_ConceptLifecycle.constants.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"A_ConceptLifecycle.constants.js","sourceRoot":"","sources":["../../../src/constants/A_ConceptLifecycle.constants.ts"],"names":[],"mappings":";AAAA,2IAA2I;AAI3I,uIAAuI;AACvI,gBAAgB;AAChB,wBAAwB;AACxB,yBAAyB;AACzB,iBAAiB;AACjB,kBAAkB;AAClB,mBAAmB;AACnB,KAAK"}
|
|
@@ -17,7 +17,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
exports.A_ConfigInitializer = void 0;
|
|
19
19
|
const A_Container_class_1 = require("../../global/A-Container/A-Container.class");
|
|
20
|
-
const A_Load_decorator_1 = require("
|
|
20
|
+
const A_Load_decorator_1 = require("@adaas/a-concept/decorators/A-ConceptLifecycle/A-Load/A-Load.decorator");
|
|
21
21
|
const a_utils_1 = require("@adaas/a-utils");
|
|
22
22
|
const FileConfigReader_component_1 = require("./components/FileConfigReader.component");
|
|
23
23
|
const ENVConfigReader_component_1 = require("./components/ENVConfigReader.component");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A_Namespace } from "
|
|
1
|
+
import { A_Namespace } from "@adaas/a-concept/global/A-Namespace/A_Namespace.class";
|
|
2
2
|
import { A_TYPES__ConfigContainerConstructor } from "./A-Config.types";
|
|
3
3
|
export declare class A_Config<T extends string = any> extends A_Namespace<A_TYPES__ConfigContainerConstructor<T>> {
|
|
4
4
|
private VARIABLES;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.A_Config = void 0;
|
|
4
|
-
const A_Namespace_class_1 = require("
|
|
4
|
+
const A_Namespace_class_1 = require("@adaas/a-concept/global/A-Namespace/A_Namespace.class");
|
|
5
5
|
class A_Config extends A_Namespace_class_1.A_Namespace {
|
|
6
6
|
constructor(config) {
|
|
7
7
|
super(config);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A_TYPES__NamespaceConstructor } from "
|
|
1
|
+
import { A_TYPES__NamespaceConstructor } from "@adaas/a-concept/global/A-Namespace/A_Namespace.types";
|
|
2
2
|
export type A_TYPES__ConfigContainerConstructor<T extends string> = {
|
|
3
3
|
/**
|
|
4
4
|
* The name of the Config Container
|
|
@@ -17,7 +17,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
exports.A_ErrorsInitializer = void 0;
|
|
19
19
|
const A_Container_class_1 = require("../../global/A-Container/A-Container.class");
|
|
20
|
-
const A_Load_decorator_1 = require("
|
|
20
|
+
const A_Load_decorator_1 = require("@adaas/a-concept/decorators/A-ConceptLifecycle/A-Load/A-Load.decorator");
|
|
21
21
|
class A_ErrorsInitializer extends A_Container_class_1.A_Container {
|
|
22
22
|
init() {
|
|
23
23
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A_Namespace } from "
|
|
1
|
+
import { A_Namespace } from "@adaas/a-concept/global/A-Namespace/A_Namespace.class";
|
|
2
2
|
import { A_CONSTANTS__ERROR_CODES, A_Error, A_ServerError, A_TYPES__Dictionary, A_TYPES__Error, A_TYPES__ServerError } from "@adaas/a-utils";
|
|
3
3
|
import { A_TYPES__A_ErrorsConstructor } from "./A-Errors.types";
|
|
4
4
|
export declare class A_Errors extends A_Namespace<Partial<A_TYPES__A_ErrorsConstructor>> {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.A_Errors = void 0;
|
|
4
|
-
const A_Namespace_class_1 = require("
|
|
4
|
+
const A_Namespace_class_1 = require("@adaas/a-concept/global/A-Namespace/A_Namespace.class");
|
|
5
5
|
const a_utils_1 = require("@adaas/a-utils");
|
|
6
6
|
const errors_constants_1 = require("@adaas/a-utils/dist/src/constants/errors.constants");
|
|
7
7
|
class A_Errors extends A_Namespace_class_1.A_Namespace {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A_TYPES__NamespaceConstructor } from "
|
|
1
|
+
import { A_TYPES__NamespaceConstructor } from "@adaas/a-concept/global/A-Namespace/A_Namespace.types";
|
|
2
2
|
import { A_TYPES__Dictionary, A_TYPES__Error } from "@adaas/a-utils";
|
|
3
3
|
export type A_TYPES__A_ErrorsConstructor = {
|
|
4
4
|
errors: A_TYPES__Dictionary<A_TYPES__Error> | A_TYPES__Error[];
|
|
@@ -20,7 +20,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
20
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
21
|
exports.A_Logger = void 0;
|
|
22
22
|
const A_Container_class_1 = require("../../global/A-Container/A-Container.class");
|
|
23
|
-
const A_Load_decorator_1 = require("
|
|
23
|
+
const A_Load_decorator_1 = require("@adaas/a-concept/decorators/A-ConceptLifecycle/A-Load/A-Load.decorator");
|
|
24
24
|
const Logger_component_1 = require("./components/Logger.component");
|
|
25
25
|
const A_Inject_decorator_1 = require("../../decorators/A-Inject/A-Inject.decorator");
|
|
26
26
|
const A_Context_class_1 = require("../../global/A-Context/A-Context.class");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A_Namespace } from "
|
|
1
|
+
import { A_Namespace } from "@adaas/a-concept/global/A-Namespace/A_Namespace.class";
|
|
2
2
|
import { Logger } from "./components/Logger.component";
|
|
3
3
|
export declare class A_LoggerContext extends A_Namespace {
|
|
4
4
|
Logger: Logger;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.A_LoggerContext = void 0;
|
|
4
|
-
const A_Namespace_class_1 = require("
|
|
4
|
+
const A_Namespace_class_1 = require("@adaas/a-concept/global/A-Namespace/A_Namespace.class");
|
|
5
5
|
class A_LoggerContext extends A_Namespace_class_1.A_Namespace {
|
|
6
6
|
constructor() {
|
|
7
7
|
super();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A_Component } from "../../../global/A-Component/A-Component.class";
|
|
2
|
-
import { A_Namespace } from "
|
|
2
|
+
import { A_Namespace } from "@adaas/a-concept/global/A-Namespace/A_Namespace.class";
|
|
3
3
|
import { A_Error } from "@adaas/a-utils";
|
|
4
4
|
import { A_Config } from "src/containers/A-Config/A-Config.namespace";
|
|
5
5
|
export declare class Logger extends A_Component {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"A-Run.decorator.js","sourceRoot":"","sources":["../../../../../src/decorators/A-ConceptLifecycle/A-Run/A-Run.decorator.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"A-Run.decorator.js","sourceRoot":"","sources":["../../../../../src/decorators/A-ConceptLifecycle/A-Run/A-Run.decorator.ts"],"names":[],"mappings":";;AAsBA,sBAqCC;AA1DD,qEAA6I;AAC7I,4CAAgD;AAChD,0GAA2I;AAK3I;;;;;;;;;;;;;GAaG;AACH,SAAgB,KAAK,CACjB,SAAiD,EAAE;IAGnD,OAAO,UACH,MAAmB,EACnB,WAAmB,EACnB,UAA6C;QAE7C,MAAM,cAAc,GAAW,2EAAuD,CAAC;QAIvF,MAAM,WAAW,GAAG,uDAAmC,CAAC,GAAG,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,IAAI,GAAG,EAAE,CAAC;QAC7F,MAAM,WAAW,GAAG,uDAAmC,CAAC,GAAG,CAAC,MAAM,CAAC,cAAc,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,IAAI,IAAI,GAAG,EAAE,CAAC;QAEpH,MAAM,qBAAqB,GAAG,WAAW,CAAC,GAAG,CAAC,cAAc,CAAC,IAAI,EAAE,CAAC;QACpE,MAAM,YAAY,GAAqD,WAAW,CAAC,GAAG,CAAC,cAAc,CAAC,IAAI,CAAC,GAAG,qBAAqB,CAAC,CAAC;QAErI;;;WAGG;QACH,MAAM,kBAAkB,GAAG,YAAY;aAClC,MAAM,CACH,CAAC,KAAgD,EAAE,EAAE,CAAC,KAAK,CAAC,OAAO,KAAK,WAAW,CACtF,CAAC;QAEN,kBAAkB,CAAC,IAAI,CAAC;YACpB,OAAO,EAAE,WAAW;YACpB,MAAM,EAAE,wBAAc,CAAC,iBAAiB,CAAC,MAAM,EAAE,+FAAgE,CAAC;SACrH,CAAC,CAAC;QAEH,WAAW,CAAC,GAAG,CAAC,cAAc,EAAE,kBAAkB,CAAC,CAAC;QAEpD,uDAAmC,CAAC,GAAG,CAAC,MAAM,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;IAC7E,CAAC,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { A_TYPES__A_FeatureDecoratorConfig, A_TYPES__A_FeatureDecoratorDescriptor } from "./Feature.decorator.types";
|
|
2
|
+
import { A_Container } from "../../../global/A-Container/A-Container.class";
|
|
3
|
+
/**
|
|
4
|
+
* A-Feature decorator
|
|
5
|
+
*
|
|
6
|
+
* This decorator allows to define a custom Feature stage for the Container.
|
|
7
|
+
* These stages are executed in a container-specific order and can be extended by components that are injected into the container.
|
|
8
|
+
* This approach allows to create a flexible and extendable architecture for the application.
|
|
9
|
+
*
|
|
10
|
+
* The main difference between the A-Feature and A-Feature decorators is that A-Feature methods can be inherited and overridden by child classes.
|
|
11
|
+
*
|
|
12
|
+
*
|
|
13
|
+
* @param params
|
|
14
|
+
* @returns
|
|
15
|
+
*/
|
|
16
|
+
export declare function A_Feature(config?: Partial<A_TYPES__A_FeatureDecoratorConfig>): (target: A_Container, propertyKey: string, descriptor: A_TYPES__A_FeatureDecoratorDescriptor) => void;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.A_Feature = A_Feature;
|
|
4
|
+
const A_Container_storage_1 = require("../../../storage/A_Container.storage");
|
|
5
|
+
/**
|
|
6
|
+
* A-Feature decorator
|
|
7
|
+
*
|
|
8
|
+
* This decorator allows to define a custom Feature stage for the Container.
|
|
9
|
+
* These stages are executed in a container-specific order and can be extended by components that are injected into the container.
|
|
10
|
+
* This approach allows to create a flexible and extendable architecture for the application.
|
|
11
|
+
*
|
|
12
|
+
* The main difference between the A-Feature and A-Feature decorators is that A-Feature methods can be inherited and overridden by child classes.
|
|
13
|
+
*
|
|
14
|
+
*
|
|
15
|
+
* @param params
|
|
16
|
+
* @returns
|
|
17
|
+
*/
|
|
18
|
+
function A_Feature(config = {}) {
|
|
19
|
+
return function (target, propertyKey, descriptor) {
|
|
20
|
+
const existedMeta = A_Container_storage_1.A_CONTAINER_Storage.get(target.constructor) || new Map();
|
|
21
|
+
const inheritMeta = A_Container_storage_1.A_CONTAINER_Storage.get(Object.getPrototypeOf(target.constructor)) || new Map();
|
|
22
|
+
const inheritedFeature = inheritMeta.get(A_Container_storage_1.A_CONTAINER_STORAGE__Definition__Feature) || new Map();
|
|
23
|
+
const feature = existedMeta.get(A_Container_storage_1.A_CONTAINER_STORAGE__Definition__Feature) || new Map(inheritedFeature);
|
|
24
|
+
feature.set(propertyKey, {
|
|
25
|
+
handler: propertyKey,
|
|
26
|
+
config: Object.assign({ name: propertyKey }, config)
|
|
27
|
+
});
|
|
28
|
+
// targetInstructions.push({
|
|
29
|
+
// handler: propertyKey,
|
|
30
|
+
// config: A_CommonHelper.deepCloneAndMerge(config, A_CONSTANTS__DEFAULT_CONCEPT_Feature_METHOD_DECLARATION_CONFIG)
|
|
31
|
+
// });
|
|
32
|
+
existedMeta.set(A_Container_storage_1.A_CONTAINER_STORAGE__Definition__Feature, feature);
|
|
33
|
+
A_Container_storage_1.A_CONTAINER_Storage.set(target.constructor, existedMeta);
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
//# sourceMappingURL=Feature.decorator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Feature.decorator.js","sourceRoot":"","sources":["../../../../../src/decorators/A-Define/Feature/Feature.decorator.ts"],"names":[],"mappings":";;AAyBA,8BAiCC;AAnDD,sFAA6H;AAK7H;;;;;;;;;;;;GAYG;AACH,SAAgB,SAAS,CACrB,SAAqD,EAAE;IAEvD,OAAO,UACH,MAAmB,EACnB,WAAmB,EACnB,UAAiD;QAEjD,MAAM,WAAW,GAAG,yCAAmB,CAAC,GAAG,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,IAAI,GAAG,EAAE,CAAC;QAC7E,MAAM,WAAW,GAAG,yCAAmB,CAAC,GAAG,CAAC,MAAM,CAAC,cAAc,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,IAAI,IAAI,GAAG,EAAE,CAAC;QAGpG,MAAM,gBAAgB,GAAG,WAAW,CAAC,GAAG,CAAC,8DAAwC,CAAC,IAAI,IAAI,GAAG,EAAE,CAAC;QAChG,MAAM,OAAO,GAA+D,WAAW,CAAC,GAAG,CAAC,8DAAwC,CAAC,IAAI,IAAI,GAAG,CAAC,gBAAgB,CAAC,CAAA;QAGlK,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE;YACrB,OAAO,EAAE,WAAW;YACpB,MAAM,kBACF,IAAI,EAAE,WAAW,IACd,MAAM,CACZ;SACJ,CAAC,CAAC;QAEH,4BAA4B;QAC5B,4BAA4B;QAC5B,uHAAuH;QACvH,MAAM;QAGN,WAAW,CAAC,GAAG,CAAC,8DAAwC,EAAE,OAAO,CAAC,CAAC;QACnE,yCAAmB,CAAC,GAAG,CAAC,MAAM,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;IAC7D,CAAC,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type A_TYPES__A_FeatureDecoratorDescriptor = TypedPropertyDescriptor<() => any> | TypedPropertyDescriptor<(...args: any[]) => any> | TypedPropertyDescriptor<(...args: any[]) => Promise<any>> | TypedPropertyDescriptor<() => Promise<any>>;
|
|
2
|
+
export type A_TYPES__A_FeatureDecoratorConfig = {
|
|
3
|
+
name: string;
|
|
4
|
+
};
|
|
5
|
+
export type A_TYPES__A_FeatureDecoratorStorageInstruction = {
|
|
6
|
+
handler: string;
|
|
7
|
+
config: A_TYPES__A_FeatureDecoratorConfig;
|
|
8
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Feature.decorator.types.js","sourceRoot":"","sources":["../../../../../src/decorators/A-Define/Feature/Feature.decorator.types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A-Lifecycle decorator
|
|
3
|
+
*
|
|
4
|
+
* This decorator allows to define a custom lifecycle stage for the Container.
|
|
5
|
+
* These stages are executed in a container-specific order and can be extended by components that are injected into the container.
|
|
6
|
+
* This approach allows to create a flexible and extendable architecture for the application.
|
|
7
|
+
*
|
|
8
|
+
* The main difference between the A-Lifecycle and A-Feature decorators is that A-Lifecycle methods can be inherited and overridden by child classes.
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* @param params
|
|
12
|
+
* @returns
|
|
13
|
+
*/
|
|
14
|
+
export declare function A_Lifecycle(): any;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.A_Lifecycle = A_Lifecycle;
|
|
4
|
+
const A_Container_storage_1 = require("../../../storage/A_Container.storage");
|
|
5
|
+
function A_Lifecycle(config = {}) {
|
|
6
|
+
return function (target, propertyKey, descriptor) {
|
|
7
|
+
const existedMeta = A_Container_storage_1.A_CONTAINER_Storage.get(target.constructor) || new Map();
|
|
8
|
+
const inheritMeta = A_Container_storage_1.A_CONTAINER_Storage.get(Object.getPrototypeOf(target.constructor)) || new Map();
|
|
9
|
+
const inheritedLifecycle = inheritMeta.get(A_Container_storage_1.A_CONTAINER_STORAGE__Definition__Lifecycle) || new Map();
|
|
10
|
+
const lifecycle = existedMeta.get(A_Container_storage_1.A_CONTAINER_STORAGE__Definition__Lifecycle) || new Map(inheritedLifecycle);
|
|
11
|
+
lifecycle.set(propertyKey, {
|
|
12
|
+
handler: propertyKey,
|
|
13
|
+
config: Object.assign(Object.assign({}, config), { name: `${target.constructor.name}.${propertyKey || config.name}` })
|
|
14
|
+
// config: A_CommonHelper.deepCloneAndMerge(config, A_CONSTANTS__DEFAULT_CONCEPT_LIFECYCLE_METHOD_DECLARATION_CONFIG)
|
|
15
|
+
});
|
|
16
|
+
// targetInstructions.push({
|
|
17
|
+
// handler: propertyKey,
|
|
18
|
+
// config: A_CommonHelper.deepCloneAndMerge(config, A_CONSTANTS__DEFAULT_CONCEPT_LIFECYCLE_METHOD_DECLARATION_CONFIG)
|
|
19
|
+
// });
|
|
20
|
+
existedMeta.set(A_Container_storage_1.A_CONTAINER_STORAGE__Definition__Lifecycle, lifecycle);
|
|
21
|
+
A_Container_storage_1.A_CONTAINER_Storage.set(target.constructor, existedMeta);
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=Lifecycle.decorator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Lifecycle.decorator.js","sourceRoot":"","sources":["../../../../../src/decorators/A-Define/Lifecycle/Lifecycle.decorator.ts"],"names":[],"mappings":";;AA2BA,kCAkCC;AAtDD,sFAA+H;AAoB/H,SAAgB,WAAW,CACvB,SAAuD,EAAE;IAEzD,OAAO,UACH,MAAmB,EACnB,WAAmB,EACnB,UAAmD;QAEnD,MAAM,WAAW,GAAG,yCAAmB,CAAC,GAAG,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,IAAI,GAAG,EAAE,CAAC;QAC7E,MAAM,WAAW,GAAG,yCAAmB,CAAC,GAAG,CAAC,MAAM,CAAC,cAAc,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,IAAI,IAAI,GAAG,EAAE,CAAC;QAEpG,MAAM,kBAAkB,GAAG,WAAW,CAAC,GAAG,CAAC,gEAA0C,CAAC,IAAI,IAAI,GAAG,EAAE,CAAC;QACpG,MAAM,SAAS,GAAiE,WAAW,CAAC,GAAG,CAAC,gEAA0C,CAAC,IAAI,IAAI,GAAG,CAAC,kBAAkB,CAAC,CAAA;QAG1K,SAAS,CAAC,GAAG,CAAC,WAAW,EAAE;YACvB,OAAO,EAAE,WAAW;YACpB,MAAM,kCACC,MAAM,KACT,IAAI,EAAE,GAAG,MAAM,CAAC,WAAW,CAAC,IAAI,IAAI,WAAW,IAAI,MAAM,CAAC,IAAI,EAAE,GACnE;YAED,qHAAqH;SACxH,CAAC,CAAC;QAEH,4BAA4B;QAC5B,4BAA4B;QAC5B,yHAAyH;QACzH,MAAM;QAGN,WAAW,CAAC,GAAG,CAAC,gEAA0C,EAAE,SAAS,CAAC,CAAC;QACvE,yCAAmB,CAAC,GAAG,CAAC,MAAM,CAAC,WAAW,EAAE,WAAW,CAAC,CAAC;IAC7D,CAAC,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export type A_TYPES__A_LifecycleDecoratorDescriptor = TypedPropertyDescriptor<() => any> | TypedPropertyDescriptor<(...args: any[]) => any> | TypedPropertyDescriptor<(...args: any[]) => Promise<any>> | TypedPropertyDescriptor<() => Promise<any>>;
|
|
2
|
+
export type A_TYPES__A_LifecycleDecoratorConfig = {
|
|
3
|
+
name: string;
|
|
4
|
+
};
|
|
5
|
+
export type A_TYPES__A_LifecycleDecoratorStorageInstruction = {
|
|
6
|
+
handler: string;
|
|
7
|
+
config: A_TYPES__A_LifecycleDecoratorConfig;
|
|
8
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Lifecycle.decorator.types.js","sourceRoot":"","sources":["../../../../../src/decorators/A-Define/Lifecycle/Lifecycle.decorator.types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.A_Define = void 0;
|
|
4
|
+
const Feature_decorator_1 = require("./Feature/Feature.decorator");
|
|
5
|
+
const Lifecycle_decorator_1 = require("./Lifecycle/Lifecycle.decorator");
|
|
6
|
+
exports.A_Define = {
|
|
7
|
+
Lifecycle: Lifecycle_decorator_1.A_Lifecycle,
|
|
8
|
+
Feature: Feature_decorator_1.A_Feature
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=index.js.map
|