@futdevpro/nts-dynamo 1.5.31 → 1.5.32
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/lib/_modules/usage/usage.service.js +4 -4
- package/lib/_modules/usage/usage.service.js.map +1 -1
- package/lib/_services/dynamo-nts-api.service.js +3 -3
- package/lib/_services/dynamo-nts-api.service.js.map +1 -1
- package/lib/_services/dynamo-nts-auth.service.js +2 -2
- package/lib/_services/dynamo-nts-auth.service.js.map +1 -1
- package/lib/_services/dynamo-nts-data.service.d.ts +3 -3
- package/lib/_services/dynamo-nts-data.service.d.ts.map +1 -1
- package/lib/_services/dynamo-nts-data.service.js +18 -18
- package/lib/_services/dynamo-nts-data.service.js.map +1 -1
- package/lib/_services/dynamo-nts-db.service.d.ts +3 -3
- package/lib/_services/dynamo-nts-db.service.d.ts.map +1 -1
- package/lib/_services/dynamo-nts-db.service.js +25 -25
- 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 +3 -3
- 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 +2 -2
- package/lib/_services/dynamo-nts-shared.service.d.ts.map +1 -1
- package/lib/_services/dynamo-nts-shared.service.js +1 -1
- package/lib/_services/dynamo-nts-shared.service.js.map +1 -1
- package/lib/_services/dynamobe-db.service.js +1 -1
- package/lib/tsconfig.tsbuildinfo +59 -59
- package/package.json +3 -2
- package/src/_modules/usage/usage.service.ts +5 -5
- package/src/_services/dynamo-nts-api.service.ts +4 -4
- package/src/_services/dynamo-nts-auth.service.ts +3 -3
- package/src/_services/dynamo-nts-data.service.ts +22 -22
- package/src/_services/dynamo-nts-db.service.ts +32 -32
- package/src/_services/dynamo-nts-email.service.ts +5 -5
- package/src/_services/dynamo-nts-global.service.ts +4 -4
- package/src/_services/dynamo-nts-routing-module.service.ts +4 -4
- package/src/_services/dynamo-nts-shared.service.ts +2 -2
package/lib/tsconfig.tsbuildinfo
CHANGED
|
@@ -567,8 +567,8 @@
|
|
|
567
567
|
"affectsGlobalScope": false
|
|
568
568
|
},
|
|
569
569
|
"../node_modules/@futdevpro/fsm-dynamo/lib/_collections/dynamo-shared.service.d.ts": {
|
|
570
|
-
"version": "
|
|
571
|
-
"signature": "
|
|
570
|
+
"version": "7aeca062f8a61097cd3dfc9aa999c801b942bf05f1bfcf178a3bd0fd0ef65490",
|
|
571
|
+
"signature": "7aeca062f8a61097cd3dfc9aa999c801b942bf05f1bfcf178a3bd0fd0ef65490",
|
|
572
572
|
"affectsGlobalScope": false
|
|
573
573
|
},
|
|
574
574
|
"../node_modules/@futdevpro/fsm-dynamo/lib/_constants/times.d.ts": {
|
|
@@ -576,9 +576,9 @@
|
|
|
576
576
|
"signature": "23550ca7aef25dfa8dc22d24e60c391af2c6a5ae53ae76524f42ec3cb69e7f04",
|
|
577
577
|
"affectsGlobalScope": false
|
|
578
578
|
},
|
|
579
|
-
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/
|
|
580
|
-
"version": "
|
|
581
|
-
"signature": "
|
|
579
|
+
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/dynamo-nts-error.d.ts": {
|
|
580
|
+
"version": "9335598e7e860d102ab2b2e48df464b5921d1c337db1fcb405611990f65f50a2",
|
|
581
|
+
"signature": "9335598e7e860d102ab2b2e48df464b5921d1c337db1fcb405611990f65f50a2",
|
|
582
582
|
"affectsGlobalScope": false
|
|
583
583
|
},
|
|
584
584
|
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/geo-ip-location.d.ts": {
|
|
@@ -587,13 +587,13 @@
|
|
|
587
587
|
"affectsGlobalScope": false
|
|
588
588
|
},
|
|
589
589
|
"../node_modules/@futdevpro/fsm-dynamo/lib/_modules/shared-service.index.d.ts": {
|
|
590
|
-
"version": "
|
|
591
|
-
"signature": "
|
|
590
|
+
"version": "9c94a05f87e4edf244d5912e92267e17b9aa1f0b4a68d1039aa1cb8a1b72d96a",
|
|
591
|
+
"signature": "9c94a05f87e4edf244d5912e92267e17b9aa1f0b4a68d1039aa1cb8a1b72d96a",
|
|
592
592
|
"affectsGlobalScope": false
|
|
593
593
|
},
|
|
594
594
|
"../src/_services/dynamo-nts-shared.service.ts": {
|
|
595
|
-
"version": "
|
|
596
|
-
"signature": "
|
|
595
|
+
"version": "17d3b8c548de4d7b42a1fc4f5f05a37beca0bd9092f978689ee1a78bc0dd5f04",
|
|
596
|
+
"signature": "34dc2c1d9b9a8b239b6095dc30b99e631fea391f7b7375d75a1ccecb3cf45fd0",
|
|
597
597
|
"affectsGlobalScope": false
|
|
598
598
|
},
|
|
599
599
|
"../node_modules/@futdevpro/fsm-dynamo/lib/_collections/index.d.ts": {
|
|
@@ -646,19 +646,19 @@
|
|
|
646
646
|
"signature": "aeff79d75f92b9be69e35cc640830b27ed8323789b13839e7f80bb503ac45f32",
|
|
647
647
|
"affectsGlobalScope": false
|
|
648
648
|
},
|
|
649
|
-
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/
|
|
650
|
-
"version": "
|
|
651
|
-
"signature": "
|
|
649
|
+
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/dynamo-nts-data-property-params.d.ts": {
|
|
650
|
+
"version": "af2fb6793736a4c781b0df94e64ff95546ac212c8b6c5a14a6ddf83fca3eccfa",
|
|
651
|
+
"signature": "af2fb6793736a4c781b0df94e64ff95546ac212c8b6c5a14a6ddf83fca3eccfa",
|
|
652
652
|
"affectsGlobalScope": false
|
|
653
653
|
},
|
|
654
|
-
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/
|
|
655
|
-
"version": "
|
|
656
|
-
"signature": "
|
|
654
|
+
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/dynamo-nts-data-params.d.ts": {
|
|
655
|
+
"version": "202153fe2fd0e80041e39b4536397b78c3de0cc187354805f6b07efe70076db7",
|
|
656
|
+
"signature": "202153fe2fd0e80041e39b4536397b78c3de0cc187354805f6b07efe70076db7",
|
|
657
657
|
"affectsGlobalScope": false
|
|
658
658
|
},
|
|
659
659
|
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/data-models/usage-session.d.ts": {
|
|
660
|
-
"version": "
|
|
661
|
-
"signature": "
|
|
660
|
+
"version": "c17c5e21740af97e6b20be9fd23ef58051921880c660e6356930a7e60e6feb6d",
|
|
661
|
+
"signature": "c17c5e21740af97e6b20be9fd23ef58051921880c660e6356930a7e60e6feb6d",
|
|
662
662
|
"affectsGlobalScope": false
|
|
663
663
|
},
|
|
664
664
|
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/daily-usage-data.d.ts": {
|
|
@@ -667,13 +667,13 @@
|
|
|
667
667
|
"affectsGlobalScope": false
|
|
668
668
|
},
|
|
669
669
|
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/data-models/custom-data.d.ts": {
|
|
670
|
-
"version": "
|
|
671
|
-
"signature": "
|
|
670
|
+
"version": "37cdff3bdf6f7f08e0547f7e503ac79563686cf8d4090495dd5ccbe8b9982cb2",
|
|
671
|
+
"signature": "37cdff3bdf6f7f08e0547f7e503ac79563686cf8d4090495dd5ccbe8b9982cb2",
|
|
672
672
|
"affectsGlobalScope": false
|
|
673
673
|
},
|
|
674
674
|
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/index.d.ts": {
|
|
675
|
-
"version": "
|
|
676
|
-
"signature": "
|
|
675
|
+
"version": "96335bde5016beff41bb110ea6816e8a6af27fcf672170c2a05a20a5b660b0fc",
|
|
676
|
+
"signature": "96335bde5016beff41bb110ea6816e8a6af27fcf672170c2a05a20a5b660b0fc",
|
|
677
677
|
"affectsGlobalScope": false
|
|
678
678
|
},
|
|
679
679
|
"../node_modules/@futdevpro/fsm-dynamo/lib/index.d.ts": {
|
|
@@ -687,7 +687,7 @@
|
|
|
687
687
|
"affectsGlobalScope": false
|
|
688
688
|
},
|
|
689
689
|
"../src/_services/dynamo-nts-auth.service.ts": {
|
|
690
|
-
"version": "
|
|
690
|
+
"version": "46bc6e253f348c619e186f7029b92d0e0d0bceb2f1a7cbb5006a6c395d8ee36c",
|
|
691
691
|
"signature": "1f30f44f81047cb04ba11d365efbed1a34faae72f4b02dd2f3618063ab26bff6",
|
|
692
692
|
"affectsGlobalScope": false
|
|
693
693
|
},
|
|
@@ -707,8 +707,8 @@
|
|
|
707
707
|
"affectsGlobalScope": false
|
|
708
708
|
},
|
|
709
709
|
"../src/_services/dynamo-nts-db.service.ts": {
|
|
710
|
-
"version": "
|
|
711
|
-
"signature": "
|
|
710
|
+
"version": "2038e863e017fe9caebc0d462a42e2c7983e3297bca12d31f77f072bef40dfa6",
|
|
711
|
+
"signature": "8be9493e0596de904fef555f9f3e8a0767825323485001d660f0aa981b5509e4",
|
|
712
712
|
"affectsGlobalScope": false
|
|
713
713
|
},
|
|
714
714
|
"../src/_services/dynamo-nts-db-service-collection.service.ts": {
|
|
@@ -787,7 +787,7 @@
|
|
|
787
787
|
"affectsGlobalScope": false
|
|
788
788
|
},
|
|
789
789
|
"../src/_services/dynamo-nts-email.service.ts": {
|
|
790
|
-
"version": "
|
|
790
|
+
"version": "78534d4cf1262e879c5f356da3da75dc51a23106b39af8ad8b8aaf4d8fdb3431",
|
|
791
791
|
"signature": "5f10ac7ae69efa651edb72d642477f6dc0f570688db4b4cecb57176be6702245",
|
|
792
792
|
"affectsGlobalScope": false
|
|
793
793
|
},
|
|
@@ -797,8 +797,8 @@
|
|
|
797
797
|
"affectsGlobalScope": false
|
|
798
798
|
},
|
|
799
799
|
"../src/_services/dynamo-nts-global.service.ts": {
|
|
800
|
-
"version": "
|
|
801
|
-
"signature": "
|
|
800
|
+
"version": "50ac902df33eb30f2501302543001b053fd6f24a0627eca75395d5ad38437596",
|
|
801
|
+
"signature": "d2dd8d734b4191191b1097615335611dec211977579ff13eae46d052fb9e5f66",
|
|
802
802
|
"affectsGlobalScope": false
|
|
803
803
|
},
|
|
804
804
|
"../src/_models/dynamo-nts-endpoint-params.ts": {
|
|
@@ -822,8 +822,8 @@
|
|
|
822
822
|
"affectsGlobalScope": false
|
|
823
823
|
},
|
|
824
824
|
"../src/_services/dynamo-nts-data.service.ts": {
|
|
825
|
-
"version": "
|
|
826
|
-
"signature": "
|
|
825
|
+
"version": "b801cf520a750bb7c603cb418dbde004fc08106168239ede62e9a8eb022fa5e3",
|
|
826
|
+
"signature": "f25a19207e0d25bffca4c6a67f65e8485ac5dc1be269aeecbf22eba4a7839535",
|
|
827
827
|
"affectsGlobalScope": false
|
|
828
828
|
},
|
|
829
829
|
"../src/_modules/test/custom-data.service.ts": {
|
|
@@ -837,7 +837,7 @@
|
|
|
837
837
|
"affectsGlobalScope": false
|
|
838
838
|
},
|
|
839
839
|
"../src/_services/dynamo-nts-routing-module.service.ts": {
|
|
840
|
-
"version": "
|
|
840
|
+
"version": "b34652128dec455457a64dfbd2f31e909987133791247215ee832768d6bf6fea",
|
|
841
841
|
"signature": "1f2f807732e212e3f15e1d4dc70864980bdda778ec36013cbe287c9b5ee3fd1a",
|
|
842
842
|
"affectsGlobalScope": false
|
|
843
843
|
},
|
|
@@ -857,7 +857,7 @@
|
|
|
857
857
|
"affectsGlobalScope": false
|
|
858
858
|
},
|
|
859
859
|
"../src/_modules/usage/usage.service.ts": {
|
|
860
|
-
"version": "
|
|
860
|
+
"version": "901b9684e70f702556ad6c39cb99f25d04ce2c1bb799cd1de4184d64345d0073",
|
|
861
861
|
"signature": "8a6db29b2f1ad1e23ad8feb524d9cb18f30763a78c8dcc747a57792ce3db8d13",
|
|
862
862
|
"affectsGlobalScope": false
|
|
863
863
|
},
|
|
@@ -882,7 +882,7 @@
|
|
|
882
882
|
"affectsGlobalScope": false
|
|
883
883
|
},
|
|
884
884
|
"../src/_services/dynamo-nts-api.service.ts": {
|
|
885
|
-
"version": "
|
|
885
|
+
"version": "9706eec6a0348f363c59902a9cc37ec571504821bcd3a9371ba5e089a412755f",
|
|
886
886
|
"signature": "84395ddfc185bcc1bed6012cc8e21ccf993ce16101acd3527c09133a96aa40fe",
|
|
887
887
|
"affectsGlobalScope": false
|
|
888
888
|
},
|
|
@@ -907,8 +907,8 @@
|
|
|
907
907
|
"affectsGlobalScope": false
|
|
908
908
|
},
|
|
909
909
|
"../node_modules/@futdevpro/fsm-dynamo/lib/_modules/error-module.index.d.ts": {
|
|
910
|
-
"version": "
|
|
911
|
-
"signature": "
|
|
910
|
+
"version": "03403501bc2718d697a9a1322702f90eeb555a774d62f7ca9d42bf451d5e667c",
|
|
911
|
+
"signature": "03403501bc2718d697a9a1322702f90eeb555a774d62f7ca9d42bf451d5e667c",
|
|
912
912
|
"affectsGlobalScope": false
|
|
913
913
|
},
|
|
914
914
|
"../src/_modules/api-service.index.ts": {
|
|
@@ -1185,9 +1185,9 @@
|
|
|
1185
1185
|
"../node_modules/@types/node/ts3.2/util.d.ts",
|
|
1186
1186
|
"../node_modules/@types/node/util.d.ts"
|
|
1187
1187
|
],
|
|
1188
|
-
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/
|
|
1188
|
+
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/dynamo-nts-data-params.d.ts": [
|
|
1189
1189
|
"../node_modules/@futdevpro/fsm-dynamo/lib/_enums/index.d.ts",
|
|
1190
|
-
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/
|
|
1190
|
+
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/dynamo-nts-data-property-params.d.ts",
|
|
1191
1191
|
"../node_modules/@types/node/fs.d.ts",
|
|
1192
1192
|
"../node_modules/@types/node/process.d.ts",
|
|
1193
1193
|
"../node_modules/@types/node/ts3.2/fs.d.ts",
|
|
@@ -1195,7 +1195,7 @@
|
|
|
1195
1195
|
"../node_modules/@types/node/ts3.2/util.d.ts",
|
|
1196
1196
|
"../node_modules/@types/node/util.d.ts"
|
|
1197
1197
|
],
|
|
1198
|
-
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/
|
|
1198
|
+
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/dynamo-nts-data-property-params.d.ts": [
|
|
1199
1199
|
"../node_modules/@types/node/fs.d.ts",
|
|
1200
1200
|
"../node_modules/@types/node/process.d.ts",
|
|
1201
1201
|
"../node_modules/@types/node/ts3.2/fs.d.ts",
|
|
@@ -1203,7 +1203,7 @@
|
|
|
1203
1203
|
"../node_modules/@types/node/ts3.2/util.d.ts",
|
|
1204
1204
|
"../node_modules/@types/node/util.d.ts"
|
|
1205
1205
|
],
|
|
1206
|
-
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/
|
|
1206
|
+
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/dynamo-nts-error.d.ts": [
|
|
1207
1207
|
"../node_modules/@types/node/fs.d.ts",
|
|
1208
1208
|
"../node_modules/@types/node/process.d.ts",
|
|
1209
1209
|
"../node_modules/@types/node/ts3.2/fs.d.ts",
|
|
@@ -1245,7 +1245,7 @@
|
|
|
1245
1245
|
"../node_modules/@types/node/util.d.ts"
|
|
1246
1246
|
],
|
|
1247
1247
|
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/data-models/custom-data.d.ts": [
|
|
1248
|
-
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/
|
|
1248
|
+
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/dynamo-nts-data-params.d.ts",
|
|
1249
1249
|
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/data-models/metadata.d.ts",
|
|
1250
1250
|
"../node_modules/@types/node/fs.d.ts",
|
|
1251
1251
|
"../node_modules/@types/node/process.d.ts",
|
|
@@ -1263,7 +1263,7 @@
|
|
|
1263
1263
|
"../node_modules/@types/node/util.d.ts"
|
|
1264
1264
|
],
|
|
1265
1265
|
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/data-models/usage-session.d.ts": [
|
|
1266
|
-
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/
|
|
1266
|
+
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/dynamo-nts-data-params.d.ts",
|
|
1267
1267
|
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/geo-ip-location.d.ts",
|
|
1268
1268
|
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/usage-data.d.ts",
|
|
1269
1269
|
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/data-models/metadata.d.ts",
|
|
@@ -1276,9 +1276,9 @@
|
|
|
1276
1276
|
],
|
|
1277
1277
|
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/index.d.ts": [
|
|
1278
1278
|
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/daily-usage-data.d.ts",
|
|
1279
|
-
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/
|
|
1280
|
-
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/
|
|
1281
|
-
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/
|
|
1279
|
+
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/dynamo-nts-data-params.d.ts",
|
|
1280
|
+
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/dynamo-nts-data-property-params.d.ts",
|
|
1281
|
+
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/dynamo-nts-error.d.ts",
|
|
1282
1282
|
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/geo-ip-location.d.ts",
|
|
1283
1283
|
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/location-coordinates.d.ts",
|
|
1284
1284
|
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/usage-action.d.ts",
|
|
@@ -1294,7 +1294,7 @@
|
|
|
1294
1294
|
"../node_modules/@types/node/util.d.ts"
|
|
1295
1295
|
],
|
|
1296
1296
|
"../node_modules/@futdevpro/fsm-dynamo/lib/_modules/error-module.index.d.ts": [
|
|
1297
|
-
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/
|
|
1297
|
+
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/dynamo-nts-error.d.ts",
|
|
1298
1298
|
"../node_modules/@types/node/fs.d.ts",
|
|
1299
1299
|
"../node_modules/@types/node/process.d.ts",
|
|
1300
1300
|
"../node_modules/@types/node/ts3.2/fs.d.ts",
|
|
@@ -1306,7 +1306,7 @@
|
|
|
1306
1306
|
"../node_modules/@futdevpro/fsm-dynamo/lib/_collections/dynamo-shared.service.d.ts",
|
|
1307
1307
|
"../node_modules/@futdevpro/fsm-dynamo/lib/_constants/times.d.ts",
|
|
1308
1308
|
"../node_modules/@futdevpro/fsm-dynamo/lib/_enums/log-style.enum.d.ts",
|
|
1309
|
-
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/
|
|
1309
|
+
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/dynamo-nts-error.d.ts",
|
|
1310
1310
|
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/geo-ip-location.d.ts",
|
|
1311
1311
|
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/location-coordinates.d.ts",
|
|
1312
1312
|
"../node_modules/@types/node/fs.d.ts",
|
|
@@ -3386,9 +3386,9 @@
|
|
|
3386
3386
|
"../node_modules/@types/node/ts3.2/util.d.ts",
|
|
3387
3387
|
"../node_modules/@types/node/util.d.ts"
|
|
3388
3388
|
],
|
|
3389
|
-
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/
|
|
3389
|
+
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/dynamo-nts-data-params.d.ts": [
|
|
3390
3390
|
"../node_modules/@futdevpro/fsm-dynamo/lib/_enums/index.d.ts",
|
|
3391
|
-
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/
|
|
3391
|
+
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/dynamo-nts-data-property-params.d.ts",
|
|
3392
3392
|
"../node_modules/@types/node/fs.d.ts",
|
|
3393
3393
|
"../node_modules/@types/node/process.d.ts",
|
|
3394
3394
|
"../node_modules/@types/node/ts3.2/fs.d.ts",
|
|
@@ -3396,7 +3396,7 @@
|
|
|
3396
3396
|
"../node_modules/@types/node/ts3.2/util.d.ts",
|
|
3397
3397
|
"../node_modules/@types/node/util.d.ts"
|
|
3398
3398
|
],
|
|
3399
|
-
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/
|
|
3399
|
+
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/dynamo-nts-data-property-params.d.ts": [
|
|
3400
3400
|
"../node_modules/@types/node/fs.d.ts",
|
|
3401
3401
|
"../node_modules/@types/node/process.d.ts",
|
|
3402
3402
|
"../node_modules/@types/node/ts3.2/fs.d.ts",
|
|
@@ -3404,7 +3404,7 @@
|
|
|
3404
3404
|
"../node_modules/@types/node/ts3.2/util.d.ts",
|
|
3405
3405
|
"../node_modules/@types/node/util.d.ts"
|
|
3406
3406
|
],
|
|
3407
|
-
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/
|
|
3407
|
+
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/dynamo-nts-error.d.ts": [
|
|
3408
3408
|
"../node_modules/@types/node/fs.d.ts",
|
|
3409
3409
|
"../node_modules/@types/node/process.d.ts",
|
|
3410
3410
|
"../node_modules/@types/node/ts3.2/fs.d.ts",
|
|
@@ -3446,7 +3446,7 @@
|
|
|
3446
3446
|
"../node_modules/@types/node/util.d.ts"
|
|
3447
3447
|
],
|
|
3448
3448
|
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/data-models/custom-data.d.ts": [
|
|
3449
|
-
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/
|
|
3449
|
+
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/dynamo-nts-data-params.d.ts",
|
|
3450
3450
|
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/data-models/metadata.d.ts",
|
|
3451
3451
|
"../node_modules/@types/node/fs.d.ts",
|
|
3452
3452
|
"../node_modules/@types/node/process.d.ts",
|
|
@@ -3464,7 +3464,7 @@
|
|
|
3464
3464
|
"../node_modules/@types/node/util.d.ts"
|
|
3465
3465
|
],
|
|
3466
3466
|
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/data-models/usage-session.d.ts": [
|
|
3467
|
-
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/
|
|
3467
|
+
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/dynamo-nts-data-params.d.ts",
|
|
3468
3468
|
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/geo-ip-location.d.ts",
|
|
3469
3469
|
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/usage-data.d.ts",
|
|
3470
3470
|
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/data-models/metadata.d.ts",
|
|
@@ -3477,9 +3477,9 @@
|
|
|
3477
3477
|
],
|
|
3478
3478
|
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/index.d.ts": [
|
|
3479
3479
|
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/daily-usage-data.d.ts",
|
|
3480
|
-
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/
|
|
3481
|
-
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/
|
|
3482
|
-
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/
|
|
3480
|
+
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/dynamo-nts-data-params.d.ts",
|
|
3481
|
+
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/dynamo-nts-data-property-params.d.ts",
|
|
3482
|
+
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/dynamo-nts-error.d.ts",
|
|
3483
3483
|
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/geo-ip-location.d.ts",
|
|
3484
3484
|
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/location-coordinates.d.ts",
|
|
3485
3485
|
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/usage-action.d.ts",
|
|
@@ -3495,7 +3495,7 @@
|
|
|
3495
3495
|
"../node_modules/@types/node/util.d.ts"
|
|
3496
3496
|
],
|
|
3497
3497
|
"../node_modules/@futdevpro/fsm-dynamo/lib/_modules/error-module.index.d.ts": [
|
|
3498
|
-
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/
|
|
3498
|
+
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/dynamo-nts-error.d.ts",
|
|
3499
3499
|
"../node_modules/@types/node/fs.d.ts",
|
|
3500
3500
|
"../node_modules/@types/node/process.d.ts",
|
|
3501
3501
|
"../node_modules/@types/node/ts3.2/fs.d.ts",
|
|
@@ -3507,7 +3507,7 @@
|
|
|
3507
3507
|
"../node_modules/@futdevpro/fsm-dynamo/lib/_collections/dynamo-shared.service.d.ts",
|
|
3508
3508
|
"../node_modules/@futdevpro/fsm-dynamo/lib/_constants/times.d.ts",
|
|
3509
3509
|
"../node_modules/@futdevpro/fsm-dynamo/lib/_enums/log-style.enum.d.ts",
|
|
3510
|
-
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/
|
|
3510
|
+
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/dynamo-nts-error.d.ts",
|
|
3511
3511
|
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/geo-ip-location.d.ts",
|
|
3512
3512
|
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/location-coordinates.d.ts",
|
|
3513
3513
|
"../node_modules/@types/node/fs.d.ts",
|
|
@@ -5163,9 +5163,9 @@
|
|
|
5163
5163
|
"../node_modules/@futdevpro/fsm-dynamo/lib/_enums/log-style.enum.d.ts",
|
|
5164
5164
|
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/daily-usage-data.d.ts",
|
|
5165
5165
|
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/dynamo-module-settings.d.ts",
|
|
5166
|
-
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/
|
|
5167
|
-
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/
|
|
5168
|
-
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/
|
|
5166
|
+
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/dynamo-nts-data-params.d.ts",
|
|
5167
|
+
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/dynamo-nts-data-property-params.d.ts",
|
|
5168
|
+
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/dynamo-nts-error.d.ts",
|
|
5169
5169
|
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/geo-ip-location.d.ts",
|
|
5170
5170
|
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/location-coordinates.d.ts",
|
|
5171
5171
|
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/usage-action.d.ts",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@futdevpro/nts-dynamo",
|
|
3
|
-
"version": "01.05.
|
|
3
|
+
"version": "01.05.32",
|
|
4
4
|
"description": "Dynamic NodeTS (NodeJS-Typescript), MongoDB Backend System Framework by Future Development Ltd.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "npx tsc",
|
|
@@ -158,7 +158,8 @@
|
|
|
158
158
|
},
|
|
159
159
|
"homepage": "https:/futdevpro.hu/projects/dynamo",
|
|
160
160
|
"peerDependencies": {
|
|
161
|
-
"@futdevpro/fsm-dynamo": "^1.5.
|
|
161
|
+
"@futdevpro/fsm-dynamo": "^1.5.24",
|
|
162
|
+
|
|
162
163
|
"@types/express": "^4.17.7",
|
|
163
164
|
"@types/geoip-lite": "^1.4.1",
|
|
164
165
|
"@types/nodemailer": "^6.4.4",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import { Request } from 'express';
|
|
3
|
-
import {
|
|
3
|
+
import { DynamoNTS_Error } from '@futdevpro/fsm-dynamo';
|
|
4
4
|
import { DynamoUsageSession, usageSessionModelParams, DynamoUsageData,
|
|
5
5
|
DailyUsageData } from '@futdevpro/fsm-dynamo/usage-module';
|
|
6
6
|
|
|
@@ -33,7 +33,7 @@ export class UsageService extends DynamoNTS_DataService<DynamoUsageSession> {
|
|
|
33
33
|
|
|
34
34
|
/* console.log(`...getLocationDataFromRequest... ip: ${this.data.address}`, this.data.locationData); */
|
|
35
35
|
} catch (error) {
|
|
36
|
-
throw new
|
|
36
|
+
throw new DynamoNTS_Error({
|
|
37
37
|
status: 417, message: 'getLocationDataFromRequest was unsuccessful',
|
|
38
38
|
userMessage: `We were unable to deep analyze your request.`,
|
|
39
39
|
error
|
|
@@ -85,7 +85,7 @@ export class UsageService extends DynamoNTS_DataService<DynamoUsageSession> {
|
|
|
85
85
|
});
|
|
86
86
|
|
|
87
87
|
} catch (error) {
|
|
88
|
-
throw new
|
|
88
|
+
throw new DynamoNTS_Error({
|
|
89
89
|
status: 417, message: 'getDailyUsage was unsuccessful',
|
|
90
90
|
userMessage: `We've failed to collect last week's usage data.`,
|
|
91
91
|
error
|
|
@@ -107,7 +107,7 @@ export class UsageService extends DynamoNTS_DataService<DynamoUsageSession> {
|
|
|
107
107
|
this.data.totalSessionTime = totalTime;
|
|
108
108
|
await this.saveData();
|
|
109
109
|
} catch (error) {
|
|
110
|
-
throw new
|
|
110
|
+
throw new DynamoNTS_Error({
|
|
111
111
|
status: 417, message: 'updateSessionData was unsuccessful',
|
|
112
112
|
userMessage: `The attempt to update Usage Data was unsuccessful.`,
|
|
113
113
|
error
|
|
@@ -128,7 +128,7 @@ export class UsageService extends DynamoNTS_DataService<DynamoUsageSession> {
|
|
|
128
128
|
this.data.totalSessionTime = newTotalSessionTime;
|
|
129
129
|
await this.saveData();
|
|
130
130
|
} catch (error) {
|
|
131
|
-
throw new
|
|
131
|
+
throw new DynamoNTS_Error({
|
|
132
132
|
status: 417, message: 'closeSession was unsuccessful',
|
|
133
133
|
userMessage: `The attempt to close Usage Session was unsuccessful.`,
|
|
134
134
|
error
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import * as Axios from 'axios';
|
|
3
|
-
import {
|
|
3
|
+
import { DynamoNTS_Error } from '@futdevpro/fsm-dynamo';
|
|
4
4
|
|
|
5
5
|
import { HttpCallType } from '../_enums/http/http-call-type.enum';
|
|
6
6
|
import { HttpResponseType } from '../_enums/http/http-response-type.enum';
|
|
@@ -145,16 +145,16 @@ export class DynamoNTS_ApiService {
|
|
|
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
|
-
throw new
|
|
148
|
+
throw new DynamoNTS_Error(error.response.data);
|
|
149
149
|
} else if (error.code === 'ENOTFOUND') {
|
|
150
150
|
DynamoNTS_Shared.logError(`\n${callParams.name} was UNSUCCESSFUL\n\n`, new Error());
|
|
151
|
-
throw new
|
|
151
|
+
throw new DynamoNTS_Error({
|
|
152
152
|
status: 404, message: 'DNS error; address cannot be resolved!',
|
|
153
153
|
userMessage: `We encountered a BackEnd API Error, please contact the responsible development team. errorcode: 965-453-300`,
|
|
154
154
|
error: error
|
|
155
155
|
});
|
|
156
156
|
} else if (error.config && error.message) {
|
|
157
|
-
throw new
|
|
157
|
+
throw new DynamoNTS_Error({
|
|
158
158
|
status: +error.message.substring(error.message.length - 4, 3),
|
|
159
159
|
userMessage: `We encountered a BackEnd API Error, please contact the responsible development team. errorcode: 965-453-303`,
|
|
160
160
|
error: error
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import { NextFunction, Request, Response } from 'express';
|
|
3
|
-
import {
|
|
3
|
+
import { DynamoNTS_Error } from '@futdevpro/fsm-dynamo';
|
|
4
4
|
|
|
5
5
|
import { DynamoNTS_SingletonService } from './dynamo-nts-singleton.service';
|
|
6
6
|
|
|
@@ -29,14 +29,14 @@ export abstract class DynamoNTS_AuthService extends DynamoNTS_SingletonService {
|
|
|
29
29
|
static getTokenFromRequest(req: Request): string {
|
|
30
30
|
const authHeader = req.headers['authorization'];
|
|
31
31
|
if (!authHeader) {
|
|
32
|
-
throw new
|
|
32
|
+
throw new DynamoNTS_Error({
|
|
33
33
|
message: 'AuthHeader missing!',
|
|
34
34
|
userMessage: `We encountered a BackEnd Auth Error, please contact the responsible development team. errorcode: 007-636-500`,
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
37
|
const token = authHeader.split(' ')[1];
|
|
38
38
|
if (!token) {
|
|
39
|
-
throw new
|
|
39
|
+
throw new DynamoNTS_Error({
|
|
40
40
|
message: 'Token missing!',
|
|
41
41
|
userMessage: `We encountered a BackEnd Auth Error, please contact the responsible development team. errorcode: 007-636-501`,
|
|
42
42
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import { Metadata,
|
|
2
|
+
import { Metadata, DynamoNTS_DataParams, DynamoNTS_DataPropertyParams, DynamoNTS_Error } from '@futdevpro/fsm-dynamo';
|
|
3
3
|
|
|
4
4
|
import { DynamoNTS_DBService } from './dynamo-nts-db.service';
|
|
5
5
|
import { DynamoNTS_GlobalService } from './dynamo-nts-global.service';
|
|
@@ -14,11 +14,11 @@ export class DynamoNTS_DataService<T extends Metadata> {
|
|
|
14
14
|
depDBServiceKey?: string;
|
|
15
15
|
|
|
16
16
|
// dataModelParams?: DynamoBEDataPropertyParams[] = [];
|
|
17
|
-
dataParams:
|
|
17
|
+
dataParams: DynamoNTS_DataParams;
|
|
18
18
|
|
|
19
19
|
constructor(
|
|
20
20
|
data: T,
|
|
21
|
-
dataParams:
|
|
21
|
+
dataParams: DynamoNTS_DataParams,
|
|
22
22
|
issuer?: string,
|
|
23
23
|
) {
|
|
24
24
|
this.dataDBService = DynamoNTS_GlobalService.getDBService<T>(dataParams);
|
|
@@ -38,7 +38,7 @@ export class DynamoNTS_DataService<T extends Metadata> {
|
|
|
38
38
|
this.dataList = dataList;
|
|
39
39
|
});
|
|
40
40
|
} catch (error) {
|
|
41
|
-
throw new
|
|
41
|
+
throw new DynamoNTS_Error({
|
|
42
42
|
status: 417, message: 'getAll was unsuccessful',
|
|
43
43
|
userMessage: `We encountered a DB Error, please contact the responsible development team. errorcode: 744-234-130`,
|
|
44
44
|
error: error
|
|
@@ -61,14 +61,14 @@ export class DynamoNTS_DataService<T extends Metadata> {
|
|
|
61
61
|
});
|
|
62
62
|
return dataExists;
|
|
63
63
|
} else {
|
|
64
|
-
throw new
|
|
64
|
+
throw new DynamoNTS_Error({
|
|
65
65
|
status: 417, message: `ID is missing! (maybe you wanted to use getDataByDependencyId instead...)`,
|
|
66
66
|
userMessage: `We encountered a DB Error, please contact the responsible development team. errorcode: 744-234-131B`,
|
|
67
67
|
error: new Error()
|
|
68
68
|
});
|
|
69
69
|
}
|
|
70
70
|
} catch (error) {
|
|
71
|
-
throw new
|
|
71
|
+
throw new DynamoNTS_Error({
|
|
72
72
|
status: 417, message: 'getDataById was unsuccessful',
|
|
73
73
|
userMessage: `We encountered a DB Error, please contact the responsible development team. errorcode: 744-234-131A`,
|
|
74
74
|
error: error
|
|
@@ -93,21 +93,21 @@ export class DynamoNTS_DataService<T extends Metadata> {
|
|
|
93
93
|
});
|
|
94
94
|
return dataExists;
|
|
95
95
|
} else {
|
|
96
|
-
throw new
|
|
96
|
+
throw new DynamoNTS_Error({
|
|
97
97
|
status: 417, message: `${this.depKey} is missing!`,
|
|
98
98
|
userMessage: `We encountered a DB Error, please contact the responsible development team. errorcode: 744-234-132C`,
|
|
99
99
|
error: new Error()
|
|
100
100
|
});
|
|
101
101
|
}
|
|
102
102
|
} else {
|
|
103
|
-
throw new
|
|
103
|
+
throw new DynamoNTS_Error({
|
|
104
104
|
status: 417, message: 'dependencyDataIdKey is missing from service!',
|
|
105
105
|
userMessage: `We encountered a DB Error, please contact the responsible development team. errorcode: 744-234-132B`,
|
|
106
106
|
error: new Error()
|
|
107
107
|
});
|
|
108
108
|
}
|
|
109
109
|
} catch (error) {
|
|
110
|
-
throw new
|
|
110
|
+
throw new DynamoNTS_Error({
|
|
111
111
|
status: 417, message: 'getDataByDependencyId was unsuccessful',
|
|
112
112
|
userMessage: `We encountered a DB Error, please contact the responsible development team. errorcode: 744-234-132A`,
|
|
113
113
|
error: error
|
|
@@ -127,21 +127,21 @@ export class DynamoNTS_DataService<T extends Metadata> {
|
|
|
127
127
|
this.dataList = data;
|
|
128
128
|
});
|
|
129
129
|
} else {
|
|
130
|
-
throw new
|
|
130
|
+
throw new DynamoNTS_Error({
|
|
131
131
|
status: 417, message: `${this.depKey} is missing!`,
|
|
132
132
|
userMessage: `We encountered a DB Error, please contact the responsible development team. errorcode: 744-234-133C`,
|
|
133
133
|
error: new Error()
|
|
134
134
|
});
|
|
135
135
|
}
|
|
136
136
|
} else {
|
|
137
|
-
throw new
|
|
137
|
+
throw new DynamoNTS_Error({
|
|
138
138
|
status: 417, message: 'dependencyDataIdKey is missing from service!',
|
|
139
139
|
userMessage: `We encountered a DB Error, please contact the responsible development team. errorcode: 744-234-133B`,
|
|
140
140
|
error: new Error()
|
|
141
141
|
});
|
|
142
142
|
}
|
|
143
143
|
} catch (error) {
|
|
144
|
-
throw new
|
|
144
|
+
throw new DynamoNTS_Error({ status: 417,
|
|
145
145
|
message: 'getDataListByDependencyId was unsuccessful',
|
|
146
146
|
userMessage: `We encountered a DB Error, please contact the responsible development team. errorcode: 744-234-133A`,
|
|
147
147
|
error: error
|
|
@@ -171,14 +171,14 @@ export class DynamoNTS_DataService<T extends Metadata> {
|
|
|
171
171
|
dependencyExists = !!dep;
|
|
172
172
|
});
|
|
173
173
|
if (!dependencyExists) {
|
|
174
|
-
throw new
|
|
174
|
+
throw new DynamoNTS_Error({ status: 417,
|
|
175
175
|
message: `saveData was unsuccessful: dependency data not exists (key: ${this.depKey}, id: ${this.data[this.depKey]})`,
|
|
176
176
|
userMessage: `We encountered a DB Error, please contact the responsible development team. errorcode: 744-234-333A`,
|
|
177
177
|
error: new Error()
|
|
178
178
|
});
|
|
179
179
|
}
|
|
180
180
|
} else {
|
|
181
|
-
throw new
|
|
181
|
+
throw new DynamoNTS_Error({ status: 417,
|
|
182
182
|
message: `saveData was unsuccessful: dependency data id missing from data (key: ${this.depKey})`,
|
|
183
183
|
userMessage: `We encountered a DB Error, please contact the responsible development team. errorcode: 744-234-333B`,
|
|
184
184
|
error: new Error()
|
|
@@ -202,7 +202,7 @@ export class DynamoNTS_DataService<T extends Metadata> {
|
|
|
202
202
|
});
|
|
203
203
|
}
|
|
204
204
|
} catch (error) {
|
|
205
|
-
throw new
|
|
205
|
+
throw new DynamoNTS_Error({
|
|
206
206
|
status: 417, message: `modifyData was unsuccessful (${this.dataParams.dataName})`,
|
|
207
207
|
userMessage: `We encountered a DB Error, please contact the responsible development team. errorcode: 744-234-222`,
|
|
208
208
|
error: error
|
|
@@ -218,10 +218,10 @@ export class DynamoNTS_DataService<T extends Metadata> {
|
|
|
218
218
|
if (this.data._id) {
|
|
219
219
|
await this.dataDBService.deleteDataById(this.data._id);
|
|
220
220
|
} else {
|
|
221
|
-
throw new
|
|
221
|
+
throw new DynamoNTS_Error({ status: 417, message: 'ID is missing!' });
|
|
222
222
|
}
|
|
223
223
|
} catch (error) {
|
|
224
|
-
throw new
|
|
224
|
+
throw new DynamoNTS_Error({
|
|
225
225
|
status: 417, message: 'deleteData was unsuccessful',
|
|
226
226
|
userMessage: `We encountered a DB Error, please contact the responsible development team. errorcode: 744-234-223`,
|
|
227
227
|
error: error
|
|
@@ -238,11 +238,11 @@ export class DynamoNTS_DataService<T extends Metadata> {
|
|
|
238
238
|
// basic required validations
|
|
239
239
|
if ((this.dataParams.modelParams[i].required && (this.data[this.dataParams.modelParams[i].key] === null || this.data[this.dataParams.modelParams[i].key] === undefined)) ||
|
|
240
240
|
(this.dataParams.modelParams[i].index && (this.data[this.dataParams.modelParams[i].key] === null || this.data[this.dataParams.modelParams[i].key] === undefined))) {
|
|
241
|
-
throw new
|
|
241
|
+
throw new DynamoNTS_Error({ status: 422, message: `${this.dataParams.modelParams[i].key} is missing! (${this.dataParams.modelParams[i].required ? 'required' : 'index'})` });
|
|
242
242
|
}
|
|
243
243
|
// specific Date validation
|
|
244
244
|
if (this.dataParams.modelParams[i].type === 'Date' && !(new Date(this.data[this.dataParams.modelParams[i].key]) instanceof Date)) {
|
|
245
|
-
throw new
|
|
245
|
+
throw new DynamoNTS_Error({ status: 422, message: `${this.dataParams.modelParams[i].key} is not a date!` });
|
|
246
246
|
}
|
|
247
247
|
// call additional validators
|
|
248
248
|
if (this.dataParams.modelParams[i].additionalValidators) {
|
|
@@ -252,7 +252,7 @@ export class DynamoNTS_DataService<T extends Metadata> {
|
|
|
252
252
|
}
|
|
253
253
|
}
|
|
254
254
|
} catch (error) {
|
|
255
|
-
throw new
|
|
255
|
+
throw new DynamoNTS_Error({
|
|
256
256
|
status: 422, message: 'validateForSave was unsuccessful',
|
|
257
257
|
userMessage: `We encountered a DB Error, please contact the responsible development team. errorcode: 744-234-220`,
|
|
258
258
|
error: error
|
|
@@ -264,7 +264,7 @@ export class DynamoNTS_DataService<T extends Metadata> {
|
|
|
264
264
|
* setting up dependency dataHook by DynamoBEDataModelParams
|
|
265
265
|
*/
|
|
266
266
|
private lookForDependencyDataSettings(): void {
|
|
267
|
-
const dependencyParam:
|
|
267
|
+
const dependencyParam: DynamoNTS_DataPropertyParams = this.dataParams.modelParams.find((modelParams: DynamoNTS_DataPropertyParams) => modelParams.isDependencyHook);
|
|
268
268
|
if (dependencyParam) {
|
|
269
269
|
this.depKey = dependencyParam.key;
|
|
270
270
|
if (dependencyParam.dependencyName) {
|
|
@@ -281,7 +281,7 @@ export class DynamoNTS_DataService<T extends Metadata> {
|
|
|
281
281
|
if (this.depDBServiceKey) {
|
|
282
282
|
return DynamoNTS_GlobalService.getDBService(this.dataParams);
|
|
283
283
|
} else {
|
|
284
|
-
throw new
|
|
284
|
+
throw new DynamoNTS_Error({
|
|
285
285
|
status: 501, message: 'getDependencyDataDBService was unsuccessful, service key not setted up!',
|
|
286
286
|
userMessage: `We encountered a DB Error, please contact the responsible development team. errorcode: 744-234-200`,
|
|
287
287
|
error: new Error()
|