quickblox-react-ui-kit 0.2.5 → 0.2.6-patch

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 (658) hide show
  1. package/dist/{Presentation/Views/Base → CommonTypes}/BaseViewModel.d.ts +21 -6
  2. package/dist/CommonTypes/FunctionResult.d.ts +3 -1
  3. package/dist/Data/dto/message/RemoteMessageDTO.d.ts +3 -0
  4. package/dist/Data/mapper/MessageRemoteDTOMapper.d.ts +2 -0
  5. package/dist/Data/repository/DialogsRepository.d.ts +1 -1
  6. package/dist/Data/source/local/ILocalDataSource.d.ts +1 -1
  7. package/dist/Data/source/remote/Mapper/DialogDTOMapper.d.ts +1 -0
  8. package/dist/Data/source/remote/Mapper/MessageDTOMapper.d.ts +6 -0
  9. package/dist/Domain/entity/MessageEntity.d.ts +3 -0
  10. package/dist/Domain/repository/IDialogsRepository.d.ts +1 -1
  11. package/dist/Domain/use_cases/ForwardMessagesUseCase.d.ts +13 -0
  12. package/dist/Domain/use_cases/ReplyMessagesUseCase.d.ts +10 -0
  13. package/dist/Domain/use_cases/ai/AIRephraseUseCase.d.ts +1 -1
  14. package/dist/Domain/use_cases/ai/AIRephraseWithProxyUseCase.d.ts +1 -1
  15. package/dist/Presentation/{components/UI/Dialogs → Views}/CreateDialog/CreateDialog.d.ts +1 -1
  16. package/dist/Presentation/Views/CreateDialogFlow/CreateNewDialogFlow.d.ts +2 -2
  17. package/dist/Presentation/Views/Dialog/AIComponents/AIAssistComponent/AIAssistComponent.d.ts +8 -0
  18. package/dist/Presentation/Views/Dialog/AIComponents/AITranslateComponent/AITranslateComponent.d.ts +11 -0
  19. package/dist/Presentation/{components/UI/Dialogs/MessagesView → Views/Dialog}/AIWidgets/AIMessageWidget.d.ts +1 -1
  20. package/dist/Presentation/Views/Dialog/AIWidgets/AIRephraseWidget/AIRephraseWidget.d.ts +22 -0
  21. package/dist/Presentation/Views/Dialog/AttachmentMessage/AttachmentMessage.d.ts +7 -0
  22. package/dist/Presentation/{components/UI/Dialogs/MessagesView → Views/Dialog}/AudioAttachmentComponent/AudioAttachmentComponent.d.ts +1 -1
  23. package/dist/Presentation/{components/UI/Dialogs/MessagesView → Views/Dialog/ContextMenu}/ContextMenu.d.ts +1 -0
  24. package/dist/Presentation/Views/Dialog/ContextMenu/MessageContextMenu/MessageContextMenu.d.ts +14 -0
  25. package/dist/Presentation/Views/Dialog/Dialog.d.ts +22 -0
  26. package/dist/Presentation/Views/Dialog/DialogHeader/DialogHeader.d.ts +12 -0
  27. package/dist/Presentation/Views/Dialog/DialogViewModel.d.ts +16 -0
  28. package/dist/Presentation/{components/UI/Dialogs/MessagesView → Views/Dialog}/DropDownMenu/DropDownMenu.d.ts +2 -3
  29. package/dist/Presentation/{components/UI/Dialogs/MessagesView → Views/Dialog}/DropDownMenu/ItemDropDownMenu/ItemDropDownMenu.d.ts +1 -1
  30. package/dist/Presentation/Views/Dialog/ForwardMessageFlow/DialogsWithSearch/DialogsWithSearch.d.ts +12 -0
  31. package/dist/Presentation/Views/Dialog/ForwardMessageFlow/DialogsWithSearch/ItemForListComponent/ItemDialogList.d.ts +14 -0
  32. package/dist/Presentation/Views/Dialog/ForwardMessageFlow/DialogsWithSearch/SearchComponent/SearchComponent.d.ts +8 -0
  33. package/dist/Presentation/Views/Dialog/ForwardMessageFlow/ForwardMessageFlow.d.ts +13 -0
  34. package/dist/Presentation/Views/Dialog/ForwardMessageFlow/ForwardMessagePreview/ForwardMessagePreview.d.ts +9 -0
  35. package/dist/Presentation/Views/Dialog/ForwardMessageFlow/InputForForwarding/InputForForwarding.d.ts +10 -0
  36. package/dist/Presentation/{components/UI/Dialogs/MessagesView → Views/Dialog}/ImageAttachmentComponent/ImageAttachmentComponent.d.ts +1 -1
  37. package/dist/Presentation/Views/Dialog/IncomingForwardedRepliedMessage/IncomingForwardedRepliedMessage.d.ts +25 -0
  38. package/dist/Presentation/Views/Dialog/IncomingMessage/AttachmentContentComponent/AttachmentContentComponent.d.ts +8 -0
  39. package/dist/Presentation/{components/UI/Dialogs/MessagesView/InComingMessage/InComingMessage.d.ts → Views/Dialog/IncomingMessage/IncomingMessage.d.ts} +10 -5
  40. package/dist/Presentation/Views/Dialog/IncomingMessage/MessageContentComponent/MessageContentComponent.d.ts +10 -0
  41. package/dist/Presentation/Views/Dialog/Message/Message.d.ts +22 -0
  42. package/dist/Presentation/Views/Dialog/MessageInput/MessageInput.d.ts +21 -0
  43. package/dist/Presentation/Views/Dialog/OutgoingForwardedRepliedMessage/OutgoingForwardedRepliedMessage.d.ts +17 -0
  44. package/dist/Presentation/Views/Dialog/OutgoingMessage/OutgoingMessage.d.ts +14 -0
  45. package/dist/Presentation/Views/Dialog/RenderDialogHeaderNavigator/RenderDialogHeaderNavigator.d.ts +9 -0
  46. package/dist/Presentation/Views/Dialog/ReplyMessagePreview/ReplyImagePreviewAttachment/ReplyImagePreviewAttachment.d.ts +8 -0
  47. package/dist/Presentation/Views/Dialog/ReplyMessagePreview/ReplyMessagePreview.d.ts +11 -0
  48. package/dist/Presentation/{components/UI/Dialogs/MessagesView → Views/Dialog}/VideoAttachmentComponent/VideoAttachmentComponent.d.ts +1 -1
  49. package/dist/Presentation/Views/Dialog/VoiceMessage/VoiceMessage.d.ts +8 -0
  50. package/dist/Presentation/{components/UI/Dialogs/MessagesView → Views/Dialog}/VoiceRecordingProgress/VoiceRecordingProgress.d.ts +3 -3
  51. package/dist/Presentation/Views/Dialog/useDialogViewModel.d.ts +4 -0
  52. package/dist/Presentation/Views/DialogInfo/DialogInfo.d.ts +16 -0
  53. package/dist/Presentation/{components/UI/Dialogs/DialogInformation → Views/DialogInfo}/DialogMemberButton/DialogMembersButton.d.ts +1 -1
  54. package/dist/Presentation/{components/UI/Dialogs/DialogInformation → Views/DialogInfo}/UsersList/SingleUser/SingleUser.d.ts +1 -1
  55. package/dist/Presentation/{components/UI/Dialogs/DialogInformation → Views/DialogInfo}/UsersList/UsersList.d.ts +1 -1
  56. package/dist/Presentation/{components/UI/Dialogs/DialogInformation → Views/DialogInfo}/UsersList/UsersListViewModel.d.ts +3 -3
  57. package/dist/Presentation/{components/UI/Dialogs/DialogInformation → Views/DialogInfo}/UsersList/useUsersListViewModel.d.ts +1 -1
  58. package/dist/Presentation/Views/{Dialogs/Dialogs.d.ts → DialogList/DialogList.d.ts} +8 -8
  59. package/dist/Presentation/Views/{Dialogs/DialogViewModel.d.ts → DialogList/DialogListViewModel.d.ts} +2 -2
  60. package/dist/Presentation/Views/DialogList/useDialogListViewModel.d.ts +4 -0
  61. package/dist/Presentation/{components/UI/Dialogs/HeaderDialogs/HeaderDialogs.d.ts → Views/DialogListHeader/DialogListHeader.d.ts} +6 -6
  62. package/dist/Presentation/{components/UI/Dialogs → Views}/EditDialog/EditDialog.d.ts +2 -2
  63. package/dist/Presentation/{components/UI/Dialogs → Views}/EditDialog/UserAvatar/UserAvatar.d.ts +2 -2
  64. package/dist/Presentation/{components/UI/Dialogs → Views}/InviteMembers/InviteMembers.d.ts +2 -2
  65. package/dist/Presentation/{components/UI/Dialogs → Views}/InviteMembers/InviteMembersViewModel.d.ts +3 -3
  66. package/dist/Presentation/{components/UI/Dialogs → Views}/InviteMembers/InviteUsersList/SingleUserWithCheckBox/SingleUserWithCheckBox.d.ts +1 -1
  67. package/dist/Presentation/{components/UI/Dialogs → Views}/InviteMembers/InviteUsersResultViewModel.d.ts +1 -1
  68. package/dist/Presentation/{components/UI/Dialogs → Views}/MembersList/MembersList.d.ts +2 -2
  69. package/dist/Presentation/{components/UI/Dialogs → Views}/PreviewDialog/PreviewDialog.d.ts +2 -2
  70. package/dist/Presentation/{components/UI/Dialogs → Views}/PreviewDialog/PreviewDialogViewModel.d.ts +2 -2
  71. package/dist/Presentation/{components/UI/Dialogs → Views}/YesNoQuestion/YesNoQuestion.d.ts +1 -1
  72. package/dist/Presentation/components/UI/Buttons/ActiveButton/ActiveButton.d.ts +1 -1
  73. package/dist/Presentation/components/UI/Buttons/MainBoundedButton/MainBoundedButton.d.ts +1 -1
  74. package/dist/Presentation/components/UI/Buttons/MainButton/MainButton.d.ts +1 -1
  75. package/dist/Presentation/components/UI/Elements/SwitchButton/SwitchButton.d.ts +1 -1
  76. package/dist/Presentation/components/UI/Placeholders/ErrorComponent/ErrorComponent.d.ts +1 -1
  77. package/dist/Presentation/components/UI/svgs/ActiveSvg/ActiveSvg.d.ts +1 -1
  78. package/dist/Presentation/components/containers/ColumnContainer/ColumnContainer.d.ts +1 -1
  79. package/dist/Presentation/{components/layouts → layouts}/Desktop/DesktopLayout.d.ts +1 -1
  80. package/dist/Presentation/{components/layouts → layouts}/Desktop/QuickBloxUIKitDesktopLayout.d.ts +3 -2
  81. package/dist/Presentation/{components/layouts → layouts}/TestStage/LoginView/Login.d.ts +1 -1
  82. package/dist/Presentation/{components/providers → providers}/QuickBloxUIKitProvider/QuickBloxUIKitProvider.d.ts +6 -6
  83. package/dist/Presentation/{components/providers → providers}/QuickBloxUIKitProvider/useEventMessagesRepository.d.ts +1 -1
  84. package/dist/Presentation/{components/providers → providers}/QuickBloxUIKitProvider/useQBConnection.d.ts +1 -1
  85. package/dist/QBconfig.d.ts +2 -0
  86. package/dist/index-ui.d.ts +22 -22
  87. package/dist/index-ui.js +1281 -665
  88. package/dist/utils/utils.d.ts +1 -1
  89. package/global.d.ts +23 -14
  90. package/package.json +26 -2
  91. package/.prettierignore +0 -4
  92. package/.prettierrc +0 -10
  93. package/dist/Presentation/Views/Dialogs/useDialogsViewModel.d.ts +0 -4
  94. package/dist/Presentation/components/UI/Dialogs/DialogInformation/DialogInformation.d.ts +0 -16
  95. package/dist/Presentation/components/UI/Dialogs/MessagesView/HeaderMessages/HeaderMessages.d.ts +0 -14
  96. package/dist/Presentation/components/UI/Dialogs/MessagesView/MessagesView.d.ts +0 -29
  97. package/dist/Presentation/components/UI/Dialogs/MessagesView/MessagesViewModel.d.ts +0 -14
  98. package/dist/Presentation/components/UI/Dialogs/MessagesView/OutGoingMessage/OutGoingMessage.d.ts +0 -9
  99. package/dist/Presentation/components/UI/Dialogs/MessagesView/useMessagesViewModel.d.ts +0 -4
  100. package/public/favicon.ico +0 -0
  101. package/public/index.html +0 -47
  102. package/public/logo192.png +0 -0
  103. package/public/logo512.png +0 -0
  104. package/public/manifest.json +0 -25
  105. package/public/quickblox.js +0 -54609
  106. package/public/robots.txt +0 -3
  107. package/src/App.scss +0 -0
  108. package/src/App.tsx +0 -246
  109. package/src/CommonTypes/FunctionResult.ts +0 -63
  110. package/src/Data/DefaultConfigurations.ts +0 -333
  111. package/src/Data/Stubs.ts +0 -1131
  112. package/src/Data/dto/dialog/LocalDialogDTO.ts +0 -42
  113. package/src/Data/dto/dialog/LocalDialogsDTO.ts +0 -21
  114. package/src/Data/dto/dialog/RemoteDialogDTO.ts +0 -58
  115. package/src/Data/dto/dialog/RemoteDialogsDTO.ts +0 -21
  116. package/src/Data/dto/file/LocalFileDTO.ts +0 -26
  117. package/src/Data/dto/file/RemoteFileDTO.ts +0 -26
  118. package/src/Data/dto/message/LocalMessageDTO.ts +0 -51
  119. package/src/Data/dto/message/LocalMessagesDTO.ts +0 -21
  120. package/src/Data/dto/message/RemoteMessageDTO.ts +0 -51
  121. package/src/Data/dto/message/RemoteMessagesDTO.ts +0 -21
  122. package/src/Data/dto/user/LocalUserDTO.ts +0 -37
  123. package/src/Data/dto/user/LocalUsersDTO.ts +0 -23
  124. package/src/Data/dto/user/RemoteUserDTO.ts +0 -37
  125. package/src/Data/dto/user/RemoteUsersDTO.ts +0 -21
  126. package/src/Data/mapper/DialogLocalDTOMapper.ts +0 -742
  127. package/src/Data/mapper/DialogRemoteDTOMapper.ts +0 -777
  128. package/src/Data/mapper/FileLocalDTOMapper.ts +0 -253
  129. package/src/Data/mapper/FileRemoteDTOMapper.ts +0 -265
  130. package/src/Data/mapper/IMapper.ts +0 -14
  131. package/src/Data/mapper/MessageLocalDTOMapper.ts +0 -426
  132. package/src/Data/mapper/MessageRemoteDTOMapper.ts +0 -432
  133. package/src/Data/mapper/UserLocalDTOMapper.ts +0 -381
  134. package/src/Data/mapper/UserRemoteDTOMapper.ts +0 -393
  135. package/src/Data/repository/ConnectionRepository.ts +0 -144
  136. package/src/Data/repository/DialogsRepository.ts +0 -426
  137. package/src/Data/repository/EventMessagesRepository.ts +0 -325
  138. package/src/Data/repository/FileRepository.ts +0 -110
  139. package/src/Data/repository/MessagesRepository.ts +0 -294
  140. package/src/Data/repository/UsersRepository.ts +0 -324
  141. package/src/Data/source/AISource.ts +0 -133
  142. package/src/Data/source/exception/LocalDataSourceException.ts +0 -17
  143. package/src/Data/source/exception/MapperDTOException.ts +0 -22
  144. package/src/Data/source/exception/RemoteDataSourceException.ts +0 -28
  145. package/src/Data/source/exception/RepositoryException.ts +0 -27
  146. package/src/Data/source/local/ChatLocalStorageDataSource.ts +0 -262
  147. package/src/Data/source/local/ILocalDataSource.ts +0 -45
  148. package/src/Data/source/local/ILocalFileDataSource.ts +0 -11
  149. package/src/Data/source/local/LocalDataSource.ts +0 -377
  150. package/src/Data/source/local/LocalFileDataSource.ts +0 -22
  151. package/src/Data/source/remote/IRemoteDataSource.ts +0 -112
  152. package/src/Data/source/remote/Mapper/DialogDTOMapper.ts +0 -418
  153. package/src/Data/source/remote/Mapper/FileDTOMapper.ts +0 -276
  154. package/src/Data/source/remote/Mapper/IDTOMapper.ts +0 -4
  155. package/src/Data/source/remote/Mapper/MessageDTOMapper.ts +0 -452
  156. package/src/Data/source/remote/Mapper/UserDTOMapper.ts +0 -344
  157. package/src/Data/source/remote/RemoteDataSource.ts +0 -1414
  158. package/src/Domain/entity/Chat.ts +0 -4
  159. package/src/Domain/entity/ChatMessageAttachmentEntity.ts +0 -15
  160. package/src/Domain/entity/CustomDataEntity.ts +0 -3
  161. package/src/Domain/entity/DialogEntity.ts +0 -15
  162. package/src/Domain/entity/DialogEventInfo.ts +0 -15
  163. package/src/Domain/entity/DialogTypes.ts +0 -7
  164. package/src/Domain/entity/EventMessageType.ts +0 -7
  165. package/src/Domain/entity/FileEntity.ts +0 -11
  166. package/src/Domain/entity/FileTypes.ts +0 -9
  167. package/src/Domain/entity/GroupDialogEntity.ts +0 -54
  168. package/src/Domain/entity/LastMessageEntity.ts +0 -5
  169. package/src/Domain/entity/MessageEntity.ts +0 -25
  170. package/src/Domain/entity/NotificationTypes.ts +0 -9
  171. package/src/Domain/entity/PrivateDialogEntity.ts +0 -46
  172. package/src/Domain/entity/PublicDialogEntity.ts +0 -80
  173. package/src/Domain/entity/UserEntity.ts +0 -22
  174. package/src/Domain/exception/domain/DomainExecption.ts +0 -5
  175. package/src/Domain/repository/IDialogsRepository.ts +0 -42
  176. package/src/Domain/repository/IFileRepository.ts +0 -9
  177. package/src/Domain/repository/IMessagesRepository.ts +0 -28
  178. package/src/Domain/repository/IUsersRepository.ts +0 -13
  179. package/src/Domain/repository/Pagination.ts +0 -48
  180. package/src/Domain/use_cases/CreateDialogUseCase.ts +0 -80
  181. package/src/Domain/use_cases/GetAllDialogsUseCase.ts +0 -20
  182. package/src/Domain/use_cases/GetAllDialogsUseCaseWithMock.ts +0 -46
  183. package/src/Domain/use_cases/GetAllMessagesForDialog.ts +0 -61
  184. package/src/Domain/use_cases/GetAllUsersUseCase.ts +0 -34
  185. package/src/Domain/use_cases/GetDialogByIdUseCase.ts +0 -28
  186. package/src/Domain/use_cases/GetUsersByIdsUseCase.ts +0 -22
  187. package/src/Domain/use_cases/LeaveDialogUseCase.ts +0 -116
  188. package/src/Domain/use_cases/RemoveUsersFromTheDialogUseCase.ts +0 -126
  189. package/src/Domain/use_cases/SendTextMessageUseCase.ts +0 -27
  190. package/src/Domain/use_cases/SubscribeToDialogEventsUseCase.ts +0 -162
  191. package/src/Domain/use_cases/SubscribeToDialogsUpdatesUseCase.ts +0 -69
  192. package/src/Domain/use_cases/SubscribeToDialogsUpdatesUseCaseWithMock.ts +0 -61
  193. package/src/Domain/use_cases/SyncDialogsUseCase.ts +0 -246
  194. package/src/Domain/use_cases/UpdateDialogUseCase.ts +0 -72
  195. package/src/Domain/use_cases/UploadFileUseCase.ts +0 -24
  196. package/src/Domain/use_cases/UserTypingMessageUseCase.ts +0 -51
  197. package/src/Domain/use_cases/ai/AIAnswerAssistUseCase.ts +0 -69
  198. package/src/Domain/use_cases/ai/AIAnswerAssistWithProxyUseCase.ts +0 -71
  199. package/src/Domain/use_cases/ai/AIRephraseUseCase.ts +0 -89
  200. package/src/Domain/use_cases/ai/AIRephraseWithProxyUseCase.ts +0 -75
  201. package/src/Domain/use_cases/ai/AITranslateUseCase.ts +0 -76
  202. package/src/Domain/use_cases/ai/AITranslateWithProxyUseCase.ts +0 -79
  203. package/src/Domain/use_cases/base/BaseUseCase.ts +0 -77
  204. package/src/Domain/use_cases/base/IUseCase.ts +0 -5
  205. package/src/Domain/use_cases/base/Subscribable/ISubscribable.ts +0 -6
  206. package/src/Domain/use_cases/base/Subscribable/SubscriptionPerformer.ts +0 -148
  207. package/src/Presentation/.gitkeep +0 -0
  208. package/src/Presentation/Views/Base/BaseViewModel.ts +0 -91
  209. package/src/Presentation/Views/CreateDialogFlow/CreateNewDialogFlow.tsx +0 -188
  210. package/src/Presentation/Views/Dialogs/DialogViewModel.ts +0 -25
  211. package/src/Presentation/Views/Dialogs/Dialogs.scss +0 -79
  212. package/src/Presentation/Views/Dialogs/Dialogs.tsx +0 -400
  213. package/src/Presentation/Views/Dialogs/useDialogsViewModel.ts +0 -443
  214. package/src/Presentation/Views/Navigation/More.svg +0 -7
  215. package/src/Presentation/assets/DarkTheme.ts +0 -58
  216. package/src/Presentation/assets/DefaultThemes/CustomTheme.ts +0 -58
  217. package/src/Presentation/assets/DefaultThemes/DefaultTheme.ts +0 -58
  218. package/src/Presentation/assets/LightTheme.ts +0 -58
  219. package/src/Presentation/assets/ThemeScheme.ts +0 -83
  220. package/src/Presentation/assets/UiKitTheme.ts +0 -143
  221. package/src/Presentation/assets/fonts/.gitkeep +0 -0
  222. package/src/Presentation/assets/fonts/Roboto-Bold.eot +0 -0
  223. package/src/Presentation/assets/fonts/Roboto-Bold.ttf +0 -0
  224. package/src/Presentation/assets/fonts/Roboto-Bold.woff +0 -0
  225. package/src/Presentation/assets/fonts/Roboto-Bold.woff2 +0 -0
  226. package/src/Presentation/assets/fonts/Roboto-Medium.eot +0 -0
  227. package/src/Presentation/assets/fonts/Roboto-Medium.ttf +0 -0
  228. package/src/Presentation/assets/fonts/Roboto-Medium.woff +0 -0
  229. package/src/Presentation/assets/fonts/Roboto-Medium.woff2 +0 -0
  230. package/src/Presentation/assets/fonts/Roboto-Regular.eot +0 -0
  231. package/src/Presentation/assets/fonts/Roboto-Regular.ttf +0 -0
  232. package/src/Presentation/assets/fonts/Roboto-Regular.woff +0 -0
  233. package/src/Presentation/assets/fonts/Roboto-Regular.woff2 +0 -0
  234. package/src/Presentation/assets/img/Artem_Koltunov_Selfi.png +0 -0
  235. package/src/Presentation/assets/img/bee-img.png +0 -0
  236. package/src/Presentation/assets/img/web-doc.png +0 -0
  237. package/src/Presentation/assets/styles/_fonts.scss +0 -32
  238. package/src/Presentation/assets/styles/_theme_colors_scheme.scss +0 -56
  239. package/src/Presentation/assets/styles/_theme_colors_scheme_green.scss +0 -57
  240. package/src/Presentation/assets/styles/_theme_colors_scheme_pink.scss +0 -72
  241. package/src/Presentation/assets/styles/_theme_dark.scss +0 -33
  242. package/src/Presentation/assets/styles/_theme_light.scss +0 -33
  243. package/src/Presentation/assets/styles/_variables.scss +0 -21
  244. package/src/Presentation/components/Button.js +0 -5
  245. package/src/Presentation/components/Navbar.tsx +0 -45
  246. package/src/Presentation/components/TextInput.js +0 -10
  247. package/src/Presentation/components/UI/Buttons/ActiveButton/ActiveButton.tsx +0 -40
  248. package/src/Presentation/components/UI/Buttons/MainBoundedButton/MainBoundedButton.scss +0 -0
  249. package/src/Presentation/components/UI/Buttons/MainBoundedButton/MainBoundedButton.tsx +0 -30
  250. package/src/Presentation/components/UI/Buttons/MainButton/MainButton.scss +0 -136
  251. package/src/Presentation/components/UI/Buttons/MainButton/MainButton.tsx +0 -62
  252. package/src/Presentation/components/UI/Dialogs/CreateDialog/CreateDialog.scss +0 -45
  253. package/src/Presentation/components/UI/Dialogs/CreateDialog/CreateDialog.tsx +0 -77
  254. package/src/Presentation/components/UI/Dialogs/DialogInformation/DialogInformation.scss +0 -429
  255. package/src/Presentation/components/UI/Dialogs/DialogInformation/DialogInformation.tsx +0 -574
  256. package/src/Presentation/components/UI/Dialogs/DialogInformation/DialogMemberButton/DialogMembersButton.scss +0 -42
  257. package/src/Presentation/components/UI/Dialogs/DialogInformation/DialogMemberButton/DialogMembersButton.tsx +0 -26
  258. package/src/Presentation/components/UI/Dialogs/DialogInformation/UsersList/SingleUser/SingleUser.scss +0 -95
  259. package/src/Presentation/components/UI/Dialogs/DialogInformation/UsersList/SingleUser/SingleUser.tsx +0 -42
  260. package/src/Presentation/components/UI/Dialogs/DialogInformation/UsersList/UsersList.scss +0 -60
  261. package/src/Presentation/components/UI/Dialogs/DialogInformation/UsersList/UsersList.tsx +0 -65
  262. package/src/Presentation/components/UI/Dialogs/DialogInformation/UsersList/UsersListViewModel.ts +0 -13
  263. package/src/Presentation/components/UI/Dialogs/DialogInformation/UsersList/useUsersListViewModel.ts +0 -81
  264. package/src/Presentation/components/UI/Dialogs/EditDialog/EditDialog.scss +0 -199
  265. package/src/Presentation/components/UI/Dialogs/EditDialog/EditDialog.tsx +0 -277
  266. package/src/Presentation/components/UI/Dialogs/EditDialog/UserAvatar/UserAvatar.scss +0 -32
  267. package/src/Presentation/components/UI/Dialogs/EditDialog/UserAvatar/UserAvatar.tsx +0 -59
  268. package/src/Presentation/components/UI/Dialogs/HeaderDialogs/HeaderDialogs.scss +0 -67
  269. package/src/Presentation/components/UI/Dialogs/HeaderDialogs/HeaderDialogs.tsx +0 -112
  270. package/src/Presentation/components/UI/Dialogs/InviteMembers/InviteMembers.scss +0 -149
  271. package/src/Presentation/components/UI/Dialogs/InviteMembers/InviteMembers.tsx +0 -328
  272. package/src/Presentation/components/UI/Dialogs/InviteMembers/InviteMembersViewModel.ts +0 -18
  273. package/src/Presentation/components/UI/Dialogs/InviteMembers/InviteUsersList/SingleUserWithCheckBox/SingleUserWithCheckBox.scss +0 -113
  274. package/src/Presentation/components/UI/Dialogs/InviteMembers/InviteUsersList/SingleUserWithCheckBox/SingleUserWithCheckBox.tsx +0 -79
  275. package/src/Presentation/components/UI/Dialogs/InviteMembers/InviteUsersResultViewModel.ts +0 -12
  276. package/src/Presentation/components/UI/Dialogs/InviteMembers/NotFoundContent/NotFoundContent.scss +0 -37
  277. package/src/Presentation/components/UI/Dialogs/InviteMembers/NotFoundContent/NotFoundContent.tsx +0 -22
  278. package/src/Presentation/components/UI/Dialogs/InviteMembers/useInviteMembersViewModel.ts +0 -116
  279. package/src/Presentation/components/UI/Dialogs/MembersList/MembersList.scss +0 -131
  280. package/src/Presentation/components/UI/Dialogs/MembersList/MembersList.tsx +0 -93
  281. package/src/Presentation/components/UI/Dialogs/MessagesView/AIWidgets/AIMessageWidget.ts +0 -40
  282. package/src/Presentation/components/UI/Dialogs/MessagesView/AIWidgets/AIWidgetActions/AIWidgetActions.scss +0 -55
  283. package/src/Presentation/components/UI/Dialogs/MessagesView/AIWidgets/AIWidgetActions/AIWidgetActions.tsx +0 -122
  284. package/src/Presentation/components/UI/Dialogs/MessagesView/AIWidgets/ErrorMessageIcon.tsx +0 -98
  285. package/src/Presentation/components/UI/Dialogs/MessagesView/AIWidgets/SliderMenu.tsx +0 -172
  286. package/src/Presentation/components/UI/Dialogs/MessagesView/AIWidgets/Tone.ts +0 -35
  287. package/src/Presentation/components/UI/Dialogs/MessagesView/AIWidgets/UseDefaultAIAssistAnswerWidget.tsx +0 -83
  288. package/src/Presentation/components/UI/Dialogs/MessagesView/AIWidgets/UseDefaultAIAssistAnswerWidgetWithProxy.tsx +0 -83
  289. package/src/Presentation/components/UI/Dialogs/MessagesView/AIWidgets/UseDefaultAIRephraseMessageWidget.tsx +0 -104
  290. package/src/Presentation/components/UI/Dialogs/MessagesView/AIWidgets/UseDefaultAIRephraseMessageWidgetWithProxy.tsx +0 -102
  291. package/src/Presentation/components/UI/Dialogs/MessagesView/AIWidgets/UseDefaultAITranslateWidget.tsx +0 -89
  292. package/src/Presentation/components/UI/Dialogs/MessagesView/AIWidgets/UseDefaultAITranslateWidgetWithProxy.tsx +0 -89
  293. package/src/Presentation/components/UI/Dialogs/MessagesView/AIWidgets/useDefaultVoiceInputWidget.tsx +0 -87
  294. package/src/Presentation/components/UI/Dialogs/MessagesView/AudioAttachmentComponent/AudioAttachmentComponent.scss +0 -7
  295. package/src/Presentation/components/UI/Dialogs/MessagesView/AudioAttachmentComponent/AudioAttachmentComponent.tsx +0 -27
  296. package/src/Presentation/components/UI/Dialogs/MessagesView/ContextMenu.tsx +0 -95
  297. package/src/Presentation/components/UI/Dialogs/MessagesView/DefaultAttachmentComponent/DefaultAttachmentComponent.scss +0 -76
  298. package/src/Presentation/components/UI/Dialogs/MessagesView/DefaultAttachmentComponent/DefaultAttachmentComponent.tsx +0 -40
  299. package/src/Presentation/components/UI/Dialogs/MessagesView/DropDownMenu/DropDownMenu.scss +0 -84
  300. package/src/Presentation/components/UI/Dialogs/MessagesView/DropDownMenu/DropDownMenu.tsx +0 -105
  301. package/src/Presentation/components/UI/Dialogs/MessagesView/DropDownMenu/ItemDropDownMenu/ItemDropDownMenu.scss +0 -50
  302. package/src/Presentation/components/UI/Dialogs/MessagesView/DropDownMenu/ItemDropDownMenu/ItemDropDownMenu.tsx +0 -43
  303. package/src/Presentation/components/UI/Dialogs/MessagesView/ErrorToast/ErrorToast.scss +0 -26
  304. package/src/Presentation/components/UI/Dialogs/MessagesView/ErrorToast/ErrorToast.tsx +0 -25
  305. package/src/Presentation/components/UI/Dialogs/MessagesView/HeaderMessages/HeaderMessages.scss +0 -133
  306. package/src/Presentation/components/UI/Dialogs/MessagesView/HeaderMessages/HeaderMessages.tsx +0 -144
  307. package/src/Presentation/components/UI/Dialogs/MessagesView/HighLightLink/HighLightLink.scss +0 -92
  308. package/src/Presentation/components/UI/Dialogs/MessagesView/HighLightLink/HighLightLink.tsx +0 -128
  309. package/src/Presentation/components/UI/Dialogs/MessagesView/ImageAttachmentComponent/ImageAttachmentComponent.scss +0 -11
  310. package/src/Presentation/components/UI/Dialogs/MessagesView/ImageAttachmentComponent/ImageAttachmentComponent.tsx +0 -27
  311. package/src/Presentation/components/UI/Dialogs/MessagesView/InComingMessage/AvatarContentIncomingUser/AvatarContentIncomingUser.scss +0 -39
  312. package/src/Presentation/components/UI/Dialogs/MessagesView/InComingMessage/AvatarContentIncomingUser/AvatarContentIncomingUser.tsx +0 -32
  313. package/src/Presentation/components/UI/Dialogs/MessagesView/InComingMessage/InComingMessage.scss +0 -392
  314. package/src/Presentation/components/UI/Dialogs/MessagesView/InComingMessage/InComingMessage.tsx +0 -480
  315. package/src/Presentation/components/UI/Dialogs/MessagesView/MessagesView.scss +0 -399
  316. package/src/Presentation/components/UI/Dialogs/MessagesView/MessagesView.tsx +0 -1704
  317. package/src/Presentation/components/UI/Dialogs/MessagesView/MessagesViewModel.ts +0 -20
  318. package/src/Presentation/components/UI/Dialogs/MessagesView/OutGoingMessage/OutGoingMessage.scss +0 -7
  319. package/src/Presentation/components/UI/Dialogs/MessagesView/OutGoingMessage/OutGoingMessage.tsx +0 -99
  320. package/src/Presentation/components/UI/Dialogs/MessagesView/SystemDateBanner/SystemDateBanner.scss +0 -23
  321. package/src/Presentation/components/UI/Dialogs/MessagesView/SystemDateBanner/SystemDateBanner.tsx +0 -17
  322. package/src/Presentation/components/UI/Dialogs/MessagesView/SystemMessageBanner/SystemMessageBanner.scss +0 -21
  323. package/src/Presentation/components/UI/Dialogs/MessagesView/SystemMessageBanner/SystemMessageBanner.tsx +0 -17
  324. package/src/Presentation/components/UI/Dialogs/MessagesView/VideoAttachmentComponent/VideoAttachmentComponent.scss +0 -11
  325. package/src/Presentation/components/UI/Dialogs/MessagesView/VideoAttachmentComponent/VideoAttachmentComponent.tsx +0 -33
  326. package/src/Presentation/components/UI/Dialogs/MessagesView/VoiceRecordingProgress/VoiceRecordingProgress.scss +0 -35
  327. package/src/Presentation/components/UI/Dialogs/MessagesView/VoiceRecordingProgress/VoiceRecordingProgress.tsx +0 -89
  328. package/src/Presentation/components/UI/Dialogs/MessagesView/useMessagesViewModel.ts +0 -516
  329. package/src/Presentation/components/UI/Dialogs/PreviewDialog/PreviewAudioFile/PreviewAudioFile.scss +0 -62
  330. package/src/Presentation/components/UI/Dialogs/PreviewDialog/PreviewAudioFile/PreviewAudioFile.tsx +0 -25
  331. package/src/Presentation/components/UI/Dialogs/PreviewDialog/PreviewDefaultFile/PreviewDefaultFile.scss +0 -61
  332. package/src/Presentation/components/UI/Dialogs/PreviewDialog/PreviewDefaultFile/PreviewDefaultFile.tsx +0 -32
  333. package/src/Presentation/components/UI/Dialogs/PreviewDialog/PreviewDialog.scss +0 -126
  334. package/src/Presentation/components/UI/Dialogs/PreviewDialog/PreviewDialog.tsx +0 -492
  335. package/src/Presentation/components/UI/Dialogs/PreviewDialog/PreviewDialogViewModel.ts +0 -42
  336. package/src/Presentation/components/UI/Dialogs/PreviewDialog/PreviewImageFile/PreviewImageFile.scss +0 -40
  337. package/src/Presentation/components/UI/Dialogs/PreviewDialog/PreviewImageFile/PreviewImageFile.tsx +0 -26
  338. package/src/Presentation/components/UI/Dialogs/PreviewDialog/PreviewVideoFile/PreviewVideoFile.scss +0 -62
  339. package/src/Presentation/components/UI/Dialogs/PreviewDialog/PreviewVideoFile/PreviewVideoFile.tsx +0 -25
  340. package/src/Presentation/components/UI/Dialogs/YesNoQuestion/YesNoQuestion.scss +0 -35
  341. package/src/Presentation/components/UI/Dialogs/YesNoQuestion/YesNoQuestion.tsx +0 -89
  342. package/src/Presentation/components/UI/Elements/SwitchButton/SwitchButton.scss +0 -61
  343. package/src/Presentation/components/UI/Elements/SwitchButton/SwitchButton.tsx +0 -48
  344. package/src/Presentation/components/UI/Placeholders/ErrorComponent/ErrorComponent.scss +0 -74
  345. package/src/Presentation/components/UI/Placeholders/ErrorComponent/ErrorComponent.tsx +0 -72
  346. package/src/Presentation/components/UI/Placeholders/LoaderComponent/LoaderComponent.scss +0 -21
  347. package/src/Presentation/components/UI/Placeholders/LoaderComponent/LoaderComponent.tsx +0 -41
  348. package/src/Presentation/components/UI/svgs/ActiveSvg/ActiveSvg.scss +0 -3
  349. package/src/Presentation/components/UI/svgs/ActiveSvg/ActiveSvg.tsx +0 -41
  350. package/src/Presentation/components/UI/svgs/Icons/AIWidgets/AIWidget/Send.svg +0 -3
  351. package/src/Presentation/components/UI/svgs/Icons/AIWidgets/AIWidget/index.tsx +0 -39
  352. package/src/Presentation/components/UI/svgs/Icons/AIWidgets/BookIcon/BookIcon.tsx +0 -7
  353. package/src/Presentation/components/UI/svgs/Icons/AIWidgets/BotIcon/BotIcon.svg +0 -5
  354. package/src/Presentation/components/UI/svgs/Icons/AIWidgets/BotIcon/BotIcon.tsx +0 -50
  355. package/src/Presentation/components/UI/svgs/Icons/AIWidgets/HammerIcon/index.tsx +0 -7
  356. package/src/Presentation/components/UI/svgs/Icons/AIWidgets/HandshakeIcon/index.tsx +0 -7
  357. package/src/Presentation/components/UI/svgs/Icons/AIWidgets/MuscleIcon/index.tsx +0 -7
  358. package/src/Presentation/components/UI/svgs/Icons/AIWidgets/NecktieIcon/index.tsx +0 -7
  359. package/src/Presentation/components/UI/svgs/Icons/AIWidgets/NeutralFaceIcon/index.tsx +0 -7
  360. package/src/Presentation/components/UI/svgs/Icons/AIWidgets/PalmsUpTogetherIcon/index.tsx +0 -7
  361. package/src/Presentation/components/UI/svgs/Icons/AIWidgets/PerformingArtsIcon/index.tsx +0 -7
  362. package/src/Presentation/components/UI/svgs/Icons/AIWidgets/PointUpIcon/index.tsx +0 -7
  363. package/src/Presentation/components/UI/svgs/Icons/AIWidgets/SmileyIcon/index.tsx +0 -20
  364. package/src/Presentation/components/UI/svgs/Icons/AIWidgets/SmirkIcon/index.tsx +0 -7
  365. package/src/Presentation/components/UI/svgs/Icons/AIWidgets/WhiteCheckMarkIcon/index.tsx +0 -7
  366. package/src/Presentation/components/UI/svgs/Icons/Actions/Add/Add.svg +0 -3
  367. package/src/Presentation/components/UI/svgs/Icons/Actions/Add/index.tsx +0 -22
  368. package/src/Presentation/components/UI/svgs/Icons/Actions/AddContact/Add contact.svg +0 -3
  369. package/src/Presentation/components/UI/svgs/Icons/Actions/AddContact/index.tsx +0 -22
  370. package/src/Presentation/components/UI/svgs/Icons/Actions/Archive/Archive.svg +0 -3
  371. package/src/Presentation/components/UI/svgs/Icons/Actions/Archive/index.tsx +0 -22
  372. package/src/Presentation/components/UI/svgs/Icons/Actions/AssistAnswer/AssistAnswer.svg +0 -3
  373. package/src/Presentation/components/UI/svgs/Icons/Actions/AssistAnswer/index.tsx +0 -93
  374. package/src/Presentation/components/UI/svgs/Icons/Actions/Copy/Copy.svg +0 -3
  375. package/src/Presentation/components/UI/svgs/Icons/Actions/Copy/index.tsx +0 -22
  376. package/src/Presentation/components/UI/svgs/Icons/Actions/Delete/Delete.svg +0 -3
  377. package/src/Presentation/components/UI/svgs/Icons/Actions/Delete/index.tsx +0 -22
  378. package/src/Presentation/components/UI/svgs/Icons/Actions/Download/Download.svg +0 -3
  379. package/src/Presentation/components/UI/svgs/Icons/Actions/Download/index.tsx +0 -22
  380. package/src/Presentation/components/UI/svgs/Icons/Actions/Edit/Edit.svg +0 -3
  381. package/src/Presentation/components/UI/svgs/Icons/Actions/Edit/index.tsx +0 -22
  382. package/src/Presentation/components/UI/svgs/Icons/Actions/EditDots/EditDots.svg +0 -3
  383. package/src/Presentation/components/UI/svgs/Icons/Actions/EditDots/index.tsx +0 -22
  384. package/src/Presentation/components/UI/svgs/Icons/Actions/Emoji/Emoji.svg +0 -3
  385. package/src/Presentation/components/UI/svgs/Icons/Actions/Emoji/index.tsx +0 -22
  386. package/src/Presentation/components/UI/svgs/Icons/Actions/ForwardFilled/Forward filled.svg +0 -3
  387. package/src/Presentation/components/UI/svgs/Icons/Actions/ForwardFilled/index.tsx +0 -22
  388. package/src/Presentation/components/UI/svgs/Icons/Actions/Hungup/Hungup.svg +0 -3
  389. package/src/Presentation/components/UI/svgs/Icons/Actions/Hungup/index.tsx +0 -22
  390. package/src/Presentation/components/UI/svgs/Icons/Actions/IncomeCall/Income call.svg +0 -3
  391. package/src/Presentation/components/UI/svgs/Icons/Actions/IncomeCall/index.tsx +0 -22
  392. package/src/Presentation/components/UI/svgs/Icons/Actions/Like/Like.svg +0 -3
  393. package/src/Presentation/components/UI/svgs/Icons/Actions/Like/index.tsx +0 -22
  394. package/src/Presentation/components/UI/svgs/Icons/Actions/NewChat/New chat.svg +0 -3
  395. package/src/Presentation/components/UI/svgs/Icons/Actions/NewChat/index.tsx +0 -22
  396. package/src/Presentation/components/UI/svgs/Icons/Actions/OutcomeCall/Outcome call.svg +0 -3
  397. package/src/Presentation/components/UI/svgs/Icons/Actions/OutcomeCall/index.tsx +0 -22
  398. package/src/Presentation/components/UI/svgs/Icons/Actions/Phone/Phone.svg +0 -3
  399. package/src/Presentation/components/UI/svgs/Icons/Actions/Phone/index.tsx +0 -35
  400. package/src/Presentation/components/UI/svgs/Icons/Actions/PhoneFilled/Phone filled.svg +0 -3
  401. package/src/Presentation/components/UI/svgs/Icons/Actions/PhoneFilled/index.tsx +0 -22
  402. package/src/Presentation/components/UI/svgs/Icons/Actions/Remove/Remove.svg +0 -3
  403. package/src/Presentation/components/UI/svgs/Icons/Actions/Remove/index.tsx +0 -22
  404. package/src/Presentation/components/UI/svgs/Icons/Actions/Remove2/Remove2.svg +0 -3
  405. package/src/Presentation/components/UI/svgs/Icons/Actions/Remove2/index.tsx +0 -22
  406. package/src/Presentation/components/UI/svgs/Icons/Actions/ReplyFilled/Reply filled.svg +0 -3
  407. package/src/Presentation/components/UI/svgs/Icons/Actions/ReplyFilled/index.tsx +0 -22
  408. package/src/Presentation/components/UI/svgs/Icons/Actions/Send/Send.svg +0 -3
  409. package/src/Presentation/components/UI/svgs/Icons/Actions/Send/index.tsx +0 -38
  410. package/src/Presentation/components/UI/svgs/Icons/Actions/Share/Share.svg +0 -3
  411. package/src/Presentation/components/UI/svgs/Icons/Actions/Share/index.tsx +0 -22
  412. package/src/Presentation/components/UI/svgs/Icons/Actions/Summarize/Summarize.svg +0 -6
  413. package/src/Presentation/components/UI/svgs/Icons/Actions/Summarize/index.tsx +0 -58
  414. package/src/Presentation/components/UI/svgs/Icons/Actions/SwapCamera/Swap camera.svg +0 -3
  415. package/src/Presentation/components/UI/svgs/Icons/Actions/SwapCamera/index.tsx +0 -22
  416. package/src/Presentation/components/UI/svgs/Icons/Actions/Tone/Tone.svg +0 -3
  417. package/src/Presentation/components/UI/svgs/Icons/Actions/Tone/index.tsx +0 -34
  418. package/src/Presentation/components/UI/svgs/Icons/Actions/Unarchive/Unarchive.svg +0 -3
  419. package/src/Presentation/components/UI/svgs/Icons/Actions/Unarchive/index.tsx +0 -22
  420. package/src/Presentation/components/UI/svgs/Icons/Actions/VideoIcon/Video.svg +0 -3
  421. package/src/Presentation/components/UI/svgs/Icons/Actions/VideoIcon/index.tsx +0 -22
  422. package/src/Presentation/components/UI/svgs/Icons/Actions/Voice/Voice.svg +0 -3
  423. package/src/Presentation/components/UI/svgs/Icons/Actions/Voice/index.tsx +0 -35
  424. package/src/Presentation/components/UI/svgs/Icons/Contents/Brodcast/Broadcast.svg +0 -7
  425. package/src/Presentation/components/UI/svgs/Icons/Contents/Brodcast/index.tsx +0 -38
  426. package/src/Presentation/components/UI/svgs/Icons/Contents/Chat/Chat.svg +0 -3
  427. package/src/Presentation/components/UI/svgs/Icons/Contents/Chat/index.tsx +0 -35
  428. package/src/Presentation/components/UI/svgs/Icons/Contents/ChatFilled/Chat filled.svg +0 -3
  429. package/src/Presentation/components/UI/svgs/Icons/Contents/ChatFilled/index.tsx +0 -22
  430. package/src/Presentation/components/UI/svgs/Icons/Contents/Conference/Conference.svg +0 -3
  431. package/src/Presentation/components/UI/svgs/Icons/Contents/Conference/index.tsx +0 -22
  432. package/src/Presentation/components/UI/svgs/Icons/Contents/Contact/Contact.svg +0 -3
  433. package/src/Presentation/components/UI/svgs/Icons/Contents/Contact/index.tsx +0 -22
  434. package/src/Presentation/components/UI/svgs/Icons/Contents/ContactFilled/Contact filled.svg +0 -3
  435. package/src/Presentation/components/UI/svgs/Icons/Contents/ContactFilled/index.tsx +0 -22
  436. package/src/Presentation/components/UI/svgs/Icons/Contents/GroupChat/Group chat.svg +0 -3
  437. package/src/Presentation/components/UI/svgs/Icons/Contents/GroupChat/index.tsx +0 -35
  438. package/src/Presentation/components/UI/svgs/Icons/Contents/Notifications/Notifications.svg +0 -3
  439. package/src/Presentation/components/UI/svgs/Icons/Contents/Notifications/index.tsx +0 -22
  440. package/src/Presentation/components/UI/svgs/Icons/Contents/PrivateChat/Private chat.svg +0 -3
  441. package/src/Presentation/components/UI/svgs/Icons/Contents/PrivateChat/index.tsx +0 -22
  442. package/src/Presentation/components/UI/svgs/Icons/Contents/PublicChannel/Public channel.svg +0 -7
  443. package/src/Presentation/components/UI/svgs/Icons/Contents/PublicChannel/index.tsx +0 -67
  444. package/src/Presentation/components/UI/svgs/Icons/Contents/Stream/Stream.svg +0 -3
  445. package/src/Presentation/components/UI/svgs/Icons/Contents/Stream/index.tsx +0 -22
  446. package/src/Presentation/components/UI/svgs/Icons/Contents/StreamFilled/Stream filled.svg +0 -3
  447. package/src/Presentation/components/UI/svgs/Icons/Contents/StreamFilled/index.tsx +0 -22
  448. package/src/Presentation/components/UI/svgs/Icons/Contents/User/User.svg +0 -3
  449. package/src/Presentation/components/UI/svgs/Icons/Contents/User/index.tsx +0 -35
  450. package/src/Presentation/components/UI/svgs/Icons/IconsCommonTypes.ts +0 -6
  451. package/src/Presentation/components/UI/svgs/Icons/Media/Attachment/Attachment.svg +0 -3
  452. package/src/Presentation/components/UI/svgs/Icons/Media/Attachment/index.tsx +0 -22
  453. package/src/Presentation/components/UI/svgs/Icons/Media/AudioFile/Audio file.svg +0 -3
  454. package/src/Presentation/components/UI/svgs/Icons/Media/AudioFile/index.tsx +0 -22
  455. package/src/Presentation/components/UI/svgs/Icons/Media/BrokenFile/Broken file.svg +0 -3
  456. package/src/Presentation/components/UI/svgs/Icons/Media/BrokenFile/index.tsx +0 -22
  457. package/src/Presentation/components/UI/svgs/Icons/Media/Camera/Camera.svg +0 -3
  458. package/src/Presentation/components/UI/svgs/Icons/Media/Camera/index.tsx +0 -22
  459. package/src/Presentation/components/UI/svgs/Icons/Media/GifFile/GIF file.svg +0 -3
  460. package/src/Presentation/components/UI/svgs/Icons/Media/GifFile/index.tsx +0 -22
  461. package/src/Presentation/components/UI/svgs/Icons/Media/ImageEmpty/Image.svg +0 -3
  462. package/src/Presentation/components/UI/svgs/Icons/Media/ImageEmpty/index.tsx +0 -22
  463. package/src/Presentation/components/UI/svgs/Icons/Media/ImageFile/File.svg +0 -3
  464. package/src/Presentation/components/UI/svgs/Icons/Media/ImageFile/index.tsx +0 -35
  465. package/src/Presentation/components/UI/svgs/Icons/Media/ImageFilled/Image filled.svg +0 -3
  466. package/src/Presentation/components/UI/svgs/Icons/Media/ImageFilled/index.tsx +0 -22
  467. package/src/Presentation/components/UI/svgs/Icons/Media/LinkWeb/Link.svg +0 -3
  468. package/src/Presentation/components/UI/svgs/Icons/Media/LinkWeb/index.tsx +0 -22
  469. package/src/Presentation/components/UI/svgs/Icons/Media/Location/Location.svg +0 -4
  470. package/src/Presentation/components/UI/svgs/Icons/Media/Location/index.tsx +0 -26
  471. package/src/Presentation/components/UI/svgs/Icons/Media/TextDocument/Text document.svg +0 -3
  472. package/src/Presentation/components/UI/svgs/Icons/Media/TextDocument/index.tsx +0 -22
  473. package/src/Presentation/components/UI/svgs/Icons/Media/Translate/Translate.svg +0 -3
  474. package/src/Presentation/components/UI/svgs/Icons/Media/Translate/index.tsx +0 -35
  475. package/src/Presentation/components/UI/svgs/Icons/Media/VideoFile/Video file.svg +0 -3
  476. package/src/Presentation/components/UI/svgs/Icons/Media/VideoFile/index.tsx +0 -22
  477. package/src/Presentation/components/UI/svgs/Icons/Moderation/Admin/Admin.svg +0 -3
  478. package/src/Presentation/components/UI/svgs/Icons/Moderation/Admin/index.tsx +0 -22
  479. package/src/Presentation/components/UI/svgs/Icons/Moderation/Banned/Banned.svg +0 -3
  480. package/src/Presentation/components/UI/svgs/Icons/Moderation/Banned/index.tsx +0 -22
  481. package/src/Presentation/components/UI/svgs/Icons/Moderation/Freeze/Freeze.svg +0 -3
  482. package/src/Presentation/components/UI/svgs/Icons/Moderation/Freeze/index.tsx +0 -22
  483. package/src/Presentation/components/UI/svgs/Icons/Moderation/Moderations/Moderations.svg +0 -3
  484. package/src/Presentation/components/UI/svgs/Icons/Moderation/Moderations/index.tsx +0 -22
  485. package/src/Presentation/components/UI/svgs/Icons/Moderation/Muted/Muted.svg +0 -3
  486. package/src/Presentation/components/UI/svgs/Icons/Moderation/Muted/index.tsx +0 -22
  487. package/src/Presentation/components/UI/svgs/Icons/Navigation/ArrowLeft/Arrow left.svg +0 -3
  488. package/src/Presentation/components/UI/svgs/Icons/Navigation/ArrowLeft/index.tsx +0 -22
  489. package/src/Presentation/components/UI/svgs/Icons/Navigation/ArrowRight/Arrow right.svg +0 -3
  490. package/src/Presentation/components/UI/svgs/Icons/Navigation/ArrowRight/index.tsx +0 -22
  491. package/src/Presentation/components/UI/svgs/Icons/Navigation/Back/Back.svg +0 -3
  492. package/src/Presentation/components/UI/svgs/Icons/Navigation/Back/index.tsx +0 -22
  493. package/src/Presentation/components/UI/svgs/Icons/Navigation/Close/Close.svg +0 -3
  494. package/src/Presentation/components/UI/svgs/Icons/Navigation/Close/index.tsx +0 -35
  495. package/src/Presentation/components/UI/svgs/Icons/Navigation/Down/Down.svg +0 -3
  496. package/src/Presentation/components/UI/svgs/Icons/Navigation/Down/index.tsx +0 -35
  497. package/src/Presentation/components/UI/svgs/Icons/Navigation/Leave/Leave.svg +0 -3
  498. package/src/Presentation/components/UI/svgs/Icons/Navigation/Leave/index.tsx +0 -35
  499. package/src/Presentation/components/UI/svgs/Icons/Navigation/More/More.svg +0 -7
  500. package/src/Presentation/components/UI/svgs/Icons/Navigation/More/index.tsx +0 -22
  501. package/src/Presentation/components/UI/svgs/Icons/Navigation/Next/Next.svg +0 -3
  502. package/src/Presentation/components/UI/svgs/Icons/Navigation/Next/index.tsx +0 -35
  503. package/src/Presentation/components/UI/svgs/Icons/Navigation/Plus/Plus.svg +0 -3
  504. package/src/Presentation/components/UI/svgs/Icons/Navigation/Plus/index.tsx +0 -22
  505. package/src/Presentation/components/UI/svgs/Icons/Navigation/Refresh/Refresh.svg +0 -3
  506. package/src/Presentation/components/UI/svgs/Icons/Navigation/Refresh/index.tsx +0 -36
  507. package/src/Presentation/components/UI/svgs/Icons/Navigation/Search/Search.svg +0 -3
  508. package/src/Presentation/components/UI/svgs/Icons/Navigation/Search/index.tsx +0 -35
  509. package/src/Presentation/components/UI/svgs/Icons/Navigation/Settings/Settings.svg +0 -3
  510. package/src/Presentation/components/UI/svgs/Icons/Navigation/Settings/index.tsx +0 -22
  511. package/src/Presentation/components/UI/svgs/Icons/Navigation/SettingsField/Settings filled.svg +0 -3
  512. package/src/Presentation/components/UI/svgs/Icons/Navigation/SettingsField/index.tsx +0 -22
  513. package/src/Presentation/components/UI/svgs/Icons/Status/Error/Error.svg +0 -3
  514. package/src/Presentation/components/UI/svgs/Icons/Status/Error/index.tsx +0 -36
  515. package/src/Presentation/components/UI/svgs/Icons/Status/Help/Help.svg +0 -3
  516. package/src/Presentation/components/UI/svgs/Icons/Status/Help/index.tsx +0 -22
  517. package/src/Presentation/components/UI/svgs/Icons/Status/Information/Information.svg +0 -3
  518. package/src/Presentation/components/UI/svgs/Icons/Status/Information/index.tsx +0 -22
  519. package/src/Presentation/components/UI/svgs/Icons/Status/InformationFill/index.tsx +0 -35
  520. package/src/Presentation/components/UI/svgs/Icons/Status/Loader/Loader.svg +0 -3
  521. package/src/Presentation/components/UI/svgs/Icons/Status/Loader/index.tsx +0 -22
  522. package/src/Presentation/components/UI/svgs/Icons/Status/Mention/Mention.svg +0 -3
  523. package/src/Presentation/components/UI/svgs/Icons/Status/Mention/index.tsx +0 -22
  524. package/src/Presentation/components/UI/svgs/Icons/Status/Sent/Sent.svg +0 -3
  525. package/src/Presentation/components/UI/svgs/Icons/Status/Sent/index.tsx +0 -22
  526. package/src/Presentation/components/UI/svgs/Icons/Status/ViewedDelivered/Viewed_Delivered.svg +0 -3
  527. package/src/Presentation/components/UI/svgs/Icons/Status/ViewedDelivered/index.tsx +0 -38
  528. package/src/Presentation/components/UI/svgs/Icons/Toggle/CameraOff/Camera off.svg +0 -3
  529. package/src/Presentation/components/UI/svgs/Icons/Toggle/CameraOff/index.tsx +0 -22
  530. package/src/Presentation/components/UI/svgs/Icons/Toggle/CameraOn/Camera on.svg +0 -3
  531. package/src/Presentation/components/UI/svgs/Icons/Toggle/CameraOn/index.tsx +0 -22
  532. package/src/Presentation/components/UI/svgs/Icons/Toggle/CheckOff/Check off.svg +0 -3
  533. package/src/Presentation/components/UI/svgs/Icons/Toggle/CheckOff/index.tsx +0 -22
  534. package/src/Presentation/components/UI/svgs/Icons/Toggle/CheckOn/Check on.svg +0 -3
  535. package/src/Presentation/components/UI/svgs/Icons/Toggle/CheckOn/index.tsx +0 -24
  536. package/src/Presentation/components/UI/svgs/Icons/Toggle/Favourite/Favourite.svg +0 -3
  537. package/src/Presentation/components/UI/svgs/Icons/Toggle/Favourite/index.tsx +0 -22
  538. package/src/Presentation/components/UI/svgs/Icons/Toggle/FavouriteFilled/Favourite filled.svg +0 -3
  539. package/src/Presentation/components/UI/svgs/Icons/Toggle/FavouriteFilled/index.tsx +0 -22
  540. package/src/Presentation/components/UI/svgs/Icons/Toggle/FullScreen/Full screen.svg +0 -3
  541. package/src/Presentation/components/UI/svgs/Icons/Toggle/FullScreen/inex.tsx +0 -22
  542. package/src/Presentation/components/UI/svgs/Icons/Toggle/Hide/Hide.svg +0 -3
  543. package/src/Presentation/components/UI/svgs/Icons/Toggle/Hide/index.tsx +0 -22
  544. package/src/Presentation/components/UI/svgs/Icons/Toggle/ImagePlay/Play.svg +0 -3
  545. package/src/Presentation/components/UI/svgs/Icons/Toggle/ImagePlay/index.tsx +0 -22
  546. package/src/Presentation/components/UI/svgs/Icons/Toggle/Louder/Louder.svg +0 -3
  547. package/src/Presentation/components/UI/svgs/Icons/Toggle/Louder/index.tsx +0 -22
  548. package/src/Presentation/components/UI/svgs/Icons/Toggle/MicOff/Mic off.svg +0 -3
  549. package/src/Presentation/components/UI/svgs/Icons/Toggle/MicOff/index.tsx +0 -22
  550. package/src/Presentation/components/UI/svgs/Icons/Toggle/MicOn/Mic on.svg +0 -4
  551. package/src/Presentation/components/UI/svgs/Icons/Toggle/MicOn/index.tsx +0 -26
  552. package/src/Presentation/components/UI/svgs/Icons/Toggle/Minimize/Minimize.svg +0 -3
  553. package/src/Presentation/components/UI/svgs/Icons/Toggle/Minimize/index.tsx +0 -22
  554. package/src/Presentation/components/UI/svgs/Icons/Toggle/NotifyOff/Notify off.svg +0 -3
  555. package/src/Presentation/components/UI/svgs/Icons/Toggle/NotifyOff/index.tsx +0 -35
  556. package/src/Presentation/components/UI/svgs/Icons/Toggle/NotifyOn/Notify on.svg +0 -3
  557. package/src/Presentation/components/UI/svgs/Icons/Toggle/NotifyOn/index.tsx +0 -35
  558. package/src/Presentation/components/UI/svgs/Icons/Toggle/Pause/Pause.svg +0 -3
  559. package/src/Presentation/components/UI/svgs/Icons/Toggle/Pause/index.tsx +0 -22
  560. package/src/Presentation/components/UI/svgs/Icons/Toggle/Quite/Quite.svg +0 -3
  561. package/src/Presentation/components/UI/svgs/Icons/Toggle/Quite/index.tsx +0 -22
  562. package/src/Presentation/components/UI/svgs/Icons/Toggle/Record/Record.svg +0 -3
  563. package/src/Presentation/components/UI/svgs/Icons/Toggle/Record/index.tsx +0 -22
  564. package/src/Presentation/components/UI/svgs/Icons/Toggle/Screenshare/Screenshare.svg +0 -3
  565. package/src/Presentation/components/UI/svgs/Icons/Toggle/Screenshare/index.tsx +0 -22
  566. package/src/Presentation/components/UI/svgs/Icons/Toggle/Show/Show.svg +0 -3
  567. package/src/Presentation/components/UI/svgs/Icons/Toggle/Show/index.tsx +0 -22
  568. package/src/Presentation/components/UI/svgs/Icons/Toggle/Speaker/Speaker.svg +0 -3
  569. package/src/Presentation/components/UI/svgs/Icons/Toggle/Speaker/index.tsx +0 -22
  570. package/src/Presentation/components/UI/svgs/Icons/Toggle/SpeakerOff/Speaker off.svg +0 -3
  571. package/src/Presentation/components/UI/svgs/Icons/Toggle/SpeakerOff/index.tsx +0 -22
  572. package/src/Presentation/components/UI/svgs/Icons/Toggle/StopRecord/Stop record.svg +0 -3
  573. package/src/Presentation/components/UI/svgs/Icons/Toggle/StopRecord/index.tsx +0 -22
  574. package/src/Presentation/components/UI/svgs/Icons/Toggle/StopShare/Stop share.svg +0 -3
  575. package/src/Presentation/components/UI/svgs/Icons/Toggle/StopShare/index.tsx +0 -22
  576. package/src/Presentation/components/containers/ColumnContainer/ColumnContainer.scss +0 -6
  577. package/src/Presentation/components/containers/ColumnContainer/ColumnContainer.tsx +0 -24
  578. package/src/Presentation/components/containers/RowCenterContainer/RowCenterContainer.scss +0 -45
  579. package/src/Presentation/components/containers/RowCenterContainer/RowCenterContainer.tsx +0 -95
  580. package/src/Presentation/components/containers/RowLeftContainer/RowLeftContainer.scss +0 -45
  581. package/src/Presentation/components/containers/RowLeftContainer/RowLeftContainer.tsx +0 -97
  582. package/src/Presentation/components/containers/RowRightContainer/RowRightContainer.scss +0 -46
  583. package/src/Presentation/components/containers/RowRightContainer/RowRightContainer.tsx +0 -97
  584. package/src/Presentation/components/containers/ScrollableContainer/ScrollableContainer.scss +0 -45
  585. package/src/Presentation/components/containers/ScrollableContainer/ScrollableContainer.tsx +0 -85
  586. package/src/Presentation/components/layouts/Desktop/DesktopLayout.scss +0 -31
  587. package/src/Presentation/components/layouts/Desktop/DesktopLayout.tsx +0 -52
  588. package/src/Presentation/components/layouts/Desktop/QuickBloxUIKitDesktopLayout.tsx +0 -382
  589. package/src/Presentation/components/layouts/LayoutCommonTypes.ts +0 -7
  590. package/src/Presentation/components/layouts/TestStage/CompanyLogo/CompanyLogo.tsx +0 -27
  591. package/src/Presentation/components/layouts/TestStage/LoginView/Login.scss +0 -71
  592. package/src/Presentation/components/layouts/TestStage/LoginView/Login.tsx +0 -95
  593. package/src/Presentation/components/layouts/TestStage/TestStageMarkup.scss +0 -24
  594. package/src/Presentation/components/layouts/TestStage/TestStageMarkup.tsx +0 -1109
  595. package/src/Presentation/components/providers/ModalContextProvider/Modal.scss +0 -71
  596. package/src/Presentation/components/providers/ModalContextProvider/Modal.tsx +0 -131
  597. package/src/Presentation/components/providers/ModalContextProvider/ModalContextProvider.tsx +0 -38
  598. package/src/Presentation/components/providers/ModalContextProvider/useModal.ts +0 -39
  599. package/src/Presentation/components/providers/ProviderProps.ts +0 -5
  600. package/src/Presentation/components/providers/QuickBloxUIKitProvider/QuickBloxUIKitProvider.tsx +0 -344
  601. package/src/Presentation/components/providers/QuickBloxUIKitProvider/useEventMessagesRepository.ts +0 -10
  602. package/src/Presentation/components/providers/QuickBloxUIKitProvider/useQBConnection.ts +0 -38
  603. package/src/Presentation/components/providers/QuickBloxUIKitProvider/useQbInitializedDataContext.ts +0 -83
  604. package/src/Presentation/components/providers/QuickBloxUIKitProvider/useQbUIKitDataContext.ts +0 -11
  605. package/src/QBconfig.ts +0 -221
  606. package/src/index-ui.ts +0 -84
  607. package/src/index.scss +0 -17
  608. package/src/index.tsx +0 -25
  609. package/src/logo.svg +0 -1
  610. package/src/package_artan_react_ui.json +0 -91
  611. package/src/package_original.json +0 -115
  612. package/src/qb-api-calls/index.ts +0 -581
  613. package/src/react-app-env.d.ts +0 -1
  614. package/src/setupTests.ts +0 -5
  615. package/src/utils/DateTimeFormatter.ts +0 -35
  616. package/src/utils/parse.ts +0 -74
  617. package/src/utils/utils.ts +0 -102
  618. package/tsconfig.json +0 -33
  619. package/typedoc.json +0 -4
  620. package/webpack.config.js +0 -56
  621. /package/dist/Presentation/{components/UI/Dialogs/MessagesView → Views/Dialog}/AIWidgets/AIWidgetActions/AIWidgetActions.d.ts +0 -0
  622. /package/dist/Presentation/{components/UI/Dialogs/MessagesView → Views/Dialog}/AIWidgets/ErrorMessageIcon.d.ts +0 -0
  623. /package/dist/Presentation/{components/UI/Dialogs/MessagesView → Views/Dialog}/AIWidgets/SliderMenu.d.ts +0 -0
  624. /package/dist/Presentation/{components/UI/Dialogs/MessagesView → Views/Dialog}/AIWidgets/Tone.d.ts +0 -0
  625. /package/dist/Presentation/{components/UI/Dialogs/MessagesView → Views/Dialog}/AIWidgets/UseDefaultAIAssistAnswerWidget.d.ts +0 -0
  626. /package/dist/Presentation/{components/UI/Dialogs/MessagesView → Views/Dialog}/AIWidgets/UseDefaultAIAssistAnswerWidgetWithProxy.d.ts +0 -0
  627. /package/dist/Presentation/{components/UI/Dialogs/MessagesView → Views/Dialog}/AIWidgets/UseDefaultAIRephraseMessageWidget.d.ts +0 -0
  628. /package/dist/Presentation/{components/UI/Dialogs/MessagesView → Views/Dialog}/AIWidgets/UseDefaultAIRephraseMessageWidgetWithProxy.d.ts +0 -0
  629. /package/dist/Presentation/{components/UI/Dialogs/MessagesView → Views/Dialog}/AIWidgets/UseDefaultAITranslateWidget.d.ts +0 -0
  630. /package/dist/Presentation/{components/UI/Dialogs/MessagesView → Views/Dialog}/AIWidgets/UseDefaultAITranslateWidgetWithProxy.d.ts +0 -0
  631. /package/dist/Presentation/{components/UI/Dialogs/MessagesView → Views/Dialog}/AIWidgets/useDefaultVoiceInputWidget.d.ts +0 -0
  632. /package/dist/Presentation/{components/UI/Dialogs/MessagesView → Views/Dialog}/DefaultAttachmentComponent/DefaultAttachmentComponent.d.ts +0 -0
  633. /package/dist/Presentation/{components/UI/Dialogs/MessagesView → Views/Dialog}/ErrorToast/ErrorToast.d.ts +0 -0
  634. /package/dist/Presentation/{components/UI/Dialogs/MessagesView → Views/Dialog}/HighLightLink/HighLightLink.d.ts +0 -0
  635. /package/dist/Presentation/{components/UI/Dialogs/MessagesView/InComingMessage → Views/Dialog/IncomingMessage}/AvatarContentIncomingUser/AvatarContentIncomingUser.d.ts +0 -0
  636. /package/dist/Presentation/{components/UI/Dialogs/MessagesView → Views/Dialog}/SystemDateBanner/SystemDateBanner.d.ts +0 -0
  637. /package/dist/Presentation/{components/UI/Dialogs/MessagesView → Views/Dialog}/SystemMessageBanner/SystemMessageBanner.d.ts +0 -0
  638. /package/dist/Presentation/{components/UI/Dialogs → Views}/InviteMembers/NotFoundContent/NotFoundContent.d.ts +0 -0
  639. /package/dist/Presentation/{components/UI/Dialogs → Views}/InviteMembers/useInviteMembersViewModel.d.ts +0 -0
  640. /package/dist/Presentation/{components/UI/Dialogs → Views}/PreviewDialog/PreviewAudioFile/PreviewAudioFile.d.ts +0 -0
  641. /package/dist/Presentation/{components/UI/Dialogs → Views}/PreviewDialog/PreviewDefaultFile/PreviewDefaultFile.d.ts +0 -0
  642. /package/dist/Presentation/{components/UI/Dialogs → Views}/PreviewDialog/PreviewImageFile/PreviewImageFile.d.ts +0 -0
  643. /package/dist/Presentation/{components/UI/Dialogs → Views}/PreviewDialog/PreviewVideoFile/PreviewVideoFile.d.ts +0 -0
  644. /package/dist/Presentation/{components/layouts → layouts}/LayoutCommonTypes.d.ts +0 -0
  645. /package/dist/Presentation/{components/layouts → layouts}/TestStage/CompanyLogo/CompanyLogo.d.ts +0 -0
  646. /package/dist/Presentation/{components/layouts → layouts}/TestStage/TestStageMarkup.d.ts +0 -0
  647. /package/dist/Presentation/{components/providers → providers}/ModalContextProvider/Modal.d.ts +0 -0
  648. /package/dist/Presentation/{components/providers → providers}/ModalContextProvider/ModalContextProvider.d.ts +0 -0
  649. /package/dist/Presentation/{components/providers → providers}/ModalContextProvider/useModal.d.ts +0 -0
  650. /package/dist/Presentation/{components/providers → providers}/ProviderProps.d.ts +0 -0
  651. /package/dist/Presentation/{components/providers → providers}/QuickBloxUIKitProvider/useQbInitializedDataContext.d.ts +0 -0
  652. /package/dist/Presentation/{components/providers → providers}/QuickBloxUIKitProvider/useQbUIKitDataContext.d.ts +0 -0
  653. /package/dist/Presentation/{assets → themes}/DarkTheme.d.ts +0 -0
  654. /package/dist/Presentation/{assets → themes}/DefaultThemes/CustomTheme.d.ts +0 -0
  655. /package/dist/Presentation/{assets → themes}/DefaultThemes/DefaultTheme.d.ts +0 -0
  656. /package/dist/Presentation/{assets → themes}/LightTheme.d.ts +0 -0
  657. /package/dist/Presentation/{assets → themes}/ThemeScheme.d.ts +0 -0
  658. /package/dist/Presentation/{assets → themes}/UiKitTheme.d.ts +0 -0
package/src/Data/Stubs.ts DELETED
@@ -1,1131 +0,0 @@
1
- // eslint-disable-next-line max-classes-per-file
2
- import { DialogEntity } from '../Domain/entity/DialogEntity';
3
- import { DialogType } from '../Domain/entity/DialogTypes';
4
- import { PublicDialogEntity } from '../Domain/entity/PublicDialogEntity';
5
- import { PrivateDialogEntity } from '../Domain/entity/PrivateDialogEntity';
6
- import { GroupDialogEntity } from '../Domain/entity/GroupDialogEntity';
7
- import { RemoteDialogDTO } from './dto/dialog/RemoteDialogDTO';
8
- import { UserEntity } from '../Domain/entity/UserEntity';
9
- import { MessageEntity } from '../Domain/entity/MessageEntity';
10
- import ChatMessageAttachmentEntity from '../Domain/entity/ChatMessageAttachmentEntity';
11
- import { FileType } from '../Domain/entity/FileTypes';
12
- import { IMapper } from './mapper/IMapper';
13
- import { UserRemoteDTOMapper } from './mapper/UserRemoteDTOMapper';
14
- import { LocalUserDTO } from './dto/user/LocalUserDTO';
15
- import { MapperDTOException } from './source/exception/MapperDTOException';
16
- import { DialogLocalDTOMapper } from './mapper/DialogLocalDTOMapper';
17
- import { LocalDialogDTO } from './dto/dialog/LocalDialogDTO';
18
- import RepositoryException from './source/exception/RepositoryException';
19
- import { MessageLocalDTOMapper } from './mapper/MessageLocalDTOMapper';
20
- import { LocalMessageDTO } from './dto/message/LocalMessageDTO';
21
- import { LocalDataSource } from './source/local/LocalDataSource';
22
- import { FileEntity } from '../Domain/entity/FileEntity';
23
-
24
- export class Stubs {
25
- public static async initializeWithUsersMockData(
26
- ds: LocalDataSource,
27
- ): Promise<void> {
28
- console.log('local datasource sync status: ', ds.isLocalSynced());
29
- const userEntities = Stubs.createUsersForTest();
30
- const userEntityToDTOMapper: IMapper = new UserRemoteDTOMapper();
31
-
32
- // eslint-disable-next-line no-restricted-syntax
33
- for (const entity of userEntities) {
34
- try {
35
- // eslint-disable-next-line no-await-in-loop
36
- const userDTO = await userEntityToDTOMapper.fromEntity<
37
- UserEntity,
38
- LocalUserDTO
39
- >(entity);
40
-
41
- // eslint-disable-next-line no-await-in-loop
42
- await ds.saveUser(userDTO);
43
- } catch (e) {
44
- console.log('EXCEPTION UserEntity perform: ', JSON.stringify(entity));
45
- console.log((e as MapperDTOException).message);
46
- console.log((e as MapperDTOException)._description);
47
- }
48
- }
49
- }
50
-
51
- public static async initializeWithDialogsMockData(
52
- ds: LocalDataSource,
53
- ): Promise<void> {
54
- console.log('local datasource sync status: ', ds.isLocalSynced());
55
- const dialogsDTOtoEntityMapper: IMapper = new DialogLocalDTOMapper();
56
- const dialogsEntities = Stubs.createDialogsForTest();
57
-
58
- // eslint-disable-next-line no-restricted-syntax
59
- for (const item of dialogsEntities) {
60
- const dialogDTO: LocalDialogDTO =
61
- // eslint-disable-next-line no-await-in-loop
62
- await dialogsDTOtoEntityMapper.fromEntity<
63
- DialogEntity,
64
- RemoteDialogDTO
65
- >(item);
66
-
67
- // eslint-disable-next-line @typescript-eslint/no-unused-vars,promise/catch-or-return,promise/always-return
68
- ds.saveDialog(dialogDTO)
69
- // eslint-disable-next-line @typescript-eslint/no-unused-vars,promise/always-return
70
- .then((_) => {
71
- console.log(`added mock item ${JSON.stringify(dialogDTO)}`);
72
- })
73
- .catch((e) => {
74
- console.log('EXCEPTION:', (e as RepositoryException).message);
75
- });
76
- }
77
- }
78
-
79
- public static async initializeWithMessagesMockData(ds: LocalDataSource) {
80
- console.log('call initializeWithMessagesMockData');
81
- const initFirstPageMessages: Array<MessageEntity> =
82
- new Array<MessageEntity>();
83
- // attachments
84
- // shot text message with attachment photo
85
- const photo: ChatMessageAttachmentEntity = {
86
- id: '10231',
87
- type: FileType.image,
88
- uid: '10231',
89
- url: 'https://via.placeholder.com/600/92c952',
90
- file: {
91
- id: '10231',
92
- uid: '',
93
- type: FileType.image,
94
- url: 'https://via.placeholder.com/600/92c952',
95
- },
96
- };
97
- const photoAttachments: ChatMessageAttachmentEntity[] = [photo];
98
- // shot text message with attachment video
99
- const video: ChatMessageAttachmentEntity = {
100
- id: '10232',
101
- type: FileType.video,
102
- uid: '10232',
103
- url: 'https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/WhatCarCanYouGetForAGrand.mp4',
104
- file: {
105
- id: '10232',
106
- uid: '',
107
- type: FileType.video,
108
- url: 'https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/WhatCarCanYouGetForAGrand.mp4',
109
- },
110
- };
111
- const videoAttachments: ChatMessageAttachmentEntity[] = [video];
112
- const audio: ChatMessageAttachmentEntity = {
113
- id: '10233',
114
- type: FileType.audio,
115
- uid: '10233',
116
- url: 'https://cdn.freesound.org/previews/681/681715_1648170-lq.mp3',
117
- file: {
118
- id: '10233',
119
- uid: '',
120
- type: FileType.audio,
121
- url: 'https://cdn.freesound.org/previews/681/681715_1648170-lq.mp3',
122
- },
123
- };
124
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
125
- const audioAttachments: ChatMessageAttachmentEntity[] = [audio];
126
- // shot text message with attachment text
127
- const text: ChatMessageAttachmentEntity = {
128
- id: '10233',
129
- type: FileType.text,
130
- uid: '10233',
131
- url: 'https://www.learningcontainer.com/wp-content/uploads/2020/04/sample-text-file.txt',
132
- file: {
133
- id: '10233',
134
- uid: '',
135
- type: FileType.text,
136
- url: 'https://www.learningcontainer.com/wp-content/uploads/2020/04/sample-text-file.txt',
137
- },
138
- name: 'textFile.txt',
139
- };
140
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
141
- const textAttachments: ChatMessageAttachmentEntity[] = [text];
142
- const currentUser = 134885168; // should be 134885168 was 11
143
-
144
- // attachments
145
- for (let i = 0; i < 47; i += 1) {
146
- const newMessageEntity: MessageEntity =
147
- Stubs.createMessageEntityWithParams(
148
- i.toString(),
149
- '103',
150
- i % 9 === 0
151
- ? `${
152
- i + 1
153
- } very very very long test text message for dialog 103. The text message with huge text: bla-bla-bla long long long long, bla-bla-bla, very very very long test text message for dialog 103. very very very long test text message for dialog 103. etc`
154
- : `${i + 1} test message for dialog 103`,
155
- '31.03.2023',
156
- Date.now(),
157
- '31.03.2023',
158
- [currentUser, 12, 13],
159
- [currentUser, 12, 13],
160
- 1,
161
- i % 2 === 0 ? currentUser : 12,
162
- i % 2 === 0 ? 12 : currentUser,
163
- // eslint-disable-next-line no-nested-ternary
164
- i === 4 ? photoAttachments : i === 5 ? videoAttachments : undefined,
165
- i % 7 === 0 ? '3' : undefined,
166
- );
167
-
168
- initFirstPageMessages.push(newMessageEntity);
169
- }
170
- //
171
- for (let i = 47; i < 100; i += 1) {
172
- const newMessageEntity: MessageEntity =
173
- Stubs.createMessageEntityWithParams(
174
- i.toString(),
175
- '103',
176
- `${i + 1} test message for dialog 103`,
177
- '31.03.2023',
178
- Date.now(),
179
- '31.03.2023',
180
- [currentUser, 12, 13],
181
- [currentUser, 12, 13],
182
- 1,
183
- currentUser,
184
- 12,
185
- textAttachments,
186
- );
187
-
188
- initFirstPageMessages.push(newMessageEntity);
189
- }
190
- //
191
- const messageEntityToDTOMapper: IMapper = new MessageLocalDTOMapper();
192
-
193
- // eslint-disable-next-line no-restricted-syntax
194
- for (const entity of initFirstPageMessages) {
195
- try {
196
- // eslint-disable-next-line no-await-in-loop
197
- const messageDTO = await messageEntityToDTOMapper.fromEntity<
198
- MessageEntity,
199
- LocalMessageDTO
200
- >(entity);
201
-
202
- // eslint-disable-next-line no-await-in-loop
203
- await ds.saveMessage(messageDTO);
204
- } catch (e) {
205
- console.log(
206
- 'EXCEPTION MessageEntity perform: ',
207
- JSON.stringify(entity),
208
- );
209
- console.log((e as MapperDTOException).message);
210
- console.log((e as MapperDTOException)._description);
211
- }
212
- }
213
- //
214
- }
215
-
216
- static createDialogEntityByTypeWithEmptyValues(
217
- dialogType: DialogType,
218
- ): DialogEntity {
219
- let dialogEntity: DialogEntity;
220
-
221
- switch (dialogType) {
222
- case DialogType.private:
223
- dialogEntity = new PrivateDialogEntity(
224
- { todo: '' },
225
- '',
226
- '_',
227
- {
228
- dateSent: '',
229
- text: '',
230
- userId: 0,
231
- },
232
- '',
233
- DialogType.private,
234
- 0,
235
- '',
236
- 0,
237
- );
238
- break;
239
- case DialogType.public:
240
- dialogEntity = new PublicDialogEntity(
241
- { todo: '' },
242
- '',
243
- {
244
- dateSent: '',
245
- text: '',
246
- userId: 0,
247
- },
248
- '',
249
- DialogType.public,
250
- 0,
251
- '',
252
- '',
253
- '',
254
- );
255
- break;
256
- case DialogType.group:
257
- dialogEntity = new GroupDialogEntity(
258
- { todo: '' },
259
- '',
260
- {
261
- dateSent: '',
262
- text: '',
263
- userId: 0,
264
- },
265
- '',
266
- DialogType.group,
267
- 0,
268
- '',
269
- [],
270
- '',
271
- '',
272
- );
273
- break;
274
- default:
275
- dialogEntity = {
276
- customData: { todo: '' },
277
- id: '',
278
- name: '_',
279
- lastMessage: { dateSent: '', text: '', userId: 0 },
280
- ownerId: '',
281
- type: -1,
282
- unreadMessageCount: 0,
283
- updatedAt: '',
284
- };
285
- break;
286
- }
287
-
288
- return dialogEntity;
289
- }
290
-
291
- static createDialogEntityWithError() {
292
- const entity: DialogEntity =
293
- Stubs.createDialogEntityByTypeWithEmptyValues(-1);
294
-
295
- return entity;
296
- }
297
-
298
- static createDialogEntityByTypeWithDefaultValues(
299
- dialogType: DialogType,
300
- ): DialogEntity {
301
- let dialogEntity: DialogEntity;
302
-
303
- switch (dialogType) {
304
- case DialogType.private:
305
- dialogEntity = new PrivateDialogEntity(
306
- { todo: '' },
307
- '111',
308
- '_111',
309
- {
310
- dateSent: '01.02.2023',
311
- text: 'text test',
312
- userId: 777,
313
- },
314
- '999',
315
- DialogType.private,
316
- 555,
317
- '02.02.2023',
318
- 333,
319
- );
320
- break;
321
- case DialogType.public:
322
- dialogEntity = new PublicDialogEntity(
323
- { todo: '' },
324
- '111',
325
- {
326
- dateSent: '01.02.2023',
327
- text: 'text test',
328
- userId: 777,
329
- },
330
- '999',
331
- DialogType.public,
332
- 555,
333
- '02.02.2023',
334
- 'test public dialog',
335
- 'no photo public dialog',
336
- );
337
- break;
338
- case DialogType.group:
339
- dialogEntity = new GroupDialogEntity(
340
- { todo: '' },
341
- '111',
342
- {
343
- dateSent: '01.02.2023',
344
- text: 'text test',
345
- userId: 777,
346
- },
347
- '999',
348
- DialogType.group,
349
- 555,
350
- '02.02.2023',
351
- [],
352
- 'test group dialog',
353
- 'no photo group dialog',
354
- );
355
- break;
356
- default:
357
- dialogEntity = {
358
- customData: { todo: '' },
359
- id: '111',
360
- name: '_111',
361
- lastMessage: {
362
- dateSent: '01.02.2023',
363
- text: 'text test',
364
- userId: 777,
365
- },
366
- ownerId: '999',
367
- type: -1,
368
- unreadMessageCount: 555,
369
- updatedAt: '03.02.2023',
370
- };
371
- break;
372
- }
373
-
374
- return dialogEntity;
375
- }
376
-
377
- static createDialogDTOByTypeWithDefaultValues(dialogType: DialogType) {
378
- const dto: RemoteDialogDTO = new RemoteDialogDTO();
379
-
380
- switch (dialogType) {
381
- case DialogType.private:
382
- dto.id = '111';
383
- dto.lastMessageDateSent = '01.02.2023';
384
- dto.lastMessageText = 'text test';
385
- dto.lastMessageUserId = '777';
386
- dto.ownerId = '999';
387
- dto.type = dialogType;
388
- dto.unreadMessageCount = 555;
389
- dto.updatedAt = '02.02.2023';
390
- dto.participantId = '333';
391
- break;
392
- case DialogType.public:
393
- dto.id = '111';
394
- dto.lastMessageDateSent = '01.02.2023';
395
- dto.lastMessageText = 'text test';
396
- dto.lastMessageUserId = '777';
397
- dto.ownerId = '999';
398
- dto.type = dialogType;
399
- dto.unreadMessageCount = 555;
400
- dto.updatedAt = '02.02.2023';
401
- dto.name = 'test public dialog';
402
- dto.photo = 'no photo public dialog';
403
- break;
404
- case DialogType.group:
405
- dto.id = '111';
406
- dto.lastMessageDateSent = '01.02.2023';
407
- dto.lastMessageText = 'text test';
408
- dto.lastMessageUserId = '777';
409
- dto.ownerId = '999';
410
- dto.type = dialogType;
411
- dto.unreadMessageCount = 555;
412
- dto.updatedAt = '02.02.2023';
413
- dto.participantsIds = [];
414
- dto.name = 'test group dialog';
415
- dto.photo = 'no photo group dialog';
416
- break;
417
- default:
418
- }
419
-
420
- return dto;
421
- }
422
-
423
- static createArrayDialogDTOByTypeWithDefaultValues(
424
- count: number,
425
- dialogType: DialogType,
426
- ) {
427
- const arrayDialogs: RemoteDialogDTO[] = [];
428
-
429
- for (let i = 0; i < count; i += 1) {
430
- const dialog = Stubs.createDialogDTOByTypeWithDefaultValues(dialogType);
431
-
432
- dialog.id = (1000 + i).toString();
433
- arrayDialogs.push();
434
- }
435
-
436
- return arrayDialogs;
437
- }
438
-
439
- static createArrayPublicDialogDTO() {
440
- console.log('call createArrayPublicDialogDTO');
441
- const dialogs: RemoteDialogDTO[] = [
442
- {
443
- id: '1',
444
- name: 'Cash Chat 1',
445
- ownerId: '1',
446
- photo: '',
447
- type: DialogType.public,
448
- participantId: '',
449
- participantsIds: [],
450
- lastMessageText: '',
451
- lastMessageDateSent: '',
452
- lastMessageUserId: '',
453
- lastMessageId: '',
454
- unreadMessageCount: 0,
455
- updatedAt: '',
456
- },
457
- {
458
- id: '2',
459
- name: 'Cash Chat 2',
460
- ownerId: '2',
461
- photo: '',
462
- type: DialogType.public,
463
- participantId: '',
464
- participantsIds: [],
465
- lastMessageText: '',
466
- lastMessageDateSent: '',
467
- lastMessageUserId: '',
468
- lastMessageId: '',
469
- unreadMessageCount: 0,
470
- updatedAt: '',
471
- },
472
- {
473
- id: '3',
474
- name: 'Chat 3 from Cash',
475
- ownerId: '3',
476
- photo: '',
477
- type: DialogType.public,
478
- participantId: '',
479
- participantsIds: [],
480
- lastMessageText: '',
481
- lastMessageDateSent: '',
482
- lastMessageUserId: '',
483
- lastMessageId: '',
484
- unreadMessageCount: 0,
485
- updatedAt: '',
486
- },
487
- {
488
- id: '4',
489
- name: 'Chat 4 from Cash',
490
- ownerId: '4',
491
- photo: '',
492
- type: DialogType.public,
493
- participantId: '',
494
- participantsIds: [],
495
- lastMessageText: '',
496
- lastMessageDateSent: '',
497
- lastMessageUserId: '',
498
- lastMessageId: '',
499
- unreadMessageCount: 0,
500
- updatedAt: '',
501
- },
502
- {
503
- id: '5',
504
- name: 'Chat 5 from Cash',
505
- ownerId: '5',
506
- photo: '',
507
- type: DialogType.public,
508
- participantId: '',
509
- participantsIds: [],
510
- lastMessageText: '',
511
- lastMessageDateSent: '',
512
- lastMessageUserId: '',
513
- lastMessageId: '',
514
- unreadMessageCount: 0,
515
- updatedAt: '',
516
- },
517
- {
518
- id: '6',
519
- name: 'Chat 6 from Cash',
520
- ownerId: '6',
521
- photo: '',
522
- type: DialogType.public,
523
- participantId: '',
524
- participantsIds: [],
525
- lastMessageText: '',
526
- lastMessageDateSent: '',
527
- lastMessageUserId: '',
528
- lastMessageId: '',
529
- unreadMessageCount: 0,
530
- updatedAt: '',
531
- },
532
- {
533
- id: '7',
534
- name: 'Chat 7 Lucky Room',
535
- ownerId: '7',
536
- photo: '',
537
- type: DialogType.public,
538
- participantId: '',
539
- participantsIds: [],
540
- lastMessageText: '',
541
- lastMessageDateSent: '',
542
- lastMessageUserId: '',
543
- lastMessageId: '',
544
- unreadMessageCount: 0,
545
- updatedAt: '',
546
- },
547
- ];
548
-
549
- return dialogs;
550
- }
551
-
552
- static createPublicDialogQBWithEmptyValues() {
553
- const qbDialog: QBChatDialog = {
554
- _id: '111',
555
- created_at: '01.03.2023',
556
- last_message: 'test message',
557
- last_message_date_sent: '02.03.2023',
558
- last_message_id: '100',
559
- last_message_user_id: 112,
560
- name: '',
561
- occupants_ids: [],
562
- new_occupants_ids: [],
563
- photo: null,
564
- type: DialogType.public,
565
- unread_messages_count: 0,
566
- updated_at: '02.03.2023',
567
- user_id: 0,
568
- xmpp_room_jid: null,
569
- };
570
-
571
- return qbDialog;
572
- }
573
-
574
- static createPrivateDialogQBWithEmptyValues() {
575
- const qbDialog: QBChatDialog = {
576
- _id: '111',
577
- created_at: '01.03.2023',
578
- last_message: 'test message',
579
- last_message_date_sent: '02.03.2023',
580
- last_message_id: '100',
581
- last_message_user_id: 112,
582
- name: '',
583
- occupants_ids: [],
584
- new_occupants_ids: [],
585
- photo: null,
586
- type: DialogType.private,
587
- unread_messages_count: 0,
588
- updated_at: '02.03.2023',
589
- user_id: 0,
590
- xmpp_room_jid: null,
591
- };
592
-
593
- return qbDialog;
594
- }
595
-
596
- static createGroupDialogQBWithEmptyValues() {
597
- const qbDialog: QBChatDialog = {
598
- _id: '111',
599
- created_at: '01.03.2023',
600
- last_message: 'test message',
601
- last_message_date_sent: '02.03.2023',
602
- last_message_id: '100',
603
- last_message_user_id: 112,
604
- name: '',
605
- occupants_ids: [],
606
- new_occupants_ids: [],
607
- photo: null,
608
- type: DialogType.group,
609
- unread_messages_count: 0,
610
- updated_at: '02.03.2023',
611
- user_id: 0,
612
- xmpp_room_jid: null,
613
- };
614
-
615
- return qbDialog;
616
- }
617
-
618
- static createDialogEntityWithParams(
619
- dialogType: DialogType,
620
- id: string,
621
- name: string,
622
- dateSentLastMessage: string,
623
- textLastMessage: string,
624
- userIdLastMessage: number,
625
- ownerId: string,
626
- unreadMessageCount: number,
627
- updatedAt: string,
628
- participantId: number,
629
- photo = '',
630
- participantIds: number[] = [],
631
- ): DialogEntity {
632
- let dialogEntity: DialogEntity;
633
-
634
- switch (dialogType) {
635
- case DialogType.private:
636
- dialogEntity = new PrivateDialogEntity(
637
- { todo: '' },
638
- id,
639
- name,
640
- {
641
- dateSent: dateSentLastMessage,
642
- text: textLastMessage,
643
- userId: userIdLastMessage,
644
- },
645
- ownerId,
646
- DialogType.private,
647
- unreadMessageCount,
648
- updatedAt,
649
- participantId,
650
- );
651
- break;
652
- case DialogType.public:
653
- dialogEntity = new PublicDialogEntity(
654
- { todo: '' },
655
- id,
656
- {
657
- dateSent: dateSentLastMessage,
658
- text: textLastMessage,
659
- userId: userIdLastMessage,
660
- },
661
- ownerId,
662
- DialogType.public,
663
- unreadMessageCount,
664
- updatedAt,
665
- name,
666
- photo,
667
- );
668
- break;
669
- case DialogType.group:
670
- dialogEntity = new GroupDialogEntity(
671
- { todo: '' },
672
- id,
673
- {
674
- dateSent: dateSentLastMessage,
675
- text: textLastMessage,
676
- userId: userIdLastMessage,
677
- },
678
- ownerId,
679
- DialogType.group,
680
- unreadMessageCount,
681
- updatedAt,
682
- participantIds,
683
- name,
684
- photo,
685
- );
686
- break;
687
- default:
688
- dialogEntity = {
689
- customData: { todo: '' },
690
- id: '012345',
691
- name: 'error dialog',
692
- lastMessage: {
693
- dateSent: '31.03.2023',
694
- text: 'text test',
695
- userId: 12345,
696
- },
697
- ownerId: '12345',
698
- type: -1,
699
- unreadMessageCount: 0,
700
- updatedAt: '31.03.2023',
701
- };
702
- break;
703
- }
704
-
705
- return dialogEntity;
706
- }
707
-
708
- static createUserEntityWithParams(
709
- id: number,
710
- full_name: string,
711
- email: string,
712
- login: string,
713
- created_at: string,
714
- updated_at: string,
715
- last_request_at: string,
716
- custom_data: string | null = null,
717
- user_tags: string | null = null,
718
- blob_id = '',
719
- ): UserEntity {
720
- const userEntity: UserEntity = {
721
- id,
722
- full_name,
723
- email,
724
- login,
725
- // phone: string;
726
- // website: string;
727
- created_at,
728
- updated_at,
729
- last_request_at,
730
- // external_user_id: null;
731
- // facebook_id: string | null;
732
- blob_id,
733
- custom_data,
734
- // age_over16: boolean;
735
- // allow_statistics_analysis: boolean;
736
- // allow_sales_activities: boolean;
737
- // parents_contacts: string;
738
- user_tags,
739
- // password?: string;
740
- // old_password?: string;
741
- };
742
-
743
- return userEntity;
744
- }
745
-
746
- static createMessageEntityWithParams(
747
- id: string,
748
- dialogId: string,
749
- message: string,
750
- created_at: string,
751
- date_sent: number,
752
- updated_at: string,
753
- delivered_ids: Array<number>,
754
- read_ids: Array<number>,
755
- read: number,
756
- sender_id: number,
757
- recipient_id: number,
758
- attachments?: ChatMessageAttachmentEntity[],
759
- notification_type?: string,
760
- dialog_type?: DialogType,
761
- ): MessageEntity {
762
- return {
763
- created_at,
764
- date_sent,
765
- delivered_ids,
766
- dialogId,
767
- id,
768
- message,
769
- read,
770
- read_ids,
771
- recipient_id,
772
- sender_id,
773
- updated_at,
774
- attachments,
775
- notification_type,
776
- dialogType: dialog_type,
777
- };
778
- }
779
-
780
- static createDialogsForTest(): Array<DialogEntity> {
781
- const dialogs: Array<DialogEntity> = new Array<DialogEntity>();
782
-
783
- const privateDialog: DialogEntity = Stubs.createDialogEntityWithParams(
784
- DialogType.private,
785
- '101',
786
- 'Stub1 Private Dialog',
787
- '31.03.2023',
788
- 'Test text message for private dialog',
789
- 11,
790
- '11',
791
- 1,
792
- '31.03.20223',
793
- 12,
794
- );
795
-
796
- dialogs.push(privateDialog);
797
-
798
- const publicDialog: DialogEntity = Stubs.createDialogEntityWithParams(
799
- DialogType.public,
800
- '102',
801
- 'Stub2 Public Dialog',
802
- '31.03.2023',
803
- 'Test text message for public dialog',
804
- 12,
805
- '12',
806
- 1,
807
- '31.03.20223',
808
- 12,
809
- 'no photo',
810
- [11, 12, 13],
811
- );
812
-
813
- dialogs.push(publicDialog);
814
-
815
- const groupDialog: DialogEntity = Stubs.createDialogEntityWithParams(
816
- DialogType.group,
817
- '103',
818
- 'Stub 3 Group Dialog',
819
- '31.03.2023',
820
- 'Test text message for group dialog',
821
- 13,
822
- '13',
823
- 1,
824
- '31.03.20223',
825
- 13,
826
- 'no photo',
827
- [11, 12, 13],
828
- );
829
-
830
- dialogs.push(groupDialog);
831
-
832
- return dialogs;
833
- }
834
-
835
- static createUsersForTest(): Array<UserEntity> {
836
- const users: Array<UserEntity> = new Array<UserEntity>();
837
-
838
- const user11: UserEntity = Stubs.createUserEntityWithParams(
839
- 11,
840
- 'fl_user11',
841
- 'fl_user11@q.ua',
842
- 'login_user11',
843
- '31.03.2023',
844
- '31.03.2023',
845
- '31.03.2023',
846
- );
847
-
848
- const user12: UserEntity = Stubs.createUserEntityWithParams(
849
- 12,
850
- 'fl_user12',
851
- 'fl_user12@q.ua',
852
- 'login_user12',
853
- '31.03.2023',
854
- '31.03.2023',
855
- '31.03.2023',
856
- );
857
-
858
- const user13: UserEntity = Stubs.createUserEntityWithParams(
859
- 13,
860
- 'fl_user13',
861
- 'fl_user13@q.ua',
862
- 'login_user13',
863
- '31.03.2023',
864
- '31.03.2023',
865
- '31.03.2023',
866
- );
867
-
868
- users.push(user11);
869
- users.push(user12);
870
- users.push(user13);
871
-
872
- return users;
873
- }
874
-
875
- static createMessagesForTest(): Array<MessageEntity> {
876
- const messages: Array<MessageEntity> = new Array<MessageEntity>();
877
- // shot text message
878
- const message102_1 = Stubs.createMessageEntityWithParams(
879
- '1021',
880
- '102',
881
- '1 test message for dialog 102',
882
- '31.03.2023',
883
- Date.now(),
884
- '31.03.2023',
885
- [11, 12, 13],
886
- [11, 12, 13],
887
- 1,
888
- 11,
889
- 12,
890
- );
891
- // long text message
892
- const message102_2 = Stubs.createMessageEntityWithParams(
893
- '1022',
894
- '102',
895
- '2 test message for dialog 102',
896
- '31.03.2023',
897
- Date.now(),
898
- '31.03.2023',
899
- [11, 12, 13],
900
- [11, 12, 13],
901
- 1,
902
- 11,
903
- 12,
904
- );
905
- // shot text message with attachment photo
906
- const photo: ChatMessageAttachmentEntity = {
907
- id: '10231',
908
- type: FileType.image,
909
- uid: '10231',
910
- url: 'https://via.placeholder.com/600/92c952',
911
- file: {
912
- id: '10231',
913
- uid: '',
914
- type: FileType.image,
915
- url: 'https://via.placeholder.com/600/92c952',
916
- },
917
- };
918
- const photoAttachments: ChatMessageAttachmentEntity[] = [photo];
919
- const message102_3 = Stubs.createMessageEntityWithParams(
920
- '1023',
921
- '102',
922
- '3 test message for dialog 102',
923
- '31.03.2023',
924
- Date.now(),
925
- '31.03.2023',
926
- [11, 12, 13],
927
- [11, 12, 13],
928
- 1,
929
- 11,
930
- 12,
931
- photoAttachments,
932
- );
933
- // shot text message with attachment video
934
- const video: ChatMessageAttachmentEntity = {
935
- id: '10232',
936
- type: FileType.video,
937
- uid: '10232',
938
- url: 'https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/WhatCarCanYouGetForAGrand.mp4',
939
- file: {
940
- id: '10232',
941
- uid: '',
942
- type: FileType.video,
943
- url: 'https://commondatastorage.googleapis.com/gtv-videos-bucket/sample/WhatCarCanYouGetForAGrand.mp4',
944
- },
945
- };
946
- const videoAttachments: ChatMessageAttachmentEntity[] = [video];
947
- const message102_4 = Stubs.createMessageEntityWithParams(
948
- '1024',
949
- '102',
950
- '3 test message for dialog 102',
951
- '31.03.2023',
952
- Date.now(),
953
- '31.03.2023',
954
- [11, 12, 13],
955
- [11, 12, 13],
956
- 1,
957
- 11,
958
- 12,
959
- videoAttachments,
960
- );
961
- // shot text message with attachment audio
962
- const audio: ChatMessageAttachmentEntity = {
963
- id: '10233',
964
- type: FileType.audio,
965
- uid: '10233',
966
- url: 'https://cdn.freesound.org/previews/681/681715_1648170-lq.mp3',
967
- file: {
968
- id: '10233',
969
- uid: '',
970
- type: FileType.audio,
971
- url: 'https://cdn.freesound.org/previews/681/681715_1648170-lq.mp3',
972
- },
973
- };
974
- const audioAttachments: ChatMessageAttachmentEntity[] = [audio];
975
- const message102_5 = Stubs.createMessageEntityWithParams(
976
- '1025',
977
- '102',
978
- '3 test message for dialog 102',
979
- '31.03.2023',
980
- Date.now(),
981
- '31.03.2023',
982
- [11, 12, 13],
983
- [11, 12, 13],
984
- 1,
985
- 11,
986
- 12,
987
- audioAttachments,
988
- );
989
- // shot text message with attachment text
990
- const text: ChatMessageAttachmentEntity = {
991
- id: '10233',
992
- type: FileType.text,
993
- uid: '10233',
994
- url: 'https://www.learningcontainer.com/wp-content/uploads/2020/04/sample-text-file.txt',
995
- file: {
996
- id: '10233',
997
- uid: '',
998
- type: FileType.text,
999
- url: 'https://www.learningcontainer.com/wp-content/uploads/2020/04/sample-text-file.txt',
1000
- },
1001
- };
1002
- const textAttachments: ChatMessageAttachmentEntity[] = [text];
1003
- const message102_6 = Stubs.createMessageEntityWithParams(
1004
- '1026',
1005
- '102',
1006
- '3 test message for dialog 102',
1007
- '31.03.2023',
1008
- Date.now(),
1009
- '31.03.2023',
1010
- [11, 12, 13],
1011
- [11, 12, 13],
1012
- 1,
1013
- 11,
1014
- 12,
1015
- textAttachments,
1016
- );
1017
-
1018
- messages.push(message102_1);
1019
- messages.push(message102_2);
1020
- messages.push(message102_3); // image
1021
- messages.push(message102_4); // video
1022
- messages.push(message102_5); // audio
1023
- messages.push(message102_6); // text
1024
-
1025
- const message112_1 = Stubs.createMessageEntityWithParams(
1026
- '1121',
1027
- '112',
1028
- '1 test message for dialog 112',
1029
- '31.03.2023',
1030
- Date.now(),
1031
- '31.03.2023',
1032
- [11, 12, 13],
1033
- [11, 12, 13],
1034
- 1,
1035
- 11,
1036
- 12,
1037
- );
1038
-
1039
- const message112_2 = Stubs.createMessageEntityWithParams(
1040
- '1122',
1041
- '112',
1042
- '2 test message for dialog 112',
1043
- '31.03.2023',
1044
- Date.now(),
1045
- '31.03.2023',
1046
- [11, 12, 13],
1047
- [11, 12, 13],
1048
- 1,
1049
- 11,
1050
- 12,
1051
- );
1052
-
1053
- const message112_3 = Stubs.createMessageEntityWithParams(
1054
- '1123',
1055
- '112',
1056
- '3 test message for dialog 112',
1057
- '31.03.2023',
1058
- Date.now(),
1059
- '31.03.2023',
1060
- [11, 12, 13],
1061
- [11, 12, 13],
1062
- 1,
1063
- 11,
1064
- 12,
1065
- );
1066
-
1067
- messages.push(message112_1);
1068
- messages.push(message112_2);
1069
- messages.push(message112_3);
1070
-
1071
- const message113_1 = Stubs.createMessageEntityWithParams(
1072
- '1131',
1073
- '113',
1074
- '1 test message for dialog 113',
1075
- '31.03.2023',
1076
- Date.now(),
1077
- '31.03.2023',
1078
- [11, 12, 13],
1079
- [11, 12, 13],
1080
- 1,
1081
- 11,
1082
- 12,
1083
- );
1084
-
1085
- const message113_2 = Stubs.createMessageEntityWithParams(
1086
- '1132',
1087
- '113',
1088
- '2 test message for dialog 113',
1089
- '31.03.2023',
1090
- Date.now(),
1091
- '31.03.2023',
1092
- [11, 12, 13],
1093
- [11, 12, 13],
1094
- 1,
1095
- 11,
1096
- 12,
1097
- );
1098
-
1099
- const message113_3 = Stubs.createMessageEntityWithParams(
1100
- '1133',
1101
- '113',
1102
- '3 test message for dialog 113',
1103
- '31.03.2023',
1104
- Date.now(),
1105
- '31.03.2023',
1106
- [11, 12, 13],
1107
- [11, 12, 13],
1108
- 1,
1109
- 11,
1110
- 12,
1111
- );
1112
-
1113
- messages.push(message113_1);
1114
- messages.push(message113_2);
1115
- messages.push(message113_3);
1116
-
1117
- return messages;
1118
- }
1119
-
1120
- public static createFileEntityWithDefaultValues(): FileEntity {
1121
- return {
1122
- id: '0',
1123
- uid: '',
1124
- url: '',
1125
- name: '',
1126
- size: 0,
1127
- type: FileType.image,
1128
- data: '',
1129
- };
1130
- }
1131
- }