quickblox-react-ui-kit 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.prettierignore +4 -0
- package/.prettierrc +8 -0
- package/LICENSE.md +19 -0
- package/README.md +255 -0
- package/dist/App.d.ts +4 -0
- package/dist/CommonTypes/FunctionResult.d.ts +4 -0
- package/dist/Data/Stubs.d.ts +29 -0
- package/dist/Data/dto/dialog/LocalDialogDTO.d.ts +16 -0
- package/dist/Data/dto/dialog/LocalDialogsDTO.d.ts +9 -0
- package/dist/Data/dto/dialog/RemoteDialogDTO.d.ts +18 -0
- package/dist/Data/dto/dialog/RemoteDialogsDTO.d.ts +9 -0
- package/dist/Data/dto/file/LocalFileDTO.d.ts +10 -0
- package/dist/Data/dto/file/RemoteFileDTO.d.ts +10 -0
- package/dist/Data/dto/message/LocalMessageDTO.d.ts +20 -0
- package/dist/Data/dto/message/LocalMessagesDTO.d.ts +9 -0
- package/dist/Data/dto/message/RemoteMessageDTO.d.ts +20 -0
- package/dist/Data/dto/message/RemoteMessagesDTO.d.ts +9 -0
- package/dist/Data/dto/user/LocalUserDTO.d.ts +14 -0
- package/dist/Data/dto/user/LocalUsersDTO.d.ts +9 -0
- package/dist/Data/dto/user/RemoteUserDTO.d.ts +14 -0
- package/dist/Data/dto/user/RemoteUsersDTO.d.ts +9 -0
- package/dist/Data/mapper/DialogLocalDTOMapper.d.ts +17 -0
- package/dist/Data/mapper/DialogRemoteDTOMapper.d.ts +18 -0
- package/dist/Data/mapper/FileLocalDTOMapper.d.ts +8 -0
- package/dist/Data/mapper/FileRemoteDTOMapper.d.ts +8 -0
- package/dist/Data/mapper/IMapper.d.ts +4 -0
- package/dist/Data/mapper/MessageLocalDTOMapper.d.ts +8 -0
- package/dist/Data/mapper/MessageRemoteDTOMapper.d.ts +8 -0
- package/dist/Data/mapper/UserLocalDTOMapper.d.ts +9 -0
- package/dist/Data/mapper/UserRemoteDTOMapper.d.ts +9 -0
- package/dist/Data/repository/ConnectionRepository.d.ts +15 -0
- package/dist/Data/repository/DialogsRepository.d.ts +28 -0
- package/dist/Data/repository/EventMessagesRepository.d.ts +35 -0
- package/dist/Data/repository/FileRepository.d.ts +14 -0
- package/dist/Data/repository/MessagesRepository.d.ts +24 -0
- package/dist/Data/repository/UsersRepository.d.ts +18 -0
- package/dist/Data/source/exception/LocalDataSourceException.d.ts +10 -0
- package/dist/Data/source/exception/MapperDTOException.d.ts +9 -0
- package/dist/Data/source/exception/RemoteDataSourceException.d.ts +15 -0
- package/dist/Data/source/exception/RepositoryException.d.ts +15 -0
- package/dist/Data/source/local/ChatLocalStorageDataSource.d.ts +8 -0
- package/dist/Data/source/local/ILocalDataSource.d.ts +25 -0
- package/dist/Data/source/local/ILocalFileDataSource.d.ts +7 -0
- package/dist/Data/source/local/LocalDataSource.d.ts +28 -0
- package/dist/Data/source/local/LocalFileDataSource.d.ts +8 -0
- package/dist/Data/source/remote/IRemoteDataSource.d.ts +36 -0
- package/dist/Data/source/remote/Mapper/DialogDTOMapper.d.ts +7 -0
- package/dist/Data/source/remote/Mapper/FileDTOMapper.d.ts +7 -0
- package/dist/Data/source/remote/Mapper/IDTOMapper.d.ts +4 -0
- package/dist/Data/source/remote/Mapper/MessageDTOMapper.d.ts +9 -0
- package/dist/Data/source/remote/Mapper/UserDTOMapper.d.ts +7 -0
- package/dist/Data/source/remote/RemoteDataSource.d.ts +81 -0
- package/dist/Domain/entity/Chat.d.ts +4 -0
- package/dist/Domain/entity/ChatMessageAttachmentEntity.d.ts +14 -0
- package/dist/Domain/entity/CustomDataEntity.d.ts +3 -0
- package/dist/Domain/entity/DialogEntity.d.ts +13 -0
- package/dist/Domain/entity/DialogEventInfo.d.ts +14 -0
- package/dist/Domain/entity/DialogTypes.d.ts +5 -0
- package/dist/Domain/entity/EventMessageType.d.ts +5 -0
- package/dist/Domain/entity/FileEntity.d.ts +10 -0
- package/dist/Domain/entity/FileTypes.d.ts +6 -0
- package/dist/Domain/entity/GroupDialogEntity.d.ts +19 -0
- package/dist/Domain/entity/LastMessageEntity.d.ts +5 -0
- package/dist/Domain/entity/MessageEntity.d.ts +21 -0
- package/dist/Domain/entity/NotificationTypes.d.ts +5 -0
- package/dist/Domain/entity/PrivateDialogEntity.d.ts +16 -0
- package/dist/Domain/entity/PublicDialogEntity.d.ts +18 -0
- package/dist/Domain/entity/UserEntity.d.ts +12 -0
- package/dist/Domain/exception/domain/DomainExecption.d.ts +4 -0
- package/dist/Domain/repository/IDialogsRepository.d.ts +20 -0
- package/dist/Domain/repository/IFileRepository.d.ts +6 -0
- package/dist/Domain/repository/IMessagesRepository.d.ts +15 -0
- package/dist/Domain/repository/IUsersRepository.d.ts +8 -0
- package/dist/Domain/repository/Pagination.d.ts +16 -0
- package/dist/Domain/use_cases/CreateDialogUseCase.d.ts +12 -0
- package/dist/Domain/use_cases/GetAllDialogsUseCase.d.ts +8 -0
- package/dist/Domain/use_cases/GetAllDialogsUseCaseWithMock.d.ts +10 -0
- package/dist/Domain/use_cases/GetAllMessagesForDialog.d.ts +11 -0
- package/dist/Domain/use_cases/GetAllUsersUseCase.d.ts +11 -0
- package/dist/Domain/use_cases/GetDialogByIdUseCase.d.ts +9 -0
- package/dist/Domain/use_cases/GetUsersByIdsUseCase.d.ts +9 -0
- package/dist/Domain/use_cases/LeaveDialogUseCase.d.ts +18 -0
- package/dist/Domain/use_cases/RemoveUsersFromTheDialogUseCase.d.ts +12 -0
- package/dist/Domain/use_cases/SendTextMessageUseCase.d.ts +9 -0
- package/dist/Domain/use_cases/SubscribeToDialogEventsUseCase.d.ts +16 -0
- package/dist/Domain/use_cases/SubscribeToDialogsUpdatesUseCase.d.ts +11 -0
- package/dist/Domain/use_cases/SubscribeToDialogsUpdatesUseCaseWithMock.d.ts +11 -0
- package/dist/Domain/use_cases/SyncDialogsUseCase.d.ts +23 -0
- package/dist/Domain/use_cases/UpdateDialogUseCase.d.ts +12 -0
- package/dist/Domain/use_cases/UploadFileUseCase.d.ts +9 -0
- package/dist/Domain/use_cases/UserTypingMessageUseCase.d.ts +13 -0
- package/dist/Domain/use_cases/base/BaseUseCase.d.ts +5 -0
- package/dist/Domain/use_cases/base/IUseCase.d.ts +5 -0
- package/dist/Domain/use_cases/base/Subscribable/ISubscribable.d.ts +5 -0
- package/dist/Domain/use_cases/base/Subscribable/SubscriptionPerformer.d.ts +24 -0
- package/dist/MyButton/MyButton.d.ts +9 -0
- package/dist/MyInput/MyInput.d.ts +10 -0
- package/dist/Presentation/Views/Base/BaseViewModel.d.ts +23 -0
- package/dist/Presentation/Views/CreateDialogFlow/CreateNewDialogFlow.d.ts +7 -0
- package/dist/Presentation/Views/Dialogs/DialogViewModel.d.ts +16 -0
- package/dist/Presentation/Views/Dialogs/Dialogs.d.ts +20 -0
- package/dist/Presentation/Views/Dialogs/useDialogsViewModel.d.ts +2 -0
- package/dist/Presentation/Views/Dialogs/useDialogsViewModelWithMockUseCase.d.ts +4 -0
- package/dist/Presentation/assets/DarkTheme.d.ts +21 -0
- package/dist/Presentation/assets/LightTheme.d.ts +21 -0
- package/dist/Presentation/assets/Theme.d.ts +20 -0
- package/dist/Presentation/assets/ThemeScheme.d.ts +43 -0
- package/dist/Presentation/components/Button.d.ts +4 -0
- package/dist/Presentation/components/Navbar.d.ts +2 -0
- package/dist/Presentation/components/TextInput.d.ts +1 -0
- package/dist/Presentation/components/UI/ DefaultThemes/CustomTheme.d.ts +6 -0
- package/dist/Presentation/components/UI/ DefaultThemes/DefaultTheme.d.ts +21 -0
- package/dist/Presentation/components/UI/Buttons/ActiveButton/ActiveButton.d.ts +9 -0
- package/dist/Presentation/components/UI/Buttons/MainBoundedButton/MainBoundedButton.d.ts +11 -0
- package/dist/Presentation/components/UI/Buttons/MainButton/MainButton.d.ts +21 -0
- package/dist/Presentation/components/UI/Dialogs/CreateDialog/CreateDialog.d.ts +13 -0
- package/dist/Presentation/components/UI/Dialogs/DialogInformation/DialogInformation.d.ts +12 -0
- package/dist/Presentation/components/UI/Dialogs/DialogInformation/DialogMemberButton/DialogMembersButton.d.ts +10 -0
- package/dist/Presentation/components/UI/Dialogs/DialogInformation/UsersList/SingleUser/SingleUser.d.ts +9 -0
- package/dist/Presentation/components/UI/Dialogs/DialogInformation/UsersList/UsersList.d.ts +10 -0
- package/dist/Presentation/components/UI/Dialogs/DialogInformation/UsersList/UsersListViewModel.d.ts +10 -0
- package/dist/Presentation/components/UI/Dialogs/DialogInformation/UsersList/useUsersListViewModel.d.ts +3 -0
- package/dist/Presentation/components/UI/Dialogs/EditDialog/EditDialog.d.ts +19 -0
- package/dist/Presentation/components/UI/Dialogs/EditDialog/UserAvatar/UserAvatar.d.ts +11 -0
- package/dist/Presentation/components/UI/Dialogs/HeaderDialogs/HeaderDialogs.d.ts +15 -0
- package/dist/Presentation/components/UI/Dialogs/InviteMembers/InviteMembers.d.ts +14 -0
- package/dist/Presentation/components/UI/Dialogs/InviteMembers/InviteMembersViewModel.d.ts +13 -0
- package/dist/Presentation/components/UI/Dialogs/InviteMembers/InviteUsersList/SingleUserWithCheckBox/SingleUserWithCheckBox.d.ts +13 -0
- package/dist/Presentation/components/UI/Dialogs/InviteMembers/InviteUsersResultViewModel.d.ts +6 -0
- package/dist/Presentation/components/UI/Dialogs/InviteMembers/NotFoundContent/NotFoundContent.d.ts +7 -0
- package/dist/Presentation/components/UI/Dialogs/InviteMembers/useInviteMembersViewModel.d.ts +2 -0
- package/dist/Presentation/components/UI/Dialogs/MembersList/MembersList.d.ts +10 -0
- package/dist/Presentation/components/UI/Dialogs/MessagesView/AudioAttachmentComponent/AudioAttachmentComponent.d.ts +8 -0
- package/dist/Presentation/components/UI/Dialogs/MessagesView/HeaderMessages/HeaderMessages.d.ts +12 -0
- package/dist/Presentation/components/UI/Dialogs/MessagesView/ImageAttachmentComponent/ImageAttachmentComponent.d.ts +8 -0
- package/dist/Presentation/components/UI/Dialogs/MessagesView/MessagesView.d.ts +11 -0
- package/dist/Presentation/components/UI/Dialogs/MessagesView/MessagesViewModel.d.ts +14 -0
- package/dist/Presentation/components/UI/Dialogs/MessagesView/VideoAttachmentComponent/VideoAttachmentComponent.d.ts +8 -0
- package/dist/Presentation/components/UI/Dialogs/MessagesView/VoiceRecordingProgress/VoiceRecordingProgress.d.ts +10 -0
- package/dist/Presentation/components/UI/Dialogs/MessagesView/useMessagesViewModelWithMockUseCase.d.ts +4 -0
- package/dist/Presentation/components/UI/Dialogs/PreviewDialog/PreviewDialog.d.ts +34 -0
- package/dist/Presentation/components/UI/Dialogs/PreviewDialog/PreviewDialogViewModel.d.ts +11 -0
- package/dist/Presentation/components/UI/Dialogs/YesNoQuestion/YesNoQuestion.d.ts +14 -0
- package/dist/Presentation/components/UI/Elements/SwitchButton/SwitchButton.d.ts +11 -0
- package/dist/Presentation/components/UI/Placeholders/ErrorComponent/ErrorComponent.d.ts +12 -0
- package/dist/Presentation/components/UI/Placeholders/LoaderComponent/LoaderComponent.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/ActiveSvg/ActiveSvg.d.ts +10 -0
- package/dist/Presentation/components/UI/svgs/Icons/Actions/Add/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Actions/AddContact/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Actions/Archive/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Actions/Copy/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Actions/Delete/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Actions/Download/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Actions/Edit/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Actions/EditDots/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Actions/Emoji/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Actions/ForwardFilled/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Actions/Hungup/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Actions/IncomeCall/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Actions/Like/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Actions/NewChat/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Actions/OutcomeCall/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Actions/Phone/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Actions/PhoneFilled/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Actions/Remove/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Actions/Remove2/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Actions/ReplyFilled/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Actions/Send/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Actions/Share/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Actions/SwapCamera/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Actions/Unarchive/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Actions/VideoIcon/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Actions/Voice/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Contents/Brodcast/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Contents/Chat/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Contents/ChatFilled/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Contents/Conference/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Contents/Contact/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Contents/ContactFilled/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Contents/GroupChat/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Contents/Notifications/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Contents/PrivateChat/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Contents/PublicChannel/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Contents/Stream/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Contents/StreamFilled/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Contents/User/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/IconsCommonTypes.d.ts +6 -0
- package/dist/Presentation/components/UI/svgs/Icons/Media/Attachment/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Media/AudioFile/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Media/BrokenFile/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Media/Camera/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Media/GifFile/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Media/ImageEmpty/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Media/ImageFile/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Media/ImageFilled/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Media/LinkWeb/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Media/Location/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Media/TextDocument/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Media/VideoFile/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Moderation/Admin/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Moderation/Banned/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Moderation/Freeze/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Moderation/Moderations/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Moderation/Muted/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Navigation/ArrowLeft/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Navigation/ArrowRight/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Navigation/Back/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Navigation/Close/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Navigation/Down/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Navigation/Leave/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Navigation/More/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Navigation/Next/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Navigation/Plus/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Navigation/Refresh/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Navigation/Search/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Navigation/Settings/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Navigation/SettingsField/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Status/Error/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Status/Help/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Status/Information/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Status/InformationFill/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Status/Loader/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Status/Mention/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Status/Sent/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Status/ViewedDelivered/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Toggle/CameraOff/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Toggle/CameraOn/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Toggle/CheckOff/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Toggle/CheckOn/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Toggle/Favourite/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Toggle/FavouriteFilled/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Toggle/FullScreen/inex.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Toggle/Hide/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Toggle/ImagePlay/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Toggle/Louder/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Toggle/MicOff/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Toggle/MicOn/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Toggle/Minimize/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Toggle/NotifyOff/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Toggle/NotifyOn/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Toggle/Pause/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Toggle/Quite/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Toggle/Record/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Toggle/Screenshare/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Toggle/Show/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Toggle/Speaker/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Toggle/SpeakerOff/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Toggle/StopRecord/index.d.ts +4 -0
- package/dist/Presentation/components/UI/svgs/Icons/Toggle/StopShare/index.d.ts +4 -0
- package/dist/Presentation/components/containers/ColumnContainer/ColumnContainer.d.ts +5 -0
- package/dist/Presentation/components/containers/RowCenterContainer/RowCenterContainer.d.ts +33 -0
- package/dist/Presentation/components/containers/RowLeftContainer/RowLeftContainer.d.ts +33 -0
- package/dist/Presentation/components/containers/RowRightContainer/RowRightContainer.d.ts +33 -0
- package/dist/Presentation/components/containers/ScrollableContainer/ScrollableContainer.d.ts +14 -0
- package/dist/Presentation/components/layouts/Desktop/Desktop.d.ts +4 -0
- package/dist/Presentation/components/layouts/Desktop/DesktopLayoutForMockModels.d.ts +9 -0
- package/dist/Presentation/components/layouts/LayoutCommonTypes.d.ts +6 -0
- package/dist/Presentation/components/layouts/TestStage/LoginView/Login.d.ts +9 -0
- package/dist/Presentation/components/layouts/TestStage/TestStageMarkup.d.ts +4 -0
- package/dist/Presentation/components/layouts/TestStage/TestStageWithMockData/TestStageWithMockData.d.ts +3 -0
- package/dist/Presentation/components/providers/ModalContextProvider/Modal.d.ts +14 -0
- package/dist/Presentation/components/providers/ModalContextProvider/ModalContextProvider.d.ts +4 -0
- package/dist/Presentation/components/providers/ModalContextProvider/useModal.d.ts +11 -0
- package/dist/Presentation/components/providers/ProviderProps.d.ts +4 -0
- package/dist/Presentation/components/providers/QuickBloxUIKitProvider/QuickBloxUIKitProvider.d.ts +41 -0
- package/dist/Presentation/components/providers/QuickBloxUIKitProvider/useEventMessagesRepository.d.ts +3 -0
- package/dist/Presentation/components/providers/QuickBloxUIKitProvider/useQBConnection.d.ts +7 -0
- package/dist/Presentation/components/providers/QuickBloxUIKitProvider/useQbDataContext.d.ts +3 -0
- package/dist/QBconfig.d.ts +29 -0
- package/dist/index-ui.d.ts +25 -0
- package/dist/index-ui.js +2589 -0
- package/dist/index.d.ts +1 -0
- package/dist/qb-api-calls/index.d.ts +59 -0
- package/dist/setupTests.d.ts +1 -0
- package/dist/utils/DateTimeFormatter.d.ts +4 -0
- package/dist/utils/parse.d.ts +6 -0
- package/global.d.ts +855 -0
- package/package.json +104 -0
- package/public/favicon.ico +0 -0
- package/public/index.html +47 -0
- package/public/logo192.png +0 -0
- package/public/logo512.png +0 -0
- package/public/manifest.json +25 -0
- package/public/quickblox.js +54609 -0
- package/public/robots.txt +3 -0
- package/src/App.scss +0 -0
- package/src/App.tsx +230 -0
- package/src/CommonTypes/FunctionResult.ts +4 -0
- package/src/Data/Stubs.ts +1131 -0
- package/src/Data/dto/dialog/LocalDialogDTO.ts +42 -0
- package/src/Data/dto/dialog/LocalDialogsDTO.ts +21 -0
- package/src/Data/dto/dialog/RemoteDialogDTO.ts +58 -0
- package/src/Data/dto/dialog/RemoteDialogsDTO.ts +21 -0
- package/src/Data/dto/file/LocalFileDTO.ts +26 -0
- package/src/Data/dto/file/RemoteFileDTO.ts +26 -0
- package/src/Data/dto/message/LocalMessageDTO.ts +51 -0
- package/src/Data/dto/message/LocalMessagesDTO.ts +21 -0
- package/src/Data/dto/message/RemoteMessageDTO.ts +51 -0
- package/src/Data/dto/message/RemoteMessagesDTO.ts +21 -0
- package/src/Data/dto/user/LocalUserDTO.ts +37 -0
- package/src/Data/dto/user/LocalUsersDTO.ts +23 -0
- package/src/Data/dto/user/RemoteUserDTO.ts +37 -0
- package/src/Data/dto/user/RemoteUsersDTO.ts +21 -0
- package/src/Data/mapper/DialogLocalDTOMapper.ts +742 -0
- package/src/Data/mapper/DialogRemoteDTOMapper.ts +776 -0
- package/src/Data/mapper/FileLocalDTOMapper.ts +253 -0
- package/src/Data/mapper/FileRemoteDTOMapper.ts +265 -0
- package/src/Data/mapper/IMapper.ts +14 -0
- package/src/Data/mapper/MessageLocalDTOMapper.ts +425 -0
- package/src/Data/mapper/MessageRemoteDTOMapper.ts +430 -0
- package/src/Data/mapper/UserLocalDTOMapper.ts +381 -0
- package/src/Data/mapper/UserRemoteDTOMapper.ts +393 -0
- package/src/Data/repository/ConnectionRepository.ts +128 -0
- package/src/Data/repository/DialogsRepository.ts +422 -0
- package/src/Data/repository/EventMessagesRepository.ts +291 -0
- package/src/Data/repository/FileRepository.ts +110 -0
- package/src/Data/repository/MessagesRepository.ts +288 -0
- package/src/Data/repository/UsersRepository.ts +324 -0
- package/src/Data/source/exception/LocalDataSourceException.ts +17 -0
- package/src/Data/source/exception/MapperDTOException.ts +19 -0
- package/src/Data/source/exception/RemoteDataSourceException.ts +28 -0
- package/src/Data/source/exception/RepositoryException.ts +27 -0
- package/src/Data/source/local/ChatLocalStorageDataSource.ts +262 -0
- package/src/Data/source/local/ILocalDataSource.ts +45 -0
- package/src/Data/source/local/ILocalFileDataSource.ts +11 -0
- package/src/Data/source/local/LocalDataSource.ts +377 -0
- package/src/Data/source/local/LocalFileDataSource.ts +22 -0
- package/src/Data/source/remote/IRemoteDataSource.ts +112 -0
- package/src/Data/source/remote/Mapper/DialogDTOMapper.ts +401 -0
- package/src/Data/source/remote/Mapper/FileDTOMapper.ts +276 -0
- package/src/Data/source/remote/Mapper/IDTOMapper.ts +4 -0
- package/src/Data/source/remote/Mapper/MessageDTOMapper.ts +399 -0
- package/src/Data/source/remote/Mapper/UserDTOMapper.ts +344 -0
- package/src/Data/source/remote/RemoteDataSource.ts +1278 -0
- package/src/Domain/entity/Chat.ts +4 -0
- package/src/Domain/entity/ChatMessageAttachmentEntity.ts +15 -0
- package/src/Domain/entity/CustomDataEntity.ts +3 -0
- package/src/Domain/entity/DialogEntity.ts +15 -0
- package/src/Domain/entity/DialogEventInfo.ts +15 -0
- package/src/Domain/entity/DialogTypes.ts +7 -0
- package/src/Domain/entity/EventMessageType.ts +7 -0
- package/src/Domain/entity/FileEntity.ts +11 -0
- package/src/Domain/entity/FileTypes.ts +9 -0
- package/src/Domain/entity/GroupDialogEntity.ts +54 -0
- package/src/Domain/entity/LastMessageEntity.ts +5 -0
- package/src/Domain/entity/MessageEntity.ts +25 -0
- package/src/Domain/entity/NotificationTypes.ts +7 -0
- package/src/Domain/entity/PrivateDialogEntity.ts +46 -0
- package/src/Domain/entity/PublicDialogEntity.ts +72 -0
- package/src/Domain/entity/UserEntity.ts +22 -0
- package/src/Domain/exception/domain/DomainExecption.ts +5 -0
- package/src/Domain/repository/IDialogsRepository.ts +40 -0
- package/src/Domain/repository/IFileRepository.ts +9 -0
- package/src/Domain/repository/IMessagesRepository.ts +28 -0
- package/src/Domain/repository/IUsersRepository.ts +13 -0
- package/src/Domain/repository/Pagination.ts +48 -0
- package/src/Domain/use_cases/CreateDialogUseCase.ts +73 -0
- package/src/Domain/use_cases/GetAllDialogsUseCase.ts +20 -0
- package/src/Domain/use_cases/GetAllDialogsUseCaseWithMock.ts +45 -0
- package/src/Domain/use_cases/GetAllMessagesForDialog.ts +61 -0
- package/src/Domain/use_cases/GetAllUsersUseCase.ts +34 -0
- package/src/Domain/use_cases/GetDialogByIdUseCase.ts +28 -0
- package/src/Domain/use_cases/GetUsersByIdsUseCase.ts +22 -0
- package/src/Domain/use_cases/LeaveDialogUseCase.ts +109 -0
- package/src/Domain/use_cases/RemoveUsersFromTheDialogUseCase.ts +103 -0
- package/src/Domain/use_cases/SendTextMessageUseCase.ts +26 -0
- package/src/Domain/use_cases/SubscribeToDialogEventsUseCase.ts +141 -0
- package/src/Domain/use_cases/SubscribeToDialogsUpdatesUseCase.ts +69 -0
- package/src/Domain/use_cases/SubscribeToDialogsUpdatesUseCaseWithMock.ts +61 -0
- package/src/Domain/use_cases/SyncDialogsUseCase.ts +246 -0
- package/src/Domain/use_cases/UpdateDialogUseCase.ts +65 -0
- package/src/Domain/use_cases/UploadFileUseCase.ts +24 -0
- package/src/Domain/use_cases/UserTypingMessageUseCase.ts +51 -0
- package/src/Domain/use_cases/base/BaseUseCase.ts +77 -0
- package/src/Domain/use_cases/base/IUseCase.ts +5 -0
- package/src/Domain/use_cases/base/Subscribable/ISubscribable.ts +6 -0
- package/src/Domain/use_cases/base/Subscribable/SubscriptionPerformer.ts +143 -0
- package/src/MyButton/MyButton.scss +11 -0
- package/src/MyButton/MyButton.tsx +25 -0
- package/src/MyInput/MyInput.scss +9 -0
- package/src/MyInput/MyInput.tsx +36 -0
- package/src/Presentation/.gitkeep +0 -0
- package/src/Presentation/Views/Base/BaseViewModel.ts +66 -0
- package/src/Presentation/Views/CreateDialogFlow/CreateNewDialogFlow.tsx +187 -0
- package/src/Presentation/Views/Dialogs/DialogViewModel.ts +23 -0
- package/src/Presentation/Views/Dialogs/Dialogs.scss +66 -0
- package/src/Presentation/Views/Dialogs/Dialogs.tsx +372 -0
- package/src/Presentation/Views/Dialogs/useDialogsViewModel.ts +136 -0
- package/src/Presentation/Views/Dialogs/useDialogsViewModelWithMockUseCase.ts +345 -0
- package/src/Presentation/Views/Navigation/More.svg +7 -0
- package/src/Presentation/assets/DarkTheme.ts +58 -0
- package/src/Presentation/assets/LightTheme.ts +58 -0
- package/src/Presentation/assets/Theme.ts +143 -0
- package/src/Presentation/assets/ThemeScheme.ts +83 -0
- package/src/Presentation/assets/fonts/.gitkeep +0 -0
- package/src/Presentation/assets/fonts/Roboto-Bold.eot +0 -0
- package/src/Presentation/assets/fonts/Roboto-Bold.ttf +0 -0
- package/src/Presentation/assets/fonts/Roboto-Bold.woff +0 -0
- package/src/Presentation/assets/fonts/Roboto-Bold.woff2 +0 -0
- package/src/Presentation/assets/fonts/Roboto-Medium.eot +0 -0
- package/src/Presentation/assets/fonts/Roboto-Medium.ttf +0 -0
- package/src/Presentation/assets/fonts/Roboto-Medium.woff +0 -0
- package/src/Presentation/assets/fonts/Roboto-Medium.woff2 +0 -0
- package/src/Presentation/assets/fonts/Roboto-Regular.eot +0 -0
- package/src/Presentation/assets/fonts/Roboto-Regular.ttf +0 -0
- package/src/Presentation/assets/fonts/Roboto-Regular.woff +0 -0
- package/src/Presentation/assets/fonts/Roboto-Regular.woff2 +0 -0
- package/src/Presentation/assets/img/Artem_Koltunov_Selfi.png +0 -0
- package/src/Presentation/assets/img/bee-img.png +0 -0
- package/src/Presentation/assets/styles/_fonts.scss +32 -0
- package/src/Presentation/assets/styles/_reset-styles.scss +435 -0
- package/src/Presentation/assets/styles/_theme_colors_scheme.scss +56 -0
- package/src/Presentation/assets/styles/_theme_dark.scss +33 -0
- package/src/Presentation/assets/styles/_theme_light.scss +33 -0
- package/src/Presentation/assets/styles/_variables.scss +2 -0
- package/src/Presentation/components/Button.js +5 -0
- package/src/Presentation/components/Navbar.tsx +45 -0
- package/src/Presentation/components/TextInput.js +10 -0
- package/src/Presentation/components/UI/ DefaultThemes/CustomTheme.ts +13 -0
- package/src/Presentation/components/UI/ DefaultThemes/DefaultTheme.ts +58 -0
- package/src/Presentation/components/UI/Buttons/ActiveButton/ActiveButton.tsx +40 -0
- package/src/Presentation/components/UI/Buttons/MainBoundedButton/MainBoundedButton.scss +0 -0
- package/src/Presentation/components/UI/Buttons/MainBoundedButton/MainBoundedButton.tsx +30 -0
- package/src/Presentation/components/UI/Buttons/MainButton/MainButton.scss +127 -0
- package/src/Presentation/components/UI/Buttons/MainButton/MainButton.tsx +62 -0
- package/src/Presentation/components/UI/Dialogs/CreateDialog/CreateDialog.scss +45 -0
- package/src/Presentation/components/UI/Dialogs/CreateDialog/CreateDialog.tsx +77 -0
- package/src/Presentation/components/UI/Dialogs/DialogInformation/DialogInformation.scss +429 -0
- package/src/Presentation/components/UI/Dialogs/DialogInformation/DialogInformation.tsx +646 -0
- package/src/Presentation/components/UI/Dialogs/DialogInformation/DialogMemberButton/DialogMembersButton.scss +42 -0
- package/src/Presentation/components/UI/Dialogs/DialogInformation/DialogMemberButton/DialogMembersButton.tsx +26 -0
- package/src/Presentation/components/UI/Dialogs/DialogInformation/UsersList/SingleUser/SingleUser.scss +95 -0
- package/src/Presentation/components/UI/Dialogs/DialogInformation/UsersList/SingleUser/SingleUser.tsx +42 -0
- package/src/Presentation/components/UI/Dialogs/DialogInformation/UsersList/UsersList.scss +60 -0
- package/src/Presentation/components/UI/Dialogs/DialogInformation/UsersList/UsersList.tsx +65 -0
- package/src/Presentation/components/UI/Dialogs/DialogInformation/UsersList/UsersListViewModel.ts +13 -0
- package/src/Presentation/components/UI/Dialogs/DialogInformation/UsersList/useUsersListViewModel.ts +81 -0
- package/src/Presentation/components/UI/Dialogs/EditDialog/EditDialog.scss +183 -0
- package/src/Presentation/components/UI/Dialogs/EditDialog/EditDialog.tsx +262 -0
- package/src/Presentation/components/UI/Dialogs/EditDialog/UserAvatar/UserAvatar.scss +32 -0
- package/src/Presentation/components/UI/Dialogs/EditDialog/UserAvatar/UserAvatar.tsx +59 -0
- package/src/Presentation/components/UI/Dialogs/HeaderDialogs/HeaderDialogs.scss +67 -0
- package/src/Presentation/components/UI/Dialogs/HeaderDialogs/HeaderDialogs.tsx +112 -0
- package/src/Presentation/components/UI/Dialogs/InviteMembers/InviteMembers.scss +146 -0
- package/src/Presentation/components/UI/Dialogs/InviteMembers/InviteMembers.tsx +374 -0
- package/src/Presentation/components/UI/Dialogs/InviteMembers/InviteMembersViewModel.ts +18 -0
- package/src/Presentation/components/UI/Dialogs/InviteMembers/InviteUsersList/SingleUserWithCheckBox/SingleUserWithCheckBox.scss +113 -0
- package/src/Presentation/components/UI/Dialogs/InviteMembers/InviteUsersList/SingleUserWithCheckBox/SingleUserWithCheckBox.tsx +87 -0
- package/src/Presentation/components/UI/Dialogs/InviteMembers/InviteUsersResultViewModel.ts +12 -0
- package/src/Presentation/components/UI/Dialogs/InviteMembers/NotFoundContent/NotFoundContent.scss +37 -0
- package/src/Presentation/components/UI/Dialogs/InviteMembers/NotFoundContent/NotFoundContent.tsx +22 -0
- package/src/Presentation/components/UI/Dialogs/InviteMembers/useInviteMembersViewModel.ts +116 -0
- package/src/Presentation/components/UI/Dialogs/MembersList/MembersList.scss +128 -0
- package/src/Presentation/components/UI/Dialogs/MembersList/MembersList.tsx +89 -0
- package/src/Presentation/components/UI/Dialogs/MessagesView/AudioAttachmentComponent/AudioAttachmentComponent.scss +7 -0
- package/src/Presentation/components/UI/Dialogs/MessagesView/AudioAttachmentComponent/AudioAttachmentComponent.tsx +27 -0
- package/src/Presentation/components/UI/Dialogs/MessagesView/HeaderMessages/HeaderMessages.scss +133 -0
- package/src/Presentation/components/UI/Dialogs/MessagesView/HeaderMessages/HeaderMessages.tsx +137 -0
- package/src/Presentation/components/UI/Dialogs/MessagesView/ImageAttachmentComponent/ImageAttachmentComponent.scss +11 -0
- package/src/Presentation/components/UI/Dialogs/MessagesView/ImageAttachmentComponent/ImageAttachmentComponent.tsx +25 -0
- package/src/Presentation/components/UI/Dialogs/MessagesView/MessagesView.scss +327 -0
- package/src/Presentation/components/UI/Dialogs/MessagesView/MessagesView.tsx +794 -0
- package/src/Presentation/components/UI/Dialogs/MessagesView/MessagesViewModel.ts +20 -0
- package/src/Presentation/components/UI/Dialogs/MessagesView/VideoAttachmentComponent/VideoAttachmentComponent.scss +7 -0
- package/src/Presentation/components/UI/Dialogs/MessagesView/VideoAttachmentComponent/VideoAttachmentComponent.tsx +33 -0
- package/src/Presentation/components/UI/Dialogs/MessagesView/VoiceRecordingProgress/VoiceRecordingProgress.scss +35 -0
- package/src/Presentation/components/UI/Dialogs/MessagesView/VoiceRecordingProgress/VoiceRecordingProgress.tsx +86 -0
- package/src/Presentation/components/UI/Dialogs/MessagesView/useMessagesViewModelWithMockUseCase.ts +452 -0
- package/src/Presentation/components/UI/Dialogs/PreviewDialog/PreviewDialog.scss +100 -0
- package/src/Presentation/components/UI/Dialogs/PreviewDialog/PreviewDialog.tsx +405 -0
- package/src/Presentation/components/UI/Dialogs/PreviewDialog/PreviewDialogViewModel.ts +42 -0
- package/src/Presentation/components/UI/Dialogs/YesNoQuestion/YesNoQuestion.scss +35 -0
- package/src/Presentation/components/UI/Dialogs/YesNoQuestion/YesNoQuestion.tsx +89 -0
- package/src/Presentation/components/UI/Elements/SwitchButton/SwitchButton.scss +61 -0
- package/src/Presentation/components/UI/Elements/SwitchButton/SwitchButton.tsx +48 -0
- package/src/Presentation/components/UI/Placeholders/ErrorComponent/ErrorComponent.scss +74 -0
- package/src/Presentation/components/UI/Placeholders/ErrorComponent/ErrorComponent.tsx +72 -0
- package/src/Presentation/components/UI/Placeholders/LoaderComponent/LoaderComponent.scss +21 -0
- package/src/Presentation/components/UI/Placeholders/LoaderComponent/LoaderComponent.tsx +41 -0
- package/src/Presentation/components/UI/svgs/ActiveSvg/ActiveSvg.scss +3 -0
- package/src/Presentation/components/UI/svgs/ActiveSvg/ActiveSvg.tsx +41 -0
- package/src/Presentation/components/UI/svgs/Icons/Actions/Add/Add.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Actions/Add/index.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Actions/AddContact/Add contact.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Actions/AddContact/index.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Actions/Archive/Archive.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Actions/Archive/index.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Actions/Copy/Copy.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Actions/Copy/index.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Actions/Delete/Delete.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Actions/Delete/index.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Actions/Download/Download.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Actions/Download/index.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Actions/Edit/Edit.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Actions/Edit/index.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Actions/EditDots/EditDots.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Actions/EditDots/index.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Actions/Emoji/Emoji.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Actions/Emoji/index.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Actions/ForwardFilled/Forward filled.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Actions/ForwardFilled/index.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Actions/Hungup/Hungup.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Actions/Hungup/index.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Actions/IncomeCall/Income call.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Actions/IncomeCall/index.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Actions/Like/Like.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Actions/Like/index.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Actions/NewChat/New chat.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Actions/NewChat/index.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Actions/OutcomeCall/Outcome call.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Actions/OutcomeCall/index.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Actions/Phone/Phone.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Actions/Phone/index.tsx +35 -0
- package/src/Presentation/components/UI/svgs/Icons/Actions/PhoneFilled/Phone filled.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Actions/PhoneFilled/index.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Actions/Remove/Remove.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Actions/Remove/index.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Actions/Remove2/Remove2.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Actions/Remove2/index.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Actions/ReplyFilled/Reply filled.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Actions/ReplyFilled/index.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Actions/Send/Send.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Actions/Send/index.tsx +38 -0
- package/src/Presentation/components/UI/svgs/Icons/Actions/Share/Share.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Actions/Share/index.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Actions/SwapCamera/Swap camera.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Actions/SwapCamera/index.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Actions/Unarchive/Unarchive.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Actions/Unarchive/index.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Actions/VideoIcon/Video.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Actions/VideoIcon/index.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Actions/Voice/Voice.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Actions/Voice/index.tsx +35 -0
- package/src/Presentation/components/UI/svgs/Icons/Contents/Brodcast/Broadcast.svg +7 -0
- package/src/Presentation/components/UI/svgs/Icons/Contents/Brodcast/index.tsx +38 -0
- package/src/Presentation/components/UI/svgs/Icons/Contents/Chat/Chat.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Contents/Chat/index.tsx +35 -0
- package/src/Presentation/components/UI/svgs/Icons/Contents/ChatFilled/Chat filled.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Contents/ChatFilled/index.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Contents/Conference/Conference.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Contents/Conference/index.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Contents/Contact/Contact.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Contents/Contact/index.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Contents/ContactFilled/Contact filled.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Contents/ContactFilled/index.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Contents/GroupChat/Group chat.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Contents/GroupChat/index.tsx +35 -0
- package/src/Presentation/components/UI/svgs/Icons/Contents/Notifications/Notifications.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Contents/Notifications/index.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Contents/PrivateChat/Private chat.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Contents/PrivateChat/index.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Contents/PublicChannel/Public channel.svg +7 -0
- package/src/Presentation/components/UI/svgs/Icons/Contents/PublicChannel/index.tsx +67 -0
- package/src/Presentation/components/UI/svgs/Icons/Contents/Stream/Stream.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Contents/Stream/index.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Contents/StreamFilled/Stream filled.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Contents/StreamFilled/index.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Contents/User/User.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Contents/User/index.tsx +35 -0
- package/src/Presentation/components/UI/svgs/Icons/IconsCommonTypes.ts +6 -0
- package/src/Presentation/components/UI/svgs/Icons/Media/Attachment/Attachment.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Media/Attachment/index.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Media/AudioFile/Audio file.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Media/AudioFile/index.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Media/BrokenFile/Broken file.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Media/BrokenFile/index.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Media/Camera/Camera.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Media/Camera/index.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Media/GifFile/GIF file.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Media/GifFile/index.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Media/ImageEmpty/Image.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Media/ImageEmpty/index.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Media/ImageFile/File.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Media/ImageFile/index.tsx +35 -0
- package/src/Presentation/components/UI/svgs/Icons/Media/ImageFilled/Image filled.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Media/ImageFilled/index.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Media/LinkWeb/Link.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Media/LinkWeb/index.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Media/Location/Location.svg +4 -0
- package/src/Presentation/components/UI/svgs/Icons/Media/Location/index.tsx +26 -0
- package/src/Presentation/components/UI/svgs/Icons/Media/TextDocument/Text document.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Media/TextDocument/index.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Media/VideoFile/Video file.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Media/VideoFile/index.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Moderation/Admin/Admin.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Moderation/Admin/index.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Moderation/Banned/Banned.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Moderation/Banned/index.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Moderation/Freeze/Freeze.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Moderation/Freeze/index.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Moderation/Moderations/Moderations.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Moderation/Moderations/index.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Moderation/Muted/Muted.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Moderation/Muted/index.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Navigation/ArrowLeft/Arrow left.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Navigation/ArrowLeft/index.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Navigation/ArrowRight/Arrow right.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Navigation/ArrowRight/index.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Back/Back.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Back/index.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Close/Close.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Close/index.tsx +35 -0
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Down/Down.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Down/index.tsx +35 -0
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Leave/Leave.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Leave/index.tsx +35 -0
- package/src/Presentation/components/UI/svgs/Icons/Navigation/More/More.svg +7 -0
- package/src/Presentation/components/UI/svgs/Icons/Navigation/More/index.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Next/Next.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Next/index.tsx +35 -0
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Plus/Plus.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Plus/index.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Refresh/Refresh.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Refresh/index.tsx +36 -0
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Search/Search.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Search/index.tsx +35 -0
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Settings/Settings.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Settings/index.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Navigation/SettingsField/Settings filled.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Navigation/SettingsField/index.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Status/Error/Error.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Status/Error/index.tsx +36 -0
- package/src/Presentation/components/UI/svgs/Icons/Status/Help/Help.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Status/Help/index.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Status/Information/Information.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Status/Information/index.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Status/InformationFill/index.tsx +35 -0
- package/src/Presentation/components/UI/svgs/Icons/Status/Loader/Loader.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Status/Loader/index.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Status/Mention/Mention.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Status/Mention/index.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Status/Sent/Sent.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Status/Sent/index.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Status/ViewedDelivered/Viewed_Delivered.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Status/ViewedDelivered/index.tsx +38 -0
- package/src/Presentation/components/UI/svgs/Icons/Toggle/CameraOff/Camera off.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Toggle/CameraOff/index.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Toggle/CameraOn/Camera on.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Toggle/CameraOn/index.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Toggle/CheckOff/Check off.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Toggle/CheckOff/index.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Toggle/CheckOn/Check on.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Toggle/CheckOn/index.tsx +24 -0
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Favourite/Favourite.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Favourite/index.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Toggle/FavouriteFilled/Favourite filled.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Toggle/FavouriteFilled/index.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Toggle/FullScreen/Full screen.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Toggle/FullScreen/inex.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Hide/Hide.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Hide/index.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Toggle/ImagePlay/Play.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Toggle/ImagePlay/index.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Louder/Louder.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Louder/index.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Toggle/MicOff/Mic off.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Toggle/MicOff/index.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Toggle/MicOn/Mic on.svg +4 -0
- package/src/Presentation/components/UI/svgs/Icons/Toggle/MicOn/index.tsx +26 -0
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Minimize/Minimize.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Minimize/index.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Toggle/NotifyOff/Notify off.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Toggle/NotifyOff/index.tsx +35 -0
- package/src/Presentation/components/UI/svgs/Icons/Toggle/NotifyOn/Notify on.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Toggle/NotifyOn/index.tsx +35 -0
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Pause/Pause.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Pause/index.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Quite/Quite.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Quite/index.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Record/Record.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Record/index.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Screenshare/Screenshare.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Screenshare/index.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Show/Show.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Show/index.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Speaker/Speaker.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Speaker/index.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Toggle/SpeakerOff/Speaker off.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Toggle/SpeakerOff/index.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Toggle/StopRecord/Stop record.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Toggle/StopRecord/index.tsx +22 -0
- package/src/Presentation/components/UI/svgs/Icons/Toggle/StopShare/Stop share.svg +3 -0
- package/src/Presentation/components/UI/svgs/Icons/Toggle/StopShare/index.tsx +22 -0
- package/src/Presentation/components/containers/ColumnContainer/ColumnContainer.scss +6 -0
- package/src/Presentation/components/containers/ColumnContainer/ColumnContainer.tsx +24 -0
- package/src/Presentation/components/containers/RowCenterContainer/RowCenterContainer.scss +45 -0
- package/src/Presentation/components/containers/RowCenterContainer/RowCenterContainer.tsx +95 -0
- package/src/Presentation/components/containers/RowLeftContainer/RowLeftContainer.scss +45 -0
- package/src/Presentation/components/containers/RowLeftContainer/RowLeftContainer.tsx +97 -0
- package/src/Presentation/components/containers/RowRightContainer/RowRightContainer.scss +46 -0
- package/src/Presentation/components/containers/RowRightContainer/RowRightContainer.tsx +97 -0
- package/src/Presentation/components/containers/ScrollableContainer/ScrollableContainer.scss +46 -0
- package/src/Presentation/components/containers/ScrollableContainer/ScrollableContainer.tsx +85 -0
- package/src/Presentation/components/layouts/Desktop/Desktop.tsx +103 -0
- package/src/Presentation/components/layouts/Desktop/DesktopLayout.scss +31 -0
- package/src/Presentation/components/layouts/Desktop/DesktopLayoutForMockModels.tsx +31 -0
- package/src/Presentation/components/layouts/LayoutCommonTypes.ts +7 -0
- package/src/Presentation/components/layouts/TestStage/LoginView/Login.scss +71 -0
- package/src/Presentation/components/layouts/TestStage/LoginView/Login.tsx +116 -0
- package/src/Presentation/components/layouts/TestStage/TestStageMarkup.scss +24 -0
- package/src/Presentation/components/layouts/TestStage/TestStageMarkup.tsx +1109 -0
- package/src/Presentation/components/layouts/TestStage/TestStageWithMockData/TestStageWithMockData.tsx +209 -0
- package/src/Presentation/components/providers/ModalContextProvider/Modal.scss +71 -0
- package/src/Presentation/components/providers/ModalContextProvider/Modal.tsx +131 -0
- package/src/Presentation/components/providers/ModalContextProvider/ModalContextProvider.tsx +38 -0
- package/src/Presentation/components/providers/ModalContextProvider/useModal.ts +39 -0
- package/src/Presentation/components/providers/ProviderProps.ts +5 -0
- package/src/Presentation/components/providers/QuickBloxUIKitProvider/QuickBloxUIKitProvider.tsx +255 -0
- package/src/Presentation/components/providers/QuickBloxUIKitProvider/useEventMessagesRepository.ts +10 -0
- package/src/Presentation/components/providers/QuickBloxUIKitProvider/useQBConnection.ts +38 -0
- package/src/Presentation/components/providers/QuickBloxUIKitProvider/useQbDataContext.ts +82 -0
- package/src/QBconfig.ts +41 -0
- package/src/index-ui.ts +60 -0
- package/src/index.scss +74 -0
- package/src/index.tsx +25 -0
- package/src/logo.svg +1 -0
- package/src/qb-api-calls/index.ts +543 -0
- package/src/react-app-env.d.ts +1 -0
- package/src/setupTests.ts +5 -0
- package/src/utils/DateTimeFormatter.ts +35 -0
- package/src/utils/parse.ts +74 -0
- package/tsconfig.json +33 -0
- package/typedoc.json +4 -0
- package/webpack.config.js +56 -0
|
@@ -0,0 +1,1131 @@
|
|
|
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,
|
|
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,
|
|
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: number,
|
|
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
|
+
}
|