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