@replyke/core 7.0.0-beta.8 → 7.0.0-beta.81
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 -1
- package/dist/cjs/config/axios.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 +77 -0
- package/dist/cjs/context/replyke-integration-context.js.map +1 -0
- package/dist/cjs/context/replyke-store-context.js +2 -1
- package/dist/cjs/context/replyke-store-context.js.map +1 -1
- package/dist/cjs/helpers/addNotificationsMessages.js +14 -1
- package/dist/cjs/helpers/addNotificationsMessages.js.map +1 -1
- 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 +3 -0
- 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 +1 -1
- package/dist/cjs/hooks/auth/index.js.map +1 -1
- package/dist/cjs/hooks/auth/useAuth.d.ts +31 -24
- package/dist/cjs/hooks/auth/useAuth.js +6 -6
- package/dist/cjs/hooks/auth/useAuth.js.map +1 -1
- 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 +265 -0
- package/dist/cjs/hooks/collections/useCollections.js.map +1 -0
- package/dist/cjs/hooks/collections/useCollectionsActions.d.ts +21 -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/{lists → collections}/useIsEntitySaved.d.ts +2 -2
- package/dist/cjs/hooks/{lists → collections}/useIsEntitySaved.js +3 -3
- 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 +40 -12
- 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 +2 -1
- package/dist/cjs/hooks/comments/useEntityComments.js +2 -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 +3 -2
- 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 +94 -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.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 +9 -0
- package/dist/cjs/hooks/entities/useFetchDrafts.js +77 -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/useFetchManyEntitiesWrapper.d.ts +41 -0
- package/dist/cjs/hooks/entities/useFetchManyEntitiesWrapper.js +241 -0
- package/dist/cjs/hooks/entities/useFetchManyEntitiesWrapper.js.map +1 -0
- 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 +6 -2
- 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 +18 -16
- package/dist/cjs/hooks/entity-lists/useEntityList.js +10 -10
- package/dist/cjs/hooks/entity-lists/useEntityList.js.map +1 -1
- package/dist/cjs/hooks/entity-lists/useEntityListActions.js +2 -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/useDownvoteComment.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.map +1 -1
- package/dist/cjs/hooks/relationships/connections/useConnectionManager.d.ts +2 -2
- package/dist/cjs/hooks/relationships/connections/useDeclineConnection.d.ts +3 -2
- 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.map +1 -1
- package/dist/cjs/hooks/relationships/connections/useFetchConnections.d.ts +1 -1
- package/dist/cjs/hooks/relationships/connections/useFetchConnectionsByUserId.d.ts +1 -1
- package/dist/cjs/hooks/relationships/connections/useFetchConnectionsCountByUserId.d.ts +1 -1
- package/dist/cjs/hooks/relationships/connections/useFetchReceivedPendingConnections.d.ts +1 -1
- package/dist/cjs/hooks/relationships/connections/useFetchSentPendingConnections.d.ts +1 -1
- package/dist/cjs/hooks/relationships/connections/useRemoveConnection.d.ts +3 -2
- 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.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.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/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 +1 -1
- package/dist/cjs/hooks/relationships/follows/useFollowUser.d.ts +3 -2
- 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.map +1 -1
- package/dist/cjs/hooks/relationships/follows/useUnfollowUserByUserId.d.ts +3 -2
- 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 +2 -2
- 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 +5 -5
- package/dist/cjs/hooks/reports/useHandleSpaceCommentReport.js +2 -2
- package/dist/cjs/hooks/reports/useHandleSpaceEntityReport.d.ts +5 -5
- 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 +18 -16
- package/dist/cjs/hooks/space-lists/useSpaceList.js +9 -9
- package/dist/cjs/hooks/space-lists/useSpaceList.js.map +1 -1
- package/dist/cjs/hooks/space-lists/useSpaceListActions.d.ts +3 -3
- package/dist/cjs/hooks/space-lists/useSpaceListActions.js +2 -2
- package/dist/cjs/hooks/space-lists/useSpaceListActions.js.map +1 -1
- package/dist/cjs/hooks/spaces/index.d.ts +27 -1
- package/dist/cjs/hooks/spaces/index.js +18 -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/{entities/useRemoveEntityUpvote.js → spaces/rules/useFetchRule.js} +18 -15
- 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/{entities/useRemoveEntityDownvote.js → spaces/rules/useReorderRules.js} +18 -15
- 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/useFetchManySpaces.d.ts +4 -3
- package/dist/cjs/hooks/spaces/useFetchManySpaces.js +5 -0
- 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/useUpdateMemberRole.d.ts +2 -2
- package/dist/cjs/hooks/spaces/useUpdateMemberRole.js.map +1 -1
- package/dist/cjs/hooks/spaces/useUpdateSpace.d.ts +7 -2
- 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 -8
- package/dist/cjs/hooks/storage/useUploadFile.js.map +1 -1
- package/dist/cjs/hooks/storage/useUploadImage.d.ts +14 -0
- package/dist/cjs/hooks/storage/useUploadImage.js +159 -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 -6
- package/dist/cjs/hooks/users/index.js +3 -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 +7 -0
- package/dist/cjs/hooks/{comments/useRemoveCommentUpvote.js → users/useFetchUserByUsername.js} +17 -13
- package/dist/cjs/hooks/users/useFetchUserByUsername.js.map +1 -0
- 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 +3 -2
- 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 +3 -2
- package/dist/cjs/hooks/utils/useGetMetadata.js.map +1 -1
- package/dist/cjs/index.d.ts +28 -25
- package/dist/cjs/index.js +46 -23
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/interfaces/models/AppNotification.d.ts +36 -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 +13 -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 +12 -5
- package/dist/cjs/interfaces/models/SpaceMember.d.ts +3 -0
- package/dist/cjs/interfaces/models/User.d.ts +10 -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 -5
- 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 +107 -107
- 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 +964 -959
- package/dist/cjs/store/api/spacesApi.js +22 -10
- 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 +26 -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 +17 -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 +36 -0
- package/dist/cjs/store/replykeReducers.js +42 -0
- package/dist/cjs/store/replykeReducers.js.map +1 -0
- package/dist/cjs/store/rootReducer.d.ts +27 -14
- package/dist/cjs/store/rootReducer.js +6 -19
- package/dist/cjs/store/rootReducer.js.map +1 -1
- package/dist/cjs/store/slices/appNotificationsSlice.d.ts +515 -8
- 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 +20 -10
- package/dist/cjs/store/slices/authSlice.js +22 -16
- package/dist/cjs/store/slices/authSlice.js.map +1 -1
- package/dist/cjs/store/slices/authThunks.d.ts +4 -0
- package/dist/cjs/store/slices/authThunks.js +68 -35
- 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 +3838 -147
- package/dist/cjs/store/slices/entityListsSlice.js +2 -2
- package/dist/cjs/store/slices/entityListsSlice.js.map +1 -1
- package/dist/cjs/store/slices/spaceListsSlice.d.ts +1064 -47
- package/dist/cjs/store/slices/spaceListsSlice.js +2 -2
- package/dist/cjs/store/slices/spaceListsSlice.js.map +1 -1
- package/dist/cjs/store/slices/userSlice.d.ts +715 -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 -1
- package/dist/esm/config/axios.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 +70 -0
- package/dist/esm/context/replyke-integration-context.js.map +1 -0
- package/dist/esm/context/replyke-store-context.js +3 -2
- package/dist/esm/context/replyke-store-context.js.map +1 -1
- package/dist/esm/helpers/addNotificationsMessages.js +14 -1
- package/dist/esm/helpers/addNotificationsMessages.js.map +1 -1
- 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 +3 -0
- 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 +1 -1
- package/dist/esm/hooks/auth/index.js.map +1 -1
- package/dist/esm/hooks/auth/useAuth.d.ts +31 -24
- package/dist/esm/hooks/auth/useAuth.js +7 -7
- package/dist/esm/hooks/auth/useAuth.js.map +1 -1
- 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 +260 -0
- package/dist/esm/hooks/collections/useCollections.js.map +1 -0
- package/dist/esm/hooks/collections/useCollectionsActions.d.ts +21 -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/{lists → collections}/useIsEntitySaved.d.ts +2 -2
- package/dist/esm/hooks/{lists → collections}/useIsEntitySaved.js +3 -3
- 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 +40 -12
- 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 +2 -1
- package/dist/esm/hooks/comments/useEntityComments.js +2 -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 +3 -2
- 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 +94 -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.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 +9 -0
- package/dist/esm/hooks/entities/useFetchDrafts.js +72 -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/useFetchManyEntitiesWrapper.d.ts +41 -0
- package/dist/esm/hooks/entities/useFetchManyEntitiesWrapper.js +236 -0
- package/dist/esm/hooks/entities/useFetchManyEntitiesWrapper.js.map +1 -0
- 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 +6 -2
- 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 +18 -16
- package/dist/esm/hooks/entity-lists/useEntityList.js +10 -10
- package/dist/esm/hooks/entity-lists/useEntityList.js.map +1 -1
- package/dist/esm/hooks/entity-lists/useEntityListActions.js +2 -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/useDownvoteComment.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.map +1 -1
- package/dist/esm/hooks/relationships/connections/useConnectionManager.d.ts +2 -2
- package/dist/esm/hooks/relationships/connections/useDeclineConnection.d.ts +3 -2
- 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.map +1 -1
- package/dist/esm/hooks/relationships/connections/useFetchConnections.d.ts +1 -1
- package/dist/esm/hooks/relationships/connections/useFetchConnectionsByUserId.d.ts +1 -1
- package/dist/esm/hooks/relationships/connections/useFetchConnectionsCountByUserId.d.ts +1 -1
- package/dist/esm/hooks/relationships/connections/useFetchReceivedPendingConnections.d.ts +1 -1
- package/dist/esm/hooks/relationships/connections/useFetchSentPendingConnections.d.ts +1 -1
- package/dist/esm/hooks/relationships/connections/useRemoveConnection.d.ts +3 -2
- 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.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.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/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 +1 -1
- package/dist/esm/hooks/relationships/follows/useFollowUser.d.ts +3 -2
- 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.map +1 -1
- package/dist/esm/hooks/relationships/follows/useUnfollowUserByUserId.d.ts +3 -2
- 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 +2 -2
- 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 +5 -5
- package/dist/esm/hooks/reports/useHandleSpaceCommentReport.js +2 -2
- package/dist/esm/hooks/reports/useHandleSpaceEntityReport.d.ts +5 -5
- 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 +18 -16
- package/dist/esm/hooks/space-lists/useSpaceList.js +9 -9
- package/dist/esm/hooks/space-lists/useSpaceList.js.map +1 -1
- package/dist/esm/hooks/space-lists/useSpaceListActions.d.ts +3 -3
- package/dist/esm/hooks/space-lists/useSpaceListActions.js +2 -2
- package/dist/esm/hooks/space-lists/useSpaceListActions.js.map +1 -1
- package/dist/esm/hooks/spaces/index.d.ts +27 -1
- package/dist/esm/hooks/spaces/index.js +7 -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/{entities/useRemoveEntityUpvote.js → spaces/rules/useDeleteRule.js} +18 -15
- 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/{comments/useRemoveCommentDownvote.js → spaces/rules/useFetchRule.js} +18 -15
- 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/{entities/useRemoveEntityDownvote.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/useFetchManySpaces.d.ts +4 -3
- package/dist/esm/hooks/spaces/useFetchManySpaces.js +5 -0
- 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/useUpdateMemberRole.d.ts +2 -2
- package/dist/esm/hooks/spaces/useUpdateMemberRole.js.map +1 -1
- package/dist/esm/hooks/spaces/useUpdateSpace.d.ts +7 -2
- 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 -8
- package/dist/esm/hooks/storage/useUploadFile.js.map +1 -1
- package/dist/esm/hooks/storage/useUploadImage.d.ts +14 -0
- package/dist/esm/hooks/storage/useUploadImage.js +154 -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 -6
- package/dist/esm/hooks/users/index.js +6 -6
- 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 +7 -0
- package/dist/esm/hooks/{comments/useRemoveCommentUpvote.js → users/useFetchUserByUsername.js} +17 -13
- package/dist/esm/hooks/users/useFetchUserByUsername.js.map +1 -0
- 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 +3 -2
- 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 +3 -2
- package/dist/esm/hooks/utils/useGetMetadata.js.map +1 -1
- package/dist/esm/index.d.ts +28 -25
- package/dist/esm/index.js +16 -13
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/interfaces/models/AppNotification.d.ts +36 -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 +13 -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 +12 -5
- package/dist/esm/interfaces/models/SpaceMember.d.ts +3 -0
- package/dist/esm/interfaces/models/User.d.ts +10 -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 -4
- 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 +107 -107
- 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 +964 -959
- package/dist/esm/store/api/spacesApi.js +21 -9
- 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 +26 -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 +17 -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 +36 -0
- package/dist/esm/store/replykeReducers.js +36 -0
- package/dist/esm/store/replykeReducers.js.map +1 -0
- package/dist/esm/store/rootReducer.d.ts +27 -14
- package/dist/esm/store/rootReducer.js +6 -16
- package/dist/esm/store/rootReducer.js.map +1 -1
- package/dist/esm/store/slices/appNotificationsSlice.d.ts +515 -8
- 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 +20 -10
- package/dist/esm/store/slices/authSlice.js +21 -14
- package/dist/esm/store/slices/authSlice.js.map +1 -1
- package/dist/esm/store/slices/authThunks.d.ts +4 -0
- package/dist/esm/store/slices/authThunks.js +69 -36
- 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 +3838 -147
- package/dist/esm/store/slices/entityListsSlice.js +2 -2
- package/dist/esm/store/slices/entityListsSlice.js.map +1 -1
- package/dist/esm/store/slices/spaceListsSlice.d.ts +1064 -47
- package/dist/esm/store/slices/spaceListsSlice.js +2 -2
- package/dist/esm/store/slices/spaceListsSlice.js.map +1 -1
- package/dist/esm/store/slices/userSlice.d.ts +715 -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.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 +0 -96
- 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.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 +0 -91
- 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,7 @@
|
|
|
1
|
-
import { User } from "../../interfaces/models/User";
|
|
2
|
-
|
|
1
|
+
import { User, UserIncludeParam } from "../../interfaces/models/User";
|
|
2
|
+
export interface FetchUserByForeignIdProps {
|
|
3
3
|
foreignId: string;
|
|
4
|
-
|
|
4
|
+
include?: UserIncludeParam;
|
|
5
|
+
}
|
|
6
|
+
declare function useFetchUserByForeignId(): ({ foreignId, include, }: FetchUserByForeignIdProps) => Promise<User>;
|
|
5
7
|
export default useFetchUserByForeignId;
|
|
@@ -42,7 +42,7 @@ function useFetchUserByForeignId() {
|
|
|
42
42
|
var projectId = useProject().projectId;
|
|
43
43
|
var fetchUserByForeignId = useCallback(function (_a) { return __awaiter(_this, [_a], void 0, function (_b) {
|
|
44
44
|
var response;
|
|
45
|
-
var foreignId = _b.foreignId;
|
|
45
|
+
var foreignId = _b.foreignId, include = _b.include;
|
|
46
46
|
return __generator(this, function (_c) {
|
|
47
47
|
switch (_c.label) {
|
|
48
48
|
case 0:
|
|
@@ -53,7 +53,10 @@ function useFetchUserByForeignId() {
|
|
|
53
53
|
throw new Error("Please specify a foreign ID");
|
|
54
54
|
}
|
|
55
55
|
return [4 /*yield*/, axios.get("/".concat(projectId, "/users/by-foreign-id"), {
|
|
56
|
-
params: {
|
|
56
|
+
params: {
|
|
57
|
+
foreignId: foreignId,
|
|
58
|
+
include: Array.isArray(include) ? include.join(",") : include,
|
|
59
|
+
},
|
|
57
60
|
})];
|
|
58
61
|
case 1:
|
|
59
62
|
response = _c.sent();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFetchUserByForeignId.js","sourceRoot":"","sources":["../../../../src/hooks/users/useFetchUserByForeignId.tsx"],"names":[],"mappings":";;;;;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AAC;AAED,eAAe,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { User, UserIncludeParam } from "../../interfaces/models/User";
|
|
2
|
+
export interface FetchUserByUsernameProps {
|
|
3
|
+
username: string;
|
|
4
|
+
include?: UserIncludeParam;
|
|
5
|
+
}
|
|
6
|
+
declare function useFetchUserByUsername(): ({ username, include, }: FetchUserByUsernameProps) => Promise<User>;
|
|
7
|
+
export default useFetchUserByUsername;
|
package/dist/esm/hooks/{comments/useRemoveCommentUpvote.js → users/useFetchUserByUsername.js}
RENAMED
|
@@ -35,32 +35,36 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
37
|
import { useCallback } from "react";
|
|
38
|
-
import useAxiosPrivate from "../../config/useAxiosPrivate";
|
|
39
38
|
import useProject from "../projects/useProject";
|
|
40
|
-
|
|
39
|
+
import axios from "../../config/axios";
|
|
40
|
+
function useFetchUserByUsername() {
|
|
41
41
|
var _this = this;
|
|
42
|
-
var axios = useAxiosPrivate();
|
|
43
42
|
var projectId = useProject().projectId;
|
|
44
|
-
var
|
|
43
|
+
var fetchUserByUsername = useCallback(function (_a) { return __awaiter(_this, [_a], void 0, function (_b) {
|
|
45
44
|
var response;
|
|
46
|
-
var
|
|
45
|
+
var username = _b.username, include = _b.include;
|
|
47
46
|
return __generator(this, function (_c) {
|
|
48
47
|
switch (_c.label) {
|
|
49
48
|
case 0:
|
|
50
|
-
if (!commentId) {
|
|
51
|
-
throw new Error("No comment ID passed");
|
|
52
|
-
}
|
|
53
49
|
if (!projectId) {
|
|
54
50
|
throw new Error("No project specified");
|
|
55
51
|
}
|
|
56
|
-
|
|
52
|
+
if (!username) {
|
|
53
|
+
throw new Error("Please specify a username");
|
|
54
|
+
}
|
|
55
|
+
return [4 /*yield*/, axios.get("/".concat(projectId, "/users/by-username"), {
|
|
56
|
+
params: {
|
|
57
|
+
username: username,
|
|
58
|
+
include: Array.isArray(include) ? include.join(",") : include,
|
|
59
|
+
},
|
|
60
|
+
})];
|
|
57
61
|
case 1:
|
|
58
62
|
response = _c.sent();
|
|
59
63
|
return [2 /*return*/, response.data];
|
|
60
64
|
}
|
|
61
65
|
});
|
|
62
|
-
}); }, [
|
|
63
|
-
return
|
|
66
|
+
}); }, [projectId]);
|
|
67
|
+
return fetchUserByUsername;
|
|
64
68
|
}
|
|
65
|
-
export default
|
|
66
|
-
//# sourceMappingURL=
|
|
69
|
+
export default useFetchUserByUsername;
|
|
70
|
+
//# sourceMappingURL=useFetchUserByUsername.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useFetchUserByUsername.js","sourceRoot":"","sources":["../../../../src/hooks/users/useFetchUserByUsername.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAEpC,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAChD,OAAO,KAAK,MAAM,oBAAoB,CAAC;AAQvC,SAAS,sBAAsB;IAA/B,iBA6BC;IA5BS,IAAA,SAAS,GAAK,UAAU,EAAE,UAAjB,CAAkB;IAEnC,IAAM,mBAAmB,GAAG,WAAW,CACrC,gEAAO,EAGoB;;YAFzB,QAAQ,cAAA,EACR,OAAO,aAAA;;;;oBAEP,IAAI,CAAC,SAAS,EAAE,CAAC;wBACf,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;oBAC1C,CAAC;oBAED,IAAI,CAAC,QAAQ,EAAE,CAAC;wBACd,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAC;oBAC/C,CAAC;oBAEgB,qBAAM,KAAK,CAAC,GAAG,CAAC,WAAI,SAAS,uBAAoB,EAAE;4BAClE,MAAM,EAAE;gCACN,QAAQ,UAAA;gCACR,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,OAAO;6BAC9D;yBACF,CAAC,EAAA;;oBALI,QAAQ,GAAG,SAKf;oBAEF,sBAAO,QAAQ,CAAC,IAAY,EAAC;;;SAC9B,EACD,CAAC,SAAS,CAAC,CACZ,CAAC;IAEF,OAAO,mBAAmB,CAAC;AAC7B,CAAC;AAED,eAAe,sBAAsB,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { User } from "../../interfaces/models/User";
|
|
2
|
-
|
|
2
|
+
export interface FetchUserSuggestionsProps {
|
|
3
3
|
query: string;
|
|
4
|
-
}
|
|
4
|
+
}
|
|
5
|
+
declare function useFetchUserSuggestions(): ({ query }: FetchUserSuggestionsProps) => Promise<User[]>;
|
|
5
6
|
export default useFetchUserSuggestions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFetchUserSuggestions.js","sourceRoot":"","sources":["../../../../src/hooks/users/useFetchUserSuggestions.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,eAAe,MAAM,8BAA8B,CAAC;AAC3D,OAAO,UAAU,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"useFetchUserSuggestions.js","sourceRoot":"","sources":["../../../../src/hooks/users/useFetchUserSuggestions.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,eAAe,MAAM,8BAA8B,CAAC;AAC3D,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAOhD,SAAS,uBAAuB;IAAhC,iBAsBC;IArBC,IAAM,KAAK,GAAG,eAAe,EAAE,CAAC;IACxB,IAAA,SAAS,GAAK,UAAU,EAAE,UAAjB,CAAkB;IAEnC,IAAM,oBAAoB,GAAG,WAAW,CACtC,gEAAO,EAAoC;;YAAlC,KAAK,WAAA;;;;oBACZ,IAAI,CAAC,SAAS,EAAE,CAAC;wBACf,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;oBAC7C,CAAC;oBAEgB,qBAAM,KAAK,CAAC,GAAG,CAAC,WAAI,SAAS,uBAAoB,EAAE;4BAClE,MAAM,EAAE;gCACN,KAAK,OAAA;6BACN;yBACF,CAAC,EAAA;;oBAJI,QAAQ,GAAG,SAIf;oBAEF,sBAAO,QAAQ,CAAC,IAAc,EAAC;;;SAChC,EACD,CAAC,KAAK,EAAE,SAAS,CAAC,CACnB,CAAC;IAEF,OAAO,oBAAoB,CAAC;AAC9B,CAAC;AAED,eAAe,uBAAuB,CAAC"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { User } from "../../interfaces/models/User";
|
|
2
2
|
import { Mention } from "../../interfaces/models/Mention";
|
|
3
|
-
|
|
3
|
+
export interface UseMentionsProps {
|
|
4
4
|
content: string;
|
|
5
5
|
setContent: (value: string) => void;
|
|
6
6
|
focus: () => void;
|
|
7
7
|
cursorPosition: number;
|
|
8
8
|
isSelectionActive: boolean;
|
|
9
|
-
}
|
|
9
|
+
}
|
|
10
|
+
declare const useMentions: ({ content, setContent, focus, cursorPosition, isSelectionActive, }: UseMentionsProps) => {
|
|
10
11
|
isMentionActive: boolean;
|
|
11
12
|
loading: boolean;
|
|
12
13
|
mentionSuggestions: User[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMentions.js","sourceRoot":"","sources":["../../../../src/hooks/users/useMentions.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAGjE,OAAO,uBAAuB,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,yBAA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AED,2BAA2B;YAC3B,gBAAgB,CAAC,OAAO,GAAG,UAAU,CAAC;gBACpC,6BAA6B,CAAC,aAAW,CAAC,CAAC;YAC7C,CAAC,EAAE,aAAa,CAAC,CAAC;QACpB,CAAC;aAAM,CAAC;YACN,IAAI,gBAAgB,CAAC,OAAO,EAAE,CAAC;gBAC7B,YAAY,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;YACzC,CAAC;YAED,iBAAiB,CAAC,EAAE,CAAC,CAAC;YACtB,kBAAkB,CAAC,KAAK,CAAC,CAAC;YAC1B,qBAAqB,CAAC,EAAE,CAAC,CAAC;YAC1B,eAAe,CAAC,KAAK,CAAC,CAAC;QACzB,CAAC;QAED,4DAA4D;QAC5D,OAAO;YACL,IAAI,gBAAgB,CAAC,OAAO,EAAE,CAAC;gBAC7B,YAAY,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;YACzC,CAAC;QACH,CAAC,CAAC;IACJ,CAAC,EAAE;QACD,cAAc;QACd,iBAAiB;QACjB,6BAA6B;QAC7B,OAAO;KACR,CAAC,CAAC;IAEH,OAAO;QACL,eAAe,iBAAA;QACf,OAAO,EAAE,YAAY;QACrB,kBAAkB,oBAAA;QAClB,kBAAkB,oBAAA;QAClB,QAAQ,UAAA;QACR,UAAU,YAAA;QACV,aAAa,eAAA;KACd,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { default as useGetMetadata } from "./useGetMetadata";
|
|
1
|
+
export { default as useGetMetadata, type GetMetadataProps, } from "./useGetMetadata";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { default as useGetMetadata } from "./useGetMetadata";
|
|
1
|
+
export { default as useGetMetadata, } from "./useGetMetadata";
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/hooks/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/hooks/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,IAAI,cAAc,GAE1B,MAAM,kBAAkB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useGetMetadata.js","sourceRoot":"","sources":["../../../../src/hooks/utils/useGetMetadata.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,KAAK,MAAM,oBAAoB,CAAC;AACvC,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"useGetMetadata.js","sourceRoot":"","sources":["../../../../src/hooks/utils/useGetMetadata.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,KAAK,MAAM,oBAAoB,CAAC;AACvC,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAM1D,SAAS,cAAc;IAAvB,iBA+BC;IA9BS,IAAA,SAAS,GAAK,UAAU,EAAE,UAAjB,CAAkB;IAEnC,IAAM,WAAW,GAAG,WAAW,CAC7B,gEAAO,EAAyB;;YAAvB,GAAG,SAAA;;;;oBACV,IAAI,CAAC,SAAS,EAAE,CAAC;wBACf,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;oBAC1C,CAAC;oBAED,IAAI,CAAC,GAAG,EAAE,CAAC;wBACT,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;oBAC1C,CAAC;oBAEK,UAAU,GAAG,aAAa,CAAC,GAAG,CAAC,CAAC;oBAEtC,IAAI,CAAC,UAAU,EAAE,CAAC;wBAChB,MAAM,IAAI,KAAK,CAAC,gCAAgC,CAAC,CAAC;oBACpD,CAAC;oBAEgB,qBAAM,KAAK,CAAC,GAAG,CAAC,WAAI,SAAS,wBAAqB,EAAE;4BACnE,MAAM,EAAE;gCACN,GAAG,KAAA;6BACJ;yBACF,CAAC,EAAA;;oBAJI,QAAQ,GAAG,SAIf;oBAEF,sBAAO,QAAQ,CAAC,IAAI,EAAC;;;SACtB,EACD,CAAC,SAAS,CAAC,CACZ,CAAC;IAEF,OAAO,WAAW,CAAC;AACrB,CAAC;AAED,eAAe,cAAc,CAAC"}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -6,41 +6,44 @@ export { default as getPublicFileUrl } from "./helpers/getPublicFileUrl";
|
|
|
6
6
|
export { isDevelopment, isProduction, getApiBaseUrl, getEnvVar, } from "./utils/env";
|
|
7
7
|
export { reportReasons } from "./constants/reportReasons";
|
|
8
8
|
export type { ReportReasonKey } from "./constants/reportReasons";
|
|
9
|
-
export { ReplykeProvider, EntityProvider, CommentSectionProvider, SpaceProvider, } from "./context";
|
|
9
|
+
export { ReplykeProvider, ReplykeIntegrationProvider, EntityProvider, CommentSectionProvider, SpaceProvider, } from "./context";
|
|
10
|
+
export { replykeReducers, replykeApiReducer, replykeMiddleware, replykeApi, type ReplykeState, } from "./store/integration";
|
|
10
11
|
export { useProject, useProjectData } from "./hooks/projects";
|
|
11
|
-
export { useSignTestingJwt } from "./hooks/crypto";
|
|
12
|
-
export { useAuth, type UseAuthValues } from "./hooks/auth";
|
|
13
|
-
export { useUser, useUserActions, type UseUserProps, type UseUserValues, } from "./hooks/user";
|
|
12
|
+
export { useSignTestingJwt, type SignTestingJwtProps } from "./hooks/crypto";
|
|
13
|
+
export { useAuth, type UseAuthValues, type SignUpWithEmailAndPasswordProps, type SignInWithEmailAndPasswordProps, type ChangePasswordProps, } from "./hooks/auth";
|
|
14
|
+
export { useUser, useUserActions, type UseUserProps, type UseUserValues, type UpdateUserParams, } from "./hooks/user";
|
|
14
15
|
export { useAppNotifications, useAppNotificationsActions, type UseAppNotificationsProps, type UseAppNotificationsValues, } from "./hooks/app-notifications";
|
|
15
|
-
export {
|
|
16
|
-
export { useEntity, useEntityData, useCreateEntity, useDeleteEntity,
|
|
17
|
-
export { useEntityList, useEntityListActions, type UseEntityListProps, type UseEntityListValues, type EntityListFilters, type EntityListSort, type EntityListFetchOptions, } from "./hooks/entity-lists";
|
|
18
|
-
export { useSpace, useSpaceData, useFetchSpace, useFetchSpaceByShortId, useFetchSpaceBySlug, useFetchSpaceBreadcrumb, useFetchSpaceChildren, useFetchManySpaces, useCheckSlugAvailability, useCreateSpace, useUpdateSpace, useDeleteSpace, useJoinSpace, useLeaveSpace, useFetchSpaceMembers,
|
|
19
|
-
export { useSpaceList, useSpaceListActions, type UseSpaceListProps, type UseSpaceListValues, } from "./hooks/space-lists";
|
|
20
|
-
export { useCommentSection, useCommentSectionData, useCreateComment, useFetchManyComments, useFetchComment, useFetchCommentByForeignId, useReplies, useUpdateComment,
|
|
21
|
-
export {
|
|
22
|
-
export {
|
|
23
|
-
export {
|
|
24
|
-
export {
|
|
25
|
-
export {
|
|
26
|
-
export {
|
|
27
|
-
export {
|
|
28
|
-
export { useGetMetadata } from "./hooks/utils";
|
|
29
|
-
export { useUploadFile } from "./hooks/storage";
|
|
16
|
+
export { useCollections, useCollectionsActions, useIsEntityInCollection, useCollectionEntitiesWrapper, type UseCollectionsProps, type UseCollectionsValues, type CreateCollectionProps, type UpdateCollectionProps, type DeleteCollectionProps, type AddToCollectionProps, type RemoveFromCollectionProps, type UseCollectionEntitiesWrapperProps, type UseCollectionEntitiesWrapperValues, } from "./hooks/collections";
|
|
17
|
+
export { useEntity, useEntityData, useCreateEntity, useDeleteEntity, useFetchEntity, useFetchEntityByForeignId, useFetchEntityByShortId, useFetchManyEntities, useIncrementEntityViews, useFetchManyEntitiesWrapper, useUpdateEntity, useFetchDrafts, usePublishDraft, type CreateEntityProps, type DeleteEntityProps, type FetchEntityProps, type FetchEntityByForeignIdProps, type FetchEntityByShortIdProps, type PublishDraftProps, type UseFetchManyEntitiesWrapperProps, type UseFetchManyEntitiesWrapperValues, } from "./hooks/entities";
|
|
18
|
+
export { useEntityList, useEntityListActions, type UseEntityListProps, type UseEntityListValues, type EntityListCreateEntityProps, type EntityListDeleteEntityProps, type EntityListFilters, type EntityListSort, type EntityListFetchOptions, } from "./hooks/entity-lists";
|
|
19
|
+
export { useSpace, useSpaceData, useFetchSpace, useFetchSpaceByShortId, useFetchSpaceBySlug, useFetchSpaceBreadcrumb, useFetchSpaceChildren, useFetchManySpaces, useCheckSlugAvailability, useCreateSpace, useUpdateSpace, useDeleteSpace, useJoinSpace, useLeaveSpace, useFetchSpaceMembers, useFetchSpaceTeam, useFetchUserSpaces, useUpdateMemberRole, useApproveMember, useDeclineMember, useRemoveMember, useModerateSpaceEntity, useModerateSpaceComment, useSpacePermissions, useCheckMyMembership, useCreateRule, useUpdateRule, useDeleteRule, useFetchRule, useFetchManyRules, useReorderRules, type UseSpaceDataProps, type UseSpaceDataValues, type FetchSpaceProps, type FetchSpaceByShortIdProps, type FetchSpaceBySlugProps, type FetchSpaceBreadcrumbProps, type FetchSpaceChildrenProps, type FetchManySpacesProps, type CheckSlugAvailabilityProps, type CreateSpaceProps, type UpdateSpaceProps, type DeleteSpaceProps, type JoinSpaceProps, type LeaveSpaceProps, type FetchSpaceMembersProps, type FetchSpaceTeamProps, type FetchUserSpacesProps, type CheckMyMembershipProps, type UpdateMemberRoleProps, type ApproveMemberProps, type DeclineMemberProps, type RemoveMemberProps, type ModerateSpaceEntityProps, type ModerateSpaceCommentProps, type UseSpacePermissionsProps, type UseSpacePermissionsValues, type CreateRuleProps, type UpdateRuleProps, type DeleteRuleProps, type FetchRuleProps, type FetchManyRulesProps, type ReorderRulesProps, } from "./hooks/spaces";
|
|
20
|
+
export { useSpaceList, useSpaceListActions, type UseSpaceListProps, type UseSpaceListValues, type SpaceListCreateSpaceProps, type SpaceListDeleteSpaceProps, type FetchSpacesOptions, type CreateSpaceOptions, type DeleteSpaceOptions, } from "./hooks/space-lists";
|
|
21
|
+
export { useCommentSection, useCommentSectionData, useCreateComment, useFetchManyComments, useFetchComment, useFetchCommentByForeignId, useReplies, useUpdateComment, useDeleteComment, useEntityComments, useFetchManyCommentsWrapper, type CommentSectionCreateCommentProps, type CommentSectionUpdateCommentProps, type CommentSectionDeleteCommentProps, type CreateCommentProps, type FetchManyCommentsProps, type FetchCommentProps, type FetchCommentByForeignIdProps, type UseRepliesProps, type UpdateCommentProps, type DeleteCommentProps, type UseFetchManyCommentsWrapperProps, type UseFetchManyCommentsWrapperValues, } from "./hooks/comments";
|
|
22
|
+
export { useFetchEntityReactions, useFetchCommentReactions, useFetchEntityReactionsWrapper, useFetchCommentReactionsWrapper, useAddReaction, useRemoveReaction, useReactionToggle, type UseFetchEntityReactionsWrapperProps, type UseFetchEntityReactionsWrapperValues, type UseFetchCommentReactionsWrapperProps, type UseFetchCommentReactionsWrapperValues, type UseReactionToggleProps, type UseReactionToggleValues, type ToggleReactionProps, type AddReactionProps, type RemoveReactionProps, type FetchEntityReactionsProps, type FetchCommentReactionsProps, } from "./hooks/reactions";
|
|
23
|
+
export { useFetchUser, useFetchUserByForeignId, useFetchUserByUsername, useCheckUsernameAvailability, useFetchUserSuggestions, useMentions, type FetchUserProps, type FetchUserByForeignIdProps, type FetchUserByUsernameProps, type CheckUsernameAvailabilityProps, type FetchUserSuggestionsProps, type UseMentionsProps, } from "./hooks/users";
|
|
24
|
+
export { useFetchFollowStatus, useFetchFollowers, useFetchFollowersByUserId, useFetchFollowersCount, useFetchFollowersCountByUserId, useFetchFollowing, useFetchFollowingByUserId, useFetchFollowingCount, useFetchFollowingCountByUserId, useFollowManager, useFollowUser, useUnfollowByFollowId, useUnfollowUserByUserId, type FollowUserProps, type UnfollowByFollowIdProps, type UnfollowUserByUserIdProps, type FetchFollowStatusProps, type FollowStatusResponse, type FollowerWithFollowInfo, type FetchFollowersParams, type FetchFollowersByUserIdParams, type FetchFollowersCountByUserIdProps, type FollowingWithFollowInfo, type FetchFollowingParams, type FetchFollowingByUserIdParams, type FetchFollowingCountByUserIdProps, type UseFollowToggleProps, } from "./hooks/relationships/follows";
|
|
25
|
+
export { useRequestConnection, useAcceptConnection, useDeclineConnection, useRemoveConnection, useFetchConnections, useFetchConnectionStatus, useRemoveConnectionByUserId, useFetchConnectionsCount, useFetchSentPendingConnections, useFetchReceivedPendingConnections, useFetchConnectionsByUserId, useFetchConnectionsCountByUserId, useConnectionManager, type AcceptConnectionProps, type DeclineConnectionProps, type RemoveConnectionProps, type RemoveConnectionByUserIdProps, type FetchConnectionStatusProps, type FetchConnectionsParams, type FetchConnectionsByUserIdParams, type FetchConnectionsCountByUserIdParams, type FetchSentPendingConnectionsParams, type FetchReceivedPendingConnectionsParams, type UseConnectionManagerProps, type ConnectionData, } from "./hooks/relationships/connections";
|
|
26
|
+
export { useCreateReport, useFetchModeratedReports, useHandleSpaceEntityReport, useHandleSpaceCommentReport, type UseCreateReportProps, type CreateReportProps, type CreateCommentReportProps, type CreateEntityReportProps, type FetchModeratedReportsParams, type ReportUserReport, type Report, type HandleSpaceEntityReportParams, type HandleReportResponse, type HandleSpaceCommentReportParams, } from "./hooks/reports";
|
|
27
|
+
export { useGetMetadata, type GetMetadataProps } from "./hooks/utils";
|
|
28
|
+
export { useUploadFile, useUploadImage, type RNFile, type UploadFileOptions, type UploadResponse, } from "./hooks/storage";
|
|
30
29
|
export type { PaginatedResponse, PaginationMetadata, } from "./interfaces/IPaginatedResponse";
|
|
31
30
|
export type { EntityCommentsTree } from "./interfaces/EntityCommentsTree";
|
|
32
|
-
export type { UserFull, User, AuthUser, UserRole, } from "./interfaces/models/User";
|
|
31
|
+
export type { UserFull, User, AuthUser, UserRole, UserInclude, UserIncludeArray, UserIncludeParam, } from "./interfaces/models/User";
|
|
33
32
|
export * as AppNotification from "./interfaces/models/AppNotification";
|
|
34
|
-
export type { Entity } from "./interfaces/models/Entity";
|
|
35
|
-
export type {
|
|
36
|
-
export type { Comment, GifData } from "./interfaces/models/Comment";
|
|
33
|
+
export type { Entity, EntityInclude, EntityIncludeArray, EntityIncludeParam, } from "./interfaces/models/Entity";
|
|
34
|
+
export type { Collection } from "./interfaces/models/Collection";
|
|
35
|
+
export type { Comment, GifData, CommentInclude, CommentIncludeArray, CommentIncludeParam, } from "./interfaces/models/Comment";
|
|
36
|
+
export type { Reaction, ReactionType, ReactionCounts, } from "./interfaces/models/Reaction";
|
|
37
37
|
export type { Mention } from "./interfaces/models/Mention";
|
|
38
|
-
export type { Space, SpaceDetailed, SpacePreview, SpaceMemberPermissions, ReadingPermission, PostingPermission, PaginationMeta,
|
|
39
|
-
export type { SpaceMember, SpaceMemberRole, SpaceMemberStatus, SpaceMemberWithUser, SpaceMembersResponse, } from "./interfaces/models/SpaceMember";
|
|
38
|
+
export type { Space, SpaceDetailed, SpacePreview, SpaceMemberPermissions, ReadingPermission, PostingPermission, PaginationMeta, UserSpaceItem, UserSpacesResponse, JoinSpaceResponse, LeaveSpaceResponse, UpdateMemberRoleResponse, ApproveMemberResponse, DeclineMemberResponse, DeleteSpaceResponse, SpaceInclude, SpaceIncludeArray, SpaceIncludeParam, } from "./interfaces/models/Space";
|
|
39
|
+
export type { SpaceMember, SpaceMemberRole, SpaceMemberStatus, SpaceMemberWithUser, SpaceMembersResponse, SpaceTeamResponse, } from "./interfaces/models/SpaceMember";
|
|
40
40
|
export type { SpaceListSortByOptions, SpaceListFilters, } from "./interfaces/SpaceListSortByOptions";
|
|
41
41
|
export type { SpaceBreadcrumb } from "./interfaces/SpaceBreadcrumb";
|
|
42
|
+
export type { Rule, FetchManyRulesResponse, DeleteRuleResponse, } from "./interfaces/models/Rule";
|
|
42
43
|
export type { CommentsSortByOptions } from "./interfaces/CommentsSortByOptions";
|
|
43
44
|
export type { EntityListSortByOptions, SortDirection, SortType, } from "./interfaces/EntityListSortByOptions";
|
|
44
45
|
export { validateSortBy, validateMetadataPropertyName, validateSortType, } from "./interfaces/EntityListSortByOptions";
|
|
45
46
|
export type { TimeFrame } from "./interfaces/TimeFrame";
|
|
46
47
|
export type { Connection, EstablishedConnection, PendingConnection, ConnectionsResponse, PendingConnectionsResponse, PendingConnectionListResponse, ConnectionRequestParams, ConnectionActionResponse, ConnectionWithdrawResponse, ConnectionCountResponse, RemoveConnectionByUserIdResponse, ConnectionStatusResponse, ConnectionStatus, } from "./interfaces/models/Connection";
|
|
48
|
+
export type { Image, ImageVariant, UploadImageOptions, } from "./interfaces/models/Image";
|
|
49
|
+
export type { File } from "./interfaces/models/File";
|
package/dist/esm/index.js
CHANGED
|
@@ -8,44 +8,47 @@ export { isDevelopment, isProduction, getApiBaseUrl, getEnvVar, } from "./utils/
|
|
|
8
8
|
// Constants
|
|
9
9
|
export { reportReasons } from "./constants/reportReasons";
|
|
10
10
|
// Context providers (Redux-powered by default)
|
|
11
|
-
export { ReplykeProvider, EntityProvider, CommentSectionProvider, SpaceProvider, } from "./context";
|
|
11
|
+
export { ReplykeProvider, ReplykeIntegrationProvider, EntityProvider, CommentSectionProvider, SpaceProvider, } from "./context";
|
|
12
|
+
// Integration mode exports (for users with their own Redux store)
|
|
13
|
+
export { replykeReducers, replykeApiReducer, replykeMiddleware, replykeApi, } from "./store/integration";
|
|
12
14
|
// -- projects
|
|
13
15
|
export { useProject, useProjectData } from "./hooks/projects";
|
|
14
16
|
// -- crypto
|
|
15
17
|
export { useSignTestingJwt } from "./hooks/crypto";
|
|
16
18
|
// -- authentication
|
|
17
|
-
export { useAuth } from "./hooks/auth";
|
|
19
|
+
export { useAuth, } from "./hooks/auth";
|
|
18
20
|
// -- (current) user
|
|
19
21
|
export { useUser, useUserActions, } from "./hooks/user";
|
|
20
22
|
// -- app notifications
|
|
21
23
|
export { useAppNotifications, useAppNotificationsActions, } from "./hooks/app-notifications";
|
|
22
|
-
// --
|
|
23
|
-
export {
|
|
24
|
+
// -- collections
|
|
25
|
+
export { useCollections, useCollectionsActions, useIsEntityInCollection, useCollectionEntitiesWrapper, } from "./hooks/collections";
|
|
24
26
|
// -- entities
|
|
25
|
-
export { useEntity, useEntityData, useCreateEntity, useDeleteEntity,
|
|
27
|
+
export { useEntity, useEntityData, useCreateEntity, useDeleteEntity, useFetchEntity, useFetchEntityByForeignId, useFetchEntityByShortId, useFetchManyEntities, useIncrementEntityViews, useFetchManyEntitiesWrapper, useUpdateEntity, useFetchDrafts, usePublishDraft, } from "./hooks/entities";
|
|
26
28
|
// -- entity lists
|
|
27
29
|
export { useEntityList, useEntityListActions, } from "./hooks/entity-lists";
|
|
28
30
|
// -- spaces
|
|
29
|
-
export { useSpace, useSpaceData, useFetchSpace, useFetchSpaceByShortId, useFetchSpaceBySlug, useFetchSpaceBreadcrumb, useFetchSpaceChildren, useFetchManySpaces, useCheckSlugAvailability, useCreateSpace, useUpdateSpace, useDeleteSpace, useJoinSpace, useLeaveSpace, useFetchSpaceMembers,
|
|
31
|
+
export { useSpace, useSpaceData, useFetchSpace, useFetchSpaceByShortId, useFetchSpaceBySlug, useFetchSpaceBreadcrumb, useFetchSpaceChildren, useFetchManySpaces, useCheckSlugAvailability, useCreateSpace, useUpdateSpace, useDeleteSpace, useJoinSpace, useLeaveSpace, useFetchSpaceMembers, useFetchSpaceTeam, useFetchUserSpaces, useUpdateMemberRole, useApproveMember, useDeclineMember, useRemoveMember, useModerateSpaceEntity, useModerateSpaceComment, useSpacePermissions, useCheckMyMembership,
|
|
32
|
+
// Rule hooks
|
|
33
|
+
useCreateRule, useUpdateRule, useDeleteRule, useFetchRule, useFetchManyRules, useReorderRules, } from "./hooks/spaces";
|
|
30
34
|
// -- space lists
|
|
31
35
|
export { useSpaceList, useSpaceListActions, } from "./hooks/space-lists";
|
|
32
36
|
// -- comments
|
|
33
|
-
export { useCommentSection, useCommentSectionData, useCreateComment, useFetchManyComments, useFetchComment, useFetchCommentByForeignId, useReplies, useUpdateComment,
|
|
37
|
+
export { useCommentSection, useCommentSectionData, useCreateComment, useFetchManyComments, useFetchComment, useFetchCommentByForeignId, useReplies, useUpdateComment, useDeleteComment, useEntityComments, useFetchManyCommentsWrapper, } from "./hooks/comments";
|
|
38
|
+
// -- reactions
|
|
39
|
+
export { useFetchEntityReactions, useFetchCommentReactions, useFetchEntityReactionsWrapper, useFetchCommentReactionsWrapper, useAddReaction, useRemoveReaction, useReactionToggle, } from "./hooks/reactions";
|
|
34
40
|
// -- users
|
|
35
|
-
export { useFetchUser, useFetchUserByForeignId, useCheckUsernameAvailability, useFetchUserSuggestions, useMentions,
|
|
41
|
+
export { useFetchUser, useFetchUserByForeignId, useFetchUserByUsername, useCheckUsernameAvailability, useFetchUserSuggestions, useMentions, } from "./hooks/users";
|
|
36
42
|
// -- follows
|
|
37
43
|
export { useFetchFollowStatus, useFetchFollowers, useFetchFollowersByUserId, useFetchFollowersCount, useFetchFollowersCountByUserId, useFetchFollowing, useFetchFollowingByUserId, useFetchFollowingCount, useFetchFollowingCountByUserId, useFollowManager, useFollowUser, useUnfollowByFollowId, useUnfollowUserByUserId, } from "./hooks/relationships/follows";
|
|
38
44
|
// -- connections
|
|
39
45
|
export { useRequestConnection, useAcceptConnection, useDeclineConnection, useRemoveConnection, useFetchConnections, useFetchConnectionStatus, useRemoveConnectionByUserId, useFetchConnectionsCount, useFetchSentPendingConnections, useFetchReceivedPendingConnections, useFetchConnectionsByUserId, useFetchConnectionsCountByUserId, useConnectionManager, } from "./hooks/relationships/connections";
|
|
40
46
|
// -- reports
|
|
41
|
-
export { useCreateReport } from "./hooks/reports";
|
|
42
|
-
export { useFetchSpaceReports } from "./hooks/reports";
|
|
43
|
-
export { useHandleSpaceEntityReport } from "./hooks/reports";
|
|
44
|
-
export { useHandleSpaceCommentReport } from "./hooks/reports";
|
|
47
|
+
export { useCreateReport, useFetchModeratedReports, useHandleSpaceEntityReport, useHandleSpaceCommentReport, } from "./hooks/reports";
|
|
45
48
|
// -- general
|
|
46
49
|
export { useGetMetadata } from "./hooks/utils";
|
|
47
50
|
// -- storage
|
|
48
|
-
export { useUploadFile } from "./hooks/storage";
|
|
51
|
+
export { useUploadFile, useUploadImage, } from "./hooks/storage";
|
|
49
52
|
export * as AppNotification from "./interfaces/models/AppNotification";
|
|
50
53
|
export { validateSortBy, validateMetadataPropertyName, validateSortType, } from "./interfaces/EntityListSortByOptions";
|
|
51
54
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,sBAAsB;AACtB,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpE,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AACzE,OAAO,EACL,aAAa,EACb,YAAY,EACZ,aAAa,EACb,SAAS,GACV,MAAM,aAAa,CAAC;AAErB,YAAY;AACZ,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAG1D,+CAA+C;AAC/C,OAAO,EACL,eAAe,EACf,cAAc,EACd,sBAAsB,EACtB,aAAa,GACd,MAAM,WAAW,CAAC;AAEnB,cAAc;AACd,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAE9D,YAAY;AACZ,OAAO,EAAE,iBAAiB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,sBAAsB;AACtB,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,MAAM,+BAA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AAqB,EACrB,uBAAuB,GAexB,MAAM,+BAA+B,CAAC;AAEvC,iBAAiB;AACjB,OAAO,EACL,oBAAoB,EACpB,mBAAmB,EACnB,oBAAoB,EACpB,mBAAmB,EACnB,mBAAmB,EACnB,wBAAwB,EACxB,2BAA2B,EAC3B,wBAAwB,EACxB,8BAA8B,EAC9B,kCAAkC,EAClC,2BAA2B,EAC3B,gCAAgC,EAChC,oBAAoB,GAarB,MAAM,mCAAmC,CAAC;AAE3C,aAAa;AACb,OAAO,EACL,eAAe,EACf,wBAAwB,EACxB,0BAA0B,EAC1B,2BAA2B,GAW5B,MAAM,iBAAiB,CAAC;AAEzB,aAAa;AACb,OAAO,EAAE,cAAc,EAAyB,MAAM,eAAe,CAAC;AAEtE,aAAa;AACb,OAAO,EACL,aAAa,EACb,cAAc,GAIf,MAAM,iBAAiB,CAAC;AAiBzB,OAAO,KAAK,eAAe,MAAM,qCAAqC,CAAC;AAiEvE,OAAO,EACL,cAAc,EACd,4BAA4B,EAC5B,gBAAgB,GACjB,MAAM,sCAAsC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
type AppNotificationType = "system" | "entity-comment" | "comment-reply" | "entity-mention" | "comment-mention" | "entity-upvote" | "comment-upvote" | "new-follow" | "connection-request" | "connection-accepted";
|
|
1
|
+
type AppNotificationType = "system" | "entity-comment" | "comment-reply" | "entity-mention" | "comment-mention" | "entity-upvote" | "comment-upvote" | "entity-reaction" | "comment-reaction" | "new-follow" | "connection-request" | "connection-accepted";
|
|
2
2
|
interface BaseAppNotification {
|
|
3
3
|
id: string;
|
|
4
4
|
userId: string;
|
|
@@ -113,6 +113,38 @@ export interface CommentUpvoteNotification extends BaseAppNotification {
|
|
|
113
113
|
initiatorAvatar: string | null | undefined;
|
|
114
114
|
};
|
|
115
115
|
}
|
|
116
|
+
export interface EntityReactionNotification extends BaseAppNotification {
|
|
117
|
+
type: "entity-reaction";
|
|
118
|
+
action: "open-entity";
|
|
119
|
+
metadata: {
|
|
120
|
+
entityId: string;
|
|
121
|
+
entityShortId: string;
|
|
122
|
+
entityTitle: string | null | undefined;
|
|
123
|
+
entityContent: string | null | undefined;
|
|
124
|
+
reactionType: string;
|
|
125
|
+
initiatorId: string;
|
|
126
|
+
initiatorName: string | null | undefined;
|
|
127
|
+
initiatorUsername: string | null | undefined;
|
|
128
|
+
initiatorAvatar: string | null | undefined;
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
export interface CommentReactionNotification extends BaseAppNotification {
|
|
132
|
+
type: "comment-reaction";
|
|
133
|
+
action: "open-comment";
|
|
134
|
+
metadata: {
|
|
135
|
+
entityId: string;
|
|
136
|
+
entityShortId: string;
|
|
137
|
+
entityTitle: string | null | undefined;
|
|
138
|
+
entityContent: string | null | undefined;
|
|
139
|
+
commentId: string;
|
|
140
|
+
commentContent: string | null | undefined;
|
|
141
|
+
reactionType: string;
|
|
142
|
+
initiatorId: string;
|
|
143
|
+
initiatorName: string | null | undefined;
|
|
144
|
+
initiatorUsername: string | null | undefined;
|
|
145
|
+
initiatorAvatar: string | null | undefined;
|
|
146
|
+
};
|
|
147
|
+
}
|
|
116
148
|
export interface NewFollowNotification extends BaseAppNotification {
|
|
117
149
|
type: "new-follow";
|
|
118
150
|
action: "open-profile";
|
|
@@ -145,7 +177,7 @@ export interface ConnectionAcceptedNotification extends BaseAppNotification {
|
|
|
145
177
|
initiatorAvatar: string | null | undefined;
|
|
146
178
|
};
|
|
147
179
|
}
|
|
148
|
-
export type UnifiedAppNotification = SystemNotification | EntityCommentNotification | CommentReplyNotification | EntityMentionNotification | CommentMentionNotification | EntityUpvoteNotification | CommentUpvoteNotification | NewFollowNotification | ConnectionRequestNotification | ConnectionAcceptedNotification;
|
|
180
|
+
export type UnifiedAppNotification = SystemNotification | EntityCommentNotification | CommentReplyNotification | EntityMentionNotification | CommentMentionNotification | EntityUpvoteNotification | CommentUpvoteNotification | EntityReactionNotification | CommentReactionNotification | NewFollowNotification | ConnectionRequestNotification | ConnectionAcceptedNotification;
|
|
149
181
|
export type NotificationTemplate = {
|
|
150
182
|
title?: string;
|
|
151
183
|
content?: string;
|
|
@@ -157,6 +189,8 @@ export type NotificationTemplates = {
|
|
|
157
189
|
commentMention: NotificationTemplate;
|
|
158
190
|
entityUpvote: NotificationTemplate;
|
|
159
191
|
commentUpvote: NotificationTemplate;
|
|
192
|
+
entityReaction: NotificationTemplate;
|
|
193
|
+
commentReaction: NotificationTemplate;
|
|
160
194
|
newFollow: NotificationTemplate;
|
|
161
195
|
connectionRequest: NotificationTemplate;
|
|
162
196
|
connectionAccepted: NotificationTemplate;
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
export interface List {
|
|
1
|
+
export interface Collection {
|
|
3
2
|
id: string;
|
|
4
3
|
projectId: string;
|
|
5
4
|
userId: string;
|
|
6
5
|
parentId: string | null;
|
|
7
6
|
name: string;
|
|
8
|
-
|
|
9
|
-
entities: Partial<Entity>[];
|
|
7
|
+
entityCount?: number;
|
|
10
8
|
createdAt: Date;
|
|
11
9
|
updatedAt: Date;
|
|
12
10
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Collection.js","sourceRoot":"","sources":["../../../../src/interfaces/models/Collection.ts"],"names":[],"mappings":""}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Entity } from "./Entity";
|
|
2
2
|
import { Mention } from "./Mention";
|
|
3
3
|
import { User } from "./User";
|
|
4
|
+
import { ReactionCounts, ReactionType } from "./Reaction";
|
|
4
5
|
export interface GifData {
|
|
5
6
|
id: string;
|
|
6
7
|
url: string;
|
|
@@ -16,17 +17,28 @@ export interface Comment {
|
|
|
16
17
|
entityId: string;
|
|
17
18
|
entity?: Entity;
|
|
18
19
|
userId: string;
|
|
19
|
-
user
|
|
20
|
+
user?: User;
|
|
20
21
|
parentId: string | null;
|
|
22
|
+
parentComment?: Comment;
|
|
21
23
|
content: string | null;
|
|
22
24
|
gif: GifData | null;
|
|
23
25
|
mentions: Mention[];
|
|
24
26
|
upvotes: string[];
|
|
25
27
|
downvotes: string[];
|
|
28
|
+
reactionCounts: ReactionCounts;
|
|
29
|
+
userReaction?: ReactionType | null;
|
|
26
30
|
repliesCount: number;
|
|
27
31
|
metadata: Record<string, any>;
|
|
28
32
|
createdAt: Date;
|
|
29
33
|
updatedAt: Date;
|
|
30
34
|
deletedAt: Date | null;
|
|
31
35
|
parentDeletedAt: Date | null;
|
|
36
|
+
moderationStatus: "approved" | "removed" | null;
|
|
37
|
+
moderatedAt: Date | null;
|
|
38
|
+
moderatedById: string | null;
|
|
39
|
+
moderatedByType: "client" | "user" | null;
|
|
40
|
+
moderationReason: string | null;
|
|
32
41
|
}
|
|
42
|
+
export type CommentInclude = "user" | "entity" | "space" | "parent";
|
|
43
|
+
export type CommentIncludeArray = CommentInclude[];
|
|
44
|
+
export type CommentIncludeParam = CommentInclude | CommentIncludeArray;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { Mention } from "./Mention";
|
|
2
2
|
import { User } from "./User";
|
|
3
3
|
import { Space } from "./Space";
|
|
4
|
+
import { ReactionCounts, ReactionType } from "./Reaction";
|
|
5
|
+
import { File } from "./File";
|
|
4
6
|
export interface TopComment {
|
|
5
7
|
id: string;
|
|
6
8
|
user: User;
|
|
@@ -8,6 +10,7 @@ export interface TopComment {
|
|
|
8
10
|
content: string;
|
|
9
11
|
createdAt: string;
|
|
10
12
|
}
|
|
13
|
+
export type EntityFile = File;
|
|
11
14
|
export interface Entity {
|
|
12
15
|
id: string;
|
|
13
16
|
foreignId: string | null;
|
|
@@ -21,9 +24,12 @@ export interface Entity {
|
|
|
21
24
|
content: string | null;
|
|
22
25
|
mentions: Mention[];
|
|
23
26
|
attachments: Record<string, any>[];
|
|
27
|
+
files?: EntityFile[];
|
|
24
28
|
keywords: string[];
|
|
25
29
|
upvotes: string[];
|
|
26
30
|
downvotes: string[];
|
|
31
|
+
reactionCounts: ReactionCounts;
|
|
32
|
+
userReaction?: ReactionType | null;
|
|
27
33
|
repliesCount: number;
|
|
28
34
|
views: number;
|
|
29
35
|
score: number;
|
|
@@ -34,10 +40,17 @@ export interface Entity {
|
|
|
34
40
|
} | null;
|
|
35
41
|
metadata: Record<string, any>;
|
|
36
42
|
topComment: TopComment | null;
|
|
43
|
+
isSaved?: boolean;
|
|
37
44
|
createdAt: Date;
|
|
38
45
|
updatedAt: Date;
|
|
39
46
|
deletedAt: Date | null;
|
|
47
|
+
isDraft: boolean | null;
|
|
48
|
+
moderationStatus: "approved" | "removed" | null;
|
|
49
|
+
moderatedAt: Date | null;
|
|
50
|
+
moderatedById: string | null;
|
|
51
|
+
moderatedByType: "client" | "user" | null;
|
|
52
|
+
moderationReason: string | null;
|
|
40
53
|
}
|
|
41
|
-
export type EntityInclude = "space" | "user" | "topComment";
|
|
54
|
+
export type EntityInclude = "space" | "user" | "topComment" | "saved" | "files";
|
|
42
55
|
export type EntityIncludeArray = EntityInclude[];
|
|
43
56
|
export type EntityIncludeParam = string | EntityIncludeArray;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export interface FileImageVariant {
|
|
2
|
+
path: string;
|
|
3
|
+
publicPath: string;
|
|
4
|
+
width: number;
|
|
5
|
+
height: number;
|
|
6
|
+
size: number;
|
|
7
|
+
format: string;
|
|
8
|
+
}
|
|
9
|
+
export interface FileImage {
|
|
10
|
+
fileId: string;
|
|
11
|
+
originalWidth: number;
|
|
12
|
+
originalHeight: number;
|
|
13
|
+
variants: Record<string, FileImageVariant>;
|
|
14
|
+
processingStatus: "completed" | "failed";
|
|
15
|
+
processingError: string | null;
|
|
16
|
+
format: string;
|
|
17
|
+
quality: number;
|
|
18
|
+
exifStripped: boolean;
|
|
19
|
+
createdAt: Date;
|
|
20
|
+
updatedAt: Date;
|
|
21
|
+
}
|
|
22
|
+
export interface File {
|
|
23
|
+
id: string;
|
|
24
|
+
projectId: string;
|
|
25
|
+
userId: string | null;
|
|
26
|
+
entityId: string | null;
|
|
27
|
+
commentId: string | null;
|
|
28
|
+
spaceId: string | null;
|
|
29
|
+
type: "image" | "video" | "document" | "other";
|
|
30
|
+
originalPath: string;
|
|
31
|
+
originalSize: number;
|
|
32
|
+
originalMimeType: string;
|
|
33
|
+
position: number;
|
|
34
|
+
metadata: Record<string, any>;
|
|
35
|
+
image?: FileImage;
|
|
36
|
+
createdAt: Date;
|
|
37
|
+
updatedAt: Date;
|
|
38
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"File.js","sourceRoot":"","sources":["../../../../src/interfaces/models/File.ts"],"names":[],"mappings":""}
|