@adaas/a-concept 0.0.32 → 0.0.34

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 (368) hide show
  1. package/README.md +156 -8
  2. package/dist/index.d.ts +3 -1
  3. package/dist/index.js +6 -3
  4. package/dist/index.js.map +1 -1
  5. package/dist/src/base/A-Config/A-Config.container.d.ts +5 -2
  6. package/dist/src/base/A-Config/A-Config.container.js +7 -2
  7. package/dist/src/base/A-Config/A-Config.container.js.map +1 -1
  8. package/dist/src/base/A-Config/components/ConfigReader.component.js +1 -1
  9. package/dist/src/base/A-Config/components/ConfigReader.component.js.map +1 -1
  10. package/dist/src/base/A-Config/components/FileConfigReader.component.js.map +1 -1
  11. package/dist/src/base/A-Errors/A-Errors.component.js +3 -3
  12. package/dist/src/base/A-Errors/A-Errors.component.js.map +1 -1
  13. package/dist/src/base/A-Errors/A-Errors.context.js.map +1 -1
  14. package/dist/src/base/A-Logger/A-Logger.component.js.map +1 -1
  15. package/dist/src/decorators/A-Abstraction/{A-Abstraction.decorator.d.ts → A-Abstraction-Extend.decorator.d.ts} +1 -1
  16. package/dist/src/decorators/A-Abstraction/{A-Abstraction.decorator.js → A-Abstraction-Extend.decorator.js} +6 -6
  17. package/dist/src/decorators/A-Abstraction/A-Abstraction-Extend.decorator.js.map +1 -0
  18. package/dist/src/decorators/A-Abstraction/A-Abstraction.decorator.types.d.ts +1 -1
  19. package/dist/src/decorators/A-Connect/A-Connect.decorator.js.map +1 -1
  20. package/dist/src/decorators/A-Entity/A-Entity.decorator.types.d.ts +1 -1
  21. package/dist/src/decorators/A-Feature/A-Feature-Define.decorator.d.ts +3 -3
  22. package/dist/src/decorators/A-Feature/A-Feature-Define.decorator.js +20 -4
  23. package/dist/src/decorators/A-Feature/A-Feature-Define.decorator.js.map +1 -1
  24. package/dist/src/decorators/A-Feature/A-Feature.decorator.types.d.ts +3 -2
  25. package/dist/src/decorators/A-Inject/A-Inject.decorator.d.ts +1 -1
  26. package/dist/src/decorators/A-Inject/A-Inject.decorator.js +23 -2
  27. package/dist/src/decorators/A-Inject/A-Inject.decorator.js.map +1 -1
  28. package/dist/src/decorators/A-Inject/A-Inject.decorator.types.d.ts +3 -3
  29. package/dist/src/global/A-Abstraction/A-Abstraction.class.d.ts +40 -0
  30. package/dist/src/global/A-Abstraction/A-Abstraction.class.js +113 -0
  31. package/dist/src/global/A-Abstraction/A-Abstraction.class.js.map +1 -0
  32. package/dist/src/global/A-Abstraction/A-Abstraction.types.d.ts +13 -0
  33. package/dist/src/global/A-Abstraction/A-Abstraction.types.js +11 -0
  34. package/dist/src/global/A-Abstraction/A-Abstraction.types.js.map +1 -0
  35. package/dist/src/global/A-Channel/A-Channel.class.js +0 -1
  36. package/dist/src/global/A-Channel/A-Channel.class.js.map +1 -1
  37. package/dist/src/global/A-Channel/A-Channel.types.d.ts +2 -1
  38. package/dist/src/global/A-Component/A-Component.class.d.ts +5 -30
  39. package/dist/src/global/A-Component/A-Component.class.js +6 -10
  40. package/dist/src/global/A-Component/A-Component.class.js.map +1 -1
  41. package/dist/src/global/A-Component/A-Component.meta.d.ts +9 -2
  42. package/dist/src/global/A-Component/A-Component.meta.js +10 -1
  43. package/dist/src/global/A-Component/A-Component.meta.js.map +1 -1
  44. package/dist/src/global/A-Concept/A_Concept.class.d.ts +43 -20
  45. package/dist/src/global/A-Concept/A_Concept.class.js +77 -65
  46. package/dist/src/global/A-Concept/A_Concept.class.js.map +1 -1
  47. package/dist/src/global/A-Concept/A_Concept.meta.d.ts +10 -0
  48. package/dist/src/global/A-Concept/A_Concept.meta.js +20 -0
  49. package/dist/src/global/A-Concept/A_Concept.meta.js.map +1 -1
  50. package/dist/src/global/A-Concept/A_Concept.types.d.ts +9 -6
  51. package/dist/src/global/A-Container/A-Container.class.d.ts +7 -50
  52. package/dist/src/global/A-Container/A-Container.class.js +9 -19
  53. package/dist/src/global/A-Container/A-Container.class.js.map +1 -1
  54. package/dist/src/global/A-Container/A-Container.meta.d.ts +15 -0
  55. package/dist/src/global/A-Container/A-Container.meta.js +20 -0
  56. package/dist/src/global/A-Container/A-Container.meta.js.map +1 -1
  57. package/dist/src/global/A-Context/A-Context.class.d.ts +21 -21
  58. package/dist/src/global/A-Context/A-Context.class.js +60 -15
  59. package/dist/src/global/A-Context/A-Context.class.js.map +1 -1
  60. package/dist/src/global/A-Entity/A-Entity.class.d.ts +10 -18
  61. package/dist/src/global/A-Entity/A-Entity.class.js +21 -31
  62. package/dist/src/global/A-Entity/A-Entity.class.js.map +1 -1
  63. package/dist/src/global/A-Entity/A-Entity.meta.js.map +1 -1
  64. package/dist/src/global/A-Entity/A-Entity.types.d.ts +3 -2
  65. package/dist/src/global/A-Entity/A-Entity.types.js +1 -0
  66. package/dist/src/global/A-Entity/A-Entity.types.js.map +1 -1
  67. package/dist/src/global/A-Feature/A-Feature.class.d.ts +2 -1
  68. package/dist/src/global/A-Feature/A-Feature.class.js +14 -4
  69. package/dist/src/global/A-Feature/A-Feature.class.js.map +1 -1
  70. package/dist/src/global/A-Feature/A-Feature.types.d.ts +9 -0
  71. package/dist/src/global/A-Feature/A-Feature.types.js.map +1 -1
  72. package/dist/src/global/A-Meta/A-Meta.class.d.ts +1 -0
  73. package/dist/src/global/A-Meta/A-Meta.class.js +3 -6
  74. package/dist/src/global/A-Meta/A-Meta.class.js.map +1 -1
  75. package/dist/src/global/A-Scope/A-Scope.class.d.ts +4 -2
  76. package/dist/src/global/A-Scope/A-Scope.class.js +25 -16
  77. package/dist/src/global/A-Scope/A-Scope.class.js.map +1 -1
  78. package/dist/src/global/A-Scope/A-Scope.types.d.ts +4 -6
  79. package/dist/src/global/A-Stage/A-Stage.class.d.ts +3 -3
  80. package/dist/src/global/A-Stage/A-Stage.class.js +11 -10
  81. package/dist/src/global/A-Stage/A-Stage.class.js.map +1 -1
  82. package/dist/src/global/A-Stage/A-Stage.types.d.ts +1 -1
  83. package/dist/src/global/A-Stage/A-Stage.types.js.map +1 -1
  84. package/dist/src/helpers/StepsManager.class.d.ts +1 -0
  85. package/dist/src/helpers/StepsManager.class.js +10 -7
  86. package/dist/src/helpers/StepsManager.class.js.map +1 -1
  87. package/docs/a-concept-logo.png +0 -0
  88. package/docs/a-logo-docs.png +0 -0
  89. package/examples/fe-be/channels/Test.channel.ts +6 -3
  90. package/examples/simple/components/A.component.ts +7 -0
  91. package/examples/simple/components/B.component.ts +9 -0
  92. package/examples/simple/concept.ts +38 -60
  93. package/examples/simple/containers/Main.container.ts +25 -12
  94. package/examples/simple/entities/EntityA.entity.ts +3 -5
  95. package/examples/simple-http-server/components/http-request-handler.component.ts +6 -4
  96. package/examples/simple-http-server/concept.ts +24 -21
  97. package/examples/simple-http-server/containers/http-server.container.ts +4 -3
  98. package/index.ts +4 -1
  99. package/package.json +6 -2
  100. package/src/base/A-Config/A-Config.container.ts +12 -4
  101. package/src/base/A-Config/components/ConfigReader.component.ts +4 -5
  102. package/src/base/A-Config/components/FileConfigReader.component.ts +0 -2
  103. package/src/base/A-Errors/A-Error.entity.ts +1 -1
  104. package/src/base/A-Errors/A-Errors.component.ts +3 -3
  105. package/src/base/A-Errors/A-Errors.context.ts +2 -1
  106. package/src/base/A-Logger/A-Logger.component.ts +0 -1
  107. package/src/decorators/A-Abstraction/{A-Abstraction.decorator.ts → A-Abstraction-Extend.decorator.ts} +5 -6
  108. package/src/decorators/A-Abstraction/A-Abstraction.decorator.types.ts +1 -1
  109. package/src/decorators/A-Connect/A-Connect.decorator.ts +1 -1
  110. package/src/decorators/A-Entity/A-Entity.decorator.types.ts +1 -1
  111. package/src/decorators/A-Feature/A-Feature-Define.decorator.ts +37 -10
  112. package/src/decorators/A-Feature/A-Feature.decorator.types.ts +12 -12
  113. package/src/decorators/A-Inject/A-Inject.decorator.ts +31 -4
  114. package/src/decorators/A-Inject/A-Inject.decorator.types.ts +4 -3
  115. package/src/global/A-Abstraction/A-Abstraction.class.ts +130 -0
  116. package/src/global/A-Abstraction/A-Abstraction.types.ts +22 -0
  117. package/src/global/A-Channel/A-Channel.class.ts +0 -2
  118. package/src/global/A-Channel/A-Channel.types.ts +2 -1
  119. package/src/global/A-Component/A-Component.class.ts +12 -52
  120. package/src/global/A-Component/A-Component.meta.ts +19 -2
  121. package/src/global/A-Concept/A_Concept.class.ts +109 -111
  122. package/src/global/A-Concept/A_Concept.meta.ts +68 -0
  123. package/src/global/A-Concept/A_Concept.types.ts +11 -4
  124. package/src/global/A-Container/A-Container.class.ts +11 -90
  125. package/src/global/A-Container/A-Container.meta.ts +33 -0
  126. package/src/global/A-Context/A-Context.class.ts +139 -56
  127. package/src/global/A-Entity/A-Entity.class.ts +22 -69
  128. package/src/global/A-Entity/A-Entity.meta.ts +3 -2
  129. package/src/global/A-Entity/A-Entity.types.ts +2 -1
  130. package/src/global/A-Feature/A-Feature.class.ts +18 -7
  131. package/src/global/A-Feature/A-Feature.types.ts +10 -2
  132. package/src/global/A-Meta/A-Meta.class.ts +5 -8
  133. package/src/global/A-Scope/A-Scope.class.ts +40 -21
  134. package/src/global/A-Scope/A-Scope.types.ts +8 -2
  135. package/src/global/A-Stage/A-Stage.class.ts +20 -20
  136. package/src/global/A-Stage/A-Stage.types.ts +2 -3
  137. package/src/helpers/StepsManager.class.ts +11 -7
  138. package/trace-require.js +46 -0
  139. package/tsconfig.build.json +57 -0
  140. package/dist/examples/fe-be/channels/Test.channel.d.ts +0 -6
  141. package/dist/examples/fe-be/channels/Test.channel.js +0 -14
  142. package/dist/examples/fe-be/channels/Test.channel.js.map +0 -1
  143. package/dist/examples/fe-be/components/BE-Controller.component.d.ts +0 -4
  144. package/dist/examples/fe-be/components/BE-Controller.component.js +0 -24
  145. package/dist/examples/fe-be/components/BE-Controller.component.js.map +0 -1
  146. package/dist/examples/fe-be/components/FE.component.d.ts +0 -4
  147. package/dist/examples/fe-be/components/FE.component.js +0 -31
  148. package/dist/examples/fe-be/components/FE.component.js.map +0 -1
  149. package/dist/examples/fe-be/components/UserActions.component.d.ts +0 -5
  150. package/dist/examples/fe-be/components/UserActions.component.js +0 -25
  151. package/dist/examples/fe-be/components/UserActions.component.js.map +0 -1
  152. package/dist/examples/fe-be/concept.d.ts +0 -0
  153. package/dist/examples/fe-be/concept.js +0 -2
  154. package/dist/examples/fe-be/concept.js.map +0 -1
  155. package/dist/examples/fe-be/containers/ServerApp.container.d.ts +0 -3
  156. package/dist/examples/fe-be/containers/ServerApp.container.js +0 -8
  157. package/dist/examples/fe-be/containers/ServerApp.container.js.map +0 -1
  158. package/dist/examples/fe-be/containers/WebApp.container.d.ts +0 -3
  159. package/dist/examples/fe-be/containers/WebApp.container.js +0 -8
  160. package/dist/examples/fe-be/containers/WebApp.container.js.map +0 -1
  161. package/dist/examples/multi-container/channels/Direct.channel.d.ts +0 -9
  162. package/dist/examples/multi-container/channels/Direct.channel.js +0 -32
  163. package/dist/examples/multi-container/channels/Direct.channel.js.map +0 -1
  164. package/dist/examples/multi-container/concept.d.ts +0 -0
  165. package/dist/examples/multi-container/concept.js +0 -2
  166. package/dist/examples/multi-container/concept.js.map +0 -1
  167. package/dist/examples/multi-container/containers/Command.container.d.ts +0 -11
  168. package/dist/examples/multi-container/containers/Command.container.js +0 -51
  169. package/dist/examples/multi-container/containers/Command.container.js.map +0 -1
  170. package/dist/examples/multi-container/containers/Schedule.container.d.ts +0 -15
  171. package/dist/examples/multi-container/containers/Schedule.container.js +0 -67
  172. package/dist/examples/multi-container/containers/Schedule.container.js.map +0 -1
  173. package/dist/examples/sdk/concept.d.ts +0 -0
  174. package/dist/examples/sdk/concept.js +0 -21
  175. package/dist/examples/sdk/concept.js.map +0 -1
  176. package/dist/examples/sdk/orders.api.d.ts +0 -0
  177. package/dist/examples/sdk/orders.api.js +0 -16
  178. package/dist/examples/sdk/orders.api.js.map +0 -1
  179. package/dist/examples/sdk/users.api.d.ts +0 -0
  180. package/dist/examples/sdk/users.api.js +0 -16
  181. package/dist/examples/sdk/users.api.js.map +0 -1
  182. package/dist/examples/simple/components/A.component.d.ts +0 -9
  183. package/dist/examples/simple/components/A.component.js +0 -60
  184. package/dist/examples/simple/components/A.component.js.map +0 -1
  185. package/dist/examples/simple/components/B.component.d.ts +0 -13
  186. package/dist/examples/simple/components/B.component.js +0 -88
  187. package/dist/examples/simple/components/B.component.js.map +0 -1
  188. package/dist/examples/simple/concept.d.ts +0 -1
  189. package/dist/examples/simple/concept.js +0 -82
  190. package/dist/examples/simple/concept.js.map +0 -1
  191. package/dist/examples/simple/containers/Main.container.d.ts +0 -11
  192. package/dist/examples/simple/containers/Main.container.js +0 -86
  193. package/dist/examples/simple/containers/Main.container.js.map +0 -1
  194. package/dist/examples/simple/context/Fragment_A.context.d.ts +0 -6
  195. package/dist/examples/simple/context/Fragment_A.context.js +0 -16
  196. package/dist/examples/simple/context/Fragment_A.context.js.map +0 -1
  197. package/dist/examples/simple/context/Fragment_B.context.d.ts +0 -6
  198. package/dist/examples/simple/context/Fragment_B.context.js +0 -16
  199. package/dist/examples/simple/context/Fragment_B.context.js.map +0 -1
  200. package/dist/examples/simple/entities/EntityA.entity.d.ts +0 -8
  201. package/dist/examples/simple/entities/EntityA.entity.js +0 -22
  202. package/dist/examples/simple/entities/EntityA.entity.js.map +0 -1
  203. package/dist/examples/simple-http-server/components/http-error-handler.component.d.ts +0 -10
  204. package/dist/examples/simple-http-server/components/http-error-handler.component.js +0 -65
  205. package/dist/examples/simple-http-server/components/http-error-handler.component.js.map +0 -1
  206. package/dist/examples/simple-http-server/components/http-request-handler.component.d.ts +0 -3
  207. package/dist/examples/simple-http-server/components/http-request-handler.component.js +0 -8
  208. package/dist/examples/simple-http-server/components/http-request-handler.component.js.map +0 -1
  209. package/dist/examples/simple-http-server/concept.d.ts +0 -1
  210. package/dist/examples/simple-http-server/concept.js +0 -35
  211. package/dist/examples/simple-http-server/concept.js.map +0 -1
  212. package/dist/examples/simple-http-server/containers/http-server.container.d.ts +0 -11
  213. package/dist/examples/simple-http-server/containers/http-server.container.js +0 -73
  214. package/dist/examples/simple-http-server/containers/http-server.container.js.map +0 -1
  215. package/dist/examples/simple-http-server/containers/http-server.controller.d.ts +0 -7
  216. package/dist/examples/simple-http-server/containers/http-server.controller.js +0 -37
  217. package/dist/examples/simple-http-server/containers/http-server.controller.js.map +0 -1
  218. package/dist/examples/simple-http-server/containers/http-server.router.d.ts +0 -6
  219. package/dist/examples/simple-http-server/containers/http-server.router.js +0 -39
  220. package/dist/examples/simple-http-server/containers/http-server.router.js.map +0 -1
  221. package/dist/examples/simple-http-server/contexts/http-request.context.d.ts +0 -12
  222. package/dist/examples/simple-http-server/contexts/http-request.context.js +0 -49
  223. package/dist/examples/simple-http-server/contexts/http-request.context.js.map +0 -1
  224. package/dist/examples/simple-http-server/contexts/http-server.context.types.d.ts +0 -0
  225. package/dist/examples/simple-http-server/contexts/http-server.context.types.js +0 -2
  226. package/dist/examples/simple-http-server/contexts/http-server.context.types.js.map +0 -1
  227. package/dist/examples/simple-http-server/contexts/http-server.namespace.d.ts +0 -10
  228. package/dist/examples/simple-http-server/contexts/http-server.namespace.js +0 -26
  229. package/dist/examples/simple-http-server/contexts/http-server.namespace.js.map +0 -1
  230. package/dist/examples/simple-http-server/controllers/orders.controller.d.ts +0 -5
  231. package/dist/examples/simple-http-server/controllers/orders.controller.js +0 -32
  232. package/dist/examples/simple-http-server/controllers/orders.controller.js.map +0 -1
  233. package/dist/examples/simple-http-server/controllers/users.controller.d.ts +0 -0
  234. package/dist/examples/simple-http-server/controllers/users.controller.js +0 -87
  235. package/dist/examples/simple-http-server/controllers/users.controller.js.map +0 -1
  236. package/dist/examples/simple-http-server/modules/simple-http-server.context.d.ts +0 -5
  237. package/dist/examples/simple-http-server/modules/simple-http-server.context.js +0 -25
  238. package/dist/examples/simple-http-server/modules/simple-http-server.context.js.map +0 -1
  239. package/dist/examples/simple-http-server/modules/simple-http-server.module.d.ts +0 -16
  240. package/dist/examples/simple-http-server/modules/simple-http-server.module.js +0 -8
  241. package/dist/examples/simple-http-server/modules/simple-http-server.module.js.map +0 -1
  242. package/dist/examples/simple-http-server/modules/simple-http-server.types.d.ts +0 -2
  243. package/dist/examples/simple-http-server/modules/simple-http-server.types.js +0 -3
  244. package/dist/examples/simple-http-server/modules/simple-http-server.types.js.map +0 -1
  245. package/dist/examples/simple-http-server/test.d.ts +0 -68
  246. package/dist/examples/simple-http-server/test.js +0 -162
  247. package/dist/examples/simple-http-server/test.js.map +0 -1
  248. package/dist/src/containers/A-Config/A-Config.container.d.ts +0 -7
  249. package/dist/src/containers/A-Config/A-Config.container.js +0 -65
  250. package/dist/src/containers/A-Config/A-Config.container.js.map +0 -1
  251. package/dist/src/containers/A-Config/A-Config.namespace.d.ts +0 -28
  252. package/dist/src/containers/A-Config/A-Config.namespace.js +0 -54
  253. package/dist/src/containers/A-Config/A-Config.namespace.js.map +0 -1
  254. package/dist/src/containers/A-Config/A-Config.types.d.ts +0 -12
  255. package/dist/src/containers/A-Config/A-Config.types.js +0 -3
  256. package/dist/src/containers/A-Config/A-Config.types.js.map +0 -1
  257. package/dist/src/containers/A-Config/components/ConfigReader.component.d.ts +0 -18
  258. package/dist/src/containers/A-Config/components/ConfigReader.component.js +0 -37
  259. package/dist/src/containers/A-Config/components/ConfigReader.component.js.map +0 -1
  260. package/dist/src/containers/A-Config/components/ENVConfigReader.component.d.ts +0 -10
  261. package/dist/src/containers/A-Config/components/ENVConfigReader.component.js +0 -37
  262. package/dist/src/containers/A-Config/components/ENVConfigReader.component.js.map +0 -1
  263. package/dist/src/containers/A-Config/components/FileConfigReader.component.d.ts +0 -11
  264. package/dist/src/containers/A-Config/components/FileConfigReader.component.js +0 -47
  265. package/dist/src/containers/A-Config/components/FileConfigReader.component.js.map +0 -1
  266. package/dist/src/containers/A-Errors/A-Errors.container.d.ts +0 -5
  267. package/dist/src/containers/A-Errors/A-Errors.container.js +0 -32
  268. package/dist/src/containers/A-Errors/A-Errors.container.js.map +0 -1
  269. package/dist/src/containers/A-Errors/A-Errors.namespace.d.ts +0 -40
  270. package/dist/src/containers/A-Errors/A-Errors.namespace.js +0 -76
  271. package/dist/src/containers/A-Errors/A-Errors.namespace.js.map +0 -1
  272. package/dist/src/containers/A-Errors/A-Errors.types.d.ts +0 -5
  273. package/dist/src/containers/A-Errors/A-Errors.types.js +0 -3
  274. package/dist/src/containers/A-Errors/A-Errors.types.js.map +0 -1
  275. package/dist/src/containers/A-Logger/A-Logger.container.d.ts +0 -6
  276. package/dist/src/containers/A-Logger/A-Logger.container.js +0 -41
  277. package/dist/src/containers/A-Logger/A-Logger.container.js.map +0 -1
  278. package/dist/src/containers/A-Logger/A-Logger.namespace.d.ts +0 -17
  279. package/dist/src/containers/A-Logger/A-Logger.namespace.js +0 -22
  280. package/dist/src/containers/A-Logger/A-Logger.namespace.js.map +0 -1
  281. package/dist/src/containers/A-Logger/A-Logger.types.d.ts +0 -0
  282. package/dist/src/containers/A-Logger/A-Logger.types.js +0 -2
  283. package/dist/src/containers/A-Logger/A-Logger.types.js.map +0 -1
  284. package/dist/src/containers/A-Logger/components/Logger.component.d.ts +0 -29
  285. package/dist/src/containers/A-Logger/components/Logger.component.js +0 -128
  286. package/dist/src/containers/A-Logger/components/Logger.component.js.map +0 -1
  287. package/dist/src/decorators/A-Abstraction/A-Abstraction.decorator.js.map +0 -1
  288. package/dist/src/decorators/A-ConceptLifecycle/A-ConceptLifecycle.decorator.types.d.ts +0 -34
  289. package/dist/src/decorators/A-ConceptLifecycle/A-ConceptLifecycle.decorator.types.js +0 -3
  290. package/dist/src/decorators/A-ConceptLifecycle/A-ConceptLifecycle.decorator.types.js.map +0 -1
  291. package/dist/src/decorators/A-ConceptLifecycle/A-Load/A-Load.decorator.d.ts +0 -11
  292. package/dist/src/decorators/A-ConceptLifecycle/A-Load/A-Load.decorator.js +0 -36
  293. package/dist/src/decorators/A-ConceptLifecycle/A-Load/A-Load.decorator.js.map +0 -1
  294. package/dist/src/decorators/A-ConceptLifecycle/A-Load/A-Load.decorator.types.d.ts +0 -7
  295. package/dist/src/decorators/A-ConceptLifecycle/A-Load/A-Load.decorator.types.js +0 -3
  296. package/dist/src/decorators/A-ConceptLifecycle/A-Load/A-Load.decorator.types.js.map +0 -1
  297. package/dist/src/decorators/A-ConceptLifecycle/A-Run/A-Run.decorator.d.ts +0 -17
  298. package/dist/src/decorators/A-ConceptLifecycle/A-Run/A-Run.decorator.js +0 -42
  299. package/dist/src/decorators/A-ConceptLifecycle/A-Run/A-Run.decorator.js.map +0 -1
  300. package/dist/src/decorators/A-ConceptLifecycle/A-Run/A-Run.decorator.types.d.ts +0 -8
  301. package/dist/src/decorators/A-ConceptLifecycle/A-Run/A-Run.decorator.types.js +0 -3
  302. package/dist/src/decorators/A-ConceptLifecycle/A-Run/A-Run.decorator.types.js.map +0 -1
  303. package/dist/src/decorators/A-ConceptLifecycle/index.d.ts +0 -7
  304. package/dist/src/decorators/A-ConceptLifecycle/index.js +0 -11
  305. package/dist/src/decorators/A-ConceptLifecycle/index.js.map +0 -1
  306. package/dist/src/decorators/A-Define/Feature/Feature.decorator.d.ts +0 -16
  307. package/dist/src/decorators/A-Define/Feature/Feature.decorator.js +0 -36
  308. package/dist/src/decorators/A-Define/Feature/Feature.decorator.js.map +0 -1
  309. package/dist/src/decorators/A-Define/Feature/Feature.decorator.types.d.ts +0 -8
  310. package/dist/src/decorators/A-Define/Feature/Feature.decorator.types.js +0 -3
  311. package/dist/src/decorators/A-Define/Feature/Feature.decorator.types.js.map +0 -1
  312. package/dist/src/decorators/A-Define/Lifecycle/Lifecycle.decorator.d.ts +0 -14
  313. package/dist/src/decorators/A-Define/Lifecycle/Lifecycle.decorator.js +0 -24
  314. package/dist/src/decorators/A-Define/Lifecycle/Lifecycle.decorator.js.map +0 -1
  315. package/dist/src/decorators/A-Define/Lifecycle/Lifecycle.decorator.types.d.ts +0 -8
  316. package/dist/src/decorators/A-Define/Lifecycle/Lifecycle.decorator.types.js +0 -3
  317. package/dist/src/decorators/A-Define/Lifecycle/Lifecycle.decorator.types.js.map +0 -1
  318. package/dist/src/decorators/A-Define/index.d.ts +0 -7
  319. package/dist/src/decorators/A-Define/index.js +0 -10
  320. package/dist/src/decorators/A-Define/index.js.map +0 -1
  321. package/dist/src/decorators/A-Extend/A-Extend.decorator.d.ts +0 -18
  322. package/dist/src/decorators/A-Extend/A-Extend.decorator.js +0 -37
  323. package/dist/src/decorators/A-Extend/A-Extend.decorator.js.map +0 -1
  324. package/dist/src/decorators/A-Extend/A-Extend.decorator.types.d.ts +0 -21
  325. package/dist/src/decorators/A-Extend/A-Extend.decorator.types.js +0 -3
  326. package/dist/src/decorators/A-Extend/A-Extend.decorator.types.js.map +0 -1
  327. package/dist/src/decorators/A-Feature/A-Feature.decorator.d.ts +0 -0
  328. package/dist/src/decorators/A-Feature/A-Feature.decorator.js +0 -11
  329. package/dist/src/decorators/A-Feature/A-Feature.decorator.js.map +0 -1
  330. package/dist/src/decorators/A-Stage/A-Stage.decorator.d.ts +0 -13
  331. package/dist/src/decorators/A-Stage/A-Stage.decorator.js +0 -52
  332. package/dist/src/decorators/A-Stage/A-Stage.decorator.js.map +0 -1
  333. package/dist/src/decorators/A-Stage/A-Stage.decorator.types.d.ts +0 -2
  334. package/dist/src/decorators/A-Stage/A-Stage.decorator.types.js +0 -3
  335. package/dist/src/decorators/A-Stage/A-Stage.decorator.types.js.map +0 -1
  336. package/dist/src/decorators/A_ConceptMethods.decorator.d.ts +0 -0
  337. package/dist/src/decorators/A_ConceptMethods.decorator.js +0 -2
  338. package/dist/src/decorators/A_ConceptMethods.decorator.js.map +0 -1
  339. package/dist/src/decorators/A_Lazy.decorator.d.ts +0 -5
  340. package/dist/src/decorators/A_Lazy.decorator.js +0 -20
  341. package/dist/src/decorators/A_Lazy.decorator.js.map +0 -1
  342. package/dist/src/global/A-Context/A-ContextFragment.class.d.ts +0 -12
  343. package/dist/src/global/A-Context/A-ContextFragment.class.js +0 -19
  344. package/dist/src/global/A-Context/A-ContextFragment.class.js.map +0 -1
  345. package/dist/src/global/A-Namespace/A_Namespace.class.d.ts +0 -47
  346. package/dist/src/global/A-Namespace/A_Namespace.class.js +0 -112
  347. package/dist/src/global/A-Namespace/A_Namespace.class.js.map +0 -1
  348. package/dist/src/global/A-Namespace/A_Namespace.types.d.ts +0 -19
  349. package/dist/src/global/A-Namespace/A_Namespace.types.js +0 -3
  350. package/dist/src/global/A-Namespace/A_Namespace.types.js.map +0 -1
  351. package/dist/src/managers/A_DependencyManager.class.d.ts +0 -24
  352. package/dist/src/managers/A_DependencyManager.class.js +0 -129
  353. package/dist/src/managers/A_DependencyManager.class.js.map +0 -1
  354. package/dist/src/storage/A_Component.storage.d.ts +0 -10
  355. package/dist/src/storage/A_Component.storage.js +0 -17
  356. package/dist/src/storage/A_Component.storage.js.map +0 -1
  357. package/dist/src/storage/A_Concept.storage.d.ts +0 -19
  358. package/dist/src/storage/A_Concept.storage.js +0 -29
  359. package/dist/src/storage/A_Concept.storage.js.map +0 -1
  360. package/dist/src/storage/A_Container.storage.d.ts +0 -8
  361. package/dist/src/storage/A_Container.storage.js +0 -17
  362. package/dist/src/storage/A_Container.storage.js.map +0 -1
  363. package/dist/src/storage/A_Inject.storage.d.ts +0 -9
  364. package/dist/src/storage/A_Inject.storage.js +0 -13
  365. package/dist/src/storage/A_Inject.storage.js.map +0 -1
  366. package/dist/src/types/A_DependencyManager.types.d.ts +0 -15
  367. package/dist/src/types/A_DependencyManager.types.js +0 -3
  368. package/dist/src/types/A_DependencyManager.types.js.map +0 -1
@@ -1,21 +0,0 @@
1
- import { A_Container } from "../../global/A-Container/A-Container.class";
2
- export type A_TYPES__A_ExtendDecoratorDescriptor = TypedPropertyDescriptor<() => any> | TypedPropertyDescriptor<(...args: any[]) => any> | TypedPropertyDescriptor<(...args: any[]) => Promise<any>> | TypedPropertyDescriptor<() => Promise<any>>;
3
- export type A_TYPES__A_ExtendDecoratorConfig = {
4
- /**
5
- * Name of the container Lifecycle method to be extended.
6
- *
7
- * [!] If not provided will be used the name of the method.
8
- */
9
- name: string;
10
- /**
11
- * Container class or container name uses to identify the proper container in case when the name is not unique.
12
- *
13
- * [!] If not provided will be applied to all containers with the same name.
14
- */
15
- container: string | typeof A_Container;
16
- };
17
- export type A_TYPES__A_ExtendDecoratorStorageInstruction = {
18
- name: string;
19
- container: string;
20
- handler: string;
21
- };
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=A-Extend.decorator.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"A-Extend.decorator.types.js","sourceRoot":"","sources":["../../../../src/decorators/A-Extend/A-Extend.decorator.types.ts"],"names":[],"mappings":""}
@@ -1,11 +0,0 @@
1
- "use strict";
2
- // export function A_Feature(
3
- // params: any = {
4
- // name: '',
5
- // description: '',
6
- // version: '',
7
- // }
8
- // ) {
9
- // return A_Pipeline('root.run');
10
- // }
11
- //# sourceMappingURL=A-Feature.decorator.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"A-Feature.decorator.js","sourceRoot":"","sources":["../../../../src/decorators/A-Feature/A-Feature.decorator.ts"],"names":[],"mappings":";AAIA,6BAA6B;AAC7B,sBAAsB;AACtB,oBAAoB;AACpB,2BAA2B;AAC3B,uBAAuB;AACvB,QAAQ;AACR,MAAM;AACN,qCAAqC;AACrC,IAAI"}
@@ -1,13 +0,0 @@
1
- import { A_Component } from "../../global/A-Component/A-Component.class";
2
- import { A_TYPES__A_StageDecoratorConfig, A_TYPES__A_StageDecoratorDescriptor } from "./A-Stage.decorator.types";
3
- import { A_Container } from "../../global/A-Container/A-Container.class";
4
- import { A_TYPES__ConceptStage } from "../../global/A-Concept/A_Concept.types";
5
- /**
6
- * A_Stage Decorator uses to extend basic A-Concept Stage methods inside Containers.
7
- *
8
- * Using this decorator you can define extend a logic and sequence of the Container Stage methods execution.
9
- *
10
- * @param params
11
- * @returns
12
- */
13
- export declare function A_Stage(method: A_TYPES__ConceptStage): (config?: Partial<A_TYPES__A_StageDecoratorConfig>) => (target: A_Container<any> | A_Component, propertyKey: string, descriptor: A_TYPES__A_StageDecoratorDescriptor) => void;
@@ -1,52 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.A_Stage = A_Stage;
4
- const A_Component_class_1 = require("../../global/A-Component/A-Component.class");
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_Container_class_1 = require("../../global/A-Container/A-Container.class");
8
- const A_Container_types_1 = require("../../global/A-Container/A-Container.types");
9
- /**
10
- * A_Stage Decorator uses to extend basic A-Concept Stage methods inside Containers.
11
- *
12
- * Using this decorator you can define extend a logic and sequence of the Container Stage methods execution.
13
- *
14
- * @param params
15
- * @returns
16
- */
17
- function A_Stage(method) {
18
- return function A_Stage(config = {}) {
19
- return function (target, propertyKey, descriptor) {
20
- const meta = A_Context_class_1.A_Context.meta(target);
21
- let metaKey;
22
- const StageKey = `CONCEPT_STAGE::${method}`;
23
- switch (true) {
24
- case target instanceof A_Container_class_1.A_Container:
25
- metaKey = A_Container_types_1.A_TYPES__ContainerMetaKey.STAGES;
26
- break;
27
- case target instanceof A_Component_class_1.A_Component:
28
- metaKey = A_Component_types_1.A_TYPES__ComponentMetaKey.STAGES;
29
- break;
30
- default:
31
- throw new Error(`A-Feature cannot be defined on the ${target} level`);
32
- }
33
- // Get the existed metadata or create a new one
34
- const existedMeta = meta.get(metaKey)
35
- || new Map();
36
- // Set the metadata of the method to define a custom Stage with name
37
- const existedMetaValue = existedMeta.get(StageKey) || [];
38
- // Add the new method to the metadata
39
- existedMetaValue.push({
40
- name: StageKey,
41
- handler: propertyKey,
42
- });
43
- // Set the metadata of the method to define a custom Feature with name
44
- existedMeta.set(StageKey, existedMetaValue);
45
- // Update the metadata of the container with the new Stage definition
46
- A_Context_class_1.A_Context
47
- .meta(target)
48
- .set(metaKey, existedMeta);
49
- };
50
- };
51
- }
52
- //# sourceMappingURL=A-Stage.decorator.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"A-Stage.decorator.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A,OAAO,EACP,WAAW,CACd,CAAC;QAEV,CAAC,CAAC;IACN,CAAC,CAAA;AACL,CAAC"}
@@ -1,2 +0,0 @@
1
- export type A_TYPES__A_StageDecoratorDescriptor = TypedPropertyDescriptor<() => any> | TypedPropertyDescriptor<(...args: any[]) => any> | TypedPropertyDescriptor<(...args: any[]) => Promise<any>> | TypedPropertyDescriptor<() => Promise<any>>;
2
- export type A_TYPES__A_StageDecoratorConfig = {};
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=A-Stage.decorator.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"A-Stage.decorator.types.js","sourceRoot":"","sources":["../../../../src/decorators/A-Stage/A-Stage.decorator.types.ts"],"names":[],"mappings":""}
@@ -1,2 +0,0 @@
1
- "use strict";
2
- //# sourceMappingURL=A_ConceptMethods.decorator.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"A_ConceptMethods.decorator.js","sourceRoot":"","sources":["../../../src/decorators/A_ConceptMethods.decorator.ts"],"names":[],"mappings":""}
@@ -1,5 +0,0 @@
1
- declare function RegisterLazyMethod(target: any, propertyKey: string, descriptor: PropertyDescriptor): PropertyDescriptor;
2
- export declare function A_Lazy(params: {
3
- source: string;
4
- }): typeof RegisterLazyMethod;
5
- export {};
@@ -1,20 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.A_Lazy = A_Lazy;
4
- function RegisterLazyMethod(target, propertyKey, descriptor) {
5
- const originalMethod = descriptor.value;
6
- descriptor.value = function (...args) {
7
- console.log(`Intercepted call to method: ${propertyKey}`);
8
- console.log(`Arguments: `, args);
9
- // You can modify args or do something else here
10
- const result = originalMethod.apply(this, args);
11
- // You can also modify the return value
12
- console.log(`Result: `, result);
13
- return result;
14
- };
15
- return descriptor;
16
- }
17
- function A_Lazy(params) {
18
- return RegisterLazyMethod;
19
- }
20
- //# sourceMappingURL=A_Lazy.decorator.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"A_Lazy.decorator.js","sourceRoot":"","sources":["../../../src/decorators/A_Lazy.decorator.ts"],"names":[],"mappings":";;AAwBA,wBAMC;AA9BD,SAAS,kBAAkB,CACvB,MAAW,EACX,WAAmB,EACnB,UAA8B;IAE9B,MAAM,cAAc,GAAG,UAAU,CAAC,KAAK,CAAC;IAExC,UAAU,CAAC,KAAK,GAAG,UAAU,GAAG,IAAW;QACvC,OAAO,CAAC,GAAG,CAAC,+BAA+B,WAAW,EAAE,CAAC,CAAC;QAC1D,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,IAAI,CAAC,CAAC;QAEjC,gDAAgD;QAChD,MAAM,MAAM,GAAG,cAAc,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QAEhD,uCAAuC;QACvC,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;QAChC,OAAO,MAAM,CAAC;IAClB,CAAC,CAAC;IAEF,OAAO,UAAU,CAAC;AACtB,CAAC;AAID,SAAgB,MAAM,CAClB,MAEC;IAED,OAAO,kBAAkB,CAAC;AAC9B,CAAC"}
@@ -1,12 +0,0 @@
1
- /**
2
- * Context Fragments is a set of arguments that can be used to define a Context for the pipeline.
3
- * In other words it is a dynamic context that will be created on pipeline start and destroyed on pipeline end.
4
- * During the execution of the pipeline, the Context Fragments can be used to pass the data between the pipeline steps.
5
- *
6
- * Or to store the data that is required for the pipeline execution
7
- *
8
- */
9
- export declare class A_ContextFragment {
10
- protected args: any[];
11
- constructor(...args: any[]);
12
- }
@@ -1,19 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.A_ContextFragment = void 0;
4
- /**
5
- * Context Fragments is a set of arguments that can be used to define a Context for the pipeline.
6
- * In other words it is a dynamic context that will be created on pipeline start and destroyed on pipeline end.
7
- * During the execution of the pipeline, the Context Fragments can be used to pass the data between the pipeline steps.
8
- *
9
- * Or to store the data that is required for the pipeline execution
10
- *
11
- */
12
- class A_ContextFragment {
13
- constructor(...args) {
14
- this.args = [];
15
- this.args = args;
16
- }
17
- }
18
- exports.A_ContextFragment = A_ContextFragment;
19
- //# sourceMappingURL=A-ContextFragment.class.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"A-ContextFragment.class.js","sourceRoot":"","sources":["../../../../src/global/A-Context/A-ContextFragment.class.ts"],"names":[],"mappings":";;;AAEA;;;;;;;GAOG;AACH,MAAa,iBAAiB;IAI1B,YAAY,GAAG,IAAW;QAFhB,SAAI,GAAU,EAAE,CAAC;QAGvB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACrB,CAAC;CAEJ;AARD,8CAQC"}
@@ -1,47 +0,0 @@
1
- import { A_TYPES__NamespaceConstructor, A_TYPES__INamespace } from './A_Namespace.types';
2
- /**
3
- * A_Namespace is a base class for all Namespaces in the A
4
- *
5
- * Namespace is a shared object within some environment, service or Application.
6
- * It is used to share some data, configuration, dependencies, etc. between different parts of the application.
7
- *
8
- * Namespace allow to :
9
- * - share some data between different parts of the application,
10
- * - share some configuration between different parts of the application,
11
- * - share some dependencies between different parts of the application,
12
- * - extend the capabilities of the application by adding new features or modifying existing ones into base classes
13
- *
14
- */
15
- export declare class A_Namespace<_ConstructorConfigType extends A_TYPES__NamespaceConstructor = any> implements A_TYPES__INamespace {
16
- protected config?: _ConstructorConfigType | undefined;
17
- /**
18
- * Namespace namespace
19
- */
20
- name: string;
21
- /**
22
- * Ready Promise to ensure the SDK is ready to use
23
- */
24
- ready: Promise<void>;
25
- constructor(config?: _ConstructorConfigType | undefined);
26
- private hasInherited;
27
- /**
28
- * Initializes the Namespace or can be used to reinitialize the Namespace
29
- */
30
- protected init(): Promise<void>;
31
- /**
32
- * Before init hook to be used in inherited classes
33
- *
34
- * @returns
35
- */
36
- protected onBeforeInit(): Promise<void>;
37
- /**
38
- * Main initialization method for the SDK
39
- */
40
- protected onInit(): Promise<void>;
41
- /**
42
- * After init hook to be used in inherited classes
43
- *
44
- * @returns
45
- */
46
- protected onAfterInit(): Promise<void>;
47
- }
@@ -1,112 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.A_Namespace = void 0;
13
- const A_Context_class_1 = require("../A-Context/A-Context.class");
14
- /**
15
- * A_Namespace is a base class for all Namespaces in the A
16
- *
17
- * Namespace is a shared object within some environment, service or Application.
18
- * It is used to share some data, configuration, dependencies, etc. between different parts of the application.
19
- *
20
- * Namespace allow to :
21
- * - share some data between different parts of the application,
22
- * - share some configuration between different parts of the application,
23
- * - share some dependencies between different parts of the application,
24
- * - extend the capabilities of the application by adding new features or modifying existing ones into base classes
25
- *
26
- */
27
- class A_Namespace {
28
- constructor(config) {
29
- this.config = config;
30
- /**
31
- * Register the Namespace in the global Namespace provider
32
- */
33
- this.name = A_Context_class_1.A_Context
34
- .register(this, config === null || config === void 0 ? void 0 : config.name);
35
- /**
36
- * Run Async Initialization
37
- */
38
- this.init();
39
- }
40
- hasInherited(cl) {
41
- return this.constructor === cl
42
- ? false
43
- : true;
44
- }
45
- /**
46
- * Initializes the Namespace or can be used to reinitialize the Namespace
47
- */
48
- init() {
49
- return __awaiter(this, void 0, void 0, function* () {
50
- if (!this.ready)
51
- this.ready = new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
52
- try {
53
- yield this.onBeforeInit();
54
- yield this.onInit();
55
- yield this.onAfterInit();
56
- return resolve();
57
- }
58
- catch (error) {
59
- return reject(error);
60
- }
61
- }));
62
- else
63
- yield this.ready;
64
- });
65
- }
66
- // ==============================================================
67
- // ======================= HOOKS ================================
68
- // ==============================================================
69
- /**
70
- * Before init hook to be used in inherited classes
71
- *
72
- * @returns
73
- */
74
- onBeforeInit() {
75
- return __awaiter(this, void 0, void 0, function* () {
76
- return;
77
- });
78
- }
79
- /**
80
- * Main initialization method for the SDK
81
- */
82
- onInit() {
83
- return __awaiter(this, void 0, void 0, function* () {
84
- // global logger configuration
85
- if (A_Context_class_1.A_Context.environment === 'server' && !this.hasInherited(A_Namespace)) {
86
- // eslint-disable-next-line no-use-before-define
87
- // process.on('uncaughtException', (error) => {
88
- // // log only in case of A_AUTH_Error
89
- // if (error instanceof A_Error)
90
- // this.Logger.error(error);
91
- // });
92
- // // eslint-disable-next-line no-use-before-define
93
- // process.on('unhandledRejection', (error) => {
94
- // if (error instanceof A_Error)
95
- // this.Logger.error(error);
96
- // });
97
- }
98
- });
99
- }
100
- /**
101
- * After init hook to be used in inherited classes
102
- *
103
- * @returns
104
- */
105
- onAfterInit() {
106
- return __awaiter(this, void 0, void 0, function* () {
107
- return;
108
- });
109
- }
110
- }
111
- exports.A_Namespace = A_Namespace;
112
- //# sourceMappingURL=A_Namespace.class.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"A_Namespace.class.js","sourceRoot":"","sources":["../../../../src/global/A-Namespace/A_Namespace.class.ts"],"names":[],"mappings":";;;;;;;;;;;;AAKA,kEAAyD;AAGzD;;;;;;;;;;;;GAYG;AACH,MAAa,WAAW;IAcpB,YACc,MAA+B;QAA/B,WAAM,GAAN,MAAM,CAAyB;QAEzC;;WAEG;QACH,IAAI,CAAC,IAAI,GAAG,2BAAS;aAChB,QAAQ,CACL,IAAI,EACJ,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,IAAI,CACf,CAAC;QAEN;;WAEG;QACH,IAAI,CAAC,IAAI,EAAE,CAAC;IAChB,CAAC;IAIO,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aceConstructor = {
5
- name?: string;
6
- };
7
- /**
8
- * Namespace Interface
9
- */
10
- export interface A_TYPES__INamespace {
11
- name: string;
12
- ready: Promise<void>;
13
- }
14
- /**
15
- * Global Namespace Interface uses for extending the Namespace from other modules or SDKs
16
- *
17
- */
18
- export interface A_TYPES__IGlobalNamespace extends A_TYPES__INamespace {
19
- }
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=A_Namespace.types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"A_Namespace.types.js","sourceRoot":"","sources":["../../../../src/global/A-Namespace/A_Namespace.types.ts"],"names":[],"mappings":""}
@@ -1,24 +0,0 @@
1
- import { A_TYPES__A_DependencyDecoratorConfig } from "../decorators/A-Dependency/A-Dependency.decorator.types";
2
- import { A_Concept } from "../global/A-Concept/A_Concept.class";
3
- import { A_Context } from "../global/A-Namespace/A_Namespace.class";
4
- import { A_TYPES__IContext } from "../global/A-Namespace/A_Namespace.types";
5
- import { A_Module } from "../global/A_Module.class";
6
- export declare class A_DependencyManager {
7
- private dependencies;
8
- protected Concept: A_Concept;
9
- ready: Promise<void>;
10
- constructor(concept: A_Concept, dependencies: Array<A_TYPES__A_DependencyDecoratorConfig>);
11
- add(dependency: A_TYPES__A_DependencyDecoratorConfig): void;
12
- resolve<T extends Array<typeof A_Module<any> | typeof A_Context>>(dependencies: [...T]): Promise<{
13
- [K in keyof T]: InstanceType<T[K]>;
14
- }>;
15
- resolve<T extends (A_Module<any> | A_TYPES__IContext)>(dependency: {
16
- new (...args: any[]): T;
17
- }): Promise<T>;
18
- private resolveModule;
19
- private resolveContext;
20
- hasModule(moduleConstructor: typeof A_SDK_Module.constructor): boolean;
21
- useModule(module: A_SDK_Module): void;
22
- init(): Promise<any>;
23
- private activateModuleWithDependencies;
24
- }
@@ -1,129 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.A_DependencyManager = void 0;
13
- const A_Namespace_class_1 = require("../global/A-Namespace/A_Namespace.class");
14
- const A_Module_class_1 = require("../global/A_Module.class");
15
- class A_DependencyManager {
16
- constructor(concept, dependencies) {
17
- this.dependencies = [];
18
- this.Concept = concept;
19
- this.dependencies = dependencies;
20
- }
21
- add(dependency) {
22
- this.dependencies.push(dependency);
23
- }
24
- resolve(param1) {
25
- return __awaiter(this, void 0, void 0, function* () {
26
- let dependencies = [
27
- ...(Array.isArray(param1) ? param1 : [param1])
28
- ];
29
- const resolvedDependencies = [];
30
- for (const dependency of dependencies) {
31
- switch (true) {
32
- case dependency instanceof A_Module_class_1.A_Module:
33
- resolvedDependencies.push(yield this.resolveModule(dependency));
34
- break;
35
- case dependency instanceof A_Namespace_class_1.A_Context:
36
- resolvedDependencies.push(yield this.resolveContext(dependency));
37
- break;
38
- default:
39
- throw new Error(`[!] A-Concept Dependency Manager: Unknown dependency type.`);
40
- }
41
- }
42
- return Array.isArray(param1) ? resolvedDependencies : resolvedDependencies[0];
43
- });
44
- }
45
- resolveModule(module) {
46
- return __awaiter(this, void 0, void 0, function* () {
47
- const resolvedDependencies = yield this.resolveDependencies(module.dependencies);
48
- return yield module.init(resolvedDependencies);
49
- });
50
- }
51
- resolveContext(context) {
52
- return __awaiter(this, void 0, void 0, function* () {
53
- const resolvedDependencies = yield this.resolveDependencies(context.dependencies);
54
- return yield context.init(resolvedDependencies);
55
- });
56
- }
57
- hasModule(moduleConstructor) {
58
- const targetModule = this.modules.get(moduleConstructor);
59
- return !!targetModule;
60
- }
61
- useModule(module) {
62
- const existedModule = this.modules.get(A_SDK_Module.constructor);
63
- if (!existedModule) {
64
- module.useContext(this.context);
65
- this.modules.set(A_SDK_Module.constructor, module);
66
- }
67
- this.context.Logger.warning(`[!] A-Express Module of type ${module.constructor} already included.`);
68
- }
69
- init() {
70
- return __awaiter(this, void 0, void 0, function* () {
71
- if (!this.ready) {
72
- this.ready = new Promise((resolve, reject) => __awaiter(this, void 0, void 0, function* () {
73
- try {
74
- for (const dependency of this.dependencies) {
75
- // await this.activateModuleWithDependencies(instance);
76
- const { source } = dependency;
77
- const targetInstance = new source();
78
- }
79
- /**
80
- * Then we have to ensure that all modules are loaded even if some has async behavior
81
- * To do this we have to wait for all modules to be ready before resolving the promise
82
- *
83
- * TODO: maybe it's not a case
84
- */
85
- // this.readyStateInterval = setInterval(() => {
86
- // if (!this.checkingReadyState()) {
87
- // clearInterval(this.readyStateInterval);
88
- // resolve();
89
- // }
90
- // }, 1000);
91
- return resolve();
92
- }
93
- catch (error) {
94
- this.context.Logger.error(`[!] A-SDK Dependency Manager activation failed with Error: `, error);
95
- reject(error);
96
- }
97
- }));
98
- }
99
- return this.activationPromise;
100
- });
101
- }
102
- // Recursively activate a module and its dependencies
103
- activateModuleWithDependencies(module_1) {
104
- return __awaiter(this, arguments, void 0, function* (module, path = []) {
105
- if (this.activatedModules.has(module.constructor)) {
106
- // Module is already activated
107
- return;
108
- }
109
- if (path.includes(module.constructor)) {
110
- throw new Error(`Circular dependency detected: ${[...path, module.constructor].join(' -> ')}`);
111
- }
112
- // Recursively activate dependencies first
113
- for (const dependency of module.dependencies) {
114
- const dependencyModule = this.modules.get(dependency);
115
- if (!dependencyModule) {
116
- this.context.Logger.warning(`[!] Missing dependency: ${dependency.constructor} for module ${module.constructor}`, ` Module ${dependency.constructor} initialization will be skipped...`);
117
- }
118
- else {
119
- yield this.activateModuleWithDependencies(dependencyModule, [...path, module.constructor]);
120
- }
121
- }
122
- // Activate the module itself
123
- yield module.load();
124
- this.activatedModules.add(module.constructor);
125
- });
126
- }
127
- }
128
- exports.A_DependencyManager = A_DependencyManager;
129
- //# sourceMappingURL=A_DependencyManager.class.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"A_DependencyManager.class.js","sourceRoot":"","sources":["../../../src/managers/A_DependencyManager.class.ts"],"names":[],"mappings":";;;;;;;;;;;;AAEA,+EAAoE;AAEpE,6DAAoD;AAGpD,MAAa,mBAAmB;IAQ5B,YACI,OAAkB,EAClB,YAAyD;QARrD,iBAAY,GAAgD,EAAE,CAAC;QAUnE,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;IACrC,CAAC;IAGD,GAAG,CACC,UAAgD;QAEhD,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACvC,CAAC;IAWK,OAAO,CACT,MAAsE;;YAEtE,IAAI,YAAY,GAAsC;gBAClD,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;aACjD,CAAC;YAEF,MAAM,oBAAoB,GAAa,EAAE,CAAA;YAEzC,KAAK,MAAM,UAAU,IAAI,YAAY,EAAE,CAAC;gBACpC,QAAQ,IAAI,EAAE,CAAC;oBACX,KAAK,UAAU,YAAY,yBAAQ;wBAC/B,oBAAoB,CAAC,IAAI,CAAC,MAAM,IAAI,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC,CAAC;wBAChE,MAAM;oBACV,KAAK,UAAU,YAAY,6BAAS;wBAChC,oBAAoB,CAAC,IAAI,CAAC,MAAM,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC,CAAC;wBACjE,MAAM;oBACV;wBACI,MAAM,IAAI,KAAK,CAAC,4DAA4D,CAAC,CAAC;gBACtF,CAAC;YACL,CAAC;YAED,O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,CAAC,gBAAgB,EAAE,CAAC;oBACpB,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CACvB,2BAA2B,UAAU,CAAC,WAAW,eAAe,MAAM,CAAC,WAAW,EAAE,EACpF,cAAc,UAAU,CAAC,WAAW,oCAAoC,CAC3E,CAAA;gBACL,CAAC;qBAAM,CAAC;oBACJ,MAAM,IAAI,CAAC,8BAA8B,CAAC,gBAAgB,EAAE,CAAC,GAAG,IAAI,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC;gBAC/F,CAAC;YACL,CAAC;YAED,6BAA6B;YAC7B,MAAM,MAAM,CAAC,IAAI,EAAE,CAAC;YAEpB,IAAI,CAAC,gBAAgB,CAAC,GAAG,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;QAClD,CAAC;KAAA;CAKJ;AA7KD,kDA6KC"}
@@ -1,10 +0,0 @@
1
- import { A_Component } from "../global/A-Component/A-Component.class";
2
- export declare const A_COMPONENT_STORAGE__Definition__Extensions: unique symbol;
3
- export declare const A_COMPONENT_STORAGE__Definition__Feature: unique symbol;
4
- /**
5
- *
6
- * This storage is used to store the containers metadata, definitions and configurations
7
- */
8
- export declare const A_COMPONENT_Storage: Map<typeof A_Component | {
9
- new (...args: any[]): any;
10
- }, Map<Symbol | string, any>>;
@@ -1,17 +0,0 @@
1
- "use strict";
2
- // =================================================================================================
3
- // ========== Component Storage ====================================================================
4
- // =================================================================================================
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.A_COMPONENT_Storage = exports.A_COMPONENT_STORAGE__Definition__Feature = exports.A_COMPONENT_STORAGE__Definition__Extensions = void 0;
7
- // -------------------------------------------------------------------------------
8
- // ----- A Concept -> Component Declaration -> Symbol Declaration Keys ---------------
9
- // -------------------------------------------------------------------------------
10
- exports.A_COMPONENT_STORAGE__Definition__Extensions = Symbol('a-container-extensions');
11
- exports.A_COMPONENT_STORAGE__Definition__Feature = Symbol('a-container-feature');
12
- /**
13
- *
14
- * This storage is used to store the containers metadata, definitions and configurations
15
- */
16
- exports.A_COMPONENT_Storage = new Map();
17
- //# sourceMappingURL=A_Component.storage.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"A_Component.storage.js","sourceRoot":"","sources":["../../../src/storage/A_Component.storage.ts"],"names":[],"mappings":";AAAA,oGAAoG;AACpG,oGAAoG;AACpG,oGAAoG;;;AAKpG,kFAAkF;AAClF,uFAAuF;AACvF,kFAAkF;AACrE,QAAA,2CAA2C,GAAG,MAAM,CAAC,wBAAwB,CAAC,CAAC;AAC/E,QAAA,wCAAwC,GAAG,MAAM,CAAC,qBAAqB,CAAC,CAAC;AAItF;;;GAGG;AACU,QAAA,mBAAmB,GAM5B,IAAI,GAAG,EAAE,CAAC"}
@@ -1,19 +0,0 @@
1
- export declare const A_CONCEPT_STORAGE__MODULE_DECLARATION_Config: unique symbol;
2
- export declare const A_CONCEPT_STORAGE__MODULE_DECLARATION_Lifecycle_RootRun: unique symbol;
3
- export declare const A_CONCEPT_STORAGE__MODULE_DECLARATION_Lifecycle_RootLoad: unique symbol;
4
- export declare const A_CONCEPT_STORAGE__MODULE_DECLARATION_Lifecycle_RootBuild: unique symbol;
5
- export declare const A_CONCEPT_STORAGE__MODULE_DECLARATION_Lifecycle_RootPublish: unique symbol;
6
- export declare const A_CONCEPT_STORAGE__MODULE_DECLARATION_Lifecycle_RootTest: unique symbol;
7
- /**
8
- * Storage to keep the module declarations across all modules
9
- */
10
- export declare const A_CONCEPT_ModulesDeclarationStorage: WeakMap<any, Map<string | Symbol, any>>;
11
- /**
12
- * Storage to keep the lifecycle declarations across all modules
13
- */
14
- export declare const A_CONCEPT_LifecycleDeclarationsStorage: Map<Symbol, any>;
15
- /**
16
- * The simplest way to store the decorators
17
- * If any extra API is needed, it can be added here or replaced with a new class
18
- */
19
- export declare const A_CONCEPT_Storage: WeakMap<object, any>;