quickblox-react-ui-kit 0.1.1 → 0.1.2

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 (559) hide show
  1. package/README.md +30 -0
  2. package/dist/App.d.ts +2 -1
  3. package/dist/Presentation/components/Button.d.ts +1 -1
  4. package/dist/Presentation/components/Navbar.d.ts +2 -1
  5. package/dist/Presentation/components/TextInput.d.ts +1 -1
  6. package/dist/Presentation/components/UI/Dialogs/InviteMembers/InviteMembers.d.ts +2 -0
  7. package/dist/Presentation/components/UI/Placeholders/LoaderComponent/LoaderComponent.d.ts +2 -1
  8. package/dist/Presentation/components/UI/svgs/Icons/Actions/Add/index.d.ts +2 -1
  9. package/dist/Presentation/components/UI/svgs/Icons/Actions/AddContact/index.d.ts +2 -1
  10. package/dist/Presentation/components/UI/svgs/Icons/Actions/Archive/index.d.ts +2 -1
  11. package/dist/Presentation/components/UI/svgs/Icons/Actions/Copy/index.d.ts +2 -1
  12. package/dist/Presentation/components/UI/svgs/Icons/Actions/Delete/index.d.ts +2 -1
  13. package/dist/Presentation/components/UI/svgs/Icons/Actions/Download/index.d.ts +2 -1
  14. package/dist/Presentation/components/UI/svgs/Icons/Actions/Edit/index.d.ts +2 -1
  15. package/dist/Presentation/components/UI/svgs/Icons/Actions/EditDots/index.d.ts +2 -1
  16. package/dist/Presentation/components/UI/svgs/Icons/Actions/Emoji/index.d.ts +2 -1
  17. package/dist/Presentation/components/UI/svgs/Icons/Actions/ForwardFilled/index.d.ts +2 -1
  18. package/dist/Presentation/components/UI/svgs/Icons/Actions/Hungup/index.d.ts +2 -1
  19. package/dist/Presentation/components/UI/svgs/Icons/Actions/IncomeCall/index.d.ts +2 -1
  20. package/dist/Presentation/components/UI/svgs/Icons/Actions/Like/index.d.ts +2 -1
  21. package/dist/Presentation/components/UI/svgs/Icons/Actions/NewChat/index.d.ts +2 -1
  22. package/dist/Presentation/components/UI/svgs/Icons/Actions/OutcomeCall/index.d.ts +2 -1
  23. package/dist/Presentation/components/UI/svgs/Icons/Actions/Phone/index.d.ts +2 -1
  24. package/dist/Presentation/components/UI/svgs/Icons/Actions/PhoneFilled/index.d.ts +2 -1
  25. package/dist/Presentation/components/UI/svgs/Icons/Actions/Remove/index.d.ts +2 -1
  26. package/dist/Presentation/components/UI/svgs/Icons/Actions/Remove2/index.d.ts +2 -1
  27. package/dist/Presentation/components/UI/svgs/Icons/Actions/ReplyFilled/index.d.ts +2 -1
  28. package/dist/Presentation/components/UI/svgs/Icons/Actions/Send/index.d.ts +2 -1
  29. package/dist/Presentation/components/UI/svgs/Icons/Actions/Share/index.d.ts +2 -1
  30. package/dist/Presentation/components/UI/svgs/Icons/Actions/SwapCamera/index.d.ts +2 -1
  31. package/dist/Presentation/components/UI/svgs/Icons/Actions/Unarchive/index.d.ts +2 -1
  32. package/dist/Presentation/components/UI/svgs/Icons/Actions/VideoIcon/index.d.ts +2 -1
  33. package/dist/Presentation/components/UI/svgs/Icons/Actions/Voice/index.d.ts +2 -1
  34. package/dist/Presentation/components/UI/svgs/Icons/Contents/Brodcast/index.d.ts +2 -1
  35. package/dist/Presentation/components/UI/svgs/Icons/Contents/Chat/index.d.ts +2 -1
  36. package/dist/Presentation/components/UI/svgs/Icons/Contents/ChatFilled/index.d.ts +2 -1
  37. package/dist/Presentation/components/UI/svgs/Icons/Contents/Conference/index.d.ts +2 -1
  38. package/dist/Presentation/components/UI/svgs/Icons/Contents/Contact/index.d.ts +2 -1
  39. package/dist/Presentation/components/UI/svgs/Icons/Contents/ContactFilled/index.d.ts +2 -1
  40. package/dist/Presentation/components/UI/svgs/Icons/Contents/GroupChat/index.d.ts +2 -1
  41. package/dist/Presentation/components/UI/svgs/Icons/Contents/Notifications/index.d.ts +2 -1
  42. package/dist/Presentation/components/UI/svgs/Icons/Contents/PrivateChat/index.d.ts +2 -1
  43. package/dist/Presentation/components/UI/svgs/Icons/Contents/PublicChannel/index.d.ts +2 -1
  44. package/dist/Presentation/components/UI/svgs/Icons/Contents/Stream/index.d.ts +2 -1
  45. package/dist/Presentation/components/UI/svgs/Icons/Contents/StreamFilled/index.d.ts +2 -1
  46. package/dist/Presentation/components/UI/svgs/Icons/Contents/User/index.d.ts +2 -1
  47. package/dist/Presentation/components/UI/svgs/Icons/Media/Attachment/index.d.ts +2 -1
  48. package/dist/Presentation/components/UI/svgs/Icons/Media/AudioFile/index.d.ts +2 -1
  49. package/dist/Presentation/components/UI/svgs/Icons/Media/BrokenFile/index.d.ts +2 -1
  50. package/dist/Presentation/components/UI/svgs/Icons/Media/Camera/index.d.ts +2 -1
  51. package/dist/Presentation/components/UI/svgs/Icons/Media/GifFile/index.d.ts +2 -1
  52. package/dist/Presentation/components/UI/svgs/Icons/Media/ImageEmpty/index.d.ts +2 -1
  53. package/dist/Presentation/components/UI/svgs/Icons/Media/ImageFile/index.d.ts +2 -1
  54. package/dist/Presentation/components/UI/svgs/Icons/Media/ImageFilled/index.d.ts +2 -1
  55. package/dist/Presentation/components/UI/svgs/Icons/Media/LinkWeb/index.d.ts +2 -1
  56. package/dist/Presentation/components/UI/svgs/Icons/Media/Location/index.d.ts +2 -1
  57. package/dist/Presentation/components/UI/svgs/Icons/Media/TextDocument/index.d.ts +2 -1
  58. package/dist/Presentation/components/UI/svgs/Icons/Media/VideoFile/index.d.ts +2 -1
  59. package/dist/Presentation/components/UI/svgs/Icons/Moderation/Admin/index.d.ts +2 -1
  60. package/dist/Presentation/components/UI/svgs/Icons/Moderation/Banned/index.d.ts +2 -1
  61. package/dist/Presentation/components/UI/svgs/Icons/Moderation/Freeze/index.d.ts +2 -1
  62. package/dist/Presentation/components/UI/svgs/Icons/Moderation/Moderations/index.d.ts +2 -1
  63. package/dist/Presentation/components/UI/svgs/Icons/Moderation/Muted/index.d.ts +2 -1
  64. package/dist/Presentation/components/UI/svgs/Icons/Navigation/ArrowLeft/index.d.ts +2 -1
  65. package/dist/Presentation/components/UI/svgs/Icons/Navigation/ArrowRight/index.d.ts +2 -1
  66. package/dist/Presentation/components/UI/svgs/Icons/Navigation/Back/index.d.ts +2 -1
  67. package/dist/Presentation/components/UI/svgs/Icons/Navigation/Close/index.d.ts +2 -1
  68. package/dist/Presentation/components/UI/svgs/Icons/Navigation/Down/index.d.ts +2 -1
  69. package/dist/Presentation/components/UI/svgs/Icons/Navigation/Leave/index.d.ts +2 -1
  70. package/dist/Presentation/components/UI/svgs/Icons/Navigation/More/index.d.ts +2 -1
  71. package/dist/Presentation/components/UI/svgs/Icons/Navigation/Next/index.d.ts +2 -1
  72. package/dist/Presentation/components/UI/svgs/Icons/Navigation/Plus/index.d.ts +2 -1
  73. package/dist/Presentation/components/UI/svgs/Icons/Navigation/Refresh/index.d.ts +2 -1
  74. package/dist/Presentation/components/UI/svgs/Icons/Navigation/Search/index.d.ts +2 -1
  75. package/dist/Presentation/components/UI/svgs/Icons/Navigation/Settings/index.d.ts +2 -1
  76. package/dist/Presentation/components/UI/svgs/Icons/Navigation/SettingsField/index.d.ts +2 -1
  77. package/dist/Presentation/components/UI/svgs/Icons/Status/Error/index.d.ts +2 -1
  78. package/dist/Presentation/components/UI/svgs/Icons/Status/Help/index.d.ts +2 -1
  79. package/dist/Presentation/components/UI/svgs/Icons/Status/Information/index.d.ts +2 -1
  80. package/dist/Presentation/components/UI/svgs/Icons/Status/InformationFill/index.d.ts +2 -1
  81. package/dist/Presentation/components/UI/svgs/Icons/Status/Loader/index.d.ts +2 -1
  82. package/dist/Presentation/components/UI/svgs/Icons/Status/Mention/index.d.ts +2 -1
  83. package/dist/Presentation/components/UI/svgs/Icons/Status/Sent/index.d.ts +2 -1
  84. package/dist/Presentation/components/UI/svgs/Icons/Status/ViewedDelivered/index.d.ts +2 -1
  85. package/dist/Presentation/components/UI/svgs/Icons/Toggle/CameraOff/index.d.ts +2 -1
  86. package/dist/Presentation/components/UI/svgs/Icons/Toggle/CameraOn/index.d.ts +2 -1
  87. package/dist/Presentation/components/UI/svgs/Icons/Toggle/CheckOff/index.d.ts +2 -1
  88. package/dist/Presentation/components/UI/svgs/Icons/Toggle/CheckOn/index.d.ts +2 -1
  89. package/dist/Presentation/components/UI/svgs/Icons/Toggle/Favourite/index.d.ts +2 -1
  90. package/dist/Presentation/components/UI/svgs/Icons/Toggle/FavouriteFilled/index.d.ts +2 -1
  91. package/dist/Presentation/components/UI/svgs/Icons/Toggle/FullScreen/inex.d.ts +2 -1
  92. package/dist/Presentation/components/UI/svgs/Icons/Toggle/Hide/index.d.ts +2 -1
  93. package/dist/Presentation/components/UI/svgs/Icons/Toggle/ImagePlay/index.d.ts +2 -1
  94. package/dist/Presentation/components/UI/svgs/Icons/Toggle/Louder/index.d.ts +2 -1
  95. package/dist/Presentation/components/UI/svgs/Icons/Toggle/MicOff/index.d.ts +2 -1
  96. package/dist/Presentation/components/UI/svgs/Icons/Toggle/MicOn/index.d.ts +2 -1
  97. package/dist/Presentation/components/UI/svgs/Icons/Toggle/Minimize/index.d.ts +2 -1
  98. package/dist/Presentation/components/UI/svgs/Icons/Toggle/NotifyOff/index.d.ts +2 -1
  99. package/dist/Presentation/components/UI/svgs/Icons/Toggle/NotifyOn/index.d.ts +2 -1
  100. package/dist/Presentation/components/UI/svgs/Icons/Toggle/Pause/index.d.ts +2 -1
  101. package/dist/Presentation/components/UI/svgs/Icons/Toggle/Quite/index.d.ts +2 -1
  102. package/dist/Presentation/components/UI/svgs/Icons/Toggle/Record/index.d.ts +2 -1
  103. package/dist/Presentation/components/UI/svgs/Icons/Toggle/Screenshare/index.d.ts +2 -1
  104. package/dist/Presentation/components/UI/svgs/Icons/Toggle/Show/index.d.ts +2 -1
  105. package/dist/Presentation/components/UI/svgs/Icons/Toggle/Speaker/index.d.ts +2 -1
  106. package/dist/Presentation/components/UI/svgs/Icons/Toggle/SpeakerOff/index.d.ts +2 -1
  107. package/dist/Presentation/components/UI/svgs/Icons/Toggle/StopRecord/index.d.ts +2 -1
  108. package/dist/Presentation/components/UI/svgs/Icons/Toggle/StopShare/index.d.ts +2 -1
  109. package/dist/Presentation/components/containers/ScrollableContainer/ScrollableContainer.d.ts +1 -1
  110. package/dist/Presentation/components/layouts/Desktop/DesktopLayout.d.ts +1 -1
  111. package/dist/Presentation/components/layouts/TestStage/TestStageMarkup.d.ts +2 -1
  112. package/dist/Presentation/components/providers/ModalContextProvider/Modal.d.ts +1 -1
  113. package/dist/Presentation/components/providers/ModalContextProvider/ModalContextProvider.d.ts +2 -1
  114. package/dist/Presentation/components/providers/QuickBloxUIKitProvider/QuickBloxUIKitProvider.d.ts +1 -1
  115. package/dist/index-ui.d.ts +3 -1
  116. package/dist/index-ui.js +332 -321
  117. package/package.json +9 -2
  118. package/.prettierignore +0 -4
  119. package/.prettierrc +0 -8
  120. package/public/favicon.ico +0 -0
  121. package/public/index.html +0 -47
  122. package/public/logo192.png +0 -0
  123. package/public/logo512.png +0 -0
  124. package/public/manifest.json +0 -25
  125. package/public/quickblox.js +0 -54609
  126. package/public/robots.txt +0 -3
  127. package/src/App.scss +0 -0
  128. package/src/App.tsx +0 -237
  129. package/src/CommonTypes/FunctionResult.ts +0 -4
  130. package/src/Data/Stubs.ts +0 -1131
  131. package/src/Data/dto/dialog/LocalDialogDTO.ts +0 -42
  132. package/src/Data/dto/dialog/LocalDialogsDTO.ts +0 -21
  133. package/src/Data/dto/dialog/RemoteDialogDTO.ts +0 -58
  134. package/src/Data/dto/dialog/RemoteDialogsDTO.ts +0 -21
  135. package/src/Data/dto/file/LocalFileDTO.ts +0 -26
  136. package/src/Data/dto/file/RemoteFileDTO.ts +0 -26
  137. package/src/Data/dto/message/LocalMessageDTO.ts +0 -51
  138. package/src/Data/dto/message/LocalMessagesDTO.ts +0 -21
  139. package/src/Data/dto/message/RemoteMessageDTO.ts +0 -51
  140. package/src/Data/dto/message/RemoteMessagesDTO.ts +0 -21
  141. package/src/Data/dto/user/LocalUserDTO.ts +0 -37
  142. package/src/Data/dto/user/LocalUsersDTO.ts +0 -23
  143. package/src/Data/dto/user/RemoteUserDTO.ts +0 -37
  144. package/src/Data/dto/user/RemoteUsersDTO.ts +0 -21
  145. package/src/Data/mapper/DialogLocalDTOMapper.ts +0 -742
  146. package/src/Data/mapper/DialogRemoteDTOMapper.ts +0 -776
  147. package/src/Data/mapper/FileLocalDTOMapper.ts +0 -253
  148. package/src/Data/mapper/FileRemoteDTOMapper.ts +0 -265
  149. package/src/Data/mapper/IMapper.ts +0 -14
  150. package/src/Data/mapper/MessageLocalDTOMapper.ts +0 -425
  151. package/src/Data/mapper/MessageRemoteDTOMapper.ts +0 -430
  152. package/src/Data/mapper/UserLocalDTOMapper.ts +0 -381
  153. package/src/Data/mapper/UserRemoteDTOMapper.ts +0 -393
  154. package/src/Data/repository/ConnectionRepository.ts +0 -128
  155. package/src/Data/repository/DialogsRepository.ts +0 -422
  156. package/src/Data/repository/EventMessagesRepository.ts +0 -291
  157. package/src/Data/repository/FileRepository.ts +0 -110
  158. package/src/Data/repository/MessagesRepository.ts +0 -288
  159. package/src/Data/repository/UsersRepository.ts +0 -324
  160. package/src/Data/source/exception/LocalDataSourceException.ts +0 -17
  161. package/src/Data/source/exception/MapperDTOException.ts +0 -19
  162. package/src/Data/source/exception/RemoteDataSourceException.ts +0 -28
  163. package/src/Data/source/exception/RepositoryException.ts +0 -27
  164. package/src/Data/source/local/ChatLocalStorageDataSource.ts +0 -262
  165. package/src/Data/source/local/ILocalDataSource.ts +0 -45
  166. package/src/Data/source/local/ILocalFileDataSource.ts +0 -11
  167. package/src/Data/source/local/LocalDataSource.ts +0 -377
  168. package/src/Data/source/local/LocalFileDataSource.ts +0 -22
  169. package/src/Data/source/remote/IRemoteDataSource.ts +0 -112
  170. package/src/Data/source/remote/Mapper/DialogDTOMapper.ts +0 -401
  171. package/src/Data/source/remote/Mapper/FileDTOMapper.ts +0 -276
  172. package/src/Data/source/remote/Mapper/IDTOMapper.ts +0 -4
  173. package/src/Data/source/remote/Mapper/MessageDTOMapper.ts +0 -399
  174. package/src/Data/source/remote/Mapper/UserDTOMapper.ts +0 -344
  175. package/src/Data/source/remote/RemoteDataSource.ts +0 -1278
  176. package/src/Domain/entity/Chat.ts +0 -4
  177. package/src/Domain/entity/ChatMessageAttachmentEntity.ts +0 -15
  178. package/src/Domain/entity/CustomDataEntity.ts +0 -3
  179. package/src/Domain/entity/DialogEntity.ts +0 -15
  180. package/src/Domain/entity/DialogEventInfo.ts +0 -15
  181. package/src/Domain/entity/DialogTypes.ts +0 -7
  182. package/src/Domain/entity/EventMessageType.ts +0 -7
  183. package/src/Domain/entity/FileEntity.ts +0 -11
  184. package/src/Domain/entity/FileTypes.ts +0 -9
  185. package/src/Domain/entity/GroupDialogEntity.ts +0 -54
  186. package/src/Domain/entity/LastMessageEntity.ts +0 -5
  187. package/src/Domain/entity/MessageEntity.ts +0 -25
  188. package/src/Domain/entity/NotificationTypes.ts +0 -7
  189. package/src/Domain/entity/PrivateDialogEntity.ts +0 -46
  190. package/src/Domain/entity/PublicDialogEntity.ts +0 -72
  191. package/src/Domain/entity/UserEntity.ts +0 -22
  192. package/src/Domain/exception/domain/DomainExecption.ts +0 -5
  193. package/src/Domain/repository/IDialogsRepository.ts +0 -40
  194. package/src/Domain/repository/IFileRepository.ts +0 -9
  195. package/src/Domain/repository/IMessagesRepository.ts +0 -28
  196. package/src/Domain/repository/IUsersRepository.ts +0 -13
  197. package/src/Domain/repository/Pagination.ts +0 -48
  198. package/src/Domain/use_cases/CreateDialogUseCase.ts +0 -73
  199. package/src/Domain/use_cases/GetAllDialogsUseCase.ts +0 -20
  200. package/src/Domain/use_cases/GetAllDialogsUseCaseWithMock.ts +0 -45
  201. package/src/Domain/use_cases/GetAllMessagesForDialog.ts +0 -61
  202. package/src/Domain/use_cases/GetAllUsersUseCase.ts +0 -34
  203. package/src/Domain/use_cases/GetDialogByIdUseCase.ts +0 -28
  204. package/src/Domain/use_cases/GetUsersByIdsUseCase.ts +0 -22
  205. package/src/Domain/use_cases/LeaveDialogUseCase.ts +0 -109
  206. package/src/Domain/use_cases/RemoveUsersFromTheDialogUseCase.ts +0 -103
  207. package/src/Domain/use_cases/SendTextMessageUseCase.ts +0 -26
  208. package/src/Domain/use_cases/SubscribeToDialogEventsUseCase.ts +0 -141
  209. package/src/Domain/use_cases/SubscribeToDialogsUpdatesUseCase.ts +0 -69
  210. package/src/Domain/use_cases/SubscribeToDialogsUpdatesUseCaseWithMock.ts +0 -61
  211. package/src/Domain/use_cases/SyncDialogsUseCase.ts +0 -246
  212. package/src/Domain/use_cases/UpdateDialogUseCase.ts +0 -65
  213. package/src/Domain/use_cases/UploadFileUseCase.ts +0 -24
  214. package/src/Domain/use_cases/UserTypingMessageUseCase.ts +0 -51
  215. package/src/Domain/use_cases/base/BaseUseCase.ts +0 -77
  216. package/src/Domain/use_cases/base/IUseCase.ts +0 -5
  217. package/src/Domain/use_cases/base/Subscribable/ISubscribable.ts +0 -6
  218. package/src/Domain/use_cases/base/Subscribable/SubscriptionPerformer.ts +0 -143
  219. package/src/Presentation/.gitkeep +0 -0
  220. package/src/Presentation/Views/Base/BaseViewModel.ts +0 -66
  221. package/src/Presentation/Views/CreateDialogFlow/CreateNewDialogFlow.tsx +0 -187
  222. package/src/Presentation/Views/Dialogs/DialogViewModel.ts +0 -23
  223. package/src/Presentation/Views/Dialogs/Dialogs.scss +0 -66
  224. package/src/Presentation/Views/Dialogs/Dialogs.tsx +0 -375
  225. package/src/Presentation/Views/Dialogs/useDialogsViewModel.ts +0 -340
  226. package/src/Presentation/Views/Navigation/More.svg +0 -7
  227. package/src/Presentation/assets/ DefaultThemes/CustomTheme.ts +0 -13
  228. package/src/Presentation/assets/ DefaultThemes/DefaultTheme.ts +0 -58
  229. package/src/Presentation/assets/DarkTheme.ts +0 -58
  230. package/src/Presentation/assets/LightTheme.ts +0 -58
  231. package/src/Presentation/assets/ThemeScheme.ts +0 -83
  232. package/src/Presentation/assets/UiKitTheme.ts +0 -143
  233. package/src/Presentation/assets/fonts/.gitkeep +0 -0
  234. package/src/Presentation/assets/fonts/Roboto-Bold.eot +0 -0
  235. package/src/Presentation/assets/fonts/Roboto-Bold.ttf +0 -0
  236. package/src/Presentation/assets/fonts/Roboto-Bold.woff +0 -0
  237. package/src/Presentation/assets/fonts/Roboto-Bold.woff2 +0 -0
  238. package/src/Presentation/assets/fonts/Roboto-Medium.eot +0 -0
  239. package/src/Presentation/assets/fonts/Roboto-Medium.ttf +0 -0
  240. package/src/Presentation/assets/fonts/Roboto-Medium.woff +0 -0
  241. package/src/Presentation/assets/fonts/Roboto-Medium.woff2 +0 -0
  242. package/src/Presentation/assets/fonts/Roboto-Regular.eot +0 -0
  243. package/src/Presentation/assets/fonts/Roboto-Regular.ttf +0 -0
  244. package/src/Presentation/assets/fonts/Roboto-Regular.woff +0 -0
  245. package/src/Presentation/assets/fonts/Roboto-Regular.woff2 +0 -0
  246. package/src/Presentation/assets/img/Artem_Koltunov_Selfi.png +0 -0
  247. package/src/Presentation/assets/img/bee-img.png +0 -0
  248. package/src/Presentation/assets/styles/_fonts.scss +0 -32
  249. package/src/Presentation/assets/styles/_reset-styles.scss +0 -435
  250. package/src/Presentation/assets/styles/_theme_colors_scheme.scss +0 -56
  251. package/src/Presentation/assets/styles/_theme_dark.scss +0 -33
  252. package/src/Presentation/assets/styles/_theme_light.scss +0 -33
  253. package/src/Presentation/assets/styles/_variables.scss +0 -2
  254. package/src/Presentation/components/Button.js +0 -5
  255. package/src/Presentation/components/Navbar.tsx +0 -45
  256. package/src/Presentation/components/TextInput.js +0 -10
  257. package/src/Presentation/components/UI/Buttons/ActiveButton/ActiveButton.tsx +0 -40
  258. package/src/Presentation/components/UI/Buttons/MainBoundedButton/MainBoundedButton.scss +0 -0
  259. package/src/Presentation/components/UI/Buttons/MainBoundedButton/MainBoundedButton.tsx +0 -30
  260. package/src/Presentation/components/UI/Buttons/MainButton/MainButton.scss +0 -127
  261. package/src/Presentation/components/UI/Buttons/MainButton/MainButton.tsx +0 -62
  262. package/src/Presentation/components/UI/Dialogs/CreateDialog/CreateDialog.scss +0 -45
  263. package/src/Presentation/components/UI/Dialogs/CreateDialog/CreateDialog.tsx +0 -77
  264. package/src/Presentation/components/UI/Dialogs/DialogInformation/DialogInformation.scss +0 -429
  265. package/src/Presentation/components/UI/Dialogs/DialogInformation/DialogInformation.tsx +0 -646
  266. package/src/Presentation/components/UI/Dialogs/DialogInformation/DialogMemberButton/DialogMembersButton.scss +0 -42
  267. package/src/Presentation/components/UI/Dialogs/DialogInformation/DialogMemberButton/DialogMembersButton.tsx +0 -26
  268. package/src/Presentation/components/UI/Dialogs/DialogInformation/UsersList/SingleUser/SingleUser.scss +0 -95
  269. package/src/Presentation/components/UI/Dialogs/DialogInformation/UsersList/SingleUser/SingleUser.tsx +0 -42
  270. package/src/Presentation/components/UI/Dialogs/DialogInformation/UsersList/UsersList.scss +0 -60
  271. package/src/Presentation/components/UI/Dialogs/DialogInformation/UsersList/UsersList.tsx +0 -65
  272. package/src/Presentation/components/UI/Dialogs/DialogInformation/UsersList/UsersListViewModel.ts +0 -13
  273. package/src/Presentation/components/UI/Dialogs/DialogInformation/UsersList/useUsersListViewModel.ts +0 -81
  274. package/src/Presentation/components/UI/Dialogs/EditDialog/EditDialog.scss +0 -183
  275. package/src/Presentation/components/UI/Dialogs/EditDialog/EditDialog.tsx +0 -262
  276. package/src/Presentation/components/UI/Dialogs/EditDialog/UserAvatar/UserAvatar.scss +0 -32
  277. package/src/Presentation/components/UI/Dialogs/EditDialog/UserAvatar/UserAvatar.tsx +0 -59
  278. package/src/Presentation/components/UI/Dialogs/HeaderDialogs/HeaderDialogs.scss +0 -67
  279. package/src/Presentation/components/UI/Dialogs/HeaderDialogs/HeaderDialogs.tsx +0 -112
  280. package/src/Presentation/components/UI/Dialogs/InviteMembers/InviteMembers.scss +0 -146
  281. package/src/Presentation/components/UI/Dialogs/InviteMembers/InviteMembers.tsx +0 -374
  282. package/src/Presentation/components/UI/Dialogs/InviteMembers/InviteMembersViewModel.ts +0 -18
  283. package/src/Presentation/components/UI/Dialogs/InviteMembers/InviteUsersList/SingleUserWithCheckBox/SingleUserWithCheckBox.scss +0 -113
  284. package/src/Presentation/components/UI/Dialogs/InviteMembers/InviteUsersList/SingleUserWithCheckBox/SingleUserWithCheckBox.tsx +0 -87
  285. package/src/Presentation/components/UI/Dialogs/InviteMembers/InviteUsersResultViewModel.ts +0 -12
  286. package/src/Presentation/components/UI/Dialogs/InviteMembers/NotFoundContent/NotFoundContent.scss +0 -37
  287. package/src/Presentation/components/UI/Dialogs/InviteMembers/NotFoundContent/NotFoundContent.tsx +0 -22
  288. package/src/Presentation/components/UI/Dialogs/InviteMembers/useInviteMembersViewModel.ts +0 -116
  289. package/src/Presentation/components/UI/Dialogs/MembersList/MembersList.scss +0 -128
  290. package/src/Presentation/components/UI/Dialogs/MembersList/MembersList.tsx +0 -89
  291. package/src/Presentation/components/UI/Dialogs/MessagesView/AudioAttachmentComponent/AudioAttachmentComponent.scss +0 -7
  292. package/src/Presentation/components/UI/Dialogs/MessagesView/AudioAttachmentComponent/AudioAttachmentComponent.tsx +0 -27
  293. package/src/Presentation/components/UI/Dialogs/MessagesView/HeaderMessages/HeaderMessages.scss +0 -133
  294. package/src/Presentation/components/UI/Dialogs/MessagesView/HeaderMessages/HeaderMessages.tsx +0 -141
  295. package/src/Presentation/components/UI/Dialogs/MessagesView/ImageAttachmentComponent/ImageAttachmentComponent.scss +0 -11
  296. package/src/Presentation/components/UI/Dialogs/MessagesView/ImageAttachmentComponent/ImageAttachmentComponent.tsx +0 -25
  297. package/src/Presentation/components/UI/Dialogs/MessagesView/MessagesView.scss +0 -327
  298. package/src/Presentation/components/UI/Dialogs/MessagesView/MessagesView.tsx +0 -800
  299. package/src/Presentation/components/UI/Dialogs/MessagesView/MessagesViewModel.ts +0 -20
  300. package/src/Presentation/components/UI/Dialogs/MessagesView/VideoAttachmentComponent/VideoAttachmentComponent.scss +0 -7
  301. package/src/Presentation/components/UI/Dialogs/MessagesView/VideoAttachmentComponent/VideoAttachmentComponent.tsx +0 -33
  302. package/src/Presentation/components/UI/Dialogs/MessagesView/VoiceRecordingProgress/VoiceRecordingProgress.scss +0 -35
  303. package/src/Presentation/components/UI/Dialogs/MessagesView/VoiceRecordingProgress/VoiceRecordingProgress.tsx +0 -86
  304. package/src/Presentation/components/UI/Dialogs/MessagesView/useMessagesViewModel.ts +0 -450
  305. package/src/Presentation/components/UI/Dialogs/PreviewDialog/PreviewDialog.scss +0 -100
  306. package/src/Presentation/components/UI/Dialogs/PreviewDialog/PreviewDialog.tsx +0 -405
  307. package/src/Presentation/components/UI/Dialogs/PreviewDialog/PreviewDialogViewModel.ts +0 -42
  308. package/src/Presentation/components/UI/Dialogs/YesNoQuestion/YesNoQuestion.scss +0 -35
  309. package/src/Presentation/components/UI/Dialogs/YesNoQuestion/YesNoQuestion.tsx +0 -89
  310. package/src/Presentation/components/UI/Elements/SwitchButton/SwitchButton.scss +0 -61
  311. package/src/Presentation/components/UI/Elements/SwitchButton/SwitchButton.tsx +0 -48
  312. package/src/Presentation/components/UI/Placeholders/ErrorComponent/ErrorComponent.scss +0 -74
  313. package/src/Presentation/components/UI/Placeholders/ErrorComponent/ErrorComponent.tsx +0 -72
  314. package/src/Presentation/components/UI/Placeholders/LoaderComponent/LoaderComponent.scss +0 -21
  315. package/src/Presentation/components/UI/Placeholders/LoaderComponent/LoaderComponent.tsx +0 -41
  316. package/src/Presentation/components/UI/svgs/ActiveSvg/ActiveSvg.scss +0 -3
  317. package/src/Presentation/components/UI/svgs/ActiveSvg/ActiveSvg.tsx +0 -41
  318. package/src/Presentation/components/UI/svgs/Icons/Actions/Add/Add.svg +0 -3
  319. package/src/Presentation/components/UI/svgs/Icons/Actions/Add/index.tsx +0 -22
  320. package/src/Presentation/components/UI/svgs/Icons/Actions/AddContact/Add contact.svg +0 -3
  321. package/src/Presentation/components/UI/svgs/Icons/Actions/AddContact/index.tsx +0 -22
  322. package/src/Presentation/components/UI/svgs/Icons/Actions/Archive/Archive.svg +0 -3
  323. package/src/Presentation/components/UI/svgs/Icons/Actions/Archive/index.tsx +0 -22
  324. package/src/Presentation/components/UI/svgs/Icons/Actions/Copy/Copy.svg +0 -3
  325. package/src/Presentation/components/UI/svgs/Icons/Actions/Copy/index.tsx +0 -22
  326. package/src/Presentation/components/UI/svgs/Icons/Actions/Delete/Delete.svg +0 -3
  327. package/src/Presentation/components/UI/svgs/Icons/Actions/Delete/index.tsx +0 -22
  328. package/src/Presentation/components/UI/svgs/Icons/Actions/Download/Download.svg +0 -3
  329. package/src/Presentation/components/UI/svgs/Icons/Actions/Download/index.tsx +0 -22
  330. package/src/Presentation/components/UI/svgs/Icons/Actions/Edit/Edit.svg +0 -3
  331. package/src/Presentation/components/UI/svgs/Icons/Actions/Edit/index.tsx +0 -22
  332. package/src/Presentation/components/UI/svgs/Icons/Actions/EditDots/EditDots.svg +0 -3
  333. package/src/Presentation/components/UI/svgs/Icons/Actions/EditDots/index.tsx +0 -22
  334. package/src/Presentation/components/UI/svgs/Icons/Actions/Emoji/Emoji.svg +0 -3
  335. package/src/Presentation/components/UI/svgs/Icons/Actions/Emoji/index.tsx +0 -22
  336. package/src/Presentation/components/UI/svgs/Icons/Actions/ForwardFilled/Forward filled.svg +0 -3
  337. package/src/Presentation/components/UI/svgs/Icons/Actions/ForwardFilled/index.tsx +0 -22
  338. package/src/Presentation/components/UI/svgs/Icons/Actions/Hungup/Hungup.svg +0 -3
  339. package/src/Presentation/components/UI/svgs/Icons/Actions/Hungup/index.tsx +0 -22
  340. package/src/Presentation/components/UI/svgs/Icons/Actions/IncomeCall/Income call.svg +0 -3
  341. package/src/Presentation/components/UI/svgs/Icons/Actions/IncomeCall/index.tsx +0 -22
  342. package/src/Presentation/components/UI/svgs/Icons/Actions/Like/Like.svg +0 -3
  343. package/src/Presentation/components/UI/svgs/Icons/Actions/Like/index.tsx +0 -22
  344. package/src/Presentation/components/UI/svgs/Icons/Actions/NewChat/New chat.svg +0 -3
  345. package/src/Presentation/components/UI/svgs/Icons/Actions/NewChat/index.tsx +0 -22
  346. package/src/Presentation/components/UI/svgs/Icons/Actions/OutcomeCall/Outcome call.svg +0 -3
  347. package/src/Presentation/components/UI/svgs/Icons/Actions/OutcomeCall/index.tsx +0 -22
  348. package/src/Presentation/components/UI/svgs/Icons/Actions/Phone/Phone.svg +0 -3
  349. package/src/Presentation/components/UI/svgs/Icons/Actions/Phone/index.tsx +0 -35
  350. package/src/Presentation/components/UI/svgs/Icons/Actions/PhoneFilled/Phone filled.svg +0 -3
  351. package/src/Presentation/components/UI/svgs/Icons/Actions/PhoneFilled/index.tsx +0 -22
  352. package/src/Presentation/components/UI/svgs/Icons/Actions/Remove/Remove.svg +0 -3
  353. package/src/Presentation/components/UI/svgs/Icons/Actions/Remove/index.tsx +0 -22
  354. package/src/Presentation/components/UI/svgs/Icons/Actions/Remove2/Remove2.svg +0 -3
  355. package/src/Presentation/components/UI/svgs/Icons/Actions/Remove2/index.tsx +0 -22
  356. package/src/Presentation/components/UI/svgs/Icons/Actions/ReplyFilled/Reply filled.svg +0 -3
  357. package/src/Presentation/components/UI/svgs/Icons/Actions/ReplyFilled/index.tsx +0 -22
  358. package/src/Presentation/components/UI/svgs/Icons/Actions/Send/Send.svg +0 -3
  359. package/src/Presentation/components/UI/svgs/Icons/Actions/Send/index.tsx +0 -38
  360. package/src/Presentation/components/UI/svgs/Icons/Actions/Share/Share.svg +0 -3
  361. package/src/Presentation/components/UI/svgs/Icons/Actions/Share/index.tsx +0 -22
  362. package/src/Presentation/components/UI/svgs/Icons/Actions/SwapCamera/Swap camera.svg +0 -3
  363. package/src/Presentation/components/UI/svgs/Icons/Actions/SwapCamera/index.tsx +0 -22
  364. package/src/Presentation/components/UI/svgs/Icons/Actions/Unarchive/Unarchive.svg +0 -3
  365. package/src/Presentation/components/UI/svgs/Icons/Actions/Unarchive/index.tsx +0 -22
  366. package/src/Presentation/components/UI/svgs/Icons/Actions/VideoIcon/Video.svg +0 -3
  367. package/src/Presentation/components/UI/svgs/Icons/Actions/VideoIcon/index.tsx +0 -22
  368. package/src/Presentation/components/UI/svgs/Icons/Actions/Voice/Voice.svg +0 -3
  369. package/src/Presentation/components/UI/svgs/Icons/Actions/Voice/index.tsx +0 -35
  370. package/src/Presentation/components/UI/svgs/Icons/Contents/Brodcast/Broadcast.svg +0 -7
  371. package/src/Presentation/components/UI/svgs/Icons/Contents/Brodcast/index.tsx +0 -38
  372. package/src/Presentation/components/UI/svgs/Icons/Contents/Chat/Chat.svg +0 -3
  373. package/src/Presentation/components/UI/svgs/Icons/Contents/Chat/index.tsx +0 -35
  374. package/src/Presentation/components/UI/svgs/Icons/Contents/ChatFilled/Chat filled.svg +0 -3
  375. package/src/Presentation/components/UI/svgs/Icons/Contents/ChatFilled/index.tsx +0 -22
  376. package/src/Presentation/components/UI/svgs/Icons/Contents/Conference/Conference.svg +0 -3
  377. package/src/Presentation/components/UI/svgs/Icons/Contents/Conference/index.tsx +0 -22
  378. package/src/Presentation/components/UI/svgs/Icons/Contents/Contact/Contact.svg +0 -3
  379. package/src/Presentation/components/UI/svgs/Icons/Contents/Contact/index.tsx +0 -22
  380. package/src/Presentation/components/UI/svgs/Icons/Contents/ContactFilled/Contact filled.svg +0 -3
  381. package/src/Presentation/components/UI/svgs/Icons/Contents/ContactFilled/index.tsx +0 -22
  382. package/src/Presentation/components/UI/svgs/Icons/Contents/GroupChat/Group chat.svg +0 -3
  383. package/src/Presentation/components/UI/svgs/Icons/Contents/GroupChat/index.tsx +0 -35
  384. package/src/Presentation/components/UI/svgs/Icons/Contents/Notifications/Notifications.svg +0 -3
  385. package/src/Presentation/components/UI/svgs/Icons/Contents/Notifications/index.tsx +0 -22
  386. package/src/Presentation/components/UI/svgs/Icons/Contents/PrivateChat/Private chat.svg +0 -3
  387. package/src/Presentation/components/UI/svgs/Icons/Contents/PrivateChat/index.tsx +0 -22
  388. package/src/Presentation/components/UI/svgs/Icons/Contents/PublicChannel/Public channel.svg +0 -7
  389. package/src/Presentation/components/UI/svgs/Icons/Contents/PublicChannel/index.tsx +0 -67
  390. package/src/Presentation/components/UI/svgs/Icons/Contents/Stream/Stream.svg +0 -3
  391. package/src/Presentation/components/UI/svgs/Icons/Contents/Stream/index.tsx +0 -22
  392. package/src/Presentation/components/UI/svgs/Icons/Contents/StreamFilled/Stream filled.svg +0 -3
  393. package/src/Presentation/components/UI/svgs/Icons/Contents/StreamFilled/index.tsx +0 -22
  394. package/src/Presentation/components/UI/svgs/Icons/Contents/User/User.svg +0 -3
  395. package/src/Presentation/components/UI/svgs/Icons/Contents/User/index.tsx +0 -35
  396. package/src/Presentation/components/UI/svgs/Icons/IconsCommonTypes.ts +0 -6
  397. package/src/Presentation/components/UI/svgs/Icons/Media/Attachment/Attachment.svg +0 -3
  398. package/src/Presentation/components/UI/svgs/Icons/Media/Attachment/index.tsx +0 -22
  399. package/src/Presentation/components/UI/svgs/Icons/Media/AudioFile/Audio file.svg +0 -3
  400. package/src/Presentation/components/UI/svgs/Icons/Media/AudioFile/index.tsx +0 -22
  401. package/src/Presentation/components/UI/svgs/Icons/Media/BrokenFile/Broken file.svg +0 -3
  402. package/src/Presentation/components/UI/svgs/Icons/Media/BrokenFile/index.tsx +0 -22
  403. package/src/Presentation/components/UI/svgs/Icons/Media/Camera/Camera.svg +0 -3
  404. package/src/Presentation/components/UI/svgs/Icons/Media/Camera/index.tsx +0 -22
  405. package/src/Presentation/components/UI/svgs/Icons/Media/GifFile/GIF file.svg +0 -3
  406. package/src/Presentation/components/UI/svgs/Icons/Media/GifFile/index.tsx +0 -22
  407. package/src/Presentation/components/UI/svgs/Icons/Media/ImageEmpty/Image.svg +0 -3
  408. package/src/Presentation/components/UI/svgs/Icons/Media/ImageEmpty/index.tsx +0 -22
  409. package/src/Presentation/components/UI/svgs/Icons/Media/ImageFile/File.svg +0 -3
  410. package/src/Presentation/components/UI/svgs/Icons/Media/ImageFile/index.tsx +0 -35
  411. package/src/Presentation/components/UI/svgs/Icons/Media/ImageFilled/Image filled.svg +0 -3
  412. package/src/Presentation/components/UI/svgs/Icons/Media/ImageFilled/index.tsx +0 -22
  413. package/src/Presentation/components/UI/svgs/Icons/Media/LinkWeb/Link.svg +0 -3
  414. package/src/Presentation/components/UI/svgs/Icons/Media/LinkWeb/index.tsx +0 -22
  415. package/src/Presentation/components/UI/svgs/Icons/Media/Location/Location.svg +0 -4
  416. package/src/Presentation/components/UI/svgs/Icons/Media/Location/index.tsx +0 -26
  417. package/src/Presentation/components/UI/svgs/Icons/Media/TextDocument/Text document.svg +0 -3
  418. package/src/Presentation/components/UI/svgs/Icons/Media/TextDocument/index.tsx +0 -22
  419. package/src/Presentation/components/UI/svgs/Icons/Media/VideoFile/Video file.svg +0 -3
  420. package/src/Presentation/components/UI/svgs/Icons/Media/VideoFile/index.tsx +0 -22
  421. package/src/Presentation/components/UI/svgs/Icons/Moderation/Admin/Admin.svg +0 -3
  422. package/src/Presentation/components/UI/svgs/Icons/Moderation/Admin/index.tsx +0 -22
  423. package/src/Presentation/components/UI/svgs/Icons/Moderation/Banned/Banned.svg +0 -3
  424. package/src/Presentation/components/UI/svgs/Icons/Moderation/Banned/index.tsx +0 -22
  425. package/src/Presentation/components/UI/svgs/Icons/Moderation/Freeze/Freeze.svg +0 -3
  426. package/src/Presentation/components/UI/svgs/Icons/Moderation/Freeze/index.tsx +0 -22
  427. package/src/Presentation/components/UI/svgs/Icons/Moderation/Moderations/Moderations.svg +0 -3
  428. package/src/Presentation/components/UI/svgs/Icons/Moderation/Moderations/index.tsx +0 -22
  429. package/src/Presentation/components/UI/svgs/Icons/Moderation/Muted/Muted.svg +0 -3
  430. package/src/Presentation/components/UI/svgs/Icons/Moderation/Muted/index.tsx +0 -22
  431. package/src/Presentation/components/UI/svgs/Icons/Navigation/ArrowLeft/Arrow left.svg +0 -3
  432. package/src/Presentation/components/UI/svgs/Icons/Navigation/ArrowLeft/index.tsx +0 -22
  433. package/src/Presentation/components/UI/svgs/Icons/Navigation/ArrowRight/Arrow right.svg +0 -3
  434. package/src/Presentation/components/UI/svgs/Icons/Navigation/ArrowRight/index.tsx +0 -22
  435. package/src/Presentation/components/UI/svgs/Icons/Navigation/Back/Back.svg +0 -3
  436. package/src/Presentation/components/UI/svgs/Icons/Navigation/Back/index.tsx +0 -22
  437. package/src/Presentation/components/UI/svgs/Icons/Navigation/Close/Close.svg +0 -3
  438. package/src/Presentation/components/UI/svgs/Icons/Navigation/Close/index.tsx +0 -35
  439. package/src/Presentation/components/UI/svgs/Icons/Navigation/Down/Down.svg +0 -3
  440. package/src/Presentation/components/UI/svgs/Icons/Navigation/Down/index.tsx +0 -35
  441. package/src/Presentation/components/UI/svgs/Icons/Navigation/Leave/Leave.svg +0 -3
  442. package/src/Presentation/components/UI/svgs/Icons/Navigation/Leave/index.tsx +0 -35
  443. package/src/Presentation/components/UI/svgs/Icons/Navigation/More/More.svg +0 -7
  444. package/src/Presentation/components/UI/svgs/Icons/Navigation/More/index.tsx +0 -22
  445. package/src/Presentation/components/UI/svgs/Icons/Navigation/Next/Next.svg +0 -3
  446. package/src/Presentation/components/UI/svgs/Icons/Navigation/Next/index.tsx +0 -35
  447. package/src/Presentation/components/UI/svgs/Icons/Navigation/Plus/Plus.svg +0 -3
  448. package/src/Presentation/components/UI/svgs/Icons/Navigation/Plus/index.tsx +0 -22
  449. package/src/Presentation/components/UI/svgs/Icons/Navigation/Refresh/Refresh.svg +0 -3
  450. package/src/Presentation/components/UI/svgs/Icons/Navigation/Refresh/index.tsx +0 -36
  451. package/src/Presentation/components/UI/svgs/Icons/Navigation/Search/Search.svg +0 -3
  452. package/src/Presentation/components/UI/svgs/Icons/Navigation/Search/index.tsx +0 -35
  453. package/src/Presentation/components/UI/svgs/Icons/Navigation/Settings/Settings.svg +0 -3
  454. package/src/Presentation/components/UI/svgs/Icons/Navigation/Settings/index.tsx +0 -22
  455. package/src/Presentation/components/UI/svgs/Icons/Navigation/SettingsField/Settings filled.svg +0 -3
  456. package/src/Presentation/components/UI/svgs/Icons/Navigation/SettingsField/index.tsx +0 -22
  457. package/src/Presentation/components/UI/svgs/Icons/Status/Error/Error.svg +0 -3
  458. package/src/Presentation/components/UI/svgs/Icons/Status/Error/index.tsx +0 -36
  459. package/src/Presentation/components/UI/svgs/Icons/Status/Help/Help.svg +0 -3
  460. package/src/Presentation/components/UI/svgs/Icons/Status/Help/index.tsx +0 -22
  461. package/src/Presentation/components/UI/svgs/Icons/Status/Information/Information.svg +0 -3
  462. package/src/Presentation/components/UI/svgs/Icons/Status/Information/index.tsx +0 -22
  463. package/src/Presentation/components/UI/svgs/Icons/Status/InformationFill/index.tsx +0 -35
  464. package/src/Presentation/components/UI/svgs/Icons/Status/Loader/Loader.svg +0 -3
  465. package/src/Presentation/components/UI/svgs/Icons/Status/Loader/index.tsx +0 -22
  466. package/src/Presentation/components/UI/svgs/Icons/Status/Mention/Mention.svg +0 -3
  467. package/src/Presentation/components/UI/svgs/Icons/Status/Mention/index.tsx +0 -22
  468. package/src/Presentation/components/UI/svgs/Icons/Status/Sent/Sent.svg +0 -3
  469. package/src/Presentation/components/UI/svgs/Icons/Status/Sent/index.tsx +0 -22
  470. package/src/Presentation/components/UI/svgs/Icons/Status/ViewedDelivered/Viewed_Delivered.svg +0 -3
  471. package/src/Presentation/components/UI/svgs/Icons/Status/ViewedDelivered/index.tsx +0 -38
  472. package/src/Presentation/components/UI/svgs/Icons/Toggle/CameraOff/Camera off.svg +0 -3
  473. package/src/Presentation/components/UI/svgs/Icons/Toggle/CameraOff/index.tsx +0 -22
  474. package/src/Presentation/components/UI/svgs/Icons/Toggle/CameraOn/Camera on.svg +0 -3
  475. package/src/Presentation/components/UI/svgs/Icons/Toggle/CameraOn/index.tsx +0 -22
  476. package/src/Presentation/components/UI/svgs/Icons/Toggle/CheckOff/Check off.svg +0 -3
  477. package/src/Presentation/components/UI/svgs/Icons/Toggle/CheckOff/index.tsx +0 -22
  478. package/src/Presentation/components/UI/svgs/Icons/Toggle/CheckOn/Check on.svg +0 -3
  479. package/src/Presentation/components/UI/svgs/Icons/Toggle/CheckOn/index.tsx +0 -24
  480. package/src/Presentation/components/UI/svgs/Icons/Toggle/Favourite/Favourite.svg +0 -3
  481. package/src/Presentation/components/UI/svgs/Icons/Toggle/Favourite/index.tsx +0 -22
  482. package/src/Presentation/components/UI/svgs/Icons/Toggle/FavouriteFilled/Favourite filled.svg +0 -3
  483. package/src/Presentation/components/UI/svgs/Icons/Toggle/FavouriteFilled/index.tsx +0 -22
  484. package/src/Presentation/components/UI/svgs/Icons/Toggle/FullScreen/Full screen.svg +0 -3
  485. package/src/Presentation/components/UI/svgs/Icons/Toggle/FullScreen/inex.tsx +0 -22
  486. package/src/Presentation/components/UI/svgs/Icons/Toggle/Hide/Hide.svg +0 -3
  487. package/src/Presentation/components/UI/svgs/Icons/Toggle/Hide/index.tsx +0 -22
  488. package/src/Presentation/components/UI/svgs/Icons/Toggle/ImagePlay/Play.svg +0 -3
  489. package/src/Presentation/components/UI/svgs/Icons/Toggle/ImagePlay/index.tsx +0 -22
  490. package/src/Presentation/components/UI/svgs/Icons/Toggle/Louder/Louder.svg +0 -3
  491. package/src/Presentation/components/UI/svgs/Icons/Toggle/Louder/index.tsx +0 -22
  492. package/src/Presentation/components/UI/svgs/Icons/Toggle/MicOff/Mic off.svg +0 -3
  493. package/src/Presentation/components/UI/svgs/Icons/Toggle/MicOff/index.tsx +0 -22
  494. package/src/Presentation/components/UI/svgs/Icons/Toggle/MicOn/Mic on.svg +0 -4
  495. package/src/Presentation/components/UI/svgs/Icons/Toggle/MicOn/index.tsx +0 -26
  496. package/src/Presentation/components/UI/svgs/Icons/Toggle/Minimize/Minimize.svg +0 -3
  497. package/src/Presentation/components/UI/svgs/Icons/Toggle/Minimize/index.tsx +0 -22
  498. package/src/Presentation/components/UI/svgs/Icons/Toggle/NotifyOff/Notify off.svg +0 -3
  499. package/src/Presentation/components/UI/svgs/Icons/Toggle/NotifyOff/index.tsx +0 -35
  500. package/src/Presentation/components/UI/svgs/Icons/Toggle/NotifyOn/Notify on.svg +0 -3
  501. package/src/Presentation/components/UI/svgs/Icons/Toggle/NotifyOn/index.tsx +0 -35
  502. package/src/Presentation/components/UI/svgs/Icons/Toggle/Pause/Pause.svg +0 -3
  503. package/src/Presentation/components/UI/svgs/Icons/Toggle/Pause/index.tsx +0 -22
  504. package/src/Presentation/components/UI/svgs/Icons/Toggle/Quite/Quite.svg +0 -3
  505. package/src/Presentation/components/UI/svgs/Icons/Toggle/Quite/index.tsx +0 -22
  506. package/src/Presentation/components/UI/svgs/Icons/Toggle/Record/Record.svg +0 -3
  507. package/src/Presentation/components/UI/svgs/Icons/Toggle/Record/index.tsx +0 -22
  508. package/src/Presentation/components/UI/svgs/Icons/Toggle/Screenshare/Screenshare.svg +0 -3
  509. package/src/Presentation/components/UI/svgs/Icons/Toggle/Screenshare/index.tsx +0 -22
  510. package/src/Presentation/components/UI/svgs/Icons/Toggle/Show/Show.svg +0 -3
  511. package/src/Presentation/components/UI/svgs/Icons/Toggle/Show/index.tsx +0 -22
  512. package/src/Presentation/components/UI/svgs/Icons/Toggle/Speaker/Speaker.svg +0 -3
  513. package/src/Presentation/components/UI/svgs/Icons/Toggle/Speaker/index.tsx +0 -22
  514. package/src/Presentation/components/UI/svgs/Icons/Toggle/SpeakerOff/Speaker off.svg +0 -3
  515. package/src/Presentation/components/UI/svgs/Icons/Toggle/SpeakerOff/index.tsx +0 -22
  516. package/src/Presentation/components/UI/svgs/Icons/Toggle/StopRecord/Stop record.svg +0 -3
  517. package/src/Presentation/components/UI/svgs/Icons/Toggle/StopRecord/index.tsx +0 -22
  518. package/src/Presentation/components/UI/svgs/Icons/Toggle/StopShare/Stop share.svg +0 -3
  519. package/src/Presentation/components/UI/svgs/Icons/Toggle/StopShare/index.tsx +0 -22
  520. package/src/Presentation/components/containers/ColumnContainer/ColumnContainer.scss +0 -6
  521. package/src/Presentation/components/containers/ColumnContainer/ColumnContainer.tsx +0 -24
  522. package/src/Presentation/components/containers/RowCenterContainer/RowCenterContainer.scss +0 -45
  523. package/src/Presentation/components/containers/RowCenterContainer/RowCenterContainer.tsx +0 -95
  524. package/src/Presentation/components/containers/RowLeftContainer/RowLeftContainer.scss +0 -45
  525. package/src/Presentation/components/containers/RowLeftContainer/RowLeftContainer.tsx +0 -97
  526. package/src/Presentation/components/containers/RowRightContainer/RowRightContainer.scss +0 -46
  527. package/src/Presentation/components/containers/RowRightContainer/RowRightContainer.tsx +0 -97
  528. package/src/Presentation/components/containers/ScrollableContainer/ScrollableContainer.scss +0 -46
  529. package/src/Presentation/components/containers/ScrollableContainer/ScrollableContainer.tsx +0 -85
  530. package/src/Presentation/components/layouts/Desktop/DesktopLayout.scss +0 -31
  531. package/src/Presentation/components/layouts/Desktop/DesktopLayout.tsx +0 -31
  532. package/src/Presentation/components/layouts/Desktop/QuickBloxUIKitDesktopLayout.tsx +0 -217
  533. package/src/Presentation/components/layouts/LayoutCommonTypes.ts +0 -7
  534. package/src/Presentation/components/layouts/TestStage/LoginView/Login.scss +0 -71
  535. package/src/Presentation/components/layouts/TestStage/LoginView/Login.tsx +0 -116
  536. package/src/Presentation/components/layouts/TestStage/TestStageMarkup.scss +0 -24
  537. package/src/Presentation/components/layouts/TestStage/TestStageMarkup.tsx +0 -1109
  538. package/src/Presentation/components/providers/ModalContextProvider/Modal.scss +0 -71
  539. package/src/Presentation/components/providers/ModalContextProvider/Modal.tsx +0 -131
  540. package/src/Presentation/components/providers/ModalContextProvider/ModalContextProvider.tsx +0 -38
  541. package/src/Presentation/components/providers/ModalContextProvider/useModal.ts +0 -39
  542. package/src/Presentation/components/providers/ProviderProps.ts +0 -5
  543. package/src/Presentation/components/providers/QuickBloxUIKitProvider/QuickBloxUIKitProvider.tsx +0 -255
  544. package/src/Presentation/components/providers/QuickBloxUIKitProvider/useEventMessagesRepository.ts +0 -10
  545. package/src/Presentation/components/providers/QuickBloxUIKitProvider/useQBConnection.ts +0 -38
  546. package/src/Presentation/components/providers/QuickBloxUIKitProvider/useQbDataContext.ts +0 -82
  547. package/src/QBconfig.ts +0 -33
  548. package/src/index-ui.ts +0 -58
  549. package/src/index.scss +0 -74
  550. package/src/index.tsx +0 -25
  551. package/src/logo.svg +0 -1
  552. package/src/qb-api-calls/index.ts +0 -543
  553. package/src/react-app-env.d.ts +0 -1
  554. package/src/setupTests.ts +0 -5
  555. package/src/utils/DateTimeFormatter.ts +0 -35
  556. package/src/utils/parse.ts +0 -74
  557. package/tsconfig.json +0 -33
  558. package/typedoc.json +0 -4
  559. package/webpack.config.js +0 -56
@@ -1,253 +0,0 @@
1
- import { IMapper } from './IMapper';
2
- import {
3
- INCORRECT_DATA_MAPPER_DTO_EXCEPTION_CODE,
4
- INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,
5
- MapperDTOException,
6
- UNEXPECTED_MAPPER_DTO_EXCEPTION_EXCEPTION_CODE,
7
- UNEXPECTED_MAPPER_DTO_EXCEPTION_MESSAGE,
8
- } from '../source/exception/MapperDTOException';
9
- import { LocalFileDTO } from '../dto/file/LocalFileDTO';
10
- import { FileEntity } from '../../Domain/entity/FileEntity';
11
-
12
- type DtoValidator<T> = {
13
- [key in keyof T]: (v: unknown) => v is T[key];
14
- };
15
-
16
- export class FileLocalDTOMapper implements IMapper {
17
- // eslint-disable-next-line class-methods-use-this
18
- fromEntity<TArg, TResult>(entity: TArg): Promise<TResult> {
19
- const fileDTO: LocalFileDTO = new LocalFileDTO();
20
-
21
- const fileEntity: FileEntity = entity as FileEntity;
22
-
23
- if (fileEntity === null || fileEntity === undefined) {
24
- throw new MapperDTOException(
25
- UNEXPECTED_MAPPER_DTO_EXCEPTION_MESSAGE,
26
- UNEXPECTED_MAPPER_DTO_EXCEPTION_EXCEPTION_CODE,
27
- 'entity is null or undefined',
28
- );
29
- }
30
-
31
- FileLocalDTOMapper.validateEntity(fileEntity);
32
-
33
- fileDTO.id = fileEntity.id?.toString() || '';
34
-
35
- fileDTO.type = fileEntity.type?.toString() || '';
36
-
37
- fileDTO.uid = fileEntity.uid?.toString() || '';
38
-
39
- fileDTO.url = fileEntity.url || '';
40
-
41
- fileDTO.name = fileEntity.name || '';
42
-
43
- fileDTO.size = fileEntity.size || 0;
44
-
45
- return Promise.resolve(fileDTO as TResult);
46
- }
47
-
48
- // eslint-disable-next-line class-methods-use-this
49
- toEntity<TArg, TResult>(data: TArg): Promise<TResult> {
50
- const fileDTO = data as unknown as LocalFileDTO;
51
-
52
- FileLocalDTOMapper.validateLocalDTO(fileDTO);
53
-
54
- const fileEntity: FileEntity = FileLocalDTOMapper.createDefaultFileEntity();
55
-
56
- fileEntity.id = parseInt(fileDTO.id, 10);
57
-
58
- fileEntity.type = fileDTO.type;
59
-
60
- fileEntity.uid = fileDTO.uid;
61
-
62
- fileEntity.url = fileDTO.url;
63
-
64
- fileEntity.name = fileDTO.name;
65
-
66
- fileEntity.size = fileDTO.size;
67
-
68
- return Promise.resolve(fileEntity as TResult);
69
- }
70
-
71
- private static validateEntity(fileEntity: FileEntity) {
72
- const fileEntityValidator: DtoValidator<FileEntity> = {
73
- id(v: unknown): v is FileEntity['id'] {
74
- const { id } = v as FileEntity;
75
- const result = (id as unknown as string) || '';
76
-
77
- return result.length >= 0;
78
- },
79
- name(v: unknown): v is FileEntity['name'] {
80
- const { name } = v as FileEntity;
81
- const result = (name as unknown as string) || '';
82
-
83
- // return name !== undefined && name !== null && name.length > 0;
84
- return result.length >= 0;
85
- },
86
- size(v: unknown): v is FileEntity['size'] {
87
- const { size } = v as FileEntity;
88
- const result = (size as unknown as string) || '';
89
-
90
- return result.length >= 0;
91
- },
92
- type(v: unknown): v is FileEntity['type'] {
93
- const { type } = v as FileEntity;
94
- const result = (type as unknown as string) || '';
95
-
96
- return result.length >= 0;
97
- },
98
- uid(v: unknown): v is FileEntity['uid'] {
99
- const { uid } = v as FileEntity;
100
-
101
- return uid !== undefined && uid !== null;
102
- },
103
- url(v: unknown): v is FileEntity['url'] {
104
- const { url } = v as FileEntity;
105
- const result = (url as unknown as string) || '';
106
-
107
- return result.length >= 0;
108
- },
109
- };
110
-
111
- // if (!fileEntityValidator.id(fileEntity))
112
- // throw new MapperDTOException(
113
- // INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,
114
- // INCORRECT_DATA_MAPPER_DTO_EXCEPTION_CODE,
115
- // 'field {id} does not exists or empty',
116
- // );
117
- // if (!fileEntityValidator.name(fileEntity))
118
- // throw new MapperDTOException(
119
- // INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,
120
- // INCORRECT_DATA_MAPPER_DTO_EXCEPTION_CODE,
121
- // 'field {name} does not exist or empty',
122
- // );
123
- // if (!fileEntityValidator.size(fileEntity))
124
- // throw new MapperDTOException(
125
- // INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,
126
- // INCORRECT_DATA_MAPPER_DTO_EXCEPTION_CODE,
127
- // 'field {size} does not exists or empty',
128
- // );
129
- // if (!fileEntityValidator.type(fileEntity))
130
- // throw new MapperDTOException(
131
- // INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,
132
- // INCORRECT_DATA_MAPPER_DTO_EXCEPTION_CODE,
133
- // 'field {type} does not exist or empty',
134
- // );
135
- if (!fileEntityValidator.uid(fileEntity))
136
- throw new MapperDTOException(
137
- INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,
138
- INCORRECT_DATA_MAPPER_DTO_EXCEPTION_CODE,
139
- 'field {uid} does not exists or empty',
140
- );
141
- // if (!fileEntityValidator.url(fileEntity))
142
- // throw new MapperDTOException(
143
- // INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,
144
- // INCORRECT_DATA_MAPPER_DTO_EXCEPTION_CODE,
145
- // 'field {url} does not exist or empty',
146
- // );
147
-
148
- return Promise.resolve();
149
- }
150
-
151
- private static createDefaultFileEntity(): FileEntity {
152
- return {
153
- id: 0,
154
- name: '',
155
- size: 0,
156
- type: undefined,
157
- uid: '0',
158
- url: '',
159
- };
160
- }
161
-
162
- private static validateLocalDTO(fileDTO: LocalFileDTO) {
163
- const dtoValidator: DtoValidator<LocalFileDTO> = {
164
- data(v: unknown): v is LocalFileDTO['data'] {
165
- const { data } = v as LocalFileDTO;
166
-
167
- return data !== undefined && data !== null;
168
- },
169
- id(v: unknown): v is LocalFileDTO['id'] {
170
- const { id } = v as LocalFileDTO;
171
-
172
- return id !== undefined && id !== null;
173
- },
174
- name(v: unknown): v is LocalFileDTO['name'] {
175
- const { name } = v as LocalFileDTO;
176
-
177
- return name !== undefined && name !== null && name.length > 0;
178
- },
179
- size(v: unknown): v is LocalFileDTO['size'] {
180
- const { size } = v as LocalFileDTO;
181
-
182
- return size !== undefined && size !== null;
183
- },
184
- uid(v: unknown): v is LocalFileDTO['uid'] {
185
- const { uid } = v as LocalFileDTO;
186
-
187
- return uid !== undefined && uid !== null;
188
- },
189
- url(v: unknown): v is LocalFileDTO['url'] {
190
- const { url } = v as LocalFileDTO;
191
-
192
- return url !== undefined;
193
- },
194
- type(v: unknown): v is LocalFileDTO['type'] {
195
- const { type } = v as LocalFileDTO;
196
- const result = (type as unknown as string) || '';
197
-
198
- return result.length >= 0;
199
- },
200
- };
201
-
202
- if (!dtoValidator.id(fileDTO))
203
- throw new MapperDTOException(
204
- INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,
205
- INCORRECT_DATA_MAPPER_DTO_EXCEPTION_CODE,
206
- 'field {id} does not exists or empty in DTO',
207
- );
208
-
209
- if (!dtoValidator.name(fileDTO))
210
- throw new MapperDTOException(
211
- INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,
212
- INCORRECT_DATA_MAPPER_DTO_EXCEPTION_CODE,
213
- 'field {name} does not exist or empty in DTO',
214
- );
215
-
216
- if (!dtoValidator.data(fileDTO))
217
- throw new MapperDTOException(
218
- INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,
219
- INCORRECT_DATA_MAPPER_DTO_EXCEPTION_CODE,
220
- 'field {data} does not exists or empty in DTO',
221
- );
222
-
223
- if (!dtoValidator.url(fileDTO))
224
- throw new MapperDTOException(
225
- INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,
226
- INCORRECT_DATA_MAPPER_DTO_EXCEPTION_CODE,
227
- 'field {url} does not exist or empty in DTO',
228
- );
229
-
230
- if (!dtoValidator.size(fileDTO))
231
- throw new MapperDTOException(
232
- INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,
233
- INCORRECT_DATA_MAPPER_DTO_EXCEPTION_CODE,
234
- 'field {size} does not exists or empty in DTO',
235
- );
236
-
237
- if (!dtoValidator.uid(fileDTO))
238
- throw new MapperDTOException(
239
- INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,
240
- INCORRECT_DATA_MAPPER_DTO_EXCEPTION_CODE,
241
- 'field {uid} does not exist or empty in DTO',
242
- );
243
-
244
- // if (!dtoValidator.type(fileDTO))
245
- // throw new MapperDTOException(
246
- // INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,
247
- // INCORRECT_DATA_MAPPER_DTO_EXCEPTION_CODE,
248
- // 'field {type} does not exist or empty in DTO',
249
- // );
250
-
251
- return Promise.resolve();
252
- }
253
- }
@@ -1,265 +0,0 @@
1
- import { IMapper } from './IMapper';
2
- import {
3
- INCORRECT_DATA_MAPPER_DTO_EXCEPTION_CODE,
4
- INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,
5
- MapperDTOException,
6
- UNEXPECTED_MAPPER_DTO_EXCEPTION_EXCEPTION_CODE,
7
- UNEXPECTED_MAPPER_DTO_EXCEPTION_MESSAGE,
8
- } from '../source/exception/MapperDTOException';
9
- import { FileEntity } from '../../Domain/entity/FileEntity';
10
- import { RemoteFileDTO } from '../dto/file/RemoteFileDTO';
11
- import { LocalFileDTO } from '../dto/file/LocalFileDTO';
12
-
13
- type DtoValidator<T> = {
14
- [key in keyof T]: (v: unknown) => v is T[key];
15
- };
16
-
17
- export class FileRemoteDTOMapper implements IMapper {
18
- // eslint-disable-next-line class-methods-use-this
19
- fromEntity<TArg, TResult>(entity: TArg): Promise<TResult> {
20
- const fileEntity: FileEntity = entity as FileEntity;
21
-
22
- if (fileEntity === null || fileEntity === undefined) {
23
- throw new MapperDTOException(
24
- UNEXPECTED_MAPPER_DTO_EXCEPTION_MESSAGE,
25
- UNEXPECTED_MAPPER_DTO_EXCEPTION_EXCEPTION_CODE,
26
- 'entity is null or undefined',
27
- );
28
- }
29
-
30
- const fileDTO: RemoteFileDTO = new RemoteFileDTO();
31
-
32
- FileRemoteDTOMapper.validateEntity(fileEntity);
33
-
34
- fileDTO.id = fileEntity.id?.toString() || '';
35
-
36
- fileDTO.type = fileEntity.type?.toString() || '';
37
-
38
- fileDTO.uid = fileEntity.uid?.toString() || '';
39
-
40
- fileDTO.url = fileEntity.url || '';
41
-
42
- fileDTO.name = fileEntity.name || '';
43
-
44
- fileDTO.size = fileEntity.size || 0;
45
-
46
- fileDTO.data = fileEntity.data || '';
47
-
48
- return Promise.resolve(fileDTO as TResult);
49
- }
50
-
51
- // eslint-disable-next-line class-methods-use-this
52
- toEntity<TArg, TResult>(data: TArg): Promise<TResult> {
53
- const fileDTO = data as unknown as RemoteFileDTO;
54
-
55
- if (fileDTO === null || fileDTO === undefined) {
56
- throw new MapperDTOException(
57
- UNEXPECTED_MAPPER_DTO_EXCEPTION_MESSAGE,
58
- UNEXPECTED_MAPPER_DTO_EXCEPTION_EXCEPTION_CODE,
59
- 'fileDTO is null or undefined',
60
- );
61
- }
62
-
63
- FileRemoteDTOMapper.validateDTO(fileDTO);
64
-
65
- const fileEntity: FileEntity =
66
- FileRemoteDTOMapper.createDefaultFileEntity();
67
-
68
- fileEntity.id = parseInt(fileDTO.id, 10);
69
-
70
- fileEntity.type = fileDTO.type;
71
-
72
- fileEntity.uid = fileDTO.uid;
73
-
74
- fileEntity.url = fileDTO.url;
75
-
76
- fileEntity.name = fileDTO.name;
77
-
78
- fileEntity.size = fileDTO.size;
79
-
80
- return Promise.resolve(fileEntity as TResult);
81
- }
82
-
83
- private static createDefaultFileEntity(): FileEntity {
84
- return {
85
- id: 0,
86
- name: '',
87
- size: 0,
88
- type: undefined,
89
- uid: '0',
90
- url: '',
91
- };
92
- }
93
-
94
- private static validateEntity(fileEntity: FileEntity) {
95
- const fileEntityValidator: DtoValidator<FileEntity> = {
96
- id(v: unknown): v is FileEntity['id'] {
97
- const { id } = v as FileEntity;
98
- const result = (id as unknown as string) || '';
99
-
100
- return result.length >= 0;
101
- },
102
- name(v: unknown): v is FileEntity['name'] {
103
- const { name } = v as FileEntity;
104
- const result = (name as unknown as string) || '';
105
-
106
- // return name !== undefined && name !== null && name.length > 0;
107
- return result.length >= 0;
108
- },
109
- size(v: unknown): v is FileEntity['size'] {
110
- const { size } = v as FileEntity;
111
- const result = (size as unknown as string) || '';
112
-
113
- return result.length >= 0;
114
- },
115
- type(v: unknown): v is FileEntity['type'] {
116
- const { type } = v as FileEntity;
117
- const result = (type as unknown as string) || '';
118
-
119
- return result.length >= 0;
120
- },
121
- uid(v: unknown): v is FileEntity['uid'] {
122
- const { uid } = v as FileEntity;
123
-
124
- return uid !== undefined && uid !== null;
125
- },
126
- url(v: unknown): v is FileEntity['url'] {
127
- const { url } = v as FileEntity;
128
- const result = (url as unknown as string) || '';
129
-
130
- return result.length >= 0;
131
- },
132
- };
133
-
134
- // if (!fileEntityValidator.id(fileEntity))
135
- // throw new MapperDTOException(
136
- // INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,
137
- // INCORRECT_DATA_MAPPER_DTO_EXCEPTION_CODE,
138
- // 'field {id} does not exists or empty',
139
- // );
140
- // if (!fileEntityValidator.name(fileEntity))
141
- // throw new MapperDTOException(
142
- // INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,
143
- // INCORRECT_DATA_MAPPER_DTO_EXCEPTION_CODE,
144
- // 'field {name} does not exist or empty',
145
- // );
146
- // if (!fileEntityValidator.size(fileEntity))
147
- // throw new MapperDTOException(
148
- // INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,
149
- // INCORRECT_DATA_MAPPER_DTO_EXCEPTION_CODE,
150
- // 'field {size} does not exists or empty',
151
- // );
152
- // if (!fileEntityValidator.type(fileEntity))
153
- // throw new MapperDTOException(
154
- // INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,
155
- // INCORRECT_DATA_MAPPER_DTO_EXCEPTION_CODE,
156
- // 'field {type} does not exist or empty',
157
- // );
158
- if (!fileEntityValidator.uid(fileEntity))
159
- throw new MapperDTOException(
160
- INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,
161
- INCORRECT_DATA_MAPPER_DTO_EXCEPTION_CODE,
162
- 'field {uid} does not exists or empty',
163
- );
164
- // if (!fileEntityValidator.url(fileEntity))
165
- // throw new MapperDTOException(
166
- // INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,
167
- // INCORRECT_DATA_MAPPER_DTO_EXCEPTION_CODE,
168
- // 'field {url} does not exist or empty',
169
- // );
170
-
171
- return Promise.resolve();
172
- }
173
-
174
- private static validateDTO(fileDTO: RemoteFileDTO) {
175
- const dtoValidator: DtoValidator<LocalFileDTO> = {
176
- data(v: unknown): v is LocalFileDTO['data'] {
177
- const { data } = v as LocalFileDTO;
178
-
179
- return data !== undefined && data !== null;
180
- },
181
- id(v: unknown): v is LocalFileDTO['id'] {
182
- const { id } = v as LocalFileDTO;
183
-
184
- return id !== undefined && id !== null;
185
- },
186
- name(v: unknown): v is LocalFileDTO['name'] {
187
- const { name } = v as LocalFileDTO;
188
-
189
- return name !== undefined && name !== null && name.length > 0;
190
- },
191
- size(v: unknown): v is LocalFileDTO['size'] {
192
- const { size } = v as LocalFileDTO;
193
-
194
- return size !== undefined && size !== null;
195
- },
196
- uid(v: unknown): v is LocalFileDTO['uid'] {
197
- const { uid } = v as LocalFileDTO;
198
-
199
- return uid !== undefined && uid !== null;
200
- },
201
- url(v: unknown): v is LocalFileDTO['url'] {
202
- const { url } = v as LocalFileDTO;
203
-
204
- return url !== undefined;
205
- },
206
- type(v: unknown): v is LocalFileDTO['type'] {
207
- const { type } = v as LocalFileDTO;
208
- const result = (type as unknown as string) || '';
209
-
210
- return result.length >= 0;
211
- },
212
- };
213
-
214
- if (!dtoValidator.id(fileDTO))
215
- throw new MapperDTOException(
216
- INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,
217
- INCORRECT_DATA_MAPPER_DTO_EXCEPTION_CODE,
218
- 'field {id} does not exists or empty in DTO',
219
- );
220
-
221
- if (!dtoValidator.name(fileDTO))
222
- throw new MapperDTOException(
223
- INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,
224
- INCORRECT_DATA_MAPPER_DTO_EXCEPTION_CODE,
225
- 'field {name} does not exist or empty in DTO',
226
- );
227
-
228
- if (!dtoValidator.data(fileDTO))
229
- throw new MapperDTOException(
230
- INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,
231
- INCORRECT_DATA_MAPPER_DTO_EXCEPTION_CODE,
232
- 'field {data} does not exists or empty in DTO',
233
- );
234
-
235
- if (!dtoValidator.url(fileDTO))
236
- throw new MapperDTOException(
237
- INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,
238
- INCORRECT_DATA_MAPPER_DTO_EXCEPTION_CODE,
239
- 'field {url} does not exist or empty in DTO',
240
- );
241
-
242
- if (!dtoValidator.size(fileDTO))
243
- throw new MapperDTOException(
244
- INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,
245
- INCORRECT_DATA_MAPPER_DTO_EXCEPTION_CODE,
246
- 'field {size} does not exists or empty in DTO',
247
- );
248
-
249
- if (!dtoValidator.uid(fileDTO))
250
- throw new MapperDTOException(
251
- INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,
252
- INCORRECT_DATA_MAPPER_DTO_EXCEPTION_CODE,
253
- 'field {uid} does not exist or empty in DTO',
254
- );
255
-
256
- // if (!dtoValidator.type(fileDTO))
257
- // throw new MapperDTOException(
258
- // INCORRECT_DATA_MAPPER_DTO_EXCEPTION_MESSAGE,
259
- // INCORRECT_DATA_MAPPER_DTO_EXCEPTION_CODE,
260
- // 'field {type} does not exist or empty in DTO',
261
- // );
262
-
263
- return Promise.resolve();
264
- }
265
- }
@@ -1,14 +0,0 @@
1
- /*
2
- interface Mapper {
3
- @Throws(Exception::class)
4
- fun <TArg, TArg> fromEntity(entity: TArg): TArg
5
-
6
- @Throws(Exception::class)
7
- fun <TArg, TArg> toEntity(data: TArg): TArg
8
- }
9
- */
10
- // TODO: add MappingException
11
- export interface IMapper {
12
- fromEntity<TArg, TResult>(entity: TArg): Promise<TResult>;
13
- toEntity<TArg, TResult>(entity: TArg): Promise<TResult>;
14
- }