@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.
Files changed (304) hide show
  1. package/build/_collections/global-settings.const.d.ts.map +1 -1
  2. package/build/_collections/global-settings.const.js +1 -0
  3. package/build/_collections/global-settings.const.js.map +1 -1
  4. package/build/_models/interfaces/global-settings.interface.d.ts +18 -2
  5. package/build/_models/interfaces/global-settings.interface.d.ts.map +1 -1
  6. package/build/_modules/ai/_modules/document-ai/_models/data-models/dai-doc-chunk.data-model.d.ts.map +1 -1
  7. package/build/_modules/ai/_modules/document-ai/_models/data-models/dai-doc-chunk.data-model.js +0 -1
  8. package/build/_modules/ai/_modules/document-ai/_models/data-models/dai-doc-chunk.data-model.js.map +1 -1
  9. package/build/_modules/ai/_modules/open-ai/_services/oai-doc-chunk-data.service.d.ts +1 -0
  10. package/build/_modules/ai/_modules/open-ai/_services/oai-doc-chunk-data.service.d.ts.map +1 -1
  11. package/build/_modules/ai/_modules/open-ai/_services/oai-doc-chunk-data.service.js +29 -25
  12. package/build/_modules/ai/_modules/open-ai/_services/oai-doc-chunk-data.service.js.map +1 -1
  13. package/build/_modules/ai/_modules/open-ai/_services/oai-doc-page.data-service.d.ts +1 -0
  14. package/build/_modules/ai/_modules/open-ai/_services/oai-doc-page.data-service.d.ts.map +1 -1
  15. package/build/_modules/ai/_modules/open-ai/_services/oai-doc-page.data-service.js +63 -23
  16. package/build/_modules/ai/_modules/open-ai/_services/oai-doc-page.data-service.js.map +1 -1
  17. package/build/_modules/ai/_modules/open-ai/_services/oai-document.data-service.d.ts.map +1 -1
  18. package/build/_modules/ai/_modules/open-ai/_services/oai-document.data-service.js +50 -33
  19. package/build/_modules/ai/_modules/open-ai/_services/oai-document.data-service.js.map +1 -1
  20. package/build/_modules/assistant/_collections/ass-global-settings.const.d.ts +3 -0
  21. package/build/_modules/assistant/_collections/ass-global-settings.const.d.ts.map +1 -0
  22. package/build/_modules/assistant/_collections/ass-global-settings.const.js +15 -0
  23. package/build/_modules/assistant/_collections/ass-global-settings.const.js.map +1 -0
  24. package/build/_modules/assistant/_collections/ass.util.d.ts +16 -0
  25. package/build/_modules/assistant/_collections/ass.util.d.ts.map +1 -0
  26. package/build/_modules/assistant/_collections/ass.util.js +43 -0
  27. package/build/_modules/assistant/_collections/ass.util.js.map +1 -0
  28. package/build/_modules/assistant/_models/ass-global-settings.interface.d.ts +14 -0
  29. package/build/_modules/assistant/_models/ass-global-settings.interface.d.ts.map +1 -0
  30. package/build/_modules/assistant/_models/ass-global-settings.interface.js +3 -0
  31. package/build/_modules/assistant/_models/ass-global-settings.interface.js.map +1 -0
  32. package/build/_modules/assistant/_services/ass-io.control-service.d.ts +23 -0
  33. package/build/_modules/assistant/_services/ass-io.control-service.d.ts.map +1 -0
  34. package/build/_modules/assistant/_services/ass-io.control-service.js +59 -0
  35. package/build/_modules/assistant/_services/ass-io.control-service.js.map +1 -0
  36. package/build/_modules/assistant/_services/ass-main.control-service.d.ts +15 -0
  37. package/build/_modules/assistant/_services/ass-main.control-service.d.ts.map +1 -0
  38. package/build/_modules/assistant/_services/ass-main.control-service.js +12 -0
  39. package/build/_modules/assistant/_services/ass-main.control-service.js.map +1 -0
  40. package/build/_modules/assistant/_services/ass.service-base.d.ts +31 -0
  41. package/build/_modules/assistant/_services/ass.service-base.d.ts.map +1 -0
  42. package/build/_modules/assistant/_services/ass.service-base.js +56 -0
  43. package/build/_modules/assistant/_services/ass.service-base.js.map +1 -0
  44. package/build/_modules/assistant/index.d.ts +7 -0
  45. package/build/_modules/assistant/index.d.ts.map +1 -0
  46. package/build/_modules/assistant/index.js +19 -0
  47. package/build/_modules/assistant/index.js.map +1 -0
  48. package/build/_modules/bot/_collections/bot-default-commands.const.d.ts +3 -0
  49. package/build/_modules/bot/_collections/bot-default-commands.const.d.ts.map +1 -0
  50. package/build/_modules/bot/_collections/bot-default-commands.const.js +14 -0
  51. package/build/_modules/bot/_collections/bot-default-commands.const.js.map +1 -0
  52. package/build/_modules/bot/_collections/bot-global-settings.const.d.ts +3 -0
  53. package/build/_modules/bot/_collections/bot-global-settings.const.d.ts.map +1 -0
  54. package/build/_modules/bot/_collections/bot-global-settings.const.js +32 -0
  55. package/build/_modules/bot/_collections/bot-global-settings.const.js.map +1 -0
  56. package/build/_modules/bot/_collections/bot-operations.util.d.ts +21 -0
  57. package/build/_modules/bot/_collections/bot-operations.util.d.ts.map +1 -0
  58. package/build/_modules/bot/_collections/bot-operations.util.js +74 -0
  59. package/build/_modules/bot/_collections/bot-operations.util.js.map +1 -0
  60. package/build/_modules/bot/_enums/bot-provider.enum.d.ts +7 -0
  61. package/build/_modules/bot/_enums/bot-provider.enum.d.ts.map +1 -0
  62. package/build/_modules/bot/_enums/bot-provider.enum.js +11 -0
  63. package/build/_modules/bot/_enums/bot-provider.enum.js.map +1 -0
  64. package/build/_modules/bot/_models/bot-channel.interface.d.ts +8 -0
  65. package/build/_modules/bot/_models/bot-channel.interface.d.ts.map +1 -0
  66. package/build/_modules/bot/_models/bot-channel.interface.js +3 -0
  67. package/build/_modules/bot/_models/bot-channel.interface.js.map +1 -0
  68. package/build/_modules/bot/_models/bot-command.interface.d.ts +8 -0
  69. package/build/_modules/bot/_models/bot-command.interface.d.ts.map +1 -0
  70. package/build/_modules/bot/_models/bot-command.interface.js +3 -0
  71. package/build/_modules/bot/_models/bot-command.interface.js.map +1 -0
  72. package/build/_modules/bot/_models/bot-global-settings.interface.d.ts +79 -0
  73. package/build/_modules/bot/_models/bot-global-settings.interface.d.ts.map +1 -0
  74. package/build/_modules/bot/_models/bot-global-settings.interface.js +3 -0
  75. package/build/_modules/bot/_models/bot-global-settings.interface.js.map +1 -0
  76. package/build/_modules/bot/_models/bot-last-mention-date.interface.d.ts +7 -0
  77. package/build/_modules/bot/_models/bot-last-mention-date.interface.d.ts.map +1 -0
  78. package/build/_modules/bot/_models/bot-last-mention-date.interface.js +3 -0
  79. package/build/_modules/bot/_models/bot-last-mention-date.interface.js.map +1 -0
  80. package/build/_modules/bot/_models/bot-last-message-date.interface.d.ts +6 -0
  81. package/build/_modules/bot/_models/bot-last-message-date.interface.d.ts.map +1 -0
  82. package/build/_modules/bot/_models/bot-last-message-date.interface.js +3 -0
  83. package/build/_modules/bot/_models/bot-last-message-date.interface.js.map +1 -0
  84. package/build/_modules/bot/_models/bot-message.interface.d.ts +15 -0
  85. package/build/_modules/bot/_models/bot-message.interface.d.ts.map +1 -0
  86. package/build/_modules/bot/_models/bot-message.interface.js +3 -0
  87. package/build/_modules/bot/_models/bot-message.interface.js.map +1 -0
  88. package/build/_modules/bot/_models/bot-provider.interface.d.ts +60 -0
  89. package/build/_modules/bot/_models/bot-provider.interface.d.ts.map +1 -0
  90. package/build/_modules/bot/_models/bot-provider.interface.js +3 -0
  91. package/build/_modules/bot/_models/bot-provider.interface.js.map +1 -0
  92. package/build/_modules/bot/_models/bot-user.interface.d.ts +8 -0
  93. package/build/_modules/bot/_models/bot-user.interface.d.ts.map +1 -0
  94. package/build/_modules/bot/_models/bot-user.interface.js +3 -0
  95. package/build/_modules/bot/_models/bot-user.interface.js.map +1 -0
  96. package/build/_modules/bot/_modules/discord-bot/_collections/dib-operations.util.d.ts +11 -0
  97. package/build/_modules/bot/_modules/discord-bot/_collections/dib-operations.util.d.ts.map +1 -0
  98. package/build/_modules/bot/_modules/discord-bot/_collections/dib-operations.util.js +13 -0
  99. package/build/_modules/bot/_modules/discord-bot/_collections/dib-operations.util.js.map +1 -0
  100. package/build/_modules/bot/_modules/discord-bot/_collections/dib.util.d.ts +5 -0
  101. package/build/_modules/bot/_modules/discord-bot/_collections/dib.util.d.ts.map +1 -0
  102. package/build/_modules/bot/_modules/discord-bot/_collections/dib.util.js +19 -0
  103. package/build/_modules/bot/_modules/discord-bot/_collections/dib.util.js.map +1 -0
  104. package/build/_modules/bot/_modules/discord-bot/_models/dib-platform.types.d.ts +8 -0
  105. package/build/_modules/bot/_modules/discord-bot/_models/dib-platform.types.d.ts.map +1 -0
  106. package/build/_modules/bot/_modules/discord-bot/_models/dib-platform.types.js +3 -0
  107. package/build/_modules/bot/_modules/discord-bot/_models/dib-platform.types.js.map +1 -0
  108. package/build/_modules/bot/_modules/discord-bot/_services/dib-provider.service.d.ts +53 -0
  109. package/build/_modules/bot/_modules/discord-bot/_services/dib-provider.service.d.ts.map +1 -0
  110. package/build/_modules/bot/_modules/discord-bot/_services/dib-provider.service.js +369 -0
  111. package/build/_modules/bot/_modules/discord-bot/_services/dib-provider.service.js.map +1 -0
  112. package/build/_modules/bot/_modules/discord-bot/index.d.ts +5 -0
  113. package/build/_modules/bot/_modules/discord-bot/index.d.ts.map +1 -0
  114. package/build/_modules/bot/_modules/discord-bot/index.js +16 -0
  115. package/build/_modules/bot/_modules/discord-bot/index.js.map +1 -0
  116. package/build/_modules/bot/_modules/slack-bot/_collections/slb-operations.util.d.ts +11 -0
  117. package/build/_modules/bot/_modules/slack-bot/_collections/slb-operations.util.d.ts.map +1 -0
  118. package/build/_modules/bot/_modules/slack-bot/_collections/slb-operations.util.js +13 -0
  119. package/build/_modules/bot/_modules/slack-bot/_collections/slb-operations.util.js.map +1 -0
  120. package/build/_modules/bot/_modules/slack-bot/_models/slb-platform.types.d.ts +7 -0
  121. package/build/_modules/bot/_modules/slack-bot/_models/slb-platform.types.d.ts.map +1 -0
  122. package/build/_modules/bot/_modules/slack-bot/_models/slb-platform.types.js +3 -0
  123. package/build/_modules/bot/_modules/slack-bot/_models/slb-platform.types.js.map +1 -0
  124. package/build/_modules/bot/_modules/slack-bot/_services/slb-provider.service.d.ts +40 -0
  125. package/build/_modules/bot/_modules/slack-bot/_services/slb-provider.service.d.ts.map +1 -0
  126. package/build/_modules/bot/_modules/slack-bot/_services/slb-provider.service.js +116 -0
  127. package/build/_modules/bot/_modules/slack-bot/_services/slb-provider.service.js.map +1 -0
  128. package/build/_modules/bot/_modules/slack-bot/index.d.ts +4 -0
  129. package/build/_modules/bot/_modules/slack-bot/index.d.ts.map +1 -0
  130. package/build/_modules/bot/_modules/slack-bot/index.js +15 -0
  131. package/build/_modules/bot/_modules/slack-bot/index.js.map +1 -0
  132. package/build/_modules/bot/_modules/teams-bot/_collections/teb-operations.util.d.ts +11 -0
  133. package/build/_modules/bot/_modules/teams-bot/_collections/teb-operations.util.d.ts.map +1 -0
  134. package/build/_modules/bot/_modules/teams-bot/_collections/teb-operations.util.js +13 -0
  135. package/build/_modules/bot/_modules/teams-bot/_collections/teb-operations.util.js.map +1 -0
  136. package/build/_modules/bot/_modules/teams-bot/_models/teb-platform.types.d.ts +7 -0
  137. package/build/_modules/bot/_modules/teams-bot/_models/teb-platform.types.d.ts.map +1 -0
  138. package/build/_modules/bot/_modules/teams-bot/_models/teb-platform.types.js +3 -0
  139. package/build/_modules/bot/_modules/teams-bot/_models/teb-platform.types.js.map +1 -0
  140. package/build/_modules/bot/_modules/teams-bot/_services/teb-provider.service.d.ts +40 -0
  141. package/build/_modules/bot/_modules/teams-bot/_services/teb-provider.service.d.ts.map +1 -0
  142. package/build/_modules/bot/_modules/teams-bot/_services/teb-provider.service.js +116 -0
  143. package/build/_modules/bot/_modules/teams-bot/_services/teb-provider.service.js.map +1 -0
  144. package/build/_modules/bot/_modules/teams-bot/index.d.ts +4 -0
  145. package/build/_modules/bot/_modules/teams-bot/index.d.ts.map +1 -0
  146. package/build/_modules/bot/_modules/teams-bot/index.js +15 -0
  147. package/build/_modules/bot/_modules/teams-bot/index.js.map +1 -0
  148. package/build/_modules/bot/_services/bot-commands.control-service.d.ts +15 -0
  149. package/build/_modules/bot/_services/bot-commands.control-service.d.ts.map +1 -0
  150. package/build/_modules/bot/_services/bot-commands.control-service.js +72 -0
  151. package/build/_modules/bot/_services/bot-commands.control-service.js.map +1 -0
  152. package/build/_modules/bot/_services/bot-io.control-service.d.ts +24 -0
  153. package/build/_modules/bot/_services/bot-io.control-service.d.ts.map +1 -0
  154. package/build/_modules/bot/_services/bot-io.control-service.js +207 -0
  155. package/build/_modules/bot/_services/bot-io.control-service.js.map +1 -0
  156. package/build/_modules/bot/_services/bot-main.control-service.d.ts +42 -0
  157. package/build/_modules/bot/_services/bot-main.control-service.d.ts.map +1 -0
  158. package/build/_modules/bot/_services/bot-main.control-service.js +223 -0
  159. package/build/_modules/bot/_services/bot-main.control-service.js.map +1 -0
  160. package/build/_modules/bot/_services/bot-provider-factory.service.d.ts +5 -0
  161. package/build/_modules/bot/_services/bot-provider-factory.service.d.ts.map +1 -0
  162. package/build/_modules/bot/_services/bot-provider-factory.service.js +28 -0
  163. package/build/_modules/bot/_services/bot-provider-factory.service.js.map +1 -0
  164. package/build/_modules/bot/_services/bot-routines.control-service.d.ts +17 -0
  165. package/build/_modules/bot/_services/bot-routines.control-service.d.ts.map +1 -0
  166. package/build/_modules/bot/_services/bot-routines.control-service.js +40 -0
  167. package/build/_modules/bot/_services/bot-routines.control-service.js.map +1 -0
  168. package/build/_modules/bot/index.d.ts +21 -0
  169. package/build/_modules/bot/index.d.ts.map +1 -0
  170. package/build/_modules/bot/index.js +35 -0
  171. package/build/_modules/bot/index.js.map +1 -0
  172. package/build/_modules/defaults/_models/default-user.data-model.d.ts +20 -0
  173. package/build/_modules/defaults/_models/default-user.data-model.d.ts.map +1 -0
  174. package/build/_modules/defaults/_models/default-user.data-model.js +73 -0
  175. package/build/_modules/defaults/_models/default-user.data-model.js.map +1 -0
  176. package/build/_modules/defaults/_services/default-auth.service.d.ts +51 -0
  177. package/build/_modules/defaults/_services/default-auth.service.d.ts.map +1 -0
  178. package/build/_modules/defaults/_services/default-auth.service.js +159 -0
  179. package/build/_modules/defaults/_services/default-auth.service.js.map +1 -0
  180. package/build/_modules/defaults/_services/default-socket-events.service.d.ts +24 -0
  181. package/build/_modules/defaults/_services/default-socket-events.service.d.ts.map +1 -0
  182. package/build/_modules/defaults/_services/default-socket-events.service.js +61 -0
  183. package/build/_modules/defaults/_services/default-socket-events.service.js.map +1 -0
  184. package/build/_modules/defaults/_services/default-user.data-service.d.ts +25 -0
  185. package/build/_modules/defaults/_services/default-user.data-service.d.ts.map +1 -0
  186. package/build/_modules/defaults/_services/default-user.data-service.js +88 -0
  187. package/build/_modules/defaults/_services/default-user.data-service.js.map +1 -0
  188. package/build/_modules/defaults/index.d.ts +5 -0
  189. package/build/_modules/defaults/index.d.ts.map +1 -0
  190. package/build/_modules/defaults/index.js +16 -0
  191. package/build/_modules/defaults/index.js.map +1 -0
  192. package/build/_modules/discord-bot/_services/dibo-io.control-service.js +1 -1
  193. package/build/_modules/discord-bot/_services/dibo-io.control-service.js.map +1 -1
  194. package/build/_modules/messaging/_collections/msg-global-settings.const.d.ts +6 -0
  195. package/build/_modules/messaging/_collections/msg-global-settings.const.d.ts.map +1 -0
  196. package/build/_modules/messaging/_collections/msg-global-settings.const.js +27 -0
  197. package/build/_modules/messaging/_collections/msg-global-settings.const.js.map +1 -0
  198. package/build/_modules/messaging/_collections/msg.util.d.ts +25 -0
  199. package/build/_modules/messaging/_collections/msg.util.d.ts.map +1 -0
  200. package/build/_modules/messaging/_collections/msg.util.js +63 -0
  201. package/build/_modules/messaging/_collections/msg.util.js.map +1 -0
  202. package/build/_modules/messaging/_enums/msg-event-key.enum.d.ts +23 -0
  203. package/build/_modules/messaging/_enums/msg-event-key.enum.d.ts.map +1 -0
  204. package/build/_modules/messaging/_enums/msg-event-key.enum.js +32 -0
  205. package/build/_modules/messaging/_enums/msg-event-key.enum.js.map +1 -0
  206. package/build/_modules/messaging/_models/msg-global-settings.interface.d.ts +38 -0
  207. package/build/_modules/messaging/_models/msg-global-settings.interface.d.ts.map +1 -0
  208. package/build/_modules/messaging/_models/msg-global-settings.interface.js +3 -0
  209. package/build/_modules/messaging/_models/msg-global-settings.interface.js.map +1 -0
  210. package/build/_modules/messaging/_services/msg-conversation.data-service.d.ts +29 -0
  211. package/build/_modules/messaging/_services/msg-conversation.data-service.d.ts.map +1 -0
  212. package/build/_modules/messaging/_services/msg-conversation.data-service.js +110 -0
  213. package/build/_modules/messaging/_services/msg-conversation.data-service.js.map +1 -0
  214. package/build/_modules/messaging/_services/msg-events.service.d.ts +62 -0
  215. package/build/_modules/messaging/_services/msg-events.service.d.ts.map +1 -0
  216. package/build/_modules/messaging/_services/msg-events.service.js +204 -0
  217. package/build/_modules/messaging/_services/msg-events.service.js.map +1 -0
  218. package/build/_modules/messaging/_services/msg-integration.control-service.d.ts +26 -0
  219. package/build/_modules/messaging/_services/msg-integration.control-service.d.ts.map +1 -0
  220. package/build/_modules/messaging/_services/msg-integration.control-service.js +126 -0
  221. package/build/_modules/messaging/_services/msg-integration.control-service.js.map +1 -0
  222. package/build/_modules/messaging/_services/msg-main.control-service.d.ts +62 -0
  223. package/build/_modules/messaging/_services/msg-main.control-service.d.ts.map +1 -0
  224. package/build/_modules/messaging/_services/msg-main.control-service.js +408 -0
  225. package/build/_modules/messaging/_services/msg-main.control-service.js.map +1 -0
  226. package/build/_modules/messaging/_services/msg-message.data-service.d.ts +29 -0
  227. package/build/_modules/messaging/_services/msg-message.data-service.d.ts.map +1 -0
  228. package/build/_modules/messaging/_services/msg-message.data-service.js +104 -0
  229. package/build/_modules/messaging/_services/msg-message.data-service.js.map +1 -0
  230. package/build/_modules/messaging/get-messaging-routing-module.util.d.ts +8 -0
  231. package/build/_modules/messaging/get-messaging-routing-module.util.d.ts.map +1 -0
  232. package/build/_modules/messaging/get-messaging-routing-module.util.js +21 -0
  233. package/build/_modules/messaging/get-messaging-routing-module.util.js.map +1 -0
  234. package/build/_modules/messaging/index.d.ts +13 -0
  235. package/build/_modules/messaging/index.d.ts.map +1 -0
  236. package/build/_modules/messaging/index.js +30 -0
  237. package/build/_modules/messaging/index.js.map +1 -0
  238. package/build/_modules/messaging/messaging.controller.d.ts +13 -0
  239. package/build/_modules/messaging/messaging.controller.d.ts.map +1 -0
  240. package/build/_modules/messaging/messaging.controller.js +257 -0
  241. package/build/_modules/messaging/messaging.controller.js.map +1 -0
  242. package/package.json +71 -3
  243. package/src/_collections/global-settings.const.ts +2 -0
  244. package/src/_models/interfaces/global-settings.interface.ts +20 -2
  245. package/src/_modules/ai/_modules/document-ai/_models/data-models/dai-doc-chunk.data-model.ts +0 -1
  246. package/src/_modules/ai/_modules/open-ai/_services/oai-doc-chunk-data.service.ts +34 -27
  247. package/src/_modules/ai/_modules/open-ai/_services/oai-doc-page.data-service.ts +77 -23
  248. package/src/_modules/ai/_modules/open-ai/_services/oai-document.data-service.ts +59 -33
  249. package/src/_modules/assistant/_collections/ass-global-settings.const.ts +13 -0
  250. package/src/_modules/assistant/_collections/ass.util.ts +50 -0
  251. package/src/_modules/assistant/_models/ass-global-settings.interface.ts +15 -0
  252. package/src/_modules/assistant/_services/ass-io.control-service.ts +100 -0
  253. package/src/_modules/assistant/_services/ass-main.control-service.ts +38 -0
  254. package/src/_modules/assistant/_services/ass.service-base.ts +92 -0
  255. package/src/_modules/assistant/index.ts +19 -0
  256. package/src/_modules/bot/_collections/bot-default-commands.const.ts +12 -0
  257. package/src/_modules/bot/_collections/bot-global-settings.const.ts +39 -0
  258. package/src/_modules/bot/_collections/bot-operations.util.ts +149 -0
  259. package/src/_modules/bot/_enums/bot-provider.enum.ts +6 -0
  260. package/src/_modules/bot/_models/bot-channel.interface.ts +7 -0
  261. package/src/_modules/bot/_models/bot-command.interface.ts +8 -0
  262. package/src/_modules/bot/_models/bot-global-settings.interface.ts +87 -0
  263. package/src/_modules/bot/_models/bot-last-mention-date.interface.ts +6 -0
  264. package/src/_modules/bot/_models/bot-last-message-date.interface.ts +5 -0
  265. package/src/_modules/bot/_models/bot-message.interface.ts +14 -0
  266. package/src/_modules/bot/_models/bot-provider.interface.ts +80 -0
  267. package/src/_modules/bot/_models/bot-user.interface.ts +7 -0
  268. package/src/_modules/bot/_modules/discord-bot/_collections/dib-operations.util.ts +18 -0
  269. package/src/_modules/bot/_modules/discord-bot/_collections/dib.util.ts +20 -0
  270. package/src/_modules/bot/_modules/discord-bot/_models/dib-platform.types.ts +9 -0
  271. package/src/_modules/bot/_modules/discord-bot/_services/dib-provider.service.ts +462 -0
  272. package/src/_modules/bot/_modules/discord-bot/index.ts +15 -0
  273. package/src/_modules/bot/_modules/slack-bot/_collections/slb-operations.util.ts +18 -0
  274. package/src/_modules/bot/_modules/slack-bot/_models/slb-platform.types.ts +9 -0
  275. package/src/_modules/bot/_modules/slack-bot/_services/slb-provider.service.ts +152 -0
  276. package/src/_modules/bot/_modules/slack-bot/index.ts +14 -0
  277. package/src/_modules/bot/_modules/teams-bot/_collections/teb-operations.util.ts +18 -0
  278. package/src/_modules/bot/_modules/teams-bot/_models/teb-platform.types.ts +9 -0
  279. package/src/_modules/bot/_modules/teams-bot/_services/teb-provider.service.ts +152 -0
  280. package/src/_modules/bot/_modules/teams-bot/index.ts +14 -0
  281. package/src/_modules/bot/_services/bot-commands.control-service.ts +126 -0
  282. package/src/_modules/bot/_services/bot-io.control-service.ts +325 -0
  283. package/src/_modules/bot/_services/bot-main.control-service.ts +344 -0
  284. package/src/_modules/bot/_services/bot-provider-factory.service.ts +30 -0
  285. package/src/_modules/bot/_services/bot-routines.control-service.ts +83 -0
  286. package/src/_modules/bot/index.ts +36 -0
  287. package/src/_modules/defaults/_models/default-user.data-model.ts +72 -0
  288. package/src/_modules/defaults/_services/default-auth.service.ts +177 -0
  289. package/src/_modules/defaults/_services/default-socket-events.service.ts +61 -0
  290. package/src/_modules/defaults/_services/default-user.data-service.ts +98 -0
  291. package/src/_modules/defaults/index.ts +14 -0
  292. package/src/_modules/discord-bot/_services/dibo-io.control-service.ts +1 -1
  293. package/src/_modules/messaging/_collections/msg-global-settings.const.ts +27 -0
  294. package/src/_modules/messaging/_collections/msg.util.ts +83 -0
  295. package/src/_modules/messaging/_enums/msg-event-key.enum.ts +31 -0
  296. package/src/_modules/messaging/_models/msg-global-settings.interface.ts +49 -0
  297. package/src/_modules/messaging/_services/msg-conversation.data-service.ts +146 -0
  298. package/src/_modules/messaging/_services/msg-events.service.ts +267 -0
  299. package/src/_modules/messaging/_services/msg-integration.control-service.ts +179 -0
  300. package/src/_modules/messaging/_services/msg-main.control-service.ts +548 -0
  301. package/src/_modules/messaging/_services/msg-message.data-service.ts +129 -0
  302. package/src/_modules/messaging/get-messaging-routing-module.util.ts +26 -0
  303. package/src/_modules/messaging/index.ts +33 -0
  304. package/src/_modules/messaging/messaging.controller.ts +370 -0
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=bot-channel.interface.js.map
@@ -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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=bot-command.interface.js.map
@@ -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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=bot-global-settings.interface.js.map
@@ -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,7 @@
1
+ export interface DyNTS_Bot_LastMentionDate {
2
+ memberId: string;
3
+ memberName: string;
4
+ allMentions: number;
5
+ lastMentionDate: Date | null;
6
+ }
7
+ //# sourceMappingURL=bot-last-mention-date.interface.d.ts.map
@@ -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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=bot-last-mention-date.interface.js.map
@@ -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,6 @@
1
+ export interface DyNTS_Bot_LastMessageDate {
2
+ memberName: string;
3
+ allMessages: number;
4
+ lastMessageDate: Date | null;
5
+ }
6
+ //# sourceMappingURL=bot-last-message-date.interface.d.ts.map
@@ -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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=bot-last-message-date.interface.js.map
@@ -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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=bot-message.interface.js.map
@@ -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,yB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,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;IACxF,gBAAgB,CAAC,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;IACpF,6BAA6B,CAAC,WAAW,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,yBAAyB,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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=bot-provider.interface.js.map
@@ -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,8 @@
1
+ export interface DyNTS_Bot_User<T_PlatformUser = any> {
2
+ id: string;
3
+ username: string;
4
+ displayName: string;
5
+ isBot: boolean;
6
+ rawPlatformUser: T_PlatformUser;
7
+ }
8
+ //# sourceMappingURL=bot-user.interface.d.ts.map
@@ -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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=bot-user.interface.js.map
@@ -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,5 @@
1
+ import { DyNTS_DiB_Provider } from '../_services/dib-provider.service';
2
+ export declare class DyNTS_DiB_Util {
3
+ static reportIn(provider: DyNTS_DiB_Provider): Promise<void>;
4
+ }
5
+ //# sourceMappingURL=dib.util.d.ts.map
@@ -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,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=dib-platform.types.js.map
@@ -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;IACC,OAAO,CAAC,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