@replyke/core 7.0.0-beta.107 → 7.0.0-beta.108
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/cjs/context/chat-context.js.map +1 -1
- package/dist/cjs/context/conversation-context.js +11 -5
- package/dist/cjs/context/conversation-context.js.map +1 -1
- package/dist/cjs/helpers/addNotificationsMessages.js +177 -73
- package/dist/cjs/helpers/addNotificationsMessages.js.map +1 -1
- package/dist/cjs/hooks/app-notifications/useAppNotifications.d.ts +3 -1
- package/dist/cjs/hooks/app-notifications/useAppNotifications.js +1 -1
- package/dist/cjs/hooks/app-notifications/useAppNotifications.js.map +1 -1
- package/dist/cjs/hooks/app-notifications/useAppNotificationsActions.d.ts +6 -2
- package/dist/cjs/hooks/app-notifications/useAppNotificationsActions.js +2 -2
- package/dist/cjs/hooks/app-notifications/useAppNotificationsActions.js.map +1 -1
- package/dist/cjs/hooks/auth/index.d.ts +2 -0
- package/dist/cjs/hooks/auth/index.js +5 -1
- package/dist/cjs/hooks/auth/index.js.map +1 -1
- package/dist/cjs/hooks/auth/useAccountSync.d.ts +2 -2
- package/dist/cjs/hooks/auth/useAccountSync.js +3 -2
- package/dist/cjs/hooks/auth/useAccountSync.js.map +1 -1
- package/dist/cjs/hooks/auth/useOAuthIdentities.d.ts +3 -1
- package/dist/cjs/hooks/auth/useOAuthIdentities.js +1 -1
- package/dist/cjs/hooks/auth/useOAuthIdentities.js.map +1 -1
- package/dist/cjs/hooks/auth/useRemoveAccount.d.ts +3 -1
- package/dist/cjs/hooks/auth/useRemoveAccount.js +1 -1
- package/dist/cjs/hooks/auth/useRemoveAccount.js.map +1 -1
- package/dist/cjs/hooks/auth/useSendVerificationEmail.d.ts +10 -0
- package/dist/cjs/hooks/auth/useSendVerificationEmail.js +21 -0
- package/dist/cjs/hooks/auth/useSendVerificationEmail.js.map +1 -0
- package/dist/cjs/hooks/auth/useSwitchAccount.d.ts +3 -1
- package/dist/cjs/hooks/auth/useSwitchAccount.js +1 -1
- package/dist/cjs/hooks/auth/useSwitchAccount.js.map +1 -1
- package/dist/cjs/hooks/auth/useVerifyEmail.d.ts +7 -0
- package/dist/cjs/hooks/auth/useVerifyEmail.js +31 -0
- package/dist/cjs/hooks/auth/useVerifyEmail.js.map +1 -0
- package/dist/cjs/hooks/chat/conversations/index.d.ts +9 -3
- package/dist/cjs/hooks/chat/conversations/index.js +9 -3
- package/dist/cjs/hooks/chat/conversations/index.js.map +1 -1
- package/dist/cjs/hooks/chat/conversations/useConversation.d.ts +4 -9
- package/dist/cjs/hooks/chat/conversations/useConversation.js +16 -28
- package/dist/cjs/hooks/chat/conversations/useConversation.js.map +1 -1
- package/dist/cjs/hooks/chat/conversations/useConversationMembers.d.ts +16 -7
- package/dist/cjs/hooks/chat/conversations/useConversationMembers.js +4 -4
- package/dist/cjs/hooks/chat/conversations/useConversationMembers.js.map +1 -1
- package/dist/cjs/hooks/chat/conversations/useConversations.d.ts +3 -3
- package/dist/cjs/hooks/chat/conversations/useConversations.js.map +1 -1
- package/dist/cjs/hooks/chat/conversations/useCreateDirectConversation.d.ts +2 -2
- package/dist/cjs/hooks/chat/conversations/useCreateDirectConversation.js.map +1 -1
- package/dist/cjs/hooks/chat/conversations/useDeleteConversation.d.ts +5 -0
- package/dist/cjs/hooks/chat/conversations/useDeleteConversation.js +22 -0
- package/dist/cjs/hooks/chat/conversations/useDeleteConversation.js.map +1 -0
- package/dist/cjs/hooks/chat/conversations/useFetchConversation.d.ts +6 -0
- package/dist/cjs/hooks/chat/conversations/useFetchConversation.js +23 -0
- package/dist/cjs/hooks/chat/conversations/useFetchConversation.js.map +1 -0
- package/dist/cjs/hooks/chat/conversations/useFetchSpaceConversation.d.ts +10 -0
- package/dist/cjs/hooks/chat/conversations/{useSpaceConversation.js → useFetchSpaceConversation.js} +3 -3
- package/dist/cjs/hooks/chat/conversations/useFetchSpaceConversation.js.map +1 -0
- package/dist/cjs/hooks/chat/conversations/useUpdateConversation.d.ts +10 -0
- package/dist/cjs/hooks/chat/conversations/useUpdateConversation.js +23 -0
- package/dist/cjs/hooks/chat/conversations/useUpdateConversation.js.map +1 -0
- package/dist/cjs/hooks/chat/index.d.ts +2 -2
- package/dist/cjs/hooks/chat/index.js +5 -2
- package/dist/cjs/hooks/chat/index.js.map +1 -1
- package/dist/cjs/hooks/chat/messages/useChatMessages.d.ts +2 -2
- package/dist/cjs/hooks/chat/messages/useEditMessage.d.ts +2 -2
- package/dist/cjs/hooks/chat/messages/useEditMessage.js.map +1 -1
- package/dist/cjs/hooks/chat/messages/useMessageThread.d.ts +3 -3
- package/dist/cjs/hooks/chat/messages/useSendMessage.d.ts +2 -2
- package/dist/cjs/hooks/chat/messages/useSendMessage.js +6 -6
- package/dist/cjs/hooks/chat/messages/useSendMessage.js.map +1 -1
- package/dist/cjs/hooks/chat/useConversationData.d.ts +6 -4
- package/dist/cjs/hooks/chat/useMarkConversationAsRead.d.ts +3 -1
- package/dist/cjs/hooks/chat/useMarkConversationAsRead.js +1 -1
- package/dist/cjs/hooks/chat/useMarkConversationAsRead.js.map +1 -1
- package/dist/cjs/hooks/collections/index.d.ts +1 -1
- package/dist/cjs/hooks/collections/index.js +2 -2
- package/dist/cjs/hooks/collections/index.js.map +1 -1
- package/dist/cjs/hooks/collections/useCollections.js +26 -8
- package/dist/cjs/hooks/collections/useCollections.js.map +1 -1
- package/dist/cjs/hooks/collections/useCollectionsActions.d.ts +33 -9
- package/dist/cjs/hooks/collections/useCollectionsActions.js +7 -7
- package/dist/cjs/hooks/collections/useCollectionsActions.js.map +1 -1
- package/dist/{esm/hooks/collections/useIsEntitySaved.d.ts → cjs/hooks/collections/useIsEntityInCollection.d.ts} +3 -1
- package/dist/cjs/hooks/collections/{useIsEntitySaved.js → useIsEntityInCollection.js} +2 -2
- package/dist/cjs/hooks/collections/useIsEntityInCollection.js.map +1 -0
- package/dist/cjs/hooks/comments/useCommentSectionData.d.ts +6 -2
- package/dist/cjs/hooks/comments/useCommentSectionData.js +7 -4
- package/dist/cjs/hooks/comments/useCommentSectionData.js.map +1 -1
- package/dist/cjs/hooks/comments/useEntityComments.d.ts +6 -2
- package/dist/cjs/hooks/comments/useEntityComments.js +2 -2
- package/dist/cjs/hooks/comments/useEntityComments.js.map +1 -1
- package/dist/cjs/hooks/comments/useFetchManyComments.d.ts +1 -1
- package/dist/cjs/hooks/entities/index.d.ts +0 -1
- package/dist/cjs/hooks/entities/index.js +1 -3
- package/dist/cjs/hooks/entities/index.js.map +1 -1
- package/dist/cjs/hooks/entities/useEntityData.d.ts +0 -1
- package/dist/cjs/hooks/entities/useEntityData.js +0 -15
- package/dist/cjs/hooks/entities/useEntityData.js.map +1 -1
- package/dist/cjs/hooks/entities/useFetchDrafts.d.ts +1 -1
- package/dist/cjs/hooks/entities/useFetchManyEntities.d.ts +1 -1
- package/dist/cjs/hooks/entities/useFetchManyEntitiesWrapper.js +0 -3
- package/dist/cjs/hooks/entities/useFetchManyEntitiesWrapper.js.map +1 -1
- package/dist/cjs/hooks/entity-lists/index.d.ts +1 -1
- package/dist/cjs/hooks/entity-lists/useEntityListActions.js +3 -3
- package/dist/cjs/hooks/entity-lists/useEntityListActions.js.map +1 -1
- package/dist/cjs/hooks/reactions/useFetchCommentReactions.d.ts +1 -1
- package/dist/cjs/hooks/reactions/useFetchEntityReactions.d.ts +1 -1
- package/dist/cjs/hooks/relationships/connections/useFetchConnections.d.ts +1 -1
- package/dist/cjs/hooks/relationships/connections/useFetchConnectionsByUserId.d.ts +1 -1
- package/dist/cjs/hooks/relationships/connections/useFetchReceivedPendingConnections.d.ts +1 -1
- package/dist/cjs/hooks/relationships/connections/useFetchSentPendingConnections.d.ts +1 -1
- package/dist/cjs/hooks/relationships/follows/useFetchFollowers.d.ts +1 -1
- package/dist/cjs/hooks/relationships/follows/useFetchFollowersByUserId.d.ts +1 -1
- package/dist/cjs/hooks/relationships/follows/useFetchFollowing.d.ts +1 -1
- package/dist/cjs/hooks/relationships/follows/useFetchFollowingByUserId.d.ts +1 -1
- package/dist/cjs/hooks/reports/useFetchModeratedReports.d.ts +1 -1
- package/dist/cjs/hooks/search/useSearchContent.d.ts +2 -2
- package/dist/cjs/hooks/spaces/useFetchManySpaces.d.ts +1 -1
- package/dist/cjs/hooks/spaces/useFetchSpaceChildren.d.ts +1 -1
- package/dist/cjs/hooks/user/useUser.js +7 -10
- package/dist/cjs/hooks/user/useUser.js.map +1 -1
- package/dist/cjs/hooks/user/useUserActions.d.ts +6 -1
- package/dist/cjs/hooks/user/useUserActions.js +1 -1
- package/dist/cjs/hooks/user/useUserActions.js.map +1 -1
- package/dist/cjs/index.d.ts +11 -11
- package/dist/cjs/index.js +11 -7
- package/dist/cjs/index.js.map +1 -1
- package/dist/{esm/interfaces/IAccountStorage.d.ts → cjs/interfaces/AccountStorage.d.ts} +1 -1
- package/dist/cjs/interfaces/{IAccountStorage.js → AccountStorage.js} +1 -1
- package/dist/cjs/interfaces/AccountStorage.js.map +1 -0
- package/dist/cjs/interfaces/{IPaginatedResponse.js → PaginatedResponse.js} +1 -1
- package/dist/cjs/interfaces/PaginatedResponse.js.map +1 -0
- package/dist/cjs/interfaces/models/AppNotification.d.ts +131 -21
- package/dist/{esm/interfaces/models/IChatMessage.d.ts → cjs/interfaces/models/ChatMessage.d.ts} +4 -4
- package/dist/cjs/interfaces/models/{IChatMessage.js → ChatMessage.js} +1 -1
- package/dist/cjs/interfaces/models/ChatMessage.js.map +1 -0
- package/dist/cjs/interfaces/models/Collection.d.ts +1 -1
- package/dist/cjs/interfaces/models/Connection.d.ts +0 -1
- package/dist/{esm/interfaces/models/IConversation.d.ts → cjs/interfaces/models/Conversation.d.ts} +6 -6
- package/dist/cjs/interfaces/models/{IConversation.js → Conversation.js} +1 -1
- package/dist/cjs/interfaces/models/Conversation.js.map +1 -0
- package/dist/cjs/interfaces/models/{IConversationMember.d.ts → ConversationMember.d.ts} +1 -1
- package/dist/cjs/interfaces/models/ConversationMember.js +3 -0
- package/dist/cjs/interfaces/models/ConversationMember.js.map +1 -0
- package/dist/cjs/interfaces/models/Entity.d.ts +1 -0
- package/dist/cjs/interfaces/models/Space.d.ts +1 -1
- package/dist/cjs/interfaces/models/SpaceMember.d.ts +2 -2
- package/dist/cjs/store/api/appNotificationsApi.d.ts +1 -1
- package/dist/cjs/store/api/entityListsApi.d.ts +193 -192
- package/dist/cjs/store/api/entityListsApi.js +1 -5
- package/dist/cjs/store/api/entityListsApi.js.map +1 -1
- package/dist/cjs/store/slices/appNotificationsSlice.d.ts +528 -330
- package/dist/cjs/store/slices/chatSlice.d.ts +16 -16
- package/dist/cjs/store/slices/chatSlice.js +7 -7
- package/dist/cjs/store/slices/chatSlice.js.map +1 -1
- package/dist/cjs/store/slices/collectionsSlice.d.ts +14 -14
- package/dist/cjs/store/slices/entityListsSlice.d.ts +12 -0
- package/dist/cjs/types/socket.d.ts +8 -8
- package/dist/esm/context/chat-context.js.map +1 -1
- package/dist/esm/context/conversation-context.js +11 -5
- package/dist/esm/context/conversation-context.js.map +1 -1
- package/dist/esm/helpers/addNotificationsMessages.js +177 -73
- package/dist/esm/helpers/addNotificationsMessages.js.map +1 -1
- package/dist/esm/hooks/app-notifications/useAppNotifications.d.ts +3 -1
- package/dist/esm/hooks/app-notifications/useAppNotifications.js +1 -1
- package/dist/esm/hooks/app-notifications/useAppNotifications.js.map +1 -1
- package/dist/esm/hooks/app-notifications/useAppNotificationsActions.d.ts +6 -2
- package/dist/esm/hooks/app-notifications/useAppNotificationsActions.js +2 -2
- package/dist/esm/hooks/app-notifications/useAppNotificationsActions.js.map +1 -1
- package/dist/esm/hooks/auth/index.d.ts +2 -0
- package/dist/esm/hooks/auth/index.js +2 -0
- package/dist/esm/hooks/auth/index.js.map +1 -1
- package/dist/esm/hooks/auth/useAccountSync.d.ts +2 -2
- package/dist/esm/hooks/auth/useAccountSync.js +3 -2
- package/dist/esm/hooks/auth/useAccountSync.js.map +1 -1
- package/dist/esm/hooks/auth/useOAuthIdentities.d.ts +3 -1
- package/dist/esm/hooks/auth/useOAuthIdentities.js +1 -1
- package/dist/esm/hooks/auth/useOAuthIdentities.js.map +1 -1
- package/dist/esm/hooks/auth/useRemoveAccount.d.ts +3 -1
- package/dist/esm/hooks/auth/useRemoveAccount.js +1 -1
- package/dist/esm/hooks/auth/useRemoveAccount.js.map +1 -1
- package/dist/esm/hooks/auth/useSendVerificationEmail.d.ts +10 -0
- package/dist/esm/hooks/auth/useSendVerificationEmail.js +16 -0
- package/dist/esm/hooks/auth/useSendVerificationEmail.js.map +1 -0
- package/dist/esm/hooks/auth/useSwitchAccount.d.ts +3 -1
- package/dist/esm/hooks/auth/useSwitchAccount.js +1 -1
- package/dist/esm/hooks/auth/useSwitchAccount.js.map +1 -1
- package/dist/esm/hooks/auth/useVerifyEmail.d.ts +7 -0
- package/dist/esm/hooks/auth/useVerifyEmail.js +26 -0
- package/dist/esm/hooks/auth/useVerifyEmail.js.map +1 -0
- package/dist/esm/hooks/chat/conversations/index.d.ts +9 -3
- package/dist/esm/hooks/chat/conversations/index.js +4 -1
- package/dist/esm/hooks/chat/conversations/index.js.map +1 -1
- package/dist/esm/hooks/chat/conversations/useConversation.d.ts +4 -9
- package/dist/esm/hooks/chat/conversations/useConversation.js +16 -28
- package/dist/esm/hooks/chat/conversations/useConversation.js.map +1 -1
- package/dist/esm/hooks/chat/conversations/useConversationMembers.d.ts +16 -7
- package/dist/esm/hooks/chat/conversations/useConversationMembers.js +4 -4
- package/dist/esm/hooks/chat/conversations/useConversationMembers.js.map +1 -1
- package/dist/esm/hooks/chat/conversations/useConversations.d.ts +3 -3
- package/dist/esm/hooks/chat/conversations/useConversations.js.map +1 -1
- package/dist/esm/hooks/chat/conversations/useCreateDirectConversation.d.ts +2 -2
- package/dist/esm/hooks/chat/conversations/useCreateDirectConversation.js.map +1 -1
- package/dist/esm/hooks/chat/conversations/useDeleteConversation.d.ts +5 -0
- package/dist/esm/hooks/chat/conversations/useDeleteConversation.js +17 -0
- package/dist/esm/hooks/chat/conversations/useDeleteConversation.js.map +1 -0
- package/dist/esm/hooks/chat/conversations/useFetchConversation.d.ts +6 -0
- package/dist/esm/hooks/chat/conversations/useFetchConversation.js +18 -0
- package/dist/esm/hooks/chat/conversations/useFetchConversation.js.map +1 -0
- package/dist/esm/hooks/chat/conversations/useFetchSpaceConversation.d.ts +10 -0
- package/dist/esm/hooks/chat/conversations/{useSpaceConversation.js → useFetchSpaceConversation.js} +3 -3
- package/dist/esm/hooks/chat/conversations/useFetchSpaceConversation.js.map +1 -0
- package/dist/esm/hooks/chat/conversations/useUpdateConversation.d.ts +10 -0
- package/dist/esm/hooks/chat/conversations/useUpdateConversation.js +18 -0
- package/dist/esm/hooks/chat/conversations/useUpdateConversation.js.map +1 -0
- package/dist/esm/hooks/chat/index.d.ts +2 -2
- package/dist/esm/hooks/chat/index.js +1 -1
- package/dist/esm/hooks/chat/index.js.map +1 -1
- package/dist/esm/hooks/chat/messages/useChatMessages.d.ts +2 -2
- package/dist/esm/hooks/chat/messages/useEditMessage.d.ts +2 -2
- package/dist/esm/hooks/chat/messages/useEditMessage.js.map +1 -1
- package/dist/esm/hooks/chat/messages/useMessageThread.d.ts +3 -3
- package/dist/esm/hooks/chat/messages/useSendMessage.d.ts +2 -2
- package/dist/esm/hooks/chat/messages/useSendMessage.js +6 -6
- package/dist/esm/hooks/chat/messages/useSendMessage.js.map +1 -1
- package/dist/esm/hooks/chat/useConversationData.d.ts +6 -4
- package/dist/esm/hooks/chat/useMarkConversationAsRead.d.ts +3 -1
- package/dist/esm/hooks/chat/useMarkConversationAsRead.js +1 -1
- package/dist/esm/hooks/chat/useMarkConversationAsRead.js.map +1 -1
- package/dist/esm/hooks/collections/index.d.ts +1 -1
- package/dist/esm/hooks/collections/index.js +1 -1
- package/dist/esm/hooks/collections/index.js.map +1 -1
- package/dist/esm/hooks/collections/useCollections.js +26 -8
- package/dist/esm/hooks/collections/useCollections.js.map +1 -1
- package/dist/esm/hooks/collections/useCollectionsActions.d.ts +33 -9
- package/dist/esm/hooks/collections/useCollectionsActions.js +7 -7
- package/dist/esm/hooks/collections/useCollectionsActions.js.map +1 -1
- package/dist/{cjs/hooks/collections/useIsEntitySaved.d.ts → esm/hooks/collections/useIsEntityInCollection.d.ts} +3 -1
- package/dist/esm/hooks/collections/{useIsEntitySaved.js → useIsEntityInCollection.js} +2 -2
- package/dist/esm/hooks/collections/useIsEntityInCollection.js.map +1 -0
- package/dist/esm/hooks/comments/useCommentSectionData.d.ts +6 -2
- package/dist/esm/hooks/comments/useCommentSectionData.js +7 -4
- package/dist/esm/hooks/comments/useCommentSectionData.js.map +1 -1
- package/dist/esm/hooks/comments/useEntityComments.d.ts +6 -2
- package/dist/esm/hooks/comments/useEntityComments.js +2 -2
- package/dist/esm/hooks/comments/useEntityComments.js.map +1 -1
- package/dist/esm/hooks/comments/useFetchManyComments.d.ts +1 -1
- package/dist/esm/hooks/entities/index.d.ts +0 -1
- package/dist/esm/hooks/entities/index.js +0 -1
- package/dist/esm/hooks/entities/index.js.map +1 -1
- package/dist/esm/hooks/entities/useEntityData.d.ts +0 -1
- package/dist/esm/hooks/entities/useEntityData.js +0 -15
- package/dist/esm/hooks/entities/useEntityData.js.map +1 -1
- package/dist/esm/hooks/entities/useFetchDrafts.d.ts +1 -1
- package/dist/esm/hooks/entities/useFetchManyEntities.d.ts +1 -1
- package/dist/esm/hooks/entities/useFetchManyEntitiesWrapper.js +0 -3
- package/dist/esm/hooks/entities/useFetchManyEntitiesWrapper.js.map +1 -1
- package/dist/esm/hooks/entity-lists/index.d.ts +1 -1
- package/dist/esm/hooks/entity-lists/useEntityListActions.js +3 -3
- package/dist/esm/hooks/entity-lists/useEntityListActions.js.map +1 -1
- package/dist/esm/hooks/reactions/useFetchCommentReactions.d.ts +1 -1
- package/dist/esm/hooks/reactions/useFetchEntityReactions.d.ts +1 -1
- package/dist/esm/hooks/relationships/connections/useFetchConnections.d.ts +1 -1
- package/dist/esm/hooks/relationships/connections/useFetchConnectionsByUserId.d.ts +1 -1
- package/dist/esm/hooks/relationships/connections/useFetchReceivedPendingConnections.d.ts +1 -1
- package/dist/esm/hooks/relationships/connections/useFetchSentPendingConnections.d.ts +1 -1
- package/dist/esm/hooks/relationships/follows/useFetchFollowers.d.ts +1 -1
- package/dist/esm/hooks/relationships/follows/useFetchFollowersByUserId.d.ts +1 -1
- package/dist/esm/hooks/relationships/follows/useFetchFollowing.d.ts +1 -1
- package/dist/esm/hooks/relationships/follows/useFetchFollowingByUserId.d.ts +1 -1
- package/dist/esm/hooks/reports/useFetchModeratedReports.d.ts +1 -1
- package/dist/esm/hooks/search/useSearchContent.d.ts +2 -2
- package/dist/esm/hooks/spaces/useFetchManySpaces.d.ts +1 -1
- package/dist/esm/hooks/spaces/useFetchSpaceChildren.d.ts +1 -1
- package/dist/esm/hooks/user/useUser.js +7 -10
- package/dist/esm/hooks/user/useUser.js.map +1 -1
- package/dist/esm/hooks/user/useUserActions.d.ts +6 -1
- package/dist/esm/hooks/user/useUserActions.js +1 -1
- package/dist/esm/hooks/user/useUserActions.js.map +1 -1
- package/dist/esm/index.d.ts +11 -11
- package/dist/esm/index.js +4 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/{cjs/interfaces/IAccountStorage.d.ts → esm/interfaces/AccountStorage.d.ts} +1 -1
- package/dist/esm/interfaces/AccountStorage.js +2 -0
- package/dist/esm/interfaces/AccountStorage.js.map +1 -0
- package/dist/esm/interfaces/PaginatedResponse.js +2 -0
- package/dist/esm/interfaces/PaginatedResponse.js.map +1 -0
- package/dist/esm/interfaces/models/AppNotification.d.ts +131 -21
- package/dist/{cjs/interfaces/models/IChatMessage.d.ts → esm/interfaces/models/ChatMessage.d.ts} +4 -4
- package/dist/esm/interfaces/models/ChatMessage.js +2 -0
- package/dist/esm/interfaces/models/ChatMessage.js.map +1 -0
- package/dist/esm/interfaces/models/Collection.d.ts +1 -1
- package/dist/esm/interfaces/models/Connection.d.ts +0 -1
- package/dist/{cjs/interfaces/models/IConversation.d.ts → esm/interfaces/models/Conversation.d.ts} +6 -6
- package/dist/esm/interfaces/models/Conversation.js +2 -0
- package/dist/esm/interfaces/models/Conversation.js.map +1 -0
- package/dist/esm/interfaces/models/{IConversationMember.d.ts → ConversationMember.d.ts} +1 -1
- package/dist/esm/interfaces/models/ConversationMember.js +2 -0
- package/dist/esm/interfaces/models/ConversationMember.js.map +1 -0
- package/dist/esm/interfaces/models/Entity.d.ts +1 -0
- package/dist/esm/interfaces/models/Space.d.ts +1 -1
- package/dist/esm/interfaces/models/SpaceMember.d.ts +2 -2
- package/dist/esm/store/api/appNotificationsApi.d.ts +1 -1
- package/dist/esm/store/api/entityListsApi.d.ts +193 -192
- package/dist/esm/store/api/entityListsApi.js +1 -5
- package/dist/esm/store/api/entityListsApi.js.map +1 -1
- package/dist/esm/store/slices/appNotificationsSlice.d.ts +528 -330
- package/dist/esm/store/slices/chatSlice.d.ts +16 -16
- package/dist/esm/store/slices/chatSlice.js +7 -7
- package/dist/esm/store/slices/chatSlice.js.map +1 -1
- package/dist/esm/store/slices/collectionsSlice.d.ts +14 -14
- package/dist/esm/store/slices/entityListsSlice.d.ts +12 -0
- package/dist/esm/types/socket.d.ts +8 -8
- package/package.json +1 -1
- package/dist/cjs/hooks/chat/conversations/useSpaceConversation.d.ts +0 -10
- package/dist/cjs/hooks/chat/conversations/useSpaceConversation.js.map +0 -1
- package/dist/cjs/hooks/collections/useIsEntitySaved.js.map +0 -1
- package/dist/cjs/hooks/entities/useIncrementEntityViews.d.ts +0 -5
- package/dist/cjs/hooks/entities/useIncrementEntityViews.js +0 -27
- package/dist/cjs/hooks/entities/useIncrementEntityViews.js.map +0 -1
- package/dist/cjs/interfaces/IAccountStorage.js.map +0 -1
- package/dist/cjs/interfaces/IPaginatedResponse.js.map +0 -1
- package/dist/cjs/interfaces/models/IChatMessage.js.map +0 -1
- package/dist/cjs/interfaces/models/IConversation.js.map +0 -1
- package/dist/cjs/interfaces/models/IConversationMember.js +0 -3
- package/dist/cjs/interfaces/models/IConversationMember.js.map +0 -1
- package/dist/esm/hooks/chat/conversations/useSpaceConversation.d.ts +0 -10
- package/dist/esm/hooks/chat/conversations/useSpaceConversation.js.map +0 -1
- package/dist/esm/hooks/collections/useIsEntitySaved.js.map +0 -1
- package/dist/esm/hooks/entities/useIncrementEntityViews.d.ts +0 -5
- package/dist/esm/hooks/entities/useIncrementEntityViews.js +0 -22
- package/dist/esm/hooks/entities/useIncrementEntityViews.js.map +0 -1
- package/dist/esm/interfaces/IAccountStorage.js +0 -2
- package/dist/esm/interfaces/IAccountStorage.js.map +0 -1
- package/dist/esm/interfaces/IPaginatedResponse.js +0 -2
- package/dist/esm/interfaces/IPaginatedResponse.js.map +0 -1
- package/dist/esm/interfaces/models/IChatMessage.js +0 -2
- package/dist/esm/interfaces/models/IChatMessage.js.map +0 -1
- package/dist/esm/interfaces/models/IConversation.js +0 -2
- package/dist/esm/interfaces/models/IConversation.js.map +0 -1
- package/dist/esm/interfaces/models/IConversationMember.js +0 -2
- package/dist/esm/interfaces/models/IConversationMember.js.map +0 -1
- /package/dist/cjs/interfaces/{IPaginatedResponse.d.ts → PaginatedResponse.d.ts} +0 -0
- /package/dist/esm/interfaces/{IPaginatedResponse.d.ts → PaginatedResponse.d.ts} +0 -0
|
@@ -4,7 +4,7 @@ interface MilestoneUser {
|
|
|
4
4
|
username: string | null | undefined;
|
|
5
5
|
avatar: string | null | undefined;
|
|
6
6
|
}
|
|
7
|
-
type AppNotificationType = "system" | "entity-comment" | "comment-reply" | "entity-mention" | "comment-mention" | "entity-upvote" | "comment-upvote" | "entity-reaction" | "comment-reaction" | "entity-reaction-milestone-specific" | "entity-reaction-milestone-total" | "comment-reaction-milestone-specific" | "comment-reaction-milestone-total" | "new-follow" | "connection-request" | "connection-accepted";
|
|
7
|
+
type AppNotificationType = "system" | "entity-comment" | "comment-reply" | "entity-mention" | "comment-mention" | "entity-upvote" | "comment-upvote" | "entity-reaction" | "comment-reaction" | "entity-reaction-milestone-specific" | "entity-reaction-milestone-total" | "comment-reaction-milestone-specific" | "comment-reaction-milestone-total" | "new-follow" | "connection-request" | "connection-accepted" | "space-membership-approved";
|
|
8
8
|
interface BaseAppNotification {
|
|
9
9
|
id: string;
|
|
10
10
|
userId: string;
|
|
@@ -239,27 +239,137 @@ export interface ConnectionAcceptedNotification extends BaseAppNotification {
|
|
|
239
239
|
initiatorAvatar: string | null | undefined;
|
|
240
240
|
};
|
|
241
241
|
}
|
|
242
|
-
export
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
242
|
+
export interface SpaceMembershipApprovedNotification extends BaseAppNotification {
|
|
243
|
+
type: "space-membership-approved";
|
|
244
|
+
action: "open-space";
|
|
245
|
+
metadata: {
|
|
246
|
+
spaceId: string;
|
|
247
|
+
spaceName: string;
|
|
248
|
+
spaceShortId: string;
|
|
249
|
+
spaceSlug: string | null | undefined;
|
|
250
|
+
spaceAvatar: string | null | undefined;
|
|
251
|
+
};
|
|
252
|
+
}
|
|
253
|
+
export type UnifiedAppNotification = SystemNotification | EntityCommentNotification | CommentReplyNotification | EntityMentionNotification | CommentMentionNotification | EntityUpvoteNotification | CommentUpvoteNotification | EntityReactionNotification | CommentReactionNotification | EntityReactionMilestoneSpecificNotification | EntityReactionMilestoneTotalNotification | CommentReactionMilestoneSpecificNotification | CommentReactionMilestoneTotalNotification | NewFollowNotification | ConnectionRequestNotification | ConnectionAcceptedNotification | SpaceMembershipApprovedNotification;
|
|
254
|
+
export interface EntityCommentTemplateVars {
|
|
255
|
+
initiatorName: string;
|
|
256
|
+
initiatorUsername: string;
|
|
257
|
+
entityTitle: string;
|
|
258
|
+
entityContent: string;
|
|
259
|
+
commentContent: string;
|
|
260
|
+
}
|
|
261
|
+
export interface CommentReplyTemplateVars {
|
|
262
|
+
initiatorName: string;
|
|
263
|
+
initiatorUsername: string;
|
|
264
|
+
entityTitle: string;
|
|
265
|
+
entityContent: string;
|
|
266
|
+
commentContent: string;
|
|
267
|
+
replyContent: string;
|
|
268
|
+
}
|
|
269
|
+
export interface EntityMentionTemplateVars {
|
|
270
|
+
initiatorName: string;
|
|
271
|
+
initiatorUsername: string;
|
|
272
|
+
entityTitle: string;
|
|
273
|
+
entityContent: string;
|
|
274
|
+
}
|
|
275
|
+
export interface CommentMentionTemplateVars {
|
|
276
|
+
initiatorName: string;
|
|
277
|
+
initiatorUsername: string;
|
|
278
|
+
entityTitle: string;
|
|
279
|
+
entityContent: string;
|
|
280
|
+
commentContent: string;
|
|
281
|
+
}
|
|
282
|
+
export interface EntityUpvoteTemplateVars {
|
|
283
|
+
initiatorName: string;
|
|
284
|
+
initiatorUsername: string;
|
|
285
|
+
entityTitle: string;
|
|
286
|
+
entityContent: string;
|
|
287
|
+
}
|
|
288
|
+
export interface CommentUpvoteTemplateVars {
|
|
289
|
+
initiatorName: string;
|
|
290
|
+
initiatorUsername: string;
|
|
291
|
+
entityTitle: string;
|
|
292
|
+
entityContent: string;
|
|
293
|
+
commentContent: string;
|
|
294
|
+
}
|
|
295
|
+
export interface EntityReactionTemplateVars {
|
|
296
|
+
initiatorName: string;
|
|
297
|
+
initiatorUsername: string;
|
|
298
|
+
entityTitle: string;
|
|
299
|
+
entityContent: string;
|
|
300
|
+
reactionType: string;
|
|
301
|
+
}
|
|
302
|
+
export interface CommentReactionTemplateVars {
|
|
303
|
+
initiatorName: string;
|
|
304
|
+
initiatorUsername: string;
|
|
305
|
+
entityTitle: string;
|
|
306
|
+
entityContent: string;
|
|
307
|
+
commentContent: string;
|
|
308
|
+
reactionType: string;
|
|
309
|
+
}
|
|
310
|
+
export interface EntityReactionMilestoneSpecificTemplateVars {
|
|
311
|
+
entityTitle: string;
|
|
312
|
+
entityContent: string;
|
|
313
|
+
reactionType: string;
|
|
314
|
+
milestoneCount: string;
|
|
315
|
+
}
|
|
316
|
+
export interface EntityReactionMilestoneTotalTemplateVars {
|
|
317
|
+
entityTitle: string;
|
|
318
|
+
entityContent: string;
|
|
319
|
+
milestoneCount: string;
|
|
320
|
+
}
|
|
321
|
+
export interface CommentReactionMilestoneSpecificTemplateVars {
|
|
322
|
+
entityTitle: string;
|
|
323
|
+
entityContent: string;
|
|
324
|
+
commentContent: string;
|
|
325
|
+
reactionType: string;
|
|
326
|
+
milestoneCount: string;
|
|
327
|
+
}
|
|
328
|
+
export interface CommentReactionMilestoneTotalTemplateVars {
|
|
329
|
+
entityTitle: string;
|
|
330
|
+
entityContent: string;
|
|
331
|
+
commentContent: string;
|
|
332
|
+
milestoneCount: string;
|
|
333
|
+
}
|
|
334
|
+
export interface NewFollowTemplateVars {
|
|
335
|
+
initiatorName: string;
|
|
336
|
+
initiatorUsername: string;
|
|
337
|
+
}
|
|
338
|
+
export interface ConnectionRequestTemplateVars {
|
|
339
|
+
initiatorName: string;
|
|
340
|
+
initiatorUsername: string;
|
|
341
|
+
}
|
|
342
|
+
export interface ConnectionAcceptedTemplateVars {
|
|
343
|
+
initiatorName: string;
|
|
344
|
+
initiatorUsername: string;
|
|
345
|
+
}
|
|
346
|
+
export interface SpaceMembershipApprovedTemplateVars {
|
|
347
|
+
spaceName: string;
|
|
348
|
+
spaceShortId: string;
|
|
349
|
+
spaceSlug: string;
|
|
350
|
+
}
|
|
351
|
+
export type TemplateField<TVars> = string | ((vars: TVars) => string);
|
|
352
|
+
export interface TypedNotificationTemplate<TVars> {
|
|
353
|
+
title?: TemplateField<TVars>;
|
|
354
|
+
content?: TemplateField<TVars>;
|
|
355
|
+
}
|
|
247
356
|
export type NotificationTemplates = {
|
|
248
|
-
entityComment:
|
|
249
|
-
commentReply:
|
|
250
|
-
entityMention:
|
|
251
|
-
commentMention:
|
|
252
|
-
entityUpvote:
|
|
253
|
-
commentUpvote:
|
|
254
|
-
entityReaction:
|
|
255
|
-
commentReaction:
|
|
256
|
-
entityReactionMilestoneSpecific:
|
|
257
|
-
entityReactionMilestoneTotal:
|
|
258
|
-
commentReactionMilestoneSpecific:
|
|
259
|
-
commentReactionMilestoneTotal:
|
|
260
|
-
newFollow:
|
|
261
|
-
connectionRequest:
|
|
262
|
-
connectionAccepted:
|
|
357
|
+
entityComment: TypedNotificationTemplate<EntityCommentTemplateVars>;
|
|
358
|
+
commentReply: TypedNotificationTemplate<CommentReplyTemplateVars>;
|
|
359
|
+
entityMention: TypedNotificationTemplate<EntityMentionTemplateVars>;
|
|
360
|
+
commentMention: TypedNotificationTemplate<CommentMentionTemplateVars>;
|
|
361
|
+
entityUpvote: TypedNotificationTemplate<EntityUpvoteTemplateVars>;
|
|
362
|
+
commentUpvote: TypedNotificationTemplate<CommentUpvoteTemplateVars>;
|
|
363
|
+
entityReaction: TypedNotificationTemplate<EntityReactionTemplateVars>;
|
|
364
|
+
commentReaction: TypedNotificationTemplate<CommentReactionTemplateVars>;
|
|
365
|
+
entityReactionMilestoneSpecific: TypedNotificationTemplate<EntityReactionMilestoneSpecificTemplateVars>;
|
|
366
|
+
entityReactionMilestoneTotal: TypedNotificationTemplate<EntityReactionMilestoneTotalTemplateVars>;
|
|
367
|
+
commentReactionMilestoneSpecific: TypedNotificationTemplate<CommentReactionMilestoneSpecificTemplateVars>;
|
|
368
|
+
commentReactionMilestoneTotal: TypedNotificationTemplate<CommentReactionMilestoneTotalTemplateVars>;
|
|
369
|
+
newFollow: TypedNotificationTemplate<NewFollowTemplateVars>;
|
|
370
|
+
connectionRequest: TypedNotificationTemplate<ConnectionRequestTemplateVars>;
|
|
371
|
+
connectionAccepted: TypedNotificationTemplate<ConnectionAcceptedTemplateVars>;
|
|
372
|
+
spaceMembershipApproved: TypedNotificationTemplate<SpaceMembershipApprovedTemplateVars>;
|
|
263
373
|
};
|
|
264
374
|
export type PotentiallyPopulatedUnifiedAppNotification = UnifiedAppNotification & {
|
|
265
375
|
title?: string;
|
package/dist/{cjs/interfaces/models/IChatMessage.d.ts → esm/interfaces/models/ChatMessage.d.ts}
RENAMED
|
@@ -2,9 +2,9 @@ import { GifData } from "./Comment";
|
|
|
2
2
|
import { File } from "./File";
|
|
3
3
|
import { Mention } from "./Mention";
|
|
4
4
|
import { User } from "./User";
|
|
5
|
-
export interface
|
|
5
|
+
export interface ChatMessage {
|
|
6
6
|
id: string;
|
|
7
|
-
|
|
7
|
+
localId?: string;
|
|
8
8
|
projectId: string;
|
|
9
9
|
conversationId: string;
|
|
10
10
|
userId: string | null;
|
|
@@ -28,7 +28,7 @@ export interface IChatMessage {
|
|
|
28
28
|
createdAt: Date;
|
|
29
29
|
updatedAt: Date;
|
|
30
30
|
user: User | null;
|
|
31
|
-
quotedMessage?:
|
|
32
|
-
parentMessage?:
|
|
31
|
+
quotedMessage?: ChatMessage | null;
|
|
32
|
+
parentMessage?: ChatMessage | null;
|
|
33
33
|
sendFailed?: boolean;
|
|
34
34
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChatMessage.js","sourceRoot":"","sources":["../../../../src/interfaces/models/ChatMessage.ts"],"names":[],"mappings":""}
|
package/dist/{cjs/interfaces/models/IConversation.d.ts → esm/interfaces/models/Conversation.d.ts}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { File } from "./File";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
export interface
|
|
2
|
+
import { ChatMessage } from "./ChatMessage";
|
|
3
|
+
import { ConversationMember } from "./ConversationMember";
|
|
4
|
+
export interface Conversation {
|
|
5
5
|
id: string;
|
|
6
6
|
projectId: string;
|
|
7
7
|
type: "direct" | "group" | "space";
|
|
@@ -16,10 +16,10 @@ export interface IConversation {
|
|
|
16
16
|
createdAt: Date;
|
|
17
17
|
updatedAt: Date;
|
|
18
18
|
memberCount?: number;
|
|
19
|
-
currentMember?:
|
|
19
|
+
currentMember?: ConversationMember;
|
|
20
20
|
avatarFile?: File;
|
|
21
21
|
}
|
|
22
|
-
export interface
|
|
22
|
+
export interface ConversationPreview extends Conversation {
|
|
23
23
|
unreadCount: number;
|
|
24
|
-
lastMessage:
|
|
24
|
+
lastMessage: ChatMessage | null;
|
|
25
25
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Conversation.js","sourceRoot":"","sources":["../../../../src/interfaces/models/Conversation.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConversationMember.js","sourceRoot":"","sources":["../../../../src/interfaces/models/ConversationMember.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PaginatedResponse, PaginationMetadata } from "../
|
|
1
|
+
import { PaginatedResponse, PaginationMetadata } from "../PaginatedResponse";
|
|
2
2
|
import { File } from "./File";
|
|
3
3
|
export type ReadingPermission = "anyone" | "members";
|
|
4
4
|
export type PostingPermission = "anyone" | "members" | "admins";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PaginatedResponse } from "../
|
|
1
|
+
import { PaginatedResponse } from "../PaginatedResponse";
|
|
2
2
|
export type SpaceMemberRole = "admin" | "moderator" | "member";
|
|
3
3
|
export type SpaceMemberStatus = "pending" | "active" | "banned" | "rejected";
|
|
4
4
|
export interface SpaceMember {
|
|
@@ -26,5 +26,5 @@ export interface SpaceMemberWithUser {
|
|
|
26
26
|
}
|
|
27
27
|
export type SpaceMembersResponse = PaginatedResponse<SpaceMemberWithUser>;
|
|
28
28
|
export interface SpaceTeamResponse {
|
|
29
|
-
|
|
29
|
+
data: SpaceMemberWithUser[];
|
|
30
30
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { UnifiedAppNotification } from "../../interfaces/models/AppNotification";
|
|
2
|
-
import type { PaginatedResponse } from "../../interfaces/
|
|
2
|
+
import type { PaginatedResponse } from "../../interfaces/PaginatedResponse";
|
|
3
3
|
interface FetchAppNotificationsParams {
|
|
4
4
|
projectId: string;
|
|
5
5
|
page: number;
|