@futdevpro/nts-dynamo 1.5.40 → 1.5.45

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 (95) hide show
  1. package/futdevpro-nts-dynamo-01.05.41.tgz +0 -0
  2. package/futdevpro-nts-dynamo-01.05.42.tgz +0 -0
  3. package/futdevpro-nts-dynamo-01.05.43.tgz +0 -0
  4. package/futdevpro-nts-dynamo-01.05.44.tgz +0 -0
  5. package/futdevpro-nts-dynamo-01.05.45.tgz +0 -0
  6. package/lib/_enums/http/socket-event.enum.d.ts +2 -0
  7. package/lib/_enums/http/socket-event.enum.d.ts.map +1 -1
  8. package/lib/_enums/http/socket-event.enum.js +2 -0
  9. package/lib/_enums/http/socket-event.enum.js.map +1 -1
  10. package/lib/_models/dynamo-nts-socket-dictionary.d.ts +16 -0
  11. package/lib/_models/dynamo-nts-socket-dictionary.d.ts.map +1 -0
  12. package/lib/_models/dynamo-nts-socket-dictionary.js +28 -0
  13. package/lib/_models/dynamo-nts-socket-dictionary.js.map +1 -0
  14. package/lib/_models/dynamo-nts-socket-event-params.d.ts +2 -0
  15. package/lib/_models/dynamo-nts-socket-event-params.d.ts.map +1 -1
  16. package/lib/_models/dynamo-nts-socket-event-params.js +6 -5
  17. package/lib/_models/dynamo-nts-socket-event-params.js.map +1 -1
  18. package/lib/_models/index.d.ts +1 -0
  19. package/lib/_models/index.d.ts.map +1 -1
  20. package/lib/_models/index.js +1 -0
  21. package/lib/_models/index.js.map +1 -1
  22. package/lib/_modules/app-extended.index.d.ts +1 -0
  23. package/lib/_modules/app-extended.index.d.ts.map +1 -1
  24. package/lib/_modules/app-extended.index.js +1 -0
  25. package/lib/_modules/app-extended.index.js.map +1 -1
  26. package/lib/_modules/usage/usage.service.d.ts.map +1 -1
  27. package/lib/_modules/usage/usage.service.js +8 -4
  28. package/lib/_modules/usage/usage.service.js.map +1 -1
  29. package/lib/_services/dynamo-nts-api.service.d.ts.map +1 -1
  30. package/lib/_services/dynamo-nts-api.service.js +5 -4
  31. package/lib/_services/dynamo-nts-api.service.js.map +1 -1
  32. package/lib/_services/dynamo-nts-app-extended.d.ts +1 -1
  33. package/lib/_services/dynamo-nts-app-extended.d.ts.map +1 -1
  34. package/lib/_services/dynamo-nts-app-extended.js +2 -4
  35. package/lib/_services/dynamo-nts-app-extended.js.map +1 -1
  36. package/lib/_services/dynamo-nts-app.js +4 -1
  37. package/lib/_services/dynamo-nts-app.js.map +1 -1
  38. package/lib/_services/dynamo-nts-auth.service.d.ts.map +1 -1
  39. package/lib/_services/dynamo-nts-auth.service.js +4 -2
  40. package/lib/_services/dynamo-nts-auth.service.js.map +1 -1
  41. package/lib/_services/dynamo-nts-controller.service.d.ts +37 -0
  42. package/lib/_services/dynamo-nts-controller.service.d.ts.map +1 -1
  43. package/lib/_services/dynamo-nts-controller.service.js +37 -0
  44. package/lib/_services/dynamo-nts-controller.service.js.map +1 -1
  45. package/lib/_services/dynamo-nts-data.service.d.ts +19 -0
  46. package/lib/_services/dynamo-nts-data.service.d.ts.map +1 -1
  47. package/lib/_services/dynamo-nts-data.service.js +70 -31
  48. package/lib/_services/dynamo-nts-data.service.js.map +1 -1
  49. package/lib/_services/dynamo-nts-db.service.d.ts.map +1 -1
  50. package/lib/_services/dynamo-nts-db.service.js +72 -48
  51. package/lib/_services/dynamo-nts-db.service.js.map +1 -1
  52. package/lib/_services/dynamo-nts-email.service.js +4 -4
  53. package/lib/_services/dynamo-nts-email.service.js.map +1 -1
  54. package/lib/_services/dynamo-nts-global.service.d.ts +2 -2
  55. package/lib/_services/dynamo-nts-global.service.d.ts.map +1 -1
  56. package/lib/_services/dynamo-nts-global.service.js.map +1 -1
  57. package/lib/_services/dynamo-nts-routing-module.service.js +3 -3
  58. package/lib/_services/dynamo-nts-routing-module.service.js.map +1 -1
  59. package/lib/_services/dynamo-nts-shared.service.d.ts +6 -0
  60. package/lib/_services/dynamo-nts-shared.service.d.ts.map +1 -1
  61. package/lib/_services/dynamo-nts-shared.service.js +8 -0
  62. package/lib/_services/dynamo-nts-shared.service.js.map +1 -1
  63. package/lib/_services/dynamo-nts-socket-service-collection.service.d.ts +1 -1
  64. package/lib/_services/dynamo-nts-socket-service-collection.service.d.ts.map +1 -1
  65. package/lib/_services/dynamo-nts-socket.service.d.ts +6 -9
  66. package/lib/_services/dynamo-nts-socket.service.d.ts.map +1 -1
  67. package/lib/_services/dynamo-nts-socket.service.js +20 -19
  68. package/lib/_services/dynamo-nts-socket.service.js.map +1 -1
  69. package/lib/_services/dynamobe-api.service.js +2 -2
  70. package/lib/_services/dynamobe-auth.service.js +2 -2
  71. package/lib/_services/dynamobe-data.service.js +15 -15
  72. package/lib/_services/dynamobe-db.service.js +24 -24
  73. package/lib/_services/dynamobe-email.service.js +4 -4
  74. package/lib/_services/dynamobe-routing-module.service.js +3 -3
  75. package/lib/tsconfig.tsbuildinfo +77 -52
  76. package/package.json +12 -9
  77. package/src/_enums/http/socket-event.enum.ts +2 -0
  78. package/src/_models/dynamo-nts-socket-dictionary.ts +36 -0
  79. package/src/_models/dynamo-nts-socket-event-params.ts +8 -5
  80. package/src/_models/index.ts +1 -0
  81. package/src/_modules/app-extended.index.ts +1 -0
  82. package/src/_modules/usage/usage.service.ts +8 -4
  83. package/src/_services/dynamo-nts-api.service.ts +7 -4
  84. package/src/_services/dynamo-nts-app-extended.ts +9 -9
  85. package/src/_services/dynamo-nts-app.ts +2 -2
  86. package/src/_services/dynamo-nts-auth.service.ts +6 -2
  87. package/src/_services/dynamo-nts-controller.service.ts +37 -0
  88. package/src/_services/dynamo-nts-data.service.ts +70 -31
  89. package/src/_services/dynamo-nts-db.service.ts +72 -48
  90. package/src/_services/dynamo-nts-email.service.ts +4 -4
  91. package/src/_services/dynamo-nts-global.service.ts +9 -2
  92. package/src/_services/dynamo-nts-routing-module.service.ts +3 -3
  93. package/src/_services/dynamo-nts-shared.service.ts +9 -0
  94. package/src/_services/dynamo-nts-socket-service-collection.service.ts +1 -1
  95. package/src/_services/dynamo-nts-socket.service.ts +27 -27
@@ -242,8 +242,8 @@
242
242
  "affectsGlobalScope": false
243
243
  },
244
244
  "../src/_enums/http/socket-event.enum.ts": {
245
- "version": "9cfe45a351994336890c6f5919a954f88158094694c0792b1eaad362ada03a1e",
246
- "signature": "cb5180b0ee2c58819e6de9564f6e1c78c01697e86b29623532a5fdd821c8ef36",
245
+ "version": "4afbca5aad1476d29d10122e8219659c6ffd423a17cffcb8ce486be096f5a723",
246
+ "signature": "4bc0e9a00ab5336080cc91c1a558aa4c34df4c39fd76a301d7e63253e9261a57",
247
247
  "affectsGlobalScope": false
248
248
  },
249
249
  "../src/_enums/index.ts": {
@@ -602,8 +602,8 @@
602
602
  "affectsGlobalScope": false
603
603
  },
604
604
  "../src/_services/dynamo-nts-shared.service.ts": {
605
- "version": "17d3b8c548de4d7b42a1fc4f5f05a37beca0bd9092f978689ee1a78bc0dd5f04",
606
- "signature": "34dc2c1d9b9a8b239b6095dc30b99e631fea391f7b7375d75a1ccecb3cf45fd0",
605
+ "version": "1286f106091e2663882c0f5279f0f1c8cfc36e757d478fb5975885abcd01af5a",
606
+ "signature": "984d5b33ec9ed971949add021f1def894efde5533e3e9c6d09a4a422e368b6f1",
607
607
  "affectsGlobalScope": false
608
608
  },
609
609
  "../node_modules/@futdevpro/fsm-dynamo/lib/_collections/index.d.ts": {
@@ -697,7 +697,7 @@
697
697
  "affectsGlobalScope": false
698
698
  },
699
699
  "../src/_services/dynamo-nts-auth.service.ts": {
700
- "version": "46bc6e253f348c619e186f7029b92d0e0d0bceb2f1a7cbb5006a6c395d8ee36c",
700
+ "version": "bdeb86639bfd892ae0e665f6cd465c7e9284a820c9486dc9667eece93c515ae2",
701
701
  "signature": "1f30f44f81047cb04ba11d365efbed1a34faae72f4b02dd2f3618063ab26bff6",
702
702
  "affectsGlobalScope": false
703
703
  },
@@ -717,7 +717,7 @@
717
717
  "affectsGlobalScope": false
718
718
  },
719
719
  "../src/_services/dynamo-nts-db.service.ts": {
720
- "version": "a3efd5e3503bce58400f7ed8054440c1f94c07de2159f453bcb5d723b53dd13e",
720
+ "version": "63ca229da803d92e7c0e7b5b6537d599ea618adf7db48c30f1c676793f87f709",
721
721
  "signature": "022abe3ee7bf7a56401a171e7f9d30e46f3348c91a84cde582c64cd8160f2e53",
722
722
  "affectsGlobalScope": false
723
723
  },
@@ -797,7 +797,7 @@
797
797
  "affectsGlobalScope": false
798
798
  },
799
799
  "../src/_services/dynamo-nts-email.service.ts": {
800
- "version": "78534d4cf1262e879c5f356da3da75dc51a23106b39af8ad8b8aaf4d8fdb3431",
800
+ "version": "af11160cc64bfb6385b624521fcd709844be60c48ed80ef48fb8b16a71735cd9",
801
801
  "signature": "5f10ac7ae69efa651edb72d642477f6dc0f570688db4b4cecb57176be6702245",
802
802
  "affectsGlobalScope": false
803
803
  },
@@ -922,28 +922,8 @@
922
922
  "affectsGlobalScope": false
923
923
  },
924
924
  "../src/_models/dynamo-nts-socket-event-params.ts": {
925
- "version": "75c455048cbffd820cb46b8625e6f0325ad4f9a58ec2a99be8534ccb65fdb798",
926
- "signature": "1a66eada99ca632394f2e845305a5a9982ddd8c93a78f99f66b13b3a35b1e6ff",
927
- "affectsGlobalScope": false
928
- },
929
- "../src/_services/dynamo-nts-socket.service.ts": {
930
- "version": "cac99dd4c31275a4b8402054d840b09b8b610adfee2031ea68b18d03387cf459",
931
- "signature": "50a33070ab4aaf5fb52b22c39b70ae815d7fa17fae880427aaaa281bf999c217",
932
- "affectsGlobalScope": false
933
- },
934
- "../src/_services/dynamo-nts-socket-service-collection.service.ts": {
935
- "version": "1c3c52c17b0304a0a06a6d64efee208fd8f43e6d5ad2c788cda6403aeab810e0",
936
- "signature": "f65f8eb26cac077402b79cf3e68fc91413aeeac6465d59c58166c38ff806845c",
937
- "affectsGlobalScope": false
938
- },
939
- "../src/_services/dynamo-nts-global.service.ts": {
940
- "version": "6f07022b7b350bbf5a7ab96344219d115b81056c42eff584e3082c403a92676d",
941
- "signature": "3fe2e5aabafb2f15e19f161f3566c19b3257145195249a5c8e2e51d589e084b6",
942
- "affectsGlobalScope": false
943
- },
944
- "../src/_models/dynamo-nts-endpoint-params.ts": {
945
- "version": "5ba736b66493cd7ce7c2fd3e84b80935a4a34a9df3ed00ec1b8a5544e4281611",
946
- "signature": "fbb87299b03d34ddad9bacdacfa438d2eeaad78124a7a79adc14e8295e9c42ae",
925
+ "version": "42219cbffe02dd2f87d63dc38f503c98f382bc4bc7228b920134286b3b3bd684",
926
+ "signature": "f17d56f4b6cdf1b79ce36ca819f3e8ff8e5b276df1ef4f3d484e45218d6b2a55",
947
927
  "affectsGlobalScope": false
948
928
  },
949
929
  "../node_modules/axios/index.d.ts": {
@@ -952,33 +932,38 @@
952
932
  "affectsGlobalScope": false
953
933
  },
954
934
  "../src/_services/dynamo-nts-api.service.ts": {
955
- "version": "9706eec6a0348f363c59902a9cc37ec571504821bcd3a9371ba5e089a412755f",
935
+ "version": "72627d8725efc124975bc21259ffb950764e11badb149af3cba6be9d8237ee17",
956
936
  "signature": "84395ddfc185bcc1bed6012cc8e21ccf993ce16101acd3527c09133a96aa40fe",
957
937
  "affectsGlobalScope": false
958
938
  },
959
939
  "../src/_services/dynamo-nts-controller.service.ts": {
960
- "version": "982506c3601840e8cec13ad4c13aedda2ef38847453ec0269255d92ca646ad0b",
961
- "signature": "8ab98e885fb112f3e77494a879c55576235aa5d90a725df76f53e8d33c185095",
940
+ "version": "f6599b3b46fe2c5d6c1de16e22e854dc8cc39dfa92de9fb17aa4c1ba79111e67",
941
+ "signature": "81491c97db941db17154b5e6f22714a64fbf5ae954fc66dcb38b3254207314d5",
942
+ "affectsGlobalScope": false
943
+ },
944
+ "../src/_models/dynamo-nts-routing-module-settings.ts": {
945
+ "version": "c8dad478f1234ffc672ae244f8bfc01e9afe12bbb53a3c1ece417d7568565370",
946
+ "signature": "27b03d2e7459022c9bf22b5aae1f7d6db9a9ca1dfc75d07450a682088336fad2",
962
947
  "affectsGlobalScope": false
963
948
  },
964
949
  "../src/_services/dynamo-nts-routing-module.service.ts": {
965
- "version": "e6f1e4920394921c808d902d5c51d869b1ed10f0877d519411247a342d91745d",
950
+ "version": "e14c10a25ad46a1f0cf6ffd88409e25319c6e41dfa077644ef219707e63a55b1",
966
951
  "signature": "3f4d1bf6c6c5f1b68e538c341bb8c60cbf5d8898bc606ce451d142b88bce8814",
967
952
  "affectsGlobalScope": false
968
953
  },
969
954
  "../src/_services/dynamo-nts-app.ts": {
970
- "version": "77a85468233a02806956fffdeeafe033f38104a2062e3ebd5a6d5a61f7a37c17",
955
+ "version": "c13bdc25fbc958dd6d1049dbd0a643fbebb7fa4aca2074cfdc09232d3c6fd353",
971
956
  "signature": "7f9799d5bdcbd2a4c027eb7826cc268bfefe990d1d6566e54643a0a704f2d813",
972
957
  "affectsGlobalScope": false
973
958
  },
974
959
  "../src/_services/dynamo-nts-app-extended.ts": {
975
- "version": "f3cf32611746e52ae76ebb32afd22311a23cd27471a454128e40d6e83ae7586c",
976
- "signature": "04af935b343aac3e643a869a2f47d869b02e8ed43168832792e0b73890ef1063",
960
+ "version": "9359f5f9e3245858460c0d1998f0945690758cf931bbf31e6c40ffc886884a82",
961
+ "signature": "fe0a872b1bc50bfbb06dde1a39832bf0eaa948d930faae507e73341de598b37f",
977
962
  "affectsGlobalScope": false
978
963
  },
979
964
  "../src/_services/dynamo-nts-data.service.ts": {
980
- "version": "b801cf520a750bb7c603cb418dbde004fc08106168239ede62e9a8eb022fa5e3",
981
- "signature": "f25a19207e0d25bffca4c6a67f65e8485ac5dc1be269aeecbf22eba4a7839535",
965
+ "version": "956759791dedb5522e22b56d16199061bea2153a4847d983888c4214aca8529c",
966
+ "signature": "ff149145b740339f62567fb5bf2a611e1b1f6f4ed4db02891c657a852dafba0e",
982
967
  "affectsGlobalScope": false
983
968
  },
984
969
  "../src/_services/index.ts": {
@@ -986,19 +971,39 @@
986
971
  "signature": "6be1c8dbdbb0d551f53e4becc0aad44eeb1a029f6ddb33c04d2e37f703f79069",
987
972
  "affectsGlobalScope": false
988
973
  },
989
- "../src/_models/dynamo-nts-routing-module-settings.ts": {
990
- "version": "c8dad478f1234ffc672ae244f8bfc01e9afe12bbb53a3c1ece417d7568565370",
991
- "signature": "27b03d2e7459022c9bf22b5aae1f7d6db9a9ca1dfc75d07450a682088336fad2",
992
- "affectsGlobalScope": false
993
- },
994
974
  "../src/_models/dynamo-nts-socket-service-params.ts": {
995
975
  "version": "3be5464df66664cd8d28ea3d1faba12158c9d957925cb780c85ff4e544f4c457",
996
976
  "signature": "36f5ec4937cb5152a84d6afb828e92909b917362cf0f8fe8f1312d7ab6461652",
997
977
  "affectsGlobalScope": false
998
978
  },
979
+ "../src/_models/dynamo-nts-socket-dictionary.ts": {
980
+ "version": "3d4d37e9cee04e4c9384e32332b047a102cb7ccf39f482b40e70ea4072b204b9",
981
+ "signature": "52300e7ba4dc1f49ff0af5062e78f8f7a8e263e90851157444515aec14e98c3a",
982
+ "affectsGlobalScope": false
983
+ },
984
+ "../src/_services/dynamo-nts-socket.service.ts": {
985
+ "version": "a70cb51b59fabbb15c071c037b6dafa4659b42a33393403ccd90f801e89e6d92",
986
+ "signature": "1d8465c6a2706af224f4ec1cc8270a1519c60903e9aea1301374c1e33ddbbcf6",
987
+ "affectsGlobalScope": false
988
+ },
989
+ "../src/_services/dynamo-nts-socket-service-collection.service.ts": {
990
+ "version": "997f469bd72f4f03126702da08f301a9f55d0aa198444f2a9df7c513f3611286",
991
+ "signature": "a5ce9c5fdf4d4bc847e798e979fbaf5108725cbac6f61570658ac05b158beba0",
992
+ "affectsGlobalScope": false
993
+ },
994
+ "../src/_services/dynamo-nts-global.service.ts": {
995
+ "version": "927ae16d152def6df046dad8cfef9006783d183c37467eeef34905701dbad128",
996
+ "signature": "49571ff7d01ce5905759e1919e0ec66dd358a35f9a5d713109476af271f307b3",
997
+ "affectsGlobalScope": false
998
+ },
999
+ "../src/_models/dynamo-nts-endpoint-params.ts": {
1000
+ "version": "5ba736b66493cd7ce7c2fd3e84b80935a4a34a9df3ed00ec1b8a5544e4281611",
1001
+ "signature": "fbb87299b03d34ddad9bacdacfa438d2eeaad78124a7a79adc14e8295e9c42ae",
1002
+ "affectsGlobalScope": false
1003
+ },
999
1004
  "../src/_models/index.ts": {
1000
- "version": "c220ae9795d2136ba0fce39a4f12034e09e1a0f7d1deba4480f43582948f3c6f",
1001
- "signature": "c4c57a1eb4f400216cbee95f1d222d52894b58bbfc91bd60e86fb9e8df5a674f",
1005
+ "version": "796e6aa9cf141f9cc6e5781a261b97a95fca0bab39c44cd3e0e55edabddfad8b",
1006
+ "signature": "30abe6a55b46fd55548492b87ae9d89f69991ea8cea2d7c20d74746b6c429040",
1002
1007
  "affectsGlobalScope": false
1003
1008
  },
1004
1009
  "../node_modules/@futdevpro/fsm-dynamo/lib/_modules/test-module.index.d.ts": {
@@ -1032,7 +1037,7 @@
1032
1037
  "affectsGlobalScope": false
1033
1038
  },
1034
1039
  "../src/_modules/usage/usage.service.ts": {
1035
- "version": "901b9684e70f702556ad6c39cb99f25d04ce2c1bb799cd1de4184d64345d0073",
1040
+ "version": "e5cccee3449c7733f67cfc8ec0ead15aafc8acb9d8943f6bb78828384b425308",
1036
1041
  "signature": "8a6db29b2f1ad1e23ad8feb524d9cb18f30763a78c8dcc747a57792ce3db8d13",
1037
1042
  "affectsGlobalScope": false
1038
1043
  },
@@ -1067,8 +1072,8 @@
1067
1072
  "affectsGlobalScope": false
1068
1073
  },
1069
1074
  "../src/_modules/app-extended.index.ts": {
1070
- "version": "28191aaf1a437479ae2a5e5488340ba88dc1abdce6574ad1a914dc48da8b4c6a",
1071
- "signature": "a06ba6f9f5cf3973d58944f6f15440e7ca8b379903f88e78ca946baae11eac78",
1075
+ "version": "f8d5b2ec131882ee68ae3aa08fb143faaf362b676845211fd5d1b0dd467ed9c6",
1076
+ "signature": "00ea55fc9a17b6bdf8af7b7a015bf874ee0830934006fd29a073d29c0237ddf5",
1072
1077
  "affectsGlobalScope": false
1073
1078
  },
1074
1079
  "../src/_modules/app.index.ts": {
@@ -2944,6 +2949,16 @@
2944
2949
  "../src/_enums/index.ts",
2945
2950
  "../src/_services/index.ts"
2946
2951
  ],
2952
+ "../src/_models/dynamo-nts-socket-dictionary.ts": [
2953
+ "../node_modules/@futdevpro/fsm-dynamo/lib/index.d.ts",
2954
+ "../node_modules/@types/node/fs.d.ts",
2955
+ "../node_modules/@types/node/process.d.ts",
2956
+ "../node_modules/@types/node/ts3.2/fs.d.ts",
2957
+ "../node_modules/@types/node/ts3.2/process.d.ts",
2958
+ "../node_modules/@types/node/ts3.2/util.d.ts",
2959
+ "../node_modules/@types/node/util.d.ts",
2960
+ "../node_modules/socket.io/dist/index.d.ts"
2961
+ ],
2947
2962
  "../src/_models/dynamo-nts-socket-event-params.ts": [
2948
2963
  "../node_modules/@types/node/fs.d.ts",
2949
2964
  "../node_modules/@types/node/process.d.ts",
@@ -2978,6 +2993,7 @@
2978
2993
  "../src/_models/dynamo-nts-endpoint-params.ts",
2979
2994
  "../src/_models/dynamo-nts-global-settings.ts",
2980
2995
  "../src/_models/dynamo-nts-routing-module-settings.ts",
2996
+ "../src/_models/dynamo-nts-socket-dictionary.ts",
2981
2997
  "../src/_models/dynamo-nts-socket-event-params.ts",
2982
2998
  "../src/_models/dynamo-nts-socket-service-params.ts"
2983
2999
  ],
@@ -3007,6 +3023,7 @@
3007
3023
  "../src/_models/dynamo-nts-endpoint-params.ts",
3008
3024
  "../src/_models/dynamo-nts-global-settings.ts",
3009
3025
  "../src/_models/dynamo-nts-routing-module-settings.ts",
3026
+ "../src/_models/dynamo-nts-socket-dictionary.ts",
3010
3027
  "../src/_services/dynamo-nts-app-extended.ts",
3011
3028
  "../src/_services/dynamo-nts-app.ts",
3012
3029
  "../src/_services/dynamo-nts-global.service.ts",
@@ -3379,10 +3396,11 @@
3379
3396
  "../node_modules/@types/node/util.d.ts",
3380
3397
  "../node_modules/socket.io/dist/index.d.ts",
3381
3398
  "../src/_constants/dynamo-nts-global-settings.ts",
3399
+ "../src/_enums/dynamo-nts-socket-security.enum.ts",
3382
3400
  "../src/_enums/http/socket-event.enum.ts",
3383
- "../src/_enums/index.ts",
3401
+ "../src/_models/dynamo-nts-socket-dictionary.ts",
3384
3402
  "../src/_models/dynamo-nts-socket-event-params.ts",
3385
- "../src/_models/index.ts",
3403
+ "../src/_models/dynamo-nts-socket-service-params.ts",
3386
3404
  "../src/_services/dynamo-nts-global.service.ts",
3387
3405
  "../src/_services/dynamo-nts-shared.service.ts",
3388
3406
  "../src/_services/dynamo-nts-singleton.service.ts"
@@ -5131,6 +5149,9 @@
5131
5149
  "../src/_enums/index.ts",
5132
5150
  "../src/_services/index.ts"
5133
5151
  ],
5152
+ "../src/_models/dynamo-nts-socket-dictionary.ts": [
5153
+ "../node_modules/socket.io/dist/index.d.ts"
5154
+ ],
5134
5155
  "../src/_models/dynamo-nts-socket-event-params.ts": [
5135
5156
  "../src/_enums/http/socket-event.enum.ts"
5136
5157
  ],
@@ -5143,6 +5164,7 @@
5143
5164
  "../src/_models/dynamo-nts-endpoint-params.ts",
5144
5165
  "../src/_models/dynamo-nts-global-settings.ts",
5145
5166
  "../src/_models/dynamo-nts-routing-module-settings.ts",
5167
+ "../src/_models/dynamo-nts-socket-dictionary.ts",
5146
5168
  "../src/_models/dynamo-nts-socket-event-params.ts",
5147
5169
  "../src/_models/dynamo-nts-socket-service-params.ts"
5148
5170
  ],
@@ -5160,6 +5182,7 @@
5160
5182
  "../src/_models/dynamo-nts-endpoint-params.ts",
5161
5183
  "../src/_models/dynamo-nts-global-settings.ts",
5162
5184
  "../src/_models/dynamo-nts-routing-module-settings.ts",
5185
+ "../src/_models/dynamo-nts-socket-dictionary.ts",
5163
5186
  "../src/_services/dynamo-nts-app-extended.ts",
5164
5187
  "../src/_services/dynamo-nts-app.ts",
5165
5188
  "../src/_services/dynamo-nts-global.service.ts",
@@ -5306,9 +5329,10 @@
5306
5329
  ],
5307
5330
  "../src/_services/dynamo-nts-socket.service.ts": [
5308
5331
  "../node_modules/socket.io/dist/index.d.ts",
5309
- "../src/_enums/index.ts",
5332
+ "../src/_enums/dynamo-nts-socket-security.enum.ts",
5333
+ "../src/_models/dynamo-nts-socket-dictionary.ts",
5310
5334
  "../src/_models/dynamo-nts-socket-event-params.ts",
5311
- "../src/_models/index.ts",
5335
+ "../src/_models/dynamo-nts-socket-service-params.ts",
5312
5336
  "../src/_services/dynamo-nts-singleton.service.ts"
5313
5337
  ],
5314
5338
  "../src/_services/index.ts": [
@@ -5522,6 +5546,7 @@
5522
5546
  "../src/_models/dynamo-nts-endpoint-params.ts",
5523
5547
  "../src/_models/dynamo-nts-global-settings.ts",
5524
5548
  "../src/_models/dynamo-nts-routing-module-settings.ts",
5549
+ "../src/_models/dynamo-nts-socket-dictionary.ts",
5525
5550
  "../src/_models/dynamo-nts-socket-event-params.ts",
5526
5551
  "../src/_models/dynamo-nts-socket-service-params.ts",
5527
5552
  "../src/_models/index.ts",
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@futdevpro/nts-dynamo",
3
- "version": "01.05.40",
3
+ "version": "01.05.45",
4
4
  "description": "Dynamic NodeTS (NodeJS-Typescript), MongoDB Backend System Framework by Future Development Ltd.",
5
5
  "scripts": {
6
6
  "build": "npx tsc",
7
7
  "postbuild": "npm publish",
8
- "buildtgz": "npx tsc",
9
- "postbuildtgz": "npm pack"
8
+ "build-tgz": "npx tsc",
9
+ "postbuild-tgz": "npm pack"
10
10
  },
11
11
  "main": "./lib/index.js",
12
12
  "module": "./lib/index.js",
@@ -179,13 +179,16 @@
179
179
  "geoip-lite": "^1.4.5",
180
180
  "mongoose": "^5.13.14",
181
181
  "nodemailer": "^6.7.5",
182
- "rxjs": "^7.4.0"
183
- },
184
- "dependencies": {
182
+ "rxjs": "^7.4.0",
183
+
185
184
  "@types/node": "~14.0.27",
186
- "socket.io": "^4.5.2",
187
185
  "ts-node": "~8.10.2",
188
- "tslib": "~2.0.1",
189
- "typescript": "~3.9.7"
186
+ "typescript": "~4.8.3"
187
+ },
188
+ "peerDevDependencies": {
189
+ "tslib": "~2.0.1"
190
+ },
191
+ "devDependencies": {
192
+ "socket.io": "^4.5.2"
190
193
  }
191
194
  }
@@ -2,6 +2,8 @@
2
2
  export enum DynamoNTS_SocketEvent {
3
3
  connection = 'connection',
4
4
  subscribe = 'subscribe',
5
+ subscriptionSuccessful = 'subscriptionSuccessful',
6
+ unsubscribe = 'unsubscribe',
5
7
  event = 'event',
6
8
  disconnect = 'disconnection'
7
9
  }
@@ -0,0 +1,36 @@
1
+
2
+ import { DynamoNTS_Error } from '@futdevpro/fsm-dynamo';
3
+ import * as SocketIO from 'socket.io';
4
+
5
+ export class DynamoNTS_SocketDictionary {
6
+ issuerId: string;
7
+ sockets: SocketIO.Socket[];
8
+
9
+ constructor(
10
+ set?: {
11
+ issuerId: string,
12
+ sockets: SocketIO.Socket[],
13
+ }
14
+ ) {
15
+ this.issuerId = set.issuerId;
16
+ if (!set.sockets.length) {
17
+ throw new DynamoNTS_Error({
18
+ status: 406,
19
+ message: 'trying to create DynamoNTS_SocketDictionary without a single active sockets'
20
+ });
21
+ }
22
+ this.sockets = set.sockets;
23
+ }
24
+
25
+ /**
26
+ * Emits event on all sockets
27
+ * @param event
28
+ * @param content
29
+ */
30
+ emitEvent(event: string, content: any) {
31
+ this.sockets.forEach((socket: SocketIO.Socket) => {
32
+ socket.emit(event, content);
33
+ });
34
+ }
35
+ }
36
+
@@ -8,6 +8,7 @@ import { DynamoNTS_SocketEvent } from '../_enums/http/socket-event.enum';
8
8
  *
9
9
  */
10
10
  export class DynamoNTS_SocketEventParams<T>{
11
+ socketName?: string;
11
12
  event: DynamoNTS_SocketEvent | string;
12
13
 
13
14
  preProcessess?: ((content?: T) => Promise<T>)[];
@@ -18,6 +19,7 @@ export class DynamoNTS_SocketEventParams<T>{
18
19
 
19
20
  constructor(
20
21
  set: {
22
+ socketName?: string,
21
23
  event: DynamoNTS_SocketEvent | string,
22
24
 
23
25
  preProcessess?: ((content?: T) => Promise<T>)[],
@@ -28,6 +30,7 @@ export class DynamoNTS_SocketEventParams<T>{
28
30
  }
29
31
  ) {
30
32
  try {
33
+ this.socketName = set.socketName;
31
34
  this.event = set.event;
32
35
 
33
36
  this.preProcessess = set.preProcessess ? set.preProcessess : [];
@@ -47,7 +50,7 @@ export class DynamoNTS_SocketEventParams<T>{
47
50
  }
48
51
  } catch (error) {
49
52
  DynamoNTS_Shared.logError(
50
- `\nSocket Event params setup failed: ${set.event}`, error);
53
+ `\nSocket Event params setup failed (${this.socketName}): ${set.event}`, error);
51
54
  throw error;
52
55
  }
53
56
  }
@@ -61,14 +64,14 @@ export class DynamoNTS_SocketEventParams<T>{
61
64
  try {
62
65
  if (this.logEvent) {
63
66
  if (this.logEventContent) {
64
- console.log(`==> incoming ${this.event} socket event... content:`, content);
67
+ console.log(`==> incoming ${this.socketName} socket event: ${this.event} content:`, content);
65
68
  } else {
66
- console.log(`==> incoming ${this.event} socket event...`);
69
+ console.log(`==> incoming ${this.socketName} socket event: ${this.event}...`);
67
70
  }
68
71
  }
69
72
  return content;
70
73
  } catch (error) {
71
- console.error('PreLog failed....', error);
74
+ console.error(`PreLog failed... (socket: ${this.socketName})`, error);
72
75
  }
73
76
  };
74
77
  }
@@ -88,7 +91,7 @@ export class DynamoNTS_SocketEventParams<T>{
88
91
  await this.tasks[i](content, issuer);
89
92
  }
90
93
  } catch (error) {
91
- console.error(`Socket Event tasks failed to execute.... (${this.event})`, error, 'content:', content);
94
+ console.error(`Socket Event tasks failed to execute on ${this.socketName}.... (${this.event})`, error, 'content:', content);
92
95
  }
93
96
  };
94
97
  }
@@ -8,4 +8,5 @@ export * from './dynamo-nts-global-settings';
8
8
  export * from './dynamo-nts-routing-module-settings';
9
9
  export * from './dynamo-nts-socket-event-params';
10
10
  export * from './dynamo-nts-socket-service-params';
11
+ export * from './dynamo-nts-socket-dictionary';
11
12
 
@@ -11,6 +11,7 @@ export * from '../_models/dynamo-nts-app-params';
11
11
  export * from '../_models/dynamo-nts-endpoint-params';
12
12
  export * from '../_models/dynamo-nts-global-settings';
13
13
  export * from '../_models/dynamo-nts-routing-module-settings';
14
+ export * from '../_models/dynamo-nts-socket-dictionary';
14
15
 
15
16
  // ENUMS
16
17
  export * from '../_enums/dynamo-nts-route-security.enum';
@@ -34,7 +34,8 @@ export class UsageService extends DynamoNTS_DataService<DynamoUsageSession> {
34
34
  /* console.log(`...getLocationDataFromRequest... ip: ${this.data.address}`, this.data.locationData); */
35
35
  } catch (error) {
36
36
  throw new DynamoNTS_Error({
37
- status: 417, message: 'getLocationDataFromRequest was unsuccessful',
37
+ status: 417,
38
+ message: 'getLocationDataFromRequest was unsuccessful',
38
39
  userMessage: `We were unable to deep analyze your request.`,
39
40
  error
40
41
  });
@@ -86,7 +87,8 @@ export class UsageService extends DynamoNTS_DataService<DynamoUsageSession> {
86
87
 
87
88
  } catch (error) {
88
89
  throw new DynamoNTS_Error({
89
- status: 417, message: 'getDailyUsage was unsuccessful',
90
+ status: 417,
91
+ message: 'getDailyUsage was unsuccessful',
90
92
  userMessage: `We've failed to collect last week's usage data.`,
91
93
  error
92
94
  });
@@ -108,7 +110,8 @@ export class UsageService extends DynamoNTS_DataService<DynamoUsageSession> {
108
110
  await this.saveData();
109
111
  } catch (error) {
110
112
  throw new DynamoNTS_Error({
111
- status: 417, message: 'updateSessionData was unsuccessful',
113
+ status: 417,
114
+ message: 'updateSessionData was unsuccessful',
112
115
  userMessage: `The attempt to update Usage Data was unsuccessful.`,
113
116
  error
114
117
  });
@@ -129,7 +132,8 @@ export class UsageService extends DynamoNTS_DataService<DynamoUsageSession> {
129
132
  await this.saveData();
130
133
  } catch (error) {
131
134
  throw new DynamoNTS_Error({
132
- status: 417, message: 'closeSession was unsuccessful',
135
+ status: 417,
136
+ message: 'closeSession was unsuccessful',
133
137
  userMessage: `The attempt to close Usage Session was unsuccessful.`,
134
138
  error
135
139
  });
@@ -138,25 +138,28 @@ export class DynamoNTS_ApiService {
138
138
  return a as T;
139
139
  }
140
140
  } catch (error) {
141
- DynamoNTS_Shared.logError(`\nAPI ERRROR: ${callParams?.name} failed...` +
141
+ DynamoNTS_Shared.logError(`\nAPI ERROR: ${callParams?.name} failed...` +
142
142
  `\n${callParams?.baseUrl}${callParams?.endPoint}`);
143
143
  if (callParams?.httpOptions?.responseType === HttpResponseType.text) {
144
144
  error.error = JSON.parse(error.error);
145
145
  }
146
146
  if (error?.response?.data?.flag === 'DYNAMO-BE ERROR OBJECT') {
147
147
  DynamoNTS_Shared.logError(`\n${callParams.name} was UNSUCCESSFUL\n\n`, new Error());
148
+
148
149
  throw new DynamoNTS_Error(error.response.data);
149
150
  } else if (error.code === 'ENOTFOUND') {
150
151
  DynamoNTS_Shared.logError(`\n${callParams.name} was UNSUCCESSFUL\n\n`, new Error());
152
+
151
153
  throw new DynamoNTS_Error({
152
- status: 404, message: 'DNS error; address cannot be resolved!',
153
- userMessage: `We encountered a BackEnd API Error, please contact the responsible development team. errorcode: 965-453-300`,
154
+ status: 404,
155
+ message: 'DNS error; address cannot be resolved!',
156
+ userMessage: `We encountered a BackEnd API Error, please contact the responsible development team. \nerrorCode: 965-453-300`,
154
157
  error: error
155
158
  });
156
159
  } else if (error.config && error.message) {
157
160
  throw new DynamoNTS_Error({
158
161
  status: +error.message.substring(error.message.length - 4, 3),
159
- userMessage: `We encountered a BackEnd API Error, please contact the responsible development team. errorcode: 965-453-303`,
162
+ userMessage: `We encountered a BackEnd API Error, please contact the responsible development team. \nerrorCode: 965-453-303`,
160
163
  error: error
161
164
  });
162
165
  } else {
@@ -32,7 +32,7 @@ export abstract class DynamoNTS_AppExtended extends DynamoNTS_App {
32
32
 
33
33
  private socketSecurity: DynamoNTS_RouteSecurity;
34
34
 
35
- protected socketServices: DynamoNTS_SocketService[] = [];
35
+ protected socketServices: DynamoNTS_SocketService<any>[];
36
36
 
37
37
  constructor(){
38
38
  super();
@@ -47,11 +47,11 @@ export abstract class DynamoNTS_AppExtended extends DynamoNTS_App {
47
47
  } else {
48
48
  DynamoNTS_Shared.logWarning(
49
49
  '\nNo socketServices setted up while using Extended Application.',
50
- '\nYou should use DynamoNTS_App if you don`t need socket services.'
50
+ '\nYou should use DynamoNTS_App if you don`t need socket services.\n'
51
51
  );
52
52
  }
53
53
  } catch (error) {
54
- DynamoNTS_Shared.logError('\nExtended Application start failed.\n', error);
54
+ DynamoNTS_Shared.logError('\nExtended Application start failed.\n', error, '\n');
55
55
  }
56
56
  }
57
57
 
@@ -59,8 +59,7 @@ export abstract class DynamoNTS_AppExtended extends DynamoNTS_App {
59
59
  *
60
60
  */
61
61
  private setSocketSecurity(): void {
62
- console.log('setSecurityExtended');
63
- this.socketServices.forEach((service: DynamoNTS_SocketService) => {
62
+ this.socketServices.forEach((service: DynamoNTS_SocketService<any>) => {
64
63
  if (!this.socketSecurity) {
65
64
  this.socketSecurity = DynamoNTS_RouteSecurity[service.security];
66
65
  } else if (this.socketSecurity !== DynamoNTS_RouteSecurity.both && this.socketSecurity !== DynamoNTS_RouteSecurity[service.security]) {
@@ -95,7 +94,7 @@ export abstract class DynamoNTS_AppExtended extends DynamoNTS_App {
95
94
  `\nin DynamoBEServer - setupRoutingModules() to enable secure routes.`;
96
95
 
97
96
  errorMsg += '\n\nThe socket services setted to use secure server:';
98
- this.socketServices.forEach((service: DynamoNTS_SocketService) => {
97
+ this.socketServices.forEach((service: DynamoNTS_SocketService<any>) => {
99
98
  if (service.security != DynamoNTS_SocketSecurity.open) {
100
99
  errorMsg += `\n ${service.name} (port: ${service.port})`;
101
100
  }
@@ -112,9 +111,10 @@ export abstract class DynamoNTS_AppExtended extends DynamoNTS_App {
112
111
  }
113
112
  }
114
113
 
115
- this.socketServices.forEach((service: DynamoNTS_SocketService) => {
116
- const existingPorts: DynamoNTS_SocketService[] = this.socketServices.filter(
117
- (mod: DynamoNTS_SocketService) => mod.port === service.port);
114
+ this.socketServices.forEach((service: DynamoNTS_SocketService<any>) => {
115
+ const existingPorts: DynamoNTS_SocketService<any>[] = this.socketServices.filter(
116
+ (mod: DynamoNTS_SocketService<any>) => mod.port === service.port
117
+ );
118
118
 
119
119
  if (1 < existingPorts.length || this.httpPort === service.port || this.httpsPort === service.port) {
120
120
  let error = new Error(`PORT DUPLICATION: ${service.port}`);
@@ -92,10 +92,10 @@ export abstract class DynamoNTS_App extends DynamoNTS_SingletonService {
92
92
 
93
93
  this.mongoose.connect(
94
94
  this.params.dbUri,
95
- /* {
95
+ {
96
96
  useNewUrlParser: true,
97
97
  useUnifiedTopology: true
98
- } */
98
+ }
99
99
  );
100
100
  }
101
101
 
@@ -30,17 +30,21 @@ export abstract class DynamoNTS_AuthService extends DynamoNTS_SingletonService {
30
30
  const authHeader = req.headers['authorization'];
31
31
  if (!authHeader) {
32
32
  throw new DynamoNTS_Error({
33
+ status: 401,
33
34
  message: 'AuthHeader missing!',
34
- userMessage: `We encountered a BackEnd Auth Error, please contact the responsible development team. errorcode: 007-636-500`,
35
+ userMessage: `We encountered an unhandled BackEnd Auth Error, please contact the responsible development team. \nerrorCode: 007-636-500`,
35
36
  });
36
37
  }
38
+
37
39
  const token = authHeader.split(' ')[1];
38
40
  if (!token) {
39
41
  throw new DynamoNTS_Error({
42
+ status: 401,
40
43
  message: 'Token missing!',
41
- userMessage: `We encountered a BackEnd Auth Error, please contact the responsible development team. errorcode: 007-636-501`,
44
+ userMessage: `We encountered an unhandled BackEnd Auth Error, please contact the responsible development team. \nerrorCode: 007-636-501`,
42
45
  });
43
46
  }
47
+
44
48
  return token;
45
49
  }
46
50