@futdevpro/nts-dynamo 1.5.45 → 1.5.49

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 (67) hide show
  1. package/futdevpro-nts-dynamo-01.05.47.tgz +0 -0
  2. package/futdevpro-nts-dynamo-01.05.49.tgz +0 -0
  3. package/lib/_models/dynamo-nts-endpoint-params.js +1 -1
  4. package/lib/_models/dynamo-nts-endpoint-params.js.map +1 -1
  5. package/lib/_models/dynamo-nts-socket-dictionary.d.ts.map +1 -1
  6. package/lib/_models/dynamo-nts-socket-dictionary.js +5 -2
  7. package/lib/_models/dynamo-nts-socket-dictionary.js.map +1 -1
  8. package/lib/_modules/test/custom-data.service.d.ts +3 -3
  9. package/lib/_modules/test/custom-data.service.d.ts.map +1 -1
  10. package/lib/_modules/test/custom-data.service.js +4 -4
  11. package/lib/_modules/test/custom-data.service.js.map +1 -1
  12. package/lib/_modules/test/test-controller.js +6 -6
  13. package/lib/_modules/test/test-controller.js.map +1 -1
  14. package/lib/_modules/usage/usage-controller.js +1 -1
  15. package/lib/_modules/usage/usage-controller.js.map +1 -1
  16. package/lib/_modules/usage/usage.service.d.ts +6 -6
  17. package/lib/_modules/usage/usage.service.d.ts.map +1 -1
  18. package/lib/_modules/usage/usage.service.js +10 -6
  19. package/lib/_modules/usage/usage.service.js.map +1 -1
  20. package/lib/_services/dynamo-nts-api.service.d.ts.map +1 -1
  21. package/lib/_services/dynamo-nts-api.service.js +16 -6
  22. package/lib/_services/dynamo-nts-api.service.js.map +1 -1
  23. package/lib/_services/dynamo-nts-app.d.ts +1 -0
  24. package/lib/_services/dynamo-nts-app.d.ts.map +1 -1
  25. package/lib/_services/dynamo-nts-auth.service.d.ts.map +1 -1
  26. package/lib/_services/dynamo-nts-auth.service.js +8 -4
  27. package/lib/_services/dynamo-nts-auth.service.js.map +1 -1
  28. package/lib/_services/dynamo-nts-data.service.d.ts +2 -2
  29. package/lib/_services/dynamo-nts-data.service.d.ts.map +1 -1
  30. package/lib/_services/dynamo-nts-data.service.js +72 -43
  31. package/lib/_services/dynamo-nts-data.service.js.map +1 -1
  32. package/lib/_services/dynamo-nts-db.service.d.ts +4 -4
  33. package/lib/_services/dynamo-nts-db.service.d.ts.map +1 -1
  34. package/lib/_services/dynamo-nts-db.service.js +124 -84
  35. package/lib/_services/dynamo-nts-db.service.js.map +1 -1
  36. package/lib/_services/dynamo-nts-email.service.d.ts.map +1 -1
  37. package/lib/_services/dynamo-nts-email.service.js +20 -16
  38. package/lib/_services/dynamo-nts-email.service.js.map +1 -1
  39. package/lib/_services/dynamo-nts-global.service.d.ts +3 -3
  40. package/lib/_services/dynamo-nts-global.service.d.ts.map +1 -1
  41. package/lib/_services/dynamo-nts-global.service.js.map +1 -1
  42. package/lib/_services/dynamo-nts-routing-module.service.d.ts.map +1 -1
  43. package/lib/_services/dynamo-nts-routing-module.service.js +17 -11
  44. package/lib/_services/dynamo-nts-routing-module.service.js.map +1 -1
  45. package/lib/_services/dynamo-nts-socket.service.d.ts.map +1 -1
  46. package/lib/_services/dynamo-nts-socket.service.js +5 -1
  47. package/lib/_services/dynamo-nts-socket.service.js.map +1 -1
  48. package/lib/_services/dynamobe-data.service.d.ts +2 -2
  49. package/lib/_services/dynamobe-db.service.d.ts +4 -4
  50. package/lib/_services/dynamobe-db.service.js +4 -4
  51. package/lib/_services/dynamobe-global.service.d.ts +3 -3
  52. package/lib/tsconfig.tsbuildinfo +1 -5589
  53. package/package.json +13 -6
  54. package/src/_models/dynamo-nts-endpoint-params.ts +1 -1
  55. package/src/_models/dynamo-nts-socket-dictionary.ts +6 -3
  56. package/src/_modules/test/custom-data.service.ts +4 -4
  57. package/src/_modules/test/test-controller.ts +7 -7
  58. package/src/_modules/usage/usage-controller.ts +2 -2
  59. package/src/_modules/usage/usage.service.ts +26 -22
  60. package/src/_services/dynamo-nts-api.service.ts +22 -8
  61. package/src/_services/dynamo-nts-auth.service.ts +10 -6
  62. package/src/_services/dynamo-nts-data.service.ts +74 -45
  63. package/src/_services/dynamo-nts-db.service.ts +157 -87
  64. package/src/_services/dynamo-nts-email.service.ts +21 -17
  65. package/src/_services/dynamo-nts-global.service.ts +3 -3
  66. package/src/_services/dynamo-nts-routing-module.service.ts +16 -10
  67. package/src/_services/dynamo-nts-socket.service.ts +6 -2
@@ -1,6 +1,6 @@
1
1
 
2
2
  import { Router } from 'express';
3
- import { DynamoNTS_Error } from '@futdevpro/fsm-dynamo';
3
+ import { Dynamo_Error } from '@futdevpro/fsm-dynamo';
4
4
 
5
5
  import { dynamoNTS_GlobalSettings } from '../_constants/dynamo-nts-global-settings';
6
6
  import { DynamoNTS_RouteSecurity } from '../_enums/dynamo-nts-route-security.enum';
@@ -89,9 +89,11 @@ export class DynamoNTS_RoutingModule {
89
89
  this.mountSecureRoute(endpoint);
90
90
  }
91
91
  } catch (error) {
92
- throw new DynamoNTS_Error({
93
- message: `DYNAMOBEERROR: Failed to mount routes.`,
94
- userMessage: `We encountered an uncought BackEnd Build Error, please contact the responsible development team. \nerrorCode: 900-456-100`,
92
+ throw new Dynamo_Error({
93
+ errorCode: 'NTS-RM9-100',
94
+ addECToUserMsg: true,
95
+ message: `DYNAMO-NTS ERROR: Failed to mount routes.`,
96
+ userMessage: `We encountered an uncought BackEnd Build Error, please contact the responsible development team.`,
95
97
  error
96
98
  })
97
99
  }
@@ -125,9 +127,11 @@ export class DynamoNTS_RoutingModule {
125
127
  endpointParams.preProcessess, endpointParams.getTasksExecution());
126
128
  break;
127
129
  default:
128
- throw new DynamoNTS_Error({
129
- message: `DYNAMOBEERROR: INVALID route type: ${endpointParams.type} - ${endpointParams.name}` ,
130
- userMessage: `We encountered an uncought BackEnd Build Error, please contact the responsible development team. \nerrorCode: 900-456-200`,
130
+ throw new Dynamo_Error({
131
+ errorCode: 'NTS-RM9-200',
132
+ addECToUserMsg: true,
133
+ message: `DYNAMO-NTS ERROR: INVALID route type: ${endpointParams.type} - ${endpointParams.name}` ,
134
+ userMessage: `We encountered an uncought BackEnd Build Error, please contact the responsible development team.`,
131
135
  error: new Error()
132
136
  })
133
137
  }
@@ -160,9 +164,11 @@ export class DynamoNTS_RoutingModule {
160
164
  endpointParams.preProcessess, endpointParams.getTasksExecution());
161
165
  break;
162
166
  default:
163
- throw new DynamoNTS_Error({
164
- message: `DYNAMOBEERROR: INVALID route type: ${endpointParams.type} - ${endpointParams.name}`,
165
- userMessage: `We encountered an uncought BackEnd Build Error, please contact the responsible development team. \nerrorCode: 900-456-300`,
167
+ throw new Dynamo_Error({
168
+ errorCode: 'NTS-RM9-300',
169
+ addECToUserMsg: true,
170
+ message: `DYNAMO-NTS ERROR: INVALID route type: ${endpointParams.type} - ${endpointParams.name}`,
171
+ userMessage: `We encountered an uncought BackEnd Build Error, please contact the responsible development team.`,
166
172
  error: new Error()
167
173
  })
168
174
  }
@@ -7,7 +7,7 @@ import { DynamoNTS_SingletonService } from './dynamo-nts-singleton.service';
7
7
  import { DynamoNTS_SocketEventParams } from '../_models/dynamo-nts-socket-event-params';
8
8
  import { DynamoNTS_SocketEvent } from '../_enums/http/socket-event.enum';
9
9
  import { DynamoNTS_GlobalService } from './dynamo-nts-global.service';
10
- import { DynamoNTS_Error } from '@futdevpro/fsm-dynamo';
10
+ import { Dynamo_Error } from '@futdevpro/fsm-dynamo';
11
11
  import { DynamoNTS_SocketServiceParams } from '../_models/dynamo-nts-socket-service-params';
12
12
  import { DynamoNTS_SocketDictionary } from '../_models/dynamo-nts-socket-dictionary';
13
13
  import { DynamoNTS_SocketSecurity } from '../_enums/dynamo-nts-socket-security.enum';
@@ -168,7 +168,11 @@ export abstract class DynamoNTS_SocketService<T extends DynamoNTS_SocketDictiona
168
168
  dic.emitEvent(event, content);
169
169
  } else {
170
170
  if (error)
171
- throw new DynamoNTS_Error({ status: 404, message: `No active socket whit this specific ID: ${id}` });
171
+ throw new Dynamo_Error({
172
+ status: 404,
173
+ errorCode: 'NTS-S99-001',
174
+ message: `No active socket whit this specific ID: ${id}`
175
+ });
172
176
  }
173
177
  }
174
178