@futdevpro/nts-dynamo 1.7.27 → 1.8.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/_constants/global-settings.const.d.ts +2 -2
- package/lib/_constants/global-settings.const.d.ts.map +1 -1
- package/lib/_constants/global-settings.const.js +2 -2
- package/lib/_constants/global-settings.const.js.map +1 -1
- package/lib/_constants/mocks/app-extended-server.mock.d.ts +12 -12
- package/lib/_constants/mocks/app-extended-server.mock.d.ts.map +1 -1
- package/lib/_constants/mocks/app-extended-server.mock.js +16 -16
- package/lib/_constants/mocks/app-extended-server.mock.js.map +1 -1
- package/lib/_constants/mocks/app-params.mock.d.ts +2 -2
- package/lib/_constants/mocks/app-params.mock.d.ts.map +1 -1
- package/lib/_constants/mocks/app-params.mock.js +1 -1
- package/lib/_constants/mocks/app-params.mock.js.map +1 -1
- package/lib/_constants/mocks/app-server.mock.d.ts +15 -15
- package/lib/_constants/mocks/app-server.mock.d.ts.map +1 -1
- package/lib/_constants/mocks/app-server.mock.js +10 -10
- package/lib/_constants/mocks/app-server.mock.js.map +1 -1
- package/lib/_constants/mocks/data-model.mock.d.ts +3 -3
- package/lib/_constants/mocks/data-model.mock.d.ts.map +1 -1
- package/lib/_constants/mocks/data-model.mock.js +22 -22
- package/lib/_constants/mocks/data-model.mock.js.map +1 -1
- package/lib/_constants/mocks/email-service-collection.mock.d.ts +2 -2
- package/lib/_constants/mocks/email-service-collection.mock.d.ts.map +1 -1
- package/lib/_constants/mocks/email-service-collection.mock.js +1 -1
- package/lib/_constants/mocks/email-service-collection.mock.js.map +1 -1
- package/lib/_constants/mocks/endpoint.mock.d.ts +8 -8
- package/lib/_constants/mocks/endpoint.mock.d.ts.map +1 -1
- package/lib/_constants/mocks/endpoint.mock.js +18 -18
- package/lib/_constants/mocks/endpoint.mock.js.map +1 -1
- package/lib/_constants/mocks/socket-client.mock.d.ts +2 -2
- package/lib/_constants/mocks/socket-client.mock.d.ts.map +1 -1
- package/lib/_constants/mocks/socket-client.mock.js +1 -1
- package/lib/_constants/mocks/socket-client.mock.js.map +1 -1
- package/lib/_constants/mocks/socket-server.mock.d.ts +2 -2
- package/lib/_constants/mocks/socket-server.mock.d.ts.map +1 -1
- package/lib/_constants/mocks/socket-server.mock.js +1 -1
- package/lib/_constants/mocks/socket-server.mock.js.map +1 -1
- package/lib/_enums/data-model-type.enum.d.ts +1 -0
- package/lib/_enums/data-model-type.enum.d.ts.map +1 -1
- package/lib/_enums/data-model-type.enum.js +1 -0
- package/lib/_enums/data-model-type.enum.js.map +1 -1
- package/lib/_models/control-models/api-call-params.control-model.d.ts +3 -3
- package/lib/_models/control-models/api-call-params.control-model.d.ts.map +1 -1
- package/lib/_models/control-models/api-call-params.control-model.js +5 -5
- package/lib/_models/control-models/api-call-params.control-model.js.map +1 -1
- package/lib/_models/control-models/{app-system-controls.control-model copy.d.ts → app-ext-system-controls.control-model.d.ts} +1 -1
- package/lib/_models/control-models/app-ext-system-controls.control-model.d.ts.map +1 -0
- package/lib/_models/control-models/{app-system-controls.control-model copy.js → app-ext-system-controls.control-model.js} +1 -1
- package/lib/_models/control-models/app-ext-system-controls.control-model.js.map +1 -0
- package/lib/_models/control-models/app-params.control-model.d.ts +2 -2
- package/lib/_models/control-models/app-params.control-model.d.ts.map +1 -1
- package/lib/_models/control-models/app-params.control-model.js +3 -3
- package/lib/_models/control-models/app-params.control-model.js.map +1 -1
- package/lib/_models/control-models/endpoint-params.control-model.d.ts +1 -1
- package/lib/_models/control-models/endpoint-params.control-model.d.ts.map +1 -1
- package/lib/_models/control-models/endpoint-params.control-model.js +8 -8
- package/lib/_models/control-models/endpoint-params.control-model.js.map +1 -1
- package/lib/_models/control-models/http-settings.control-model.d.ts +2 -2
- package/lib/_models/control-models/http-settings.control-model.d.ts.map +1 -1
- package/lib/_models/control-models/http-settings.control-model.js +3 -3
- package/lib/_models/control-models/http-settings.control-model.js.map +1 -1
- package/lib/_models/control-models/socket-client-service-params.control-model.d.ts +2 -2
- package/lib/_models/control-models/socket-client-service-params.control-model.d.ts.map +1 -1
- package/lib/_models/control-models/socket-client-service-params.control-model.js +3 -3
- package/lib/_models/control-models/socket-client-service-params.control-model.js.map +1 -1
- package/lib/_models/control-models/socket-event.control-model.js +4 -4
- package/lib/_models/control-models/socket-presence.control-model.d.ts +12 -0
- package/lib/_models/control-models/socket-presence.control-model.d.ts.map +1 -1
- package/lib/_models/control-models/socket-presence.control-model.js +14 -3
- package/lib/_models/control-models/socket-presence.control-model.js.map +1 -1
- package/lib/_models/control-models/socket-server-service-params.control-model.d.ts +2 -2
- package/lib/_models/control-models/socket-server-service-params.control-model.d.ts.map +1 -1
- package/lib/_models/control-models/socket-server-service-params.control-model.js +4 -4
- package/lib/_models/control-models/socket-server-service-params.control-model.js.map +1 -1
- package/lib/_models/interfaces/certification-settings.interface.d.ts +1 -1
- package/lib/_models/interfaces/certification-settings.interface.d.ts.map +1 -1
- package/lib/_models/interfaces/global-service-settings.interface.d.ts +6 -6
- package/lib/_models/interfaces/global-service-settings.interface.d.ts.map +1 -1
- package/lib/_models/interfaces/global-settings.interface.d.ts +1 -1
- package/lib/_models/interfaces/global-settings.interface.d.ts.map +1 -1
- package/lib/_models/interfaces/routing-module-settings.interface.d.ts +1 -1
- package/lib/_models/interfaces/routing-module-settings.interface.d.ts.map +1 -1
- package/lib/_models/types/db-filter.type.d.ts.map +1 -1
- package/lib/_models/types/db-update.type.d.ts +2 -1
- package/lib/_models/types/db-update.type.d.ts.map +1 -1
- package/lib/_modules/custom-data/custom-data.controller.d.ts +2 -2
- package/lib/_modules/custom-data/custom-data.controller.d.ts.map +1 -1
- package/lib/_modules/custom-data/custom-data.controller.js +18 -16
- package/lib/_modules/custom-data/custom-data.controller.js.map +1 -1
- package/lib/_modules/custom-data/custom-data.data-service.d.ts +1 -1
- package/lib/_modules/custom-data/custom-data.data-service.d.ts.map +1 -1
- package/lib/_modules/custom-data/custom-data.data-service.js +4 -4
- package/lib/_modules/custom-data/custom-data.data-service.js.map +1 -1
- package/lib/_modules/custom-data/get-custom-data-routing-module.util.d.ts +1 -1
- package/lib/_modules/custom-data/get-custom-data-routing-module.util.d.ts.map +1 -1
- package/lib/_modules/custom-data/get-custom-data-routing-module.util.js +5 -5
- package/lib/_modules/custom-data/get-custom-data-routing-module.util.js.map +1 -1
- package/lib/_modules/test/get-test-routing-module.util.d.ts +1 -1
- package/lib/_modules/test/get-test-routing-module.util.d.ts.map +1 -1
- package/lib/_modules/test/get-test-routing-module.util.js +5 -5
- package/lib/_modules/test/get-test-routing-module.util.js.map +1 -1
- package/lib/_modules/test/test.controller.d.ts +2 -2
- package/lib/_modules/test/test.controller.d.ts.map +1 -1
- package/lib/_modules/test/test.controller.js +33 -33
- package/lib/_modules/test/test.controller.js.map +1 -1
- package/lib/_modules/usage/get-usage-routing-module.util.d.ts +1 -1
- package/lib/_modules/usage/get-usage-routing-module.util.d.ts.map +1 -1
- package/lib/_modules/usage/get-usage-routing-module.util.js +5 -5
- package/lib/_modules/usage/get-usage-routing-module.util.js.map +1 -1
- package/lib/_modules/usage/usage.controller.d.ts +2 -2
- package/lib/_modules/usage/usage.controller.d.ts.map +1 -1
- package/lib/_modules/usage/usage.controller.js +16 -16
- package/lib/_modules/usage/usage.controller.js.map +1 -1
- package/lib/_modules/usage/usage.data-service.d.ts +1 -1
- package/lib/_modules/usage/usage.data-service.d.ts.map +1 -1
- package/lib/_modules/usage/usage.data-service.js +4 -4
- package/lib/_modules/usage/usage.data-service.js.map +1 -1
- package/lib/_services/base/data.service.d.ts +4 -3
- package/lib/_services/base/data.service.d.ts.map +1 -1
- package/lib/_services/base/data.service.js +22 -18
- package/lib/_services/base/data.service.js.map +1 -1
- package/lib/_services/base/db.service.d.ts +3 -3
- package/lib/_services/base/db.service.d.ts.map +1 -1
- package/lib/_services/base/db.service.js +11 -7
- package/lib/_services/base/db.service.js.map +1 -1
- package/lib/_services/core/api.service.d.ts +4 -4
- package/lib/_services/core/api.service.d.ts.map +1 -1
- package/lib/_services/core/api.service.js +9 -9
- package/lib/_services/core/api.service.js.map +1 -1
- package/lib/_services/core/email.service.d.ts +4 -4
- package/lib/_services/core/email.service.d.ts.map +1 -1
- package/lib/_services/core/email.service.js.map +1 -1
- package/lib/_services/core/global.service.d.ts +12 -12
- package/lib/_services/core/global.service.d.ts.map +1 -1
- package/lib/_services/core/global.service.js +14 -1
- package/lib/_services/core/global.service.js.map +1 -1
- package/lib/_services/core/service-collection.service.d.ts +1 -1
- package/lib/_services/core/service-collection.service.d.ts.map +1 -1
- package/lib/_services/core/service-collection.service.js +3 -3
- package/lib/_services/core/service-collection.service.js.map +1 -1
- package/lib/_services/route/controller.service.d.ts +2 -2
- package/lib/_services/route/controller.service.d.ts.map +1 -1
- package/lib/_services/route/controller.service.js.map +1 -1
- package/lib/_services/route/routing-module.service.d.ts +4 -4
- package/lib/_services/route/routing-module.service.d.ts.map +1 -1
- package/lib/_services/route/routing-module.service.js +2 -2
- package/lib/_services/route/routing-module.service.js.map +1 -1
- package/lib/_services/server/app-extended.server.d.ts +2 -2
- package/lib/_services/server/app-extended.server.js +5 -5
- package/lib/_services/server/app-extended.server.js.map +1 -1
- package/lib/_services/server/app-extended.server.spec.js +3 -3
- package/lib/_services/server/app-extended.server.spec.js.map +1 -1
- package/lib/_services/server/app.server.d.ts +14 -14
- package/lib/_services/server/app.server.d.ts.map +1 -1
- package/lib/_services/server/app.server.js +8 -8
- package/lib/_services/server/app.server.js.map +1 -1
- package/lib/_services/server/app.server.spec.js +3 -3
- package/lib/_services/server/app.server.spec.js.map +1 -1
- package/lib/_services/shared.static-service.d.ts +3 -3
- package/lib/_services/shared.static-service.d.ts.map +1 -1
- package/lib/_services/shared.static-service.js +1 -1
- package/lib/_services/shared.static-service.js.map +1 -1
- package/lib/_services/socket/socket-client.service.d.ts +3 -3
- package/lib/_services/socket/socket-client.service.d.ts.map +1 -1
- package/lib/_services/socket/socket-client.service.js +24 -18
- package/lib/_services/socket/socket-client.service.js.map +1 -1
- package/lib/_services/socket/socket-server.service.d.ts +3 -3
- package/lib/_services/socket/socket-server.service.d.ts.map +1 -1
- package/lib/_services/socket/socket-server.service.js +5 -5
- package/lib/_services/socket/socket-server.service.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/_constants/global-settings.const.ts +2 -2
- package/src/_constants/mocks/app-extended-server.mock.ts +34 -35
- package/src/_constants/mocks/app-params.mock.ts +2 -2
- package/src/_constants/mocks/app-server.mock.ts +30 -30
- package/src/_constants/mocks/data-model.mock.ts +23 -23
- package/src/_constants/mocks/email-service-collection.mock.ts +2 -2
- package/src/_constants/mocks/endpoint.mock.ts +22 -22
- package/src/_constants/mocks/socket-client.mock.ts +3 -3
- package/src/_constants/mocks/socket-server.mock.ts +3 -3
- package/src/_enums/data-model-type.enum.ts +1 -0
- package/src/_models/control-models/api-call-params.control-model.ts +3 -3
- package/src/_models/control-models/app-params.control-model.ts +2 -2
- package/src/_models/control-models/endpoint-params.control-model.ts +7 -7
- package/src/_models/control-models/http-settings.control-model.ts +2 -2
- package/src/_models/control-models/socket-client-service-params.control-model.ts +2 -2
- package/src/_models/control-models/socket-event.control-model.ts +5 -5
- package/src/_models/control-models/socket-presence.control-model.ts +24 -4
- package/src/_models/control-models/socket-server-service-params.control-model.ts +4 -4
- package/src/_models/interfaces/certification-settings.interface.ts +1 -1
- package/src/_models/interfaces/global-service-settings.interface.ts +6 -6
- package/src/_models/interfaces/global-settings.interface.ts +1 -1
- package/src/_models/interfaces/routing-module-settings.interface.ts +1 -1
- package/src/_models/types/db-filter.type.ts +5 -2
- package/src/_models/types/db-update.type.ts +3 -2
- package/src/_modules/custom-data/custom-data.controller.ts +20 -18
- package/src/_modules/custom-data/custom-data.data-service.ts +6 -4
- package/src/_modules/custom-data/get-custom-data-routing-module.util.ts +7 -7
- package/src/_modules/test/get-test-routing-module.util.ts +7 -7
- package/src/_modules/test/test.controller.ts +34 -34
- package/src/_modules/usage/get-usage-routing-module.util.ts +7 -7
- package/src/_modules/usage/usage.controller.ts +18 -19
- package/src/_modules/usage/usage.data-service.ts +3 -3
- package/src/_services/base/data.service.ts +32 -25
- package/src/_services/base/db.service.ts +17 -14
- package/src/_services/core/api.service.ts +22 -22
- package/src/_services/core/email.service.ts +4 -4
- package/src/_services/core/global.service.ts +29 -15
- package/src/_services/core/service-collection.service.ts +1 -1
- package/src/_services/route/controller.service.ts +2 -2
- package/src/_services/route/routing-module.service.ts +12 -12
- package/src/_services/server/app-extended.server.spec.ts +4 -4
- package/src/_services/server/app-extended.server.ts +5 -5
- package/src/_services/server/app.server.spec.ts +4 -4
- package/src/_services/server/app.server.ts +27 -27
- package/src/_services/shared.static-service.ts +7 -4
- package/src/_services/socket/socket-client.service.ts +69 -37
- package/src/_services/socket/socket-server.service.ts +9 -9
- package/tsconfig.json +1 -0
- package/lib/_models/control-models/app-system-controls.control-model copy.d.ts.map +0 -1
- package/lib/_models/control-models/app-system-controls.control-model copy.js.map +0 -1
- /package/src/_models/control-models/{app-system-controls.control-model copy.ts → app-ext-system-controls.control-model.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@futdevpro/nts-dynamo",
|
|
3
|
-
"version": "01.
|
|
3
|
+
"version": "01.08.05",
|
|
4
4
|
"description": "Dynamic NodeTS (NodeJS-Typescript), MongoDB Backend System Framework by Future Development Program Ltd.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"prep": "npm i rimraf nodemon -g",
|
|
@@ -196,7 +196,7 @@
|
|
|
196
196
|
},
|
|
197
197
|
"homepage": "https:/futdevpro.hu/projects/dynamo",
|
|
198
198
|
"peerDependencies": {
|
|
199
|
-
"@futdevpro/fsm-dynamo": "^1.
|
|
199
|
+
"@futdevpro/fsm-dynamo": "^1.8.5",
|
|
200
200
|
"@types/express": "^4.17.17",
|
|
201
201
|
"@types/geoip-lite": "^1.4.1",
|
|
202
202
|
"@types/node": "^20.5.7",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
2
|
import { DynamoNTS_RouteSecurity } from '../_enums/route-security.enum';
|
|
3
3
|
import { DynamoNTS_SocketSecurity } from '../_enums/socket-security.enum';
|
|
4
|
-
import {
|
|
4
|
+
import { DynamoNTS_Global_Settings } from '../_models/interfaces/global-settings.interface';
|
|
5
5
|
|
|
6
|
-
export const
|
|
6
|
+
export const DynamoNTS_globalSettings: DynamoNTS_Global_Settings = {
|
|
7
7
|
baseUrl: '/api',
|
|
8
8
|
defaultRouteSecurity: DynamoNTS_RouteSecurity.open,
|
|
9
9
|
defaultSocketSecurity: DynamoNTS_SocketSecurity.open,
|
|
@@ -1,50 +1,49 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { Dynamo_error_defaults } from '@futdevpro/fsm-dynamo';
|
|
4
|
+
import { Dynamo_usageSessionModel_params } from '@futdevpro/fsm-dynamo/usage-module';
|
|
5
|
+
import { Dynamo_customDataModel_params } from '@futdevpro/fsm-dynamo/custom-data-module';
|
|
5
6
|
|
|
6
|
-
import {
|
|
7
|
+
import { DynamoNTS_App_Params } from '../../_models/control-models/app-params.control-model';
|
|
7
8
|
import {
|
|
8
|
-
|
|
9
|
+
DynamoNTS_GlobalService_Settings
|
|
9
10
|
} from '../../_models/interfaces/global-service-settings.interface';
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
11
|
+
import { DynamoNTS_Http_Settings } from '../../_models/control-models/http-settings.control-model';
|
|
12
|
+
import { DynamoNTS_getTestRoutingModule } from '../../_modules/test';
|
|
13
|
+
import { DynamoNTS_getUsageRoutingModule } from '../../_modules/usage';
|
|
13
14
|
import { DynamoNTS_SingletonService } from '../../_services';
|
|
14
15
|
import { DynamoNTS_RoutingModule } from '../../_services/route/routing-module.service';
|
|
15
|
-
import { DynamoNTS_App } from '../../_services/server/app.server';
|
|
16
16
|
import { DynamoNTS_Controller_Mock } from './controller.mock';
|
|
17
17
|
import { AuthService_Mock } from './auth-service.mock';
|
|
18
18
|
import {
|
|
19
|
-
DynamoNTS_AppExtended,
|
|
19
|
+
DynamoNTS_AppExtended, DynamoNTS_globalSettings, DynamoNTS_SocketServerService
|
|
20
20
|
} from '../../_modules/app-extended.index';
|
|
21
21
|
import { DynamoNTS_SocketServer_Mock } from './socket-server.mock';
|
|
22
22
|
import { SocketClient_Mock } from './socket-client.mock';
|
|
23
23
|
import { dependency_mock_DataParams, dependent_mock_DataParams } from './data-model.mock';
|
|
24
|
-
import { dynamo_error_default } from '@futdevpro/fsm-dynamo';
|
|
25
24
|
import { EmailServiceCollection_Mock } from './email-service-collection.mock';
|
|
26
|
-
import {
|
|
25
|
+
import { DynamoNTS_getCustomDataRoutingModule } from '../../_modules/custom-data';
|
|
27
26
|
|
|
28
27
|
/**
|
|
29
28
|
*
|
|
30
29
|
*/
|
|
31
30
|
export class DynamoNTS_AppExtendedBase_Mock extends DynamoNTS_AppExtended {
|
|
32
31
|
|
|
33
|
-
getAppParams():
|
|
34
|
-
return new
|
|
32
|
+
getAppParams(): DynamoNTS_App_Params {
|
|
33
|
+
return new DynamoNTS_App_Params({
|
|
35
34
|
name: 'test-extended-base',
|
|
36
35
|
version: '1.0.1',
|
|
37
36
|
dbName: 'test-base',
|
|
38
37
|
});
|
|
39
38
|
}
|
|
40
39
|
|
|
41
|
-
getGlobalServiceCollection():
|
|
40
|
+
getGlobalServiceCollection(): DynamoNTS_GlobalService_Settings {
|
|
42
41
|
return {
|
|
43
42
|
authService: AuthService_Mock.getInstance(),
|
|
44
43
|
};
|
|
45
44
|
}
|
|
46
45
|
|
|
47
|
-
getPortSettings():
|
|
46
|
+
getPortSettings(): DynamoNTS_Http_Settings {
|
|
48
47
|
return {};
|
|
49
48
|
}
|
|
50
49
|
|
|
@@ -66,8 +65,8 @@ export class DynamoNTS_AppExtendedBase_Mock extends DynamoNTS_AppExtended {
|
|
|
66
65
|
*/
|
|
67
66
|
export class DynamoNTS_AppExtendedFull_Mock extends DynamoNTS_AppExtended {
|
|
68
67
|
|
|
69
|
-
getAppParams():
|
|
70
|
-
return new
|
|
68
|
+
getAppParams(): DynamoNTS_App_Params {
|
|
69
|
+
return new DynamoNTS_App_Params({
|
|
71
70
|
name: 'test-extended-full',
|
|
72
71
|
version: 'x.0.101',
|
|
73
72
|
dbName: 'test-full',
|
|
@@ -79,7 +78,7 @@ export class DynamoNTS_AppExtendedFull_Mock extends DynamoNTS_AppExtended {
|
|
|
79
78
|
/* dynamoNTS_globalSettings.defaultRouteSecurity = DynamoNTS_RouteSecurity.open; */
|
|
80
79
|
}
|
|
81
80
|
|
|
82
|
-
getGlobalServiceCollection():
|
|
81
|
+
getGlobalServiceCollection(): DynamoNTS_GlobalService_Settings {
|
|
83
82
|
return {
|
|
84
83
|
authService: AuthService_Mock.getInstance(),
|
|
85
84
|
/* emailServiceCollection: EmailServiceCollectionService.getInstance(), */
|
|
@@ -87,13 +86,13 @@ export class DynamoNTS_AppExtendedFull_Mock extends DynamoNTS_AppExtended {
|
|
|
87
86
|
dependency_mock_DataParams,
|
|
88
87
|
dependent_mock_DataParams,
|
|
89
88
|
|
|
90
|
-
|
|
91
|
-
|
|
89
|
+
Dynamo_usageSessionModel_params,
|
|
90
|
+
Dynamo_customDataModel_params,
|
|
92
91
|
],
|
|
93
92
|
};
|
|
94
93
|
}
|
|
95
94
|
|
|
96
|
-
getPortSettings():
|
|
95
|
+
getPortSettings(): DynamoNTS_Http_Settings {
|
|
97
96
|
return {
|
|
98
97
|
httpPort: 53535,
|
|
99
98
|
};
|
|
@@ -108,9 +107,9 @@ export class DynamoNTS_AppExtendedFull_Mock extends DynamoNTS_AppExtended {
|
|
|
108
107
|
],
|
|
109
108
|
}),
|
|
110
109
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
110
|
+
DynamoNTS_getTestRoutingModule(),
|
|
111
|
+
DynamoNTS_getCustomDataRoutingModule(),
|
|
112
|
+
DynamoNTS_getUsageRoutingModule(),
|
|
114
113
|
];
|
|
115
114
|
}
|
|
116
115
|
|
|
@@ -136,8 +135,8 @@ export class DynamoNTS_AppExtendedFull_Mock extends DynamoNTS_AppExtended {
|
|
|
136
135
|
*/
|
|
137
136
|
export class DynamoNTS_AppWbMock_Mock extends DynamoNTS_AppExtended {
|
|
138
137
|
|
|
139
|
-
getAppParams():
|
|
140
|
-
return new
|
|
138
|
+
getAppParams(): DynamoNTS_App_Params {
|
|
139
|
+
return new DynamoNTS_App_Params({
|
|
141
140
|
name: 'test-wb-mock',
|
|
142
141
|
version: 'x.0.101',
|
|
143
142
|
dbName: 'test-full',
|
|
@@ -145,11 +144,11 @@ export class DynamoNTS_AppWbMock_Mock extends DynamoNTS_AppExtended {
|
|
|
145
144
|
}
|
|
146
145
|
|
|
147
146
|
overrideDynamoNTSGlobalSettings(): void {
|
|
148
|
-
|
|
149
|
-
|
|
147
|
+
DynamoNTS_globalSettings.logRequestsContent = true;
|
|
148
|
+
Dynamo_error_defaults.issuerSystem = '-test-wb-mock-';
|
|
150
149
|
}
|
|
151
150
|
|
|
152
|
-
getGlobalServiceCollection():
|
|
151
|
+
getGlobalServiceCollection(): DynamoNTS_GlobalService_Settings {
|
|
153
152
|
return {
|
|
154
153
|
authService: AuthService_Mock.getInstance(),
|
|
155
154
|
emailServiceCollection: EmailServiceCollection_Mock.getInstance(),
|
|
@@ -157,13 +156,13 @@ export class DynamoNTS_AppWbMock_Mock extends DynamoNTS_AppExtended {
|
|
|
157
156
|
dependency_mock_DataParams,
|
|
158
157
|
dependent_mock_DataParams,
|
|
159
158
|
|
|
160
|
-
|
|
161
|
-
|
|
159
|
+
Dynamo_usageSessionModel_params,
|
|
160
|
+
Dynamo_customDataModel_params,
|
|
162
161
|
],
|
|
163
162
|
};
|
|
164
163
|
}
|
|
165
164
|
|
|
166
|
-
getPortSettings():
|
|
165
|
+
getPortSettings(): DynamoNTS_Http_Settings {
|
|
167
166
|
return {
|
|
168
167
|
httpPort: 53535,
|
|
169
168
|
};
|
|
@@ -178,9 +177,9 @@ export class DynamoNTS_AppWbMock_Mock extends DynamoNTS_AppExtended {
|
|
|
178
177
|
],
|
|
179
178
|
}),
|
|
180
179
|
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
180
|
+
DynamoNTS_getTestRoutingModule(),
|
|
181
|
+
DynamoNTS_getCustomDataRoutingModule(),
|
|
182
|
+
DynamoNTS_getUsageRoutingModule(),
|
|
184
183
|
];
|
|
185
184
|
}
|
|
186
185
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
|
-
import {
|
|
2
|
+
import { DynamoNTS_App_Params } from '../../_models';
|
|
3
3
|
|
|
4
|
-
export const DynamoNTS_appParams_mock:
|
|
4
|
+
export const DynamoNTS_appParams_mock: DynamoNTS_App_Params = new DynamoNTS_App_Params({
|
|
5
5
|
name: 'test',
|
|
6
6
|
version: '0.0.1',
|
|
7
7
|
dbName: 'test',
|
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { Dynamo_usageSessionModel_params } from '@futdevpro/fsm-dynamo/usage-module';
|
|
4
|
+
import { Dynamo_customDataModel_params } from '@futdevpro/fsm-dynamo/custom-data-module';
|
|
5
5
|
|
|
6
|
-
import {
|
|
6
|
+
import { DynamoNTS_App_Params } from '../../_models/control-models/app-params.control-model';
|
|
7
7
|
import {
|
|
8
|
-
|
|
8
|
+
DynamoNTS_GlobalService_Settings
|
|
9
9
|
} from '../../_models/interfaces/global-service-settings.interface';
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
10
|
+
import { DynamoNTS_Http_Settings } from '../../_models/control-models/http-settings.control-model';
|
|
11
|
+
import { DynamoNTS_getTestRoutingModule } from '../../_modules/test';
|
|
12
|
+
import { DynamoNTS_getUsageRoutingModule } from '../../_modules/usage';
|
|
13
13
|
import { DynamoNTS_SingletonService } from '../../_services';
|
|
14
14
|
import { DynamoNTS_RoutingModule } from '../../_services/route/routing-module.service';
|
|
15
15
|
import { DynamoNTS_App } from '../../_services/server/app.server';
|
|
16
16
|
import { DynamoNTS_Controller_Mock } from './controller.mock';
|
|
17
17
|
import { AuthService_Mock } from './auth-service.mock';
|
|
18
18
|
import { dependency_mock_DataParams, dependent_mock_DataParams } from './data-model.mock';
|
|
19
|
-
import {
|
|
19
|
+
import { DynamoNTS_getCustomDataRoutingModule } from '../../_modules/custom-data';
|
|
20
20
|
|
|
21
21
|
/**
|
|
22
22
|
*
|
|
23
23
|
*/
|
|
24
24
|
export class DynamoNTS_AppBase_Mock extends DynamoNTS_App {
|
|
25
|
-
getAppParams():
|
|
26
|
-
return new
|
|
25
|
+
getAppParams(): DynamoNTS_App_Params {
|
|
26
|
+
return new DynamoNTS_App_Params({
|
|
27
27
|
name: 'test-base',
|
|
28
28
|
version: 'x1.0.1',
|
|
29
29
|
dbName: 'test-base',
|
|
30
30
|
});
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
getGlobalServiceCollection():
|
|
33
|
+
getGlobalServiceCollection(): DynamoNTS_GlobalService_Settings {
|
|
34
34
|
return {
|
|
35
35
|
authService: AuthService_Mock.getInstance(),
|
|
36
36
|
};
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
getPortSettings():
|
|
39
|
+
getPortSettings(): DynamoNTS_Http_Settings {
|
|
40
40
|
return {};
|
|
41
41
|
}
|
|
42
42
|
|
|
@@ -53,8 +53,8 @@ export class DynamoNTS_AppBase_Mock extends DynamoNTS_App {
|
|
|
53
53
|
*
|
|
54
54
|
*/
|
|
55
55
|
export class DynamoNTS_AppFull_Mock extends DynamoNTS_App {
|
|
56
|
-
getAppParams():
|
|
57
|
-
return new
|
|
56
|
+
getAppParams(): DynamoNTS_App_Params {
|
|
57
|
+
return new DynamoNTS_App_Params({
|
|
58
58
|
name: 'test-full',
|
|
59
59
|
version: 'xx.0.101',
|
|
60
60
|
dbName: 'test-full',
|
|
@@ -67,7 +67,7 @@ export class DynamoNTS_AppFull_Mock extends DynamoNTS_App {
|
|
|
67
67
|
/* dynamoNTS_globalSettings.defaultRouteSecurity = DynamoNTS_RouteSecurity.open; */
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
getGlobalServiceCollection():
|
|
70
|
+
getGlobalServiceCollection(): DynamoNTS_GlobalService_Settings {
|
|
71
71
|
return {
|
|
72
72
|
authService: AuthService_Mock.getInstance(),
|
|
73
73
|
/* emailServiceCollection: EmailServiceCollectionService.getInstance(), */
|
|
@@ -75,13 +75,13 @@ export class DynamoNTS_AppFull_Mock extends DynamoNTS_App {
|
|
|
75
75
|
dependency_mock_DataParams,
|
|
76
76
|
dependent_mock_DataParams,
|
|
77
77
|
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
Dynamo_usageSessionModel_params,
|
|
79
|
+
Dynamo_customDataModel_params,
|
|
80
80
|
],
|
|
81
81
|
};
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
getPortSettings():
|
|
84
|
+
getPortSettings(): DynamoNTS_Http_Settings {
|
|
85
85
|
return {
|
|
86
86
|
httpPort: 10101,
|
|
87
87
|
};
|
|
@@ -96,9 +96,9 @@ export class DynamoNTS_AppFull_Mock extends DynamoNTS_App {
|
|
|
96
96
|
],
|
|
97
97
|
}),
|
|
98
98
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
99
|
+
DynamoNTS_getTestRoutingModule(),
|
|
100
|
+
DynamoNTS_getCustomDataRoutingModule(),
|
|
101
|
+
DynamoNTS_getUsageRoutingModule(),
|
|
102
102
|
];
|
|
103
103
|
}
|
|
104
104
|
|
|
@@ -114,9 +114,9 @@ export class DynamoNTS_AppFull_Mock extends DynamoNTS_App {
|
|
|
114
114
|
export class DynamoNTS_AppTEST_Mock extends DynamoNTS_App {
|
|
115
115
|
constructor(
|
|
116
116
|
overrides: {
|
|
117
|
-
getAppParams?():
|
|
118
|
-
getGlobalServiceCollection?():
|
|
119
|
-
getPortSettings?():
|
|
117
|
+
getAppParams?(): DynamoNTS_App_Params;
|
|
118
|
+
getGlobalServiceCollection?(): DynamoNTS_GlobalService_Settings;
|
|
119
|
+
getPortSettings?(): DynamoNTS_Http_Settings;
|
|
120
120
|
getRoutingModules?(): DynamoNTS_RoutingModule[];
|
|
121
121
|
getRootServices?(): Promise<DynamoNTS_SingletonService[]>;
|
|
122
122
|
}
|
|
@@ -144,8 +144,8 @@ export class DynamoNTS_AppTEST_Mock extends DynamoNTS_App {
|
|
|
144
144
|
super();
|
|
145
145
|
}
|
|
146
146
|
|
|
147
|
-
getAppParams():
|
|
148
|
-
return new
|
|
147
|
+
getAppParams(): DynamoNTS_App_Params {
|
|
148
|
+
return new DynamoNTS_App_Params({
|
|
149
149
|
name: 'test-partial',
|
|
150
150
|
version: 'p.0.1',
|
|
151
151
|
dbName: 'test-partial',
|
|
@@ -154,20 +154,20 @@ export class DynamoNTS_AppTEST_Mock extends DynamoNTS_App {
|
|
|
154
154
|
|
|
155
155
|
overrideDynamoNTSGlobalSettings(): void {}
|
|
156
156
|
|
|
157
|
-
getGlobalServiceCollection():
|
|
157
|
+
getGlobalServiceCollection(): DynamoNTS_GlobalService_Settings {
|
|
158
158
|
return {
|
|
159
159
|
authService: AuthService_Mock.getInstance(),
|
|
160
160
|
dbModels: [
|
|
161
161
|
dependency_mock_DataParams,
|
|
162
162
|
dependent_mock_DataParams,
|
|
163
163
|
|
|
164
|
-
|
|
165
|
-
|
|
164
|
+
Dynamo_usageSessionModel_params,
|
|
165
|
+
Dynamo_customDataModel_params,
|
|
166
166
|
],
|
|
167
167
|
};
|
|
168
168
|
}
|
|
169
169
|
|
|
170
|
-
getPortSettings():
|
|
170
|
+
getPortSettings(): DynamoNTS_Http_Settings {
|
|
171
171
|
return {
|
|
172
172
|
httpPort: 10203,
|
|
173
173
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Dynamo_DataParams, Dynamo_Metadata } from '@futdevpro/fsm-dynamo';
|
|
2
1
|
|
|
2
|
+
import { Dynamo_DataModel_Params, Dynamo_Metadata } from '@futdevpro/fsm-dynamo';
|
|
3
3
|
|
|
4
4
|
export class Dependency_Mock extends Dynamo_Metadata {
|
|
5
5
|
string?: string;
|
|
@@ -22,18 +22,18 @@ export class Dependency_Mock extends Dynamo_Metadata {
|
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
export const dependency_mock_DataParams = new
|
|
25
|
+
export const dependency_mock_DataParams = new Dynamo_DataModel_Params({
|
|
26
26
|
dataName: 'dependencyMock',
|
|
27
|
-
|
|
28
|
-
{ key: 'string', type: 'string'
|
|
29
|
-
{ key: 'number', type: 'number'
|
|
30
|
-
{ key: 'date', type: 'Date'
|
|
31
|
-
{ key: 'boolean', type: 'boolean'
|
|
32
|
-
{ key: 'array', type: 'string[]'
|
|
33
|
-
{ key: 'object', type: 'any'
|
|
34
|
-
{ key: 'objectArray', type: 'any[]'
|
|
35
|
-
{ key: 'objectArrayArray', type: 'any[][]'
|
|
36
|
-
]
|
|
27
|
+
properties: [
|
|
28
|
+
{ key: 'string', type: 'string' },
|
|
29
|
+
{ key: 'number', type: 'number' },
|
|
30
|
+
{ key: 'date', type: 'Date' },
|
|
31
|
+
{ key: 'boolean', type: 'boolean' },
|
|
32
|
+
{ key: 'array', type: 'string[]' },
|
|
33
|
+
{ key: 'object', type: 'any' },
|
|
34
|
+
{ key: 'objectArray', type: 'any[]' },
|
|
35
|
+
{ key: 'objectArrayArray', type: 'any[][]' },
|
|
36
|
+
],
|
|
37
37
|
});
|
|
38
38
|
|
|
39
39
|
////////////////////////////////////////////////////////////////////
|
|
@@ -63,21 +63,21 @@ export class Dependent_Mock extends Dynamo_Metadata {
|
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
export const dependent_mock_DataParams = new
|
|
66
|
+
export const dependent_mock_DataParams = new Dynamo_DataModel_Params({
|
|
67
67
|
dataName: 'dependentMock',
|
|
68
|
-
|
|
68
|
+
properties: [
|
|
69
69
|
{ key: 'dependencyId', type: 'string',
|
|
70
70
|
unique: true, required: true,
|
|
71
71
|
isDependencyHook: true,
|
|
72
72
|
dependencyDataName: dependency_mock_DataParams.dataName,
|
|
73
73
|
},
|
|
74
|
-
{ key: 'string', type: 'string'
|
|
75
|
-
{ key: 'number', type: 'number'
|
|
76
|
-
{ key: 'date', type: 'Date'
|
|
77
|
-
{ key: 'boolean', type: 'boolean'
|
|
78
|
-
{ key: 'array', type: 'string[]'
|
|
79
|
-
{ key: 'object', type: 'any'
|
|
80
|
-
{ key: 'objectArray', type: 'any[]'
|
|
81
|
-
{ key: 'objectArrayArray', type: 'any[][]'
|
|
82
|
-
]
|
|
74
|
+
{ key: 'string', type: 'string' },
|
|
75
|
+
{ key: 'number', type: 'number' },
|
|
76
|
+
{ key: 'date', type: 'Date' },
|
|
77
|
+
{ key: 'boolean', type: 'boolean' },
|
|
78
|
+
{ key: 'array', type: 'string[]' },
|
|
79
|
+
{ key: 'object', type: 'any' },
|
|
80
|
+
{ key: 'objectArray', type: 'any[]' },
|
|
81
|
+
{ key: 'objectArrayArray', type: 'any[][]' },
|
|
82
|
+
],
|
|
83
83
|
});
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { DynamoNTS_EmailService,
|
|
1
|
+
import { DynamoNTS_EmailService, DynamoNTS_Service_Collection } from '../../_services';
|
|
2
2
|
import { EmailService_Mock } from './email-service.mock';
|
|
3
3
|
|
|
4
4
|
export class EmailServiceCollection_Mock extends
|
|
5
|
-
|
|
5
|
+
DynamoNTS_Service_Collection<DynamoNTS_EmailService> {
|
|
6
6
|
|
|
7
7
|
static getInstance(): EmailServiceCollection_Mock {
|
|
8
8
|
return EmailServiceCollection_Mock.getSingletonInstance();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { DynamoNTS_HttpCallType } from '../../_enums';
|
|
2
|
-
import {
|
|
2
|
+
import { DynamoNTS_Endpoint_Params } from '../../_models';
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
export const DynamoNTS_endpointBase_mock:
|
|
6
|
+
export const DynamoNTS_endpointBase_mock: DynamoNTS_Endpoint_Params = new DynamoNTS_Endpoint_Params({
|
|
7
7
|
name: 'testBase',
|
|
8
8
|
type: DynamoNTS_HttpCallType.get,
|
|
9
9
|
endpoint: '/test-base',
|
|
@@ -11,12 +11,12 @@ export const DynamoNTS_endpointBase_mock: DynamoNTS_EndpointParams = new DynamoN
|
|
|
11
11
|
tasks: [
|
|
12
12
|
async (req, res): Promise<void> => {
|
|
13
13
|
res.send('test-base');
|
|
14
|
-
}
|
|
15
|
-
]
|
|
14
|
+
},
|
|
15
|
+
],
|
|
16
16
|
});
|
|
17
17
|
|
|
18
|
-
export const DynamoNTS_endpointSimple_mock:
|
|
19
|
-
new
|
|
18
|
+
export const DynamoNTS_endpointSimple_mock: DynamoNTS_Endpoint_Params =
|
|
19
|
+
new DynamoNTS_Endpoint_Params({
|
|
20
20
|
name: 'testSimple',
|
|
21
21
|
type: DynamoNTS_HttpCallType.get,
|
|
22
22
|
endpoint: '/test-simple',
|
|
@@ -24,11 +24,11 @@ export const DynamoNTS_endpointSimple_mock: DynamoNTS_EndpointParams =
|
|
|
24
24
|
tasks: [
|
|
25
25
|
async (req, res): Promise<void> => {
|
|
26
26
|
res.send('test-simple');
|
|
27
|
-
}
|
|
28
|
-
]
|
|
27
|
+
},
|
|
28
|
+
],
|
|
29
29
|
});
|
|
30
30
|
|
|
31
|
-
export const DynamoNTS_endpointPost_mock:
|
|
31
|
+
export const DynamoNTS_endpointPost_mock: DynamoNTS_Endpoint_Params = new DynamoNTS_Endpoint_Params({
|
|
32
32
|
name: 'testPost',
|
|
33
33
|
type: DynamoNTS_HttpCallType.post,
|
|
34
34
|
endpoint: '/test-post',
|
|
@@ -36,11 +36,11 @@ export const DynamoNTS_endpointPost_mock: DynamoNTS_EndpointParams = new DynamoN
|
|
|
36
36
|
tasks: [
|
|
37
37
|
async (req, res): Promise<void> => {
|
|
38
38
|
res.send('test-post');
|
|
39
|
-
}
|
|
40
|
-
]
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
41
|
});
|
|
42
42
|
|
|
43
|
-
export const DynamoNTS_endpointPut_mock:
|
|
43
|
+
export const DynamoNTS_endpointPut_mock: DynamoNTS_Endpoint_Params = new DynamoNTS_Endpoint_Params({
|
|
44
44
|
name: 'testPut',
|
|
45
45
|
type: DynamoNTS_HttpCallType.put,
|
|
46
46
|
endpoint: '/test-put',
|
|
@@ -48,12 +48,12 @@ export const DynamoNTS_endpointPut_mock: DynamoNTS_EndpointParams = new DynamoNT
|
|
|
48
48
|
tasks: [
|
|
49
49
|
async (req, res): Promise<void> => {
|
|
50
50
|
res.send('test-put');
|
|
51
|
-
}
|
|
52
|
-
]
|
|
51
|
+
},
|
|
52
|
+
],
|
|
53
53
|
});
|
|
54
54
|
|
|
55
|
-
export const DynamoNTS_endpointDelete_mock:
|
|
56
|
-
new
|
|
55
|
+
export const DynamoNTS_endpointDelete_mock: DynamoNTS_Endpoint_Params =
|
|
56
|
+
new DynamoNTS_Endpoint_Params({
|
|
57
57
|
name: 'testDelete',
|
|
58
58
|
type: DynamoNTS_HttpCallType.delete,
|
|
59
59
|
endpoint: '/test-delete',
|
|
@@ -61,11 +61,11 @@ export const DynamoNTS_endpointDelete_mock: DynamoNTS_EndpointParams =
|
|
|
61
61
|
tasks: [
|
|
62
62
|
async (req, res): Promise<void> => {
|
|
63
63
|
res.send('test-delete');
|
|
64
|
-
}
|
|
65
|
-
]
|
|
64
|
+
},
|
|
65
|
+
],
|
|
66
66
|
});
|
|
67
67
|
|
|
68
|
-
export const DynamoNTS_endpointThrow_mock:
|
|
68
|
+
export const DynamoNTS_endpointThrow_mock: DynamoNTS_Endpoint_Params = new DynamoNTS_Endpoint_Params({
|
|
69
69
|
name: 'testThrow',
|
|
70
70
|
type: DynamoNTS_HttpCallType.get,
|
|
71
71
|
endpoint: '/test-throw',
|
|
@@ -73,11 +73,11 @@ export const DynamoNTS_endpointThrow_mock: DynamoNTS_EndpointParams = new Dynamo
|
|
|
73
73
|
tasks: [
|
|
74
74
|
async (req, res): Promise<void> => {
|
|
75
75
|
throw new Error('test-throw');
|
|
76
|
-
}
|
|
77
|
-
]
|
|
76
|
+
},
|
|
77
|
+
],
|
|
78
78
|
});
|
|
79
79
|
|
|
80
|
-
export const DynamoNTS_endpoints_mock:
|
|
80
|
+
export const DynamoNTS_endpoints_mock: DynamoNTS_Endpoint_Params[] = [
|
|
81
81
|
DynamoNTS_endpointBase_mock,
|
|
82
82
|
DynamoNTS_endpointSimple_mock,
|
|
83
83
|
DynamoNTS_endpointPost_mock,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DynamoNTS_SocketEventKey } from '../../_enums';
|
|
2
|
-
import {
|
|
2
|
+
import { DynamoNTS_SocketClientService_Params, DynamoNTS_SocketEvent } from '../../_models';
|
|
3
3
|
import { DynamoNTS_SocketClientService } from '../../_modules/app-extended.index';
|
|
4
4
|
|
|
5
5
|
|
|
@@ -28,8 +28,8 @@ export class SocketClient_Mock extends DynamoNTS_SocketClientService {
|
|
|
28
28
|
];
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
getParams():
|
|
32
|
-
return new
|
|
31
|
+
getParams(): DynamoNTS_SocketClientService_Params {
|
|
32
|
+
return new DynamoNTS_SocketClientService_Params({
|
|
33
33
|
service: '-test-socket-target-',
|
|
34
34
|
name: 'socket-client-mock',
|
|
35
35
|
port: 30303,
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
DynamoNTS_SocketPresence
|
|
5
5
|
} from '../../_models/control-models/socket-presence.control-model';
|
|
6
6
|
import {
|
|
7
|
-
|
|
7
|
+
DynamoNTS_SocketServerService_Params
|
|
8
8
|
} from '../../_models/control-models/socket-server-service-params.control-model';
|
|
9
9
|
import { DynamoNTS_SocketServerService } from '../../_services/socket/socket-server.service';
|
|
10
10
|
|
|
@@ -17,8 +17,8 @@ export class DynamoNTS_SocketServer_Mock extends
|
|
|
17
17
|
return DynamoNTS_SocketServer_Mock.getSingletonInstance();
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
getServiceParams():
|
|
21
|
-
return new
|
|
20
|
+
getServiceParams(): DynamoNTS_SocketServerService_Params<any> {
|
|
21
|
+
return new DynamoNTS_SocketServerService_Params({
|
|
22
22
|
name: 'test',
|
|
23
23
|
port: 9393,
|
|
24
24
|
});
|
|
@@ -10,7 +10,7 @@ import { DynamoNTS_HttpResponseType } from '../../_enums/http/http-response-type
|
|
|
10
10
|
* endpoint,
|
|
11
11
|
* and other options as httpOptions
|
|
12
12
|
*/
|
|
13
|
-
export class
|
|
13
|
+
export class DynamoNTS_ApiCall_Params {
|
|
14
14
|
/**
|
|
15
15
|
* name the call to be able to identify it when debugging
|
|
16
16
|
*/
|
|
@@ -71,7 +71,7 @@ export class DynamoNTS_ApiCallParams {
|
|
|
71
71
|
/**
|
|
72
72
|
* this setting will pass any kind of http setting used by the axios http messaging package
|
|
73
73
|
*/
|
|
74
|
-
httpOptions?:
|
|
74
|
+
httpOptions?: DynamoNTS_HttpOptions,
|
|
75
75
|
}
|
|
76
76
|
) {
|
|
77
77
|
this.name = set.name;
|
|
@@ -97,7 +97,7 @@ export class DynamoNTS_ApiCallParams {
|
|
|
97
97
|
* learn more on axios package....
|
|
98
98
|
* TOD: link package documentations
|
|
99
99
|
*/
|
|
100
|
-
export class
|
|
100
|
+
export class DynamoNTS_HttpOptions {
|
|
101
101
|
responseType?: DynamoNTS_HttpResponseType;
|
|
102
102
|
headers?: {
|
|
103
103
|
[header: string]: string | string[];
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/**
|
|
3
3
|
* This will hold and set the basic settings of an application
|
|
4
4
|
*/
|
|
5
|
-
export class
|
|
5
|
+
export class DynamoNTS_App_Params {
|
|
6
6
|
/**
|
|
7
7
|
* name of the application
|
|
8
8
|
*/
|
|
@@ -33,7 +33,7 @@ export class DynamoNTS_AppParams {
|
|
|
33
33
|
systemName?: string;
|
|
34
34
|
|
|
35
35
|
constructor(
|
|
36
|
-
set:
|
|
36
|
+
set: DynamoNTS_App_Params
|
|
37
37
|
) {
|
|
38
38
|
this.name = set.name;
|
|
39
39
|
this.title = set.title ?? '';
|