@futdevpro/nts-dynamo 1.3.43 → 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.
- package/lib/_constants/dynamobe-global.settings.js +4 -6
- package/lib/_constants/dynamobe-global.settings.js.map +1 -0
- package/lib/_enums/data-model-type.enum.js +3 -5
- package/lib/_enums/data-model-type.enum.js.map +1 -0
- package/lib/_enums/dynamobe-data-service-function.enum.js +3 -5
- package/lib/_enums/dynamobe-data-service-function.enum.js.map +1 -0
- package/lib/_enums/dynamobe-route-security.enum.js +3 -5
- package/lib/_enums/dynamobe-route-security.enum.js.map +1 -0
- package/lib/_enums/http/http-call-type.enum.js +3 -5
- package/lib/_enums/http/http-call-type.enum.js.map +1 -0
- package/lib/_enums/http/http-response-type.enum.js +3 -5
- package/lib/_enums/http/http-response-type.enum.js.map +1 -0
- package/lib/_enums/index.js +8 -10
- package/lib/_enums/index.js.map +1 -0
- package/lib/_enums/log-style.enum.js +3 -5
- package/lib/_enums/log-style.enum.js.map +1 -0
- package/lib/_enums/predefined-data-types.enum.js +3 -5
- package/lib/_enums/predefined-data-types.enum.js.map +1 -0
- package/lib/_models/dynamobe-api-call-params.js +3 -7
- package/lib/_models/dynamobe-api-call-params.js.map +1 -0
- package/lib/_models/dynamobe-app-params.js +2 -5
- package/lib/_models/dynamobe-app-params.js.map +1 -0
- package/lib/_models/dynamobe-data-model-params.js +2 -5
- package/lib/_models/dynamobe-data-model-params.js.map +1 -0
- package/lib/_models/dynamobe-endpoint-control.js +20 -23
- package/lib/_models/dynamobe-endpoint-control.js.map +1 -0
- package/lib/_models/dynamobe-global-settings.js +1 -2
- package/lib/_models/dynamobe-global-settings.js.map +1 -0
- package/lib/_models/fullstack-models/control-models/daily-usage-data.js +2 -5
- package/lib/_models/fullstack-models/control-models/daily-usage-data.js.map +1 -0
- package/lib/_models/fullstack-models/control-models/dynamobe-data-property-params.js +4 -7
- package/lib/_models/fullstack-models/control-models/dynamobe-data-property-params.js.map +1 -0
- package/lib/_models/fullstack-models/control-models/dynamobe-error.js +2 -5
- package/lib/_models/fullstack-models/control-models/dynamobe-error.js.map +1 -0
- package/lib/_models/fullstack-models/control-models/geo-ip-location.js +1 -2
- package/lib/_models/fullstack-models/control-models/geo-ip-location.js.map +1 -0
- package/lib/_models/fullstack-models/control-models/usage-action.js +2 -5
- package/lib/_models/fullstack-models/control-models/usage-action.js.map +1 -0
- package/lib/_models/fullstack-models/control-models/usage-data.js +2 -5
- package/lib/_models/fullstack-models/control-models/usage-data.js.map +1 -0
- package/lib/_models/fullstack-models/data-models/custom-data.js +4 -7
- package/lib/_models/fullstack-models/data-models/custom-data.js.map +1 -0
- package/lib/_models/fullstack-models/data-models/metadata.js +2 -5
- package/lib/_models/fullstack-models/data-models/metadata.js.map +1 -0
- package/lib/_models/fullstack-models/data-models/usage-session.js +4 -7
- package/lib/_models/fullstack-models/data-models/usage-session.js.map +1 -0
- package/lib/_models/index.js +15 -17
- package/lib/_models/index.js.map +1 -0
- package/lib/_modules/index.js +5 -7
- package/lib/_modules/index.js.map +1 -0
- package/lib/_modules/test-route/custom-data.service.js +6 -9
- package/lib/_modules/test-route/custom-data.service.js.map +1 -0
- package/lib/_modules/test-route/test-controller.js +30 -33
- package/lib/_modules/test-route/test-controller.js.map +1 -0
- package/lib/_modules/usage-route/usage-controller.js +28 -31
- package/lib/_modules/usage-route/usage-controller.js.map +1 -0
- package/lib/_modules/usage-route/usage.service.js +21 -24
- package/lib/_modules/usage-route/usage.service.js.map +1 -0
- package/lib/_services/dynamobe-api.service.js +27 -30
- package/lib/_services/dynamobe-api.service.js.map +1 -0
- package/lib/_services/dynamobe-app.d.ts +1 -1
- package/lib/_services/dynamobe-app.d.ts.map +1 -1
- package/lib/_services/dynamobe-app.js +9 -12
- package/lib/_services/dynamobe-app.js.map +1 -0
- package/lib/_services/dynamobe-auth.service.js +6 -9
- package/lib/_services/dynamobe-auth.service.js.map +1 -0
- package/lib/_services/dynamobe-controller.service.js +3 -6
- package/lib/_services/dynamobe-controller.service.js.map +1 -0
- package/lib/_services/dynamobe-data.service.js +29 -32
- package/lib/_services/dynamobe-data.service.js.map +1 -0
- package/lib/_services/dynamobe-db-service-collection.service.js +3 -6
- package/lib/_services/dynamobe-db-service-collection.service.js.map +1 -0
- package/lib/_services/dynamobe-db.service.js +49 -52
- package/lib/_services/dynamobe-db.service.js.map +1 -0
- package/lib/_services/dynamobe-email-service-collection.service.js +3 -6
- package/lib/_services/dynamobe-email-service-collection.service.js.map +1 -0
- package/lib/_services/dynamobe-email.service.js +15 -18
- package/lib/_services/dynamobe-email.service.js.map +1 -0
- package/lib/_services/dynamobe-global.service.js +5 -8
- package/lib/_services/dynamobe-global.service.js.map +1 -0
- package/lib/_services/dynamobe-routing-module.service.js +26 -29
- package/lib/_services/dynamobe-routing-module.service.js.map +1 -0
- package/lib/_services/dynamobe-server.js +37 -40
- package/lib/_services/dynamobe-server.js.map +1 -0
- package/lib/_services/dynamobe-shared.service.js +30 -34
- package/lib/_services/dynamobe-shared.service.js.map +1 -0
- package/lib/_services/dynamobe-singleton.service.js +2 -5
- package/lib/_services/dynamobe-singleton.service.js.map +1 -0
- package/lib/_services/index.js +15 -17
- package/lib/_services/index.js.map +1 -0
- package/lib/index.js +5 -7
- package/lib/index.js.map +1 -0
- package/lib/tsconfig.tsbuildinfo +16 -6
- package/package.json +13 -16
- package/src/_services/dynamobe-api.service.ts +5 -5
- package/src/_services/dynamobe-app.ts +2 -2
- package/src/_services/dynamobe-server.ts +4 -4
- package/tsconfig.json +15 -5
package/lib/tsconfig.tsbuildinfo
CHANGED
|
@@ -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": "
|
|
695
|
+
"version": "f9383c2e0bdbec15d605b82ccbd6fd261e41aa223c35c4fdb3c36d40a597a884",
|
|
691
696
|
"signature": "77fd693912d1655e7a924782721236a0335bac4c29e81985614a28a62c43ef60",
|
|
692
697
|
"affectsGlobalScope": false
|
|
693
698
|
},
|
|
694
699
|
"../src/_services/dynamobe-app.ts": {
|
|
695
|
-
"version": "
|
|
696
|
-
"signature": "
|
|
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": "
|
|
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":
|
|
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,15 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@futdevpro/nts-dynamo",
|
|
3
|
-
"version": "01.03.
|
|
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
|
-
"module": "./lib/index.js",
|
|
7
|
-
"modules": {
|
|
8
|
-
"enums": "lib/_enums/index.d.ts",
|
|
9
|
-
"models": "lib/_models/index.d.ts",
|
|
10
|
-
"modules": "lib/_modules/index.d.ts",
|
|
11
|
-
"services": "lib/_services/index.d.ts"
|
|
12
|
-
},
|
|
13
6
|
"types": "./lib/index.d.ts",
|
|
14
7
|
"typings": "./lib/index.d.ts",
|
|
15
8
|
"exports": {
|
|
@@ -36,20 +29,24 @@
|
|
|
36
29
|
},
|
|
37
30
|
"typesVersions": {
|
|
38
31
|
"*": {
|
|
39
|
-
"enums": [
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
"
|
|
32
|
+
"enums": [
|
|
33
|
+
"lib/_enums/index.d.ts"
|
|
34
|
+
],
|
|
35
|
+
"models": [
|
|
36
|
+
"lib/_models/index.d.ts"
|
|
37
|
+
],
|
|
38
|
+
"modules": [
|
|
39
|
+
"lib/_modules/index.d.ts"
|
|
40
|
+
],
|
|
41
|
+
"services": [
|
|
42
|
+
"lib/_services/index.d.ts"
|
|
43
|
+
]
|
|
43
44
|
}
|
|
44
45
|
},
|
|
45
46
|
"repository": {
|
|
46
47
|
"type": "git",
|
|
47
48
|
"url": "git+https://gitlab.com/futdevpro/dynamo-be.git"
|
|
48
49
|
},
|
|
49
|
-
"scripts": {
|
|
50
|
-
"test": "echo \"Error: no test specified\" && exit 1",
|
|
51
|
-
"build": "npx tsc"
|
|
52
|
-
},
|
|
53
50
|
"keywords": [
|
|
54
51
|
"nodejs",
|
|
55
52
|
"typescript",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
import * as
|
|
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 =
|
|
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:
|
|
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:
|
|
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:
|
|
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
|
-
|
|
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
|
-
|
|
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
|
@@ -2,9 +2,18 @@
|
|
|
2
2
|
"compilerOptions": {
|
|
3
3
|
/* Basic Options */
|
|
4
4
|
"incremental": true, /* Enable incremental compilation */
|
|
5
|
-
"target": "
|
|
6
|
-
"module": "
|
|
7
|
-
"lib": [
|
|
5
|
+
"target": "es2015",
|
|
6
|
+
"module": "es2020",
|
|
7
|
+
"lib": [
|
|
8
|
+
"es2018",
|
|
9
|
+
"dom",
|
|
10
|
+
"es6"
|
|
11
|
+
],
|
|
12
|
+
"sourceMap": true,
|
|
13
|
+
"downlevelIteration": true,
|
|
14
|
+
//"target": "es6", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', or 'ESNEXT'. */
|
|
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. */
|
|
8
17
|
"allowJs": true, /* Allow javascript files to be compiled. */
|
|
9
18
|
// "checkJs": true, /* Report errors in .js files. */
|
|
10
19
|
// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */
|
|
@@ -49,6 +58,7 @@
|
|
|
49
58
|
"esModuleInterop": true, /* Enables emit interoperability between CommonJS and ES Modules via creation of namespace objects for all imports. Implies 'allowSyntheticDefaultImports'. */
|
|
50
59
|
// "preserveSymlinks": true, /* Do not resolve the real path of symlinks. */
|
|
51
60
|
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
|
|
61
|
+
"moduleResolution": "Node",
|
|
52
62
|
|
|
53
63
|
/* Source Map Options */
|
|
54
64
|
// "sourceRoot": "", /* Specify the location where debugger should locate TypeScript files instead of source locations. */
|
|
@@ -61,10 +71,10 @@
|
|
|
61
71
|
// "emitDecoratorMetadata": true, /* Enables experimental support for emitting type metadata for decorators. */
|
|
62
72
|
|
|
63
73
|
"skipLibCheck": true,
|
|
64
|
-
"forceConsistentCasingInFileNames": true
|
|
74
|
+
"forceConsistentCasingInFileNames": true
|
|
65
75
|
|
|
66
76
|
/* Advanced Options */
|
|
67
|
-
"resolveJsonModule": true /* Include modules imported with '.json' extension */
|
|
77
|
+
//"resolveJsonModule": true /* Include modules imported with '.json' extension */
|
|
68
78
|
},
|
|
69
79
|
"include": [
|
|
70
80
|
"src"
|