@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,279 +1,271 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { DynamoNTS_GlobalServiceSettings } from '
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
30
|
-
*
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
*
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
*
|
|
67
|
-
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
*
|
|
75
|
-
|
|
76
|
-
*
|
|
77
|
-
*
|
|
78
|
-
*
|
|
79
|
-
*
|
|
80
|
-
*
|
|
81
|
-
*
|
|
82
|
-
*
|
|
83
|
-
*
|
|
84
|
-
*
|
|
85
|
-
*
|
|
86
|
-
* ]
|
|
87
|
-
* }),
|
|
88
|
-
* new DynamoNTS_RoutingModule({
|
|
89
|
-
* route: '/
|
|
90
|
-
* controllers: [
|
|
91
|
-
*
|
|
92
|
-
*
|
|
93
|
-
*
|
|
94
|
-
|
|
95
|
-
*
|
|
96
|
-
*
|
|
97
|
-
*
|
|
98
|
-
*
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
*
|
|
102
|
-
|
|
103
|
-
*
|
|
104
|
-
*
|
|
105
|
-
*
|
|
106
|
-
*
|
|
107
|
-
*
|
|
108
|
-
*
|
|
109
|
-
* //
|
|
110
|
-
* //
|
|
111
|
-
* //
|
|
112
|
-
* //
|
|
113
|
-
*
|
|
114
|
-
*
|
|
115
|
-
* //
|
|
116
|
-
*
|
|
117
|
-
*
|
|
118
|
-
*
|
|
119
|
-
*
|
|
120
|
-
* //
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
protected
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
protected
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
protected
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
/**
|
|
151
|
-
*
|
|
152
|
-
*/
|
|
153
|
-
|
|
154
|
-
/**
|
|
155
|
-
*
|
|
156
|
-
*/
|
|
157
|
-
|
|
158
|
-
/**
|
|
159
|
-
*
|
|
160
|
-
*/
|
|
161
|
-
|
|
162
|
-
/**
|
|
163
|
-
*
|
|
164
|
-
*/
|
|
165
|
-
|
|
166
|
-
/**
|
|
167
|
-
*
|
|
168
|
-
*/
|
|
169
|
-
private
|
|
170
|
-
/**
|
|
171
|
-
*
|
|
172
|
-
*/
|
|
173
|
-
private
|
|
174
|
-
/**
|
|
175
|
-
*
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
*
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
*
|
|
184
|
-
*
|
|
185
|
-
*
|
|
186
|
-
*
|
|
187
|
-
*
|
|
188
|
-
*
|
|
189
|
-
*
|
|
190
|
-
*
|
|
191
|
-
*
|
|
192
|
-
*
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
*
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
*
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
*
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
*
|
|
209
|
-
*
|
|
210
|
-
*
|
|
211
|
-
*
|
|
212
|
-
*
|
|
213
|
-
*
|
|
214
|
-
*
|
|
215
|
-
*
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
*
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
*
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
*
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
*
|
|
232
|
-
*
|
|
233
|
-
*
|
|
234
|
-
*
|
|
235
|
-
*
|
|
236
|
-
*
|
|
237
|
-
* this.
|
|
238
|
-
*
|
|
239
|
-
*
|
|
240
|
-
*
|
|
241
|
-
*
|
|
242
|
-
*
|
|
243
|
-
*
|
|
244
|
-
*
|
|
245
|
-
*
|
|
246
|
-
* new DynamoBERountingModule({
|
|
247
|
-
* route: '/api/
|
|
248
|
-
* controllers: [
|
|
249
|
-
*
|
|
250
|
-
*
|
|
251
|
-
*
|
|
252
|
-
*
|
|
253
|
-
*
|
|
254
|
-
*
|
|
255
|
-
*
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
*
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
*
|
|
264
|
-
*/
|
|
265
|
-
|
|
266
|
-
/**
|
|
267
|
-
* MISSING Description (TODO)
|
|
268
|
-
*/
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
* MISSING Description (TODO)
|
|
272
|
-
*/
|
|
273
|
-
createEntries?(): void;
|
|
274
|
-
/**
|
|
275
|
-
* MISSING Description (TODO)
|
|
276
|
-
*/
|
|
277
|
-
postProcess?(): void;
|
|
278
|
-
}
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import Mongoose = require("mongoose");
|
|
3
|
+
import Express = require("express");
|
|
4
|
+
import * as Https from 'https';
|
|
5
|
+
import { DynamoNTS_AppParams } from '../_models/dynamo-nts-app-params';
|
|
6
|
+
import { DynamoNTS_SingletonService } from './dynamo-nts-singleton.service';
|
|
7
|
+
import { DynamoNTS_RouteSecurity } from '../_enums/dynamo-nts-route-security.enum';
|
|
8
|
+
import { DynamoNTS_RoutingModule } from './dynamo-nts-routing-module.service';
|
|
9
|
+
import { DynamoNTS_PortSettings } from '../_interfaces/port-settings.interface';
|
|
10
|
+
import { DynamoNTS_CertificationSettings } from '../_interfaces/certification-settings.interface';
|
|
11
|
+
import { DynamoNTS_GlobalServiceSettings } from '../_interfaces/global-service-settings.interface';
|
|
12
|
+
/**
|
|
13
|
+
* This will be the MAIN service of our server project,
|
|
14
|
+
* follow the types and type instructions while setting up your project
|
|
15
|
+
*
|
|
16
|
+
* In this service, there are abstract functions that you will need to implement,
|
|
17
|
+
* where you need to set up the main params for your application.
|
|
18
|
+
*
|
|
19
|
+
* (after the example, you can find the list of services you can/should setup)
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* export class App extends DynamoNTS_AppExtended {
|
|
23
|
+
*
|
|
24
|
+
* ...
|
|
25
|
+
*
|
|
26
|
+
* // Setting up App params, and preparing project global settings
|
|
27
|
+
* setupAppParams(): void {
|
|
28
|
+
* this.params = new DynamoNTS_AppParams({
|
|
29
|
+
* name: 'Warbots Server',
|
|
30
|
+
* title: warbotsTitleLog,
|
|
31
|
+
* version: version,
|
|
32
|
+
* dbName: 'warbots',
|
|
33
|
+
* });
|
|
34
|
+
*
|
|
35
|
+
* // dynamoNTS_GlobalSettings.logRequestsContent = false;
|
|
36
|
+
* }
|
|
37
|
+
*
|
|
38
|
+
* ...
|
|
39
|
+
*
|
|
40
|
+
* // Setting up DBServices
|
|
41
|
+
* setGlobalServiceCollection(): void {
|
|
42
|
+
* DynamoNTS_GlobalService.setServices({
|
|
43
|
+
* authService: AuthService.getInstance(),
|
|
44
|
+
* emailServiceCollection: EmailServiceCollectionService.getInstance(),
|
|
45
|
+
* dbModels: [
|
|
46
|
+
* userModelParams,
|
|
47
|
+
* userDataModelParams,
|
|
48
|
+
* userOptionsModelParams,
|
|
49
|
+
* userStatisticsModelParams,
|
|
50
|
+
* userAchievementsModelParams,
|
|
51
|
+
* userNotificationsModelParams,
|
|
52
|
+
*
|
|
53
|
+
* matchStatisticsModelParams,
|
|
54
|
+
* matchDataModelParams,
|
|
55
|
+
|
|
56
|
+
* usageSessionModelParams,
|
|
57
|
+
* customDataModelParams,
|
|
58
|
+
* ]
|
|
59
|
+
* });
|
|
60
|
+
* }
|
|
61
|
+
*
|
|
62
|
+
* ...
|
|
63
|
+
*
|
|
64
|
+
* // Setting up Routes
|
|
65
|
+
* setupRoutingModules(): void {
|
|
66
|
+
* this.httpPort = env.port;
|
|
67
|
+
|
|
68
|
+
* this.routingModules = [
|
|
69
|
+
* new DynamoNTS_RoutingModule({
|
|
70
|
+
* route: '/user',
|
|
71
|
+
* controllers: [
|
|
72
|
+
* UserController.getInstance(),
|
|
73
|
+
* UserDataController.getInstance(),
|
|
74
|
+
* UserOptionsController.getInstance(),
|
|
75
|
+
* UserStatisticsController.getInstance(),
|
|
76
|
+
* UserAchievementsController.getInstance(),
|
|
77
|
+
* UserNotificationsController.getInstance()
|
|
78
|
+
* ]
|
|
79
|
+
* }),
|
|
80
|
+
* new DynamoNTS_RoutingModule({
|
|
81
|
+
* route: '/match',
|
|
82
|
+
* controllers: [
|
|
83
|
+
* MatchController.getInstance(),
|
|
84
|
+
* MatchDistributionController.getInstance(),
|
|
85
|
+
* MatchStatisticsController.getInstance(),
|
|
86
|
+
* ]
|
|
87
|
+
* }),
|
|
88
|
+
* new DynamoNTS_RoutingModule({
|
|
89
|
+
* route: '/server',
|
|
90
|
+
* controllers: [
|
|
91
|
+
* ServerController.getInstance(),
|
|
92
|
+
* ]
|
|
93
|
+
* }),
|
|
94
|
+
|
|
95
|
+
* getTestRoutingModule(),
|
|
96
|
+
* getUsageRoutingModule()
|
|
97
|
+
* ];
|
|
98
|
+
* }
|
|
99
|
+
* }
|
|
100
|
+
*
|
|
101
|
+
* //
|
|
102
|
+
* // The Services available
|
|
103
|
+
* //
|
|
104
|
+
* // Authentication Service
|
|
105
|
+
* // A commonly used basic service,
|
|
106
|
+
* // which is necessary fur certain functions (such as registering call issuers)
|
|
107
|
+
* //
|
|
108
|
+
* // This will handle Authentication Token checking/refreshing, checking issuer's identifier and routeParams,
|
|
109
|
+
* // handling JWT Token, or maybe with OAuth2 or other commonly used security procedures
|
|
110
|
+
* //
|
|
111
|
+
* // You can create one with this Dynamo Object:
|
|
112
|
+
* //
|
|
113
|
+
*
|
|
114
|
+
* @example
|
|
115
|
+
* // follow the instructions on the abstract class (DynamoNTS_AuthService)
|
|
116
|
+
* export class AuthService extends DynamoNTS_AuthService {}
|
|
117
|
+
*
|
|
118
|
+
*
|
|
119
|
+
*
|
|
120
|
+
* //
|
|
121
|
+
*/
|
|
122
|
+
export declare abstract class DynamoNTS_App extends DynamoNTS_SingletonService {
|
|
123
|
+
private _params;
|
|
124
|
+
protected get params(): DynamoNTS_AppParams;
|
|
125
|
+
protected mongoose: typeof Mongoose;
|
|
126
|
+
private _security;
|
|
127
|
+
protected get security(): DynamoNTS_RouteSecurity;
|
|
128
|
+
protected _ports: DynamoNTS_PortSettings;
|
|
129
|
+
protected get ports(): DynamoNTS_PortSettings;
|
|
130
|
+
private _cert?;
|
|
131
|
+
protected get cert(): DynamoNTS_CertificationSettings;
|
|
132
|
+
protected openExpress: Express.Application;
|
|
133
|
+
private secureExpress;
|
|
134
|
+
protected httpsServer: Https.Server;
|
|
135
|
+
private _routingModules;
|
|
136
|
+
protected get routingModules(): DynamoNTS_RoutingModule[];
|
|
137
|
+
/**
|
|
138
|
+
* setting this value to true, enables this service debug logs
|
|
139
|
+
*/
|
|
140
|
+
protected debugLog: boolean;
|
|
141
|
+
constructor();
|
|
142
|
+
/**
|
|
143
|
+
*
|
|
144
|
+
*/
|
|
145
|
+
private startDB;
|
|
146
|
+
/**
|
|
147
|
+
*
|
|
148
|
+
*/
|
|
149
|
+
private initExpresses;
|
|
150
|
+
/**
|
|
151
|
+
*
|
|
152
|
+
*/
|
|
153
|
+
protected initOpenExpress(): void;
|
|
154
|
+
/**
|
|
155
|
+
*
|
|
156
|
+
*/
|
|
157
|
+
protected initSecureExpress(): void;
|
|
158
|
+
/**
|
|
159
|
+
*
|
|
160
|
+
*/
|
|
161
|
+
private startExpresses;
|
|
162
|
+
/**
|
|
163
|
+
*
|
|
164
|
+
*/
|
|
165
|
+
private mountSecureRoutes;
|
|
166
|
+
/**
|
|
167
|
+
*
|
|
168
|
+
*/
|
|
169
|
+
private mountOpenRoutes;
|
|
170
|
+
/**
|
|
171
|
+
*
|
|
172
|
+
*/
|
|
173
|
+
private setSecurity;
|
|
174
|
+
/**
|
|
175
|
+
* #OUTDATED
|
|
176
|
+
* Setting up App params, and preparing project global settings
|
|
177
|
+
* You must setup app params in this function like this:
|
|
178
|
+
*
|
|
179
|
+
* @example
|
|
180
|
+
* setupAppParams(): void {
|
|
181
|
+
* this.params = new DynamoBEAppParams({
|
|
182
|
+
* name: 'Sample Server',
|
|
183
|
+
* title: 'A BIG nice header that will be logged on start',
|
|
184
|
+
* version: version,
|
|
185
|
+
* dbName: 'sampleapp',
|
|
186
|
+
* });
|
|
187
|
+
*
|
|
188
|
+
* DBE_Global_S.setGlobalSettings({
|
|
189
|
+
* defaultRouteSecurity: DynamoBERouteSecurity.secure,
|
|
190
|
+
* logSetup: true,
|
|
191
|
+
* });
|
|
192
|
+
* }
|
|
193
|
+
*/
|
|
194
|
+
abstract getAppParams(): DynamoNTS_AppParams;
|
|
195
|
+
/**
|
|
196
|
+
* MISSING Description (TODO)
|
|
197
|
+
*/
|
|
198
|
+
abstract overrideDynamoNTSGlobalSettings?(): void;
|
|
199
|
+
/**
|
|
200
|
+
* #OUTDATED
|
|
201
|
+
* Setting up DBServices
|
|
202
|
+
* You must setup globalServiceCollection and dbServices in this function
|
|
203
|
+
*
|
|
204
|
+
* @example
|
|
205
|
+
* setGlobalServiceCollection(): void {
|
|
206
|
+
* DBE_Global_S.setServices({
|
|
207
|
+
* authService: AuthService.getInstance(),
|
|
208
|
+
* emailServiceCollection: EmailServiceCollectionService.getInstance(),
|
|
209
|
+
* dbModels: [
|
|
210
|
+
* accountModelParams,
|
|
211
|
+
* projectModelParams,
|
|
212
|
+
* ...
|
|
213
|
+
* ]
|
|
214
|
+
* });
|
|
215
|
+
* }
|
|
216
|
+
*/
|
|
217
|
+
abstract getGlobalServiceCollection(): DynamoNTS_GlobalServiceSettings;
|
|
218
|
+
/**
|
|
219
|
+
* MISSING Description (TODO)
|
|
220
|
+
*/
|
|
221
|
+
abstract getPortSettings(): DynamoNTS_PortSettings;
|
|
222
|
+
/**
|
|
223
|
+
* #OUTDATED
|
|
224
|
+
* You must setup endpoints and required services in this function
|
|
225
|
+
*
|
|
226
|
+
* @example
|
|
227
|
+
* // Setting up Routes
|
|
228
|
+
* setupRoutingModules(): void {
|
|
229
|
+
* this.httpPort = env.httpPort;
|
|
230
|
+
* this.httpsPort = env.httpsPort;
|
|
231
|
+
*
|
|
232
|
+
* this.cert = {
|
|
233
|
+
* keyPath: Path.join(__dirname, './_assets/cert/ucc.key'),
|
|
234
|
+
* certPath: Path.join(__dirname, './_assets/cert/ucc.crt'),
|
|
235
|
+
* };
|
|
236
|
+
*
|
|
237
|
+
* this.routingModules = [
|
|
238
|
+
* new DynamoBERountingModule({
|
|
239
|
+
* route: '/api/account',
|
|
240
|
+
* controllers: [
|
|
241
|
+
* AccountController.getInstance(),
|
|
242
|
+
* PersonalInformationController.getInstance(),
|
|
243
|
+
* ...
|
|
244
|
+
* ]
|
|
245
|
+
* }),
|
|
246
|
+
* new DynamoBERountingModule({
|
|
247
|
+
* route: '/api/project',
|
|
248
|
+
* controllers: [
|
|
249
|
+
* ProjectController.getInstance(),
|
|
250
|
+
* ProjectExtensionController.getInstance(),
|
|
251
|
+
* ]
|
|
252
|
+
* }),
|
|
253
|
+
* ...
|
|
254
|
+
* ];
|
|
255
|
+
* }
|
|
256
|
+
*/
|
|
257
|
+
abstract getRoutingModules(): DynamoNTS_RoutingModule[];
|
|
258
|
+
/**
|
|
259
|
+
* MISSING Description (TODO)
|
|
260
|
+
*/
|
|
261
|
+
getCertificationSettings?(): DynamoNTS_CertificationSettings;
|
|
262
|
+
/**
|
|
263
|
+
* MISSING Description (TODO)
|
|
264
|
+
*/
|
|
265
|
+
createEntries?(): void;
|
|
266
|
+
/**
|
|
267
|
+
* MISSING Description (TODO)
|
|
268
|
+
*/
|
|
269
|
+
postProcess?(): void;
|
|
270
|
+
}
|
|
279
271
|
//# sourceMappingURL=dynamo-nts-app.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dynamo-nts-app.d.ts","sourceRoot":"","sources":["../../src/_services/dynamo-nts-app.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dynamo-nts-app.d.ts","sourceRoot":"","sources":["../../src/_services/dynamo-nts-app.ts"],"names":[],"mappings":";AACA,OAAO,QAAQ,GAAG,QAAQ,UAAU,CAAC,CAAC;AACtC,OAAO,OAAO,GAAG,QAAQ,SAAS,CAAC,CAAC;AACpC,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,OAAO,EAAE,mBAAmB,EAAE,MAAM,kCAAkC,CAAC;AACvE,OAAO,EAAE,0BAA0B,EAAE,MAAM,gCAAgC,CAAC;AAC5E,OAAO,EAAE,uBAAuB,EAAE,MAAM,0CAA0C,CAAC;AACnF,OAAO,EAAE,uBAAuB,EAAE,MAAM,qCAAqC,CAAC;AAG9E,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAChF,OAAO,EAAE,+BAA+B,EAAE,MAAM,iDAAiD,CAAC;AAClG,OAAO,EAAE,+BAA+B,EAAE,MAAM,kDAAkD,CAAC;AAGnG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6GG;AACH,8BAAsB,aAAc,SAAQ,0BAA0B;IAEpE,OAAO,CAAC,OAAO,CAAsB;IACrC,SAAS,KAAK,MAAM,IAAI,mBAAmB,CAAyB;IAEpE,SAAS,CAAC,QAAQ,kBAAY;IAE9B,OAAO,CAAC,SAAS,CAA0B;IAC3C,SAAS,KAAK,QAAQ,IAAI,uBAAuB,CAA2B;IAE5E,SAAS,CAAC,MAAM,EAAE,sBAAsB,CAAC;IACzC,SAAS,KAAK,KAAK,IAAI,sBAAsB,CAAwB;IAErE,OAAO,CAAC,KAAK,CAAC,CAAkC;IAChD,SAAS,KAAK,IAAI,IAAI,+BAA+B,CAAuB;IAE5E,SAAS,CAAC,WAAW,EAAE,OAAO,CAAC,WAAW,CAAC;IAC3C,OAAO,CAAC,aAAa,CAAsB;IAC3C,SAAS,CAAC,WAAW,EAAE,KAAK,CAAC,MAAM,CAAC;IAEpC,OAAO,CAAC,eAAe,CAA4B;IACnD,SAAS,KAAK,cAAc,IAAI,uBAAuB,EAAE,CAAiC;IAE1F;;OAEG;IACH,SAAS,CAAC,QAAQ,EAAE,OAAO,CAAC;;IA+D5B;;OAEG;IACH,OAAO,CAAC,OAAO;IAkBf;;OAEG;IACH,OAAO,CAAC,aAAa;IAsErB;;OAEG;IACH,SAAS,CAAC,eAAe,IAAI,IAAI;IAMjC;;OAEG;IACF,SAAS,CAAC,iBAAiB,IAAI,IAAI;IAYpC;;OAEG;YACW,cAAc;IAgC5B;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAwBzB;;OAEG;IACH,OAAO,CAAC,eAAe;IAwBvB;;OAEG;IACH,OAAO,CAAC,WAAW;IAUnB;;;;;;;;;;;;;;;;;;;OAmBG;IACH,QAAQ,CAAC,YAAY,IAAI,mBAAmB;IAE5C;;OAEG;IACH,QAAQ,CAAC,+BAA+B,CAAC,IAAI,IAAI;IAEjD;;;;;;;;;;;;;;;;;OAiBG;IACH,QAAQ,CAAC,0BAA0B,IAAI,+BAA+B;IAEtE;;OAEG;IACH,QAAQ,CAAC,eAAe,IAAI,sBAAsB;IAElD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAkCG;IACH,QAAQ,CAAC,iBAAiB,IAAI,uBAAuB,EAAE;IAEvD;;OAEG;IACH,wBAAwB,CAAC,IAAI,+BAA+B;IAE5D;;OAEG;IACH,aAAa,CAAC,IAAI,IAAI;IAEtB;;OAEG;IACH,WAAW,CAAC,IAAI,IAAI;CACrB"}
|