@amityco/ts-sdk 7.5.2-4215b84.0 → 7.5.2

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.
Files changed (345) hide show
  1. package/.env +26 -26
  2. package/dist/@types/core/events.d.ts +0 -7
  3. package/dist/@types/core/events.d.ts.map +1 -1
  4. package/dist/@types/core/model.d.ts +1 -5
  5. package/dist/@types/core/model.d.ts.map +1 -1
  6. package/dist/@types/core/payload.d.ts +5 -38
  7. package/dist/@types/core/payload.d.ts.map +1 -1
  8. package/dist/@types/domains/client.d.ts +0 -10
  9. package/dist/@types/domains/client.d.ts.map +1 -1
  10. package/dist/@types/domains/community.d.ts +1 -51
  11. package/dist/@types/domains/community.d.ts.map +1 -1
  12. package/dist/@types/domains/notification.d.ts +2 -4
  13. package/dist/@types/domains/notification.d.ts.map +1 -1
  14. package/dist/@types/index.d.ts +0 -3
  15. package/dist/@types/index.d.ts.map +1 -1
  16. package/dist/communityRepository/api/createCommunity.d.ts +2 -2
  17. package/dist/communityRepository/api/createCommunity.d.ts.map +1 -1
  18. package/dist/communityRepository/api/getCommunities.d.ts +1 -1
  19. package/dist/communityRepository/api/getCommunities.d.ts.map +1 -1
  20. package/dist/communityRepository/api/getCommunity.d.ts +1 -1
  21. package/dist/communityRepository/api/getCommunity.d.ts.map +1 -1
  22. package/dist/communityRepository/api/getRecommendedCommunities.d.ts +1 -3
  23. package/dist/communityRepository/api/getRecommendedCommunities.d.ts.map +1 -1
  24. package/dist/communityRepository/api/getTrendingCommunities.d.ts +1 -3
  25. package/dist/communityRepository/api/getTrendingCommunities.d.ts.map +1 -1
  26. package/dist/communityRepository/api/joinCommunity.d.ts +0 -3
  27. package/dist/communityRepository/api/joinCommunity.d.ts.map +1 -1
  28. package/dist/communityRepository/api/queryCommunities.d.ts.map +1 -1
  29. package/dist/communityRepository/api/updateCommunity.d.ts +2 -2
  30. package/dist/communityRepository/api/updateCommunity.d.ts.map +1 -1
  31. package/dist/communityRepository/communityMembership/events/index.d.ts +0 -1
  32. package/dist/communityRepository/communityMembership/events/index.d.ts.map +1 -1
  33. package/dist/communityRepository/communityMembership/events/onCommunityJoined.d.ts +1 -1
  34. package/dist/communityRepository/communityMembership/events/onCommunityJoined.d.ts.map +1 -1
  35. package/dist/communityRepository/communityMembership/events/onCommunityLeft.d.ts +1 -1
  36. package/dist/communityRepository/communityMembership/events/onCommunityLeft.d.ts.map +1 -1
  37. package/dist/communityRepository/communityMembership/events/onCommunityUserAdded.d.ts +1 -1
  38. package/dist/communityRepository/communityMembership/events/onCommunityUserAdded.d.ts.map +1 -1
  39. package/dist/communityRepository/communityMembership/events/onCommunityUserBanned.d.ts +1 -1
  40. package/dist/communityRepository/communityMembership/events/onCommunityUserBanned.d.ts.map +1 -1
  41. package/dist/communityRepository/communityMembership/events/onCommunityUserChanged.d.ts +1 -1
  42. package/dist/communityRepository/communityMembership/events/onCommunityUserChanged.d.ts.map +1 -1
  43. package/dist/communityRepository/communityMembership/events/onCommunityUserRemoved.d.ts +1 -1
  44. package/dist/communityRepository/communityMembership/events/onCommunityUserRemoved.d.ts.map +1 -1
  45. package/dist/communityRepository/communityMembership/events/onCommunityUserRoleAdded.d.ts +1 -1
  46. package/dist/communityRepository/communityMembership/events/onCommunityUserRoleAdded.d.ts.map +1 -1
  47. package/dist/communityRepository/communityMembership/events/onCommunityUserRoleRemoved.d.ts +1 -1
  48. package/dist/communityRepository/communityMembership/events/onCommunityUserRoleRemoved.d.ts.map +1 -1
  49. package/dist/communityRepository/communityMembership/events/onCommunityUserUnbanned.d.ts +1 -1
  50. package/dist/communityRepository/communityMembership/events/onCommunityUserUnbanned.d.ts.map +1 -1
  51. package/dist/communityRepository/communityMembership/events/onLocalCommunityJoined.d.ts +1 -1
  52. package/dist/communityRepository/communityMembership/events/onLocalCommunityJoined.d.ts.map +1 -1
  53. package/dist/communityRepository/communityMembership/events/onLocalCommunityLeft.d.ts +1 -1
  54. package/dist/communityRepository/communityMembership/events/onLocalCommunityLeft.d.ts.map +1 -1
  55. package/dist/communityRepository/communityMembership/events/onLocalCommunityUserAdded.d.ts +1 -1
  56. package/dist/communityRepository/communityMembership/events/onLocalCommunityUserAdded.d.ts.map +1 -1
  57. package/dist/communityRepository/communityMembership/events/onLocalCommunityUserRemoved.d.ts +1 -1
  58. package/dist/communityRepository/communityMembership/events/onLocalCommunityUserRemoved.d.ts.map +1 -1
  59. package/dist/communityRepository/communityMembership/events/onUserDeleted.d.ts +1 -1
  60. package/dist/communityRepository/communityMembership/events/onUserDeleted.d.ts.map +1 -1
  61. package/dist/communityRepository/communityMembership/events/utils.d.ts +2 -2
  62. package/dist/communityRepository/communityMembership/events/utils.d.ts.map +1 -1
  63. package/dist/communityRepository/communityMembership/observers/getMembers/CommunityMembersQueryStreamController.d.ts +2 -2
  64. package/dist/communityRepository/communityMembership/observers/getMembers/CommunityMembersQueryStreamController.d.ts.map +1 -1
  65. package/dist/communityRepository/communityMembership/observers/getMembers/enums.d.ts +1 -2
  66. package/dist/communityRepository/communityMembership/observers/getMembers/enums.d.ts.map +1 -1
  67. package/dist/communityRepository/communityMembership/observers/searchMembers/SearchCommunityMembersQueryStreamController.d.ts +2 -2
  68. package/dist/communityRepository/communityMembership/observers/searchMembers/SearchCommunityMembersQueryStreamController.d.ts.map +1 -1
  69. package/dist/communityRepository/communityMembership/observers/searchMembers/enums.d.ts +0 -1
  70. package/dist/communityRepository/communityMembership/observers/searchMembers/enums.d.ts.map +1 -1
  71. package/dist/communityRepository/communityModeration/events/onLocalCommunityRoleAdded.d.ts +1 -1
  72. package/dist/communityRepository/communityModeration/events/onLocalCommunityRoleAdded.d.ts.map +1 -1
  73. package/dist/communityRepository/communityModeration/events/onLocalCommunityRoleRemoved.d.ts +1 -1
  74. package/dist/communityRepository/communityModeration/events/onLocalCommunityRoleRemoved.d.ts.map +1 -1
  75. package/dist/communityRepository/events/onCommunityCreated.d.ts +1 -1
  76. package/dist/communityRepository/events/onCommunityCreated.d.ts.map +1 -1
  77. package/dist/communityRepository/events/onCommunityDeleted.d.ts +1 -1
  78. package/dist/communityRepository/events/onCommunityDeleted.d.ts.map +1 -1
  79. package/dist/communityRepository/events/onCommunityUpdated.d.ts +1 -1
  80. package/dist/communityRepository/events/onCommunityUpdated.d.ts.map +1 -1
  81. package/dist/communityRepository/events/utils.d.ts +1 -1
  82. package/dist/communityRepository/events/utils.d.ts.map +1 -1
  83. package/dist/communityRepository/observers/getCommunities/CommunitiesLiveCollectionController.d.ts.map +1 -1
  84. package/dist/communityRepository/observers/getCommunities/CommunitiesPaginationController.d.ts.map +1 -1
  85. package/dist/communityRepository/observers/getCommunities/CommunitiesQueryStreamController.d.ts +2 -2
  86. package/dist/communityRepository/observers/getCommunities/CommunitiesQueryStreamController.d.ts.map +1 -1
  87. package/dist/communityRepository/observers/getCommunity.d.ts.map +1 -1
  88. package/dist/communityRepository/observers/getRecommendedCommunities/RecommendedCommunitiesLiveCollectionController.d.ts.map +1 -1
  89. package/dist/communityRepository/observers/getRecommendedCommunities/RecommendedCommunitiesPaginationController.d.ts.map +1 -1
  90. package/dist/communityRepository/observers/getRecommendedCommunities/RecommendedCommunitiesQueryStreamController.d.ts +2 -2
  91. package/dist/communityRepository/observers/getRecommendedCommunities/RecommendedCommunitiesQueryStreamController.d.ts.map +1 -1
  92. package/dist/communityRepository/observers/getRecommendedCommunities/enums.d.ts +1 -2
  93. package/dist/communityRepository/observers/getRecommendedCommunities/enums.d.ts.map +1 -1
  94. package/dist/communityRepository/observers/getTrendingCommunities/TrendingCommunitiesLiveCollectionController.d.ts.map +1 -1
  95. package/dist/communityRepository/observers/getTrendingCommunities/TrendingCommunitiesPaginationController.d.ts.map +1 -1
  96. package/dist/communityRepository/observers/getTrendingCommunities/TrendingCommunitiesQueryStreamController.d.ts +2 -2
  97. package/dist/communityRepository/observers/getTrendingCommunities/TrendingCommunitiesQueryStreamController.d.ts.map +1 -1
  98. package/dist/communityRepository/observers/index.d.ts +0 -1
  99. package/dist/communityRepository/observers/index.d.ts.map +1 -1
  100. package/dist/communityRepository/observers/searchCommunities/SearchCommunitiesLiveCollectionController.d.ts.map +1 -1
  101. package/dist/communityRepository/observers/searchCommunities/SearchCommunitiesPaginationController.d.ts.map +1 -1
  102. package/dist/communityRepository/observers/searchCommunities/SearchCommunitiesQueryStreamController.d.ts +2 -2
  103. package/dist/communityRepository/observers/searchCommunities/SearchCommunitiesQueryStreamController.d.ts.map +1 -1
  104. package/dist/communityRepository/observers/semanticSearch/SemanticSearchCommunityLiveCollectionController.d.ts.map +1 -1
  105. package/dist/communityRepository/observers/semanticSearch/SemanticSearchCommunityPaginationController.d.ts.map +1 -1
  106. package/dist/communityRepository/observers/semanticSearch/SemanticSearchCommunityQueryStreamController.d.ts +2 -2
  107. package/dist/communityRepository/observers/semanticSearch/SemanticSearchCommunityQueryStreamController.d.ts.map +1 -1
  108. package/dist/communityRepository/utils/communityWithMembership.d.ts +1 -1
  109. package/dist/communityRepository/utils/communityWithMembership.d.ts.map +1 -1
  110. package/dist/communityRepository/utils/payload.d.ts +1 -2
  111. package/dist/communityRepository/utils/payload.d.ts.map +1 -1
  112. package/dist/core/events.d.ts +3 -3
  113. package/dist/core/events.d.ts.map +1 -1
  114. package/dist/core/model/idResolvers.d.ts.map +1 -1
  115. package/dist/core/model/index.d.ts.map +1 -1
  116. package/dist/index.cjs.js +1399 -2860
  117. package/dist/index.d.ts +0 -1
  118. package/dist/index.d.ts.map +1 -1
  119. package/dist/index.esm.js +1665 -3125
  120. package/dist/index.umd.js +4 -4
  121. package/dist/postRepository/observers/getGlobalPinnedPosts/GlobalPinnedPostQueryStreamController.d.ts.map +1 -1
  122. package/dist/postRepository/observers/getPinnedPosts/PinnedPostQueryStreamController.d.ts.map +1 -1
  123. package/dist/subChannelRepository/utils/prepareSubChannelPayload.d.ts.map +1 -1
  124. package/dist/utils/linkedObject/index.d.ts +0 -3
  125. package/dist/utils/linkedObject/index.d.ts.map +1 -1
  126. package/dist/utils/tests/dummy/post.d.ts +3 -3
  127. package/package.json +1 -1
  128. package/src/@types/core/events.ts +0 -10
  129. package/src/@types/core/model.ts +1 -8
  130. package/src/@types/core/payload.ts +5 -48
  131. package/src/@types/domains/client.ts +0 -12
  132. package/src/@types/domains/community.ts +3 -82
  133. package/src/@types/domains/notification.ts +0 -2
  134. package/src/@types/index.ts +0 -3
  135. package/src/communityRepository/api/createCommunity.ts +2 -5
  136. package/src/communityRepository/api/getCommunities.ts +2 -9
  137. package/src/communityRepository/api/getCommunity.ts +2 -13
  138. package/src/communityRepository/api/getRecommendedCommunities.ts +4 -11
  139. package/src/communityRepository/api/getTrendingCommunities.ts +4 -11
  140. package/src/communityRepository/api/joinCommunity.ts +1 -4
  141. package/src/communityRepository/api/queryCommunities.ts +1 -7
  142. package/src/communityRepository/api/updateCommunity.ts +3 -13
  143. package/src/communityRepository/communityMembership/events/index.ts +0 -1
  144. package/src/communityRepository/communityMembership/events/onCommunityJoined.ts +1 -1
  145. package/src/communityRepository/communityMembership/events/onCommunityLeft.ts +1 -1
  146. package/src/communityRepository/communityMembership/events/onCommunityUserAdded.ts +1 -1
  147. package/src/communityRepository/communityMembership/events/onCommunityUserBanned.ts +1 -1
  148. package/src/communityRepository/communityMembership/events/onCommunityUserChanged.ts +1 -1
  149. package/src/communityRepository/communityMembership/events/onCommunityUserRemoved.ts +1 -1
  150. package/src/communityRepository/communityMembership/events/onCommunityUserRoleAdded.ts +1 -1
  151. package/src/communityRepository/communityMembership/events/onCommunityUserRoleRemoved.ts +1 -1
  152. package/src/communityRepository/communityMembership/events/onCommunityUserUnbanned.ts +1 -1
  153. package/src/communityRepository/communityMembership/events/onLocalCommunityJoined.ts +1 -1
  154. package/src/communityRepository/communityMembership/events/onLocalCommunityLeft.ts +1 -1
  155. package/src/communityRepository/communityMembership/events/onLocalCommunityUserAdded.ts +1 -1
  156. package/src/communityRepository/communityMembership/events/onLocalCommunityUserRemoved.ts +1 -1
  157. package/src/communityRepository/communityMembership/events/onUserDeleted.ts +1 -3
  158. package/src/communityRepository/communityMembership/events/utils.ts +2 -2
  159. package/src/communityRepository/communityMembership/observers/getMembers/CommunityMembersQueryStreamController.ts +2 -8
  160. package/src/communityRepository/communityMembership/observers/getMembers/enums.ts +0 -1
  161. package/src/communityRepository/communityMembership/observers/searchMembers/SearchCommunityMembersQueryStreamController.ts +2 -8
  162. package/src/communityRepository/communityMembership/observers/searchMembers/enums.ts +0 -1
  163. package/src/communityRepository/communityModeration/events/onLocalCommunityRoleAdded.ts +1 -1
  164. package/src/communityRepository/communityModeration/events/onLocalCommunityRoleRemoved.ts +1 -1
  165. package/src/communityRepository/events/onCommunityCreated.ts +1 -1
  166. package/src/communityRepository/events/onCommunityDeleted.ts +1 -1
  167. package/src/communityRepository/events/onCommunityUpdated.ts +1 -1
  168. package/src/communityRepository/events/utils.ts +1 -1
  169. package/src/communityRepository/observers/getCommunities/CommunitiesLiveCollectionController.ts +0 -6
  170. package/src/communityRepository/observers/getCommunities/CommunitiesPaginationController.ts +0 -1
  171. package/src/communityRepository/observers/getCommunities/CommunitiesQueryStreamController.ts +2 -2
  172. package/src/communityRepository/observers/getCommunity.ts +0 -3
  173. package/src/communityRepository/observers/getRecommendedCommunities/RecommendedCommunitiesLiveCollectionController.ts +1 -8
  174. package/src/communityRepository/observers/getRecommendedCommunities/RecommendedCommunitiesPaginationController.ts +1 -6
  175. package/src/communityRepository/observers/getRecommendedCommunities/RecommendedCommunitiesQueryStreamController.ts +2 -2
  176. package/src/communityRepository/observers/getRecommendedCommunities/enums.ts +0 -1
  177. package/src/communityRepository/observers/getTrendingCommunities/TrendingCommunitiesLiveCollectionController.ts +1 -9
  178. package/src/communityRepository/observers/getTrendingCommunities/TrendingCommunitiesPaginationController.ts +1 -6
  179. package/src/communityRepository/observers/getTrendingCommunities/TrendingCommunitiesQueryStreamController.ts +2 -2
  180. package/src/communityRepository/observers/index.ts +0 -1
  181. package/src/communityRepository/observers/searchCommunities/SearchCommunitiesLiveCollectionController.ts +0 -6
  182. package/src/communityRepository/observers/searchCommunities/SearchCommunitiesPaginationController.ts +0 -1
  183. package/src/communityRepository/observers/searchCommunities/SearchCommunitiesQueryStreamController.ts +2 -2
  184. package/src/communityRepository/observers/semanticSearch/SemanticSearchCommunityLiveCollectionController.ts +0 -6
  185. package/src/communityRepository/observers/semanticSearch/SemanticSearchCommunityPaginationController.ts +0 -1
  186. package/src/communityRepository/observers/semanticSearch/SemanticSearchCommunityQueryStreamController.ts +2 -2
  187. package/src/communityRepository/utils/communityWithMembership.ts +5 -9
  188. package/src/communityRepository/utils/payload.ts +2 -28
  189. package/src/core/liveCollection/PaginationController.ts +1 -1
  190. package/src/core/liveCollection/PaginationNoPageController.ts +1 -1
  191. package/src/core/model/idResolvers.ts +0 -3
  192. package/src/core/model/index.ts +0 -3
  193. package/src/index.ts +0 -2
  194. package/src/messagePreview/utils/getChannelMessagePreviewWithUser.ts +3 -3
  195. package/src/postRepository/observers/getGlobalPinnedPosts/GlobalPinnedPostQueryStreamController.ts +1 -7
  196. package/src/postRepository/observers/getPinnedPosts/PinnedPostQueryStreamController.ts +1 -7
  197. package/src/subChannelRepository/utils/prepareSubChannelPayload.ts +0 -4
  198. package/src/utils/linkedObject/index.ts +0 -6
  199. package/dist/@types/domains/invitation.d.ts +0 -92
  200. package/dist/@types/domains/invitation.d.ts.map +0 -1
  201. package/dist/@types/domains/joinRequest.d.ts +0 -53
  202. package/dist/@types/domains/joinRequest.d.ts.map +0 -1
  203. package/dist/communityRepository/communityMembership/events/onLocalCommunityJoin.d.ts +0 -2
  204. package/dist/communityRepository/communityMembership/events/onLocalCommunityJoin.d.ts.map +0 -1
  205. package/dist/communityRepository/internalAPI/getMyJoinRequest.d.ts +0 -16
  206. package/dist/communityRepository/internalAPI/getMyJoinRequest.d.ts.map +0 -1
  207. package/dist/communityRepository/internalAPI/joinCommunity.d.ts +0 -16
  208. package/dist/communityRepository/internalAPI/joinCommunity.d.ts.map +0 -1
  209. package/dist/communityRepository/joinRequest/events/index.d.ts +0 -4
  210. package/dist/communityRepository/joinRequest/events/index.d.ts.map +0 -1
  211. package/dist/communityRepository/joinRequest/events/onJoinRequestCreated.d.ts +0 -17
  212. package/dist/communityRepository/joinRequest/events/onJoinRequestCreated.d.ts.map +0 -1
  213. package/dist/communityRepository/joinRequest/events/onJoinRequestDeleted.d.ts +0 -17
  214. package/dist/communityRepository/joinRequest/events/onJoinRequestDeleted.d.ts.map +0 -1
  215. package/dist/communityRepository/joinRequest/events/onJoinRequestUpdated.d.ts +0 -17
  216. package/dist/communityRepository/joinRequest/events/onJoinRequestUpdated.d.ts.map +0 -1
  217. package/dist/communityRepository/joinRequest/internalAPI/approveJoinRequest.d.ts +0 -16
  218. package/dist/communityRepository/joinRequest/internalAPI/approveJoinRequest.d.ts.map +0 -1
  219. package/dist/communityRepository/joinRequest/internalAPI/cancelJoinRequest.d.ts +0 -16
  220. package/dist/communityRepository/joinRequest/internalAPI/cancelJoinRequest.d.ts.map +0 -1
  221. package/dist/communityRepository/joinRequest/internalAPI/rejectJoinRequest.d.ts +0 -16
  222. package/dist/communityRepository/joinRequest/internalAPI/rejectJoinRequest.d.ts.map +0 -1
  223. package/dist/communityRepository/observers/getJoinRequestList/JoinRequestListLiveCollectionController.d.ts +0 -14
  224. package/dist/communityRepository/observers/getJoinRequestList/JoinRequestListLiveCollectionController.d.ts.map +0 -1
  225. package/dist/communityRepository/observers/getJoinRequestList/JoinRequestListPaginationController.d.ts +0 -9
  226. package/dist/communityRepository/observers/getJoinRequestList/JoinRequestListPaginationController.d.ts.map +0 -1
  227. package/dist/communityRepository/observers/getJoinRequestList/JoinRequestListQueryStreamController.d.ts +0 -15
  228. package/dist/communityRepository/observers/getJoinRequestList/JoinRequestListQueryStreamController.d.ts.map +0 -1
  229. package/dist/communityRepository/observers/getJoinRequestList/enum.d.ts +0 -6
  230. package/dist/communityRepository/observers/getJoinRequestList/enum.d.ts.map +0 -1
  231. package/dist/communityRepository/observers/getJoinRequestList.d.ts +0 -12
  232. package/dist/communityRepository/observers/getJoinRequestList.d.ts.map +0 -1
  233. package/dist/communityRepository/observers/getJoinRequests/JoinRequestsLiveCollectionController.d.ts +0 -14
  234. package/dist/communityRepository/observers/getJoinRequests/JoinRequestsLiveCollectionController.d.ts.map +0 -1
  235. package/dist/communityRepository/observers/getJoinRequests/JoinRequestsPaginationController.d.ts +0 -9
  236. package/dist/communityRepository/observers/getJoinRequests/JoinRequestsPaginationController.d.ts.map +0 -1
  237. package/dist/communityRepository/observers/getJoinRequests/JoinRequestsQueryStreamController.d.ts +0 -15
  238. package/dist/communityRepository/observers/getJoinRequests/JoinRequestsQueryStreamController.d.ts.map +0 -1
  239. package/dist/communityRepository/observers/getJoinRequests/enum.d.ts +0 -6
  240. package/dist/communityRepository/observers/getJoinRequests/enum.d.ts.map +0 -1
  241. package/dist/communityRepository/observers/getJoinRequests.d.ts +0 -12
  242. package/dist/communityRepository/observers/getJoinRequests.d.ts.map +0 -1
  243. package/dist/invitationRepository/events/index.d.ts +0 -4
  244. package/dist/invitationRepository/events/index.d.ts.map +0 -1
  245. package/dist/invitationRepository/events/onLocalInvitationCreated.d.ts +0 -17
  246. package/dist/invitationRepository/events/onLocalInvitationCreated.d.ts.map +0 -1
  247. package/dist/invitationRepository/events/onLocalInvitationDeleted.d.ts +0 -17
  248. package/dist/invitationRepository/events/onLocalInvitationDeleted.d.ts.map +0 -1
  249. package/dist/invitationRepository/events/onLocalInvitationUpdated.d.ts +0 -17
  250. package/dist/invitationRepository/events/onLocalInvitationUpdated.d.ts.map +0 -1
  251. package/dist/invitationRepository/index.d.ts +0 -3
  252. package/dist/invitationRepository/index.d.ts.map +0 -1
  253. package/dist/invitationRepository/internalApi/acceptInvitation.d.ts +0 -16
  254. package/dist/invitationRepository/internalApi/acceptInvitation.d.ts.map +0 -1
  255. package/dist/invitationRepository/internalApi/createInvitations.d.ts +0 -21
  256. package/dist/invitationRepository/internalApi/createInvitations.d.ts.map +0 -1
  257. package/dist/invitationRepository/internalApi/getInvitation.d.ts +0 -17
  258. package/dist/invitationRepository/internalApi/getInvitation.d.ts.map +0 -1
  259. package/dist/invitationRepository/internalApi/index.d.ts +0 -4
  260. package/dist/invitationRepository/internalApi/index.d.ts.map +0 -1
  261. package/dist/invitationRepository/internalApi/rejectInvitation.d.ts +0 -16
  262. package/dist/invitationRepository/internalApi/rejectInvitation.d.ts.map +0 -1
  263. package/dist/invitationRepository/observers/getInvitations/InvitationsLiveCollectionController.d.ts +0 -14
  264. package/dist/invitationRepository/observers/getInvitations/InvitationsLiveCollectionController.d.ts.map +0 -1
  265. package/dist/invitationRepository/observers/getInvitations/InvitationsPaginationController.d.ts +0 -5
  266. package/dist/invitationRepository/observers/getInvitations/InvitationsPaginationController.d.ts.map +0 -1
  267. package/dist/invitationRepository/observers/getInvitations/InvitationsQueryStreamController.d.ts +0 -15
  268. package/dist/invitationRepository/observers/getInvitations/InvitationsQueryStreamController.d.ts.map +0 -1
  269. package/dist/invitationRepository/observers/getInvitations/enums.d.ts +0 -6
  270. package/dist/invitationRepository/observers/getInvitations/enums.d.ts.map +0 -1
  271. package/dist/invitationRepository/observers/getInvitations.d.ts +0 -12
  272. package/dist/invitationRepository/observers/getInvitations.d.ts.map +0 -1
  273. package/dist/invitationRepository/observers/getMyCommunityInvitations.d.ts +0 -12
  274. package/dist/invitationRepository/observers/getMyCommunityInvitations.d.ts.map +0 -1
  275. package/dist/invitationRepository/observers/getMyInvitations/MyInvitationsLiveCollectionController.d.ts +0 -14
  276. package/dist/invitationRepository/observers/getMyInvitations/MyInvitationsLiveCollectionController.d.ts.map +0 -1
  277. package/dist/invitationRepository/observers/getMyInvitations/MyInvitationsPaginationController.d.ts +0 -5
  278. package/dist/invitationRepository/observers/getMyInvitations/MyInvitationsPaginationController.d.ts.map +0 -1
  279. package/dist/invitationRepository/observers/getMyInvitations/MyInvitationsQueryStreamController.d.ts +0 -15
  280. package/dist/invitationRepository/observers/getMyInvitations/MyInvitationsQueryStreamController.d.ts.map +0 -1
  281. package/dist/invitationRepository/observers/index.d.ts +0 -2
  282. package/dist/invitationRepository/observers/index.d.ts.map +0 -1
  283. package/dist/invitationRepository/utils/convertRawInvitationToInternalInvitation.d.ts +0 -2
  284. package/dist/invitationRepository/utils/convertRawInvitationToInternalInvitation.d.ts.map +0 -1
  285. package/dist/invitationRepository/utils/index.d.ts +0 -2
  286. package/dist/invitationRepository/utils/index.d.ts.map +0 -1
  287. package/dist/invitationRepository/utils/prepareInvitationPayload.d.ts +0 -2
  288. package/dist/invitationRepository/utils/prepareInvitationPayload.d.ts.map +0 -1
  289. package/dist/invitationRepository/utils/prepareMyInvitationsPayload.d.ts +0 -2
  290. package/dist/invitationRepository/utils/prepareMyInvitationsPayload.d.ts.map +0 -1
  291. package/dist/utils/linkedObject/communityLinkedObject.d.ts +0 -2
  292. package/dist/utils/linkedObject/communityLinkedObject.d.ts.map +0 -1
  293. package/dist/utils/linkedObject/invitationLinkedObject.d.ts +0 -2
  294. package/dist/utils/linkedObject/invitationLinkedObject.d.ts.map +0 -1
  295. package/dist/utils/linkedObject/joinRequestLinkedObject.d.ts +0 -2
  296. package/dist/utils/linkedObject/joinRequestLinkedObject.d.ts.map +0 -1
  297. package/src/@types/domains/invitation.ts +0 -119
  298. package/src/@types/domains/joinRequest.ts +0 -66
  299. package/src/communityRepository/communityMembership/events/onLocalCommunityJoin.ts +0 -20
  300. package/src/communityRepository/internalAPI/getMyJoinRequest.ts +0 -43
  301. package/src/communityRepository/internalAPI/joinCommunity.ts +0 -66
  302. package/src/communityRepository/joinRequest/events/index.ts +0 -3
  303. package/src/communityRepository/joinRequest/events/onJoinRequestCreated.ts +0 -33
  304. package/src/communityRepository/joinRequest/events/onJoinRequestDeleted.ts +0 -33
  305. package/src/communityRepository/joinRequest/events/onJoinRequestUpdated.ts +0 -33
  306. package/src/communityRepository/joinRequest/internalAPI/approveJoinRequest.ts +0 -52
  307. package/src/communityRepository/joinRequest/internalAPI/cancelJoinRequest.ts +0 -49
  308. package/src/communityRepository/joinRequest/internalAPI/rejectJoinRequest.ts +0 -52
  309. package/src/communityRepository/observers/getJoinRequestList/JoinRequestListLiveCollectionController.ts +0 -135
  310. package/src/communityRepository/observers/getJoinRequestList/JoinRequestListPaginationController.ts +0 -30
  311. package/src/communityRepository/observers/getJoinRequestList/JoinRequestListQueryStreamController.ts +0 -116
  312. package/src/communityRepository/observers/getJoinRequestList/enum.ts +0 -5
  313. package/src/communityRepository/observers/getJoinRequestList.ts +0 -51
  314. package/src/communityRepository/observers/getJoinRequests/JoinRequestsLiveCollectionController.ts +0 -126
  315. package/src/communityRepository/observers/getJoinRequests/JoinRequestsPaginationController.ts +0 -26
  316. package/src/communityRepository/observers/getJoinRequests/JoinRequestsQueryStreamController.ts +0 -108
  317. package/src/communityRepository/observers/getJoinRequests/enum.ts +0 -5
  318. package/src/communityRepository/observers/getJoinRequests.ts +0 -44
  319. package/src/invitationRepository/events/index.ts +0 -3
  320. package/src/invitationRepository/events/onLocalInvitationCreated.ts +0 -33
  321. package/src/invitationRepository/events/onLocalInvitationDeleted.ts +0 -33
  322. package/src/invitationRepository/events/onLocalInvitationUpdated.ts +0 -33
  323. package/src/invitationRepository/index.ts +0 -2
  324. package/src/invitationRepository/internalApi/acceptInvitation.ts +0 -45
  325. package/src/invitationRepository/internalApi/createInvitations.ts +0 -52
  326. package/src/invitationRepository/internalApi/getInvitation.ts +0 -47
  327. package/src/invitationRepository/internalApi/index.ts +0 -3
  328. package/src/invitationRepository/internalApi/rejectInvitation.ts +0 -45
  329. package/src/invitationRepository/observers/getInvitations/InvitationsLiveCollectionController.ts +0 -148
  330. package/src/invitationRepository/observers/getInvitations/InvitationsPaginationController.ts +0 -19
  331. package/src/invitationRepository/observers/getInvitations/InvitationsQueryStreamController.ts +0 -97
  332. package/src/invitationRepository/observers/getInvitations/enums.ts +0 -5
  333. package/src/invitationRepository/observers/getInvitations.ts +0 -44
  334. package/src/invitationRepository/observers/getMyCommunityInvitations.ts +0 -48
  335. package/src/invitationRepository/observers/getMyInvitations/MyInvitationsLiveCollectionController.ts +0 -148
  336. package/src/invitationRepository/observers/getMyInvitations/MyInvitationsPaginationController.ts +0 -22
  337. package/src/invitationRepository/observers/getMyInvitations/MyInvitationsQueryStreamController.ts +0 -105
  338. package/src/invitationRepository/observers/index.ts +0 -1
  339. package/src/invitationRepository/utils/convertRawInvitationToInternalInvitation.ts +0 -8
  340. package/src/invitationRepository/utils/index.ts +0 -1
  341. package/src/invitationRepository/utils/prepareInvitationPayload.ts +0 -12
  342. package/src/invitationRepository/utils/prepareMyInvitationsPayload.ts +0 -12
  343. package/src/utils/linkedObject/communityLinkedObject.ts +0 -57
  344. package/src/utils/linkedObject/invitationLinkedObject.ts +0 -37
  345. package/src/utils/linkedObject/joinRequestLinkedObject.ts +0 -31
@@ -5,7 +5,6 @@ import { fireEvent } from '~/core/events';
5
5
 
6
6
  import { saveCommunityUsers } from '~/communityRepository/utils/saveCommunityUsers';
7
7
  import { prepareCommunityPayload, prepareCommunityRequest } from '../utils';
8
- import { LinkedObject } from '~/utils/linkedObject';
9
8
 
10
9
  /* begin_public_function
11
10
  id: community.update
@@ -13,7 +12,7 @@ import { LinkedObject } from '~/utils/linkedObject';
13
12
  /**
14
13
  * ```js
15
14
  * import { updateCommunity } from '@amityco/ts-sdk'
16
- * const updated = await updateCommunity(communityId, { displayName: 'foobar', isDiscoverable: true, requiresJoinApproval: false })
15
+ * const updated = await updateCommunity(communityId, { displayName: 'foobar' })
17
16
  * ```
18
17
  *
19
18
  * Updates an {@link Amity.Community}
@@ -29,14 +28,7 @@ export const updateCommunity = async (
29
28
  communityId: Amity.Community['communityId'],
30
29
  patch: Patch<
31
30
  Amity.Community,
32
- | 'displayName'
33
- | 'avatarFileId'
34
- | 'description'
35
- | 'postSetting'
36
- | 'tags'
37
- | 'metadata'
38
- | 'isDiscoverable'
39
- | 'requiresJoinApproval'
31
+ 'displayName' | 'avatarFileId' | 'description' | 'postSetting' | 'tags' | 'metadata'
40
32
  > &
41
33
  Amity.CommunityStorySettings,
42
34
  ): Promise<Amity.Cached<Amity.Community>> => {
@@ -61,9 +53,7 @@ export const updateCommunity = async (
61
53
  const { communities } = data;
62
54
 
63
55
  return {
64
- data: LinkedObject.community(
65
- communities.find(community => community.communityId === communityId)!,
66
- ),
56
+ data: communities.find(community => community.communityId === communityId)!,
67
57
  cachedAt,
68
58
  };
69
59
  };
@@ -12,4 +12,3 @@ export * from './onCommunityJoined';
12
12
  export * from './onCommunityLeft';
13
13
  export * from './onLocalCommunityJoined';
14
14
  export * from './onLocalCommunityLeft';
15
- export * from './onLocalCommunityJoin';
@@ -16,5 +16,5 @@ import { createCommunityMemberEventSubscriber } from './utils';
16
16
  * @category Community Events
17
17
  */
18
18
  export const onCommunityJoined = (
19
- callback: (community: Amity.InternalCommunity, member: Amity.Membership<'community'>[]) => void,
19
+ callback: (community: Amity.Community, member: Amity.Membership<'community'>[]) => void,
20
20
  ) => createCommunityMemberEventSubscriber('community.joined', callback);
@@ -16,5 +16,5 @@ import { createCommunityMemberEventSubscriber } from './utils';
16
16
  * @category Community Events
17
17
  */
18
18
  export const onCommunityLeft = (
19
- callback: (community: Amity.InternalCommunity, member: Amity.Membership<'community'>[]) => void,
19
+ callback: (community: Amity.Community, member: Amity.Membership<'community'>[]) => void,
20
20
  ) => createCommunityMemberEventSubscriber('community.left', callback);
@@ -16,5 +16,5 @@ import { createCommunityMemberEventSubscriber } from './utils';
16
16
  * @category Community Events
17
17
  */
18
18
  export const onCommunityUserAdded = (
19
- callback: (community: Amity.InternalCommunity, member: Amity.Membership<'community'>[]) => void,
19
+ callback: (community: Amity.Community, member: Amity.Membership<'community'>[]) => void,
20
20
  ) => createCommunityMemberEventSubscriber('community.userAdded', callback);
@@ -16,5 +16,5 @@ import { createCommunityMemberEventSubscriber } from './utils';
16
16
  * @category Community Events
17
17
  */
18
18
  export const onCommunityUserBanned = (
19
- callback: (community: Amity.InternalCommunity, member: Amity.Membership<'community'>[]) => void,
19
+ callback: (community: Amity.Community, member: Amity.Membership<'community'>[]) => void,
20
20
  ) => createCommunityMemberEventSubscriber('community.userBanned', callback);
@@ -16,5 +16,5 @@ import { createCommunityMemberEventSubscriber } from './utils';
16
16
  * @category Community Events
17
17
  */
18
18
  export const onCommunityUserChanged = (
19
- callback: (community: Amity.InternalCommunity, members: Amity.Membership<'community'>[]) => void,
19
+ callback: (community: Amity.Community, members: Amity.Membership<'community'>[]) => void,
20
20
  ) => createCommunityMemberEventSubscriber('community.userChanged', callback);
@@ -16,5 +16,5 @@ import { createCommunityMemberEventSubscriber } from './utils';
16
16
  * @category Community Events
17
17
  */
18
18
  export const onCommunityUserRemoved = (
19
- callback: (community: Amity.InternalCommunity, member: Amity.Membership<'community'>[]) => void,
19
+ callback: (community: Amity.Community, member: Amity.Membership<'community'>[]) => void,
20
20
  ) => createCommunityMemberEventSubscriber('community.userRemoved', callback);
@@ -16,5 +16,5 @@ import { createCommunityMemberEventSubscriber } from './utils';
16
16
  * @category Community Events
17
17
  */
18
18
  export const onCommunityUserRoleAdded = (
19
- callback: (community: Amity.InternalCommunity, member: Amity.Membership<'community'>[]) => void,
19
+ callback: (community: Amity.Community, member: Amity.Membership<'community'>[]) => void,
20
20
  ) => createCommunityMemberEventSubscriber('community.roleAdded', callback);
@@ -16,5 +16,5 @@ import { createCommunityMemberEventSubscriber } from './utils';
16
16
  * @category Community Events
17
17
  */
18
18
  export const onCommunityUserRoleRemoved = (
19
- callback: (community: Amity.InternalCommunity, member: Amity.Membership<'community'>[]) => void,
19
+ callback: (community: Amity.Community, member: Amity.Membership<'community'>[]) => void,
20
20
  ) => createCommunityMemberEventSubscriber('community.roleRemoved', callback);
@@ -16,5 +16,5 @@ import { createCommunityMemberEventSubscriber } from './utils';
16
16
  * @category Community Events
17
17
  */
18
18
  export const onCommunityUserUnbanned = (
19
- callback: (community: Amity.InternalCommunity, member: Amity.Membership<'community'>[]) => void,
19
+ callback: (community: Amity.Community, member: Amity.Membership<'community'>[]) => void,
20
20
  ) => createCommunityMemberEventSubscriber('community.userUnbanned', callback);
@@ -1,5 +1,5 @@
1
1
  import { createLocalCommunityMemberEventSubscriber } from './utils';
2
2
 
3
3
  export const onLocalCommunityJoined = (
4
- callback: (community: Amity.InternalCommunity, member: Amity.Membership<'community'>[]) => void,
4
+ callback: (community: Amity.Community, member: Amity.Membership<'community'>[]) => void,
5
5
  ) => createLocalCommunityMemberEventSubscriber('local.community.joined', callback);
@@ -1,5 +1,5 @@
1
1
  import { createLocalCommunityMemberEventSubscriber } from './utils';
2
2
 
3
3
  export const onLocalCommunityLeft = (
4
- callback: (community: Amity.InternalCommunity, member: Amity.Membership<'community'>[]) => void,
4
+ callback: (community: Amity.Community, member: Amity.Membership<'community'>[]) => void,
5
5
  ) => createLocalCommunityMemberEventSubscriber('local.community.left', callback);
@@ -16,5 +16,5 @@ import { createLocalCommunityMemberEventSubscriber } from './utils';
16
16
  * @category Community Events
17
17
  */
18
18
  export const onLocalCommunityUserAdded = (
19
- callback: (community: Amity.InternalCommunity, member: Amity.Membership<'community'>[]) => void,
19
+ callback: (community: Amity.Community, member: Amity.Membership<'community'>[]) => void,
20
20
  ) => createLocalCommunityMemberEventSubscriber('local.community.userAdded', callback);
@@ -16,5 +16,5 @@ import { createLocalCommunityMemberEventSubscriber } from './utils';
16
16
  * @category Community Events
17
17
  */
18
18
  export const onLocalCommunityUserRemoved = (
19
- callback: (community: Amity.InternalCommunity, member: Amity.Membership<'community'>[]) => void,
19
+ callback: (community: Amity.Community, member: Amity.Membership<'community'>[]) => void,
20
20
  ) => createLocalCommunityMemberEventSubscriber('local.community.userRemoved', callback);
@@ -22,9 +22,7 @@ import { getResolver } from '~/core/model';
22
22
  */
23
23
  export const onUserDeleted =
24
24
  (communityId: string) =>
25
- (
26
- callback: (community: Amity.InternalCommunity, member: Amity.Membership<'community'>[]) => void,
27
- ) => {
25
+ (callback: (community: Amity.Community, member: Amity.Membership<'community'>[]) => void) => {
28
26
  const client = getActiveClient();
29
27
 
30
28
  const filter = (payload: Amity.UserPayload) => {
@@ -53,7 +53,7 @@ function getEventRelatedMember(
53
53
 
54
54
  export const createCommunityMemberEventSubscriber = (
55
55
  event: keyof Amity.MqttCommunityUserEvents,
56
- callback: (community: Amity.InternalCommunity, members: Amity.Membership<'community'>[]) => void,
56
+ callback: (community: Amity.Community, members: Amity.Membership<'community'>[]) => void,
57
57
  ) => {
58
58
  const client = getActiveClient();
59
59
 
@@ -102,7 +102,7 @@ export const createCommunityMemberEventSubscriber = (
102
102
 
103
103
  export const createLocalCommunityMemberEventSubscriber = (
104
104
  event: keyof Amity.LocalCommunityEvents,
105
- callback: (community: Amity.InternalCommunity, members: Amity.Membership<'community'>[]) => void,
105
+ callback: (community: Amity.Community, members: Amity.Membership<'community'>[]) => void,
106
106
  ) => {
107
107
  const client = getActiveClient();
108
108
 
@@ -70,10 +70,7 @@ export class CommunityMembersQueryStreamController extends QueryStreamController
70
70
  }
71
71
 
72
72
  reactor(action: EnumCommunityMemberActions) {
73
- return (
74
- community: Amity.InternalCommunity,
75
- communityMembers: Amity.Membership<'community'>[],
76
- ) => {
73
+ return (community: Amity.Community, communityMembers: Amity.Membership<'community'>[]) => {
77
74
  const collection = pullFromCache<Amity.CommunityMemberLiveCollectionCache>(
78
75
  this.cacheKey,
79
76
  )?.data;
@@ -100,10 +97,7 @@ export class CommunityMembersQueryStreamController extends QueryStreamController
100
97
  subscribeRTE(
101
98
  createSubscriber: {
102
99
  fn: (
103
- reactor: (
104
- channel: Amity.InternalCommunity,
105
- communityUser: Amity.Membership<'community'>[],
106
- ) => void,
100
+ reactor: (channel: Amity.Community, communityUser: Amity.Membership<'community'>[]) => void,
107
101
  ) => Amity.Unsubscriber;
108
102
  action: EnumCommunityMemberActions;
109
103
  }[],
@@ -10,5 +10,4 @@ export enum EnumCommunityMemberActions {
10
10
  OnCommunityUserAdded = 'OnCommunityUserAdded',
11
11
  onCommunityUserRemoved = 'onCommunityUserRemoved',
12
12
  OnUserDeleted = 'OnUserDeleted',
13
- OnLocalCommunityJoin = 'OnLocalCommunityJoin',
14
13
  }
@@ -70,10 +70,7 @@ export class SearchCommunityMembersQueryStreamController extends QueryStreamCont
70
70
  }
71
71
 
72
72
  reactor(action: EnumCommunityMemberActions) {
73
- return (
74
- community: Amity.InternalCommunity,
75
- communityMembers: Amity.Membership<'community'>[],
76
- ) => {
73
+ return (community: Amity.Community, communityMembers: Amity.Membership<'community'>[]) => {
77
74
  const collection = pullFromCache<Amity.SearchCommunityMemberLiveCollectionCache>(
78
75
  this.cacheKey,
79
76
  )?.data;
@@ -98,10 +95,7 @@ export class SearchCommunityMembersQueryStreamController extends QueryStreamCont
98
95
  subscribeRTE(
99
96
  createSubscriber: {
100
97
  fn: (
101
- reactor: (
102
- channel: Amity.InternalCommunity,
103
- communityUser: Amity.Membership<'community'>[],
104
- ) => void,
98
+ reactor: (channel: Amity.Community, communityUser: Amity.Membership<'community'>[]) => void,
105
99
  ) => Amity.Unsubscriber;
106
100
  action: EnumCommunityMemberActions;
107
101
  }[],
@@ -1,6 +1,5 @@
1
1
  export enum EnumCommunityMemberActions {
2
2
  OnCommunityJoined = 'onCommunityJoined',
3
- OnLocalCommunityJoin = 'onLocalCommunityJoin',
4
3
  OnCommunityLeft = 'onCommunityLeft',
5
4
  OnCommunityUserBanned = 'onCommunityUserBanned',
6
5
  OnCommunityUserChanged = 'onCommunityUserChanged',
@@ -17,7 +17,7 @@ import { createEventSubscriber } from '~/core/events';
17
17
  * @category Community Events
18
18
  */
19
19
  export const onLocalCommunityRoleAdded = (
20
- callback: (community: Amity.InternalCommunity, member: Amity.Membership<'community'>[]) => void,
20
+ callback: (community: Amity.Community, member: Amity.Membership<'community'>[]) => void,
21
21
  ): Amity.Unsubscriber => {
22
22
  const client = getActiveClient();
23
23
 
@@ -17,7 +17,7 @@ import { createEventSubscriber } from '~/core/events';
17
17
  * @category Community Events
18
18
  */
19
19
  export const onLocalCommunityRoleRemoved = (
20
- callback: (community: Amity.InternalCommunity, member: Amity.Membership<'community'>[]) => void,
20
+ callback: (community: Amity.Community, member: Amity.Membership<'community'>[]) => void,
21
21
  ): Amity.Unsubscriber => {
22
22
  const client = getActiveClient();
23
23
 
@@ -15,5 +15,5 @@ import { createCommunityEventSubscriber } from './utils';
15
15
  *
16
16
  * @category Community Events
17
17
  */
18
- export const onCommunityCreated = (callback: Amity.Listener<Amity.InternalCommunity>) =>
18
+ export const onCommunityCreated = (callback: Amity.Listener<Amity.Community>) =>
19
19
  createCommunityEventSubscriber('community.created', callback);
@@ -15,5 +15,5 @@ import { createCommunityEventSubscriber } from './utils';
15
15
  *
16
16
  * @category Community Events
17
17
  */
18
- export const onCommunityDeleted = (callback: Amity.Listener<Amity.InternalCommunity>) =>
18
+ export const onCommunityDeleted = (callback: Amity.Listener<Amity.Community>) =>
19
19
  createCommunityEventSubscriber('community.deleted', callback);
@@ -15,5 +15,5 @@ import { createCommunityEventSubscriber } from './utils';
15
15
  *
16
16
  * @category Community Events
17
17
  */
18
- export const onCommunityUpdated = (callback: Amity.Listener<Amity.InternalCommunity>) =>
18
+ export const onCommunityUpdated = (callback: Amity.Listener<Amity.Community>) =>
19
19
  createCommunityEventSubscriber('community.updated', callback);
@@ -7,7 +7,7 @@ import { prepareCommunityPayload } from '../utils';
7
7
 
8
8
  export const createCommunityEventSubscriber = (
9
9
  event: keyof Amity.MqttCommunityEvents,
10
- callback: Amity.Listener<Amity.InternalCommunity>,
10
+ callback: Amity.Listener<Amity.Community>,
11
11
  ) => {
12
12
  const client = getActiveClient();
13
13
 
@@ -25,10 +25,8 @@ import {
25
25
  onLocalCommunityJoined,
26
26
  onLocalCommunityLeft,
27
27
  onCommunityUserChanged,
28
- onLocalCommunityJoin,
29
28
  } from '~/communityRepository/communityMembership';
30
29
  import { isNonNullable } from '~/utils';
31
- import { convertEventPayload } from '~/utils/event';
32
30
 
33
31
  export class CommunityLiveCollectionController extends LiveCollectionController<
34
32
  'community',
@@ -94,10 +92,6 @@ export class CommunityLiveCollectionController extends LiveCollectionController<
94
92
  { fn: onCommunityUserChanged, action: EnumCommunityMemberActions.OnMemberCountChanged },
95
93
  { fn: onLocalCommunityJoined, action: EnumCommunityMemberActions.OnCommunityJoined },
96
94
  { fn: onLocalCommunityLeft, action: EnumCommunityMemberActions.OnCommunityLeft },
97
- {
98
- fn: convertEventPayload(onLocalCommunityJoin, 'targetId', 'community'),
99
- action: EnumCommunityActions.OnCommunityUpdated,
100
- },
101
95
  ]);
102
96
  }
103
97
 
@@ -21,7 +21,6 @@ export class CommunitiesPaginationController extends PaginationController<
21
21
  ...params,
22
22
  isDeleted: inferIsDeleted(params.includeDeleted),
23
23
  filter: params.membership,
24
- includeDiscoverablePrivateCommunity: params.includeDiscoverablePrivateCommunity ?? true,
25
24
  options,
26
25
  },
27
26
  },
@@ -60,7 +60,7 @@ export class CommunitiesQueryStreamController extends QueryStreamController<
60
60
  }
61
61
 
62
62
  reactor(action: EnumCommunityActions | EnumCommunityMemberActions) {
63
- return (community: Amity.InternalCommunity) => {
63
+ return (community: Amity.Community) => {
64
64
  const collection = pullFromCache<Amity.CommunityLiveCollectionCache>(this.cacheKey)?.data;
65
65
  if (!collection) return;
66
66
 
@@ -76,7 +76,7 @@ export class CommunitiesQueryStreamController extends QueryStreamController<
76
76
 
77
77
  subscribeRTE(
78
78
  createSubscriber: {
79
- fn: (reactor: (channel: Amity.InternalCommunity) => void) => Amity.Unsubscriber;
79
+ fn: (reactor: (channel: Amity.Community) => void) => Amity.Unsubscriber;
80
80
  action: EnumCommunityActions | EnumCommunityMemberActions;
81
81
  }[],
82
82
  ) {
@@ -9,9 +9,7 @@ import {
9
9
  onCommunityLeft,
10
10
  onLocalCommunityJoined,
11
11
  onLocalCommunityLeft,
12
- onLocalCommunityJoin,
13
12
  } from '../communityMembership/events';
14
- import { convertEventPayload } from '~/utils/event';
15
13
 
16
14
  /* begin_public_function
17
15
  id: community.get
@@ -49,7 +47,6 @@ export const getCommunity = (
49
47
  onCommunityUserBanned,
50
48
  onCommunityUserUnbanned,
51
49
  onCommunityUserChanged,
52
- convertEventPayload(onLocalCommunityJoin, 'targetId', 'community'),
53
50
  ]);
54
51
  };
55
52
  /* end_public_function */
@@ -13,11 +13,8 @@ import {
13
13
  onLocalCommunityJoined,
14
14
  onLocalCommunityLeft,
15
15
  onCommunityUserChanged,
16
- onLocalCommunityJoin,
17
16
  } from '~/communityRepository/communityMembership';
18
17
  import { isNonNullable } from '~/utils';
19
- import { communityLinkedObject } from '~/utils/linkedObject/communityLinkedObject';
20
- import { convertEventPayload } from '~/utils/event';
21
18
 
22
19
  export class RecommendedCommunityLiveCollectionController extends LiveCollectionController<
23
20
  'community',
@@ -84,10 +81,6 @@ export class RecommendedCommunityLiveCollectionController extends LiveCollection
84
81
  { fn: onCommunityUserChanged, action: EnumCommunityMemberActions.OnMemberCountChanged },
85
82
  { fn: onLocalCommunityJoined, action: EnumCommunityMemberActions.OnCommunityJoined },
86
83
  { fn: onLocalCommunityLeft, action: EnumCommunityMemberActions.OnCommunityLeft },
87
- {
88
- fn: convertEventPayload(onLocalCommunityJoin, 'targetId', 'community'),
89
- action: EnumCommunityActions.OnCommunityUpdated,
90
- },
91
84
  ]);
92
85
  }
93
86
 
@@ -101,7 +94,7 @@ export class RecommendedCommunityLiveCollectionController extends LiveCollection
101
94
  collection.data
102
95
  .map(id => pullFromCache<Amity.Community>(['community', 'get', id]))
103
96
  .filter(isNonNullable)
104
- .map(({ data }) => communityLinkedObject(data)) ?? [];
97
+ .map(({ data }) => data) ?? [];
105
98
 
106
99
  if (!this.shouldNotify(data) && origin === 'event') return;
107
100
 
@@ -14,11 +14,7 @@ export class RecommendedCommunitiesPaginationController extends PaginationContro
14
14
  queryParams: Amity.RecommendedCommunityLiveCollection,
15
15
  token: string | undefined,
16
16
  ) {
17
- const {
18
- limit = COLLECTION_DEFAULT_PAGINATION_LIMIT,
19
- includeDiscoverablePrivateCommunity,
20
- ...params
21
- } = queryParams;
17
+ const { limit = COLLECTION_DEFAULT_PAGINATION_LIMIT, ...params } = queryParams;
22
18
  const options = token ? { token } : { limit };
23
19
 
24
20
  const { data: queryResponse } = await this.http.get<Amity.CommunityPayload & Amity.Pagination>(
@@ -27,7 +23,6 @@ export class RecommendedCommunitiesPaginationController extends PaginationContro
27
23
  params: {
28
24
  ...params,
29
25
  options,
30
- includeDiscoverablePrivateCommunity: includeDiscoverablePrivateCommunity ?? true,
31
26
  },
32
27
  },
33
28
  );
@@ -66,7 +66,7 @@ export class RecommendedCommunitiesQueryStreamController extends QueryStreamCont
66
66
  }
67
67
 
68
68
  reactor(action: EnumCommunityActions | EnumCommunityMemberActions) {
69
- return (community: Amity.InternalCommunity) => {
69
+ return (community: Amity.Community) => {
70
70
  const collection = pullFromCache<Amity.RecommendedCommunityLiveCollectionCache>(
71
71
  this.cacheKey,
72
72
  )?.data;
@@ -79,7 +79,7 @@ export class RecommendedCommunitiesQueryStreamController extends QueryStreamCont
79
79
 
80
80
  subscribeRTE(
81
81
  createSubscriber: {
82
- fn: (reactor: (channel: Amity.InternalCommunity) => void) => Amity.Unsubscriber;
82
+ fn: (reactor: (channel: Amity.Community) => void) => Amity.Unsubscriber;
83
83
  action: EnumCommunityActions | EnumCommunityMemberActions;
84
84
  }[],
85
85
  ) {
@@ -1,5 +1,4 @@
1
1
  export enum EnumCommunityActions {
2
2
  OnCommunityDeleted = 'onCommunityDeleted',
3
3
  OnCommunityUpdated = 'onCommunityUpdated',
4
- OnLocalCommunityJoin = 'onLocalCommunityJoin',
5
4
  }
@@ -13,12 +13,8 @@ import {
13
13
  onLocalCommunityJoined,
14
14
  onLocalCommunityLeft,
15
15
  onCommunityUserChanged,
16
- onLocalCommunityJoin,
17
16
  } from '~/communityRepository/communityMembership';
18
-
19
17
  import { isNonNullable } from '~/utils';
20
- import { communityLinkedObject } from '~/utils/linkedObject/communityLinkedObject';
21
- import { convertEventPayload } from '~/utils/event';
22
18
 
23
19
  export class TrendingCommunityLiveCollectionController extends LiveCollectionController<
24
20
  'community',
@@ -85,10 +81,6 @@ export class TrendingCommunityLiveCollectionController extends LiveCollectionCon
85
81
  { fn: onCommunityUserChanged, action: EnumCommunityMemberActions.OnMemberCountChanged },
86
82
  { fn: onLocalCommunityJoined, action: EnumCommunityMemberActions.OnCommunityJoined },
87
83
  { fn: onLocalCommunityLeft, action: EnumCommunityMemberActions.OnCommunityLeft },
88
- {
89
- fn: convertEventPayload(onLocalCommunityJoin, 'targetId', 'community'),
90
- action: EnumCommunityActions.OnCommunityUpdated,
91
- },
92
84
  ]);
93
85
  }
94
86
 
@@ -102,7 +94,7 @@ export class TrendingCommunityLiveCollectionController extends LiveCollectionCon
102
94
  collection.data
103
95
  .map(id => pullFromCache<Amity.Community>(['community', 'get', id]))
104
96
  .filter(isNonNullable)
105
- .map(({ data }) => communityLinkedObject(data)) ?? [];
97
+ .map(({ data }) => data) ?? [];
106
98
 
107
99
  if (!this.shouldNotify(data) && origin === 'event') return;
108
100
 
@@ -11,11 +11,7 @@ export class TrendingCommunitiesPaginationController extends PaginationControlle
11
11
  Amity.TrendingCommunityLiveCollection
12
12
  > {
13
13
  async getRequest(queryParams: Amity.TrendingCommunityLiveCollection, token: string | undefined) {
14
- const {
15
- limit = COLLECTION_DEFAULT_PAGINATION_LIMIT,
16
- includeDiscoverablePrivateCommunity,
17
- ...params
18
- } = queryParams;
14
+ const { limit = COLLECTION_DEFAULT_PAGINATION_LIMIT, ...params } = queryParams;
19
15
  const options = token ? { token } : { limit };
20
16
 
21
17
  const { data: queryResponse } = await this.http.get<Amity.CommunityPayload & Amity.Pagination>(
@@ -24,7 +20,6 @@ export class TrendingCommunitiesPaginationController extends PaginationControlle
24
20
  params: {
25
21
  ...params,
26
22
  options,
27
- includeDiscoverablePrivateCommunity: includeDiscoverablePrivateCommunity ?? true,
28
23
  },
29
24
  },
30
25
  );
@@ -64,7 +64,7 @@ export class TrendingCommunitiesQueryStreamController extends QueryStreamControl
64
64
  }
65
65
 
66
66
  reactor(action: EnumCommunityActions | EnumCommunityMemberActions) {
67
- return (community: Amity.InternalCommunity) => {
67
+ return (community: Amity.Community) => {
68
68
  const collection = pullFromCache<Amity.TrendingCommunityLiveCollectionCache>(
69
69
  this.cacheKey,
70
70
  )?.data;
@@ -77,7 +77,7 @@ export class TrendingCommunitiesQueryStreamController extends QueryStreamControl
77
77
 
78
78
  subscribeRTE(
79
79
  createSubscriber: {
80
- fn: (reactor: (channel: Amity.InternalCommunity) => void) => Amity.Unsubscriber;
80
+ fn: (reactor: (channel: Amity.Community) => void) => Amity.Unsubscriber;
81
81
  action: EnumCommunityActions | EnumCommunityMemberActions;
82
82
  }[],
83
83
  ) {
@@ -5,4 +5,3 @@ export * from './getTrendingCommunities';
5
5
  export * from './getRecommendedCommunities';
6
6
 
7
7
  export * from './semanticSearchCommunities';
8
- export * from './getJoinRequestList';
@@ -15,10 +15,8 @@ import {
15
15
  onCommunityLeft,
16
16
  onLocalCommunityLeft,
17
17
  onCommunityUserChanged,
18
- onLocalCommunityJoin,
19
18
  } from '~/communityRepository/communityMembership';
20
19
  import { isNonNullable } from '~/utils';
21
- import { convertEventPayload } from '~/utils/event';
22
20
 
23
21
  export class SearchCommunityLiveCollectionController extends LiveCollectionController<
24
22
  'community',
@@ -83,10 +81,6 @@ export class SearchCommunityLiveCollectionController extends LiveCollectionContr
83
81
  { fn: onCommunityUserChanged, action: EnumCommunityMemberActions.OnMemberCountChanged },
84
82
  { fn: onLocalCommunityJoined, action: EnumCommunityMemberActions.OnCommunityJoined },
85
83
  { fn: onLocalCommunityLeft, action: EnumCommunityMemberActions.OnCommunityLeft },
86
- {
87
- fn: convertEventPayload(onLocalCommunityJoin, 'targetId', 'community'),
88
- action: EnumCommunityActions.OnCommunityUpdated,
89
- },
90
84
  ]);
91
85
  }
92
86
 
@@ -22,7 +22,6 @@ export class CommunitiesPaginationController extends PaginationController<
22
22
  isDeleted: inferIsDeleted(params.includeDeleted),
23
23
  keyword: params.displayName,
24
24
  filter: params.membership,
25
- includeDiscoverablePrivateCommunity: params.includeDiscoverablePrivateCommunity ?? true,
26
25
  options,
27
26
  },
28
27
  },
@@ -60,7 +60,7 @@ export class CommunitiesQueryStreamController extends QueryStreamController<
60
60
  }
61
61
 
62
62
  reactor(action: EnumCommunityActions | EnumCommunityMemberActions) {
63
- return (community: Amity.InternalCommunity) => {
63
+ return (community: Amity.Community) => {
64
64
  const collection = pullFromCache<Amity.SearchCommunityLiveCollectionCache>(
65
65
  this.cacheKey,
66
66
  )?.data;
@@ -73,7 +73,7 @@ export class CommunitiesQueryStreamController extends QueryStreamController<
73
73
 
74
74
  subscribeRTE(
75
75
  createSubscriber: {
76
- fn: (reactor: (channel: Amity.InternalCommunity) => void) => Amity.Unsubscriber;
76
+ fn: (reactor: (channel: Amity.Community) => void) => Amity.Unsubscriber;
77
77
  action: EnumCommunityActions | EnumCommunityMemberActions;
78
78
  }[],
79
79
  ) {
@@ -15,7 +15,6 @@ import {
15
15
  onLocalCommunityJoined,
16
16
  onLocalCommunityLeft,
17
17
  onCommunityUserChanged,
18
- onLocalCommunityJoin,
19
18
  } from '~/communityRepository/communityMembership';
20
19
 
21
20
  import { isNonNullable } from '~/utils';
@@ -25,7 +24,6 @@ import { prepareSemanticSearchCommunityPayload } from '~/communityRepository/uti
25
24
  import { getActiveClient } from '~/client';
26
25
  import { EnumCommunityMemberActions } from '~/communityRepository/communityMembership/observers/getMembers/enums';
27
26
  import { filterByCommunityMembership } from '~/core/query';
28
- import { convertEventPayload } from '~/utils/event';
29
27
 
30
28
  export class SemanticSearchCommunityLiveCollectionController extends LiveCollectionController<
31
29
  'semanticSearchCommunity',
@@ -96,10 +94,6 @@ export class SemanticSearchCommunityLiveCollectionController extends LiveCollect
96
94
  { fn: onCommunityUserChanged, action: EnumCommunityMemberActions.OnMemberCountChanged },
97
95
  { fn: onLocalCommunityJoined, action: EnumCommunityMemberActions.OnCommunityJoined },
98
96
  { fn: onLocalCommunityLeft, action: EnumCommunityMemberActions.OnCommunityLeft },
99
- {
100
- fn: convertEventPayload(onLocalCommunityJoin, 'targetId', 'community'),
101
- action: EnumCommunityActions.OnCommunityUpdated,
102
- },
103
97
  ]);
104
98
  }
105
99
 
@@ -29,7 +29,6 @@ export class SemanticSearchCommunityPaginationController extends PaginationContr
29
29
  ...params,
30
30
  filter: communityMembershipStatus ?? AmityCommunityMemberStatusFilter.ALL,
31
31
  options,
32
- includeDiscoverablePrivateCommunity: params.includeDiscoverablePrivateCommunity ?? true,
33
32
  },
34
33
  });
35
34
  return queryResponse;