@futdevpro/nts-dynamo 1.14.29 → 1.14.32
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/_modules/ai/_modules/open-ai/_services/oai-llm.service-base.d.ts +0 -3
- package/build/_modules/ai/_modules/open-ai/_services/oai-llm.service-base.d.ts.map +1 -1
- package/build/_modules/ai/_modules/open-ai/_services/oai-llm.service-base.js +20 -15
- package/build/_modules/ai/_modules/open-ai/_services/oai-llm.service-base.js.map +1 -1
- package/build/_modules/ai/_services/ai-llm.service-base.d.ts +0 -2
- package/build/_modules/ai/_services/ai-llm.service-base.d.ts.map +1 -1
- package/build/_modules/ai/_services/ai-provider.service-base.d.ts +2 -1
- package/build/_modules/ai/_services/ai-provider.service-base.d.ts.map +1 -1
- package/build/_modules/ai/_services/ai-provider.service-base.js +2 -1
- package/build/_modules/ai/_services/ai-provider.service-base.js.map +1 -1
- package/build/_modules/assistant/_collections/ass.util.d.ts +2 -2
- package/build/_modules/assistant/_collections/ass.util.d.ts.map +1 -1
- package/build/_modules/assistant/_services/ass-io.control-service.d.ts +5 -9
- package/build/_modules/assistant/_services/ass-io.control-service.d.ts.map +1 -1
- package/build/_modules/assistant/_services/ass-io.control-service.js +9 -10
- package/build/_modules/assistant/_services/ass-io.control-service.js.map +1 -1
- package/build/_modules/assistant/_services/ass-main.control-service.d.ts +26 -10
- package/build/_modules/assistant/_services/ass-main.control-service.d.ts.map +1 -1
- package/build/_modules/assistant/_services/ass-main.control-service.js +49 -4
- package/build/_modules/assistant/_services/ass-main.control-service.js.map +1 -1
- package/build/_modules/assistant/index.d.ts +1 -1
- package/build/_modules/assistant/index.d.ts.map +1 -1
- package/build/_modules/assistant/index.js +1 -1
- package/build/_modules/assistant/index.js.map +1 -1
- package/build/_modules/bot/_models/bot-channel-wrapper.interface.d.ts +17 -0
- package/build/_modules/bot/_models/bot-channel-wrapper.interface.d.ts.map +1 -0
- package/build/_modules/bot/_models/{bot-message.interface.js → bot-channel-wrapper.interface.js} +1 -1
- package/build/_modules/bot/_models/bot-channel-wrapper.interface.js.map +1 -0
- package/build/_modules/bot/_models/bot-command.interface.d.ts +2 -2
- package/build/_modules/bot/_models/bot-command.interface.d.ts.map +1 -1
- package/build/_modules/bot/_models/bot-global-settings.interface.d.ts +1 -1
- package/build/_modules/bot/_models/bot-global-settings.interface.d.ts.map +1 -1
- package/build/_modules/bot/_models/bot-message-wrapper.interface.d.ts +16 -13
- package/build/_modules/bot/_models/bot-message-wrapper.interface.d.ts.map +1 -1
- package/build/_modules/bot/_models/bot-user-wrapper.interface.d.ts +17 -0
- package/build/_modules/bot/_models/bot-user-wrapper.interface.d.ts.map +1 -0
- package/build/_modules/bot/_models/{bot-channel.interface.js → bot-user-wrapper.interface.js} +1 -1
- package/build/_modules/bot/_models/bot-user-wrapper.interface.js.map +1 -0
- package/build/_modules/bot/_modules/discord-bot/_models/dib-platform.types.d.ts +0 -7
- package/build/_modules/bot/_modules/discord-bot/_models/dib-platform.types.d.ts.map +1 -1
- package/build/_modules/bot/_modules/discord-bot/_models/dib-platform.types.js +10 -2
- package/build/_modules/bot/_modules/discord-bot/_models/dib-platform.types.js.map +1 -1
- package/build/_modules/bot/_modules/discord-bot/_services/dib-messaging-provider.control-service.d.ts +68 -0
- package/build/_modules/bot/_modules/discord-bot/_services/dib-messaging-provider.control-service.d.ts.map +1 -0
- package/build/_modules/bot/_modules/discord-bot/_services/dib-messaging-provider.control-service.js +397 -0
- package/build/_modules/bot/_modules/discord-bot/_services/dib-messaging-provider.control-service.js.map +1 -0
- package/build/_modules/bot/_modules/discord-bot/index.d.ts +1 -4
- package/build/_modules/bot/_modules/discord-bot/index.d.ts.map +1 -1
- package/build/_modules/bot/_modules/discord-bot/index.js +2 -5
- package/build/_modules/bot/_modules/discord-bot/index.js.map +1 -1
- package/build/_modules/bot/_modules/dynamo-bot/_collections/dyb-operations.util.d.ts +3 -3
- package/build/_modules/bot/_modules/dynamo-bot/_collections/dyb-operations.util.d.ts.map +1 -1
- package/build/_modules/bot/_modules/dynamo-bot/_collections/dyb-operations.util.js +2 -2
- package/build/_modules/bot/_modules/dynamo-bot/_collections/dyb-operations.util.js.map +1 -1
- package/build/_modules/bot/_modules/dynamo-bot/_models/dyb-platform.types.d.ts +6 -6
- package/build/_modules/bot/_modules/dynamo-bot/_models/dyb-platform.types.d.ts.map +1 -1
- package/build/_modules/bot/_modules/dynamo-bot/_services/dyb-messaging-provider.control-service.d.ts +60 -0
- package/build/_modules/bot/_modules/dynamo-bot/_services/dyb-messaging-provider.control-service.d.ts.map +1 -0
- package/build/_modules/bot/_modules/dynamo-bot/_services/{dyb-messaging-provider.service.js → dyb-messaging-provider.control-service.js} +134 -108
- package/build/_modules/bot/_modules/dynamo-bot/_services/dyb-messaging-provider.control-service.js.map +1 -0
- package/build/_modules/bot/_modules/dynamo-bot/index.d.ts +1 -2
- package/build/_modules/bot/_modules/dynamo-bot/index.d.ts.map +1 -1
- package/build/_modules/bot/_modules/dynamo-bot/index.js +1 -2
- package/build/_modules/bot/_modules/dynamo-bot/index.js.map +1 -1
- package/build/_modules/bot/_modules/slack-bot/_models/slb-platform.types.d.ts +6 -6
- package/build/_modules/bot/_modules/slack-bot/_models/slb-platform.types.d.ts.map +1 -1
- package/build/_modules/bot/_modules/slack-bot/_services/slb-messaging-provider.control-service.d.ts +56 -0
- package/build/_modules/bot/_modules/slack-bot/_services/slb-messaging-provider.control-service.d.ts.map +1 -0
- package/build/_modules/bot/_modules/slack-bot/_services/slb-messaging-provider.control-service.js +135 -0
- package/build/_modules/bot/_modules/slack-bot/_services/slb-messaging-provider.control-service.js.map +1 -0
- package/build/_modules/bot/_modules/slack-bot/index.d.ts +1 -2
- package/build/_modules/bot/_modules/slack-bot/index.d.ts.map +1 -1
- package/build/_modules/bot/_modules/slack-bot/index.js +1 -3
- package/build/_modules/bot/_modules/slack-bot/index.js.map +1 -1
- package/build/_modules/bot/_modules/teams-bot/_models/teb-platform.types.d.ts +6 -6
- package/build/_modules/bot/_modules/teams-bot/_models/teb-platform.types.d.ts.map +1 -1
- package/build/_modules/bot/_modules/teams-bot/_services/teb-messaging-provider.control-service.d.ts +56 -0
- package/build/_modules/bot/_modules/teams-bot/_services/teb-messaging-provider.control-service.d.ts.map +1 -0
- package/build/_modules/bot/_modules/teams-bot/_services/teb-messaging-provider.control-service.js +135 -0
- package/build/_modules/bot/_modules/teams-bot/_services/teb-messaging-provider.control-service.js.map +1 -0
- package/build/_modules/bot/_modules/teams-bot/index.d.ts +1 -2
- package/build/_modules/bot/_modules/teams-bot/index.d.ts.map +1 -1
- package/build/_modules/bot/_modules/teams-bot/index.js +1 -3
- package/build/_modules/bot/_modules/teams-bot/index.js.map +1 -1
- package/build/_modules/bot/_services/bot-commands.control-service.d.ts +8 -11
- package/build/_modules/bot/_services/bot-commands.control-service.d.ts.map +1 -1
- package/build/_modules/bot/_services/bot-commands.control-service.js +60 -15
- package/build/_modules/bot/_services/bot-commands.control-service.js.map +1 -1
- package/build/_modules/bot/_services/bot-io.control-service.d.ts +16 -17
- package/build/_modules/bot/_services/bot-io.control-service.d.ts.map +1 -1
- package/build/_modules/bot/_services/bot-io.control-service.js +60 -51
- package/build/_modules/bot/_services/bot-io.control-service.js.map +1 -1
- package/build/_modules/bot/_services/bot-main.control-service.d.ts +18 -37
- package/build/_modules/bot/_services/bot-main.control-service.d.ts.map +1 -1
- package/build/_modules/bot/_services/bot-main.control-service.js +127 -264
- package/build/_modules/bot/_services/bot-main.control-service.js.map +1 -1
- package/build/_modules/bot/_services/bot-messaging-provider.service-base.d.ts +71 -0
- package/build/_modules/bot/_services/bot-messaging-provider.service-base.d.ts.map +1 -0
- package/build/_modules/bot/_services/bot-messaging-provider.service-base.js +16 -0
- package/build/_modules/bot/_services/bot-messaging-provider.service-base.js.map +1 -0
- package/build/_modules/bot/_services/bot-routines.control-service.d.ts +6 -9
- package/build/_modules/bot/_services/bot-routines.control-service.d.ts.map +1 -1
- package/build/_modules/bot/_services/bot-routines.control-service.js +29 -9
- package/build/_modules/bot/_services/bot-routines.control-service.js.map +1 -1
- package/build/_modules/bot/index.d.ts +3 -7
- package/build/_modules/bot/index.d.ts.map +1 -1
- package/build/_modules/bot/index.js +9 -7
- package/build/_modules/bot/index.js.map +1 -1
- package/build/_modules/messaging/_collections/msg-global-settings.const.d.ts.map +1 -1
- package/build/_modules/messaging/_collections/msg-global-settings.const.js +0 -5
- package/build/_modules/messaging/_collections/msg-global-settings.const.js.map +1 -1
- package/build/_modules/messaging/_collections/msg.util.d.ts +2 -2
- package/build/_modules/messaging/_collections/msg.util.d.ts.map +1 -1
- package/build/_modules/messaging/_collections/msg.util.js.map +1 -1
- package/build/_modules/messaging/_models/msg-global-settings.interface.d.ts +0 -9
- package/build/_modules/messaging/_models/msg-global-settings.interface.d.ts.map +1 -1
- package/build/_modules/messaging/_services/msg-integration.control-service.d.ts +0 -25
- package/build/_modules/messaging/_services/msg-integration.control-service.d.ts.map +1 -1
- package/build/_modules/messaging/_services/msg-integration.control-service.js +180 -125
- package/build/_modules/messaging/_services/msg-integration.control-service.js.map +1 -1
- package/build/_modules/messaging/index.d.ts +0 -1
- package/build/_modules/messaging/index.d.ts.map +1 -1
- package/build/_modules/messaging/index.js +1 -1
- package/build/_modules/messaging/index.js.map +1 -1
- package/package.json +1 -1
- package/src/_modules/ai/_modules/open-ai/_services/oai-llm.service-base.ts +4 -4
- package/src/_modules/ai/_services/ai-llm.service-base.ts +2 -2
- package/src/_modules/ai/_services/ai-provider.service-base.ts +2 -1
- package/src/_modules/assistant/_collections/ass.util.ts +2 -2
- package/src/_modules/assistant/_services/ass-io.control-service.ts +17 -48
- package/src/_modules/assistant/_services/ass-main.control-service.ts +82 -32
- package/src/_modules/assistant/index.ts +1 -1
- package/src/_modules/bot/_models/bot-channel-wrapper.interface.ts +24 -0
- package/src/_modules/bot/_models/bot-command.interface.ts +2 -2
- package/src/_modules/bot/_models/bot-global-settings.interface.ts +1 -1
- package/src/_modules/bot/_models/bot-message-wrapper.interface.ts +18 -18
- package/src/_modules/bot/_models/bot-user-wrapper.interface.ts +35 -0
- package/src/_modules/bot/_modules/discord-bot/_models/dib-platform.types.ts +8 -7
- package/src/_modules/bot/_modules/discord-bot/_services/dib-messaging-provider.control-service.ts +529 -0
- package/src/_modules/bot/_modules/discord-bot/index.ts +2 -5
- package/src/_modules/bot/_modules/dynamo-bot/_collections/dyb-operations.util.ts +8 -5
- package/src/_modules/bot/_modules/dynamo-bot/_models/dyb-platform.types.ts +6 -6
- package/src/_modules/bot/_modules/dynamo-bot/_services/dyb-messaging-provider.control-service.ts +436 -0
- package/src/_modules/bot/_modules/dynamo-bot/index.ts +1 -2
- package/src/_modules/bot/_modules/slack-bot/_models/slb-platform.types.ts +6 -6
- package/src/_modules/bot/_modules/slack-bot/_services/slb-messaging-provider.control-service.ts +190 -0
- package/src/_modules/bot/_modules/slack-bot/index.ts +1 -3
- package/src/_modules/bot/_modules/teams-bot/_models/teb-platform.types.ts +6 -6
- package/src/_modules/bot/_modules/teams-bot/_services/teb-messaging-provider.control-service.ts +190 -0
- package/src/_modules/bot/_modules/teams-bot/index.ts +1 -4
- package/src/_modules/bot/_services/bot-commands.control-service.ts +64 -34
- package/src/_modules/bot/_services/bot-io.control-service.ts +86 -95
- package/src/_modules/bot/_services/bot-main.control-service.ts +253 -240
- package/src/_modules/bot/_services/bot-messaging-provider.service-base.ts +153 -0
- package/src/_modules/bot/_services/bot-routines.control-service.ts +39 -44
- package/src/_modules/bot/index.ts +9 -7
- package/src/_modules/messaging/README.md +2 -7
- package/src/_modules/messaging/_collections/msg-global-settings.const.ts +0 -6
- package/src/_modules/messaging/_collections/msg.util.ts +2 -2
- package/src/_modules/messaging/_models/msg-global-settings.interface.ts +0 -12
- package/src/_modules/messaging/_services/msg-integration.control-service.ts +180 -179
- package/src/_modules/messaging/index.ts +1 -1
- package/build/_modules/ai/_modules/open-ai/_services/oai-doc-chunk-data.service.d.ts +0 -22
- package/build/_modules/ai/_modules/open-ai/_services/oai-doc-chunk-data.service.d.ts.map +0 -1
- package/build/_modules/ai/_modules/open-ai/_services/oai-doc-chunk-data.service.js +0 -187
- package/build/_modules/ai/_modules/open-ai/_services/oai-doc-chunk-data.service.js.map +0 -1
- package/build/_modules/ai/_modules/open-ai/_services/oai-doc-page.data-service.d.ts +0 -27
- package/build/_modules/ai/_modules/open-ai/_services/oai-doc-page.data-service.d.ts.map +0 -1
- package/build/_modules/ai/_modules/open-ai/_services/oai-doc-page.data-service.js +0 -277
- package/build/_modules/ai/_modules/open-ai/_services/oai-doc-page.data-service.js.map +0 -1
- package/build/_modules/ai/_modules/open-ai/_services/oai-document.data-service.d.ts +0 -23
- package/build/_modules/ai/_modules/open-ai/_services/oai-document.data-service.d.ts.map +0 -1
- package/build/_modules/ai/_modules/open-ai/_services/oai-document.data-service.js +0 -319
- package/build/_modules/ai/_modules/open-ai/_services/oai-document.data-service.js.map +0 -1
- package/build/_modules/ai/_modules/open-ai/_services/oai-vector-data.service.d.ts +0 -118
- package/build/_modules/ai/_modules/open-ai/_services/oai-vector-data.service.d.ts.map +0 -1
- package/build/_modules/ai/_modules/open-ai/_services/oai-vector-data.service.js +0 -460
- package/build/_modules/ai/_modules/open-ai/_services/oai-vector-data.service.js.map +0 -1
- package/build/_modules/assistant/_services/ass.service-base.d.ts +0 -33
- package/build/_modules/assistant/_services/ass.service-base.d.ts.map +0 -1
- package/build/_modules/assistant/_services/ass.service-base.js +0 -58
- package/build/_modules/assistant/_services/ass.service-base.js.map +0 -1
- package/build/_modules/bot/_collections/bot-operations.util.d.ts +0 -21
- package/build/_modules/bot/_collections/bot-operations.util.d.ts.map +0 -1
- package/build/_modules/bot/_collections/bot-operations.util.js +0 -74
- package/build/_modules/bot/_collections/bot-operations.util.js.map +0 -1
- package/build/_modules/bot/_models/bot-channel.interface.d.ts +0 -8
- package/build/_modules/bot/_models/bot-channel.interface.d.ts.map +0 -1
- package/build/_modules/bot/_models/bot-channel.interface.js.map +0 -1
- package/build/_modules/bot/_models/bot-message.interface.d.ts +0 -15
- package/build/_modules/bot/_models/bot-message.interface.d.ts.map +0 -1
- package/build/_modules/bot/_models/bot-message.interface.js.map +0 -1
- package/build/_modules/bot/_models/bot-messaging-provider.interface.d.ts +0 -68
- package/build/_modules/bot/_models/bot-messaging-provider.interface.d.ts.map +0 -1
- package/build/_modules/bot/_models/bot-messaging-provider.interface.js +0 -3
- package/build/_modules/bot/_models/bot-messaging-provider.interface.js.map +0 -1
- package/build/_modules/bot/_models/bot-user.interface.d.ts +0 -8
- package/build/_modules/bot/_models/bot-user.interface.d.ts.map +0 -1
- package/build/_modules/bot/_models/bot-user.interface.js +0 -3
- package/build/_modules/bot/_models/bot-user.interface.js.map +0 -1
- package/build/_modules/bot/_modules/discord-bot/_collections/dib-operations.util.d.ts +0 -11
- package/build/_modules/bot/_modules/discord-bot/_collections/dib-operations.util.d.ts.map +0 -1
- package/build/_modules/bot/_modules/discord-bot/_collections/dib-operations.util.js +0 -13
- package/build/_modules/bot/_modules/discord-bot/_collections/dib-operations.util.js.map +0 -1
- package/build/_modules/bot/_modules/discord-bot/_collections/dib.util.d.ts +0 -5
- package/build/_modules/bot/_modules/discord-bot/_collections/dib.util.d.ts.map +0 -1
- package/build/_modules/bot/_modules/discord-bot/_collections/dib.util.js +0 -19
- package/build/_modules/bot/_modules/discord-bot/_collections/dib.util.js.map +0 -1
- package/build/_modules/bot/_modules/discord-bot/_services/dib-messaging-provider.service.d.ts +0 -56
- package/build/_modules/bot/_modules/discord-bot/_services/dib-messaging-provider.service.d.ts.map +0 -1
- package/build/_modules/bot/_modules/discord-bot/_services/dib-messaging-provider.service.js +0 -379
- package/build/_modules/bot/_modules/discord-bot/_services/dib-messaging-provider.service.js.map +0 -1
- package/build/_modules/bot/_modules/dynamo-bot/_collections/dyb.util.d.ts +0 -5
- package/build/_modules/bot/_modules/dynamo-bot/_collections/dyb.util.d.ts.map +0 -1
- package/build/_modules/bot/_modules/dynamo-bot/_collections/dyb.util.js +0 -26
- package/build/_modules/bot/_modules/dynamo-bot/_collections/dyb.util.js.map +0 -1
- package/build/_modules/bot/_modules/dynamo-bot/_services/dyb-messaging-provider.service.d.ts +0 -55
- package/build/_modules/bot/_modules/dynamo-bot/_services/dyb-messaging-provider.service.d.ts.map +0 -1
- package/build/_modules/bot/_modules/dynamo-bot/_services/dyb-messaging-provider.service.js.map +0 -1
- package/build/_modules/bot/_modules/slack-bot/_collections/slb-operations.util.d.ts +0 -11
- package/build/_modules/bot/_modules/slack-bot/_collections/slb-operations.util.d.ts.map +0 -1
- package/build/_modules/bot/_modules/slack-bot/_collections/slb-operations.util.js +0 -13
- package/build/_modules/bot/_modules/slack-bot/_collections/slb-operations.util.js.map +0 -1
- package/build/_modules/bot/_modules/slack-bot/_services/slb-messaging-provider.service.d.ts +0 -41
- package/build/_modules/bot/_modules/slack-bot/_services/slb-messaging-provider.service.d.ts.map +0 -1
- package/build/_modules/bot/_modules/slack-bot/_services/slb-messaging-provider.service.js +0 -119
- package/build/_modules/bot/_modules/slack-bot/_services/slb-messaging-provider.service.js.map +0 -1
- package/build/_modules/bot/_modules/teams-bot/_collections/teb-operations.util.d.ts +0 -11
- package/build/_modules/bot/_modules/teams-bot/_collections/teb-operations.util.d.ts.map +0 -1
- package/build/_modules/bot/_modules/teams-bot/_collections/teb-operations.util.js +0 -13
- package/build/_modules/bot/_modules/teams-bot/_collections/teb-operations.util.js.map +0 -1
- package/build/_modules/bot/_modules/teams-bot/_services/teb-messaging-provider.service.d.ts +0 -41
- package/build/_modules/bot/_modules/teams-bot/_services/teb-messaging-provider.service.d.ts.map +0 -1
- package/build/_modules/bot/_modules/teams-bot/_services/teb-messaging-provider.service.js +0 -119
- package/build/_modules/bot/_modules/teams-bot/_services/teb-messaging-provider.service.js.map +0 -1
- package/build/_modules/bot/_services/bot-messaging-provider-factory.service.d.ts +0 -6
- package/build/_modules/bot/_services/bot-messaging-provider-factory.service.d.ts.map +0 -1
- package/build/_modules/bot/_services/bot-messaging-provider-factory.service.js +0 -47
- package/build/_modules/bot/_services/bot-messaging-provider-factory.service.js.map +0 -1
- package/src/_modules/assistant/_services/ass.service-base.ts +0 -100
- package/src/_modules/bot/_collections/bot-operations.util.ts +0 -149
- package/src/_modules/bot/_models/bot-channel.interface.ts +0 -7
- package/src/_modules/bot/_models/bot-message.interface.ts +0 -14
- package/src/_modules/bot/_models/bot-messaging-provider.interface.ts +0 -88
- package/src/_modules/bot/_models/bot-user.interface.ts +0 -7
- package/src/_modules/bot/_modules/discord-bot/_collections/dib-operations.util.ts +0 -18
- package/src/_modules/bot/_modules/discord-bot/_collections/dib.util.ts +0 -20
- package/src/_modules/bot/_modules/discord-bot/_services/dib-messaging-provider.service.ts +0 -475
- package/src/_modules/bot/_modules/dynamo-bot/_collections/dyb.util.ts +0 -26
- package/src/_modules/bot/_modules/dynamo-bot/_services/dyb-messaging-provider.service.ts +0 -403
- package/src/_modules/bot/_modules/slack-bot/_collections/slb-operations.util.ts +0 -18
- package/src/_modules/bot/_modules/slack-bot/_services/slb-messaging-provider.service.ts +0 -156
- package/src/_modules/bot/_modules/teams-bot/_collections/teb-operations.util.ts +0 -18
- package/src/_modules/bot/_modules/teams-bot/_services/teb-messaging-provider.service.ts +0 -156
- package/src/_modules/bot/_services/bot-messaging-provider-factory.service.ts +0 -56
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/_modules/bot/_modules/discord-bot/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/_modules/bot/_modules/discord-bot/index.ts"],"names":[],"mappings":"AAUA,cAAc,oDAAoD,CAAC"}
|
|
@@ -7,10 +7,7 @@
|
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
const tslib_1 = require("tslib");
|
|
9
9
|
// TYPES
|
|
10
|
-
|
|
10
|
+
/* export * from './_models/dib-platform.types'; */
|
|
11
11
|
// SERVICES
|
|
12
|
-
tslib_1.__exportStar(require("./_services/dib-messaging-provider.service"), exports);
|
|
13
|
-
// COLLECTIONS
|
|
14
|
-
tslib_1.__exportStar(require("./_collections/dib-operations.util"), exports);
|
|
15
|
-
tslib_1.__exportStar(require("./_collections/dib.util"), exports);
|
|
12
|
+
tslib_1.__exportStar(require("./_services/dib-messaging-provider.control-service"), exports);
|
|
16
13
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/_modules/bot/_modules/discord-bot/index.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,uBAAuB;AACvB,EAAE;AACF,qFAAqF;AACrF,EAAE;;;AAEF,QAAQ;AACR,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/_modules/bot/_modules/discord-bot/index.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,uBAAuB;AACvB,EAAE;AACF,qFAAqF;AACrF,EAAE;;;AAEF,QAAQ;AACR,mDAAmD;AAEnD,WAAW;AACX,6FAAmE"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DyNTS_DyB_MessagingProvider_ControlService } from '../_services/dyb-messaging-provider.control-service';
|
|
2
2
|
import { DyNTS_DyB_Message } from '../_models/dyb-platform.types';
|
|
3
3
|
export declare class DyNTS_DyB_Operations_Util {
|
|
4
4
|
/**
|
|
5
5
|
* Get conversation statistics
|
|
6
6
|
*/
|
|
7
|
-
static getConversationStats(provider:
|
|
7
|
+
static getConversationStats(provider: DyNTS_DyB_MessagingProvider_ControlService, conversationId: string): Promise<{
|
|
8
8
|
messageCount: number;
|
|
9
9
|
participantCount: number;
|
|
10
10
|
lastActivity: Date | null;
|
|
@@ -12,6 +12,6 @@ export declare class DyNTS_DyB_Operations_Util {
|
|
|
12
12
|
/**
|
|
13
13
|
* Search messages in conversation
|
|
14
14
|
*/
|
|
15
|
-
static searchMessages(provider:
|
|
15
|
+
static searchMessages(provider: DyNTS_DyB_MessagingProvider_ControlService, conversationId: string, searchTerm: string): Promise<DyNTS_DyB_Message[]>;
|
|
16
16
|
}
|
|
17
17
|
//# sourceMappingURL=dyb-operations.util.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dyb-operations.util.d.ts","sourceRoot":"","sources":["../../../../../../src/_modules/bot/_modules/dynamo-bot/_collections/dyb-operations.util.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"dyb-operations.util.d.ts","sourceRoot":"","sources":["../../../../../../src/_modules/bot/_modules/dynamo-bot/_collections/dyb-operations.util.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,0CAA0C,EAAE,MAAM,qDAAqD,CAAC;AACjH,OAAO,EAAE,iBAAiB,EAAqB,MAAM,+BAA+B,CAAC;AAErF,qBAAa,yBAAyB;IAEpC;;OAEG;WACU,oBAAoB,CAC/B,QAAQ,EAAE,0CAA0C,EACpD,cAAc,EAAE,MAAM,GACrB,OAAO,CAAC;QACT,YAAY,EAAE,MAAM,CAAC;QACrB,gBAAgB,EAAE,MAAM,CAAC;QACzB,YAAY,EAAE,IAAI,GAAG,IAAI,CAAC;KAC3B,CAAC;IAoBF;;OAEG;WACU,cAAc,CACzB,QAAQ,EAAE,0CAA0C,EACpD,cAAc,EAAE,MAAM,EACtB,UAAU,EAAE,MAAM,GACjB,OAAO,CAAC,iBAAiB,EAAE,CAAC;CAWhC"}
|
|
@@ -8,7 +8,7 @@ class DyNTS_DyB_Operations_Util {
|
|
|
8
8
|
*/
|
|
9
9
|
static async getConversationStats(provider, conversationId) {
|
|
10
10
|
try {
|
|
11
|
-
const messages = await provider.
|
|
11
|
+
const messages = await provider.fetchMessagesById(conversationId, 1000);
|
|
12
12
|
const channel = await provider.getChannelById(conversationId);
|
|
13
13
|
return {
|
|
14
14
|
messageCount: messages.length,
|
|
@@ -30,7 +30,7 @@ class DyNTS_DyB_Operations_Util {
|
|
|
30
30
|
*/
|
|
31
31
|
static async searchMessages(provider, conversationId, searchTerm) {
|
|
32
32
|
try {
|
|
33
|
-
const messages = await provider.
|
|
33
|
+
const messages = await provider.fetchMessagesById(conversationId, 1000);
|
|
34
34
|
return messages.filter((msg) => msg.content.toLowerCase().includes(searchTerm.toLowerCase()));
|
|
35
35
|
}
|
|
36
36
|
catch (error) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dyb-operations.util.js","sourceRoot":"","sources":["../../../../../../src/_modules/bot/_modules/dynamo-bot/_collections/dyb-operations.util.ts"],"names":[],"mappings":";;;AAAA,sDAA6D;AAI7D,MAAa,yBAAyB;IAEpC;;OAEG;IACH,MAAM,CAAC,KAAK,CAAC,oBAAoB,
|
|
1
|
+
{"version":3,"file":"dyb-operations.util.js","sourceRoot":"","sources":["../../../../../../src/_modules/bot/_modules/dynamo-bot/_collections/dyb-operations.util.ts"],"names":[],"mappings":";;;AAAA,sDAA6D;AAI7D,MAAa,yBAAyB;IAEpC;;OAEG;IACH,MAAM,CAAC,KAAK,CAAC,oBAAoB,CAC/B,QAAoD,EACpD,cAAsB;QAMtB,IAAI,CAAC;YACH,MAAM,QAAQ,GAAwB,MAAM,QAAQ,CAAC,iBAAiB,CAAC,cAAc,EAAE,IAAI,CAAC,CAAC;YAC7F,MAAM,OAAO,GAAsB,MAAM,QAAQ,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC;YAEjF,OAAO;gBACL,YAAY,EAAE,QAAQ,CAAC,MAAM;gBAC7B,gBAAgB,EAAE,OAAO,CAAC,YAAY,EAAE,MAAM,IAAI,CAAC;gBACnD,YAAY,EAAE,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI;aAC3E,CAAC;QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,uBAAU,CAAC,SAAS,CAAC,kCAAkC,EAAE,KAAK,CAAC,CAAC;YAChE,OAAO;gBACL,YAAY,EAAE,CAAC;gBACf,gBAAgB,EAAE,CAAC;gBACnB,YAAY,EAAE,IAAI;aACnB,CAAC;QACJ,CAAC;IACH,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,KAAK,CAAC,cAAc,CACzB,QAAoD,EACpD,cAAsB,EACtB,UAAkB;QAElB,IAAI,CAAC;YACH,MAAM,QAAQ,GAAwB,MAAM,QAAQ,CAAC,iBAAiB,CAAC,cAAc,EAAE,IAAI,CAAC,CAAC;YAC7F,OAAO,QAAQ,CAAC,MAAM,CAAC,CAAC,GAAsB,EAAE,EAAE,CAChD,GAAG,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,UAAU,CAAC,WAAW,EAAE,CAAC,CAC7D,CAAC;QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,uBAAU,CAAC,SAAS,CAAC,2BAA2B,EAAE,KAAK,CAAC,CAAC;YACzD,OAAO,EAAE,CAAC;QACZ,CAAC;IACH,CAAC;CACF;AAlDD,8DAkDC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { DyNTS_Bot_MessageWrapper } from '../../../_models/bot-message-wrapper.interface';
|
|
2
|
+
import { DyNTS_Bot_ChannelWrapper } from '../../../_models/bot-channel-wrapper.interface';
|
|
3
|
+
import { DyNTS_Bot_UserWrapper } from '../../../_models/bot-user-wrapper.interface';
|
|
4
4
|
import { DyFM_Msg_Message, DyFM_Msg_Conversation, DyFM_Msg_Participant } from '@futdevpro/fsm-dynamo/messaging';
|
|
5
|
-
export type DyNTS_DyB_Message =
|
|
6
|
-
export interface DyNTS_DyB_Channel extends
|
|
5
|
+
export type DyNTS_DyB_Message = DyNTS_Bot_MessageWrapper<DyFM_Msg_Message>;
|
|
6
|
+
export interface DyNTS_DyB_Channel extends DyNTS_Bot_ChannelWrapper<DyFM_Msg_Conversation> {
|
|
7
7
|
participants?: DyFM_Msg_Participant[];
|
|
8
8
|
}
|
|
9
|
-
export type DyNTS_DyB_User =
|
|
9
|
+
export type DyNTS_DyB_User = DyNTS_Bot_UserWrapper<any>;
|
|
10
10
|
//# sourceMappingURL=dyb-platform.types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dyb-platform.types.d.ts","sourceRoot":"","sources":["../../../../../../src/_modules/bot/_modules/dynamo-bot/_models/dyb-platform.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"dyb-platform.types.d.ts","sourceRoot":"","sources":["../../../../../../src/_modules/bot/_modules/dynamo-bot/_models/dyb-platform.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAC1F,OAAO,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAC1F,OAAO,EAAE,qBAAqB,EAAE,MAAM,6CAA6C,CAAC;AACpF,OAAO,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AAIhH,MAAM,MAAM,iBAAiB,GAAG,wBAAwB,CAAC,gBAAgB,CAAC,CAAC;AAG3E,MAAM,WAAW,iBAAkB,SAAQ,wBAAwB,CAAC,qBAAqB,CAAC;IACxF,YAAY,CAAC,EAAE,oBAAoB,EAAE,CAAC;CACvC;AAED,MAAM,MAAM,cAAc,GAAG,qBAAqB,CAAC,GAAG,CAAC,CAAC"}
|
package/build/_modules/bot/_modules/dynamo-bot/_services/dyb-messaging-provider.control-service.d.ts
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { DyFM_AnyError } from '@futdevpro/fsm-dynamo';
|
|
2
|
+
import { DyNTS_Bot_MessagingProvider_ServiceBase, DyNTS_Bot_MessagingProvider_Config } from '../../../_services/bot-messaging-provider.service-base';
|
|
3
|
+
import { DyNTS_Bot_ChannelWrapper } from '../../../_models/bot-channel-wrapper.interface';
|
|
4
|
+
import { DyNTS_Bot_LastMessageDate } from '../../../_models/bot-last-message-date.interface';
|
|
5
|
+
import { DyNTS_Bot_LastMentionDate } from '../../../_models/bot-last-mention-date.interface';
|
|
6
|
+
import { DyNTS_Bot_MessagingProvider_Type } from '../../../_enums/bot-message-provider.enum';
|
|
7
|
+
import { DyNTS_Bot_MessageWrapper } from '../../../_models/bot-message-wrapper.interface';
|
|
8
|
+
import { DyNTS_Bot_UserWrapper } from '../../../_models/bot-user-wrapper.interface';
|
|
9
|
+
import { DyFM_Msg_Conversation, DyFM_Msg_Message, DyFM_Msg_Participant } from '@futdevpro/fsm-dynamo/messaging';
|
|
10
|
+
export interface Dynamo_MessagingProviderConfig extends DyNTS_Bot_MessagingProvider_Config {
|
|
11
|
+
botUserId?: string;
|
|
12
|
+
botDisplayName?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare class DyNTS_DyB_MessagingProvider_ControlService extends DyNTS_Bot_MessagingProvider_ServiceBase<DyFM_Msg_Conversation, DyFM_Msg_Message, DyFM_Msg_Participant, Dynamo_MessagingProviderConfig, any> {
|
|
15
|
+
readonly name = "dynamo";
|
|
16
|
+
readonly type = DyNTS_Bot_MessagingProvider_Type.dynamo;
|
|
17
|
+
get botId(): string;
|
|
18
|
+
get botDisplayName(): string;
|
|
19
|
+
readonly config: Dynamo_MessagingProviderConfig;
|
|
20
|
+
private messagingService;
|
|
21
|
+
private eventsService;
|
|
22
|
+
constructor(setConfig: Dynamo_MessagingProviderConfig);
|
|
23
|
+
setup(issuer: string): Promise<void>;
|
|
24
|
+
start(issuer: string): Promise<void>;
|
|
25
|
+
private setupEventListeners;
|
|
26
|
+
getChannelByName(name: string): Promise<DyNTS_Bot_ChannelWrapper<DyFM_Msg_Conversation>>;
|
|
27
|
+
getChannelById(id: string): Promise<DyNTS_Bot_ChannelWrapper<DyFM_Msg_Conversation>>;
|
|
28
|
+
sendMessageToChannelByName(channelName: string, message: string, issuer: string): Promise<DyNTS_Bot_MessageWrapper<DyFM_Msg_Message>>;
|
|
29
|
+
getMessagesFromChannelByChannelName(channelName: string, limit?: number): Promise<DyNTS_Bot_MessageWrapper<DyFM_Msg_Message>[]>;
|
|
30
|
+
getLastMessageInChannel(channelName: string): Promise<DyNTS_Bot_MessageWrapper<DyFM_Msg_Message>>;
|
|
31
|
+
clearChannel(channelWrapper: DyNTS_Bot_ChannelWrapper<DyFM_Msg_Conversation>): Promise<void>;
|
|
32
|
+
sendMessage(channelWrapper: DyNTS_Bot_ChannelWrapper<DyFM_Msg_Conversation>, content: string): Promise<DyNTS_Bot_MessageWrapper<DyFM_Msg_Message>>;
|
|
33
|
+
replyToMessage(messageWrapper: DyNTS_Bot_MessageWrapper<DyFM_Msg_Message>, content: string): Promise<DyNTS_Bot_MessageWrapper<DyFM_Msg_Message>>;
|
|
34
|
+
sendTyping(channelWrapper: DyNTS_Bot_ChannelWrapper<DyFM_Msg_Conversation>): Promise<void>;
|
|
35
|
+
sendTypingForMessage(messageWrapper: DyNTS_Bot_MessageWrapper<DyFM_Msg_Message>): Promise<void>;
|
|
36
|
+
fetchMessages(channelWrapper: DyNTS_Bot_ChannelWrapper<DyFM_Msg_Conversation>, limit: number): Promise<DyNTS_Bot_MessageWrapper<DyFM_Msg_Message>[]>;
|
|
37
|
+
fetchMessagesById(id: string, limit: number): Promise<DyNTS_Bot_MessageWrapper<DyFM_Msg_Message>[]>;
|
|
38
|
+
fetchMessagesForMessage(messageWrapper: DyNTS_Bot_MessageWrapper<DyFM_Msg_Message>, limit: number): Promise<DyNTS_Bot_MessageWrapper<DyFM_Msg_Message>[]>;
|
|
39
|
+
fetchAllMessagesWithPaging(channelWrapper: DyNTS_Bot_ChannelWrapper<DyFM_Msg_Conversation>, maxFetch?: number): Promise<DyNTS_Bot_MessageWrapper<DyFM_Msg_Message>[]>;
|
|
40
|
+
deleteMessage(messageWrapper: DyNTS_Bot_MessageWrapper<DyFM_Msg_Message>): Promise<void>;
|
|
41
|
+
getUserByName(username: string): Promise<DyNTS_Bot_UserWrapper<DyFM_Msg_Participant>>;
|
|
42
|
+
getUserMention(userId: string): string;
|
|
43
|
+
readMembersInChannel(channelName: string): Promise<DyNTS_Bot_UserWrapper<DyFM_Msg_Participant>[]>;
|
|
44
|
+
readMemberNamesInChannel(channelName: string): Promise<string[]>;
|
|
45
|
+
getLastMessageSentBy(channelName: string, username: string): Promise<DyNTS_Bot_MessageWrapper<DyFM_Msg_Message>>;
|
|
46
|
+
getLastMentionOf(channelName: string, username: string): Promise<DyNTS_Bot_MessageWrapper<DyFM_Msg_Message>>;
|
|
47
|
+
readLastMessageDatesByMembers(channelName: string, memberNames: string[]): Promise<DyNTS_Bot_LastMessageDate[]>;
|
|
48
|
+
readLastMessageWithMemberNamePingInIt(channelName: string, users: DyNTS_Bot_UserWrapper<DyFM_Msg_Participant>[]): Promise<DyNTS_Bot_LastMentionDate[]>;
|
|
49
|
+
getRoleByName?(roleName: string): any;
|
|
50
|
+
getRolePingByName?(roleName: string): Promise<string>;
|
|
51
|
+
getRolePingsByName?(roleNames: string[]): Promise<string>;
|
|
52
|
+
create_onMessageEventListener(handler: (message: DyNTS_Bot_MessageWrapper<DyFM_Msg_Message>, issuer: string) => void): void;
|
|
53
|
+
create_onErrorEventListener(handler: (error: DyFM_AnyError) => void): void;
|
|
54
|
+
sendReport(message: string): Promise<DyNTS_Bot_MessageWrapper<DyFM_Msg_Message>>;
|
|
55
|
+
sendReportIn(message: string): Promise<DyNTS_Bot_MessageWrapper<DyFM_Msg_Message>>;
|
|
56
|
+
wrapMessage(msgMessage: any): DyNTS_Bot_MessageWrapper<DyFM_Msg_Message>;
|
|
57
|
+
wrapChannel(conversation: any): DyNTS_Bot_ChannelWrapper<DyFM_Msg_Conversation>;
|
|
58
|
+
wrapUser(user: any): DyNTS_Bot_UserWrapper<DyFM_Msg_Participant>;
|
|
59
|
+
}
|
|
60
|
+
//# sourceMappingURL=dyb-messaging-provider.control-service.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dyb-messaging-provider.control-service.d.ts","sourceRoot":"","sources":["../../../../../../src/_modules/bot/_modules/dynamo-bot/_services/dyb-messaging-provider.control-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAA8B,MAAM,uBAAuB,CAAC;AAClF,OAAO,EAAE,uCAAuC,EAAE,kCAAkC,EAAE,MAAM,wDAAwD,CAAC;AACrJ,OAAO,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAC1F,OAAO,EAAE,yBAAyB,EAAE,MAAM,kDAAkD,CAAC;AAC7F,OAAO,EAAE,yBAAyB,EAAE,MAAM,kDAAkD,CAAC;AAC7F,OAAO,EAAE,gCAAgC,EAAE,MAAM,2CAA2C,CAAC;AAC7F,OAAO,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAC1F,OAAO,EAAE,qBAAqB,EAAE,MAAM,6CAA6C,CAAC;AAOpF,OAAO,EAAE,qBAAqB,EAAqB,gBAAgB,EAAE,oBAAoB,EAAE,MAAM,iCAAiC,CAAC;AAEnI,MAAM,WAAW,8BAA+B,SAAQ,kCAAkC;IACxF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,qBAAa,0CAA2C,SAAQ,uCAAuC,CACrG,qBAAqB,EACrB,gBAAgB,EAChB,oBAAoB,EACpB,8BAA8B,EAC9B,GAAG,CACJ;IACC,QAAQ,CAAC,IAAI,YAAY;IACzB,QAAQ,CAAC,IAAI,2CAA2C;IAExD,IAAI,KAAK,IAAI,MAAM,CAElB;IAED,IAAI,cAAc,IAAI,MAAM,CAE3B;IAED,QAAQ,CAAC,MAAM,EAAE,8BAA8B,CAAC;IAMhD,OAAO,CAAC,gBAAgB,CAAgC;IACxD,OAAO,CAAC,aAAa,CAA2B;gBAEpC,SAAS,EAAE,8BAA8B;IAO/C,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 = require("@futdevpro/fsm-dynamo");
|
|
5
|
+
const bot_messaging_provider_service_base_1 = require("../../../_services/bot-messaging-provider.service-base");
|
|
5
6
|
const bot_message_provider_enum_1 = require("../../../_enums/bot-message-provider.enum");
|
|
7
|
+
const global_settings_const_1 = require("../../../../../_collections/global-settings.const");
|
|
6
8
|
const msg_main_control_service_1 = require("../../../../messaging/_services/msg-main.control-service");
|
|
7
9
|
const msg_message_data_service_1 = require("../../../../messaging/_services/msg-message.data-service");
|
|
8
10
|
const msg_conversation_data_service_1 = require("../../../../messaging/_services/msg-conversation.data-service");
|
|
9
11
|
const msg_events_service_1 = require("../../../../messaging/_services/msg-events.service");
|
|
10
|
-
class
|
|
11
|
-
|
|
12
|
+
class DyNTS_DyB_MessagingProvider_ControlService extends bot_messaging_provider_service_base_1.DyNTS_Bot_MessagingProvider_ServiceBase {
|
|
13
|
+
name = 'dynamo';
|
|
14
|
+
type = bot_message_provider_enum_1.DyNTS_Bot_MessagingProvider_Type.dynamo;
|
|
15
|
+
get botId() {
|
|
16
|
+
return this.config.botUserId || 'dynamo-bot';
|
|
17
|
+
}
|
|
18
|
+
get botDisplayName() {
|
|
19
|
+
return this.config.botDisplayName || 'Dynamo Bot';
|
|
20
|
+
}
|
|
12
21
|
config;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
// Event handlers
|
|
16
|
-
messageHandlers = [];
|
|
17
|
-
readyHandlers = [];
|
|
18
|
-
errorHandlers = [];
|
|
22
|
+
/* protected override readonly channelCache: Map<string, DyFM_Msg_Conversation> = new Map();
|
|
23
|
+
protected override readonly roleCache: Map<string, any> = new Map(); */
|
|
19
24
|
// Services
|
|
20
25
|
messagingService;
|
|
21
26
|
eventsService;
|
|
22
|
-
constructor() {
|
|
23
|
-
|
|
24
|
-
this.
|
|
27
|
+
constructor(setConfig) {
|
|
28
|
+
super();
|
|
29
|
+
this.config = setConfig;
|
|
25
30
|
this.messagingService = msg_main_control_service_1.DyNTS_Msg_Main_ControlService.getInstance();
|
|
26
31
|
this.eventsService = msg_events_service_1.DyNTS_Msg_Events_Service.getInstance();
|
|
27
32
|
}
|
|
28
|
-
async
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
33
|
+
async setup(issuer) {
|
|
34
|
+
try {
|
|
35
|
+
fsm_dynamo_1.DyFM_Log.success('Dynamo bot provider setup completed');
|
|
36
|
+
}
|
|
37
|
+
catch (error) {
|
|
38
|
+
fsm_dynamo_1.DyFM_Error.logSimple('Error during Dynamo bot setup:', error);
|
|
39
|
+
throw new fsm_dynamo_1.DyFM_Error({
|
|
40
|
+
...this.getDefaultErrorSettings('setup', error, issuer),
|
|
41
|
+
errorCode: `${global_settings_const_1.DyNTS_global_settings.systemShortCodeName}|DyNTS-DyB-MessagingProvider-S000`,
|
|
42
|
+
});
|
|
32
43
|
}
|
|
33
|
-
this.isInitialized = true;
|
|
34
|
-
fsm_dynamo_1.DyFM_Log.success('Dynamo bot provider initialized');
|
|
35
44
|
}
|
|
36
|
-
async
|
|
37
|
-
|
|
38
|
-
|
|
45
|
+
async start(issuer) {
|
|
46
|
+
try {
|
|
47
|
+
// Setup event listeners for messaging events
|
|
48
|
+
this.setupEventListeners();
|
|
49
|
+
fsm_dynamo_1.DyFM_Log.success('Dynamo bot provider started');
|
|
50
|
+
}
|
|
51
|
+
catch (error) {
|
|
52
|
+
fsm_dynamo_1.DyFM_Error.logSimple('Error during Dynamo bot start:', error);
|
|
53
|
+
throw new fsm_dynamo_1.DyFM_Error({
|
|
54
|
+
...this.getDefaultErrorSettings('start', error, issuer),
|
|
55
|
+
errorCode: `${global_settings_const_1.DyNTS_global_settings.systemShortCodeName}|DyNTS-DyB-MessagingProvider-S001`,
|
|
56
|
+
});
|
|
39
57
|
}
|
|
40
|
-
// Setup event listeners for messaging events
|
|
41
|
-
this.setupEventListeners();
|
|
42
|
-
// Trigger ready handlers
|
|
43
|
-
this.readyHandlers.forEach(handler => handler());
|
|
44
|
-
fsm_dynamo_1.DyFM_Log.success('Dynamo bot provider logged in');
|
|
45
58
|
}
|
|
46
59
|
setupEventListeners() {
|
|
47
60
|
// Listen to messaging events and convert them to bot events
|
|
@@ -51,8 +64,8 @@ class DyNTS_DyB_MessagingProvider {
|
|
|
51
64
|
}
|
|
52
65
|
// Channel operations
|
|
53
66
|
async getChannelByName(name) {
|
|
54
|
-
if (this.
|
|
55
|
-
return this.
|
|
67
|
+
if (this.channelCache.has(name)) {
|
|
68
|
+
return this.wrapChannel(this.channelCache.get(name));
|
|
56
69
|
}
|
|
57
70
|
const conversationService = new msg_conversation_data_service_1.DyNTS_Msg_Conversation_DataService({
|
|
58
71
|
issuer: 'dynamo-bot',
|
|
@@ -68,98 +81,122 @@ class DyNTS_DyB_MessagingProvider {
|
|
|
68
81
|
if (!conversation) {
|
|
69
82
|
throw new Error(`No conversation found with name "${name}"`);
|
|
70
83
|
}
|
|
71
|
-
|
|
72
|
-
this.
|
|
73
|
-
return channel;
|
|
84
|
+
this.channelCache.set(name, conversation);
|
|
85
|
+
return this.wrapChannel(conversation);
|
|
74
86
|
}
|
|
75
|
-
async getChannelById(
|
|
87
|
+
async getChannelById(id) {
|
|
88
|
+
if (this.channelCache.has(id)) {
|
|
89
|
+
return this.wrapChannel(this.channelCache.get(id));
|
|
90
|
+
}
|
|
76
91
|
const conversationService = new msg_conversation_data_service_1.DyNTS_Msg_Conversation_DataService({
|
|
77
92
|
issuer: 'dynamo-bot',
|
|
78
93
|
});
|
|
79
|
-
const conversation = await conversationService.
|
|
94
|
+
const conversation = await conversationService.dataDBService.findOne({
|
|
95
|
+
_id: id,
|
|
96
|
+
__deleted: { $exists: false }
|
|
97
|
+
});
|
|
80
98
|
if (!conversation) {
|
|
81
|
-
throw new Error(`No conversation found with ID "${
|
|
99
|
+
throw new Error(`No conversation found with ID "${id}"`);
|
|
82
100
|
}
|
|
83
|
-
|
|
101
|
+
this.channelCache.set(id, conversation);
|
|
102
|
+
return this.wrapChannel(conversation);
|
|
84
103
|
}
|
|
85
|
-
async sendMessageToChannelByName(channelName, message) {
|
|
104
|
+
async sendMessageToChannelByName(channelName, message, issuer) {
|
|
86
105
|
const channel = await this.getChannelByName(channelName);
|
|
87
|
-
return this.sendMessage(channel
|
|
106
|
+
return this.sendMessage(channel, message);
|
|
88
107
|
}
|
|
89
108
|
async getMessagesFromChannelByChannelName(channelName, limit = 100) {
|
|
90
109
|
const channel = await this.getChannelByName(channelName);
|
|
91
|
-
return this.fetchMessages(channel
|
|
110
|
+
return this.fetchMessages(channel, limit);
|
|
92
111
|
}
|
|
93
112
|
async getLastMessageInChannel(channelName) {
|
|
94
|
-
const
|
|
113
|
+
const channel = await this.getChannelByName(channelName);
|
|
114
|
+
const messages = await this.fetchMessages(channel, 1);
|
|
95
115
|
return messages.length > 0 ? messages[0] : null;
|
|
96
116
|
}
|
|
97
|
-
async clearChannel(
|
|
117
|
+
async clearChannel(channelWrapper) {
|
|
98
118
|
// For messaging system, we don't actually delete messages
|
|
99
119
|
// This could be implemented to mark messages as deleted or archived
|
|
100
120
|
fsm_dynamo_1.DyFM_Log.warn('Clear channel not implemented for messaging system');
|
|
101
121
|
}
|
|
102
122
|
// Message operations
|
|
103
|
-
async sendMessage(
|
|
104
|
-
const
|
|
105
|
-
const message = await this.messagingService.sendMessage(channelId, {
|
|
123
|
+
async sendMessage(channelWrapper, content) {
|
|
124
|
+
const message = await this.messagingService.sendMessage(channelWrapper.id, {
|
|
106
125
|
content,
|
|
107
126
|
type: 'text',
|
|
108
|
-
},
|
|
109
|
-
return this.
|
|
127
|
+
}, this.botId, 'dynamo-bot');
|
|
128
|
+
return this.wrapMessage(message);
|
|
110
129
|
}
|
|
111
|
-
async replyToMessage(
|
|
130
|
+
async replyToMessage(messageWrapper, content) {
|
|
112
131
|
// In messaging system, we can't directly reply to a message
|
|
113
132
|
// Instead, we'll send a new message with reference to the original
|
|
114
|
-
const replyContent = `[Reply to message ${
|
|
115
|
-
|
|
133
|
+
const replyContent = `[Reply to message ${messageWrapper.id}] ${content}`;
|
|
134
|
+
const channelWrapper = await this.getChannelByName(messageWrapper.channelName);
|
|
135
|
+
return this.sendMessage(channelWrapper, replyContent);
|
|
136
|
+
}
|
|
137
|
+
async sendTyping(channelWrapper) {
|
|
138
|
+
// Typing indicators not implemented for messaging system
|
|
139
|
+
fsm_dynamo_1.DyFM_Log.info('Typing indicator not supported in messaging system');
|
|
116
140
|
}
|
|
117
|
-
async
|
|
141
|
+
async sendTypingForMessage(messageWrapper) {
|
|
118
142
|
// Typing indicators not implemented for messaging system
|
|
119
143
|
fsm_dynamo_1.DyFM_Log.info('Typing indicator not supported in messaging system');
|
|
120
144
|
}
|
|
121
|
-
async fetchMessages(
|
|
145
|
+
async fetchMessages(channelWrapper, limit) {
|
|
122
146
|
const messageService = new msg_message_data_service_1.DyNTS_Msg_Message_DataService({
|
|
123
147
|
issuer: 'dynamo-bot',
|
|
124
148
|
});
|
|
125
149
|
const messages = await messageService.dataDBService.find({
|
|
126
|
-
conversationId:
|
|
150
|
+
conversationId: channelWrapper.id,
|
|
127
151
|
__deleted: { $exists: false },
|
|
128
152
|
$sort: { sentAt: -1 },
|
|
129
153
|
$limit: limit
|
|
130
154
|
});
|
|
131
|
-
return messages.map((msg) => this.
|
|
155
|
+
return messages.map((msg) => this.wrapMessage(msg));
|
|
132
156
|
}
|
|
133
|
-
async
|
|
134
|
-
|
|
157
|
+
async fetchMessagesById(id, limit) {
|
|
158
|
+
const messageService = new msg_message_data_service_1.DyNTS_Msg_Message_DataService({
|
|
159
|
+
issuer: 'dynamo-bot',
|
|
160
|
+
});
|
|
161
|
+
const messages = await messageService.dataDBService.find({
|
|
162
|
+
_id: id,
|
|
163
|
+
__deleted: { $exists: false },
|
|
164
|
+
$sort: { sentAt: -1 },
|
|
165
|
+
$limit: limit
|
|
166
|
+
});
|
|
167
|
+
return messages.map((msg) => this.wrapMessage(msg));
|
|
168
|
+
}
|
|
169
|
+
async fetchMessagesForMessage(messageWrapper, limit) {
|
|
170
|
+
const channelWrapper = await this.getChannelByName(messageWrapper.channelName);
|
|
171
|
+
return this.fetchMessages(channelWrapper, limit);
|
|
135
172
|
}
|
|
136
|
-
async
|
|
137
|
-
|
|
173
|
+
async fetchAllMessagesWithPaging(channelWrapper, maxFetch = 1000) {
|
|
174
|
+
return this.fetchMessages(channelWrapper, maxFetch);
|
|
175
|
+
}
|
|
176
|
+
async deleteMessage(messageWrapper) {
|
|
177
|
+
await this.messagingService.deleteMessage(messageWrapper.id, 'dynamo-bot', 'dynamo-bot');
|
|
138
178
|
}
|
|
139
179
|
// User operations
|
|
140
180
|
async getUserByName(username) {
|
|
141
|
-
if (this.userCache.has(username)) {
|
|
142
|
-
return this.userCache.get(username);
|
|
143
|
-
}
|
|
144
181
|
// In messaging system, we don't have a direct user lookup by name
|
|
145
182
|
// This would need to be implemented based on your user management system
|
|
146
|
-
const
|
|
147
|
-
|
|
183
|
+
const userData = {
|
|
184
|
+
userId: username,
|
|
148
185
|
username: username,
|
|
149
186
|
displayName: username,
|
|
150
187
|
isBot: false,
|
|
151
|
-
|
|
188
|
+
role: 'member',
|
|
189
|
+
joinedAt: new Date()
|
|
152
190
|
};
|
|
153
|
-
this.
|
|
154
|
-
return user;
|
|
191
|
+
return this.wrapUser(userData);
|
|
155
192
|
}
|
|
156
193
|
getUserMention(userId) {
|
|
157
194
|
return `@${userId}`;
|
|
158
195
|
}
|
|
159
196
|
async readMembersInChannel(channelName) {
|
|
160
|
-
const
|
|
161
|
-
const participants =
|
|
162
|
-
return participants.map(participant => this.
|
|
197
|
+
const channelWrapper = await this.getChannelByName(channelName);
|
|
198
|
+
const participants = channelWrapper.rawPlatformChannel.participants || [];
|
|
199
|
+
return participants.map(participant => this.wrapUser(participant));
|
|
163
200
|
}
|
|
164
201
|
async readMemberNamesInChannel(channelName) {
|
|
165
202
|
const members = await this.readMembersInChannel(channelName);
|
|
@@ -167,17 +204,19 @@ class DyNTS_DyB_MessagingProvider {
|
|
|
167
204
|
}
|
|
168
205
|
// Advanced message queries
|
|
169
206
|
async getLastMessageSentBy(channelName, username) {
|
|
170
|
-
const
|
|
207
|
+
const channelWrapper = await this.getChannelByName(channelName);
|
|
208
|
+
const messages = await this.fetchAllMessagesWithPaging(channelWrapper, 1000);
|
|
171
209
|
return messages.find(msg => msg.authorName === username) || null;
|
|
172
210
|
}
|
|
173
211
|
async getLastMentionOf(channelName, username) {
|
|
174
|
-
const
|
|
212
|
+
const channelWrapper = await this.getChannelByName(channelName);
|
|
213
|
+
const messages = await this.fetchAllMessagesWithPaging(channelWrapper, 1000);
|
|
175
214
|
return messages.find(msg => msg.content.includes(`@${username}`) ||
|
|
176
215
|
msg.content.includes(username)) || null;
|
|
177
216
|
}
|
|
178
217
|
async readLastMessageDatesByMembers(channelName, memberNames) {
|
|
179
|
-
const
|
|
180
|
-
const messages = await this.fetchAllMessagesWithPaging(
|
|
218
|
+
const channelWrapper = await this.getChannelByName(channelName);
|
|
219
|
+
const messages = await this.fetchAllMessagesWithPaging(channelWrapper, 1000);
|
|
181
220
|
const memberStatus = {};
|
|
182
221
|
memberNames.forEach((name) => {
|
|
183
222
|
memberStatus[name] = { lastMessageDate: null, allMessages: 0 };
|
|
@@ -204,8 +243,8 @@ class DyNTS_DyB_MessagingProvider {
|
|
|
204
243
|
});
|
|
205
244
|
}
|
|
206
245
|
async readLastMessageWithMemberNamePingInIt(channelName, users) {
|
|
207
|
-
const
|
|
208
|
-
const messages = await this.fetchAllMessagesWithPaging(
|
|
246
|
+
const channelWrapper = await this.getChannelByName(channelName);
|
|
247
|
+
const messages = await this.fetchAllMessagesWithPaging(channelWrapper, 1000);
|
|
209
248
|
const memberStatus = {};
|
|
210
249
|
users.forEach((user) => {
|
|
211
250
|
memberStatus[user.username] = { lastMentionDate: null, allMentions: 0 };
|
|
@@ -243,37 +282,22 @@ class DyNTS_DyB_MessagingProvider {
|
|
|
243
282
|
return Promise.resolve(''); // Not applicable for messaging system
|
|
244
283
|
}
|
|
245
284
|
// Event binding
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
onReady(handler) {
|
|
250
|
-
this.readyHandlers.push(handler);
|
|
251
|
-
}
|
|
252
|
-
onError(handler) {
|
|
253
|
-
this.errorHandlers.push(handler);
|
|
254
|
-
}
|
|
255
|
-
// Metadata
|
|
256
|
-
getBotId() {
|
|
257
|
-
return this.config.dynamo?.botUserId || 'dynamo-bot';
|
|
258
|
-
}
|
|
259
|
-
getBotDisplayName() {
|
|
260
|
-
return this.config.dynamo?.botDisplayName || 'Dynamo Bot';
|
|
261
|
-
}
|
|
262
|
-
getProviderName() {
|
|
263
|
-
return 'dynamo';
|
|
285
|
+
create_onMessageEventListener(handler) {
|
|
286
|
+
// TODO: Implement message event listener for messaging system
|
|
287
|
+
fsm_dynamo_1.DyFM_Log.info('Message event listener created (messaging integration)');
|
|
264
288
|
}
|
|
265
|
-
|
|
266
|
-
|
|
289
|
+
create_onErrorEventListener(handler) {
|
|
290
|
+
// TODO: Implement error event listener for messaging system
|
|
291
|
+
fsm_dynamo_1.DyFM_Log.info('Error event listener created (messaging integration)');
|
|
267
292
|
}
|
|
268
|
-
|
|
269
|
-
return this.
|
|
293
|
+
async sendReport(message) {
|
|
294
|
+
return await this.sendMessageToChannelByName(this.config.reportChannelName, message, 'dynamo-bot');
|
|
270
295
|
}
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
296
|
+
async sendReportIn(message) {
|
|
297
|
+
return await this.sendMessageToChannelByName(this.config.reportChannelName, `${this.botDisplayName} report for duty! ` +
|
|
298
|
+
`(v${global_settings_const_1.DyNTS_global_settings.systemVersion} ${global_settings_const_1.DyNTS_global_settings.env_settings?.environment})`, 'dynamo-bot');
|
|
274
299
|
}
|
|
275
|
-
|
|
276
|
-
translateMessage(msgMessage) {
|
|
300
|
+
wrapMessage(msgMessage) {
|
|
277
301
|
return {
|
|
278
302
|
id: msgMessage._id || msgMessage.id,
|
|
279
303
|
content: msgMessage.content || '',
|
|
@@ -286,28 +310,30 @@ class DyNTS_DyB_MessagingProvider {
|
|
|
286
310
|
isBot: msgMessage.isAIGenerated || false,
|
|
287
311
|
replyToMessageId: msgMessage.replyToMessageId,
|
|
288
312
|
mentions: msgMessage.mentions || [],
|
|
289
|
-
rawPlatformMessage: msgMessage
|
|
313
|
+
rawPlatformMessage: msgMessage,
|
|
314
|
+
provider: this
|
|
290
315
|
};
|
|
291
316
|
}
|
|
292
|
-
|
|
317
|
+
wrapChannel(conversation) {
|
|
293
318
|
return {
|
|
294
319
|
id: conversation._id || conversation.id,
|
|
295
320
|
name: conversation.name || conversation.platformChannelId || 'unknown',
|
|
296
321
|
isTextBased: true,
|
|
297
322
|
isDM: conversation.type === 'direct',
|
|
298
|
-
|
|
299
|
-
|
|
323
|
+
rawPlatformChannel: conversation,
|
|
324
|
+
provider: this
|
|
300
325
|
};
|
|
301
326
|
}
|
|
302
|
-
|
|
327
|
+
wrapUser(user) {
|
|
303
328
|
return {
|
|
304
329
|
id: user.userId || user.id,
|
|
305
330
|
username: user.username || user.userId || user.id,
|
|
306
331
|
displayName: user.displayName || user.username || user.userId,
|
|
307
332
|
isBot: user.isBot || false,
|
|
308
|
-
rawPlatformUser: user
|
|
333
|
+
rawPlatformUser: user,
|
|
334
|
+
provider: this
|
|
309
335
|
};
|
|
310
336
|
}
|
|
311
337
|
}
|
|
312
|
-
exports.
|
|
313
|
-
//# sourceMappingURL=dyb-messaging-provider.service.js.map
|
|
338
|
+
exports.DyNTS_DyB_MessagingProvider_ControlService = DyNTS_DyB_MessagingProvider_ControlService;
|
|
339
|
+
//# sourceMappingURL=dyb-messaging-provider.control-service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dyb-messaging-provider.control-service.js","sourceRoot":"","sources":["../../../../../../src/_modules/bot/_modules/dynamo-bot/_services/dyb-messaging-provider.control-service.ts"],"names":[],"mappings":";;;AAAA,sDAAkF;AAClF,gHAAqJ;AAIrJ,yFAA6F;AAI7F,6FAA0F;AAC1F,uGAAyG;AACzG,uGAAyG;AACzG,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@
|
|
|
1
1
|
export * from './_models/dyb-platform.types';
|
|
2
|
-
export * from './_services/dyb-messaging-provider.service';
|
|
2
|
+
export * from './_services/dyb-messaging-provider.control-service';
|
|
3
3
|
export * from './_collections/dyb-operations.util';
|
|
4
|
-
export * from './_collections/dyb.util';
|
|
5
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/_modules/bot/_modules/dynamo-bot/index.ts"],"names":[],"mappings":"AAQA,cAAc,8BAA8B,CAAC;AAG7C,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/_modules/bot/_modules/dynamo-bot/index.ts"],"names":[],"mappings":"AAQA,cAAc,8BAA8B,CAAC;AAG7C,cAAc,oDAAoD,CAAC;AAGnE,cAAc,oCAAoC,CAAC"}
|
|
@@ -10,8 +10,7 @@ const tslib_1 = require("tslib");
|
|
|
10
10
|
// TYPES
|
|
11
11
|
tslib_1.__exportStar(require("./_models/dyb-platform.types"), exports);
|
|
12
12
|
// SERVICES
|
|
13
|
-
tslib_1.__exportStar(require("./_services/dyb-messaging-provider.service"), exports);
|
|
13
|
+
tslib_1.__exportStar(require("./_services/dyb-messaging-provider.control-service"), exports);
|
|
14
14
|
// COLLECTIONS
|
|
15
15
|
tslib_1.__exportStar(require("./_collections/dyb-operations.util"), exports);
|
|
16
|
-
tslib_1.__exportStar(require("./_collections/dyb.util"), exports);
|
|
17
16
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/_modules/bot/_modules/dynamo-bot/index.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,sBAAsB;AACtB,EAAE;AACF,8FAA8F;AAC9F,oFAAoF;AACpF,EAAE;;;AAEF,QAAQ;AACR,uEAA6C;AAE7C,WAAW;AACX,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/_modules/bot/_modules/dynamo-bot/index.ts"],"names":[],"mappings":";AAAA,EAAE;AACF,sBAAsB;AACtB,EAAE;AACF,8FAA8F;AAC9F,oFAAoF;AACpF,EAAE;;;AAEF,QAAQ;AACR,uEAA6C;AAE7C,WAAW;AACX,6FAAmE;AAEnE,cAAc;AACd,6EAAmD"}
|