@amityco/ts-sdk 0.0.1-beta.43.1 → 0.0.1-beta.44.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/dist/category/api/queryCategories.d.ts.map +1 -1
- package/dist/comment/api/queryComments.d.ts.map +1 -1
- package/dist/community/api/queryCommunities.d.ts.map +1 -1
- package/dist/core/query/filtering.d.ts +10 -0
- package/dist/core/query/filtering.d.ts.map +1 -1
- package/dist/index.cjs.js +82 -60
- package/dist/index.esm.js +82 -61
- package/dist/index.umd.js +4 -4
- package/dist/message/api/queryMessages.d.ts +1 -17
- package/dist/message/api/queryMessages.d.ts.map +1 -1
- package/dist/message/utils/prepareMessagePayload.d.ts.map +1 -1
- package/dist/post/api/queryPosts.d.ts.map +1 -1
- package/dist/post/observers/livePosts.d.ts.map +1 -1
- package/dist/subChannel/api/querySubChannels.d.ts.map +1 -1
- package/dist/utils/inferIsDeleted.d.ts +2 -0
- package/dist/utils/inferIsDeleted.d.ts.map +1 -0
- package/dist/utils/tests/inferIsDeleted.test.d.ts +2 -0
- package/dist/utils/tests/inferIsDeleted.test.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/category/api/queryCategories.ts +3 -1
- package/src/category/observers/liveCategories.ts +1 -1
- package/src/category/observers/tests/liveCategories.test.ts +7 -5
- package/src/channel/api/tests/removeChannelMembers.test.ts +3 -4
- package/src/channel/observers/tests/liveChannels.test.ts +6 -6
- package/src/client/api/connectClient.ts +1 -1
- package/src/comment/api/queryComments.ts +3 -1
- package/src/comment/observers/liveComments.ts +1 -1
- package/src/community/api/queryCommunities.ts +2 -1
- package/src/community/api/test/queryCommunity.test.ts +2 -2
- package/src/community/observers/liveCommunities.ts +1 -1
- package/src/community/observers/tests/liveCommunities.test.ts +7 -7
- package/src/core/query/filtering.ts +38 -0
- package/src/message/api/queryMessages.ts +15 -50
- package/src/message/api/tests/queryMessages.test.ts +2 -37
- package/src/message/observers/liveMessages.ts +2 -2
- package/src/message/tests/observers/liveMessage.test.ts +1 -1
- package/src/message/tests/observers/liveMessages.test.ts +1 -1
- package/src/message/utils/prepareMessagePayload.ts +3 -1
- package/src/post/api/queryPosts.ts +3 -1
- package/src/post/observers/livePosts.ts +7 -2
- package/src/post/observers/tests/livePosts.test.ts +10 -4
- package/src/subChannel/api/querySubChannels.ts +3 -1
- package/src/subChannel/observers/liveSubChannels.ts +1 -1
- package/src/utils/inferIsDeleted.ts +16 -0
- package/src/utils/tests/inferIsDeleted.test.ts +15 -0
package/dist/index.esm.js
CHANGED
|
@@ -81,8 +81,8 @@ const PostContentType = Object.freeze({
|
|
|
81
81
|
|
|
82
82
|
function getVersion() {
|
|
83
83
|
try {
|
|
84
|
-
// the string ''v0.0.1-beta.
|
|
85
|
-
return 'v0.0.1-beta.
|
|
84
|
+
// the string ''v0.0.1-beta.44.0-esm'' should be replaced by actual value by @rollup/plugin-replace
|
|
85
|
+
return 'v0.0.1-beta.44.0-esm';
|
|
86
86
|
}
|
|
87
87
|
catch (error) {
|
|
88
88
|
return '__dev__';
|
|
@@ -1160,6 +1160,37 @@ const filterByCommunityMembership = (collection, membership, userId) => {
|
|
|
1160
1160
|
// only membership value remainging is 'notMember'
|
|
1161
1161
|
return !communityUser || communityUser.communityMembership !== 'none';
|
|
1162
1162
|
});
|
|
1163
|
+
};
|
|
1164
|
+
/**
|
|
1165
|
+
* Filter a post collection by dataType
|
|
1166
|
+
*
|
|
1167
|
+
* @param collection the post to filter
|
|
1168
|
+
* @param dataTypes of the post to be filtered by
|
|
1169
|
+
* @returns a filtered collection with items only matching the criteria
|
|
1170
|
+
*
|
|
1171
|
+
* @hidden
|
|
1172
|
+
*/
|
|
1173
|
+
const filterByPostDataTypes = (collection, dataTypes) => {
|
|
1174
|
+
const filteredPosts = [];
|
|
1175
|
+
collection.forEach(c => {
|
|
1176
|
+
var _a;
|
|
1177
|
+
/*
|
|
1178
|
+
* A text post with no children is just a text post
|
|
1179
|
+
*/
|
|
1180
|
+
if (c.dataType === 'text' && !c.children.length)
|
|
1181
|
+
return;
|
|
1182
|
+
if (c.children.length) {
|
|
1183
|
+
const childPost = (_a = pullFromCache(['post', 'get', c.children[0]])) === null || _a === void 0 ? void 0 : _a.data;
|
|
1184
|
+
if (childPost && (dataTypes === null || dataTypes === void 0 ? void 0 : dataTypes.includes(childPost === null || childPost === void 0 ? void 0 : childPost.dataType))) {
|
|
1185
|
+
// @ts-ignore
|
|
1186
|
+
filteredPosts.push(childPost);
|
|
1187
|
+
}
|
|
1188
|
+
return;
|
|
1189
|
+
}
|
|
1190
|
+
if (dataTypes === null || dataTypes === void 0 ? void 0 : dataTypes.includes(c.dataType))
|
|
1191
|
+
filteredPosts.push(c);
|
|
1192
|
+
});
|
|
1193
|
+
return filteredPosts;
|
|
1163
1194
|
};
|
|
1164
1195
|
|
|
1165
1196
|
// Note:
|
|
@@ -20870,7 +20901,7 @@ const connectClient = async (params, sessionHandler, config) => {
|
|
|
20870
20901
|
* Cannot push to subscriptions as watcher needs to continue working even if
|
|
20871
20902
|
* token expires
|
|
20872
20903
|
*/
|
|
20873
|
-
unsubWatcher = client.accessTokenExpiryWatcher((_b = client.token) === null || _b === void 0 ? void 0 : _b.
|
|
20904
|
+
unsubWatcher = client.accessTokenExpiryWatcher((_b = client.token) === null || _b === void 0 ? void 0 : _b.expiresAt, (_c = client.token) === null || _c === void 0 ? void 0 : _c.issuedAt, sessionHandler);
|
|
20874
20905
|
setActiveUser(users[0]);
|
|
20875
20906
|
}
|
|
20876
20907
|
catch (error) {
|
|
@@ -21581,6 +21612,22 @@ const prepareMessagePayloadForCache = (payload) => {
|
|
|
21581
21612
|
}
|
|
21582
21613
|
};
|
|
21583
21614
|
|
|
21615
|
+
/*
|
|
21616
|
+
* This is a simple utility that infers the value of isDeleted based on the
|
|
21617
|
+
* value of includeDeleted
|
|
21618
|
+
*
|
|
21619
|
+
* There are two important things to note here:
|
|
21620
|
+
* 1. `includeDeleted` is purely client side query param and not recognized by
|
|
21621
|
+
* the server
|
|
21622
|
+
* 2. The only values we wish to expose with regards to `isDeleted` (the server
|
|
21623
|
+
* param for queries) is false | undefined and want to disallow users to query
|
|
21624
|
+
* for deleted entities
|
|
21625
|
+
*
|
|
21626
|
+
* Although this is a very simple utility, it's only purpose is to keep things
|
|
21627
|
+
* DRY
|
|
21628
|
+
*/
|
|
21629
|
+
const inferIsDeleted = (includeDeleted) => includeDeleted === true ? undefined : false;
|
|
21630
|
+
|
|
21584
21631
|
const getCachedMarker$1 = (message) => {
|
|
21585
21632
|
var _a, _b;
|
|
21586
21633
|
const key = {
|
|
@@ -21659,7 +21706,7 @@ function convertParams(_a) {
|
|
|
21659
21706
|
}
|
|
21660
21707
|
function convertQueryParams$1(_a) {
|
|
21661
21708
|
var { page, sortBy, subChannelId, tags, includeDeleted } = _a, rest = __rest(_a, ["page", "sortBy", "subChannelId", "tags", "includeDeleted"]);
|
|
21662
|
-
const out = Object.assign(Object.assign({}, rest), { messageFeedId: subChannelId, isDeleted: includeDeleted
|
|
21709
|
+
const out = Object.assign(Object.assign({}, rest), { messageFeedId: subChannelId, isDeleted: inferIsDeleted(includeDeleted), options: { token: toToken(page || { limit: 10 }, 'afterbeforeraw') } });
|
|
21663
21710
|
if (sortBy !== undefined) {
|
|
21664
21711
|
out.options.sortBy = sortBy;
|
|
21665
21712
|
}
|
|
@@ -23501,52 +23548,23 @@ const queryMessages = async (query) => {
|
|
|
23501
23548
|
const data = await prepareMessagePayload(payload);
|
|
23502
23549
|
const { messages } = data;
|
|
23503
23550
|
const cachedAt = client.cache && Date.now();
|
|
23504
|
-
|
|
23505
|
-
|
|
23506
|
-
|
|
23507
|
-
|
|
23508
|
-
|
|
23509
|
-
|
|
23551
|
+
if (client.cache) {
|
|
23552
|
+
/*
|
|
23553
|
+
* queryMessages.locally is unsupported for messages as message list updates
|
|
23554
|
+
* frequently and leads to bugs when user switches between channels, i.e. when
|
|
23555
|
+
* the public function (live messages) calls unmount. The list fetched on
|
|
23556
|
+
* after from the cache is stale.
|
|
23557
|
+
*/
|
|
23558
|
+
ingestInCache(data, { cachedAt });
|
|
23559
|
+
const cacheKey = ['message', 'query', params];
|
|
23560
|
+
pushToCache(cacheKey, { messages: messages.map(getResolver('message')), paging });
|
|
23561
|
+
}
|
|
23510
23562
|
fireEvent('local.message.fetched', { messages });
|
|
23511
23563
|
const nextPage = toPageRaw(paging.next);
|
|
23512
23564
|
const prevPage = toPageRaw(paging.previous);
|
|
23513
23565
|
return { data: messages, cachedAt, prevPage, nextPage };
|
|
23514
23566
|
};
|
|
23515
|
-
/* end_public_function */
|
|
23516
|
-
/**
|
|
23517
|
-
* ```js
|
|
23518
|
-
* import { queryMessages } from '@amityco/ts-sdk'
|
|
23519
|
-
* const messages = queryMessages.locally!({ channelId })
|
|
23520
|
-
* ```
|
|
23521
|
-
*
|
|
23522
|
-
* Queries a paginable list of {@link Amity.Message} objects from cache
|
|
23523
|
-
*
|
|
23524
|
-
* @param query The query parameters
|
|
23525
|
-
* @returns A page of {@link Amity.Message} objects
|
|
23526
|
-
*
|
|
23527
|
-
* @category Message API
|
|
23528
|
-
*/
|
|
23529
|
-
queryMessages.locally = (query) => {
|
|
23530
|
-
var _a, _b;
|
|
23531
|
-
const client = getActiveClient();
|
|
23532
|
-
client.log('message/queryMessages.locally', query);
|
|
23533
|
-
if (!client.cache)
|
|
23534
|
-
return;
|
|
23535
|
-
const params = convertQueryParams$1(query);
|
|
23536
|
-
const queryKey = ['message', 'query', params];
|
|
23537
|
-
const { data, cachedAt } = (_a = pullFromCache(queryKey)) !== null && _a !== void 0 ? _a : {};
|
|
23538
|
-
if (!(data === null || data === void 0 ? void 0 : data.messages.length))
|
|
23539
|
-
return;
|
|
23540
|
-
const messages = data.messages
|
|
23541
|
-
.map(messageId => pullFromCache(['message', 'get', messageId]))
|
|
23542
|
-
.filter(Boolean)
|
|
23543
|
-
.map(({ data }) => data);
|
|
23544
|
-
const prevPage = toPageRaw(data === null || data === void 0 ? void 0 : data.paging.previous);
|
|
23545
|
-
const nextPage = toPageRaw(data === null || data === void 0 ? void 0 : data.paging.next);
|
|
23546
|
-
return messages.length === ((_b = data === null || data === void 0 ? void 0 : data.messages) === null || _b === void 0 ? void 0 : _b.length)
|
|
23547
|
-
? { data: messages, cachedAt, prevPage, nextPage }
|
|
23548
|
-
: undefined;
|
|
23549
|
-
};
|
|
23567
|
+
/* end_public_function */
|
|
23550
23568
|
|
|
23551
23569
|
const uuid = () => nativeIdGenerator.v4().toString();
|
|
23552
23570
|
|
|
@@ -23890,7 +23908,7 @@ const queryPosts = async (query) => {
|
|
|
23890
23908
|
// API-FIX: backend should answer Amity.Response (2)
|
|
23891
23909
|
// const { data } = await client.http.get<Amity.Response<Amity.PagedResponse<Amity.PostPayload>>>(
|
|
23892
23910
|
const { data } = await client.http.get(`/api/v4/posts`, {
|
|
23893
|
-
params: Object.assign(Object.assign({}, params), { isDeleted: includeDeleted
|
|
23911
|
+
params: Object.assign(Object.assign({}, params), { isDeleted: inferIsDeleted(includeDeleted),
|
|
23894
23912
|
/*
|
|
23895
23913
|
* when creating post like image, file, video BE will create 2 posts
|
|
23896
23914
|
* 1. parent post to store text with dataType=text
|
|
@@ -24235,7 +24253,7 @@ const queryCommunities = async (query) => {
|
|
|
24235
24253
|
// API-FIX: backend doesnt answer Amity.Response
|
|
24236
24254
|
// const { data } = await client.http.get<Amity.Response<Amity.PagedResponse<CommunityPayload>>>(
|
|
24237
24255
|
const { data } = await client.http.get(`/api/v3/communities`, {
|
|
24238
|
-
params: Object.assign(Object.assign({}, restParams), { isDeleted: includeDeleted
|
|
24256
|
+
params: Object.assign(Object.assign({}, restParams), { isDeleted: inferIsDeleted(includeDeleted), keyword: displayName, filter: membership, options: {
|
|
24239
24257
|
token: toToken(page, 'skiplimit'),
|
|
24240
24258
|
} }),
|
|
24241
24259
|
});
|
|
@@ -25086,7 +25104,7 @@ const queryComments = async (query) => {
|
|
|
25086
25104
|
// API-FIX: backend should answer Amity.Response (2)
|
|
25087
25105
|
// const { data } = await client.http.get<Amity.Response<Amity.PagedResponse<Amity.CommentPayload>>>(
|
|
25088
25106
|
const { data } = await client.http.get(`/api/v3/comments`, {
|
|
25089
|
-
params: Object.assign(Object.assign({}, params), { isDeleted: includeDeleted
|
|
25107
|
+
params: Object.assign(Object.assign({}, params), { isDeleted: inferIsDeleted(includeDeleted),
|
|
25090
25108
|
// filterByParentId, API-FIX: backend does not support this boolean LOL. what the hell seriously.
|
|
25091
25109
|
options }),
|
|
25092
25110
|
});
|
|
@@ -27925,7 +27943,7 @@ const querySubChannels = async (query) => {
|
|
|
27925
27943
|
client.log('channel/querySubChannels', query);
|
|
27926
27944
|
const _a = convertQueryParams(query), { page = { limit: 10 }, channelId, includeDeleted } = _a, params = __rest(_a, ["page", "channelId", "includeDeleted"]);
|
|
27927
27945
|
const response = await client.http.get(`/api/v5/message-feeds/channel/${channelId}`, {
|
|
27928
|
-
params: Object.assign(Object.assign({}, params), { isDeleted: includeDeleted
|
|
27946
|
+
params: Object.assign(Object.assign({}, params), { isDeleted: inferIsDeleted(includeDeleted), options: {
|
|
27929
27947
|
token: toToken(page, 'skiplimit'),
|
|
27930
27948
|
} }),
|
|
27931
27949
|
});
|
|
@@ -28308,7 +28326,7 @@ const liveSubChannels = (params, callback, config) => {
|
|
|
28308
28326
|
const responder = (data) => {
|
|
28309
28327
|
var _a;
|
|
28310
28328
|
let subChannels = data.data;
|
|
28311
|
-
if (params.includeDeleted
|
|
28329
|
+
if (!params.includeDeleted) {
|
|
28312
28330
|
subChannels = filterByPropEquality(subChannels, 'isDeleted', false);
|
|
28313
28331
|
}
|
|
28314
28332
|
subChannels.sort(sortByLastActivity);
|
|
@@ -28432,7 +28450,7 @@ const liveMessages = (params, callback, config) => {
|
|
|
28432
28450
|
* for cases when message is deleted via RTE, this flag is used to get
|
|
28433
28451
|
* items from cache that are !deleted
|
|
28434
28452
|
*/
|
|
28435
|
-
if (params.includeDeleted
|
|
28453
|
+
if (!params.includeDeleted) {
|
|
28436
28454
|
messages = filterByPropEquality(messages, 'isDeleted', false);
|
|
28437
28455
|
}
|
|
28438
28456
|
callback({
|
|
@@ -28450,6 +28468,7 @@ const liveMessages = (params, callback, config) => {
|
|
|
28450
28468
|
return;
|
|
28451
28469
|
collection.data = [...new Set([message.messageId, ...collection.data])];
|
|
28452
28470
|
pushToCache(cacheKey, collection);
|
|
28471
|
+
disposers.push(() => dropFromCache(cacheKey));
|
|
28453
28472
|
responder(collection);
|
|
28454
28473
|
};
|
|
28455
28474
|
const onFetch = () => {
|
|
@@ -28478,7 +28497,6 @@ const liveMessages = (params, callback, config) => {
|
|
|
28478
28497
|
return () => {
|
|
28479
28498
|
log(`liveMessages(tmpid: ${timestamp}) > dispose`);
|
|
28480
28499
|
disposers.forEach(fn => fn());
|
|
28481
|
-
dropFromCache(cacheKey);
|
|
28482
28500
|
};
|
|
28483
28501
|
};
|
|
28484
28502
|
|
|
@@ -28955,7 +28973,7 @@ const liveCommunities = (params, callback, config) => {
|
|
|
28955
28973
|
.filter(Boolean)
|
|
28956
28974
|
.map(({ data }) => data)) !== null && _a !== void 0 ? _a : [];
|
|
28957
28975
|
communities = filterByPropEquality(communities, 'displayName', params.displayName);
|
|
28958
|
-
if (params.includeDeleted
|
|
28976
|
+
if (!params.includeDeleted) {
|
|
28959
28977
|
communities = filterByPropEquality(communities, 'isDeleted', false);
|
|
28960
28978
|
}
|
|
28961
28979
|
if (params.categoryId) {
|
|
@@ -29199,7 +29217,7 @@ const queryCategories = async (query) => {
|
|
|
29199
29217
|
client.log('category/queryCategories', query);
|
|
29200
29218
|
const _a = query !== null && query !== void 0 ? query : {}, { page = { limit: 10 }, includeDeleted } = _a, params = __rest(_a, ["page", "includeDeleted"]);
|
|
29201
29219
|
const { data } = await client.http.get(`/api/v3/community-categories`, {
|
|
29202
|
-
params: Object.assign(Object.assign({}, params), { isDeleted: includeDeleted
|
|
29220
|
+
params: Object.assign(Object.assign({}, params), { isDeleted: inferIsDeleted(includeDeleted), options: {
|
|
29203
29221
|
token: toToken(page, 'skiplimit'),
|
|
29204
29222
|
} }),
|
|
29205
29223
|
});
|
|
@@ -29342,7 +29360,7 @@ const liveCategories = (params, callback, config) => {
|
|
|
29342
29360
|
.map(categoryId => pullFromCache(['category', 'get', categoryId]))
|
|
29343
29361
|
.filter(Boolean)
|
|
29344
29362
|
.map(({ data }) => data)) !== null && _a !== void 0 ? _a : [];
|
|
29345
|
-
if (params.includeDeleted
|
|
29363
|
+
if (!params.includeDeleted) {
|
|
29346
29364
|
categories = filterByPropEquality(categories, 'isDeleted', false);
|
|
29347
29365
|
}
|
|
29348
29366
|
switch (params.sortBy) {
|
|
@@ -30446,14 +30464,14 @@ const livePosts = (params, callback, config) => {
|
|
|
30446
30464
|
{ targetId: params.targetId, targetType: params.targetType },
|
|
30447
30465
|
];
|
|
30448
30466
|
const responder = (data) => {
|
|
30449
|
-
var _a, _b;
|
|
30467
|
+
var _a, _b, _c;
|
|
30450
30468
|
let posts = (_a = data.data
|
|
30451
30469
|
.map(postId => pullFromCache(['post', 'get', postId]))
|
|
30452
30470
|
.filter(Boolean)
|
|
30453
30471
|
.map(({ data }) => data)) !== null && _a !== void 0 ? _a : [];
|
|
30454
30472
|
const sortBy = params.sortBy ? params.sortBy : 'lastCreated';
|
|
30455
30473
|
posts = posts.sort(sortBy === 'lastCreated' ? sortByLastCreated : sortByFirstCreated);
|
|
30456
|
-
if (params.includeDeleted
|
|
30474
|
+
if (!params.includeDeleted) {
|
|
30457
30475
|
posts = filterByPropEquality(posts, 'isDeleted', false);
|
|
30458
30476
|
}
|
|
30459
30477
|
if (params.tags) {
|
|
@@ -30462,10 +30480,13 @@ const livePosts = (params, callback, config) => {
|
|
|
30462
30480
|
if (params.targetType === 'community' && params.feedType) {
|
|
30463
30481
|
posts = filterByFeedType(posts, params.feedType);
|
|
30464
30482
|
}
|
|
30483
|
+
if ((_b = params.dataTypes) === null || _b === void 0 ? void 0 : _b.length) {
|
|
30484
|
+
posts = filterByPostDataTypes(posts, params.dataTypes);
|
|
30485
|
+
}
|
|
30465
30486
|
callback({
|
|
30466
30487
|
onNextPage: onFetch,
|
|
30467
30488
|
data: posts,
|
|
30468
|
-
hasNextPage: !!((
|
|
30489
|
+
hasNextPage: !!((_c = data.params) === null || _c === void 0 ? void 0 : _c.page),
|
|
30469
30490
|
loading: data.loading,
|
|
30470
30491
|
error: data.error,
|
|
30471
30492
|
});
|
|
@@ -30486,6 +30507,7 @@ const livePosts = (params, callback, config) => {
|
|
|
30486
30507
|
collection.data = [...new Set([post.postId, ...collection.data])];
|
|
30487
30508
|
}
|
|
30488
30509
|
pushToCache(cacheKey, collection);
|
|
30510
|
+
disposers.push(() => dropFromCache(cacheKey));
|
|
30489
30511
|
responder(collection);
|
|
30490
30512
|
};
|
|
30491
30513
|
const onFetch = () => {
|
|
@@ -30514,7 +30536,6 @@ const livePosts = (params, callback, config) => {
|
|
|
30514
30536
|
return () => {
|
|
30515
30537
|
log(`livePosts(tmpid: ${timestamp}) > dispose`);
|
|
30516
30538
|
disposers.forEach(fn => fn());
|
|
30517
|
-
dropFromCache(cacheKey);
|
|
30518
30539
|
};
|
|
30519
30540
|
};
|
|
30520
30541
|
|
|
@@ -30671,7 +30692,7 @@ const liveComments = (params, callback, config) => {
|
|
|
30671
30692
|
.map(commentId => pullFromCache(['comment', 'get', commentId]))
|
|
30672
30693
|
.filter(Boolean)
|
|
30673
30694
|
.map(({ data }) => data)) !== null && _a !== void 0 ? _a : [];
|
|
30674
|
-
if (params.includeDeleted
|
|
30695
|
+
if (!params.includeDeleted) {
|
|
30675
30696
|
comments = filterByPropEquality(comments, 'isDeleted', false);
|
|
30676
30697
|
}
|
|
30677
30698
|
const sortBy = params.sortBy ? params.sortBy : 'lastCreated';
|
|
@@ -31354,4 +31375,4 @@ const createUserToken = async (apiKey, apiRegion, params) => {
|
|
|
31354
31375
|
return { accessToken: data.accessToken };
|
|
31355
31376
|
};
|
|
31356
31377
|
|
|
31357
|
-
export { API_REGIONS, CommunityPostSettingMaps, CommunityPostSettings, ContentFeedType, DefaultCommunityPostSetting, FileType, MARKER_INCLUDED_SUB_CHANNEL_TYPE, MessageContentType, PostContentType, SubscriptionLevels, VERSION, VideoResolution, VideoSize, VideoTranscodingStatus, acceptFollower, addChannelMembers, addChannelMembersRole, addCommunityMembers, addCommunityMembersRoles, addReaction, approvePost, backupCache, banChannelMembers, closePoll, connectClient, convertFromRaw$1 as convertFromRaw, convertQueryParams, createChannel, createClient, createComment, createCommunity, createFile, createImage, createMessage, createPoll, createPost, createQuery, createReport, createStream, createSubChannel, createUserToken, createVideo, declineFollower, declinePost, deleteChannel, deleteComment, deleteCommunity, deleteFile, deleteMessage, deletePoll, deletePost, deleteReport, deleteStream, deleteSubChannel, disableCache, disconnectClient, disposeStream, dropFromCache, enableCache, fileUrlWithSize, filterByChannelMembership, filterByCommunityMembership, filterByFeedType, filterByPropEquality, filterByPropInclusion, follow, getActiveClient, getActiveUser, getCategory, getChannel, getChannelMarkers, getChannelTopic, getChannels, getComment, getCommentTopic, getComments, getCommunities, getCommunity, getCommunityTopic, getFeedSettings, getFile, getFollowInfo, getMarkerSyncEvents, getMessage, getMessageMarkers, getMessageTopic, getMessages, getMyFollowersTopic, getMyFollowingsTopic, getNetworkTopic, getPoll, getPost, getPostTopic, getPosts, getRecommendedCommunities, getRole, getSmartFeedChannelTopic, getSmartFeedMessageTopic, getSmartFeedSubChannelTopic, getStream, getSubChannel, getSubChannelMarkers, getSubChannelTopic, getSubChannels, getTopTrendingCommunities, getTotalUnreadCount, getUnreadCount$1 as getUnreadCount, getUser, getUserMarker, getUserTopic, getUsers, isAfterBefore, isAfterBeforeRaw, isCachable, isConnected, isFetcher, isFresh, isLocal, isMutator, isOffline, isPaged, isReportedByMe, isSkip, isUnreadCountSupport$1 as isUnreadCountSupport, joinChannel, joinCommunity, leaveChannel, leaveCommunity, liveCategories, liveChannel, liveChannelMembers, liveChannels, liveComment, liveComments, liveCommunities, liveCommunity, liveCommunityMembers, liveFollowInfo, liveFollowers, liveFollowings, liveMessage, liveMessages, livePost, livePosts, liveReactions, liveSubChannel, liveSubChannels, liveUser, liveUsers, markAsDelivered, markerSync, markerSyncTrigger, mergeInCache, observeChannel, observeChannels, observeComment, observeComments, observeCommunity, observeFile, observeFollowInfo, observeFollowers, observeFollowings, observeMessage, observeMessages, observePoll, observePost, observePosts, observeUser, onChannelCreated, onChannelDeleted, onChannelJoined, onChannelLeft, onChannelMarkerFetched, onChannelMemberAdded, onChannelMemberBanned, onChannelMemberRemoved, onChannelMemberUnbanned, onChannelMuted, onChannelUpdated, onClientBanned, onClientDisconnected, onCommentCreated, onCommentDeleted, onCommentFlagged, onCommentReactionAdded, onCommentReactionRemoved, onCommentUnflagged, onCommentUpdated, onCommunityCreated, onCommunityDeleted, onCommunityJoined, onCommunityLeft, onCommunityUpdated, onCommunityUserAdded, onCommunityUserBanned, onCommunityUserChanged, onCommunityUserRemoved, onCommunityUserRoleAdded, onCommunityUserRoleRemoved, onCommunityUserUnbanned, onConnectionError, onFeedMarkerFetched, onFollowInfoUpdated, onFollowRequestAccepted, onFollowRequestCanceled, onFollowRequestDeclined, onFollowerDeleted, onFollowerRequested, onMessageCreated, onMessageDeleted, onMessageFetched, onMessageFlagCleared, onMessageFlagged, onMessageMarkerFetched, onMessageReactionAdded, onMessageReactionRemoved, onMessageUnflagged, onMessageUpdated, onPollDeleted, onPollUpdated, onPostApproved, onPostCreated, onPostDeclined, onPostDeleted, onPostFlagged, onPostReactionAdded, onPostReactionRemoved, onPostUnflagged, onPostUpdated, onReactionAdded, onReactionRemoved, onReactorAdded, onReactorRemoved, onSessionStateChange, onStreamRecorded, onStreamStarted, onStreamStopped, onSubChannelCreated, onSubChannelDeleted, onSubChannelMarkerFetched, onSubChannelMarkerUpdated, onSubChannelUpdated, onUserDeleted, onUserFlagCleared, onUserFlagged, onUserFollowed, onUserMarkerFetched, onUserUnflagged, onUserUnfollowed, onUserUpdated, prepareSubChannelPayload, pullFromCache, pushMarkerSyncEvent, pushToCache, queryCache, queryCategories, queryChannelMembers, queryChannels, queryComments, queryCommunities, queryCommunityMembers, queryFollowers, queryFollowings, queryGlobalFeed, queryMessages, queryOptions, queryPosts, queryReactions, queryRoles, queryStreams, querySubChannels, queryUsers, removeChannelMembers, removeChannelMembersRole, removeCommunityMembers, removeCommunityMembersRoles, removeReaction, renewal, restoreCache, runQuery, setActiveUser, setMarkerSyncEvents, sortByChannelSegment, sortByDisplayName, sortByFirstCreated, sortByLastActivity, sortByLastCreated, sortByName, sortBySegmentNumber, startReading, startReadingAPI, startUnreadSync, stopReading, stopReadingAPI, stopUnreadSyncing, subscribeTopic, toPage, toPageRaw, toToken, unbanChannelMembers, unfollow, updateChannel, updateComment, updateCommunity, updateMessage, updatePost, updateStream, updateSubChannel, updateSubChannelMarker, updateUser, upsertInCache, votePoll, wipeCache };
|
|
31378
|
+
export { API_REGIONS, CommunityPostSettingMaps, CommunityPostSettings, ContentFeedType, DefaultCommunityPostSetting, FileType, MARKER_INCLUDED_SUB_CHANNEL_TYPE, MessageContentType, PostContentType, SubscriptionLevels, VERSION, VideoResolution, VideoSize, VideoTranscodingStatus, acceptFollower, addChannelMembers, addChannelMembersRole, addCommunityMembers, addCommunityMembersRoles, addReaction, approvePost, backupCache, banChannelMembers, closePoll, connectClient, convertFromRaw$1 as convertFromRaw, convertQueryParams, createChannel, createClient, createComment, createCommunity, createFile, createImage, createMessage, createPoll, createPost, createQuery, createReport, createStream, createSubChannel, createUserToken, createVideo, declineFollower, declinePost, deleteChannel, deleteComment, deleteCommunity, deleteFile, deleteMessage, deletePoll, deletePost, deleteReport, deleteStream, deleteSubChannel, disableCache, disconnectClient, disposeStream, dropFromCache, enableCache, fileUrlWithSize, filterByChannelMembership, filterByCommunityMembership, filterByFeedType, filterByPostDataTypes, filterByPropEquality, filterByPropInclusion, follow, getActiveClient, getActiveUser, getCategory, getChannel, getChannelMarkers, getChannelTopic, getChannels, getComment, getCommentTopic, getComments, getCommunities, getCommunity, getCommunityTopic, getFeedSettings, getFile, getFollowInfo, getMarkerSyncEvents, getMessage, getMessageMarkers, getMessageTopic, getMessages, getMyFollowersTopic, getMyFollowingsTopic, getNetworkTopic, getPoll, getPost, getPostTopic, getPosts, getRecommendedCommunities, getRole, getSmartFeedChannelTopic, getSmartFeedMessageTopic, getSmartFeedSubChannelTopic, getStream, getSubChannel, getSubChannelMarkers, getSubChannelTopic, getSubChannels, getTopTrendingCommunities, getTotalUnreadCount, getUnreadCount$1 as getUnreadCount, getUser, getUserMarker, getUserTopic, getUsers, isAfterBefore, isAfterBeforeRaw, isCachable, isConnected, isFetcher, isFresh, isLocal, isMutator, isOffline, isPaged, isReportedByMe, isSkip, isUnreadCountSupport$1 as isUnreadCountSupport, joinChannel, joinCommunity, leaveChannel, leaveCommunity, liveCategories, liveChannel, liveChannelMembers, liveChannels, liveComment, liveComments, liveCommunities, liveCommunity, liveCommunityMembers, liveFollowInfo, liveFollowers, liveFollowings, liveMessage, liveMessages, livePost, livePosts, liveReactions, liveSubChannel, liveSubChannels, liveUser, liveUsers, markAsDelivered, markerSync, markerSyncTrigger, mergeInCache, observeChannel, observeChannels, observeComment, observeComments, observeCommunity, observeFile, observeFollowInfo, observeFollowers, observeFollowings, observeMessage, observeMessages, observePoll, observePost, observePosts, observeUser, onChannelCreated, onChannelDeleted, onChannelJoined, onChannelLeft, onChannelMarkerFetched, onChannelMemberAdded, onChannelMemberBanned, onChannelMemberRemoved, onChannelMemberUnbanned, onChannelMuted, onChannelUpdated, onClientBanned, onClientDisconnected, onCommentCreated, onCommentDeleted, onCommentFlagged, onCommentReactionAdded, onCommentReactionRemoved, onCommentUnflagged, onCommentUpdated, onCommunityCreated, onCommunityDeleted, onCommunityJoined, onCommunityLeft, onCommunityUpdated, onCommunityUserAdded, onCommunityUserBanned, onCommunityUserChanged, onCommunityUserRemoved, onCommunityUserRoleAdded, onCommunityUserRoleRemoved, onCommunityUserUnbanned, onConnectionError, onFeedMarkerFetched, onFollowInfoUpdated, onFollowRequestAccepted, onFollowRequestCanceled, onFollowRequestDeclined, onFollowerDeleted, onFollowerRequested, onMessageCreated, onMessageDeleted, onMessageFetched, onMessageFlagCleared, onMessageFlagged, onMessageMarkerFetched, onMessageReactionAdded, onMessageReactionRemoved, onMessageUnflagged, onMessageUpdated, onPollDeleted, onPollUpdated, onPostApproved, onPostCreated, onPostDeclined, onPostDeleted, onPostFlagged, onPostReactionAdded, onPostReactionRemoved, onPostUnflagged, onPostUpdated, onReactionAdded, onReactionRemoved, onReactorAdded, onReactorRemoved, onSessionStateChange, onStreamRecorded, onStreamStarted, onStreamStopped, onSubChannelCreated, onSubChannelDeleted, onSubChannelMarkerFetched, onSubChannelMarkerUpdated, onSubChannelUpdated, onUserDeleted, onUserFlagCleared, onUserFlagged, onUserFollowed, onUserMarkerFetched, onUserUnflagged, onUserUnfollowed, onUserUpdated, prepareSubChannelPayload, pullFromCache, pushMarkerSyncEvent, pushToCache, queryCache, queryCategories, queryChannelMembers, queryChannels, queryComments, queryCommunities, queryCommunityMembers, queryFollowers, queryFollowings, queryGlobalFeed, queryMessages, queryOptions, queryPosts, queryReactions, queryRoles, queryStreams, querySubChannels, queryUsers, removeChannelMembers, removeChannelMembersRole, removeCommunityMembers, removeCommunityMembersRoles, removeReaction, renewal, restoreCache, runQuery, setActiveUser, setMarkerSyncEvents, sortByChannelSegment, sortByDisplayName, sortByFirstCreated, sortByLastActivity, sortByLastCreated, sortByName, sortBySegmentNumber, startReading, startReadingAPI, startUnreadSync, stopReading, stopReadingAPI, stopUnreadSyncing, subscribeTopic, toPage, toPageRaw, toToken, unbanChannelMembers, unfollow, updateChannel, updateComment, updateCommunity, updateMessage, updatePost, updateStream, updateSubChannel, updateSubChannelMarker, updateUser, upsertInCache, votePoll, wipeCache };
|