@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,105 +1,105 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TestController = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const test_module_1 = require("@futdevpro/fsm-dynamo/test-module");
|
|
6
|
-
const http_call_type_enum_1 = require("../../_enums/http/http-call-type.enum");
|
|
7
|
-
const dynamo_nts_endpoint_params_1 = require("../../_models/dynamo-nts-endpoint-params");
|
|
8
|
-
const dynamo_nts_controller_service_1 = require("../../_services/dynamo-nts-controller.service");
|
|
9
|
-
const app_extended_index_1 = require("../app-extended.index");
|
|
10
|
-
class TestController extends dynamo_nts_controller_service_1.DynamoNTS_Controller {
|
|
11
|
-
static getInstance() {
|
|
12
|
-
return TestController.getSingletonInstance();
|
|
13
|
-
}
|
|
14
|
-
setupEndpoints() {
|
|
15
|
-
this.endpoints = [
|
|
16
|
-
// TESTS
|
|
17
|
-
new dynamo_nts_endpoint_params_1.DynamoNTS_EndpointParams({
|
|
18
|
-
name: 'testGet',
|
|
19
|
-
type: http_call_type_enum_1.HttpCallType.get,
|
|
20
|
-
endpoint: test_module_1.testModuleSettings.endPoints.testGet,
|
|
21
|
-
tasks: [
|
|
22
|
-
(req, res) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
23
|
-
res.send({
|
|
24
|
-
url: req.url,
|
|
25
|
-
result: 'test-get call was successful!',
|
|
26
|
-
request: req.body
|
|
27
|
-
});
|
|
28
|
-
})
|
|
29
|
-
]
|
|
30
|
-
}),
|
|
31
|
-
new dynamo_nts_endpoint_params_1.DynamoNTS_EndpointParams({
|
|
32
|
-
name: 'testPost',
|
|
33
|
-
type: http_call_type_enum_1.HttpCallType.post,
|
|
34
|
-
endpoint: test_module_1.testModuleSettings.endPoints.testPost,
|
|
35
|
-
tasks: [
|
|
36
|
-
(req, res) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
37
|
-
res.send({
|
|
38
|
-
url: req.url,
|
|
39
|
-
result: 'test-post call was successful!',
|
|
40
|
-
request: req.body
|
|
41
|
-
});
|
|
42
|
-
})
|
|
43
|
-
]
|
|
44
|
-
}),
|
|
45
|
-
new dynamo_nts_endpoint_params_1.DynamoNTS_EndpointParams({
|
|
46
|
-
name: 'testPut',
|
|
47
|
-
type: http_call_type_enum_1.HttpCallType.put,
|
|
48
|
-
endpoint: test_module_1.testModuleSettings.endPoints.testPut,
|
|
49
|
-
tasks: [
|
|
50
|
-
(req, res) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
51
|
-
res.send({
|
|
52
|
-
url: req.url,
|
|
53
|
-
result: 'test-put call was successful!',
|
|
54
|
-
request: req.body
|
|
55
|
-
});
|
|
56
|
-
})
|
|
57
|
-
]
|
|
58
|
-
}),
|
|
59
|
-
new dynamo_nts_endpoint_params_1.DynamoNTS_EndpointParams({
|
|
60
|
-
name: 'testPatch',
|
|
61
|
-
type: http_call_type_enum_1.HttpCallType.patch,
|
|
62
|
-
endpoint: test_module_1.testModuleSettings.endPoints.testPatch,
|
|
63
|
-
tasks: [
|
|
64
|
-
(req, res) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
65
|
-
res.send({
|
|
66
|
-
url: req.url,
|
|
67
|
-
result: 'test-patch call was successful!',
|
|
68
|
-
request: req.body
|
|
69
|
-
});
|
|
70
|
-
})
|
|
71
|
-
]
|
|
72
|
-
}),
|
|
73
|
-
new dynamo_nts_endpoint_params_1.DynamoNTS_EndpointParams({
|
|
74
|
-
name: 'testDelete',
|
|
75
|
-
type: http_call_type_enum_1.HttpCallType.delete,
|
|
76
|
-
endpoint: test_module_1.testModuleSettings.endPoints.testDelete,
|
|
77
|
-
tasks: [
|
|
78
|
-
(req, res) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
79
|
-
res.send({
|
|
80
|
-
url: req.url,
|
|
81
|
-
result: 'test-delete call was successful!',
|
|
82
|
-
request: req.body
|
|
83
|
-
});
|
|
84
|
-
})
|
|
85
|
-
]
|
|
86
|
-
}),
|
|
87
|
-
new dynamo_nts_endpoint_params_1.DynamoNTS_EndpointParams({
|
|
88
|
-
name: 'getServerStatus',
|
|
89
|
-
type: http_call_type_enum_1.HttpCallType.get,
|
|
90
|
-
endpoint: test_module_1.testModuleSettings.endPoints.getServerStatus,
|
|
91
|
-
tasks: [
|
|
92
|
-
(req, res) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
93
|
-
res.send({
|
|
94
|
-
status: 'ready',
|
|
95
|
-
version: app_extended_index_1.DynamoNTS_GlobalService.params.version,
|
|
96
|
-
upTime: app_extended_index_1.DynamoNTS_GlobalService.upTime,
|
|
97
|
-
});
|
|
98
|
-
})
|
|
99
|
-
]
|
|
100
|
-
}),
|
|
101
|
-
];
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
exports.TestController = TestController;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TestController = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const test_module_1 = require("@futdevpro/fsm-dynamo/test-module");
|
|
6
|
+
const http_call_type_enum_1 = require("../../_enums/http/http-call-type.enum");
|
|
7
|
+
const dynamo_nts_endpoint_params_1 = require("../../_models/dynamo-nts-endpoint-params");
|
|
8
|
+
const dynamo_nts_controller_service_1 = require("../../_services/dynamo-nts-controller.service");
|
|
9
|
+
const app_extended_index_1 = require("../app-extended.index");
|
|
10
|
+
class TestController extends dynamo_nts_controller_service_1.DynamoNTS_Controller {
|
|
11
|
+
static getInstance() {
|
|
12
|
+
return TestController.getSingletonInstance();
|
|
13
|
+
}
|
|
14
|
+
setupEndpoints() {
|
|
15
|
+
this.endpoints = [
|
|
16
|
+
// TESTS
|
|
17
|
+
new dynamo_nts_endpoint_params_1.DynamoNTS_EndpointParams({
|
|
18
|
+
name: 'testGet',
|
|
19
|
+
type: http_call_type_enum_1.HttpCallType.get,
|
|
20
|
+
endpoint: test_module_1.testModuleSettings.endPoints.testGet,
|
|
21
|
+
tasks: [
|
|
22
|
+
(req, res) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
res.send({
|
|
24
|
+
url: req.url,
|
|
25
|
+
result: 'test-get call was successful!',
|
|
26
|
+
request: req.body
|
|
27
|
+
});
|
|
28
|
+
})
|
|
29
|
+
]
|
|
30
|
+
}),
|
|
31
|
+
new dynamo_nts_endpoint_params_1.DynamoNTS_EndpointParams({
|
|
32
|
+
name: 'testPost',
|
|
33
|
+
type: http_call_type_enum_1.HttpCallType.post,
|
|
34
|
+
endpoint: test_module_1.testModuleSettings.endPoints.testPost,
|
|
35
|
+
tasks: [
|
|
36
|
+
(req, res) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
37
|
+
res.send({
|
|
38
|
+
url: req.url,
|
|
39
|
+
result: 'test-post call was successful!',
|
|
40
|
+
request: req.body
|
|
41
|
+
});
|
|
42
|
+
})
|
|
43
|
+
]
|
|
44
|
+
}),
|
|
45
|
+
new dynamo_nts_endpoint_params_1.DynamoNTS_EndpointParams({
|
|
46
|
+
name: 'testPut',
|
|
47
|
+
type: http_call_type_enum_1.HttpCallType.put,
|
|
48
|
+
endpoint: test_module_1.testModuleSettings.endPoints.testPut,
|
|
49
|
+
tasks: [
|
|
50
|
+
(req, res) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
51
|
+
res.send({
|
|
52
|
+
url: req.url,
|
|
53
|
+
result: 'test-put call was successful!',
|
|
54
|
+
request: req.body
|
|
55
|
+
});
|
|
56
|
+
})
|
|
57
|
+
]
|
|
58
|
+
}),
|
|
59
|
+
new dynamo_nts_endpoint_params_1.DynamoNTS_EndpointParams({
|
|
60
|
+
name: 'testPatch',
|
|
61
|
+
type: http_call_type_enum_1.HttpCallType.patch,
|
|
62
|
+
endpoint: test_module_1.testModuleSettings.endPoints.testPatch,
|
|
63
|
+
tasks: [
|
|
64
|
+
(req, res) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
65
|
+
res.send({
|
|
66
|
+
url: req.url,
|
|
67
|
+
result: 'test-patch call was successful!',
|
|
68
|
+
request: req.body
|
|
69
|
+
});
|
|
70
|
+
})
|
|
71
|
+
]
|
|
72
|
+
}),
|
|
73
|
+
new dynamo_nts_endpoint_params_1.DynamoNTS_EndpointParams({
|
|
74
|
+
name: 'testDelete',
|
|
75
|
+
type: http_call_type_enum_1.HttpCallType.delete,
|
|
76
|
+
endpoint: test_module_1.testModuleSettings.endPoints.testDelete,
|
|
77
|
+
tasks: [
|
|
78
|
+
(req, res) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
79
|
+
res.send({
|
|
80
|
+
url: req.url,
|
|
81
|
+
result: 'test-delete call was successful!',
|
|
82
|
+
request: req.body
|
|
83
|
+
});
|
|
84
|
+
})
|
|
85
|
+
]
|
|
86
|
+
}),
|
|
87
|
+
new dynamo_nts_endpoint_params_1.DynamoNTS_EndpointParams({
|
|
88
|
+
name: 'getServerStatus',
|
|
89
|
+
type: http_call_type_enum_1.HttpCallType.get,
|
|
90
|
+
endpoint: test_module_1.testModuleSettings.endPoints.getServerStatus,
|
|
91
|
+
tasks: [
|
|
92
|
+
(req, res) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
93
|
+
res.send({
|
|
94
|
+
status: 'ready',
|
|
95
|
+
version: app_extended_index_1.DynamoNTS_GlobalService.params.version,
|
|
96
|
+
upTime: app_extended_index_1.DynamoNTS_GlobalService.upTime,
|
|
97
|
+
});
|
|
98
|
+
})
|
|
99
|
+
]
|
|
100
|
+
}),
|
|
101
|
+
];
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
exports.TestController = TestController;
|
|
105
105
|
//# sourceMappingURL=test.controller.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './test';
|
|
1
|
+
export * from './test';
|
|
2
2
|
//# sourceMappingURL=test-module.index.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./test"), exports);
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
tslib_1.__exportStar(require("./test"), exports);
|
|
5
5
|
//# sourceMappingURL=test-module.index.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DynamoNTS_RouteSecurity } from '../../_enums/dynamo-nts-route-security.enum';
|
|
2
|
-
import { DynamoNTS_RoutingModule } from '../../_services/dynamo-nts-routing-module.service';
|
|
3
|
-
export declare function getUsageRoutingModule(securityOverride?: DynamoNTS_RouteSecurity): DynamoNTS_RoutingModule;
|
|
1
|
+
import { DynamoNTS_RouteSecurity } from '../../_enums/dynamo-nts-route-security.enum';
|
|
2
|
+
import { DynamoNTS_RoutingModule } from '../../_services/dynamo-nts-routing-module.service';
|
|
3
|
+
export declare function getUsageRoutingModule(securityOverride?: DynamoNTS_RouteSecurity): DynamoNTS_RoutingModule;
|
|
4
4
|
//# sourceMappingURL=get-usage-routing-module.d.ts.map
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getUsageRoutingModule = void 0;
|
|
4
|
-
const usage_module_1 = require("@futdevpro/fsm-dynamo/usage-module");
|
|
5
|
-
const dynamo_nts_routing_module_service_1 = require("../../_services/dynamo-nts-routing-module.service");
|
|
6
|
-
const usage_controller_1 = require("./usage-controller");
|
|
7
|
-
function getUsageRoutingModule(securityOverride) {
|
|
8
|
-
const set = {
|
|
9
|
-
route: usage_module_1.usageModuleSettings.mainRoute,
|
|
10
|
-
controllers: [usage_controller_1.UsageController.getInstance()]
|
|
11
|
-
};
|
|
12
|
-
if (securityOverride) {
|
|
13
|
-
set.securityOverride = securityOverride;
|
|
14
|
-
}
|
|
15
|
-
return new dynamo_nts_routing_module_service_1.DynamoNTS_RoutingModule(set);
|
|
16
|
-
}
|
|
17
|
-
exports.getUsageRoutingModule = getUsageRoutingModule;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getUsageRoutingModule = void 0;
|
|
4
|
+
const usage_module_1 = require("@futdevpro/fsm-dynamo/usage-module");
|
|
5
|
+
const dynamo_nts_routing_module_service_1 = require("../../_services/dynamo-nts-routing-module.service");
|
|
6
|
+
const usage_controller_1 = require("./usage-controller");
|
|
7
|
+
function getUsageRoutingModule(securityOverride) {
|
|
8
|
+
const set = {
|
|
9
|
+
route: usage_module_1.usageModuleSettings.mainRoute,
|
|
10
|
+
controllers: [usage_controller_1.UsageController.getInstance()]
|
|
11
|
+
};
|
|
12
|
+
if (securityOverride) {
|
|
13
|
+
set.securityOverride = securityOverride;
|
|
14
|
+
}
|
|
15
|
+
return new dynamo_nts_routing_module_service_1.DynamoNTS_RoutingModule(set);
|
|
16
|
+
}
|
|
17
|
+
exports.getUsageRoutingModule = getUsageRoutingModule;
|
|
18
18
|
//# sourceMappingURL=get-usage-routing-module.js.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './usage-controller';
|
|
2
|
-
export * from './usage.service';
|
|
3
|
-
export * from './get-usage-routing-module';
|
|
4
|
-
export * from '@futdevpro/fsm-dynamo/usage-module';
|
|
1
|
+
export * from './usage-controller';
|
|
2
|
+
export * from './usage.service';
|
|
3
|
+
export * from './get-usage-routing-module';
|
|
4
|
+
export * from '@futdevpro/fsm-dynamo/usage-module';
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const tslib_1 = require("tslib");
|
|
4
|
-
// USAGE MODULE
|
|
5
|
-
tslib_1.__exportStar(require("./usage-controller"), exports);
|
|
6
|
-
tslib_1.__exportStar(require("./usage.service"), exports);
|
|
7
|
-
tslib_1.__exportStar(require("./get-usage-routing-module"), exports);
|
|
8
|
-
tslib_1.__exportStar(require("@futdevpro/fsm-dynamo/usage-module"), exports);
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
// USAGE MODULE
|
|
5
|
+
tslib_1.__exportStar(require("./usage-controller"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./usage.service"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./get-usage-routing-module"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("@futdevpro/fsm-dynamo/usage-module"), exports);
|
|
9
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { DynamoNTS_Controller } from '../../_services/dynamo-nts-controller.service';
|
|
2
|
-
export declare class UsageController extends DynamoNTS_Controller {
|
|
3
|
-
static getInstance(): UsageController;
|
|
4
|
-
private authService;
|
|
5
|
-
setupEndpoints(): void;
|
|
6
|
-
}
|
|
1
|
+
import { DynamoNTS_Controller } from '../../_services/dynamo-nts-controller.service';
|
|
2
|
+
export declare class UsageController extends DynamoNTS_Controller {
|
|
3
|
+
static getInstance(): UsageController;
|
|
4
|
+
private authService;
|
|
5
|
+
setupEndpoints(): void;
|
|
6
|
+
}
|
|
7
7
|
//# sourceMappingURL=usage-controller.d.ts.map
|
|
@@ -1,89 +1,89 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UsageController = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const usage_module_1 = require("@futdevpro/fsm-dynamo/usage-module");
|
|
6
|
-
const http_call_type_enum_1 = require("../../_enums/http/http-call-type.enum");
|
|
7
|
-
const dynamo_nts_endpoint_params_1 = require("../../_models/dynamo-nts-endpoint-params");
|
|
8
|
-
const dynamo_nts_controller_service_1 = require("../../_services/dynamo-nts-controller.service");
|
|
9
|
-
const dynamo_nts_global_service_1 = require("../../_services/dynamo-nts-global.service");
|
|
10
|
-
const usage_service_1 = require("./usage.service");
|
|
11
|
-
class UsageController extends dynamo_nts_controller_service_1.DynamoNTS_Controller {
|
|
12
|
-
static getInstance() {
|
|
13
|
-
return UsageController.getSingletonInstance();
|
|
14
|
-
}
|
|
15
|
-
setupEndpoints() {
|
|
16
|
-
this.authService = dynamo_nts_global_service_1.DynamoNTS_GlobalService.getAuthService();
|
|
17
|
-
this.endpoints = [
|
|
18
|
-
new dynamo_nts_endpoint_params_1.DynamoNTS_EndpointParams({
|
|
19
|
-
name: 'newSession',
|
|
20
|
-
type: http_call_type_enum_1.HttpCallType.get,
|
|
21
|
-
endpoint: usage_module_1.usageModuleSettings.endPoints.newSession,
|
|
22
|
-
tasks: [
|
|
23
|
-
(req, res, issuer) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
24
|
-
const authService = dynamo_nts_global_service_1.DynamoNTS_GlobalService.getAuthService();
|
|
25
|
-
const username = authService.getUsernameFromRequest(req);
|
|
26
|
-
const usageService = new usage_service_1.UsageService({
|
|
27
|
-
usageSession: new usage_module_1.Dynamo_UsageSession({
|
|
28
|
-
sessionStart: new Date(),
|
|
29
|
-
issuer: username,
|
|
30
|
-
}),
|
|
31
|
-
issuer
|
|
32
|
-
});
|
|
33
|
-
yield usageService.getLocationDataFromRequest(req);
|
|
34
|
-
yield usageService.saveData();
|
|
35
|
-
res.send(usageService.data);
|
|
36
|
-
})
|
|
37
|
-
]
|
|
38
|
-
}),
|
|
39
|
-
new dynamo_nts_endpoint_params_1.DynamoNTS_EndpointParams({
|
|
40
|
-
name: 'updateUsage',
|
|
41
|
-
type: http_call_type_enum_1.HttpCallType.post,
|
|
42
|
-
endpoint: usage_module_1.usageModuleSettings.endPoints.updateUsage,
|
|
43
|
-
logRequestsContent: false,
|
|
44
|
-
tasks: [
|
|
45
|
-
(req, res, issuer) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
46
|
-
const usageService = new usage_service_1.UsageService({
|
|
47
|
-
usageSession: { _id: req.params.sessionId },
|
|
48
|
-
usageData: req.body,
|
|
49
|
-
issuer
|
|
50
|
-
});
|
|
51
|
-
yield usageService.updateUsageData(req);
|
|
52
|
-
res.send(usageService.data);
|
|
53
|
-
})
|
|
54
|
-
]
|
|
55
|
-
}),
|
|
56
|
-
new dynamo_nts_endpoint_params_1.DynamoNTS_EndpointParams({
|
|
57
|
-
name: 'closeSession',
|
|
58
|
-
type: http_call_type_enum_1.HttpCallType.get,
|
|
59
|
-
endpoint: usage_module_1.usageModuleSettings.endPoints.closeSession,
|
|
60
|
-
preProcessess: [this.authService.authTokenPermAccUsageData],
|
|
61
|
-
tasks: [
|
|
62
|
-
(req, res, issuer) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
63
|
-
const usageService = new usage_service_1.UsageService({
|
|
64
|
-
usageSession: { _id: req.params.sessionId },
|
|
65
|
-
issuer
|
|
66
|
-
});
|
|
67
|
-
yield usageService.closeSession(req);
|
|
68
|
-
res.send(usageService.data);
|
|
69
|
-
})
|
|
70
|
-
]
|
|
71
|
-
}),
|
|
72
|
-
new dynamo_nts_endpoint_params_1.DynamoNTS_EndpointParams({
|
|
73
|
-
name: 'getAllUsageData',
|
|
74
|
-
type: http_call_type_enum_1.HttpCallType.get,
|
|
75
|
-
endpoint: usage_module_1.usageModuleSettings.endPoints.getAllUsageData,
|
|
76
|
-
preProcessess: [this.authService.authTokenPermAccUsageData],
|
|
77
|
-
tasks: [
|
|
78
|
-
(req, res) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
79
|
-
const usageService = new usage_service_1.UsageService();
|
|
80
|
-
yield usageService.getLastWeekUsage();
|
|
81
|
-
res.send(usageService.simplifiedDailyUsage);
|
|
82
|
-
})
|
|
83
|
-
]
|
|
84
|
-
}),
|
|
85
|
-
];
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
exports.UsageController = UsageController;
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UsageController = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const usage_module_1 = require("@futdevpro/fsm-dynamo/usage-module");
|
|
6
|
+
const http_call_type_enum_1 = require("../../_enums/http/http-call-type.enum");
|
|
7
|
+
const dynamo_nts_endpoint_params_1 = require("../../_models/dynamo-nts-endpoint-params");
|
|
8
|
+
const dynamo_nts_controller_service_1 = require("../../_services/dynamo-nts-controller.service");
|
|
9
|
+
const dynamo_nts_global_service_1 = require("../../_services/dynamo-nts-global.service");
|
|
10
|
+
const usage_service_1 = require("./usage.service");
|
|
11
|
+
class UsageController extends dynamo_nts_controller_service_1.DynamoNTS_Controller {
|
|
12
|
+
static getInstance() {
|
|
13
|
+
return UsageController.getSingletonInstance();
|
|
14
|
+
}
|
|
15
|
+
setupEndpoints() {
|
|
16
|
+
this.authService = dynamo_nts_global_service_1.DynamoNTS_GlobalService.getAuthService();
|
|
17
|
+
this.endpoints = [
|
|
18
|
+
new dynamo_nts_endpoint_params_1.DynamoNTS_EndpointParams({
|
|
19
|
+
name: 'newSession',
|
|
20
|
+
type: http_call_type_enum_1.HttpCallType.get,
|
|
21
|
+
endpoint: usage_module_1.usageModuleSettings.endPoints.newSession,
|
|
22
|
+
tasks: [
|
|
23
|
+
(req, res, issuer) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
24
|
+
const authService = dynamo_nts_global_service_1.DynamoNTS_GlobalService.getAuthService();
|
|
25
|
+
const username = authService.getUsernameFromRequest(req);
|
|
26
|
+
const usageService = new usage_service_1.UsageService({
|
|
27
|
+
usageSession: new usage_module_1.Dynamo_UsageSession({
|
|
28
|
+
sessionStart: new Date(),
|
|
29
|
+
issuer: username,
|
|
30
|
+
}),
|
|
31
|
+
issuer
|
|
32
|
+
});
|
|
33
|
+
yield usageService.getLocationDataFromRequest(req);
|
|
34
|
+
yield usageService.saveData();
|
|
35
|
+
res.send(usageService.data);
|
|
36
|
+
})
|
|
37
|
+
]
|
|
38
|
+
}),
|
|
39
|
+
new dynamo_nts_endpoint_params_1.DynamoNTS_EndpointParams({
|
|
40
|
+
name: 'updateUsage',
|
|
41
|
+
type: http_call_type_enum_1.HttpCallType.post,
|
|
42
|
+
endpoint: usage_module_1.usageModuleSettings.endPoints.updateUsage,
|
|
43
|
+
logRequestsContent: false,
|
|
44
|
+
tasks: [
|
|
45
|
+
(req, res, issuer) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
46
|
+
const usageService = new usage_service_1.UsageService({
|
|
47
|
+
usageSession: { _id: req.params.sessionId },
|
|
48
|
+
usageData: req.body,
|
|
49
|
+
issuer
|
|
50
|
+
});
|
|
51
|
+
yield usageService.updateUsageData(req);
|
|
52
|
+
res.send(usageService.data);
|
|
53
|
+
})
|
|
54
|
+
]
|
|
55
|
+
}),
|
|
56
|
+
new dynamo_nts_endpoint_params_1.DynamoNTS_EndpointParams({
|
|
57
|
+
name: 'closeSession',
|
|
58
|
+
type: http_call_type_enum_1.HttpCallType.get,
|
|
59
|
+
endpoint: usage_module_1.usageModuleSettings.endPoints.closeSession,
|
|
60
|
+
preProcessess: [this.authService.authTokenPermAccUsageData],
|
|
61
|
+
tasks: [
|
|
62
|
+
(req, res, issuer) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
63
|
+
const usageService = new usage_service_1.UsageService({
|
|
64
|
+
usageSession: { _id: req.params.sessionId },
|
|
65
|
+
issuer
|
|
66
|
+
});
|
|
67
|
+
yield usageService.closeSession(req);
|
|
68
|
+
res.send(usageService.data);
|
|
69
|
+
})
|
|
70
|
+
]
|
|
71
|
+
}),
|
|
72
|
+
new dynamo_nts_endpoint_params_1.DynamoNTS_EndpointParams({
|
|
73
|
+
name: 'getAllUsageData',
|
|
74
|
+
type: http_call_type_enum_1.HttpCallType.get,
|
|
75
|
+
endpoint: usage_module_1.usageModuleSettings.endPoints.getAllUsageData,
|
|
76
|
+
preProcessess: [this.authService.authTokenPermAccUsageData],
|
|
77
|
+
tasks: [
|
|
78
|
+
(req, res) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
79
|
+
const usageService = new usage_service_1.UsageService();
|
|
80
|
+
yield usageService.getLastWeekUsage();
|
|
81
|
+
res.send(usageService.simplifiedDailyUsage);
|
|
82
|
+
})
|
|
83
|
+
]
|
|
84
|
+
}),
|
|
85
|
+
];
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
exports.UsageController = UsageController;
|
|
89
89
|
//# sourceMappingURL=usage-controller.js.map
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { Request } from 'express';
|
|
2
|
-
import { Dynamo_UsageSession, Dynamo_UsageData, Dynamo_DailyUsageData } from '@futdevpro/fsm-dynamo/usage-module';
|
|
3
|
-
import { DynamoNTS_DataService } from '../../_services/dynamo-nts-data.service';
|
|
4
|
-
export declare class UsageService extends DynamoNTS_DataService<Dynamo_UsageSession> {
|
|
5
|
-
usageData: Dynamo_UsageData[];
|
|
6
|
-
simplifiedDailyUsage: Dynamo_DailyUsageData[];
|
|
7
|
-
constructor(set?: {
|
|
8
|
-
usageSession?: Dynamo_UsageSession;
|
|
9
|
-
usageData?: Dynamo_UsageData[];
|
|
10
|
-
issuer?: string;
|
|
11
|
-
});
|
|
12
|
-
getLocationDataFromRequest(req: Request): void;
|
|
13
|
-
getLastWeekUsage(): Promise<void>;
|
|
14
|
-
updateUsageData(req: Request): Promise<void>;
|
|
15
|
-
closeSession(req: Request): Promise<void>;
|
|
16
|
-
}
|
|
1
|
+
import { Request } from 'express';
|
|
2
|
+
import { Dynamo_UsageSession, Dynamo_UsageData, Dynamo_DailyUsageData } from '@futdevpro/fsm-dynamo/usage-module';
|
|
3
|
+
import { DynamoNTS_DataService } from '../../_services/dynamo-nts-data.service';
|
|
4
|
+
export declare class UsageService extends DynamoNTS_DataService<Dynamo_UsageSession> {
|
|
5
|
+
usageData: Dynamo_UsageData[];
|
|
6
|
+
simplifiedDailyUsage: Dynamo_DailyUsageData[];
|
|
7
|
+
constructor(set?: {
|
|
8
|
+
usageSession?: Dynamo_UsageSession;
|
|
9
|
+
usageData?: Dynamo_UsageData[];
|
|
10
|
+
issuer?: string;
|
|
11
|
+
});
|
|
12
|
+
getLocationDataFromRequest(req: Request): void;
|
|
13
|
+
getLastWeekUsage(): Promise<void>;
|
|
14
|
+
updateUsageData(req: Request): Promise<void>;
|
|
15
|
+
closeSession(req: Request): Promise<void>;
|
|
16
|
+
}
|
|
17
17
|
//# sourceMappingURL=usage.service.d.ts.map
|