@amityco/ts-sdk 0.0.1-beta.39 → 0.0.1-beta.40
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/.eslintrc.json +2 -0
- package/dist/@types/core/events.d.ts +22 -22
- package/dist/@types/core/events.d.ts.map +1 -1
- package/dist/@types/core/model.d.ts +3 -2
- package/dist/@types/core/model.d.ts.map +1 -1
- package/dist/@types/core/payload.d.ts +87 -34
- package/dist/@types/core/payload.d.ts.map +1 -1
- package/dist/@types/domains/channel.d.ts +1 -1
- package/dist/@types/domains/client.d.ts +1 -1
- package/dist/@types/domains/client.d.ts.map +1 -1
- package/dist/@types/domains/comment.d.ts +5 -0
- package/dist/@types/domains/comment.d.ts.map +1 -1
- package/dist/@types/domains/community.d.ts +11 -0
- package/dist/@types/domains/community.d.ts.map +1 -1
- package/dist/@types/domains/content.d.ts +7 -1
- package/dist/@types/domains/content.d.ts.map +1 -1
- package/dist/@types/domains/group.d.ts +2 -2
- package/dist/@types/global.d.ts +8 -0
- package/dist/@types/global.d.ts.map +1 -1
- package/dist/cache/api/ingestInCache.d.ts +2 -1
- package/dist/cache/api/ingestInCache.d.ts.map +1 -1
- package/dist/channel/api/banChannelMembers.d.ts.map +1 -1
- package/dist/channel/api/queryChannelMembers.d.ts.map +1 -1
- package/dist/channel/api/unbanChannelMembers.d.ts.map +1 -1
- package/dist/channel/events/onChannelJoined.d.ts.map +1 -1
- package/dist/channel/events/onChannelLeft.d.ts.map +1 -1
- package/dist/channel/events/onChannelMemberAdded.d.ts.map +1 -1
- package/dist/channel/events/onChannelMemberBanned.d.ts.map +1 -1
- package/dist/channel/events/onChannelMemberRemoved.d.ts.map +1 -1
- package/dist/channel/events/onChannelMemberUnbanned.d.ts.map +1 -1
- package/dist/channel/utils/index.d.ts +2 -2
- package/dist/channel/utils/index.d.ts.map +1 -1
- package/dist/comment/api/createComment.d.ts +1 -1
- package/dist/comment/api/createComment.d.ts.map +1 -1
- package/dist/comment/api/deleteComment.d.ts.map +1 -1
- package/dist/comment/api/tests/updateComment.test.d.ts +2 -0
- package/dist/comment/api/tests/updateComment.test.d.ts.map +1 -0
- package/dist/community/api/addCommunityMembers.d.ts.map +1 -1
- package/dist/community/api/addCommunityMembersRoles.d.ts +1 -1
- package/dist/community/api/addCommunityMembersRoles.d.ts.map +1 -1
- package/dist/community/api/deleteCommunity.d.ts.map +1 -1
- package/dist/community/api/joinCommunity.d.ts.map +1 -1
- package/dist/community/api/leaveCommunity.d.ts.map +1 -1
- package/dist/community/api/queryCommunityMembers.d.ts +1 -7
- package/dist/community/api/queryCommunityMembers.d.ts.map +1 -1
- package/dist/community/api/removeCommunityMembers.d.ts.map +1 -1
- package/dist/community/api/removeCommunityMembersRoles.d.ts +1 -1
- package/dist/community/api/removeCommunityMembersRoles.d.ts.map +1 -1
- package/dist/community/events/index.d.ts +2 -0
- package/dist/community/events/index.d.ts.map +1 -1
- package/dist/community/events/onCommunityUserRoleAdded.d.ts +17 -0
- package/dist/community/events/onCommunityUserRoleAdded.d.ts.map +1 -0
- package/dist/community/events/onCommunityUserRoleRemoved.d.ts +17 -0
- package/dist/community/events/onCommunityUserRoleRemoved.d.ts.map +1 -0
- package/dist/community/events/test/onCommunityUserRoleAdded.test.d.ts +2 -0
- package/dist/community/events/test/onCommunityUserRoleAdded.test.d.ts.map +1 -0
- package/dist/community/events/test/onCommunityUserRoleRemoved.test.d.ts +2 -0
- package/dist/community/events/test/onCommunityUserRoleRemoved.test.d.ts.map +1 -0
- package/dist/community/events/utils.d.ts.map +1 -1
- package/dist/community/observers/index.d.ts +2 -0
- package/dist/community/observers/index.d.ts.map +1 -1
- package/dist/community/observers/liveCommunity.d.ts +21 -0
- package/dist/community/observers/liveCommunity.d.ts.map +1 -0
- package/dist/community/observers/liveCommunityMembers.d.ts +20 -0
- package/dist/community/observers/liveCommunityMembers.d.ts.map +1 -0
- package/dist/community/observers/tests/liveCommunity.test.d.ts +2 -0
- package/dist/community/observers/tests/liveCommunity.test.d.ts.map +1 -0
- package/dist/community/observers/tests/liveCommunityMembers.test.d.ts +2 -0
- package/dist/community/observers/tests/liveCommunityMembers.test.d.ts.map +1 -0
- package/dist/community/utils/payload.d.ts +3 -5
- package/dist/community/utils/payload.d.ts.map +1 -1
- package/dist/core/device.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 +2 -4
- package/dist/core/model/idResolvers.d.ts.map +1 -1
- package/dist/core/model/identifyModel.d.ts +2 -2
- package/dist/core/model/identifyModel.d.ts.map +1 -1
- package/dist/core/model/index.d.ts.map +1 -1
- package/dist/core/query/query.d.ts.map +1 -1
- package/dist/external/api/tests/createUserToken.test.d.ts +2 -0
- package/dist/external/api/tests/createUserToken.test.d.ts.map +1 -0
- package/dist/feed/api/queryGlobalFeed.d.ts.map +1 -1
- package/dist/group/utils/withUser.d.ts.map +1 -1
- package/dist/index.cjs.js +481 -200
- package/dist/index.esm.js +477 -200
- package/dist/index.umd.js +4 -4
- package/dist/message/api/createMessage.d.ts.map +1 -1
- package/dist/message/utils/index.d.ts +3 -3
- package/dist/message/utils/index.d.ts.map +1 -1
- package/dist/poll/api/tests/closePoll.test.d.ts +2 -0
- package/dist/poll/api/tests/closePoll.test.d.ts.map +1 -0
- package/dist/poll/api/tests/createPoll.test.d.ts +2 -0
- package/dist/poll/api/tests/createPoll.test.d.ts.map +1 -0
- package/dist/poll/api/tests/getPoll.test.d.ts +2 -0
- package/dist/poll/api/tests/getPoll.test.d.ts.map +1 -0
- package/dist/poll/api/tests/votePoll.test.d.ts +2 -0
- package/dist/poll/api/tests/votePoll.test.d.ts.map +1 -0
- package/dist/post/api/approvePost.d.ts.map +1 -1
- package/dist/post/api/createPost.d.ts.map +1 -1
- package/dist/post/api/declinePost.d.ts.map +1 -1
- package/dist/post/api/deletePost.d.ts.map +1 -1
- package/dist/post/api/getPost.d.ts.map +1 -1
- package/dist/post/api/getPosts.d.ts.map +1 -1
- package/dist/post/api/queryPosts.d.ts.map +1 -1
- package/dist/post/api/updatePost.d.ts.map +1 -1
- package/dist/post/events/utils.d.ts.map +1 -1
- package/dist/reaction/api/queryReactions.d.ts.map +1 -1
- package/dist/reaction/api/removeReaction.d.ts.map +1 -1
- package/dist/reaction/events/onReactorAdded.d.ts.map +1 -1
- package/dist/reaction/events/onReactorRemoved.d.ts.map +1 -1
- package/dist/reaction/utils/dispatchReactable.d.ts +1 -1
- package/dist/reaction/utils/dispatchReactable.d.ts.map +1 -1
- package/dist/report/api/createReport.d.ts.map +1 -1
- package/dist/report/api/deleteReport.d.ts.map +1 -1
- package/dist/subChannel/utils/index.d.ts +1 -1
- package/dist/subChannel/utils/index.d.ts.map +1 -1
- package/dist/utils/index.d.ts +2 -2
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/tests/dummy/channel.d.ts +31 -35
- package/dist/utils/tests/dummy/channel.d.ts.map +1 -1
- package/dist/utils/tests/dummy/community.d.ts +35 -84
- package/dist/utils/tests/dummy/community.d.ts.map +1 -1
- package/dist/utils/tests/dummy/feed.d.ts +2 -18
- package/dist/utils/tests/dummy/feed.d.ts.map +1 -1
- package/dist/utils/tests/dummy/member.d.ts +1 -1
- package/dist/utils/tests/dummy/post.d.ts +30 -29
- package/dist/utils/tests/dummy/post.d.ts.map +1 -1
- package/dist/version.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/@types/core/events.ts +22 -20
- package/src/@types/core/model.ts +3 -2
- package/src/@types/core/payload.ts +102 -38
- package/src/@types/domains/channel.ts +1 -1
- package/src/@types/domains/client.ts +1 -1
- package/src/@types/domains/comment.ts +7 -0
- package/src/@types/domains/community.ts +25 -0
- package/src/@types/domains/content.ts +9 -1
- package/src/@types/domains/group.ts +2 -2
- package/src/@types/global.ts +10 -0
- package/src/cache/api/ingestInCache.ts +3 -6
- package/src/cache/api/tests/ingestInCache.test.ts +12 -9
- package/src/channel/api/addChannelMembers.ts +5 -5
- package/src/channel/api/banChannelMembers.ts +1 -3
- package/src/channel/api/getChannel.ts +1 -1
- package/src/channel/api/queryChannelMembers.ts +1 -3
- package/src/channel/api/removeChannelMembers.ts +5 -5
- package/src/channel/api/tests/addChannelMembers.test.ts +4 -3
- package/src/channel/api/tests/createChannel.test.ts +5 -3
- package/src/channel/api/tests/getChannel.test.ts +2 -1
- package/src/channel/api/tests/joinChannel.test.ts +2 -2
- package/src/channel/api/tests/leaveChannel.test.ts +2 -2
- package/src/channel/api/tests/queryChannelMembers.test.ts +2 -5
- package/src/channel/api/tests/queryChannels.test.ts +4 -3
- package/src/channel/api/tests/removeChannelMembers.test.ts +16 -5
- package/src/channel/api/unbanChannelMembers.ts +1 -3
- package/src/channel/events/onChannelJoined.ts +1 -3
- package/src/channel/events/onChannelLeft.ts +1 -3
- package/src/channel/events/onChannelMemberAdded.ts +1 -3
- package/src/channel/events/onChannelMemberBanned.ts +1 -3
- package/src/channel/events/onChannelMemberRemoved.ts +1 -3
- package/src/channel/events/onChannelMemberUnbanned.ts +1 -3
- package/src/channel/observers/tests/liveChannelMembers.test.ts +5 -12
- package/src/channel/observers/tests/liveChannels.test.ts +3 -1
- package/src/channel/utils/index.ts +9 -6
- package/src/comment/api/createComment.ts +18 -2
- package/src/comment/api/deleteComment.ts +19 -2
- package/src/comment/api/tests/createComment.test.ts +169 -9
- package/src/comment/api/tests/updateComment.test.ts +189 -0
- package/src/comment/events/tests/onCommentCreated.test.ts +3 -3
- package/src/comment/events/tests/onCommentDeleted.test.ts +3 -3
- package/src/comment/observers/tests/liveComment.test.ts +18 -2
- package/src/community/api/addCommunityMembers.ts +6 -3
- package/src/community/api/addCommunityMembersRoles.ts +5 -2
- package/src/community/api/createCommunity.ts +5 -5
- package/src/community/api/deleteCommunity.ts +9 -1
- package/src/community/api/getCommunities.ts +2 -2
- package/src/community/api/getCommunity.ts +2 -2
- package/src/community/api/getRecommendedCommunities.ts +2 -2
- package/src/community/api/getTopTrendingCommunities.ts +2 -2
- package/src/community/api/joinCommunity.ts +6 -3
- package/src/community/api/leaveCommunity.ts +6 -3
- package/src/community/api/queryCommunities.ts +3 -3
- package/src/community/api/queryCommunityMembers.ts +3 -7
- package/src/community/api/removeCommunityMembers.ts +7 -3
- package/src/community/api/removeCommunityMembersRoles.ts +5 -2
- package/src/community/api/test/queryCommunityMembers.test.ts +2 -1
- package/src/community/api/test/removeCommunityMemberRole.test.ts +4 -1
- package/src/community/api/updateCommunity.ts +5 -5
- package/src/community/events/index.ts +2 -0
- package/src/community/events/onCommunityUserRoleAdded.ts +20 -0
- package/src/community/events/onCommunityUserRoleRemoved.ts +20 -0
- package/src/community/events/test/onCommunityDeleted.test.ts +8 -1
- package/src/community/events/test/onCommunityUserRoleAdded.test.ts +50 -0
- package/src/community/events/test/onCommunityUserRoleRemoved.test.ts +50 -0
- package/src/community/events/utils.ts +4 -8
- package/src/community/observers/index.ts +4 -0
- package/src/community/observers/liveCommunity.ts +45 -0
- package/src/community/observers/liveCommunityMembers.ts +187 -0
- package/src/community/observers/tests/liveCommunities.test.ts +38 -18
- package/src/community/observers/tests/liveCommunity.test.ts +147 -0
- package/src/community/observers/tests/liveCommunityMembers.test.ts +195 -0
- package/src/community/utils/payload.ts +28 -22
- package/src/core/device.ts +2 -4
- package/src/core/model/idResolvers.ts +4 -3
- package/src/core/model/identifyModel.ts +3 -3
- package/src/core/model/index.ts +1 -0
- package/src/core/query/query.ts +7 -0
- package/src/core/tests/query/query/runQuery.test.ts +8 -3
- package/src/core/tests/subscription.test.ts +80 -2
- package/src/external/api/tests/createUserToken.test.ts +29 -0
- package/src/feed/api/queryGlobalFeed.ts +8 -4
- package/src/group/utils/test/withUsers.test.ts +5 -5
- package/src/group/utils/withUser.ts +20 -14
- package/src/message/api/createMessage.ts +10 -9
- package/src/message/api/getMessage.ts +2 -2
- package/src/message/api/getMessages.ts +1 -1
- package/src/message/api/queryMessages.ts +2 -2
- package/src/message/api/tests/createMessage.test.ts +5 -1
- package/src/message/api/updateMessage.ts +1 -1
- package/src/message/events/onMessageCreated.ts +1 -1
- package/src/message/events/onMessageDeleted.ts +1 -1
- package/src/message/events/onMessageFetched.ts +1 -1
- package/src/message/events/onMessageFlagCleared.ts +1 -1
- package/src/message/events/onMessageFlagged.ts +1 -1
- package/src/message/events/onMessageReactionAdded.ts +1 -1
- package/src/message/events/onMessageReactionRemoved.ts +1 -1
- package/src/message/events/onMessageUnflagged.ts +1 -1
- package/src/message/events/onMessageUpdated.ts +1 -1
- package/src/message/tests/events.test.ts +10 -2
- package/src/message/tests/observers/liveMessage.test.ts +6 -1
- package/src/message/tests/observers/liveMessages.test.ts +16 -3
- package/src/message/utils/index.ts +5 -3
- package/src/poll/api/tests/closePoll.test.ts +50 -0
- package/src/poll/api/tests/createPoll.test.ts +70 -0
- package/src/poll/api/tests/getPoll.test.ts +31 -0
- package/src/poll/api/tests/votePoll.test.ts +41 -0
- package/src/poll/events/onPollDeleted.ts +1 -1
- package/src/poll/events/onPollUpdated.ts +1 -1
- package/src/post/api/approvePost.ts +10 -10
- package/src/post/api/createPost.ts +6 -3
- package/src/post/api/declinePost.ts +11 -11
- package/src/post/api/deletePost.ts +19 -2
- package/src/post/api/getPost.ts +5 -2
- package/src/post/api/getPosts.ts +4 -1
- package/src/post/api/queryPosts.ts +3 -1
- package/src/post/api/tests/queryPosts.test.ts +5 -4
- package/src/post/api/updatePost.ts +4 -1
- package/src/post/events/onPostReactionAdded.ts +1 -1
- package/src/post/events/onPostReactionRemoved.ts +1 -1
- package/src/post/events/utils.ts +12 -2
- package/src/post/observers/tests/livePost.test.ts +10 -3
- package/src/post/observers/tests/livePosts.test.ts +12 -4
- package/src/post/tests/api/getPost.test.ts +13 -3
- package/src/post/tests/api/queryPosts.test.ts +5 -4
- package/src/reaction/api/addReaction.ts +3 -3
- package/src/reaction/api/queryReactions.ts +2 -0
- package/src/reaction/api/removeReaction.ts +4 -3
- package/src/reaction/events/onReactionAdded.ts +3 -3
- package/src/reaction/events/onReactionRemoved.ts +3 -3
- package/src/reaction/events/onReactorAdded.ts +8 -2
- package/src/reaction/events/onReactorRemoved.ts +8 -2
- package/src/reaction/utils/dispatchReactable.ts +1 -1
- package/src/reaction/utils/fetchReference.ts +1 -1
- package/src/report/api/createReport.ts +14 -8
- package/src/report/api/deleteReport.ts +14 -8
- package/src/subChannel/api/createSubChannel.ts +1 -1
- package/src/subChannel/api/getSubChannel.ts +1 -1
- package/src/subChannel/api/getSubChannels.ts +1 -1
- package/src/subChannel/api/querySubChannels.ts +2 -2
- package/src/subChannel/api/updateSubChannel.ts +1 -1
- package/src/subChannel/events/onSubChannelCreated.ts +1 -1
- package/src/subChannel/events/onSubChannelDeleted.ts +1 -1
- package/src/subChannel/events/onSubChannelUpdated.ts +1 -1
- package/src/subChannel/utils/index.ts +2 -2
- package/src/user/observers/tests/liveUsers.test.ts +2 -0
- package/src/user/tests/api/getUser.test.ts +17 -3
- package/src/utils/index.ts +2 -2
- package/src/utils/liveObject.ts +1 -1
- package/src/utils/tests/dummy/channel.ts +18 -11
- package/src/utils/tests/dummy/community.ts +68 -6
- package/src/utils/tests/dummy/feed.ts +1 -1
- package/src/utils/tests/dummy/member.ts +1 -1
- package/src/utils/tests/dummy/post.ts +93 -9
- package/src/version.ts +9 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createMessage.d.ts","sourceRoot":"","sources":["../../../src/message/api/createMessage.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"createMessage.d.ts","sourceRoot":"","sources":["../../../src/message/api/createMessage.ts"],"names":[],"mappings":"AAYA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,eAAO,MAAM,aAAa;;;;QAQvB,QAAQ,MAAM,MAAM,CAAC,MAAM,OAAO,CAAC,CAAC;IA6BvC;;;;;;;;;;;;;;;;OAgBG;2BAEO,WAAW,oBAAoB,CAAC,CAAC,CAAC,CAAC,GAC1C,MAAM,MAAM,CAAC,MAAM,OAAO,CAAC,GAAG,SAAS;CArBzC,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { AxiosResponse } from 'axios';
|
|
2
2
|
export declare function convertFromRaw({ channelPublicId, childCount, creatorPublicId, mentionedUsers, messageFeedId, myReactions, reactionCount, reactions, referenceId, segment, ...rest }: Amity.RawMessage): Amity.Message;
|
|
3
|
-
export declare const prepareMessagePayload: (payload: Amity.
|
|
4
|
-
export declare const convertResponseFromRaw: <T extends Amity.
|
|
5
|
-
messages: Amity.
|
|
3
|
+
export declare const prepareMessagePayload: (payload: Amity.MessagePayload) => Amity.ProcessedMessagePayload;
|
|
4
|
+
export declare const convertResponseFromRaw: <T extends Amity.MessagePayload<any>>(response: AxiosResponse<T, any>) => AxiosResponse<Omit<T, "messages"> & {
|
|
5
|
+
messages: Amity.ProcessedMessagePayload['messages'];
|
|
6
6
|
}, any>;
|
|
7
7
|
declare type RawQueryMessages = Omit<Amity.QueryMessages, 'page' | 'sortBy' | 'subChannelId' | 'tags'> & {
|
|
8
8
|
includeTags?: Amity.QueryMessages['tags'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/message/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAKtC,wBAAgB,cAAc,CAAC,EAC7B,eAAe,EACf,UAAU,EACV,eAAe,EACf,cAAc,EACd,aAAa,EACb,WAAW,EACX,aAAa,EACb,SAAS,EACT,WAAW,EACX,OAAO,EACP,GAAG,IAAI,EACR,EAAE,KAAK,CAAC,UAAU,GAAG,KAAK,CAAC,OAAO,CAmDlC;AAED,eAAO,MAAM,qBAAqB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/message/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAKtC,wBAAgB,cAAc,CAAC,EAC7B,eAAe,EACf,UAAU,EACV,eAAe,EACf,cAAc,EACd,aAAa,EACb,WAAW,EACX,aAAa,EACb,SAAS,EACT,WAAW,EACX,OAAO,EACP,GAAG,IAAI,EACR,EAAE,KAAK,CAAC,UAAU,GAAG,KAAK,CAAC,OAAO,CAmDlC;AAED,eAAO,MAAM,qBAAqB,YACvB,MAAM,cAAc,KAC5B,MAAM,uBAKR,CAAC;AAEF,eAAO,MAAM,sBAAsB;cAEgB,MAAM,uBAAuB,CAAC,UAAU,CAAC;OAQ3F,CAAC;AAEF,aAAK,gBAAgB,GAAG,IAAI,CAAC,KAAK,CAAC,aAAa,EAAE,MAAM,GAAG,QAAQ,GAAG,cAAc,GAAG,MAAM,CAAC,GAAG;IAC/F,WAAW,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;IAC1C,aAAa,EAAE,KAAK,CAAC,aAAa,CAAC,cAAc,CAAC,CAAC;IACnD,OAAO,EAAE;QACP,MAAM,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;QACvC,KAAK,EAAE,MAAM,CAAC;KACf,CAAC;CACH,CAAC;AAEF,wBAAgB,aAAa,CAAC,EAC5B,YAAY,EACZ,UAAU,EACV,GAAG,IAAI,EACR,EAAE,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAE9C;AAED,wBAAgB,kBAAkB,CAAC,EACjC,IAAI,EACJ,MAAM,EACN,YAAY,EACZ,IAAI,EACJ,GAAG,IAAI,EACR,EAAE,KAAK,CAAC,aAAa,GAAG,gBAAgB,CAgBxC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"closePoll.test.d.ts","sourceRoot":"","sources":["../../../../src/poll/api/tests/closePoll.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createPoll.test.d.ts","sourceRoot":"","sources":["../../../../src/poll/api/tests/createPoll.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getPoll.test.d.ts","sourceRoot":"","sources":["../../../../src/poll/api/tests/getPoll.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"votePoll.test.d.ts","sourceRoot":"","sources":["../../../../src/poll/api/tests/votePoll.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"approvePost.d.ts","sourceRoot":"","sources":["../../../src/post/api/approvePost.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"approvePost.d.ts","sourceRoot":"","sources":["../../../src/post/api/approvePost.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,WAAW,WACd,MAAM,IAAI,CAAC,QAAQ,CAAC,KAC3B,QAAQ,MAAM,MAAM,CAAC,MAAM,IAAI,CAAC,CAwBlC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createPost.d.ts","sourceRoot":"","sources":["../../../src/post/api/createPost.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"createPost.d.ts","sourceRoot":"","sources":["../../../src/post/api/createPost.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,UAAU;;;;;;;gBAIc,UAAU,CAAC,QAAQ,CAAC;;MAEtD,QAAQ,MAAM,MAAM,CAAC,MAAM,IAAI,CAAC,CAyBlC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"declinePost.d.ts","sourceRoot":"","sources":["../../../src/post/api/declinePost.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"declinePost.d.ts","sourceRoot":"","sources":["../../../src/post/api/declinePost.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,WAAW,WACd,MAAM,IAAI,CAAC,QAAQ,CAAC,KAC3B,QAAQ,MAAM,MAAM,CAAC,MAAM,IAAI,CAAC,CAwBlC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deletePost.d.ts","sourceRoot":"","sources":["../../../src/post/api/deletePost.ts"],"names":[],"mappings":"AASA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,UAAU,WACb,MAAM,IAAI,CAAC,QAAQ,CAAC,0BAE3B,QAAQ,MAAM,IAAI,
|
|
1
|
+
{"version":3,"file":"deletePost.d.ts","sourceRoot":"","sources":["../../../src/post/api/deletePost.ts"],"names":[],"mappings":"AASA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,UAAU,WACb,MAAM,IAAI,CAAC,QAAQ,CAAC,0BAE3B,QAAQ,MAAM,IAAI,CAsDpB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getPost.d.ts","sourceRoot":"","sources":["../../../src/post/api/getPost.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getPost.d.ts","sourceRoot":"","sources":["../../../src/post/api/getPost.ts"],"names":[],"mappings":"AASA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,OAAO;aAAkB,MAAM,IAAI,CAAC,QAAQ,CAAC,GAAG,QAAQ,MAAM,MAAM,CAAC,MAAM,IAAI,CAAC,CAAC;IAmC9F;;;;;;;;;;;;OAYG;oBACwB,MAAM,IAAI,CAAC,QAAQ,CAAC,GAAG,MAAM,MAAM,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS;CAfrF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getPosts.d.ts","sourceRoot":"","sources":["../../../src/post/api/getPosts.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"getPosts.d.ts","sourceRoot":"","sources":["../../../src/post/api/getPosts.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,QAAQ;cACV,MAAM,IAAI,CAAC,QAAQ,CAAC,EAAE,GAC9B,QAAQ,MAAM,MAAM,CAAC,MAAM,IAAI,EAAE,CAAC,CAAC;IAsBtC;;;;;;;;;;;;OAYG;qBAC0B,MAAM,IAAI,CAAC,QAAQ,CAAC,EAAE,GAAG,MAAM,MAAM,CAAC,MAAM,IAAI,EAAE,CAAC,GAAG,SAAS;CAf3F,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queryPosts.d.ts","sourceRoot":"","sources":["../../../src/post/api/queryPosts.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"queryPosts.d.ts","sourceRoot":"","sources":["../../../src/post/api/queryPosts.ts"],"names":[],"mappings":"AASA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,UAAU;YACd,MAAM,UAAU,GACtB,QAAQ,MAAM,MAAM,CAAC,MAAM,KAAK,CAAC,MAAM,IAAI,EAAE,MAAM,OAAO,CAAC,CAAC,CAAC;IAiDhE;;;;;;;;;;;;OAYG;mBAEM,WAAW,iBAAiB,CAAC,CAAC,CAAC,CAAC,GACtC,MAAM,MAAM,CAAC,MAAM,KAAK,CAAC,MAAM,IAAI,EAAE,MAAM,OAAO,CAAC,CAAC,GAAG,SAAS;CAjBlE,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updatePost.d.ts","sourceRoot":"","sources":["../../../src/post/api/updatePost.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"updatePost.d.ts","sourceRoot":"","sources":["../../../src/post/api/updatePost.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,UAAU,WACb,MAAM,IAAI,CAAC,QAAQ,CAAC,SACrB,MAAM,MAAM,IAAI,EAAE,MAAM,GAAG,UAAU,GAAG,YAAY,GAAG,MAAM,CAAC,GAAG;IACtE,WAAW,CAAC,EAAE;QACZ,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC;QACjC,MAAM,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAC;KAC9B,EAAE,CAAC;CACL,KACA,QAAQ,MAAM,MAAM,CAAC,MAAM,IAAI,CAAC,CAsBlC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/post/events/utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/post/events/utils.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,yBAAyB,UAC7B,MAAM,MAAM,cAAc,YACvB,MAAM,QAAQ,CAAC,MAAM,IAAI,CAAC,uBA6CrC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queryReactions.d.ts","sourceRoot":"","sources":["../../../src/reaction/api/queryReactions.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;KAgBK;AACL,eAAO,MAAM,cAAc,UAClB,MAAM,cAAc,KAC1B,QAAQ,MAAM,KAAK,CAAC,MAAM,aAAa,EAAE,MAAM,IAAI,CAAC,MAAM,CAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"queryReactions.d.ts","sourceRoot":"","sources":["../../../src/reaction/api/queryReactions.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;KAgBK;AACL,eAAO,MAAM,cAAc,UAClB,MAAM,cAAc,KAC1B,QAAQ,MAAM,KAAK,CAAC,MAAM,aAAa,EAAE,MAAM,IAAI,CAAC,MAAM,CAAC,CAAC,CA6B9D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"removeReaction.d.ts","sourceRoot":"","sources":["../../../src/reaction/api/removeReaction.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"removeReaction.d.ts","sourceRoot":"","sources":["../../../src/reaction/api/removeReaction.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;;;KAeK;AACL,eAAO,MAAM,cAAc;oBACV,MAAM,QAAQ,CAAC,eAAe,CAAC,eACjC,MAAM,QAAQ,CAAC,aAAa,CAAC,gBAC5B,MAAM,QAAQ,CAAC,cAAc,CAAC,GAC3C,QAAQ,OAAO,CAAC;IA+BnB;;;;;;;;;;;;;;SAcK;kCAEY,MAAM,aAAa,eACrB,MAAM,QAAQ,CAAC,aAAa,CAAC,gBAC5B,MAAM,QAAQ,CAAC,cAAc,CAAC,GAC3C,OAAO,GAAG,SAAS;CArBrB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onReactorAdded.d.ts","sourceRoot":"","sources":["../../../src/reaction/events/onReactorAdded.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;KAgBK;AACL,eAAO,MAAM,cAAc,kBACV,MAAM,aAAa,eACrB,MAAM,QAAQ,CAAC,aAAa,CAAC,YAChC,MAAM,QAAQ,CAAC,MAAM,OAAO,CAAC,KACtC,MAAM,
|
|
1
|
+
{"version":3,"file":"onReactorAdded.d.ts","sourceRoot":"","sources":["../../../src/reaction/events/onReactorAdded.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;KAgBK;AACL,eAAO,MAAM,cAAc,kBACV,MAAM,aAAa,eACrB,MAAM,QAAQ,CAAC,aAAa,CAAC,YAChC,MAAM,QAAQ,CAAC,MAAM,OAAO,CAAC,KACtC,MAAM,YA6DR,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onReactorRemoved.d.ts","sourceRoot":"","sources":["../../../src/reaction/events/onReactorRemoved.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;KAgBK;AACL,eAAO,MAAM,gBAAgB,kBACZ,MAAM,aAAa,eACrB,MAAM,QAAQ,CAAC,aAAa,CAAC,YAChC,MAAM,QAAQ,CAAC,MAAM,OAAO,CAAC,KACtC,MAAM,
|
|
1
|
+
{"version":3,"file":"onReactorRemoved.d.ts","sourceRoot":"","sources":["../../../src/reaction/events/onReactorRemoved.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;KAgBK;AACL,eAAO,MAAM,gBAAgB,kBACZ,MAAM,aAAa,eACrB,MAAM,QAAQ,CAAC,aAAa,CAAC,YAChC,MAAM,QAAQ,CAAC,MAAM,OAAO,CAAC,KACtC,MAAM,YA6DR,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/** @hidden */
|
|
2
|
-
export declare const dispatchReactable: <T extends Amity.ReactableType>(referenceType: T, model: Amity.
|
|
2
|
+
export declare const dispatchReactable: <T extends Amity.ReactableType>(referenceType: T, model: Amity.Models[T]) => void;
|
|
3
3
|
//# sourceMappingURL=dispatchReactable.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dispatchReactable.d.ts","sourceRoot":"","sources":["../../../src/reaction/utils/dispatchReactable.ts"],"names":[],"mappings":"AAEA,cAAc;AACd,eAAO,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"dispatchReactable.d.ts","sourceRoot":"","sources":["../../../src/reaction/utils/dispatchReactable.ts"],"names":[],"mappings":"AAEA,cAAc;AACd,eAAO,MAAM,iBAAiB,mFAa7B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createReport.d.ts","sourceRoot":"","sources":["../../../src/report/api/createReport.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"createReport.d.ts","sourceRoot":"","sources":["../../../src/report/api/createReport.ts"],"names":[],"mappings":"AAOA,OAAO,eAAe,MAAM,6BAA6B,CAAC;AAE1D;;;;;;;;;;;;KAYK;AACL,eAAO,MAAM,YAAY,kBACR,MAAM,sBAAsB,eAC9B,MAAM,KAClB,QAAQ,OAAO,CAmCjB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deleteReport.d.ts","sourceRoot":"","sources":["../../../src/report/api/deleteReport.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"deleteReport.d.ts","sourceRoot":"","sources":["../../../src/report/api/deleteReport.ts"],"names":[],"mappings":"AAOA,OAAO,eAAe,MAAM,6BAA6B,CAAC;AAE1D;;;;;;;;;;;;KAYK;AACL,eAAO,MAAM,YAAY,kBACR,MAAM,sBAAsB,eAC9B,MAAM,KAClB,QAAQ,OAAO,CAoCjB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare function convertFromRaw({ channelId, channelPublicId, channelType, childCount, creatorId, creatorPublicId, lastMessageId, lastMessageTimestamp, messageFeedId, name, ...rest }: Amity.RawSubChannel): Amity.SubChannel;
|
|
2
|
-
export declare const prepareSubChannelPayload: (payload: Amity.
|
|
2
|
+
export declare const prepareSubChannelPayload: (payload: Amity.SubChannelPayload) => Amity.ProcessedSubChannelPayload;
|
|
3
3
|
declare type RawQuerySubChannels = Omit<Amity.QuerySubChannels, 'excludeDefaultSubChannel'> & {
|
|
4
4
|
excludeDefaultMessageFeed?: Amity.QuerySubChannels['excludeDefaultSubChannel'];
|
|
5
5
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/subChannel/utils/index.ts"],"names":[],"mappings":"AAAA,wBAAgB,cAAc,CAAC,EAC7B,SAAS,EACT,eAAe,EACf,WAAW,EACX,UAAU,EACV,SAAS,EACT,eAAe,EACf,aAAa,EACb,oBAAoB,EACpB,aAAa,EACb,IAAI,EACJ,GAAG,IAAI,EACR,EAAE,KAAK,CAAC,aAAa,GAAG,KAAK,CAAC,UAAU,CAWxC;AAED,eAAO,MAAM,wBAAwB,YAC1B,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/subChannel/utils/index.ts"],"names":[],"mappings":"AAAA,wBAAgB,cAAc,CAAC,EAC7B,SAAS,EACT,eAAe,EACf,WAAW,EACX,UAAU,EACV,SAAS,EACT,eAAe,EACf,aAAa,EACb,oBAAoB,EACpB,aAAa,EACb,IAAI,EACJ,GAAG,IAAI,EACR,EAAE,KAAK,CAAC,aAAa,GAAG,KAAK,CAAC,UAAU,CAWxC;AAED,eAAO,MAAM,wBAAwB,YAC1B,MAAM,iBAAiB,KAC/B,MAAM,0BAKR,CAAC;AAEF,aAAK,mBAAmB,GAAG,IAAI,CAAC,KAAK,CAAC,gBAAgB,EAAE,0BAA0B,CAAC,GAAG;IACpF,yBAAyB,CAAC,EAAE,KAAK,CAAC,gBAAgB,CAAC,0BAA0B,CAAC,CAAC;CAChF,CAAC;AAEF,wBAAgB,kBAAkB,CAAC,EACjC,wBAAwB,EACxB,GAAG,IAAI,EACR,EAAE,KAAK,CAAC,gBAAgB,GAAG,mBAAmB,CAQ9C"}
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare function hasMention(model: Amity.Mentionable<'user' | 'channel'>, userId: string): boolean;
|
|
2
|
-
export declare function isCollectionOutdated<T extends Amity.
|
|
3
|
-
export declare function merge<T extends Amity.
|
|
2
|
+
export declare function isCollectionOutdated<T extends Amity.Models[Amity.Domain] & Amity.UpdatedAt>(collection: T[], newItem: T, action: 'onCreate' | string): boolean;
|
|
3
|
+
export declare function merge<T extends Amity.Models[Amity.Domain]>(collection1: T[], collection2: T[]): T[];
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAEA,wBAAgB,UAAU,CAAC,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,MAAM,GAAG,SAAS,CAAC,EAAE,MAAM,EAAE,MAAM,WActF;AAED,wBAAgB,oBAAoB,CAAC,CAAC,SAAS,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAEA,wBAAgB,UAAU,CAAC,KAAK,EAAE,KAAK,CAAC,WAAW,CAAC,MAAM,GAAG,SAAS,CAAC,EAAE,MAAM,EAAE,MAAM,WActF;AAED,wBAAgB,oBAAoB,CAAC,CAAC,SAAS,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,KAAK,CAAC,SAAS,EACzF,UAAU,EAAE,CAAC,EAAE,EACf,OAAO,EAAE,CAAC,EACV,MAAM,EAAE,UAAU,GAAG,MAAM,GAC1B,OAAO,CAUT;AAED,wBAAgB,KAAK,CAAC,CAAC,SAAS,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,EACxD,WAAW,EAAE,CAAC,EAAE,EAChB,WAAW,EAAE,CAAC,EAAE,GACf,CAAC,EAAE,CAcL"}
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
export declare function generateRawChannel(params?: Partial<Amity.
|
|
1
|
+
export declare function generateRawChannel(params?: Partial<Amity.RawChannel>): Amity.RawChannel;
|
|
2
2
|
export declare const mockPage: {
|
|
3
3
|
paging: {
|
|
4
4
|
previous: string;
|
|
5
5
|
next: string;
|
|
6
6
|
};
|
|
7
7
|
};
|
|
8
|
-
export declare const channelRaw1: Amity.
|
|
9
|
-
export declare const channelRawLive1: Amity.
|
|
10
|
-
export declare const channelRawConversation1: Amity.
|
|
11
|
-
export declare const channelRaw2: Amity.
|
|
12
|
-
export declare const channelRaw3: Amity.
|
|
8
|
+
export declare const channelRaw1: Amity.RawChannel;
|
|
9
|
+
export declare const channelRawLive1: Amity.RawChannel;
|
|
10
|
+
export declare const channelRawConversation1: Amity.RawChannel;
|
|
11
|
+
export declare const channelRaw2: Amity.RawChannel;
|
|
12
|
+
export declare const channelRaw3: Amity.RawChannel;
|
|
13
13
|
export declare const channel1: Amity.Channel;
|
|
14
14
|
export declare const channel2: Amity.Channel;
|
|
15
|
-
export declare const rawChannelUser: Amity.
|
|
15
|
+
export declare const rawChannelUser: Amity.RawMembership<"channel", false>;
|
|
16
16
|
export declare const channelUser: Amity.Membership<"channel">;
|
|
17
|
-
export declare const rawChannelUser2: Amity.
|
|
17
|
+
export declare const rawChannelUser2: Amity.RawMembership<"channel", false>;
|
|
18
18
|
export declare const channelUser2: Amity.Membership<"channel">;
|
|
19
|
-
export declare const rawChannelUser3: Amity.
|
|
19
|
+
export declare const rawChannelUser3: Amity.RawMembership<"channel", false>;
|
|
20
20
|
export declare const channelUser3: Amity.Membership<"channel">;
|
|
21
|
-
export declare const channelUser4: Amity.
|
|
22
|
-
export declare const rawBannedChannelUser: Amity.
|
|
21
|
+
export declare const channelUser4: Amity.RawMembership<"channel", false>;
|
|
22
|
+
export declare const rawBannedChannelUser: Amity.RawMembership<"channel", false>;
|
|
23
23
|
export declare const bannedChannelUser: Amity.Membership<"channel">;
|
|
24
|
-
export declare const rawMutedChannelUser: Amity.
|
|
24
|
+
export declare const rawMutedChannelUser: Amity.RawMembership<"channel", false>;
|
|
25
25
|
export declare const mutedChannelUser: Amity.Membership<"channel">;
|
|
26
|
-
export declare const rawChannelUserWithRole: Amity.
|
|
26
|
+
export declare const rawChannelUserWithRole: Amity.RawMembership<"channel", false>;
|
|
27
27
|
export declare const channelUserWithRole: Amity.Membership<"channel">;
|
|
28
28
|
export declare const channelQueryResponse: {
|
|
29
29
|
data: {
|
|
@@ -31,7 +31,7 @@ export declare const channelQueryResponse: {
|
|
|
31
31
|
previous: string;
|
|
32
32
|
next: string;
|
|
33
33
|
};
|
|
34
|
-
channels: Amity.
|
|
34
|
+
channels: Amity.RawChannel<any>[];
|
|
35
35
|
channelUsers: never[];
|
|
36
36
|
files: never[];
|
|
37
37
|
users: never[];
|
|
@@ -43,7 +43,7 @@ export declare const getChannelsResponse: {
|
|
|
43
43
|
previous: string;
|
|
44
44
|
next: string;
|
|
45
45
|
};
|
|
46
|
-
channels: Amity.
|
|
46
|
+
channels: Amity.RawChannel<any>[];
|
|
47
47
|
channelUsers: never[];
|
|
48
48
|
files: never[];
|
|
49
49
|
users: never[];
|
|
@@ -55,7 +55,7 @@ export declare const channelQueryResponsePage2: {
|
|
|
55
55
|
previous: string;
|
|
56
56
|
next: string;
|
|
57
57
|
};
|
|
58
|
-
channels: Amity.
|
|
58
|
+
channels: Amity.RawChannel<any>[];
|
|
59
59
|
channelUsers: never[];
|
|
60
60
|
files: never[];
|
|
61
61
|
users: never[];
|
|
@@ -67,7 +67,7 @@ export declare const channelTagQueryResponse: {
|
|
|
67
67
|
previous: string;
|
|
68
68
|
next: string;
|
|
69
69
|
};
|
|
70
|
-
channels: Amity.
|
|
70
|
+
channels: Amity.RawChannel<any>[];
|
|
71
71
|
channelUsers: never[];
|
|
72
72
|
files: never[];
|
|
73
73
|
users: never[];
|
|
@@ -79,7 +79,7 @@ export declare const channelExcludeTagQueryResponse: {
|
|
|
79
79
|
previous: string;
|
|
80
80
|
next: string;
|
|
81
81
|
};
|
|
82
|
-
channels: Amity.
|
|
82
|
+
channels: Amity.RawChannel<any>[];
|
|
83
83
|
channelUsers: never[];
|
|
84
84
|
files: never[];
|
|
85
85
|
users: never[];
|
|
@@ -91,8 +91,8 @@ export declare const channelUserQueryResponse: {
|
|
|
91
91
|
previous: string;
|
|
92
92
|
next: string;
|
|
93
93
|
};
|
|
94
|
-
channels: Amity.
|
|
95
|
-
channelUsers: Amity.
|
|
94
|
+
channels: Amity.RawChannel<any>[];
|
|
95
|
+
channelUsers: Amity.RawMembership<"channel", false>[];
|
|
96
96
|
users: Amity.User[];
|
|
97
97
|
files: never[];
|
|
98
98
|
};
|
|
@@ -103,7 +103,7 @@ export declare const emptyChannelUserQueryResponse: {
|
|
|
103
103
|
previous: string;
|
|
104
104
|
next: string;
|
|
105
105
|
};
|
|
106
|
-
channels: Amity.
|
|
106
|
+
channels: Amity.RawChannel<any>[];
|
|
107
107
|
channelUsers: never[];
|
|
108
108
|
users: never[];
|
|
109
109
|
files: never[];
|
|
@@ -116,8 +116,8 @@ export declare const channelUserQueryResponsePage2: {
|
|
|
116
116
|
previous: string;
|
|
117
117
|
next: string;
|
|
118
118
|
};
|
|
119
|
-
channels: Amity.
|
|
120
|
-
channelUsers: Amity.
|
|
119
|
+
channels: Amity.RawChannel<any>[];
|
|
120
|
+
channelUsers: Amity.RawMembership<"channel", false>[];
|
|
121
121
|
users: Amity.User[];
|
|
122
122
|
files: never[];
|
|
123
123
|
};
|
|
@@ -128,27 +128,23 @@ export declare const channelUserQueryResponsePage3: {
|
|
|
128
128
|
previous: string;
|
|
129
129
|
next: string;
|
|
130
130
|
};
|
|
131
|
-
channels: Amity.
|
|
132
|
-
channelUsers: Amity.
|
|
131
|
+
channels: Amity.RawChannel<any>[];
|
|
132
|
+
channelUsers: Amity.RawMembership<"channel", false>[];
|
|
133
133
|
users: Amity.User[];
|
|
134
134
|
files: never[];
|
|
135
135
|
};
|
|
136
136
|
};
|
|
137
|
-
export declare const
|
|
138
|
-
|
|
139
|
-
channelUsers: Amity.MembershipRaw<"channel", false>[];
|
|
140
|
-
users: Amity.User[];
|
|
141
|
-
files: Amity.File<"image">[];
|
|
142
|
-
};
|
|
137
|
+
export declare const rawChannelPayload: Amity.ChannelPayload;
|
|
138
|
+
export declare const channelPayload: Amity.ProcessedChannelPayload;
|
|
143
139
|
export declare const liveChannelPayload: {
|
|
144
|
-
channels: Amity.
|
|
145
|
-
channelUsers: Amity.
|
|
140
|
+
channels: Amity.RawChannel<any>[];
|
|
141
|
+
channelUsers: Amity.RawMembership<"channel", false>[];
|
|
146
142
|
users: Amity.User[];
|
|
147
143
|
files: Amity.File<"image">[];
|
|
148
144
|
};
|
|
149
145
|
export declare const conversationChannelPayload: {
|
|
150
|
-
channels: Amity.
|
|
151
|
-
channelUsers: Amity.
|
|
146
|
+
channels: Amity.RawChannel<any>[];
|
|
147
|
+
channelUsers: Amity.RawMembership<"channel", false>[];
|
|
152
148
|
users: Amity.User[];
|
|
153
149
|
files: Amity.File<"image">[];
|
|
154
150
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"channel.d.ts","sourceRoot":"","sources":["../../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Ae,uCAI1B,CAAC;AACH,eAAO,MAAM,YAAY,6BAAqD,CAAC;AAE/E,eAAO,MAAM,YAAY,uCAIvB,CAAC;AAEH,eAAO,MAAM,oBAAoB,uCAI/B,CAAC;AACH,eAAO,MAAM,iBAAiB,6BAA0D,CAAC;AAEzF,eAAO,MAAM,mBAAmB,uCAG9B,CAAC;AACH,eAAO,MAAM,gBAAgB,6BAAyD,CAAC;AAEvF,eAAO,MAAM,sBAAsB,uCAGjC,CAAC;AACH,eAAO,MAAM,mBAAmB,6BAA4D,CAAC;AAE7F,eAAO,MAAM,oBAAoB;;;;;;;;;;;CAQhC,CAAC;AAEF,eAAO,MAAM,mBAAmB;;;;;;;;;;;CAQ/B,CAAC;AAEF,eAAO,MAAM,yBAAyB;;;;;;;;;;;CAQrC,CAAC;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;;;CAQnC,CAAC;AAEF,eAAO,MAAM,8BAA8B;;;;;;;;;;;CAQ1C,CAAC;AAEF,eAAO,MAAM,wBAAwB;;;;;;;;;;;CAQpC,CAAC;AAEF,eAAO,MAAM,6BAA6B;;;;;;;;;;;CAQzC,CAAC;AAEF,eAAO,MAAM,gBAAgB,+BAAsD,CAAC;AAEpF,eAAO,MAAM,6BAA6B;;;;;;;;;;;CAQzC,CAAC;AAEF,eAAO,MAAM,6BAA6B;;;;;;;;;;;CAQzC,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,cAKrC,CAAC;AAGF,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,uBAKlC,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;CAK9B,CAAC;AAEF,eAAO,MAAM,0BAA0B;;;;;CAKtC,CAAC"}
|
|
@@ -1,9 +1,24 @@
|
|
|
1
1
|
export declare const baseCommunity: Amity.Community;
|
|
2
2
|
export declare const community11: Amity.Community;
|
|
3
3
|
export declare const community21: Amity.Community;
|
|
4
|
-
export declare const communityUser11: Amity.
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const
|
|
4
|
+
export declare const communityUser11: Amity.RawMembership<'community'>;
|
|
5
|
+
export declare const convertedCommunityUser1: Amity.Membership<"community">;
|
|
6
|
+
export declare const communityUser12: Amity.RawMembership<'community'>;
|
|
7
|
+
export declare const convertedCommunityUser2: Amity.Membership<"community">;
|
|
8
|
+
export declare const communityUser13: Amity.RawMembership<'community'>;
|
|
9
|
+
export declare const convertedCommunityUser3: Amity.Membership<"community">;
|
|
10
|
+
export declare const communityUser21: Amity.RawMembership<'community'>;
|
|
11
|
+
export declare const withRoleCommunityUser: Amity.Membership<"community">;
|
|
12
|
+
export declare const communityUser22: Amity.RawMembership<'community'>;
|
|
13
|
+
export declare const bannedCommunityUser: Amity.Membership<"community">;
|
|
14
|
+
export declare const emptyCommunityPayload: {
|
|
15
|
+
communities: never[];
|
|
16
|
+
communityUsers: never[];
|
|
17
|
+
categories: never[];
|
|
18
|
+
feeds: never[];
|
|
19
|
+
users: never[];
|
|
20
|
+
files: never[];
|
|
21
|
+
};
|
|
7
22
|
export declare const communityPayload: Amity.CommunityPayload;
|
|
8
23
|
export declare const communityUserQueryResponse: {
|
|
9
24
|
data: {
|
|
@@ -12,7 +27,21 @@ export declare const communityUserQueryResponse: {
|
|
|
12
27
|
next?: string | undefined;
|
|
13
28
|
};
|
|
14
29
|
communities: Amity.Community[];
|
|
15
|
-
communityUsers: Amity.
|
|
30
|
+
communityUsers: Amity.RawMembership<"community", false>[];
|
|
31
|
+
users: Amity.User[];
|
|
32
|
+
files: never[];
|
|
33
|
+
categories: never[];
|
|
34
|
+
feeds: never[];
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
export declare const communityUserQueryResponsePage2: {
|
|
38
|
+
data: {
|
|
39
|
+
paging: {
|
|
40
|
+
previous?: string | undefined;
|
|
41
|
+
next?: string | undefined;
|
|
42
|
+
};
|
|
43
|
+
communities: Amity.Community[];
|
|
44
|
+
communityUsers: Amity.RawMembership<"community", false>[];
|
|
16
45
|
users: Amity.User[];
|
|
17
46
|
files: never[];
|
|
18
47
|
categories: never[];
|
|
@@ -82,87 +111,9 @@ export declare const communityRaw2: {
|
|
|
82
111
|
categoryIds: never[];
|
|
83
112
|
};
|
|
84
113
|
export declare const communityQueryResponse: {
|
|
85
|
-
data:
|
|
86
|
-
communities: {
|
|
87
|
-
path: string;
|
|
88
|
-
isOfficial: boolean;
|
|
89
|
-
isPublic: boolean;
|
|
90
|
-
onlyAdminCanPost: boolean;
|
|
91
|
-
postsCount: number;
|
|
92
|
-
membersCount: number;
|
|
93
|
-
moderatorMemberCount: number;
|
|
94
|
-
updatedAt: string;
|
|
95
|
-
createdAt: string;
|
|
96
|
-
isDeleted: boolean;
|
|
97
|
-
needApprovalOnPostCreation: boolean;
|
|
98
|
-
displayName: string;
|
|
99
|
-
tags: string[];
|
|
100
|
-
metadata: {};
|
|
101
|
-
hasFlaggedComment: boolean;
|
|
102
|
-
hasFlaggedPost: boolean;
|
|
103
|
-
communityId: string;
|
|
104
|
-
channelId: string;
|
|
105
|
-
userId: string;
|
|
106
|
-
isJoined: boolean;
|
|
107
|
-
avatarFileId: string;
|
|
108
|
-
categoryIds: string[];
|
|
109
|
-
}[];
|
|
110
|
-
communityUsers: Amity.MembershipRaw<"community", false>[];
|
|
111
|
-
categories: {
|
|
112
|
-
name: string;
|
|
113
|
-
metadata: {};
|
|
114
|
-
updatedAt: string;
|
|
115
|
-
createdAt: string;
|
|
116
|
-
isDeleted: boolean;
|
|
117
|
-
categoryId: string;
|
|
118
|
-
}[];
|
|
119
|
-
users: Amity.User[];
|
|
120
|
-
feeds: never[];
|
|
121
|
-
paging: {
|
|
122
|
-
next: string;
|
|
123
|
-
};
|
|
124
|
-
};
|
|
114
|
+
data: Amity.CommunityPayload & Amity.Pagination;
|
|
125
115
|
};
|
|
126
116
|
export declare const communityQueryResponsePage2: {
|
|
127
|
-
data:
|
|
128
|
-
communities: {
|
|
129
|
-
path: string;
|
|
130
|
-
isOfficial: boolean;
|
|
131
|
-
isPublic: boolean;
|
|
132
|
-
onlyAdminCanPost: boolean;
|
|
133
|
-
postsCount: number;
|
|
134
|
-
membersCount: number;
|
|
135
|
-
moderatorMemberCount: number;
|
|
136
|
-
updatedAt: string;
|
|
137
|
-
createdAt: string;
|
|
138
|
-
isDeleted: boolean;
|
|
139
|
-
needApprovalOnPostCreation: boolean;
|
|
140
|
-
displayName: string;
|
|
141
|
-
tags: string[];
|
|
142
|
-
metadata: {};
|
|
143
|
-
hasFlaggedComment: boolean;
|
|
144
|
-
hasFlaggedPost: boolean;
|
|
145
|
-
communityId: string;
|
|
146
|
-
channelId: string;
|
|
147
|
-
userId: string;
|
|
148
|
-
isJoined: boolean;
|
|
149
|
-
avatarFileId: string;
|
|
150
|
-
categoryIds: string[];
|
|
151
|
-
}[];
|
|
152
|
-
communityUsers: Amity.MembershipRaw<"community", false>[];
|
|
153
|
-
categories: {
|
|
154
|
-
name: string;
|
|
155
|
-
metadata: {};
|
|
156
|
-
updatedAt: string;
|
|
157
|
-
createdAt: string;
|
|
158
|
-
isDeleted: boolean;
|
|
159
|
-
categoryId: string;
|
|
160
|
-
}[];
|
|
161
|
-
users: Amity.User[];
|
|
162
|
-
feeds: never[];
|
|
163
|
-
paging: {
|
|
164
|
-
next: string;
|
|
165
|
-
};
|
|
166
|
-
};
|
|
117
|
+
data: Amity.CommunityPayload & Amity.Pagination;
|
|
167
118
|
};
|
|
168
119
|
//# sourceMappingURL=community.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"community.d.ts","sourceRoot":"","sources":["../../../../src/utils/tests/dummy/community.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"community.d.ts","sourceRoot":"","sources":["../../../../src/utils/tests/dummy/community.ts"],"names":[],"mappings":"AAqBA,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,SAajC,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,SAoB/B,CAAC;AAEF,eAAO,MAAM,WAAW,EA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
postCount: number;
|
|
7
|
-
createdAt: string;
|
|
8
|
-
updatedAt: string;
|
|
9
|
-
};
|
|
1
|
+
export declare const feed11: Amity.Feed;
|
|
10
2
|
export declare const feedPayload: {
|
|
11
|
-
feeds:
|
|
12
|
-
targetType: string;
|
|
13
|
-
targetId: string;
|
|
14
|
-
feedType: string;
|
|
15
|
-
feedId: string;
|
|
16
|
-
postCount: number;
|
|
17
|
-
createdAt: string;
|
|
18
|
-
updatedAt: string;
|
|
19
|
-
}[];
|
|
3
|
+
feeds: Amity.Feed[];
|
|
20
4
|
};
|
|
21
5
|
//# sourceMappingURL=feed.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feed.d.ts","sourceRoot":"","sources":["../../../../src/utils/tests/dummy/feed.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"feed.d.ts","sourceRoot":"","sources":["../../../../src/utils/tests/dummy/feed.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,IAQ1B,CAAC;AAEF,eAAO,MAAM,WAAW;;CAEvB,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const baseMembership: Amity.
|
|
1
|
+
export declare const baseMembership: Amity.RawMembership<Amity.GroupType>;
|
|
2
2
|
//# sourceMappingURL=member.d.ts.map
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
export declare function generatePost(params?: Partial<Amity.Post>): Amity.Post;
|
|
2
2
|
export declare function generateComment(params?: Partial<Amity.Comment>): Amity.Comment;
|
|
3
3
|
export declare const post11: Amity.Post;
|
|
4
|
-
export declare const comment11: Amity.Comment;
|
|
5
4
|
export declare const post12: Amity.Post;
|
|
6
5
|
export declare const post13: Amity.Post;
|
|
7
6
|
export declare const post14: Amity.Post;
|
|
8
7
|
export declare const post15: Amity.Post;
|
|
9
8
|
export declare const post16: Amity.Post;
|
|
9
|
+
export declare const comment11: Amity.Comment;
|
|
10
|
+
export declare const imageComment11: Amity.Comment;
|
|
11
|
+
export declare const textImageComment11: Amity.Comment;
|
|
12
|
+
export declare const textMentionComment11: Amity.Comment;
|
|
13
|
+
export declare const textWithParentComment11: Amity.Comment;
|
|
10
14
|
export declare const posts: {
|
|
11
15
|
targetId: string;
|
|
12
16
|
targetType: Amity.PostTargetType;
|
|
@@ -14,36 +18,33 @@ export declare const posts: {
|
|
|
14
18
|
page2: string[];
|
|
15
19
|
page3: string[];
|
|
16
20
|
};
|
|
17
|
-
export declare const
|
|
18
|
-
export declare const
|
|
21
|
+
export declare const textCommentPayload: Amity.CommentPayload;
|
|
22
|
+
export declare const imageCommentPayload: Amity.CommentPayload;
|
|
23
|
+
export declare const textImageCommentPayload: Amity.CommentPayload;
|
|
24
|
+
export declare const textCommentMentionPayload: Amity.CommentPayload;
|
|
25
|
+
export declare const textCommentParentIdPayload: Amity.CommentPayload;
|
|
26
|
+
export declare const postPayload: Amity.ProcessedPostPayload;
|
|
27
|
+
export declare const emptyPostPayload: {
|
|
28
|
+
posts: never[];
|
|
29
|
+
postChildren: never[];
|
|
30
|
+
communities: never[];
|
|
31
|
+
communityUsers: never[];
|
|
32
|
+
categories: never[];
|
|
33
|
+
comments: never[];
|
|
34
|
+
feeds: never[];
|
|
35
|
+
users: never[];
|
|
36
|
+
files: never[];
|
|
37
|
+
};
|
|
19
38
|
export declare const postQueryResponse: {
|
|
20
|
-
data: {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
userId: string;
|
|
25
|
-
};
|
|
26
|
-
paging: {
|
|
27
|
-
next: string;
|
|
28
|
-
};
|
|
29
|
-
};
|
|
39
|
+
data: Omit<Amity.PostPayload<any>, "communityUsers" | "communities"> & {
|
|
40
|
+
communities: Amity.Community[];
|
|
41
|
+
communityUsers: Amity.Membership<"community">[];
|
|
42
|
+
} & Amity.Pagination;
|
|
30
43
|
};
|
|
31
44
|
export declare const postQueryResponsePage2: {
|
|
32
|
-
data: {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
feedType: string;
|
|
37
|
-
targetId: string;
|
|
38
|
-
feedId: string;
|
|
39
|
-
targetType: string;
|
|
40
|
-
postCount: number;
|
|
41
|
-
createdAt: string;
|
|
42
|
-
updatedAt: string;
|
|
43
|
-
}[];
|
|
44
|
-
paging: {
|
|
45
|
-
next: string;
|
|
46
|
-
};
|
|
47
|
-
};
|
|
45
|
+
data: Omit<Amity.PostPayload<any>, "communityUsers" | "communities"> & {
|
|
46
|
+
communities: Amity.Community[];
|
|
47
|
+
communityUsers: Amity.Membership<"community">[];
|
|
48
|
+
} & Amity.Pagination;
|
|
48
49
|
};
|
|
49
50
|
//# sourceMappingURL=post.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"post.d.ts","sourceRoot":"","sources":["../../../../src/utils/tests/dummy/post.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"post.d.ts","sourceRoot":"","sources":["../../../../src/utils/tests/dummy/post.ts"],"names":[],"mappings":"AAIA,wBAAgB,YAAY,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,IAAI,CAyBrE;AAED,wBAAgB,eAAe,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC,OAAO,CA4B9E;AAED,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,IAAqB,CAAC;AAEjD,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,IAG1B,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,IAG1B,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,IAO1B,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,IAQ1B,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,IAI1B,CAAC;AAEF,eAAO,MAAM,SA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