@amityco/ts-sdk 7.3.1-e2dead4.0 → 7.4.1-0e170b02.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/@types/core/events.d.ts +7 -0
- package/dist/@types/core/events.d.ts.map +1 -1
- package/dist/@types/core/model.d.ts +5 -1
- package/dist/@types/core/model.d.ts.map +1 -1
- package/dist/@types/core/payload.d.ts +38 -5
- package/dist/@types/core/payload.d.ts.map +1 -1
- package/dist/@types/domains/client.d.ts +10 -0
- package/dist/@types/domains/client.d.ts.map +1 -1
- package/dist/@types/domains/community.d.ts +37 -1
- package/dist/@types/domains/community.d.ts.map +1 -1
- package/dist/@types/domains/invitation.d.ts +88 -0
- package/dist/@types/domains/invitation.d.ts.map +1 -0
- package/dist/@types/domains/joinRequest.d.ts +53 -0
- package/dist/@types/domains/joinRequest.d.ts.map +1 -0
- package/dist/@types/index.d.ts +3 -0
- package/dist/@types/index.d.ts.map +1 -1
- package/dist/commentRepository/api/flagComment.d.ts +3 -2
- package/dist/commentRepository/api/flagComment.d.ts.map +1 -1
- package/dist/communityRepository/api/createCommunity.d.ts +2 -2
- package/dist/communityRepository/api/createCommunity.d.ts.map +1 -1
- package/dist/communityRepository/api/getCommunities.d.ts +1 -1
- package/dist/communityRepository/api/getCommunities.d.ts.map +1 -1
- package/dist/communityRepository/api/getCommunity.d.ts +1 -1
- package/dist/communityRepository/api/getCommunity.d.ts.map +1 -1
- package/dist/communityRepository/api/getRecommendedCommunities.d.ts +3 -1
- package/dist/communityRepository/api/getRecommendedCommunities.d.ts.map +1 -1
- package/dist/communityRepository/api/getTrendingCommunities.d.ts +3 -1
- package/dist/communityRepository/api/getTrendingCommunities.d.ts.map +1 -1
- package/dist/communityRepository/api/joinCommunity.d.ts +3 -0
- package/dist/communityRepository/api/joinCommunity.d.ts.map +1 -1
- package/dist/communityRepository/api/queryCommunities.d.ts.map +1 -1
- package/dist/communityRepository/api/updateCommunity.d.ts +2 -2
- package/dist/communityRepository/api/updateCommunity.d.ts.map +1 -1
- package/dist/communityRepository/communityMembership/events/onCommunityJoined.d.ts +1 -1
- package/dist/communityRepository/communityMembership/events/onCommunityJoined.d.ts.map +1 -1
- package/dist/communityRepository/communityMembership/events/onCommunityLeft.d.ts +1 -1
- package/dist/communityRepository/communityMembership/events/onCommunityLeft.d.ts.map +1 -1
- package/dist/communityRepository/communityMembership/events/onCommunityUserAdded.d.ts +1 -1
- package/dist/communityRepository/communityMembership/events/onCommunityUserAdded.d.ts.map +1 -1
- package/dist/communityRepository/communityMembership/events/onCommunityUserBanned.d.ts +1 -1
- package/dist/communityRepository/communityMembership/events/onCommunityUserBanned.d.ts.map +1 -1
- package/dist/communityRepository/communityMembership/events/onCommunityUserChanged.d.ts +1 -1
- package/dist/communityRepository/communityMembership/events/onCommunityUserChanged.d.ts.map +1 -1
- package/dist/communityRepository/communityMembership/events/onCommunityUserRemoved.d.ts +1 -1
- package/dist/communityRepository/communityMembership/events/onCommunityUserRemoved.d.ts.map +1 -1
- package/dist/communityRepository/communityMembership/events/onCommunityUserRoleAdded.d.ts +1 -1
- package/dist/communityRepository/communityMembership/events/onCommunityUserRoleAdded.d.ts.map +1 -1
- package/dist/communityRepository/communityMembership/events/onCommunityUserRoleRemoved.d.ts +1 -1
- package/dist/communityRepository/communityMembership/events/onCommunityUserRoleRemoved.d.ts.map +1 -1
- package/dist/communityRepository/communityMembership/events/onCommunityUserUnbanned.d.ts +1 -1
- package/dist/communityRepository/communityMembership/events/onCommunityUserUnbanned.d.ts.map +1 -1
- package/dist/communityRepository/communityMembership/events/onLocalCommunityJoined.d.ts +1 -1
- package/dist/communityRepository/communityMembership/events/onLocalCommunityJoined.d.ts.map +1 -1
- package/dist/communityRepository/communityMembership/events/onLocalCommunityLeft.d.ts +1 -1
- package/dist/communityRepository/communityMembership/events/onLocalCommunityLeft.d.ts.map +1 -1
- package/dist/communityRepository/communityMembership/events/onLocalCommunityUserAdded.d.ts +1 -1
- package/dist/communityRepository/communityMembership/events/onLocalCommunityUserAdded.d.ts.map +1 -1
- package/dist/communityRepository/communityMembership/events/onLocalCommunityUserRemoved.d.ts +1 -1
- package/dist/communityRepository/communityMembership/events/onLocalCommunityUserRemoved.d.ts.map +1 -1
- package/dist/communityRepository/communityMembership/events/onUserDeleted.d.ts +1 -1
- package/dist/communityRepository/communityMembership/events/onUserDeleted.d.ts.map +1 -1
- package/dist/communityRepository/communityMembership/events/utils.d.ts +2 -2
- package/dist/communityRepository/communityMembership/events/utils.d.ts.map +1 -1
- package/dist/communityRepository/communityMembership/observers/getMembers/CommunityMembersQueryStreamController.d.ts +2 -2
- package/dist/communityRepository/communityMembership/observers/getMembers/CommunityMembersQueryStreamController.d.ts.map +1 -1
- package/dist/communityRepository/communityMembership/observers/searchMembers/SearchCommunityMembersQueryStreamController.d.ts +2 -2
- package/dist/communityRepository/communityMembership/observers/searchMembers/SearchCommunityMembersQueryStreamController.d.ts.map +1 -1
- package/dist/communityRepository/communityModeration/events/onLocalCommunityRoleAdded.d.ts +1 -1
- package/dist/communityRepository/communityModeration/events/onLocalCommunityRoleAdded.d.ts.map +1 -1
- package/dist/communityRepository/communityModeration/events/onLocalCommunityRoleRemoved.d.ts +1 -1
- package/dist/communityRepository/communityModeration/events/onLocalCommunityRoleRemoved.d.ts.map +1 -1
- package/dist/communityRepository/events/onCommunityCreated.d.ts +1 -1
- package/dist/communityRepository/events/onCommunityCreated.d.ts.map +1 -1
- package/dist/communityRepository/events/onCommunityDeleted.d.ts +1 -1
- package/dist/communityRepository/events/onCommunityDeleted.d.ts.map +1 -1
- package/dist/communityRepository/events/onCommunityUpdated.d.ts +1 -1
- package/dist/communityRepository/events/onCommunityUpdated.d.ts.map +1 -1
- package/dist/communityRepository/events/utils.d.ts +1 -1
- package/dist/communityRepository/events/utils.d.ts.map +1 -1
- package/dist/communityRepository/internalAPI/getMyJoinRequest.d.ts +16 -0
- package/dist/communityRepository/internalAPI/getMyJoinRequest.d.ts.map +1 -0
- package/dist/communityRepository/internalAPI/joinCommunity.d.ts +16 -0
- package/dist/communityRepository/internalAPI/joinCommunity.d.ts.map +1 -0
- package/dist/communityRepository/joinRequest/events/index.d.ts +4 -0
- package/dist/communityRepository/joinRequest/events/index.d.ts.map +1 -0
- package/dist/communityRepository/joinRequest/events/onJoinRequestCreated.d.ts +17 -0
- package/dist/communityRepository/joinRequest/events/onJoinRequestCreated.d.ts.map +1 -0
- package/dist/communityRepository/joinRequest/events/onJoinRequestDeleted.d.ts +17 -0
- package/dist/communityRepository/joinRequest/events/onJoinRequestDeleted.d.ts.map +1 -0
- package/dist/communityRepository/joinRequest/events/onJoinRequestUpdated.d.ts +17 -0
- package/dist/communityRepository/joinRequest/events/onJoinRequestUpdated.d.ts.map +1 -0
- package/dist/communityRepository/joinRequest/internalAPI/approveJoinRequest.d.ts +16 -0
- package/dist/communityRepository/joinRequest/internalAPI/approveJoinRequest.d.ts.map +1 -0
- package/dist/communityRepository/joinRequest/internalAPI/cancelJoinRequest.d.ts +16 -0
- package/dist/communityRepository/joinRequest/internalAPI/cancelJoinRequest.d.ts.map +1 -0
- package/dist/communityRepository/joinRequest/internalAPI/rejectJoinRequest.d.ts +16 -0
- package/dist/communityRepository/joinRequest/internalAPI/rejectJoinRequest.d.ts.map +1 -0
- package/dist/communityRepository/observers/getCommunities/CommunitiesQueryStreamController.d.ts +2 -2
- package/dist/communityRepository/observers/getCommunities/CommunitiesQueryStreamController.d.ts.map +1 -1
- package/dist/communityRepository/observers/getJoinRequests/JoinRequestsLiveCollectionController.d.ts +14 -0
- package/dist/communityRepository/observers/getJoinRequests/JoinRequestsLiveCollectionController.d.ts.map +1 -0
- package/dist/communityRepository/observers/getJoinRequests/JoinRequestsPaginationController.d.ts +9 -0
- package/dist/communityRepository/observers/getJoinRequests/JoinRequestsPaginationController.d.ts.map +1 -0
- package/dist/communityRepository/observers/getJoinRequests/JoinRequestsQueryStreamController.d.ts +15 -0
- package/dist/communityRepository/observers/getJoinRequests/JoinRequestsQueryStreamController.d.ts.map +1 -0
- package/dist/communityRepository/observers/getJoinRequests/enum.d.ts +6 -0
- package/dist/communityRepository/observers/getJoinRequests/enum.d.ts.map +1 -0
- package/dist/communityRepository/observers/getJoinRequests.d.ts +12 -0
- package/dist/communityRepository/observers/getJoinRequests.d.ts.map +1 -0
- package/dist/communityRepository/observers/getRecommendedCommunities/RecommendedCommunitiesLiveCollectionController.d.ts.map +1 -1
- package/dist/communityRepository/observers/getRecommendedCommunities/RecommendedCommunitiesQueryStreamController.d.ts +2 -2
- package/dist/communityRepository/observers/getRecommendedCommunities/RecommendedCommunitiesQueryStreamController.d.ts.map +1 -1
- package/dist/communityRepository/observers/getTrendingCommunities/TrendingCommunitiesLiveCollectionController.d.ts.map +1 -1
- package/dist/communityRepository/observers/getTrendingCommunities/TrendingCommunitiesQueryStreamController.d.ts +2 -2
- package/dist/communityRepository/observers/getTrendingCommunities/TrendingCommunitiesQueryStreamController.d.ts.map +1 -1
- package/dist/communityRepository/observers/searchCommunities/SearchCommunitiesPaginationController.d.ts.map +1 -1
- package/dist/communityRepository/observers/searchCommunities/SearchCommunitiesQueryStreamController.d.ts +2 -2
- package/dist/communityRepository/observers/searchCommunities/SearchCommunitiesQueryStreamController.d.ts.map +1 -1
- package/dist/communityRepository/observers/semanticSearch/SemanticSearchCommunityQueryStreamController.d.ts +2 -2
- package/dist/communityRepository/observers/semanticSearch/SemanticSearchCommunityQueryStreamController.d.ts.map +1 -1
- package/dist/communityRepository/utils/communityWithMembership.d.ts +1 -1
- package/dist/communityRepository/utils/communityWithMembership.d.ts.map +1 -1
- package/dist/communityRepository/utils/payload.d.ts +2 -1
- package/dist/communityRepository/utils/payload.d.ts.map +1 -1
- package/dist/core/events.d.ts +3 -3
- package/dist/core/events.d.ts.map +1 -1
- package/dist/core/model/idResolvers.d.ts.map +1 -1
- package/dist/core/model/index.d.ts.map +1 -1
- package/dist/index.cjs.js +2686 -1421
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +2948 -1684
- package/dist/index.umd.js +4 -4
- package/dist/invitationRepository/events/index.d.ts +4 -0
- package/dist/invitationRepository/events/index.d.ts.map +1 -0
- package/dist/invitationRepository/events/onLocalInvitationCreated.d.ts +17 -0
- package/dist/invitationRepository/events/onLocalInvitationCreated.d.ts.map +1 -0
- package/dist/invitationRepository/events/onLocalInvitationDeleted.d.ts +17 -0
- package/dist/invitationRepository/events/onLocalInvitationDeleted.d.ts.map +1 -0
- package/dist/invitationRepository/events/onLocalInvitationUpdated.d.ts +17 -0
- package/dist/invitationRepository/events/onLocalInvitationUpdated.d.ts.map +1 -0
- package/dist/invitationRepository/index.d.ts +3 -0
- package/dist/invitationRepository/index.d.ts.map +1 -0
- package/dist/invitationRepository/internalApi/acceptInvitation.d.ts +16 -0
- package/dist/invitationRepository/internalApi/acceptInvitation.d.ts.map +1 -0
- package/dist/invitationRepository/internalApi/cancelInvitation.d.ts +16 -0
- package/dist/invitationRepository/internalApi/cancelInvitation.d.ts.map +1 -0
- package/dist/invitationRepository/internalApi/createInvitations.d.ts +21 -0
- package/dist/invitationRepository/internalApi/createInvitations.d.ts.map +1 -0
- package/dist/invitationRepository/internalApi/getInvitation.d.ts +17 -0
- package/dist/invitationRepository/internalApi/getInvitation.d.ts.map +1 -0
- package/dist/invitationRepository/internalApi/index.d.ts +5 -0
- package/dist/invitationRepository/internalApi/index.d.ts.map +1 -0
- package/dist/invitationRepository/internalApi/rejectInvitation.d.ts +16 -0
- package/dist/invitationRepository/internalApi/rejectInvitation.d.ts.map +1 -0
- package/dist/invitationRepository/observers/getInvitations/InvitationsLiveCollectionController.d.ts +14 -0
- package/dist/invitationRepository/observers/getInvitations/InvitationsLiveCollectionController.d.ts.map +1 -0
- package/dist/invitationRepository/observers/getInvitations/InvitationsPaginationController.d.ts +5 -0
- package/dist/invitationRepository/observers/getInvitations/InvitationsPaginationController.d.ts.map +1 -0
- package/dist/invitationRepository/observers/getInvitations/InvitationsQueryStreamController.d.ts +15 -0
- package/dist/invitationRepository/observers/getInvitations/InvitationsQueryStreamController.d.ts.map +1 -0
- package/dist/invitationRepository/observers/getInvitations/enums.d.ts +6 -0
- package/dist/invitationRepository/observers/getInvitations/enums.d.ts.map +1 -0
- package/dist/invitationRepository/observers/getInvitations.d.ts +12 -0
- package/dist/invitationRepository/observers/getInvitations.d.ts.map +1 -0
- package/dist/invitationRepository/observers/getMyCommunityInvitations.d.ts +12 -0
- package/dist/invitationRepository/observers/getMyCommunityInvitations.d.ts.map +1 -0
- package/dist/invitationRepository/observers/getMyInvitations/MyInvitationsLiveCollectionController.d.ts +14 -0
- package/dist/invitationRepository/observers/getMyInvitations/MyInvitationsLiveCollectionController.d.ts.map +1 -0
- package/dist/invitationRepository/observers/getMyInvitations/MyInvitationsPaginationController.d.ts +5 -0
- package/dist/invitationRepository/observers/getMyInvitations/MyInvitationsPaginationController.d.ts.map +1 -0
- package/dist/invitationRepository/observers/getMyInvitations/MyInvitationsQueryStreamController.d.ts +15 -0
- package/dist/invitationRepository/observers/getMyInvitations/MyInvitationsQueryStreamController.d.ts.map +1 -0
- package/dist/invitationRepository/observers/index.d.ts +2 -0
- package/dist/invitationRepository/observers/index.d.ts.map +1 -0
- package/dist/invitationRepository/utils/convertRawInvitationToInternalInvitation.d.ts +2 -0
- package/dist/invitationRepository/utils/convertRawInvitationToInternalInvitation.d.ts.map +1 -0
- package/dist/invitationRepository/utils/index.d.ts +2 -0
- package/dist/invitationRepository/utils/index.d.ts.map +1 -0
- package/dist/invitationRepository/utils/prepareInvitationPayload.d.ts +2 -0
- package/dist/invitationRepository/utils/prepareInvitationPayload.d.ts.map +1 -0
- package/dist/invitationRepository/utils/prepareMyInvitationsPayload.d.ts +2 -0
- package/dist/invitationRepository/utils/prepareMyInvitationsPayload.d.ts.map +1 -0
- package/dist/messageRepository/api/flagMessage.d.ts +1 -1
- package/dist/messageRepository/api/flagMessage.d.ts.map +1 -1
- package/dist/postRepository/api/flagPost.d.ts +3 -2
- package/dist/postRepository/api/flagPost.d.ts.map +1 -1
- package/dist/postRepository/observers/getGlobalPinnedPosts/GlobalPinnedPostQueryStreamController.d.ts.map +1 -1
- package/dist/postRepository/observers/getPinnedPosts/PinnedPostQueryStreamController.d.ts.map +1 -1
- package/dist/subChannelRepository/utils/prepareSubChannelPayload.d.ts.map +1 -1
- package/dist/utils/linkedObject/communityLinkedObject.d.ts +2 -0
- package/dist/utils/linkedObject/communityLinkedObject.d.ts.map +1 -0
- package/dist/utils/linkedObject/index.d.ts +3 -0
- package/dist/utils/linkedObject/index.d.ts.map +1 -1
- package/dist/utils/linkedObject/invitationLinkedObject.d.ts +2 -0
- package/dist/utils/linkedObject/invitationLinkedObject.d.ts.map +1 -0
- package/dist/utils/linkedObject/joinRequestLinkedObject.d.ts +2 -0
- package/dist/utils/linkedObject/joinRequestLinkedObject.d.ts.map +1 -0
- package/dist/utils/tests/dummy/comment.d.ts +1 -1
- package/dist/utils/tests/dummy/post.d.ts +3 -3
- package/package.json +1 -1
- package/src/@types/core/events.ts +11 -1
- package/src/@types/core/model.ts +8 -1
- package/src/@types/core/payload.ts +48 -5
- package/src/@types/domains/client.ts +12 -0
- package/src/@types/domains/community.ts +56 -1
- package/src/@types/domains/invitation.ts +116 -0
- package/src/@types/domains/joinRequest.ts +66 -0
- package/src/@types/index.ts +3 -0
- package/src/commentRepository/api/flagComment.ts +20 -3
- package/src/communityRepository/api/createCommunity.ts +5 -2
- package/src/communityRepository/api/getCommunities.ts +7 -2
- package/src/communityRepository/api/getCommunity.ts +13 -2
- package/src/communityRepository/api/getRecommendedCommunities.ts +11 -4
- package/src/communityRepository/api/getTrendingCommunities.ts +11 -4
- package/src/communityRepository/api/joinCommunity.ts +4 -1
- package/src/communityRepository/api/queryCommunities.ts +6 -1
- package/src/communityRepository/api/updateCommunity.ts +13 -3
- package/src/communityRepository/communityMembership/events/onCommunityJoined.ts +1 -1
- package/src/communityRepository/communityMembership/events/onCommunityLeft.ts +1 -1
- package/src/communityRepository/communityMembership/events/onCommunityUserAdded.ts +1 -1
- package/src/communityRepository/communityMembership/events/onCommunityUserBanned.ts +1 -1
- package/src/communityRepository/communityMembership/events/onCommunityUserChanged.ts +1 -1
- package/src/communityRepository/communityMembership/events/onCommunityUserRemoved.ts +1 -1
- package/src/communityRepository/communityMembership/events/onCommunityUserRoleAdded.ts +1 -1
- package/src/communityRepository/communityMembership/events/onCommunityUserRoleRemoved.ts +1 -1
- package/src/communityRepository/communityMembership/events/onCommunityUserUnbanned.ts +1 -1
- package/src/communityRepository/communityMembership/events/onLocalCommunityJoined.ts +1 -1
- package/src/communityRepository/communityMembership/events/onLocalCommunityLeft.ts +1 -1
- package/src/communityRepository/communityMembership/events/onLocalCommunityUserAdded.ts +1 -1
- package/src/communityRepository/communityMembership/events/onLocalCommunityUserRemoved.ts +1 -1
- package/src/communityRepository/communityMembership/events/onUserDeleted.ts +3 -1
- package/src/communityRepository/communityMembership/events/utils.ts +2 -2
- package/src/communityRepository/communityMembership/observers/getMembers/CommunityMembersQueryStreamController.ts +8 -2
- package/src/communityRepository/communityMembership/observers/searchMembers/SearchCommunityMembersQueryStreamController.ts +8 -2
- package/src/communityRepository/communityModeration/events/onLocalCommunityRoleAdded.ts +1 -1
- package/src/communityRepository/communityModeration/events/onLocalCommunityRoleRemoved.ts +1 -1
- package/src/communityRepository/events/onCommunityCreated.ts +1 -1
- package/src/communityRepository/events/onCommunityDeleted.ts +1 -1
- package/src/communityRepository/events/onCommunityUpdated.ts +1 -1
- package/src/communityRepository/events/utils.ts +1 -1
- package/src/communityRepository/internalAPI/getMyJoinRequest.ts +43 -0
- package/src/communityRepository/internalAPI/joinCommunity.ts +49 -0
- package/src/communityRepository/joinRequest/events/index.ts +3 -0
- package/src/communityRepository/joinRequest/events/onJoinRequestCreated.ts +33 -0
- package/src/communityRepository/joinRequest/events/onJoinRequestDeleted.ts +33 -0
- package/src/communityRepository/joinRequest/events/onJoinRequestUpdated.ts +33 -0
- package/src/communityRepository/joinRequest/internalAPI/approveJoinRequest.ts +56 -0
- package/src/communityRepository/joinRequest/internalAPI/cancelJoinRequest.ts +51 -0
- package/src/communityRepository/joinRequest/internalAPI/rejectJoinRequest.ts +49 -0
- package/src/communityRepository/observers/getCommunities/CommunitiesQueryStreamController.ts +2 -2
- package/src/communityRepository/observers/getJoinRequests/JoinRequestsLiveCollectionController.ts +126 -0
- package/src/communityRepository/observers/getJoinRequests/JoinRequestsPaginationController.ts +26 -0
- package/src/communityRepository/observers/getJoinRequests/JoinRequestsQueryStreamController.ts +108 -0
- package/src/communityRepository/observers/getJoinRequests/enum.ts +5 -0
- package/src/communityRepository/observers/getJoinRequests.ts +44 -0
- package/src/communityRepository/observers/getRecommendedCommunities/RecommendedCommunitiesLiveCollectionController.ts +2 -1
- package/src/communityRepository/observers/getRecommendedCommunities/RecommendedCommunitiesQueryStreamController.ts +2 -2
- package/src/communityRepository/observers/getTrendingCommunities/TrendingCommunitiesLiveCollectionController.ts +2 -1
- package/src/communityRepository/observers/getTrendingCommunities/TrendingCommunitiesQueryStreamController.ts +2 -2
- package/src/communityRepository/observers/searchCommunities/SearchCommunitiesPaginationController.ts +1 -0
- package/src/communityRepository/observers/searchCommunities/SearchCommunitiesQueryStreamController.ts +2 -2
- package/src/communityRepository/observers/semanticSearch/SemanticSearchCommunityQueryStreamController.ts +2 -2
- package/src/communityRepository/utils/communityWithMembership.ts +9 -5
- package/src/communityRepository/utils/payload.ts +28 -2
- package/src/core/liveCollection/PaginationController.ts +1 -1
- package/src/core/liveCollection/PaginationNoPageController.ts +1 -1
- package/src/core/model/idResolvers.ts +3 -0
- package/src/core/model/index.ts +2 -0
- package/src/index.ts +2 -0
- package/src/invitationRepository/events/index.ts +3 -0
- package/src/invitationRepository/events/onLocalInvitationCreated.ts +33 -0
- package/src/invitationRepository/events/onLocalInvitationDeleted.ts +33 -0
- package/src/invitationRepository/events/onLocalInvitationUpdated.ts +33 -0
- package/src/invitationRepository/index.ts +2 -0
- package/src/invitationRepository/internalApi/acceptInvitation.ts +45 -0
- package/src/invitationRepository/internalApi/cancelInvitation.ts +44 -0
- package/src/invitationRepository/internalApi/createInvitations.ts +52 -0
- package/src/invitationRepository/internalApi/getInvitation.ts +47 -0
- package/src/invitationRepository/internalApi/index.ts +4 -0
- package/src/invitationRepository/internalApi/rejectInvitation.ts +45 -0
- package/src/invitationRepository/observers/getInvitations/InvitationsLiveCollectionController.ts +148 -0
- package/src/invitationRepository/observers/getInvitations/InvitationsPaginationController.ts +19 -0
- package/src/invitationRepository/observers/getInvitations/InvitationsQueryStreamController.ts +97 -0
- package/src/invitationRepository/observers/getInvitations/enums.ts +5 -0
- package/src/invitationRepository/observers/getInvitations.ts +44 -0
- package/src/invitationRepository/observers/getMyCommunityInvitations.ts +48 -0
- package/src/invitationRepository/observers/getMyInvitations/MyInvitationsLiveCollectionController.ts +148 -0
- package/src/invitationRepository/observers/getMyInvitations/MyInvitationsPaginationController.ts +22 -0
- package/src/invitationRepository/observers/getMyInvitations/MyInvitationsQueryStreamController.ts +105 -0
- package/src/invitationRepository/observers/index.ts +1 -0
- package/src/invitationRepository/utils/convertRawInvitationToInternalInvitation.ts +8 -0
- package/src/invitationRepository/utils/index.ts +1 -0
- package/src/invitationRepository/utils/prepareInvitationPayload.ts +12 -0
- package/src/invitationRepository/utils/prepareMyInvitationsPayload.ts +12 -0
- package/src/messagePreview/utils/getChannelMessagePreviewWithUser.ts +3 -3
- package/src/messageRepository/api/flagMessage.ts +7 -5
- package/src/postRepository/api/flagPost.ts +19 -3
- package/src/postRepository/observers/getGlobalPinnedPosts/GlobalPinnedPostQueryStreamController.ts +7 -1
- package/src/postRepository/observers/getPinnedPosts/PinnedPostQueryStreamController.ts +7 -1
- package/src/subChannelRepository/utils/prepareSubChannelPayload.ts +4 -0
- package/src/utils/linkedObject/communityLinkedObject.ts +58 -0
- package/src/utils/linkedObject/index.ts +6 -0
- package/src/utils/linkedObject/invitationLinkedObject.ts +44 -0
- package/src/utils/linkedObject/joinRequestLinkedObject.ts +27 -0
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* ```js
|
|
3
3
|
* import { CommentRepository } from '@amityco/ts-sdk'
|
|
4
|
-
* const flagged = await CommentRepository.flagComment(
|
|
4
|
+
* const flagged = await CommentRepository.flagComment(commentId, reason)
|
|
5
5
|
* ```
|
|
6
6
|
*
|
|
7
7
|
* @param commentId The ID of the comment to flag
|
|
8
|
+
* @param reason the reason to flag the comment
|
|
8
9
|
* @returns the created report result
|
|
9
10
|
*
|
|
10
11
|
* @category Comment API
|
|
11
12
|
* @async
|
|
12
13
|
* */
|
|
13
|
-
export declare const flagComment: (commentId: Amity.Comment['commentId']) => Promise<boolean>;
|
|
14
|
+
export declare const flagComment: (commentId: Amity.Comment['commentId'], reason?: Amity.ContentFlagReason) => Promise<boolean>;
|
|
14
15
|
//# sourceMappingURL=flagComment.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flagComment.d.ts","sourceRoot":"","sources":["../../../src/commentRepository/api/flagComment.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"flagComment.d.ts","sourceRoot":"","sources":["../../../src/commentRepository/api/flagComment.ts"],"names":[],"mappings":"AASA;;;;;;;;;;;;KAYK;AACL,eAAO,MAAM,WAAW,cACX,aAAa,CAAC,WAAW,CAAC,WAC5B,MAAM,iBAAiB,KAC/B,QAAQ,OAAO,CA2BjB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* ```js
|
|
3
3
|
* import { createCommunity } from '@amityco/ts-sdk'
|
|
4
|
-
* const created = await createCommunity({ communityId: 'foobar', displayName: 'foobar' })
|
|
4
|
+
* const created = await createCommunity({ communityId: 'foobar', displayName: 'foobar', isDiscoverable: true, requiresJoinApproval: false })
|
|
5
5
|
* ```
|
|
6
6
|
*
|
|
7
7
|
* Creates an {@link Amity.Community}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* @category Community API
|
|
13
13
|
* @async
|
|
14
14
|
*/
|
|
15
|
-
export declare const createCommunity: (bundle: Pick<Amity.Community, 'displayName' | 'avatarFileId' | 'description' | 'isPublic' | 'isOfficial' | 'postSetting' | 'tags' | 'metadata'> & Amity.CommunityStorySettings & {
|
|
15
|
+
export declare const createCommunity: (bundle: Pick<Amity.Community, 'displayName' | 'avatarFileId' | 'description' | 'isPublic' | 'isOfficial' | 'postSetting' | 'tags' | 'metadata' | 'isDiscoverable' | 'requiresJoinApproval'> & Amity.CommunityStorySettings & {
|
|
16
16
|
userIds?: string[];
|
|
17
17
|
categoryIds?: string[];
|
|
18
18
|
isUniqueDisplayName?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createCommunity.d.ts","sourceRoot":"","sources":["../../../src/communityRepository/api/createCommunity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"createCommunity.d.ts","sourceRoot":"","sources":["../../../src/communityRepository/api/createCommunity.ts"],"names":[],"mappings":"AAWA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,eAAe,WAClB,KACN,MAAM,SAAS,EACb,aAAa,GACb,cAAc,GACd,aAAa,GACb,UAAU,GACV,YAAY,GACZ,aAAa,GACb,MAAM,GACN,UAAU,GACV,gBAAgB,GAChB,sBAAsB,CACzB,GACC,MAAM,sBAAsB,GAAG;IAC7B,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B,KACF,QAAQ,MAAM,MAAM,CAAC,MAAM,SAAS,CAAC,CAwBvC,CAAC"}
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* @async
|
|
14
14
|
*/
|
|
15
15
|
export declare const getCommunities: {
|
|
16
|
-
(communityIds: Amity.Community['communityId'][]): Promise<Amity.Cached<Amity.Community[]>>;
|
|
16
|
+
(communityIds: Amity.Community['communityId'][], includeDiscoverablePrivateCommunity?: boolean): Promise<Amity.Cached<Amity.Community[]>>;
|
|
17
17
|
/**
|
|
18
18
|
* ```js
|
|
19
19
|
* import { getCommunities } from '@amityco/ts-sdk'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getCommunities.d.ts","sourceRoot":"","sources":["../../../src/communityRepository/api/getCommunities.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getCommunities.d.ts","sourceRoot":"","sources":["../../../src/communityRepository/api/getCommunities.ts"],"names":[],"mappings":"AASA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,cAAc;mBACX,MAAM,SAAS,CAAC,aAAa,CAAC,EAAE,wCACR,OAAO,GAC5C,QAAQ,MAAM,MAAM,CAAC,MAAM,SAAS,EAAE,CAAC,CAAC;IA6B3C;;;;;;;;;;;;OAYG;0BAEa,MAAM,SAAS,CAAC,aAAa,CAAC,EAAE,GAC7C,MAAM,MAAM,CAAC,MAAM,SAAS,EAAE,CAAC,GAAG,SAAS;CAjB7C,CAAC"}
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* @async
|
|
14
14
|
*/
|
|
15
15
|
export declare const getCommunity: {
|
|
16
|
-
(communityId: Amity.Community['communityId']): Promise<Amity.Cached<Amity.Community>>;
|
|
16
|
+
(communityId: Amity.Community['communityId'], type?: Amity.JoinRequestType, includeDiscoverablePrivateCommunity?: boolean): Promise<Amity.Cached<Amity.Community>>;
|
|
17
17
|
/**
|
|
18
18
|
* ```js
|
|
19
19
|
* import { CommunityRepository } from '@amityco/ts-sdk'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getCommunity.d.ts","sourceRoot":"","sources":["../../../src/communityRepository/api/getCommunity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getCommunity.d.ts","sourceRoot":"","sources":["../../../src/communityRepository/api/getCommunity.ts"],"names":[],"mappings":"AASA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,YAAY;kBACV,MAAM,SAAS,CAAC,aAAa,CAAC,SACpC,MAAM,eAAe,wCACU,OAAO,GAC5C,QAAQ,MAAM,MAAM,CAAC,MAAM,SAAS,CAAC,CAAC;IAiCzC;;;;;;;;;;;;OAYG;yBAEY,MAAM,SAAS,CAAC,aAAa,CAAC,GAC1C,MAAM,MAAM,CAAC,MAAM,SAAS,CAAC,GAAG,SAAS;CAjB3C,CAAC"}
|
|
@@ -13,5 +13,7 @@
|
|
|
13
13
|
* @async
|
|
14
14
|
* @private
|
|
15
15
|
*/
|
|
16
|
-
export declare const getRecommendedCommunities: (query?: Amity.PageLimit
|
|
16
|
+
export declare const getRecommendedCommunities: (query?: Amity.PageLimit & {
|
|
17
|
+
includeDiscoverablePrivateCommunity?: boolean;
|
|
18
|
+
}) => Promise<Amity.Cached<Amity.Community[]>>;
|
|
17
19
|
//# sourceMappingURL=getRecommendedCommunities.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getRecommendedCommunities.d.ts","sourceRoot":"","sources":["../../../src/communityRepository/api/getRecommendedCommunities.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getRecommendedCommunities.d.ts","sourceRoot":"","sources":["../../../src/communityRepository/api/getRecommendedCommunities.ts"],"names":[],"mappings":"AAWA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,yBAAyB,WAC5B,MAAM,SAAS,GAAG;IAAE,mCAAmC,CAAC,EAAE,OAAO,CAAA;CAAE,KAC1E,QAAQ,MAAM,MAAM,CAAC,MAAM,SAAS,EAAE,CAAC,CA6BzC,CAAC"}
|
|
@@ -13,5 +13,7 @@
|
|
|
13
13
|
* @async
|
|
14
14
|
* @private
|
|
15
15
|
*/
|
|
16
|
-
export declare const getTrendingCommunities: (query?: Amity.PageLimit
|
|
16
|
+
export declare const getTrendingCommunities: (query?: Amity.PageLimit & {
|
|
17
|
+
includeDiscoverablePrivateCommunity?: boolean;
|
|
18
|
+
}) => Promise<Amity.Cached<Amity.Community[]>>;
|
|
17
19
|
//# sourceMappingURL=getTrendingCommunities.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getTrendingCommunities.d.ts","sourceRoot":"","sources":["../../../src/communityRepository/api/getTrendingCommunities.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getTrendingCommunities.d.ts","sourceRoot":"","sources":["../../../src/communityRepository/api/getTrendingCommunities.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,sBAAsB,WACzB,MAAM,SAAS,GAAG;IAAE,mCAAmC,CAAC,EAAE,OAAO,CAAA;CAAE,KAC1E,QAAQ,MAAM,MAAM,CAAC,MAAM,SAAS,EAAE,CAAC,CA6BzC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"joinCommunity.d.ts","sourceRoot":"","sources":["../../../src/communityRepository/api/joinCommunity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"joinCommunity.d.ts","sourceRoot":"","sources":["../../../src/communityRepository/api/joinCommunity.ts"],"names":[],"mappings":"AAMA;;GAEG;AAIH;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,aAAa,gBACX,MAAM,SAAS,CAAC,aAAa,CAAC,KAC1C,QAAQ,OAAO,CAqBjB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queryCommunities.d.ts","sourceRoot":"","sources":["../../../src/communityRepository/api/queryCommunities.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"queryCommunities.d.ts","sourceRoot":"","sources":["../../../src/communityRepository/api/queryCommunities.ts"],"names":[],"mappings":"AAUA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,gBAAgB,WACnB,MAAM,gBAAgB,KAC7B,QAAQ,MAAM,MAAM,CAAC,MAAM,SAAS,CAAC,MAAM,SAAS,CAAC,CAAC,CAiDxD,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* ```js
|
|
3
3
|
* import { updateCommunity } from '@amityco/ts-sdk'
|
|
4
|
-
* const updated = await updateCommunity(communityId, { displayName: 'foobar' })
|
|
4
|
+
* const updated = await updateCommunity(communityId, { displayName: 'foobar', isDiscoverable: true, requiresJoinApproval: false })
|
|
5
5
|
* ```
|
|
6
6
|
*
|
|
7
7
|
* Updates an {@link Amity.Community}
|
|
@@ -13,5 +13,5 @@
|
|
|
13
13
|
* @category Community API
|
|
14
14
|
* @async
|
|
15
15
|
*/
|
|
16
|
-
export declare const updateCommunity: (communityId: Amity.Community['communityId'], patch: Patch<Amity.Community, 'displayName' | 'avatarFileId' | 'description' | 'postSetting' | 'tags' | 'metadata'> & Amity.CommunityStorySettings) => Promise<Amity.Cached<Amity.Community>>;
|
|
16
|
+
export declare const updateCommunity: (communityId: Amity.Community['communityId'], patch: Patch<Amity.Community, 'displayName' | 'avatarFileId' | 'description' | 'postSetting' | 'tags' | 'metadata' | 'isDiscoverable' | 'requiresJoinApproval'> & Amity.CommunityStorySettings) => Promise<Amity.Cached<Amity.Community>>;
|
|
17
17
|
//# sourceMappingURL=updateCommunity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateCommunity.d.ts","sourceRoot":"","sources":["../../../src/communityRepository/api/updateCommunity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"updateCommunity.d.ts","sourceRoot":"","sources":["../../../src/communityRepository/api/updateCommunity.ts"],"names":[],"mappings":"AAYA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,eAAe,gBACb,MAAM,SAAS,CAAC,aAAa,CAAC,SACpC,MACL,MAAM,SAAS,EACb,aAAa,GACb,cAAc,GACd,aAAa,GACb,aAAa,GACb,MAAM,GACN,UAAU,GACV,gBAAgB,GAChB,sBAAsB,CACzB,GACC,MAAM,sBAAsB,KAC7B,QAAQ,MAAM,MAAM,CAAC,MAAM,SAAS,CAAC,CA2BvC,CAAC"}
|
|
@@ -13,5 +13,5 @@
|
|
|
13
13
|
*
|
|
14
14
|
* @category Community Events
|
|
15
15
|
*/
|
|
16
|
-
export declare const onCommunityJoined: (callback: (community: Amity.
|
|
16
|
+
export declare const onCommunityJoined: (callback: (community: Amity.InternalCommunity, member: Amity.Membership<'community'>[]) => void) => Amity.Unsubscriber;
|
|
17
17
|
//# sourceMappingURL=onCommunityJoined.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onCommunityJoined.d.ts","sourceRoot":"","sources":["../../../../src/communityRepository/communityMembership/events/onCommunityJoined.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,iBAAiB,yBACN,MAAM,
|
|
1
|
+
{"version":3,"file":"onCommunityJoined.d.ts","sourceRoot":"","sources":["../../../../src/communityRepository/communityMembership/events/onCommunityJoined.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,iBAAiB,yBACN,MAAM,iBAAiB,UAAU,MAAM,UAAU,CAAC,WAAW,CAAC,EAAE,KAAK,IAAI,uBAC1B,CAAC"}
|
|
@@ -13,5 +13,5 @@
|
|
|
13
13
|
*
|
|
14
14
|
* @category Community Events
|
|
15
15
|
*/
|
|
16
|
-
export declare const onCommunityLeft: (callback: (community: Amity.
|
|
16
|
+
export declare const onCommunityLeft: (callback: (community: Amity.InternalCommunity, member: Amity.Membership<'community'>[]) => void) => Amity.Unsubscriber;
|
|
17
17
|
//# sourceMappingURL=onCommunityLeft.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onCommunityLeft.d.ts","sourceRoot":"","sources":["../../../../src/communityRepository/communityMembership/events/onCommunityLeft.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,eAAe,yBACJ,MAAM,
|
|
1
|
+
{"version":3,"file":"onCommunityLeft.d.ts","sourceRoot":"","sources":["../../../../src/communityRepository/communityMembership/events/onCommunityLeft.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,eAAe,yBACJ,MAAM,iBAAiB,UAAU,MAAM,UAAU,CAAC,WAAW,CAAC,EAAE,KAAK,IAAI,uBAC5B,CAAC"}
|
|
@@ -13,5 +13,5 @@
|
|
|
13
13
|
*
|
|
14
14
|
* @category Community Events
|
|
15
15
|
*/
|
|
16
|
-
export declare const onCommunityUserAdded: (callback: (community: Amity.
|
|
16
|
+
export declare const onCommunityUserAdded: (callback: (community: Amity.InternalCommunity, member: Amity.Membership<'community'>[]) => void) => Amity.Unsubscriber;
|
|
17
17
|
//# sourceMappingURL=onCommunityUserAdded.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onCommunityUserAdded.d.ts","sourceRoot":"","sources":["../../../../src/communityRepository/communityMembership/events/onCommunityUserAdded.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,oBAAoB,yBACT,MAAM,
|
|
1
|
+
{"version":3,"file":"onCommunityUserAdded.d.ts","sourceRoot":"","sources":["../../../../src/communityRepository/communityMembership/events/onCommunityUserAdded.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,oBAAoB,yBACT,MAAM,iBAAiB,UAAU,MAAM,UAAU,CAAC,WAAW,CAAC,EAAE,KAAK,IAAI,uBACvB,CAAC"}
|
|
@@ -13,5 +13,5 @@
|
|
|
13
13
|
*
|
|
14
14
|
* @category Community Events
|
|
15
15
|
*/
|
|
16
|
-
export declare const onCommunityUserBanned: (callback: (community: Amity.
|
|
16
|
+
export declare const onCommunityUserBanned: (callback: (community: Amity.InternalCommunity, member: Amity.Membership<'community'>[]) => void) => Amity.Unsubscriber;
|
|
17
17
|
//# sourceMappingURL=onCommunityUserBanned.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onCommunityUserBanned.d.ts","sourceRoot":"","sources":["../../../../src/communityRepository/communityMembership/events/onCommunityUserBanned.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,qBAAqB,yBACV,MAAM,
|
|
1
|
+
{"version":3,"file":"onCommunityUserBanned.d.ts","sourceRoot":"","sources":["../../../../src/communityRepository/communityMembership/events/onCommunityUserBanned.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,qBAAqB,yBACV,MAAM,iBAAiB,UAAU,MAAM,UAAU,CAAC,WAAW,CAAC,EAAE,KAAK,IAAI,uBACtB,CAAC"}
|
|
@@ -13,5 +13,5 @@
|
|
|
13
13
|
*
|
|
14
14
|
* @category Community Events
|
|
15
15
|
*/
|
|
16
|
-
export declare const onCommunityUserChanged: (callback: (community: Amity.
|
|
16
|
+
export declare const onCommunityUserChanged: (callback: (community: Amity.InternalCommunity, members: Amity.Membership<'community'>[]) => void) => Amity.Unsubscriber;
|
|
17
17
|
//# sourceMappingURL=onCommunityUserChanged.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onCommunityUserChanged.d.ts","sourceRoot":"","sources":["../../../../src/communityRepository/communityMembership/events/onCommunityUserChanged.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,sBAAsB,yBACX,MAAM,
|
|
1
|
+
{"version":3,"file":"onCommunityUserChanged.d.ts","sourceRoot":"","sources":["../../../../src/communityRepository/communityMembership/events/onCommunityUserChanged.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,sBAAsB,yBACX,MAAM,iBAAiB,WAAW,MAAM,UAAU,CAAC,WAAW,CAAC,EAAE,KAAK,IAAI,uBACtB,CAAC"}
|
|
@@ -13,5 +13,5 @@
|
|
|
13
13
|
*
|
|
14
14
|
* @category Community Events
|
|
15
15
|
*/
|
|
16
|
-
export declare const onCommunityUserRemoved: (callback: (community: Amity.
|
|
16
|
+
export declare const onCommunityUserRemoved: (callback: (community: Amity.InternalCommunity, member: Amity.Membership<'community'>[]) => void) => Amity.Unsubscriber;
|
|
17
17
|
//# sourceMappingURL=onCommunityUserRemoved.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onCommunityUserRemoved.d.ts","sourceRoot":"","sources":["../../../../src/communityRepository/communityMembership/events/onCommunityUserRemoved.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,sBAAsB,yBACX,MAAM,
|
|
1
|
+
{"version":3,"file":"onCommunityUserRemoved.d.ts","sourceRoot":"","sources":["../../../../src/communityRepository/communityMembership/events/onCommunityUserRemoved.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,sBAAsB,yBACX,MAAM,iBAAiB,UAAU,MAAM,UAAU,CAAC,WAAW,CAAC,EAAE,KAAK,IAAI,uBACrB,CAAC"}
|
|
@@ -13,5 +13,5 @@
|
|
|
13
13
|
*
|
|
14
14
|
* @category Community Events
|
|
15
15
|
*/
|
|
16
|
-
export declare const onCommunityUserRoleAdded: (callback: (community: Amity.
|
|
16
|
+
export declare const onCommunityUserRoleAdded: (callback: (community: Amity.InternalCommunity, member: Amity.Membership<'community'>[]) => void) => Amity.Unsubscriber;
|
|
17
17
|
//# sourceMappingURL=onCommunityUserRoleAdded.d.ts.map
|
package/dist/communityRepository/communityMembership/events/onCommunityUserRoleAdded.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onCommunityUserRoleAdded.d.ts","sourceRoot":"","sources":["../../../../src/communityRepository/communityMembership/events/onCommunityUserRoleAdded.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,wBAAwB,yBACb,MAAM,
|
|
1
|
+
{"version":3,"file":"onCommunityUserRoleAdded.d.ts","sourceRoot":"","sources":["../../../../src/communityRepository/communityMembership/events/onCommunityUserRoleAdded.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,wBAAwB,yBACb,MAAM,iBAAiB,UAAU,MAAM,UAAU,CAAC,WAAW,CAAC,EAAE,KAAK,IAAI,uBACvB,CAAC"}
|
|
@@ -13,5 +13,5 @@
|
|
|
13
13
|
*
|
|
14
14
|
* @category Community Events
|
|
15
15
|
*/
|
|
16
|
-
export declare const onCommunityUserRoleRemoved: (callback: (community: Amity.
|
|
16
|
+
export declare const onCommunityUserRoleRemoved: (callback: (community: Amity.InternalCommunity, member: Amity.Membership<'community'>[]) => void) => Amity.Unsubscriber;
|
|
17
17
|
//# sourceMappingURL=onCommunityUserRoleRemoved.d.ts.map
|
package/dist/communityRepository/communityMembership/events/onCommunityUserRoleRemoved.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onCommunityUserRoleRemoved.d.ts","sourceRoot":"","sources":["../../../../src/communityRepository/communityMembership/events/onCommunityUserRoleRemoved.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,0BAA0B,yBACf,MAAM,
|
|
1
|
+
{"version":3,"file":"onCommunityUserRoleRemoved.d.ts","sourceRoot":"","sources":["../../../../src/communityRepository/communityMembership/events/onCommunityUserRoleRemoved.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,0BAA0B,yBACf,MAAM,iBAAiB,UAAU,MAAM,UAAU,CAAC,WAAW,CAAC,EAAE,KAAK,IAAI,uBACrB,CAAC"}
|
|
@@ -13,5 +13,5 @@
|
|
|
13
13
|
*
|
|
14
14
|
* @category Community Events
|
|
15
15
|
*/
|
|
16
|
-
export declare const onCommunityUserUnbanned: (callback: (community: Amity.
|
|
16
|
+
export declare const onCommunityUserUnbanned: (callback: (community: Amity.InternalCommunity, member: Amity.Membership<'community'>[]) => void) => Amity.Unsubscriber;
|
|
17
17
|
//# sourceMappingURL=onCommunityUserUnbanned.d.ts.map
|
package/dist/communityRepository/communityMembership/events/onCommunityUserUnbanned.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onCommunityUserUnbanned.d.ts","sourceRoot":"","sources":["../../../../src/communityRepository/communityMembership/events/onCommunityUserUnbanned.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,uBAAuB,yBACZ,MAAM,
|
|
1
|
+
{"version":3,"file":"onCommunityUserUnbanned.d.ts","sourceRoot":"","sources":["../../../../src/communityRepository/communityMembership/events/onCommunityUserUnbanned.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,uBAAuB,yBACZ,MAAM,iBAAiB,UAAU,MAAM,UAAU,CAAC,WAAW,CAAC,EAAE,KAAK,IAAI,uBACpB,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const onLocalCommunityJoined: (callback: (community: Amity.
|
|
1
|
+
export declare const onLocalCommunityJoined: (callback: (community: Amity.InternalCommunity, member: Amity.Membership<'community'>[]) => void) => Amity.Unsubscriber;
|
|
2
2
|
//# sourceMappingURL=onLocalCommunityJoined.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onLocalCommunityJoined.d.ts","sourceRoot":"","sources":["../../../../src/communityRepository/communityMembership/events/onLocalCommunityJoined.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,sBAAsB,yBACX,MAAM,
|
|
1
|
+
{"version":3,"file":"onLocalCommunityJoined.d.ts","sourceRoot":"","sources":["../../../../src/communityRepository/communityMembership/events/onLocalCommunityJoined.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,sBAAsB,yBACX,MAAM,iBAAiB,UAAU,MAAM,UAAU,CAAC,WAAW,CAAC,EAAE,KAAK,IAAI,uBACf,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const onLocalCommunityLeft: (callback: (community: Amity.
|
|
1
|
+
export declare const onLocalCommunityLeft: (callback: (community: Amity.InternalCommunity, member: Amity.Membership<'community'>[]) => void) => Amity.Unsubscriber;
|
|
2
2
|
//# sourceMappingURL=onLocalCommunityLeft.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onLocalCommunityLeft.d.ts","sourceRoot":"","sources":["../../../../src/communityRepository/communityMembership/events/onLocalCommunityLeft.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB,yBACT,MAAM,
|
|
1
|
+
{"version":3,"file":"onLocalCommunityLeft.d.ts","sourceRoot":"","sources":["../../../../src/communityRepository/communityMembership/events/onLocalCommunityLeft.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB,yBACT,MAAM,iBAAiB,UAAU,MAAM,UAAU,CAAC,WAAW,CAAC,EAAE,KAAK,IAAI,uBACjB,CAAC"}
|
|
@@ -13,5 +13,5 @@
|
|
|
13
13
|
*
|
|
14
14
|
* @category Community Events
|
|
15
15
|
*/
|
|
16
|
-
export declare const onLocalCommunityUserAdded: (callback: (community: Amity.
|
|
16
|
+
export declare const onLocalCommunityUserAdded: (callback: (community: Amity.InternalCommunity, member: Amity.Membership<'community'>[]) => void) => Amity.Unsubscriber;
|
|
17
17
|
//# sourceMappingURL=onLocalCommunityUserAdded.d.ts.map
|
package/dist/communityRepository/communityMembership/events/onLocalCommunityUserAdded.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onLocalCommunityUserAdded.d.ts","sourceRoot":"","sources":["../../../../src/communityRepository/communityMembership/events/onLocalCommunityUserAdded.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,yBAAyB,yBACd,MAAM,
|
|
1
|
+
{"version":3,"file":"onLocalCommunityUserAdded.d.ts","sourceRoot":"","sources":["../../../../src/communityRepository/communityMembership/events/onLocalCommunityUserAdded.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,yBAAyB,yBACd,MAAM,iBAAiB,UAAU,MAAM,UAAU,CAAC,WAAW,CAAC,EAAE,KAAK,IAAI,uBACZ,CAAC"}
|
package/dist/communityRepository/communityMembership/events/onLocalCommunityUserRemoved.d.ts
CHANGED
|
@@ -13,5 +13,5 @@
|
|
|
13
13
|
*
|
|
14
14
|
* @category Community Events
|
|
15
15
|
*/
|
|
16
|
-
export declare const onLocalCommunityUserRemoved: (callback: (community: Amity.
|
|
16
|
+
export declare const onLocalCommunityUserRemoved: (callback: (community: Amity.InternalCommunity, member: Amity.Membership<'community'>[]) => void) => Amity.Unsubscriber;
|
|
17
17
|
//# sourceMappingURL=onLocalCommunityUserRemoved.d.ts.map
|
package/dist/communityRepository/communityMembership/events/onLocalCommunityUserRemoved.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onLocalCommunityUserRemoved.d.ts","sourceRoot":"","sources":["../../../../src/communityRepository/communityMembership/events/onLocalCommunityUserRemoved.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,2BAA2B,yBAChB,MAAM,
|
|
1
|
+
{"version":3,"file":"onLocalCommunityUserRemoved.d.ts","sourceRoot":"","sources":["../../../../src/communityRepository/communityMembership/events/onLocalCommunityUserRemoved.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,2BAA2B,yBAChB,MAAM,iBAAiB,UAAU,MAAM,UAAU,CAAC,WAAW,CAAC,EAAE,KAAK,IAAI,uBACV,CAAC"}
|
|
@@ -13,5 +13,5 @@
|
|
|
13
13
|
*
|
|
14
14
|
* @category Community Events
|
|
15
15
|
*/
|
|
16
|
-
export declare const onUserDeleted: (communityId: string) => (callback: (community: Amity.
|
|
16
|
+
export declare const onUserDeleted: (communityId: string) => (callback: (community: Amity.InternalCommunity, member: Amity.Membership<'community'>[]) => void) => Amity.Unsubscriber;
|
|
17
17
|
//# sourceMappingURL=onUserDeleted.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onUserDeleted.d.ts","sourceRoot":"","sources":["../../../../src/communityRepository/communityMembership/events/onUserDeleted.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,aAAa,gBACV,MAAM,
|
|
1
|
+
{"version":3,"file":"onUserDeleted.d.ts","sourceRoot":"","sources":["../../../../src/communityRepository/communityMembership/events/onUserDeleted.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,aAAa,gBACV,MAAM,4BAEI,MAAM,iBAAiB,UAAU,MAAM,UAAU,CAAC,WAAW,CAAC,EAAE,KAAK,IAAI,uBAwChG,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const createCommunityMemberEventSubscriber: (event: keyof Amity.MqttCommunityUserEvents, callback: (community: Amity.
|
|
2
|
-
export declare const createLocalCommunityMemberEventSubscriber: (event: keyof Amity.LocalCommunityEvents, callback: (community: Amity.
|
|
1
|
+
export declare const createCommunityMemberEventSubscriber: (event: keyof Amity.MqttCommunityUserEvents, callback: (community: Amity.InternalCommunity, members: Amity.Membership<'community'>[]) => void) => Amity.Unsubscriber;
|
|
2
|
+
export declare const createLocalCommunityMemberEventSubscriber: (event: keyof Amity.LocalCommunityEvents, callback: (community: Amity.InternalCommunity, members: Amity.Membership<'community'>[]) => void) => Amity.Unsubscriber;
|
|
3
3
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/communityRepository/communityMembership/events/utils.ts"],"names":[],"mappings":"AAqDA,eAAO,MAAM,oCAAoC,UACxC,MAAM,MAAM,uBAAuB,wBACpB,MAAM,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/communityRepository/communityMembership/events/utils.ts"],"names":[],"mappings":"AAqDA,eAAO,MAAM,oCAAoC,UACxC,MAAM,MAAM,uBAAuB,wBACpB,MAAM,iBAAiB,WAAW,MAAM,UAAU,CAAC,WAAW,CAAC,EAAE,KAAK,IAAI,uBA6CjG,CAAC;AAEF,eAAO,MAAM,yCAAyC,UAC7C,MAAM,MAAM,oBAAoB,wBACjB,MAAM,iBAAiB,WAAW,MAAM,UAAU,CAAC,WAAW,CAAC,EAAE,KAAK,IAAI,uBA6CjG,CAAC"}
|
|
@@ -6,9 +6,9 @@ export declare class CommunityMembersQueryStreamController extends QueryStreamCo
|
|
|
6
6
|
constructor(query: Amity.CommunityMemberLiveCollection, cacheKey: string[], notifyChange: (params: Amity.LiveCollectionNotifyParams) => void, preparePayload: (response: Amity.CommunityMembershipPayload) => Amity.ProcessedCommunityMembershipPayload);
|
|
7
7
|
saveToMainDB(response: Amity.CommunityMembershipPayload): Promise<void>;
|
|
8
8
|
appendToQueryStream(response: Amity.CommunityMembershipPayload & Partial<Amity.Pagination>, direction: Amity.LiveCollectionPageDirection, refresh?: boolean): void;
|
|
9
|
-
reactor(action: EnumCommunityMemberActions): (community: Amity.
|
|
9
|
+
reactor(action: EnumCommunityMemberActions): (community: Amity.InternalCommunity, communityMembers: Amity.Membership<'community'>[]) => void;
|
|
10
10
|
subscribeRTE(createSubscriber: {
|
|
11
|
-
fn: (reactor: (channel: Amity.
|
|
11
|
+
fn: (reactor: (channel: Amity.InternalCommunity, communityUser: Amity.Membership<'community'>[]) => void) => Amity.Unsubscriber;
|
|
12
12
|
action: EnumCommunityMemberActions;
|
|
13
13
|
}[]): Amity.Unsubscriber[];
|
|
14
14
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommunityMembersQueryStreamController.d.ts","sourceRoot":"","sources":["../../../../../src/communityRepository/communityMembership/observers/getMembers/CommunityMembersQueryStreamController.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,6CAA6C,CAAC;AAKpF,OAAO,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAC;AAErD,qBAAa,qCAAsC,SAAQ,qBAAqB,CAC9E,KAAK,CAAC,0BAA0B,EAChC,KAAK,CAAC,6BAA6B,CACpC;IACC,OAAO,CAAC,YAAY,CAAqD;IAEzE,OAAO,CAAC,cAAc,CAEyB;gBAG7C,KAAK,EAAE,KAAK,CAAC,6BAA6B,EAC1C,QAAQ,EAAE,MAAM,EAAE,EAClB,YAAY,EAAE,CAAC,MAAM,EAAE,KAAK,CAAC,0BAA0B,KAAK,IAAI,EAChE,cAAc,EAAE,CACd,QAAQ,EAAE,KAAK,CAAC,0BAA0B,KACvC,KAAK,CAAC,mCAAmC;IAO1C,YAAY,CAAC,QAAQ,EAAE,KAAK,CAAC,0BAA0B;IAW7D,mBAAmB,CACjB,QAAQ,EAAE,KAAK,CAAC,0BAA0B,GAAG,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,EACtE,SAAS,EAAE,KAAK,CAAC,2BAA2B,EAC5C,OAAO,UAAQ;IA2BjB,OAAO,CAAC,MAAM,EAAE,0BAA0B,
|
|
1
|
+
{"version":3,"file":"CommunityMembersQueryStreamController.d.ts","sourceRoot":"","sources":["../../../../../src/communityRepository/communityMembership/observers/getMembers/CommunityMembersQueryStreamController.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,6CAA6C,CAAC;AAKpF,OAAO,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAC;AAErD,qBAAa,qCAAsC,SAAQ,qBAAqB,CAC9E,KAAK,CAAC,0BAA0B,EAChC,KAAK,CAAC,6BAA6B,CACpC;IACC,OAAO,CAAC,YAAY,CAAqD;IAEzE,OAAO,CAAC,cAAc,CAEyB;gBAG7C,KAAK,EAAE,KAAK,CAAC,6BAA6B,EAC1C,QAAQ,EAAE,MAAM,EAAE,EAClB,YAAY,EAAE,CAAC,MAAM,EAAE,KAAK,CAAC,0BAA0B,KAAK,IAAI,EAChE,cAAc,EAAE,CACd,QAAQ,EAAE,KAAK,CAAC,0BAA0B,KACvC,KAAK,CAAC,mCAAmC;IAO1C,YAAY,CAAC,QAAQ,EAAE,KAAK,CAAC,0BAA0B;IAW7D,mBAAmB,CACjB,QAAQ,EAAE,KAAK,CAAC,0BAA0B,GAAG,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,EACtE,SAAS,EAAE,KAAK,CAAC,2BAA2B,EAC5C,OAAO,UAAQ;IA2BjB,OAAO,CAAC,MAAM,EAAE,0BAA0B,eAE3B,MAAM,iBAAiB,oBAChB,MAAM,UAAU,CAAC,WAAW,CAAC,EAAE;IAyBrD,YAAY,CACV,gBAAgB,EAAE;QAChB,EAAE,EAAE,CACF,OAAO,EAAE,CACP,OAAO,EAAE,KAAK,CAAC,iBAAiB,EAChC,aAAa,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,EAAE,KAC3C,IAAI,KACN,KAAK,CAAC,YAAY,CAAC;QACxB,MAAM,EAAE,0BAA0B,CAAC;KACpC,EAAE;CAIN"}
|
|
@@ -6,9 +6,9 @@ export declare class SearchCommunityMembersQueryStreamController extends QuerySt
|
|
|
6
6
|
constructor(query: Amity.SearchCommunityMemberLiveCollection, cacheKey: string[], notifyChange: (params: Amity.LiveCollectionNotifyParams) => void, preparePayload: (response: Amity.CommunityMembershipPayload) => Amity.ProcessedCommunityMembershipPayload);
|
|
7
7
|
saveToMainDB(response: Amity.CommunityMembershipPayload): Promise<void>;
|
|
8
8
|
appendToQueryStream(response: Amity.CommunityMembershipPayload & Partial<Amity.Pagination>, direction: Amity.LiveCollectionPageDirection, refresh?: boolean): void;
|
|
9
|
-
reactor(action: EnumCommunityMemberActions): (community: Amity.
|
|
9
|
+
reactor(action: EnumCommunityMemberActions): (community: Amity.InternalCommunity, communityMembers: Amity.Membership<'community'>[]) => void;
|
|
10
10
|
subscribeRTE(createSubscriber: {
|
|
11
|
-
fn: (reactor: (channel: Amity.
|
|
11
|
+
fn: (reactor: (channel: Amity.InternalCommunity, communityUser: Amity.Membership<'community'>[]) => void) => Amity.Unsubscriber;
|
|
12
12
|
action: EnumCommunityMemberActions;
|
|
13
13
|
}[]): Amity.Unsubscriber[];
|
|
14
14
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchCommunityMembersQueryStreamController.d.ts","sourceRoot":"","sources":["../../../../../src/communityRepository/communityMembership/observers/searchMembers/SearchCommunityMembersQueryStreamController.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,6CAA6C,CAAC;AAKpF,OAAO,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAC;AAErD,qBAAa,2CAA4C,SAAQ,qBAAqB,CACpF,KAAK,CAAC,0BAA0B,EAChC,KAAK,CAAC,mCAAmC,CAC1C;IACC,OAAO,CAAC,YAAY,CAAqD;IAEzE,OAAO,CAAC,cAAc,CAEyB;gBAG7C,KAAK,EAAE,KAAK,CAAC,mCAAmC,EAChD,QAAQ,EAAE,MAAM,EAAE,EAClB,YAAY,EAAE,CAAC,MAAM,EAAE,KAAK,CAAC,0BAA0B,KAAK,IAAI,EAChE,cAAc,EAAE,CACd,QAAQ,EAAE,KAAK,CAAC,0BAA0B,KACvC,KAAK,CAAC,mCAAmC;IAO1C,YAAY,CAAC,QAAQ,EAAE,KAAK,CAAC,0BAA0B;IAW7D,mBAAmB,CACjB,QAAQ,EAAE,KAAK,CAAC,0BAA0B,GAAG,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,EACtE,SAAS,EAAE,KAAK,CAAC,2BAA2B,EAC5C,OAAO,UAAQ;IA2BjB,OAAO,CAAC,MAAM,EAAE,0BAA0B,
|
|
1
|
+
{"version":3,"file":"SearchCommunityMembersQueryStreamController.d.ts","sourceRoot":"","sources":["../../../../../src/communityRepository/communityMembership/observers/searchMembers/SearchCommunityMembersQueryStreamController.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,6CAA6C,CAAC;AAKpF,OAAO,EAAE,0BAA0B,EAAE,MAAM,SAAS,CAAC;AAErD,qBAAa,2CAA4C,SAAQ,qBAAqB,CACpF,KAAK,CAAC,0BAA0B,EAChC,KAAK,CAAC,mCAAmC,CAC1C;IACC,OAAO,CAAC,YAAY,CAAqD;IAEzE,OAAO,CAAC,cAAc,CAEyB;gBAG7C,KAAK,EAAE,KAAK,CAAC,mCAAmC,EAChD,QAAQ,EAAE,MAAM,EAAE,EAClB,YAAY,EAAE,CAAC,MAAM,EAAE,KAAK,CAAC,0BAA0B,KAAK,IAAI,EAChE,cAAc,EAAE,CACd,QAAQ,EAAE,KAAK,CAAC,0BAA0B,KACvC,KAAK,CAAC,mCAAmC;IAO1C,YAAY,CAAC,QAAQ,EAAE,KAAK,CAAC,0BAA0B;IAW7D,mBAAmB,CACjB,QAAQ,EAAE,KAAK,CAAC,0BAA0B,GAAG,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,EACtE,SAAS,EAAE,KAAK,CAAC,2BAA2B,EAC5C,OAAO,UAAQ;IA2BjB,OAAO,CAAC,MAAM,EAAE,0BAA0B,eAE3B,MAAM,iBAAiB,oBAChB,MAAM,UAAU,CAAC,WAAW,CAAC,EAAE;IAuBrD,YAAY,CACV,gBAAgB,EAAE;QAChB,EAAE,EAAE,CACF,OAAO,EAAE,CACP,OAAO,EAAE,KAAK,CAAC,iBAAiB,EAChC,aAAa,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,EAAE,KAC3C,IAAI,KACN,KAAK,CAAC,YAAY,CAAC;QACxB,MAAM,EAAE,0BAA0B,CAAC;KACpC,EAAE;CAIN"}
|
|
@@ -13,5 +13,5 @@
|
|
|
13
13
|
*
|
|
14
14
|
* @category Community Events
|
|
15
15
|
*/
|
|
16
|
-
export declare const onLocalCommunityRoleAdded: (callback: (community: Amity.
|
|
16
|
+
export declare const onLocalCommunityRoleAdded: (callback: (community: Amity.InternalCommunity, member: Amity.Membership<'community'>[]) => void) => Amity.Unsubscriber;
|
|
17
17
|
//# sourceMappingURL=onLocalCommunityRoleAdded.d.ts.map
|
package/dist/communityRepository/communityModeration/events/onLocalCommunityRoleAdded.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onLocalCommunityRoleAdded.d.ts","sourceRoot":"","sources":["../../../../src/communityRepository/communityModeration/events/onLocalCommunityRoleAdded.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,yBAAyB,yBACd,MAAM,
|
|
1
|
+
{"version":3,"file":"onLocalCommunityRoleAdded.d.ts","sourceRoot":"","sources":["../../../../src/communityRepository/communityModeration/events/onLocalCommunityRoleAdded.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,yBAAyB,yBACd,MAAM,iBAAiB,UAAU,MAAM,UAAU,CAAC,WAAW,CAAC,EAAE,KAAK,IAAI,KAC9F,MAAM,YAiBR,CAAC"}
|
package/dist/communityRepository/communityModeration/events/onLocalCommunityRoleRemoved.d.ts
CHANGED
|
@@ -13,5 +13,5 @@
|
|
|
13
13
|
*
|
|
14
14
|
* @category Community Events
|
|
15
15
|
*/
|
|
16
|
-
export declare const onLocalCommunityRoleRemoved: (callback: (community: Amity.
|
|
16
|
+
export declare const onLocalCommunityRoleRemoved: (callback: (community: Amity.InternalCommunity, member: Amity.Membership<'community'>[]) => void) => Amity.Unsubscriber;
|
|
17
17
|
//# sourceMappingURL=onLocalCommunityRoleRemoved.d.ts.map
|
package/dist/communityRepository/communityModeration/events/onLocalCommunityRoleRemoved.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onLocalCommunityRoleRemoved.d.ts","sourceRoot":"","sources":["../../../../src/communityRepository/communityModeration/events/onLocalCommunityRoleRemoved.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,2BAA2B,yBAChB,MAAM,
|
|
1
|
+
{"version":3,"file":"onLocalCommunityRoleRemoved.d.ts","sourceRoot":"","sources":["../../../../src/communityRepository/communityModeration/events/onLocalCommunityRoleRemoved.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,2BAA2B,yBAChB,MAAM,iBAAiB,UAAU,MAAM,UAAU,CAAC,WAAW,CAAC,EAAE,KAAK,IAAI,KAC9F,MAAM,YAiBR,CAAC"}
|
|
@@ -13,5 +13,5 @@
|
|
|
13
13
|
*
|
|
14
14
|
* @category Community Events
|
|
15
15
|
*/
|
|
16
|
-
export declare const onCommunityCreated: (callback: Amity.Listener<Amity.
|
|
16
|
+
export declare const onCommunityCreated: (callback: Amity.Listener<Amity.InternalCommunity>) => Amity.Unsubscriber;
|
|
17
17
|
//# sourceMappingURL=onCommunityCreated.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onCommunityCreated.d.ts","sourceRoot":"","sources":["../../../src/communityRepository/events/onCommunityCreated.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,kBAAkB,aAAc,MAAM,QAAQ,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"onCommunityCreated.d.ts","sourceRoot":"","sources":["../../../src/communityRepository/events/onCommunityCreated.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,kBAAkB,aAAc,MAAM,QAAQ,CAAC,MAAM,iBAAiB,CAAC,uBACrB,CAAC"}
|
|
@@ -13,5 +13,5 @@
|
|
|
13
13
|
*
|
|
14
14
|
* @category Community Events
|
|
15
15
|
*/
|
|
16
|
-
export declare const onCommunityDeleted: (callback: Amity.Listener<Amity.
|
|
16
|
+
export declare const onCommunityDeleted: (callback: Amity.Listener<Amity.InternalCommunity>) => Amity.Unsubscriber;
|
|
17
17
|
//# sourceMappingURL=onCommunityDeleted.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onCommunityDeleted.d.ts","sourceRoot":"","sources":["../../../src/communityRepository/events/onCommunityDeleted.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,kBAAkB,aAAc,MAAM,QAAQ,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"onCommunityDeleted.d.ts","sourceRoot":"","sources":["../../../src/communityRepository/events/onCommunityDeleted.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,kBAAkB,aAAc,MAAM,QAAQ,CAAC,MAAM,iBAAiB,CAAC,uBACrB,CAAC"}
|
|
@@ -13,5 +13,5 @@
|
|
|
13
13
|
*
|
|
14
14
|
* @category Community Events
|
|
15
15
|
*/
|
|
16
|
-
export declare const onCommunityUpdated: (callback: Amity.Listener<Amity.
|
|
16
|
+
export declare const onCommunityUpdated: (callback: Amity.Listener<Amity.InternalCommunity>) => Amity.Unsubscriber;
|
|
17
17
|
//# sourceMappingURL=onCommunityUpdated.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onCommunityUpdated.d.ts","sourceRoot":"","sources":["../../../src/communityRepository/events/onCommunityUpdated.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,kBAAkB,aAAc,MAAM,QAAQ,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"onCommunityUpdated.d.ts","sourceRoot":"","sources":["../../../src/communityRepository/events/onCommunityUpdated.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,kBAAkB,aAAc,MAAM,QAAQ,CAAC,MAAM,iBAAiB,CAAC,uBACrB,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const createCommunityEventSubscriber: (event: keyof Amity.MqttCommunityEvents, callback: Amity.Listener<Amity.
|
|
1
|
+
export declare const createCommunityEventSubscriber: (event: keyof Amity.MqttCommunityEvents, callback: Amity.Listener<Amity.InternalCommunity>) => Amity.Unsubscriber;
|
|
2
2
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/communityRepository/events/utils.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,8BAA8B,UAClC,MAAM,MAAM,mBAAmB,YAC5B,MAAM,QAAQ,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/communityRepository/events/utils.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,8BAA8B,UAClC,MAAM,MAAM,mBAAmB,YAC5B,MAAM,QAAQ,CAAC,MAAM,iBAAiB,CAAC,uBAwBlD,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ```js
|
|
3
|
+
* import { community } from '@amityco/ts-sdk'
|
|
4
|
+
* const isJoined = await community.getMyJoinRequest('foobar')
|
|
5
|
+
* ```
|
|
6
|
+
*
|
|
7
|
+
* Joins a {@link Amity.Community} object
|
|
8
|
+
*
|
|
9
|
+
* @param communityId the {@link Amity.Community} to join
|
|
10
|
+
* @returns A success boolean if the {@link Amity.Community} was joined
|
|
11
|
+
*
|
|
12
|
+
* @category Community API
|
|
13
|
+
* @async
|
|
14
|
+
*/
|
|
15
|
+
export declare const getMyJoinRequest: (communityId: Amity.Community['communityId']) => Promise<Amity.Cached<Amity.JoinRequest | undefined>>;
|
|
16
|
+
//# sourceMappingURL=getMyJoinRequest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getMyJoinRequest.d.ts","sourceRoot":"","sources":["../../../src/communityRepository/internalAPI/getMyJoinRequest.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,gBAAgB,gBACd,MAAM,SAAS,CAAC,aAAa,CAAC,KAC1C,QAAQ,MAAM,MAAM,CAAC,MAAM,WAAW,GAAG,SAAS,CAAC,CAiBrD,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ```js
|
|
3
|
+
* import { community } from '@amityco/ts-sdk'
|
|
4
|
+
* const isJoined = await community.join('foobar')
|
|
5
|
+
* ```
|
|
6
|
+
*
|
|
7
|
+
* Joins a {@link Amity.Community} object
|
|
8
|
+
*
|
|
9
|
+
* @param communityId the {@link Amity.Community} to join
|
|
10
|
+
* @returns A status join result
|
|
11
|
+
*
|
|
12
|
+
* @category Community API
|
|
13
|
+
* @async
|
|
14
|
+
*/
|
|
15
|
+
export declare const joinRequest: (communityId: Amity.Community['communityId']) => Promise<Amity.JoinResult>;
|
|
16
|
+
//# sourceMappingURL=joinCommunity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"joinCommunity.d.ts","sourceRoot":"","sources":["../../../src/communityRepository/internalAPI/joinCommunity.ts"],"names":[],"mappings":"AAUA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,WAAW,gBACT,MAAM,SAAS,CAAC,aAAa,CAAC,KAC1C,QAAQ,MAAM,UAAU,CAqB1B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/communityRepository/joinRequest/events/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ```js
|
|
3
|
+
* import { onJoinRequestCreated } from '@amityco/ts-sdk'
|
|
4
|
+
* const dispose = onJoinRequestCreated(data => {
|
|
5
|
+
* // ...
|
|
6
|
+
* })
|
|
7
|
+
* ```
|
|
8
|
+
*
|
|
9
|
+
* Fired when an {@link Amity.CommunityJoinRequestPayload} has been created
|
|
10
|
+
*
|
|
11
|
+
* @param callback The function to call when the event was fired
|
|
12
|
+
* @returns an {@link Amity.Unsubscriber} function to stop listening
|
|
13
|
+
*
|
|
14
|
+
* @category JoinRequest Events
|
|
15
|
+
*/
|
|
16
|
+
export declare const onJoinRequestCreated: (callback: Amity.Listener<Amity.InternalJoinRequest[]>) => Amity.Unsubscriber;
|
|
17
|
+
//# sourceMappingURL=onJoinRequestCreated.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onJoinRequestCreated.d.ts","sourceRoot":"","sources":["../../../../src/communityRepository/joinRequest/events/onJoinRequestCreated.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,oBAAoB,aACrB,MAAM,QAAQ,CAAC,MAAM,mBAAmB,EAAE,CAAC,KACpD,MAAM,YAYR,CAAC"}
|