stream-chat 5.0.0 → 5.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -1
- package/dist/browser.es.js +525 -340
- package/dist/browser.es.js.map +1 -1
- package/dist/browser.full-bundle.min.js +1 -1
- package/dist/browser.full-bundle.min.js.map +1 -1
- package/dist/browser.js +525 -340
- package/dist/browser.js.map +1 -1
- package/dist/index.es.js +525 -340
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +525 -340
- package/dist/index.js.map +1 -1
- package/dist/types/channel.d.ts +13 -1
- package/dist/types/channel.d.ts.map +1 -1
- package/dist/types/channel_state.d.ts.map +1 -1
- package/dist/types/client.d.ts +35 -5
- package/dist/types/client.d.ts.map +1 -1
- package/dist/types/connection_fallback.d.ts +2 -2
- package/dist/types/connection_fallback.d.ts.map +1 -1
- package/dist/types/types.d.ts +84 -2
- package/dist/types/types.d.ts.map +1 -1
- package/dist/types/utils.d.ts.map +1 -1
- package/package.json +23 -29
- package/src/channel.ts +29 -1
- package/src/channel_state.ts +4 -0
- package/src/client.ts +64 -6
- package/src/connection_fallback.ts +9 -5
- package/src/types.ts +127 -1
- package/src/utils.ts +5 -1
package/dist/browser.js
CHANGED
|
@@ -108,7 +108,7 @@ var decodeBase64 = function decodeBase64(s) {
|
|
|
108
108
|
|
|
109
109
|
var https = null;
|
|
110
110
|
|
|
111
|
-
function ownKeys$7(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
111
|
+
function ownKeys$7(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
112
112
|
|
|
113
113
|
function _objectSpread$7(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$7(Object(source), true).forEach(function (key) { _defineProperty__default['default'](target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$7(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
114
114
|
|
|
@@ -331,6 +331,12 @@ var ChannelState = /*#__PURE__*/function () {
|
|
|
331
331
|
for (var i = 0; i < newMessages.length; i += 1) {
|
|
332
332
|
var _this$_channel;
|
|
333
333
|
|
|
334
|
+
var isFromShadowBannedUser = newMessages[i].shadowed;
|
|
335
|
+
|
|
336
|
+
if (isFromShadowBannedUser) {
|
|
337
|
+
continue;
|
|
338
|
+
}
|
|
339
|
+
|
|
334
340
|
var message = this.formatMessage(newMessages[i]);
|
|
335
341
|
|
|
336
342
|
if (message.user && (_this$_channel = this._channel) !== null && _this$_channel !== void 0 && _this$_channel.cid) {
|
|
@@ -720,7 +726,7 @@ var ChannelState = /*#__PURE__*/function () {
|
|
|
720
726
|
return ChannelState;
|
|
721
727
|
}();
|
|
722
728
|
|
|
723
|
-
function ownKeys$6(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
729
|
+
function ownKeys$6(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
724
730
|
|
|
725
731
|
function _objectSpread$6(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$6(Object(source), true).forEach(function (key) { _defineProperty__default['default'](target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$6(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
726
732
|
|
|
@@ -777,7 +783,7 @@ var isValidEventType = function isValidEventType(eventType) {
|
|
|
777
783
|
return IS_VALID_EVENT_MAP_TYPE[eventType] || false;
|
|
778
784
|
};
|
|
779
785
|
|
|
780
|
-
function _createForOfIteratorHelper$3(o, allowArrayLike) { var it
|
|
786
|
+
function _createForOfIteratorHelper$3(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$3(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function (_e) { function e(_x) { return _e.apply(this, arguments); } e.toString = function () { return _e.toString(); }; return e; }(function (e) { throw e; }), f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function (_e2) { function e(_x2) { return _e2.apply(this, arguments); } e.toString = function () { return _e2.toString(); }; return e; }(function (e) { didErr = true; err = e; }), f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
781
787
|
|
|
782
788
|
function _unsupportedIterableToArray$3(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$3(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$3(o, minLen); }
|
|
783
789
|
|
|
@@ -823,6 +829,10 @@ function isFileWebAPI(uri) {
|
|
|
823
829
|
return typeof window !== 'undefined' && 'File' in window && uri instanceof File;
|
|
824
830
|
}
|
|
825
831
|
|
|
832
|
+
function isBlobWebAPI(uri) {
|
|
833
|
+
return typeof window !== 'undefined' && 'Blob' in window && uri instanceof Blob;
|
|
834
|
+
}
|
|
835
|
+
|
|
826
836
|
function isOwnUser(user) {
|
|
827
837
|
return (user === null || user === void 0 ? void 0 : user.total_unread_count) !== undefined;
|
|
828
838
|
}
|
|
@@ -842,7 +852,7 @@ function isOwnUserBaseProperty(property) {
|
|
|
842
852
|
function addFileToFormData(uri, name, contentType) {
|
|
843
853
|
var data = new FormData__default['default']();
|
|
844
854
|
|
|
845
|
-
if (isReadableStream(uri) || isBuffer(uri) || isFileWebAPI(uri)) {
|
|
855
|
+
if (isReadableStream(uri) || isBuffer(uri) || isFileWebAPI(uri) || isBlobWebAPI(uri)) {
|
|
846
856
|
if (name) data.append('file', uri, name);else data.append('file', uri);
|
|
847
857
|
} else {
|
|
848
858
|
data.append('file', {
|
|
@@ -1003,13 +1013,13 @@ function removeConnectionEventListeners(cb) {
|
|
|
1003
1013
|
}
|
|
1004
1014
|
}
|
|
1005
1015
|
|
|
1006
|
-
function _createForOfIteratorHelper$2(o, allowArrayLike) { var it
|
|
1016
|
+
function _createForOfIteratorHelper$2(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$2(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
1007
1017
|
|
|
1008
1018
|
function _unsupportedIterableToArray$2(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$2(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$2(o, minLen); }
|
|
1009
1019
|
|
|
1010
1020
|
function _arrayLikeToArray$2(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
1011
1021
|
|
|
1012
|
-
function ownKeys$5(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
1022
|
+
function ownKeys$5(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
1013
1023
|
|
|
1014
1024
|
function _objectSpread$5(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$5(Object(source), true).forEach(function (key) { _defineProperty__default['default'](target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$5(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
1015
1025
|
|
|
@@ -2594,6 +2604,50 @@ var Channel = /*#__PURE__*/function () {
|
|
|
2594
2604
|
|
|
2595
2605
|
return getReplies;
|
|
2596
2606
|
}()
|
|
2607
|
+
/**
|
|
2608
|
+
* getPinnedMessages - List list pinned messages of the channel
|
|
2609
|
+
*
|
|
2610
|
+
* @param {PinnedMessagePaginationOptions & { user?: UserResponse<UserType>; user_id?: string }} options Pagination params, ie {limit:10, id_lte: 10}
|
|
2611
|
+
* @param {PinnedMessagesSort} sort defines sorting direction of pinned messages
|
|
2612
|
+
*
|
|
2613
|
+
* @return {Promise<GetRepliesAPIResponse<AttachmentType, ChannelType, CommandType, MessageType, ReactionType, UserType>>} A response with a list of messages
|
|
2614
|
+
*/
|
|
2615
|
+
|
|
2616
|
+
}, {
|
|
2617
|
+
key: "getPinnedMessages",
|
|
2618
|
+
value: function () {
|
|
2619
|
+
var _getPinnedMessages = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee30(options) {
|
|
2620
|
+
var sort,
|
|
2621
|
+
_args30 = arguments;
|
|
2622
|
+
return _regeneratorRuntime__default['default'].wrap(function _callee30$(_context30) {
|
|
2623
|
+
while (1) {
|
|
2624
|
+
switch (_context30.prev = _context30.next) {
|
|
2625
|
+
case 0:
|
|
2626
|
+
sort = _args30.length > 1 && _args30[1] !== undefined ? _args30[1] : [];
|
|
2627
|
+
_context30.next = 3;
|
|
2628
|
+
return this.getClient().get(this.getClient().baseURL + "/channels/".concat(this.type, "/").concat(this.id, "/pinned_messages"), {
|
|
2629
|
+
payload: _objectSpread$5(_objectSpread$5({}, options), {}, {
|
|
2630
|
+
sort: normalizeQuerySort(sort)
|
|
2631
|
+
})
|
|
2632
|
+
});
|
|
2633
|
+
|
|
2634
|
+
case 3:
|
|
2635
|
+
return _context30.abrupt("return", _context30.sent);
|
|
2636
|
+
|
|
2637
|
+
case 4:
|
|
2638
|
+
case "end":
|
|
2639
|
+
return _context30.stop();
|
|
2640
|
+
}
|
|
2641
|
+
}
|
|
2642
|
+
}, _callee30, this);
|
|
2643
|
+
}));
|
|
2644
|
+
|
|
2645
|
+
function getPinnedMessages(_x29) {
|
|
2646
|
+
return _getPinnedMessages.apply(this, arguments);
|
|
2647
|
+
}
|
|
2648
|
+
|
|
2649
|
+
return getPinnedMessages;
|
|
2650
|
+
}()
|
|
2597
2651
|
/**
|
|
2598
2652
|
* getReactions - List the reactions, supports pagination
|
|
2599
2653
|
*
|
|
@@ -2721,13 +2775,13 @@ var Channel = /*#__PURE__*/function () {
|
|
|
2721
2775
|
* @return {Promise<ChannelAPIResponse<AttachmentType, ChannelType, CommandType, MessageType, ReactionType, UserType>>} Returns a query response
|
|
2722
2776
|
*/
|
|
2723
2777
|
function () {
|
|
2724
|
-
var _query = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function
|
|
2778
|
+
var _query = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee31(options) {
|
|
2725
2779
|
var queryURL, state, membersStr, tempChannelCid;
|
|
2726
|
-
return _regeneratorRuntime__default['default'].wrap(function
|
|
2780
|
+
return _regeneratorRuntime__default['default'].wrap(function _callee31$(_context31) {
|
|
2727
2781
|
while (1) {
|
|
2728
|
-
switch (
|
|
2782
|
+
switch (_context31.prev = _context31.next) {
|
|
2729
2783
|
case 0:
|
|
2730
|
-
|
|
2784
|
+
_context31.next = 2;
|
|
2731
2785
|
return this.getClient().wsPromise;
|
|
2732
2786
|
|
|
2733
2787
|
case 2:
|
|
@@ -2737,14 +2791,14 @@ var Channel = /*#__PURE__*/function () {
|
|
|
2737
2791
|
queryURL += "/".concat(this.id);
|
|
2738
2792
|
}
|
|
2739
2793
|
|
|
2740
|
-
|
|
2794
|
+
_context31.next = 6;
|
|
2741
2795
|
return this.getClient().post(queryURL + '/query', _objectSpread$5({
|
|
2742
2796
|
data: this._data,
|
|
2743
2797
|
state: true
|
|
2744
2798
|
}, options));
|
|
2745
2799
|
|
|
2746
2800
|
case 6:
|
|
2747
|
-
state =
|
|
2801
|
+
state = _context31.sent;
|
|
2748
2802
|
|
|
2749
2803
|
// update the channel id if it was missing
|
|
2750
2804
|
if (!this.id) {
|
|
@@ -2774,17 +2828,17 @@ var Channel = /*#__PURE__*/function () {
|
|
|
2774
2828
|
|
|
2775
2829
|
this._initializeState(state);
|
|
2776
2830
|
|
|
2777
|
-
return
|
|
2831
|
+
return _context31.abrupt("return", state);
|
|
2778
2832
|
|
|
2779
2833
|
case 11:
|
|
2780
2834
|
case "end":
|
|
2781
|
-
return
|
|
2835
|
+
return _context31.stop();
|
|
2782
2836
|
}
|
|
2783
2837
|
}
|
|
2784
|
-
},
|
|
2838
|
+
}, _callee31, this);
|
|
2785
2839
|
}));
|
|
2786
2840
|
|
|
2787
|
-
function query(
|
|
2841
|
+
function query(_x30) {
|
|
2788
2842
|
return _query.apply(this, arguments);
|
|
2789
2843
|
}
|
|
2790
2844
|
|
|
@@ -2801,31 +2855,31 @@ var Channel = /*#__PURE__*/function () {
|
|
|
2801
2855
|
}, {
|
|
2802
2856
|
key: "banUser",
|
|
2803
2857
|
value: function () {
|
|
2804
|
-
var _banUser = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function
|
|
2805
|
-
return _regeneratorRuntime__default['default'].wrap(function
|
|
2858
|
+
var _banUser = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee32(targetUserID, options) {
|
|
2859
|
+
return _regeneratorRuntime__default['default'].wrap(function _callee32$(_context32) {
|
|
2806
2860
|
while (1) {
|
|
2807
|
-
switch (
|
|
2861
|
+
switch (_context32.prev = _context32.next) {
|
|
2808
2862
|
case 0:
|
|
2809
2863
|
this._checkInitialized();
|
|
2810
2864
|
|
|
2811
|
-
|
|
2865
|
+
_context32.next = 3;
|
|
2812
2866
|
return this.getClient().banUser(targetUserID, _objectSpread$5(_objectSpread$5({}, options), {}, {
|
|
2813
2867
|
type: this.type,
|
|
2814
2868
|
id: this.id
|
|
2815
2869
|
}));
|
|
2816
2870
|
|
|
2817
2871
|
case 3:
|
|
2818
|
-
return
|
|
2872
|
+
return _context32.abrupt("return", _context32.sent);
|
|
2819
2873
|
|
|
2820
2874
|
case 4:
|
|
2821
2875
|
case "end":
|
|
2822
|
-
return
|
|
2876
|
+
return _context32.stop();
|
|
2823
2877
|
}
|
|
2824
2878
|
}
|
|
2825
|
-
},
|
|
2879
|
+
}, _callee32, this);
|
|
2826
2880
|
}));
|
|
2827
2881
|
|
|
2828
|
-
function banUser(
|
|
2882
|
+
function banUser(_x31, _x32) {
|
|
2829
2883
|
return _banUser.apply(this, arguments);
|
|
2830
2884
|
}
|
|
2831
2885
|
|
|
@@ -2843,34 +2897,34 @@ var Channel = /*#__PURE__*/function () {
|
|
|
2843
2897
|
}, {
|
|
2844
2898
|
key: "hide",
|
|
2845
2899
|
value: function () {
|
|
2846
|
-
var _hide = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function
|
|
2900
|
+
var _hide = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee33() {
|
|
2847
2901
|
var userId,
|
|
2848
2902
|
clearHistory,
|
|
2849
|
-
|
|
2850
|
-
return _regeneratorRuntime__default['default'].wrap(function
|
|
2903
|
+
_args33 = arguments;
|
|
2904
|
+
return _regeneratorRuntime__default['default'].wrap(function _callee33$(_context33) {
|
|
2851
2905
|
while (1) {
|
|
2852
|
-
switch (
|
|
2906
|
+
switch (_context33.prev = _context33.next) {
|
|
2853
2907
|
case 0:
|
|
2854
|
-
userId =
|
|
2855
|
-
clearHistory =
|
|
2908
|
+
userId = _args33.length > 0 && _args33[0] !== undefined ? _args33[0] : null;
|
|
2909
|
+
clearHistory = _args33.length > 1 && _args33[1] !== undefined ? _args33[1] : false;
|
|
2856
2910
|
|
|
2857
2911
|
this._checkInitialized();
|
|
2858
2912
|
|
|
2859
|
-
|
|
2913
|
+
_context33.next = 5;
|
|
2860
2914
|
return this.getClient().post("".concat(this._channelURL(), "/hide"), {
|
|
2861
2915
|
user_id: userId,
|
|
2862
2916
|
clear_history: clearHistory
|
|
2863
2917
|
});
|
|
2864
2918
|
|
|
2865
2919
|
case 5:
|
|
2866
|
-
return
|
|
2920
|
+
return _context33.abrupt("return", _context33.sent);
|
|
2867
2921
|
|
|
2868
2922
|
case 6:
|
|
2869
2923
|
case "end":
|
|
2870
|
-
return
|
|
2924
|
+
return _context33.stop();
|
|
2871
2925
|
}
|
|
2872
2926
|
}
|
|
2873
|
-
},
|
|
2927
|
+
}, _callee33, this);
|
|
2874
2928
|
}));
|
|
2875
2929
|
|
|
2876
2930
|
function hide() {
|
|
@@ -2889,31 +2943,31 @@ var Channel = /*#__PURE__*/function () {
|
|
|
2889
2943
|
}, {
|
|
2890
2944
|
key: "show",
|
|
2891
2945
|
value: function () {
|
|
2892
|
-
var _show = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function
|
|
2946
|
+
var _show = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee34() {
|
|
2893
2947
|
var userId,
|
|
2894
|
-
|
|
2895
|
-
return _regeneratorRuntime__default['default'].wrap(function
|
|
2948
|
+
_args34 = arguments;
|
|
2949
|
+
return _regeneratorRuntime__default['default'].wrap(function _callee34$(_context34) {
|
|
2896
2950
|
while (1) {
|
|
2897
|
-
switch (
|
|
2951
|
+
switch (_context34.prev = _context34.next) {
|
|
2898
2952
|
case 0:
|
|
2899
|
-
userId =
|
|
2953
|
+
userId = _args34.length > 0 && _args34[0] !== undefined ? _args34[0] : null;
|
|
2900
2954
|
|
|
2901
2955
|
this._checkInitialized();
|
|
2902
2956
|
|
|
2903
|
-
|
|
2957
|
+
_context34.next = 4;
|
|
2904
2958
|
return this.getClient().post("".concat(this._channelURL(), "/show"), {
|
|
2905
2959
|
user_id: userId
|
|
2906
2960
|
});
|
|
2907
2961
|
|
|
2908
2962
|
case 4:
|
|
2909
|
-
return
|
|
2963
|
+
return _context34.abrupt("return", _context34.sent);
|
|
2910
2964
|
|
|
2911
2965
|
case 5:
|
|
2912
2966
|
case "end":
|
|
2913
|
-
return
|
|
2967
|
+
return _context34.stop();
|
|
2914
2968
|
}
|
|
2915
2969
|
}
|
|
2916
|
-
},
|
|
2970
|
+
}, _callee34, this);
|
|
2917
2971
|
}));
|
|
2918
2972
|
|
|
2919
2973
|
function show() {
|
|
@@ -2932,31 +2986,31 @@ var Channel = /*#__PURE__*/function () {
|
|
|
2932
2986
|
}, {
|
|
2933
2987
|
key: "unbanUser",
|
|
2934
2988
|
value: function () {
|
|
2935
|
-
var _unbanUser = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function
|
|
2936
|
-
return _regeneratorRuntime__default['default'].wrap(function
|
|
2989
|
+
var _unbanUser = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee35(targetUserID) {
|
|
2990
|
+
return _regeneratorRuntime__default['default'].wrap(function _callee35$(_context35) {
|
|
2937
2991
|
while (1) {
|
|
2938
|
-
switch (
|
|
2992
|
+
switch (_context35.prev = _context35.next) {
|
|
2939
2993
|
case 0:
|
|
2940
2994
|
this._checkInitialized();
|
|
2941
2995
|
|
|
2942
|
-
|
|
2996
|
+
_context35.next = 3;
|
|
2943
2997
|
return this.getClient().unbanUser(targetUserID, {
|
|
2944
2998
|
type: this.type,
|
|
2945
2999
|
id: this.id
|
|
2946
3000
|
});
|
|
2947
3001
|
|
|
2948
3002
|
case 3:
|
|
2949
|
-
return
|
|
3003
|
+
return _context35.abrupt("return", _context35.sent);
|
|
2950
3004
|
|
|
2951
3005
|
case 4:
|
|
2952
3006
|
case "end":
|
|
2953
|
-
return
|
|
3007
|
+
return _context35.stop();
|
|
2954
3008
|
}
|
|
2955
3009
|
}
|
|
2956
|
-
},
|
|
3010
|
+
}, _callee35, this);
|
|
2957
3011
|
}));
|
|
2958
3012
|
|
|
2959
|
-
function unbanUser(
|
|
3013
|
+
function unbanUser(_x33) {
|
|
2960
3014
|
return _unbanUser.apply(this, arguments);
|
|
2961
3015
|
}
|
|
2962
3016
|
|
|
@@ -2973,31 +3027,31 @@ var Channel = /*#__PURE__*/function () {
|
|
|
2973
3027
|
}, {
|
|
2974
3028
|
key: "shadowBan",
|
|
2975
3029
|
value: function () {
|
|
2976
|
-
var _shadowBan = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function
|
|
2977
|
-
return _regeneratorRuntime__default['default'].wrap(function
|
|
3030
|
+
var _shadowBan = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee36(targetUserID, options) {
|
|
3031
|
+
return _regeneratorRuntime__default['default'].wrap(function _callee36$(_context36) {
|
|
2978
3032
|
while (1) {
|
|
2979
|
-
switch (
|
|
3033
|
+
switch (_context36.prev = _context36.next) {
|
|
2980
3034
|
case 0:
|
|
2981
3035
|
this._checkInitialized();
|
|
2982
3036
|
|
|
2983
|
-
|
|
3037
|
+
_context36.next = 3;
|
|
2984
3038
|
return this.getClient().shadowBan(targetUserID, _objectSpread$5(_objectSpread$5({}, options), {}, {
|
|
2985
3039
|
type: this.type,
|
|
2986
3040
|
id: this.id
|
|
2987
3041
|
}));
|
|
2988
3042
|
|
|
2989
3043
|
case 3:
|
|
2990
|
-
return
|
|
3044
|
+
return _context36.abrupt("return", _context36.sent);
|
|
2991
3045
|
|
|
2992
3046
|
case 4:
|
|
2993
3047
|
case "end":
|
|
2994
|
-
return
|
|
3048
|
+
return _context36.stop();
|
|
2995
3049
|
}
|
|
2996
3050
|
}
|
|
2997
|
-
},
|
|
3051
|
+
}, _callee36, this);
|
|
2998
3052
|
}));
|
|
2999
3053
|
|
|
3000
|
-
function shadowBan(
|
|
3054
|
+
function shadowBan(_x34, _x35) {
|
|
3001
3055
|
return _shadowBan.apply(this, arguments);
|
|
3002
3056
|
}
|
|
3003
3057
|
|
|
@@ -3013,31 +3067,31 @@ var Channel = /*#__PURE__*/function () {
|
|
|
3013
3067
|
}, {
|
|
3014
3068
|
key: "removeShadowBan",
|
|
3015
3069
|
value: function () {
|
|
3016
|
-
var _removeShadowBan = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function
|
|
3017
|
-
return _regeneratorRuntime__default['default'].wrap(function
|
|
3070
|
+
var _removeShadowBan = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee37(targetUserID) {
|
|
3071
|
+
return _regeneratorRuntime__default['default'].wrap(function _callee37$(_context37) {
|
|
3018
3072
|
while (1) {
|
|
3019
|
-
switch (
|
|
3073
|
+
switch (_context37.prev = _context37.next) {
|
|
3020
3074
|
case 0:
|
|
3021
3075
|
this._checkInitialized();
|
|
3022
3076
|
|
|
3023
|
-
|
|
3077
|
+
_context37.next = 3;
|
|
3024
3078
|
return this.getClient().removeShadowBan(targetUserID, {
|
|
3025
3079
|
type: this.type,
|
|
3026
3080
|
id: this.id
|
|
3027
3081
|
});
|
|
3028
3082
|
|
|
3029
3083
|
case 3:
|
|
3030
|
-
return
|
|
3084
|
+
return _context37.abrupt("return", _context37.sent);
|
|
3031
3085
|
|
|
3032
3086
|
case 4:
|
|
3033
3087
|
case "end":
|
|
3034
|
-
return
|
|
3088
|
+
return _context37.stop();
|
|
3035
3089
|
}
|
|
3036
3090
|
}
|
|
3037
|
-
},
|
|
3091
|
+
}, _callee37, this);
|
|
3038
3092
|
}));
|
|
3039
3093
|
|
|
3040
|
-
function removeShadowBan(
|
|
3094
|
+
function removeShadowBan(_x36) {
|
|
3041
3095
|
return _removeShadowBan.apply(this, arguments);
|
|
3042
3096
|
}
|
|
3043
3097
|
|
|
@@ -3259,7 +3313,12 @@ var Channel = /*#__PURE__*/function () {
|
|
|
3259
3313
|
|
|
3260
3314
|
case 'channel.updated':
|
|
3261
3315
|
if (event.channel) {
|
|
3262
|
-
channel
|
|
3316
|
+
var _event$channel$hidden, _event$channel, _channel$data, _event$channel$own_ca, _event$channel2, _channel$data2;
|
|
3317
|
+
|
|
3318
|
+
channel.data = _objectSpread$5(_objectSpread$5({}, event.channel), {}, {
|
|
3319
|
+
hidden: (_event$channel$hidden = (_event$channel = event.channel) === null || _event$channel === void 0 ? void 0 : _event$channel.hidden) !== null && _event$channel$hidden !== void 0 ? _event$channel$hidden : (_channel$data = channel.data) === null || _channel$data === void 0 ? void 0 : _channel$data.hidden,
|
|
3320
|
+
own_capabilities: (_event$channel$own_ca = (_event$channel2 = event.channel) === null || _event$channel2 === void 0 ? void 0 : _event$channel2.own_capabilities) !== null && _event$channel$own_ca !== void 0 ? _event$channel$own_ca : (_channel$data2 = channel.data) === null || _channel$data2 === void 0 ? void 0 : _channel$data2.own_capabilities
|
|
3321
|
+
});
|
|
3263
3322
|
}
|
|
3264
3323
|
|
|
3265
3324
|
break;
|
|
@@ -3446,7 +3505,7 @@ var Channel = /*#__PURE__*/function () {
|
|
|
3446
3505
|
return Channel;
|
|
3447
3506
|
}();
|
|
3448
3507
|
|
|
3449
|
-
function _createForOfIteratorHelper$1(o, allowArrayLike) { var it
|
|
3508
|
+
function _createForOfIteratorHelper$1(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$1(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
3450
3509
|
|
|
3451
3510
|
function _unsupportedIterableToArray$1(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$1(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$1(o, minLen); }
|
|
3452
3511
|
|
|
@@ -3521,7 +3580,7 @@ var ClientState = /*#__PURE__*/function () {
|
|
|
3521
3580
|
return ClientState;
|
|
3522
3581
|
}();
|
|
3523
3582
|
|
|
3524
|
-
function ownKeys$4(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
3583
|
+
function ownKeys$4(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
3525
3584
|
|
|
3526
3585
|
function _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$4(Object(source), true).forEach(function (key) { _defineProperty__default['default'](target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$4(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
3527
3586
|
var InsightMetrics = function InsightMetrics() {
|
|
@@ -3635,7 +3694,7 @@ function buildWsSuccessAfterFailureInsight(connection) {
|
|
|
3635
3694
|
return buildWsBaseInsight(connection);
|
|
3636
3695
|
}
|
|
3637
3696
|
|
|
3638
|
-
function ownKeys$3(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
3697
|
+
function ownKeys$3(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
3639
3698
|
|
|
3640
3699
|
function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$3(Object(source), true).forEach(function (key) { _defineProperty__default['default'](target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$3(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
3641
3700
|
|
|
@@ -4557,7 +4616,7 @@ var jwt = null;
|
|
|
4557
4616
|
|
|
4558
4617
|
var crypto$1 = null;
|
|
4559
4618
|
|
|
4560
|
-
function ownKeys$2(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
4619
|
+
function ownKeys$2(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
4561
4620
|
|
|
4562
4621
|
function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$2(Object(source), true).forEach(function (key) { _defineProperty__default['default'](target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$2(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
4563
4622
|
|
|
@@ -4966,7 +5025,7 @@ function isWSFailure(err) {
|
|
|
4966
5025
|
}
|
|
4967
5026
|
}
|
|
4968
5027
|
|
|
4969
|
-
function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
5028
|
+
function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
4970
5029
|
|
|
4971
5030
|
function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$1(Object(source), true).forEach(function (key) { _defineProperty__default['default'](target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
4972
5031
|
var ConnectionState;
|
|
@@ -5174,27 +5233,35 @@ var WSConnectionFallback = /*#__PURE__*/function () {
|
|
|
5174
5233
|
reconnect = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : false;
|
|
5175
5234
|
|
|
5176
5235
|
if (!(_this.state === ConnectionState.Connecting)) {
|
|
5177
|
-
_context3.next =
|
|
5236
|
+
_context3.next = 4;
|
|
5178
5237
|
break;
|
|
5179
5238
|
}
|
|
5180
5239
|
|
|
5181
|
-
|
|
5240
|
+
_this._log('connect() - connecting already in progress', {
|
|
5241
|
+
reconnect: reconnect
|
|
5242
|
+
}, 'warn');
|
|
5182
5243
|
|
|
5183
|
-
|
|
5244
|
+
return _context3.abrupt("return");
|
|
5245
|
+
|
|
5246
|
+
case 4:
|
|
5184
5247
|
if (!(_this.state === ConnectionState.Connected)) {
|
|
5185
|
-
_context3.next =
|
|
5248
|
+
_context3.next = 7;
|
|
5186
5249
|
break;
|
|
5187
5250
|
}
|
|
5188
5251
|
|
|
5189
|
-
|
|
5252
|
+
_this._log('connect() - already connected and polling', {
|
|
5253
|
+
reconnect: reconnect
|
|
5254
|
+
}, 'warn');
|
|
5190
5255
|
|
|
5191
|
-
|
|
5256
|
+
return _context3.abrupt("return");
|
|
5257
|
+
|
|
5258
|
+
case 7:
|
|
5192
5259
|
_this._setState(ConnectionState.Connecting);
|
|
5193
5260
|
|
|
5194
5261
|
_this.connectionID = undefined; // connect should be sent with empty connection_id so API creates one
|
|
5195
5262
|
|
|
5196
|
-
_context3.prev =
|
|
5197
|
-
_context3.next =
|
|
5263
|
+
_context3.prev = 9;
|
|
5264
|
+
_context3.next = 12;
|
|
5198
5265
|
return _this._req({
|
|
5199
5266
|
json: _this.client._buildWSPayload()
|
|
5200
5267
|
}, {
|
|
@@ -5202,7 +5269,7 @@ var WSConnectionFallback = /*#__PURE__*/function () {
|
|
|
5202
5269
|
}, // 8s
|
|
5203
5270
|
reconnect);
|
|
5204
5271
|
|
|
5205
|
-
case
|
|
5272
|
+
case 12:
|
|
5206
5273
|
_yield$_this$_req = _context3.sent;
|
|
5207
5274
|
event = _yield$_this$_req.event;
|
|
5208
5275
|
|
|
@@ -5218,30 +5285,31 @@ var WSConnectionFallback = /*#__PURE__*/function () {
|
|
|
5218
5285
|
|
|
5219
5286
|
return _context3.abrupt("return", event);
|
|
5220
5287
|
|
|
5221
|
-
case
|
|
5222
|
-
_context3.prev =
|
|
5223
|
-
_context3.t0 = _context3["catch"](
|
|
5288
|
+
case 21:
|
|
5289
|
+
_context3.prev = 21;
|
|
5290
|
+
_context3.t0 = _context3["catch"](9);
|
|
5224
5291
|
|
|
5225
5292
|
_this._setState(ConnectionState.Closed);
|
|
5226
5293
|
|
|
5227
5294
|
throw _context3.t0;
|
|
5228
5295
|
|
|
5229
|
-
case
|
|
5296
|
+
case 25:
|
|
5230
5297
|
case "end":
|
|
5231
5298
|
return _context3.stop();
|
|
5232
5299
|
}
|
|
5233
5300
|
}
|
|
5234
|
-
}, _callee3, null, [[
|
|
5301
|
+
}, _callee3, null, [[9, 21]]);
|
|
5235
5302
|
})));
|
|
5236
5303
|
|
|
5237
5304
|
_defineProperty__default['default'](this, "isHealthy", function () {
|
|
5238
|
-
return _this.connectionID && _this.state === ConnectionState.Connected;
|
|
5305
|
+
return !!_this.connectionID && _this.state === ConnectionState.Connected;
|
|
5239
5306
|
});
|
|
5240
5307
|
|
|
5241
5308
|
_defineProperty__default['default'](this, "disconnect", /*#__PURE__*/_asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee4() {
|
|
5242
5309
|
var _this$cancelToken3;
|
|
5243
5310
|
|
|
5244
5311
|
var timeout,
|
|
5312
|
+
connection_id,
|
|
5245
5313
|
_args4 = arguments;
|
|
5246
5314
|
return _regeneratorRuntime__default['default'].wrap(function _callee4$(_context4) {
|
|
5247
5315
|
while (1) {
|
|
@@ -5254,36 +5322,37 @@ var WSConnectionFallback = /*#__PURE__*/function () {
|
|
|
5254
5322
|
|
|
5255
5323
|
(_this$cancelToken3 = _this.cancelToken) === null || _this$cancelToken3 === void 0 ? void 0 : _this$cancelToken3.cancel('disconnect() is called');
|
|
5256
5324
|
_this.cancelToken = undefined;
|
|
5257
|
-
|
|
5258
|
-
|
|
5325
|
+
connection_id = _this.connectionID;
|
|
5326
|
+
_this.connectionID = undefined;
|
|
5327
|
+
_context4.prev = 7;
|
|
5328
|
+
_context4.next = 10;
|
|
5259
5329
|
return _this._req({
|
|
5260
|
-
close: true
|
|
5330
|
+
close: true,
|
|
5331
|
+
connection_id: connection_id
|
|
5261
5332
|
}, {
|
|
5262
5333
|
timeout: timeout
|
|
5263
5334
|
}, false);
|
|
5264
5335
|
|
|
5265
|
-
case
|
|
5266
|
-
_this.connectionID = undefined;
|
|
5267
|
-
|
|
5336
|
+
case 10:
|
|
5268
5337
|
_this._log("disconnect() - Closed connectionID");
|
|
5269
5338
|
|
|
5270
|
-
_context4.next =
|
|
5339
|
+
_context4.next = 16;
|
|
5271
5340
|
break;
|
|
5272
5341
|
|
|
5273
|
-
case
|
|
5274
|
-
_context4.prev =
|
|
5275
|
-
_context4.t0 = _context4["catch"](
|
|
5342
|
+
case 13:
|
|
5343
|
+
_context4.prev = 13;
|
|
5344
|
+
_context4.t0 = _context4["catch"](7);
|
|
5276
5345
|
|
|
5277
5346
|
_this._log("disconnect() - Failed", {
|
|
5278
5347
|
err: _context4.t0
|
|
5279
5348
|
}, 'error');
|
|
5280
5349
|
|
|
5281
|
-
case
|
|
5350
|
+
case 16:
|
|
5282
5351
|
case "end":
|
|
5283
5352
|
return _context4.stop();
|
|
5284
5353
|
}
|
|
5285
5354
|
}
|
|
5286
|
-
}, _callee4, null, [[
|
|
5355
|
+
}, _callee4, null, [[7, 13]]);
|
|
5287
5356
|
})));
|
|
5288
5357
|
|
|
5289
5358
|
this.client = client;
|
|
@@ -5332,13 +5401,15 @@ var WSConnectionFallback = /*#__PURE__*/function () {
|
|
|
5332
5401
|
return WSConnectionFallback;
|
|
5333
5402
|
}();
|
|
5334
5403
|
|
|
5335
|
-
|
|
5404
|
+
var _excluded = ["created_at", "updated_at", "last_active", "online"];
|
|
5405
|
+
|
|
5406
|
+
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
5336
5407
|
|
|
5337
5408
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
5338
5409
|
|
|
5339
5410
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
5340
5411
|
|
|
5341
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
|
|
5412
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
|
|
5342
5413
|
|
|
5343
5414
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty__default['default'](target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
5344
5415
|
|
|
@@ -6643,7 +6714,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
6643
6714
|
case 11:
|
|
6644
6715
|
this.anonymous = false; // eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
6645
6716
|
|
|
6646
|
-
_response$user = response.user, _response$user.created_at, _response$user.updated_at, _response$user.last_active, _response$user.online, guestUser = _objectWithoutProperties__default['default'](_response$user,
|
|
6717
|
+
_response$user = response.user, _response$user.created_at, _response$user.updated_at, _response$user.last_active, _response$user.online, guestUser = _objectWithoutProperties__default['default'](_response$user, _excluded);
|
|
6647
6718
|
_context14.next = 15;
|
|
6648
6719
|
return this.connectUser(guestUser, response.access_token);
|
|
6649
6720
|
|
|
@@ -7006,23 +7077,41 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
7006
7077
|
client: this
|
|
7007
7078
|
});
|
|
7008
7079
|
_context15.prev = 8;
|
|
7009
|
-
|
|
7080
|
+
|
|
7081
|
+
if (!this.wsFallback) {
|
|
7082
|
+
_context15.next = 13;
|
|
7083
|
+
break;
|
|
7084
|
+
}
|
|
7085
|
+
|
|
7086
|
+
_context15.next = 12;
|
|
7087
|
+
return this.wsFallback.connect();
|
|
7088
|
+
|
|
7089
|
+
case 12:
|
|
7090
|
+
return _context15.abrupt("return", _context15.sent);
|
|
7091
|
+
|
|
7092
|
+
case 13:
|
|
7093
|
+
_context15.next = 15;
|
|
7010
7094
|
return this.wsConnection.connect(this.options.enableWSFallback ? this.defaultWSTimeoutWithFallback : this.defaultWSTimeout);
|
|
7011
7095
|
|
|
7012
|
-
case
|
|
7096
|
+
case 15:
|
|
7013
7097
|
return _context15.abrupt("return", _context15.sent);
|
|
7014
7098
|
|
|
7015
|
-
case
|
|
7016
|
-
_context15.prev =
|
|
7099
|
+
case 18:
|
|
7100
|
+
_context15.prev = 18;
|
|
7017
7101
|
_context15.t0 = _context15["catch"](8);
|
|
7018
7102
|
|
|
7019
7103
|
if (!(this.options.enableWSFallback && isWSFailure(_context15.t0) && isOnline())) {
|
|
7020
|
-
_context15.next =
|
|
7104
|
+
_context15.next = 29;
|
|
7021
7105
|
break;
|
|
7022
7106
|
}
|
|
7023
7107
|
|
|
7024
7108
|
this.logger('info', 'client:connect() - WS failed, fallback to longpoll', {
|
|
7025
7109
|
tags: ['connection', 'client']
|
|
7110
|
+
}); // @ts-expect-error
|
|
7111
|
+
|
|
7112
|
+
this.dispatchEvent({
|
|
7113
|
+
type: 'transport.changed',
|
|
7114
|
+
mode: 'longpoll'
|
|
7026
7115
|
});
|
|
7027
7116
|
|
|
7028
7117
|
this.wsConnection._destroyCurrentWSConnection();
|
|
@@ -7032,21 +7121,21 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
7032
7121
|
this.wsFallback = new WSConnectionFallback({
|
|
7033
7122
|
client: this
|
|
7034
7123
|
});
|
|
7035
|
-
_context15.next =
|
|
7124
|
+
_context15.next = 28;
|
|
7036
7125
|
return this.wsFallback.connect();
|
|
7037
7126
|
|
|
7038
|
-
case
|
|
7127
|
+
case 28:
|
|
7039
7128
|
return _context15.abrupt("return", _context15.sent);
|
|
7040
7129
|
|
|
7041
|
-
case
|
|
7130
|
+
case 29:
|
|
7042
7131
|
throw _context15.t0;
|
|
7043
7132
|
|
|
7044
|
-
case
|
|
7133
|
+
case 30:
|
|
7045
7134
|
case "end":
|
|
7046
7135
|
return _context15.stop();
|
|
7047
7136
|
}
|
|
7048
7137
|
}
|
|
7049
|
-
}, _callee15, this, [[8,
|
|
7138
|
+
}, _callee15, this, [[8, 18]]);
|
|
7050
7139
|
}));
|
|
7051
7140
|
|
|
7052
7141
|
function connect() {
|
|
@@ -8453,6 +8542,101 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
8453
8542
|
|
|
8454
8543
|
return unflagUser;
|
|
8455
8544
|
}()
|
|
8545
|
+
/**
|
|
8546
|
+
* _queryFlagReports - Query flag reports.
|
|
8547
|
+
*
|
|
8548
|
+
* Note: Do not use this.
|
|
8549
|
+
* It is present for internal usage only.
|
|
8550
|
+
* This function can, and will, break and/or be removed at any point in time.
|
|
8551
|
+
*
|
|
8552
|
+
* @param {FlagReportsFilters} filterConditions MongoDB style filter conditions
|
|
8553
|
+
* @param {FlagReportsPaginationOptions} options Option object, {limit: 10, offset:0}
|
|
8554
|
+
*
|
|
8555
|
+
* @return {Promise<FlagReportsResponse<ChannelType, CommandType, UserType>>} Flag Reports Response
|
|
8556
|
+
*/
|
|
8557
|
+
|
|
8558
|
+
}, {
|
|
8559
|
+
key: "_queryFlagReports",
|
|
8560
|
+
value: function () {
|
|
8561
|
+
var _queryFlagReports2 = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee42() {
|
|
8562
|
+
var filterConditions,
|
|
8563
|
+
options,
|
|
8564
|
+
_args42 = arguments;
|
|
8565
|
+
return _regeneratorRuntime__default['default'].wrap(function _callee42$(_context42) {
|
|
8566
|
+
while (1) {
|
|
8567
|
+
switch (_context42.prev = _context42.next) {
|
|
8568
|
+
case 0:
|
|
8569
|
+
filterConditions = _args42.length > 0 && _args42[0] !== undefined ? _args42[0] : {};
|
|
8570
|
+
options = _args42.length > 1 && _args42[1] !== undefined ? _args42[1] : {};
|
|
8571
|
+
_context42.next = 4;
|
|
8572
|
+
return this.post(this.baseURL + '/moderation/reports', _objectSpread({
|
|
8573
|
+
filter_conditions: filterConditions
|
|
8574
|
+
}, options));
|
|
8575
|
+
|
|
8576
|
+
case 4:
|
|
8577
|
+
return _context42.abrupt("return", _context42.sent);
|
|
8578
|
+
|
|
8579
|
+
case 5:
|
|
8580
|
+
case "end":
|
|
8581
|
+
return _context42.stop();
|
|
8582
|
+
}
|
|
8583
|
+
}
|
|
8584
|
+
}, _callee42, this);
|
|
8585
|
+
}));
|
|
8586
|
+
|
|
8587
|
+
function _queryFlagReports() {
|
|
8588
|
+
return _queryFlagReports2.apply(this, arguments);
|
|
8589
|
+
}
|
|
8590
|
+
|
|
8591
|
+
return _queryFlagReports;
|
|
8592
|
+
}()
|
|
8593
|
+
/**
|
|
8594
|
+
* _reviewFlagReport - review flag report
|
|
8595
|
+
*
|
|
8596
|
+
* Note: Do not use this.
|
|
8597
|
+
* It is present for internal usage only.
|
|
8598
|
+
* This function can, and will, break and/or be removed at any point in time.
|
|
8599
|
+
*
|
|
8600
|
+
* @param {string} [id] flag report to review
|
|
8601
|
+
* @param {string} [reviewResult] flag report review result
|
|
8602
|
+
* @param {string} [options.user_id] currentUserID, only used with serverside auth
|
|
8603
|
+
* @param {string} [options.review_details] custom information about review result
|
|
8604
|
+
* @returns {Promise<ReviewFlagReportResponse>>}
|
|
8605
|
+
*/
|
|
8606
|
+
|
|
8607
|
+
}, {
|
|
8608
|
+
key: "_reviewFlagReport",
|
|
8609
|
+
value: function () {
|
|
8610
|
+
var _reviewFlagReport2 = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee43(id, reviewResult) {
|
|
8611
|
+
var options,
|
|
8612
|
+
_args43 = arguments;
|
|
8613
|
+
return _regeneratorRuntime__default['default'].wrap(function _callee43$(_context43) {
|
|
8614
|
+
while (1) {
|
|
8615
|
+
switch (_context43.prev = _context43.next) {
|
|
8616
|
+
case 0:
|
|
8617
|
+
options = _args43.length > 2 && _args43[2] !== undefined ? _args43[2] : {};
|
|
8618
|
+
_context43.next = 3;
|
|
8619
|
+
return this.patch(this.baseURL + "/moderation/reports/".concat(id), _objectSpread({
|
|
8620
|
+
review_result: reviewResult
|
|
8621
|
+
}, options));
|
|
8622
|
+
|
|
8623
|
+
case 3:
|
|
8624
|
+
return _context43.abrupt("return", _context43.sent);
|
|
8625
|
+
|
|
8626
|
+
case 4:
|
|
8627
|
+
case "end":
|
|
8628
|
+
return _context43.stop();
|
|
8629
|
+
}
|
|
8630
|
+
}
|
|
8631
|
+
}, _callee43, this);
|
|
8632
|
+
}));
|
|
8633
|
+
|
|
8634
|
+
function _reviewFlagReport(_x54, _x55) {
|
|
8635
|
+
return _reviewFlagReport2.apply(this, arguments);
|
|
8636
|
+
}
|
|
8637
|
+
|
|
8638
|
+
return _reviewFlagReport;
|
|
8639
|
+
}()
|
|
8456
8640
|
/**
|
|
8457
8641
|
* @deprecated use markChannelsRead instead
|
|
8458
8642
|
*
|
|
@@ -8474,23 +8658,23 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
8474
8658
|
* @return {Promise<APIResponse>}
|
|
8475
8659
|
*/
|
|
8476
8660
|
function () {
|
|
8477
|
-
var _markChannelsRead = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function
|
|
8661
|
+
var _markChannelsRead = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee44() {
|
|
8478
8662
|
var data,
|
|
8479
|
-
|
|
8480
|
-
return _regeneratorRuntime__default['default'].wrap(function
|
|
8663
|
+
_args44 = arguments;
|
|
8664
|
+
return _regeneratorRuntime__default['default'].wrap(function _callee44$(_context44) {
|
|
8481
8665
|
while (1) {
|
|
8482
|
-
switch (
|
|
8666
|
+
switch (_context44.prev = _context44.next) {
|
|
8483
8667
|
case 0:
|
|
8484
|
-
data =
|
|
8485
|
-
|
|
8668
|
+
data = _args44.length > 0 && _args44[0] !== undefined ? _args44[0] : {};
|
|
8669
|
+
_context44.next = 3;
|
|
8486
8670
|
return this.post(this.baseURL + '/channels/read', _objectSpread({}, data));
|
|
8487
8671
|
|
|
8488
8672
|
case 3:
|
|
8489
8673
|
case "end":
|
|
8490
|
-
return
|
|
8674
|
+
return _context44.stop();
|
|
8491
8675
|
}
|
|
8492
8676
|
}
|
|
8493
|
-
},
|
|
8677
|
+
}, _callee44, this);
|
|
8494
8678
|
}));
|
|
8495
8679
|
|
|
8496
8680
|
function markChannelsRead() {
|
|
@@ -8565,28 +8749,28 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
8565
8749
|
}, {
|
|
8566
8750
|
key: "translateMessage",
|
|
8567
8751
|
value: function () {
|
|
8568
|
-
var _translateMessage = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function
|
|
8569
|
-
return _regeneratorRuntime__default['default'].wrap(function
|
|
8752
|
+
var _translateMessage = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee45(messageId, language) {
|
|
8753
|
+
return _regeneratorRuntime__default['default'].wrap(function _callee45$(_context45) {
|
|
8570
8754
|
while (1) {
|
|
8571
|
-
switch (
|
|
8755
|
+
switch (_context45.prev = _context45.next) {
|
|
8572
8756
|
case 0:
|
|
8573
|
-
|
|
8757
|
+
_context45.next = 2;
|
|
8574
8758
|
return this.post(this.baseURL + "/messages/".concat(messageId, "/translate"), {
|
|
8575
8759
|
language: language
|
|
8576
8760
|
});
|
|
8577
8761
|
|
|
8578
8762
|
case 2:
|
|
8579
|
-
return
|
|
8763
|
+
return _context45.abrupt("return", _context45.sent);
|
|
8580
8764
|
|
|
8581
8765
|
case 3:
|
|
8582
8766
|
case "end":
|
|
8583
|
-
return
|
|
8767
|
+
return _context45.stop();
|
|
8584
8768
|
}
|
|
8585
8769
|
}
|
|
8586
|
-
},
|
|
8770
|
+
}, _callee45, this);
|
|
8587
8771
|
}));
|
|
8588
8772
|
|
|
8589
|
-
function translateMessage(
|
|
8773
|
+
function translateMessage(_x56, _x57) {
|
|
8590
8774
|
return _translateMessage.apply(this, arguments);
|
|
8591
8775
|
}
|
|
8592
8776
|
|
|
@@ -8600,7 +8784,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
8600
8784
|
}, {
|
|
8601
8785
|
key: "_normalizeExpiration",
|
|
8602
8786
|
value: function _normalizeExpiration(timeoutOrExpirationDate) {
|
|
8603
|
-
var pinExpires;
|
|
8787
|
+
var pinExpires = null;
|
|
8604
8788
|
|
|
8605
8789
|
if (typeof timeoutOrExpirationDate === 'number') {
|
|
8606
8790
|
var now = new Date();
|
|
@@ -8641,20 +8825,22 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
8641
8825
|
* pinMessage - pins the message
|
|
8642
8826
|
* @param {string | { id: string }} messageOrMessageId message object or message id
|
|
8643
8827
|
* @param {undefined|null|number|string|Date} timeoutOrExpirationDate expiration date or timeout. Use number type to set timeout in seconds, string or Date to set exact expiration date
|
|
8644
|
-
* @param {string | { id: string }} [
|
|
8828
|
+
* @param {undefined|string | { id: string }} [pinnedBy] who will appear as a user who pinned a message. Only for server-side use. Provide `undefined` when pinning message client-side
|
|
8829
|
+
* @param {undefined|number|string|Date} pinnedAt date when message should be pinned. It affects the order of pinned messages. Use negative number to set relative time in the past, string or Date to set exact date of pin
|
|
8645
8830
|
*/
|
|
8646
8831
|
|
|
8647
8832
|
}, {
|
|
8648
8833
|
key: "pinMessage",
|
|
8649
|
-
value: function pinMessage(messageOrMessageId, timeoutOrExpirationDate,
|
|
8834
|
+
value: function pinMessage(messageOrMessageId, timeoutOrExpirationDate, pinnedBy, pinnedAt) {
|
|
8650
8835
|
var messageId = this._validateAndGetMessageId(messageOrMessageId, 'Please specify the message id when calling unpinMessage');
|
|
8651
8836
|
|
|
8652
8837
|
return this.partialUpdateMessage(messageId, {
|
|
8653
8838
|
set: {
|
|
8654
8839
|
pinned: true,
|
|
8655
|
-
pin_expires: this._normalizeExpiration(timeoutOrExpirationDate)
|
|
8840
|
+
pin_expires: this._normalizeExpiration(timeoutOrExpirationDate),
|
|
8841
|
+
pinned_at: this._normalizeExpiration(pinnedAt)
|
|
8656
8842
|
}
|
|
8657
|
-
},
|
|
8843
|
+
}, pinnedBy);
|
|
8658
8844
|
}
|
|
8659
8845
|
/**
|
|
8660
8846
|
* unpinMessage - unpins the message that was previously pinned
|
|
@@ -8686,14 +8872,14 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
8686
8872
|
}, {
|
|
8687
8873
|
key: "updateMessage",
|
|
8688
8874
|
value: function () {
|
|
8689
|
-
var _updateMessage = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function
|
|
8875
|
+
var _updateMessage = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee46(message, userId, options) {
|
|
8690
8876
|
var clonedMessage, reservedMessageFields;
|
|
8691
|
-
return _regeneratorRuntime__default['default'].wrap(function
|
|
8877
|
+
return _regeneratorRuntime__default['default'].wrap(function _callee46$(_context46) {
|
|
8692
8878
|
while (1) {
|
|
8693
|
-
switch (
|
|
8879
|
+
switch (_context46.prev = _context46.next) {
|
|
8694
8880
|
case 0:
|
|
8695
8881
|
if (message.id) {
|
|
8696
|
-
|
|
8882
|
+
_context46.next = 2;
|
|
8697
8883
|
break;
|
|
8698
8884
|
}
|
|
8699
8885
|
|
|
@@ -8730,23 +8916,23 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
8730
8916
|
});
|
|
8731
8917
|
}
|
|
8732
8918
|
|
|
8733
|
-
|
|
8919
|
+
_context46.next = 10;
|
|
8734
8920
|
return this.post(this.baseURL + "/messages/".concat(message.id), _objectSpread({
|
|
8735
8921
|
message: clonedMessage
|
|
8736
8922
|
}, options));
|
|
8737
8923
|
|
|
8738
8924
|
case 10:
|
|
8739
|
-
return
|
|
8925
|
+
return _context46.abrupt("return", _context46.sent);
|
|
8740
8926
|
|
|
8741
8927
|
case 11:
|
|
8742
8928
|
case "end":
|
|
8743
|
-
return
|
|
8929
|
+
return _context46.stop();
|
|
8744
8930
|
}
|
|
8745
8931
|
}
|
|
8746
|
-
},
|
|
8932
|
+
}, _callee46, this);
|
|
8747
8933
|
}));
|
|
8748
8934
|
|
|
8749
|
-
function updateMessage(
|
|
8935
|
+
function updateMessage(_x58, _x59, _x60) {
|
|
8750
8936
|
return _updateMessage.apply(this, arguments);
|
|
8751
8937
|
}
|
|
8752
8938
|
|
|
@@ -8769,14 +8955,14 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
8769
8955
|
}, {
|
|
8770
8956
|
key: "partialUpdateMessage",
|
|
8771
8957
|
value: function () {
|
|
8772
|
-
var _partialUpdateMessage = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function
|
|
8958
|
+
var _partialUpdateMessage = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee47(id, partialMessageObject, userId, options) {
|
|
8773
8959
|
var user;
|
|
8774
|
-
return _regeneratorRuntime__default['default'].wrap(function
|
|
8960
|
+
return _regeneratorRuntime__default['default'].wrap(function _callee47$(_context47) {
|
|
8775
8961
|
while (1) {
|
|
8776
|
-
switch (
|
|
8962
|
+
switch (_context47.prev = _context47.next) {
|
|
8777
8963
|
case 0:
|
|
8778
8964
|
if (id) {
|
|
8779
|
-
|
|
8965
|
+
_context47.next = 2;
|
|
8780
8966
|
break;
|
|
8781
8967
|
}
|
|
8782
8968
|
|
|
@@ -8791,23 +8977,23 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
8791
8977
|
};
|
|
8792
8978
|
}
|
|
8793
8979
|
|
|
8794
|
-
|
|
8980
|
+
_context47.next = 6;
|
|
8795
8981
|
return this.put(this.baseURL + "/messages/".concat(id), _objectSpread(_objectSpread(_objectSpread({}, partialMessageObject), options), {}, {
|
|
8796
8982
|
user: user
|
|
8797
8983
|
}));
|
|
8798
8984
|
|
|
8799
8985
|
case 6:
|
|
8800
|
-
return
|
|
8986
|
+
return _context47.abrupt("return", _context47.sent);
|
|
8801
8987
|
|
|
8802
8988
|
case 7:
|
|
8803
8989
|
case "end":
|
|
8804
|
-
return
|
|
8990
|
+
return _context47.stop();
|
|
8805
8991
|
}
|
|
8806
8992
|
}
|
|
8807
|
-
},
|
|
8993
|
+
}, _callee47, this);
|
|
8808
8994
|
}));
|
|
8809
8995
|
|
|
8810
|
-
function partialUpdateMessage(
|
|
8996
|
+
function partialUpdateMessage(_x61, _x62, _x63, _x64) {
|
|
8811
8997
|
return _partialUpdateMessage.apply(this, arguments);
|
|
8812
8998
|
}
|
|
8813
8999
|
|
|
@@ -8816,11 +9002,11 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
8816
9002
|
}, {
|
|
8817
9003
|
key: "deleteMessage",
|
|
8818
9004
|
value: function () {
|
|
8819
|
-
var _deleteMessage = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function
|
|
9005
|
+
var _deleteMessage = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee48(messageID, hardDelete) {
|
|
8820
9006
|
var params;
|
|
8821
|
-
return _regeneratorRuntime__default['default'].wrap(function
|
|
9007
|
+
return _regeneratorRuntime__default['default'].wrap(function _callee48$(_context48) {
|
|
8822
9008
|
while (1) {
|
|
8823
|
-
switch (
|
|
9009
|
+
switch (_context48.prev = _context48.next) {
|
|
8824
9010
|
case 0:
|
|
8825
9011
|
params = {};
|
|
8826
9012
|
|
|
@@ -8830,21 +9016,21 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
8830
9016
|
};
|
|
8831
9017
|
}
|
|
8832
9018
|
|
|
8833
|
-
|
|
9019
|
+
_context48.next = 4;
|
|
8834
9020
|
return this.delete(this.baseURL + "/messages/".concat(messageID), params);
|
|
8835
9021
|
|
|
8836
9022
|
case 4:
|
|
8837
|
-
return
|
|
9023
|
+
return _context48.abrupt("return", _context48.sent);
|
|
8838
9024
|
|
|
8839
9025
|
case 5:
|
|
8840
9026
|
case "end":
|
|
8841
|
-
return
|
|
9027
|
+
return _context48.stop();
|
|
8842
9028
|
}
|
|
8843
9029
|
}
|
|
8844
|
-
},
|
|
9030
|
+
}, _callee48, this);
|
|
8845
9031
|
}));
|
|
8846
9032
|
|
|
8847
|
-
function deleteMessage(
|
|
9033
|
+
function deleteMessage(_x65, _x66) {
|
|
8848
9034
|
return _deleteMessage.apply(this, arguments);
|
|
8849
9035
|
}
|
|
8850
9036
|
|
|
@@ -8853,26 +9039,26 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
8853
9039
|
}, {
|
|
8854
9040
|
key: "getMessage",
|
|
8855
9041
|
value: function () {
|
|
8856
|
-
var _getMessage = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function
|
|
8857
|
-
return _regeneratorRuntime__default['default'].wrap(function
|
|
9042
|
+
var _getMessage = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee49(messageID) {
|
|
9043
|
+
return _regeneratorRuntime__default['default'].wrap(function _callee49$(_context49) {
|
|
8858
9044
|
while (1) {
|
|
8859
|
-
switch (
|
|
9045
|
+
switch (_context49.prev = _context49.next) {
|
|
8860
9046
|
case 0:
|
|
8861
|
-
|
|
9047
|
+
_context49.next = 2;
|
|
8862
9048
|
return this.get(this.baseURL + "/messages/".concat(messageID));
|
|
8863
9049
|
|
|
8864
9050
|
case 2:
|
|
8865
|
-
return
|
|
9051
|
+
return _context49.abrupt("return", _context49.sent);
|
|
8866
9052
|
|
|
8867
9053
|
case 3:
|
|
8868
9054
|
case "end":
|
|
8869
|
-
return
|
|
9055
|
+
return _context49.stop();
|
|
8870
9056
|
}
|
|
8871
9057
|
}
|
|
8872
|
-
},
|
|
9058
|
+
}, _callee49, this);
|
|
8873
9059
|
}));
|
|
8874
9060
|
|
|
8875
|
-
function getMessage(
|
|
9061
|
+
function getMessage(_x67) {
|
|
8876
9062
|
return _getMessage.apply(this, arguments);
|
|
8877
9063
|
}
|
|
8878
9064
|
|
|
@@ -8881,7 +9067,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
8881
9067
|
}, {
|
|
8882
9068
|
key: "getUserAgent",
|
|
8883
9069
|
value: function getUserAgent() {
|
|
8884
|
-
return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "5.
|
|
9070
|
+
return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "5.1.2");
|
|
8885
9071
|
}
|
|
8886
9072
|
}, {
|
|
8887
9073
|
key: "setUserAgent",
|
|
@@ -8916,12 +9102,11 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
8916
9102
|
}
|
|
8917
9103
|
|
|
8918
9104
|
return _objectSpread({
|
|
8919
|
-
params: _objectSpread(
|
|
8920
|
-
user_id: this.userID
|
|
8921
|
-
|
|
8922
|
-
api_key: this.key
|
|
8923
|
-
|
|
8924
|
-
}),
|
|
9105
|
+
params: _objectSpread({
|
|
9106
|
+
user_id: this.userID,
|
|
9107
|
+
connection_id: this._getConnectionID(),
|
|
9108
|
+
api_key: this.key
|
|
9109
|
+
}, options.params),
|
|
8925
9110
|
headers: _objectSpread(_objectSpread({}, authorization), {}, {
|
|
8926
9111
|
'stream-auth-type': this.getAuthType(),
|
|
8927
9112
|
'X-Stream-Client': this.getUserAgent()
|
|
@@ -9077,28 +9262,28 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9077
9262
|
}, {
|
|
9078
9263
|
key: "sendUserCustomEvent",
|
|
9079
9264
|
value: function () {
|
|
9080
|
-
var _sendUserCustomEvent = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function
|
|
9081
|
-
return _regeneratorRuntime__default['default'].wrap(function
|
|
9265
|
+
var _sendUserCustomEvent = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee50(targetUserID, event) {
|
|
9266
|
+
return _regeneratorRuntime__default['default'].wrap(function _callee50$(_context50) {
|
|
9082
9267
|
while (1) {
|
|
9083
|
-
switch (
|
|
9268
|
+
switch (_context50.prev = _context50.next) {
|
|
9084
9269
|
case 0:
|
|
9085
|
-
|
|
9270
|
+
_context50.next = 2;
|
|
9086
9271
|
return this.post("".concat(this.baseURL, "/users/").concat(targetUserID, "/event"), {
|
|
9087
9272
|
event: event
|
|
9088
9273
|
});
|
|
9089
9274
|
|
|
9090
9275
|
case 2:
|
|
9091
|
-
return
|
|
9276
|
+
return _context50.abrupt("return", _context50.sent);
|
|
9092
9277
|
|
|
9093
9278
|
case 3:
|
|
9094
9279
|
case "end":
|
|
9095
|
-
return
|
|
9280
|
+
return _context50.stop();
|
|
9096
9281
|
}
|
|
9097
9282
|
}
|
|
9098
|
-
},
|
|
9283
|
+
}, _callee50, this);
|
|
9099
9284
|
}));
|
|
9100
9285
|
|
|
9101
|
-
function sendUserCustomEvent(
|
|
9286
|
+
function sendUserCustomEvent(_x68, _x69) {
|
|
9102
9287
|
return _sendUserCustomEvent.apply(this, arguments);
|
|
9103
9288
|
}
|
|
9104
9289
|
|
|
@@ -9161,32 +9346,32 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9161
9346
|
}, {
|
|
9162
9347
|
key: "createSegment",
|
|
9163
9348
|
value: function () {
|
|
9164
|
-
var _createSegment = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function
|
|
9349
|
+
var _createSegment = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee51(params) {
|
|
9165
9350
|
var _yield$this$post, segment;
|
|
9166
9351
|
|
|
9167
|
-
return _regeneratorRuntime__default['default'].wrap(function
|
|
9352
|
+
return _regeneratorRuntime__default['default'].wrap(function _callee51$(_context51) {
|
|
9168
9353
|
while (1) {
|
|
9169
|
-
switch (
|
|
9354
|
+
switch (_context51.prev = _context51.next) {
|
|
9170
9355
|
case 0:
|
|
9171
|
-
|
|
9356
|
+
_context51.next = 2;
|
|
9172
9357
|
return this.post(this.baseURL + "/segments", {
|
|
9173
9358
|
segment: params
|
|
9174
9359
|
});
|
|
9175
9360
|
|
|
9176
9361
|
case 2:
|
|
9177
|
-
_yield$this$post =
|
|
9362
|
+
_yield$this$post = _context51.sent;
|
|
9178
9363
|
segment = _yield$this$post.segment;
|
|
9179
|
-
return
|
|
9364
|
+
return _context51.abrupt("return", segment);
|
|
9180
9365
|
|
|
9181
9366
|
case 5:
|
|
9182
9367
|
case "end":
|
|
9183
|
-
return
|
|
9368
|
+
return _context51.stop();
|
|
9184
9369
|
}
|
|
9185
9370
|
}
|
|
9186
|
-
},
|
|
9371
|
+
}, _callee51, this);
|
|
9187
9372
|
}));
|
|
9188
9373
|
|
|
9189
|
-
function createSegment(
|
|
9374
|
+
function createSegment(_x70) {
|
|
9190
9375
|
return _createSegment.apply(this, arguments);
|
|
9191
9376
|
}
|
|
9192
9377
|
|
|
@@ -9203,30 +9388,30 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9203
9388
|
}, {
|
|
9204
9389
|
key: "getSegment",
|
|
9205
9390
|
value: function () {
|
|
9206
|
-
var _getSegment = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function
|
|
9391
|
+
var _getSegment = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee52(id) {
|
|
9207
9392
|
var _yield$this$get, segment;
|
|
9208
9393
|
|
|
9209
|
-
return _regeneratorRuntime__default['default'].wrap(function
|
|
9394
|
+
return _regeneratorRuntime__default['default'].wrap(function _callee52$(_context52) {
|
|
9210
9395
|
while (1) {
|
|
9211
|
-
switch (
|
|
9396
|
+
switch (_context52.prev = _context52.next) {
|
|
9212
9397
|
case 0:
|
|
9213
|
-
|
|
9398
|
+
_context52.next = 2;
|
|
9214
9399
|
return this.get(this.baseURL + "/segments/".concat(id));
|
|
9215
9400
|
|
|
9216
9401
|
case 2:
|
|
9217
|
-
_yield$this$get =
|
|
9402
|
+
_yield$this$get = _context52.sent;
|
|
9218
9403
|
segment = _yield$this$get.segment;
|
|
9219
|
-
return
|
|
9404
|
+
return _context52.abrupt("return", segment);
|
|
9220
9405
|
|
|
9221
9406
|
case 5:
|
|
9222
9407
|
case "end":
|
|
9223
|
-
return
|
|
9408
|
+
return _context52.stop();
|
|
9224
9409
|
}
|
|
9225
9410
|
}
|
|
9226
|
-
},
|
|
9411
|
+
}, _callee52, this);
|
|
9227
9412
|
}));
|
|
9228
9413
|
|
|
9229
|
-
function getSegment(
|
|
9414
|
+
function getSegment(_x71) {
|
|
9230
9415
|
return _getSegment.apply(this, arguments);
|
|
9231
9416
|
}
|
|
9232
9417
|
|
|
@@ -9242,30 +9427,30 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9242
9427
|
}, {
|
|
9243
9428
|
key: "listSegments",
|
|
9244
9429
|
value: function () {
|
|
9245
|
-
var _listSegments = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function
|
|
9430
|
+
var _listSegments = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee53(options) {
|
|
9246
9431
|
var _yield$this$get2, segments;
|
|
9247
9432
|
|
|
9248
|
-
return _regeneratorRuntime__default['default'].wrap(function
|
|
9433
|
+
return _regeneratorRuntime__default['default'].wrap(function _callee53$(_context53) {
|
|
9249
9434
|
while (1) {
|
|
9250
|
-
switch (
|
|
9435
|
+
switch (_context53.prev = _context53.next) {
|
|
9251
9436
|
case 0:
|
|
9252
|
-
|
|
9437
|
+
_context53.next = 2;
|
|
9253
9438
|
return this.get(this.baseURL + "/segments", options);
|
|
9254
9439
|
|
|
9255
9440
|
case 2:
|
|
9256
|
-
_yield$this$get2 =
|
|
9441
|
+
_yield$this$get2 = _context53.sent;
|
|
9257
9442
|
segments = _yield$this$get2.segments;
|
|
9258
|
-
return
|
|
9443
|
+
return _context53.abrupt("return", segments);
|
|
9259
9444
|
|
|
9260
9445
|
case 5:
|
|
9261
9446
|
case "end":
|
|
9262
|
-
return
|
|
9447
|
+
return _context53.stop();
|
|
9263
9448
|
}
|
|
9264
9449
|
}
|
|
9265
|
-
},
|
|
9450
|
+
}, _callee53, this);
|
|
9266
9451
|
}));
|
|
9267
9452
|
|
|
9268
|
-
function listSegments(
|
|
9453
|
+
function listSegments(_x72) {
|
|
9269
9454
|
return _listSegments.apply(this, arguments);
|
|
9270
9455
|
}
|
|
9271
9456
|
|
|
@@ -9283,32 +9468,32 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9283
9468
|
}, {
|
|
9284
9469
|
key: "updateSegment",
|
|
9285
9470
|
value: function () {
|
|
9286
|
-
var _updateSegment = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function
|
|
9471
|
+
var _updateSegment = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee54(id, params) {
|
|
9287
9472
|
var _yield$this$put, segment;
|
|
9288
9473
|
|
|
9289
|
-
return _regeneratorRuntime__default['default'].wrap(function
|
|
9474
|
+
return _regeneratorRuntime__default['default'].wrap(function _callee54$(_context54) {
|
|
9290
9475
|
while (1) {
|
|
9291
|
-
switch (
|
|
9476
|
+
switch (_context54.prev = _context54.next) {
|
|
9292
9477
|
case 0:
|
|
9293
|
-
|
|
9478
|
+
_context54.next = 2;
|
|
9294
9479
|
return this.put(this.baseURL + "/segments/".concat(id), {
|
|
9295
9480
|
segment: params
|
|
9296
9481
|
});
|
|
9297
9482
|
|
|
9298
9483
|
case 2:
|
|
9299
|
-
_yield$this$put =
|
|
9484
|
+
_yield$this$put = _context54.sent;
|
|
9300
9485
|
segment = _yield$this$put.segment;
|
|
9301
|
-
return
|
|
9486
|
+
return _context54.abrupt("return", segment);
|
|
9302
9487
|
|
|
9303
9488
|
case 5:
|
|
9304
9489
|
case "end":
|
|
9305
|
-
return
|
|
9490
|
+
return _context54.stop();
|
|
9306
9491
|
}
|
|
9307
9492
|
}
|
|
9308
|
-
},
|
|
9493
|
+
}, _callee54, this);
|
|
9309
9494
|
}));
|
|
9310
9495
|
|
|
9311
|
-
function updateSegment(
|
|
9496
|
+
function updateSegment(_x73, _x74) {
|
|
9312
9497
|
return _updateSegment.apply(this, arguments);
|
|
9313
9498
|
}
|
|
9314
9499
|
|
|
@@ -9325,22 +9510,22 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9325
9510
|
}, {
|
|
9326
9511
|
key: "deleteSegment",
|
|
9327
9512
|
value: function () {
|
|
9328
|
-
var _deleteSegment = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function
|
|
9329
|
-
return _regeneratorRuntime__default['default'].wrap(function
|
|
9513
|
+
var _deleteSegment = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee55(id) {
|
|
9514
|
+
return _regeneratorRuntime__default['default'].wrap(function _callee55$(_context55) {
|
|
9330
9515
|
while (1) {
|
|
9331
|
-
switch (
|
|
9516
|
+
switch (_context55.prev = _context55.next) {
|
|
9332
9517
|
case 0:
|
|
9333
|
-
return
|
|
9518
|
+
return _context55.abrupt("return", this.delete(this.baseURL + "/segments/".concat(id)));
|
|
9334
9519
|
|
|
9335
9520
|
case 1:
|
|
9336
9521
|
case "end":
|
|
9337
|
-
return
|
|
9522
|
+
return _context55.stop();
|
|
9338
9523
|
}
|
|
9339
9524
|
}
|
|
9340
|
-
},
|
|
9525
|
+
}, _callee55, this);
|
|
9341
9526
|
}));
|
|
9342
9527
|
|
|
9343
|
-
function deleteSegment(
|
|
9528
|
+
function deleteSegment(_x75) {
|
|
9344
9529
|
return _deleteSegment.apply(this, arguments);
|
|
9345
9530
|
}
|
|
9346
9531
|
|
|
@@ -9357,32 +9542,32 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9357
9542
|
}, {
|
|
9358
9543
|
key: "createCampaign",
|
|
9359
9544
|
value: function () {
|
|
9360
|
-
var _createCampaign = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function
|
|
9545
|
+
var _createCampaign = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee56(params) {
|
|
9361
9546
|
var _yield$this$post2, campaign;
|
|
9362
9547
|
|
|
9363
|
-
return _regeneratorRuntime__default['default'].wrap(function
|
|
9548
|
+
return _regeneratorRuntime__default['default'].wrap(function _callee56$(_context56) {
|
|
9364
9549
|
while (1) {
|
|
9365
|
-
switch (
|
|
9550
|
+
switch (_context56.prev = _context56.next) {
|
|
9366
9551
|
case 0:
|
|
9367
|
-
|
|
9552
|
+
_context56.next = 2;
|
|
9368
9553
|
return this.post(this.baseURL + "/campaigns", {
|
|
9369
9554
|
campaign: params
|
|
9370
9555
|
});
|
|
9371
9556
|
|
|
9372
9557
|
case 2:
|
|
9373
|
-
_yield$this$post2 =
|
|
9558
|
+
_yield$this$post2 = _context56.sent;
|
|
9374
9559
|
campaign = _yield$this$post2.campaign;
|
|
9375
|
-
return
|
|
9560
|
+
return _context56.abrupt("return", campaign);
|
|
9376
9561
|
|
|
9377
9562
|
case 5:
|
|
9378
9563
|
case "end":
|
|
9379
|
-
return
|
|
9564
|
+
return _context56.stop();
|
|
9380
9565
|
}
|
|
9381
9566
|
}
|
|
9382
|
-
},
|
|
9567
|
+
}, _callee56, this);
|
|
9383
9568
|
}));
|
|
9384
9569
|
|
|
9385
|
-
function createCampaign(
|
|
9570
|
+
function createCampaign(_x76) {
|
|
9386
9571
|
return _createCampaign.apply(this, arguments);
|
|
9387
9572
|
}
|
|
9388
9573
|
|
|
@@ -9399,30 +9584,30 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9399
9584
|
}, {
|
|
9400
9585
|
key: "getCampaign",
|
|
9401
9586
|
value: function () {
|
|
9402
|
-
var _getCampaign = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function
|
|
9587
|
+
var _getCampaign = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee57(id) {
|
|
9403
9588
|
var _yield$this$get3, campaign;
|
|
9404
9589
|
|
|
9405
|
-
return _regeneratorRuntime__default['default'].wrap(function
|
|
9590
|
+
return _regeneratorRuntime__default['default'].wrap(function _callee57$(_context57) {
|
|
9406
9591
|
while (1) {
|
|
9407
|
-
switch (
|
|
9592
|
+
switch (_context57.prev = _context57.next) {
|
|
9408
9593
|
case 0:
|
|
9409
|
-
|
|
9594
|
+
_context57.next = 2;
|
|
9410
9595
|
return this.get(this.baseURL + "/campaigns/".concat(id));
|
|
9411
9596
|
|
|
9412
9597
|
case 2:
|
|
9413
|
-
_yield$this$get3 =
|
|
9598
|
+
_yield$this$get3 = _context57.sent;
|
|
9414
9599
|
campaign = _yield$this$get3.campaign;
|
|
9415
|
-
return
|
|
9600
|
+
return _context57.abrupt("return", campaign);
|
|
9416
9601
|
|
|
9417
9602
|
case 5:
|
|
9418
9603
|
case "end":
|
|
9419
|
-
return
|
|
9604
|
+
return _context57.stop();
|
|
9420
9605
|
}
|
|
9421
9606
|
}
|
|
9422
|
-
},
|
|
9607
|
+
}, _callee57, this);
|
|
9423
9608
|
}));
|
|
9424
9609
|
|
|
9425
|
-
function getCampaign(
|
|
9610
|
+
function getCampaign(_x77) {
|
|
9426
9611
|
return _getCampaign.apply(this, arguments);
|
|
9427
9612
|
}
|
|
9428
9613
|
|
|
@@ -9438,30 +9623,30 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9438
9623
|
}, {
|
|
9439
9624
|
key: "listCampaigns",
|
|
9440
9625
|
value: function () {
|
|
9441
|
-
var _listCampaigns = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function
|
|
9626
|
+
var _listCampaigns = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee58(options) {
|
|
9442
9627
|
var _yield$this$get4, campaigns;
|
|
9443
9628
|
|
|
9444
|
-
return _regeneratorRuntime__default['default'].wrap(function
|
|
9629
|
+
return _regeneratorRuntime__default['default'].wrap(function _callee58$(_context58) {
|
|
9445
9630
|
while (1) {
|
|
9446
|
-
switch (
|
|
9631
|
+
switch (_context58.prev = _context58.next) {
|
|
9447
9632
|
case 0:
|
|
9448
|
-
|
|
9633
|
+
_context58.next = 2;
|
|
9449
9634
|
return this.get(this.baseURL + "/campaigns", options);
|
|
9450
9635
|
|
|
9451
9636
|
case 2:
|
|
9452
|
-
_yield$this$get4 =
|
|
9637
|
+
_yield$this$get4 = _context58.sent;
|
|
9453
9638
|
campaigns = _yield$this$get4.campaigns;
|
|
9454
|
-
return
|
|
9639
|
+
return _context58.abrupt("return", campaigns);
|
|
9455
9640
|
|
|
9456
9641
|
case 5:
|
|
9457
9642
|
case "end":
|
|
9458
|
-
return
|
|
9643
|
+
return _context58.stop();
|
|
9459
9644
|
}
|
|
9460
9645
|
}
|
|
9461
|
-
},
|
|
9646
|
+
}, _callee58, this);
|
|
9462
9647
|
}));
|
|
9463
9648
|
|
|
9464
|
-
function listCampaigns(
|
|
9649
|
+
function listCampaigns(_x78) {
|
|
9465
9650
|
return _listCampaigns.apply(this, arguments);
|
|
9466
9651
|
}
|
|
9467
9652
|
|
|
@@ -9479,32 +9664,32 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9479
9664
|
}, {
|
|
9480
9665
|
key: "updateCampaign",
|
|
9481
9666
|
value: function () {
|
|
9482
|
-
var _updateCampaign = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function
|
|
9667
|
+
var _updateCampaign = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee59(id, params) {
|
|
9483
9668
|
var _yield$this$put2, campaign;
|
|
9484
9669
|
|
|
9485
|
-
return _regeneratorRuntime__default['default'].wrap(function
|
|
9670
|
+
return _regeneratorRuntime__default['default'].wrap(function _callee59$(_context59) {
|
|
9486
9671
|
while (1) {
|
|
9487
|
-
switch (
|
|
9672
|
+
switch (_context59.prev = _context59.next) {
|
|
9488
9673
|
case 0:
|
|
9489
|
-
|
|
9674
|
+
_context59.next = 2;
|
|
9490
9675
|
return this.put(this.baseURL + "/campaigns/".concat(id), {
|
|
9491
9676
|
campaign: params
|
|
9492
9677
|
});
|
|
9493
9678
|
|
|
9494
9679
|
case 2:
|
|
9495
|
-
_yield$this$put2 =
|
|
9680
|
+
_yield$this$put2 = _context59.sent;
|
|
9496
9681
|
campaign = _yield$this$put2.campaign;
|
|
9497
|
-
return
|
|
9682
|
+
return _context59.abrupt("return", campaign);
|
|
9498
9683
|
|
|
9499
9684
|
case 5:
|
|
9500
9685
|
case "end":
|
|
9501
|
-
return
|
|
9686
|
+
return _context59.stop();
|
|
9502
9687
|
}
|
|
9503
9688
|
}
|
|
9504
|
-
},
|
|
9689
|
+
}, _callee59, this);
|
|
9505
9690
|
}));
|
|
9506
9691
|
|
|
9507
|
-
function updateCampaign(
|
|
9692
|
+
function updateCampaign(_x79, _x80) {
|
|
9508
9693
|
return _updateCampaign.apply(this, arguments);
|
|
9509
9694
|
}
|
|
9510
9695
|
|
|
@@ -9521,22 +9706,22 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9521
9706
|
}, {
|
|
9522
9707
|
key: "deleteCampaign",
|
|
9523
9708
|
value: function () {
|
|
9524
|
-
var _deleteCampaign = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function
|
|
9525
|
-
return _regeneratorRuntime__default['default'].wrap(function
|
|
9709
|
+
var _deleteCampaign = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee60(id) {
|
|
9710
|
+
return _regeneratorRuntime__default['default'].wrap(function _callee60$(_context60) {
|
|
9526
9711
|
while (1) {
|
|
9527
|
-
switch (
|
|
9712
|
+
switch (_context60.prev = _context60.next) {
|
|
9528
9713
|
case 0:
|
|
9529
|
-
return
|
|
9714
|
+
return _context60.abrupt("return", this.delete(this.baseURL + "/campaigns/".concat(id)));
|
|
9530
9715
|
|
|
9531
9716
|
case 1:
|
|
9532
9717
|
case "end":
|
|
9533
|
-
return
|
|
9718
|
+
return _context60.stop();
|
|
9534
9719
|
}
|
|
9535
9720
|
}
|
|
9536
|
-
},
|
|
9721
|
+
}, _callee60, this);
|
|
9537
9722
|
}));
|
|
9538
9723
|
|
|
9539
|
-
function deleteCampaign(
|
|
9724
|
+
function deleteCampaign(_x81) {
|
|
9540
9725
|
return _deleteCampaign.apply(this, arguments);
|
|
9541
9726
|
}
|
|
9542
9727
|
|
|
@@ -9554,33 +9739,33 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9554
9739
|
}, {
|
|
9555
9740
|
key: "scheduleCampaign",
|
|
9556
9741
|
value: function () {
|
|
9557
|
-
var _scheduleCampaign = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function
|
|
9742
|
+
var _scheduleCampaign = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee61(id, params) {
|
|
9558
9743
|
var sendAt, _yield$this$patch, campaign;
|
|
9559
9744
|
|
|
9560
|
-
return _regeneratorRuntime__default['default'].wrap(function
|
|
9745
|
+
return _regeneratorRuntime__default['default'].wrap(function _callee61$(_context61) {
|
|
9561
9746
|
while (1) {
|
|
9562
|
-
switch (
|
|
9747
|
+
switch (_context61.prev = _context61.next) {
|
|
9563
9748
|
case 0:
|
|
9564
9749
|
sendAt = params.sendAt;
|
|
9565
|
-
|
|
9750
|
+
_context61.next = 3;
|
|
9566
9751
|
return this.patch(this.baseURL + "/campaigns/".concat(id, "/schedule"), {
|
|
9567
9752
|
send_at: sendAt
|
|
9568
9753
|
});
|
|
9569
9754
|
|
|
9570
9755
|
case 3:
|
|
9571
|
-
_yield$this$patch =
|
|
9756
|
+
_yield$this$patch = _context61.sent;
|
|
9572
9757
|
campaign = _yield$this$patch.campaign;
|
|
9573
|
-
return
|
|
9758
|
+
return _context61.abrupt("return", campaign);
|
|
9574
9759
|
|
|
9575
9760
|
case 6:
|
|
9576
9761
|
case "end":
|
|
9577
|
-
return
|
|
9762
|
+
return _context61.stop();
|
|
9578
9763
|
}
|
|
9579
9764
|
}
|
|
9580
|
-
},
|
|
9765
|
+
}, _callee61, this);
|
|
9581
9766
|
}));
|
|
9582
9767
|
|
|
9583
|
-
function scheduleCampaign(
|
|
9768
|
+
function scheduleCampaign(_x82, _x83) {
|
|
9584
9769
|
return _scheduleCampaign.apply(this, arguments);
|
|
9585
9770
|
}
|
|
9586
9771
|
|
|
@@ -9597,30 +9782,30 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9597
9782
|
}, {
|
|
9598
9783
|
key: "stopCampaign",
|
|
9599
9784
|
value: function () {
|
|
9600
|
-
var _stopCampaign = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function
|
|
9785
|
+
var _stopCampaign = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee62(id) {
|
|
9601
9786
|
var _yield$this$patch2, campaign;
|
|
9602
9787
|
|
|
9603
|
-
return _regeneratorRuntime__default['default'].wrap(function
|
|
9788
|
+
return _regeneratorRuntime__default['default'].wrap(function _callee62$(_context62) {
|
|
9604
9789
|
while (1) {
|
|
9605
|
-
switch (
|
|
9790
|
+
switch (_context62.prev = _context62.next) {
|
|
9606
9791
|
case 0:
|
|
9607
|
-
|
|
9792
|
+
_context62.next = 2;
|
|
9608
9793
|
return this.patch(this.baseURL + "/campaigns/".concat(id, "/stop"));
|
|
9609
9794
|
|
|
9610
9795
|
case 2:
|
|
9611
|
-
_yield$this$patch2 =
|
|
9796
|
+
_yield$this$patch2 = _context62.sent;
|
|
9612
9797
|
campaign = _yield$this$patch2.campaign;
|
|
9613
|
-
return
|
|
9798
|
+
return _context62.abrupt("return", campaign);
|
|
9614
9799
|
|
|
9615
9800
|
case 5:
|
|
9616
9801
|
case "end":
|
|
9617
|
-
return
|
|
9802
|
+
return _context62.stop();
|
|
9618
9803
|
}
|
|
9619
9804
|
}
|
|
9620
|
-
},
|
|
9805
|
+
}, _callee62, this);
|
|
9621
9806
|
}));
|
|
9622
9807
|
|
|
9623
|
-
function stopCampaign(
|
|
9808
|
+
function stopCampaign(_x84) {
|
|
9624
9809
|
return _stopCampaign.apply(this, arguments);
|
|
9625
9810
|
}
|
|
9626
9811
|
|
|
@@ -9637,30 +9822,30 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9637
9822
|
}, {
|
|
9638
9823
|
key: "resumeCampaign",
|
|
9639
9824
|
value: function () {
|
|
9640
|
-
var _resumeCampaign = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function
|
|
9825
|
+
var _resumeCampaign = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee63(id) {
|
|
9641
9826
|
var _yield$this$patch3, campaign;
|
|
9642
9827
|
|
|
9643
|
-
return _regeneratorRuntime__default['default'].wrap(function
|
|
9828
|
+
return _regeneratorRuntime__default['default'].wrap(function _callee63$(_context63) {
|
|
9644
9829
|
while (1) {
|
|
9645
|
-
switch (
|
|
9830
|
+
switch (_context63.prev = _context63.next) {
|
|
9646
9831
|
case 0:
|
|
9647
|
-
|
|
9832
|
+
_context63.next = 2;
|
|
9648
9833
|
return this.patch(this.baseURL + "/campaigns/".concat(id, "/resume"));
|
|
9649
9834
|
|
|
9650
9835
|
case 2:
|
|
9651
|
-
_yield$this$patch3 =
|
|
9836
|
+
_yield$this$patch3 = _context63.sent;
|
|
9652
9837
|
campaign = _yield$this$patch3.campaign;
|
|
9653
|
-
return
|
|
9838
|
+
return _context63.abrupt("return", campaign);
|
|
9654
9839
|
|
|
9655
9840
|
case 5:
|
|
9656
9841
|
case "end":
|
|
9657
|
-
return
|
|
9842
|
+
return _context63.stop();
|
|
9658
9843
|
}
|
|
9659
9844
|
}
|
|
9660
|
-
},
|
|
9845
|
+
}, _callee63, this);
|
|
9661
9846
|
}));
|
|
9662
9847
|
|
|
9663
|
-
function resumeCampaign(
|
|
9848
|
+
function resumeCampaign(_x85) {
|
|
9664
9849
|
return _resumeCampaign.apply(this, arguments);
|
|
9665
9850
|
}
|
|
9666
9851
|
|
|
@@ -9677,33 +9862,33 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9677
9862
|
}, {
|
|
9678
9863
|
key: "testCampaign",
|
|
9679
9864
|
value: function () {
|
|
9680
|
-
var _testCampaign = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function
|
|
9865
|
+
var _testCampaign = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee64(id, params) {
|
|
9681
9866
|
var users, _yield$this$post3, campaign;
|
|
9682
9867
|
|
|
9683
|
-
return _regeneratorRuntime__default['default'].wrap(function
|
|
9868
|
+
return _regeneratorRuntime__default['default'].wrap(function _callee64$(_context64) {
|
|
9684
9869
|
while (1) {
|
|
9685
|
-
switch (
|
|
9870
|
+
switch (_context64.prev = _context64.next) {
|
|
9686
9871
|
case 0:
|
|
9687
9872
|
users = params.users;
|
|
9688
|
-
|
|
9873
|
+
_context64.next = 3;
|
|
9689
9874
|
return this.post(this.baseURL + "/campaigns/".concat(id, "/test"), {
|
|
9690
9875
|
users: users
|
|
9691
9876
|
});
|
|
9692
9877
|
|
|
9693
9878
|
case 3:
|
|
9694
|
-
_yield$this$post3 =
|
|
9879
|
+
_yield$this$post3 = _context64.sent;
|
|
9695
9880
|
campaign = _yield$this$post3.campaign;
|
|
9696
|
-
return
|
|
9881
|
+
return _context64.abrupt("return", campaign);
|
|
9697
9882
|
|
|
9698
9883
|
case 6:
|
|
9699
9884
|
case "end":
|
|
9700
|
-
return
|
|
9885
|
+
return _context64.stop();
|
|
9701
9886
|
}
|
|
9702
9887
|
}
|
|
9703
|
-
},
|
|
9888
|
+
}, _callee64, this);
|
|
9704
9889
|
}));
|
|
9705
9890
|
|
|
9706
|
-
function testCampaign(
|
|
9891
|
+
function testCampaign(_x86, _x87) {
|
|
9707
9892
|
return _testCampaign.apply(this, arguments);
|
|
9708
9893
|
}
|
|
9709
9894
|
|
|
@@ -9719,24 +9904,24 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9719
9904
|
}, {
|
|
9720
9905
|
key: "enrichURL",
|
|
9721
9906
|
value: function () {
|
|
9722
|
-
var _enrichURL = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function
|
|
9723
|
-
return _regeneratorRuntime__default['default'].wrap(function
|
|
9907
|
+
var _enrichURL = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee65(url) {
|
|
9908
|
+
return _regeneratorRuntime__default['default'].wrap(function _callee65$(_context65) {
|
|
9724
9909
|
while (1) {
|
|
9725
|
-
switch (
|
|
9910
|
+
switch (_context65.prev = _context65.next) {
|
|
9726
9911
|
case 0:
|
|
9727
|
-
return
|
|
9912
|
+
return _context65.abrupt("return", this.get(this.baseURL + "/og", {
|
|
9728
9913
|
url: url
|
|
9729
9914
|
}));
|
|
9730
9915
|
|
|
9731
9916
|
case 1:
|
|
9732
9917
|
case "end":
|
|
9733
|
-
return
|
|
9918
|
+
return _context65.stop();
|
|
9734
9919
|
}
|
|
9735
9920
|
}
|
|
9736
|
-
},
|
|
9921
|
+
}, _callee65, this);
|
|
9737
9922
|
}));
|
|
9738
9923
|
|
|
9739
|
-
function enrichURL(
|
|
9924
|
+
function enrichURL(_x88) {
|
|
9740
9925
|
return _enrichURL.apply(this, arguments);
|
|
9741
9926
|
}
|
|
9742
9927
|
|
|
@@ -9753,22 +9938,22 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9753
9938
|
}, {
|
|
9754
9939
|
key: "getTask",
|
|
9755
9940
|
value: function () {
|
|
9756
|
-
var _getTask = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function
|
|
9757
|
-
return _regeneratorRuntime__default['default'].wrap(function
|
|
9941
|
+
var _getTask = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee66(id) {
|
|
9942
|
+
return _regeneratorRuntime__default['default'].wrap(function _callee66$(_context66) {
|
|
9758
9943
|
while (1) {
|
|
9759
|
-
switch (
|
|
9944
|
+
switch (_context66.prev = _context66.next) {
|
|
9760
9945
|
case 0:
|
|
9761
|
-
return
|
|
9946
|
+
return _context66.abrupt("return", this.get("".concat(this.baseURL, "/tasks/").concat(id)));
|
|
9762
9947
|
|
|
9763
9948
|
case 1:
|
|
9764
9949
|
case "end":
|
|
9765
|
-
return
|
|
9950
|
+
return _context66.stop();
|
|
9766
9951
|
}
|
|
9767
9952
|
}
|
|
9768
|
-
},
|
|
9953
|
+
}, _callee66, this);
|
|
9769
9954
|
}));
|
|
9770
9955
|
|
|
9771
|
-
function getTask(
|
|
9956
|
+
function getTask(_x89) {
|
|
9772
9957
|
return _getTask.apply(this, arguments);
|
|
9773
9958
|
}
|
|
9774
9959
|
|
|
@@ -9786,31 +9971,31 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9786
9971
|
}, {
|
|
9787
9972
|
key: "deleteChannels",
|
|
9788
9973
|
value: function () {
|
|
9789
|
-
var _deleteChannels = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function
|
|
9974
|
+
var _deleteChannels = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee67(cids) {
|
|
9790
9975
|
var options,
|
|
9791
|
-
|
|
9792
|
-
return _regeneratorRuntime__default['default'].wrap(function
|
|
9976
|
+
_args67 = arguments;
|
|
9977
|
+
return _regeneratorRuntime__default['default'].wrap(function _callee67$(_context67) {
|
|
9793
9978
|
while (1) {
|
|
9794
|
-
switch (
|
|
9979
|
+
switch (_context67.prev = _context67.next) {
|
|
9795
9980
|
case 0:
|
|
9796
|
-
options =
|
|
9797
|
-
|
|
9981
|
+
options = _args67.length > 1 && _args67[1] !== undefined ? _args67[1] : {};
|
|
9982
|
+
_context67.next = 3;
|
|
9798
9983
|
return this.post(this.baseURL + "/channels/delete", _objectSpread({
|
|
9799
9984
|
cids: cids
|
|
9800
9985
|
}, options));
|
|
9801
9986
|
|
|
9802
9987
|
case 3:
|
|
9803
|
-
return
|
|
9988
|
+
return _context67.abrupt("return", _context67.sent);
|
|
9804
9989
|
|
|
9805
9990
|
case 4:
|
|
9806
9991
|
case "end":
|
|
9807
|
-
return
|
|
9992
|
+
return _context67.stop();
|
|
9808
9993
|
}
|
|
9809
9994
|
}
|
|
9810
|
-
},
|
|
9995
|
+
}, _callee67, this);
|
|
9811
9996
|
}));
|
|
9812
9997
|
|
|
9813
|
-
function deleteChannels(
|
|
9998
|
+
function deleteChannels(_x90) {
|
|
9814
9999
|
return _deleteChannels.apply(this, arguments);
|
|
9815
10000
|
}
|
|
9816
10001
|
|
|
@@ -9828,13 +10013,13 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9828
10013
|
}, {
|
|
9829
10014
|
key: "deleteUsers",
|
|
9830
10015
|
value: function () {
|
|
9831
|
-
var _deleteUsers = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function
|
|
9832
|
-
return _regeneratorRuntime__default['default'].wrap(function
|
|
10016
|
+
var _deleteUsers = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee68(user_ids, options) {
|
|
10017
|
+
return _regeneratorRuntime__default['default'].wrap(function _callee68$(_context68) {
|
|
9833
10018
|
while (1) {
|
|
9834
|
-
switch (
|
|
10019
|
+
switch (_context68.prev = _context68.next) {
|
|
9835
10020
|
case 0:
|
|
9836
10021
|
if (!((options === null || options === void 0 ? void 0 : options.user) !== 'soft' && (options === null || options === void 0 ? void 0 : options.user) !== 'hard')) {
|
|
9837
|
-
|
|
10022
|
+
_context68.next = 2;
|
|
9838
10023
|
break;
|
|
9839
10024
|
}
|
|
9840
10025
|
|
|
@@ -9842,7 +10027,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9842
10027
|
|
|
9843
10028
|
case 2:
|
|
9844
10029
|
if (!(options.messages !== undefined && options.messages !== 'soft' && options.messages !== 'hard')) {
|
|
9845
|
-
|
|
10030
|
+
_context68.next = 4;
|
|
9846
10031
|
break;
|
|
9847
10032
|
}
|
|
9848
10033
|
|
|
@@ -9850,30 +10035,30 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9850
10035
|
|
|
9851
10036
|
case 4:
|
|
9852
10037
|
if (!(options.conversations !== undefined && options.conversations !== 'soft' && options.conversations !== 'hard')) {
|
|
9853
|
-
|
|
10038
|
+
_context68.next = 6;
|
|
9854
10039
|
break;
|
|
9855
10040
|
}
|
|
9856
10041
|
|
|
9857
10042
|
throw new Error('Invalid delete user options. conversations must be one of [soft hard]');
|
|
9858
10043
|
|
|
9859
10044
|
case 6:
|
|
9860
|
-
|
|
10045
|
+
_context68.next = 8;
|
|
9861
10046
|
return this.post(this.baseURL + "/users/delete", _objectSpread({
|
|
9862
10047
|
user_ids: user_ids
|
|
9863
10048
|
}, options));
|
|
9864
10049
|
|
|
9865
10050
|
case 8:
|
|
9866
|
-
return
|
|
10051
|
+
return _context68.abrupt("return", _context68.sent);
|
|
9867
10052
|
|
|
9868
10053
|
case 9:
|
|
9869
10054
|
case "end":
|
|
9870
|
-
return
|
|
10055
|
+
return _context68.stop();
|
|
9871
10056
|
}
|
|
9872
10057
|
}
|
|
9873
|
-
},
|
|
10058
|
+
}, _callee68, this);
|
|
9874
10059
|
}));
|
|
9875
10060
|
|
|
9876
|
-
function deleteUsers(
|
|
10061
|
+
function deleteUsers(_x91, _x92) {
|
|
9877
10062
|
return _deleteUsers.apply(this, arguments);
|
|
9878
10063
|
}
|
|
9879
10064
|
|