@amityco/ts-sdk 6.12.2-d74459e.0 → 6.12.2-e855934.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 (290) hide show
  1. package/README.md +8 -9
  2. package/dist/@types/core/marker.d.ts +4 -4
  3. package/dist/@types/core/marker.d.ts.map +1 -1
  4. package/dist/@types/core/model.d.ts +4 -4
  5. package/dist/@types/core/model.d.ts.map +1 -1
  6. package/dist/@types/core/payload.d.ts +17 -17
  7. package/dist/@types/core/payload.d.ts.map +1 -1
  8. package/dist/@types/domains/block.d.ts +1 -1
  9. package/dist/@types/domains/block.d.ts.map +1 -1
  10. package/dist/@types/domains/category.d.ts +5 -2
  11. package/dist/@types/domains/category.d.ts.map +1 -1
  12. package/dist/@types/domains/client.d.ts +3 -3
  13. package/dist/@types/domains/client.d.ts.map +1 -1
  14. package/dist/@types/domains/comment.d.ts +1 -1
  15. package/dist/@types/domains/comment.d.ts.map +1 -1
  16. package/dist/@types/domains/community.d.ts +4 -4
  17. package/dist/@types/domains/community.d.ts.map +1 -1
  18. package/dist/@types/domains/follow.d.ts +4 -4
  19. package/dist/@types/domains/follow.d.ts.map +1 -1
  20. package/dist/@types/domains/group.d.ts +2 -2
  21. package/dist/@types/domains/group.d.ts.map +1 -1
  22. package/dist/@types/domains/messagePreview.d.ts +2 -2
  23. package/dist/@types/domains/messagePreview.d.ts.map +1 -1
  24. package/dist/@types/domains/poll.d.ts +1 -1
  25. package/dist/@types/domains/poll.d.ts.map +1 -1
  26. package/dist/@types/domains/post.d.ts +1 -1
  27. package/dist/@types/domains/post.d.ts.map +1 -1
  28. package/dist/@types/domains/reaction.d.ts +1 -1
  29. package/dist/@types/domains/reaction.d.ts.map +1 -1
  30. package/dist/@types/domains/stream.d.ts +2 -2
  31. package/dist/@types/domains/stream.d.ts.map +1 -1
  32. package/dist/@types/domains/user.d.ts +7 -3
  33. package/dist/@types/domains/user.d.ts.map +1 -1
  34. package/dist/cache/api/pushToCache.d.ts +1 -1
  35. package/dist/cache/api/upsertInCache.d.ts +1 -1
  36. package/dist/categoryRepository/api/getCategory.d.ts.map +1 -1
  37. package/dist/categoryRepository/api/queryCategories.d.ts.map +1 -1
  38. package/dist/categoryRepository/observers/getCategories.d.ts.map +1 -1
  39. package/dist/channelRepsitory/channelMembership/api/addMembers.d.ts +4 -4
  40. package/dist/channelRepsitory/channelMembership/api/addMembers.d.ts.map +1 -1
  41. package/dist/channelRepsitory/channelMembership/api/removeMembers.d.ts +4 -4
  42. package/dist/channelRepsitory/channelMembership/api/removeMembers.d.ts.map +1 -1
  43. package/dist/channelRepsitory/channelModeration/api/addRole.d.ts +4 -4
  44. package/dist/channelRepsitory/channelModeration/api/addRole.d.ts.map +1 -1
  45. package/dist/channelRepsitory/channelModeration/api/banMembers.d.ts +2 -2
  46. package/dist/channelRepsitory/channelModeration/api/banMembers.d.ts.map +1 -1
  47. package/dist/channelRepsitory/channelModeration/api/removeRole.d.ts +4 -4
  48. package/dist/channelRepsitory/channelModeration/api/removeRole.d.ts.map +1 -1
  49. package/dist/channelRepsitory/channelModeration/api/unbanMembers.d.ts +2 -2
  50. package/dist/channelRepsitory/channelModeration/api/unbanMembers.d.ts.map +1 -1
  51. package/dist/channelRepsitory/events/onChannelMemberAdded.d.ts +1 -1
  52. package/dist/channelRepsitory/events/onChannelMemberBanned.d.ts +1 -1
  53. package/dist/channelRepsitory/events/onChannelMemberRemoved.d.ts +1 -1
  54. package/dist/channelRepsitory/events/onChannelMemberUnbanned.d.ts +1 -1
  55. package/dist/channelRepsitory/observers/tests/getChannel.test.d.ts +2 -0
  56. package/dist/channelRepsitory/observers/tests/getChannel.test.d.ts.map +1 -0
  57. package/dist/client/api/getToken.d.ts +3 -3
  58. package/dist/client/api/getToken.d.ts.map +1 -1
  59. package/dist/client/utils/setClientToken.d.ts +1 -1
  60. package/dist/communityRepository/communityMembership/api/addMembers.d.ts +4 -4
  61. package/dist/communityRepository/communityMembership/api/addMembers.d.ts.map +1 -1
  62. package/dist/communityRepository/communityMembership/api/removeMembers.d.ts +4 -4
  63. package/dist/communityRepository/communityMembership/api/removeMembers.d.ts.map +1 -1
  64. package/dist/communityRepository/communityModeration/api/addRoles.d.ts +4 -4
  65. package/dist/communityRepository/communityModeration/api/addRoles.d.ts.map +1 -1
  66. package/dist/communityRepository/communityModeration/api/banMembers.d.ts +2 -2
  67. package/dist/communityRepository/communityModeration/api/banMembers.d.ts.map +1 -1
  68. package/dist/communityRepository/communityModeration/api/removeRoles.d.ts +4 -4
  69. package/dist/communityRepository/communityModeration/api/removeRoles.d.ts.map +1 -1
  70. package/dist/communityRepository/communityModeration/api/unbanMembers.d.ts +2 -2
  71. package/dist/communityRepository/communityModeration/api/unbanMembers.d.ts.map +1 -1
  72. package/dist/core/device.d.ts +1 -1
  73. package/dist/core/device.d.ts.map +1 -1
  74. package/dist/core/query/filtering.d.ts +2 -2
  75. package/dist/core/query/filtering.d.ts.map +1 -1
  76. package/dist/external/api/createUserToken.d.ts +2 -2
  77. package/dist/external/api/createUserToken.d.ts.map +1 -1
  78. package/dist/group/utils/withUser.d.ts +3 -3
  79. package/dist/group/utils/withUser.d.ts.map +1 -1
  80. package/dist/index.cjs.js +206 -126
  81. package/dist/index.esm.js +206 -126
  82. package/dist/index.umd.js +4 -4
  83. package/dist/messagePreview/utils/getChannelMessagePreviewWithUser.d.ts +1 -1
  84. package/dist/messagePreview/utils/getSubChannelMessagePreviewWithUser.d.ts +1 -1
  85. package/dist/messageRepository/api/getDeliveredUsers.d.ts +6 -6
  86. package/dist/messageRepository/api/getDeliveredUsers.d.ts.map +1 -1
  87. package/dist/messageRepository/api/getReadUsers.d.ts +6 -6
  88. package/dist/messageRepository/api/getReadUsers.d.ts.map +1 -1
  89. package/dist/streamRepository/api/getStreams.d.ts +1 -1
  90. package/dist/streamRepository/api/getStreams.d.ts.map +1 -1
  91. package/dist/streamRepository/api/queryStreams.d.ts +1 -1
  92. package/dist/streamRepository/api/queryStreams.d.ts.map +1 -1
  93. package/dist/userRepository/api/flagUser.d.ts +1 -1
  94. package/dist/userRepository/api/flagUser.d.ts.map +1 -1
  95. package/dist/userRepository/api/getUser.d.ts.map +1 -1
  96. package/dist/userRepository/api/getUserByIds.d.ts +1 -1
  97. package/dist/userRepository/api/getUserByIds.d.ts.map +1 -1
  98. package/dist/userRepository/api/isUserFlaggedByMe.d.ts +1 -1
  99. package/dist/userRepository/api/isUserFlaggedByMe.d.ts.map +1 -1
  100. package/dist/userRepository/api/queryBlockedUsers.d.ts +5 -5
  101. package/dist/userRepository/api/queryBlockedUsers.d.ts.map +1 -1
  102. package/dist/userRepository/api/queryUsers.d.ts +6 -6
  103. package/dist/userRepository/api/queryUsers.d.ts.map +1 -1
  104. package/dist/userRepository/api/unflagUser.d.ts +1 -1
  105. package/dist/userRepository/api/unflagUser.d.ts.map +1 -1
  106. package/dist/userRepository/api/updateUser.d.ts +4 -4
  107. package/dist/userRepository/api/updateUser.d.ts.map +1 -1
  108. package/dist/userRepository/events/onUserDeleted.d.ts +2 -2
  109. package/dist/userRepository/events/onUserDeleted.d.ts.map +1 -1
  110. package/dist/userRepository/events/onUserFetched.d.ts +2 -2
  111. package/dist/userRepository/events/onUserFetched.d.ts.map +1 -1
  112. package/dist/userRepository/events/onUserFlagCleared.d.ts +2 -2
  113. package/dist/userRepository/events/onUserFlagCleared.d.ts.map +1 -1
  114. package/dist/userRepository/events/onUserFlagged.d.ts +2 -2
  115. package/dist/userRepository/events/onUserFlagged.d.ts.map +1 -1
  116. package/dist/userRepository/events/onUserUnflagged.d.ts +2 -2
  117. package/dist/userRepository/events/onUserUnflagged.d.ts.map +1 -1
  118. package/dist/userRepository/events/onUserUpdated.d.ts +2 -2
  119. package/dist/userRepository/events/onUserUpdated.d.ts.map +1 -1
  120. package/dist/userRepository/events/utils.d.ts +1 -1
  121. package/dist/userRepository/events/utils.d.ts.map +1 -1
  122. package/dist/userRepository/observers/getBlockedUsers.d.ts +4 -4
  123. package/dist/userRepository/observers/getBlockedUsers.d.ts.map +1 -1
  124. package/dist/userRepository/observers/getUser.d.ts +2 -2
  125. package/dist/userRepository/observers/getUser.d.ts.map +1 -1
  126. package/dist/userRepository/observers/getUsers.d.ts.map +1 -1
  127. package/dist/userRepository/observers/observeUser.d.ts +2 -2
  128. package/dist/userRepository/observers/observeUser.d.ts.map +1 -1
  129. package/dist/userRepository/observers/searchUserByDisplayName.d.ts +2 -2
  130. package/dist/userRepository/observers/searchUserByDisplayName.d.ts.map +1 -1
  131. package/dist/userRepository/relationship/block/api/blockUser.d.ts +4 -4
  132. package/dist/userRepository/relationship/block/api/blockUser.d.ts.map +1 -1
  133. package/dist/userRepository/relationship/block/api/unBlockUser.d.ts +4 -4
  134. package/dist/userRepository/relationship/block/api/unBlockUser.d.ts.map +1 -1
  135. package/dist/userRepository/relationship/block/observers/getBlockedUsers.d.ts +1 -1
  136. package/dist/userRepository/relationship/block/observers/getBlockedUsers.d.ts.map +1 -1
  137. package/dist/userRepository/relationship/follow/api/acceptFollower.d.ts +2 -2
  138. package/dist/userRepository/relationship/follow/api/acceptFollower.d.ts.map +1 -1
  139. package/dist/userRepository/relationship/follow/api/acceptMyFollower.d.ts +2 -2
  140. package/dist/userRepository/relationship/follow/api/acceptMyFollower.d.ts.map +1 -1
  141. package/dist/userRepository/relationship/follow/api/declineFollower.d.ts +2 -2
  142. package/dist/userRepository/relationship/follow/api/declineFollower.d.ts.map +1 -1
  143. package/dist/userRepository/relationship/follow/api/declineMyFollower.d.ts +2 -2
  144. package/dist/userRepository/relationship/follow/api/declineMyFollower.d.ts.map +1 -1
  145. package/dist/userRepository/relationship/follow/api/follow.d.ts +2 -2
  146. package/dist/userRepository/relationship/follow/api/follow.d.ts.map +1 -1
  147. package/dist/userRepository/relationship/follow/api/getFollowInfo.d.ts +4 -4
  148. package/dist/userRepository/relationship/follow/api/getFollowInfo.d.ts.map +1 -1
  149. package/dist/userRepository/relationship/follow/api/unfollow.d.ts +3 -3
  150. package/dist/userRepository/relationship/follow/api/unfollow.d.ts.map +1 -1
  151. package/dist/userRepository/relationship/follow/api/utils.d.ts +1 -1
  152. package/dist/userRepository/relationship/follow/api/utils.d.ts.map +1 -1
  153. package/dist/userRepository/relationship/follow/observers/getFollowers.d.ts +1 -1
  154. package/dist/userRepository/relationship/follow/observers/getFollowings.d.ts +1 -1
  155. package/dist/userRepository/relationship/follow/observers/observeFollowInfo.d.ts +1 -1
  156. package/dist/userRepository/relationship/follow/observers/observeFollowInfo.d.ts.map +1 -1
  157. package/dist/userRepository/relationship/follow/observers/observeFollowers.d.ts +2 -2
  158. package/dist/userRepository/relationship/follow/observers/observeFollowers.d.ts.map +1 -1
  159. package/dist/userRepository/relationship/follow/observers/observeFollowings.d.ts +2 -2
  160. package/dist/userRepository/relationship/follow/observers/observeFollowings.d.ts.map +1 -1
  161. package/dist/utils/linkedObject/categoryLinkedObject.d.ts +2 -0
  162. package/dist/utils/linkedObject/categoryLinkedObject.d.ts.map +1 -0
  163. package/dist/utils/linkedObject/index.d.ts +2 -0
  164. package/dist/utils/linkedObject/index.d.ts.map +1 -1
  165. package/dist/utils/linkedObject/userLinkedObject.d.ts +2 -0
  166. package/dist/utils/linkedObject/userLinkedObject.d.ts.map +1 -0
  167. package/dist/utils/tests/client.d.ts.map +1 -1
  168. package/dist/utils/tests/dummy/block.d.ts +4 -4
  169. package/dist/utils/tests/dummy/block.d.ts.map +1 -1
  170. package/dist/utils/tests/dummy/category.d.ts +7 -0
  171. package/dist/utils/tests/dummy/category.d.ts.map +1 -1
  172. package/dist/utils/tests/dummy/channel.d.ts +11 -1
  173. package/dist/utils/tests/dummy/channel.d.ts.map +1 -1
  174. package/dist/utils/tests/dummy/comment.d.ts +6 -6
  175. package/dist/utils/tests/dummy/follow.d.ts +1 -1
  176. package/dist/utils/tests/dummy/follow.d.ts.map +1 -1
  177. package/dist/utils/tests/dummy/user.d.ts +5 -1
  178. package/dist/utils/tests/dummy/user.d.ts.map +1 -1
  179. package/package.json +1 -1
  180. package/src/@types/core/marker.ts +4 -4
  181. package/src/@types/core/model.ts +4 -4
  182. package/src/@types/core/payload.ts +17 -17
  183. package/src/@types/domains/block.ts +1 -1
  184. package/src/@types/domains/category.ts +6 -2
  185. package/src/@types/domains/client.ts +3 -3
  186. package/src/@types/domains/comment.ts +1 -1
  187. package/src/@types/domains/community.ts +4 -4
  188. package/src/@types/domains/follow.ts +4 -4
  189. package/src/@types/domains/group.ts +2 -2
  190. package/src/@types/domains/messagePreview.ts +2 -2
  191. package/src/@types/domains/poll.ts +1 -1
  192. package/src/@types/domains/post.ts +1 -1
  193. package/src/@types/domains/reaction.ts +1 -1
  194. package/src/@types/domains/stream.ts +2 -2
  195. package/src/@types/domains/user.ts +8 -3
  196. package/src/cache/api/pushToCache.ts +1 -1
  197. package/src/cache/api/upsertInCache.ts +1 -1
  198. package/src/categoryRepository/api/getCategory.ts +3 -2
  199. package/src/categoryRepository/api/queryCategories.ts +7 -1
  200. package/src/categoryRepository/observers/getCategories.ts +3 -2
  201. package/src/categoryRepository/observers/tests/getCategories.test.ts +2 -1
  202. package/src/channelRepsitory/api/createChannel.ts +1 -1
  203. package/src/channelRepsitory/channelMembership/api/addMembers.ts +4 -4
  204. package/src/channelRepsitory/channelMembership/api/removeMembers.ts +4 -4
  205. package/src/channelRepsitory/channelMembership/observers/tests/getMembers.test.ts +1 -1
  206. package/src/channelRepsitory/channelMembership/observers/tests/searchMembers.test.ts +1 -3
  207. package/src/channelRepsitory/channelModeration/api/addRole.ts +4 -4
  208. package/src/channelRepsitory/channelModeration/api/banMembers.ts +2 -2
  209. package/src/channelRepsitory/channelModeration/api/removeRole.ts +4 -4
  210. package/src/channelRepsitory/channelModeration/api/unbanMembers.ts +2 -2
  211. package/src/channelRepsitory/events/onChannelMemberAdded.ts +1 -1
  212. package/src/channelRepsitory/events/onChannelMemberBanned.ts +1 -1
  213. package/src/channelRepsitory/events/onChannelMemberRemoved.ts +1 -1
  214. package/src/channelRepsitory/events/onChannelMemberUnbanned.ts +1 -1
  215. package/src/channelRepsitory/observers/tests/getChannel.test.ts +73 -0
  216. package/src/channelRepsitory/observers/tests/getChannels.test.ts +462 -50
  217. package/src/client/api/getToken.ts +3 -3
  218. package/src/client/api/login.ts +1 -1
  219. package/src/communityRepository/communityMembership/api/addMembers.ts +4 -4
  220. package/src/communityRepository/communityMembership/api/removeMembers.ts +4 -4
  221. package/src/communityRepository/communityMembership/events/utils.ts +2 -2
  222. package/src/communityRepository/communityMembership/observers/tests/getMembers.test.ts +1 -1
  223. package/src/communityRepository/communityModeration/api/addRoles.ts +4 -4
  224. package/src/communityRepository/communityModeration/api/banMembers.ts +2 -2
  225. package/src/communityRepository/communityModeration/api/removeRoles.ts +4 -4
  226. package/src/communityRepository/communityModeration/api/unbanMembers.ts +2 -2
  227. package/src/core/device.ts +1 -1
  228. package/src/core/query/filtering.ts +3 -1
  229. package/src/core/query/tests/filtering.test.ts +2 -2
  230. package/src/external/api/createUserToken.ts +2 -2
  231. package/src/group/utils/withUser.ts +8 -4
  232. package/src/liveStreamPlayer/api/getPlayer.ts +1 -1
  233. package/src/messagePreview/utils/getChannelMessagePreviewWithUser.ts +1 -1
  234. package/src/messagePreview/utils/getSubChannelMessagePreviewWithUser.ts +1 -1
  235. package/src/messageRepository/api/getDeliveredUsers.ts +11 -9
  236. package/src/messageRepository/api/getReadUsers.ts +11 -9
  237. package/src/messageRepository/observers/tests/getMessages.test.ts +766 -0
  238. package/src/streamRepository/api/getStreams.ts +1 -1
  239. package/src/streamRepository/api/queryStreams.ts +1 -1
  240. package/src/subChannelRepository/observers/tests/getSubChannels.test.ts +308 -15
  241. package/src/userRepository/api/flagUser.ts +1 -1
  242. package/src/userRepository/api/getUser.ts +2 -1
  243. package/src/userRepository/api/getUserByIds.ts +4 -3
  244. package/src/userRepository/api/isUserFlaggedByMe.ts +1 -1
  245. package/src/userRepository/api/queryBlockedUsers.ts +10 -8
  246. package/src/userRepository/api/queryUsers.ts +12 -10
  247. package/src/userRepository/api/unflagUser.ts +1 -1
  248. package/src/userRepository/api/updateUser.ts +6 -6
  249. package/src/userRepository/events/onUserDeleted.ts +2 -2
  250. package/src/userRepository/events/onUserFetched.ts +2 -2
  251. package/src/userRepository/events/onUserFlagCleared.ts +2 -2
  252. package/src/userRepository/events/onUserFlagged.ts +2 -2
  253. package/src/userRepository/events/onUserUnflagged.ts +2 -2
  254. package/src/userRepository/events/onUserUpdated.ts +2 -2
  255. package/src/userRepository/events/utils.ts +1 -1
  256. package/src/userRepository/observers/getBlockedUsers.ts +8 -7
  257. package/src/userRepository/observers/getUser.ts +3 -3
  258. package/src/userRepository/observers/getUsers.ts +2 -2
  259. package/src/userRepository/observers/observeUser.ts +9 -6
  260. package/src/userRepository/observers/searchUserByDisplayName.ts +2 -2
  261. package/src/userRepository/observers/tests/getUser.test.ts +1 -1
  262. package/src/userRepository/observers/tests/getUsers.test.ts +12 -11
  263. package/src/userRepository/observers/tests/searchUserByDisplayName.test.ts +1 -1
  264. package/src/userRepository/relationship/block/api/blockUser.ts +6 -4
  265. package/src/userRepository/relationship/block/api/unBlockUser.ts +6 -4
  266. package/src/userRepository/relationship/block/observers/getBlockedUsers.ts +1 -1
  267. package/src/userRepository/relationship/follow/api/acceptFollower.ts +2 -2
  268. package/src/userRepository/relationship/follow/api/acceptMyFollower.ts +2 -2
  269. package/src/userRepository/relationship/follow/api/declineFollower.ts +2 -2
  270. package/src/userRepository/relationship/follow/api/declineMyFollower.ts +2 -2
  271. package/src/userRepository/relationship/follow/api/follow.ts +2 -2
  272. package/src/userRepository/relationship/follow/api/getFollowInfo.ts +4 -4
  273. package/src/userRepository/relationship/follow/api/unfollow.ts +3 -3
  274. package/src/userRepository/relationship/follow/api/utils.ts +1 -1
  275. package/src/userRepository/relationship/follow/observers/getFollowers.ts +1 -1
  276. package/src/userRepository/relationship/follow/observers/getFollowings.ts +1 -1
  277. package/src/userRepository/relationship/follow/observers/observeFollowInfo.ts +1 -1
  278. package/src/userRepository/relationship/follow/observers/observeFollowers.ts +2 -2
  279. package/src/userRepository/relationship/follow/observers/observeFollowings.ts +2 -2
  280. package/src/utils/linkedObject/categoryLinkedObject.ts +40 -0
  281. package/src/utils/linkedObject/index.ts +4 -0
  282. package/src/utils/linkedObject/userLinkedObject.ts +36 -0
  283. package/src/utils/tests/client.ts +1 -0
  284. package/src/utils/tests/dummy/block.ts +3 -3
  285. package/src/utils/tests/dummy/category.ts +5 -0
  286. package/src/utils/tests/dummy/channel.ts +58 -1
  287. package/src/utils/tests/dummy/community.ts +1 -1
  288. package/src/utils/tests/dummy/follow.ts +1 -1
  289. package/src/utils/tests/dummy/user.ts +3 -1
  290. package/tsconfig.json +18 -23
@@ -1 +1 @@
1
- {"version":3,"file":"getBlockedUsers.d.ts","sourceRoot":"","sources":["../../../../../src/userRepository/relationship/block/observers/getBlockedUsers.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,eAAe,WAClB,MAAM,0BAA0B,YAC9B,MAAM,sBAAsB,CAAC,MAAM,IAAI,CAAC,WACzC,MAAM,oBAAoB,uBAMpC,CAAC"}
1
+ {"version":3,"file":"getBlockedUsers.d.ts","sourceRoot":"","sources":["../../../../../src/userRepository/relationship/block/observers/getBlockedUsers.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,eAAe,WAClB,MAAM,0BAA0B,YAC9B,MAAM,sBAAsB,CAAC,MAAM,YAAY,CAAC,WACjD,MAAM,oBAAoB,uBAMpC,CAAC"}
@@ -9,11 +9,11 @@
9
9
  *
10
10
  * Accept the follow request
11
11
  *
12
- * @param userId the ID of the {@link Amity.User} follower
12
+ * @param userId the ID of the {@link Amity.InternalUser} follower
13
13
  * @returns A success boolean if the follow request was accepted
14
14
  *
15
15
  * @category Follow API
16
16
  * @async
17
17
  */
18
- export declare const acceptFollower: (userId: Amity.User['userId']) => Promise<boolean>;
18
+ export declare const acceptFollower: (userId: Amity.InternalUser['userId']) => Promise<boolean>;
19
19
  //# sourceMappingURL=acceptFollower.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"acceptFollower.d.ts","sourceRoot":"","sources":["../../../../../src/userRepository/relationship/follow/api/acceptFollower.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,cAAc,WAAkB,MAAM,IAAI,CAAC,QAAQ,CAAC,KAAG,QAAQ,OAAO,CAelF,CAAC"}
1
+ {"version":3,"file":"acceptFollower.d.ts","sourceRoot":"","sources":["../../../../../src/userRepository/relationship/follow/api/acceptFollower.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,cAAc,WAAkB,MAAM,YAAY,CAAC,QAAQ,CAAC,KAAG,QAAQ,OAAO,CAe1F,CAAC"}
@@ -6,11 +6,11 @@
6
6
  *
7
7
  * Accept the follow request
8
8
  *
9
- * @param userId the ID of the {@link Amity.User} follower
9
+ * @param userId the ID of the {@link Amity.InternalUser} follower
10
10
  * @returns A success boolean if the follow request was accepted
11
11
  *
12
12
  * @category Follow API
13
13
  * @async
14
14
  */
15
- export declare const acceptMyFollower: (userId: Amity.User['userId']) => Promise<boolean>;
15
+ export declare const acceptMyFollower: (userId: Amity.InternalUser['userId']) => Promise<boolean>;
16
16
  //# sourceMappingURL=acceptMyFollower.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"acceptMyFollower.d.ts","sourceRoot":"","sources":["../../../../../src/userRepository/relationship/follow/api/acceptMyFollower.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,gBAAgB,WAAkB,MAAM,IAAI,CAAC,QAAQ,CAAC,KAAG,QAAQ,OAAO,CAepF,CAAC"}
1
+ {"version":3,"file":"acceptMyFollower.d.ts","sourceRoot":"","sources":["../../../../../src/userRepository/relationship/follow/api/acceptMyFollower.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,gBAAgB,WAAkB,MAAM,YAAY,CAAC,QAAQ,CAAC,KAAG,QAAQ,OAAO,CAe5F,CAAC"}
@@ -9,11 +9,11 @@
9
9
  *
10
10
  * Decline the follow request or delete the follower
11
11
  *
12
- * @param userId the ID of the {@link Amity.User} follower
12
+ * @param userId the ID of the {@link Amity.InternalUser} follower
13
13
  * @returns A success boolean if the follow request was decline
14
14
  *
15
15
  * @category Follow API
16
16
  * @async
17
17
  */
18
- export declare const declineFollower: (userId: Amity.User['userId']) => Promise<boolean>;
18
+ export declare const declineFollower: (userId: Amity.InternalUser['userId']) => Promise<boolean>;
19
19
  //# sourceMappingURL=declineFollower.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"declineFollower.d.ts","sourceRoot":"","sources":["../../../../../src/userRepository/relationship/follow/api/declineFollower.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,eAAe,WAAkB,MAAM,IAAI,CAAC,QAAQ,CAAC,KAAG,QAAQ,OAAO,CAenF,CAAC"}
1
+ {"version":3,"file":"declineFollower.d.ts","sourceRoot":"","sources":["../../../../../src/userRepository/relationship/follow/api/declineFollower.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,eAAe,WAAkB,MAAM,YAAY,CAAC,QAAQ,CAAC,KAAG,QAAQ,OAAO,CAe3F,CAAC"}
@@ -6,11 +6,11 @@
6
6
  *
7
7
  * Decline the follow request or delete the follower
8
8
  *
9
- * @param userId the ID of the {@link Amity.User} follower
9
+ * @param userId the ID of the {@link Amity.InternalUser} follower
10
10
  * @returns A success boolean if the follow request was decline
11
11
  *
12
12
  * @category Follow API
13
13
  * @async
14
14
  */
15
- export declare const declineMyFollower: (userId: Amity.User['userId']) => Promise<boolean>;
15
+ export declare const declineMyFollower: (userId: Amity.InternalUser['userId']) => Promise<boolean>;
16
16
  //# sourceMappingURL=declineMyFollower.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"declineMyFollower.d.ts","sourceRoot":"","sources":["../../../../../src/userRepository/relationship/follow/api/declineMyFollower.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,iBAAiB,WAAkB,MAAM,IAAI,CAAC,QAAQ,CAAC,KAAG,QAAQ,OAAO,CAerF,CAAC"}
1
+ {"version":3,"file":"declineMyFollower.d.ts","sourceRoot":"","sources":["../../../../../src/userRepository/relationship/follow/api/declineMyFollower.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,iBAAiB,WAAkB,MAAM,YAAY,CAAC,QAAQ,CAAC,KAAG,QAAQ,OAAO,CAe7F,CAAC"}
@@ -6,11 +6,11 @@
6
6
  *
7
7
  * Follow the user
8
8
  *
9
- * @param userId the ID of the {@link Amity.User}
9
+ * @param userId the ID of the {@link Amity.InternalUser}
10
10
  * @returns the status {@link Amity.FollowStatus}
11
11
  *
12
12
  * @category Follow API
13
13
  * @async
14
14
  */
15
- export declare const follow: (userId: Amity.User['userId']) => Promise<Amity.Cached<Amity.FollowStatus>>;
15
+ export declare const follow: (userId: Amity.InternalUser['userId']) => Promise<Amity.Cached<Amity.FollowStatus>>;
16
16
  //# sourceMappingURL=follow.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"follow.d.ts","sourceRoot":"","sources":["../../../../../src/userRepository/relationship/follow/api/follow.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,MAAM,WACT,MAAM,IAAI,CAAC,QAAQ,CAAC,KAC3B,QAAQ,MAAM,MAAM,CAAC,MAAM,YAAY,CAAC,CAoB1C,CAAC"}
1
+ {"version":3,"file":"follow.d.ts","sourceRoot":"","sources":["../../../../../src/userRepository/relationship/follow/api/follow.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,MAAM,WACT,MAAM,YAAY,CAAC,QAAQ,CAAC,KACnC,QAAQ,MAAM,MAAM,CAAC,MAAM,YAAY,CAAC,CAoB1C,CAAC"}
@@ -6,14 +6,14 @@
6
6
  *
7
7
  * Fetches the number of followers, followings, pending requests and the follow status for current user
8
8
  *
9
- * @param userId the ID of the {@link Amity.User}
9
+ * @param userId the ID of the {@link Amity.InternalUser}
10
10
  * @returns the associated {@link Amity.FollowInfo} object
11
11
  *
12
12
  * @category Follow API
13
13
  * @async
14
14
  */
15
15
  export declare const getFollowInfo: {
16
- (userId: Amity.User['userId']): Promise<Amity.Cached<Amity.FollowInfo>>;
16
+ (userId: Amity.InternalUser['userId']): Promise<Amity.Cached<Amity.FollowInfo>>;
17
17
  /**
18
18
  * ```js
19
19
  * import { getFollowInfo } from '@amityco/ts-sdk'
@@ -22,11 +22,11 @@ export declare const getFollowInfo: {
22
22
  *
23
23
  * Fetches the number of followers, followings, pending requests and the follow status for current user from cache
24
24
  *
25
- * @param userId the ID of the {@link Amity.User}
25
+ * @param userId the ID of the {@link Amity.InternalUser}
26
26
  * @returns the associated {@link Amity.FollowInfo} object
27
27
  *
28
28
  * @category Follow API
29
29
  */
30
- locally(userId: Amity.User['userId']): Amity.Cached<Amity.FollowInfo> | undefined;
30
+ locally(userId: Amity.InternalUser['userId']): Amity.Cached<Amity.FollowInfo> | undefined;
31
31
  };
32
32
  //# sourceMappingURL=getFollowInfo.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getFollowInfo.d.ts","sourceRoot":"","sources":["../../../../../src/userRepository/relationship/follow/api/getFollowInfo.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,aAAa;aAChB,MAAM,IAAI,CAAC,QAAQ,CAAC,GAC3B,QAAQ,MAAM,MAAM,CAAC,MAAM,UAAU,CAAC,CAAC;IA6B1C;;;;;;;;;;;;OAYG;oBAEO,MAAM,IAAI,CAAC,QAAQ,CAAC,GAC3B,MAAM,MAAM,CAAC,MAAM,UAAU,CAAC,GAAG,SAAS;CAjB5C,CAAC"}
1
+ {"version":3,"file":"getFollowInfo.d.ts","sourceRoot":"","sources":["../../../../../src/userRepository/relationship/follow/api/getFollowInfo.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,aAAa;aAChB,MAAM,YAAY,CAAC,QAAQ,CAAC,GACnC,QAAQ,MAAM,MAAM,CAAC,MAAM,UAAU,CAAC,CAAC;IA6B1C;;;;;;;;;;;;OAYG;oBAEO,MAAM,YAAY,CAAC,QAAQ,CAAC,GACnC,MAAM,MAAM,CAAC,MAAM,UAAU,CAAC,GAAG,SAAS;CAjB5C,CAAC"}
@@ -6,11 +6,11 @@
6
6
  *
7
7
  * Cancel the follow request or unfollow the user
8
8
  *
9
- * @param userId the ID of the {@link Amity.User}
10
- * @returns A success boolean if the user {@link Amity.User} was unfollowed
9
+ * @param userId the ID of the {@link Amity.InternalUser}
10
+ * @returns A success boolean if the user {@link Amity.InternalUser} was unfollowed
11
11
  *
12
12
  * @category Follow API
13
13
  * @async
14
14
  */
15
- export declare const unfollow: (userId: Amity.User['userId']) => Promise<boolean>;
15
+ export declare const unfollow: (userId: Amity.InternalUser['userId']) => Promise<boolean>;
16
16
  //# sourceMappingURL=unfollow.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"unfollow.d.ts","sourceRoot":"","sources":["../../../../../src/userRepository/relationship/follow/api/unfollow.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,QAAQ,WAAkB,MAAM,IAAI,CAAC,QAAQ,CAAC,KAAG,QAAQ,OAAO,CAe5E,CAAC"}
1
+ {"version":3,"file":"unfollow.d.ts","sourceRoot":"","sources":["../../../../../src/userRepository/relationship/follow/api/unfollow.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,QAAQ,WAAkB,MAAM,YAAY,CAAC,QAAQ,CAAC,KAAG,QAAQ,OAAO,CAepF,CAAC"}
@@ -1,6 +1,6 @@
1
1
  export declare const queryFollows: {
2
2
  (key: 'followers' | 'following', query: {
3
- userId: Amity.User['userId'];
3
+ userId: Amity.InternalUser['userId'];
4
4
  status?: Exclude<Amity.FollowStatusType, 'none'>;
5
5
  page?: Amity.PageRaw;
6
6
  }): Promise<Amity.Cached<Amity.Paged<Amity.FollowStatus, Amity.PageRaw>>>;
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/userRepository/relationship/follow/api/utils.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,YAAY;UAClB,WAAW,GAAG,WAAW,SACvB;QACL,MAAM,EAAE,MAAM,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC7B,MAAM,CAAC,EAAE,QAAQ,MAAM,gBAAgB,EAAE,MAAM,CAAC,CAAC;QACjD,IAAI,CAAC,EAAE,MAAM,OAAO,CAAC;KACtB,GACA,QAAQ,MAAM,MAAM,CAAC,MAAM,KAAK,CAAC,MAAM,YAAY,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC;iBAuCjE,WAAW,mBAAmB,CAAC,CAAC,CAAC,CAAC,SAChC,WAAW,mBAAmB,CAAC,CAAC,CAAC,CAAC,GACxC,MAAM,MAAM,CAAC,MAAM,KAAK,CAAC,MAAM,YAAY,EAAE,MAAM,OAAO,CAAC,CAAC,GAAG,SAAS;CAL1E,CAAC"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/userRepository/relationship/follow/api/utils.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,YAAY;UAClB,WAAW,GAAG,WAAW,SACvB;QACL,MAAM,EAAE,MAAM,YAAY,CAAC,QAAQ,CAAC,CAAC;QACrC,MAAM,CAAC,EAAE,QAAQ,MAAM,gBAAgB,EAAE,MAAM,CAAC,CAAC;QACjD,IAAI,CAAC,EAAE,MAAM,OAAO,CAAC;KACtB,GACA,QAAQ,MAAM,MAAM,CAAC,MAAM,KAAK,CAAC,MAAM,YAAY,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC;iBAuCjE,WAAW,mBAAmB,CAAC,CAAC,CAAC,CAAC,SAChC,WAAW,mBAAmB,CAAC,CAAC,CAAC,CAAC,GACxC,MAAM,MAAM,CAAC,MAAM,KAAK,CAAC,MAAM,YAAY,EAAE,MAAM,OAAO,CAAC,CAAC,GAAG,SAAS;CAL1E,CAAC"}
@@ -4,7 +4,7 @@
4
4
  *
5
5
  * let followers = []
6
6
  * const unsub = getFollowers({
7
- * userId: Amity.User['userId'];
7
+ * userId: Amity.InternalUser['userId'];
8
8
  * }, response => merge(followers, response.data))
9
9
  * ```
10
10
  *
@@ -4,7 +4,7 @@
4
4
  *
5
5
  * let followings = []
6
6
  * const unsub = getFollowings({
7
- * userId: Amity.User['userId'];
7
+ * userId: Amity.InternalUser['userId'];
8
8
  * }, response => merge(followings, response.data))
9
9
  * ```
10
10
  *
@@ -14,5 +14,5 @@
14
14
  *
15
15
  * @category Follow Observer
16
16
  */
17
- export declare const observeFollowInfo: <Events extends ["onFetch", "onUpdate"]>(userId: Amity.User['userId'], callback: Amity.ObjectListener<Amity.Snapshot<Amity.FollowInfo>, Events>, policy?: Amity.QueryPolicy) => Amity.Unsubscriber;
17
+ export declare const observeFollowInfo: <Events extends ["onFetch", "onUpdate"]>(userId: Amity.InternalUser['userId'], callback: Amity.ObjectListener<Amity.Snapshot<Amity.FollowInfo>, Events>, policy?: Amity.QueryPolicy) => Amity.Unsubscriber;
18
18
  //# sourceMappingURL=observeFollowInfo.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"observeFollowInfo.d.ts","sourceRoot":"","sources":["../../../../../src/userRepository/relationship/follow/observers/observeFollowInfo.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,iBAAiB,mDACpB,MAAM,IAAI,CAAC,QAAQ,CAAC,qFAEpB,MAAM,WAAW,KACxB,MAAM,YAsCR,CAAC"}
1
+ {"version":3,"file":"observeFollowInfo.d.ts","sourceRoot":"","sources":["../../../../../src/userRepository/relationship/follow/observers/observeFollowInfo.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,iBAAiB,mDACpB,MAAM,YAAY,CAAC,QAAQ,CAAC,qFAE5B,MAAM,WAAW,KACxB,MAAM,YAsCR,CAAC"}
@@ -8,11 +8,11 @@
8
8
  *
9
9
  * Observe all mutations on a list of followers {@link Amity.FollowStatus} for a given user
10
10
  *
11
- * @param userId the ID of the {@link Amity.User}
11
+ * @param userId the ID of the {@link Amity.InternalUser}
12
12
  * @param callback the function to call when new data are available
13
13
  * @returns An {@link Amity.Unsubscriber} function to run when willing to stop observing the messages
14
14
  *
15
15
  * @category Follow Observer
16
16
  */
17
- export declare const observeFollowers: <Events extends ["onRequested", "onAccepted", "onDeclined", "onCanceled", "onFollowed", "onUnfollowed", "onDeleted"]>(userId: Amity.User['userId'], callback: Amity.ObjectListener<Amity.FollowStatus, Events>) => Amity.Unsubscriber;
17
+ export declare const observeFollowers: <Events extends ["onRequested", "onAccepted", "onDeclined", "onCanceled", "onFollowed", "onUnfollowed", "onDeleted"]>(userId: Amity.InternalUser['userId'], callback: Amity.ObjectListener<Amity.FollowStatus, Events>) => Amity.Unsubscriber;
18
18
  //# sourceMappingURL=observeFollowers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"observeFollowers.d.ts","sourceRoot":"","sources":["../../../../../src/userRepository/relationship/follow/observers/observeFollowers.ts"],"names":[],"mappings":"AAYA;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,gBAAgB,gIAWnB,MAAM,IAAI,CAAC,QAAQ,CAAC,iEAE3B,MAAM,YAmCR,CAAC"}
1
+ {"version":3,"file":"observeFollowers.d.ts","sourceRoot":"","sources":["../../../../../src/userRepository/relationship/follow/observers/observeFollowers.ts"],"names":[],"mappings":"AAYA;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,gBAAgB,gIAWnB,MAAM,YAAY,CAAC,QAAQ,CAAC,iEAEnC,MAAM,YAmCR,CAAC"}
@@ -8,11 +8,11 @@
8
8
  *
9
9
  * Observe all mutations on a list of followings {@link Amity.FollowStatus} for a given user
10
10
  *
11
- * @param userId the ID of the {@link Amity.User}
11
+ * @param userId the ID of the {@link Amity.InternalUser}
12
12
  * @param callback the function to call when new data are available
13
13
  * @returns An {@link Amity.Unsubscriber} function to run when willing to stop observing the messages
14
14
  *
15
15
  * @category Follow Observer
16
16
  */
17
- export declare const observeFollowings: <Events extends ["onRequested", "onAccepted", "onDeclined", "onCanceled", "onFollowed", "onUnfollowed", "onDeleted"]>(userId: Amity.User['userId'], callback: Amity.ObjectListener<Amity.FollowStatus, Events>) => Amity.Unsubscriber;
17
+ export declare const observeFollowings: <Events extends ["onRequested", "onAccepted", "onDeclined", "onCanceled", "onFollowed", "onUnfollowed", "onDeleted"]>(userId: Amity.InternalUser['userId'], callback: Amity.ObjectListener<Amity.FollowStatus, Events>) => Amity.Unsubscriber;
18
18
  //# sourceMappingURL=observeFollowings.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"observeFollowings.d.ts","sourceRoot":"","sources":["../../../../../src/userRepository/relationship/follow/observers/observeFollowings.ts"],"names":[],"mappings":"AAYA;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,iBAAiB,gIAWpB,MAAM,IAAI,CAAC,QAAQ,CAAC,iEAE3B,MAAM,YAmCR,CAAC"}
1
+ {"version":3,"file":"observeFollowings.d.ts","sourceRoot":"","sources":["../../../../../src/userRepository/relationship/follow/observers/observeFollowings.ts"],"names":[],"mappings":"AAYA;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,iBAAiB,gIAWpB,MAAM,YAAY,CAAC,QAAQ,CAAC,iEAEnC,MAAM,YAmCR,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const categoryLinkedObject: (category: Amity.InternalCategory) => Amity.Category;
2
+ //# sourceMappingURL=categoryLinkedObject.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"categoryLinkedObject.d.ts","sourceRoot":"","sources":["../../../src/utils/linkedObject/categoryLinkedObject.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB,aAAc,MAAM,gBAAgB,KAAG,MAAM,QAqC7E,CAAC"}
@@ -1,4 +1,6 @@
1
1
  export declare const LinkedObject: {
2
2
  comment: (comment: Amity.InternalComment<any>) => Amity.Comment;
3
+ user: (user: Amity.InternalUser) => Amity.InternalUser;
4
+ category: (category: Amity.InternalCategory) => Amity.Category;
3
5
  };
4
6
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/linkedObject/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY;;CAExB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/linkedObject/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,YAAY;;;;CAIxB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const userLinkedObject: (user: Amity.InternalUser) => Amity.InternalUser;
2
+ //# sourceMappingURL=userLinkedObject.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"userLinkedObject.d.ts","sourceRoot":"","sources":["../../../src/utils/linkedObject/userLinkedObject.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB,SAAU,MAAM,YAAY,KAAG,MAAM,YAiCjE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/utils/tests/client.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,UAAU,YAAS,CAAC;AAYjC,eAAO,MAAM,MAAM,cAA4B,CAAC;AAMhD,eAAO,MAAM,aAAa,qBAuBzB,CAAC;AAEF,eAAO,MAAM,gBAAgB,qBAE5B,CAAC;;AAEF,wBAAkB"}
1
+ {"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/utils/tests/client.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,UAAU,YAAS,CAAC;AAYjC,eAAO,MAAM,MAAM,cAA4B,CAAC;AAMhD,eAAO,MAAM,aAAa,qBAwBzB,CAAC;AAEF,eAAO,MAAM,gBAAgB,qBAE5B,CAAC;;AAEF,wBAAkB"}
@@ -1,10 +1,10 @@
1
- export declare const generateFollowCount: (user: Amity.User) => {
1
+ export declare const generateFollowCount: (user: Amity.InternalUser) => {
2
2
  userId: string;
3
3
  followingCount: number;
4
4
  followerCount: number;
5
5
  pendingCount: number;
6
6
  };
7
- export declare const generateBlockResult: (blockUser: Amity.User, status: Exclude<Amity.FollowStatusType, 'all'>) => {
7
+ export declare const generateBlockResult: (blockUser: Amity.InternalUser, status: Exclude<Amity.FollowStatusType, 'all'>) => {
8
8
  data: {
9
9
  follows: Amity.FollowStatus[];
10
10
  followCounts: {
@@ -15,9 +15,9 @@ export declare const generateBlockResult: (blockUser: Amity.User, status: Exclud
15
15
  }[];
16
16
  };
17
17
  };
18
- export declare const generateBlockedUsers: (...blockedUser: Amity.User[]) => {
18
+ export declare const generateBlockedUsers: (...blockedUser: Amity.InternalUser[]) => {
19
19
  data: {
20
- users: Amity.User[];
20
+ users: Amity.InternalUser[];
21
21
  files: never[];
22
22
  follows: Amity.FollowStatus[];
23
23
  paging: {
@@ -1 +1 @@
1
- {"version":3,"file":"block.d.ts","sourceRoot":"","sources":["../../../../src/utils/tests/dummy/block.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mBAAmB,SAAU,MAAM,IAAI;;;;;CAOnD,CAAC;AAEF,eAAO,MAAM,mBAAmB,cACnB,MAAM,IAAI,UACb,QAAQ,MAAM,gBAAgB,EAAE,KAAK,CAAC;;;;;;;;;;CAQ/C,CAAC;AAEF,eAAO,MAAM,oBAAoB,mBAAoB,MAAM,IAAI,EAAE;;;;;;;;;CAWhE,CAAC"}
1
+ {"version":3,"file":"block.d.ts","sourceRoot":"","sources":["../../../../src/utils/tests/dummy/block.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mBAAmB,SAAU,MAAM,YAAY;;;;;CAO3D,CAAC;AAEF,eAAO,MAAM,mBAAmB,cACnB,MAAM,YAAY,UACrB,QAAQ,MAAM,gBAAgB,EAAE,KAAK,CAAC;;;;;;;;;;CAQ/C,CAAC;AAEF,eAAO,MAAM,oBAAoB,mBAAoB,MAAM,YAAY,EAAE;;;;;;;;;CAWxE,CAAC"}
@@ -4,6 +4,7 @@ export declare const category11: {
4
4
  createdAt: string;
5
5
  isDeleted: boolean;
6
6
  categoryId: string;
7
+ avatar: null;
7
8
  };
8
9
  export declare const category12: {
9
10
  name: string;
@@ -11,6 +12,7 @@ export declare const category12: {
11
12
  createdAt: string;
12
13
  isDeleted: boolean;
13
14
  categoryId: string;
15
+ avatar: null;
14
16
  };
15
17
  export declare const category13: {
16
18
  name: string;
@@ -18,6 +20,7 @@ export declare const category13: {
18
20
  createdAt: string;
19
21
  isDeleted: boolean;
20
22
  categoryId: string;
23
+ avatar: null;
21
24
  };
22
25
  export declare const category21: {
23
26
  name: string;
@@ -25,6 +28,7 @@ export declare const category21: {
25
28
  createdAt: string;
26
29
  isDeleted: boolean;
27
30
  categoryId: string;
31
+ avatar: null;
28
32
  };
29
33
  export declare const category22: {
30
34
  name: string;
@@ -32,6 +36,7 @@ export declare const category22: {
32
36
  createdAt: string;
33
37
  isDeleted: boolean;
34
38
  categoryId: string;
39
+ avatar: null;
35
40
  };
36
41
  export declare const categoryQueryResponse: {
37
42
  data: {
@@ -41,6 +46,7 @@ export declare const categoryQueryResponse: {
41
46
  createdAt: string;
42
47
  isDeleted: boolean;
43
48
  categoryId: string;
49
+ avatar: null;
44
50
  }[];
45
51
  paging: {
46
52
  next: string;
@@ -55,6 +61,7 @@ export declare const categoryQueryResponsePage2: {
55
61
  createdAt: string;
56
62
  isDeleted: boolean;
57
63
  categoryId: string;
64
+ avatar: null;
58
65
  }[];
59
66
  paging: {
60
67
  next: string;
@@ -1 +1 @@
1
- {"version":3,"file":"category.d.ts","sourceRoot":"","sources":["../../../../src/utils/tests/dummy/category.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;;;;;;CAMtB,CAAC;AAEF,eAAO,MAAM,UAAU;;;;;;CAMtB,CAAC;AAEF,eAAO,MAAM,UAAU;;;;;;CAMtB,CAAC;AAEF,eAAO,MAAM,UAAU;;;;;;CAMtB,CAAC;AAEF,eAAO,MAAM,UAAU;;;;;;CAMtB,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;CAOjC,CAAC;AAEF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;CAOtC,CAAC"}
1
+ {"version":3,"file":"category.d.ts","sourceRoot":"","sources":["../../../../src/utils/tests/dummy/category.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;;;;;;;CAOtB,CAAC;AAEF,eAAO,MAAM,UAAU;;;;;;;CAOtB,CAAC;AAEF,eAAO,MAAM,UAAU;;;;;;;CAOtB,CAAC;AAEF,eAAO,MAAM,UAAU;;;;;;;CAOtB,CAAC;AAEF,eAAO,MAAM,UAAU;;;;;;;CAOtB,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;CAOjC,CAAC;AAEF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;CAOtC,CAAC"}
@@ -2,7 +2,7 @@ export declare const convertChannelFromRaw: (channel: Amity.RawChannel) => Amity
2
2
  export declare const convertRawChannelPayload: (rawPayload: Amity.ChannelPayload) => Amity.ProcessedChannelPayload;
3
3
  export declare function generateRawChannel(params?: Partial<Amity.RawChannel>): Amity.RawChannel;
4
4
  export declare function generateRawChannelUser(params?: Partial<Amity.RawMembership<'channel'>>): Amity.RawMembership<'channel'>;
5
- export declare const convertChannelUserFromRaw: (member: Amity.RawMembership<'channel'>, user: Amity.User | undefined) => Amity.Membership<'channel'>;
5
+ export declare const convertChannelUserFromRaw: (member: Amity.RawMembership<'channel'>, user: Amity.InternalUser | undefined) => Amity.Membership<'channel'>;
6
6
  export declare const mockPage: {
7
7
  paging: {
8
8
  previous: string;
@@ -215,4 +215,14 @@ export declare const conversationChannelPayload: {
215
215
  files: Amity.File<"image">[];
216
216
  messagePreviews: never[];
217
217
  };
218
+ export declare const channelDisplayName1: Amity.RawChannel<any>;
219
+ export declare const channelDisplayName2: Amity.RawChannel<any>;
220
+ export declare const channelDisplayName3: Amity.RawChannel<any>;
221
+ export declare const channelDisplayName4: Amity.RawChannel<any>;
222
+ export declare const channelCreatedAt1: Amity.RawChannel<any>;
223
+ export declare const channelCreatedAt2: Amity.RawChannel<any>;
224
+ export declare const channelCreatedAt3: Amity.RawChannel<any>;
225
+ export declare const channelLastActivity1: Amity.RawChannel<any>;
226
+ export declare const channelLastActivity2: Amity.RawChannel<any>;
227
+ export declare const channelLastActivity3: Amity.RawChannel<any>;
218
228
  //# sourceMappingURL=channel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"channel.d.ts","sourceRoot":"","sources":["../../../../src/utils/tests/dummy/channel.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,qBAAqB,YAAa,MAAM,UAAU,KAAG,MAAM,eAGvE,CAAC;AAEF,eAAO,MAAM,wBAAwB,eACvB,MAAM,cAAc,KAC/B,MAAM,uBAIP,CAAC;AAEH,wBAAgB,kBAAkB,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC,UAAU,CAiBvF;AAED,wBAAgB,sBAAsB,CACpC,MAAM,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC,GAC/C,KAAK,CAAC,aAAa,CAAC,SAAS,CAAC,CAgBhC;AAED,eAAO,MAAM,yBAAyB,WAC5B,MAAM,aAAa,CAAC,SAAS,CAAC,QAChC,MAAM,IAAI,GAAG,SAAS,KAC3B,MAAM,UAAU,CAAC,SAAS,CAG3B,CAAC;AAEH,eAAO,MAAM,QAAQ;;;;;CAKpB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,UAAsD,CAAC;AAEvF,eAAO,MAAM,eAAe,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,eAAO,MAAM,iBAAiB,uBAI5B,CAAC;AAEH,eAAO,MAAM,iBAAiB,uBAI5B,CAAC;AAEH,eAAO,MAAM,oBAAoB,uBAG/B,CAAC;AAEH,eAAO,MAAM,oBAAoB,uBAG/B,CAAC;AAEH,eAAO,MAAM,oBAAoB,uBAG/B,CAAC"}
@@ -60,7 +60,7 @@ export declare const textCommentResponse: {
60
60
  commentChildren: never[];
61
61
  paging: {};
62
62
  comments: Amity.InternalComment<any>[];
63
- users: Amity.User[];
63
+ users: Amity.InternalUser[];
64
64
  communityUsers: Amity.Membership<"community">[];
65
65
  };
66
66
  };
@@ -70,7 +70,7 @@ export declare const imageCommentResponse: {
70
70
  commentChildren: never[];
71
71
  paging: {};
72
72
  comments: Amity.InternalComment<any>[];
73
- users: Amity.User[];
73
+ users: Amity.InternalUser[];
74
74
  communityUsers: Amity.Membership<"community">[];
75
75
  };
76
76
  };
@@ -80,7 +80,7 @@ export declare const textImageCommentResponse: {
80
80
  commentChildren: never[];
81
81
  paging: {};
82
82
  comments: Amity.InternalComment<any>[];
83
- users: Amity.User[];
83
+ users: Amity.InternalUser[];
84
84
  communityUsers: Amity.Membership<"community">[];
85
85
  };
86
86
  };
@@ -90,7 +90,7 @@ export declare const textMentionCommentResponse: {
90
90
  commentChildren: never[];
91
91
  paging: {};
92
92
  comments: Amity.InternalComment<any>[];
93
- users: Amity.User[];
93
+ users: Amity.InternalUser[];
94
94
  communityUsers: Amity.Membership<"community">[];
95
95
  };
96
96
  };
@@ -100,7 +100,7 @@ export declare const textCommentParentIdResponse: {
100
100
  commentChildren: never[];
101
101
  paging: {};
102
102
  comments: Amity.InternalComment<any>[];
103
- users: Amity.User[];
103
+ users: Amity.InternalUser[];
104
104
  communityUsers: Amity.Membership<"community">[];
105
105
  };
106
106
  };
@@ -110,7 +110,7 @@ export declare const deletedCommentResponse: {
110
110
  commentChildren: never[];
111
111
  paging: {};
112
112
  comments: Amity.InternalComment<any>[];
113
- users: Amity.User[];
113
+ users: Amity.InternalUser[];
114
114
  communityUsers: Amity.Membership<"community">[];
115
115
  };
116
116
  };
@@ -1,4 +1,4 @@
1
- export declare const generateFollows: (blockUser: Amity.User, status: Exclude<Amity.FollowStatusType, 'all'>) => Amity.FollowStatus;
1
+ export declare const generateFollows: (blockUser: Amity.InternalUser, status: Exclude<Amity.FollowStatusType, 'all'>) => Amity.FollowStatus;
2
2
  export declare const follow11: Amity.FollowStatus;
3
3
  export declare const follow12: Amity.FollowStatus;
4
4
  export declare const follow13: Amity.FollowStatus;
@@ -1 +1 @@
1
- {"version":3,"file":"follow.d.ts","sourceRoot":"","sources":["../../../../src/utils/tests/dummy/follow.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,eAAe,cACf,MAAM,IAAI,UACb,QAAQ,MAAM,gBAAgB,EAAE,KAAK,CAAC,KAC7C,MAAM,YAOR,CAAC;AAGF,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,YAK5B,CAAC;AAGF,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,YAK5B,CAAC;AAGF,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,YAK5B,CAAC;AAGF,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,YAK5B,CAAC;AAGF,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,YAK5B,CAAC;AAGF,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,YAK5B,CAAC;AAEF,eAAO,MAAM,OAAO;;;;CAInB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,gBAIjC,CAAC"}
1
+ {"version":3,"file":"follow.d.ts","sourceRoot":"","sources":["../../../../src/utils/tests/dummy/follow.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,eAAe,cACf,MAAM,YAAY,UACrB,QAAQ,MAAM,gBAAgB,EAAE,KAAK,CAAC,KAC7C,MAAM,YAOR,CAAC;AAGF,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,YAK5B,CAAC;AAGF,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,YAK5B,CAAC;AAGF,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,YAK5B,CAAC;AAGF,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,YAK5B,CAAC;AAGF,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,YAK5B,CAAC;AAGF,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,YAK5B,CAAC;AAEF,eAAO,MAAM,OAAO;;;;CAInB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,gBAIjC,CAAC"}
@@ -28,6 +28,7 @@ export declare const flaggedUser: {
28
28
  userId: string;
29
29
  flagCount: number;
30
30
  _id: string;
31
+ isGlobalBanned: boolean;
31
32
  displayName?: string | undefined;
32
33
  avatarFileId?: string | undefined;
33
34
  avatarCustomUrl?: string | undefined;
@@ -46,6 +47,7 @@ export declare const flaggedUser: {
46
47
  deletedAt?: string | undefined;
47
48
  isDeleted?: boolean | undefined;
48
49
  path: string;
50
+ avatar?: Amity.File<"image"> | null | undefined;
49
51
  };
50
52
  export declare const flaggedUserQueryResponse: {
51
53
  data: {
@@ -53,6 +55,7 @@ export declare const flaggedUserQueryResponse: {
53
55
  userId: string;
54
56
  flagCount: number;
55
57
  _id: string;
58
+ isGlobalBanned: boolean;
56
59
  displayName?: string | undefined;
57
60
  avatarFileId?: string | undefined;
58
61
  avatarCustomUrl?: string | undefined;
@@ -71,6 +74,7 @@ export declare const flaggedUserQueryResponse: {
71
74
  deletedAt?: string | undefined;
72
75
  isDeleted?: boolean | undefined;
73
76
  path: string;
77
+ avatar?: Amity.File<"image"> | null | undefined;
74
78
  }[];
75
79
  files: never[];
76
80
  };
@@ -88,7 +92,7 @@ export declare const userUpdateResponse: {
88
92
  hashFlag: null;
89
93
  avatarCustomUrl: string;
90
94
  avatarFileId: null;
91
- isGlobalBan: boolean;
95
+ isGlobalBanned: boolean;
92
96
  }[];
93
97
  files: never[];
94
98
  };
@@ -1 +1 @@
1
- {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../../src/utils/tests/dummy/user.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,IAS1B,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,IAG1B,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,IAG1B,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,IAG1B,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,IAI1B,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,IAG1B,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;;;;;CAS7B,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;CASlC,CAAC;AAEF,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;CAIvB,CAAC;AAEF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKpC,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;CAmB9B,CAAC;AAEF,eAAO,MAAM,KAAK,cAAmC,CAAC;AAGtD,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,WAG/B,CAAC"}
1
+ {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../../src/utils/tests/dummy/user.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,IAW1B,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,IAG1B,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,IAG1B,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,IAG1B,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,IAI1B,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,IAG1B,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;;;;;CAS7B,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;CASlC,CAAC;AAEF,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;CAIvB,CAAC;AAEF,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKpC,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;CAmB9B,CAAC;AAEF,eAAO,MAAM,KAAK,cAAmC,CAAC;AAGtD,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,WAG/B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amityco/ts-sdk",
3
- "version": "6.12.2-d74459e.0",
3
+ "version": "6.12.2-e855934.0",
4
4
  "license": "CC-BY-ND-4.0",
5
5
  "author": "amity.co <developers@amity.co> (https://amity.co)",
6
6
  "description": "Amity Social Cloud Typescript SDK",
@@ -4,7 +4,7 @@ declare global {
4
4
  namespace Amity {
5
5
  type ChannelMarker = {
6
6
  entityId: Amity.RawChannel['channelId'];
7
- userId: Amity.User['userId'];
7
+ userId: Amity.InternalUser['userId'];
8
8
  unreadCount: number;
9
9
  isDeleted: boolean;
10
10
  hasMentioned: boolean;
@@ -13,7 +13,7 @@ declare global {
13
13
  type SubChannelMarker = {
14
14
  feedId: Amity.RawSubChannel['messageFeedId'];
15
15
  entityId: Amity.RawChannel['channelId'];
16
- userId: Amity.User['userId'];
16
+ userId: Amity.InternalUser['userId'];
17
17
  readToSegment: number;
18
18
  deliveredToSegment: number;
19
19
  unreadCount: number;
@@ -23,7 +23,7 @@ declare global {
23
23
  type MessageMarker = {
24
24
  feedId: Amity.RawSubChannel['messageFeedId'];
25
25
  contentId: Amity.RawMessage['messageId'];
26
- creatorId: Amity.User['userId'];
26
+ creatorId: Amity.InternalUser['userId'];
27
27
  readCount: number;
28
28
  deliveredCount: number;
29
29
  } & Amity.Timestamps;
@@ -36,7 +36,7 @@ declare global {
36
36
  } & Amity.Timestamps;
37
37
 
38
38
  type UserMarker = {
39
- userId: Amity.User['userId'];
39
+ userId: Amity.InternalUser['userId'];
40
40
  unreadCount: number;
41
41
  hasMentioned: boolean;
42
42
  } & Amity.SyncAt &