@amityco/ts-sdk 7.3.1-e2dead4.0 → 7.4.1-4207cb63.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.
Files changed (240) hide show
  1. package/dist/@types/core/events.d.ts +3 -0
  2. package/dist/@types/core/events.d.ts.map +1 -1
  3. package/dist/@types/core/model.d.ts +3 -1
  4. package/dist/@types/core/model.d.ts.map +1 -1
  5. package/dist/@types/core/payload.d.ts +22 -4
  6. package/dist/@types/core/payload.d.ts.map +1 -1
  7. package/dist/@types/domains/client.d.ts +10 -0
  8. package/dist/@types/domains/client.d.ts.map +1 -1
  9. package/dist/@types/domains/community.d.ts +11 -1
  10. package/dist/@types/domains/community.d.ts.map +1 -1
  11. package/dist/@types/domains/invitation.d.ts +88 -0
  12. package/dist/@types/domains/invitation.d.ts.map +1 -0
  13. package/dist/@types/index.d.ts +2 -0
  14. package/dist/@types/index.d.ts.map +1 -1
  15. package/dist/commentRepository/api/flagComment.d.ts +3 -2
  16. package/dist/commentRepository/api/flagComment.d.ts.map +1 -1
  17. package/dist/communityRepository/api/createCommunity.d.ts +2 -2
  18. package/dist/communityRepository/api/createCommunity.d.ts.map +1 -1
  19. package/dist/communityRepository/api/getCommunities.d.ts +1 -1
  20. package/dist/communityRepository/api/getCommunities.d.ts.map +1 -1
  21. package/dist/communityRepository/api/getCommunity.d.ts.map +1 -1
  22. package/dist/communityRepository/api/getRecommendedCommunities.d.ts +3 -1
  23. package/dist/communityRepository/api/getRecommendedCommunities.d.ts.map +1 -1
  24. package/dist/communityRepository/api/getTrendingCommunities.d.ts +3 -1
  25. package/dist/communityRepository/api/getTrendingCommunities.d.ts.map +1 -1
  26. package/dist/communityRepository/api/queryCommunities.d.ts.map +1 -1
  27. package/dist/communityRepository/api/updateCommunity.d.ts +2 -2
  28. package/dist/communityRepository/api/updateCommunity.d.ts.map +1 -1
  29. package/dist/communityRepository/communityMembership/events/onCommunityJoined.d.ts +1 -1
  30. package/dist/communityRepository/communityMembership/events/onCommunityJoined.d.ts.map +1 -1
  31. package/dist/communityRepository/communityMembership/events/onCommunityLeft.d.ts +1 -1
  32. package/dist/communityRepository/communityMembership/events/onCommunityLeft.d.ts.map +1 -1
  33. package/dist/communityRepository/communityMembership/events/onCommunityUserAdded.d.ts +1 -1
  34. package/dist/communityRepository/communityMembership/events/onCommunityUserAdded.d.ts.map +1 -1
  35. package/dist/communityRepository/communityMembership/events/onCommunityUserBanned.d.ts +1 -1
  36. package/dist/communityRepository/communityMembership/events/onCommunityUserBanned.d.ts.map +1 -1
  37. package/dist/communityRepository/communityMembership/events/onCommunityUserChanged.d.ts +1 -1
  38. package/dist/communityRepository/communityMembership/events/onCommunityUserChanged.d.ts.map +1 -1
  39. package/dist/communityRepository/communityMembership/events/onCommunityUserRemoved.d.ts +1 -1
  40. package/dist/communityRepository/communityMembership/events/onCommunityUserRemoved.d.ts.map +1 -1
  41. package/dist/communityRepository/communityMembership/events/onCommunityUserRoleAdded.d.ts +1 -1
  42. package/dist/communityRepository/communityMembership/events/onCommunityUserRoleAdded.d.ts.map +1 -1
  43. package/dist/communityRepository/communityMembership/events/onCommunityUserRoleRemoved.d.ts +1 -1
  44. package/dist/communityRepository/communityMembership/events/onCommunityUserRoleRemoved.d.ts.map +1 -1
  45. package/dist/communityRepository/communityMembership/events/onCommunityUserUnbanned.d.ts +1 -1
  46. package/dist/communityRepository/communityMembership/events/onCommunityUserUnbanned.d.ts.map +1 -1
  47. package/dist/communityRepository/communityMembership/events/onLocalCommunityJoined.d.ts +1 -1
  48. package/dist/communityRepository/communityMembership/events/onLocalCommunityJoined.d.ts.map +1 -1
  49. package/dist/communityRepository/communityMembership/events/onLocalCommunityLeft.d.ts +1 -1
  50. package/dist/communityRepository/communityMembership/events/onLocalCommunityLeft.d.ts.map +1 -1
  51. package/dist/communityRepository/communityMembership/events/onLocalCommunityUserAdded.d.ts +1 -1
  52. package/dist/communityRepository/communityMembership/events/onLocalCommunityUserAdded.d.ts.map +1 -1
  53. package/dist/communityRepository/communityMembership/events/onLocalCommunityUserRemoved.d.ts +1 -1
  54. package/dist/communityRepository/communityMembership/events/onLocalCommunityUserRemoved.d.ts.map +1 -1
  55. package/dist/communityRepository/communityMembership/events/onUserDeleted.d.ts +1 -1
  56. package/dist/communityRepository/communityMembership/events/onUserDeleted.d.ts.map +1 -1
  57. package/dist/communityRepository/communityMembership/events/utils.d.ts +2 -2
  58. package/dist/communityRepository/communityMembership/events/utils.d.ts.map +1 -1
  59. package/dist/communityRepository/communityMembership/observers/getMembers/CommunityMembersQueryStreamController.d.ts +2 -2
  60. package/dist/communityRepository/communityMembership/observers/getMembers/CommunityMembersQueryStreamController.d.ts.map +1 -1
  61. package/dist/communityRepository/communityMembership/observers/searchMembers/SearchCommunityMembersQueryStreamController.d.ts +2 -2
  62. package/dist/communityRepository/communityMembership/observers/searchMembers/SearchCommunityMembersQueryStreamController.d.ts.map +1 -1
  63. package/dist/communityRepository/communityModeration/events/onLocalCommunityRoleAdded.d.ts +1 -1
  64. package/dist/communityRepository/communityModeration/events/onLocalCommunityRoleAdded.d.ts.map +1 -1
  65. package/dist/communityRepository/communityModeration/events/onLocalCommunityRoleRemoved.d.ts +1 -1
  66. package/dist/communityRepository/communityModeration/events/onLocalCommunityRoleRemoved.d.ts.map +1 -1
  67. package/dist/communityRepository/events/onCommunityCreated.d.ts +1 -1
  68. package/dist/communityRepository/events/onCommunityCreated.d.ts.map +1 -1
  69. package/dist/communityRepository/events/onCommunityDeleted.d.ts +1 -1
  70. package/dist/communityRepository/events/onCommunityDeleted.d.ts.map +1 -1
  71. package/dist/communityRepository/events/onCommunityUpdated.d.ts +1 -1
  72. package/dist/communityRepository/events/onCommunityUpdated.d.ts.map +1 -1
  73. package/dist/communityRepository/events/utils.d.ts +1 -1
  74. package/dist/communityRepository/events/utils.d.ts.map +1 -1
  75. package/dist/communityRepository/observers/getCommunities/CommunitiesQueryStreamController.d.ts +2 -2
  76. package/dist/communityRepository/observers/getCommunities/CommunitiesQueryStreamController.d.ts.map +1 -1
  77. package/dist/communityRepository/observers/getRecommendedCommunities/RecommendedCommunitiesQueryStreamController.d.ts +2 -2
  78. package/dist/communityRepository/observers/getRecommendedCommunities/RecommendedCommunitiesQueryStreamController.d.ts.map +1 -1
  79. package/dist/communityRepository/observers/getTrendingCommunities/TrendingCommunitiesQueryStreamController.d.ts +2 -2
  80. package/dist/communityRepository/observers/getTrendingCommunities/TrendingCommunitiesQueryStreamController.d.ts.map +1 -1
  81. package/dist/communityRepository/observers/searchCommunities/SearchCommunitiesQueryStreamController.d.ts +2 -2
  82. package/dist/communityRepository/observers/searchCommunities/SearchCommunitiesQueryStreamController.d.ts.map +1 -1
  83. package/dist/communityRepository/observers/semanticSearch/SemanticSearchCommunityQueryStreamController.d.ts +2 -2
  84. package/dist/communityRepository/observers/semanticSearch/SemanticSearchCommunityQueryStreamController.d.ts.map +1 -1
  85. package/dist/communityRepository/utils/communityWithMembership.d.ts +1 -1
  86. package/dist/communityRepository/utils/communityWithMembership.d.ts.map +1 -1
  87. package/dist/communityRepository/utils/payload.d.ts +1 -1
  88. package/dist/communityRepository/utils/payload.d.ts.map +1 -1
  89. package/dist/core/events.d.ts +3 -3
  90. package/dist/core/events.d.ts.map +1 -1
  91. package/dist/core/model/idResolvers.d.ts.map +1 -1
  92. package/dist/core/model/index.d.ts.map +1 -1
  93. package/dist/index.cjs.js +3234 -2474
  94. package/dist/index.d.ts +1 -0
  95. package/dist/index.d.ts.map +1 -1
  96. package/dist/index.esm.js +3203 -2444
  97. package/dist/index.umd.js +4 -4
  98. package/dist/invitationRepository/events/index.d.ts +4 -0
  99. package/dist/invitationRepository/events/index.d.ts.map +1 -0
  100. package/dist/invitationRepository/events/onLocalInvitationCreated.d.ts +17 -0
  101. package/dist/invitationRepository/events/onLocalInvitationCreated.d.ts.map +1 -0
  102. package/dist/invitationRepository/events/onLocalInvitationDeleted.d.ts +17 -0
  103. package/dist/invitationRepository/events/onLocalInvitationDeleted.d.ts.map +1 -0
  104. package/dist/invitationRepository/events/onLocalInvitationUpdated.d.ts +17 -0
  105. package/dist/invitationRepository/events/onLocalInvitationUpdated.d.ts.map +1 -0
  106. package/dist/invitationRepository/index.d.ts +3 -0
  107. package/dist/invitationRepository/index.d.ts.map +1 -0
  108. package/dist/invitationRepository/internalApi/acceptInvitation.d.ts +16 -0
  109. package/dist/invitationRepository/internalApi/acceptInvitation.d.ts.map +1 -0
  110. package/dist/invitationRepository/internalApi/cancelInvitation.d.ts +16 -0
  111. package/dist/invitationRepository/internalApi/cancelInvitation.d.ts.map +1 -0
  112. package/dist/invitationRepository/internalApi/createInvitations.d.ts +21 -0
  113. package/dist/invitationRepository/internalApi/createInvitations.d.ts.map +1 -0
  114. package/dist/invitationRepository/internalApi/getInvitation.d.ts +17 -0
  115. package/dist/invitationRepository/internalApi/getInvitation.d.ts.map +1 -0
  116. package/dist/invitationRepository/internalApi/index.d.ts +5 -0
  117. package/dist/invitationRepository/internalApi/index.d.ts.map +1 -0
  118. package/dist/invitationRepository/internalApi/rejectInvitation.d.ts +16 -0
  119. package/dist/invitationRepository/internalApi/rejectInvitation.d.ts.map +1 -0
  120. package/dist/invitationRepository/observers/getInvitations/InvitationsLiveCollectionController.d.ts +14 -0
  121. package/dist/invitationRepository/observers/getInvitations/InvitationsLiveCollectionController.d.ts.map +1 -0
  122. package/dist/invitationRepository/observers/getInvitations/InvitationsPaginationController.d.ts +5 -0
  123. package/dist/invitationRepository/observers/getInvitations/InvitationsPaginationController.d.ts.map +1 -0
  124. package/dist/invitationRepository/observers/getInvitations/InvitationsQueryStreamController.d.ts +15 -0
  125. package/dist/invitationRepository/observers/getInvitations/InvitationsQueryStreamController.d.ts.map +1 -0
  126. package/dist/invitationRepository/observers/getInvitations/enums.d.ts +6 -0
  127. package/dist/invitationRepository/observers/getInvitations/enums.d.ts.map +1 -0
  128. package/dist/invitationRepository/observers/getInvitations.d.ts +12 -0
  129. package/dist/invitationRepository/observers/getInvitations.d.ts.map +1 -0
  130. package/dist/invitationRepository/observers/getMyCommunityInvitations.d.ts +12 -0
  131. package/dist/invitationRepository/observers/getMyCommunityInvitations.d.ts.map +1 -0
  132. package/dist/invitationRepository/observers/getMyInvitations/MyInvitationsLiveCollectionController.d.ts +14 -0
  133. package/dist/invitationRepository/observers/getMyInvitations/MyInvitationsLiveCollectionController.d.ts.map +1 -0
  134. package/dist/invitationRepository/observers/getMyInvitations/MyInvitationsPaginationController.d.ts +5 -0
  135. package/dist/invitationRepository/observers/getMyInvitations/MyInvitationsPaginationController.d.ts.map +1 -0
  136. package/dist/invitationRepository/observers/getMyInvitations/MyInvitationsQueryStreamController.d.ts +15 -0
  137. package/dist/invitationRepository/observers/getMyInvitations/MyInvitationsQueryStreamController.d.ts.map +1 -0
  138. package/dist/invitationRepository/observers/index.d.ts +2 -0
  139. package/dist/invitationRepository/observers/index.d.ts.map +1 -0
  140. package/dist/invitationRepository/utils/convertRawInvitationToInternalInvitation.d.ts +2 -0
  141. package/dist/invitationRepository/utils/convertRawInvitationToInternalInvitation.d.ts.map +1 -0
  142. package/dist/invitationRepository/utils/index.d.ts +2 -0
  143. package/dist/invitationRepository/utils/index.d.ts.map +1 -0
  144. package/dist/invitationRepository/utils/prepareInvitationPayload.d.ts +2 -0
  145. package/dist/invitationRepository/utils/prepareInvitationPayload.d.ts.map +1 -0
  146. package/dist/invitationRepository/utils/prepareMyInvitationsPayload.d.ts +2 -0
  147. package/dist/invitationRepository/utils/prepareMyInvitationsPayload.d.ts.map +1 -0
  148. package/dist/messageRepository/api/flagMessage.d.ts +1 -1
  149. package/dist/messageRepository/api/flagMessage.d.ts.map +1 -1
  150. package/dist/postRepository/api/flagPost.d.ts +3 -2
  151. package/dist/postRepository/api/flagPost.d.ts.map +1 -1
  152. package/dist/utils/linkedObject/communityLinkedObject.d.ts +2 -0
  153. package/dist/utils/linkedObject/communityLinkedObject.d.ts.map +1 -0
  154. package/dist/utils/linkedObject/index.d.ts +2 -0
  155. package/dist/utils/linkedObject/index.d.ts.map +1 -1
  156. package/dist/utils/linkedObject/invitationLinkedObject.d.ts +2 -0
  157. package/dist/utils/linkedObject/invitationLinkedObject.d.ts.map +1 -0
  158. package/dist/utils/tests/dummy/post.d.ts +3 -3
  159. package/package.json +1 -1
  160. package/src/@types/core/events.ts +4 -0
  161. package/src/@types/core/model.ts +5 -1
  162. package/src/@types/core/payload.ts +26 -4
  163. package/src/@types/domains/client.ts +12 -0
  164. package/src/@types/domains/community.ts +20 -1
  165. package/src/@types/domains/invitation.ts +116 -0
  166. package/src/@types/index.ts +2 -0
  167. package/src/commentRepository/api/flagComment.ts +20 -3
  168. package/src/communityRepository/api/createCommunity.ts +5 -2
  169. package/src/communityRepository/api/getCommunities.ts +7 -2
  170. package/src/communityRepository/api/getCommunity.ts +5 -2
  171. package/src/communityRepository/api/getRecommendedCommunities.ts +11 -4
  172. package/src/communityRepository/api/getTrendingCommunities.ts +11 -4
  173. package/src/communityRepository/api/queryCommunities.ts +6 -1
  174. package/src/communityRepository/api/updateCommunity.ts +13 -3
  175. package/src/communityRepository/communityMembership/events/onCommunityJoined.ts +1 -1
  176. package/src/communityRepository/communityMembership/events/onCommunityLeft.ts +1 -1
  177. package/src/communityRepository/communityMembership/events/onCommunityUserAdded.ts +1 -1
  178. package/src/communityRepository/communityMembership/events/onCommunityUserBanned.ts +1 -1
  179. package/src/communityRepository/communityMembership/events/onCommunityUserChanged.ts +1 -1
  180. package/src/communityRepository/communityMembership/events/onCommunityUserRemoved.ts +1 -1
  181. package/src/communityRepository/communityMembership/events/onCommunityUserRoleAdded.ts +1 -1
  182. package/src/communityRepository/communityMembership/events/onCommunityUserRoleRemoved.ts +1 -1
  183. package/src/communityRepository/communityMembership/events/onCommunityUserUnbanned.ts +1 -1
  184. package/src/communityRepository/communityMembership/events/onLocalCommunityJoined.ts +1 -1
  185. package/src/communityRepository/communityMembership/events/onLocalCommunityLeft.ts +1 -1
  186. package/src/communityRepository/communityMembership/events/onLocalCommunityUserAdded.ts +1 -1
  187. package/src/communityRepository/communityMembership/events/onLocalCommunityUserRemoved.ts +1 -1
  188. package/src/communityRepository/communityMembership/events/onUserDeleted.ts +3 -1
  189. package/src/communityRepository/communityMembership/events/utils.ts +2 -2
  190. package/src/communityRepository/communityMembership/observers/getMembers/CommunityMembersQueryStreamController.ts +8 -2
  191. package/src/communityRepository/communityMembership/observers/searchMembers/SearchCommunityMembersQueryStreamController.ts +8 -2
  192. package/src/communityRepository/communityModeration/events/onLocalCommunityRoleAdded.ts +1 -1
  193. package/src/communityRepository/communityModeration/events/onLocalCommunityRoleRemoved.ts +1 -1
  194. package/src/communityRepository/events/onCommunityCreated.ts +1 -1
  195. package/src/communityRepository/events/onCommunityDeleted.ts +1 -1
  196. package/src/communityRepository/events/onCommunityUpdated.ts +1 -1
  197. package/src/communityRepository/events/utils.ts +1 -1
  198. package/src/communityRepository/observers/getCommunities/CommunitiesQueryStreamController.ts +2 -2
  199. package/src/communityRepository/observers/getRecommendedCommunities/RecommendedCommunitiesQueryStreamController.ts +2 -2
  200. package/src/communityRepository/observers/getTrendingCommunities/TrendingCommunitiesQueryStreamController.ts +2 -2
  201. package/src/communityRepository/observers/searchCommunities/SearchCommunitiesQueryStreamController.ts +2 -2
  202. package/src/communityRepository/observers/semanticSearch/SemanticSearchCommunityQueryStreamController.ts +2 -2
  203. package/src/communityRepository/utils/communityWithMembership.ts +8 -4
  204. package/src/communityRepository/utils/payload.ts +1 -1
  205. package/src/core/liveCollection/PaginationController.ts +1 -1
  206. package/src/core/liveCollection/PaginationNoPageController.ts +1 -1
  207. package/src/core/model/idResolvers.ts +2 -0
  208. package/src/core/model/index.ts +2 -0
  209. package/src/index.ts +2 -0
  210. package/src/invitationRepository/events/index.ts +3 -0
  211. package/src/invitationRepository/events/onLocalInvitationCreated.ts +33 -0
  212. package/src/invitationRepository/events/onLocalInvitationDeleted.ts +33 -0
  213. package/src/invitationRepository/events/onLocalInvitationUpdated.ts +33 -0
  214. package/src/invitationRepository/index.ts +2 -0
  215. package/src/invitationRepository/internalApi/acceptInvitation.ts +45 -0
  216. package/src/invitationRepository/internalApi/cancelInvitation.ts +44 -0
  217. package/src/invitationRepository/internalApi/createInvitations.ts +52 -0
  218. package/src/invitationRepository/internalApi/getInvitation.ts +47 -0
  219. package/src/invitationRepository/internalApi/index.ts +4 -0
  220. package/src/invitationRepository/internalApi/rejectInvitation.ts +45 -0
  221. package/src/invitationRepository/observers/getInvitations/InvitationsLiveCollectionController.ts +148 -0
  222. package/src/invitationRepository/observers/getInvitations/InvitationsPaginationController.ts +19 -0
  223. package/src/invitationRepository/observers/getInvitations/InvitationsQueryStreamController.ts +97 -0
  224. package/src/invitationRepository/observers/getInvitations/enums.ts +5 -0
  225. package/src/invitationRepository/observers/getInvitations.ts +44 -0
  226. package/src/invitationRepository/observers/getMyCommunityInvitations.ts +48 -0
  227. package/src/invitationRepository/observers/getMyInvitations/MyInvitationsLiveCollectionController.ts +148 -0
  228. package/src/invitationRepository/observers/getMyInvitations/MyInvitationsPaginationController.ts +22 -0
  229. package/src/invitationRepository/observers/getMyInvitations/MyInvitationsQueryStreamController.ts +105 -0
  230. package/src/invitationRepository/observers/index.ts +1 -0
  231. package/src/invitationRepository/utils/convertRawInvitationToInternalInvitation.ts +8 -0
  232. package/src/invitationRepository/utils/index.ts +1 -0
  233. package/src/invitationRepository/utils/prepareInvitationPayload.ts +12 -0
  234. package/src/invitationRepository/utils/prepareMyInvitationsPayload.ts +12 -0
  235. package/src/messagePreview/utils/getChannelMessagePreviewWithUser.ts +3 -3
  236. package/src/messageRepository/api/flagMessage.ts +7 -5
  237. package/src/postRepository/api/flagPost.ts +19 -3
  238. package/src/utils/linkedObject/communityLinkedObject.ts +36 -0
  239. package/src/utils/linkedObject/index.ts +4 -0
  240. package/src/utils/linkedObject/invitationLinkedObject.ts +44 -0

There are too many changes on this page to be displayed.


The amount of changes on this page would crash your brower.

You can still verify the content by downloading the package file manually.