@amityco/ts-sdk 7.26.0 → 7.26.1-86b52c8a.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/@types/core/payload.d.ts +5 -0
- package/dist/@types/core/payload.d.ts.map +1 -1
- package/dist/@types/core/permissions.d.ts +7 -3
- package/dist/@types/core/permissions.d.ts.map +1 -1
- package/dist/@types/domains/analytics.d.ts +3 -1
- package/dist/@types/domains/analytics.d.ts.map +1 -1
- package/dist/@types/domains/client.d.ts +1 -0
- package/dist/@types/domains/client.d.ts.map +1 -1
- package/dist/@types/domains/curatedContent.d.ts +25 -0
- package/dist/@types/domains/curatedContent.d.ts.map +1 -0
- package/dist/@types/domains/file.d.ts +11 -2
- package/dist/@types/domains/file.d.ts.map +1 -1
- package/dist/@types/domains/liveViewerCount.d.ts +22 -0
- package/dist/@types/domains/liveViewerCount.d.ts.map +1 -0
- package/dist/@types/index.d.ts +2 -0
- package/dist/@types/index.d.ts.map +1 -1
- package/dist/analytic/service/analytic/AnalyticsEngine.d.ts +3 -0
- package/dist/analytic/service/analytic/AnalyticsEngine.d.ts.map +1 -1
- package/dist/analytic/service/analytic/AnalyticsEventCapturer.d.ts +3 -0
- package/dist/analytic/service/analytic/AnalyticsEventCapturer.d.ts.map +1 -1
- package/dist/client/api/createClient.d.ts.map +1 -1
- package/dist/client/api/getLiveViewerCountConfig.d.ts +24 -0
- package/dist/client/api/getLiveViewerCountConfig.d.ts.map +1 -0
- package/dist/client/api/index.d.ts +1 -0
- package/dist/client/api/index.d.ts.map +1 -1
- package/dist/curatedContentRepository/api/getPool.d.ts +2 -0
- package/dist/curatedContentRepository/api/getPool.d.ts.map +1 -0
- package/dist/curatedContentRepository/api/index.d.ts +2 -0
- package/dist/curatedContentRepository/api/index.d.ts.map +1 -0
- package/dist/curatedContentRepository/api/tests/getPool.test.d.ts +2 -0
- package/dist/curatedContentRepository/api/tests/getPool.test.d.ts.map +1 -0
- package/dist/curatedContentRepository/api/tests/integration/getPool.integration.test.d.ts +2 -0
- package/dist/curatedContentRepository/api/tests/integration/getPool.integration.test.d.ts.map +1 -0
- package/dist/curatedContentRepository/index.d.ts +2 -0
- package/dist/curatedContentRepository/index.d.ts.map +1 -0
- package/dist/fileRepository/api/getFile.d.ts.map +1 -1
- package/dist/fileRepository/api/uploadImage.d.ts.map +1 -1
- package/dist/fileRepository/api/uploadVideo.d.ts.map +1 -1
- package/dist/index.cjs.js +271 -66
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +247 -43
- package/dist/index.umd.js +2 -2
- package/dist/userRepository/observers/index.d.ts +1 -0
- package/dist/userRepository/observers/index.d.ts.map +1 -1
- package/dist/userRepository/observers/searchUserByDisplayName.d.ts +2 -0
- package/dist/userRepository/observers/searchUserByDisplayName.d.ts.map +1 -1
- package/dist/userRepository/observers/searchUsers.d.ts +26 -0
- package/dist/userRepository/observers/searchUsers.d.ts.map +1 -0
- package/dist/userRepository/observers/tests/integrations/searchUsers.integration.test.d.ts +2 -0
- package/dist/userRepository/observers/tests/integrations/searchUsers.integration.test.d.ts.map +1 -0
- package/dist/userRepository/observers/tests/searchUsers.test.d.ts +2 -0
- package/dist/userRepository/observers/tests/searchUsers.test.d.ts.map +1 -0
- package/dist/utils/linkedObject/curatedContentTopicLinkedObject.d.ts +2 -0
- package/dist/utils/linkedObject/curatedContentTopicLinkedObject.d.ts.map +1 -0
- package/dist/utils/linkedObject/fileLinkedObject.d.ts +2 -0
- package/dist/utils/linkedObject/fileLinkedObject.d.ts.map +1 -0
- package/dist/utils/linkedObject/index.d.ts +2 -0
- package/dist/utils/linkedObject/index.d.ts.map +1 -1
- package/dist/utils/linkedObject/postLinkedObject.d.ts.map +1 -1
- package/dist/utils/tests/dummy/file.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -322,6 +322,13 @@ exports.NotificationRolesFilterTypeEnum = void 0;
|
|
|
322
322
|
NotificationRolesFilterTypeEnum["ONLY"] = "only";
|
|
323
323
|
})(exports.NotificationRolesFilterTypeEnum || (exports.NotificationRolesFilterTypeEnum = {}));
|
|
324
324
|
|
|
325
|
+
exports.AmityLiveViewerCountMode = void 0;
|
|
326
|
+
(function (AmityLiveViewerCountMode) {
|
|
327
|
+
AmityLiveViewerCountMode["ALWAYS_SHOW"] = "always";
|
|
328
|
+
AmityLiveViewerCountMode["HIDE_ENTIRELY"] = "hidden";
|
|
329
|
+
AmityLiveViewerCountMode["SHOW_ABOVE_MINIMUM"] = "above-minimum";
|
|
330
|
+
})(exports.AmityLiveViewerCountMode || (exports.AmityLiveViewerCountMode = {}));
|
|
331
|
+
|
|
325
332
|
function getVersion() {
|
|
326
333
|
try {
|
|
327
334
|
// the string ''v7.26.0-cjs'' should be replaced by actual value by @rollup/plugin-replace
|
|
@@ -5021,6 +5028,51 @@ const getCoreUserSettings = async () => {
|
|
|
5021
5028
|
return data;
|
|
5022
5029
|
};
|
|
5023
5030
|
|
|
5031
|
+
const DEFAULT_CONFIG = {
|
|
5032
|
+
mode: exports.AmityLiveViewerCountMode.ALWAYS_SHOW,
|
|
5033
|
+
threshold: 50,
|
|
5034
|
+
};
|
|
5035
|
+
const isValidMode = (value) => value === exports.AmityLiveViewerCountMode.ALWAYS_SHOW ||
|
|
5036
|
+
value === exports.AmityLiveViewerCountMode.HIDE_ENTIRELY ||
|
|
5037
|
+
value === exports.AmityLiveViewerCountMode.SHOW_ABOVE_MINIMUM;
|
|
5038
|
+
const isValidThreshold = (value) => typeof value === 'number' && Number.isInteger(value) && value >= 1 && value <= 1000;
|
|
5039
|
+
/**
|
|
5040
|
+
* ```js
|
|
5041
|
+
* import { getLiveViewerCountConfig } from '@amityco/ts-sdk'
|
|
5042
|
+
* const config = await getLiveViewerCountConfig()
|
|
5043
|
+
* ```
|
|
5044
|
+
*
|
|
5045
|
+
* Fetches the network-level {@link Amity.LiveViewerCountConfig} governing
|
|
5046
|
+
* how the live viewer count is displayed to viewers on a livestream.
|
|
5047
|
+
*
|
|
5048
|
+
* Cold-read — no observable, no cache. Call once per livestream mount /
|
|
5049
|
+
* rejoin. Admin-driven config changes take effect on the next join, not
|
|
5050
|
+
* mid-stream.
|
|
5051
|
+
*
|
|
5052
|
+
* On a malformed payload (unknown mode, out-of-range or missing threshold)
|
|
5053
|
+
* the SDK falls open to `{ mode: ALWAYS_SHOW, threshold: 50 }` and logs a
|
|
5054
|
+
* warning. Network errors reject.
|
|
5055
|
+
*
|
|
5056
|
+
* @returns A Promise of {@link Amity.LiveViewerCountConfig}
|
|
5057
|
+
*
|
|
5058
|
+
* @category Client API
|
|
5059
|
+
* @async
|
|
5060
|
+
*/
|
|
5061
|
+
/* begin_public_function id: client.getLiveViewerCountConfig */
|
|
5062
|
+
const getLiveViewerCountConfig = async () => {
|
|
5063
|
+
var _a, _b;
|
|
5064
|
+
const client = getActiveClient();
|
|
5065
|
+
const { data } = await client.http.get('/api/v3/network-settings/video-streaming');
|
|
5066
|
+
const mode = (_a = data === null || data === void 0 ? void 0 : data.videoStreaming) === null || _a === void 0 ? void 0 : _a.viewerCountDisplayMode;
|
|
5067
|
+
const threshold = (_b = data === null || data === void 0 ? void 0 : data.videoStreaming) === null || _b === void 0 ? void 0 : _b.viewerCountDisplayMinimum;
|
|
5068
|
+
if (!isValidMode(mode) || !isValidThreshold(threshold)) {
|
|
5069
|
+
client.log('client/getLiveViewerCountConfig', 'malformed videoStreaming settings, falling back to default', { mode, threshold });
|
|
5070
|
+
return DEFAULT_CONFIG;
|
|
5071
|
+
}
|
|
5072
|
+
return { mode, threshold };
|
|
5073
|
+
};
|
|
5074
|
+
/* end_public_function */
|
|
5075
|
+
|
|
5024
5076
|
/* begin_public_function
|
|
5025
5077
|
id: client.getProductCatalogueSetting
|
|
5026
5078
|
*/
|
|
@@ -5638,6 +5690,32 @@ class AnalyticsEventCapturer {
|
|
|
5638
5690
|
activityType: "view" /* Amity.AnalyticEventActivityType.View */,
|
|
5639
5691
|
});
|
|
5640
5692
|
}
|
|
5693
|
+
markCuratedContentWidgetAsViewed(topicId) {
|
|
5694
|
+
this.markAs({
|
|
5695
|
+
uniqueId: `curatedContentWidget.${topicId}`,
|
|
5696
|
+
contentId: topicId,
|
|
5697
|
+
contentType: "curated_content_widget" /* Amity.AnalyticEventContentType.CuratedContentWidget */,
|
|
5698
|
+
activityType: "view" /* Amity.AnalyticEventActivityType.View */,
|
|
5699
|
+
});
|
|
5700
|
+
}
|
|
5701
|
+
markCuratedContentPostAsViewed(postId, topicId) {
|
|
5702
|
+
this.markAs({
|
|
5703
|
+
uniqueId: `curatedContentPost.${postId}.view`,
|
|
5704
|
+
contentId: postId,
|
|
5705
|
+
contentType: "curated_content_post" /* Amity.AnalyticEventContentType.CuratedContentPost */,
|
|
5706
|
+
activityType: "view" /* Amity.AnalyticEventActivityType.View */,
|
|
5707
|
+
metadata: { topicId },
|
|
5708
|
+
});
|
|
5709
|
+
}
|
|
5710
|
+
markCuratedContentPostAsClicked(postId, topicId) {
|
|
5711
|
+
this.markAs({
|
|
5712
|
+
uniqueId: `curatedContentPost.${postId}.click`,
|
|
5713
|
+
contentId: postId,
|
|
5714
|
+
contentType: "curated_content_post" /* Amity.AnalyticEventContentType.CuratedContentPost */,
|
|
5715
|
+
activityType: "linkClicked" /* Amity.AnalyticEventActivityType.Click */,
|
|
5716
|
+
metadata: { topicId },
|
|
5717
|
+
});
|
|
5718
|
+
}
|
|
5641
5719
|
markPostAsMeaningfullyViewed(postId, feedRenderPosition) {
|
|
5642
5720
|
var _a;
|
|
5643
5721
|
const cached = (_a = pullFromCache(['feedMetadata', 'get', postId])) === null || _a === void 0 ? void 0 : _a.data;
|
|
@@ -5801,6 +5879,24 @@ class AnalyticsEngine {
|
|
|
5801
5879
|
this._eventCapturer.markPostAsViewed(postId);
|
|
5802
5880
|
}
|
|
5803
5881
|
}
|
|
5882
|
+
markCuratedContentWidgetAsViewed(topicId) {
|
|
5883
|
+
if (this._client.sessionState === "established" /* Amity.SessionStates.ESTABLISHED */ ||
|
|
5884
|
+
this._client.sessionState === "tokenExpired" /* Amity.SessionStates.TOKEN_EXPIRED */) {
|
|
5885
|
+
this._eventCapturer.markCuratedContentWidgetAsViewed(topicId);
|
|
5886
|
+
}
|
|
5887
|
+
}
|
|
5888
|
+
markCuratedContentPostAsViewed(postId, topicId) {
|
|
5889
|
+
if (this._client.sessionState === "established" /* Amity.SessionStates.ESTABLISHED */ ||
|
|
5890
|
+
this._client.sessionState === "tokenExpired" /* Amity.SessionStates.TOKEN_EXPIRED */) {
|
|
5891
|
+
this._eventCapturer.markCuratedContentPostAsViewed(postId, topicId);
|
|
5892
|
+
}
|
|
5893
|
+
}
|
|
5894
|
+
markCuratedContentPostAsClicked(postId, topicId) {
|
|
5895
|
+
if (this._client.sessionState === "established" /* Amity.SessionStates.ESTABLISHED */ ||
|
|
5896
|
+
this._client.sessionState === "tokenExpired" /* Amity.SessionStates.TOKEN_EXPIRED */) {
|
|
5897
|
+
this._eventCapturer.markCuratedContentPostAsClicked(postId, topicId);
|
|
5898
|
+
}
|
|
5899
|
+
}
|
|
5804
5900
|
markPostAsMeaningfullyViewed(postId, feedRenderPosition) {
|
|
5805
5901
|
if (this._client.sessionState === "established" /* Amity.SessionStates.ESTABLISHED */ ||
|
|
5806
5902
|
this._client.sessionState === "tokenExpired" /* Amity.SessionStates.TOKEN_EXPIRED */) {
|
|
@@ -8470,6 +8566,7 @@ const createClient = (apiKey, apiRegion = API_REGIONS.SG, { debugSession = DEFAU
|
|
|
8470
8566
|
getCoreUserSettings,
|
|
8471
8567
|
getSocialSettings,
|
|
8472
8568
|
getChatSettings,
|
|
8569
|
+
getLiveViewerCountConfig,
|
|
8473
8570
|
getVisitorDeviceId: getDeviceId,
|
|
8474
8571
|
getMessagePreviewSetting: getMessagePreviewSetting$1,
|
|
8475
8572
|
use: () => setActiveClient(client),
|
|
@@ -9531,7 +9628,7 @@ const getUserUnread = (callback) => {
|
|
|
9531
9628
|
};
|
|
9532
9629
|
};
|
|
9533
9630
|
|
|
9534
|
-
var index$
|
|
9631
|
+
var index$t = /*#__PURE__*/Object.freeze({
|
|
9535
9632
|
__proto__: null,
|
|
9536
9633
|
getActiveClient: getActiveClient,
|
|
9537
9634
|
getActiveUser: getActiveUser,
|
|
@@ -9561,6 +9658,7 @@ var index$s = /*#__PURE__*/Object.freeze({
|
|
|
9561
9658
|
setCurrentUserType: setCurrentUserType,
|
|
9562
9659
|
setAccessTokenHandler: setAccessTokenHandler,
|
|
9563
9660
|
getChatSettings: getChatSettings,
|
|
9661
|
+
getLiveViewerCountConfig: getLiveViewerCountConfig,
|
|
9564
9662
|
getCoreUserSettings: getCoreUserSettings,
|
|
9565
9663
|
notifications: notifications,
|
|
9566
9664
|
enableAutoSubscriptions: enableAutoSubscriptions,
|
|
@@ -10756,7 +10854,7 @@ const getMyFollowInfo = (callback) => {
|
|
|
10756
10854
|
};
|
|
10757
10855
|
/* end_public_function */
|
|
10758
10856
|
|
|
10759
|
-
var index$
|
|
10857
|
+
var index$s = /*#__PURE__*/Object.freeze({
|
|
10760
10858
|
__proto__: null,
|
|
10761
10859
|
blockUser: blockUser,
|
|
10762
10860
|
unBlockUser: unBlockUser,
|
|
@@ -12477,7 +12575,7 @@ const getWatchSessionStorage = () => {
|
|
|
12477
12575
|
return storageInstance;
|
|
12478
12576
|
};
|
|
12479
12577
|
|
|
12480
|
-
const privateKey = "
|
|
12578
|
+
const privateKey = "MIIEpQIBAAKCAQEAwAEc/oZgYIvKSUG/C3mONYLR4ZPgAjMEX4bJ+xqqakUDRtqlNO+eZs2blQ1Ko0DBkqPExyQezvjibH5W2UZBV5RaBTlTcNVKTToMBEGesAfaEcM3qUyQHxdbFYZv6P4sb14dcwxTQ8usmaV8ooiR1Fcaso5ZWYcZ8Hb46FbQ7OoVumsBtPWwfZ4f003o5VCl6AIM6lcLv9UDLlFVYhE+PeXpRHtfWlGqxMvqC9oinlwhL6nWv6VjQXW4nhcib72dPBzfHT7k/PMKto2SxALYdb68ENiAGuJLWi3AUHSyYCJK2w7wIlWfJUAI0v26ub10IpExr6D5QuW2577jjP93iwIDAQABAoIBAFWfqXhwIIatkFY+9Z1+ZcbDQimgsmMIsUiQaX6Lk7e0cxOj6czDlxYtVtaPiNtow2pLkjNkjkCqiP7tEHnwdK9DvylZOTa2R15NJpK3WLcTqVIGhsn/FL5owfvFah6zSsmXZParZm5zY9NZE03ALZhOB9/cz0e3kf/EbpfeL2mW7MApyiUt5i09ycchroOpcWp73ipIxvgigtZyUGFmsQicWhUs28F0D7w4Qfk76yG3nqXeb+BAMhCaIaa/k/aAxhiZG/ygEQWQrcC8gfe+jyicMAQPDEVS9YuUMGsLjIjKuVLZzp2xirQnhc2i2zVNEIvG6soprPOBEMQugzrtX5ECgYEA3b7KAbBIbDl1e4ZSCWhHdHkiWVZHaopsR/LhqDDNhXjWjq3AesgV6k0j9EdziMn/HmmOso0bz99GTV3JZf4A9ztTLumJlkHbdVtlgOqSjrFLj12rH9KXTheyIhWSpUmm8+WB1xasFbqpvJaGo7F3pd2Fqj1XR4mp5BO7c/t7LJ0CgYEA3aouEzXQ9THRKYocdfY69EI1Il1t/d/RSqqd9BxEjxBgxkM13ZiYIn/R4WW/nCUrlmhxG44Aa2Gob4Ahfsui2xKTg/g/3Zk/rAxAEGkfOLGoenaJMD41fH4wUq3FRYwkvnaMb9Hd6f/TlBHslIRa2NN58bSBGJCyBP2b59+2+EcCgYEAixDVRXvV37GlYUOa/XVdosk5Zoe6oDGRuQm0xbNdoUBoZvDHDvme7ONWEiQha/8qtVsD+CyQ7awcPfb8kK9c0bBt+bTS6d4BkTcxkEkMgtrkBVR8Nqfu5jXsLH4VCv4G61zbMhZw8+ut+az5YX2yCN7Frj9sFlxapMRPQmzMEe0CgYEAumsAzM8ZqNv4mAK65Mnr0rhLj1cbxcKRdUYACOgtEFQpzxN/HZnTeFAe5nx3pI3uFlRHq3DFEYnT6dHMWaJQmAULYpVIwMi9L6gtyJ9fzoI6uqMtxRDMUqKdaSsTGOY/kJ6KhQ/unXi1K3XXjR+yd1+C0q+HUm1+CYxvrZYLfskCgYEArsEy+IQOiqniJ0NE2vVUF+UK/IRZaic9YKcpov5Ot7Vvzm/MnnW4N1ljVskocETBWMmPUvNSExVjPebi+rxd8fa5kY8BJScPTzMFbunZn/wjtGdcM10qdlVQ9doG61A/9P3ezFKCfS4AvF/H/59LcSx2Bh28fp3/efiVIOpVd4Y=";
|
|
12481
12579
|
/*
|
|
12482
12580
|
* The crypto algorithm used for importing key and signing string
|
|
12483
12581
|
*/
|
|
@@ -12905,6 +13003,21 @@ const productTagLinkedObject = (productTag) => {
|
|
|
12905
13003
|
return Object.assign(Object.assign({}, productTag), { product: internalProduct ? productLinkedObject(internalProduct) : undefined });
|
|
12906
13004
|
};
|
|
12907
13005
|
|
|
13006
|
+
const fileLinkedObject = (file) => {
|
|
13007
|
+
var _a, _b, _c;
|
|
13008
|
+
if (!file)
|
|
13009
|
+
return file;
|
|
13010
|
+
if (file.type === 'video') {
|
|
13011
|
+
const video = (_b = (_a = file.attributes) === null || _a === void 0 ? void 0 : _a.metadata) === null || _b === void 0 ? void 0 : _b.video;
|
|
13012
|
+
return Object.assign(Object.assign({}, file), { getWidth: () => { var _a; return (_a = video === null || video === void 0 ? void 0 : video.width) !== null && _a !== void 0 ? _a : 0; }, getHeight: () => { var _a; return (_a = video === null || video === void 0 ? void 0 : video.height) !== null && _a !== void 0 ? _a : 0; }, getRotation: () => { var _a; return (_a = video === null || video === void 0 ? void 0 : video.rotation) !== null && _a !== void 0 ? _a : 0; } });
|
|
13013
|
+
}
|
|
13014
|
+
if (file.type === 'image') {
|
|
13015
|
+
const metadata = (_c = file.attributes) === null || _c === void 0 ? void 0 : _c.metadata;
|
|
13016
|
+
return Object.assign(Object.assign({}, file), { getWidth: () => { var _a; return (_a = metadata === null || metadata === void 0 ? void 0 : metadata.width) !== null && _a !== void 0 ? _a : 0; }, getHeight: () => { var _a; return (_a = metadata === null || metadata === void 0 ? void 0 : metadata.height) !== null && _a !== void 0 ? _a : 0; } });
|
|
13017
|
+
}
|
|
13018
|
+
return file;
|
|
13019
|
+
};
|
|
13020
|
+
|
|
12908
13021
|
const postLinkedObject = (post) => {
|
|
12909
13022
|
return shallowClone(post, {
|
|
12910
13023
|
childrenPosts: post.children
|
|
@@ -12962,19 +13075,19 @@ const postLinkedObject = (post) => {
|
|
|
12962
13075
|
getImageInfo() {
|
|
12963
13076
|
var _a, _b;
|
|
12964
13077
|
return isAmityImagePost(post)
|
|
12965
|
-
? (_b = pullFromCache(['file', 'get', (_a = post === null || post === void 0 ? void 0 : post.data) === null || _a === void 0 ? void 0 : _a.fileId])) === null || _b === void 0 ? void 0 : _b.data
|
|
13078
|
+
? fileLinkedObject((_b = pullFromCache(['file', 'get', (_a = post === null || post === void 0 ? void 0 : post.data) === null || _a === void 0 ? void 0 : _a.fileId])) === null || _b === void 0 ? void 0 : _b.data)
|
|
12966
13079
|
: undefined;
|
|
12967
13080
|
},
|
|
12968
13081
|
getVideoInfo() {
|
|
12969
13082
|
var _a, _b, _c;
|
|
12970
13083
|
return isAmityVideoPost(post)
|
|
12971
|
-
? (_c = pullFromCache(['file', 'get', (_b = (_a = post === null || post === void 0 ? void 0 : post.data) === null || _a === void 0 ? void 0 : _a.videoFileId) === null || _b === void 0 ? void 0 : _b.original])) === null || _c === void 0 ? void 0 : _c.data
|
|
13084
|
+
? fileLinkedObject((_c = pullFromCache(['file', 'get', (_b = (_a = post === null || post === void 0 ? void 0 : post.data) === null || _a === void 0 ? void 0 : _a.videoFileId) === null || _b === void 0 ? void 0 : _b.original])) === null || _c === void 0 ? void 0 : _c.data)
|
|
12972
13085
|
: undefined;
|
|
12973
13086
|
},
|
|
12974
13087
|
getVideoThumbnailInfo() {
|
|
12975
13088
|
var _a, _b;
|
|
12976
13089
|
return isAmityVideoPost(post)
|
|
12977
|
-
? (_b = pullFromCache(['file', 'get', (_a = post === null || post === void 0 ? void 0 : post.data) === null || _a === void 0 ? void 0 : _a.thumbnailFileId])) === null || _b === void 0 ? void 0 : _b.data
|
|
13090
|
+
? fileLinkedObject((_b = pullFromCache(['file', 'get', (_a = post === null || post === void 0 ? void 0 : post.data) === null || _a === void 0 ? void 0 : _a.thumbnailFileId])) === null || _b === void 0 ? void 0 : _b.data)
|
|
12978
13091
|
: undefined;
|
|
12979
13092
|
},
|
|
12980
13093
|
getFileInfo() {
|
|
@@ -13964,7 +14077,24 @@ const eventLinkedObject = (event) => {
|
|
|
13964
14077
|
} });
|
|
13965
14078
|
};
|
|
13966
14079
|
|
|
14080
|
+
const curatedContentTopicLinkedObject = (topic) => {
|
|
14081
|
+
return shallowClone(topic, {
|
|
14082
|
+
analytics: {
|
|
14083
|
+
markAsViewed: () => {
|
|
14084
|
+
AnalyticsEngine$1.getInstance().markCuratedContentWidgetAsViewed(topic.topicId);
|
|
14085
|
+
},
|
|
14086
|
+
markPostAsViewed: (postId) => {
|
|
14087
|
+
AnalyticsEngine$1.getInstance().markCuratedContentPostAsViewed(postId, topic.topicId);
|
|
14088
|
+
},
|
|
14089
|
+
markPostClick: (postId) => {
|
|
14090
|
+
AnalyticsEngine$1.getInstance().markCuratedContentPostAsClicked(postId, topic.topicId);
|
|
14091
|
+
},
|
|
14092
|
+
},
|
|
14093
|
+
});
|
|
14094
|
+
};
|
|
14095
|
+
|
|
13967
14096
|
const LinkedObject = {
|
|
14097
|
+
file: fileLinkedObject,
|
|
13968
14098
|
ad: adLinkedObject,
|
|
13969
14099
|
comment: commentLinkedObject,
|
|
13970
14100
|
post: postLinkedObject,
|
|
@@ -13987,6 +14117,7 @@ const LinkedObject = {
|
|
|
13987
14117
|
eventResponse: eventResponseLinkedObject,
|
|
13988
14118
|
product: productLinkedObject,
|
|
13989
14119
|
poll: pollLinkedObject,
|
|
14120
|
+
curatedContentTopic: curatedContentTopicLinkedObject,
|
|
13990
14121
|
};
|
|
13991
14122
|
|
|
13992
14123
|
/* begin_public_function
|
|
@@ -15128,10 +15259,58 @@ class SearchUserLiveCollectionController extends LiveCollectionController {
|
|
|
15128
15259
|
}
|
|
15129
15260
|
}
|
|
15130
15261
|
|
|
15262
|
+
/* begin_public_function
|
|
15263
|
+
id: user.searchUsers
|
|
15264
|
+
*/
|
|
15265
|
+
/**
|
|
15266
|
+
* ```js
|
|
15267
|
+
* import { UserRepository } from '@amityco/ts-sdk'
|
|
15268
|
+
*
|
|
15269
|
+
* let users = []
|
|
15270
|
+
* const unsub = UserRepository.searchUsers(
|
|
15271
|
+
* { displayName: 'jack', searchBy: [SearchUsersByEnum.DISPLAY_NAME] },
|
|
15272
|
+
* response => merge(users, response.data),
|
|
15273
|
+
* )
|
|
15274
|
+
* ```
|
|
15275
|
+
*
|
|
15276
|
+
* Observe all mutations on a list of {@link Amity.InternalUser}s.
|
|
15277
|
+
*
|
|
15278
|
+
* Pass `searchBy` in `params` to restrict which user fields are matched
|
|
15279
|
+
* (e.g. `[SearchUsersByEnum.DISPLAY_NAME]`). When omitted, the backend
|
|
15280
|
+
* default (both `displayName` and `userId`) applies.
|
|
15281
|
+
*
|
|
15282
|
+
* @param params for searching users
|
|
15283
|
+
* @param callback the function to call when new data are available
|
|
15284
|
+
* @param config the configuration for the live collection
|
|
15285
|
+
* @returns An {@link Amity.Unsubscriber} function to run when willing to stop observing the users
|
|
15286
|
+
*
|
|
15287
|
+
* @category Category Live Collection
|
|
15288
|
+
*/
|
|
15289
|
+
const searchUsers = (params, callback, config) => {
|
|
15290
|
+
const { log, cache } = getActiveClient();
|
|
15291
|
+
if (!cache) {
|
|
15292
|
+
// eslint-disable-next-line no-console
|
|
15293
|
+
console.log(ENABLE_CACHE_MESSAGE);
|
|
15294
|
+
}
|
|
15295
|
+
const timestamp = Date.now();
|
|
15296
|
+
log(`liveSearchUsers(tmpid: ${timestamp}) > listen`);
|
|
15297
|
+
const searchUsersLiveCollection = new SearchUserLiveCollectionController(params, callback);
|
|
15298
|
+
const disposers = searchUsersLiveCollection.startSubscription();
|
|
15299
|
+
const cacheKey = searchUsersLiveCollection.getCacheKey();
|
|
15300
|
+
disposers.push(() => dropFromCache(cacheKey));
|
|
15301
|
+
return () => {
|
|
15302
|
+
log(`liveSearchUsers(tmpid: ${timestamp}) > dispose`);
|
|
15303
|
+
disposers.forEach(fn => fn());
|
|
15304
|
+
};
|
|
15305
|
+
};
|
|
15306
|
+
/* end_public_function */
|
|
15307
|
+
|
|
15131
15308
|
/* begin_public_function
|
|
15132
15309
|
id: user.search
|
|
15133
15310
|
*/
|
|
15134
15311
|
/**
|
|
15312
|
+
* @deprecated Use {@link searchUsers} instead. `searchUserByDisplayName` will be removed in a future major version.
|
|
15313
|
+
*
|
|
15135
15314
|
* ```js
|
|
15136
15315
|
* import { UserRepository } from '@amityco/ts-sdk'
|
|
15137
15316
|
*
|
|
@@ -15261,9 +15440,9 @@ var AmityUserSearchMatchType;
|
|
|
15261
15440
|
AmityUserSearchMatchType["PARTIAL"] = "partial";
|
|
15262
15441
|
})(AmityUserSearchMatchType || (AmityUserSearchMatchType = {}));
|
|
15263
15442
|
|
|
15264
|
-
var index$
|
|
15443
|
+
var index$r = /*#__PURE__*/Object.freeze({
|
|
15265
15444
|
__proto__: null,
|
|
15266
|
-
Relationship: index$
|
|
15445
|
+
Relationship: index$s,
|
|
15267
15446
|
getUserByIds: getUserByIds,
|
|
15268
15447
|
updateUser: updateUser,
|
|
15269
15448
|
flagUser: flagUser,
|
|
@@ -15280,6 +15459,7 @@ var index$q = /*#__PURE__*/Object.freeze({
|
|
|
15280
15459
|
getUsers: getUsers,
|
|
15281
15460
|
getBlockedUsers: getBlockedUsers,
|
|
15282
15461
|
getBlockingUsers: getBlockingUsers,
|
|
15462
|
+
searchUsers: searchUsers,
|
|
15283
15463
|
searchUserByDisplayName: searchUserByDisplayName,
|
|
15284
15464
|
getReachedUsers: getReachedUsers,
|
|
15285
15465
|
get AmityUserSearchMatchType () { return AmityUserSearchMatchType; }
|
|
@@ -15312,7 +15492,7 @@ const getFile = async (fileId) => {
|
|
|
15312
15492
|
if (client.cache)
|
|
15313
15493
|
ingestInCache({ files: [data] }, { cachedAt });
|
|
15314
15494
|
return {
|
|
15315
|
-
data,
|
|
15495
|
+
data: fileLinkedObject(data),
|
|
15316
15496
|
cachedAt,
|
|
15317
15497
|
};
|
|
15318
15498
|
};
|
|
@@ -15339,7 +15519,7 @@ getFile.locally = (fileId) => {
|
|
|
15339
15519
|
if (!cached)
|
|
15340
15520
|
return;
|
|
15341
15521
|
return {
|
|
15342
|
-
data: cached.data,
|
|
15522
|
+
data: fileLinkedObject(cached.data),
|
|
15343
15523
|
cachedAt: cached.cachedAt,
|
|
15344
15524
|
};
|
|
15345
15525
|
};
|
|
@@ -15476,7 +15656,7 @@ const uploadVideo = async (formData, feedType, onProgress) => {
|
|
|
15476
15656
|
if (client.cache)
|
|
15477
15657
|
ingestInCache({ files: data }, { cachedAt });
|
|
15478
15658
|
return {
|
|
15479
|
-
data,
|
|
15659
|
+
data: data.map(file => fileLinkedObject(file)),
|
|
15480
15660
|
cachedAt,
|
|
15481
15661
|
};
|
|
15482
15662
|
};
|
|
@@ -15537,7 +15717,7 @@ const uploadImage = async (formData, onProgress, altText) => {
|
|
|
15537
15717
|
if (client.cache)
|
|
15538
15718
|
ingestInCache({ files: data }, { cachedAt });
|
|
15539
15719
|
return {
|
|
15540
|
-
data,
|
|
15720
|
+
data: data.map(file => fileLinkedObject(file)),
|
|
15541
15721
|
cachedAt,
|
|
15542
15722
|
};
|
|
15543
15723
|
};
|
|
@@ -15670,7 +15850,7 @@ const uploadAudio = async (formData, onProgress) => {
|
|
|
15670
15850
|
};
|
|
15671
15851
|
/* end_public_function */
|
|
15672
15852
|
|
|
15673
|
-
var index$
|
|
15853
|
+
var index$q = /*#__PURE__*/Object.freeze({
|
|
15674
15854
|
__proto__: null,
|
|
15675
15855
|
getFile: getFile,
|
|
15676
15856
|
uploadFile: uploadFile,
|
|
@@ -17643,7 +17823,7 @@ const getReactions$1 = (params, callback, config) => {
|
|
|
17643
17823
|
};
|
|
17644
17824
|
/* end_public_function */
|
|
17645
17825
|
|
|
17646
|
-
var index$
|
|
17826
|
+
var index$p = /*#__PURE__*/Object.freeze({
|
|
17647
17827
|
__proto__: null,
|
|
17648
17828
|
addReaction: addReaction,
|
|
17649
17829
|
removeReaction: removeReaction,
|
|
@@ -19658,7 +19838,7 @@ const searchMessage = (params, callback) => {
|
|
|
19658
19838
|
};
|
|
19659
19839
|
/* end_public_function */
|
|
19660
19840
|
|
|
19661
|
-
var index$
|
|
19841
|
+
var index$o = /*#__PURE__*/Object.freeze({
|
|
19662
19842
|
__proto__: null,
|
|
19663
19843
|
createMessage: createMessage,
|
|
19664
19844
|
updateMessage: updateMessage,
|
|
@@ -20194,7 +20374,7 @@ const stopMessageReceiptSync = (subChannelId) => {
|
|
|
20194
20374
|
};
|
|
20195
20375
|
/* end_public_function */
|
|
20196
20376
|
|
|
20197
|
-
var index$
|
|
20377
|
+
var index$n = /*#__PURE__*/Object.freeze({
|
|
20198
20378
|
__proto__: null,
|
|
20199
20379
|
getSubChannelByIds: getSubChannels$1,
|
|
20200
20380
|
createSubChannel: createSubChannel,
|
|
@@ -22145,7 +22325,7 @@ const searchMembers$1 = (params, callback, config) => {
|
|
|
22145
22325
|
};
|
|
22146
22326
|
/* end_public_function */
|
|
22147
22327
|
|
|
22148
|
-
var index$
|
|
22328
|
+
var index$m = /*#__PURE__*/Object.freeze({
|
|
22149
22329
|
__proto__: null,
|
|
22150
22330
|
addMembers: addMembers$1,
|
|
22151
22331
|
removeMembers: removeMembers$1,
|
|
@@ -22367,7 +22547,7 @@ const unmuteMembers = async (channelId, userIds) => {
|
|
|
22367
22547
|
};
|
|
22368
22548
|
/* end_public_function */
|
|
22369
22549
|
|
|
22370
|
-
var index$
|
|
22550
|
+
var index$l = /*#__PURE__*/Object.freeze({
|
|
22371
22551
|
__proto__: null,
|
|
22372
22552
|
addRole: addRole,
|
|
22373
22553
|
removeRole: removeRole,
|
|
@@ -22377,10 +22557,10 @@ var index$k = /*#__PURE__*/Object.freeze({
|
|
|
22377
22557
|
unmuteMembers: unmuteMembers
|
|
22378
22558
|
});
|
|
22379
22559
|
|
|
22380
|
-
var index$
|
|
22560
|
+
var index$k = /*#__PURE__*/Object.freeze({
|
|
22381
22561
|
__proto__: null,
|
|
22382
|
-
Membership: index$
|
|
22383
|
-
Moderation: index$
|
|
22562
|
+
Membership: index$m,
|
|
22563
|
+
Moderation: index$l,
|
|
22384
22564
|
getChannelByIds: getChannelByIds$1,
|
|
22385
22565
|
createChannel: createChannel,
|
|
22386
22566
|
updateChannel: updateChannel,
|
|
@@ -23809,7 +23989,7 @@ const searchMembers = (params, callback, config) => {
|
|
|
23809
23989
|
};
|
|
23810
23990
|
/* end_public_function */
|
|
23811
23991
|
|
|
23812
|
-
var index$
|
|
23992
|
+
var index$j = /*#__PURE__*/Object.freeze({
|
|
23813
23993
|
__proto__: null,
|
|
23814
23994
|
addMembers: addMembers,
|
|
23815
23995
|
removeMembers: removeMembers,
|
|
@@ -25060,7 +25240,7 @@ const unbanMembers = async (communityId, userIds) => {
|
|
|
25060
25240
|
};
|
|
25061
25241
|
/* end_public_function */
|
|
25062
25242
|
|
|
25063
|
-
var index$
|
|
25243
|
+
var index$i = /*#__PURE__*/Object.freeze({
|
|
25064
25244
|
__proto__: null,
|
|
25065
25245
|
addRoles: addRoles,
|
|
25066
25246
|
removeRoles: removeRoles,
|
|
@@ -25068,10 +25248,10 @@ var index$h = /*#__PURE__*/Object.freeze({
|
|
|
25068
25248
|
unbanMembers: unbanMembers
|
|
25069
25249
|
});
|
|
25070
25250
|
|
|
25071
|
-
var index$
|
|
25251
|
+
var index$h = /*#__PURE__*/Object.freeze({
|
|
25072
25252
|
__proto__: null,
|
|
25073
|
-
Moderation: index$
|
|
25074
|
-
Membership: index$
|
|
25253
|
+
Moderation: index$i,
|
|
25254
|
+
Membership: index$j,
|
|
25075
25255
|
getCommunityByIds: getCommunities$1,
|
|
25076
25256
|
createCommunity: createCommunity,
|
|
25077
25257
|
updateCommunity: updateCommunity,
|
|
@@ -25307,7 +25487,7 @@ const getCategories = (params, callback, config) => {
|
|
|
25307
25487
|
};
|
|
25308
25488
|
/* end_public_function */
|
|
25309
25489
|
|
|
25310
|
-
var index$
|
|
25490
|
+
var index$g = /*#__PURE__*/Object.freeze({
|
|
25311
25491
|
__proto__: null,
|
|
25312
25492
|
getCategory: getCategory,
|
|
25313
25493
|
getCategories: getCategories
|
|
@@ -26433,7 +26613,7 @@ const getComments = (params, callback, config) => {
|
|
|
26433
26613
|
};
|
|
26434
26614
|
/* end_public_function */
|
|
26435
26615
|
|
|
26436
|
-
var index$
|
|
26616
|
+
var index$f = /*#__PURE__*/Object.freeze({
|
|
26437
26617
|
__proto__: null,
|
|
26438
26618
|
getCommentByIds: getCommentByIds,
|
|
26439
26619
|
createComment: createComment,
|
|
@@ -27702,7 +27882,7 @@ const getForYouFeed = (callback) => {
|
|
|
27702
27882
|
};
|
|
27703
27883
|
/* end_public_function */
|
|
27704
27884
|
|
|
27705
|
-
var index$
|
|
27885
|
+
var index$e = /*#__PURE__*/Object.freeze({
|
|
27706
27886
|
__proto__: null,
|
|
27707
27887
|
queryGlobalFeed: queryGlobalFeed,
|
|
27708
27888
|
getCustomRankingGlobalFeed: getCustomRankingGlobalFeed,
|
|
@@ -30847,7 +31027,7 @@ const getRooms = (params, callback, config) => {
|
|
|
30847
31027
|
};
|
|
30848
31028
|
/* end_public_function */
|
|
30849
31029
|
|
|
30850
|
-
var index$
|
|
31030
|
+
var index$d = /*#__PURE__*/Object.freeze({
|
|
30851
31031
|
__proto__: null,
|
|
30852
31032
|
createRoom: createRoom,
|
|
30853
31033
|
updateRoom: updateRoom,
|
|
@@ -31146,7 +31326,7 @@ const getCommunityLiveRoomPosts = (params, callback, config) => {
|
|
|
31146
31326
|
};
|
|
31147
31327
|
/* end_public_function */
|
|
31148
31328
|
|
|
31149
|
-
var index$
|
|
31329
|
+
var index$c = /*#__PURE__*/Object.freeze({
|
|
31150
31330
|
__proto__: null,
|
|
31151
31331
|
getPostByIds: getPostByIds,
|
|
31152
31332
|
createPost: createPost,
|
|
@@ -31761,7 +31941,7 @@ const getStreams = (params, callback, config) => {
|
|
|
31761
31941
|
};
|
|
31762
31942
|
};
|
|
31763
31943
|
|
|
31764
|
-
var index$
|
|
31944
|
+
var index$b = /*#__PURE__*/Object.freeze({
|
|
31765
31945
|
__proto__: null,
|
|
31766
31946
|
createStream: createStream,
|
|
31767
31947
|
updateStream: updateStream,
|
|
@@ -32064,7 +32244,7 @@ const stopHeartbeat = (roomId) => {
|
|
|
32064
32244
|
};
|
|
32065
32245
|
/* end_public_function */
|
|
32066
32246
|
|
|
32067
|
-
var index$
|
|
32247
|
+
var index$a = /*#__PURE__*/Object.freeze({
|
|
32068
32248
|
__proto__: null,
|
|
32069
32249
|
getRoomOnlineUsers: getRoomOnlineUsers,
|
|
32070
32250
|
getRoomUserCount: getRoomUserCount,
|
|
@@ -32375,7 +32555,7 @@ const getPoll = (pollId, callback) => {
|
|
|
32375
32555
|
};
|
|
32376
32556
|
/* end_public_function */
|
|
32377
32557
|
|
|
32378
|
-
var index$
|
|
32558
|
+
var index$9 = /*#__PURE__*/Object.freeze({
|
|
32379
32559
|
__proto__: null,
|
|
32380
32560
|
createPoll: createPoll,
|
|
32381
32561
|
closePoll: closePoll,
|
|
@@ -32679,7 +32859,7 @@ const getPlayer = async (parameters) => {
|
|
|
32679
32859
|
return video;
|
|
32680
32860
|
};
|
|
32681
32861
|
|
|
32682
|
-
var index$
|
|
32862
|
+
var index$8 = /*#__PURE__*/Object.freeze({
|
|
32683
32863
|
__proto__: null,
|
|
32684
32864
|
getPlayer: getPlayer
|
|
32685
32865
|
});
|
|
@@ -33852,7 +34032,7 @@ const getGlobalStoryTargets = (params, callback, config) => {
|
|
|
33852
34032
|
};
|
|
33853
34033
|
};
|
|
33854
34034
|
|
|
33855
|
-
var index$
|
|
34035
|
+
var index$7 = /*#__PURE__*/Object.freeze({
|
|
33856
34036
|
__proto__: null,
|
|
33857
34037
|
createImageStory: createImageStory,
|
|
33858
34038
|
createVideoStory: createVideoStory,
|
|
@@ -33889,7 +34069,7 @@ const getNetworkAds = async () => {
|
|
|
33889
34069
|
};
|
|
33890
34070
|
};
|
|
33891
34071
|
|
|
33892
|
-
var index$
|
|
34072
|
+
var index$6 = /*#__PURE__*/Object.freeze({
|
|
33893
34073
|
__proto__: null,
|
|
33894
34074
|
getNetworkAds: getNetworkAds
|
|
33895
34075
|
});
|
|
@@ -34280,7 +34460,7 @@ const markTraySeen = async (lastSeenAt) => {
|
|
|
34280
34460
|
};
|
|
34281
34461
|
/* end_public_function */
|
|
34282
34462
|
|
|
34283
|
-
var index$
|
|
34463
|
+
var index$5 = /*#__PURE__*/Object.freeze({
|
|
34284
34464
|
__proto__: null,
|
|
34285
34465
|
getNotificationTraySeen: getNotificationTraySeen,
|
|
34286
34466
|
getNotificationTrayItems: getNotificationTrayItems,
|
|
@@ -34582,7 +34762,7 @@ const getInvitations = (params, callback) => {
|
|
|
34582
34762
|
};
|
|
34583
34763
|
};
|
|
34584
34764
|
|
|
34585
|
-
var index$
|
|
34765
|
+
var index$4 = /*#__PURE__*/Object.freeze({
|
|
34586
34766
|
__proto__: null,
|
|
34587
34767
|
cancelInvitation: cancelInvitation,
|
|
34588
34768
|
onLocalInvitationCreated: onLocalInvitationCreated,
|
|
@@ -34731,7 +34911,7 @@ const getReactions = (postId, callback) => {
|
|
|
34731
34911
|
};
|
|
34732
34912
|
};
|
|
34733
34913
|
|
|
34734
|
-
var index$
|
|
34914
|
+
var index$3 = /*#__PURE__*/Object.freeze({
|
|
34735
34915
|
__proto__: null,
|
|
34736
34916
|
createReaction: createReaction,
|
|
34737
34917
|
onLiveReactionCreated: onLiveReactionCreated,
|
|
@@ -35214,7 +35394,7 @@ const getMyEvents = (params, callback, config) => {
|
|
|
35214
35394
|
};
|
|
35215
35395
|
};
|
|
35216
35396
|
|
|
35217
|
-
var index$
|
|
35397
|
+
var index$2 = /*#__PURE__*/Object.freeze({
|
|
35218
35398
|
__proto__: null,
|
|
35219
35399
|
createEvent: createEvent,
|
|
35220
35400
|
updateEvent: updateEvent,
|
|
@@ -35441,12 +35621,36 @@ const searchProducts = (params, callback, config) => {
|
|
|
35441
35621
|
};
|
|
35442
35622
|
/* end_public_function */
|
|
35443
35623
|
|
|
35444
|
-
var index = /*#__PURE__*/Object.freeze({
|
|
35624
|
+
var index$1 = /*#__PURE__*/Object.freeze({
|
|
35445
35625
|
__proto__: null,
|
|
35446
35626
|
getProduct: getProduct,
|
|
35447
35627
|
searchProducts: searchProducts
|
|
35448
35628
|
});
|
|
35449
35629
|
|
|
35630
|
+
const getPool = async (topicId, limit) => {
|
|
35631
|
+
const client = getActiveClient();
|
|
35632
|
+
if (!topicId)
|
|
35633
|
+
throw new ASCError('topicId must not be empty', 800110 /* Amity.ClientError.INVALID_PARAMETERS */, "error" /* Amity.ErrorLevel.ERROR */);
|
|
35634
|
+
if (limit !== undefined && (limit < 1 || limit > 100))
|
|
35635
|
+
throw new ASCError('limit must be between 1 and 100', 800110 /* Amity.ClientError.INVALID_PARAMETERS */, "error" /* Amity.ErrorLevel.ERROR */);
|
|
35636
|
+
const { data } = await client.http.get('/api/v5/curated-content/pool', { params: { topicId, limit } });
|
|
35637
|
+
const { topic } = data, payload = __rest(data, ["topic"]);
|
|
35638
|
+
const processedPayload = preparePostPayload(payload);
|
|
35639
|
+
const cachedAt = client.cache && Date.now();
|
|
35640
|
+
if (client.cache) {
|
|
35641
|
+
ingestInCache(processedPayload, { cachedAt });
|
|
35642
|
+
}
|
|
35643
|
+
return {
|
|
35644
|
+
topic: LinkedObject.curatedContentTopic(topic),
|
|
35645
|
+
posts: processedPayload.posts.map(LinkedObject.post),
|
|
35646
|
+
};
|
|
35647
|
+
};
|
|
35648
|
+
|
|
35649
|
+
var index = /*#__PURE__*/Object.freeze({
|
|
35650
|
+
__proto__: null,
|
|
35651
|
+
getPool: getPool
|
|
35652
|
+
});
|
|
35653
|
+
|
|
35450
35654
|
/**
|
|
35451
35655
|
* Helper class for managing product tags per media attachment.
|
|
35452
35656
|
*
|
|
@@ -35495,39 +35699,40 @@ class AmityAttachmentProductTags {
|
|
|
35495
35699
|
}
|
|
35496
35700
|
|
|
35497
35701
|
exports.API_REGIONS = API_REGIONS;
|
|
35498
|
-
exports.AdRepository = index$
|
|
35702
|
+
exports.AdRepository = index$6;
|
|
35499
35703
|
exports.AmityAttachmentProductTags = AmityAttachmentProductTags;
|
|
35500
|
-
exports.CategoryRepository = index$
|
|
35501
|
-
exports.ChannelRepository = index$
|
|
35502
|
-
exports.Client = index$
|
|
35503
|
-
exports.CommentRepository = index$
|
|
35704
|
+
exports.CategoryRepository = index$g;
|
|
35705
|
+
exports.ChannelRepository = index$k;
|
|
35706
|
+
exports.Client = index$t;
|
|
35707
|
+
exports.CommentRepository = index$f;
|
|
35504
35708
|
exports.CommunityPostSettingMaps = CommunityPostSettingMaps;
|
|
35505
35709
|
exports.CommunityPostSettings = CommunityPostSettings;
|
|
35506
|
-
exports.CommunityRepository = index$
|
|
35710
|
+
exports.CommunityRepository = index$h;
|
|
35507
35711
|
exports.ContentFeedType = ContentFeedType;
|
|
35712
|
+
exports.CuratedContentRepository = index;
|
|
35508
35713
|
exports.DefaultCommunityPostSetting = DefaultCommunityPostSetting;
|
|
35509
|
-
exports.EventRepository = index$
|
|
35510
|
-
exports.FeedRepository = index$
|
|
35511
|
-
exports.FileRepository = index$
|
|
35714
|
+
exports.EventRepository = index$2;
|
|
35715
|
+
exports.FeedRepository = index$e;
|
|
35716
|
+
exports.FileRepository = index$q;
|
|
35512
35717
|
exports.FileType = FileType;
|
|
35513
35718
|
exports.GET_WATCHER_URLS = GET_WATCHER_URLS;
|
|
35514
|
-
exports.InvitationRepository = index$
|
|
35515
|
-
exports.LiveReactionRepository = index$
|
|
35516
|
-
exports.LiveStreamPlayer = index$
|
|
35719
|
+
exports.InvitationRepository = index$4;
|
|
35720
|
+
exports.LiveReactionRepository = index$3;
|
|
35721
|
+
exports.LiveStreamPlayer = index$8;
|
|
35517
35722
|
exports.MessageContentType = MessageContentType;
|
|
35518
|
-
exports.MessageRepository = index$
|
|
35519
|
-
exports.PollRepository = index$
|
|
35723
|
+
exports.MessageRepository = index$o;
|
|
35724
|
+
exports.PollRepository = index$9;
|
|
35520
35725
|
exports.PostContentType = PostContentType;
|
|
35521
|
-
exports.PostRepository = index$
|
|
35726
|
+
exports.PostRepository = index$c;
|
|
35522
35727
|
exports.PostStructureType = PostStructureType;
|
|
35523
|
-
exports.ProductRepository = index;
|
|
35524
|
-
exports.ReactionRepository = index$
|
|
35525
|
-
exports.RoomPresenceRepository = index$
|
|
35526
|
-
exports.RoomRepository = index$
|
|
35527
|
-
exports.StoryRepository = index$
|
|
35528
|
-
exports.StreamRepository = index$
|
|
35529
|
-
exports.SubChannelRepository = index$
|
|
35530
|
-
exports.UserRepository = index$
|
|
35728
|
+
exports.ProductRepository = index$1;
|
|
35729
|
+
exports.ReactionRepository = index$p;
|
|
35730
|
+
exports.RoomPresenceRepository = index$a;
|
|
35731
|
+
exports.RoomRepository = index$d;
|
|
35732
|
+
exports.StoryRepository = index$7;
|
|
35733
|
+
exports.StreamRepository = index$b;
|
|
35734
|
+
exports.SubChannelRepository = index$n;
|
|
35735
|
+
exports.UserRepository = index$r;
|
|
35531
35736
|
exports.VERSION = VERSION;
|
|
35532
35737
|
exports.VideoResolution = VideoResolution;
|
|
35533
35738
|
exports.VideoSize = VideoSize;
|
|
@@ -35589,7 +35794,7 @@ exports.isPaged = isPaged;
|
|
|
35589
35794
|
exports.isReportedByMe = isReportedByMe;
|
|
35590
35795
|
exports.isSkip = isSkip;
|
|
35591
35796
|
exports.mergeInCache = mergeInCache;
|
|
35592
|
-
exports.notificationTray = index$
|
|
35797
|
+
exports.notificationTray = index$5;
|
|
35593
35798
|
exports.onChannelMarkerFetched = onChannelMarkerFetched;
|
|
35594
35799
|
exports.onFeedMarkerFetched = onFeedMarkerFetched;
|
|
35595
35800
|
exports.onFeedMarkerUpdated = onFeedMarkerUpdated;
|