@futdevpro/nts-dynamo 1.5.20 → 1.5.22
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dynamobe-global.service.d.ts","sourceRoot":"","sources":["../../src/_services/dynamobe-global.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAErE,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,2BAA2B,EAAE,MAAM,0CAA0C,CAAC;AACvF,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,8BAA8B,EAAE,MAAM,6CAA6C,CAAC;
|
|
1
|
+
{"version":3,"file":"dynamobe-global.service.d.ts","sourceRoot":"","sources":["../../src/_services/dynamobe-global.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAErE,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,2BAA2B,EAAE,MAAM,0CAA0C,CAAC;AACvF,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,8BAA8B,EAAE,MAAM,6CAA6C,CAAC;AAE7F,OAAO,EAAE,wBAAwB,EAAE,MAAM,8BAA8B,CAAC;AAExE;;;;GAIG;AACH,qBAAa,YAAa,SAAQ,wBAAwB;IAExD,MAAM,CAAC,WAAW,IAAI,YAAY;IAIlC,WAAW,EAAE,mBAAmB,CAAC;IACjC,mBAAmB,EAAE,2BAA2B,CAAC;IACjD,sBAAsB,EAAE,8BAA8B,CAAC;IAEvD;;OAEG;IACH,MAAM,CAAC,WAAW,CAChB,GAAG,EAAE;QACH;;WAEG;QACH,WAAW,EAAE,mBAAmB,CAAC;QAEjC;;WAEG;QACH,sBAAsB,CAAC,EAAE,8BAA8B,CAAC;QAExD;;WAEG;QACH,QAAQ,EAAE,kBAAkB,EAAE,CAAC;KAChC,GACA,IAAI;IAoBP;;;OAGG;IACH,MAAM,CAAC,cAAc,IAAI,mBAAmB;IAU5C;;;OAGG;IACH,MAAM,CAAC,sBAAsB,IAAI,2BAA2B;IAU5D;;;;OAIG;IACH,MAAM,CAAC,YAAY,CAAC,CAAC,SAAS,QAAQ,EAAE,UAAU,EAAE,kBAAkB,GAAG,iBAAiB,CAAC,CAAC,CAAC;IAI7F;;;;OAIG;IACH,MAAM,CAAC,iBAAiB,CAAC,CAAC,SAAS,QAAQ,EAAE,GAAG,EAAE,MAAM,GAAG,iBAAiB,CAAC,CAAC,CAAC;IAe/E;;;OAGG;IACH,MAAM,CAAC,yBAAyB,IAAI,8BAA8B;CASnE"}
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.DBE_Global_S = void 0;
|
|
4
4
|
const dynamobe_db_service_collection_service_1 = require("./dynamobe-db-service-collection.service");
|
|
5
5
|
const dynamobe_db_service_1 = require("./dynamobe-db.service");
|
|
6
|
+
const dynamobe_shared_service_1 = require("./dynamobe-shared.service");
|
|
6
7
|
const dynamobe_singleton_service_1 = require("./dynamobe-singleton.service");
|
|
7
8
|
/**
|
|
8
9
|
* This is the main Global/Core Service Collection used by DynamoBE,
|
|
@@ -18,12 +19,22 @@ class DBE_Global_S extends dynamobe_singleton_service_1.DynamoBESingletonService
|
|
|
18
19
|
*/
|
|
19
20
|
static setServices(set) {
|
|
20
21
|
this.getInstance();
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
22
|
+
try {
|
|
23
|
+
this.instance.dbServiceCollection = new dynamobe_db_service_collection_service_1.DynamoBEDBServiceCollection();
|
|
24
|
+
set.dbModels.forEach((dbModel) => {
|
|
25
|
+
try {
|
|
26
|
+
this.instance.dbServiceCollection[dbModel.dataName] = new dynamobe_db_service_1.DynamoBEDBService(dbModel);
|
|
27
|
+
}
|
|
28
|
+
catch (error) {
|
|
29
|
+
dynamobe_shared_service_1.DBE_Shared.logError(`\nFailed to create DynamoBEDBService (${dbModel.dataName}).\n`, dbModel, `\n`, error);
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
this.instance.authService = set.authService;
|
|
33
|
+
this.instance.emailServiceCollection = set.emailServiceCollection;
|
|
34
|
+
}
|
|
35
|
+
catch (error) {
|
|
36
|
+
dynamobe_shared_service_1.DBE_Shared.logError('\nsetServices failed on DBE_Global_S.\n', error);
|
|
37
|
+
}
|
|
27
38
|
}
|
|
28
39
|
/**
|
|
29
40
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dynamobe-global.service.js","sourceRoot":"","sources":["../../src/_services/dynamobe-global.service.ts"],"names":[],"mappings":";;;AAKA,qGAAuF;AACvF,+DAA0D;AAE1D,6EAAwE;AAExE;;;;GAIG;AACH,MAAa,YAAa,SAAQ,qDAAwB;IAExD,MAAM,CAAC,WAAW;QAChB,OAAO,YAAY,CAAC,oBAAoB,EAAE,CAAC;IAC7C,CAAC;IAMD;;OAEG;IACH,MAAM,CAAC,WAAW,CAChB,GAeC;QAED,IAAI,CAAC,WAAW,EAAE,CAAC;QAEnB,IAAI,CAAC,QAAQ,CAAC,mBAAmB,GAAG,IAAI,oEAA2B,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"dynamobe-global.service.js","sourceRoot":"","sources":["../../src/_services/dynamobe-global.service.ts"],"names":[],"mappings":";;;AAKA,qGAAuF;AACvF,+DAA0D;AAE1D,uEAAuD;AACvD,6EAAwE;AAExE;;;;GAIG;AACH,MAAa,YAAa,SAAQ,qDAAwB;IAExD,MAAM,CAAC,WAAW;QAChB,OAAO,YAAY,CAAC,oBAAoB,EAAE,CAAC;IAC7C,CAAC;IAMD;;OAEG;IACH,MAAM,CAAC,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,IAAI,CAAC,QAAQ,CAAC,mBAAmB,CAAC;IAC3C,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,YAAY,CAAqB,UAA8B;QACpE,OAAO,IAAI,CAAC,iBAAiB,CAAI,UAAU,CAAC,QAAQ,CAAC,CAAC;IACxD,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,iBAAiB,CAAqB,GAAW;QACtD,MAAM,UAAU,GAAG,IAAI,CAAC,sBAAsB,EAAE,CAAC;QACjD,IAAI,UAAU,CAAC,GAAG,CAAC,EAAE;YACnB,OAAO,UAAU,CAAC,GAAG,CAAyB,CAAC;SAChD;aAAM;YACL,IAAI,IAAI,GAAW,GAAG,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE,CAAC;YAChD,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,oBAAoB,CAAC,CAAC;YAChD,MAAM,IAAI,KAAK,CACb;oDAC4C,GAAG;;kBAErC,IAAI,IAAI,CAAC,CAAC;SACvB;IACH,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,yBAAyB;;QAC9B,IAAI,QAAC,IAAI,CAAC,QAAQ,0CAAE,sBAAsB,CAAA,EAAE;YAC1C,MAAM,IAAI,KAAK,CACb,0CAA0C;gBAC1C,8FAA8F;gBAC9F,iDAAiD,CAAC,CAAC;SACtD;QACD,OAAO,IAAI,CAAC,QAAQ,CAAC,sBAAsB,CAAC;IAC9C,CAAC;CACF;AAxHD,oCAwHC"}
|
package/lib/tsconfig.tsbuildinfo
CHANGED
|
@@ -621,9 +621,14 @@
|
|
|
621
621
|
"signature": "d6e99be47f32f113288c380db1a9121e2108af49a9ccb2f88f8544ede80fa647",
|
|
622
622
|
"affectsGlobalScope": false
|
|
623
623
|
},
|
|
624
|
+
"../node_modules/@futdevpro/fsm-dynamo/lib/_enums/data-model-type.enum.d.ts": {
|
|
625
|
+
"version": "58db1bde43f232985d47f296cec0e0c9e09b30c2a24d28a0aee8d4dfc25f1de8",
|
|
626
|
+
"signature": "58db1bde43f232985d47f296cec0e0c9e09b30c2a24d28a0aee8d4dfc25f1de8",
|
|
627
|
+
"affectsGlobalScope": false
|
|
628
|
+
},
|
|
624
629
|
"../node_modules/@futdevpro/fsm-dynamo/lib/_enums/index.d.ts": {
|
|
625
|
-
"version": "
|
|
626
|
-
"signature": "
|
|
630
|
+
"version": "0a0de3e6103d13f5f8c51f71f6eee0d03de3b688ba92ef59d12192fb26d83fc8",
|
|
631
|
+
"signature": "0a0de3e6103d13f5f8c51f71f6eee0d03de3b688ba92ef59d12192fb26d83fc8",
|
|
627
632
|
"affectsGlobalScope": false
|
|
628
633
|
},
|
|
629
634
|
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/data-models/metadata.d.ts": {
|
|
@@ -647,8 +652,8 @@
|
|
|
647
652
|
"affectsGlobalScope": false
|
|
648
653
|
},
|
|
649
654
|
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/dynamobe-data-params.d.ts": {
|
|
650
|
-
"version": "
|
|
651
|
-
"signature": "
|
|
655
|
+
"version": "fb88e041be319d03f5ab3932936a76ce2057736d4648300d0e8739b15928f619",
|
|
656
|
+
"signature": "fb88e041be319d03f5ab3932936a76ce2057736d4648300d0e8739b15928f619",
|
|
652
657
|
"affectsGlobalScope": false
|
|
653
658
|
},
|
|
654
659
|
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/data-models/usage-session.d.ts": {
|
|
@@ -792,7 +797,7 @@
|
|
|
792
797
|
"affectsGlobalScope": false
|
|
793
798
|
},
|
|
794
799
|
"../src/_services/dynamobe-global.service.ts": {
|
|
795
|
-
"version": "
|
|
800
|
+
"version": "1ab2dc38c8cd9e700770bab1c6b5f3a5a819ab0ee5d8afd18d41ee1f3970d6e4",
|
|
796
801
|
"signature": "a4682c6bf3abd57035aaeeb3a0dc2fc56f39ca0ff66605e5f8862ef895a93d53",
|
|
797
802
|
"affectsGlobalScope": false
|
|
798
803
|
},
|
|
@@ -1017,7 +1022,16 @@
|
|
|
1017
1022
|
"../node_modules/@types/node/ts3.2/util.d.ts",
|
|
1018
1023
|
"../node_modules/@types/node/util.d.ts"
|
|
1019
1024
|
],
|
|
1025
|
+
"../node_modules/@futdevpro/fsm-dynamo/lib/_enums/data-model-type.enum.d.ts": [
|
|
1026
|
+
"../node_modules/@types/node/fs.d.ts",
|
|
1027
|
+
"../node_modules/@types/node/process.d.ts",
|
|
1028
|
+
"../node_modules/@types/node/ts3.2/fs.d.ts",
|
|
1029
|
+
"../node_modules/@types/node/ts3.2/process.d.ts",
|
|
1030
|
+
"../node_modules/@types/node/ts3.2/util.d.ts",
|
|
1031
|
+
"../node_modules/@types/node/util.d.ts"
|
|
1032
|
+
],
|
|
1020
1033
|
"../node_modules/@futdevpro/fsm-dynamo/lib/_enums/index.d.ts": [
|
|
1034
|
+
"../node_modules/@futdevpro/fsm-dynamo/lib/_enums/data-model-type.enum.d.ts",
|
|
1021
1035
|
"../node_modules/@futdevpro/fsm-dynamo/lib/_enums/log-style.enum.d.ts",
|
|
1022
1036
|
"../node_modules/@types/node/fs.d.ts",
|
|
1023
1037
|
"../node_modules/@types/node/process.d.ts",
|
|
@@ -1052,6 +1066,7 @@
|
|
|
1052
1066
|
"../node_modules/@types/node/util.d.ts"
|
|
1053
1067
|
],
|
|
1054
1068
|
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/dynamobe-data-params.d.ts": [
|
|
1069
|
+
"../node_modules/@futdevpro/fsm-dynamo/lib/_enums/index.d.ts",
|
|
1055
1070
|
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/dynamobe-data-property-params.d.ts",
|
|
1056
1071
|
"../node_modules/@types/node/fs.d.ts",
|
|
1057
1072
|
"../node_modules/@types/node/process.d.ts",
|
|
@@ -2806,6 +2821,7 @@
|
|
|
2806
2821
|
"../src/_services/dynamobe-db-service-collection.service.ts",
|
|
2807
2822
|
"../src/_services/dynamobe-db.service.ts",
|
|
2808
2823
|
"../src/_services/dynamobe-email-service-collection.service.ts",
|
|
2824
|
+
"../src/_services/dynamobe-shared.service.ts",
|
|
2809
2825
|
"../src/_services/dynamobe-singleton.service.ts"
|
|
2810
2826
|
],
|
|
2811
2827
|
"../src/_services/dynamobe-routing-module.service.ts": [
|
|
@@ -2937,7 +2953,16 @@
|
|
|
2937
2953
|
"../node_modules/@types/node/ts3.2/util.d.ts",
|
|
2938
2954
|
"../node_modules/@types/node/util.d.ts"
|
|
2939
2955
|
],
|
|
2956
|
+
"../node_modules/@futdevpro/fsm-dynamo/lib/_enums/data-model-type.enum.d.ts": [
|
|
2957
|
+
"../node_modules/@types/node/fs.d.ts",
|
|
2958
|
+
"../node_modules/@types/node/process.d.ts",
|
|
2959
|
+
"../node_modules/@types/node/ts3.2/fs.d.ts",
|
|
2960
|
+
"../node_modules/@types/node/ts3.2/process.d.ts",
|
|
2961
|
+
"../node_modules/@types/node/ts3.2/util.d.ts",
|
|
2962
|
+
"../node_modules/@types/node/util.d.ts"
|
|
2963
|
+
],
|
|
2940
2964
|
"../node_modules/@futdevpro/fsm-dynamo/lib/_enums/index.d.ts": [
|
|
2965
|
+
"../node_modules/@futdevpro/fsm-dynamo/lib/_enums/data-model-type.enum.d.ts",
|
|
2941
2966
|
"../node_modules/@futdevpro/fsm-dynamo/lib/_enums/log-style.enum.d.ts",
|
|
2942
2967
|
"../node_modules/@types/node/fs.d.ts",
|
|
2943
2968
|
"../node_modules/@types/node/process.d.ts",
|
|
@@ -2972,6 +2997,7 @@
|
|
|
2972
2997
|
"../node_modules/@types/node/util.d.ts"
|
|
2973
2998
|
],
|
|
2974
2999
|
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/dynamobe-data-params.d.ts": [
|
|
3000
|
+
"../node_modules/@futdevpro/fsm-dynamo/lib/_enums/index.d.ts",
|
|
2975
3001
|
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/dynamobe-data-property-params.d.ts",
|
|
2976
3002
|
"../node_modules/@types/node/fs.d.ts",
|
|
2977
3003
|
"../node_modules/@types/node/process.d.ts",
|
|
@@ -4480,6 +4506,7 @@
|
|
|
4480
4506
|
"../node_modules/@futdevpro/fsm-dynamo/lib/_constants/module-settings/test-module-settings.d.ts",
|
|
4481
4507
|
"../node_modules/@futdevpro/fsm-dynamo/lib/_constants/module-settings/usage-module-settings.d.ts",
|
|
4482
4508
|
"../node_modules/@futdevpro/fsm-dynamo/lib/_constants/times.d.ts",
|
|
4509
|
+
"../node_modules/@futdevpro/fsm-dynamo/lib/_enums/data-model-type.enum.d.ts",
|
|
4483
4510
|
"../node_modules/@futdevpro/fsm-dynamo/lib/_enums/index.d.ts",
|
|
4484
4511
|
"../node_modules/@futdevpro/fsm-dynamo/lib/_enums/log-style.enum.d.ts",
|
|
4485
4512
|
"../node_modules/@futdevpro/fsm-dynamo/lib/_models/control-models/daily-usage-data.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.22",
|
|
4
4
|
"description": "Dynamic NodeTS (NodeJS-Typescript), MongoDB Backend System Framework by Future Development Ltd.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "npx tsc",
|
|
@@ -162,7 +162,7 @@
|
|
|
162
162
|
},
|
|
163
163
|
"homepage": "https:/futdevpro.hu/projects/dynamo",
|
|
164
164
|
"peerDependencies": {
|
|
165
|
-
"@futdevpro/fsm-dynamo": "^1.5.
|
|
165
|
+
"@futdevpro/fsm-dynamo": "^1.5.19",
|
|
166
166
|
|
|
167
167
|
"@types/express": "^4.17.7",
|
|
168
168
|
"@types/geoip-lite": "^1.4.1",
|
|
@@ -6,6 +6,7 @@ import { DynamoBEAuthService } from './dynamobe-auth.service';
|
|
|
6
6
|
import { DynamoBEDBServiceCollection } from './dynamobe-db-service-collection.service';
|
|
7
7
|
import { DynamoBEDBService } from './dynamobe-db.service';
|
|
8
8
|
import { DynamoBEEmailServiceCollection } from './dynamobe-email-service-collection.service';
|
|
9
|
+
import { DBE_Shared } from './dynamobe-shared.service';
|
|
9
10
|
import { DynamoBESingletonService } from './dynamobe-singleton.service';
|
|
10
11
|
|
|
11
12
|
/**
|
|
@@ -46,13 +47,21 @@ export class DBE_Global_S extends DynamoBESingletonService {
|
|
|
46
47
|
): void {
|
|
47
48
|
this.getInstance();
|
|
48
49
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
50
|
+
try {
|
|
51
|
+
this.instance.dbServiceCollection = new DynamoBEDBServiceCollection();
|
|
52
|
+
set.dbModels.forEach((dbModel: DynamoBEDataParams) => {
|
|
53
|
+
try {
|
|
54
|
+
this.instance.dbServiceCollection[dbModel.dataName] = new DynamoBEDBService(dbModel);
|
|
55
|
+
} catch (error) {
|
|
56
|
+
DBE_Shared.logError(`\nFailed to create DynamoBEDBService (${dbModel.dataName}).\n`, dbModel, `\n`, error);
|
|
57
|
+
}
|
|
58
|
+
});
|
|
53
59
|
|
|
54
|
-
|
|
55
|
-
|
|
60
|
+
this.instance.authService = set.authService;
|
|
61
|
+
this.instance.emailServiceCollection = set.emailServiceCollection;
|
|
62
|
+
} catch (error) {
|
|
63
|
+
DBE_Shared.logError('\nsetServices failed on DBE_Global_S.\n', error);
|
|
64
|
+
}
|
|
56
65
|
}
|
|
57
66
|
|
|
58
67
|
/**
|