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