@futdevpro/nts-dynamo 1.14.8 → 1.14.10
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/build/_collections/global-settings.const.d.ts.map +1 -1
- package/build/_collections/global-settings.const.js +1 -0
- package/build/_collections/global-settings.const.js.map +1 -1
- package/build/_models/interfaces/global-settings.interface.d.ts +18 -2
- package/build/_models/interfaces/global-settings.interface.d.ts.map +1 -1
- package/build/_modules/assistant/_collections/ass-global-settings.const.d.ts +3 -0
- package/build/_modules/assistant/_collections/ass-global-settings.const.d.ts.map +1 -0
- package/build/_modules/assistant/_collections/ass-global-settings.const.js +15 -0
- package/build/_modules/assistant/_collections/ass-global-settings.const.js.map +1 -0
- package/build/_modules/assistant/_collections/ass.util.d.ts +16 -0
- package/build/_modules/assistant/_collections/ass.util.d.ts.map +1 -0
- package/build/_modules/assistant/_collections/ass.util.js +43 -0
- package/build/_modules/assistant/_collections/ass.util.js.map +1 -0
- package/build/_modules/assistant/_models/ass-global-settings.interface.d.ts +14 -0
- package/build/_modules/assistant/_models/ass-global-settings.interface.d.ts.map +1 -0
- package/build/_modules/assistant/_models/ass-global-settings.interface.js +3 -0
- package/build/_modules/assistant/_models/ass-global-settings.interface.js.map +1 -0
- package/build/_modules/assistant/_services/ass-io.control-service.d.ts +23 -0
- package/build/_modules/assistant/_services/ass-io.control-service.d.ts.map +1 -0
- package/build/_modules/assistant/_services/ass-io.control-service.js +59 -0
- package/build/_modules/assistant/_services/ass-io.control-service.js.map +1 -0
- package/build/_modules/assistant/_services/ass-main.control-service.d.ts +15 -0
- package/build/_modules/assistant/_services/ass-main.control-service.d.ts.map +1 -0
- package/build/_modules/assistant/_services/ass-main.control-service.js +12 -0
- package/build/_modules/assistant/_services/ass-main.control-service.js.map +1 -0
- package/build/_modules/assistant/_services/ass.service-base.d.ts +31 -0
- package/build/_modules/assistant/_services/ass.service-base.d.ts.map +1 -0
- package/build/_modules/assistant/_services/ass.service-base.js +56 -0
- package/build/_modules/assistant/_services/ass.service-base.js.map +1 -0
- package/build/_modules/assistant/index.d.ts +7 -0
- package/build/_modules/assistant/index.d.ts.map +1 -0
- package/build/_modules/assistant/index.js +19 -0
- package/build/_modules/assistant/index.js.map +1 -0
- package/build/_modules/bot/_collections/bot-default-commands.const.d.ts +3 -0
- package/build/_modules/bot/_collections/bot-default-commands.const.d.ts.map +1 -0
- package/build/_modules/bot/_collections/bot-default-commands.const.js +14 -0
- package/build/_modules/bot/_collections/bot-default-commands.const.js.map +1 -0
- package/build/_modules/bot/_collections/bot-global-settings.const.d.ts +3 -0
- package/build/_modules/bot/_collections/bot-global-settings.const.d.ts.map +1 -0
- package/build/_modules/bot/_collections/bot-global-settings.const.js +32 -0
- package/build/_modules/bot/_collections/bot-global-settings.const.js.map +1 -0
- package/build/_modules/bot/_collections/bot-operations.util.d.ts +21 -0
- package/build/_modules/bot/_collections/bot-operations.util.d.ts.map +1 -0
- package/build/_modules/bot/_collections/bot-operations.util.js +74 -0
- package/build/_modules/bot/_collections/bot-operations.util.js.map +1 -0
- package/build/_modules/bot/_enums/bot-provider.enum.d.ts +7 -0
- package/build/_modules/bot/_enums/bot-provider.enum.d.ts.map +1 -0
- package/build/_modules/bot/_enums/bot-provider.enum.js +11 -0
- package/build/_modules/bot/_enums/bot-provider.enum.js.map +1 -0
- package/build/_modules/bot/_models/bot-channel.interface.d.ts +8 -0
- package/build/_modules/bot/_models/bot-channel.interface.d.ts.map +1 -0
- package/build/_modules/bot/_models/bot-channel.interface.js +3 -0
- package/build/_modules/bot/_models/bot-channel.interface.js.map +1 -0
- package/build/_modules/bot/_models/bot-command.interface.d.ts +8 -0
- package/build/_modules/bot/_models/bot-command.interface.d.ts.map +1 -0
- package/build/_modules/bot/_models/bot-command.interface.js +3 -0
- package/build/_modules/bot/_models/bot-command.interface.js.map +1 -0
- package/build/_modules/bot/_models/bot-global-settings.interface.d.ts +79 -0
- package/build/_modules/bot/_models/bot-global-settings.interface.d.ts.map +1 -0
- package/build/_modules/bot/_models/bot-global-settings.interface.js +3 -0
- package/build/_modules/bot/_models/bot-global-settings.interface.js.map +1 -0
- package/build/_modules/bot/_models/bot-last-mention-date.interface.d.ts +7 -0
- package/build/_modules/bot/_models/bot-last-mention-date.interface.d.ts.map +1 -0
- package/build/_modules/bot/_models/bot-last-mention-date.interface.js +3 -0
- package/build/_modules/bot/_models/bot-last-mention-date.interface.js.map +1 -0
- package/build/_modules/bot/_models/bot-last-message-date.interface.d.ts +6 -0
- package/build/_modules/bot/_models/bot-last-message-date.interface.d.ts.map +1 -0
- package/build/_modules/bot/_models/bot-last-message-date.interface.js +3 -0
- package/build/_modules/bot/_models/bot-last-message-date.interface.js.map +1 -0
- package/build/_modules/bot/_models/bot-message.interface.d.ts +15 -0
- package/build/_modules/bot/_models/bot-message.interface.d.ts.map +1 -0
- package/build/_modules/bot/_models/bot-message.interface.js +3 -0
- package/build/_modules/bot/_models/bot-message.interface.js.map +1 -0
- package/build/_modules/bot/_models/bot-provider.interface.d.ts +60 -0
- package/build/_modules/bot/_models/bot-provider.interface.d.ts.map +1 -0
- package/build/_modules/bot/_models/bot-provider.interface.js +3 -0
- package/build/_modules/bot/_models/bot-provider.interface.js.map +1 -0
- package/build/_modules/bot/_models/bot-user.interface.d.ts +8 -0
- package/build/_modules/bot/_models/bot-user.interface.d.ts.map +1 -0
- package/build/_modules/bot/_models/bot-user.interface.js +3 -0
- package/build/_modules/bot/_models/bot-user.interface.js.map +1 -0
- package/build/_modules/bot/_modules/discord-bot/_collections/dib-operations.util.d.ts +11 -0
- package/build/_modules/bot/_modules/discord-bot/_collections/dib-operations.util.d.ts.map +1 -0
- package/build/_modules/bot/_modules/discord-bot/_collections/dib-operations.util.js +13 -0
- package/build/_modules/bot/_modules/discord-bot/_collections/dib-operations.util.js.map +1 -0
- package/build/_modules/bot/_modules/discord-bot/_collections/dib.util.d.ts +5 -0
- package/build/_modules/bot/_modules/discord-bot/_collections/dib.util.d.ts.map +1 -0
- package/build/_modules/bot/_modules/discord-bot/_collections/dib.util.js +19 -0
- package/build/_modules/bot/_modules/discord-bot/_collections/dib.util.js.map +1 -0
- package/build/_modules/bot/_modules/discord-bot/_models/dib-platform.types.d.ts +8 -0
- package/build/_modules/bot/_modules/discord-bot/_models/dib-platform.types.d.ts.map +1 -0
- package/build/_modules/bot/_modules/discord-bot/_models/dib-platform.types.js +3 -0
- package/build/_modules/bot/_modules/discord-bot/_models/dib-platform.types.js.map +1 -0
- package/build/_modules/bot/_modules/discord-bot/_services/dib-provider.service.d.ts +53 -0
- package/build/_modules/bot/_modules/discord-bot/_services/dib-provider.service.d.ts.map +1 -0
- package/build/_modules/bot/_modules/discord-bot/_services/dib-provider.service.js +369 -0
- package/build/_modules/bot/_modules/discord-bot/_services/dib-provider.service.js.map +1 -0
- package/build/_modules/bot/_modules/discord-bot/index.d.ts +5 -0
- package/build/_modules/bot/_modules/discord-bot/index.d.ts.map +1 -0
- package/build/_modules/bot/_modules/discord-bot/index.js +16 -0
- package/build/_modules/bot/_modules/discord-bot/index.js.map +1 -0
- package/build/_modules/bot/_modules/slack-bot/_collections/slb-operations.util.d.ts +11 -0
- package/build/_modules/bot/_modules/slack-bot/_collections/slb-operations.util.d.ts.map +1 -0
- package/build/_modules/bot/_modules/slack-bot/_collections/slb-operations.util.js +13 -0
- package/build/_modules/bot/_modules/slack-bot/_collections/slb-operations.util.js.map +1 -0
- package/build/_modules/bot/_modules/slack-bot/_models/slb-platform.types.d.ts +7 -0
- package/build/_modules/bot/_modules/slack-bot/_models/slb-platform.types.d.ts.map +1 -0
- package/build/_modules/bot/_modules/slack-bot/_models/slb-platform.types.js +3 -0
- package/build/_modules/bot/_modules/slack-bot/_models/slb-platform.types.js.map +1 -0
- package/build/_modules/bot/_modules/slack-bot/_services/slb-provider.service.d.ts +40 -0
- package/build/_modules/bot/_modules/slack-bot/_services/slb-provider.service.d.ts.map +1 -0
- package/build/_modules/bot/_modules/slack-bot/_services/slb-provider.service.js +116 -0
- package/build/_modules/bot/_modules/slack-bot/_services/slb-provider.service.js.map +1 -0
- package/build/_modules/bot/_modules/slack-bot/index.d.ts +4 -0
- package/build/_modules/bot/_modules/slack-bot/index.d.ts.map +1 -0
- package/build/_modules/bot/_modules/slack-bot/index.js +15 -0
- package/build/_modules/bot/_modules/slack-bot/index.js.map +1 -0
- package/build/_modules/bot/_modules/teams-bot/_collections/teb-operations.util.d.ts +11 -0
- package/build/_modules/bot/_modules/teams-bot/_collections/teb-operations.util.d.ts.map +1 -0
- package/build/_modules/bot/_modules/teams-bot/_collections/teb-operations.util.js +13 -0
- package/build/_modules/bot/_modules/teams-bot/_collections/teb-operations.util.js.map +1 -0
- package/build/_modules/bot/_modules/teams-bot/_models/teb-platform.types.d.ts +7 -0
- package/build/_modules/bot/_modules/teams-bot/_models/teb-platform.types.d.ts.map +1 -0
- package/build/_modules/bot/_modules/teams-bot/_models/teb-platform.types.js +3 -0
- package/build/_modules/bot/_modules/teams-bot/_models/teb-platform.types.js.map +1 -0
- package/build/_modules/bot/_modules/teams-bot/_services/teb-provider.service.d.ts +40 -0
- package/build/_modules/bot/_modules/teams-bot/_services/teb-provider.service.d.ts.map +1 -0
- package/build/_modules/bot/_modules/teams-bot/_services/teb-provider.service.js +116 -0
- package/build/_modules/bot/_modules/teams-bot/_services/teb-provider.service.js.map +1 -0
- package/build/_modules/bot/_modules/teams-bot/index.d.ts +4 -0
- package/build/_modules/bot/_modules/teams-bot/index.d.ts.map +1 -0
- package/build/_modules/bot/_modules/teams-bot/index.js +15 -0
- package/build/_modules/bot/_modules/teams-bot/index.js.map +1 -0
- package/build/_modules/bot/_services/bot-commands.control-service.d.ts +15 -0
- package/build/_modules/bot/_services/bot-commands.control-service.d.ts.map +1 -0
- package/build/_modules/bot/_services/bot-commands.control-service.js +72 -0
- package/build/_modules/bot/_services/bot-commands.control-service.js.map +1 -0
- package/build/_modules/bot/_services/bot-io.control-service.d.ts +24 -0
- package/build/_modules/bot/_services/bot-io.control-service.d.ts.map +1 -0
- package/build/_modules/bot/_services/bot-io.control-service.js +207 -0
- package/build/_modules/bot/_services/bot-io.control-service.js.map +1 -0
- package/build/_modules/bot/_services/bot-main.control-service.d.ts +42 -0
- package/build/_modules/bot/_services/bot-main.control-service.d.ts.map +1 -0
- package/build/_modules/bot/_services/bot-main.control-service.js +223 -0
- package/build/_modules/bot/_services/bot-main.control-service.js.map +1 -0
- package/build/_modules/bot/_services/bot-provider-factory.service.d.ts +5 -0
- package/build/_modules/bot/_services/bot-provider-factory.service.d.ts.map +1 -0
- package/build/_modules/bot/_services/bot-provider-factory.service.js +28 -0
- package/build/_modules/bot/_services/bot-provider-factory.service.js.map +1 -0
- package/build/_modules/bot/_services/bot-routines.control-service.d.ts +17 -0
- package/build/_modules/bot/_services/bot-routines.control-service.d.ts.map +1 -0
- package/build/_modules/bot/_services/bot-routines.control-service.js +40 -0
- package/build/_modules/bot/_services/bot-routines.control-service.js.map +1 -0
- package/build/_modules/bot/index.d.ts +21 -0
- package/build/_modules/bot/index.d.ts.map +1 -0
- package/build/_modules/bot/index.js +35 -0
- package/build/_modules/bot/index.js.map +1 -0
- package/build/_modules/defaults/_models/default-user.data-model.d.ts +20 -0
- package/build/_modules/defaults/_models/default-user.data-model.d.ts.map +1 -0
- package/build/_modules/defaults/_models/default-user.data-model.js +73 -0
- package/build/_modules/defaults/_models/default-user.data-model.js.map +1 -0
- package/build/_modules/defaults/_services/default-auth.service.d.ts +51 -0
- package/build/_modules/defaults/_services/default-auth.service.d.ts.map +1 -0
- package/build/_modules/defaults/_services/default-auth.service.js +159 -0
- package/build/_modules/defaults/_services/default-auth.service.js.map +1 -0
- package/build/_modules/defaults/_services/default-socket-events.service.d.ts +24 -0
- package/build/_modules/defaults/_services/default-socket-events.service.d.ts.map +1 -0
- package/build/_modules/defaults/_services/default-socket-events.service.js +61 -0
- package/build/_modules/defaults/_services/default-socket-events.service.js.map +1 -0
- package/build/_modules/defaults/_services/default-user.data-service.d.ts +25 -0
- package/build/_modules/defaults/_services/default-user.data-service.d.ts.map +1 -0
- package/build/_modules/defaults/_services/default-user.data-service.js +88 -0
- package/build/_modules/defaults/_services/default-user.data-service.js.map +1 -0
- package/build/_modules/defaults/index.d.ts +5 -0
- package/build/_modules/defaults/index.d.ts.map +1 -0
- package/build/_modules/defaults/index.js +16 -0
- package/build/_modules/defaults/index.js.map +1 -0
- package/build/_modules/messaging/_collections/msg-global-settings.const.d.ts +6 -0
- package/build/_modules/messaging/_collections/msg-global-settings.const.d.ts.map +1 -0
- package/build/_modules/messaging/_collections/msg-global-settings.const.js +27 -0
- package/build/_modules/messaging/_collections/msg-global-settings.const.js.map +1 -0
- package/build/_modules/messaging/_collections/msg.util.d.ts +25 -0
- package/build/_modules/messaging/_collections/msg.util.d.ts.map +1 -0
- package/build/_modules/messaging/_collections/msg.util.js +63 -0
- package/build/_modules/messaging/_collections/msg.util.js.map +1 -0
- package/build/_modules/messaging/_models/msg-global-settings.interface.d.ts +38 -0
- package/build/_modules/messaging/_models/msg-global-settings.interface.d.ts.map +1 -0
- package/build/_modules/messaging/_models/msg-global-settings.interface.js +3 -0
- package/build/_modules/messaging/_models/msg-global-settings.interface.js.map +1 -0
- package/build/_modules/messaging/_services/msg-conversation.data-service.d.ts +29 -0
- package/build/_modules/messaging/_services/msg-conversation.data-service.d.ts.map +1 -0
- package/build/_modules/messaging/_services/msg-conversation.data-service.js +110 -0
- package/build/_modules/messaging/_services/msg-conversation.data-service.js.map +1 -0
- package/build/_modules/messaging/_services/msg-events.service.d.ts +62 -0
- package/build/_modules/messaging/_services/msg-events.service.d.ts.map +1 -0
- package/build/_modules/messaging/_services/msg-events.service.js +204 -0
- package/build/_modules/messaging/_services/msg-events.service.js.map +1 -0
- package/build/_modules/messaging/_services/msg-integration.control-service.d.ts +26 -0
- package/build/_modules/messaging/_services/msg-integration.control-service.d.ts.map +1 -0
- package/build/_modules/messaging/_services/msg-integration.control-service.js +126 -0
- package/build/_modules/messaging/_services/msg-integration.control-service.js.map +1 -0
- package/build/_modules/messaging/_services/msg-main.control-service.d.ts +62 -0
- package/build/_modules/messaging/_services/msg-main.control-service.d.ts.map +1 -0
- package/build/_modules/messaging/_services/msg-main.control-service.js +408 -0
- package/build/_modules/messaging/_services/msg-main.control-service.js.map +1 -0
- package/build/_modules/messaging/_services/msg-message.data-service.d.ts +29 -0
- package/build/_modules/messaging/_services/msg-message.data-service.d.ts.map +1 -0
- package/build/_modules/messaging/_services/msg-message.data-service.js +104 -0
- package/build/_modules/messaging/_services/msg-message.data-service.js.map +1 -0
- package/build/_modules/messaging/get-messaging-routing-module.util.d.ts +8 -0
- package/build/_modules/messaging/get-messaging-routing-module.util.d.ts.map +1 -0
- package/build/_modules/messaging/get-messaging-routing-module.util.js +21 -0
- package/build/_modules/messaging/get-messaging-routing-module.util.js.map +1 -0
- package/build/_modules/messaging/index.d.ts +12 -0
- package/build/_modules/messaging/index.d.ts.map +1 -0
- package/build/_modules/messaging/index.js +30 -0
- package/build/_modules/messaging/index.js.map +1 -0
- package/build/_modules/messaging/messaging.controller.d.ts +13 -0
- package/build/_modules/messaging/messaging.controller.d.ts.map +1 -0
- package/build/_modules/messaging/messaging.controller.js +257 -0
- package/build/_modules/messaging/messaging.controller.js.map +1 -0
- package/package.json +72 -4
- package/src/_collections/global-settings.const.ts +2 -0
- package/src/_models/interfaces/global-settings.interface.ts +20 -2
- package/src/_modules/assistant/_collections/ass-global-settings.const.ts +13 -0
- package/src/_modules/assistant/_collections/ass.util.ts +50 -0
- package/src/_modules/assistant/_models/ass-global-settings.interface.ts +15 -0
- package/src/_modules/assistant/_services/ass-io.control-service.ts +100 -0
- package/src/_modules/assistant/_services/ass-main.control-service.ts +38 -0
- package/src/_modules/assistant/_services/ass.service-base.ts +92 -0
- package/src/_modules/assistant/index.ts +19 -0
- package/src/_modules/bot/_collections/bot-default-commands.const.ts +12 -0
- package/src/_modules/bot/_collections/bot-global-settings.const.ts +39 -0
- package/src/_modules/bot/_collections/bot-operations.util.ts +149 -0
- package/src/_modules/bot/_enums/bot-provider.enum.ts +6 -0
- package/src/_modules/bot/_models/bot-channel.interface.ts +7 -0
- package/src/_modules/bot/_models/bot-command.interface.ts +8 -0
- package/src/_modules/bot/_models/bot-global-settings.interface.ts +87 -0
- package/src/_modules/bot/_models/bot-last-mention-date.interface.ts +6 -0
- package/src/_modules/bot/_models/bot-last-message-date.interface.ts +5 -0
- package/src/_modules/bot/_models/bot-message.interface.ts +14 -0
- package/src/_modules/bot/_models/bot-provider.interface.ts +80 -0
- package/src/_modules/bot/_models/bot-user.interface.ts +7 -0
- package/src/_modules/bot/_modules/discord-bot/_collections/dib-operations.util.ts +18 -0
- package/src/_modules/bot/_modules/discord-bot/_collections/dib.util.ts +20 -0
- package/src/_modules/bot/_modules/discord-bot/_models/dib-platform.types.ts +9 -0
- package/src/_modules/bot/_modules/discord-bot/_services/dib-provider.service.ts +462 -0
- package/src/_modules/bot/_modules/discord-bot/index.ts +15 -0
- package/src/_modules/bot/_modules/slack-bot/_collections/slb-operations.util.ts +18 -0
- package/src/_modules/bot/_modules/slack-bot/_models/slb-platform.types.ts +9 -0
- package/src/_modules/bot/_modules/slack-bot/_services/slb-provider.service.ts +152 -0
- package/src/_modules/bot/_modules/slack-bot/index.ts +14 -0
- package/src/_modules/bot/_modules/teams-bot/_collections/teb-operations.util.ts +18 -0
- package/src/_modules/bot/_modules/teams-bot/_models/teb-platform.types.ts +9 -0
- package/src/_modules/bot/_modules/teams-bot/_services/teb-provider.service.ts +152 -0
- package/src/_modules/bot/_modules/teams-bot/index.ts +14 -0
- package/src/_modules/bot/_services/bot-commands.control-service.ts +126 -0
- package/src/_modules/bot/_services/bot-io.control-service.ts +325 -0
- package/src/_modules/bot/_services/bot-main.control-service.ts +344 -0
- package/src/_modules/bot/_services/bot-provider-factory.service.ts +30 -0
- package/src/_modules/bot/_services/bot-routines.control-service.ts +83 -0
- package/src/_modules/bot/index.ts +36 -0
- package/src/_modules/defaults/_models/default-user.data-model.ts +72 -0
- package/src/_modules/defaults/_services/default-auth.service.ts +177 -0
- package/src/_modules/defaults/_services/default-socket-events.service.ts +61 -0
- package/src/_modules/defaults/_services/default-user.data-service.ts +98 -0
- package/src/_modules/defaults/index.ts +14 -0
- package/src/_modules/messaging/_collections/msg-global-settings.const.ts +27 -0
- package/src/_modules/messaging/_collections/msg.util.ts +83 -0
- package/src/_modules/messaging/_models/msg-global-settings.interface.ts +49 -0
- package/src/_modules/messaging/_services/msg-conversation.data-service.ts +146 -0
- package/src/_modules/messaging/_services/msg-events.service.ts +267 -0
- package/src/_modules/messaging/_services/msg-integration.control-service.ts +179 -0
- package/src/_modules/messaging/_services/msg-main.control-service.ts +548 -0
- package/src/_modules/messaging/_services/msg-message.data-service.ts +129 -0
- package/src/_modules/messaging/get-messaging-routing-module.util.ts +26 -0
- package/src/_modules/messaging/index.ts +33 -0
- package/src/_modules/messaging/messaging.controller.ts +370 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"msg-integration.control-service.d.ts","sourceRoot":"","sources":["../../../../src/_modules/messaging/_services/msg-integration.control-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AAEnF,OAAO,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,iCAAiC,CAAC;AAM1F,OAAO,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAE5E;;;GAGG;AACH,qBAAa,oCAAqC,SAAQ,sBAAsB;IAE9E,MAAM,CAAC,WAAW,IAAI,oCAAoC;IAI1D,OAAO,CAAC,aAAa,CAA0C;IAE/D;;;OAGG;IACG,cAAc,CAAC,CAAC,EACpB,UAAU,EAAE,iBAAiB,CAAC,CAAC,CAAC,EAChC,cAAc,EAAE,MAAM,EACtB,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,gBAAgB,CAAC;IA8C5B;;;OAGG;IACG,oBAAoB,CACxB,OAAO,EAAE,MAAM,EACf,cAAc,EAAE,MAAM,EACtB,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,gBAAgB,CAAC;IAiD5B;;OAEG;IACG,2BAA2B,CAC/B,SAAS,EAAE,MAAM,EACjB,cAAc,EAAE,MAAM,EACtB,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,qBAAqB,CAAC;CAmClC"}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DyNTS_Msg_Integration_ControlService = void 0;
|
|
4
|
+
const singleton_service_1 = require("../../../_services/base/singleton.service");
|
|
5
|
+
const fsm_dynamo_1 = require("@futdevpro/fsm-dynamo");
|
|
6
|
+
const global_settings_const_1 = require("../../../_collections/global-settings.const");
|
|
7
|
+
const msg_message_data_service_1 = require("./msg-message.data-service");
|
|
8
|
+
const msg_conversation_data_service_1 = require("./msg-conversation.data-service");
|
|
9
|
+
const msg_events_service_1 = require("./msg-events.service");
|
|
10
|
+
const msg_util_1 = require("../_collections/msg.util");
|
|
11
|
+
/**
|
|
12
|
+
* Messaging Integration Control Service
|
|
13
|
+
* Handles integration between messaging system and bot/assistant modules
|
|
14
|
+
*/
|
|
15
|
+
class DyNTS_Msg_Integration_ControlService extends singleton_service_1.DyNTS_SingletonService {
|
|
16
|
+
static getInstance() {
|
|
17
|
+
return DyNTS_Msg_Integration_ControlService.getSingletonInstance();
|
|
18
|
+
}
|
|
19
|
+
eventsService = msg_events_service_1.DyNTS_Msg_Events_Service.getInstance();
|
|
20
|
+
/**
|
|
21
|
+
* Sync bot message to messaging system
|
|
22
|
+
* Called from bot IO when message is received
|
|
23
|
+
*/
|
|
24
|
+
async syncBotMessage(botMessage, conversationId, issuer) {
|
|
25
|
+
try {
|
|
26
|
+
if (!global_settings_const_1.DyNTS_global_settings.messaging_settings?.integration?.syncBotMessages) {
|
|
27
|
+
throw new Error('Bot message sync is disabled');
|
|
28
|
+
}
|
|
29
|
+
// Convert bot message to messaging format
|
|
30
|
+
const msgMessage = msg_util_1.DyNTS_Msg_Util.botMessageToMsgMessage(botMessage, conversationId, issuer);
|
|
31
|
+
// Save to database
|
|
32
|
+
const messageService = new msg_message_data_service_1.DyNTS_Msg_Message_DataService({
|
|
33
|
+
message: msgMessage,
|
|
34
|
+
issuer,
|
|
35
|
+
});
|
|
36
|
+
await messageService.saveData(messageService.data, false, false);
|
|
37
|
+
// Update conversation last message
|
|
38
|
+
const conversationService = new msg_conversation_data_service_1.DyNTS_Msg_Conversation_DataService({
|
|
39
|
+
issuer,
|
|
40
|
+
});
|
|
41
|
+
await conversationService.updateLastMessage(conversationId, messageService.data._id, msgMessage.content.substring(0, 100));
|
|
42
|
+
// Emit real-time event
|
|
43
|
+
this.eventsService.emitMessageSent(messageService.data, conversationId);
|
|
44
|
+
return messageService.data;
|
|
45
|
+
}
|
|
46
|
+
catch (error) {
|
|
47
|
+
fsm_dynamo_1.DyFM_Log.error('Failed to sync bot message', error);
|
|
48
|
+
throw new fsm_dynamo_1.DyFM_Error({
|
|
49
|
+
...this.getDefaultErrorSettings('syncBotMessage', error, issuer),
|
|
50
|
+
errorCode: `${global_settings_const_1.DyNTS_global_settings.systemShortCodeName}|DyNTS-MSG-SBM`,
|
|
51
|
+
userMessage: 'Failed to sync bot message to messaging system.',
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Sync assistant response to messaging system
|
|
57
|
+
* Called from assistant IO when AI responds
|
|
58
|
+
*/
|
|
59
|
+
async syncAssistantMessage(content, conversationId, aiProvider, aiModel, senderId, issuer) {
|
|
60
|
+
try {
|
|
61
|
+
if (!global_settings_const_1.DyNTS_global_settings.messaging_settings?.integration?.syncAssistantMessages) {
|
|
62
|
+
throw new Error('Assistant message sync is disabled');
|
|
63
|
+
}
|
|
64
|
+
// Create AI message
|
|
65
|
+
const msgMessage = msg_util_1.DyNTS_Msg_Util.createAIMessage(conversationId, content, aiProvider, aiModel, senderId, issuer);
|
|
66
|
+
// Save to database
|
|
67
|
+
const messageService = new msg_message_data_service_1.DyNTS_Msg_Message_DataService({
|
|
68
|
+
message: msgMessage,
|
|
69
|
+
issuer,
|
|
70
|
+
});
|
|
71
|
+
await messageService.saveData(messageService.data, false, false);
|
|
72
|
+
// Update conversation last message
|
|
73
|
+
const conversationService = new msg_conversation_data_service_1.DyNTS_Msg_Conversation_DataService({
|
|
74
|
+
issuer,
|
|
75
|
+
});
|
|
76
|
+
await conversationService.updateLastMessage(conversationId, messageService.data._id, content.substring(0, 100));
|
|
77
|
+
// Emit real-time event
|
|
78
|
+
this.eventsService.emitMessageSent(messageService.data, conversationId);
|
|
79
|
+
return messageService.data;
|
|
80
|
+
}
|
|
81
|
+
catch (error) {
|
|
82
|
+
fsm_dynamo_1.DyFM_Log.error('Failed to sync assistant message', error);
|
|
83
|
+
throw new fsm_dynamo_1.DyFM_Error({
|
|
84
|
+
...this.getDefaultErrorSettings('syncAssistantMessage', error, issuer),
|
|
85
|
+
errorCode: `${global_settings_const_1.DyNTS_global_settings.systemShortCodeName}|DyNTS-MSG-SAM`,
|
|
86
|
+
userMessage: 'Failed to sync assistant message to messaging system.',
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Find or create conversation for bot channel
|
|
92
|
+
*/
|
|
93
|
+
async findOrCreateBotConversation(channelId, platformSource, issuer) {
|
|
94
|
+
try {
|
|
95
|
+
const conversationService = new msg_conversation_data_service_1.DyNTS_Msg_Conversation_DataService({
|
|
96
|
+
issuer,
|
|
97
|
+
});
|
|
98
|
+
// Try to find existing conversation
|
|
99
|
+
const existingConversation = await conversationService.dataDBService.findOne({
|
|
100
|
+
platformChannelId: channelId,
|
|
101
|
+
platformSource,
|
|
102
|
+
__deleted: { $exists: false },
|
|
103
|
+
});
|
|
104
|
+
if (existingConversation) {
|
|
105
|
+
conversationService.data = existingConversation;
|
|
106
|
+
}
|
|
107
|
+
// Create new if not found
|
|
108
|
+
if (!conversationService.data._id) {
|
|
109
|
+
conversationService.data.platformChannelId = channelId;
|
|
110
|
+
conversationService.data.platformSource = platformSource;
|
|
111
|
+
conversationService.data.participants = [];
|
|
112
|
+
await conversationService.saveData(conversationService.data, false, false);
|
|
113
|
+
}
|
|
114
|
+
return conversationService.data;
|
|
115
|
+
}
|
|
116
|
+
catch (error) {
|
|
117
|
+
throw new fsm_dynamo_1.DyFM_Error({
|
|
118
|
+
...this.getDefaultErrorSettings('findOrCreateBotConversation', error, issuer),
|
|
119
|
+
errorCode: `${global_settings_const_1.DyNTS_global_settings.systemShortCodeName}|DyNTS-MSG-FCBC`,
|
|
120
|
+
userMessage: 'Failed to find or create bot conversation.',
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
exports.DyNTS_Msg_Integration_ControlService = DyNTS_Msg_Integration_ControlService;
|
|
126
|
+
//# sourceMappingURL=msg-integration.control-service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"msg-integration.control-service.js","sourceRoot":"","sources":["../../../../src/_modules/messaging/_services/msg-integration.control-service.ts"],"names":[],"mappings":";;;AAAA,iFAAmF;AACnF,sDAA4E;AAE5E,uFAAoF;AACpF,yEAA2E;AAC3E,mFAAqF;AACrF,6DAAgE;AAChE,uDAA0D;AAG1D;;;GAGG;AACH,MAAa,oCAAqC,SAAQ,0CAAsB;IAE9E,MAAM,CAAC,WAAW;QAChB,OAAO,oCAAoC,CAAC,oBAAoB,EAAE,CAAC;IACrE,CAAC;IAEO,aAAa,GAAG,6CAAwB,CAAC,WAAW,EAAE,CAAC;IAE/D;;;OAGG;IACH,KAAK,CAAC,cAAc,CAClB,UAAgC,EAChC,cAAsB,EACtB,MAAc;QAEd,IAAI,CAAC;YACH,IAAI,CAAC,6CAAqB,CAAC,kBAAkB,EAAE,WAAW,EAAE,e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
import { DyFM_Msg_Message, DyFM_Msg_Conversation, DyFM_Msg_ParticipantRole } from '@futdevpro/fsm-dynamo/messaging';
|
|
3
|
+
/**
|
|
4
|
+
* Main Messaging Control Service
|
|
5
|
+
* Handles all business logic for messaging operations
|
|
6
|
+
*/
|
|
7
|
+
export declare class DyNTS_Msg_Main_ControlService extends DyNTS_SingletonService {
|
|
8
|
+
static getInstance(): DyNTS_Msg_Main_ControlService;
|
|
9
|
+
private eventsService;
|
|
10
|
+
/**
|
|
11
|
+
* Send a message
|
|
12
|
+
*/
|
|
13
|
+
sendMessage(conversationId: string, messageData: Partial<DyFM_Msg_Message>, senderId: string, issuer: string): Promise<DyFM_Msg_Message>;
|
|
14
|
+
/**
|
|
15
|
+
* Edit a message
|
|
16
|
+
*/
|
|
17
|
+
editMessage(messageId: string, content: string, userId: string, issuer: string): Promise<DyFM_Msg_Message>;
|
|
18
|
+
/**
|
|
19
|
+
* Delete a message
|
|
20
|
+
*/
|
|
21
|
+
deleteMessage(messageId: string, userId: string, issuer: string): Promise<void>;
|
|
22
|
+
/**
|
|
23
|
+
* Mark messages as read
|
|
24
|
+
*/
|
|
25
|
+
markMessagesAsRead(messageIds: string[], userId: string, issuer: string): Promise<{
|
|
26
|
+
success: boolean;
|
|
27
|
+
count: number;
|
|
28
|
+
}>;
|
|
29
|
+
/**
|
|
30
|
+
* Add reaction to message
|
|
31
|
+
*/
|
|
32
|
+
addReaction(messageId: string, emoji: string, userId: string, issuer: string): Promise<DyFM_Msg_Message>;
|
|
33
|
+
/**
|
|
34
|
+
* Remove reaction from message
|
|
35
|
+
*/
|
|
36
|
+
removeReaction(messageId: string, emoji: string, userId: string, issuer: string): Promise<DyFM_Msg_Message>;
|
|
37
|
+
/**
|
|
38
|
+
* Create conversation
|
|
39
|
+
*/
|
|
40
|
+
createConversation(conversationData: Partial<DyFM_Msg_Conversation>, creatorId: string, issuer: string): Promise<DyFM_Msg_Conversation>;
|
|
41
|
+
/**
|
|
42
|
+
* Update conversation
|
|
43
|
+
*/
|
|
44
|
+
updateConversation(conversationId: string, updateData: Partial<DyFM_Msg_Conversation>, userId: string, issuer: string): Promise<DyFM_Msg_Conversation>;
|
|
45
|
+
/**
|
|
46
|
+
* Delete conversation
|
|
47
|
+
*/
|
|
48
|
+
deleteConversation(conversationId: string, userId: string, issuer: string): Promise<void>;
|
|
49
|
+
/**
|
|
50
|
+
* Add participant to conversation
|
|
51
|
+
*/
|
|
52
|
+
addParticipant(conversationId: string, newUserId: string, role: DyFM_Msg_ParticipantRole, requesterId: string, issuer: string): Promise<void>;
|
|
53
|
+
/**
|
|
54
|
+
* Remove participant from conversation
|
|
55
|
+
*/
|
|
56
|
+
removeParticipant(conversationId: string, userIdToRemove: string, requesterId: string, issuer: string): Promise<void>;
|
|
57
|
+
/**
|
|
58
|
+
* Get agent process steps for a message
|
|
59
|
+
*/
|
|
60
|
+
getAgentProcessSteps(messageId: string, issuer: string): Promise<any[]>;
|
|
61
|
+
}
|
|
62
|
+
//# sourceMappingURL=msg-main.control-service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"msg-main.control-service.d.ts","sourceRoot":"","sources":["../../../../src/_modules/messaging/_services/msg-main.control-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AAEnF,OAAO,EACL,gBAAgB,EAChB,qBAAqB,EAIrB,wBAAwB,EAGzB,MAAM,iCAAiC,CAAC;AAOzC;;;GAGG;AACH,qBAAa,6BAA8B,SAAQ,sBAAsB;IAEvE,MAAM,CAAC,WAAW,IAAI,6BAA6B;IAInD,OAAO,CAAC,aAAa,CAA0C;IAE/D;;OAEG;IACG,WAAW,CACf,cAAc,EAAE,MAAM,EACtB,WAAW,EAAE,OAAO,CAAC,gBAAgB,CAAC,EACtC,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,gBAAgB,CAAC;IA6C5B;;OAEG;IACG,WAAW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c,CAClB,cAAc,EAAE,MAAM,EACtB,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,wBAA0D,EAChE,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,IAAI,CAAC;IAuChB;;OAEG;IACG,iBAAiB,CACrB,cAAc,EAAE,MAAM,EACtB,cAAc,EAAE,MAAM,EACtB,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,IAAI,CAAC;IAmChB;;OAEG;IACG,oBAAoB,CACxB,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,GAAG,EAAE,CAAC;CAyBlB"}
|
|
@@ -0,0 +1,408 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DyNTS_Msg_Main_ControlService = void 0;
|
|
4
|
+
const singleton_service_1 = require("../../../_services/base/singleton.service");
|
|
5
|
+
const fsm_dynamo_1 = require("@futdevpro/fsm-dynamo");
|
|
6
|
+
const messaging_1 = require("@futdevpro/fsm-dynamo/messaging");
|
|
7
|
+
const global_settings_const_1 = require("../../../_collections/global-settings.const");
|
|
8
|
+
const msg_message_data_service_1 = require("./msg-message.data-service");
|
|
9
|
+
const msg_conversation_data_service_1 = require("./msg-conversation.data-service");
|
|
10
|
+
const msg_events_service_1 = require("./msg-events.service");
|
|
11
|
+
/**
|
|
12
|
+
* Main Messaging Control Service
|
|
13
|
+
* Handles all business logic for messaging operations
|
|
14
|
+
*/
|
|
15
|
+
class DyNTS_Msg_Main_ControlService extends singleton_service_1.DyNTS_SingletonService {
|
|
16
|
+
static getInstance() {
|
|
17
|
+
return DyNTS_Msg_Main_ControlService.getSingletonInstance();
|
|
18
|
+
}
|
|
19
|
+
eventsService = msg_events_service_1.DyNTS_Msg_Events_Service.getInstance();
|
|
20
|
+
/**
|
|
21
|
+
* Send a message
|
|
22
|
+
*/
|
|
23
|
+
async sendMessage(conversationId, messageData, senderId, issuer) {
|
|
24
|
+
try {
|
|
25
|
+
// Create message
|
|
26
|
+
const message = new messaging_1.DyFM_Msg_Message({
|
|
27
|
+
conversationId,
|
|
28
|
+
senderId,
|
|
29
|
+
content: messageData.content || '',
|
|
30
|
+
type: messageData.type || messaging_1.DyFM_Msg_Type.text,
|
|
31
|
+
status: messaging_1.DyFM_Msg_Status.sent,
|
|
32
|
+
sentAt: new Date(),
|
|
33
|
+
__createdBy: issuer,
|
|
34
|
+
__lastModifiedBy: issuer,
|
|
35
|
+
...messageData,
|
|
36
|
+
});
|
|
37
|
+
// Save message
|
|
38
|
+
const messageService = new msg_message_data_service_1.DyNTS_Msg_Message_DataService({
|
|
39
|
+
message,
|
|
40
|
+
issuer,
|
|
41
|
+
});
|
|
42
|
+
await messageService.saveData(messageService.data, false, false);
|
|
43
|
+
// Update conversation last message
|
|
44
|
+
const conversationService = new msg_conversation_data_service_1.DyNTS_Msg_Conversation_DataService({
|
|
45
|
+
issuer,
|
|
46
|
+
});
|
|
47
|
+
await conversationService.updateLastMessage(conversationId, messageService.data._id, message.content.substring(0, 100));
|
|
48
|
+
// Emit event
|
|
49
|
+
this.eventsService.emitMessageSent(messageService.data, conversationId);
|
|
50
|
+
return messageService.data;
|
|
51
|
+
}
|
|
52
|
+
catch (error) {
|
|
53
|
+
throw new fsm_dynamo_1.DyFM_Error({
|
|
54
|
+
...this.getDefaultErrorSettings('sendMessage', error, issuer),
|
|
55
|
+
errorCode: `${global_settings_const_1.DyNTS_global_settings.systemShortCodeName}|DyNTS-MSG-SM`,
|
|
56
|
+
userMessage: 'Failed to send message.',
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Edit a message
|
|
62
|
+
*/
|
|
63
|
+
async editMessage(messageId, content, userId, issuer) {
|
|
64
|
+
try {
|
|
65
|
+
const messageService = new msg_message_data_service_1.DyNTS_Msg_Message_DataService({
|
|
66
|
+
issuer,
|
|
67
|
+
});
|
|
68
|
+
const message = await messageService.getDataById(messageId);
|
|
69
|
+
if (!message) {
|
|
70
|
+
throw new Error('Message not found');
|
|
71
|
+
}
|
|
72
|
+
if (message.senderId !== userId) {
|
|
73
|
+
throw new Error('Unauthorized: Only the message sender can edit it');
|
|
74
|
+
}
|
|
75
|
+
message.content = content;
|
|
76
|
+
message.editedAt = new Date();
|
|
77
|
+
message.status = messaging_1.DyFM_Msg_Status.sent; // Keep as sent since edited is not a status
|
|
78
|
+
message.__lastModifiedBy = issuer;
|
|
79
|
+
await messageService.saveData(message, false, false);
|
|
80
|
+
// Emit event
|
|
81
|
+
this.eventsService.emitMessageUpdated(messageService.data, message.conversationId);
|
|
82
|
+
return messageService.data;
|
|
83
|
+
}
|
|
84
|
+
catch (error) {
|
|
85
|
+
throw new fsm_dynamo_1.DyFM_Error({
|
|
86
|
+
...this.getDefaultErrorSettings('editMessage', error, issuer),
|
|
87
|
+
errorCode: `${global_settings_const_1.DyNTS_global_settings.systemShortCodeName}|DyNTS-MSG-EM`,
|
|
88
|
+
userMessage: 'Failed to edit message.',
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Delete a message
|
|
94
|
+
*/
|
|
95
|
+
async deleteMessage(messageId, userId, issuer) {
|
|
96
|
+
try {
|
|
97
|
+
const messageService = new msg_message_data_service_1.DyNTS_Msg_Message_DataService({
|
|
98
|
+
issuer,
|
|
99
|
+
});
|
|
100
|
+
const message = await messageService.getDataById(messageId);
|
|
101
|
+
if (!message) {
|
|
102
|
+
throw new Error('Message not found');
|
|
103
|
+
}
|
|
104
|
+
if (message.senderId !== userId) {
|
|
105
|
+
throw new Error('Unauthorized: Only the message sender can delete it');
|
|
106
|
+
}
|
|
107
|
+
const conversationId = message.conversationId;
|
|
108
|
+
await messageService.deleteData(messageId);
|
|
109
|
+
// Emit event
|
|
110
|
+
this.eventsService.emitMessageDeleted(messageId, conversationId);
|
|
111
|
+
}
|
|
112
|
+
catch (error) {
|
|
113
|
+
throw new fsm_dynamo_1.DyFM_Error({
|
|
114
|
+
...this.getDefaultErrorSettings('deleteMessage', error, issuer),
|
|
115
|
+
errorCode: `${global_settings_const_1.DyNTS_global_settings.systemShortCodeName}|DyNTS-MSG-DM`,
|
|
116
|
+
userMessage: 'Failed to delete message.',
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Mark messages as read
|
|
122
|
+
*/
|
|
123
|
+
async markMessagesAsRead(messageIds, userId, issuer) {
|
|
124
|
+
try {
|
|
125
|
+
const messageService = new msg_message_data_service_1.DyNTS_Msg_Message_DataService({
|
|
126
|
+
issuer,
|
|
127
|
+
});
|
|
128
|
+
for (const messageId of messageIds) {
|
|
129
|
+
await messageService.markAsRead(messageId, userId);
|
|
130
|
+
// Get message to get conversationId for event
|
|
131
|
+
const message = await messageService.getDataById(messageId);
|
|
132
|
+
this.eventsService.emitMessageRead(messageId, userId, message.conversationId);
|
|
133
|
+
}
|
|
134
|
+
return { success: true, count: messageIds.length };
|
|
135
|
+
}
|
|
136
|
+
catch (error) {
|
|
137
|
+
throw new fsm_dynamo_1.DyFM_Error({
|
|
138
|
+
...this.getDefaultErrorSettings('markMessagesAsRead', error, issuer),
|
|
139
|
+
errorCode: `${global_settings_const_1.DyNTS_global_settings.systemShortCodeName}|DyNTS-MSG-MAR`,
|
|
140
|
+
userMessage: 'Failed to mark messages as read.',
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Add reaction to message
|
|
146
|
+
*/
|
|
147
|
+
async addReaction(messageId, emoji, userId, issuer) {
|
|
148
|
+
try {
|
|
149
|
+
const messageService = new msg_message_data_service_1.DyNTS_Msg_Message_DataService({
|
|
150
|
+
issuer,
|
|
151
|
+
});
|
|
152
|
+
const message = await messageService.getDataById(messageId);
|
|
153
|
+
if (!message) {
|
|
154
|
+
throw new Error('Message not found');
|
|
155
|
+
}
|
|
156
|
+
if (!message.reactions) {
|
|
157
|
+
message.reactions = [];
|
|
158
|
+
}
|
|
159
|
+
// Check if user already reacted with this emoji
|
|
160
|
+
const existingReaction = message.reactions.find((r) => r.emoji === emoji && r.userId === userId);
|
|
161
|
+
if (!existingReaction) {
|
|
162
|
+
const newReaction = {
|
|
163
|
+
emoji,
|
|
164
|
+
userId,
|
|
165
|
+
reactedAt: new Date(),
|
|
166
|
+
};
|
|
167
|
+
message.reactions.push(newReaction);
|
|
168
|
+
await messageService.saveData(message, false, false);
|
|
169
|
+
// Emit event
|
|
170
|
+
this.eventsService.emitReactionAdded(messageId, newReaction);
|
|
171
|
+
}
|
|
172
|
+
return messageService.data;
|
|
173
|
+
}
|
|
174
|
+
catch (error) {
|
|
175
|
+
throw new fsm_dynamo_1.DyFM_Error({
|
|
176
|
+
...this.getDefaultErrorSettings('addReaction', error, issuer),
|
|
177
|
+
errorCode: `${global_settings_const_1.DyNTS_global_settings.systemShortCodeName}|DyNTS-MSG-AR`,
|
|
178
|
+
userMessage: 'Failed to add reaction.',
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* Remove reaction from message
|
|
184
|
+
*/
|
|
185
|
+
async removeReaction(messageId, emoji, userId, issuer) {
|
|
186
|
+
try {
|
|
187
|
+
const messageService = new msg_message_data_service_1.DyNTS_Msg_Message_DataService({
|
|
188
|
+
issuer,
|
|
189
|
+
});
|
|
190
|
+
const message = await messageService.getDataById(messageId);
|
|
191
|
+
if (!message) {
|
|
192
|
+
throw new Error('Message not found');
|
|
193
|
+
}
|
|
194
|
+
if (!message.reactions) {
|
|
195
|
+
message.reactions = [];
|
|
196
|
+
}
|
|
197
|
+
// Remove user's reaction with this emoji
|
|
198
|
+
const initialLength = message.reactions.length;
|
|
199
|
+
message.reactions = message.reactions.filter((r) => !(r.emoji === emoji && r.userId === userId));
|
|
200
|
+
if (message.reactions.length < initialLength) {
|
|
201
|
+
await messageService.saveData(message, false, false);
|
|
202
|
+
// Emit event
|
|
203
|
+
this.eventsService.emitReactionRemoved(messageId, userId, emoji);
|
|
204
|
+
}
|
|
205
|
+
return messageService.data;
|
|
206
|
+
}
|
|
207
|
+
catch (error) {
|
|
208
|
+
throw new fsm_dynamo_1.DyFM_Error({
|
|
209
|
+
...this.getDefaultErrorSettings('removeReaction', error, issuer),
|
|
210
|
+
errorCode: `${global_settings_const_1.DyNTS_global_settings.systemShortCodeName}|DyNTS-MSG-RR`,
|
|
211
|
+
userMessage: 'Failed to remove reaction.',
|
|
212
|
+
});
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
/**
|
|
216
|
+
* Create conversation
|
|
217
|
+
*/
|
|
218
|
+
async createConversation(conversationData, creatorId, issuer) {
|
|
219
|
+
try {
|
|
220
|
+
// Ensure creator is in participants
|
|
221
|
+
if (!conversationData.participants?.some(p => p.userId === creatorId)) {
|
|
222
|
+
if (!conversationData.participants) {
|
|
223
|
+
conversationData.participants = [];
|
|
224
|
+
}
|
|
225
|
+
conversationData.participants.push({
|
|
226
|
+
userId: creatorId,
|
|
227
|
+
role: messaging_1.DyFM_Msg_ParticipantRole.owner,
|
|
228
|
+
joinedAt: new Date(),
|
|
229
|
+
});
|
|
230
|
+
}
|
|
231
|
+
const conversation = new messaging_1.DyFM_Msg_Conversation({
|
|
232
|
+
type: conversationData.type || messaging_1.DyFM_Msg_ConversationType.direct,
|
|
233
|
+
participants: conversationData.participants || [],
|
|
234
|
+
__createdBy: issuer,
|
|
235
|
+
__lastModifiedBy: issuer,
|
|
236
|
+
...conversationData,
|
|
237
|
+
});
|
|
238
|
+
const conversationService = new msg_conversation_data_service_1.DyNTS_Msg_Conversation_DataService({
|
|
239
|
+
conversation,
|
|
240
|
+
issuer,
|
|
241
|
+
});
|
|
242
|
+
await conversationService.saveData(conversationService.data, false, false);
|
|
243
|
+
// Emit event
|
|
244
|
+
const participantIds = conversationService.data.participants?.map(p => p.userId) || [];
|
|
245
|
+
this.eventsService.emitConversationCreated(conversationService.data, participantIds);
|
|
246
|
+
return conversationService.data;
|
|
247
|
+
}
|
|
248
|
+
catch (error) {
|
|
249
|
+
throw new fsm_dynamo_1.DyFM_Error({
|
|
250
|
+
...this.getDefaultErrorSettings('createConversation', error, issuer),
|
|
251
|
+
errorCode: `${global_settings_const_1.DyNTS_global_settings.systemShortCodeName}|DyNTS-MSG-CC`,
|
|
252
|
+
userMessage: 'Failed to create conversation.',
|
|
253
|
+
});
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
* Update conversation
|
|
258
|
+
*/
|
|
259
|
+
async updateConversation(conversationId, updateData, userId, issuer) {
|
|
260
|
+
try {
|
|
261
|
+
const conversationService = new msg_conversation_data_service_1.DyNTS_Msg_Conversation_DataService({
|
|
262
|
+
issuer,
|
|
263
|
+
});
|
|
264
|
+
const conversation = await conversationService.getDataById(conversationId);
|
|
265
|
+
if (!conversation) {
|
|
266
|
+
throw new Error('Conversation not found');
|
|
267
|
+
}
|
|
268
|
+
// Check if user is participant
|
|
269
|
+
const isParticipant = conversation.participants?.some(p => p.userId === userId);
|
|
270
|
+
if (!isParticipant) {
|
|
271
|
+
throw new Error('Unauthorized: User is not a participant in this conversation');
|
|
272
|
+
}
|
|
273
|
+
Object.assign(conversation, updateData);
|
|
274
|
+
conversation.__lastModifiedBy = issuer;
|
|
275
|
+
await conversationService.saveData(conversation, false, false);
|
|
276
|
+
// Emit event
|
|
277
|
+
this.eventsService.emitConversationUpdated(conversationService.data);
|
|
278
|
+
return conversationService.data;
|
|
279
|
+
}
|
|
280
|
+
catch (error) {
|
|
281
|
+
throw new fsm_dynamo_1.DyFM_Error({
|
|
282
|
+
...this.getDefaultErrorSettings('updateConversation', error, issuer),
|
|
283
|
+
errorCode: `${global_settings_const_1.DyNTS_global_settings.systemShortCodeName}|DyNTS-MSG-UC`,
|
|
284
|
+
userMessage: 'Failed to update conversation.',
|
|
285
|
+
});
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
/**
|
|
289
|
+
* Delete conversation
|
|
290
|
+
*/
|
|
291
|
+
async deleteConversation(conversationId, userId, issuer) {
|
|
292
|
+
try {
|
|
293
|
+
const conversationService = new msg_conversation_data_service_1.DyNTS_Msg_Conversation_DataService({
|
|
294
|
+
issuer,
|
|
295
|
+
});
|
|
296
|
+
const conversation = await conversationService.getDataById(conversationId);
|
|
297
|
+
if (!conversation) {
|
|
298
|
+
throw new Error('Conversation not found');
|
|
299
|
+
}
|
|
300
|
+
// Check if user is owner or admin
|
|
301
|
+
const isOwnerOrAdmin = conversation.participants?.some(p => p.userId === userId && (p.role === messaging_1.DyFM_Msg_ParticipantRole.owner || p.role === messaging_1.DyFM_Msg_ParticipantRole.admin));
|
|
302
|
+
if (!isOwnerOrAdmin) {
|
|
303
|
+
throw new Error('Unauthorized: Only owners or admins can delete conversations');
|
|
304
|
+
}
|
|
305
|
+
await conversationService.deleteData(conversationId);
|
|
306
|
+
// Emit event
|
|
307
|
+
this.eventsService.emitConversationDeleted(conversationId);
|
|
308
|
+
}
|
|
309
|
+
catch (error) {
|
|
310
|
+
throw new fsm_dynamo_1.DyFM_Error({
|
|
311
|
+
...this.getDefaultErrorSettings('deleteConversation', error, issuer),
|
|
312
|
+
errorCode: `${global_settings_const_1.DyNTS_global_settings.systemShortCodeName}|DyNTS-MSG-DC`,
|
|
313
|
+
userMessage: 'Failed to delete conversation.',
|
|
314
|
+
});
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
/**
|
|
318
|
+
* Add participant to conversation
|
|
319
|
+
*/
|
|
320
|
+
async addParticipant(conversationId, newUserId, role = messaging_1.DyFM_Msg_ParticipantRole.member, requesterId, issuer) {
|
|
321
|
+
try {
|
|
322
|
+
const conversationService = new msg_conversation_data_service_1.DyNTS_Msg_Conversation_DataService({
|
|
323
|
+
issuer,
|
|
324
|
+
});
|
|
325
|
+
const conversation = await conversationService.getDataById(conversationId);
|
|
326
|
+
if (!conversation) {
|
|
327
|
+
throw new Error('Conversation not found');
|
|
328
|
+
}
|
|
329
|
+
// Check if requester is owner or admin
|
|
330
|
+
const isOwnerOrAdmin = conversation.participants?.some(p => p.userId === requesterId && (p.role === messaging_1.DyFM_Msg_ParticipantRole.owner || p.role === messaging_1.DyFM_Msg_ParticipantRole.admin));
|
|
331
|
+
if (!isOwnerOrAdmin) {
|
|
332
|
+
throw new Error('Unauthorized: Only owners or admins can add participants');
|
|
333
|
+
}
|
|
334
|
+
const newParticipant = {
|
|
335
|
+
userId: newUserId,
|
|
336
|
+
role,
|
|
337
|
+
joinedAt: new Date(),
|
|
338
|
+
};
|
|
339
|
+
await conversationService.addParticipant(conversationId, newParticipant);
|
|
340
|
+
// Emit event
|
|
341
|
+
this.eventsService.emitParticipantAdded(conversationId, newUserId);
|
|
342
|
+
}
|
|
343
|
+
catch (error) {
|
|
344
|
+
throw new fsm_dynamo_1.DyFM_Error({
|
|
345
|
+
...this.getDefaultErrorSettings('addParticipant', error, issuer),
|
|
346
|
+
errorCode: `${global_settings_const_1.DyNTS_global_settings.systemShortCodeName}|DyNTS-MSG-AP`,
|
|
347
|
+
userMessage: 'Failed to add participant.',
|
|
348
|
+
});
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
/**
|
|
352
|
+
* Remove participant from conversation
|
|
353
|
+
*/
|
|
354
|
+
async removeParticipant(conversationId, userIdToRemove, requesterId, issuer) {
|
|
355
|
+
try {
|
|
356
|
+
const conversationService = new msg_conversation_data_service_1.DyNTS_Msg_Conversation_DataService({
|
|
357
|
+
issuer,
|
|
358
|
+
});
|
|
359
|
+
const conversation = await conversationService.getDataById(conversationId);
|
|
360
|
+
if (!conversation) {
|
|
361
|
+
throw new Error('Conversation not found');
|
|
362
|
+
}
|
|
363
|
+
// Check if requester is owner or admin, or removing themselves
|
|
364
|
+
const isOwnerOrAdmin = conversation.participants?.some(p => p.userId === requesterId && (p.role === messaging_1.DyFM_Msg_ParticipantRole.owner || p.role === messaging_1.DyFM_Msg_ParticipantRole.admin));
|
|
365
|
+
const isSelfRemoval = requesterId === userIdToRemove;
|
|
366
|
+
if (!isOwnerOrAdmin && !isSelfRemoval) {
|
|
367
|
+
throw new Error('Unauthorized: Only owners, admins, or the user themselves can remove participants');
|
|
368
|
+
}
|
|
369
|
+
await conversationService.removeParticipant(conversationId, userIdToRemove);
|
|
370
|
+
// Emit event
|
|
371
|
+
this.eventsService.emitParticipantRemoved(conversationId, userIdToRemove);
|
|
372
|
+
}
|
|
373
|
+
catch (error) {
|
|
374
|
+
throw new fsm_dynamo_1.DyFM_Error({
|
|
375
|
+
...this.getDefaultErrorSettings('removeParticipant', error, issuer),
|
|
376
|
+
errorCode: `${global_settings_const_1.DyNTS_global_settings.systemShortCodeName}|DyNTS-MSG-RP`,
|
|
377
|
+
userMessage: 'Failed to remove participant.',
|
|
378
|
+
});
|
|
379
|
+
}
|
|
380
|
+
}
|
|
381
|
+
/**
|
|
382
|
+
* Get agent process steps for a message
|
|
383
|
+
*/
|
|
384
|
+
async getAgentProcessSteps(messageId, issuer) {
|
|
385
|
+
try {
|
|
386
|
+
const messageService = new msg_message_data_service_1.DyNTS_Msg_Message_DataService({
|
|
387
|
+
issuer,
|
|
388
|
+
});
|
|
389
|
+
const message = await messageService.getDataById(messageId);
|
|
390
|
+
if (!message) {
|
|
391
|
+
throw new Error('Message not found');
|
|
392
|
+
}
|
|
393
|
+
if (!message.agentProcessSteps) {
|
|
394
|
+
throw new Error('No agent process steps found for this message');
|
|
395
|
+
}
|
|
396
|
+
return message.agentProcessSteps;
|
|
397
|
+
}
|
|
398
|
+
catch (error) {
|
|
399
|
+
throw new fsm_dynamo_1.DyFM_Error({
|
|
400
|
+
...this.getDefaultErrorSettings('getAgentProcessSteps', error, issuer),
|
|
401
|
+
errorCode: `${global_settings_const_1.DyNTS_global_settings.systemShortCodeName}|DyNTS-MSG-GAPS`,
|
|
402
|
+
userMessage: 'Failed to get agent process steps.',
|
|
403
|
+
});
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
exports.DyNTS_Msg_Main_ControlService = DyNTS_Msg_Main_ControlService;
|
|
408
|
+
//# sourceMappingURL=msg-main.control-service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"msg-main.control-service.js","sourceRoot":"","sources":["../../../../src/_modules/messaging/_services/msg-main.control-service.ts"],"names":[],"mappings":";;;AAAA,iFAAmF;AACnF,sDAA6D;AAC7D,+DASyC;AAEzC,uFAAoF;AACpF,yEAA2E;AAC3E,mFAAqF;AACrF,6DAAgE;AAEhE;;;GAGG;AACH,MAAa,6BAA8B,SAAQ,0CAAsB;IAEvE,MAAM,CAAC,WAAW;QAChB,OAAO,6BAA6B,CAAC,oBAAoB,EAAE,CAAC;IAC9D,CAAC;IAEO,aAAa,GAAG,6CAAwB,CAAC,WAAW,EAAE,CAAC;IAE/D;;OAEG;IACH,KAAK,CAAC,WAAW,CACf,cAAsB,EACtB,WAAsC,EACtC,QAAgB,EAChB,MAAc;QAEd,IAAI,CAAC;YACH,iBAAiB;YACjB,MAAM,OAAO,GAAG,IAAI,4BAAgB,CAAC;gBACnC,cAAc;gBACd,QAAQ;gBACR,OAAO,EAAE,WAAW,CAAC,OAAO,IAAI,EAAE;gBAClC,IAAI,EAAE,WAAW,CAAC,IAAI,IAAI,yBAAa,CAAC,IAAI;gBAC5C,MAAM,EAAE,2BAAe,CAAC,IAAI;gBAC5B,MAAM,EAAE,IAAI,IAAI,EAAE;gBAClB,WAAW,EAAE,MAAM;gBACnB,gBAAgB,EAAE,MAAM;gBACxB,GAAG,WAAW;aACf,CAAC,CAAC;YAEH,eAAe;YACf,MAAM,cAAc,GAAG,IAAI,wDAA6B,CAAC;gBACvD,OAAO;gBACP,MAAM;aACP,CAAC,CAAC;YACH,MAAM,cAAc,CAAC,QAAQ,CAAC,cAAc,CAAC,IAAI,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;YAEjE,mCAAmC;YACnC,M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