@futdevpro/nts-dynamo 1.3.73 → 1.3.75

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 (54) hide show
  1. package/lib/_constants/dynamobe-global.settings.d.ts +1 -1
  2. package/lib/_constants/dynamobe-global.settings.d.ts.map +1 -1
  3. package/lib/_constants/dynamobe-global.settings.js +3 -2
  4. package/lib/_constants/dynamobe-global.settings.js.map +1 -1
  5. package/lib/_constants/index.d.ts +4 -0
  6. package/lib/_constants/index.d.ts.map +1 -0
  7. package/lib/_constants/index.js +7 -0
  8. package/lib/_constants/index.js.map +1 -0
  9. package/lib/_models/dynamobe-global-settings.d.ts +2 -1
  10. package/lib/_models/dynamobe-global-settings.d.ts.map +1 -1
  11. package/lib/_modules/test/test-routing-module.d.ts +2 -2
  12. package/lib/_modules/test/test-routing-module.d.ts.map +1 -1
  13. package/lib/_modules/test/test-routing-module.js +4 -4
  14. package/lib/_modules/test/test-routing-module.js.map +1 -1
  15. package/lib/_modules/usage/usage-routing-module.d.ts +2 -2
  16. package/lib/_modules/usage/usage-routing-module.d.ts.map +1 -1
  17. package/lib/_modules/usage/usage-routing-module.js +5 -5
  18. package/lib/_modules/usage/usage-routing-module.js.map +1 -1
  19. package/lib/_services/dynamobe-app.d.ts +2 -2
  20. package/lib/_services/dynamobe-app.d.ts.map +1 -1
  21. package/lib/_services/dynamobe-app.js +7 -7
  22. package/lib/_services/dynamobe-app.js.map +1 -1
  23. package/lib/_services/dynamobe-global.service.d.ts +0 -2
  24. package/lib/_services/dynamobe-global.service.d.ts.map +1 -1
  25. package/lib/_services/dynamobe-global.service.js +33 -41
  26. package/lib/_services/dynamobe-global.service.js.map +1 -1
  27. package/lib/_services/dynamobe-routing-module.service.d.ts +7 -8
  28. package/lib/_services/dynamobe-routing-module.service.d.ts.map +1 -1
  29. package/lib/_services/dynamobe-routing-module.service.js +9 -12
  30. package/lib/_services/dynamobe-routing-module.service.js.map +1 -1
  31. package/lib/app.d.ts +1 -0
  32. package/lib/app.d.ts.map +1 -1
  33. package/lib/app.js +2 -0
  34. package/lib/app.js.map +1 -1
  35. package/lib/dynamobe-global.settings.d.ts.map +1 -1
  36. package/lib/dynamobe-global.settings.js +1 -0
  37. package/lib/dynamobe-global.settings.js.map +1 -1
  38. package/lib/index.d.ts +1 -0
  39. package/lib/index.d.ts.map +1 -1
  40. package/lib/index.js +2 -0
  41. package/lib/index.js.map +1 -1
  42. package/lib/tsconfig.tsbuildinfo +66 -57
  43. package/package.json +10 -1
  44. package/src/_constants/dynamobe-global.settings.ts +2 -2
  45. package/src/_constants/index.ts +4 -0
  46. package/src/_models/dynamobe-global-settings.ts +2 -1
  47. package/src/_modules/test/test-routing-module.ts +6 -4
  48. package/src/_modules/usage/usage-routing-module.ts +6 -4
  49. package/src/_services/dynamobe-app.ts +18 -18
  50. package/src/_services/dynamobe-global.service.ts +26 -16
  51. package/src/_services/dynamobe-routing-module.service.ts +14 -11
  52. package/src/app.ts +4 -0
  53. package/src/index.ts +3 -0
  54. package/src/dynamobe-global.settings.ts +0 -10
package/lib/index.js CHANGED
@@ -1,6 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
+ // CONSTANTS
5
+ tslib_1.__exportStar(require("./_constants/index"), exports);
4
6
  // ENUMS
5
7
  tslib_1.__exportStar(require("./_enums/index"), exports);
6
8
  // MODELS
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AACA,QAAQ;AACR,yDAA+B;AAE/B,SAAS;AACT,0DAAgC;AAEhC,WAAW;AACX,4DAAkC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AACA,YAAY;AACZ,6DAAmC;AAEnC,QAAQ;AACR,yDAA+B;AAE/B,SAAS;AACT,0DAAgC;AAEhC,WAAW;AACX,4DAAkC"}
@@ -531,16 +531,21 @@
531
531
  "signature": "d298bd3831d9ca38bafbaa4daf195f41f7a1bf141e114485411d292802612ec5",
532
532
  "affectsGlobalScope": false
533
533
  },
534
+ "../src/_models/dynamobe-global-settings.ts": {
535
+ "version": "2295ca9bd5dcfc612d9b07ff86920b6c6f5b6ecd964c10fcda1db04da00335dd",
536
+ "signature": "4fbab01ec3449a13b44653906c34853adbd8e034e1e1e3b857f79a687de56afa",
537
+ "affectsGlobalScope": false
538
+ },
539
+ "../src/_constants/dynamobe-global.settings.ts": {
540
+ "version": "6b11e0e2bae5ef188367041fc505df468a5b86659ae8ef9ec6750200704e420e",
541
+ "signature": "9dd1b81933c5c08302234a8075ef5f9c8cc174da9fc22f69bafae60e75d29cc8",
542
+ "affectsGlobalScope": false
543
+ },
534
544
  "../src/_models/fullstack/data-models/metadata.ts": {
535
545
  "version": "3516e88bb340706b4e5e0c75ff24ec79621cec501d7fd6ff5af3fe809efa173f",
536
546
  "signature": "3a6ad5b0efc28eef16cc0568bce7fb02abb8231bb6430fbe40c1c6252e6ab910",
537
547
  "affectsGlobalScope": false
538
548
  },
539
- "../src/_models/dynamobe-global-settings.ts": {
540
- "version": "aaa3527474b056626ad000bf8fb076de3dce217efab490f9d42bc385d8677cb9",
541
- "signature": "fb387e484f7eab1268be576aeb48beb0188a600a6b5987a9b0801f8a08f38c29",
542
- "affectsGlobalScope": false
543
- },
544
549
  "../src/_services/dynamobe-auth.service.ts": {
545
550
  "version": "9a6037adcbf32900a958d698507eb7b0f1c2c94a5389d287c1cfb3116f685239",
546
551
  "signature": "f7205c2d08a3f7125c35504d48fd057e454ad8b4cc9a390464451bd8b383224c",
@@ -647,8 +652,8 @@
647
652
  "affectsGlobalScope": false
648
653
  },
649
654
  "../src/_services/dynamobe-global.service.ts": {
650
- "version": "d7d56da1b3a68a4c06b1a9f991138766274756680ef112308bcc53e86abd5c59",
651
- "signature": "2e1858c2b521b894ad2a8103f4fde4792919fabecc30a27a8e12226315cd9e59",
655
+ "version": "0c8c7e286aa0010734294528f4b3dcaec491e24bfa08a67724bfcc98d5da4e92",
656
+ "signature": "ce31cc4e69ff881537f58b67dcd13f03be5ea4dc6378d4daf140dd9308549e75",
652
657
  "affectsGlobalScope": false
653
658
  },
654
659
  "../src/_models/dynamobe-endpoint-params.ts": {
@@ -662,13 +667,13 @@
662
667
  "affectsGlobalScope": false
663
668
  },
664
669
  "../src/_services/dynamobe-routing-module.service.ts": {
665
- "version": "48b49fc1f0a37f056d7093c5c3a8267526d3cfc3feb93cf20149cfa8cf447058",
666
- "signature": "0ebe2f6a1d3e99405a2c610871586feeea46b763e6e4164847b9d58298541bb9",
670
+ "version": "c5e3bdc06709bd6bd4cfcff6a50b222c39b346a5151d08fa7a6f8350f271cd18",
671
+ "signature": "1c5ee82c7daa73098c6f971e9979d7233cc392450bb5dde5bb9a0f8c43452ad3",
667
672
  "affectsGlobalScope": false
668
673
  },
669
674
  "../src/_services/dynamobe-app.ts": {
670
- "version": "7a4991c11d0933a121c479373d301da0e9829e46605754b601685599cca6f70c",
671
- "signature": "9e428294c7fd9d06c2914f0c789e834916df9802b71d9afc8f7d9caaa36e7b02",
675
+ "version": "19d56f2df7447f88131893ae145c00669b24bdce4afd1122573249455ec4ab42",
676
+ "signature": "14ebd273862fb791086141d2c1e1e2a6ee0a6fbc0e1ca10f44778ae71088b07b",
672
677
  "affectsGlobalScope": false
673
678
  },
674
679
  "../src/_models/fullstack/data-models/custom-data.ts": {
@@ -692,8 +697,8 @@
692
697
  "affectsGlobalScope": false
693
698
  },
694
699
  "../src/app.ts": {
695
- "version": "ac4edcd5ec19f96a87f490ba017294dc6f95fbee580336a72548a95011774e46",
696
- "signature": "e830f128883b8706e462d3a1c99d750a49c9f6c9d6ad7f9af34d76417843f051",
700
+ "version": "59d5c7cdb66f0f8d55a4f741bec081edb5151b4272d0654136fad8e009e5d91a",
701
+ "signature": "b9112a7b1c3a1acf2293e1e1a7cdeb82d43c87948617282ef3eab075ebe61fc9",
697
702
  "affectsGlobalScope": false
698
703
  },
699
704
  "../src/auth.ts": {
@@ -721,9 +726,24 @@
721
726
  "signature": "4f3b1387b1096d4e3bcad59fffec513168ac14e5d111a318127d28f01298c230",
722
727
  "affectsGlobalScope": false
723
728
  },
724
- "../src/dynamobe-global.settings.ts": {
725
- "version": "9eb9d0eac08867e5e14507f6d079972537e01774fa791483e1e1e2e022fd2abd",
726
- "signature": "9cf53dee82685e9f79477476828eb65ef2bed364cee3e39e858fdf81cef0c6a2",
729
+ "../src/_models/dynamo-module-settings.ts": {
730
+ "version": "bd92f0779854653b42fbc7cccad7104242e90fd8e84c50a99e59a81f94d68377",
731
+ "signature": "82e7139edfae38f5480a88d1621806a06c4b8694234d3d94a9d5b23486ab9947",
732
+ "affectsGlobalScope": false
733
+ },
734
+ "../src/_constants/fullstack/module-settings/test-module-settings.ts": {
735
+ "version": "5f57fa206b071d27d644d69fd85850396fd6ce3614c4dfae7810705df7756748",
736
+ "signature": "f2d44aa7417278219fdc033e6ddcf4584775e593ffa99331ac71260a6bb70717",
737
+ "affectsGlobalScope": false
738
+ },
739
+ "../src/_constants/fullstack/module-settings/usage-module-settings.ts": {
740
+ "version": "09229191639419d9818dce12513ff6c9fb7839ce0a3514c4b2d8eb2424769e16",
741
+ "signature": "304bd6467d166bf7525e76777bc8528f4f57e1e4a628e6b7fbfd08d4fab4b696",
742
+ "affectsGlobalScope": false
743
+ },
744
+ "../src/_constants/index.ts": {
745
+ "version": "e47f0faee1921b88c55b5810e2ba3972bb932f1e6a4a711da6026c49f95aaca8",
746
+ "signature": "9d709fe0a08b7b956e1110cace3aad04267a93f1516ca4f7407955d4f5ed3313",
727
747
  "affectsGlobalScope": false
728
748
  },
729
749
  "../src/_enums/data-model-type.enum.ts": {
@@ -767,28 +787,8 @@
767
787
  "affectsGlobalScope": false
768
788
  },
769
789
  "../src/index.ts": {
770
- "version": "30270d5d4d707895df83df3169f6a436c06013fddb1cdeb0f94a87b84e48a5ba",
771
- "signature": "75a4e6087d548ec8a757d19640f308e9253ce6b2e37e9ec03e03817bea31b8de",
772
- "affectsGlobalScope": false
773
- },
774
- "../src/_constants/dynamobe-global.settings.ts": {
775
- "version": "31cc3e492facb9b28ea927acebcd7f89f0ea54d511f85471fb94f8363baf9f2e",
776
- "signature": "c8bfc1b88eeb86c134a33d1c4f89ee6b4fdf4ced80ed3dd9173dd5aff9d7511a",
777
- "affectsGlobalScope": false
778
- },
779
- "../src/_models/dynamo-module-settings.ts": {
780
- "version": "bd92f0779854653b42fbc7cccad7104242e90fd8e84c50a99e59a81f94d68377",
781
- "signature": "82e7139edfae38f5480a88d1621806a06c4b8694234d3d94a9d5b23486ab9947",
782
- "affectsGlobalScope": false
783
- },
784
- "../src/_constants/fullstack/module-settings/test-module-settings.ts": {
785
- "version": "5f57fa206b071d27d644d69fd85850396fd6ce3614c4dfae7810705df7756748",
786
- "signature": "f2d44aa7417278219fdc033e6ddcf4584775e593ffa99331ac71260a6bb70717",
787
- "affectsGlobalScope": false
788
- },
789
- "../src/_constants/fullstack/module-settings/usage-module-settings.ts": {
790
- "version": "09229191639419d9818dce12513ff6c9fb7839ce0a3514c4b2d8eb2424769e16",
791
- "signature": "304bd6467d166bf7525e76777bc8528f4f57e1e4a628e6b7fbfd08d4fab4b696",
790
+ "version": "8865bf3ff15a93b84826f7a1d97cc348cce3f7b2434ec8855c487c32100e3f40",
791
+ "signature": "91eef30ecf59f49bf98473ccf96a13fed1c327c953c0a0cbceb4efd6f02f68c1",
792
792
  "affectsGlobalScope": false
793
793
  },
794
794
  "../src/_modules/test/custom-data.service.ts": {
@@ -802,8 +802,8 @@
802
802
  "affectsGlobalScope": false
803
803
  },
804
804
  "../src/_modules/test/test-routing-module.ts": {
805
- "version": "764687e0ef5e5d49a88ef18d44c8578e24a02206cb4a2c1417cba3bbc5901c60",
806
- "signature": "f5853b5c353b68e041b188c344583f3c29134bf5fe32d09fe58d450a9e476ade",
805
+ "version": "6c7bf047a20085c480099f5fe75a7f27b8d760c4a452148ee9caf53e3b2b62c7",
806
+ "signature": "83fd0981ea036b762f41cb0c9e4df84e7f73af94d2799dd74aefdc3e3b12eff3",
807
807
  "affectsGlobalScope": false
808
808
  },
809
809
  "../src/_modules/test/index.ts": {
@@ -822,8 +822,8 @@
822
822
  "affectsGlobalScope": false
823
823
  },
824
824
  "../src/_modules/usage/usage-routing-module.ts": {
825
- "version": "81330802b09dc1f93fddee9d2886599f9f7012a07ee20a74d875575f978106fa",
826
- "signature": "7d43cc1b94129ba5454708225c9e8e66be9614879ceea591590ec2d38f2a4cbd",
825
+ "version": "a1e77798e2077b4a9b0ad0069bc4dfb6aade92b54c6f575eaad37b2add470cb2",
826
+ "signature": "5914ceb5a232ab9da44cecb1e91c794ee6e01ec2f07bd839c3cb94e271c5ad21",
827
827
  "affectsGlobalScope": false
828
828
  },
829
829
  "../src/_modules/usage/index.ts": {
@@ -2005,6 +2005,17 @@
2005
2005
  "../node_modules/@types/node/util.d.ts",
2006
2006
  "../src/_models/dynamo-module-settings.ts"
2007
2007
  ],
2008
+ "../src/_constants/index.ts": [
2009
+ "../node_modules/@types/node/fs.d.ts",
2010
+ "../node_modules/@types/node/process.d.ts",
2011
+ "../node_modules/@types/node/ts3.2/fs.d.ts",
2012
+ "../node_modules/@types/node/ts3.2/process.d.ts",
2013
+ "../node_modules/@types/node/ts3.2/util.d.ts",
2014
+ "../node_modules/@types/node/util.d.ts",
2015
+ "../src/_constants/dynamobe-global.settings.ts",
2016
+ "../src/_constants/fullstack/module-settings/test-module-settings.ts",
2017
+ "../src/_constants/fullstack/module-settings/usage-module-settings.ts"
2018
+ ],
2008
2019
  "../src/_enums/data-model-type.enum.ts": [
2009
2020
  "../node_modules/@types/node/fs.d.ts",
2010
2021
  "../node_modules/@types/node/process.d.ts",
@@ -2289,6 +2300,7 @@
2289
2300
  "../node_modules/@types/node/ts3.2/process.d.ts",
2290
2301
  "../node_modules/@types/node/ts3.2/util.d.ts",
2291
2302
  "../node_modules/@types/node/util.d.ts",
2303
+ "../src/_constants/fullstack/module-settings/test-module-settings.ts",
2292
2304
  "../src/_modules/test/test-controller.ts",
2293
2305
  "../src/_services/dynamobe-routing-module.service.ts"
2294
2306
  ],
@@ -2327,6 +2339,7 @@
2327
2339
  "../node_modules/@types/node/ts3.2/process.d.ts",
2328
2340
  "../node_modules/@types/node/ts3.2/util.d.ts",
2329
2341
  "../node_modules/@types/node/util.d.ts",
2342
+ "../src/_constants/fullstack/module-settings/usage-module-settings.ts",
2330
2343
  "../src/_modules/usage/usage-controller.ts",
2331
2344
  "../src/_services/dynamobe-routing-module.service.ts"
2332
2345
  ],
@@ -2467,7 +2480,6 @@
2467
2480
  "../node_modules/@types/node/ts3.2/process.d.ts",
2468
2481
  "../node_modules/@types/node/ts3.2/util.d.ts",
2469
2482
  "../node_modules/@types/node/util.d.ts",
2470
- "../src/_enums/dynamobe-route-security.enum.ts",
2471
2483
  "../src/_models/dynamobe-global-settings.ts",
2472
2484
  "../src/_models/fullstack/control-models/dynamobe-data-params.ts",
2473
2485
  "../src/_models/fullstack/data-models/metadata.ts",
@@ -2485,6 +2497,7 @@
2485
2497
  "../node_modules/@types/node/ts3.2/process.d.ts",
2486
2498
  "../node_modules/@types/node/ts3.2/util.d.ts",
2487
2499
  "../node_modules/@types/node/util.d.ts",
2500
+ "../src/_constants/dynamobe-global.settings.ts",
2488
2501
  "../src/_enums/dynamobe-route-security.enum.ts",
2489
2502
  "../src/_enums/http/http-call-type.enum.ts",
2490
2503
  "../src/_models/dynamobe-endpoint-params.ts",
@@ -2556,6 +2569,7 @@
2556
2569
  "../node_modules/@types/node/ts3.2/process.d.ts",
2557
2570
  "../node_modules/@types/node/ts3.2/util.d.ts",
2558
2571
  "../node_modules/@types/node/util.d.ts",
2572
+ "../src/_constants/dynamobe-global.settings.ts",
2559
2573
  "../src/_enums/dynamobe-route-security.enum.ts",
2560
2574
  "../src/_models/dynamobe-app-params.ts",
2561
2575
  "../src/_models/dynamobe-endpoint-params.ts",
@@ -2613,16 +2627,6 @@
2613
2627
  "../src/_services/dynamobe-global.service.ts",
2614
2628
  "../src/_services/dynamobe-shared.service.ts"
2615
2629
  ],
2616
- "../src/dynamobe-global.settings.ts": [
2617
- "../node_modules/@types/node/fs.d.ts",
2618
- "../node_modules/@types/node/process.d.ts",
2619
- "../node_modules/@types/node/ts3.2/fs.d.ts",
2620
- "../node_modules/@types/node/ts3.2/process.d.ts",
2621
- "../node_modules/@types/node/ts3.2/util.d.ts",
2622
- "../node_modules/@types/node/util.d.ts",
2623
- "../src/_enums/dynamobe-route-security.enum.ts",
2624
- "../src/_models/dynamobe-global-settings.ts"
2625
- ],
2626
2630
  "../src/index.ts": [
2627
2631
  "../node_modules/@types/node/fs.d.ts",
2628
2632
  "../node_modules/@types/node/process.d.ts",
@@ -2630,6 +2634,7 @@
2630
2634
  "../node_modules/@types/node/ts3.2/process.d.ts",
2631
2635
  "../node_modules/@types/node/ts3.2/util.d.ts",
2632
2636
  "../node_modules/@types/node/util.d.ts",
2637
+ "../src/_constants/index.ts",
2633
2638
  "../src/_enums/index.ts",
2634
2639
  "../src/_models/index.ts",
2635
2640
  "../src/_services/index.ts"
@@ -3467,6 +3472,11 @@
3467
3472
  "../src/_constants/fullstack/module-settings/usage-module-settings.ts": [
3468
3473
  "../src/_models/dynamo-module-settings.ts"
3469
3474
  ],
3475
+ "../src/_constants/index.ts": [
3476
+ "../src/_constants/dynamobe-global.settings.ts",
3477
+ "../src/_constants/fullstack/module-settings/test-module-settings.ts",
3478
+ "../src/_constants/fullstack/module-settings/usage-module-settings.ts"
3479
+ ],
3470
3480
  "../src/_enums/index.ts": [
3471
3481
  "../src/_enums/data-model-type.enum.ts",
3472
3482
  "../src/_enums/dynamobe-data-service-function.enum.ts",
@@ -3646,6 +3656,7 @@
3646
3656
  "../src/_services/dynamobe-singleton.service.ts"
3647
3657
  ],
3648
3658
  "../src/app.ts": [
3659
+ "../src/_constants/dynamobe-global.settings.ts",
3649
3660
  "../src/_enums/dynamobe-route-security.enum.ts",
3650
3661
  "../src/_models/dynamobe-app-params.ts",
3651
3662
  "../src/_models/dynamobe-endpoint-params.ts",
@@ -3679,10 +3690,8 @@
3679
3690
  "../src/_services/dynamobe-global.service.ts",
3680
3691
  "../src/_services/dynamobe-shared.service.ts"
3681
3692
  ],
3682
- "../src/dynamobe-global.settings.ts": [
3683
- "../src/_models/dynamobe-global-settings.ts"
3684
- ],
3685
3693
  "../src/index.ts": [
3694
+ "../src/_constants/index.ts",
3686
3695
  "../src/_enums/index.ts",
3687
3696
  "../src/_models/index.ts",
3688
3697
  "../src/_services/index.ts"
@@ -3803,6 +3812,7 @@
3803
3812
  "../src/_constants/dynamobe-global.settings.ts",
3804
3813
  "../src/_constants/fullstack/module-settings/test-module-settings.ts",
3805
3814
  "../src/_constants/fullstack/module-settings/usage-module-settings.ts",
3815
+ "../src/_constants/index.ts",
3806
3816
  "../src/_enums/data-model-type.enum.ts",
3807
3817
  "../src/_enums/dynamobe-data-service-function.enum.ts",
3808
3818
  "../src/_enums/dynamobe-route-security.enum.ts",
@@ -3856,7 +3866,6 @@
3856
3866
  "../src/controller.ts",
3857
3867
  "../src/data-models.ts",
3858
3868
  "../src/data-service.ts",
3859
- "../src/dynamobe-global.settings.ts",
3860
3869
  "../src/index.ts"
3861
3870
  ]
3862
3871
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@futdevpro/nts-dynamo",
3
- "version": "01.03.73",
3
+ "version": "01.03.75",
4
4
  "description": "Dynamic NodeTS (NodeJS-Typescript), MongoDB Backend System Framework by Future Development Ltd.",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib/index.js",
@@ -13,6 +13,12 @@
13
13
  "types": "./lib/index.d.ts",
14
14
  "typings": "./lib/index.d.ts"
15
15
  },
16
+ "./constants": {
17
+ "default": "./lib/_constants/index.js",
18
+ "module": "./lib/_constants/index.js",
19
+ "types": "./lib/_constants/index.d.ts",
20
+ "typings": "./lib/_constants/index.d.ts"
21
+ },
16
22
  "./enums": {
17
23
  "default": "./lib/_enums/index.js",
18
24
  "module": "./lib/_enums/index.js",
@@ -87,6 +93,9 @@
87
93
  "enums": [
88
94
  "lib/_enums/index.d.ts"
89
95
  ],
96
+ "constants": [
97
+ "lib/_constants/index.d.ts"
98
+ ],
90
99
  "models": [
91
100
  "lib/_models/index.d.ts"
92
101
  ],
@@ -1,8 +1,8 @@
1
-
2
1
  import { DynamoBERouteSecurity } from '../_enums/dynamobe-route-security.enum';
3
2
  import { DynamoBEGlobalSettings } from '../_models/dynamobe-global-settings';
4
3
 
5
- export const dynamoBEDefaultGlobalSettings: DynamoBEGlobalSettings = {
4
+ export const dynamoBEGlobalSettings: DynamoBEGlobalSettings = {
5
+ baseUrl: '/api',
6
6
  defaultRouteSecurity: DynamoBERouteSecurity.open,
7
7
  logSetup: false,
8
8
  logRequests: true,
@@ -0,0 +1,4 @@
1
+
2
+ export * from './dynamobe-global.settings';
3
+ export * from './fullstack/module-settings/test-module-settings';
4
+ export * from './fullstack/module-settings/usage-module-settings';
@@ -1,7 +1,8 @@
1
1
  import { DynamoBERouteSecurity } from '../_enums/dynamobe-route-security.enum';
2
2
 
3
3
  export interface DynamoBEGlobalSettings {
4
- defaultRouteSecurity?: DynamoBERouteSecurity;
4
+ baseUrl: string;
5
+ defaultRouteSecurity: DynamoBERouteSecurity;
5
6
  logSetup?: boolean;
6
7
  logRequests?: boolean;
7
8
  logRequestsContent?: boolean;
@@ -1,7 +1,9 @@
1
- import { DynamoBERountingModule } from '../../_services/dynamobe-routing-module.service';
1
+
2
+ import { testModuleSettings } from '../../_constants/fullstack/module-settings/test-module-settings';
3
+ import { DynamoBERoutingModuleSettings } from '../../_services/dynamobe-routing-module.service';
2
4
  import { TestController } from './test-controller';
3
5
 
4
- export const testRoutingModule = new DynamoBERountingModule({
5
- route: '/api/test',
6
+ export const testRoutingModule: DynamoBERoutingModuleSettings = {
7
+ route: testModuleSettings.mainRoute,
6
8
  controllers: [ TestController.getInstance() ]
7
- });
9
+ };
@@ -1,7 +1,9 @@
1
- import { DynamoBERountingModule } from '../../_services/dynamobe-routing-module.service';
1
+
2
+ import { usageModuleSettings } from '../../_constants/fullstack/module-settings/usage-module-settings';
3
+ import { DynamoBERoutingModuleSettings } from '../../_services/dynamobe-routing-module.service';
2
4
  import { UsageController } from './usage-controller';
3
5
 
4
- export const usageRoutingModule = new DynamoBERountingModule({
5
- route: '/api/usage',
6
+ export const usageRoutingModuleSettings: DynamoBERoutingModuleSettings = {
7
+ route: usageModuleSettings.mainRoute,
6
8
  controllers: [ UsageController.getInstance() ]
7
- });
9
+ };
@@ -11,7 +11,7 @@ import * as BodyParser from 'body-parser';
11
11
  import { DBE_Shared } from './dynamobe-shared.service';
12
12
  import { DynamoBESingletonService } from './dynamobe-singleton.service';
13
13
  import { DynamoBERouteSecurity } from '../_enums/dynamobe-route-security.enum';
14
- import { DynamoBERountingModule } from './dynamobe-routing-module.service';
14
+ import { DynamoBERoutingModule } from './dynamobe-routing-module.service';
15
15
  import { DBE_Global_S } from './dynamobe-global.service';
16
16
  import { DynamoBEEndpointParams } from '../_models/dynamobe-endpoint-params';
17
17
 
@@ -42,7 +42,7 @@ export abstract class DynamoBEApp extends DynamoBESingletonService {
42
42
  private httpsServer: Https.Server;
43
43
  private openExpress: Express.Application;
44
44
 
45
- protected routingModules: DynamoBERountingModule[];
45
+ protected routingModules: DynamoBERoutingModule[];
46
46
 
47
47
  protected log: boolean;
48
48
 
@@ -83,7 +83,7 @@ export abstract class DynamoBEApp extends DynamoBESingletonService {
83
83
  private startDB(): void {
84
84
  this.mongoose.connection
85
85
  .on('error', (error) => {
86
- DBE_Shared.logError('Unable to connect to MongoDB server, ERROR: ', error);
86
+ DBE_Shared.logError('\nUnable to connect to MongoDB server, ERROR: ', error);
87
87
  })
88
88
  .once('open', () => {
89
89
  DBE_Shared.logSuccess('\nConnected to MongoDB\n');
@@ -102,12 +102,12 @@ export abstract class DynamoBEApp extends DynamoBESingletonService {
102
102
  if (this.security !== DynamoBERouteSecurity.secure) {
103
103
  if (!this.httpPort) {
104
104
  let errorMsg: string =
105
- `You have open routes, but httpPort is not set!` +
105
+ `\nYou have open routes, but httpPort is not set!` +
106
106
  `\nsecurity: ${this.security}` +
107
107
  `\nset httpPort in DynamoBEServer - setupRoutingModules() to enable secure routes.`;
108
108
 
109
109
  errorMsg += '\n\nThe routes setted to use open server:';
110
- this.routingModules.forEach((module: DynamoBERountingModule) => {
110
+ this.routingModules.forEach((module: DynamoBERoutingModule) => {
111
111
  if (module.security != DynamoBERouteSecurity.secure) {
112
112
  errorMsg += `\n ${module.route} (security: ${module.security}) \n subroutes using open sever:`;
113
113
  module.endpoints.forEach((endpoint: DynamoBEEndpointParams) => {
@@ -133,7 +133,7 @@ export abstract class DynamoBEApp extends DynamoBESingletonService {
133
133
  if (this.security !== DynamoBERouteSecurity.open) {
134
134
  if (!this.cert || !this.httpsPort) {
135
135
  let errorMsg: string =
136
- `You have secure routes, but the certification paths or httpsPort are not set!` +
136
+ `\nYou have secure routes, but the certification paths or httpsPort are not set!` +
137
137
  `\nsecurity: ${this.security}` +
138
138
  `\nset...` +
139
139
  `\n httpsPort and` +
@@ -144,7 +144,7 @@ export abstract class DynamoBEApp extends DynamoBESingletonService {
144
144
  `\nin DynamoBEServer - setupRoutingModules() to enable secure routes.`;
145
145
 
146
146
  errorMsg += '\n\nThe routes setted to use secure server:';
147
- this.routingModules.forEach((module: DynamoBERountingModule) => {
147
+ this.routingModules.forEach((module: DynamoBERoutingModule) => {
148
148
  if (module.security != DynamoBERouteSecurity.open) {
149
149
  errorMsg += `\n ${module.route} (security: ${module.security}) \n subroutes using secure sever:`;
150
150
  module.endpoints.forEach((endpoint: DynamoBEEndpointParams) => {
@@ -193,10 +193,10 @@ export abstract class DynamoBEApp extends DynamoBESingletonService {
193
193
  DBE_Shared.logSuccess(`\nHTTPS (secure) server is listening on port ${this.httpsPort}\n`);
194
194
  })
195
195
  .on('error', (error) => {
196
- DBE_Shared.logError(`https (secure) server ERROR`, error);
196
+ DBE_Shared.logError(`\nhttps (secure) server ERROR`, error);
197
197
  })
198
198
  .on('uncaughtException', (ex) => {
199
- DBE_Shared.logWarning(`https (secure) server uncaughtException`, ex);
199
+ DBE_Shared.logWarning(`\nhttps (secure) server uncaughtException`, ex);
200
200
  });
201
201
  }
202
202
 
@@ -206,20 +206,20 @@ export abstract class DynamoBEApp extends DynamoBESingletonService {
206
206
  DBE_Shared.logSuccess(`\nHTTP (-open-) server is listening on port ${this.httpPort}\n`);
207
207
  })
208
208
  .on('error', (error) => {
209
- DBE_Shared.logError(`http (-open-) server ERROR`, error);
209
+ DBE_Shared.logError(`\nhttp (-open-) server ERROR`, error);
210
210
  })
211
211
  .on('uncaughtException', (ex) => {
212
- DBE_Shared.logWarning(`http (-open-) server uncaughtException`, ex);
212
+ DBE_Shared.logWarning(`\nhttp (-open-) server uncaughtException`, ex);
213
213
  });
214
214
  }
215
215
  }
216
216
 
217
217
  private mountSecureRoutes (): void {
218
- this.routingModules.forEach((module: DynamoBERountingModule) => {
218
+ this.routingModules.forEach((module: DynamoBERoutingModule) => {
219
219
  if (module.security !== DynamoBERouteSecurity.open) {
220
220
  if (this.log) console.log(`route mount (secure): ${module.route}`);
221
- const existingRoutes: DynamoBERountingModule[] = this.routingModules.filter(
222
- (mod: DynamoBERountingModule) => mod.route === module.route);
221
+ const existingRoutes: DynamoBERoutingModule[] = this.routingModules.filter(
222
+ (mod: DynamoBERoutingModule) => mod.route === module.route);
223
223
  if (1 < existingRoutes.length) {
224
224
  let error = new Error(`ROUTE DUPLICATION: ${module.route}`);
225
225
  let errorStack: string[] = error.stack.split('\n');
@@ -234,11 +234,11 @@ export abstract class DynamoBEApp extends DynamoBESingletonService {
234
234
  }
235
235
 
236
236
  private mountOpenRoutes (): void {
237
- this.routingModules.forEach((module: DynamoBERountingModule) => {
237
+ this.routingModules.forEach((module: DynamoBERoutingModule) => {
238
238
  if (module.security !== DynamoBERouteSecurity.secure) {
239
239
  if (this.log) console.log(`route mount (open): ${module.route}`);
240
- const existingRoutes: DynamoBERountingModule[] = this.routingModules.filter(
241
- (mod: DynamoBERountingModule) => mod.route === module.route);
240
+ const existingRoutes: DynamoBERoutingModule[] = this.routingModules.filter(
241
+ (mod: DynamoBERoutingModule) => mod.route === module.route);
242
242
  if (1 < existingRoutes.length) {
243
243
  let error = new Error(`ROUTE DUPLICATION: ${module.route}`);
244
244
  let errorStack: string[] = error.stack.split('\n');
@@ -253,7 +253,7 @@ export abstract class DynamoBEApp extends DynamoBESingletonService {
253
253
  }
254
254
 
255
255
  private setSecurity(): void {
256
- this.routingModules.forEach((module: DynamoBERountingModule) => {
256
+ this.routingModules.forEach((module: DynamoBERoutingModule) => {
257
257
  if (!this.security) {
258
258
  this.security = module.security;
259
259
  } else if (this.security !== module.security) {
@@ -1,6 +1,6 @@
1
1
 
2
2
 
3
- import { DynamoBERouteSecurity } from '../_enums/dynamobe-route-security.enum';
3
+ /* import { DynamoBERouteSecurity } from '../_enums/dynamobe-route-security.enum'; */
4
4
  import { Metadata } from '../_models/fullstack/data-models/metadata';
5
5
  import { DynamoBEGlobalSettings } from '../_models/dynamobe-global-settings';
6
6
  import { DynamoBEAuthService } from './dynamobe-auth.service';
@@ -21,13 +21,14 @@ export class DBE_Global_S extends DynamoBESingletonService {
21
21
  return DBE_Global_S.getSingletonInstance();
22
22
  }
23
23
 
24
- globalSettings: DynamoBEGlobalSettings = {
24
+ /* globalSettings: DynamoBEGlobalSettings = {
25
+ baseUrl: '/api',
25
26
  defaultRouteSecurity: DynamoBERouteSecurity.open,
26
27
  logSetup: false,
27
28
  logRequests: true,
28
29
  logRequestsContent: true,
29
30
  logResponseContent: false,
30
- };
31
+ }; */
31
32
 
32
33
  authService: DynamoBEAuthService;
33
34
  dbServiceCollection: DynamoBEDBServiceCollection;
@@ -42,6 +43,7 @@ export class DBE_Global_S extends DynamoBESingletonService {
42
43
  * You need to setup your Own Auth Service extending the DynamoBEAuthService class
43
44
  */
44
45
  authService: DynamoBEAuthService,
46
+
45
47
  /**
46
48
  * You can setup your Own Email Service extending the DynamoBEEmailServiceCollection class
47
49
  */
@@ -61,25 +63,29 @@ export class DBE_Global_S extends DynamoBESingletonService {
61
63
  });
62
64
 
63
65
  this.instance.authService = set.authService;
64
- /* this.instance.dbServiceCollection = set.dbServiceCollection; */
65
66
  this.instance.emailServiceCollection = set.emailServiceCollection;
66
67
  }
67
68
 
68
69
  static getGlobalSettings(): DynamoBEGlobalSettings {
69
70
  if (!this.instance) {
70
- throw new Error(`DynamoBE Global Service missing!` +
71
+ throw new Error(
72
+ `\nDynamoBE Global Service missing!` +
71
73
  `\nPlease setup DynamoBE Global Service by calling "DBE_Global_SC.setServices(...)"` +
72
74
  `before calling getGlobalSettings"`);
73
75
  }
74
76
  return this.instance.globalSettings;
75
77
  }
76
78
 
77
- static setGlobalSettings(set: DynamoBEGlobalSettings): void {
79
+ /* static setGlobalSettings(set: DynamoBEGlobalSettings): void {
78
80
  if (!this.instance) {
79
- throw new Error(`DynamoBE Global Service missing!` +
81
+ throw new Error(
82
+ `\nDynamoBE Global Service missing!` +
80
83
  `\nPlease setup DynamoBE Global Service by calling "DBE_Global_SC.setServices(...)"` +
81
84
  `before calling setGlobalSettings"`);
82
85
  }
86
+ if (set.baseUrl) {
87
+ this.instance.globalSettings.baseUrl = set.baseUrl;
88
+ }
83
89
  if (set.defaultRouteSecurity) {
84
90
  this.instance.globalSettings.defaultRouteSecurity = set.defaultRouteSecurity;
85
91
  }
@@ -95,11 +101,12 @@ export class DBE_Global_S extends DynamoBESingletonService {
95
101
  if (set.logResponseContent !== undefined) {
96
102
  this.instance.globalSettings.logResponseContent = set.logResponseContent;
97
103
  }
98
- }
104
+ } */
99
105
 
100
106
  static getAuthService(): DynamoBEAuthService {
101
107
  if (!this.instance?.authService?.authenticateToken) {
102
- throw new Error(`Unique Authentication Service missing!` +
108
+ throw new Error(
109
+ `\nUnique Authentication Service missing!` +
103
110
  `\nPlease create a Unique Authentication Service extending DynamoBEAuthService, ` +
104
111
  `and Setup with "DBE_Global_SC.setServices(...)"`);
105
112
  }
@@ -108,7 +115,8 @@ export class DBE_Global_S extends DynamoBESingletonService {
108
115
 
109
116
  static getDBServiceCollection(): DynamoBEDBServiceCollection {
110
117
  if (!this.instance?.dbServiceCollection) {
111
- throw new Error(`Unique DataBase Service Collection missing!` +
118
+ throw new Error(
119
+ `\nUnique DataBase Service Collection missing!` +
112
120
  `\nPlease create a Unique DataBase Service Collectio extending DynamoBEDBServiceCollection, ` +
113
121
  `and Setup with "DBE_Global_SC.setServices(...)"`);
114
122
  }
@@ -125,17 +133,19 @@ export class DBE_Global_S extends DynamoBESingletonService {
125
133
  return collection[key] as DynamoBEDBService<T>;
126
134
  } else {
127
135
  let keys: string = `${Object.keys(collection)}`;
128
- keys = keys.replace(/,/g, '\n ');
129
- throw new Error(`\nDBE_Global_S.getDBService failed ERROR:
130
- no dbService on collection with this key: ${key}!
131
- The available dbServices on collection:
132
- ${keys}\n`);
136
+ keys = keys.replace(/,/g, '\n ');
137
+ throw new Error(
138
+ `\nDBE_Global_S.getDBService failed ERROR:
139
+ no dbService on collection with this key: ${key}!
140
+ The available dbServices on collection:
141
+ ${keys}\n`);
133
142
  }
134
143
  }
135
144
 
136
145
  static getEmailServiceCollection(): DynamoBEEmailServiceCollection {
137
146
  if (!this.instance?.emailServiceCollection) {
138
- throw new Error(`Unique Email Service Collection missing!` +
147
+ throw new Error(
148
+ `Unique Email Service Collection missing!` +
139
149
  `\nPlease create a Unique Email Service Collection extending DynamoBEEmailServiceCollection, ` +
140
150
  `and Setup with "DBE_Global_SC.setServices(...)"`);
141
151
  }