@replyke/core 7.0.0-beta.10 → 7.0.0-beta.100
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/config/axios.js +1 -2
- package/dist/cjs/config/axios.js.map +1 -1
- package/dist/cjs/config/useAxiosPrivate.js +16 -10
- package/dist/cjs/config/useAxiosPrivate.js.map +1 -1
- package/dist/cjs/context/entity-context.d.ts +2 -2
- package/dist/cjs/context/entity-context.js +4 -4
- package/dist/cjs/context/entity-context.js.map +1 -1
- package/dist/cjs/context/index.d.ts +1 -0
- package/dist/cjs/context/index.js +3 -1
- package/dist/cjs/context/index.js.map +1 -1
- package/dist/cjs/context/replyke-integration-context.d.ts +52 -0
- package/dist/cjs/context/replyke-integration-context.js +97 -0
- package/dist/cjs/context/replyke-integration-context.js.map +1 -0
- package/dist/cjs/context/replyke-store-context.js +19 -7
- package/dist/cjs/context/replyke-store-context.js.map +1 -1
- package/dist/cjs/helpers/addNotificationsMessages.js +28 -1
- package/dist/cjs/helpers/addNotificationsMessages.js.map +1 -1
- package/dist/cjs/helpers/markCommentAsDeletedInTree.d.ts +7 -0
- package/dist/cjs/helpers/markCommentAsDeletedInTree.js +27 -0
- package/dist/cjs/helpers/markCommentAsDeletedInTree.js.map +1 -0
- package/dist/cjs/hooks/app-notifications/useAppNotifications.js +15 -39
- package/dist/cjs/hooks/app-notifications/useAppNotifications.js.map +1 -1
- package/dist/cjs/hooks/app-notifications/useAppNotificationsActions.d.ts +10 -6
- package/dist/cjs/hooks/app-notifications/useAppNotificationsActions.js +14 -23
- package/dist/cjs/hooks/app-notifications/useAppNotificationsActions.js.map +1 -1
- package/dist/cjs/hooks/auth/index.d.ts +9 -1
- package/dist/cjs/hooks/auth/index.js +17 -1
- package/dist/cjs/hooks/auth/index.js.map +1 -1
- package/dist/cjs/hooks/auth/useAccountSync.d.ts +2 -0
- package/dist/cjs/hooks/auth/useAccountSync.js +170 -0
- package/dist/cjs/hooks/auth/useAccountSync.js.map +1 -0
- package/dist/cjs/hooks/auth/useAccounts.d.ts +7 -0
- package/dist/cjs/hooks/auth/useAccounts.js +23 -0
- package/dist/cjs/hooks/auth/useAccounts.js.map +1 -0
- package/dist/cjs/hooks/auth/useAddAccount.d.ts +5 -0
- package/dist/cjs/hooks/auth/useAddAccount.js +27 -0
- package/dist/cjs/hooks/auth/useAddAccount.js.map +1 -0
- package/dist/cjs/hooks/auth/useAuth.d.ts +31 -24
- package/dist/cjs/hooks/auth/useAuth.js +5 -5
- package/dist/cjs/hooks/auth/useAuth.js.map +1 -1
- package/dist/cjs/hooks/auth/useOAuthIdentities.d.ts +19 -0
- package/dist/cjs/hooks/{reports/useFetchSpaceReports.js → auth/useOAuthIdentities.js} +58 -41
- package/dist/cjs/hooks/auth/useOAuthIdentities.js.map +1 -0
- package/dist/cjs/hooks/auth/useRemoveAccount.d.ts +6 -0
- package/dist/cjs/hooks/auth/useRemoveAccount.js +128 -0
- package/dist/cjs/hooks/auth/useRemoveAccount.js.map +1 -0
- package/dist/cjs/hooks/auth/useRequestPasswordReset.d.ts +8 -0
- package/dist/cjs/hooks/{entities/useRemoveEntityDownvote.js → auth/useRequestPasswordReset.js} +13 -14
- package/dist/cjs/hooks/auth/useRequestPasswordReset.js.map +1 -0
- package/dist/cjs/hooks/auth/useSignOutAll.d.ts +4 -0
- package/dist/cjs/hooks/auth/useSignOutAll.js +71 -0
- package/dist/cjs/hooks/auth/useSignOutAll.js.map +1 -0
- package/dist/cjs/hooks/auth/useSwitchAccount.d.ts +6 -0
- package/dist/cjs/hooks/auth/useSwitchAccount.js +103 -0
- package/dist/cjs/hooks/auth/useSwitchAccount.js.map +1 -0
- package/dist/cjs/hooks/collections/index.d.ts +4 -0
- package/dist/cjs/hooks/collections/index.js +16 -0
- package/dist/cjs/hooks/collections/index.js.map +1 -0
- package/dist/cjs/hooks/collections/useCollectionEntitiesWrapper.d.ts +21 -0
- package/dist/cjs/hooks/collections/useCollectionEntitiesWrapper.js +211 -0
- package/dist/cjs/hooks/collections/useCollectionEntitiesWrapper.js.map +1 -0
- package/dist/cjs/hooks/collections/useCollections.d.ts +48 -0
- package/dist/cjs/hooks/collections/useCollections.js +264 -0
- package/dist/cjs/hooks/collections/useCollections.js.map +1 -0
- package/dist/cjs/hooks/collections/useCollectionsActions.d.ts +22 -0
- package/dist/cjs/hooks/{lists/useListsActions.js → collections/useCollectionsActions.js} +114 -120
- package/dist/cjs/hooks/collections/useCollectionsActions.js.map +1 -0
- package/dist/cjs/hooks/collections/useIsEntitySaved.d.ts +6 -0
- package/dist/cjs/hooks/{lists → collections}/useIsEntitySaved.js +3 -4
- package/dist/cjs/hooks/collections/useIsEntitySaved.js.map +1 -0
- package/dist/cjs/hooks/comments/index.d.ts +10 -2
- package/dist/cjs/hooks/comments/index.js +3 -5
- package/dist/cjs/hooks/comments/index.js.map +1 -1
- package/dist/cjs/hooks/comments/useCommentSectionData.d.ts +16 -13
- package/dist/cjs/hooks/comments/useCommentSectionData.js +46 -16
- package/dist/cjs/hooks/comments/useCommentSectionData.js.map +1 -1
- package/dist/cjs/hooks/comments/useCreateComment.d.ts +3 -2
- package/dist/cjs/hooks/comments/useCreateComment.js.map +1 -1
- package/dist/cjs/hooks/comments/useDeleteComment.d.ts +3 -2
- package/dist/cjs/hooks/comments/useDeleteComment.js.map +1 -1
- package/dist/cjs/hooks/comments/useEntityComments.d.ts +3 -1
- package/dist/cjs/hooks/comments/useEntityComments.js +9 -1
- package/dist/cjs/hooks/comments/useEntityComments.js.map +1 -1
- package/dist/cjs/hooks/comments/useFetchComment.d.ts +5 -5
- package/dist/cjs/hooks/comments/useFetchComment.js +7 -5
- package/dist/cjs/hooks/comments/useFetchComment.js.map +1 -1
- package/dist/cjs/hooks/comments/useFetchCommentByForeignId.d.ts +5 -5
- package/dist/cjs/hooks/comments/useFetchCommentByForeignId.js +9 -6
- package/dist/cjs/hooks/comments/useFetchCommentByForeignId.js.map +1 -1
- package/dist/cjs/hooks/comments/useFetchManyComments.d.ts +5 -4
- package/dist/cjs/hooks/comments/useFetchManyComments.js +9 -10
- package/dist/cjs/hooks/comments/useFetchManyComments.js.map +1 -1
- package/dist/cjs/hooks/comments/useFetchManyCommentsWrapper.d.ts +21 -0
- package/dist/cjs/hooks/comments/{useProfileComments.js → useFetchManyCommentsWrapper.js} +40 -18
- package/dist/cjs/hooks/comments/useFetchManyCommentsWrapper.js.map +1 -0
- package/dist/cjs/hooks/comments/useReplies.d.ts +7 -4
- package/dist/cjs/hooks/comments/useReplies.js +1 -0
- package/dist/cjs/hooks/comments/useReplies.js.map +1 -1
- package/dist/cjs/hooks/comments/useUpdateComment.d.ts +3 -2
- package/dist/cjs/hooks/comments/useUpdateComment.js.map +1 -1
- package/dist/cjs/hooks/crypto/index.d.ts +1 -0
- package/dist/cjs/hooks/crypto/useSignTestingJwt.d.ts +7 -3
- package/dist/cjs/hooks/crypto/useSignTestingJwt.js +11 -14
- package/dist/cjs/hooks/crypto/useSignTestingJwt.js.map +1 -1
- package/dist/cjs/hooks/entities/index.d.ts +10 -5
- package/dist/cjs/hooks/entities/index.js +7 -11
- package/dist/cjs/hooks/entities/index.js.map +1 -1
- package/dist/cjs/hooks/entities/useCreateEntity.d.ts +25 -2
- package/dist/cjs/hooks/entities/useCreateEntity.js +93 -15
- package/dist/cjs/hooks/entities/useCreateEntity.js.map +1 -1
- package/dist/cjs/hooks/entities/useDeleteEntity.d.ts +3 -2
- package/dist/cjs/hooks/entities/useDeleteEntity.js +1 -3
- package/dist/cjs/hooks/entities/useDeleteEntity.js.map +1 -1
- package/dist/cjs/hooks/entities/useEntityData.d.ts +24 -12
- package/dist/cjs/hooks/entities/useEntityData.js +0 -19
- package/dist/cjs/hooks/entities/useEntityData.js.map +1 -1
- package/dist/cjs/hooks/entities/useFetchDrafts.d.ts +11 -0
- package/dist/cjs/hooks/entities/useFetchDrafts.js +81 -0
- package/dist/cjs/hooks/entities/useFetchDrafts.js.map +1 -0
- package/dist/cjs/hooks/entities/useFetchEntity.d.ts +3 -2
- package/dist/cjs/hooks/entities/useFetchEntity.js +7 -7
- package/dist/cjs/hooks/entities/useFetchEntity.js.map +1 -1
- package/dist/cjs/hooks/entities/useFetchEntityByForeignId.d.ts +3 -2
- package/dist/cjs/hooks/entities/useFetchEntityByForeignId.js +9 -18
- package/dist/cjs/hooks/entities/useFetchEntityByForeignId.js.map +1 -1
- package/dist/cjs/hooks/entities/useFetchEntityByShortId.d.ts +3 -2
- package/dist/cjs/hooks/entities/useFetchEntityByShortId.js +8 -18
- package/dist/cjs/hooks/entities/useFetchEntityByShortId.js.map +1 -1
- package/dist/cjs/hooks/entities/useFetchManyEntities.d.ts +2 -1
- package/dist/cjs/hooks/entities/useFetchManyEntities.js +2 -0
- package/dist/cjs/hooks/entities/useFetchManyEntities.js.map +1 -1
- package/dist/cjs/hooks/entities/useFetchManyEntitiesWrapper.d.ts +44 -0
- package/dist/cjs/hooks/entities/useFetchManyEntitiesWrapper.js +248 -0
- package/dist/cjs/hooks/entities/useFetchManyEntitiesWrapper.js.map +1 -0
- package/dist/cjs/hooks/entities/useIncrementEntityViews.d.ts +1 -1
- package/dist/cjs/hooks/entities/usePublishDraft.d.ts +6 -0
- package/dist/cjs/hooks/entities/{useUpvoteEntity.js → usePublishDraft.js} +11 -11
- package/dist/cjs/hooks/entities/usePublishDraft.js.map +1 -0
- package/dist/cjs/hooks/entities/useUpdateEntity.js +7 -3
- package/dist/cjs/hooks/entities/useUpdateEntity.js.map +1 -1
- package/dist/cjs/hooks/entity-lists/index.d.ts +1 -1
- package/dist/cjs/hooks/entity-lists/index.js.map +1 -1
- package/dist/cjs/hooks/entity-lists/useEntityList.d.ts +20 -17
- package/dist/cjs/hooks/entity-lists/useEntityList.js +17 -10
- package/dist/cjs/hooks/entity-lists/useEntityList.js.map +1 -1
- package/dist/cjs/hooks/entity-lists/useEntityListActions.d.ts +8 -6
- package/dist/cjs/hooks/entity-lists/useEntityListActions.js +3 -2
- package/dist/cjs/hooks/entity-lists/useEntityListActions.js.map +1 -1
- package/dist/cjs/hooks/entity-lists/useInfusedData.d.ts +3 -2
- package/dist/cjs/hooks/entity-lists/useInfusedData.js +0 -1
- package/dist/cjs/hooks/entity-lists/useInfusedData.js.map +1 -1
- package/dist/cjs/hooks/reactions/index.d.ts +14 -0
- package/dist/cjs/hooks/reactions/index.js +21 -0
- package/dist/cjs/hooks/reactions/index.js.map +1 -0
- package/dist/cjs/hooks/reactions/useAddReaction.d.ts +10 -0
- package/dist/cjs/hooks/reactions/useAddReaction.js +77 -0
- package/dist/cjs/hooks/reactions/useAddReaction.js.map +1 -0
- package/dist/cjs/hooks/reactions/useFetchCommentReactions.d.ts +11 -0
- package/dist/cjs/hooks/reactions/useFetchCommentReactions.js +84 -0
- package/dist/cjs/hooks/reactions/useFetchCommentReactions.js.map +1 -0
- package/dist/cjs/hooks/reactions/useFetchCommentReactionsWrapper.d.ts +17 -0
- package/dist/cjs/hooks/reactions/useFetchCommentReactionsWrapper.js +170 -0
- package/dist/cjs/hooks/reactions/useFetchCommentReactionsWrapper.js.map +1 -0
- package/dist/cjs/hooks/reactions/useFetchEntityReactions.d.ts +11 -0
- package/dist/cjs/hooks/reactions/useFetchEntityReactions.js +84 -0
- package/dist/cjs/hooks/reactions/useFetchEntityReactions.js.map +1 -0
- package/dist/cjs/hooks/reactions/useFetchEntityReactionsWrapper.d.ts +17 -0
- package/dist/cjs/hooks/reactions/useFetchEntityReactionsWrapper.js +170 -0
- package/dist/cjs/hooks/reactions/useFetchEntityReactionsWrapper.js.map +1 -0
- package/dist/cjs/hooks/reactions/useReactionToggle.d.ts +20 -0
- package/dist/cjs/hooks/reactions/useReactionToggle.js +146 -0
- package/dist/cjs/hooks/reactions/useReactionToggle.js.map +1 -0
- package/dist/cjs/hooks/reactions/useRemoveReaction.d.ts +8 -0
- package/dist/cjs/hooks/{comments/useRemoveCommentUpvote.js → reactions/useRemoveReaction.js} +16 -13
- package/dist/cjs/hooks/reactions/useRemoveReaction.js.map +1 -0
- package/dist/cjs/hooks/relationships/connections/index.d.ts +11 -0
- package/dist/cjs/hooks/relationships/connections/useAcceptConnection.d.ts +3 -2
- package/dist/cjs/hooks/relationships/connections/useAcceptConnection.js +1 -1
- package/dist/cjs/hooks/relationships/connections/useAcceptConnection.js.map +1 -1
- package/dist/cjs/hooks/relationships/connections/useConnectionManager.d.ts +5 -4
- package/dist/cjs/hooks/relationships/connections/useConnectionManager.js.map +1 -1
- package/dist/cjs/hooks/relationships/connections/useDeclineConnection.d.ts +3 -2
- package/dist/cjs/hooks/relationships/connections/useDeclineConnection.js +1 -1
- package/dist/cjs/hooks/relationships/connections/useDeclineConnection.js.map +1 -1
- package/dist/cjs/hooks/relationships/connections/useFetchConnectionStatus.d.ts +3 -2
- package/dist/cjs/hooks/relationships/connections/useFetchConnectionStatus.js +1 -1
- package/dist/cjs/hooks/relationships/connections/useFetchConnectionStatus.js.map +1 -1
- package/dist/cjs/hooks/relationships/connections/useFetchConnections.d.ts +1 -1
- package/dist/cjs/hooks/relationships/connections/useFetchConnections.js +0 -1
- package/dist/cjs/hooks/relationships/connections/useFetchConnections.js.map +1 -1
- package/dist/cjs/hooks/relationships/connections/useFetchConnectionsByUserId.d.ts +1 -1
- package/dist/cjs/hooks/relationships/connections/useFetchConnectionsCount.js +1 -1
- package/dist/cjs/hooks/relationships/connections/useFetchConnectionsCount.js.map +1 -1
- package/dist/cjs/hooks/relationships/connections/useFetchConnectionsCountByUserId.d.ts +1 -1
- package/dist/cjs/hooks/relationships/connections/useFetchReceivedPendingConnections.d.ts +1 -1
- package/dist/cjs/hooks/relationships/connections/useFetchReceivedPendingConnections.js +0 -1
- package/dist/cjs/hooks/relationships/connections/useFetchReceivedPendingConnections.js.map +1 -1
- package/dist/cjs/hooks/relationships/connections/useFetchSentPendingConnections.d.ts +1 -1
- package/dist/cjs/hooks/relationships/connections/useFetchSentPendingConnections.js +0 -1
- package/dist/cjs/hooks/relationships/connections/useFetchSentPendingConnections.js.map +1 -1
- package/dist/cjs/hooks/relationships/connections/useRemoveConnection.d.ts +3 -2
- package/dist/cjs/hooks/relationships/connections/useRemoveConnection.js +1 -1
- package/dist/cjs/hooks/relationships/connections/useRemoveConnection.js.map +1 -1
- package/dist/cjs/hooks/relationships/connections/useRemoveConnectionByUserId.d.ts +3 -2
- package/dist/cjs/hooks/relationships/connections/useRemoveConnectionByUserId.js +1 -1
- package/dist/cjs/hooks/relationships/connections/useRemoveConnectionByUserId.js.map +1 -1
- package/dist/cjs/hooks/relationships/connections/useRequestConnection.js +1 -1
- package/dist/cjs/hooks/relationships/connections/useRequestConnection.js.map +1 -1
- package/dist/cjs/hooks/relationships/follows/index.d.ts +11 -0
- package/dist/cjs/hooks/relationships/follows/useFetchFollowStatus.d.ts +5 -3
- package/dist/cjs/hooks/relationships/follows/useFetchFollowStatus.js +1 -3
- package/dist/cjs/hooks/relationships/follows/useFetchFollowStatus.js.map +1 -1
- package/dist/cjs/hooks/relationships/follows/useFetchFollowers.d.ts +1 -1
- package/dist/cjs/hooks/relationships/follows/useFetchFollowers.js +0 -1
- package/dist/cjs/hooks/relationships/follows/useFetchFollowers.js.map +1 -1
- package/dist/cjs/hooks/relationships/follows/useFetchFollowersByUserId.d.ts +1 -1
- package/dist/cjs/hooks/relationships/follows/useFetchFollowersCount.js +1 -1
- package/dist/cjs/hooks/relationships/follows/useFetchFollowersCount.js.map +1 -1
- package/dist/cjs/hooks/relationships/follows/useFetchFollowersCountByUserId.d.ts +3 -2
- package/dist/cjs/hooks/relationships/follows/useFetchFollowersCountByUserId.js.map +1 -1
- package/dist/cjs/hooks/relationships/follows/useFetchFollowing.d.ts +1 -1
- package/dist/cjs/hooks/relationships/follows/useFetchFollowing.js +0 -1
- package/dist/cjs/hooks/relationships/follows/useFetchFollowing.js.map +1 -1
- package/dist/cjs/hooks/relationships/follows/useFetchFollowingByUserId.d.ts +1 -1
- package/dist/cjs/hooks/relationships/follows/useFetchFollowingCount.js +1 -1
- package/dist/cjs/hooks/relationships/follows/useFetchFollowingCount.js.map +1 -1
- package/dist/cjs/hooks/relationships/follows/useFetchFollowingCountByUserId.d.ts +3 -2
- package/dist/cjs/hooks/relationships/follows/useFetchFollowingCountByUserId.js.map +1 -1
- package/dist/cjs/hooks/relationships/follows/useFollowManager.d.ts +4 -3
- package/dist/cjs/hooks/relationships/follows/useFollowManager.js.map +1 -1
- package/dist/cjs/hooks/relationships/follows/useFollowUser.d.ts +3 -2
- package/dist/cjs/hooks/relationships/follows/useFollowUser.js +1 -1
- package/dist/cjs/hooks/relationships/follows/useFollowUser.js.map +1 -1
- package/dist/cjs/hooks/relationships/follows/useUnfollowByFollowId.d.ts +3 -2
- package/dist/cjs/hooks/relationships/follows/useUnfollowByFollowId.js +1 -3
- package/dist/cjs/hooks/relationships/follows/useUnfollowByFollowId.js.map +1 -1
- package/dist/cjs/hooks/relationships/follows/useUnfollowUserByUserId.d.ts +3 -2
- package/dist/cjs/hooks/relationships/follows/useUnfollowUserByUserId.js +1 -3
- package/dist/cjs/hooks/relationships/follows/useUnfollowUserByUserId.js.map +1 -1
- package/dist/cjs/hooks/reports/index.d.ts +5 -1
- package/dist/cjs/hooks/reports/index.js +3 -3
- package/dist/cjs/hooks/reports/index.js.map +1 -1
- package/dist/cjs/hooks/reports/useCreateReport.d.ts +16 -3
- package/dist/cjs/hooks/reports/useCreateReport.js +3 -3
- package/dist/cjs/hooks/reports/useCreateReport.js.map +1 -1
- package/dist/cjs/hooks/reports/useFetchModeratedReports.d.ts +60 -0
- package/dist/cjs/hooks/reports/useFetchModeratedReports.js +91 -0
- package/dist/cjs/hooks/reports/useFetchModeratedReports.js.map +1 -0
- package/dist/cjs/hooks/reports/useHandleSpaceCommentReport.d.ts +6 -6
- package/dist/cjs/hooks/reports/useHandleSpaceCommentReport.js +2 -2
- package/dist/cjs/hooks/reports/useHandleSpaceEntityReport.d.ts +6 -6
- package/dist/cjs/hooks/reports/useHandleSpaceEntityReport.js +2 -2
- package/dist/cjs/hooks/space-lists/index.d.ts +2 -1
- package/dist/cjs/hooks/space-lists/index.js.map +1 -1
- package/dist/cjs/hooks/space-lists/useSpaceList.d.ts +22 -17
- package/dist/cjs/hooks/space-lists/useSpaceList.js +29 -14
- package/dist/cjs/hooks/space-lists/useSpaceList.js.map +1 -1
- package/dist/cjs/hooks/space-lists/useSpaceListActions.d.ts +7 -4
- package/dist/cjs/hooks/space-lists/useSpaceListActions.js +6 -3
- package/dist/cjs/hooks/space-lists/useSpaceListActions.js.map +1 -1
- package/dist/cjs/hooks/spaces/index.d.ts +31 -1
- package/dist/cjs/hooks/spaces/index.js +23 -3
- package/dist/cjs/hooks/spaces/index.js.map +1 -1
- package/dist/cjs/hooks/spaces/rules/index.d.ts +12 -0
- package/dist/cjs/hooks/spaces/rules/index.js +19 -0
- package/dist/cjs/hooks/spaces/rules/index.js.map +1 -0
- package/dist/cjs/hooks/spaces/rules/useCreateRule.d.ts +8 -0
- package/dist/cjs/hooks/{users/useUpdateUser.js → spaces/rules/useCreateRule.js} +18 -19
- package/dist/cjs/hooks/spaces/rules/useCreateRule.js.map +1 -0
- package/dist/cjs/hooks/spaces/rules/useDeleteRule.d.ts +7 -0
- package/dist/cjs/hooks/spaces/rules/useDeleteRule.js +74 -0
- package/dist/cjs/hooks/spaces/rules/useDeleteRule.js.map +1 -0
- package/dist/cjs/hooks/spaces/rules/useFetchManyRules.d.ts +6 -0
- package/dist/cjs/hooks/{comments/useUpvoteComment.js → spaces/rules/useFetchManyRules.js} +15 -15
- package/dist/cjs/hooks/spaces/rules/useFetchManyRules.js.map +1 -0
- package/dist/cjs/hooks/spaces/rules/useFetchRule.d.ts +7 -0
- package/dist/cjs/hooks/spaces/rules/useFetchRule.js +74 -0
- package/dist/cjs/hooks/spaces/rules/useFetchRule.js.map +1 -0
- package/dist/cjs/hooks/spaces/rules/useReorderRules.d.ts +7 -0
- package/dist/cjs/hooks/spaces/rules/useReorderRules.js +74 -0
- package/dist/cjs/hooks/spaces/rules/useReorderRules.js.map +1 -0
- package/dist/cjs/hooks/spaces/rules/useUpdateRule.d.ts +11 -0
- package/dist/cjs/hooks/{comments/useRemoveCommentDownvote.js → spaces/rules/useUpdateRule.js} +18 -15
- package/dist/cjs/hooks/spaces/rules/useUpdateRule.js.map +1 -0
- package/dist/cjs/hooks/spaces/useApproveMember.d.ts +2 -2
- package/dist/cjs/hooks/spaces/useApproveMember.js.map +1 -1
- package/dist/cjs/hooks/spaces/useCheckMyMembership.d.ts +3 -2
- package/dist/cjs/hooks/spaces/useCheckMyMembership.js.map +1 -1
- package/dist/cjs/hooks/spaces/useCheckSlugAvailability.d.ts +3 -2
- package/dist/cjs/hooks/spaces/useCheckSlugAvailability.js.map +1 -1
- package/dist/cjs/hooks/spaces/useCreateSpace.d.ts +7 -2
- package/dist/cjs/hooks/spaces/useCreateSpace.js +54 -3
- package/dist/cjs/hooks/spaces/useCreateSpace.js.map +1 -1
- package/dist/cjs/hooks/spaces/useDeclineMember.d.ts +2 -2
- package/dist/cjs/hooks/spaces/useDeclineMember.js.map +1 -1
- package/dist/cjs/hooks/spaces/useDeleteSpace.d.ts +3 -2
- package/dist/cjs/hooks/spaces/useDeleteSpace.js.map +1 -1
- package/dist/cjs/hooks/spaces/useFetchDigestConfig.d.ts +6 -0
- package/dist/cjs/hooks/{comments/useDownvoteComment.js → spaces/useFetchDigestConfig.js} +14 -14
- package/dist/cjs/hooks/spaces/useFetchDigestConfig.js.map +1 -0
- package/dist/cjs/hooks/spaces/useFetchManySpaces.d.ts +8 -4
- package/dist/cjs/hooks/spaces/useFetchManySpaces.js +13 -2
- package/dist/cjs/hooks/spaces/useFetchManySpaces.js.map +1 -1
- package/dist/cjs/hooks/spaces/useFetchSpace.d.ts +5 -3
- package/dist/cjs/hooks/spaces/useFetchSpace.js +6 -2
- package/dist/cjs/hooks/spaces/useFetchSpace.js.map +1 -1
- package/dist/cjs/hooks/spaces/useFetchSpaceBreadcrumb.d.ts +3 -2
- package/dist/cjs/hooks/spaces/useFetchSpaceBreadcrumb.js.map +1 -1
- package/dist/cjs/hooks/spaces/useFetchSpaceByShortId.d.ts +5 -3
- package/dist/cjs/hooks/spaces/useFetchSpaceByShortId.js +7 -2
- package/dist/cjs/hooks/spaces/useFetchSpaceByShortId.js.map +1 -1
- package/dist/cjs/hooks/spaces/useFetchSpaceBySlug.d.ts +5 -3
- package/dist/cjs/hooks/spaces/useFetchSpaceBySlug.js +7 -2
- package/dist/cjs/hooks/spaces/useFetchSpaceBySlug.js.map +1 -1
- package/dist/cjs/hooks/spaces/useFetchSpaceChildren.d.ts +4 -3
- package/dist/cjs/hooks/spaces/useFetchSpaceChildren.js +8 -2
- package/dist/cjs/hooks/spaces/useFetchSpaceChildren.js.map +1 -1
- package/dist/cjs/hooks/spaces/useFetchSpaceMembers.d.ts +2 -2
- package/dist/cjs/hooks/spaces/useFetchSpaceMembers.js +2 -13
- package/dist/cjs/hooks/spaces/useFetchSpaceMembers.js.map +1 -1
- package/dist/cjs/hooks/spaces/useFetchSpaceTeam.d.ts +6 -0
- package/dist/cjs/hooks/{entities/useDownvoteEntity.js → spaces/useFetchSpaceTeam.js} +17 -15
- package/dist/cjs/hooks/spaces/useFetchSpaceTeam.js.map +1 -0
- package/dist/cjs/hooks/spaces/useFetchUserSpaces.d.ts +12 -0
- package/dist/cjs/hooks/spaces/{useFetchMySpaces.js → useFetchUserSpaces.js} +31 -8
- package/dist/cjs/hooks/spaces/useFetchUserSpaces.js.map +1 -0
- package/dist/cjs/hooks/spaces/useJoinSpace.d.ts +3 -2
- package/dist/cjs/hooks/spaces/useJoinSpace.js.map +1 -1
- package/dist/cjs/hooks/spaces/useLeaveSpace.d.ts +3 -2
- package/dist/cjs/hooks/spaces/useLeaveSpace.js.map +1 -1
- package/dist/cjs/hooks/spaces/useModerateSpaceComment.d.ts +26 -0
- package/dist/cjs/hooks/spaces/useModerateSpaceComment.js +85 -0
- package/dist/cjs/hooks/spaces/useModerateSpaceComment.js.map +1 -0
- package/dist/cjs/hooks/spaces/useModerateSpaceEntity.d.ts +26 -0
- package/dist/cjs/hooks/spaces/useModerateSpaceEntity.js +85 -0
- package/dist/cjs/hooks/spaces/useModerateSpaceEntity.js.map +1 -0
- package/dist/cjs/hooks/spaces/useRemoveMember.d.ts +2 -2
- package/dist/cjs/hooks/spaces/useRemoveMember.js.map +1 -1
- package/dist/cjs/hooks/spaces/useSpaceData.d.ts +3 -2
- package/dist/cjs/hooks/spaces/useSpaceData.js +9 -4
- package/dist/cjs/hooks/spaces/useSpaceData.js.map +1 -1
- package/dist/cjs/hooks/spaces/useSpacePermissions.d.ts +2 -2
- package/dist/cjs/hooks/spaces/useUpdateDigestConfig.d.ts +7 -0
- package/dist/cjs/hooks/{entities/useRemoveEntityUpvote.js → spaces/useUpdateDigestConfig.js} +14 -14
- package/dist/cjs/hooks/spaces/useUpdateDigestConfig.js.map +1 -0
- package/dist/cjs/hooks/spaces/useUpdateMemberRole.d.ts +2 -2
- package/dist/cjs/hooks/spaces/useUpdateMemberRole.js.map +1 -1
- package/dist/cjs/hooks/spaces/useUpdateSpace.d.ts +8 -3
- package/dist/cjs/hooks/spaces/useUpdateSpace.js +49 -4
- package/dist/cjs/hooks/spaces/useUpdateSpace.js.map +1 -1
- package/dist/cjs/hooks/storage/index.d.ts +2 -1
- package/dist/cjs/hooks/storage/index.js +3 -1
- package/dist/cjs/hooks/storage/index.js.map +1 -1
- package/dist/cjs/hooks/storage/useUploadFile.d.ts +16 -5
- package/dist/cjs/hooks/storage/useUploadFile.js +22 -9
- package/dist/cjs/hooks/storage/useUploadFile.js.map +1 -1
- package/dist/cjs/hooks/storage/useUploadImage.d.ts +15 -0
- package/dist/cjs/hooks/storage/useUploadImage.js +158 -0
- package/dist/cjs/hooks/storage/useUploadImage.js.map +1 -0
- package/dist/cjs/hooks/user/index.d.ts +1 -0
- package/dist/cjs/hooks/user/useUser.js +8 -8
- package/dist/cjs/hooks/user/useUser.js.map +1 -1
- package/dist/cjs/hooks/user/useUserActions.js +21 -4
- package/dist/cjs/hooks/user/useUserActions.js.map +1 -1
- package/dist/cjs/hooks/users/index.d.ts +6 -7
- package/dist/cjs/hooks/users/index.js +1 -3
- package/dist/cjs/hooks/users/index.js.map +1 -1
- package/dist/cjs/hooks/users/useCheckUsernameAvailability.d.ts +3 -2
- package/dist/cjs/hooks/users/useCheckUsernameAvailability.js.map +1 -1
- package/dist/cjs/hooks/users/useFetchUser.d.ts +5 -3
- package/dist/cjs/hooks/users/useFetchUser.js +6 -2
- package/dist/cjs/hooks/users/useFetchUser.js.map +1 -1
- package/dist/cjs/hooks/users/useFetchUserByForeignId.d.ts +5 -3
- package/dist/cjs/hooks/users/useFetchUserByForeignId.js +5 -2
- package/dist/cjs/hooks/users/useFetchUserByForeignId.js.map +1 -1
- package/dist/cjs/hooks/users/useFetchUserByUsername.d.ts +5 -3
- package/dist/cjs/hooks/users/useFetchUserByUsername.js +5 -2
- package/dist/cjs/hooks/users/useFetchUserByUsername.js.map +1 -1
- package/dist/cjs/hooks/users/useFetchUserSuggestions.d.ts +3 -2
- package/dist/cjs/hooks/users/useFetchUserSuggestions.js.map +1 -1
- package/dist/cjs/hooks/users/useMentions.d.ts +5 -3
- package/dist/cjs/hooks/users/useMentions.js.map +1 -1
- package/dist/cjs/hooks/utils/index.d.ts +1 -1
- package/dist/cjs/hooks/utils/index.js.map +1 -1
- package/dist/cjs/hooks/utils/useGetMetadata.d.ts +4 -2
- package/dist/cjs/hooks/utils/useGetMetadata.js +4 -3
- package/dist/cjs/hooks/utils/useGetMetadata.js.map +1 -1
- package/dist/cjs/index.d.ts +37 -26
- package/dist/cjs/index.js +73 -23
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/interfaces/EntityListSortByOptions.d.ts +1 -0
- package/dist/cjs/interfaces/EntityListSortByOptions.js.map +1 -1
- package/dist/cjs/interfaces/IAccountStorage.d.ts +6 -0
- package/dist/cjs/interfaces/IAccountStorage.js +3 -0
- package/dist/cjs/interfaces/IAccountStorage.js.map +1 -0
- package/dist/cjs/interfaces/UrlMetadata.d.ts +92 -0
- package/dist/cjs/interfaces/UrlMetadata.js +3 -0
- package/dist/cjs/interfaces/UrlMetadata.js.map +1 -0
- package/dist/cjs/interfaces/models/AppNotification.d.ts +102 -2
- package/dist/cjs/interfaces/models/{List.d.ts → Collection.d.ts} +2 -4
- package/dist/cjs/interfaces/models/Collection.js +3 -0
- package/dist/cjs/interfaces/models/Collection.js.map +1 -0
- package/dist/cjs/interfaces/models/Comment.d.ts +14 -1
- package/dist/cjs/interfaces/models/Entity.d.ts +14 -1
- package/dist/cjs/interfaces/models/File.d.ts +38 -0
- package/dist/cjs/interfaces/models/{List.js → File.js} +1 -1
- package/dist/cjs/interfaces/models/File.js.map +1 -0
- package/dist/cjs/interfaces/models/Image.d.ts +74 -0
- package/dist/cjs/interfaces/models/Image.js +3 -0
- package/dist/cjs/interfaces/models/Image.js.map +1 -0
- package/dist/cjs/interfaces/models/Reaction.d.ts +23 -0
- package/dist/cjs/interfaces/models/Reaction.js +3 -0
- package/dist/cjs/interfaces/models/Reaction.js.map +1 -0
- package/dist/cjs/interfaces/models/Rule.d.ts +22 -0
- package/dist/cjs/interfaces/models/Rule.js +3 -0
- package/dist/cjs/interfaces/models/Rule.js.map +1 -0
- package/dist/cjs/interfaces/models/Space.d.ts +26 -5
- package/dist/cjs/interfaces/models/SpaceMember.d.ts +3 -0
- package/dist/cjs/interfaces/models/User.d.ts +11 -3
- package/dist/cjs/store/api/appNotificationsApi.d.ts +181 -181
- package/dist/cjs/store/api/baseApi.d.ts +3 -1
- package/dist/cjs/store/api/baseApi.js +10 -6
- package/dist/cjs/store/api/baseApi.js.map +1 -1
- package/dist/cjs/store/api/collectionsApi.d.ts +4541 -0
- package/dist/cjs/store/api/collectionsApi.js +244 -0
- package/dist/cjs/store/api/collectionsApi.js.map +1 -0
- package/dist/cjs/store/api/entityListsApi.d.ts +109 -108
- package/dist/cjs/store/api/entityListsApi.js +2 -1
- package/dist/cjs/store/api/entityListsApi.js.map +1 -1
- package/dist/cjs/store/api/index.d.ts +1 -1
- package/dist/cjs/store/api/index.js +2 -2
- package/dist/cjs/store/api/index.js.map +1 -1
- package/dist/cjs/store/api/spacesApi.d.ts +968 -960
- package/dist/cjs/store/api/spacesApi.js +30 -12
- package/dist/cjs/store/api/spacesApi.js.map +1 -1
- package/dist/cjs/store/api/userApi.d.ts +12 -4
- package/dist/cjs/store/api/userApi.js +62 -11
- package/dist/cjs/store/api/userApi.js.map +1 -1
- package/dist/cjs/store/hooks.d.ts +27 -0
- package/dist/cjs/store/hooks.js +18 -0
- package/dist/cjs/store/hooks.js.map +1 -0
- package/dist/cjs/store/index.d.ts +19 -11
- package/dist/cjs/store/index.js +4 -1
- package/dist/cjs/store/index.js.map +1 -1
- package/dist/cjs/store/integration.d.ts +35 -0
- package/dist/cjs/store/integration.js +61 -0
- package/dist/cjs/store/integration.js.map +1 -0
- package/dist/cjs/store/replykeReducers.d.ts +38 -0
- package/dist/cjs/store/replykeReducers.js +44 -0
- package/dist/cjs/store/replykeReducers.js.map +1 -0
- package/dist/cjs/store/rootReducer.d.ts +30 -14
- package/dist/cjs/store/rootReducer.js +6 -19
- package/dist/cjs/store/rootReducer.js.map +1 -1
- package/dist/cjs/store/slices/accountsSlice.d.ts +41 -0
- package/dist/cjs/store/slices/accountsSlice.js +71 -0
- package/dist/cjs/store/slices/accountsSlice.js.map +1 -0
- package/dist/cjs/store/slices/appNotificationsSlice.d.ts +1915 -220
- package/dist/cjs/store/slices/appNotificationsSlice.js +9 -9
- package/dist/cjs/store/slices/appNotificationsSlice.js.map +1 -1
- package/dist/cjs/store/slices/authSlice.d.ts +19 -7
- package/dist/cjs/store/slices/authSlice.js +19 -7
- package/dist/cjs/store/slices/authSlice.js.map +1 -1
- package/dist/cjs/store/slices/authThunks.d.ts +7 -0
- package/dist/cjs/store/slices/authThunks.js +168 -58
- package/dist/cjs/store/slices/authThunks.js.map +1 -1
- package/dist/cjs/store/slices/collectionsSlice.d.ts +428 -0
- package/dist/cjs/store/slices/collectionsSlice.js +211 -0
- package/dist/cjs/store/slices/collectionsSlice.js.map +1 -0
- package/dist/cjs/store/slices/entityListsSlice.d.ts +3853 -148
- package/dist/cjs/store/slices/entityListsSlice.js +7 -2
- package/dist/cjs/store/slices/entityListsSlice.js.map +1 -1
- package/dist/cjs/store/slices/spaceListsSlice.d.ts +1136 -65
- package/dist/cjs/store/slices/spaceListsSlice.js +14 -5
- package/dist/cjs/store/slices/spaceListsSlice.js.map +1 -1
- package/dist/cjs/store/slices/userSlice.d.ts +723 -7
- package/dist/cjs/store/slices/userSlice.js +22 -10
- package/dist/cjs/store/slices/userSlice.js.map +1 -1
- package/dist/cjs/store/types/index.d.ts +5 -1
- package/dist/cjs/utils/env.js +3 -3
- package/dist/cjs/utils/env.js.map +1 -1
- package/dist/esm/config/axios.js +1 -2
- package/dist/esm/config/axios.js.map +1 -1
- package/dist/esm/config/useAxiosPrivate.js +16 -10
- package/dist/esm/config/useAxiosPrivate.js.map +1 -1
- package/dist/esm/context/entity-context.d.ts +2 -2
- package/dist/esm/context/entity-context.js +4 -4
- package/dist/esm/context/entity-context.js.map +1 -1
- package/dist/esm/context/index.d.ts +1 -0
- package/dist/esm/context/index.js +1 -0
- package/dist/esm/context/index.js.map +1 -1
- package/dist/esm/context/replyke-integration-context.d.ts +52 -0
- package/dist/esm/context/replyke-integration-context.js +90 -0
- package/dist/esm/context/replyke-integration-context.js.map +1 -0
- package/dist/esm/context/replyke-store-context.js +21 -9
- package/dist/esm/context/replyke-store-context.js.map +1 -1
- package/dist/esm/helpers/addNotificationsMessages.js +28 -1
- package/dist/esm/helpers/addNotificationsMessages.js.map +1 -1
- package/dist/esm/helpers/markCommentAsDeletedInTree.d.ts +7 -0
- package/dist/esm/helpers/markCommentAsDeletedInTree.js +24 -0
- package/dist/esm/helpers/markCommentAsDeletedInTree.js.map +1 -0
- package/dist/esm/hooks/app-notifications/useAppNotifications.js +16 -40
- package/dist/esm/hooks/app-notifications/useAppNotifications.js.map +1 -1
- package/dist/esm/hooks/app-notifications/useAppNotificationsActions.d.ts +10 -6
- package/dist/esm/hooks/app-notifications/useAppNotificationsActions.js +15 -24
- package/dist/esm/hooks/app-notifications/useAppNotificationsActions.js.map +1 -1
- package/dist/esm/hooks/auth/index.d.ts +9 -1
- package/dist/esm/hooks/auth/index.js +8 -0
- package/dist/esm/hooks/auth/index.js.map +1 -1
- package/dist/esm/hooks/auth/useAccountSync.d.ts +2 -0
- package/dist/esm/hooks/auth/useAccountSync.js +167 -0
- package/dist/esm/hooks/auth/useAccountSync.js.map +1 -0
- package/dist/esm/hooks/auth/useAccounts.d.ts +7 -0
- package/dist/esm/hooks/auth/useAccounts.js +20 -0
- package/dist/esm/hooks/auth/useAccounts.js.map +1 -0
- package/dist/esm/hooks/auth/useAddAccount.d.ts +5 -0
- package/dist/esm/hooks/auth/useAddAccount.js +24 -0
- package/dist/esm/hooks/auth/useAddAccount.js.map +1 -0
- package/dist/esm/hooks/auth/useAuth.d.ts +31 -24
- package/dist/esm/hooks/auth/useAuth.js +5 -5
- package/dist/esm/hooks/auth/useAuth.js.map +1 -1
- package/dist/esm/hooks/auth/useOAuthIdentities.d.ts +19 -0
- package/dist/esm/hooks/{reports/useFetchSpaceReports.js → auth/useOAuthIdentities.js} +59 -42
- package/dist/esm/hooks/auth/useOAuthIdentities.js.map +1 -0
- package/dist/esm/hooks/auth/useRemoveAccount.d.ts +6 -0
- package/dist/esm/hooks/auth/useRemoveAccount.js +122 -0
- package/dist/esm/hooks/auth/useRemoveAccount.js.map +1 -0
- package/dist/esm/hooks/auth/useRequestPasswordReset.d.ts +8 -0
- package/dist/esm/hooks/{entities/useRemoveEntityDownvote.js → auth/useRequestPasswordReset.js} +13 -14
- package/dist/esm/hooks/auth/useRequestPasswordReset.js.map +1 -0
- package/dist/esm/hooks/auth/useSignOutAll.d.ts +4 -0
- package/dist/esm/hooks/auth/useSignOutAll.js +65 -0
- package/dist/esm/hooks/auth/useSignOutAll.js.map +1 -0
- package/dist/esm/hooks/auth/useSwitchAccount.d.ts +6 -0
- package/dist/esm/hooks/auth/useSwitchAccount.js +97 -0
- package/dist/esm/hooks/auth/useSwitchAccount.js.map +1 -0
- package/dist/esm/hooks/collections/index.d.ts +4 -0
- package/dist/esm/hooks/collections/index.js +6 -0
- package/dist/esm/hooks/collections/index.js.map +1 -0
- package/dist/esm/hooks/collections/useCollectionEntitiesWrapper.d.ts +21 -0
- package/dist/esm/hooks/collections/useCollectionEntitiesWrapper.js +206 -0
- package/dist/esm/hooks/collections/useCollectionEntitiesWrapper.js.map +1 -0
- package/dist/esm/hooks/collections/useCollections.d.ts +48 -0
- package/dist/esm/hooks/collections/useCollections.js +259 -0
- package/dist/esm/hooks/collections/useCollections.js.map +1 -0
- package/dist/esm/hooks/collections/useCollectionsActions.d.ts +22 -0
- package/dist/esm/hooks/{lists/useListsActions.js → collections/useCollectionsActions.js} +105 -111
- package/dist/esm/hooks/collections/useCollectionsActions.js.map +1 -0
- package/dist/esm/hooks/collections/useIsEntitySaved.d.ts +6 -0
- package/dist/esm/hooks/{lists → collections}/useIsEntitySaved.js +3 -4
- package/dist/esm/hooks/collections/useIsEntitySaved.js.map +1 -0
- package/dist/esm/hooks/comments/index.d.ts +10 -2
- package/dist/esm/hooks/comments/index.js +1 -2
- package/dist/esm/hooks/comments/index.js.map +1 -1
- package/dist/esm/hooks/comments/useCommentSectionData.d.ts +16 -13
- package/dist/esm/hooks/comments/useCommentSectionData.js +46 -16
- package/dist/esm/hooks/comments/useCommentSectionData.js.map +1 -1
- package/dist/esm/hooks/comments/useCreateComment.d.ts +3 -2
- package/dist/esm/hooks/comments/useCreateComment.js.map +1 -1
- package/dist/esm/hooks/comments/useDeleteComment.d.ts +3 -2
- package/dist/esm/hooks/comments/useDeleteComment.js.map +1 -1
- package/dist/esm/hooks/comments/useEntityComments.d.ts +3 -1
- package/dist/esm/hooks/comments/useEntityComments.js +9 -1
- package/dist/esm/hooks/comments/useEntityComments.js.map +1 -1
- package/dist/esm/hooks/comments/useFetchComment.d.ts +5 -5
- package/dist/esm/hooks/comments/useFetchComment.js +7 -5
- package/dist/esm/hooks/comments/useFetchComment.js.map +1 -1
- package/dist/esm/hooks/comments/useFetchCommentByForeignId.d.ts +5 -5
- package/dist/esm/hooks/comments/useFetchCommentByForeignId.js +9 -6
- package/dist/esm/hooks/comments/useFetchCommentByForeignId.js.map +1 -1
- package/dist/esm/hooks/comments/useFetchManyComments.d.ts +5 -4
- package/dist/esm/hooks/comments/useFetchManyComments.js +8 -9
- package/dist/esm/hooks/comments/useFetchManyComments.js.map +1 -1
- package/dist/esm/hooks/comments/useFetchManyCommentsWrapper.d.ts +21 -0
- package/dist/esm/hooks/comments/{useProfileComments.js → useFetchManyCommentsWrapper.js} +40 -18
- package/dist/esm/hooks/comments/useFetchManyCommentsWrapper.js.map +1 -0
- package/dist/esm/hooks/comments/useReplies.d.ts +7 -4
- package/dist/esm/hooks/comments/useReplies.js +1 -0
- package/dist/esm/hooks/comments/useReplies.js.map +1 -1
- package/dist/esm/hooks/comments/useUpdateComment.d.ts +3 -2
- package/dist/esm/hooks/comments/useUpdateComment.js.map +1 -1
- package/dist/esm/hooks/crypto/index.d.ts +1 -0
- package/dist/esm/hooks/crypto/useSignTestingJwt.d.ts +7 -3
- package/dist/esm/hooks/crypto/useSignTestingJwt.js +11 -14
- package/dist/esm/hooks/crypto/useSignTestingJwt.js.map +1 -1
- package/dist/esm/hooks/entities/index.d.ts +10 -5
- package/dist/esm/hooks/entities/index.js +3 -5
- package/dist/esm/hooks/entities/index.js.map +1 -1
- package/dist/esm/hooks/entities/useCreateEntity.d.ts +25 -2
- package/dist/esm/hooks/entities/useCreateEntity.js +93 -15
- package/dist/esm/hooks/entities/useCreateEntity.js.map +1 -1
- package/dist/esm/hooks/entities/useDeleteEntity.d.ts +3 -2
- package/dist/esm/hooks/entities/useDeleteEntity.js +1 -3
- package/dist/esm/hooks/entities/useDeleteEntity.js.map +1 -1
- package/dist/esm/hooks/entities/useEntityData.d.ts +24 -12
- package/dist/esm/hooks/entities/useEntityData.js +0 -19
- package/dist/esm/hooks/entities/useEntityData.js.map +1 -1
- package/dist/esm/hooks/entities/useFetchDrafts.d.ts +11 -0
- package/dist/esm/hooks/entities/useFetchDrafts.js +76 -0
- package/dist/esm/hooks/entities/useFetchDrafts.js.map +1 -0
- package/dist/esm/hooks/entities/useFetchEntity.d.ts +3 -2
- package/dist/esm/hooks/entities/useFetchEntity.js +6 -6
- package/dist/esm/hooks/entities/useFetchEntity.js.map +1 -1
- package/dist/esm/hooks/entities/useFetchEntityByForeignId.d.ts +3 -2
- package/dist/esm/hooks/entities/useFetchEntityByForeignId.js +8 -17
- package/dist/esm/hooks/entities/useFetchEntityByForeignId.js.map +1 -1
- package/dist/esm/hooks/entities/useFetchEntityByShortId.d.ts +3 -2
- package/dist/esm/hooks/entities/useFetchEntityByShortId.js +7 -17
- package/dist/esm/hooks/entities/useFetchEntityByShortId.js.map +1 -1
- package/dist/esm/hooks/entities/useFetchManyEntities.d.ts +2 -1
- package/dist/esm/hooks/entities/useFetchManyEntities.js +2 -0
- package/dist/esm/hooks/entities/useFetchManyEntities.js.map +1 -1
- package/dist/esm/hooks/entities/useFetchManyEntitiesWrapper.d.ts +44 -0
- package/dist/esm/hooks/entities/useFetchManyEntitiesWrapper.js +243 -0
- package/dist/esm/hooks/entities/useFetchManyEntitiesWrapper.js.map +1 -0
- package/dist/esm/hooks/entities/useIncrementEntityViews.d.ts +1 -1
- package/dist/esm/hooks/entities/usePublishDraft.d.ts +6 -0
- package/dist/esm/hooks/entities/{useUpvoteEntity.js → usePublishDraft.js} +11 -11
- package/dist/esm/hooks/entities/usePublishDraft.js.map +1 -0
- package/dist/esm/hooks/entities/useUpdateEntity.js +7 -3
- package/dist/esm/hooks/entities/useUpdateEntity.js.map +1 -1
- package/dist/esm/hooks/entity-lists/index.d.ts +1 -1
- package/dist/esm/hooks/entity-lists/index.js.map +1 -1
- package/dist/esm/hooks/entity-lists/useEntityList.d.ts +20 -17
- package/dist/esm/hooks/entity-lists/useEntityList.js +17 -10
- package/dist/esm/hooks/entity-lists/useEntityList.js.map +1 -1
- package/dist/esm/hooks/entity-lists/useEntityListActions.d.ts +8 -6
- package/dist/esm/hooks/entity-lists/useEntityListActions.js +3 -2
- package/dist/esm/hooks/entity-lists/useEntityListActions.js.map +1 -1
- package/dist/esm/hooks/entity-lists/useInfusedData.d.ts +3 -2
- package/dist/esm/hooks/entity-lists/useInfusedData.js +0 -1
- package/dist/esm/hooks/entity-lists/useInfusedData.js.map +1 -1
- package/dist/esm/hooks/reactions/index.d.ts +14 -0
- package/dist/esm/hooks/reactions/index.js +8 -0
- package/dist/esm/hooks/reactions/index.js.map +1 -0
- package/dist/esm/hooks/reactions/useAddReaction.d.ts +10 -0
- package/dist/esm/hooks/reactions/useAddReaction.js +72 -0
- package/dist/esm/hooks/reactions/useAddReaction.js.map +1 -0
- package/dist/esm/hooks/reactions/useFetchCommentReactions.d.ts +11 -0
- package/dist/esm/hooks/reactions/useFetchCommentReactions.js +79 -0
- package/dist/esm/hooks/reactions/useFetchCommentReactions.js.map +1 -0
- package/dist/esm/hooks/reactions/useFetchCommentReactionsWrapper.d.ts +17 -0
- package/dist/esm/hooks/reactions/useFetchCommentReactionsWrapper.js +165 -0
- package/dist/esm/hooks/reactions/useFetchCommentReactionsWrapper.js.map +1 -0
- package/dist/esm/hooks/reactions/useFetchEntityReactions.d.ts +11 -0
- package/dist/esm/hooks/reactions/useFetchEntityReactions.js +79 -0
- package/dist/esm/hooks/reactions/useFetchEntityReactions.js.map +1 -0
- package/dist/esm/hooks/reactions/useFetchEntityReactionsWrapper.d.ts +17 -0
- package/dist/esm/hooks/reactions/useFetchEntityReactionsWrapper.js +165 -0
- package/dist/esm/hooks/reactions/useFetchEntityReactionsWrapper.js.map +1 -0
- package/dist/esm/hooks/reactions/useReactionToggle.d.ts +20 -0
- package/dist/esm/hooks/reactions/useReactionToggle.js +141 -0
- package/dist/esm/hooks/reactions/useReactionToggle.js.map +1 -0
- package/dist/esm/hooks/reactions/useRemoveReaction.d.ts +8 -0
- package/dist/esm/hooks/{comments/useRemoveCommentUpvote.js → reactions/useRemoveReaction.js} +16 -13
- package/dist/esm/hooks/reactions/useRemoveReaction.js.map +1 -0
- package/dist/esm/hooks/relationships/connections/index.d.ts +11 -0
- package/dist/esm/hooks/relationships/connections/useAcceptConnection.d.ts +3 -2
- package/dist/esm/hooks/relationships/connections/useAcceptConnection.js +1 -1
- package/dist/esm/hooks/relationships/connections/useAcceptConnection.js.map +1 -1
- package/dist/esm/hooks/relationships/connections/useConnectionManager.d.ts +5 -4
- package/dist/esm/hooks/relationships/connections/useConnectionManager.js.map +1 -1
- package/dist/esm/hooks/relationships/connections/useDeclineConnection.d.ts +3 -2
- package/dist/esm/hooks/relationships/connections/useDeclineConnection.js +1 -1
- package/dist/esm/hooks/relationships/connections/useDeclineConnection.js.map +1 -1
- package/dist/esm/hooks/relationships/connections/useFetchConnectionStatus.d.ts +3 -2
- package/dist/esm/hooks/relationships/connections/useFetchConnectionStatus.js +1 -1
- package/dist/esm/hooks/relationships/connections/useFetchConnectionStatus.js.map +1 -1
- package/dist/esm/hooks/relationships/connections/useFetchConnections.d.ts +1 -1
- package/dist/esm/hooks/relationships/connections/useFetchConnections.js +0 -1
- package/dist/esm/hooks/relationships/connections/useFetchConnections.js.map +1 -1
- package/dist/esm/hooks/relationships/connections/useFetchConnectionsByUserId.d.ts +1 -1
- package/dist/esm/hooks/relationships/connections/useFetchConnectionsCount.js +1 -1
- package/dist/esm/hooks/relationships/connections/useFetchConnectionsCount.js.map +1 -1
- package/dist/esm/hooks/relationships/connections/useFetchConnectionsCountByUserId.d.ts +1 -1
- package/dist/esm/hooks/relationships/connections/useFetchReceivedPendingConnections.d.ts +1 -1
- package/dist/esm/hooks/relationships/connections/useFetchReceivedPendingConnections.js +0 -1
- package/dist/esm/hooks/relationships/connections/useFetchReceivedPendingConnections.js.map +1 -1
- package/dist/esm/hooks/relationships/connections/useFetchSentPendingConnections.d.ts +1 -1
- package/dist/esm/hooks/relationships/connections/useFetchSentPendingConnections.js +0 -1
- package/dist/esm/hooks/relationships/connections/useFetchSentPendingConnections.js.map +1 -1
- package/dist/esm/hooks/relationships/connections/useRemoveConnection.d.ts +3 -2
- package/dist/esm/hooks/relationships/connections/useRemoveConnection.js +1 -1
- package/dist/esm/hooks/relationships/connections/useRemoveConnection.js.map +1 -1
- package/dist/esm/hooks/relationships/connections/useRemoveConnectionByUserId.d.ts +3 -2
- package/dist/esm/hooks/relationships/connections/useRemoveConnectionByUserId.js +1 -1
- package/dist/esm/hooks/relationships/connections/useRemoveConnectionByUserId.js.map +1 -1
- package/dist/esm/hooks/relationships/connections/useRequestConnection.js +1 -1
- package/dist/esm/hooks/relationships/connections/useRequestConnection.js.map +1 -1
- package/dist/esm/hooks/relationships/follows/index.d.ts +11 -0
- package/dist/esm/hooks/relationships/follows/useFetchFollowStatus.d.ts +5 -3
- package/dist/esm/hooks/relationships/follows/useFetchFollowStatus.js +1 -3
- package/dist/esm/hooks/relationships/follows/useFetchFollowStatus.js.map +1 -1
- package/dist/esm/hooks/relationships/follows/useFetchFollowers.d.ts +1 -1
- package/dist/esm/hooks/relationships/follows/useFetchFollowers.js +0 -1
- package/dist/esm/hooks/relationships/follows/useFetchFollowers.js.map +1 -1
- package/dist/esm/hooks/relationships/follows/useFetchFollowersByUserId.d.ts +1 -1
- package/dist/esm/hooks/relationships/follows/useFetchFollowersCount.js +1 -1
- package/dist/esm/hooks/relationships/follows/useFetchFollowersCount.js.map +1 -1
- package/dist/esm/hooks/relationships/follows/useFetchFollowersCountByUserId.d.ts +3 -2
- package/dist/esm/hooks/relationships/follows/useFetchFollowersCountByUserId.js.map +1 -1
- package/dist/esm/hooks/relationships/follows/useFetchFollowing.d.ts +1 -1
- package/dist/esm/hooks/relationships/follows/useFetchFollowing.js +0 -1
- package/dist/esm/hooks/relationships/follows/useFetchFollowing.js.map +1 -1
- package/dist/esm/hooks/relationships/follows/useFetchFollowingByUserId.d.ts +1 -1
- package/dist/esm/hooks/relationships/follows/useFetchFollowingCount.js +1 -1
- package/dist/esm/hooks/relationships/follows/useFetchFollowingCount.js.map +1 -1
- package/dist/esm/hooks/relationships/follows/useFetchFollowingCountByUserId.d.ts +3 -2
- package/dist/esm/hooks/relationships/follows/useFetchFollowingCountByUserId.js.map +1 -1
- package/dist/esm/hooks/relationships/follows/useFollowManager.d.ts +4 -3
- package/dist/esm/hooks/relationships/follows/useFollowManager.js.map +1 -1
- package/dist/esm/hooks/relationships/follows/useFollowUser.d.ts +3 -2
- package/dist/esm/hooks/relationships/follows/useFollowUser.js +1 -1
- package/dist/esm/hooks/relationships/follows/useFollowUser.js.map +1 -1
- package/dist/esm/hooks/relationships/follows/useUnfollowByFollowId.d.ts +3 -2
- package/dist/esm/hooks/relationships/follows/useUnfollowByFollowId.js +1 -3
- package/dist/esm/hooks/relationships/follows/useUnfollowByFollowId.js.map +1 -1
- package/dist/esm/hooks/relationships/follows/useUnfollowUserByUserId.d.ts +3 -2
- package/dist/esm/hooks/relationships/follows/useUnfollowUserByUserId.js +1 -3
- package/dist/esm/hooks/relationships/follows/useUnfollowUserByUserId.js.map +1 -1
- package/dist/esm/hooks/reports/index.d.ts +5 -1
- package/dist/esm/hooks/reports/index.js +1 -1
- package/dist/esm/hooks/reports/index.js.map +1 -1
- package/dist/esm/hooks/reports/useCreateReport.d.ts +16 -3
- package/dist/esm/hooks/reports/useCreateReport.js +3 -3
- package/dist/esm/hooks/reports/useCreateReport.js.map +1 -1
- package/dist/esm/hooks/reports/useFetchModeratedReports.d.ts +60 -0
- package/dist/esm/hooks/reports/useFetchModeratedReports.js +86 -0
- package/dist/esm/hooks/reports/useFetchModeratedReports.js.map +1 -0
- package/dist/esm/hooks/reports/useHandleSpaceCommentReport.d.ts +6 -6
- package/dist/esm/hooks/reports/useHandleSpaceCommentReport.js +2 -2
- package/dist/esm/hooks/reports/useHandleSpaceEntityReport.d.ts +6 -6
- package/dist/esm/hooks/reports/useHandleSpaceEntityReport.js +2 -2
- package/dist/esm/hooks/space-lists/index.d.ts +2 -1
- package/dist/esm/hooks/space-lists/index.js.map +1 -1
- package/dist/esm/hooks/space-lists/useSpaceList.d.ts +22 -17
- package/dist/esm/hooks/space-lists/useSpaceList.js +29 -14
- package/dist/esm/hooks/space-lists/useSpaceList.js.map +1 -1
- package/dist/esm/hooks/space-lists/useSpaceListActions.d.ts +7 -4
- package/dist/esm/hooks/space-lists/useSpaceListActions.js +6 -3
- package/dist/esm/hooks/space-lists/useSpaceListActions.js.map +1 -1
- package/dist/esm/hooks/spaces/index.d.ts +31 -1
- package/dist/esm/hooks/spaces/index.js +10 -1
- package/dist/esm/hooks/spaces/index.js.map +1 -1
- package/dist/esm/hooks/spaces/rules/index.d.ts +12 -0
- package/dist/esm/hooks/spaces/rules/index.js +7 -0
- package/dist/esm/hooks/spaces/rules/index.js.map +1 -0
- package/dist/esm/hooks/spaces/rules/useCreateRule.d.ts +8 -0
- package/dist/esm/hooks/spaces/rules/useCreateRule.js +72 -0
- package/dist/esm/hooks/spaces/rules/useCreateRule.js.map +1 -0
- package/dist/esm/hooks/spaces/rules/useDeleteRule.d.ts +7 -0
- package/dist/esm/hooks/spaces/rules/useDeleteRule.js +69 -0
- package/dist/esm/hooks/spaces/rules/useDeleteRule.js.map +1 -0
- package/dist/esm/hooks/spaces/rules/useFetchManyRules.d.ts +6 -0
- package/dist/esm/hooks/{comments/useUpvoteComment.js → spaces/rules/useFetchManyRules.js} +15 -15
- package/dist/esm/hooks/spaces/rules/useFetchManyRules.js.map +1 -0
- package/dist/esm/hooks/spaces/rules/useFetchRule.d.ts +7 -0
- package/dist/esm/hooks/spaces/rules/useFetchRule.js +69 -0
- package/dist/esm/hooks/spaces/rules/useFetchRule.js.map +1 -0
- package/dist/esm/hooks/spaces/rules/useReorderRules.d.ts +7 -0
- package/dist/esm/hooks/{comments/useRemoveCommentDownvote.js → spaces/rules/useReorderRules.js} +18 -15
- package/dist/esm/hooks/spaces/rules/useReorderRules.js.map +1 -0
- package/dist/esm/hooks/spaces/rules/useUpdateRule.d.ts +11 -0
- package/dist/esm/hooks/{users/useUpdateUser.js → spaces/rules/useUpdateRule.js} +15 -19
- package/dist/esm/hooks/spaces/rules/useUpdateRule.js.map +1 -0
- package/dist/esm/hooks/spaces/useApproveMember.d.ts +2 -2
- package/dist/esm/hooks/spaces/useApproveMember.js.map +1 -1
- package/dist/esm/hooks/spaces/useCheckMyMembership.d.ts +3 -2
- package/dist/esm/hooks/spaces/useCheckMyMembership.js.map +1 -1
- package/dist/esm/hooks/spaces/useCheckSlugAvailability.d.ts +3 -2
- package/dist/esm/hooks/spaces/useCheckSlugAvailability.js.map +1 -1
- package/dist/esm/hooks/spaces/useCreateSpace.d.ts +7 -2
- package/dist/esm/hooks/spaces/useCreateSpace.js +54 -3
- package/dist/esm/hooks/spaces/useCreateSpace.js.map +1 -1
- package/dist/esm/hooks/spaces/useDeclineMember.d.ts +2 -2
- package/dist/esm/hooks/spaces/useDeclineMember.js.map +1 -1
- package/dist/esm/hooks/spaces/useDeleteSpace.d.ts +3 -2
- package/dist/esm/hooks/spaces/useDeleteSpace.js.map +1 -1
- package/dist/esm/hooks/spaces/useFetchDigestConfig.d.ts +6 -0
- package/dist/esm/hooks/{comments/useDownvoteComment.js → spaces/useFetchDigestConfig.js} +14 -14
- package/dist/esm/hooks/spaces/useFetchDigestConfig.js.map +1 -0
- package/dist/esm/hooks/spaces/useFetchManySpaces.d.ts +8 -4
- package/dist/esm/hooks/spaces/useFetchManySpaces.js +13 -2
- package/dist/esm/hooks/spaces/useFetchManySpaces.js.map +1 -1
- package/dist/esm/hooks/spaces/useFetchSpace.d.ts +5 -3
- package/dist/esm/hooks/spaces/useFetchSpace.js +6 -2
- package/dist/esm/hooks/spaces/useFetchSpace.js.map +1 -1
- package/dist/esm/hooks/spaces/useFetchSpaceBreadcrumb.d.ts +3 -2
- package/dist/esm/hooks/spaces/useFetchSpaceBreadcrumb.js.map +1 -1
- package/dist/esm/hooks/spaces/useFetchSpaceByShortId.d.ts +5 -3
- package/dist/esm/hooks/spaces/useFetchSpaceByShortId.js +7 -2
- package/dist/esm/hooks/spaces/useFetchSpaceByShortId.js.map +1 -1
- package/dist/esm/hooks/spaces/useFetchSpaceBySlug.d.ts +5 -3
- package/dist/esm/hooks/spaces/useFetchSpaceBySlug.js +7 -2
- package/dist/esm/hooks/spaces/useFetchSpaceBySlug.js.map +1 -1
- package/dist/esm/hooks/spaces/useFetchSpaceChildren.d.ts +4 -3
- package/dist/esm/hooks/spaces/useFetchSpaceChildren.js +8 -2
- package/dist/esm/hooks/spaces/useFetchSpaceChildren.js.map +1 -1
- package/dist/esm/hooks/spaces/useFetchSpaceMembers.d.ts +2 -2
- package/dist/esm/hooks/spaces/useFetchSpaceMembers.js +2 -13
- package/dist/esm/hooks/spaces/useFetchSpaceMembers.js.map +1 -1
- package/dist/esm/hooks/spaces/useFetchSpaceTeam.d.ts +6 -0
- package/dist/esm/hooks/{entities/useDownvoteEntity.js → spaces/useFetchSpaceTeam.js} +17 -15
- package/dist/esm/hooks/spaces/useFetchSpaceTeam.js.map +1 -0
- package/dist/esm/hooks/spaces/useFetchUserSpaces.d.ts +12 -0
- package/dist/esm/hooks/spaces/{useFetchMySpaces.js → useFetchUserSpaces.js} +31 -8
- package/dist/esm/hooks/spaces/useFetchUserSpaces.js.map +1 -0
- package/dist/esm/hooks/spaces/useJoinSpace.d.ts +3 -2
- package/dist/esm/hooks/spaces/useJoinSpace.js.map +1 -1
- package/dist/esm/hooks/spaces/useLeaveSpace.d.ts +3 -2
- package/dist/esm/hooks/spaces/useLeaveSpace.js.map +1 -1
- package/dist/esm/hooks/spaces/useModerateSpaceComment.d.ts +26 -0
- package/dist/esm/hooks/spaces/useModerateSpaceComment.js +80 -0
- package/dist/esm/hooks/spaces/useModerateSpaceComment.js.map +1 -0
- package/dist/esm/hooks/spaces/useModerateSpaceEntity.d.ts +26 -0
- package/dist/esm/hooks/spaces/useModerateSpaceEntity.js +80 -0
- package/dist/esm/hooks/spaces/useModerateSpaceEntity.js.map +1 -0
- package/dist/esm/hooks/spaces/useRemoveMember.d.ts +2 -2
- package/dist/esm/hooks/spaces/useRemoveMember.js.map +1 -1
- package/dist/esm/hooks/spaces/useSpaceData.d.ts +3 -2
- package/dist/esm/hooks/spaces/useSpaceData.js +10 -5
- package/dist/esm/hooks/spaces/useSpaceData.js.map +1 -1
- package/dist/esm/hooks/spaces/useSpacePermissions.d.ts +2 -2
- package/dist/esm/hooks/spaces/useUpdateDigestConfig.d.ts +7 -0
- package/dist/esm/hooks/{entities/useRemoveEntityUpvote.js → spaces/useUpdateDigestConfig.js} +14 -14
- package/dist/esm/hooks/spaces/useUpdateDigestConfig.js.map +1 -0
- package/dist/esm/hooks/spaces/useUpdateMemberRole.d.ts +2 -2
- package/dist/esm/hooks/spaces/useUpdateMemberRole.js.map +1 -1
- package/dist/esm/hooks/spaces/useUpdateSpace.d.ts +8 -3
- package/dist/esm/hooks/spaces/useUpdateSpace.js +49 -4
- package/dist/esm/hooks/spaces/useUpdateSpace.js.map +1 -1
- package/dist/esm/hooks/storage/index.d.ts +2 -1
- package/dist/esm/hooks/storage/index.js +2 -1
- package/dist/esm/hooks/storage/index.js.map +1 -1
- package/dist/esm/hooks/storage/useUploadFile.d.ts +16 -5
- package/dist/esm/hooks/storage/useUploadFile.js +22 -9
- package/dist/esm/hooks/storage/useUploadFile.js.map +1 -1
- package/dist/esm/hooks/storage/useUploadImage.d.ts +15 -0
- package/dist/esm/hooks/storage/useUploadImage.js +153 -0
- package/dist/esm/hooks/storage/useUploadImage.js.map +1 -0
- package/dist/esm/hooks/user/index.d.ts +1 -0
- package/dist/esm/hooks/user/useUser.js +8 -8
- package/dist/esm/hooks/user/useUser.js.map +1 -1
- package/dist/esm/hooks/user/useUserActions.js +21 -4
- package/dist/esm/hooks/user/useUserActions.js.map +1 -1
- package/dist/esm/hooks/users/index.d.ts +6 -7
- package/dist/esm/hooks/users/index.js +6 -7
- package/dist/esm/hooks/users/index.js.map +1 -1
- package/dist/esm/hooks/users/useCheckUsernameAvailability.d.ts +3 -2
- package/dist/esm/hooks/users/useCheckUsernameAvailability.js.map +1 -1
- package/dist/esm/hooks/users/useFetchUser.d.ts +5 -3
- package/dist/esm/hooks/users/useFetchUser.js +6 -2
- package/dist/esm/hooks/users/useFetchUser.js.map +1 -1
- package/dist/esm/hooks/users/useFetchUserByForeignId.d.ts +5 -3
- package/dist/esm/hooks/users/useFetchUserByForeignId.js +5 -2
- package/dist/esm/hooks/users/useFetchUserByForeignId.js.map +1 -1
- package/dist/esm/hooks/users/useFetchUserByUsername.d.ts +5 -3
- package/dist/esm/hooks/users/useFetchUserByUsername.js +5 -2
- package/dist/esm/hooks/users/useFetchUserByUsername.js.map +1 -1
- package/dist/esm/hooks/users/useFetchUserSuggestions.d.ts +3 -2
- package/dist/esm/hooks/users/useFetchUserSuggestions.js.map +1 -1
- package/dist/esm/hooks/users/useMentions.d.ts +5 -3
- package/dist/esm/hooks/users/useMentions.js.map +1 -1
- package/dist/esm/hooks/utils/index.d.ts +1 -1
- package/dist/esm/hooks/utils/index.js +1 -1
- package/dist/esm/hooks/utils/index.js.map +1 -1
- package/dist/esm/hooks/utils/useGetMetadata.d.ts +4 -2
- package/dist/esm/hooks/utils/useGetMetadata.js +3 -2
- package/dist/esm/hooks/utils/useGetMetadata.js.map +1 -1
- package/dist/esm/index.d.ts +37 -26
- package/dist/esm/index.js +27 -13
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/interfaces/EntityListSortByOptions.d.ts +1 -0
- package/dist/esm/interfaces/EntityListSortByOptions.js.map +1 -1
- package/dist/esm/interfaces/IAccountStorage.d.ts +6 -0
- package/dist/esm/interfaces/IAccountStorage.js +2 -0
- package/dist/esm/interfaces/IAccountStorage.js.map +1 -0
- package/dist/esm/interfaces/UrlMetadata.d.ts +92 -0
- package/dist/esm/interfaces/UrlMetadata.js +2 -0
- package/dist/esm/interfaces/UrlMetadata.js.map +1 -0
- package/dist/esm/interfaces/models/AppNotification.d.ts +102 -2
- package/dist/esm/interfaces/models/{List.d.ts → Collection.d.ts} +2 -4
- package/dist/esm/interfaces/models/Collection.js +2 -0
- package/dist/esm/interfaces/models/Collection.js.map +1 -0
- package/dist/esm/interfaces/models/Comment.d.ts +14 -1
- package/dist/esm/interfaces/models/Entity.d.ts +14 -1
- package/dist/esm/interfaces/models/File.d.ts +38 -0
- package/dist/esm/interfaces/models/File.js +2 -0
- package/dist/esm/interfaces/models/File.js.map +1 -0
- package/dist/esm/interfaces/models/Image.d.ts +74 -0
- package/dist/esm/interfaces/models/Image.js +2 -0
- package/dist/esm/interfaces/models/Image.js.map +1 -0
- package/dist/esm/interfaces/models/Reaction.d.ts +23 -0
- package/dist/esm/interfaces/models/Reaction.js +2 -0
- package/dist/esm/interfaces/models/Reaction.js.map +1 -0
- package/dist/esm/interfaces/models/Rule.d.ts +22 -0
- package/dist/esm/interfaces/models/Rule.js +2 -0
- package/dist/esm/interfaces/models/Rule.js.map +1 -0
- package/dist/esm/interfaces/models/Space.d.ts +26 -5
- package/dist/esm/interfaces/models/SpaceMember.d.ts +3 -0
- package/dist/esm/interfaces/models/User.d.ts +11 -3
- package/dist/esm/store/api/appNotificationsApi.d.ts +181 -181
- package/dist/esm/store/api/baseApi.d.ts +3 -1
- package/dist/esm/store/api/baseApi.js +9 -5
- package/dist/esm/store/api/baseApi.js.map +1 -1
- package/dist/esm/store/api/collectionsApi.d.ts +4541 -0
- package/dist/esm/store/api/collectionsApi.js +241 -0
- package/dist/esm/store/api/collectionsApi.js.map +1 -0
- package/dist/esm/store/api/entityListsApi.d.ts +109 -108
- package/dist/esm/store/api/entityListsApi.js +2 -1
- package/dist/esm/store/api/entityListsApi.js.map +1 -1
- package/dist/esm/store/api/index.d.ts +1 -1
- package/dist/esm/store/api/index.js +2 -2
- package/dist/esm/store/api/index.js.map +1 -1
- package/dist/esm/store/api/spacesApi.d.ts +968 -960
- package/dist/esm/store/api/spacesApi.js +29 -11
- package/dist/esm/store/api/spacesApi.js.map +1 -1
- package/dist/esm/store/api/userApi.d.ts +12 -4
- package/dist/esm/store/api/userApi.js +62 -11
- package/dist/esm/store/api/userApi.js.map +1 -1
- package/dist/esm/store/hooks.d.ts +27 -0
- package/dist/esm/store/hooks.js +14 -0
- package/dist/esm/store/hooks.js.map +1 -0
- package/dist/esm/store/index.d.ts +19 -11
- package/dist/esm/store/index.js +4 -1
- package/dist/esm/store/index.js.map +1 -1
- package/dist/esm/store/integration.d.ts +35 -0
- package/dist/esm/store/integration.js +53 -0
- package/dist/esm/store/integration.js.map +1 -0
- package/dist/esm/store/replykeReducers.d.ts +38 -0
- package/dist/esm/store/replykeReducers.js +38 -0
- package/dist/esm/store/replykeReducers.js.map +1 -0
- package/dist/esm/store/rootReducer.d.ts +30 -14
- package/dist/esm/store/rootReducer.js +6 -16
- package/dist/esm/store/rootReducer.js.map +1 -1
- package/dist/esm/store/slices/accountsSlice.d.ts +41 -0
- package/dist/esm/store/slices/accountsSlice.js +64 -0
- package/dist/esm/store/slices/accountsSlice.js.map +1 -0
- package/dist/esm/store/slices/appNotificationsSlice.d.ts +1915 -220
- package/dist/esm/store/slices/appNotificationsSlice.js +9 -9
- package/dist/esm/store/slices/appNotificationsSlice.js.map +1 -1
- package/dist/esm/store/slices/authSlice.d.ts +19 -7
- package/dist/esm/store/slices/authSlice.js +19 -7
- package/dist/esm/store/slices/authSlice.js.map +1 -1
- package/dist/esm/store/slices/authThunks.d.ts +7 -0
- package/dist/esm/store/slices/authThunks.js +167 -57
- package/dist/esm/store/slices/authThunks.js.map +1 -1
- package/dist/esm/store/slices/collectionsSlice.d.ts +428 -0
- package/dist/esm/store/slices/collectionsSlice.js +202 -0
- package/dist/esm/store/slices/collectionsSlice.js.map +1 -0
- package/dist/esm/store/slices/entityListsSlice.d.ts +3853 -148
- package/dist/esm/store/slices/entityListsSlice.js +7 -2
- package/dist/esm/store/slices/entityListsSlice.js.map +1 -1
- package/dist/esm/store/slices/spaceListsSlice.d.ts +1136 -65
- package/dist/esm/store/slices/spaceListsSlice.js +14 -5
- package/dist/esm/store/slices/spaceListsSlice.js.map +1 -1
- package/dist/esm/store/slices/userSlice.d.ts +723 -7
- package/dist/esm/store/slices/userSlice.js +22 -10
- package/dist/esm/store/slices/userSlice.js.map +1 -1
- package/dist/esm/store/types/index.d.ts +5 -1
- package/dist/esm/utils/env.js +3 -3
- package/dist/esm/utils/env.js.map +1 -1
- package/package.json +7 -5
- package/dist/cjs/hooks/comments/useCommentVotes.d.ts +0 -11
- package/dist/cjs/hooks/comments/useCommentVotes.js +0 -234
- package/dist/cjs/hooks/comments/useCommentVotes.js.map +0 -1
- package/dist/cjs/hooks/comments/useDownvoteComment.d.ts +0 -5
- package/dist/cjs/hooks/comments/useDownvoteComment.js.map +0 -1
- package/dist/cjs/hooks/comments/useProfileComments.d.ts +0 -18
- package/dist/cjs/hooks/comments/useProfileComments.js.map +0 -1
- package/dist/cjs/hooks/comments/useRemoveCommentDownvote.d.ts +0 -5
- package/dist/cjs/hooks/comments/useRemoveCommentDownvote.js.map +0 -1
- package/dist/cjs/hooks/comments/useRemoveCommentUpvote.d.ts +0 -5
- package/dist/cjs/hooks/comments/useRemoveCommentUpvote.js.map +0 -1
- package/dist/cjs/hooks/comments/useUpvoteComment.d.ts +0 -5
- package/dist/cjs/hooks/comments/useUpvoteComment.js.map +0 -1
- package/dist/cjs/hooks/entities/useDownvoteEntity.d.ts +0 -5
- package/dist/cjs/hooks/entities/useDownvoteEntity.js.map +0 -1
- package/dist/cjs/hooks/entities/useEntityVotes.d.ts +0 -11
- package/dist/cjs/hooks/entities/useEntityVotes.js +0 -241
- package/dist/cjs/hooks/entities/useEntityVotes.js.map +0 -1
- package/dist/cjs/hooks/entities/useRemoveEntityDownvote.d.ts +0 -5
- package/dist/cjs/hooks/entities/useRemoveEntityDownvote.js.map +0 -1
- package/dist/cjs/hooks/entities/useRemoveEntityUpvote.d.ts +0 -5
- package/dist/cjs/hooks/entities/useRemoveEntityUpvote.js.map +0 -1
- package/dist/cjs/hooks/entities/useUpvoteEntity.d.ts +0 -5
- package/dist/cjs/hooks/entities/useUpvoteEntity.js.map +0 -1
- package/dist/cjs/hooks/lists/index.d.ts +0 -3
- package/dist/cjs/hooks/lists/index.js +0 -14
- package/dist/cjs/hooks/lists/index.js.map +0 -1
- package/dist/cjs/hooks/lists/useIsEntitySaved.d.ts +0 -5
- package/dist/cjs/hooks/lists/useIsEntitySaved.js.map +0 -1
- package/dist/cjs/hooks/lists/useLists.d.ts +0 -36
- package/dist/cjs/hooks/lists/useLists.js +0 -239
- package/dist/cjs/hooks/lists/useLists.js.map +0 -1
- package/dist/cjs/hooks/lists/useListsActions.d.ts +0 -21
- package/dist/cjs/hooks/lists/useListsActions.js.map +0 -1
- package/dist/cjs/hooks/reports/useFetchSpaceReports.d.ts +0 -39
- package/dist/cjs/hooks/reports/useFetchSpaceReports.js.map +0 -1
- package/dist/cjs/hooks/spaces/useFetchMySpaces.d.ts +0 -8
- package/dist/cjs/hooks/spaces/useFetchMySpaces.js.map +0 -1
- package/dist/cjs/hooks/users/useUpdateUser.d.ts +0 -18
- package/dist/cjs/hooks/users/useUpdateUser.js.map +0 -1
- package/dist/cjs/interfaces/models/List.js.map +0 -1
- package/dist/cjs/store/api/listsApi.d.ts +0 -3564
- package/dist/cjs/store/api/listsApi.js +0 -288
- package/dist/cjs/store/api/listsApi.js.map +0 -1
- package/dist/cjs/store/slices/listsSlice.d.ts +0 -1911
- package/dist/cjs/store/slices/listsSlice.js +0 -211
- package/dist/cjs/store/slices/listsSlice.js.map +0 -1
- package/dist/esm/hooks/comments/useCommentVotes.d.ts +0 -11
- package/dist/esm/hooks/comments/useCommentVotes.js +0 -229
- package/dist/esm/hooks/comments/useCommentVotes.js.map +0 -1
- package/dist/esm/hooks/comments/useDownvoteComment.d.ts +0 -5
- package/dist/esm/hooks/comments/useDownvoteComment.js.map +0 -1
- package/dist/esm/hooks/comments/useProfileComments.d.ts +0 -18
- package/dist/esm/hooks/comments/useProfileComments.js.map +0 -1
- package/dist/esm/hooks/comments/useRemoveCommentDownvote.d.ts +0 -5
- package/dist/esm/hooks/comments/useRemoveCommentDownvote.js.map +0 -1
- package/dist/esm/hooks/comments/useRemoveCommentUpvote.d.ts +0 -5
- package/dist/esm/hooks/comments/useRemoveCommentUpvote.js.map +0 -1
- package/dist/esm/hooks/comments/useUpvoteComment.d.ts +0 -5
- package/dist/esm/hooks/comments/useUpvoteComment.js.map +0 -1
- package/dist/esm/hooks/entities/useDownvoteEntity.d.ts +0 -5
- package/dist/esm/hooks/entities/useDownvoteEntity.js.map +0 -1
- package/dist/esm/hooks/entities/useEntityVotes.d.ts +0 -11
- package/dist/esm/hooks/entities/useEntityVotes.js +0 -236
- package/dist/esm/hooks/entities/useEntityVotes.js.map +0 -1
- package/dist/esm/hooks/entities/useRemoveEntityDownvote.d.ts +0 -5
- package/dist/esm/hooks/entities/useRemoveEntityDownvote.js.map +0 -1
- package/dist/esm/hooks/entities/useRemoveEntityUpvote.d.ts +0 -5
- package/dist/esm/hooks/entities/useRemoveEntityUpvote.js.map +0 -1
- package/dist/esm/hooks/entities/useUpvoteEntity.d.ts +0 -5
- package/dist/esm/hooks/entities/useUpvoteEntity.js.map +0 -1
- package/dist/esm/hooks/lists/index.d.ts +0 -3
- package/dist/esm/hooks/lists/index.js +0 -5
- package/dist/esm/hooks/lists/index.js.map +0 -1
- package/dist/esm/hooks/lists/useIsEntitySaved.d.ts +0 -5
- package/dist/esm/hooks/lists/useIsEntitySaved.js.map +0 -1
- package/dist/esm/hooks/lists/useLists.d.ts +0 -36
- package/dist/esm/hooks/lists/useLists.js +0 -234
- package/dist/esm/hooks/lists/useLists.js.map +0 -1
- package/dist/esm/hooks/lists/useListsActions.d.ts +0 -21
- package/dist/esm/hooks/lists/useListsActions.js.map +0 -1
- package/dist/esm/hooks/reports/useFetchSpaceReports.d.ts +0 -39
- package/dist/esm/hooks/reports/useFetchSpaceReports.js.map +0 -1
- package/dist/esm/hooks/spaces/useFetchMySpaces.d.ts +0 -8
- package/dist/esm/hooks/spaces/useFetchMySpaces.js.map +0 -1
- package/dist/esm/hooks/users/useUpdateUser.d.ts +0 -18
- package/dist/esm/hooks/users/useUpdateUser.js.map +0 -1
- package/dist/esm/interfaces/models/List.js +0 -2
- package/dist/esm/interfaces/models/List.js.map +0 -1
- package/dist/esm/store/api/listsApi.d.ts +0 -3564
- package/dist/esm/store/api/listsApi.js +0 -285
- package/dist/esm/store/api/listsApi.js.map +0 -1
- package/dist/esm/store/slices/listsSlice.d.ts +0 -1911
- package/dist/esm/store/slices/listsSlice.js +0 -202
- package/dist/esm/store/slices/listsSlice.js.map +0 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { PayloadAction } from "@reduxjs/toolkit";
|
|
2
2
|
import type { UnifiedAppNotification, NotificationTemplates } from "../../interfaces/models/AppNotification";
|
|
3
|
+
import type { ReplykeState } from '../replykeReducers';
|
|
3
4
|
export interface AppNotificationsState {
|
|
4
5
|
notifications: UnifiedAppNotification[];
|
|
5
6
|
unreadCount: number;
|
|
@@ -139,6 +140,136 @@ export declare const appNotificationsSlice: import("@reduxjs/toolkit").Slice<App
|
|
|
139
140
|
userId: string;
|
|
140
141
|
isRead: boolean;
|
|
141
142
|
createdAt: string;
|
|
143
|
+
} | {
|
|
144
|
+
type: "entity-reaction";
|
|
145
|
+
action: "open-entity";
|
|
146
|
+
metadata: {
|
|
147
|
+
entityId: string;
|
|
148
|
+
entityShortId: string;
|
|
149
|
+
entityTitle: string | null | undefined;
|
|
150
|
+
entityContent: string | null | undefined;
|
|
151
|
+
reactionType: string;
|
|
152
|
+
initiatorId: string;
|
|
153
|
+
initiatorName: string | null | undefined;
|
|
154
|
+
initiatorUsername: string | null | undefined;
|
|
155
|
+
initiatorAvatar: string | null | undefined;
|
|
156
|
+
};
|
|
157
|
+
id: string;
|
|
158
|
+
userId: string;
|
|
159
|
+
isRead: boolean;
|
|
160
|
+
createdAt: string;
|
|
161
|
+
} | {
|
|
162
|
+
type: "comment-reaction";
|
|
163
|
+
action: "open-comment";
|
|
164
|
+
metadata: {
|
|
165
|
+
entityId: string;
|
|
166
|
+
entityShortId: string;
|
|
167
|
+
entityTitle: string | null | undefined;
|
|
168
|
+
entityContent: string | null | undefined;
|
|
169
|
+
commentId: string;
|
|
170
|
+
commentContent: string | null | undefined;
|
|
171
|
+
reactionType: string;
|
|
172
|
+
initiatorId: string;
|
|
173
|
+
initiatorName: string | null | undefined;
|
|
174
|
+
initiatorUsername: string | null | undefined;
|
|
175
|
+
initiatorAvatar: string | null | undefined;
|
|
176
|
+
};
|
|
177
|
+
id: string;
|
|
178
|
+
userId: string;
|
|
179
|
+
isRead: boolean;
|
|
180
|
+
createdAt: string;
|
|
181
|
+
} | {
|
|
182
|
+
type: "entity-reaction-milestone-specific";
|
|
183
|
+
action: "open-entity";
|
|
184
|
+
metadata: {
|
|
185
|
+
entityId: string;
|
|
186
|
+
entityShortId: string;
|
|
187
|
+
entityTitle: string | null | undefined;
|
|
188
|
+
entityContent: string | null | undefined;
|
|
189
|
+
reactionType: string;
|
|
190
|
+
milestoneCount: number;
|
|
191
|
+
lastThreeUsers: {
|
|
192
|
+
id: string;
|
|
193
|
+
name: string | null | undefined;
|
|
194
|
+
username: string | null | undefined;
|
|
195
|
+
avatar: string | null | undefined;
|
|
196
|
+
}[];
|
|
197
|
+
};
|
|
198
|
+
id: string;
|
|
199
|
+
userId: string;
|
|
200
|
+
isRead: boolean;
|
|
201
|
+
createdAt: string;
|
|
202
|
+
} | {
|
|
203
|
+
type: "entity-reaction-milestone-total";
|
|
204
|
+
action: "open-entity";
|
|
205
|
+
metadata: {
|
|
206
|
+
entityId: string;
|
|
207
|
+
entityShortId: string;
|
|
208
|
+
entityTitle: string | null | undefined;
|
|
209
|
+
entityContent: string | null | undefined;
|
|
210
|
+
milestoneCount: number;
|
|
211
|
+
reactionCounts: {
|
|
212
|
+
[x: string]: number;
|
|
213
|
+
};
|
|
214
|
+
lastThreeUsers: {
|
|
215
|
+
id: string;
|
|
216
|
+
name: string | null | undefined;
|
|
217
|
+
username: string | null | undefined;
|
|
218
|
+
avatar: string | null | undefined;
|
|
219
|
+
}[];
|
|
220
|
+
};
|
|
221
|
+
id: string;
|
|
222
|
+
userId: string;
|
|
223
|
+
isRead: boolean;
|
|
224
|
+
createdAt: string;
|
|
225
|
+
} | {
|
|
226
|
+
type: "comment-reaction-milestone-specific";
|
|
227
|
+
action: "open-comment";
|
|
228
|
+
metadata: {
|
|
229
|
+
entityId: string;
|
|
230
|
+
entityShortId: string;
|
|
231
|
+
entityTitle: string | null | undefined;
|
|
232
|
+
entityContent: string | null | undefined;
|
|
233
|
+
commentId: string;
|
|
234
|
+
commentContent: string | null | undefined;
|
|
235
|
+
reactionType: string;
|
|
236
|
+
milestoneCount: number;
|
|
237
|
+
lastThreeUsers: {
|
|
238
|
+
id: string;
|
|
239
|
+
name: string | null | undefined;
|
|
240
|
+
username: string | null | undefined;
|
|
241
|
+
avatar: string | null | undefined;
|
|
242
|
+
}[];
|
|
243
|
+
};
|
|
244
|
+
id: string;
|
|
245
|
+
userId: string;
|
|
246
|
+
isRead: boolean;
|
|
247
|
+
createdAt: string;
|
|
248
|
+
} | {
|
|
249
|
+
type: "comment-reaction-milestone-total";
|
|
250
|
+
action: "open-comment";
|
|
251
|
+
metadata: {
|
|
252
|
+
entityId: string;
|
|
253
|
+
entityShortId: string;
|
|
254
|
+
entityTitle: string | null | undefined;
|
|
255
|
+
entityContent: string | null | undefined;
|
|
256
|
+
commentId: string;
|
|
257
|
+
commentContent: string | null | undefined;
|
|
258
|
+
milestoneCount: number;
|
|
259
|
+
reactionCounts: {
|
|
260
|
+
[x: string]: number;
|
|
261
|
+
};
|
|
262
|
+
lastThreeUsers: {
|
|
263
|
+
id: string;
|
|
264
|
+
name: string | null | undefined;
|
|
265
|
+
username: string | null | undefined;
|
|
266
|
+
avatar: string | null | undefined;
|
|
267
|
+
}[];
|
|
268
|
+
};
|
|
269
|
+
id: string;
|
|
270
|
+
userId: string;
|
|
271
|
+
isRead: boolean;
|
|
272
|
+
createdAt: string;
|
|
142
273
|
} | {
|
|
143
274
|
type: "new-follow";
|
|
144
275
|
action: "open-profile";
|
|
@@ -211,6 +342,30 @@ export declare const appNotificationsSlice: import("@reduxjs/toolkit").Slice<App
|
|
|
211
342
|
title?: string | undefined;
|
|
212
343
|
content?: string | undefined;
|
|
213
344
|
} | undefined;
|
|
345
|
+
entityReaction?: {
|
|
346
|
+
title?: string | undefined;
|
|
347
|
+
content?: string | undefined;
|
|
348
|
+
} | undefined;
|
|
349
|
+
commentReaction?: {
|
|
350
|
+
title?: string | undefined;
|
|
351
|
+
content?: string | undefined;
|
|
352
|
+
} | undefined;
|
|
353
|
+
entityReactionMilestoneSpecific?: {
|
|
354
|
+
title?: string | undefined;
|
|
355
|
+
content?: string | undefined;
|
|
356
|
+
} | undefined;
|
|
357
|
+
entityReactionMilestoneTotal?: {
|
|
358
|
+
title?: string | undefined;
|
|
359
|
+
content?: string | undefined;
|
|
360
|
+
} | undefined;
|
|
361
|
+
commentReactionMilestoneSpecific?: {
|
|
362
|
+
title?: string | undefined;
|
|
363
|
+
content?: string | undefined;
|
|
364
|
+
} | undefined;
|
|
365
|
+
commentReactionMilestoneTotal?: {
|
|
366
|
+
title?: string | undefined;
|
|
367
|
+
content?: string | undefined;
|
|
368
|
+
} | undefined;
|
|
214
369
|
newFollow?: {
|
|
215
370
|
title?: string | undefined;
|
|
216
371
|
content?: string | undefined;
|
|
@@ -354,6 +509,136 @@ export declare const appNotificationsSlice: import("@reduxjs/toolkit").Slice<App
|
|
|
354
509
|
userId: string;
|
|
355
510
|
isRead: boolean;
|
|
356
511
|
createdAt: string;
|
|
512
|
+
} | {
|
|
513
|
+
type: "entity-reaction";
|
|
514
|
+
action: "open-entity";
|
|
515
|
+
metadata: {
|
|
516
|
+
entityId: string;
|
|
517
|
+
entityShortId: string;
|
|
518
|
+
entityTitle: string | null | undefined;
|
|
519
|
+
entityContent: string | null | undefined;
|
|
520
|
+
reactionType: string;
|
|
521
|
+
initiatorId: string;
|
|
522
|
+
initiatorName: string | null | undefined;
|
|
523
|
+
initiatorUsername: string | null | undefined;
|
|
524
|
+
initiatorAvatar: string | null | undefined;
|
|
525
|
+
};
|
|
526
|
+
id: string;
|
|
527
|
+
userId: string;
|
|
528
|
+
isRead: boolean;
|
|
529
|
+
createdAt: string;
|
|
530
|
+
} | {
|
|
531
|
+
type: "comment-reaction";
|
|
532
|
+
action: "open-comment";
|
|
533
|
+
metadata: {
|
|
534
|
+
entityId: string;
|
|
535
|
+
entityShortId: string;
|
|
536
|
+
entityTitle: string | null | undefined;
|
|
537
|
+
entityContent: string | null | undefined;
|
|
538
|
+
commentId: string;
|
|
539
|
+
commentContent: string | null | undefined;
|
|
540
|
+
reactionType: string;
|
|
541
|
+
initiatorId: string;
|
|
542
|
+
initiatorName: string | null | undefined;
|
|
543
|
+
initiatorUsername: string | null | undefined;
|
|
544
|
+
initiatorAvatar: string | null | undefined;
|
|
545
|
+
};
|
|
546
|
+
id: string;
|
|
547
|
+
userId: string;
|
|
548
|
+
isRead: boolean;
|
|
549
|
+
createdAt: string;
|
|
550
|
+
} | {
|
|
551
|
+
type: "entity-reaction-milestone-specific";
|
|
552
|
+
action: "open-entity";
|
|
553
|
+
metadata: {
|
|
554
|
+
entityId: string;
|
|
555
|
+
entityShortId: string;
|
|
556
|
+
entityTitle: string | null | undefined;
|
|
557
|
+
entityContent: string | null | undefined;
|
|
558
|
+
reactionType: string;
|
|
559
|
+
milestoneCount: number;
|
|
560
|
+
lastThreeUsers: {
|
|
561
|
+
id: string;
|
|
562
|
+
name: string | null | undefined;
|
|
563
|
+
username: string | null | undefined;
|
|
564
|
+
avatar: string | null | undefined;
|
|
565
|
+
}[];
|
|
566
|
+
};
|
|
567
|
+
id: string;
|
|
568
|
+
userId: string;
|
|
569
|
+
isRead: boolean;
|
|
570
|
+
createdAt: string;
|
|
571
|
+
} | {
|
|
572
|
+
type: "entity-reaction-milestone-total";
|
|
573
|
+
action: "open-entity";
|
|
574
|
+
metadata: {
|
|
575
|
+
entityId: string;
|
|
576
|
+
entityShortId: string;
|
|
577
|
+
entityTitle: string | null | undefined;
|
|
578
|
+
entityContent: string | null | undefined;
|
|
579
|
+
milestoneCount: number;
|
|
580
|
+
reactionCounts: {
|
|
581
|
+
[x: string]: number;
|
|
582
|
+
};
|
|
583
|
+
lastThreeUsers: {
|
|
584
|
+
id: string;
|
|
585
|
+
name: string | null | undefined;
|
|
586
|
+
username: string | null | undefined;
|
|
587
|
+
avatar: string | null | undefined;
|
|
588
|
+
}[];
|
|
589
|
+
};
|
|
590
|
+
id: string;
|
|
591
|
+
userId: string;
|
|
592
|
+
isRead: boolean;
|
|
593
|
+
createdAt: string;
|
|
594
|
+
} | {
|
|
595
|
+
type: "comment-reaction-milestone-specific";
|
|
596
|
+
action: "open-comment";
|
|
597
|
+
metadata: {
|
|
598
|
+
entityId: string;
|
|
599
|
+
entityShortId: string;
|
|
600
|
+
entityTitle: string | null | undefined;
|
|
601
|
+
entityContent: string | null | undefined;
|
|
602
|
+
commentId: string;
|
|
603
|
+
commentContent: string | null | undefined;
|
|
604
|
+
reactionType: string;
|
|
605
|
+
milestoneCount: number;
|
|
606
|
+
lastThreeUsers: {
|
|
607
|
+
id: string;
|
|
608
|
+
name: string | null | undefined;
|
|
609
|
+
username: string | null | undefined;
|
|
610
|
+
avatar: string | null | undefined;
|
|
611
|
+
}[];
|
|
612
|
+
};
|
|
613
|
+
id: string;
|
|
614
|
+
userId: string;
|
|
615
|
+
isRead: boolean;
|
|
616
|
+
createdAt: string;
|
|
617
|
+
} | {
|
|
618
|
+
type: "comment-reaction-milestone-total";
|
|
619
|
+
action: "open-comment";
|
|
620
|
+
metadata: {
|
|
621
|
+
entityId: string;
|
|
622
|
+
entityShortId: string;
|
|
623
|
+
entityTitle: string | null | undefined;
|
|
624
|
+
entityContent: string | null | undefined;
|
|
625
|
+
commentId: string;
|
|
626
|
+
commentContent: string | null | undefined;
|
|
627
|
+
milestoneCount: number;
|
|
628
|
+
reactionCounts: {
|
|
629
|
+
[x: string]: number;
|
|
630
|
+
};
|
|
631
|
+
lastThreeUsers: {
|
|
632
|
+
id: string;
|
|
633
|
+
name: string | null | undefined;
|
|
634
|
+
username: string | null | undefined;
|
|
635
|
+
avatar: string | null | undefined;
|
|
636
|
+
}[];
|
|
637
|
+
};
|
|
638
|
+
id: string;
|
|
639
|
+
userId: string;
|
|
640
|
+
isRead: boolean;
|
|
641
|
+
createdAt: string;
|
|
357
642
|
} | {
|
|
358
643
|
type: "new-follow";
|
|
359
644
|
action: "open-profile";
|
|
@@ -426,6 +711,30 @@ export declare const appNotificationsSlice: import("@reduxjs/toolkit").Slice<App
|
|
|
426
711
|
title?: string | undefined;
|
|
427
712
|
content?: string | undefined;
|
|
428
713
|
} | undefined;
|
|
714
|
+
entityReaction?: {
|
|
715
|
+
title?: string | undefined;
|
|
716
|
+
content?: string | undefined;
|
|
717
|
+
} | undefined;
|
|
718
|
+
commentReaction?: {
|
|
719
|
+
title?: string | undefined;
|
|
720
|
+
content?: string | undefined;
|
|
721
|
+
} | undefined;
|
|
722
|
+
entityReactionMilestoneSpecific?: {
|
|
723
|
+
title?: string | undefined;
|
|
724
|
+
content?: string | undefined;
|
|
725
|
+
} | undefined;
|
|
726
|
+
entityReactionMilestoneTotal?: {
|
|
727
|
+
title?: string | undefined;
|
|
728
|
+
content?: string | undefined;
|
|
729
|
+
} | undefined;
|
|
730
|
+
commentReactionMilestoneSpecific?: {
|
|
731
|
+
title?: string | undefined;
|
|
732
|
+
content?: string | undefined;
|
|
733
|
+
} | undefined;
|
|
734
|
+
commentReactionMilestoneTotal?: {
|
|
735
|
+
title?: string | undefined;
|
|
736
|
+
content?: string | undefined;
|
|
737
|
+
} | undefined;
|
|
429
738
|
newFollow?: {
|
|
430
739
|
title?: string | undefined;
|
|
431
740
|
content?: string | undefined;
|
|
@@ -570,9 +879,14 @@ export declare const appNotificationsSlice: import("@reduxjs/toolkit").Slice<App
|
|
|
570
879
|
isRead: boolean;
|
|
571
880
|
createdAt: string;
|
|
572
881
|
} | {
|
|
573
|
-
type: "
|
|
574
|
-
action: "open-
|
|
882
|
+
type: "entity-reaction";
|
|
883
|
+
action: "open-entity";
|
|
575
884
|
metadata: {
|
|
885
|
+
entityId: string;
|
|
886
|
+
entityShortId: string;
|
|
887
|
+
entityTitle: string | null | undefined;
|
|
888
|
+
entityContent: string | null | undefined;
|
|
889
|
+
reactionType: string;
|
|
576
890
|
initiatorId: string;
|
|
577
891
|
initiatorName: string | null | undefined;
|
|
578
892
|
initiatorUsername: string | null | undefined;
|
|
@@ -583,10 +897,16 @@ export declare const appNotificationsSlice: import("@reduxjs/toolkit").Slice<App
|
|
|
583
897
|
isRead: boolean;
|
|
584
898
|
createdAt: string;
|
|
585
899
|
} | {
|
|
586
|
-
type: "
|
|
587
|
-
action: "open-
|
|
900
|
+
type: "comment-reaction";
|
|
901
|
+
action: "open-comment";
|
|
588
902
|
metadata: {
|
|
589
|
-
|
|
903
|
+
entityId: string;
|
|
904
|
+
entityShortId: string;
|
|
905
|
+
entityTitle: string | null | undefined;
|
|
906
|
+
entityContent: string | null | undefined;
|
|
907
|
+
commentId: string;
|
|
908
|
+
commentContent: string | null | undefined;
|
|
909
|
+
reactionType: string;
|
|
590
910
|
initiatorId: string;
|
|
591
911
|
initiatorName: string | null | undefined;
|
|
592
912
|
initiatorUsername: string | null | undefined;
|
|
@@ -597,38 +917,157 @@ export declare const appNotificationsSlice: import("@reduxjs/toolkit").Slice<App
|
|
|
597
917
|
isRead: boolean;
|
|
598
918
|
createdAt: string;
|
|
599
919
|
} | {
|
|
600
|
-
type: "
|
|
601
|
-
action: "open-
|
|
920
|
+
type: "entity-reaction-milestone-specific";
|
|
921
|
+
action: "open-entity";
|
|
602
922
|
metadata: {
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
923
|
+
entityId: string;
|
|
924
|
+
entityShortId: string;
|
|
925
|
+
entityTitle: string | null | undefined;
|
|
926
|
+
entityContent: string | null | undefined;
|
|
927
|
+
reactionType: string;
|
|
928
|
+
milestoneCount: number;
|
|
929
|
+
lastThreeUsers: {
|
|
930
|
+
id: string;
|
|
931
|
+
name: string | null | undefined;
|
|
932
|
+
username: string | null | undefined;
|
|
933
|
+
avatar: string | null | undefined;
|
|
934
|
+
}[];
|
|
608
935
|
};
|
|
609
936
|
id: string;
|
|
610
937
|
userId: string;
|
|
611
938
|
isRead: boolean;
|
|
612
939
|
createdAt: string;
|
|
613
|
-
}
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
}
|
|
940
|
+
} | {
|
|
941
|
+
type: "entity-reaction-milestone-total";
|
|
942
|
+
action: "open-entity";
|
|
943
|
+
metadata: {
|
|
944
|
+
entityId: string;
|
|
945
|
+
entityShortId: string;
|
|
946
|
+
entityTitle: string | null | undefined;
|
|
947
|
+
entityContent: string | null | undefined;
|
|
948
|
+
milestoneCount: number;
|
|
949
|
+
reactionCounts: {
|
|
950
|
+
[x: string]: number;
|
|
951
|
+
};
|
|
952
|
+
lastThreeUsers: {
|
|
953
|
+
id: string;
|
|
954
|
+
name: string | null | undefined;
|
|
955
|
+
username: string | null | undefined;
|
|
956
|
+
avatar: string | null | undefined;
|
|
957
|
+
}[];
|
|
958
|
+
};
|
|
959
|
+
id: string;
|
|
960
|
+
userId: string;
|
|
961
|
+
isRead: boolean;
|
|
962
|
+
createdAt: string;
|
|
963
|
+
} | {
|
|
964
|
+
type: "comment-reaction-milestone-specific";
|
|
965
|
+
action: "open-comment";
|
|
966
|
+
metadata: {
|
|
967
|
+
entityId: string;
|
|
968
|
+
entityShortId: string;
|
|
969
|
+
entityTitle: string | null | undefined;
|
|
970
|
+
entityContent: string | null | undefined;
|
|
971
|
+
commentId: string;
|
|
972
|
+
commentContent: string | null | undefined;
|
|
973
|
+
reactionType: string;
|
|
974
|
+
milestoneCount: number;
|
|
975
|
+
lastThreeUsers: {
|
|
976
|
+
id: string;
|
|
977
|
+
name: string | null | undefined;
|
|
978
|
+
username: string | null | undefined;
|
|
979
|
+
avatar: string | null | undefined;
|
|
980
|
+
}[];
|
|
981
|
+
};
|
|
982
|
+
id: string;
|
|
983
|
+
userId: string;
|
|
984
|
+
isRead: boolean;
|
|
985
|
+
createdAt: string;
|
|
986
|
+
} | {
|
|
987
|
+
type: "comment-reaction-milestone-total";
|
|
988
|
+
action: "open-comment";
|
|
989
|
+
metadata: {
|
|
990
|
+
entityId: string;
|
|
991
|
+
entityShortId: string;
|
|
992
|
+
entityTitle: string | null | undefined;
|
|
993
|
+
entityContent: string | null | undefined;
|
|
994
|
+
commentId: string;
|
|
995
|
+
commentContent: string | null | undefined;
|
|
996
|
+
milestoneCount: number;
|
|
997
|
+
reactionCounts: {
|
|
998
|
+
[x: string]: number;
|
|
999
|
+
};
|
|
1000
|
+
lastThreeUsers: {
|
|
1001
|
+
id: string;
|
|
1002
|
+
name: string | null | undefined;
|
|
1003
|
+
username: string | null | undefined;
|
|
1004
|
+
avatar: string | null | undefined;
|
|
1005
|
+
}[];
|
|
1006
|
+
};
|
|
1007
|
+
id: string;
|
|
1008
|
+
userId: string;
|
|
1009
|
+
isRead: boolean;
|
|
1010
|
+
createdAt: string;
|
|
1011
|
+
} | {
|
|
1012
|
+
type: "new-follow";
|
|
1013
|
+
action: "open-profile";
|
|
1014
|
+
metadata: {
|
|
1015
|
+
initiatorId: string;
|
|
1016
|
+
initiatorName: string | null | undefined;
|
|
1017
|
+
initiatorUsername: string | null | undefined;
|
|
1018
|
+
initiatorAvatar: string | null | undefined;
|
|
1019
|
+
};
|
|
1020
|
+
id: string;
|
|
1021
|
+
userId: string;
|
|
1022
|
+
isRead: boolean;
|
|
1023
|
+
createdAt: string;
|
|
1024
|
+
} | {
|
|
1025
|
+
type: "connection-request";
|
|
1026
|
+
action: "open-profile";
|
|
1027
|
+
metadata: {
|
|
1028
|
+
connectionId: string;
|
|
1029
|
+
initiatorId: string;
|
|
1030
|
+
initiatorName: string | null | undefined;
|
|
1031
|
+
initiatorUsername: string | null | undefined;
|
|
1032
|
+
initiatorAvatar: string | null | undefined;
|
|
1033
|
+
};
|
|
1034
|
+
id: string;
|
|
1035
|
+
userId: string;
|
|
1036
|
+
isRead: boolean;
|
|
1037
|
+
createdAt: string;
|
|
1038
|
+
} | {
|
|
1039
|
+
type: "connection-accepted";
|
|
1040
|
+
action: "open-profile";
|
|
1041
|
+
metadata: {
|
|
1042
|
+
connectionId: string;
|
|
1043
|
+
initiatorId: string;
|
|
1044
|
+
initiatorName: string | null | undefined;
|
|
1045
|
+
initiatorUsername: string | null | undefined;
|
|
1046
|
+
initiatorAvatar: string | null | undefined;
|
|
1047
|
+
};
|
|
1048
|
+
id: string;
|
|
1049
|
+
userId: string;
|
|
1050
|
+
isRead: boolean;
|
|
1051
|
+
createdAt: string;
|
|
1052
|
+
})[];
|
|
1053
|
+
unreadCount: number;
|
|
1054
|
+
loading: boolean;
|
|
1055
|
+
hasMore: boolean;
|
|
1056
|
+
page: number;
|
|
1057
|
+
limit: number;
|
|
1058
|
+
notificationTemplates?: {
|
|
1059
|
+
entityComment?: {
|
|
1060
|
+
title?: string | undefined;
|
|
1061
|
+
content?: string | undefined;
|
|
1062
|
+
} | undefined;
|
|
1063
|
+
commentReply?: {
|
|
1064
|
+
title?: string | undefined;
|
|
1065
|
+
content?: string | undefined;
|
|
1066
|
+
} | undefined;
|
|
1067
|
+
entityMention?: {
|
|
1068
|
+
title?: string | undefined;
|
|
1069
|
+
content?: string | undefined;
|
|
1070
|
+
} | undefined;
|
|
632
1071
|
commentMention?: {
|
|
633
1072
|
title?: string | undefined;
|
|
634
1073
|
content?: string | undefined;
|
|
@@ -641,6 +1080,30 @@ export declare const appNotificationsSlice: import("@reduxjs/toolkit").Slice<App
|
|
|
641
1080
|
title?: string | undefined;
|
|
642
1081
|
content?: string | undefined;
|
|
643
1082
|
} | undefined;
|
|
1083
|
+
entityReaction?: {
|
|
1084
|
+
title?: string | undefined;
|
|
1085
|
+
content?: string | undefined;
|
|
1086
|
+
} | undefined;
|
|
1087
|
+
commentReaction?: {
|
|
1088
|
+
title?: string | undefined;
|
|
1089
|
+
content?: string | undefined;
|
|
1090
|
+
} | undefined;
|
|
1091
|
+
entityReactionMilestoneSpecific?: {
|
|
1092
|
+
title?: string | undefined;
|
|
1093
|
+
content?: string | undefined;
|
|
1094
|
+
} | undefined;
|
|
1095
|
+
entityReactionMilestoneTotal?: {
|
|
1096
|
+
title?: string | undefined;
|
|
1097
|
+
content?: string | undefined;
|
|
1098
|
+
} | undefined;
|
|
1099
|
+
commentReactionMilestoneSpecific?: {
|
|
1100
|
+
title?: string | undefined;
|
|
1101
|
+
content?: string | undefined;
|
|
1102
|
+
} | undefined;
|
|
1103
|
+
commentReactionMilestoneTotal?: {
|
|
1104
|
+
title?: string | undefined;
|
|
1105
|
+
content?: string | undefined;
|
|
1106
|
+
} | undefined;
|
|
644
1107
|
newFollow?: {
|
|
645
1108
|
title?: string | undefined;
|
|
646
1109
|
content?: string | undefined;
|
|
@@ -673,15 +1136,495 @@ export declare const appNotificationsSlice: import("@reduxjs/toolkit").Slice<App
|
|
|
673
1136
|
isRead: boolean;
|
|
674
1137
|
createdAt: string;
|
|
675
1138
|
} | {
|
|
676
|
-
type: "entity-comment";
|
|
677
|
-
action: "open-comment";
|
|
1139
|
+
type: "entity-comment";
|
|
1140
|
+
action: "open-comment";
|
|
1141
|
+
metadata: {
|
|
1142
|
+
entityId: string;
|
|
1143
|
+
entityShortId: string;
|
|
1144
|
+
entityTitle: string | null | undefined;
|
|
1145
|
+
entityContent: string | null | undefined;
|
|
1146
|
+
commentId: string;
|
|
1147
|
+
commentContent: string | null | undefined;
|
|
1148
|
+
initiatorId: string;
|
|
1149
|
+
initiatorName: string | null | undefined;
|
|
1150
|
+
initiatorUsername: string | null | undefined;
|
|
1151
|
+
initiatorAvatar: string | null | undefined;
|
|
1152
|
+
};
|
|
1153
|
+
id: string;
|
|
1154
|
+
userId: string;
|
|
1155
|
+
isRead: boolean;
|
|
1156
|
+
createdAt: string;
|
|
1157
|
+
} | {
|
|
1158
|
+
type: "comment-reply";
|
|
1159
|
+
action: "open-comment";
|
|
1160
|
+
metadata: {
|
|
1161
|
+
entityId: string;
|
|
1162
|
+
entityShortId: string;
|
|
1163
|
+
entityTitle: string | null | undefined;
|
|
1164
|
+
entityContent: string | null | undefined;
|
|
1165
|
+
commentId: string;
|
|
1166
|
+
commentContent: string | null | undefined;
|
|
1167
|
+
replyId: string;
|
|
1168
|
+
replyContent: string | null | undefined;
|
|
1169
|
+
initiatorId: string;
|
|
1170
|
+
initiatorName: string | null | undefined;
|
|
1171
|
+
initiatorUsername: string | null | undefined;
|
|
1172
|
+
initiatorAvatar: string | null | undefined;
|
|
1173
|
+
};
|
|
1174
|
+
id: string;
|
|
1175
|
+
userId: string;
|
|
1176
|
+
isRead: boolean;
|
|
1177
|
+
createdAt: string;
|
|
1178
|
+
} | {
|
|
1179
|
+
type: "entity-mention";
|
|
1180
|
+
action: "open-entity";
|
|
1181
|
+
metadata: {
|
|
1182
|
+
entityId: string;
|
|
1183
|
+
entityShortId: string;
|
|
1184
|
+
entityTitle: string | null | undefined;
|
|
1185
|
+
entityContent: string | null | undefined;
|
|
1186
|
+
initiatorId: string;
|
|
1187
|
+
initiatorName: string | null | undefined;
|
|
1188
|
+
initiatorUsername: string | null | undefined;
|
|
1189
|
+
initiatorAvatar: string | null | undefined;
|
|
1190
|
+
};
|
|
1191
|
+
id: string;
|
|
1192
|
+
userId: string;
|
|
1193
|
+
isRead: boolean;
|
|
1194
|
+
createdAt: string;
|
|
1195
|
+
} | {
|
|
1196
|
+
type: "comment-mention";
|
|
1197
|
+
action: "open-comment";
|
|
1198
|
+
metadata: {
|
|
1199
|
+
entityId: string;
|
|
1200
|
+
entityShortId: string;
|
|
1201
|
+
entityTitle: string | null | undefined;
|
|
1202
|
+
entityContent: string | null | undefined;
|
|
1203
|
+
commentId: string;
|
|
1204
|
+
commentContent: string | null | undefined;
|
|
1205
|
+
initiatorId: string;
|
|
1206
|
+
initiatorName: string | null | undefined;
|
|
1207
|
+
initiatorUsername: string | null | undefined;
|
|
1208
|
+
initiatorAvatar: string | null | undefined;
|
|
1209
|
+
};
|
|
1210
|
+
id: string;
|
|
1211
|
+
userId: string;
|
|
1212
|
+
isRead: boolean;
|
|
1213
|
+
createdAt: string;
|
|
1214
|
+
} | {
|
|
1215
|
+
type: "entity-upvote";
|
|
1216
|
+
action: "open-entity";
|
|
1217
|
+
metadata: {
|
|
1218
|
+
entityId: string;
|
|
1219
|
+
entityShortId: string;
|
|
1220
|
+
entityTitle: string | null | undefined;
|
|
1221
|
+
entityContent: string | null | undefined;
|
|
1222
|
+
initiatorId: string;
|
|
1223
|
+
initiatorName: string | null | undefined;
|
|
1224
|
+
initiatorUsername: string | null | undefined;
|
|
1225
|
+
initiatorAvatar: string | null | undefined;
|
|
1226
|
+
};
|
|
1227
|
+
id: string;
|
|
1228
|
+
userId: string;
|
|
1229
|
+
isRead: boolean;
|
|
1230
|
+
createdAt: string;
|
|
1231
|
+
} | {
|
|
1232
|
+
type: "comment-upvote";
|
|
1233
|
+
action: "open-comment";
|
|
1234
|
+
metadata: {
|
|
1235
|
+
entityId: string;
|
|
1236
|
+
entityShortId: string;
|
|
1237
|
+
entityTitle: string | null | undefined;
|
|
1238
|
+
entityContent: string | null | undefined;
|
|
1239
|
+
commentId: string;
|
|
1240
|
+
commentContent: string | null | undefined;
|
|
1241
|
+
initiatorId: string;
|
|
1242
|
+
initiatorName: string | null | undefined;
|
|
1243
|
+
initiatorUsername: string | null | undefined;
|
|
1244
|
+
initiatorAvatar: string | null | undefined;
|
|
1245
|
+
};
|
|
1246
|
+
id: string;
|
|
1247
|
+
userId: string;
|
|
1248
|
+
isRead: boolean;
|
|
1249
|
+
createdAt: string;
|
|
1250
|
+
} | {
|
|
1251
|
+
type: "entity-reaction";
|
|
1252
|
+
action: "open-entity";
|
|
1253
|
+
metadata: {
|
|
1254
|
+
entityId: string;
|
|
1255
|
+
entityShortId: string;
|
|
1256
|
+
entityTitle: string | null | undefined;
|
|
1257
|
+
entityContent: string | null | undefined;
|
|
1258
|
+
reactionType: string;
|
|
1259
|
+
initiatorId: string;
|
|
1260
|
+
initiatorName: string | null | undefined;
|
|
1261
|
+
initiatorUsername: string | null | undefined;
|
|
1262
|
+
initiatorAvatar: string | null | undefined;
|
|
1263
|
+
};
|
|
1264
|
+
id: string;
|
|
1265
|
+
userId: string;
|
|
1266
|
+
isRead: boolean;
|
|
1267
|
+
createdAt: string;
|
|
1268
|
+
} | {
|
|
1269
|
+
type: "comment-reaction";
|
|
1270
|
+
action: "open-comment";
|
|
1271
|
+
metadata: {
|
|
1272
|
+
entityId: string;
|
|
1273
|
+
entityShortId: string;
|
|
1274
|
+
entityTitle: string | null | undefined;
|
|
1275
|
+
entityContent: string | null | undefined;
|
|
1276
|
+
commentId: string;
|
|
1277
|
+
commentContent: string | null | undefined;
|
|
1278
|
+
reactionType: string;
|
|
1279
|
+
initiatorId: string;
|
|
1280
|
+
initiatorName: string | null | undefined;
|
|
1281
|
+
initiatorUsername: string | null | undefined;
|
|
1282
|
+
initiatorAvatar: string | null | undefined;
|
|
1283
|
+
};
|
|
1284
|
+
id: string;
|
|
1285
|
+
userId: string;
|
|
1286
|
+
isRead: boolean;
|
|
1287
|
+
createdAt: string;
|
|
1288
|
+
} | {
|
|
1289
|
+
type: "entity-reaction-milestone-specific";
|
|
1290
|
+
action: "open-entity";
|
|
1291
|
+
metadata: {
|
|
1292
|
+
entityId: string;
|
|
1293
|
+
entityShortId: string;
|
|
1294
|
+
entityTitle: string | null | undefined;
|
|
1295
|
+
entityContent: string | null | undefined;
|
|
1296
|
+
reactionType: string;
|
|
1297
|
+
milestoneCount: number;
|
|
1298
|
+
lastThreeUsers: {
|
|
1299
|
+
id: string;
|
|
1300
|
+
name: string | null | undefined;
|
|
1301
|
+
username: string | null | undefined;
|
|
1302
|
+
avatar: string | null | undefined;
|
|
1303
|
+
}[];
|
|
1304
|
+
};
|
|
1305
|
+
id: string;
|
|
1306
|
+
userId: string;
|
|
1307
|
+
isRead: boolean;
|
|
1308
|
+
createdAt: string;
|
|
1309
|
+
} | {
|
|
1310
|
+
type: "entity-reaction-milestone-total";
|
|
1311
|
+
action: "open-entity";
|
|
1312
|
+
metadata: {
|
|
1313
|
+
entityId: string;
|
|
1314
|
+
entityShortId: string;
|
|
1315
|
+
entityTitle: string | null | undefined;
|
|
1316
|
+
entityContent: string | null | undefined;
|
|
1317
|
+
milestoneCount: number;
|
|
1318
|
+
reactionCounts: {
|
|
1319
|
+
[x: string]: number;
|
|
1320
|
+
};
|
|
1321
|
+
lastThreeUsers: {
|
|
1322
|
+
id: string;
|
|
1323
|
+
name: string | null | undefined;
|
|
1324
|
+
username: string | null | undefined;
|
|
1325
|
+
avatar: string | null | undefined;
|
|
1326
|
+
}[];
|
|
1327
|
+
};
|
|
1328
|
+
id: string;
|
|
1329
|
+
userId: string;
|
|
1330
|
+
isRead: boolean;
|
|
1331
|
+
createdAt: string;
|
|
1332
|
+
} | {
|
|
1333
|
+
type: "comment-reaction-milestone-specific";
|
|
1334
|
+
action: "open-comment";
|
|
1335
|
+
metadata: {
|
|
1336
|
+
entityId: string;
|
|
1337
|
+
entityShortId: string;
|
|
1338
|
+
entityTitle: string | null | undefined;
|
|
1339
|
+
entityContent: string | null | undefined;
|
|
1340
|
+
commentId: string;
|
|
1341
|
+
commentContent: string | null | undefined;
|
|
1342
|
+
reactionType: string;
|
|
1343
|
+
milestoneCount: number;
|
|
1344
|
+
lastThreeUsers: {
|
|
1345
|
+
id: string;
|
|
1346
|
+
name: string | null | undefined;
|
|
1347
|
+
username: string | null | undefined;
|
|
1348
|
+
avatar: string | null | undefined;
|
|
1349
|
+
}[];
|
|
1350
|
+
};
|
|
1351
|
+
id: string;
|
|
1352
|
+
userId: string;
|
|
1353
|
+
isRead: boolean;
|
|
1354
|
+
createdAt: string;
|
|
1355
|
+
} | {
|
|
1356
|
+
type: "comment-reaction-milestone-total";
|
|
1357
|
+
action: "open-comment";
|
|
1358
|
+
metadata: {
|
|
1359
|
+
entityId: string;
|
|
1360
|
+
entityShortId: string;
|
|
1361
|
+
entityTitle: string | null | undefined;
|
|
1362
|
+
entityContent: string | null | undefined;
|
|
1363
|
+
commentId: string;
|
|
1364
|
+
commentContent: string | null | undefined;
|
|
1365
|
+
milestoneCount: number;
|
|
1366
|
+
reactionCounts: {
|
|
1367
|
+
[x: string]: number;
|
|
1368
|
+
};
|
|
1369
|
+
lastThreeUsers: {
|
|
1370
|
+
id: string;
|
|
1371
|
+
name: string | null | undefined;
|
|
1372
|
+
username: string | null | undefined;
|
|
1373
|
+
avatar: string | null | undefined;
|
|
1374
|
+
}[];
|
|
1375
|
+
};
|
|
1376
|
+
id: string;
|
|
1377
|
+
userId: string;
|
|
1378
|
+
isRead: boolean;
|
|
1379
|
+
createdAt: string;
|
|
1380
|
+
} | {
|
|
1381
|
+
type: "new-follow";
|
|
1382
|
+
action: "open-profile";
|
|
1383
|
+
metadata: {
|
|
1384
|
+
initiatorId: string;
|
|
1385
|
+
initiatorName: string | null | undefined;
|
|
1386
|
+
initiatorUsername: string | null | undefined;
|
|
1387
|
+
initiatorAvatar: string | null | undefined;
|
|
1388
|
+
};
|
|
1389
|
+
id: string;
|
|
1390
|
+
userId: string;
|
|
1391
|
+
isRead: boolean;
|
|
1392
|
+
createdAt: string;
|
|
1393
|
+
} | {
|
|
1394
|
+
type: "connection-request";
|
|
1395
|
+
action: "open-profile";
|
|
1396
|
+
metadata: {
|
|
1397
|
+
connectionId: string;
|
|
1398
|
+
initiatorId: string;
|
|
1399
|
+
initiatorName: string | null | undefined;
|
|
1400
|
+
initiatorUsername: string | null | undefined;
|
|
1401
|
+
initiatorAvatar: string | null | undefined;
|
|
1402
|
+
};
|
|
1403
|
+
id: string;
|
|
1404
|
+
userId: string;
|
|
1405
|
+
isRead: boolean;
|
|
1406
|
+
createdAt: string;
|
|
1407
|
+
} | {
|
|
1408
|
+
type: "connection-accepted";
|
|
1409
|
+
action: "open-profile";
|
|
1410
|
+
metadata: {
|
|
1411
|
+
connectionId: string;
|
|
1412
|
+
initiatorId: string;
|
|
1413
|
+
initiatorName: string | null | undefined;
|
|
1414
|
+
initiatorUsername: string | null | undefined;
|
|
1415
|
+
initiatorAvatar: string | null | undefined;
|
|
1416
|
+
};
|
|
1417
|
+
id: string;
|
|
1418
|
+
userId: string;
|
|
1419
|
+
isRead: boolean;
|
|
1420
|
+
createdAt: string;
|
|
1421
|
+
})[];
|
|
1422
|
+
unreadCount: number;
|
|
1423
|
+
loading: boolean;
|
|
1424
|
+
hasMore: boolean;
|
|
1425
|
+
page: number;
|
|
1426
|
+
limit: number;
|
|
1427
|
+
notificationTemplates?: {
|
|
1428
|
+
entityComment?: {
|
|
1429
|
+
title?: string | undefined;
|
|
1430
|
+
content?: string | undefined;
|
|
1431
|
+
} | undefined;
|
|
1432
|
+
commentReply?: {
|
|
1433
|
+
title?: string | undefined;
|
|
1434
|
+
content?: string | undefined;
|
|
1435
|
+
} | undefined;
|
|
1436
|
+
entityMention?: {
|
|
1437
|
+
title?: string | undefined;
|
|
1438
|
+
content?: string | undefined;
|
|
1439
|
+
} | undefined;
|
|
1440
|
+
commentMention?: {
|
|
1441
|
+
title?: string | undefined;
|
|
1442
|
+
content?: string | undefined;
|
|
1443
|
+
} | undefined;
|
|
1444
|
+
entityUpvote?: {
|
|
1445
|
+
title?: string | undefined;
|
|
1446
|
+
content?: string | undefined;
|
|
1447
|
+
} | undefined;
|
|
1448
|
+
commentUpvote?: {
|
|
1449
|
+
title?: string | undefined;
|
|
1450
|
+
content?: string | undefined;
|
|
1451
|
+
} | undefined;
|
|
1452
|
+
entityReaction?: {
|
|
1453
|
+
title?: string | undefined;
|
|
1454
|
+
content?: string | undefined;
|
|
1455
|
+
} | undefined;
|
|
1456
|
+
commentReaction?: {
|
|
1457
|
+
title?: string | undefined;
|
|
1458
|
+
content?: string | undefined;
|
|
1459
|
+
} | undefined;
|
|
1460
|
+
entityReactionMilestoneSpecific?: {
|
|
1461
|
+
title?: string | undefined;
|
|
1462
|
+
content?: string | undefined;
|
|
1463
|
+
} | undefined;
|
|
1464
|
+
entityReactionMilestoneTotal?: {
|
|
1465
|
+
title?: string | undefined;
|
|
1466
|
+
content?: string | undefined;
|
|
1467
|
+
} | undefined;
|
|
1468
|
+
commentReactionMilestoneSpecific?: {
|
|
1469
|
+
title?: string | undefined;
|
|
1470
|
+
content?: string | undefined;
|
|
1471
|
+
} | undefined;
|
|
1472
|
+
commentReactionMilestoneTotal?: {
|
|
1473
|
+
title?: string | undefined;
|
|
1474
|
+
content?: string | undefined;
|
|
1475
|
+
} | undefined;
|
|
1476
|
+
newFollow?: {
|
|
1477
|
+
title?: string | undefined;
|
|
1478
|
+
content?: string | undefined;
|
|
1479
|
+
} | undefined;
|
|
1480
|
+
connectionRequest?: {
|
|
1481
|
+
title?: string | undefined;
|
|
1482
|
+
content?: string | undefined;
|
|
1483
|
+
} | undefined;
|
|
1484
|
+
connectionAccepted?: {
|
|
1485
|
+
title?: string | undefined;
|
|
1486
|
+
content?: string | undefined;
|
|
1487
|
+
} | undefined;
|
|
1488
|
+
} | undefined;
|
|
1489
|
+
currentProjectId?: string | undefined;
|
|
1490
|
+
}) => void;
|
|
1491
|
+
loadMore: (state: {
|
|
1492
|
+
notifications: ({
|
|
1493
|
+
type: "system";
|
|
1494
|
+
action: string;
|
|
1495
|
+
metadata: {
|
|
1496
|
+
title?: string | undefined;
|
|
1497
|
+
content?: string | undefined;
|
|
1498
|
+
buttonData: {
|
|
1499
|
+
text: string;
|
|
1500
|
+
url: string;
|
|
1501
|
+
} | null;
|
|
1502
|
+
};
|
|
1503
|
+
id: string;
|
|
1504
|
+
userId: string;
|
|
1505
|
+
isRead: boolean;
|
|
1506
|
+
createdAt: string;
|
|
1507
|
+
} | {
|
|
1508
|
+
type: "entity-comment";
|
|
1509
|
+
action: "open-comment";
|
|
1510
|
+
metadata: {
|
|
1511
|
+
entityId: string;
|
|
1512
|
+
entityShortId: string;
|
|
1513
|
+
entityTitle: string | null | undefined;
|
|
1514
|
+
entityContent: string | null | undefined;
|
|
1515
|
+
commentId: string;
|
|
1516
|
+
commentContent: string | null | undefined;
|
|
1517
|
+
initiatorId: string;
|
|
1518
|
+
initiatorName: string | null | undefined;
|
|
1519
|
+
initiatorUsername: string | null | undefined;
|
|
1520
|
+
initiatorAvatar: string | null | undefined;
|
|
1521
|
+
};
|
|
1522
|
+
id: string;
|
|
1523
|
+
userId: string;
|
|
1524
|
+
isRead: boolean;
|
|
1525
|
+
createdAt: string;
|
|
1526
|
+
} | {
|
|
1527
|
+
type: "comment-reply";
|
|
1528
|
+
action: "open-comment";
|
|
1529
|
+
metadata: {
|
|
1530
|
+
entityId: string;
|
|
1531
|
+
entityShortId: string;
|
|
1532
|
+
entityTitle: string | null | undefined;
|
|
1533
|
+
entityContent: string | null | undefined;
|
|
1534
|
+
commentId: string;
|
|
1535
|
+
commentContent: string | null | undefined;
|
|
1536
|
+
replyId: string;
|
|
1537
|
+
replyContent: string | null | undefined;
|
|
1538
|
+
initiatorId: string;
|
|
1539
|
+
initiatorName: string | null | undefined;
|
|
1540
|
+
initiatorUsername: string | null | undefined;
|
|
1541
|
+
initiatorAvatar: string | null | undefined;
|
|
1542
|
+
};
|
|
1543
|
+
id: string;
|
|
1544
|
+
userId: string;
|
|
1545
|
+
isRead: boolean;
|
|
1546
|
+
createdAt: string;
|
|
1547
|
+
} | {
|
|
1548
|
+
type: "entity-mention";
|
|
1549
|
+
action: "open-entity";
|
|
1550
|
+
metadata: {
|
|
1551
|
+
entityId: string;
|
|
1552
|
+
entityShortId: string;
|
|
1553
|
+
entityTitle: string | null | undefined;
|
|
1554
|
+
entityContent: string | null | undefined;
|
|
1555
|
+
initiatorId: string;
|
|
1556
|
+
initiatorName: string | null | undefined;
|
|
1557
|
+
initiatorUsername: string | null | undefined;
|
|
1558
|
+
initiatorAvatar: string | null | undefined;
|
|
1559
|
+
};
|
|
1560
|
+
id: string;
|
|
1561
|
+
userId: string;
|
|
1562
|
+
isRead: boolean;
|
|
1563
|
+
createdAt: string;
|
|
1564
|
+
} | {
|
|
1565
|
+
type: "comment-mention";
|
|
1566
|
+
action: "open-comment";
|
|
1567
|
+
metadata: {
|
|
1568
|
+
entityId: string;
|
|
1569
|
+
entityShortId: string;
|
|
1570
|
+
entityTitle: string | null | undefined;
|
|
1571
|
+
entityContent: string | null | undefined;
|
|
1572
|
+
commentId: string;
|
|
1573
|
+
commentContent: string | null | undefined;
|
|
1574
|
+
initiatorId: string;
|
|
1575
|
+
initiatorName: string | null | undefined;
|
|
1576
|
+
initiatorUsername: string | null | undefined;
|
|
1577
|
+
initiatorAvatar: string | null | undefined;
|
|
1578
|
+
};
|
|
1579
|
+
id: string;
|
|
1580
|
+
userId: string;
|
|
1581
|
+
isRead: boolean;
|
|
1582
|
+
createdAt: string;
|
|
1583
|
+
} | {
|
|
1584
|
+
type: "entity-upvote";
|
|
1585
|
+
action: "open-entity";
|
|
1586
|
+
metadata: {
|
|
1587
|
+
entityId: string;
|
|
1588
|
+
entityShortId: string;
|
|
1589
|
+
entityTitle: string | null | undefined;
|
|
1590
|
+
entityContent: string | null | undefined;
|
|
1591
|
+
initiatorId: string;
|
|
1592
|
+
initiatorName: string | null | undefined;
|
|
1593
|
+
initiatorUsername: string | null | undefined;
|
|
1594
|
+
initiatorAvatar: string | null | undefined;
|
|
1595
|
+
};
|
|
1596
|
+
id: string;
|
|
1597
|
+
userId: string;
|
|
1598
|
+
isRead: boolean;
|
|
1599
|
+
createdAt: string;
|
|
1600
|
+
} | {
|
|
1601
|
+
type: "comment-upvote";
|
|
1602
|
+
action: "open-comment";
|
|
1603
|
+
metadata: {
|
|
1604
|
+
entityId: string;
|
|
1605
|
+
entityShortId: string;
|
|
1606
|
+
entityTitle: string | null | undefined;
|
|
1607
|
+
entityContent: string | null | undefined;
|
|
1608
|
+
commentId: string;
|
|
1609
|
+
commentContent: string | null | undefined;
|
|
1610
|
+
initiatorId: string;
|
|
1611
|
+
initiatorName: string | null | undefined;
|
|
1612
|
+
initiatorUsername: string | null | undefined;
|
|
1613
|
+
initiatorAvatar: string | null | undefined;
|
|
1614
|
+
};
|
|
1615
|
+
id: string;
|
|
1616
|
+
userId: string;
|
|
1617
|
+
isRead: boolean;
|
|
1618
|
+
createdAt: string;
|
|
1619
|
+
} | {
|
|
1620
|
+
type: "entity-reaction";
|
|
1621
|
+
action: "open-entity";
|
|
678
1622
|
metadata: {
|
|
679
1623
|
entityId: string;
|
|
680
1624
|
entityShortId: string;
|
|
681
1625
|
entityTitle: string | null | undefined;
|
|
682
1626
|
entityContent: string | null | undefined;
|
|
683
|
-
|
|
684
|
-
commentContent: string | null | undefined;
|
|
1627
|
+
reactionType: string;
|
|
685
1628
|
initiatorId: string;
|
|
686
1629
|
initiatorName: string | null | undefined;
|
|
687
1630
|
initiatorUsername: string | null | undefined;
|
|
@@ -692,7 +1635,7 @@ export declare const appNotificationsSlice: import("@reduxjs/toolkit").Slice<App
|
|
|
692
1635
|
isRead: boolean;
|
|
693
1636
|
createdAt: string;
|
|
694
1637
|
} | {
|
|
695
|
-
type: "comment-
|
|
1638
|
+
type: "comment-reaction";
|
|
696
1639
|
action: "open-comment";
|
|
697
1640
|
metadata: {
|
|
698
1641
|
entityId: string;
|
|
@@ -701,8 +1644,7 @@ export declare const appNotificationsSlice: import("@reduxjs/toolkit").Slice<App
|
|
|
701
1644
|
entityContent: string | null | undefined;
|
|
702
1645
|
commentId: string;
|
|
703
1646
|
commentContent: string | null | undefined;
|
|
704
|
-
|
|
705
|
-
replyContent: string | null | undefined;
|
|
1647
|
+
reactionType: string;
|
|
706
1648
|
initiatorId: string;
|
|
707
1649
|
initiatorName: string | null | undefined;
|
|
708
1650
|
initiatorUsername: string | null | undefined;
|
|
@@ -713,60 +1655,74 @@ export declare const appNotificationsSlice: import("@reduxjs/toolkit").Slice<App
|
|
|
713
1655
|
isRead: boolean;
|
|
714
1656
|
createdAt: string;
|
|
715
1657
|
} | {
|
|
716
|
-
type: "entity-
|
|
1658
|
+
type: "entity-reaction-milestone-specific";
|
|
717
1659
|
action: "open-entity";
|
|
718
1660
|
metadata: {
|
|
719
1661
|
entityId: string;
|
|
720
1662
|
entityShortId: string;
|
|
721
1663
|
entityTitle: string | null | undefined;
|
|
722
1664
|
entityContent: string | null | undefined;
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
1665
|
+
reactionType: string;
|
|
1666
|
+
milestoneCount: number;
|
|
1667
|
+
lastThreeUsers: {
|
|
1668
|
+
id: string;
|
|
1669
|
+
name: string | null | undefined;
|
|
1670
|
+
username: string | null | undefined;
|
|
1671
|
+
avatar: string | null | undefined;
|
|
1672
|
+
}[];
|
|
727
1673
|
};
|
|
728
1674
|
id: string;
|
|
729
1675
|
userId: string;
|
|
730
1676
|
isRead: boolean;
|
|
731
1677
|
createdAt: string;
|
|
732
1678
|
} | {
|
|
733
|
-
type: "
|
|
734
|
-
action: "open-
|
|
1679
|
+
type: "entity-reaction-milestone-total";
|
|
1680
|
+
action: "open-entity";
|
|
735
1681
|
metadata: {
|
|
736
1682
|
entityId: string;
|
|
737
1683
|
entityShortId: string;
|
|
738
1684
|
entityTitle: string | null | undefined;
|
|
739
1685
|
entityContent: string | null | undefined;
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
1686
|
+
milestoneCount: number;
|
|
1687
|
+
reactionCounts: {
|
|
1688
|
+
[x: string]: number;
|
|
1689
|
+
};
|
|
1690
|
+
lastThreeUsers: {
|
|
1691
|
+
id: string;
|
|
1692
|
+
name: string | null | undefined;
|
|
1693
|
+
username: string | null | undefined;
|
|
1694
|
+
avatar: string | null | undefined;
|
|
1695
|
+
}[];
|
|
746
1696
|
};
|
|
747
1697
|
id: string;
|
|
748
1698
|
userId: string;
|
|
749
1699
|
isRead: boolean;
|
|
750
1700
|
createdAt: string;
|
|
751
1701
|
} | {
|
|
752
|
-
type: "
|
|
753
|
-
action: "open-
|
|
1702
|
+
type: "comment-reaction-milestone-specific";
|
|
1703
|
+
action: "open-comment";
|
|
754
1704
|
metadata: {
|
|
755
1705
|
entityId: string;
|
|
756
1706
|
entityShortId: string;
|
|
757
1707
|
entityTitle: string | null | undefined;
|
|
758
1708
|
entityContent: string | null | undefined;
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
1709
|
+
commentId: string;
|
|
1710
|
+
commentContent: string | null | undefined;
|
|
1711
|
+
reactionType: string;
|
|
1712
|
+
milestoneCount: number;
|
|
1713
|
+
lastThreeUsers: {
|
|
1714
|
+
id: string;
|
|
1715
|
+
name: string | null | undefined;
|
|
1716
|
+
username: string | null | undefined;
|
|
1717
|
+
avatar: string | null | undefined;
|
|
1718
|
+
}[];
|
|
763
1719
|
};
|
|
764
1720
|
id: string;
|
|
765
1721
|
userId: string;
|
|
766
1722
|
isRead: boolean;
|
|
767
1723
|
createdAt: string;
|
|
768
1724
|
} | {
|
|
769
|
-
type: "comment-
|
|
1725
|
+
type: "comment-reaction-milestone-total";
|
|
770
1726
|
action: "open-comment";
|
|
771
1727
|
metadata: {
|
|
772
1728
|
entityId: string;
|
|
@@ -775,10 +1731,16 @@ export declare const appNotificationsSlice: import("@reduxjs/toolkit").Slice<App
|
|
|
775
1731
|
entityContent: string | null | undefined;
|
|
776
1732
|
commentId: string;
|
|
777
1733
|
commentContent: string | null | undefined;
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
1734
|
+
milestoneCount: number;
|
|
1735
|
+
reactionCounts: {
|
|
1736
|
+
[x: string]: number;
|
|
1737
|
+
};
|
|
1738
|
+
lastThreeUsers: {
|
|
1739
|
+
id: string;
|
|
1740
|
+
name: string | null | undefined;
|
|
1741
|
+
username: string | null | undefined;
|
|
1742
|
+
avatar: string | null | undefined;
|
|
1743
|
+
}[];
|
|
782
1744
|
};
|
|
783
1745
|
id: string;
|
|
784
1746
|
userId: string;
|
|
@@ -856,6 +1818,30 @@ export declare const appNotificationsSlice: import("@reduxjs/toolkit").Slice<App
|
|
|
856
1818
|
title?: string | undefined;
|
|
857
1819
|
content?: string | undefined;
|
|
858
1820
|
} | undefined;
|
|
1821
|
+
entityReaction?: {
|
|
1822
|
+
title?: string | undefined;
|
|
1823
|
+
content?: string | undefined;
|
|
1824
|
+
} | undefined;
|
|
1825
|
+
commentReaction?: {
|
|
1826
|
+
title?: string | undefined;
|
|
1827
|
+
content?: string | undefined;
|
|
1828
|
+
} | undefined;
|
|
1829
|
+
entityReactionMilestoneSpecific?: {
|
|
1830
|
+
title?: string | undefined;
|
|
1831
|
+
content?: string | undefined;
|
|
1832
|
+
} | undefined;
|
|
1833
|
+
entityReactionMilestoneTotal?: {
|
|
1834
|
+
title?: string | undefined;
|
|
1835
|
+
content?: string | undefined;
|
|
1836
|
+
} | undefined;
|
|
1837
|
+
commentReactionMilestoneSpecific?: {
|
|
1838
|
+
title?: string | undefined;
|
|
1839
|
+
content?: string | undefined;
|
|
1840
|
+
} | undefined;
|
|
1841
|
+
commentReactionMilestoneTotal?: {
|
|
1842
|
+
title?: string | undefined;
|
|
1843
|
+
content?: string | undefined;
|
|
1844
|
+
} | undefined;
|
|
859
1845
|
newFollow?: {
|
|
860
1846
|
title?: string | undefined;
|
|
861
1847
|
content?: string | undefined;
|
|
@@ -871,7 +1857,7 @@ export declare const appNotificationsSlice: import("@reduxjs/toolkit").Slice<App
|
|
|
871
1857
|
} | undefined;
|
|
872
1858
|
currentProjectId?: string | undefined;
|
|
873
1859
|
}) => void;
|
|
874
|
-
|
|
1860
|
+
setLoading: (state: {
|
|
875
1861
|
notifications: ({
|
|
876
1862
|
type: "system";
|
|
877
1863
|
action: string;
|
|
@@ -999,6 +1985,136 @@ export declare const appNotificationsSlice: import("@reduxjs/toolkit").Slice<App
|
|
|
999
1985
|
userId: string;
|
|
1000
1986
|
isRead: boolean;
|
|
1001
1987
|
createdAt: string;
|
|
1988
|
+
} | {
|
|
1989
|
+
type: "entity-reaction";
|
|
1990
|
+
action: "open-entity";
|
|
1991
|
+
metadata: {
|
|
1992
|
+
entityId: string;
|
|
1993
|
+
entityShortId: string;
|
|
1994
|
+
entityTitle: string | null | undefined;
|
|
1995
|
+
entityContent: string | null | undefined;
|
|
1996
|
+
reactionType: string;
|
|
1997
|
+
initiatorId: string;
|
|
1998
|
+
initiatorName: string | null | undefined;
|
|
1999
|
+
initiatorUsername: string | null | undefined;
|
|
2000
|
+
initiatorAvatar: string | null | undefined;
|
|
2001
|
+
};
|
|
2002
|
+
id: string;
|
|
2003
|
+
userId: string;
|
|
2004
|
+
isRead: boolean;
|
|
2005
|
+
createdAt: string;
|
|
2006
|
+
} | {
|
|
2007
|
+
type: "comment-reaction";
|
|
2008
|
+
action: "open-comment";
|
|
2009
|
+
metadata: {
|
|
2010
|
+
entityId: string;
|
|
2011
|
+
entityShortId: string;
|
|
2012
|
+
entityTitle: string | null | undefined;
|
|
2013
|
+
entityContent: string | null | undefined;
|
|
2014
|
+
commentId: string;
|
|
2015
|
+
commentContent: string | null | undefined;
|
|
2016
|
+
reactionType: string;
|
|
2017
|
+
initiatorId: string;
|
|
2018
|
+
initiatorName: string | null | undefined;
|
|
2019
|
+
initiatorUsername: string | null | undefined;
|
|
2020
|
+
initiatorAvatar: string | null | undefined;
|
|
2021
|
+
};
|
|
2022
|
+
id: string;
|
|
2023
|
+
userId: string;
|
|
2024
|
+
isRead: boolean;
|
|
2025
|
+
createdAt: string;
|
|
2026
|
+
} | {
|
|
2027
|
+
type: "entity-reaction-milestone-specific";
|
|
2028
|
+
action: "open-entity";
|
|
2029
|
+
metadata: {
|
|
2030
|
+
entityId: string;
|
|
2031
|
+
entityShortId: string;
|
|
2032
|
+
entityTitle: string | null | undefined;
|
|
2033
|
+
entityContent: string | null | undefined;
|
|
2034
|
+
reactionType: string;
|
|
2035
|
+
milestoneCount: number;
|
|
2036
|
+
lastThreeUsers: {
|
|
2037
|
+
id: string;
|
|
2038
|
+
name: string | null | undefined;
|
|
2039
|
+
username: string | null | undefined;
|
|
2040
|
+
avatar: string | null | undefined;
|
|
2041
|
+
}[];
|
|
2042
|
+
};
|
|
2043
|
+
id: string;
|
|
2044
|
+
userId: string;
|
|
2045
|
+
isRead: boolean;
|
|
2046
|
+
createdAt: string;
|
|
2047
|
+
} | {
|
|
2048
|
+
type: "entity-reaction-milestone-total";
|
|
2049
|
+
action: "open-entity";
|
|
2050
|
+
metadata: {
|
|
2051
|
+
entityId: string;
|
|
2052
|
+
entityShortId: string;
|
|
2053
|
+
entityTitle: string | null | undefined;
|
|
2054
|
+
entityContent: string | null | undefined;
|
|
2055
|
+
milestoneCount: number;
|
|
2056
|
+
reactionCounts: {
|
|
2057
|
+
[x: string]: number;
|
|
2058
|
+
};
|
|
2059
|
+
lastThreeUsers: {
|
|
2060
|
+
id: string;
|
|
2061
|
+
name: string | null | undefined;
|
|
2062
|
+
username: string | null | undefined;
|
|
2063
|
+
avatar: string | null | undefined;
|
|
2064
|
+
}[];
|
|
2065
|
+
};
|
|
2066
|
+
id: string;
|
|
2067
|
+
userId: string;
|
|
2068
|
+
isRead: boolean;
|
|
2069
|
+
createdAt: string;
|
|
2070
|
+
} | {
|
|
2071
|
+
type: "comment-reaction-milestone-specific";
|
|
2072
|
+
action: "open-comment";
|
|
2073
|
+
metadata: {
|
|
2074
|
+
entityId: string;
|
|
2075
|
+
entityShortId: string;
|
|
2076
|
+
entityTitle: string | null | undefined;
|
|
2077
|
+
entityContent: string | null | undefined;
|
|
2078
|
+
commentId: string;
|
|
2079
|
+
commentContent: string | null | undefined;
|
|
2080
|
+
reactionType: string;
|
|
2081
|
+
milestoneCount: number;
|
|
2082
|
+
lastThreeUsers: {
|
|
2083
|
+
id: string;
|
|
2084
|
+
name: string | null | undefined;
|
|
2085
|
+
username: string | null | undefined;
|
|
2086
|
+
avatar: string | null | undefined;
|
|
2087
|
+
}[];
|
|
2088
|
+
};
|
|
2089
|
+
id: string;
|
|
2090
|
+
userId: string;
|
|
2091
|
+
isRead: boolean;
|
|
2092
|
+
createdAt: string;
|
|
2093
|
+
} | {
|
|
2094
|
+
type: "comment-reaction-milestone-total";
|
|
2095
|
+
action: "open-comment";
|
|
2096
|
+
metadata: {
|
|
2097
|
+
entityId: string;
|
|
2098
|
+
entityShortId: string;
|
|
2099
|
+
entityTitle: string | null | undefined;
|
|
2100
|
+
entityContent: string | null | undefined;
|
|
2101
|
+
commentId: string;
|
|
2102
|
+
commentContent: string | null | undefined;
|
|
2103
|
+
milestoneCount: number;
|
|
2104
|
+
reactionCounts: {
|
|
2105
|
+
[x: string]: number;
|
|
2106
|
+
};
|
|
2107
|
+
lastThreeUsers: {
|
|
2108
|
+
id: string;
|
|
2109
|
+
name: string | null | undefined;
|
|
2110
|
+
username: string | null | undefined;
|
|
2111
|
+
avatar: string | null | undefined;
|
|
2112
|
+
}[];
|
|
2113
|
+
};
|
|
2114
|
+
id: string;
|
|
2115
|
+
userId: string;
|
|
2116
|
+
isRead: boolean;
|
|
2117
|
+
createdAt: string;
|
|
1002
2118
|
} | {
|
|
1003
2119
|
type: "new-follow";
|
|
1004
2120
|
action: "open-profile";
|
|
@@ -1071,6 +2187,30 @@ export declare const appNotificationsSlice: import("@reduxjs/toolkit").Slice<App
|
|
|
1071
2187
|
title?: string | undefined;
|
|
1072
2188
|
content?: string | undefined;
|
|
1073
2189
|
} | undefined;
|
|
2190
|
+
entityReaction?: {
|
|
2191
|
+
title?: string | undefined;
|
|
2192
|
+
content?: string | undefined;
|
|
2193
|
+
} | undefined;
|
|
2194
|
+
commentReaction?: {
|
|
2195
|
+
title?: string | undefined;
|
|
2196
|
+
content?: string | undefined;
|
|
2197
|
+
} | undefined;
|
|
2198
|
+
entityReactionMilestoneSpecific?: {
|
|
2199
|
+
title?: string | undefined;
|
|
2200
|
+
content?: string | undefined;
|
|
2201
|
+
} | undefined;
|
|
2202
|
+
entityReactionMilestoneTotal?: {
|
|
2203
|
+
title?: string | undefined;
|
|
2204
|
+
content?: string | undefined;
|
|
2205
|
+
} | undefined;
|
|
2206
|
+
commentReactionMilestoneSpecific?: {
|
|
2207
|
+
title?: string | undefined;
|
|
2208
|
+
content?: string | undefined;
|
|
2209
|
+
} | undefined;
|
|
2210
|
+
commentReactionMilestoneTotal?: {
|
|
2211
|
+
title?: string | undefined;
|
|
2212
|
+
content?: string | undefined;
|
|
2213
|
+
} | undefined;
|
|
1074
2214
|
newFollow?: {
|
|
1075
2215
|
title?: string | undefined;
|
|
1076
2216
|
content?: string | undefined;
|
|
@@ -1085,8 +2225,8 @@ export declare const appNotificationsSlice: import("@reduxjs/toolkit").Slice<App
|
|
|
1085
2225
|
} | undefined;
|
|
1086
2226
|
} | undefined;
|
|
1087
2227
|
currentProjectId?: string | undefined;
|
|
1088
|
-
}) => void;
|
|
1089
|
-
|
|
2228
|
+
}, action: PayloadAction<boolean>) => void;
|
|
2229
|
+
addNotifications: (state: {
|
|
1090
2230
|
notifications: ({
|
|
1091
2231
|
type: "system";
|
|
1092
2232
|
action: string;
|
|
@@ -1196,7 +2336,131 @@ export declare const appNotificationsSlice: import("@reduxjs/toolkit").Slice<App
|
|
|
1196
2336
|
isRead: boolean;
|
|
1197
2337
|
createdAt: string;
|
|
1198
2338
|
} | {
|
|
1199
|
-
type: "comment-upvote";
|
|
2339
|
+
type: "comment-upvote";
|
|
2340
|
+
action: "open-comment";
|
|
2341
|
+
metadata: {
|
|
2342
|
+
entityId: string;
|
|
2343
|
+
entityShortId: string;
|
|
2344
|
+
entityTitle: string | null | undefined;
|
|
2345
|
+
entityContent: string | null | undefined;
|
|
2346
|
+
commentId: string;
|
|
2347
|
+
commentContent: string | null | undefined;
|
|
2348
|
+
initiatorId: string;
|
|
2349
|
+
initiatorName: string | null | undefined;
|
|
2350
|
+
initiatorUsername: string | null | undefined;
|
|
2351
|
+
initiatorAvatar: string | null | undefined;
|
|
2352
|
+
};
|
|
2353
|
+
id: string;
|
|
2354
|
+
userId: string;
|
|
2355
|
+
isRead: boolean;
|
|
2356
|
+
createdAt: string;
|
|
2357
|
+
} | {
|
|
2358
|
+
type: "entity-reaction";
|
|
2359
|
+
action: "open-entity";
|
|
2360
|
+
metadata: {
|
|
2361
|
+
entityId: string;
|
|
2362
|
+
entityShortId: string;
|
|
2363
|
+
entityTitle: string | null | undefined;
|
|
2364
|
+
entityContent: string | null | undefined;
|
|
2365
|
+
reactionType: string;
|
|
2366
|
+
initiatorId: string;
|
|
2367
|
+
initiatorName: string | null | undefined;
|
|
2368
|
+
initiatorUsername: string | null | undefined;
|
|
2369
|
+
initiatorAvatar: string | null | undefined;
|
|
2370
|
+
};
|
|
2371
|
+
id: string;
|
|
2372
|
+
userId: string;
|
|
2373
|
+
isRead: boolean;
|
|
2374
|
+
createdAt: string;
|
|
2375
|
+
} | {
|
|
2376
|
+
type: "comment-reaction";
|
|
2377
|
+
action: "open-comment";
|
|
2378
|
+
metadata: {
|
|
2379
|
+
entityId: string;
|
|
2380
|
+
entityShortId: string;
|
|
2381
|
+
entityTitle: string | null | undefined;
|
|
2382
|
+
entityContent: string | null | undefined;
|
|
2383
|
+
commentId: string;
|
|
2384
|
+
commentContent: string | null | undefined;
|
|
2385
|
+
reactionType: string;
|
|
2386
|
+
initiatorId: string;
|
|
2387
|
+
initiatorName: string | null | undefined;
|
|
2388
|
+
initiatorUsername: string | null | undefined;
|
|
2389
|
+
initiatorAvatar: string | null | undefined;
|
|
2390
|
+
};
|
|
2391
|
+
id: string;
|
|
2392
|
+
userId: string;
|
|
2393
|
+
isRead: boolean;
|
|
2394
|
+
createdAt: string;
|
|
2395
|
+
} | {
|
|
2396
|
+
type: "entity-reaction-milestone-specific";
|
|
2397
|
+
action: "open-entity";
|
|
2398
|
+
metadata: {
|
|
2399
|
+
entityId: string;
|
|
2400
|
+
entityShortId: string;
|
|
2401
|
+
entityTitle: string | null | undefined;
|
|
2402
|
+
entityContent: string | null | undefined;
|
|
2403
|
+
reactionType: string;
|
|
2404
|
+
milestoneCount: number;
|
|
2405
|
+
lastThreeUsers: {
|
|
2406
|
+
id: string;
|
|
2407
|
+
name: string | null | undefined;
|
|
2408
|
+
username: string | null | undefined;
|
|
2409
|
+
avatar: string | null | undefined;
|
|
2410
|
+
}[];
|
|
2411
|
+
};
|
|
2412
|
+
id: string;
|
|
2413
|
+
userId: string;
|
|
2414
|
+
isRead: boolean;
|
|
2415
|
+
createdAt: string;
|
|
2416
|
+
} | {
|
|
2417
|
+
type: "entity-reaction-milestone-total";
|
|
2418
|
+
action: "open-entity";
|
|
2419
|
+
metadata: {
|
|
2420
|
+
entityId: string;
|
|
2421
|
+
entityShortId: string;
|
|
2422
|
+
entityTitle: string | null | undefined;
|
|
2423
|
+
entityContent: string | null | undefined;
|
|
2424
|
+
milestoneCount: number;
|
|
2425
|
+
reactionCounts: {
|
|
2426
|
+
[x: string]: number;
|
|
2427
|
+
};
|
|
2428
|
+
lastThreeUsers: {
|
|
2429
|
+
id: string;
|
|
2430
|
+
name: string | null | undefined;
|
|
2431
|
+
username: string | null | undefined;
|
|
2432
|
+
avatar: string | null | undefined;
|
|
2433
|
+
}[];
|
|
2434
|
+
};
|
|
2435
|
+
id: string;
|
|
2436
|
+
userId: string;
|
|
2437
|
+
isRead: boolean;
|
|
2438
|
+
createdAt: string;
|
|
2439
|
+
} | {
|
|
2440
|
+
type: "comment-reaction-milestone-specific";
|
|
2441
|
+
action: "open-comment";
|
|
2442
|
+
metadata: {
|
|
2443
|
+
entityId: string;
|
|
2444
|
+
entityShortId: string;
|
|
2445
|
+
entityTitle: string | null | undefined;
|
|
2446
|
+
entityContent: string | null | undefined;
|
|
2447
|
+
commentId: string;
|
|
2448
|
+
commentContent: string | null | undefined;
|
|
2449
|
+
reactionType: string;
|
|
2450
|
+
milestoneCount: number;
|
|
2451
|
+
lastThreeUsers: {
|
|
2452
|
+
id: string;
|
|
2453
|
+
name: string | null | undefined;
|
|
2454
|
+
username: string | null | undefined;
|
|
2455
|
+
avatar: string | null | undefined;
|
|
2456
|
+
}[];
|
|
2457
|
+
};
|
|
2458
|
+
id: string;
|
|
2459
|
+
userId: string;
|
|
2460
|
+
isRead: boolean;
|
|
2461
|
+
createdAt: string;
|
|
2462
|
+
} | {
|
|
2463
|
+
type: "comment-reaction-milestone-total";
|
|
1200
2464
|
action: "open-comment";
|
|
1201
2465
|
metadata: {
|
|
1202
2466
|
entityId: string;
|
|
@@ -1205,10 +2469,16 @@ export declare const appNotificationsSlice: import("@reduxjs/toolkit").Slice<App
|
|
|
1205
2469
|
entityContent: string | null | undefined;
|
|
1206
2470
|
commentId: string;
|
|
1207
2471
|
commentContent: string | null | undefined;
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
2472
|
+
milestoneCount: number;
|
|
2473
|
+
reactionCounts: {
|
|
2474
|
+
[x: string]: number;
|
|
2475
|
+
};
|
|
2476
|
+
lastThreeUsers: {
|
|
2477
|
+
id: string;
|
|
2478
|
+
name: string | null | undefined;
|
|
2479
|
+
username: string | null | undefined;
|
|
2480
|
+
avatar: string | null | undefined;
|
|
2481
|
+
}[];
|
|
1212
2482
|
};
|
|
1213
2483
|
id: string;
|
|
1214
2484
|
userId: string;
|
|
@@ -1286,6 +2556,30 @@ export declare const appNotificationsSlice: import("@reduxjs/toolkit").Slice<App
|
|
|
1286
2556
|
title?: string | undefined;
|
|
1287
2557
|
content?: string | undefined;
|
|
1288
2558
|
} | undefined;
|
|
2559
|
+
entityReaction?: {
|
|
2560
|
+
title?: string | undefined;
|
|
2561
|
+
content?: string | undefined;
|
|
2562
|
+
} | undefined;
|
|
2563
|
+
commentReaction?: {
|
|
2564
|
+
title?: string | undefined;
|
|
2565
|
+
content?: string | undefined;
|
|
2566
|
+
} | undefined;
|
|
2567
|
+
entityReactionMilestoneSpecific?: {
|
|
2568
|
+
title?: string | undefined;
|
|
2569
|
+
content?: string | undefined;
|
|
2570
|
+
} | undefined;
|
|
2571
|
+
entityReactionMilestoneTotal?: {
|
|
2572
|
+
title?: string | undefined;
|
|
2573
|
+
content?: string | undefined;
|
|
2574
|
+
} | undefined;
|
|
2575
|
+
commentReactionMilestoneSpecific?: {
|
|
2576
|
+
title?: string | undefined;
|
|
2577
|
+
content?: string | undefined;
|
|
2578
|
+
} | undefined;
|
|
2579
|
+
commentReactionMilestoneTotal?: {
|
|
2580
|
+
title?: string | undefined;
|
|
2581
|
+
content?: string | undefined;
|
|
2582
|
+
} | undefined;
|
|
1289
2583
|
newFollow?: {
|
|
1290
2584
|
title?: string | undefined;
|
|
1291
2585
|
content?: string | undefined;
|
|
@@ -1300,8 +2594,12 @@ export declare const appNotificationsSlice: import("@reduxjs/toolkit").Slice<App
|
|
|
1300
2594
|
} | undefined;
|
|
1301
2595
|
} | undefined;
|
|
1302
2596
|
currentProjectId?: string | undefined;
|
|
1303
|
-
}, action: PayloadAction<
|
|
1304
|
-
|
|
2597
|
+
}, action: PayloadAction<{
|
|
2598
|
+
notifications: UnifiedAppNotification[];
|
|
2599
|
+
hasMore: boolean;
|
|
2600
|
+
isFirstPage?: boolean;
|
|
2601
|
+
}>) => void;
|
|
2602
|
+
markAsReadLocally: (state: {
|
|
1305
2603
|
notifications: ({
|
|
1306
2604
|
type: "system";
|
|
1307
2605
|
action: string;
|
|
@@ -1429,6 +2727,136 @@ export declare const appNotificationsSlice: import("@reduxjs/toolkit").Slice<App
|
|
|
1429
2727
|
userId: string;
|
|
1430
2728
|
isRead: boolean;
|
|
1431
2729
|
createdAt: string;
|
|
2730
|
+
} | {
|
|
2731
|
+
type: "entity-reaction";
|
|
2732
|
+
action: "open-entity";
|
|
2733
|
+
metadata: {
|
|
2734
|
+
entityId: string;
|
|
2735
|
+
entityShortId: string;
|
|
2736
|
+
entityTitle: string | null | undefined;
|
|
2737
|
+
entityContent: string | null | undefined;
|
|
2738
|
+
reactionType: string;
|
|
2739
|
+
initiatorId: string;
|
|
2740
|
+
initiatorName: string | null | undefined;
|
|
2741
|
+
initiatorUsername: string | null | undefined;
|
|
2742
|
+
initiatorAvatar: string | null | undefined;
|
|
2743
|
+
};
|
|
2744
|
+
id: string;
|
|
2745
|
+
userId: string;
|
|
2746
|
+
isRead: boolean;
|
|
2747
|
+
createdAt: string;
|
|
2748
|
+
} | {
|
|
2749
|
+
type: "comment-reaction";
|
|
2750
|
+
action: "open-comment";
|
|
2751
|
+
metadata: {
|
|
2752
|
+
entityId: string;
|
|
2753
|
+
entityShortId: string;
|
|
2754
|
+
entityTitle: string | null | undefined;
|
|
2755
|
+
entityContent: string | null | undefined;
|
|
2756
|
+
commentId: string;
|
|
2757
|
+
commentContent: string | null | undefined;
|
|
2758
|
+
reactionType: string;
|
|
2759
|
+
initiatorId: string;
|
|
2760
|
+
initiatorName: string | null | undefined;
|
|
2761
|
+
initiatorUsername: string | null | undefined;
|
|
2762
|
+
initiatorAvatar: string | null | undefined;
|
|
2763
|
+
};
|
|
2764
|
+
id: string;
|
|
2765
|
+
userId: string;
|
|
2766
|
+
isRead: boolean;
|
|
2767
|
+
createdAt: string;
|
|
2768
|
+
} | {
|
|
2769
|
+
type: "entity-reaction-milestone-specific";
|
|
2770
|
+
action: "open-entity";
|
|
2771
|
+
metadata: {
|
|
2772
|
+
entityId: string;
|
|
2773
|
+
entityShortId: string;
|
|
2774
|
+
entityTitle: string | null | undefined;
|
|
2775
|
+
entityContent: string | null | undefined;
|
|
2776
|
+
reactionType: string;
|
|
2777
|
+
milestoneCount: number;
|
|
2778
|
+
lastThreeUsers: {
|
|
2779
|
+
id: string;
|
|
2780
|
+
name: string | null | undefined;
|
|
2781
|
+
username: string | null | undefined;
|
|
2782
|
+
avatar: string | null | undefined;
|
|
2783
|
+
}[];
|
|
2784
|
+
};
|
|
2785
|
+
id: string;
|
|
2786
|
+
userId: string;
|
|
2787
|
+
isRead: boolean;
|
|
2788
|
+
createdAt: string;
|
|
2789
|
+
} | {
|
|
2790
|
+
type: "entity-reaction-milestone-total";
|
|
2791
|
+
action: "open-entity";
|
|
2792
|
+
metadata: {
|
|
2793
|
+
entityId: string;
|
|
2794
|
+
entityShortId: string;
|
|
2795
|
+
entityTitle: string | null | undefined;
|
|
2796
|
+
entityContent: string | null | undefined;
|
|
2797
|
+
milestoneCount: number;
|
|
2798
|
+
reactionCounts: {
|
|
2799
|
+
[x: string]: number;
|
|
2800
|
+
};
|
|
2801
|
+
lastThreeUsers: {
|
|
2802
|
+
id: string;
|
|
2803
|
+
name: string | null | undefined;
|
|
2804
|
+
username: string | null | undefined;
|
|
2805
|
+
avatar: string | null | undefined;
|
|
2806
|
+
}[];
|
|
2807
|
+
};
|
|
2808
|
+
id: string;
|
|
2809
|
+
userId: string;
|
|
2810
|
+
isRead: boolean;
|
|
2811
|
+
createdAt: string;
|
|
2812
|
+
} | {
|
|
2813
|
+
type: "comment-reaction-milestone-specific";
|
|
2814
|
+
action: "open-comment";
|
|
2815
|
+
metadata: {
|
|
2816
|
+
entityId: string;
|
|
2817
|
+
entityShortId: string;
|
|
2818
|
+
entityTitle: string | null | undefined;
|
|
2819
|
+
entityContent: string | null | undefined;
|
|
2820
|
+
commentId: string;
|
|
2821
|
+
commentContent: string | null | undefined;
|
|
2822
|
+
reactionType: string;
|
|
2823
|
+
milestoneCount: number;
|
|
2824
|
+
lastThreeUsers: {
|
|
2825
|
+
id: string;
|
|
2826
|
+
name: string | null | undefined;
|
|
2827
|
+
username: string | null | undefined;
|
|
2828
|
+
avatar: string | null | undefined;
|
|
2829
|
+
}[];
|
|
2830
|
+
};
|
|
2831
|
+
id: string;
|
|
2832
|
+
userId: string;
|
|
2833
|
+
isRead: boolean;
|
|
2834
|
+
createdAt: string;
|
|
2835
|
+
} | {
|
|
2836
|
+
type: "comment-reaction-milestone-total";
|
|
2837
|
+
action: "open-comment";
|
|
2838
|
+
metadata: {
|
|
2839
|
+
entityId: string;
|
|
2840
|
+
entityShortId: string;
|
|
2841
|
+
entityTitle: string | null | undefined;
|
|
2842
|
+
entityContent: string | null | undefined;
|
|
2843
|
+
commentId: string;
|
|
2844
|
+
commentContent: string | null | undefined;
|
|
2845
|
+
milestoneCount: number;
|
|
2846
|
+
reactionCounts: {
|
|
2847
|
+
[x: string]: number;
|
|
2848
|
+
};
|
|
2849
|
+
lastThreeUsers: {
|
|
2850
|
+
id: string;
|
|
2851
|
+
name: string | null | undefined;
|
|
2852
|
+
username: string | null | undefined;
|
|
2853
|
+
avatar: string | null | undefined;
|
|
2854
|
+
}[];
|
|
2855
|
+
};
|
|
2856
|
+
id: string;
|
|
2857
|
+
userId: string;
|
|
2858
|
+
isRead: boolean;
|
|
2859
|
+
createdAt: string;
|
|
1432
2860
|
} | {
|
|
1433
2861
|
type: "new-follow";
|
|
1434
2862
|
action: "open-profile";
|
|
@@ -1501,6 +2929,30 @@ export declare const appNotificationsSlice: import("@reduxjs/toolkit").Slice<App
|
|
|
1501
2929
|
title?: string | undefined;
|
|
1502
2930
|
content?: string | undefined;
|
|
1503
2931
|
} | undefined;
|
|
2932
|
+
entityReaction?: {
|
|
2933
|
+
title?: string | undefined;
|
|
2934
|
+
content?: string | undefined;
|
|
2935
|
+
} | undefined;
|
|
2936
|
+
commentReaction?: {
|
|
2937
|
+
title?: string | undefined;
|
|
2938
|
+
content?: string | undefined;
|
|
2939
|
+
} | undefined;
|
|
2940
|
+
entityReactionMilestoneSpecific?: {
|
|
2941
|
+
title?: string | undefined;
|
|
2942
|
+
content?: string | undefined;
|
|
2943
|
+
} | undefined;
|
|
2944
|
+
entityReactionMilestoneTotal?: {
|
|
2945
|
+
title?: string | undefined;
|
|
2946
|
+
content?: string | undefined;
|
|
2947
|
+
} | undefined;
|
|
2948
|
+
commentReactionMilestoneSpecific?: {
|
|
2949
|
+
title?: string | undefined;
|
|
2950
|
+
content?: string | undefined;
|
|
2951
|
+
} | undefined;
|
|
2952
|
+
commentReactionMilestoneTotal?: {
|
|
2953
|
+
title?: string | undefined;
|
|
2954
|
+
content?: string | undefined;
|
|
2955
|
+
} | undefined;
|
|
1504
2956
|
newFollow?: {
|
|
1505
2957
|
title?: string | undefined;
|
|
1506
2958
|
content?: string | undefined;
|
|
@@ -1515,12 +2967,8 @@ export declare const appNotificationsSlice: import("@reduxjs/toolkit").Slice<App
|
|
|
1515
2967
|
} | undefined;
|
|
1516
2968
|
} | undefined;
|
|
1517
2969
|
currentProjectId?: string | undefined;
|
|
1518
|
-
}, action: PayloadAction<
|
|
1519
|
-
|
|
1520
|
-
hasMore: boolean;
|
|
1521
|
-
isFirstPage?: boolean;
|
|
1522
|
-
}>) => void;
|
|
1523
|
-
markAsReadLocally: (state: {
|
|
2970
|
+
}, action: PayloadAction<string>) => void;
|
|
2971
|
+
markAllAsReadLocally: (state: {
|
|
1524
2972
|
notifications: ({
|
|
1525
2973
|
type: "system";
|
|
1526
2974
|
action: string;
|
|
@@ -1649,118 +3097,14 @@ export declare const appNotificationsSlice: import("@reduxjs/toolkit").Slice<App
|
|
|
1649
3097
|
isRead: boolean;
|
|
1650
3098
|
createdAt: string;
|
|
1651
3099
|
} | {
|
|
1652
|
-
type: "
|
|
1653
|
-
action: "open-
|
|
1654
|
-
metadata: {
|
|
1655
|
-
initiatorId: string;
|
|
1656
|
-
initiatorName: string | null | undefined;
|
|
1657
|
-
initiatorUsername: string | null | undefined;
|
|
1658
|
-
initiatorAvatar: string | null | undefined;
|
|
1659
|
-
};
|
|
1660
|
-
id: string;
|
|
1661
|
-
userId: string;
|
|
1662
|
-
isRead: boolean;
|
|
1663
|
-
createdAt: string;
|
|
1664
|
-
} | {
|
|
1665
|
-
type: "connection-request";
|
|
1666
|
-
action: "open-profile";
|
|
1667
|
-
metadata: {
|
|
1668
|
-
connectionId: string;
|
|
1669
|
-
initiatorId: string;
|
|
1670
|
-
initiatorName: string | null | undefined;
|
|
1671
|
-
initiatorUsername: string | null | undefined;
|
|
1672
|
-
initiatorAvatar: string | null | undefined;
|
|
1673
|
-
};
|
|
1674
|
-
id: string;
|
|
1675
|
-
userId: string;
|
|
1676
|
-
isRead: boolean;
|
|
1677
|
-
createdAt: string;
|
|
1678
|
-
} | {
|
|
1679
|
-
type: "connection-accepted";
|
|
1680
|
-
action: "open-profile";
|
|
1681
|
-
metadata: {
|
|
1682
|
-
connectionId: string;
|
|
1683
|
-
initiatorId: string;
|
|
1684
|
-
initiatorName: string | null | undefined;
|
|
1685
|
-
initiatorUsername: string | null | undefined;
|
|
1686
|
-
initiatorAvatar: string | null | undefined;
|
|
1687
|
-
};
|
|
1688
|
-
id: string;
|
|
1689
|
-
userId: string;
|
|
1690
|
-
isRead: boolean;
|
|
1691
|
-
createdAt: string;
|
|
1692
|
-
})[];
|
|
1693
|
-
unreadCount: number;
|
|
1694
|
-
loading: boolean;
|
|
1695
|
-
hasMore: boolean;
|
|
1696
|
-
page: number;
|
|
1697
|
-
limit: number;
|
|
1698
|
-
notificationTemplates?: {
|
|
1699
|
-
entityComment?: {
|
|
1700
|
-
title?: string | undefined;
|
|
1701
|
-
content?: string | undefined;
|
|
1702
|
-
} | undefined;
|
|
1703
|
-
commentReply?: {
|
|
1704
|
-
title?: string | undefined;
|
|
1705
|
-
content?: string | undefined;
|
|
1706
|
-
} | undefined;
|
|
1707
|
-
entityMention?: {
|
|
1708
|
-
title?: string | undefined;
|
|
1709
|
-
content?: string | undefined;
|
|
1710
|
-
} | undefined;
|
|
1711
|
-
commentMention?: {
|
|
1712
|
-
title?: string | undefined;
|
|
1713
|
-
content?: string | undefined;
|
|
1714
|
-
} | undefined;
|
|
1715
|
-
entityUpvote?: {
|
|
1716
|
-
title?: string | undefined;
|
|
1717
|
-
content?: string | undefined;
|
|
1718
|
-
} | undefined;
|
|
1719
|
-
commentUpvote?: {
|
|
1720
|
-
title?: string | undefined;
|
|
1721
|
-
content?: string | undefined;
|
|
1722
|
-
} | undefined;
|
|
1723
|
-
newFollow?: {
|
|
1724
|
-
title?: string | undefined;
|
|
1725
|
-
content?: string | undefined;
|
|
1726
|
-
} | undefined;
|
|
1727
|
-
connectionRequest?: {
|
|
1728
|
-
title?: string | undefined;
|
|
1729
|
-
content?: string | undefined;
|
|
1730
|
-
} | undefined;
|
|
1731
|
-
connectionAccepted?: {
|
|
1732
|
-
title?: string | undefined;
|
|
1733
|
-
content?: string | undefined;
|
|
1734
|
-
} | undefined;
|
|
1735
|
-
} | undefined;
|
|
1736
|
-
currentProjectId?: string | undefined;
|
|
1737
|
-
}, action: PayloadAction<string>) => void;
|
|
1738
|
-
markAllAsReadLocally: (state: {
|
|
1739
|
-
notifications: ({
|
|
1740
|
-
type: "system";
|
|
1741
|
-
action: string;
|
|
1742
|
-
metadata: {
|
|
1743
|
-
title?: string | undefined;
|
|
1744
|
-
content?: string | undefined;
|
|
1745
|
-
buttonData: {
|
|
1746
|
-
text: string;
|
|
1747
|
-
url: string;
|
|
1748
|
-
} | null;
|
|
1749
|
-
};
|
|
1750
|
-
id: string;
|
|
1751
|
-
userId: string;
|
|
1752
|
-
isRead: boolean;
|
|
1753
|
-
createdAt: string;
|
|
1754
|
-
} | {
|
|
1755
|
-
type: "entity-comment";
|
|
1756
|
-
action: "open-comment";
|
|
3100
|
+
type: "entity-reaction";
|
|
3101
|
+
action: "open-entity";
|
|
1757
3102
|
metadata: {
|
|
1758
3103
|
entityId: string;
|
|
1759
3104
|
entityShortId: string;
|
|
1760
3105
|
entityTitle: string | null | undefined;
|
|
1761
3106
|
entityContent: string | null | undefined;
|
|
1762
|
-
|
|
1763
|
-
commentContent: string | null | undefined;
|
|
3107
|
+
reactionType: string;
|
|
1764
3108
|
initiatorId: string;
|
|
1765
3109
|
initiatorName: string | null | undefined;
|
|
1766
3110
|
initiatorUsername: string | null | undefined;
|
|
@@ -1771,7 +3115,7 @@ export declare const appNotificationsSlice: import("@reduxjs/toolkit").Slice<App
|
|
|
1771
3115
|
isRead: boolean;
|
|
1772
3116
|
createdAt: string;
|
|
1773
3117
|
} | {
|
|
1774
|
-
type: "comment-
|
|
3118
|
+
type: "comment-reaction";
|
|
1775
3119
|
action: "open-comment";
|
|
1776
3120
|
metadata: {
|
|
1777
3121
|
entityId: string;
|
|
@@ -1780,8 +3124,7 @@ export declare const appNotificationsSlice: import("@reduxjs/toolkit").Slice<App
|
|
|
1780
3124
|
entityContent: string | null | undefined;
|
|
1781
3125
|
commentId: string;
|
|
1782
3126
|
commentContent: string | null | undefined;
|
|
1783
|
-
|
|
1784
|
-
replyContent: string | null | undefined;
|
|
3127
|
+
reactionType: string;
|
|
1785
3128
|
initiatorId: string;
|
|
1786
3129
|
initiatorName: string | null | undefined;
|
|
1787
3130
|
initiatorUsername: string | null | undefined;
|
|
@@ -1792,60 +3135,74 @@ export declare const appNotificationsSlice: import("@reduxjs/toolkit").Slice<App
|
|
|
1792
3135
|
isRead: boolean;
|
|
1793
3136
|
createdAt: string;
|
|
1794
3137
|
} | {
|
|
1795
|
-
type: "entity-
|
|
3138
|
+
type: "entity-reaction-milestone-specific";
|
|
1796
3139
|
action: "open-entity";
|
|
1797
3140
|
metadata: {
|
|
1798
3141
|
entityId: string;
|
|
1799
3142
|
entityShortId: string;
|
|
1800
3143
|
entityTitle: string | null | undefined;
|
|
1801
3144
|
entityContent: string | null | undefined;
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
3145
|
+
reactionType: string;
|
|
3146
|
+
milestoneCount: number;
|
|
3147
|
+
lastThreeUsers: {
|
|
3148
|
+
id: string;
|
|
3149
|
+
name: string | null | undefined;
|
|
3150
|
+
username: string | null | undefined;
|
|
3151
|
+
avatar: string | null | undefined;
|
|
3152
|
+
}[];
|
|
1806
3153
|
};
|
|
1807
3154
|
id: string;
|
|
1808
3155
|
userId: string;
|
|
1809
3156
|
isRead: boolean;
|
|
1810
3157
|
createdAt: string;
|
|
1811
3158
|
} | {
|
|
1812
|
-
type: "
|
|
1813
|
-
action: "open-
|
|
3159
|
+
type: "entity-reaction-milestone-total";
|
|
3160
|
+
action: "open-entity";
|
|
1814
3161
|
metadata: {
|
|
1815
3162
|
entityId: string;
|
|
1816
3163
|
entityShortId: string;
|
|
1817
3164
|
entityTitle: string | null | undefined;
|
|
1818
3165
|
entityContent: string | null | undefined;
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
3166
|
+
milestoneCount: number;
|
|
3167
|
+
reactionCounts: {
|
|
3168
|
+
[x: string]: number;
|
|
3169
|
+
};
|
|
3170
|
+
lastThreeUsers: {
|
|
3171
|
+
id: string;
|
|
3172
|
+
name: string | null | undefined;
|
|
3173
|
+
username: string | null | undefined;
|
|
3174
|
+
avatar: string | null | undefined;
|
|
3175
|
+
}[];
|
|
1825
3176
|
};
|
|
1826
3177
|
id: string;
|
|
1827
3178
|
userId: string;
|
|
1828
3179
|
isRead: boolean;
|
|
1829
3180
|
createdAt: string;
|
|
1830
3181
|
} | {
|
|
1831
|
-
type: "
|
|
1832
|
-
action: "open-
|
|
3182
|
+
type: "comment-reaction-milestone-specific";
|
|
3183
|
+
action: "open-comment";
|
|
1833
3184
|
metadata: {
|
|
1834
3185
|
entityId: string;
|
|
1835
3186
|
entityShortId: string;
|
|
1836
3187
|
entityTitle: string | null | undefined;
|
|
1837
3188
|
entityContent: string | null | undefined;
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
3189
|
+
commentId: string;
|
|
3190
|
+
commentContent: string | null | undefined;
|
|
3191
|
+
reactionType: string;
|
|
3192
|
+
milestoneCount: number;
|
|
3193
|
+
lastThreeUsers: {
|
|
3194
|
+
id: string;
|
|
3195
|
+
name: string | null | undefined;
|
|
3196
|
+
username: string | null | undefined;
|
|
3197
|
+
avatar: string | null | undefined;
|
|
3198
|
+
}[];
|
|
1842
3199
|
};
|
|
1843
3200
|
id: string;
|
|
1844
3201
|
userId: string;
|
|
1845
3202
|
isRead: boolean;
|
|
1846
3203
|
createdAt: string;
|
|
1847
3204
|
} | {
|
|
1848
|
-
type: "comment-
|
|
3205
|
+
type: "comment-reaction-milestone-total";
|
|
1849
3206
|
action: "open-comment";
|
|
1850
3207
|
metadata: {
|
|
1851
3208
|
entityId: string;
|
|
@@ -1854,10 +3211,16 @@ export declare const appNotificationsSlice: import("@reduxjs/toolkit").Slice<App
|
|
|
1854
3211
|
entityContent: string | null | undefined;
|
|
1855
3212
|
commentId: string;
|
|
1856
3213
|
commentContent: string | null | undefined;
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
3214
|
+
milestoneCount: number;
|
|
3215
|
+
reactionCounts: {
|
|
3216
|
+
[x: string]: number;
|
|
3217
|
+
};
|
|
3218
|
+
lastThreeUsers: {
|
|
3219
|
+
id: string;
|
|
3220
|
+
name: string | null | undefined;
|
|
3221
|
+
username: string | null | undefined;
|
|
3222
|
+
avatar: string | null | undefined;
|
|
3223
|
+
}[];
|
|
1861
3224
|
};
|
|
1862
3225
|
id: string;
|
|
1863
3226
|
userId: string;
|
|
@@ -1935,6 +3298,30 @@ export declare const appNotificationsSlice: import("@reduxjs/toolkit").Slice<App
|
|
|
1935
3298
|
title?: string | undefined;
|
|
1936
3299
|
content?: string | undefined;
|
|
1937
3300
|
} | undefined;
|
|
3301
|
+
entityReaction?: {
|
|
3302
|
+
title?: string | undefined;
|
|
3303
|
+
content?: string | undefined;
|
|
3304
|
+
} | undefined;
|
|
3305
|
+
commentReaction?: {
|
|
3306
|
+
title?: string | undefined;
|
|
3307
|
+
content?: string | undefined;
|
|
3308
|
+
} | undefined;
|
|
3309
|
+
entityReactionMilestoneSpecific?: {
|
|
3310
|
+
title?: string | undefined;
|
|
3311
|
+
content?: string | undefined;
|
|
3312
|
+
} | undefined;
|
|
3313
|
+
entityReactionMilestoneTotal?: {
|
|
3314
|
+
title?: string | undefined;
|
|
3315
|
+
content?: string | undefined;
|
|
3316
|
+
} | undefined;
|
|
3317
|
+
commentReactionMilestoneSpecific?: {
|
|
3318
|
+
title?: string | undefined;
|
|
3319
|
+
content?: string | undefined;
|
|
3320
|
+
} | undefined;
|
|
3321
|
+
commentReactionMilestoneTotal?: {
|
|
3322
|
+
title?: string | undefined;
|
|
3323
|
+
content?: string | undefined;
|
|
3324
|
+
} | undefined;
|
|
1938
3325
|
newFollow?: {
|
|
1939
3326
|
title?: string | undefined;
|
|
1940
3327
|
content?: string | undefined;
|
|
@@ -2078,6 +3465,136 @@ export declare const appNotificationsSlice: import("@reduxjs/toolkit").Slice<App
|
|
|
2078
3465
|
userId: string;
|
|
2079
3466
|
isRead: boolean;
|
|
2080
3467
|
createdAt: string;
|
|
3468
|
+
} | {
|
|
3469
|
+
type: "entity-reaction";
|
|
3470
|
+
action: "open-entity";
|
|
3471
|
+
metadata: {
|
|
3472
|
+
entityId: string;
|
|
3473
|
+
entityShortId: string;
|
|
3474
|
+
entityTitle: string | null | undefined;
|
|
3475
|
+
entityContent: string | null | undefined;
|
|
3476
|
+
reactionType: string;
|
|
3477
|
+
initiatorId: string;
|
|
3478
|
+
initiatorName: string | null | undefined;
|
|
3479
|
+
initiatorUsername: string | null | undefined;
|
|
3480
|
+
initiatorAvatar: string | null | undefined;
|
|
3481
|
+
};
|
|
3482
|
+
id: string;
|
|
3483
|
+
userId: string;
|
|
3484
|
+
isRead: boolean;
|
|
3485
|
+
createdAt: string;
|
|
3486
|
+
} | {
|
|
3487
|
+
type: "comment-reaction";
|
|
3488
|
+
action: "open-comment";
|
|
3489
|
+
metadata: {
|
|
3490
|
+
entityId: string;
|
|
3491
|
+
entityShortId: string;
|
|
3492
|
+
entityTitle: string | null | undefined;
|
|
3493
|
+
entityContent: string | null | undefined;
|
|
3494
|
+
commentId: string;
|
|
3495
|
+
commentContent: string | null | undefined;
|
|
3496
|
+
reactionType: string;
|
|
3497
|
+
initiatorId: string;
|
|
3498
|
+
initiatorName: string | null | undefined;
|
|
3499
|
+
initiatorUsername: string | null | undefined;
|
|
3500
|
+
initiatorAvatar: string | null | undefined;
|
|
3501
|
+
};
|
|
3502
|
+
id: string;
|
|
3503
|
+
userId: string;
|
|
3504
|
+
isRead: boolean;
|
|
3505
|
+
createdAt: string;
|
|
3506
|
+
} | {
|
|
3507
|
+
type: "entity-reaction-milestone-specific";
|
|
3508
|
+
action: "open-entity";
|
|
3509
|
+
metadata: {
|
|
3510
|
+
entityId: string;
|
|
3511
|
+
entityShortId: string;
|
|
3512
|
+
entityTitle: string | null | undefined;
|
|
3513
|
+
entityContent: string | null | undefined;
|
|
3514
|
+
reactionType: string;
|
|
3515
|
+
milestoneCount: number;
|
|
3516
|
+
lastThreeUsers: {
|
|
3517
|
+
id: string;
|
|
3518
|
+
name: string | null | undefined;
|
|
3519
|
+
username: string | null | undefined;
|
|
3520
|
+
avatar: string | null | undefined;
|
|
3521
|
+
}[];
|
|
3522
|
+
};
|
|
3523
|
+
id: string;
|
|
3524
|
+
userId: string;
|
|
3525
|
+
isRead: boolean;
|
|
3526
|
+
createdAt: string;
|
|
3527
|
+
} | {
|
|
3528
|
+
type: "entity-reaction-milestone-total";
|
|
3529
|
+
action: "open-entity";
|
|
3530
|
+
metadata: {
|
|
3531
|
+
entityId: string;
|
|
3532
|
+
entityShortId: string;
|
|
3533
|
+
entityTitle: string | null | undefined;
|
|
3534
|
+
entityContent: string | null | undefined;
|
|
3535
|
+
milestoneCount: number;
|
|
3536
|
+
reactionCounts: {
|
|
3537
|
+
[x: string]: number;
|
|
3538
|
+
};
|
|
3539
|
+
lastThreeUsers: {
|
|
3540
|
+
id: string;
|
|
3541
|
+
name: string | null | undefined;
|
|
3542
|
+
username: string | null | undefined;
|
|
3543
|
+
avatar: string | null | undefined;
|
|
3544
|
+
}[];
|
|
3545
|
+
};
|
|
3546
|
+
id: string;
|
|
3547
|
+
userId: string;
|
|
3548
|
+
isRead: boolean;
|
|
3549
|
+
createdAt: string;
|
|
3550
|
+
} | {
|
|
3551
|
+
type: "comment-reaction-milestone-specific";
|
|
3552
|
+
action: "open-comment";
|
|
3553
|
+
metadata: {
|
|
3554
|
+
entityId: string;
|
|
3555
|
+
entityShortId: string;
|
|
3556
|
+
entityTitle: string | null | undefined;
|
|
3557
|
+
entityContent: string | null | undefined;
|
|
3558
|
+
commentId: string;
|
|
3559
|
+
commentContent: string | null | undefined;
|
|
3560
|
+
reactionType: string;
|
|
3561
|
+
milestoneCount: number;
|
|
3562
|
+
lastThreeUsers: {
|
|
3563
|
+
id: string;
|
|
3564
|
+
name: string | null | undefined;
|
|
3565
|
+
username: string | null | undefined;
|
|
3566
|
+
avatar: string | null | undefined;
|
|
3567
|
+
}[];
|
|
3568
|
+
};
|
|
3569
|
+
id: string;
|
|
3570
|
+
userId: string;
|
|
3571
|
+
isRead: boolean;
|
|
3572
|
+
createdAt: string;
|
|
3573
|
+
} | {
|
|
3574
|
+
type: "comment-reaction-milestone-total";
|
|
3575
|
+
action: "open-comment";
|
|
3576
|
+
metadata: {
|
|
3577
|
+
entityId: string;
|
|
3578
|
+
entityShortId: string;
|
|
3579
|
+
entityTitle: string | null | undefined;
|
|
3580
|
+
entityContent: string | null | undefined;
|
|
3581
|
+
commentId: string;
|
|
3582
|
+
commentContent: string | null | undefined;
|
|
3583
|
+
milestoneCount: number;
|
|
3584
|
+
reactionCounts: {
|
|
3585
|
+
[x: string]: number;
|
|
3586
|
+
};
|
|
3587
|
+
lastThreeUsers: {
|
|
3588
|
+
id: string;
|
|
3589
|
+
name: string | null | undefined;
|
|
3590
|
+
username: string | null | undefined;
|
|
3591
|
+
avatar: string | null | undefined;
|
|
3592
|
+
}[];
|
|
3593
|
+
};
|
|
3594
|
+
id: string;
|
|
3595
|
+
userId: string;
|
|
3596
|
+
isRead: boolean;
|
|
3597
|
+
createdAt: string;
|
|
2081
3598
|
} | {
|
|
2082
3599
|
type: "new-follow";
|
|
2083
3600
|
action: "open-profile";
|
|
@@ -2150,6 +3667,30 @@ export declare const appNotificationsSlice: import("@reduxjs/toolkit").Slice<App
|
|
|
2150
3667
|
title?: string | undefined;
|
|
2151
3668
|
content?: string | undefined;
|
|
2152
3669
|
} | undefined;
|
|
3670
|
+
entityReaction?: {
|
|
3671
|
+
title?: string | undefined;
|
|
3672
|
+
content?: string | undefined;
|
|
3673
|
+
} | undefined;
|
|
3674
|
+
commentReaction?: {
|
|
3675
|
+
title?: string | undefined;
|
|
3676
|
+
content?: string | undefined;
|
|
3677
|
+
} | undefined;
|
|
3678
|
+
entityReactionMilestoneSpecific?: {
|
|
3679
|
+
title?: string | undefined;
|
|
3680
|
+
content?: string | undefined;
|
|
3681
|
+
} | undefined;
|
|
3682
|
+
entityReactionMilestoneTotal?: {
|
|
3683
|
+
title?: string | undefined;
|
|
3684
|
+
content?: string | undefined;
|
|
3685
|
+
} | undefined;
|
|
3686
|
+
commentReactionMilestoneSpecific?: {
|
|
3687
|
+
title?: string | undefined;
|
|
3688
|
+
content?: string | undefined;
|
|
3689
|
+
} | undefined;
|
|
3690
|
+
commentReactionMilestoneTotal?: {
|
|
3691
|
+
title?: string | undefined;
|
|
3692
|
+
content?: string | undefined;
|
|
3693
|
+
} | undefined;
|
|
2153
3694
|
newFollow?: {
|
|
2154
3695
|
title?: string | undefined;
|
|
2155
3696
|
content?: string | undefined;
|
|
@@ -2293,6 +3834,136 @@ export declare const appNotificationsSlice: import("@reduxjs/toolkit").Slice<App
|
|
|
2293
3834
|
userId: string;
|
|
2294
3835
|
isRead: boolean;
|
|
2295
3836
|
createdAt: string;
|
|
3837
|
+
} | {
|
|
3838
|
+
type: "entity-reaction";
|
|
3839
|
+
action: "open-entity";
|
|
3840
|
+
metadata: {
|
|
3841
|
+
entityId: string;
|
|
3842
|
+
entityShortId: string;
|
|
3843
|
+
entityTitle: string | null | undefined;
|
|
3844
|
+
entityContent: string | null | undefined;
|
|
3845
|
+
reactionType: string;
|
|
3846
|
+
initiatorId: string;
|
|
3847
|
+
initiatorName: string | null | undefined;
|
|
3848
|
+
initiatorUsername: string | null | undefined;
|
|
3849
|
+
initiatorAvatar: string | null | undefined;
|
|
3850
|
+
};
|
|
3851
|
+
id: string;
|
|
3852
|
+
userId: string;
|
|
3853
|
+
isRead: boolean;
|
|
3854
|
+
createdAt: string;
|
|
3855
|
+
} | {
|
|
3856
|
+
type: "comment-reaction";
|
|
3857
|
+
action: "open-comment";
|
|
3858
|
+
metadata: {
|
|
3859
|
+
entityId: string;
|
|
3860
|
+
entityShortId: string;
|
|
3861
|
+
entityTitle: string | null | undefined;
|
|
3862
|
+
entityContent: string | null | undefined;
|
|
3863
|
+
commentId: string;
|
|
3864
|
+
commentContent: string | null | undefined;
|
|
3865
|
+
reactionType: string;
|
|
3866
|
+
initiatorId: string;
|
|
3867
|
+
initiatorName: string | null | undefined;
|
|
3868
|
+
initiatorUsername: string | null | undefined;
|
|
3869
|
+
initiatorAvatar: string | null | undefined;
|
|
3870
|
+
};
|
|
3871
|
+
id: string;
|
|
3872
|
+
userId: string;
|
|
3873
|
+
isRead: boolean;
|
|
3874
|
+
createdAt: string;
|
|
3875
|
+
} | {
|
|
3876
|
+
type: "entity-reaction-milestone-specific";
|
|
3877
|
+
action: "open-entity";
|
|
3878
|
+
metadata: {
|
|
3879
|
+
entityId: string;
|
|
3880
|
+
entityShortId: string;
|
|
3881
|
+
entityTitle: string | null | undefined;
|
|
3882
|
+
entityContent: string | null | undefined;
|
|
3883
|
+
reactionType: string;
|
|
3884
|
+
milestoneCount: number;
|
|
3885
|
+
lastThreeUsers: {
|
|
3886
|
+
id: string;
|
|
3887
|
+
name: string | null | undefined;
|
|
3888
|
+
username: string | null | undefined;
|
|
3889
|
+
avatar: string | null | undefined;
|
|
3890
|
+
}[];
|
|
3891
|
+
};
|
|
3892
|
+
id: string;
|
|
3893
|
+
userId: string;
|
|
3894
|
+
isRead: boolean;
|
|
3895
|
+
createdAt: string;
|
|
3896
|
+
} | {
|
|
3897
|
+
type: "entity-reaction-milestone-total";
|
|
3898
|
+
action: "open-entity";
|
|
3899
|
+
metadata: {
|
|
3900
|
+
entityId: string;
|
|
3901
|
+
entityShortId: string;
|
|
3902
|
+
entityTitle: string | null | undefined;
|
|
3903
|
+
entityContent: string | null | undefined;
|
|
3904
|
+
milestoneCount: number;
|
|
3905
|
+
reactionCounts: {
|
|
3906
|
+
[x: string]: number;
|
|
3907
|
+
};
|
|
3908
|
+
lastThreeUsers: {
|
|
3909
|
+
id: string;
|
|
3910
|
+
name: string | null | undefined;
|
|
3911
|
+
username: string | null | undefined;
|
|
3912
|
+
avatar: string | null | undefined;
|
|
3913
|
+
}[];
|
|
3914
|
+
};
|
|
3915
|
+
id: string;
|
|
3916
|
+
userId: string;
|
|
3917
|
+
isRead: boolean;
|
|
3918
|
+
createdAt: string;
|
|
3919
|
+
} | {
|
|
3920
|
+
type: "comment-reaction-milestone-specific";
|
|
3921
|
+
action: "open-comment";
|
|
3922
|
+
metadata: {
|
|
3923
|
+
entityId: string;
|
|
3924
|
+
entityShortId: string;
|
|
3925
|
+
entityTitle: string | null | undefined;
|
|
3926
|
+
entityContent: string | null | undefined;
|
|
3927
|
+
commentId: string;
|
|
3928
|
+
commentContent: string | null | undefined;
|
|
3929
|
+
reactionType: string;
|
|
3930
|
+
milestoneCount: number;
|
|
3931
|
+
lastThreeUsers: {
|
|
3932
|
+
id: string;
|
|
3933
|
+
name: string | null | undefined;
|
|
3934
|
+
username: string | null | undefined;
|
|
3935
|
+
avatar: string | null | undefined;
|
|
3936
|
+
}[];
|
|
3937
|
+
};
|
|
3938
|
+
id: string;
|
|
3939
|
+
userId: string;
|
|
3940
|
+
isRead: boolean;
|
|
3941
|
+
createdAt: string;
|
|
3942
|
+
} | {
|
|
3943
|
+
type: "comment-reaction-milestone-total";
|
|
3944
|
+
action: "open-comment";
|
|
3945
|
+
metadata: {
|
|
3946
|
+
entityId: string;
|
|
3947
|
+
entityShortId: string;
|
|
3948
|
+
entityTitle: string | null | undefined;
|
|
3949
|
+
entityContent: string | null | undefined;
|
|
3950
|
+
commentId: string;
|
|
3951
|
+
commentContent: string | null | undefined;
|
|
3952
|
+
milestoneCount: number;
|
|
3953
|
+
reactionCounts: {
|
|
3954
|
+
[x: string]: number;
|
|
3955
|
+
};
|
|
3956
|
+
lastThreeUsers: {
|
|
3957
|
+
id: string;
|
|
3958
|
+
name: string | null | undefined;
|
|
3959
|
+
username: string | null | undefined;
|
|
3960
|
+
avatar: string | null | undefined;
|
|
3961
|
+
}[];
|
|
3962
|
+
};
|
|
3963
|
+
id: string;
|
|
3964
|
+
userId: string;
|
|
3965
|
+
isRead: boolean;
|
|
3966
|
+
createdAt: string;
|
|
2296
3967
|
} | {
|
|
2297
3968
|
type: "new-follow";
|
|
2298
3969
|
action: "open-profile";
|
|
@@ -2365,6 +4036,30 @@ export declare const appNotificationsSlice: import("@reduxjs/toolkit").Slice<App
|
|
|
2365
4036
|
title?: string | undefined;
|
|
2366
4037
|
content?: string | undefined;
|
|
2367
4038
|
} | undefined;
|
|
4039
|
+
entityReaction?: {
|
|
4040
|
+
title?: string | undefined;
|
|
4041
|
+
content?: string | undefined;
|
|
4042
|
+
} | undefined;
|
|
4043
|
+
commentReaction?: {
|
|
4044
|
+
title?: string | undefined;
|
|
4045
|
+
content?: string | undefined;
|
|
4046
|
+
} | undefined;
|
|
4047
|
+
entityReactionMilestoneSpecific?: {
|
|
4048
|
+
title?: string | undefined;
|
|
4049
|
+
content?: string | undefined;
|
|
4050
|
+
} | undefined;
|
|
4051
|
+
entityReactionMilestoneTotal?: {
|
|
4052
|
+
title?: string | undefined;
|
|
4053
|
+
content?: string | undefined;
|
|
4054
|
+
} | undefined;
|
|
4055
|
+
commentReactionMilestoneSpecific?: {
|
|
4056
|
+
title?: string | undefined;
|
|
4057
|
+
content?: string | undefined;
|
|
4058
|
+
} | undefined;
|
|
4059
|
+
commentReactionMilestoneTotal?: {
|
|
4060
|
+
title?: string | undefined;
|
|
4061
|
+
content?: string | undefined;
|
|
4062
|
+
} | undefined;
|
|
2368
4063
|
newFollow?: {
|
|
2369
4064
|
title?: string | undefined;
|
|
2370
4065
|
content?: string | undefined;
|
|
@@ -2389,26 +4084,26 @@ export declare const setProjectContext: import("@reduxjs/toolkit").ActionCreator
|
|
|
2389
4084
|
declare const _default: import("@reduxjs/toolkit").Reducer<AppNotificationsState>;
|
|
2390
4085
|
export default _default;
|
|
2391
4086
|
export declare const selectAppNotifications: (state: {
|
|
2392
|
-
|
|
4087
|
+
replyke: ReplykeState;
|
|
2393
4088
|
}) => UnifiedAppNotification[];
|
|
2394
4089
|
export declare const selectUnreadCount: (state: {
|
|
2395
|
-
|
|
4090
|
+
replyke: ReplykeState;
|
|
2396
4091
|
}) => number;
|
|
2397
4092
|
export declare const selectAppNotificationsLoading: (state: {
|
|
2398
|
-
|
|
4093
|
+
replyke: ReplykeState;
|
|
2399
4094
|
}) => boolean;
|
|
2400
4095
|
export declare const selectAppNotificationsHasMore: (state: {
|
|
2401
|
-
|
|
4096
|
+
replyke: ReplykeState;
|
|
2402
4097
|
}) => boolean;
|
|
2403
4098
|
export declare const selectAppNotificationsPage: (state: {
|
|
2404
|
-
|
|
4099
|
+
replyke: ReplykeState;
|
|
2405
4100
|
}) => number;
|
|
2406
4101
|
export declare const selectAppNotificationsLimit: (state: {
|
|
2407
|
-
|
|
4102
|
+
replyke: ReplykeState;
|
|
2408
4103
|
}) => number;
|
|
2409
4104
|
export declare const selectNotificationTemplates: (state: {
|
|
2410
|
-
|
|
4105
|
+
replyke: ReplykeState;
|
|
2411
4106
|
}) => Partial<NotificationTemplates> | undefined;
|
|
2412
4107
|
export declare const selectCurrentProjectId: (state: {
|
|
2413
|
-
|
|
4108
|
+
replyke: ReplykeState;
|
|
2414
4109
|
}) => string | undefined;
|