@futdevpro/nts-dynamo 1.5.86 → 1.5.89

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.
Files changed (123) hide show
  1. package/lib/_enums/dynamo-nts-data-model-type.enum.d.ts +13 -0
  2. package/lib/_enums/dynamo-nts-data-model-type.enum.d.ts.map +1 -0
  3. package/lib/_enums/dynamo-nts-data-model-type.enum.js +17 -0
  4. package/lib/_enums/dynamo-nts-data-model-type.enum.js.map +1 -0
  5. package/lib/_enums/dynamo-nts-predefined-data-types.enum.d.ts +27 -0
  6. package/lib/_enums/dynamo-nts-predefined-data-types.enum.d.ts.map +1 -0
  7. package/lib/_enums/dynamo-nts-predefined-data-types.enum.js +31 -0
  8. package/lib/_enums/dynamo-nts-predefined-data-types.enum.js.map +1 -0
  9. package/lib/_enums/http/dynamo-nts-http-call-type.enum.d.ts +12 -0
  10. package/lib/_enums/http/dynamo-nts-http-call-type.enum.d.ts.map +1 -0
  11. package/lib/_enums/http/dynamo-nts-http-call-type.enum.js +16 -0
  12. package/lib/_enums/http/dynamo-nts-http-call-type.enum.js.map +1 -0
  13. package/lib/_enums/http/dynamo-nts-http-response-type.enum.d.ts +7 -0
  14. package/lib/_enums/http/dynamo-nts-http-response-type.enum.d.ts.map +1 -0
  15. package/lib/_enums/http/dynamo-nts-http-response-type.enum.js +11 -0
  16. package/lib/_enums/http/dynamo-nts-http-response-type.enum.js.map +1 -0
  17. package/lib/_enums/http/dynamo-nts-socket-event.enum.d.ts +10 -0
  18. package/lib/_enums/http/dynamo-nts-socket-event.enum.d.ts.map +1 -0
  19. package/lib/_enums/http/dynamo-nts-socket-event.enum.js +14 -0
  20. package/lib/_enums/http/dynamo-nts-socket-event.enum.js.map +1 -0
  21. package/lib/_enums/index.d.ts +5 -5
  22. package/lib/_enums/index.d.ts.map +1 -1
  23. package/lib/_enums/index.js +5 -5
  24. package/lib/_enums/index.js.map +1 -1
  25. package/lib/_interfaces/dynamo-nts-certification-settings.interface.d.ts +7 -0
  26. package/lib/_interfaces/dynamo-nts-certification-settings.interface.d.ts.map +1 -0
  27. package/lib/_interfaces/dynamo-nts-certification-settings.interface.js +3 -0
  28. package/lib/_interfaces/dynamo-nts-certification-settings.interface.js.map +1 -0
  29. package/lib/_interfaces/dynamo-nts-global-service-settings.interface.d.ts +18 -0
  30. package/lib/_interfaces/dynamo-nts-global-service-settings.interface.d.ts.map +1 -0
  31. package/lib/_interfaces/dynamo-nts-global-service-settings.interface.js +3 -0
  32. package/lib/_interfaces/dynamo-nts-global-service-settings.interface.js.map +1 -0
  33. package/lib/_interfaces/dynamo-nts-port-settings.interface.d.ts +5 -0
  34. package/lib/_interfaces/dynamo-nts-port-settings.interface.d.ts.map +1 -0
  35. package/lib/_interfaces/dynamo-nts-port-settings.interface.js +3 -0
  36. package/lib/_interfaces/dynamo-nts-port-settings.interface.js.map +1 -0
  37. package/lib/_models/dynamo-nts-api-call-params.d.ts +6 -6
  38. package/lib/_models/dynamo-nts-api-call-params.d.ts.map +1 -1
  39. package/lib/_models/dynamo-nts-endpoint-params.d.ts +3 -3
  40. package/lib/_models/dynamo-nts-endpoint-params.d.ts.map +1 -1
  41. package/lib/_models/dynamo-nts-socket-event-params.d.ts +1 -1
  42. package/lib/_models/dynamo-nts-socket-event-params.d.ts.map +1 -1
  43. package/lib/_models/dynamo-nts-socket-event-params.js +2 -2
  44. package/lib/_models/dynamo-nts-socket-event-params.js.map +1 -1
  45. package/lib/_modules/api-service.index.d.ts +1 -1
  46. package/lib/_modules/api-service.index.d.ts.map +1 -1
  47. package/lib/_modules/api-service.index.js +1 -1
  48. package/lib/_modules/api-service.index.js.map +1 -1
  49. package/lib/_modules/app-extended.index.d.ts +3 -3
  50. package/lib/_modules/app-extended.index.d.ts.map +1 -1
  51. package/lib/_modules/app-extended.index.js +3 -3
  52. package/lib/_modules/app-extended.index.js.map +1 -1
  53. package/lib/_modules/app.index.d.ts +3 -3
  54. package/lib/_modules/app.index.d.ts.map +1 -1
  55. package/lib/_modules/app.index.js +3 -3
  56. package/lib/_modules/app.index.js.map +1 -1
  57. package/lib/_modules/controller.index.d.ts +1 -1
  58. package/lib/_modules/controller.index.d.ts.map +1 -1
  59. package/lib/_modules/controller.index.js +1 -1
  60. package/lib/_modules/controller.index.js.map +1 -1
  61. package/lib/_modules/custom-data/custom-data.controller.js +3 -3
  62. package/lib/_modules/custom-data/custom-data.controller.js.map +1 -1
  63. package/lib/_modules/test/test.controller.js +7 -7
  64. package/lib/_modules/test/test.controller.js.map +1 -1
  65. package/lib/_modules/usage/usage-controller.js +5 -5
  66. package/lib/_modules/usage/usage-controller.js.map +1 -1
  67. package/lib/_services/dynamo-nts-api.service.js +8 -8
  68. package/lib/_services/dynamo-nts-api.service.js.map +1 -1
  69. package/lib/_services/dynamo-nts-app.d.ts +8 -4
  70. package/lib/_services/dynamo-nts-app.d.ts.map +1 -1
  71. package/lib/_services/dynamo-nts-app.js +2 -2
  72. package/lib/_services/dynamo-nts-app.js.map +1 -1
  73. package/lib/_services/dynamo-nts-controller-service-collection.service.d.ts +8 -0
  74. package/lib/_services/dynamo-nts-controller-service-collection.service.d.ts.map +1 -0
  75. package/lib/_services/dynamo-nts-controller-service-collection.service.js +11 -0
  76. package/lib/_services/dynamo-nts-controller-service-collection.service.js.map +1 -0
  77. package/lib/_services/dynamo-nts-global.service.d.ts +1 -16
  78. package/lib/_services/dynamo-nts-global.service.d.ts.map +1 -1
  79. package/lib/_services/dynamo-nts-global.service.js +0 -52
  80. package/lib/_services/dynamo-nts-global.service.js.map +1 -1
  81. package/lib/_services/dynamo-nts-routing-module.service.js +11 -11
  82. package/lib/_services/dynamo-nts-routing-module.service.js.map +1 -1
  83. package/lib/_services/dynamo-nts-simple-service-collection.service.d.ts +8 -0
  84. package/lib/_services/dynamo-nts-simple-service-collection.service.d.ts.map +1 -0
  85. package/lib/_services/dynamo-nts-simple-service-collection.service.js +11 -0
  86. package/lib/_services/dynamo-nts-simple-service-collection.service.js.map +1 -0
  87. package/lib/_services/dynamo-nts-socket-service-collection.service.d.ts +1 -6
  88. package/lib/_services/dynamo-nts-socket-service-collection.service.d.ts.map +1 -1
  89. package/lib/_services/dynamo-nts-socket-service-collection.service.js +9 -8
  90. package/lib/_services/dynamo-nts-socket-service-collection.service.js.map +1 -1
  91. package/lib/_services/dynamo-nts-socket.service.d.ts +0 -1
  92. package/lib/_services/dynamo-nts-socket.service.d.ts.map +1 -1
  93. package/lib/_services/dynamo-nts-socket.service.js +16 -17
  94. package/lib/_services/dynamo-nts-socket.service.js.map +1 -1
  95. package/lib/tsconfig.tsbuildinfo +1 -1
  96. package/package.json +1 -1
  97. package/src/_enums/{data-model-type.enum.ts → dynamo-nts-data-model-type.enum.ts} +1 -1
  98. package/src/_enums/{predefined-data-types.enum.ts → dynamo-nts-predefined-data-types.enum.ts} +1 -1
  99. package/src/_enums/http/{http-call-type.enum.ts → dynamo-nts-http-call-type.enum.ts} +1 -1
  100. package/src/_enums/http/{http-response-type.enum.ts → dynamo-nts-http-response-type.enum.ts} +1 -1
  101. package/src/_enums/index.ts +5 -5
  102. package/src/_interfaces/dynamo-nts-global-service-settings.interface.ts +33 -0
  103. package/src/_models/dynamo-nts-api-call-params.ts +6 -6
  104. package/src/_models/dynamo-nts-endpoint-params.ts +3 -3
  105. package/src/_models/dynamo-nts-socket-event-params.ts +1 -1
  106. package/src/_modules/api-service.index.ts +1 -1
  107. package/src/_modules/app-extended.index.ts +3 -3
  108. package/src/_modules/app.index.ts +3 -3
  109. package/src/_modules/controller.index.ts +1 -1
  110. package/src/_modules/custom-data/custom-data.controller.ts +3 -3
  111. package/src/_modules/test/test.controller.ts +7 -7
  112. package/src/_modules/usage/usage-controller.ts +5 -5
  113. package/src/_services/dynamo-nts-api.service.ts +8 -8
  114. package/src/_services/dynamo-nts-app.ts +13 -4
  115. package/src/_services/dynamo-nts-controller-service-collection.service.ts +11 -0
  116. package/src/_services/dynamo-nts-global.service.ts +7 -11
  117. package/src/_services/dynamo-nts-routing-module.service.ts +11 -11
  118. package/src/_services/dynamo-nts-socket-service-collection.service.ts +2 -2
  119. package/src/_services/dynamo-nts-socket.service.ts +4 -4
  120. package/src/_interfaces/global-service-settings.interface.ts +0 -23
  121. /package/src/_enums/http/{socket-event.enum.ts → dynamo-nts-socket-event.enum.ts} +0 -0
  122. /package/src/_interfaces/{certification-settings.interface.ts → dynamo-nts-certification-settings.interface.ts} +0 -0
  123. /package/src/_interfaces/{port-settings.interface.ts → dynamo-nts-port-settings.interface.ts} +0 -0
@@ -0,0 +1,33 @@
1
+
2
+ import { Dynamo_DataParams } from '@futdevpro/fsm-dynamo';
3
+
4
+ import { DynamoNTS_AuthService } from '../_services/dynamo-nts-auth.service';
5
+ import { DynamoNTS_EmailServiceCollection } from '../_services/dynamo-nts-email-service-collection.service';
6
+
7
+ export interface DynamoNTS_GlobalServiceSettings {
8
+ /**
9
+ * You need to setup your Own Auth Service extending the DynamoNTS_AuthService class
10
+ */
11
+ authService?: DynamoNTS_AuthService,
12
+
13
+ /**
14
+ * You can setup your Own Email Service extending the DynamoNTS_EmailServiceCollection class
15
+ */
16
+ emailServiceCollection?: DynamoNTS_EmailServiceCollection,
17
+
18
+ /**
19
+ * you can setup data tables by passing a Dynamo_DataParams list at this point
20
+ */
21
+ dbModels?: Dynamo_DataParams[],
22
+
23
+ /**
24
+ * you can setup other services by passing a DynamoNTS_SingletonService list at this point
25
+ */
26
+ /* simpleServicesCollection?: DynamoNTS_SimpleServiceCollection, */
27
+
28
+ /**
29
+ * you can setup socket services by passing a DynamoNTS_SocketServiceCollection list at this point
30
+ */
31
+ /* socketServiceCollection?: DynamoNTS_SocketServiceCollection, */
32
+ }
33
+
@@ -1,7 +1,7 @@
1
1
 
2
2
  import { Dynamo_Log } from '@futdevpro/fsm-dynamo';
3
- import { HttpCallType } from "../_enums/http/http-call-type.enum";
4
- import { HttpResponseType } from "../_enums/http/http-response-type.enum";
3
+ import { DynamoNTS_HttpCallType } from "../_enums/http/dynamo-nts-http-call-type.enum";
4
+ import { DynamoNTS_HttpResponseType } from "../_enums/http/dynamo-nts-http-response-type.enum";
5
5
 
6
6
  /**
7
7
  * API call params,
@@ -18,7 +18,7 @@ export class DynamoNTS_ApiCallParams {
18
18
  /**
19
19
  * type of the call as; HttpCallType .get, .post, ...ect
20
20
  */
21
- type: HttpCallType;
21
+ type: DynamoNTS_HttpCallType;
22
22
  /**
23
23
  * the endpoint of the API, without the baseUrl:
24
24
  * '/user/get/:userId',
@@ -52,7 +52,7 @@ export class DynamoNTS_ApiCallParams {
52
52
  /**
53
53
  * set type as; HttpCallType .get, .post, ...ect
54
54
  */
55
- type: HttpCallType,
55
+ type: DynamoNTS_HttpCallType,
56
56
  /**
57
57
  * the endpoint of the API, without the baseUrl:
58
58
  * '/user/get/:userId',
@@ -97,7 +97,7 @@ export class DynamoNTS_ApiCallParams {
97
97
  * TOD: link package documentations
98
98
  */
99
99
  export class HttpOptions {
100
- responseType?: HttpResponseType;
100
+ responseType?: DynamoNTS_HttpResponseType;
101
101
  headers?: {
102
102
  [header: string]: string | string[];
103
103
  };
@@ -107,7 +107,7 @@ export class HttpOptions {
107
107
 
108
108
  constructor(
109
109
  set: {
110
- responseType?: HttpResponseType,
110
+ responseType?: DynamoNTS_HttpResponseType,
111
111
  headers?: {
112
112
  [header: string]: string | string[];
113
113
  },
@@ -2,7 +2,7 @@
2
2
 
3
3
  import { NextFunction, Request, Response } from 'express';
4
4
 
5
- import { HttpCallType } from '../_enums/http/http-call-type.enum';
5
+ import { DynamoNTS_HttpCallType } from '../_enums/http/dynamo-nts-http-call-type.enum';
6
6
  import { DynamoNTS_RouteSecurity } from '../_enums/dynamo-nts-route-security.enum';
7
7
  import { DynamoNTS_GlobalService } from '../_services/dynamo-nts-global.service';
8
8
  import { dynamoNTS_GlobalSettings } from '../_constants';
@@ -17,7 +17,7 @@ export class DynamoNTS_EndpointParams{
17
17
  name: string;
18
18
  security: DynamoNTS_RouteSecurity;
19
19
 
20
- type: HttpCallType;
20
+ type: DynamoNTS_HttpCallType;
21
21
  endpoint: string;
22
22
 
23
23
  pathParams: string[];
@@ -45,7 +45,7 @@ export class DynamoNTS_EndpointParams{
45
45
  /**
46
46
  * define basic Http Call Type such as; get, post, put, patch, delete
47
47
  */
48
- type: HttpCallType,
48
+ type: DynamoNTS_HttpCallType,
49
49
  /**
50
50
  * set endpoint here, without baseUrl and route module path
51
51
  *
@@ -1,7 +1,7 @@
1
1
 
2
2
 
3
3
  import { dynamoNTS_GlobalSettings } from '../_constants';
4
- import { DynamoNTS_SocketEvent } from '../_enums/http/socket-event.enum';
4
+ import { DynamoNTS_SocketEvent } from '../_enums/http/dynamo-nts-socket-event.enum';
5
5
  import { Dynamo_Log } from '@futdevpro/fsm-dynamo';
6
6
 
7
7
 
@@ -8,5 +8,5 @@ export * from '../_models/dynamo-nts-api-call-params';
8
8
  export * from '@futdevpro/fsm-dynamo/error-module';
9
9
 
10
10
  // ENUMS
11
- export * from '../_enums/http/http-call-type.enum';
11
+ export * from '../_enums/http/dynamo-nts-http-call-type.enum';
12
12
 
@@ -7,9 +7,9 @@ export * from '../_services/dynamo-nts-shared.service';
7
7
  export * from '../_services/dynamo-nts-socket.service';
8
8
 
9
9
  // INTERFACES
10
- export * from '../_interfaces/global-service-settings.interface';
11
- export * from '../_interfaces/port-settings.interface';
12
- export * from '../_interfaces/certification-settings.interface';
10
+ export * from '../_interfaces/dynamo-nts-global-service-settings.interface';
11
+ export * from '../_interfaces/dynamo-nts-port-settings.interface';
12
+ export * from '../_interfaces/dynamo-nts-certification-settings.interface';
13
13
 
14
14
  // MODELS
15
15
  export * from '../_models/dynamo-nts-app-params';
@@ -6,9 +6,9 @@ export * from '../_services/dynamo-nts-routing-module.service';
6
6
  export * from '../_services/dynamo-nts-shared.service';
7
7
 
8
8
  // INTERFACES
9
- export * from '../_interfaces/global-service-settings.interface';
10
- export * from '../_interfaces/port-settings.interface';
11
- export * from '../_interfaces/certification-settings.interface';
9
+ export * from '../_interfaces/dynamo-nts-global-service-settings.interface';
10
+ export * from '../_interfaces/dynamo-nts-port-settings.interface';
11
+ export * from '../_interfaces/dynamo-nts-certification-settings.interface';
12
12
 
13
13
  // MODELS
14
14
  export * from '../_models/dynamo-nts-app-params';
@@ -7,4 +7,4 @@ export * from '../_models/dynamo-nts-endpoint-params';
7
7
 
8
8
  // ENUMS
9
9
  export * from '../_enums/dynamo-nts-route-security.enum';
10
- export * from '../_enums/http/http-call-type.enum';
10
+ export * from '../_enums/http/dynamo-nts-http-call-type.enum';
@@ -2,7 +2,7 @@
2
2
 
3
3
  import { customDataModuleSettings } from '@futdevpro/fsm-dynamo';
4
4
  import { Request, Response } from 'express';
5
- import { HttpCallType } from '../../_enums/http/http-call-type.enum';
5
+ import { DynamoNTS_HttpCallType } from '../../_enums/http/dynamo-nts-http-call-type.enum';
6
6
  import { DynamoNTS_EndpointParams } from '../../_models/dynamo-nts-endpoint-params';
7
7
  import { DynamoNTS_Controller } from '../../_services/dynamo-nts-controller.service';
8
8
  import { Dynamo_CustomDataService } from '../custom-data/custom-data.service';
@@ -18,7 +18,7 @@ export class CustomDataController extends DynamoNTS_Controller {
18
18
  // CUSTOM DATA
19
19
  new DynamoNTS_EndpointParams({
20
20
  name: 'getCustomData',
21
- type: HttpCallType.get,
21
+ type: DynamoNTS_HttpCallType.get,
22
22
  endpoint: customDataModuleSettings.endPoints.getCustomData,
23
23
  tasks: [
24
24
  async (req: Request, res: Response) => {
@@ -38,7 +38,7 @@ export class CustomDataController extends DynamoNTS_Controller {
38
38
 
39
39
  new DynamoNTS_EndpointParams({
40
40
  name: 'modifyCustomData',
41
- type: HttpCallType.post,
41
+ type: DynamoNTS_HttpCallType.post,
42
42
  endpoint: customDataModuleSettings.endPoints.modifyCustomData,
43
43
  tasks: [
44
44
  async (req: Request, res: Response, issuer: string) => {
@@ -1,7 +1,7 @@
1
1
 
2
2
  import { Request, Response } from 'express';
3
3
  import { testModuleSettings } from '@futdevpro/fsm-dynamo/test-module';
4
- import { HttpCallType } from '../../_enums/http/http-call-type.enum';
4
+ import { DynamoNTS_HttpCallType } from '../../_enums/http/dynamo-nts-http-call-type.enum';
5
5
  import { DynamoNTS_EndpointParams } from '../../_models/dynamo-nts-endpoint-params';
6
6
  import { DynamoNTS_Controller } from '../../_services/dynamo-nts-controller.service';
7
7
  import { DynamoNTS_GlobalService } from '../app-extended.index';
@@ -17,7 +17,7 @@ export class TestController extends DynamoNTS_Controller {
17
17
  // TESTS
18
18
  new DynamoNTS_EndpointParams({
19
19
  name: 'testGet',
20
- type: HttpCallType.get,
20
+ type: DynamoNTS_HttpCallType.get,
21
21
  endpoint: testModuleSettings.endPoints.testGet,
22
22
  tasks: [
23
23
  async (req: Request, res: Response) => {
@@ -32,7 +32,7 @@ export class TestController extends DynamoNTS_Controller {
32
32
 
33
33
  new DynamoNTS_EndpointParams({
34
34
  name: 'testPost',
35
- type: HttpCallType.post,
35
+ type: DynamoNTS_HttpCallType.post,
36
36
  endpoint: testModuleSettings.endPoints.testPost,
37
37
  tasks: [
38
38
  async (req: Request, res: Response) => {
@@ -47,7 +47,7 @@ export class TestController extends DynamoNTS_Controller {
47
47
 
48
48
  new DynamoNTS_EndpointParams({
49
49
  name: 'testPut',
50
- type: HttpCallType.put,
50
+ type: DynamoNTS_HttpCallType.put,
51
51
  endpoint: testModuleSettings.endPoints.testPut,
52
52
  tasks: [
53
53
  async (req: Request, res: Response) => {
@@ -62,7 +62,7 @@ export class TestController extends DynamoNTS_Controller {
62
62
 
63
63
  new DynamoNTS_EndpointParams({
64
64
  name: 'testPatch',
65
- type: HttpCallType.patch,
65
+ type: DynamoNTS_HttpCallType.patch,
66
66
  endpoint: testModuleSettings.endPoints.testPatch,
67
67
  tasks: [
68
68
  async (req: Request, res: Response) => {
@@ -77,7 +77,7 @@ export class TestController extends DynamoNTS_Controller {
77
77
 
78
78
  new DynamoNTS_EndpointParams({
79
79
  name: 'testDelete',
80
- type: HttpCallType.delete,
80
+ type: DynamoNTS_HttpCallType.delete,
81
81
  endpoint: testModuleSettings.endPoints.testDelete,
82
82
  tasks: [
83
83
  async (req: Request, res: Response) => {
@@ -92,7 +92,7 @@ export class TestController extends DynamoNTS_Controller {
92
92
 
93
93
  new DynamoNTS_EndpointParams({
94
94
  name: 'getServerStatus',
95
- type: HttpCallType.get,
95
+ type: DynamoNTS_HttpCallType.get,
96
96
  endpoint: testModuleSettings.endPoints.getServerStatus,
97
97
  tasks: [
98
98
  async (req: Request, res: Response) => {
@@ -1,7 +1,7 @@
1
1
 
2
2
  import { Request, Response } from 'express';
3
3
  import { usageModuleSettings, Dynamo_UsageSession } from '@futdevpro/fsm-dynamo/usage-module';
4
- import { HttpCallType } from '../../_enums/http/http-call-type.enum';
4
+ import { DynamoNTS_HttpCallType } from '../../_enums/http/dynamo-nts-http-call-type.enum';
5
5
  import { DynamoNTS_EndpointParams } from '../../_models/dynamo-nts-endpoint-params';
6
6
  import { DynamoNTS_AuthService } from '../../_services/dynamo-nts-auth.service';
7
7
  import { DynamoNTS_Controller } from '../../_services/dynamo-nts-controller.service';
@@ -23,7 +23,7 @@ export class UsageController extends DynamoNTS_Controller {
23
23
  this.endpoints = [
24
24
  new DynamoNTS_EndpointParams({
25
25
  name: 'newSession',
26
- type: HttpCallType.get,
26
+ type: DynamoNTS_HttpCallType.get,
27
27
  endpoint: usageModuleSettings.endPoints.newSession,
28
28
  tasks: [
29
29
  async (req: Request, res: Response, issuer: string) => {
@@ -49,7 +49,7 @@ export class UsageController extends DynamoNTS_Controller {
49
49
 
50
50
  new DynamoNTS_EndpointParams({
51
51
  name: 'updateUsage',
52
- type: HttpCallType.post,
52
+ type: DynamoNTS_HttpCallType.post,
53
53
  endpoint: usageModuleSettings.endPoints.updateUsage,
54
54
  logRequestsContent: false,
55
55
  tasks: [
@@ -71,7 +71,7 @@ export class UsageController extends DynamoNTS_Controller {
71
71
 
72
72
  new DynamoNTS_EndpointParams({
73
73
  name: 'closeSession',
74
- type: HttpCallType.get,
74
+ type: DynamoNTS_HttpCallType.get,
75
75
  endpoint: usageModuleSettings.endPoints.closeSession,
76
76
  preProcessess: [ this.authService.authTokenPermAccUsageData ],
77
77
  tasks: [
@@ -92,7 +92,7 @@ export class UsageController extends DynamoNTS_Controller {
92
92
 
93
93
  new DynamoNTS_EndpointParams({
94
94
  name: 'getAllUsageData',
95
- type: HttpCallType.get,
95
+ type: DynamoNTS_HttpCallType.get,
96
96
  endpoint: usageModuleSettings.endPoints.getAllUsageData,
97
97
  preProcessess: [ this.authService.authTokenPermAccUsageData ],
98
98
  tasks: [
@@ -2,8 +2,8 @@
2
2
  import * as Axios from 'axios';
3
3
  import { Dynamo_Error, Dynamo_Log } from '@futdevpro/fsm-dynamo';
4
4
 
5
- import { HttpCallType } from '../_enums/http/http-call-type.enum';
6
- import { HttpResponseType } from '../_enums/http/http-response-type.enum';
5
+ import { DynamoNTS_HttpCallType } from '../_enums/http/dynamo-nts-http-call-type.enum';
6
+ import { DynamoNTS_HttpResponseType } from '../_enums/http/dynamo-nts-http-response-type.enum';
7
7
  import { DynamoNTS_ApiCallParams } from '../_models/dynamo-nts-api-call-params';
8
8
 
9
9
  /**
@@ -101,7 +101,7 @@ export class DynamoNTS_ApiService {
101
101
  } */
102
102
 
103
103
  switch (callParams.type) {
104
- case HttpCallType.get:
104
+ case DynamoNTS_HttpCallType.get:
105
105
  if (inputParams?.body) {
106
106
  console.log('WARNING you cant send body in get calls');
107
107
  }
@@ -114,7 +114,7 @@ export class DynamoNTS_ApiService {
114
114
  console.log(`${callParams.name} was successful`, res.data);
115
115
  });
116
116
  break;
117
- case HttpCallType.delete:
117
+ case DynamoNTS_HttpCallType.delete:
118
118
  if (inputParams?.body) {
119
119
  console.log('WARNING you cant send body in delete calls');
120
120
  }
@@ -125,9 +125,9 @@ export class DynamoNTS_ApiService {
125
125
  console.log(`${callParams.name} was successful`, res.data);
126
126
  });
127
127
  break;
128
- case HttpCallType.post:
129
- case HttpCallType.put:
130
- case HttpCallType.patch:
128
+ case DynamoNTS_HttpCallType.post:
129
+ case DynamoNTS_HttpCallType.put:
130
+ case DynamoNTS_HttpCallType.patch:
131
131
  if (!inputParams?.body) {
132
132
  if (!inputParams) {
133
133
  inputParams = {};
@@ -157,7 +157,7 @@ export class DynamoNTS_ApiService {
157
157
  Dynamo_Log.error(`\nAPI ERROR: ${callParams?.name} failed...` +
158
158
  `\n${callParams?.baseUrl}${callParams?.endPoint}\n`, callParams);
159
159
 
160
- if (callParams?.httpOptions?.responseType === HttpResponseType.text) {
160
+ if (callParams?.httpOptions?.responseType === DynamoNTS_HttpResponseType.text) {
161
161
  error.error = JSON.parse(error.error);
162
162
  }
163
163
 
@@ -13,9 +13,9 @@ import { DynamoNTS_RouteSecurity } from '../_enums/dynamo-nts-route-security.enu
13
13
  import { DynamoNTS_RoutingModule } from './dynamo-nts-routing-module.service';
14
14
  import { DynamoNTS_EndpointParams } from '../_models/dynamo-nts-endpoint-params';
15
15
  import { DynamoNTS_GlobalService } from './dynamo-nts-global.service';
16
- import { DynamoNTS_PortSettings } from '../_interfaces/port-settings.interface';
17
- import { DynamoNTS_CertificationSettings } from '../_interfaces/certification-settings.interface';
18
- import { DynamoNTS_GlobalServiceSettings } from '../_interfaces/global-service-settings.interface';
16
+ import { DynamoNTS_PortSettings } from '../_interfaces/dynamo-nts-port-settings.interface';
17
+ import { DynamoNTS_CertificationSettings } from '../_interfaces/dynamo-nts-certification-settings.interface';
18
+ import { DynamoNTS_GlobalServiceSettings } from '../_interfaces/dynamo-nts-global-service-settings.interface';
19
19
  import { dynamoNTS_GlobalSettings } from '../_constants/dynamo-nts-global-settings';
20
20
 
21
21
  /**
@@ -149,7 +149,9 @@ export abstract class DynamoNTS_App extends DynamoNTS_SingletonService {
149
149
  protected httpsServer: Https.Server;
150
150
 
151
151
  private _routingModules: DynamoNTS_RoutingModule[];
152
- protected get routingModules(): DynamoNTS_RoutingModule[] { return this._routingModules; }
152
+ /* protected get routingModules(): DynamoNTS_RoutingModule[] { return this._routingModules; } */
153
+
154
+ private _rootServices: DynamoNTS_SingletonService[];
153
155
 
154
156
  /**
155
157
  * setting this value to true, enables this service debug logs
@@ -208,6 +210,8 @@ export abstract class DynamoNTS_App extends DynamoNTS_SingletonService {
208
210
  console.log(`\nRoutes mounted.... server using security: ${this._security}`);
209
211
  }
210
212
  }
213
+
214
+ this._rootServices = this.getRootServices() ?? [];
211
215
 
212
216
  if (this.postProcess) {
213
217
  this.postProcess();
@@ -525,6 +529,11 @@ export abstract class DynamoNTS_App extends DynamoNTS_SingletonService {
525
529
  * }
526
530
  */
527
531
  abstract getRoutingModules(): DynamoNTS_RoutingModule[];
532
+
533
+ /**
534
+ * MISSING Description (TODO)
535
+ */
536
+ getRootServices?(): DynamoNTS_SingletonService[];
528
537
 
529
538
  /**
530
539
  * MISSING Description (TODO)
@@ -0,0 +1,11 @@
1
+
2
+ import { DynamoNTS_SingletonService } from './dynamo-nts-singleton.service';
3
+
4
+ /**
5
+ *
6
+ */
7
+ export class DynamoNTS_SimpleServiceCollection extends DynamoNTS_SingletonService {
8
+
9
+ [service: string]: DynamoNTS_SingletonService;
10
+
11
+ }
@@ -2,7 +2,7 @@
2
2
 
3
3
  import { Dynamo_Metadata, Dynamo_DataParams, Dynamo_Log } from '@futdevpro/fsm-dynamo';
4
4
 
5
- import { DynamoNTS_GlobalServiceSettings } from '../_interfaces/global-service-settings.interface';
5
+ import { DynamoNTS_GlobalServiceSettings } from '../_interfaces/dynamo-nts-global-service-settings.interface';
6
6
  import { DynamoNTS_AppParams } from '../_models/dynamo-nts-app-params';
7
7
 
8
8
  import { DynamoNTS_AuthService } from './dynamo-nts-auth.service';
@@ -10,8 +10,6 @@ import { DynamoNTS_DBServiceCollection } from './dynamo-nts-db-service-collectio
10
10
  import { DynamoNTS_DBService } from './dynamo-nts-db.service';
11
11
  import { DynamoNTS_EmailServiceCollection } from './dynamo-nts-email-service-collection.service';
12
12
  import { DynamoNTS_SingletonService } from './dynamo-nts-singleton.service';
13
- import { DynamoNTS_SocketServiceCollection } from './dynamo-nts-socket-service-collection.service';
14
- import { DynamoNTS_SocketService } from './dynamo-nts-socket.service';
15
13
 
16
14
  /**
17
15
  * This is the main Global/Core Service Collection used by DynamoBE,
@@ -34,8 +32,6 @@ export class DynamoNTS_GlobalService extends DynamoNTS_SingletonService {
34
32
  authService: DynamoNTS_AuthService;
35
33
  dbServiceCollection: DynamoNTS_DBServiceCollection;
36
34
  emailServiceCollection: DynamoNTS_EmailServiceCollection;
37
-
38
- socketServiceCollection: DynamoNTS_SocketServiceCollection = DynamoNTS_SocketServiceCollection.getInstance();
39
35
 
40
36
  /**
41
37
  * You need to setup global Services through this function
@@ -143,7 +139,7 @@ export class DynamoNTS_GlobalService extends DynamoNTS_SingletonService {
143
139
  *
144
140
  * @returns
145
141
  */
146
- static getSocketServiceCollection(): DynamoNTS_SocketServiceCollection {
142
+ /* static getSocketServiceCollection(): DynamoNTS_SocketServiceCollection {
147
143
  if (!this.instance?.socketServiceCollection) {
148
144
  throw new Error(
149
145
  `\nUnique Socket Service Collection missing!` +
@@ -153,15 +149,15 @@ export class DynamoNTS_GlobalService extends DynamoNTS_SingletonService {
153
149
  }
154
150
 
155
151
  return this.instance.socketServiceCollection;
156
- }
152
+ } */
157
153
 
158
154
  /**
159
155
  *
160
156
  * @param name
161
157
  * @returns
162
158
  */
163
- static getSocketServiceByName(name: string): DynamoNTS_SocketService<any> {
164
- const collection = this.getSocketServiceCollection();
159
+ /* static getSocketServiceByName(name: string): DynamoNTS_SocketService<any> {
160
+ const collection: DynamoNTS_SocketServiceCollection = this.getSocketServiceCollection();
165
161
  if (collection[name]) {
166
162
  return collection[name];
167
163
  } else {
@@ -177,7 +173,7 @@ export class DynamoNTS_GlobalService extends DynamoNTS_SingletonService {
177
173
  }
178
174
 
179
175
  static attachNewSocketService(service: DynamoNTS_SocketService<any>): void {
180
- const collection = this.getSocketServiceCollection();
176
+ const collection: DynamoNTS_SocketServiceCollection = this.getSocketServiceCollection();
181
177
  if (!collection[service.name]) {
182
178
  collection[service.name] = service;
183
179
  } else {
@@ -190,5 +186,5 @@ export class DynamoNTS_GlobalService extends DynamoNTS_SingletonService {
190
186
  The available socketServices on collection:
191
187
  ${names}\n`);
192
188
  }
193
- }
189
+ } */
194
190
  }
@@ -5,7 +5,7 @@ import { Dynamo_Error, Dynamo_Log } from '@futdevpro/fsm-dynamo';
5
5
 
6
6
  import { dynamoNTS_GlobalSettings } from '../_constants/dynamo-nts-global-settings';
7
7
  import { DynamoNTS_RouteSecurity } from '../_enums/dynamo-nts-route-security.enum';
8
- import { HttpCallType } from '../_enums/http/http-call-type.enum';
8
+ import { DynamoNTS_HttpCallType } from '../_enums/http/dynamo-nts-http-call-type.enum';
9
9
  import { DynamoNTS_EndpointParams } from '../_models/dynamo-nts-endpoint-params';
10
10
  import { DynamoNTS_Controller } from './dynamo-nts-controller.service';
11
11
  import { DynamoNTS_RoutingModuleSettings } from '../_models/dynamo-nts-routing-module-settings';
@@ -149,23 +149,23 @@ export class DynamoNTS_RoutingModule {
149
149
  */
150
150
  private mountOpenRoute(endpointParams: DynamoNTS_EndpointParams): void {
151
151
  switch(endpointParams.type) {
152
- case HttpCallType.get:
152
+ case DynamoNTS_HttpCallType.get:
153
153
  this.openRouter.get(endpointParams.endpoint,
154
154
  endpointParams.preProcessess, endpointParams.getTasksExecution());
155
155
  break;
156
- case HttpCallType.post:
156
+ case DynamoNTS_HttpCallType.post:
157
157
  this.openRouter.post(endpointParams.endpoint,
158
158
  endpointParams.preProcessess, endpointParams.getTasksExecution());
159
159
  break;
160
- case HttpCallType.put:
160
+ case DynamoNTS_HttpCallType.put:
161
161
  this.openRouter.put(endpointParams.endpoint,
162
162
  endpointParams.preProcessess, endpointParams.getTasksExecution());
163
163
  break;
164
- case HttpCallType.patch:
164
+ case DynamoNTS_HttpCallType.patch:
165
165
  this.openRouter.patch(endpointParams.endpoint,
166
166
  endpointParams.preProcessess, endpointParams.getTasksExecution());
167
167
  break;
168
- case HttpCallType.delete:
168
+ case DynamoNTS_HttpCallType.delete:
169
169
  this.openRouter.delete(endpointParams.endpoint,
170
170
  endpointParams.preProcessess, endpointParams.getTasksExecution());
171
171
  break;
@@ -186,23 +186,23 @@ export class DynamoNTS_RoutingModule {
186
186
  */
187
187
  private mountSecureRoute(endpointParams: DynamoNTS_EndpointParams): void {
188
188
  switch(endpointParams.type) {
189
- case HttpCallType.get:
189
+ case DynamoNTS_HttpCallType.get:
190
190
  this.secureRouter.get(endpointParams.endpoint,
191
191
  endpointParams.preProcessess, endpointParams.getTasksExecution());
192
192
  break;
193
- case HttpCallType.post:
193
+ case DynamoNTS_HttpCallType.post:
194
194
  this.secureRouter.post(endpointParams.endpoint,
195
195
  endpointParams.preProcessess, endpointParams.getTasksExecution());
196
196
  break;
197
- case HttpCallType.put:
197
+ case DynamoNTS_HttpCallType.put:
198
198
  this.secureRouter.put(endpointParams.endpoint,
199
199
  endpointParams.preProcessess, endpointParams.getTasksExecution());
200
200
  break;
201
- case HttpCallType.patch:
201
+ case DynamoNTS_HttpCallType.patch:
202
202
  this.secureRouter.patch(endpointParams.endpoint,
203
203
  endpointParams.preProcessess, endpointParams.getTasksExecution());
204
204
  break;
205
- case HttpCallType.delete:
205
+ case DynamoNTS_HttpCallType.delete:
206
206
  this.secureRouter.delete(endpointParams.endpoint,
207
207
  endpointParams.preProcessess, endpointParams.getTasksExecution());
208
208
  break;
@@ -5,7 +5,7 @@ import { DynamoNTS_SocketService } from './dynamo-nts-socket.service';
5
5
  /**
6
6
  *
7
7
  */
8
- export class DynamoNTS_SocketServiceCollection extends DynamoNTS_SingletonService {
8
+ /* export class DynamoNTS_SocketServiceCollection extends DynamoNTS_SingletonService {
9
9
 
10
10
  static getInstance(): DynamoNTS_SocketServiceCollection {
11
11
  return DynamoNTS_SocketServiceCollection.getSingletonInstance();
@@ -13,4 +13,4 @@ export class DynamoNTS_SocketServiceCollection extends DynamoNTS_SingletonServic
13
13
 
14
14
  [service: string]: DynamoNTS_SocketService<any>;
15
15
 
16
- }
16
+ } */
@@ -7,7 +7,7 @@ import { DynamoNTS_GlobalService } from './dynamo-nts-global.service';
7
7
  import { DynamoNTS_SingletonService } from './dynamo-nts-singleton.service';
8
8
  import { dynamoNTS_GlobalSettings } from '../_constants/dynamo-nts-global-settings';
9
9
  import { DynamoNTS_SocketEventParams, DynamoNTS_SocketEventPreprocessTask, DynamoNTS_SocketEventTask } from '../_models/dynamo-nts-socket-event-params';
10
- import { DynamoNTS_SocketEvent } from '../_enums/http/socket-event.enum';
10
+ import { DynamoNTS_SocketEvent } from '../_enums/http/dynamo-nts-socket-event.enum';
11
11
  import { DynamoNTS_SocketServiceParams } from '../_models/dynamo-nts-socket-service-params';
12
12
  import { DynamoNTS_SocketPresence } from '../_models/dynamo-nts-socket-presence';
13
13
  import { DynamoNTS_SocketSecurity } from '../_enums/dynamo-nts-socket-security.enum';
@@ -46,7 +46,7 @@ export abstract class DynamoNTS_SocketService<T_Presence extends DynamoNTS_Socke
46
46
  this.params = this.getServiceParams();
47
47
  this.incomingEvents = this.getIncomingEvents() ?? [];
48
48
 
49
- this.attachToGlobalCollection();
49
+ /* this.attachToGlobalCollection(); */
50
50
  this.prepareEvents();
51
51
 
52
52
  if (this.log) console.log(`Socket Controller setup done: ${this.params.name} (${this.params.port}) serurity: ${this.params.security}\n`);
@@ -55,9 +55,9 @@ export abstract class DynamoNTS_SocketService<T_Presence extends DynamoNTS_Socke
55
55
  }
56
56
  }
57
57
 
58
- private attachToGlobalCollection(): void {
58
+ /* private attachToGlobalCollection(): void {
59
59
  DynamoNTS_GlobalService.attachNewSocketService(this);
60
- }
60
+ } */
61
61
 
62
62
  /**
63
63
  * You must setup events and required services for this function
@@ -1,23 +0,0 @@
1
-
2
- import { Dynamo_DataParams } from '@futdevpro/fsm-dynamo';
3
-
4
- import { DynamoNTS_AuthService } from '../_services/dynamo-nts-auth.service';
5
- import { DynamoNTS_EmailServiceCollection } from '../_services/dynamo-nts-email-service-collection.service';
6
-
7
- export interface DynamoNTS_GlobalServiceSettings {
8
- /**
9
- * You need to setup your Own Auth Service extending the DynamoBEAuthService class
10
- */
11
- authService?: DynamoNTS_AuthService,
12
-
13
- /**
14
- * You can setup your Own Email Service extending the DynamoBEEmailServiceCollection class
15
- */
16
- emailServiceCollection?: DynamoNTS_EmailServiceCollection,
17
-
18
- /**
19
- * you can setup data tables by passing a DynamoBEDataParams list at this point
20
- */
21
- dbModels: Dynamo_DataParams[],
22
- }
23
-