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