@amityco/ts-sdk 7.18.0 → 7.18.1-16ac33a.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/__mocks__/marker/api/getMessageMarkers.d.ts +3 -0
- package/dist/__mocks__/marker/api/getMessageMarkers.d.ts.map +1 -0
- package/dist/__mocks__/marker/api/getSubChannelMarkers.d.ts +3 -0
- package/dist/__mocks__/marker/api/getSubChannelMarkers.d.ts.map +1 -0
- package/dist/__mocks__/marker/api/index.d.ts +6 -0
- package/dist/__mocks__/marker/api/index.d.ts.map +1 -0
- package/dist/adRepository/api/tests/integration/getNetworkAds.integration.test.d.ts +2 -0
- package/dist/adRepository/api/tests/integration/getNetworkAds.integration.test.d.ts.map +1 -0
- package/dist/categoryRepository/api/tests/integration/getCategory.integration.test.d.ts +2 -0
- package/dist/categoryRepository/api/tests/integration/getCategory.integration.test.d.ts.map +1 -0
- package/dist/categoryRepository/internalApi/tests/integration/getCategory.integration.test.d.ts +2 -0
- package/dist/categoryRepository/internalApi/tests/integration/getCategory.integration.test.d.ts.map +1 -0
- package/dist/categoryRepository/internalApi/tests/integration/queryCategories.integration.test.d.ts +2 -0
- package/dist/categoryRepository/internalApi/tests/integration/queryCategories.integration.test.d.ts.map +1 -0
- package/dist/categoryRepository/observers/getCategories.d.ts.map +1 -1
- package/dist/categoryRepository/observers/tests/integration/getCategories.integration.test.d.ts +2 -0
- package/dist/categoryRepository/observers/tests/integration/getCategories.integration.test.d.ts.map +1 -0
- package/dist/categoryRepository/observers/tests/integration/setup.d.ts +10 -0
- package/dist/categoryRepository/observers/tests/integration/setup.d.ts.map +1 -0
- package/dist/channelRepository/api/createChannel.d.ts.map +1 -1
- package/dist/channelRepository/api/tests/integration/createChannel.integration.test.d.ts +2 -0
- package/dist/channelRepository/api/tests/integration/createChannel.integration.test.d.ts.map +1 -0
- package/dist/channelRepository/api/tests/integration/deleteChannel.integration.test.d.ts +2 -0
- package/dist/channelRepository/api/tests/integration/deleteChannel.integration.test.d.ts.map +1 -0
- package/dist/channelRepository/api/tests/integration/getChannelByIds.integration.test.d.ts +2 -0
- package/dist/channelRepository/api/tests/integration/getChannelByIds.integration.test.d.ts.map +1 -0
- package/dist/channelRepository/api/tests/integration/joinChannel.integration.test.d.ts +2 -0
- package/dist/channelRepository/api/tests/integration/joinChannel.integration.test.d.ts.map +1 -0
- package/dist/channelRepository/api/tests/integration/leaveChannel.integration.test.d.ts +2 -0
- package/dist/channelRepository/api/tests/integration/leaveChannel.integration.test.d.ts.map +1 -0
- package/dist/channelRepository/api/tests/integration/markChannelsAsReadBySegment.integration.test.d.ts +2 -0
- package/dist/channelRepository/api/tests/integration/markChannelsAsReadBySegment.integration.test.d.ts.map +1 -0
- package/dist/channelRepository/api/tests/integration/muteChannel.integration.test.d.ts +2 -0
- package/dist/channelRepository/api/tests/integration/muteChannel.integration.test.d.ts.map +1 -0
- package/dist/channelRepository/api/tests/integration/queryChannels.integration.test.d.ts +2 -0
- package/dist/channelRepository/api/tests/integration/queryChannels.integration.test.d.ts.map +1 -0
- package/dist/channelRepository/api/tests/integration/unmuteChannel.integration.test.d.ts +2 -0
- package/dist/channelRepository/api/tests/integration/unmuteChannel.integration.test.d.ts.map +1 -0
- package/dist/channelRepository/api/tests/integration/updateChannel.integration.test.d.ts +2 -0
- package/dist/channelRepository/api/tests/integration/updateChannel.integration.test.d.ts.map +1 -0
- package/dist/channelRepository/observers/getChannel.d.ts.map +1 -1
- package/dist/channelRepository/observers/tests/integrations/getChannel.integration.test.d.ts +2 -0
- package/dist/channelRepository/observers/tests/integrations/getChannel.integration.test.d.ts.map +1 -0
- package/dist/channelRepository/observers/tests/integrations/getChannels.integration.test.d.ts +2 -0
- package/dist/channelRepository/observers/tests/integrations/getChannels.integration.test.d.ts.map +1 -0
- package/dist/channelRepository/observers/tests/integrations/getMyMembership.integration.test.d.ts +2 -0
- package/dist/channelRepository/observers/tests/integrations/getMyMembership.integration.test.d.ts.map +1 -0
- package/dist/channelRepository/observers/tests/integrations/getMyMembership.noUser.integration.test.d.ts +2 -0
- package/dist/channelRepository/observers/tests/integrations/getMyMembership.noUser.integration.test.d.ts.map +1 -0
- package/dist/channelRepository/observers/tests/integrations/getTotalChannelsUnread.integration.test.d.ts +2 -0
- package/dist/channelRepository/observers/tests/integrations/getTotalChannelsUnread.integration.test.d.ts.map +1 -0
- package/dist/channelRepository/observers/tests/integrations/getTotalChannelsUnread.noUser.integration.test.d.ts +2 -0
- package/dist/channelRepository/observers/tests/integrations/getTotalChannelsUnread.noUser.integration.test.d.ts.map +1 -0
- package/dist/channelRepository/utils/prepareChannelPayload.d.ts.map +1 -1
- package/dist/client/api/tests/integration/accessTokenExpiryWatcher.integration.test.d.ts +2 -0
- package/dist/client/api/tests/integration/accessTokenExpiryWatcher.integration.test.d.ts.map +1 -0
- package/dist/client/api/tests/integration/accessTokenFunctions.integration.test.d.ts +2 -0
- package/dist/client/api/tests/integration/accessTokenFunctions.integration.test.d.ts.map +1 -0
- package/dist/client/api/tests/integration/activeUser.branches.integration.test.d.ts +2 -0
- package/dist/client/api/tests/integration/activeUser.branches.integration.test.d.ts.map +1 -0
- package/dist/client/api/tests/integration/activeUser.noUser.integration.test.d.ts +2 -0
- package/dist/client/api/tests/integration/activeUser.noUser.integration.test.d.ts.map +1 -0
- package/dist/client/api/tests/integration/createClient.branches.integration.test.d.ts +2 -0
- package/dist/client/api/tests/integration/createClient.branches.integration.test.d.ts.map +1 -0
- package/dist/client/api/tests/integration/createClient.integration.test.d.ts +2 -0
- package/dist/client/api/tests/integration/createClient.integration.test.d.ts.map +1 -0
- package/dist/client/api/tests/integration/getSettings.integration.test.d.ts +2 -0
- package/dist/client/api/tests/integration/getSettings.integration.test.d.ts.map +1 -0
- package/dist/client/api/tests/integration/login.branches.integration.test.d.ts +2 -0
- package/dist/client/api/tests/integration/login.branches.integration.test.d.ts.map +1 -0
- package/dist/client/api/tests/integration/login.integration.test.d.ts +2 -0
- package/dist/client/api/tests/integration/login.integration.test.d.ts.map +1 -0
- package/dist/client/api/tests/integration/loginAlternate.integration.test.d.ts +2 -0
- package/dist/client/api/tests/integration/loginAlternate.integration.test.d.ts.map +1 -0
- package/dist/client/api/tests/integration/loginAsBot.catch.integration.test.d.ts +2 -0
- package/dist/client/api/tests/integration/loginAsBot.catch.integration.test.d.ts.map +1 -0
- package/dist/client/api/tests/integration/loginAsBot.integration.test.d.ts +2 -0
- package/dist/client/api/tests/integration/loginAsBot.integration.test.d.ts.map +1 -0
- package/dist/client/api/tests/integration/loginAsBotTerminated.integration.test.d.ts +2 -0
- package/dist/client/api/tests/integration/loginAsBotTerminated.integration.test.d.ts.map +1 -0
- package/dist/client/api/tests/integration/loginAsVisitor.integration.test.d.ts +2 -0
- package/dist/client/api/tests/integration/loginAsVisitor.integration.test.d.ts.map +1 -0
- package/dist/client/api/tests/integration/loginAsVisitorTerminated.integration.test.d.ts +2 -0
- package/dist/client/api/tests/integration/loginAsVisitorTerminated.integration.test.d.ts.map +1 -0
- package/dist/client/api/tests/integration/logout.branches.integration.test.d.ts +2 -0
- package/dist/client/api/tests/integration/logout.branches.integration.test.d.ts.map +1 -0
- package/dist/client/api/tests/integration/resumeSession.integration.test.d.ts +2 -0
- package/dist/client/api/tests/integration/resumeSession.integration.test.d.ts.map +1 -0
- package/dist/client/api/tests/integration/resumeSessionLegacy.integration.test.d.ts +2 -0
- package/dist/client/api/tests/integration/resumeSessionLegacy.integration.test.d.ts.map +1 -0
- package/dist/client/api/tests/integration/sessionState.integration.test.d.ts +2 -0
- package/dist/client/api/tests/integration/sessionState.integration.test.d.ts.map +1 -0
- package/dist/client/api/tests/integration/setupLoginSubscriptions.branches.integration.test.d.ts +2 -0
- package/dist/client/api/tests/integration/setupLoginSubscriptions.branches.integration.test.d.ts.map +1 -0
- package/dist/client/api/tests/integration/setupLoginSubscriptions.legacyUnread.integration.test.d.ts +2 -0
- package/dist/client/api/tests/integration/setupLoginSubscriptions.legacyUnread.integration.test.d.ts.map +1 -0
- package/dist/client/api/tests/integration/utilities.integration.test.d.ts +2 -0
- package/dist/client/api/tests/integration/utilities.integration.test.d.ts.map +1 -0
- package/dist/client/api/tests/integration/validateAndTerminate.integration.test.d.ts +2 -0
- package/dist/client/api/tests/integration/validateAndTerminate.integration.test.d.ts.map +1 -0
- package/dist/client/observers/tests/integrations/getUserUnread.integration.test.d.ts +2 -0
- package/dist/client/observers/tests/integrations/getUserUnread.integration.test.d.ts.map +1 -0
- package/dist/client/observers/tests/integrations/getUserUnreadEdgeCases.integration.test.d.ts +2 -0
- package/dist/client/observers/tests/integrations/getUserUnreadEdgeCases.integration.test.d.ts.map +1 -0
- package/dist/commentRepository/api/tests/getComment.test.d.ts +2 -0
- package/dist/commentRepository/api/tests/getComment.test.d.ts.map +1 -0
- package/dist/commentRepository/events/utils.d.ts.map +1 -1
- package/dist/commentRepository/observers/tests/integrations/getComment.integration.test.d.ts +2 -0
- package/dist/commentRepository/observers/tests/integrations/getComment.integration.test.d.ts.map +1 -0
- package/dist/commentRepository/observers/tests/integrations/getComments.integration.test.d.ts +2 -0
- package/dist/commentRepository/observers/tests/integrations/getComments.integration.test.d.ts.map +1 -0
- package/dist/communityRepository/api/queryCommunities.d.ts.map +1 -1
- package/dist/communityRepository/api/test/integration/createCommunity.integration.test.d.ts +2 -0
- package/dist/communityRepository/api/test/integration/createCommunity.integration.test.d.ts.map +1 -0
- package/dist/communityRepository/api/test/integration/deleteCommunity.integration.test.d.ts +2 -0
- package/dist/communityRepository/api/test/integration/deleteCommunity.integration.test.d.ts.map +1 -0
- package/dist/communityRepository/api/test/integration/getCommunities.integration.test.d.ts +2 -0
- package/dist/communityRepository/api/test/integration/getCommunities.integration.test.d.ts.map +1 -0
- package/dist/communityRepository/api/test/integration/getCommunity.integration.test.d.ts +2 -0
- package/dist/communityRepository/api/test/integration/getCommunity.integration.test.d.ts.map +1 -0
- package/dist/communityRepository/api/test/integration/getRecommendedCommunities.integration.test.d.ts +2 -0
- package/dist/communityRepository/api/test/integration/getRecommendedCommunities.integration.test.d.ts.map +1 -0
- package/dist/communityRepository/api/test/integration/getTrendingCommunities.integration.test.d.ts +2 -0
- package/dist/communityRepository/api/test/integration/getTrendingCommunities.integration.test.d.ts.map +1 -0
- package/dist/communityRepository/api/test/integration/joinCommunity.integration.test.d.ts +2 -0
- package/dist/communityRepository/api/test/integration/joinCommunity.integration.test.d.ts.map +1 -0
- package/dist/communityRepository/api/test/integration/leaveCommunity.integration.test.d.ts +2 -0
- package/dist/communityRepository/api/test/integration/leaveCommunity.integration.test.d.ts.map +1 -0
- package/dist/communityRepository/api/test/integration/queryCommunities.integration.test.d.ts +2 -0
- package/dist/communityRepository/api/test/integration/queryCommunities.integration.test.d.ts.map +1 -0
- package/dist/communityRepository/api/test/integration/setup.d.ts +17 -0
- package/dist/communityRepository/api/test/integration/setup.d.ts.map +1 -0
- package/dist/communityRepository/api/test/integration/updateCommunity.integration.test.d.ts +2 -0
- package/dist/communityRepository/api/test/integration/updateCommunity.integration.test.d.ts.map +1 -0
- package/dist/communityRepository/communityMembership/api/tests/integration/addMembers.integration.test.d.ts +2 -0
- package/dist/communityRepository/communityMembership/api/tests/integration/addMembers.integration.test.d.ts.map +1 -0
- package/dist/communityRepository/communityMembership/api/tests/integration/queryCommunityMembers.integration.test.d.ts +2 -0
- package/dist/communityRepository/communityMembership/api/tests/integration/queryCommunityMembers.integration.test.d.ts.map +1 -0
- package/dist/communityRepository/communityMembership/api/tests/integration/removeMembers.integration.test.d.ts +2 -0
- package/dist/communityRepository/communityMembership/api/tests/integration/removeMembers.integration.test.d.ts.map +1 -0
- package/dist/communityRepository/communityMembership/api/tests/integration/setup.d.ts +10 -0
- package/dist/communityRepository/communityMembership/api/tests/integration/setup.d.ts.map +1 -0
- package/dist/communityRepository/communityMembership/observers/tests/integration/getMembers.integration.test.d.ts +2 -0
- package/dist/communityRepository/communityMembership/observers/tests/integration/getMembers.integration.test.d.ts.map +1 -0
- package/dist/communityRepository/communityMembership/observers/tests/integration/searchMembers.integration.test.d.ts +2 -0
- package/dist/communityRepository/communityMembership/observers/tests/integration/searchMembers.integration.test.d.ts.map +1 -0
- package/dist/communityRepository/communityMembership/observers/tests/integration/setup.d.ts +8 -0
- package/dist/communityRepository/communityMembership/observers/tests/integration/setup.d.ts.map +1 -0
- package/dist/communityRepository/communityModeration/api/test/integration/addRoles.integration.test.d.ts +2 -0
- package/dist/communityRepository/communityModeration/api/test/integration/addRoles.integration.test.d.ts.map +1 -0
- package/dist/communityRepository/communityModeration/api/test/integration/banMembers.integration.test.d.ts +2 -0
- package/dist/communityRepository/communityModeration/api/test/integration/banMembers.integration.test.d.ts.map +1 -0
- package/dist/communityRepository/communityModeration/api/test/integration/removeRoles.integration.test.d.ts +2 -0
- package/dist/communityRepository/communityModeration/api/test/integration/removeRoles.integration.test.d.ts.map +1 -0
- package/dist/communityRepository/communityModeration/api/test/integration/setup.d.ts +14 -0
- package/dist/communityRepository/communityModeration/api/test/integration/setup.d.ts.map +1 -0
- package/dist/communityRepository/communityModeration/api/test/integration/unbanMembers.integration.test.d.ts +2 -0
- package/dist/communityRepository/communityModeration/api/test/integration/unbanMembers.integration.test.d.ts.map +1 -0
- package/dist/communityRepository/observers/tests/integration/getCommunities.integration.test.d.ts +2 -0
- package/dist/communityRepository/observers/tests/integration/getCommunities.integration.test.d.ts.map +1 -0
- package/dist/communityRepository/observers/tests/integration/getCommunity.integration.test.d.ts +2 -0
- package/dist/communityRepository/observers/tests/integration/getCommunity.integration.test.d.ts.map +1 -0
- package/dist/communityRepository/observers/tests/integration/getJoinRequestList.integration.test.d.ts +2 -0
- package/dist/communityRepository/observers/tests/integration/getJoinRequestList.integration.test.d.ts.map +1 -0
- package/dist/communityRepository/observers/tests/integration/getJoinRequests.integration.test.d.ts +2 -0
- package/dist/communityRepository/observers/tests/integration/getJoinRequests.integration.test.d.ts.map +1 -0
- package/dist/communityRepository/observers/tests/integration/getRecommendedCommunities.integration.test.d.ts +2 -0
- package/dist/communityRepository/observers/tests/integration/getRecommendedCommunities.integration.test.d.ts.map +1 -0
- package/dist/communityRepository/observers/tests/integration/getTrendingCommunities.integration.test.d.ts +2 -0
- package/dist/communityRepository/observers/tests/integration/getTrendingCommunities.integration.test.d.ts.map +1 -0
- package/dist/communityRepository/observers/tests/integration/searchCommunities.integration.test.d.ts +2 -0
- package/dist/communityRepository/observers/tests/integration/searchCommunities.integration.test.d.ts.map +1 -0
- package/dist/communityRepository/observers/tests/integration/semanticSearchCommunities.integration.test.d.ts +2 -0
- package/dist/communityRepository/observers/tests/integration/semanticSearchCommunities.integration.test.d.ts.map +1 -0
- package/dist/communityRepository/observers/tests/integration/setup.d.ts +21 -0
- package/dist/communityRepository/observers/tests/integration/setup.d.ts.map +1 -0
- package/dist/core/transports/mqtt.d.ts.map +1 -1
- package/dist/eventRepository/api/tests/integration/createEvent.integration.test.d.ts +2 -0
- package/dist/eventRepository/api/tests/integration/createEvent.integration.test.d.ts.map +1 -0
- package/dist/eventRepository/api/tests/integration/deleteEvent.integration.test.d.ts +2 -0
- package/dist/eventRepository/api/tests/integration/deleteEvent.integration.test.d.ts.map +1 -0
- package/dist/eventRepository/api/tests/integration/updateEvent.integration.test.d.ts +2 -0
- package/dist/eventRepository/api/tests/integration/updateEvent.integration.test.d.ts.map +1 -0
- package/dist/eventRepository/internalApi/tests/integration/createRSVP.integration.test.d.ts +2 -0
- package/dist/eventRepository/internalApi/tests/integration/createRSVP.integration.test.d.ts.map +1 -0
- package/dist/eventRepository/internalApi/tests/integration/getEvent.integration.test.d.ts +2 -0
- package/dist/eventRepository/internalApi/tests/integration/getEvent.integration.test.d.ts.map +1 -0
- package/dist/eventRepository/internalApi/tests/integration/getMyRSVP.integration.test.d.ts +2 -0
- package/dist/eventRepository/internalApi/tests/integration/getMyRSVP.integration.test.d.ts.map +1 -0
- package/dist/eventRepository/internalApi/tests/integration/updateRSVP.integration.test.d.ts +2 -0
- package/dist/eventRepository/internalApi/tests/integration/updateRSVP.integration.test.d.ts.map +1 -0
- package/dist/eventRepository/observers/tests/integrations/getEvent.integration.test.d.ts +2 -0
- package/dist/eventRepository/observers/tests/integrations/getEvent.integration.test.d.ts.map +1 -0
- package/dist/eventRepository/observers/tests/integrations/getEvents.integration.test.d.ts +2 -0
- package/dist/eventRepository/observers/tests/integrations/getEvents.integration.test.d.ts.map +1 -0
- package/dist/eventRepository/observers/tests/integrations/getMyEvents.integration.test.d.ts +2 -0
- package/dist/eventRepository/observers/tests/integrations/getMyEvents.integration.test.d.ts.map +1 -0
- package/dist/eventRepository/observers/tests/integrations/getRSVPs.integration.test.d.ts +2 -0
- package/dist/eventRepository/observers/tests/integrations/getRSVPs.integration.test.d.ts.map +1 -0
- package/dist/eventRepository/utils/createEventResponseSubscriber.d.ts +7 -1
- package/dist/eventRepository/utils/createEventResponseSubscriber.d.ts.map +1 -1
- package/dist/external/api/tests/integration/createUserToken.integration.test.d.ts +2 -0
- package/dist/external/api/tests/integration/createUserToken.integration.test.d.ts.map +1 -0
- package/dist/feedRepository/api/tests/integration/queryGlobalFeed.integration.test.d.ts +2 -0
- package/dist/feedRepository/api/tests/integration/queryGlobalFeed.integration.test.d.ts.map +1 -0
- package/dist/feedRepository/observers/tests/integration/getCommunityFeed.integration.test.d.ts +2 -0
- package/dist/feedRepository/observers/tests/integration/getCommunityFeed.integration.test.d.ts.map +1 -0
- package/dist/feedRepository/observers/tests/integration/getCustomRankingGlobalFeed.integration.test.d.ts +2 -0
- package/dist/feedRepository/observers/tests/integration/getCustomRankingGlobalFeed.integration.test.d.ts.map +1 -0
- package/dist/feedRepository/observers/tests/integration/getGlobalFeed.integration.test.d.ts +2 -0
- package/dist/feedRepository/observers/tests/integration/getGlobalFeed.integration.test.d.ts.map +1 -0
- package/dist/feedRepository/observers/tests/integration/getUserFeed.integration.test.d.ts +2 -0
- package/dist/feedRepository/observers/tests/integration/getUserFeed.integration.test.d.ts.map +1 -0
- package/dist/feedRepository/observers/utils.d.ts.map +1 -1
- package/dist/fileRepository/api/tests/integration/deleteFile.integration.test.d.ts +2 -0
- package/dist/fileRepository/api/tests/integration/deleteFile.integration.test.d.ts.map +1 -0
- package/dist/fileRepository/api/tests/integration/fileUrlWithSize.integration.test.d.ts +2 -0
- package/dist/fileRepository/api/tests/integration/fileUrlWithSize.integration.test.d.ts.map +1 -0
- package/dist/fileRepository/api/tests/integration/getFile.integration.test.d.ts +2 -0
- package/dist/fileRepository/api/tests/integration/getFile.integration.test.d.ts.map +1 -0
- package/dist/fileRepository/api/tests/integration/updateAltText.integration.test.d.ts +2 -0
- package/dist/fileRepository/api/tests/integration/updateAltText.integration.test.d.ts.map +1 -0
- package/dist/fileRepository/api/tests/integration/uploadAudio.integration.test.d.ts +2 -0
- package/dist/fileRepository/api/tests/integration/uploadAudio.integration.test.d.ts.map +1 -0
- package/dist/fileRepository/api/tests/integration/uploadClip.integration.test.d.ts +2 -0
- package/dist/fileRepository/api/tests/integration/uploadClip.integration.test.d.ts.map +1 -0
- package/dist/fileRepository/api/tests/integration/uploadFile.integration.test.d.ts +2 -0
- package/dist/fileRepository/api/tests/integration/uploadFile.integration.test.d.ts.map +1 -0
- package/dist/fileRepository/api/tests/integration/uploadImage.integration.test.d.ts +2 -0
- package/dist/fileRepository/api/tests/integration/uploadImage.integration.test.d.ts.map +1 -0
- package/dist/fileRepository/api/tests/integration/uploadVideo.integration.test.d.ts +2 -0
- package/dist/fileRepository/api/tests/integration/uploadVideo.integration.test.d.ts.map +1 -0
- package/dist/index.cjs.js +286 -244
- package/dist/index.esm.js +286 -244
- package/dist/index.umd.js +3 -3
- package/dist/invitationRepository/api/tests/integration/cancelInvitation.integration.test.d.ts +2 -0
- package/dist/invitationRepository/api/tests/integration/cancelInvitation.integration.test.d.ts.map +1 -0
- package/dist/invitationRepository/observers/tests/integrations/getInvitations.integration.test.d.ts +2 -0
- package/dist/invitationRepository/observers/tests/integrations/getInvitations.integration.test.d.ts.map +1 -0
- package/dist/invitationRepository/observers/tests/integrations/getInvitations.noUser.integration.test.d.ts +2 -0
- package/dist/invitationRepository/observers/tests/integrations/getInvitations.noUser.integration.test.d.ts.map +1 -0
- package/dist/invitationRepository/observers/tests/integrations/getMyCommunityInvitations.integration.test.d.ts +2 -0
- package/dist/invitationRepository/observers/tests/integrations/getMyCommunityInvitations.integration.test.d.ts.map +1 -0
- package/dist/liveReactionRepository/api/tests/integration/createReaction.integration.test.d.ts +2 -0
- package/dist/liveReactionRepository/api/tests/integration/createReaction.integration.test.d.ts.map +1 -0
- package/dist/liveReactionRepository/events/tests/integration/onLiveReactionCreated.integration.test.d.ts +2 -0
- package/dist/liveReactionRepository/events/tests/integration/onLiveReactionCreated.integration.test.d.ts.map +1 -0
- package/dist/liveReactionRepository/observers/tests/integrations/getReactions.integration.test.d.ts +2 -0
- package/dist/liveReactionRepository/observers/tests/integrations/getReactions.integration.test.d.ts.map +1 -0
- package/dist/liveReactionRepository/observers/tests/integrations/getReactions.noUser.integration.test.d.ts +2 -0
- package/dist/liveReactionRepository/observers/tests/integrations/getReactions.noUser.integration.test.d.ts.map +1 -0
- package/dist/messageRepository/api/tests/integration/createMessage.integration.test.d.ts +2 -0
- package/dist/messageRepository/api/tests/integration/createMessage.integration.test.d.ts.map +1 -0
- package/dist/messageRepository/api/tests/integration/deleteMessage.integration.test.d.ts +2 -0
- package/dist/messageRepository/api/tests/integration/deleteMessage.integration.test.d.ts.map +1 -0
- package/dist/messageRepository/api/tests/integration/editMessage.integration.test.d.ts +2 -0
- package/dist/messageRepository/api/tests/integration/editMessage.integration.test.d.ts.map +1 -0
- package/dist/messageRepository/api/tests/integration/flagMessage.integration.test.d.ts +2 -0
- package/dist/messageRepository/api/tests/integration/flagMessage.integration.test.d.ts.map +1 -0
- package/dist/messageRepository/api/tests/integration/getDeliveredUsers.integration.test.d.ts +2 -0
- package/dist/messageRepository/api/tests/integration/getDeliveredUsers.integration.test.d.ts.map +1 -0
- package/dist/messageRepository/api/tests/integration/getReadUsers.integration.test.d.ts +2 -0
- package/dist/messageRepository/api/tests/integration/getReadUsers.integration.test.d.ts.map +1 -0
- package/dist/messageRepository/api/tests/integration/isMessageFlaggedByMe.integration.test.d.ts +2 -0
- package/dist/messageRepository/api/tests/integration/isMessageFlaggedByMe.integration.test.d.ts.map +1 -0
- package/dist/messageRepository/api/tests/integration/markAsDelivered.integration.test.d.ts +2 -0
- package/dist/messageRepository/api/tests/integration/markAsDelivered.integration.test.d.ts.map +1 -0
- package/dist/messageRepository/api/tests/integration/queryMessages.integration.test.d.ts +2 -0
- package/dist/messageRepository/api/tests/integration/queryMessages.integration.test.d.ts.map +1 -0
- package/dist/messageRepository/api/tests/integration/softDeleteMessage.integration.test.d.ts +2 -0
- package/dist/messageRepository/api/tests/integration/softDeleteMessage.integration.test.d.ts.map +1 -0
- package/dist/messageRepository/api/tests/integration/unflagMessage.integration.test.d.ts +2 -0
- package/dist/messageRepository/api/tests/integration/unflagMessage.integration.test.d.ts.map +1 -0
- package/dist/messageRepository/api/tests/integration/updateMessage.integration.test.d.ts +2 -0
- package/dist/messageRepository/api/tests/integration/updateMessage.integration.test.d.ts.map +1 -0
- package/dist/messageRepository/observers/tests/integration/getMessage.integration.test.d.ts +2 -0
- package/dist/messageRepository/observers/tests/integration/getMessage.integration.test.d.ts.map +1 -0
- package/dist/messageRepository/observers/tests/integration/getMessages.integration.test.d.ts +2 -0
- package/dist/messageRepository/observers/tests/integration/getMessages.integration.test.d.ts.map +1 -0
- package/dist/notificationTray/api/tests/integration/markItemsSeen.integration.test.d.ts +2 -0
- package/dist/notificationTray/api/tests/integration/markItemsSeen.integration.test.d.ts.map +1 -0
- package/dist/notificationTray/api/tests/integration/markTraySeen.integration.test.d.ts +2 -0
- package/dist/notificationTray/api/tests/integration/markTraySeen.integration.test.d.ts.map +1 -0
- package/dist/notificationTray/events/tests/integrations/onNotificationTraySeenUpdated.integration.test.d.ts +2 -0
- package/dist/notificationTray/events/tests/integrations/onNotificationTraySeenUpdated.integration.test.d.ts.map +1 -0
- package/dist/notificationTray/internalApi/tests/integration/getNotificationTraySeen.integration.test.d.ts +2 -0
- package/dist/notificationTray/internalApi/tests/integration/getNotificationTraySeen.integration.test.d.ts.map +1 -0
- package/dist/notificationTray/observers/tests/integrations/getNotificationTrayItems.integration.test.d.ts +2 -0
- package/dist/notificationTray/observers/tests/integrations/getNotificationTrayItems.integration.test.d.ts.map +1 -0
- package/dist/notificationTray/observers/tests/integrations/getNotificationTraySeen.integration.test.d.ts +2 -0
- package/dist/notificationTray/observers/tests/integrations/getNotificationTraySeen.integration.test.d.ts.map +1 -0
- package/dist/pollRepository/api/tests/integration/closePoll.integration.test.d.ts +2 -0
- package/dist/pollRepository/api/tests/integration/closePoll.integration.test.d.ts.map +1 -0
- package/dist/pollRepository/api/tests/integration/createPoll.integration.test.d.ts +2 -0
- package/dist/pollRepository/api/tests/integration/createPoll.integration.test.d.ts.map +1 -0
- package/dist/pollRepository/api/tests/integration/deletePoll.integration.test.d.ts +2 -0
- package/dist/pollRepository/api/tests/integration/deletePoll.integration.test.d.ts.map +1 -0
- package/dist/pollRepository/api/tests/integration/getPoll.integration.test.d.ts +2 -0
- package/dist/pollRepository/api/tests/integration/getPoll.integration.test.d.ts.map +1 -0
- package/dist/pollRepository/api/tests/integration/unvotePoll.integration.test.d.ts +2 -0
- package/dist/pollRepository/api/tests/integration/unvotePoll.integration.test.d.ts.map +1 -0
- package/dist/pollRepository/api/tests/integration/votePoll.integration.test.d.ts +2 -0
- package/dist/pollRepository/api/tests/integration/votePoll.integration.test.d.ts.map +1 -0
- package/dist/pollRepository/observers/tests/integrations/getPoll.integration.test.d.ts +2 -0
- package/dist/pollRepository/observers/tests/integrations/getPoll.integration.test.d.ts.map +1 -0
- package/dist/postRepository/api/createAudioPost.d.ts.map +1 -1
- package/dist/postRepository/api/createClipPost.d.ts.map +1 -1
- package/dist/postRepository/api/createMixedMediaPost.d.ts.map +1 -1
- package/dist/postRepository/api/createPost.d.ts.map +1 -1
- package/dist/postRepository/api/deletePost.d.ts.map +1 -1
- package/dist/postRepository/api/editPost.d.ts.map +1 -1
- package/dist/postRepository/api/getPost.d.ts.map +1 -1
- package/dist/postRepository/api/pinProduct.d.ts.map +1 -1
- package/dist/postRepository/api/tests/integration/approvePost.integration.test.d.ts +2 -0
- package/dist/postRepository/api/tests/integration/approvePost.integration.test.d.ts.map +1 -0
- package/dist/postRepository/api/tests/integration/createOtherPosts.integration.test.d.ts +2 -0
- package/dist/postRepository/api/tests/integration/createOtherPosts.integration.test.d.ts.map +1 -0
- package/dist/postRepository/api/tests/integration/declinePost.integration.test.d.ts +2 -0
- package/dist/postRepository/api/tests/integration/declinePost.integration.test.d.ts.map +1 -0
- package/dist/postRepository/api/tests/integration/deletePost.integration.test.d.ts +2 -0
- package/dist/postRepository/api/tests/integration/deletePost.integration.test.d.ts.map +1 -0
- package/dist/postRepository/api/tests/integration/editPost.integration.test.d.ts +2 -0
- package/dist/postRepository/api/tests/integration/editPost.integration.test.d.ts.map +1 -0
- package/dist/postRepository/api/tests/integration/flagPost.integration.test.d.ts +2 -0
- package/dist/postRepository/api/tests/integration/flagPost.integration.test.d.ts.map +1 -0
- package/dist/postRepository/api/tests/integration/getPostByIds.integration.test.d.ts +2 -0
- package/dist/postRepository/api/tests/integration/getPostByIds.integration.test.d.ts.map +1 -0
- package/dist/postRepository/api/tests/integration/observerCollections.integration.test.d.ts +2 -0
- package/dist/postRepository/api/tests/integration/observerCollections.integration.test.d.ts.map +1 -0
- package/dist/postRepository/api/unpinProduct.d.ts.map +1 -1
- package/dist/postRepository/api/updateProductTags.d.ts.map +1 -1
- package/dist/postRepository/observers/utils.d.ts.map +1 -1
- package/dist/reactionRepository/api/tests/integration/addReaction.integration.test.d.ts +2 -0
- package/dist/reactionRepository/api/tests/integration/addReaction.integration.test.d.ts.map +1 -0
- package/dist/reactionRepository/api/tests/integration/queryReactions.integration.test.d.ts +2 -0
- package/dist/reactionRepository/api/tests/integration/queryReactions.integration.test.d.ts.map +1 -0
- package/dist/reactionRepository/api/tests/integration/queryReactor.integration.test.d.ts +2 -0
- package/dist/reactionRepository/api/tests/integration/queryReactor.integration.test.d.ts.map +1 -0
- package/dist/reactionRepository/api/tests/integration/removeReaction.integration.test.d.ts +2 -0
- package/dist/reactionRepository/api/tests/integration/removeReaction.integration.test.d.ts.map +1 -0
- package/dist/reactionRepository/observers/tests/integrations/getReactions.integration.test.d.ts +2 -0
- package/dist/reactionRepository/observers/tests/integrations/getReactions.integration.test.d.ts.map +1 -0
- package/dist/report/api/tests/integration/createReport.integration.test.d.ts +2 -0
- package/dist/report/api/tests/integration/createReport.integration.test.d.ts.map +1 -0
- package/dist/report/api/tests/integration/deleteReport.integration.test.d.ts +2 -0
- package/dist/report/api/tests/integration/deleteReport.integration.test.d.ts.map +1 -0
- package/dist/report/api/tests/integration/isReportedByMe.integration.test.d.ts +2 -0
- package/dist/report/api/tests/integration/isReportedByMe.integration.test.d.ts.map +1 -0
- package/dist/role/api/tests/integration/getRole.integration.test.d.ts +2 -0
- package/dist/role/api/tests/integration/getRole.integration.test.d.ts.map +1 -0
- package/dist/role/api/tests/integration/queryRoles.integration.test.d.ts +2 -0
- package/dist/role/api/tests/integration/queryRoles.integration.test.d.ts.map +1 -0
- package/dist/roomPresenceRepository/api/tests/integration/getRoomOnlineUsers.integration.test.d.ts +2 -0
- package/dist/roomPresenceRepository/api/tests/integration/getRoomOnlineUsers.integration.test.d.ts.map +1 -0
- package/dist/roomPresenceRepository/api/tests/integration/getRoomUserCount.integration.test.d.ts +2 -0
- package/dist/roomPresenceRepository/api/tests/integration/getRoomUserCount.integration.test.d.ts.map +1 -0
- package/dist/roomPresenceRepository/api/tests/integration/startHeartbeat.integration.test.d.ts +2 -0
- package/dist/roomPresenceRepository/api/tests/integration/startHeartbeat.integration.test.d.ts.map +1 -0
- package/dist/roomPresenceRepository/api/tests/integration/stopHeartbeat.integration.test.d.ts +2 -0
- package/dist/roomPresenceRepository/api/tests/integration/stopHeartbeat.integration.test.d.ts.map +1 -0
- package/dist/roomRepository/api/analytics/WatchSessionStorage.d.ts +1 -1
- package/dist/roomRepository/api/analytics/WatchSessionStorage.d.ts.map +1 -1
- package/dist/roomRepository/api/tests/integration/createRoom.integration.test.d.ts +2 -0
- package/dist/roomRepository/api/tests/integration/createRoom.integration.test.d.ts.map +1 -0
- package/dist/roomRepository/api/tests/integration/deleteRoom.integration.test.d.ts +2 -0
- package/dist/roomRepository/api/tests/integration/deleteRoom.integration.test.d.ts.map +1 -0
- package/dist/roomRepository/api/tests/integration/getBroadcasterData.integration.test.d.ts +2 -0
- package/dist/roomRepository/api/tests/integration/getBroadcasterData.integration.test.d.ts.map +1 -0
- package/dist/roomRepository/api/tests/integration/getRecordedUrl.integration.test.d.ts +2 -0
- package/dist/roomRepository/api/tests/integration/getRecordedUrl.integration.test.d.ts.map +1 -0
- package/dist/roomRepository/api/tests/integration/leaveRoom.integration.test.d.ts +2 -0
- package/dist/roomRepository/api/tests/integration/leaveRoom.integration.test.d.ts.map +1 -0
- package/dist/roomRepository/api/tests/integration/removeParticipant.integration.test.d.ts +2 -0
- package/dist/roomRepository/api/tests/integration/removeParticipant.integration.test.d.ts.map +1 -0
- package/dist/roomRepository/api/tests/integration/roomAnalytics.integration.test.d.ts +2 -0
- package/dist/roomRepository/api/tests/integration/roomAnalytics.integration.test.d.ts.map +1 -0
- package/dist/roomRepository/api/tests/integration/setup.d.ts +12 -0
- package/dist/roomRepository/api/tests/integration/setup.d.ts.map +1 -1
- package/dist/roomRepository/api/tests/integration/stopRoom.integration.test.d.ts +2 -0
- package/dist/roomRepository/api/tests/integration/stopRoom.integration.test.d.ts.map +1 -0
- package/dist/roomRepository/api/tests/integration/updateRoom.integration.test.d.ts +2 -0
- package/dist/roomRepository/api/tests/integration/updateRoom.integration.test.d.ts.map +1 -0
- package/dist/roomRepository/observers/tests/integration/getRoom.integration.test.d.ts +2 -0
- package/dist/roomRepository/observers/tests/integration/getRoom.integration.test.d.ts.map +1 -0
- package/dist/roomRepository/observers/tests/integration/getRooms.integration.test.d.ts +2 -0
- package/dist/roomRepository/observers/tests/integration/getRooms.integration.test.d.ts.map +1 -0
- package/dist/roomRepository/observers/tests/integration/observerUtils.integration.test.d.ts +2 -0
- package/dist/roomRepository/observers/tests/integration/observerUtils.integration.test.d.ts.map +1 -0
- package/dist/roomRepository/observers/tests/integration/setup.d.ts +2 -0
- package/dist/roomRepository/observers/tests/integration/setup.d.ts.map +1 -0
- package/dist/storyRepository/api/tests/integration/createImageStory.integration.test.d.ts +2 -0
- package/dist/storyRepository/api/tests/integration/createImageStory.integration.test.d.ts.map +1 -0
- package/dist/storyRepository/api/tests/integration/createVideoStory.integration.test.d.ts +2 -0
- package/dist/storyRepository/api/tests/integration/createVideoStory.integration.test.d.ts.map +1 -0
- package/dist/storyRepository/api/tests/integration/hardDeleteStory.integration.test.d.ts +2 -0
- package/dist/storyRepository/api/tests/integration/hardDeleteStory.integration.test.d.ts.map +1 -0
- package/dist/storyRepository/api/tests/integration/softDeleteStory.integration.test.d.ts +2 -0
- package/dist/storyRepository/api/tests/integration/softDeleteStory.integration.test.d.ts.map +1 -0
- package/dist/storyRepository/internalApi/tests/integration/getStoryByStoryId.integration.test.d.ts +2 -0
- package/dist/storyRepository/internalApi/tests/integration/getStoryByStoryId.integration.test.d.ts.map +1 -0
- package/dist/storyRepository/observers/tests/integration/getActiveStoriesByTarget.integration.test.d.ts +2 -0
- package/dist/storyRepository/observers/tests/integration/getActiveStoriesByTarget.integration.test.d.ts.map +1 -0
- package/dist/storyRepository/observers/tests/integration/getGlobalStoryTargets.integration.test.d.ts +2 -0
- package/dist/storyRepository/observers/tests/integration/getGlobalStoryTargets.integration.test.d.ts.map +1 -0
- package/dist/storyRepository/observers/tests/integration/getStoriesByTargetIds.integration.test.d.ts +2 -0
- package/dist/storyRepository/observers/tests/integration/getStoriesByTargetIds.integration.test.d.ts.map +1 -0
- package/dist/storyRepository/observers/tests/integration/getStoryByStoryId.integration.test.d.ts +2 -0
- package/dist/storyRepository/observers/tests/integration/getStoryByStoryId.integration.test.d.ts.map +1 -0
- package/dist/storyRepository/observers/tests/integration/getTargetById.integration.test.d.ts +2 -0
- package/dist/storyRepository/observers/tests/integration/getTargetById.integration.test.d.ts.map +1 -0
- package/dist/storyRepository/observers/tests/integration/getTargetsByTargetIds.integration.test.d.ts +2 -0
- package/dist/storyRepository/observers/tests/integration/getTargetsByTargetIds.integration.test.d.ts.map +1 -0
- package/dist/streamRepository/api/tests/integration/createStream.integration.test.d.ts +2 -0
- package/dist/streamRepository/api/tests/integration/createStream.integration.test.d.ts.map +1 -0
- package/dist/streamRepository/api/tests/integration/deleteStream.integration.test.d.ts +2 -0
- package/dist/streamRepository/api/tests/integration/deleteStream.integration.test.d.ts.map +1 -0
- package/dist/streamRepository/api/tests/integration/disposeStream.integration.test.d.ts +2 -0
- package/dist/streamRepository/api/tests/integration/disposeStream.integration.test.d.ts.map +1 -0
- package/dist/streamRepository/api/tests/integration/editStream.integration.test.d.ts +2 -0
- package/dist/streamRepository/api/tests/integration/editStream.integration.test.d.ts.map +1 -0
- package/dist/streamRepository/api/tests/integration/updateStream.integration.test.d.ts +2 -0
- package/dist/streamRepository/api/tests/integration/updateStream.integration.test.d.ts.map +1 -0
- package/dist/streamRepository/observers/tests/integration/getStreamById.integration.test.d.ts +2 -0
- package/dist/streamRepository/observers/tests/integration/getStreamById.integration.test.d.ts.map +1 -0
- package/dist/subChannelRepository/api/deleteSubChannel.d.ts.map +1 -1
- package/dist/subChannelRepository/api/getSubChannel.d.ts.map +1 -1
- package/dist/subChannelRepository/api/tests/integration/createSubChannel.integration.test.d.ts +2 -0
- package/dist/subChannelRepository/api/tests/integration/createSubChannel.integration.test.d.ts.map +1 -0
- package/dist/subChannelRepository/api/tests/integration/deleteSubChannel.integration.test.d.ts +2 -0
- package/dist/subChannelRepository/api/tests/integration/deleteSubChannel.integration.test.d.ts.map +1 -0
- package/dist/subChannelRepository/api/tests/integration/getSubChannel.integration.test.d.ts +2 -0
- package/dist/subChannelRepository/api/tests/integration/getSubChannel.integration.test.d.ts.map +1 -0
- package/dist/subChannelRepository/api/tests/integration/getSubChannels.integration.test.d.ts +2 -0
- package/dist/subChannelRepository/api/tests/integration/getSubChannels.integration.test.d.ts.map +1 -0
- package/dist/subChannelRepository/api/tests/integration/hardDeleteSubChannel.integration.test.d.ts +2 -0
- package/dist/subChannelRepository/api/tests/integration/hardDeleteSubChannel.integration.test.d.ts.map +1 -0
- package/dist/subChannelRepository/api/tests/integration/markAsReadBySegment.integration.test.d.ts +2 -0
- package/dist/subChannelRepository/api/tests/integration/markAsReadBySegment.integration.test.d.ts.map +1 -0
- package/dist/subChannelRepository/api/tests/integration/querySubChannels.integration.test.d.ts +2 -0
- package/dist/subChannelRepository/api/tests/integration/querySubChannels.integration.test.d.ts.map +1 -0
- package/dist/subChannelRepository/api/tests/integration/readingAPI.integration.test.d.ts +2 -0
- package/dist/subChannelRepository/api/tests/integration/readingAPI.integration.test.d.ts.map +1 -0
- package/dist/subChannelRepository/api/tests/integration/softDeleteSubChannel.integration.test.d.ts +2 -0
- package/dist/subChannelRepository/api/tests/integration/softDeleteSubChannel.integration.test.d.ts.map +1 -0
- package/dist/subChannelRepository/api/tests/integration/startReadingAPI.integration.test.d.ts +2 -0
- package/dist/subChannelRepository/api/tests/integration/startReadingAPI.integration.test.d.ts.map +1 -0
- package/dist/subChannelRepository/api/tests/integration/stopReadingAPI.integration.test.d.ts +2 -0
- package/dist/subChannelRepository/api/tests/integration/stopReadingAPI.integration.test.d.ts.map +1 -0
- package/dist/subChannelRepository/api/tests/integration/updateSubChannel.integration.test.d.ts +2 -0
- package/dist/subChannelRepository/api/tests/integration/updateSubChannel.integration.test.d.ts.map +1 -0
- package/dist/subChannelRepository/observers/getSubChannel.d.ts.map +1 -1
- package/dist/subChannelRepository/observers/tests/integrations/getSubChannel.integration.test.d.ts +2 -0
- package/dist/subChannelRepository/observers/tests/integrations/getSubChannel.integration.test.d.ts.map +1 -0
- package/dist/subChannelRepository/observers/tests/integrations/getSubChannels.integration.test.d.ts +2 -0
- package/dist/subChannelRepository/observers/tests/integrations/getSubChannels.integration.test.d.ts.map +1 -0
- package/dist/userRepository/api/queryBlockedUsers.d.ts.map +1 -1
- package/dist/userRepository/api/tests/integration/flagUser.integration.test.d.ts +2 -0
- package/dist/userRepository/api/tests/integration/flagUser.integration.test.d.ts.map +1 -0
- package/dist/userRepository/api/tests/integration/getAllBlockedUsers.integration.test.d.ts +2 -0
- package/dist/userRepository/api/tests/integration/getAllBlockedUsers.integration.test.d.ts.map +1 -0
- package/dist/userRepository/api/tests/integration/getUser.integration.test.d.ts +2 -0
- package/dist/userRepository/api/tests/integration/getUser.integration.test.d.ts.map +1 -0
- package/dist/userRepository/api/tests/integration/getUserByIds.integration.test.d.ts +2 -0
- package/dist/userRepository/api/tests/integration/getUserByIds.integration.test.d.ts.map +1 -0
- package/dist/userRepository/api/tests/integration/isUserFlaggedByMe.integration.test.d.ts +2 -0
- package/dist/userRepository/api/tests/integration/isUserFlaggedByMe.integration.test.d.ts.map +1 -0
- package/dist/userRepository/api/tests/integration/queryBlockedUsers.integration.test.d.ts +2 -0
- package/dist/userRepository/api/tests/integration/queryBlockedUsers.integration.test.d.ts.map +1 -0
- package/dist/userRepository/api/tests/integration/queryUsers.integration.test.d.ts +2 -0
- package/dist/userRepository/api/tests/integration/queryUsers.integration.test.d.ts.map +1 -0
- package/dist/userRepository/api/tests/integration/unflagUser.integration.test.d.ts +2 -0
- package/dist/userRepository/api/tests/integration/unflagUser.integration.test.d.ts.map +1 -0
- package/dist/userRepository/api/tests/integration/updateUser.integration.test.d.ts +2 -0
- package/dist/userRepository/api/tests/integration/updateUser.integration.test.d.ts.map +1 -0
- package/dist/userRepository/observers/tests/integrations/enums.integration.test.d.ts +2 -0
- package/dist/userRepository/observers/tests/integrations/enums.integration.test.d.ts.map +1 -0
- package/dist/userRepository/observers/tests/integrations/getBlockedUsers.integration.test.d.ts +2 -0
- package/dist/userRepository/observers/tests/integrations/getBlockedUsers.integration.test.d.ts.map +1 -0
- package/dist/userRepository/observers/tests/integrations/getReachedUsers.integration.test.d.ts +2 -0
- package/dist/userRepository/observers/tests/integrations/getReachedUsers.integration.test.d.ts.map +1 -0
- package/dist/userRepository/observers/tests/integrations/getUser.integration.test.d.ts +2 -0
- package/dist/userRepository/observers/tests/integrations/getUser.integration.test.d.ts.map +1 -0
- package/dist/userRepository/observers/tests/integrations/getUsers.integration.test.d.ts +2 -0
- package/dist/userRepository/observers/tests/integrations/getUsers.integration.test.d.ts.map +1 -0
- package/dist/userRepository/observers/tests/integrations/searchUserByDisplayName.integration.test.d.ts +2 -0
- package/dist/userRepository/observers/tests/integrations/searchUserByDisplayName.integration.test.d.ts.map +1 -0
- package/dist/utils/tests/dummy/stream.d.ts +4 -11
- package/dist/utils/tests/dummy/stream.d.ts.map +1 -1
- package/package.json +3 -3
package/dist/index.esm.js
CHANGED
|
@@ -20810,12 +20810,7 @@ var MqttError;
|
|
|
20810
20810
|
MqttError[MqttError["NOT_AUTHORIZED"] = 135] = "NOT_AUTHORIZED";
|
|
20811
20811
|
})(MqttError || (MqttError = {}));
|
|
20812
20812
|
function getMqttOptions(params) {
|
|
20813
|
-
return Object.assign({ clean: false, clientId: `mqttjs_ + ${Math.random().toString(16).substring(2, 10)}`, protocolId: 'MQTT', protocolVersion: 4, reconnectPeriod: RETRY_BASE_TIMEOUT,
|
|
20814
|
-
topic: 'WillMsg',
|
|
20815
|
-
payload: 'Connection Closed abnormally..!',
|
|
20816
|
-
qos: 0,
|
|
20817
|
-
retain: false,
|
|
20818
|
-
}, resubscribe: true }, params);
|
|
20813
|
+
return Object.assign({ clean: false, clientId: `mqttjs_ + ${Math.random().toString(16).substring(2, 10)}`, protocolId: 'MQTT', protocolVersion: 4, reconnectPeriod: RETRY_BASE_TIMEOUT, resubscribe: true }, params);
|
|
20819
20814
|
}
|
|
20820
20815
|
/**
|
|
20821
20816
|
* Creates a pre-configured socket.io instance
|
|
@@ -21804,6 +21799,7 @@ const getSubChannel$1 = async (subChannelId) => {
|
|
|
21804
21799
|
};
|
|
21805
21800
|
}
|
|
21806
21801
|
catch (error) {
|
|
21802
|
+
/* c8 ignore next */
|
|
21807
21803
|
if (checkIfShouldGoesToTombstone(error === null || error === void 0 ? void 0 : error.code)) {
|
|
21808
21804
|
pushToTombstone('subChannel', subChannelId);
|
|
21809
21805
|
}
|
|
@@ -22050,31 +22046,33 @@ const preUpdateChannelCache = (rawPayload, options = { isMessagePreviewUpdated:
|
|
|
22050
22046
|
const updateChannelUnread = ({ currentUserId, channels, channelUsers, }) => {
|
|
22051
22047
|
const channelsUnread = [];
|
|
22052
22048
|
for (let i = 0; i < channels.length; i += 1) {
|
|
22053
|
-
|
|
22054
|
-
|
|
22055
|
-
|
|
22056
|
-
|
|
22057
|
-
|
|
22058
|
-
|
|
22059
|
-
|
|
22060
|
-
|
|
22061
|
-
|
|
22062
|
-
|
|
22063
|
-
|
|
22064
|
-
|
|
22065
|
-
|
|
22066
|
-
|
|
22067
|
-
|
|
22068
|
-
|
|
22069
|
-
|
|
22070
|
-
|
|
22071
|
-
|
|
22072
|
-
|
|
22073
|
-
|
|
22074
|
-
|
|
22075
|
-
|
|
22049
|
+
if (isUnreadCountSupport(channels[i])) {
|
|
22050
|
+
const cacheKey = ['channelUnread', 'get', channels[i].channelId];
|
|
22051
|
+
const channelUser = channelUsers.find(channelUser => channelUser.channelId === channels[i].channelId && channelUser.userId === currentUserId);
|
|
22052
|
+
let unreadCount = 0;
|
|
22053
|
+
let readToSegment = null;
|
|
22054
|
+
let lastMentionedSegment = null;
|
|
22055
|
+
let isMentioned = false;
|
|
22056
|
+
if (channelUser) {
|
|
22057
|
+
readToSegment = channelUser.readToSegment;
|
|
22058
|
+
lastMentionedSegment = channelUser.lastMentionedSegment;
|
|
22059
|
+
unreadCount = Math.max(channels[i].messageCount - readToSegment, 0);
|
|
22060
|
+
isMentioned = lastMentionedSegment > readToSegment;
|
|
22061
|
+
}
|
|
22062
|
+
const cacheChannelUnread = {
|
|
22063
|
+
channelId: channels[i].channelId,
|
|
22064
|
+
lastSegment: channels[i].messageCount,
|
|
22065
|
+
readToSegment,
|
|
22066
|
+
lastMentionedSegment,
|
|
22067
|
+
unreadCount,
|
|
22068
|
+
isMentioned,
|
|
22069
|
+
isDeleted: channels[i].isDeleted || false,
|
|
22070
|
+
};
|
|
22071
|
+
pushToCache(cacheKey, cacheChannelUnread);
|
|
22072
|
+
channelsUnread.push(cacheChannelUnread);
|
|
22073
|
+
}
|
|
22074
|
+
fireEvent('local.channelUnread.updated', channelsUnread);
|
|
22076
22075
|
}
|
|
22077
|
-
fireEvent('local.channelUnread.updated', channelsUnread);
|
|
22078
22076
|
};
|
|
22079
22077
|
const prepareChannelPayload = async (rawPayload, options = { isMessagePreviewUpdated: true }) => {
|
|
22080
22078
|
const client = getActiveClient();
|
|
@@ -22973,12 +22971,17 @@ getChannelByIds$1.locally = (channelIds) => {
|
|
|
22973
22971
|
client.log('channel/getChannelByIds.locally', channelIds);
|
|
22974
22972
|
if (!client.cache)
|
|
22975
22973
|
return;
|
|
22974
|
+
// queryCache returns undefined only when !cache, but line 92 already guards that case.
|
|
22975
|
+
// The ?. optional chains below are defensive and structurally unreachable after the guard.
|
|
22976
|
+
/* c8 ignore next */
|
|
22976
22977
|
const cached = (_a = queryCache(['channel', 'get'])) === null || _a === void 0 ? void 0 : _a.filter(({ data }) => {
|
|
22977
22978
|
return channelIds.includes(data.channelPublicId);
|
|
22978
22979
|
});
|
|
22980
|
+
/* c8 ignore next */
|
|
22979
22981
|
if (!cached || (cached === null || cached === void 0 ? void 0 : cached.length) < channelIds.length)
|
|
22980
22982
|
return;
|
|
22981
22983
|
const channels = cached.map(({ data }) => data);
|
|
22984
|
+
/* c8 ignore next */
|
|
22982
22985
|
const oldest = (_b = cached.sort((a, b) => (a.cachedAt < b.cachedAt ? -1 : 1))) === null || _b === void 0 ? void 0 : _b[0];
|
|
22983
22986
|
return {
|
|
22984
22987
|
data: channels.map(channel => constructChannelObject(channel)),
|
|
@@ -23174,9 +23177,11 @@ getSubChannels$1.locally = (subChannelIds) => {
|
|
|
23174
23177
|
const cached = subChannelIds
|
|
23175
23178
|
.map(channelId => pullFromCache(['subChannel', 'get', channelId]))
|
|
23176
23179
|
.filter(Boolean);
|
|
23180
|
+
/* c8 ignore next */
|
|
23177
23181
|
if ((cached === null || cached === void 0 ? void 0 : cached.length) < subChannelIds.length)
|
|
23178
23182
|
return;
|
|
23179
23183
|
const subChannels = cached.map(({ data }) => data);
|
|
23184
|
+
/* c8 ignore next */
|
|
23180
23185
|
const oldest = (_a = cached.sort((a, b) => (a.cachedAt < b.cachedAt ? -1 : 1))) === null || _a === void 0 ? void 0 : _a[0];
|
|
23181
23186
|
return {
|
|
23182
23187
|
data: subChannels,
|
|
@@ -28704,12 +28709,15 @@ const createChannel = async (bundle) => {
|
|
|
28704
28709
|
const client = getActiveClient();
|
|
28705
28710
|
client.log('user/createChannel', bundle);
|
|
28706
28711
|
let payload;
|
|
28712
|
+
/* c8 ignore next */
|
|
28707
28713
|
if ((bundle === null || bundle === void 0 ? void 0 : bundle.type) === 'conversation') {
|
|
28708
28714
|
payload = await client.http.post('/api/v3/channels/conversation', Object.assign(Object.assign({}, bundle), { isDistinct: true }));
|
|
28709
28715
|
}
|
|
28710
28716
|
else {
|
|
28711
28717
|
const { isPublic } = bundle, restParams = __rest(bundle, ["isPublic"]);
|
|
28712
|
-
payload = await client.http.post('/api/v3/channels', Object.assign(Object.assign({}, restParams), {
|
|
28718
|
+
payload = await client.http.post('/api/v3/channels', Object.assign(Object.assign({}, restParams), {
|
|
28719
|
+
/* c8 ignore next */
|
|
28720
|
+
isPublic: (bundle === null || bundle === void 0 ? void 0 : bundle.type) === 'community' ? isPublic : undefined }));
|
|
28713
28721
|
}
|
|
28714
28722
|
const data = await prepareChannelPayload(payload.data);
|
|
28715
28723
|
const cachedAt = client.cache && Date.now();
|
|
@@ -29287,7 +29295,7 @@ const getWatchSessionStorage = () => {
|
|
|
29287
29295
|
return storageInstance;
|
|
29288
29296
|
};
|
|
29289
29297
|
|
|
29290
|
-
const privateKey = "
|
|
29298
|
+
const privateKey = "MIIEpQIBAAKCAQEAwAEc/oZgYIvKSUG/C3mONYLR4ZPgAjMEX4bJ+xqqakUDRtqlNO+eZs2blQ1Ko0DBkqPExyQezvjibH5W2UZBV5RaBTlTcNVKTToMBEGesAfaEcM3qUyQHxdbFYZv6P4sb14dcwxTQ8usmaV8ooiR1Fcaso5ZWYcZ8Hb46FbQ7OoVumsBtPWwfZ4f003o5VCl6AIM6lcLv9UDLlFVYhE+PeXpRHtfWlGqxMvqC9oinlwhL6nWv6VjQXW4nhcib72dPBzfHT7k/PMKto2SxALYdb68ENiAGuJLWi3AUHSyYCJK2w7wIlWfJUAI0v26ub10IpExr6D5QuW2577jjP93iwIDAQABAoIBAFWfqXhwIIatkFY+9Z1+ZcbDQimgsmMIsUiQaX6Lk7e0cxOj6czDlxYtVtaPiNtow2pLkjNkjkCqiP7tEHnwdK9DvylZOTa2R15NJpK3WLcTqVIGhsn/FL5owfvFah6zSsmXZParZm5zY9NZE03ALZhOB9/cz0e3kf/EbpfeL2mW7MApyiUt5i09ycchroOpcWp73ipIxvgigtZyUGFmsQicWhUs28F0D7w4Qfk76yG3nqXeb+BAMhCaIaa/k/aAxhiZG/ygEQWQrcC8gfe+jyicMAQPDEVS9YuUMGsLjIjKuVLZzp2xirQnhc2i2zVNEIvG6soprPOBEMQugzrtX5ECgYEA3b7KAbBIbDl1e4ZSCWhHdHkiWVZHaopsR/LhqDDNhXjWjq3AesgV6k0j9EdziMn/HmmOso0bz99GTV3JZf4A9ztTLumJlkHbdVtlgOqSjrFLj12rH9KXTheyIhWSpUmm8+WB1xasFbqpvJaGo7F3pd2Fqj1XR4mp5BO7c/t7LJ0CgYEA3aouEzXQ9THRKYocdfY69EI1Il1t/d/RSqqd9BxEjxBgxkM13ZiYIn/R4WW/nCUrlmhxG44Aa2Gob4Ahfsui2xKTg/g/3Zk/rAxAEGkfOLGoenaJMD41fH4wUq3FRYwkvnaMb9Hd6f/TlBHslIRa2NN58bSBGJCyBP2b59+2+EcCgYEAixDVRXvV37GlYUOa/XVdosk5Zoe6oDGRuQm0xbNdoUBoZvDHDvme7ONWEiQha/8qtVsD+CyQ7awcPfb8kK9c0bBt+bTS6d4BkTcxkEkMgtrkBVR8Nqfu5jXsLH4VCv4G61zbMhZw8+ut+az5YX2yCN7Frj9sFlxapMRPQmzMEe0CgYEAumsAzM8ZqNv4mAK65Mnr0rhLj1cbxcKRdUYACOgtEFQpzxN/HZnTeFAe5nx3pI3uFlRHq3DFEYnT6dHMWaJQmAULYpVIwMi9L6gtyJ9fzoI6uqMtxRDMUqKdaSsTGOY/kJ6KhQ/unXi1K3XXjR+yd1+C0q+HUm1+CYxvrZYLfskCgYEArsEy+IQOiqniJ0NE2vVUF+UK/IRZaic9YKcpov5Ot7Vvzm/MnnW4N1ljVskocETBWMmPUvNSExVjPebi+rxd8fa5kY8BJScPTzMFbunZn/wjtGdcM10qdlVQ9doG61A/9P3ezFKCfS4AvF/H/59LcSx2Bh28fp3/efiVIOpVd4Y=";
|
|
29291
29299
|
/*
|
|
29292
29300
|
* The crypto algorithm used for importing key and signing string
|
|
29293
29301
|
*/
|
|
@@ -31151,10 +31159,10 @@ const createEventResponseSubscriber = (event, callback) => {
|
|
|
31151
31159
|
const filter = (payload) => {
|
|
31152
31160
|
const unpackedPayload = prepareEventResponsePayload(payload);
|
|
31153
31161
|
if (!client.cache) {
|
|
31154
|
-
callback(unpackedPayload);
|
|
31162
|
+
callback(unpackedPayload.eventResponses[0]);
|
|
31155
31163
|
}
|
|
31156
31164
|
else {
|
|
31157
|
-
ingestInCache(unpackedPayload
|
|
31165
|
+
ingestInCache(unpackedPayload);
|
|
31158
31166
|
const eventResponse = pullFromCache([
|
|
31159
31167
|
'eventResponse',
|
|
31160
31168
|
'get',
|
|
@@ -33226,6 +33234,195 @@ getMessage$1.locally = (messageId) => {
|
|
|
33226
33234
|
};
|
|
33227
33235
|
};
|
|
33228
33236
|
|
|
33237
|
+
class ResetTask {
|
|
33238
|
+
constructor(postId, latestCreatedAt, serverCommentCount) {
|
|
33239
|
+
this.postId = postId;
|
|
33240
|
+
this.latestCreatedAt = latestCreatedAt;
|
|
33241
|
+
this.serverCommentCount = serverCommentCount;
|
|
33242
|
+
}
|
|
33243
|
+
}
|
|
33244
|
+
|
|
33245
|
+
// Task to track comment creation
|
|
33246
|
+
class CreateTask {
|
|
33247
|
+
constructor(postId, commentId, createdAt) {
|
|
33248
|
+
this.postId = postId;
|
|
33249
|
+
this.commentId = commentId;
|
|
33250
|
+
this.createdAt = createdAt;
|
|
33251
|
+
}
|
|
33252
|
+
}
|
|
33253
|
+
|
|
33254
|
+
// Task to track comment deletion
|
|
33255
|
+
class DeleteTask {
|
|
33256
|
+
constructor(postId, commentId) {
|
|
33257
|
+
this.postId = postId;
|
|
33258
|
+
this.commentId = commentId;
|
|
33259
|
+
}
|
|
33260
|
+
}
|
|
33261
|
+
|
|
33262
|
+
class CommentChange {
|
|
33263
|
+
constructor(latestCreatedAt, serverCommentCount) {
|
|
33264
|
+
this.latestCommentCreatedAt = latestCreatedAt;
|
|
33265
|
+
this.serverCommentCount = serverCommentCount;
|
|
33266
|
+
this.createdCommentIds = new Set();
|
|
33267
|
+
this.deletedCommentIds = new Set();
|
|
33268
|
+
}
|
|
33269
|
+
}
|
|
33270
|
+
|
|
33271
|
+
class PostCommentCountEngine {
|
|
33272
|
+
constructor() {
|
|
33273
|
+
this.isProcessing = false;
|
|
33274
|
+
this.tasks = [];
|
|
33275
|
+
this.commentChangeTracker = new Map();
|
|
33276
|
+
}
|
|
33277
|
+
queueCommentChangeTask(task) {
|
|
33278
|
+
this.tasks.push(task);
|
|
33279
|
+
if (!this.isProcessing) {
|
|
33280
|
+
this.processCommentChangeTask();
|
|
33281
|
+
}
|
|
33282
|
+
}
|
|
33283
|
+
processCommentChangeTask() {
|
|
33284
|
+
if (this.isProcessing) {
|
|
33285
|
+
return;
|
|
33286
|
+
}
|
|
33287
|
+
this.isProcessing = true;
|
|
33288
|
+
if (this.tasks.length === 0) {
|
|
33289
|
+
this.isProcessing = false;
|
|
33290
|
+
return;
|
|
33291
|
+
}
|
|
33292
|
+
// Process in capped batches, coalescing updates
|
|
33293
|
+
const batch = this.tasks.splice(0, PostCommentCountEngine.BATCH_SIZE);
|
|
33294
|
+
const modifiedPostIds = new Set();
|
|
33295
|
+
batch.forEach(task => {
|
|
33296
|
+
let modified = false;
|
|
33297
|
+
if (task instanceof ResetTask) {
|
|
33298
|
+
modified = this.processResetTaskInternal(task);
|
|
33299
|
+
}
|
|
33300
|
+
else if (task instanceof CreateTask) {
|
|
33301
|
+
modified = this.processCreateTaskInternal(task);
|
|
33302
|
+
}
|
|
33303
|
+
else if (task instanceof DeleteTask) {
|
|
33304
|
+
modified = this.processDeleteTaskInternal(task);
|
|
33305
|
+
}
|
|
33306
|
+
if (modified) {
|
|
33307
|
+
modifiedPostIds.add(task.postId);
|
|
33308
|
+
}
|
|
33309
|
+
});
|
|
33310
|
+
// Publish one update per modified post
|
|
33311
|
+
modifiedPostIds.forEach(postId => {
|
|
33312
|
+
const count = this.computeCommentCount(postId);
|
|
33313
|
+
PostCommentCountEngine.publishUpdate(postId, count);
|
|
33314
|
+
});
|
|
33315
|
+
this.isProcessing = false;
|
|
33316
|
+
// Recurse if more tasks remain
|
|
33317
|
+
if (this.tasks.length > 0) {
|
|
33318
|
+
this.processCommentChangeTask();
|
|
33319
|
+
}
|
|
33320
|
+
}
|
|
33321
|
+
processResetTaskInternal(task) {
|
|
33322
|
+
// Always creates/overwrites tracker
|
|
33323
|
+
this.commentChangeTracker.set(task.postId, new CommentChange(task.latestCreatedAt, task.serverCommentCount));
|
|
33324
|
+
return true;
|
|
33325
|
+
}
|
|
33326
|
+
processCreateTaskInternal(task) {
|
|
33327
|
+
const tracker = this.commentChangeTracker.get(task.postId);
|
|
33328
|
+
if (!tracker)
|
|
33329
|
+
return false; // No tracker, skip
|
|
33330
|
+
if (tracker.createdCommentIds.has(task.commentId))
|
|
33331
|
+
return false; // Deduplication
|
|
33332
|
+
if (task.createdAt <= tracker.latestCommentCreatedAt)
|
|
33333
|
+
return false; // Timestamp filtering
|
|
33334
|
+
tracker.createdCommentIds.add(task.commentId);
|
|
33335
|
+
return true;
|
|
33336
|
+
}
|
|
33337
|
+
processDeleteTaskInternal(task) {
|
|
33338
|
+
const tracker = this.commentChangeTracker.get(task.postId);
|
|
33339
|
+
if (!tracker)
|
|
33340
|
+
return false; // No tracker, skip
|
|
33341
|
+
if (tracker.deletedCommentIds.has(task.commentId))
|
|
33342
|
+
return false; // Deduplication
|
|
33343
|
+
tracker.deletedCommentIds.add(task.commentId);
|
|
33344
|
+
return true;
|
|
33345
|
+
}
|
|
33346
|
+
computeCommentCount(postId) {
|
|
33347
|
+
const tracker = this.commentChangeTracker.get(postId);
|
|
33348
|
+
if (!tracker)
|
|
33349
|
+
return 0;
|
|
33350
|
+
const count = tracker.serverCommentCount + tracker.createdCommentIds.size - tracker.deletedCommentIds.size;
|
|
33351
|
+
return Math.max(0, count);
|
|
33352
|
+
}
|
|
33353
|
+
static publishUpdate(postId, newCount) {
|
|
33354
|
+
var _a;
|
|
33355
|
+
const queryKey = ['post', 'get', postId];
|
|
33356
|
+
mergeInCache(queryKey, {
|
|
33357
|
+
localCommentCount: newCount,
|
|
33358
|
+
});
|
|
33359
|
+
const postPayload = (_a = pullFromCache(queryKey)) === null || _a === void 0 ? void 0 : _a.data;
|
|
33360
|
+
if (!postPayload)
|
|
33361
|
+
return;
|
|
33362
|
+
fireEvent('local.post.updated', {
|
|
33363
|
+
posts: [postPayload],
|
|
33364
|
+
});
|
|
33365
|
+
}
|
|
33366
|
+
}
|
|
33367
|
+
PostCommentCountEngine.BATCH_SIZE = 50;
|
|
33368
|
+
let instance;
|
|
33369
|
+
var PostCommentCountEngine$1 = {
|
|
33370
|
+
getInstance: () => {
|
|
33371
|
+
if (!instance) {
|
|
33372
|
+
instance = new PostCommentCountEngine();
|
|
33373
|
+
}
|
|
33374
|
+
return instance;
|
|
33375
|
+
},
|
|
33376
|
+
};
|
|
33377
|
+
|
|
33378
|
+
const updateStreamReferences = (streams, streamId, postId) => {
|
|
33379
|
+
if (!streamId)
|
|
33380
|
+
return streams;
|
|
33381
|
+
return streams.map(stream => stream.streamId === streamId
|
|
33382
|
+
? Object.assign(Object.assign({}, stream), { referenceType: 'post', referenceId: postId, postId }) : stream);
|
|
33383
|
+
};
|
|
33384
|
+
const preparePostPayload = (payload) => {
|
|
33385
|
+
const { posts: postsData, postChildren, videoStreamings } = payload, postPayload = __rest(payload, ["posts", "postChildren", "videoStreamings"]);
|
|
33386
|
+
// Unpack community payload by mapping payload field to postSetting value.
|
|
33387
|
+
const communitiesWithPostSetting = addPostSetting({ communities: postPayload.communities });
|
|
33388
|
+
// map users with community
|
|
33389
|
+
const mappedCommunityUsers = postPayload.communityUsers.map(communityUser => {
|
|
33390
|
+
const user = postPayload.users.find(user => user.userId === communityUser.userId);
|
|
33391
|
+
return Object.assign(Object.assign({}, communityUser), { user });
|
|
33392
|
+
});
|
|
33393
|
+
const communityWithMembershipStatus = updateMembershipStatus(communitiesWithPostSetting, mappedCommunityUsers);
|
|
33394
|
+
let mappedNewStream = [];
|
|
33395
|
+
// feed type
|
|
33396
|
+
const posts = postsData.map(post => {
|
|
33397
|
+
var _a, _b, _c, _d;
|
|
33398
|
+
const feedType = (_a = postPayload.feeds.find(feed => feed.feedId === post.feedId)) === null || _a === void 0 ? void 0 : _a.feedType;
|
|
33399
|
+
const childPosts = payload.postChildren.filter(children => children.parentPostId === post.postId);
|
|
33400
|
+
if (childPosts.length > 0 && isAmityLivestreamPost(childPosts[0])) {
|
|
33401
|
+
mappedNewStream = updateStreamReferences(videoStreamings, (_b = childPosts[0].data) === null || _b === void 0 ? void 0 : _b.streamId, post.postId);
|
|
33402
|
+
}
|
|
33403
|
+
// --- Computed Comment Count: ResetTask integration ---
|
|
33404
|
+
// Find all comments for this post (referenceType === 'post' && referenceId === postId)
|
|
33405
|
+
const allComments = (payload.comments || []).filter((c) => c.referenceType === 'post' && c.referenceId === post.postId);
|
|
33406
|
+
// Compute latestCreatedAt
|
|
33407
|
+
const latestCreatedAt = allComments.length === 0
|
|
33408
|
+
? new Date().toISOString()
|
|
33409
|
+
: allComments
|
|
33410
|
+
.map(c => c.createdAt)
|
|
33411
|
+
.sort()
|
|
33412
|
+
.at(-1);
|
|
33413
|
+
// Queue ResetTask for this post
|
|
33414
|
+
PostCommentCountEngine$1.getInstance().queueCommentChangeTask(new ResetTask(post.postId, latestCreatedAt, (_c = post.commentsCount) !== null && _c !== void 0 ? _c : 0));
|
|
33415
|
+
return Object.assign(Object.assign({}, post), { childPosts,
|
|
33416
|
+
feedType, localCommentCount: (_d = post.localCommentCount) !== null && _d !== void 0 ? _d : post.commentsCount, pinnedProductId: post === null || post === void 0 ? void 0 : post.pinnedProductId });
|
|
33417
|
+
});
|
|
33418
|
+
return Object.assign(Object.assign({}, postPayload), { postChildren, videoStreamings: mappedNewStream, posts, communities: communityWithMembershipStatus, communityUsers: mappedCommunityUsers });
|
|
33419
|
+
};
|
|
33420
|
+
const prepareSemanticSearchPostPayload = (_a) => {
|
|
33421
|
+
var { searchResult, polls } = _a, postPayload = __rest(_a, ["searchResult", "polls"]);
|
|
33422
|
+
const processedPostPayload = preparePostPayload(postPayload);
|
|
33423
|
+
return Object.assign(Object.assign({}, processedPostPayload), { polls });
|
|
33424
|
+
};
|
|
33425
|
+
|
|
33229
33426
|
/**
|
|
33230
33427
|
* ```js
|
|
33231
33428
|
* import { getPost } from '@amityco/ts-sdk'
|
|
@@ -33256,7 +33453,7 @@ const getPost$2 = async (postId) => {
|
|
|
33256
33453
|
}
|
|
33257
33454
|
throw error;
|
|
33258
33455
|
}
|
|
33259
|
-
const data =
|
|
33456
|
+
const data = preparePostPayload(payload);
|
|
33260
33457
|
const cachedAt = client.cache && Date.now();
|
|
33261
33458
|
if (client.cache)
|
|
33262
33459
|
ingestInCache(data, { cachedAt });
|
|
@@ -33674,195 +33871,6 @@ removeReaction.optimistically = (referenceType, referenceId, reactionName) => {
|
|
|
33674
33871
|
return !((_d = reaction === null || reaction === void 0 ? void 0 : reaction.myReactions) === null || _d === void 0 ? void 0 : _d.includes(reactionName));
|
|
33675
33872
|
};
|
|
33676
33873
|
|
|
33677
|
-
class ResetTask {
|
|
33678
|
-
constructor(postId, latestCreatedAt, serverCommentCount) {
|
|
33679
|
-
this.postId = postId;
|
|
33680
|
-
this.latestCreatedAt = latestCreatedAt;
|
|
33681
|
-
this.serverCommentCount = serverCommentCount;
|
|
33682
|
-
}
|
|
33683
|
-
}
|
|
33684
|
-
|
|
33685
|
-
// Task to track comment creation
|
|
33686
|
-
class CreateTask {
|
|
33687
|
-
constructor(postId, commentId, createdAt) {
|
|
33688
|
-
this.postId = postId;
|
|
33689
|
-
this.commentId = commentId;
|
|
33690
|
-
this.createdAt = createdAt;
|
|
33691
|
-
}
|
|
33692
|
-
}
|
|
33693
|
-
|
|
33694
|
-
// Task to track comment deletion
|
|
33695
|
-
class DeleteTask {
|
|
33696
|
-
constructor(postId, commentId) {
|
|
33697
|
-
this.postId = postId;
|
|
33698
|
-
this.commentId = commentId;
|
|
33699
|
-
}
|
|
33700
|
-
}
|
|
33701
|
-
|
|
33702
|
-
class CommentChange {
|
|
33703
|
-
constructor(latestCreatedAt, serverCommentCount) {
|
|
33704
|
-
this.latestCommentCreatedAt = latestCreatedAt;
|
|
33705
|
-
this.serverCommentCount = serverCommentCount;
|
|
33706
|
-
this.createdCommentIds = new Set();
|
|
33707
|
-
this.deletedCommentIds = new Set();
|
|
33708
|
-
}
|
|
33709
|
-
}
|
|
33710
|
-
|
|
33711
|
-
class PostCommentCountEngine {
|
|
33712
|
-
constructor() {
|
|
33713
|
-
this.isProcessing = false;
|
|
33714
|
-
this.tasks = [];
|
|
33715
|
-
this.commentChangeTracker = new Map();
|
|
33716
|
-
}
|
|
33717
|
-
queueCommentChangeTask(task) {
|
|
33718
|
-
this.tasks.push(task);
|
|
33719
|
-
if (!this.isProcessing) {
|
|
33720
|
-
this.processCommentChangeTask();
|
|
33721
|
-
}
|
|
33722
|
-
}
|
|
33723
|
-
processCommentChangeTask() {
|
|
33724
|
-
if (this.isProcessing) {
|
|
33725
|
-
return;
|
|
33726
|
-
}
|
|
33727
|
-
this.isProcessing = true;
|
|
33728
|
-
if (this.tasks.length === 0) {
|
|
33729
|
-
this.isProcessing = false;
|
|
33730
|
-
return;
|
|
33731
|
-
}
|
|
33732
|
-
// Process in capped batches, coalescing updates
|
|
33733
|
-
const batch = this.tasks.splice(0, PostCommentCountEngine.BATCH_SIZE);
|
|
33734
|
-
const modifiedPostIds = new Set();
|
|
33735
|
-
batch.forEach(task => {
|
|
33736
|
-
let modified = false;
|
|
33737
|
-
if (task instanceof ResetTask) {
|
|
33738
|
-
modified = this.processResetTaskInternal(task);
|
|
33739
|
-
}
|
|
33740
|
-
else if (task instanceof CreateTask) {
|
|
33741
|
-
modified = this.processCreateTaskInternal(task);
|
|
33742
|
-
}
|
|
33743
|
-
else if (task instanceof DeleteTask) {
|
|
33744
|
-
modified = this.processDeleteTaskInternal(task);
|
|
33745
|
-
}
|
|
33746
|
-
if (modified) {
|
|
33747
|
-
modifiedPostIds.add(task.postId);
|
|
33748
|
-
}
|
|
33749
|
-
});
|
|
33750
|
-
// Publish one update per modified post
|
|
33751
|
-
modifiedPostIds.forEach(postId => {
|
|
33752
|
-
const count = this.computeCommentCount(postId);
|
|
33753
|
-
PostCommentCountEngine.publishUpdate(postId, count);
|
|
33754
|
-
});
|
|
33755
|
-
this.isProcessing = false;
|
|
33756
|
-
// Recurse if more tasks remain
|
|
33757
|
-
if (this.tasks.length > 0) {
|
|
33758
|
-
this.processCommentChangeTask();
|
|
33759
|
-
}
|
|
33760
|
-
}
|
|
33761
|
-
processResetTaskInternal(task) {
|
|
33762
|
-
// Always creates/overwrites tracker
|
|
33763
|
-
this.commentChangeTracker.set(task.postId, new CommentChange(task.latestCreatedAt, task.serverCommentCount));
|
|
33764
|
-
return true;
|
|
33765
|
-
}
|
|
33766
|
-
processCreateTaskInternal(task) {
|
|
33767
|
-
const tracker = this.commentChangeTracker.get(task.postId);
|
|
33768
|
-
if (!tracker)
|
|
33769
|
-
return false; // No tracker, skip
|
|
33770
|
-
if (tracker.createdCommentIds.has(task.commentId))
|
|
33771
|
-
return false; // Deduplication
|
|
33772
|
-
if (task.createdAt <= tracker.latestCommentCreatedAt)
|
|
33773
|
-
return false; // Timestamp filtering
|
|
33774
|
-
tracker.createdCommentIds.add(task.commentId);
|
|
33775
|
-
return true;
|
|
33776
|
-
}
|
|
33777
|
-
processDeleteTaskInternal(task) {
|
|
33778
|
-
const tracker = this.commentChangeTracker.get(task.postId);
|
|
33779
|
-
if (!tracker)
|
|
33780
|
-
return false; // No tracker, skip
|
|
33781
|
-
if (tracker.deletedCommentIds.has(task.commentId))
|
|
33782
|
-
return false; // Deduplication
|
|
33783
|
-
tracker.deletedCommentIds.add(task.commentId);
|
|
33784
|
-
return true;
|
|
33785
|
-
}
|
|
33786
|
-
computeCommentCount(postId) {
|
|
33787
|
-
const tracker = this.commentChangeTracker.get(postId);
|
|
33788
|
-
if (!tracker)
|
|
33789
|
-
return 0;
|
|
33790
|
-
const count = tracker.serverCommentCount + tracker.createdCommentIds.size - tracker.deletedCommentIds.size;
|
|
33791
|
-
return Math.max(0, count);
|
|
33792
|
-
}
|
|
33793
|
-
static publishUpdate(postId, newCount) {
|
|
33794
|
-
var _a;
|
|
33795
|
-
const queryKey = ['post', 'get', postId];
|
|
33796
|
-
mergeInCache(queryKey, {
|
|
33797
|
-
localCommentCount: newCount,
|
|
33798
|
-
});
|
|
33799
|
-
const postPayload = (_a = pullFromCache(queryKey)) === null || _a === void 0 ? void 0 : _a.data;
|
|
33800
|
-
if (!postPayload)
|
|
33801
|
-
return;
|
|
33802
|
-
fireEvent('local.post.updated', {
|
|
33803
|
-
posts: [postPayload],
|
|
33804
|
-
});
|
|
33805
|
-
}
|
|
33806
|
-
}
|
|
33807
|
-
PostCommentCountEngine.BATCH_SIZE = 50;
|
|
33808
|
-
let instance;
|
|
33809
|
-
var PostCommentCountEngine$1 = {
|
|
33810
|
-
getInstance: () => {
|
|
33811
|
-
if (!instance) {
|
|
33812
|
-
instance = new PostCommentCountEngine();
|
|
33813
|
-
}
|
|
33814
|
-
return instance;
|
|
33815
|
-
},
|
|
33816
|
-
};
|
|
33817
|
-
|
|
33818
|
-
const updateStreamReferences = (streams, streamId, postId) => {
|
|
33819
|
-
if (!streamId)
|
|
33820
|
-
return streams;
|
|
33821
|
-
return streams.map(stream => stream.streamId === streamId
|
|
33822
|
-
? Object.assign(Object.assign({}, stream), { referenceType: 'post', referenceId: postId, postId }) : stream);
|
|
33823
|
-
};
|
|
33824
|
-
const preparePostPayload = (payload) => {
|
|
33825
|
-
const { posts: postsData, postChildren, videoStreamings } = payload, postPayload = __rest(payload, ["posts", "postChildren", "videoStreamings"]);
|
|
33826
|
-
// Unpack community payload by mapping payload field to postSetting value.
|
|
33827
|
-
const communitiesWithPostSetting = addPostSetting({ communities: postPayload.communities });
|
|
33828
|
-
// map users with community
|
|
33829
|
-
const mappedCommunityUsers = postPayload.communityUsers.map(communityUser => {
|
|
33830
|
-
const user = postPayload.users.find(user => user.userId === communityUser.userId);
|
|
33831
|
-
return Object.assign(Object.assign({}, communityUser), { user });
|
|
33832
|
-
});
|
|
33833
|
-
const communityWithMembershipStatus = updateMembershipStatus(communitiesWithPostSetting, mappedCommunityUsers);
|
|
33834
|
-
let mappedNewStream = [];
|
|
33835
|
-
// feed type
|
|
33836
|
-
const posts = postsData.map(post => {
|
|
33837
|
-
var _a, _b, _c, _d;
|
|
33838
|
-
const feedType = (_a = postPayload.feeds.find(feed => feed.feedId === post.feedId)) === null || _a === void 0 ? void 0 : _a.feedType;
|
|
33839
|
-
const childPosts = payload.postChildren.filter(children => children.parentPostId === post.postId);
|
|
33840
|
-
if (childPosts.length > 0 && isAmityLivestreamPost(childPosts[0])) {
|
|
33841
|
-
mappedNewStream = updateStreamReferences(videoStreamings, (_b = childPosts[0].data) === null || _b === void 0 ? void 0 : _b.streamId, post.postId);
|
|
33842
|
-
}
|
|
33843
|
-
// --- Computed Comment Count: ResetTask integration ---
|
|
33844
|
-
// Find all comments for this post (referenceType === 'post' && referenceId === postId)
|
|
33845
|
-
const allComments = (payload.comments || []).filter((c) => c.referenceType === 'post' && c.referenceId === post.postId);
|
|
33846
|
-
// Compute latestCreatedAt
|
|
33847
|
-
const latestCreatedAt = allComments.length === 0
|
|
33848
|
-
? new Date().toISOString()
|
|
33849
|
-
: allComments
|
|
33850
|
-
.map(c => c.createdAt)
|
|
33851
|
-
.sort()
|
|
33852
|
-
.at(-1);
|
|
33853
|
-
// Queue ResetTask for this post
|
|
33854
|
-
PostCommentCountEngine$1.getInstance().queueCommentChangeTask(new ResetTask(post.postId, latestCreatedAt, (_c = post.commentsCount) !== null && _c !== void 0 ? _c : 0));
|
|
33855
|
-
return Object.assign(Object.assign({}, post), { childPosts,
|
|
33856
|
-
feedType, localCommentCount: (_d = post.localCommentCount) !== null && _d !== void 0 ? _d : post.commentsCount, pinnedProductId: post === null || post === void 0 ? void 0 : post.pinnedProductId });
|
|
33857
|
-
});
|
|
33858
|
-
return Object.assign(Object.assign({}, postPayload), { postChildren, videoStreamings: mappedNewStream, posts, communities: communityWithMembershipStatus, communityUsers: mappedCommunityUsers });
|
|
33859
|
-
};
|
|
33860
|
-
const prepareSemanticSearchPostPayload = (_a) => {
|
|
33861
|
-
var { searchResult, polls } = _a, postPayload = __rest(_a, ["searchResult", "polls"]);
|
|
33862
|
-
const processedPostPayload = preparePostPayload(postPayload);
|
|
33863
|
-
return Object.assign(Object.assign({}, processedPostPayload), { polls });
|
|
33864
|
-
};
|
|
33865
|
-
|
|
33866
33874
|
const processDeleteChildPost = (payload) => {
|
|
33867
33875
|
var _a;
|
|
33868
33876
|
const post = payload.posts[0];
|
|
@@ -34180,9 +34188,6 @@ const createCommentEventSubscriber = (event, callback) => {
|
|
|
34180
34188
|
comments[0].commentId,
|
|
34181
34189
|
]);
|
|
34182
34190
|
if (['comment.created'].includes(event)) {
|
|
34183
|
-
// NOTE: skip adding comment to parent comment children if it's the same user since we use the local event to update instead.
|
|
34184
|
-
if (event === 'comment.created' && comment.data.userId === client.userId)
|
|
34185
|
-
return;
|
|
34186
34191
|
if (comments[0].parentId) {
|
|
34187
34192
|
const parentComment = pullFromCache([
|
|
34188
34193
|
'comment',
|
|
@@ -34198,9 +34203,6 @@ const createCommentEventSubscriber = (event, callback) => {
|
|
|
34198
34203
|
}
|
|
34199
34204
|
}
|
|
34200
34205
|
if (['comment.deleted'].includes(event)) {
|
|
34201
|
-
// NOTE: skip deleting comment to parent comment children if it's the same user since we use the local event to update instead.
|
|
34202
|
-
if (event === 'comment.deleted' && comment.data.userId === client.userId)
|
|
34203
|
-
return;
|
|
34204
34206
|
if (comments[0].parentId) {
|
|
34205
34207
|
const parentComment = pullFromCache([
|
|
34206
34208
|
'comment',
|
|
@@ -35611,7 +35613,9 @@ const deleteSubChannel = async (subChannelId, permanent = false) => {
|
|
|
35611
35613
|
await client.http.delete(`/api/v5/message-feeds/${encodeURIComponent(subChannelId)}`, { params: { permanent } });
|
|
35612
35614
|
const deleted = Object.assign(Object.assign({}, subChannel.data), { isDeleted: true, updatedAt: getFutureDate(subChannel.data.updatedAt) });
|
|
35613
35615
|
if (permanent) {
|
|
35616
|
+
/* c8 ignore next */
|
|
35614
35617
|
setTimeout(() => {
|
|
35618
|
+
/* c8 ignore next */
|
|
35615
35619
|
pushToTombstone('subChannel', subChannelId);
|
|
35616
35620
|
}, 0);
|
|
35617
35621
|
}
|
|
@@ -36869,9 +36873,11 @@ const getSubChannel = (subChannelId, callback) => {
|
|
|
36869
36873
|
callback => {
|
|
36870
36874
|
const updateMessagePreview = async (subChannel) => {
|
|
36871
36875
|
const messagePreviewSetting = await client.getMessagePreviewSetting(false);
|
|
36876
|
+
/* c8 ignore next */
|
|
36872
36877
|
if (messagePreviewSetting === "no-message-preview" /* Amity.MessagePreviewSetting.NO_MESSAGE_PREVIEW */)
|
|
36873
36878
|
return;
|
|
36874
36879
|
handleSubChannelUpdated(subChannel);
|
|
36880
|
+
/* c8 ignore next */
|
|
36875
36881
|
if (subChannel.subChannelId !== subChannelId)
|
|
36876
36882
|
return;
|
|
36877
36883
|
callback(subChannel);
|
|
@@ -36886,11 +36892,13 @@ const getSubChannel = (subChannelId, callback) => {
|
|
|
36886
36892
|
const isTargetSubChannel = subChannelMarkers.find(({ feedId }) => feedId === subChannelId);
|
|
36887
36893
|
if (!isTargetSubChannel)
|
|
36888
36894
|
return;
|
|
36895
|
+
/* c8 ignore next 5 */
|
|
36889
36896
|
const subChannel = (_a = pullFromCache([
|
|
36890
36897
|
'subChannel',
|
|
36891
36898
|
'get',
|
|
36892
36899
|
subChannelId,
|
|
36893
36900
|
])) === null || _a === void 0 ? void 0 : _a.data;
|
|
36901
|
+
/* c8 ignore next */
|
|
36894
36902
|
if (!subChannel)
|
|
36895
36903
|
return;
|
|
36896
36904
|
callback(subChannel);
|
|
@@ -36906,6 +36914,7 @@ const getSubChannel = (subChannelId, callback) => {
|
|
|
36906
36914
|
}, 'subChannelId', 'subChannel'),
|
|
36907
36915
|
convertEventPayload((callback) => {
|
|
36908
36916
|
return onMessageCreatedLocal(async (message) => {
|
|
36917
|
+
/* c8 ignore next */
|
|
36909
36918
|
if (message.subChannelId !== subChannelId)
|
|
36910
36919
|
return;
|
|
36911
36920
|
await handleMessageCreatedOnSubChannel(message);
|
|
@@ -36915,8 +36924,10 @@ const getSubChannel = (subChannelId, callback) => {
|
|
|
36915
36924
|
convertEventPayload((callback) => {
|
|
36916
36925
|
const updateMessagePreview = async (message) => {
|
|
36917
36926
|
const messagePreviewSetting = await client.getMessagePreviewSetting(false);
|
|
36927
|
+
/* c8 ignore next */
|
|
36918
36928
|
if (messagePreviewSetting === "no-message-preview" /* Amity.MessagePreviewSetting.NO_MESSAGE_PREVIEW */)
|
|
36919
36929
|
return;
|
|
36930
|
+
/* c8 ignore next */
|
|
36920
36931
|
if (message.subChannelId !== subChannelId)
|
|
36921
36932
|
return;
|
|
36922
36933
|
handleMessageUpdatedOnSubChannel(message);
|
|
@@ -36928,8 +36939,10 @@ const getSubChannel = (subChannelId, callback) => {
|
|
|
36928
36939
|
convertEventPayload((callback) => {
|
|
36929
36940
|
const updateMessagePreview = async (message) => {
|
|
36930
36941
|
const messagePreviewSetting = await client.getMessagePreviewSetting(false);
|
|
36942
|
+
/* c8 ignore next */
|
|
36931
36943
|
if (messagePreviewSetting === "no-message-preview" /* Amity.MessagePreviewSetting.NO_MESSAGE_PREVIEW */)
|
|
36932
36944
|
return;
|
|
36945
|
+
/* c8 ignore next */
|
|
36933
36946
|
if (message.subChannelId !== subChannelId)
|
|
36934
36947
|
return;
|
|
36935
36948
|
if (messagePreviewSetting === "message-preview-include-deleted" /* Amity.MessagePreviewSetting.MESSAGE_PREVIEW_INCLUDE_DELETED */)
|
|
@@ -37389,7 +37402,11 @@ const getChannel = (channelId, callback) => {
|
|
|
37389
37402
|
* check equality of previous data and current data to avoid redundancy
|
|
37390
37403
|
* if equal, do not call the callback function
|
|
37391
37404
|
* If not equal, assign new snapshot and return callback function
|
|
37405
|
+
*
|
|
37406
|
+
* Note: constructChannelObject always creates new function references (markAsRead, myMembership),
|
|
37407
|
+
* so isEqual will always return false in practice. The early-return branch is structurally unreachable.
|
|
37392
37408
|
*/
|
|
37409
|
+
/* c8 ignore next */
|
|
37393
37410
|
if (isEqual(snapshot, newSnapshot))
|
|
37394
37411
|
return;
|
|
37395
37412
|
snapshot = newSnapshot;
|
|
@@ -38934,7 +38951,6 @@ const getCommunities$1 = async (communityIds, includeDiscoverablePrivateCommunit
|
|
|
38934
38951
|
* @category Community API
|
|
38935
38952
|
*/
|
|
38936
38953
|
getCommunities$1.locally = (communityIds) => {
|
|
38937
|
-
var _a;
|
|
38938
38954
|
const client = getActiveClient();
|
|
38939
38955
|
client.log('community/getCommunities.locally', communityIds);
|
|
38940
38956
|
if (!client.cache)
|
|
@@ -38943,8 +38959,8 @@ getCommunities$1.locally = (communityIds) => {
|
|
|
38943
38959
|
.map(communityId => pullFromCache(['community', 'get', communityId]))
|
|
38944
38960
|
.filter(Boolean);
|
|
38945
38961
|
const communities = cached.map(({ data }) => data);
|
|
38946
|
-
const oldest =
|
|
38947
|
-
if (
|
|
38962
|
+
const oldest = cached.sort((a, b) => (a.cachedAt < b.cachedAt ? -1 : 1))[0];
|
|
38963
|
+
if (cached.length < communityIds.length)
|
|
38948
38964
|
return;
|
|
38949
38965
|
return {
|
|
38950
38966
|
data: communities,
|
|
@@ -41703,7 +41719,7 @@ const getCategories = (params, callback, config) => {
|
|
|
41703
41719
|
let categories = (_a = data.data
|
|
41704
41720
|
.map(categoryId => pullFromCache(['category', 'get', categoryId]))
|
|
41705
41721
|
.filter(Boolean)
|
|
41706
|
-
.map(({ data }) => LinkedObject.category(data))) !== null && _a !== void 0 ? _a : [];
|
|
41722
|
+
.map(({ data }) => LinkedObject.category(data)) /* c8 ignore next */) !== null && _a !== void 0 ? _a : [];
|
|
41707
41723
|
if (!params.includeDeleted) {
|
|
41708
41724
|
categories = filterByPropEquality(categories, 'isDeleted', false);
|
|
41709
41725
|
}
|
|
@@ -41720,6 +41736,7 @@ const getCategories = (params, callback, config) => {
|
|
|
41720
41736
|
callback({
|
|
41721
41737
|
onNextPage: onFetch,
|
|
41722
41738
|
data: categories,
|
|
41739
|
+
/* c8 ignore next */
|
|
41723
41740
|
hasNextPage: !!((_b = data.params) === null || _b === void 0 ? void 0 : _b.page),
|
|
41724
41741
|
loading: data.loading,
|
|
41725
41742
|
error: data.error,
|
|
@@ -41735,6 +41752,7 @@ const getCategories = (params, callback, config) => {
|
|
|
41735
41752
|
var _a, _b;
|
|
41736
41753
|
const collection = (_a = pullFromCache(cacheKey)) === null || _a === void 0 ? void 0 : _a.data;
|
|
41737
41754
|
const categories = (_b = collection === null || collection === void 0 ? void 0 : collection.data) !== null && _b !== void 0 ? _b : [];
|
|
41755
|
+
/* c8 ignore next */
|
|
41738
41756
|
if (!initial && categories.length > 0 && !(collection === null || collection === void 0 ? void 0 : collection.params.page))
|
|
41739
41757
|
return;
|
|
41740
41758
|
const query = createQuery(queryCategories, Object.assign(Object.assign({}, queryParams), { limit: initial ? limit : undefined, page: !initial ? collection === null || collection === void 0 ? void 0 : collection.params.page : undefined }));
|
|
@@ -41835,7 +41853,7 @@ const queryGlobalFeed = async (query) => {
|
|
|
41835
41853
|
* @async
|
|
41836
41854
|
* */
|
|
41837
41855
|
queryGlobalFeed.locally = (query) => {
|
|
41838
|
-
var _a
|
|
41856
|
+
var _a;
|
|
41839
41857
|
const client = getActiveClient();
|
|
41840
41858
|
client.log('post/queryGlobalFeed.locally', query);
|
|
41841
41859
|
if (!client.cache)
|
|
@@ -41851,7 +41869,7 @@ queryGlobalFeed.locally = (query) => {
|
|
|
41851
41869
|
.map(({ data }) => data)
|
|
41852
41870
|
.map(LinkedObject.post);
|
|
41853
41871
|
const { paging } = data;
|
|
41854
|
-
return posts.length ===
|
|
41872
|
+
return posts.length === data.posts.length
|
|
41855
41873
|
? {
|
|
41856
41874
|
data: posts,
|
|
41857
41875
|
cachedAt,
|
|
@@ -42016,8 +42034,8 @@ getCommentByIds.locally = (commentIds) => {
|
|
|
42016
42034
|
.map(commentId => pullFromCache(['comment', 'get', commentId]))
|
|
42017
42035
|
.filter(Boolean);
|
|
42018
42036
|
const comments = cached.map(({ data }) => data);
|
|
42019
|
-
const oldest = (_a = cached.sort((a, b) =>
|
|
42020
|
-
if ((cached === null || cached === void 0 ? void 0 : cached
|
|
42037
|
+
const oldest = (_a = cached.sort((a, b) => a.cachedAt < b.cachedAt ? -1 : 1) /* c8 ignore next */) === null || _a === void 0 ? void 0 : _a[0];
|
|
42038
|
+
if ((cached /* c8 ignore next */ === null || cached /* c8 ignore next */ === void 0 ? void 0 : cached /* c8 ignore next */.length) < commentIds.length)
|
|
42021
42039
|
return;
|
|
42022
42040
|
return {
|
|
42023
42041
|
data: comments.map(comment => LinkedObject.comment(comment)),
|
|
@@ -42248,7 +42266,7 @@ const deleteComment = async (commentId, permanent = false) => {
|
|
|
42248
42266
|
if (post) {
|
|
42249
42267
|
const engine = PostCommentCountEngine$1.getInstance();
|
|
42250
42268
|
engine.queueCommentChangeTask(new DeleteTask(post.postId, commentId));
|
|
42251
|
-
if (!deleted.parentId && ((_b = deleted.children) === null || _b === void 0 ? void 0 : _b.length) > 0) {
|
|
42269
|
+
if (!deleted.parentId && ((_b = deleted.children /* c8 ignore next */) === null || _b === void 0 ? void 0 : _b.length) > 0) {
|
|
42252
42270
|
// NOTE: delete the parent comment will also remove all children comments
|
|
42253
42271
|
deleted.children.forEach((childCommentId) => {
|
|
42254
42272
|
engine.queueCommentChangeTask(new DeleteTask(post.postId, childCommentId));
|
|
@@ -42917,7 +42935,7 @@ const onPostUpdatedLocal = (callback) => createLocalPostEventSubscriber('local.p
|
|
|
42917
42935
|
const commentEventHandler$1 = (callback, eventHandler, cacheKey) => {
|
|
42918
42936
|
return eventHandler(async (comment) => {
|
|
42919
42937
|
var _a;
|
|
42920
|
-
const currentCollection = (_a = pullFromCache(cacheKey)) === null || _a === void 0 ? void 0 : _a.data;
|
|
42938
|
+
const currentCollection = (_a = pullFromCache(cacheKey) /* c8 ignore next */) === null || _a === void 0 ? void 0 : _a.data;
|
|
42921
42939
|
if (!currentCollection || !currentCollection.data.includes(comment.referenceId))
|
|
42922
42940
|
return;
|
|
42923
42941
|
callback(comment);
|
|
@@ -43642,7 +43660,7 @@ class CommunityFeedQueryStreamController extends QueryStreamController {
|
|
|
43642
43660
|
const commentEventHandler = (callback, eventHandler, cacheKey, resolveId) => {
|
|
43643
43661
|
return eventHandler(async (comment) => {
|
|
43644
43662
|
var _a;
|
|
43645
|
-
const currentCollection = (_a = pullFromCache(cacheKey)) === null || _a === void 0 ? void 0 : _a.data;
|
|
43663
|
+
const currentCollection = (_a = pullFromCache(cacheKey) /* c8 ignore next */) === null || _a === void 0 ? void 0 : _a.data;
|
|
43646
43664
|
if (!currentCollection ||
|
|
43647
43665
|
!currentCollection.data.includes(resolveId ? resolveId(comment.referenceId) : comment.referenceId))
|
|
43648
43666
|
return;
|
|
@@ -43684,9 +43702,10 @@ const resolvePostIdsFromRooms = (rooms, posts) => {
|
|
|
43684
43702
|
return ((_a = rooms
|
|
43685
43703
|
.map(room => {
|
|
43686
43704
|
const post = posts.find(post => post.postId === room.referenceId);
|
|
43705
|
+
/* c8 ignore next */
|
|
43687
43706
|
return post ? getResolver('post')({ postId: post === null || post === void 0 ? void 0 : post.postId }) : undefined;
|
|
43688
43707
|
})
|
|
43689
|
-
.filter(isNonNullable)) !== null && _a !== void 0 ? _a : []);
|
|
43708
|
+
.filter(isNonNullable) /* c8 ignore next */) !== null && _a !== void 0 ? _a : []);
|
|
43690
43709
|
};
|
|
43691
43710
|
|
|
43692
43711
|
class CommunityFeedLiveCollectionController extends LiveCollectionController {
|
|
@@ -43909,7 +43928,9 @@ getPostByIds.locally = (postIds) => {
|
|
|
43909
43928
|
.map(postId => pullFromCache(['post', 'get', postId]))
|
|
43910
43929
|
.filter(Boolean);
|
|
43911
43930
|
const posts = cached.map(({ data }) => data);
|
|
43931
|
+
/* c8 ignore next */
|
|
43912
43932
|
const oldest = (_a = cached.sort((a, b) => (a.cachedAt < b.cachedAt ? -1 : 1))) === null || _a === void 0 ? void 0 : _a[0];
|
|
43933
|
+
/* c8 ignore next */
|
|
43913
43934
|
if ((cached === null || cached === void 0 ? void 0 : cached.length) < postIds.length)
|
|
43914
43935
|
return;
|
|
43915
43936
|
return {
|
|
@@ -43950,9 +43971,11 @@ const createPost = async (bundle) => {
|
|
|
43950
43971
|
const processedAttachments = attachments && attachments.length > 0 && bundle.attachmentProductTags
|
|
43951
43972
|
? attachments.map(attachment => {
|
|
43952
43973
|
var _a;
|
|
43974
|
+
/* c8 ignore next */
|
|
43953
43975
|
const productTags = (_a = bundle.attachmentProductTags) === null || _a === void 0 ? void 0 : _a.get(attachment.fileId);
|
|
43954
43976
|
if (productTags)
|
|
43955
43977
|
return Object.assign(Object.assign({}, attachment), { productTags });
|
|
43978
|
+
/* c8 ignore next */
|
|
43956
43979
|
return attachment;
|
|
43957
43980
|
})
|
|
43958
43981
|
: attachments;
|
|
@@ -43997,9 +44020,11 @@ const editPost = async (postId, patch) => {
|
|
|
43997
44020
|
const processedAttachments = attachments && attachments.length > 0 && patch.attachmentProductTags
|
|
43998
44021
|
? attachments.map(attachment => {
|
|
43999
44022
|
var _a;
|
|
44023
|
+
/* c8 ignore next */
|
|
44000
44024
|
const productTags = (_a = patch.attachmentProductTags) === null || _a === void 0 ? void 0 : _a.get(attachment.fileId);
|
|
44001
44025
|
if (productTags)
|
|
44002
44026
|
return Object.assign(Object.assign({}, attachment), { productTags });
|
|
44027
|
+
/* c8 ignore next */
|
|
44003
44028
|
return attachment;
|
|
44004
44029
|
})
|
|
44005
44030
|
: attachments;
|
|
@@ -44047,9 +44072,12 @@ const deletePost = async (postId, permanent = false) => {
|
|
|
44047
44072
|
// later when realtime events covers that for us.
|
|
44048
44073
|
if (post.data.targetType === 'community') {
|
|
44049
44074
|
const community = await getCommunity$1(post.data.targetId);
|
|
44050
|
-
const communityUsersCache =
|
|
44075
|
+
const communityUsersCache =
|
|
44076
|
+
/* c8 ignore next */
|
|
44077
|
+
(_a = queryCache(['communityUsers', 'get'])) !== null && _a !== void 0 ? _a : [];
|
|
44051
44078
|
const communityUsers = communityUsersCache
|
|
44052
44079
|
.filter(({ key }) => {
|
|
44080
|
+
/* c8 ignore start */
|
|
44053
44081
|
// cache key is ['communityUsers', 'get', `${communityId}#`${userId}`}]
|
|
44054
44082
|
if (key[0] !== 'communityUsers')
|
|
44055
44083
|
return false;
|
|
@@ -44058,6 +44086,7 @@ const deletePost = async (postId, permanent = false) => {
|
|
|
44058
44086
|
if (typeof key[2] === 'string')
|
|
44059
44087
|
return key[2].includes(community.data.communityId);
|
|
44060
44088
|
return false;
|
|
44089
|
+
/* c8 ignore end */
|
|
44061
44090
|
})
|
|
44062
44091
|
.map(({ data }) => data);
|
|
44063
44092
|
fireEvent('community.updated', {
|
|
@@ -44072,7 +44101,9 @@ const deletePost = async (postId, permanent = false) => {
|
|
|
44072
44101
|
// to support hard deletion
|
|
44073
44102
|
const deleted = Object.assign(Object.assign({}, post.data), { isDeleted: true });
|
|
44074
44103
|
if (permanent) {
|
|
44104
|
+
/* c8 ignore next */
|
|
44075
44105
|
setTimeout(() => {
|
|
44106
|
+
/* c8 ignore next */
|
|
44076
44107
|
pushToTombstone('post', postId);
|
|
44077
44108
|
}, 0);
|
|
44078
44109
|
}
|
|
@@ -44334,9 +44365,11 @@ const createClipPost = async (bundle) => {
|
|
|
44334
44365
|
const processedAttachments = attachments && attachments.length > 0 && bundle.attachmentProductTags
|
|
44335
44366
|
? attachments.map(attachment => {
|
|
44336
44367
|
var _a;
|
|
44368
|
+
/* c8 ignore next */
|
|
44337
44369
|
const productTags = (_a = bundle.attachmentProductTags) === null || _a === void 0 ? void 0 : _a.get(attachment.fileId);
|
|
44338
44370
|
if (productTags)
|
|
44339
44371
|
return Object.assign(Object.assign({}, attachment), { productTags });
|
|
44372
|
+
/* c8 ignore next */
|
|
44340
44373
|
return attachment;
|
|
44341
44374
|
})
|
|
44342
44375
|
: attachments;
|
|
@@ -44382,9 +44415,11 @@ const createAudioPost = async (bundle) => {
|
|
|
44382
44415
|
const { attachments, attachmentProductTags } = bundle, rest = __rest(bundle, ["attachments", "attachmentProductTags"]);
|
|
44383
44416
|
const processedAttachments = attachments && attachments.length > 0 && attachmentProductTags
|
|
44384
44417
|
? attachments.map(attachment => {
|
|
44418
|
+
/* c8 ignore next */
|
|
44385
44419
|
const productTags = attachmentProductTags === null || attachmentProductTags === void 0 ? void 0 : attachmentProductTags.get(attachment.fileId);
|
|
44386
44420
|
if (productTags)
|
|
44387
44421
|
return Object.assign(Object.assign({}, attachment), { productTags });
|
|
44422
|
+
/* c8 ignore next */
|
|
44388
44423
|
return attachment;
|
|
44389
44424
|
})
|
|
44390
44425
|
: attachments;
|
|
@@ -44395,6 +44430,7 @@ const createAudioPost = async (bundle) => {
|
|
|
44395
44430
|
if (client.cache)
|
|
44396
44431
|
ingestInCache(data, { cachedAt });
|
|
44397
44432
|
return {
|
|
44433
|
+
/* c8 ignore next */
|
|
44398
44434
|
data: postLinkedObject(data === null || data === void 0 ? void 0 : data.posts[0]),
|
|
44399
44435
|
cachedAt,
|
|
44400
44436
|
};
|
|
@@ -44436,12 +44472,14 @@ const createMixedMediaPost = async (bundle) => {
|
|
|
44436
44472
|
const processedAttachments = attachments && attachments.length > 0 && bundle.attachmentProductTags
|
|
44437
44473
|
? attachments.map(attachment => {
|
|
44438
44474
|
var _a;
|
|
44475
|
+
/* c8 ignore next */
|
|
44439
44476
|
const productTags = (_a = bundle.attachmentProductTags) === null || _a === void 0 ? void 0 : _a.get(attachment.fileId);
|
|
44440
44477
|
if (productTags)
|
|
44441
44478
|
return Object.assign(Object.assign({}, attachment), { productTags });
|
|
44479
|
+
/* c8 ignore next */
|
|
44442
44480
|
return attachment;
|
|
44443
44481
|
})
|
|
44444
|
-
: attachments;
|
|
44482
|
+
: /* c8 ignore next */ attachments;
|
|
44445
44483
|
const { data: payload } = await client.http.post('/api/v4/posts', Object.assign(Object.assign({}, rest), { attachments: processedAttachments }));
|
|
44446
44484
|
fireEvent('post.created', payload);
|
|
44447
44485
|
const data = preparePostPayload(payload);
|
|
@@ -44449,6 +44487,7 @@ const createMixedMediaPost = async (bundle) => {
|
|
|
44449
44487
|
if (client.cache)
|
|
44450
44488
|
ingestInCache(data, { cachedAt });
|
|
44451
44489
|
return {
|
|
44490
|
+
/* c8 ignore next */
|
|
44452
44491
|
data: postLinkedObject((_a = data === null || data === void 0 ? void 0 : data.posts) === null || _a === void 0 ? void 0 : _a[0]),
|
|
44453
44492
|
cachedAt,
|
|
44454
44493
|
};
|
|
@@ -44521,6 +44560,7 @@ const pinProduct = async (postId, pinnedProductId) => {
|
|
|
44521
44560
|
ingestInCache(payload, { cachedAt });
|
|
44522
44561
|
fireEvent('local.post.updated', payload);
|
|
44523
44562
|
return {
|
|
44563
|
+
/* c8 ignore next */
|
|
44524
44564
|
data: postLinkedObject(data === null || data === void 0 ? void 0 : data.posts[0]),
|
|
44525
44565
|
cachedAt,
|
|
44526
44566
|
};
|
|
@@ -44552,6 +44592,7 @@ const unpinProduct = async (postId) => {
|
|
|
44552
44592
|
ingestInCache(payload, { cachedAt });
|
|
44553
44593
|
fireEvent('local.post.updated', payload);
|
|
44554
44594
|
return {
|
|
44595
|
+
/* c8 ignore next */
|
|
44555
44596
|
data: postLinkedObject(data === null || data === void 0 ? void 0 : data.posts[0]),
|
|
44556
44597
|
cachedAt,
|
|
44557
44598
|
};
|
|
@@ -44586,6 +44627,7 @@ const updateProductTags = async (postId, productTags) => {
|
|
|
44586
44627
|
ingestInCache(payload, { cachedAt });
|
|
44587
44628
|
fireEvent('local.post.updated', payload);
|
|
44588
44629
|
return {
|
|
44630
|
+
/* c8 ignore next */
|
|
44589
44631
|
data: postLinkedObject(data === null || data === void 0 ? void 0 : data.posts[0]),
|
|
44590
44632
|
cachedAt,
|
|
44591
44633
|
};
|