quickblox-react-ui-kit 0.2.5 → 0.2.6-patch
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Presentation/Views/Base → CommonTypes}/BaseViewModel.d.ts +21 -6
- package/dist/CommonTypes/FunctionResult.d.ts +3 -1
- package/dist/Data/dto/message/RemoteMessageDTO.d.ts +3 -0
- package/dist/Data/mapper/MessageRemoteDTOMapper.d.ts +2 -0
- package/dist/Data/repository/DialogsRepository.d.ts +1 -1
- package/dist/Data/source/local/ILocalDataSource.d.ts +1 -1
- package/dist/Data/source/remote/Mapper/DialogDTOMapper.d.ts +1 -0
- package/dist/Data/source/remote/Mapper/MessageDTOMapper.d.ts +6 -0
- package/dist/Domain/entity/MessageEntity.d.ts +3 -0
- package/dist/Domain/repository/IDialogsRepository.d.ts +1 -1
- package/dist/Domain/use_cases/ForwardMessagesUseCase.d.ts +13 -0
- package/dist/Domain/use_cases/ReplyMessagesUseCase.d.ts +10 -0
- package/dist/Domain/use_cases/ai/AIRephraseUseCase.d.ts +1 -1
- package/dist/Domain/use_cases/ai/AIRephraseWithProxyUseCase.d.ts +1 -1
- package/dist/Presentation/{components/UI/Dialogs → Views}/CreateDialog/CreateDialog.d.ts +1 -1
- package/dist/Presentation/Views/CreateDialogFlow/CreateNewDialogFlow.d.ts +2 -2
- package/dist/Presentation/Views/Dialog/AIComponents/AIAssistComponent/AIAssistComponent.d.ts +8 -0
- package/dist/Presentation/Views/Dialog/AIComponents/AITranslateComponent/AITranslateComponent.d.ts +11 -0
- package/dist/Presentation/{components/UI/Dialogs/MessagesView → Views/Dialog}/AIWidgets/AIMessageWidget.d.ts +1 -1
- package/dist/Presentation/Views/Dialog/AIWidgets/AIRephraseWidget/AIRephraseWidget.d.ts +22 -0
- package/dist/Presentation/Views/Dialog/AttachmentMessage/AttachmentMessage.d.ts +7 -0
- package/dist/Presentation/{components/UI/Dialogs/MessagesView → Views/Dialog}/AudioAttachmentComponent/AudioAttachmentComponent.d.ts +1 -1
- package/dist/Presentation/{components/UI/Dialogs/MessagesView → Views/Dialog/ContextMenu}/ContextMenu.d.ts +1 -0
- package/dist/Presentation/Views/Dialog/ContextMenu/MessageContextMenu/MessageContextMenu.d.ts +14 -0
- package/dist/Presentation/Views/Dialog/Dialog.d.ts +22 -0
- package/dist/Presentation/Views/Dialog/DialogHeader/DialogHeader.d.ts +12 -0
- package/dist/Presentation/Views/Dialog/DialogViewModel.d.ts +16 -0
- package/dist/Presentation/{components/UI/Dialogs/MessagesView → Views/Dialog}/DropDownMenu/DropDownMenu.d.ts +2 -3
- package/dist/Presentation/{components/UI/Dialogs/MessagesView → Views/Dialog}/DropDownMenu/ItemDropDownMenu/ItemDropDownMenu.d.ts +1 -1
- package/dist/Presentation/Views/Dialog/ForwardMessageFlow/DialogsWithSearch/DialogsWithSearch.d.ts +12 -0
- package/dist/Presentation/Views/Dialog/ForwardMessageFlow/DialogsWithSearch/ItemForListComponent/ItemDialogList.d.ts +14 -0
- package/dist/Presentation/Views/Dialog/ForwardMessageFlow/DialogsWithSearch/SearchComponent/SearchComponent.d.ts +8 -0
- package/dist/Presentation/Views/Dialog/ForwardMessageFlow/ForwardMessageFlow.d.ts +13 -0
- package/dist/Presentation/Views/Dialog/ForwardMessageFlow/ForwardMessagePreview/ForwardMessagePreview.d.ts +9 -0
- package/dist/Presentation/Views/Dialog/ForwardMessageFlow/InputForForwarding/InputForForwarding.d.ts +10 -0
- package/dist/Presentation/{components/UI/Dialogs/MessagesView → Views/Dialog}/ImageAttachmentComponent/ImageAttachmentComponent.d.ts +1 -1
- package/dist/Presentation/Views/Dialog/IncomingForwardedRepliedMessage/IncomingForwardedRepliedMessage.d.ts +25 -0
- package/dist/Presentation/Views/Dialog/IncomingMessage/AttachmentContentComponent/AttachmentContentComponent.d.ts +8 -0
- package/dist/Presentation/{components/UI/Dialogs/MessagesView/InComingMessage/InComingMessage.d.ts → Views/Dialog/IncomingMessage/IncomingMessage.d.ts} +10 -5
- package/dist/Presentation/Views/Dialog/IncomingMessage/MessageContentComponent/MessageContentComponent.d.ts +10 -0
- package/dist/Presentation/Views/Dialog/Message/Message.d.ts +22 -0
- package/dist/Presentation/Views/Dialog/MessageInput/MessageInput.d.ts +21 -0
- package/dist/Presentation/Views/Dialog/OutgoingForwardedRepliedMessage/OutgoingForwardedRepliedMessage.d.ts +17 -0
- package/dist/Presentation/Views/Dialog/OutgoingMessage/OutgoingMessage.d.ts +14 -0
- package/dist/Presentation/Views/Dialog/RenderDialogHeaderNavigator/RenderDialogHeaderNavigator.d.ts +9 -0
- package/dist/Presentation/Views/Dialog/ReplyMessagePreview/ReplyImagePreviewAttachment/ReplyImagePreviewAttachment.d.ts +8 -0
- package/dist/Presentation/Views/Dialog/ReplyMessagePreview/ReplyMessagePreview.d.ts +11 -0
- package/dist/Presentation/{components/UI/Dialogs/MessagesView → Views/Dialog}/VideoAttachmentComponent/VideoAttachmentComponent.d.ts +1 -1
- package/dist/Presentation/Views/Dialog/VoiceMessage/VoiceMessage.d.ts +8 -0
- package/dist/Presentation/{components/UI/Dialogs/MessagesView → Views/Dialog}/VoiceRecordingProgress/VoiceRecordingProgress.d.ts +3 -3
- package/dist/Presentation/Views/Dialog/useDialogViewModel.d.ts +4 -0
- package/dist/Presentation/Views/DialogInfo/DialogInfo.d.ts +16 -0
- package/dist/Presentation/{components/UI/Dialogs/DialogInformation → Views/DialogInfo}/DialogMemberButton/DialogMembersButton.d.ts +1 -1
- package/dist/Presentation/{components/UI/Dialogs/DialogInformation → Views/DialogInfo}/UsersList/SingleUser/SingleUser.d.ts +1 -1
- package/dist/Presentation/{components/UI/Dialogs/DialogInformation → Views/DialogInfo}/UsersList/UsersList.d.ts +1 -1
- package/dist/Presentation/{components/UI/Dialogs/DialogInformation → Views/DialogInfo}/UsersList/UsersListViewModel.d.ts +3 -3
- package/dist/Presentation/{components/UI/Dialogs/DialogInformation → Views/DialogInfo}/UsersList/useUsersListViewModel.d.ts +1 -1
- package/dist/Presentation/Views/{Dialogs/Dialogs.d.ts → DialogList/DialogList.d.ts} +8 -8
- package/dist/Presentation/Views/{Dialogs/DialogViewModel.d.ts → DialogList/DialogListViewModel.d.ts} +2 -2
- package/dist/Presentation/Views/DialogList/useDialogListViewModel.d.ts +4 -0
- package/dist/Presentation/{components/UI/Dialogs/HeaderDialogs/HeaderDialogs.d.ts → Views/DialogListHeader/DialogListHeader.d.ts} +6 -6
- package/dist/Presentation/{components/UI/Dialogs → Views}/EditDialog/EditDialog.d.ts +2 -2
- package/dist/Presentation/{components/UI/Dialogs → Views}/EditDialog/UserAvatar/UserAvatar.d.ts +2 -2
- package/dist/Presentation/{components/UI/Dialogs → Views}/InviteMembers/InviteMembers.d.ts +2 -2
- package/dist/Presentation/{components/UI/Dialogs → Views}/InviteMembers/InviteMembersViewModel.d.ts +3 -3
- package/dist/Presentation/{components/UI/Dialogs → Views}/InviteMembers/InviteUsersList/SingleUserWithCheckBox/SingleUserWithCheckBox.d.ts +1 -1
- package/dist/Presentation/{components/UI/Dialogs → Views}/InviteMembers/InviteUsersResultViewModel.d.ts +1 -1
- package/dist/Presentation/{components/UI/Dialogs → Views}/MembersList/MembersList.d.ts +2 -2
- package/dist/Presentation/{components/UI/Dialogs → Views}/PreviewDialog/PreviewDialog.d.ts +2 -2
- package/dist/Presentation/{components/UI/Dialogs → Views}/PreviewDialog/PreviewDialogViewModel.d.ts +2 -2
- package/dist/Presentation/{components/UI/Dialogs → Views}/YesNoQuestion/YesNoQuestion.d.ts +1 -1
- package/dist/Presentation/components/UI/Buttons/ActiveButton/ActiveButton.d.ts +1 -1
- package/dist/Presentation/components/UI/Buttons/MainBoundedButton/MainBoundedButton.d.ts +1 -1
- package/dist/Presentation/components/UI/Buttons/MainButton/MainButton.d.ts +1 -1
- package/dist/Presentation/components/UI/Elements/SwitchButton/SwitchButton.d.ts +1 -1
- package/dist/Presentation/components/UI/Placeholders/ErrorComponent/ErrorComponent.d.ts +1 -1
- package/dist/Presentation/components/UI/svgs/ActiveSvg/ActiveSvg.d.ts +1 -1
- package/dist/Presentation/components/containers/ColumnContainer/ColumnContainer.d.ts +1 -1
- package/dist/Presentation/{components/layouts → layouts}/Desktop/DesktopLayout.d.ts +1 -1
- package/dist/Presentation/{components/layouts → layouts}/Desktop/QuickBloxUIKitDesktopLayout.d.ts +3 -2
- package/dist/Presentation/{components/layouts → layouts}/TestStage/LoginView/Login.d.ts +1 -1
- package/dist/Presentation/{components/providers → providers}/QuickBloxUIKitProvider/QuickBloxUIKitProvider.d.ts +6 -6
- package/dist/Presentation/{components/providers → providers}/QuickBloxUIKitProvider/useEventMessagesRepository.d.ts +1 -1
- package/dist/Presentation/{components/providers → providers}/QuickBloxUIKitProvider/useQBConnection.d.ts +1 -1
- package/dist/QBconfig.d.ts +2 -0
- package/dist/index-ui.d.ts +22 -22
- package/dist/index-ui.js +1281 -665
- package/dist/utils/utils.d.ts +1 -1
- package/global.d.ts +23 -14
- package/package.json +26 -2
- package/.prettierignore +0 -4
- package/.prettierrc +0 -10
- package/dist/Presentation/Views/Dialogs/useDialogsViewModel.d.ts +0 -4
- package/dist/Presentation/components/UI/Dialogs/DialogInformation/DialogInformation.d.ts +0 -16
- package/dist/Presentation/components/UI/Dialogs/MessagesView/HeaderMessages/HeaderMessages.d.ts +0 -14
- package/dist/Presentation/components/UI/Dialogs/MessagesView/MessagesView.d.ts +0 -29
- package/dist/Presentation/components/UI/Dialogs/MessagesView/MessagesViewModel.d.ts +0 -14
- package/dist/Presentation/components/UI/Dialogs/MessagesView/OutGoingMessage/OutGoingMessage.d.ts +0 -9
- package/dist/Presentation/components/UI/Dialogs/MessagesView/useMessagesViewModel.d.ts +0 -4
- package/public/favicon.ico +0 -0
- package/public/index.html +0 -47
- package/public/logo192.png +0 -0
- package/public/logo512.png +0 -0
- package/public/manifest.json +0 -25
- package/public/quickblox.js +0 -54609
- package/public/robots.txt +0 -3
- package/src/App.scss +0 -0
- package/src/App.tsx +0 -246
- package/src/CommonTypes/FunctionResult.ts +0 -63
- package/src/Data/DefaultConfigurations.ts +0 -333
- package/src/Data/Stubs.ts +0 -1131
- package/src/Data/dto/dialog/LocalDialogDTO.ts +0 -42
- package/src/Data/dto/dialog/LocalDialogsDTO.ts +0 -21
- package/src/Data/dto/dialog/RemoteDialogDTO.ts +0 -58
- package/src/Data/dto/dialog/RemoteDialogsDTO.ts +0 -21
- package/src/Data/dto/file/LocalFileDTO.ts +0 -26
- package/src/Data/dto/file/RemoteFileDTO.ts +0 -26
- package/src/Data/dto/message/LocalMessageDTO.ts +0 -51
- package/src/Data/dto/message/LocalMessagesDTO.ts +0 -21
- package/src/Data/dto/message/RemoteMessageDTO.ts +0 -51
- package/src/Data/dto/message/RemoteMessagesDTO.ts +0 -21
- package/src/Data/dto/user/LocalUserDTO.ts +0 -37
- package/src/Data/dto/user/LocalUsersDTO.ts +0 -23
- package/src/Data/dto/user/RemoteUserDTO.ts +0 -37
- package/src/Data/dto/user/RemoteUsersDTO.ts +0 -21
- package/src/Data/mapper/DialogLocalDTOMapper.ts +0 -742
- package/src/Data/mapper/DialogRemoteDTOMapper.ts +0 -777
- package/src/Data/mapper/FileLocalDTOMapper.ts +0 -253
- package/src/Data/mapper/FileRemoteDTOMapper.ts +0 -265
- package/src/Data/mapper/IMapper.ts +0 -14
- package/src/Data/mapper/MessageLocalDTOMapper.ts +0 -426
- package/src/Data/mapper/MessageRemoteDTOMapper.ts +0 -432
- package/src/Data/mapper/UserLocalDTOMapper.ts +0 -381
- package/src/Data/mapper/UserRemoteDTOMapper.ts +0 -393
- package/src/Data/repository/ConnectionRepository.ts +0 -144
- package/src/Data/repository/DialogsRepository.ts +0 -426
- package/src/Data/repository/EventMessagesRepository.ts +0 -325
- package/src/Data/repository/FileRepository.ts +0 -110
- package/src/Data/repository/MessagesRepository.ts +0 -294
- package/src/Data/repository/UsersRepository.ts +0 -324
- package/src/Data/source/AISource.ts +0 -133
- package/src/Data/source/exception/LocalDataSourceException.ts +0 -17
- package/src/Data/source/exception/MapperDTOException.ts +0 -22
- package/src/Data/source/exception/RemoteDataSourceException.ts +0 -28
- package/src/Data/source/exception/RepositoryException.ts +0 -27
- package/src/Data/source/local/ChatLocalStorageDataSource.ts +0 -262
- package/src/Data/source/local/ILocalDataSource.ts +0 -45
- package/src/Data/source/local/ILocalFileDataSource.ts +0 -11
- package/src/Data/source/local/LocalDataSource.ts +0 -377
- package/src/Data/source/local/LocalFileDataSource.ts +0 -22
- package/src/Data/source/remote/IRemoteDataSource.ts +0 -112
- package/src/Data/source/remote/Mapper/DialogDTOMapper.ts +0 -418
- package/src/Data/source/remote/Mapper/FileDTOMapper.ts +0 -276
- package/src/Data/source/remote/Mapper/IDTOMapper.ts +0 -4
- package/src/Data/source/remote/Mapper/MessageDTOMapper.ts +0 -452
- package/src/Data/source/remote/Mapper/UserDTOMapper.ts +0 -344
- package/src/Data/source/remote/RemoteDataSource.ts +0 -1414
- package/src/Domain/entity/Chat.ts +0 -4
- package/src/Domain/entity/ChatMessageAttachmentEntity.ts +0 -15
- package/src/Domain/entity/CustomDataEntity.ts +0 -3
- package/src/Domain/entity/DialogEntity.ts +0 -15
- package/src/Domain/entity/DialogEventInfo.ts +0 -15
- package/src/Domain/entity/DialogTypes.ts +0 -7
- package/src/Domain/entity/EventMessageType.ts +0 -7
- package/src/Domain/entity/FileEntity.ts +0 -11
- package/src/Domain/entity/FileTypes.ts +0 -9
- package/src/Domain/entity/GroupDialogEntity.ts +0 -54
- package/src/Domain/entity/LastMessageEntity.ts +0 -5
- package/src/Domain/entity/MessageEntity.ts +0 -25
- package/src/Domain/entity/NotificationTypes.ts +0 -9
- package/src/Domain/entity/PrivateDialogEntity.ts +0 -46
- package/src/Domain/entity/PublicDialogEntity.ts +0 -80
- package/src/Domain/entity/UserEntity.ts +0 -22
- package/src/Domain/exception/domain/DomainExecption.ts +0 -5
- package/src/Domain/repository/IDialogsRepository.ts +0 -42
- package/src/Domain/repository/IFileRepository.ts +0 -9
- package/src/Domain/repository/IMessagesRepository.ts +0 -28
- package/src/Domain/repository/IUsersRepository.ts +0 -13
- package/src/Domain/repository/Pagination.ts +0 -48
- package/src/Domain/use_cases/CreateDialogUseCase.ts +0 -80
- package/src/Domain/use_cases/GetAllDialogsUseCase.ts +0 -20
- package/src/Domain/use_cases/GetAllDialogsUseCaseWithMock.ts +0 -46
- package/src/Domain/use_cases/GetAllMessagesForDialog.ts +0 -61
- package/src/Domain/use_cases/GetAllUsersUseCase.ts +0 -34
- package/src/Domain/use_cases/GetDialogByIdUseCase.ts +0 -28
- package/src/Domain/use_cases/GetUsersByIdsUseCase.ts +0 -22
- package/src/Domain/use_cases/LeaveDialogUseCase.ts +0 -116
- package/src/Domain/use_cases/RemoveUsersFromTheDialogUseCase.ts +0 -126
- package/src/Domain/use_cases/SendTextMessageUseCase.ts +0 -27
- package/src/Domain/use_cases/SubscribeToDialogEventsUseCase.ts +0 -162
- package/src/Domain/use_cases/SubscribeToDialogsUpdatesUseCase.ts +0 -69
- package/src/Domain/use_cases/SubscribeToDialogsUpdatesUseCaseWithMock.ts +0 -61
- package/src/Domain/use_cases/SyncDialogsUseCase.ts +0 -246
- package/src/Domain/use_cases/UpdateDialogUseCase.ts +0 -72
- package/src/Domain/use_cases/UploadFileUseCase.ts +0 -24
- package/src/Domain/use_cases/UserTypingMessageUseCase.ts +0 -51
- package/src/Domain/use_cases/ai/AIAnswerAssistUseCase.ts +0 -69
- package/src/Domain/use_cases/ai/AIAnswerAssistWithProxyUseCase.ts +0 -71
- package/src/Domain/use_cases/ai/AIRephraseUseCase.ts +0 -89
- package/src/Domain/use_cases/ai/AIRephraseWithProxyUseCase.ts +0 -75
- package/src/Domain/use_cases/ai/AITranslateUseCase.ts +0 -76
- package/src/Domain/use_cases/ai/AITranslateWithProxyUseCase.ts +0 -79
- package/src/Domain/use_cases/base/BaseUseCase.ts +0 -77
- package/src/Domain/use_cases/base/IUseCase.ts +0 -5
- package/src/Domain/use_cases/base/Subscribable/ISubscribable.ts +0 -6
- package/src/Domain/use_cases/base/Subscribable/SubscriptionPerformer.ts +0 -148
- package/src/Presentation/.gitkeep +0 -0
- package/src/Presentation/Views/Base/BaseViewModel.ts +0 -91
- package/src/Presentation/Views/CreateDialogFlow/CreateNewDialogFlow.tsx +0 -188
- package/src/Presentation/Views/Dialogs/DialogViewModel.ts +0 -25
- package/src/Presentation/Views/Dialogs/Dialogs.scss +0 -79
- package/src/Presentation/Views/Dialogs/Dialogs.tsx +0 -400
- package/src/Presentation/Views/Dialogs/useDialogsViewModel.ts +0 -443
- package/src/Presentation/Views/Navigation/More.svg +0 -7
- package/src/Presentation/assets/DarkTheme.ts +0 -58
- package/src/Presentation/assets/DefaultThemes/CustomTheme.ts +0 -58
- package/src/Presentation/assets/DefaultThemes/DefaultTheme.ts +0 -58
- package/src/Presentation/assets/LightTheme.ts +0 -58
- package/src/Presentation/assets/ThemeScheme.ts +0 -83
- package/src/Presentation/assets/UiKitTheme.ts +0 -143
- 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/img/web-doc.png +0 -0
- package/src/Presentation/assets/styles/_fonts.scss +0 -32
- package/src/Presentation/assets/styles/_theme_colors_scheme.scss +0 -56
- package/src/Presentation/assets/styles/_theme_colors_scheme_green.scss +0 -57
- package/src/Presentation/assets/styles/_theme_colors_scheme_pink.scss +0 -72
- package/src/Presentation/assets/styles/_theme_dark.scss +0 -33
- package/src/Presentation/assets/styles/_theme_light.scss +0 -33
- package/src/Presentation/assets/styles/_variables.scss +0 -21
- package/src/Presentation/components/Button.js +0 -5
- package/src/Presentation/components/Navbar.tsx +0 -45
- package/src/Presentation/components/TextInput.js +0 -10
- package/src/Presentation/components/UI/Buttons/ActiveButton/ActiveButton.tsx +0 -40
- package/src/Presentation/components/UI/Buttons/MainBoundedButton/MainBoundedButton.scss +0 -0
- package/src/Presentation/components/UI/Buttons/MainBoundedButton/MainBoundedButton.tsx +0 -30
- package/src/Presentation/components/UI/Buttons/MainButton/MainButton.scss +0 -136
- package/src/Presentation/components/UI/Buttons/MainButton/MainButton.tsx +0 -62
- package/src/Presentation/components/UI/Dialogs/CreateDialog/CreateDialog.scss +0 -45
- package/src/Presentation/components/UI/Dialogs/CreateDialog/CreateDialog.tsx +0 -77
- package/src/Presentation/components/UI/Dialogs/DialogInformation/DialogInformation.scss +0 -429
- package/src/Presentation/components/UI/Dialogs/DialogInformation/DialogInformation.tsx +0 -574
- package/src/Presentation/components/UI/Dialogs/DialogInformation/DialogMemberButton/DialogMembersButton.scss +0 -42
- package/src/Presentation/components/UI/Dialogs/DialogInformation/DialogMemberButton/DialogMembersButton.tsx +0 -26
- package/src/Presentation/components/UI/Dialogs/DialogInformation/UsersList/SingleUser/SingleUser.scss +0 -95
- package/src/Presentation/components/UI/Dialogs/DialogInformation/UsersList/SingleUser/SingleUser.tsx +0 -42
- package/src/Presentation/components/UI/Dialogs/DialogInformation/UsersList/UsersList.scss +0 -60
- package/src/Presentation/components/UI/Dialogs/DialogInformation/UsersList/UsersList.tsx +0 -65
- package/src/Presentation/components/UI/Dialogs/DialogInformation/UsersList/UsersListViewModel.ts +0 -13
- package/src/Presentation/components/UI/Dialogs/DialogInformation/UsersList/useUsersListViewModel.ts +0 -81
- package/src/Presentation/components/UI/Dialogs/EditDialog/EditDialog.scss +0 -199
- package/src/Presentation/components/UI/Dialogs/EditDialog/EditDialog.tsx +0 -277
- package/src/Presentation/components/UI/Dialogs/EditDialog/UserAvatar/UserAvatar.scss +0 -32
- package/src/Presentation/components/UI/Dialogs/EditDialog/UserAvatar/UserAvatar.tsx +0 -59
- package/src/Presentation/components/UI/Dialogs/HeaderDialogs/HeaderDialogs.scss +0 -67
- package/src/Presentation/components/UI/Dialogs/HeaderDialogs/HeaderDialogs.tsx +0 -112
- package/src/Presentation/components/UI/Dialogs/InviteMembers/InviteMembers.scss +0 -149
- package/src/Presentation/components/UI/Dialogs/InviteMembers/InviteMembers.tsx +0 -328
- package/src/Presentation/components/UI/Dialogs/InviteMembers/InviteMembersViewModel.ts +0 -18
- package/src/Presentation/components/UI/Dialogs/InviteMembers/InviteUsersList/SingleUserWithCheckBox/SingleUserWithCheckBox.scss +0 -113
- package/src/Presentation/components/UI/Dialogs/InviteMembers/InviteUsersList/SingleUserWithCheckBox/SingleUserWithCheckBox.tsx +0 -79
- package/src/Presentation/components/UI/Dialogs/InviteMembers/InviteUsersResultViewModel.ts +0 -12
- package/src/Presentation/components/UI/Dialogs/InviteMembers/NotFoundContent/NotFoundContent.scss +0 -37
- package/src/Presentation/components/UI/Dialogs/InviteMembers/NotFoundContent/NotFoundContent.tsx +0 -22
- package/src/Presentation/components/UI/Dialogs/InviteMembers/useInviteMembersViewModel.ts +0 -116
- package/src/Presentation/components/UI/Dialogs/MembersList/MembersList.scss +0 -131
- package/src/Presentation/components/UI/Dialogs/MembersList/MembersList.tsx +0 -93
- package/src/Presentation/components/UI/Dialogs/MessagesView/AIWidgets/AIMessageWidget.ts +0 -40
- package/src/Presentation/components/UI/Dialogs/MessagesView/AIWidgets/AIWidgetActions/AIWidgetActions.scss +0 -55
- package/src/Presentation/components/UI/Dialogs/MessagesView/AIWidgets/AIWidgetActions/AIWidgetActions.tsx +0 -122
- package/src/Presentation/components/UI/Dialogs/MessagesView/AIWidgets/ErrorMessageIcon.tsx +0 -98
- package/src/Presentation/components/UI/Dialogs/MessagesView/AIWidgets/SliderMenu.tsx +0 -172
- package/src/Presentation/components/UI/Dialogs/MessagesView/AIWidgets/Tone.ts +0 -35
- package/src/Presentation/components/UI/Dialogs/MessagesView/AIWidgets/UseDefaultAIAssistAnswerWidget.tsx +0 -83
- package/src/Presentation/components/UI/Dialogs/MessagesView/AIWidgets/UseDefaultAIAssistAnswerWidgetWithProxy.tsx +0 -83
- package/src/Presentation/components/UI/Dialogs/MessagesView/AIWidgets/UseDefaultAIRephraseMessageWidget.tsx +0 -104
- package/src/Presentation/components/UI/Dialogs/MessagesView/AIWidgets/UseDefaultAIRephraseMessageWidgetWithProxy.tsx +0 -102
- package/src/Presentation/components/UI/Dialogs/MessagesView/AIWidgets/UseDefaultAITranslateWidget.tsx +0 -89
- package/src/Presentation/components/UI/Dialogs/MessagesView/AIWidgets/UseDefaultAITranslateWidgetWithProxy.tsx +0 -89
- package/src/Presentation/components/UI/Dialogs/MessagesView/AIWidgets/useDefaultVoiceInputWidget.tsx +0 -87
- package/src/Presentation/components/UI/Dialogs/MessagesView/AudioAttachmentComponent/AudioAttachmentComponent.scss +0 -7
- package/src/Presentation/components/UI/Dialogs/MessagesView/AudioAttachmentComponent/AudioAttachmentComponent.tsx +0 -27
- package/src/Presentation/components/UI/Dialogs/MessagesView/ContextMenu.tsx +0 -95
- package/src/Presentation/components/UI/Dialogs/MessagesView/DefaultAttachmentComponent/DefaultAttachmentComponent.scss +0 -76
- package/src/Presentation/components/UI/Dialogs/MessagesView/DefaultAttachmentComponent/DefaultAttachmentComponent.tsx +0 -40
- package/src/Presentation/components/UI/Dialogs/MessagesView/DropDownMenu/DropDownMenu.scss +0 -84
- package/src/Presentation/components/UI/Dialogs/MessagesView/DropDownMenu/DropDownMenu.tsx +0 -105
- package/src/Presentation/components/UI/Dialogs/MessagesView/DropDownMenu/ItemDropDownMenu/ItemDropDownMenu.scss +0 -50
- package/src/Presentation/components/UI/Dialogs/MessagesView/DropDownMenu/ItemDropDownMenu/ItemDropDownMenu.tsx +0 -43
- package/src/Presentation/components/UI/Dialogs/MessagesView/ErrorToast/ErrorToast.scss +0 -26
- package/src/Presentation/components/UI/Dialogs/MessagesView/ErrorToast/ErrorToast.tsx +0 -25
- package/src/Presentation/components/UI/Dialogs/MessagesView/HeaderMessages/HeaderMessages.scss +0 -133
- package/src/Presentation/components/UI/Dialogs/MessagesView/HeaderMessages/HeaderMessages.tsx +0 -144
- package/src/Presentation/components/UI/Dialogs/MessagesView/HighLightLink/HighLightLink.scss +0 -92
- package/src/Presentation/components/UI/Dialogs/MessagesView/HighLightLink/HighLightLink.tsx +0 -128
- package/src/Presentation/components/UI/Dialogs/MessagesView/ImageAttachmentComponent/ImageAttachmentComponent.scss +0 -11
- package/src/Presentation/components/UI/Dialogs/MessagesView/ImageAttachmentComponent/ImageAttachmentComponent.tsx +0 -27
- package/src/Presentation/components/UI/Dialogs/MessagesView/InComingMessage/AvatarContentIncomingUser/AvatarContentIncomingUser.scss +0 -39
- package/src/Presentation/components/UI/Dialogs/MessagesView/InComingMessage/AvatarContentIncomingUser/AvatarContentIncomingUser.tsx +0 -32
- package/src/Presentation/components/UI/Dialogs/MessagesView/InComingMessage/InComingMessage.scss +0 -392
- package/src/Presentation/components/UI/Dialogs/MessagesView/InComingMessage/InComingMessage.tsx +0 -480
- package/src/Presentation/components/UI/Dialogs/MessagesView/MessagesView.scss +0 -399
- package/src/Presentation/components/UI/Dialogs/MessagesView/MessagesView.tsx +0 -1704
- package/src/Presentation/components/UI/Dialogs/MessagesView/MessagesViewModel.ts +0 -20
- package/src/Presentation/components/UI/Dialogs/MessagesView/OutGoingMessage/OutGoingMessage.scss +0 -7
- package/src/Presentation/components/UI/Dialogs/MessagesView/OutGoingMessage/OutGoingMessage.tsx +0 -99
- package/src/Presentation/components/UI/Dialogs/MessagesView/SystemDateBanner/SystemDateBanner.scss +0 -23
- package/src/Presentation/components/UI/Dialogs/MessagesView/SystemDateBanner/SystemDateBanner.tsx +0 -17
- package/src/Presentation/components/UI/Dialogs/MessagesView/SystemMessageBanner/SystemMessageBanner.scss +0 -21
- package/src/Presentation/components/UI/Dialogs/MessagesView/SystemMessageBanner/SystemMessageBanner.tsx +0 -17
- package/src/Presentation/components/UI/Dialogs/MessagesView/VideoAttachmentComponent/VideoAttachmentComponent.scss +0 -11
- package/src/Presentation/components/UI/Dialogs/MessagesView/VideoAttachmentComponent/VideoAttachmentComponent.tsx +0 -33
- package/src/Presentation/components/UI/Dialogs/MessagesView/VoiceRecordingProgress/VoiceRecordingProgress.scss +0 -35
- package/src/Presentation/components/UI/Dialogs/MessagesView/VoiceRecordingProgress/VoiceRecordingProgress.tsx +0 -89
- package/src/Presentation/components/UI/Dialogs/MessagesView/useMessagesViewModel.ts +0 -516
- package/src/Presentation/components/UI/Dialogs/PreviewDialog/PreviewAudioFile/PreviewAudioFile.scss +0 -62
- package/src/Presentation/components/UI/Dialogs/PreviewDialog/PreviewAudioFile/PreviewAudioFile.tsx +0 -25
- package/src/Presentation/components/UI/Dialogs/PreviewDialog/PreviewDefaultFile/PreviewDefaultFile.scss +0 -61
- package/src/Presentation/components/UI/Dialogs/PreviewDialog/PreviewDefaultFile/PreviewDefaultFile.tsx +0 -32
- package/src/Presentation/components/UI/Dialogs/PreviewDialog/PreviewDialog.scss +0 -126
- package/src/Presentation/components/UI/Dialogs/PreviewDialog/PreviewDialog.tsx +0 -492
- package/src/Presentation/components/UI/Dialogs/PreviewDialog/PreviewDialogViewModel.ts +0 -42
- package/src/Presentation/components/UI/Dialogs/PreviewDialog/PreviewImageFile/PreviewImageFile.scss +0 -40
- package/src/Presentation/components/UI/Dialogs/PreviewDialog/PreviewImageFile/PreviewImageFile.tsx +0 -26
- package/src/Presentation/components/UI/Dialogs/PreviewDialog/PreviewVideoFile/PreviewVideoFile.scss +0 -62
- package/src/Presentation/components/UI/Dialogs/PreviewDialog/PreviewVideoFile/PreviewVideoFile.tsx +0 -25
- package/src/Presentation/components/UI/Dialogs/YesNoQuestion/YesNoQuestion.scss +0 -35
- package/src/Presentation/components/UI/Dialogs/YesNoQuestion/YesNoQuestion.tsx +0 -89
- package/src/Presentation/components/UI/Elements/SwitchButton/SwitchButton.scss +0 -61
- package/src/Presentation/components/UI/Elements/SwitchButton/SwitchButton.tsx +0 -48
- package/src/Presentation/components/UI/Placeholders/ErrorComponent/ErrorComponent.scss +0 -74
- package/src/Presentation/components/UI/Placeholders/ErrorComponent/ErrorComponent.tsx +0 -72
- package/src/Presentation/components/UI/Placeholders/LoaderComponent/LoaderComponent.scss +0 -21
- package/src/Presentation/components/UI/Placeholders/LoaderComponent/LoaderComponent.tsx +0 -41
- package/src/Presentation/components/UI/svgs/ActiveSvg/ActiveSvg.scss +0 -3
- package/src/Presentation/components/UI/svgs/ActiveSvg/ActiveSvg.tsx +0 -41
- package/src/Presentation/components/UI/svgs/Icons/AIWidgets/AIWidget/Send.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/AIWidgets/AIWidget/index.tsx +0 -39
- package/src/Presentation/components/UI/svgs/Icons/AIWidgets/BookIcon/BookIcon.tsx +0 -7
- package/src/Presentation/components/UI/svgs/Icons/AIWidgets/BotIcon/BotIcon.svg +0 -5
- package/src/Presentation/components/UI/svgs/Icons/AIWidgets/BotIcon/BotIcon.tsx +0 -50
- package/src/Presentation/components/UI/svgs/Icons/AIWidgets/HammerIcon/index.tsx +0 -7
- package/src/Presentation/components/UI/svgs/Icons/AIWidgets/HandshakeIcon/index.tsx +0 -7
- package/src/Presentation/components/UI/svgs/Icons/AIWidgets/MuscleIcon/index.tsx +0 -7
- package/src/Presentation/components/UI/svgs/Icons/AIWidgets/NecktieIcon/index.tsx +0 -7
- package/src/Presentation/components/UI/svgs/Icons/AIWidgets/NeutralFaceIcon/index.tsx +0 -7
- package/src/Presentation/components/UI/svgs/Icons/AIWidgets/PalmsUpTogetherIcon/index.tsx +0 -7
- package/src/Presentation/components/UI/svgs/Icons/AIWidgets/PerformingArtsIcon/index.tsx +0 -7
- package/src/Presentation/components/UI/svgs/Icons/AIWidgets/PointUpIcon/index.tsx +0 -7
- package/src/Presentation/components/UI/svgs/Icons/AIWidgets/SmileyIcon/index.tsx +0 -20
- package/src/Presentation/components/UI/svgs/Icons/AIWidgets/SmirkIcon/index.tsx +0 -7
- package/src/Presentation/components/UI/svgs/Icons/AIWidgets/WhiteCheckMarkIcon/index.tsx +0 -7
- package/src/Presentation/components/UI/svgs/Icons/Actions/Add/Add.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Add/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/AddContact/Add contact.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/AddContact/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/Archive/Archive.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Archive/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/AssistAnswer/AssistAnswer.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/AssistAnswer/index.tsx +0 -93
- package/src/Presentation/components/UI/svgs/Icons/Actions/Copy/Copy.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Copy/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/Delete/Delete.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Delete/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/Download/Download.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Download/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/Edit/Edit.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Edit/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/EditDots/EditDots.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/EditDots/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/Emoji/Emoji.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Emoji/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/ForwardFilled/Forward filled.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/ForwardFilled/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/Hungup/Hungup.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Hungup/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/IncomeCall/Income call.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/IncomeCall/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/Like/Like.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Like/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/NewChat/New chat.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/NewChat/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/OutcomeCall/Outcome call.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/OutcomeCall/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/Phone/Phone.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Phone/index.tsx +0 -35
- package/src/Presentation/components/UI/svgs/Icons/Actions/PhoneFilled/Phone filled.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/PhoneFilled/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/Remove/Remove.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Remove/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/Remove2/Remove2.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Remove2/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/ReplyFilled/Reply filled.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/ReplyFilled/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/Send/Send.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Send/index.tsx +0 -38
- package/src/Presentation/components/UI/svgs/Icons/Actions/Share/Share.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Share/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/Summarize/Summarize.svg +0 -6
- package/src/Presentation/components/UI/svgs/Icons/Actions/Summarize/index.tsx +0 -58
- package/src/Presentation/components/UI/svgs/Icons/Actions/SwapCamera/Swap camera.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/SwapCamera/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/Tone/Tone.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Tone/index.tsx +0 -34
- package/src/Presentation/components/UI/svgs/Icons/Actions/Unarchive/Unarchive.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Unarchive/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/VideoIcon/Video.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/VideoIcon/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Actions/Voice/Voice.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Actions/Voice/index.tsx +0 -35
- package/src/Presentation/components/UI/svgs/Icons/Contents/Brodcast/Broadcast.svg +0 -7
- package/src/Presentation/components/UI/svgs/Icons/Contents/Brodcast/index.tsx +0 -38
- package/src/Presentation/components/UI/svgs/Icons/Contents/Chat/Chat.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Contents/Chat/index.tsx +0 -35
- package/src/Presentation/components/UI/svgs/Icons/Contents/ChatFilled/Chat filled.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Contents/ChatFilled/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Contents/Conference/Conference.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Contents/Conference/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Contents/Contact/Contact.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Contents/Contact/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Contents/ContactFilled/Contact filled.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Contents/ContactFilled/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Contents/GroupChat/Group chat.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Contents/GroupChat/index.tsx +0 -35
- package/src/Presentation/components/UI/svgs/Icons/Contents/Notifications/Notifications.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Contents/Notifications/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Contents/PrivateChat/Private chat.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Contents/PrivateChat/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Contents/PublicChannel/Public channel.svg +0 -7
- package/src/Presentation/components/UI/svgs/Icons/Contents/PublicChannel/index.tsx +0 -67
- package/src/Presentation/components/UI/svgs/Icons/Contents/Stream/Stream.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Contents/Stream/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Contents/StreamFilled/Stream filled.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Contents/StreamFilled/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Contents/User/User.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Contents/User/index.tsx +0 -35
- package/src/Presentation/components/UI/svgs/Icons/IconsCommonTypes.ts +0 -6
- package/src/Presentation/components/UI/svgs/Icons/Media/Attachment/Attachment.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Media/Attachment/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Media/AudioFile/Audio file.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Media/AudioFile/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Media/BrokenFile/Broken file.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Media/BrokenFile/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Media/Camera/Camera.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Media/Camera/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Media/GifFile/GIF file.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Media/GifFile/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Media/ImageEmpty/Image.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Media/ImageEmpty/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Media/ImageFile/File.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Media/ImageFile/index.tsx +0 -35
- package/src/Presentation/components/UI/svgs/Icons/Media/ImageFilled/Image filled.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Media/ImageFilled/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Media/LinkWeb/Link.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Media/LinkWeb/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Media/Location/Location.svg +0 -4
- package/src/Presentation/components/UI/svgs/Icons/Media/Location/index.tsx +0 -26
- package/src/Presentation/components/UI/svgs/Icons/Media/TextDocument/Text document.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Media/TextDocument/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Media/Translate/Translate.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Media/Translate/index.tsx +0 -35
- package/src/Presentation/components/UI/svgs/Icons/Media/VideoFile/Video file.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Media/VideoFile/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Moderation/Admin/Admin.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Moderation/Admin/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Moderation/Banned/Banned.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Moderation/Banned/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Moderation/Freeze/Freeze.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Moderation/Freeze/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Moderation/Moderations/Moderations.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Moderation/Moderations/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Moderation/Muted/Muted.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Moderation/Muted/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Navigation/ArrowLeft/Arrow left.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Navigation/ArrowLeft/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Navigation/ArrowRight/Arrow right.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Navigation/ArrowRight/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Back/Back.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Back/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Close/Close.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Close/index.tsx +0 -35
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Down/Down.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Down/index.tsx +0 -35
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Leave/Leave.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Leave/index.tsx +0 -35
- package/src/Presentation/components/UI/svgs/Icons/Navigation/More/More.svg +0 -7
- package/src/Presentation/components/UI/svgs/Icons/Navigation/More/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Next/Next.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Next/index.tsx +0 -35
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Plus/Plus.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Plus/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Refresh/Refresh.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Refresh/index.tsx +0 -36
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Search/Search.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Search/index.tsx +0 -35
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Settings/Settings.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Navigation/Settings/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Navigation/SettingsField/Settings filled.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Navigation/SettingsField/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Status/Error/Error.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Status/Error/index.tsx +0 -36
- package/src/Presentation/components/UI/svgs/Icons/Status/Help/Help.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Status/Help/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Status/Information/Information.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Status/Information/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Status/InformationFill/index.tsx +0 -35
- package/src/Presentation/components/UI/svgs/Icons/Status/Loader/Loader.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Status/Loader/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Status/Mention/Mention.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Status/Mention/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Status/Sent/Sent.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Status/Sent/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Status/ViewedDelivered/Viewed_Delivered.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Status/ViewedDelivered/index.tsx +0 -38
- package/src/Presentation/components/UI/svgs/Icons/Toggle/CameraOff/Camera off.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/CameraOff/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/CameraOn/Camera on.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/CameraOn/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/CheckOff/Check off.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/CheckOff/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/CheckOn/Check on.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/CheckOn/index.tsx +0 -24
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Favourite/Favourite.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Favourite/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/FavouriteFilled/Favourite filled.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/FavouriteFilled/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/FullScreen/Full screen.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/FullScreen/inex.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Hide/Hide.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Hide/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/ImagePlay/Play.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/ImagePlay/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Louder/Louder.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Louder/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/MicOff/Mic off.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/MicOff/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/MicOn/Mic on.svg +0 -4
- package/src/Presentation/components/UI/svgs/Icons/Toggle/MicOn/index.tsx +0 -26
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Minimize/Minimize.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Minimize/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/NotifyOff/Notify off.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/NotifyOff/index.tsx +0 -35
- package/src/Presentation/components/UI/svgs/Icons/Toggle/NotifyOn/Notify on.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/NotifyOn/index.tsx +0 -35
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Pause/Pause.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Pause/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Quite/Quite.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Quite/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Record/Record.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Record/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Screenshare/Screenshare.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Screenshare/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Show/Show.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Show/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Speaker/Speaker.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/Speaker/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/SpeakerOff/Speaker off.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/SpeakerOff/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/StopRecord/Stop record.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/StopRecord/index.tsx +0 -22
- package/src/Presentation/components/UI/svgs/Icons/Toggle/StopShare/Stop share.svg +0 -3
- package/src/Presentation/components/UI/svgs/Icons/Toggle/StopShare/index.tsx +0 -22
- package/src/Presentation/components/containers/ColumnContainer/ColumnContainer.scss +0 -6
- package/src/Presentation/components/containers/ColumnContainer/ColumnContainer.tsx +0 -24
- package/src/Presentation/components/containers/RowCenterContainer/RowCenterContainer.scss +0 -45
- package/src/Presentation/components/containers/RowCenterContainer/RowCenterContainer.tsx +0 -95
- package/src/Presentation/components/containers/RowLeftContainer/RowLeftContainer.scss +0 -45
- package/src/Presentation/components/containers/RowLeftContainer/RowLeftContainer.tsx +0 -97
- package/src/Presentation/components/containers/RowRightContainer/RowRightContainer.scss +0 -46
- package/src/Presentation/components/containers/RowRightContainer/RowRightContainer.tsx +0 -97
- package/src/Presentation/components/containers/ScrollableContainer/ScrollableContainer.scss +0 -45
- package/src/Presentation/components/containers/ScrollableContainer/ScrollableContainer.tsx +0 -85
- package/src/Presentation/components/layouts/Desktop/DesktopLayout.scss +0 -31
- package/src/Presentation/components/layouts/Desktop/DesktopLayout.tsx +0 -52
- package/src/Presentation/components/layouts/Desktop/QuickBloxUIKitDesktopLayout.tsx +0 -382
- package/src/Presentation/components/layouts/LayoutCommonTypes.ts +0 -7
- package/src/Presentation/components/layouts/TestStage/CompanyLogo/CompanyLogo.tsx +0 -27
- package/src/Presentation/components/layouts/TestStage/LoginView/Login.scss +0 -71
- package/src/Presentation/components/layouts/TestStage/LoginView/Login.tsx +0 -95
- package/src/Presentation/components/layouts/TestStage/TestStageMarkup.scss +0 -24
- package/src/Presentation/components/layouts/TestStage/TestStageMarkup.tsx +0 -1109
- package/src/Presentation/components/providers/ModalContextProvider/Modal.scss +0 -71
- package/src/Presentation/components/providers/ModalContextProvider/Modal.tsx +0 -131
- package/src/Presentation/components/providers/ModalContextProvider/ModalContextProvider.tsx +0 -38
- package/src/Presentation/components/providers/ModalContextProvider/useModal.ts +0 -39
- package/src/Presentation/components/providers/ProviderProps.ts +0 -5
- package/src/Presentation/components/providers/QuickBloxUIKitProvider/QuickBloxUIKitProvider.tsx +0 -344
- package/src/Presentation/components/providers/QuickBloxUIKitProvider/useEventMessagesRepository.ts +0 -10
- package/src/Presentation/components/providers/QuickBloxUIKitProvider/useQBConnection.ts +0 -38
- package/src/Presentation/components/providers/QuickBloxUIKitProvider/useQbInitializedDataContext.ts +0 -83
- package/src/Presentation/components/providers/QuickBloxUIKitProvider/useQbUIKitDataContext.ts +0 -11
- package/src/QBconfig.ts +0 -221
- package/src/index-ui.ts +0 -84
- package/src/index.scss +0 -17
- package/src/index.tsx +0 -25
- package/src/logo.svg +0 -1
- package/src/package_artan_react_ui.json +0 -91
- package/src/package_original.json +0 -115
- package/src/qb-api-calls/index.ts +0 -581
- package/src/react-app-env.d.ts +0 -1
- package/src/setupTests.ts +0 -5
- package/src/utils/DateTimeFormatter.ts +0 -35
- package/src/utils/parse.ts +0 -74
- package/src/utils/utils.ts +0 -102
- package/tsconfig.json +0 -33
- package/typedoc.json +0 -4
- package/webpack.config.js +0 -56
- /package/dist/Presentation/{components/UI/Dialogs/MessagesView → Views/Dialog}/AIWidgets/AIWidgetActions/AIWidgetActions.d.ts +0 -0
- /package/dist/Presentation/{components/UI/Dialogs/MessagesView → Views/Dialog}/AIWidgets/ErrorMessageIcon.d.ts +0 -0
- /package/dist/Presentation/{components/UI/Dialogs/MessagesView → Views/Dialog}/AIWidgets/SliderMenu.d.ts +0 -0
- /package/dist/Presentation/{components/UI/Dialogs/MessagesView → Views/Dialog}/AIWidgets/Tone.d.ts +0 -0
- /package/dist/Presentation/{components/UI/Dialogs/MessagesView → Views/Dialog}/AIWidgets/UseDefaultAIAssistAnswerWidget.d.ts +0 -0
- /package/dist/Presentation/{components/UI/Dialogs/MessagesView → Views/Dialog}/AIWidgets/UseDefaultAIAssistAnswerWidgetWithProxy.d.ts +0 -0
- /package/dist/Presentation/{components/UI/Dialogs/MessagesView → Views/Dialog}/AIWidgets/UseDefaultAIRephraseMessageWidget.d.ts +0 -0
- /package/dist/Presentation/{components/UI/Dialogs/MessagesView → Views/Dialog}/AIWidgets/UseDefaultAIRephraseMessageWidgetWithProxy.d.ts +0 -0
- /package/dist/Presentation/{components/UI/Dialogs/MessagesView → Views/Dialog}/AIWidgets/UseDefaultAITranslateWidget.d.ts +0 -0
- /package/dist/Presentation/{components/UI/Dialogs/MessagesView → Views/Dialog}/AIWidgets/UseDefaultAITranslateWidgetWithProxy.d.ts +0 -0
- /package/dist/Presentation/{components/UI/Dialogs/MessagesView → Views/Dialog}/AIWidgets/useDefaultVoiceInputWidget.d.ts +0 -0
- /package/dist/Presentation/{components/UI/Dialogs/MessagesView → Views/Dialog}/DefaultAttachmentComponent/DefaultAttachmentComponent.d.ts +0 -0
- /package/dist/Presentation/{components/UI/Dialogs/MessagesView → Views/Dialog}/ErrorToast/ErrorToast.d.ts +0 -0
- /package/dist/Presentation/{components/UI/Dialogs/MessagesView → Views/Dialog}/HighLightLink/HighLightLink.d.ts +0 -0
- /package/dist/Presentation/{components/UI/Dialogs/MessagesView/InComingMessage → Views/Dialog/IncomingMessage}/AvatarContentIncomingUser/AvatarContentIncomingUser.d.ts +0 -0
- /package/dist/Presentation/{components/UI/Dialogs/MessagesView → Views/Dialog}/SystemDateBanner/SystemDateBanner.d.ts +0 -0
- /package/dist/Presentation/{components/UI/Dialogs/MessagesView → Views/Dialog}/SystemMessageBanner/SystemMessageBanner.d.ts +0 -0
- /package/dist/Presentation/{components/UI/Dialogs → Views}/InviteMembers/NotFoundContent/NotFoundContent.d.ts +0 -0
- /package/dist/Presentation/{components/UI/Dialogs → Views}/InviteMembers/useInviteMembersViewModel.d.ts +0 -0
- /package/dist/Presentation/{components/UI/Dialogs → Views}/PreviewDialog/PreviewAudioFile/PreviewAudioFile.d.ts +0 -0
- /package/dist/Presentation/{components/UI/Dialogs → Views}/PreviewDialog/PreviewDefaultFile/PreviewDefaultFile.d.ts +0 -0
- /package/dist/Presentation/{components/UI/Dialogs → Views}/PreviewDialog/PreviewImageFile/PreviewImageFile.d.ts +0 -0
- /package/dist/Presentation/{components/UI/Dialogs → Views}/PreviewDialog/PreviewVideoFile/PreviewVideoFile.d.ts +0 -0
- /package/dist/Presentation/{components/layouts → layouts}/LayoutCommonTypes.d.ts +0 -0
- /package/dist/Presentation/{components/layouts → layouts}/TestStage/CompanyLogo/CompanyLogo.d.ts +0 -0
- /package/dist/Presentation/{components/layouts → layouts}/TestStage/TestStageMarkup.d.ts +0 -0
- /package/dist/Presentation/{components/providers → providers}/ModalContextProvider/Modal.d.ts +0 -0
- /package/dist/Presentation/{components/providers → providers}/ModalContextProvider/ModalContextProvider.d.ts +0 -0
- /package/dist/Presentation/{components/providers → providers}/ModalContextProvider/useModal.d.ts +0 -0
- /package/dist/Presentation/{components/providers → providers}/ProviderProps.d.ts +0 -0
- /package/dist/Presentation/{components/providers → providers}/QuickBloxUIKitProvider/useQbInitializedDataContext.d.ts +0 -0
- /package/dist/Presentation/{components/providers → providers}/QuickBloxUIKitProvider/useQbUIKitDataContext.d.ts +0 -0
- /package/dist/Presentation/{assets → themes}/DarkTheme.d.ts +0 -0
- /package/dist/Presentation/{assets → themes}/DefaultThemes/CustomTheme.d.ts +0 -0
- /package/dist/Presentation/{assets → themes}/DefaultThemes/DefaultTheme.d.ts +0 -0
- /package/dist/Presentation/{assets → themes}/LightTheme.d.ts +0 -0
- /package/dist/Presentation/{assets → themes}/ThemeScheme.d.ts +0 -0
- /package/dist/Presentation/{assets → themes}/UiKitTheme.d.ts +0 -0
|
@@ -1,1414 +0,0 @@
|
|
|
1
|
-
import { RemoteDialogDTO } from '../../dto/dialog/RemoteDialogDTO';
|
|
2
|
-
import {
|
|
3
|
-
INCORRECT_REMOTE_DATASOURCE_DATA_EXCEPTION_CODE,
|
|
4
|
-
INCORRECT_REMOTE_DATASOURCE_DATA_EXCEPTION_MESSAGE,
|
|
5
|
-
NOT_FOUND_REMOTE_DATASOURCE_EXCEPTION_CODE,
|
|
6
|
-
NOT_FOUND_REMOTE_DATASOURCE_EXCEPTION_MESSAGE,
|
|
7
|
-
RemoteDataSourceException,
|
|
8
|
-
} from '../exception/RemoteDataSourceException';
|
|
9
|
-
import { RemoteDialogsDTO } from '../../dto/dialog/RemoteDialogsDTO';
|
|
10
|
-
import { RemoteMessageDTO } from '../../dto/message/RemoteMessageDTO';
|
|
11
|
-
import { RemoteUserDTO } from '../../dto/user/RemoteUserDTO';
|
|
12
|
-
import { RemoteUsersDTO } from '../../dto/user/RemoteUsersDTO';
|
|
13
|
-
import { RemoteMessagesDTO } from '../../dto/message/RemoteMessagesDTO';
|
|
14
|
-
import { RemoteFileDTO } from '../../dto/file/RemoteFileDTO';
|
|
15
|
-
import { Pagination } from '../../../Domain/repository/Pagination';
|
|
16
|
-
import { DialogDTOMapper } from './Mapper/DialogDTOMapper';
|
|
17
|
-
import { IDTOMapper } from './Mapper/IDTOMapper';
|
|
18
|
-
import { Stubs } from '../../Stubs';
|
|
19
|
-
import {
|
|
20
|
-
QBChatConnect,
|
|
21
|
-
QBChatDisconnect,
|
|
22
|
-
qbChatGetMessagesExtended,
|
|
23
|
-
QBChatMarkMessageRead,
|
|
24
|
-
QBChatSendMessage,
|
|
25
|
-
QBChatSendSystemMessage,
|
|
26
|
-
QBCreateAndUploadContent,
|
|
27
|
-
QBCreateGroupDialog,
|
|
28
|
-
QBCreatePrivateDialog,
|
|
29
|
-
QBCreateSession,
|
|
30
|
-
QBDeleteDialog,
|
|
31
|
-
QBGetDialogById,
|
|
32
|
-
QBGetDialogs,
|
|
33
|
-
QBInit,
|
|
34
|
-
QBInitParams,
|
|
35
|
-
QBJoinGroupDialog,
|
|
36
|
-
QBLogout,
|
|
37
|
-
QBSendIsStopTypingStatus,
|
|
38
|
-
QBSendIsTypingStatus,
|
|
39
|
-
QBUpdateDialog,
|
|
40
|
-
QBUsersGet,
|
|
41
|
-
QBUsersGetById,
|
|
42
|
-
} from '../../../qb-api-calls';
|
|
43
|
-
import { UserDTOMapper } from './Mapper/UserDTOMapper';
|
|
44
|
-
import { MessageDTOMapper } from './Mapper/MessageDTOMapper';
|
|
45
|
-
import { IMapper } from '../../mapper/IMapper';
|
|
46
|
-
import { DialogRemoteDTOMapper } from '../../mapper/DialogRemoteDTOMapper';
|
|
47
|
-
import { DialogEntity } from '../../../Domain/entity/DialogEntity';
|
|
48
|
-
import RepositoryException from '../exception/RepositoryException';
|
|
49
|
-
import { MapperDTOException } from '../exception/MapperDTOException';
|
|
50
|
-
import { stringifyError } from '../../../utils/parse';
|
|
51
|
-
import { DialogType } from '../../../Domain/entity/DialogTypes';
|
|
52
|
-
import { NotificationTypes } from '../../../Domain/entity/NotificationTypes';
|
|
53
|
-
import EventMessageType from '../../../Domain/entity/EventMessageType';
|
|
54
|
-
import { SubscriptionPerformer } from '../../../Domain/use_cases/base/Subscribable/SubscriptionPerformer';
|
|
55
|
-
import { CallBackFunction } from '../../../Domain/use_cases/base/IUseCase';
|
|
56
|
-
import { FileDTOMapper } from './Mapper/FileDTOMapper';
|
|
57
|
-
import { DialogEventInfo } from '../../../Domain/entity/DialogEventInfo';
|
|
58
|
-
import { IRemoteDataSource } from './IRemoteDataSource';
|
|
59
|
-
import { QBConfig } from '../../../QBconfig';
|
|
60
|
-
|
|
61
|
-
export type PaginatedDTOResult = {
|
|
62
|
-
// PaginatedList: Record<number, RemoteUserDTO[]>;
|
|
63
|
-
PaginationResult: Pagination;
|
|
64
|
-
ResultData: RemoteUserDTO[];
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
export type LoginData = {
|
|
68
|
-
login: string;
|
|
69
|
-
password: string;
|
|
70
|
-
};
|
|
71
|
-
export type AuthorizationData = {
|
|
72
|
-
sessionToken: string;
|
|
73
|
-
userId: number;
|
|
74
|
-
password: string;
|
|
75
|
-
userName: string;
|
|
76
|
-
};
|
|
77
|
-
|
|
78
|
-
export class RemoteDataSource implements IRemoteDataSource {
|
|
79
|
-
// private dialogDTOMapper: IDTOMapper;
|
|
80
|
-
|
|
81
|
-
private userDTOMapper: IDTOMapper;
|
|
82
|
-
|
|
83
|
-
private messageDTOMapper: IDTOMapper;
|
|
84
|
-
|
|
85
|
-
private fileDTOMapper: IDTOMapper;
|
|
86
|
-
|
|
87
|
-
private _needInit: boolean;
|
|
88
|
-
|
|
89
|
-
private _authProcessed: boolean;
|
|
90
|
-
|
|
91
|
-
get authProcessed(): boolean {
|
|
92
|
-
// return this._authProcessed || QB.chat.isConnected;
|
|
93
|
-
// return this._authProcessed;// work
|
|
94
|
-
const auth = this._authProcessed;
|
|
95
|
-
const chatConnection = QB && QB.chat && QB.chat.isConnected;
|
|
96
|
-
|
|
97
|
-
if (chatConnection) return true;
|
|
98
|
-
|
|
99
|
-
return auth || chatConnection;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
set authProcessed(value: boolean) {
|
|
103
|
-
this._authProcessed = value;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
get needInit(): boolean {
|
|
107
|
-
// return this._needInit || QB.chat.isConnected;
|
|
108
|
-
// return this._needInit; // work
|
|
109
|
-
const needed = this._needInit;
|
|
110
|
-
const chatConnection = QB && QB.chat && QB.chat.isConnected;
|
|
111
|
-
|
|
112
|
-
if (chatConnection) return false;
|
|
113
|
-
|
|
114
|
-
return needed;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
public setAuthProcessedSuccessed() {
|
|
118
|
-
this.authProcessed = true;
|
|
119
|
-
this.setInitSDKSuccessed();
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
public setInitSDKSuccessed() {
|
|
123
|
-
this._needInit = false;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
private _authInformation: AuthorizationData | undefined;
|
|
127
|
-
|
|
128
|
-
get authInformation(): AuthorizationData | undefined {
|
|
129
|
-
return this._authInformation;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
set authInformation(value: AuthorizationData | undefined) {
|
|
133
|
-
this._authInformation = value;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
//
|
|
137
|
-
getCurrentDialogDTOMapper(): IDTOMapper {
|
|
138
|
-
const currentUserId: number = this._authInformation?.userId || -1;
|
|
139
|
-
const dialogDTOMapper: IDTOMapper = new DialogDTOMapper(currentUserId);
|
|
140
|
-
|
|
141
|
-
return dialogDTOMapper;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
//
|
|
145
|
-
constructor() {
|
|
146
|
-
console.log('CONSTRUCTOR RemoteDataSourceMock');
|
|
147
|
-
this.userDTOMapper = new UserDTOMapper();
|
|
148
|
-
this.messageDTOMapper = new MessageDTOMapper();
|
|
149
|
-
this.fileDTOMapper = new FileDTOMapper();
|
|
150
|
-
this._needInit = true;
|
|
151
|
-
this._authProcessed = false;
|
|
152
|
-
this.subscriptionOnSystemMessages[NotificationTypes.REMOVE_USER] =
|
|
153
|
-
new SubscriptionPerformer<RemoteMessageDTO>();
|
|
154
|
-
this.subscriptionOnSystemMessages[NotificationTypes.UPDATE_DIALOG] =
|
|
155
|
-
new SubscriptionPerformer<RemoteMessageDTO>();
|
|
156
|
-
this.subscriptionOnSystemMessages[NotificationTypes.DELETE_LEAVE_DIALOG] =
|
|
157
|
-
new SubscriptionPerformer<RemoteMessageDTO>();
|
|
158
|
-
this.subscriptionOnSystemMessages[NotificationTypes.NEW_DIALOG] =
|
|
159
|
-
new SubscriptionPerformer<RemoteMessageDTO>();
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
public async setUpMockStorage(): Promise<void> {
|
|
163
|
-
// const dialogs: RemoteDialogDTO[] = Stubs.createArrayPublicDialogDTO();
|
|
164
|
-
//
|
|
165
|
-
// dialogs.forEach((item) => {
|
|
166
|
-
// // eslint-disable-next-line promise/catch-or-return,promise/always-return,@typescript-eslint/no-unused-vars
|
|
167
|
-
// this.createDialog(item).then((_) => {
|
|
168
|
-
// console.log(`added mock item ${JSON.stringify(item)}`);
|
|
169
|
-
// });
|
|
170
|
-
// });
|
|
171
|
-
|
|
172
|
-
const dialogsDTOtoEntityMapper: IMapper = new DialogRemoteDTOMapper();
|
|
173
|
-
const dialogsEntities = Stubs.createDialogsForTest();
|
|
174
|
-
|
|
175
|
-
// eslint-disable-next-line no-restricted-syntax
|
|
176
|
-
for (const item of dialogsEntities) {
|
|
177
|
-
const dialogDTO: RemoteDialogDTO =
|
|
178
|
-
// eslint-disable-next-line no-await-in-loop
|
|
179
|
-
await dialogsDTOtoEntityMapper.fromEntity<
|
|
180
|
-
DialogEntity,
|
|
181
|
-
RemoteDialogDTO
|
|
182
|
-
>(item);
|
|
183
|
-
|
|
184
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars,promise/catch-or-return,promise/always-return
|
|
185
|
-
this.createDialog(dialogDTO)
|
|
186
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars,promise/always-return
|
|
187
|
-
.then((_) => {
|
|
188
|
-
console.log(`added mock item ${JSON.stringify(dialogDTO)}`);
|
|
189
|
-
})
|
|
190
|
-
.catch((e) => {
|
|
191
|
-
console.log('EXCEPTION:', (e as RepositoryException).message);
|
|
192
|
-
});
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
// eslint-disable-next-line class-methods-use-this
|
|
197
|
-
private async createUserSession(loginData: QBLoginParams) {
|
|
198
|
-
const session: QBSession = await QBCreateSession(loginData);
|
|
199
|
-
|
|
200
|
-
return session;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
// eslint-disable-next-line class-methods-use-this
|
|
204
|
-
public static initSDK(sdkParams: QBInitParams): boolean {
|
|
205
|
-
console.log('2. call initSDK in RemoteDataSourceMock');
|
|
206
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
207
|
-
// @ts-ignore
|
|
208
|
-
if (!window.QB) {
|
|
209
|
-
throw new Error('HAVE NO SDK');
|
|
210
|
-
} else {
|
|
211
|
-
console.log('2. start init actions');
|
|
212
|
-
QBInit({
|
|
213
|
-
appIdOrToken: sdkParams.appIdOrToken,
|
|
214
|
-
authKeyOrAppId: sdkParams.authKeyOrAppId,
|
|
215
|
-
authSecret: sdkParams.authSecret,
|
|
216
|
-
accountKey: sdkParams.accountKey,
|
|
217
|
-
config: sdkParams.config,
|
|
218
|
-
});
|
|
219
|
-
const QuickBloxVersion = `CALL initData: Init SDK was success: version ${QB.version} build ${QB.buildNumber}`;
|
|
220
|
-
|
|
221
|
-
console.log(QuickBloxVersion);
|
|
222
|
-
|
|
223
|
-
return true;
|
|
224
|
-
}
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
public async initSDKWithUser(
|
|
228
|
-
sdkParams: QBInitParams,
|
|
229
|
-
authData: LoginData,
|
|
230
|
-
): Promise<void> {
|
|
231
|
-
console.log('2. call initSDK in RemoteDataSourceMock');
|
|
232
|
-
if (this.needInit) {
|
|
233
|
-
console.log('2. start init actions');
|
|
234
|
-
QBInit({
|
|
235
|
-
appIdOrToken: sdkParams.appIdOrToken,
|
|
236
|
-
authKeyOrAppId: sdkParams.authKeyOrAppId,
|
|
237
|
-
authSecret: sdkParams.authSecret,
|
|
238
|
-
accountKey: sdkParams.accountKey,
|
|
239
|
-
config: sdkParams.config,
|
|
240
|
-
});
|
|
241
|
-
const QuickBloxVersion = `CALL initData: Init SDK was success: version ${QB.version} build ${QB.buildNumber}`;
|
|
242
|
-
|
|
243
|
-
console.log(QuickBloxVersion);
|
|
244
|
-
//
|
|
245
|
-
this._needInit = false;
|
|
246
|
-
await this.loginWithUser(authData);
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
public async disconnectAndLogoutUser() {
|
|
251
|
-
if (this.authProcessed) {
|
|
252
|
-
QBChatDisconnect();
|
|
253
|
-
await QBLogout();
|
|
254
|
-
this.authProcessed = false;
|
|
255
|
-
this.releaseSubscriptions();
|
|
256
|
-
this.releaseEventsHandlers();
|
|
257
|
-
}
|
|
258
|
-
}
|
|
259
|
-
|
|
260
|
-
releaseSubscriptions(): void {
|
|
261
|
-
Object.entries(this.subscriptionOnSystemMessages).map((x) => {
|
|
262
|
-
const eventName = x[0];
|
|
263
|
-
|
|
264
|
-
return this.subscriptionOnSystemMessages[eventName].release();
|
|
265
|
-
});
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
subscribeOnSystemMessaging(
|
|
269
|
-
notificationType: NotificationTypes,
|
|
270
|
-
callback: CallBackFunction<RemoteMessageDTO>,
|
|
271
|
-
): void {
|
|
272
|
-
let SystemMessageType: string = NotificationTypes.NEW_DIALOG;
|
|
273
|
-
|
|
274
|
-
switch (notificationType) {
|
|
275
|
-
case NotificationTypes.REMOVE_USER:
|
|
276
|
-
SystemMessageType = NotificationTypes.REMOVE_USER;
|
|
277
|
-
break;
|
|
278
|
-
case NotificationTypes.DELETE_LEAVE_DIALOG:
|
|
279
|
-
SystemMessageType = NotificationTypes.DELETE_LEAVE_DIALOG;
|
|
280
|
-
break;
|
|
281
|
-
case NotificationTypes.UPDATE_DIALOG:
|
|
282
|
-
SystemMessageType = NotificationTypes.UPDATE_DIALOG;
|
|
283
|
-
break;
|
|
284
|
-
default:
|
|
285
|
-
SystemMessageType = NotificationTypes.NEW_DIALOG;
|
|
286
|
-
break;
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
this.subscriptionOnSystemMessages[SystemMessageType].subscribe(
|
|
290
|
-
callback,
|
|
291
|
-
EventMessageType.SystemMessage,
|
|
292
|
-
);
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
protected subscriptionOnSystemMessages: Dictionary<
|
|
296
|
-
SubscriptionPerformer<RemoteMessageDTO>
|
|
297
|
-
> = {};
|
|
298
|
-
|
|
299
|
-
subscribeOnMessaging(callback: CallBackFunction<RemoteMessageDTO>): void {
|
|
300
|
-
this.subscriptionOnChatMessages.subscribe(
|
|
301
|
-
callback,
|
|
302
|
-
EventMessageType.RegularMessage,
|
|
303
|
-
);
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
protected subscriptionOnChatMessages: SubscriptionPerformer<RemoteMessageDTO> =
|
|
307
|
-
new SubscriptionPerformer<RemoteMessageDTO>();
|
|
308
|
-
|
|
309
|
-
protected subscriptionOnMessageStatus: SubscriptionPerformer<DialogEventInfo> =
|
|
310
|
-
new SubscriptionPerformer<DialogEventInfo>();
|
|
311
|
-
|
|
312
|
-
protected subscriptionOnSessionExpiredListener: SubscriptionPerformer<boolean> =
|
|
313
|
-
new SubscriptionPerformer<boolean>();
|
|
314
|
-
|
|
315
|
-
subscribeOnSessionExpiredListener(callback: CallBackFunction<boolean>): void {
|
|
316
|
-
console.log('subscribe On Session Expired Event');
|
|
317
|
-
this.subscriptionOnSessionExpiredListener.subscribe(
|
|
318
|
-
callback,
|
|
319
|
-
EventMessageType.LocalMessage,
|
|
320
|
-
);
|
|
321
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
322
|
-
const sessionTimeOut = QBConfig.appConfig.sessionTimeOut || 122;
|
|
323
|
-
|
|
324
|
-
setTimeout(() => {
|
|
325
|
-
console.log('NEED LOGOUT');
|
|
326
|
-
if (this.authProcessed) {
|
|
327
|
-
this.subscriptionOnSessionExpiredListener.informSubscribers(
|
|
328
|
-
true,
|
|
329
|
-
EventMessageType.LocalMessage,
|
|
330
|
-
);
|
|
331
|
-
}
|
|
332
|
-
}, sessionTimeOut * 60 * 1000);
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
subscribeOnUpdateMessageStatus(
|
|
336
|
-
callback: CallBackFunction<DialogEventInfo>,
|
|
337
|
-
): void {
|
|
338
|
-
this.subscriptionOnMessageStatus.subscribe(
|
|
339
|
-
callback,
|
|
340
|
-
EventMessageType.LocalMessage,
|
|
341
|
-
);
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
public initEventsHandlers() {
|
|
345
|
-
console.log('CALL--initEventsHandlers--CALL');
|
|
346
|
-
QB.chat.onSystemMessageListener = (message) => {
|
|
347
|
-
console.log(`EVENT: receive system message: ${JSON.stringify(message)}`);
|
|
348
|
-
const resultMessage = new RemoteMessageDTO();
|
|
349
|
-
|
|
350
|
-
resultMessage.sender_id = message.userId;
|
|
351
|
-
resultMessage.message = message.body || 'system message';
|
|
352
|
-
resultMessage.notification_type =
|
|
353
|
-
message.extension.notification_type || NotificationTypes.UPDATE_DIALOG;
|
|
354
|
-
resultMessage.dialogId = message?.extension?.dialog_id || '';
|
|
355
|
-
|
|
356
|
-
this.subscriptionOnSystemMessages[
|
|
357
|
-
resultMessage.notification_type
|
|
358
|
-
].informSubscribers(resultMessage, EventMessageType.SystemMessage);
|
|
359
|
-
};
|
|
360
|
-
|
|
361
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
362
|
-
function QBChatXMPPMessageToRemoteMessageDTO(message: QBChatXMPPMessage) {
|
|
363
|
-
const resultMessage = new RemoteMessageDTO();
|
|
364
|
-
|
|
365
|
-
resultMessage.id = message.id;
|
|
366
|
-
resultMessage.message = MessageDTOMapper.formatMessage(message.body);
|
|
367
|
-
resultMessage.markable = message.markable
|
|
368
|
-
? message.markable.toString()
|
|
369
|
-
: '0';
|
|
370
|
-
resultMessage.dialogId = message?.extension?.dialog_id || '';
|
|
371
|
-
// eslint-disable-next-line no-nested-ternary
|
|
372
|
-
resultMessage.recipient_id = message?.recipient_id
|
|
373
|
-
? parseInt(message?.recipient_id, 10)
|
|
374
|
-
: message?.extension?.sender_id
|
|
375
|
-
? message?.extension?.sender_id
|
|
376
|
-
: 0;
|
|
377
|
-
resultMessage.sender_id = message?.extension?.sender_id
|
|
378
|
-
? message?.extension?.sender_id
|
|
379
|
-
: 0;
|
|
380
|
-
resultMessage.notification_type =
|
|
381
|
-
message.notification_type || message.extension.notification_type;
|
|
382
|
-
resultMessage.date_sent = message.extension.date_sent
|
|
383
|
-
? parseInt(message.extension.date_sent, 10)
|
|
384
|
-
: 0;
|
|
385
|
-
resultMessage.delivered_ids = [];
|
|
386
|
-
|
|
387
|
-
// resultMessage.attachments = message.extension.attachments || [];
|
|
388
|
-
resultMessage.attachments = MessageDTOMapper.transformAttachment(
|
|
389
|
-
message.body,
|
|
390
|
-
message.extension.attachments ? message.extension.attachments : [],
|
|
391
|
-
);
|
|
392
|
-
|
|
393
|
-
return resultMessage;
|
|
394
|
-
}
|
|
395
|
-
|
|
396
|
-
QB.chat.onMessageListener = (
|
|
397
|
-
userId: number,
|
|
398
|
-
message: QBChatXMPPMessage,
|
|
399
|
-
) => {
|
|
400
|
-
console.log(
|
|
401
|
-
`EVENT: receive message for userid: ${userId}, message: ${stringifyError(
|
|
402
|
-
message,
|
|
403
|
-
)}`,
|
|
404
|
-
);
|
|
405
|
-
// нужно получить реализовать так как при обработке onDeliveredStatusListener
|
|
406
|
-
const dialogId = message.dialog_id || message.extension.dialog_id || '-1';
|
|
407
|
-
|
|
408
|
-
//
|
|
409
|
-
qbChatGetMessagesExtended(dialogId, {
|
|
410
|
-
_id: message.id,
|
|
411
|
-
})
|
|
412
|
-
// eslint-disable-next-line promise/always-return
|
|
413
|
-
.then((qbMessages: GetMessagesResult) => {
|
|
414
|
-
///
|
|
415
|
-
qbMessages.items.map(async (currentItem) => {
|
|
416
|
-
const dtoMessage: RemoteMessageDTO =
|
|
417
|
-
await this.messageDTOMapper.toTDO<
|
|
418
|
-
QBChatMessage,
|
|
419
|
-
RemoteMessageDTO
|
|
420
|
-
>(currentItem);
|
|
421
|
-
|
|
422
|
-
dtoMessage.dialogId = dialogId;
|
|
423
|
-
|
|
424
|
-
this.subscriptionOnChatMessages.informSubscribers(
|
|
425
|
-
dtoMessage,
|
|
426
|
-
EventMessageType.RegularMessage,
|
|
427
|
-
);
|
|
428
|
-
|
|
429
|
-
return dtoMessage;
|
|
430
|
-
});
|
|
431
|
-
|
|
432
|
-
///
|
|
433
|
-
})
|
|
434
|
-
.catch();
|
|
435
|
-
//
|
|
436
|
-
// // eslint-disable-next-line promise/catch-or-return,@typescript-eslint/no-unused-vars,promise/always-return
|
|
437
|
-
// QBGetDialogById(dialogId).then((result) => {
|
|
438
|
-
// // const dialogs: QBChatDialog[] | undefined = result?.items.filter(
|
|
439
|
-
// // (v) => v._id === dialogId,
|
|
440
|
-
// // );
|
|
441
|
-
// // const current = dialogs && dialogs.length > 0 ? dialogs[0] : undefined;
|
|
442
|
-
//
|
|
443
|
-
// // eslint-disable-next-line promise/always-return
|
|
444
|
-
// // if (current && current.type === DialogType.group)
|
|
445
|
-
// // eslint-disable-next-line no-lone-blocks
|
|
446
|
-
// {
|
|
447
|
-
// // const messageId = message.id;
|
|
448
|
-
// const resultMessage = QBChatXMPPMessageToRemoteMessageDTO(message);
|
|
449
|
-
//
|
|
450
|
-
// this.subscriptionOnChatMessages.informSubscribers(
|
|
451
|
-
// resultMessage,
|
|
452
|
-
// EventMessageType.RegularMessage,
|
|
453
|
-
// );
|
|
454
|
-
// }
|
|
455
|
-
//
|
|
456
|
-
// //
|
|
457
|
-
// });
|
|
458
|
-
};
|
|
459
|
-
QB.chat.onDeliveredStatusListener = (messageId, dialogId, userId) => {
|
|
460
|
-
console.log(
|
|
461
|
-
`EVENT: receive delivered message id: ${messageId}, dialogid: ${dialogId} userid: ${userId}`,
|
|
462
|
-
);
|
|
463
|
-
|
|
464
|
-
QBGetDialogById(dialogId)
|
|
465
|
-
.then((result) => {
|
|
466
|
-
//
|
|
467
|
-
const dialogs: QBChatDialog[] | undefined = result?.items.filter(
|
|
468
|
-
(v) => v._id === dialogId,
|
|
469
|
-
);
|
|
470
|
-
const current =
|
|
471
|
-
dialogs && dialogs.length > 0 ? dialogs[0] : undefined;
|
|
472
|
-
|
|
473
|
-
// eslint-disable-next-line promise/always-return
|
|
474
|
-
if (current && current.type === DialogType.private) {
|
|
475
|
-
//
|
|
476
|
-
qbChatGetMessagesExtended(dialogId, {
|
|
477
|
-
_id: messageId,
|
|
478
|
-
})
|
|
479
|
-
// eslint-disable-next-line promise/always-return
|
|
480
|
-
.then((qbMessages: GetMessagesResult) => {
|
|
481
|
-
///
|
|
482
|
-
qbMessages.items.map(async (currentItem) => {
|
|
483
|
-
const dtoMessage: RemoteMessageDTO =
|
|
484
|
-
await this.messageDTOMapper.toTDO<
|
|
485
|
-
QBChatMessage,
|
|
486
|
-
RemoteMessageDTO
|
|
487
|
-
>(currentItem);
|
|
488
|
-
|
|
489
|
-
dtoMessage.dialogId = dialogId;
|
|
490
|
-
|
|
491
|
-
this.subscriptionOnChatMessages.informSubscribers(
|
|
492
|
-
dtoMessage,
|
|
493
|
-
EventMessageType.RegularMessage,
|
|
494
|
-
);
|
|
495
|
-
|
|
496
|
-
return dtoMessage;
|
|
497
|
-
});
|
|
498
|
-
|
|
499
|
-
///
|
|
500
|
-
})
|
|
501
|
-
.catch();
|
|
502
|
-
//
|
|
503
|
-
}
|
|
504
|
-
})
|
|
505
|
-
.catch();
|
|
506
|
-
};
|
|
507
|
-
QB.chat.onMessageTypingListener = (isTyping, userId, dialogId) => {
|
|
508
|
-
console.log(
|
|
509
|
-
`EVENT: receive typing: ${
|
|
510
|
-
isTyping ? 'true' : 'false'
|
|
511
|
-
}, dialog id: ${dialogId} userid: ${userId}`,
|
|
512
|
-
);
|
|
513
|
-
if (this.authProcessed && this.authInformation?.userId === userId) return;
|
|
514
|
-
|
|
515
|
-
const resultMessage: DialogEventInfo = {
|
|
516
|
-
eventMessageType: EventMessageType.LocalMessage,
|
|
517
|
-
messageInfo: undefined,
|
|
518
|
-
messageStatus: { isTyping, userId, dialogId },
|
|
519
|
-
notificationTypes: undefined,
|
|
520
|
-
};
|
|
521
|
-
|
|
522
|
-
this.subscriptionOnMessageStatus.informSubscribers(
|
|
523
|
-
resultMessage,
|
|
524
|
-
EventMessageType.LocalMessage,
|
|
525
|
-
);
|
|
526
|
-
};
|
|
527
|
-
QB.chat.onSessionExpiredListener = (error) => {
|
|
528
|
-
console.log('call onSessionExpiredListener');
|
|
529
|
-
console.timeLog('onSessionExpiredListener');
|
|
530
|
-
let result = true;
|
|
531
|
-
|
|
532
|
-
if (error) {
|
|
533
|
-
console.log(
|
|
534
|
-
'EVENT:onSessionExpiredListener - error: ',
|
|
535
|
-
stringifyError(error),
|
|
536
|
-
);
|
|
537
|
-
result = false;
|
|
538
|
-
} else {
|
|
539
|
-
console.log(
|
|
540
|
-
'EVENT: Hello from SessionExpiredListener. session is expired.',
|
|
541
|
-
);
|
|
542
|
-
result = true;
|
|
543
|
-
}
|
|
544
|
-
this.subscriptionOnSessionExpiredListener.informSubscribers(
|
|
545
|
-
result,
|
|
546
|
-
EventMessageType.LocalMessage,
|
|
547
|
-
);
|
|
548
|
-
};
|
|
549
|
-
QB.chat.onDisconnectedListener = () => {
|
|
550
|
-
console.log('EVENT: disconnect');
|
|
551
|
-
};
|
|
552
|
-
QB.chat.onReconnectListener = () => {
|
|
553
|
-
console.log('EVENT: reconnect');
|
|
554
|
-
};
|
|
555
|
-
QB.chat.onMessageErrorListener = (messageId: string, error: unknown) => {
|
|
556
|
-
console.log(
|
|
557
|
-
`EVENT: receive error messageid: ${messageId}, error: ${stringifyError(
|
|
558
|
-
error,
|
|
559
|
-
)}`,
|
|
560
|
-
);
|
|
561
|
-
};
|
|
562
|
-
|
|
563
|
-
QB.chat.onReadStatusListener = (messageId, dialogId, userId) => {
|
|
564
|
-
console.log(
|
|
565
|
-
`EVENT: receive read message id: ${messageId}, dialogid: ${dialogId} userid: ${userId}`,
|
|
566
|
-
);
|
|
567
|
-
};
|
|
568
|
-
|
|
569
|
-
//
|
|
570
|
-
}
|
|
571
|
-
|
|
572
|
-
// eslint-disable-next-line class-methods-use-this
|
|
573
|
-
public releaseEventsHandlers() {
|
|
574
|
-
QB.chat.onSessionExpiredListener = undefined;
|
|
575
|
-
QB.chat.onReconnectListener = undefined;
|
|
576
|
-
QB.chat.onDisconnectedListener = undefined;
|
|
577
|
-
QB.chat.onSystemMessageListener = undefined;
|
|
578
|
-
QB.chat.onMessageListener = undefined;
|
|
579
|
-
QB.chat.onMessageErrorListener = undefined;
|
|
580
|
-
QB.chat.onDeliveredStatusListener = undefined;
|
|
581
|
-
QB.chat.onReadStatusListener = undefined;
|
|
582
|
-
QB.chat.onMessageTypingListener = undefined;
|
|
583
|
-
}
|
|
584
|
-
|
|
585
|
-
public async loginWithUser(authParams: LoginData) {
|
|
586
|
-
if (this.needInit) return;
|
|
587
|
-
if (this.authProcessed) return;
|
|
588
|
-
//
|
|
589
|
-
console.log('CALL createUserSession....');
|
|
590
|
-
const userRequiredParams = {
|
|
591
|
-
login: authParams.login,
|
|
592
|
-
password: authParams.password,
|
|
593
|
-
};
|
|
594
|
-
const sessionResult = await this.createUserSession(
|
|
595
|
-
userRequiredParams,
|
|
596
|
-
).catch((e) => {
|
|
597
|
-
this._needInit = true;
|
|
598
|
-
this.authProcessed = false;
|
|
599
|
-
console.log(
|
|
600
|
-
`EXCEPTION IN CREATE USER SESSION (${
|
|
601
|
-
userRequiredParams.login
|
|
602
|
-
}) : ${stringifyError(e)}`,
|
|
603
|
-
);
|
|
604
|
-
});
|
|
605
|
-
|
|
606
|
-
if (!sessionResult) return;
|
|
607
|
-
//
|
|
608
|
-
//
|
|
609
|
-
this.initEventsHandlers();
|
|
610
|
-
//
|
|
611
|
-
//
|
|
612
|
-
console.log('USER DATA : ', userRequiredParams);
|
|
613
|
-
console.log('USER SESSION DATA : ', sessionResult);
|
|
614
|
-
console.log('Session token : ', sessionResult.token);
|
|
615
|
-
|
|
616
|
-
const session = sessionResult;
|
|
617
|
-
const sessionDataTmp = JSON.stringify(session);
|
|
618
|
-
|
|
619
|
-
const sessionData = JSON.parse(sessionDataTmp);
|
|
620
|
-
|
|
621
|
-
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
|
|
622
|
-
console.log(`user_id = ${sessionData.user_id}`);
|
|
623
|
-
// eslint-disable-next-line @typescript-eslint/restrict-template-expressions
|
|
624
|
-
console.log(`session token to chat init = ${sessionData.token}`);
|
|
625
|
-
const authInformation = {
|
|
626
|
-
userName: authParams.login,
|
|
627
|
-
userId: sessionData.user_id,
|
|
628
|
-
sessionToken: sessionData.token,
|
|
629
|
-
password: sessionData.token,
|
|
630
|
-
};
|
|
631
|
-
|
|
632
|
-
const paramsConnect = {
|
|
633
|
-
userId: authInformation.userId,
|
|
634
|
-
password: authInformation.password,
|
|
635
|
-
};
|
|
636
|
-
|
|
637
|
-
console.log(paramsConnect);
|
|
638
|
-
//
|
|
639
|
-
const connectResult = await QBChatConnect(paramsConnect);
|
|
640
|
-
|
|
641
|
-
if (connectResult) {
|
|
642
|
-
//
|
|
643
|
-
this._authInformation = authInformation;
|
|
644
|
-
this.setAuthProcessedSuccessed();
|
|
645
|
-
console.log('CHAT CONNECTED. CAN WORK!');
|
|
646
|
-
console.log('CONNECTION DATA: ', JSON.stringify(authInformation));
|
|
647
|
-
// //
|
|
648
|
-
// this.initEventsHandlers();
|
|
649
|
-
// //
|
|
650
|
-
} else {
|
|
651
|
-
console.log('could not connect to chat');
|
|
652
|
-
}
|
|
653
|
-
|
|
654
|
-
//
|
|
655
|
-
}
|
|
656
|
-
|
|
657
|
-
async getDialogs(pagination?: Pagination): Promise<RemoteDialogsDTO> {
|
|
658
|
-
let currentPagination: Pagination = pagination || new Pagination();
|
|
659
|
-
|
|
660
|
-
console.log(
|
|
661
|
-
'call getDialogs in RemoteDataSourceMock param pagination: ',
|
|
662
|
-
JSON.stringify(pagination),
|
|
663
|
-
);
|
|
664
|
-
console.log(
|
|
665
|
-
'call getDialogs in RemoteDataSourceMock with result pagination: ',
|
|
666
|
-
JSON.stringify(currentPagination),
|
|
667
|
-
);
|
|
668
|
-
const pageNumber = currentPagination.getCurrentPage() || 1;
|
|
669
|
-
|
|
670
|
-
console.log('pageNumber: ', pageNumber);
|
|
671
|
-
const perPage = currentPagination.perPage || 100;
|
|
672
|
-
|
|
673
|
-
console.log('perPage: ', perPage);
|
|
674
|
-
const params = {
|
|
675
|
-
created_at: {
|
|
676
|
-
lt: Date.now() / 1000,
|
|
677
|
-
},
|
|
678
|
-
sort_desc: 'created_at',
|
|
679
|
-
page: pageNumber,
|
|
680
|
-
// per_page: perPage,
|
|
681
|
-
limit: perPage,
|
|
682
|
-
type: {
|
|
683
|
-
in: [2, 3],
|
|
684
|
-
},
|
|
685
|
-
};
|
|
686
|
-
// filter['type[in]'] = [3, 2].join(',');
|
|
687
|
-
|
|
688
|
-
console.log(
|
|
689
|
-
'call getDialogs in RemoteDataSourceMock with params: ',
|
|
690
|
-
JSON.stringify(params),
|
|
691
|
-
);
|
|
692
|
-
const dialogsDTO: Array<RemoteDialogDTO> = [];
|
|
693
|
-
const qbDialogs: QBGetDialogResult | undefined = await QBGetDialogs(params);
|
|
694
|
-
|
|
695
|
-
if (qbDialogs) {
|
|
696
|
-
console.log(
|
|
697
|
-
`request completed. have: total_entries ${
|
|
698
|
-
qbDialogs.total_entries
|
|
699
|
-
}, limit: ${qbDialogs.limit}, skip: ${
|
|
700
|
-
qbDialogs.skip
|
|
701
|
-
} items: ${JSON.stringify(qbDialogs.items)}`,
|
|
702
|
-
);
|
|
703
|
-
currentPagination = new Pagination(0, perPage);
|
|
704
|
-
currentPagination.totalPages = qbDialogs.total_entries / perPage;
|
|
705
|
-
currentPagination.setCurrentPage(pageNumber);
|
|
706
|
-
|
|
707
|
-
// eslint-disable-next-line no-restricted-syntax
|
|
708
|
-
for (const item of qbDialogs.items) {
|
|
709
|
-
const qbEntity: QBChatDialog = item;
|
|
710
|
-
|
|
711
|
-
const newDTO: RemoteDialogDTO =
|
|
712
|
-
// eslint-disable-next-line no-await-in-loop
|
|
713
|
-
await this.getCurrentDialogDTOMapper().toTDO(qbEntity);
|
|
714
|
-
|
|
715
|
-
// artan 27/06/23
|
|
716
|
-
if (newDTO.type === DialogType.group) {
|
|
717
|
-
// eslint-disable-next-line no-await-in-loop
|
|
718
|
-
await QBJoinGroupDialog(newDTO.id).catch(() => {
|
|
719
|
-
throw new RemoteDataSourceException(
|
|
720
|
-
INCORRECT_REMOTE_DATASOURCE_DATA_EXCEPTION_MESSAGE,
|
|
721
|
-
INCORRECT_REMOTE_DATASOURCE_DATA_EXCEPTION_CODE,
|
|
722
|
-
);
|
|
723
|
-
});
|
|
724
|
-
}
|
|
725
|
-
|
|
726
|
-
//
|
|
727
|
-
|
|
728
|
-
dialogsDTO.push(newDTO);
|
|
729
|
-
}
|
|
730
|
-
}
|
|
731
|
-
/*
|
|
732
|
-
await Promise.all(
|
|
733
|
-
fromRemote.ResultData.map(async (entity) => {
|
|
734
|
-
// eslint-disable-next-line no-return-await
|
|
735
|
-
return await this.dialogRepository.saveDialogToLocal(entity);
|
|
736
|
-
}),
|
|
737
|
-
);
|
|
738
|
-
*/
|
|
739
|
-
|
|
740
|
-
return Promise.resolve(new RemoteDialogsDTO(dialogsDTO, currentPagination));
|
|
741
|
-
}
|
|
742
|
-
|
|
743
|
-
// eslint-disable-next-line class-methods-use-this
|
|
744
|
-
async createDialog(dto: RemoteDialogDTO): Promise<RemoteDialogDTO> {
|
|
745
|
-
console.log(
|
|
746
|
-
'call createDialog in remote with params: ',
|
|
747
|
-
JSON.stringify(dto),
|
|
748
|
-
);
|
|
749
|
-
const qbEntity: QBChatDialog =
|
|
750
|
-
await this.getCurrentDialogDTOMapper().fromDTO(dto);
|
|
751
|
-
|
|
752
|
-
let qbDialog: QBChatDialog | undefined | null;
|
|
753
|
-
|
|
754
|
-
if (qbEntity.type === DialogType.private) {
|
|
755
|
-
const participantId = qbEntity.occupants_ids[0];
|
|
756
|
-
|
|
757
|
-
qbDialog = await QBCreatePrivateDialog(participantId, qbEntity.name);
|
|
758
|
-
} else if (qbEntity.type === DialogType.group) {
|
|
759
|
-
const participants = qbEntity.occupants_ids;
|
|
760
|
-
|
|
761
|
-
const data = { photo: qbEntity.photo };
|
|
762
|
-
|
|
763
|
-
qbDialog = await QBCreateGroupDialog(participants, qbEntity.name, data);
|
|
764
|
-
}
|
|
765
|
-
|
|
766
|
-
if (qbDialog === null || qbDialog === undefined) {
|
|
767
|
-
return Promise.reject(
|
|
768
|
-
new RemoteDataSourceException(
|
|
769
|
-
INCORRECT_REMOTE_DATASOURCE_DATA_EXCEPTION_MESSAGE,
|
|
770
|
-
INCORRECT_REMOTE_DATASOURCE_DATA_EXCEPTION_CODE,
|
|
771
|
-
),
|
|
772
|
-
);
|
|
773
|
-
}
|
|
774
|
-
|
|
775
|
-
const newDTO: RemoteDialogDTO =
|
|
776
|
-
await this.getCurrentDialogDTOMapper().toTDO(qbDialog);
|
|
777
|
-
|
|
778
|
-
console.log(
|
|
779
|
-
'have result in createDialog in remote ds: ',
|
|
780
|
-
JSON.stringify(newDTO),
|
|
781
|
-
);
|
|
782
|
-
|
|
783
|
-
return Promise.resolve(newDTO);
|
|
784
|
-
}
|
|
785
|
-
|
|
786
|
-
async updateDialog(dto: RemoteDialogDTO): Promise<RemoteDialogDTO> {
|
|
787
|
-
const qbEntity: QBChatDialog =
|
|
788
|
-
await this.getCurrentDialogDTOMapper().fromDTO(dto);
|
|
789
|
-
|
|
790
|
-
let data = {};
|
|
791
|
-
|
|
792
|
-
if (qbEntity.name && qbEntity.name.length > 0) {
|
|
793
|
-
data = {
|
|
794
|
-
name: qbEntity.name,
|
|
795
|
-
// photo: qbEntity.photo,
|
|
796
|
-
// photo: 'null',
|
|
797
|
-
...data,
|
|
798
|
-
};
|
|
799
|
-
}
|
|
800
|
-
if (qbEntity.photo) {
|
|
801
|
-
data = {
|
|
802
|
-
...data,
|
|
803
|
-
photo: qbEntity.photo,
|
|
804
|
-
};
|
|
805
|
-
}
|
|
806
|
-
if (qbEntity.new_occupants_ids?.length > 0) {
|
|
807
|
-
data = {
|
|
808
|
-
...data,
|
|
809
|
-
push_all: { occupants_ids: qbEntity.new_occupants_ids },
|
|
810
|
-
};
|
|
811
|
-
}
|
|
812
|
-
|
|
813
|
-
const qbDialogs: QBChatDialog = await QBUpdateDialog(qbEntity._id, data);
|
|
814
|
-
|
|
815
|
-
if (qbDialogs === null || qbDialogs === undefined) {
|
|
816
|
-
return Promise.reject(
|
|
817
|
-
new RemoteDataSourceException(
|
|
818
|
-
INCORRECT_REMOTE_DATASOURCE_DATA_EXCEPTION_MESSAGE,
|
|
819
|
-
INCORRECT_REMOTE_DATASOURCE_DATA_EXCEPTION_CODE,
|
|
820
|
-
),
|
|
821
|
-
);
|
|
822
|
-
}
|
|
823
|
-
|
|
824
|
-
const newDTO: RemoteDialogDTO =
|
|
825
|
-
await this.getCurrentDialogDTOMapper().toTDO(qbDialogs);
|
|
826
|
-
|
|
827
|
-
return Promise.resolve(newDTO);
|
|
828
|
-
}
|
|
829
|
-
|
|
830
|
-
// eslint-disable-next-line class-methods-use-this
|
|
831
|
-
async getDialog(dto: RemoteDialogDTO): Promise<RemoteDialogDTO> {
|
|
832
|
-
const qbEntity: QBChatDialog =
|
|
833
|
-
await this.getCurrentDialogDTOMapper().fromDTO(dto);
|
|
834
|
-
|
|
835
|
-
const qbDialog: QBGetDialogResult | undefined = await QBGetDialogById(
|
|
836
|
-
qbEntity._id,
|
|
837
|
-
);
|
|
838
|
-
|
|
839
|
-
if (qbDialog === null || qbDialog === undefined) {
|
|
840
|
-
return Promise.reject(
|
|
841
|
-
new RemoteDataSourceException(
|
|
842
|
-
INCORRECT_REMOTE_DATASOURCE_DATA_EXCEPTION_MESSAGE,
|
|
843
|
-
INCORRECT_REMOTE_DATASOURCE_DATA_EXCEPTION_CODE,
|
|
844
|
-
),
|
|
845
|
-
);
|
|
846
|
-
}
|
|
847
|
-
const qbEntityFromDB: QBChatDialog = qbDialog.items[0];
|
|
848
|
-
|
|
849
|
-
const resultDTO: RemoteDialogDTO =
|
|
850
|
-
await this.getCurrentDialogDTOMapper().toTDO(qbEntityFromDB);
|
|
851
|
-
|
|
852
|
-
return Promise.resolve(resultDTO);
|
|
853
|
-
}
|
|
854
|
-
|
|
855
|
-
// eslint-disable-next-line class-methods-use-this
|
|
856
|
-
async deleteDialog(dto: RemoteDialogDTO): Promise<void> {
|
|
857
|
-
const qbEntity: QBChatDialog =
|
|
858
|
-
await this.getCurrentDialogDTOMapper().fromDTO(dto);
|
|
859
|
-
|
|
860
|
-
await QBDeleteDialog([qbEntity._id]).catch(() => {
|
|
861
|
-
throw new RemoteDataSourceException(
|
|
862
|
-
INCORRECT_REMOTE_DATASOURCE_DATA_EXCEPTION_MESSAGE,
|
|
863
|
-
INCORRECT_REMOTE_DATASOURCE_DATA_EXCEPTION_CODE,
|
|
864
|
-
);
|
|
865
|
-
});
|
|
866
|
-
|
|
867
|
-
return Promise.resolve();
|
|
868
|
-
}
|
|
869
|
-
|
|
870
|
-
async deleteUsersFromDialog(
|
|
871
|
-
dialogDTO: RemoteDialogDTO,
|
|
872
|
-
usersDTO: Array<RemoteUserDTO>,
|
|
873
|
-
): Promise<void> {
|
|
874
|
-
const qbEntity: QBChatDialog =
|
|
875
|
-
await this.getCurrentDialogDTOMapper().fromDTO(dialogDTO);
|
|
876
|
-
const usersIds: string[] = [];
|
|
877
|
-
|
|
878
|
-
usersDTO.forEach((item) => {
|
|
879
|
-
usersIds.push(item.id);
|
|
880
|
-
});
|
|
881
|
-
|
|
882
|
-
let data = {};
|
|
883
|
-
|
|
884
|
-
if (usersIds.length > 0) {
|
|
885
|
-
data = {
|
|
886
|
-
pull_all: { occupants_ids: usersIds },
|
|
887
|
-
};
|
|
888
|
-
}
|
|
889
|
-
const qbDialogs: QBChatDialog = await QBUpdateDialog(qbEntity._id, data);
|
|
890
|
-
|
|
891
|
-
if (qbDialogs === null || qbDialogs === undefined) {
|
|
892
|
-
return Promise.reject(
|
|
893
|
-
new RemoteDataSourceException(
|
|
894
|
-
INCORRECT_REMOTE_DATASOURCE_DATA_EXCEPTION_MESSAGE,
|
|
895
|
-
INCORRECT_REMOTE_DATASOURCE_DATA_EXCEPTION_CODE,
|
|
896
|
-
),
|
|
897
|
-
);
|
|
898
|
-
}
|
|
899
|
-
|
|
900
|
-
return Promise.resolve();
|
|
901
|
-
}
|
|
902
|
-
|
|
903
|
-
// eslint-disable-next-line @typescript-eslint/require-await,class-methods-use-this,@typescript-eslint/no-unused-vars
|
|
904
|
-
async getUser(dto: RemoteUserDTO): Promise<RemoteUserDTO> {
|
|
905
|
-
const currentItem: QBUser | undefined = await QBUsersGetById(
|
|
906
|
-
parseInt(dto.id, 10),
|
|
907
|
-
);
|
|
908
|
-
|
|
909
|
-
if (currentItem === null || currentItem === undefined) {
|
|
910
|
-
return Promise.reject(
|
|
911
|
-
new RemoteDataSourceException(
|
|
912
|
-
INCORRECT_REMOTE_DATASOURCE_DATA_EXCEPTION_MESSAGE,
|
|
913
|
-
INCORRECT_REMOTE_DATASOURCE_DATA_EXCEPTION_CODE,
|
|
914
|
-
),
|
|
915
|
-
);
|
|
916
|
-
}
|
|
917
|
-
let dtoUser: RemoteUserDTO | undefined;
|
|
918
|
-
|
|
919
|
-
try {
|
|
920
|
-
dtoUser = await this.userDTOMapper.toTDO<QBUser, RemoteUserDTO>(
|
|
921
|
-
currentItem,
|
|
922
|
-
);
|
|
923
|
-
} catch (e) {
|
|
924
|
-
console.log('problem with:');
|
|
925
|
-
console.log(JSON.stringify(currentItem));
|
|
926
|
-
console.log((e as MapperDTOException).message);
|
|
927
|
-
console.log((e as MapperDTOException)._description);
|
|
928
|
-
}
|
|
929
|
-
|
|
930
|
-
if (dtoUser !== null || dtoUser !== undefined) {
|
|
931
|
-
return Promise.resolve(dtoUser as RemoteUserDTO);
|
|
932
|
-
}
|
|
933
|
-
|
|
934
|
-
return Promise.reject(
|
|
935
|
-
new RemoteDataSourceException(
|
|
936
|
-
NOT_FOUND_REMOTE_DATASOURCE_EXCEPTION_MESSAGE,
|
|
937
|
-
NOT_FOUND_REMOTE_DATASOURCE_EXCEPTION_CODE,
|
|
938
|
-
`not found user with id: ${dto.id} (${dto.full_name})`,
|
|
939
|
-
),
|
|
940
|
-
);
|
|
941
|
-
}
|
|
942
|
-
|
|
943
|
-
// eslint-disable-next-line @typescript-eslint/require-await,class-methods-use-this,@typescript-eslint/no-unused-vars
|
|
944
|
-
async getUsers(remoteUsersDTO: RemoteUsersDTO): Promise<RemoteUsersDTO> {
|
|
945
|
-
const usersDTO: Array<RemoteUserDTO> = new Array<RemoteUserDTO>();
|
|
946
|
-
|
|
947
|
-
// eslint-disable-next-line no-restricted-syntax
|
|
948
|
-
for (const item of remoteUsersDTO.users) {
|
|
949
|
-
// eslint-disable-next-line no-await-in-loop
|
|
950
|
-
const userDTO = await this.getUser(item);
|
|
951
|
-
|
|
952
|
-
usersDTO.push(userDTO);
|
|
953
|
-
}
|
|
954
|
-
|
|
955
|
-
return Promise.resolve(new RemoteUsersDTO(usersDTO, new Pagination()));
|
|
956
|
-
}
|
|
957
|
-
|
|
958
|
-
//
|
|
959
|
-
// eslint-disable-next-line class-methods-use-this
|
|
960
|
-
public async getAllUsers(
|
|
961
|
-
pagination: Pagination,
|
|
962
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
963
|
-
filter?: string,
|
|
964
|
-
): Promise<PaginatedDTOResult> {
|
|
965
|
-
console.log('call getAllUsers');
|
|
966
|
-
|
|
967
|
-
console.log('pagination: ', JSON.stringify(pagination));
|
|
968
|
-
|
|
969
|
-
const users: RemoteUserDTO[] = [];
|
|
970
|
-
const pageTemplate = {
|
|
971
|
-
pageSize: pagination.perPage,
|
|
972
|
-
startPageNumber: pagination.getCurrentPage(),
|
|
973
|
-
};
|
|
974
|
-
const pageNumber = pageTemplate.startPageNumber;
|
|
975
|
-
const resultPagination = new Pagination(
|
|
976
|
-
pageNumber,
|
|
977
|
-
pageTemplate.startPageNumber,
|
|
978
|
-
);
|
|
979
|
-
|
|
980
|
-
let params: GetUserParams = {
|
|
981
|
-
per_page: pageTemplate.pageSize,
|
|
982
|
-
page: pageNumber,
|
|
983
|
-
};
|
|
984
|
-
|
|
985
|
-
if (filter && filter.length > 2) {
|
|
986
|
-
params = {
|
|
987
|
-
full_name: filter,
|
|
988
|
-
per_page: pageTemplate.pageSize,
|
|
989
|
-
page: pageNumber > 0 ? pageNumber : 1,
|
|
990
|
-
};
|
|
991
|
-
}
|
|
992
|
-
|
|
993
|
-
console.log('params: ', JSON.stringify(params));
|
|
994
|
-
|
|
995
|
-
// eslint-disable-next-line no-await-in-loop
|
|
996
|
-
const response: ListUserResponse | void = await QBUsersGet(params).catch(
|
|
997
|
-
(err) => {
|
|
998
|
-
console.log('catch call QBUsersGet : ', stringifyError(err));
|
|
999
|
-
},
|
|
1000
|
-
);
|
|
1001
|
-
|
|
1002
|
-
if (response === undefined || response === null) {
|
|
1003
|
-
throw new RemoteDataSourceException(
|
|
1004
|
-
NOT_FOUND_REMOTE_DATASOURCE_EXCEPTION_MESSAGE,
|
|
1005
|
-
NOT_FOUND_REMOTE_DATASOURCE_EXCEPTION_CODE,
|
|
1006
|
-
`params: ${JSON.stringify(params)}`,
|
|
1007
|
-
);
|
|
1008
|
-
}
|
|
1009
|
-
let currentItem: QBUser;
|
|
1010
|
-
|
|
1011
|
-
console.log('response: total_entries: ', response.total_entries);
|
|
1012
|
-
console.log('response: per_page: ', response.per_page);
|
|
1013
|
-
console.log('response: current_page: ', response.current_page);
|
|
1014
|
-
|
|
1015
|
-
resultPagination.totalPages =
|
|
1016
|
-
response.total_entries / pageTemplate.pageSize;
|
|
1017
|
-
resultPagination.setCurrentPage(response.current_page);
|
|
1018
|
-
console.log(
|
|
1019
|
-
`response result: count of items ${
|
|
1020
|
-
response.items.length
|
|
1021
|
-
} items: ${JSON.stringify(response.items)}`,
|
|
1022
|
-
);
|
|
1023
|
-
try {
|
|
1024
|
-
// todo: переписать без циклов await
|
|
1025
|
-
// eslint-disable-next-line no-restricted-syntax
|
|
1026
|
-
for (const item of response.items) {
|
|
1027
|
-
currentItem = item.user;
|
|
1028
|
-
// eslint-disable-next-line no-await-in-loop
|
|
1029
|
-
const dtoUser: RemoteUserDTO = await this.userDTOMapper.toTDO<
|
|
1030
|
-
QBUser,
|
|
1031
|
-
RemoteUserDTO
|
|
1032
|
-
>(currentItem);
|
|
1033
|
-
|
|
1034
|
-
users.push(dtoUser);
|
|
1035
|
-
}
|
|
1036
|
-
} catch (e) {
|
|
1037
|
-
console.log('problem with:');
|
|
1038
|
-
console.log(JSON.stringify(currentItem!));
|
|
1039
|
-
console.log((e as MapperDTOException).message);
|
|
1040
|
-
console.log((e as MapperDTOException)._description);
|
|
1041
|
-
}
|
|
1042
|
-
|
|
1043
|
-
return { ResultData: users, PaginationResult: resultPagination };
|
|
1044
|
-
}
|
|
1045
|
-
//
|
|
1046
|
-
//
|
|
1047
|
-
|
|
1048
|
-
// eslint-disable-next-line @typescript-eslint/require-await,class-methods-use-this,@typescript-eslint/no-unused-vars,@typescript-eslint/ban-ts-comment
|
|
1049
|
-
// @ts-ignore
|
|
1050
|
-
// eslint-disable-next-line @typescript-eslint/require-await,class-methods-use-this
|
|
1051
|
-
async getMessages(
|
|
1052
|
-
dialogId: string,
|
|
1053
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
1054
|
-
pagination: Pagination,
|
|
1055
|
-
): Promise<RemoteMessagesDTO> {
|
|
1056
|
-
const messagesDTO: Array<RemoteMessageDTO> = new Array<RemoteMessageDTO>();
|
|
1057
|
-
|
|
1058
|
-
// // artan 22.06.23 перенесли в то место, где получаем весь список диалогов
|
|
1059
|
-
// await QBJoinGroupDialog(dialogId).catch(() => {
|
|
1060
|
-
// throw new RemoteDataSourceException(
|
|
1061
|
-
// INCORRECT_REMOTE_DATASOURCE_DATA_EXCEPTION_MESSAGE,
|
|
1062
|
-
// INCORRECT_REMOTE_DATASOURCE_DATA_EXCEPTION_CODE,
|
|
1063
|
-
// );
|
|
1064
|
-
// });
|
|
1065
|
-
//
|
|
1066
|
-
|
|
1067
|
-
const qbMessages: GetMessagesResult = await qbChatGetMessagesExtended(
|
|
1068
|
-
dialogId,
|
|
1069
|
-
);
|
|
1070
|
-
// const qbMessages: GetMessagesResult & { dialogId: QBChatDialog['_id'] } =
|
|
1071
|
-
// await QBChatGetMessages(dialogId);
|
|
1072
|
-
|
|
1073
|
-
if (qbMessages === null || qbMessages === undefined) {
|
|
1074
|
-
return Promise.reject(
|
|
1075
|
-
new RemoteDataSourceException(
|
|
1076
|
-
INCORRECT_REMOTE_DATASOURCE_DATA_EXCEPTION_MESSAGE,
|
|
1077
|
-
INCORRECT_REMOTE_DATASOURCE_DATA_EXCEPTION_CODE,
|
|
1078
|
-
),
|
|
1079
|
-
);
|
|
1080
|
-
}
|
|
1081
|
-
console.log(
|
|
1082
|
-
`GET MESSAGES ${qbMessages.items.length} FROM SERVER: ${JSON.stringify(
|
|
1083
|
-
qbMessages,
|
|
1084
|
-
)} `,
|
|
1085
|
-
);
|
|
1086
|
-
const currentUserId = this._authInformation?.userId;
|
|
1087
|
-
|
|
1088
|
-
await Promise.all(
|
|
1089
|
-
qbMessages.items.map(async (currentItem) => {
|
|
1090
|
-
const dtoMessage: RemoteMessageDTO = await this.messageDTOMapper.toTDO<
|
|
1091
|
-
QBChatMessage,
|
|
1092
|
-
RemoteMessageDTO
|
|
1093
|
-
>(currentItem);
|
|
1094
|
-
|
|
1095
|
-
if (
|
|
1096
|
-
this.authProcessed &&
|
|
1097
|
-
currentUserId &&
|
|
1098
|
-
dtoMessage.read_ids &&
|
|
1099
|
-
dtoMessage.read_ids.length > 0 &&
|
|
1100
|
-
dtoMessage.read_ids.includes(currentUserId) === false
|
|
1101
|
-
) {
|
|
1102
|
-
QBChatMarkMessageRead({
|
|
1103
|
-
messageId: dtoMessage.id,
|
|
1104
|
-
dialogId: dtoMessage.dialogId,
|
|
1105
|
-
userId: currentUserId,
|
|
1106
|
-
});
|
|
1107
|
-
}
|
|
1108
|
-
|
|
1109
|
-
messagesDTO.push(dtoMessage);
|
|
1110
|
-
|
|
1111
|
-
return dtoMessage;
|
|
1112
|
-
}),
|
|
1113
|
-
);
|
|
1114
|
-
|
|
1115
|
-
return Promise.resolve(
|
|
1116
|
-
new RemoteMessagesDTO(messagesDTO, new Pagination()),
|
|
1117
|
-
);
|
|
1118
|
-
}
|
|
1119
|
-
|
|
1120
|
-
// eslint-disable-next-line class-methods-use-this
|
|
1121
|
-
async typingMessageStart(
|
|
1122
|
-
dialogDTO: RemoteDialogDTO,
|
|
1123
|
-
senderId: number,
|
|
1124
|
-
): Promise<void> {
|
|
1125
|
-
const qbEntity: QBChatDialog =
|
|
1126
|
-
await this.getCurrentDialogDTOMapper().fromDTO(dialogDTO);
|
|
1127
|
-
|
|
1128
|
-
if (dialogDTO.type === DialogType.group) {
|
|
1129
|
-
await QBJoinGroupDialog(dialogDTO.id).catch(() => {
|
|
1130
|
-
throw new RemoteDataSourceException(
|
|
1131
|
-
INCORRECT_REMOTE_DATASOURCE_DATA_EXCEPTION_MESSAGE,
|
|
1132
|
-
INCORRECT_REMOTE_DATASOURCE_DATA_EXCEPTION_CODE,
|
|
1133
|
-
);
|
|
1134
|
-
});
|
|
1135
|
-
}
|
|
1136
|
-
|
|
1137
|
-
QBSendIsTypingStatus(qbEntity, senderId);
|
|
1138
|
-
|
|
1139
|
-
return Promise.resolve();
|
|
1140
|
-
}
|
|
1141
|
-
|
|
1142
|
-
// eslint-disable-next-line class-methods-use-this
|
|
1143
|
-
async typingMessageStop(
|
|
1144
|
-
dialogDTO: RemoteDialogDTO,
|
|
1145
|
-
senderId: number,
|
|
1146
|
-
): Promise<void> {
|
|
1147
|
-
const qbEntity: QBChatDialog =
|
|
1148
|
-
await this.getCurrentDialogDTOMapper().fromDTO(dialogDTO);
|
|
1149
|
-
|
|
1150
|
-
QBSendIsStopTypingStatus(qbEntity, senderId);
|
|
1151
|
-
|
|
1152
|
-
return Promise.resolve();
|
|
1153
|
-
}
|
|
1154
|
-
|
|
1155
|
-
// eslint-disable-next-line @typescript-eslint/require-await,class-methods-use-this,@typescript-eslint/no-unused-vars
|
|
1156
|
-
async sendMessage(dto: RemoteMessageDTO): Promise<RemoteMessageDTO> {
|
|
1157
|
-
console.log('call sendMessage');
|
|
1158
|
-
// const qbEntity: QBChatNewMessage = await this.messageDTOMapper.fromDTO<
|
|
1159
|
-
// RemoteMessageDTO,
|
|
1160
|
-
// QBChatNewMessage
|
|
1161
|
-
// >(dto);
|
|
1162
|
-
|
|
1163
|
-
/*
|
|
1164
|
-
|
|
1165
|
-
msg.type = 'groupchat';
|
|
1166
|
-
msg.body = `${this.userService.user.full_name} left the chat.`;
|
|
1167
|
-
msg.extension.notification_type = 3;
|
|
1168
|
-
msg.extension.save_to_history = 1;
|
|
1169
|
-
msg.dialog_id = dialog._id;
|
|
1170
|
-
msg.extension.dialog_id = dialog._id;
|
|
1171
|
-
msg.extension.dialog_updated_at = Date.now() / 1000;
|
|
1172
|
-
|
|
1173
|
-
*/
|
|
1174
|
-
// notification_type: 3,
|
|
1175
|
-
// dialog_updated_at: Date.now() / 1000,
|
|
1176
|
-
const messageText = dto.message;
|
|
1177
|
-
|
|
1178
|
-
// switch (dto.notification_type) {
|
|
1179
|
-
// case NotificationTypes.DELETE_LEAVE_DIALOG: {
|
|
1180
|
-
// messageText = `${
|
|
1181
|
-
// this.authInformation?.userName || 'owner'
|
|
1182
|
-
// } has left the chat.`;
|
|
1183
|
-
// break;
|
|
1184
|
-
// }
|
|
1185
|
-
// case NotificationTypes.NEW_DIALOG: {
|
|
1186
|
-
// messageText = `${
|
|
1187
|
-
// this.authInformation?.userName || 'owner'
|
|
1188
|
-
// } create the chat`;
|
|
1189
|
-
// break;
|
|
1190
|
-
// }
|
|
1191
|
-
// case NotificationTypes.UPDATE_DIALOG: {
|
|
1192
|
-
// messageText = `${
|
|
1193
|
-
// this.authInformation?.userName || 'owner'
|
|
1194
|
-
// } update the chat`;
|
|
1195
|
-
// break;
|
|
1196
|
-
// }
|
|
1197
|
-
// default: {
|
|
1198
|
-
// messageText = dto.message;
|
|
1199
|
-
// break;
|
|
1200
|
-
// }
|
|
1201
|
-
// }
|
|
1202
|
-
const qbEntity: QBChatNewMessage = {
|
|
1203
|
-
type: dto.dialog_type === DialogType.private ? 'chat' : 'groupchat',
|
|
1204
|
-
body: messageText,
|
|
1205
|
-
notification_type: dto.notification_type,
|
|
1206
|
-
dialog_id: dto.dialogId,
|
|
1207
|
-
extension: {
|
|
1208
|
-
save_to_history: 1,
|
|
1209
|
-
dialog_id: dto.dialogId,
|
|
1210
|
-
notification_type: dto.notification_type,
|
|
1211
|
-
sender_id: dto.sender_id || dto.recipient_id,
|
|
1212
|
-
},
|
|
1213
|
-
markable: 1,
|
|
1214
|
-
};
|
|
1215
|
-
|
|
1216
|
-
if (dto.attachments?.length > 0) {
|
|
1217
|
-
qbEntity.extension.attachments = [];
|
|
1218
|
-
dto.attachments.forEach((att) => {
|
|
1219
|
-
const chatMessageAttachment: ChatMessageAttachment = {
|
|
1220
|
-
id: att.id,
|
|
1221
|
-
name: att.name,
|
|
1222
|
-
size: att.size,
|
|
1223
|
-
type: att.type.toString(),
|
|
1224
|
-
uid: att.uid,
|
|
1225
|
-
};
|
|
1226
|
-
|
|
1227
|
-
qbEntity.extension.attachments?.push(chatMessageAttachment);
|
|
1228
|
-
});
|
|
1229
|
-
}
|
|
1230
|
-
let qbMessageId: QBChatMessage['_id'];
|
|
1231
|
-
|
|
1232
|
-
if (dto.dialog_type === DialogType.private) {
|
|
1233
|
-
qbMessageId = await QBChatSendMessage(dto.recipient_id, qbEntity);
|
|
1234
|
-
} else {
|
|
1235
|
-
await QBJoinGroupDialog(dto.dialogId).catch(() => {
|
|
1236
|
-
throw new RemoteDataSourceException(
|
|
1237
|
-
INCORRECT_REMOTE_DATASOURCE_DATA_EXCEPTION_MESSAGE,
|
|
1238
|
-
INCORRECT_REMOTE_DATASOURCE_DATA_EXCEPTION_CODE,
|
|
1239
|
-
);
|
|
1240
|
-
});
|
|
1241
|
-
const dialogJid = QB.chat.helpers.getRoomJidFromDialogId(dto.dialogId);
|
|
1242
|
-
|
|
1243
|
-
qbMessageId = await QBChatSendMessage(dialogJid, qbEntity);
|
|
1244
|
-
}
|
|
1245
|
-
|
|
1246
|
-
if (qbMessageId === null || qbMessageId === undefined) {
|
|
1247
|
-
return Promise.reject(
|
|
1248
|
-
new RemoteDataSourceException(
|
|
1249
|
-
INCORRECT_REMOTE_DATASOURCE_DATA_EXCEPTION_MESSAGE,
|
|
1250
|
-
INCORRECT_REMOTE_DATASOURCE_DATA_EXCEPTION_CODE,
|
|
1251
|
-
),
|
|
1252
|
-
);
|
|
1253
|
-
}
|
|
1254
|
-
console.log('regular message was sent');
|
|
1255
|
-
// eslint-disable-next-line no-param-reassign
|
|
1256
|
-
dto.id = qbMessageId;
|
|
1257
|
-
|
|
1258
|
-
return Promise.resolve(dto);
|
|
1259
|
-
}
|
|
1260
|
-
|
|
1261
|
-
// eslint-disable-next-line class-methods-use-this
|
|
1262
|
-
async sendSystemMessage(dto: RemoteMessageDTO): Promise<boolean> {
|
|
1263
|
-
let qbMessages: QBSystemMessage | QBChatMessage['_id'] | undefined;
|
|
1264
|
-
|
|
1265
|
-
if (dto.notification_type && dto.notification_type.length > 0) {
|
|
1266
|
-
const systemMessage: QBSystemMessage = {
|
|
1267
|
-
body: null,
|
|
1268
|
-
id: '',
|
|
1269
|
-
userId: this.authInformation?.userId || 0,
|
|
1270
|
-
extension: {
|
|
1271
|
-
notification_type: dto.notification_type,
|
|
1272
|
-
dialog_id: dto.dialogId,
|
|
1273
|
-
},
|
|
1274
|
-
};
|
|
1275
|
-
|
|
1276
|
-
qbMessages = await QBChatSendSystemMessage(
|
|
1277
|
-
dto.recipient_id,
|
|
1278
|
-
systemMessage,
|
|
1279
|
-
);
|
|
1280
|
-
}
|
|
1281
|
-
|
|
1282
|
-
if (qbMessages === null || qbMessages === undefined) {
|
|
1283
|
-
return Promise.reject(
|
|
1284
|
-
new RemoteDataSourceException(
|
|
1285
|
-
INCORRECT_REMOTE_DATASOURCE_DATA_EXCEPTION_MESSAGE,
|
|
1286
|
-
INCORRECT_REMOTE_DATASOURCE_DATA_EXCEPTION_CODE,
|
|
1287
|
-
),
|
|
1288
|
-
);
|
|
1289
|
-
}
|
|
1290
|
-
console.log('system message was sent');
|
|
1291
|
-
|
|
1292
|
-
return Promise.resolve(true);
|
|
1293
|
-
}
|
|
1294
|
-
|
|
1295
|
-
// eslint-disable-next-line @typescript-eslint/require-await,class-methods-use-this,@typescript-eslint/no-unused-vars
|
|
1296
|
-
async updateMessage(
|
|
1297
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
1298
|
-
dto: RemoteMessageDTO,
|
|
1299
|
-
): Promise<RemoteMessageDTO> {
|
|
1300
|
-
const qbEntity: QBChatMessage = await this.messageDTOMapper.fromDTO(dto);
|
|
1301
|
-
|
|
1302
|
-
const storageValue = localStorage.getItem('qbMessages');
|
|
1303
|
-
const result: string = storageValue ?? '';
|
|
1304
|
-
|
|
1305
|
-
const qbMessages: Record<string, QBChatMessage> =
|
|
1306
|
-
result === '' ? {} : JSON.parse(result);
|
|
1307
|
-
|
|
1308
|
-
if (qbMessages === null || qbMessages === undefined) {
|
|
1309
|
-
return Promise.reject(
|
|
1310
|
-
new RemoteDataSourceException(
|
|
1311
|
-
INCORRECT_REMOTE_DATASOURCE_DATA_EXCEPTION_MESSAGE,
|
|
1312
|
-
INCORRECT_REMOTE_DATASOURCE_DATA_EXCEPTION_CODE,
|
|
1313
|
-
),
|
|
1314
|
-
);
|
|
1315
|
-
}
|
|
1316
|
-
qbMessages[qbEntity._id] = qbEntity;
|
|
1317
|
-
|
|
1318
|
-
// TODO: How get updated QBChatDialog and return to DTO
|
|
1319
|
-
localStorage.setItem('qbMessages', JSON.stringify(qbMessages));
|
|
1320
|
-
|
|
1321
|
-
const newDTO: RemoteMessageDTO = await this.messageDTOMapper.toTDO(
|
|
1322
|
-
qbEntity,
|
|
1323
|
-
);
|
|
1324
|
-
|
|
1325
|
-
return Promise.resolve(newDTO);
|
|
1326
|
-
}
|
|
1327
|
-
|
|
1328
|
-
// eslint-disable-next-line @typescript-eslint/require-await,class-methods-use-this,@typescript-eslint/no-unused-vars
|
|
1329
|
-
async deleteMessage(dto: RemoteMessageDTO): Promise<void> {
|
|
1330
|
-
const qbEntity: QBChatMessage = await this.messageDTOMapper.fromDTO(dto);
|
|
1331
|
-
|
|
1332
|
-
const storageValue = localStorage.getItem('qbMessages');
|
|
1333
|
-
const result: string = storageValue ?? '';
|
|
1334
|
-
|
|
1335
|
-
const qbMessages: Record<string, QBChatMessage> =
|
|
1336
|
-
result === '' ? {} : JSON.parse(result);
|
|
1337
|
-
|
|
1338
|
-
if (qbMessages === null || qbMessages === undefined) {
|
|
1339
|
-
return Promise.reject(
|
|
1340
|
-
new RemoteDataSourceException(
|
|
1341
|
-
INCORRECT_REMOTE_DATASOURCE_DATA_EXCEPTION_MESSAGE,
|
|
1342
|
-
INCORRECT_REMOTE_DATASOURCE_DATA_EXCEPTION_CODE,
|
|
1343
|
-
),
|
|
1344
|
-
);
|
|
1345
|
-
}
|
|
1346
|
-
// TODO: try catch for delete
|
|
1347
|
-
const filteredqbMessages: Record<string, QBChatMessage> = {};
|
|
1348
|
-
|
|
1349
|
-
Object.keys(qbMessages).forEach((key) => {
|
|
1350
|
-
if (key !== qbEntity._id) {
|
|
1351
|
-
filteredqbMessages[key] = qbMessages[key];
|
|
1352
|
-
}
|
|
1353
|
-
});
|
|
1354
|
-
|
|
1355
|
-
localStorage.setItem('qbMessages', JSON.stringify(filteredqbMessages));
|
|
1356
|
-
|
|
1357
|
-
return Promise.resolve();
|
|
1358
|
-
}
|
|
1359
|
-
|
|
1360
|
-
// eslint-disable-next-line @typescript-eslint/require-await,class-methods-use-this,@typescript-eslint/no-unused-vars
|
|
1361
|
-
async createFile(dto: RemoteFileDTO): Promise<RemoteFileDTO> {
|
|
1362
|
-
console.log('call createFile in remote with params: ', JSON.stringify(dto));
|
|
1363
|
-
const qbParam: QBContentParam = await this.fileDTOMapper.fromDTO(dto);
|
|
1364
|
-
|
|
1365
|
-
const result = await QBCreateAndUploadContent(qbParam).catch((err) => {
|
|
1366
|
-
console.log('Error: ', stringifyError(err));
|
|
1367
|
-
throw new RemoteDataSourceException(
|
|
1368
|
-
INCORRECT_REMOTE_DATASOURCE_DATA_EXCEPTION_MESSAGE,
|
|
1369
|
-
INCORRECT_REMOTE_DATASOURCE_DATA_EXCEPTION_CODE,
|
|
1370
|
-
`exception: ${stringifyError(err)}`,
|
|
1371
|
-
);
|
|
1372
|
-
});
|
|
1373
|
-
|
|
1374
|
-
if (result === null || result === undefined) {
|
|
1375
|
-
return Promise.reject(
|
|
1376
|
-
new RemoteDataSourceException(
|
|
1377
|
-
INCORRECT_REMOTE_DATASOURCE_DATA_EXCEPTION_MESSAGE,
|
|
1378
|
-
INCORRECT_REMOTE_DATASOURCE_DATA_EXCEPTION_CODE,
|
|
1379
|
-
),
|
|
1380
|
-
);
|
|
1381
|
-
}
|
|
1382
|
-
|
|
1383
|
-
const qbContentObject: QBContentObject = result as QBContentObject;
|
|
1384
|
-
const newDto: RemoteFileDTO = await this.fileDTOMapper.toTDO<
|
|
1385
|
-
QBContentObject,
|
|
1386
|
-
RemoteFileDTO
|
|
1387
|
-
>(qbContentObject);
|
|
1388
|
-
|
|
1389
|
-
console.log(
|
|
1390
|
-
'have result in createFile in remote ds: ',
|
|
1391
|
-
JSON.stringify(newDto),
|
|
1392
|
-
);
|
|
1393
|
-
|
|
1394
|
-
return Promise.resolve(newDto);
|
|
1395
|
-
}
|
|
1396
|
-
|
|
1397
|
-
// eslint-disable-next-line @typescript-eslint/require-await,class-methods-use-this,@typescript-eslint/no-unused-vars
|
|
1398
|
-
async getFile(dto: RemoteFileDTO): Promise<RemoteFileDTO> {
|
|
1399
|
-
throw new Error('Method not implemented.');
|
|
1400
|
-
}
|
|
1401
|
-
|
|
1402
|
-
// eslint-disable-next-line @typescript-eslint/require-await,class-methods-use-this,@typescript-eslint/no-unused-vars
|
|
1403
|
-
async deleteFile(dto: RemoteFileDTO): Promise<void> {
|
|
1404
|
-
throw new Error('Method not implemented.');
|
|
1405
|
-
}
|
|
1406
|
-
|
|
1407
|
-
// eslint-disable-next-line @typescript-eslint/require-await,class-methods-use-this,@typescript-eslint/no-unused-vars
|
|
1408
|
-
async subscribeToChatConnectionEvents(
|
|
1409
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
1410
|
-
fileId: string,
|
|
1411
|
-
): Promise<void> {
|
|
1412
|
-
throw new Error('Method not implemented.');
|
|
1413
|
-
}
|
|
1414
|
-
}
|