@adaas/a-concept 0.0.63 → 0.1.1
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/index.d.ts +24 -32
- package/dist/index.js +35 -52
- package/dist/index.js.map +1 -1
- package/dist/src/constants/env.constants.d.ts +15 -8
- package/dist/src/constants/env.constants.js +17 -10
- package/dist/src/constants/env.constants.js.map +1 -1
- package/dist/src/global/A-Abstraction/A-Abstraction-Extend.decorator.d.ts +23 -0
- package/dist/src/global/A-Abstraction/A-Abstraction-Extend.decorator.js +69 -0
- package/dist/src/global/A-Abstraction/A-Abstraction-Extend.decorator.js.map +1 -0
- package/dist/src/global/A-Abstraction/A-Abstraction.class.d.ts +47 -20
- package/dist/src/global/A-Abstraction/A-Abstraction.class.js +55 -48
- package/dist/src/global/A-Abstraction/A-Abstraction.class.js.map +1 -1
- package/dist/src/global/A-Abstraction/A-Abstraction.error.d.ts +7 -0
- package/dist/src/global/A-Abstraction/A-Abstraction.error.js +12 -0
- package/dist/src/global/A-Abstraction/A-Abstraction.error.js.map +1 -0
- package/dist/src/global/A-Abstraction/A-Abstraction.types.d.ts +27 -12
- package/dist/src/global/A-Abstraction/A-Abstraction.types.js +0 -8
- package/dist/src/global/A-Abstraction/A-Abstraction.types.js.map +1 -1
- package/dist/src/global/A-Caller/A_Caller.class.d.ts +33 -0
- package/dist/src/global/A-Caller/A_Caller.class.js +44 -0
- package/dist/src/global/A-Caller/A_Caller.class.js.map +1 -0
- package/dist/src/global/A-Caller/A_Caller.error.d.ts +7 -0
- package/dist/src/global/A-Caller/A_Caller.error.js +12 -0
- package/dist/src/global/A-Caller/A_Caller.error.js.map +1 -0
- package/dist/src/global/A-Caller/A_Caller.types.d.ts +18 -0
- package/dist/src/{base/A-Errors/A-Errors.types.js → global/A-Caller/A_Caller.types.js} +1 -1
- package/dist/src/global/A-Caller/A_Caller.types.js.map +1 -0
- package/dist/src/global/A-Component/A-Component.class.d.ts +20 -3
- package/dist/src/global/A-Component/A-Component.class.js +35 -19
- package/dist/src/global/A-Component/A-Component.class.js.map +1 -1
- package/dist/src/global/A-Component/A-Component.constants.d.ts +6 -0
- package/dist/src/global/A-Component/A-Component.constants.js +11 -0
- package/dist/src/global/A-Component/A-Component.constants.js.map +1 -0
- package/dist/src/global/A-Component/A-Component.meta.d.ts +4 -4
- package/dist/src/global/A-Component/A-Component.meta.js +6 -8
- package/dist/src/global/A-Component/A-Component.meta.js.map +1 -1
- package/dist/src/global/A-Component/A-Component.types.d.ts +40 -22
- package/dist/src/global/A-Component/A-Component.types.js +1 -8
- package/dist/src/global/A-Component/A-Component.types.js.map +1 -1
- package/dist/src/global/A-Concept/A-Concept.class.d.ts +153 -0
- package/dist/src/global/A-Concept/A-Concept.class.js +260 -0
- package/dist/src/global/A-Concept/A-Concept.class.js.map +1 -0
- package/dist/src/global/A-Concept/A-Concept.constants.d.ts +33 -0
- package/dist/src/global/A-Concept/A-Concept.constants.js +39 -0
- package/dist/src/global/A-Concept/A-Concept.constants.js.map +1 -0
- package/dist/src/global/A-Concept/{A_Concept.meta.js → A-Concept.meta.js} +1 -2
- package/dist/src/global/A-Concept/A-Concept.meta.js.map +1 -0
- package/dist/src/global/A-Concept/A-Concept.types.d.ts +83 -0
- package/dist/src/global/{A-Channel/A-Channel.types.js → A-Concept/A-Concept.types.js} +1 -1
- package/dist/src/global/A-Concept/A-Concept.types.js.map +1 -0
- package/dist/src/global/A-Container/A-Container.class.d.ts +31 -35
- package/dist/src/global/A-Container/A-Container.class.js +34 -55
- package/dist/src/global/A-Container/A-Container.class.js.map +1 -1
- package/dist/src/global/A-Container/A-Container.constants.d.ts +5 -0
- package/dist/src/global/A-Container/A-Container.constants.js +10 -0
- package/dist/src/global/A-Container/A-Container.constants.js.map +1 -0
- package/dist/src/global/A-Container/A-Container.meta.d.ts +6 -6
- package/dist/src/global/A-Container/A-Container.meta.js +5 -6
- package/dist/src/global/A-Container/A-Container.meta.js.map +1 -1
- package/dist/src/global/A-Container/A-Container.types.d.ts +31 -25
- package/dist/src/global/A-Container/A-Container.types.js +1 -7
- package/dist/src/global/A-Container/A-Container.types.js.map +1 -1
- package/dist/src/global/A-Context/A-Context.class.d.ts +302 -76
- package/dist/src/global/A-Context/A-Context.class.js +436 -244
- package/dist/src/global/A-Context/A-Context.class.js.map +1 -1
- package/dist/src/global/A-Context/A-Context.error.d.ts +20 -0
- package/dist/src/global/A-Context/A-Context.error.js +25 -0
- package/dist/src/global/A-Context/A-Context.error.js.map +1 -0
- package/dist/src/global/A-Context/A-Context.types.d.ts +5 -0
- package/dist/src/global/A-Context/A-Context.types.js +1 -0
- package/dist/src/global/A-Entity/A-Entity.class.d.ts +18 -18
- package/dist/src/global/A-Entity/A-Entity.class.js +36 -43
- package/dist/src/global/A-Entity/A-Entity.class.js.map +1 -1
- package/dist/src/global/A-Entity/A-Entity.constants.d.ts +11 -0
- package/dist/src/global/A-Entity/A-Entity.constants.js +17 -0
- package/dist/src/global/A-Entity/A-Entity.constants.js.map +1 -0
- package/dist/src/global/A-Entity/A-Entity.error.d.ts +7 -0
- package/dist/src/global/A-Entity/A-Entity.error.js +12 -0
- package/dist/src/global/A-Entity/A-Entity.error.js.map +1 -0
- package/dist/src/global/A-Entity/A-Entity.meta.d.ts +2 -2
- package/dist/src/global/A-Entity/A-Entity.meta.js +2 -2
- package/dist/src/global/A-Entity/A-Entity.meta.js.map +1 -1
- package/dist/src/global/A-Entity/A-Entity.types.d.ts +24 -29
- package/dist/src/global/A-Entity/A-Entity.types.js +1 -13
- package/dist/src/global/A-Entity/A-Entity.types.js.map +1 -1
- package/dist/src/global/A-Error/A_Error.class.d.ts +219 -0
- package/dist/src/global/A-Error/A_Error.class.js +267 -0
- package/dist/src/global/A-Error/A_Error.class.js.map +1 -0
- package/dist/src/global/A-Error/A_Error.constants.d.ts +5 -0
- package/dist/src/global/A-Error/A_Error.constants.js +9 -0
- package/dist/src/global/A-Error/A_Error.constants.js.map +1 -0
- package/dist/src/global/A-Error/A_Error.types.d.ts +89 -0
- package/dist/src/{decorators/A-Inject/A-Inject.decorator.types.js → global/A-Error/A_Error.types.js} +1 -1
- package/dist/src/global/A-Error/A_Error.types.js.map +1 -0
- package/dist/src/global/A-Feature/A-Feature-Define.decorator.d.ts +15 -0
- package/dist/src/{decorators → global}/A-Feature/A-Feature-Define.decorator.js +21 -27
- package/dist/src/global/A-Feature/A-Feature-Define.decorator.js.map +1 -0
- package/dist/src/{decorators → global}/A-Feature/A-Feature-Extend.decorator.d.ts +26 -3
- package/dist/src/global/A-Feature/A-Feature-Extend.decorator.js +97 -0
- package/dist/src/global/A-Feature/A-Feature-Extend.decorator.js.map +1 -0
- package/dist/src/global/A-Feature/A-Feature.class.d.ts +120 -30
- package/dist/src/global/A-Feature/A-Feature.class.js +205 -73
- package/dist/src/global/A-Feature/A-Feature.class.js.map +1 -1
- package/dist/src/global/A-Feature/A-Feature.error.d.ts +25 -0
- package/dist/src/global/A-Feature/A-Feature.error.js +33 -0
- package/dist/src/global/A-Feature/A-Feature.error.js.map +1 -0
- package/dist/src/global/A-Feature/A-Feature.types.d.ts +241 -18
- package/dist/src/global/A-Feature/A-Feature.types.js +16 -22
- package/dist/src/global/A-Feature/A-Feature.types.js.map +1 -1
- package/dist/src/global/A-Fragment/A-Fragment.class.d.ts +19 -27
- package/dist/src/global/A-Fragment/A-Fragment.class.js +21 -91
- package/dist/src/global/A-Fragment/A-Fragment.class.js.map +1 -1
- package/dist/src/global/A-Fragment/A-Fragment.types.d.ts +19 -1
- package/dist/src/global/A-Fragment/A-Fragment.types.js +3 -0
- package/dist/src/global/A-Fragment/A-Fragment.types.js.map +1 -1
- package/dist/src/global/A-Inject/A-Inject.decorator.d.ts +80 -0
- package/dist/src/global/A-Inject/A-Inject.decorator.js +49 -0
- package/dist/src/global/A-Inject/A-Inject.decorator.js.map +1 -0
- package/dist/src/global/A-Inject/A-Inject.error.d.ts +5 -0
- package/dist/src/global/A-Inject/A-Inject.error.js +10 -0
- package/dist/src/global/A-Inject/A-Inject.error.js.map +1 -0
- package/dist/src/global/A-Inject/A-Inject.types.d.ts +42 -0
- package/dist/src/{decorators/A-Entity/A-Entity.decorator.types.js → global/A-Inject/A-Inject.types.js} +1 -1
- package/dist/src/global/A-Inject/A-Inject.types.js.map +1 -0
- package/dist/src/global/A-Meta/A-Meta.class.d.ts +1 -1
- package/dist/src/global/A-Meta/A-Meta.types.d.ts +14 -0
- package/dist/src/global/A-Meta/A-Meta.types.js +1 -0
- package/dist/src/global/A-Scope/A-Scope.class.d.ts +406 -63
- package/dist/src/global/A-Scope/A-Scope.class.js +533 -287
- package/dist/src/global/A-Scope/A-Scope.class.js.map +1 -1
- package/dist/src/global/A-Scope/A-Scope.error.d.ts +6 -0
- package/dist/src/global/A-Scope/A-Scope.error.js +11 -0
- package/dist/src/global/A-Scope/A-Scope.error.js.map +1 -0
- package/dist/src/global/A-Scope/A-Scope.types.d.ts +50 -13
- package/dist/src/global/A-Stage/A-Stage.class.d.ts +31 -23
- package/dist/src/global/A-Stage/A-Stage.class.js +100 -68
- package/dist/src/global/A-Stage/A-Stage.class.js.map +1 -1
- package/dist/src/global/A-Stage/A-Stage.error.d.ts +2 -1
- package/dist/src/global/A-Stage/A-Stage.error.js +5 -2
- package/dist/src/global/A-Stage/A-Stage.error.js.map +1 -1
- package/dist/src/global/A-Stage/A-Stage.types.d.ts +4 -16
- package/dist/src/global/A-Stage/A-Stage.types.js +0 -16
- package/dist/src/global/A-Stage/A-Stage.types.js.map +1 -1
- package/dist/src/global/ASEID/ASEID.class.d.ts +130 -0
- package/dist/src/global/ASEID/ASEID.class.js +167 -0
- package/dist/src/global/ASEID/ASEID.class.js.map +1 -0
- package/dist/src/global/ASEID/ASEID.constants.js +2 -0
- package/dist/src/global/ASEID/ASEID.constants.js.map +1 -0
- package/dist/src/global/ASEID/ASEID.error.d.ts +5 -0
- package/dist/src/global/ASEID/ASEID.error.js +10 -0
- package/dist/src/global/ASEID/ASEID.error.js.map +1 -0
- package/dist/src/global/ASEID/ASEID.types.d.ts +65 -0
- package/dist/src/global/ASEID/ASEID.types.js +5 -0
- package/dist/src/global/ASEID/ASEID.types.js.map +1 -0
- package/dist/src/helpers/A_Common.helper.d.ts +28 -0
- package/dist/src/helpers/A_Common.helper.js +170 -0
- package/dist/src/helpers/A_Common.helper.js.map +1 -0
- package/dist/src/helpers/A_Formatter.helper.d.ts +35 -0
- package/dist/src/helpers/A_Formatter.helper.js +62 -0
- package/dist/src/helpers/A_Formatter.helper.js.map +1 -0
- package/dist/src/helpers/A_Identity.helper.d.ts +29 -0
- package/dist/src/helpers/A_Identity.helper.js +43 -0
- package/dist/src/helpers/A_Identity.helper.js.map +1 -0
- package/dist/src/helpers/{StepsManager.class.d.ts → A_StepsManager.class.d.ts} +4 -2
- package/dist/src/helpers/{StepsManager.class.js → A_StepsManager.class.js} +10 -5
- package/dist/src/helpers/A_StepsManager.class.js.map +1 -0
- package/dist/src/helpers/A_TypeGuards.helper.d.ts +205 -0
- package/dist/src/helpers/A_TypeGuards.helper.js +288 -0
- package/dist/src/helpers/A_TypeGuards.helper.js.map +1 -0
- package/dist/src/types/A_Common.types.d.ts +36 -0
- package/dist/src/types/A_Common.types.js +3 -0
- package/dist/src/types/A_Common.types.js.map +1 -0
- package/index.ts +27 -51
- package/jest.config.ts +1 -0
- package/package.json +1 -2
- package/src/constants/env.constants.ts +18 -11
- package/src/global/A-Abstraction/A-Abstraction-Extend.decorator.ts +103 -0
- package/src/global/A-Abstraction/A-Abstraction.class.ts +71 -65
- package/src/global/A-Abstraction/A-Abstraction.error.ts +9 -0
- package/src/global/A-Abstraction/A-Abstraction.types.ts +52 -13
- package/src/global/A-Caller/A_Caller.class.ts +61 -0
- package/src/global/A-Caller/A_Caller.error.ts +10 -0
- package/src/global/A-Caller/A_Caller.types.ts +25 -0
- package/src/global/A-Component/A-Component.class.ts +26 -15
- package/src/global/A-Component/A-Component.constants.ts +9 -0
- package/src/global/A-Component/A-Component.meta.ts +6 -16
- package/src/global/A-Component/A-Component.types.ts +53 -28
- package/src/global/A-Concept/A-Concept.class.ts +316 -0
- package/src/global/A-Concept/A-Concept.constants.ts +36 -0
- package/src/global/A-Concept/A-Concept.meta.ts +17 -0
- package/src/global/A-Concept/A-Concept.types.ts +100 -0
- package/src/global/A-Container/A-Container.class.ts +42 -83
- package/src/global/A-Container/A-Container.constants.ts +5 -0
- package/src/global/A-Container/A-Container.meta.ts +7 -11
- package/src/global/A-Container/A-Container.types.ts +38 -34
- package/src/global/A-Context/A-Context.class.ts +648 -412
- package/src/global/A-Context/A-Context.error.ts +44 -0
- package/src/global/A-Context/A-Context.types.ts +14 -0
- package/src/global/A-Entity/A-Entity.class.ts +39 -52
- package/src/global/A-Entity/A-Entity.constants.ts +12 -0
- package/src/global/A-Entity/A-Entity.error.ts +12 -0
- package/src/global/A-Entity/A-Entity.meta.ts +4 -4
- package/src/global/A-Entity/A-Entity.types.ts +31 -36
- package/src/global/A-Error/A_Error.class.ts +408 -0
- package/src/global/A-Error/A_Error.constants.ts +11 -0
- package/src/global/A-Error/A_Error.types.ts +96 -0
- package/src/{decorators → global}/A-Feature/A-Feature-Define.decorator.ts +31 -37
- package/src/global/A-Feature/A-Feature-Extend.decorator.ts +187 -0
- package/src/global/A-Feature/A-Feature.class.ts +279 -122
- package/src/global/A-Feature/A-Feature.error.ts +33 -0
- package/src/global/A-Feature/A-Feature.types.ts +278 -40
- package/src/global/A-Fragment/A-Fragment.class.ts +29 -100
- package/src/global/A-Fragment/A-Fragment.types.ts +25 -3
- package/src/global/A-Inject/A-Inject.decorator.ts +167 -0
- package/src/global/A-Inject/A-Inject.error.ts +8 -0
- package/src/global/A-Inject/A-Inject.types.ts +75 -0
- package/src/global/A-Meta/A-Meta.class.ts +1 -1
- package/src/global/A-Meta/A-Meta.types.ts +21 -0
- package/src/global/A-Scope/A-Scope.class.ts +841 -443
- package/src/global/A-Scope/A-Scope.error.ts +13 -0
- package/src/global/A-Scope/A-Scope.types.ts +65 -26
- package/src/global/A-Stage/A-Stage.class.ts +142 -80
- package/src/global/A-Stage/A-Stage.error.ts +4 -2
- package/src/global/A-Stage/A-Stage.types.ts +4 -25
- package/src/global/ASEID/ASEID.class.ts +275 -0
- package/src/global/ASEID/ASEID.error.ts +12 -0
- package/src/global/ASEID/ASEID.types.ts +79 -0
- package/src/helpers/A_Common.helper.ts +204 -0
- package/src/helpers/A_Formatter.helper.ts +58 -0
- package/src/helpers/A_Identity.helper.ts +53 -0
- package/src/helpers/{StepsManager.class.ts → A_StepsManager.class.ts} +19 -3
- package/src/helpers/A_TypeGuards.helper.ts +318 -0
- package/src/types/A_Common.types.ts +79 -0
- package/tests/A-Common.test.ts +117 -0
- package/tests/A-Component.test.ts +11 -6
- package/tests/A-Concept.test.ts +19 -22
- package/tests/A-Entity.test.ts +24 -24
- package/tests/A-Error.test.ts +129 -0
- package/tests/A-Feature.test.ts +34 -25
- package/tests/A-Scope.test.ts +50 -22
- package/tests/ASEID.test.ts +74 -0
- package/tsconfig.build.json +2 -1
- package/tsconfig.json +3 -2
- package/dist/src/base/A-Config/A-Config.container.d.ts +0 -9
- package/dist/src/base/A-Config/A-Config.container.js +0 -69
- package/dist/src/base/A-Config/A-Config.container.js.map +0 -1
- package/dist/src/base/A-Config/A-Config.context.d.ts +0 -30
- package/dist/src/base/A-Config/A-Config.context.js +0 -60
- package/dist/src/base/A-Config/A-Config.context.js.map +0 -1
- package/dist/src/base/A-Config/A-Config.types.d.ts +0 -20
- package/dist/src/base/A-Config/A-Config.types.js +0 -7
- package/dist/src/base/A-Config/A-Config.types.js.map +0 -1
- package/dist/src/base/A-Config/components/ConfigReader.component.d.ts +0 -29
- package/dist/src/base/A-Config/components/ConfigReader.component.js +0 -84
- package/dist/src/base/A-Config/components/ConfigReader.component.js.map +0 -1
- package/dist/src/base/A-Config/components/ENVConfigReader.component.d.ts +0 -10
- package/dist/src/base/A-Config/components/ENVConfigReader.component.js +0 -37
- package/dist/src/base/A-Config/components/ENVConfigReader.component.js.map +0 -1
- package/dist/src/base/A-Config/components/FileConfigReader.component.d.ts +0 -11
- package/dist/src/base/A-Config/components/FileConfigReader.component.js +0 -48
- package/dist/src/base/A-Config/components/FileConfigReader.component.js.map +0 -1
- package/dist/src/base/A-Errors/A-Error.entity.d.ts +0 -3
- package/dist/src/base/A-Errors/A-Error.entity.js +0 -8
- package/dist/src/base/A-Errors/A-Error.entity.js.map +0 -1
- package/dist/src/base/A-Errors/A-Errors.component.d.ts +0 -19
- package/dist/src/base/A-Errors/A-Errors.component.js +0 -87
- package/dist/src/base/A-Errors/A-Errors.component.js.map +0 -1
- package/dist/src/base/A-Errors/A-Errors.context.d.ts +0 -27
- package/dist/src/base/A-Errors/A-Errors.context.js +0 -50
- package/dist/src/base/A-Errors/A-Errors.context.js.map +0 -1
- package/dist/src/base/A-Errors/A-Errors.types.d.ts +0 -5
- package/dist/src/base/A-Errors/A-Errors.types.js.map +0 -1
- package/dist/src/base/A-Logger/A-Logger.component.d.ts +0 -31
- package/dist/src/base/A-Logger/A-Logger.component.js +0 -155
- package/dist/src/base/A-Logger/A-Logger.component.js.map +0 -1
- package/dist/src/base/A-Logger/A-Logger.types.js +0 -2
- package/dist/src/base/A-Logger/A-Logger.types.js.map +0 -1
- package/dist/src/base/A-Polyfill/A-Polyfill.component.d.ts +0 -5
- package/dist/src/base/A-Polyfill/A-Polyfill.component.js +0 -34
- package/dist/src/base/A-Polyfill/A-Polyfill.component.js.map +0 -1
- package/dist/src/decorators/A-Abstraction/A-Abstraction-Extend.decorator.d.ts +0 -14
- package/dist/src/decorators/A-Abstraction/A-Abstraction-Extend.decorator.js +0 -53
- package/dist/src/decorators/A-Abstraction/A-Abstraction-Extend.decorator.js.map +0 -1
- package/dist/src/decorators/A-Abstraction/A-Abstraction.decorator.types.d.ts +0 -2
- package/dist/src/decorators/A-Abstraction/A-Abstraction.decorator.types.js +0 -3
- package/dist/src/decorators/A-Abstraction/A-Abstraction.decorator.types.js.map +0 -1
- package/dist/src/decorators/A-Connect/A-Connect.decorator.d.ts +0 -19
- package/dist/src/decorators/A-Connect/A-Connect.decorator.js +0 -31
- package/dist/src/decorators/A-Connect/A-Connect.decorator.js.map +0 -1
- package/dist/src/decorators/A-Connect/A-Connect.decorator.types.d.ts +0 -1
- package/dist/src/decorators/A-Connect/A-Connect.decorator.types.js +0 -3
- package/dist/src/decorators/A-Connect/A-Connect.decorator.types.js.map +0 -1
- package/dist/src/decorators/A-Entity/A-Entity-List.decorator.d.ts +0 -1
- package/dist/src/decorators/A-Entity/A-Entity-List.decorator.js +0 -8
- package/dist/src/decorators/A-Entity/A-Entity-List.decorator.js.map +0 -1
- package/dist/src/decorators/A-Entity/A-Entity.decorator.types.d.ts +0 -14
- package/dist/src/decorators/A-Entity/A-Entity.decorator.types.js.map +0 -1
- package/dist/src/decorators/A-Feature/A-Feature-Define.decorator.d.ts +0 -19
- package/dist/src/decorators/A-Feature/A-Feature-Define.decorator.js.map +0 -1
- package/dist/src/decorators/A-Feature/A-Feature-Extend.decorator.js +0 -81
- package/dist/src/decorators/A-Feature/A-Feature-Extend.decorator.js.map +0 -1
- package/dist/src/decorators/A-Feature/A-Feature.decorator.types.d.ts +0 -96
- package/dist/src/decorators/A-Feature/A-Feature.decorator.types.js +0 -3
- package/dist/src/decorators/A-Feature/A-Feature.decorator.types.js.map +0 -1
- package/dist/src/decorators/A-Inject/A-Inject.decorator.d.ts +0 -30
- package/dist/src/decorators/A-Inject/A-Inject.decorator.js +0 -47
- package/dist/src/decorators/A-Inject/A-Inject.decorator.js.map +0 -1
- package/dist/src/decorators/A-Inject/A-Inject.decorator.types.d.ts +0 -48
- package/dist/src/decorators/A-Inject/A-Inject.decorator.types.js.map +0 -1
- package/dist/src/global/A-Channel/A-Channel.class.d.ts +0 -16
- package/dist/src/global/A-Channel/A-Channel.class.js +0 -59
- package/dist/src/global/A-Channel/A-Channel.class.js.map +0 -1
- package/dist/src/global/A-Channel/A-Channel.types.d.ts +0 -68
- package/dist/src/global/A-Channel/A-Channel.types.js.map +0 -1
- package/dist/src/global/A-Command/A-Command.class.d.ts +0 -187
- package/dist/src/global/A-Command/A-Command.class.js +0 -349
- package/dist/src/global/A-Command/A-Command.class.js.map +0 -1
- package/dist/src/global/A-Command/A-Command.constants.d.ts +0 -17
- package/dist/src/global/A-Command/A-Command.constants.js +0 -22
- package/dist/src/global/A-Command/A-Command.constants.js.map +0 -1
- package/dist/src/global/A-Command/A-Command.meta.d.ts +0 -11
- package/dist/src/global/A-Command/A-Command.meta.js +0 -18
- package/dist/src/global/A-Command/A-Command.meta.js.map +0 -1
- package/dist/src/global/A-Command/A-Command.types.d.ts +0 -43
- package/dist/src/global/A-Command/A-Command.types.js +0 -10
- package/dist/src/global/A-Command/A-Command.types.js.map +0 -1
- package/dist/src/global/A-Command/context/A_Command.context.d.ts +0 -64
- package/dist/src/global/A-Command/context/A_Command.context.js +0 -85
- package/dist/src/global/A-Command/context/A_Command.context.js.map +0 -1
- package/dist/src/global/A-Concept/A_Concept.class.d.ts +0 -104
- package/dist/src/global/A-Concept/A_Concept.class.js +0 -217
- package/dist/src/global/A-Concept/A_Concept.class.js.map +0 -1
- package/dist/src/global/A-Concept/A_Concept.meta.js.map +0 -1
- package/dist/src/global/A-Concept/A_Concept.types.d.ts +0 -103
- package/dist/src/global/A-Concept/A_Concept.types.js +0 -28
- package/dist/src/global/A-Concept/A_Concept.types.js.map +0 -1
- package/dist/src/global/A-Feature/A-FeatureCaller.class.d.ts +0 -22
- package/dist/src/global/A-Feature/A-FeatureCaller.class.js +0 -26
- package/dist/src/global/A-Feature/A-FeatureCaller.class.js.map +0 -1
- package/dist/src/helpers/StepsManager.class.js.map +0 -1
- package/dist/src/types/A_Module.types.d.ts +0 -17
- package/dist/src/types/A_Module.types.js +0 -22
- package/dist/src/types/A_Module.types.js.map +0 -1
- package/examples/entity/concept.ts +0 -68
- package/examples/entity/entities/Task.entity.ts +0 -110
- package/examples/entity/entities/User.entity.ts +0 -62
- package/examples/fe-be/channels/Test.channel.ts +0 -27
- package/examples/fe-be/components/BE-Controller.component.ts +0 -20
- package/examples/fe-be/components/FE.component.ts +0 -13
- package/examples/fe-be/containers/ServerApp.container.ts +0 -8
- package/examples/fe-be/containers/WebApp.container.ts +0 -13
- package/examples/multi-container/channels/Direct.channel.ts +0 -39
- package/examples/multi-container/concept.ts +0 -0
- package/examples/multi-container/containers/Command.container.ts +0 -41
- package/examples/multi-container/containers/Schedule.container.ts +0 -52
- package/examples/simple/components/A.component.ts +0 -71
- package/examples/simple/components/B.component.ts +0 -68
- package/examples/simple/concept.ts +0 -87
- package/examples/simple/containers/Main.container.ts +0 -88
- package/examples/simple/containers/Secondary.container.ts +0 -26
- package/examples/simple/context/Fragment_A.context.ts +0 -25
- package/examples/simple/context/Fragment_B.context.ts +0 -19
- package/examples/simple/entities/EntityA.entity.ts +0 -32
- package/examples/simple-http-server/components/http-error-handler.component.ts +0 -47
- package/examples/simple-http-server/components/http-request-handler.component.ts +0 -13
- package/examples/simple-http-server/concept.ts +0 -35
- package/examples/simple-http-server/containers/http-server.container.ts +0 -57
- package/examples/simple-http-server/contexts/http-request.context.ts +0 -59
- package/examples/simple-http-server/contexts/http-server.context.types.ts +0 -0
- package/examples/simple-http-server/controllers/orders.controller.ts +0 -20
- package/examples/simple-http-server/controllers/users.controller.ts +0 -104
- package/examples/simple-http-server/test.ts +0 -290
- package/src/base/A-Config/A-Config.container.ts +0 -68
- package/src/base/A-Config/A-Config.context.ts +0 -114
- package/src/base/A-Config/A-Config.types.ts +0 -28
- package/src/base/A-Config/components/ConfigReader.component.ts +0 -68
- package/src/base/A-Config/components/ENVConfigReader.component.ts +0 -31
- package/src/base/A-Config/components/FileConfigReader.component.ts +0 -41
- package/src/base/A-Errors/A-Error.entity.ts +0 -10
- package/src/base/A-Errors/A-Errors.component.ts +0 -103
- package/src/base/A-Errors/A-Errors.context.ts +0 -90
- package/src/base/A-Errors/A-Errors.types.ts +0 -6
- package/src/base/A-Logger/A-Logger.component.ts +0 -192
- package/src/base/A-Logger/A-Logger.types.ts +0 -0
- package/src/base/A-Polyfill/A-Polyfill.component.ts +0 -18
- package/src/decorators/A-Abstraction/A-Abstraction-Extend.decorator.ts +0 -81
- package/src/decorators/A-Abstraction/A-Abstraction.decorator.types.ts +0 -21
- package/src/decorators/A-Connect/A-Connect.decorator.ts +0 -71
- package/src/decorators/A-Connect/A-Connect.decorator.types.ts +0 -6
- package/src/decorators/A-Entity/A-Entity-List.decorator.ts +0 -12
- package/src/decorators/A-Entity/A-Entity.decorator.types.ts +0 -18
- package/src/decorators/A-Feature/A-Feature-Extend.decorator.ts +0 -151
- package/src/decorators/A-Feature/A-Feature.decorator.types.ts +0 -142
- package/src/decorators/A-Inject/A-Inject.decorator.ts +0 -119
- package/src/decorators/A-Inject/A-Inject.decorator.types.ts +0 -85
- package/src/global/A-Channel/A-Channel.class.ts +0 -111
- package/src/global/A-Channel/A-Channel.types.ts +0 -114
- package/src/global/A-Command/A-Command.class.ts +0 -419
- package/src/global/A-Command/A-Command.constants.ts +0 -27
- package/src/global/A-Command/A-Command.meta.ts +0 -22
- package/src/global/A-Command/A-Command.types.ts +0 -73
- package/src/global/A-Command/context/A_Command.context.ts +0 -114
- package/src/global/A-Concept/A_Concept.class.ts +0 -298
- package/src/global/A-Concept/A_Concept.meta.ts +0 -32
- package/src/global/A-Concept/A_Concept.types.ts +0 -143
- package/src/global/A-Feature/A-FeatureCaller.class.ts +0 -38
- package/src/types/A_Module.types.ts +0 -23
- package/tests/A-Command.test.ts +0 -133
- package/tests/A-Config.test.ts +0 -172
- /package/dist/src/global/A-Concept/{A_Concept.meta.d.ts → A-Concept.meta.d.ts} +0 -0
- /package/dist/src/{base/A-Logger/A-Logger.types.d.ts → global/ASEID/ASEID.constants.d.ts} +0 -0
- /package/{examples/fe-be/concept.ts → src/global/ASEID/ASEID.constants.ts} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"A-Entity.decorator.types.js","sourceRoot":"","sources":["../../../../src/decorators/A-Entity/A-Entity.decorator.types.ts"],"names":[],"mappings":""}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { A_TYPES__A_FeatureDecoratorConfig, A_TYPES__A_FeatureDecoratorDescriptor } from "./A-Feature.decorator.types";
|
|
2
|
-
import { A_Entity } from "../../global/A-Entity/A-Entity.class";
|
|
3
|
-
import { A_Component } from "../../global/A-Component/A-Component.class";
|
|
4
|
-
import { A_Container } from "../../global/A-Container/A-Container.class";
|
|
5
|
-
import { A_Command } from "../../global/A-Command/A-Command.class";
|
|
6
|
-
/**
|
|
7
|
-
* A-Feature decorator
|
|
8
|
-
*
|
|
9
|
-
* This decorator allows to define a custom lifecycle stage for the Container.
|
|
10
|
-
* These stages are executed in a container-specific order and can be extended by components that are injected into the container.
|
|
11
|
-
* This approach allows to create a flexible and extendable architecture for the application.
|
|
12
|
-
*
|
|
13
|
-
* The main difference between the A-Feature and A-Feature decorators is that A-Feature methods can be inherited and overridden by child classes.
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* @param params
|
|
17
|
-
* @returns
|
|
18
|
-
*/
|
|
19
|
-
export declare function A_Feature_Define(config?: Partial<A_TYPES__A_FeatureDecoratorConfig>): (target: A_Container | A_Entity | A_Component | A_Command, propertyKey: string, descriptor: A_TYPES__A_FeatureDecoratorDescriptor) => A_TYPES__A_FeatureDecoratorDescriptor;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"A-Feature-Define.decorator.js","sourceRoot":"","sources":["../../../../src/decorators/A-Feature/A-Feature-Define.decorator.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.A_Feature_Extend = A_Feature_Extend;
|
|
4
|
-
exports.buildTargetRegexp = buildTargetRegexp;
|
|
5
|
-
const A_Component_types_1 = require("../../global/A-Component/A-Component.types");
|
|
6
|
-
const A_Context_class_1 = require("../../global/A-Context/A-Context.class");
|
|
7
|
-
const A_Meta_class_1 = require("../../global/A-Meta/A-Meta.class");
|
|
8
|
-
function A_Feature_Extend(param1) {
|
|
9
|
-
return function (target, propertyKey, descriptor) {
|
|
10
|
-
let targetRegexp;
|
|
11
|
-
let behavior = 'sync';
|
|
12
|
-
let before = [];
|
|
13
|
-
let after = [];
|
|
14
|
-
let include = [];
|
|
15
|
-
let exclude = [];
|
|
16
|
-
// Check if the config is a RegExp
|
|
17
|
-
if (param1 instanceof RegExp) {
|
|
18
|
-
targetRegexp = param1;
|
|
19
|
-
}
|
|
20
|
-
else if (!!param1 && typeof param1 === 'object') {
|
|
21
|
-
if (Array.isArray(param1.scope))
|
|
22
|
-
include = param1.scope;
|
|
23
|
-
else if (!!param1.scope && typeof param1.scope === 'object') {
|
|
24
|
-
if (Array.isArray(param1.scope.include))
|
|
25
|
-
include = param1.scope.include;
|
|
26
|
-
if (Array.isArray(param1.scope.exclude))
|
|
27
|
-
exclude = param1.scope.exclude;
|
|
28
|
-
}
|
|
29
|
-
targetRegexp = buildTargetRegexp(param1, include, exclude, propertyKey);
|
|
30
|
-
behavior = param1.behavior || behavior;
|
|
31
|
-
before = param1.before || before;
|
|
32
|
-
after = param1.after || after;
|
|
33
|
-
}
|
|
34
|
-
else {
|
|
35
|
-
targetRegexp = new RegExp(`^.*\\.${propertyKey}$`);
|
|
36
|
-
}
|
|
37
|
-
const existedDefinitions = A_Context_class_1.A_Context
|
|
38
|
-
.meta(target)
|
|
39
|
-
.get(A_Component_types_1.A_TYPES__ComponentMetaKey.FEATURES);
|
|
40
|
-
// Get the existed metadata or create a new one
|
|
41
|
-
const existedMeta = A_Context_class_1.A_Context
|
|
42
|
-
.meta(target)
|
|
43
|
-
.get(A_Component_types_1.A_TYPES__ComponentMetaKey.EXTENSIONS)
|
|
44
|
-
|| new A_Meta_class_1.A_Meta();
|
|
45
|
-
if (existedDefinitions
|
|
46
|
-
&& existedDefinitions.size()
|
|
47
|
-
&& existedDefinitions.has(propertyKey)
|
|
48
|
-
&& existedDefinitions.get(propertyKey).invoke) {
|
|
49
|
-
throw new Error(`A-Feature-Extend cannot be used on the method "${propertyKey}" because it is already defined as a Feature with "invoke" set to true.
|
|
50
|
-
Please remove the A-Feature-Extend decorator or set "invoke" to false in the A-Feature decorator.`);
|
|
51
|
-
}
|
|
52
|
-
const existedMetaValue = existedMeta.get(targetRegexp.source) || [];
|
|
53
|
-
// Add the new method to the metadata
|
|
54
|
-
existedMetaValue.push({
|
|
55
|
-
name: targetRegexp.source,
|
|
56
|
-
handler: propertyKey,
|
|
57
|
-
behavior,
|
|
58
|
-
before,
|
|
59
|
-
after
|
|
60
|
-
});
|
|
61
|
-
// Set the metadata of the method to define a custom Feature with name
|
|
62
|
-
existedMeta.set(targetRegexp.source, existedMetaValue);
|
|
63
|
-
// Update the metadata of the container with the new Feature definition
|
|
64
|
-
A_Context_class_1.A_Context
|
|
65
|
-
.meta(target)
|
|
66
|
-
.set(A_Component_types_1.A_TYPES__ComponentMetaKey.EXTENSIONS, existedMeta);
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
function buildTargetRegexp(param1, include, exclude, propertyKey) {
|
|
70
|
-
const includePart = include.length
|
|
71
|
-
? `(${include.map(el => el.name).join('|')})`
|
|
72
|
-
: `.*`;
|
|
73
|
-
const excludePart = exclude.length
|
|
74
|
-
? `(?!${exclude.map(el => el.name).join('|')})`
|
|
75
|
-
: ``;
|
|
76
|
-
const pattern = param1.scope
|
|
77
|
-
? `^${excludePart}${includePart}\\.${param1.name || propertyKey}$`
|
|
78
|
-
: `.*\\.${param1.name || propertyKey}$`;
|
|
79
|
-
return new RegExp(pattern);
|
|
80
|
-
}
|
|
81
|
-
//# sourceMappingURL=A-Feature-Extend.decorator.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"A-Feature-Extend.decorator.js","sourceRoot":"","sources":["../../../../src/decorators/A-Feature/A-Feature-Extend.decorator.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { A_Channel } from "../../global/A-Channel/A-Channel.class";
|
|
2
|
-
import { A_Component } from "../../global/A-Component/A-Component.class";
|
|
3
|
-
import { A_Container } from "../../global/A-Container/A-Container.class";
|
|
4
|
-
import { A_Entity } from "../../global/A-Entity/A-Entity.class";
|
|
5
|
-
import { A_TYPES__A_StageStep } from "../../global/A-Stage/A-Stage.types";
|
|
6
|
-
import { A_TYPES__Required } from "@adaas/a-utils";
|
|
7
|
-
export type A_TYPES__A_Feature_Extend = {
|
|
8
|
-
(regexp: RegExp): MethodDecorator;
|
|
9
|
-
(config: Partial<A_TYPES__A_ExtendDecoratorConfig>): MethodDecorator;
|
|
10
|
-
(): MethodDecorator;
|
|
11
|
-
};
|
|
12
|
-
export type A_TYPES__A_FeatureDecoratorDescriptor = TypedPropertyDescriptor<((...args: any[]) => any) | ((...args: any[]) => Promise<any>) | (() => any) | (() => Promise<any>)>;
|
|
13
|
-
export type A_TYPES__A_FeatureDecoratorConfig = {
|
|
14
|
-
name: string;
|
|
15
|
-
invoke: boolean;
|
|
16
|
-
channel: Array<typeof A_Channel>;
|
|
17
|
-
template: Array<A_TYPES__A_FeatureTemplateItem>;
|
|
18
|
-
};
|
|
19
|
-
export type A_TYPES__A_FeatureTemplateItem = A_TYPES__Required<Partial<A_TYPES__A_StageStep>, ['name', 'handler', 'component']>;
|
|
20
|
-
export type A_TYPES__A_DefineDecorator_Meta = {
|
|
21
|
-
name: string;
|
|
22
|
-
handler: string;
|
|
23
|
-
invoke: boolean;
|
|
24
|
-
channel: Array<typeof A_Channel>;
|
|
25
|
-
template: Array<A_TYPES__A_StageStep>;
|
|
26
|
-
};
|
|
27
|
-
export type A_TYPES__A_ExtendDecoratorDescriptor = TypedPropertyDescriptor<() => any> | TypedPropertyDescriptor<(...args: any[]) => any> | TypedPropertyDescriptor<(...args: any[]) => Promise<any>> | TypedPropertyDescriptor<() => Promise<any>>;
|
|
28
|
-
export type A_TYPES__A_ExtendDecoratorConfig = {
|
|
29
|
-
/**
|
|
30
|
-
* Name of the container Lifecycle method to be extended.
|
|
31
|
-
*
|
|
32
|
-
* [!] If not provided will be used the name of the method.
|
|
33
|
-
* [!!] If name contains "." dot it will be considered as a path to the method.
|
|
34
|
-
*/
|
|
35
|
-
name: string;
|
|
36
|
-
/**
|
|
37
|
-
* Container class or container name uses to identify the proper container in case when the name is not unique.
|
|
38
|
-
*
|
|
39
|
-
* [!] If not provided will be applied to all containers with the same name.
|
|
40
|
-
* [!!] By default uses OR to join all provided items. If you need more complex Logic, please use Regexp instead
|
|
41
|
-
*
|
|
42
|
-
* [!!!] In case if you need to exclude some containers, entities or components, please use "exclude" property
|
|
43
|
-
*
|
|
44
|
-
* Example:
|
|
45
|
-
*
|
|
46
|
-
* ```ts
|
|
47
|
-
* @A_Feature.Extend({
|
|
48
|
-
* name: 'load',
|
|
49
|
-
* scope: {
|
|
50
|
-
* include: [A_Container1, A_Entity1],
|
|
51
|
-
* exclude: [A_Component1]
|
|
52
|
-
* }
|
|
53
|
-
* })
|
|
54
|
-
* ```
|
|
55
|
-
*/
|
|
56
|
-
scope: Array<A_TYPES__A_ExtendDecorator_ScopeItem> | Partial<A_TYPES__A_ExtendDecorator_ScopeConfig>;
|
|
57
|
-
} & A_TYPES__A_ExtendDecorator_BehaviorConfig;
|
|
58
|
-
export type A_TYPES__A_ExtendDecorator_ScopeItem = {
|
|
59
|
-
new (...args: any[]): A_Container;
|
|
60
|
-
} | {
|
|
61
|
-
new (...args: any[]): A_Entity;
|
|
62
|
-
} | {
|
|
63
|
-
new (...args: any[]): A_Component;
|
|
64
|
-
};
|
|
65
|
-
export type A_TYPES__A_ExtendDecorator_ScopeConfig = {
|
|
66
|
-
include?: Array<A_TYPES__A_ExtendDecorator_ScopeItem>;
|
|
67
|
-
exclude?: Array<A_TYPES__A_ExtendDecorator_ScopeItem>;
|
|
68
|
-
};
|
|
69
|
-
export type A_TYPES__A_ExtendDecorator_BehaviorConfig = {
|
|
70
|
-
/**
|
|
71
|
-
* The behavior of the method.
|
|
72
|
-
* In case its async it will be executed independently from the main thread.
|
|
73
|
-
*
|
|
74
|
-
* [!] However, in case of sync, it will be executed in the main thread.in the order of the declaration.
|
|
75
|
-
*
|
|
76
|
-
*/
|
|
77
|
-
behavior: 'async' | 'sync';
|
|
78
|
-
/**
|
|
79
|
-
* Allows to define the order of the execution of the method.
|
|
80
|
-
*
|
|
81
|
-
* [!] In case the method has circular dependencies it will Throw an error.
|
|
82
|
-
*
|
|
83
|
-
*/
|
|
84
|
-
before: string[];
|
|
85
|
-
/**
|
|
86
|
-
* Allows to define the order of the execution of the method.
|
|
87
|
-
*
|
|
88
|
-
* [!] In case the method has circular dependencies it will Throw an error.
|
|
89
|
-
*
|
|
90
|
-
*/
|
|
91
|
-
after: string[];
|
|
92
|
-
};
|
|
93
|
-
export type A_TYPES__A_ExtendDecorator_Meta = {
|
|
94
|
-
name: string;
|
|
95
|
-
handler: string;
|
|
96
|
-
} & A_TYPES__A_ExtendDecorator_BehaviorConfig;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"A-Feature.decorator.types.js","sourceRoot":"","sources":["../../../../src/decorators/A-Feature/A-Feature.decorator.types.ts"],"names":[],"mappings":""}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { A_TYPES__A_InjectDecorator_EntityInjectionInstructions, A_TYPES__A_InjectDecoratorReturn } from "./A-Inject.decorator.types";
|
|
2
|
-
import { A_Component } from "../../global/A-Component/A-Component.class";
|
|
3
|
-
import { A_Fragment } from "../../global/A-Fragment/A-Fragment.class";
|
|
4
|
-
import { A_Scope } from "../../global/A-Scope/A-Scope.class";
|
|
5
|
-
import { A_Feature } from "../../global/A-Feature/A-Feature.class";
|
|
6
|
-
import { A_Entity } from "../../global/A-Entity/A-Entity.class";
|
|
7
|
-
import { A_FeatureCaller } from "../../global/A-Feature/A-FeatureCaller.class";
|
|
8
|
-
/**
|
|
9
|
-
* A-Inject decorator
|
|
10
|
-
*
|
|
11
|
-
* This Decorator allows to inject dependencies into the module like
|
|
12
|
-
* - Namespaces
|
|
13
|
-
* - Other Concepts
|
|
14
|
-
* - or maybe Components
|
|
15
|
-
*
|
|
16
|
-
* @param params
|
|
17
|
-
* @returns
|
|
18
|
-
*/
|
|
19
|
-
export declare function A_Inject(scope: typeof A_Scope): A_TYPES__A_InjectDecoratorReturn;
|
|
20
|
-
export declare function A_Inject(feature: typeof A_Feature): A_TYPES__A_InjectDecoratorReturn;
|
|
21
|
-
export declare function A_Inject(component: {
|
|
22
|
-
new (...args: any[]): A_Component;
|
|
23
|
-
}): A_TYPES__A_InjectDecoratorReturn;
|
|
24
|
-
export declare function A_Inject(container: typeof A_FeatureCaller): A_TYPES__A_InjectDecoratorReturn;
|
|
25
|
-
export declare function A_Inject(fragment: {
|
|
26
|
-
new (...args: any[]): A_Fragment;
|
|
27
|
-
}): A_TYPES__A_InjectDecoratorReturn;
|
|
28
|
-
export declare function A_Inject<T extends A_Entity>(entity: {
|
|
29
|
-
new (...args: any[]): T;
|
|
30
|
-
}, config: Partial<A_TYPES__A_InjectDecorator_EntityInjectionInstructions<T>>): A_TYPES__A_InjectDecoratorReturn;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.A_Inject = A_Inject;
|
|
4
|
-
const A_Component_class_1 = require("../../global/A-Component/A-Component.class");
|
|
5
|
-
const A_Context_class_1 = require("../../global/A-Context/A-Context.class");
|
|
6
|
-
const A_Component_types_1 = require("../../global/A-Component/A-Component.types");
|
|
7
|
-
const A_Meta_class_1 = require("../../global/A-Meta/A-Meta.class");
|
|
8
|
-
const A_Container_class_1 = require("../../global/A-Container/A-Container.class");
|
|
9
|
-
const A_Container_types_1 = require("../../global/A-Container/A-Container.types");
|
|
10
|
-
const a_utils_1 = require("@adaas/a-utils");
|
|
11
|
-
// ====================== BASE FUNCTION ======================
|
|
12
|
-
function A_Inject(param1, param2) {
|
|
13
|
-
return function (target, methodName, parameterIndex) {
|
|
14
|
-
const method = methodName ? String(methodName) : 'constructor';
|
|
15
|
-
let metaKey;
|
|
16
|
-
switch (true) {
|
|
17
|
-
case target instanceof A_Component_class_1.A_Component:
|
|
18
|
-
metaKey = A_Component_types_1.A_TYPES__ComponentMetaKey.INJECTIONS;
|
|
19
|
-
break;
|
|
20
|
-
case a_utils_1.A_CommonHelper.isInheritedFrom(target, A_Component_class_1.A_Component):
|
|
21
|
-
metaKey = A_Component_types_1.A_TYPES__ComponentMetaKey.INJECTIONS;
|
|
22
|
-
break;
|
|
23
|
-
case a_utils_1.A_CommonHelper.isInheritedFrom(target, A_Container_class_1.A_Container):
|
|
24
|
-
metaKey = A_Container_types_1.A_TYPES__ContainerMetaKey.INJECTIONS;
|
|
25
|
-
break;
|
|
26
|
-
case target instanceof A_Container_class_1.A_Container:
|
|
27
|
-
metaKey = A_Container_types_1.A_TYPES__ContainerMetaKey.INJECTIONS;
|
|
28
|
-
break;
|
|
29
|
-
default:
|
|
30
|
-
throw new Error(`A-Inject cannot be defined on the ${target} level`);
|
|
31
|
-
}
|
|
32
|
-
const existedMeta = A_Context_class_1.A_Context
|
|
33
|
-
.meta(target)
|
|
34
|
-
.get(metaKey)
|
|
35
|
-
|| new A_Meta_class_1.A_Meta();
|
|
36
|
-
const paramsArray = existedMeta.get(method) || [];
|
|
37
|
-
paramsArray[parameterIndex] = {
|
|
38
|
-
target: param1,
|
|
39
|
-
instructions: param2
|
|
40
|
-
};
|
|
41
|
-
existedMeta.set(method, paramsArray);
|
|
42
|
-
A_Context_class_1.A_Context
|
|
43
|
-
.meta(target)
|
|
44
|
-
.set(metaKey, existedMeta);
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
//# sourceMappingURL=A-Inject.decorator.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"A-Inject.decorator.js","sourceRoot":"","sources":["../../../../src/decorators/A-Inject/A-Inject.decorator.ts"],"names":[],"mappings":";;AAsDA,4BAgEC;AAlHD,6FAAoF;AAGpF,uFAA8E;AAC9E,6FAAkG;AAClG,8EAAqE;AAGrE,6FAAoF;AACpF,6FAAkG;AAClG,4CAAgD;AAuChD,8DAA8D;AAC9D,SAAgB,QAAQ,CACpB,MAKuC,EACvC,MAAwE;IAExE,OAAO,UACH,MAAmB,EACnB,UAAuC,EACvC,cAAsB;QAGtB,MAAM,MAAM,GAAG,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC;QAE/D,IAAI,OAAO,CAAC;QAEZ,QAAQ,IAAI,EAAE,CAAC;YAEX,KAAK,MAAM,YAAY,+BAAW;gBAC9B,OAAO,GAAG,6CAAyB,CAAC,UAAU,CAAC;gBAC/C,MAAM;YAEV,KAAK,wBAAc,CAAC,eAAe,CAAC,MAAM,EAAE,+BAAW,CAAC;gBACpD,OAAO,GAAG,6CAAyB,CAAC,UAAU,CAAC;gBAC/C,MAAM;YAEV,KAAK,wBAAc,CAAC,eAAe,CAAC,MAAM,EAAE,+BAAW,CAAC;gBACpD,OAAO,GAAG,6CAAyB,CAAC,UAAU,CAAC;gBAC/C,MAAM;YAEV,KAAK,MAAM,YAAY,+BAAW;gBAC9B,OAAO,GAAG,6CAAyB,CAAC,UAAU,CAAC;gBAC/C,MAAM;YAGV;gBACI,MAAM,IAAI,KAAK,CAAC,qCAAqC,MAAM,QAAQ,CAAC,CAAC;QAC7E,CAAC;QAED,MAAM,WAAW,GAAG,2BAAS;aACxB,IAAI,CAAC,MAAM,CAAC;aACZ,GAAG,CAAC,OAAO,CAAC;eACV,IAAI,qBAAM,EAAE,CAAC;QAGpB,MAAM,WAAW,GAAG,WAAW,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;QAElD,WAAW,CAAC,cAAc,CAAC,GAAG;YAC1B,MAAM,EAAE,MAAM;YACd,YAAY,EAAE,MAAM;SACvB,CAAA;QAED,WAAW,CAAC,GAAG,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;QAErC,2BAAS;aACJ,IAAI,CAAC,MAAM,CAAC;aACZ,GAAG,CACA,OAAO,EACP,WAAW,CACd,CAAC;IACV,CAAC,CAAA;AACL,CAAC"}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { A_Component } from "../../global/A-Component/A-Component.class";
|
|
2
|
-
import { A_Container } from "../../global/A-Container/A-Container.class";
|
|
3
|
-
import { A_Entity } from "../../global/A-Entity/A-Entity.class";
|
|
4
|
-
import { A_Feature } from "../../global/A-Feature/A-Feature.class";
|
|
5
|
-
import { A_FeatureCaller } from "../../global/A-Feature/A-FeatureCaller.class";
|
|
6
|
-
import { A_Fragment } from "../../global/A-Fragment/A-Fragment.class";
|
|
7
|
-
import { A_Scope } from "../../global/A-Scope/A-Scope.class";
|
|
8
|
-
export type A_TYPES__A_InjectDecoratorDescriptor = TypedPropertyDescriptor<(...args: any[]) => Promise<void>>;
|
|
9
|
-
export type A_TYPES__A_InjectDecoratorReturn<T = any> = (target: T, propertyKey: string | symbol | undefined, parameterIndex: number) => void;
|
|
10
|
-
export type A_TYPES__A_InjectDecoratorStorageInstruction = Array<{
|
|
11
|
-
new (...args: any[]): any;
|
|
12
|
-
}>;
|
|
13
|
-
export type A_TYPES__A_InjectDecorator_Meta = Array<{
|
|
14
|
-
target: A_TYPES__A_InjectDecorator_Injectable;
|
|
15
|
-
} | {
|
|
16
|
-
target: {
|
|
17
|
-
new (...args: any[]): A_Entity;
|
|
18
|
-
};
|
|
19
|
-
instructions: Partial<A_TYPES__A_InjectDecorator_EntityInjectionInstructions>;
|
|
20
|
-
}>;
|
|
21
|
-
export type A_TYPES__A_InjectDecorator_Injectable = {
|
|
22
|
-
new (...args: any[]): A_Fragment;
|
|
23
|
-
} | {
|
|
24
|
-
new (...args: any[]): A_Component;
|
|
25
|
-
} | {
|
|
26
|
-
new (...args: any[]): A_Container;
|
|
27
|
-
} | {
|
|
28
|
-
new (...args: any[]): A_Scope;
|
|
29
|
-
} | {
|
|
30
|
-
new (...args: any[]): A_Feature;
|
|
31
|
-
} | {
|
|
32
|
-
new (...args: any[]): A_Entity;
|
|
33
|
-
} | {
|
|
34
|
-
new (...args: any[]): A_FeatureCaller;
|
|
35
|
-
};
|
|
36
|
-
export type A_TYPES__A_InjectDecorator_EntityInjectionInstructions<T extends A_Entity = A_Entity> = {
|
|
37
|
-
query: Partial<A_TYPES__A_InjectDecorator_EntityInjectionQuery<T>>;
|
|
38
|
-
pagination: Partial<A_TYPES__A_InjectDecorator_EntityInjectionPagination>;
|
|
39
|
-
};
|
|
40
|
-
export type A_TYPES__A_InjectDecorator_EntityInjectionQuery<T extends A_Entity = A_Entity> = {
|
|
41
|
-
aseid: string;
|
|
42
|
-
} & {
|
|
43
|
-
[key in keyof T]?: any;
|
|
44
|
-
};
|
|
45
|
-
export type A_TYPES__A_InjectDecorator_EntityInjectionPagination = {
|
|
46
|
-
count: number;
|
|
47
|
-
from: 'start' | 'end';
|
|
48
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"A-Inject.decorator.types.js","sourceRoot":"","sources":["../../../../src/decorators/A-Inject/A-Inject.decorator.types.ts"],"names":[],"mappings":""}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { A_Component } from "../A-Component/A-Component.class";
|
|
2
|
-
import { A_Container } from "../A-Container/A-Container.class";
|
|
3
|
-
import { A_TYPES__A_ChannelConstructor } from "./A-Channel.types";
|
|
4
|
-
/**
|
|
5
|
-
* [!] DEPRECATED - use simply A_Component instead
|
|
6
|
-
*
|
|
7
|
-
* A_Channel is an abstraction over any Communication Type from event emitters to message queues, HTTP requests, etc.
|
|
8
|
-
*
|
|
9
|
-
* A_Channel uses to connect Containers between each other. When
|
|
10
|
-
* When One container needs to communicate with another container, it uses A_Channel.
|
|
11
|
-
*
|
|
12
|
-
*/
|
|
13
|
-
export declare class A_Channel<T extends Array<A_Component | A_Container> = any[], _Constructor extends A_TYPES__A_ChannelConstructor = A_TYPES__A_ChannelConstructor> {
|
|
14
|
-
id: string;
|
|
15
|
-
constructor(params: A_TYPES__A_ChannelConstructor);
|
|
16
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.A_Channel = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* [!] DEPRECATED - use simply A_Component instead
|
|
6
|
-
*
|
|
7
|
-
* A_Channel is an abstraction over any Communication Type from event emitters to message queues, HTTP requests, etc.
|
|
8
|
-
*
|
|
9
|
-
* A_Channel uses to connect Containers between each other. When
|
|
10
|
-
* When One container needs to communicate with another container, it uses A_Channel.
|
|
11
|
-
*
|
|
12
|
-
*/
|
|
13
|
-
class A_Channel {
|
|
14
|
-
// protected channel: A_TYPES__A_ChannelAggregated<T>;
|
|
15
|
-
constructor(params) {
|
|
16
|
-
this.id = params.id;
|
|
17
|
-
// this.channel = new Proxy(
|
|
18
|
-
// {} as A_TYPES__A_ChannelAggregated<T>,
|
|
19
|
-
// {
|
|
20
|
-
// get: (target, prop) => {
|
|
21
|
-
// return async (...args: any[]) => {
|
|
22
|
-
// this.call(prop as A_TYPES__A_ChannelAggregateMethods<T>);
|
|
23
|
-
// };
|
|
24
|
-
// }
|
|
25
|
-
// });
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
exports.A_Channel = A_Channel;
|
|
29
|
-
// const toUsersChannel = new A_Channel('users');
|
|
30
|
-
// const toOrdersChannel = new A_Channel('orders');
|
|
31
|
-
// class someComponent extends A_Component {
|
|
32
|
-
// async someMethod(
|
|
33
|
-
// @A_Channel('users') usersChannel: A_Channel,
|
|
34
|
-
// ) {
|
|
35
|
-
// // await toUsersChannel.call('methodName', { fragments: [], components: [A_Component] });
|
|
36
|
-
// }
|
|
37
|
-
// }
|
|
38
|
-
// class UsersChannel extends A_Channel {
|
|
39
|
-
// constructor(
|
|
40
|
-
// @A_inject(A_Config) config : A_Config
|
|
41
|
-
// ){
|
|
42
|
-
// super('users');
|
|
43
|
-
// }
|
|
44
|
-
// }
|
|
45
|
-
// class OrdersChannel extends A_Channel { }
|
|
46
|
-
// class anotherComponent extends A_Component {
|
|
47
|
-
// async someMethod(
|
|
48
|
-
// @A_inject(UsersChannel) usersChannel: UsersChannel,
|
|
49
|
-
// @A_inject(OrdersChannel) ordersChannel: OrdersChannel,
|
|
50
|
-
// ) {
|
|
51
|
-
// const command = new A_Command();
|
|
52
|
-
// usersChannel
|
|
53
|
-
// .use(someSession)
|
|
54
|
-
// .send(command);
|
|
55
|
-
// await ordersChannel.request(command);
|
|
56
|
-
// // await toUsersChannel.call('methodName', { fragments: [], components: [A_Component] });
|
|
57
|
-
// }
|
|
58
|
-
// }
|
|
59
|
-
//# sourceMappingURL=A-Channel.class.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"A-Channel.class.js","sourceRoot":"","sources":["../../../../src/global/A-Channel/A-Channel.class.ts"],"names":[],"mappings":";;;AAKA;;;;;;;;GAQG;AACH,MAAa,SAAS;IAOlB,sDAAsD;IAGtD,YAAY,MAAqC;QAC7C,IAAI,CAAC,EAAE,GAAG,MAAM,CAAC,EAAE,CAAC;QAEpB,4BAA4B;QAC5B,6CAA6C;QAC7C,QAAQ;QACR,mCAAmC;QACnC,iDAAiD;QACjD,4EAA4E;QAC5E,iBAAiB;QACjB,YAAY;QACZ,UAAU;IACd,CAAC;CAiBJ;AAvCD,8BAuCC;AAMD,iDAAiD;AAEjD,mDAAmD;AAKnD,4CAA4C;AAG5C,wBAAwB;AACxB,uDAAuD;AACvD,UAAU;AACV,oGAAoG;AACpG,QAAQ;AAER,IAAI;AAMJ,yCAAyC;AACzC,mBAAmB;AACnB,gDAAgD;AAChD,SAAS;AACT,0BAA0B;AAC1B,QAAQ;AACR,IAAI;AAGJ,4CAA4C;AAG5C,+CAA+C;AAC/C,wBAAwB;AACxB,8DAA8D;AAC9D,iEAAiE;AACjE,UAAU;AACV,2CAA2C;AAE3C,uBAAuB;AACvB,4BAA4B;AAC5B,0BAA0B;AAG1B,gDAAgD;AAGhD,oGAAoG;AACpG,QAAQ;AACR,IAAI"}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { A_Container } from "../A-Container/A-Container.class";
|
|
2
|
-
import { A_Component } from "../A-Component/A-Component.class";
|
|
3
|
-
import { A_Fragment } from "../A-Fragment/A-Fragment.class";
|
|
4
|
-
export type A_TYPES__A_DependencyReferenceConstructor = {
|
|
5
|
-
/**
|
|
6
|
-
* The name of the dependency
|
|
7
|
-
*/
|
|
8
|
-
name: string;
|
|
9
|
-
/**
|
|
10
|
-
* The version of the module
|
|
11
|
-
* By default it is 1.0.0
|
|
12
|
-
*/
|
|
13
|
-
version: string;
|
|
14
|
-
};
|
|
15
|
-
export type A_TYPES__A_DependencyReferenceConstructorConfig = {
|
|
16
|
-
/**
|
|
17
|
-
* Sync - blocks A-Express Application initialization until module is ready
|
|
18
|
-
* Async - allows to initialize module after A-Express Application initialization
|
|
19
|
-
*/
|
|
20
|
-
behavior: 'async' | 'sync';
|
|
21
|
-
/**
|
|
22
|
-
* Allows to define a scheme of retries
|
|
23
|
-
*/
|
|
24
|
-
retries: {
|
|
25
|
-
/**
|
|
26
|
-
* The number of retries
|
|
27
|
-
* Default is 3
|
|
28
|
-
*/
|
|
29
|
-
n: number;
|
|
30
|
-
/**
|
|
31
|
-
* The timeout between retries
|
|
32
|
-
* Multiplied by the number of retries
|
|
33
|
-
* So after each retry the timeout is increased e.g. 1000ms * 1, 1000ms * 2, 1000ms * 3
|
|
34
|
-
* Default is 1000
|
|
35
|
-
*/
|
|
36
|
-
timeout: number;
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
export type A_TYPES__A_ChannelCallParams = {
|
|
40
|
-
fragments: Array<A_Fragment>;
|
|
41
|
-
components: Array<typeof A_Component>;
|
|
42
|
-
};
|
|
43
|
-
/**
|
|
44
|
-
* Returns a string set of possible methods that could be called on a provided A-Component
|
|
45
|
-
*/
|
|
46
|
-
export type A_TYPES__A_ExecutableMethods<T> = {
|
|
47
|
-
[K in keyof T]: T[K] extends (...arg: Partial<A_TYPES__A_ChannelCallParams>[]) => Promise<any> ? K : never;
|
|
48
|
-
}[keyof T];
|
|
49
|
-
/**
|
|
50
|
-
* Returns a string set of possible methods that could be called on a set of provided set of A-Components
|
|
51
|
-
*/
|
|
52
|
-
export type A_TYPES__A_ChannelAggregateMethods<TClasses extends (A_Component | A_Container)[]> = {
|
|
53
|
-
[K in keyof TClasses]: TClasses[K] extends infer Instance ? A_TYPES__A_ExecutableMethods<Instance> : never;
|
|
54
|
-
}[number];
|
|
55
|
-
/**
|
|
56
|
-
* Describes a type of proxy object and consists of all callable methods from a set opf provided components
|
|
57
|
-
*/
|
|
58
|
-
export type A_TYPES__A_ChannelAggregated<TClasses extends any[]> = {
|
|
59
|
-
[Method in A_TYPES__A_ChannelAggregateMethods<TClasses>]: {
|
|
60
|
-
[Class in keyof TClasses]: TClasses[Class] extends infer Instance ? Method extends keyof Instance ? (params: Partial<A_TYPES__A_ChannelCallParams>) => Promise<any> : never : never;
|
|
61
|
-
}[number];
|
|
62
|
-
};
|
|
63
|
-
/**
|
|
64
|
-
* A set of parameters are required to construct a new A-Channel
|
|
65
|
-
*/
|
|
66
|
-
export type A_TYPES__A_ChannelConstructor = {
|
|
67
|
-
id: string;
|
|
68
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"A-Channel.types.js","sourceRoot":"","sources":["../../../../src/global/A-Channel/A-Channel.types.ts"],"names":[],"mappings":""}
|