@amityco/ts-sdk 6.29.1 → 6.29.2-0b06b1a.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/.env +26 -26
- package/dist/@types/core/events.d.ts +9 -4
- package/dist/@types/core/events.d.ts.map +1 -1
- package/dist/@types/core/model.d.ts +4 -0
- package/dist/@types/core/model.d.ts.map +1 -1
- package/dist/@types/core/payload.d.ts +17 -6
- package/dist/@types/core/payload.d.ts.map +1 -1
- package/dist/@types/domains/channel.d.ts +8 -0
- package/dist/@types/domains/channel.d.ts.map +1 -1
- package/dist/@types/domains/comment.d.ts +5 -4
- package/dist/@types/domains/comment.d.ts.map +1 -1
- package/dist/@types/domains/community.d.ts +32 -8
- package/dist/@types/domains/community.d.ts.map +1 -1
- package/dist/@types/domains/group.d.ts +13 -7
- package/dist/@types/domains/group.d.ts.map +1 -1
- package/dist/@types/domains/pin.d.ts +22 -0
- package/dist/@types/domains/pin.d.ts.map +1 -0
- package/dist/@types/domains/pinnedPost.d.ts +28 -0
- package/dist/@types/domains/pinnedPost.d.ts.map +1 -0
- package/dist/@types/domains/poll.d.ts +3 -1
- package/dist/@types/domains/poll.d.ts.map +1 -1
- package/dist/@types/domains/post.d.ts +8 -5
- package/dist/@types/domains/post.d.ts.map +1 -1
- package/dist/@types/domains/stream.d.ts +2 -1
- package/dist/@types/domains/stream.d.ts.map +1 -1
- package/dist/@types/domains/user.d.ts +34 -6
- package/dist/@types/domains/user.d.ts.map +1 -1
- package/dist/channelRepository/channelMembership/observers/getMembers/ChannelMemberLiveCollectionController.d.ts.map +1 -1
- package/dist/channelRepository/channelMembership/observers/getMembers/ChannelMemberPaginationController.d.ts +3 -2
- package/dist/channelRepository/channelMembership/observers/getMembers/ChannelMemberPaginationController.d.ts.map +1 -1
- package/dist/channelRepository/channelMembership/observers/searchMembers/SearchChannelMemberLiveCollectionController.d.ts +14 -0
- package/dist/channelRepository/channelMembership/observers/searchMembers/SearchChannelMemberLiveCollectionController.d.ts.map +1 -0
- package/dist/channelRepository/channelMembership/observers/searchMembers/SearchChannelMemberPaginationController.d.ts +14 -0
- package/dist/channelRepository/channelMembership/observers/searchMembers/SearchChannelMemberPaginationController.d.ts.map +1 -0
- package/dist/channelRepository/channelMembership/observers/searchMembers/SearchChannelMemberQueryStreamController.d.ts +14 -0
- package/dist/channelRepository/channelMembership/observers/searchMembers/SearchChannelMemberQueryStreamController.d.ts.map +1 -0
- package/dist/channelRepository/channelMembership/observers/searchMembers/index.d.ts +2 -0
- package/dist/channelRepository/channelMembership/observers/searchMembers/index.d.ts.map +1 -0
- package/dist/channelRepository/channelMembership/observers/searchMembers/searchMembers.d.ts +21 -0
- package/dist/channelRepository/channelMembership/observers/searchMembers/searchMembers.d.ts.map +1 -0
- package/dist/channelRepository/observers/getChannels/ChannelPaginationController.d.ts +3 -3
- package/dist/channelRepository/utils/prepareChannelPayload.d.ts.map +1 -1
- package/dist/channelRepository/utils/tests/prepareChannelPayload.test.d.ts +1 -1
- package/dist/channelRepository/utils/tests/prepareChannelPayload.test.d.ts.map +1 -1
- package/dist/commentRepository/api/createComment.d.ts.map +1 -1
- package/dist/commentRepository/api/deleteComment.d.ts.map +1 -1
- package/dist/commentRepository/events/onCommentCreatedLocal.d.ts +17 -0
- package/dist/commentRepository/events/onCommentCreatedLocal.d.ts.map +1 -0
- package/dist/commentRepository/events/onCommentDeletedLocal.d.ts +17 -0
- package/dist/commentRepository/events/onCommentDeletedLocal.d.ts.map +1 -0
- package/dist/commentRepository/events/utils.d.ts +1 -1
- package/dist/commentRepository/events/utils.d.ts.map +1 -1
- package/dist/commentRepository/observers/getComment.d.ts.map +1 -1
- package/dist/commentRepository/observers/getComments/CommentLiveCollectionController.d.ts.map +1 -1
- package/dist/communityRepository/communityMembership/observers/getMembers/CommunityMembersLiveCollectionController.d.ts.map +1 -1
- package/dist/communityRepository/communityMembership/observers/searchMembers/SearchCommunityMembersLiveCollectionController.d.ts.map +1 -1
- package/dist/communityRepository/utils/payload.d.ts +2 -6
- package/dist/communityRepository/utils/payload.d.ts.map +1 -1
- package/dist/core/events.d.ts +3 -3
- package/dist/core/events.d.ts.map +1 -1
- package/dist/core/model/idResolvers.d.ts.map +1 -1
- package/dist/core/model/index.d.ts.map +1 -1
- package/dist/group/utils/withUser.d.ts +13 -0
- package/dist/group/utils/withUser.d.ts.map +1 -1
- package/dist/index.cjs.js +1055 -621
- package/dist/index.esm.js +1013 -579
- package/dist/index.umd.js +4 -4
- package/dist/pollRepository/observers/observePoll.d.ts +1 -1
- package/dist/pollRepository/observers/observePoll.d.ts.map +1 -1
- package/dist/postRepository/events/onPostUpdatedLocal.d.ts +17 -0
- package/dist/postRepository/events/onPostUpdatedLocal.d.ts.map +1 -0
- package/dist/postRepository/events/utils.d.ts +1 -1
- package/dist/postRepository/events/utils.d.ts.map +1 -1
- package/dist/postRepository/internalApi/pinPost.d.ts +6 -0
- package/dist/postRepository/internalApi/pinPost.d.ts.map +1 -0
- package/dist/postRepository/internalApi/unpinPost.d.ts +6 -0
- package/dist/postRepository/internalApi/unpinPost.d.ts.map +1 -0
- package/dist/postRepository/observers/getPinnedPosts/PinnedPostLiveCollectionController.d.ts +14 -0
- package/dist/postRepository/observers/getPinnedPosts/PinnedPostLiveCollectionController.d.ts.map +1 -0
- package/dist/postRepository/observers/getPinnedPosts/PinnedPostPaginationController.d.ts +13 -0
- package/dist/postRepository/observers/getPinnedPosts/PinnedPostPaginationController.d.ts.map +1 -0
- package/dist/postRepository/observers/getPinnedPosts/PinnedPostQueryStreamController.d.ts +9 -0
- package/dist/postRepository/observers/getPinnedPosts/PinnedPostQueryStreamController.d.ts.map +1 -0
- package/dist/postRepository/observers/getPinnedPosts.d.ts +12 -0
- package/dist/postRepository/observers/getPinnedPosts.d.ts.map +1 -0
- package/dist/postRepository/observers/getPost.d.ts.map +1 -1
- package/dist/postRepository/observers/getPosts/PostLiveCollectionController.d.ts.map +1 -1
- package/dist/postRepository/observers/index.d.ts +1 -0
- package/dist/postRepository/observers/index.d.ts.map +1 -1
- package/dist/postRepository/utils/payload.d.ts.map +1 -1
- package/dist/report/api/createReport.d.ts +1 -2
- package/dist/report/api/createReport.d.ts.map +1 -1
- package/dist/report/api/deleteReport.d.ts +1 -2
- package/dist/report/api/deleteReport.d.ts.map +1 -1
- package/dist/report/api/isReportedByMe.d.ts +1 -2
- package/dist/report/api/isReportedByMe.d.ts.map +1 -1
- package/dist/streamRepository/observers/getStreams/GetStreamsPageController.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.map +1 -1
- package/dist/userRepository/api/queryBlockedUsers.d.ts.map +1 -1
- package/dist/userRepository/api/queryUsers.d.ts.map +1 -1
- package/dist/userRepository/api/unflagUser.d.ts.map +1 -1
- package/dist/userRepository/api/updateUser.d.ts.map +1 -1
- package/dist/userRepository/events/utils.d.ts.map +1 -1
- package/dist/userRepository/internalApi/getUser.d.ts.map +1 -1
- package/dist/userRepository/internalApi/queryUsers.d.ts.map +1 -1
- package/dist/userRepository/observers/enums.d.ts +8 -0
- package/dist/userRepository/observers/enums.d.ts.map +1 -0
- package/dist/userRepository/observers/getUsers/UserLiveCollectionController.d.ts +14 -0
- package/dist/userRepository/observers/getUsers/UserLiveCollectionController.d.ts.map +1 -0
- package/dist/userRepository/observers/getUsers/UserPaginationController.d.ts +5 -0
- package/dist/userRepository/observers/getUsers/UserPaginationController.d.ts.map +1 -0
- package/dist/userRepository/observers/getUsers/UserQueryStreamController.d.ts +15 -0
- package/dist/userRepository/observers/getUsers/UserQueryStreamController.d.ts.map +1 -0
- package/dist/userRepository/observers/getUsers.d.ts +0 -1
- package/dist/userRepository/observers/getUsers.d.ts.map +1 -1
- package/dist/userRepository/observers/searchUserByDisplayName/SearchUserLiveCollectionController.d.ts +14 -0
- package/dist/userRepository/observers/searchUserByDisplayName/SearchUserLiveCollectionController.d.ts.map +1 -0
- package/dist/userRepository/observers/searchUserByDisplayName/SearchUserPaginationController.d.ts +5 -0
- package/dist/userRepository/observers/searchUserByDisplayName/SearchUserPaginationController.d.ts.map +1 -0
- package/dist/userRepository/observers/searchUserByDisplayName/SearchUserQueryStreamController.d.ts +15 -0
- package/dist/userRepository/observers/searchUserByDisplayName/SearchUserQueryStreamController.d.ts.map +1 -0
- package/dist/userRepository/observers/searchUserByDisplayName.d.ts.map +1 -1
- package/dist/userRepository/utils/index.d.ts +3 -0
- package/dist/userRepository/utils/index.d.ts.map +1 -0
- package/dist/utils/linkedObject/index.d.ts +2 -1
- package/dist/utils/linkedObject/index.d.ts.map +1 -1
- package/dist/utils/linkedObject/pinnedPostLinkedObject.d.ts +2 -0
- package/dist/utils/linkedObject/pinnedPostLinkedObject.d.ts.map +1 -0
- package/dist/utils/linkedObject/postLinkedObject.d.ts.map +1 -1
- package/dist/utils/tests/dummy/channel.d.ts +12 -12
- package/dist/utils/tests/dummy/channel.d.ts.map +1 -1
- package/dist/utils/tests/dummy/community.d.ts +2 -2
- package/dist/utils/tests/dummy/user.d.ts +10 -2
- package/dist/utils/tests/dummy/user.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/@types/core/events.ts +12 -6
- package/src/@types/core/model.ts +6 -0
- package/src/@types/core/payload.ts +17 -7
- package/src/@types/domains/channel.ts +13 -0
- package/src/@types/domains/comment.ts +6 -4
- package/src/@types/domains/community.ts +40 -12
- package/src/@types/domains/group.ts +14 -6
- package/src/@types/domains/pin.ts +27 -0
- package/src/@types/domains/pinnedPost.ts +35 -0
- package/src/@types/domains/poll.ts +5 -1
- package/src/@types/domains/post.ts +9 -5
- package/src/@types/domains/stream.ts +3 -1
- package/src/@types/domains/user.ts +49 -6
- package/src/channelRepository/channelMembership/observers/getMembers/ChannelMemberLiveCollectionController.ts +6 -0
- package/src/channelRepository/channelMembership/observers/searchMembers/SearchChannelMemberLiveCollectionController.ts +142 -0
- package/src/channelRepository/channelMembership/observers/searchMembers/SearchChannelMemberPaginationController.ts +28 -0
- package/src/channelRepository/channelMembership/observers/searchMembers/SearchChannelMemberQueryStreamController.ts +112 -0
- package/src/channelRepository/channelMembership/observers/searchMembers/index.ts +1 -0
- package/src/channelRepository/channelMembership/observers/searchMembers/searchMembers.ts +111 -0
- package/src/channelRepository/utils/prepareChannelPayload.ts +8 -4
- package/src/commentRepository/api/createComment.ts +16 -12
- package/src/commentRepository/api/deleteComment.ts +17 -13
- package/src/commentRepository/events/onCommentCreatedLocal.ts +23 -0
- package/src/commentRepository/events/onCommentDeletedLocal.ts +20 -0
- package/src/commentRepository/events/utils.ts +18 -5
- package/src/commentRepository/observers/getComment.ts +2 -19
- package/src/commentRepository/observers/getComments/CommentLiveCollectionController.ts +4 -0
- package/src/communityRepository/communityMembership/observers/getMembers/CommunityMembersLiveCollectionController.ts +6 -0
- package/src/communityRepository/communityMembership/observers/searchMembers/SearchCommunityMembersLiveCollectionController.ts +6 -0
- package/src/communityRepository/observers/getCommunities/CommunitiesLiveCollectionController.ts +3 -3
- package/src/communityRepository/utils/payload.ts +23 -58
- package/src/core/model/idResolvers.ts +3 -0
- package/src/core/model/index.ts +3 -0
- package/src/group/utils/withUser.ts +33 -0
- package/src/postRepository/api/updatePost.ts +1 -1
- package/src/postRepository/events/onPostUpdatedLocal.ts +20 -0
- package/src/postRepository/events/utils.ts +2 -2
- package/src/postRepository/internalApi/pinPost.ts +28 -0
- package/src/postRepository/internalApi/unpinPost.ts +28 -0
- package/src/postRepository/observers/getPinnedPosts/PinnedPostLiveCollectionController.ts +104 -0
- package/src/postRepository/observers/getPinnedPosts/PinnedPostPaginationController.ts +23 -0
- package/src/postRepository/observers/getPinnedPosts/PinnedPostQueryStreamController.ts +61 -0
- package/src/postRepository/observers/getPinnedPosts.ts +41 -0
- package/src/postRepository/observers/getPost.ts +2 -0
- package/src/postRepository/observers/getPosts/PostLiveCollectionController.ts +2 -0
- package/src/postRepository/observers/index.ts +1 -0
- package/src/postRepository/utils/payload.ts +23 -7
- package/src/report/api/createReport.ts +100 -31
- package/src/report/api/deleteReport.ts +100 -31
- package/src/report/api/isReportedByMe.ts +72 -11
- package/src/userRepository/api/flagUser.ts +5 -2
- package/src/userRepository/api/getUser.ts +4 -43
- package/src/userRepository/api/getUserByIds.ts +5 -2
- package/src/userRepository/api/queryBlockedUsers.ts +6 -6
- package/src/userRepository/api/queryUsers.ts +11 -87
- package/src/userRepository/api/unflagUser.ts +5 -2
- package/src/userRepository/api/updateUser.ts +5 -11
- package/src/userRepository/events/utils.ts +4 -1
- package/src/userRepository/internalApi/getUser.ts +12 -16
- package/src/userRepository/internalApi/queryUsers.ts +7 -4
- package/src/userRepository/observers/enums.ts +7 -0
- package/src/userRepository/observers/getUsers/UserLiveCollectionController.ts +131 -0
- package/src/userRepository/observers/getUsers/UserPaginationController.ts +25 -0
- package/src/userRepository/observers/getUsers/UserQueryStreamController.ts +82 -0
- package/src/userRepository/observers/getUsers.ts +7 -137
- package/src/userRepository/observers/searchUserByDisplayName/SearchUserLiveCollectionController.ts +116 -0
- package/src/userRepository/observers/searchUserByDisplayName/SearchUserPaginationController.ts +25 -0
- package/src/userRepository/observers/searchUserByDisplayName/SearchUserQueryStreamController.ts +82 -0
- package/src/userRepository/observers/searchUserByDisplayName.ts +25 -1
- package/src/userRepository/utils/index.ts +13 -0
- package/src/utils/linkedObject/index.ts +2 -0
- package/src/utils/linkedObject/pinnedPostLinkedObject.ts +28 -0
- package/src/utils/linkedObject/postLinkedObject.ts +6 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"poll.d.ts","sourceRoot":"","sources":["../../../src/@types/domains/poll.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC;AAEV,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,KAAK,CAAC;QACd,KAAK,YAAY,GAAG,MAAM,CAAC;QAE3B,KAAK,cAAc,GAAG,QAAQ,GAAG,UAAU,CAAC;QAE5C,KAAK,UAAU,GAAG;YAChB,EAAE,EAAE,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global {
|
|
|
11
11
|
type PostTargetType = Amity.Feed['targetType'] | 'content';
|
|
12
12
|
type PostContentType = ValueOf<typeof PostContentType> | string;
|
|
13
13
|
type PostActionType = 'onFetch' | 'onCreate' | 'onUpdate' | 'onDelete' | 'onApproved' | 'onDeclined' | 'onFlagged' | 'onUnflagged' | 'onReactionAdded' | 'onReactionRemoved';
|
|
14
|
-
type
|
|
14
|
+
type RawPost<T extends PostContentType = any> = {
|
|
15
15
|
postId: string;
|
|
16
|
-
postedUserId: Amity.
|
|
17
|
-
parentId: Amity.
|
|
18
|
-
parentPostId: Amity.
|
|
16
|
+
postedUserId: Amity.RawUser['userId'];
|
|
17
|
+
parentId: Amity.RawPost['postId'];
|
|
18
|
+
parentPostId: Amity.RawPost['postId'];
|
|
19
19
|
targetType: PostTargetType;
|
|
20
20
|
targetId: string;
|
|
21
21
|
feedId: Amity.Feed['feedId'];
|
|
22
|
-
children: Amity.
|
|
22
|
+
children: Amity.RawPost['postId'][];
|
|
23
23
|
comments: Amity.InternalComment['commentId'][];
|
|
24
24
|
commentsCount: number;
|
|
25
25
|
hasFlaggedChildren: false;
|
|
26
26
|
hasFlaggedComment: false;
|
|
27
27
|
editedAt: Amity.timestamp;
|
|
28
28
|
} & Amity.Content<T> & Amity.Metadata & Amity.Flaggable & Amity.Reactable & Amity.Taggable & Amity.Timestamps & Amity.SoftDelete & Amity.Subscribable & Amity.AnalyticPostData & Amity.Mentionable<'user'>;
|
|
29
|
+
type InternalPost<T extends PostContentType = any> = RawPost<T>;
|
|
29
30
|
type PostLinkObject = {
|
|
30
31
|
latestComments: (Amity.Comment | null)[];
|
|
31
32
|
creator: Amity.User | undefined;
|
|
32
33
|
analytics: {
|
|
33
34
|
markAsViewed: () => void;
|
|
34
35
|
};
|
|
36
|
+
pin: (placement: string) => void;
|
|
37
|
+
unpin: (placement: string) => void;
|
|
35
38
|
};
|
|
36
39
|
type Post<T extends PostContentType = any> = Amity.InternalPost<T> & Amity.PostLinkObject;
|
|
37
40
|
type QueryPosts = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"post.d.ts","sourceRoot":"","sources":["../../../src/@types/domains/post.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe;;;;;;;EAO1B,CAAC;AAEH,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,KAAK,CAAC;QAEd,KAAK,cAAc,GAAG,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC;QAE3D,KAAK,eAAe,GAAG,OAAO,CAAC,OAAO,eAAe,CAAC,GAAG,MAAM,CAAC;QAEhE,KAAK,cAAc,GACf,SAAS,GACT,UAAU,GACV,UAAU,GACV,UAAU,GACV,YAAY,GACZ,YAAY,GACZ,WAAW,GACX,aAAa,GACb,iBAAiB,GACjB,mBAAmB,CAAC;QAExB,KAAK,
|
|
1
|
+
{"version":3,"file":"post.d.ts","sourceRoot":"","sources":["../../../src/@types/domains/post.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe;;;;;;;EAO1B,CAAC;AAEH,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,KAAK,CAAC;QAEd,KAAK,cAAc,GAAG,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC;QAE3D,KAAK,eAAe,GAAG,OAAO,CAAC,OAAO,eAAe,CAAC,GAAG,MAAM,CAAC;QAEhE,KAAK,cAAc,GACf,SAAS,GACT,UAAU,GACV,UAAU,GACV,UAAU,GACV,YAAY,GACZ,YAAY,GACZ,WAAW,GACX,aAAa,GACb,iBAAiB,GACjB,mBAAmB,CAAC;QAExB,KAAK,OAAO,CAAC,CAAC,SAAS,eAAe,GAAG,GAAG,IAAI;YAC9C,MAAM,EAAE,MAAM,CAAC;YACf,YAAY,EAAE,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;YACtC,QAAQ,EAAE,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;YAClC,YAAY,EAAE,KA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I,KAAK,CAAC,YAAY,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,cAAc,CAAC;QAE1F,KAAK,UAAU,GAAG;YAChB,QAAQ,EAAE,MAAM,CAAC;YACjB,UAAU,EAAE,KAAK,CAAC,YAAY,CAAC,YAAY,CAAC,CAAC;YAC7C,MAAM,CAAC,EAAE,aAAa,GAAG,cAAc,CAAC;YACxC,SAAS,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,eAAe,EAAE,MAAM,CAAC,EAAE,CAAC;YACrD,cAAc,CAAC,EAAE,OAAO,CAAC;YACzB,OAAO,CAAC,EAAE,OAAO,CAAC;YAClB,QAAQ,CAAC,EAAE,WAAW,GAAG,WAAW,CAAC;YACrC,IAAI,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;YAC9B,sBAAsB,CAAC,EAAE,OAAO,CAAC;YACjC,IAAI,CAAC,EAAE,MAAM,CAAC;YACd,KAAK,CAAC,EAAE,MAAM,CAAC;SAChB,CAAC;QAGF,KAAK,kBAAkB,GAAG,KAAK,CAAC,oBAAoB,CAClD,IAAI,CAAC,UAAU,EAAE,QAAQ,GAAG,MAAM,CAAC,GAAG;YACpC,MAAM,CAAC,EAAE,aAAa,GAAG,cAAc,CAAC;SACzC,CACF,CAAC;QAEF,KAAK,uBAAuB,GAAG,KAAK,CAAC,mBAAmB,CACtD,KAAK,CAAC,YAAY,CAAC,QAAQ,CAAC,EAC5B,IAAI,CAAC,UAAU,EAAE,MAAM,CAAC,CACzB,CAAC;KACH;CACF"}
|
|
@@ -37,7 +37,7 @@ declare global {
|
|
|
37
37
|
startTime: number;
|
|
38
38
|
stopTime: number;
|
|
39
39
|
};
|
|
40
|
-
type
|
|
40
|
+
type RawStream = {
|
|
41
41
|
streamId: string;
|
|
42
42
|
title: string;
|
|
43
43
|
thumbnailFileId?: Amity.File<'image'>['fileId'];
|
|
@@ -53,6 +53,7 @@ declare global {
|
|
|
53
53
|
watcherUrl: MultiFormat<StreamEndpoint>;
|
|
54
54
|
recordings: MultiFormat<StreamRecording>[];
|
|
55
55
|
} & Amity.Metadata & Amity.Timestamps & Amity.SoftDelete;
|
|
56
|
+
type InternalStream = RawStream;
|
|
56
57
|
type StreamLinkedObject = {
|
|
57
58
|
moderation?: Amity.StreamModeration;
|
|
58
59
|
};
|
|
@@ -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,IAAI,CAAC,EAAE,CAAC,CAAC;SACV,CAAC;QAEF,KAAK,cAAc,GAAG;YACpB,IAAI,EAAE,MAAM,CAAC;YACb,OAAO,EAAE,MAAM,CAAC;SACjB,CAAC;QAEF,KAAK,cAAc,GAAG;YACpB,GAAG,EAAE,MAAM,CAAC;YACZ,UAAU,EAAE;gBACV,MAAM,EAAE,MAAM,CAAC;gBACf,OAAO,EAAE,MAAM,CAAC;gBAChB,UAAU,EAAE,MAAM,CAAC;gBACnB,KAAK,EAAE,MAAM,CAAC;aACf,CAAC;SACH,CAAC;QAEF,KAAK,eAAe,GAAG;YACrB,GAAG,EAAE,MAAM,CAAC;YACZ,QAAQ,EAAE,MAAM,CAAC;YACjB,SAAS,EAAE,MAAM,CAAC;YAClB,QAAQ,EAAE,MAAM,CAAC;SAClB,CAAC;QAEF,KAAK,
|
|
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AAE,KAAK,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC;YAC3C,UAAU,EAAE,KAAK,CAAC,qBAAqB,EAAE,CAAC;YAC1C,eAAe,EAAE,KAAK,CAAC,qBAAqB,EAAE,CAAC;YAC/C,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;YAC3B,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;SAC5B,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,cAAc,CAAC,UAAU,CAAC,EAChC,IAAI,CAAC,YAAY,EAAE,MAAM,CAAC,CAC3B,CAAC;QAEF,KAAK,gBAAgB,GAAG,kBAAkB,GAAG,iBAAiB,GAAG,iBAAiB,CAAC;KACpF;CACF"}
|
|
@@ -1,28 +1,56 @@
|
|
|
1
1
|
export {};
|
|
2
2
|
declare global {
|
|
3
3
|
namespace Amity {
|
|
4
|
+
enum UserSortByEnum {
|
|
5
|
+
FirstCreated = "firstCreated",
|
|
6
|
+
LastCreated = "lastCreated",
|
|
7
|
+
/** @deprecated sortBy displayName is not available */
|
|
8
|
+
DisplayName = "displayName"
|
|
9
|
+
}
|
|
10
|
+
type UserSortBy = `${Amity.UserSortByEnum}`;
|
|
11
|
+
enum SearchUserSortByEnum {
|
|
12
|
+
FirstCreated = "firstCreated",
|
|
13
|
+
LastCreated = "lastCreated",
|
|
14
|
+
DisplayName = "displayName"
|
|
15
|
+
}
|
|
16
|
+
type SearchUserSortBy = `${Amity.SearchUserSortByEnum}`;
|
|
4
17
|
type UserActionType = 'onFetch' | 'onUpdate' | 'onDelete' | 'onFlagged' | 'onUnflagged' | 'onFlagCleared';
|
|
5
|
-
type
|
|
18
|
+
type RawUser = {
|
|
6
19
|
_id: string;
|
|
7
20
|
userId: string;
|
|
8
|
-
|
|
21
|
+
userInternalId: string;
|
|
22
|
+
userPublicId: string;
|
|
9
23
|
displayName?: string;
|
|
10
|
-
avatarFileId?:
|
|
24
|
+
avatarFileId?: string;
|
|
11
25
|
avatarCustomUrl?: string;
|
|
12
26
|
description?: string;
|
|
27
|
+
isBrand: boolean;
|
|
28
|
+
isGlobalBan: boolean;
|
|
29
|
+
} & Amity.Metadata & Amity.Taggable & Amity.Flaggable & Amity.Accredited & Amity.Timestamps & Amity.SoftDelete & Amity.Subscribable;
|
|
30
|
+
type InternalUser = Amity.RawUser & {
|
|
31
|
+
isGlobalBanned: boolean;
|
|
13
32
|
} & Amity.Metadata & Amity.Taggable & Amity.Flaggable & Amity.Accredited & Amity.Timestamps & Amity.SoftDelete & Amity.Subscribable;
|
|
14
33
|
type User = Amity.InternalUser & {
|
|
15
34
|
avatar?: Amity.File<'image'> | null;
|
|
16
35
|
};
|
|
17
36
|
type QueryUsers = {
|
|
37
|
+
/** @deprecated use searchUsers instead */
|
|
38
|
+
displayName?: Amity.InternalUser['displayName'];
|
|
39
|
+
filter?: 'all' | 'flagged';
|
|
40
|
+
sortBy?: Amity.UserSortBy | Amity.UserSortByEnum;
|
|
41
|
+
limit?: number;
|
|
42
|
+
page?: string;
|
|
43
|
+
};
|
|
44
|
+
type QuerySearchUsers = {
|
|
18
45
|
displayName?: Amity.InternalUser['displayName'];
|
|
19
46
|
filter?: 'all' | 'flagged';
|
|
20
|
-
sortBy?:
|
|
47
|
+
sortBy?: Amity.SearchUserSortBy | Amity.SearchUserSortByEnum;
|
|
21
48
|
limit?: number;
|
|
22
49
|
page?: string;
|
|
23
50
|
};
|
|
24
|
-
type UserLiveCollection = Amity.LiveCollectionParams<Omit<QueryUsers, 'page'>>;
|
|
25
|
-
type
|
|
51
|
+
type UserLiveCollection = Amity.LiveCollectionParams<Omit<Amity.QueryUsers, 'page'>>;
|
|
52
|
+
type SearchUserLiveCollection = Amity.LiveCollectionParams<Omit<Amity.QuerySearchUsers, 'sortBy'>>;
|
|
53
|
+
type UserSearchLiveCollection = Amity.SearchUserLiveCollection;
|
|
26
54
|
type UserLiveCollectionCache = Amity.LiveCollectionCache<Amity.InternalUser['userId'], Pick<QueryUsers, 'page'>>;
|
|
27
55
|
}
|
|
28
56
|
}
|
|
@@ -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;YACjB,YAAY,iBAAiB;YAC7B,WAAW,gBAAgB;YAC3B,sDAAsD;YACtD,WAAW,gBAAgB;SAC5B;QAED,KAAK,UAAU,GAAG,GAAG,KAAK,CAAC,cAAc,EAAE,CAAC;QAE5C,KAAK,oBAAoB;YACvB,YAAY,iBAAiB;YAC7B,WAAW,gBAAgB;YAC3B,WAAW,gBAAgB;SAC5B;QAED,KAAK,gBAAgB,GAAG,GAAG,KAAK,CAAC,oBAAoB,EAAE,CAAC;QAExD,KAAK,cAAc,GACf,SAAS,GACT,UAAU,GACV,UAAU,GACV,WAAW,GACX,aAAa,GACb,eAAe,CAAC;QAEpB,KAAK,OAAO,GAAG;YACb,GAAG,EAAE,MAAM,CAAC;YACZ,MAAM,EAAE,MAAM,CAAC;YACf,cAAc,EAAE,MAAM,CAAC;YACvB,YAAY,EAAE,MAAM,CAAC;YACrB,WAAW,CAAC,EAAE,MAAM,CAAC;YACrB,YAAY,CAAC,EAAE,MAAM,CAAC;YACtB,eAAe,CAA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AAK,CAAC,EAAE,MAAM,CAAC;YACf,IAAI,CAAC,EAAE,MAAM,CAAC;SACf,CAAC;QAEF,KAAK,kBAAkB,GAAG,KAAK,CAAC,oBAAoB,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC,CAAC;QAErF,KAAK,wBAAwB,GAAG,KAAK,CAAC,oBAAoB,CACxD,IAAI,CAAC,KAAK,CAAC,gBAAgB,EAAE,QAAQ,CAAC,CACvC,CAAC;QAEF,KAAK,wBAAwB,GAAG,KAAK,CAAC,wBAAwB,CAAC;QAE/D,KAAK,uBAAuB,GAAG,KAAK,CAAC,mBAAmB,CACtD,KAAK,CAAC,YAAY,CAAC,QAAQ,CAAC,EAC5B,IAAI,CAAC,UAAU,EAAE,MAAM,CAAC,CACzB,CAAC;KACH;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChannelMemberLiveCollectionController.d.ts","sourceRoot":"","sources":["../../../../../src/channelRepository/channelMembership/observers/getMembers/ChannelMemberLiveCollectionController.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iCAAiC,EAAE,MAAM,qCAAqC,CAAC;AAExF,OAAO,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAoB1F,qBAAa,qCAAsC,SAAQ,wBAAwB,CACjF,aAAa,EACb,KAAK,CAAC,4BAA4B,EAClC,KAAK,CAAC,UAAU,CAAC,SAAS,CAAC,EAC3B,iCAAiC,CAClC;IACC,OAAO,CAAC,qBAAqB,CAAqC;IAElE,OAAO,CAAC,KAAK,CAAqC;gBAGhD,KAAK,EAAE,KAAK,CAAC,4BAA4B,EACzC,QAAQ,EAAE,KAAK,CAAC,sBAAsB,CAAC,KAAK,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;IAoBrE,SAAS,CAAC,KAAK;cAUC,YAAY,CAAC,YAAY,EAAE,KAAK,CAAC,wBAAwB,GAAG,KAAK,CAAC,UAAU;IAI5F,SAAS,CAAC,kBAAkB,CAAC,EAC3B,QAAQ,EACR,SAAS,EACT,OAAO,GACR,EAAE,KAAK,CAAC,sCAAsC,CAAC,aAAa,CAAC;IAI9D,iBAAiB;IAajB,YAAY,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,CAAC,0BAA0B;IAsBzE,WAAW,CAAC,IAAI,EAAE,KAAK,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE;
|
|
1
|
+
{"version":3,"file":"ChannelMemberLiveCollectionController.d.ts","sourceRoot":"","sources":["../../../../../src/channelRepository/channelMembership/observers/getMembers/ChannelMemberLiveCollectionController.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iCAAiC,EAAE,MAAM,qCAAqC,CAAC;AAExF,OAAO,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAoB1F,qBAAa,qCAAsC,SAAQ,wBAAwB,CACjF,aAAa,EACb,KAAK,CAAC,4BAA4B,EAClC,KAAK,CAAC,UAAU,CAAC,SAAS,CAAC,EAC3B,iCAAiC,CAClC;IACC,OAAO,CAAC,qBAAqB,CAAqC;IAElE,OAAO,CAAC,KAAK,CAAqC;gBAGhD,KAAK,EAAE,KAAK,CAAC,4BAA4B,EACzC,QAAQ,EAAE,KAAK,CAAC,sBAAsB,CAAC,KAAK,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;IAoBrE,SAAS,CAAC,KAAK;cAUC,YAAY,CAAC,YAAY,EAAE,KAAK,CAAC,wBAAwB,GAAG,KAAK,CAAC,UAAU;IAI5F,SAAS,CAAC,kBAAkB,CAAC,EAC3B,QAAQ,EACR,SAAS,EACT,OAAO,GACR,EAAE,KAAK,CAAC,sCAAsC,CAAC,aAAa,CAAC;IAI9D,iBAAiB;IAajB,YAAY,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,CAAC,0BAA0B;IAsBzE,WAAW,CAAC,IAAI,EAAE,KAAK,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE;CA6ChD"}
|
|
@@ -6,8 +6,9 @@ import { PaginationController } from '~/core/liveCollection/PaginationController
|
|
|
6
6
|
export declare class ChannelMemberPaginationController extends PaginationController<'channelUser', Amity.ChannelMembersLiveCollection> {
|
|
7
7
|
getRequest(queryParams: Amity.ChannelMembersLiveCollection, token: string | undefined): Promise<{
|
|
8
8
|
channels: Amity.RawChannel<any>[];
|
|
9
|
-
channelUsers: Amity.RawMembership<"channel"
|
|
9
|
+
channelUsers: Amity.RawMembership<"channel">[];
|
|
10
10
|
messagePreviews: Amity.MessagePreviewPayload<any>[];
|
|
11
|
-
|
|
11
|
+
users: Amity.RawUser[];
|
|
12
|
+
} & Omit<Amity.UserPayload, "users"> & Amity.Pagination>;
|
|
12
13
|
}
|
|
13
14
|
//# sourceMappingURL=ChannelMemberPaginationController.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChannelMemberPaginationController.d.ts","sourceRoot":"","sources":["../../../../../src/channelRepository/channelMembership/observers/getMembers/ChannelMemberPaginationController.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AAGlF;;;GAGG;AACH,qBAAa,iCAAkC,SAAQ,oBAAoB,CACzE,aAAa,EACb,KAAK,CAAC,4BAA4B,CACnC;IACO,UAAU,CAAC,WAAW,EAAE,KAAK,CAAC,4BAA4B,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS
|
|
1
|
+
{"version":3,"file":"ChannelMemberPaginationController.d.ts","sourceRoot":"","sources":["../../../../../src/channelRepository/channelMembership/observers/getMembers/ChannelMemberPaginationController.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AAGlF;;;GAGG;AACH,qBAAa,iCAAkC,SAAQ,oBAAoB,CACzE,aAAa,EACb,KAAK,CAAC,4BAA4B,CACnC;IACO,UAAU,CAAC,WAAW,EAAE,KAAK,CAAC,4BAA4B,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS;;;;;;CAc5F"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { SearchChannelMemberPaginationController } from './SearchChannelMemberPaginationController';
|
|
2
|
+
import { LiveCollectionController } from '~/core/liveCollection/LiveCollectionController';
|
|
3
|
+
export declare class SearchChannelMemberLiveCollectionController extends LiveCollectionController<'channelUser', Amity.SearchChannelMembersLiveCollection, Amity.Membership<'channel'>, SearchChannelMemberPaginationController> {
|
|
4
|
+
private queryStreamController;
|
|
5
|
+
private query;
|
|
6
|
+
constructor(query: Amity.SearchChannelMembersLiveCollection, callback: Amity.LiveCollectionCallback<Amity.Membership<'channel'>>);
|
|
7
|
+
protected setup(): void;
|
|
8
|
+
protected persistModel(queryPayload: Amity.ChannelMembershipPayload & Amity.Pagination): Promise<void>;
|
|
9
|
+
protected persistQueryStream({ response, direction, refresh, }: Amity.LiveCollectionPersistQueryStreamParams<'channelUser'>): void;
|
|
10
|
+
startSubscription(): Amity.Unsubscriber[];
|
|
11
|
+
notifyChange({ origin, loading, error }: Amity.LiveCollectionNotifyParams): void;
|
|
12
|
+
applyFilter(data: Amity.Membership<'channel'>[]): Amity.Membership<"channel">[];
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=SearchChannelMemberLiveCollectionController.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SearchChannelMemberLiveCollectionController.d.ts","sourceRoot":"","sources":["../../../../../src/channelRepository/channelMembership/observers/searchMembers/SearchChannelMemberLiveCollectionController.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,uCAAuC,EAAE,MAAM,2CAA2C,CAAC;AAEpG,OAAO,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAc1F,qBAAa,2CAA4C,SAAQ,wBAAwB,CACvF,aAAa,EACb,KAAK,CAAC,kCAAkC,EACxC,KAAK,CAAC,UAAU,CAAC,SAAS,CAAC,EAC3B,uCAAuC,CACxC;IACC,OAAO,CAAC,qBAAqB,CAA2C;IAExE,OAAO,CAAC,KAAK,CAA2C;gBAGtD,KAAK,EAAE,KAAK,CAAC,kCAAkC,EAC/C,QAAQ,EAAE,KAAK,CAAC,sBAAsB,CAAC,KAAK,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;IAoBrE,SAAS,CAAC,KAAK;cAUC,YAAY,CAAC,YAAY,EAAE,KAAK,CAAC,wBAAwB,GAAG,KAAK,CAAC,UAAU;IAI5F,SAAS,CAAC,kBAAkB,CAAC,EAC3B,QAAQ,EACR,SAAS,EACT,OAAO,GACR,EAAE,KAAK,CAAC,sCAAsC,CAAC,aAAa,CAAC;IAI9D,iBAAiB;IAajB,YAAY,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,CAAC,0BAA0B;IAsBzE,WAAW,CAAC,IAAI,EAAE,KAAK,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE;CAiChD"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { PaginationController } from '~/core/liveCollection/PaginationController';
|
|
2
|
+
/**
|
|
3
|
+
* TODO: handle cache receive cache option, and cache policy
|
|
4
|
+
* TODO: check if querybyIds is supported
|
|
5
|
+
*/
|
|
6
|
+
export declare class SearchChannelMemberPaginationController extends PaginationController<'channelUser', Amity.ChannelMembersLiveCollection> {
|
|
7
|
+
getRequest(queryParams: Amity.ChannelMembersLiveCollection, token: string | undefined): Promise<{
|
|
8
|
+
channels: Amity.RawChannel<any>[];
|
|
9
|
+
channelUsers: Amity.RawMembership<"channel">[];
|
|
10
|
+
messagePreviews: Amity.MessagePreviewPayload<any>[];
|
|
11
|
+
users: Amity.RawUser[];
|
|
12
|
+
} & Omit<Amity.UserPayload, "users"> & Amity.Pagination>;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=SearchChannelMemberPaginationController.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SearchChannelMemberPaginationController.d.ts","sourceRoot":"","sources":["../../../../../src/channelRepository/channelMembership/observers/searchMembers/SearchChannelMemberPaginationController.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oBAAoB,EAAE,MAAM,4CAA4C,CAAC;AAGlF;;;GAGG;AACH,qBAAa,uCAAwC,SAAQ,oBAAoB,CAC/E,aAAa,EACb,KAAK,CAAC,4BAA4B,CACnC;IACO,UAAU,CAAC,WAAW,EAAE,KAAK,CAAC,4BAA4B,EAAE,KAAK,EAAE,MAAM,GAAG,SAAS;;;;;;CAc5F"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { QueryStreamController } from '~/core/liveCollection/QueryStreamController';
|
|
2
|
+
export declare class SearchChannelMemberQueryStreamController extends QueryStreamController<Amity.ChannelMembershipPayload, Amity.SearchChannelMembersLiveCollection> {
|
|
3
|
+
private notifyChange;
|
|
4
|
+
private preparePayload;
|
|
5
|
+
constructor(query: Amity.SearchChannelMembersLiveCollection, cacheKey: string[], notifyChange: (params: Amity.LiveCollectionNotifyParams) => void, preparePayload: (response: Amity.ChannelMembershipPayload) => Promise<Amity.ProcessedChannelPayload>);
|
|
6
|
+
saveToMainDB(response: Amity.ChannelMembershipPayload): Promise<void>;
|
|
7
|
+
appendToQueryStream(response: Amity.ChannelPayload & Partial<Amity.Pagination>, direction: Amity.LiveCollectionPageDirection, refresh?: boolean): void;
|
|
8
|
+
reactor(action: string): (channel: Amity.InternalChannel, channelMember: Amity.Membership<'channel'>) => void;
|
|
9
|
+
subscribeRTE(createSubscriber: {
|
|
10
|
+
fn: (reactor: (channel: Amity.InternalChannel, channelMember: Amity.Membership<'channel'>) => void) => Amity.Unsubscriber;
|
|
11
|
+
action: string;
|
|
12
|
+
}[]): Amity.Unsubscriber[];
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=SearchChannelMemberQueryStreamController.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SearchChannelMemberQueryStreamController.d.ts","sourceRoot":"","sources":["../../../../../src/channelRepository/channelMembership/observers/searchMembers/SearchChannelMemberQueryStreamController.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,6CAA6C,CAAC;AAMpF,qBAAa,wCAAyC,SAAQ,qBAAqB,CACjF,KAAK,CAAC,wBAAwB,EAC9B,KAAK,CAAC,kCAAkC,CACzC;IACC,OAAO,CAAC,YAAY,CAAqD;IAEzE,OAAO,CAAC,cAAc,CAEsB;gBAG1C,KAAK,EAAE,KAAK,CAAC,kCAAkC,EAC/C,QAAQ,EAAE,MAAM,EAAE,EAClB,YAAY,EAAE,CAAC,MAAM,EAAE,KAAK,CAAC,0BAA0B,KAAK,IAAI,EAChE,cAAc,EAAE,CACd,QAAQ,EAAE,KAAK,CAAC,wBAAwB,KACrC,OAAO,CAAC,KAAK,CAAC,uBAAuB,CAAC;IAOvC,YAAY,CAAC,QAAQ,EAAE,KAAK,CAAC,wBAAwB;IAW3D,mBAAmB,CACjB,QAAQ,EAAE,KAAK,CAAC,cAAc,GAAG,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,EAC1D,SAAS,EAAE,KAAK,CAAC,2BAA2B,EAC5C,OAAO,UAAQ;IA6BjB,OAAO,CAAC,MAAM,EAAE,MAAM,aACH,MAAM,eAAe,iBAAiB,MAAM,UAAU,CAAC,SAAS,CAAC;IAwBpF,YAAY,CACV,gBAAgB,EAAE;QAChB,EAAE,EAAE,CACF,OAAO,EAAE,CACP,OAAO,EAAE,KAAK,CAAC,eAAe,EAC9B,aAAa,EAAE,KAAK,CAAC,UAAU,CAAC,SAAS,CAAC,KACvC,IAAI,KACN,KAAK,CAAC,YAAY,CAAC;QACxB,MAAM,EAAE,MAAM,CAAC;KAChB,EAAE;CAIN"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/channelRepository/channelMembership/observers/searchMembers/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare const applyFilter: <T extends Amity.Membership<"channel">>(data: T[], params: Amity.ChannelMembersLiveCollection) => T[];
|
|
2
|
+
/**
|
|
3
|
+
* ```js
|
|
4
|
+
* import { searchChannelMembers } from '@amityco/ts-sdk'
|
|
5
|
+
*
|
|
6
|
+
* let channelMembers = []
|
|
7
|
+
* const unsub = searchChannelMembers({
|
|
8
|
+
* channelId: Amity.Channel['channelId'],
|
|
9
|
+
* }, response => merge(channelMembers, response.data))
|
|
10
|
+
* ```
|
|
11
|
+
*
|
|
12
|
+
* Observe all mutations on a list of {@link Amity.ChannelUser}s
|
|
13
|
+
*
|
|
14
|
+
* @param params for querying channel users
|
|
15
|
+
* @param callback the function to call when new data are available
|
|
16
|
+
* @returns An {@link Amity.Unsubscriber} function to run when willing to stop observing the channel users
|
|
17
|
+
*
|
|
18
|
+
* @category Channel Live Collection
|
|
19
|
+
*/
|
|
20
|
+
export declare const searchMembers: (params: Amity.SearchChannelMembersLiveCollection, callback: Amity.LiveCollectionCallback<Amity.Membership<'channel'>>, config?: Amity.LiveCollectionConfig) => () => void;
|
|
21
|
+
//# sourceMappingURL=searchMembers.d.ts.map
|
package/dist/channelRepository/channelMembership/observers/searchMembers/searchMembers.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"searchMembers.d.ts","sourceRoot":"","sources":["../../../../../src/channelRepository/channelMembership/observers/searchMembers/searchMembers.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,WAAW,6DAEd,MAAM,4BAA4B,QAqC3C,CAAC;AAKF;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,aAAa,WAChB,MAAM,kCAAkC,YACtC,MAAM,sBAAsB,CAAC,MAAM,UAAU,CAAC,SAAS,CAAC,CAAC,WAC1D,MAAM,oBAAoB,eA4BpC,CAAC"}
|
|
@@ -4,11 +4,11 @@ import { PaginationController } from '~/core/liveCollection/PaginationController
|
|
|
4
4
|
* TODO: check if querybyIds is supported
|
|
5
5
|
*/
|
|
6
6
|
export declare class ChannelPaginationController extends PaginationController<'channel', Amity.ChannelLiveCollection> {
|
|
7
|
-
getRequest(queryParams: Amity.ChannelLiveCollection, token: string | undefined): Promise<{
|
|
7
|
+
getRequest(queryParams: Amity.ChannelLiveCollection, token: string | undefined): Promise<Amity.UserPayload & {
|
|
8
8
|
channels: Amity.RawChannel<any>[];
|
|
9
|
-
channelUsers: Amity.RawMembership<"channel"
|
|
9
|
+
channelUsers: Amity.RawMembership<"channel">[];
|
|
10
10
|
messagePreviews: Amity.MessagePreviewPayload<any>[];
|
|
11
11
|
messageFeedsInfo?: Amity.messageFeedsInfoPayload[] | undefined;
|
|
12
|
-
} & Amity.
|
|
12
|
+
} & Amity.Pagination>;
|
|
13
13
|
}
|
|
14
14
|
//# sourceMappingURL=ChannelPaginationController.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prepareChannelPayload.d.ts","sourceRoot":"","sources":["../../../src/channelRepository/utils/prepareChannelPayload.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"prepareChannelPayload.d.ts","sourceRoot":"","sources":["../../../src/channelRepository/utils/prepareChannelPayload.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,4BAA4B,UAA6C,CAAC;AACvF,eAAO,MAAM,oBAAoB,aAAc,KAAK,MAAM,UAAU,EAAE,MAAM,CAAC,YAChC,CAAC;AAE9C,wBAAgB,cAAc,CAC5B,OAAO,EAAE,KAAK,CAAC,UAAU,EACzB,OAAO,GAAE;IAAE,uBAAuB,CAAC,EAAE,OAAO,CAAA;CAAsC,GACjF,KAAK,CAAC,eAAe,CA+BvB;AAED,eAAO,MAAM,qBAAqB,eACpB,MAAM,cAAc,YACvB;IAAE,uBAAuB,CAAC,EAAE,OAAO,CAAA;CAAE,SAO/C,CAAC;AAEF,eAAO,MAAM,qBAAqB,eACpB,MAAM,cAAc,YACvB;IAAE,uBAAuB,CAAC,EAAE,OAAO,CAAA;CAAE,KAC7C,QAAQ,MAAM,uBAAuB,CAiDvC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const communityChannel: Amity.RawChannel;
|
|
2
2
|
export declare const liveChannel: Amity.RawChannel;
|
|
3
3
|
export declare const conversationChannel: Amity.RawChannel;
|
|
4
|
-
export declare const rawChannelUser: Amity.RawMembership<"channel"
|
|
4
|
+
export declare const rawChannelUser: Amity.RawMembership<"channel">;
|
|
5
5
|
export declare const channelUser: Amity.Membership<"channel">;
|
|
6
6
|
//# sourceMappingURL=prepareChannelPayload.test.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prepareChannelPayload.test.d.ts","sourceRoot":"","sources":["../../../../src/channelRepository/utils/tests/prepareChannelPayload.test.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,UAGnC,CAAC;AACH,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,UAG9B,CAAC;AACH,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,UAGtC,CAAC;AAEH,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"prepareChannelPayload.test.d.ts","sourceRoot":"","sources":["../../../../src/channelRepository/utils/tests/prepareChannelPayload.test.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,UAGnC,CAAC;AACH,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,UAG9B,CAAC;AACH,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,UAGtC,CAAC;AAEH,eAAO,MAAM,cAAc,gCAA2B,CAAC;AAEvD,eAAO,MAAM,WAAW,6BAAuD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createComment.d.ts","sourceRoot":"","sources":["../../../src/commentRepository/api/createComment.ts"],"names":[],"mappings":"AAaA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,aAAa,WAChB,KACN,aAAa,CAAC,MAAM,kBAAkB,CAAC,EACrC,MAAM,GACN,eAAe,GACf,aAAa,GACb,UAAU,GACV,UAAU,GACV,YAAY,GACZ,aAAa,CAChB,KACA,QAAQ,MAAM,MAAM,CAAC,aAAa,CAAC,
|
|
1
|
+
{"version":3,"file":"createComment.d.ts","sourceRoot":"","sources":["../../../src/commentRepository/api/createComment.ts"],"names":[],"mappings":"AAaA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,aAAa,WAChB,KACN,aAAa,CAAC,MAAM,kBAAkB,CAAC,EACrC,MAAM,GACN,eAAe,GACf,aAAa,GACb,UAAU,GACV,UAAU,GACV,YAAY,GACZ,aAAa,CAChB,KACA,QAAQ,MAAM,MAAM,CAAC,aAAa,CAAC,CAuErC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deleteComment.d.ts","sourceRoot":"","sources":["../../../src/commentRepository/api/deleteComment.ts"],"names":[],"mappings":"AAeA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,aAAa,cACb,aAAa,CAAC,WAAW,CAAC,0BAEpC,QAAQ,aAAa,
|
|
1
|
+
{"version":3,"file":"deleteComment.d.ts","sourceRoot":"","sources":["../../../src/commentRepository/api/deleteComment.ts"],"names":[],"mappings":"AAeA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,aAAa,cACb,aAAa,CAAC,WAAW,CAAC,0BAEpC,QAAQ,aAAa,CAkEvB,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ```js
|
|
3
|
+
* import { onCommentCreated } from '@amityco/ts-sdk'
|
|
4
|
+
* const dispose = onCommentCreated(comment => {
|
|
5
|
+
* // ...
|
|
6
|
+
* })
|
|
7
|
+
* ```
|
|
8
|
+
*
|
|
9
|
+
* Fired when a {@link Amity.InternalComment} has been created
|
|
10
|
+
*
|
|
11
|
+
* @param callback The function to call when the event was fired
|
|
12
|
+
* @returns an {@link Amity.Unsubscriber} function to stop listening
|
|
13
|
+
*
|
|
14
|
+
* @category Comment Events
|
|
15
|
+
*/
|
|
16
|
+
export declare const onCommentCreatedLocal: (callback: Amity.Listener<Amity.InternalComment>) => Amity.Unsubscriber;
|
|
17
|
+
//# sourceMappingURL=onCommentCreatedLocal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onCommentCreatedLocal.d.ts","sourceRoot":"","sources":["../../../src/commentRepository/events/onCommentCreatedLocal.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,qBAAqB,aACtB,MAAM,QAAQ,CAAC,MAAM,eAAe,CAAC,KAC9C,MAAM,YAGR,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ```js
|
|
3
|
+
* import { onCommentDeleteLocal } from '@amityco/ts-sdk'
|
|
4
|
+
* const dispose = onCommentDeleteLocal(comment => {
|
|
5
|
+
* // ...
|
|
6
|
+
* })
|
|
7
|
+
* ```
|
|
8
|
+
*
|
|
9
|
+
* Fired when a {@link Amity.InternalComment} has been deleted
|
|
10
|
+
*
|
|
11
|
+
* @param callback The function to call when the event was fired
|
|
12
|
+
* @returns an {@link Amity.Unsubscriber} function to stop listening
|
|
13
|
+
*
|
|
14
|
+
* @category Comment Events
|
|
15
|
+
*/
|
|
16
|
+
export declare const onCommentDeleteLocal: (callback: Amity.Listener<Amity.InternalComment>) => Amity.Unsubscriber;
|
|
17
|
+
//# sourceMappingURL=onCommentDeletedLocal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"onCommentDeletedLocal.d.ts","sourceRoot":"","sources":["../../../src/commentRepository/events/onCommentDeletedLocal.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,oBAAoB,aACrB,MAAM,QAAQ,CAAC,MAAM,eAAe,CAAC,KAC9C,MAAM,YAA+E,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const createCommentEventSubscriber: (event: keyof Amity.MqttCommentEvents, callback: Amity.Listener<Amity.InternalComment>) => Amity.Unsubscriber;
|
|
1
|
+
export declare const createCommentEventSubscriber: (event: keyof Amity.MqttCommentEvents | keyof Amity.LocalCommentEvents, callback: Amity.Listener<Amity.InternalComment>) => Amity.Unsubscriber;
|
|
2
2
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/commentRepository/events/utils.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,4BAA4B,UAChC,MAAM,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/commentRepository/events/utils.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,4BAA4B,UAChC,MAAM,MAAM,iBAAiB,GAAG,MAAM,MAAM,kBAAkB,YAC3D,MAAM,QAAQ,CAAC,MAAM,eAAe,CAAC,uBAqEhD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getComment.d.ts","sourceRoot":"","sources":["../../../src/commentRepository/observers/getComment.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getComment.d.ts","sourceRoot":"","sources":["../../../src/commentRepository/observers/getComment.ts"],"names":[],"mappings":"AAiBA;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,UAAU,cACV,aAAa,CAAC,WAAW,CAAC,YAC3B,MAAM,kBAAkB,CAAC,aAAa,CAAC,KAChD,MAAM,YAUR,CAAC"}
|
package/dist/commentRepository/observers/getComments/CommentLiveCollectionController.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommentLiveCollectionController.d.ts","sourceRoot":"","sources":["../../../../src/commentRepository/observers/getComments/CommentLiveCollectionController.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAE5E,OAAO,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;
|
|
1
|
+
{"version":3,"file":"CommentLiveCollectionController.d.ts","sourceRoot":"","sources":["../../../../src/commentRepository/observers/getComments/CommentLiveCollectionController.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC;AAE5E,OAAO,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAkB1F,qBAAa,+BAAgC,SAAQ,wBAAwB,CAC3E,SAAS,EACT,KAAK,CAAC,qBAAqB,EAC3B,KAAK,CAAC,OAAO,EACb,2BAA2B,CAC5B;IACC,OAAO,CAAC,qBAAqB,CAA+B;IAE5D,OAAO,CAAC,KAAK,CAA8B;gBAGzC,KAAK,EAAE,KAAK,CAAC,qBAAqB,EAClC,QAAQ,EAAE,KAAK,CAAC,sBAAsB,CAAC,KAAK,CAAC,OAAO,CAAC;IAoBvD,SAAS,CAAC,KAAK;cAUC,YAAY,CAAC,YAAY,EAAE,KAAK,CAAC,cAAc,GAAG,KAAK,CAAC,UAAU;IAIlF,SAAS,CAAC,kBAAkB,CAAC,EAC3B,QAAQ,EACR,SAAS,EACT,OAAO,GACR,EAAE,KAAK,CAAC,sCAAsC,CAAC,SAAS,CAAC;IAI1D,iBAAiB;IAcjB,YAAY,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,CAAC,0BAA0B;IAsBzE,WAAW,CAAC,IAAI,EAAE,KAAK,CAAC,eAAe,EAAE;CAqD1C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommunityMembersLiveCollectionController.d.ts","sourceRoot":"","sources":["../../../../../src/communityRepository/communityMembership/observers/getMembers/CommunityMembersLiveCollectionController.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oCAAoC,EAAE,MAAM,wCAAwC,CAAC;AAE9F,OAAO,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAqB1F,qBAAa,wCAAyC,SAAQ,wBAAwB,CACpF,eAAe,EACf,KAAK,CAAC,6BAA6B,EACnC,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,EAC7B,oCAAoC,CACrC;IACC,OAAO,CAAC,qBAAqB,CAAwC;IAErE,OAAO,CAAC,KAAK,CAAsC;gBAGjD,KAAK,EAAE,KAAK,CAAC,6BAA6B,EAC1C,QAAQ,EAAE,KAAK,CAAC,sBAAsB,CAAC,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;IAoBvE,SAAS,CAAC,KAAK;cAUC,YAAY,CAAC,YAAY,EAAE,KAAK,CAAC,0BAA0B,GAAG,KAAK,CAAC,UAAU;IAI9F,SAAS,CAAC,kBAAkB,CAAC,EAC3B,QAAQ,EACR,SAAS,EACT,OAAO,GACR,EAAE,KAAK,CAAC,sCAAsC,CAAC,eAAe,CAAC;IAIhE,iBAAiB;IAejB,YAAY,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,CAAC,0BAA0B;IAsBzE,WAAW,CAAC,IAAI,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,EAAE;
|
|
1
|
+
{"version":3,"file":"CommunityMembersLiveCollectionController.d.ts","sourceRoot":"","sources":["../../../../../src/communityRepository/communityMembership/observers/getMembers/CommunityMembersLiveCollectionController.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,oCAAoC,EAAE,MAAM,wCAAwC,CAAC;AAE9F,OAAO,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAqB1F,qBAAa,wCAAyC,SAAQ,wBAAwB,CACpF,eAAe,EACf,KAAK,CAAC,6BAA6B,EACnC,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,EAC7B,oCAAoC,CACrC;IACC,OAAO,CAAC,qBAAqB,CAAwC;IAErE,OAAO,CAAC,KAAK,CAAsC;gBAGjD,KAAK,EAAE,KAAK,CAAC,6BAA6B,EAC1C,QAAQ,EAAE,KAAK,CAAC,sBAAsB,CAAC,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;IAoBvE,SAAS,CAAC,KAAK;cAUC,YAAY,CAAC,YAAY,EAAE,KAAK,CAAC,0BAA0B,GAAG,KAAK,CAAC,UAAU;IAI9F,SAAS,CAAC,kBAAkB,CAAC,EAC3B,QAAQ,EACR,SAAS,EACT,OAAO,GACR,EAAE,KAAK,CAAC,sCAAsC,CAAC,eAAe,CAAC;IAIhE,iBAAiB;IAejB,YAAY,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,CAAC,0BAA0B;IAsBzE,WAAW,CAAC,IAAI,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,EAAE;CAwClD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchCommunityMembersLiveCollectionController.d.ts","sourceRoot":"","sources":["../../../../../src/communityRepository/communityMembership/observers/searchMembers/SearchCommunityMembersLiveCollectionController.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,0CAA0C,EAAE,MAAM,8CAA8C,CAAC;AAE1G,OAAO,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAc1F,qBAAa,8CAA+C,SAAQ,wBAAwB,CAC1F,eAAe,EACf,KAAK,CAAC,mCAAmC,EACzC,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,EAC7B,0CAA0C,CAC3C;IACC,OAAO,CAAC,qBAAqB,CAA8C;IAE3E,OAAO,CAAC,KAAK,CAA4C;gBAGvD,KAAK,EAAE,KAAK,CAAC,mCAAmC,EAChD,QAAQ,EAAE,KAAK,CAAC,sBAAsB,CAAC,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;IAoBvE,SAAS,CAAC,KAAK;cAYC,YAAY,CAAC,YAAY,EAAE,KAAK,CAAC,0BAA0B,GAAG,KAAK,CAAC,UAAU;IAI9F,SAAS,CAAC,kBAAkB,CAAC,EAC3B,QAAQ,EACR,SAAS,EACT,OAAO,GACR,EAAE,KAAK,CAAC,sCAAsC,CAAC,eAAe,CAAC;IAIhE,iBAAiB;IAcjB,YAAY,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,CAAC,0BAA0B;IAwBzE,WAAW,CAAC,IAAI,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,EAAE;
|
|
1
|
+
{"version":3,"file":"SearchCommunityMembersLiveCollectionController.d.ts","sourceRoot":"","sources":["../../../../../src/communityRepository/communityMembership/observers/searchMembers/SearchCommunityMembersLiveCollectionController.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,0CAA0C,EAAE,MAAM,8CAA8C,CAAC;AAE1G,OAAO,EAAE,wBAAwB,EAAE,MAAM,gDAAgD,CAAC;AAc1F,qBAAa,8CAA+C,SAAQ,wBAAwB,CAC1F,eAAe,EACf,KAAK,CAAC,mCAAmC,EACzC,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,EAC7B,0CAA0C,CAC3C;IACC,OAAO,CAAC,qBAAqB,CAA8C;IAE3E,OAAO,CAAC,KAAK,CAA4C;gBAGvD,KAAK,EAAE,KAAK,CAAC,mCAAmC,EAChD,QAAQ,EAAE,KAAK,CAAC,sBAAsB,CAAC,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC;IAoBvE,SAAS,CAAC,KAAK;cAYC,YAAY,CAAC,YAAY,EAAE,KAAK,CAAC,0BAA0B,GAAG,KAAK,CAAC,UAAU;IAI9F,SAAS,CAAC,kBAAkB,CAAC,EAC3B,QAAQ,EACR,SAAS,EACT,OAAO,GACR,EAAE,KAAK,CAAC,sCAAsC,CAAC,eAAe,CAAC;IAIhE,iBAAiB;IAcjB,YAAY,CAAC,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,CAAC,0BAA0B;IAwBzE,WAAW,CAAC,IAAI,EAAE,KAAK,CAAC,UAAU,CAAC,WAAW,CAAC,EAAE;CAsBlD"}
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
export declare
|
|
1
|
+
export declare function addPostSetting({ communities }: {
|
|
2
2
|
communities: Amity.RawCommunity[];
|
|
3
|
-
|
|
4
|
-
}) => {
|
|
5
|
-
communities: Amity.Community[];
|
|
6
|
-
communityUsers: Amity.Membership<'community'>[];
|
|
7
|
-
};
|
|
3
|
+
}): Amity.Community[];
|
|
8
4
|
export declare const prepareCommunityPayload: (rawPayload: Amity.CommunityPayload) => Amity.ProcessedCommunityPayload;
|
|
9
5
|
export declare const prepareCommunityRequest: <T extends {
|
|
10
6
|
[k: string]: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../src/communityRepository/utils/payload.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"payload.d.ts","sourceRoot":"","sources":["../../../src/communityRepository/utils/payload.ts"],"names":[],"mappings":"AAcA,wBAAgB,cAAc,CAAC,EAAE,WAAW,EAAE,EAAE;IAAE,WAAW,EAAE,KAAK,CAAC,YAAY,EAAE,CAAA;CAAE,qBAUpF;AAED,eAAO,MAAM,uBAAuB,eACtB,MAAM,gBAAgB,KACjC,MAAM,yBAyBR,CAAC;AAEF,eAAO,MAAM,uBAAuB;;kBAElB,MAAM,SAAS,CAAC,aAAa,CAAC;;;;;CAgB/C,CAAC"}
|
package/dist/core/events.d.ts
CHANGED
|
@@ -24,12 +24,12 @@ export declare const proxyMqttEvents: (mqttClient: Amity.Client['mqtt'], emitter
|
|
|
24
24
|
* @category Transport
|
|
25
25
|
* @hidden
|
|
26
26
|
*/
|
|
27
|
-
export declare const createEventSubscriber: <T extends "disconnected" | "error" | "connect_error" | "reconnect_error" | "reconnect_failed" | "sessionStateChange" | "tokenExpired" | "v3.video-streaming.didRecord" | "v3.video-streaming.didStart" | "v3.video-streaming.didStop" | "connect" | "message" | "disconnect" | "close" | "end" | "reconnect" | "user.didGlobalBan" | "v3.video-streaming.didFlag" | "v3.video-streaming.didTerminate" | "channel.created" | "channel.updated" | "channel.deleted" | "channel.setMuted" | "channel.joined" | "channel.left" | "channel.membersAdded" | "channel.membersRemoved" | "channel.banned" | "channel.unbanned" | "message-feed.created" | "message-feed.updated" | "message-feed.deleted" | "message.created" | "message.updated" | "message.deleted" | "message.flagged" | "message.unflagged" | "message.flagCleared" | "message.reactionAdded" | "message.reactionRemoved" | "community.created" | "community.updated" | "community.deleted" | "community.joined" | "community.left" | "community.userAdded" | "community.userRemoved" | "community.userChanged" | "community.userBanned" | "community.userUnbanned" | "community.roleAdded" | "community.roleRemoved" | "post.created" | "post.updated" | "post.deleted" | "post.approved" | "post.declined" | "post.flagged" | "post.unflagged" | "post.addReaction" | "post.removeReaction" | "comment.created" | "comment.updated" | "comment.deleted" | "comment.flagged" | "comment.unflagged" | "comment.addReaction" | "comment.removeReaction" | "user.fetched" | "user.updated" | "user.deleted" | "user.flagged" | "user.unflagged" | "user.flagCleared" | "follow.created" | "follow.requested" | "follow.accepted" | "follow.unfollowed" | "follow.requestCanceled" | "follow.requestDeclined" | "follow.followerDeleted" | "marker.marked-message" | "marker.feed-updated" | "marker.user-sync" | "marker.userFeed-updated" | "story.created" | "story.updated" | "story.deleted" | "story.flagged" | "story.unflagged" | "story.reactionAdded" | "story.reactionRemoved" | "local.channel.updated" | "local.channel.fetched" | "local.channel-moderator.role-added" | "local.channel-moderator.role-removed" | "local.message.created" | "local.message.updated" | "local.message.deleted" | "local.message.fetched" | "local.message-feed.updated" | "local.message-feed.fetched" | "local.message-feed.deleted" | "poll.updated" | "poll.deleted" | "local.feedMarker.fetched" | "local.channelMarker.fetched" | "local.channelMarker.updated" | "local.subChannelMarker.fetched" | "local.subChannelMarker.updated" | "local.messageMarker.fetched" | "local.userMarker.fetched" | "local.userMessageFeedMarker.fetched" | "local.channel.resolved" | "local.userMessageFeedMarkers.resolved" | "local.subChannelUnread.updated" | "local.channelUnread.updated" | "local.story.created" | "local.story.updated" | "local.story.deleted" | "local.story.flagged" | "local.story.unflagged" | "local.story.reactionAdded" | "local.story.reactionRemoved" | "local.story.error" | "local.story.reload" | "local.post.updated" | "local.
|
|
28
|
-
export declare const createMqttMessageSubscriber: <T extends "disconnected" | "error" | "connect_error" | "reconnect_error" | "reconnect_failed" | "sessionStateChange" | "tokenExpired" | "v3.video-streaming.didRecord" | "v3.video-streaming.didStart" | "v3.video-streaming.didStop" | "connect" | "message" | "disconnect" | "close" | "end" | "reconnect" | "user.didGlobalBan" | "v3.video-streaming.didFlag" | "v3.video-streaming.didTerminate" | "channel.created" | "channel.updated" | "channel.deleted" | "channel.setMuted" | "channel.joined" | "channel.left" | "channel.membersAdded" | "channel.membersRemoved" | "channel.banned" | "channel.unbanned" | "message-feed.created" | "message-feed.updated" | "message-feed.deleted" | "message.created" | "message.updated" | "message.deleted" | "message.flagged" | "message.unflagged" | "message.flagCleared" | "message.reactionAdded" | "message.reactionRemoved" | "community.created" | "community.updated" | "community.deleted" | "community.joined" | "community.left" | "community.userAdded" | "community.userRemoved" | "community.userChanged" | "community.userBanned" | "community.userUnbanned" | "community.roleAdded" | "community.roleRemoved" | "post.created" | "post.updated" | "post.deleted" | "post.approved" | "post.declined" | "post.flagged" | "post.unflagged" | "post.addReaction" | "post.removeReaction" | "comment.created" | "comment.updated" | "comment.deleted" | "comment.flagged" | "comment.unflagged" | "comment.addReaction" | "comment.removeReaction" | "user.fetched" | "user.updated" | "user.deleted" | "user.flagged" | "user.unflagged" | "user.flagCleared" | "follow.created" | "follow.requested" | "follow.accepted" | "follow.unfollowed" | "follow.requestCanceled" | "follow.requestDeclined" | "follow.followerDeleted" | "marker.marked-message" | "marker.feed-updated" | "marker.user-sync" | "marker.userFeed-updated" | "story.created" | "story.updated" | "story.deleted" | "story.flagged" | "story.unflagged" | "story.reactionAdded" | "story.reactionRemoved" | "local.channel.updated" | "local.channel.fetched" | "local.channel-moderator.role-added" | "local.channel-moderator.role-removed" | "local.message.created" | "local.message.updated" | "local.message.deleted" | "local.message.fetched" | "local.message-feed.updated" | "local.message-feed.fetched" | "local.message-feed.deleted" | "poll.updated" | "poll.deleted" | "local.feedMarker.fetched" | "local.channelMarker.fetched" | "local.channelMarker.updated" | "local.subChannelMarker.fetched" | "local.subChannelMarker.updated" | "local.messageMarker.fetched" | "local.userMarker.fetched" | "local.userMessageFeedMarker.fetched" | "local.channel.resolved" | "local.userMessageFeedMarkers.resolved" | "local.subChannelUnread.updated" | "local.channelUnread.updated" | "local.story.created" | "local.story.updated" | "local.story.deleted" | "local.story.flagged" | "local.story.unflagged" | "local.story.reactionAdded" | "local.story.reactionRemoved" | "local.story.error" | "local.story.reload" | "local.post.updated" | "local.
|
|
27
|
+
export declare const createEventSubscriber: <T extends "disconnected" | "error" | "connect_error" | "reconnect_error" | "reconnect_failed" | "sessionStateChange" | "tokenExpired" | "v3.video-streaming.didRecord" | "v3.video-streaming.didStart" | "v3.video-streaming.didStop" | "connect" | "message" | "disconnect" | "close" | "end" | "reconnect" | "user.didGlobalBan" | "v3.video-streaming.didFlag" | "v3.video-streaming.didTerminate" | "channel.created" | "channel.updated" | "channel.deleted" | "channel.setMuted" | "channel.joined" | "channel.left" | "channel.membersAdded" | "channel.membersRemoved" | "channel.banned" | "channel.unbanned" | "message-feed.created" | "message-feed.updated" | "message-feed.deleted" | "message.created" | "message.updated" | "message.deleted" | "message.flagged" | "message.unflagged" | "message.flagCleared" | "message.reactionAdded" | "message.reactionRemoved" | "community.created" | "community.updated" | "community.deleted" | "community.joined" | "community.left" | "community.userAdded" | "community.userRemoved" | "community.userChanged" | "community.userBanned" | "community.userUnbanned" | "community.roleAdded" | "community.roleRemoved" | "post.created" | "post.updated" | "post.deleted" | "post.approved" | "post.declined" | "post.flagged" | "post.unflagged" | "post.addReaction" | "post.removeReaction" | "comment.created" | "comment.updated" | "comment.deleted" | "comment.flagged" | "comment.unflagged" | "comment.addReaction" | "comment.removeReaction" | "user.fetched" | "user.updated" | "user.deleted" | "user.flagged" | "user.unflagged" | "user.flagCleared" | "follow.created" | "follow.requested" | "follow.accepted" | "follow.unfollowed" | "follow.requestCanceled" | "follow.requestDeclined" | "follow.followerDeleted" | "marker.marked-message" | "marker.feed-updated" | "marker.user-sync" | "marker.userFeed-updated" | "story.created" | "story.updated" | "story.deleted" | "story.flagged" | "story.unflagged" | "story.reactionAdded" | "story.reactionRemoved" | "local.channel.updated" | "local.channel.fetched" | "local.channel-moderator.role-added" | "local.channel-moderator.role-removed" | "local.message.created" | "local.message.updated" | "local.message.deleted" | "local.message.fetched" | "local.message-feed.updated" | "local.message-feed.fetched" | "local.message-feed.deleted" | "poll.updated" | "poll.deleted" | "local.feedMarker.fetched" | "local.channelMarker.fetched" | "local.channelMarker.updated" | "local.subChannelMarker.fetched" | "local.subChannelMarker.updated" | "local.messageMarker.fetched" | "local.userMarker.fetched" | "local.userMessageFeedMarker.fetched" | "local.channel.resolved" | "local.userMessageFeedMarkers.resolved" | "local.subChannelUnread.updated" | "local.channelUnread.updated" | "local.story.created" | "local.story.updated" | "local.story.deleted" | "local.story.flagged" | "local.story.unflagged" | "local.story.reactionAdded" | "local.story.reactionRemoved" | "local.story.error" | "local.story.reload" | "tokenTerminated" | "unreadCountEnabled" | "local.post.updated" | "local.post.deleted" | "local.comment.created" | "local.comment.deleted">(client: Amity.Client, namespace: string, event: T, fn: Amity.Listener<Amity.Events[T]>) => Amity.Unsubscriber;
|
|
28
|
+
export declare const createMqttMessageSubscriber: <T extends "disconnected" | "error" | "connect_error" | "reconnect_error" | "reconnect_failed" | "sessionStateChange" | "tokenExpired" | "v3.video-streaming.didRecord" | "v3.video-streaming.didStart" | "v3.video-streaming.didStop" | "connect" | "message" | "disconnect" | "close" | "end" | "reconnect" | "user.didGlobalBan" | "v3.video-streaming.didFlag" | "v3.video-streaming.didTerminate" | "channel.created" | "channel.updated" | "channel.deleted" | "channel.setMuted" | "channel.joined" | "channel.left" | "channel.membersAdded" | "channel.membersRemoved" | "channel.banned" | "channel.unbanned" | "message-feed.created" | "message-feed.updated" | "message-feed.deleted" | "message.created" | "message.updated" | "message.deleted" | "message.flagged" | "message.unflagged" | "message.flagCleared" | "message.reactionAdded" | "message.reactionRemoved" | "community.created" | "community.updated" | "community.deleted" | "community.joined" | "community.left" | "community.userAdded" | "community.userRemoved" | "community.userChanged" | "community.userBanned" | "community.userUnbanned" | "community.roleAdded" | "community.roleRemoved" | "post.created" | "post.updated" | "post.deleted" | "post.approved" | "post.declined" | "post.flagged" | "post.unflagged" | "post.addReaction" | "post.removeReaction" | "comment.created" | "comment.updated" | "comment.deleted" | "comment.flagged" | "comment.unflagged" | "comment.addReaction" | "comment.removeReaction" | "user.fetched" | "user.updated" | "user.deleted" | "user.flagged" | "user.unflagged" | "user.flagCleared" | "follow.created" | "follow.requested" | "follow.accepted" | "follow.unfollowed" | "follow.requestCanceled" | "follow.requestDeclined" | "follow.followerDeleted" | "marker.marked-message" | "marker.feed-updated" | "marker.user-sync" | "marker.userFeed-updated" | "story.created" | "story.updated" | "story.deleted" | "story.flagged" | "story.unflagged" | "story.reactionAdded" | "story.reactionRemoved" | "local.channel.updated" | "local.channel.fetched" | "local.channel-moderator.role-added" | "local.channel-moderator.role-removed" | "local.message.created" | "local.message.updated" | "local.message.deleted" | "local.message.fetched" | "local.message-feed.updated" | "local.message-feed.fetched" | "local.message-feed.deleted" | "poll.updated" | "poll.deleted" | "local.feedMarker.fetched" | "local.channelMarker.fetched" | "local.channelMarker.updated" | "local.subChannelMarker.fetched" | "local.subChannelMarker.updated" | "local.messageMarker.fetched" | "local.userMarker.fetched" | "local.userMessageFeedMarker.fetched" | "local.channel.resolved" | "local.userMessageFeedMarkers.resolved" | "local.subChannelUnread.updated" | "local.channelUnread.updated" | "local.story.created" | "local.story.updated" | "local.story.deleted" | "local.story.flagged" | "local.story.unflagged" | "local.story.reactionAdded" | "local.story.reactionRemoved" | "local.story.error" | "local.story.reload" | "tokenTerminated" | "unreadCountEnabled" | "local.post.updated" | "local.post.deleted" | "local.comment.created" | "local.comment.deleted">(client: Amity.Client, namespace: string, event: T, fn: (params: Record<string, unknown>) => void) => Amity.Unsubscriber;
|
|
29
29
|
/**
|
|
30
30
|
* Wrapper around dispatch event
|
|
31
31
|
*
|
|
32
32
|
* @hidden
|
|
33
33
|
*/
|
|
34
|
-
export declare const fireEvent: <T extends "disconnected" | "error" | "connect_error" | "reconnect_error" | "reconnect_failed" | "sessionStateChange" | "tokenExpired" | "v3.video-streaming.didRecord" | "v3.video-streaming.didStart" | "v3.video-streaming.didStop" | "connect" | "message" | "disconnect" | "close" | "end" | "reconnect" | "user.didGlobalBan" | "v3.video-streaming.didFlag" | "v3.video-streaming.didTerminate" | "channel.created" | "channel.updated" | "channel.deleted" | "channel.setMuted" | "channel.joined" | "channel.left" | "channel.membersAdded" | "channel.membersRemoved" | "channel.banned" | "channel.unbanned" | "message-feed.created" | "message-feed.updated" | "message-feed.deleted" | "message.created" | "message.updated" | "message.deleted" | "message.flagged" | "message.unflagged" | "message.flagCleared" | "message.reactionAdded" | "message.reactionRemoved" | "community.created" | "community.updated" | "community.deleted" | "community.joined" | "community.left" | "community.userAdded" | "community.userRemoved" | "community.userChanged" | "community.userBanned" | "community.userUnbanned" | "community.roleAdded" | "community.roleRemoved" | "post.created" | "post.updated" | "post.deleted" | "post.approved" | "post.declined" | "post.flagged" | "post.unflagged" | "post.addReaction" | "post.removeReaction" | "comment.created" | "comment.updated" | "comment.deleted" | "comment.flagged" | "comment.unflagged" | "comment.addReaction" | "comment.removeReaction" | "user.fetched" | "user.updated" | "user.deleted" | "user.flagged" | "user.unflagged" | "user.flagCleared" | "follow.created" | "follow.requested" | "follow.accepted" | "follow.unfollowed" | "follow.requestCanceled" | "follow.requestDeclined" | "follow.followerDeleted" | "marker.marked-message" | "marker.feed-updated" | "marker.user-sync" | "marker.userFeed-updated" | "story.created" | "story.updated" | "story.deleted" | "story.flagged" | "story.unflagged" | "story.reactionAdded" | "story.reactionRemoved" | "local.channel.updated" | "local.channel.fetched" | "local.channel-moderator.role-added" | "local.channel-moderator.role-removed" | "local.message.created" | "local.message.updated" | "local.message.deleted" | "local.message.fetched" | "local.message-feed.updated" | "local.message-feed.fetched" | "local.message-feed.deleted" | "poll.updated" | "poll.deleted" | "local.feedMarker.fetched" | "local.channelMarker.fetched" | "local.channelMarker.updated" | "local.subChannelMarker.fetched" | "local.subChannelMarker.updated" | "local.messageMarker.fetched" | "local.userMarker.fetched" | "local.userMessageFeedMarker.fetched" | "local.channel.resolved" | "local.userMessageFeedMarkers.resolved" | "local.subChannelUnread.updated" | "local.channelUnread.updated" | "local.story.created" | "local.story.updated" | "local.story.deleted" | "local.story.flagged" | "local.story.unflagged" | "local.story.reactionAdded" | "local.story.reactionRemoved" | "local.story.error" | "local.story.reload" | "local.post.updated" | "local.
|
|
34
|
+
export declare const fireEvent: <T extends "disconnected" | "error" | "connect_error" | "reconnect_error" | "reconnect_failed" | "sessionStateChange" | "tokenExpired" | "v3.video-streaming.didRecord" | "v3.video-streaming.didStart" | "v3.video-streaming.didStop" | "connect" | "message" | "disconnect" | "close" | "end" | "reconnect" | "user.didGlobalBan" | "v3.video-streaming.didFlag" | "v3.video-streaming.didTerminate" | "channel.created" | "channel.updated" | "channel.deleted" | "channel.setMuted" | "channel.joined" | "channel.left" | "channel.membersAdded" | "channel.membersRemoved" | "channel.banned" | "channel.unbanned" | "message-feed.created" | "message-feed.updated" | "message-feed.deleted" | "message.created" | "message.updated" | "message.deleted" | "message.flagged" | "message.unflagged" | "message.flagCleared" | "message.reactionAdded" | "message.reactionRemoved" | "community.created" | "community.updated" | "community.deleted" | "community.joined" | "community.left" | "community.userAdded" | "community.userRemoved" | "community.userChanged" | "community.userBanned" | "community.userUnbanned" | "community.roleAdded" | "community.roleRemoved" | "post.created" | "post.updated" | "post.deleted" | "post.approved" | "post.declined" | "post.flagged" | "post.unflagged" | "post.addReaction" | "post.removeReaction" | "comment.created" | "comment.updated" | "comment.deleted" | "comment.flagged" | "comment.unflagged" | "comment.addReaction" | "comment.removeReaction" | "user.fetched" | "user.updated" | "user.deleted" | "user.flagged" | "user.unflagged" | "user.flagCleared" | "follow.created" | "follow.requested" | "follow.accepted" | "follow.unfollowed" | "follow.requestCanceled" | "follow.requestDeclined" | "follow.followerDeleted" | "marker.marked-message" | "marker.feed-updated" | "marker.user-sync" | "marker.userFeed-updated" | "story.created" | "story.updated" | "story.deleted" | "story.flagged" | "story.unflagged" | "story.reactionAdded" | "story.reactionRemoved" | "local.channel.updated" | "local.channel.fetched" | "local.channel-moderator.role-added" | "local.channel-moderator.role-removed" | "local.message.created" | "local.message.updated" | "local.message.deleted" | "local.message.fetched" | "local.message-feed.updated" | "local.message-feed.fetched" | "local.message-feed.deleted" | "poll.updated" | "poll.deleted" | "local.feedMarker.fetched" | "local.channelMarker.fetched" | "local.channelMarker.updated" | "local.subChannelMarker.fetched" | "local.subChannelMarker.updated" | "local.messageMarker.fetched" | "local.userMarker.fetched" | "local.userMessageFeedMarker.fetched" | "local.channel.resolved" | "local.userMessageFeedMarkers.resolved" | "local.subChannelUnread.updated" | "local.channelUnread.updated" | "local.story.created" | "local.story.updated" | "local.story.deleted" | "local.story.flagged" | "local.story.unflagged" | "local.story.reactionAdded" | "local.story.reactionRemoved" | "local.story.error" | "local.story.reload" | "tokenTerminated" | "unreadCountEnabled" | "local.post.updated" | "local.post.deleted" | "local.comment.created" | "local.comment.deleted">(event: T, payload: Amity.Events[T]) => void;
|
|
35
35
|
//# sourceMappingURL=events.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/core/events.ts"],"names":[],"mappings":"AAmCA,cAAc;AACd,eAAO,MAAM,kBAAkB,4CAE9B,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,oBAAoB,OAAQ,MAAM,MAAM,CAAC,IAAI,CAAC,WAAW,MAAM,MAAM,CAAC,SAAS,CAAC,SAM5F,CAAC;AAEF,eAAO,MAAM,eAAe,eACd,MAAM,MAAM,CAAC,MAAM,CAAC,WACvB,MAAM,MAAM,CAAC,SAAS,CAAC,SAajC,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,qBAAqB,
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/core/events.ts"],"names":[],"mappings":"AAmCA,cAAc;AACd,eAAO,MAAM,kBAAkB,4CAE9B,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,oBAAoB,OAAQ,MAAM,MAAM,CAAC,IAAI,CAAC,WAAW,MAAM,MAAM,CAAC,SAAS,CAAC,SAM5F,CAAC;AAEF,eAAO,MAAM,eAAe,eACd,MAAM,MAAM,CAAC,MAAM,CAAC,WACvB,MAAM,MAAM,CAAC,SAAS,CAAC,SAajC,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,qBAAqB,4iGACxB,MAAM,MAAM,aACT,MAAM,oDAGhB,MAAM,YAsBR,CAAC;AAEF,eAAO,MAAM,2BAA2B,4iGAC9B,MAAM,MAAM,aACT,MAAM,yBAEJ,OAAO,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,KAC5C,MAAM,YAQR,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,SAAS,+kGAKrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"idResolvers.d.ts","sourceRoot":"","sources":["../../../src/core/model/idResolvers.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,aAAK,QAAQ,CAAC,CAAC,SAAS,KAAK,CAAC,MAAM,IAAI,CAAC,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"idResolvers.d.ts","sourceRoot":"","sources":["../../../src/core/model/idResolvers.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,aAAK,QAAQ,CAAC,CAAC,SAAS,KAAK,CAAC,MAAM,IAAI,CAAC,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,MAAM,CAAC;AAyD5E;;;;;GAKG;AACH,eAAO,MAAM,WAAW,wDAAsE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/model/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAEhC;;;GAGG;AACH,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/model/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAEhC;;;GAGG;AACH,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,MAAM,CA+CtD,CAAC;AAEF,aAAa;AACb,eAAO,MAAM,UAAU,2DAA0D,OAMhF,CAAC;AAEF,aAAa;AACb,wBAAgB,aAAa,CAAC,IAAI,GAAE,MAAM,GAAG,SAAoC,GAAG,MAAM,CAEzF;AAED,aAAa;AACb,wBAAgB,WAAW,CAAC,IAAI,GAAE,MAAM,GAAG,SAAoC,GAAG,MAAM,CAEvF"}
|
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Attach user object to membership model
|
|
3
|
+
* - If cache is not enabled, set user to undefined ({..., user: undefined})
|
|
4
|
+
* - If user object is not found in cache, set user to undefined
|
|
5
|
+
* ({..., user: undefined})
|
|
6
|
+
* - If a user is found in the cache, it attaches the user from the cache
|
|
7
|
+
* ({..., user: { userId, displayName,... }})
|
|
8
|
+
*
|
|
9
|
+
* @param member The membership model object
|
|
10
|
+
* @returns The membership model object that is already mapped to user
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
export declare const convertRawMembershipToMembership: <T extends "channel" | "community">(member: Amity.RawMembership<T>) => Amity.Membership<T>;
|
|
1
14
|
/**
|
|
2
15
|
* Attach user object to membership model
|
|
3
16
|
* - If cache is not enabled, set user to undefined ({..., user: undefined})
|
|
@@ -1 +1 @@
|
|
|
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"}
|
|
1
|
+
{"version":3,"file":"withUser.d.ts","sourceRoot":"","sources":["../../../src/group/utils/withUser.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,gCAAgC,4FAmB5C,CAAC;AAEF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,QAAQ,iLAgCpB,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,SAAS,wMAUrB,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,wBAAwB,sQAkBpC,CAAC"}
|