@amityco/ts-sdk 0.0.1-beta.36 → 0.0.1-beta.38
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 +3 -5
- package/dist/@types/core/errors.d.ts +1 -0
- package/dist/@types/core/errors.d.ts.map +1 -1
- package/dist/@types/core/events.d.ts +5 -0
- package/dist/@types/core/events.d.ts.map +1 -1
- package/dist/@types/domains/category.d.ts +7 -0
- package/dist/@types/domains/category.d.ts.map +1 -1
- package/dist/@types/domains/client.d.ts +21 -1
- package/dist/@types/domains/client.d.ts.map +1 -1
- package/dist/@types/domains/community.d.ts +12 -0
- package/dist/@types/domains/community.d.ts.map +1 -1
- package/dist/@types/global.d.ts +12 -0
- package/dist/@types/global.d.ts.map +1 -1
- package/dist/category/api/queryCategories.d.ts +1 -5
- package/dist/category/api/queryCategories.d.ts.map +1 -1
- package/dist/category/observers/index.d.ts +2 -0
- package/dist/category/observers/index.d.ts.map +1 -0
- package/dist/category/observers/liveCategories.d.ts +18 -0
- package/dist/category/observers/liveCategories.d.ts.map +1 -0
- package/dist/category/observers/tests/liveCategories.test.d.ts +2 -0
- package/dist/category/observers/tests/liveCategories.test.d.ts.map +1 -0
- package/dist/channel/api/tests/getChannels.test.d.ts +2 -0
- package/dist/channel/api/tests/getChannels.test.d.ts.map +1 -0
- package/dist/channel/api/tests/leaveChannel.test.d.ts +2 -0
- package/dist/channel/api/tests/leaveChannel.test.d.ts.map +1 -0
- package/dist/channel/observers/liveChannel.d.ts.map +1 -1
- package/dist/client/api/accessTokenExpiryWatcher.d.ts +7 -0
- package/dist/client/api/accessTokenExpiryWatcher.d.ts.map +1 -0
- package/dist/client/api/activeUser.d.ts +1 -1
- package/dist/client/api/activeUser.d.ts.map +1 -1
- package/dist/client/api/connectClient.d.ts +1 -1
- package/dist/client/api/connectClient.d.ts.map +1 -1
- package/dist/client/api/createClient.d.ts +1 -1
- package/dist/client/api/createClient.d.ts.map +1 -1
- package/dist/client/api/disconnectClient.d.ts +0 -1
- package/dist/client/api/disconnectClient.d.ts.map +1 -1
- package/dist/client/api/getToken.d.ts +7 -5
- package/dist/client/api/getToken.d.ts.map +1 -1
- package/dist/client/api/index.d.ts +1 -0
- package/dist/client/api/index.d.ts.map +1 -1
- package/dist/client/api/renewal.d.ts +2 -0
- package/dist/client/api/renewal.d.ts.map +1 -0
- package/dist/client/api/setSessionState.d.ts +12 -0
- package/dist/client/api/setSessionState.d.ts.map +1 -0
- package/dist/client/api/terminateClient.d.ts +9 -0
- package/dist/client/api/terminateClient.d.ts.map +1 -0
- package/dist/client/api/tests/accessTokenExpiryWatcher.test.d.ts +2 -0
- package/dist/client/api/tests/accessTokenExpiryWatcher.test.d.ts.map +1 -0
- package/dist/client/api/tests/connectClient.test.d.ts +2 -0
- package/dist/client/api/tests/connectClient.test.d.ts.map +1 -0
- package/dist/client/api/tests/disconnectClient.test.d.ts +2 -0
- package/dist/client/api/tests/disconnectClient.test.d.ts.map +1 -0
- package/dist/client/api/tests/getToken.test.d.ts +2 -0
- package/dist/client/api/tests/getToken.test.d.ts.map +1 -0
- package/dist/client/api/tests/renewal.test.d.ts +2 -0
- package/dist/client/api/tests/renewal.test.d.ts.map +1 -0
- package/dist/client/api/tests/setSessionState.test.d.ts +2 -0
- package/dist/client/api/tests/setSessionState.test.d.ts.map +1 -0
- package/dist/client/api/tests/terminateClient.test.d.ts +2 -0
- package/dist/client/api/tests/terminateClient.test.d.ts.map +1 -0
- package/dist/client/events/index.d.ts +1 -0
- package/dist/client/events/index.d.ts.map +1 -1
- package/dist/client/events/onClientBanned.d.ts +1 -1
- package/dist/client/events/onClientBanned.d.ts.map +1 -1
- package/dist/client/events/onSessionStateChange.d.ts +17 -0
- package/dist/client/events/onSessionStateChange.d.ts.map +1 -0
- package/dist/client/events/onTokenExpired.d.ts +17 -0
- package/dist/client/events/onTokenExpired.d.ts.map +1 -0
- package/dist/client/events/onTokenTerminated.d.ts +11 -0
- package/dist/client/events/onTokenTerminated.d.ts.map +1 -0
- package/dist/client/events/tests/onSessionStateChange.test.d.ts +2 -0
- package/dist/client/events/tests/onSessionStateChange.test.d.ts.map +1 -0
- package/dist/client/events/tests/onTokenTerminated.test.d.ts +2 -0
- package/dist/client/events/tests/onTokenTerminated.test.d.ts.map +1 -0
- package/dist/client/utils/setClientToken.d.ts +19 -0
- package/dist/client/utils/setClientToken.d.ts.map +1 -0
- package/dist/comment/api/deleteComment.d.ts.map +1 -1
- package/dist/comment/api/getComment.d.ts.map +1 -1
- package/dist/comment/events/tests/onCommentDeleted.test.d.ts +2 -0
- package/dist/comment/events/tests/onCommentDeleted.test.d.ts.map +1 -0
- package/dist/comment/observers/index.d.ts +1 -0
- package/dist/comment/observers/index.d.ts.map +1 -1
- package/dist/comment/observers/liveComment.d.ts +21 -0
- package/dist/comment/observers/liveComment.d.ts.map +1 -0
- package/dist/comment/observers/tests/liveComment.test.d.ts +2 -0
- package/dist/comment/observers/tests/liveComment.test.d.ts.map +1 -0
- package/dist/community/api/queryCommunities.d.ts +1 -10
- package/dist/community/api/queryCommunities.d.ts.map +1 -1
- package/dist/community/events/index.d.ts +1 -0
- package/dist/community/events/index.d.ts.map +1 -1
- package/dist/community/events/onCommunityUserChanged.d.ts +17 -0
- package/dist/community/events/onCommunityUserChanged.d.ts.map +1 -0
- package/dist/community/events/utils.d.ts +1 -0
- package/dist/community/events/utils.d.ts.map +1 -1
- package/dist/community/observers/index.d.ts +1 -0
- package/dist/community/observers/index.d.ts.map +1 -1
- package/dist/community/observers/liveCommunities.d.ts +20 -0
- package/dist/community/observers/liveCommunities.d.ts.map +1 -0
- package/dist/community/observers/tests/liveCommunities.test.d.ts +2 -0
- package/dist/community/observers/tests/liveCommunities.test.d.ts.map +1 -0
- package/dist/core/events.d.ts +3 -3
- package/dist/core/events.d.ts.map +1 -1
- package/dist/core/query/sorting.d.ts +6 -0
- package/dist/core/query/sorting.d.ts.map +1 -1
- package/dist/core/subscription.d.ts.map +1 -1
- package/dist/core/transports/http.d.ts +0 -5
- package/dist/core/transports/http.d.ts.map +1 -1
- package/dist/file/api/test/createImage.test.d.ts +2 -0
- package/dist/file/api/test/createImage.test.d.ts.map +1 -0
- package/dist/file/api/test/createVideo.test.d.ts +2 -0
- package/dist/file/api/test/createVideo.test.d.ts.map +1 -0
- package/dist/index.cjs.js +944 -332
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +937 -332
- package/dist/index.umd.js +4 -4
- package/dist/message/observers/liveMessage.d.ts.map +1 -1
- package/dist/post/observers/index.d.ts +1 -0
- package/dist/post/observers/index.d.ts.map +1 -1
- package/dist/post/observers/livePost.d.ts +21 -0
- package/dist/post/observers/livePost.d.ts.map +1 -0
- package/dist/post/observers/tests/livePost.test.d.ts +2 -0
- package/dist/post/observers/tests/livePost.test.d.ts.map +1 -0
- package/dist/stream/api/tests/createStream.test.d.ts +2 -0
- package/dist/stream/api/tests/createStream.test.d.ts.map +1 -0
- package/dist/stream/api/tests/deleteStream.test.d.ts +2 -0
- package/dist/stream/api/tests/deleteStream.test.d.ts.map +1 -0
- package/dist/stream/api/tests/getStream.test.d.ts +2 -0
- package/dist/stream/api/tests/getStream.test.d.ts.map +1 -0
- package/dist/subChannel/api/tests/createSubChannel.test.d.ts +2 -0
- package/dist/subChannel/api/tests/createSubChannel.test.d.ts.map +1 -0
- package/dist/subChannel/api/tests/deleteSubChannel.test.d.ts +2 -0
- package/dist/subChannel/api/tests/deleteSubChannel.test.d.ts.map +1 -0
- package/dist/subChannel/api/tests/getSubChannel.test.d.ts +2 -0
- package/dist/subChannel/api/tests/getSubChannel.test.d.ts.map +1 -0
- package/dist/subChannel/api/tests/getSubChannels.test.d.ts +2 -0
- package/dist/subChannel/api/tests/getSubChannels.test.d.ts.map +1 -0
- package/dist/subChannel/api/tests/updateSubChannel.test.d.ts +2 -0
- package/dist/subChannel/api/tests/updateSubChannel.test.d.ts.map +1 -0
- package/dist/subChannel/observers/liveSubChannel.d.ts.map +1 -1
- package/dist/user/api/tests/updateUser.test.d.ts +2 -0
- package/dist/user/api/tests/updateUser.test.d.ts.map +1 -0
- package/dist/user/observers/liveUser.d.ts.map +1 -1
- package/dist/utils/constants.d.ts +2 -0
- package/dist/utils/constants.d.ts.map +1 -1
- package/dist/utils/liveObject.d.ts +2 -0
- package/dist/utils/liveObject.d.ts.map +1 -0
- package/dist/utils/tests/client.d.ts.map +1 -1
- package/dist/utils/tests/dummy/category.d.ts +64 -0
- package/dist/utils/tests/dummy/category.d.ts.map +1 -0
- package/dist/utils/tests/dummy/channel.d.ts +50 -0
- package/dist/utils/tests/dummy/channel.d.ts.map +1 -1
- package/dist/utils/tests/dummy/community.d.ts +132 -0
- package/dist/utils/tests/dummy/community.d.ts.map +1 -1
- package/dist/utils/tests/dummy/file.d.ts +3 -0
- package/dist/utils/tests/dummy/file.d.ts.map +1 -1
- package/dist/utils/tests/dummy/index.d.ts +3 -0
- package/dist/utils/tests/dummy/index.d.ts.map +1 -1
- package/dist/utils/tests/dummy/post.d.ts +2 -0
- package/dist/utils/tests/dummy/post.d.ts.map +1 -1
- package/dist/utils/tests/dummy/stream.d.ts +83 -0
- package/dist/utils/tests/dummy/stream.d.ts.map +1 -0
- package/dist/utils/tests/dummy/token.d.ts +11 -0
- package/dist/utils/tests/dummy/token.d.ts.map +1 -0
- package/dist/utils/tests/dummy/user.d.ts +18 -0
- package/dist/utils/tests/dummy/user.d.ts.map +1 -1
- package/dist/utils/tests/liveObject.test.d.ts +2 -0
- package/dist/utils/tests/liveObject.test.d.ts.map +1 -0
- package/package.json +4 -4
- package/src/@types/core/errors.ts +1 -0
- package/src/@types/core/events.ts +7 -0
- package/src/@types/domains/category.ts +13 -0
- package/src/@types/domains/client.ts +45 -1
- package/src/@types/domains/community.ts +25 -0
- package/src/@types/global.ts +19 -0
- package/src/category/api/queryCategories.ts +3 -5
- package/src/category/observers/index.ts +1 -0
- package/src/category/observers/liveCategories.ts +141 -0
- package/src/category/observers/tests/liveCategories.test.ts +147 -0
- package/src/channel/api/tests/createChannel.test.ts +30 -6
- package/src/channel/api/tests/getChannel.test.ts +3 -1
- package/src/channel/api/tests/getChannels.test.ts +97 -0
- package/src/channel/api/tests/joinChannel.test.ts +62 -3
- package/src/channel/api/tests/leaveChannel.test.ts +90 -0
- package/src/channel/api/tests/queryChannels.test.ts +38 -1
- package/src/channel/observers/liveChannel.ts +8 -80
- package/src/client/api/accessTokenExpiryWatcher.ts +85 -0
- package/src/client/api/activeUser.ts +1 -1
- package/src/client/api/connectClient.ts +105 -24
- package/src/client/api/createClient.ts +9 -1
- package/src/client/api/disconnectClient.ts +26 -2
- package/src/client/api/getToken.ts +6 -6
- package/src/client/api/index.ts +2 -0
- package/src/client/api/renewal.ts +74 -0
- package/src/client/api/setSessionState.ts +75 -0
- package/src/client/api/terminateClient.ts +20 -0
- package/src/client/api/tests/accessTokenExpiryWatcher.test.ts +132 -0
- package/src/client/api/tests/connectClient.test.ts +84 -0
- package/src/client/api/tests/createClient.test.ts +8 -0
- package/src/client/api/tests/disconnectClient.test.ts +78 -0
- package/src/client/api/tests/getToken.test.ts +36 -0
- package/src/client/api/tests/renewal.test.ts +67 -0
- package/src/client/api/tests/setSessionState.test.ts +62 -0
- package/src/client/api/tests/terminateClient.test.ts +29 -0
- package/src/client/events/index.ts +2 -0
- package/src/client/events/onClientBanned.ts +12 -5
- package/src/client/events/onSessionStateChange.ts +31 -0
- package/src/client/events/onTokenExpired.ts +26 -0
- package/src/client/events/onTokenTerminated.ts +20 -0
- package/src/client/events/tests/onSessionStateChange.test.ts +37 -0
- package/src/client/events/tests/onTokenTerminated.test.ts +37 -0
- package/src/client/tests/connectClient.test.ts +6 -1
- package/src/client/utils/setClientToken.ts +39 -0
- package/src/comment/api/deleteComment.ts +5 -5
- package/src/comment/api/getComment.ts +8 -3
- package/src/comment/events/tests/onCommentDeleted.test.ts +27 -0
- package/src/comment/observers/index.ts +1 -0
- package/src/comment/observers/liveComment.ts +43 -0
- package/src/comment/observers/tests/liveComment.test.ts +95 -0
- package/src/community/api/queryCommunities.ts +3 -10
- package/src/community/api/test/addCommunityMember.test.ts +14 -2
- package/src/community/api/test/joinCommunity.test.ts +14 -2
- package/src/community/api/test/leaveCommunity.test.ts +11 -1
- package/src/community/api/test/removeCommunityMembers.test.ts +11 -1
- package/src/community/events/index.ts +1 -0
- package/src/community/events/onCommunityUserChanged.ts +20 -0
- package/src/community/events/test/onCommunityJoined.test.ts +1 -1
- package/src/community/events/test/onCommunityUserAdded.test.ts +1 -1
- package/src/community/events/test/onCommunityUserBanned.test.ts +1 -1
- package/src/community/events/test/onCommunityUserUnbaned.test.ts +1 -1
- package/src/community/events/test/utils.test.ts +52 -3
- package/src/community/events/utils.ts +49 -0
- package/src/community/observers/index.ts +1 -0
- package/src/community/observers/liveCommunities.ts +188 -0
- package/src/community/observers/tests/liveCommunities.test.ts +284 -0
- package/src/core/events.ts +5 -3
- package/src/core/query/sorting.ts +8 -0
- package/src/core/subscription.ts +3 -1
- package/src/core/transports/http.ts +52 -13
- package/src/core/transports/mqtt.ts +1 -1
- package/src/core/transports/test/http.test.ts +49 -60
- package/src/external/api/createUserToken.ts +2 -2
- package/src/file/api/createFile.ts +1 -1
- package/src/file/api/createImage.ts +1 -1
- package/src/file/api/createVideo.ts +1 -1
- package/src/file/api/test/createImage.test.ts +69 -0
- package/src/file/api/test/createVideo.test.ts +81 -0
- package/src/index.ts +1 -0
- package/src/message/observers/liveMessage.ts +11 -83
- package/src/message/tests/observers/liveMessage.test.ts +1 -143
- package/src/post/observers/index.ts +1 -0
- package/src/post/observers/livePost.ts +47 -0
- package/src/post/observers/tests/livePost.test.ts +97 -0
- package/src/stream/api/tests/createStream.test.ts +22 -0
- package/src/stream/api/tests/deleteStream.test.ts +50 -0
- package/src/stream/api/tests/getStream.test.ts +23 -0
- package/src/subChannel/api/tests/createSubChannel.test.ts +110 -0
- package/src/subChannel/api/tests/deleteSubChannel.test.ts +112 -0
- package/src/subChannel/api/tests/getSubChannel.test.ts +97 -0
- package/src/subChannel/api/tests/getSubChannels.test.ts +97 -0
- package/src/subChannel/api/tests/updateSubChannel.test.ts +86 -0
- package/src/subChannel/observers/liveSubChannel.ts +6 -56
- package/src/subChannel/observers/tests/liveSubChannel.test.ts +0 -82
- package/src/user/api/tests/updateUser.test.ts +60 -0
- package/src/user/observers/liveUser.ts +9 -61
- package/src/user/tests/observers/liveUser.test.ts +1 -154
- package/src/utils/constants.ts +2 -0
- package/src/utils/liveObject.ts +86 -0
- package/src/utils/tests/client.ts +18 -2
- package/src/utils/tests/dummy/category.ts +57 -0
- package/src/utils/tests/dummy/channel.ts +51 -1
- package/src/utils/tests/dummy/community.ts +94 -0
- package/src/utils/tests/dummy/file.ts +32 -0
- package/src/utils/tests/dummy/index.ts +4 -0
- package/src/utils/tests/dummy/post.ts +56 -45
- package/src/utils/tests/dummy/stream.ts +86 -0
- package/src/utils/tests/dummy/token.ts +12 -0
- package/src/utils/tests/dummy/user.ts +21 -0
- package/src/utils/tests/liveObject.test.ts +172 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"liveMessage.d.ts","sourceRoot":"","sources":["../../../src/message/observers/liveMessage.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"liveMessage.d.ts","sourceRoot":"","sources":["../../../src/message/observers/liveMessage.ts"],"names":[],"mappings":"AAaA;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,WAAW,cACX,MAAM,OAAO,CAAC,WAAW,CAAC,YAC3B,MAAM,kBAAkB,CAAC,MAAM,OAAO,CAAC,KAChD,MAAM,YAWR,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/post/observers/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/post/observers/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ```js
|
|
3
|
+
* import { livePost } from '@amityco/ts-sdk';
|
|
4
|
+
*
|
|
5
|
+
* let post;
|
|
6
|
+
*
|
|
7
|
+
* const unsubscribe = livePost(postId, response => {
|
|
8
|
+
* post = response.data;
|
|
9
|
+
* });
|
|
10
|
+
* ```
|
|
11
|
+
*
|
|
12
|
+
* Observe all mutation on a given {@link Amity.Post}
|
|
13
|
+
*
|
|
14
|
+
* @param postId the ID of the message to observe
|
|
15
|
+
* @param callback the function to call when new data are available
|
|
16
|
+
* @returns An {@link Amity.Unsubscriber} function to run when willing to stop observing the sub channel
|
|
17
|
+
*
|
|
18
|
+
* @category Post Live Object
|
|
19
|
+
*/
|
|
20
|
+
export declare const livePost: (postId: Amity.Post['postId'], callback: Amity.LiveObjectCallback<Amity.Post>) => Amity.Unsubscriber;
|
|
21
|
+
//# sourceMappingURL=livePost.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"livePost.d.ts","sourceRoot":"","sources":["../../../src/post/observers/livePost.ts"],"names":[],"mappings":"AAaA;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,QAAQ,WACX,MAAM,IAAI,CAAC,QAAQ,CAAC,YAClB,MAAM,kBAAkB,CAAC,MAAM,IAAI,CAAC,KAC7C,MAAM,YAWR,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"livePost.test.d.ts","sourceRoot":"","sources":["../../../../src/post/observers/tests/livePost.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createStream.test.d.ts","sourceRoot":"","sources":["../../../../src/stream/api/tests/createStream.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deleteStream.test.d.ts","sourceRoot":"","sources":["../../../../src/stream/api/tests/deleteStream.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getStream.test.d.ts","sourceRoot":"","sources":["../../../../src/stream/api/tests/getStream.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createSubChannel.test.d.ts","sourceRoot":"","sources":["../../../../src/subChannel/api/tests/createSubChannel.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deleteSubChannel.test.d.ts","sourceRoot":"","sources":["../../../../src/subChannel/api/tests/deleteSubChannel.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSubChannel.test.d.ts","sourceRoot":"","sources":["../../../../src/subChannel/api/tests/getSubChannel.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getSubChannels.test.d.ts","sourceRoot":"","sources":["../../../../src/subChannel/api/tests/getSubChannels.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateSubChannel.test.d.ts","sourceRoot":"","sources":["../../../../src/subChannel/api/tests/updateSubChannel.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"liveSubChannel.d.ts","sourceRoot":"","sources":["../../../src/subChannel/observers/liveSubChannel.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"liveSubChannel.d.ts","sourceRoot":"","sources":["../../../src/subChannel/observers/liveSubChannel.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,cAAc,iBACX,MAAM,UAAU,CAAC,cAAc,CAAC,YACpC,MAAM,kBAAkB,CAAC,MAAM,UAAU,CAAC,KACnD,MAAM,YAMR,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateUser.test.d.ts","sourceRoot":"","sources":["../../../../src/user/api/tests/updateUser.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"liveUser.d.ts","sourceRoot":"","sources":["../../../src/user/observers/liveUser.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"liveUser.d.ts","sourceRoot":"","sources":["../../../src/user/observers/liveUser.ts"],"names":[],"mappings":"AAWA;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,QAAQ,WACX,MAAM,IAAI,CAAC,QAAQ,CAAC,YAClB,MAAM,kBAAkB,CAAC,MAAM,IAAI,CAAC,KAC7C,MAAM,YASR,CAAC"}
|
|
@@ -4,4 +4,6 @@ export declare const ENABLE_CACHE_MESSAGE = "For using Live Collection feature y
|
|
|
4
4
|
export declare const LIVE_OBJECT_ENABLE_CACHE_MESSAGE = "For using Live Object feature you need to enable Cache!";
|
|
5
5
|
export declare const UNSYNCED_OBJECT_CACHED_AT_MESSAGE = "Observing unsynced object is not supported by Live Object.";
|
|
6
6
|
export declare const UNSYNCED_OBJECT_CACHED_AT_VALUE = -5;
|
|
7
|
+
export declare const MINUTE: number;
|
|
8
|
+
export declare const ACCESS_TOKEN_WATCHER_INTERVAL: number;
|
|
7
9
|
//# sourceMappingURL=constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/utils/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mCAAmC,IAAI,CAAC;AACrD,eAAO,MAAM,iCAAiC,EAAE,KAAK,CAAC,WAAiC,CAAC;AACxF,eAAO,MAAM,oBAAoB,gEAAgE,CAAC;AAClG,eAAO,MAAM,gCAAgC,4DACc,CAAC;AAC5D,eAAO,MAAM,iCAAiC,+DACgB,CAAC;AAC/D,eAAO,MAAM,+BAA+B,KAAK,CAAC"}
|
|
1
|
+
{"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/utils/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,mCAAmC,IAAI,CAAC;AACrD,eAAO,MAAM,iCAAiC,EAAE,KAAK,CAAC,WAAiC,CAAC;AACxF,eAAO,MAAM,oBAAoB,gEAAgE,CAAC;AAClG,eAAO,MAAM,gCAAgC,4DACc,CAAC;AAC5D,eAAO,MAAM,iCAAiC,+DACgB,CAAC;AAC/D,eAAO,MAAM,+BAA+B,KAAK,CAAC;AAClD,eAAO,MAAM,MAAM,QAAY,CAAC;AAChC,eAAO,MAAM,6BAA6B,QAAc,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const liveObject: <T extends Amity.User | Amity.File<any> | Amity.Role | Amity.Channel<any> | Amity.SubChannel | Amity.Membership<"channel"> | Amity.Message<any> | Amity.Community | Amity.Category | Amity.Membership<"community"> | Amity.Post<any> | Amity.Comment<any> | Amity.Poll | Amity.Stream | Amity.FollowStatus, K extends keyof T>(id: T[K], callback: Amity.LiveObjectCallback<T>, key: K, fetcher: (id: T[K]) => Promise<Amity.Cached<T>>, eventHandlers: ((callback: Amity.Listener<T>) => Amity.Unsubscriber)[]) => Amity.Unsubscriber;
|
|
2
|
+
//# sourceMappingURL=liveObject.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"liveObject.d.ts","sourceRoot":"","sources":["../../src/utils/liveObject.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,UAAU,4dAQiC,MAAM,YAAY,QACvE,MAAM,YAkER,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/utils/tests/client.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../src/utils/tests/client.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,MAAM,cAA4B,CAAC;AAKhD,eAAO,MAAM,aAAa,qBAuBzB,CAAC;AAEF,eAAO,MAAM,gBAAgB,qBAE5B,CAAC;;AAEF,wBAAkB"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
export declare const category11: {
|
|
2
|
+
name: string;
|
|
3
|
+
updatedAt: string;
|
|
4
|
+
createdAt: string;
|
|
5
|
+
isDeleted: boolean;
|
|
6
|
+
categoryId: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const category12: {
|
|
9
|
+
name: string;
|
|
10
|
+
updatedAt: string;
|
|
11
|
+
createdAt: string;
|
|
12
|
+
isDeleted: boolean;
|
|
13
|
+
categoryId: string;
|
|
14
|
+
};
|
|
15
|
+
export declare const category13: {
|
|
16
|
+
name: string;
|
|
17
|
+
updatedAt: string;
|
|
18
|
+
createdAt: string;
|
|
19
|
+
isDeleted: boolean;
|
|
20
|
+
categoryId: string;
|
|
21
|
+
};
|
|
22
|
+
export declare const category21: {
|
|
23
|
+
name: string;
|
|
24
|
+
updatedAt: string;
|
|
25
|
+
createdAt: string;
|
|
26
|
+
isDeleted: boolean;
|
|
27
|
+
categoryId: string;
|
|
28
|
+
};
|
|
29
|
+
export declare const category22: {
|
|
30
|
+
name: string;
|
|
31
|
+
updatedAt: string;
|
|
32
|
+
createdAt: string;
|
|
33
|
+
isDeleted: boolean;
|
|
34
|
+
categoryId: string;
|
|
35
|
+
};
|
|
36
|
+
export declare const categoryQueryResponse: {
|
|
37
|
+
data: {
|
|
38
|
+
categories: {
|
|
39
|
+
name: string;
|
|
40
|
+
updatedAt: string;
|
|
41
|
+
createdAt: string;
|
|
42
|
+
isDeleted: boolean;
|
|
43
|
+
categoryId: string;
|
|
44
|
+
}[];
|
|
45
|
+
paging: {
|
|
46
|
+
next: string;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
export declare const categoryQueryResponsePage2: {
|
|
51
|
+
data: {
|
|
52
|
+
categories: {
|
|
53
|
+
name: string;
|
|
54
|
+
updatedAt: string;
|
|
55
|
+
createdAt: string;
|
|
56
|
+
isDeleted: boolean;
|
|
57
|
+
categoryId: string;
|
|
58
|
+
}[];
|
|
59
|
+
paging: {
|
|
60
|
+
next: string;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
//# sourceMappingURL=category.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"category.d.ts","sourceRoot":"","sources":["../../../../src/utils/tests/dummy/category.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,UAAU;;;;;;CAMtB,CAAC;AAEF,eAAO,MAAM,UAAU;;;;;;CAMtB,CAAC;AAEF,eAAO,MAAM,UAAU;;;;;;CAMtB,CAAC;AAEF,eAAO,MAAM,UAAU;;;;;;CAMtB,CAAC;AAEF,eAAO,MAAM,UAAU;;;;;;CAMtB,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;CAOjC,CAAC;AAEF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;CAOtC,CAAC"}
|
|
@@ -6,6 +6,8 @@ export declare const mockPage: {
|
|
|
6
6
|
};
|
|
7
7
|
};
|
|
8
8
|
export declare const channelRaw1: Amity.ChannelRaw;
|
|
9
|
+
export declare const channelRawLive1: Amity.ChannelRaw;
|
|
10
|
+
export declare const channelRawConversation1: Amity.ChannelRaw;
|
|
9
11
|
export declare const channelRaw2: Amity.ChannelRaw;
|
|
10
12
|
export declare const channelRaw3: Amity.ChannelRaw;
|
|
11
13
|
export declare const channel1: Amity.Channel;
|
|
@@ -35,6 +37,18 @@ export declare const channelQueryResponse: {
|
|
|
35
37
|
users: never[];
|
|
36
38
|
};
|
|
37
39
|
};
|
|
40
|
+
export declare const getChannelsResponse: {
|
|
41
|
+
data: {
|
|
42
|
+
paging: {
|
|
43
|
+
previous: string;
|
|
44
|
+
next: string;
|
|
45
|
+
};
|
|
46
|
+
channels: Amity.ChannelRaw<any>[];
|
|
47
|
+
channelUsers: never[];
|
|
48
|
+
files: never[];
|
|
49
|
+
users: never[];
|
|
50
|
+
};
|
|
51
|
+
};
|
|
38
52
|
export declare const channelQueryResponsePage2: {
|
|
39
53
|
data: {
|
|
40
54
|
paging: {
|
|
@@ -47,6 +61,30 @@ export declare const channelQueryResponsePage2: {
|
|
|
47
61
|
users: never[];
|
|
48
62
|
};
|
|
49
63
|
};
|
|
64
|
+
export declare const channelTagQueryResponse: {
|
|
65
|
+
data: {
|
|
66
|
+
paging: {
|
|
67
|
+
previous: string;
|
|
68
|
+
next: string;
|
|
69
|
+
};
|
|
70
|
+
channels: Amity.ChannelRaw<any>[];
|
|
71
|
+
channelUsers: never[];
|
|
72
|
+
files: never[];
|
|
73
|
+
users: never[];
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
export declare const channelExcludeTagQueryResponse: {
|
|
77
|
+
data: {
|
|
78
|
+
paging: {
|
|
79
|
+
previous: string;
|
|
80
|
+
next: string;
|
|
81
|
+
};
|
|
82
|
+
channels: Amity.ChannelRaw<any>[];
|
|
83
|
+
channelUsers: never[];
|
|
84
|
+
files: never[];
|
|
85
|
+
users: never[];
|
|
86
|
+
};
|
|
87
|
+
};
|
|
50
88
|
export declare const channelUserQueryResponse: {
|
|
51
89
|
data: {
|
|
52
90
|
paging: {
|
|
@@ -102,4 +140,16 @@ export declare const channelPayload: {
|
|
|
102
140
|
users: Amity.User[];
|
|
103
141
|
files: Amity.File<"image">[];
|
|
104
142
|
};
|
|
143
|
+
export declare const liveChannelPayload: {
|
|
144
|
+
channels: Amity.ChannelRaw<any>[];
|
|
145
|
+
channelUsers: Amity.MembershipRaw<"channel", false>[];
|
|
146
|
+
users: Amity.User[];
|
|
147
|
+
files: Amity.File<"image">[];
|
|
148
|
+
};
|
|
149
|
+
export declare const conversationChannelPayload: {
|
|
150
|
+
channels: Amity.ChannelRaw<any>[];
|
|
151
|
+
channelUsers: Amity.MembershipRaw<"channel", false>[];
|
|
152
|
+
users: Amity.User[];
|
|
153
|
+
files: Amity.File<"image">[];
|
|
154
|
+
};
|
|
105
155
|
//# sourceMappingURL=channel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"channel.d.ts","sourceRoot":"","sources":["../../../../src/utils/tests/dummy/channel.ts"],"names":[],"mappings":"AAGA,wBAAgB,kBAAkB,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC,UAAU,CAevF;AA+BD,eAAO,MAAM,QAAQ;;;;;CAKpB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"channel.d.ts","sourceRoot":"","sources":["../../../../src/utils/tests/dummy/channel.ts"],"names":[],"mappings":"AAGA,wBAAgB,kBAAkB,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,UAAU,CAAC,GAAG,KAAK,CAAC,UAAU,CAevF;AA+BD,eAAO,MAAM,QAAQ;;;;;CAKpB,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,UAAsD,CAAC;AAEvF,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,UAAiD,CAAC;AAEtF,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,UAE1C,CAAC;AAEH,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,UAI9B,CAAC;AAEH,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,UAE9B,CAAC;AAEH,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,OAK3B,CAAC;AAEH,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,OAK3B,CAAC;AAEH,eAAO,MAAM,cAAc,uCAA2B,CAAC;AACvD,eAAO,MAAM,WAAW,6BAAoD,CAAC;AAE7E,eAAO,MAAM,eAAe,uCAI1B,CAAC;AACH,eAAO,MAAM,YAAY,6BAAqD,CAAC;AAE/E,eAAO,MAAM,eAAe,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;AAGF,eAAO,MAAM,cAAc;;;;;CAK1B,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;CAK9B,CAAC;AAEF,eAAO,MAAM,0BAA0B;;;;;CAKtC,CAAC"}
|
|
@@ -33,4 +33,136 @@ export declare const communityUserModel: {
|
|
|
33
33
|
roles: string[];
|
|
34
34
|
permissions: Amity.Permission[];
|
|
35
35
|
}[];
|
|
36
|
+
export declare const communityRaw1: {
|
|
37
|
+
path: string;
|
|
38
|
+
isOfficial: boolean;
|
|
39
|
+
isPublic: boolean;
|
|
40
|
+
onlyAdminCanPost: boolean;
|
|
41
|
+
postsCount: number;
|
|
42
|
+
membersCount: number;
|
|
43
|
+
moderatorMemberCount: number;
|
|
44
|
+
updatedAt: string;
|
|
45
|
+
createdAt: string;
|
|
46
|
+
isDeleted: boolean;
|
|
47
|
+
needApprovalOnPostCreation: boolean;
|
|
48
|
+
displayName: string;
|
|
49
|
+
tags: string[];
|
|
50
|
+
metadata: {};
|
|
51
|
+
hasFlaggedComment: boolean;
|
|
52
|
+
hasFlaggedPost: boolean;
|
|
53
|
+
communityId: string;
|
|
54
|
+
channelId: string;
|
|
55
|
+
userId: string;
|
|
56
|
+
isJoined: boolean;
|
|
57
|
+
avatarFileId: string;
|
|
58
|
+
categoryIds: string[];
|
|
59
|
+
};
|
|
60
|
+
export declare const communityRaw2: {
|
|
61
|
+
path: string;
|
|
62
|
+
isOfficial: boolean;
|
|
63
|
+
isPublic: boolean;
|
|
64
|
+
onlyAdminCanPost: boolean;
|
|
65
|
+
postsCount: number;
|
|
66
|
+
membersCount: number;
|
|
67
|
+
moderatorMemberCount: number;
|
|
68
|
+
updatedAt: string;
|
|
69
|
+
createdAt: string;
|
|
70
|
+
isDeleted: boolean;
|
|
71
|
+
needApprovalOnPostCreation: boolean;
|
|
72
|
+
displayName: string;
|
|
73
|
+
tags: never[];
|
|
74
|
+
metadata: {};
|
|
75
|
+
hasFlaggedComment: boolean;
|
|
76
|
+
hasFlaggedPost: boolean;
|
|
77
|
+
communityId: string;
|
|
78
|
+
channelId: string;
|
|
79
|
+
userId: string;
|
|
80
|
+
isJoined: boolean;
|
|
81
|
+
avatarFileId: string;
|
|
82
|
+
categoryIds: never[];
|
|
83
|
+
};
|
|
84
|
+
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
|
+
};
|
|
125
|
+
};
|
|
126
|
+
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
|
+
};
|
|
167
|
+
};
|
|
36
168
|
//# sourceMappingURL=community.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"community.d.ts","sourceRoot":"","sources":["../../../../src/utils/tests/dummy/community.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,SAajC,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,SAoB/B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,SAI/B,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,aAAa,CAAC,WAAW,CAa5D,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,aAAa,CAAC,WAAW,CAO5D,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,aAAa,CAAC,WAAW,CAK5D,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,gBAKpC,CAAC;AAEF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;CAUtC,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;GAG9B,CAAC"}
|
|
1
|
+
{"version":3,"file":"community.d.ts","sourceRoot":"","sources":["../../../../src/utils/tests/dummy/community.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,SAajC,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,SAoB/B,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,SAI/B,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,aAAa,CAAC,WAAW,CAa5D,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,aAAa,CAAC,WAAW,CAO5D,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,aAAa,CAAC,WAAW,CAK5D,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,gBAKpC,CAAC;AAEF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;CAUtC,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;GAG9B,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;CAuBzB,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;CAuBzB,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoBlC,CAAC;AAEF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoBvC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../../../../src/utils/tests/dummy/file.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"file.d.ts","sourceRoot":"","sources":["../../../../src/utils/tests/dummy/file.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,OAAO,CAmBtC,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,OAAO,CAetC,CAAC;AAEF,eAAO,MAAM,kBAAkB,gBAK9B,CAAC;AAEF,eAAO,MAAM,mBAAmB,gBAI/B,CAAC"}
|
|
@@ -13,6 +13,9 @@ export * from './reaction';
|
|
|
13
13
|
export * from './channel';
|
|
14
14
|
export * from './subChannel';
|
|
15
15
|
export * from './message';
|
|
16
|
+
export * from './token';
|
|
16
17
|
export * from './member';
|
|
17
18
|
export * from './community';
|
|
19
|
+
export * from './category';
|
|
20
|
+
export * from './stream';
|
|
18
21
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utils/tests/dummy/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI,QAA2B,CAAC;AAC7C,eAAO,MAAM,mBAAmB;;;CAAiC,CAAC;AAElE,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AAEvB,cAAc,QAAQ,CAAC;AAEvB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAE3B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAE7B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utils/tests/dummy/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,IAAI,QAA2B,CAAC;AAC7C,eAAO,MAAM,mBAAmB;;;CAAiC,CAAC;AAElE,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AAEvB,cAAc,QAAQ,CAAC;AAEvB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAE3B,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAE7B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAE3B,cAAc,UAAU,CAAC"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export declare function generatePost(params?: Partial<Amity.Post>): Amity.Post;
|
|
2
|
+
export declare function generateComment(params?: Partial<Amity.Comment>): Amity.Comment;
|
|
1
3
|
export declare const post11: Amity.Post;
|
|
2
4
|
export declare const comment11: Amity.Comment;
|
|
3
5
|
export declare const post12: Amity.Post;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"post.d.ts","sourceRoot":"","sources":["../../../../src/utils/tests/dummy/post.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"post.d.ts","sourceRoot":"","sources":["../../../../src/utils/tests/dummy/post.ts"],"names":[],"mappings":"AAGA,wBAAgB,YAAY,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,IAAI,CAwBrE;AAED,wBAAgB,eAAe,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,KAAK,CAAC,OAAO,CA0B9E;AAED,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,IAAqB,CAAC;AAEjD,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,OAA2B,CAAC;AAE1D,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,IAG1B,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,IAG1B,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,IAM1B,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,IAO1B,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,IAI1B,CAAC;AAEF,eAAO,MAAM,KAAK;;;;;;CAMjB,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,cAGlC,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,WAM/B,CAAC;AAIF,eAAO,MAAM,iBAAiB;;;;;;;;;;;CAS7B,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;CAQlC,CAAC"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
export declare const streamResponse: {
|
|
2
|
+
data: {
|
|
3
|
+
videoStreamings: {
|
|
4
|
+
streamId: string;
|
|
5
|
+
userId: string;
|
|
6
|
+
thumbnailFileId: string;
|
|
7
|
+
title: string;
|
|
8
|
+
status: string;
|
|
9
|
+
isLive: boolean;
|
|
10
|
+
isDeleted: boolean;
|
|
11
|
+
description: string;
|
|
12
|
+
platform: {
|
|
13
|
+
name: string;
|
|
14
|
+
version: string;
|
|
15
|
+
};
|
|
16
|
+
startedAt: string;
|
|
17
|
+
endedAt: string;
|
|
18
|
+
createdAt: string;
|
|
19
|
+
updatedAt: string;
|
|
20
|
+
metadata: {};
|
|
21
|
+
resolution: string;
|
|
22
|
+
streamerUrl: {
|
|
23
|
+
url: string;
|
|
24
|
+
components: {
|
|
25
|
+
origin: string;
|
|
26
|
+
appName: string;
|
|
27
|
+
streamName: string;
|
|
28
|
+
query: string;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
recordings: {
|
|
32
|
+
flv: {
|
|
33
|
+
url: string;
|
|
34
|
+
duration: number;
|
|
35
|
+
startTime: number;
|
|
36
|
+
stopTime: number;
|
|
37
|
+
};
|
|
38
|
+
mp4: {
|
|
39
|
+
url: string;
|
|
40
|
+
duration: number;
|
|
41
|
+
startTime: number;
|
|
42
|
+
stopTime: number;
|
|
43
|
+
};
|
|
44
|
+
m3u8: {
|
|
45
|
+
url: string;
|
|
46
|
+
duration: number;
|
|
47
|
+
startTime: number;
|
|
48
|
+
stopTime: number;
|
|
49
|
+
};
|
|
50
|
+
}[];
|
|
51
|
+
watcherUrl: {
|
|
52
|
+
flv: {
|
|
53
|
+
url: string;
|
|
54
|
+
components: {
|
|
55
|
+
origin: string;
|
|
56
|
+
appName: string;
|
|
57
|
+
streamName: string;
|
|
58
|
+
query: string;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
hls: {
|
|
62
|
+
url: string;
|
|
63
|
+
components: {
|
|
64
|
+
origin: string;
|
|
65
|
+
appName: string;
|
|
66
|
+
streamName: string;
|
|
67
|
+
query: string;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
rtmp: {
|
|
71
|
+
url: string;
|
|
72
|
+
components: {
|
|
73
|
+
origin: string;
|
|
74
|
+
appName: string;
|
|
75
|
+
streamName: string;
|
|
76
|
+
query: string;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
}[];
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
//# sourceMappingURL=stream.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stream.d.ts","sourceRoot":"","sources":["../../../../src/utils/tests/dummy/stream.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqF1B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"token.d.ts","sourceRoot":"","sources":["../../../../src/utils/tests/dummy/token.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe;;;;;;;;;CAS3B,CAAC"}
|
|
@@ -12,6 +12,24 @@ export declare const userQueryResponse: {
|
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
|
+
export declare const userUpdateResponse: {
|
|
16
|
+
data: {
|
|
17
|
+
users: {
|
|
18
|
+
isDeleted: boolean;
|
|
19
|
+
displayName: string;
|
|
20
|
+
userId: string;
|
|
21
|
+
metadata: {};
|
|
22
|
+
roles: never[];
|
|
23
|
+
permissions: never[];
|
|
24
|
+
flagCount: number;
|
|
25
|
+
hashFlag: null;
|
|
26
|
+
avatarCustomUrl: string;
|
|
27
|
+
avatarFileId: null;
|
|
28
|
+
isGlobalBan: boolean;
|
|
29
|
+
}[];
|
|
30
|
+
files: never[];
|
|
31
|
+
};
|
|
32
|
+
};
|
|
15
33
|
export declare const users: Amity.User[];
|
|
16
34
|
export declare const userPayload: Amity.UserPayload;
|
|
17
35
|
//# sourceMappingURL=user.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../../src/utils/tests/dummy/user.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,IAS1B,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,IAG1B,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,IAG1B,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,IAG1B,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;;;;;CAS7B,CAAC;AACF,eAAO,MAAM,KAAK,cAAmC,CAAC;AAGtD,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,WAG/B,CAAC"}
|
|
1
|
+
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../../src/utils/tests/dummy/user.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,IAS1B,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,IAG1B,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,IAG1B,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,IAG1B,CAAC;AAEF,eAAO,MAAM,iBAAiB;;;;;;;;;CAS7B,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;CAmB9B,CAAC;AACF,eAAO,MAAM,KAAK,cAAmC,CAAC;AAGtD,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,WAG/B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"liveObject.test.d.ts","sourceRoot":"","sources":["../../../src/utils/tests/liveObject.test.ts"],"names":[],"mappings":""}
|