@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
@@ -6,7 +6,7 @@ declare global {
6
6
  type Reactor = {
7
7
  reactionId: string;
8
8
  reactionName: string;
9
- userId: Amity.User['userId'];
9
+ userId: Amity.InternalUser['userId'];
10
10
  } & Amity.Timestamps;
11
11
  type Reactable = {
12
12
  reactionsCount: number;
@@ -1 +1 @@
1
- {"version":3,"file":"reaction.d.ts","sourceRoot":"","sources":["../../../src/@types/domains/reaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC;AAEV,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,KAAK,CAAC;QACd,KAAK,aAAa,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAAC;QAEpD,KAAK,kBAAkB,GAAG,SAAS,GAAG,WAAW,CAAC;QAElD,KAAK,OAAO,GAAG;YACb,UAAU,EAAE,MAAM,CAAC;YACnB,YAAY,EAAE,MAAM,CAAC;YACrB,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;SAC9B,GAAG,KAAK,CAAC,UAAU,CAAC;QAErB,KAAK,SAAS,GAAG;YACf,cAAc,EAAE,MAAM,CAAC;YACvB,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;YAClC,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;SACxB,CAAC;QAEF,KAAK,QAAQ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AC,EAAE,MAAM,EAAE,CAAC;SACxB,CAAC;QAEF,KAAK,QAAQ,GAAG;YACd,QAAQ,EAAE,OAAO,EAAE,CAAC;SACrB,GAAG,KAAK,CAAC,YAAY,CAAC,aAAa,CAAC,CAAC;QAEtC,KAAK,cAAc,GAAG;YACpB,WAAW,EAAE,KAAK,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC;YAC3C,aAAa,EAAE,KAAK,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC;YAC/C,YAAY,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;YAC7C,IAAI,CAAC,EAAE,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;SAC3B,CAAC;QAEF,KAAK,sBAAsB,GAAG,KAAK,CAAC,oBAAoB,CAAC,IAAI,CAAC,cAAc,EAAE,MAAM,CAAC,CAAC,CAAC;QAEvF,KAAK,2BAA2B,GAAG,KAAK,CAAC,mBAAmB,CAC1D,KAAK,CAAC,OAAO,CAAC,YAAY,CAAC,EAC3B,IAAI,CAAC,cAAc,EAAE,MAAM,CAAC,CAC7B,CAAC;KACH;CACF"}
@@ -47,7 +47,7 @@ declare global {
47
47
  isLive?: boolean;
48
48
  endedAt: Amity.timestamp;
49
49
  startedAt: Amity.timestamp;
50
- userId: Amity.User['userId'];
50
+ userId: Amity.InternalUser['userId'];
51
51
  resolution: StreamResolution;
52
52
  streamerUrl: StreamEndpoint;
53
53
  watcherUrl: MultiFormat<StreamEndpoint>;
@@ -56,7 +56,7 @@ declare global {
56
56
  type QueryStreams = {
57
57
  isLive?: boolean;
58
58
  statuses?: Amity.StreamStatus[];
59
- userPublicIds?: Amity.User['userId'][];
59
+ userPublicIds?: Amity.InternalUser['userId'][];
60
60
  sortBy?: 'lastCreated' | 'firstCreated';
61
61
  isDeleted?: Amity.Stream['isDeleted'];
62
62
  page?: Amity.Page;
@@ -1 +1 @@
1
- {"version":3,"file":"stream.d.ts","sourceRoot":"","sources":["../../../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AAS,CAAC;YAC3B,MAAM,EAAE,KAAK,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;YACrC,UAAU,EAAE,gBAAgB,CAAC;YAE7B,WAAW,EAAE,cAAc,CAAC;YAC5B,UAAU,EAAE,WAAW,CAAC,cAAc,CAAC,CAAC;YACxC,UAAU,EAAE,WAAW,CAAC,eAAe,CAAC,EAAE,CAAC;SAC5C,GAAG,KAAK,CAAC,QAAQ,GAChB,KAAK,CAAC,UAAU,GAChB,KAAK,CAAC,UAAU,CAAC;QAEnB,KAAK,YAAY,GAAG;YAClB,MAAM,CAAC,EAAE,OAAO,CAAC;YACjB,QAAQ,CAAC,EAAE,KAAK,CAAC,YAAY,EAAE,CAAC;YAChC,aAAa,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,QAAQ,CAAC,EAAE,CAAC;YAC/C,MAAM,CAAC,EAAE,aAAa,GAAG,cAAc,CAAC;YACxC,SAAS,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;YACtC,IAAI,CAAC,EAAE,KAAK,CAAC,IAAI,CAAC;SACnB,CAAC;QAEF,KAAK,oBAAoB,GAAG,KAAK,CAAC,oBAAoB,CAAC,IAAI,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC,CAAC;QAEnF,KAAK,yBAAyB,GAAG,KAAK,CAAC,mBAAmB,CACxD,KAAK,CAAC,MAAM,CAAC,UAAU,CAAC,EACxB,IAAI,CAAC,YAAY,EAAE,MAAM,CAAC,CAC3B,CAAC;QAEF,KAAK,gBAAgB,GAAG,kBAAkB,GAAG,iBAAiB,GAAG,iBAAiB,CAAC;KACpF;CACF"}
@@ -2,23 +2,27 @@ export {};
2
2
  declare global {
3
3
  namespace Amity {
4
4
  type UserActionType = 'onFetch' | 'onUpdate' | 'onDelete' | 'onFlagged' | 'onUnflagged' | 'onFlagCleared';
5
- type User = {
5
+ type InternalUser = {
6
6
  _id: string;
7
7
  userId: string;
8
+ isGlobalBanned: boolean;
8
9
  displayName?: string;
9
10
  avatarFileId?: Amity.File<'image'>['fileId'];
10
11
  avatarCustomUrl?: string;
11
12
  description?: string;
12
13
  } & Amity.Metadata & Amity.Taggable & Amity.Flaggable & Amity.Accredited & Amity.Timestamps & Amity.SoftDelete & Amity.Subscribable;
14
+ type User = Amity.InternalUser & {
15
+ avatar?: Amity.File<'image'> | null;
16
+ };
13
17
  type QueryUsers = {
14
- displayName?: Amity.User['displayName'];
18
+ displayName?: Amity.InternalUser['displayName'];
15
19
  filter?: 'all' | 'flagged';
16
20
  sortBy?: 'displayName' | 'firstCreated' | 'lastCreated';
17
21
  page?: Amity.Page;
18
22
  };
19
23
  type UserLiveCollection = Amity.LiveCollectionParams<Omit<QueryUsers, 'page'>>;
20
24
  type UserSearchLiveCollection = Amity.LiveCollectionParams<Omit<QueryUsers, 'sortBy'>>;
21
- type UserLiveCollectionCache = Amity.LiveCollectionCache<Amity.User['userId'], Pick<QueryUsers, 'page'>>;
25
+ type UserLiveCollectionCache = Amity.LiveCollectionCache<Amity.InternalUser['userId'], Pick<QueryUsers, 'page'>>;
22
26
  }
23
27
  }
24
28
  //# sourceMappingURL=user.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../src/@types/domains/user.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC;AAEV,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,KAAK,CAAC;QACd,KAAK,cAAc,GACf,SAAS,GACT,UAAU,GACV,UAAU,GACV,WAAW,GACX,aAAa,GACb,eAAe,CAAC;QAEpB,KAAK,IAAI,GAAG;YACV,GAAG,EAAE,MAAM,CAAC;YACZ,MAAM,EAAE,MAAM,CAAC;YACf,WAAW,CAAC,EAAE,MAAM,CAAC;YACrB,YAAY,CAAC,EAAE,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,CAAC;YAC7C,eAAe,CAAC,EAAE,MAAM,CAAC;YACzB,WAAW,CAAC,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5
5
  * ```
6
6
  *
7
7
  * Saves any provided value as {@link Amity.CacheEntry} for the matching {@link Amity.CacheKey}
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * ```js
3
3
  * import { upsertInCache } from '@amityco/ts-sdk'
4
- * upsertInCache<Amity.User>(["user", "foobar"], user)
4
+ * upsertInCache<Amity.InternalUser>(["user", "foobar"], user)
5
5
  * ```
6
6
  *
7
7
  * Insert or update any provided value as {@link Amity.CacheEntry} for
@@ -1 +1 @@
1
- {"version":3,"file":"getCategory.d.ts","sourceRoot":"","sources":["../../../src/categoryRepository/api/getCategory.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,WAAW;iBACV,MAAM,QAAQ,CAAC,YAAY,CAAC,GACvC,QAAQ,MAAM,MAAM,CAAC,MAAM,QAAQ,CAAC,CAAC;IAoBxC;;;;;;;;;;;;OAYG;wBAEW,MAAM,QAAQ,CAAC,YAAY,CAAC,GACvC,MAAM,MAAM,CAAC,MAAM,QAAQ,CAAC,GAAG,SAAS;CAlB1C,CAAC"}
1
+ {"version":3,"file":"getCategory.d.ts","sourceRoot":"","sources":["../../../src/categoryRepository/api/getCategory.ts"],"names":[],"mappings":"AASA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,WAAW;iBACV,MAAM,QAAQ,CAAC,YAAY,CAAC,GACvC,QAAQ,MAAM,MAAM,CAAC,MAAM,QAAQ,CAAC,CAAC;IAoBxC;;;;;;;;;;;;OAYG;wBAEW,MAAM,QAAQ,CAAC,YAAY,CAAC,GACvC,MAAM,MAAM,CAAC,MAAM,QAAQ,CAAC,GAAG,SAAS;CAlB1C,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"queryCategories.d.ts","sourceRoot":"","sources":["../../../src/categoryRepository/api/queryCategories.ts"],"names":[],"mappings":"AAUA;;;;;;;;;;;;;KAaK;AACL,eAAO,MAAM,eAAe;aAClB,MAAM,eAAe,GAC5B,QAAQ,MAAM,MAAM,CAAC,MAAM,KAAK,CAAC,MAAM,QAAQ,EAAE,MAAM,IAAI,CAAC,CAAC,CAAC;IAyCjE;;;;;;;;;;;;OAYG;mBAEM,WAAW,sBAAsB,CAAC,CAAC,CAAC,CAAC,GAC3C,MAAM,MAAM,CAAC,MAAM,KAAK,CAAC,MAAM,QAAQ,EAAE,MAAM,IAAI,CAAC,CAAC,GAAG,SAAS;CAjBnE,CAAC"}
1
+ {"version":3,"file":"queryCategories.d.ts","sourceRoot":"","sources":["../../../src/categoryRepository/api/queryCategories.ts"],"names":[],"mappings":"AAWA;;;;;;;;;;;;;KAaK;AACL,eAAO,MAAM,eAAe;aAClB,MAAM,eAAe,GAC5B,QAAQ,MAAM,MAAM,CAAC,MAAM,KAAK,CAAC,MAAM,QAAQ,EAAE,MAAM,IAAI,CAAC,CAAC,CAAC;IA8CjE;;;;;;;;;;;;OAYG;mBAEM,WAAW,sBAAsB,CAAC,CAAC,CAAC,CAAC,GAC3C,MAAM,MAAM,CAAC,MAAM,KAAK,CAAC,MAAM,QAAQ,EAAE,MAAM,IAAI,CAAC,CAAC,GAAG,SAAS;CAjBnE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"getCategories.d.ts","sourceRoot":"","sources":["../../../src/categoryRepository/observers/getCategories.ts"],"names":[],"mappings":"AAuBA;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,aAAa,WAChB,MAAM,sBAAsB,YAC1B,MAAM,sBAAsB,CAAC,MAAM,QAAQ,CAAC,WAC7C,MAAM,oBAAoB,eAuGpC,CAAC"}
1
+ {"version":3,"file":"getCategories.d.ts","sourceRoot":"","sources":["../../../src/categoryRepository/observers/getCategories.ts"],"names":[],"mappings":"AAwBA;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,aAAa,WAChB,MAAM,sBAAsB,YAC1B,MAAM,sBAAsB,CAAC,MAAM,QAAQ,CAAC,WAC7C,MAAM,oBAAoB,eAuGpC,CAAC"}
@@ -4,14 +4,14 @@
4
4
  * const updated = await addMembers(channelId, ['foo', 'bar'])
5
5
  * ```
6
6
  *
7
- * Adds a list of {@link Amity.User} to a {@link Amity.Channel}
7
+ * Adds a list of {@link Amity.InternalUser} to a {@link Amity.Channel}
8
8
  *
9
9
  * @param channelId The ID of the {@link Amity.Channel} to perform
10
- * @param userIds The list of IDs {@link Amity.User} to add
11
- * @returns A success boolean if the {@link Amity.User} were added to the {@link Amity.Channel}
10
+ * @param userIds The list of IDs {@link Amity.InternalUser} to add
11
+ * @returns A success boolean if the {@link Amity.InternalUser} were added to the {@link Amity.Channel}
12
12
  *
13
13
  * @category Channel API
14
14
  * @async
15
15
  */
16
- export declare const addMembers: (channelId: Amity.Channel['channelId'], userIds: Amity.User['userId'][]) => Promise<boolean>;
16
+ export declare const addMembers: (channelId: Amity.Channel['channelId'], userIds: Amity.InternalUser['userId'][]) => Promise<boolean>;
17
17
  //# sourceMappingURL=addMembers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"addMembers.d.ts","sourceRoot":"","sources":["../../../../src/channelRepsitory/channelMembership/api/addMembers.ts"],"names":[],"mappings":"AAUA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,UAAU,cACV,MAAM,OAAO,CAAC,WAAW,CAAC,WAC5B,MAAM,IAAI,CAAC,QAAQ,CAAC,EAAE,KAC9B,QAAQ,OAAO,CA2BjB,CAAC"}
1
+ {"version":3,"file":"addMembers.d.ts","sourceRoot":"","sources":["../../../../src/channelRepsitory/channelMembership/api/addMembers.ts"],"names":[],"mappings":"AAUA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,UAAU,cACV,MAAM,OAAO,CAAC,WAAW,CAAC,WAC5B,MAAM,YAAY,CAAC,QAAQ,CAAC,EAAE,KACtC,QAAQ,OAAO,CA2BjB,CAAC"}
@@ -4,14 +4,14 @@
4
4
  * const updated = await removeMembers(channelId, ['foo', 'bar'])
5
5
  * ```
6
6
  *
7
- * Removes a list of {@link Amity.User} from a {@link Amity.Channel}
7
+ * Removes a list of {@link Amity.InternalUser} from a {@link Amity.Channel}
8
8
  *
9
9
  * @param channelId The ID of the {@link Amity.Channel} to perform
10
- * @param userIds The list of IDs {@link Amity.User} to remove
11
- * @returns A success boolean if the list of {@link Amity.User} were removed from the {@link Amity.Channel}
10
+ * @param userIds The list of IDs {@link Amity.InternalUser} to remove
11
+ * @returns A success boolean if the list of {@link Amity.InternalUser} were removed from the {@link Amity.Channel}
12
12
  *
13
13
  * @category Channel API
14
14
  * @async
15
15
  */
16
- export declare const removeMembers: (channelId: Amity.Channel['channelId'], userIds: Amity.User['userId'][]) => Promise<boolean>;
16
+ export declare const removeMembers: (channelId: Amity.Channel['channelId'], userIds: Amity.InternalUser['userId'][]) => Promise<boolean>;
17
17
  //# sourceMappingURL=removeMembers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"removeMembers.d.ts","sourceRoot":"","sources":["../../../../src/channelRepsitory/channelMembership/api/removeMembers.ts"],"names":[],"mappings":"AAUA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,aAAa,cACb,MAAM,OAAO,CAAC,WAAW,CAAC,WAC5B,MAAM,IAAI,CAAC,QAAQ,CAAC,EAAE,KAC9B,QAAQ,OAAO,CA2BjB,CAAC"}
1
+ {"version":3,"file":"removeMembers.d.ts","sourceRoot":"","sources":["../../../../src/channelRepsitory/channelMembership/api/removeMembers.ts"],"names":[],"mappings":"AAUA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,aAAa,cACb,MAAM,OAAO,CAAC,WAAW,CAAC,WAC5B,MAAM,YAAY,CAAC,QAAQ,CAAC,EAAE,KACtC,QAAQ,OAAO,CA2BjB,CAAC"}
@@ -4,15 +4,15 @@
4
4
  * const updated = await addRole(channelId, 'foo', ['bar'])
5
5
  * ```
6
6
  *
7
- * Adds an {@link Amity.Role} to a list of {@link Amity.User} on a {@link Amity.Channel}
7
+ * Adds an {@link Amity.Role} to a list of {@link Amity.InternalUser} on a {@link Amity.Channel}
8
8
  *
9
9
  * @param channelId The ID of the {@link Amity.Channel} to perform
10
10
  * @param roleId The ID of the {@link Amity.Role} to apply
11
- * @param userId Array of IDs of the {@link Amity.User} to perform
12
- * @returns A success boolean if the {@link Amity.Role} were added to list of {@link Amity.User} in the {@link Amity.Channel}
11
+ * @param userId Array of IDs of the {@link Amity.InternalUser} to perform
12
+ * @returns A success boolean if the {@link Amity.Role} were added to list of {@link Amity.InternalUser} in the {@link Amity.Channel}
13
13
  *
14
14
  * @category Channel API
15
15
  * @async
16
16
  */
17
- export declare const addRole: (channelId: Amity.Channel['channelId'], roleId: Amity.Role['roleId'], userIds: Amity.User['userId'][]) => Promise<boolean>;
17
+ export declare const addRole: (channelId: Amity.Channel['channelId'], roleId: Amity.Role['roleId'], userIds: Amity.InternalUser['userId'][]) => Promise<boolean>;
18
18
  //# sourceMappingURL=addRole.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"addRole.d.ts","sourceRoot":"","sources":["../../../../src/channelRepsitory/channelModeration/api/addRole.ts"],"names":[],"mappings":"AAUA;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,OAAO,cACP,MAAM,OAAO,CAAC,WAAW,CAAC,UAC7B,MAAM,IAAI,CAAC,QAAQ,CAAC,WACnB,MAAM,IAAI,CAAC,QAAQ,CAAC,EAAE,KAC9B,QAAQ,OAAO,CAmBjB,CAAC"}
1
+ {"version":3,"file":"addRole.d.ts","sourceRoot":"","sources":["../../../../src/channelRepsitory/channelModeration/api/addRole.ts"],"names":[],"mappings":"AAUA;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,OAAO,cACP,MAAM,OAAO,CAAC,WAAW,CAAC,UAC7B,MAAM,IAAI,CAAC,QAAQ,CAAC,WACnB,MAAM,YAAY,CAAC,QAAQ,CAAC,EAAE,KACtC,QAAQ,OAAO,CAmBjB,CAAC"}
@@ -6,11 +6,11 @@
6
6
  * ```
7
7
  *
8
8
  * @param channelId of {@link Amity.Channel} from which the users should be banned
9
- * @param userIds of the {@link Amity.User}'s to be banned
9
+ * @param userIds of the {@link Amity.InternalUser}'s to be banned
10
10
  * @returns the updated {@link Amity.Membership}'s object
11
11
  *
12
12
  * @category Channel API
13
13
  * @async
14
14
  * */
15
- export declare const banMembers: (channelId: Amity.Channel['channelId'], userIds: Amity.User['userId'][]) => Promise<Amity.Cached<Amity.Membership<'channel'>[]>>;
15
+ export declare const banMembers: (channelId: Amity.Channel['channelId'], userIds: Amity.InternalUser['userId'][]) => Promise<Amity.Cached<Amity.Membership<'channel'>[]>>;
16
16
  //# sourceMappingURL=banMembers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"banMembers.d.ts","sourceRoot":"","sources":["../../../../src/channelRepsitory/channelModeration/api/banMembers.ts"],"names":[],"mappings":"AASA;;;;;;;;;;;;;KAaK;AACL,eAAO,MAAM,UAAU,cACV,MAAM,OAAO,CAAC,WAAW,CAAC,WAC5B,MAAM,IAAI,CAAC,QAAQ,CAAC,EAAE,KAC9B,QAAQ,MAAM,MAAM,CAAC,MAAM,UAAU,CAAC,SAAS,CAAC,EAAE,CAAC,CAqBrD,CAAC"}
1
+ {"version":3,"file":"banMembers.d.ts","sourceRoot":"","sources":["../../../../src/channelRepsitory/channelModeration/api/banMembers.ts"],"names":[],"mappings":"AASA;;;;;;;;;;;;;KAaK;AACL,eAAO,MAAM,UAAU,cACV,MAAM,OAAO,CAAC,WAAW,CAAC,WAC5B,MAAM,YAAY,CAAC,QAAQ,CAAC,EAAE,KACtC,QAAQ,MAAM,MAAM,CAAC,MAAM,UAAU,CAAC,SAAS,CAAC,EAAE,CAAC,CAqBrD,CAAC"}
@@ -4,15 +4,15 @@
4
4
  * const updated = await removeRole(channelId, 'foo', ['bar'])
5
5
  * ```
6
6
  *
7
- * Removes an {@link Amity.Role} from a list of {@link Amity.User} on a {@link Amity.Channel}
7
+ * Removes an {@link Amity.Role} from a list of {@link Amity.InternalUser} on a {@link Amity.Channel}
8
8
  *
9
9
  * @param channelId The ID of the {@link Amity.Channel} to perform
10
10
  * @param roleId The ID of the {@link Amity.Role} to apply
11
- * @param userIds Array of IDs of the {@link Amity.User} to perform
12
- * @returns A success boolean if the {@link Amity.Role} were removed from list of {@link Amity.User} in the {@link Amity.Channel}
11
+ * @param userIds Array of IDs of the {@link Amity.InternalUser} to perform
12
+ * @returns A success boolean if the {@link Amity.Role} were removed from list of {@link Amity.InternalUser} in the {@link Amity.Channel}
13
13
  *
14
14
  * @category Channel API
15
15
  * @async
16
16
  */
17
- export declare const removeRole: (channelId: Amity.Channel['channelId'], roleId: Amity.Role['roleId'], userIds: Amity.User['userId'][]) => Promise<boolean>;
17
+ export declare const removeRole: (channelId: Amity.Channel['channelId'], roleId: Amity.Role['roleId'], userIds: Amity.InternalUser['userId'][]) => Promise<boolean>;
18
18
  //# sourceMappingURL=removeRole.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"removeRole.d.ts","sourceRoot":"","sources":["../../../../src/channelRepsitory/channelModeration/api/removeRole.ts"],"names":[],"mappings":"AAUA;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,UAAU,cACV,MAAM,OAAO,CAAC,WAAW,CAAC,UAC7B,MAAM,IAAI,CAAC,QAAQ,CAAC,WACnB,MAAM,IAAI,CAAC,QAAQ,CAAC,EAAE,KAC9B,QAAQ,OAAO,CAmBjB,CAAC"}
1
+ {"version":3,"file":"removeRole.d.ts","sourceRoot":"","sources":["../../../../src/channelRepsitory/channelModeration/api/removeRole.ts"],"names":[],"mappings":"AAUA;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,UAAU,cACV,MAAM,OAAO,CAAC,WAAW,CAAC,UAC7B,MAAM,IAAI,CAAC,QAAQ,CAAC,WACnB,MAAM,YAAY,CAAC,QAAQ,CAAC,EAAE,KACtC,QAAQ,OAAO,CAmBjB,CAAC"}
@@ -6,11 +6,11 @@
6
6
  * ```
7
7
  *
8
8
  * @param channelId of {@link Amity.Channel} where the users should be unbanned
9
- * @param userIds of the {@link Amity.User}'s to be unbanned
9
+ * @param userIds of the {@link Amity.InternalUser}'s to be unbanned
10
10
  * @returns the updated {@link Amity.Membership}'s object
11
11
  *
12
12
  * @category Channel API
13
13
  * @async
14
14
  * */
15
- export declare const unbanMembers: (channelId: Amity.Channel['channelId'], userIds: Amity.User['userId'][]) => Promise<Amity.Cached<Amity.Membership<'channel'>[]>>;
15
+ export declare const unbanMembers: (channelId: Amity.Channel['channelId'], userIds: Amity.InternalUser['userId'][]) => Promise<Amity.Cached<Amity.Membership<'channel'>[]>>;
16
16
  //# sourceMappingURL=unbanMembers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"unbanMembers.d.ts","sourceRoot":"","sources":["../../../../src/channelRepsitory/channelModeration/api/unbanMembers.ts"],"names":[],"mappings":"AASA;;;;;;;;;;;;;KAaK;AACL,eAAO,MAAM,YAAY,cACZ,MAAM,OAAO,CAAC,WAAW,CAAC,WAC5B,MAAM,IAAI,CAAC,QAAQ,CAAC,EAAE,KAC9B,QAAQ,MAAM,MAAM,CAAC,MAAM,UAAU,CAAC,SAAS,CAAC,EAAE,CAAC,CAsBrD,CAAC"}
1
+ {"version":3,"file":"unbanMembers.d.ts","sourceRoot":"","sources":["../../../../src/channelRepsitory/channelModeration/api/unbanMembers.ts"],"names":[],"mappings":"AASA;;;;;;;;;;;;;KAaK;AACL,eAAO,MAAM,YAAY,cACZ,MAAM,OAAO,CAAC,WAAW,CAAC,WAC5B,MAAM,YAAY,CAAC,QAAQ,CAAC,EAAE,KACtC,QAAQ,MAAM,MAAM,CAAC,MAAM,UAAU,CAAC,SAAS,CAAC,EAAE,CAAC,CAsBrD,CAAC"}
@@ -6,7 +6,7 @@
6
6
  * })
7
7
  * ```
8
8
  *
9
- * Fired when any {@link Amity.User} has been added to any {@link Amity.Channel}
9
+ * Fired when any {@link Amity.InternalUser} has been added to any {@link Amity.Channel}
10
10
  *
11
11
  * @param callback The function to call when the event was fired
12
12
  * @returns an {@link Amity.Unsubscriber} function to stop listening
@@ -6,7 +6,7 @@
6
6
  * })
7
7
  * ```
8
8
  *
9
- * Fired when any {@link Amity.User} has been banned from any {@link Amity.Channel}
9
+ * Fired when any {@link Amity.InternalUser} has been banned from any {@link Amity.Channel}
10
10
  *
11
11
  * @param callback The function to call when the event was fired
12
12
  * @returns an {@link Amity.Unsubscriber} function to stop listening
@@ -6,7 +6,7 @@
6
6
  * })
7
7
  * ```
8
8
  *
9
- * Fired when any {@link Amity.User} has been removed from any {@link Amity.Channel}
9
+ * Fired when any {@link Amity.InternalUser} has been removed from any {@link Amity.Channel}
10
10
  *
11
11
  * @param callback The function to call when the event was fired
12
12
  * @returns an {@link Amity.Unsubscriber} function to stop listening
@@ -6,7 +6,7 @@
6
6
  * })
7
7
  * ```
8
8
  *
9
- * Fired when any {@link Amity.User} has been unbanned from any {@link Amity.Channel}
9
+ * Fired when any {@link Amity.InternalUser} has been unbanned from any {@link Amity.Channel}
10
10
  *
11
11
  * @param callback The function to call when the event was fired
12
12
  * @returns an {@link Amity.Unsubscriber} function to stop listening
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=getChannel.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getChannel.test.d.ts","sourceRoot":"","sources":["../../../../src/channelRepsitory/observers/tests/getChannel.test.ts"],"names":[],"mappings":""}
@@ -11,11 +11,11 @@
11
11
  * @hidden
12
12
  */
13
13
  export declare const getToken: (params: {
14
- userId: Amity.User['userId'];
15
- displayName: Amity.User['displayName'];
14
+ userId: Amity.InternalUser['userId'];
15
+ displayName: Amity.InternalUser['displayName'];
16
16
  authToken?: string;
17
17
  deviceId: Amity.Device['deviceId'];
18
18
  }) => Promise<Amity.Tokens & {
19
- users: Amity.User[];
19
+ users: Amity.InternalUser[];
20
20
  }>;
21
21
  //# sourceMappingURL=getToken.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getToken.d.ts","sourceRoot":"","sources":["../../../src/client/api/getToken.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,QAAQ,WAAkB;IACrC,MAAM,EAAE,MAAM,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC7B,WAAW,EAAE,MAAM,IAAI,CAAC,aAAa,CAAC,CAAC;IACvC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,MAAM,CAAC,UAAU,CAAC,CAAC;CACpC;WAMiE,MAAM,IAAI,EAAE;EAa7E,CAAC"}
1
+ {"version":3,"file":"getToken.d.ts","sourceRoot":"","sources":["../../../src/client/api/getToken.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,QAAQ,WAAkB;IACrC,MAAM,EAAE,MAAM,YAAY,CAAC,QAAQ,CAAC,CAAC;IACrC,WAAW,EAAE,MAAM,YAAY,CAAC,aAAa,CAAC,CAAC;IAC/C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,MAAM,CAAC,UAAU,CAAC,CAAC;CACpC;WAMiE,MAAM,YAAY,EAAE;EAarF,CAAC"}
@@ -13,7 +13,7 @@ import { getToken } from '../api/getToken';
13
13
  */
14
14
  export declare const setClientToken: (params: Parameters<typeof getToken>) => Promise<{
15
15
  accessToken: string;
16
- users: Amity.User[];
16
+ users: Amity.InternalUser[];
17
17
  refreshToken: string;
18
18
  }>;
19
19
  //# sourceMappingURL=setClientToken.d.ts.map
@@ -4,14 +4,14 @@
4
4
  * const updated = await CommunityRepository.moderation.addMembers(communityId, ['foo', 'bar'])
5
5
  * ```
6
6
  *
7
- * Adds a list of {@link Amity.User} to a {@link Amity.Community} to add users to
7
+ * Adds a list of {@link Amity.InternalUser} to a {@link Amity.Community} to add users to
8
8
  *
9
9
  * @param communityId The ID of the {@link Amity.Community} to perform
10
- * @param userIds The list of IDs {@link Amity.User} to add
11
- * @returns A success boolean if the {@link Amity.User} were added to the {@link Amity.Community}
10
+ * @param userIds The list of IDs {@link Amity.InternalUser} to add
11
+ * @returns A success boolean if the {@link Amity.InternalUser} were added to the {@link Amity.Community}
12
12
  *
13
13
  * @category Community API
14
14
  * @async
15
15
  */
16
- export declare const addMembers: (communityId: Amity.Community['communityId'], userIds: Amity.User['userId'][]) => Promise<boolean>;
16
+ export declare const addMembers: (communityId: Amity.Community['communityId'], userIds: Amity.InternalUser['userId'][]) => Promise<boolean>;
17
17
  //# sourceMappingURL=addMembers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"addMembers.d.ts","sourceRoot":"","sources":["../../../../src/communityRepository/communityMembership/api/addMembers.ts"],"names":[],"mappings":"AASA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,UAAU,gBACR,MAAM,SAAS,CAAC,aAAa,CAAC,WAClC,MAAM,IAAI,CAAC,QAAQ,CAAC,EAAE,KAC9B,QAAQ,OAAO,CAoBjB,CAAC"}
1
+ {"version":3,"file":"addMembers.d.ts","sourceRoot":"","sources":["../../../../src/communityRepository/communityMembership/api/addMembers.ts"],"names":[],"mappings":"AASA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,UAAU,gBACR,MAAM,SAAS,CAAC,aAAa,CAAC,WAClC,MAAM,YAAY,CAAC,QAAQ,CAAC,EAAE,KACtC,QAAQ,OAAO,CAoBjB,CAAC"}
@@ -4,14 +4,14 @@
4
4
  * const updated = await CommunityRepository.moderation.removeMembers(communityId, ['foo', 'bar'])
5
5
  * ```
6
6
  *
7
- * Removes a list of {@link Amity.User} from a {@link Amity.Community}
7
+ * Removes a list of {@link Amity.InternalUser} from a {@link Amity.Community}
8
8
  *
9
9
  * @param communityId The ID of the {@link Amity.Community} to edit
10
- * @param userIds The list of IDs {@link Amity.User} to remove
11
- * @returns A success boolean if the list of {@link Amity.User} were removed from the {@link Amity.Community}
10
+ * @param userIds The list of IDs {@link Amity.InternalUser} to remove
11
+ * @returns A success boolean if the list of {@link Amity.InternalUser} were removed from the {@link Amity.Community}
12
12
  *
13
13
  * @category Community API
14
14
  * @async
15
15
  */
16
- export declare const removeMembers: (communityId: Amity.Community['communityId'], userIds: Amity.User['userId'][]) => Promise<boolean>;
16
+ export declare const removeMembers: (communityId: Amity.Community['communityId'], userIds: Amity.InternalUser['userId'][]) => Promise<boolean>;
17
17
  //# sourceMappingURL=removeMembers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"removeMembers.d.ts","sourceRoot":"","sources":["../../../../src/communityRepository/communityMembership/api/removeMembers.ts"],"names":[],"mappings":"AASA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,aAAa,gBACX,MAAM,SAAS,CAAC,aAAa,CAAC,WAClC,MAAM,IAAI,CAAC,QAAQ,CAAC,EAAE,KAC9B,QAAQ,OAAO,CAqBjB,CAAC"}
1
+ {"version":3,"file":"removeMembers.d.ts","sourceRoot":"","sources":["../../../../src/communityRepository/communityMembership/api/removeMembers.ts"],"names":[],"mappings":"AASA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,aAAa,gBACX,MAAM,SAAS,CAAC,aAAa,CAAC,WAClC,MAAM,YAAY,CAAC,QAAQ,CAAC,EAAE,KACtC,QAAQ,OAAO,CAqBjB,CAAC"}
@@ -4,15 +4,15 @@
4
4
  * const updated = await CommunityRepository.moderation.addRoles(communityId, ['foo', 'bar'])
5
5
  * ```
6
6
  *
7
- * Adds a list of {@link Amity.Role} to a list of {@link Amity.User} on a {@link Amity.Community}
7
+ * Adds a list of {@link Amity.Role} to a list of {@link Amity.InternalUser} on a {@link Amity.Community}
8
8
  *
9
9
  * @param communityId The ID of the {@link Amity.Community} to perform
10
10
  * @param roleIds Array of IDs of the {@link Amity.Role} to apply
11
- * @param userIds Array of IDs of the {@link Amity.User} to perform
12
- * @returns A success boolean if the {@link Amity.Role} were added to list of {@link Amity.User} in the {@link Amity.Community}
11
+ * @param userIds Array of IDs of the {@link Amity.InternalUser} to perform
12
+ * @returns A success boolean if the {@link Amity.Role} were added to list of {@link Amity.InternalUser} in the {@link Amity.Community}
13
13
  *
14
14
  * @category Community API
15
15
  * @async
16
16
  */
17
- export declare const addRoles: (communityId: Amity.Community['communityId'], roleIds: Amity.Role['roleId'][], userIds: Amity.User['userId'][]) => Promise<boolean>;
17
+ export declare const addRoles: (communityId: Amity.Community['communityId'], roleIds: Amity.Role['roleId'][], userIds: Amity.InternalUser['userId'][]) => Promise<boolean>;
18
18
  //# sourceMappingURL=addRoles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"addRoles.d.ts","sourceRoot":"","sources":["../../../../src/communityRepository/communityModeration/api/addRoles.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,QAAQ,gBACN,MAAM,SAAS,CAAC,aAAa,CAAC,WAClC,MAAM,IAAI,CAAC,QAAQ,CAAC,EAAE,WACtB,MAAM,IAAI,CAAC,QAAQ,CAAC,EAAE,KAC9B,QAAQ,OAAO,CAmBjB,CAAC"}
1
+ {"version":3,"file":"addRoles.d.ts","sourceRoot":"","sources":["../../../../src/communityRepository/communityModeration/api/addRoles.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,QAAQ,gBACN,MAAM,SAAS,CAAC,aAAa,CAAC,WAClC,MAAM,IAAI,CAAC,QAAQ,CAAC,EAAE,WACtB,MAAM,YAAY,CAAC,QAAQ,CAAC,EAAE,KACtC,QAAQ,OAAO,CAmBjB,CAAC"}
@@ -6,11 +6,11 @@
6
6
  * ```
7
7
  *
8
8
  * @param communityId of {@link Amity.Community} from which the users should be banned
9
- * @param userIds of the {@link Amity.User}'s to be banned
9
+ * @param userIds of the {@link Amity.InternalUser}'s to be banned
10
10
  * @returns the updated {@link Amity.Membership}'s object
11
11
  *
12
12
  * @category Community API
13
13
  * @async
14
14
  * */
15
- export declare const banMembers: (communityId: Amity.Community['communityId'], userIds: Amity.User['userId'][]) => Promise<Amity.Cached<Amity.Membership<'community'>[]>>;
15
+ export declare const banMembers: (communityId: Amity.Community['communityId'], userIds: Amity.InternalUser['userId'][]) => Promise<Amity.Cached<Amity.Membership<'community'>[]>>;
16
16
  //# sourceMappingURL=banMembers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"banMembers.d.ts","sourceRoot":"","sources":["../../../../src/communityRepository/communityModeration/api/banMembers.ts"],"names":[],"mappings":"AASA;;;;;;;;;;;;;KAaK;AACL,eAAO,MAAM,UAAU,gBACR,MAAM,SAAS,CAAC,aAAa,CAAC,WAClC,MAAM,IAAI,CAAC,QAAQ,CAAC,EAAE,KAC9B,QAAQ,MAAM,MAAM,CAAC,MAAM,UAAU,CAAC,WAAW,CAAC,EAAE,CAAC,CAsBvD,CAAC"}
1
+ {"version":3,"file":"banMembers.d.ts","sourceRoot":"","sources":["../../../../src/communityRepository/communityModeration/api/banMembers.ts"],"names":[],"mappings":"AASA;;;;;;;;;;;;;KAaK;AACL,eAAO,MAAM,UAAU,gBACR,MAAM,SAAS,CAAC,aAAa,CAAC,WAClC,MAAM,YAAY,CAAC,QAAQ,CAAC,EAAE,KACtC,QAAQ,MAAM,MAAM,CAAC,MAAM,UAAU,CAAC,WAAW,CAAC,EAAE,CAAC,CAsBvD,CAAC"}
@@ -4,15 +4,15 @@
4
4
  * const updated = await CommunityRepository.moderation.removeRoles(communityId, ['foo', 'bar'])
5
5
  * ```
6
6
  *
7
- * Removes a list of {@link Amity.Role} from a list of {@link Amity.User} on a {@link Amity.Community}
7
+ * Removes a list of {@link Amity.Role} from a list of {@link Amity.InternalUser} on a {@link Amity.Community}
8
8
  *
9
9
  * @param communityId The ID of the {@link Amity.Community} to perform
10
10
  * @param roleIds Array of IDs of the {@link Amity.Role} to apply
11
- * @param userIds Array of IDs of the {@link Amity.User} to perform
12
- * @returns A success boolean if the {@link Amity.Role} were removed from list of {@link Amity.User} in the {@link Amity.Community}
11
+ * @param userIds Array of IDs of the {@link Amity.InternalUser} to perform
12
+ * @returns A success boolean if the {@link Amity.Role} were removed from list of {@link Amity.InternalUser} in the {@link Amity.Community}
13
13
  *
14
14
  * @category Community API
15
15
  * @async
16
16
  */
17
- export declare const removeRoles: (communityId: Amity.Community['communityId'], roleIds: Amity.Role['roleId'][], userIds: Amity.User['userId'][]) => Promise<boolean>;
17
+ export declare const removeRoles: (communityId: Amity.Community['communityId'], roleIds: Amity.Role['roleId'][], userIds: Amity.InternalUser['userId'][]) => Promise<boolean>;
18
18
  //# sourceMappingURL=removeRoles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"removeRoles.d.ts","sourceRoot":"","sources":["../../../../src/communityRepository/communityModeration/api/removeRoles.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,WAAW,gBACT,MAAM,SAAS,CAAC,aAAa,CAAC,WAClC,MAAM,IAAI,CAAC,QAAQ,CAAC,EAAE,WACtB,MAAM,IAAI,CAAC,QAAQ,CAAC,EAAE,KAC9B,QAAQ,OAAO,CAmBjB,CAAC"}
1
+ {"version":3,"file":"removeRoles.d.ts","sourceRoot":"","sources":["../../../../src/communityRepository/communityModeration/api/removeRoles.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,WAAW,gBACT,MAAM,SAAS,CAAC,aAAa,CAAC,WAClC,MAAM,IAAI,CAAC,QAAQ,CAAC,EAAE,WACtB,MAAM,YAAY,CAAC,QAAQ,CAAC,EAAE,KACtC,QAAQ,OAAO,CAmBjB,CAAC"}
@@ -6,11 +6,11 @@
6
6
  * ```
7
7
  *
8
8
  * @param communityId of {@link Amity.Community} from which the users should be unbanned
9
- * @param userIds of the {@link Amity.User}'s to be unbanned
9
+ * @param userIds of the {@link Amity.InternalUser}'s to be unbanned
10
10
  * @returns the updated {@link Amity.Membership}'s object
11
11
  *
12
12
  * @category Community API
13
13
  * @async
14
14
  * */
15
- export declare const unbanMembers: (communityId: Amity.Community['communityId'], userIds: Amity.User['userId'][]) => Promise<Amity.Cached<Amity.Membership<'community'>[]>>;
15
+ export declare const unbanMembers: (communityId: Amity.Community['communityId'], userIds: Amity.InternalUser['userId'][]) => Promise<Amity.Cached<Amity.Membership<'community'>[]>>;
16
16
  //# sourceMappingURL=unbanMembers.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"unbanMembers.d.ts","sourceRoot":"","sources":["../../../../src/communityRepository/communityModeration/api/unbanMembers.ts"],"names":[],"mappings":"AASA;;;;;;;;;;;;;KAaK;AACL,eAAO,MAAM,YAAY,gBACV,MAAM,SAAS,CAAC,aAAa,CAAC,WAClC,MAAM,IAAI,CAAC,QAAQ,CAAC,EAAE,KAC9B,QAAQ,MAAM,MAAM,CAAC,MAAM,UAAU,CAAC,WAAW,CAAC,EAAE,CAAC,CAsBvD,CAAC"}
1
+ {"version":3,"file":"unbanMembers.d.ts","sourceRoot":"","sources":["../../../../src/communityRepository/communityModeration/api/unbanMembers.ts"],"names":[],"mappings":"AASA;;;;;;;;;;;;;KAaK;AACL,eAAO,MAAM,YAAY,gBACV,MAAM,SAAS,CAAC,aAAa,CAAC,WAClC,MAAM,YAAY,CAAC,QAAQ,CAAC,EAAE,KACtC,QAAQ,MAAM,MAAM,CAAC,MAAM,UAAU,CAAC,WAAW,CAAC,EAAE,CAAC,CAsBvD,CAAC"}
@@ -1,6 +1,6 @@
1
1
  /** @hidden */
2
2
  export declare const getDeviceId: () => Promise<string>;
3
- export declare const getMQTTClientId: (userId: Amity.User['userId']) => Promise<string>;
3
+ export declare const getMQTTClientId: (userId: Amity.InternalUser['userId']) => Promise<string>;
4
4
  /** @hidden */
5
5
  export declare const getDeviceModel: () => string;
6
6
  /** @hidden */
@@ -1 +1 @@
1
- {"version":3,"file":"device.d.ts","sourceRoot":"","sources":["../../src/core/device.ts"],"names":[],"mappings":"AAsDA,cAAc;AACd,eAAO,MAAM,WAAW,uBAavB,CAAC;AAEF,eAAO,MAAM,eAAe,WAAkB,MAAM,IAAI,CAAC,QAAQ,CAAC,oBAGjE,CAAC;AAEF,cAAc;AACd,eAAO,MAAM,cAAc,cAO1B,CAAC;AAEF,cAAc;AACd,eAAO,MAAM,aAAa,QAAO,MAAM,MAAM,CAAC,YAAY,CASzD,CAAC"}
1
+ {"version":3,"file":"device.d.ts","sourceRoot":"","sources":["../../src/core/device.ts"],"names":[],"mappings":"AAsDA,cAAc;AACd,eAAO,MAAM,WAAW,uBAavB,CAAC;AAEF,eAAO,MAAM,eAAe,WAAkB,MAAM,YAAY,CAAC,QAAQ,CAAC,oBAGzE,CAAC;AAEF,cAAc;AACd,eAAO,MAAM,cAAc,cAO1B,CAAC;AAEF,cAAc;AACd,eAAO,MAAM,aAAa,QAAO,MAAM,MAAM,CAAC,YAAY,CASzD,CAAC"}
@@ -65,7 +65,7 @@ export declare const filterByPostDataTypes: <T extends Amity.Post<any>>(collecti
65
65
  * @hidden
66
66
  */
67
67
  export declare const filterBySearchTerm: <T extends {
68
- userId: Amity.User['userId'];
69
- user?: Amity.User | undefined;
68
+ userId: Amity.InternalUser['userId'];
69
+ user?: Amity.InternalUser | undefined;
70
70
  }>(collection: T[], searchTerm: string) => T[];
71
71
  //# sourceMappingURL=filtering.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"filtering.d.ts","sourceRoot":"","sources":["../../../src/core/query/filtering.ts"],"names":[],"mappings":"AAMA;;;;;;;;;GASG;AACH,eAAO,MAAM,oBAAoB,sEAGxB,GAAG,QAII,CAAC;AAEjB,eAAO,MAAM,8BAA8B,sEAGlC,GAAG,QASI,CAAC;AAEjB,eAAO,MAAM,qBAAqB,sEAGzB,GAAG,EAAE,GAAG,SAAS,QACoE,CAAC;AAE/F,eAAO,MAAM,wBAAwB,6EAG3B,GAAG,EAAE,GAAG,SAAS,QAQ1B,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,yBAAyB,eACxB,MAAM,OAAO,EAAE,cACf,MAAM,qBAAqB,CAAC,YAAY,CAAC,UAC7C,MAAM,UAAU,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,KAC5C,MAAM,OAAO,EA4Bf,CAAC;AAEF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,CAAC,QAAQ,CAAC,QA0BhD,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,qBAAqB,0DAErB,MAAM,kBAAkB,CAAC,WAAW,CAAC,QAgCjD,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,kBAAkB;YACT,MAAM,YAAY,CAAC,QAAQ,CAAC;;gCAGpC,MAAM,QAanB,CAAC"}
@@ -14,8 +14,8 @@ import { API_REGIONS } from '~/client/utils/endpoints';
14
14
  * @hidden
15
15
  */
16
16
  export declare const createUserToken: (apiKey: string, apiRegion: (typeof API_REGIONS)[keyof typeof API_REGIONS], params: {
17
- userId: Amity.User['userId'];
18
- displayName?: Amity.User['displayName'];
17
+ userId: Amity.InternalUser['userId'];
18
+ displayName?: Amity.InternalUser['displayName'];
19
19
  authToken?: string;
20
20
  }) => Promise<{
21
21
  accessToken: string;
@@ -1 +1 @@
1
- {"version":3,"file":"createUserToken.d.ts","sourceRoot":"","sources":["../../../src/external/api/createUserToken.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAc,MAAM,0BAA0B,CAAC;AAEnE;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,eAAe,WAClB,MAAM,aACH,CAAA,kBAAkB,EAAC,MAAM,kBAAkB,CAAC,UAC/C;IACN,MAAM,EAAE,MAAM,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC7B,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC,aAAa,CAAC,CAAC;IACxC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;;EAiBF,CAAC"}
1
+ {"version":3,"file":"createUserToken.d.ts","sourceRoot":"","sources":["../../../src/external/api/createUserToken.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAc,MAAM,0BAA0B,CAAC;AAEnE;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,eAAe,WAClB,MAAM,aACH,CAAA,kBAAkB,EAAC,MAAM,kBAAkB,CAAC,UAC/C;IACN,MAAM,EAAE,MAAM,YAAY,CAAC,QAAQ,CAAC,CAAC;IACrC,WAAW,CAAC,EAAE,MAAM,YAAY,CAAC,aAAa,CAAC,CAAC;IAChD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;;EAiBF,CAAC"}
@@ -12,7 +12,7 @@
12
12
  * @returns The membership model object that is already mapped to user
13
13
  * @hidden
14
14
  */
15
- export declare const withUser: <M extends Record<any, any>, I extends keyof M = "userId", U extends string = "user">(member: M, userIdProp?: I, userProp?: U) => Record<U, Amity.User | undefined> & M;
15
+ export declare const withUser: <M extends Record<any, any>, I extends keyof M = "userId", U extends string = "user">(member: M, userIdProp?: I, userProp?: U) => Record<U, Amity.InternalUser | undefined> & M;
16
16
  /**
17
17
  * Mapping membership model with user object
18
18
  *
@@ -23,7 +23,7 @@ export declare const withUser: <M extends Record<any, any>, I extends keyof M =
23
23
  * mapped to users
24
24
  * @hidden
25
25
  */
26
- export declare const withUsers: <M extends Record<any, any>[], I extends keyof M[number] = "userId", U extends string = "user">(members: M, userIdProp?: I, userProp?: U) => (Record<U, Amity.User | undefined> & M[number])[];
26
+ export declare const withUsers: <M extends Record<any, any>[], I extends keyof M[number] = "userId", U extends string = "user">(members: M, userIdProp?: I, userProp?: U) => (Record<U, Amity.InternalUser | undefined> & M[number])[];
27
27
  /**
28
28
  * Transform members prop in any payload with attached users members
29
29
  *
@@ -34,5 +34,5 @@ export declare const withUsers: <M extends Record<any, any>[], I extends keyof M
34
34
  * @returns The transforming payload
35
35
  * @hidden
36
36
  */
37
- export declare const prepareMembershipPayload: <P extends Record<any, any>, M extends keyof P, I extends keyof P[M][number] = "userId", U extends string = "user">(payload: P, memberProp: M, userIdProp?: I, userProp?: U) => Omit<P, M> & Record<M, (Record<U, Amity.User | undefined> & P[M][number])[]>;
37
+ export declare const prepareMembershipPayload: <P extends Record<any, any>, M extends keyof P, I extends keyof P[M][number] = "userId", U extends string = "user">(payload: P, memberProp: M, userIdProp?: I, userProp?: U) => Omit<P, M> & Record<M, (Record<U, Amity.InternalUser | undefined> & P[M][number])[]>;
38
38
  //# sourceMappingURL=withUser.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"withUser.d.ts","sourceRoot":"","sources":["../../../src/group/utils/withUser.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,QAAQ,yKA4BpB,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,SAAS,gMAUrB,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,wBAAwB,8PAkBpC,CAAC"}
1
+ {"version":3,"file":"withUser.d.ts","sourceRoot":"","sources":["../../../src/group/utils/withUser.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,QAAQ,iLAgCpB,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,SAAS,wMAUrB,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,wBAAwB,sQAkBpC,CAAC"}