@amityco/ts-sdk 0.0.1-beta.2 → 0.0.1-c58e50d.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/LICENSE +390 -0
- package/dist/@types/core/cache.d.ts +21 -0
- package/{@types → dist/@types}/core/cache.d.ts.map +0 -0
- package/dist/@types/core/errors.d.ts +32 -0
- package/{@types → dist/@types}/core/errors.d.ts.map +0 -0
- package/dist/@types/core/events.d.ts +46 -0
- package/{@types → dist/@types}/core/events.d.ts.map +0 -0
- package/dist/@types/core/model.d.ts +41 -0
- package/dist/@types/core/model.d.ts.map +1 -0
- package/dist/@types/core/payload.d.ts +88 -0
- package/dist/@types/core/payload.d.ts.map +1 -0
- package/dist/@types/core/permissions.d.ts +71 -0
- package/dist/@types/core/permissions.d.ts.map +1 -0
- package/dist/@types/core/query.d.ts +72 -0
- package/dist/@types/core/query.d.ts.map +1 -0
- package/dist/@types/core/store.d.ts +46 -0
- package/{@types → dist/@types}/core/store.d.ts.map +0 -0
- package/dist/@types/core/transport.d.ts +27 -0
- package/{@types → dist/@types}/core/transport.d.ts.map +0 -0
- package/dist/@types/domains/category.d.ts +11 -0
- package/{@types → dist/@types}/domains/category.d.ts.map +0 -0
- package/dist/@types/domains/channel.d.ts +26 -0
- package/{@types → dist/@types}/domains/channel.d.ts.map +0 -0
- package/dist/@types/domains/client.d.ts +31 -0
- package/{@types → dist/@types}/domains/client.d.ts.map +0 -0
- package/dist/@types/domains/comment.d.ts +17 -0
- package/{@types → dist/@types}/domains/comment.d.ts.map +0 -0
- package/dist/@types/domains/community.d.ts +24 -0
- package/dist/@types/domains/community.d.ts.map +1 -0
- package/dist/@types/domains/content.d.ts +26 -0
- package/{@types → dist/@types}/domains/content.d.ts.map +0 -0
- package/dist/@types/domains/feed.d.ts +14 -0
- package/{@types → dist/@types}/domains/feed.d.ts.map +0 -0
- package/dist/@types/domains/file.d.ts +29 -0
- package/{@types → dist/@types}/domains/file.d.ts.map +0 -0
- package/dist/@types/domains/group.d.ts +26 -0
- package/dist/@types/domains/group.d.ts.map +1 -0
- package/dist/@types/domains/message.d.ts +16 -0
- package/{@types → dist/@types}/domains/message.d.ts.map +0 -0
- package/dist/@types/domains/partials.d.ts +42 -0
- package/{@types → dist/@types}/domains/partials.d.ts.map +0 -0
- package/dist/@types/domains/post.d.ts +22 -0
- package/dist/@types/domains/post.d.ts.map +1 -0
- package/dist/@types/domains/reaction.d.ts +24 -0
- package/{@types → dist/@types}/domains/reaction.d.ts.map +0 -0
- package/dist/@types/domains/stream.d.ts +47 -0
- package/{@types → dist/@types}/domains/stream.d.ts.map +0 -0
- package/dist/@types/domains/user.d.ts +12 -0
- package/{@types → dist/@types}/domains/user.d.ts.map +0 -0
- package/dist/@types/global.d.ts +13 -0
- package/{@types → dist/@types}/global.d.ts.map +0 -0
- package/dist/@types/index.d.ts +23 -0
- package/{@types → dist/@types}/index.d.ts.map +0 -0
- package/dist/category/api/getCategory.d.ts +16 -0
- package/{category → dist/category}/api/getCategory.d.ts.map +0 -0
- package/dist/category/api/index.d.ts +3 -0
- package/{category → dist/category}/api/index.d.ts.map +0 -0
- package/dist/category/api/queryCategories.d.ts +23 -0
- package/{category → dist/category}/api/queryCategories.d.ts.map +0 -0
- package/dist/channel/api/addChannelMembers.d.ts +17 -0
- package/dist/channel/api/addChannelMembers.d.ts.map +1 -0
- package/dist/channel/api/addChannelMembersRole.d.ts +18 -0
- package/dist/channel/api/addChannelMembersRole.d.ts.map +1 -0
- package/dist/channel/api/createChannel.d.ts +19 -0
- package/dist/channel/api/createChannel.d.ts.map +1 -0
- package/dist/channel/api/deleteChannel.d.ts +16 -0
- package/{channel → dist/channel}/api/deleteChannel.d.ts.map +0 -0
- package/dist/channel/api/getChannel.d.ts +32 -0
- package/{channel → dist/channel}/api/getChannel.d.ts.map +0 -0
- package/dist/channel/api/getChannels.d.ts +32 -0
- package/{channel → dist/channel}/api/getChannels.d.ts.map +0 -0
- package/dist/channel/api/index.d.ts +14 -0
- package/dist/channel/api/index.d.ts.map +1 -0
- package/dist/channel/api/joinChannel.d.ts +16 -0
- package/{channel → dist/channel}/api/joinChannel.d.ts.map +0 -0
- package/dist/channel/api/leaveChannel.d.ts +16 -0
- package/{channel → dist/channel}/api/leaveChannel.d.ts.map +0 -0
- package/dist/channel/api/queryChannelMembers.d.ts +42 -0
- package/dist/channel/api/queryChannelMembers.d.ts.map +1 -0
- package/dist/channel/api/queryChannels.d.ts +42 -0
- package/dist/channel/api/queryChannels.d.ts.map +1 -0
- package/dist/channel/api/removeChannelMembers.d.ts +17 -0
- package/dist/channel/api/removeChannelMembers.d.ts.map +1 -0
- package/dist/channel/api/removeChannelMembersRole.d.ts +18 -0
- package/dist/channel/api/removeChannelMembersRole.d.ts.map +1 -0
- package/dist/channel/api/updateChannel.d.ts +17 -0
- package/{channel → dist/channel}/api/updateChannel.d.ts.map +0 -0
- package/dist/channel/events/index.d.ts +7 -0
- package/{channel → dist/channel}/events/index.d.ts.map +0 -0
- package/dist/channel/events/onChannelCreated.d.ts +17 -0
- package/{channel → dist/channel}/events/onChannelCreated.d.ts.map +0 -0
- package/dist/channel/events/onChannelDeleted.d.ts +17 -0
- package/{channel → dist/channel}/events/onChannelDeleted.d.ts.map +0 -0
- package/dist/channel/events/onChannelJoined.d.ts +17 -0
- package/{channel → dist/channel}/events/onChannelJoined.d.ts.map +0 -0
- package/dist/channel/events/onChannelLeft.d.ts +17 -0
- package/{channel → dist/channel}/events/onChannelLeft.d.ts.map +0 -0
- package/dist/channel/events/onChannelUpdated.d.ts +17 -0
- package/{channel → dist/channel}/events/onChannelUpdated.d.ts.map +0 -0
- package/dist/channel/events/onMemberAdded.d.ts +17 -0
- package/{channel → dist/channel}/events/onMemberAdded.d.ts.map +0 -0
- package/dist/channel/events/onMemberRemoved.d.ts +17 -0
- package/{channel → dist/channel}/events/onMemberRemoved.d.ts.map +0 -0
- package/dist/channel/observers/index.d.ts +2 -0
- package/{channel → dist/channel}/observers/index.d.ts.map +0 -0
- package/dist/channel/observers/observeChannel.d.ts +20 -0
- package/{channel → dist/channel}/observers/observeChannel.d.ts.map +0 -0
- package/dist/client/api/activeClient.d.ts +17 -0
- package/{client → dist/client}/api/activeClient.d.ts.map +0 -0
- package/dist/client/api/clearCache.d.ts +15 -0
- package/dist/client/api/clearCache.d.ts.map +1 -0
- package/dist/client/api/connectClient.d.ts +26 -0
- package/dist/client/api/connectClient.d.ts.map +1 -0
- package/dist/client/api/createClient.d.ts +17 -0
- package/{client → dist/client}/api/createClient.d.ts.map +0 -0
- package/dist/client/api/disconnectClient.d.ts +16 -0
- package/{client → dist/client}/api/disconnectClient.d.ts.map +0 -0
- package/dist/client/api/enableCache.d.ts +15 -0
- package/dist/client/api/enableCache.d.ts.map +1 -0
- package/dist/client/api/getToken.d.ts +19 -0
- package/{client → dist/client}/api/getToken.d.ts.map +0 -0
- package/dist/client/api/index.d.ts +8 -0
- package/dist/client/api/index.d.ts.map +1 -0
- package/dist/client/api/isConnected.d.ts +14 -0
- package/{client → dist/client}/api/isConnected.d.ts.map +0 -0
- package/dist/client/events/index.d.ts +2 -0
- package/{client → dist/client}/events/index.d.ts.map +0 -0
- package/dist/client/events/onClientDisconnected.d.ts +17 -0
- package/{client → dist/client}/events/onClientDisconnected.d.ts.map +0 -0
- package/dist/comment/api/createComment.d.ts +16 -0
- package/dist/comment/api/createComment.d.ts.map +1 -0
- package/dist/comment/api/deleteComment.d.ts +16 -0
- package/{comment → dist/comment}/api/deleteComment.d.ts.map +0 -0
- package/dist/comment/api/getComment.d.ts +32 -0
- package/{comment → dist/comment}/api/getComment.d.ts.map +0 -0
- package/dist/comment/api/getComments.d.ts +32 -0
- package/{comment → dist/comment}/api/getComments.d.ts.map +0 -0
- package/dist/comment/api/index.d.ts +7 -0
- package/{comment → dist/comment}/api/index.d.ts.map +0 -0
- package/dist/comment/api/queryComments.d.ts +53 -0
- package/dist/comment/api/queryComments.d.ts.map +1 -0
- package/dist/comment/api/updateComment.d.ts +19 -0
- package/{comment → dist/comment}/api/updateComment.d.ts.map +0 -0
- package/dist/comment/events/index.d.ts +4 -0
- package/{comment → dist/comment}/events/index.d.ts.map +0 -0
- package/dist/comment/events/onCommentCreated.d.ts +17 -0
- package/{comment → dist/comment}/events/onCommentCreated.d.ts.map +0 -0
- package/dist/comment/events/onCommentDeleted.d.ts +17 -0
- package/{comment → dist/comment}/events/onCommentDeleted.d.ts.map +0 -0
- package/dist/comment/events/onCommentUpdated.d.ts +17 -0
- package/{comment → dist/comment}/events/onCommentUpdated.d.ts.map +0 -0
- package/dist/comment/observers/index.d.ts +3 -0
- package/{comment → dist/comment}/observers/index.d.ts.map +0 -0
- package/dist/comment/observers/observeComment.d.ts +20 -0
- package/{comment → dist/comment}/observers/observeComment.d.ts.map +0 -0
- package/dist/comment/observers/observeComments.d.ts +22 -0
- package/{comment → dist/comment}/observers/observeComments.d.ts.map +0 -0
- package/dist/community/api/addCommunityMembers.d.ts +17 -0
- package/dist/community/api/addCommunityMembers.d.ts.map +1 -0
- package/dist/community/api/addCommunityMembersRole.d.ts +18 -0
- package/dist/community/api/addCommunityMembersRole.d.ts.map +1 -0
- package/dist/community/api/createCommunity.d.ts +20 -0
- package/{community → dist/community}/api/createCommunity.d.ts.map +0 -0
- package/dist/community/api/deleteCommunity.d.ts +16 -0
- package/{community → dist/community}/api/deleteCommunity.d.ts.map +0 -0
- package/dist/community/api/getCommunities.d.ts +32 -0
- package/{community → dist/community}/api/getCommunities.d.ts.map +0 -0
- package/dist/community/api/getCommunity.d.ts +32 -0
- package/dist/community/api/getCommunity.d.ts.map +1 -0
- package/dist/community/api/index.d.ts +14 -0
- package/dist/community/api/index.d.ts.map +1 -0
- package/dist/community/api/joinCommunity.d.ts +16 -0
- package/{community → dist/community}/api/joinCommunity.d.ts.map +0 -0
- package/dist/community/api/leaveCommunity.d.ts +16 -0
- package/{community → dist/community}/api/leaveCommunity.d.ts.map +0 -0
- package/dist/community/api/queryCommunities.d.ts +46 -0
- package/{community → dist/community}/api/queryCommunities.d.ts.map +0 -0
- package/dist/community/api/queryCommunityMembers.d.ts +42 -0
- package/dist/community/api/queryCommunityMembers.d.ts.map +1 -0
- package/dist/community/api/removeCommunityMembers.d.ts +17 -0
- package/dist/community/api/removeCommunityMembers.d.ts.map +1 -0
- package/dist/community/api/removeCommunityMembersRole.d.ts +18 -0
- package/dist/community/api/removeCommunityMembersRole.d.ts.map +1 -0
- package/dist/community/api/updateCommunity.d.ts +17 -0
- package/{community → dist/community}/api/updateCommunity.d.ts.map +0 -0
- package/dist/community/events/index.d.ts +6 -0
- package/{community → dist/community}/events/index.d.ts.map +0 -0
- package/dist/community/events/onCommunityCreated.d.ts +17 -0
- package/{community → dist/community}/events/onCommunityCreated.d.ts.map +0 -0
- package/dist/community/events/onCommunityDeleted.d.ts +17 -0
- package/{community → dist/community}/events/onCommunityDeleted.d.ts.map +0 -0
- package/dist/community/events/onCommunityJoined.d.ts +17 -0
- package/{community → dist/community}/events/onCommunityJoined.d.ts.map +0 -0
- package/dist/community/events/onCommunityLeft.d.ts +17 -0
- package/{community → dist/community}/events/onCommunityLeft.d.ts.map +0 -0
- package/dist/community/events/onCommunityUpdated.d.ts +17 -0
- package/{community → dist/community}/events/onCommunityUpdated.d.ts.map +0 -0
- package/dist/community/observers/index.d.ts +2 -0
- package/{community → dist/community}/observers/index.d.ts.map +0 -0
- package/dist/community/observers/observeCommunity.d.ts +20 -0
- package/{community → dist/community}/observers/observeCommunity.d.ts.map +0 -0
- package/dist/core/cache/drop.d.ts +11 -0
- package/{core → dist/core}/cache/drop.d.ts.map +0 -0
- package/dist/core/cache/index.d.ts +19 -0
- package/{core → dist/core}/cache/index.d.ts.map +0 -0
- package/dist/core/cache/ingest.d.ts +10 -0
- package/{core → dist/core}/cache/ingest.d.ts.map +0 -0
- package/dist/core/cache/merge.d.ts +10 -0
- package/{core → dist/core}/cache/merge.d.ts.map +0 -0
- package/dist/core/cache/mutate.d.ts +10 -0
- package/{core → dist/core}/cache/mutate.d.ts.map +0 -0
- package/dist/core/cache/pull.d.ts +11 -0
- package/{core → dist/core}/cache/pull.d.ts.map +0 -0
- package/dist/core/cache/push.d.ts +10 -0
- package/{core → dist/core}/cache/push.d.ts.map +0 -0
- package/dist/core/cache/sync.d.ts +10 -0
- package/{core → dist/core}/cache/sync.d.ts.map +0 -0
- package/dist/core/debug.d.ts +15 -0
- package/{core → dist/core}/debug.d.ts.map +0 -0
- package/dist/core/device.d.ts +7 -0
- package/{core → dist/core}/device.d.ts.map +0 -0
- package/dist/core/errors.d.ts +59 -0
- package/{core → dist/core}/errors.d.ts.map +0 -0
- package/dist/core/events.d.ts +33 -0
- package/{core → dist/core}/events.d.ts.map +0 -0
- package/dist/core/model/idResolvers.d.ts +20 -0
- package/dist/core/model/idResolvers.d.ts.map +1 -0
- package/dist/core/model/identifyModel.d.ts +8 -0
- package/dist/core/model/identifyModel.d.ts.map +1 -0
- package/dist/core/model/index.d.ts +4 -0
- package/{core → dist/core}/model/index.d.ts.map +0 -0
- package/dist/core/model/toRecord.d.ts +10 -0
- package/{core → dist/core}/model/toRecord.d.ts.map +0 -0
- package/dist/core/query/decorate.d.ts +23 -0
- package/dist/core/query/decorate.d.ts.map +1 -0
- package/dist/core/query/filtering.d.ts +12 -0
- package/{core → dist/core}/query/filtering.d.ts.map +0 -0
- package/dist/core/query/index.d.ts +6 -0
- package/{core → dist/core}/query/index.d.ts.map +0 -0
- package/dist/core/query/paging.d.ts +58 -0
- package/dist/core/query/paging.d.ts.map +1 -0
- package/dist/core/query/query.d.ts +121 -0
- package/dist/core/query/query.d.ts.map +1 -0
- package/dist/core/query/sorting.d.ts +39 -0
- package/dist/core/query/sorting.d.ts.map +1 -0
- package/dist/core/stores/index.d.ts +3 -0
- package/{core → dist/core}/stores/index.d.ts.map +0 -0
- package/dist/core/stores/memory.d.ts +30 -0
- package/dist/core/stores/memory.d.ts.map +1 -0
- package/dist/core/stores/persistent.d.ts +13 -0
- package/{core → dist/core}/stores/persistent.d.ts.map +0 -0
- package/dist/core/transports.d.ts +49 -0
- package/dist/core/transports.d.ts.map +1 -0
- package/dist/core/uuid.d.ts +2 -0
- package/{core → dist/core}/uuid.d.ts.map +0 -0
- package/dist/feed/api/index.d.ts +2 -0
- package/{feed → dist/feed}/api/index.d.ts.map +0 -0
- package/dist/feed/api/queryGlobalFeed.d.ts +23 -0
- package/{feed → dist/feed}/api/queryGlobalFeed.d.ts.map +0 -0
- package/dist/file/api/createFile.d.ts +16 -0
- package/dist/file/api/createFile.d.ts.map +1 -0
- package/dist/file/api/deleteFile.d.ts +16 -0
- package/{file → dist/file}/api/deleteFile.d.ts.map +0 -0
- package/dist/file/api/fileUrlWithSize.d.ts +9 -0
- package/dist/file/api/fileUrlWithSize.d.ts.map +1 -0
- package/dist/file/api/getFile.d.ts +32 -0
- package/{file → dist/file}/api/getFile.d.ts.map +0 -0
- package/dist/file/api/index.d.ts +5 -0
- package/{file → dist/file}/api/index.d.ts.map +0 -0
- package/dist/file/observers/index.d.ts +2 -0
- package/{file → dist/file}/observers/index.d.ts.map +0 -0
- package/dist/file/observers/observeFile.d.ts +20 -0
- package/{file → dist/file}/observers/observeFile.d.ts.map +0 -0
- package/dist/index.cjs.js +4884 -0
- package/dist/index.d.ts +32 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.esm.js +4734 -0
- package/dist/index.umd.js +4880 -0
- package/dist/message/api/createMessage.d.ts +38 -0
- package/{message → dist/message}/api/createMessage.d.ts.map +0 -0
- package/dist/message/api/deleteMessage.d.ts +32 -0
- package/{message → dist/message}/api/deleteMessage.d.ts.map +0 -0
- package/dist/message/api/getMessage.d.ts +32 -0
- package/{message → dist/message}/api/getMessage.d.ts.map +0 -0
- package/dist/message/api/getMessages.d.ts +32 -0
- package/{message → dist/message}/api/getMessages.d.ts.map +0 -0
- package/dist/message/api/index.d.ts +7 -0
- package/{message → dist/message}/api/index.d.ts.map +0 -0
- package/dist/message/api/queryMessages.d.ts +55 -0
- package/{message → dist/message}/api/queryMessages.d.ts.map +0 -0
- package/dist/message/api/updateMessage.d.ts +38 -0
- package/{message → dist/message}/api/updateMessage.d.ts.map +0 -0
- package/dist/message/events/index.d.ts +4 -0
- package/{message → dist/message}/events/index.d.ts.map +0 -0
- package/dist/message/events/onMessageCreated.d.ts +17 -0
- package/{message → dist/message}/events/onMessageCreated.d.ts.map +0 -0
- package/dist/message/events/onMessageDeleted.d.ts +17 -0
- package/{message → dist/message}/events/onMessageDeleted.d.ts.map +0 -0
- package/dist/message/events/onMessageUpdated.d.ts +17 -0
- package/{message → dist/message}/events/onMessageUpdated.d.ts.map +0 -0
- package/dist/message/observers/index.d.ts +3 -0
- package/{message → dist/message}/observers/index.d.ts.map +0 -0
- package/dist/message/observers/observeMessage.d.ts +22 -0
- package/{message → dist/message}/observers/observeMessage.d.ts.map +0 -0
- package/dist/message/observers/observeMessages.d.ts +19 -0
- package/{message → dist/message}/observers/observeMessages.d.ts.map +0 -0
- package/dist/post/api/createPost.d.ts +21 -0
- package/{post → dist/post}/api/createPost.d.ts.map +0 -0
- package/dist/post/api/deletePost.d.ts +16 -0
- package/{post → dist/post}/api/deletePost.d.ts.map +0 -0
- package/dist/post/api/getPost.d.ts +32 -0
- package/{post → dist/post}/api/getPost.d.ts.map +0 -0
- package/dist/post/api/getPosts.d.ts +32 -0
- package/{post → dist/post}/api/getPosts.d.ts.map +0 -0
- package/dist/post/api/index.d.ts +7 -0
- package/{post → dist/post}/api/index.d.ts.map +0 -0
- package/dist/post/api/queryPosts.d.ts +47 -0
- package/dist/post/api/queryPosts.d.ts.map +1 -0
- package/dist/post/api/updatePost.d.ts +19 -0
- package/{post → dist/post}/api/updatePost.d.ts.map +0 -0
- package/dist/post/events/index.d.ts +4 -0
- package/{post → dist/post}/events/index.d.ts.map +0 -0
- package/dist/post/events/onPostCreated.d.ts +17 -0
- package/{post → dist/post}/events/onPostCreated.d.ts.map +0 -0
- package/dist/post/events/onPostDeleted.d.ts +17 -0
- package/{post → dist/post}/events/onPostDeleted.d.ts.map +0 -0
- package/dist/post/events/onPostUpdated.d.ts +17 -0
- package/{post → dist/post}/events/onPostUpdated.d.ts.map +0 -0
- package/dist/post/observers/index.d.ts +3 -0
- package/{post → dist/post}/observers/index.d.ts.map +0 -0
- package/dist/post/observers/observePost.d.ts +20 -0
- package/{post → dist/post}/observers/observePost.d.ts.map +0 -0
- package/dist/post/observers/observePosts.d.ts +25 -0
- package/dist/post/observers/observePosts.d.ts.map +1 -0
- package/dist/reaction/api/addReaction.d.ts +36 -0
- package/{reaction → dist/reaction}/api/addReaction.d.ts.map +0 -0
- package/dist/reaction/api/index.d.ts +3 -0
- package/{reaction → dist/reaction}/api/index.d.ts.map +0 -0
- package/dist/reaction/api/removeReaction.d.ts +36 -0
- package/{reaction → dist/reaction}/api/removeReaction.d.ts.map +0 -0
- package/dist/reaction/events/index.d.ts +2 -0
- package/{reaction → dist/reaction}/events/index.d.ts.map +0 -0
- package/dist/reaction/events/onReactionAdded.d.ts +17 -0
- package/{reaction → dist/reaction}/events/onReactionAdded.d.ts.map +0 -0
- package/dist/reaction/events/onReactionRemoved.d.ts +17 -0
- package/{reaction → dist/reaction}/events/onReactionRemoved.d.ts.map +0 -0
- package/dist/reaction/utils/dispatchReactable.d.ts +3 -0
- package/{reaction → dist/reaction}/utils/dispatchReactable.d.ts.map +0 -0
- package/dist/reaction/utils/fetchReference.d.ts +3 -0
- package/{reaction → dist/reaction}/utils/fetchReference.d.ts.map +0 -0
- package/dist/reaction/utils/index.d.ts +3 -0
- package/{reaction → dist/reaction}/utils/index.d.ts.map +0 -0
- package/dist/report/api/createReport.d.ts +16 -0
- package/{report → dist/report}/api/createReport.d.ts.map +0 -0
- package/dist/report/api/deleteReport.d.ts +16 -0
- package/{report → dist/report}/api/deleteReport.d.ts.map +0 -0
- package/dist/report/api/index.d.ts +4 -0
- package/{report → dist/report}/api/index.d.ts.map +0 -0
- package/dist/report/api/isReportedByMe.d.ts +16 -0
- package/{report → dist/report}/api/isReportedByMe.d.ts.map +0 -0
- package/dist/report/constants/referenceTypes.d.ts +24 -0
- package/{report → dist/report}/constants/referenceTypes.d.ts.map +0 -0
- package/dist/role/api/getRole.d.ts +32 -0
- package/dist/role/api/getRole.d.ts.map +1 -0
- package/dist/role/api/index.d.ts +3 -0
- package/dist/role/api/index.d.ts.map +1 -0
- package/dist/role/api/queryRoles.d.ts +42 -0
- package/dist/role/api/queryRoles.d.ts.map +1 -0
- package/dist/stream/api/createStream.d.ts +18 -0
- package/{stream → dist/stream}/api/createStream.d.ts.map +0 -0
- package/dist/stream/api/deleteStream.d.ts +16 -0
- package/{stream → dist/stream}/api/deleteStream.d.ts.map +0 -0
- package/dist/stream/api/getStream.d.ts +12 -0
- package/{stream → dist/stream}/api/getStream.d.ts.map +0 -0
- package/dist/stream/api/index.d.ts +6 -0
- package/{stream → dist/stream}/api/index.d.ts.map +0 -0
- package/dist/stream/api/queryStreams.d.ts +23 -0
- package/{stream → dist/stream}/api/queryStreams.d.ts.map +0 -0
- package/dist/stream/api/updateStream.d.ts +17 -0
- package/{stream → dist/stream}/api/updateStream.d.ts.map +0 -0
- package/dist/stream/events/index.d.ts +4 -0
- package/{stream → dist/stream}/events/index.d.ts.map +0 -0
- package/dist/stream/events/onStreamRecorded.d.ts +17 -0
- package/{stream → dist/stream}/events/onStreamRecorded.d.ts.map +0 -0
- package/dist/stream/events/onStreamStarted.d.ts +17 -0
- package/{stream → dist/stream}/events/onStreamStarted.d.ts.map +0 -0
- package/dist/stream/events/onStreamStopped.d.ts +17 -0
- package/{stream → dist/stream}/events/onStreamStopped.d.ts.map +0 -0
- package/dist/user/api/getUser.d.ts +32 -0
- package/{user → dist/user}/api/getUser.d.ts.map +0 -0
- package/dist/user/api/getUsers.d.ts +32 -0
- package/{user → dist/user}/api/getUsers.d.ts.map +0 -0
- package/dist/user/api/index.d.ts +5 -0
- package/{user → dist/user}/api/index.d.ts.map +0 -0
- package/dist/user/api/queryUsers.d.ts +43 -0
- package/dist/user/api/queryUsers.d.ts.map +1 -0
- package/dist/user/api/updateUser.d.ts +17 -0
- package/{user → dist/user}/api/updateUser.d.ts.map +0 -0
- package/dist/user/events/index.d.ts +2 -0
- package/{user → dist/user}/events/index.d.ts.map +0 -0
- package/dist/user/events/onUserUpdated.d.ts +17 -0
- package/{user → dist/user}/events/onUserUpdated.d.ts.map +0 -0
- package/dist/user/observers/index.d.ts +2 -0
- package/{user → dist/user}/observers/index.d.ts.map +0 -0
- package/dist/user/observers/observeUser.d.ts +19 -0
- package/{user → dist/user}/observers/observeUser.d.ts.map +0 -0
- package/package.json +41 -10
- package/rollup.config.js +41 -0
- package/src/@types/core/cache.ts +22 -0
- package/src/@types/core/errors.ts +34 -0
- package/src/@types/core/events.ts +60 -0
- package/src/@types/core/model.ts +51 -0
- package/src/@types/core/payload.ts +102 -0
- package/src/@types/core/permissions.ts +76 -0
- package/src/@types/core/query.ts +95 -0
- package/src/@types/core/store.ts +52 -0
- package/src/@types/core/transport.ts +32 -0
- package/src/@types/domains/category.ts +15 -0
- package/src/@types/domains/channel.ts +38 -0
- package/src/@types/domains/client.ts +36 -0
- package/src/@types/domains/comment.ts +26 -0
- package/src/@types/domains/community.ts +35 -0
- package/src/@types/domains/content.ts +35 -0
- package/src/@types/domains/feed.ts +16 -0
- package/src/@types/domains/file.ts +41 -0
- package/src/@types/domains/group.ts +38 -0
- package/src/@types/domains/message.ts +27 -0
- package/src/@types/domains/partials.ts +52 -0
- package/src/@types/domains/post.ts +31 -0
- package/src/@types/domains/reaction.ts +30 -0
- package/src/@types/domains/stream.ts +57 -0
- package/src/@types/domains/user.ts +18 -0
- package/src/@types/global.ts +25 -0
- package/src/@types/index.ts +31 -0
- package/src/category/api/getCategory.ts +35 -0
- package/src/category/api/index.ts +2 -0
- package/src/category/api/queryCategories.ts +49 -0
- package/src/channel/api/addChannelMembers.ts +45 -0
- package/src/channel/api/addChannelMembersRole.ts +43 -0
- package/src/channel/api/createChannel.ts +37 -0
- package/src/channel/api/deleteChannel.ts +34 -0
- package/src/channel/api/getChannel.ts +59 -0
- package/src/channel/api/getChannels.ts +63 -0
- package/src/channel/api/index.ts +18 -0
- package/src/channel/api/joinChannel.ts +38 -0
- package/src/channel/api/leaveChannel.ts +38 -0
- package/src/channel/api/queryChannelMembers.ts +79 -0
- package/src/channel/api/queryChannels.ts +88 -0
- package/src/channel/api/removeChannelMembers.ts +45 -0
- package/src/channel/api/removeChannelMembersRole.ts +43 -0
- package/src/channel/api/updateChannel.ts +38 -0
- package/src/channel/events/index.ts +6 -0
- package/src/channel/events/onChannelCreated.ts +37 -0
- package/src/channel/events/onChannelDeleted.ts +37 -0
- package/src/channel/events/onChannelJoined.ts +37 -0
- package/src/channel/events/onChannelLeft.ts +37 -0
- package/src/channel/events/onChannelUpdated.ts +37 -0
- package/src/channel/events/onMemberAdded.ts +37 -0
- package/src/channel/events/onMemberRemoved.ts +37 -0
- package/src/channel/observers/index.ts +1 -0
- package/src/channel/observers/observeChannel.ts +80 -0
- package/src/client/api/activeClient.ts +33 -0
- package/src/client/api/clearCache.ts +23 -0
- package/src/client/api/connectClient.ts +63 -0
- package/src/client/api/createClient.ts +56 -0
- package/src/client/api/disconnectClient.ts +31 -0
- package/src/client/api/enableCache.ts +35 -0
- package/src/client/api/getToken.ts +35 -0
- package/src/client/api/index.ts +7 -0
- package/src/client/api/isConnected.ts +24 -0
- package/src/client/events/index.ts +1 -0
- package/src/client/events/onClientDisconnected.ts +29 -0
- package/src/comment/api/createComment.ts +43 -0
- package/src/comment/api/deleteComment.ts +40 -0
- package/src/comment/api/getComment.ts +59 -0
- package/src/comment/api/getComments.ts +63 -0
- package/src/comment/api/index.ts +7 -0
- package/src/comment/api/queryComments.ts +169 -0
- package/src/comment/api/updateComment.ts +41 -0
- package/src/comment/events/index.ts +3 -0
- package/src/comment/events/onCommentCreated.ts +39 -0
- package/src/comment/events/onCommentDeleted.ts +39 -0
- package/src/comment/events/onCommentUpdated.ts +39 -0
- package/src/comment/observers/index.ts +2 -0
- package/src/comment/observers/observeComment.ts +73 -0
- package/src/comment/observers/observeComments.ts +61 -0
- package/src/community/api/addCommunityMembers.ts +46 -0
- package/src/community/api/addCommunityMembersRole.ts +43 -0
- package/src/community/api/createCommunity.ts +43 -0
- package/src/community/api/deleteCommunity.ts +35 -0
- package/src/community/api/getCommunities.ts +63 -0
- package/src/community/api/getCommunity.ts +58 -0
- package/src/community/api/index.ts +17 -0
- package/src/community/api/joinCommunity.ts +41 -0
- package/src/community/api/leaveCommunity.ts +41 -0
- package/src/community/api/queryCommunities.ts +92 -0
- package/src/community/api/queryCommunityMembers.ts +78 -0
- package/src/community/api/removeCommunityMembers.ts +46 -0
- package/src/community/api/removeCommunityMembersRole.ts +43 -0
- package/src/community/api/updateCommunity.ts +40 -0
- package/src/community/events/index.ts +6 -0
- package/src/community/events/onCommunityCreated.ts +37 -0
- package/src/community/events/onCommunityDeleted.ts +37 -0
- package/src/community/events/onCommunityJoined.ts +37 -0
- package/src/community/events/onCommunityLeft.ts +37 -0
- package/src/community/events/onCommunityUpdated.ts +37 -0
- package/src/community/observers/index.ts +1 -0
- package/src/community/observers/observeCommunity.ts +74 -0
- package/src/core/cache/drop.ts +24 -0
- package/src/core/cache/index.ts +24 -0
- package/src/core/cache/ingest.ts +24 -0
- package/src/core/cache/merge.ts +19 -0
- package/src/core/cache/mutate.ts +25 -0
- package/src/core/cache/pull.ts +31 -0
- package/src/core/cache/push.ts +41 -0
- package/src/core/cache/sync.ts +41 -0
- package/src/core/debug.ts +26 -0
- package/src/core/device.ts +38 -0
- package/src/core/errors.ts +85 -0
- package/src/core/events.ts +93 -0
- package/src/core/model/idResolvers.ts +66 -0
- package/src/core/model/identifyModel.ts +32 -0
- package/src/core/model/index.ts +3 -0
- package/src/core/model/toRecord.ts +11 -0
- package/src/core/query/decorate.ts +64 -0
- package/src/core/query/filtering.ts +17 -0
- package/src/core/query/index.ts +5 -0
- package/src/core/query/paging.ts +166 -0
- package/src/core/query/query.ts +300 -0
- package/src/core/query/sorting.ts +50 -0
- package/src/core/stores/index.ts +2 -0
- package/src/core/stores/memory.ts +59 -0
- package/src/core/stores/persistent.ts +63 -0
- package/src/core/transports.ts +157 -0
- package/src/core/uuid.ts +2 -0
- package/src/feed/api/index.ts +1 -0
- package/src/feed/api/queryGlobalFeed.ts +50 -0
- package/src/file/api/createFile.ts +51 -0
- package/src/file/api/deleteFile.ts +35 -0
- package/src/file/api/fileUrlWithSize.ts +13 -0
- package/src/file/api/getFile.ts +60 -0
- package/src/file/api/index.ts +4 -0
- package/src/file/observers/index.ts +1 -0
- package/src/file/observers/observeFile.ts +57 -0
- package/src/index.ts +55 -0
- package/src/message/api/createMessage.ts +90 -0
- package/src/message/api/deleteMessage.ts +75 -0
- package/src/message/api/getMessage.ts +60 -0
- package/src/message/api/getMessages.ts +63 -0
- package/src/message/api/index.ts +6 -0
- package/src/message/api/queryMessages.ts +145 -0
- package/src/message/api/updateMessage.ts +79 -0
- package/src/message/events/index.ts +3 -0
- package/src/message/events/onMessageCreated.ts +39 -0
- package/src/message/events/onMessageDeleted.ts +39 -0
- package/src/message/events/onMessageUpdated.ts +39 -0
- package/src/message/observers/index.ts +2 -0
- package/src/message/observers/observeMessage.ts +76 -0
- package/src/message/observers/observeMessages.ts +60 -0
- package/src/post/api/createPost.ts +45 -0
- package/src/post/api/deletePost.ts +43 -0
- package/src/post/api/getPost.ts +60 -0
- package/src/post/api/getPosts.ts +63 -0
- package/src/post/api/index.ts +7 -0
- package/src/post/api/queryPosts.ts +88 -0
- package/src/post/api/updatePost.ts +42 -0
- package/src/post/events/index.ts +3 -0
- package/src/post/events/onPostCreated.ts +39 -0
- package/src/post/events/onPostDeleted.ts +39 -0
- package/src/post/events/onPostUpdated.ts +39 -0
- package/src/post/observers/index.ts +2 -0
- package/src/post/observers/observePost.ts +72 -0
- package/src/post/observers/observePosts.ts +66 -0
- package/src/reaction/api/addReaction.ts +84 -0
- package/src/reaction/api/index.ts +2 -0
- package/src/reaction/api/removeReaction.ts +84 -0
- package/src/reaction/events/index.ts +1 -0
- package/src/reaction/events/onReactionAdded.ts +43 -0
- package/src/reaction/events/onReactionRemoved.ts +41 -0
- package/src/reaction/utils/dispatchReactable.ts +19 -0
- package/src/reaction/utils/fetchReference.ts +18 -0
- package/src/reaction/utils/index.ts +2 -0
- package/src/report/api/createReport.ts +40 -0
- package/src/report/api/deleteReport.ts +40 -0
- package/src/report/api/index.ts +4 -0
- package/src/report/api/isReportedByMe.ts +37 -0
- package/src/report/constants/referenceTypes.ts +22 -0
- package/src/role/api/getRole.ts +53 -0
- package/src/role/api/index.ts +2 -0
- package/src/role/api/queryRoles.ts +79 -0
- package/src/stream/api/createStream.ts +33 -0
- package/src/stream/api/deleteStream.ts +38 -0
- package/src/stream/api/getStream.ts +29 -0
- package/src/stream/api/index.ts +7 -0
- package/src/stream/api/queryStreams.ts +44 -0
- package/src/stream/api/updateStream.ts +36 -0
- package/src/stream/events/index.ts +3 -0
- package/src/stream/events/onStreamRecorded.ts +39 -0
- package/src/stream/events/onStreamStarted.ts +39 -0
- package/src/stream/events/onStreamStopped.ts +39 -0
- package/src/user/api/getUser.ts +59 -0
- package/src/user/api/getUsers.ts +60 -0
- package/src/user/api/index.ts +5 -0
- package/src/user/api/queryUsers.ts +88 -0
- package/src/user/api/updateUser.ts +44 -0
- package/src/user/events/index.ts +1 -0
- package/src/user/events/onUserUpdated.ts +39 -0
- package/src/user/observers/index.ts +1 -0
- package/src/user/observers/observeUser.ts +64 -0
- package/tsconfig.json +28 -0
- package/@types/core/cache.d.ts +0 -21
- package/@types/core/cache.js +0 -1
- package/@types/core/errors.d.ts +0 -32
- package/@types/core/errors.js +0 -1
- package/@types/core/events.d.ts +0 -46
- package/@types/core/events.js +0 -1
- package/@types/core/model.d.ts +0 -35
- package/@types/core/model.d.ts.map +0 -1
- package/@types/core/model.js +0 -1
- package/@types/core/payload.d.ts +0 -84
- package/@types/core/payload.d.ts.map +0 -1
- package/@types/core/payload.js +0 -1
- package/@types/core/permissions.d.ts +0 -71
- package/@types/core/permissions.d.ts.map +0 -1
- package/@types/core/permissions.js +0 -1
- package/@types/core/query.d.ts +0 -71
- package/@types/core/query.d.ts.map +0 -1
- package/@types/core/query.js +0 -1
- package/@types/core/store.d.ts +0 -46
- package/@types/core/store.js +0 -1
- package/@types/core/transport.d.ts +0 -27
- package/@types/core/transport.js +0 -1
- package/@types/domains/category.d.ts +0 -11
- package/@types/domains/category.js +0 -1
- package/@types/domains/channel.d.ts +0 -26
- package/@types/domains/channel.js +0 -1
- package/@types/domains/client.d.ts +0 -31
- package/@types/domains/client.js +0 -1
- package/@types/domains/comment.d.ts +0 -17
- package/@types/domains/comment.js +0 -1
- package/@types/domains/community.d.ts +0 -24
- package/@types/domains/community.d.ts.map +0 -1
- package/@types/domains/community.js +0 -1
- package/@types/domains/content.d.ts +0 -26
- package/@types/domains/content.js +0 -1
- package/@types/domains/feed.d.ts +0 -14
- package/@types/domains/feed.js +0 -1
- package/@types/domains/file.d.ts +0 -29
- package/@types/domains/file.js +0 -1
- package/@types/domains/group.d.ts +0 -26
- package/@types/domains/group.d.ts.map +0 -1
- package/@types/domains/group.js +0 -1
- package/@types/domains/message.d.ts +0 -16
- package/@types/domains/message.js +0 -1
- package/@types/domains/partials.d.ts +0 -42
- package/@types/domains/partials.js +0 -1
- package/@types/domains/post.d.ts +0 -20
- package/@types/domains/post.d.ts.map +0 -1
- package/@types/domains/post.js +0 -1
- package/@types/domains/reaction.d.ts +0 -24
- package/@types/domains/reaction.js +0 -1
- package/@types/domains/stream.d.ts +0 -47
- package/@types/domains/stream.js +0 -1
- package/@types/domains/user.d.ts +0 -12
- package/@types/domains/user.js +0 -1
- package/@types/global.d.ts +0 -13
- package/@types/global.js +0 -1
- package/@types/index.d.ts +0 -23
- package/@types/index.js +0 -23
- package/category/api/getCategory.d.ts +0 -16
- package/category/api/getCategory.js +0 -26
- package/category/api/index.d.ts +0 -3
- package/category/api/index.js +0 -2
- package/category/api/queryCategories.d.ts +0 -23
- package/category/api/queryCategories.js +0 -44
- package/channel/api/createChannel.d.ts +0 -18
- package/channel/api/createChannel.d.ts.map +0 -1
- package/channel/api/createChannel.js +0 -27
- package/channel/api/deleteChannel.d.ts +0 -16
- package/channel/api/deleteChannel.js +0 -25
- package/channel/api/getChannel.d.ts +0 -32
- package/channel/api/getChannel.js +0 -47
- package/channel/api/getChannels.d.ts +0 -32
- package/channel/api/getChannels.js +0 -49
- package/channel/api/index.d.ts +0 -9
- package/channel/api/index.d.ts.map +0 -1
- package/channel/api/index.js +0 -8
- package/channel/api/joinChannel.d.ts +0 -16
- package/channel/api/joinChannel.js +0 -28
- package/channel/api/leaveChannel.d.ts +0 -16
- package/channel/api/leaveChannel.js +0 -28
- package/channel/api/queryChannels.d.ts +0 -42
- package/channel/api/queryChannels.d.ts.map +0 -1
- package/channel/api/queryChannels.js +0 -65
- package/channel/api/updateChannel.d.ts +0 -17
- package/channel/api/updateChannel.js +0 -28
- package/channel/events/index.d.ts +0 -7
- package/channel/events/index.js +0 -6
- package/channel/events/onChannelCreated.d.ts +0 -17
- package/channel/events/onChannelCreated.js +0 -28
- package/channel/events/onChannelDeleted.d.ts +0 -17
- package/channel/events/onChannelDeleted.js +0 -28
- package/channel/events/onChannelJoined.d.ts +0 -17
- package/channel/events/onChannelJoined.js +0 -28
- package/channel/events/onChannelLeft.d.ts +0 -17
- package/channel/events/onChannelLeft.js +0 -28
- package/channel/events/onChannelUpdated.d.ts +0 -17
- package/channel/events/onChannelUpdated.js +0 -28
- package/channel/events/onMemberAdded.d.ts +0 -17
- package/channel/events/onMemberAdded.js +0 -28
- package/channel/events/onMemberRemoved.d.ts +0 -17
- package/channel/events/onMemberRemoved.js +0 -28
- package/channel/observers/index.d.ts +0 -2
- package/channel/observers/index.js +0 -1
- package/channel/observers/observeChannel.d.ts +0 -20
- package/channel/observers/observeChannel.js +0 -44
- package/client/api/activeClient.d.ts +0 -17
- package/client/api/activeClient.js +0 -25
- package/client/api/connectClient.d.ts +0 -26
- package/client/api/connectClient.d.ts.map +0 -1
- package/client/api/connectClient.js +0 -48
- package/client/api/createClient.d.ts +0 -17
- package/client/api/createClient.js +0 -40
- package/client/api/disconnectClient.d.ts +0 -16
- package/client/api/disconnectClient.js +0 -27
- package/client/api/enableCache.d.ts +0 -15
- package/client/api/enableCache.d.ts.map +0 -1
- package/client/api/enableCache.js +0 -20
- package/client/api/getToken.d.ts +0 -19
- package/client/api/getToken.js +0 -23
- package/client/api/index.d.ts +0 -7
- package/client/api/index.d.ts.map +0 -1
- package/client/api/index.js +0 -6
- package/client/api/isConnected.d.ts +0 -14
- package/client/api/isConnected.js +0 -21
- package/client/events/index.d.ts +0 -2
- package/client/events/index.js +0 -1
- package/client/events/onClientDisconnected.d.ts +0 -17
- package/client/events/onClientDisconnected.js +0 -20
- package/comment/api/createComment.d.ts +0 -18
- package/comment/api/createComment.d.ts.map +0 -1
- package/comment/api/createComment.js +0 -43
- package/comment/api/deleteComment.d.ts +0 -16
- package/comment/api/deleteComment.js +0 -29
- package/comment/api/getComment.d.ts +0 -32
- package/comment/api/getComment.js +0 -47
- package/comment/api/getComments.d.ts +0 -32
- package/comment/api/getComments.js +0 -49
- package/comment/api/index.d.ts +0 -7
- package/comment/api/index.js +0 -6
- package/comment/api/queryComments.d.ts +0 -42
- package/comment/api/queryComments.d.ts.map +0 -1
- package/comment/api/queryComments.js +0 -72
- package/comment/api/updateComment.d.ts +0 -19
- package/comment/api/updateComment.js +0 -31
- package/comment/events/index.d.ts +0 -4
- package/comment/events/index.js +0 -3
- package/comment/events/onCommentCreated.d.ts +0 -17
- package/comment/events/onCommentCreated.js +0 -28
- package/comment/events/onCommentDeleted.d.ts +0 -17
- package/comment/events/onCommentDeleted.js +0 -28
- package/comment/events/onCommentUpdated.d.ts +0 -17
- package/comment/events/onCommentUpdated.js +0 -28
- package/comment/observers/index.d.ts +0 -3
- package/comment/observers/index.js +0 -2
- package/comment/observers/observeComment.d.ts +0 -20
- package/comment/observers/observeComment.js +0 -44
- package/comment/observers/observeComments.d.ts +0 -22
- package/comment/observers/observeComments.js +0 -38
- package/community/api/createCommunity.d.ts +0 -20
- package/community/api/createCommunity.js +0 -28
- package/community/api/deleteCommunity.d.ts +0 -16
- package/community/api/deleteCommunity.js +0 -26
- package/community/api/getCommunities.d.ts +0 -32
- package/community/api/getCommunities.js +0 -49
- package/community/api/getCommunity.d.ts +0 -32
- package/community/api/getCommunity.d.ts.map +0 -1
- package/community/api/getCommunity.js +0 -47
- package/community/api/index.d.ts +0 -9
- package/community/api/index.d.ts.map +0 -1
- package/community/api/index.js +0 -8
- package/community/api/joinCommunity.d.ts +0 -16
- package/community/api/joinCommunity.js +0 -31
- package/community/api/leaveCommunity.d.ts +0 -16
- package/community/api/leaveCommunity.js +0 -31
- package/community/api/queryCommunities.d.ts +0 -46
- package/community/api/queryCommunities.js +0 -68
- package/community/api/updateCommunity.d.ts +0 -17
- package/community/api/updateCommunity.js +0 -29
- package/community/events/index.d.ts +0 -6
- package/community/events/index.js +0 -5
- package/community/events/onCommunityCreated.d.ts +0 -17
- package/community/events/onCommunityCreated.js +0 -28
- package/community/events/onCommunityDeleted.d.ts +0 -17
- package/community/events/onCommunityDeleted.js +0 -28
- package/community/events/onCommunityJoined.d.ts +0 -17
- package/community/events/onCommunityJoined.js +0 -28
- package/community/events/onCommunityLeft.d.ts +0 -17
- package/community/events/onCommunityLeft.js +0 -28
- package/community/events/onCommunityUpdated.d.ts +0 -17
- package/community/events/onCommunityUpdated.js +0 -28
- package/community/observers/index.d.ts +0 -2
- package/community/observers/index.js +0 -1
- package/community/observers/observeCommunity.d.ts +0 -20
- package/community/observers/observeCommunity.js +0 -44
- package/core/cache/drop.d.ts +0 -11
- package/core/cache/drop.js +0 -21
- package/core/cache/index.d.ts +0 -19
- package/core/cache/index.js +0 -21
- package/core/cache/ingest.d.ts +0 -10
- package/core/cache/ingest.js +0 -19
- package/core/cache/merge.d.ts +0 -10
- package/core/cache/merge.js +0 -14
- package/core/cache/mutate.d.ts +0 -10
- package/core/cache/mutate.js +0 -19
- package/core/cache/pull.d.ts +0 -11
- package/core/cache/pull.js +0 -28
- package/core/cache/push.d.ts +0 -10
- package/core/cache/push.js +0 -30
- package/core/cache/sync.d.ts +0 -10
- package/core/cache/sync.js +0 -31
- package/core/debug.d.ts +0 -15
- package/core/debug.js +0 -20
- package/core/device.d.ts +0 -7
- package/core/device.js +0 -32
- package/core/errors.d.ts +0 -59
- package/core/errors.js +0 -70
- package/core/events.d.ts +0 -33
- package/core/events.js +0 -72
- package/core/model/createPayload.d.ts +0 -1
- package/core/model/createPayload.d.ts.map +0 -1
- package/core/model/createPayload.js +0 -1
- package/core/model/idResolvers.d.ts +0 -20
- package/core/model/idResolvers.d.ts.map +0 -1
- package/core/model/idResolvers.js +0 -36
- package/core/model/identifyModel.d.ts +0 -8
- package/core/model/identifyModel.d.ts.map +0 -1
- package/core/model/identifyModel.js +0 -28
- package/core/model/index.d.ts +0 -4
- package/core/model/index.js +0 -3
- package/core/model/toRecord.d.ts +0 -10
- package/core/model/toRecord.js +0 -9
- package/core/query/decorate.d.ts +0 -23
- package/core/query/decorate.d.ts.map +0 -1
- package/core/query/decorate.js +0 -40
- package/core/query/filtering.d.ts +0 -12
- package/core/query/filtering.js +0 -14
- package/core/query/index.d.ts +0 -6
- package/core/query/index.js +0 -5
- package/core/query/paging.d.ts +0 -58
- package/core/query/paging.d.ts.map +0 -1
- package/core/query/paging.js +0 -140
- package/core/query/query.d.ts +0 -121
- package/core/query/query.d.ts.map +0 -1
- package/core/query/query.js +0 -221
- package/core/query/sorting.d.ts +0 -33
- package/core/query/sorting.d.ts.map +0 -1
- package/core/query/sorting.js +0 -27
- package/core/stores/index.d.ts +0 -3
- package/core/stores/index.js +0 -2
- package/core/stores/memory.d.ts +0 -30
- package/core/stores/memory.d.ts.map +0 -1
- package/core/stores/memory.js +0 -47
- package/core/stores/persistent.d.ts +0 -13
- package/core/stores/persistent.js +0 -49
- package/core/transports.d.ts +0 -49
- package/core/transports.d.ts.map +0 -1
- package/core/transports.js +0 -130
- package/core/uuid.d.ts +0 -2
- package/core/uuid.js +0 -2
- package/feed/api/index.d.ts +0 -2
- package/feed/api/index.js +0 -1
- package/feed/api/queryGlobalFeed.d.ts +0 -23
- package/feed/api/queryGlobalFeed.js +0 -44
- package/file/api/createFile.d.ts +0 -16
- package/file/api/createFile.d.ts.map +0 -1
- package/file/api/createFile.js +0 -37
- package/file/api/deleteFile.d.ts +0 -16
- package/file/api/deleteFile.js +0 -25
- package/file/api/fileUrlwithSize.d.ts +0 -9
- package/file/api/fileUrlwithSize.d.ts.map +0 -1
- package/file/api/fileUrlwithSize.js +0 -10
- package/file/api/getFile.d.ts +0 -32
- package/file/api/getFile.js +0 -47
- package/file/api/index.d.ts +0 -5
- package/file/api/index.js +0 -4
- package/file/observers/index.d.ts +0 -2
- package/file/observers/index.js +0 -1
- package/file/observers/observeFile.d.ts +0 -20
- package/file/observers/observeFile.js +0 -40
- package/index.d.ts +0 -31
- package/index.d.ts.map +0 -1
- package/index.js +0 -40
- package/message/api/createMessage.d.ts +0 -38
- package/message/api/createMessage.js +0 -62
- package/message/api/deleteMessage.d.ts +0 -32
- package/message/api/deleteMessage.js +0 -52
- package/message/api/getMessage.d.ts +0 -32
- package/message/api/getMessage.js +0 -47
- package/message/api/getMessages.d.ts +0 -32
- package/message/api/getMessages.js +0 -49
- package/message/api/index.d.ts +0 -7
- package/message/api/index.js +0 -6
- package/message/api/queryMessages.d.ts +0 -55
- package/message/api/queryMessages.js +0 -109
- package/message/api/updateMessage.d.ts +0 -38
- package/message/api/updateMessage.js +0 -58
- package/message/events/index.d.ts +0 -4
- package/message/events/index.js +0 -3
- package/message/events/onMessageCreated.d.ts +0 -17
- package/message/events/onMessageCreated.js +0 -28
- package/message/events/onMessageDeleted.d.ts +0 -17
- package/message/events/onMessageDeleted.js +0 -28
- package/message/events/onMessageUpdated.d.ts +0 -17
- package/message/events/onMessageUpdated.js +0 -28
- package/message/observers/index.d.ts +0 -3
- package/message/observers/index.js +0 -2
- package/message/observers/observeMessage.d.ts +0 -22
- package/message/observers/observeMessage.js +0 -48
- package/message/observers/observeMessages.d.ts +0 -19
- package/message/observers/observeMessages.js +0 -39
- package/post/api/createPost.d.ts +0 -21
- package/post/api/createPost.js +0 -32
- package/post/api/deletePost.d.ts +0 -16
- package/post/api/deletePost.js +0 -32
- package/post/api/getPost.d.ts +0 -32
- package/post/api/getPost.js +0 -47
- package/post/api/getPosts.d.ts +0 -32
- package/post/api/getPosts.js +0 -49
- package/post/api/index.d.ts +0 -7
- package/post/api/index.js +0 -6
- package/post/api/queryPosts.d.ts +0 -45
- package/post/api/queryPosts.d.ts.map +0 -1
- package/post/api/queryPosts.js +0 -67
- package/post/api/updatePost.d.ts +0 -19
- package/post/api/updatePost.js +0 -31
- package/post/events/index.d.ts +0 -4
- package/post/events/index.js +0 -3
- package/post/events/onPostCreated.d.ts +0 -17
- package/post/events/onPostCreated.js +0 -28
- package/post/events/onPostDeleted.d.ts +0 -17
- package/post/events/onPostDeleted.js +0 -28
- package/post/events/onPostUpdated.d.ts +0 -17
- package/post/events/onPostUpdated.js +0 -28
- package/post/observers/index.d.ts +0 -3
- package/post/observers/index.js +0 -2
- package/post/observers/observePost.d.ts +0 -20
- package/post/observers/observePost.js +0 -44
- package/post/observers/observePosts.d.ts +0 -22
- package/post/observers/observePosts.d.ts.map +0 -1
- package/post/observers/observePosts.js +0 -40
- package/reaction/api/addReaction.d.ts +0 -36
- package/reaction/api/addReaction.js +0 -58
- package/reaction/api/index.d.ts +0 -3
- package/reaction/api/index.js +0 -2
- package/reaction/api/removeReaction.d.ts +0 -36
- package/reaction/api/removeReaction.js +0 -58
- package/reaction/events/index.d.ts +0 -2
- package/reaction/events/index.js +0 -1
- package/reaction/events/onReactionAdded.d.ts +0 -17
- package/reaction/events/onReactionAdded.js +0 -29
- package/reaction/events/onReactionRemoved.d.ts +0 -17
- package/reaction/events/onReactionRemoved.js +0 -28
- package/reaction/utils/dispatchReactable.d.ts +0 -3
- package/reaction/utils/dispatchReactable.js +0 -14
- package/reaction/utils/fetchReference.d.ts +0 -3
- package/reaction/utils/fetchReference.js +0 -13
- package/reaction/utils/index.d.ts +0 -3
- package/reaction/utils/index.js +0 -2
- package/report/api/createReport.d.ts +0 -16
- package/report/api/createReport.js +0 -28
- package/report/api/deleteReport.d.ts +0 -16
- package/report/api/deleteReport.js +0 -28
- package/report/api/index.d.ts +0 -4
- package/report/api/index.js +0 -3
- package/report/api/isReportedByMe.d.ts +0 -16
- package/report/api/isReportedByMe.js +0 -26
- package/report/constants/referenceTypes.d.ts +0 -24
- package/report/constants/referenceTypes.js +0 -22
- package/stream/api/createStream.d.ts +0 -18
- package/stream/api/createStream.js +0 -24
- package/stream/api/deleteStream.d.ts +0 -16
- package/stream/api/deleteStream.js +0 -26
- package/stream/api/getStream.d.ts +0 -12
- package/stream/api/getStream.js +0 -20
- package/stream/api/index.d.ts +0 -6
- package/stream/api/index.js +0 -6
- package/stream/api/queryStreams.d.ts +0 -23
- package/stream/api/queryStreams.js +0 -37
- package/stream/api/updateStream.d.ts +0 -17
- package/stream/api/updateStream.js +0 -25
- package/stream/events/index.d.ts +0 -4
- package/stream/events/index.js +0 -3
- package/stream/events/onStreamRecorded.d.ts +0 -17
- package/stream/events/onStreamRecorded.js +0 -28
- package/stream/events/onStreamStarted.d.ts +0 -17
- package/stream/events/onStreamStarted.js +0 -28
- package/stream/events/onStreamStopped.d.ts +0 -17
- package/stream/events/onStreamStopped.js +0 -28
- package/tsconfig.tsbuildinfo +0 -1
- package/user/api/getUser.d.ts +0 -32
- package/user/api/getUser.js +0 -47
- package/user/api/getUsers.d.ts +0 -32
- package/user/api/getUsers.js +0 -47
- package/user/api/index.d.ts +0 -5
- package/user/api/index.js +0 -4
- package/user/api/queryUsers.d.ts +0 -43
- package/user/api/queryUsers.d.ts.map +0 -1
- package/user/api/queryUsers.js +0 -67
- package/user/api/updateUser.d.ts +0 -17
- package/user/api/updateUser.js +0 -33
- package/user/events/index.d.ts +0 -2
- package/user/events/index.js +0 -1
- package/user/events/onUserUpdated.d.ts +0 -17
- package/user/events/onUserUpdated.js +0 -28
- package/user/observers/index.d.ts +0 -2
- package/user/observers/index.js +0 -1
- package/user/observers/observeUser.d.ts +0 -19
- package/user/observers/observeUser.js +0 -43
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ```js
|
|
3
|
+
* import { onMemberRemoved } from '@amityco/ts-sdk'
|
|
4
|
+
* const dispose = onMemberRemoved(channel => {
|
|
5
|
+
* // ...
|
|
6
|
+
* })
|
|
7
|
+
* ```
|
|
8
|
+
*
|
|
9
|
+
* Fired when any {@link Amity.User} has been removed from any {@link Amity.Channel}
|
|
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 Channel Events
|
|
15
|
+
*/
|
|
16
|
+
export declare const onMemberRemoved: (callback: Amity.Listener<Amity.Channel>) => Amity.Unsubscriber;
|
|
17
|
+
//# sourceMappingURL=onMemberRemoved.d.ts.map
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ```js
|
|
3
|
+
* import { observeChannel } from '@amityco/ts-sdk'
|
|
4
|
+
*
|
|
5
|
+
* let channel = {}
|
|
6
|
+
* const dispose = observeChannel(channelId, ({ data }) => channel = data)
|
|
7
|
+
* ```
|
|
8
|
+
*
|
|
9
|
+
* Observe all mutation on a given {@link Amity.Channel}
|
|
10
|
+
*
|
|
11
|
+
* @param channelId the ID of the channel to observe
|
|
12
|
+
* @param callback the function to call when new data are available
|
|
13
|
+
* @returns An {@link Amity.Unsubscriber} function to run when willing to stop observing the channel
|
|
14
|
+
*
|
|
15
|
+
* @category Channel Observer
|
|
16
|
+
*/
|
|
17
|
+
export declare const observeChannel: <Events extends ["onFetch", "onUpdate", "onDelete", "onJoin", "onLeft", "onMemberAdded", "onMemberRemoved"]>(channelId: string, callback: Amity.ObjectListener<{
|
|
18
|
+
data?: Amity.Channel<any> | undefined;
|
|
19
|
+
} & Amity.QueryMetadata, Events>) => Amity.Unsubscriber;
|
|
20
|
+
//# sourceMappingURL=observeChannel.d.ts.map
|
|
File without changes
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Get the active client
|
|
3
|
+
*
|
|
4
|
+
* @returns the active client instance
|
|
5
|
+
*
|
|
6
|
+
* @hidden
|
|
7
|
+
*/
|
|
8
|
+
export declare const getActiveClient: () => Amity.Client;
|
|
9
|
+
/**
|
|
10
|
+
* Sets the active client
|
|
11
|
+
*
|
|
12
|
+
* @param client the client to assume as currently active client
|
|
13
|
+
*
|
|
14
|
+
* @hidden
|
|
15
|
+
*/
|
|
16
|
+
export declare const setActiveClient: (client: Amity.Client) => void;
|
|
17
|
+
//# sourceMappingURL=activeClient.d.ts.map
|
|
File without changes
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ```js
|
|
3
|
+
* import { clearCache } from '@amityco/ts-sdk'
|
|
4
|
+
* clearCache()
|
|
5
|
+
* ```
|
|
6
|
+
*
|
|
7
|
+
* Resets the state of the given {@link Amity.Store} names within
|
|
8
|
+
* the {@link Amity.Cache} object of a {@link Amity.Client} instance
|
|
9
|
+
*
|
|
10
|
+
* @param stores an array of the stores names to be wiped
|
|
11
|
+
*
|
|
12
|
+
* @category Client API
|
|
13
|
+
*/
|
|
14
|
+
export declare const clearCache: (stores?: Amity.Domain[]) => void;
|
|
15
|
+
//# sourceMappingURL=clearCache.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"clearCache.d.ts","sourceRoot":"","sources":["../../../src/client/api/clearCache.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,UAAU,YACb,MAAM,MAAM,EAAE,SAMvB,CAAA"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ```js
|
|
3
|
+
* import { connectClient } from '@amityco/ts-sdk/client/api'
|
|
4
|
+
* const success = await connectClient({
|
|
5
|
+
* userId: 'XYZ123456789',
|
|
6
|
+
* })
|
|
7
|
+
* ```
|
|
8
|
+
*
|
|
9
|
+
* Connects an {@link Amity.Client} instance to ASC servers
|
|
10
|
+
*
|
|
11
|
+
* @param userId the user ID for the current session
|
|
12
|
+
* @param displayName the user's displayName for the current session
|
|
13
|
+
* @param deviceId Manual override of the user's device id (for device management)
|
|
14
|
+
* @param authToken The authentication token - necessary when network option is set to secure
|
|
15
|
+
* @returns a success boolean if connected
|
|
16
|
+
*
|
|
17
|
+
* @category Client API
|
|
18
|
+
* @async
|
|
19
|
+
*/
|
|
20
|
+
export declare const connectClient: (params: {
|
|
21
|
+
userId: Amity.User['userId'];
|
|
22
|
+
displayName?: Amity.User['displayName'];
|
|
23
|
+
authToken?: string;
|
|
24
|
+
deviceId?: Amity.Device['deviceId'];
|
|
25
|
+
}) => Promise<boolean>;
|
|
26
|
+
//# sourceMappingURL=connectClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connectClient.d.ts","sourceRoot":"","sources":["../../../src/client/api/connectClient.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,aAAa,WAAkB;IAC1C,MAAM,EAAE,MAAM,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC7B,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC,aAAa,CAAC,CAAC;IACxC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,MAAM,CAAC,UAAU,CAAC,CAAC;CACrC,KAAG,QAAQ,OAAO,CA+BlB,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ```js
|
|
3
|
+
* import { createClient } from '@amityco/ts-sdk'
|
|
4
|
+
* const client = createClient(apiKey, 'https://asc.server/', 'myClient')
|
|
5
|
+
* ```
|
|
6
|
+
*
|
|
7
|
+
* Creates a new {@link Amity.Client} instance
|
|
8
|
+
*
|
|
9
|
+
* @param apiKey for the {@link Amity.Client} instance
|
|
10
|
+
* @param apiEndpoint endpoint to connect to
|
|
11
|
+
* @param debugSession session's identifier for the client's logger instance
|
|
12
|
+
* @returns A {@link Amity.Client} instance
|
|
13
|
+
*
|
|
14
|
+
* @category Client API
|
|
15
|
+
**/
|
|
16
|
+
export declare const createClient: (apiKey: string, apiEndpoint?: string, debugSession?: string) => Amity.Client;
|
|
17
|
+
//# sourceMappingURL=createClient.d.ts.map
|
|
File without changes
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ```js
|
|
3
|
+
* import { disconnectClient } from '@amityco/ts-sdk'
|
|
4
|
+
* const success = await disconnectClient()
|
|
5
|
+
* ```
|
|
6
|
+
*
|
|
7
|
+
* Disconnects an {@link Amity.Client} instance from ASC servers
|
|
8
|
+
*
|
|
9
|
+
* @param client The {@link Amity.Client} instance to disconnect
|
|
10
|
+
* @returns a success boolean if disconnected
|
|
11
|
+
*
|
|
12
|
+
* @category Client API
|
|
13
|
+
* @async
|
|
14
|
+
*/
|
|
15
|
+
export declare const disconnectClient: () => Promise<boolean>;
|
|
16
|
+
//# sourceMappingURL=disconnectClient.d.ts.map
|
|
File without changes
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { createCache } from '~/core/cache';
|
|
2
|
+
/**
|
|
3
|
+
* ```js
|
|
4
|
+
* import { enableCache } from '@amityco/ts-sdk'
|
|
5
|
+
* enableCache()
|
|
6
|
+
* ```
|
|
7
|
+
*
|
|
8
|
+
* Adds a new {@link Amity.Cache} object to an {@link Amity.Client} instance
|
|
9
|
+
*
|
|
10
|
+
* @param stores a partial dictionary of stores to be used for caching
|
|
11
|
+
*
|
|
12
|
+
* @category Client API
|
|
13
|
+
*/
|
|
14
|
+
export declare const enableCache: (stores?: Parameters<typeof createCache>[0]) => void;
|
|
15
|
+
//# sourceMappingURL=enableCache.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enableCache.d.ts","sourceRoot":"","sources":["../../../src/client/api/enableCache.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAG1C;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,WAAW,YACd,WAAW,kBAAkB,CAAC,CAAC,CAAC,CAAC,SAgB1C,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Retrieves a pair of {@link Amity.Tokens} necessary for connection
|
|
3
|
+
*
|
|
4
|
+
* @param userId The userId to use to issue a token
|
|
5
|
+
* @param displayName The user's displayName
|
|
6
|
+
* @param deviceId The user's device Id (can be manually set for native users)
|
|
7
|
+
* @param authToken The authentication token - necessary when network option is set to secure
|
|
8
|
+
* @return The accessToken for the given userId
|
|
9
|
+
*
|
|
10
|
+
* @category Client API
|
|
11
|
+
* @hidden
|
|
12
|
+
*/
|
|
13
|
+
export declare const getToken: (params: {
|
|
14
|
+
userId: Amity.User['userId'];
|
|
15
|
+
displayName: Amity.User['displayName'];
|
|
16
|
+
authToken?: string;
|
|
17
|
+
deviceId: Amity.Device['deviceId'];
|
|
18
|
+
}) => Promise<Amity.Tokens>;
|
|
19
|
+
//# sourceMappingURL=getToken.d.ts.map
|
|
File without changes
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { getActiveClient } from './activeClient';
|
|
2
|
+
export * from './createClient';
|
|
3
|
+
export * from './connectClient';
|
|
4
|
+
export * from './disconnectClient';
|
|
5
|
+
export * from './isConnected';
|
|
6
|
+
export * from './enableCache';
|
|
7
|
+
export * from './clearCache';
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/client/api/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAA;AAChD,cAAc,gBAAgB,CAAA;AAC9B,cAAc,iBAAiB,CAAA;AAC/B,cAAc,oBAAoB,CAAA;AAClC,cAAc,eAAe,CAAA;AAC7B,cAAc,eAAe,CAAA;AAC7B,cAAc,cAAc,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ```js
|
|
3
|
+
* import { isConnected } from '@amityco/ts-sdk'
|
|
4
|
+
* const connected = isConnected()
|
|
5
|
+
* ```
|
|
6
|
+
*
|
|
7
|
+
* Checks if a {@link Amity.Client} instance is connected to ASC servers
|
|
8
|
+
*
|
|
9
|
+
* @returns a success boolean if connected
|
|
10
|
+
*
|
|
11
|
+
* @category Client API
|
|
12
|
+
*/
|
|
13
|
+
export declare const isConnected: () => boolean;
|
|
14
|
+
//# sourceMappingURL=isConnected.d.ts.map
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ```js
|
|
3
|
+
* import { onClientDisconnected } from '@amityco/ts-sdk'
|
|
4
|
+
* const dispose = onClientDisconnected(reason => {
|
|
5
|
+
* // ...
|
|
6
|
+
* })
|
|
7
|
+
* ```
|
|
8
|
+
*
|
|
9
|
+
* Fired when any {@link Amity.Client} have been disconnected
|
|
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 Client Events
|
|
15
|
+
*/
|
|
16
|
+
export declare const onClientDisconnected: (callback: Amity.Listener<void>) => Amity.Unsubscriber;
|
|
17
|
+
//# sourceMappingURL=onClientDisconnected.d.ts.map
|
|
File without changes
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ```js
|
|
3
|
+
* import { createComment } from '@amityco/ts-sdk'
|
|
4
|
+
* const newComment = await createComment(bundle)
|
|
5
|
+
* ```
|
|
6
|
+
*
|
|
7
|
+
* Creates an {@link Amity.Comment}
|
|
8
|
+
*
|
|
9
|
+
* @param bundle The data necessary to create a new {@link Amity.Comment}
|
|
10
|
+
* @returns The newly created {@link Amity.Comment}
|
|
11
|
+
*
|
|
12
|
+
* @category Comment API
|
|
13
|
+
* @async
|
|
14
|
+
*/
|
|
15
|
+
export declare const createComment: <T extends "text">(bundle: Pick<Amity.Comment<T>, "referenceType" | "referenceId" | "parentId" | "data" | "metadata">) => Promise<Amity.Comment<any>>;
|
|
16
|
+
//# sourceMappingURL=createComment.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createComment.d.ts","sourceRoot":"","sources":["../../../src/comment/api/createComment.ts"],"names":[],"mappings":"AAQA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,aAAa,uJAoBzB,CAAA"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ```js
|
|
3
|
+
* import { deleteComment } from '@amityco/ts-sdk'
|
|
4
|
+
* const success = await deleteComment('foobar')
|
|
5
|
+
* ```
|
|
6
|
+
*
|
|
7
|
+
* Deletes a {@link Amity.Comment}
|
|
8
|
+
*
|
|
9
|
+
* @param commentId The {@link Amity.Comment} ID to delete
|
|
10
|
+
* @return A success boolean if the {@link Amity.Comment} was deleted
|
|
11
|
+
*
|
|
12
|
+
* @category Comment API
|
|
13
|
+
* @async
|
|
14
|
+
*/
|
|
15
|
+
export declare const deleteComment: (commentId: Amity.Comment['commentId']) => Promise<Amity.Comment<any>>;
|
|
16
|
+
//# sourceMappingURL=deleteComment.d.ts.map
|
|
File without changes
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ```js
|
|
3
|
+
* import { getComment } from '@amityco/ts-sdk'
|
|
4
|
+
* const comment = await getComment('foobar')
|
|
5
|
+
* ```
|
|
6
|
+
*
|
|
7
|
+
* Fetches a {@link Amity.Comment} object
|
|
8
|
+
*
|
|
9
|
+
* @param commentId the ID of the {@link Amity.Comment} to fetch
|
|
10
|
+
* @returns the associated {@link Amity.Comment} object
|
|
11
|
+
*
|
|
12
|
+
* @category Comment API
|
|
13
|
+
* @async
|
|
14
|
+
*/
|
|
15
|
+
export declare const getComment: {
|
|
16
|
+
(commentId: Amity.Comment['commentId']): Promise<Amity.Comment<any>>;
|
|
17
|
+
/**
|
|
18
|
+
* ```js
|
|
19
|
+
* import { getComment } from '@amityco/ts-sdk'
|
|
20
|
+
* const comment = getComment.locally('foobar')
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* Fetches a {@link Amity.Comment} object
|
|
24
|
+
*
|
|
25
|
+
* @param commentId the ID of the {@link Amity.Comment} to fetch
|
|
26
|
+
* @returns the associated {@link Amity.Comment} object
|
|
27
|
+
*
|
|
28
|
+
* @category Comment API
|
|
29
|
+
*/
|
|
30
|
+
locally(commentId: Amity.Comment['commentId']): Amity.Comment<any>;
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=getComment.d.ts.map
|
|
File without changes
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ```js
|
|
3
|
+
* import { getComments } from '@amityco/ts-sdk'
|
|
4
|
+
* const comments = await getComments(['foo', 'bar'])
|
|
5
|
+
* ```
|
|
6
|
+
*
|
|
7
|
+
* Fetches a collection of {@link Amity.Comment} objects
|
|
8
|
+
*
|
|
9
|
+
* @param commentIds the IDs of the {@link Amity.Comment} to fetch
|
|
10
|
+
* @returns the associated collection of {@link Amity.Comment} objects
|
|
11
|
+
*
|
|
12
|
+
* @category Comment API
|
|
13
|
+
* @async
|
|
14
|
+
*/
|
|
15
|
+
export declare const getComments: {
|
|
16
|
+
(commentIds: Amity.Comment['commentId'][]): Promise<Record<string, Amity.Comment<any>>>;
|
|
17
|
+
/**
|
|
18
|
+
* ```js
|
|
19
|
+
* import { getComments } from '@amityco/ts-sdk'
|
|
20
|
+
* const comments = getComments.locally(['foo', 'bar'])
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* Fetches a collection of {@link Amity.Comment} objects from cache
|
|
24
|
+
*
|
|
25
|
+
* @param commentIds the IDs of the {@link Amity.Comment} to fetch
|
|
26
|
+
* @returns the associated collection of {@link Amity.Comment} objects
|
|
27
|
+
*
|
|
28
|
+
* @category Comment API
|
|
29
|
+
*/
|
|
30
|
+
locally(commentIds: Amity.Comment['commentId'][]): Record<string, Amity.Comment<any>> | undefined;
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=getComments.d.ts.map
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ```js
|
|
3
|
+
* import { queryComments } from '@amityco/ts-sdk'
|
|
4
|
+
* const comments = await queryComments({ postId })
|
|
5
|
+
* ```
|
|
6
|
+
*
|
|
7
|
+
* Queries a paginable list of {@link Amity.Comment} objects
|
|
8
|
+
*
|
|
9
|
+
* @param query The query parameters
|
|
10
|
+
* @returns A page of {@link Amity.Comment} objects
|
|
11
|
+
*
|
|
12
|
+
* @category Comment API
|
|
13
|
+
* @async
|
|
14
|
+
*/
|
|
15
|
+
export declare const queryComments: {
|
|
16
|
+
(query: {
|
|
17
|
+
referenceType: Amity.Comment['referenceType'];
|
|
18
|
+
referenceId: Amity.Comment['referenceId'];
|
|
19
|
+
parentId?: Amity.Comment['commentId'] | null;
|
|
20
|
+
hasFlag?: boolean;
|
|
21
|
+
isDeleted?: Amity.Comment['isDeleted'];
|
|
22
|
+
page?: Amity.Page;
|
|
23
|
+
}): Promise<{
|
|
24
|
+
data: Record<string, Amity.Comment<any>>;
|
|
25
|
+
prevPage: Amity.Page | null;
|
|
26
|
+
nextPage: Amity.Page | null;
|
|
27
|
+
}>;
|
|
28
|
+
/**
|
|
29
|
+
* ```js
|
|
30
|
+
* import { queryComments } from '@amityco/ts-sdk'
|
|
31
|
+
* const comments = queryComments.locally({ postId })
|
|
32
|
+
* ```
|
|
33
|
+
*
|
|
34
|
+
* Queries a paginable list of {@link Amity.Comment} objects from cache
|
|
35
|
+
*
|
|
36
|
+
* @param query The query parameters
|
|
37
|
+
* @returns comments
|
|
38
|
+
*
|
|
39
|
+
* @category Comment API
|
|
40
|
+
*/
|
|
41
|
+
locally(query: Parameters<typeof queryComments>[0]): {
|
|
42
|
+
data: Record<string, Amity.Comment<any>>;
|
|
43
|
+
nextPage: {
|
|
44
|
+
after: number;
|
|
45
|
+
limit: number;
|
|
46
|
+
};
|
|
47
|
+
prevPage: {
|
|
48
|
+
before: number;
|
|
49
|
+
limit: number;
|
|
50
|
+
} | undefined;
|
|
51
|
+
} | undefined;
|
|
52
|
+
};
|
|
53
|
+
//# sourceMappingURL=queryComments.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"queryComments.d.ts","sourceRoot":"","sources":["../../../src/comment/api/queryComments.ts"],"names":[],"mappings":"AAaA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,aAAa;YAAiB;QACzC,aAAa,EAAE,aAAa,CAAC,eAAe,CAAC,CAAC;QAC9C,WAAW,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC;QAC1C,QAAQ,CAAC,EAAE,aAAa,CAAC,WAAW,CAAC,GAAG,IAAI,CAAA;QAC5C,OAAO,CAAC,EAAE,OAAO,CAAA;QACjB,SAAS,CAAC,EAAE,aAAa,CAAC,WAAW,CAAC,CAAA;QACtC,IAAI,CAAC,EAAE,MAAM,IAAI,CAAA;KAClB;;;;;IAmCD;;;;;;;;;;;;OAYG;mBAEM,WAAW,oBAAoB,CAAC,CAAC,CAAC,CAAC;;;;;;;;;;;CAhB3C,CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ```js
|
|
3
|
+
* import { updateComment } from '@amityco/ts-sdk'
|
|
4
|
+
* const updated = await updateComment(commentId, {
|
|
5
|
+
* data: { text: 'hello world' }
|
|
6
|
+
* })
|
|
7
|
+
* ```
|
|
8
|
+
*
|
|
9
|
+
* Updates an {@link Amity.Comment}
|
|
10
|
+
*
|
|
11
|
+
* @param commentId The ID of the {@link Amity.Comment} to edit
|
|
12
|
+
* @param patch The patch data to apply
|
|
13
|
+
* @returns the updated {@link Amity.Comment} object
|
|
14
|
+
*
|
|
15
|
+
* @category Comment API
|
|
16
|
+
* @async
|
|
17
|
+
*/
|
|
18
|
+
export declare const updateComment: (commentId: Amity.Comment['commentId'], patch: Patch<Amity.Comment, 'data' | 'metadata'>) => Promise<Amity.Comment<any>>;
|
|
19
|
+
//# sourceMappingURL=updateComment.d.ts.map
|
|
File without changes
|
|
File without changes
|
|
@@ -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 an {@link Amity.Comment} 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 onCommentCreated: <T extends "text">(callback: Amity.Listener<Amity.Comment<T>>) => Amity.Unsubscriber;
|
|
17
|
+
//# sourceMappingURL=onCommentCreated.d.ts.map
|
|
File without changes
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ```js
|
|
3
|
+
* import { onCommentDeleted } from '@amityco/ts-sdk'
|
|
4
|
+
* const dispose = onCommentDeleted(comment => {
|
|
5
|
+
* // ...
|
|
6
|
+
* })
|
|
7
|
+
* ```
|
|
8
|
+
*
|
|
9
|
+
* Fired when an {@link Amity.Comment} 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 onCommentDeleted: <T extends "text">(callback: Amity.Listener<Amity.Comment<T>>) => Amity.Unsubscriber;
|
|
17
|
+
//# sourceMappingURL=onCommentDeleted.d.ts.map
|
|
File without changes
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ```js
|
|
3
|
+
* import { onCommentUpdated } from '@amityco/ts-sdk'
|
|
4
|
+
* const dispose = onCommentUpdated(comment => {
|
|
5
|
+
* // ...
|
|
6
|
+
* })
|
|
7
|
+
* ```
|
|
8
|
+
*
|
|
9
|
+
* Fired when an {@link Amity.Comment} has been updated
|
|
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 onCommentUpdated: <T extends "text">(callback: Amity.Listener<Amity.Comment<T>>) => Amity.Unsubscriber;
|
|
17
|
+
//# sourceMappingURL=onCommentUpdated.d.ts.map
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ```js
|
|
3
|
+
* import { observeComment } from '@amityco/ts-sdk'
|
|
4
|
+
*
|
|
5
|
+
* let comment = {}
|
|
6
|
+
* const dispose = observeComment(commentId, ({ data }) => comment = data)
|
|
7
|
+
* ```
|
|
8
|
+
*
|
|
9
|
+
* Observe all mutation on a given {@link Amity.Comment}
|
|
10
|
+
*
|
|
11
|
+
* @param commentId the ID of the comment to observe
|
|
12
|
+
* @param callback the function to call when new data are available
|
|
13
|
+
* @returns An {@link Amity.Unsubscriber} function to run when willing to stop observing the comment
|
|
14
|
+
*
|
|
15
|
+
* @category Comment Observer
|
|
16
|
+
*/
|
|
17
|
+
export declare const observeComment: <Events extends ["onFetch", "onUpdate", "onDelete"]>(commentId: string, callback: Amity.ObjectListener<{
|
|
18
|
+
data?: Amity.Comment<any> | undefined;
|
|
19
|
+
} & Amity.QueryMetadata, Events>, policy?: Amity.QueryPolicy) => Amity.Unsubscriber;
|
|
20
|
+
//# sourceMappingURL=observeComment.d.ts.map
|
|
File without changes
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ```js
|
|
3
|
+
* import { observeComments } from '@amityco/ts-sdk'
|
|
4
|
+
*
|
|
5
|
+
* let comments = []
|
|
6
|
+
* const unsub = observeComments(postId, comment => merge(comments, comment))
|
|
7
|
+
* ```
|
|
8
|
+
*
|
|
9
|
+
* Observe all mutations on a list of {@link Amity.Comment} for a given {@link Amity.Post} object
|
|
10
|
+
*
|
|
11
|
+
* @param postId the ID of the post where to observe the comments
|
|
12
|
+
* @param callback the function to call when new data are available
|
|
13
|
+
* @returns An {@link Amity.Unsubscriber} function to run when willing to stop observing the comments
|
|
14
|
+
*
|
|
15
|
+
* @category Comment Observer
|
|
16
|
+
*/
|
|
17
|
+
export declare const observeComments: (postId: Amity.Post['postId'], callback: Amity.ObjectListener<Amity.Comment, [
|
|
18
|
+
'onCreate',
|
|
19
|
+
'onUpdate',
|
|
20
|
+
'onDelete'
|
|
21
|
+
]>) => Amity.Unsubscriber;
|
|
22
|
+
//# sourceMappingURL=observeComments.d.ts.map
|
|
File without changes
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ```js
|
|
3
|
+
* import { addCommunityMembers } from '@amityco/ts-sdk'
|
|
4
|
+
* const updated = await addCommunityMembers(communityId, ['foo', 'bar'])
|
|
5
|
+
* ```
|
|
6
|
+
*
|
|
7
|
+
* Adds a list of {@link Amity.User} to a {@link Amity.Community} to add users to
|
|
8
|
+
*
|
|
9
|
+
* @param communityId The ID of the {@link Amity.Community} to perform
|
|
10
|
+
* @param userIds The list of IDs {@link Amity.User} to add
|
|
11
|
+
* @returns A success boolean if the {@link Amity.User} were added to the {@link Amity.Community}
|
|
12
|
+
*
|
|
13
|
+
* @category Community API
|
|
14
|
+
* @async
|
|
15
|
+
*/
|
|
16
|
+
export declare const addCommunityMembers: (communityId: Amity.Community['communityId'], userIds: Amity.User['userId'][]) => Promise<boolean>;
|
|
17
|
+
//# sourceMappingURL=addCommunityMembers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"addCommunityMembers.d.ts","sourceRoot":"","sources":["../../../src/community/api/addCommunityMembers.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,mBAAmB,gBACjB,MAAM,SAAS,CAAC,aAAa,CAAC,WAClC,MAAM,IAAI,CAAC,QAAQ,CAAC,EAAE,qBAsBhC,CAAA"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ```js
|
|
3
|
+
* import { addCommunityMembersRole } from '@amityco/ts-sdk'
|
|
4
|
+
* const updated = await addCommunityMembersRole(communityId, 'foo', ['bar'])
|
|
5
|
+
* ```
|
|
6
|
+
*
|
|
7
|
+
* Adds an {@link Amity.Role} to a list of {@link Amity.User} on a {@link Amity.Community}
|
|
8
|
+
*
|
|
9
|
+
* @param communityId The ID of the {@link Amity.Community} to perform
|
|
10
|
+
* @param roleId The ID of the {@link Amity.Role} to apply
|
|
11
|
+
* @param userId Array of IDs of the {@link Amity.User} to perform
|
|
12
|
+
* @returns A success boolean if the {@link Amity.Role} were added to list of {@link Amity.User} in the {@link Amity.Community}
|
|
13
|
+
*
|
|
14
|
+
* @category Community API
|
|
15
|
+
* @async
|
|
16
|
+
*/
|
|
17
|
+
export declare const addCommunityMembersRole: (communityId: Amity.Community['communityId'], roleId: Amity.Role['roleId'], userIds: Amity.User['userId'][]) => Promise<boolean>;
|
|
18
|
+
//# sourceMappingURL=addCommunityMembersRole.d.ts.map
|