@adaas/a-concept 0.0.64 → 0.1.2

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.
Files changed (416) hide show
  1. package/dist/index.d.ts +24 -32
  2. package/dist/index.js +35 -52
  3. package/dist/index.js.map +1 -1
  4. package/dist/src/constants/env.constants.d.ts +15 -8
  5. package/dist/src/constants/env.constants.js +17 -10
  6. package/dist/src/constants/env.constants.js.map +1 -1
  7. package/dist/src/global/A-Abstraction/A-Abstraction-Extend.decorator.d.ts +23 -0
  8. package/dist/src/global/A-Abstraction/A-Abstraction-Extend.decorator.js +69 -0
  9. package/dist/src/global/A-Abstraction/A-Abstraction-Extend.decorator.js.map +1 -0
  10. package/dist/src/global/A-Abstraction/A-Abstraction.class.d.ts +47 -20
  11. package/dist/src/global/A-Abstraction/A-Abstraction.class.js +55 -48
  12. package/dist/src/global/A-Abstraction/A-Abstraction.class.js.map +1 -1
  13. package/dist/src/global/A-Abstraction/A-Abstraction.error.d.ts +7 -0
  14. package/dist/src/global/A-Abstraction/A-Abstraction.error.js +12 -0
  15. package/dist/src/global/A-Abstraction/A-Abstraction.error.js.map +1 -0
  16. package/dist/src/global/A-Abstraction/A-Abstraction.types.d.ts +27 -12
  17. package/dist/src/global/A-Abstraction/A-Abstraction.types.js +0 -8
  18. package/dist/src/global/A-Abstraction/A-Abstraction.types.js.map +1 -1
  19. package/dist/src/global/A-Caller/A_Caller.class.d.ts +33 -0
  20. package/dist/src/global/A-Caller/A_Caller.class.js +44 -0
  21. package/dist/src/global/A-Caller/A_Caller.class.js.map +1 -0
  22. package/dist/src/global/A-Caller/A_Caller.error.d.ts +7 -0
  23. package/dist/src/global/A-Caller/A_Caller.error.js +12 -0
  24. package/dist/src/global/A-Caller/A_Caller.error.js.map +1 -0
  25. package/dist/src/global/A-Caller/A_Caller.types.d.ts +18 -0
  26. package/dist/src/{base/A-Errors/A-Errors.types.js → global/A-Caller/A_Caller.types.js} +1 -1
  27. package/dist/src/global/A-Caller/A_Caller.types.js.map +1 -0
  28. package/dist/src/global/A-Component/A-Component.class.d.ts +20 -3
  29. package/dist/src/global/A-Component/A-Component.class.js +35 -19
  30. package/dist/src/global/A-Component/A-Component.class.js.map +1 -1
  31. package/dist/src/global/A-Component/A-Component.constants.d.ts +6 -0
  32. package/dist/src/global/A-Component/A-Component.constants.js +11 -0
  33. package/dist/src/global/A-Component/A-Component.constants.js.map +1 -0
  34. package/dist/src/global/A-Component/A-Component.meta.d.ts +4 -4
  35. package/dist/src/global/A-Component/A-Component.meta.js +6 -8
  36. package/dist/src/global/A-Component/A-Component.meta.js.map +1 -1
  37. package/dist/src/global/A-Component/A-Component.types.d.ts +40 -22
  38. package/dist/src/global/A-Component/A-Component.types.js +1 -8
  39. package/dist/src/global/A-Component/A-Component.types.js.map +1 -1
  40. package/dist/src/global/A-Concept/A-Concept.class.d.ts +153 -0
  41. package/dist/src/global/A-Concept/A-Concept.class.js +260 -0
  42. package/dist/src/global/A-Concept/A-Concept.class.js.map +1 -0
  43. package/dist/src/global/A-Concept/A-Concept.constants.d.ts +33 -0
  44. package/dist/src/global/A-Concept/A-Concept.constants.js +39 -0
  45. package/dist/src/global/A-Concept/A-Concept.constants.js.map +1 -0
  46. package/dist/src/global/A-Concept/{A_Concept.meta.js → A-Concept.meta.js} +1 -2
  47. package/dist/src/global/A-Concept/A-Concept.meta.js.map +1 -0
  48. package/dist/src/global/A-Concept/A-Concept.types.d.ts +83 -0
  49. package/dist/src/global/{A-Channel/A-Channel.types.js → A-Concept/A-Concept.types.js} +1 -1
  50. package/dist/src/global/A-Concept/A-Concept.types.js.map +1 -0
  51. package/dist/src/global/A-Container/A-Container.class.d.ts +31 -35
  52. package/dist/src/global/A-Container/A-Container.class.js +34 -55
  53. package/dist/src/global/A-Container/A-Container.class.js.map +1 -1
  54. package/dist/src/global/A-Container/A-Container.constants.d.ts +5 -0
  55. package/dist/src/global/A-Container/A-Container.constants.js +10 -0
  56. package/dist/src/global/A-Container/A-Container.constants.js.map +1 -0
  57. package/dist/src/global/A-Container/A-Container.meta.d.ts +6 -6
  58. package/dist/src/global/A-Container/A-Container.meta.js +5 -6
  59. package/dist/src/global/A-Container/A-Container.meta.js.map +1 -1
  60. package/dist/src/global/A-Container/A-Container.types.d.ts +31 -25
  61. package/dist/src/global/A-Container/A-Container.types.js +1 -7
  62. package/dist/src/global/A-Container/A-Container.types.js.map +1 -1
  63. package/dist/src/global/A-Context/A-Context.class.d.ts +302 -76
  64. package/dist/src/global/A-Context/A-Context.class.js +436 -244
  65. package/dist/src/global/A-Context/A-Context.class.js.map +1 -1
  66. package/dist/src/global/A-Context/A-Context.error.d.ts +20 -0
  67. package/dist/src/global/A-Context/A-Context.error.js +25 -0
  68. package/dist/src/global/A-Context/A-Context.error.js.map +1 -0
  69. package/dist/src/global/A-Context/A-Context.types.d.ts +5 -0
  70. package/dist/src/global/A-Context/A-Context.types.js +1 -0
  71. package/dist/src/global/A-Entity/A-Entity.class.d.ts +13 -39
  72. package/dist/src/global/A-Entity/A-Entity.class.js +30 -73
  73. package/dist/src/global/A-Entity/A-Entity.class.js.map +1 -1
  74. package/dist/src/global/A-Entity/A-Entity.constants.d.ts +11 -0
  75. package/dist/src/global/A-Entity/A-Entity.constants.js +17 -0
  76. package/dist/src/global/A-Entity/A-Entity.constants.js.map +1 -0
  77. package/dist/src/global/A-Entity/A-Entity.error.d.ts +7 -0
  78. package/dist/src/global/A-Entity/A-Entity.error.js +12 -0
  79. package/dist/src/global/A-Entity/A-Entity.error.js.map +1 -0
  80. package/dist/src/global/A-Entity/A-Entity.meta.d.ts +2 -2
  81. package/dist/src/global/A-Entity/A-Entity.meta.js +2 -2
  82. package/dist/src/global/A-Entity/A-Entity.meta.js.map +1 -1
  83. package/dist/src/global/A-Entity/A-Entity.types.d.ts +24 -29
  84. package/dist/src/global/A-Entity/A-Entity.types.js +1 -13
  85. package/dist/src/global/A-Entity/A-Entity.types.js.map +1 -1
  86. package/dist/src/global/A-Error/A_Error.class.d.ts +219 -0
  87. package/dist/src/global/A-Error/A_Error.class.js +267 -0
  88. package/dist/src/global/A-Error/A_Error.class.js.map +1 -0
  89. package/dist/src/global/A-Error/A_Error.constants.d.ts +5 -0
  90. package/dist/src/global/A-Error/A_Error.constants.js +9 -0
  91. package/dist/src/global/A-Error/A_Error.constants.js.map +1 -0
  92. package/dist/src/global/A-Error/A_Error.types.d.ts +89 -0
  93. package/dist/src/{decorators/A-Inject/A-Inject.decorator.types.js → global/A-Error/A_Error.types.js} +1 -1
  94. package/dist/src/global/A-Error/A_Error.types.js.map +1 -0
  95. package/dist/src/global/A-Feature/A-Feature-Define.decorator.d.ts +15 -0
  96. package/dist/src/{decorators → global}/A-Feature/A-Feature-Define.decorator.js +21 -27
  97. package/dist/src/global/A-Feature/A-Feature-Define.decorator.js.map +1 -0
  98. package/dist/src/{decorators → global}/A-Feature/A-Feature-Extend.decorator.d.ts +26 -3
  99. package/dist/src/global/A-Feature/A-Feature-Extend.decorator.js +97 -0
  100. package/dist/src/global/A-Feature/A-Feature-Extend.decorator.js.map +1 -0
  101. package/dist/src/global/A-Feature/A-Feature.class.d.ts +120 -30
  102. package/dist/src/global/A-Feature/A-Feature.class.js +205 -73
  103. package/dist/src/global/A-Feature/A-Feature.class.js.map +1 -1
  104. package/dist/src/global/A-Feature/A-Feature.error.d.ts +25 -0
  105. package/dist/src/global/A-Feature/A-Feature.error.js +33 -0
  106. package/dist/src/global/A-Feature/A-Feature.error.js.map +1 -0
  107. package/dist/src/global/A-Feature/A-Feature.types.d.ts +241 -18
  108. package/dist/src/global/A-Feature/A-Feature.types.js +16 -22
  109. package/dist/src/global/A-Feature/A-Feature.types.js.map +1 -1
  110. package/dist/src/global/A-Fragment/A-Fragment.class.d.ts +19 -27
  111. package/dist/src/global/A-Fragment/A-Fragment.class.js +21 -91
  112. package/dist/src/global/A-Fragment/A-Fragment.class.js.map +1 -1
  113. package/dist/src/global/A-Fragment/A-Fragment.types.d.ts +19 -1
  114. package/dist/src/global/A-Fragment/A-Fragment.types.js +3 -0
  115. package/dist/src/global/A-Fragment/A-Fragment.types.js.map +1 -1
  116. package/dist/src/global/A-Inject/A-Inject.decorator.d.ts +80 -0
  117. package/dist/src/global/A-Inject/A-Inject.decorator.js +49 -0
  118. package/dist/src/global/A-Inject/A-Inject.decorator.js.map +1 -0
  119. package/dist/src/global/A-Inject/A-Inject.error.d.ts +5 -0
  120. package/dist/src/global/A-Inject/A-Inject.error.js +10 -0
  121. package/dist/src/global/A-Inject/A-Inject.error.js.map +1 -0
  122. package/dist/src/global/A-Inject/A-Inject.types.d.ts +42 -0
  123. package/dist/src/{decorators/A-Entity/A-Entity.decorator.types.js → global/A-Inject/A-Inject.types.js} +1 -1
  124. package/dist/src/global/A-Inject/A-Inject.types.js.map +1 -0
  125. package/dist/src/global/A-Meta/A-Meta.class.d.ts +1 -1
  126. package/dist/src/global/A-Meta/A-Meta.types.d.ts +14 -0
  127. package/dist/src/global/A-Meta/A-Meta.types.js +1 -0
  128. package/dist/src/global/A-Scope/A-Scope.class.d.ts +124 -142
  129. package/dist/src/global/A-Scope/A-Scope.class.js +163 -209
  130. package/dist/src/global/A-Scope/A-Scope.class.js.map +1 -1
  131. package/dist/src/global/A-Scope/A-Scope.error.d.ts +6 -0
  132. package/dist/src/global/A-Scope/A-Scope.error.js +11 -0
  133. package/dist/src/global/A-Scope/A-Scope.error.js.map +1 -0
  134. package/dist/src/global/A-Scope/A-Scope.types.d.ts +48 -13
  135. package/dist/src/global/A-Stage/A-Stage.class.d.ts +31 -23
  136. package/dist/src/global/A-Stage/A-Stage.class.js +100 -68
  137. package/dist/src/global/A-Stage/A-Stage.class.js.map +1 -1
  138. package/dist/src/global/A-Stage/A-Stage.error.d.ts +2 -1
  139. package/dist/src/global/A-Stage/A-Stage.error.js +5 -2
  140. package/dist/src/global/A-Stage/A-Stage.error.js.map +1 -1
  141. package/dist/src/global/A-Stage/A-Stage.types.d.ts +4 -16
  142. package/dist/src/global/A-Stage/A-Stage.types.js +0 -16
  143. package/dist/src/global/A-Stage/A-Stage.types.js.map +1 -1
  144. package/dist/src/global/ASEID/ASEID.class.d.ts +130 -0
  145. package/dist/src/global/ASEID/ASEID.class.js +167 -0
  146. package/dist/src/global/ASEID/ASEID.class.js.map +1 -0
  147. package/dist/src/global/ASEID/ASEID.constants.js +2 -0
  148. package/dist/src/global/ASEID/ASEID.constants.js.map +1 -0
  149. package/dist/src/global/ASEID/ASEID.error.d.ts +5 -0
  150. package/dist/src/global/ASEID/ASEID.error.js +10 -0
  151. package/dist/src/global/ASEID/ASEID.error.js.map +1 -0
  152. package/dist/src/global/ASEID/ASEID.types.d.ts +65 -0
  153. package/dist/src/global/ASEID/ASEID.types.js +5 -0
  154. package/dist/src/global/ASEID/ASEID.types.js.map +1 -0
  155. package/dist/src/helpers/A_Common.helper.d.ts +28 -0
  156. package/dist/src/helpers/A_Common.helper.js +170 -0
  157. package/dist/src/helpers/A_Common.helper.js.map +1 -0
  158. package/dist/src/helpers/A_Formatter.helper.d.ts +35 -0
  159. package/dist/src/helpers/A_Formatter.helper.js +62 -0
  160. package/dist/src/helpers/A_Formatter.helper.js.map +1 -0
  161. package/dist/src/helpers/A_Identity.helper.d.ts +29 -0
  162. package/dist/src/helpers/A_Identity.helper.js +43 -0
  163. package/dist/src/helpers/A_Identity.helper.js.map +1 -0
  164. package/dist/src/helpers/{StepsManager.class.d.ts → A_StepsManager.class.d.ts} +4 -2
  165. package/dist/src/helpers/{StepsManager.class.js → A_StepsManager.class.js} +10 -5
  166. package/dist/src/helpers/A_StepsManager.class.js.map +1 -0
  167. package/dist/src/helpers/A_TypeGuards.helper.d.ts +205 -0
  168. package/dist/src/helpers/A_TypeGuards.helper.js +288 -0
  169. package/dist/src/helpers/A_TypeGuards.helper.js.map +1 -0
  170. package/dist/src/types/A_Common.types.d.ts +36 -0
  171. package/dist/src/types/A_Common.types.js +3 -0
  172. package/dist/src/types/A_Common.types.js.map +1 -0
  173. package/index.ts +27 -51
  174. package/jest.config.ts +1 -0
  175. package/package.json +1 -2
  176. package/src/constants/env.constants.ts +18 -11
  177. package/src/global/A-Abstraction/A-Abstraction-Extend.decorator.ts +103 -0
  178. package/src/global/A-Abstraction/A-Abstraction.class.ts +71 -65
  179. package/src/global/A-Abstraction/A-Abstraction.error.ts +9 -0
  180. package/src/global/A-Abstraction/A-Abstraction.types.ts +52 -13
  181. package/src/global/A-Caller/A_Caller.class.ts +61 -0
  182. package/src/global/A-Caller/A_Caller.error.ts +10 -0
  183. package/src/global/A-Caller/A_Caller.types.ts +25 -0
  184. package/src/global/A-Component/A-Component.class.ts +26 -15
  185. package/src/global/A-Component/A-Component.constants.ts +9 -0
  186. package/src/global/A-Component/A-Component.meta.ts +6 -16
  187. package/src/global/A-Component/A-Component.types.ts +53 -28
  188. package/src/global/A-Concept/A-Concept.class.ts +316 -0
  189. package/src/global/A-Concept/A-Concept.constants.ts +36 -0
  190. package/src/global/A-Concept/A-Concept.meta.ts +17 -0
  191. package/src/global/A-Concept/A-Concept.types.ts +100 -0
  192. package/src/global/A-Container/A-Container.class.ts +42 -83
  193. package/src/global/A-Container/A-Container.constants.ts +5 -0
  194. package/src/global/A-Container/A-Container.meta.ts +7 -11
  195. package/src/global/A-Container/A-Container.types.ts +38 -34
  196. package/src/global/A-Context/A-Context.class.ts +648 -412
  197. package/src/global/A-Context/A-Context.error.ts +44 -0
  198. package/src/global/A-Context/A-Context.types.ts +14 -0
  199. package/src/global/A-Entity/A-Entity.class.ts +33 -88
  200. package/src/global/A-Entity/A-Entity.constants.ts +12 -0
  201. package/src/global/A-Entity/A-Entity.error.ts +12 -0
  202. package/src/global/A-Entity/A-Entity.meta.ts +4 -4
  203. package/src/global/A-Entity/A-Entity.types.ts +31 -36
  204. package/src/global/A-Error/A_Error.class.ts +408 -0
  205. package/src/global/A-Error/A_Error.constants.ts +11 -0
  206. package/src/global/A-Error/A_Error.types.ts +96 -0
  207. package/src/{decorators → global}/A-Feature/A-Feature-Define.decorator.ts +31 -37
  208. package/src/global/A-Feature/A-Feature-Extend.decorator.ts +187 -0
  209. package/src/global/A-Feature/A-Feature.class.ts +279 -122
  210. package/src/global/A-Feature/A-Feature.error.ts +33 -0
  211. package/src/global/A-Feature/A-Feature.types.ts +278 -40
  212. package/src/global/A-Fragment/A-Fragment.class.ts +29 -100
  213. package/src/global/A-Fragment/A-Fragment.types.ts +25 -3
  214. package/src/global/A-Inject/A-Inject.decorator.ts +167 -0
  215. package/src/global/A-Inject/A-Inject.error.ts +8 -0
  216. package/src/global/A-Inject/A-Inject.types.ts +75 -0
  217. package/src/global/A-Meta/A-Meta.class.ts +1 -1
  218. package/src/global/A-Meta/A-Meta.types.ts +21 -0
  219. package/src/global/A-Scope/A-Scope.class.ts +288 -299
  220. package/src/global/A-Scope/A-Scope.error.ts +13 -0
  221. package/src/global/A-Scope/A-Scope.types.ts +61 -27
  222. package/src/global/A-Stage/A-Stage.class.ts +142 -80
  223. package/src/global/A-Stage/A-Stage.error.ts +4 -2
  224. package/src/global/A-Stage/A-Stage.types.ts +4 -25
  225. package/src/global/ASEID/ASEID.class.ts +275 -0
  226. package/src/global/ASEID/ASEID.error.ts +12 -0
  227. package/src/global/ASEID/ASEID.types.ts +79 -0
  228. package/src/helpers/A_Common.helper.ts +204 -0
  229. package/src/helpers/A_Formatter.helper.ts +58 -0
  230. package/src/helpers/A_Identity.helper.ts +53 -0
  231. package/src/helpers/{StepsManager.class.ts → A_StepsManager.class.ts} +19 -3
  232. package/src/helpers/A_TypeGuards.helper.ts +318 -0
  233. package/src/types/A_Common.types.ts +79 -0
  234. package/tests/A-Common.test.ts +117 -0
  235. package/tests/A-Component.test.ts +11 -6
  236. package/tests/A-Concept.test.ts +19 -22
  237. package/tests/A-Entity.test.ts +24 -24
  238. package/tests/A-Error.test.ts +129 -0
  239. package/tests/A-Feature.test.ts +34 -25
  240. package/tests/A-Scope.test.ts +50 -22
  241. package/tests/ASEID.test.ts +74 -0
  242. package/tsconfig.build.json +2 -1
  243. package/tsconfig.json +3 -2
  244. package/dist/src/base/A-Config/A-Config.container.d.ts +0 -9
  245. package/dist/src/base/A-Config/A-Config.container.js +0 -69
  246. package/dist/src/base/A-Config/A-Config.container.js.map +0 -1
  247. package/dist/src/base/A-Config/A-Config.context.d.ts +0 -30
  248. package/dist/src/base/A-Config/A-Config.context.js +0 -60
  249. package/dist/src/base/A-Config/A-Config.context.js.map +0 -1
  250. package/dist/src/base/A-Config/A-Config.types.d.ts +0 -20
  251. package/dist/src/base/A-Config/A-Config.types.js +0 -7
  252. package/dist/src/base/A-Config/A-Config.types.js.map +0 -1
  253. package/dist/src/base/A-Config/components/ConfigReader.component.d.ts +0 -29
  254. package/dist/src/base/A-Config/components/ConfigReader.component.js +0 -84
  255. package/dist/src/base/A-Config/components/ConfigReader.component.js.map +0 -1
  256. package/dist/src/base/A-Config/components/ENVConfigReader.component.d.ts +0 -10
  257. package/dist/src/base/A-Config/components/ENVConfigReader.component.js +0 -37
  258. package/dist/src/base/A-Config/components/ENVConfigReader.component.js.map +0 -1
  259. package/dist/src/base/A-Config/components/FileConfigReader.component.d.ts +0 -11
  260. package/dist/src/base/A-Config/components/FileConfigReader.component.js +0 -48
  261. package/dist/src/base/A-Config/components/FileConfigReader.component.js.map +0 -1
  262. package/dist/src/base/A-Errors/A-Error.entity.d.ts +0 -3
  263. package/dist/src/base/A-Errors/A-Error.entity.js +0 -8
  264. package/dist/src/base/A-Errors/A-Error.entity.js.map +0 -1
  265. package/dist/src/base/A-Errors/A-Errors.component.d.ts +0 -19
  266. package/dist/src/base/A-Errors/A-Errors.component.js +0 -87
  267. package/dist/src/base/A-Errors/A-Errors.component.js.map +0 -1
  268. package/dist/src/base/A-Errors/A-Errors.context.d.ts +0 -27
  269. package/dist/src/base/A-Errors/A-Errors.context.js +0 -50
  270. package/dist/src/base/A-Errors/A-Errors.context.js.map +0 -1
  271. package/dist/src/base/A-Errors/A-Errors.types.d.ts +0 -5
  272. package/dist/src/base/A-Errors/A-Errors.types.js.map +0 -1
  273. package/dist/src/base/A-Logger/A-Logger.component.d.ts +0 -31
  274. package/dist/src/base/A-Logger/A-Logger.component.js +0 -155
  275. package/dist/src/base/A-Logger/A-Logger.component.js.map +0 -1
  276. package/dist/src/base/A-Logger/A-Logger.types.js +0 -2
  277. package/dist/src/base/A-Logger/A-Logger.types.js.map +0 -1
  278. package/dist/src/base/A-Polyfill/A-Polyfill.component.d.ts +0 -5
  279. package/dist/src/base/A-Polyfill/A-Polyfill.component.js +0 -34
  280. package/dist/src/base/A-Polyfill/A-Polyfill.component.js.map +0 -1
  281. package/dist/src/decorators/A-Abstraction/A-Abstraction-Extend.decorator.d.ts +0 -14
  282. package/dist/src/decorators/A-Abstraction/A-Abstraction-Extend.decorator.js +0 -53
  283. package/dist/src/decorators/A-Abstraction/A-Abstraction-Extend.decorator.js.map +0 -1
  284. package/dist/src/decorators/A-Abstraction/A-Abstraction.decorator.types.d.ts +0 -2
  285. package/dist/src/decorators/A-Abstraction/A-Abstraction.decorator.types.js +0 -3
  286. package/dist/src/decorators/A-Abstraction/A-Abstraction.decorator.types.js.map +0 -1
  287. package/dist/src/decorators/A-Connect/A-Connect.decorator.d.ts +0 -19
  288. package/dist/src/decorators/A-Connect/A-Connect.decorator.js +0 -31
  289. package/dist/src/decorators/A-Connect/A-Connect.decorator.js.map +0 -1
  290. package/dist/src/decorators/A-Connect/A-Connect.decorator.types.d.ts +0 -1
  291. package/dist/src/decorators/A-Connect/A-Connect.decorator.types.js +0 -3
  292. package/dist/src/decorators/A-Connect/A-Connect.decorator.types.js.map +0 -1
  293. package/dist/src/decorators/A-Entity/A-Entity-List.decorator.d.ts +0 -1
  294. package/dist/src/decorators/A-Entity/A-Entity-List.decorator.js +0 -8
  295. package/dist/src/decorators/A-Entity/A-Entity-List.decorator.js.map +0 -1
  296. package/dist/src/decorators/A-Entity/A-Entity.decorator.types.d.ts +0 -14
  297. package/dist/src/decorators/A-Entity/A-Entity.decorator.types.js.map +0 -1
  298. package/dist/src/decorators/A-Feature/A-Feature-Define.decorator.d.ts +0 -19
  299. package/dist/src/decorators/A-Feature/A-Feature-Define.decorator.js.map +0 -1
  300. package/dist/src/decorators/A-Feature/A-Feature-Extend.decorator.js +0 -81
  301. package/dist/src/decorators/A-Feature/A-Feature-Extend.decorator.js.map +0 -1
  302. package/dist/src/decorators/A-Feature/A-Feature.decorator.types.d.ts +0 -96
  303. package/dist/src/decorators/A-Feature/A-Feature.decorator.types.js +0 -3
  304. package/dist/src/decorators/A-Feature/A-Feature.decorator.types.js.map +0 -1
  305. package/dist/src/decorators/A-Inject/A-Inject.decorator.d.ts +0 -30
  306. package/dist/src/decorators/A-Inject/A-Inject.decorator.js +0 -47
  307. package/dist/src/decorators/A-Inject/A-Inject.decorator.js.map +0 -1
  308. package/dist/src/decorators/A-Inject/A-Inject.decorator.types.d.ts +0 -48
  309. package/dist/src/decorators/A-Inject/A-Inject.decorator.types.js.map +0 -1
  310. package/dist/src/global/A-Channel/A-Channel.class.d.ts +0 -16
  311. package/dist/src/global/A-Channel/A-Channel.class.js +0 -59
  312. package/dist/src/global/A-Channel/A-Channel.class.js.map +0 -1
  313. package/dist/src/global/A-Channel/A-Channel.types.d.ts +0 -68
  314. package/dist/src/global/A-Channel/A-Channel.types.js.map +0 -1
  315. package/dist/src/global/A-Command/A-Command.class.d.ts +0 -187
  316. package/dist/src/global/A-Command/A-Command.class.js +0 -349
  317. package/dist/src/global/A-Command/A-Command.class.js.map +0 -1
  318. package/dist/src/global/A-Command/A-Command.constants.d.ts +0 -17
  319. package/dist/src/global/A-Command/A-Command.constants.js +0 -22
  320. package/dist/src/global/A-Command/A-Command.constants.js.map +0 -1
  321. package/dist/src/global/A-Command/A-Command.meta.d.ts +0 -11
  322. package/dist/src/global/A-Command/A-Command.meta.js +0 -18
  323. package/dist/src/global/A-Command/A-Command.meta.js.map +0 -1
  324. package/dist/src/global/A-Command/A-Command.types.d.ts +0 -43
  325. package/dist/src/global/A-Command/A-Command.types.js +0 -10
  326. package/dist/src/global/A-Command/A-Command.types.js.map +0 -1
  327. package/dist/src/global/A-Command/context/A_Command.context.d.ts +0 -64
  328. package/dist/src/global/A-Command/context/A_Command.context.js +0 -85
  329. package/dist/src/global/A-Command/context/A_Command.context.js.map +0 -1
  330. package/dist/src/global/A-Concept/A_Concept.class.d.ts +0 -104
  331. package/dist/src/global/A-Concept/A_Concept.class.js +0 -217
  332. package/dist/src/global/A-Concept/A_Concept.class.js.map +0 -1
  333. package/dist/src/global/A-Concept/A_Concept.meta.js.map +0 -1
  334. package/dist/src/global/A-Concept/A_Concept.types.d.ts +0 -103
  335. package/dist/src/global/A-Concept/A_Concept.types.js +0 -28
  336. package/dist/src/global/A-Concept/A_Concept.types.js.map +0 -1
  337. package/dist/src/global/A-Feature/A-FeatureCaller.class.d.ts +0 -22
  338. package/dist/src/global/A-Feature/A-FeatureCaller.class.js +0 -26
  339. package/dist/src/global/A-Feature/A-FeatureCaller.class.js.map +0 -1
  340. package/dist/src/global/A-Scope/A-Scope.constants.d.ts +0 -2
  341. package/dist/src/global/A-Scope/A-Scope.constants.js +0 -11
  342. package/dist/src/global/A-Scope/A-Scope.constants.js.map +0 -1
  343. package/dist/src/helpers/StepsManager.class.js.map +0 -1
  344. package/dist/src/types/A_Module.types.d.ts +0 -17
  345. package/dist/src/types/A_Module.types.js +0 -22
  346. package/dist/src/types/A_Module.types.js.map +0 -1
  347. package/examples/entity/concept.ts +0 -68
  348. package/examples/entity/entities/Task.entity.ts +0 -110
  349. package/examples/entity/entities/User.entity.ts +0 -62
  350. package/examples/fe-be/channels/Test.channel.ts +0 -27
  351. package/examples/fe-be/components/BE-Controller.component.ts +0 -20
  352. package/examples/fe-be/components/FE.component.ts +0 -13
  353. package/examples/fe-be/containers/ServerApp.container.ts +0 -8
  354. package/examples/fe-be/containers/WebApp.container.ts +0 -13
  355. package/examples/multi-container/channels/Direct.channel.ts +0 -39
  356. package/examples/multi-container/concept.ts +0 -0
  357. package/examples/multi-container/containers/Command.container.ts +0 -41
  358. package/examples/multi-container/containers/Schedule.container.ts +0 -52
  359. package/examples/simple/components/A.component.ts +0 -71
  360. package/examples/simple/components/B.component.ts +0 -68
  361. package/examples/simple/concept.ts +0 -87
  362. package/examples/simple/containers/Main.container.ts +0 -88
  363. package/examples/simple/containers/Secondary.container.ts +0 -26
  364. package/examples/simple/context/Fragment_A.context.ts +0 -25
  365. package/examples/simple/context/Fragment_B.context.ts +0 -19
  366. package/examples/simple/entities/EntityA.entity.ts +0 -32
  367. package/examples/simple-http-server/components/http-error-handler.component.ts +0 -47
  368. package/examples/simple-http-server/components/http-request-handler.component.ts +0 -13
  369. package/examples/simple-http-server/concept.ts +0 -35
  370. package/examples/simple-http-server/containers/http-server.container.ts +0 -57
  371. package/examples/simple-http-server/contexts/http-request.context.ts +0 -59
  372. package/examples/simple-http-server/contexts/http-server.context.types.ts +0 -0
  373. package/examples/simple-http-server/controllers/orders.controller.ts +0 -20
  374. package/examples/simple-http-server/controllers/users.controller.ts +0 -104
  375. package/examples/simple-http-server/test.ts +0 -290
  376. package/src/base/A-Config/A-Config.container.ts +0 -68
  377. package/src/base/A-Config/A-Config.context.ts +0 -114
  378. package/src/base/A-Config/A-Config.types.ts +0 -28
  379. package/src/base/A-Config/components/ConfigReader.component.ts +0 -68
  380. package/src/base/A-Config/components/ENVConfigReader.component.ts +0 -31
  381. package/src/base/A-Config/components/FileConfigReader.component.ts +0 -41
  382. package/src/base/A-Errors/A-Error.entity.ts +0 -10
  383. package/src/base/A-Errors/A-Errors.component.ts +0 -103
  384. package/src/base/A-Errors/A-Errors.context.ts +0 -90
  385. package/src/base/A-Errors/A-Errors.types.ts +0 -6
  386. package/src/base/A-Logger/A-Logger.component.ts +0 -192
  387. package/src/base/A-Logger/A-Logger.types.ts +0 -0
  388. package/src/base/A-Polyfill/A-Polyfill.component.ts +0 -18
  389. package/src/decorators/A-Abstraction/A-Abstraction-Extend.decorator.ts +0 -81
  390. package/src/decorators/A-Abstraction/A-Abstraction.decorator.types.ts +0 -21
  391. package/src/decorators/A-Connect/A-Connect.decorator.ts +0 -71
  392. package/src/decorators/A-Connect/A-Connect.decorator.types.ts +0 -6
  393. package/src/decorators/A-Entity/A-Entity-List.decorator.ts +0 -12
  394. package/src/decorators/A-Entity/A-Entity.decorator.types.ts +0 -18
  395. package/src/decorators/A-Feature/A-Feature-Extend.decorator.ts +0 -151
  396. package/src/decorators/A-Feature/A-Feature.decorator.types.ts +0 -142
  397. package/src/decorators/A-Inject/A-Inject.decorator.ts +0 -119
  398. package/src/decorators/A-Inject/A-Inject.decorator.types.ts +0 -85
  399. package/src/global/A-Channel/A-Channel.class.ts +0 -111
  400. package/src/global/A-Channel/A-Channel.types.ts +0 -114
  401. package/src/global/A-Command/A-Command.class.ts +0 -419
  402. package/src/global/A-Command/A-Command.constants.ts +0 -27
  403. package/src/global/A-Command/A-Command.meta.ts +0 -22
  404. package/src/global/A-Command/A-Command.types.ts +0 -73
  405. package/src/global/A-Command/context/A_Command.context.ts +0 -114
  406. package/src/global/A-Concept/A_Concept.class.ts +0 -298
  407. package/src/global/A-Concept/A_Concept.meta.ts +0 -32
  408. package/src/global/A-Concept/A_Concept.types.ts +0 -143
  409. package/src/global/A-Feature/A-FeatureCaller.class.ts +0 -38
  410. package/src/global/A-Scope/A-Scope.constants.ts +0 -9
  411. package/src/types/A_Module.types.ts +0 -23
  412. package/tests/A-Command.test.ts +0 -133
  413. package/tests/A-Config.test.ts +0 -172
  414. /package/dist/src/global/A-Concept/{A_Concept.meta.d.ts → A-Concept.meta.d.ts} +0 -0
  415. /package/dist/src/{base/A-Logger/A-Logger.types.d.ts → global/ASEID/ASEID.constants.d.ts} +0 -0
  416. /package/{examples/fe-be/concept.ts → src/global/ASEID/ASEID.constants.ts} +0 -0
package/dist/index.d.ts CHANGED
@@ -1,10 +1,9 @@
1
1
  export * from './src/constants/env.constants';
2
2
  export { A_Context } from './src/global/A-Context/A-Context.class';
3
- export { A_Abstraction } from './src/global/A-Abstraction/A-Abstraction.class';
4
- export * from './src/global/A-Abstraction/A-Abstraction.types';
5
- export { A_Concept } from './src/global/A-Concept/A_Concept.class';
6
- export { A_ConceptMeta } from './src/global/A-Concept/A_Concept.meta';
7
- export * from './src/global/A-Concept/A_Concept.types';
3
+ export * from './src/global/A-Context/A-Context.types';
4
+ export { A_Concept } from './src/global/A-Concept/A-Concept.class';
5
+ export { A_ConceptMeta } from './src/global/A-Concept/A-Concept.meta';
6
+ export * from './src/global/A-Concept/A-Concept.types';
8
7
  export { A_Container } from './src/global/A-Container/A-Container.class';
9
8
  export { A_ContainerMeta } from './src/global/A-Container/A-Container.meta';
10
9
  export * from './src/global/A-Container/A-Container.class';
@@ -13,39 +12,32 @@ export { A_ComponentMeta } from './src/global/A-Component/A-Component.meta';
13
12
  export * from './src/global/A-Component/A-Component.types';
14
13
  export { A_Entity } from './src/global/A-Entity/A-Entity.class';
15
14
  export * from './src/global/A-Entity/A-Entity.types';
16
- export { A_Channel } from './src/global/A-Channel/A-Channel.class';
17
- export * from './src/global/A-Channel/A-Channel.types';
15
+ export { A_Abstraction } from './src/global/A-Abstraction/A-Abstraction.class';
16
+ export { A_AbstractionError } from './src/global/A-Abstraction/A-Abstraction.error';
17
+ export * from './src/global/A-Abstraction/A-Abstraction.types';
18
+ export { A_Caller } from './src/global/A-Caller/A_Caller.class';
19
+ export { A_CallerError } from './src/global/A-Caller/A_Caller.error';
20
+ export * from './src/global/A-Caller/A_Caller.types';
21
+ export { A_Error } from './src/global/A-Error/A_Error.class';
22
+ export * from './src/global/A-Error/A_Error.types';
23
+ export { ASEID } from './src/global/ASEID/ASEID.class';
24
+ export { ASEID_Error } from './src/global/ASEID/ASEID.error';
25
+ export * from './src/global/ASEID/ASEID.types';
18
26
  export { A_Feature } from './src/global/A-Feature/A-Feature.class';
19
- export { A_FeatureCaller } from './src/global/A-Feature/A-FeatureCaller.class';
27
+ export { A_FeatureError } from './src/global/A-Feature/A-Feature.error';
20
28
  export * from './src/global/A-Feature/A-Feature.types';
21
29
  export { A_Stage } from './src/global/A-Stage/A-Stage.class';
30
+ export { A_StageError } from './src/global/A-Stage/A-Stage.error';
22
31
  export * from './src/global/A-Stage/A-Stage.types';
23
32
  export { A_Scope } from './src/global/A-Scope/A-Scope.class';
33
+ export { A_ScopeError } from './src/global/A-Scope/A-Scope.error';
24
34
  export * from './src/global/A-Scope/A-Scope.types';
25
35
  export { A_Meta } from './src/global/A-Meta/A-Meta.class';
36
+ export * from './src/global/A-Meta/A-Meta.types';
26
37
  export { A_Fragment } from './src/global/A-Fragment/A-Fragment.class';
27
38
  export * from './src/global/A-Fragment/A-Fragment.types';
28
- export { A_Inject } from './src/decorators/A-Inject/A-Inject.decorator';
29
- export * from './src/decorators/A-Inject/A-Inject.decorator.types';
30
- export { A_Feature_Define } from './src/decorators/A-Feature/A-Feature-Define.decorator';
31
- export { A_Feature_Extend } from './src/decorators/A-Feature/A-Feature-Extend.decorator';
32
- export * from './src/decorators/A-Feature/A-Feature.decorator.types';
33
- export { A_Abstraction_Extend } from './src/decorators/A-Abstraction/A-Abstraction-Extend.decorator';
34
- export * from './src/decorators/A-Abstraction/A-Abstraction.decorator.types';
35
- export { A_Connect } from './src/decorators/A-Connect/A-Connect.decorator';
36
- export * from './src/decorators/A-Connect/A-Connect.decorator.types';
37
- export { A_ConfigLoader } from './src/base/A-Config/A-Config.container';
38
- export { A_Config } from './src/base/A-Config/A-Config.context';
39
- export * from './src/base/A-Config/A-Config.types';
40
- export { ConfigReader } from './src/base/A-Config/components/ConfigReader.component';
41
- export { ENVConfigReader } from './src/base/A-Config/components/ENVConfigReader.component';
42
- export { FileConfigReader } from './src/base/A-Config/components/FileConfigReader.component';
43
- export * from './src/base/A-Config/A-Config.types';
44
- export * from './src/base/A-Logger/A-Logger.component';
45
- export { A_Command } from './src/global/A-Command/A-Command.class';
46
- export * from './src/global/A-Command/A-Command.types';
47
- export * from './src/global/A-Command/A-Command.constants';
48
- export { A_CommandContext } from './src/global/A-Command/context/A_Command.context';
49
- export { A_ErrorsManager } from './src/base/A-Errors/A-Errors.component';
50
- export { A_Errors } from './src/base/A-Errors/A-Errors.context';
51
- export * from './src/base/A-Errors/A-Errors.types';
39
+ export { A_Inject } from './src/global/A-Inject/A-Inject.decorator';
40
+ export * from './src/global/A-Inject/A-Inject.types';
41
+ export { A_Feature_Define } from './src/global/A-Feature/A-Feature-Define.decorator';
42
+ export { A_Feature_Extend } from './src/global/A-Feature/A-Feature-Extend.decorator';
43
+ export { A_Abstraction_Extend } from './src/global/A-Abstraction/A-Abstraction-Extend.decorator';
package/dist/index.js CHANGED
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.A_Errors = exports.A_ErrorsManager = exports.A_CommandContext = exports.A_Command = exports.FileConfigReader = exports.ENVConfigReader = exports.ConfigReader = exports.A_Config = exports.A_ConfigLoader = exports.A_Connect = exports.A_Abstraction_Extend = exports.A_Feature_Extend = exports.A_Feature_Define = exports.A_Inject = exports.A_Fragment = exports.A_Meta = exports.A_Scope = exports.A_Stage = exports.A_FeatureCaller = exports.A_Feature = exports.A_Channel = exports.A_Entity = exports.A_ComponentMeta = exports.A_Component = exports.A_ContainerMeta = exports.A_Container = exports.A_ConceptMeta = exports.A_Concept = exports.A_Abstraction = exports.A_Context = void 0;
17
+ exports.A_Abstraction_Extend = exports.A_Feature_Extend = exports.A_Feature_Define = exports.A_Inject = exports.A_Fragment = exports.A_Meta = exports.A_ScopeError = exports.A_Scope = exports.A_StageError = exports.A_Stage = exports.A_FeatureError = exports.A_Feature = exports.ASEID_Error = exports.ASEID = exports.A_Error = exports.A_CallerError = exports.A_Caller = exports.A_AbstractionError = exports.A_Abstraction = exports.A_Entity = exports.A_ComponentMeta = exports.A_Component = exports.A_ContainerMeta = exports.A_Container = exports.A_ConceptMeta = exports.A_Concept = exports.A_Context = void 0;
18
18
  // =================================================================================================
19
19
  // ============================= Export Framework Components =======================================
20
20
  // =================================================================================================
@@ -22,15 +22,12 @@ __exportStar(require("./src/constants/env.constants"), exports);
22
22
  // ---------------------- Major Components ----------------------
23
23
  var A_Context_class_1 = require("./src/global/A-Context/A-Context.class");
24
24
  Object.defineProperty(exports, "A_Context", { enumerable: true, get: function () { return A_Context_class_1.A_Context; } });
25
- // export * from './src/global/A-Context/A-Context.types';
26
- var A_Abstraction_class_1 = require("./src/global/A-Abstraction/A-Abstraction.class");
27
- Object.defineProperty(exports, "A_Abstraction", { enumerable: true, get: function () { return A_Abstraction_class_1.A_Abstraction; } });
28
- __exportStar(require("./src/global/A-Abstraction/A-Abstraction.types"), exports);
29
- var A_Concept_class_1 = require("./src/global/A-Concept/A_Concept.class");
25
+ __exportStar(require("./src/global/A-Context/A-Context.types"), exports);
26
+ var A_Concept_class_1 = require("./src/global/A-Concept/A-Concept.class");
30
27
  Object.defineProperty(exports, "A_Concept", { enumerable: true, get: function () { return A_Concept_class_1.A_Concept; } });
31
- var A_Concept_meta_1 = require("./src/global/A-Concept/A_Concept.meta");
28
+ var A_Concept_meta_1 = require("./src/global/A-Concept/A-Concept.meta");
32
29
  Object.defineProperty(exports, "A_ConceptMeta", { enumerable: true, get: function () { return A_Concept_meta_1.A_ConceptMeta; } });
33
- __exportStar(require("./src/global/A-Concept/A_Concept.types"), exports);
30
+ __exportStar(require("./src/global/A-Concept/A-Concept.types"), exports);
34
31
  var A_Container_class_1 = require("./src/global/A-Container/A-Container.class");
35
32
  Object.defineProperty(exports, "A_Container", { enumerable: true, get: function () { return A_Container_class_1.A_Container; } });
36
33
  var A_Container_meta_1 = require("./src/global/A-Container/A-Container.meta");
@@ -45,69 +42,55 @@ var A_Entity_class_1 = require("./src/global/A-Entity/A-Entity.class");
45
42
  Object.defineProperty(exports, "A_Entity", { enumerable: true, get: function () { return A_Entity_class_1.A_Entity; } });
46
43
  __exportStar(require("./src/global/A-Entity/A-Entity.types"), exports);
47
44
  // ---------------------- Common Components ----------------------
48
- var A_Channel_class_1 = require("./src/global/A-Channel/A-Channel.class");
49
- Object.defineProperty(exports, "A_Channel", { enumerable: true, get: function () { return A_Channel_class_1.A_Channel; } });
50
- __exportStar(require("./src/global/A-Channel/A-Channel.types"), exports);
45
+ var A_Abstraction_class_1 = require("./src/global/A-Abstraction/A-Abstraction.class");
46
+ Object.defineProperty(exports, "A_Abstraction", { enumerable: true, get: function () { return A_Abstraction_class_1.A_Abstraction; } });
47
+ var A_Abstraction_error_1 = require("./src/global/A-Abstraction/A-Abstraction.error");
48
+ Object.defineProperty(exports, "A_AbstractionError", { enumerable: true, get: function () { return A_Abstraction_error_1.A_AbstractionError; } });
49
+ __exportStar(require("./src/global/A-Abstraction/A-Abstraction.types"), exports);
50
+ var A_Caller_class_1 = require("./src/global/A-Caller/A_Caller.class");
51
+ Object.defineProperty(exports, "A_Caller", { enumerable: true, get: function () { return A_Caller_class_1.A_Caller; } });
52
+ var A_Caller_error_1 = require("./src/global/A-Caller/A_Caller.error");
53
+ Object.defineProperty(exports, "A_CallerError", { enumerable: true, get: function () { return A_Caller_error_1.A_CallerError; } });
54
+ __exportStar(require("./src/global/A-Caller/A_Caller.types"), exports);
55
+ var A_Error_class_1 = require("./src/global/A-Error/A_Error.class");
56
+ Object.defineProperty(exports, "A_Error", { enumerable: true, get: function () { return A_Error_class_1.A_Error; } });
57
+ __exportStar(require("./src/global/A-Error/A_Error.types"), exports);
58
+ var ASEID_class_1 = require("./src/global/ASEID/ASEID.class");
59
+ Object.defineProperty(exports, "ASEID", { enumerable: true, get: function () { return ASEID_class_1.ASEID; } });
60
+ var ASEID_error_1 = require("./src/global/ASEID/ASEID.error");
61
+ Object.defineProperty(exports, "ASEID_Error", { enumerable: true, get: function () { return ASEID_error_1.ASEID_Error; } });
62
+ __exportStar(require("./src/global/ASEID/ASEID.types"), exports);
51
63
  var A_Feature_class_1 = require("./src/global/A-Feature/A-Feature.class");
52
64
  Object.defineProperty(exports, "A_Feature", { enumerable: true, get: function () { return A_Feature_class_1.A_Feature; } });
53
- var A_FeatureCaller_class_1 = require("./src/global/A-Feature/A-FeatureCaller.class");
54
- Object.defineProperty(exports, "A_FeatureCaller", { enumerable: true, get: function () { return A_FeatureCaller_class_1.A_FeatureCaller; } });
65
+ var A_Feature_error_1 = require("./src/global/A-Feature/A-Feature.error");
66
+ Object.defineProperty(exports, "A_FeatureError", { enumerable: true, get: function () { return A_Feature_error_1.A_FeatureError; } });
55
67
  __exportStar(require("./src/global/A-Feature/A-Feature.types"), exports);
56
68
  var A_Stage_class_1 = require("./src/global/A-Stage/A-Stage.class");
57
69
  Object.defineProperty(exports, "A_Stage", { enumerable: true, get: function () { return A_Stage_class_1.A_Stage; } });
70
+ var A_Stage_error_1 = require("./src/global/A-Stage/A-Stage.error");
71
+ Object.defineProperty(exports, "A_StageError", { enumerable: true, get: function () { return A_Stage_error_1.A_StageError; } });
58
72
  __exportStar(require("./src/global/A-Stage/A-Stage.types"), exports);
59
73
  var A_Scope_class_1 = require("./src/global/A-Scope/A-Scope.class");
60
74
  Object.defineProperty(exports, "A_Scope", { enumerable: true, get: function () { return A_Scope_class_1.A_Scope; } });
75
+ var A_Scope_error_1 = require("./src/global/A-Scope/A-Scope.error");
76
+ Object.defineProperty(exports, "A_ScopeError", { enumerable: true, get: function () { return A_Scope_error_1.A_ScopeError; } });
61
77
  __exportStar(require("./src/global/A-Scope/A-Scope.types"), exports);
62
78
  var A_Meta_class_1 = require("./src/global/A-Meta/A-Meta.class");
63
79
  Object.defineProperty(exports, "A_Meta", { enumerable: true, get: function () { return A_Meta_class_1.A_Meta; } });
64
- // export * from './src/global/A-Meta/A-Meta.types';
80
+ __exportStar(require("./src/global/A-Meta/A-Meta.types"), exports);
65
81
  var A_Fragment_class_1 = require("./src/global/A-Fragment/A-Fragment.class");
66
82
  Object.defineProperty(exports, "A_Fragment", { enumerable: true, get: function () { return A_Fragment_class_1.A_Fragment; } });
67
83
  __exportStar(require("./src/global/A-Fragment/A-Fragment.types"), exports);
68
84
  // =================================================================================================
69
85
  // =============================== Export Decorators ============================================
70
86
  // =================================================================================================
71
- var A_Inject_decorator_1 = require("./src/decorators/A-Inject/A-Inject.decorator");
87
+ var A_Inject_decorator_1 = require("./src/global/A-Inject/A-Inject.decorator");
72
88
  Object.defineProperty(exports, "A_Inject", { enumerable: true, get: function () { return A_Inject_decorator_1.A_Inject; } });
73
- __exportStar(require("./src/decorators/A-Inject/A-Inject.decorator.types"), exports);
74
- var A_Feature_Define_decorator_1 = require("./src/decorators/A-Feature/A-Feature-Define.decorator");
89
+ __exportStar(require("./src/global/A-Inject/A-Inject.types"), exports);
90
+ var A_Feature_Define_decorator_1 = require("./src/global/A-Feature/A-Feature-Define.decorator");
75
91
  Object.defineProperty(exports, "A_Feature_Define", { enumerable: true, get: function () { return A_Feature_Define_decorator_1.A_Feature_Define; } });
76
- var A_Feature_Extend_decorator_1 = require("./src/decorators/A-Feature/A-Feature-Extend.decorator");
92
+ var A_Feature_Extend_decorator_1 = require("./src/global/A-Feature/A-Feature-Extend.decorator");
77
93
  Object.defineProperty(exports, "A_Feature_Extend", { enumerable: true, get: function () { return A_Feature_Extend_decorator_1.A_Feature_Extend; } });
78
- __exportStar(require("./src/decorators/A-Feature/A-Feature.decorator.types"), exports);
79
- var A_Abstraction_Extend_decorator_1 = require("./src/decorators/A-Abstraction/A-Abstraction-Extend.decorator");
94
+ var A_Abstraction_Extend_decorator_1 = require("./src/global/A-Abstraction/A-Abstraction-Extend.decorator");
80
95
  Object.defineProperty(exports, "A_Abstraction_Extend", { enumerable: true, get: function () { return A_Abstraction_Extend_decorator_1.A_Abstraction_Extend; } });
81
- __exportStar(require("./src/decorators/A-Abstraction/A-Abstraction.decorator.types"), exports);
82
- var A_Connect_decorator_1 = require("./src/decorators/A-Connect/A-Connect.decorator");
83
- Object.defineProperty(exports, "A_Connect", { enumerable: true, get: function () { return A_Connect_decorator_1.A_Connect; } });
84
- __exportStar(require("./src/decorators/A-Connect/A-Connect.decorator.types"), exports);
85
- // =================================================================================================
86
- // =============================== Export Base Entities ============================================
87
- // =================================================================================================
88
- var A_Config_container_1 = require("./src/base/A-Config/A-Config.container");
89
- Object.defineProperty(exports, "A_ConfigLoader", { enumerable: true, get: function () { return A_Config_container_1.A_ConfigLoader; } });
90
- var A_Config_context_1 = require("./src/base/A-Config/A-Config.context");
91
- Object.defineProperty(exports, "A_Config", { enumerable: true, get: function () { return A_Config_context_1.A_Config; } });
92
- __exportStar(require("./src/base/A-Config/A-Config.types"), exports);
93
- var ConfigReader_component_1 = require("./src/base/A-Config/components/ConfigReader.component");
94
- Object.defineProperty(exports, "ConfigReader", { enumerable: true, get: function () { return ConfigReader_component_1.ConfigReader; } });
95
- var ENVConfigReader_component_1 = require("./src/base/A-Config/components/ENVConfigReader.component");
96
- Object.defineProperty(exports, "ENVConfigReader", { enumerable: true, get: function () { return ENVConfigReader_component_1.ENVConfigReader; } });
97
- var FileConfigReader_component_1 = require("./src/base/A-Config/components/FileConfigReader.component");
98
- Object.defineProperty(exports, "FileConfigReader", { enumerable: true, get: function () { return FileConfigReader_component_1.FileConfigReader; } });
99
- __exportStar(require("./src/base/A-Config/A-Config.types"), exports);
100
- __exportStar(require("./src/base/A-Logger/A-Logger.component"), exports);
101
- // export * from './src/base/A-Logger/A-Logger.types';
102
- var A_Command_class_1 = require("./src/global/A-Command/A-Command.class");
103
- Object.defineProperty(exports, "A_Command", { enumerable: true, get: function () { return A_Command_class_1.A_Command; } });
104
- __exportStar(require("./src/global/A-Command/A-Command.types"), exports);
105
- __exportStar(require("./src/global/A-Command/A-Command.constants"), exports);
106
- var A_Command_context_1 = require("./src/global/A-Command/context/A_Command.context");
107
- Object.defineProperty(exports, "A_CommandContext", { enumerable: true, get: function () { return A_Command_context_1.A_CommandContext; } });
108
- var A_Errors_component_1 = require("./src/base/A-Errors/A-Errors.component");
109
- Object.defineProperty(exports, "A_ErrorsManager", { enumerable: true, get: function () { return A_Errors_component_1.A_ErrorsManager; } });
110
- var A_Errors_context_1 = require("./src/base/A-Errors/A-Errors.context");
111
- Object.defineProperty(exports, "A_Errors", { enumerable: true, get: function () { return A_Errors_context_1.A_Errors; } });
112
- __exportStar(require("./src/base/A-Errors/A-Errors.types"), exports);
113
96
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,oGAAoG;AACpG,oGAAoG;AACpG,oGAAoG;AACpG,gEAA8C;AAE9C,iEAAiE;AACjE,0EAAmE;AAA1D,4GAAA,SAAS,OAAA;AAClB,0DAA0D;AAE1D,sFAA+E;AAAtE,oHAAA,aAAa,OAAA;AACtB,iFAA+D;AAE/D,0EAAmE;AAA1D,4GAAA,SAAS,OAAA;AAClB,wEAAsE;AAA7D,+GAAA,aAAa,OAAA;AACtB,yEAAuD;AAEvD,gFAAyE;AAAhE,gHAAA,WAAW,OAAA;AACpB,8EAA4E;AAAnE,mHAAA,eAAe,OAAA;AACxB,6EAA2D;AAE3D,gFAAyE;AAAhE,gHAAA,WAAW,OAAA;AACpB,8EAA4E;AAAnE,mHAAA,eAAe,OAAA;AACxB,6EAA2D;AAE3D,uEAAgE;AAAvD,0GAAA,QAAQ,OAAA;AACjB,uEAAqD;AAGrD,kEAAkE;AAClE,0EAAmE;AAA1D,4GAAA,SAAS,OAAA;AAClB,yEAAuD;AAEvD,0EAAmE;AAA1D,4GAAA,SAAS,OAAA;AAClB,sFAA+E;AAAtE,wHAAA,eAAe,OAAA;AACxB,yEAAuD;AAEvD,oEAA6D;AAApD,wGAAA,OAAO,OAAA;AAChB,qEAAmD;AAEnD,oEAA6D;AAApD,wGAAA,OAAO,OAAA;AAChB,qEAAmD;AAEnD,iEAA0D;AAAjD,sGAAA,MAAM,OAAA;AACf,oDAAoD;AAEpD,6EAAsE;AAA7D,8GAAA,UAAU,OAAA;AACnB,2EAAyD;AAGzD,oGAAoG;AACpG,iGAAiG;AACjG,oGAAoG;AAEpG,mFAAwE;AAA/D,8GAAA,QAAQ,OAAA;AACjB,qFAAmE;AAEnE,oGAAyF;AAAhF,8HAAA,gBAAgB,OAAA;AACzB,oGAAyF;AAAhF,8HAAA,gBAAgB,OAAA;AACzB,uFAAqE;AAErE,gHAAqG;AAA5F,sIAAA,oBAAoB,OAAA;AAC7B,+FAA6E;AAE7E,sFAA2E;AAAlE,gHAAA,SAAS,OAAA;AAClB,uFAAqE;AAGrE,oGAAoG;AACpG,oGAAoG;AACpG,oGAAoG;AACpG,6EAAwE;AAA/D,oHAAA,cAAc,OAAA;AACvB,yEAAgE;AAAvD,4GAAA,QAAQ,OAAA;AACjB,qEAAmD;AACnD,gGAAqF;AAA5E,sHAAA,YAAY,OAAA;AACrB,sGAA2F;AAAlF,4HAAA,eAAe,OAAA;AACxB,wGAA6F;AAApF,8HAAA,gBAAgB,OAAA;AACzB,qEAAmD;AAEnD,yEAAuD;AACvD,sDAAsD;AAItD,0EAAmE;AAA1D,4GAAA,SAAS,OAAA;AAClB,yEAAuD;AACvD,6EAA2D;AAC3D,sFAAoF;AAA3E,qHAAA,gBAAgB,OAAA;AAGzB,6EAAyE;AAAhE,qHAAA,eAAe,OAAA;AACxB,yEAAgE;AAAvD,4GAAA,QAAQ,OAAA;AACjB,qEAAmD"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,oGAAoG;AACpG,oGAAoG;AACpG,oGAAoG;AACpG,gEAA8C;AAE9C,iEAAiE;AACjE,0EAAmE;AAA1D,4GAAA,SAAS,OAAA;AAClB,yEAAuD;AAEvD,0EAAmE;AAA1D,4GAAA,SAAS,OAAA;AAClB,wEAAsE;AAA7D,+GAAA,aAAa,OAAA;AACtB,yEAAuD;AAEvD,gFAAyE;AAAhE,gHAAA,WAAW,OAAA;AACpB,8EAA4E;AAAnE,mHAAA,eAAe,OAAA;AACxB,6EAA2D;AAE3D,gFAAyE;AAAhE,gHAAA,WAAW,OAAA;AACpB,8EAA4E;AAAnE,mHAAA,eAAe,OAAA;AACxB,6EAA2D;AAE3D,uEAAgE;AAAvD,0GAAA,QAAQ,OAAA;AACjB,uEAAqD;AAGrD,kEAAkE;AAClE,sFAA+E;AAAtE,oHAAA,aAAa,OAAA;AACtB,sFAAoF;AAA3E,yHAAA,kBAAkB,OAAA;AAC3B,iFAA+D;AAE/D,uEAAgE;AAAvD,0GAAA,QAAQ,OAAA;AACjB,uEAAqE;AAA5D,+GAAA,aAAa,OAAA;AACtB,uEAAqD;AAErD,oEAA6D;AAApD,wGAAA,OAAO,OAAA;AAChB,qEAAmD;AAEnD,8DAAuD;AAA9C,oGAAA,KAAK,OAAA;AACd,8DAA6D;AAApD,0GAAA,WAAW,OAAA;AACpB,iEAA+C;AAE/C,0EAAmE;AAA1D,4GAAA,SAAS,OAAA;AAClB,0EAAwE;AAA/D,iHAAA,cAAc,OAAA;AACvB,yEAAuD;AAEvD,oEAA6D;AAApD,wGAAA,OAAO,OAAA;AAChB,oEAAkE;AAAzD,6GAAA,YAAY,OAAA;AACrB,qEAAmD;AAEnD,oEAA6D;AAApD,wGAAA,OAAO,OAAA;AAChB,oEAAkE;AAAzD,6GAAA,YAAY,OAAA;AACrB,qEAAmD;AAEnD,iEAA0D;AAAjD,sGAAA,MAAM,OAAA;AACf,mEAAiD;AAEjD,6EAAsE;AAA7D,8GAAA,UAAU,OAAA;AACnB,2EAAyD;AAGzD,oGAAoG;AACpG,iGAAiG;AACjG,oGAAoG;AACpG,+EAAoE;AAA3D,8GAAA,QAAQ,OAAA;AACjB,uEAAqD;AACrD,gGAAqF;AAA5E,8HAAA,gBAAgB,OAAA;AACzB,gGAAqF;AAA5E,8HAAA,gBAAgB,OAAA;AACzB,4GAAiG;AAAxF,sIAAA,oBAAoB,OAAA"}
@@ -1,14 +1,20 @@
1
1
  export declare const A_CONSTANTS__DEFAULT_ENV_VARIABLES: {
2
2
  /**
3
- * Namespace of the application
3
+ * Name of the application
4
+ *
5
+ * DEFAULT value is 'a-concept'
6
+ *
4
7
  * [!] Provided name will be used for all aseids in the application by default
5
8
  */
6
- readonly A_CONCEPT_NAMESPACE: "A_CONCEPT_NAMESPACE";
9
+ readonly A_CONCEPT_NAME: "A_CONCEPT_NAME";
7
10
  /**
8
- * Default scope of the application
11
+ * Root scope of the application
12
+ *
13
+ * DEFAULT value is 'root'
14
+ *
9
15
  * [!] Provided name will be used for all aseids in the application by default
10
16
  */
11
- readonly A_CONCEPT_DEFAULT_SCOPE: "A_CONCEPT_DEFAULT_SCOPE";
17
+ readonly A_CONCEPT_ROOT_SCOPE: "A_CONCEPT_ROOT_SCOPE";
12
18
  /**
13
19
  * Environment of the application e.g. development, production, staging
14
20
  */
@@ -18,9 +24,10 @@ export declare const A_CONSTANTS__DEFAULT_ENV_VARIABLES: {
18
24
  * [!] Automatically set by A-Concept when the application starts
19
25
  */
20
26
  readonly A_CONCEPT_ROOT_FOLDER: "A_CONCEPT_ROOT_FOLDER";
21
- readonly CONFIG_SDK_VALIDATION: "CONFIG_SDK_VALIDATION";
22
- readonly CONFIG_VERBOSE: "CONFIG_VERBOSE";
23
- readonly CONFIG_IGNORE_ERRORS: "CONFIG_IGNORE_ERRORS";
27
+ /**
28
+ * Allows to define a default error description for errors thrown without a description
29
+ */
30
+ readonly A_ERROR_DEFAULT_DESCRIPTION: "A_ERROR_DEFAULT_DESCRIPTION";
24
31
  };
25
32
  export type A_TYPES__ConceptENVVariables = (typeof A_CONSTANTS__DEFAULT_ENV_VARIABLES)[keyof typeof A_CONSTANTS__DEFAULT_ENV_VARIABLES][];
26
- export declare const A_CONSTANTS__DEFAULT_ENV_VARIABLES_ARRAY: readonly ["A_CONCEPT_NAMESPACE", "A_CONCEPT_ENVIRONMENT", "A_CONCEPT_ROOT_FOLDER", "CONFIG_VERBOSE", "CONFIG_IGNORE_ERRORS"];
33
+ export declare const A_CONSTANTS__DEFAULT_ENV_VARIABLES_ARRAY: readonly ["A_CONCEPT_NAME", "A_CONCEPT_ROOT_SCOPE", "A_CONCEPT_ENVIRONMENT", "A_CONCEPT_ROOT_FOLDER", "A_ERROR_DEFAULT_DESCRIPTION"];
@@ -8,15 +8,21 @@ exports.A_CONSTANTS__DEFAULT_ENV_VARIABLES = {
8
8
  // These environment variables are used by A-Concept core to configure the application
9
9
  // ----------------------------------------------------------
10
10
  /**
11
- * Namespace of the application
11
+ * Name of the application
12
+ *
13
+ * DEFAULT value is 'a-concept'
14
+ *
12
15
  * [!] Provided name will be used for all aseids in the application by default
13
16
  */
14
- A_CONCEPT_NAMESPACE: 'A_CONCEPT_NAMESPACE',
17
+ A_CONCEPT_NAME: 'A_CONCEPT_NAME',
15
18
  /**
16
- * Default scope of the application
19
+ * Root scope of the application
20
+ *
21
+ * DEFAULT value is 'root'
22
+ *
17
23
  * [!] Provided name will be used for all aseids in the application by default
18
24
  */
19
- A_CONCEPT_DEFAULT_SCOPE: 'A_CONCEPT_DEFAULT_SCOPE',
25
+ A_CONCEPT_ROOT_SCOPE: 'A_CONCEPT_ROOT_SCOPE',
20
26
  /**
21
27
  * Environment of the application e.g. development, production, staging
22
28
  */
@@ -26,15 +32,16 @@ exports.A_CONSTANTS__DEFAULT_ENV_VARIABLES = {
26
32
  * [!] Automatically set by A-Concept when the application starts
27
33
  */
28
34
  A_CONCEPT_ROOT_FOLDER: 'A_CONCEPT_ROOT_FOLDER',
29
- CONFIG_SDK_VALIDATION: 'CONFIG_SDK_VALIDATION',
30
- CONFIG_VERBOSE: 'CONFIG_VERBOSE',
31
- CONFIG_IGNORE_ERRORS: 'CONFIG_IGNORE_ERRORS',
35
+ /**
36
+ * Allows to define a default error description for errors thrown without a description
37
+ */
38
+ A_ERROR_DEFAULT_DESCRIPTION: 'A_ERROR_DEFAULT_DESCRIPTION',
32
39
  };
33
40
  exports.A_CONSTANTS__DEFAULT_ENV_VARIABLES_ARRAY = [
34
- exports.A_CONSTANTS__DEFAULT_ENV_VARIABLES.A_CONCEPT_NAMESPACE,
41
+ exports.A_CONSTANTS__DEFAULT_ENV_VARIABLES.A_CONCEPT_NAME,
42
+ exports.A_CONSTANTS__DEFAULT_ENV_VARIABLES.A_CONCEPT_ROOT_SCOPE,
35
43
  exports.A_CONSTANTS__DEFAULT_ENV_VARIABLES.A_CONCEPT_ENVIRONMENT,
36
44
  exports.A_CONSTANTS__DEFAULT_ENV_VARIABLES.A_CONCEPT_ROOT_FOLDER,
37
- exports.A_CONSTANTS__DEFAULT_ENV_VARIABLES.CONFIG_VERBOSE,
38
- exports.A_CONSTANTS__DEFAULT_ENV_VARIABLES.CONFIG_IGNORE_ERRORS,
45
+ exports.A_CONSTANTS__DEFAULT_ENV_VARIABLES.A_ERROR_DEFAULT_DESCRIPTION,
39
46
  ];
40
47
  //# sourceMappingURL=env.constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"env.constants.js","sourceRoot":"","sources":["../../../src/constants/env.constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,kCAAkC,GAAG;IAC9C,6DAA6D;IAC7D,uCAAuC;IACvC,6DAA6D;IAC7D,sFAAsF;IACtF,6DAA6D;IAC7D;;;OAGG;IACH,mBAAmB,EAAE,qBAAqB;IAC1C;;;OAGG;IACH,uBAAuB,EAAE,yBAAyB;IAClD;;OAEG;IACH,qBAAqB,EAAE,uBAAuB;IAC9C;;;OAGG;IACH,qBAAqB,EAAE,uBAAuB;IAE9C,qBAAqB,EAAE,uBAAuB;IAC9C,cAAc,EAAE,gBAAgB;IAChC,oBAAoB,EAAE,sBAAsB;CACtC,CAAA;AAOG,QAAA,wCAAwC,GAAG;IACpD,0CAAkC,CAAC,mBAAmB;IACtD,0CAAkC,CAAC,qBAAqB;IACxD,0CAAkC,CAAC,qBAAqB;IACxD,0CAAkC,CAAC,cAAc;IACjD,0CAAkC,CAAC,oBAAoB;CACjD,CAAC"}
1
+ {"version":3,"file":"env.constants.js","sourceRoot":"","sources":["../../../src/constants/env.constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,kCAAkC,GAAG;IAC9C,6DAA6D;IAC7D,uCAAuC;IACvC,6DAA6D;IAC7D,sFAAsF;IACtF,6DAA6D;IAC7D;;;;;;OAMG;IACH,cAAc,EAAE,gBAAgB;IAChC;;;;;;OAMG;IACH,oBAAoB,EAAE,sBAAsB;IAC5C;;OAEG;IACH,qBAAqB,EAAE,uBAAuB;IAC9C;;;OAGG;IACH,qBAAqB,EAAE,uBAAuB;IAC9C;;OAEG;IACH,2BAA2B,EAAE,6BAA6B;CACpD,CAAA;AAOG,QAAA,wCAAwC,GAAG;IACpD,0CAAkC,CAAC,cAAc;IACjD,0CAAkC,CAAC,oBAAoB;IACvD,0CAAkC,CAAC,qBAAqB;IACxD,0CAAkC,CAAC,qBAAqB;IAExD,0CAAkC,CAAC,2BAA2B;CACxD,CAAC"}
@@ -0,0 +1,23 @@
1
+ import { A_TYPES__AbstractionDecoratorConfig, A_TYPES__AbstractionDecoratorDescriptor } from "./A-Abstraction.types";
2
+ import { A_Component } from "../A-Component/A-Component.class";
3
+ import { A_Container } from "../A-Container/A-Container.class";
4
+ import { A_TYPES__ConceptAbstractions } from "../A-Concept/A-Concept.constants";
5
+ /**
6
+ * A-Abstraction Extend decorator allows to extends behavior of each concept abstraction execution.
7
+ * In case some components or containers requires to extend the behavior of the abstraction like 'start', 'build' or 'deploy'
8
+ * for example, this decorator allows to do so.
9
+ *
10
+ * @param name - abstraction name
11
+ * @param config - configuration of the abstraction extension
12
+ * @returns
13
+ */
14
+ export declare function A_Abstraction_Extend(
15
+ /**
16
+ * Name of the Concept Abstraction to extend
17
+ */
18
+ name: A_TYPES__ConceptAbstractions,
19
+ /**
20
+ * Configuration of the Abstraction Extension
21
+ *
22
+ */
23
+ config?: Partial<A_TYPES__AbstractionDecoratorConfig>): (target: A_Container | A_Component, propertyKey: string, descriptor: A_TYPES__AbstractionDecoratorDescriptor) => void;
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.A_Abstraction_Extend = A_Abstraction_Extend;
4
+ const A_Context_class_1 = require("../A-Context/A-Context.class");
5
+ const A_Meta_class_1 = require("../A-Meta/A-Meta.class");
6
+ const A_Container_constants_1 = require("../A-Container/A-Container.constants");
7
+ const A_Component_constants_1 = require("../A-Component/A-Component.constants");
8
+ const A_Abstraction_error_1 = require("./A-Abstraction.error");
9
+ const A_TypeGuards_helper_1 = require("../../helpers/A_TypeGuards.helper");
10
+ /**
11
+ * A-Abstraction Extend decorator allows to extends behavior of each concept abstraction execution.
12
+ * In case some components or containers requires to extend the behavior of the abstraction like 'start', 'build' or 'deploy'
13
+ * for example, this decorator allows to do so.
14
+ *
15
+ * @param name - abstraction name
16
+ * @param config - configuration of the abstraction extension
17
+ * @returns
18
+ */
19
+ function A_Abstraction_Extend(
20
+ /**
21
+ * Name of the Concept Abstraction to extend
22
+ */
23
+ name,
24
+ /**
25
+ * Configuration of the Abstraction Extension
26
+ *
27
+ */
28
+ config = {}) {
29
+ return function (target, propertyKey, descriptor) {
30
+ var _a;
31
+ // for error messages
32
+ const componentName = ((_a = target === null || target === void 0 ? void 0 : target.constructor) === null || _a === void 0 ? void 0 : _a.name) || String(target) || 'UnknownComponent';
33
+ if (!name)
34
+ throw new A_Abstraction_error_1.A_AbstractionError(A_Abstraction_error_1.A_AbstractionError.AbstractionExtensionError, `Abstraction name must be provided to extend abstraction for '${componentName}'.`);
35
+ // Only Containers and Components can extend Concept Abstractions
36
+ if (!A_TypeGuards_helper_1.A_TypeGuards.isConstructorAvailableForAbstraction(target)) {
37
+ throw new A_Abstraction_error_1.A_AbstractionError(A_Abstraction_error_1.A_AbstractionError.AbstractionExtensionError, `Unable to extend Abstraction '${name}' for '${componentName}'. Only A-Containers and A-Components can extend Abstractions.`);
38
+ }
39
+ let metaKey;
40
+ const meta = A_Context_class_1.A_Context.meta(target);
41
+ switch (true) {
42
+ case A_TypeGuards_helper_1.A_TypeGuards.isContainerConstructor(target):
43
+ metaKey = A_Container_constants_1.A_TYPES__ContainerMetaKey.ABSTRACTIONS;
44
+ break;
45
+ case A_TypeGuards_helper_1.A_TypeGuards.isComponentConstructor(target):
46
+ metaKey = A_Component_constants_1.A_TYPES__ComponentMetaKey.ABSTRACTIONS;
47
+ break;
48
+ }
49
+ // Get the existed metadata or create a new one
50
+ const existedMeta = meta.get(metaKey) || new A_Meta_class_1.A_Meta();
51
+ // Set the metadata of the method to define a custom Stage with name
52
+ const existedMetaValue = existedMeta.get(name) || [];
53
+ // Add the new method to the metadata
54
+ existedMetaValue.push({
55
+ name,
56
+ handler: propertyKey,
57
+ before: config.before || [],
58
+ after: config.after || [],
59
+ behavior: config.behavior || 'sync'
60
+ });
61
+ // Set the metadata of the method to define a custom Feature with name
62
+ existedMeta.set(name, existedMetaValue);
63
+ // Update the metadata of the container with the new Stage definition
64
+ A_Context_class_1.A_Context
65
+ .meta(target)
66
+ .set(metaKey, existedMeta);
67
+ };
68
+ }
69
+ //# sourceMappingURL=A-Abstraction-Extend.decorator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"A-Abstraction-Extend.decorator.js","sourceRoot":"","sources":["../../../../src/global/A-Abstraction/A-Abstraction-Extend.decorator.ts"],"names":[],"mappings":";;AA2BA,oDA2EC;AAjGD,uFAA8E;AAI9E,8EAAqE;AAErE,qGAAsG;AACtG,qGAAsG;AAEtG,+DAA2D;AAC3D,sFAA4E;AAG5E;;;;;;;;GAQG;AACH,SAAgB,oBAAoB;AAChC;;GAEG;AACH,IAAkC;AAClC;;;GAGG;AACH,SAAuD,EAAE;IAEzD,OAAO,UACH,MAAiC,EACjC,WAAmB,EACnB,UAAmD;;QAEnD,qBAAqB;QACrB,MAAM,aAAa,GAAG,CAAA,MAAC,MAAc,aAAd,MAAM,uBAAN,MAAM,CAAU,WAAW,0CAAE,IAAI,KAAI,MAAM,CAAC,MAAM,CAAC,IAAI,kBAAkB,CAAC;QAEjG,IAAI,CAAC,IAAI;YACL,MAAM,IAAI,wCAAkB,CACxB,wCAAkB,CAAC,yBAAyB,EAC5C,gEAAgE,aAAa,IAAI,CACpF,CAAC;QAEN,kEAAkE;QAClE,IAAI,CAAC,kCAAY,CAAC,oCAAoC,CAAC,MAAM,CAAC,EAAE,CAAC;YAC7D,MAAM,IAAI,wCAAkB,CACxB,wCAAkB,CAAC,yBAAyB,EAC5C,iCAAiC,IAAI,UAAU,aAAa,gEAAgE,CAC/H,CAAC;QACN,CAAC;QAED,IAAI,OAAO,CAAC;QACZ,MAAM,IAAI,GAAsC,2BAAS,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAEvE,QAAQ,IAAI,EAAE,CAAC;YACX,KAAK,kCAAY,CAAC,sBAAsB,CAAC,MAAM,CAAC;gBAC5C,OAAO,GAAG,iDAAyB,CAAC,YAAY,CAAA;gBAChD,MAAM;YACV,KAAK,kCAAY,CAAC,sBAAsB,CAAC,MAAM,CAAC;gBAC5C,OAAO,GAAG,iDAAyB,CAAC,YAAY,CAAA;gBAChD,MAAM;QACd,CAAC;QAED,+CAA+C;QAC/C,MAAM,WAAW,GAEZ,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,IAAI,IAAI,qBAAM,EAAE,CAAC;QAEvC,oEAAoE;QACpE,MAAM,gBAAgB,GAAG,WAAW,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;QAGrD,qCAAqC;QACrC,gBAAgB,CAAC,IAAI,CAAC;YAClB,IAAI;YACJ,OAAO,EAAE,WAAW;YACpB,MAAM,EAAE,MAAM,CAAC,MAAM,IAAI,EAAE;YAC3B,KAAK,EAAE,MAAM,CAAC,KAAK,IAAI,EAAE;YACzB,QAAQ,EAAE,MAAM,CAAC,QAAQ,IAAI,MAAM;SACtC,CAAC,CAAC;QAEH,sEAAsE;QACtE,WAAW,CAAC,GAAG,CAAC,IAAI,EAAE,gBAAgB,CAAC,CAAC;QAGxC,sEAAsE;QACtE,2BAAS;aACJ,IAAI,CAAC,MAAM,CAAC;aACZ,GAAG,CACA,OAAO,EACP,WAAW,CACd,CAAC;IACV,CAAC,CAAC;AACN,CAAC"}
@@ -1,46 +1,73 @@
1
- import { A_Abstraction_Extend } from "../../decorators/A-Abstraction/A-Abstraction-Extend.decorator";
1
+ import { A_Abstraction_Extend } from "./A-Abstraction-Extend.decorator";
2
2
  import { A_Feature } from "../A-Feature/A-Feature.class";
3
- import { A_TYPES__A_AbstractionConstructor, A_TYPES__AbstractionState } from "./A-Abstraction.types";
4
- import { A_Error } from "@adaas/a-utils";
3
+ import { A_TYPES__Abstraction_Init } from "./A-Abstraction.types";
5
4
  import { A_Scope } from "../A-Scope/A-Scope.class";
6
5
  export declare class A_Abstraction {
7
- name: string;
8
- protected features: A_Feature[];
6
+ /**
7
+ * The name of the Abstraction e.g. 'deploy', 'start', 'test', etc.
8
+ */
9
+ protected _name: string;
10
+ /**
11
+ * List of features that are part of this Abstraction
12
+ */
13
+ protected _features: A_Feature[];
14
+ /**
15
+ * The Feature currently being processed
16
+ */
9
17
  protected _current?: A_Feature;
18
+ /**
19
+ * Actual Index of the current Feature being processed
20
+ */
10
21
  protected _index: number;
11
- state: A_TYPES__AbstractionState;
12
- error?: A_Error;
13
- readonly Scope: A_Scope;
14
22
  /**
15
- * Define a new A-Abstraction
23
+ * Allows to extends A-Abstraction with additional methods
16
24
  */
17
25
  static get Extend(): typeof A_Abstraction_Extend;
26
+ /**
27
+ * A-Abstraction is an object that is common for any application.
28
+ * By providing components and creating abstraction extensions it's possible to create a unique behavior of the whole solution.
29
+ *
30
+ * Every application has basic abstractions like 'start', 'stop', 'deploy', 'test', etc.
31
+ * They can be easily extended with additional logic from both containers and components.
32
+ *
33
+ *
34
+ * @param params
35
+ */
18
36
  constructor(
19
37
  /**
20
38
  * Parameters to define the A-Abstraction
21
39
  */
22
- params: A_TYPES__A_AbstractionConstructor);
40
+ params: A_TYPES__Abstraction_Init);
41
+ /**
42
+ * Returns the name of the Abstraction
43
+ */
44
+ get name(): string;
45
+ /**
46
+ * Returns the current Feature being processed
47
+ */
23
48
  get feature(): A_Feature | undefined;
49
+ /**
50
+ * This method checks if the A-Feature is done
51
+ *
52
+ * @returns
53
+ */
54
+ get isDone(): boolean;
24
55
  [Symbol.iterator](): Iterator<A_Feature, any>;
25
56
  /**
26
- * This method moves the feature to the next stage
57
+ * This method moves the Abstraction processing to the next Feature in the list
27
58
  *
28
59
  * @param stage
29
60
  */
30
61
  next(stage: any): void;
31
- completed(): Promise<void>;
32
62
  /**
33
- * This method marks the feature as failed and throws an error
34
- * Uses to interrupt or end the feature processing
63
+ * Allows to process all stages of the Abstraction
35
64
  *
36
- * @param error
65
+ * @returns
37
66
  */
38
- failed(error: Error | A_Error | unknown): Promise<void>;
67
+ process(
39
68
  /**
40
- * This method checks if the A-Feature is done
69
+ * Allows to override the scope in which the Abstraction will be processed
41
70
  *
42
- * @returns
43
71
  */
44
- isDone(): boolean;
45
- process(): Promise<void>;
72
+ scope?: A_Scope): Promise<void>;
46
73
  }