@futdevpro/nts-dynamo 1.14.7 → 1.14.9
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/ai/_modules/document-ai/_models/data-models/dai-doc-chunk.data-model.d.ts.map +1 -1
- package/build/_modules/ai/_modules/document-ai/_models/data-models/dai-doc-chunk.data-model.js +0 -1
- package/build/_modules/ai/_modules/document-ai/_models/data-models/dai-doc-chunk.data-model.js.map +1 -1
- package/build/_modules/ai/_modules/open-ai/_services/oai-doc-chunk-data.service.d.ts +1 -0
- package/build/_modules/ai/_modules/open-ai/_services/oai-doc-chunk-data.service.d.ts.map +1 -1
- package/build/_modules/ai/_modules/open-ai/_services/oai-doc-chunk-data.service.js +29 -25
- package/build/_modules/ai/_modules/open-ai/_services/oai-doc-chunk-data.service.js.map +1 -1
- package/build/_modules/ai/_modules/open-ai/_services/oai-doc-page.data-service.d.ts +1 -0
- package/build/_modules/ai/_modules/open-ai/_services/oai-doc-page.data-service.d.ts.map +1 -1
- package/build/_modules/ai/_modules/open-ai/_services/oai-doc-page.data-service.js +63 -23
- package/build/_modules/ai/_modules/open-ai/_services/oai-doc-page.data-service.js.map +1 -1
- package/build/_modules/ai/_modules/open-ai/_services/oai-document.data-service.d.ts.map +1 -1
- package/build/_modules/ai/_modules/open-ai/_services/oai-document.data-service.js +50 -33
- package/build/_modules/ai/_modules/open-ai/_services/oai-document.data-service.js.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/discord-bot/_services/dibo-io.control-service.js +1 -1
- package/build/_modules/discord-bot/_services/dibo-io.control-service.js.map +1 -1
- 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/_enums/msg-event-key.enum.d.ts +23 -0
- package/build/_modules/messaging/_enums/msg-event-key.enum.d.ts.map +1 -0
- package/build/_modules/messaging/_enums/msg-event-key.enum.js +32 -0
- package/build/_modules/messaging/_enums/msg-event-key.enum.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 +13 -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 +71 -3
- package/src/_collections/global-settings.const.ts +2 -0
- package/src/_models/interfaces/global-settings.interface.ts +20 -2
- package/src/_modules/ai/_modules/document-ai/_models/data-models/dai-doc-chunk.data-model.ts +0 -1
- package/src/_modules/ai/_modules/open-ai/_services/oai-doc-chunk-data.service.ts +34 -27
- package/src/_modules/ai/_modules/open-ai/_services/oai-doc-page.data-service.ts +77 -23
- package/src/_modules/ai/_modules/open-ai/_services/oai-document.data-service.ts +59 -33
- 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/discord-bot/_services/dibo-io.control-service.ts +1 -1
- 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/_enums/msg-event-key.enum.ts +31 -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":"bot-channel.interface.js","sourceRoot":"","sources":["../../../../src/_modules/bot/_models/bot-channel.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DyNTS_Bot_Message } from './bot-message.interface';
|
|
2
|
+
export interface DyNTS_Bot_Command<T_PlatformMessage extends DyNTS_Bot_Message<any> = DyNTS_Bot_Message<any>> {
|
|
3
|
+
command: string;
|
|
4
|
+
description: string;
|
|
5
|
+
commandHandler: (message: T_PlatformMessage) => Promise<void>;
|
|
6
|
+
permissionNeeded?: (message: T_PlatformMessage) => Promise<boolean>;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=bot-command.interface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bot-command.interface.d.ts","sourceRoot":"","sources":["../../../../src/_modules/bot/_models/bot-command.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,MAAM,WAAW,iBAAiB,CAAC,iBAAiB,SAAS,iBAAiB,CAAC,GAAG,CAAC,GAAG,iBAAiB,CAAC,GAAG,CAAC;IAC1G,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,CAAC,OAAO,EAAE,iBAAiB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC9D,gBAAgB,CAAC,EAAE,CAAC,OAAO,EAAE,iBAAiB,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;CACrE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bot-command.interface.js","sourceRoot":"","sources":["../../../../src/_modules/bot/_models/bot-command.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { DyNTS_Bot_Command } from './bot-command.interface';
|
|
2
|
+
export interface DyNTS_Bot_Global_Settings {
|
|
3
|
+
/**
|
|
4
|
+
* this setting will set the debug level for the bot
|
|
5
|
+
*
|
|
6
|
+
* 0 - no logs
|
|
7
|
+
* 1 - errors sending to report channel
|
|
8
|
+
* 2 - errors sending as response, will log events in console
|
|
9
|
+
* 3 - errors sending as response, creating reports to report channel, debug events are in console (default)
|
|
10
|
+
* 4 - errors and debug events are sending as response
|
|
11
|
+
* 5 - all events are sending as response (that are set to send)
|
|
12
|
+
* 6 - all debug logs are enabled
|
|
13
|
+
*
|
|
14
|
+
* _
|
|
15
|
+
*/
|
|
16
|
+
debugLevel: number;
|
|
17
|
+
allowedUsers: 'all' | string[];
|
|
18
|
+
messageSettings: {
|
|
19
|
+
/**
|
|
20
|
+
* this setting will set the time limit for message fetching
|
|
21
|
+
* so we will stop fetching messages sent later than this time
|
|
22
|
+
*/
|
|
23
|
+
messageFetchTimeLimit: number;
|
|
24
|
+
/**
|
|
25
|
+
* this setting will set the count limit for message fetching
|
|
26
|
+
* so we will stop fetching messages after this count
|
|
27
|
+
*/
|
|
28
|
+
messageFetchCountLimit: number;
|
|
29
|
+
/**
|
|
30
|
+
* this setting will set the delay for message sending,
|
|
31
|
+
* so we won't flood the channel too fast
|
|
32
|
+
*/
|
|
33
|
+
messageSendDelay: number;
|
|
34
|
+
/**
|
|
35
|
+
* this setting will be used to skip answering to messages
|
|
36
|
+
* if the message contains any of these flags, the bot will not answer
|
|
37
|
+
*
|
|
38
|
+
* @default [ '[BOT-SKIP]' ]
|
|
39
|
+
*/
|
|
40
|
+
skipFlags: string[];
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* this setting will set the channel settings for the bot
|
|
44
|
+
*/
|
|
45
|
+
channelSettings: {
|
|
46
|
+
/**
|
|
47
|
+
* this setting will set the name of the channel where the bot will send the reports
|
|
48
|
+
*
|
|
49
|
+
* @default 'bot-report'
|
|
50
|
+
*/
|
|
51
|
+
reportChannelName: string;
|
|
52
|
+
/**
|
|
53
|
+
* this setting will set the channels where the bot will answer automatically
|
|
54
|
+
* whenever a message is sent in one of these channels, that is not from the bot
|
|
55
|
+
*
|
|
56
|
+
* it will be populated automatically from the default channels
|
|
57
|
+
*/
|
|
58
|
+
allowedChannels: string[];
|
|
59
|
+
/**
|
|
60
|
+
* this setting will set if the bot can answer in Direct Messages Channels
|
|
61
|
+
*
|
|
62
|
+
* @default false
|
|
63
|
+
*/
|
|
64
|
+
dmIsAllowed: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* this setting will set the default channels where the bot will answer automatically
|
|
67
|
+
* whenever a message is sent in one of these channels, that is not from the bot
|
|
68
|
+
*
|
|
69
|
+
* @default [ 'bot-report' ]
|
|
70
|
+
*/
|
|
71
|
+
defaultChannels: string[];
|
|
72
|
+
};
|
|
73
|
+
commandSettings: {
|
|
74
|
+
commandOperator: string;
|
|
75
|
+
commands: DyNTS_Bot_Command[];
|
|
76
|
+
};
|
|
77
|
+
allowBotsInteractEachOther: boolean;
|
|
78
|
+
}
|
|
79
|
+
//# sourceMappingURL=bot-global-settings.interface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bot-global-settings.interface.d.ts","sourceRoot":"","sources":["../../../../src/_modules/bot/_models/bot-global-settings.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,MAAM,WAAW,yBAAyB;IACxC;;;;;;;;;;;;OAYG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB,YAAY,EAAE,KAAK,GAAG,MAAM,EAAE,CAAC;IAE/B,eAAe,EAAE;QACf;;;WAGG;QACH,qBAAqB,EAAE,MAAM,CAAC;QAC9B;;;WAGG;QACH,sBAAsB,EAAE,MAAM,CAAC;QAC/B;;;WAGG;QACH,gBAAgB,EAAE,MAAM,CAAC;QAEzB;;;;;WAKG;QACH,SAAS,EAAE,MAAM,EAAE,CAAC;KACrB,CAAC;IAEF;;OAEG;IACH,eAAe,EAAE;QACf;;;;WAIG;QACH,iBAAiB,EAAE,MAAM,CAAC;QAE1B;;;;;WAKG;QACH,eAAe,EAAE,MAAM,EAAE,CAAC;QAC1B;;;;WAIG;QACH,WAAW,EAAE,OAAO,CAAC;QAErB;;;;;WAKG;QACH,eAAe,EAAE,MAAM,EAAE,CAAC;KAC3B,CAAC;IAEF,eAAe,EAAE;QACf,eAAe,EAAE,MAAM,CAAC;QACxB,QAAQ,EAAE,iBAAiB,EAAE,CAAC;KAC/B,CAAC;IAEF,0BAA0B,EAAE,OAAO,CAAC;CACrC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bot-global-settings.interface.js","sourceRoot":"","sources":["../../../../src/_modules/bot/_models/bot-global-settings.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bot-last-mention-date.interface.d.ts","sourceRoot":"","sources":["../../../../src/_modules/bot/_models/bot-last-mention-date.interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,yBAAyB;IACxC,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,IAAI,GAAG,IAAI,CAAC;CAC9B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bot-last-mention-date.interface.js","sourceRoot":"","sources":["../../../../src/_modules/bot/_models/bot-last-mention-date.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bot-last-message-date.interface.d.ts","sourceRoot":"","sources":["../../../../src/_modules/bot/_models/bot-last-message-date.interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,yBAAyB;IACxC,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,IAAI,GAAG,IAAI,CAAC;CAC9B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bot-last-message-date.interface.js","sourceRoot":"","sources":["../../../../src/_modules/bot/_models/bot-last-message-date.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface DyNTS_Bot_Message<T_PlatformMessage = any> {
|
|
2
|
+
id: string;
|
|
3
|
+
content: string;
|
|
4
|
+
authorId: string;
|
|
5
|
+
authorName: string;
|
|
6
|
+
authorDisplayName: string;
|
|
7
|
+
channelId: string;
|
|
8
|
+
channelName: string;
|
|
9
|
+
timestamp: number;
|
|
10
|
+
isBot: boolean;
|
|
11
|
+
replyToMessageId?: string;
|
|
12
|
+
mentions: string[];
|
|
13
|
+
rawPlatformMessage: T_PlatformMessage;
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=bot-message.interface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bot-message.interface.d.ts","sourceRoot":"","sources":["../../../../src/_modules/bot/_models/bot-message.interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB,CAAC,iBAAiB,GAAG,GAAG;IACxD,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,OAAO,CAAC;IACf,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,kBAAkB,EAAE,iBAAiB,CAAC;CACvC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bot-message.interface.js","sourceRoot":"","sources":["../../../../src/_modules/bot/_models/bot-message.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { DyNTS_Bot_Message } from './bot-message.interface';
|
|
2
|
+
import { DyNTS_Bot_Channel } from './bot-channel.interface';
|
|
3
|
+
import { DyNTS_Bot_User } from './bot-user.interface';
|
|
4
|
+
import { DyNTS_Bot_LastMessageDate } from './bot-last-message-date.interface';
|
|
5
|
+
import { DyNTS_Bot_LastMentionDate } from './bot-last-mention-date.interface';
|
|
6
|
+
import { DyNTS_Bot_Provider_Type } from '../_enums/bot-provider.enum';
|
|
7
|
+
import { DyNTS_Bot_Global_Settings } from './bot-global-settings.interface';
|
|
8
|
+
export interface DyNTS_Bot_Provider_Config extends DyNTS_Bot_Global_Settings {
|
|
9
|
+
provider: DyNTS_Bot_Provider_Type;
|
|
10
|
+
providerInstance?: DyNTS_Bot_Provider;
|
|
11
|
+
discord?: {
|
|
12
|
+
token: string;
|
|
13
|
+
guildId: string;
|
|
14
|
+
clientId: string;
|
|
15
|
+
oauth2Url: string;
|
|
16
|
+
};
|
|
17
|
+
slack?: {
|
|
18
|
+
token: string;
|
|
19
|
+
workspace: string;
|
|
20
|
+
};
|
|
21
|
+
teams?: {
|
|
22
|
+
appId: string;
|
|
23
|
+
appPassword: string;
|
|
24
|
+
tenantId: string;
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
export interface DyNTS_Bot_Provider<T_PlatformChannel extends DyNTS_Bot_Channel<any> = DyNTS_Bot_Channel<any>, T_PlatformMessage extends DyNTS_Bot_Message<any> = DyNTS_Bot_Message<any>, T_PlatformUser extends DyNTS_Bot_User<any> = DyNTS_Bot_User<any>> {
|
|
28
|
+
initialize(config: DyNTS_Bot_Provider_Config): Promise<void>;
|
|
29
|
+
login(token: string): Promise<void>;
|
|
30
|
+
getChannelByName(name: string): Promise<T_PlatformChannel>;
|
|
31
|
+
sendMessageToChannelByName(channelName: string, message: string): Promise<T_PlatformMessage>;
|
|
32
|
+
getMessagesFromChannelByChannelName(channelName: string, limit?: number): Promise<T_PlatformMessage[]>;
|
|
33
|
+
getLastMessageInChannel(channelName: string): Promise<T_PlatformMessage>;
|
|
34
|
+
clearChannel(channelId: string): Promise<void>;
|
|
35
|
+
sendMessage(channelId: string, content: string): Promise<T_PlatformMessage>;
|
|
36
|
+
replyToMessage(messageId: string, channelId: string, content: string): Promise<T_PlatformMessage>;
|
|
37
|
+
sendTyping(channelId: string): Promise<void>;
|
|
38
|
+
fetchMessages(channelId: string, limit: number): Promise<T_PlatformMessage[]>;
|
|
39
|
+
fetchAllMessagesWithPaging(channelId: string, maxFetch?: number): Promise<T_PlatformMessage[]>;
|
|
40
|
+
deleteMessage(messageId: string, channelId: string): Promise<void>;
|
|
41
|
+
getUserByName(username: string): Promise<T_PlatformUser>;
|
|
42
|
+
getUserMention(userId: string): string;
|
|
43
|
+
readMembersInChannel(channelName: string): Promise<T_PlatformUser[]>;
|
|
44
|
+
readMemberNamesInChannel(channelName: string): Promise<string[]>;
|
|
45
|
+
getLastMessageSentBy(channelName: string, username: string): Promise<T_PlatformMessage>;
|
|
46
|
+
getLastMentionOf(channelName: string, username: string): Promise<T_PlatformMessage>;
|
|
47
|
+
readLastMessageDatesByMembers(channelName: string, memberNames: string[]): Promise<DyNTS_Bot_LastMessageDate[]>;
|
|
48
|
+
readLastMessageWithMemberNamePingInIt(channelName: string, users: T_PlatformUser[]): Promise<DyNTS_Bot_LastMentionDate[]>;
|
|
49
|
+
getRoleByName?(roleName: string): any;
|
|
50
|
+
getRolePingByName?(roleName: string): Promise<string>;
|
|
51
|
+
getRolePingsByName?(roleNames: string[]): Promise<string>;
|
|
52
|
+
onMessage(handler: (message: T_PlatformMessage, issuer: string) => void): void;
|
|
53
|
+
onReady(handler: () => void): void;
|
|
54
|
+
onError(handler: (error: Error) => void): void;
|
|
55
|
+
getBotId(): string;
|
|
56
|
+
getBotDisplayName(): string;
|
|
57
|
+
getProviderName(): string;
|
|
58
|
+
isReady(): boolean;
|
|
59
|
+
}
|
|
60
|
+
//# sourceMappingURL=bot-provider.interface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bot-provider.interface.d.ts","sourceRoot":"","sources":["../../../../src/_modules/bot/_models/bot-provider.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAC9E,OAAO,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAC9E,OAAO,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AAE5E,MAAM,WAAW,yBAA0B,SAAQ,yBAAyB;IAC1E,QAAQ,EAAE,uBAAuB,CAAC;IA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AAyB,EAAE,CAAC,CAAC;IAChH,qCAAqC,CAAC,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,cAAc,EAAE,GAAG,OAAO,CAAC,yBAAyB,EAAE,CAAC,CAAC;IAG1H,aAAa,CAAC,CAAC,QAAQ,EAAE,MAAM,GAAG,GAAG,CAAC;IACtC,iBAAiB,CAAC,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IACtD,kBAAkB,CAAC,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAG1D,SAAS,CAAC,OAAO,EAAE,CAAC,OAAO,EAAE,iBAAiB,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,GAAG,IAAI,CAAC;IAC/E,OAAO,CAAC,OAAO,EAAE,MAAM,IAAI,GAAG,IAAI,CAAC;IACnC,OAAO,CAAC,OAAO,EAAE,CAAC,KAAK,EAAE,KAAK,KAAK,IAAI,GAAG,IAAI,CAAC;IAG/C,QAAQ,IAAI,MAAM,CAAC;IACnB,iBAAiB,IAAI,MAAM,CAAC;IAC5B,eAAe,IAAI,MAAM,CAAC;IAC1B,OAAO,IAAI,OAAO,CAAC;CACpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bot-provider.interface.js","sourceRoot":"","sources":["../../../../src/_modules/bot/_models/bot-provider.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bot-user.interface.d.ts","sourceRoot":"","sources":["../../../../src/_modules/bot/_models/bot-user.interface.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,cAAc,CAAC,cAAc,GAAG,GAAG;IAClD,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,OAAO,CAAC;IACf,eAAe,EAAE,cAAc,CAAC;CACjC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bot-user.interface.js","sourceRoot":"","sources":["../../../../src/_modules/bot/_models/bot-user.interface.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { DyNTS_Bot_Operations_Util } from '../../../_collections/bot-operations.util';
|
|
2
|
+
import { DyNTS_DiB_Message, DyNTS_DiB_Channel, DyNTS_DiB_User } from '../_models/dib-platform.types';
|
|
3
|
+
import { DyNTS_DiB_Provider } from '../_services/dib-provider.service';
|
|
4
|
+
/**
|
|
5
|
+
* Discord Bot Operations Utility
|
|
6
|
+
*
|
|
7
|
+
* Platform-specific implementation of bot operations for Discord
|
|
8
|
+
*/
|
|
9
|
+
export declare class DyNTS_DiB_Operations_Util extends DyNTS_Bot_Operations_Util<DyNTS_DiB_Channel, DyNTS_DiB_Message, DyNTS_DiB_User, DyNTS_DiB_Provider> {
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=dib-operations.util.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dib-operations.util.d.ts","sourceRoot":"","sources":["../../../../../../src/_modules/bot/_modules/discord-bot/_collections/dib-operations.util.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,2CAA2C,CAAC;AACtF,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AACrG,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAEvE;;;;GAIG;AACH,qBAAa,yBAA0B,SAAQ,yBAAyB,CACtE,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,EACd,kBAAkB,CACnB;CAGA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DyNTS_DiB_Operations_Util = void 0;
|
|
4
|
+
const bot_operations_util_1 = require("../../../_collections/bot-operations.util");
|
|
5
|
+
/**
|
|
6
|
+
* Discord Bot Operations Utility
|
|
7
|
+
*
|
|
8
|
+
* Platform-specific implementation of bot operations for Discord
|
|
9
|
+
*/
|
|
10
|
+
class DyNTS_DiB_Operations_Util extends bot_operations_util_1.DyNTS_Bot_Operations_Util {
|
|
11
|
+
}
|
|
12
|
+
exports.DyNTS_DiB_Operations_Util = DyNTS_DiB_Operations_Util;
|
|
13
|
+
//# sourceMappingURL=dib-operations.util.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dib-operations.util.js","sourceRoot":"","sources":["../../../../../../src/_modules/bot/_modules/discord-bot/_collections/dib-operations.util.ts"],"names":[],"mappings":";;;AAAA,mFAAsF;AAItF;;;;GAIG;AACH,MAAa,yBAA0B,SAAQ,+CAK9C;CAGA;AARD,8DAQC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dib.util.d.ts","sourceRoot":"","sources":["../../../../../../src/_modules/bot/_modules/discord-bot/_collections/dib.util.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAGvE,qBAAa,cAAc;WAEZ,QAAQ,CAAC,QAAQ,EAAE,kBAAkB,GAAG,OAAO,CAAC,IAAI,CAAC;CAanE"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DyNTS_DiB_Util = void 0;
|
|
4
|
+
const fsm_dynamo_1 = require("@futdevpro/fsm-dynamo");
|
|
5
|
+
const global_settings_const_1 = require("../../../../../_collections/global-settings.const");
|
|
6
|
+
class DyNTS_DiB_Util {
|
|
7
|
+
static async reportIn(provider) {
|
|
8
|
+
try {
|
|
9
|
+
const reportMessage = `${provider.getBotDisplayName()} report for duty! ` +
|
|
10
|
+
`(v${global_settings_const_1.DyNTS_global_settings.systemVersion} ${global_settings_const_1.DyNTS_global_settings.env_settings?.environment})`;
|
|
11
|
+
await provider.sendMessageToChannelByName(global_settings_const_1.DyNTS_global_settings.bot_settings?.channelSettings?.reportChannelName || 'bot-reports', reportMessage);
|
|
12
|
+
}
|
|
13
|
+
catch (error) {
|
|
14
|
+
fsm_dynamo_1.DyFM_Error.logSimple('Failed to report in', error);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.DyNTS_DiB_Util = DyNTS_DiB_Util;
|
|
19
|
+
//# sourceMappingURL=dib.util.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dib.util.js","sourceRoot":"","sources":["../../../../../../src/_modules/bot/_modules/discord-bot/_collections/dib.util.ts"],"names":[],"mappings":";;;AAAA,sDAA6D;AAE7D,6FAA0F;AAE1F,MAAa,cAAc;IAEzB,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,QAA4B;QAChD,IAAI,CAAC;YACH,MAAM,aAAa,GAAG,GAAG,QAAQ,CAAC,iBAAiB,EAAE,oBAAoB;gBACvE,KAAK,6CAAqB,CAAC,aAAa,IAAI,6CAAqB,CAAC,YAAY,EAAE,WAAW,GAAG,CAAC;YAEjG,MAAM,QAAQ,CAAC,0BAA0B,CACvC,6CAAqB,CAAC,YAAY,EAAE,eAAe,EAAE,iBAAiB,IAAI,aAAa,EACvF,aAAa,CACd,CAAC;QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,uBAAU,CAAC,SAAS,CAAC,qBAAqB,EAAE,KAAK,CAAC,CAAC;QACrD,CAAC;IACH,CAAC;CACF;AAfD,wCAeC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Message, TextChannel, GuildMember } from 'discord.js';
|
|
2
|
+
import { DyNTS_Bot_Message } from '../../../_models/bot-message.interface';
|
|
3
|
+
import { DyNTS_Bot_Channel } from '../../../_models/bot-channel.interface';
|
|
4
|
+
import { DyNTS_Bot_User } from '../../../_models/bot-user.interface';
|
|
5
|
+
export type DyNTS_DiB_Message = DyNTS_Bot_Message<Message>;
|
|
6
|
+
export type DyNTS_DiB_Channel = DyNTS_Bot_Channel<TextChannel>;
|
|
7
|
+
export type DyNTS_DiB_User = DyNTS_Bot_User<GuildMember>;
|
|
8
|
+
//# sourceMappingURL=dib-platform.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dib-platform.types.d.ts","sourceRoot":"","sources":["../../../../../../src/_modules/bot/_modules/discord-bot/_models/dib-platform.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AAC3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AAC3E,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AAGrE,MAAM,MAAM,iBAAiB,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;AAC3D,MAAM,MAAM,iBAAiB,GAAG,iBAAiB,CAAC,WAAW,CAAC,CAAC;AAC/D,MAAM,MAAM,cAAc,GAAG,cAAc,CAAC,WAAW,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dib-platform.types.js","sourceRoot":"","sources":["../../../../../../src/_modules/bot/_modules/discord-bot/_models/dib-platform.types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { Role } from 'discord.js';
|
|
2
|
+
import { DyNTS_Bot_Provider, DyNTS_Bot_Provider_Config } from '../../../_models/bot-provider.interface';
|
|
3
|
+
import { DyNTS_Bot_LastMessageDate } from '../../../_models/bot-last-message-date.interface';
|
|
4
|
+
import { DyNTS_Bot_LastMentionDate } from '../../../_models/bot-last-mention-date.interface';
|
|
5
|
+
import { DyNTS_DiB_Message, DyNTS_DiB_Channel, DyNTS_DiB_User } from '../_models/dib-platform.types';
|
|
6
|
+
export declare class DyNTS_DiB_Provider implements DyNTS_Bot_Provider<DyNTS_DiB_Channel, DyNTS_DiB_Message, DyNTS_DiB_User> {
|
|
7
|
+
private client;
|
|
8
|
+
private guild;
|
|
9
|
+
private channelCache;
|
|
10
|
+
private roleCache;
|
|
11
|
+
private isInitialized;
|
|
12
|
+
private config;
|
|
13
|
+
private messageHandlers;
|
|
14
|
+
private readyHandlers;
|
|
15
|
+
private errorHandlers;
|
|
16
|
+
constructor();
|
|
17
|
+
initialize(config: DyNTS_Bot_Provider_Config): Promise<void>;
|
|
18
|
+
login(token: string): Promise<void>;
|
|
19
|
+
private setupEventListeners;
|
|
20
|
+
getChannelByName(name: string): Promise<DyNTS_DiB_Channel>;
|
|
21
|
+
sendMessageToChannelByName(channelName: string, message: string): Promise<DyNTS_DiB_Message>;
|
|
22
|
+
getMessagesFromChannelByChannelName(channelName: string, limit?: number): Promise<DyNTS_DiB_Message[]>;
|
|
23
|
+
getLastMessageInChannel(channelName: string): Promise<DyNTS_DiB_Message>;
|
|
24
|
+
clearChannel(channelId: string): Promise<void>;
|
|
25
|
+
sendMessage(channelId: string, content: string): Promise<DyNTS_DiB_Message>;
|
|
26
|
+
replyToMessage(messageId: string, channelId: string, content: string): Promise<DyNTS_DiB_Message>;
|
|
27
|
+
sendTyping(channelId: string): Promise<void>;
|
|
28
|
+
fetchMessages(channelId: string, limit: number): Promise<DyNTS_DiB_Message[]>;
|
|
29
|
+
fetchAllMessagesWithPaging(channelId: string, maxFetch?: number): Promise<DyNTS_DiB_Message[]>;
|
|
30
|
+
deleteMessage(messageId: string, channelId: string): Promise<void>;
|
|
31
|
+
getUserByName(username: string): Promise<DyNTS_DiB_User>;
|
|
32
|
+
getUserMention(userId: string): string;
|
|
33
|
+
readMembersInChannel(channelName: string): Promise<DyNTS_DiB_User[]>;
|
|
34
|
+
readMemberNamesInChannel(channelName: string): Promise<string[]>;
|
|
35
|
+
getLastMessageSentBy(channelName: string, username: string): Promise<DyNTS_DiB_Message>;
|
|
36
|
+
getLastMentionOf(channelName: string, username: string): Promise<DyNTS_DiB_Message>;
|
|
37
|
+
readLastMessageDatesByMembers(channelName: string, memberNames: string[]): Promise<DyNTS_Bot_LastMessageDate[]>;
|
|
38
|
+
readLastMessageWithMemberNamePingInIt(channelName: string, users: DyNTS_DiB_User[]): Promise<DyNTS_Bot_LastMentionDate[]>;
|
|
39
|
+
getRoleByName(roleName: string): Role;
|
|
40
|
+
getRolePingByName(roleName: string): Promise<string>;
|
|
41
|
+
getRolePingsByName(roleNames: string[]): Promise<string>;
|
|
42
|
+
onMessage(handler: (message: DyNTS_DiB_Message, issuer: string) => void): void;
|
|
43
|
+
onReady(handler: () => void): void;
|
|
44
|
+
onError(handler: (error: Error) => void): void;
|
|
45
|
+
getBotId(): string;
|
|
46
|
+
getBotDisplayName(): string;
|
|
47
|
+
getProviderName(): string;
|
|
48
|
+
isReady(): boolean;
|
|
49
|
+
private translateMessage;
|
|
50
|
+
private translateChannel;
|
|
51
|
+
private translateUser;
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=dib-provider.service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dib-provider.service.d.ts","sourceRoot":"","sources":["../../../../../../src/_modules/bot/_modules/discord-bot/_services/dib-provider.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgF,IAAI,EAAe,MAAM,YAAY,CAAC;AAE7H,OAAO,EAAE,kBAAkB,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAC;AACxG,OAAO,EAAE,yBAAyB,EAAE,MAAM,kDAAkD,CAAC;AAC7F,OAAO,EAAE,yBAAyB,EAAE,MAAM,kDAAkD,CAAC;AAE7F,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAGrG,qBAAa,kBAAmB,YAAW,kBAAkB,CAC3D,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,CACf;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