@futdevpro/nts-dynamo 1.5.77 → 1.5.83
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/LICENSE +2 -2
- package/lib/_constants/dynamo-nts-global-settings.d.ts +2 -2
- package/lib/_constants/dynamo-nts-global-settings.js +17 -17
- package/lib/_constants/index.d.ts +1 -1
- package/lib/_constants/index.js +4 -4
- package/lib/_enums/data-model-type.enum.d.ts +12 -12
- package/lib/_enums/data-model-type.enum.js +16 -16
- package/lib/_enums/data-model-type.enum.js.map +1 -1
- package/lib/_enums/dynamo-nts-data-service-function.enum.d.ts +12 -12
- package/lib/_enums/dynamo-nts-data-service-function.enum.js +18 -18
- package/lib/_enums/dynamo-nts-data-service-function.enum.js.map +1 -1
- package/lib/_enums/dynamo-nts-route-security.enum.d.ts +11 -11
- package/lib/_enums/dynamo-nts-route-security.enum.js +15 -15
- package/lib/_enums/dynamo-nts-route-security.enum.js.map +1 -1
- package/lib/_enums/dynamo-nts-socket-security.enum.d.ts +10 -10
- package/lib/_enums/dynamo-nts-socket-security.enum.js +14 -14
- package/lib/_enums/dynamo-nts-socket-security.enum.js.map +1 -1
- package/lib/_enums/http/http-call-type.enum.d.ts +11 -11
- package/lib/_enums/http/http-call-type.enum.js +15 -15
- package/lib/_enums/http/http-call-type.enum.js.map +1 -1
- package/lib/_enums/http/http-response-type.enum.d.ts +6 -6
- package/lib/_enums/http/http-response-type.enum.js +10 -10
- package/lib/_enums/http/http-response-type.enum.js.map +1 -1
- package/lib/_enums/http/socket-event.enum.d.ts +9 -8
- package/lib/_enums/http/socket-event.enum.d.ts.map +1 -1
- package/lib/_enums/http/socket-event.enum.js +13 -12
- package/lib/_enums/http/socket-event.enum.js.map +1 -1
- package/lib/_enums/index.d.ts +8 -8
- package/lib/_enums/index.js +13 -13
- package/lib/_enums/predefined-data-types.enum.d.ts +10 -10
- package/lib/_enums/predefined-data-types.enum.js +14 -14
- package/lib/_enums/predefined-data-types.enum.js.map +1 -1
- package/lib/_interfaces/certification-settings.interface.d.ts +7 -0
- package/lib/_interfaces/certification-settings.interface.d.ts.map +1 -0
- package/lib/_interfaces/certification-settings.interface.js +3 -0
- package/lib/_interfaces/certification-settings.interface.js.map +1 -0
- package/lib/_interfaces/global-service-settings.interface.d.ts +18 -0
- package/lib/_interfaces/global-service-settings.interface.d.ts.map +1 -0
- package/lib/_interfaces/global-service-settings.interface.js +3 -0
- package/lib/_interfaces/global-service-settings.interface.js.map +1 -0
- package/lib/_interfaces/index.d.ts +1 -0
- package/lib/_interfaces/index.d.ts.map +1 -0
- package/lib/_interfaces/index.js +4 -0
- package/lib/_interfaces/index.js.map +1 -0
- package/lib/_interfaces/port-settings.interface.d.ts +5 -0
- package/lib/_interfaces/port-settings.interface.d.ts.map +1 -0
- package/lib/_interfaces/port-settings.interface.js +3 -0
- package/lib/_interfaces/port-settings.interface.js.map +1 -0
- package/lib/_models/dynamo-nts-api-call-params.d.ts +95 -95
- package/lib/_models/dynamo-nts-api-call-params.js +47 -47
- package/lib/_models/dynamo-nts-app-params.d.ts +49 -49
- package/lib/_models/dynamo-nts-app-params.js +17 -17
- package/lib/_models/dynamo-nts-endpoint-params.d.ts +80 -80
- package/lib/_models/dynamo-nts-endpoint-params.js +139 -139
- package/lib/_models/dynamo-nts-global-settings.d.ts +53 -53
- package/lib/_models/dynamo-nts-global-settings.js +2 -2
- package/lib/_models/dynamo-nts-routing-module-settings.d.ts +19 -19
- package/lib/_models/dynamo-nts-routing-module-settings.js +2 -2
- package/lib/_models/dynamo-nts-socket-event-params.d.ts +32 -30
- package/lib/_models/dynamo-nts-socket-event-params.d.ts.map +1 -1
- package/lib/_models/dynamo-nts-socket-event-params.js +80 -79
- package/lib/_models/dynamo-nts-socket-event-params.js.map +1 -1
- package/lib/_models/dynamo-nts-socket-presence.d.ts +21 -0
- package/lib/_models/dynamo-nts-socket-presence.d.ts.map +1 -0
- package/lib/_models/dynamo-nts-socket-presence.js +45 -0
- package/lib/_models/dynamo-nts-socket-presence.js.map +1 -0
- package/lib/_models/dynamo-nts-socket-service-params.d.ts +18 -18
- package/lib/_models/dynamo-nts-socket-service-params.d.ts.map +1 -1
- package/lib/_models/dynamo-nts-socket-service-params.js +26 -26
- package/lib/_models/dynamo-nts-socket-service-params.js.map +1 -1
- package/lib/_models/index.d.ts +7 -8
- package/lib/_models/index.d.ts.map +1 -1
- package/lib/_models/index.js +12 -12
- package/lib/_models/index.js.map +1 -1
- package/lib/_modules/api-service.index.d.ts +5 -5
- package/lib/_modules/api-service.index.js +11 -11
- package/lib/_modules/app-extended.index.d.ts +15 -12
- package/lib/_modules/app-extended.index.d.ts.map +1 -1
- package/lib/_modules/app-extended.index.js +23 -19
- package/lib/_modules/app-extended.index.js.map +1 -1
- package/lib/_modules/app.index.d.ts +13 -10
- package/lib/_modules/app.index.d.ts.map +1 -1
- package/lib/_modules/app.index.js +21 -17
- package/lib/_modules/app.index.js.map +1 -1
- package/lib/_modules/auth.index.d.ts +3 -3
- package/lib/_modules/auth.index.js +8 -8
- package/lib/_modules/constants.index.d.ts +1 -1
- package/lib/_modules/constants.index.js +4 -4
- package/lib/_modules/controller.index.d.ts +4 -4
- package/lib/_modules/controller.index.js +10 -10
- package/lib/_modules/custom-data/custom-data.controller.d.ts +5 -5
- package/lib/_modules/custom-data/custom-data.controller.js +55 -55
- package/lib/_modules/custom-data/custom-data.service.d.ts +5 -5
- package/lib/_modules/custom-data/custom-data.service.js +11 -11
- package/lib/_modules/custom-data/get-custom-data-routing-module.d.ts +3 -3
- package/lib/_modules/custom-data/get-custom-data-routing-module.js +17 -17
- package/lib/_modules/custom-data/index.d.ts +4 -4
- package/lib/_modules/custom-data/index.js +8 -8
- package/lib/_modules/custom-data-module.index.d.ts +1 -1
- package/lib/_modules/custom-data-module.index.js +4 -4
- package/lib/_modules/data-service.index.d.ts +5 -5
- package/lib/_modules/data-service.index.js +10 -10
- package/lib/_modules/email.index.d.ts +3 -3
- package/lib/_modules/email.index.js +8 -8
- package/lib/_modules/enums.index.d.ts +1 -1
- package/lib/_modules/enums.index.js +4 -4
- package/lib/_modules/models.index.d.ts +1 -1
- package/lib/_modules/models.index.js +4 -4
- package/lib/_modules/services.index.d.ts +1 -1
- package/lib/_modules/services.index.js +4 -4
- package/lib/_modules/test/get-test-routing-module.d.ts +3 -3
- package/lib/_modules/test/get-test-routing-module.js +17 -17
- package/lib/_modules/test/index.d.ts +3 -3
- package/lib/_modules/test/index.js +7 -7
- package/lib/_modules/test/test.controller.d.ts +5 -5
- package/lib/_modules/test/test.controller.js +104 -104
- package/lib/_modules/test-module.index.d.ts +1 -1
- package/lib/_modules/test-module.index.js +4 -4
- package/lib/_modules/usage/get-usage-routing-module.d.ts +3 -3
- package/lib/_modules/usage/get-usage-routing-module.js +17 -17
- package/lib/_modules/usage/index.d.ts +4 -4
- package/lib/_modules/usage/index.js +8 -8
- package/lib/_modules/usage/usage-controller.d.ts +6 -6
- package/lib/_modules/usage/usage-controller.js +88 -88
- package/lib/_modules/usage/usage.service.d.ts +16 -16
- package/lib/_modules/usage/usage.service.js +132 -132
- package/lib/_modules/usage-module.index.d.ts +1 -1
- package/lib/_modules/usage-module.index.js +4 -4
- package/lib/_services/dynamo-nts-api.service.d.ts +34 -34
- package/lib/_services/dynamo-nts-api.service.js +188 -188
- package/lib/_services/dynamo-nts-app-extended.d.ts +128 -128
- package/lib/_services/dynamo-nts-app-extended.d.ts.map +1 -1
- package/lib/_services/dynamo-nts-app-extended.js +212 -212
- package/lib/_services/dynamo-nts-app-extended.js.map +1 -1
- package/lib/_services/dynamo-nts-app.d.ts +270 -278
- package/lib/_services/dynamo-nts-app.d.ts.map +1 -1
- package/lib/_services/dynamo-nts-app.js +371 -371
- package/lib/_services/dynamo-nts-app.js.map +1 -1
- package/lib/_services/dynamo-nts-app.spec.d.ts +1 -0
- package/lib/_services/dynamo-nts-app.spec.d.ts.map +1 -0
- package/lib/_services/dynamo-nts-app.spec.js +10 -0
- package/lib/_services/dynamo-nts-app.spec.js.map +1 -0
- package/lib/_services/dynamo-nts-auth.service.d.ts +127 -127
- package/lib/_services/dynamo-nts-auth.service.d.ts.map +1 -1
- package/lib/_services/dynamo-nts-auth.service.js +53 -53
- package/lib/_services/dynamo-nts-auth.service.js.map +1 -1
- package/lib/_services/dynamo-nts-controller.service.d.ts +105 -105
- package/lib/_services/dynamo-nts-controller.service.d.ts.map +1 -1
- package/lib/_services/dynamo-nts-controller.service.js +57 -57
- package/lib/_services/dynamo-nts-controller.service.js.map +1 -1
- package/lib/_services/dynamo-nts-data.service.d.ts +230 -230
- package/lib/_services/dynamo-nts-data.service.d.ts.map +1 -1
- package/lib/_services/dynamo-nts-data.service.js +689 -689
- package/lib/_services/dynamo-nts-data.service.js.map +1 -1
- package/lib/_services/dynamo-nts-db-service-collection.service.d.ts +8 -8
- package/lib/_services/dynamo-nts-db-service-collection.service.js +10 -10
- package/lib/_services/dynamo-nts-db.service.d.ts +386 -312
- package/lib/_services/dynamo-nts-db.service.d.ts.map +1 -1
- package/lib/_services/dynamo-nts-db.service.js +856 -856
- package/lib/_services/dynamo-nts-db.service.js.map +1 -1
- package/lib/_services/dynamo-nts-email-service-collection.service.d.ts +18 -18
- package/lib/_services/dynamo-nts-email-service-collection.service.js +20 -20
- package/lib/_services/dynamo-nts-email.service.d.ts +56 -56
- package/lib/_services/dynamo-nts-email.service.d.ts.map +1 -1
- package/lib/_services/dynamo-nts-email.service.js +203 -203
- package/lib/_services/dynamo-nts-email.service.js.map +1 -1
- package/lib/_services/dynamo-nts-global.service.d.ts +71 -84
- package/lib/_services/dynamo-nts-global.service.d.ts.map +1 -1
- package/lib/_services/dynamo-nts-global.service.js +156 -156
- package/lib/_services/dynamo-nts-global.service.js.map +1 -1
- package/lib/_services/dynamo-nts-routing-module.service.d.ts +76 -76
- package/lib/_services/dynamo-nts-routing-module.service.d.ts.map +1 -1
- package/lib/_services/dynamo-nts-routing-module.service.js +191 -191
- package/lib/_services/dynamo-nts-routing-module.service.js.map +1 -1
- package/lib/_services/dynamo-nts-shared.service.d.ts +31 -31
- package/lib/_services/dynamo-nts-shared.service.d.ts.map +1 -1
- package/lib/_services/dynamo-nts-shared.service.js +70 -70
- package/lib/_services/dynamo-nts-shared.service.js.map +1 -1
- package/lib/_services/dynamo-nts-shared.service.spec.d.ts +2 -0
- package/lib/_services/dynamo-nts-shared.service.spec.d.ts.map +1 -0
- package/lib/_services/dynamo-nts-shared.service.spec.js +12 -0
- package/lib/_services/dynamo-nts-shared.service.spec.js.map +1 -0
- package/lib/_services/dynamo-nts-singleton.service.d.ts +8 -8
- package/lib/_services/dynamo-nts-singleton.service.js +18 -18
- package/lib/_services/dynamo-nts-singleton.service.js.map +1 -1
- package/lib/_services/dynamo-nts-socket-service-collection.service.d.ts +9 -9
- package/lib/_services/dynamo-nts-socket-service-collection.service.js +13 -13
- package/lib/_services/dynamo-nts-socket.service.d.ts +57 -45
- package/lib/_services/dynamo-nts-socket.service.d.ts.map +1 -1
- package/lib/_services/dynamo-nts-socket.service.js +188 -165
- package/lib/_services/dynamo-nts-socket.service.js.map +1 -1
- package/lib/_services/index.d.ts +14 -16
- package/lib/_services/index.d.ts.map +1 -1
- package/lib/_services/index.js +20 -20
- package/lib/_services/index.js.map +1 -1
- package/lib/index.d.ts +6 -6
- package/lib/index.js +14 -14
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package SAVE.json +216 -0
- package/package-NEW with test but not working.json +228 -0
- package/package.json +14 -8
- package/spec/support/jasmine.json +14 -0
- package/src/_enums/http/socket-event.enum.ts +2 -1
- package/src/_interfaces/certification-settings.interface.ts +7 -0
- package/src/_interfaces/global-service-settings.interface.ts +23 -0
- package/src/_interfaces/index.ts +5 -0
- package/src/_interfaces/port-settings.interface.ts +5 -0
- package/src/_models/dynamo-nts-socket-event-params.ts +23 -21
- package/src/_models/{dynamo-nts-socket-dictionary.ts → dynamo-nts-socket-presence.ts} +21 -5
- package/src/_models/dynamo-nts-socket-service-params.ts +1 -0
- package/src/_models/index.ts +2 -2
- package/src/_modules/app-extended.index.ts +7 -2
- package/src/_modules/app.index.ts +5 -0
- package/src/_services/dynamo-nts-app-extended.ts +6 -2
- package/src/_services/dynamo-nts-app.spec.ts +14 -0
- package/src/_services/dynamo-nts-app.ts +8 -14
- package/src/_services/dynamo-nts-auth.service.ts +1 -0
- package/src/_services/dynamo-nts-controller.service.ts +2 -1
- package/src/_services/dynamo-nts-data.service.ts +19 -19
- package/src/_services/dynamo-nts-db.service.ts +195 -115
- package/src/_services/dynamo-nts-email.service.ts +1 -0
- package/src/_services/dynamo-nts-global.service.ts +3 -18
- package/src/_services/dynamo-nts-routing-module.service.ts +1 -0
- package/src/_services/dynamo-nts-shared.service.spec.ts +10 -0
- package/src/_services/dynamo-nts-shared.service.ts +2 -1
- package/src/_services/dynamo-nts-socket.service.ts +80 -41
- package/src/_services/index.ts +2 -2
|
@@ -1,166 +1,166 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DynamoNTS_GlobalService = void 0;
|
|
4
|
-
const fsm_dynamo_1 = require("@futdevpro/fsm-dynamo");
|
|
5
|
-
const dynamo_nts_db_service_collection_service_1 = require("./dynamo-nts-db-service-collection.service");
|
|
6
|
-
const dynamo_nts_db_service_1 = require("./dynamo-nts-db.service");
|
|
7
|
-
const dynamo_nts_singleton_service_1 = require("./dynamo-nts-singleton.service");
|
|
8
|
-
const dynamo_nts_socket_service_collection_service_1 = require("./dynamo-nts-socket-service-collection.service");
|
|
9
|
-
/**
|
|
10
|
-
* This is the main Global/Core Service Collection used by DynamoBE,
|
|
11
|
-
* you also can use this to access main services as
|
|
12
|
-
* dbServices, emailServices, or authService
|
|
13
|
-
*/
|
|
14
|
-
class DynamoNTS_GlobalService extends dynamo_nts_singleton_service_1.DynamoNTS_SingletonService {
|
|
15
|
-
constructor() {
|
|
16
|
-
super(...arguments);
|
|
17
|
-
this.socketServiceCollection = dynamo_nts_socket_service_collection_service_1.DynamoNTS_SocketServiceCollection.getInstance();
|
|
18
|
-
}
|
|
19
|
-
static getInstance() {
|
|
20
|
-
return DynamoNTS_GlobalService.getSingletonInstance();
|
|
21
|
-
}
|
|
22
|
-
static get params() { return this._params; }
|
|
23
|
-
static get upSince() { return this._upSince; }
|
|
24
|
-
static get upTime() { return +new Date() - +this._upSince; }
|
|
25
|
-
/**
|
|
26
|
-
* You need to setup global Services through this function
|
|
27
|
-
*/
|
|
28
|
-
static setServices(set) {
|
|
29
|
-
this.getInstance();
|
|
30
|
-
try {
|
|
31
|
-
this.instance.dbServiceCollection = new dynamo_nts_db_service_collection_service_1.DynamoNTS_DBServiceCollection();
|
|
32
|
-
set.dbModels.forEach((dbModel) => {
|
|
33
|
-
try {
|
|
34
|
-
this.instance.dbServiceCollection[dbModel.dataName] = new dynamo_nts_db_service_1.DynamoNTS_DBService(dbModel);
|
|
35
|
-
}
|
|
36
|
-
catch (error) {
|
|
37
|
-
fsm_dynamo_1.Dynamo_Log.error(`\nFailed to create DynamoBEDBService (${dbModel.dataName}).\n`, dbModel, `\n`, error);
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
this.instance.authService = set.authService;
|
|
41
|
-
this.instance.emailServiceCollection = set.emailServiceCollection;
|
|
42
|
-
}
|
|
43
|
-
catch (error) {
|
|
44
|
-
fsm_dynamo_1.Dynamo_Log.error('\nsetServices failed on DBE_Global_S.\n', error);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
static setParams(params) {
|
|
48
|
-
this._params = params;
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
*
|
|
52
|
-
* @returns
|
|
53
|
-
*/
|
|
54
|
-
static getAuthService() {
|
|
55
|
-
var _a, _b;
|
|
56
|
-
if (!((_b = (_a = this.instance) === null || _a === void 0 ? void 0 : _a.authService) === null || _b === void 0 ? void 0 : _b.authenticateToken)) {
|
|
57
|
-
throw new Error(`\nUnique Authentication Service missing!` +
|
|
58
|
-
`\nPlease create a Unique Authentication Service extending DynamoNTS_AuthService, ` +
|
|
59
|
-
`and Setup with "DBE_Global_SC.setServices(...)"`);
|
|
60
|
-
}
|
|
61
|
-
return this.instance.authService;
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
*
|
|
65
|
-
* @returns
|
|
66
|
-
*/
|
|
67
|
-
static getDBServiceCollection() {
|
|
68
|
-
var _a;
|
|
69
|
-
if (!((_a = this.instance) === null || _a === void 0 ? void 0 : _a.dbServiceCollection)) {
|
|
70
|
-
throw new Error(`\nUnique DataBase Service Collection missing!` +
|
|
71
|
-
`\nPlease create a Unique DataBase Service Collection extending DynamoNTS_DBServiceCollection, ` +
|
|
72
|
-
`and Setup with "DBE_Global_SC.setServices(...)"`);
|
|
73
|
-
}
|
|
74
|
-
return this.instance.dbServiceCollection;
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
*
|
|
78
|
-
* @param dataParams
|
|
79
|
-
* @returns
|
|
80
|
-
*/
|
|
81
|
-
static getDBService(dataParams) {
|
|
82
|
-
return this.getDBServiceByKey(dataParams.dataName);
|
|
83
|
-
}
|
|
84
|
-
/**
|
|
85
|
-
*
|
|
86
|
-
* @param key
|
|
87
|
-
* @returns
|
|
88
|
-
*/
|
|
89
|
-
static getDBServiceByKey(key) {
|
|
90
|
-
const collection = this.getDBServiceCollection();
|
|
91
|
-
if (collection[key]) {
|
|
92
|
-
return collection[key];
|
|
93
|
-
}
|
|
94
|
-
else {
|
|
95
|
-
let keys = `${Object.keys(collection)}`;
|
|
96
|
-
keys = keys.replace(/,/g, '\n ');
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DynamoNTS_GlobalService = void 0;
|
|
4
|
+
const fsm_dynamo_1 = require("@futdevpro/fsm-dynamo");
|
|
5
|
+
const dynamo_nts_db_service_collection_service_1 = require("./dynamo-nts-db-service-collection.service");
|
|
6
|
+
const dynamo_nts_db_service_1 = require("./dynamo-nts-db.service");
|
|
7
|
+
const dynamo_nts_singleton_service_1 = require("./dynamo-nts-singleton.service");
|
|
8
|
+
const dynamo_nts_socket_service_collection_service_1 = require("./dynamo-nts-socket-service-collection.service");
|
|
9
|
+
/**
|
|
10
|
+
* This is the main Global/Core Service Collection used by DynamoBE,
|
|
11
|
+
* you also can use this to access main services as
|
|
12
|
+
* dbServices, emailServices, or authService
|
|
13
|
+
*/
|
|
14
|
+
class DynamoNTS_GlobalService extends dynamo_nts_singleton_service_1.DynamoNTS_SingletonService {
|
|
15
|
+
constructor() {
|
|
16
|
+
super(...arguments);
|
|
17
|
+
this.socketServiceCollection = dynamo_nts_socket_service_collection_service_1.DynamoNTS_SocketServiceCollection.getInstance();
|
|
18
|
+
}
|
|
19
|
+
static getInstance() {
|
|
20
|
+
return DynamoNTS_GlobalService.getSingletonInstance();
|
|
21
|
+
}
|
|
22
|
+
static get params() { return this._params; }
|
|
23
|
+
static get upSince() { return this._upSince; }
|
|
24
|
+
static get upTime() { return +new Date() - +this._upSince; }
|
|
25
|
+
/**
|
|
26
|
+
* You need to setup global Services through this function
|
|
27
|
+
*/
|
|
28
|
+
static setServices(set) {
|
|
29
|
+
this.getInstance();
|
|
30
|
+
try {
|
|
31
|
+
this.instance.dbServiceCollection = new dynamo_nts_db_service_collection_service_1.DynamoNTS_DBServiceCollection();
|
|
32
|
+
set.dbModels.forEach((dbModel) => {
|
|
33
|
+
try {
|
|
34
|
+
this.instance.dbServiceCollection[dbModel.dataName] = new dynamo_nts_db_service_1.DynamoNTS_DBService(dbModel);
|
|
35
|
+
}
|
|
36
|
+
catch (error) {
|
|
37
|
+
fsm_dynamo_1.Dynamo_Log.error(`\nFailed to create DynamoBEDBService (${dbModel.dataName}).\n`, dbModel, `\n`, error);
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
this.instance.authService = set.authService;
|
|
41
|
+
this.instance.emailServiceCollection = set.emailServiceCollection;
|
|
42
|
+
}
|
|
43
|
+
catch (error) {
|
|
44
|
+
fsm_dynamo_1.Dynamo_Log.error('\nsetServices failed on DBE_Global_S.\n', error);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
static setParams(params) {
|
|
48
|
+
this._params = params;
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @returns
|
|
53
|
+
*/
|
|
54
|
+
static getAuthService() {
|
|
55
|
+
var _a, _b;
|
|
56
|
+
if (!((_b = (_a = this.instance) === null || _a === void 0 ? void 0 : _a.authService) === null || _b === void 0 ? void 0 : _b.authenticateToken)) {
|
|
57
|
+
throw new Error(`\nUnique Authentication Service missing!` +
|
|
58
|
+
`\nPlease create a Unique Authentication Service extending DynamoNTS_AuthService, ` +
|
|
59
|
+
`and Setup with "DBE_Global_SC.setServices(...)"`);
|
|
60
|
+
}
|
|
61
|
+
return this.instance.authService;
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
*
|
|
65
|
+
* @returns
|
|
66
|
+
*/
|
|
67
|
+
static getDBServiceCollection() {
|
|
68
|
+
var _a;
|
|
69
|
+
if (!((_a = this.instance) === null || _a === void 0 ? void 0 : _a.dbServiceCollection)) {
|
|
70
|
+
throw new Error(`\nUnique DataBase Service Collection missing!` +
|
|
71
|
+
`\nPlease create a Unique DataBase Service Collection extending DynamoNTS_DBServiceCollection, ` +
|
|
72
|
+
`and Setup with "DBE_Global_SC.setServices(...)"`);
|
|
73
|
+
}
|
|
74
|
+
return this.instance.dbServiceCollection;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @param dataParams
|
|
79
|
+
* @returns
|
|
80
|
+
*/
|
|
81
|
+
static getDBService(dataParams) {
|
|
82
|
+
return this.getDBServiceByKey(dataParams.dataName);
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
*
|
|
86
|
+
* @param key
|
|
87
|
+
* @returns
|
|
88
|
+
*/
|
|
89
|
+
static getDBServiceByKey(key) {
|
|
90
|
+
const collection = this.getDBServiceCollection();
|
|
91
|
+
if (collection[key]) {
|
|
92
|
+
return collection[key];
|
|
93
|
+
}
|
|
94
|
+
else {
|
|
95
|
+
let keys = `${Object.keys(collection)}`;
|
|
96
|
+
keys = keys.replace(/,/g, '\n ');
|
|
97
97
|
throw new Error(`\nDBE_Global_S.getDBService failed, ERROR:
|
|
98
98
|
no dbService on collection with this key: ${key}!
|
|
99
99
|
The available dbServices on collection:
|
|
100
|
-
${keys}\n`);
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
/**
|
|
104
|
-
*
|
|
105
|
-
* @returns
|
|
106
|
-
*/
|
|
107
|
-
static getEmailServiceCollection() {
|
|
108
|
-
var _a;
|
|
109
|
-
if (!((_a = this.instance) === null || _a === void 0 ? void 0 : _a.emailServiceCollection)) {
|
|
110
|
-
throw new Error(`Unique Email Service Collection missing!` +
|
|
111
|
-
`\nPlease create a Unique Email Service Collection extending DynamoBEEmailServiceCollection, ` +
|
|
112
|
-
`and Setup with "DBE_Global_SC.setServices(...)"`);
|
|
113
|
-
}
|
|
114
|
-
return this.instance.emailServiceCollection;
|
|
115
|
-
}
|
|
116
|
-
/**
|
|
117
|
-
*
|
|
118
|
-
* @returns
|
|
119
|
-
*/
|
|
120
|
-
static getSocketServiceCollection() {
|
|
121
|
-
var _a;
|
|
122
|
-
if (!((_a = this.instance) === null || _a === void 0 ? void 0 : _a.socketServiceCollection)) {
|
|
123
|
-
throw new Error(`\nUnique Socket Service Collection missing!` +
|
|
124
|
-
`\nSocket Service Collection will only be created if there are Socket Services properly setted up ` +
|
|
125
|
-
`in the setupModules in the App using DynamoNTS_AppExtended, ` +
|
|
126
|
-
`and Setup with "DBE_Global_SC.setServices(...)"`);
|
|
127
|
-
}
|
|
128
|
-
return this.instance.socketServiceCollection;
|
|
129
|
-
}
|
|
130
|
-
/**
|
|
131
|
-
*
|
|
132
|
-
* @param name
|
|
133
|
-
* @returns
|
|
134
|
-
*/
|
|
135
|
-
static getSocketServiceByName(name) {
|
|
136
|
-
const collection = this.getSocketServiceCollection();
|
|
137
|
-
if (collection[name]) {
|
|
138
|
-
return collection[name];
|
|
139
|
-
}
|
|
140
|
-
else {
|
|
141
|
-
let names = `${Object.keys(collection)}`;
|
|
142
|
-
names = names.replace(/,/g, '\n ');
|
|
100
|
+
${keys}\n`);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
* @returns
|
|
106
|
+
*/
|
|
107
|
+
static getEmailServiceCollection() {
|
|
108
|
+
var _a;
|
|
109
|
+
if (!((_a = this.instance) === null || _a === void 0 ? void 0 : _a.emailServiceCollection)) {
|
|
110
|
+
throw new Error(`Unique Email Service Collection missing!` +
|
|
111
|
+
`\nPlease create a Unique Email Service Collection extending DynamoBEEmailServiceCollection, ` +
|
|
112
|
+
`and Setup with "DBE_Global_SC.setServices(...)"`);
|
|
113
|
+
}
|
|
114
|
+
return this.instance.emailServiceCollection;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
*
|
|
118
|
+
* @returns
|
|
119
|
+
*/
|
|
120
|
+
static getSocketServiceCollection() {
|
|
121
|
+
var _a;
|
|
122
|
+
if (!((_a = this.instance) === null || _a === void 0 ? void 0 : _a.socketServiceCollection)) {
|
|
123
|
+
throw new Error(`\nUnique Socket Service Collection missing!` +
|
|
124
|
+
`\nSocket Service Collection will only be created if there are Socket Services properly setted up ` +
|
|
125
|
+
`in the setupModules in the App using DynamoNTS_AppExtended, ` +
|
|
126
|
+
`and Setup with "DBE_Global_SC.setServices(...)"`);
|
|
127
|
+
}
|
|
128
|
+
return this.instance.socketServiceCollection;
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
*
|
|
132
|
+
* @param name
|
|
133
|
+
* @returns
|
|
134
|
+
*/
|
|
135
|
+
static getSocketServiceByName(name) {
|
|
136
|
+
const collection = this.getSocketServiceCollection();
|
|
137
|
+
if (collection[name]) {
|
|
138
|
+
return collection[name];
|
|
139
|
+
}
|
|
140
|
+
else {
|
|
141
|
+
let names = `${Object.keys(collection)}`;
|
|
142
|
+
names = names.replace(/,/g, '\n ');
|
|
143
143
|
throw new Error(`\nDBE_Global_S.getSocketServiceByName failed, ERROR:
|
|
144
144
|
no socketService on collection with this name: ${name}!
|
|
145
145
|
The available socketServices on collection:
|
|
146
|
-
${names}\n`);
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
static attachNewSocketService(service) {
|
|
150
|
-
const collection = this.getSocketServiceCollection();
|
|
151
|
-
if (!collection[service.name]) {
|
|
152
|
-
collection[service.name] = service;
|
|
153
|
-
}
|
|
154
|
-
else {
|
|
155
|
-
let names = `${Object.keys(collection)}`;
|
|
156
|
-
names = names.replace(/,/g, '\n ');
|
|
146
|
+
${names}\n`);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
static attachNewSocketService(service) {
|
|
150
|
+
const collection = this.getSocketServiceCollection();
|
|
151
|
+
if (!collection[service.name]) {
|
|
152
|
+
collection[service.name] = service;
|
|
153
|
+
}
|
|
154
|
+
else {
|
|
155
|
+
let names = `${Object.keys(collection)}`;
|
|
156
|
+
names = names.replace(/,/g, '\n ');
|
|
157
157
|
throw new Error(`\nDBE_Global_S.attachNewSocketService failed, ERROR:
|
|
158
158
|
socketService name is already taken on collection with this name: ${service.name}!
|
|
159
159
|
The available socketServices on collection:
|
|
160
|
-
${names}\n`);
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
exports.DynamoNTS_GlobalService = DynamoNTS_GlobalService;
|
|
165
|
-
DynamoNTS_GlobalService._upSince = new Date();
|
|
160
|
+
${names}\n`);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
exports.DynamoNTS_GlobalService = DynamoNTS_GlobalService;
|
|
165
|
+
DynamoNTS_GlobalService._upSince = new Date();
|
|
166
166
|
//# sourceMappingURL=dynamo-nts-global.service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dynamo-nts-global.service.js","sourceRoot":"","sources":["../../src/_services/dynamo-nts-global.service.ts"],"names":[],"mappings":";;;AAEA,sDAAuF;
|
|
1
|
+
{"version":3,"file":"dynamo-nts-global.service.js","sourceRoot":"","sources":["../../src/_services/dynamo-nts-global.service.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,77 +1,77 @@
|
|
|
1
|
-
import { Router } from 'express';
|
|
2
|
-
import { DynamoNTS_RouteSecurity } from '../_enums/dynamo-nts-route-security.enum';
|
|
3
|
-
import { DynamoNTS_EndpointParams } from '../_models/dynamo-nts-endpoint-params';
|
|
4
|
-
import { DynamoNTS_RoutingModuleSettings } from '../_models/dynamo-nts-routing-module-settings';
|
|
5
|
-
/**
|
|
6
|
-
* Routing Module
|
|
7
|
-
* Handling route setup and control
|
|
8
|
-
*
|
|
9
|
-
* You can add routes and controllers for them
|
|
10
|
-
* @example
|
|
11
|
-
* // Setting up Routes
|
|
12
|
-
* setupRoutingModules(): void {
|
|
13
|
-
* this.httpPort = env.port;
|
|
14
|
-
|
|
15
|
-
* this.routingModules = [
|
|
16
|
-
* new DynamoNTS_RoutingModule({
|
|
17
|
-
* route: '/user',
|
|
18
|
-
* controllers: [
|
|
19
|
-
* UserController.getInstance(),
|
|
20
|
-
* UserDataController.getInstance(),
|
|
21
|
-
* UserOptionsController.getInstance(),
|
|
22
|
-
* UserStatisticsController.getInstance(),
|
|
23
|
-
* UserAchievementsController.getInstance(),
|
|
24
|
-
* UserNotificationsController.getInstance()
|
|
25
|
-
* ]
|
|
26
|
-
* }),
|
|
27
|
-
* new DynamoNTS_RoutingModule({
|
|
28
|
-
* route: '/match',
|
|
29
|
-
* controllers: [
|
|
30
|
-
* MatchController.getInstance(),
|
|
31
|
-
* MatchDistributionController.getInstance(),
|
|
32
|
-
* MatchStatisticsController.getInstance(),
|
|
33
|
-
* ]
|
|
34
|
-
* }),
|
|
35
|
-
* new DynamoNTS_RoutingModule({
|
|
36
|
-
* route: '/server',
|
|
37
|
-
* controllers: [
|
|
38
|
-
* ServerController.getInstance(),
|
|
39
|
-
* ]
|
|
40
|
-
* }),
|
|
41
|
-
|
|
42
|
-
* getTestRoutingModule(),
|
|
43
|
-
* getUsageRoutingModule()
|
|
44
|
-
* ];
|
|
45
|
-
* }
|
|
46
|
-
*/
|
|
47
|
-
export declare class DynamoNTS_RoutingModule {
|
|
48
|
-
security: DynamoNTS_RouteSecurity;
|
|
49
|
-
route: string;
|
|
50
|
-
private controllers;
|
|
51
|
-
endpoints: DynamoNTS_EndpointParams[];
|
|
52
|
-
openRouter: Router;
|
|
53
|
-
secureRouter: Router;
|
|
54
|
-
protected log: boolean;
|
|
55
|
-
defaultErrorUserMsg: string;
|
|
56
|
-
constructor(set: DynamoNTS_RoutingModuleSettings);
|
|
57
|
-
/**
|
|
58
|
-
* You must setup endpoints and required services for this function
|
|
59
|
-
*/
|
|
60
|
-
private setupRoutes;
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @param securityOverride
|
|
64
|
-
*/
|
|
65
|
-
private mountRoutes;
|
|
66
|
-
/**
|
|
67
|
-
*
|
|
68
|
-
* @param endpointParams
|
|
69
|
-
*/
|
|
70
|
-
private mountOpenRoute;
|
|
71
|
-
/**
|
|
72
|
-
*
|
|
73
|
-
* @param endpointParams
|
|
74
|
-
*/
|
|
75
|
-
private mountSecureRoute;
|
|
76
|
-
}
|
|
1
|
+
import { Router } from 'express';
|
|
2
|
+
import { DynamoNTS_RouteSecurity } from '../_enums/dynamo-nts-route-security.enum';
|
|
3
|
+
import { DynamoNTS_EndpointParams } from '../_models/dynamo-nts-endpoint-params';
|
|
4
|
+
import { DynamoNTS_RoutingModuleSettings } from '../_models/dynamo-nts-routing-module-settings';
|
|
5
|
+
/**
|
|
6
|
+
* Routing Module
|
|
7
|
+
* Handling route setup and control
|
|
8
|
+
*
|
|
9
|
+
* You can add routes and controllers for them
|
|
10
|
+
* @example
|
|
11
|
+
* // Setting up Routes
|
|
12
|
+
* setupRoutingModules(): void {
|
|
13
|
+
* this.httpPort = env.port;
|
|
14
|
+
|
|
15
|
+
* this.routingModules = [
|
|
16
|
+
* new DynamoNTS_RoutingModule({
|
|
17
|
+
* route: '/user',
|
|
18
|
+
* controllers: [
|
|
19
|
+
* UserController.getInstance(),
|
|
20
|
+
* UserDataController.getInstance(),
|
|
21
|
+
* UserOptionsController.getInstance(),
|
|
22
|
+
* UserStatisticsController.getInstance(),
|
|
23
|
+
* UserAchievementsController.getInstance(),
|
|
24
|
+
* UserNotificationsController.getInstance()
|
|
25
|
+
* ]
|
|
26
|
+
* }),
|
|
27
|
+
* new DynamoNTS_RoutingModule({
|
|
28
|
+
* route: '/match',
|
|
29
|
+
* controllers: [
|
|
30
|
+
* MatchController.getInstance(),
|
|
31
|
+
* MatchDistributionController.getInstance(),
|
|
32
|
+
* MatchStatisticsController.getInstance(),
|
|
33
|
+
* ]
|
|
34
|
+
* }),
|
|
35
|
+
* new DynamoNTS_RoutingModule({
|
|
36
|
+
* route: '/server',
|
|
37
|
+
* controllers: [
|
|
38
|
+
* ServerController.getInstance(),
|
|
39
|
+
* ]
|
|
40
|
+
* }),
|
|
41
|
+
|
|
42
|
+
* getTestRoutingModule(),
|
|
43
|
+
* getUsageRoutingModule()
|
|
44
|
+
* ];
|
|
45
|
+
* }
|
|
46
|
+
*/
|
|
47
|
+
export declare class DynamoNTS_RoutingModule {
|
|
48
|
+
security: DynamoNTS_RouteSecurity;
|
|
49
|
+
route: string;
|
|
50
|
+
private controllers;
|
|
51
|
+
endpoints: DynamoNTS_EndpointParams[];
|
|
52
|
+
openRouter: Router;
|
|
53
|
+
secureRouter: Router;
|
|
54
|
+
protected log: boolean;
|
|
55
|
+
defaultErrorUserMsg: string;
|
|
56
|
+
constructor(set: DynamoNTS_RoutingModuleSettings);
|
|
57
|
+
/**
|
|
58
|
+
* You must setup endpoints and required services for this function
|
|
59
|
+
*/
|
|
60
|
+
private setupRoutes;
|
|
61
|
+
/**
|
|
62
|
+
*
|
|
63
|
+
* @param securityOverride
|
|
64
|
+
*/
|
|
65
|
+
private mountRoutes;
|
|
66
|
+
/**
|
|
67
|
+
*
|
|
68
|
+
* @param endpointParams
|
|
69
|
+
*/
|
|
70
|
+
private mountOpenRoute;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @param endpointParams
|
|
74
|
+
*/
|
|
75
|
+
private mountSecureRoute;
|
|
76
|
+
}
|
|
77
77
|
//# sourceMappingURL=dynamo-nts-routing-module.service.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dynamo-nts-routing-module.service.d.ts","sourceRoot":"","sources":["../../src/_services/dynamo-nts-routing-module.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"dynamo-nts-routing-module.service.d.ts","sourceRoot":"","sources":["../../src/_services/dynamo-nts-routing-module.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAKjC,OAAO,EAAE,uBAAuB,EAAE,MAAM,0CAA0C,CAAC;AAEnF,OAAO,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAC;AAEjF,OAAO,EAAE,+BAA+B,EAAE,MAAM,+CAA+C,CAAC;AAEhG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,qBAAa,uBAAuB;IAElC,QAAQ,EAAE,uBAAuB,CAAC;IAClC,KAAK,EAAE,MAAM,CAAC;IAEd,OAAO,CAAC,WAAW,CAAyB;IAC5C,SAAS,EAAE,wBAAwB,EAAE,CAAM;IAE3C,UAAU,EAAE,MAAM,CAAY;IAC9B,YAAY,EAAE,MAAM,CAAY;IAEhC,SAAS,CAAC,GAAG,EAAE,OAAO,CAAqC;IAE3D,mBAAmB,SAEoC;gBAGrD,GAAG,EAAE,+BAA+B;IActC;;OAEG;IACH,OAAO,CAAC,WAAW;IAMnB;;;OAGG;IACH,OAAO,CAAC,WAAW;IA8CnB;;;OAGG;IACH,OAAO,CAAC,cAAc;IAiCtB;;;OAGG;IACH,OAAO,CAAC,gBAAgB;CAgCzB"}
|