@yonus_amire01/chat 0.1.0 → 2.0.0

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 (360) hide show
  1. package/README.md +8 -8
  2. package/dist/chat.css +1 -0
  3. package/dist/index.cjs +7 -5
  4. package/dist/index.mjs +81634 -8799
  5. package/dist/signature_pad-BvnS6ckP.cjs +4 -0
  6. package/dist/signature_pad-CSadMJ3H.js +478 -0
  7. package/dist/types/app/components/ChatPage.vue.d.ts +3 -0
  8. package/dist/types/app/components/ChatPage.vue.d.ts.map +1 -0
  9. package/dist/types/app/components/call/CallBoard.vue.d.ts +33 -0
  10. package/dist/types/app/components/call/CallBoard.vue.d.ts.map +1 -0
  11. package/dist/types/app/components/call/CallMemberDisplay.vue.d.ts +16 -0
  12. package/dist/types/app/components/call/CallMemberDisplay.vue.d.ts.map +1 -0
  13. package/dist/types/app/components/call/CallPageOverlay.vue.d.ts +7 -0
  14. package/dist/types/app/components/call/CallPageOverlay.vue.d.ts.map +1 -0
  15. package/dist/types/app/components/call/paint-board/BoardColorPicker.vue.d.ts +24 -0
  16. package/dist/types/app/components/call/paint-board/BoardColorPicker.vue.d.ts.map +1 -0
  17. package/dist/types/app/components/call/paint-board/BrushSizeSlider.vue.d.ts +19 -0
  18. package/dist/types/app/components/call/paint-board/BrushSizeSlider.vue.d.ts.map +1 -0
  19. package/dist/types/app/components/call/paint-board/CallPaintBoard.vue.d.ts +47 -0
  20. package/dist/types/app/components/call/paint-board/CallPaintBoard.vue.d.ts.map +1 -0
  21. package/dist/types/app/components/chat/ChatBubble.vue.d.ts +164 -0
  22. package/dist/types/app/components/chat/ChatBubble.vue.d.ts.map +1 -0
  23. package/dist/types/app/components/chat/ChatInput.vue.d.ts +56 -0
  24. package/dist/types/app/components/chat/ChatInput.vue.d.ts.map +1 -0
  25. package/dist/types/app/components/chat/ChatMessages.vue.d.ts +16 -0
  26. package/dist/types/app/components/chat/ChatMessages.vue.d.ts.map +1 -0
  27. package/dist/types/app/components/chat/ChatPageBar.vue.d.ts +17 -0
  28. package/dist/types/app/components/chat/ChatPageBar.vue.d.ts.map +1 -0
  29. package/dist/types/app/components/chat/ChatProfileOverview.vue.d.ts +11 -0
  30. package/dist/types/app/components/chat/ChatProfileOverview.vue.d.ts.map +1 -0
  31. package/dist/types/app/components/chat/ChatView.vue.d.ts +73 -0
  32. package/dist/types/app/components/chat/ChatView.vue.d.ts.map +1 -0
  33. package/dist/types/app/components/chat/chat-bubbles/BubbleOptions.vue.d.ts +119 -0
  34. package/dist/types/app/components/chat/chat-bubbles/BubbleOptions.vue.d.ts.map +1 -0
  35. package/dist/types/app/components/chat/chat-bubbles/BubbleVideo.vue.d.ts +25 -0
  36. package/dist/types/app/components/chat/chat-bubbles/BubbleVideo.vue.d.ts.map +1 -0
  37. package/dist/types/app/components/chat/chat-bubbles/FileDisplay.vue.d.ts +12 -0
  38. package/dist/types/app/components/chat/chat-bubbles/FileDisplay.vue.d.ts.map +1 -0
  39. package/dist/types/app/components/chat/chat-bubbles/ImageGroupDisplay.vue.d.ts +12 -0
  40. package/dist/types/app/components/chat/chat-bubbles/ImageGroupDisplay.vue.d.ts.map +1 -0
  41. package/dist/types/app/components/chat/chat-bubbles/VoiceDisplay.vue.d.ts +12 -0
  42. package/dist/types/app/components/chat/chat-bubbles/VoiceDisplay.vue.d.ts.map +1 -0
  43. package/dist/types/app/components/chat/chat-input/AttachementFileDisplay.vue.d.ts +12 -0
  44. package/dist/types/app/components/chat/chat-input/AttachementFileDisplay.vue.d.ts.map +1 -0
  45. package/dist/types/app/components/chat/chat-input/InputAttachement.vue.d.ts +15 -0
  46. package/dist/types/app/components/chat/chat-input/InputAttachement.vue.d.ts.map +1 -0
  47. package/dist/types/app/components/chat/chat-input/PermissionPopup.vue.d.ts +16 -0
  48. package/dist/types/app/components/chat/chat-input/PermissionPopup.vue.d.ts.map +1 -0
  49. package/dist/types/app/components/chat/chat-input/VideoRecordDisplay.vue.d.ts +26 -0
  50. package/dist/types/app/components/chat/chat-input/VideoRecordDisplay.vue.d.ts.map +1 -0
  51. package/dist/types/app/components/chat/contact/ChatContactDisplay.vue.d.ts +8 -0
  52. package/dist/types/app/components/chat/contact/ChatContactDisplay.vue.d.ts.map +1 -0
  53. package/dist/types/app/components/chat/contact/ChatList.vue.d.ts +5 -0
  54. package/dist/types/app/components/chat/contact/ChatList.vue.d.ts.map +1 -0
  55. package/dist/types/app/components/chat/contact/ChatListSearch.vue.d.ts +12 -0
  56. package/dist/types/app/components/chat/contact/ChatListSearch.vue.d.ts.map +1 -0
  57. package/dist/types/app/components/chat/contact/ContactAvatar.vue.d.ts +10 -0
  58. package/dist/types/app/components/chat/contact/ContactAvatar.vue.d.ts.map +1 -0
  59. package/dist/types/app/components/chat/profile/FileDisplay.vue.d.ts +9 -0
  60. package/dist/types/app/components/chat/profile/FileDisplay.vue.d.ts.map +1 -0
  61. package/dist/types/app/components/general/FileFormatDisplay.vue.d.ts +16 -0
  62. package/dist/types/app/components/general/FileFormatDisplay.vue.d.ts.map +1 -0
  63. package/dist/types/app/components/general/LoadingStatus.vue.d.ts +16 -0
  64. package/dist/types/app/components/general/LoadingStatus.vue.d.ts.map +1 -0
  65. package/dist/types/app/components/general/NoDataDisplay.vue.d.ts +7 -0
  66. package/dist/types/app/components/general/NoDataDisplay.vue.d.ts.map +1 -0
  67. package/dist/types/app/components/general/SafeEmojiText.vue.d.ts +10 -0
  68. package/dist/types/app/components/general/SafeEmojiText.vue.d.ts.map +1 -0
  69. package/dist/types/app/components/global/BButton.vue.d.ts +74 -0
  70. package/dist/types/app/components/global/BButton.vue.d.ts.map +1 -0
  71. package/dist/types/app/components/global/BCarousel.vue.d.ts +47 -0
  72. package/dist/types/app/components/global/BCarousel.vue.d.ts.map +1 -0
  73. package/dist/types/app/components/global/BCheckBox.vue.d.ts +30 -0
  74. package/dist/types/app/components/global/BCheckBox.vue.d.ts.map +1 -0
  75. package/dist/types/app/components/global/BEmojiPicker.vue.d.ts +7 -0
  76. package/dist/types/app/components/global/BEmojiPicker.vue.d.ts.map +1 -0
  77. package/dist/types/app/components/global/BIcon.vue.d.ts +11 -0
  78. package/dist/types/app/components/global/BIcon.vue.d.ts.map +1 -0
  79. package/dist/types/app/components/global/BImage.vue.d.ts +51 -0
  80. package/dist/types/app/components/global/BImage.vue.d.ts.map +1 -0
  81. package/dist/types/app/components/global/BInput.vue.d.ts +65 -0
  82. package/dist/types/app/components/global/BInput.vue.d.ts.map +1 -0
  83. package/dist/types/app/components/global/BLabel.vue.d.ts +18 -0
  84. package/dist/types/app/components/global/BLabel.vue.d.ts.map +1 -0
  85. package/dist/types/app/components/global/BMenu.vue.d.ts +54 -0
  86. package/dist/types/app/components/global/BMenu.vue.d.ts.map +1 -0
  87. package/dist/types/app/components/global/BModal.vue.d.ts +24 -0
  88. package/dist/types/app/components/global/BModal.vue.d.ts.map +1 -0
  89. package/dist/types/app/components/global/BPopup.vue.d.ts +42 -0
  90. package/dist/types/app/components/global/BPopup.vue.d.ts.map +1 -0
  91. package/dist/types/app/components/global/BSelect.vue.d.ts +43 -0
  92. package/dist/types/app/components/global/BSelect.vue.d.ts.map +1 -0
  93. package/dist/types/app/components/global/BTab.vue.d.ts +15 -0
  94. package/dist/types/app/components/global/BTab.vue.d.ts.map +1 -0
  95. package/dist/types/app/components/global/BToast.vue.d.ts +7 -0
  96. package/dist/types/app/components/global/BToast.vue.d.ts.map +1 -0
  97. package/dist/types/app/components/global/BVirtualVerticalList.vue.d.ts +30 -0
  98. package/dist/types/app/components/global/BVirtualVerticalList.vue.d.ts.map +1 -0
  99. package/dist/types/{composables → app/composables}/chat/useChatRecording.d.ts +4 -4
  100. package/dist/types/app/composables/chat/useChatRecording.d.ts.map +1 -0
  101. package/dist/types/app/composables/useAppPermissions.d.ts.map +1 -0
  102. package/dist/types/{composables → app/composables}/useAppToast.d.ts +2 -1
  103. package/dist/types/app/composables/useAppToast.d.ts.map +1 -0
  104. package/dist/types/app/composables/useClickOutside.d.ts.map +1 -0
  105. package/dist/types/{composables → app/composables}/useDate.d.ts +1 -1
  106. package/dist/types/app/composables/useDate.d.ts.map +1 -0
  107. package/dist/types/app/composables/useDevice.d.ts.map +1 -0
  108. package/dist/types/app/composables/useLocalI18n.d.ts +2 -0
  109. package/dist/types/app/composables/useLocalI18n.d.ts.map +1 -0
  110. package/dist/types/app/composables/useLocale.d.ts +12 -0
  111. package/dist/types/app/composables/useLocale.d.ts.map +1 -0
  112. package/dist/types/app/composables/useTheme.d.ts +4 -0
  113. package/dist/types/app/composables/useTheme.d.ts.map +1 -0
  114. package/dist/types/{composables → app/composables}/useValidation.d.ts +1 -1
  115. package/dist/types/app/composables/useValidation.d.ts.map +1 -0
  116. package/dist/types/app/composables/useWindowSize.d.ts +5 -0
  117. package/dist/types/app/composables/useWindowSize.d.ts.map +1 -0
  118. package/dist/types/app/directives/filePicker.d.ts.map +1 -0
  119. package/dist/types/app/directives/imagePicker.d.ts.map +1 -0
  120. package/dist/types/app/directives/loading.d.ts.map +1 -0
  121. package/dist/types/app/index.d.ts +24 -0
  122. package/dist/types/app/index.d.ts.map +1 -0
  123. package/dist/types/{stores → app/stores}/callStore.d.ts +487 -102
  124. package/dist/types/app/stores/callStore.d.ts.map +1 -0
  125. package/dist/types/app/stores/chatStore.d.ts +983 -0
  126. package/dist/types/app/stores/chatStore.d.ts.map +1 -0
  127. package/dist/types/app/stores/messageStores.d.ts +2248 -0
  128. package/dist/types/app/stores/messageStores.d.ts.map +1 -0
  129. package/dist/types/app/types/address.d.ts.map +1 -0
  130. package/dist/types/{types → app/types}/calendar.d.ts +1 -2
  131. package/dist/types/app/types/calendar.d.ts.map +1 -0
  132. package/dist/types/{types → app/types}/call.d.ts +1 -0
  133. package/dist/types/app/types/call.d.ts.map +1 -0
  134. package/dist/types/{types → app/types}/chat.d.ts +7 -26
  135. package/dist/types/app/types/chat.d.ts.map +1 -0
  136. package/dist/types/app/types/components/chat-input.d.ts.map +1 -0
  137. package/dist/types/app/types/components/input.d.ts.map +1 -0
  138. package/dist/types/app/types/components/menu-options.d.ts.map +1 -0
  139. package/dist/types/app/types/components/menu.d.ts.map +1 -0
  140. package/dist/types/app/types/components/modal.d.ts.map +1 -0
  141. package/dist/types/app/types/components/popup.d.ts.map +1 -0
  142. package/dist/types/app/types/components/select.d.ts.map +1 -0
  143. package/dist/types/app/types/components/toast.d.ts.map +1 -0
  144. package/dist/types/app/types/theme.d.ts +11 -0
  145. package/dist/types/app/types/theme.d.ts.map +1 -0
  146. package/dist/types/app/utils/emojiParser.d.ts.map +1 -0
  147. package/dist/types/app/utils/format.d.ts.map +1 -0
  148. package/dist/types/i18n/locales/index.d.ts +2603 -0
  149. package/dist/types/i18n/locales/index.d.ts.map +1 -0
  150. package/dist/types/index.d.ts +2 -10
  151. package/package.json +7 -14
  152. package/dist/index.cjs.map +0 -1
  153. package/dist/index.mjs.map +0 -1
  154. package/dist/style.css +0 -1
  155. package/dist/types/adapter/HostAdapter.d.ts +0 -13
  156. package/dist/types/adapter/HostAdapter.d.ts.map +0 -1
  157. package/dist/types/adapter/PushPort.d.ts +0 -10
  158. package/dist/types/adapter/PushPort.d.ts.map +0 -1
  159. package/dist/types/adapter/index.d.ts +0 -7
  160. package/dist/types/adapter/index.d.ts.map +0 -1
  161. package/dist/types/adapter/mock/MockCallAdapter.d.ts +0 -14
  162. package/dist/types/adapter/mock/MockCallAdapter.d.ts.map +0 -1
  163. package/dist/types/adapter/mock/MockChatActionAdapter.d.ts +0 -9
  164. package/dist/types/adapter/mock/MockChatActionAdapter.d.ts.map +0 -1
  165. package/dist/types/adapter/mock/MockChatAdapter.d.ts +0 -7
  166. package/dist/types/adapter/mock/MockChatAdapter.d.ts.map +0 -1
  167. package/dist/types/adapter/mock/MockMedicationAdapter.d.ts +0 -7
  168. package/dist/types/adapter/mock/MockMedicationAdapter.d.ts.map +0 -1
  169. package/dist/types/adapter/mock/MockServiceAdapter.d.ts +0 -6
  170. package/dist/types/adapter/mock/MockServiceAdapter.d.ts.map +0 -1
  171. package/dist/types/adapter/mock/createMockAdapter.d.ts +0 -13
  172. package/dist/types/adapter/mock/createMockAdapter.d.ts.map +0 -1
  173. package/dist/types/adapter/mock/index.d.ts +0 -12
  174. package/dist/types/adapter/mock/index.d.ts.map +0 -1
  175. package/dist/types/adapter/ports/CallAdapter.d.ts +0 -36
  176. package/dist/types/adapter/ports/CallAdapter.d.ts.map +0 -1
  177. package/dist/types/adapter/ports/ChatActionAdapter.d.ts +0 -17
  178. package/dist/types/adapter/ports/ChatActionAdapter.d.ts.map +0 -1
  179. package/dist/types/adapter/ports/ChatAdapter.d.ts +0 -22
  180. package/dist/types/adapter/ports/ChatAdapter.d.ts.map +0 -1
  181. package/dist/types/adapter/ports/MedicationAdapter.d.ts +0 -6
  182. package/dist/types/adapter/ports/MedicationAdapter.d.ts.map +0 -1
  183. package/dist/types/adapter/ports/ServiceAdapter.d.ts +0 -16
  184. package/dist/types/adapter/ports/ServiceAdapter.d.ts.map +0 -1
  185. package/dist/types/components/ChatPage.vue.d.ts +0 -8
  186. package/dist/types/components/ChatPage.vue.d.ts.map +0 -1
  187. package/dist/types/components/call/CallBoard.vue.d.ts +0 -154
  188. package/dist/types/components/call/CallBoard.vue.d.ts.map +0 -1
  189. package/dist/types/components/call/CallMemberDisplay.vue.d.ts +0 -57
  190. package/dist/types/components/call/CallMemberDisplay.vue.d.ts.map +0 -1
  191. package/dist/types/components/call/CallPageOverlay.vue.d.ts +0 -1365
  192. package/dist/types/components/call/CallPageOverlay.vue.d.ts.map +0 -1
  193. package/dist/types/components/call/paint-board/BoardColorPicker.vue.d.ts +0 -41
  194. package/dist/types/components/call/paint-board/BoardColorPicker.vue.d.ts.map +0 -1
  195. package/dist/types/components/call/paint-board/BrushSizeSlider.vue.d.ts +0 -48
  196. package/dist/types/components/call/paint-board/BrushSizeSlider.vue.d.ts.map +0 -1
  197. package/dist/types/components/call/paint-board/CallPaintBoard.vue.d.ts +0 -127
  198. package/dist/types/components/call/paint-board/CallPaintBoard.vue.d.ts.map +0 -1
  199. package/dist/types/components/chat/ChatBubble.vue.d.ts +0 -12236
  200. package/dist/types/components/chat/ChatBubble.vue.d.ts.map +0 -1
  201. package/dist/types/components/chat/ChatInput.vue.d.ts +0 -2477
  202. package/dist/types/components/chat/ChatInput.vue.d.ts.map +0 -1
  203. package/dist/types/components/chat/ChatMessages.vue.d.ts +0 -13873
  204. package/dist/types/components/chat/ChatMessages.vue.d.ts.map +0 -1
  205. package/dist/types/components/chat/ChatPageBar.vue.d.ts +0 -1204
  206. package/dist/types/components/chat/ChatPageBar.vue.d.ts.map +0 -1
  207. package/dist/types/components/chat/ChatProfileOverview.vue.d.ts +0 -327
  208. package/dist/types/components/chat/ChatProfileOverview.vue.d.ts.map +0 -1
  209. package/dist/types/components/chat/ChatView.vue.d.ts +0 -4
  210. package/dist/types/components/chat/ChatView.vue.d.ts.map +0 -1
  211. package/dist/types/components/chat/PatientReferral.vue.d.ts +0 -33
  212. package/dist/types/components/chat/PatientReferral.vue.d.ts.map +0 -1
  213. package/dist/types/components/chat/chat-bubbles/BubbleOptions.vue.d.ts +0 -53
  214. package/dist/types/components/chat/chat-bubbles/BubbleOptions.vue.d.ts.map +0 -1
  215. package/dist/types/components/chat/chat-bubbles/BubbleVideo.vue.d.ts +0 -103
  216. package/dist/types/components/chat/chat-bubbles/BubbleVideo.vue.d.ts.map +0 -1
  217. package/dist/types/components/chat/chat-bubbles/FileDisplay.vue.d.ts +0 -170
  218. package/dist/types/components/chat/chat-bubbles/FileDisplay.vue.d.ts.map +0 -1
  219. package/dist/types/components/chat/chat-bubbles/ImageGroupDisplay.vue.d.ts +0 -74
  220. package/dist/types/components/chat/chat-bubbles/ImageGroupDisplay.vue.d.ts.map +0 -1
  221. package/dist/types/components/chat/chat-bubbles/RequestCard.vue.d.ts +0 -11449
  222. package/dist/types/components/chat/chat-bubbles/RequestCard.vue.d.ts.map +0 -1
  223. package/dist/types/components/chat/chat-bubbles/VoiceDisplay.vue.d.ts +0 -107
  224. package/dist/types/components/chat/chat-bubbles/VoiceDisplay.vue.d.ts.map +0 -1
  225. package/dist/types/components/chat/chat-bubbles/request-card/ProviderDisplay.vue.d.ts +0 -56
  226. package/dist/types/components/chat/chat-bubbles/request-card/ProviderDisplay.vue.d.ts.map +0 -1
  227. package/dist/types/components/chat/chat-input/AttachementFileDisplay.vue.d.ts +0 -28
  228. package/dist/types/components/chat/chat-input/AttachementFileDisplay.vue.d.ts.map +0 -1
  229. package/dist/types/components/chat/chat-input/InputAttachement.vue.d.ts +0 -72
  230. package/dist/types/components/chat/chat-input/InputAttachement.vue.d.ts.map +0 -1
  231. package/dist/types/components/chat/chat-input/PermissionPopup.vue.d.ts +0 -15
  232. package/dist/types/components/chat/chat-input/PermissionPopup.vue.d.ts.map +0 -1
  233. package/dist/types/components/chat/chat-input/VideoRecordDisplay.vue.d.ts +0 -149
  234. package/dist/types/components/chat/chat-input/VideoRecordDisplay.vue.d.ts.map +0 -1
  235. package/dist/types/components/chat/contact/ChatContactDisplay.vue.d.ts +0 -85
  236. package/dist/types/components/chat/contact/ChatContactDisplay.vue.d.ts.map +0 -1
  237. package/dist/types/components/chat/contact/ChatList.vue.d.ts +0 -3111
  238. package/dist/types/components/chat/contact/ChatList.vue.d.ts.map +0 -1
  239. package/dist/types/components/chat/contact/ChatListSearch.vue.d.ts +0 -24
  240. package/dist/types/components/chat/contact/ChatListSearch.vue.d.ts.map +0 -1
  241. package/dist/types/components/chat/contact/ContactAvatar.vue.d.ts +0 -28
  242. package/dist/types/components/chat/contact/ContactAvatar.vue.d.ts.map +0 -1
  243. package/dist/types/components/chat/medic-features/MedicDisplay.vue.d.ts +0 -61
  244. package/dist/types/components/chat/medic-features/MedicDisplay.vue.d.ts.map +0 -1
  245. package/dist/types/components/chat/medic-features/MedicSelector.vue.d.ts +0 -1113
  246. package/dist/types/components/chat/medic-features/MedicSelector.vue.d.ts.map +0 -1
  247. package/dist/types/components/chat/medic-features/MedicSelectorContent.vue.d.ts +0 -1060
  248. package/dist/types/components/chat/medic-features/MedicSelectorContent.vue.d.ts.map +0 -1
  249. package/dist/types/components/chat/medic-features/PrescribtionDisplay.vue.d.ts +0 -1431
  250. package/dist/types/components/chat/medic-features/PrescribtionDisplay.vue.d.ts.map +0 -1
  251. package/dist/types/components/chat/profile/FileDisplay.vue.d.ts +0 -28
  252. package/dist/types/components/chat/profile/FileDisplay.vue.d.ts.map +0 -1
  253. package/dist/types/components/general/FileFormatDisplay.vue.d.ts +0 -60
  254. package/dist/types/components/general/FileFormatDisplay.vue.d.ts.map +0 -1
  255. package/dist/types/components/general/LoadingStatus.vue.d.ts +0 -59
  256. package/dist/types/components/general/LoadingStatus.vue.d.ts.map +0 -1
  257. package/dist/types/components/general/NoDataDisplay.vue.d.ts +0 -24
  258. package/dist/types/components/general/NoDataDisplay.vue.d.ts.map +0 -1
  259. package/dist/types/components/general/SafeEmojiText.vue.d.ts +0 -24
  260. package/dist/types/components/general/SafeEmojiText.vue.d.ts.map +0 -1
  261. package/dist/types/components/global/BCarousel.vue.d.ts +0 -48
  262. package/dist/types/components/global/BCarousel.vue.d.ts.map +0 -1
  263. package/dist/types/composables/chat/useChatRecording.d.ts.map +0 -1
  264. package/dist/types/composables/useAppPermissions.d.ts.map +0 -1
  265. package/dist/types/composables/useAppToast.d.ts.map +0 -1
  266. package/dist/types/composables/useClickOutside.d.ts.map +0 -1
  267. package/dist/types/composables/useDate.d.ts.map +0 -1
  268. package/dist/types/composables/useDevice.d.ts.map +0 -1
  269. package/dist/types/composables/useLocale.d.ts +0 -12
  270. package/dist/types/composables/useLocale.d.ts.map +0 -1
  271. package/dist/types/composables/useTheme.d.ts +0 -4
  272. package/dist/types/composables/useTheme.d.ts.map +0 -1
  273. package/dist/types/composables/useValidation.d.ts.map +0 -1
  274. package/dist/types/composables/useWindowSize.d.ts +0 -5
  275. package/dist/types/composables/useWindowSize.d.ts.map +0 -1
  276. package/dist/types/directives/filePicker.d.ts.map +0 -1
  277. package/dist/types/directives/imagePicker.d.ts.map +0 -1
  278. package/dist/types/directives/loading.d.ts.map +0 -1
  279. package/dist/types/index.d.ts.map +0 -1
  280. package/dist/types/install.d.ts +0 -20
  281. package/dist/types/install.d.ts.map +0 -1
  282. package/dist/types/mock/chat.seed.d.ts +0 -20
  283. package/dist/types/mock/chat.seed.d.ts.map +0 -1
  284. package/dist/types/mock/helpers.d.ts +0 -3
  285. package/dist/types/mock/helpers.d.ts.map +0 -1
  286. package/dist/types/mock/index.d.ts +0 -5
  287. package/dist/types/mock/index.d.ts.map +0 -1
  288. package/dist/types/mock/medication.seed.d.ts +0 -4
  289. package/dist/types/mock/medication.seed.d.ts.map +0 -1
  290. package/dist/types/mock/service.seed.d.ts +0 -13
  291. package/dist/types/mock/service.seed.d.ts.map +0 -1
  292. package/dist/types/nuxt-shims.d.ts +0 -43
  293. package/dist/types/nuxt-shims.d.ts.map +0 -1
  294. package/dist/types/prime-preset.d.ts +0 -72
  295. package/dist/types/prime-preset.d.ts.map +0 -1
  296. package/dist/types/stores/callStore.d.ts.map +0 -1
  297. package/dist/types/stores/chatActionStore.d.ts +0 -11303
  298. package/dist/types/stores/chatActionStore.d.ts.map +0 -1
  299. package/dist/types/stores/chatStore.d.ts +0 -2966
  300. package/dist/types/stores/chatStore.d.ts.map +0 -1
  301. package/dist/types/stores/createStores.d.ts +0 -19290
  302. package/dist/types/stores/createStores.d.ts.map +0 -1
  303. package/dist/types/stores/medicationsStore.d.ts +0 -3542
  304. package/dist/types/stores/medicationsStore.d.ts.map +0 -1
  305. package/dist/types/stores/serviceStore.d.ts +0 -953
  306. package/dist/types/stores/serviceStore.d.ts.map +0 -1
  307. package/dist/types/themes/factory.d.ts +0 -4
  308. package/dist/types/themes/factory.d.ts.map +0 -1
  309. package/dist/types/types/address.d.ts.map +0 -1
  310. package/dist/types/types/calendar.d.ts.map +0 -1
  311. package/dist/types/types/call.d.ts.map +0 -1
  312. package/dist/types/types/chat.d.ts.map +0 -1
  313. package/dist/types/types/clinic.d.ts +0 -7
  314. package/dist/types/types/clinic.d.ts.map +0 -1
  315. package/dist/types/types/components/chat-input.d.ts.map +0 -1
  316. package/dist/types/types/components/input.d.ts.map +0 -1
  317. package/dist/types/types/components/menu-options.d.ts.map +0 -1
  318. package/dist/types/types/components/menu.d.ts.map +0 -1
  319. package/dist/types/types/components/modal.d.ts.map +0 -1
  320. package/dist/types/types/components/nav-item.d.ts +0 -11
  321. package/dist/types/types/components/nav-item.d.ts.map +0 -1
  322. package/dist/types/types/components/nav-sub-item.d.ts +0 -9
  323. package/dist/types/types/components/nav-sub-item.d.ts.map +0 -1
  324. package/dist/types/types/components/popup.d.ts.map +0 -1
  325. package/dist/types/types/components/select.d.ts.map +0 -1
  326. package/dist/types/types/components/toast.d.ts.map +0 -1
  327. package/dist/types/types/env/runtimeConfig.d.ts +0 -22
  328. package/dist/types/types/invoice.d.ts +0 -8
  329. package/dist/types/types/invoice.d.ts.map +0 -1
  330. package/dist/types/types/medic.d.ts +0 -6
  331. package/dist/types/types/medic.d.ts.map +0 -1
  332. package/dist/types/types/medication.d.ts +0 -25
  333. package/dist/types/types/medication.d.ts.map +0 -1
  334. package/dist/types/types/notification.d.ts +0 -10
  335. package/dist/types/types/notification.d.ts.map +0 -1
  336. package/dist/types/types/service.d.ts +0 -25
  337. package/dist/types/types/service.d.ts.map +0 -1
  338. package/dist/types/types/story.d.ts +0 -12
  339. package/dist/types/types/story.d.ts.map +0 -1
  340. package/dist/types/types/theme.d.ts +0 -26
  341. package/dist/types/types/theme.d.ts.map +0 -1
  342. package/dist/types/utils/emojiParser.d.ts.map +0 -1
  343. package/dist/types/utils/format.d.ts.map +0 -1
  344. /package/dist/types/{composables → app/composables}/useAppPermissions.d.ts +0 -0
  345. /package/dist/types/{composables → app/composables}/useClickOutside.d.ts +0 -0
  346. /package/dist/types/{composables → app/composables}/useDevice.d.ts +0 -0
  347. /package/dist/types/{directives → app/directives}/filePicker.d.ts +0 -0
  348. /package/dist/types/{directives → app/directives}/imagePicker.d.ts +0 -0
  349. /package/dist/types/{directives → app/directives}/loading.d.ts +0 -0
  350. /package/dist/types/{types → app/types}/address.d.ts +0 -0
  351. /package/dist/types/{types → app/types}/components/chat-input.d.ts +0 -0
  352. /package/dist/types/{types → app/types}/components/input.d.ts +0 -0
  353. /package/dist/types/{types → app/types}/components/menu-options.d.ts +0 -0
  354. /package/dist/types/{types → app/types}/components/menu.d.ts +0 -0
  355. /package/dist/types/{types → app/types}/components/modal.d.ts +0 -0
  356. /package/dist/types/{types → app/types}/components/popup.d.ts +0 -0
  357. /package/dist/types/{types → app/types}/components/select.d.ts +0 -0
  358. /package/dist/types/{types → app/types}/components/toast.d.ts +0 -0
  359. /package/dist/types/{utils → app/utils}/emojiParser.d.ts +0 -0
  360. /package/dist/types/{utils → app/utils}/format.d.ts +0 -0
@@ -0,0 +1,2248 @@
1
+ import { ExtendedMessage, Message } from '../types/chat';
2
+ export interface UploadProgressEvent {
3
+ uploaded: number;
4
+ total: number;
5
+ progress: number;
6
+ }
7
+ export interface SendMessageOptions {
8
+ onProgress?: (e: UploadProgressEvent) => void;
9
+ }
10
+ export interface FetchMessagesParams {
11
+ conversationId: string;
12
+ page: number;
13
+ pageSize: number;
14
+ }
15
+ export interface MessagesHandlers {
16
+ sendMessage(msg: Message, opts?: SendMessageOptions): Promise<Message>;
17
+ editMessage(id: string, text: string): Promise<Message>;
18
+ deleteMessages(ids: string[]): Promise<void>;
19
+ fetchMessages(params: FetchMessagesParams): Promise<Message[]>;
20
+ }
21
+ export declare const useMessagesStore: import('pinia').StoreDefinition<"messages-store", Pick<{
22
+ isOptionMenuOpen: globalThis.Ref<boolean, boolean>;
23
+ isSelectMode: globalThis.Ref<boolean, boolean>;
24
+ selectedMessages: globalThis.Ref<Map<string, {
25
+ prevMessage?: {
26
+ id: string;
27
+ conversationId: string;
28
+ date: Date;
29
+ type: import('../types/chat').MessageType;
30
+ text?: string;
31
+ imageUrl?: string[];
32
+ fileUrl?: string;
33
+ voiceUrl?: string;
34
+ videoUrl?: string;
35
+ isEdited: boolean;
36
+ senderId: string;
37
+ isSent: boolean;
38
+ isRead: boolean;
39
+ repliedTo?: /*elided*/ any;
40
+ request?: string;
41
+ };
42
+ nextMessage?: {
43
+ id: string;
44
+ conversationId: string;
45
+ date: Date;
46
+ type: import('../types/chat').MessageType;
47
+ text?: string;
48
+ imageUrl?: string[];
49
+ fileUrl?: string;
50
+ voiceUrl?: string;
51
+ videoUrl?: string;
52
+ isEdited: boolean;
53
+ senderId: string;
54
+ isSent: boolean;
55
+ isRead: boolean;
56
+ repliedTo?: /*elided*/ any;
57
+ request?: string;
58
+ };
59
+ isFirstInDate: boolean;
60
+ contact?: {
61
+ id: string;
62
+ name: string;
63
+ lastName: string;
64
+ isOnline: boolean;
65
+ lastSeen: Date;
66
+ imageUrl: string;
67
+ nationalCode?: string;
68
+ phoneNumber?: string;
69
+ isActive: boolean;
70
+ birthDate: Date;
71
+ lastMessage?: {
72
+ id: string;
73
+ conversationId: string;
74
+ date: Date;
75
+ type: import('../types/chat').MessageType;
76
+ text?: string;
77
+ imageUrl?: string[];
78
+ fileUrl?: string;
79
+ voiceUrl?: string;
80
+ videoUrl?: string;
81
+ isEdited: boolean;
82
+ senderId: string;
83
+ isSent: boolean;
84
+ isRead: boolean;
85
+ repliedTo?: /*elided*/ any;
86
+ request?: string;
87
+ };
88
+ unreadCount?: number;
89
+ serviceType?: "video-call" | "voice-call" | "chat";
90
+ userType: import('../types/chat').UserRoleKey[];
91
+ };
92
+ id: string;
93
+ conversationId: string;
94
+ date: Date;
95
+ type: import('../types/chat').MessageType;
96
+ text?: string;
97
+ imageUrl?: string[];
98
+ fileUrl?: string;
99
+ voiceUrl?: string;
100
+ videoUrl?: string;
101
+ isEdited: boolean;
102
+ senderId: string;
103
+ isSent: boolean;
104
+ isRead: boolean;
105
+ repliedTo?: {
106
+ id: string;
107
+ conversationId: string;
108
+ date: Date;
109
+ type: import('../types/chat').MessageType;
110
+ text?: string;
111
+ imageUrl?: string[];
112
+ fileUrl?: string;
113
+ voiceUrl?: string;
114
+ videoUrl?: string;
115
+ isEdited: boolean;
116
+ senderId: string;
117
+ isSent: boolean;
118
+ isRead: boolean;
119
+ repliedTo?: /*elided*/ any;
120
+ request?: string;
121
+ };
122
+ request?: string;
123
+ }> & Omit<Map<string, ExtendedMessage>, keyof Map<any, any>>, Map<string, ExtendedMessage> | (Map<string, {
124
+ prevMessage?: {
125
+ id: string;
126
+ conversationId: string;
127
+ date: Date;
128
+ type: import('../types/chat').MessageType;
129
+ text?: string;
130
+ imageUrl?: string[];
131
+ fileUrl?: string;
132
+ voiceUrl?: string;
133
+ videoUrl?: string;
134
+ isEdited: boolean;
135
+ senderId: string;
136
+ isSent: boolean;
137
+ isRead: boolean;
138
+ repliedTo?: /*elided*/ any;
139
+ request?: string;
140
+ };
141
+ nextMessage?: {
142
+ id: string;
143
+ conversationId: string;
144
+ date: Date;
145
+ type: import('../types/chat').MessageType;
146
+ text?: string;
147
+ imageUrl?: string[];
148
+ fileUrl?: string;
149
+ voiceUrl?: string;
150
+ videoUrl?: string;
151
+ isEdited: boolean;
152
+ senderId: string;
153
+ isSent: boolean;
154
+ isRead: boolean;
155
+ repliedTo?: /*elided*/ any;
156
+ request?: string;
157
+ };
158
+ isFirstInDate: boolean;
159
+ contact?: {
160
+ id: string;
161
+ name: string;
162
+ lastName: string;
163
+ isOnline: boolean;
164
+ lastSeen: Date;
165
+ imageUrl: string;
166
+ nationalCode?: string;
167
+ phoneNumber?: string;
168
+ isActive: boolean;
169
+ birthDate: Date;
170
+ lastMessage?: {
171
+ id: string;
172
+ conversationId: string;
173
+ date: Date;
174
+ type: import('../types/chat').MessageType;
175
+ text?: string;
176
+ imageUrl?: string[];
177
+ fileUrl?: string;
178
+ voiceUrl?: string;
179
+ videoUrl?: string;
180
+ isEdited: boolean;
181
+ senderId: string;
182
+ isSent: boolean;
183
+ isRead: boolean;
184
+ repliedTo?: /*elided*/ any;
185
+ request?: string;
186
+ };
187
+ unreadCount?: number;
188
+ serviceType?: "video-call" | "voice-call" | "chat";
189
+ userType: import('../types/chat').UserRoleKey[];
190
+ };
191
+ id: string;
192
+ conversationId: string;
193
+ date: Date;
194
+ type: import('../types/chat').MessageType;
195
+ text?: string;
196
+ imageUrl?: string[];
197
+ fileUrl?: string;
198
+ voiceUrl?: string;
199
+ videoUrl?: string;
200
+ isEdited: boolean;
201
+ senderId: string;
202
+ isSent: boolean;
203
+ isRead: boolean;
204
+ repliedTo?: {
205
+ id: string;
206
+ conversationId: string;
207
+ date: Date;
208
+ type: import('../types/chat').MessageType;
209
+ text?: string;
210
+ imageUrl?: string[];
211
+ fileUrl?: string;
212
+ voiceUrl?: string;
213
+ videoUrl?: string;
214
+ isEdited: boolean;
215
+ senderId: string;
216
+ isSent: boolean;
217
+ isRead: boolean;
218
+ repliedTo?: /*elided*/ any;
219
+ request?: string;
220
+ };
221
+ request?: string;
222
+ }> & Omit<Map<string, ExtendedMessage>, keyof Map<any, any>>)>;
223
+ replyingTo: globalThis.Ref<{
224
+ prevMessage?: {
225
+ id: string;
226
+ conversationId: string;
227
+ date: Date;
228
+ type: import('../types/chat').MessageType;
229
+ text?: string;
230
+ imageUrl?: string[];
231
+ fileUrl?: string;
232
+ voiceUrl?: string;
233
+ videoUrl?: string;
234
+ isEdited: boolean;
235
+ senderId: string;
236
+ isSent: boolean;
237
+ isRead: boolean;
238
+ repliedTo?: /*elided*/ any;
239
+ request?: string;
240
+ };
241
+ nextMessage?: {
242
+ id: string;
243
+ conversationId: string;
244
+ date: Date;
245
+ type: import('../types/chat').MessageType;
246
+ text?: string;
247
+ imageUrl?: string[];
248
+ fileUrl?: string;
249
+ voiceUrl?: string;
250
+ videoUrl?: string;
251
+ isEdited: boolean;
252
+ senderId: string;
253
+ isSent: boolean;
254
+ isRead: boolean;
255
+ repliedTo?: /*elided*/ any;
256
+ request?: string;
257
+ };
258
+ isFirstInDate: boolean;
259
+ contact?: {
260
+ id: string;
261
+ name: string;
262
+ lastName: string;
263
+ isOnline: boolean;
264
+ lastSeen: Date;
265
+ imageUrl: string;
266
+ nationalCode?: string;
267
+ phoneNumber?: string;
268
+ isActive: boolean;
269
+ birthDate: Date;
270
+ lastMessage?: {
271
+ id: string;
272
+ conversationId: string;
273
+ date: Date;
274
+ type: import('../types/chat').MessageType;
275
+ text?: string;
276
+ imageUrl?: string[];
277
+ fileUrl?: string;
278
+ voiceUrl?: string;
279
+ videoUrl?: string;
280
+ isEdited: boolean;
281
+ senderId: string;
282
+ isSent: boolean;
283
+ isRead: boolean;
284
+ repliedTo?: /*elided*/ any;
285
+ request?: string;
286
+ };
287
+ unreadCount?: number;
288
+ serviceType?: "video-call" | "voice-call" | "chat";
289
+ userType: import('../types/chat').UserRoleKey[];
290
+ };
291
+ id: string;
292
+ conversationId: string;
293
+ date: Date;
294
+ type: import('../types/chat').MessageType;
295
+ text?: string;
296
+ imageUrl?: string[];
297
+ fileUrl?: string;
298
+ voiceUrl?: string;
299
+ videoUrl?: string;
300
+ isEdited: boolean;
301
+ senderId: string;
302
+ isSent: boolean;
303
+ isRead: boolean;
304
+ repliedTo?: {
305
+ id: string;
306
+ conversationId: string;
307
+ date: Date;
308
+ type: import('../types/chat').MessageType;
309
+ text?: string;
310
+ imageUrl?: string[];
311
+ fileUrl?: string;
312
+ voiceUrl?: string;
313
+ videoUrl?: string;
314
+ isEdited: boolean;
315
+ senderId: string;
316
+ isSent: boolean;
317
+ isRead: boolean;
318
+ repliedTo?: /*elided*/ any;
319
+ request?: string;
320
+ };
321
+ request?: string;
322
+ }, ExtendedMessage | {
323
+ prevMessage?: {
324
+ id: string;
325
+ conversationId: string;
326
+ date: Date;
327
+ type: import('../types/chat').MessageType;
328
+ text?: string;
329
+ imageUrl?: string[];
330
+ fileUrl?: string;
331
+ voiceUrl?: string;
332
+ videoUrl?: string;
333
+ isEdited: boolean;
334
+ senderId: string;
335
+ isSent: boolean;
336
+ isRead: boolean;
337
+ repliedTo?: /*elided*/ any;
338
+ request?: string;
339
+ };
340
+ nextMessage?: {
341
+ id: string;
342
+ conversationId: string;
343
+ date: Date;
344
+ type: import('../types/chat').MessageType;
345
+ text?: string;
346
+ imageUrl?: string[];
347
+ fileUrl?: string;
348
+ voiceUrl?: string;
349
+ videoUrl?: string;
350
+ isEdited: boolean;
351
+ senderId: string;
352
+ isSent: boolean;
353
+ isRead: boolean;
354
+ repliedTo?: /*elided*/ any;
355
+ request?: string;
356
+ };
357
+ isFirstInDate: boolean;
358
+ contact?: {
359
+ id: string;
360
+ name: string;
361
+ lastName: string;
362
+ isOnline: boolean;
363
+ lastSeen: Date;
364
+ imageUrl: string;
365
+ nationalCode?: string;
366
+ phoneNumber?: string;
367
+ isActive: boolean;
368
+ birthDate: Date;
369
+ lastMessage?: {
370
+ id: string;
371
+ conversationId: string;
372
+ date: Date;
373
+ type: import('../types/chat').MessageType;
374
+ text?: string;
375
+ imageUrl?: string[];
376
+ fileUrl?: string;
377
+ voiceUrl?: string;
378
+ videoUrl?: string;
379
+ isEdited: boolean;
380
+ senderId: string;
381
+ isSent: boolean;
382
+ isRead: boolean;
383
+ repliedTo?: /*elided*/ any;
384
+ request?: string;
385
+ };
386
+ unreadCount?: number;
387
+ serviceType?: "video-call" | "voice-call" | "chat";
388
+ userType: import('../types/chat').UserRoleKey[];
389
+ };
390
+ id: string;
391
+ conversationId: string;
392
+ date: Date;
393
+ type: import('../types/chat').MessageType;
394
+ text?: string;
395
+ imageUrl?: string[];
396
+ fileUrl?: string;
397
+ voiceUrl?: string;
398
+ videoUrl?: string;
399
+ isEdited: boolean;
400
+ senderId: string;
401
+ isSent: boolean;
402
+ isRead: boolean;
403
+ repliedTo?: {
404
+ id: string;
405
+ conversationId: string;
406
+ date: Date;
407
+ type: import('../types/chat').MessageType;
408
+ text?: string;
409
+ imageUrl?: string[];
410
+ fileUrl?: string;
411
+ voiceUrl?: string;
412
+ videoUrl?: string;
413
+ isEdited: boolean;
414
+ senderId: string;
415
+ isSent: boolean;
416
+ isRead: boolean;
417
+ repliedTo?: /*elided*/ any;
418
+ request?: string;
419
+ };
420
+ request?: string;
421
+ }>;
422
+ selectedArray: globalThis.ComputedRef<{
423
+ prevMessage?: {
424
+ id: string;
425
+ conversationId: string;
426
+ date: Date;
427
+ type: import('../types/chat').MessageType;
428
+ text?: string;
429
+ imageUrl?: string[];
430
+ fileUrl?: string;
431
+ voiceUrl?: string;
432
+ videoUrl?: string;
433
+ isEdited: boolean;
434
+ senderId: string;
435
+ isSent: boolean;
436
+ isRead: boolean;
437
+ repliedTo?: /*elided*/ any;
438
+ request?: string;
439
+ };
440
+ nextMessage?: {
441
+ id: string;
442
+ conversationId: string;
443
+ date: Date;
444
+ type: import('../types/chat').MessageType;
445
+ text?: string;
446
+ imageUrl?: string[];
447
+ fileUrl?: string;
448
+ voiceUrl?: string;
449
+ videoUrl?: string;
450
+ isEdited: boolean;
451
+ senderId: string;
452
+ isSent: boolean;
453
+ isRead: boolean;
454
+ repliedTo?: /*elided*/ any;
455
+ request?: string;
456
+ };
457
+ isFirstInDate: boolean;
458
+ contact?: {
459
+ id: string;
460
+ name: string;
461
+ lastName: string;
462
+ isOnline: boolean;
463
+ lastSeen: Date;
464
+ imageUrl: string;
465
+ nationalCode?: string;
466
+ phoneNumber?: string;
467
+ isActive: boolean;
468
+ birthDate: Date;
469
+ lastMessage?: {
470
+ id: string;
471
+ conversationId: string;
472
+ date: Date;
473
+ type: import('../types/chat').MessageType;
474
+ text?: string;
475
+ imageUrl?: string[];
476
+ fileUrl?: string;
477
+ voiceUrl?: string;
478
+ videoUrl?: string;
479
+ isEdited: boolean;
480
+ senderId: string;
481
+ isSent: boolean;
482
+ isRead: boolean;
483
+ repliedTo?: /*elided*/ any;
484
+ request?: string;
485
+ };
486
+ unreadCount?: number;
487
+ serviceType?: "video-call" | "voice-call" | "chat";
488
+ userType: import('../types/chat').UserRoleKey[];
489
+ };
490
+ id: string;
491
+ conversationId: string;
492
+ date: Date;
493
+ type: import('../types/chat').MessageType;
494
+ text?: string;
495
+ imageUrl?: string[];
496
+ fileUrl?: string;
497
+ voiceUrl?: string;
498
+ videoUrl?: string;
499
+ isEdited: boolean;
500
+ senderId: string;
501
+ isSent: boolean;
502
+ isRead: boolean;
503
+ repliedTo?: {
504
+ id: string;
505
+ conversationId: string;
506
+ date: Date;
507
+ type: import('../types/chat').MessageType;
508
+ text?: string;
509
+ imageUrl?: string[];
510
+ fileUrl?: string;
511
+ voiceUrl?: string;
512
+ videoUrl?: string;
513
+ isEdited: boolean;
514
+ senderId: string;
515
+ isSent: boolean;
516
+ isRead: boolean;
517
+ repliedTo?: /*elided*/ any;
518
+ request?: string;
519
+ };
520
+ request?: string;
521
+ }[]>;
522
+ editWindowHours: globalThis.Ref<number, number>;
523
+ canEdit: globalThis.ComputedRef<boolean>;
524
+ canDelete: globalThis.ComputedRef<boolean>;
525
+ clearSelection: () => void;
526
+ startSelectMode: (message: ExtendedMessage) => void;
527
+ setHandlers: (val: MessagesHandlers) => void;
528
+ toggleSelection: (message: ExtendedMessage) => void;
529
+ triggerEdit: (message: ExtendedMessage) => void;
530
+ copyMessageText: () => void;
531
+ triggerDelete: (specificIds?: string[]) => Promise<void>;
532
+ editingMessage: globalThis.Ref<{
533
+ prevMessage?: {
534
+ id: string;
535
+ conversationId: string;
536
+ date: Date;
537
+ type: import('../types/chat').MessageType;
538
+ text?: string;
539
+ imageUrl?: string[];
540
+ fileUrl?: string;
541
+ voiceUrl?: string;
542
+ videoUrl?: string;
543
+ isEdited: boolean;
544
+ senderId: string;
545
+ isSent: boolean;
546
+ isRead: boolean;
547
+ repliedTo?: /*elided*/ any;
548
+ request?: string;
549
+ };
550
+ nextMessage?: {
551
+ id: string;
552
+ conversationId: string;
553
+ date: Date;
554
+ type: import('../types/chat').MessageType;
555
+ text?: string;
556
+ imageUrl?: string[];
557
+ fileUrl?: string;
558
+ voiceUrl?: string;
559
+ videoUrl?: string;
560
+ isEdited: boolean;
561
+ senderId: string;
562
+ isSent: boolean;
563
+ isRead: boolean;
564
+ repliedTo?: /*elided*/ any;
565
+ request?: string;
566
+ };
567
+ isFirstInDate: boolean;
568
+ contact?: {
569
+ id: string;
570
+ name: string;
571
+ lastName: string;
572
+ isOnline: boolean;
573
+ lastSeen: Date;
574
+ imageUrl: string;
575
+ nationalCode?: string;
576
+ phoneNumber?: string;
577
+ isActive: boolean;
578
+ birthDate: Date;
579
+ lastMessage?: {
580
+ id: string;
581
+ conversationId: string;
582
+ date: Date;
583
+ type: import('../types/chat').MessageType;
584
+ text?: string;
585
+ imageUrl?: string[];
586
+ fileUrl?: string;
587
+ voiceUrl?: string;
588
+ videoUrl?: string;
589
+ isEdited: boolean;
590
+ senderId: string;
591
+ isSent: boolean;
592
+ isRead: boolean;
593
+ repliedTo?: /*elided*/ any;
594
+ request?: string;
595
+ };
596
+ unreadCount?: number;
597
+ serviceType?: "video-call" | "voice-call" | "chat";
598
+ userType: import('../types/chat').UserRoleKey[];
599
+ };
600
+ id: string;
601
+ conversationId: string;
602
+ date: Date;
603
+ type: import('../types/chat').MessageType;
604
+ text?: string;
605
+ imageUrl?: string[];
606
+ fileUrl?: string;
607
+ voiceUrl?: string;
608
+ videoUrl?: string;
609
+ isEdited: boolean;
610
+ senderId: string;
611
+ isSent: boolean;
612
+ isRead: boolean;
613
+ repliedTo?: {
614
+ id: string;
615
+ conversationId: string;
616
+ date: Date;
617
+ type: import('../types/chat').MessageType;
618
+ text?: string;
619
+ imageUrl?: string[];
620
+ fileUrl?: string;
621
+ voiceUrl?: string;
622
+ videoUrl?: string;
623
+ isEdited: boolean;
624
+ senderId: string;
625
+ isSent: boolean;
626
+ isRead: boolean;
627
+ repliedTo?: /*elided*/ any;
628
+ request?: string;
629
+ };
630
+ request?: string;
631
+ }, ExtendedMessage | {
632
+ prevMessage?: {
633
+ id: string;
634
+ conversationId: string;
635
+ date: Date;
636
+ type: import('../types/chat').MessageType;
637
+ text?: string;
638
+ imageUrl?: string[];
639
+ fileUrl?: string;
640
+ voiceUrl?: string;
641
+ videoUrl?: string;
642
+ isEdited: boolean;
643
+ senderId: string;
644
+ isSent: boolean;
645
+ isRead: boolean;
646
+ repliedTo?: /*elided*/ any;
647
+ request?: string;
648
+ };
649
+ nextMessage?: {
650
+ id: string;
651
+ conversationId: string;
652
+ date: Date;
653
+ type: import('../types/chat').MessageType;
654
+ text?: string;
655
+ imageUrl?: string[];
656
+ fileUrl?: string;
657
+ voiceUrl?: string;
658
+ videoUrl?: string;
659
+ isEdited: boolean;
660
+ senderId: string;
661
+ isSent: boolean;
662
+ isRead: boolean;
663
+ repliedTo?: /*elided*/ any;
664
+ request?: string;
665
+ };
666
+ isFirstInDate: boolean;
667
+ contact?: {
668
+ id: string;
669
+ name: string;
670
+ lastName: string;
671
+ isOnline: boolean;
672
+ lastSeen: Date;
673
+ imageUrl: string;
674
+ nationalCode?: string;
675
+ phoneNumber?: string;
676
+ isActive: boolean;
677
+ birthDate: Date;
678
+ lastMessage?: {
679
+ id: string;
680
+ conversationId: string;
681
+ date: Date;
682
+ type: import('../types/chat').MessageType;
683
+ text?: string;
684
+ imageUrl?: string[];
685
+ fileUrl?: string;
686
+ voiceUrl?: string;
687
+ videoUrl?: string;
688
+ isEdited: boolean;
689
+ senderId: string;
690
+ isSent: boolean;
691
+ isRead: boolean;
692
+ repliedTo?: /*elided*/ any;
693
+ request?: string;
694
+ };
695
+ unreadCount?: number;
696
+ serviceType?: "video-call" | "voice-call" | "chat";
697
+ userType: import('../types/chat').UserRoleKey[];
698
+ };
699
+ id: string;
700
+ conversationId: string;
701
+ date: Date;
702
+ type: import('../types/chat').MessageType;
703
+ text?: string;
704
+ imageUrl?: string[];
705
+ fileUrl?: string;
706
+ voiceUrl?: string;
707
+ videoUrl?: string;
708
+ isEdited: boolean;
709
+ senderId: string;
710
+ isSent: boolean;
711
+ isRead: boolean;
712
+ repliedTo?: {
713
+ id: string;
714
+ conversationId: string;
715
+ date: Date;
716
+ type: import('../types/chat').MessageType;
717
+ text?: string;
718
+ imageUrl?: string[];
719
+ fileUrl?: string;
720
+ voiceUrl?: string;
721
+ videoUrl?: string;
722
+ isEdited: boolean;
723
+ senderId: string;
724
+ isSent: boolean;
725
+ isRead: boolean;
726
+ repliedTo?: /*elided*/ any;
727
+ request?: string;
728
+ };
729
+ request?: string;
730
+ }>;
731
+ canReply: globalThis.ComputedRef<boolean>;
732
+ deleteBus: import('@vueuse/core').UseEventBusReturn<string[], any>;
733
+ sendBus: import('@vueuse/core').UseEventBusReturn<Message[], any>;
734
+ updateBus: import('@vueuse/core').UseEventBusReturn<{
735
+ id: string;
736
+ updates: Partial<Message>;
737
+ }, any>;
738
+ sendMessage: (messages: Message[]) => Promise<void>;
739
+ saveEditMessage: (id: string, text: string) => Promise<void>;
740
+ fetchMessages: (conversationId: string, page?: number, pageSize?: number) => Promise<void>;
741
+ markAsRead: (conversationId: string) => void;
742
+ updateLastMessage: (conversationId: string, message: Message) => void;
743
+ patchLastMessage: (conversationId: string, messageId: string, updates: Partial<Message>) => void;
744
+ messagesMap: globalThis.Ref<Record<string, Message[]>, Record<string, Message[]>>;
745
+ messagesLoading: globalThis.Ref<boolean, boolean>;
746
+ messagesPage: globalThis.Ref<Record<string, number>, Record<string, number>>;
747
+ messagesPageSize: globalThis.Ref<number, number>;
748
+ messagesHasNextPage: globalThis.Ref<Record<string, boolean>, Record<string, boolean>>;
749
+ clearActions: () => void;
750
+ editBus: import('@vueuse/core').UseEventBusReturn<ExtendedMessage, any>;
751
+ processingActions: globalThis.Ref<Map<string, string> & Omit<Map<string, string>, keyof Map<any, any>>, Map<string, string> | (Map<string, string> & Omit<Map<string, string>, keyof Map<any, any>>)>;
752
+ isActionBusy: (messageId: string, actionKey: string) => boolean;
753
+ handleRemoteAction: (messageId: string, actionKey: string, apiCall: () => Promise<void>) => Promise<void>;
754
+ uploadProgress: globalThis.Ref<Map<string, {
755
+ uploaded: number;
756
+ total: number;
757
+ progress: number;
758
+ }> & Omit<Map<string, UploadProgressEvent>, keyof Map<any, any>>, Map<string, UploadProgressEvent> | (Map<string, {
759
+ uploaded: number;
760
+ total: number;
761
+ progress: number;
762
+ }> & Omit<Map<string, UploadProgressEvent>, keyof Map<any, any>>)>;
763
+ }, "isOptionMenuOpen" | "isSelectMode" | "selectedMessages" | "replyingTo" | "editWindowHours" | "editingMessage" | "deleteBus" | "sendBus" | "updateBus" | "messagesMap" | "messagesLoading" | "messagesPage" | "messagesPageSize" | "messagesHasNextPage" | "editBus" | "processingActions" | "uploadProgress">, Pick<{
764
+ isOptionMenuOpen: globalThis.Ref<boolean, boolean>;
765
+ isSelectMode: globalThis.Ref<boolean, boolean>;
766
+ selectedMessages: globalThis.Ref<Map<string, {
767
+ prevMessage?: {
768
+ id: string;
769
+ conversationId: string;
770
+ date: Date;
771
+ type: import('../types/chat').MessageType;
772
+ text?: string;
773
+ imageUrl?: string[];
774
+ fileUrl?: string;
775
+ voiceUrl?: string;
776
+ videoUrl?: string;
777
+ isEdited: boolean;
778
+ senderId: string;
779
+ isSent: boolean;
780
+ isRead: boolean;
781
+ repliedTo?: /*elided*/ any;
782
+ request?: string;
783
+ };
784
+ nextMessage?: {
785
+ id: string;
786
+ conversationId: string;
787
+ date: Date;
788
+ type: import('../types/chat').MessageType;
789
+ text?: string;
790
+ imageUrl?: string[];
791
+ fileUrl?: string;
792
+ voiceUrl?: string;
793
+ videoUrl?: string;
794
+ isEdited: boolean;
795
+ senderId: string;
796
+ isSent: boolean;
797
+ isRead: boolean;
798
+ repliedTo?: /*elided*/ any;
799
+ request?: string;
800
+ };
801
+ isFirstInDate: boolean;
802
+ contact?: {
803
+ id: string;
804
+ name: string;
805
+ lastName: string;
806
+ isOnline: boolean;
807
+ lastSeen: Date;
808
+ imageUrl: string;
809
+ nationalCode?: string;
810
+ phoneNumber?: string;
811
+ isActive: boolean;
812
+ birthDate: Date;
813
+ lastMessage?: {
814
+ id: string;
815
+ conversationId: string;
816
+ date: Date;
817
+ type: import('../types/chat').MessageType;
818
+ text?: string;
819
+ imageUrl?: string[];
820
+ fileUrl?: string;
821
+ voiceUrl?: string;
822
+ videoUrl?: string;
823
+ isEdited: boolean;
824
+ senderId: string;
825
+ isSent: boolean;
826
+ isRead: boolean;
827
+ repliedTo?: /*elided*/ any;
828
+ request?: string;
829
+ };
830
+ unreadCount?: number;
831
+ serviceType?: "video-call" | "voice-call" | "chat";
832
+ userType: import('../types/chat').UserRoleKey[];
833
+ };
834
+ id: string;
835
+ conversationId: string;
836
+ date: Date;
837
+ type: import('../types/chat').MessageType;
838
+ text?: string;
839
+ imageUrl?: string[];
840
+ fileUrl?: string;
841
+ voiceUrl?: string;
842
+ videoUrl?: string;
843
+ isEdited: boolean;
844
+ senderId: string;
845
+ isSent: boolean;
846
+ isRead: boolean;
847
+ repliedTo?: {
848
+ id: string;
849
+ conversationId: string;
850
+ date: Date;
851
+ type: import('../types/chat').MessageType;
852
+ text?: string;
853
+ imageUrl?: string[];
854
+ fileUrl?: string;
855
+ voiceUrl?: string;
856
+ videoUrl?: string;
857
+ isEdited: boolean;
858
+ senderId: string;
859
+ isSent: boolean;
860
+ isRead: boolean;
861
+ repliedTo?: /*elided*/ any;
862
+ request?: string;
863
+ };
864
+ request?: string;
865
+ }> & Omit<Map<string, ExtendedMessage>, keyof Map<any, any>>, Map<string, ExtendedMessage> | (Map<string, {
866
+ prevMessage?: {
867
+ id: string;
868
+ conversationId: string;
869
+ date: Date;
870
+ type: import('../types/chat').MessageType;
871
+ text?: string;
872
+ imageUrl?: string[];
873
+ fileUrl?: string;
874
+ voiceUrl?: string;
875
+ videoUrl?: string;
876
+ isEdited: boolean;
877
+ senderId: string;
878
+ isSent: boolean;
879
+ isRead: boolean;
880
+ repliedTo?: /*elided*/ any;
881
+ request?: string;
882
+ };
883
+ nextMessage?: {
884
+ id: string;
885
+ conversationId: string;
886
+ date: Date;
887
+ type: import('../types/chat').MessageType;
888
+ text?: string;
889
+ imageUrl?: string[];
890
+ fileUrl?: string;
891
+ voiceUrl?: string;
892
+ videoUrl?: string;
893
+ isEdited: boolean;
894
+ senderId: string;
895
+ isSent: boolean;
896
+ isRead: boolean;
897
+ repliedTo?: /*elided*/ any;
898
+ request?: string;
899
+ };
900
+ isFirstInDate: boolean;
901
+ contact?: {
902
+ id: string;
903
+ name: string;
904
+ lastName: string;
905
+ isOnline: boolean;
906
+ lastSeen: Date;
907
+ imageUrl: string;
908
+ nationalCode?: string;
909
+ phoneNumber?: string;
910
+ isActive: boolean;
911
+ birthDate: Date;
912
+ lastMessage?: {
913
+ id: string;
914
+ conversationId: string;
915
+ date: Date;
916
+ type: import('../types/chat').MessageType;
917
+ text?: string;
918
+ imageUrl?: string[];
919
+ fileUrl?: string;
920
+ voiceUrl?: string;
921
+ videoUrl?: string;
922
+ isEdited: boolean;
923
+ senderId: string;
924
+ isSent: boolean;
925
+ isRead: boolean;
926
+ repliedTo?: /*elided*/ any;
927
+ request?: string;
928
+ };
929
+ unreadCount?: number;
930
+ serviceType?: "video-call" | "voice-call" | "chat";
931
+ userType: import('../types/chat').UserRoleKey[];
932
+ };
933
+ id: string;
934
+ conversationId: string;
935
+ date: Date;
936
+ type: import('../types/chat').MessageType;
937
+ text?: string;
938
+ imageUrl?: string[];
939
+ fileUrl?: string;
940
+ voiceUrl?: string;
941
+ videoUrl?: string;
942
+ isEdited: boolean;
943
+ senderId: string;
944
+ isSent: boolean;
945
+ isRead: boolean;
946
+ repliedTo?: {
947
+ id: string;
948
+ conversationId: string;
949
+ date: Date;
950
+ type: import('../types/chat').MessageType;
951
+ text?: string;
952
+ imageUrl?: string[];
953
+ fileUrl?: string;
954
+ voiceUrl?: string;
955
+ videoUrl?: string;
956
+ isEdited: boolean;
957
+ senderId: string;
958
+ isSent: boolean;
959
+ isRead: boolean;
960
+ repliedTo?: /*elided*/ any;
961
+ request?: string;
962
+ };
963
+ request?: string;
964
+ }> & Omit<Map<string, ExtendedMessage>, keyof Map<any, any>>)>;
965
+ replyingTo: globalThis.Ref<{
966
+ prevMessage?: {
967
+ id: string;
968
+ conversationId: string;
969
+ date: Date;
970
+ type: import('../types/chat').MessageType;
971
+ text?: string;
972
+ imageUrl?: string[];
973
+ fileUrl?: string;
974
+ voiceUrl?: string;
975
+ videoUrl?: string;
976
+ isEdited: boolean;
977
+ senderId: string;
978
+ isSent: boolean;
979
+ isRead: boolean;
980
+ repliedTo?: /*elided*/ any;
981
+ request?: string;
982
+ };
983
+ nextMessage?: {
984
+ id: string;
985
+ conversationId: string;
986
+ date: Date;
987
+ type: import('../types/chat').MessageType;
988
+ text?: string;
989
+ imageUrl?: string[];
990
+ fileUrl?: string;
991
+ voiceUrl?: string;
992
+ videoUrl?: string;
993
+ isEdited: boolean;
994
+ senderId: string;
995
+ isSent: boolean;
996
+ isRead: boolean;
997
+ repliedTo?: /*elided*/ any;
998
+ request?: string;
999
+ };
1000
+ isFirstInDate: boolean;
1001
+ contact?: {
1002
+ id: string;
1003
+ name: string;
1004
+ lastName: string;
1005
+ isOnline: boolean;
1006
+ lastSeen: Date;
1007
+ imageUrl: string;
1008
+ nationalCode?: string;
1009
+ phoneNumber?: string;
1010
+ isActive: boolean;
1011
+ birthDate: Date;
1012
+ lastMessage?: {
1013
+ id: string;
1014
+ conversationId: string;
1015
+ date: Date;
1016
+ type: import('../types/chat').MessageType;
1017
+ text?: string;
1018
+ imageUrl?: string[];
1019
+ fileUrl?: string;
1020
+ voiceUrl?: string;
1021
+ videoUrl?: string;
1022
+ isEdited: boolean;
1023
+ senderId: string;
1024
+ isSent: boolean;
1025
+ isRead: boolean;
1026
+ repliedTo?: /*elided*/ any;
1027
+ request?: string;
1028
+ };
1029
+ unreadCount?: number;
1030
+ serviceType?: "video-call" | "voice-call" | "chat";
1031
+ userType: import('../types/chat').UserRoleKey[];
1032
+ };
1033
+ id: string;
1034
+ conversationId: string;
1035
+ date: Date;
1036
+ type: import('../types/chat').MessageType;
1037
+ text?: string;
1038
+ imageUrl?: string[];
1039
+ fileUrl?: string;
1040
+ voiceUrl?: string;
1041
+ videoUrl?: string;
1042
+ isEdited: boolean;
1043
+ senderId: string;
1044
+ isSent: boolean;
1045
+ isRead: boolean;
1046
+ repliedTo?: {
1047
+ id: string;
1048
+ conversationId: string;
1049
+ date: Date;
1050
+ type: import('../types/chat').MessageType;
1051
+ text?: string;
1052
+ imageUrl?: string[];
1053
+ fileUrl?: string;
1054
+ voiceUrl?: string;
1055
+ videoUrl?: string;
1056
+ isEdited: boolean;
1057
+ senderId: string;
1058
+ isSent: boolean;
1059
+ isRead: boolean;
1060
+ repliedTo?: /*elided*/ any;
1061
+ request?: string;
1062
+ };
1063
+ request?: string;
1064
+ }, ExtendedMessage | {
1065
+ prevMessage?: {
1066
+ id: string;
1067
+ conversationId: string;
1068
+ date: Date;
1069
+ type: import('../types/chat').MessageType;
1070
+ text?: string;
1071
+ imageUrl?: string[];
1072
+ fileUrl?: string;
1073
+ voiceUrl?: string;
1074
+ videoUrl?: string;
1075
+ isEdited: boolean;
1076
+ senderId: string;
1077
+ isSent: boolean;
1078
+ isRead: boolean;
1079
+ repliedTo?: /*elided*/ any;
1080
+ request?: string;
1081
+ };
1082
+ nextMessage?: {
1083
+ id: string;
1084
+ conversationId: string;
1085
+ date: Date;
1086
+ type: import('../types/chat').MessageType;
1087
+ text?: string;
1088
+ imageUrl?: string[];
1089
+ fileUrl?: string;
1090
+ voiceUrl?: string;
1091
+ videoUrl?: string;
1092
+ isEdited: boolean;
1093
+ senderId: string;
1094
+ isSent: boolean;
1095
+ isRead: boolean;
1096
+ repliedTo?: /*elided*/ any;
1097
+ request?: string;
1098
+ };
1099
+ isFirstInDate: boolean;
1100
+ contact?: {
1101
+ id: string;
1102
+ name: string;
1103
+ lastName: string;
1104
+ isOnline: boolean;
1105
+ lastSeen: Date;
1106
+ imageUrl: string;
1107
+ nationalCode?: string;
1108
+ phoneNumber?: string;
1109
+ isActive: boolean;
1110
+ birthDate: Date;
1111
+ lastMessage?: {
1112
+ id: string;
1113
+ conversationId: string;
1114
+ date: Date;
1115
+ type: import('../types/chat').MessageType;
1116
+ text?: string;
1117
+ imageUrl?: string[];
1118
+ fileUrl?: string;
1119
+ voiceUrl?: string;
1120
+ videoUrl?: string;
1121
+ isEdited: boolean;
1122
+ senderId: string;
1123
+ isSent: boolean;
1124
+ isRead: boolean;
1125
+ repliedTo?: /*elided*/ any;
1126
+ request?: string;
1127
+ };
1128
+ unreadCount?: number;
1129
+ serviceType?: "video-call" | "voice-call" | "chat";
1130
+ userType: import('../types/chat').UserRoleKey[];
1131
+ };
1132
+ id: string;
1133
+ conversationId: string;
1134
+ date: Date;
1135
+ type: import('../types/chat').MessageType;
1136
+ text?: string;
1137
+ imageUrl?: string[];
1138
+ fileUrl?: string;
1139
+ voiceUrl?: string;
1140
+ videoUrl?: string;
1141
+ isEdited: boolean;
1142
+ senderId: string;
1143
+ isSent: boolean;
1144
+ isRead: boolean;
1145
+ repliedTo?: {
1146
+ id: string;
1147
+ conversationId: string;
1148
+ date: Date;
1149
+ type: import('../types/chat').MessageType;
1150
+ text?: string;
1151
+ imageUrl?: string[];
1152
+ fileUrl?: string;
1153
+ voiceUrl?: string;
1154
+ videoUrl?: string;
1155
+ isEdited: boolean;
1156
+ senderId: string;
1157
+ isSent: boolean;
1158
+ isRead: boolean;
1159
+ repliedTo?: /*elided*/ any;
1160
+ request?: string;
1161
+ };
1162
+ request?: string;
1163
+ }>;
1164
+ selectedArray: globalThis.ComputedRef<{
1165
+ prevMessage?: {
1166
+ id: string;
1167
+ conversationId: string;
1168
+ date: Date;
1169
+ type: import('../types/chat').MessageType;
1170
+ text?: string;
1171
+ imageUrl?: string[];
1172
+ fileUrl?: string;
1173
+ voiceUrl?: string;
1174
+ videoUrl?: string;
1175
+ isEdited: boolean;
1176
+ senderId: string;
1177
+ isSent: boolean;
1178
+ isRead: boolean;
1179
+ repliedTo?: /*elided*/ any;
1180
+ request?: string;
1181
+ };
1182
+ nextMessage?: {
1183
+ id: string;
1184
+ conversationId: string;
1185
+ date: Date;
1186
+ type: import('../types/chat').MessageType;
1187
+ text?: string;
1188
+ imageUrl?: string[];
1189
+ fileUrl?: string;
1190
+ voiceUrl?: string;
1191
+ videoUrl?: string;
1192
+ isEdited: boolean;
1193
+ senderId: string;
1194
+ isSent: boolean;
1195
+ isRead: boolean;
1196
+ repliedTo?: /*elided*/ any;
1197
+ request?: string;
1198
+ };
1199
+ isFirstInDate: boolean;
1200
+ contact?: {
1201
+ id: string;
1202
+ name: string;
1203
+ lastName: string;
1204
+ isOnline: boolean;
1205
+ lastSeen: Date;
1206
+ imageUrl: string;
1207
+ nationalCode?: string;
1208
+ phoneNumber?: string;
1209
+ isActive: boolean;
1210
+ birthDate: Date;
1211
+ lastMessage?: {
1212
+ id: string;
1213
+ conversationId: string;
1214
+ date: Date;
1215
+ type: import('../types/chat').MessageType;
1216
+ text?: string;
1217
+ imageUrl?: string[];
1218
+ fileUrl?: string;
1219
+ voiceUrl?: string;
1220
+ videoUrl?: string;
1221
+ isEdited: boolean;
1222
+ senderId: string;
1223
+ isSent: boolean;
1224
+ isRead: boolean;
1225
+ repliedTo?: /*elided*/ any;
1226
+ request?: string;
1227
+ };
1228
+ unreadCount?: number;
1229
+ serviceType?: "video-call" | "voice-call" | "chat";
1230
+ userType: import('../types/chat').UserRoleKey[];
1231
+ };
1232
+ id: string;
1233
+ conversationId: string;
1234
+ date: Date;
1235
+ type: import('../types/chat').MessageType;
1236
+ text?: string;
1237
+ imageUrl?: string[];
1238
+ fileUrl?: string;
1239
+ voiceUrl?: string;
1240
+ videoUrl?: string;
1241
+ isEdited: boolean;
1242
+ senderId: string;
1243
+ isSent: boolean;
1244
+ isRead: boolean;
1245
+ repliedTo?: {
1246
+ id: string;
1247
+ conversationId: string;
1248
+ date: Date;
1249
+ type: import('../types/chat').MessageType;
1250
+ text?: string;
1251
+ imageUrl?: string[];
1252
+ fileUrl?: string;
1253
+ voiceUrl?: string;
1254
+ videoUrl?: string;
1255
+ isEdited: boolean;
1256
+ senderId: string;
1257
+ isSent: boolean;
1258
+ isRead: boolean;
1259
+ repliedTo?: /*elided*/ any;
1260
+ request?: string;
1261
+ };
1262
+ request?: string;
1263
+ }[]>;
1264
+ editWindowHours: globalThis.Ref<number, number>;
1265
+ canEdit: globalThis.ComputedRef<boolean>;
1266
+ canDelete: globalThis.ComputedRef<boolean>;
1267
+ clearSelection: () => void;
1268
+ startSelectMode: (message: ExtendedMessage) => void;
1269
+ setHandlers: (val: MessagesHandlers) => void;
1270
+ toggleSelection: (message: ExtendedMessage) => void;
1271
+ triggerEdit: (message: ExtendedMessage) => void;
1272
+ copyMessageText: () => void;
1273
+ triggerDelete: (specificIds?: string[]) => Promise<void>;
1274
+ editingMessage: globalThis.Ref<{
1275
+ prevMessage?: {
1276
+ id: string;
1277
+ conversationId: string;
1278
+ date: Date;
1279
+ type: import('../types/chat').MessageType;
1280
+ text?: string;
1281
+ imageUrl?: string[];
1282
+ fileUrl?: string;
1283
+ voiceUrl?: string;
1284
+ videoUrl?: string;
1285
+ isEdited: boolean;
1286
+ senderId: string;
1287
+ isSent: boolean;
1288
+ isRead: boolean;
1289
+ repliedTo?: /*elided*/ any;
1290
+ request?: string;
1291
+ };
1292
+ nextMessage?: {
1293
+ id: string;
1294
+ conversationId: string;
1295
+ date: Date;
1296
+ type: import('../types/chat').MessageType;
1297
+ text?: string;
1298
+ imageUrl?: string[];
1299
+ fileUrl?: string;
1300
+ voiceUrl?: string;
1301
+ videoUrl?: string;
1302
+ isEdited: boolean;
1303
+ senderId: string;
1304
+ isSent: boolean;
1305
+ isRead: boolean;
1306
+ repliedTo?: /*elided*/ any;
1307
+ request?: string;
1308
+ };
1309
+ isFirstInDate: boolean;
1310
+ contact?: {
1311
+ id: string;
1312
+ name: string;
1313
+ lastName: string;
1314
+ isOnline: boolean;
1315
+ lastSeen: Date;
1316
+ imageUrl: string;
1317
+ nationalCode?: string;
1318
+ phoneNumber?: string;
1319
+ isActive: boolean;
1320
+ birthDate: Date;
1321
+ lastMessage?: {
1322
+ id: string;
1323
+ conversationId: string;
1324
+ date: Date;
1325
+ type: import('../types/chat').MessageType;
1326
+ text?: string;
1327
+ imageUrl?: string[];
1328
+ fileUrl?: string;
1329
+ voiceUrl?: string;
1330
+ videoUrl?: string;
1331
+ isEdited: boolean;
1332
+ senderId: string;
1333
+ isSent: boolean;
1334
+ isRead: boolean;
1335
+ repliedTo?: /*elided*/ any;
1336
+ request?: string;
1337
+ };
1338
+ unreadCount?: number;
1339
+ serviceType?: "video-call" | "voice-call" | "chat";
1340
+ userType: import('../types/chat').UserRoleKey[];
1341
+ };
1342
+ id: string;
1343
+ conversationId: string;
1344
+ date: Date;
1345
+ type: import('../types/chat').MessageType;
1346
+ text?: string;
1347
+ imageUrl?: string[];
1348
+ fileUrl?: string;
1349
+ voiceUrl?: string;
1350
+ videoUrl?: string;
1351
+ isEdited: boolean;
1352
+ senderId: string;
1353
+ isSent: boolean;
1354
+ isRead: boolean;
1355
+ repliedTo?: {
1356
+ id: string;
1357
+ conversationId: string;
1358
+ date: Date;
1359
+ type: import('../types/chat').MessageType;
1360
+ text?: string;
1361
+ imageUrl?: string[];
1362
+ fileUrl?: string;
1363
+ voiceUrl?: string;
1364
+ videoUrl?: string;
1365
+ isEdited: boolean;
1366
+ senderId: string;
1367
+ isSent: boolean;
1368
+ isRead: boolean;
1369
+ repliedTo?: /*elided*/ any;
1370
+ request?: string;
1371
+ };
1372
+ request?: string;
1373
+ }, ExtendedMessage | {
1374
+ prevMessage?: {
1375
+ id: string;
1376
+ conversationId: string;
1377
+ date: Date;
1378
+ type: import('../types/chat').MessageType;
1379
+ text?: string;
1380
+ imageUrl?: string[];
1381
+ fileUrl?: string;
1382
+ voiceUrl?: string;
1383
+ videoUrl?: string;
1384
+ isEdited: boolean;
1385
+ senderId: string;
1386
+ isSent: boolean;
1387
+ isRead: boolean;
1388
+ repliedTo?: /*elided*/ any;
1389
+ request?: string;
1390
+ };
1391
+ nextMessage?: {
1392
+ id: string;
1393
+ conversationId: string;
1394
+ date: Date;
1395
+ type: import('../types/chat').MessageType;
1396
+ text?: string;
1397
+ imageUrl?: string[];
1398
+ fileUrl?: string;
1399
+ voiceUrl?: string;
1400
+ videoUrl?: string;
1401
+ isEdited: boolean;
1402
+ senderId: string;
1403
+ isSent: boolean;
1404
+ isRead: boolean;
1405
+ repliedTo?: /*elided*/ any;
1406
+ request?: string;
1407
+ };
1408
+ isFirstInDate: boolean;
1409
+ contact?: {
1410
+ id: string;
1411
+ name: string;
1412
+ lastName: string;
1413
+ isOnline: boolean;
1414
+ lastSeen: Date;
1415
+ imageUrl: string;
1416
+ nationalCode?: string;
1417
+ phoneNumber?: string;
1418
+ isActive: boolean;
1419
+ birthDate: Date;
1420
+ lastMessage?: {
1421
+ id: string;
1422
+ conversationId: string;
1423
+ date: Date;
1424
+ type: import('../types/chat').MessageType;
1425
+ text?: string;
1426
+ imageUrl?: string[];
1427
+ fileUrl?: string;
1428
+ voiceUrl?: string;
1429
+ videoUrl?: string;
1430
+ isEdited: boolean;
1431
+ senderId: string;
1432
+ isSent: boolean;
1433
+ isRead: boolean;
1434
+ repliedTo?: /*elided*/ any;
1435
+ request?: string;
1436
+ };
1437
+ unreadCount?: number;
1438
+ serviceType?: "video-call" | "voice-call" | "chat";
1439
+ userType: import('../types/chat').UserRoleKey[];
1440
+ };
1441
+ id: string;
1442
+ conversationId: string;
1443
+ date: Date;
1444
+ type: import('../types/chat').MessageType;
1445
+ text?: string;
1446
+ imageUrl?: string[];
1447
+ fileUrl?: string;
1448
+ voiceUrl?: string;
1449
+ videoUrl?: string;
1450
+ isEdited: boolean;
1451
+ senderId: string;
1452
+ isSent: boolean;
1453
+ isRead: boolean;
1454
+ repliedTo?: {
1455
+ id: string;
1456
+ conversationId: string;
1457
+ date: Date;
1458
+ type: import('../types/chat').MessageType;
1459
+ text?: string;
1460
+ imageUrl?: string[];
1461
+ fileUrl?: string;
1462
+ voiceUrl?: string;
1463
+ videoUrl?: string;
1464
+ isEdited: boolean;
1465
+ senderId: string;
1466
+ isSent: boolean;
1467
+ isRead: boolean;
1468
+ repliedTo?: /*elided*/ any;
1469
+ request?: string;
1470
+ };
1471
+ request?: string;
1472
+ }>;
1473
+ canReply: globalThis.ComputedRef<boolean>;
1474
+ deleteBus: import('@vueuse/core').UseEventBusReturn<string[], any>;
1475
+ sendBus: import('@vueuse/core').UseEventBusReturn<Message[], any>;
1476
+ updateBus: import('@vueuse/core').UseEventBusReturn<{
1477
+ id: string;
1478
+ updates: Partial<Message>;
1479
+ }, any>;
1480
+ sendMessage: (messages: Message[]) => Promise<void>;
1481
+ saveEditMessage: (id: string, text: string) => Promise<void>;
1482
+ fetchMessages: (conversationId: string, page?: number, pageSize?: number) => Promise<void>;
1483
+ markAsRead: (conversationId: string) => void;
1484
+ updateLastMessage: (conversationId: string, message: Message) => void;
1485
+ patchLastMessage: (conversationId: string, messageId: string, updates: Partial<Message>) => void;
1486
+ messagesMap: globalThis.Ref<Record<string, Message[]>, Record<string, Message[]>>;
1487
+ messagesLoading: globalThis.Ref<boolean, boolean>;
1488
+ messagesPage: globalThis.Ref<Record<string, number>, Record<string, number>>;
1489
+ messagesPageSize: globalThis.Ref<number, number>;
1490
+ messagesHasNextPage: globalThis.Ref<Record<string, boolean>, Record<string, boolean>>;
1491
+ clearActions: () => void;
1492
+ editBus: import('@vueuse/core').UseEventBusReturn<ExtendedMessage, any>;
1493
+ processingActions: globalThis.Ref<Map<string, string> & Omit<Map<string, string>, keyof Map<any, any>>, Map<string, string> | (Map<string, string> & Omit<Map<string, string>, keyof Map<any, any>>)>;
1494
+ isActionBusy: (messageId: string, actionKey: string) => boolean;
1495
+ handleRemoteAction: (messageId: string, actionKey: string, apiCall: () => Promise<void>) => Promise<void>;
1496
+ uploadProgress: globalThis.Ref<Map<string, {
1497
+ uploaded: number;
1498
+ total: number;
1499
+ progress: number;
1500
+ }> & Omit<Map<string, UploadProgressEvent>, keyof Map<any, any>>, Map<string, UploadProgressEvent> | (Map<string, {
1501
+ uploaded: number;
1502
+ total: number;
1503
+ progress: number;
1504
+ }> & Omit<Map<string, UploadProgressEvent>, keyof Map<any, any>>)>;
1505
+ }, "selectedArray" | "canEdit" | "canDelete" | "canReply">, Pick<{
1506
+ isOptionMenuOpen: globalThis.Ref<boolean, boolean>;
1507
+ isSelectMode: globalThis.Ref<boolean, boolean>;
1508
+ selectedMessages: globalThis.Ref<Map<string, {
1509
+ prevMessage?: {
1510
+ id: string;
1511
+ conversationId: string;
1512
+ date: Date;
1513
+ type: import('../types/chat').MessageType;
1514
+ text?: string;
1515
+ imageUrl?: string[];
1516
+ fileUrl?: string;
1517
+ voiceUrl?: string;
1518
+ videoUrl?: string;
1519
+ isEdited: boolean;
1520
+ senderId: string;
1521
+ isSent: boolean;
1522
+ isRead: boolean;
1523
+ repliedTo?: /*elided*/ any;
1524
+ request?: string;
1525
+ };
1526
+ nextMessage?: {
1527
+ id: string;
1528
+ conversationId: string;
1529
+ date: Date;
1530
+ type: import('../types/chat').MessageType;
1531
+ text?: string;
1532
+ imageUrl?: string[];
1533
+ fileUrl?: string;
1534
+ voiceUrl?: string;
1535
+ videoUrl?: string;
1536
+ isEdited: boolean;
1537
+ senderId: string;
1538
+ isSent: boolean;
1539
+ isRead: boolean;
1540
+ repliedTo?: /*elided*/ any;
1541
+ request?: string;
1542
+ };
1543
+ isFirstInDate: boolean;
1544
+ contact?: {
1545
+ id: string;
1546
+ name: string;
1547
+ lastName: string;
1548
+ isOnline: boolean;
1549
+ lastSeen: Date;
1550
+ imageUrl: string;
1551
+ nationalCode?: string;
1552
+ phoneNumber?: string;
1553
+ isActive: boolean;
1554
+ birthDate: Date;
1555
+ lastMessage?: {
1556
+ id: string;
1557
+ conversationId: string;
1558
+ date: Date;
1559
+ type: import('../types/chat').MessageType;
1560
+ text?: string;
1561
+ imageUrl?: string[];
1562
+ fileUrl?: string;
1563
+ voiceUrl?: string;
1564
+ videoUrl?: string;
1565
+ isEdited: boolean;
1566
+ senderId: string;
1567
+ isSent: boolean;
1568
+ isRead: boolean;
1569
+ repliedTo?: /*elided*/ any;
1570
+ request?: string;
1571
+ };
1572
+ unreadCount?: number;
1573
+ serviceType?: "video-call" | "voice-call" | "chat";
1574
+ userType: import('../types/chat').UserRoleKey[];
1575
+ };
1576
+ id: string;
1577
+ conversationId: string;
1578
+ date: Date;
1579
+ type: import('../types/chat').MessageType;
1580
+ text?: string;
1581
+ imageUrl?: string[];
1582
+ fileUrl?: string;
1583
+ voiceUrl?: string;
1584
+ videoUrl?: string;
1585
+ isEdited: boolean;
1586
+ senderId: string;
1587
+ isSent: boolean;
1588
+ isRead: boolean;
1589
+ repliedTo?: {
1590
+ id: string;
1591
+ conversationId: string;
1592
+ date: Date;
1593
+ type: import('../types/chat').MessageType;
1594
+ text?: string;
1595
+ imageUrl?: string[];
1596
+ fileUrl?: string;
1597
+ voiceUrl?: string;
1598
+ videoUrl?: string;
1599
+ isEdited: boolean;
1600
+ senderId: string;
1601
+ isSent: boolean;
1602
+ isRead: boolean;
1603
+ repliedTo?: /*elided*/ any;
1604
+ request?: string;
1605
+ };
1606
+ request?: string;
1607
+ }> & Omit<Map<string, ExtendedMessage>, keyof Map<any, any>>, Map<string, ExtendedMessage> | (Map<string, {
1608
+ prevMessage?: {
1609
+ id: string;
1610
+ conversationId: string;
1611
+ date: Date;
1612
+ type: import('../types/chat').MessageType;
1613
+ text?: string;
1614
+ imageUrl?: string[];
1615
+ fileUrl?: string;
1616
+ voiceUrl?: string;
1617
+ videoUrl?: string;
1618
+ isEdited: boolean;
1619
+ senderId: string;
1620
+ isSent: boolean;
1621
+ isRead: boolean;
1622
+ repliedTo?: /*elided*/ any;
1623
+ request?: string;
1624
+ };
1625
+ nextMessage?: {
1626
+ id: string;
1627
+ conversationId: string;
1628
+ date: Date;
1629
+ type: import('../types/chat').MessageType;
1630
+ text?: string;
1631
+ imageUrl?: string[];
1632
+ fileUrl?: string;
1633
+ voiceUrl?: string;
1634
+ videoUrl?: string;
1635
+ isEdited: boolean;
1636
+ senderId: string;
1637
+ isSent: boolean;
1638
+ isRead: boolean;
1639
+ repliedTo?: /*elided*/ any;
1640
+ request?: string;
1641
+ };
1642
+ isFirstInDate: boolean;
1643
+ contact?: {
1644
+ id: string;
1645
+ name: string;
1646
+ lastName: string;
1647
+ isOnline: boolean;
1648
+ lastSeen: Date;
1649
+ imageUrl: string;
1650
+ nationalCode?: string;
1651
+ phoneNumber?: string;
1652
+ isActive: boolean;
1653
+ birthDate: Date;
1654
+ lastMessage?: {
1655
+ id: string;
1656
+ conversationId: string;
1657
+ date: Date;
1658
+ type: import('../types/chat').MessageType;
1659
+ text?: string;
1660
+ imageUrl?: string[];
1661
+ fileUrl?: string;
1662
+ voiceUrl?: string;
1663
+ videoUrl?: string;
1664
+ isEdited: boolean;
1665
+ senderId: string;
1666
+ isSent: boolean;
1667
+ isRead: boolean;
1668
+ repliedTo?: /*elided*/ any;
1669
+ request?: string;
1670
+ };
1671
+ unreadCount?: number;
1672
+ serviceType?: "video-call" | "voice-call" | "chat";
1673
+ userType: import('../types/chat').UserRoleKey[];
1674
+ };
1675
+ id: string;
1676
+ conversationId: string;
1677
+ date: Date;
1678
+ type: import('../types/chat').MessageType;
1679
+ text?: string;
1680
+ imageUrl?: string[];
1681
+ fileUrl?: string;
1682
+ voiceUrl?: string;
1683
+ videoUrl?: string;
1684
+ isEdited: boolean;
1685
+ senderId: string;
1686
+ isSent: boolean;
1687
+ isRead: boolean;
1688
+ repliedTo?: {
1689
+ id: string;
1690
+ conversationId: string;
1691
+ date: Date;
1692
+ type: import('../types/chat').MessageType;
1693
+ text?: string;
1694
+ imageUrl?: string[];
1695
+ fileUrl?: string;
1696
+ voiceUrl?: string;
1697
+ videoUrl?: string;
1698
+ isEdited: boolean;
1699
+ senderId: string;
1700
+ isSent: boolean;
1701
+ isRead: boolean;
1702
+ repliedTo?: /*elided*/ any;
1703
+ request?: string;
1704
+ };
1705
+ request?: string;
1706
+ }> & Omit<Map<string, ExtendedMessage>, keyof Map<any, any>>)>;
1707
+ replyingTo: globalThis.Ref<{
1708
+ prevMessage?: {
1709
+ id: string;
1710
+ conversationId: string;
1711
+ date: Date;
1712
+ type: import('../types/chat').MessageType;
1713
+ text?: string;
1714
+ imageUrl?: string[];
1715
+ fileUrl?: string;
1716
+ voiceUrl?: string;
1717
+ videoUrl?: string;
1718
+ isEdited: boolean;
1719
+ senderId: string;
1720
+ isSent: boolean;
1721
+ isRead: boolean;
1722
+ repliedTo?: /*elided*/ any;
1723
+ request?: string;
1724
+ };
1725
+ nextMessage?: {
1726
+ id: string;
1727
+ conversationId: string;
1728
+ date: Date;
1729
+ type: import('../types/chat').MessageType;
1730
+ text?: string;
1731
+ imageUrl?: string[];
1732
+ fileUrl?: string;
1733
+ voiceUrl?: string;
1734
+ videoUrl?: string;
1735
+ isEdited: boolean;
1736
+ senderId: string;
1737
+ isSent: boolean;
1738
+ isRead: boolean;
1739
+ repliedTo?: /*elided*/ any;
1740
+ request?: string;
1741
+ };
1742
+ isFirstInDate: boolean;
1743
+ contact?: {
1744
+ id: string;
1745
+ name: string;
1746
+ lastName: string;
1747
+ isOnline: boolean;
1748
+ lastSeen: Date;
1749
+ imageUrl: string;
1750
+ nationalCode?: string;
1751
+ phoneNumber?: string;
1752
+ isActive: boolean;
1753
+ birthDate: Date;
1754
+ lastMessage?: {
1755
+ id: string;
1756
+ conversationId: string;
1757
+ date: Date;
1758
+ type: import('../types/chat').MessageType;
1759
+ text?: string;
1760
+ imageUrl?: string[];
1761
+ fileUrl?: string;
1762
+ voiceUrl?: string;
1763
+ videoUrl?: string;
1764
+ isEdited: boolean;
1765
+ senderId: string;
1766
+ isSent: boolean;
1767
+ isRead: boolean;
1768
+ repliedTo?: /*elided*/ any;
1769
+ request?: string;
1770
+ };
1771
+ unreadCount?: number;
1772
+ serviceType?: "video-call" | "voice-call" | "chat";
1773
+ userType: import('../types/chat').UserRoleKey[];
1774
+ };
1775
+ id: string;
1776
+ conversationId: string;
1777
+ date: Date;
1778
+ type: import('../types/chat').MessageType;
1779
+ text?: string;
1780
+ imageUrl?: string[];
1781
+ fileUrl?: string;
1782
+ voiceUrl?: string;
1783
+ videoUrl?: string;
1784
+ isEdited: boolean;
1785
+ senderId: string;
1786
+ isSent: boolean;
1787
+ isRead: boolean;
1788
+ repliedTo?: {
1789
+ id: string;
1790
+ conversationId: string;
1791
+ date: Date;
1792
+ type: import('../types/chat').MessageType;
1793
+ text?: string;
1794
+ imageUrl?: string[];
1795
+ fileUrl?: string;
1796
+ voiceUrl?: string;
1797
+ videoUrl?: string;
1798
+ isEdited: boolean;
1799
+ senderId: string;
1800
+ isSent: boolean;
1801
+ isRead: boolean;
1802
+ repliedTo?: /*elided*/ any;
1803
+ request?: string;
1804
+ };
1805
+ request?: string;
1806
+ }, ExtendedMessage | {
1807
+ prevMessage?: {
1808
+ id: string;
1809
+ conversationId: string;
1810
+ date: Date;
1811
+ type: import('../types/chat').MessageType;
1812
+ text?: string;
1813
+ imageUrl?: string[];
1814
+ fileUrl?: string;
1815
+ voiceUrl?: string;
1816
+ videoUrl?: string;
1817
+ isEdited: boolean;
1818
+ senderId: string;
1819
+ isSent: boolean;
1820
+ isRead: boolean;
1821
+ repliedTo?: /*elided*/ any;
1822
+ request?: string;
1823
+ };
1824
+ nextMessage?: {
1825
+ id: string;
1826
+ conversationId: string;
1827
+ date: Date;
1828
+ type: import('../types/chat').MessageType;
1829
+ text?: string;
1830
+ imageUrl?: string[];
1831
+ fileUrl?: string;
1832
+ voiceUrl?: string;
1833
+ videoUrl?: string;
1834
+ isEdited: boolean;
1835
+ senderId: string;
1836
+ isSent: boolean;
1837
+ isRead: boolean;
1838
+ repliedTo?: /*elided*/ any;
1839
+ request?: string;
1840
+ };
1841
+ isFirstInDate: boolean;
1842
+ contact?: {
1843
+ id: string;
1844
+ name: string;
1845
+ lastName: string;
1846
+ isOnline: boolean;
1847
+ lastSeen: Date;
1848
+ imageUrl: string;
1849
+ nationalCode?: string;
1850
+ phoneNumber?: string;
1851
+ isActive: boolean;
1852
+ birthDate: Date;
1853
+ lastMessage?: {
1854
+ id: string;
1855
+ conversationId: string;
1856
+ date: Date;
1857
+ type: import('../types/chat').MessageType;
1858
+ text?: string;
1859
+ imageUrl?: string[];
1860
+ fileUrl?: string;
1861
+ voiceUrl?: string;
1862
+ videoUrl?: string;
1863
+ isEdited: boolean;
1864
+ senderId: string;
1865
+ isSent: boolean;
1866
+ isRead: boolean;
1867
+ repliedTo?: /*elided*/ any;
1868
+ request?: string;
1869
+ };
1870
+ unreadCount?: number;
1871
+ serviceType?: "video-call" | "voice-call" | "chat";
1872
+ userType: import('../types/chat').UserRoleKey[];
1873
+ };
1874
+ id: string;
1875
+ conversationId: string;
1876
+ date: Date;
1877
+ type: import('../types/chat').MessageType;
1878
+ text?: string;
1879
+ imageUrl?: string[];
1880
+ fileUrl?: string;
1881
+ voiceUrl?: string;
1882
+ videoUrl?: string;
1883
+ isEdited: boolean;
1884
+ senderId: string;
1885
+ isSent: boolean;
1886
+ isRead: boolean;
1887
+ repliedTo?: {
1888
+ id: string;
1889
+ conversationId: string;
1890
+ date: Date;
1891
+ type: import('../types/chat').MessageType;
1892
+ text?: string;
1893
+ imageUrl?: string[];
1894
+ fileUrl?: string;
1895
+ voiceUrl?: string;
1896
+ videoUrl?: string;
1897
+ isEdited: boolean;
1898
+ senderId: string;
1899
+ isSent: boolean;
1900
+ isRead: boolean;
1901
+ repliedTo?: /*elided*/ any;
1902
+ request?: string;
1903
+ };
1904
+ request?: string;
1905
+ }>;
1906
+ selectedArray: globalThis.ComputedRef<{
1907
+ prevMessage?: {
1908
+ id: string;
1909
+ conversationId: string;
1910
+ date: Date;
1911
+ type: import('../types/chat').MessageType;
1912
+ text?: string;
1913
+ imageUrl?: string[];
1914
+ fileUrl?: string;
1915
+ voiceUrl?: string;
1916
+ videoUrl?: string;
1917
+ isEdited: boolean;
1918
+ senderId: string;
1919
+ isSent: boolean;
1920
+ isRead: boolean;
1921
+ repliedTo?: /*elided*/ any;
1922
+ request?: string;
1923
+ };
1924
+ nextMessage?: {
1925
+ id: string;
1926
+ conversationId: string;
1927
+ date: Date;
1928
+ type: import('../types/chat').MessageType;
1929
+ text?: string;
1930
+ imageUrl?: string[];
1931
+ fileUrl?: string;
1932
+ voiceUrl?: string;
1933
+ videoUrl?: string;
1934
+ isEdited: boolean;
1935
+ senderId: string;
1936
+ isSent: boolean;
1937
+ isRead: boolean;
1938
+ repliedTo?: /*elided*/ any;
1939
+ request?: string;
1940
+ };
1941
+ isFirstInDate: boolean;
1942
+ contact?: {
1943
+ id: string;
1944
+ name: string;
1945
+ lastName: string;
1946
+ isOnline: boolean;
1947
+ lastSeen: Date;
1948
+ imageUrl: string;
1949
+ nationalCode?: string;
1950
+ phoneNumber?: string;
1951
+ isActive: boolean;
1952
+ birthDate: Date;
1953
+ lastMessage?: {
1954
+ id: string;
1955
+ conversationId: string;
1956
+ date: Date;
1957
+ type: import('../types/chat').MessageType;
1958
+ text?: string;
1959
+ imageUrl?: string[];
1960
+ fileUrl?: string;
1961
+ voiceUrl?: string;
1962
+ videoUrl?: string;
1963
+ isEdited: boolean;
1964
+ senderId: string;
1965
+ isSent: boolean;
1966
+ isRead: boolean;
1967
+ repliedTo?: /*elided*/ any;
1968
+ request?: string;
1969
+ };
1970
+ unreadCount?: number;
1971
+ serviceType?: "video-call" | "voice-call" | "chat";
1972
+ userType: import('../types/chat').UserRoleKey[];
1973
+ };
1974
+ id: string;
1975
+ conversationId: string;
1976
+ date: Date;
1977
+ type: import('../types/chat').MessageType;
1978
+ text?: string;
1979
+ imageUrl?: string[];
1980
+ fileUrl?: string;
1981
+ voiceUrl?: string;
1982
+ videoUrl?: string;
1983
+ isEdited: boolean;
1984
+ senderId: string;
1985
+ isSent: boolean;
1986
+ isRead: boolean;
1987
+ repliedTo?: {
1988
+ id: string;
1989
+ conversationId: string;
1990
+ date: Date;
1991
+ type: import('../types/chat').MessageType;
1992
+ text?: string;
1993
+ imageUrl?: string[];
1994
+ fileUrl?: string;
1995
+ voiceUrl?: string;
1996
+ videoUrl?: string;
1997
+ isEdited: boolean;
1998
+ senderId: string;
1999
+ isSent: boolean;
2000
+ isRead: boolean;
2001
+ repliedTo?: /*elided*/ any;
2002
+ request?: string;
2003
+ };
2004
+ request?: string;
2005
+ }[]>;
2006
+ editWindowHours: globalThis.Ref<number, number>;
2007
+ canEdit: globalThis.ComputedRef<boolean>;
2008
+ canDelete: globalThis.ComputedRef<boolean>;
2009
+ clearSelection: () => void;
2010
+ startSelectMode: (message: ExtendedMessage) => void;
2011
+ setHandlers: (val: MessagesHandlers) => void;
2012
+ toggleSelection: (message: ExtendedMessage) => void;
2013
+ triggerEdit: (message: ExtendedMessage) => void;
2014
+ copyMessageText: () => void;
2015
+ triggerDelete: (specificIds?: string[]) => Promise<void>;
2016
+ editingMessage: globalThis.Ref<{
2017
+ prevMessage?: {
2018
+ id: string;
2019
+ conversationId: string;
2020
+ date: Date;
2021
+ type: import('../types/chat').MessageType;
2022
+ text?: string;
2023
+ imageUrl?: string[];
2024
+ fileUrl?: string;
2025
+ voiceUrl?: string;
2026
+ videoUrl?: string;
2027
+ isEdited: boolean;
2028
+ senderId: string;
2029
+ isSent: boolean;
2030
+ isRead: boolean;
2031
+ repliedTo?: /*elided*/ any;
2032
+ request?: string;
2033
+ };
2034
+ nextMessage?: {
2035
+ id: string;
2036
+ conversationId: string;
2037
+ date: Date;
2038
+ type: import('../types/chat').MessageType;
2039
+ text?: string;
2040
+ imageUrl?: string[];
2041
+ fileUrl?: string;
2042
+ voiceUrl?: string;
2043
+ videoUrl?: string;
2044
+ isEdited: boolean;
2045
+ senderId: string;
2046
+ isSent: boolean;
2047
+ isRead: boolean;
2048
+ repliedTo?: /*elided*/ any;
2049
+ request?: string;
2050
+ };
2051
+ isFirstInDate: boolean;
2052
+ contact?: {
2053
+ id: string;
2054
+ name: string;
2055
+ lastName: string;
2056
+ isOnline: boolean;
2057
+ lastSeen: Date;
2058
+ imageUrl: string;
2059
+ nationalCode?: string;
2060
+ phoneNumber?: string;
2061
+ isActive: boolean;
2062
+ birthDate: Date;
2063
+ lastMessage?: {
2064
+ id: string;
2065
+ conversationId: string;
2066
+ date: Date;
2067
+ type: import('../types/chat').MessageType;
2068
+ text?: string;
2069
+ imageUrl?: string[];
2070
+ fileUrl?: string;
2071
+ voiceUrl?: string;
2072
+ videoUrl?: string;
2073
+ isEdited: boolean;
2074
+ senderId: string;
2075
+ isSent: boolean;
2076
+ isRead: boolean;
2077
+ repliedTo?: /*elided*/ any;
2078
+ request?: string;
2079
+ };
2080
+ unreadCount?: number;
2081
+ serviceType?: "video-call" | "voice-call" | "chat";
2082
+ userType: import('../types/chat').UserRoleKey[];
2083
+ };
2084
+ id: string;
2085
+ conversationId: string;
2086
+ date: Date;
2087
+ type: import('../types/chat').MessageType;
2088
+ text?: string;
2089
+ imageUrl?: string[];
2090
+ fileUrl?: string;
2091
+ voiceUrl?: string;
2092
+ videoUrl?: string;
2093
+ isEdited: boolean;
2094
+ senderId: string;
2095
+ isSent: boolean;
2096
+ isRead: boolean;
2097
+ repliedTo?: {
2098
+ id: string;
2099
+ conversationId: string;
2100
+ date: Date;
2101
+ type: import('../types/chat').MessageType;
2102
+ text?: string;
2103
+ imageUrl?: string[];
2104
+ fileUrl?: string;
2105
+ voiceUrl?: string;
2106
+ videoUrl?: string;
2107
+ isEdited: boolean;
2108
+ senderId: string;
2109
+ isSent: boolean;
2110
+ isRead: boolean;
2111
+ repliedTo?: /*elided*/ any;
2112
+ request?: string;
2113
+ };
2114
+ request?: string;
2115
+ }, ExtendedMessage | {
2116
+ prevMessage?: {
2117
+ id: string;
2118
+ conversationId: string;
2119
+ date: Date;
2120
+ type: import('../types/chat').MessageType;
2121
+ text?: string;
2122
+ imageUrl?: string[];
2123
+ fileUrl?: string;
2124
+ voiceUrl?: string;
2125
+ videoUrl?: string;
2126
+ isEdited: boolean;
2127
+ senderId: string;
2128
+ isSent: boolean;
2129
+ isRead: boolean;
2130
+ repliedTo?: /*elided*/ any;
2131
+ request?: string;
2132
+ };
2133
+ nextMessage?: {
2134
+ id: string;
2135
+ conversationId: string;
2136
+ date: Date;
2137
+ type: import('../types/chat').MessageType;
2138
+ text?: string;
2139
+ imageUrl?: string[];
2140
+ fileUrl?: string;
2141
+ voiceUrl?: string;
2142
+ videoUrl?: string;
2143
+ isEdited: boolean;
2144
+ senderId: string;
2145
+ isSent: boolean;
2146
+ isRead: boolean;
2147
+ repliedTo?: /*elided*/ any;
2148
+ request?: string;
2149
+ };
2150
+ isFirstInDate: boolean;
2151
+ contact?: {
2152
+ id: string;
2153
+ name: string;
2154
+ lastName: string;
2155
+ isOnline: boolean;
2156
+ lastSeen: Date;
2157
+ imageUrl: string;
2158
+ nationalCode?: string;
2159
+ phoneNumber?: string;
2160
+ isActive: boolean;
2161
+ birthDate: Date;
2162
+ lastMessage?: {
2163
+ id: string;
2164
+ conversationId: string;
2165
+ date: Date;
2166
+ type: import('../types/chat').MessageType;
2167
+ text?: string;
2168
+ imageUrl?: string[];
2169
+ fileUrl?: string;
2170
+ voiceUrl?: string;
2171
+ videoUrl?: string;
2172
+ isEdited: boolean;
2173
+ senderId: string;
2174
+ isSent: boolean;
2175
+ isRead: boolean;
2176
+ repliedTo?: /*elided*/ any;
2177
+ request?: string;
2178
+ };
2179
+ unreadCount?: number;
2180
+ serviceType?: "video-call" | "voice-call" | "chat";
2181
+ userType: import('../types/chat').UserRoleKey[];
2182
+ };
2183
+ id: string;
2184
+ conversationId: string;
2185
+ date: Date;
2186
+ type: import('../types/chat').MessageType;
2187
+ text?: string;
2188
+ imageUrl?: string[];
2189
+ fileUrl?: string;
2190
+ voiceUrl?: string;
2191
+ videoUrl?: string;
2192
+ isEdited: boolean;
2193
+ senderId: string;
2194
+ isSent: boolean;
2195
+ isRead: boolean;
2196
+ repliedTo?: {
2197
+ id: string;
2198
+ conversationId: string;
2199
+ date: Date;
2200
+ type: import('../types/chat').MessageType;
2201
+ text?: string;
2202
+ imageUrl?: string[];
2203
+ fileUrl?: string;
2204
+ voiceUrl?: string;
2205
+ videoUrl?: string;
2206
+ isEdited: boolean;
2207
+ senderId: string;
2208
+ isSent: boolean;
2209
+ isRead: boolean;
2210
+ repliedTo?: /*elided*/ any;
2211
+ request?: string;
2212
+ };
2213
+ request?: string;
2214
+ }>;
2215
+ canReply: globalThis.ComputedRef<boolean>;
2216
+ deleteBus: import('@vueuse/core').UseEventBusReturn<string[], any>;
2217
+ sendBus: import('@vueuse/core').UseEventBusReturn<Message[], any>;
2218
+ updateBus: import('@vueuse/core').UseEventBusReturn<{
2219
+ id: string;
2220
+ updates: Partial<Message>;
2221
+ }, any>;
2222
+ sendMessage: (messages: Message[]) => Promise<void>;
2223
+ saveEditMessage: (id: string, text: string) => Promise<void>;
2224
+ fetchMessages: (conversationId: string, page?: number, pageSize?: number) => Promise<void>;
2225
+ markAsRead: (conversationId: string) => void;
2226
+ updateLastMessage: (conversationId: string, message: Message) => void;
2227
+ patchLastMessage: (conversationId: string, messageId: string, updates: Partial<Message>) => void;
2228
+ messagesMap: globalThis.Ref<Record<string, Message[]>, Record<string, Message[]>>;
2229
+ messagesLoading: globalThis.Ref<boolean, boolean>;
2230
+ messagesPage: globalThis.Ref<Record<string, number>, Record<string, number>>;
2231
+ messagesPageSize: globalThis.Ref<number, number>;
2232
+ messagesHasNextPage: globalThis.Ref<Record<string, boolean>, Record<string, boolean>>;
2233
+ clearActions: () => void;
2234
+ editBus: import('@vueuse/core').UseEventBusReturn<ExtendedMessage, any>;
2235
+ processingActions: globalThis.Ref<Map<string, string> & Omit<Map<string, string>, keyof Map<any, any>>, Map<string, string> | (Map<string, string> & Omit<Map<string, string>, keyof Map<any, any>>)>;
2236
+ isActionBusy: (messageId: string, actionKey: string) => boolean;
2237
+ handleRemoteAction: (messageId: string, actionKey: string, apiCall: () => Promise<void>) => Promise<void>;
2238
+ uploadProgress: globalThis.Ref<Map<string, {
2239
+ uploaded: number;
2240
+ total: number;
2241
+ progress: number;
2242
+ }> & Omit<Map<string, UploadProgressEvent>, keyof Map<any, any>>, Map<string, UploadProgressEvent> | (Map<string, {
2243
+ uploaded: number;
2244
+ total: number;
2245
+ progress: number;
2246
+ }> & Omit<Map<string, UploadProgressEvent>, keyof Map<any, any>>)>;
2247
+ }, "setHandlers" | "clearSelection" | "startSelectMode" | "toggleSelection" | "triggerEdit" | "copyMessageText" | "triggerDelete" | "sendMessage" | "saveEditMessage" | "fetchMessages" | "markAsRead" | "updateLastMessage" | "patchLastMessage" | "clearActions" | "isActionBusy" | "handleRemoteAction">>;
2248
+ //# sourceMappingURL=messageStores.d.ts.map