stream-chat 6.5.1 → 6.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser.es.js +507 -332
- 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 +512 -331
- package/dist/browser.js.map +1 -1
- package/dist/index.es.js +507 -332
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +512 -331
- package/dist/index.js.map +1 -1
- package/dist/types/channel.d.ts +8 -1
- package/dist/types/channel.d.ts.map +1 -1
- package/dist/types/channel_state.d.ts +1 -0
- package/dist/types/channel_state.d.ts.map +1 -1
- package/dist/types/client.d.ts +20 -14
- package/dist/types/client.d.ts.map +1 -1
- package/dist/types/errors.d.ts +3 -0
- package/dist/types/errors.d.ts.map +1 -1
- package/dist/types/events.d.ts +1 -0
- package/dist/types/events.d.ts.map +1 -1
- package/dist/types/types.d.ts +72 -1
- package/dist/types/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/channel.ts +24 -1
- package/src/channel_state.ts +2 -2
- package/src/client.ts +32 -17
- package/src/errors.ts +7 -0
- package/src/events.ts +1 -0
- package/src/types.ts +86 -2
package/dist/browser.es.js
CHANGED
|
@@ -12,6 +12,11 @@ import axios from 'axios';
|
|
|
12
12
|
import _slicedToArray from '@babel/runtime/helpers/slicedToArray';
|
|
13
13
|
import FormData from 'form-data';
|
|
14
14
|
import WebSocket from 'isomorphic-ws';
|
|
15
|
+
import _assertThisInitialized from '@babel/runtime/helpers/assertThisInitialized';
|
|
16
|
+
import _inherits from '@babel/runtime/helpers/inherits';
|
|
17
|
+
import _possibleConstructorReturn from '@babel/runtime/helpers/possibleConstructorReturn';
|
|
18
|
+
import _getPrototypeOf from '@babel/runtime/helpers/getPrototypeOf';
|
|
19
|
+
import _wrapNativeSuper from '@babel/runtime/helpers/wrapNativeSuper';
|
|
15
20
|
|
|
16
21
|
function isString$1(arrayOrString) {
|
|
17
22
|
return typeof arrayOrString === 'string';
|
|
@@ -715,7 +720,9 @@ var ChannelState = /*#__PURE__*/function () {
|
|
|
715
720
|
this.threads[messageToRemove.parent_id] = threadMessages;
|
|
716
721
|
isRemoved = removed;
|
|
717
722
|
} else {
|
|
718
|
-
var
|
|
723
|
+
var _messageToRemove$mess;
|
|
724
|
+
|
|
725
|
+
var messageSetIndex = (_messageToRemove$mess = messageToRemove.messageSetIndex) !== null && _messageToRemove$mess !== void 0 ? _messageToRemove$mess : this.findMessageSetIndex(messageToRemove);
|
|
719
726
|
|
|
720
727
|
if (messageSetIndex !== -1) {
|
|
721
728
|
var _this$removeMessageFr3 = this.removeMessageFromArray(this.messageSets[messageSetIndex].messages, messageToRemove),
|
|
@@ -1065,6 +1072,7 @@ var EVENT_MAP = {
|
|
|
1065
1072
|
'user.deleted': true,
|
|
1066
1073
|
'user.presence.changed': true,
|
|
1067
1074
|
'user.unbanned': true,
|
|
1075
|
+
'user.unread_message_reminder': true,
|
|
1068
1076
|
'user.updated': true,
|
|
1069
1077
|
'user.watching.start': true,
|
|
1070
1078
|
'user.watching.stop': true,
|
|
@@ -3412,6 +3420,41 @@ var Channel = /*#__PURE__*/function () {
|
|
|
3412
3420
|
|
|
3413
3421
|
return removeShadowBan;
|
|
3414
3422
|
}()
|
|
3423
|
+
/**
|
|
3424
|
+
* createCall - creates a call for the current channel
|
|
3425
|
+
*
|
|
3426
|
+
* @param {CreateCallOptions} options
|
|
3427
|
+
* @returns {Promise<CreateCallResponse>}
|
|
3428
|
+
*/
|
|
3429
|
+
|
|
3430
|
+
}, {
|
|
3431
|
+
key: "createCall",
|
|
3432
|
+
value: function () {
|
|
3433
|
+
var _createCall = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee38(options) {
|
|
3434
|
+
return _regeneratorRuntime.wrap(function _callee38$(_context38) {
|
|
3435
|
+
while (1) {
|
|
3436
|
+
switch (_context38.prev = _context38.next) {
|
|
3437
|
+
case 0:
|
|
3438
|
+
_context38.next = 2;
|
|
3439
|
+
return this.getClient().post(this._channelURL() + '/call', options);
|
|
3440
|
+
|
|
3441
|
+
case 2:
|
|
3442
|
+
return _context38.abrupt("return", _context38.sent);
|
|
3443
|
+
|
|
3444
|
+
case 3:
|
|
3445
|
+
case "end":
|
|
3446
|
+
return _context38.stop();
|
|
3447
|
+
}
|
|
3448
|
+
}
|
|
3449
|
+
}, _callee38, this);
|
|
3450
|
+
}));
|
|
3451
|
+
|
|
3452
|
+
function createCall(_x37) {
|
|
3453
|
+
return _createCall.apply(this, arguments);
|
|
3454
|
+
}
|
|
3455
|
+
|
|
3456
|
+
return createCall;
|
|
3457
|
+
}()
|
|
3415
3458
|
/**
|
|
3416
3459
|
* on - Listen to events on this channel.
|
|
3417
3460
|
*
|
|
@@ -3494,7 +3537,7 @@ var Channel = /*#__PURE__*/function () {
|
|
|
3494
3537
|
}, {
|
|
3495
3538
|
key: "_handleChannelEvent",
|
|
3496
3539
|
value: function _handleChannelEvent(event) {
|
|
3497
|
-
var _event$user, _event$user2, _event$user3, _event$user5, _event$user6, _event$member, _event$user9;
|
|
3540
|
+
var _event$user, _event$user2, _event$user3, _event$user5, _event$user6, _event$channel, _event$member, _event$user9;
|
|
3498
3541
|
|
|
3499
3542
|
var channel = this;
|
|
3500
3543
|
|
|
@@ -3609,7 +3652,22 @@ var Channel = /*#__PURE__*/function () {
|
|
|
3609
3652
|
break;
|
|
3610
3653
|
|
|
3611
3654
|
case 'channel.truncated':
|
|
3612
|
-
|
|
3655
|
+
if ((_event$channel = event.channel) !== null && _event$channel !== void 0 && _event$channel.truncated_at) {
|
|
3656
|
+
var truncatedAt = +new Date(event.channel.truncated_at);
|
|
3657
|
+
channelState.messageSets.forEach(function (messageSet, messageSetIndex) {
|
|
3658
|
+
messageSet.messages.forEach(function (_ref2) {
|
|
3659
|
+
var createdAt = _ref2.created_at,
|
|
3660
|
+
id = _ref2.id;
|
|
3661
|
+
if (truncatedAt > +createdAt) channelState.removeMessage({
|
|
3662
|
+
id: id,
|
|
3663
|
+
messageSetIndex: messageSetIndex
|
|
3664
|
+
});
|
|
3665
|
+
});
|
|
3666
|
+
});
|
|
3667
|
+
} else {
|
|
3668
|
+
channelState.clearMessages();
|
|
3669
|
+
}
|
|
3670
|
+
|
|
3613
3671
|
channelState.unreadCount = 0; // system messages don't increment unread counts
|
|
3614
3672
|
|
|
3615
3673
|
if (event.message) {
|
|
@@ -3639,11 +3697,11 @@ var Channel = /*#__PURE__*/function () {
|
|
|
3639
3697
|
|
|
3640
3698
|
case 'channel.updated':
|
|
3641
3699
|
if (event.channel) {
|
|
3642
|
-
var _event$channel$hidden, _event$
|
|
3700
|
+
var _event$channel$hidden, _event$channel2, _channel$data, _event$channel$own_ca, _event$channel3, _channel$data2;
|
|
3643
3701
|
|
|
3644
3702
|
channel.data = _objectSpread$5(_objectSpread$5({}, event.channel), {}, {
|
|
3645
|
-
hidden: (_event$channel$hidden = (_event$
|
|
3646
|
-
own_capabilities: (_event$channel$own_ca = (_event$
|
|
3703
|
+
hidden: (_event$channel$hidden = (_event$channel2 = event.channel) === null || _event$channel2 === void 0 ? void 0 : _event$channel2.hidden) !== null && _event$channel$hidden !== void 0 ? _event$channel$hidden : (_channel$data = channel.data) === null || _channel$data === void 0 ? void 0 : _channel$data.hidden,
|
|
3704
|
+
own_capabilities: (_event$channel$own_ca = (_event$channel3 = event.channel) === null || _event$channel3 === void 0 ? void 0 : _event$channel3.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
|
|
3647
3705
|
});
|
|
3648
3706
|
}
|
|
3649
3707
|
|
|
@@ -5373,6 +5431,9 @@ function isWSFailure(err) {
|
|
|
5373
5431
|
return false;
|
|
5374
5432
|
}
|
|
5375
5433
|
}
|
|
5434
|
+
function isErrorResponse(res) {
|
|
5435
|
+
return !res.status || res.status < 200 || 300 <= res.status;
|
|
5436
|
+
}
|
|
5376
5437
|
|
|
5377
5438
|
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; }
|
|
5378
5439
|
|
|
@@ -5750,6 +5811,83 @@ var WSConnectionFallback = /*#__PURE__*/function () {
|
|
|
5750
5811
|
return WSConnectionFallback;
|
|
5751
5812
|
}();
|
|
5752
5813
|
|
|
5814
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
5815
|
+
|
|
5816
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
5817
|
+
|
|
5818
|
+
/**
|
|
5819
|
+
* Utility Types
|
|
5820
|
+
*/
|
|
5821
|
+
|
|
5822
|
+
/* Unknown Record */
|
|
5823
|
+
//alias to avoid breaking change
|
|
5824
|
+
|
|
5825
|
+
/**
|
|
5826
|
+
* Response Types
|
|
5827
|
+
*/
|
|
5828
|
+
// Thumb URL(thumb_url) is added considering video attachments as the backend will return the thumbnail in the response.
|
|
5829
|
+
|
|
5830
|
+
/**
|
|
5831
|
+
* Option Types
|
|
5832
|
+
*/
|
|
5833
|
+
// TODO: rename to UpdateChannelOptions in the next major update and use it in channel._update and/or channel.update
|
|
5834
|
+
|
|
5835
|
+
/** @deprecated use MarkChannelsReadOptions instead */
|
|
5836
|
+
// TODO: rename to UpdateChannelTypeOptions in the next major update
|
|
5837
|
+
|
|
5838
|
+
/**
|
|
5839
|
+
* Event Types
|
|
5840
|
+
*/
|
|
5841
|
+
|
|
5842
|
+
/**
|
|
5843
|
+
* Filter Types
|
|
5844
|
+
*/
|
|
5845
|
+
|
|
5846
|
+
/**
|
|
5847
|
+
* Sort Types
|
|
5848
|
+
*/
|
|
5849
|
+
|
|
5850
|
+
/**
|
|
5851
|
+
* Base Types
|
|
5852
|
+
*/
|
|
5853
|
+
|
|
5854
|
+
/*
|
|
5855
|
+
DeleteUserOptions specifies a collection of one or more `user_ids` to be deleted.
|
|
5856
|
+
|
|
5857
|
+
`user` soft|hard determines if the user needs to be hard- or soft-deleted, where hard-delete
|
|
5858
|
+
implies that all related objects (messages, flags, etc) will be hard-deleted as well.
|
|
5859
|
+
`conversations` soft|hard will delete any 1to1 channels that the user was a member of.
|
|
5860
|
+
`messages` soft-hard will delete any messages that the user has sent.
|
|
5861
|
+
`new_channel_owner_id` any channels owned by the hard-deleted user will be transferred to this user ID
|
|
5862
|
+
*/
|
|
5863
|
+
var ErrorFromResponse = /*#__PURE__*/function (_Error) {
|
|
5864
|
+
_inherits(ErrorFromResponse, _Error);
|
|
5865
|
+
|
|
5866
|
+
var _super = _createSuper(ErrorFromResponse);
|
|
5867
|
+
|
|
5868
|
+
function ErrorFromResponse() {
|
|
5869
|
+
var _this;
|
|
5870
|
+
|
|
5871
|
+
_classCallCheck(this, ErrorFromResponse);
|
|
5872
|
+
|
|
5873
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
5874
|
+
args[_key] = arguments[_key];
|
|
5875
|
+
}
|
|
5876
|
+
|
|
5877
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
5878
|
+
|
|
5879
|
+
_defineProperty(_assertThisInitialized(_this), "code", void 0);
|
|
5880
|
+
|
|
5881
|
+
_defineProperty(_assertThisInitialized(_this), "response", void 0);
|
|
5882
|
+
|
|
5883
|
+
_defineProperty(_assertThisInitialized(_this), "status", void 0);
|
|
5884
|
+
|
|
5885
|
+
return _this;
|
|
5886
|
+
}
|
|
5887
|
+
|
|
5888
|
+
return ErrorFromResponse;
|
|
5889
|
+
}( /*#__PURE__*/_wrapNativeSuper(Error));
|
|
5890
|
+
|
|
5753
5891
|
var _excluded = ["created_at", "updated_at", "last_active", "online"];
|
|
5754
5892
|
|
|
5755
5893
|
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; } } }; }
|
|
@@ -6729,7 +6867,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
6729
6867
|
'notification_template": 'notification handlebars template',
|
|
6730
6868
|
'bundle_id': 'com.apple.your.app',
|
|
6731
6869
|
'development': true
|
|
6732
|
-
|
|
6870
|
+
},
|
|
6733
6871
|
'firebase_config': {
|
|
6734
6872
|
'server_key': 'server key from fcm',
|
|
6735
6873
|
'notification_template': 'notification handlebars template',
|
|
@@ -7280,7 +7418,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
7280
7418
|
key: "errorFromResponse",
|
|
7281
7419
|
value: function errorFromResponse(response) {
|
|
7282
7420
|
var err;
|
|
7283
|
-
err = new
|
|
7421
|
+
err = new ErrorFromResponse("StreamChat error HTTP code: ".concat(response.status));
|
|
7284
7422
|
|
|
7285
7423
|
if (response.data && response.data.code) {
|
|
7286
7424
|
err = new Error("StreamChat error code ".concat(response.data.code, ": ").concat(response.data.message));
|
|
@@ -7296,7 +7434,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
7296
7434
|
value: function handleResponse(response) {
|
|
7297
7435
|
var data = response.data;
|
|
7298
7436
|
|
|
7299
|
-
if ((response
|
|
7437
|
+
if (isErrorResponse(response)) {
|
|
7300
7438
|
throw this.errorFromResponse(response);
|
|
7301
7439
|
}
|
|
7302
7440
|
|
|
@@ -8916,6 +9054,45 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
8916
9054
|
|
|
8917
9055
|
return unflagUser;
|
|
8918
9056
|
}()
|
|
9057
|
+
/**
|
|
9058
|
+
* getCallToken - retrieves the auth token needed to join a call
|
|
9059
|
+
*
|
|
9060
|
+
* @param {string} callID
|
|
9061
|
+
* @param {object} options
|
|
9062
|
+
* @returns {Promise<GetCallTokenResponse>}
|
|
9063
|
+
*/
|
|
9064
|
+
|
|
9065
|
+
}, {
|
|
9066
|
+
key: "getCallToken",
|
|
9067
|
+
value: function () {
|
|
9068
|
+
var _getCallToken = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee42(callID) {
|
|
9069
|
+
var options,
|
|
9070
|
+
_args42 = arguments;
|
|
9071
|
+
return _regeneratorRuntime.wrap(function _callee42$(_context42) {
|
|
9072
|
+
while (1) {
|
|
9073
|
+
switch (_context42.prev = _context42.next) {
|
|
9074
|
+
case 0:
|
|
9075
|
+
options = _args42.length > 1 && _args42[1] !== undefined ? _args42[1] : {};
|
|
9076
|
+
_context42.next = 3;
|
|
9077
|
+
return this.post(this.baseURL + "/calls/".concat(callID), _objectSpread({}, options));
|
|
9078
|
+
|
|
9079
|
+
case 3:
|
|
9080
|
+
return _context42.abrupt("return", _context42.sent);
|
|
9081
|
+
|
|
9082
|
+
case 4:
|
|
9083
|
+
case "end":
|
|
9084
|
+
return _context42.stop();
|
|
9085
|
+
}
|
|
9086
|
+
}
|
|
9087
|
+
}, _callee42, this);
|
|
9088
|
+
}));
|
|
9089
|
+
|
|
9090
|
+
function getCallToken(_x55) {
|
|
9091
|
+
return _getCallToken.apply(this, arguments);
|
|
9092
|
+
}
|
|
9093
|
+
|
|
9094
|
+
return getCallToken;
|
|
9095
|
+
}()
|
|
8919
9096
|
/**
|
|
8920
9097
|
* _queryFlags - Query flags.
|
|
8921
9098
|
*
|
|
@@ -8933,30 +9110,30 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
8933
9110
|
}, {
|
|
8934
9111
|
key: "_queryFlags",
|
|
8935
9112
|
value: function () {
|
|
8936
|
-
var _queryFlags2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
9113
|
+
var _queryFlags2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee43() {
|
|
8937
9114
|
var filterConditions,
|
|
8938
9115
|
options,
|
|
8939
|
-
|
|
8940
|
-
return _regeneratorRuntime.wrap(function
|
|
9116
|
+
_args43 = arguments;
|
|
9117
|
+
return _regeneratorRuntime.wrap(function _callee43$(_context43) {
|
|
8941
9118
|
while (1) {
|
|
8942
|
-
switch (
|
|
9119
|
+
switch (_context43.prev = _context43.next) {
|
|
8943
9120
|
case 0:
|
|
8944
|
-
filterConditions =
|
|
8945
|
-
options =
|
|
8946
|
-
|
|
9121
|
+
filterConditions = _args43.length > 0 && _args43[0] !== undefined ? _args43[0] : {};
|
|
9122
|
+
options = _args43.length > 1 && _args43[1] !== undefined ? _args43[1] : {};
|
|
9123
|
+
_context43.next = 4;
|
|
8947
9124
|
return this.post(this.baseURL + '/moderation/flags', _objectSpread({
|
|
8948
9125
|
filter_conditions: filterConditions
|
|
8949
9126
|
}, options));
|
|
8950
9127
|
|
|
8951
9128
|
case 4:
|
|
8952
|
-
return
|
|
9129
|
+
return _context43.abrupt("return", _context43.sent);
|
|
8953
9130
|
|
|
8954
9131
|
case 5:
|
|
8955
9132
|
case "end":
|
|
8956
|
-
return
|
|
9133
|
+
return _context43.stop();
|
|
8957
9134
|
}
|
|
8958
9135
|
}
|
|
8959
|
-
},
|
|
9136
|
+
}, _callee43, this);
|
|
8960
9137
|
}));
|
|
8961
9138
|
|
|
8962
9139
|
function _queryFlags() {
|
|
@@ -8982,30 +9159,30 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
8982
9159
|
}, {
|
|
8983
9160
|
key: "_queryFlagReports",
|
|
8984
9161
|
value: function () {
|
|
8985
|
-
var _queryFlagReports2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
9162
|
+
var _queryFlagReports2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee44() {
|
|
8986
9163
|
var filterConditions,
|
|
8987
9164
|
options,
|
|
8988
|
-
|
|
8989
|
-
return _regeneratorRuntime.wrap(function
|
|
9165
|
+
_args44 = arguments;
|
|
9166
|
+
return _regeneratorRuntime.wrap(function _callee44$(_context44) {
|
|
8990
9167
|
while (1) {
|
|
8991
|
-
switch (
|
|
9168
|
+
switch (_context44.prev = _context44.next) {
|
|
8992
9169
|
case 0:
|
|
8993
|
-
filterConditions =
|
|
8994
|
-
options =
|
|
8995
|
-
|
|
9170
|
+
filterConditions = _args44.length > 0 && _args44[0] !== undefined ? _args44[0] : {};
|
|
9171
|
+
options = _args44.length > 1 && _args44[1] !== undefined ? _args44[1] : {};
|
|
9172
|
+
_context44.next = 4;
|
|
8996
9173
|
return this.post(this.baseURL + '/moderation/reports', _objectSpread({
|
|
8997
9174
|
filter_conditions: filterConditions
|
|
8998
9175
|
}, options));
|
|
8999
9176
|
|
|
9000
9177
|
case 4:
|
|
9001
|
-
return
|
|
9178
|
+
return _context44.abrupt("return", _context44.sent);
|
|
9002
9179
|
|
|
9003
9180
|
case 5:
|
|
9004
9181
|
case "end":
|
|
9005
|
-
return
|
|
9182
|
+
return _context44.stop();
|
|
9006
9183
|
}
|
|
9007
9184
|
}
|
|
9008
|
-
},
|
|
9185
|
+
}, _callee44, this);
|
|
9009
9186
|
}));
|
|
9010
9187
|
|
|
9011
9188
|
function _queryFlagReports() {
|
|
@@ -9032,31 +9209,31 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9032
9209
|
}, {
|
|
9033
9210
|
key: "_reviewFlagReport",
|
|
9034
9211
|
value: function () {
|
|
9035
|
-
var _reviewFlagReport2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
9212
|
+
var _reviewFlagReport2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee45(id, reviewResult) {
|
|
9036
9213
|
var options,
|
|
9037
|
-
|
|
9038
|
-
return _regeneratorRuntime.wrap(function
|
|
9214
|
+
_args45 = arguments;
|
|
9215
|
+
return _regeneratorRuntime.wrap(function _callee45$(_context45) {
|
|
9039
9216
|
while (1) {
|
|
9040
|
-
switch (
|
|
9217
|
+
switch (_context45.prev = _context45.next) {
|
|
9041
9218
|
case 0:
|
|
9042
|
-
options =
|
|
9043
|
-
|
|
9219
|
+
options = _args45.length > 2 && _args45[2] !== undefined ? _args45[2] : {};
|
|
9220
|
+
_context45.next = 3;
|
|
9044
9221
|
return this.patch(this.baseURL + "/moderation/reports/".concat(id), _objectSpread({
|
|
9045
9222
|
review_result: reviewResult
|
|
9046
9223
|
}, options));
|
|
9047
9224
|
|
|
9048
9225
|
case 3:
|
|
9049
|
-
return
|
|
9226
|
+
return _context45.abrupt("return", _context45.sent);
|
|
9050
9227
|
|
|
9051
9228
|
case 4:
|
|
9052
9229
|
case "end":
|
|
9053
|
-
return
|
|
9230
|
+
return _context45.stop();
|
|
9054
9231
|
}
|
|
9055
9232
|
}
|
|
9056
|
-
},
|
|
9233
|
+
}, _callee45, this);
|
|
9057
9234
|
}));
|
|
9058
9235
|
|
|
9059
|
-
function _reviewFlagReport(
|
|
9236
|
+
function _reviewFlagReport(_x56, _x57) {
|
|
9060
9237
|
return _reviewFlagReport2.apply(this, arguments);
|
|
9061
9238
|
}
|
|
9062
9239
|
|
|
@@ -9078,31 +9255,31 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9078
9255
|
}, {
|
|
9079
9256
|
key: "_unblockMessage",
|
|
9080
9257
|
value: function () {
|
|
9081
|
-
var _unblockMessage2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
9258
|
+
var _unblockMessage2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee46(targetMessageID) {
|
|
9082
9259
|
var options,
|
|
9083
|
-
|
|
9084
|
-
return _regeneratorRuntime.wrap(function
|
|
9260
|
+
_args46 = arguments;
|
|
9261
|
+
return _regeneratorRuntime.wrap(function _callee46$(_context46) {
|
|
9085
9262
|
while (1) {
|
|
9086
|
-
switch (
|
|
9263
|
+
switch (_context46.prev = _context46.next) {
|
|
9087
9264
|
case 0:
|
|
9088
|
-
options =
|
|
9089
|
-
|
|
9265
|
+
options = _args46.length > 1 && _args46[1] !== undefined ? _args46[1] : {};
|
|
9266
|
+
_context46.next = 3;
|
|
9090
9267
|
return this.post(this.baseURL + '/moderation/unblock_message', _objectSpread({
|
|
9091
9268
|
target_message_id: targetMessageID
|
|
9092
9269
|
}, options));
|
|
9093
9270
|
|
|
9094
9271
|
case 3:
|
|
9095
|
-
return
|
|
9272
|
+
return _context46.abrupt("return", _context46.sent);
|
|
9096
9273
|
|
|
9097
9274
|
case 4:
|
|
9098
9275
|
case "end":
|
|
9099
|
-
return
|
|
9276
|
+
return _context46.stop();
|
|
9100
9277
|
}
|
|
9101
9278
|
}
|
|
9102
|
-
},
|
|
9279
|
+
}, _callee46, this);
|
|
9103
9280
|
}));
|
|
9104
9281
|
|
|
9105
|
-
function _unblockMessage(
|
|
9282
|
+
function _unblockMessage(_x58) {
|
|
9106
9283
|
return _unblockMessage2.apply(this, arguments);
|
|
9107
9284
|
}
|
|
9108
9285
|
|
|
@@ -9129,23 +9306,23 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9129
9306
|
* @return {Promise<APIResponse>}
|
|
9130
9307
|
*/
|
|
9131
9308
|
function () {
|
|
9132
|
-
var _markChannelsRead = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
9309
|
+
var _markChannelsRead = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee47() {
|
|
9133
9310
|
var data,
|
|
9134
|
-
|
|
9135
|
-
return _regeneratorRuntime.wrap(function
|
|
9311
|
+
_args47 = arguments;
|
|
9312
|
+
return _regeneratorRuntime.wrap(function _callee47$(_context47) {
|
|
9136
9313
|
while (1) {
|
|
9137
|
-
switch (
|
|
9314
|
+
switch (_context47.prev = _context47.next) {
|
|
9138
9315
|
case 0:
|
|
9139
|
-
data =
|
|
9140
|
-
|
|
9316
|
+
data = _args47.length > 0 && _args47[0] !== undefined ? _args47[0] : {};
|
|
9317
|
+
_context47.next = 3;
|
|
9141
9318
|
return this.post(this.baseURL + '/channels/read', _objectSpread({}, data));
|
|
9142
9319
|
|
|
9143
9320
|
case 3:
|
|
9144
9321
|
case "end":
|
|
9145
|
-
return
|
|
9322
|
+
return _context47.stop();
|
|
9146
9323
|
}
|
|
9147
9324
|
}
|
|
9148
|
-
},
|
|
9325
|
+
}, _callee47, this);
|
|
9149
9326
|
}));
|
|
9150
9327
|
|
|
9151
9328
|
function markChannelsRead() {
|
|
@@ -9220,28 +9397,28 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9220
9397
|
}, {
|
|
9221
9398
|
key: "translateMessage",
|
|
9222
9399
|
value: function () {
|
|
9223
|
-
var _translateMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
9224
|
-
return _regeneratorRuntime.wrap(function
|
|
9400
|
+
var _translateMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee48(messageId, language) {
|
|
9401
|
+
return _regeneratorRuntime.wrap(function _callee48$(_context48) {
|
|
9225
9402
|
while (1) {
|
|
9226
|
-
switch (
|
|
9403
|
+
switch (_context48.prev = _context48.next) {
|
|
9227
9404
|
case 0:
|
|
9228
|
-
|
|
9405
|
+
_context48.next = 2;
|
|
9229
9406
|
return this.post(this.baseURL + "/messages/".concat(messageId, "/translate"), {
|
|
9230
9407
|
language: language
|
|
9231
9408
|
});
|
|
9232
9409
|
|
|
9233
9410
|
case 2:
|
|
9234
|
-
return
|
|
9411
|
+
return _context48.abrupt("return", _context48.sent);
|
|
9235
9412
|
|
|
9236
9413
|
case 3:
|
|
9237
9414
|
case "end":
|
|
9238
|
-
return
|
|
9415
|
+
return _context48.stop();
|
|
9239
9416
|
}
|
|
9240
9417
|
}
|
|
9241
|
-
},
|
|
9418
|
+
}, _callee48, this);
|
|
9242
9419
|
}));
|
|
9243
9420
|
|
|
9244
|
-
function translateMessage(
|
|
9421
|
+
function translateMessage(_x59, _x60) {
|
|
9245
9422
|
return _translateMessage.apply(this, arguments);
|
|
9246
9423
|
}
|
|
9247
9424
|
|
|
@@ -9343,14 +9520,14 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9343
9520
|
}, {
|
|
9344
9521
|
key: "updateMessage",
|
|
9345
9522
|
value: function () {
|
|
9346
|
-
var _updateMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
9523
|
+
var _updateMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee49(message, userId, options) {
|
|
9347
9524
|
var clonedMessage, reservedMessageFields;
|
|
9348
|
-
return _regeneratorRuntime.wrap(function
|
|
9525
|
+
return _regeneratorRuntime.wrap(function _callee49$(_context49) {
|
|
9349
9526
|
while (1) {
|
|
9350
|
-
switch (
|
|
9527
|
+
switch (_context49.prev = _context49.next) {
|
|
9351
9528
|
case 0:
|
|
9352
9529
|
if (message.id) {
|
|
9353
|
-
|
|
9530
|
+
_context49.next = 2;
|
|
9354
9531
|
break;
|
|
9355
9532
|
}
|
|
9356
9533
|
|
|
@@ -9387,23 +9564,23 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9387
9564
|
});
|
|
9388
9565
|
}
|
|
9389
9566
|
|
|
9390
|
-
|
|
9567
|
+
_context49.next = 10;
|
|
9391
9568
|
return this.post(this.baseURL + "/messages/".concat(message.id), _objectSpread({
|
|
9392
9569
|
message: clonedMessage
|
|
9393
9570
|
}, options));
|
|
9394
9571
|
|
|
9395
9572
|
case 10:
|
|
9396
|
-
return
|
|
9573
|
+
return _context49.abrupt("return", _context49.sent);
|
|
9397
9574
|
|
|
9398
9575
|
case 11:
|
|
9399
9576
|
case "end":
|
|
9400
|
-
return
|
|
9577
|
+
return _context49.stop();
|
|
9401
9578
|
}
|
|
9402
9579
|
}
|
|
9403
|
-
},
|
|
9580
|
+
}, _callee49, this);
|
|
9404
9581
|
}));
|
|
9405
9582
|
|
|
9406
|
-
function updateMessage(
|
|
9583
|
+
function updateMessage(_x61, _x62, _x63) {
|
|
9407
9584
|
return _updateMessage.apply(this, arguments);
|
|
9408
9585
|
}
|
|
9409
9586
|
|
|
@@ -9426,14 +9603,14 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9426
9603
|
}, {
|
|
9427
9604
|
key: "partialUpdateMessage",
|
|
9428
9605
|
value: function () {
|
|
9429
|
-
var _partialUpdateMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
9606
|
+
var _partialUpdateMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee50(id, partialMessageObject, userId, options) {
|
|
9430
9607
|
var user;
|
|
9431
|
-
return _regeneratorRuntime.wrap(function
|
|
9608
|
+
return _regeneratorRuntime.wrap(function _callee50$(_context50) {
|
|
9432
9609
|
while (1) {
|
|
9433
|
-
switch (
|
|
9610
|
+
switch (_context50.prev = _context50.next) {
|
|
9434
9611
|
case 0:
|
|
9435
9612
|
if (id) {
|
|
9436
|
-
|
|
9613
|
+
_context50.next = 2;
|
|
9437
9614
|
break;
|
|
9438
9615
|
}
|
|
9439
9616
|
|
|
@@ -9448,23 +9625,23 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9448
9625
|
};
|
|
9449
9626
|
}
|
|
9450
9627
|
|
|
9451
|
-
|
|
9628
|
+
_context50.next = 6;
|
|
9452
9629
|
return this.put(this.baseURL + "/messages/".concat(id), _objectSpread(_objectSpread(_objectSpread({}, partialMessageObject), options), {}, {
|
|
9453
9630
|
user: user
|
|
9454
9631
|
}));
|
|
9455
9632
|
|
|
9456
9633
|
case 6:
|
|
9457
|
-
return
|
|
9634
|
+
return _context50.abrupt("return", _context50.sent);
|
|
9458
9635
|
|
|
9459
9636
|
case 7:
|
|
9460
9637
|
case "end":
|
|
9461
|
-
return
|
|
9638
|
+
return _context50.stop();
|
|
9462
9639
|
}
|
|
9463
9640
|
}
|
|
9464
|
-
},
|
|
9641
|
+
}, _callee50, this);
|
|
9465
9642
|
}));
|
|
9466
9643
|
|
|
9467
|
-
function partialUpdateMessage(
|
|
9644
|
+
function partialUpdateMessage(_x64, _x65, _x66, _x67) {
|
|
9468
9645
|
return _partialUpdateMessage.apply(this, arguments);
|
|
9469
9646
|
}
|
|
9470
9647
|
|
|
@@ -9473,11 +9650,11 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9473
9650
|
}, {
|
|
9474
9651
|
key: "deleteMessage",
|
|
9475
9652
|
value: function () {
|
|
9476
|
-
var _deleteMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
9653
|
+
var _deleteMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee51(messageID, hardDelete) {
|
|
9477
9654
|
var params;
|
|
9478
|
-
return _regeneratorRuntime.wrap(function
|
|
9655
|
+
return _regeneratorRuntime.wrap(function _callee51$(_context51) {
|
|
9479
9656
|
while (1) {
|
|
9480
|
-
switch (
|
|
9657
|
+
switch (_context51.prev = _context51.next) {
|
|
9481
9658
|
case 0:
|
|
9482
9659
|
params = {};
|
|
9483
9660
|
|
|
@@ -9487,21 +9664,21 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9487
9664
|
};
|
|
9488
9665
|
}
|
|
9489
9666
|
|
|
9490
|
-
|
|
9667
|
+
_context51.next = 4;
|
|
9491
9668
|
return this.delete(this.baseURL + "/messages/".concat(messageID), params);
|
|
9492
9669
|
|
|
9493
9670
|
case 4:
|
|
9494
|
-
return
|
|
9671
|
+
return _context51.abrupt("return", _context51.sent);
|
|
9495
9672
|
|
|
9496
9673
|
case 5:
|
|
9497
9674
|
case "end":
|
|
9498
|
-
return
|
|
9675
|
+
return _context51.stop();
|
|
9499
9676
|
}
|
|
9500
9677
|
}
|
|
9501
|
-
},
|
|
9678
|
+
}, _callee51, this);
|
|
9502
9679
|
}));
|
|
9503
9680
|
|
|
9504
|
-
function deleteMessage(
|
|
9681
|
+
function deleteMessage(_x68, _x69) {
|
|
9505
9682
|
return _deleteMessage.apply(this, arguments);
|
|
9506
9683
|
}
|
|
9507
9684
|
|
|
@@ -9510,26 +9687,26 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9510
9687
|
}, {
|
|
9511
9688
|
key: "getMessage",
|
|
9512
9689
|
value: function () {
|
|
9513
|
-
var _getMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
9514
|
-
return _regeneratorRuntime.wrap(function
|
|
9690
|
+
var _getMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee52(messageID) {
|
|
9691
|
+
return _regeneratorRuntime.wrap(function _callee52$(_context52) {
|
|
9515
9692
|
while (1) {
|
|
9516
|
-
switch (
|
|
9693
|
+
switch (_context52.prev = _context52.next) {
|
|
9517
9694
|
case 0:
|
|
9518
|
-
|
|
9695
|
+
_context52.next = 2;
|
|
9519
9696
|
return this.get(this.baseURL + "/messages/".concat(messageID));
|
|
9520
9697
|
|
|
9521
9698
|
case 2:
|
|
9522
|
-
return
|
|
9699
|
+
return _context52.abrupt("return", _context52.sent);
|
|
9523
9700
|
|
|
9524
9701
|
case 3:
|
|
9525
9702
|
case "end":
|
|
9526
|
-
return
|
|
9703
|
+
return _context52.stop();
|
|
9527
9704
|
}
|
|
9528
9705
|
}
|
|
9529
|
-
},
|
|
9706
|
+
}, _callee52, this);
|
|
9530
9707
|
}));
|
|
9531
9708
|
|
|
9532
|
-
function getMessage(
|
|
9709
|
+
function getMessage(_x70) {
|
|
9533
9710
|
return _getMessage.apply(this, arguments);
|
|
9534
9711
|
}
|
|
9535
9712
|
|
|
@@ -9538,7 +9715,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9538
9715
|
}, {
|
|
9539
9716
|
key: "getUserAgent",
|
|
9540
9717
|
value: function getUserAgent() {
|
|
9541
|
-
return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "6.
|
|
9718
|
+
return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "6.7.1");
|
|
9542
9719
|
}
|
|
9543
9720
|
}, {
|
|
9544
9721
|
key: "setUserAgent",
|
|
@@ -9733,28 +9910,28 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9733
9910
|
}, {
|
|
9734
9911
|
key: "sendUserCustomEvent",
|
|
9735
9912
|
value: function () {
|
|
9736
|
-
var _sendUserCustomEvent = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
9737
|
-
return _regeneratorRuntime.wrap(function
|
|
9913
|
+
var _sendUserCustomEvent = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee53(targetUserID, event) {
|
|
9914
|
+
return _regeneratorRuntime.wrap(function _callee53$(_context53) {
|
|
9738
9915
|
while (1) {
|
|
9739
|
-
switch (
|
|
9916
|
+
switch (_context53.prev = _context53.next) {
|
|
9740
9917
|
case 0:
|
|
9741
|
-
|
|
9918
|
+
_context53.next = 2;
|
|
9742
9919
|
return this.post("".concat(this.baseURL, "/users/").concat(targetUserID, "/event"), {
|
|
9743
9920
|
event: event
|
|
9744
9921
|
});
|
|
9745
9922
|
|
|
9746
9923
|
case 2:
|
|
9747
|
-
return
|
|
9924
|
+
return _context53.abrupt("return", _context53.sent);
|
|
9748
9925
|
|
|
9749
9926
|
case 3:
|
|
9750
9927
|
case "end":
|
|
9751
|
-
return
|
|
9928
|
+
return _context53.stop();
|
|
9752
9929
|
}
|
|
9753
9930
|
}
|
|
9754
|
-
},
|
|
9931
|
+
}, _callee53, this);
|
|
9755
9932
|
}));
|
|
9756
9933
|
|
|
9757
|
-
function sendUserCustomEvent(
|
|
9934
|
+
function sendUserCustomEvent(_x71, _x72) {
|
|
9758
9935
|
return _sendUserCustomEvent.apply(this, arguments);
|
|
9759
9936
|
}
|
|
9760
9937
|
|
|
@@ -9822,32 +9999,32 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9822
9999
|
}, {
|
|
9823
10000
|
key: "createSegment",
|
|
9824
10001
|
value: function () {
|
|
9825
|
-
var _createSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10002
|
+
var _createSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee54(params) {
|
|
9826
10003
|
var _yield$this$post, segment;
|
|
9827
10004
|
|
|
9828
|
-
return _regeneratorRuntime.wrap(function
|
|
10005
|
+
return _regeneratorRuntime.wrap(function _callee54$(_context54) {
|
|
9829
10006
|
while (1) {
|
|
9830
|
-
switch (
|
|
10007
|
+
switch (_context54.prev = _context54.next) {
|
|
9831
10008
|
case 0:
|
|
9832
|
-
|
|
10009
|
+
_context54.next = 2;
|
|
9833
10010
|
return this.post(this.baseURL + "/segments", {
|
|
9834
10011
|
segment: params
|
|
9835
10012
|
});
|
|
9836
10013
|
|
|
9837
10014
|
case 2:
|
|
9838
|
-
_yield$this$post =
|
|
10015
|
+
_yield$this$post = _context54.sent;
|
|
9839
10016
|
segment = _yield$this$post.segment;
|
|
9840
|
-
return
|
|
10017
|
+
return _context54.abrupt("return", segment);
|
|
9841
10018
|
|
|
9842
10019
|
case 5:
|
|
9843
10020
|
case "end":
|
|
9844
|
-
return
|
|
10021
|
+
return _context54.stop();
|
|
9845
10022
|
}
|
|
9846
10023
|
}
|
|
9847
|
-
},
|
|
10024
|
+
}, _callee54, this);
|
|
9848
10025
|
}));
|
|
9849
10026
|
|
|
9850
|
-
function createSegment(
|
|
10027
|
+
function createSegment(_x73) {
|
|
9851
10028
|
return _createSegment.apply(this, arguments);
|
|
9852
10029
|
}
|
|
9853
10030
|
|
|
@@ -9864,30 +10041,30 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9864
10041
|
}, {
|
|
9865
10042
|
key: "getSegment",
|
|
9866
10043
|
value: function () {
|
|
9867
|
-
var _getSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10044
|
+
var _getSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee55(id) {
|
|
9868
10045
|
var _yield$this$get, segment;
|
|
9869
10046
|
|
|
9870
|
-
return _regeneratorRuntime.wrap(function
|
|
10047
|
+
return _regeneratorRuntime.wrap(function _callee55$(_context55) {
|
|
9871
10048
|
while (1) {
|
|
9872
|
-
switch (
|
|
10049
|
+
switch (_context55.prev = _context55.next) {
|
|
9873
10050
|
case 0:
|
|
9874
|
-
|
|
10051
|
+
_context55.next = 2;
|
|
9875
10052
|
return this.get(this.baseURL + "/segments/".concat(id));
|
|
9876
10053
|
|
|
9877
10054
|
case 2:
|
|
9878
|
-
_yield$this$get =
|
|
10055
|
+
_yield$this$get = _context55.sent;
|
|
9879
10056
|
segment = _yield$this$get.segment;
|
|
9880
|
-
return
|
|
10057
|
+
return _context55.abrupt("return", segment);
|
|
9881
10058
|
|
|
9882
10059
|
case 5:
|
|
9883
10060
|
case "end":
|
|
9884
|
-
return
|
|
10061
|
+
return _context55.stop();
|
|
9885
10062
|
}
|
|
9886
10063
|
}
|
|
9887
|
-
},
|
|
10064
|
+
}, _callee55, this);
|
|
9888
10065
|
}));
|
|
9889
10066
|
|
|
9890
|
-
function getSegment(
|
|
10067
|
+
function getSegment(_x74) {
|
|
9891
10068
|
return _getSegment.apply(this, arguments);
|
|
9892
10069
|
}
|
|
9893
10070
|
|
|
@@ -9903,30 +10080,30 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9903
10080
|
}, {
|
|
9904
10081
|
key: "listSegments",
|
|
9905
10082
|
value: function () {
|
|
9906
|
-
var _listSegments = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10083
|
+
var _listSegments = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee56(options) {
|
|
9907
10084
|
var _yield$this$get2, segments;
|
|
9908
10085
|
|
|
9909
|
-
return _regeneratorRuntime.wrap(function
|
|
10086
|
+
return _regeneratorRuntime.wrap(function _callee56$(_context56) {
|
|
9910
10087
|
while (1) {
|
|
9911
|
-
switch (
|
|
10088
|
+
switch (_context56.prev = _context56.next) {
|
|
9912
10089
|
case 0:
|
|
9913
|
-
|
|
10090
|
+
_context56.next = 2;
|
|
9914
10091
|
return this.get(this.baseURL + "/segments", options);
|
|
9915
10092
|
|
|
9916
10093
|
case 2:
|
|
9917
|
-
_yield$this$get2 =
|
|
10094
|
+
_yield$this$get2 = _context56.sent;
|
|
9918
10095
|
segments = _yield$this$get2.segments;
|
|
9919
|
-
return
|
|
10096
|
+
return _context56.abrupt("return", segments);
|
|
9920
10097
|
|
|
9921
10098
|
case 5:
|
|
9922
10099
|
case "end":
|
|
9923
|
-
return
|
|
10100
|
+
return _context56.stop();
|
|
9924
10101
|
}
|
|
9925
10102
|
}
|
|
9926
|
-
},
|
|
10103
|
+
}, _callee56, this);
|
|
9927
10104
|
}));
|
|
9928
10105
|
|
|
9929
|
-
function listSegments(
|
|
10106
|
+
function listSegments(_x75) {
|
|
9930
10107
|
return _listSegments.apply(this, arguments);
|
|
9931
10108
|
}
|
|
9932
10109
|
|
|
@@ -9944,32 +10121,32 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9944
10121
|
}, {
|
|
9945
10122
|
key: "updateSegment",
|
|
9946
10123
|
value: function () {
|
|
9947
|
-
var _updateSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10124
|
+
var _updateSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee57(id, params) {
|
|
9948
10125
|
var _yield$this$put, segment;
|
|
9949
10126
|
|
|
9950
|
-
return _regeneratorRuntime.wrap(function
|
|
10127
|
+
return _regeneratorRuntime.wrap(function _callee57$(_context57) {
|
|
9951
10128
|
while (1) {
|
|
9952
|
-
switch (
|
|
10129
|
+
switch (_context57.prev = _context57.next) {
|
|
9953
10130
|
case 0:
|
|
9954
|
-
|
|
10131
|
+
_context57.next = 2;
|
|
9955
10132
|
return this.put(this.baseURL + "/segments/".concat(id), {
|
|
9956
10133
|
segment: params
|
|
9957
10134
|
});
|
|
9958
10135
|
|
|
9959
10136
|
case 2:
|
|
9960
|
-
_yield$this$put =
|
|
10137
|
+
_yield$this$put = _context57.sent;
|
|
9961
10138
|
segment = _yield$this$put.segment;
|
|
9962
|
-
return
|
|
10139
|
+
return _context57.abrupt("return", segment);
|
|
9963
10140
|
|
|
9964
10141
|
case 5:
|
|
9965
10142
|
case "end":
|
|
9966
|
-
return
|
|
10143
|
+
return _context57.stop();
|
|
9967
10144
|
}
|
|
9968
10145
|
}
|
|
9969
|
-
},
|
|
10146
|
+
}, _callee57, this);
|
|
9970
10147
|
}));
|
|
9971
10148
|
|
|
9972
|
-
function updateSegment(
|
|
10149
|
+
function updateSegment(_x76, _x77) {
|
|
9973
10150
|
return _updateSegment.apply(this, arguments);
|
|
9974
10151
|
}
|
|
9975
10152
|
|
|
@@ -9986,22 +10163,22 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9986
10163
|
}, {
|
|
9987
10164
|
key: "deleteSegment",
|
|
9988
10165
|
value: function () {
|
|
9989
|
-
var _deleteSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
9990
|
-
return _regeneratorRuntime.wrap(function
|
|
10166
|
+
var _deleteSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee58(id) {
|
|
10167
|
+
return _regeneratorRuntime.wrap(function _callee58$(_context58) {
|
|
9991
10168
|
while (1) {
|
|
9992
|
-
switch (
|
|
10169
|
+
switch (_context58.prev = _context58.next) {
|
|
9993
10170
|
case 0:
|
|
9994
|
-
return
|
|
10171
|
+
return _context58.abrupt("return", this.delete(this.baseURL + "/segments/".concat(id)));
|
|
9995
10172
|
|
|
9996
10173
|
case 1:
|
|
9997
10174
|
case "end":
|
|
9998
|
-
return
|
|
10175
|
+
return _context58.stop();
|
|
9999
10176
|
}
|
|
10000
10177
|
}
|
|
10001
|
-
},
|
|
10178
|
+
}, _callee58, this);
|
|
10002
10179
|
}));
|
|
10003
10180
|
|
|
10004
|
-
function deleteSegment(
|
|
10181
|
+
function deleteSegment(_x78) {
|
|
10005
10182
|
return _deleteSegment.apply(this, arguments);
|
|
10006
10183
|
}
|
|
10007
10184
|
|
|
@@ -10018,32 +10195,32 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10018
10195
|
}, {
|
|
10019
10196
|
key: "createCampaign",
|
|
10020
10197
|
value: function () {
|
|
10021
|
-
var _createCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10198
|
+
var _createCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee59(params) {
|
|
10022
10199
|
var _yield$this$post2, campaign;
|
|
10023
10200
|
|
|
10024
|
-
return _regeneratorRuntime.wrap(function
|
|
10201
|
+
return _regeneratorRuntime.wrap(function _callee59$(_context59) {
|
|
10025
10202
|
while (1) {
|
|
10026
|
-
switch (
|
|
10203
|
+
switch (_context59.prev = _context59.next) {
|
|
10027
10204
|
case 0:
|
|
10028
|
-
|
|
10205
|
+
_context59.next = 2;
|
|
10029
10206
|
return this.post(this.baseURL + "/campaigns", {
|
|
10030
10207
|
campaign: params
|
|
10031
10208
|
});
|
|
10032
10209
|
|
|
10033
10210
|
case 2:
|
|
10034
|
-
_yield$this$post2 =
|
|
10211
|
+
_yield$this$post2 = _context59.sent;
|
|
10035
10212
|
campaign = _yield$this$post2.campaign;
|
|
10036
|
-
return
|
|
10213
|
+
return _context59.abrupt("return", campaign);
|
|
10037
10214
|
|
|
10038
10215
|
case 5:
|
|
10039
10216
|
case "end":
|
|
10040
|
-
return
|
|
10217
|
+
return _context59.stop();
|
|
10041
10218
|
}
|
|
10042
10219
|
}
|
|
10043
|
-
},
|
|
10220
|
+
}, _callee59, this);
|
|
10044
10221
|
}));
|
|
10045
10222
|
|
|
10046
|
-
function createCampaign(
|
|
10223
|
+
function createCampaign(_x79) {
|
|
10047
10224
|
return _createCampaign.apply(this, arguments);
|
|
10048
10225
|
}
|
|
10049
10226
|
|
|
@@ -10060,30 +10237,30 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10060
10237
|
}, {
|
|
10061
10238
|
key: "getCampaign",
|
|
10062
10239
|
value: function () {
|
|
10063
|
-
var _getCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10240
|
+
var _getCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee60(id) {
|
|
10064
10241
|
var _yield$this$get3, campaign;
|
|
10065
10242
|
|
|
10066
|
-
return _regeneratorRuntime.wrap(function
|
|
10243
|
+
return _regeneratorRuntime.wrap(function _callee60$(_context60) {
|
|
10067
10244
|
while (1) {
|
|
10068
|
-
switch (
|
|
10245
|
+
switch (_context60.prev = _context60.next) {
|
|
10069
10246
|
case 0:
|
|
10070
|
-
|
|
10247
|
+
_context60.next = 2;
|
|
10071
10248
|
return this.get(this.baseURL + "/campaigns/".concat(id));
|
|
10072
10249
|
|
|
10073
10250
|
case 2:
|
|
10074
|
-
_yield$this$get3 =
|
|
10251
|
+
_yield$this$get3 = _context60.sent;
|
|
10075
10252
|
campaign = _yield$this$get3.campaign;
|
|
10076
|
-
return
|
|
10253
|
+
return _context60.abrupt("return", campaign);
|
|
10077
10254
|
|
|
10078
10255
|
case 5:
|
|
10079
10256
|
case "end":
|
|
10080
|
-
return
|
|
10257
|
+
return _context60.stop();
|
|
10081
10258
|
}
|
|
10082
10259
|
}
|
|
10083
|
-
},
|
|
10260
|
+
}, _callee60, this);
|
|
10084
10261
|
}));
|
|
10085
10262
|
|
|
10086
|
-
function getCampaign(
|
|
10263
|
+
function getCampaign(_x80) {
|
|
10087
10264
|
return _getCampaign.apply(this, arguments);
|
|
10088
10265
|
}
|
|
10089
10266
|
|
|
@@ -10099,30 +10276,30 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10099
10276
|
}, {
|
|
10100
10277
|
key: "listCampaigns",
|
|
10101
10278
|
value: function () {
|
|
10102
|
-
var _listCampaigns = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10279
|
+
var _listCampaigns = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee61(options) {
|
|
10103
10280
|
var _yield$this$get4, campaigns;
|
|
10104
10281
|
|
|
10105
|
-
return _regeneratorRuntime.wrap(function
|
|
10282
|
+
return _regeneratorRuntime.wrap(function _callee61$(_context61) {
|
|
10106
10283
|
while (1) {
|
|
10107
|
-
switch (
|
|
10284
|
+
switch (_context61.prev = _context61.next) {
|
|
10108
10285
|
case 0:
|
|
10109
|
-
|
|
10286
|
+
_context61.next = 2;
|
|
10110
10287
|
return this.get(this.baseURL + "/campaigns", options);
|
|
10111
10288
|
|
|
10112
10289
|
case 2:
|
|
10113
|
-
_yield$this$get4 =
|
|
10290
|
+
_yield$this$get4 = _context61.sent;
|
|
10114
10291
|
campaigns = _yield$this$get4.campaigns;
|
|
10115
|
-
return
|
|
10292
|
+
return _context61.abrupt("return", campaigns);
|
|
10116
10293
|
|
|
10117
10294
|
case 5:
|
|
10118
10295
|
case "end":
|
|
10119
|
-
return
|
|
10296
|
+
return _context61.stop();
|
|
10120
10297
|
}
|
|
10121
10298
|
}
|
|
10122
|
-
},
|
|
10299
|
+
}, _callee61, this);
|
|
10123
10300
|
}));
|
|
10124
10301
|
|
|
10125
|
-
function listCampaigns(
|
|
10302
|
+
function listCampaigns(_x81) {
|
|
10126
10303
|
return _listCampaigns.apply(this, arguments);
|
|
10127
10304
|
}
|
|
10128
10305
|
|
|
@@ -10140,32 +10317,32 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10140
10317
|
}, {
|
|
10141
10318
|
key: "updateCampaign",
|
|
10142
10319
|
value: function () {
|
|
10143
|
-
var _updateCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10320
|
+
var _updateCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee62(id, params) {
|
|
10144
10321
|
var _yield$this$put2, campaign;
|
|
10145
10322
|
|
|
10146
|
-
return _regeneratorRuntime.wrap(function
|
|
10323
|
+
return _regeneratorRuntime.wrap(function _callee62$(_context62) {
|
|
10147
10324
|
while (1) {
|
|
10148
|
-
switch (
|
|
10325
|
+
switch (_context62.prev = _context62.next) {
|
|
10149
10326
|
case 0:
|
|
10150
|
-
|
|
10327
|
+
_context62.next = 2;
|
|
10151
10328
|
return this.put(this.baseURL + "/campaigns/".concat(id), {
|
|
10152
10329
|
campaign: params
|
|
10153
10330
|
});
|
|
10154
10331
|
|
|
10155
10332
|
case 2:
|
|
10156
|
-
_yield$this$put2 =
|
|
10333
|
+
_yield$this$put2 = _context62.sent;
|
|
10157
10334
|
campaign = _yield$this$put2.campaign;
|
|
10158
|
-
return
|
|
10335
|
+
return _context62.abrupt("return", campaign);
|
|
10159
10336
|
|
|
10160
10337
|
case 5:
|
|
10161
10338
|
case "end":
|
|
10162
|
-
return
|
|
10339
|
+
return _context62.stop();
|
|
10163
10340
|
}
|
|
10164
10341
|
}
|
|
10165
|
-
},
|
|
10342
|
+
}, _callee62, this);
|
|
10166
10343
|
}));
|
|
10167
10344
|
|
|
10168
|
-
function updateCampaign(
|
|
10345
|
+
function updateCampaign(_x82, _x83) {
|
|
10169
10346
|
return _updateCampaign.apply(this, arguments);
|
|
10170
10347
|
}
|
|
10171
10348
|
|
|
@@ -10182,22 +10359,22 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10182
10359
|
}, {
|
|
10183
10360
|
key: "deleteCampaign",
|
|
10184
10361
|
value: function () {
|
|
10185
|
-
var _deleteCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10186
|
-
return _regeneratorRuntime.wrap(function
|
|
10362
|
+
var _deleteCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee63(id) {
|
|
10363
|
+
return _regeneratorRuntime.wrap(function _callee63$(_context63) {
|
|
10187
10364
|
while (1) {
|
|
10188
|
-
switch (
|
|
10365
|
+
switch (_context63.prev = _context63.next) {
|
|
10189
10366
|
case 0:
|
|
10190
|
-
return
|
|
10367
|
+
return _context63.abrupt("return", this.delete(this.baseURL + "/campaigns/".concat(id)));
|
|
10191
10368
|
|
|
10192
10369
|
case 1:
|
|
10193
10370
|
case "end":
|
|
10194
|
-
return
|
|
10371
|
+
return _context63.stop();
|
|
10195
10372
|
}
|
|
10196
10373
|
}
|
|
10197
|
-
},
|
|
10374
|
+
}, _callee63, this);
|
|
10198
10375
|
}));
|
|
10199
10376
|
|
|
10200
|
-
function deleteCampaign(
|
|
10377
|
+
function deleteCampaign(_x84) {
|
|
10201
10378
|
return _deleteCampaign.apply(this, arguments);
|
|
10202
10379
|
}
|
|
10203
10380
|
|
|
@@ -10207,7 +10384,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10207
10384
|
* scheduleCampaign - Schedule a Campaign
|
|
10208
10385
|
*
|
|
10209
10386
|
* @param {string} id Campaign ID
|
|
10210
|
-
* @param {{
|
|
10387
|
+
* @param {{scheduledFor: number}} params Schedule params
|
|
10211
10388
|
*
|
|
10212
10389
|
* @return {Campaign} Scheduled Campaign
|
|
10213
10390
|
*/
|
|
@@ -10215,33 +10392,33 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10215
10392
|
}, {
|
|
10216
10393
|
key: "scheduleCampaign",
|
|
10217
10394
|
value: function () {
|
|
10218
|
-
var _scheduleCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10219
|
-
var
|
|
10395
|
+
var _scheduleCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee64(id, params) {
|
|
10396
|
+
var scheduledFor, _yield$this$patch, campaign;
|
|
10220
10397
|
|
|
10221
|
-
return _regeneratorRuntime.wrap(function
|
|
10398
|
+
return _regeneratorRuntime.wrap(function _callee64$(_context64) {
|
|
10222
10399
|
while (1) {
|
|
10223
|
-
switch (
|
|
10400
|
+
switch (_context64.prev = _context64.next) {
|
|
10224
10401
|
case 0:
|
|
10225
|
-
|
|
10226
|
-
|
|
10402
|
+
scheduledFor = params.scheduledFor;
|
|
10403
|
+
_context64.next = 3;
|
|
10227
10404
|
return this.patch(this.baseURL + "/campaigns/".concat(id, "/schedule"), {
|
|
10228
|
-
|
|
10405
|
+
scheduled_for: scheduledFor
|
|
10229
10406
|
});
|
|
10230
10407
|
|
|
10231
10408
|
case 3:
|
|
10232
|
-
_yield$this$patch =
|
|
10409
|
+
_yield$this$patch = _context64.sent;
|
|
10233
10410
|
campaign = _yield$this$patch.campaign;
|
|
10234
|
-
return
|
|
10411
|
+
return _context64.abrupt("return", campaign);
|
|
10235
10412
|
|
|
10236
10413
|
case 6:
|
|
10237
10414
|
case "end":
|
|
10238
|
-
return
|
|
10415
|
+
return _context64.stop();
|
|
10239
10416
|
}
|
|
10240
10417
|
}
|
|
10241
|
-
},
|
|
10418
|
+
}, _callee64, this);
|
|
10242
10419
|
}));
|
|
10243
10420
|
|
|
10244
|
-
function scheduleCampaign(
|
|
10421
|
+
function scheduleCampaign(_x85, _x86) {
|
|
10245
10422
|
return _scheduleCampaign.apply(this, arguments);
|
|
10246
10423
|
}
|
|
10247
10424
|
|
|
@@ -10258,30 +10435,30 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10258
10435
|
}, {
|
|
10259
10436
|
key: "stopCampaign",
|
|
10260
10437
|
value: function () {
|
|
10261
|
-
var _stopCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10438
|
+
var _stopCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee65(id) {
|
|
10262
10439
|
var _yield$this$patch2, campaign;
|
|
10263
10440
|
|
|
10264
|
-
return _regeneratorRuntime.wrap(function
|
|
10441
|
+
return _regeneratorRuntime.wrap(function _callee65$(_context65) {
|
|
10265
10442
|
while (1) {
|
|
10266
|
-
switch (
|
|
10443
|
+
switch (_context65.prev = _context65.next) {
|
|
10267
10444
|
case 0:
|
|
10268
|
-
|
|
10445
|
+
_context65.next = 2;
|
|
10269
10446
|
return this.patch(this.baseURL + "/campaigns/".concat(id, "/stop"));
|
|
10270
10447
|
|
|
10271
10448
|
case 2:
|
|
10272
|
-
_yield$this$patch2 =
|
|
10449
|
+
_yield$this$patch2 = _context65.sent;
|
|
10273
10450
|
campaign = _yield$this$patch2.campaign;
|
|
10274
|
-
return
|
|
10451
|
+
return _context65.abrupt("return", campaign);
|
|
10275
10452
|
|
|
10276
10453
|
case 5:
|
|
10277
10454
|
case "end":
|
|
10278
|
-
return
|
|
10455
|
+
return _context65.stop();
|
|
10279
10456
|
}
|
|
10280
10457
|
}
|
|
10281
|
-
},
|
|
10458
|
+
}, _callee65, this);
|
|
10282
10459
|
}));
|
|
10283
10460
|
|
|
10284
|
-
function stopCampaign(
|
|
10461
|
+
function stopCampaign(_x87) {
|
|
10285
10462
|
return _stopCampaign.apply(this, arguments);
|
|
10286
10463
|
}
|
|
10287
10464
|
|
|
@@ -10298,30 +10475,30 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10298
10475
|
}, {
|
|
10299
10476
|
key: "resumeCampaign",
|
|
10300
10477
|
value: function () {
|
|
10301
|
-
var _resumeCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10478
|
+
var _resumeCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee66(id) {
|
|
10302
10479
|
var _yield$this$patch3, campaign;
|
|
10303
10480
|
|
|
10304
|
-
return _regeneratorRuntime.wrap(function
|
|
10481
|
+
return _regeneratorRuntime.wrap(function _callee66$(_context66) {
|
|
10305
10482
|
while (1) {
|
|
10306
|
-
switch (
|
|
10483
|
+
switch (_context66.prev = _context66.next) {
|
|
10307
10484
|
case 0:
|
|
10308
|
-
|
|
10485
|
+
_context66.next = 2;
|
|
10309
10486
|
return this.patch(this.baseURL + "/campaigns/".concat(id, "/resume"));
|
|
10310
10487
|
|
|
10311
10488
|
case 2:
|
|
10312
|
-
_yield$this$patch3 =
|
|
10489
|
+
_yield$this$patch3 = _context66.sent;
|
|
10313
10490
|
campaign = _yield$this$patch3.campaign;
|
|
10314
|
-
return
|
|
10491
|
+
return _context66.abrupt("return", campaign);
|
|
10315
10492
|
|
|
10316
10493
|
case 5:
|
|
10317
10494
|
case "end":
|
|
10318
|
-
return
|
|
10495
|
+
return _context66.stop();
|
|
10319
10496
|
}
|
|
10320
10497
|
}
|
|
10321
|
-
},
|
|
10498
|
+
}, _callee66, this);
|
|
10322
10499
|
}));
|
|
10323
10500
|
|
|
10324
|
-
function resumeCampaign(
|
|
10501
|
+
function resumeCampaign(_x88) {
|
|
10325
10502
|
return _resumeCampaign.apply(this, arguments);
|
|
10326
10503
|
}
|
|
10327
10504
|
|
|
@@ -10332,39 +10509,37 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10332
10509
|
*
|
|
10333
10510
|
* @param {string} id Campaign ID
|
|
10334
10511
|
* @param {{users: string[]}} params Test params
|
|
10335
|
-
*
|
|
10512
|
+
*
|
|
10513
|
+
* @return {TestCampaignResponse} Test campaign response
|
|
10336
10514
|
*/
|
|
10337
10515
|
|
|
10338
10516
|
}, {
|
|
10339
10517
|
key: "testCampaign",
|
|
10340
10518
|
value: function () {
|
|
10341
|
-
var _testCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10342
|
-
var users
|
|
10343
|
-
|
|
10344
|
-
return _regeneratorRuntime.wrap(function _callee66$(_context66) {
|
|
10519
|
+
var _testCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee67(id, params) {
|
|
10520
|
+
var users;
|
|
10521
|
+
return _regeneratorRuntime.wrap(function _callee67$(_context67) {
|
|
10345
10522
|
while (1) {
|
|
10346
|
-
switch (
|
|
10523
|
+
switch (_context67.prev = _context67.next) {
|
|
10347
10524
|
case 0:
|
|
10348
10525
|
users = params.users;
|
|
10349
|
-
|
|
10526
|
+
_context67.next = 3;
|
|
10350
10527
|
return this.post(this.baseURL + "/campaigns/".concat(id, "/test"), {
|
|
10351
10528
|
users: users
|
|
10352
10529
|
});
|
|
10353
10530
|
|
|
10354
10531
|
case 3:
|
|
10355
|
-
|
|
10356
|
-
campaign = _yield$this$post3.campaign;
|
|
10357
|
-
return _context66.abrupt("return", campaign);
|
|
10532
|
+
return _context67.abrupt("return", _context67.sent);
|
|
10358
10533
|
|
|
10359
|
-
case
|
|
10534
|
+
case 4:
|
|
10360
10535
|
case "end":
|
|
10361
|
-
return
|
|
10536
|
+
return _context67.stop();
|
|
10362
10537
|
}
|
|
10363
10538
|
}
|
|
10364
|
-
},
|
|
10539
|
+
}, _callee67, this);
|
|
10365
10540
|
}));
|
|
10366
10541
|
|
|
10367
|
-
function testCampaign(
|
|
10542
|
+
function testCampaign(_x89, _x90) {
|
|
10368
10543
|
return _testCampaign.apply(this, arguments);
|
|
10369
10544
|
}
|
|
10370
10545
|
|
|
@@ -10380,24 +10555,24 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10380
10555
|
}, {
|
|
10381
10556
|
key: "enrichURL",
|
|
10382
10557
|
value: function () {
|
|
10383
|
-
var _enrichURL = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10384
|
-
return _regeneratorRuntime.wrap(function
|
|
10558
|
+
var _enrichURL = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee68(url) {
|
|
10559
|
+
return _regeneratorRuntime.wrap(function _callee68$(_context68) {
|
|
10385
10560
|
while (1) {
|
|
10386
|
-
switch (
|
|
10561
|
+
switch (_context68.prev = _context68.next) {
|
|
10387
10562
|
case 0:
|
|
10388
|
-
return
|
|
10563
|
+
return _context68.abrupt("return", this.get(this.baseURL + "/og", {
|
|
10389
10564
|
url: url
|
|
10390
10565
|
}));
|
|
10391
10566
|
|
|
10392
10567
|
case 1:
|
|
10393
10568
|
case "end":
|
|
10394
|
-
return
|
|
10569
|
+
return _context68.stop();
|
|
10395
10570
|
}
|
|
10396
10571
|
}
|
|
10397
|
-
},
|
|
10572
|
+
}, _callee68, this);
|
|
10398
10573
|
}));
|
|
10399
10574
|
|
|
10400
|
-
function enrichURL(
|
|
10575
|
+
function enrichURL(_x91) {
|
|
10401
10576
|
return _enrichURL.apply(this, arguments);
|
|
10402
10577
|
}
|
|
10403
10578
|
|
|
@@ -10414,22 +10589,22 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10414
10589
|
}, {
|
|
10415
10590
|
key: "getTask",
|
|
10416
10591
|
value: function () {
|
|
10417
|
-
var _getTask = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10418
|
-
return _regeneratorRuntime.wrap(function
|
|
10592
|
+
var _getTask = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee69(id) {
|
|
10593
|
+
return _regeneratorRuntime.wrap(function _callee69$(_context69) {
|
|
10419
10594
|
while (1) {
|
|
10420
|
-
switch (
|
|
10595
|
+
switch (_context69.prev = _context69.next) {
|
|
10421
10596
|
case 0:
|
|
10422
|
-
return
|
|
10597
|
+
return _context69.abrupt("return", this.get("".concat(this.baseURL, "/tasks/").concat(id)));
|
|
10423
10598
|
|
|
10424
10599
|
case 1:
|
|
10425
10600
|
case "end":
|
|
10426
|
-
return
|
|
10601
|
+
return _context69.stop();
|
|
10427
10602
|
}
|
|
10428
10603
|
}
|
|
10429
|
-
},
|
|
10604
|
+
}, _callee69, this);
|
|
10430
10605
|
}));
|
|
10431
10606
|
|
|
10432
|
-
function getTask(
|
|
10607
|
+
function getTask(_x92) {
|
|
10433
10608
|
return _getTask.apply(this, arguments);
|
|
10434
10609
|
}
|
|
10435
10610
|
|
|
@@ -10447,31 +10622,31 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10447
10622
|
}, {
|
|
10448
10623
|
key: "deleteChannels",
|
|
10449
10624
|
value: function () {
|
|
10450
|
-
var _deleteChannels = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10625
|
+
var _deleteChannels = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee70(cids) {
|
|
10451
10626
|
var options,
|
|
10452
|
-
|
|
10453
|
-
return _regeneratorRuntime.wrap(function
|
|
10627
|
+
_args70 = arguments;
|
|
10628
|
+
return _regeneratorRuntime.wrap(function _callee70$(_context70) {
|
|
10454
10629
|
while (1) {
|
|
10455
|
-
switch (
|
|
10630
|
+
switch (_context70.prev = _context70.next) {
|
|
10456
10631
|
case 0:
|
|
10457
|
-
options =
|
|
10458
|
-
|
|
10632
|
+
options = _args70.length > 1 && _args70[1] !== undefined ? _args70[1] : {};
|
|
10633
|
+
_context70.next = 3;
|
|
10459
10634
|
return this.post(this.baseURL + "/channels/delete", _objectSpread({
|
|
10460
10635
|
cids: cids
|
|
10461
10636
|
}, options));
|
|
10462
10637
|
|
|
10463
10638
|
case 3:
|
|
10464
|
-
return
|
|
10639
|
+
return _context70.abrupt("return", _context70.sent);
|
|
10465
10640
|
|
|
10466
10641
|
case 4:
|
|
10467
10642
|
case "end":
|
|
10468
|
-
return
|
|
10643
|
+
return _context70.stop();
|
|
10469
10644
|
}
|
|
10470
10645
|
}
|
|
10471
|
-
},
|
|
10646
|
+
}, _callee70, this);
|
|
10472
10647
|
}));
|
|
10473
10648
|
|
|
10474
|
-
function deleteChannels(
|
|
10649
|
+
function deleteChannels(_x93) {
|
|
10475
10650
|
return _deleteChannels.apply(this, arguments);
|
|
10476
10651
|
}
|
|
10477
10652
|
|
|
@@ -10489,13 +10664,13 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10489
10664
|
}, {
|
|
10490
10665
|
key: "deleteUsers",
|
|
10491
10666
|
value: function () {
|
|
10492
|
-
var _deleteUsers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10493
|
-
return _regeneratorRuntime.wrap(function
|
|
10667
|
+
var _deleteUsers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee71(user_ids, options) {
|
|
10668
|
+
return _regeneratorRuntime.wrap(function _callee71$(_context71) {
|
|
10494
10669
|
while (1) {
|
|
10495
|
-
switch (
|
|
10670
|
+
switch (_context71.prev = _context71.next) {
|
|
10496
10671
|
case 0:
|
|
10497
10672
|
if (!((options === null || options === void 0 ? void 0 : options.user) !== 'soft' && (options === null || options === void 0 ? void 0 : options.user) !== 'hard')) {
|
|
10498
|
-
|
|
10673
|
+
_context71.next = 2;
|
|
10499
10674
|
break;
|
|
10500
10675
|
}
|
|
10501
10676
|
|
|
@@ -10503,7 +10678,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10503
10678
|
|
|
10504
10679
|
case 2:
|
|
10505
10680
|
if (!(options.messages !== undefined && options.messages !== 'soft' && options.messages !== 'hard')) {
|
|
10506
|
-
|
|
10681
|
+
_context71.next = 4;
|
|
10507
10682
|
break;
|
|
10508
10683
|
}
|
|
10509
10684
|
|
|
@@ -10511,30 +10686,30 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10511
10686
|
|
|
10512
10687
|
case 4:
|
|
10513
10688
|
if (!(options.conversations !== undefined && options.conversations !== 'soft' && options.conversations !== 'hard')) {
|
|
10514
|
-
|
|
10689
|
+
_context71.next = 6;
|
|
10515
10690
|
break;
|
|
10516
10691
|
}
|
|
10517
10692
|
|
|
10518
10693
|
throw new Error('Invalid delete user options. conversations must be one of [soft hard]');
|
|
10519
10694
|
|
|
10520
10695
|
case 6:
|
|
10521
|
-
|
|
10696
|
+
_context71.next = 8;
|
|
10522
10697
|
return this.post(this.baseURL + "/users/delete", _objectSpread({
|
|
10523
10698
|
user_ids: user_ids
|
|
10524
10699
|
}, options));
|
|
10525
10700
|
|
|
10526
10701
|
case 8:
|
|
10527
|
-
return
|
|
10702
|
+
return _context71.abrupt("return", _context71.sent);
|
|
10528
10703
|
|
|
10529
10704
|
case 9:
|
|
10530
10705
|
case "end":
|
|
10531
|
-
return
|
|
10706
|
+
return _context71.stop();
|
|
10532
10707
|
}
|
|
10533
10708
|
}
|
|
10534
|
-
},
|
|
10709
|
+
}, _callee71, this);
|
|
10535
10710
|
}));
|
|
10536
10711
|
|
|
10537
|
-
function deleteUsers(
|
|
10712
|
+
function deleteUsers(_x94, _x95) {
|
|
10538
10713
|
return _deleteUsers.apply(this, arguments);
|
|
10539
10714
|
}
|
|
10540
10715
|
|
|
@@ -10555,28 +10730,28 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10555
10730
|
}, {
|
|
10556
10731
|
key: "_createImportURL",
|
|
10557
10732
|
value: function () {
|
|
10558
|
-
var _createImportURL2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10559
|
-
return _regeneratorRuntime.wrap(function
|
|
10733
|
+
var _createImportURL2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee72(filename) {
|
|
10734
|
+
return _regeneratorRuntime.wrap(function _callee72$(_context72) {
|
|
10560
10735
|
while (1) {
|
|
10561
|
-
switch (
|
|
10736
|
+
switch (_context72.prev = _context72.next) {
|
|
10562
10737
|
case 0:
|
|
10563
|
-
|
|
10738
|
+
_context72.next = 2;
|
|
10564
10739
|
return this.post(this.baseURL + "/import_urls", {
|
|
10565
10740
|
filename: filename
|
|
10566
10741
|
});
|
|
10567
10742
|
|
|
10568
10743
|
case 2:
|
|
10569
|
-
return
|
|
10744
|
+
return _context72.abrupt("return", _context72.sent);
|
|
10570
10745
|
|
|
10571
10746
|
case 3:
|
|
10572
10747
|
case "end":
|
|
10573
|
-
return
|
|
10748
|
+
return _context72.stop();
|
|
10574
10749
|
}
|
|
10575
10750
|
}
|
|
10576
|
-
},
|
|
10751
|
+
}, _callee72, this);
|
|
10577
10752
|
}));
|
|
10578
10753
|
|
|
10579
|
-
function _createImportURL(
|
|
10754
|
+
function _createImportURL(_x96) {
|
|
10580
10755
|
return _createImportURL2.apply(this, arguments);
|
|
10581
10756
|
}
|
|
10582
10757
|
|
|
@@ -10598,33 +10773,33 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10598
10773
|
}, {
|
|
10599
10774
|
key: "_createImport",
|
|
10600
10775
|
value: function () {
|
|
10601
|
-
var _createImport2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10776
|
+
var _createImport2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee73(path) {
|
|
10602
10777
|
var options,
|
|
10603
|
-
|
|
10604
|
-
return _regeneratorRuntime.wrap(function
|
|
10778
|
+
_args73 = arguments;
|
|
10779
|
+
return _regeneratorRuntime.wrap(function _callee73$(_context73) {
|
|
10605
10780
|
while (1) {
|
|
10606
|
-
switch (
|
|
10781
|
+
switch (_context73.prev = _context73.next) {
|
|
10607
10782
|
case 0:
|
|
10608
|
-
options =
|
|
10783
|
+
options = _args73.length > 1 && _args73[1] !== undefined ? _args73[1] : {
|
|
10609
10784
|
mode: 'upsert'
|
|
10610
10785
|
};
|
|
10611
|
-
|
|
10786
|
+
_context73.next = 3;
|
|
10612
10787
|
return this.post(this.baseURL + "/imports", _objectSpread({
|
|
10613
10788
|
path: path
|
|
10614
10789
|
}, options));
|
|
10615
10790
|
|
|
10616
10791
|
case 3:
|
|
10617
|
-
return
|
|
10792
|
+
return _context73.abrupt("return", _context73.sent);
|
|
10618
10793
|
|
|
10619
10794
|
case 4:
|
|
10620
10795
|
case "end":
|
|
10621
|
-
return
|
|
10796
|
+
return _context73.stop();
|
|
10622
10797
|
}
|
|
10623
10798
|
}
|
|
10624
|
-
},
|
|
10799
|
+
}, _callee73, this);
|
|
10625
10800
|
}));
|
|
10626
10801
|
|
|
10627
|
-
function _createImport(
|
|
10802
|
+
function _createImport(_x97) {
|
|
10628
10803
|
return _createImport2.apply(this, arguments);
|
|
10629
10804
|
}
|
|
10630
10805
|
|
|
@@ -10646,26 +10821,26 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10646
10821
|
}, {
|
|
10647
10822
|
key: "_getImport",
|
|
10648
10823
|
value: function () {
|
|
10649
|
-
var _getImport2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10650
|
-
return _regeneratorRuntime.wrap(function
|
|
10824
|
+
var _getImport2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee74(id) {
|
|
10825
|
+
return _regeneratorRuntime.wrap(function _callee74$(_context74) {
|
|
10651
10826
|
while (1) {
|
|
10652
|
-
switch (
|
|
10827
|
+
switch (_context74.prev = _context74.next) {
|
|
10653
10828
|
case 0:
|
|
10654
|
-
|
|
10829
|
+
_context74.next = 2;
|
|
10655
10830
|
return this.get(this.baseURL + "/imports/".concat(id));
|
|
10656
10831
|
|
|
10657
10832
|
case 2:
|
|
10658
|
-
return
|
|
10833
|
+
return _context74.abrupt("return", _context74.sent);
|
|
10659
10834
|
|
|
10660
10835
|
case 3:
|
|
10661
10836
|
case "end":
|
|
10662
|
-
return
|
|
10837
|
+
return _context74.stop();
|
|
10663
10838
|
}
|
|
10664
10839
|
}
|
|
10665
|
-
},
|
|
10840
|
+
}, _callee74, this);
|
|
10666
10841
|
}));
|
|
10667
10842
|
|
|
10668
|
-
function _getImport(
|
|
10843
|
+
function _getImport(_x98) {
|
|
10669
10844
|
return _getImport2.apply(this, arguments);
|
|
10670
10845
|
}
|
|
10671
10846
|
|
|
@@ -10687,26 +10862,26 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10687
10862
|
}, {
|
|
10688
10863
|
key: "_listImports",
|
|
10689
10864
|
value: function () {
|
|
10690
|
-
var _listImports2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10691
|
-
return _regeneratorRuntime.wrap(function
|
|
10865
|
+
var _listImports2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee75(options) {
|
|
10866
|
+
return _regeneratorRuntime.wrap(function _callee75$(_context75) {
|
|
10692
10867
|
while (1) {
|
|
10693
|
-
switch (
|
|
10868
|
+
switch (_context75.prev = _context75.next) {
|
|
10694
10869
|
case 0:
|
|
10695
|
-
|
|
10870
|
+
_context75.next = 2;
|
|
10696
10871
|
return this.get(this.baseURL + "/imports", options);
|
|
10697
10872
|
|
|
10698
10873
|
case 2:
|
|
10699
|
-
return
|
|
10874
|
+
return _context75.abrupt("return", _context75.sent);
|
|
10700
10875
|
|
|
10701
10876
|
case 3:
|
|
10702
10877
|
case "end":
|
|
10703
|
-
return
|
|
10878
|
+
return _context75.stop();
|
|
10704
10879
|
}
|
|
10705
10880
|
}
|
|
10706
|
-
},
|
|
10881
|
+
}, _callee75, this);
|
|
10707
10882
|
}));
|
|
10708
10883
|
|
|
10709
|
-
function _listImports(
|
|
10884
|
+
function _listImports(_x99) {
|
|
10710
10885
|
return _listImports2.apply(this, arguments);
|
|
10711
10886
|
}
|
|
10712
10887
|
|
|
@@ -10725,28 +10900,28 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10725
10900
|
}, {
|
|
10726
10901
|
key: "upsertPushProvider",
|
|
10727
10902
|
value: function () {
|
|
10728
|
-
var _upsertPushProvider = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10729
|
-
return _regeneratorRuntime.wrap(function
|
|
10903
|
+
var _upsertPushProvider = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee76(pushProvider) {
|
|
10904
|
+
return _regeneratorRuntime.wrap(function _callee76$(_context76) {
|
|
10730
10905
|
while (1) {
|
|
10731
|
-
switch (
|
|
10906
|
+
switch (_context76.prev = _context76.next) {
|
|
10732
10907
|
case 0:
|
|
10733
|
-
|
|
10908
|
+
_context76.next = 2;
|
|
10734
10909
|
return this.post(this.baseURL + "/push_providers", {
|
|
10735
10910
|
push_provider: pushProvider
|
|
10736
10911
|
});
|
|
10737
10912
|
|
|
10738
10913
|
case 2:
|
|
10739
|
-
return
|
|
10914
|
+
return _context76.abrupt("return", _context76.sent);
|
|
10740
10915
|
|
|
10741
10916
|
case 3:
|
|
10742
10917
|
case "end":
|
|
10743
|
-
return
|
|
10918
|
+
return _context76.stop();
|
|
10744
10919
|
}
|
|
10745
10920
|
}
|
|
10746
|
-
},
|
|
10921
|
+
}, _callee76, this);
|
|
10747
10922
|
}));
|
|
10748
10923
|
|
|
10749
|
-
function upsertPushProvider(
|
|
10924
|
+
function upsertPushProvider(_x100) {
|
|
10750
10925
|
return _upsertPushProvider.apply(this, arguments);
|
|
10751
10926
|
}
|
|
10752
10927
|
|
|
@@ -10765,28 +10940,28 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10765
10940
|
}, {
|
|
10766
10941
|
key: "deletePushProvider",
|
|
10767
10942
|
value: function () {
|
|
10768
|
-
var _deletePushProvider = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10943
|
+
var _deletePushProvider = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee77(_ref8) {
|
|
10769
10944
|
var type, name;
|
|
10770
|
-
return _regeneratorRuntime.wrap(function
|
|
10945
|
+
return _regeneratorRuntime.wrap(function _callee77$(_context77) {
|
|
10771
10946
|
while (1) {
|
|
10772
|
-
switch (
|
|
10947
|
+
switch (_context77.prev = _context77.next) {
|
|
10773
10948
|
case 0:
|
|
10774
10949
|
type = _ref8.type, name = _ref8.name;
|
|
10775
|
-
|
|
10950
|
+
_context77.next = 3;
|
|
10776
10951
|
return this.delete(this.baseURL + "/push_providers/".concat(type, "/").concat(name));
|
|
10777
10952
|
|
|
10778
10953
|
case 3:
|
|
10779
|
-
return
|
|
10954
|
+
return _context77.abrupt("return", _context77.sent);
|
|
10780
10955
|
|
|
10781
10956
|
case 4:
|
|
10782
10957
|
case "end":
|
|
10783
|
-
return
|
|
10958
|
+
return _context77.stop();
|
|
10784
10959
|
}
|
|
10785
10960
|
}
|
|
10786
|
-
},
|
|
10961
|
+
}, _callee77, this);
|
|
10787
10962
|
}));
|
|
10788
10963
|
|
|
10789
|
-
function deletePushProvider(
|
|
10964
|
+
function deletePushProvider(_x101) {
|
|
10790
10965
|
return _deletePushProvider.apply(this, arguments);
|
|
10791
10966
|
}
|
|
10792
10967
|
|
|
@@ -10803,23 +10978,23 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10803
10978
|
}, {
|
|
10804
10979
|
key: "listPushProviders",
|
|
10805
10980
|
value: function () {
|
|
10806
|
-
var _listPushProviders = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10807
|
-
return _regeneratorRuntime.wrap(function
|
|
10981
|
+
var _listPushProviders = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee78() {
|
|
10982
|
+
return _regeneratorRuntime.wrap(function _callee78$(_context78) {
|
|
10808
10983
|
while (1) {
|
|
10809
|
-
switch (
|
|
10984
|
+
switch (_context78.prev = _context78.next) {
|
|
10810
10985
|
case 0:
|
|
10811
|
-
|
|
10986
|
+
_context78.next = 2;
|
|
10812
10987
|
return this.get(this.baseURL + "/push_providers");
|
|
10813
10988
|
|
|
10814
10989
|
case 2:
|
|
10815
|
-
return
|
|
10990
|
+
return _context78.abrupt("return", _context78.sent);
|
|
10816
10991
|
|
|
10817
10992
|
case 3:
|
|
10818
10993
|
case "end":
|
|
10819
|
-
return
|
|
10994
|
+
return _context78.stop();
|
|
10820
10995
|
}
|
|
10821
10996
|
}
|
|
10822
|
-
},
|
|
10997
|
+
}, _callee78, this);
|
|
10823
10998
|
}));
|
|
10824
10999
|
|
|
10825
11000
|
function listPushProviders() {
|
|
@@ -10922,5 +11097,5 @@ var BuiltinPermissions = {
|
|
|
10922
11097
|
UseFrozenChannel: 'Send messages and reactions to frozen channels'
|
|
10923
11098
|
};
|
|
10924
11099
|
|
|
10925
|
-
export { Allow, AllowAll, AnyResource, AnyRole, BuiltinPermissions, BuiltinRoles, Channel, ChannelState, CheckSignature, ClientState, Deny, DenyAll, DevToken, EVENT_MAP, InsightMetrics, JWTServerToken, JWTUserToken, MaxPriority, MinPriority, Permission, StableWSConnection, StreamChat, TokenManager, UserFromToken, buildWsFatalInsight, buildWsSuccessAfterFailureInsight, chatCodes, decodeBase64, encodeBase64, isOwnUser, isValidEventType, logChatPromiseExecution, postInsights };
|
|
11100
|
+
export { Allow, AllowAll, AnyResource, AnyRole, BuiltinPermissions, BuiltinRoles, Channel, ChannelState, CheckSignature, ClientState, Deny, DenyAll, DevToken, EVENT_MAP, ErrorFromResponse, InsightMetrics, JWTServerToken, JWTUserToken, MaxPriority, MinPriority, Permission, StableWSConnection, StreamChat, TokenManager, UserFromToken, buildWsFatalInsight, buildWsSuccessAfterFailureInsight, chatCodes, decodeBase64, encodeBase64, isOwnUser, isValidEventType, logChatPromiseExecution, postInsights };
|
|
10926
11101
|
//# sourceMappingURL=browser.es.js.map
|