taon 0.0.0 → 18.0.15

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 (668) hide show
  1. package/README.md +115 -0
  2. package/assets/shared/shared_folder_info.txt +7 -0
  3. package/bin/start.js +279 -0
  4. package/bin/taon +6 -5
  5. package/bin/taon-debug +5 -5
  6. package/bin/taon-debug-brk +5 -4
  7. package/browser/README.md +24 -0
  8. package/browser/esm2022/lib/base-classes/base-abstract-entity.mjs +18 -0
  9. package/browser/esm2022/lib/base-classes/base-class.mjs +17 -0
  10. package/browser/esm2022/lib/base-classes/base-context.mjs +14 -0
  11. package/browser/esm2022/lib/base-classes/base-controller.mjs +18 -0
  12. package/browser/esm2022/lib/base-classes/base-crud-controller.mjs +279 -0
  13. package/browser/esm2022/lib/base-classes/base-entity.mjs +18 -0
  14. package/browser/esm2022/lib/base-classes/base-injector.mjs +160 -0
  15. package/browser/esm2022/lib/base-classes/base-provider.mjs +6 -0
  16. package/browser/esm2022/lib/base-classes/base-repository.mjs +514 -0
  17. package/browser/esm2022/lib/base-classes/base-subscriber-for-entity.mjs +137 -0
  18. package/browser/esm2022/lib/base-classes/base-subscriber.mjs +27 -0
  19. package/browser/esm2022/lib/base-classes/base.mjs +26 -0
  20. package/browser/esm2022/lib/constants.mjs +4 -0
  21. package/browser/esm2022/lib/create-context.mjs +87 -0
  22. package/browser/esm2022/lib/decorators/classes/controller-decorator.mjs +15 -0
  23. package/browser/esm2022/lib/decorators/classes/entity-decorator.mjs +27 -0
  24. package/browser/esm2022/lib/decorators/classes/provider-decorator.mjs +15 -0
  25. package/browser/esm2022/lib/decorators/classes/repository-decorator.mjs +15 -0
  26. package/browser/esm2022/lib/decorators/classes/subscriber-decorator.mjs +41 -0
  27. package/browser/esm2022/lib/decorators/http/http-decorators.mjs +22 -0
  28. package/browser/esm2022/lib/decorators/http/http-methods-decorators.mjs +78 -0
  29. package/browser/esm2022/lib/decorators/http/http-params-decorators.mjs +47 -0
  30. package/browser/esm2022/lib/dependency-injection/di-container.mjs +32 -0
  31. package/browser/esm2022/lib/endpoint-context.mjs +1746 -0
  32. package/browser/esm2022/lib/entity-process.mjs +207 -0
  33. package/browser/esm2022/lib/env.mjs +6 -0
  34. package/browser/esm2022/lib/get-response-value.mjs +41 -0
  35. package/browser/esm2022/lib/helpers/class-helpers.mjs +183 -0
  36. package/browser/esm2022/lib/helpers/taon-helpers.mjs +120 -0
  37. package/browser/esm2022/lib/index.mjs +79 -0
  38. package/browser/esm2022/lib/inject.mjs +70 -0
  39. package/browser/esm2022/lib/models.mjs +77 -0
  40. package/browser/esm2022/lib/orm.mjs +6 -0
  41. package/browser/esm2022/lib/realtime/realtime-client.mjs +129 -0
  42. package/browser/esm2022/lib/realtime/realtime-core.mjs +54 -0
  43. package/browser/esm2022/lib/realtime/realtime-server.mjs +274 -0
  44. package/browser/esm2022/lib/realtime/realtime-strategy/index.mjs +7 -0
  45. package/browser/esm2022/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-namespace.mjs +98 -0
  46. package/browser/esm2022/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-wrapper.mjs +45 -0
  47. package/browser/esm2022/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-namespace.mjs +40 -0
  48. package/browser/esm2022/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-wrapper.mjs +25 -0
  49. package/browser/esm2022/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc.models.mjs +4 -0
  50. package/browser/esm2022/lib/realtime/realtime-strategy/realtime-strategy-ipc.mjs +49 -0
  51. package/browser/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock-models/index.mjs +5 -0
  52. package/browser/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-client.mjs +50 -0
  53. package/browser/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-namespaces.mjs +48 -0
  54. package/browser/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-server.mjs +35 -0
  55. package/browser/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-socket.mjs +43 -0
  56. package/browser/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock.models.mjs +4 -0
  57. package/browser/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock.mjs +28 -0
  58. package/browser/esm2022/lib/realtime/realtime-strategy/realtime-strategy-socket-io.mjs +33 -0
  59. package/browser/esm2022/lib/realtime/realtime-strategy/realtime-strategy.mjs +10 -0
  60. package/browser/esm2022/lib/realtime/realtime-subs-manager.mjs +79 -0
  61. package/browser/esm2022/lib/realtime/realtime.models.mjs +4 -0
  62. package/browser/esm2022/lib/storage.mjs +5 -0
  63. package/browser/esm2022/lib/symbols.mjs +89 -0
  64. package/browser/esm2022/lib/ui/taon-admin-mode-configuration/models/taon-admin-mode-tabs.mjs +4 -0
  65. package/browser/esm2022/lib/ui/taon-admin-mode-configuration/taon-admin-control.service.mjs +32 -0
  66. package/browser/esm2022/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.component.mjs +167 -0
  67. package/browser/esm2022/lib/ui/taon-admin-mode-configuration/taon-admin.service.mjs +64 -0
  68. package/browser/esm2022/lib/validators.mjs +76 -0
  69. package/browser/esm2022/public-api.mjs +2 -0
  70. package/browser/esm2022/taon.mjs +5 -0
  71. package/browser/fesm2022/taon.mjs +4901 -0
  72. package/browser/fesm2022/taon.mjs.map +1 -0
  73. package/browser/index.d.ts +6 -0
  74. package/browser/lib/base-classes/base-abstract-entity.d.ts +7 -0
  75. package/browser/lib/base-classes/base-class.d.ts +9 -0
  76. package/browser/lib/base-classes/base-context.d.ts +17 -0
  77. package/browser/lib/base-classes/base-controller.d.ts +8 -0
  78. package/browser/lib/base-classes/base-crud-controller.d.ts +28 -0
  79. package/browser/lib/base-classes/base-entity.d.ts +8 -0
  80. package/browser/lib/base-classes/base-injector.d.ts +60 -0
  81. package/browser/lib/base-classes/base-provider.d.ts +4 -0
  82. package/browser/lib/base-classes/base-repository.d.ts +249 -0
  83. package/browser/lib/base-classes/base-subscriber-for-entity.d.ts +82 -0
  84. package/browser/lib/base-classes/base-subscriber.d.ts +5 -0
  85. package/browser/lib/base-classes/base.d.ts +36 -0
  86. package/browser/lib/constants.d.ts +2 -0
  87. package/browser/lib/create-context.d.ts +25 -0
  88. package/browser/lib/decorators/classes/controller-decorator.d.ts +13 -0
  89. package/browser/lib/decorators/classes/entity-decorator.d.ts +17 -0
  90. package/browser/lib/decorators/classes/provider-decorator.d.ts +5 -0
  91. package/browser/lib/decorators/classes/repository-decorator.d.ts +5 -0
  92. package/browser/lib/decorators/classes/subscriber-decorator.d.ts +6 -0
  93. package/browser/lib/decorators/http/http-decorators.d.ts +18 -0
  94. package/browser/lib/decorators/http/http-methods-decorators.d.ts +15 -0
  95. package/browser/lib/decorators/http/http-params-decorators.d.ts +6 -0
  96. package/browser/lib/dependency-injection/di-container.d.ts +6 -0
  97. package/browser/lib/endpoint-context.d.ts +117 -0
  98. package/browser/lib/entity-process.d.ts +40 -0
  99. package/browser/lib/env.d.ts +3 -0
  100. package/browser/lib/get-response-value.d.ts +7 -0
  101. package/browser/lib/helpers/class-helpers.d.ts +19 -0
  102. package/browser/lib/helpers/taon-helpers.d.ts +17 -0
  103. package/browser/lib/index.d.ts +113 -0
  104. package/browser/lib/inject.d.ts +9 -0
  105. package/browser/lib/models.d.ts +175 -0
  106. package/browser/lib/orm.d.ts +3 -0
  107. package/browser/lib/realtime/realtime-client.d.ts +32 -0
  108. package/browser/lib/realtime/realtime-core.d.ts +41 -0
  109. package/browser/lib/realtime/realtime-server.d.ts +14 -0
  110. package/browser/lib/realtime/realtime-strategy/index.d.ts +5 -0
  111. package/browser/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-namespace.d.ts +22 -0
  112. package/browser/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-wrapper.d.ts +17 -0
  113. package/browser/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-namespace.d.ts +11 -0
  114. package/browser/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-wrapper.d.ts +11 -0
  115. package/browser/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc.models.d.ts +14 -0
  116. package/browser/lib/realtime/realtime-strategy/realtime-strategy-ipc.d.ts +23 -0
  117. package/browser/lib/realtime/realtime-strategy/realtime-strategy-mock-models/index.d.ts +3 -0
  118. package/browser/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-client.d.ts +17 -0
  119. package/browser/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-namespaces.d.ts +18 -0
  120. package/browser/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-server.d.ts +12 -0
  121. package/browser/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-socket.d.ts +14 -0
  122. package/browser/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock.models.d.ts +12 -0
  123. package/browser/lib/realtime/realtime-strategy/realtime-strategy-mock.d.ts +15 -0
  124. package/browser/lib/realtime/realtime-strategy/realtime-strategy-socket-io.d.ts +17 -0
  125. package/browser/lib/realtime/realtime-strategy/realtime-strategy.d.ts +13 -0
  126. package/browser/lib/realtime/realtime-subs-manager.d.ts +15 -0
  127. package/browser/lib/realtime/realtime.models.d.ts +14 -0
  128. package/browser/lib/storage.d.ts +2 -0
  129. package/browser/lib/symbols.d.ts +73 -0
  130. package/browser/lib/ui/taon-admin-mode-configuration/models/taon-admin-mode-tabs.d.ts +6 -0
  131. package/browser/lib/ui/taon-admin-mode-configuration/taon-admin-control.service.d.ts +18 -0
  132. package/browser/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.component.d.ts +51 -0
  133. package/browser/lib/ui/taon-admin-mode-configuration/taon-admin.service.d.ts +25 -0
  134. package/browser/lib/validators.d.ts +8 -0
  135. package/browser/package.json +25 -0
  136. package/browser/public-api.d.ts +2 -0
  137. package/cli.d.ts +1 -0
  138. package/cli.js +24 -0
  139. package/cli.js.map +1 -0
  140. package/client/README.md +24 -0
  141. package/client/esm2022/lib/base-classes/base-abstract-entity.mjs +18 -0
  142. package/client/esm2022/lib/base-classes/base-class.mjs +17 -0
  143. package/client/esm2022/lib/base-classes/base-context.mjs +14 -0
  144. package/client/esm2022/lib/base-classes/base-controller.mjs +18 -0
  145. package/client/esm2022/lib/base-classes/base-crud-controller.mjs +279 -0
  146. package/client/esm2022/lib/base-classes/base-entity.mjs +18 -0
  147. package/client/esm2022/lib/base-classes/base-injector.mjs +160 -0
  148. package/client/esm2022/lib/base-classes/base-provider.mjs +6 -0
  149. package/client/esm2022/lib/base-classes/base-repository.mjs +514 -0
  150. package/client/esm2022/lib/base-classes/base-subscriber-for-entity.mjs +137 -0
  151. package/client/esm2022/lib/base-classes/base-subscriber.mjs +27 -0
  152. package/client/esm2022/lib/base-classes/base.mjs +26 -0
  153. package/client/esm2022/lib/constants.mjs +4 -0
  154. package/client/esm2022/lib/create-context.mjs +87 -0
  155. package/client/esm2022/lib/decorators/classes/controller-decorator.mjs +15 -0
  156. package/client/esm2022/lib/decorators/classes/entity-decorator.mjs +27 -0
  157. package/client/esm2022/lib/decorators/classes/provider-decorator.mjs +15 -0
  158. package/client/esm2022/lib/decorators/classes/repository-decorator.mjs +15 -0
  159. package/client/esm2022/lib/decorators/classes/subscriber-decorator.mjs +41 -0
  160. package/client/esm2022/lib/decorators/http/http-decorators.mjs +22 -0
  161. package/client/esm2022/lib/decorators/http/http-methods-decorators.mjs +78 -0
  162. package/client/esm2022/lib/decorators/http/http-params-decorators.mjs +47 -0
  163. package/client/esm2022/lib/dependency-injection/di-container.mjs +32 -0
  164. package/client/esm2022/lib/endpoint-context.mjs +1746 -0
  165. package/client/esm2022/lib/entity-process.mjs +207 -0
  166. package/client/esm2022/lib/env.mjs +6 -0
  167. package/client/esm2022/lib/get-response-value.mjs +41 -0
  168. package/client/esm2022/lib/helpers/class-helpers.mjs +183 -0
  169. package/client/esm2022/lib/helpers/taon-helpers.mjs +120 -0
  170. package/client/esm2022/lib/index.mjs +79 -0
  171. package/client/esm2022/lib/inject.mjs +70 -0
  172. package/client/esm2022/lib/models.mjs +77 -0
  173. package/client/esm2022/lib/orm.mjs +6 -0
  174. package/client/esm2022/lib/realtime/realtime-client.mjs +129 -0
  175. package/client/esm2022/lib/realtime/realtime-core.mjs +54 -0
  176. package/client/esm2022/lib/realtime/realtime-server.mjs +274 -0
  177. package/client/esm2022/lib/realtime/realtime-strategy/index.mjs +7 -0
  178. package/client/esm2022/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-namespace.mjs +98 -0
  179. package/client/esm2022/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-wrapper.mjs +45 -0
  180. package/client/esm2022/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-namespace.mjs +40 -0
  181. package/client/esm2022/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-wrapper.mjs +25 -0
  182. package/client/esm2022/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc.models.mjs +4 -0
  183. package/client/esm2022/lib/realtime/realtime-strategy/realtime-strategy-ipc.mjs +49 -0
  184. package/client/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock-models/index.mjs +5 -0
  185. package/client/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-client.mjs +50 -0
  186. package/client/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-namespaces.mjs +48 -0
  187. package/client/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-server.mjs +35 -0
  188. package/client/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-socket.mjs +43 -0
  189. package/client/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock.models.mjs +4 -0
  190. package/client/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock.mjs +28 -0
  191. package/client/esm2022/lib/realtime/realtime-strategy/realtime-strategy-socket-io.mjs +33 -0
  192. package/client/esm2022/lib/realtime/realtime-strategy/realtime-strategy.mjs +10 -0
  193. package/client/esm2022/lib/realtime/realtime-subs-manager.mjs +79 -0
  194. package/client/esm2022/lib/realtime/realtime.models.mjs +4 -0
  195. package/client/esm2022/lib/storage.mjs +5 -0
  196. package/client/esm2022/lib/symbols.mjs +89 -0
  197. package/client/esm2022/lib/ui/taon-admin-mode-configuration/models/taon-admin-mode-tabs.mjs +4 -0
  198. package/client/esm2022/lib/ui/taon-admin-mode-configuration/taon-admin-control.service.mjs +32 -0
  199. package/client/esm2022/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.component.mjs +167 -0
  200. package/client/esm2022/lib/ui/taon-admin-mode-configuration/taon-admin.service.mjs +64 -0
  201. package/client/esm2022/lib/validators.mjs +76 -0
  202. package/client/esm2022/public-api.mjs +2 -0
  203. package/client/esm2022/taon.mjs +5 -0
  204. package/client/fesm2022/taon.mjs +4901 -0
  205. package/client/fesm2022/taon.mjs.map +1 -0
  206. package/client/index.d.ts +6 -0
  207. package/client/lib/base-classes/base-abstract-entity.d.ts +7 -0
  208. package/client/lib/base-classes/base-class.d.ts +9 -0
  209. package/client/lib/base-classes/base-context.d.ts +17 -0
  210. package/client/lib/base-classes/base-controller.d.ts +8 -0
  211. package/client/lib/base-classes/base-crud-controller.d.ts +28 -0
  212. package/client/lib/base-classes/base-entity.d.ts +8 -0
  213. package/client/lib/base-classes/base-injector.d.ts +60 -0
  214. package/client/lib/base-classes/base-provider.d.ts +4 -0
  215. package/client/lib/base-classes/base-repository.d.ts +249 -0
  216. package/client/lib/base-classes/base-subscriber-for-entity.d.ts +82 -0
  217. package/client/lib/base-classes/base-subscriber.d.ts +5 -0
  218. package/client/lib/base-classes/base.d.ts +36 -0
  219. package/client/lib/constants.d.ts +2 -0
  220. package/client/lib/create-context.d.ts +25 -0
  221. package/client/lib/decorators/classes/controller-decorator.d.ts +13 -0
  222. package/client/lib/decorators/classes/entity-decorator.d.ts +17 -0
  223. package/client/lib/decorators/classes/provider-decorator.d.ts +5 -0
  224. package/client/lib/decorators/classes/repository-decorator.d.ts +5 -0
  225. package/client/lib/decorators/classes/subscriber-decorator.d.ts +6 -0
  226. package/client/lib/decorators/http/http-decorators.d.ts +18 -0
  227. package/client/lib/decorators/http/http-methods-decorators.d.ts +15 -0
  228. package/client/lib/decorators/http/http-params-decorators.d.ts +6 -0
  229. package/client/lib/dependency-injection/di-container.d.ts +6 -0
  230. package/client/lib/endpoint-context.d.ts +117 -0
  231. package/client/lib/entity-process.d.ts +40 -0
  232. package/client/lib/env.d.ts +3 -0
  233. package/client/lib/get-response-value.d.ts +7 -0
  234. package/client/lib/helpers/class-helpers.d.ts +19 -0
  235. package/client/lib/helpers/taon-helpers.d.ts +17 -0
  236. package/client/lib/index.d.ts +113 -0
  237. package/client/lib/inject.d.ts +9 -0
  238. package/client/lib/models.d.ts +175 -0
  239. package/client/lib/orm.d.ts +3 -0
  240. package/client/lib/realtime/realtime-client.d.ts +32 -0
  241. package/client/lib/realtime/realtime-core.d.ts +41 -0
  242. package/client/lib/realtime/realtime-server.d.ts +14 -0
  243. package/client/lib/realtime/realtime-strategy/index.d.ts +5 -0
  244. package/client/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-namespace.d.ts +22 -0
  245. package/client/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-wrapper.d.ts +17 -0
  246. package/client/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-namespace.d.ts +11 -0
  247. package/client/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-wrapper.d.ts +11 -0
  248. package/client/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc.models.d.ts +14 -0
  249. package/client/lib/realtime/realtime-strategy/realtime-strategy-ipc.d.ts +23 -0
  250. package/client/lib/realtime/realtime-strategy/realtime-strategy-mock-models/index.d.ts +3 -0
  251. package/client/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-client.d.ts +17 -0
  252. package/client/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-namespaces.d.ts +18 -0
  253. package/client/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-server.d.ts +12 -0
  254. package/client/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-socket.d.ts +14 -0
  255. package/client/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock.models.d.ts +12 -0
  256. package/client/lib/realtime/realtime-strategy/realtime-strategy-mock.d.ts +15 -0
  257. package/client/lib/realtime/realtime-strategy/realtime-strategy-socket-io.d.ts +17 -0
  258. package/client/lib/realtime/realtime-strategy/realtime-strategy.d.ts +13 -0
  259. package/client/lib/realtime/realtime-subs-manager.d.ts +15 -0
  260. package/client/lib/realtime/realtime.models.d.ts +14 -0
  261. package/client/lib/storage.d.ts +2 -0
  262. package/client/lib/symbols.d.ts +73 -0
  263. package/client/lib/ui/taon-admin-mode-configuration/models/taon-admin-mode-tabs.d.ts +6 -0
  264. package/client/lib/ui/taon-admin-mode-configuration/taon-admin-control.service.d.ts +18 -0
  265. package/client/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.component.d.ts +51 -0
  266. package/client/lib/ui/taon-admin-mode-configuration/taon-admin.service.d.ts +25 -0
  267. package/client/lib/validators.d.ts +8 -0
  268. package/client/public-api.d.ts +2 -0
  269. package/index.d.ts +1 -0
  270. package/index.js +5 -1
  271. package/index.js.map +1 -0
  272. package/lib/base-classes/base-abstract-entity.d.ts +6 -0
  273. package/lib/base-classes/base-abstract-entity.js +40 -0
  274. package/lib/base-classes/base-abstract-entity.js.map +1 -0
  275. package/lib/base-classes/base-class.d.ts +8 -0
  276. package/lib/base-classes/base-class.js +35 -0
  277. package/lib/base-classes/base-class.js.map +1 -0
  278. package/lib/base-classes/base-context.d.ts +16 -0
  279. package/lib/base-classes/base-context.js +15 -0
  280. package/lib/base-classes/base-context.js.map +1 -0
  281. package/lib/base-classes/base-controller.d.ts +7 -0
  282. package/lib/base-classes/base-controller.js +24 -0
  283. package/lib/base-classes/base-controller.js.map +1 -0
  284. package/lib/base-classes/base-crud-controller.d.ts +27 -0
  285. package/lib/base-classes/base-crud-controller.js +385 -0
  286. package/lib/base-classes/base-crud-controller.js.map +1 -0
  287. package/lib/base-classes/base-entity.d.ts +7 -0
  288. package/lib/base-classes/base-entity.js +25 -0
  289. package/lib/base-classes/base-entity.js.map +1 -0
  290. package/lib/base-classes/base-injector.d.ts +59 -0
  291. package/lib/base-classes/base-injector.js +220 -0
  292. package/lib/base-classes/base-injector.js.map +1 -0
  293. package/lib/base-classes/base-provider.d.ts +3 -0
  294. package/lib/base-classes/base-provider.js +14 -0
  295. package/lib/base-classes/base-provider.js.map +1 -0
  296. package/lib/base-classes/base-repository.d.ts +254 -0
  297. package/lib/base-classes/base-repository.js +780 -0
  298. package/lib/base-classes/base-repository.js.map +1 -0
  299. package/lib/base-classes/base-subscriber-for-entity.d.ts +81 -0
  300. package/lib/base-classes/base-subscriber-for-entity.js +136 -0
  301. package/lib/base-classes/base-subscriber-for-entity.js.map +1 -0
  302. package/lib/base-classes/base-subscriber.d.ts +4 -0
  303. package/lib/base-classes/base-subscriber.js +25 -0
  304. package/lib/base-classes/base-subscriber.js.map +1 -0
  305. package/lib/base-classes/base.d.ts +35 -0
  306. package/lib/base-classes/base.js +27 -0
  307. package/lib/base-classes/base.js.map +1 -0
  308. package/lib/build-info._auto-generated_.d.ts +1 -0
  309. package/lib/build-info._auto-generated_.js +5 -0
  310. package/lib/build-info._auto-generated_.js.map +1 -0
  311. package/lib/constants.d.ts +1 -0
  312. package/lib/constants.js +3 -0
  313. package/lib/constants.js.map +1 -0
  314. package/lib/create-context.d.ts +24 -0
  315. package/lib/create-context.js +183 -0
  316. package/lib/create-context.js.map +1 -0
  317. package/lib/decorators/classes/controller-decorator.d.ts +12 -0
  318. package/lib/decorators/classes/controller-decorator.js +24 -0
  319. package/lib/decorators/classes/controller-decorator.js.map +1 -0
  320. package/lib/decorators/classes/entity-decorator.d.ts +16 -0
  321. package/lib/decorators/classes/entity-decorator.js +39 -0
  322. package/lib/decorators/classes/entity-decorator.js.map +1 -0
  323. package/lib/decorators/classes/provider-decorator.d.ts +4 -0
  324. package/lib/decorators/classes/provider-decorator.js +24 -0
  325. package/lib/decorators/classes/provider-decorator.js.map +1 -0
  326. package/lib/decorators/classes/repository-decorator.d.ts +4 -0
  327. package/lib/decorators/classes/repository-decorator.js +24 -0
  328. package/lib/decorators/classes/repository-decorator.js.map +1 -0
  329. package/lib/decorators/classes/subscriber-decorator.d.ts +5 -0
  330. package/lib/decorators/classes/subscriber-decorator.js +75 -0
  331. package/lib/decorators/classes/subscriber-decorator.js.map +1 -0
  332. package/lib/decorators/http/http-decorators.d.ts +17 -0
  333. package/lib/decorators/http/http-decorators.js +23 -0
  334. package/lib/decorators/http/http-decorators.js.map +1 -0
  335. package/lib/decorators/http/http-methods-decorators.d.ts +14 -0
  336. package/lib/decorators/http/http-methods-decorators.js +91 -0
  337. package/lib/decorators/http/http-methods-decorators.js.map +1 -0
  338. package/lib/decorators/http/http-params-decorators.d.ts +5 -0
  339. package/lib/decorators/http/http-params-decorators.js +55 -0
  340. package/lib/decorators/http/http-params-decorators.js.map +1 -0
  341. package/lib/dependency-injection/di-container.d.ts +5 -0
  342. package/lib/dependency-injection/di-container.js +40 -0
  343. package/lib/dependency-injection/di-container.js.map +1 -0
  344. package/lib/endpoint-context.d.ts +117 -0
  345. package/lib/endpoint-context.js +2128 -0
  346. package/lib/endpoint-context.js.map +1 -0
  347. package/lib/entity-process.d.ts +39 -0
  348. package/lib/entity-process.js +261 -0
  349. package/lib/entity-process.js.map +1 -0
  350. package/lib/env.d.ts +2 -0
  351. package/lib/env.js +7 -0
  352. package/lib/env.js.map +1 -0
  353. package/lib/formly/formly-group-wrapper-component.d.ts +5 -0
  354. package/lib/formly/formly-group-wrapper-component.js +28 -0
  355. package/lib/formly/formly-group-wrapper-component.js.map +1 -0
  356. package/lib/formly/formly-repeat-component.d.ts +5 -0
  357. package/lib/formly/formly-repeat-component.js +47 -0
  358. package/lib/formly/formly-repeat-component.js.map +1 -0
  359. package/lib/formly/formly.models.d.ts +1 -0
  360. package/lib/formly/formly.models.js +3 -0
  361. package/lib/formly/formly.models.js.map +1 -0
  362. package/lib/formly/fromly.d.ts +16 -0
  363. package/lib/formly/fromly.js +213 -0
  364. package/lib/formly/fromly.js.map +1 -0
  365. package/lib/formly/type-from-entity.d.ts +20 -0
  366. package/lib/formly/type-from-entity.js +65 -0
  367. package/lib/formly/type-from-entity.js.map +1 -0
  368. package/lib/get-response-value.d.ts +6 -0
  369. package/lib/get-response-value.js +65 -0
  370. package/lib/get-response-value.js.map +1 -0
  371. package/lib/helpers/class-helpers.d.ts +18 -0
  372. package/lib/helpers/class-helpers.js +227 -0
  373. package/lib/helpers/class-helpers.js.map +1 -0
  374. package/lib/helpers/taon-helpers.d.ts +16 -0
  375. package/lib/helpers/taon-helpers.js +144 -0
  376. package/lib/helpers/taon-helpers.js.map +1 -0
  377. package/lib/index.d.ts +112 -0
  378. package/lib/index.js +113 -0
  379. package/lib/index.js.map +1 -0
  380. package/lib/inject.d.ts +8 -0
  381. package/lib/inject.js +84 -0
  382. package/lib/inject.js.map +1 -0
  383. package/lib/models.d.ts +180 -0
  384. package/lib/models.js +107 -0
  385. package/lib/models.js.map +1 -0
  386. package/lib/orm.d.ts +51 -0
  387. package/lib/orm.js +79 -0
  388. package/lib/orm.js.map +1 -0
  389. package/lib/realtime/realtime-client.d.ts +31 -0
  390. package/lib/realtime/realtime-client.js +158 -0
  391. package/lib/realtime/realtime-client.js.map +1 -0
  392. package/lib/realtime/realtime-core.d.ts +40 -0
  393. package/lib/realtime/realtime-core.js +72 -0
  394. package/lib/realtime/realtime-core.js.map +1 -0
  395. package/lib/realtime/realtime-server.d.ts +13 -0
  396. package/lib/realtime/realtime-server.js +193 -0
  397. package/lib/realtime/realtime-server.js.map +1 -0
  398. package/lib/realtime/realtime-strategy/index.d.ts +4 -0
  399. package/lib/realtime/realtime-strategy/index.js +8 -0
  400. package/lib/realtime/realtime-strategy/index.js.map +1 -0
  401. package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/index.d.ts +0 -0
  402. package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/index.js +5 -0
  403. package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/index.js.map +1 -0
  404. package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-namespace.d.ts +22 -0
  405. package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-namespace.js +139 -0
  406. package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-namespace.js.map +1 -0
  407. package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-wrapper.d.ts +16 -0
  408. package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-wrapper.js +68 -0
  409. package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-wrapper.js.map +1 -0
  410. package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-namespace.d.ts +10 -0
  411. package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-namespace.js +56 -0
  412. package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-namespace.js.map +1 -0
  413. package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-wrapper.d.ts +10 -0
  414. package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-wrapper.js +50 -0
  415. package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-wrapper.js.map +1 -0
  416. package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc.models.d.ts +13 -0
  417. package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc.models.js +3 -0
  418. package/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc.models.js.map +1 -0
  419. package/lib/realtime/realtime-strategy/realtime-strategy-ipc.d.ts +22 -0
  420. package/lib/realtime/realtime-strategy/realtime-strategy-ipc.js +68 -0
  421. package/lib/realtime/realtime-strategy/realtime-strategy-ipc.js.map +1 -0
  422. package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/index.d.ts +2 -0
  423. package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/index.js +6 -0
  424. package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/index.js.map +1 -0
  425. package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-client.d.ts +16 -0
  426. package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-client.js +54 -0
  427. package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-client.js.map +1 -0
  428. package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-namespaces.d.ts +17 -0
  429. package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-namespaces.js +52 -0
  430. package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-namespaces.js.map +1 -0
  431. package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-server.d.ts +11 -0
  432. package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-server.js +39 -0
  433. package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-server.js.map +1 -0
  434. package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-socket.d.ts +13 -0
  435. package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-socket.js +46 -0
  436. package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-socket.js.map +1 -0
  437. package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock.models.d.ts +11 -0
  438. package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock.models.js +3 -0
  439. package/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock.models.js.map +1 -0
  440. package/lib/realtime/realtime-strategy/realtime-strategy-mock.d.ts +14 -0
  441. package/lib/realtime/realtime-strategy/realtime-strategy-mock.js +42 -0
  442. package/lib/realtime/realtime-strategy/realtime-strategy-mock.js.map +1 -0
  443. package/lib/realtime/realtime-strategy/realtime-strategy-socket-io.d.ts +17 -0
  444. package/lib/realtime/realtime-strategy/realtime-strategy-socket-io.js +48 -0
  445. package/lib/realtime/realtime-strategy/realtime-strategy-socket-io.js.map +1 -0
  446. package/lib/realtime/realtime-strategy/realtime-strategy.d.ts +12 -0
  447. package/lib/realtime/realtime-strategy/realtime-strategy.js +14 -0
  448. package/lib/realtime/realtime-strategy/realtime-strategy.js.map +1 -0
  449. package/lib/realtime/realtime-subs-manager.d.ts +14 -0
  450. package/lib/realtime/realtime-subs-manager.js +102 -0
  451. package/lib/realtime/realtime-subs-manager.js.map +1 -0
  452. package/lib/realtime/realtime.models.d.ts +13 -0
  453. package/lib/realtime/realtime.models.js +3 -0
  454. package/lib/realtime/realtime.models.js.map +1 -0
  455. package/lib/storage.d.ts +1 -0
  456. package/lib/storage.js +6 -0
  457. package/lib/storage.js.map +1 -0
  458. package/lib/symbols.d.ts +72 -0
  459. package/lib/symbols.js +91 -0
  460. package/lib/symbols.js.map +1 -0
  461. package/lib/ui/directives/firedev-inject-html.directive.d.ts +6 -0
  462. package/lib/ui/directives/firedev-long-press.directive.d.ts +22 -0
  463. package/lib/ui/directives/index.d.ts +4 -0
  464. package/lib/ui/directives/index.js +5 -0
  465. package/lib/ui/directives/index.js.map +1 -0
  466. package/lib/ui/directives/safe.pipe.d.ts +7 -0
  467. package/lib/ui/directives/view-mode.d.ts +5 -0
  468. package/lib/ui/directives/view-mode.js +10 -0
  469. package/lib/ui/directives/view-mode.js.map +1 -0
  470. package/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/index.d.ts +2 -0
  471. package/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/index.js +5 -0
  472. package/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/index.js.map +1 -0
  473. package/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/taon-admin-edit-mode.component.d.ts +31 -0
  474. package/lib/ui/taon-admin-mode-configuration/components/taon-admin-edit-mode/taon-admin-edit-mode.module.d.ts +2 -0
  475. package/lib/ui/taon-admin-mode-configuration/components/taon-db-admin/index.d.ts +1 -0
  476. package/lib/ui/taon-admin-mode-configuration/components/taon-db-admin/index.js +5 -0
  477. package/lib/ui/taon-admin-mode-configuration/components/taon-db-admin/index.js.map +1 -0
  478. package/lib/ui/taon-admin-mode-configuration/components/taon-db-admin/taon-db-admin.component.d.ts +9 -0
  479. package/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/index.d.ts +2 -0
  480. package/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/index.js +5 -0
  481. package/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/index.js.map +1 -0
  482. package/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/taon-file-general-opt.component.d.ts +14 -0
  483. package/lib/ui/taon-admin-mode-configuration/components/taon-file-general-opt/taon-file-general-opt.module.d.ts +2 -0
  484. package/lib/ui/taon-admin-mode-configuration/index.d.ts +4 -0
  485. package/lib/ui/taon-admin-mode-configuration/index.js +5 -0
  486. package/lib/ui/taon-admin-mode-configuration/index.js.map +1 -0
  487. package/lib/ui/taon-admin-mode-configuration/models/taon-admin-mode-tabs.d.ts +5 -0
  488. package/lib/ui/taon-admin-mode-configuration/models/taon-admin-mode-tabs.js +3 -0
  489. package/lib/ui/taon-admin-mode-configuration/models/taon-admin-mode-tabs.js.map +1 -0
  490. package/lib/ui/taon-admin-mode-configuration/taon-admin-control.service.d.ts +14 -0
  491. package/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.component.d.ts +47 -0
  492. package/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.module.d.ts +2 -0
  493. package/lib/ui/taon-admin-mode-configuration/taon-admin.service.d.ts +21 -0
  494. package/lib/ui/taon-github-fork-me-corner/index.d.ts +2 -0
  495. package/lib/ui/taon-github-fork-me-corner/index.js +5 -0
  496. package/lib/ui/taon-github-fork-me-corner/index.js.map +1 -0
  497. package/lib/ui/taon-github-fork-me-corner/taon-github-fork-me-corner.component.d.ts +3 -0
  498. package/lib/ui/taon-github-fork-me-corner/taon-github-fork-me-corner.module.d.ts +2 -0
  499. package/lib/ui/taon-github-fork-me-ribbon/index.d.ts +2 -0
  500. package/lib/ui/taon-github-fork-me-ribbon/index.js +5 -0
  501. package/lib/ui/taon-github-fork-me-ribbon/index.js.map +1 -0
  502. package/lib/ui/taon-github-fork-me-ribbon/taon-github-fork-me-ribbon.component.d.ts +3 -0
  503. package/lib/ui/taon-github-fork-me-ribbon/taon-github-fork-me-ribbon.module.d.ts +2 -0
  504. package/lib/ui/taon-notifications/index.d.ts +4 -0
  505. package/lib/ui/taon-notifications/index.js +11 -0
  506. package/lib/ui/taon-notifications/index.js.map +1 -0
  507. package/lib/ui/taon-notifications/taon-notifications.component.d.ts +9 -0
  508. package/lib/ui/taon-notifications/taon-notifications.models.d.ts +6 -0
  509. package/lib/ui/taon-notifications/taon-notifications.models.js +5 -0
  510. package/lib/ui/taon-notifications/taon-notifications.models.js.map +1 -0
  511. package/lib/ui/taon-notifications/taon-notifications.module.d.ts +2 -0
  512. package/lib/ui/taon-notifications/taon-notifications.service.d.ts +11 -0
  513. package/lib/ui/taon-progress-bar/index.d.ts +2 -0
  514. package/lib/ui/taon-progress-bar/index.js +5 -0
  515. package/lib/ui/taon-progress-bar/index.js.map +1 -0
  516. package/lib/ui/taon-progress-bar/taon-progress-bar.component.d.ts +14 -0
  517. package/lib/ui/taon-progress-bar/taon-progress-bar.module.d.ts +2 -0
  518. package/lib/ui/taon-session-passcode/index.d.ts +1 -0
  519. package/lib/ui/taon-session-passcode/index.js +5 -0
  520. package/lib/ui/taon-session-passcode/index.js.map +1 -0
  521. package/lib/ui/taon-session-passcode/taon-session-passcode.component.d.ts +35 -0
  522. package/lib/ui/taon.models.d.ts +11 -0
  523. package/lib/ui/taon.models.js +3 -0
  524. package/lib/ui/taon.models.js.map +1 -0
  525. package/lib/ui/toan-full-material.module.d.ts +2 -0
  526. package/lib/validators.d.ts +7 -0
  527. package/lib/validators.js +53 -0
  528. package/lib/validators.js.map +1 -0
  529. package/old-app .d.ts +0 -0
  530. package/old-app .js +115 -0
  531. package/old-app .js.map +1 -0
  532. package/package.json +74 -11
  533. package/playground.d.ts +0 -0
  534. package/playground.js +172 -0
  535. package/playground.js.map +1 -0
  536. package/src.d.ts +6 -0
  537. package/taon.jsonc +48 -0
  538. package/tmp-environment.json +392 -0
  539. package/websql/README.md +24 -0
  540. package/websql/esm2022/lib/base-classes/base-abstract-entity.mjs +25 -0
  541. package/websql/esm2022/lib/base-classes/base-class.mjs +17 -0
  542. package/websql/esm2022/lib/base-classes/base-context.mjs +14 -0
  543. package/websql/esm2022/lib/base-classes/base-controller.mjs +18 -0
  544. package/websql/esm2022/lib/base-classes/base-crud-controller.mjs +238 -0
  545. package/websql/esm2022/lib/base-classes/base-entity.mjs +16 -0
  546. package/websql/esm2022/lib/base-classes/base-injector.mjs +160 -0
  547. package/websql/esm2022/lib/base-classes/base-provider.mjs +6 -0
  548. package/websql/esm2022/lib/base-classes/base-repository.mjs +431 -0
  549. package/websql/esm2022/lib/base-classes/base-subscriber-for-entity.mjs +137 -0
  550. package/websql/esm2022/lib/base-classes/base-subscriber.mjs +27 -0
  551. package/websql/esm2022/lib/base-classes/base.mjs +26 -0
  552. package/websql/esm2022/lib/constants.mjs +4 -0
  553. package/websql/esm2022/lib/create-context.mjs +86 -0
  554. package/websql/esm2022/lib/decorators/classes/controller-decorator.mjs +15 -0
  555. package/websql/esm2022/lib/decorators/classes/entity-decorator.mjs +25 -0
  556. package/websql/esm2022/lib/decorators/classes/provider-decorator.mjs +15 -0
  557. package/websql/esm2022/lib/decorators/classes/repository-decorator.mjs +15 -0
  558. package/websql/esm2022/lib/decorators/classes/subscriber-decorator.mjs +41 -0
  559. package/websql/esm2022/lib/decorators/http/http-decorators.mjs +22 -0
  560. package/websql/esm2022/lib/decorators/http/http-methods-decorators.mjs +78 -0
  561. package/websql/esm2022/lib/decorators/http/http-params-decorators.mjs +47 -0
  562. package/websql/esm2022/lib/dependency-injection/di-container.mjs +32 -0
  563. package/websql/esm2022/lib/endpoint-context.mjs +1506 -0
  564. package/websql/esm2022/lib/entity-process.mjs +207 -0
  565. package/websql/esm2022/lib/env.mjs +6 -0
  566. package/websql/esm2022/lib/get-response-value.mjs +45 -0
  567. package/websql/esm2022/lib/helpers/class-helpers.mjs +183 -0
  568. package/websql/esm2022/lib/helpers/taon-helpers.mjs +120 -0
  569. package/websql/esm2022/lib/index.mjs +81 -0
  570. package/websql/esm2022/lib/inject.mjs +70 -0
  571. package/websql/esm2022/lib/models.mjs +70 -0
  572. package/websql/esm2022/lib/orm.mjs +60 -0
  573. package/websql/esm2022/lib/realtime/realtime-client.mjs +129 -0
  574. package/websql/esm2022/lib/realtime/realtime-core.mjs +54 -0
  575. package/websql/esm2022/lib/realtime/realtime-server.mjs +158 -0
  576. package/websql/esm2022/lib/realtime/realtime-strategy/index.mjs +7 -0
  577. package/websql/esm2022/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-namespace.mjs +98 -0
  578. package/websql/esm2022/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-wrapper.mjs +45 -0
  579. package/websql/esm2022/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-namespace.mjs +40 -0
  580. package/websql/esm2022/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-wrapper.mjs +25 -0
  581. package/websql/esm2022/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc.models.mjs +4 -0
  582. package/websql/esm2022/lib/realtime/realtime-strategy/realtime-strategy-ipc.mjs +48 -0
  583. package/websql/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock-models/index.mjs +5 -0
  584. package/websql/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-client.mjs +50 -0
  585. package/websql/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-namespaces.mjs +48 -0
  586. package/websql/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-server.mjs +35 -0
  587. package/websql/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-socket.mjs +43 -0
  588. package/websql/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock.models.mjs +4 -0
  589. package/websql/esm2022/lib/realtime/realtime-strategy/realtime-strategy-mock.mjs +28 -0
  590. package/websql/esm2022/lib/realtime/realtime-strategy/realtime-strategy-socket-io.mjs +33 -0
  591. package/websql/esm2022/lib/realtime/realtime-strategy/realtime-strategy.mjs +10 -0
  592. package/websql/esm2022/lib/realtime/realtime-subs-manager.mjs +79 -0
  593. package/websql/esm2022/lib/realtime/realtime.models.mjs +4 -0
  594. package/websql/esm2022/lib/storage.mjs +5 -0
  595. package/websql/esm2022/lib/symbols.mjs +89 -0
  596. package/websql/esm2022/lib/ui/taon-admin-mode-configuration/models/taon-admin-mode-tabs.mjs +4 -0
  597. package/websql/esm2022/lib/ui/taon-admin-mode-configuration/taon-admin-control.service.mjs +32 -0
  598. package/websql/esm2022/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.component.mjs +167 -0
  599. package/websql/esm2022/lib/ui/taon-admin-mode-configuration/taon-admin.service.mjs +64 -0
  600. package/websql/esm2022/lib/validators.mjs +76 -0
  601. package/websql/esm2022/public-api.mjs +2 -0
  602. package/websql/esm2022/taon.mjs +5 -0
  603. package/websql/fesm2022/taon.mjs +4595 -0
  604. package/websql/fesm2022/taon.mjs.map +1 -0
  605. package/websql/index.d.ts +6 -0
  606. package/websql/lib/base-classes/base-abstract-entity.d.ts +7 -0
  607. package/websql/lib/base-classes/base-class.d.ts +9 -0
  608. package/websql/lib/base-classes/base-context.d.ts +17 -0
  609. package/websql/lib/base-classes/base-controller.d.ts +8 -0
  610. package/websql/lib/base-classes/base-crud-controller.d.ts +28 -0
  611. package/websql/lib/base-classes/base-entity.d.ts +8 -0
  612. package/websql/lib/base-classes/base-injector.d.ts +60 -0
  613. package/websql/lib/base-classes/base-provider.d.ts +4 -0
  614. package/websql/lib/base-classes/base-repository.d.ts +255 -0
  615. package/websql/lib/base-classes/base-subscriber-for-entity.d.ts +82 -0
  616. package/websql/lib/base-classes/base-subscriber.d.ts +5 -0
  617. package/websql/lib/base-classes/base.d.ts +36 -0
  618. package/websql/lib/constants.d.ts +2 -0
  619. package/websql/lib/create-context.d.ts +25 -0
  620. package/websql/lib/decorators/classes/controller-decorator.d.ts +13 -0
  621. package/websql/lib/decorators/classes/entity-decorator.d.ts +17 -0
  622. package/websql/lib/decorators/classes/provider-decorator.d.ts +5 -0
  623. package/websql/lib/decorators/classes/repository-decorator.d.ts +5 -0
  624. package/websql/lib/decorators/classes/subscriber-decorator.d.ts +6 -0
  625. package/websql/lib/decorators/http/http-decorators.d.ts +18 -0
  626. package/websql/lib/decorators/http/http-methods-decorators.d.ts +15 -0
  627. package/websql/lib/decorators/http/http-params-decorators.d.ts +6 -0
  628. package/websql/lib/dependency-injection/di-container.d.ts +6 -0
  629. package/websql/lib/endpoint-context.d.ts +117 -0
  630. package/websql/lib/entity-process.d.ts +40 -0
  631. package/websql/lib/env.d.ts +3 -0
  632. package/websql/lib/get-response-value.d.ts +7 -0
  633. package/websql/lib/helpers/class-helpers.d.ts +19 -0
  634. package/websql/lib/helpers/taon-helpers.d.ts +17 -0
  635. package/websql/lib/index.d.ts +113 -0
  636. package/websql/lib/inject.d.ts +9 -0
  637. package/websql/lib/models.d.ts +181 -0
  638. package/websql/lib/orm.d.ts +52 -0
  639. package/websql/lib/realtime/realtime-client.d.ts +32 -0
  640. package/websql/lib/realtime/realtime-core.d.ts +41 -0
  641. package/websql/lib/realtime/realtime-server.d.ts +14 -0
  642. package/websql/lib/realtime/realtime-strategy/index.d.ts +5 -0
  643. package/websql/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-namespace.d.ts +22 -0
  644. package/websql/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-main-wrapper.d.ts +17 -0
  645. package/websql/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-namespace.d.ts +11 -0
  646. package/websql/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc-renderer-wrapper.d.ts +11 -0
  647. package/websql/lib/realtime/realtime-strategy/realtime-strategy-ipc-models/realtime-strategy-ipc.models.d.ts +14 -0
  648. package/websql/lib/realtime/realtime-strategy/realtime-strategy-ipc.d.ts +23 -0
  649. package/websql/lib/realtime/realtime-strategy/realtime-strategy-mock-models/index.d.ts +3 -0
  650. package/websql/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-client.d.ts +17 -0
  651. package/websql/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-namespaces.d.ts +18 -0
  652. package/websql/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-server.d.ts +12 -0
  653. package/websql/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock-socket.d.ts +14 -0
  654. package/websql/lib/realtime/realtime-strategy/realtime-strategy-mock-models/realtime-strategy-mock.models.d.ts +12 -0
  655. package/websql/lib/realtime/realtime-strategy/realtime-strategy-mock.d.ts +15 -0
  656. package/websql/lib/realtime/realtime-strategy/realtime-strategy-socket-io.d.ts +17 -0
  657. package/websql/lib/realtime/realtime-strategy/realtime-strategy.d.ts +13 -0
  658. package/websql/lib/realtime/realtime-subs-manager.d.ts +15 -0
  659. package/websql/lib/realtime/realtime.models.d.ts +14 -0
  660. package/websql/lib/storage.d.ts +2 -0
  661. package/websql/lib/symbols.d.ts +73 -0
  662. package/websql/lib/ui/taon-admin-mode-configuration/models/taon-admin-mode-tabs.d.ts +6 -0
  663. package/websql/lib/ui/taon-admin-mode-configuration/taon-admin-control.service.d.ts +18 -0
  664. package/websql/lib/ui/taon-admin-mode-configuration/taon-admin-mode-configuration.component.d.ts +51 -0
  665. package/websql/lib/ui/taon-admin-mode-configuration/taon-admin.service.d.ts +25 -0
  666. package/websql/lib/validators.d.ts +8 -0
  667. package/websql/package.json +25 -0
  668. package/websql/public-api.d.ts +2 -0
@@ -0,0 +1,16 @@
1
+ import { Mapping } from 'ng2-rest/src';
2
+ import { Models } from '../../models';
3
+ export declare function TaonEntity<T = any>(options?: TaonEntityOptions<T>): (constructor: Function) => void;
4
+ export declare class TaonEntityOptions<T = any> extends Models.DecoratorAbstractOpt {
5
+ /**
6
+ * default unique property is "id"
7
+ * for your entity it may be something else
8
+ */
9
+ uniqueKeyProp?: string;
10
+ createTable?: boolean;
11
+ defaultModelValues?: Mapping.ModelValue<T>;
12
+ defaultModelMapping?: Mapping.Mapping<T>;
13
+ defaultModelMappingDeep?: {
14
+ [lodashPathes: string]: string | [string];
15
+ };
16
+ }
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TaonEntityOptions = void 0;
4
+ exports.TaonEntity = TaonEntity;
5
+ var tslib_1 = require("tslib");
6
+ var ng2_rest_1 = require("ng2-rest");
7
+ var class_helpers_1 = require("../../helpers/class-helpers");
8
+ var typescript_class_helpers_1 = require("typescript-class-helpers");
9
+ var symbols_1 = require("../../symbols");
10
+ var tnp_core_1 = require("tnp-core");
11
+ var models_1 = require("../../models");
12
+ //#region @websql
13
+ var taon_typeorm_1 = require("taon-typeorm");
14
+ //#endregion
15
+ function TaonEntity(options) {
16
+ return function (constructor) {
17
+ options = options || {};
18
+ options.uniqueKeyProp = options.uniqueKeyProp || 'id';
19
+ class_helpers_1.ClassHelpers.setName(constructor, options === null || options === void 0 ? void 0 : options.className);
20
+ ng2_rest_1.Mapping.DefaultModelWithMapping((options === null || options === void 0 ? void 0 : options.defaultModelValues) || {}, tnp_core_1._.merge((options === null || options === void 0 ? void 0 : options.defaultModelMapping) || {}, ((options === null || options === void 0 ? void 0 : options.defaultModelMappingDeep) || {})))(constructor);
21
+ // TODO when entit metadata generator read use this
22
+ ng2_rest_1.Mapping.DefaultModelWithMapping(void 0, {})(constructor);
23
+ Reflect.defineMetadata(symbols_1.Symbols.metadata.options.entity, options, constructor);
24
+ Reflect.defineMetadata(symbols_1.Symbols.metadata.className, (options === null || options === void 0 ? void 0 : options.className) || constructor.name, constructor);
25
+ //#region @websql
26
+ (0, taon_typeorm_1.Entity)(options === null || options === void 0 ? void 0 : options.className)(constructor);
27
+ //#endregion
28
+ typescript_class_helpers_1.CLASS.setName(constructor, options === null || options === void 0 ? void 0 : options.className); // TODO QUICK_FIX for ng2-rest
29
+ };
30
+ }
31
+ var TaonEntityOptions = /** @class */ (function (_super) {
32
+ tslib_1.__extends(TaonEntityOptions, _super);
33
+ function TaonEntityOptions() {
34
+ return _super !== null && _super.apply(this, arguments) || this;
35
+ }
36
+ return TaonEntityOptions;
37
+ }(models_1.Models.DecoratorAbstractOpt));
38
+ exports.TaonEntityOptions = TaonEntityOptions;
39
+ //# sourceMappingURL=entity-decorator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"entity-decorator.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;AAUA,gCAgCC;;AA1CD,qCAAmC;AACnC,6DAA2D;AAC3D,qEAAiD;AACjD,yCAAwC;AACxC,qCAA6B;AAC7B,uCAAsC;AACtC,iBAAiB;AACjB,6CAA6D;AAC7D,YAAY;AAEZ,SAAgB,UAAU,CAAU,OAA8B;IAChE,OAAO,UAAU,WAAqB;QACpC,OAAO,GAAG,OAAO,IAAK,EAAU,CAAC;QACjC,OAAO,CAAC,aAAa,GAAG,OAAO,CAAC,aAAa,IAAK,IAAY,CAAC;QAC/D,4BAAY,CAAC,OAAO,CAAC,WAAW,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,SAAS,CAAC,CAAC;QAEtD,kBAAO,CAAC,uBAAuB,CAC7B,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,kBAAkB,KAAI,EAAE,EACjC,YAAC,CAAC,KAAK,CACL,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,mBAAmB,KAAI,EAAE,EAClC,CAAC,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,uBAAuB,KAAI,EAAE,CAAQ,CAChD,CACF,CAAC,WAAW,CAAC,CAAC;QAEf,mDAAmD;QACnD,kBAAO,CAAC,uBAAuB,CAAI,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC,WAAW,CAAC,CAAC;QAE5D,OAAO,CAAC,cAAc,CACpB,iBAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,MAAM,EAC/B,OAAO,EACP,WAAW,CACZ,CAAC;QACF,OAAO,CAAC,cAAc,CACpB,iBAAO,CAAC,QAAQ,CAAC,SAAS,EAC1B,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,SAAS,KAAI,WAAW,CAAC,IAAI,EACtC,WAAW,CACZ,CAAC;QACF,iBAAiB;QACjB,IAAA,qBAAa,EAAC,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,SAAS,CAAC,CAAC,WAAW,CAAC,CAAC;QAC/C,YAAY;QACZ,gCAAK,CAAC,OAAO,CAAC,WAAW,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,SAAS,CAAC,CAAC,CAAC,8BAA8B;IAChF,CAAC,CAAC;AACJ,CAAC;AAED;IAAgD,6CAA2B;IAA3E;;IAUA,CAAC;IAAD,wBAAC;AAAD,CAAC,AAVD,CAAgD,eAAM,CAAC,oBAAoB,GAU1E;AAVY,8CAAiB"}
@@ -0,0 +1,4 @@
1
+ import { Models } from '../../models';
2
+ export declare function TaonProvider<T = any>(options?: TaonProviderOptions<T>): (constructor: Function) => void;
3
+ export declare class TaonProviderOptions<T = any> extends Models.DecoratorAbstractOpt {
4
+ }
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TaonProviderOptions = void 0;
4
+ exports.TaonProvider = TaonProvider;
5
+ var tslib_1 = require("tslib");
6
+ var class_helpers_1 = require("../../helpers/class-helpers");
7
+ var symbols_1 = require("../../symbols");
8
+ var models_1 = require("../../models");
9
+ function TaonProvider(options) {
10
+ return function (constructor) {
11
+ Reflect.defineMetadata(symbols_1.Symbols.metadata.options.provider, options, constructor);
12
+ Reflect.defineMetadata(symbols_1.Symbols.metadata.className, (options === null || options === void 0 ? void 0 : options.className) || constructor.name, constructor);
13
+ class_helpers_1.ClassHelpers.setName(constructor, (options === null || options === void 0 ? void 0 : options.className) || constructor.name);
14
+ };
15
+ }
16
+ var TaonProviderOptions = /** @class */ (function (_super) {
17
+ tslib_1.__extends(TaonProviderOptions, _super);
18
+ function TaonProviderOptions() {
19
+ return _super !== null && _super.apply(this, arguments) || this;
20
+ }
21
+ return TaonProviderOptions;
22
+ }(models_1.Models.DecoratorAbstractOpt));
23
+ exports.TaonProviderOptions = TaonProviderOptions;
24
+ //# sourceMappingURL=provider-decorator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"provider-decorator.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;AAIA,oCAcC;;AAlBD,6DAA2D;AAC3D,yCAAwC;AACxC,uCAAsC;AAEtC,SAAgB,YAAY,CAAU,OAAgC;IACpE,OAAO,UAAU,WAAqB;QACpC,OAAO,CAAC,cAAc,CACpB,iBAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,QAAQ,EACjC,OAAO,EACP,WAAW,CACZ,CAAC;QACF,OAAO,CAAC,cAAc,CACpB,iBAAO,CAAC,QAAQ,CAAC,SAAS,EAC1B,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,SAAS,KAAI,WAAW,CAAC,IAAI,EACtC,WAAW,CACZ,CAAC;QACF,4BAAY,CAAC,OAAO,CAAC,WAAW,EAAE,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,SAAS,KAAI,WAAW,CAAC,IAAI,CAAC,CAAC;IAC5E,CAAC,CAAC;AACJ,CAAC;AAED;IAEU,+CAA2B;IAFrC;;IAIA,CAAC;IAAD,0BAAC;AAAD,CAAC,AAJD,CAEU,eAAM,CAAC,oBAAoB,GAEpC;AAJY,kDAAmB"}
@@ -0,0 +1,4 @@
1
+ import { Models } from '../../models';
2
+ export declare function TaonRepository(options: TaonRepositoryOptions): (constructor: Function) => void;
3
+ export declare class TaonRepositoryOptions<T = any> extends Models.DecoratorAbstractOpt {
4
+ }
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TaonRepositoryOptions = void 0;
4
+ exports.TaonRepository = TaonRepository;
5
+ var tslib_1 = require("tslib");
6
+ var class_helpers_1 = require("../../helpers/class-helpers");
7
+ var symbols_1 = require("../../symbols");
8
+ var models_1 = require("../../models");
9
+ function TaonRepository(options) {
10
+ return function (constructor) {
11
+ Reflect.defineMetadata(symbols_1.Symbols.metadata.options.repository, options, constructor);
12
+ Reflect.defineMetadata(symbols_1.Symbols.metadata.className, (options === null || options === void 0 ? void 0 : options.className) || constructor.name, constructor);
13
+ class_helpers_1.ClassHelpers.setName(constructor, options === null || options === void 0 ? void 0 : options.className);
14
+ };
15
+ }
16
+ var TaonRepositoryOptions = /** @class */ (function (_super) {
17
+ tslib_1.__extends(TaonRepositoryOptions, _super);
18
+ function TaonRepositoryOptions() {
19
+ return _super !== null && _super.apply(this, arguments) || this;
20
+ }
21
+ return TaonRepositoryOptions;
22
+ }(models_1.Models.DecoratorAbstractOpt));
23
+ exports.TaonRepositoryOptions = TaonRepositoryOptions;
24
+ //# sourceMappingURL=repository-decorator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"repository-decorator.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;AASA,wCAcC;;AAvBD,6DAA2D;AAC3D,yCAAwC;AACxC,uCAAsC;AAOtC,SAAgB,cAAc,CAAC,OAA8B;IAC3D,OAAO,UAAU,WAAqB;QACpC,OAAO,CAAC,cAAc,CACpB,iBAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,UAAU,EACnC,OAAO,EACP,WAAW,CACZ,CAAC;QACF,OAAO,CAAC,cAAc,CACpB,iBAAO,CAAC,QAAQ,CAAC,SAAS,EAC1B,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,SAAS,KAAI,WAAW,CAAC,IAAI,EACtC,WAAW,CACZ,CAAC;QACF,4BAAY,CAAC,OAAO,CAAC,WAAW,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,SAAS,CAAC,CAAC;IACxD,CAAC,CAAC;AACJ,CAAC;AAED;IAEU,iDAA2B;IAFrC;;IAEuC,CAAC;IAAD,4BAAC;AAAD,CAAC,AAFxC,CAEU,eAAM,CAAC,oBAAoB,GAAG;AAF3B,sDAAqB"}
@@ -0,0 +1,5 @@
1
+ import { Models } from '../../models';
2
+ export declare class TaonSubscriberOptions<T = any> extends Models.DecoratorAbstractOpt {
3
+ allowedEvents?: (keyof T)[];
4
+ }
5
+ export declare function TaonSubscriber(options: TaonSubscriberOptions): any;
@@ -0,0 +1,75 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TaonSubscriberOptions = void 0;
4
+ exports.TaonSubscriber = TaonSubscriber;
5
+ var tslib_1 = require("tslib");
6
+ var class_helpers_1 = require("../../helpers/class-helpers");
7
+ var symbols_1 = require("../../symbols");
8
+ var models_1 = require("../../models");
9
+ var TaonSubscriberOptions = /** @class */ (function (_super) {
10
+ tslib_1.__extends(TaonSubscriberOptions, _super);
11
+ function TaonSubscriberOptions() {
12
+ return _super !== null && _super.apply(this, arguments) || this;
13
+ }
14
+ return TaonSubscriberOptions;
15
+ }(models_1.Models.DecoratorAbstractOpt));
16
+ exports.TaonSubscriberOptions = TaonSubscriberOptions;
17
+ function TaonSubscriber(options) {
18
+ return function (constructor) {
19
+ Reflect.defineMetadata(symbols_1.Symbols.metadata.options.repository, options, constructor);
20
+ Reflect.defineMetadata(symbols_1.Symbols.metadata.className, (options === null || options === void 0 ? void 0 : options.className) || constructor.name, constructor);
21
+ class_helpers_1.ClassHelpers.setName(constructor, options === null || options === void 0 ? void 0 : options.className);
22
+ return /** @class */ (function (_super) {
23
+ tslib_1.__extends(class_1, _super);
24
+ function class_1() {
25
+ var args = [];
26
+ for (var _i = 0; _i < arguments.length; _i++) {
27
+ args[_i] = arguments[_i];
28
+ }
29
+ var _this = _super.apply(this, tslib_1.__spreadArray([], tslib_1.__read(args), false)) || this;
30
+ // Get all method names of the class
31
+ var methodNamesAll = class_helpers_1.ClassHelpers.getMethodsNames(constructor.prototype);
32
+ var methodNames = methodNamesAll.filter(function (m) {
33
+ return (!['__trigger_event__', 'clone'].includes(m) &&
34
+ !m.startsWith('_') &&
35
+ !m.startsWith('inject'));
36
+ });
37
+ // Wrap each method
38
+ methodNames.forEach(function (methodName) {
39
+ var originalMethod = _this[methodName];
40
+ _this[methodName] = function () {
41
+ var methodArgs = [];
42
+ for (var _i = 0; _i < arguments.length; _i++) {
43
+ methodArgs[_i] = arguments[_i];
44
+ }
45
+ return tslib_1.__awaiter(_this, void 0, void 0, function () {
46
+ var result;
47
+ return tslib_1.__generator(this, function (_a) {
48
+ switch (_a.label) {
49
+ case 0:
50
+ result = originalMethod.apply(this, methodArgs);
51
+ if (!(result instanceof Promise)) return [3 /*break*/, 2];
52
+ return [4 /*yield*/, result];
53
+ case 1:
54
+ _a.sent();
55
+ _a.label = 2;
56
+ case 2:
57
+ // Check if we need to trigger the manual event
58
+ if (options.allowedEvents === undefined ||
59
+ options.allowedEvents.includes(methodName)) {
60
+ // @ts-ignore
61
+ this.__trigger_event__(methodName);
62
+ }
63
+ return [2 /*return*/, result];
64
+ }
65
+ });
66
+ });
67
+ };
68
+ });
69
+ return _this;
70
+ }
71
+ return class_1;
72
+ }(constructor));
73
+ };
74
+ }
75
+ //# sourceMappingURL=subscriber-decorator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subscriber-decorator.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;AAYA,wCAyDC;;AArED,6DAA2D;AAC3D,yCAAwC;AACxC,uCAAsC;AAItC;IAEU,iDAA2B;IAFrC;;IAIA,CAAC;IAAD,4BAAC;AAAD,CAAC,AAJD,CAEU,eAAM,CAAC,oBAAoB,GAEpC;AAJY,sDAAqB;AAMlC,SAAgB,cAAc,CAAC,OAA8B;IAC3D,OAAO,UAAkD,WAAc;QACrE,OAAO,CAAC,cAAc,CACpB,iBAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,UAAU,EACnC,OAAO,EACP,WAAW,CACZ,CAAC;QACF,OAAO,CAAC,cAAc,CACpB,iBAAO,CAAC,QAAQ,CAAC,SAAS,EAC1B,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,SAAS,KAAI,WAAW,CAAC,IAAI,EACtC,WAAW,CACZ,CAAC;QACF,4BAAY,CAAC,OAAO,CAAC,WAAW,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,SAAS,CAAC,CAAC;QACtD,OAAO;YAAc,mCAAW;YAC9B;gBAAY,cAAc;qBAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;oBAAd,yBAAc;;gBACxB,YAAA,MAAK,sDAAI,IAAI,mBAAE;gBAEf,oCAAoC;gBACpC,IAAM,cAAc,GAAG,4BAAY,CAAC,eAAe,CACjD,WAAW,CAAC,SAAS,CACtB,CAAC;gBAEF,IAAM,WAAW,GAAG,cAAc,CAAC,MAAM,CAAC,UAAA,CAAC;oBACzC,OAAO,CACL,CAAC,CAAC,mBAAmB,EAAE,OAAO,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;wBAC3C,CAAC,CAAC,CAAC,UAAU,CAAC,GAAG,CAAC;wBAClB,CAAC,CAAC,CAAC,UAAU,CAAC,QAAQ,CAAC,CACxB,CAAC;gBACJ,CAAC,CAAC,CAAC;gBAEH,mBAAmB;gBACnB,WAAW,CAAC,OAAO,CAAC,UAAA,UAAU;oBAC5B,IAAM,cAAc,GAAI,KAAY,CAAC,UAAU,CAAC,CAAC;oBAEhD,KAAY,CAAC,UAAU,CAAC,GAAG;wBAAO,oBAAoB;6BAApB,UAAoB,EAApB,qBAAoB,EAApB,IAAoB;4BAApB,+BAAoB;;;;;;;wCAC/C,MAAM,GAAG,cAAc,CAAC,KAAK,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;6CAGlD,CAAA,MAAM,YAAY,OAAO,CAAA,EAAzB,wBAAyB;wCAC3B,qBAAM,MAAM,EAAA;;wCAAZ,SAAY,CAAC;;;wCAGf,+CAA+C;wCAC/C,IACE,OAAO,CAAC,aAAa,KAAK,SAAS;4CACnC,OAAO,CAAC,aAAa,CAAC,QAAQ,CAAC,UAAU,CAAC,EAC1C,CAAC;4CACD,aAAa;4CACZ,IAAuB,CAAC,iBAAiB,CAAC,UAAiB,CAAC,CAAC;wCAChE,CAAC;wCAED,sBAAO,MAAM,EAAC;;;;qBACf,CAAC;gBACJ,CAAC,CAAC,CAAC;;YACL,CAAC;YACH,cAAC;QAAD,CAAC,AA1CM,CAAc,WAAW,EA0CxB,CAAC;IACX,CAAQ,CAAC;AACX,CAAC"}
@@ -0,0 +1,17 @@
1
+ import * as methods from './http-methods-decorators';
2
+ import * as params from './http-params-decorators';
3
+ export declare namespace Http {
4
+ export import GET = methods.GET;
5
+ export import POST = methods.POST;
6
+ export import PUT = methods.PUT;
7
+ export import DELETE = methods.DELETE;
8
+ export import PATCH = methods.PATCH;
9
+ export import HEAD = methods.HEAD;
10
+ namespace Param {
11
+ export import Query = params.Query;
12
+ export import Path = params.Path;
13
+ export import Body = params.Body;
14
+ export import Cookie = params.Cookie;
15
+ export import Header = params.Header;
16
+ }
17
+ }
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Http = void 0;
4
+ var methods = require("./http-methods-decorators");
5
+ var params = require("./http-params-decorators");
6
+ var Http;
7
+ (function (Http) {
8
+ Http.GET = methods.GET;
9
+ Http.POST = methods.POST;
10
+ Http.PUT = methods.PUT;
11
+ Http.DELETE = methods.DELETE;
12
+ Http.PATCH = methods.PATCH;
13
+ Http.HEAD = methods.HEAD;
14
+ var Param;
15
+ (function (Param) {
16
+ Param.Query = params.Query;
17
+ Param.Path = params.Path;
18
+ Param.Body = params.Body;
19
+ Param.Cookie = params.Cookie;
20
+ Param.Header = params.Header;
21
+ })(Param = Http.Param || (Http.Param = {}));
22
+ })(Http || (exports.Http = Http = {}));
23
+ //# sourceMappingURL=http-decorators.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"http-decorators.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;AAAA,mDAAqD;AACrD,iDAAmD;AAEnD,IAAiB,IAAI,CAcpB;AAdD,WAAiB,IAAI;IACL,QAAG,GAAG,OAAO,CAAC,GAAG,CAAC;IAClB,SAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IACpB,QAAG,GAAG,OAAO,CAAC,GAAG,CAAC;IAClB,WAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IACxB,UAAK,GAAG,OAAO,CAAC,KAAK,CAAC;IACtB,SAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IAClC,IAAiB,KAAK,CAMrB;IAND,WAAiB,KAAK;QACN,WAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QACrB,UAAI,GAAG,MAAM,CAAC,IAAI,CAAC;QACnB,UAAI,GAAG,MAAM,CAAC,IAAI,CAAC;QACnB,YAAM,GAAG,MAAM,CAAC,MAAM,CAAC;QACvB,YAAM,GAAG,MAAM,CAAC,MAAM,CAAC;IACvC,CAAC,EANgB,KAAK,GAAL,UAAK,KAAL,UAAK,QAMrB;AACH,CAAC,EAdgB,IAAI,oBAAJ,IAAI,QAcpB"}
@@ -0,0 +1,14 @@
1
+ import { CoreModels } from 'tnp-core/src';
2
+ import { Models as ModelsNg2Rest } from 'ng2-rest/src';
3
+ export interface TaonHttpDecoratorOptions {
4
+ path?: string;
5
+ pathIsGlobal?: boolean;
6
+ overrideContentType?: CoreModels.ContentType;
7
+ overridResponseType?: ModelsNg2Rest.ResponseTypeAxios;
8
+ }
9
+ export declare function GET(pathOrOptions?: string | TaonHttpDecoratorOptions, pathIsGlobal?: boolean): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
10
+ export declare function HEAD(pathOrOptions?: string | TaonHttpDecoratorOptions, pathIsGlobal?: boolean): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
11
+ export declare function POST(pathOrOptions?: string | TaonHttpDecoratorOptions, pathIsGlobal?: boolean): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
12
+ export declare function PUT(pathOrOptions?: string | TaonHttpDecoratorOptions, pathIsGlobal?: boolean): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
13
+ export declare function PATCH(pathOrOptions?: string | TaonHttpDecoratorOptions, pathIsGlobal?: boolean): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
14
+ export declare function DELETE(pathOrOptions?: string | TaonHttpDecoratorOptions, pathIsGlobal?: boolean): (target: any, propertyKey: string, descriptor: PropertyDescriptor) => void;
@@ -0,0 +1,91 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GET = GET;
4
+ exports.HEAD = HEAD;
5
+ exports.POST = POST;
6
+ exports.PUT = PUT;
7
+ exports.PATCH = PATCH;
8
+ exports.DELETE = DELETE;
9
+ var tnp_core_1 = require("tnp-core");
10
+ var models_1 = require("../../models");
11
+ var symbols_1 = require("../../symbols");
12
+ var metaReq = function (method, path, target, propertyKey, descriptor, pathOrOptions, pathIsGlobal) {
13
+ var options;
14
+ if (typeof pathOrOptions === 'object') {
15
+ options = pathOrOptions;
16
+ pathOrOptions = options.path;
17
+ pathIsGlobal = !!options.pathIsGlobal;
18
+ path = options.path;
19
+ }
20
+ else {
21
+ options = { pathOrOptions: pathOrOptions, pathIsGlobal: pathIsGlobal };
22
+ }
23
+ var overrideContentType = options.overrideContentType, overridResponseType = options.overridResponseType;
24
+ var methodConfig = Reflect.getMetadata(symbols_1.Symbols.metadata.options.controllerMethod, target.constructor, propertyKey);
25
+ if (!methodConfig) {
26
+ methodConfig = new models_1.Models.MethodConfig();
27
+ Reflect.defineMetadata(symbols_1.Symbols.metadata.options.controllerMethod, methodConfig, target.constructor, propertyKey);
28
+ }
29
+ methodConfig.methodName = propertyKey;
30
+ methodConfig.type = method;
31
+ if (!path) {
32
+ var paramsPathConcatedPath = '';
33
+ for (var key in methodConfig.parameters) {
34
+ if (methodConfig.parameters.hasOwnProperty(key)) {
35
+ var element = methodConfig.parameters[key];
36
+ if (element.paramType === 'Path' &&
37
+ tnp_core_1._.isString(element.paramName) &&
38
+ element.paramName.trim().length > 0) {
39
+ paramsPathConcatedPath += "/".concat(element.paramName, "/:").concat(element.paramName);
40
+ }
41
+ }
42
+ }
43
+ methodConfig.path = "/".concat(propertyKey).concat(paramsPathConcatedPath);
44
+ }
45
+ else {
46
+ methodConfig.path = path;
47
+ }
48
+ methodConfig.descriptor = descriptor;
49
+ methodConfig.global = pathIsGlobal;
50
+ methodConfig.contentType = overrideContentType;
51
+ methodConfig.responseType = overridResponseType;
52
+ Reflect.defineMetadata(symbols_1.Symbols.metadata.options.controllerMethod, methodConfig, target.constructor, propertyKey);
53
+ // console.log('methods updated', methodConfig);
54
+ };
55
+ function GET(pathOrOptions, pathIsGlobal) {
56
+ if (pathIsGlobal === void 0) { pathIsGlobal = false; }
57
+ return function (target, propertyKey, descriptor) {
58
+ metaReq('get', pathOrOptions, target, propertyKey, descriptor, pathOrOptions, pathIsGlobal);
59
+ };
60
+ }
61
+ function HEAD(pathOrOptions, pathIsGlobal) {
62
+ if (pathIsGlobal === void 0) { pathIsGlobal = false; }
63
+ return function (target, propertyKey, descriptor) {
64
+ metaReq('head', pathOrOptions, target, propertyKey, descriptor, pathOrOptions, pathIsGlobal);
65
+ };
66
+ }
67
+ function POST(pathOrOptions, pathIsGlobal) {
68
+ if (pathIsGlobal === void 0) { pathIsGlobal = false; }
69
+ return function (target, propertyKey, descriptor) {
70
+ metaReq('post', pathOrOptions, target, propertyKey, descriptor, pathOrOptions, pathIsGlobal);
71
+ };
72
+ }
73
+ function PUT(pathOrOptions, pathIsGlobal) {
74
+ if (pathIsGlobal === void 0) { pathIsGlobal = false; }
75
+ return function (target, propertyKey, descriptor) {
76
+ metaReq('put', pathOrOptions, target, propertyKey, descriptor, pathOrOptions, pathIsGlobal);
77
+ };
78
+ }
79
+ function PATCH(pathOrOptions, pathIsGlobal) {
80
+ if (pathIsGlobal === void 0) { pathIsGlobal = false; }
81
+ return function (target, propertyKey, descriptor) {
82
+ metaReq('patch', pathOrOptions, target, propertyKey, descriptor, pathOrOptions, pathIsGlobal);
83
+ };
84
+ }
85
+ function DELETE(pathOrOptions, pathIsGlobal) {
86
+ if (pathIsGlobal === void 0) { pathIsGlobal = false; }
87
+ return function (target, propertyKey, descriptor) {
88
+ metaReq('delete', pathOrOptions, target, propertyKey, descriptor, pathOrOptions, pathIsGlobal);
89
+ };
90
+ }
91
+ //# sourceMappingURL=http-methods-decorators.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"http-methods-decorators.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;AAiFA,kBAmBC;AAED,oBAmBC;AAED,oBAmBC;AAED,kBAmBC;AAED,sBAmBC;AAED,wBAmBC;AA7MD,qCAAyC;AACzC,uCAAsC;AACtC,yCAAwC;AAExC,IAAM,OAAO,GAAG,UACd,MAAmC,EACnC,IAAY,EACZ,MAAgB,EAChB,WAAmB,EACnB,UAA8B,EAC9B,aAAgD,EAChD,YAAqB;IAErB,IAAI,OAAiC,CAAC;IACtC,IAAI,OAAO,aAAa,KAAK,QAAQ,EAAE,CAAC;QACtC,OAAO,GAAG,aAAa,CAAC;QACxB,aAAa,GAAG,OAAO,CAAC,IAAW,CAAC;QACpC,YAAY,GAAG,CAAC,CAAC,OAAO,CAAC,YAAY,CAAC;QACtC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;IACtB,CAAC;SAAM,CAAC;QACN,OAAO,GAAG,EAAE,aAAa,eAAA,EAAE,YAAY,cAAA,EAAS,CAAC;IACnD,CAAC;IAEO,IAAA,mBAAmB,GAA0B,OAAO,oBAAjC,EAAE,mBAAmB,GAAK,OAAO,oBAAZ,CAAa;IAE7D,IAAI,YAAY,GAAwB,OAAO,CAAC,WAAW,CACzD,iBAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,gBAAgB,EACzC,MAAM,CAAC,WAAW,EAClB,WAAW,CACZ,CAAC;IACF,IAAI,CAAC,YAAY,EAAE,CAAC;QAClB,YAAY,GAAG,IAAI,eAAM,CAAC,YAAY,EAAE,CAAC;QACzC,OAAO,CAAC,cAAc,CACpB,iBAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,gBAAgB,EACzC,YAAY,EACZ,MAAM,CAAC,WAAW,EAClB,WAAW,CACZ,CAAC;IACJ,CAAC;IAED,YAAY,CAAC,UAAU,GAAG,WAAW,CAAC;IACtC,YAAY,CAAC,IAAI,GAAG,MAAM,CAAC;IAC3B,IAAI,CAAC,IAAI,EAAE,CAAC;QACV,IAAI,sBAAsB,GAAG,EAAE,CAAC;QAChC,KAAK,IAAM,GAAG,IAAI,YAAY,CAAC,UAAU,EAAE,CAAC;YAC1C,IAAI,YAAY,CAAC,UAAU,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE,CAAC;gBAChD,IAAM,OAAO,GAAG,YAAY,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;gBAC7C,IACE,OAAO,CAAC,SAAS,KAAK,MAAM;oBAC5B,YAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,SAAS,CAAC;oBAC7B,OAAO,CAAC,SAAS,CAAC,IAAI,EAAE,CAAC,MAAM,GAAG,CAAC,EACnC,CAAC;oBACD,sBAAsB,IAAI,WAAI,OAAO,CAAC,SAAS,eAAK,OAAO,CAAC,SAAS,CAAE,CAAC;gBAC1E,CAAC;YACH,CAAC;QACH,CAAC;QACD,YAAY,CAAC,IAAI,GAAG,WAAI,WAAW,SAAG,sBAAsB,CAAE,CAAC;IACjE,CAAC;SAAM,CAAC;QACN,YAAY,CAAC,IAAI,GAAG,IAAI,CAAC;IAC3B,CAAC;IAED,YAAY,CAAC,UAAU,GAAG,UAAU,CAAC;IACrC,YAAY,CAAC,MAAM,GAAG,YAAY,CAAC;IACnC,YAAY,CAAC,WAAW,GAAG,mBAAmB,CAAC;IAC/C,YAAY,CAAC,YAAY,GAAG,mBAAmB,CAAC;IAChD,OAAO,CAAC,cAAc,CACpB,iBAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,gBAAgB,EACzC,YAAY,EACZ,MAAM,CAAC,WAAW,EAClB,WAAW,CACZ,CAAC;IACF,gDAAgD;AAClD,CAAC,CAAC;AASF,SAAgB,GAAG,CACjB,aAAiD,EACjD,YAAoB;IAApB,6BAAA,EAAA,oBAAoB;IAEpB,OAAO,UACL,MAAW,EACX,WAAmB,EACnB,UAA8B;QAE9B,OAAO,CACL,KAAK,EACL,aAAuB,EACvB,MAAM,EACN,WAAW,EACX,UAAU,EACV,aAAa,EACb,YAAY,CACb,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC;AAED,SAAgB,IAAI,CAClB,aAAiD,EACjD,YAAoB;IAApB,6BAAA,EAAA,oBAAoB;IAEpB,OAAO,UACL,MAAW,EACX,WAAmB,EACnB,UAA8B;QAE9B,OAAO,CACL,MAAM,EACN,aAAuB,EACvB,MAAM,EACN,WAAW,EACX,UAAU,EACV,aAAa,EACb,YAAY,CACb,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC;AAED,SAAgB,IAAI,CAClB,aAAiD,EACjD,YAAoB;IAApB,6BAAA,EAAA,oBAAoB;IAEpB,OAAO,UACL,MAAW,EACX,WAAmB,EACnB,UAA8B;QAE9B,OAAO,CACL,MAAM,EACN,aAAuB,EACvB,MAAM,EACN,WAAW,EACX,UAAU,EACV,aAAa,EACb,YAAY,CACb,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC;AAED,SAAgB,GAAG,CACjB,aAAiD,EACjD,YAAoB;IAApB,6BAAA,EAAA,oBAAoB;IAEpB,OAAO,UACL,MAAW,EACX,WAAmB,EACnB,UAA8B;QAE9B,OAAO,CACL,KAAK,EACL,aAAuB,EACvB,MAAM,EACN,WAAW,EACX,UAAU,EACV,aAAa,EACb,YAAY,CACb,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC;AAED,SAAgB,KAAK,CACnB,aAAiD,EACjD,YAAoB;IAApB,6BAAA,EAAA,oBAAoB;IAEpB,OAAO,UACL,MAAW,EACX,WAAmB,EACnB,UAA8B;QAE9B,OAAO,CACL,OAAO,EACP,aAAuB,EACvB,MAAM,EACN,WAAW,EACX,UAAU,EACV,aAAa,EACb,YAAY,CACb,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC;AAED,SAAgB,MAAM,CACpB,aAAiD,EACjD,YAAoB;IAApB,6BAAA,EAAA,oBAAoB;IAEpB,OAAO,UACL,MAAW,EACX,WAAmB,EACnB,UAA8B;QAE9B,OAAO,CACL,QAAQ,EACR,aAAuB,EACvB,MAAM,EACN,WAAW,EACX,UAAU,EACV,aAAa,EACb,YAAY,CACb,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare function Path(name: string): (target: any, propertyKey: string | symbol, parameterIndex: number) => void;
2
+ export declare function Query(name?: string): (target: any, propertyKey: string | symbol, parameterIndex: number) => void;
3
+ export declare function Cookie(name: string, expireInSecond?: number): (target: any, propertyKey: string | symbol, parameterIndex: number) => void;
4
+ export declare function Header(name?: string): (target: any, propertyKey: string | symbol, parameterIndex: number) => void;
5
+ export declare function Body(name?: string): (target: any, propertyKey: string | symbol, parameterIndex: number) => void;
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Path = Path;
4
+ exports.Query = Query;
5
+ exports.Cookie = Cookie;
6
+ exports.Header = Header;
7
+ exports.Body = Body;
8
+ var models_1 = require("../../models");
9
+ var symbols_1 = require("../../symbols");
10
+ function metaParam(param, name, expire, defaultValue, target, propertyKey, parameterIndex) {
11
+ if (defaultValue === void 0) { defaultValue = undefined; }
12
+ var methodConfig = Reflect.getMetadata(symbols_1.Symbols.metadata.options.controllerMethod, target.constructor, propertyKey);
13
+ if (!methodConfig) {
14
+ methodConfig = new models_1.Models.MethodConfig();
15
+ Reflect.defineMetadata(symbols_1.Symbols.metadata.options.controllerMethod, methodConfig, target.constructor, propertyKey);
16
+ }
17
+ var nameKey = name ? name : param;
18
+ var p = (methodConfig.parameters[nameKey] = !methodConfig.parameters[nameKey]
19
+ ? new models_1.Models.ParamConfig()
20
+ : methodConfig.parameters[nameKey]);
21
+ p.index = parameterIndex;
22
+ p.paramName = name;
23
+ p.paramType = param;
24
+ p.defaultType = defaultValue;
25
+ p.expireInSeconds = expire;
26
+ Reflect.defineMetadata(symbols_1.Symbols.metadata.options.controllerMethod, methodConfig, target.constructor, propertyKey);
27
+ // console.log('params updated', methodConfig);
28
+ }
29
+ function Path(name) {
30
+ return function (target, propertyKey, parameterIndex) {
31
+ metaParam('Path', name, undefined, {}, target, propertyKey, parameterIndex);
32
+ };
33
+ }
34
+ function Query(name) {
35
+ return function (target, propertyKey, parameterIndex) {
36
+ metaParam('Query', name, undefined, {}, target, propertyKey, parameterIndex);
37
+ };
38
+ }
39
+ function Cookie(name, expireInSecond) {
40
+ if (expireInSecond === void 0) { expireInSecond = 3600; }
41
+ return function (target, propertyKey, parameterIndex) {
42
+ metaParam('Cookie', name, expireInSecond, {}, target, propertyKey, parameterIndex);
43
+ };
44
+ }
45
+ function Header(name) {
46
+ return function (target, propertyKey, parameterIndex) {
47
+ metaParam('Header', name, undefined, {}, target, propertyKey, parameterIndex);
48
+ };
49
+ }
50
+ function Body(name) {
51
+ return function (target, propertyKey, parameterIndex) {
52
+ metaParam('Body', name, undefined, {}, target, propertyKey, parameterIndex);
53
+ };
54
+ }
55
+ //# sourceMappingURL=http-params-decorators.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"http-params-decorators.js","sourceRoot":"","sources":[""],"names":[],"mappings":"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"}
@@ -0,0 +1,5 @@
1
+ export declare class DITaonContainer {
2
+ private static instances;
3
+ static resolve<T>(target: Function): T;
4
+ static inject<T>(target: new (...args: any[]) => T): T;
5
+ }
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DITaonContainer = void 0;
4
+ var tslib_1 = require("tslib");
5
+ var DITaonContainer = /** @class */ (function () {
6
+ function DITaonContainer() {
7
+ }
8
+ DITaonContainer.resolve = function (target) {
9
+ var _a;
10
+ if (DITaonContainer.instances.has(target)) {
11
+ return DITaonContainer.instances.get(target);
12
+ }
13
+ // const tokens = Reflect.getMetadata('design:paramtypes', target) || [];
14
+ var injections = []; // tokens.map(token => Container.inject<any>(token));
15
+ var instance = new ((_a = target).bind.apply(_a, tslib_1.__spreadArray([void 0], tslib_1.__read(injections), false)))();
16
+ DITaonContainer.instances.set(target, instance);
17
+ return instance;
18
+ };
19
+ DITaonContainer.inject = function (target) {
20
+ return new Proxy({}, {
21
+ get: function (_, propName) {
22
+ var instance = DITaonContainer.instances.get(target) ||
23
+ DITaonContainer.resolve(target);
24
+ return typeof instance[propName] === 'function'
25
+ ? instance[propName].bind(instance)
26
+ : instance[propName];
27
+ },
28
+ set: function (_, propName, value) {
29
+ var instance = DITaonContainer.instances.get(target) ||
30
+ DITaonContainer.resolve(target);
31
+ instance[propName] = value;
32
+ return true;
33
+ },
34
+ });
35
+ };
36
+ DITaonContainer.instances = new Map();
37
+ return DITaonContainer;
38
+ }());
39
+ exports.DITaonContainer = DITaonContainer;
40
+ //# sourceMappingURL=di-container.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"di-container.js","sourceRoot":"","sources":[""],"names":[],"mappings":";;;;AAAA;IAAA;IAsCA,CAAC;IAnCQ,uBAAO,GAAd,UAAkB,MAAgB;;QAChC,IAAI,eAAe,CAAC,SAAS,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC;YAC1C,OAAO,eAAe,CAAC,SAAS,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QAC/C,CAAC;QAED,yEAAyE;QACzE,IAAM,UAAU,GAAG,EAAE,CAAC,CAAC,sDAAsD;QAE7E,IAAM,QAAQ,QAAO,CAAA,KAAC,MAAc,CAAA,+DAAI,UAAU,aAAC,CAAC;QACpD,eAAe,CAAC,SAAS,CAAC,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;QAChD,OAAO,QAAQ,CAAC;IAClB,CAAC;IAEM,sBAAM,GAAb,UAAiB,MAAiC;QAChD,OAAO,IAAI,KAAK,CACd,EAAE,EACF;YACE,GAAG,EAAE,UAAC,CAAC,EAAE,QAAQ;gBACf,IAAI,QAAQ,GACV,eAAe,CAAC,SAAS,CAAC,GAAG,CAAC,MAAM,CAAC;oBACrC,eAAe,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;gBAClC,OAAO,OAAO,QAAQ,CAAC,QAAQ,CAAC,KAAK,UAAU;oBAC7C,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC;oBACnC,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;YACzB,CAAC;YACD,GAAG,EAAE,UAAC,CAAC,EAAE,QAAQ,EAAE,KAAK;gBACtB,IAAI,QAAQ,GACV,eAAe,CAAC,SAAS,CAAC,GAAG,CAAC,MAAM,CAAC;oBACrC,eAAe,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;gBAClC,QAAQ,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC;gBAC3B,OAAO,IAAI,CAAC;YACd,CAAC;SACF,CACG,CAAC;IACT,CAAC;IApCc,yBAAS,GAAG,IAAI,GAAG,EAAE,CAAC;IAqCvC,sBAAC;CAAA,AAtCD,IAsCC;AAtCY,0CAAe"}
@@ -0,0 +1,117 @@
1
+ import { URL } from 'url';
2
+ import { Models } from './models';
3
+ import type { Application } from 'express';
4
+ import type { NgZone } from '@angular/core';
5
+ import { DataSource } from 'taon-typeorm/src';
6
+ import type { Server } from 'http';
7
+ import type { BaseClass } from './base-classes/base-class';
8
+ export declare class EndpointContext {
9
+ private originalConfig;
10
+ private configFn;
11
+ private static ngZone;
12
+ static initNgZone(ngZone: NgZone): void;
13
+ static findForTraget(classFnOrObject: any): EndpointContext;
14
+ disabledRealtime: boolean;
15
+ /**
16
+ * check whether context is inited
17
+ * (with init() function )
18
+ */
19
+ inited: boolean;
20
+ private readonly localInstaceObjSymbol;
21
+ /**
22
+ * all instances of classes from context
23
+ * key is class name
24
+ */
25
+ readonly allClassesInstances: {};
26
+ private readonly classInstancesByNameObj;
27
+ private readonly objWithClassesInstancesArr;
28
+ readonly activeRoutes: {
29
+ routePath: string;
30
+ method: Models.Http.Rest.HttpMethod;
31
+ }[];
32
+ private injectableTypesfromContexts;
33
+ private allTypesfromContexts;
34
+ expressApp: Application;
35
+ serverTcpUdp: Server;
36
+ databaseConfig?: Models.DatabaseConfig;
37
+ private autoGeneratedConfig?;
38
+ mode: Models.FrameworkMode;
39
+ session?: Models.ISession;
40
+ connection: DataSource;
41
+ private entitiesTriggers;
42
+ private realtime;
43
+ get realtimeClient(): import("./realtime/realtime-client").RealtimeClient;
44
+ get realtimeServer(): import("./realtime/realtime-server").RealtimeServer;
45
+ /**
46
+ * available after init()
47
+ */
48
+ config: Models.ContextOptions<any, any, any, any, any, any>;
49
+ get logHttp(): boolean;
50
+ get logRealtime(): boolean;
51
+ get logFramework(): boolean;
52
+ get logDb(): boolean;
53
+ constructor(originalConfig: Models.ContextOptions<any, any, any, any, any, any>, configFn: (env: any) => Models.ContextOptions<any, any, any, any, any, any>);
54
+ init(options?: {
55
+ initFromRecrusiveContextResovle?: boolean;
56
+ }): Promise<void>;
57
+ private getAutoGeneratedConfig;
58
+ get ngZone(): any;
59
+ startServer(): void;
60
+ displayRoutes(app: any): void;
61
+ get modeAllowsDatabaseCreation(): boolean;
62
+ private cloneClassWithNewMetadata;
63
+ private cloneClassesObjWithNewMetadata;
64
+ private getRecrusiveClassesfromContextsObj;
65
+ private getRecrusiveClassesfromContexts;
66
+ getClassInstanceObjBy(classType: Models.ClassType): any;
67
+ private getClassesInstancesArrBy;
68
+ inject<T>(ctor: new (...args: any[]) => T, options?: {
69
+ localInstance?: boolean;
70
+ contextClassInstance?: BaseClass;
71
+ locaInstanceConstructorArgs?: ConstructorParameters<typeof ctor>;
72
+ }): T;
73
+ /**
74
+ * alias for inject
75
+ */
76
+ getInstanceBy<T>(ctor: new (...args: any[]) => T): T;
77
+ checkIfContextInitialized(): void;
78
+ getClassFunBy(classType: Models.ClassType): any;
79
+ isCLassType(classType: Models.ClassType, classFn: Function): boolean;
80
+ /**
81
+ * Only for injectable types
82
+ * Only for classType: CONTROLLER, REPOSITORY, PROVIDER
83
+ */
84
+ getClassFunByClassName(className: string): Function;
85
+ getClassFunByClass(classFunction: Function): Function;
86
+ getClassFunByArr(classType: Models.ClassType): Function[];
87
+ private createInstances;
88
+ reinitControllers(): Promise<void>;
89
+ initClasses(): Promise<void>;
90
+ isActiveOn(classInstance: object): boolean;
91
+ get uri(): URL;
92
+ get isHttpServer(): boolean;
93
+ /**
94
+ * ipc/udp needs this
95
+ */
96
+ get contextName(): string;
97
+ get publicAssets(): {
98
+ serverPath: string;
99
+ locationOnDisk: string;
100
+ }[];
101
+ get isProductionMode(): boolean;
102
+ get remoteHost(): string;
103
+ get host(): string;
104
+ get orgin(): string;
105
+ initSubscribers(): Promise<void>;
106
+ initEntities(): Promise<void>;
107
+ initDatabaseConnection(): Promise<void>;
108
+ initMetadata(): void;
109
+ writeActiveRoutes(): void;
110
+ get middlewares(): Models.MiddlewareType[];
111
+ private initMidleware;
112
+ private initServer;
113
+ /**
114
+ * client can be browser or nodejs (when remote host)
115
+ */
116
+ private initClient;
117
+ }