@futdevpro/nts-dynamo 1.5.86 → 1.5.88

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 (110) 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 +28 -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 +3 -3
  70. package/lib/_services/dynamo-nts-app.d.ts.map +1 -1
  71. package/lib/_services/dynamo-nts-global.service.d.ts +3 -1
  72. package/lib/_services/dynamo-nts-global.service.d.ts.map +1 -1
  73. package/lib/_services/dynamo-nts-global.service.js +2 -5
  74. package/lib/_services/dynamo-nts-global.service.js.map +1 -1
  75. package/lib/_services/dynamo-nts-routing-module.service.js +11 -11
  76. package/lib/_services/dynamo-nts-routing-module.service.js.map +1 -1
  77. package/lib/_services/dynamo-nts-simple-service-collection.service.d.ts +8 -0
  78. package/lib/_services/dynamo-nts-simple-service-collection.service.d.ts.map +1 -0
  79. package/lib/_services/dynamo-nts-simple-service-collection.service.js +11 -0
  80. package/lib/_services/dynamo-nts-simple-service-collection.service.js.map +1 -0
  81. package/lib/_services/dynamo-nts-socket.service.js +12 -12
  82. package/lib/_services/dynamo-nts-socket.service.js.map +1 -1
  83. package/lib/tsconfig.tsbuildinfo +1 -1
  84. package/package.json +1 -1
  85. package/src/_enums/{data-model-type.enum.ts → dynamo-nts-data-model-type.enum.ts} +1 -1
  86. package/src/_enums/{predefined-data-types.enum.ts → dynamo-nts-predefined-data-types.enum.ts} +1 -1
  87. package/src/_enums/http/{http-call-type.enum.ts → dynamo-nts-http-call-type.enum.ts} +1 -1
  88. package/src/_enums/http/{http-response-type.enum.ts → dynamo-nts-http-response-type.enum.ts} +1 -1
  89. package/src/_enums/index.ts +5 -5
  90. package/src/_interfaces/dynamo-nts-global-service-settings.interface.ts +35 -0
  91. package/src/_models/dynamo-nts-api-call-params.ts +6 -6
  92. package/src/_models/dynamo-nts-endpoint-params.ts +3 -3
  93. package/src/_models/dynamo-nts-socket-event-params.ts +1 -1
  94. package/src/_modules/api-service.index.ts +1 -1
  95. package/src/_modules/app-extended.index.ts +3 -3
  96. package/src/_modules/app.index.ts +3 -3
  97. package/src/_modules/controller.index.ts +1 -1
  98. package/src/_modules/custom-data/custom-data.controller.ts +3 -3
  99. package/src/_modules/test/test.controller.ts +7 -7
  100. package/src/_modules/usage/usage-controller.ts +5 -5
  101. package/src/_services/dynamo-nts-api.service.ts +8 -8
  102. package/src/_services/dynamo-nts-app.ts +3 -3
  103. package/src/_services/dynamo-nts-global.service.ts +6 -3
  104. package/src/_services/dynamo-nts-routing-module.service.ts +11 -11
  105. package/src/_services/dynamo-nts-simple-service-collection.service.ts +11 -0
  106. package/src/_services/dynamo-nts-socket.service.ts +1 -1
  107. package/src/_interfaces/global-service-settings.interface.ts +0 -23
  108. /package/src/_enums/http/{socket-event.enum.ts → dynamo-nts-socket-event.enum.ts} +0 -0
  109. /package/src/_interfaces/{certification-settings.interface.ts → dynamo-nts-certification-settings.interface.ts} +0 -0
  110. /package/src/_interfaces/{port-settings.interface.ts → dynamo-nts-port-settings.interface.ts} +0 -0
@@ -0,0 +1,35 @@
1
+
2
+ import { Dynamo_DataParams } from '@futdevpro/fsm-dynamo';
3
+ import { DynamoNTS_SocketServiceCollection } from '../_services';
4
+
5
+ import { DynamoNTS_AuthService } from '../_services/dynamo-nts-auth.service';
6
+ import { DynamoNTS_EmailServiceCollection } from '../_services/dynamo-nts-email-service-collection.service';
7
+ import { DynamoNTS_SimpleServiceCollection } from '../_services/dynamo-nts-simple-service-collection.service';
8
+
9
+ export interface DynamoNTS_GlobalServiceSettings {
10
+ /**
11
+ * You need to setup your Own Auth Service extending the DynamoNTS_AuthService class
12
+ */
13
+ authService?: DynamoNTS_AuthService,
14
+
15
+ /**
16
+ * You can setup your Own Email Service extending the DynamoNTS_EmailServiceCollection class
17
+ */
18
+ emailServiceCollection?: DynamoNTS_EmailServiceCollection,
19
+
20
+ /**
21
+ * you can setup data tables by passing a Dynamo_DataParams list at this point
22
+ */
23
+ dbModels?: Dynamo_DataParams[],
24
+
25
+ /**
26
+ * you can setup other services by passing a DynamoNTS_SingletonService list at this point
27
+ */
28
+ simpleServicesCollection?: DynamoNTS_SimpleServiceCollection,
29
+
30
+ /**
31
+ * you can setup socket services by passing a DynamoNTS_SocketServiceCollection list at this point
32
+ */
33
+ socketServiceCollection?: DynamoNTS_SocketServiceCollection,
34
+ }
35
+
@@ -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
  /**
@@ -2,13 +2,14 @@
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';
9
9
  import { DynamoNTS_DBServiceCollection } from './dynamo-nts-db-service-collection.service';
10
10
  import { DynamoNTS_DBService } from './dynamo-nts-db.service';
11
11
  import { DynamoNTS_EmailServiceCollection } from './dynamo-nts-email-service-collection.service';
12
+ import { DynamoNTS_SimpleServiceCollection } from './dynamo-nts-simple-service-collection.service';
12
13
  import { DynamoNTS_SingletonService } from './dynamo-nts-singleton.service';
13
14
  import { DynamoNTS_SocketServiceCollection } from './dynamo-nts-socket-service-collection.service';
14
15
  import { DynamoNTS_SocketService } from './dynamo-nts-socket.service';
@@ -34,8 +35,8 @@ export class DynamoNTS_GlobalService extends DynamoNTS_SingletonService {
34
35
  authService: DynamoNTS_AuthService;
35
36
  dbServiceCollection: DynamoNTS_DBServiceCollection;
36
37
  emailServiceCollection: DynamoNTS_EmailServiceCollection;
37
-
38
- socketServiceCollection: DynamoNTS_SocketServiceCollection = DynamoNTS_SocketServiceCollection.getInstance();
38
+ socketServiceCollection: DynamoNTS_SocketServiceCollection;
39
+ simpleServicesCollection: DynamoNTS_SimpleServiceCollection;
39
40
 
40
41
  /**
41
42
  * You need to setup global Services through this function
@@ -55,6 +56,8 @@ export class DynamoNTS_GlobalService extends DynamoNTS_SingletonService {
55
56
 
56
57
  this.instance.authService = set.authService;
57
58
  this.instance.emailServiceCollection = set.emailServiceCollection;
59
+ this.instance.socketServiceCollection = set.socketServiceCollection;
60
+ this.instance.simpleServicesCollection = set.simpleServicesCollection;
58
61
  } catch (error) {
59
62
  Dynamo_Log.error('\nsetServices failed on DBE_Global_S.\n', error);
60
63
  }
@@ -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;
@@ -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
+ }
@@ -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';
@@ -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
-