@futdevpro/nts-dynamo 1.5.38 → 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.
- package/BuildPackage.bat +1 -1
- package/futdevpro-nts-dynamo-01.05.40.tgz +0 -0
- package/futdevpro-nts-dynamo-01.05.41.tgz +0 -0
- package/futdevpro-nts-dynamo-01.05.42.tgz +0 -0
- package/futdevpro-nts-dynamo-01.05.43.tgz +0 -0
- package/futdevpro-nts-dynamo-01.05.44.tgz +0 -0
- package/futdevpro-nts-dynamo-01.05.45.tgz +0 -0
- package/lib/_enums/http/socket-event.enum.d.ts +2 -0
- package/lib/_enums/http/socket-event.enum.d.ts.map +1 -1
- package/lib/_enums/http/socket-event.enum.js +2 -0
- package/lib/_enums/http/socket-event.enum.js.map +1 -1
- package/lib/_models/dynamo-nts-socket-dictionary.d.ts +16 -0
- package/lib/_models/dynamo-nts-socket-dictionary.d.ts.map +1 -0
- package/lib/_models/dynamo-nts-socket-dictionary.js +28 -0
- package/lib/_models/dynamo-nts-socket-dictionary.js.map +1 -0
- package/lib/_models/dynamo-nts-socket-event-params.d.ts +2 -0
- package/lib/_models/dynamo-nts-socket-event-params.d.ts.map +1 -1
- package/lib/_models/dynamo-nts-socket-event-params.js +6 -5
- package/lib/_models/dynamo-nts-socket-event-params.js.map +1 -1
- package/lib/_models/index.d.ts +1 -0
- package/lib/_models/index.d.ts.map +1 -1
- package/lib/_models/index.js +1 -0
- package/lib/_models/index.js.map +1 -1
- package/lib/_modules/app-extended.index.d.ts +1 -0
- package/lib/_modules/app-extended.index.d.ts.map +1 -1
- package/lib/_modules/app-extended.index.js +1 -0
- package/lib/_modules/app-extended.index.js.map +1 -1
- package/lib/_modules/usage/usage.service.d.ts.map +1 -1
- package/lib/_modules/usage/usage.service.js +8 -4
- package/lib/_modules/usage/usage.service.js.map +1 -1
- package/lib/_services/dynamo-nts-api.service.d.ts.map +1 -1
- package/lib/_services/dynamo-nts-api.service.js +5 -4
- package/lib/_services/dynamo-nts-api.service.js.map +1 -1
- package/lib/_services/dynamo-nts-app-extended.d.ts +1 -1
- package/lib/_services/dynamo-nts-app-extended.d.ts.map +1 -1
- package/lib/_services/dynamo-nts-app-extended.js +4 -3
- package/lib/_services/dynamo-nts-app-extended.js.map +1 -1
- package/lib/_services/dynamo-nts-app.d.ts.map +1 -1
- package/lib/_services/dynamo-nts-app.js +4 -2
- package/lib/_services/dynamo-nts-app.js.map +1 -1
- package/lib/_services/dynamo-nts-auth.service.d.ts.map +1 -1
- package/lib/_services/dynamo-nts-auth.service.js +4 -2
- package/lib/_services/dynamo-nts-auth.service.js.map +1 -1
- package/lib/_services/dynamo-nts-controller.service.d.ts +37 -0
- package/lib/_services/dynamo-nts-controller.service.d.ts.map +1 -1
- package/lib/_services/dynamo-nts-controller.service.js +37 -0
- package/lib/_services/dynamo-nts-controller.service.js.map +1 -1
- package/lib/_services/dynamo-nts-data.service.d.ts +19 -0
- package/lib/_services/dynamo-nts-data.service.d.ts.map +1 -1
- package/lib/_services/dynamo-nts-data.service.js +70 -31
- package/lib/_services/dynamo-nts-data.service.js.map +1 -1
- package/lib/_services/dynamo-nts-db.service.d.ts.map +1 -1
- package/lib/_services/dynamo-nts-db.service.js +72 -48
- package/lib/_services/dynamo-nts-db.service.js.map +1 -1
- package/lib/_services/dynamo-nts-email.service.js +4 -4
- package/lib/_services/dynamo-nts-email.service.js.map +1 -1
- package/lib/_services/dynamo-nts-global.service.d.ts +2 -2
- package/lib/_services/dynamo-nts-global.service.d.ts.map +1 -1
- package/lib/_services/dynamo-nts-global.service.js.map +1 -1
- package/lib/_services/dynamo-nts-routing-module.service.js +3 -3
- package/lib/_services/dynamo-nts-routing-module.service.js.map +1 -1
- package/lib/_services/dynamo-nts-shared.service.d.ts +6 -0
- package/lib/_services/dynamo-nts-shared.service.d.ts.map +1 -1
- package/lib/_services/dynamo-nts-shared.service.js +8 -0
- package/lib/_services/dynamo-nts-shared.service.js.map +1 -1
- package/lib/_services/dynamo-nts-socket-service-collection.service.d.ts +1 -1
- package/lib/_services/dynamo-nts-socket-service-collection.service.d.ts.map +1 -1
- package/lib/_services/dynamo-nts-socket.service.d.ts +6 -9
- package/lib/_services/dynamo-nts-socket.service.d.ts.map +1 -1
- package/lib/_services/dynamo-nts-socket.service.js +20 -19
- package/lib/_services/dynamo-nts-socket.service.js.map +1 -1
- package/lib/_services/dynamobe-api.service.js +2 -2
- package/lib/_services/dynamobe-auth.service.js +2 -2
- package/lib/_services/dynamobe-data.service.js +15 -15
- package/lib/_services/dynamobe-db.service.js +24 -24
- package/lib/_services/dynamobe-email.service.js +4 -4
- package/lib/_services/dynamobe-routing-module.service.js +3 -3
- package/lib/tsconfig.tsbuildinfo +77 -52
- package/package.json +13 -8
- package/src/_enums/http/socket-event.enum.ts +2 -0
- package/src/_models/dynamo-nts-socket-dictionary.ts +36 -0
- package/src/_models/dynamo-nts-socket-event-params.ts +8 -5
- package/src/_models/index.ts +1 -0
- package/src/_modules/app-extended.index.ts +1 -0
- package/src/_modules/usage/usage.service.ts +8 -4
- package/src/_services/dynamo-nts-api.service.ts +7 -4
- package/src/_services/dynamo-nts-app-extended.ts +13 -8
- package/src/_services/dynamo-nts-app.ts +2 -3
- package/src/_services/dynamo-nts-auth.service.ts +6 -2
- package/src/_services/dynamo-nts-controller.service.ts +37 -0
- package/src/_services/dynamo-nts-data.service.ts +70 -31
- package/src/_services/dynamo-nts-db.service.ts +72 -48
- package/src/_services/dynamo-nts-email.service.ts +4 -4
- package/src/_services/dynamo-nts-global.service.ts +9 -2
- package/src/_services/dynamo-nts-routing-module.service.ts +3 -3
- package/src/_services/dynamo-nts-shared.service.ts +9 -0
- package/src/_services/dynamo-nts-socket-service-collection.service.ts +1 -1
- package/src/_services/dynamo-nts-socket.service.ts +27 -27
package/lib/tsconfig.tsbuildinfo
CHANGED
|
@@ -242,8 +242,8 @@
|
|
|
242
242
|
"affectsGlobalScope": false
|
|
243
243
|
},
|
|
244
244
|
"../src/_enums/http/socket-event.enum.ts": {
|
|
245
|
-
"version": "
|
|
246
|
-
"signature": "
|
|
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": "
|
|
606
|
-
"signature": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
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": "
|
|
926
|
-
"signature": "
|
|
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": "
|
|
935
|
+
"version": "72627d8725efc124975bc21259ffb950764e11badb149af3cba6be9d8237ee17",
|
|
956
936
|
"signature": "84395ddfc185bcc1bed6012cc8e21ccf993ce16101acd3527c09133a96aa40fe",
|
|
957
937
|
"affectsGlobalScope": false
|
|
958
938
|
},
|
|
959
939
|
"../src/_services/dynamo-nts-controller.service.ts": {
|
|
960
|
-
"version": "
|
|
961
|
-
"signature": "
|
|
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": "
|
|
950
|
+
"version": "e14c10a25ad46a1f0cf6ffd88409e25319c6e41dfa077644ef219707e63a55b1",
|
|
966
951
|
"signature": "3f4d1bf6c6c5f1b68e538c341bb8c60cbf5d8898bc606ce451d142b88bce8814",
|
|
967
952
|
"affectsGlobalScope": false
|
|
968
953
|
},
|
|
969
954
|
"../src/_services/dynamo-nts-app.ts": {
|
|
970
|
-
"version": "
|
|
955
|
+
"version": "c13bdc25fbc958dd6d1049dbd0a643fbebb7fa4aca2074cfdc09232d3c6fd353",
|
|
971
956
|
"signature": "7f9799d5bdcbd2a4c027eb7826cc268bfefe990d1d6566e54643a0a704f2d813",
|
|
972
957
|
"affectsGlobalScope": false
|
|
973
958
|
},
|
|
974
959
|
"../src/_services/dynamo-nts-app-extended.ts": {
|
|
975
|
-
"version": "
|
|
976
|
-
"signature": "
|
|
960
|
+
"version": "9359f5f9e3245858460c0d1998f0945690758cf931bbf31e6c40ffc886884a82",
|
|
961
|
+
"signature": "fe0a872b1bc50bfbb06dde1a39832bf0eaa948d930faae507e73341de598b37f",
|
|
977
962
|
"affectsGlobalScope": false
|
|
978
963
|
},
|
|
979
964
|
"../src/_services/dynamo-nts-data.service.ts": {
|
|
980
|
-
"version": "
|
|
981
|
-
"signature": "
|
|
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": "
|
|
1001
|
-
"signature": "
|
|
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": "
|
|
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": "
|
|
1071
|
-
"signature": "
|
|
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/
|
|
3401
|
+
"../src/_models/dynamo-nts-socket-dictionary.ts",
|
|
3384
3402
|
"../src/_models/dynamo-nts-socket-event-params.ts",
|
|
3385
|
-
"../src/_models/
|
|
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/
|
|
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/
|
|
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,10 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@futdevpro/nts-dynamo",
|
|
3
|
-
"version": "01.05.
|
|
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
|
-
"postbuild": "npm publish"
|
|
7
|
+
"postbuild": "npm publish",
|
|
8
|
+
"build-tgz": "npx tsc",
|
|
9
|
+
"postbuild-tgz": "npm pack"
|
|
8
10
|
},
|
|
9
11
|
"main": "./lib/index.js",
|
|
10
12
|
"module": "./lib/index.js",
|
|
@@ -177,13 +179,16 @@
|
|
|
177
179
|
"geoip-lite": "^1.4.5",
|
|
178
180
|
"mongoose": "^5.13.14",
|
|
179
181
|
"nodemailer": "^6.7.5",
|
|
180
|
-
"rxjs": "^7.4.0"
|
|
181
|
-
|
|
182
|
-
"dependencies": {
|
|
182
|
+
"rxjs": "^7.4.0",
|
|
183
|
+
|
|
183
184
|
"@types/node": "~14.0.27",
|
|
184
|
-
"socket.io": "^4.5.2",
|
|
185
185
|
"ts-node": "~8.10.2",
|
|
186
|
-
"
|
|
187
|
-
|
|
186
|
+
"typescript": "~4.8.3"
|
|
187
|
+
},
|
|
188
|
+
"peerDevDependencies": {
|
|
189
|
+
"tslib": "~2.0.1"
|
|
190
|
+
},
|
|
191
|
+
"devDependencies": {
|
|
192
|
+
"socket.io": "^4.5.2"
|
|
188
193
|
}
|
|
189
194
|
}
|
|
@@ -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.
|
|
67
|
+
console.log(`==> incoming ${this.socketName} socket event: ${this.event} content:`, content);
|
|
65
68
|
} else {
|
|
66
|
-
console.log(`==> incoming ${this.
|
|
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(
|
|
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
|
}
|
package/src/_models/index.ts
CHANGED
|
@@ -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,
|
|
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,
|
|
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,
|
|
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,
|
|
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
|
|
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,
|
|
153
|
-
|
|
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.
|
|
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();
|
|
@@ -44,9 +44,14 @@ export abstract class DynamoNTS_AppExtended extends DynamoNTS_App {
|
|
|
44
44
|
this.setupSocketServices();
|
|
45
45
|
|
|
46
46
|
if (this.log) console.log(`\nAll sockets setted up.... sockets using security: ${this.socketSecurity}`);
|
|
47
|
+
} else {
|
|
48
|
+
DynamoNTS_Shared.logWarning(
|
|
49
|
+
'\nNo socketServices setted up while using Extended Application.',
|
|
50
|
+
'\nYou should use DynamoNTS_App if you don`t need socket services.\n'
|
|
51
|
+
);
|
|
47
52
|
}
|
|
48
53
|
} catch (error) {
|
|
49
|
-
DynamoNTS_Shared.logError('\nExtended Application start failed.\n', error);
|
|
54
|
+
DynamoNTS_Shared.logError('\nExtended Application start failed.\n', error, '\n');
|
|
50
55
|
}
|
|
51
56
|
}
|
|
52
57
|
|
|
@@ -54,8 +59,7 @@ export abstract class DynamoNTS_AppExtended extends DynamoNTS_App {
|
|
|
54
59
|
*
|
|
55
60
|
*/
|
|
56
61
|
private setSocketSecurity(): void {
|
|
57
|
-
|
|
58
|
-
this.socketServices.forEach((service: DynamoNTS_SocketService) => {
|
|
62
|
+
this.socketServices.forEach((service: DynamoNTS_SocketService<any>) => {
|
|
59
63
|
if (!this.socketSecurity) {
|
|
60
64
|
this.socketSecurity = DynamoNTS_RouteSecurity[service.security];
|
|
61
65
|
} else if (this.socketSecurity !== DynamoNTS_RouteSecurity.both && this.socketSecurity !== DynamoNTS_RouteSecurity[service.security]) {
|
|
@@ -90,7 +94,7 @@ export abstract class DynamoNTS_AppExtended extends DynamoNTS_App {
|
|
|
90
94
|
`\nin DynamoBEServer - setupRoutingModules() to enable secure routes.`;
|
|
91
95
|
|
|
92
96
|
errorMsg += '\n\nThe socket services setted to use secure server:';
|
|
93
|
-
this.socketServices.forEach((service: DynamoNTS_SocketService) => {
|
|
97
|
+
this.socketServices.forEach((service: DynamoNTS_SocketService<any>) => {
|
|
94
98
|
if (service.security != DynamoNTS_SocketSecurity.open) {
|
|
95
99
|
errorMsg += `\n ${service.name} (port: ${service.port})`;
|
|
96
100
|
}
|
|
@@ -107,9 +111,10 @@ export abstract class DynamoNTS_AppExtended extends DynamoNTS_App {
|
|
|
107
111
|
}
|
|
108
112
|
}
|
|
109
113
|
|
|
110
|
-
this.socketServices.forEach((service: DynamoNTS_SocketService) => {
|
|
111
|
-
const existingPorts: DynamoNTS_SocketService[] = this.socketServices.filter(
|
|
112
|
-
|
|
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
|
+
);
|
|
113
118
|
|
|
114
119
|
if (1 < existingPorts.length || this.httpPort === service.port || this.httpsPort === service.port) {
|
|
115
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
|
|
|
@@ -279,7 +279,6 @@ export abstract class DynamoNTS_App extends DynamoNTS_SingletonService {
|
|
|
279
279
|
*
|
|
280
280
|
*/
|
|
281
281
|
protected setSecurity(): void {
|
|
282
|
-
console.log('setSecurity');
|
|
283
282
|
this.routingModules.forEach((module: DynamoNTS_RoutingModule) => {
|
|
284
283
|
if (!this.security) {
|
|
285
284
|
this.security = module.security;
|
|
@@ -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
|
|
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
|
|
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
|
|