@amityco/ts-sdk 7.22.1-3c040f58.0 → 7.22.1-3ec58519.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/domains/client.d.ts +13 -0
- package/dist/@types/domains/client.d.ts.map +1 -1
- package/dist/client/api/autoSubscription.d.ts +9 -12
- package/dist/client/api/autoSubscription.d.ts.map +1 -1
- package/dist/client/utils/autoSubscriptionManager.d.ts +5 -25
- package/dist/client/utils/autoSubscriptionManager.d.ts.map +1 -1
- package/dist/core/transports/http.d.ts.map +1 -1
- package/dist/index.cjs.js +90 -52
- package/dist/index.esm.js +91 -53
- package/dist/index.umd.js +3 -3
- package/dist/postRepository/observers/getPosts/PostLiveCollectionController.d.ts +1 -1
- package/dist/postRepository/observers/getPosts/PostLiveCollectionController.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -5,10 +5,23 @@ export declare const enum MembershipAcceptanceTypeEnum {
|
|
|
5
5
|
AUTOMATIC = "automatic",
|
|
6
6
|
INVITATION = "invitation"
|
|
7
7
|
}
|
|
8
|
+
export declare enum AmityAutoSubscription {
|
|
9
|
+
CHAT = "chat",
|
|
10
|
+
NETWORK = "network",
|
|
11
|
+
LIVESTREAM = "livestream",
|
|
12
|
+
BLOCK = "block"
|
|
13
|
+
}
|
|
8
14
|
declare global {
|
|
9
15
|
namespace Amity {
|
|
10
16
|
type Logger = (topic: string, ...args: any[]) => void;
|
|
11
17
|
type MembershipAcceptanceType = MembershipAcceptanceTypeEnum;
|
|
18
|
+
type AutoSubscription = AmityAutoSubscription;
|
|
19
|
+
type AutoSubscriptionState = {
|
|
20
|
+
feature: Amity.AutoSubscription;
|
|
21
|
+
isActive: boolean;
|
|
22
|
+
isSystem: boolean;
|
|
23
|
+
topicCount: number;
|
|
24
|
+
};
|
|
12
25
|
const enum TokenTerminationReason {
|
|
13
26
|
GLOBAL_BAN = "globalBan",
|
|
14
27
|
USER_DELETED = "userDeleted",
|
|
@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
|
-
import { AutoSubscription, AutoSubscriptionState } from '~/client/utils/autoSubscriptionManager';
|
|
2
|
-
export { AutoSubscription } from '~/client/utils/autoSubscriptionManager';
|
|
3
|
-
export type { AutoSubscriptionState } from '~/client/utils/autoSubscriptionManager';
|
|
4
1
|
/**
|
|
5
2
|
* ```js
|
|
6
|
-
* import { Client } from '@amityco/ts-sdk'
|
|
7
|
-
* Client.enableAutoSubscriptions([
|
|
3
|
+
* import { Client, AmityAutoSubscription } from '@amityco/ts-sdk'
|
|
4
|
+
* Client.enableAutoSubscriptions([AmityAutoSubscription.BLOCK])
|
|
8
5
|
* ```
|
|
9
6
|
*
|
|
10
7
|
* Enables one or more managed auto-subscription handles. Managed handles are
|
|
@@ -13,26 +10,26 @@ export type { AutoSubscriptionState } from '~/client/utils/autoSubscriptionManag
|
|
|
13
10
|
* {@link disableAutoSubscriptions}. Synchronous fire-and-forget — the registry
|
|
14
11
|
* updates immediately and the broker subscribe is retried on reconnect.
|
|
15
12
|
*
|
|
16
|
-
* @param features the {@link
|
|
13
|
+
* @param features the {@link AmityAutoSubscription} handles to enable
|
|
17
14
|
*
|
|
18
15
|
* @category Client API
|
|
19
16
|
*/
|
|
20
|
-
export declare const enableAutoSubscriptions: (features: AutoSubscription[]) => void;
|
|
17
|
+
export declare const enableAutoSubscriptions: (features: Amity.AutoSubscription[]) => void;
|
|
21
18
|
/**
|
|
22
19
|
* ```js
|
|
23
|
-
* import { Client } from '@amityco/ts-sdk'
|
|
24
|
-
* Client.disableAutoSubscriptions([
|
|
20
|
+
* import { Client, AmityAutoSubscription } from '@amityco/ts-sdk'
|
|
21
|
+
* Client.disableAutoSubscriptions([AmityAutoSubscription.LIVESTREAM])
|
|
25
22
|
* ```
|
|
26
23
|
*
|
|
27
24
|
* Disables one or more managed auto-subscription handles. The change persists
|
|
28
25
|
* across reconnect (it is not silently re-enabled) until
|
|
29
26
|
* {@link enableAutoSubscriptions} is called again. Synchronous fire-and-forget.
|
|
30
27
|
*
|
|
31
|
-
* @param features the {@link
|
|
28
|
+
* @param features the {@link AmityAutoSubscription} handles to disable
|
|
32
29
|
*
|
|
33
30
|
* @category Client API
|
|
34
31
|
*/
|
|
35
|
-
export declare const disableAutoSubscriptions: (features: AutoSubscription[]) => void;
|
|
32
|
+
export declare const disableAutoSubscriptions: (features: Amity.AutoSubscription[]) => void;
|
|
36
33
|
/**
|
|
37
34
|
* ```js
|
|
38
35
|
* import { Client } from '@amityco/ts-sdk'
|
|
@@ -46,5 +43,5 @@ export declare const disableAutoSubscriptions: (features: AutoSubscription[]) =>
|
|
|
46
43
|
*
|
|
47
44
|
* @category Client API
|
|
48
45
|
*/
|
|
49
|
-
export declare const autoSubscriptions: () => AutoSubscriptionState[];
|
|
46
|
+
export declare const autoSubscriptions: () => Amity.AutoSubscriptionState[];
|
|
50
47
|
//# sourceMappingURL=autoSubscription.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autoSubscription.d.ts","sourceRoot":"","sources":["../../../src/client/api/autoSubscription.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"autoSubscription.d.ts","sourceRoot":"","sources":["../../../src/client/api/autoSubscription.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,uBAAuB,aAAc,MAAM,gBAAgB,EAAE,KAAG,IAG5E,CAAC;AAMF;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,wBAAwB,aAAc,MAAM,gBAAgB,EAAE,KAAG,IAG7E,CAAC;AAMF;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,iBAAiB,QAAO,MAAM,qBAAqB,EAClB,CAAC"}
|
|
@@ -1,27 +1,7 @@
|
|
|
1
|
-
/** Feature-grouped real-time handles; all default-on, toggleable per handle. */
|
|
2
|
-
export declare enum AutoSubscription {
|
|
3
|
-
/** SMART_CHANNEL + SMART_MESSAGE + SMART_MESSAGE_FEED — chat "smart" real-time. */
|
|
4
|
-
CHAT = "chat",
|
|
5
|
-
/** Network-wide events (e.g. global ban). */
|
|
6
|
-
NETWORK = "network",
|
|
7
|
-
/** Livestream state events. */
|
|
8
|
-
LIVESTREAM = "livestream",
|
|
9
|
-
/** Both membership wildcards (followers + followings) — block real-time. */
|
|
10
|
-
BLOCK = "block"
|
|
11
|
-
}
|
|
12
|
-
export interface AutoSubscriptionState {
|
|
13
|
-
feature: AutoSubscription;
|
|
14
|
-
/** currently subscribed */
|
|
15
|
-
isActive: boolean;
|
|
16
|
-
/** backs a core SDK feature (turning it off degrades that feature) */
|
|
17
|
-
isSystem: boolean;
|
|
18
|
-
/** underlying MQTT topics (broker slots) this handle consumes */
|
|
19
|
-
topicCount: number;
|
|
20
|
-
}
|
|
21
1
|
/** Ref-counted, reconnect-resilient registry of the managed auto-subscriptions. */
|
|
22
2
|
declare class AutoSubscriptionManager {
|
|
23
|
-
private refCountByFeature;
|
|
24
|
-
private disposers;
|
|
3
|
+
private readonly refCountByFeature;
|
|
4
|
+
private readonly disposers;
|
|
25
5
|
constructor();
|
|
26
6
|
private seed;
|
|
27
7
|
private isActive;
|
|
@@ -29,9 +9,9 @@ declare class AutoSubscriptionManager {
|
|
|
29
9
|
private unsubscribeTopics;
|
|
30
10
|
/** Subscribe every enabled handle's topics, converging the broker to the registry. Called on each (re)connect. */
|
|
31
11
|
initialize(): void;
|
|
32
|
-
subscribe(feature: AutoSubscription): void;
|
|
33
|
-
unsubscribe(feature: AutoSubscription): void;
|
|
34
|
-
subscriptions(): AutoSubscriptionState[];
|
|
12
|
+
subscribe(feature: Amity.AutoSubscription): void;
|
|
13
|
+
unsubscribe(feature: Amity.AutoSubscription): void;
|
|
14
|
+
subscriptions(): Amity.AutoSubscriptionState[];
|
|
35
15
|
reset(): void;
|
|
36
16
|
}
|
|
37
17
|
export declare const getAutoSubscriptionManager: () => AutoSubscriptionManager;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autoSubscriptionManager.d.ts","sourceRoot":"","sources":["../../../src/client/utils/autoSubscriptionManager.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"autoSubscriptionManager.d.ts","sourceRoot":"","sources":["../../../src/client/utils/autoSubscriptionManager.ts"],"names":[],"mappings":"AAoCA,mFAAmF;AACnF,cAAM,uBAAuB;IAC3B,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAA6C;IAE/E,OAAO,CAAC,QAAQ,CAAC,SAAS,CAA2D;;IAMrF,OAAO,CAAC,IAAI;IAKZ,OAAO,CAAC,QAAQ;IAIhB,OAAO,CAAC,eAAe;IAQvB,OAAO,CAAC,iBAAiB;IAKzB,kHAAkH;IAClH,UAAU;IAMV,SAAS,CAAC,OAAO,EAAE,KAAK,CAAC,gBAAgB;IAMzC,WAAW,CAAC,OAAO,EAAE,KAAK,CAAC,gBAAgB;IAM3C,aAAa,IAAI,KAAK,CAAC,qBAAqB,EAAE;IAS9C,KAAK;CAKN;AAID,eAAO,MAAM,0BAA0B,QAAO,uBAG7C,CAAC;AAEF,yEAAyE;AACzE,eAAO,MAAM,8BAA8B,QAAO,MAAM,YAGpD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../../src/core/transports/http.ts"],"names":[],"mappings":"AAeA,oBAAY,kBAAkB;IAC5B,WAAW,iBAAiB;IAC5B,gBAAgB,uBAAuB;IACvC,YAAY,kBAAkB;CAC/B;AAUD,yDAAyD;AACzD,eAAO,MAAM,oBAAoB,YAEhC,CAAC;AAuDF,mDAAmD;AACnD,eAAO,MAAM,yBAAyB,YAErC,CAAC;AAGF;;;;;;;;GAQG;AACH,eAAO,MAAM,mBAAmB,aAAc,MAAM,kCA+
|
|
1
|
+
{"version":3,"file":"http.d.ts","sourceRoot":"","sources":["../../../src/core/transports/http.ts"],"names":[],"mappings":"AAeA,oBAAY,kBAAkB;IAC5B,WAAW,iBAAiB;IAC5B,gBAAgB,uBAAuB;IACvC,YAAY,kBAAkB;CAC/B;AAUD,yDAAyD;AACzD,eAAO,MAAM,oBAAoB,YAEhC,CAAC;AAuDF,mDAAmD;AACnD,eAAO,MAAM,yBAAyB,YAErC,CAAC;AAGF;;;;;;;;GAQG;AACH,eAAO,MAAM,mBAAmB,aAAc,MAAM,kCA+KnD,CAAC"}
|
package/dist/index.cjs.js
CHANGED
|
@@ -28,6 +28,13 @@ exports.MembershipAcceptanceTypeEnum = void 0;
|
|
|
28
28
|
MembershipAcceptanceTypeEnum["AUTOMATIC"] = "automatic";
|
|
29
29
|
MembershipAcceptanceTypeEnum["INVITATION"] = "invitation";
|
|
30
30
|
})(exports.MembershipAcceptanceTypeEnum || (exports.MembershipAcceptanceTypeEnum = {}));
|
|
31
|
+
exports.AmityAutoSubscription = void 0;
|
|
32
|
+
(function (AmityAutoSubscription) {
|
|
33
|
+
AmityAutoSubscription["CHAT"] = "chat";
|
|
34
|
+
AmityAutoSubscription["NETWORK"] = "network";
|
|
35
|
+
AmityAutoSubscription["LIVESTREAM"] = "livestream";
|
|
36
|
+
AmityAutoSubscription["BLOCK"] = "block";
|
|
37
|
+
})(exports.AmityAutoSubscription || (exports.AmityAutoSubscription = {}));
|
|
31
38
|
|
|
32
39
|
exports.UserTypeEnum = void 0;
|
|
33
40
|
(function (UserTypeEnum) {
|
|
@@ -1689,7 +1696,6 @@ const createEventSubscriber = (client, namespace, event, fn) => {
|
|
|
1689
1696
|
log(`${namespace}(tmpid: ${timestamp}) > listen`);
|
|
1690
1697
|
const handler = (...payload) => {
|
|
1691
1698
|
log(`${namespace}(tmpid: ${timestamp}) > trigger`, payload);
|
|
1692
|
-
console.log(payload);
|
|
1693
1699
|
try {
|
|
1694
1700
|
fn(...payload);
|
|
1695
1701
|
}
|
|
@@ -2070,6 +2076,51 @@ const createHttpTransport = (endpoint) => {
|
|
|
2070
2076
|
*/
|
|
2071
2077
|
});
|
|
2072
2078
|
instance.defaults.withCredentials = false;
|
|
2079
|
+
/*
|
|
2080
|
+
* FIX (React Native only): React Native's FormData implements append()/getParts() but does NOT
|
|
2081
|
+
* set Symbol.toStringTag, so axios's `isFormData()` fails to recognise it. axios then runs its
|
|
2082
|
+
* default `transformRequest`, which re-serialises the body and emits
|
|
2083
|
+
* `application/x-www-form-urlencoded` instead of the intended `multipart/form-data`. On Android
|
|
2084
|
+
* (RN 0.83+ New Architecture) the upload server + OkHttp reject this with
|
|
2085
|
+
* "multipart != application/x-www-form-urlencoded".
|
|
2086
|
+
*
|
|
2087
|
+
* We intercept at the `transformRequest` layer (before axios serialises) and, when the body is a
|
|
2088
|
+
* React Native FormData (duck-typed via `getParts`), hand it to the adapter untouched while
|
|
2089
|
+
* keeping a multipart Content-Type. (Deleting the Content-Type is NOT safe: axios then backfills
|
|
2090
|
+
* its POST default, `application/x-www-form-urlencoded`.) React Native's native networking layer
|
|
2091
|
+
* regenerates the multipart boundary on the wire.
|
|
2092
|
+
*
|
|
2093
|
+
* Strictly scoped: the `getParts` guard is unique to React Native's FormData — web FormData
|
|
2094
|
+
* (used by the React/web UIKit) and Node's `form-data` package have no `getParts()`, so this is a
|
|
2095
|
+
* no-op there and for any non-FormData request body. It also self-neutralises on any
|
|
2096
|
+
* platform/RN version where axios already serialises the FormData correctly.
|
|
2097
|
+
*/
|
|
2098
|
+
try {
|
|
2099
|
+
const defaultTransform = [].concat(axios__default["default"].defaults.transformRequest || []);
|
|
2100
|
+
instance.defaults.transformRequest = [
|
|
2101
|
+
function transformRnFormData(data, headers) {
|
|
2102
|
+
const body = data;
|
|
2103
|
+
if (body && typeof body.getParts === 'function') {
|
|
2104
|
+
const h = headers;
|
|
2105
|
+
if (h) {
|
|
2106
|
+
if (typeof h.set === 'function')
|
|
2107
|
+
h.set('Content-Type', 'multipart/form-data', true);
|
|
2108
|
+
else
|
|
2109
|
+
h['Content-Type'] = 'multipart/form-data';
|
|
2110
|
+
}
|
|
2111
|
+
return data;
|
|
2112
|
+
}
|
|
2113
|
+
let result = data;
|
|
2114
|
+
for (let i = 0; i < defaultTransform.length; i += 1) {
|
|
2115
|
+
result = defaultTransform[i].call(this, result, headers);
|
|
2116
|
+
}
|
|
2117
|
+
return result;
|
|
2118
|
+
},
|
|
2119
|
+
];
|
|
2120
|
+
}
|
|
2121
|
+
catch (_a) {
|
|
2122
|
+
/* leave the default transformRequest unchanged on any failure */
|
|
2123
|
+
}
|
|
2073
2124
|
instance.interceptors.request.use(config => {
|
|
2074
2125
|
// do not check expiration for token creation url
|
|
2075
2126
|
if (config.url === '/api/v5/sessions') {
|
|
@@ -4767,35 +4818,23 @@ var SessionWatcher$1 = {
|
|
|
4767
4818
|
*/
|
|
4768
4819
|
const onSessionStateChange = (callback) => SessionWatcher$1.getInstance().onSessionStateChange(callback);
|
|
4769
4820
|
|
|
4770
|
-
/** Feature-grouped real-time handles; all default-on, toggleable per handle. */
|
|
4771
|
-
var AutoSubscription;
|
|
4772
|
-
(function (AutoSubscription) {
|
|
4773
|
-
/** SMART_CHANNEL + SMART_MESSAGE + SMART_MESSAGE_FEED — chat "smart" real-time. */
|
|
4774
|
-
AutoSubscription["CHAT"] = "chat";
|
|
4775
|
-
/** Network-wide events (e.g. global ban). */
|
|
4776
|
-
AutoSubscription["NETWORK"] = "network";
|
|
4777
|
-
/** Livestream state events. */
|
|
4778
|
-
AutoSubscription["LIVESTREAM"] = "livestream";
|
|
4779
|
-
/** Both membership wildcards (followers + followings) — block real-time. */
|
|
4780
|
-
AutoSubscription["BLOCK"] = "block";
|
|
4781
|
-
})(AutoSubscription || (AutoSubscription = {}));
|
|
4782
4821
|
const TOPICS = {
|
|
4783
|
-
[
|
|
4784
|
-
[
|
|
4822
|
+
[exports.AmityAutoSubscription.NETWORK]: [getNetworkTopic],
|
|
4823
|
+
[exports.AmityAutoSubscription.CHAT]: [
|
|
4785
4824
|
getSmartFeedChannelTopic,
|
|
4786
4825
|
getSmartFeedSubChannelTopic,
|
|
4787
4826
|
getSmartFeedMessageTopic,
|
|
4788
4827
|
],
|
|
4789
|
-
[
|
|
4790
|
-
[
|
|
4828
|
+
[exports.AmityAutoSubscription.LIVESTREAM]: [getLiveStreamTopic],
|
|
4829
|
+
[exports.AmityAutoSubscription.BLOCK]: [getMyFollowersTopic, getMyFollowingsTopic],
|
|
4791
4830
|
};
|
|
4792
4831
|
const DEFAULT_TOPICS = [
|
|
4793
|
-
|
|
4794
|
-
|
|
4795
|
-
|
|
4796
|
-
|
|
4832
|
+
exports.AmityAutoSubscription.CHAT,
|
|
4833
|
+
exports.AmityAutoSubscription.NETWORK,
|
|
4834
|
+
exports.AmityAutoSubscription.LIVESTREAM,
|
|
4835
|
+
exports.AmityAutoSubscription.BLOCK,
|
|
4797
4836
|
];
|
|
4798
|
-
const ALL_FEATURES = Object.values(
|
|
4837
|
+
const ALL_FEATURES = Object.values(exports.AmityAutoSubscription);
|
|
4799
4838
|
/** Ref-counted, reconnect-resilient registry of the managed auto-subscriptions. */
|
|
4800
4839
|
class AutoSubscriptionManager {
|
|
4801
4840
|
constructor() {
|
|
@@ -11395,8 +11434,8 @@ const notifications = () => new Notifications();
|
|
|
11395
11434
|
*/
|
|
11396
11435
|
/**
|
|
11397
11436
|
* ```js
|
|
11398
|
-
* import { Client } from '@amityco/ts-sdk'
|
|
11399
|
-
* Client.enableAutoSubscriptions([
|
|
11437
|
+
* import { Client, AmityAutoSubscription } from '@amityco/ts-sdk'
|
|
11438
|
+
* Client.enableAutoSubscriptions([AmityAutoSubscription.BLOCK])
|
|
11400
11439
|
* ```
|
|
11401
11440
|
*
|
|
11402
11441
|
* Enables one or more managed auto-subscription handles. Managed handles are
|
|
@@ -11405,7 +11444,7 @@ const notifications = () => new Notifications();
|
|
|
11405
11444
|
* {@link disableAutoSubscriptions}. Synchronous fire-and-forget — the registry
|
|
11406
11445
|
* updates immediately and the broker subscribe is retried on reconnect.
|
|
11407
11446
|
*
|
|
11408
|
-
* @param features the {@link
|
|
11447
|
+
* @param features the {@link AmityAutoSubscription} handles to enable
|
|
11409
11448
|
*
|
|
11410
11449
|
* @category Client API
|
|
11411
11450
|
*/
|
|
@@ -11419,15 +11458,15 @@ const enableAutoSubscriptions = (features) => {
|
|
|
11419
11458
|
*/
|
|
11420
11459
|
/**
|
|
11421
11460
|
* ```js
|
|
11422
|
-
* import { Client } from '@amityco/ts-sdk'
|
|
11423
|
-
* Client.disableAutoSubscriptions([
|
|
11461
|
+
* import { Client, AmityAutoSubscription } from '@amityco/ts-sdk'
|
|
11462
|
+
* Client.disableAutoSubscriptions([AmityAutoSubscription.LIVESTREAM])
|
|
11424
11463
|
* ```
|
|
11425
11464
|
*
|
|
11426
11465
|
* Disables one or more managed auto-subscription handles. The change persists
|
|
11427
11466
|
* across reconnect (it is not silently re-enabled) until
|
|
11428
11467
|
* {@link enableAutoSubscriptions} is called again. Synchronous fire-and-forget.
|
|
11429
11468
|
*
|
|
11430
|
-
* @param features the {@link
|
|
11469
|
+
* @param features the {@link AmityAutoSubscription} handles to disable
|
|
11431
11470
|
*
|
|
11432
11471
|
* @category Client API
|
|
11433
11472
|
*/
|
|
@@ -11837,7 +11876,6 @@ var index$s = /*#__PURE__*/Object.freeze({
|
|
|
11837
11876
|
setAccessTokenHandler: setAccessTokenHandler,
|
|
11838
11877
|
getChatSettings: getChatSettings,
|
|
11839
11878
|
notifications: notifications,
|
|
11840
|
-
get AutoSubscription () { return AutoSubscription; },
|
|
11841
11879
|
enableAutoSubscriptions: enableAutoSubscriptions,
|
|
11842
11880
|
disableAutoSubscriptions: disableAutoSubscriptions,
|
|
11843
11881
|
autoSubscriptions: autoSubscriptions,
|
|
@@ -30393,6 +30431,29 @@ const getPost = (postId, callback) => {
|
|
|
30393
30431
|
};
|
|
30394
30432
|
/* end_public_function */
|
|
30395
30433
|
|
|
30434
|
+
class PostPaginationController extends PaginationController {
|
|
30435
|
+
async getRequest(queryParams, token) {
|
|
30436
|
+
const { limit = COLLECTION_DEFAULT_PAGINATION_LIMIT, includeDeleted, matchingOnlyParentPost, untilAt } = queryParams, params = __rest(queryParams, ["limit", "includeDeleted", "matchingOnlyParentPost", "untilAt"]);
|
|
30437
|
+
const { dataTypes } = params;
|
|
30438
|
+
const baseOptions = {
|
|
30439
|
+
type: params.sortBy || queryParams.limit ? 'pagination' : undefined,
|
|
30440
|
+
};
|
|
30441
|
+
const options = token ? Object.assign(Object.assign({}, baseOptions), { token }) : Object.assign(Object.assign({}, baseOptions), { limit });
|
|
30442
|
+
const { data: queryResponse } = await this.http.get(`/api/v5/posts`, {
|
|
30443
|
+
params: Object.assign(Object.assign({}, params), { isDeleted: inferIsDeleted(includeDeleted),
|
|
30444
|
+
/*
|
|
30445
|
+
* when creating post like image, file, video BE will create 2 posts
|
|
30446
|
+
* 1. parent post to store text with dataType=text
|
|
30447
|
+
* 2. child post to store dataTypes post data
|
|
30448
|
+
*
|
|
30449
|
+
* By default, BE queries only parent post
|
|
30450
|
+
*/
|
|
30451
|
+
matchingOnlyParentPost: matchingOnlyParentPost !== null && matchingOnlyParentPost !== void 0 ? matchingOnlyParentPost : !(dataTypes === null || dataTypes === void 0 ? void 0 : dataTypes.length), options }),
|
|
30452
|
+
});
|
|
30453
|
+
return queryResponse;
|
|
30454
|
+
}
|
|
30455
|
+
}
|
|
30456
|
+
|
|
30396
30457
|
class PostQueryStreamController extends QueryStreamController {
|
|
30397
30458
|
constructor(query, cacheKey, notifyChange, preparePayload) {
|
|
30398
30459
|
super(query, cacheKey);
|
|
@@ -30488,29 +30549,6 @@ class PostQueryStreamController extends QueryStreamController {
|
|
|
30488
30549
|
}
|
|
30489
30550
|
}
|
|
30490
30551
|
|
|
30491
|
-
class PostPaginationController extends PaginationController {
|
|
30492
|
-
async getRequest(queryParams, token) {
|
|
30493
|
-
const { limit = COLLECTION_DEFAULT_PAGINATION_LIMIT, includeDeleted, matchingOnlyParentPost, untilAt } = queryParams, params = __rest(queryParams, ["limit", "includeDeleted", "matchingOnlyParentPost", "untilAt"]);
|
|
30494
|
-
const { dataTypes } = params;
|
|
30495
|
-
const baseOptions = {
|
|
30496
|
-
type: params.sortBy || queryParams.limit ? 'pagination' : undefined,
|
|
30497
|
-
};
|
|
30498
|
-
const options = token ? Object.assign(Object.assign({}, baseOptions), { token }) : Object.assign(Object.assign({}, baseOptions), { limit });
|
|
30499
|
-
const { data: queryResponse } = await this.http.get(`/api/v5/posts`, {
|
|
30500
|
-
params: Object.assign(Object.assign({}, params), { isDeleted: inferIsDeleted(includeDeleted),
|
|
30501
|
-
/*
|
|
30502
|
-
* when creating post like image, file, video BE will create 2 posts
|
|
30503
|
-
* 1. parent post to store text with dataType=text
|
|
30504
|
-
* 2. child post to store dataTypes post data
|
|
30505
|
-
*
|
|
30506
|
-
* By default, BE queries only parent post
|
|
30507
|
-
*/
|
|
30508
|
-
matchingOnlyParentPost: matchingOnlyParentPost !== null && matchingOnlyParentPost !== void 0 ? matchingOnlyParentPost : !(dataTypes === null || dataTypes === void 0 ? void 0 : dataTypes.length), options }),
|
|
30509
|
-
});
|
|
30510
|
-
return queryResponse;
|
|
30511
|
-
}
|
|
30512
|
-
}
|
|
30513
|
-
|
|
30514
30552
|
class PostLiveCollectionController extends LiveCollectionController {
|
|
30515
30553
|
constructor(query, callback) {
|
|
30516
30554
|
const queryStreamId = hash__default["default"](query);
|
package/dist/index.esm.js
CHANGED
|
@@ -13,6 +13,13 @@ var MembershipAcceptanceTypeEnum;
|
|
|
13
13
|
MembershipAcceptanceTypeEnum["AUTOMATIC"] = "automatic";
|
|
14
14
|
MembershipAcceptanceTypeEnum["INVITATION"] = "invitation";
|
|
15
15
|
})(MembershipAcceptanceTypeEnum || (MembershipAcceptanceTypeEnum = {}));
|
|
16
|
+
var AmityAutoSubscription;
|
|
17
|
+
(function (AmityAutoSubscription) {
|
|
18
|
+
AmityAutoSubscription["CHAT"] = "chat";
|
|
19
|
+
AmityAutoSubscription["NETWORK"] = "network";
|
|
20
|
+
AmityAutoSubscription["LIVESTREAM"] = "livestream";
|
|
21
|
+
AmityAutoSubscription["BLOCK"] = "block";
|
|
22
|
+
})(AmityAutoSubscription || (AmityAutoSubscription = {}));
|
|
16
23
|
|
|
17
24
|
var UserTypeEnum;
|
|
18
25
|
(function (UserTypeEnum) {
|
|
@@ -1674,7 +1681,6 @@ const createEventSubscriber = (client, namespace, event, fn) => {
|
|
|
1674
1681
|
log(`${namespace}(tmpid: ${timestamp}) > listen`);
|
|
1675
1682
|
const handler = (...payload) => {
|
|
1676
1683
|
log(`${namespace}(tmpid: ${timestamp}) > trigger`, payload);
|
|
1677
|
-
console.log(payload);
|
|
1678
1684
|
try {
|
|
1679
1685
|
fn(...payload);
|
|
1680
1686
|
}
|
|
@@ -2055,6 +2061,51 @@ const createHttpTransport = (endpoint) => {
|
|
|
2055
2061
|
*/
|
|
2056
2062
|
});
|
|
2057
2063
|
instance.defaults.withCredentials = false;
|
|
2064
|
+
/*
|
|
2065
|
+
* FIX (React Native only): React Native's FormData implements append()/getParts() but does NOT
|
|
2066
|
+
* set Symbol.toStringTag, so axios's `isFormData()` fails to recognise it. axios then runs its
|
|
2067
|
+
* default `transformRequest`, which re-serialises the body and emits
|
|
2068
|
+
* `application/x-www-form-urlencoded` instead of the intended `multipart/form-data`. On Android
|
|
2069
|
+
* (RN 0.83+ New Architecture) the upload server + OkHttp reject this with
|
|
2070
|
+
* "multipart != application/x-www-form-urlencoded".
|
|
2071
|
+
*
|
|
2072
|
+
* We intercept at the `transformRequest` layer (before axios serialises) and, when the body is a
|
|
2073
|
+
* React Native FormData (duck-typed via `getParts`), hand it to the adapter untouched while
|
|
2074
|
+
* keeping a multipart Content-Type. (Deleting the Content-Type is NOT safe: axios then backfills
|
|
2075
|
+
* its POST default, `application/x-www-form-urlencoded`.) React Native's native networking layer
|
|
2076
|
+
* regenerates the multipart boundary on the wire.
|
|
2077
|
+
*
|
|
2078
|
+
* Strictly scoped: the `getParts` guard is unique to React Native's FormData — web FormData
|
|
2079
|
+
* (used by the React/web UIKit) and Node's `form-data` package have no `getParts()`, so this is a
|
|
2080
|
+
* no-op there and for any non-FormData request body. It also self-neutralises on any
|
|
2081
|
+
* platform/RN version where axios already serialises the FormData correctly.
|
|
2082
|
+
*/
|
|
2083
|
+
try {
|
|
2084
|
+
const defaultTransform = [].concat(axios.defaults.transformRequest || []);
|
|
2085
|
+
instance.defaults.transformRequest = [
|
|
2086
|
+
function transformRnFormData(data, headers) {
|
|
2087
|
+
const body = data;
|
|
2088
|
+
if (body && typeof body.getParts === 'function') {
|
|
2089
|
+
const h = headers;
|
|
2090
|
+
if (h) {
|
|
2091
|
+
if (typeof h.set === 'function')
|
|
2092
|
+
h.set('Content-Type', 'multipart/form-data', true);
|
|
2093
|
+
else
|
|
2094
|
+
h['Content-Type'] = 'multipart/form-data';
|
|
2095
|
+
}
|
|
2096
|
+
return data;
|
|
2097
|
+
}
|
|
2098
|
+
let result = data;
|
|
2099
|
+
for (let i = 0; i < defaultTransform.length; i += 1) {
|
|
2100
|
+
result = defaultTransform[i].call(this, result, headers);
|
|
2101
|
+
}
|
|
2102
|
+
return result;
|
|
2103
|
+
},
|
|
2104
|
+
];
|
|
2105
|
+
}
|
|
2106
|
+
catch (_a) {
|
|
2107
|
+
/* leave the default transformRequest unchanged on any failure */
|
|
2108
|
+
}
|
|
2058
2109
|
instance.interceptors.request.use(config => {
|
|
2059
2110
|
// do not check expiration for token creation url
|
|
2060
2111
|
if (config.url === '/api/v5/sessions') {
|
|
@@ -20843,35 +20894,23 @@ var SessionWatcher$1 = {
|
|
|
20843
20894
|
*/
|
|
20844
20895
|
const onSessionStateChange = (callback) => SessionWatcher$1.getInstance().onSessionStateChange(callback);
|
|
20845
20896
|
|
|
20846
|
-
/** Feature-grouped real-time handles; all default-on, toggleable per handle. */
|
|
20847
|
-
var AutoSubscription;
|
|
20848
|
-
(function (AutoSubscription) {
|
|
20849
|
-
/** SMART_CHANNEL + SMART_MESSAGE + SMART_MESSAGE_FEED — chat "smart" real-time. */
|
|
20850
|
-
AutoSubscription["CHAT"] = "chat";
|
|
20851
|
-
/** Network-wide events (e.g. global ban). */
|
|
20852
|
-
AutoSubscription["NETWORK"] = "network";
|
|
20853
|
-
/** Livestream state events. */
|
|
20854
|
-
AutoSubscription["LIVESTREAM"] = "livestream";
|
|
20855
|
-
/** Both membership wildcards (followers + followings) — block real-time. */
|
|
20856
|
-
AutoSubscription["BLOCK"] = "block";
|
|
20857
|
-
})(AutoSubscription || (AutoSubscription = {}));
|
|
20858
20897
|
const TOPICS = {
|
|
20859
|
-
[
|
|
20860
|
-
[
|
|
20898
|
+
[AmityAutoSubscription.NETWORK]: [getNetworkTopic],
|
|
20899
|
+
[AmityAutoSubscription.CHAT]: [
|
|
20861
20900
|
getSmartFeedChannelTopic,
|
|
20862
20901
|
getSmartFeedSubChannelTopic,
|
|
20863
20902
|
getSmartFeedMessageTopic,
|
|
20864
20903
|
],
|
|
20865
|
-
[
|
|
20866
|
-
[
|
|
20904
|
+
[AmityAutoSubscription.LIVESTREAM]: [getLiveStreamTopic],
|
|
20905
|
+
[AmityAutoSubscription.BLOCK]: [getMyFollowersTopic, getMyFollowingsTopic],
|
|
20867
20906
|
};
|
|
20868
20907
|
const DEFAULT_TOPICS = [
|
|
20869
|
-
|
|
20870
|
-
|
|
20871
|
-
|
|
20872
|
-
|
|
20908
|
+
AmityAutoSubscription.CHAT,
|
|
20909
|
+
AmityAutoSubscription.NETWORK,
|
|
20910
|
+
AmityAutoSubscription.LIVESTREAM,
|
|
20911
|
+
AmityAutoSubscription.BLOCK,
|
|
20873
20912
|
];
|
|
20874
|
-
const ALL_FEATURES = Object.values(
|
|
20913
|
+
const ALL_FEATURES = Object.values(AmityAutoSubscription);
|
|
20875
20914
|
/** Ref-counted, reconnect-resilient registry of the managed auto-subscriptions. */
|
|
20876
20915
|
class AutoSubscriptionManager {
|
|
20877
20916
|
constructor() {
|
|
@@ -27487,8 +27526,8 @@ const notifications = () => new Notifications();
|
|
|
27487
27526
|
*/
|
|
27488
27527
|
/**
|
|
27489
27528
|
* ```js
|
|
27490
|
-
* import { Client } from '@amityco/ts-sdk'
|
|
27491
|
-
* Client.enableAutoSubscriptions([
|
|
27529
|
+
* import { Client, AmityAutoSubscription } from '@amityco/ts-sdk'
|
|
27530
|
+
* Client.enableAutoSubscriptions([AmityAutoSubscription.BLOCK])
|
|
27492
27531
|
* ```
|
|
27493
27532
|
*
|
|
27494
27533
|
* Enables one or more managed auto-subscription handles. Managed handles are
|
|
@@ -27497,7 +27536,7 @@ const notifications = () => new Notifications();
|
|
|
27497
27536
|
* {@link disableAutoSubscriptions}. Synchronous fire-and-forget — the registry
|
|
27498
27537
|
* updates immediately and the broker subscribe is retried on reconnect.
|
|
27499
27538
|
*
|
|
27500
|
-
* @param features the {@link
|
|
27539
|
+
* @param features the {@link AmityAutoSubscription} handles to enable
|
|
27501
27540
|
*
|
|
27502
27541
|
* @category Client API
|
|
27503
27542
|
*/
|
|
@@ -27511,15 +27550,15 @@ const enableAutoSubscriptions = (features) => {
|
|
|
27511
27550
|
*/
|
|
27512
27551
|
/**
|
|
27513
27552
|
* ```js
|
|
27514
|
-
* import { Client } from '@amityco/ts-sdk'
|
|
27515
|
-
* Client.disableAutoSubscriptions([
|
|
27553
|
+
* import { Client, AmityAutoSubscription } from '@amityco/ts-sdk'
|
|
27554
|
+
* Client.disableAutoSubscriptions([AmityAutoSubscription.LIVESTREAM])
|
|
27516
27555
|
* ```
|
|
27517
27556
|
*
|
|
27518
27557
|
* Disables one or more managed auto-subscription handles. The change persists
|
|
27519
27558
|
* across reconnect (it is not silently re-enabled) until
|
|
27520
27559
|
* {@link enableAutoSubscriptions} is called again. Synchronous fire-and-forget.
|
|
27521
27560
|
*
|
|
27522
|
-
* @param features the {@link
|
|
27561
|
+
* @param features the {@link AmityAutoSubscription} handles to disable
|
|
27523
27562
|
*
|
|
27524
27563
|
* @category Client API
|
|
27525
27564
|
*/
|
|
@@ -27929,7 +27968,6 @@ var index$s = /*#__PURE__*/Object.freeze({
|
|
|
27929
27968
|
setAccessTokenHandler: setAccessTokenHandler,
|
|
27930
27969
|
getChatSettings: getChatSettings,
|
|
27931
27970
|
notifications: notifications,
|
|
27932
|
-
get AutoSubscription () { return AutoSubscription; },
|
|
27933
27971
|
enableAutoSubscriptions: enableAutoSubscriptions,
|
|
27934
27972
|
disableAutoSubscriptions: disableAutoSubscriptions,
|
|
27935
27973
|
autoSubscriptions: autoSubscriptions,
|
|
@@ -46485,6 +46523,29 @@ const getPost = (postId, callback) => {
|
|
|
46485
46523
|
};
|
|
46486
46524
|
/* end_public_function */
|
|
46487
46525
|
|
|
46526
|
+
class PostPaginationController extends PaginationController {
|
|
46527
|
+
async getRequest(queryParams, token) {
|
|
46528
|
+
const { limit = COLLECTION_DEFAULT_PAGINATION_LIMIT, includeDeleted, matchingOnlyParentPost, untilAt } = queryParams, params = __rest(queryParams, ["limit", "includeDeleted", "matchingOnlyParentPost", "untilAt"]);
|
|
46529
|
+
const { dataTypes } = params;
|
|
46530
|
+
const baseOptions = {
|
|
46531
|
+
type: params.sortBy || queryParams.limit ? 'pagination' : undefined,
|
|
46532
|
+
};
|
|
46533
|
+
const options = token ? Object.assign(Object.assign({}, baseOptions), { token }) : Object.assign(Object.assign({}, baseOptions), { limit });
|
|
46534
|
+
const { data: queryResponse } = await this.http.get(`/api/v5/posts`, {
|
|
46535
|
+
params: Object.assign(Object.assign({}, params), { isDeleted: inferIsDeleted(includeDeleted),
|
|
46536
|
+
/*
|
|
46537
|
+
* when creating post like image, file, video BE will create 2 posts
|
|
46538
|
+
* 1. parent post to store text with dataType=text
|
|
46539
|
+
* 2. child post to store dataTypes post data
|
|
46540
|
+
*
|
|
46541
|
+
* By default, BE queries only parent post
|
|
46542
|
+
*/
|
|
46543
|
+
matchingOnlyParentPost: matchingOnlyParentPost !== null && matchingOnlyParentPost !== void 0 ? matchingOnlyParentPost : !(dataTypes === null || dataTypes === void 0 ? void 0 : dataTypes.length), options }),
|
|
46544
|
+
});
|
|
46545
|
+
return queryResponse;
|
|
46546
|
+
}
|
|
46547
|
+
}
|
|
46548
|
+
|
|
46488
46549
|
class PostQueryStreamController extends QueryStreamController {
|
|
46489
46550
|
constructor(query, cacheKey, notifyChange, preparePayload) {
|
|
46490
46551
|
super(query, cacheKey);
|
|
@@ -46580,29 +46641,6 @@ class PostQueryStreamController extends QueryStreamController {
|
|
|
46580
46641
|
}
|
|
46581
46642
|
}
|
|
46582
46643
|
|
|
46583
|
-
class PostPaginationController extends PaginationController {
|
|
46584
|
-
async getRequest(queryParams, token) {
|
|
46585
|
-
const { limit = COLLECTION_DEFAULT_PAGINATION_LIMIT, includeDeleted, matchingOnlyParentPost, untilAt } = queryParams, params = __rest(queryParams, ["limit", "includeDeleted", "matchingOnlyParentPost", "untilAt"]);
|
|
46586
|
-
const { dataTypes } = params;
|
|
46587
|
-
const baseOptions = {
|
|
46588
|
-
type: params.sortBy || queryParams.limit ? 'pagination' : undefined,
|
|
46589
|
-
};
|
|
46590
|
-
const options = token ? Object.assign(Object.assign({}, baseOptions), { token }) : Object.assign(Object.assign({}, baseOptions), { limit });
|
|
46591
|
-
const { data: queryResponse } = await this.http.get(`/api/v5/posts`, {
|
|
46592
|
-
params: Object.assign(Object.assign({}, params), { isDeleted: inferIsDeleted(includeDeleted),
|
|
46593
|
-
/*
|
|
46594
|
-
* when creating post like image, file, video BE will create 2 posts
|
|
46595
|
-
* 1. parent post to store text with dataType=text
|
|
46596
|
-
* 2. child post to store dataTypes post data
|
|
46597
|
-
*
|
|
46598
|
-
* By default, BE queries only parent post
|
|
46599
|
-
*/
|
|
46600
|
-
matchingOnlyParentPost: matchingOnlyParentPost !== null && matchingOnlyParentPost !== void 0 ? matchingOnlyParentPost : !(dataTypes === null || dataTypes === void 0 ? void 0 : dataTypes.length), options }),
|
|
46601
|
-
});
|
|
46602
|
-
return queryResponse;
|
|
46603
|
-
}
|
|
46604
|
-
}
|
|
46605
|
-
|
|
46606
46644
|
class PostLiveCollectionController extends LiveCollectionController {
|
|
46607
46645
|
constructor(query, callback) {
|
|
46608
46646
|
const queryStreamId = hash(query);
|
|
@@ -53350,4 +53388,4 @@ class AmityAttachmentProductTags {
|
|
|
53350
53388
|
}
|
|
53351
53389
|
}
|
|
53352
53390
|
|
|
53353
|
-
export { API_REGIONS, index$5 as AdRepository, AmityAttachmentProductTags, AmityChannelNotificationModeEnum, AmityCommunityType, AmityEventOrderOption, AmityEventOriginType, AmityEventResponseStatus, AmityEventSortOption, AmityEventStatus, AmityEventType, AmitySharableContentType, AnalyticsSourceTypeEnum, index$f as CategoryRepository, index$j as ChannelRepository, index$s as Client, index$e as CommentRepository, CommunityNotificationEventNameEnum, CommunityPostSettingMaps, CommunityPostSettings, index$g as CommunityRepository, ContentFeedType, ContentFlagReasonEnum, DefaultCommunityPostSetting, index$1 as EventRepository, FeedDataTypeEnum, index$d as FeedRepository, FeedSortByEnum, FeedSourceEnum, FeedTypeEnum, FileAccessTypeEnum, index$p as FileRepository, FileType, GET_WATCHER_URLS, index$3 as InvitationRepository, InvitationSortByEnum, InvitationStatusEnum, InvitationTargetTypeEnum, InvitationTypeEnum, JoinRequestStatusEnum, JoinResultStatusEnum, index$2 as LiveReactionRepository, index$7 as LiveStreamPlayer, MembershipAcceptanceTypeEnum, MessageContentType, index$n as MessageRepository, NotificationRolesFilterTypeEnum, NotificationSettingsLevelEnum, index$8 as PollRepository, PostContentType, index$b as PostRepository, PostStructureType, index as ProductRepository, index$o as ReactionRepository, index$9 as RoomPresenceRepository, index$c as RoomRepository, SearchUsersByEnum, index$6 as StoryRepository, index$a as StreamRepository, index$m as SubChannelRepository, SubscriptionLevels, UserNotificationModuleNameEnum, index$q as UserRepository, UserTypeEnum, VERSION, VideoResolution, VideoSize, VideoTranscodingStatus, backupCache, createQuery, createReport, createUserToken, deleteReport, disableCache, dropFromCache, enableCache, exceedsUntilAtBoundary, filterByChannelMembership, filterByCommunityMembership, filterByFeedType, filterByPostDataTypes, filterByPropEquality, filterByPropInclusion, filterByPropIntersection, filterBySearchTerm, filterByStringComparePartially, filterByUntilAt, filterCommentsByBlockUsers, filterPostsByBlockUsers, getBlockUsersId, getChannelTopic, getCommentTopic, getCommunityStoriesTopic, getCommunityTopic, getLiveReactionTopic, getLiveStreamTopic, getMarkedMessageTopic, getMarkerUserFeedTopic, getMessageTopic, getMyFollowersTopic, getMyFollowingsTopic, getNetworkId, getNetworkTopic, getPostTopic, getRole, getRoomStreamerTopic, getRoomWatcherTopic, getSmartFeedChannelTopic, getSmartFeedMessageTopic, getSmartFeedSubChannelTopic, getStoryTopic, getSubChannelTopic, getUserTopic, isAfterBefore, isAfterBeforeRaw, isCachable, isFetcher, isFresh, isLocal, isMutator, isOffline, isPaged, isReportedByMe, isSkip, mergeInCache, index$4 as notificationTray, onChannelMarkerFetched, onFeedMarkerFetched, onFeedMarkerUpdated, onMessageMarked, onMessageMarkerFetched, onSubChannelMarkerFetched, onSubChannelMarkerUpdated, onUserMarkerFetched, onUserMarkerFetchedLegacy, pullFromCache, pushToCache, queryCache, queryOptions, queryRoles, restoreCache, runQuery, sortByChannelSegment, sortByDisplayName, sortByFirstCreated, sortByFirstUpdated, sortByLastActivity, sortByLastCreated, sortByLastUpdated, sortByLocalSortingDate, sortByName, sortBySegmentNumber, subscribeTopic, toPage, toPageRaw, toToken, upsertInCache, validateUntilAt, wipeCache };
|
|
53391
|
+
export { API_REGIONS, index$5 as AdRepository, AmityAttachmentProductTags, AmityAutoSubscription, AmityChannelNotificationModeEnum, AmityCommunityType, AmityEventOrderOption, AmityEventOriginType, AmityEventResponseStatus, AmityEventSortOption, AmityEventStatus, AmityEventType, AmitySharableContentType, AnalyticsSourceTypeEnum, index$f as CategoryRepository, index$j as ChannelRepository, index$s as Client, index$e as CommentRepository, CommunityNotificationEventNameEnum, CommunityPostSettingMaps, CommunityPostSettings, index$g as CommunityRepository, ContentFeedType, ContentFlagReasonEnum, DefaultCommunityPostSetting, index$1 as EventRepository, FeedDataTypeEnum, index$d as FeedRepository, FeedSortByEnum, FeedSourceEnum, FeedTypeEnum, FileAccessTypeEnum, index$p as FileRepository, FileType, GET_WATCHER_URLS, index$3 as InvitationRepository, InvitationSortByEnum, InvitationStatusEnum, InvitationTargetTypeEnum, InvitationTypeEnum, JoinRequestStatusEnum, JoinResultStatusEnum, index$2 as LiveReactionRepository, index$7 as LiveStreamPlayer, MembershipAcceptanceTypeEnum, MessageContentType, index$n as MessageRepository, NotificationRolesFilterTypeEnum, NotificationSettingsLevelEnum, index$8 as PollRepository, PostContentType, index$b as PostRepository, PostStructureType, index as ProductRepository, index$o as ReactionRepository, index$9 as RoomPresenceRepository, index$c as RoomRepository, SearchUsersByEnum, index$6 as StoryRepository, index$a as StreamRepository, index$m as SubChannelRepository, SubscriptionLevels, UserNotificationModuleNameEnum, index$q as UserRepository, UserTypeEnum, VERSION, VideoResolution, VideoSize, VideoTranscodingStatus, backupCache, createQuery, createReport, createUserToken, deleteReport, disableCache, dropFromCache, enableCache, exceedsUntilAtBoundary, filterByChannelMembership, filterByCommunityMembership, filterByFeedType, filterByPostDataTypes, filterByPropEquality, filterByPropInclusion, filterByPropIntersection, filterBySearchTerm, filterByStringComparePartially, filterByUntilAt, filterCommentsByBlockUsers, filterPostsByBlockUsers, getBlockUsersId, getChannelTopic, getCommentTopic, getCommunityStoriesTopic, getCommunityTopic, getLiveReactionTopic, getLiveStreamTopic, getMarkedMessageTopic, getMarkerUserFeedTopic, getMessageTopic, getMyFollowersTopic, getMyFollowingsTopic, getNetworkId, getNetworkTopic, getPostTopic, getRole, getRoomStreamerTopic, getRoomWatcherTopic, getSmartFeedChannelTopic, getSmartFeedMessageTopic, getSmartFeedSubChannelTopic, getStoryTopic, getSubChannelTopic, getUserTopic, isAfterBefore, isAfterBeforeRaw, isCachable, isFetcher, isFresh, isLocal, isMutator, isOffline, isPaged, isReportedByMe, isSkip, mergeInCache, index$4 as notificationTray, onChannelMarkerFetched, onFeedMarkerFetched, onFeedMarkerUpdated, onMessageMarked, onMessageMarkerFetched, onSubChannelMarkerFetched, onSubChannelMarkerUpdated, onUserMarkerFetched, onUserMarkerFetchedLegacy, pullFromCache, pushToCache, queryCache, queryOptions, queryRoles, restoreCache, runQuery, sortByChannelSegment, sortByDisplayName, sortByFirstCreated, sortByFirstUpdated, sortByLastActivity, sortByLastCreated, sortByLastUpdated, sortByLocalSortingDate, sortByName, sortBySegmentNumber, subscribeTopic, toPage, toPageRaw, toToken, upsertInCache, validateUntilAt, wipeCache };
|