@futdevpro/nts-dynamo 1.6.6 → 1.6.8

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 (588) hide show
  1. package/lib/_constants/{dynamo-nts-global-settings.const.d.ts → global-settings.const.d.ts} +2 -2
  2. package/lib/_constants/global-settings.const.d.ts.map +1 -0
  3. package/lib/_constants/global-settings.const.js +18 -0
  4. package/lib/_constants/global-settings.const.js.map +1 -0
  5. package/lib/_constants/index.d.ts +1 -1
  6. package/lib/_constants/index.d.ts.map +1 -1
  7. package/lib/_constants/index.js +1 -1
  8. package/lib/_constants/index.js.map +1 -1
  9. package/lib/_enums/data-model-type.enum.d.ts +1 -1
  10. package/lib/_enums/data-model-type.enum.d.ts.map +1 -1
  11. package/lib/_enums/data-model-type.enum.js +7 -7
  12. package/lib/_enums/data-model-type.enum.js.map +1 -1
  13. package/lib/_enums/{dynamo-nts-data-service-function.enum.d.ts → data-service-function.enum.d.ts} +1 -1
  14. package/lib/_enums/data-service-function.enum.d.ts.map +1 -0
  15. package/lib/_enums/{dynamo-nts-data-service-function.enum.js → data-service-function.enum.js} +1 -1
  16. package/lib/_enums/data-service-function.enum.js.map +1 -0
  17. package/lib/_enums/http/http-call-type.enum.d.ts +1 -1
  18. package/lib/_enums/http/http-call-type.enum.d.ts.map +1 -1
  19. package/lib/_enums/http/http-call-type.enum.js +9 -9
  20. package/lib/_enums/http/http-call-type.enum.js.map +1 -1
  21. package/lib/_enums/http/http-response-type.enum.d.ts +1 -1
  22. package/lib/_enums/http/http-response-type.enum.d.ts.map +1 -1
  23. package/lib/_enums/http/http-response-type.enum.js +8 -8
  24. package/lib/_enums/http/http-response-type.enum.js.map +1 -1
  25. package/lib/_enums/http/{dynamo-nts-socket-event-type.enum.d.ts → socket-event-type.enum.d.ts} +1 -1
  26. package/lib/_enums/http/socket-event-type.enum.d.ts.map +1 -0
  27. package/lib/_enums/http/{dynamo-nts-socket-event-type.enum.js → socket-event-type.enum.js} +1 -1
  28. package/lib/_enums/http/socket-event-type.enum.js.map +1 -0
  29. package/lib/_enums/index.d.ts +8 -8
  30. package/lib/_enums/index.d.ts.map +1 -1
  31. package/lib/_enums/index.js +8 -8
  32. package/lib/_enums/index.js.map +1 -1
  33. package/lib/_enums/predefined-data-types.enum.d.ts +1 -1
  34. package/lib/_enums/predefined-data-types.enum.d.ts.map +1 -1
  35. package/lib/_enums/predefined-data-types.enum.js +9 -9
  36. package/lib/_enums/predefined-data-types.enum.js.map +1 -1
  37. package/lib/_enums/{dynamo-nts-route-security.enum.d.ts → route-security.enum.d.ts} +1 -1
  38. package/lib/_enums/route-security.enum.d.ts.map +1 -0
  39. package/lib/_enums/{dynamo-nts-route-security.enum.js → route-security.enum.js} +1 -1
  40. package/lib/_enums/route-security.enum.js.map +1 -0
  41. package/lib/_enums/{dynamo-nts-socket-security.enum.d.ts → socket-security.enum.d.ts} +1 -1
  42. package/lib/_enums/socket-security.enum.d.ts.map +1 -0
  43. package/lib/_enums/{dynamo-nts-socket-security.enum.js → socket-security.enum.js} +1 -1
  44. package/lib/_enums/socket-security.enum.js.map +1 -0
  45. package/lib/_models/{dynamo-nts-api-call-params.d.ts → control-models/api-call-params.control-model.d.ts} +3 -3
  46. package/lib/_models/control-models/api-call-params.control-model.d.ts.map +1 -0
  47. package/lib/_models/{dynamo-nts-api-call-params.js → control-models/api-call-params.control-model.js} +1 -1
  48. package/lib/_models/control-models/api-call-params.control-model.js.map +1 -0
  49. package/lib/_models/{dynamo-nts-app-params.d.ts → control-models/app-params.control-model.d.ts} +1 -1
  50. package/lib/_models/control-models/app-params.control-model.d.ts.map +1 -0
  51. package/lib/_models/{dynamo-nts-app-params.js → control-models/app-params.control-model.js} +1 -1
  52. package/lib/_models/control-models/app-params.control-model.js.map +1 -0
  53. package/lib/_models/{dynamo-nts-endpoint-params.d.ts → control-models/endpoint-params.control-model.d.ts} +3 -3
  54. package/lib/_models/control-models/endpoint-params.control-model.d.ts.map +1 -0
  55. package/lib/_models/{dynamo-nts-endpoint-params.js → control-models/endpoint-params.control-model.js} +8 -8
  56. package/lib/_models/control-models/endpoint-params.control-model.js.map +1 -0
  57. package/lib/_models/control-models/index.d.ts +7 -7
  58. package/lib/_models/control-models/index.d.ts.map +1 -1
  59. package/lib/_models/control-models/index.js +7 -7
  60. package/lib/_models/control-models/index.js.map +1 -1
  61. package/lib/_models/control-models/{dynamo-nts-socket-client-service-params.model.d.ts → socket-client-service-params.control-model.d.ts} +1 -1
  62. package/lib/_models/control-models/socket-client-service-params.control-model.d.ts.map +1 -0
  63. package/lib/_models/control-models/{dynamo-nts-socket-client-service-params.model.js → socket-client-service-params.control-model.js} +1 -1
  64. package/lib/_models/control-models/socket-client-service-params.control-model.js.map +1 -0
  65. package/lib/_models/control-models/{dynamo-nts-socket-event.model.d.ts → socket-event.control-model.d.ts} +2 -2
  66. package/lib/_models/control-models/socket-event.control-model.d.ts.map +1 -0
  67. package/lib/_models/control-models/{dynamo-nts-socket-event.model.js → socket-event.control-model.js} +7 -7
  68. package/lib/_models/control-models/socket-event.control-model.js.map +1 -0
  69. package/lib/_models/control-models/{dynamo-nts-socket-presence.model.d.ts → socket-presence.control-model.d.ts} +1 -1
  70. package/lib/_models/control-models/socket-presence.control-model.d.ts.map +1 -0
  71. package/lib/_models/control-models/{dynamo-nts-socket-presence.model.js → socket-presence.control-model.js} +1 -1
  72. package/lib/_models/control-models/socket-presence.control-model.js.map +1 -0
  73. package/lib/_models/control-models/{dynamo-nts-socket-server-service-params.model.d.ts → socket-server-service-params.control-model.d.ts} +2 -2
  74. package/lib/_models/control-models/socket-server-service-params.control-model.d.ts.map +1 -0
  75. package/lib/_models/control-models/socket-server-service-params.control-model.js +16 -0
  76. package/lib/_models/control-models/socket-server-service-params.control-model.js.map +1 -0
  77. package/lib/_models/index.d.ts +1 -0
  78. package/lib/_models/index.d.ts.map +1 -1
  79. package/lib/_models/index.js +2 -0
  80. package/lib/_models/index.js.map +1 -1
  81. package/lib/_models/interfaces/certification-settings.interface.d.ts.map +1 -0
  82. package/lib/_models/interfaces/certification-settings.interface.js.map +1 -0
  83. package/lib/_models/interfaces/{dynamo-nts-global-service-settings.interface.d.ts → global-service-settings.interface.d.ts} +3 -3
  84. package/lib/_models/interfaces/global-service-settings.interface.d.ts.map +1 -0
  85. package/lib/_models/interfaces/global-service-settings.interface.js.map +1 -0
  86. package/lib/_models/{dynamo-nts-global-settings.d.ts → interfaces/global-settings.interface.d.ts} +3 -3
  87. package/lib/_models/interfaces/global-settings.interface.d.ts.map +1 -0
  88. package/lib/_models/{dynamo-nts-global-settings.js → interfaces/global-settings.interface.js} +1 -1
  89. package/lib/_models/interfaces/global-settings.interface.js.map +1 -0
  90. package/lib/_models/interfaces/index.d.ts +5 -5
  91. package/lib/_models/interfaces/index.d.ts.map +1 -1
  92. package/lib/_models/interfaces/index.js +5 -5
  93. package/lib/_models/interfaces/index.js.map +1 -1
  94. package/lib/_models/interfaces/port-settings.interface.d.ts.map +1 -0
  95. package/lib/_models/interfaces/port-settings.interface.js.map +1 -0
  96. package/lib/_models/interfaces/{dynamo-nts-routing-module-settings.interface.d.ts → routing-module-settings.interface.d.ts} +1 -1
  97. package/lib/_models/interfaces/routing-module-settings.interface.d.ts.map +1 -0
  98. package/lib/_models/interfaces/routing-module-settings.interface.js +3 -0
  99. package/lib/_models/interfaces/routing-module-settings.interface.js.map +1 -0
  100. package/lib/_models/types/db-filter.type.d.ts +97 -0
  101. package/lib/_models/types/db-filter.type.d.ts.map +1 -0
  102. package/lib/_models/types/db-filter.type.js +3 -0
  103. package/lib/_models/types/db-filter.type.js.map +1 -0
  104. package/lib/_models/types/db-update.type.d.ts +129 -0
  105. package/lib/_models/types/db-update.type.d.ts.map +1 -0
  106. package/lib/_models/types/db-update.type.js +3 -0
  107. package/lib/_models/types/db-update.type.js.map +1 -0
  108. package/lib/_models/types/index.d.ts +3 -0
  109. package/lib/_models/types/index.d.ts.map +1 -0
  110. package/lib/_models/types/index.js +7 -0
  111. package/lib/_models/types/index.js.map +1 -0
  112. package/lib/_modules/api-service.index.d.ts +4 -4
  113. package/lib/_modules/api-service.index.d.ts.map +1 -1
  114. package/lib/_modules/api-service.index.js +4 -4
  115. package/lib/_modules/api-service.index.js.map +1 -1
  116. package/lib/_modules/app-extended.index.d.ts +16 -16
  117. package/lib/_modules/app-extended.index.d.ts.map +1 -1
  118. package/lib/_modules/app-extended.index.js +16 -16
  119. package/lib/_modules/app-extended.index.js.map +1 -1
  120. package/lib/_modules/app.index.d.ts +13 -13
  121. package/lib/_modules/app.index.d.ts.map +1 -1
  122. package/lib/_modules/app.index.js +13 -13
  123. package/lib/_modules/app.index.js.map +1 -1
  124. package/lib/_modules/auth.index.d.ts +2 -2
  125. package/lib/_modules/auth.index.d.ts.map +1 -1
  126. package/lib/_modules/auth.index.js +2 -2
  127. package/lib/_modules/auth.index.js.map +1 -1
  128. package/lib/_modules/controller.index.d.ts +4 -4
  129. package/lib/_modules/controller.index.d.ts.map +1 -1
  130. package/lib/_modules/controller.index.js +4 -4
  131. package/lib/_modules/controller.index.js.map +1 -1
  132. package/lib/_modules/custom-data/custom-data.controller.d.ts +1 -1
  133. package/lib/_modules/custom-data/custom-data.controller.d.ts.map +1 -1
  134. package/lib/_modules/custom-data/custom-data.controller.js +11 -11
  135. package/lib/_modules/custom-data/custom-data.controller.js.map +1 -1
  136. package/lib/_modules/custom-data/{custom-data.service.d.ts → custom-data.data-service.d.ts} +2 -2
  137. package/lib/_modules/custom-data/custom-data.data-service.d.ts.map +1 -0
  138. package/lib/_modules/custom-data/{custom-data.service.js → custom-data.data-service.js} +3 -3
  139. package/lib/_modules/custom-data/custom-data.data-service.js.map +1 -0
  140. package/lib/_modules/custom-data/get-custom-data-routing-module.util.d.ts +4 -0
  141. package/lib/_modules/custom-data/get-custom-data-routing-module.util.d.ts.map +1 -0
  142. package/lib/_modules/custom-data/{get-custom-data-routing-module.js → get-custom-data-routing-module.util.js} +3 -3
  143. package/lib/_modules/custom-data/get-custom-data-routing-module.util.js.map +1 -0
  144. package/lib/_modules/custom-data/index.d.ts +2 -2
  145. package/lib/_modules/custom-data/index.d.ts.map +1 -1
  146. package/lib/_modules/custom-data/index.js +2 -2
  147. package/lib/_modules/custom-data/index.js.map +1 -1
  148. package/lib/_modules/data-service.index.d.ts +4 -4
  149. package/lib/_modules/data-service.index.d.ts.map +1 -1
  150. package/lib/_modules/data-service.index.js +4 -4
  151. package/lib/_modules/data-service.index.js.map +1 -1
  152. package/lib/_modules/email.index.d.ts +2 -2
  153. package/lib/_modules/email.index.d.ts.map +1 -1
  154. package/lib/_modules/email.index.js +2 -2
  155. package/lib/_modules/email.index.js.map +1 -1
  156. package/lib/_modules/test/get-test-routing-module.util.d.ts +4 -0
  157. package/lib/_modules/test/get-test-routing-module.util.d.ts.map +1 -0
  158. package/lib/_modules/test/{get-test-routing-module.js → get-test-routing-module.util.js} +3 -3
  159. package/lib/_modules/test/get-test-routing-module.util.js.map +1 -0
  160. package/lib/_modules/test/index.d.ts +1 -1
  161. package/lib/_modules/test/index.d.ts.map +1 -1
  162. package/lib/_modules/test/index.js +1 -1
  163. package/lib/_modules/test/index.js.map +1 -1
  164. package/lib/_modules/test/test.controller.d.ts +1 -1
  165. package/lib/_modules/test/test.controller.d.ts.map +1 -1
  166. package/lib/_modules/test/test.controller.js +19 -19
  167. package/lib/_modules/test/test.controller.js.map +1 -1
  168. package/lib/_modules/usage/get-usage-routing-module.util.d.ts +4 -0
  169. package/lib/_modules/usage/get-usage-routing-module.util.d.ts.map +1 -0
  170. package/lib/_modules/usage/{get-usage-routing-module.js → get-usage-routing-module.util.js} +4 -4
  171. package/lib/_modules/usage/get-usage-routing-module.util.js.map +1 -0
  172. package/lib/_modules/usage/index.d.ts +3 -3
  173. package/lib/_modules/usage/index.d.ts.map +1 -1
  174. package/lib/_modules/usage/index.js +3 -3
  175. package/lib/_modules/usage/index.js.map +1 -1
  176. package/lib/_modules/usage/{usage-controller.d.ts → usage.controller.d.ts} +2 -2
  177. package/lib/_modules/usage/usage.controller.d.ts.map +1 -0
  178. package/lib/_modules/usage/{usage-controller.js → usage.controller.js} +21 -21
  179. package/lib/_modules/usage/{usage-controller.js.map → usage.controller.js.map} +1 -1
  180. package/lib/_modules/usage/{usage.service.d.ts → usage.data-service.d.ts} +2 -2
  181. package/lib/_modules/usage/usage.data-service.d.ts.map +1 -0
  182. package/lib/_modules/usage/{usage.service.js → usage.data-service.js} +6 -6
  183. package/lib/_modules/usage/usage.data-service.js.map +1 -0
  184. package/lib/_services/{dynamo-nts-api.service.d.ts → api.service.d.ts} +2 -2
  185. package/lib/_services/api.service.d.ts.map +1 -0
  186. package/lib/_services/{dynamo-nts-api.service.js → api.service.js} +9 -9
  187. package/lib/_services/api.service.js.map +1 -0
  188. package/lib/_services/{dynamo-nts-app-extended.d.ts → app-extended.server.d.ts} +3 -3
  189. package/lib/_services/app-extended.server.d.ts.map +1 -0
  190. package/lib/_services/{dynamo-nts-app-extended.js → app-extended.server.js} +13 -13
  191. package/lib/_services/app-extended.server.js.map +1 -0
  192. package/lib/_services/{dynamo-nts-app.server.d.ts → app.server.d.ts} +57 -12
  193. package/lib/_services/app.server.d.ts.map +1 -0
  194. package/lib/_services/{dynamo-nts-app.server.js → app.server.js} +74 -28
  195. package/lib/_services/app.server.js.map +1 -0
  196. package/lib/_services/app.server.spec.d.ts +2 -0
  197. package/lib/_services/app.server.spec.d.ts.map +1 -0
  198. package/lib/_services/app.server.spec.js +32 -0
  199. package/lib/_services/app.server.spec.js.map +1 -0
  200. package/lib/_services/{dynamo-nts-auth.service.d.ts → auth.service.d.ts} +2 -2
  201. package/lib/_services/auth.service.d.ts.map +1 -0
  202. package/lib/_services/{dynamo-nts-auth.service.js → auth.service.js} +3 -3
  203. package/lib/_services/auth.service.js.map +1 -0
  204. package/lib/_services/controller-service-collection.service.d.ts +7 -0
  205. package/lib/_services/controller-service-collection.service.d.ts.map +1 -0
  206. package/lib/{_interfaces/dynamo-nts-port-settings.interface.js → _services/controller-service-collection.service.js} +1 -1
  207. package/lib/_services/controller-service-collection.service.js.map +1 -0
  208. package/lib/_services/{dynamo-nts-controller.service.d.ts → controller.service.d.ts} +3 -3
  209. package/lib/_services/controller.service.d.ts.map +1 -0
  210. package/lib/_services/{dynamo-nts-controller.service.js → controller.service.js} +3 -3
  211. package/lib/_services/controller.service.js.map +1 -0
  212. package/lib/_services/{dynamo-nts-data.service.d.ts → data.service.d.ts} +4 -2
  213. package/lib/_services/data.service.d.ts.map +1 -0
  214. package/lib/_services/{dynamo-nts-data.service.js → data.service.js} +4 -4
  215. package/lib/_services/data.service.js.map +1 -0
  216. package/lib/_services/db-service-collection.service.d.ts +7 -0
  217. package/lib/_services/db-service-collection.service.d.ts.map +1 -0
  218. package/lib/_services/db-service-collection.service.js +3 -0
  219. package/lib/_services/db-service-collection.service.js.map +1 -0
  220. package/lib/_services/{dynamo-nts-db.service.d.ts → db.service.d.ts} +4 -212
  221. package/lib/_services/db.service.d.ts.map +1 -0
  222. package/lib/_services/{dynamo-nts-db.service.js → db.service.js} +2 -2
  223. package/lib/_services/db.service.js.map +1 -0
  224. package/{src/_services/dynamo-nts-email-service-collection.service.ts → lib/_services/email-service-collection.service.d.ts} +17 -22
  225. package/lib/_services/email-service-collection.service.d.ts.map +1 -0
  226. package/lib/_services/email-service-collection.service.js +8 -0
  227. package/lib/_services/email-service-collection.service.js.map +1 -0
  228. package/lib/_services/{dynamo-nts-email.service.d.ts → email.service.d.ts} +1 -1
  229. package/lib/_services/email.service.d.ts.map +1 -0
  230. package/lib/_services/{dynamo-nts-email.service.js → email.service.js} +1 -1
  231. package/lib/_services/email.service.js.map +1 -0
  232. package/lib/_services/{dynamo-nts-global.service.d.ts → global.service.d.ts} +8 -8
  233. package/lib/_services/global.service.d.ts.map +1 -0
  234. package/lib/_services/{dynamo-nts-global.service.js → global.service.js} +13 -13
  235. package/lib/_services/global.service.js.map +1 -0
  236. package/lib/_services/index.d.ts +16 -16
  237. package/lib/_services/index.d.ts.map +1 -1
  238. package/lib/_services/index.js +16 -16
  239. package/lib/_services/index.js.map +1 -1
  240. package/lib/_services/{dynamo-nts-routing-module.service.d.ts → routing-module.service.d.ts} +4 -4
  241. package/lib/_services/routing-module.service.d.ts.map +1 -0
  242. package/lib/_services/{dynamo-nts-routing-module.service.js → routing-module.service.js} +21 -20
  243. package/lib/_services/routing-module.service.js.map +1 -0
  244. package/lib/_services/service-collection.service.d.ts +5 -0
  245. package/lib/_services/service-collection.service.d.ts.map +1 -0
  246. package/lib/_services/service-collection.service.js +8 -0
  247. package/lib/_services/service-collection.service.js.map +1 -0
  248. package/lib/_services/shared.service.spec.d.ts +2 -0
  249. package/lib/_services/shared.service.spec.d.ts.map +1 -0
  250. package/lib/_services/shared.service.spec.js +12 -0
  251. package/lib/_services/shared.service.spec.js.map +1 -0
  252. package/lib/_services/{dynamo-nts-shared.service.d.ts → shared.static-service.d.ts} +1 -1
  253. package/lib/_services/shared.static-service.d.ts.map +1 -0
  254. package/lib/_services/{dynamo-nts-shared.service.js → shared.static-service.js} +1 -1
  255. package/lib/_services/shared.static-service.js.map +1 -0
  256. package/lib/_services/{dynamo-nts-singleton.service.d.ts → singleton.service.d.ts} +1 -1
  257. package/lib/_services/singleton.service.d.ts.map +1 -0
  258. package/lib/_services/{dynamo-nts-singleton.service.js → singleton.service.js} +1 -1
  259. package/lib/_services/singleton.service.js.map +1 -0
  260. package/lib/_services/{dynamo-nts-socket-client.service.d.ts → socket-client.service.d.ts} +4 -4
  261. package/lib/_services/socket-client.service.d.ts.map +1 -0
  262. package/lib/_services/{dynamo-nts-socket-client.service.js → socket-client.service.js} +14 -14
  263. package/lib/_services/socket-client.service.js.map +1 -0
  264. package/lib/_services/{dynamo-nts-socket-server.service.d.ts → socket-server.service.d.ts} +20 -9
  265. package/lib/_services/socket-server.service.d.ts.map +1 -0
  266. package/lib/_services/{dynamo-nts-socket-server.service.js → socket-server.service.js} +38 -26
  267. package/lib/_services/socket-server.service.js.map +1 -0
  268. package/lib/_services/socket-server.service.spec.d.ts +2 -0
  269. package/lib/_services/socket-server.service.spec.d.ts.map +1 -0
  270. package/lib/_services/socket-server.service.spec.js +27 -0
  271. package/lib/_services/socket-server.service.spec.js.map +1 -0
  272. package/lib/tsconfig.tsbuildinfo +1 -1
  273. package/package.json +14 -5
  274. package/spec/support/jasmine.json +4 -2
  275. package/src/_constants/{dynamo-nts-global-settings.const.ts → global-settings.const.ts} +3 -3
  276. package/src/_constants/index.ts +1 -1
  277. package/src/_enums/index.ts +8 -8
  278. package/src/_models/control-models/{dynamo-nts-api-call-params.model.ts → api-call-params.control-model.ts} +2 -2
  279. package/src/_models/control-models/{dynamo-nts-endpoint-params.model.ts → endpoint-params.control-model.ts} +4 -4
  280. package/src/_models/control-models/index.ts +7 -7
  281. package/src/_models/control-models/{dynamo-nts-socket-event.model.ts → socket-event.control-model.ts} +2 -2
  282. package/src/_models/control-models/socket-server-service-params.control-model.ts +20 -0
  283. package/src/_models/index.ts +3 -0
  284. package/src/_models/interfaces/{dynamo-nts-global-service-settings.interface.ts → global-service-settings.interface.ts} +2 -2
  285. package/src/_models/interfaces/{dynamo-nts-global-settings.interface.ts → global-settings.interface.ts} +2 -2
  286. package/src/_models/interfaces/index.ts +5 -5
  287. package/src/_models/types/db-filter.type.ts +105 -0
  288. package/src/_models/types/db-update.type.ts +99 -0
  289. package/src/_models/types/index.ts +5 -0
  290. package/src/_modules/api-service.index.ts +4 -4
  291. package/src/_modules/app-extended.index.ts +16 -16
  292. package/src/_modules/app.index.ts +13 -13
  293. package/src/_modules/auth.index.ts +2 -2
  294. package/src/_modules/controller.index.ts +4 -4
  295. package/src/_modules/custom-data/custom-data.controller.ts +4 -4
  296. package/src/_modules/custom-data/{custom-data.service.ts → custom-data.data-service.ts} +1 -1
  297. package/src/_modules/custom-data/{get-custom-data-routing-module.ts → get-custom-data-routing-module.util.ts} +5 -3
  298. package/src/_modules/custom-data/index.ts +2 -2
  299. package/src/_modules/data-service.index.ts +4 -4
  300. package/src/_modules/email.index.ts +2 -2
  301. package/src/_modules/test/{get-test-routing-module.ts → get-test-routing-module.util.ts} +5 -3
  302. package/src/_modules/test/index.ts +1 -1
  303. package/src/_modules/test/test.controller.ts +4 -4
  304. package/src/_modules/usage/{get-usage-routing-module.ts → get-usage-routing-module.util.ts} +6 -4
  305. package/src/_modules/usage/index.ts +3 -3
  306. package/src/_modules/usage/{usage-controller.ts → usage.controller.ts} +6 -6
  307. package/src/_modules/usage/{usage.service.ts → usage.data-service.ts} +2 -2
  308. package/src/_services/{dynamo-nts-api.service.ts → api.service.ts} +3 -3
  309. package/src/_services/{dynamo-nts-app-extended.server.ts → app-extended.server.ts} +4 -4
  310. package/src/_services/app.server.spec.ts +40 -0
  311. package/src/_services/{dynamo-nts-app.server.ts → app.server.ts} +70 -21
  312. package/src/_services/{dynamo-nts-auth.service.ts → auth.service.ts} +1 -1
  313. package/src/_services/controller-service-collection.service.ts +14 -0
  314. package/src/_services/{dynamo-nts-controller.service.ts → controller.service.ts} +2 -2
  315. package/src/_services/{dynamo-nts-data.service.ts → data.service.ts} +4 -2
  316. package/src/_services/db-service-collection.service.ts +18 -0
  317. package/src/_services/{dynamo-nts-db.service.ts → db.service.ts} +3 -183
  318. package/src/_services/email-service-collection.service.ts +25 -0
  319. package/src/_services/{dynamo-nts-global.service.ts → global.service.ts} +17 -17
  320. package/src/_services/index.ts +16 -16
  321. package/src/_services/{dynamo-nts-routing-module.service.ts → routing-module.service.ts} +10 -8
  322. package/src/_services/service-collection.service.ts +5 -0
  323. package/src/_services/shared.service.spec.ts +10 -0
  324. package/src/_services/{dynamo-nts-socket-client.service.ts → socket-client.service.ts} +5 -5
  325. package/src/_services/socket-server.service.spec.ts +29 -0
  326. package/src/_services/{dynamo-nts-socket-server.service.ts → socket-server.service.ts} +33 -12
  327. package/tsconfig.json +2 -2
  328. package/lib/_constants/dynamo-nts-global-settings.const.d.ts.map +0 -1
  329. package/lib/_constants/dynamo-nts-global-settings.const.js +0 -18
  330. package/lib/_constants/dynamo-nts-global-settings.const.js.map +0 -1
  331. package/lib/_constants/dynamo-nts-global-settings.d.ts +0 -3
  332. package/lib/_constants/dynamo-nts-global-settings.d.ts.map +0 -1
  333. package/lib/_constants/dynamo-nts-global-settings.js +0 -18
  334. package/lib/_constants/dynamo-nts-global-settings.js.map +0 -1
  335. package/lib/_enums/dynamo-nts-data-model-type.enum.d.ts +0 -13
  336. package/lib/_enums/dynamo-nts-data-model-type.enum.d.ts.map +0 -1
  337. package/lib/_enums/dynamo-nts-data-model-type.enum.js +0 -17
  338. package/lib/_enums/dynamo-nts-data-model-type.enum.js.map +0 -1
  339. package/lib/_enums/dynamo-nts-data-service-function.enum.d.ts.map +0 -1
  340. package/lib/_enums/dynamo-nts-data-service-function.enum.js.map +0 -1
  341. package/lib/_enums/dynamo-nts-predefined-data-types.enum.d.ts +0 -27
  342. package/lib/_enums/dynamo-nts-predefined-data-types.enum.d.ts.map +0 -1
  343. package/lib/_enums/dynamo-nts-predefined-data-types.enum.js +0 -31
  344. package/lib/_enums/dynamo-nts-predefined-data-types.enum.js.map +0 -1
  345. package/lib/_enums/dynamo-nts-route-security.enum.d.ts.map +0 -1
  346. package/lib/_enums/dynamo-nts-route-security.enum.js.map +0 -1
  347. package/lib/_enums/dynamo-nts-socket-security.enum.d.ts.map +0 -1
  348. package/lib/_enums/dynamo-nts-socket-security.enum.js.map +0 -1
  349. package/lib/_enums/http/dynamo-nts-http-call-type.enum.d.ts +0 -12
  350. package/lib/_enums/http/dynamo-nts-http-call-type.enum.d.ts.map +0 -1
  351. package/lib/_enums/http/dynamo-nts-http-call-type.enum.js +0 -16
  352. package/lib/_enums/http/dynamo-nts-http-call-type.enum.js.map +0 -1
  353. package/lib/_enums/http/dynamo-nts-http-response-type.enum.d.ts +0 -7
  354. package/lib/_enums/http/dynamo-nts-http-response-type.enum.d.ts.map +0 -1
  355. package/lib/_enums/http/dynamo-nts-http-response-type.enum.js +0 -11
  356. package/lib/_enums/http/dynamo-nts-http-response-type.enum.js.map +0 -1
  357. package/lib/_enums/http/dynamo-nts-socket-event-type.enum.d.ts.map +0 -1
  358. package/lib/_enums/http/dynamo-nts-socket-event-type.enum.js.map +0 -1
  359. package/lib/_enums/http/dynamo-nts-socket-event.enum.d.ts +0 -10
  360. package/lib/_enums/http/dynamo-nts-socket-event.enum.d.ts.map +0 -1
  361. package/lib/_enums/http/dynamo-nts-socket-event.enum.js +0 -14
  362. package/lib/_enums/http/dynamo-nts-socket-event.enum.js.map +0 -1
  363. package/lib/_enums/http/socket-event.enum.d.ts +0 -10
  364. package/lib/_enums/http/socket-event.enum.d.ts.map +0 -1
  365. package/lib/_enums/http/socket-event.enum.js +0 -14
  366. package/lib/_enums/http/socket-event.enum.js.map +0 -1
  367. package/lib/_interfaces/certification-settings.interface.d.ts.map +0 -1
  368. package/lib/_interfaces/certification-settings.interface.js.map +0 -1
  369. package/lib/_interfaces/dynamo-nts-certification-settings.interface.d.ts +0 -7
  370. package/lib/_interfaces/dynamo-nts-certification-settings.interface.d.ts.map +0 -1
  371. package/lib/_interfaces/dynamo-nts-certification-settings.interface.js +0 -3
  372. package/lib/_interfaces/dynamo-nts-certification-settings.interface.js.map +0 -1
  373. package/lib/_interfaces/dynamo-nts-global-service-settings.interface.d.ts +0 -18
  374. package/lib/_interfaces/dynamo-nts-global-service-settings.interface.d.ts.map +0 -1
  375. package/lib/_interfaces/dynamo-nts-global-service-settings.interface.js +0 -3
  376. package/lib/_interfaces/dynamo-nts-global-service-settings.interface.js.map +0 -1
  377. package/lib/_interfaces/dynamo-nts-port-settings.interface.d.ts +0 -5
  378. package/lib/_interfaces/dynamo-nts-port-settings.interface.d.ts.map +0 -1
  379. package/lib/_interfaces/dynamo-nts-port-settings.interface.js.map +0 -1
  380. package/lib/_interfaces/global-service-settings.interface.d.ts +0 -18
  381. package/lib/_interfaces/global-service-settings.interface.d.ts.map +0 -1
  382. package/lib/_interfaces/global-service-settings.interface.js.map +0 -1
  383. package/lib/_interfaces/index.d.ts +0 -1
  384. package/lib/_interfaces/index.d.ts.map +0 -1
  385. package/lib/_interfaces/index.js +0 -4
  386. package/lib/_interfaces/index.js.map +0 -1
  387. package/lib/_interfaces/port-settings.interface.d.ts.map +0 -1
  388. package/lib/_interfaces/port-settings.interface.js.map +0 -1
  389. package/lib/_models/control-models/dynamo-nts-api-call-params.model.d.ts +0 -96
  390. package/lib/_models/control-models/dynamo-nts-api-call-params.model.d.ts.map +0 -1
  391. package/lib/_models/control-models/dynamo-nts-api-call-params.model.js +0 -48
  392. package/lib/_models/control-models/dynamo-nts-api-call-params.model.js.map +0 -1
  393. package/lib/_models/control-models/dynamo-nts-app-params.model.d.ts +0 -50
  394. package/lib/_models/control-models/dynamo-nts-app-params.model.d.ts.map +0 -1
  395. package/lib/_models/control-models/dynamo-nts-app-params.model.js +0 -18
  396. package/lib/_models/control-models/dynamo-nts-app-params.model.js.map +0 -1
  397. package/lib/_models/control-models/dynamo-nts-endpoint-params.model.d.ts +0 -81
  398. package/lib/_models/control-models/dynamo-nts-endpoint-params.model.d.ts.map +0 -1
  399. package/lib/_models/control-models/dynamo-nts-endpoint-params.model.js +0 -140
  400. package/lib/_models/control-models/dynamo-nts-endpoint-params.model.js.map +0 -1
  401. package/lib/_models/control-models/dynamo-nts-socket-client-service-params.model.d.ts.map +0 -1
  402. package/lib/_models/control-models/dynamo-nts-socket-client-service-params.model.js.map +0 -1
  403. package/lib/_models/control-models/dynamo-nts-socket-event-params.model.d.ts +0 -33
  404. package/lib/_models/control-models/dynamo-nts-socket-event-params.model.d.ts.map +0 -1
  405. package/lib/_models/control-models/dynamo-nts-socket-event-params.model.js +0 -81
  406. package/lib/_models/control-models/dynamo-nts-socket-event-params.model.js.map +0 -1
  407. package/lib/_models/control-models/dynamo-nts-socket-event.model.d.ts.map +0 -1
  408. package/lib/_models/control-models/dynamo-nts-socket-event.model.js.map +0 -1
  409. package/lib/_models/control-models/dynamo-nts-socket-presence.model.d.ts.map +0 -1
  410. package/lib/_models/control-models/dynamo-nts-socket-presence.model.js.map +0 -1
  411. package/lib/_models/control-models/dynamo-nts-socket-server-service-params.model.d.ts.map +0 -1
  412. package/lib/_models/control-models/dynamo-nts-socket-server-service-params.model.js +0 -29
  413. package/lib/_models/control-models/dynamo-nts-socket-server-service-params.model.js.map +0 -1
  414. package/lib/_models/dynamo-nts-api-call-params.d.ts.map +0 -1
  415. package/lib/_models/dynamo-nts-api-call-params.js.map +0 -1
  416. package/lib/_models/dynamo-nts-app-params.d.ts.map +0 -1
  417. package/lib/_models/dynamo-nts-app-params.js.map +0 -1
  418. package/lib/_models/dynamo-nts-endpoint-params.d.ts.map +0 -1
  419. package/lib/_models/dynamo-nts-endpoint-params.js.map +0 -1
  420. package/lib/_models/dynamo-nts-global-settings.d.ts.map +0 -1
  421. package/lib/_models/dynamo-nts-global-settings.js.map +0 -1
  422. package/lib/_models/dynamo-nts-routing-module-settings.d.ts +0 -20
  423. package/lib/_models/dynamo-nts-routing-module-settings.d.ts.map +0 -1
  424. package/lib/_models/dynamo-nts-routing-module-settings.js +0 -3
  425. package/lib/_models/dynamo-nts-routing-module-settings.js.map +0 -1
  426. package/lib/_models/dynamo-nts-socket-dictionary.d.ts +0 -19
  427. package/lib/_models/dynamo-nts-socket-dictionary.d.ts.map +0 -1
  428. package/lib/_models/dynamo-nts-socket-dictionary.js +0 -34
  429. package/lib/_models/dynamo-nts-socket-dictionary.js.map +0 -1
  430. package/lib/_models/dynamo-nts-socket-event-params.d.ts +0 -33
  431. package/lib/_models/dynamo-nts-socket-event-params.d.ts.map +0 -1
  432. package/lib/_models/dynamo-nts-socket-event-params.js +0 -81
  433. package/lib/_models/dynamo-nts-socket-event-params.js.map +0 -1
  434. package/lib/_models/dynamo-nts-socket-presence.d.ts +0 -21
  435. package/lib/_models/dynamo-nts-socket-presence.d.ts.map +0 -1
  436. package/lib/_models/dynamo-nts-socket-presence.js +0 -45
  437. package/lib/_models/dynamo-nts-socket-presence.js.map +0 -1
  438. package/lib/_models/dynamo-nts-socket-service-params.d.ts +0 -19
  439. package/lib/_models/dynamo-nts-socket-service-params.d.ts.map +0 -1
  440. package/lib/_models/dynamo-nts-socket-service-params.js +0 -27
  441. package/lib/_models/dynamo-nts-socket-service-params.js.map +0 -1
  442. package/lib/_models/interfaces/dynamo-nts-certification-settings.interface.d.ts +0 -7
  443. package/lib/_models/interfaces/dynamo-nts-certification-settings.interface.d.ts.map +0 -1
  444. package/lib/_models/interfaces/dynamo-nts-certification-settings.interface.js +0 -3
  445. package/lib/_models/interfaces/dynamo-nts-certification-settings.interface.js.map +0 -1
  446. package/lib/_models/interfaces/dynamo-nts-global-service-settings.interface.d.ts.map +0 -1
  447. package/lib/_models/interfaces/dynamo-nts-global-service-settings.interface.js +0 -3
  448. package/lib/_models/interfaces/dynamo-nts-global-service-settings.interface.js.map +0 -1
  449. package/lib/_models/interfaces/dynamo-nts-global-settings.interface.d.ts +0 -54
  450. package/lib/_models/interfaces/dynamo-nts-global-settings.interface.d.ts.map +0 -1
  451. package/lib/_models/interfaces/dynamo-nts-global-settings.interface.js +0 -3
  452. package/lib/_models/interfaces/dynamo-nts-global-settings.interface.js.map +0 -1
  453. package/lib/_models/interfaces/dynamo-nts-port-settings.interface.d.ts +0 -5
  454. package/lib/_models/interfaces/dynamo-nts-port-settings.interface.d.ts.map +0 -1
  455. package/lib/_models/interfaces/dynamo-nts-port-settings.interface.js +0 -3
  456. package/lib/_models/interfaces/dynamo-nts-port-settings.interface.js.map +0 -1
  457. package/lib/_models/interfaces/dynamo-nts-routing-module-settings.interface.d.ts.map +0 -1
  458. package/lib/_models/interfaces/dynamo-nts-routing-module-settings.interface.js +0 -3
  459. package/lib/_models/interfaces/dynamo-nts-routing-module-settings.interface.js.map +0 -1
  460. package/lib/_modules/custom-data/custom-data.service.d.ts.map +0 -1
  461. package/lib/_modules/custom-data/custom-data.service.js.map +0 -1
  462. package/lib/_modules/custom-data/get-custom-data-routing-module.d.ts +0 -4
  463. package/lib/_modules/custom-data/get-custom-data-routing-module.d.ts.map +0 -1
  464. package/lib/_modules/custom-data/get-custom-data-routing-module.js.map +0 -1
  465. package/lib/_modules/test/custom-data.service.d.ts +0 -6
  466. package/lib/_modules/test/custom-data.service.d.ts.map +0 -1
  467. package/lib/_modules/test/custom-data.service.js +0 -12
  468. package/lib/_modules/test/custom-data.service.js.map +0 -1
  469. package/lib/_modules/test/get-test-routing-module.d.ts +0 -4
  470. package/lib/_modules/test/get-test-routing-module.d.ts.map +0 -1
  471. package/lib/_modules/test/get-test-routing-module.js.map +0 -1
  472. package/lib/_modules/test/test-controller.d.ts +0 -6
  473. package/lib/_modules/test/test-controller.d.ts.map +0 -1
  474. package/lib/_modules/test/test-controller.js +0 -127
  475. package/lib/_modules/test/test-controller.js.map +0 -1
  476. package/lib/_modules/usage/get-usage-routing-module.d.ts +0 -4
  477. package/lib/_modules/usage/get-usage-routing-module.d.ts.map +0 -1
  478. package/lib/_modules/usage/get-usage-routing-module.js.map +0 -1
  479. package/lib/_modules/usage/usage-controller.d.ts.map +0 -1
  480. package/lib/_modules/usage/usage.service.d.ts.map +0 -1
  481. package/lib/_modules/usage/usage.service.js.map +0 -1
  482. package/lib/_services/dynamo-nts-api.service.d.ts.map +0 -1
  483. package/lib/_services/dynamo-nts-api.service.js.map +0 -1
  484. package/lib/_services/dynamo-nts-app-extended.d.ts.map +0 -1
  485. package/lib/_services/dynamo-nts-app-extended.js.map +0 -1
  486. package/lib/_services/dynamo-nts-app-extended.server.d.ts +0 -129
  487. package/lib/_services/dynamo-nts-app-extended.server.d.ts.map +0 -1
  488. package/lib/_services/dynamo-nts-app-extended.server.js +0 -213
  489. package/lib/_services/dynamo-nts-app-extended.server.js.map +0 -1
  490. package/lib/_services/dynamo-nts-app.d.ts +0 -275
  491. package/lib/_services/dynamo-nts-app.d.ts.map +0 -1
  492. package/lib/_services/dynamo-nts-app.js +0 -372
  493. package/lib/_services/dynamo-nts-app.js.map +0 -1
  494. package/lib/_services/dynamo-nts-app.server.d.ts.map +0 -1
  495. package/lib/_services/dynamo-nts-app.server.js.map +0 -1
  496. package/lib/_services/dynamo-nts-app.server.spec.d.ts +0 -1
  497. package/lib/_services/dynamo-nts-app.server.spec.d.ts.map +0 -1
  498. package/lib/_services/dynamo-nts-app.server.spec.js +0 -10
  499. package/lib/_services/dynamo-nts-app.server.spec.js.map +0 -1
  500. package/lib/_services/dynamo-nts-app.spec.d.ts +0 -1
  501. package/lib/_services/dynamo-nts-app.spec.d.ts.map +0 -1
  502. package/lib/_services/dynamo-nts-app.spec.js +0 -10
  503. package/lib/_services/dynamo-nts-app.spec.js.map +0 -1
  504. package/lib/_services/dynamo-nts-auth.service.d.ts.map +0 -1
  505. package/lib/_services/dynamo-nts-auth.service.js.map +0 -1
  506. package/lib/_services/dynamo-nts-controller-service-collection.service.d.ts +0 -8
  507. package/lib/_services/dynamo-nts-controller-service-collection.service.d.ts.map +0 -1
  508. package/lib/_services/dynamo-nts-controller-service-collection.service.js +0 -11
  509. package/lib/_services/dynamo-nts-controller-service-collection.service.js.map +0 -1
  510. package/lib/_services/dynamo-nts-controller.service.d.ts.map +0 -1
  511. package/lib/_services/dynamo-nts-controller.service.js.map +0 -1
  512. package/lib/_services/dynamo-nts-data.service.d.ts.map +0 -1
  513. package/lib/_services/dynamo-nts-data.service.js.map +0 -1
  514. package/lib/_services/dynamo-nts-db-service-collection.service.d.ts +0 -9
  515. package/lib/_services/dynamo-nts-db-service-collection.service.d.ts.map +0 -1
  516. package/lib/_services/dynamo-nts-db-service-collection.service.js +0 -11
  517. package/lib/_services/dynamo-nts-db-service-collection.service.js.map +0 -1
  518. package/lib/_services/dynamo-nts-db.service.d.ts.map +0 -1
  519. package/lib/_services/dynamo-nts-db.service.js.map +0 -1
  520. package/lib/_services/dynamo-nts-email-service-collection.service.d.ts +0 -19
  521. package/lib/_services/dynamo-nts-email-service-collection.service.d.ts.map +0 -1
  522. package/lib/_services/dynamo-nts-email-service-collection.service.js +0 -21
  523. package/lib/_services/dynamo-nts-email-service-collection.service.js.map +0 -1
  524. package/lib/_services/dynamo-nts-email.service.d.ts.map +0 -1
  525. package/lib/_services/dynamo-nts-email.service.js.map +0 -1
  526. package/lib/_services/dynamo-nts-global.service.d.ts.map +0 -1
  527. package/lib/_services/dynamo-nts-global.service.js.map +0 -1
  528. package/lib/_services/dynamo-nts-routing-module.service.d.ts.map +0 -1
  529. package/lib/_services/dynamo-nts-routing-module.service.js.map +0 -1
  530. package/lib/_services/dynamo-nts-shared.service.d.ts.map +0 -1
  531. package/lib/_services/dynamo-nts-shared.service.js.map +0 -1
  532. package/lib/_services/dynamo-nts-shared.service.spec.d.ts +0 -1
  533. package/lib/_services/dynamo-nts-shared.service.spec.d.ts.map +0 -1
  534. package/lib/_services/dynamo-nts-shared.service.spec.js +0 -10
  535. package/lib/_services/dynamo-nts-shared.service.spec.js.map +0 -1
  536. package/lib/_services/dynamo-nts-simple-service-collection.service.d.ts +0 -8
  537. package/lib/_services/dynamo-nts-simple-service-collection.service.d.ts.map +0 -1
  538. package/lib/_services/dynamo-nts-simple-service-collection.service.js +0 -11
  539. package/lib/_services/dynamo-nts-simple-service-collection.service.js.map +0 -1
  540. package/lib/_services/dynamo-nts-singleton.service.d.ts.map +0 -1
  541. package/lib/_services/dynamo-nts-singleton.service.js.map +0 -1
  542. package/lib/_services/dynamo-nts-socket-client.service.d.ts.map +0 -1
  543. package/lib/_services/dynamo-nts-socket-client.service.js.map +0 -1
  544. package/lib/_services/dynamo-nts-socket-server-service-collection.service.d.ts +0 -5
  545. package/lib/_services/dynamo-nts-socket-server-service-collection.service.d.ts.map +0 -1
  546. package/lib/_services/dynamo-nts-socket-server-service-collection.service.js +0 -15
  547. package/lib/_services/dynamo-nts-socket-server-service-collection.service.js.map +0 -1
  548. package/lib/_services/dynamo-nts-socket-server.service.d.ts.map +0 -1
  549. package/lib/_services/dynamo-nts-socket-server.service.js.map +0 -1
  550. package/lib/_services/dynamo-nts-socket-service-collection.service.d.ts +0 -5
  551. package/lib/_services/dynamo-nts-socket-service-collection.service.d.ts.map +0 -1
  552. package/lib/_services/dynamo-nts-socket-service-collection.service.js +0 -15
  553. package/lib/_services/dynamo-nts-socket-service-collection.service.js.map +0 -1
  554. package/lib/_services/dynamo-nts-socket.service.d.ts +0 -57
  555. package/lib/_services/dynamo-nts-socket.service.d.ts.map +0 -1
  556. package/lib/_services/dynamo-nts-socket.service.js +0 -188
  557. package/lib/_services/dynamo-nts-socket.service.js.map +0 -1
  558. package/src/_models/control-models/dynamo-nts-socket-server-service-params.model.ts +0 -36
  559. package/src/_services/dynamo-nts-app.server.spec.ts +0 -14
  560. package/src/_services/dynamo-nts-controller-service-collection.service.ts +0 -11
  561. package/src/_services/dynamo-nts-db-service-collection.service.ts +0 -12
  562. package/src/_services/dynamo-nts-shared.service.spec.ts +0 -10
  563. /package/lib/{_interfaces → _models/interfaces}/certification-settings.interface.d.ts +0 -0
  564. /package/lib/{_interfaces → _models/interfaces}/certification-settings.interface.js +0 -0
  565. /package/lib/{_interfaces → _models/interfaces}/global-service-settings.interface.js +0 -0
  566. /package/lib/{_interfaces → _models/interfaces}/port-settings.interface.d.ts +0 -0
  567. /package/lib/{_interfaces → _models/interfaces}/port-settings.interface.js +0 -0
  568. /package/src/_assets/{dynamo-nts-128.png → dynamo-nts-logo-128.png} +0 -0
  569. /package/src/_assets/{dynamo-nts-256.png → dynamo-nts-logo-256.png} +0 -0
  570. /package/src/_assets/{dynamo-nts-512.png → dynamo-nts-logo-512.png} +0 -0
  571. /package/src/_assets/{dynamo-nts-64.png → dynamo-nts-logo-64.png} +0 -0
  572. /package/src/_enums/{dynamo-nts-data-model-type.enum.ts → data-model-type.enum.ts} +0 -0
  573. /package/src/_enums/{dynamo-nts-data-service-function.enum.ts → data-service-function.enum.ts} +0 -0
  574. /package/src/_enums/http/{dynamo-nts-http-call-type.enum.ts → http-call-type.enum.ts} +0 -0
  575. /package/src/_enums/http/{dynamo-nts-http-response-type.enum.ts → http-response-type.enum.ts} +0 -0
  576. /package/src/_enums/http/{dynamo-nts-socket-event-type.enum.ts → socket-event-type.enum.ts} +0 -0
  577. /package/src/_enums/{dynamo-nts-predefined-data-types.enum.ts → predefined-data-types.enum.ts} +0 -0
  578. /package/src/_enums/{dynamo-nts-route-security.enum.ts → route-security.enum.ts} +0 -0
  579. /package/src/_enums/{dynamo-nts-socket-security.enum.ts → socket-security.enum.ts} +0 -0
  580. /package/src/_models/control-models/{dynamo-nts-app-params.model.ts → app-params.control-model.ts} +0 -0
  581. /package/src/_models/control-models/{dynamo-nts-socket-client-service-params.model.ts → socket-client-service-params.control-model.ts} +0 -0
  582. /package/src/_models/control-models/{dynamo-nts-socket-presence.model.ts → socket-presence.control-model.ts} +0 -0
  583. /package/src/_models/interfaces/{dynamo-nts-certification-settings.interface.ts → certification-settings.interface.ts} +0 -0
  584. /package/src/_models/interfaces/{dynamo-nts-port-settings.interface.ts → port-settings.interface.ts} +0 -0
  585. /package/src/_models/interfaces/{dynamo-nts-routing-module-settings.interface.ts → routing-module-settings.interface.ts} +0 -0
  586. /package/src/_services/{dynamo-nts-email.service.ts → email.service.ts} +0 -0
  587. /package/src/_services/{dynamo-nts-shared.service.ts → shared.static-service.ts} +0 -0
  588. /package/src/_services/{dynamo-nts-singleton.service.ts → singleton.service.ts} +0 -0
@@ -1,129 +0,0 @@
1
- import { DynamoNTS_App } from './dynamo-nts-app.server';
2
- import { DynamoNTS_SocketServerService } from './dynamo-nts-socket-server.service';
3
- /**
4
- * This will be the MAIN service of our server project,
5
- * follow the types and type instructions while setting up your project
6
- *
7
- * In this service, there are abstract functions that you will need to implement,
8
- * where you need to set up the main params for your application.
9
- *
10
- * The extended App is containing socket server tools
11
- *
12
- * You need to add socketService definitions to setupRoutingModules
13
- *
14
- * @example
15
- * export class App extends DynamoNTS_AppExtended {
16
- *
17
- * ...
18
- *
19
- * // Setting up App params, and preparing project global settings
20
- * setupAppParams(): void {
21
- * this.params = new DynamoNTS_AppParams({
22
- * name: 'Warbots Server',
23
- * title: warbotsTitleLog,
24
- * version: version,
25
- * dbName: 'warbots',
26
- * });
27
- *
28
- * // dynamoNTS_GlobalSettings.logRequestsContent = false;
29
- * }
30
- *
31
- * ...
32
- *
33
- * // Setting up DBServices
34
- * setGlobalServiceCollection(): void {
35
- * DynamoNTS_GlobalService.setServices({
36
- * authService: AuthService.getInstance(),
37
- * emailServiceCollection: EmailServiceCollectionService.getInstance(),
38
- * dbModels: [
39
- * userModelParams,
40
- * userDataModelParams,
41
- * userOptionsModelParams,
42
- * userStatisticsModelParams,
43
- * userAchievementsModelParams,
44
- * userNotificationsModelParams,
45
- *
46
- * matchStatisticsModelParams,
47
- * matchDataModelParams,
48
-
49
- * usageSessionModelParams,
50
- * customDataModelParams,
51
- * ]
52
- * });
53
- * }
54
- *
55
- * ...
56
- *
57
- * // Setting up Routes
58
- * setupRoutingModules(): void {
59
- * this.httpPort = env.port;
60
-
61
- * this.routingModules = [
62
- * new DynamoNTS_RoutingModule({
63
- * route: '/user',
64
- * controllers: [
65
- * UserController.getInstance(),
66
- * UserDataController.getInstance(),
67
- * UserOptionsController.getInstance(),
68
- * UserStatisticsController.getInstance(),
69
- * UserAchievementsController.getInstance(),
70
- * UserNotificationsController.getInstance()
71
- * ]
72
- * }),
73
- * new DynamoNTS_RoutingModule({
74
- * route: '/match',
75
- * controllers: [
76
- * MatchController.getInstance(),
77
- * MatchDistributionController.getInstance(),
78
- * MatchStatisticsController.getInstance(),
79
- * ]
80
- * }),
81
- * new DynamoNTS_RoutingModule({
82
- * route: '/server',
83
- * controllers: [
84
- * ServerController.getInstance(),
85
- * ]
86
- * }),
87
-
88
- * getTestRoutingModule(),
89
- * getUsageRoutingModule()
90
- * ];
91
- *
92
- * ...
93
- *
94
- * // Setting up Sockets
95
- * this.socketServices = [
96
- * NotificationService.getInstance(),
97
- * ChatService.getInstance(),
98
- * ...
99
- * ];
100
- * }
101
- * }
102
- */
103
- export declare abstract class DynamoNTS_AppExtended extends DynamoNTS_App {
104
- private socketSecurity;
105
- /**
106
- * @example
107
- * // Setting up Sockets
108
- * this.socketServices = [
109
- * NotificationService.getInstance(),
110
- * ChatService.getInstance(),
111
- * ...
112
- * ];
113
- */
114
- protected socketServices: DynamoNTS_SocketServerService<any>[];
115
- constructor();
116
- /**
117
- *
118
- */
119
- private setSocketSecurity;
120
- /**
121
- *
122
- */
123
- private mountSocketServices;
124
- /**
125
- * MISSING Description (TODO)
126
- */
127
- abstract getSocketServices(): DynamoNTS_SocketServerService<any>[];
128
- }
129
- //# sourceMappingURL=dynamo-nts-app-extended.server.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dynamo-nts-app-extended.server.d.ts","sourceRoot":"","sources":["../../src/_services/dynamo-nts-app-extended.server.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAExD,OAAO,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AAGnF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmGG;AACH,8BAAsB,qBAAsB,SAAQ,aAAa;IAE/D,OAAO,CAAC,cAAc,CAA0B;IAEhD;;;;;;;;OAQG;IACH,SAAS,CAAC,cAAc,EAAE,6BAA6B,CAAC,GAAG,CAAC,EAAE,CAAC;;IAyB/D;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAUzB;;OAEG;IACH,OAAO,CAAC,mBAAmB;IA0E3B;;OAEG;IACH,QAAQ,CAAC,iBAAiB,IAAI,6BAA6B,CAAC,GAAG,CAAC,EAAE;CACnE"}
@@ -1,213 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DynamoNTS_AppExtended = void 0;
4
- const tslib_1 = require("tslib");
5
- const SocketIO = tslib_1.__importStar(require("socket.io"));
6
- const Http = tslib_1.__importStar(require("http"));
7
- const fsm_dynamo_1 = require("@futdevpro/fsm-dynamo");
8
- const dynamo_nts_app_server_1 = require("./dynamo-nts-app.server");
9
- const dynamo_nts_route_security_enum_1 = require("../_enums/dynamo-nts-route-security.enum");
10
- const dynamo_nts_socket_security_enum_1 = require("../_enums/dynamo-nts-socket-security.enum");
11
- /**
12
- * This will be the MAIN service of our server project,
13
- * follow the types and type instructions while setting up your project
14
- *
15
- * In this service, there are abstract functions that you will need to implement,
16
- * where you need to set up the main params for your application.
17
- *
18
- * The extended App is containing socket server tools
19
- *
20
- * You need to add socketService definitions to setupRoutingModules
21
- *
22
- * @example
23
- * export class App extends DynamoNTS_AppExtended {
24
- *
25
- * ...
26
- *
27
- * // Setting up App params, and preparing project global settings
28
- * setupAppParams(): void {
29
- * this.params = new DynamoNTS_AppParams({
30
- * name: 'Warbots Server',
31
- * title: warbotsTitleLog,
32
- * version: version,
33
- * dbName: 'warbots',
34
- * });
35
- *
36
- * // dynamoNTS_GlobalSettings.logRequestsContent = false;
37
- * }
38
- *
39
- * ...
40
- *
41
- * // Setting up DBServices
42
- * setGlobalServiceCollection(): void {
43
- * DynamoNTS_GlobalService.setServices({
44
- * authService: AuthService.getInstance(),
45
- * emailServiceCollection: EmailServiceCollectionService.getInstance(),
46
- * dbModels: [
47
- * userModelParams,
48
- * userDataModelParams,
49
- * userOptionsModelParams,
50
- * userStatisticsModelParams,
51
- * userAchievementsModelParams,
52
- * userNotificationsModelParams,
53
- *
54
- * matchStatisticsModelParams,
55
- * matchDataModelParams,
56
-
57
- * usageSessionModelParams,
58
- * customDataModelParams,
59
- * ]
60
- * });
61
- * }
62
- *
63
- * ...
64
- *
65
- * // Setting up Routes
66
- * setupRoutingModules(): void {
67
- * this.httpPort = env.port;
68
-
69
- * this.routingModules = [
70
- * new DynamoNTS_RoutingModule({
71
- * route: '/user',
72
- * controllers: [
73
- * UserController.getInstance(),
74
- * UserDataController.getInstance(),
75
- * UserOptionsController.getInstance(),
76
- * UserStatisticsController.getInstance(),
77
- * UserAchievementsController.getInstance(),
78
- * UserNotificationsController.getInstance()
79
- * ]
80
- * }),
81
- * new DynamoNTS_RoutingModule({
82
- * route: '/match',
83
- * controllers: [
84
- * MatchController.getInstance(),
85
- * MatchDistributionController.getInstance(),
86
- * MatchStatisticsController.getInstance(),
87
- * ]
88
- * }),
89
- * new DynamoNTS_RoutingModule({
90
- * route: '/server',
91
- * controllers: [
92
- * ServerController.getInstance(),
93
- * ]
94
- * }),
95
-
96
- * getTestRoutingModule(),
97
- * getUsageRoutingModule()
98
- * ];
99
- *
100
- * ...
101
- *
102
- * // Setting up Sockets
103
- * this.socketServices = [
104
- * NotificationService.getInstance(),
105
- * ChatService.getInstance(),
106
- * ...
107
- * ];
108
- * }
109
- * }
110
- */
111
- class DynamoNTS_AppExtended extends dynamo_nts_app_server_1.DynamoNTS_App {
112
- constructor() {
113
- var _a;
114
- super();
115
- try {
116
- this.socketServices = this.getSocketServices();
117
- if ((_a = this.socketServices) === null || _a === void 0 ? void 0 : _a.length) {
118
- this.setSocketSecurity();
119
- this.mountSocketServices();
120
- if (this.debugLog)
121
- console.log(`\nAll sockets setted up.... sockets using security: ${this.socketSecurity}`);
122
- }
123
- else {
124
- fsm_dynamo_1.Dynamo_Log.warn('\nNo socketServices setted up while using Extended Application.', '\nYou should use DynamoNTS_App if you don`t need socket services.\n');
125
- }
126
- }
127
- catch (error) {
128
- fsm_dynamo_1.Dynamo_Log.error('\nExtended Application start failed.\n', error, '\n');
129
- }
130
- }
131
- /**
132
- *
133
- */
134
- setSocketSecurity() {
135
- this.socketServices.forEach((service) => {
136
- if (!this.socketSecurity) {
137
- this.socketSecurity = dynamo_nts_route_security_enum_1.DynamoNTS_RouteSecurity[service.security];
138
- }
139
- else if (this.socketSecurity !== dynamo_nts_route_security_enum_1.DynamoNTS_RouteSecurity.both && this.socketSecurity !== dynamo_nts_route_security_enum_1.DynamoNTS_RouteSecurity[service.security]) {
140
- this.socketSecurity = dynamo_nts_route_security_enum_1.DynamoNTS_RouteSecurity.both;
141
- }
142
- });
143
- }
144
- /**
145
- *
146
- */
147
- mountSocketServices() {
148
- let httpSocketServer;
149
- if (this.socketSecurity !== dynamo_nts_route_security_enum_1.DynamoNTS_RouteSecurity.secure) {
150
- if (!this.openExpress) {
151
- this.initOpenExpress();
152
- }
153
- httpSocketServer = Http.createServer(this.openExpress);
154
- }
155
- if (this.socketSecurity !== dynamo_nts_route_security_enum_1.DynamoNTS_RouteSecurity.open) {
156
- if (!this.httpsServer) {
157
- if (this.cert) {
158
- this.initSecureExpress();
159
- }
160
- else {
161
- let errorMsg = `\nYou have secure socket service, but the certification paths are not set!` +
162
- `\nset...` +
163
- `\n cert: {` +
164
- `\n keyPath: FileSystem.PathLike,` +
165
- `\n certPath: FileSystem.PathLike,` +
166
- `\n }` +
167
- `\nin DynamoBEServer - setupRoutingModules() to enable secure routes.`;
168
- errorMsg += '\n\nThe socket services setted to use secure server:';
169
- this.socketServices.forEach((service) => {
170
- if (service.security != dynamo_nts_socket_security_enum_1.DynamoNTS_SocketSecurity.open) {
171
- errorMsg += `\n ${service.name} (port: ${service.port})`;
172
- }
173
- });
174
- fsm_dynamo_1.Dynamo_Log.error(errorMsg);
175
- let error = new Error('Secure routes cannot be established!');
176
- let errorStack = error.stack.split('\n');
177
- errorStack.splice(1, 2);
178
- error.stack = errorStack.join('\n');
179
- throw error;
180
- }
181
- }
182
- }
183
- this.socketServices.forEach((service) => {
184
- const existingPorts = this.socketServices.filter((mod) => mod.port === service.port);
185
- if (1 < existingPorts.length || this.ports.httpPort === service.port || this.ports.httpsPort === service.port) {
186
- let error = new Error(`PORT DUPLICATION: ${service.port}`);
187
- let errorStack = error.stack.split('\n');
188
- errorStack.splice(1, 4);
189
- error.stack = errorStack.join('\n');
190
- throw error;
191
- }
192
- if (service.security === dynamo_nts_socket_security_enum_1.DynamoNTS_SocketSecurity.open) {
193
- if (this.debugLog)
194
- console.log(`\nsocket setup (open): ${service.name}:${service.port}`);
195
- service.setupSocketServer(new SocketIO.Server(httpSocketServer));
196
- }
197
- else if (service.security === dynamo_nts_socket_security_enum_1.DynamoNTS_SocketSecurity.secure) {
198
- if (this.debugLog)
199
- console.log(`\nsocket setup (secure): ${service.name}:${service.port}`);
200
- service.setupSocketServer(new SocketIO.Server(this.httpsServer));
201
- }
202
- else {
203
- let error = new Error(`INVALID Socket Service security: ${service.security} on ${service.name}`);
204
- let errorStack = error.stack.split('\n');
205
- errorStack.splice(1, 4);
206
- error.stack = errorStack.join('\n');
207
- throw error;
208
- }
209
- });
210
- }
211
- }
212
- exports.DynamoNTS_AppExtended = DynamoNTS_AppExtended;
213
- //# sourceMappingURL=dynamo-nts-app-extended.server.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dynamo-nts-app-extended.server.js","sourceRoot":"","sources":["../../src/_services/dynamo-nts-app-extended.server.ts"],"names":[],"mappings":"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"}
@@ -1,275 +0,0 @@
1
- /// <reference types="node" />
2
- import Mongoose = require("mongoose");
3
- import Express = require("express");
4
- import * as Https from 'https';
5
- import { DynamoNTS_SingletonService } from './dynamo-nts-singleton.service';
6
- import { DynamoNTS_RouteSecurity } from '../_enums/dynamo-nts-route-security.enum';
7
- import { DynamoNTS_RoutingModule } from './dynamo-nts-routing-module.service';
8
- import { DynamoNTS_PortSettings } from '../_models/interfaces/dynamo-nts-port-settings.interface';
9
- import { DynamoNTS_CertificationSettings } from '../_models/interfaces/dynamo-nts-certification-settings.interface';
10
- import { DynamoNTS_GlobalServiceSettings } from '../_models/interfaces/dynamo-nts-global-service-settings.interface';
11
- import { DynamoNTS_AppParams } from '../_models/control-models/dynamo-nts-app-params.model';
12
- /**
13
- * This will be the MAIN service of our server project,
14
- * follow the types and type instructions while setting up your project
15
- *
16
- * In this service, there are abstract functions that you will need to implement,
17
- * where you need to set up the main params for your application.
18
- *
19
- * (after the example, you can find the list of services you can/should setup)
20
- *
21
- * @example
22
- * export class App extends DynamoNTS_AppExtended {
23
- *
24
- * ...
25
- *
26
- * // Setting up App params, and preparing project global settings
27
- * setupAppParams(): void {
28
- * this.params = new DynamoNTS_AppParams({
29
- * name: 'Warbots Server',
30
- * title: warbotsTitleLog,
31
- * version: version,
32
- * dbName: 'warbots',
33
- * });
34
- *
35
- * // dynamoNTS_GlobalSettings.logRequestsContent = false;
36
- * }
37
- *
38
- * ...
39
- *
40
- * // Setting up DBServices
41
- * setGlobalServiceCollection(): void {
42
- * DynamoNTS_GlobalService.setServices({
43
- * authService: AuthService.getInstance(),
44
- * emailServiceCollection: EmailServiceCollectionService.getInstance(),
45
- * dbModels: [
46
- * userModelParams,
47
- * userDataModelParams,
48
- * userOptionsModelParams,
49
- * userStatisticsModelParams,
50
- * userAchievementsModelParams,
51
- * userNotificationsModelParams,
52
- *
53
- * matchStatisticsModelParams,
54
- * matchDataModelParams,
55
-
56
- * usageSessionModelParams,
57
- * customDataModelParams,
58
- * ]
59
- * });
60
- * }
61
- *
62
- * ...
63
- *
64
- * // Setting up Routes
65
- * setupRoutingModules(): void {
66
- * this.httpPort = env.port;
67
-
68
- * this.routingModules = [
69
- * new DynamoNTS_RoutingModule({
70
- * route: '/user',
71
- * controllers: [
72
- * UserController.getInstance(),
73
- * UserDataController.getInstance(),
74
- * UserOptionsController.getInstance(),
75
- * UserStatisticsController.getInstance(),
76
- * UserAchievementsController.getInstance(),
77
- * UserNotificationsController.getInstance()
78
- * ]
79
- * }),
80
- * new DynamoNTS_RoutingModule({
81
- * route: '/match',
82
- * controllers: [
83
- * MatchController.getInstance(),
84
- * MatchDistributionController.getInstance(),
85
- * MatchStatisticsController.getInstance(),
86
- * ]
87
- * }),
88
- * new DynamoNTS_RoutingModule({
89
- * route: '/server',
90
- * controllers: [
91
- * ServerController.getInstance(),
92
- * ]
93
- * }),
94
-
95
- * getTestRoutingModule(),
96
- * getUsageRoutingModule()
97
- * ];
98
- * }
99
- * }
100
- *
101
- * //
102
- * // The Services available
103
- * //
104
- * // Authentication Service
105
- * // A commonly used basic service,
106
- * // which is necessary fur certain functions (such as registering call issuers)
107
- * //
108
- * // This will handle Authentication Token checking/refreshing, checking issuer's identifier and routeParams,
109
- * // handling JWT Token, or maybe with OAuth2 or other commonly used security procedures
110
- * //
111
- * // You can create one with this Dynamo Object:
112
- * //
113
- *
114
- * @example
115
- * // follow the instructions on the abstract class (DynamoNTS_AuthService)
116
- * export class AuthService extends DynamoNTS_AuthService {}
117
- *
118
- *
119
- *
120
- * //
121
- */
122
- export declare abstract class DynamoNTS_App extends DynamoNTS_SingletonService {
123
- private _params;
124
- protected get params(): DynamoNTS_AppParams;
125
- protected mongoose: typeof Mongoose;
126
- private _security;
127
- protected get security(): DynamoNTS_RouteSecurity;
128
- protected _ports: DynamoNTS_PortSettings;
129
- protected get ports(): DynamoNTS_PortSettings;
130
- private _cert?;
131
- protected get cert(): DynamoNTS_CertificationSettings;
132
- protected openExpress: Express.Application;
133
- private secureExpress;
134
- protected httpsServer: Https.Server;
135
- private _routingModules;
136
- private _rootServices;
137
- /**
138
- * setting this value to true, enables this service debug logs
139
- */
140
- protected debugLog: boolean;
141
- constructor();
142
- /**
143
- *
144
- */
145
- private startDB;
146
- /**
147
- *
148
- */
149
- private initExpresses;
150
- /**
151
- *
152
- */
153
- protected initOpenExpress(): void;
154
- /**
155
- *
156
- */
157
- protected initSecureExpress(): void;
158
- /**
159
- *
160
- */
161
- private startExpresses;
162
- /**
163
- *
164
- */
165
- private mountSecureRoutes;
166
- /**
167
- *
168
- */
169
- private mountOpenRoutes;
170
- /**
171
- *
172
- */
173
- private setSecurity;
174
- /**
175
- * #OUTDATED
176
- * Setting up App params, and preparing project global settings
177
- * You must setup app params in this function like this:
178
- *
179
- * @example
180
- * setupAppParams(): void {
181
- * this.params = new DynamoBEAppParams({
182
- * name: 'Sample Server',
183
- * title: 'A BIG nice header that will be logged on start',
184
- * version: version,
185
- * dbName: 'sampleapp',
186
- * });
187
- *
188
- * DBE_Global_S.setGlobalSettings({
189
- * defaultRouteSecurity: DynamoBERouteSecurity.secure,
190
- * logSetup: true,
191
- * });
192
- * }
193
- */
194
- abstract getAppParams(): DynamoNTS_AppParams;
195
- /**
196
- * MISSING Description (TODO)
197
- */
198
- abstract overrideDynamoNTSGlobalSettings?(): void;
199
- /**
200
- * #OUTDATED
201
- * Setting up DBServices
202
- * You must setup globalServiceCollection and dbServices in this function
203
- *
204
- * @example
205
- * setGlobalServiceCollection(): void {
206
- * DBE_Global_S.setServices({
207
- * authService: AuthService.getInstance(),
208
- * emailServiceCollection: EmailServiceCollectionService.getInstance(),
209
- * dbModels: [
210
- * accountModelParams,
211
- * projectModelParams,
212
- * ...
213
- * ]
214
- * });
215
- * }
216
- */
217
- abstract getGlobalServiceCollection(): DynamoNTS_GlobalServiceSettings;
218
- /**
219
- * MISSING Description (TODO)
220
- */
221
- abstract getPortSettings(): DynamoNTS_PortSettings;
222
- /**
223
- * #OUTDATED
224
- * You must setup endpoints and required services in this function
225
- *
226
- * @example
227
- * // Setting up Routes
228
- * setupRoutingModules(): void {
229
- * this.httpPort = env.httpPort;
230
- * this.httpsPort = env.httpsPort;
231
- *
232
- * this.cert = {
233
- * keyPath: Path.join(__dirname, './_assets/cert/ucc.key'),
234
- * certPath: Path.join(__dirname, './_assets/cert/ucc.crt'),
235
- * };
236
- *
237
- * this.routingModules = [
238
- * new DynamoBERountingModule({
239
- * route: '/api/account',
240
- * controllers: [
241
- * AccountController.getInstance(),
242
- * PersonalInformationController.getInstance(),
243
- * ...
244
- * ]
245
- * }),
246
- * new DynamoBERountingModule({
247
- * route: '/api/project',
248
- * controllers: [
249
- * ProjectController.getInstance(),
250
- * ProjectExtensionController.getInstance(),
251
- * ]
252
- * }),
253
- * ...
254
- * ];
255
- * }
256
- */
257
- abstract getRoutingModules(): DynamoNTS_RoutingModule[];
258
- /**
259
- * MISSING Description (TODO)
260
- */
261
- getRootServices?(): DynamoNTS_SingletonService[];
262
- /**
263
- * MISSING Description (TODO)
264
- */
265
- getCertificationSettings?(): DynamoNTS_CertificationSettings;
266
- /**
267
- * MISSING Description (TODO)
268
- */
269
- createEntries?(): void;
270
- /**
271
- * MISSING Description (TODO)
272
- */
273
- postProcess?(): void;
274
- }
275
- //# sourceMappingURL=dynamo-nts-app.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dynamo-nts-app.d.ts","sourceRoot":"","sources":["../../src/_services/dynamo-nts-app.ts"],"names":[],"mappings":";AACA,OAAO,QAAQ,GAAG,QAAQ,UAAU,CAAC,CAAC;AACtC,OAAO,OAAO,GAAG,QAAQ,SAAS,CAAC,CAAC;AACpC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,EAAE,0BAA0B,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,EAAE,uBAAuB,EAAE,MAAM,0CAA0C,CAAC;AACnF,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAE9E,OAAO,EAAE,sBAAsB,EAAE,MAAM,0DAA0D,CAAC;AAClG,OAAO,EAAE,+BAA+B,EAAE,MAAM,mEAAmE,CAAC;AACpH,OAAO,EAAE,+BAA+B,EAAE,MAAM,oEAAoE,CAAC;AAErH,OAAO,EAAE,mBAAmB,EAAE,MAAM,uDAAuD,CAAC;AAG5F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6GG;AACH,8BAAsB,aAAc,SAAQ,0BAA0B;IAEpE,OAAO,CAAC,OAAO,CAAsB;IACrC,SAAS,KAAK,MAAM,IAAI,mBAAmB,CAAyB;IAEpE,SAAS,CAAC,QAAQ,kBAAY;IAE9B,OAAO,CAAC,SAAS,CAA0B;IAC3C,SAAS,KAAK,QAAQ,IAAI,uBAAuB,CAA2B;IAE5E,SAAS,CAAC,MAAM,EAAE,sBAAsB,CAAC;IACzC,SAAS,KAAK,KAAK,IAAI,sBAAsB,CAAwB;IAErE,OAAO,CAAC,KAAK,CAAC,CAAkC;IAChD,SAAS,KAAK,IAAI,IAAI,+BAA+B,CAAuB;IAE5E,SAAS,CAAC,WAAW,EAAE,OAAO,CAAC,WAAW,CAAC;IAC3C,OAAO,CAAC,aAAa,CAAsB;IAC3C,SAAS,CAAC,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC;IAEpC,OAAO,CAAC,eAAe,CAA4B;IAGnD,OAAO,CAAC,aAAa,CAA+B;IAEpD;;OAEG;IACH,SAAS,CAAC,QAAQ,EAAE,OAAO,CAAC;;IAiE5B;;OAEG;IACH,OAAO,CAAC,OAAO;IAkBf;;OAEG;IACH,OAAO,CAAC,aAAa;IAsErB;;OAEG;IACH,SAAS,CAAC,eAAe,IAAI,IAAI;IAMjC;;OAEG;IACF,SAAS,CAAC,iBAAiB,IAAI,IAAI;IAYpC;;OAEG;YACW,cAAc;IAgC5B;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAwBzB;;OAEG;IACH,OAAO,CAAC,eAAe;IAwBvB;;OAEG;IACH,OAAO,CAAC,WAAW;IAUnB;;;;;;;;;;;;;;;;;;;OAmBG;IACH,QAAQ,CAAC,YAAY,IAAI,mBAAmB;IAE5C;;OAEG;IACH,QAAQ,CAAC,+BAA+B,CAAC,IAAI,IAAI;IAEjD;;;;;;;;;;;;;;;;;OAiBG;IACH,QAAQ,CAAC,0BAA0B,IAAI,+BAA+B;IAEtE;;OAEG;IACH,QAAQ,CAAC,eAAe,IAAI,sBAAsB;IAElD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAkCG;IACH,QAAQ,CAAC,iBAAiB,IAAI,uBAAuB,EAAE;IAEvD;;OAEG;IACH,eAAe,CAAC,IAAI,0BAA0B,EAAE;IAEhD;;OAEG;IACH,wBAAwB,CAAC,IAAI,+BAA+B;IAE5D;;OAEG;IACH,aAAa,CAAC,IAAI,IAAI;IAEtB;;OAEG;IACH,WAAW,CAAC,IAAI,IAAI;CACrB"}