@futdevpro/nts-dynamo 1.14.9 → 1.14.11

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 (27) hide show
  1. package/build/_modules/messaging/_collections/get-messaging-routing-module.util.d.ts +8 -0
  2. package/build/_modules/messaging/_collections/get-messaging-routing-module.util.d.ts.map +1 -0
  3. package/build/_modules/messaging/_collections/get-messaging-routing-module.util.js +21 -0
  4. package/build/_modules/messaging/_collections/get-messaging-routing-module.util.js.map +1 -0
  5. package/build/_modules/messaging/_services/msg-events.service.js +14 -14
  6. package/build/_modules/messaging/_services/msg-events.service.js.map +1 -1
  7. package/build/_modules/messaging/_services/msg.controller.d.ts +13 -0
  8. package/build/_modules/messaging/_services/msg.controller.d.ts.map +1 -0
  9. package/build/_modules/messaging/_services/msg.controller.js +257 -0
  10. package/build/_modules/messaging/_services/msg.controller.js.map +1 -0
  11. package/build/_modules/messaging/index.d.ts +5 -6
  12. package/build/_modules/messaging/index.d.ts.map +1 -1
  13. package/build/_modules/messaging/index.js +6 -8
  14. package/build/_modules/messaging/index.js.map +1 -1
  15. package/build/_services/base/data.service.js +11 -11
  16. package/build/_services/base/data.service.js.map +1 -1
  17. package/package.json +3 -3
  18. package/src/_modules/messaging/{get-messaging-routing-module.util.ts → _collections/get-messaging-routing-module.util.ts} +5 -5
  19. package/src/_modules/messaging/_services/msg-events.service.ts +14 -14
  20. package/src/_modules/messaging/{messaging.controller.ts → _services/msg.controller.ts} +11 -11
  21. package/src/_modules/messaging/index.ts +6 -9
  22. package/src/_services/base/data.service.ts +11 -11
  23. package/build/_modules/messaging/_enums/msg-event-key.enum.d.ts +0 -23
  24. package/build/_modules/messaging/_enums/msg-event-key.enum.d.ts.map +0 -1
  25. package/build/_modules/messaging/_enums/msg-event-key.enum.js +0 -32
  26. package/build/_modules/messaging/_enums/msg-event-key.enum.js.map +0 -1
  27. package/src/_modules/messaging/_enums/msg-event-key.enum.ts +0 -31
@@ -1217,7 +1217,7 @@ export class DyNTS_DataService<T extends DyFM_Metadata> {
1217
1217
  new Error(
1218
1218
  `validateData failed, data is required! ` +
1219
1219
  `(${isSubObjectOf?.key ? `${isSubObjectOf.key}.` : ''}${this.dataParams.dataName})` +
1220
- (data as any)?.name ? `\n The failed data's name: ${(data as any).name}` : ''
1220
+ ((data as any)?.name ? `\n The failed data's name: ${(data as any).name}` : '')
1221
1221
  )
1222
1222
  ),
1223
1223
  errorCode: `${DyNTS_global_settings.systemShortCodeName}|DyNTS-DS0-VP1`,
@@ -1232,7 +1232,7 @@ export class DyNTS_DataService<T extends DyFM_Metadata> {
1232
1232
  new Error(
1233
1233
  `validateData failed, data is forbidden! ` +
1234
1234
  `(${isSubObjectOf?.key ? `${isSubObjectOf.key}.` : ''}${this.dataParams.dataName})` +
1235
- (data as any)?.name ? `\n The failed data's name: ${(data as any).name}` : ''
1235
+ ((data as any)?.name ? `\n The failed data's name: ${(data as any).name}` : '')
1236
1236
  )
1237
1237
  ),
1238
1238
  errorCode: `${DyNTS_global_settings.systemShortCodeName}|DyNTS-DS0-VP2`,
@@ -1291,7 +1291,7 @@ export class DyNTS_DataService<T extends DyFM_Metadata> {
1291
1291
  new Error(
1292
1292
  `validateProperty failed, "${this.getPropertyKey(propertyParams, isSubObjectOf)}" is missing! ` +
1293
1293
  `(index or required in "${this.dataParams.dataName}" dataParams) ` +
1294
- (data as any)?.name ? `\n The failed data's name: ${(data as any).name}` : ''
1294
+ ((data as any)?.name ? `\n The failed data's name: ${(data as any).name}` : '')
1295
1295
  )
1296
1296
  ),
1297
1297
 
@@ -1313,7 +1313,7 @@ export class DyNTS_DataService<T extends DyFM_Metadata> {
1313
1313
  new Error(
1314
1314
  `validateProperty failed, "${this.getPropertyKey(propertyParams, isSubObjectOf)}" is forbidden! ` +
1315
1315
  `(${this.dataParams.dataName}) ` +
1316
- (data as any)?.name ? `\n The failed data's name: ${(data as any).name}` : ''
1316
+ ((data as any)?.name ? `\n The failed data's name: ${(data as any).name}` : '')
1317
1317
  )
1318
1318
  ),
1319
1319
 
@@ -1345,7 +1345,7 @@ export class DyNTS_DataService<T extends DyFM_Metadata> {
1345
1345
  new Error(
1346
1346
  `validateProperty failed, "${this.getPropertyKey(propertyParams, isSubObjectOf)}" is not a valid date! ` +
1347
1347
  `(${this.dataParams.dataName})` +
1348
- (data as any)?.name ? `\n The failed data's name: ${(data as any).name}` : ''
1348
+ ((data as any)?.name ? `\n The failed data's name: ${(data as any).name}` : '')
1349
1349
  )
1350
1350
  ),
1351
1351
 
@@ -1368,7 +1368,7 @@ export class DyNTS_DataService<T extends DyFM_Metadata> {
1368
1368
  new Error(
1369
1369
  `validateProperty failed, "${this.getPropertyKey(propertyParams, isSubObjectOf)}" is not a valid number! ` +
1370
1370
  `(${this.dataParams.dataName})` +
1371
- (data as any)?.name ? `\n The failed data's name: ${(data as any).name}` : ''
1371
+ ((data as any)?.name ? `\n The failed data's name: ${(data as any).name}` : '')
1372
1372
  )
1373
1373
  ),
1374
1374
 
@@ -1391,7 +1391,7 @@ export class DyNTS_DataService<T extends DyFM_Metadata> {
1391
1391
  new Error(
1392
1392
  `validateProperty failed, "${this.getPropertyKey(propertyParams, isSubObjectOf)}" is not a valid string! ` +
1393
1393
  `(${this.dataParams.dataName})` +
1394
- (data as any)?.name ? `\n The failed data's name: ${(data as any).name}` : ''
1394
+ ((data as any)?.name ? `\n The failed data's name: ${(data as any).name}` : '')
1395
1395
  )
1396
1396
  ),
1397
1397
 
@@ -1414,7 +1414,7 @@ export class DyNTS_DataService<T extends DyFM_Metadata> {
1414
1414
  new Error(
1415
1415
  `validateProperty failed, "${this.getPropertyKey(propertyParams, isSubObjectOf)}" is not a valid boolean! ` +
1416
1416
  `(${this.dataParams.dataName})` +
1417
- (data as any)?.name ? `\n The failed data's name: ${(data as any).name}` : ''
1417
+ ((data as any)?.name ? `\n The failed data's name: ${(data as any).name}` : '')
1418
1418
  )
1419
1419
  ),
1420
1420
 
@@ -1458,7 +1458,7 @@ export class DyNTS_DataService<T extends DyFM_Metadata> {
1458
1458
  new Error(
1459
1459
  `validateProperty failed, "${this.getPropertyKey(propertyParams, isSubObjectOf)}" is not a valid array! ` +
1460
1460
  `(${this.dataParams.dataName})` +
1461
- (data as any)?.name ? `\n The failed data's name: ${(data as any).name}` : ''
1461
+ ((data as any)?.name ? `\n The failed data's name: ${(data as any).name}` : '')
1462
1462
  )
1463
1463
  ),
1464
1464
 
@@ -1488,7 +1488,7 @@ export class DyNTS_DataService<T extends DyFM_Metadata> {
1488
1488
  new Error(
1489
1489
  `validateProperty failed, "${this.getPropertyKey(propertyParams, isSubObjectOf)}" is not a valid function! ` +
1490
1490
  `(${this.dataParams.dataName})` +
1491
- (data as any)?.name ? `\n The failed data's name: ${(data as any).name}` : ''
1491
+ ((data as any)?.name ? `\n The failed data's name: ${(data as any).name}` : '')
1492
1492
  )
1493
1493
  ),
1494
1494
 
@@ -1508,7 +1508,7 @@ export class DyNTS_DataService<T extends DyFM_Metadata> {
1508
1508
  `validateProperty failed, "${this.getPropertyKey(propertyParams, isSubObjectOf)}" is not a valid property type! ` +
1509
1509
  `(type: ${propertyParams.type}, nonBasicType: ${propertyParams.nonBasicType}) ` +
1510
1510
  `(${this.dataParams.dataName})` +
1511
- (data as any)?.name ? `\n The failed data's name: ${(data as any).name}` : ''
1511
+ ((data as any)?.name ? `\n The failed data's name: ${(data as any).name}` : '')
1512
1512
  )
1513
1513
  ),
1514
1514
 
@@ -1,23 +0,0 @@
1
- /**
2
- * Socket event keys for real-time messaging
3
- * Following existing socket event pattern with camelCase = 'kebab-case'
4
- */
5
- export declare enum DyNTS_Msg_EventKey {
6
- messageSent = "msg:message-sent",
7
- messageUpdated = "msg:message-updated",
8
- messageDeleted = "msg:message-deleted",
9
- messageDelivered = "msg:message-delivered",
10
- messageRead = "msg:message-read",
11
- conversationCreated = "msg:conversation-created",
12
- conversationUpdated = "msg:conversation-updated",
13
- conversationDeleted = "msg:conversation-deleted",
14
- participantAdded = "msg:participant-added",
15
- participantRemoved = "msg:participant-removed",
16
- typingStart = "msg:typing-start",
17
- typingStop = "msg:typing-stop",
18
- reactionAdded = "msg:reaction-added",
19
- reactionRemoved = "msg:reaction-removed",
20
- agentStepAdded = "msg:agent-step-added",
21
- agentProcessComplete = "msg:agent-process-complete"
22
- }
23
- //# sourceMappingURL=msg-event-key.enum.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"msg-event-key.enum.d.ts","sourceRoot":"","sources":["../../../../src/_modules/messaging/_enums/msg-event-key.enum.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,oBAAY,kBAAkB;IAE5B,WAAW,qBAAqB;IAChC,cAAc,wBAAwB;IACtC,cAAc,wBAAwB;IACtC,gBAAgB,0BAA0B;IAC1C,WAAW,qBAAqB;IAGhC,mBAAmB,6BAA6B;IAChD,mBAAmB,6BAA6B;IAChD,mBAAmB,6BAA6B;IAChD,gBAAgB,0BAA0B;IAC1C,kBAAkB,4BAA4B;IAG9C,WAAW,qBAAqB;IAChC,UAAU,oBAAoB;IAG9B,aAAa,uBAAuB;IACpC,eAAe,yBAAyB;IAGxC,cAAc,yBAAyB;IACvC,oBAAoB,+BAA+B;CACpD"}
@@ -1,32 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DyNTS_Msg_EventKey = void 0;
4
- /**
5
- * Socket event keys for real-time messaging
6
- * Following existing socket event pattern with camelCase = 'kebab-case'
7
- */
8
- var DyNTS_Msg_EventKey;
9
- (function (DyNTS_Msg_EventKey) {
10
- // Message events
11
- DyNTS_Msg_EventKey["messageSent"] = "msg:message-sent";
12
- DyNTS_Msg_EventKey["messageUpdated"] = "msg:message-updated";
13
- DyNTS_Msg_EventKey["messageDeleted"] = "msg:message-deleted";
14
- DyNTS_Msg_EventKey["messageDelivered"] = "msg:message-delivered";
15
- DyNTS_Msg_EventKey["messageRead"] = "msg:message-read";
16
- // Conversation events
17
- DyNTS_Msg_EventKey["conversationCreated"] = "msg:conversation-created";
18
- DyNTS_Msg_EventKey["conversationUpdated"] = "msg:conversation-updated";
19
- DyNTS_Msg_EventKey["conversationDeleted"] = "msg:conversation-deleted";
20
- DyNTS_Msg_EventKey["participantAdded"] = "msg:participant-added";
21
- DyNTS_Msg_EventKey["participantRemoved"] = "msg:participant-removed";
22
- // Typing indicators
23
- DyNTS_Msg_EventKey["typingStart"] = "msg:typing-start";
24
- DyNTS_Msg_EventKey["typingStop"] = "msg:typing-stop";
25
- // Reactions
26
- DyNTS_Msg_EventKey["reactionAdded"] = "msg:reaction-added";
27
- DyNTS_Msg_EventKey["reactionRemoved"] = "msg:reaction-removed";
28
- // Agent process (for visualization)
29
- DyNTS_Msg_EventKey["agentStepAdded"] = "msg:agent-step-added";
30
- DyNTS_Msg_EventKey["agentProcessComplete"] = "msg:agent-process-complete";
31
- })(DyNTS_Msg_EventKey || (exports.DyNTS_Msg_EventKey = DyNTS_Msg_EventKey = {}));
32
- //# sourceMappingURL=msg-event-key.enum.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"msg-event-key.enum.js","sourceRoot":"","sources":["../../../../src/_modules/messaging/_enums/msg-event-key.enum.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACH,IAAY,kBA0BX;AA1BD,WAAY,kBAAkB;IAC5B,iBAAiB;IACjB,sDAAgC,CAAA;IAChC,4DAAsC,CAAA;IACtC,4DAAsC,CAAA;IACtC,gEAA0C,CAAA;IAC1C,sDAAgC,CAAA;IAEhC,sBAAsB;IACtB,sEAAgD,CAAA;IAChD,sEAAgD,CAAA;IAChD,sEAAgD,CAAA;IAChD,gEAA0C,CAAA;IAC1C,oEAA8C,CAAA;IAE9C,oBAAoB;IACpB,sDAAgC,CAAA;IAChC,oDAA8B,CAAA;IAE9B,YAAY;IACZ,0DAAoC,CAAA;IACpC,8DAAwC,CAAA;IAExC,oCAAoC;IACpC,6DAAuC,CAAA;IACvC,yEAAmD,CAAA;AACrD,CAAC,EA1BW,kBAAkB,kCAAlB,kBAAkB,QA0B7B"}
@@ -1,31 +0,0 @@
1
- /**
2
- * Socket event keys for real-time messaging
3
- * Following existing socket event pattern with camelCase = 'kebab-case'
4
- */
5
- export enum DyNTS_Msg_EventKey {
6
- // Message events
7
- messageSent = 'msg:message-sent',
8
- messageUpdated = 'msg:message-updated',
9
- messageDeleted = 'msg:message-deleted',
10
- messageDelivered = 'msg:message-delivered',
11
- messageRead = 'msg:message-read',
12
-
13
- // Conversation events
14
- conversationCreated = 'msg:conversation-created',
15
- conversationUpdated = 'msg:conversation-updated',
16
- conversationDeleted = 'msg:conversation-deleted',
17
- participantAdded = 'msg:participant-added',
18
- participantRemoved = 'msg:participant-removed',
19
-
20
- // Typing indicators
21
- typingStart = 'msg:typing-start',
22
- typingStop = 'msg:typing-stop',
23
-
24
- // Reactions
25
- reactionAdded = 'msg:reaction-added',
26
- reactionRemoved = 'msg:reaction-removed',
27
-
28
- // Agent process (for visualization)
29
- agentStepAdded = 'msg:agent-step-added',
30
- agentProcessComplete = 'msg:agent-process-complete',
31
- }