@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.
- package/README.md +8 -9
- package/dist/@types/core/marker.d.ts +4 -4
- package/dist/@types/core/marker.d.ts.map +1 -1
- package/dist/@types/core/model.d.ts +4 -4
- package/dist/@types/core/model.d.ts.map +1 -1
- package/dist/@types/core/payload.d.ts +17 -17
- package/dist/@types/core/payload.d.ts.map +1 -1
- package/dist/@types/domains/block.d.ts +1 -1
- package/dist/@types/domains/block.d.ts.map +1 -1
- package/dist/@types/domains/category.d.ts +5 -2
- package/dist/@types/domains/category.d.ts.map +1 -1
- package/dist/@types/domains/client.d.ts +3 -3
- package/dist/@types/domains/client.d.ts.map +1 -1
- package/dist/@types/domains/comment.d.ts +1 -1
- package/dist/@types/domains/comment.d.ts.map +1 -1
- package/dist/@types/domains/community.d.ts +4 -4
- package/dist/@types/domains/community.d.ts.map +1 -1
- package/dist/@types/domains/follow.d.ts +4 -4
- package/dist/@types/domains/follow.d.ts.map +1 -1
- package/dist/@types/domains/group.d.ts +2 -2
- package/dist/@types/domains/group.d.ts.map +1 -1
- package/dist/@types/domains/messagePreview.d.ts +2 -2
- package/dist/@types/domains/messagePreview.d.ts.map +1 -1
- package/dist/@types/domains/poll.d.ts +1 -1
- package/dist/@types/domains/poll.d.ts.map +1 -1
- package/dist/@types/domains/post.d.ts +1 -1
- package/dist/@types/domains/post.d.ts.map +1 -1
- package/dist/@types/domains/reaction.d.ts +1 -1
- package/dist/@types/domains/reaction.d.ts.map +1 -1
- package/dist/@types/domains/stream.d.ts +2 -2
- package/dist/@types/domains/stream.d.ts.map +1 -1
- package/dist/@types/domains/user.d.ts +7 -3
- package/dist/@types/domains/user.d.ts.map +1 -1
- package/dist/cache/api/pushToCache.d.ts +1 -1
- package/dist/cache/api/upsertInCache.d.ts +1 -1
- package/dist/categoryRepository/api/getCategory.d.ts.map +1 -1
- package/dist/categoryRepository/api/queryCategories.d.ts.map +1 -1
- package/dist/categoryRepository/observers/getCategories.d.ts.map +1 -1
- package/dist/channelRepsitory/channelMembership/api/addMembers.d.ts +4 -4
- package/dist/channelRepsitory/channelMembership/api/addMembers.d.ts.map +1 -1
- package/dist/channelRepsitory/channelMembership/api/removeMembers.d.ts +4 -4
- package/dist/channelRepsitory/channelMembership/api/removeMembers.d.ts.map +1 -1
- package/dist/channelRepsitory/channelModeration/api/addRole.d.ts +4 -4
- package/dist/channelRepsitory/channelModeration/api/addRole.d.ts.map +1 -1
- package/dist/channelRepsitory/channelModeration/api/banMembers.d.ts +2 -2
- package/dist/channelRepsitory/channelModeration/api/banMembers.d.ts.map +1 -1
- package/dist/channelRepsitory/channelModeration/api/removeRole.d.ts +4 -4
- package/dist/channelRepsitory/channelModeration/api/removeRole.d.ts.map +1 -1
- package/dist/channelRepsitory/channelModeration/api/unbanMembers.d.ts +2 -2
- package/dist/channelRepsitory/channelModeration/api/unbanMembers.d.ts.map +1 -1
- package/dist/channelRepsitory/events/onChannelMemberAdded.d.ts +1 -1
- package/dist/channelRepsitory/events/onChannelMemberBanned.d.ts +1 -1
- package/dist/channelRepsitory/events/onChannelMemberRemoved.d.ts +1 -1
- package/dist/channelRepsitory/events/onChannelMemberUnbanned.d.ts +1 -1
- package/dist/channelRepsitory/observers/tests/getChannel.test.d.ts +2 -0
- package/dist/channelRepsitory/observers/tests/getChannel.test.d.ts.map +1 -0
- package/dist/client/api/getToken.d.ts +3 -3
- package/dist/client/api/getToken.d.ts.map +1 -1
- package/dist/client/utils/setClientToken.d.ts +1 -1
- package/dist/communityRepository/communityMembership/api/addMembers.d.ts +4 -4
- package/dist/communityRepository/communityMembership/api/addMembers.d.ts.map +1 -1
- package/dist/communityRepository/communityMembership/api/removeMembers.d.ts +4 -4
- package/dist/communityRepository/communityMembership/api/removeMembers.d.ts.map +1 -1
- package/dist/communityRepository/communityModeration/api/addRoles.d.ts +4 -4
- package/dist/communityRepository/communityModeration/api/addRoles.d.ts.map +1 -1
- package/dist/communityRepository/communityModeration/api/banMembers.d.ts +2 -2
- package/dist/communityRepository/communityModeration/api/banMembers.d.ts.map +1 -1
- package/dist/communityRepository/communityModeration/api/removeRoles.d.ts +4 -4
- package/dist/communityRepository/communityModeration/api/removeRoles.d.ts.map +1 -1
- package/dist/communityRepository/communityModeration/api/unbanMembers.d.ts +2 -2
- package/dist/communityRepository/communityModeration/api/unbanMembers.d.ts.map +1 -1
- package/dist/core/device.d.ts +1 -1
- package/dist/core/device.d.ts.map +1 -1
- package/dist/core/query/filtering.d.ts +2 -2
- package/dist/core/query/filtering.d.ts.map +1 -1
- package/dist/external/api/createUserToken.d.ts +2 -2
- package/dist/external/api/createUserToken.d.ts.map +1 -1
- package/dist/group/utils/withUser.d.ts +3 -3
- package/dist/group/utils/withUser.d.ts.map +1 -1
- package/dist/index.cjs.js +206 -126
- package/dist/index.esm.js +206 -126
- package/dist/index.umd.js +4 -4
- package/dist/messagePreview/utils/getChannelMessagePreviewWithUser.d.ts +1 -1
- package/dist/messagePreview/utils/getSubChannelMessagePreviewWithUser.d.ts +1 -1
- package/dist/messageRepository/api/getDeliveredUsers.d.ts +6 -6
- package/dist/messageRepository/api/getDeliveredUsers.d.ts.map +1 -1
- package/dist/messageRepository/api/getReadUsers.d.ts +6 -6
- package/dist/messageRepository/api/getReadUsers.d.ts.map +1 -1
- package/dist/streamRepository/api/getStreams.d.ts +1 -1
- package/dist/streamRepository/api/getStreams.d.ts.map +1 -1
- package/dist/streamRepository/api/queryStreams.d.ts +1 -1
- package/dist/streamRepository/api/queryStreams.d.ts.map +1 -1
- package/dist/userRepository/api/flagUser.d.ts +1 -1
- package/dist/userRepository/api/flagUser.d.ts.map +1 -1
- package/dist/userRepository/api/getUser.d.ts.map +1 -1
- package/dist/userRepository/api/getUserByIds.d.ts +1 -1
- package/dist/userRepository/api/getUserByIds.d.ts.map +1 -1
- package/dist/userRepository/api/isUserFlaggedByMe.d.ts +1 -1
- package/dist/userRepository/api/isUserFlaggedByMe.d.ts.map +1 -1
- package/dist/userRepository/api/queryBlockedUsers.d.ts +5 -5
- package/dist/userRepository/api/queryBlockedUsers.d.ts.map +1 -1
- package/dist/userRepository/api/queryUsers.d.ts +6 -6
- package/dist/userRepository/api/queryUsers.d.ts.map +1 -1
- package/dist/userRepository/api/unflagUser.d.ts +1 -1
- package/dist/userRepository/api/unflagUser.d.ts.map +1 -1
- package/dist/userRepository/api/updateUser.d.ts +4 -4
- package/dist/userRepository/api/updateUser.d.ts.map +1 -1
- package/dist/userRepository/events/onUserDeleted.d.ts +2 -2
- package/dist/userRepository/events/onUserDeleted.d.ts.map +1 -1
- package/dist/userRepository/events/onUserFetched.d.ts +2 -2
- package/dist/userRepository/events/onUserFetched.d.ts.map +1 -1
- package/dist/userRepository/events/onUserFlagCleared.d.ts +2 -2
- package/dist/userRepository/events/onUserFlagCleared.d.ts.map +1 -1
- package/dist/userRepository/events/onUserFlagged.d.ts +2 -2
- package/dist/userRepository/events/onUserFlagged.d.ts.map +1 -1
- package/dist/userRepository/events/onUserUnflagged.d.ts +2 -2
- package/dist/userRepository/events/onUserUnflagged.d.ts.map +1 -1
- package/dist/userRepository/events/onUserUpdated.d.ts +2 -2
- package/dist/userRepository/events/onUserUpdated.d.ts.map +1 -1
- package/dist/userRepository/events/utils.d.ts +1 -1
- package/dist/userRepository/events/utils.d.ts.map +1 -1
- package/dist/userRepository/observers/getBlockedUsers.d.ts +4 -4
- package/dist/userRepository/observers/getBlockedUsers.d.ts.map +1 -1
- package/dist/userRepository/observers/getUser.d.ts +2 -2
- package/dist/userRepository/observers/getUser.d.ts.map +1 -1
- package/dist/userRepository/observers/getUsers.d.ts.map +1 -1
- package/dist/userRepository/observers/observeUser.d.ts +2 -2
- package/dist/userRepository/observers/observeUser.d.ts.map +1 -1
- package/dist/userRepository/observers/searchUserByDisplayName.d.ts +2 -2
- package/dist/userRepository/observers/searchUserByDisplayName.d.ts.map +1 -1
- package/dist/userRepository/relationship/block/api/blockUser.d.ts +4 -4
- package/dist/userRepository/relationship/block/api/blockUser.d.ts.map +1 -1
- package/dist/userRepository/relationship/block/api/unBlockUser.d.ts +4 -4
- package/dist/userRepository/relationship/block/api/unBlockUser.d.ts.map +1 -1
- package/dist/userRepository/relationship/block/observers/getBlockedUsers.d.ts +1 -1
- package/dist/userRepository/relationship/block/observers/getBlockedUsers.d.ts.map +1 -1
- package/dist/userRepository/relationship/follow/api/acceptFollower.d.ts +2 -2
- package/dist/userRepository/relationship/follow/api/acceptFollower.d.ts.map +1 -1
- package/dist/userRepository/relationship/follow/api/acceptMyFollower.d.ts +2 -2
- package/dist/userRepository/relationship/follow/api/acceptMyFollower.d.ts.map +1 -1
- package/dist/userRepository/relationship/follow/api/declineFollower.d.ts +2 -2
- package/dist/userRepository/relationship/follow/api/declineFollower.d.ts.map +1 -1
- package/dist/userRepository/relationship/follow/api/declineMyFollower.d.ts +2 -2
- package/dist/userRepository/relationship/follow/api/declineMyFollower.d.ts.map +1 -1
- package/dist/userRepository/relationship/follow/api/follow.d.ts +2 -2
- package/dist/userRepository/relationship/follow/api/follow.d.ts.map +1 -1
- package/dist/userRepository/relationship/follow/api/getFollowInfo.d.ts +4 -4
- package/dist/userRepository/relationship/follow/api/getFollowInfo.d.ts.map +1 -1
- package/dist/userRepository/relationship/follow/api/unfollow.d.ts +3 -3
- package/dist/userRepository/relationship/follow/api/unfollow.d.ts.map +1 -1
- package/dist/userRepository/relationship/follow/api/utils.d.ts +1 -1
- package/dist/userRepository/relationship/follow/api/utils.d.ts.map +1 -1
- package/dist/userRepository/relationship/follow/observers/getFollowers.d.ts +1 -1
- package/dist/userRepository/relationship/follow/observers/getFollowings.d.ts +1 -1
- package/dist/userRepository/relationship/follow/observers/observeFollowInfo.d.ts +1 -1
- package/dist/userRepository/relationship/follow/observers/observeFollowInfo.d.ts.map +1 -1
- package/dist/userRepository/relationship/follow/observers/observeFollowers.d.ts +2 -2
- package/dist/userRepository/relationship/follow/observers/observeFollowers.d.ts.map +1 -1
- package/dist/userRepository/relationship/follow/observers/observeFollowings.d.ts +2 -2
- package/dist/userRepository/relationship/follow/observers/observeFollowings.d.ts.map +1 -1
- package/dist/utils/linkedObject/categoryLinkedObject.d.ts +2 -0
- package/dist/utils/linkedObject/categoryLinkedObject.d.ts.map +1 -0
- package/dist/utils/linkedObject/index.d.ts +2 -0
- package/dist/utils/linkedObject/index.d.ts.map +1 -1
- package/dist/utils/linkedObject/userLinkedObject.d.ts +2 -0
- package/dist/utils/linkedObject/userLinkedObject.d.ts.map +1 -0
- package/dist/utils/tests/client.d.ts.map +1 -1
- package/dist/utils/tests/dummy/block.d.ts +4 -4
- package/dist/utils/tests/dummy/block.d.ts.map +1 -1
- package/dist/utils/tests/dummy/category.d.ts +7 -0
- package/dist/utils/tests/dummy/category.d.ts.map +1 -1
- package/dist/utils/tests/dummy/channel.d.ts +11 -1
- package/dist/utils/tests/dummy/channel.d.ts.map +1 -1
- package/dist/utils/tests/dummy/comment.d.ts +6 -6
- package/dist/utils/tests/dummy/follow.d.ts +1 -1
- package/dist/utils/tests/dummy/follow.d.ts.map +1 -1
- package/dist/utils/tests/dummy/user.d.ts +5 -1
- package/dist/utils/tests/dummy/user.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/@types/core/marker.ts +4 -4
- package/src/@types/core/model.ts +4 -4
- package/src/@types/core/payload.ts +17 -17
- package/src/@types/domains/block.ts +1 -1
- package/src/@types/domains/category.ts +6 -2
- package/src/@types/domains/client.ts +3 -3
- package/src/@types/domains/comment.ts +1 -1
- package/src/@types/domains/community.ts +4 -4
- package/src/@types/domains/follow.ts +4 -4
- package/src/@types/domains/group.ts +2 -2
- package/src/@types/domains/messagePreview.ts +2 -2
- package/src/@types/domains/poll.ts +1 -1
- package/src/@types/domains/post.ts +1 -1
- package/src/@types/domains/reaction.ts +1 -1
- package/src/@types/domains/stream.ts +2 -2
- package/src/@types/domains/user.ts +8 -3
- package/src/cache/api/pushToCache.ts +1 -1
- package/src/cache/api/upsertInCache.ts +1 -1
- package/src/categoryRepository/api/getCategory.ts +3 -2
- package/src/categoryRepository/api/queryCategories.ts +7 -1
- package/src/categoryRepository/observers/getCategories.ts +3 -2
- package/src/categoryRepository/observers/tests/getCategories.test.ts +2 -1
- package/src/channelRepsitory/api/createChannel.ts +1 -1
- package/src/channelRepsitory/channelMembership/api/addMembers.ts +4 -4
- package/src/channelRepsitory/channelMembership/api/removeMembers.ts +4 -4
- package/src/channelRepsitory/channelMembership/observers/tests/getMembers.test.ts +1 -1
- package/src/channelRepsitory/channelMembership/observers/tests/searchMembers.test.ts +1 -3
- package/src/channelRepsitory/channelModeration/api/addRole.ts +4 -4
- package/src/channelRepsitory/channelModeration/api/banMembers.ts +2 -2
- package/src/channelRepsitory/channelModeration/api/removeRole.ts +4 -4
- package/src/channelRepsitory/channelModeration/api/unbanMembers.ts +2 -2
- package/src/channelRepsitory/events/onChannelMemberAdded.ts +1 -1
- package/src/channelRepsitory/events/onChannelMemberBanned.ts +1 -1
- package/src/channelRepsitory/events/onChannelMemberRemoved.ts +1 -1
- package/src/channelRepsitory/events/onChannelMemberUnbanned.ts +1 -1
- package/src/channelRepsitory/observers/tests/getChannel.test.ts +73 -0
- package/src/channelRepsitory/observers/tests/getChannels.test.ts +462 -50
- package/src/client/api/getToken.ts +3 -3
- package/src/client/api/login.ts +1 -1
- package/src/communityRepository/communityMembership/api/addMembers.ts +4 -4
- package/src/communityRepository/communityMembership/api/removeMembers.ts +4 -4
- package/src/communityRepository/communityMembership/events/utils.ts +2 -2
- package/src/communityRepository/communityMembership/observers/tests/getMembers.test.ts +1 -1
- package/src/communityRepository/communityModeration/api/addRoles.ts +4 -4
- package/src/communityRepository/communityModeration/api/banMembers.ts +2 -2
- package/src/communityRepository/communityModeration/api/removeRoles.ts +4 -4
- package/src/communityRepository/communityModeration/api/unbanMembers.ts +2 -2
- package/src/core/device.ts +1 -1
- package/src/core/query/filtering.ts +3 -1
- package/src/core/query/tests/filtering.test.ts +2 -2
- package/src/external/api/createUserToken.ts +2 -2
- package/src/group/utils/withUser.ts +8 -4
- package/src/liveStreamPlayer/api/getPlayer.ts +1 -1
- package/src/messagePreview/utils/getChannelMessagePreviewWithUser.ts +1 -1
- package/src/messagePreview/utils/getSubChannelMessagePreviewWithUser.ts +1 -1
- package/src/messageRepository/api/getDeliveredUsers.ts +11 -9
- package/src/messageRepository/api/getReadUsers.ts +11 -9
- package/src/messageRepository/observers/tests/getMessages.test.ts +766 -0
- package/src/streamRepository/api/getStreams.ts +1 -1
- package/src/streamRepository/api/queryStreams.ts +1 -1
- package/src/subChannelRepository/observers/tests/getSubChannels.test.ts +308 -15
- package/src/userRepository/api/flagUser.ts +1 -1
- package/src/userRepository/api/getUser.ts +2 -1
- package/src/userRepository/api/getUserByIds.ts +4 -3
- package/src/userRepository/api/isUserFlaggedByMe.ts +1 -1
- package/src/userRepository/api/queryBlockedUsers.ts +10 -8
- package/src/userRepository/api/queryUsers.ts +12 -10
- package/src/userRepository/api/unflagUser.ts +1 -1
- package/src/userRepository/api/updateUser.ts +6 -6
- package/src/userRepository/events/onUserDeleted.ts +2 -2
- package/src/userRepository/events/onUserFetched.ts +2 -2
- package/src/userRepository/events/onUserFlagCleared.ts +2 -2
- package/src/userRepository/events/onUserFlagged.ts +2 -2
- package/src/userRepository/events/onUserUnflagged.ts +2 -2
- package/src/userRepository/events/onUserUpdated.ts +2 -2
- package/src/userRepository/events/utils.ts +1 -1
- package/src/userRepository/observers/getBlockedUsers.ts +8 -7
- package/src/userRepository/observers/getUser.ts +3 -3
- package/src/userRepository/observers/getUsers.ts +2 -2
- package/src/userRepository/observers/observeUser.ts +9 -6
- package/src/userRepository/observers/searchUserByDisplayName.ts +2 -2
- package/src/userRepository/observers/tests/getUser.test.ts +1 -1
- package/src/userRepository/observers/tests/getUsers.test.ts +12 -11
- package/src/userRepository/observers/tests/searchUserByDisplayName.test.ts +1 -1
- package/src/userRepository/relationship/block/api/blockUser.ts +6 -4
- package/src/userRepository/relationship/block/api/unBlockUser.ts +6 -4
- package/src/userRepository/relationship/block/observers/getBlockedUsers.ts +1 -1
- package/src/userRepository/relationship/follow/api/acceptFollower.ts +2 -2
- package/src/userRepository/relationship/follow/api/acceptMyFollower.ts +2 -2
- package/src/userRepository/relationship/follow/api/declineFollower.ts +2 -2
- package/src/userRepository/relationship/follow/api/declineMyFollower.ts +2 -2
- package/src/userRepository/relationship/follow/api/follow.ts +2 -2
- package/src/userRepository/relationship/follow/api/getFollowInfo.ts +4 -4
- package/src/userRepository/relationship/follow/api/unfollow.ts +3 -3
- package/src/userRepository/relationship/follow/api/utils.ts +1 -1
- package/src/userRepository/relationship/follow/observers/getFollowers.ts +1 -1
- package/src/userRepository/relationship/follow/observers/getFollowings.ts +1 -1
- package/src/userRepository/relationship/follow/observers/observeFollowInfo.ts +1 -1
- package/src/userRepository/relationship/follow/observers/observeFollowers.ts +2 -2
- package/src/userRepository/relationship/follow/observers/observeFollowings.ts +2 -2
- package/src/utils/linkedObject/categoryLinkedObject.ts +40 -0
- package/src/utils/linkedObject/index.ts +4 -0
- package/src/utils/linkedObject/userLinkedObject.ts +36 -0
- package/src/utils/tests/client.ts +1 -0
- package/src/utils/tests/dummy/block.ts +3 -3
- package/src/utils/tests/dummy/category.ts +5 -0
- package/src/utils/tests/dummy/channel.ts +58 -1
- package/src/utils/tests/dummy/community.ts +1 -1
- package/src/utils/tests/dummy/follow.ts +1 -1
- package/src/utils/tests/dummy/user.ts +3 -1
- package/tsconfig.json +18 -23
|
@@ -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,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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.
|
|
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.
|
|
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":["../../../src/@types/domains/stream.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC;AAEV,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,KAAK,CAAC;QACd,WAAW,YAAY;YACrB,IAAI,SAAS;YACb,IAAI,SAAS;YACb,KAAK,UAAU;YACf,QAAQ,aAAa;SACtB;QAED,WAAW,gBAAgB;YACzB,EAAE,OAAO;YACT,EAAE,OAAO;YACT,GAAG,QAAQ;SACZ;QAED,KAAK,WAAW,CAAC,CAAC,IAAI;YACpB,GAAG,CAAC,EAAE,CAAC,CAAC;YACR,GAAG,CAAC,EAAE,CAAC,CAAC;YACR,GAAG,CAAC,EAAE,CAAC,CAAC;YACR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AAC,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
|
|
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.
|
|
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.
|
|
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,
|
|
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,G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MAAM,CAAC,CACzB,CAAC;KACH;CACF"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* ```js
|
|
3
3
|
* import { pushToCache } from '@amityco/ts-sdk'
|
|
4
|
-
* pushToCache<Amity.
|
|
4
|
+
* pushToCache<Amity.InternalUser>(["user", "foobar"], user)
|
|
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.
|
|
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":"
|
|
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":"
|
|
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":"
|
|
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.
|
|
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.
|
|
11
|
-
* @returns A success boolean if the {@link Amity.
|
|
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.
|
|
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,
|
|
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.
|
|
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.
|
|
11
|
-
* @returns A success boolean if the list of {@link Amity.
|
|
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.
|
|
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,
|
|
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.
|
|
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.
|
|
12
|
-
* @returns A success boolean if the {@link Amity.Role} were added to list of {@link Amity.
|
|
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.
|
|
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,
|
|
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.
|
|
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.
|
|
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,
|
|
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.
|
|
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.
|
|
12
|
-
* @returns A success boolean if the {@link Amity.Role} were removed from list of {@link Amity.
|
|
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.
|
|
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,
|
|
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.
|
|
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.
|
|
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,
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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 @@
|
|
|
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.
|
|
15
|
-
displayName: Amity.
|
|
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.
|
|
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,
|
|
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.
|
|
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.
|
|
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.
|
|
11
|
-
* @returns A success boolean if the {@link Amity.
|
|
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.
|
|
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,
|
|
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.
|
|
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.
|
|
11
|
-
* @returns A success boolean if the list of {@link Amity.
|
|
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.
|
|
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,
|
|
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.
|
|
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.
|
|
12
|
-
* @returns A success boolean if the {@link Amity.Role} were added to list of {@link Amity.
|
|
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.
|
|
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,
|
|
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.
|
|
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.
|
|
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,
|
|
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.
|
|
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.
|
|
12
|
-
* @returns A success boolean if the {@link Amity.Role} were removed from list of {@link Amity.
|
|
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.
|
|
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,
|
|
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.
|
|
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.
|
|
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,
|
|
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"}
|
package/dist/core/device.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/** @hidden */
|
|
2
2
|
export declare const getDeviceId: () => Promise<string>;
|
|
3
|
-
export declare const getMQTTClientId: (userId: Amity.
|
|
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,
|
|
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.
|
|
69
|
-
user?: Amity.
|
|
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;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB,yDAEjB,MAAM,IAAI,CAAC,UAAU,CAAC,QAgBjC,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,2BAA2B,2DAE1B,MAAM,uBAAuB,CAAC,YAAY,CAAC,UAC/C,MAAM,UAAU,CAAC,WAAW,CAAC,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;
|
|
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;;;;;;;;GAQG;AACH,eAAO,MAAM,gBAAgB,yDAEjB,MAAM,IAAI,CAAC,UAAU,CAAC,QAgBjC,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,2BAA2B,2DAE1B,MAAM,uBAAuB,CAAC,YAAY,CAAC,UAC/C,MAAM,UAAU,CAAC,WAAW,CAAC,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.
|
|
18
|
-
displayName?: Amity.
|
|
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,
|
|
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.
|
|
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.
|
|
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.
|
|
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,
|
|
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"}
|