@futdevpro/nts-dynamo 1.5.45 → 1.5.47
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/_models/dynamo-nts-endpoint-params.js +1 -1
- package/lib/_models/dynamo-nts-endpoint-params.js.map +1 -1
- package/lib/_models/dynamo-nts-socket-dictionary.d.ts.map +1 -1
- package/lib/_models/dynamo-nts-socket-dictionary.js +5 -2
- package/lib/_models/dynamo-nts-socket-dictionary.js.map +1 -1
- package/lib/_modules/test/custom-data.service.d.ts +3 -3
- package/lib/_modules/test/custom-data.service.d.ts.map +1 -1
- package/lib/_modules/test/custom-data.service.js +4 -4
- package/lib/_modules/test/custom-data.service.js.map +1 -1
- package/lib/_modules/test/test-controller.js +6 -6
- package/lib/_modules/test/test-controller.js.map +1 -1
- package/lib/_modules/usage/usage-controller.js +1 -1
- package/lib/_modules/usage/usage-controller.js.map +1 -1
- package/lib/_modules/usage/usage.service.d.ts +6 -6
- package/lib/_modules/usage/usage.service.d.ts.map +1 -1
- package/lib/_modules/usage/usage.service.js +10 -6
- package/lib/_modules/usage/usage.service.js.map +1 -1
- package/lib/_services/dynamo-nts-api.service.d.ts.map +1 -1
- package/lib/_services/dynamo-nts-api.service.js +16 -6
- package/lib/_services/dynamo-nts-api.service.js.map +1 -1
- package/lib/_services/dynamo-nts-app.d.ts +1 -0
- package/lib/_services/dynamo-nts-app.d.ts.map +1 -1
- package/lib/_services/dynamo-nts-auth.service.d.ts.map +1 -1
- package/lib/_services/dynamo-nts-auth.service.js +8 -4
- package/lib/_services/dynamo-nts-auth.service.js.map +1 -1
- package/lib/_services/dynamo-nts-data.service.d.ts +2 -2
- package/lib/_services/dynamo-nts-data.service.d.ts.map +1 -1
- package/lib/_services/dynamo-nts-data.service.js +72 -43
- package/lib/_services/dynamo-nts-data.service.js.map +1 -1
- package/lib/_services/dynamo-nts-db.service.d.ts +4 -4
- package/lib/_services/dynamo-nts-db.service.d.ts.map +1 -1
- package/lib/_services/dynamo-nts-db.service.js +124 -84
- package/lib/_services/dynamo-nts-db.service.js.map +1 -1
- package/lib/_services/dynamo-nts-email.service.d.ts.map +1 -1
- package/lib/_services/dynamo-nts-email.service.js +20 -16
- package/lib/_services/dynamo-nts-email.service.js.map +1 -1
- package/lib/_services/dynamo-nts-global.service.d.ts +3 -3
- package/lib/_services/dynamo-nts-global.service.d.ts.map +1 -1
- package/lib/_services/dynamo-nts-global.service.js.map +1 -1
- package/lib/_services/dynamo-nts-routing-module.service.d.ts.map +1 -1
- package/lib/_services/dynamo-nts-routing-module.service.js +17 -11
- package/lib/_services/dynamo-nts-routing-module.service.js.map +1 -1
- package/lib/_services/dynamo-nts-socket.service.d.ts.map +1 -1
- package/lib/_services/dynamo-nts-socket.service.js +5 -1
- package/lib/_services/dynamo-nts-socket.service.js.map +1 -1
- package/lib/_services/dynamobe-data.service.d.ts +2 -2
- package/lib/_services/dynamobe-db.service.d.ts +4 -4
- package/lib/_services/dynamobe-db.service.js +4 -4
- package/lib/_services/dynamobe-global.service.d.ts +3 -3
- package/lib/tsconfig.tsbuildinfo +1 -5589
- package/package.json +13 -6
- package/src/_models/dynamo-nts-endpoint-params.ts +1 -1
- package/src/_models/dynamo-nts-socket-dictionary.ts +6 -3
- package/src/_modules/test/custom-data.service.ts +4 -4
- package/src/_modules/test/test-controller.ts +7 -7
- package/src/_modules/usage/usage-controller.ts +2 -2
- package/src/_modules/usage/usage.service.ts +26 -22
- package/src/_services/dynamo-nts-api.service.ts +22 -8
- package/src/_services/dynamo-nts-auth.service.ts +10 -6
- package/src/_services/dynamo-nts-data.service.ts +74 -45
- package/src/_services/dynamo-nts-db.service.ts +157 -87
- package/src/_services/dynamo-nts-email.service.ts +21 -17
- package/src/_services/dynamo-nts-global.service.ts +3 -3
- package/src/_services/dynamo-nts-routing-module.service.ts +16 -10
- package/src/_services/dynamo-nts-socket.service.ts +6 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
|
|
2
2
|
import { Router } from 'express';
|
|
3
|
-
import {
|
|
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
|
|
93
|
-
|
|
94
|
-
|
|
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
|
|
129
|
-
|
|
130
|
-
|
|
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
|
|
164
|
-
|
|
165
|
-
|
|
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 {
|
|
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
|
|
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
|
|