@futdevpro/nts-dynamo 1.3.46 → 1.3.47

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 (98) hide show
  1. package/lib/_constants/dynamobe-global.settings.js +4 -6
  2. package/lib/_constants/dynamobe-global.settings.js.map +1 -0
  3. package/lib/_enums/data-model-type.enum.js +3 -5
  4. package/lib/_enums/data-model-type.enum.js.map +1 -0
  5. package/lib/_enums/dynamobe-data-service-function.enum.js +3 -5
  6. package/lib/_enums/dynamobe-data-service-function.enum.js.map +1 -0
  7. package/lib/_enums/dynamobe-route-security.enum.js +3 -5
  8. package/lib/_enums/dynamobe-route-security.enum.js.map +1 -0
  9. package/lib/_enums/http/http-call-type.enum.js +3 -5
  10. package/lib/_enums/http/http-call-type.enum.js.map +1 -0
  11. package/lib/_enums/http/http-response-type.enum.js +3 -5
  12. package/lib/_enums/http/http-response-type.enum.js.map +1 -0
  13. package/lib/_enums/index.js +8 -10
  14. package/lib/_enums/index.js.map +1 -0
  15. package/lib/_enums/log-style.enum.js +3 -5
  16. package/lib/_enums/log-style.enum.js.map +1 -0
  17. package/lib/_enums/predefined-data-types.enum.js +3 -5
  18. package/lib/_enums/predefined-data-types.enum.js.map +1 -0
  19. package/lib/_models/dynamobe-api-call-params.js +3 -7
  20. package/lib/_models/dynamobe-api-call-params.js.map +1 -0
  21. package/lib/_models/dynamobe-app-params.js +2 -5
  22. package/lib/_models/dynamobe-app-params.js.map +1 -0
  23. package/lib/_models/dynamobe-data-model-params.js +2 -5
  24. package/lib/_models/dynamobe-data-model-params.js.map +1 -0
  25. package/lib/_models/dynamobe-endpoint-control.js +20 -23
  26. package/lib/_models/dynamobe-endpoint-control.js.map +1 -0
  27. package/lib/_models/dynamobe-global-settings.js +1 -2
  28. package/lib/_models/dynamobe-global-settings.js.map +1 -0
  29. package/lib/_models/fullstack-models/control-models/daily-usage-data.js +2 -5
  30. package/lib/_models/fullstack-models/control-models/daily-usage-data.js.map +1 -0
  31. package/lib/_models/fullstack-models/control-models/dynamobe-data-property-params.js +4 -7
  32. package/lib/_models/fullstack-models/control-models/dynamobe-data-property-params.js.map +1 -0
  33. package/lib/_models/fullstack-models/control-models/dynamobe-error.js +2 -5
  34. package/lib/_models/fullstack-models/control-models/dynamobe-error.js.map +1 -0
  35. package/lib/_models/fullstack-models/control-models/geo-ip-location.js +1 -2
  36. package/lib/_models/fullstack-models/control-models/geo-ip-location.js.map +1 -0
  37. package/lib/_models/fullstack-models/control-models/usage-action.js +2 -5
  38. package/lib/_models/fullstack-models/control-models/usage-action.js.map +1 -0
  39. package/lib/_models/fullstack-models/control-models/usage-data.js +2 -5
  40. package/lib/_models/fullstack-models/control-models/usage-data.js.map +1 -0
  41. package/lib/_models/fullstack-models/data-models/custom-data.js +4 -7
  42. package/lib/_models/fullstack-models/data-models/custom-data.js.map +1 -0
  43. package/lib/_models/fullstack-models/data-models/metadata.js +2 -5
  44. package/lib/_models/fullstack-models/data-models/metadata.js.map +1 -0
  45. package/lib/_models/fullstack-models/data-models/usage-session.js +4 -7
  46. package/lib/_models/fullstack-models/data-models/usage-session.js.map +1 -0
  47. package/lib/_models/index.js +15 -17
  48. package/lib/_models/index.js.map +1 -0
  49. package/lib/_modules/index.js +5 -7
  50. package/lib/_modules/index.js.map +1 -0
  51. package/lib/_modules/test-route/custom-data.service.js +6 -9
  52. package/lib/_modules/test-route/custom-data.service.js.map +1 -0
  53. package/lib/_modules/test-route/test-controller.js +30 -33
  54. package/lib/_modules/test-route/test-controller.js.map +1 -0
  55. package/lib/_modules/usage-route/usage-controller.js +28 -31
  56. package/lib/_modules/usage-route/usage-controller.js.map +1 -0
  57. package/lib/_modules/usage-route/usage.service.js +21 -24
  58. package/lib/_modules/usage-route/usage.service.js.map +1 -0
  59. package/lib/_services/dynamobe-api.service.js +27 -30
  60. package/lib/_services/dynamobe-api.service.js.map +1 -0
  61. package/lib/_services/dynamobe-app.d.ts +1 -1
  62. package/lib/_services/dynamobe-app.d.ts.map +1 -1
  63. package/lib/_services/dynamobe-app.js +9 -12
  64. package/lib/_services/dynamobe-app.js.map +1 -0
  65. package/lib/_services/dynamobe-auth.service.js +6 -9
  66. package/lib/_services/dynamobe-auth.service.js.map +1 -0
  67. package/lib/_services/dynamobe-controller.service.js +3 -6
  68. package/lib/_services/dynamobe-controller.service.js.map +1 -0
  69. package/lib/_services/dynamobe-data.service.js +29 -32
  70. package/lib/_services/dynamobe-data.service.js.map +1 -0
  71. package/lib/_services/dynamobe-db-service-collection.service.js +3 -6
  72. package/lib/_services/dynamobe-db-service-collection.service.js.map +1 -0
  73. package/lib/_services/dynamobe-db.service.js +49 -52
  74. package/lib/_services/dynamobe-db.service.js.map +1 -0
  75. package/lib/_services/dynamobe-email-service-collection.service.js +3 -6
  76. package/lib/_services/dynamobe-email-service-collection.service.js.map +1 -0
  77. package/lib/_services/dynamobe-email.service.js +15 -18
  78. package/lib/_services/dynamobe-email.service.js.map +1 -0
  79. package/lib/_services/dynamobe-global.service.js +5 -8
  80. package/lib/_services/dynamobe-global.service.js.map +1 -0
  81. package/lib/_services/dynamobe-routing-module.service.js +26 -29
  82. package/lib/_services/dynamobe-routing-module.service.js.map +1 -0
  83. package/lib/_services/dynamobe-server.js +37 -40
  84. package/lib/_services/dynamobe-server.js.map +1 -0
  85. package/lib/_services/dynamobe-shared.service.js +30 -34
  86. package/lib/_services/dynamobe-shared.service.js.map +1 -0
  87. package/lib/_services/dynamobe-singleton.service.js +2 -5
  88. package/lib/_services/dynamobe-singleton.service.js.map +1 -0
  89. package/lib/_services/index.js +15 -17
  90. package/lib/_services/index.js.map +1 -0
  91. package/lib/index.js +5 -7
  92. package/lib/index.js.map +1 -0
  93. package/lib/tsconfig.tsbuildinfo +16 -6
  94. package/package.json +1 -1
  95. package/src/_services/dynamobe-api.service.ts +5 -5
  96. package/src/_services/dynamobe-app.ts +2 -2
  97. package/src/_services/dynamobe-server.ts +4 -4
  98. package/tsconfig.json +13 -4
@@ -26,6 +26,11 @@
26
26
  "signature": "5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06",
27
27
  "affectsGlobalScope": false
28
28
  },
29
+ "../node_modules/typescript/lib/lib.dom.d.ts": {
30
+ "version": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6",
31
+ "signature": "9affb0a2ddc57df5b8174c0af96c288d697a262e5bc9ca1f544c999dc64a91e6",
32
+ "affectsGlobalScope": true
33
+ },
29
34
  "../node_modules/typescript/lib/lib.es2015.core.d.ts": {
30
35
  "version": "63e0cc12d0f77394094bd19e84464f9840af0071e5b9358ced30511efef1d8d2",
31
36
  "signature": "63e0cc12d0f77394094bd19e84464f9840af0071e5b9358ced30511efef1d8d2",
@@ -687,13 +692,13 @@
687
692
  "affectsGlobalScope": false
688
693
  },
689
694
  "../src/_services/dynamobe-api.service.ts": {
690
- "version": "78f1647df9f4b0bfd982026dd2fddcc9cdfca2f2a273d70c37ecddff7449a751",
695
+ "version": "f9383c2e0bdbec15d605b82ccbd6fd261e41aa223c35c4fdb3c36d40a597a884",
691
696
  "signature": "77fd693912d1655e7a924782721236a0335bac4c29e81985614a28a62c43ef60",
692
697
  "affectsGlobalScope": false
693
698
  },
694
699
  "../src/_services/dynamobe-app.ts": {
695
- "version": "c5fba2838aa3174a0874c6afff9257789935eb3f637d6b9ab92e1f859e4a0b24",
696
- "signature": "c751bb20caae8a7842e18e24e4de4a7784bac40e5109b9aa6d40a1ba83bcf93f",
700
+ "version": "c8b80e32763b6d888f776f62c1b4430c90a9f230c49a75f73d3f726761def658",
701
+ "signature": "cbfcbd6324d87c7e4903573ec4c96e65b4eb0b38a97d1a7de6274d0bc7fc0bd8",
697
702
  "affectsGlobalScope": false
698
703
  },
699
704
  "../src/_services/dynamobe-routing-module.service.ts": {
@@ -702,7 +707,7 @@
702
707
  "affectsGlobalScope": false
703
708
  },
704
709
  "../src/_services/dynamobe-server.ts": {
705
- "version": "d8481d821fdb9cc3f096a1e5a83b69436bc8c4e1c039c9e8aadcba24bdd5dfba",
710
+ "version": "575e92fda16f08c7efabea75bb94857c4f77e68edea9c4a3a43fec55a3d33423",
706
711
  "signature": "705bde1dce19a61e7912625c5eda5d56bb20ab8fd31af2b46691dbc0e054c961",
707
712
  "affectsGlobalScope": false
708
713
  },
@@ -740,19 +745,23 @@
740
745
  "options": {
741
746
  "incremental": true,
742
747
  "target": 2,
743
- "module": 1,
748
+ "module": 6,
744
749
  "lib": [
750
+ "lib.es2018.d.ts",
751
+ "lib.dom.d.ts",
745
752
  "lib.es2015.d.ts"
746
753
  ],
754
+ "sourceMap": true,
755
+ "downlevelIteration": true,
747
756
  "allowJs": true,
748
757
  "declaration": true,
749
758
  "declarationMap": true,
750
759
  "outDir": "./",
751
760
  "importHelpers": true,
752
761
  "esModuleInterop": true,
762
+ "moduleResolution": 2,
753
763
  "skipLibCheck": true,
754
764
  "forceConsistentCasingInFileNames": true,
755
- "resolveJsonModule": true,
756
765
  "configFilePath": "../tsconfig.json"
757
766
  },
758
767
  "referencedMap": {
@@ -2019,6 +2028,7 @@
2019
2028
  "../node_modules/axios/index.d.ts",
2020
2029
  "../node_modules/mongoose/index.d.ts",
2021
2030
  "../node_modules/tslib/tslib.d.ts",
2031
+ "../node_modules/typescript/lib/lib.dom.d.ts",
2022
2032
  "../node_modules/typescript/lib/lib.es2015.collection.d.ts",
2023
2033
  "../node_modules/typescript/lib/lib.es2015.core.d.ts",
2024
2034
  "../node_modules/typescript/lib/lib.es2015.d.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@futdevpro/nts-dynamo",
3
- "version": "01.03.46",
3
+ "version": "01.03.47",
4
4
  "description": "Dynamic NodeTS (NodeJS-Typescript), MongoDB Backend System Framework by Future Development Ltd.",
5
5
  "main": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -1,5 +1,5 @@
1
1
 
2
- import * as axios from 'axios';
2
+ import * as Axios from 'axios';
3
3
  import { HttpCallType } from '../_enums/http/http-call-type.enum';
4
4
  import { HttpResponseType } from '../_enums/http/http-response-type.enum';
5
5
  import { DynamoBEApiCallParams } from '../_models/dynamobe-api-call-params';
@@ -21,7 +21,7 @@ export class DynamoBEApiService {
21
21
  try {
22
22
  let a: any;
23
23
  let url: string = callParams.baseUrl + callParams.endPoint;
24
- const privateAxiosInstance = axios.default.create();
24
+ const privateAxiosInstance = Axios.default.create();
25
25
 
26
26
  if (callParams?.httpOptions?.headers) {
27
27
  for (const headerKey in callParams.httpOptions.headers) {
@@ -79,7 +79,7 @@ export class DynamoBEApiService {
79
79
  if (inputParams?.body) {
80
80
  console.log('WARNING you cant send body in get calls');
81
81
  }
82
- await privateAxiosInstance.get<T>(url, callParams.httpOptions).then((res: axios.AxiosResponse ) => {
82
+ await privateAxiosInstance.get<T>(url, callParams.httpOptions).then((res: Axios.AxiosResponse ) => {
83
83
  a = res.data;
84
84
  console.log(`${callParams.name} was successful`, res.data);
85
85
  });
@@ -88,7 +88,7 @@ export class DynamoBEApiService {
88
88
  if (inputParams?.body) {
89
89
  console.log('WARNING you cant send body in delete calls');
90
90
  }
91
- await privateAxiosInstance.delete<T>(url, callParams.httpOptions).then((res: axios.AxiosResponse ) => {
91
+ await privateAxiosInstance.delete<T>(url, callParams.httpOptions).then((res: Axios.AxiosResponse ) => {
92
92
  console.log(`${callParams.name} was successful`, res.data);
93
93
  });
94
94
  break;
@@ -101,7 +101,7 @@ export class DynamoBEApiService {
101
101
  }
102
102
  inputParams.body = {};
103
103
  }
104
- await privateAxiosInstance[callParams.type]<T>(url, inputParams.body, callParams.httpOptions).then((res: axios.AxiosResponse ) => {
104
+ await privateAxiosInstance[callParams.type]<T>(url, inputParams.body, callParams.httpOptions).then((res: Axios.AxiosResponse ) => {
105
105
  a = res.data;
106
106
  console.log(`${callParams.name} was successful`, res.data);
107
107
  });
@@ -1,7 +1,7 @@
1
1
 
2
2
  import { DynamoBEAppParams } from '../_models/dynamobe-app-params';
3
- /* import * as Mongoose from 'mongoose'; */
4
- import Mongoose = require("mongoose");
3
+ import * as Mongoose from 'mongoose';
4
+ /* import Mongoose = require("mongoose"); */
5
5
  import { DBE_Shared } from './dynamobe-shared.service';
6
6
  import { DynamoBESingletonService } from './dynamobe-singleton.service';
7
7
 
@@ -1,7 +1,7 @@
1
1
 
2
2
 
3
- /* import * as Express from 'express'; */
4
- import Express = require("express");
3
+ import * as Express from 'express';
4
+ /* import Express = require("express"); */
5
5
  import * as Https from 'https';
6
6
  import * as FileSystem from 'fs';
7
7
  import * as BodyParser from 'body-parser';
@@ -122,13 +122,13 @@ export abstract class DynamoBEServer extends DynamoBESingletonService {
122
122
  }
123
123
 
124
124
  private initOpenExpress(): void {
125
- this.openExpress = Express();
125
+ this.openExpress = Express.default();
126
126
  this.openExpress.use(BodyParser.urlencoded({ limit: '50mb', extended: true }));
127
127
  this.openExpress.use(BodyParser.json({ limit: '50mb' }));
128
128
  }
129
129
 
130
130
  private initSecureExpress(): void {
131
- this.secureExpress = Express();
131
+ this.secureExpress = Express.default();
132
132
  this.secureExpress.use(BodyParser.urlencoded({ limit: '50mb', extended: true }));
133
133
  this.secureExpress.use(BodyParser.json({ limit: '50mb' }));
134
134
 
package/tsconfig.json CHANGED
@@ -3,9 +3,17 @@
3
3
  /* Basic Options */
4
4
  "incremental": true, /* Enable incremental compilation */
5
5
  "target": "es2015",
6
+ "module": "es2020",
7
+ "lib": [
8
+ "es2018",
9
+ "dom",
10
+ "es6"
11
+ ],
12
+ "sourceMap": true,
13
+ "downlevelIteration": true,
6
14
  //"target": "es6", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', or 'ESNEXT'. */
7
- "module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
8
- "lib": ["es6"], /* Specify library files to be included in the compilation. */
15
+ //"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', or 'ESNext'. */
16
+ //"lib": ["es6"], /* Specify library files to be included in the compilation. */
9
17
  "allowJs": true, /* Allow javascript files to be compiled. */
10
18
  // "checkJs": true, /* Report errors in .js files. */
11
19
  // "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
@@ -50,6 +58,7 @@
50
58
  "esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
51
59
  // "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */
52
60
  // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
61
+ "moduleResolution": "Node",
53
62
 
54
63
  /* Source Map Options */
55
64
  // "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */
@@ -62,10 +71,10 @@
62
71
  // "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
63
72
 
64
73
  "skipLibCheck": true,
65
- "forceConsistentCasingInFileNames": true,
74
+ "forceConsistentCasingInFileNames": true
66
75
 
67
76
  /* Advanced Options */
68
- "resolveJsonModule": true /* Include modules imported with '.json' extension */
77
+ //"resolveJsonModule": true /* Include modules imported with '.json' extension */
69
78
  },
70
79
  "include": [
71
80
  "src"