@amityco/ts-sdk 0.0.1-0fe6b63.0 → 0.0.1-10aaba6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/@types/core/cache.d.ts +1 -1
- package/dist/@types/core/cache.d.ts.map +1 -1
- package/dist/@types/core/events.d.ts +1 -9
- package/dist/@types/core/events.d.ts.map +1 -1
- package/dist/@types/core/paging.d.ts +10 -10
- package/dist/@types/core/paging.d.ts.map +1 -1
- package/dist/@types/core/query.d.ts +5 -4
- package/dist/@types/core/query.d.ts.map +1 -1
- package/dist/@types/domains/user.d.ts +1 -0
- package/dist/@types/domains/user.d.ts.map +1 -1
- package/dist/@types/index.d.ts +1 -0
- package/dist/@types/index.d.ts.map +1 -1
- package/dist/category/api/queryCategories.d.ts +3 -3
- package/dist/channel/api/createChannel.d.ts +1 -1
- package/dist/channel/api/queryChannels.d.ts +1 -1
- package/dist/client/api/createClient.d.ts +3 -3
- package/dist/client/api/createClient.d.ts.map +1 -1
- package/dist/client/utils/endpoints.d.ts +12 -0
- package/dist/client/utils/endpoints.d.ts.map +1 -0
- package/dist/comment/api/createComment.d.ts.map +1 -1
- package/dist/comment/api/updateComment.d.ts.map +1 -1
- package/dist/comment/events/onCommentReactionAdded.d.ts.map +1 -1
- package/dist/comment/events/onCommentReactionRemoved.d.ts.map +1 -1
- package/dist/comment/events/utils.d.ts +0 -1
- package/dist/comment/events/utils.d.ts.map +1 -1
- package/dist/community/api/addCommunityMembers.d.ts.map +1 -1
- package/dist/community/api/addCommunityMembersRole.d.ts.map +1 -1
- package/dist/community/api/createCommunity.d.ts.map +1 -1
- package/dist/community/api/deleteCommunity.d.ts.map +1 -1
- package/dist/community/api/getRecommendedCommunities.d.ts +32 -0
- package/dist/community/api/getRecommendedCommunities.d.ts.map +1 -0
- package/dist/community/api/getTopTrendingCommunities.d.ts +32 -0
- package/dist/community/api/getTopTrendingCommunities.d.ts.map +1 -0
- package/dist/community/api/index.d.ts +2 -0
- package/dist/community/api/index.d.ts.map +1 -1
- package/dist/community/api/joinCommunity.d.ts.map +1 -1
- package/dist/community/api/leaveCommunity.d.ts.map +1 -1
- package/dist/community/api/queryCommunities.d.ts +1 -1
- package/dist/community/api/removeCommunityMembers.d.ts.map +1 -1
- package/dist/community/api/removeCommunityMembersRole.d.ts.map +1 -1
- package/dist/community/api/updateCommunity.d.ts.map +1 -1
- package/dist/community/events/utils.d.ts +1 -2
- package/dist/community/events/utils.d.ts.map +1 -1
- package/dist/core/events.d.ts +3 -6
- package/dist/core/events.d.ts.map +1 -1
- package/dist/core/query/paging.d.ts +3 -3
- package/dist/core/query/paging.d.ts.map +1 -1
- package/dist/core/subscription.d.ts.map +1 -1
- package/dist/feed/api/queryGlobalFeed.d.ts +1 -1
- package/dist/follow/events/onFollowInfoUpdated.d.ts.map +1 -1
- package/dist/follow/events/utils.d.ts +0 -1
- package/dist/follow/events/utils.d.ts.map +1 -1
- package/dist/follow/observers/observeFollowInfo.d.ts +1 -1
- package/dist/follow/observers/observeFollowInfo.d.ts.map +1 -1
- package/dist/index.cjs.js +3118 -3029
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +3116 -3030
- package/dist/index.umd.js +6 -5
- package/dist/message/api/createMessage.d.ts +1 -1
- package/dist/message/api/createMessage.d.ts.map +1 -1
- package/dist/post/api/deletePost.d.ts.map +1 -1
- package/dist/post/api/queryPosts.d.ts +2 -2
- package/dist/post/api/queryPosts.d.ts.map +1 -1
- package/dist/post/events/onPostReactionAdded.d.ts.map +1 -1
- package/dist/post/events/onPostReactionRemoved.d.ts.map +1 -1
- package/dist/post/events/utils.d.ts +0 -1
- package/dist/post/events/utils.d.ts.map +1 -1
- package/dist/reaction/utils/preparePayloadForCache.d.ts +1 -1
- package/dist/reaction/utils/preparePayloadForCache.d.ts.map +1 -1
- package/dist/report/api/createReport.d.ts.map +1 -1
- package/dist/report/api/deleteReport.d.ts.map +1 -1
- package/dist/role/api/queryRoles.d.ts +1 -1
- package/dist/stream/api/queryStreams.d.ts +1 -1
- package/dist/user/api/updateUser.d.ts +1 -1
- package/dist/user/api/updateUser.d.ts.map +1 -1
- package/dist/user/events/utils.d.ts +0 -1
- package/dist/user/events/utils.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/@types/core/cache.ts +1 -1
- package/src/@types/core/events.ts +1 -11
- package/src/@types/core/paging.ts +9 -9
- package/src/@types/core/query.ts +8 -4
- package/src/@types/domains/user.ts +1 -0
- package/src/@types/index.ts +1 -0
- package/src/channel/api/createChannel.ts +1 -1
- package/src/client/api/createClient.ts +7 -7
- package/src/client/utils/endpoints.ts +14 -0
- package/src/comment/api/createComment.ts +5 -4
- package/src/comment/api/deleteComment.ts +3 -3
- package/src/comment/api/updateComment.ts +4 -3
- package/src/comment/events/onCommentReactionAdded.ts +32 -3
- package/src/comment/events/onCommentReactionRemoved.ts +32 -3
- package/src/comment/events/utils.ts +20 -63
- package/src/community/api/addCommunityMembers.ts +5 -3
- package/src/community/api/addCommunityMembersRole.ts +2 -1
- package/src/community/api/createCommunity.ts +4 -3
- package/src/community/api/deleteCommunity.ts +3 -2
- package/src/community/api/getRecommendedCommunities.ts +86 -0
- package/src/community/api/getTopTrendingCommunities.ts +86 -0
- package/src/community/api/index.ts +3 -0
- package/src/community/api/joinCommunity.ts +5 -3
- package/src/community/api/leaveCommunity.ts +5 -3
- package/src/community/api/removeCommunityMembers.ts +4 -3
- package/src/community/api/removeCommunityMembersRole.ts +2 -1
- package/src/community/api/updateCommunity.ts +5 -3
- package/src/community/events/utils.ts +48 -62
- package/src/core/events.ts +21 -9
- package/src/core/query/paging.ts +10 -10
- package/src/core/subscription.ts +6 -13
- package/src/follow/api/acceptFollower.ts +2 -2
- package/src/follow/api/declineFollower.ts +2 -2
- package/src/follow/api/follow.ts +2 -2
- package/src/follow/api/unfollow.ts +2 -2
- package/src/follow/events/onFollowInfoUpdated.ts +27 -4
- package/src/follow/events/utils.ts +20 -50
- package/src/follow/observers/observeFollowInfo.ts +2 -3
- package/src/index.ts +1 -0
- package/src/message/api/createMessage.ts +1 -1
- package/src/post/api/createPost.ts +2 -2
- package/src/post/api/deletePost.ts +5 -4
- package/src/post/api/queryPosts.ts +2 -2
- package/src/post/api/updatePost.ts +2 -2
- package/src/post/events/onPostReactionAdded.ts +30 -3
- package/src/post/events/onPostReactionRemoved.ts +30 -3
- package/src/post/events/utils.ts +27 -72
- package/src/reaction/utils/fetchReference.ts +2 -2
- package/src/reaction/utils/preparePayloadForCache.ts +3 -3
- package/src/report/api/createReport.ts +5 -6
- package/src/report/api/deleteReport.ts +5 -6
- package/src/user/api/updateUser.ts +1 -1
- package/src/user/events/utils.ts +13 -23
- package/dist/core/network.d.ts +0 -11
- package/dist/core/network.d.ts.map +0 -1
- package/src/core/network.ts +0 -14
package/README.md
CHANGED
|
@@ -26,12 +26,12 @@ import {
|
|
|
26
26
|
} from '@amityco/ts-sdk'
|
|
27
27
|
|
|
28
28
|
(async () => {
|
|
29
|
-
const client = createClient(API_KEY,
|
|
29
|
+
const client = createClient(API_KEY, API_REGION)
|
|
30
30
|
let isConnected = await connectClient({ userId: USER_ID })
|
|
31
31
|
})()
|
|
32
32
|
```
|
|
33
33
|
|
|
34
|
-
The `API_KEY` and `
|
|
34
|
+
The `API_KEY` and `API_REGION` are given at the time you create an application in the [Amity Portal](http://portal.amity.co/).
|
|
35
35
|
|
|
36
36
|
You can listen to disconnection by using the `onClientDisconnected` function:
|
|
37
37
|
|
|
@@ -61,7 +61,7 @@ import {
|
|
|
61
61
|
} from '@amityco/ts-sdk'
|
|
62
62
|
|
|
63
63
|
(async () => {
|
|
64
|
-
const client = createClient(API_KEY,
|
|
64
|
+
const client = createClient(API_KEY, API_REGION)
|
|
65
65
|
enableCache()
|
|
66
66
|
|
|
67
67
|
let isConnected = await connectClient({ userId: USER_ID })
|
|
@@ -42,7 +42,7 @@ declare global {
|
|
|
42
42
|
/**
|
|
43
43
|
* Minimal CacheEntry alias, used mostly
|
|
44
44
|
*/
|
|
45
|
-
type Cached<T extends unknown = unknown> = (T extends Amity.Paged<any> ? T : {
|
|
45
|
+
type Cached<T extends unknown = unknown> = (T extends Amity.Paged<any, infer K> ? T : {
|
|
46
46
|
data: T;
|
|
47
47
|
}) & {
|
|
48
48
|
cachedAt: CacheOptions['cachedAt'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cache.d.ts","sourceRoot":"","sources":["../../../src/@types/core/cache.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAA;AAET,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,KAAK,CAAC;QACd;;;;;WAKG;QACH,KAAK,YAAY,GAAG,CAClB,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,GAAG,YAAY,EAAE,GAAG;YAAE,CAAC,GAAG,EAAE,MAAM,GAAG,YAAY,CAAA;SAAE,CACzF,CAAA;QAED;;;WAGG;QACH,KAAK,QAAQ,GAAG,YAAY,EAAE,CAAA;QAE9B;;;;WAIG;QACH,KAAK,UAAU,CAAC,CAAC,SAAS,OAAO,GAAG,OAAO,IAAI;YAC7C,GAAG,EAAE,QAAQ,CAAA;YACb,IAAI,EAAE,CAAC,CAAA;SACR,GAAG,YAAY,CAAA;QAEhB;;;;;;;;;;WAUG;QACH,KAAK,YAAY,GAAG;YAClB,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;YAC5B,OAAO,CAAC,EAAE,OAAO,CAAA;SAClB,CAAA;QAGD;;WAEG;QACF,KAAK,MAAM,CAAC,CAAC,SAAS,OAAO,GAAG,OAAO,IAAI,CAC1C,CAAC,SAAS,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"cache.d.ts","sourceRoot":"","sources":["../../../src/@types/core/cache.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAA;AAET,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,KAAK,CAAC;QACd;;;;;WAKG;QACH,KAAK,YAAY,GAAG,CAClB,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,GAAG,YAAY,EAAE,GAAG;YAAE,CAAC,GAAG,EAAE,MAAM,GAAG,YAAY,CAAA;SAAE,CACzF,CAAA;QAED;;;WAGG;QACH,KAAK,QAAQ,GAAG,YAAY,EAAE,CAAA;QAE9B;;;;WAIG;QACH,KAAK,UAAU,CAAC,CAAC,SAAS,OAAO,GAAG,OAAO,IAAI;YAC7C,GAAG,EAAE,QAAQ,CAAA;YACb,IAAI,EAAE,CAAC,CAAA;SACR,GAAG,YAAY,CAAA;QAEhB;;;;;;;;;;WAUG;QACH,KAAK,YAAY,GAAG;YAClB,QAAQ,EAAE,MAAM,GAAG,SAAS,CAAA;YAC5B,OAAO,CAAC,EAAE,OAAO,CAAA;SAClB,CAAA;QAGD;;WAEG;QACF,KAAK,MAAM,CAAC,CAAC,SAAS,OAAO,GAAG,OAAO,IAAI,CAC1C,CAAC,SAAS,KAAK,CAAC,KAAK,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC,GAC/B,CAAC,GACD;YAAE,IAAI,EAAE,CAAC,CAAA;SAAE,CACf,GAAG;YACH,QAAQ,EAAE,YAAY,CAAC,UAAU,CAAC,CAAA;SACnC,CAAA;QAED;;;;WAIG;QACH,KAAK,KAAK,GAAG;YACX,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAA;YAChC,SAAS,CAAC,EAAE,CAAC,GAAG,EAAE,QAAQ,EAAE,IAAI,CAAC,EAAE,GAAG,KAAK,OAAO,CAAA;SACnD,CAAA;KACF;CACF"}
|
|
@@ -99,15 +99,7 @@ declare global {
|
|
|
99
99
|
'follow.followerDeleted': Amity.FollowStatus;
|
|
100
100
|
};
|
|
101
101
|
type MqttMessageEvents = MqttCommunityMessageEvents & MqttPostMessageEvents & MqttCommentMessageEvents & MqttUserMessageEvents & MqttFollowMessageEvents;
|
|
102
|
-
type
|
|
103
|
-
eventType: T;
|
|
104
|
-
data: MqttMessageEvents[T];
|
|
105
|
-
};
|
|
106
|
-
type VirtualEvents = {
|
|
107
|
-
'follow.followInfoUpdated': Amity.FollowInfo;
|
|
108
|
-
'messageinternal': MqttMessageInternalPayload;
|
|
109
|
-
};
|
|
110
|
-
type Events = WsEvents & MqttEvents & MqttMessageEvents & VirtualEvents;
|
|
102
|
+
type Events = WsEvents & MqttEvents & MqttMessageEvents;
|
|
111
103
|
}
|
|
112
104
|
}
|
|
113
105
|
//# sourceMappingURL=events.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../../src/@types/core/events.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAElF,OAAO,EAAE,CAAA;AAET,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,KAAK,CAAC;QACd,KAAK,QAAQ,CAAC,CAAC,GAAG,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,KAAK,IAAI,CAAA;QAE5C,KAAK,cAAc,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,EAAE,IAAI,QAAQ,CAAC,CAAC,CAAC,IAAG;YACzD,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC,KAAK,IAAI,CAAA;SAChD,GAAG;aACD,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,QAAQ,CAAC,CAAC,CAAC;SAC/B,CAAA,CAAA;QAED,KAAK,YAAY,GAAG,MAAM,IAAI,CAAA;QAE9B,KAAK,UAAU,CAAC,CAAC,GAAG,GAAG,IAAI,CAAC,EAAE,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,YAAY,CAAA;QAElE,KAAK,QAAQ,GAAG;YACd,YAAY,EAAE,KAAK,CAAC,aAAa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E,KAAK,CAAC,YAAY,CAAA;YACtC,iBAAiB,EAAE,KAAK,CAAC,YAAY,CAAA;YACrC,mBAAmB,EAAE,KAAK,CAAC,YAAY,CAAA;YACvC,wBAAwB,EAAE,KAAK,CAAC,YAAY,CAAA;YAC5C,wBAAwB,EAAE,KAAK,CAAC,YAAY,CAAA;YAC5C,wBAAwB,EAAE,KAAK,CAAC,YAAY,CAAA;SAC7C,CAAA;QAED,KAAK,iBAAiB,GAAG,0BAA0B,GAC/C,qBAAqB,GACrB,wBAAwB,GACxB,qBAAqB,GACrB,uBAAuB,CAAA;QAE3B,KAAK,MAAM,GAAG,QAAQ,GAAG,UAAU,GAAG,iBAAiB,CAAA;KACxD;CACF"}
|
|
@@ -2,19 +2,19 @@ export {};
|
|
|
2
2
|
declare global {
|
|
3
3
|
namespace Amity {
|
|
4
4
|
type PaginationStyles = 'skiplimit' | 'afterbefore' | 'afterbeforeraw';
|
|
5
|
-
type
|
|
5
|
+
type PageLimit = {
|
|
6
6
|
limit: number;
|
|
7
7
|
};
|
|
8
|
-
type PrevPage<T extends number | string
|
|
8
|
+
type PrevPage<T extends number | string> = PageLimit & {
|
|
9
9
|
after?: never;
|
|
10
10
|
before?: T;
|
|
11
11
|
};
|
|
12
|
-
type NextPage<T extends number | string
|
|
12
|
+
type NextPage<T extends number | string> = PageLimit & {
|
|
13
13
|
after?: T;
|
|
14
14
|
before?: never;
|
|
15
15
|
};
|
|
16
|
-
type Page
|
|
17
|
-
type PageRaw =
|
|
16
|
+
type Page = PrevPage<number> | NextPage<number>;
|
|
17
|
+
type PageRaw = (PrevPage<string> | NextPage<string>) & {
|
|
18
18
|
updatedAt?: string;
|
|
19
19
|
};
|
|
20
20
|
type SkipLimitPagination = {
|
|
@@ -28,13 +28,13 @@ declare global {
|
|
|
28
28
|
last?: number;
|
|
29
29
|
};
|
|
30
30
|
type AfterBeforeRawPagination = PageRaw;
|
|
31
|
-
type Pages = {
|
|
32
|
-
nextPage?:
|
|
33
|
-
prevPage?:
|
|
31
|
+
type Pages<T extends (Page | PageRaw)> = {
|
|
32
|
+
nextPage?: T;
|
|
33
|
+
prevPage?: T;
|
|
34
34
|
};
|
|
35
|
-
type Paged<T> = {
|
|
35
|
+
type Paged<T, K extends (Page | PageRaw) = Page> = {
|
|
36
36
|
data: T[];
|
|
37
|
-
} & Pages
|
|
37
|
+
} & Pages<K>;
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
//# sourceMappingURL=paging.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paging.d.ts","sourceRoot":"","sources":["../../../src/@types/core/paging.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAA;AAET,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,KAAK,CAAC;QACd,KAAK,gBAAgB,GAAG,WAAW,GAAG,aAAa,GAAG,gBAAgB,CAAA;QAEtE,KAAK,
|
|
1
|
+
{"version":3,"file":"paging.d.ts","sourceRoot":"","sources":["../../../src/@types/core/paging.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAA;AAET,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,KAAK,CAAC;QACd,KAAK,gBAAgB,GAAG,WAAW,GAAG,aAAa,GAAG,gBAAgB,CAAA;QAEtE,KAAK,SAAS,GAAG;YACf,KAAK,EAAE,MAAM,CAAA;SACd,CAAA;QAED,KAAK,QAAQ,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,IAAI,SAAS,GAAG;YACrD,KAAK,CAAC,EAAE,KAAK,CAAA;YACb,MAAM,CAAC,EAAE,CAAC,CAAA;SACX,CAAA;QAED,KAAK,QAAQ,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,IAAI,SAAS,GAAG;YACrD,KAAK,CAAC,EAAE,CAAC,CAAA;YACT,MAAM,CAAC,EAAE,KAAK,CAAA;SACf,CAAA;QAED,KAAK,IAAI,GAAG,QAAQ,CAAC,MAAM,CAAC,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAA;QAM/C,KAAK,OAAO,GAAG,CAAC,QAAQ,CAAC,MAAM,CAAC,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC,GAAG;YACrD,SAAS,CAAC,EAAE,MAAM,CAAA;SACnB,CAAA;QAED,KAAK,mBAAmB,GAAG;YACzB,IAAI,CAAC,EAAE,MAAM,CAAA;YACb,KAAK,CAAC,EAAE,MAAM,CAAA;SACf,CAAA;QAUD,KAAK,qBAAqB,GAAG;YAC3B,MAAM,CAAC,EAAE,MAAM,CAAA;YACf,KAAK,CAAC,EAAE,MAAM,CAAA;YACd,KAAK,CAAC,EAAE,MAAM,CAAA;YACd,IAAI,CAAC,EAAE,MAAM,CAAA;SACd,CAAA;QAED,KAAK,wBAAwB,GAAG,OAAO,CAAA;QAEvC,KAAK,KAAK,CAAC,CAAC,SAAS,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI;YACvC,QAAQ,CAAC,EAAE,CAAC,CAAA;YACZ,QAAQ,CAAC,EAAE,CAAC,CAAA;SACb,CAAA;QAED,KAAK,KAAK,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,IAAI,GAAG,OAAO,CAAC,GAAG,IAAI,IAAI;YAAE,IAAI,EAAE,CAAC,EAAE,CAAA;SAAE,GAAG,KAAK,CAAC,CAAC,CAAC,CAAA;KAC5E;CACF"}
|
|
@@ -32,19 +32,20 @@ declare global {
|
|
|
32
32
|
loading: boolean;
|
|
33
33
|
error?: any;
|
|
34
34
|
};
|
|
35
|
-
type Snapshot<T> = (T extends Amity.Cached<infer T2> ? T2 extends Amity.Paged<infer T3> ? {
|
|
35
|
+
type Snapshot<T> = (T extends Amity.Cached<infer T2> ? T2 extends Amity.Paged<infer T3, infer T4> ? {
|
|
36
36
|
data: T3[] | undefined;
|
|
37
|
-
} & Pages & {
|
|
37
|
+
} & Pages<T4> & {
|
|
38
38
|
cachedAt?: CacheOptions['cachedAt'];
|
|
39
39
|
} : {
|
|
40
40
|
data: T2;
|
|
41
41
|
} & {
|
|
42
42
|
cachedAt?: CacheOptions['cachedAt'];
|
|
43
|
-
} : T extends Amity.Paged<infer T3> ? {
|
|
43
|
+
} : T extends Amity.Paged<infer T3, infer T4> ? {
|
|
44
44
|
data: T3[] | undefined;
|
|
45
|
-
} & Pages : {
|
|
45
|
+
} & Pages<T4> : {
|
|
46
46
|
data: T | undefined;
|
|
47
47
|
}) & SnapshotOptions;
|
|
48
|
+
type RunQueryOptions<T> = T extends Amity.AsyncFunc<infer Args, infer Returned> ? Omit<Amity.Snapshot<Returned>, 'data'> : never;
|
|
48
49
|
}
|
|
49
50
|
}
|
|
50
51
|
//# sourceMappingURL=query.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../../src/@types/core/query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAA;AAET,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,KAAK,CAAC;QACd,KAAK,QAAQ,GAAG;YACd,QAAQ,EAAE,MAAM,CAAA;SACjB,CAAA;QAED,KAAK,KAAK,GAAG;YACX,QAAQ,EAAE,CAAC,CAAC,CAAA;SACb,CAAA;QAED,KAAK,SAAS,CAAC,IAAI,SAAS,GAAG,EAAE,EAAE,QAAQ,SAAS,GAAG,IAAI;YACzD,CAAC,GAAG,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAA;SACnC,CAAA;QAED,KAAK,WAAW,CAAC,IAAI,SAAS,GAAG,EAAE,EAAE,QAAQ,SAAS,GAAG,IAAI;YAC3D,CAAC,GAAG,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAA;YAClC,OAAO,EAAE,CAAC,GAAG,IAAI,EAAE,IAAI,KAAK,QAAQ,GAAG,SAAS,CAAA;SACjD,CAAA;QAED,KAAK,WAAW,CAAC,IAAI,SAAS,GAAG,EAAE,EAAE,QAAQ,SAAS,GAAG,IAAI;YAC3D,CAAC,GAAG,IAAI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string;
|
|
9
10
|
description?: string;
|
|
10
11
|
} & Amity.Metadata & Amity.Taggable & Amity.Flaggable & Amity.Accredited & Amity.Timestamps & Amity.Subscribable;
|
|
11
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../src/@types/domains/user.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAA;AAET,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,KAAK,CAAC;QACd,KAAK,IAAI,GAAG;YACV,GAAG,EAAE,MAAM,CAAA;YACX,MAAM,EAAE,MAAM,CAAA;YACd,WAAW,CAAC,EAAE,MAAM,CAAA;YACpB,YAAY,CAAC,EAAE,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,CAAA;YAC5C,WAAW,CAAC,EAAE,MAAM,CAAA;SACrB,GACC,KAAK,CAAC,QAAQ,GACd,KAAK,CAAC,QAAQ,GACd,KAAK,CAAC,SAAS,GACf,KAAK,CAAC,UAAU,GAChB,KAAK,CAAC,UAAU,GAChB,KAAK,CAAC,YAAY,CAAA;KACrB;CACF"}
|
|
1
|
+
{"version":3,"file":"user.d.ts","sourceRoot":"","sources":["../../../src/@types/domains/user.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAA;AAET,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,KAAK,CAAC;QACd,KAAK,IAAI,GAAG;YACV,GAAG,EAAE,MAAM,CAAA;YACX,MAAM,EAAE,MAAM,CAAA;YACd,WAAW,CAAC,EAAE,MAAM,CAAA;YACpB,YAAY,CAAC,EAAE,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,CAAA;YAC5C,eAAe,CAAC,EAAE,MAAM,CAAA;YACxB,WAAW,CAAC,EAAE,MAAM,CAAA;SACrB,GACC,KAAK,CAAC,QAAQ,GACd,KAAK,CAAC,QAAQ,GACd,KAAK,CAAC,SAAS,GACf,KAAK,CAAC,UAAU,GAChB,KAAK,CAAC,UAAU,GAChB,KAAK,CAAC,YAAY,CAAA;KACrB;CACF"}
|
package/dist/@types/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/@types/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,CAAA;AAEjB,OAAO,eAAe,CAAA;AACtB,OAAO,oBAAoB,CAAA;AAE3B,OAAO,gBAAgB,CAAA;AACvB,OAAO,eAAe,CAAA;AACtB,OAAO,eAAe,CAAA;AACtB,OAAO,cAAc,CAAA;AACrB,OAAO,cAAc,CAAA;AAGrB,OAAO,kBAAkB,CAAA;AAEzB,OAAO,gBAAgB,CAAA;AACvB,OAAO,gBAAgB,CAAA;AAEvB,OAAO,oBAAoB,CAAA;AAC3B,OAAO,mBAAmB,CAAA;AAC1B,OAAO,oBAAoB,CAAA;AAE3B,OAAO,iBAAiB,CAAA;AACxB,OAAO,mBAAmB,CAAA;AAC1B,OAAO,mBAAmB,CAAA;AAE1B,OAAO,qBAAqB,CAAA;AAC5B,OAAO,oBAAoB,CAAA;AAC3B,OAAO,gBAAgB,CAAA;AACvB,OAAO,mBAAmB,CAAA;AAE1B,OAAO,kBAAkB,CAAA;AAEzB,OAAO,mBAAmB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/@types/index.ts"],"names":[],"mappings":"AAAA,OAAO,UAAU,CAAA;AAEjB,OAAO,eAAe,CAAA;AACtB,OAAO,oBAAoB,CAAA;AAE3B,OAAO,gBAAgB,CAAA;AACvB,OAAO,eAAe,CAAA;AACtB,OAAO,eAAe,CAAA;AACtB,OAAO,cAAc,CAAA;AACrB,OAAO,cAAc,CAAA;AAGrB,OAAO,kBAAkB,CAAA;AAEzB,OAAO,gBAAgB,CAAA;AACvB,OAAO,kBAAkB,CAAA;AACzB,OAAO,gBAAgB,CAAA;AAEvB,OAAO,oBAAoB,CAAA;AAC3B,OAAO,mBAAmB,CAAA;AAC1B,OAAO,oBAAoB,CAAA;AAE3B,OAAO,iBAAiB,CAAA;AACxB,OAAO,mBAAmB,CAAA;AAC1B,OAAO,mBAAmB,CAAA;AAE1B,OAAO,qBAAqB,CAAA;AAC5B,OAAO,oBAAoB,CAAA;AAC3B,OAAO,gBAAgB,CAAA;AACvB,OAAO,mBAAmB,CAAA;AAE1B,OAAO,kBAAkB,CAAA;AAEzB,OAAO,mBAAmB,CAAA"}
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
export declare const queryCategories: (query?: {
|
|
16
16
|
sortBy?: "lastCreated" | "firstCreated" | "name" | undefined;
|
|
17
17
|
isDeleted?: Amity.Category['isDeleted'];
|
|
18
|
-
page?: Amity.Page
|
|
18
|
+
page?: Amity.Page | undefined;
|
|
19
19
|
} | undefined) => Promise<{
|
|
20
20
|
data: Amity.Category[];
|
|
21
|
-
prevPage: Amity.Page
|
|
22
|
-
nextPage: Amity.Page
|
|
21
|
+
prevPage: Amity.Page | undefined;
|
|
22
|
+
nextPage: Amity.Page | undefined;
|
|
23
23
|
}>;
|
|
24
24
|
//# sourceMappingURL=queryCategories.d.ts.map
|
|
@@ -14,6 +14,6 @@
|
|
|
14
14
|
*/
|
|
15
15
|
export declare const createChannel: <T extends Amity.ChannelType>(bundle: {
|
|
16
16
|
type: T;
|
|
17
|
-
userIds?: string | undefined;
|
|
17
|
+
userIds?: string[] | undefined;
|
|
18
18
|
} & Pick<Amity.Channel<T>, "displayName" | "avatarFileId" | "tags" | "metadata">) => Promise<Amity.Cached<Amity.Channel>>;
|
|
19
19
|
//# sourceMappingURL=createChannel.d.ts.map
|
|
@@ -19,7 +19,7 @@ export declare const queryChannels: {
|
|
|
19
19
|
membership?: "all" | "member" | "notMember" | undefined;
|
|
20
20
|
sortBy?: "displayName" | "firstCreated" | "lastCreated" | undefined;
|
|
21
21
|
types?: Amity.ChannelType | undefined;
|
|
22
|
-
page?: Amity.Page
|
|
22
|
+
page?: Amity.Page | undefined;
|
|
23
23
|
} | undefined): Promise<Amity.Cached<Amity.Paged<Amity.Channel>>>;
|
|
24
24
|
/**
|
|
25
25
|
* ```js
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { API_REGIONS } from '~/client/utils/endpoints';
|
|
2
2
|
/**
|
|
3
3
|
* ```js
|
|
4
4
|
* import { createClient } from '@amityco/ts-sdk'
|
|
@@ -8,11 +8,11 @@ import { API_ENDPOINT } from '~/core/network';
|
|
|
8
8
|
* Creates a new {@link Amity.Client} instance
|
|
9
9
|
*
|
|
10
10
|
* @param apiKey for the {@link Amity.Client} instance
|
|
11
|
-
* @param
|
|
11
|
+
* @param apiRegion endpoint to connect to
|
|
12
12
|
* @param debugSession session's identifier for the client's logger instance
|
|
13
13
|
* @returns A {@link Amity.Client} instance
|
|
14
14
|
*
|
|
15
15
|
* @category Client API
|
|
16
16
|
**/
|
|
17
|
-
export declare const createClient: (apiKey: string,
|
|
17
|
+
export declare const createClient: (apiKey: string, apiRegion?: typeof API_REGIONS[keyof typeof API_REGIONS], debugSession?: string) => Amity.Client;
|
|
18
18
|
//# sourceMappingURL=createClient.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createClient.d.ts","sourceRoot":"","sources":["../../../src/client/api/createClient.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"createClient.d.ts","sourceRoot":"","sources":["../../../src/client/api/createClient.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAAc,MAAM,0BAA0B,CAAA;AAOlE;;;;;;;;;;;;;;IAcI;AACJ,eAAO,MAAM,YAAY,WACf,MAAM,cACH,kBAAkB,CAAC,MAAM,kBAAkB,CAAC,iBACzC,MAAM,KACnB,MAAM,MAiCR,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const API_REGIONS: {
|
|
2
|
+
readonly EU: "eu";
|
|
3
|
+
readonly SG: "sg";
|
|
4
|
+
readonly US: "us";
|
|
5
|
+
};
|
|
6
|
+
declare const URLS: {
|
|
7
|
+
readonly http: "https://api.{region}.amity.co";
|
|
8
|
+
readonly mqtt: "wss://sse.{region}.amity.co:443/mqtt";
|
|
9
|
+
};
|
|
10
|
+
export declare function computeUrl(type: keyof typeof URLS, region: string): string;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=endpoints.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"endpoints.d.ts","sourceRoot":"","sources":["../../../src/client/utils/endpoints.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW;;;;CAId,CAAA;AAEV,QAAA,MAAM,IAAI;;;CAGA,CAAA;AAEV,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,OAAO,IAAI,EAAE,MAAM,EAAE,MAAM,UAEjE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createComment.d.ts","sourceRoot":"","sources":["../../../src/comment/api/createComment.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,aAAa,2IAEvB,QAAQ,MAAM,MAAM,CAAC,aAAa,CAAC,
|
|
1
|
+
{"version":3,"file":"createComment.d.ts","sourceRoot":"","sources":["../../../src/comment/api/createComment.ts"],"names":[],"mappings":"AAOA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,aAAa,2IAEvB,QAAQ,MAAM,MAAM,CAAC,aAAa,CAAC,CAqBrC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateComment.d.ts","sourceRoot":"","sources":["../../../src/comment/api/updateComment.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,aAAa,cACb,aAAa,CAAC,WAAW,CAAC,SAC9B,MAAM,aAAa,EAAE,MAAM,GAAG,UAAU,GAAG,YAAY,CAAC,KAC9D,QAAQ,MAAM,MAAM,CAAC,aAAa,CAAC,
|
|
1
|
+
{"version":3,"file":"updateComment.d.ts","sourceRoot":"","sources":["../../../src/comment/api/updateComment.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,aAAa,cACb,aAAa,CAAC,WAAW,CAAC,SAC9B,MAAM,aAAa,EAAE,MAAM,GAAG,UAAU,GAAG,YAAY,CAAC,KAC9D,QAAQ,MAAM,MAAM,CAAC,aAAa,CAAC,CAkBrC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onCommentReactionAdded.d.ts","sourceRoot":"","sources":["../../../src/comment/events/onCommentReactionAdded.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"onCommentReactionAdded.d.ts","sourceRoot":"","sources":["../../../src/comment/events/onCommentReactionAdded.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,sBAAsB,aACvB,MAAM,QAAQ,CAAC,aAAa,CAAC,KACtC,MAAM,YAwBR,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onCommentReactionRemoved.d.ts","sourceRoot":"","sources":["../../../src/comment/events/onCommentReactionRemoved.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"onCommentReactionRemoved.d.ts","sourceRoot":"","sources":["../../../src/comment/events/onCommentReactionRemoved.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,wBAAwB,aACzB,MAAM,QAAQ,CAAC,aAAa,CAAC,KACtC,MAAM,YAwBR,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/comment/events/utils.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/comment/events/utils.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,4BAA4B,UAChC,MAAM,MAAM,wBAAwB,YACjC,MAAM,QAAQ,CAAC,aAAa,CAAC,uBA+BxC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addCommunityMembers.d.ts","sourceRoot":"","sources":["../../../src/community/api/addCommunityMembers.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"addCommunityMembers.d.ts","sourceRoot":"","sources":["../../../src/community/api/addCommunityMembers.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,mBAAmB,gBACjB,MAAM,SAAS,CAAC,aAAa,CAAC,WAClC,MAAM,IAAI,CAAC,QAAQ,CAAC,EAAE,KAC9B,QAAQ,OAAO,CAmBjB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"addCommunityMembersRole.d.ts","sourceRoot":"","sources":["../../../src/community/api/addCommunityMembersRole.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,uBAAuB,gBACrB,MAAM,SAAS,CAAC,aAAa,CAAC,UACnC,MAAM,IAAI,CAAC,QAAQ,CAAC,WACnB,MAAM,IAAI,CAAC,QAAQ,CAAC,EAAE,KAC9B,QAAQ,OAAO,
|
|
1
|
+
{"version":3,"file":"addCommunityMembersRole.d.ts","sourceRoot":"","sources":["../../../src/community/api/addCommunityMembersRole.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,uBAAuB,gBACrB,MAAM,SAAS,CAAC,aAAa,CAAC,UACnC,MAAM,IAAI,CAAC,QAAQ,CAAC,WACnB,MAAM,IAAI,CAAC,QAAQ,CAAC,EAAE,KAC9B,QAAQ,OAAO,CAgBjB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createCommunity.d.ts","sourceRoot":"","sources":["../../../src/community/api/createCommunity.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,eAAe,WAClB,KACN,MAAM,SAAS,EACf,aAAa,GAAG,cAAc,GAAG,aAAa,GAAG,UAAU,GAAG,YAAY,GAAG,kBAAkB,GAAG,4BAA4B,GAAG,MAAM,GAAG,UAAU,CACrJ,GAAG;IACF,OAAO,CAAC,EAAE,MAAM,EAAE,CAAA;IAClB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAA;IACtB,mBAAmB,CAAC,EAAE,OAAO,CAAA;CAC9B,KAAG,QAAQ,MAAM,MAAM,CAAC,MAAM,SAAS,CAAC,
|
|
1
|
+
{"version":3,"file":"createCommunity.d.ts","sourceRoot":"","sources":["../../../src/community/api/createCommunity.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,eAAe,WAClB,KACN,MAAM,SAAS,EACf,aAAa,GAAG,cAAc,GAAG,aAAa,GAAG,UAAU,GAAG,YAAY,GAAG,kBAAkB,GAAG,4BAA4B,GAAG,MAAM,GAAG,UAAU,CACrJ,GAAG;IACF,OAAO,CAAC,EAAE,MAAM,EAAE,CAAA;IAClB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAA;IACtB,mBAAmB,CAAC,EAAE,OAAO,CAAA;CAC9B,KAAG,QAAQ,MAAM,MAAM,CAAC,MAAM,SAAS,CAAC,CAkB1C,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deleteCommunity.d.ts","sourceRoot":"","sources":["../../../src/community/api/deleteCommunity.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"deleteCommunity.d.ts","sourceRoot":"","sources":["../../../src/community/api/deleteCommunity.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,eAAe,gBACb,MAAM,SAAS,CAAC,aAAa,CAAC,KAC1C,QAAQ,MAAM,SAAS,CAazB,CAAA"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ```js
|
|
3
|
+
* import { getRecommendedCommunities } from '@amityco/ts-sdk'
|
|
4
|
+
* const communities = await getRecommendedCommunities()
|
|
5
|
+
* ```
|
|
6
|
+
*
|
|
7
|
+
* Gets a list of recommended {@link Amity.Community} objects
|
|
8
|
+
*
|
|
9
|
+
* @param query The query parameters
|
|
10
|
+
* @returns A list of {@link Amity.Community} objects
|
|
11
|
+
*
|
|
12
|
+
* @category Community API
|
|
13
|
+
* @async
|
|
14
|
+
*/
|
|
15
|
+
export declare const getRecommendedCommunities: {
|
|
16
|
+
(query?: Partial<Amity.PageLimit> | undefined): Promise<Amity.Cached<Amity.Community[]>>;
|
|
17
|
+
/**
|
|
18
|
+
* ```js
|
|
19
|
+
* import { getRecommendedCommunities } from '@amityco/ts-sdk'
|
|
20
|
+
* const communities = getRecommendedCommunities.locally()
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* Gets a list of recommended {@link Amity.Community} objects from cache
|
|
24
|
+
*
|
|
25
|
+
* @param query The query parameters
|
|
26
|
+
* @returns communities
|
|
27
|
+
*
|
|
28
|
+
* @category Community API
|
|
29
|
+
*/
|
|
30
|
+
locally(query: Parameters<typeof getRecommendedCommunities>[0]): Amity.Cached<Amity.Community[]> | undefined;
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=getRecommendedCommunities.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getRecommendedCommunities.d.ts","sourceRoot":"","sources":["../../../src/community/api/getRecommendedCommunities.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,yBAAyB;oDAEnC,QAAQ,MAAM,MAAM,CAAC,MAAM,SAAS,EAAE,CAAC,CAAC;IA0B3C;;;;;;;;;;;;OAYG;mBAEM,WAAW,gCAAgC,CAAC,CAAC,CAAC,CAAC,GACrD,MAAM,MAAM,CAAC,MAAM,SAAS,EAAE,CAAC,GAAG,SAAS;CAjB7C,CAAA"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ```js
|
|
3
|
+
* import { getTopTrendingCommunities } from '@amityco/ts-sdk'
|
|
4
|
+
* const trendingCommunities = await getTopTrendingCommunities()
|
|
5
|
+
* ```
|
|
6
|
+
*
|
|
7
|
+
* Gets a list of top trending {@link Amity.Community} objects
|
|
8
|
+
*
|
|
9
|
+
* @param query The query parameters
|
|
10
|
+
* @returns A list of {@link Amity.Community} objects
|
|
11
|
+
*
|
|
12
|
+
* @category Community API
|
|
13
|
+
* @async
|
|
14
|
+
*/
|
|
15
|
+
export declare const getTopTrendingCommunities: {
|
|
16
|
+
(query?: Partial<Amity.PageLimit> | undefined): Promise<Amity.Cached<Amity.Community[]>>;
|
|
17
|
+
/**
|
|
18
|
+
* ```js
|
|
19
|
+
* import { getTopTrendingCommunities } from '@amityco/ts-sdk'
|
|
20
|
+
* const communities = getTopTrendingCommunities.locally()
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* Gets a list of top trending {@link Amity.Community} objects from cache
|
|
24
|
+
*
|
|
25
|
+
* @param query The query parameters
|
|
26
|
+
* @returns communities
|
|
27
|
+
*
|
|
28
|
+
* @category Community API
|
|
29
|
+
*/
|
|
30
|
+
locally(query: Parameters<typeof getTopTrendingCommunities>[0]): Amity.Cached<Amity.Community[]> | undefined;
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=getTopTrendingCommunities.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getTopTrendingCommunities.d.ts","sourceRoot":"","sources":["../../../src/community/api/getTopTrendingCommunities.ts"],"names":[],"mappings":"AAMA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,yBAAyB;oDAEnC,QAAQ,MAAM,MAAM,CAAC,MAAM,SAAS,EAAE,CAAC,CAAC;IA0B3C;;;;;;;;;;;;OAYG;mBAEM,WAAW,gCAAgC,CAAC,CAAC,CAAC,CAAC,GACrD,MAAM,MAAM,CAAC,MAAM,SAAS,EAAE,CAAC,GAAG,SAAS;CAjB7C,CAAA"}
|
|
@@ -11,4 +11,6 @@ export * from './addCommunityMembers';
|
|
|
11
11
|
export * from './removeCommunityMembers';
|
|
12
12
|
export * from './addCommunityMembersRole';
|
|
13
13
|
export * from './removeCommunityMembersRole';
|
|
14
|
+
export * from './getTopTrendingCommunities';
|
|
15
|
+
export * from './getRecommendedCommunities';
|
|
14
16
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/community/api/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA;AAE9B,cAAc,mBAAmB,CAAA;AACjC,cAAc,mBAAmB,CAAA;AACjC,cAAc,mBAAmB,CAAA;AAEjC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,kBAAkB,CAAA;AAEhC,cAAc,yBAAyB,CAAA;AACvC,cAAc,uBAAuB,CAAA;AACrC,cAAc,0BAA0B,CAAA;AAExC,cAAc,2BAA2B,CAAA;AACzC,cAAc,8BAA8B,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/community/api/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,cAAc,kBAAkB,CAAA;AAChC,cAAc,gBAAgB,CAAA;AAE9B,cAAc,mBAAmB,CAAA;AACjC,cAAc,mBAAmB,CAAA;AACjC,cAAc,mBAAmB,CAAA;AAEjC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,kBAAkB,CAAA;AAEhC,cAAc,yBAAyB,CAAA;AACvC,cAAc,uBAAuB,CAAA;AACrC,cAAc,0BAA0B,CAAA;AAExC,cAAc,2BAA2B,CAAA;AACzC,cAAc,8BAA8B,CAAA;AAE5C,cAAc,6BAA6B,CAAA;AAC3C,cAAc,6BAA6B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"joinCommunity.d.ts","sourceRoot":"","sources":["../../../src/community/api/joinCommunity.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,aAAa,gBACX,MAAM,SAAS,CAAC,aAAa,CAAC,KAC1C,QAAQ,OAAO,
|
|
1
|
+
{"version":3,"file":"joinCommunity.d.ts","sourceRoot":"","sources":["../../../src/community/api/joinCommunity.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,aAAa,gBACX,MAAM,SAAS,CAAC,aAAa,CAAC,KAC1C,QAAQ,OAAO,CAmBjB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"leaveCommunity.d.ts","sourceRoot":"","sources":["../../../src/community/api/leaveCommunity.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,cAAc,gBACZ,MAAM,SAAS,CAAC,aAAa,CAAC,KAC1C,QAAQ,OAAO,
|
|
1
|
+
{"version":3,"file":"leaveCommunity.d.ts","sourceRoot":"","sources":["../../../src/community/api/leaveCommunity.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,cAAc,gBACZ,MAAM,SAAS,CAAC,aAAa,CAAC,KAC1C,QAAQ,OAAO,CAmBjB,CAAA"}
|
|
@@ -22,7 +22,7 @@ export declare const queryCommunities: {
|
|
|
22
22
|
hasFlag?: boolean | undefined;
|
|
23
23
|
tags?: Amity.Taggable['tags'];
|
|
24
24
|
sortBy?: "displayName" | "firstCreated" | "lastCreated" | undefined;
|
|
25
|
-
page?: Amity.Page
|
|
25
|
+
page?: Amity.Page | undefined;
|
|
26
26
|
} | undefined): Promise<Amity.Cached<Amity.Paged<Amity.Community>>>;
|
|
27
27
|
/**
|
|
28
28
|
* ```js
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"removeCommunityMembers.d.ts","sourceRoot":"","sources":["../../../src/community/api/removeCommunityMembers.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,sBAAsB,gBACpB,MAAM,SAAS,CAAC,aAAa,CAAC,WAClC,MAAM,IAAI,CAAC,QAAQ,CAAC,EAAE,KAC9B,QAAQ,OAAO,
|
|
1
|
+
{"version":3,"file":"removeCommunityMembers.d.ts","sourceRoot":"","sources":["../../../src/community/api/removeCommunityMembers.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,sBAAsB,gBACpB,MAAM,SAAS,CAAC,aAAa,CAAC,WAClC,MAAM,IAAI,CAAC,QAAQ,CAAC,EAAE,KAC9B,QAAQ,OAAO,CAmBjB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"removeCommunityMembersRole.d.ts","sourceRoot":"","sources":["../../../src/community/api/removeCommunityMembersRole.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,0BAA0B,gBACxB,MAAM,SAAS,CAAC,aAAa,CAAC,UACnC,MAAM,IAAI,CAAC,QAAQ,CAAC,WACnB,MAAM,IAAI,CAAC,QAAQ,CAAC,EAAE,KAC9B,QAAQ,OAAO,
|
|
1
|
+
{"version":3,"file":"removeCommunityMembersRole.d.ts","sourceRoot":"","sources":["../../../src/community/api/removeCommunityMembersRole.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,0BAA0B,gBACxB,MAAM,SAAS,CAAC,aAAa,CAAC,UACnC,MAAM,IAAI,CAAC,QAAQ,CAAC,WACnB,MAAM,IAAI,CAAC,QAAQ,CAAC,EAAE,KAC9B,QAAQ,OAAO,CAgBjB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"updateCommunity.d.ts","sourceRoot":"","sources":["../../../src/community/api/updateCommunity.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,eAAe,gBACb,MAAM,SAAS,CAAC,aAAa,CAAC,SACpC,MAAM,MAAM,SAAS,EAAE,aAAa,GAAG,aAAa,GAAG,cAAc,GAAG,MAAM,GAAG,UAAU,CAAC,KAClG,QAAQ,MAAM,MAAM,CAAC,MAAM,SAAS,CAAC,
|
|
1
|
+
{"version":3,"file":"updateCommunity.d.ts","sourceRoot":"","sources":["../../../src/community/api/updateCommunity.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,eAAe,gBACb,MAAM,SAAS,CAAC,aAAa,CAAC,SACpC,MAAM,MAAM,SAAS,EAAE,aAAa,GAAG,aAAa,GAAG,cAAc,GAAG,MAAM,GAAG,UAAU,CAAC,KAClG,QAAQ,MAAM,MAAM,CAAC,MAAM,SAAS,CAAC,CAmBvC,CAAA"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
export declare const createCommunityEventSubscriber: (event:
|
|
1
|
+
export declare const createCommunityEventSubscriber: (event: keyof Amity.MqttCommunityMessageEvents, callback: Amity.Listener<Amity.Community>) => Amity.Unsubscriber;
|
|
2
2
|
export declare const createCommunityMemberEventSubscriber: (event: keyof Amity.MqttCommunityUserMessageEvents, callback: (community: Amity.Community, member: Amity.Membership<'community'>) => void) => Amity.Unsubscriber;
|
|
3
|
-
export declare const subscribeMqttCommunityEvents: () => Amity.Unsubscriber;
|
|
4
3
|
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/community/events/utils.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,8BAA8B,UAClC,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/community/events/utils.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,8BAA8B,UAClC,MAAM,MAAM,0BAA0B,YACnC,MAAM,QAAQ,CAAC,MAAM,SAAS,CAAC,uBAuB1C,CAAA;AAsCD,eAAO,MAAM,oCAAoC,UACxC,MAAM,MAAM,8BAA8B,wBAC3B,MAAM,SAAS,UAAU,MAAM,UAAU,CAAC,WAAW,CAAC,KAAK,IAAI,uBA4BtF,CAAA"}
|
package/dist/core/events.d.ts
CHANGED
|
@@ -24,15 +24,12 @@ export declare const proxyMqttEvents: (mqttClient: Amity.Client['mqtt'], emitter
|
|
|
24
24
|
* @category Transport
|
|
25
25
|
* @hidden
|
|
26
26
|
*/
|
|
27
|
-
export declare const createEventSubscriber: <T extends "disconnected" | "error" | "connect_error" | "reconnect_error" | "reconnect_failed" | "v3.channel.didUpdate" | "v3.channel.didJoin" | "v3.channel.didLeave" | "v3.channel.didAddUsers" | "v3.channel.didRemoveUsers" | "v3.channel.didBan" | "v3.channel.didUnban" | "v3.message.didCreate" | "v3.message.didUpdate" | "v3.message.didDelete" | "connect" | "message" | "disconnect" | "close" | "end" | "reconnect" | "v3.channel.didCreate" | "v3.channel.didDelete" | "video-streaming.didRecord" | "video-streaming.didStart" | "video-streaming.didStop" | "community.created" | "community.updated" | "community.deleted" | "community.joined" | "community.left" | "community.userAdded" | "community.userRemoved" | "community.userBanned" | "community.userUnbanned" | "post.created" | "post.updated" | "post.deleted" | "post.approved" | "post.declined" | "post.flagged" | "post.unflagged" | "post.addReaction" | "post.removeReaction" | "comment.created" | "comment.updated" | "comment.deleted" | "comment.flagged" | "comment.unflagged" | "comment.addReaction" | "comment.removeReaction" | "user.updated" | "user.flagged" | "user.unflagged" | "user.flagCleared" | "follow.created" | "follow.requested" | "follow.accepted" | "follow.unfollowed" | "follow.requestCanceled" | "follow.requestDeclined" | "follow.followerDeleted"
|
|
27
|
+
export declare const createEventSubscriber: <T extends "disconnected" | "error" | "connect_error" | "reconnect_error" | "reconnect_failed" | "v3.channel.didUpdate" | "v3.channel.didJoin" | "v3.channel.didLeave" | "v3.channel.didAddUsers" | "v3.channel.didRemoveUsers" | "v3.channel.didBan" | "v3.channel.didUnban" | "v3.message.didCreate" | "v3.message.didUpdate" | "v3.message.didDelete" | "connect" | "message" | "disconnect" | "close" | "end" | "reconnect" | "v3.channel.didCreate" | "v3.channel.didDelete" | "video-streaming.didRecord" | "video-streaming.didStart" | "video-streaming.didStop" | "community.created" | "community.updated" | "community.deleted" | "community.joined" | "community.left" | "community.userAdded" | "community.userRemoved" | "community.userBanned" | "community.userUnbanned" | "post.created" | "post.updated" | "post.deleted" | "post.approved" | "post.declined" | "post.flagged" | "post.unflagged" | "post.addReaction" | "post.removeReaction" | "comment.created" | "comment.updated" | "comment.deleted" | "comment.flagged" | "comment.unflagged" | "comment.addReaction" | "comment.removeReaction" | "user.updated" | "user.flagged" | "user.unflagged" | "user.flagCleared" | "follow.created" | "follow.requested" | "follow.accepted" | "follow.unfollowed" | "follow.requestCanceled" | "follow.requestDeclined" | "follow.followerDeleted">(client: Amity.Client, namespace: string, event: T, fn: Amity.Listener<Amity.Events[T]>) => Amity.Unsubscriber;
|
|
28
|
+
export declare const createMqttMessageSubscriber: <T extends "disconnected" | "error" | "connect_error" | "reconnect_error" | "reconnect_failed" | "v3.channel.didUpdate" | "v3.channel.didJoin" | "v3.channel.didLeave" | "v3.channel.didAddUsers" | "v3.channel.didRemoveUsers" | "v3.channel.didBan" | "v3.channel.didUnban" | "v3.message.didCreate" | "v3.message.didUpdate" | "v3.message.didDelete" | "connect" | "message" | "disconnect" | "close" | "end" | "reconnect" | "v3.channel.didCreate" | "v3.channel.didDelete" | "video-streaming.didRecord" | "video-streaming.didStart" | "video-streaming.didStop" | "community.created" | "community.updated" | "community.deleted" | "community.joined" | "community.left" | "community.userAdded" | "community.userRemoved" | "community.userBanned" | "community.userUnbanned" | "post.created" | "post.updated" | "post.deleted" | "post.approved" | "post.declined" | "post.flagged" | "post.unflagged" | "post.addReaction" | "post.removeReaction" | "comment.created" | "comment.updated" | "comment.deleted" | "comment.flagged" | "comment.unflagged" | "comment.addReaction" | "comment.removeReaction" | "user.updated" | "user.flagged" | "user.unflagged" | "user.flagCleared" | "follow.created" | "follow.requested" | "follow.accepted" | "follow.unfollowed" | "follow.requestCanceled" | "follow.requestDeclined" | "follow.followerDeleted">(client: Amity.Client, namespace: string, event: string, fn: (params: Object) => void) => Amity.Unsubscriber;
|
|
28
29
|
/**
|
|
29
30
|
* Wrapper around dispatch event
|
|
30
31
|
*
|
|
31
32
|
* @hidden
|
|
32
33
|
*/
|
|
33
|
-
export declare const fireEvent: <T extends "disconnected" | "error" | "connect_error" | "reconnect_error" | "reconnect_failed" | "v3.channel.didUpdate" | "v3.channel.didJoin" | "v3.channel.didLeave" | "v3.channel.didAddUsers" | "v3.channel.didRemoveUsers" | "v3.channel.didBan" | "v3.channel.didUnban" | "v3.message.didCreate" | "v3.message.didUpdate" | "v3.message.didDelete" | "connect" | "message" | "disconnect" | "close" | "end" | "reconnect" | "v3.channel.didCreate" | "v3.channel.didDelete" | "video-streaming.didRecord" | "video-streaming.didStart" | "video-streaming.didStop" | "community.created" | "community.updated" | "community.deleted" | "community.joined" | "community.left" | "community.userAdded" | "community.userRemoved" | "community.userBanned" | "community.userUnbanned" | "post.created" | "post.updated" | "post.deleted" | "post.approved" | "post.declined" | "post.flagged" | "post.unflagged" | "post.addReaction" | "post.removeReaction" | "comment.created" | "comment.updated" | "comment.deleted" | "comment.flagged" | "comment.unflagged" | "comment.addReaction" | "comment.removeReaction" | "user.updated" | "user.flagged" | "user.unflagged" | "user.flagCleared" | "follow.created" | "follow.requested" | "follow.accepted" | "follow.unfollowed" | "follow.requestCanceled" | "follow.requestDeclined" | "follow.followerDeleted"
|
|
34
|
-
/**
|
|
35
|
-
* @hidden
|
|
36
|
-
*/
|
|
37
|
-
export declare const fireMessageEvent: <T extends "community.created" | "community.updated" | "community.deleted" | keyof Amity.MqttCommunityUserMessageEvents | keyof Amity.MqttPostMessageEvents | keyof Amity.MqttCommentMessageEvents | keyof Amity.MqttUserMessageEvents | keyof Amity.MqttFollowMessageEvents>(event: T, payload: Amity.MqttMessageEvents[T]) => void;
|
|
34
|
+
export declare const fireEvent: <T extends "disconnected" | "error" | "connect_error" | "reconnect_error" | "reconnect_failed" | "v3.channel.didUpdate" | "v3.channel.didJoin" | "v3.channel.didLeave" | "v3.channel.didAddUsers" | "v3.channel.didRemoveUsers" | "v3.channel.didBan" | "v3.channel.didUnban" | "v3.message.didCreate" | "v3.message.didUpdate" | "v3.message.didDelete" | "connect" | "message" | "disconnect" | "close" | "end" | "reconnect" | "v3.channel.didCreate" | "v3.channel.didDelete" | "video-streaming.didRecord" | "video-streaming.didStart" | "video-streaming.didStop" | "community.created" | "community.updated" | "community.deleted" | "community.joined" | "community.left" | "community.userAdded" | "community.userRemoved" | "community.userBanned" | "community.userUnbanned" | "post.created" | "post.updated" | "post.deleted" | "post.approved" | "post.declined" | "post.flagged" | "post.unflagged" | "post.addReaction" | "post.removeReaction" | "comment.created" | "comment.updated" | "comment.deleted" | "comment.flagged" | "comment.unflagged" | "comment.addReaction" | "comment.removeReaction" | "user.updated" | "user.flagged" | "user.unflagged" | "user.flagCleared" | "follow.created" | "follow.requested" | "follow.accepted" | "follow.unfollowed" | "follow.requestCanceled" | "follow.requestDeclined" | "follow.followerDeleted">(event: T, payload: Amity.Events[T]) => void;
|
|
38
35
|
//# sourceMappingURL=events.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/core/events.ts"],"names":[],"mappings":"AAsCA,cAAc;AACd,eAAO,MAAM,kBAAkB,4CAE9B,CAAA;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,oBAAoB,OAAQ,MAAM,MAAM,CAAC,IAAI,CAAC,WAAW,MAAM,MAAM,CAAC,SAAS,CAAC,SAI5F,CAAA;AAED,eAAO,MAAM,eAAe,eAAgB,MAAM,MAAM,CAAC,MAAM,CAAC,WAAW,MAAM,MAAM,CAAC,SAAS,CAAC,SAWjG,CAAA;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,qBAAqB,
|
|
1
|
+
{"version":3,"file":"events.d.ts","sourceRoot":"","sources":["../../src/core/events.ts"],"names":[],"mappings":"AAsCA,cAAc;AACd,eAAO,MAAM,kBAAkB,4CAE9B,CAAA;AAED;;;;;;;;;GASG;AACH,eAAO,MAAM,oBAAoB,OAAQ,MAAM,MAAM,CAAC,IAAI,CAAC,WAAW,MAAM,MAAM,CAAC,SAAS,CAAC,SAI5F,CAAA;AAED,eAAO,MAAM,eAAe,eAAgB,MAAM,MAAM,CAAC,MAAM,CAAC,WAAW,MAAM,MAAM,CAAC,SAAS,CAAC,SAWjG,CAAA;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,qBAAqB,kzCACxB,MAAM,MAAM,aACT,MAAM,oDAGhB,MAAM,YAiBR,CAAA;AAED,eAAO,MAAM,2BAA2B,kzCAC9B,MAAM,MAAM,aACT,MAAM,SACV,MAAM,eACA,MAAM,KAAK,IAAI,KAC3B,MAAM,YAaR,CAAA;AAED;;;;GAIG;AACH,eAAO,MAAM,SAAS,q1CAMrB,CAAA"}
|
|
@@ -33,7 +33,7 @@ export declare const isAfterBeforeRaw: (json: Object) => json is Amity.PageRaw;
|
|
|
33
33
|
*
|
|
34
34
|
* @hidden
|
|
35
35
|
*/
|
|
36
|
-
export declare const isPaged: <T extends unknown>(payload: any) => payload is Amity.Paged<T>;
|
|
36
|
+
export declare const isPaged: <T extends unknown>(payload: any) => payload is Amity.Paged<T, any>;
|
|
37
37
|
/**
|
|
38
38
|
* Converts a paging object into a b64 string token
|
|
39
39
|
*
|
|
@@ -52,7 +52,7 @@ export declare const toToken: (paging: Amity.Page | Amity.PageRaw | undefined, s
|
|
|
52
52
|
*
|
|
53
53
|
* @hidden
|
|
54
54
|
*/
|
|
55
|
-
export declare const toPage: (token?: string | undefined) => Amity.Page |
|
|
55
|
+
export declare const toPage: (token?: string | undefined) => Amity.Page | undefined;
|
|
56
56
|
/**
|
|
57
57
|
* Converts a b64 string token into a paging object
|
|
58
58
|
*
|
|
@@ -61,5 +61,5 @@ export declare const toPage: (token?: string | undefined) => Amity.Page | null;
|
|
|
61
61
|
*
|
|
62
62
|
* @hidden
|
|
63
63
|
*/
|
|
64
|
-
export declare const toPageRaw: (token?: string | undefined) => Amity.PageRaw |
|
|
64
|
+
export declare const toPageRaw: (token?: string | undefined) => Amity.PageRaw | undefined;
|
|
65
65
|
//# sourceMappingURL=paging.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paging.d.ts","sourceRoot":"","sources":["../../../src/core/query/paging.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW,SAAU,MAAM,sCAEvC,CAAA;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,SAAU,MAAM,wCAEzC,CAAA;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,SAAU,MAAM,0BAE5C,CAAA;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,OAAO,+BAAgC,GAAG,
|
|
1
|
+
{"version":3,"file":"paging.d.ts","sourceRoot":"","sources":["../../../src/core/query/paging.ts"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW,SAAU,MAAM,sCAEvC,CAAA;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,SAAU,MAAM,wCAEzC,CAAA;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,gBAAgB,SAAU,MAAM,0BAE5C,CAAA;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,OAAO,+BAAgC,GAAG,mCAMtD,CAAA;AAED;;;;;;;;GAQG;AACH,eAAO,MAAM,OAAO,WACV,MAAM,IAAI,GAAG,MAAM,OAAO,GAAG,SAAS,SACvC,MAAM,gBAAgB,KAC5B,MAAM,KAAK,GAAG,SA8ChB,CAAA;AAGD;;;;;;;GAOG;AACH,eAAO,MAAM,MAAM,kCAA0B,MAAM,IAAI,GAAG,SA0BzD,CAAA;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,SAAS,kCAA0B,MAAM,OAAO,GAAG,SAW/D,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscription.d.ts","sourceRoot":"","sources":["../../src/core/subscription.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"subscription.d.ts","sourceRoot":"","sources":["../../src/core/subscription.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAIxC,oBAAY,kBAAkB;IAC5B,SAAS,cAAc;IACvB,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,gBAAgB,qBAAqB;IACrC,IAAI,SAAS;CACd;AAkBD,eAAO,MAAM,iBAAiB,aAClB,MAAM,YAAY,UACrB,QAAQ,kBAAkB,EAAE,mBAAmB,IAAI,CAAC,KAC1D,MACiC,CAAA;AAEpC,eAAO,MAAM,YAAY,aACb,MAAM,YAAY,UACrB,QAAQ,kBAAkB,EAAE,mBAAmB,SAAS,CAAC,KAC/D,MAIA,CAAA;AAEH,eAAO,MAAM,YAAY,aACb,MAAM,YAAY,UACrB,mBAAmB,IAAI,GAAG,mBAAmB,OAAO,KAC1D,MAOF,CAAC;AAEF,eAAO,MAAM,eAAe,aAAc,MAAM,YAAY,KAAG,MAE9D,CAAC;AAEF,eAAO,MAAM,mBAAmB,QAAO,MAMtC,CAAA;AAED,eAAO,MAAM,oBAAoB,QAAO,MAMvC,CAAA;AAKD,wBAAgB,cAAc,CAC5B,KAAK,EAAE,MAAM,EACb,QAAQ,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,QAAQ,GAAG,IAAI,CAAC,GACzC,KAAK,CAAC,YAAY,CAapB"}
|
|
@@ -16,7 +16,7 @@ export declare const queryGlobalFeed: {
|
|
|
16
16
|
(query?: {
|
|
17
17
|
dataTypes?: ("video" | "image" | "file" | "liveStream")[] | undefined;
|
|
18
18
|
useCustomRanking?: boolean | undefined;
|
|
19
|
-
page?: Amity.Page
|
|
19
|
+
page?: Amity.Page | undefined;
|
|
20
20
|
} | undefined): Promise<Amity.Cached<Amity.Paged<Amity.Post>>>;
|
|
21
21
|
/**
|
|
22
22
|
* ```js
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onFollowInfoUpdated.d.ts","sourceRoot":"","sources":["../../../src/follow/events/onFollowInfoUpdated.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,mBAAmB,aAAc,MAAM,QAAQ,CAAC,MAAM,UAAU,CAAC,KAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"onFollowInfoUpdated.d.ts","sourceRoot":"","sources":["../../../src/follow/events/onFollowInfoUpdated.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,mBAAmB,aAAc,MAAM,QAAQ,CAAC,MAAM,UAAU,CAAC,KAAG,MAAM,YAwBtF,CAAA"}
|
|
@@ -1,3 +1,2 @@
|
|
|
1
1
|
export declare const createFollowEventSubscriber: (event: keyof Amity.MqttFollowMessageEvents, callback: Amity.Listener<Amity.FollowStatus>) => Amity.Unsubscriber;
|
|
2
|
-
export declare const subscribeMqttFollowEvents: () => Amity.Unsubscriber;
|
|
3
2
|
//# sourceMappingURL=utils.d.ts.map
|