@yonus_amire01/chat 1.0.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,983 @@
1
+ import { Contact, StateKeys, UserRoleKey } from '../types/chat';
2
+ export interface FetchContactsParams {
3
+ page: number;
4
+ pageSize: number;
5
+ state: StateKeys;
6
+ search?: string;
7
+ }
8
+ export interface ContactsPage {
9
+ data: Contact[];
10
+ hasNextPage: boolean;
11
+ }
12
+ export interface ChatHandlers {
13
+ fetchConversations(params: FetchContactsParams): Promise<ContactsPage>;
14
+ deleteConversation(id: string): Promise<void>;
15
+ }
16
+ export declare const useChatStore: import('pinia').StoreDefinition<"chat", Pick<{
17
+ currentUserId: globalThis.Ref<string, string>;
18
+ chosenRole: globalThis.Ref<UserRoleKey, UserRoleKey>;
19
+ currentUserBirthDate: globalThis.Ref<Date, Date>;
20
+ conversationStates: globalThis.Ref<{
21
+ "": {
22
+ data: {
23
+ id: string;
24
+ name: string;
25
+ lastName: string;
26
+ isOnline: boolean;
27
+ lastSeen: Date;
28
+ imageUrl: string;
29
+ nationalCode?: string;
30
+ phoneNumber?: string;
31
+ isActive: boolean;
32
+ birthDate: Date;
33
+ lastMessage?: {
34
+ id: string;
35
+ conversationId: string;
36
+ date: Date;
37
+ type: import('../types/chat').MessageType;
38
+ text?: string;
39
+ imageUrl?: string[];
40
+ fileUrl?: string;
41
+ voiceUrl?: string;
42
+ videoUrl?: string;
43
+ isEdited: boolean;
44
+ senderId: string;
45
+ isSent: boolean;
46
+ isRead: boolean;
47
+ repliedTo?: /*elided*/ any;
48
+ request?: string;
49
+ };
50
+ unreadCount?: number;
51
+ serviceType?: "video-call" | "voice-call" | "chat";
52
+ userType: UserRoleKey[];
53
+ }[];
54
+ loading: boolean;
55
+ page: number;
56
+ hasNextPage: boolean;
57
+ };
58
+ online: {
59
+ data: {
60
+ id: string;
61
+ name: string;
62
+ lastName: string;
63
+ isOnline: boolean;
64
+ lastSeen: Date;
65
+ imageUrl: string;
66
+ nationalCode?: string;
67
+ phoneNumber?: string;
68
+ isActive: boolean;
69
+ birthDate: Date;
70
+ lastMessage?: {
71
+ id: string;
72
+ conversationId: string;
73
+ date: Date;
74
+ type: import('../types/chat').MessageType;
75
+ text?: string;
76
+ imageUrl?: string[];
77
+ fileUrl?: string;
78
+ voiceUrl?: string;
79
+ videoUrl?: string;
80
+ isEdited: boolean;
81
+ senderId: string;
82
+ isSent: boolean;
83
+ isRead: boolean;
84
+ repliedTo?: /*elided*/ any;
85
+ request?: string;
86
+ };
87
+ unreadCount?: number;
88
+ serviceType?: "video-call" | "voice-call" | "chat";
89
+ userType: UserRoleKey[];
90
+ }[];
91
+ loading: boolean;
92
+ page: number;
93
+ hasNextPage: boolean;
94
+ };
95
+ ended: {
96
+ data: {
97
+ id: string;
98
+ name: string;
99
+ lastName: string;
100
+ isOnline: boolean;
101
+ lastSeen: Date;
102
+ imageUrl: string;
103
+ nationalCode?: string;
104
+ phoneNumber?: string;
105
+ isActive: boolean;
106
+ birthDate: Date;
107
+ lastMessage?: {
108
+ id: string;
109
+ conversationId: string;
110
+ date: Date;
111
+ type: import('../types/chat').MessageType;
112
+ text?: string;
113
+ imageUrl?: string[];
114
+ fileUrl?: string;
115
+ voiceUrl?: string;
116
+ videoUrl?: string;
117
+ isEdited: boolean;
118
+ senderId: string;
119
+ isSent: boolean;
120
+ isRead: boolean;
121
+ repliedTo?: /*elided*/ any;
122
+ request?: string;
123
+ };
124
+ unreadCount?: number;
125
+ serviceType?: "video-call" | "voice-call" | "chat";
126
+ userType: UserRoleKey[];
127
+ }[];
128
+ loading: boolean;
129
+ page: number;
130
+ hasNextPage: boolean;
131
+ };
132
+ active: {
133
+ data: {
134
+ id: string;
135
+ name: string;
136
+ lastName: string;
137
+ isOnline: boolean;
138
+ lastSeen: Date;
139
+ imageUrl: string;
140
+ nationalCode?: string;
141
+ phoneNumber?: string;
142
+ isActive: boolean;
143
+ birthDate: Date;
144
+ lastMessage?: {
145
+ id: string;
146
+ conversationId: string;
147
+ date: Date;
148
+ type: import('../types/chat').MessageType;
149
+ text?: string;
150
+ imageUrl?: string[];
151
+ fileUrl?: string;
152
+ voiceUrl?: string;
153
+ videoUrl?: string;
154
+ isEdited: boolean;
155
+ senderId: string;
156
+ isSent: boolean;
157
+ isRead: boolean;
158
+ repliedTo?: /*elided*/ any;
159
+ request?: string;
160
+ };
161
+ unreadCount?: number;
162
+ serviceType?: "video-call" | "voice-call" | "chat";
163
+ userType: UserRoleKey[];
164
+ }[];
165
+ loading: boolean;
166
+ page: number;
167
+ hasNextPage: boolean;
168
+ };
169
+ }, Record<StateKeys, {
170
+ data: Contact[];
171
+ loading: boolean;
172
+ page: number;
173
+ hasNextPage: boolean;
174
+ }> | {
175
+ "": {
176
+ data: {
177
+ id: string;
178
+ name: string;
179
+ lastName: string;
180
+ isOnline: boolean;
181
+ lastSeen: Date;
182
+ imageUrl: string;
183
+ nationalCode?: string;
184
+ phoneNumber?: string;
185
+ isActive: boolean;
186
+ birthDate: Date;
187
+ lastMessage?: {
188
+ id: string;
189
+ conversationId: string;
190
+ date: Date;
191
+ type: import('../types/chat').MessageType;
192
+ text?: string;
193
+ imageUrl?: string[];
194
+ fileUrl?: string;
195
+ voiceUrl?: string;
196
+ videoUrl?: string;
197
+ isEdited: boolean;
198
+ senderId: string;
199
+ isSent: boolean;
200
+ isRead: boolean;
201
+ repliedTo?: /*elided*/ any;
202
+ request?: string;
203
+ };
204
+ unreadCount?: number;
205
+ serviceType?: "video-call" | "voice-call" | "chat";
206
+ userType: UserRoleKey[];
207
+ }[];
208
+ loading: boolean;
209
+ page: number;
210
+ hasNextPage: boolean;
211
+ };
212
+ online: {
213
+ data: {
214
+ id: string;
215
+ name: string;
216
+ lastName: string;
217
+ isOnline: boolean;
218
+ lastSeen: Date;
219
+ imageUrl: string;
220
+ nationalCode?: string;
221
+ phoneNumber?: string;
222
+ isActive: boolean;
223
+ birthDate: Date;
224
+ lastMessage?: {
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
+ unreadCount?: number;
242
+ serviceType?: "video-call" | "voice-call" | "chat";
243
+ userType: UserRoleKey[];
244
+ }[];
245
+ loading: boolean;
246
+ page: number;
247
+ hasNextPage: boolean;
248
+ };
249
+ ended: {
250
+ data: {
251
+ id: string;
252
+ name: string;
253
+ lastName: string;
254
+ isOnline: boolean;
255
+ lastSeen: Date;
256
+ imageUrl: string;
257
+ nationalCode?: string;
258
+ phoneNumber?: string;
259
+ isActive: boolean;
260
+ birthDate: Date;
261
+ lastMessage?: {
262
+ id: string;
263
+ conversationId: string;
264
+ date: Date;
265
+ type: import('../types/chat').MessageType;
266
+ text?: string;
267
+ imageUrl?: string[];
268
+ fileUrl?: string;
269
+ voiceUrl?: string;
270
+ videoUrl?: string;
271
+ isEdited: boolean;
272
+ senderId: string;
273
+ isSent: boolean;
274
+ isRead: boolean;
275
+ repliedTo?: /*elided*/ any;
276
+ request?: string;
277
+ };
278
+ unreadCount?: number;
279
+ serviceType?: "video-call" | "voice-call" | "chat";
280
+ userType: UserRoleKey[];
281
+ }[];
282
+ loading: boolean;
283
+ page: number;
284
+ hasNextPage: boolean;
285
+ };
286
+ active: {
287
+ data: {
288
+ id: string;
289
+ name: string;
290
+ lastName: string;
291
+ isOnline: boolean;
292
+ lastSeen: Date;
293
+ imageUrl: string;
294
+ nationalCode?: string;
295
+ phoneNumber?: string;
296
+ isActive: boolean;
297
+ birthDate: Date;
298
+ lastMessage?: {
299
+ id: string;
300
+ conversationId: string;
301
+ date: Date;
302
+ type: import('../types/chat').MessageType;
303
+ text?: string;
304
+ imageUrl?: string[];
305
+ fileUrl?: string;
306
+ voiceUrl?: string;
307
+ videoUrl?: string;
308
+ isEdited: boolean;
309
+ senderId: string;
310
+ isSent: boolean;
311
+ isRead: boolean;
312
+ repliedTo?: /*elided*/ any;
313
+ request?: string;
314
+ };
315
+ unreadCount?: number;
316
+ serviceType?: "video-call" | "voice-call" | "chat";
317
+ userType: UserRoleKey[];
318
+ }[];
319
+ loading: boolean;
320
+ page: number;
321
+ hasNextPage: boolean;
322
+ };
323
+ }>;
324
+ activeConversationId: globalThis.Ref<string, string>;
325
+ profileViewOpen: globalThis.Ref<boolean, boolean>;
326
+ typingByConversation: globalThis.Ref<Record<string, string>, Record<string, string>>;
327
+ chatsPerPage: globalThis.ComputedRef<number>;
328
+ unreadCount: globalThis.ComputedRef<number>;
329
+ setHandlers: (val: ChatHandlers) => void;
330
+ setSelectedChat: (id: string | null) => void;
331
+ openProfile: () => void;
332
+ closeProfile: () => void;
333
+ deleteConversation: (id: string) => Promise<void>;
334
+ fetchConversations: (filterState?: StateKeys, page?: number, search?: string) => Promise<void>;
335
+ loadNextPage: (filter: StateKeys) => Promise<void>;
336
+ getContactById: (id: string) => Contact | null;
337
+ getDisplayedContacts: (filter: StateKeys) => Contact[];
338
+ }, "currentUserId" | "chosenRole" | "currentUserBirthDate" | "conversationStates" | "activeConversationId" | "profileViewOpen" | "typingByConversation">, Pick<{
339
+ currentUserId: globalThis.Ref<string, string>;
340
+ chosenRole: globalThis.Ref<UserRoleKey, UserRoleKey>;
341
+ currentUserBirthDate: globalThis.Ref<Date, Date>;
342
+ conversationStates: globalThis.Ref<{
343
+ "": {
344
+ data: {
345
+ id: string;
346
+ name: string;
347
+ lastName: string;
348
+ isOnline: boolean;
349
+ lastSeen: Date;
350
+ imageUrl: string;
351
+ nationalCode?: string;
352
+ phoneNumber?: string;
353
+ isActive: boolean;
354
+ birthDate: Date;
355
+ lastMessage?: {
356
+ id: string;
357
+ conversationId: string;
358
+ date: Date;
359
+ type: import('../types/chat').MessageType;
360
+ text?: string;
361
+ imageUrl?: string[];
362
+ fileUrl?: string;
363
+ voiceUrl?: string;
364
+ videoUrl?: string;
365
+ isEdited: boolean;
366
+ senderId: string;
367
+ isSent: boolean;
368
+ isRead: boolean;
369
+ repliedTo?: /*elided*/ any;
370
+ request?: string;
371
+ };
372
+ unreadCount?: number;
373
+ serviceType?: "video-call" | "voice-call" | "chat";
374
+ userType: UserRoleKey[];
375
+ }[];
376
+ loading: boolean;
377
+ page: number;
378
+ hasNextPage: boolean;
379
+ };
380
+ online: {
381
+ data: {
382
+ id: string;
383
+ name: string;
384
+ lastName: string;
385
+ isOnline: boolean;
386
+ lastSeen: Date;
387
+ imageUrl: string;
388
+ nationalCode?: string;
389
+ phoneNumber?: string;
390
+ isActive: boolean;
391
+ birthDate: Date;
392
+ lastMessage?: {
393
+ id: string;
394
+ conversationId: string;
395
+ date: Date;
396
+ type: import('../types/chat').MessageType;
397
+ text?: string;
398
+ imageUrl?: string[];
399
+ fileUrl?: string;
400
+ voiceUrl?: string;
401
+ videoUrl?: string;
402
+ isEdited: boolean;
403
+ senderId: string;
404
+ isSent: boolean;
405
+ isRead: boolean;
406
+ repliedTo?: /*elided*/ any;
407
+ request?: string;
408
+ };
409
+ unreadCount?: number;
410
+ serviceType?: "video-call" | "voice-call" | "chat";
411
+ userType: UserRoleKey[];
412
+ }[];
413
+ loading: boolean;
414
+ page: number;
415
+ hasNextPage: boolean;
416
+ };
417
+ ended: {
418
+ data: {
419
+ id: string;
420
+ name: string;
421
+ lastName: string;
422
+ isOnline: boolean;
423
+ lastSeen: Date;
424
+ imageUrl: string;
425
+ nationalCode?: string;
426
+ phoneNumber?: string;
427
+ isActive: boolean;
428
+ birthDate: Date;
429
+ lastMessage?: {
430
+ id: string;
431
+ conversationId: string;
432
+ date: Date;
433
+ type: import('../types/chat').MessageType;
434
+ text?: string;
435
+ imageUrl?: string[];
436
+ fileUrl?: string;
437
+ voiceUrl?: string;
438
+ videoUrl?: string;
439
+ isEdited: boolean;
440
+ senderId: string;
441
+ isSent: boolean;
442
+ isRead: boolean;
443
+ repliedTo?: /*elided*/ any;
444
+ request?: string;
445
+ };
446
+ unreadCount?: number;
447
+ serviceType?: "video-call" | "voice-call" | "chat";
448
+ userType: UserRoleKey[];
449
+ }[];
450
+ loading: boolean;
451
+ page: number;
452
+ hasNextPage: boolean;
453
+ };
454
+ active: {
455
+ data: {
456
+ id: string;
457
+ name: string;
458
+ lastName: string;
459
+ isOnline: boolean;
460
+ lastSeen: Date;
461
+ imageUrl: string;
462
+ nationalCode?: string;
463
+ phoneNumber?: string;
464
+ isActive: boolean;
465
+ birthDate: Date;
466
+ lastMessage?: {
467
+ id: string;
468
+ conversationId: string;
469
+ date: Date;
470
+ type: import('../types/chat').MessageType;
471
+ text?: string;
472
+ imageUrl?: string[];
473
+ fileUrl?: string;
474
+ voiceUrl?: string;
475
+ videoUrl?: string;
476
+ isEdited: boolean;
477
+ senderId: string;
478
+ isSent: boolean;
479
+ isRead: boolean;
480
+ repliedTo?: /*elided*/ any;
481
+ request?: string;
482
+ };
483
+ unreadCount?: number;
484
+ serviceType?: "video-call" | "voice-call" | "chat";
485
+ userType: UserRoleKey[];
486
+ }[];
487
+ loading: boolean;
488
+ page: number;
489
+ hasNextPage: boolean;
490
+ };
491
+ }, Record<StateKeys, {
492
+ data: Contact[];
493
+ loading: boolean;
494
+ page: number;
495
+ hasNextPage: boolean;
496
+ }> | {
497
+ "": {
498
+ data: {
499
+ id: string;
500
+ name: string;
501
+ lastName: string;
502
+ isOnline: boolean;
503
+ lastSeen: Date;
504
+ imageUrl: string;
505
+ nationalCode?: string;
506
+ phoneNumber?: string;
507
+ isActive: boolean;
508
+ birthDate: Date;
509
+ lastMessage?: {
510
+ id: string;
511
+ conversationId: string;
512
+ date: Date;
513
+ type: import('../types/chat').MessageType;
514
+ text?: string;
515
+ imageUrl?: string[];
516
+ fileUrl?: string;
517
+ voiceUrl?: string;
518
+ videoUrl?: string;
519
+ isEdited: boolean;
520
+ senderId: string;
521
+ isSent: boolean;
522
+ isRead: boolean;
523
+ repliedTo?: /*elided*/ any;
524
+ request?: string;
525
+ };
526
+ unreadCount?: number;
527
+ serviceType?: "video-call" | "voice-call" | "chat";
528
+ userType: UserRoleKey[];
529
+ }[];
530
+ loading: boolean;
531
+ page: number;
532
+ hasNextPage: boolean;
533
+ };
534
+ online: {
535
+ data: {
536
+ id: string;
537
+ name: string;
538
+ lastName: string;
539
+ isOnline: boolean;
540
+ lastSeen: Date;
541
+ imageUrl: string;
542
+ nationalCode?: string;
543
+ phoneNumber?: string;
544
+ isActive: boolean;
545
+ birthDate: Date;
546
+ lastMessage?: {
547
+ id: string;
548
+ conversationId: string;
549
+ date: Date;
550
+ type: import('../types/chat').MessageType;
551
+ text?: string;
552
+ imageUrl?: string[];
553
+ fileUrl?: string;
554
+ voiceUrl?: string;
555
+ videoUrl?: string;
556
+ isEdited: boolean;
557
+ senderId: string;
558
+ isSent: boolean;
559
+ isRead: boolean;
560
+ repliedTo?: /*elided*/ any;
561
+ request?: string;
562
+ };
563
+ unreadCount?: number;
564
+ serviceType?: "video-call" | "voice-call" | "chat";
565
+ userType: UserRoleKey[];
566
+ }[];
567
+ loading: boolean;
568
+ page: number;
569
+ hasNextPage: boolean;
570
+ };
571
+ ended: {
572
+ data: {
573
+ id: string;
574
+ name: string;
575
+ lastName: string;
576
+ isOnline: boolean;
577
+ lastSeen: Date;
578
+ imageUrl: string;
579
+ nationalCode?: string;
580
+ phoneNumber?: string;
581
+ isActive: boolean;
582
+ birthDate: Date;
583
+ lastMessage?: {
584
+ id: string;
585
+ conversationId: string;
586
+ date: Date;
587
+ type: import('../types/chat').MessageType;
588
+ text?: string;
589
+ imageUrl?: string[];
590
+ fileUrl?: string;
591
+ voiceUrl?: string;
592
+ videoUrl?: string;
593
+ isEdited: boolean;
594
+ senderId: string;
595
+ isSent: boolean;
596
+ isRead: boolean;
597
+ repliedTo?: /*elided*/ any;
598
+ request?: string;
599
+ };
600
+ unreadCount?: number;
601
+ serviceType?: "video-call" | "voice-call" | "chat";
602
+ userType: UserRoleKey[];
603
+ }[];
604
+ loading: boolean;
605
+ page: number;
606
+ hasNextPage: boolean;
607
+ };
608
+ active: {
609
+ data: {
610
+ id: string;
611
+ name: string;
612
+ lastName: string;
613
+ isOnline: boolean;
614
+ lastSeen: Date;
615
+ imageUrl: string;
616
+ nationalCode?: string;
617
+ phoneNumber?: string;
618
+ isActive: boolean;
619
+ birthDate: Date;
620
+ lastMessage?: {
621
+ id: string;
622
+ conversationId: string;
623
+ date: Date;
624
+ type: import('../types/chat').MessageType;
625
+ text?: string;
626
+ imageUrl?: string[];
627
+ fileUrl?: string;
628
+ voiceUrl?: string;
629
+ videoUrl?: string;
630
+ isEdited: boolean;
631
+ senderId: string;
632
+ isSent: boolean;
633
+ isRead: boolean;
634
+ repliedTo?: /*elided*/ any;
635
+ request?: string;
636
+ };
637
+ unreadCount?: number;
638
+ serviceType?: "video-call" | "voice-call" | "chat";
639
+ userType: UserRoleKey[];
640
+ }[];
641
+ loading: boolean;
642
+ page: number;
643
+ hasNextPage: boolean;
644
+ };
645
+ }>;
646
+ activeConversationId: globalThis.Ref<string, string>;
647
+ profileViewOpen: globalThis.Ref<boolean, boolean>;
648
+ typingByConversation: globalThis.Ref<Record<string, string>, Record<string, string>>;
649
+ chatsPerPage: globalThis.ComputedRef<number>;
650
+ unreadCount: globalThis.ComputedRef<number>;
651
+ setHandlers: (val: ChatHandlers) => void;
652
+ setSelectedChat: (id: string | null) => void;
653
+ openProfile: () => void;
654
+ closeProfile: () => void;
655
+ deleteConversation: (id: string) => Promise<void>;
656
+ fetchConversations: (filterState?: StateKeys, page?: number, search?: string) => Promise<void>;
657
+ loadNextPage: (filter: StateKeys) => Promise<void>;
658
+ getContactById: (id: string) => Contact | null;
659
+ getDisplayedContacts: (filter: StateKeys) => Contact[];
660
+ }, "chatsPerPage" | "unreadCount">, Pick<{
661
+ currentUserId: globalThis.Ref<string, string>;
662
+ chosenRole: globalThis.Ref<UserRoleKey, UserRoleKey>;
663
+ currentUserBirthDate: globalThis.Ref<Date, Date>;
664
+ conversationStates: globalThis.Ref<{
665
+ "": {
666
+ data: {
667
+ id: string;
668
+ name: string;
669
+ lastName: string;
670
+ isOnline: boolean;
671
+ lastSeen: Date;
672
+ imageUrl: string;
673
+ nationalCode?: string;
674
+ phoneNumber?: string;
675
+ isActive: boolean;
676
+ birthDate: Date;
677
+ lastMessage?: {
678
+ id: string;
679
+ conversationId: string;
680
+ date: Date;
681
+ type: import('../types/chat').MessageType;
682
+ text?: string;
683
+ imageUrl?: string[];
684
+ fileUrl?: string;
685
+ voiceUrl?: string;
686
+ videoUrl?: string;
687
+ isEdited: boolean;
688
+ senderId: string;
689
+ isSent: boolean;
690
+ isRead: boolean;
691
+ repliedTo?: /*elided*/ any;
692
+ request?: string;
693
+ };
694
+ unreadCount?: number;
695
+ serviceType?: "video-call" | "voice-call" | "chat";
696
+ userType: UserRoleKey[];
697
+ }[];
698
+ loading: boolean;
699
+ page: number;
700
+ hasNextPage: boolean;
701
+ };
702
+ online: {
703
+ data: {
704
+ id: string;
705
+ name: string;
706
+ lastName: string;
707
+ isOnline: boolean;
708
+ lastSeen: Date;
709
+ imageUrl: string;
710
+ nationalCode?: string;
711
+ phoneNumber?: string;
712
+ isActive: boolean;
713
+ birthDate: Date;
714
+ lastMessage?: {
715
+ id: string;
716
+ conversationId: string;
717
+ date: Date;
718
+ type: import('../types/chat').MessageType;
719
+ text?: string;
720
+ imageUrl?: string[];
721
+ fileUrl?: string;
722
+ voiceUrl?: string;
723
+ videoUrl?: string;
724
+ isEdited: boolean;
725
+ senderId: string;
726
+ isSent: boolean;
727
+ isRead: boolean;
728
+ repliedTo?: /*elided*/ any;
729
+ request?: string;
730
+ };
731
+ unreadCount?: number;
732
+ serviceType?: "video-call" | "voice-call" | "chat";
733
+ userType: UserRoleKey[];
734
+ }[];
735
+ loading: boolean;
736
+ page: number;
737
+ hasNextPage: boolean;
738
+ };
739
+ ended: {
740
+ data: {
741
+ id: string;
742
+ name: string;
743
+ lastName: string;
744
+ isOnline: boolean;
745
+ lastSeen: Date;
746
+ imageUrl: string;
747
+ nationalCode?: string;
748
+ phoneNumber?: string;
749
+ isActive: boolean;
750
+ birthDate: Date;
751
+ lastMessage?: {
752
+ id: string;
753
+ conversationId: string;
754
+ date: Date;
755
+ type: import('../types/chat').MessageType;
756
+ text?: string;
757
+ imageUrl?: string[];
758
+ fileUrl?: string;
759
+ voiceUrl?: string;
760
+ videoUrl?: string;
761
+ isEdited: boolean;
762
+ senderId: string;
763
+ isSent: boolean;
764
+ isRead: boolean;
765
+ repliedTo?: /*elided*/ any;
766
+ request?: string;
767
+ };
768
+ unreadCount?: number;
769
+ serviceType?: "video-call" | "voice-call" | "chat";
770
+ userType: UserRoleKey[];
771
+ }[];
772
+ loading: boolean;
773
+ page: number;
774
+ hasNextPage: boolean;
775
+ };
776
+ active: {
777
+ data: {
778
+ id: string;
779
+ name: string;
780
+ lastName: string;
781
+ isOnline: boolean;
782
+ lastSeen: Date;
783
+ imageUrl: string;
784
+ nationalCode?: string;
785
+ phoneNumber?: string;
786
+ isActive: boolean;
787
+ birthDate: Date;
788
+ lastMessage?: {
789
+ id: string;
790
+ conversationId: string;
791
+ date: Date;
792
+ type: import('../types/chat').MessageType;
793
+ text?: string;
794
+ imageUrl?: string[];
795
+ fileUrl?: string;
796
+ voiceUrl?: string;
797
+ videoUrl?: string;
798
+ isEdited: boolean;
799
+ senderId: string;
800
+ isSent: boolean;
801
+ isRead: boolean;
802
+ repliedTo?: /*elided*/ any;
803
+ request?: string;
804
+ };
805
+ unreadCount?: number;
806
+ serviceType?: "video-call" | "voice-call" | "chat";
807
+ userType: UserRoleKey[];
808
+ }[];
809
+ loading: boolean;
810
+ page: number;
811
+ hasNextPage: boolean;
812
+ };
813
+ }, Record<StateKeys, {
814
+ data: Contact[];
815
+ loading: boolean;
816
+ page: number;
817
+ hasNextPage: boolean;
818
+ }> | {
819
+ "": {
820
+ data: {
821
+ id: string;
822
+ name: string;
823
+ lastName: string;
824
+ isOnline: boolean;
825
+ lastSeen: Date;
826
+ imageUrl: string;
827
+ nationalCode?: string;
828
+ phoneNumber?: string;
829
+ isActive: boolean;
830
+ birthDate: Date;
831
+ lastMessage?: {
832
+ id: string;
833
+ conversationId: string;
834
+ date: Date;
835
+ type: import('../types/chat').MessageType;
836
+ text?: string;
837
+ imageUrl?: string[];
838
+ fileUrl?: string;
839
+ voiceUrl?: string;
840
+ videoUrl?: string;
841
+ isEdited: boolean;
842
+ senderId: string;
843
+ isSent: boolean;
844
+ isRead: boolean;
845
+ repliedTo?: /*elided*/ any;
846
+ request?: string;
847
+ };
848
+ unreadCount?: number;
849
+ serviceType?: "video-call" | "voice-call" | "chat";
850
+ userType: UserRoleKey[];
851
+ }[];
852
+ loading: boolean;
853
+ page: number;
854
+ hasNextPage: boolean;
855
+ };
856
+ online: {
857
+ data: {
858
+ id: string;
859
+ name: string;
860
+ lastName: string;
861
+ isOnline: boolean;
862
+ lastSeen: Date;
863
+ imageUrl: string;
864
+ nationalCode?: string;
865
+ phoneNumber?: string;
866
+ isActive: boolean;
867
+ birthDate: Date;
868
+ lastMessage?: {
869
+ id: string;
870
+ conversationId: string;
871
+ date: Date;
872
+ type: import('../types/chat').MessageType;
873
+ text?: string;
874
+ imageUrl?: string[];
875
+ fileUrl?: string;
876
+ voiceUrl?: string;
877
+ videoUrl?: string;
878
+ isEdited: boolean;
879
+ senderId: string;
880
+ isSent: boolean;
881
+ isRead: boolean;
882
+ repliedTo?: /*elided*/ any;
883
+ request?: string;
884
+ };
885
+ unreadCount?: number;
886
+ serviceType?: "video-call" | "voice-call" | "chat";
887
+ userType: UserRoleKey[];
888
+ }[];
889
+ loading: boolean;
890
+ page: number;
891
+ hasNextPage: boolean;
892
+ };
893
+ ended: {
894
+ data: {
895
+ id: string;
896
+ name: string;
897
+ lastName: string;
898
+ isOnline: boolean;
899
+ lastSeen: Date;
900
+ imageUrl: string;
901
+ nationalCode?: string;
902
+ phoneNumber?: string;
903
+ isActive: boolean;
904
+ birthDate: Date;
905
+ lastMessage?: {
906
+ id: string;
907
+ conversationId: string;
908
+ date: Date;
909
+ type: import('../types/chat').MessageType;
910
+ text?: string;
911
+ imageUrl?: string[];
912
+ fileUrl?: string;
913
+ voiceUrl?: string;
914
+ videoUrl?: string;
915
+ isEdited: boolean;
916
+ senderId: string;
917
+ isSent: boolean;
918
+ isRead: boolean;
919
+ repliedTo?: /*elided*/ any;
920
+ request?: string;
921
+ };
922
+ unreadCount?: number;
923
+ serviceType?: "video-call" | "voice-call" | "chat";
924
+ userType: UserRoleKey[];
925
+ }[];
926
+ loading: boolean;
927
+ page: number;
928
+ hasNextPage: boolean;
929
+ };
930
+ active: {
931
+ data: {
932
+ id: string;
933
+ name: string;
934
+ lastName: string;
935
+ isOnline: boolean;
936
+ lastSeen: Date;
937
+ imageUrl: string;
938
+ nationalCode?: string;
939
+ phoneNumber?: string;
940
+ isActive: boolean;
941
+ birthDate: Date;
942
+ lastMessage?: {
943
+ id: string;
944
+ conversationId: string;
945
+ date: Date;
946
+ type: import('../types/chat').MessageType;
947
+ text?: string;
948
+ imageUrl?: string[];
949
+ fileUrl?: string;
950
+ voiceUrl?: string;
951
+ videoUrl?: string;
952
+ isEdited: boolean;
953
+ senderId: string;
954
+ isSent: boolean;
955
+ isRead: boolean;
956
+ repliedTo?: /*elided*/ any;
957
+ request?: string;
958
+ };
959
+ unreadCount?: number;
960
+ serviceType?: "video-call" | "voice-call" | "chat";
961
+ userType: UserRoleKey[];
962
+ }[];
963
+ loading: boolean;
964
+ page: number;
965
+ hasNextPage: boolean;
966
+ };
967
+ }>;
968
+ activeConversationId: globalThis.Ref<string, string>;
969
+ profileViewOpen: globalThis.Ref<boolean, boolean>;
970
+ typingByConversation: globalThis.Ref<Record<string, string>, Record<string, string>>;
971
+ chatsPerPage: globalThis.ComputedRef<number>;
972
+ unreadCount: globalThis.ComputedRef<number>;
973
+ setHandlers: (val: ChatHandlers) => void;
974
+ setSelectedChat: (id: string | null) => void;
975
+ openProfile: () => void;
976
+ closeProfile: () => void;
977
+ deleteConversation: (id: string) => Promise<void>;
978
+ fetchConversations: (filterState?: StateKeys, page?: number, search?: string) => Promise<void>;
979
+ loadNextPage: (filter: StateKeys) => Promise<void>;
980
+ getContactById: (id: string) => Contact | null;
981
+ getDisplayedContacts: (filter: StateKeys) => Contact[];
982
+ }, "setHandlers" | "setSelectedChat" | "openProfile" | "closeProfile" | "deleteConversation" | "fetchConversations" | "loadNextPage" | "getContactById" | "getDisplayedContacts">>;
983
+ //# sourceMappingURL=chatStore.d.ts.map