stream-chat 6.7.0 → 6.7.3

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.
@@ -720,7 +720,9 @@ var ChannelState = /*#__PURE__*/function () {
720
720
  this.threads[messageToRemove.parent_id] = threadMessages;
721
721
  isRemoved = removed;
722
722
  } else {
723
- var messageSetIndex = this.findMessageSetIndex(messageToRemove);
723
+ var _messageToRemove$mess;
724
+
725
+ var messageSetIndex = (_messageToRemove$mess = messageToRemove.messageSetIndex) !== null && _messageToRemove$mess !== void 0 ? _messageToRemove$mess : this.findMessageSetIndex(messageToRemove);
724
726
 
725
727
  if (messageSetIndex !== -1) {
726
728
  var _this$removeMessageFr3 = this.removeMessageFromArray(this.messageSets[messageSetIndex].messages, messageToRemove),
@@ -3418,6 +3420,41 @@ var Channel = /*#__PURE__*/function () {
3418
3420
 
3419
3421
  return removeShadowBan;
3420
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
+ }()
3421
3458
  /**
3422
3459
  * on - Listen to events on this channel.
3423
3460
  *
@@ -3500,7 +3537,7 @@ var Channel = /*#__PURE__*/function () {
3500
3537
  }, {
3501
3538
  key: "_handleChannelEvent",
3502
3539
  value: function _handleChannelEvent(event) {
3503
- 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;
3504
3541
 
3505
3542
  var channel = this;
3506
3543
 
@@ -3615,7 +3652,29 @@ var Channel = /*#__PURE__*/function () {
3615
3652
  break;
3616
3653
 
3617
3654
  case 'channel.truncated':
3618
- channelState.clearMessages();
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
+ channelState.pinnedMessages.forEach(function (_ref3) {
3668
+ var id = _ref3.id,
3669
+ createdAt = _ref3.created_at;
3670
+ if (truncatedAt > +createdAt) channelState.removePinnedMessage({
3671
+ id: id
3672
+ });
3673
+ });
3674
+ } else {
3675
+ channelState.clearMessages();
3676
+ }
3677
+
3619
3678
  channelState.unreadCount = 0; // system messages don't increment unread counts
3620
3679
 
3621
3680
  if (event.message) {
@@ -3645,11 +3704,11 @@ var Channel = /*#__PURE__*/function () {
3645
3704
 
3646
3705
  case 'channel.updated':
3647
3706
  if (event.channel) {
3648
- var _event$channel$hidden, _event$channel, _channel$data, _event$channel$own_ca, _event$channel2, _channel$data2;
3707
+ var _event$channel$hidden, _event$channel2, _channel$data, _event$channel$own_ca, _event$channel3, _channel$data2;
3649
3708
 
3650
3709
  channel.data = _objectSpread$5(_objectSpread$5({}, event.channel), {}, {
3651
- 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,
3652
- 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
3710
+ 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,
3711
+ 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
3653
3712
  });
3654
3713
  }
3655
3714
 
@@ -9002,6 +9061,45 @@ var StreamChat = /*#__PURE__*/function () {
9002
9061
 
9003
9062
  return unflagUser;
9004
9063
  }()
9064
+ /**
9065
+ * getCallToken - retrieves the auth token needed to join a call
9066
+ *
9067
+ * @param {string} callID
9068
+ * @param {object} options
9069
+ * @returns {Promise<GetCallTokenResponse>}
9070
+ */
9071
+
9072
+ }, {
9073
+ key: "getCallToken",
9074
+ value: function () {
9075
+ var _getCallToken = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee42(callID) {
9076
+ var options,
9077
+ _args42 = arguments;
9078
+ return _regeneratorRuntime.wrap(function _callee42$(_context42) {
9079
+ while (1) {
9080
+ switch (_context42.prev = _context42.next) {
9081
+ case 0:
9082
+ options = _args42.length > 1 && _args42[1] !== undefined ? _args42[1] : {};
9083
+ _context42.next = 3;
9084
+ return this.post(this.baseURL + "/calls/".concat(callID), _objectSpread({}, options));
9085
+
9086
+ case 3:
9087
+ return _context42.abrupt("return", _context42.sent);
9088
+
9089
+ case 4:
9090
+ case "end":
9091
+ return _context42.stop();
9092
+ }
9093
+ }
9094
+ }, _callee42, this);
9095
+ }));
9096
+
9097
+ function getCallToken(_x55) {
9098
+ return _getCallToken.apply(this, arguments);
9099
+ }
9100
+
9101
+ return getCallToken;
9102
+ }()
9005
9103
  /**
9006
9104
  * _queryFlags - Query flags.
9007
9105
  *
@@ -9019,30 +9117,30 @@ var StreamChat = /*#__PURE__*/function () {
9019
9117
  }, {
9020
9118
  key: "_queryFlags",
9021
9119
  value: function () {
9022
- var _queryFlags2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee42() {
9120
+ var _queryFlags2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee43() {
9023
9121
  var filterConditions,
9024
9122
  options,
9025
- _args42 = arguments;
9026
- return _regeneratorRuntime.wrap(function _callee42$(_context42) {
9123
+ _args43 = arguments;
9124
+ return _regeneratorRuntime.wrap(function _callee43$(_context43) {
9027
9125
  while (1) {
9028
- switch (_context42.prev = _context42.next) {
9126
+ switch (_context43.prev = _context43.next) {
9029
9127
  case 0:
9030
- filterConditions = _args42.length > 0 && _args42[0] !== undefined ? _args42[0] : {};
9031
- options = _args42.length > 1 && _args42[1] !== undefined ? _args42[1] : {};
9032
- _context42.next = 4;
9128
+ filterConditions = _args43.length > 0 && _args43[0] !== undefined ? _args43[0] : {};
9129
+ options = _args43.length > 1 && _args43[1] !== undefined ? _args43[1] : {};
9130
+ _context43.next = 4;
9033
9131
  return this.post(this.baseURL + '/moderation/flags', _objectSpread({
9034
9132
  filter_conditions: filterConditions
9035
9133
  }, options));
9036
9134
 
9037
9135
  case 4:
9038
- return _context42.abrupt("return", _context42.sent);
9136
+ return _context43.abrupt("return", _context43.sent);
9039
9137
 
9040
9138
  case 5:
9041
9139
  case "end":
9042
- return _context42.stop();
9140
+ return _context43.stop();
9043
9141
  }
9044
9142
  }
9045
- }, _callee42, this);
9143
+ }, _callee43, this);
9046
9144
  }));
9047
9145
 
9048
9146
  function _queryFlags() {
@@ -9068,30 +9166,30 @@ var StreamChat = /*#__PURE__*/function () {
9068
9166
  }, {
9069
9167
  key: "_queryFlagReports",
9070
9168
  value: function () {
9071
- var _queryFlagReports2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee43() {
9169
+ var _queryFlagReports2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee44() {
9072
9170
  var filterConditions,
9073
9171
  options,
9074
- _args43 = arguments;
9075
- return _regeneratorRuntime.wrap(function _callee43$(_context43) {
9172
+ _args44 = arguments;
9173
+ return _regeneratorRuntime.wrap(function _callee44$(_context44) {
9076
9174
  while (1) {
9077
- switch (_context43.prev = _context43.next) {
9175
+ switch (_context44.prev = _context44.next) {
9078
9176
  case 0:
9079
- filterConditions = _args43.length > 0 && _args43[0] !== undefined ? _args43[0] : {};
9080
- options = _args43.length > 1 && _args43[1] !== undefined ? _args43[1] : {};
9081
- _context43.next = 4;
9177
+ filterConditions = _args44.length > 0 && _args44[0] !== undefined ? _args44[0] : {};
9178
+ options = _args44.length > 1 && _args44[1] !== undefined ? _args44[1] : {};
9179
+ _context44.next = 4;
9082
9180
  return this.post(this.baseURL + '/moderation/reports', _objectSpread({
9083
9181
  filter_conditions: filterConditions
9084
9182
  }, options));
9085
9183
 
9086
9184
  case 4:
9087
- return _context43.abrupt("return", _context43.sent);
9185
+ return _context44.abrupt("return", _context44.sent);
9088
9186
 
9089
9187
  case 5:
9090
9188
  case "end":
9091
- return _context43.stop();
9189
+ return _context44.stop();
9092
9190
  }
9093
9191
  }
9094
- }, _callee43, this);
9192
+ }, _callee44, this);
9095
9193
  }));
9096
9194
 
9097
9195
  function _queryFlagReports() {
@@ -9118,31 +9216,31 @@ var StreamChat = /*#__PURE__*/function () {
9118
9216
  }, {
9119
9217
  key: "_reviewFlagReport",
9120
9218
  value: function () {
9121
- var _reviewFlagReport2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee44(id, reviewResult) {
9219
+ var _reviewFlagReport2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee45(id, reviewResult) {
9122
9220
  var options,
9123
- _args44 = arguments;
9124
- return _regeneratorRuntime.wrap(function _callee44$(_context44) {
9221
+ _args45 = arguments;
9222
+ return _regeneratorRuntime.wrap(function _callee45$(_context45) {
9125
9223
  while (1) {
9126
- switch (_context44.prev = _context44.next) {
9224
+ switch (_context45.prev = _context45.next) {
9127
9225
  case 0:
9128
- options = _args44.length > 2 && _args44[2] !== undefined ? _args44[2] : {};
9129
- _context44.next = 3;
9226
+ options = _args45.length > 2 && _args45[2] !== undefined ? _args45[2] : {};
9227
+ _context45.next = 3;
9130
9228
  return this.patch(this.baseURL + "/moderation/reports/".concat(id), _objectSpread({
9131
9229
  review_result: reviewResult
9132
9230
  }, options));
9133
9231
 
9134
9232
  case 3:
9135
- return _context44.abrupt("return", _context44.sent);
9233
+ return _context45.abrupt("return", _context45.sent);
9136
9234
 
9137
9235
  case 4:
9138
9236
  case "end":
9139
- return _context44.stop();
9237
+ return _context45.stop();
9140
9238
  }
9141
9239
  }
9142
- }, _callee44, this);
9240
+ }, _callee45, this);
9143
9241
  }));
9144
9242
 
9145
- function _reviewFlagReport(_x55, _x56) {
9243
+ function _reviewFlagReport(_x56, _x57) {
9146
9244
  return _reviewFlagReport2.apply(this, arguments);
9147
9245
  }
9148
9246
 
@@ -9164,31 +9262,31 @@ var StreamChat = /*#__PURE__*/function () {
9164
9262
  }, {
9165
9263
  key: "_unblockMessage",
9166
9264
  value: function () {
9167
- var _unblockMessage2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee45(targetMessageID) {
9265
+ var _unblockMessage2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee46(targetMessageID) {
9168
9266
  var options,
9169
- _args45 = arguments;
9170
- return _regeneratorRuntime.wrap(function _callee45$(_context45) {
9267
+ _args46 = arguments;
9268
+ return _regeneratorRuntime.wrap(function _callee46$(_context46) {
9171
9269
  while (1) {
9172
- switch (_context45.prev = _context45.next) {
9270
+ switch (_context46.prev = _context46.next) {
9173
9271
  case 0:
9174
- options = _args45.length > 1 && _args45[1] !== undefined ? _args45[1] : {};
9175
- _context45.next = 3;
9272
+ options = _args46.length > 1 && _args46[1] !== undefined ? _args46[1] : {};
9273
+ _context46.next = 3;
9176
9274
  return this.post(this.baseURL + '/moderation/unblock_message', _objectSpread({
9177
9275
  target_message_id: targetMessageID
9178
9276
  }, options));
9179
9277
 
9180
9278
  case 3:
9181
- return _context45.abrupt("return", _context45.sent);
9279
+ return _context46.abrupt("return", _context46.sent);
9182
9280
 
9183
9281
  case 4:
9184
9282
  case "end":
9185
- return _context45.stop();
9283
+ return _context46.stop();
9186
9284
  }
9187
9285
  }
9188
- }, _callee45, this);
9286
+ }, _callee46, this);
9189
9287
  }));
9190
9288
 
9191
- function _unblockMessage(_x57) {
9289
+ function _unblockMessage(_x58) {
9192
9290
  return _unblockMessage2.apply(this, arguments);
9193
9291
  }
9194
9292
 
@@ -9215,23 +9313,23 @@ var StreamChat = /*#__PURE__*/function () {
9215
9313
  * @return {Promise<APIResponse>}
9216
9314
  */
9217
9315
  function () {
9218
- var _markChannelsRead = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee46() {
9316
+ var _markChannelsRead = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee47() {
9219
9317
  var data,
9220
- _args46 = arguments;
9221
- return _regeneratorRuntime.wrap(function _callee46$(_context46) {
9318
+ _args47 = arguments;
9319
+ return _regeneratorRuntime.wrap(function _callee47$(_context47) {
9222
9320
  while (1) {
9223
- switch (_context46.prev = _context46.next) {
9321
+ switch (_context47.prev = _context47.next) {
9224
9322
  case 0:
9225
- data = _args46.length > 0 && _args46[0] !== undefined ? _args46[0] : {};
9226
- _context46.next = 3;
9323
+ data = _args47.length > 0 && _args47[0] !== undefined ? _args47[0] : {};
9324
+ _context47.next = 3;
9227
9325
  return this.post(this.baseURL + '/channels/read', _objectSpread({}, data));
9228
9326
 
9229
9327
  case 3:
9230
9328
  case "end":
9231
- return _context46.stop();
9329
+ return _context47.stop();
9232
9330
  }
9233
9331
  }
9234
- }, _callee46, this);
9332
+ }, _callee47, this);
9235
9333
  }));
9236
9334
 
9237
9335
  function markChannelsRead() {
@@ -9306,28 +9404,28 @@ var StreamChat = /*#__PURE__*/function () {
9306
9404
  }, {
9307
9405
  key: "translateMessage",
9308
9406
  value: function () {
9309
- var _translateMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee47(messageId, language) {
9310
- return _regeneratorRuntime.wrap(function _callee47$(_context47) {
9407
+ var _translateMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee48(messageId, language) {
9408
+ return _regeneratorRuntime.wrap(function _callee48$(_context48) {
9311
9409
  while (1) {
9312
- switch (_context47.prev = _context47.next) {
9410
+ switch (_context48.prev = _context48.next) {
9313
9411
  case 0:
9314
- _context47.next = 2;
9412
+ _context48.next = 2;
9315
9413
  return this.post(this.baseURL + "/messages/".concat(messageId, "/translate"), {
9316
9414
  language: language
9317
9415
  });
9318
9416
 
9319
9417
  case 2:
9320
- return _context47.abrupt("return", _context47.sent);
9418
+ return _context48.abrupt("return", _context48.sent);
9321
9419
 
9322
9420
  case 3:
9323
9421
  case "end":
9324
- return _context47.stop();
9422
+ return _context48.stop();
9325
9423
  }
9326
9424
  }
9327
- }, _callee47, this);
9425
+ }, _callee48, this);
9328
9426
  }));
9329
9427
 
9330
- function translateMessage(_x58, _x59) {
9428
+ function translateMessage(_x59, _x60) {
9331
9429
  return _translateMessage.apply(this, arguments);
9332
9430
  }
9333
9431
 
@@ -9429,14 +9527,14 @@ var StreamChat = /*#__PURE__*/function () {
9429
9527
  }, {
9430
9528
  key: "updateMessage",
9431
9529
  value: function () {
9432
- var _updateMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee48(message, userId, options) {
9530
+ var _updateMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee49(message, userId, options) {
9433
9531
  var clonedMessage, reservedMessageFields;
9434
- return _regeneratorRuntime.wrap(function _callee48$(_context48) {
9532
+ return _regeneratorRuntime.wrap(function _callee49$(_context49) {
9435
9533
  while (1) {
9436
- switch (_context48.prev = _context48.next) {
9534
+ switch (_context49.prev = _context49.next) {
9437
9535
  case 0:
9438
9536
  if (message.id) {
9439
- _context48.next = 2;
9537
+ _context49.next = 2;
9440
9538
  break;
9441
9539
  }
9442
9540
 
@@ -9473,23 +9571,23 @@ var StreamChat = /*#__PURE__*/function () {
9473
9571
  });
9474
9572
  }
9475
9573
 
9476
- _context48.next = 10;
9574
+ _context49.next = 10;
9477
9575
  return this.post(this.baseURL + "/messages/".concat(message.id), _objectSpread({
9478
9576
  message: clonedMessage
9479
9577
  }, options));
9480
9578
 
9481
9579
  case 10:
9482
- return _context48.abrupt("return", _context48.sent);
9580
+ return _context49.abrupt("return", _context49.sent);
9483
9581
 
9484
9582
  case 11:
9485
9583
  case "end":
9486
- return _context48.stop();
9584
+ return _context49.stop();
9487
9585
  }
9488
9586
  }
9489
- }, _callee48, this);
9587
+ }, _callee49, this);
9490
9588
  }));
9491
9589
 
9492
- function updateMessage(_x60, _x61, _x62) {
9590
+ function updateMessage(_x61, _x62, _x63) {
9493
9591
  return _updateMessage.apply(this, arguments);
9494
9592
  }
9495
9593
 
@@ -9512,14 +9610,14 @@ var StreamChat = /*#__PURE__*/function () {
9512
9610
  }, {
9513
9611
  key: "partialUpdateMessage",
9514
9612
  value: function () {
9515
- var _partialUpdateMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee49(id, partialMessageObject, userId, options) {
9613
+ var _partialUpdateMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee50(id, partialMessageObject, userId, options) {
9516
9614
  var user;
9517
- return _regeneratorRuntime.wrap(function _callee49$(_context49) {
9615
+ return _regeneratorRuntime.wrap(function _callee50$(_context50) {
9518
9616
  while (1) {
9519
- switch (_context49.prev = _context49.next) {
9617
+ switch (_context50.prev = _context50.next) {
9520
9618
  case 0:
9521
9619
  if (id) {
9522
- _context49.next = 2;
9620
+ _context50.next = 2;
9523
9621
  break;
9524
9622
  }
9525
9623
 
@@ -9534,23 +9632,23 @@ var StreamChat = /*#__PURE__*/function () {
9534
9632
  };
9535
9633
  }
9536
9634
 
9537
- _context49.next = 6;
9635
+ _context50.next = 6;
9538
9636
  return this.put(this.baseURL + "/messages/".concat(id), _objectSpread(_objectSpread(_objectSpread({}, partialMessageObject), options), {}, {
9539
9637
  user: user
9540
9638
  }));
9541
9639
 
9542
9640
  case 6:
9543
- return _context49.abrupt("return", _context49.sent);
9641
+ return _context50.abrupt("return", _context50.sent);
9544
9642
 
9545
9643
  case 7:
9546
9644
  case "end":
9547
- return _context49.stop();
9645
+ return _context50.stop();
9548
9646
  }
9549
9647
  }
9550
- }, _callee49, this);
9648
+ }, _callee50, this);
9551
9649
  }));
9552
9650
 
9553
- function partialUpdateMessage(_x63, _x64, _x65, _x66) {
9651
+ function partialUpdateMessage(_x64, _x65, _x66, _x67) {
9554
9652
  return _partialUpdateMessage.apply(this, arguments);
9555
9653
  }
9556
9654
 
@@ -9559,11 +9657,11 @@ var StreamChat = /*#__PURE__*/function () {
9559
9657
  }, {
9560
9658
  key: "deleteMessage",
9561
9659
  value: function () {
9562
- var _deleteMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee50(messageID, hardDelete) {
9660
+ var _deleteMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee51(messageID, hardDelete) {
9563
9661
  var params;
9564
- return _regeneratorRuntime.wrap(function _callee50$(_context50) {
9662
+ return _regeneratorRuntime.wrap(function _callee51$(_context51) {
9565
9663
  while (1) {
9566
- switch (_context50.prev = _context50.next) {
9664
+ switch (_context51.prev = _context51.next) {
9567
9665
  case 0:
9568
9666
  params = {};
9569
9667
 
@@ -9573,21 +9671,21 @@ var StreamChat = /*#__PURE__*/function () {
9573
9671
  };
9574
9672
  }
9575
9673
 
9576
- _context50.next = 4;
9674
+ _context51.next = 4;
9577
9675
  return this.delete(this.baseURL + "/messages/".concat(messageID), params);
9578
9676
 
9579
9677
  case 4:
9580
- return _context50.abrupt("return", _context50.sent);
9678
+ return _context51.abrupt("return", _context51.sent);
9581
9679
 
9582
9680
  case 5:
9583
9681
  case "end":
9584
- return _context50.stop();
9682
+ return _context51.stop();
9585
9683
  }
9586
9684
  }
9587
- }, _callee50, this);
9685
+ }, _callee51, this);
9588
9686
  }));
9589
9687
 
9590
- function deleteMessage(_x67, _x68) {
9688
+ function deleteMessage(_x68, _x69) {
9591
9689
  return _deleteMessage.apply(this, arguments);
9592
9690
  }
9593
9691
 
@@ -9596,26 +9694,26 @@ var StreamChat = /*#__PURE__*/function () {
9596
9694
  }, {
9597
9695
  key: "getMessage",
9598
9696
  value: function () {
9599
- var _getMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee51(messageID) {
9600
- return _regeneratorRuntime.wrap(function _callee51$(_context51) {
9697
+ var _getMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee52(messageID) {
9698
+ return _regeneratorRuntime.wrap(function _callee52$(_context52) {
9601
9699
  while (1) {
9602
- switch (_context51.prev = _context51.next) {
9700
+ switch (_context52.prev = _context52.next) {
9603
9701
  case 0:
9604
- _context51.next = 2;
9702
+ _context52.next = 2;
9605
9703
  return this.get(this.baseURL + "/messages/".concat(messageID));
9606
9704
 
9607
9705
  case 2:
9608
- return _context51.abrupt("return", _context51.sent);
9706
+ return _context52.abrupt("return", _context52.sent);
9609
9707
 
9610
9708
  case 3:
9611
9709
  case "end":
9612
- return _context51.stop();
9710
+ return _context52.stop();
9613
9711
  }
9614
9712
  }
9615
- }, _callee51, this);
9713
+ }, _callee52, this);
9616
9714
  }));
9617
9715
 
9618
- function getMessage(_x69) {
9716
+ function getMessage(_x70) {
9619
9717
  return _getMessage.apply(this, arguments);
9620
9718
  }
9621
9719
 
@@ -9624,7 +9722,7 @@ var StreamChat = /*#__PURE__*/function () {
9624
9722
  }, {
9625
9723
  key: "getUserAgent",
9626
9724
  value: function getUserAgent() {
9627
- return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "6.7.0");
9725
+ return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "6.7.3");
9628
9726
  }
9629
9727
  }, {
9630
9728
  key: "setUserAgent",
@@ -9819,28 +9917,28 @@ var StreamChat = /*#__PURE__*/function () {
9819
9917
  }, {
9820
9918
  key: "sendUserCustomEvent",
9821
9919
  value: function () {
9822
- var _sendUserCustomEvent = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee52(targetUserID, event) {
9823
- return _regeneratorRuntime.wrap(function _callee52$(_context52) {
9920
+ var _sendUserCustomEvent = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee53(targetUserID, event) {
9921
+ return _regeneratorRuntime.wrap(function _callee53$(_context53) {
9824
9922
  while (1) {
9825
- switch (_context52.prev = _context52.next) {
9923
+ switch (_context53.prev = _context53.next) {
9826
9924
  case 0:
9827
- _context52.next = 2;
9925
+ _context53.next = 2;
9828
9926
  return this.post("".concat(this.baseURL, "/users/").concat(targetUserID, "/event"), {
9829
9927
  event: event
9830
9928
  });
9831
9929
 
9832
9930
  case 2:
9833
- return _context52.abrupt("return", _context52.sent);
9931
+ return _context53.abrupt("return", _context53.sent);
9834
9932
 
9835
9933
  case 3:
9836
9934
  case "end":
9837
- return _context52.stop();
9935
+ return _context53.stop();
9838
9936
  }
9839
9937
  }
9840
- }, _callee52, this);
9938
+ }, _callee53, this);
9841
9939
  }));
9842
9940
 
9843
- function sendUserCustomEvent(_x70, _x71) {
9941
+ function sendUserCustomEvent(_x71, _x72) {
9844
9942
  return _sendUserCustomEvent.apply(this, arguments);
9845
9943
  }
9846
9944
 
@@ -9908,32 +10006,32 @@ var StreamChat = /*#__PURE__*/function () {
9908
10006
  }, {
9909
10007
  key: "createSegment",
9910
10008
  value: function () {
9911
- var _createSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee53(params) {
10009
+ var _createSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee54(params) {
9912
10010
  var _yield$this$post, segment;
9913
10011
 
9914
- return _regeneratorRuntime.wrap(function _callee53$(_context53) {
10012
+ return _regeneratorRuntime.wrap(function _callee54$(_context54) {
9915
10013
  while (1) {
9916
- switch (_context53.prev = _context53.next) {
10014
+ switch (_context54.prev = _context54.next) {
9917
10015
  case 0:
9918
- _context53.next = 2;
10016
+ _context54.next = 2;
9919
10017
  return this.post(this.baseURL + "/segments", {
9920
10018
  segment: params
9921
10019
  });
9922
10020
 
9923
10021
  case 2:
9924
- _yield$this$post = _context53.sent;
10022
+ _yield$this$post = _context54.sent;
9925
10023
  segment = _yield$this$post.segment;
9926
- return _context53.abrupt("return", segment);
10024
+ return _context54.abrupt("return", segment);
9927
10025
 
9928
10026
  case 5:
9929
10027
  case "end":
9930
- return _context53.stop();
10028
+ return _context54.stop();
9931
10029
  }
9932
10030
  }
9933
- }, _callee53, this);
10031
+ }, _callee54, this);
9934
10032
  }));
9935
10033
 
9936
- function createSegment(_x72) {
10034
+ function createSegment(_x73) {
9937
10035
  return _createSegment.apply(this, arguments);
9938
10036
  }
9939
10037
 
@@ -9950,30 +10048,30 @@ var StreamChat = /*#__PURE__*/function () {
9950
10048
  }, {
9951
10049
  key: "getSegment",
9952
10050
  value: function () {
9953
- var _getSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee54(id) {
10051
+ var _getSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee55(id) {
9954
10052
  var _yield$this$get, segment;
9955
10053
 
9956
- return _regeneratorRuntime.wrap(function _callee54$(_context54) {
10054
+ return _regeneratorRuntime.wrap(function _callee55$(_context55) {
9957
10055
  while (1) {
9958
- switch (_context54.prev = _context54.next) {
10056
+ switch (_context55.prev = _context55.next) {
9959
10057
  case 0:
9960
- _context54.next = 2;
10058
+ _context55.next = 2;
9961
10059
  return this.get(this.baseURL + "/segments/".concat(id));
9962
10060
 
9963
10061
  case 2:
9964
- _yield$this$get = _context54.sent;
10062
+ _yield$this$get = _context55.sent;
9965
10063
  segment = _yield$this$get.segment;
9966
- return _context54.abrupt("return", segment);
10064
+ return _context55.abrupt("return", segment);
9967
10065
 
9968
10066
  case 5:
9969
10067
  case "end":
9970
- return _context54.stop();
10068
+ return _context55.stop();
9971
10069
  }
9972
10070
  }
9973
- }, _callee54, this);
10071
+ }, _callee55, this);
9974
10072
  }));
9975
10073
 
9976
- function getSegment(_x73) {
10074
+ function getSegment(_x74) {
9977
10075
  return _getSegment.apply(this, arguments);
9978
10076
  }
9979
10077
 
@@ -9989,30 +10087,30 @@ var StreamChat = /*#__PURE__*/function () {
9989
10087
  }, {
9990
10088
  key: "listSegments",
9991
10089
  value: function () {
9992
- var _listSegments = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee55(options) {
10090
+ var _listSegments = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee56(options) {
9993
10091
  var _yield$this$get2, segments;
9994
10092
 
9995
- return _regeneratorRuntime.wrap(function _callee55$(_context55) {
10093
+ return _regeneratorRuntime.wrap(function _callee56$(_context56) {
9996
10094
  while (1) {
9997
- switch (_context55.prev = _context55.next) {
10095
+ switch (_context56.prev = _context56.next) {
9998
10096
  case 0:
9999
- _context55.next = 2;
10097
+ _context56.next = 2;
10000
10098
  return this.get(this.baseURL + "/segments", options);
10001
10099
 
10002
10100
  case 2:
10003
- _yield$this$get2 = _context55.sent;
10101
+ _yield$this$get2 = _context56.sent;
10004
10102
  segments = _yield$this$get2.segments;
10005
- return _context55.abrupt("return", segments);
10103
+ return _context56.abrupt("return", segments);
10006
10104
 
10007
10105
  case 5:
10008
10106
  case "end":
10009
- return _context55.stop();
10107
+ return _context56.stop();
10010
10108
  }
10011
10109
  }
10012
- }, _callee55, this);
10110
+ }, _callee56, this);
10013
10111
  }));
10014
10112
 
10015
- function listSegments(_x74) {
10113
+ function listSegments(_x75) {
10016
10114
  return _listSegments.apply(this, arguments);
10017
10115
  }
10018
10116
 
@@ -10030,32 +10128,32 @@ var StreamChat = /*#__PURE__*/function () {
10030
10128
  }, {
10031
10129
  key: "updateSegment",
10032
10130
  value: function () {
10033
- var _updateSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee56(id, params) {
10131
+ var _updateSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee57(id, params) {
10034
10132
  var _yield$this$put, segment;
10035
10133
 
10036
- return _regeneratorRuntime.wrap(function _callee56$(_context56) {
10134
+ return _regeneratorRuntime.wrap(function _callee57$(_context57) {
10037
10135
  while (1) {
10038
- switch (_context56.prev = _context56.next) {
10136
+ switch (_context57.prev = _context57.next) {
10039
10137
  case 0:
10040
- _context56.next = 2;
10138
+ _context57.next = 2;
10041
10139
  return this.put(this.baseURL + "/segments/".concat(id), {
10042
10140
  segment: params
10043
10141
  });
10044
10142
 
10045
10143
  case 2:
10046
- _yield$this$put = _context56.sent;
10144
+ _yield$this$put = _context57.sent;
10047
10145
  segment = _yield$this$put.segment;
10048
- return _context56.abrupt("return", segment);
10146
+ return _context57.abrupt("return", segment);
10049
10147
 
10050
10148
  case 5:
10051
10149
  case "end":
10052
- return _context56.stop();
10150
+ return _context57.stop();
10053
10151
  }
10054
10152
  }
10055
- }, _callee56, this);
10153
+ }, _callee57, this);
10056
10154
  }));
10057
10155
 
10058
- function updateSegment(_x75, _x76) {
10156
+ function updateSegment(_x76, _x77) {
10059
10157
  return _updateSegment.apply(this, arguments);
10060
10158
  }
10061
10159
 
@@ -10072,22 +10170,22 @@ var StreamChat = /*#__PURE__*/function () {
10072
10170
  }, {
10073
10171
  key: "deleteSegment",
10074
10172
  value: function () {
10075
- var _deleteSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee57(id) {
10076
- return _regeneratorRuntime.wrap(function _callee57$(_context57) {
10173
+ var _deleteSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee58(id) {
10174
+ return _regeneratorRuntime.wrap(function _callee58$(_context58) {
10077
10175
  while (1) {
10078
- switch (_context57.prev = _context57.next) {
10176
+ switch (_context58.prev = _context58.next) {
10079
10177
  case 0:
10080
- return _context57.abrupt("return", this.delete(this.baseURL + "/segments/".concat(id)));
10178
+ return _context58.abrupt("return", this.delete(this.baseURL + "/segments/".concat(id)));
10081
10179
 
10082
10180
  case 1:
10083
10181
  case "end":
10084
- return _context57.stop();
10182
+ return _context58.stop();
10085
10183
  }
10086
10184
  }
10087
- }, _callee57, this);
10185
+ }, _callee58, this);
10088
10186
  }));
10089
10187
 
10090
- function deleteSegment(_x77) {
10188
+ function deleteSegment(_x78) {
10091
10189
  return _deleteSegment.apply(this, arguments);
10092
10190
  }
10093
10191
 
@@ -10104,32 +10202,32 @@ var StreamChat = /*#__PURE__*/function () {
10104
10202
  }, {
10105
10203
  key: "createCampaign",
10106
10204
  value: function () {
10107
- var _createCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee58(params) {
10205
+ var _createCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee59(params) {
10108
10206
  var _yield$this$post2, campaign;
10109
10207
 
10110
- return _regeneratorRuntime.wrap(function _callee58$(_context58) {
10208
+ return _regeneratorRuntime.wrap(function _callee59$(_context59) {
10111
10209
  while (1) {
10112
- switch (_context58.prev = _context58.next) {
10210
+ switch (_context59.prev = _context59.next) {
10113
10211
  case 0:
10114
- _context58.next = 2;
10212
+ _context59.next = 2;
10115
10213
  return this.post(this.baseURL + "/campaigns", {
10116
10214
  campaign: params
10117
10215
  });
10118
10216
 
10119
10217
  case 2:
10120
- _yield$this$post2 = _context58.sent;
10218
+ _yield$this$post2 = _context59.sent;
10121
10219
  campaign = _yield$this$post2.campaign;
10122
- return _context58.abrupt("return", campaign);
10220
+ return _context59.abrupt("return", campaign);
10123
10221
 
10124
10222
  case 5:
10125
10223
  case "end":
10126
- return _context58.stop();
10224
+ return _context59.stop();
10127
10225
  }
10128
10226
  }
10129
- }, _callee58, this);
10227
+ }, _callee59, this);
10130
10228
  }));
10131
10229
 
10132
- function createCampaign(_x78) {
10230
+ function createCampaign(_x79) {
10133
10231
  return _createCampaign.apply(this, arguments);
10134
10232
  }
10135
10233
 
@@ -10146,30 +10244,30 @@ var StreamChat = /*#__PURE__*/function () {
10146
10244
  }, {
10147
10245
  key: "getCampaign",
10148
10246
  value: function () {
10149
- var _getCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee59(id) {
10247
+ var _getCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee60(id) {
10150
10248
  var _yield$this$get3, campaign;
10151
10249
 
10152
- return _regeneratorRuntime.wrap(function _callee59$(_context59) {
10250
+ return _regeneratorRuntime.wrap(function _callee60$(_context60) {
10153
10251
  while (1) {
10154
- switch (_context59.prev = _context59.next) {
10252
+ switch (_context60.prev = _context60.next) {
10155
10253
  case 0:
10156
- _context59.next = 2;
10254
+ _context60.next = 2;
10157
10255
  return this.get(this.baseURL + "/campaigns/".concat(id));
10158
10256
 
10159
10257
  case 2:
10160
- _yield$this$get3 = _context59.sent;
10258
+ _yield$this$get3 = _context60.sent;
10161
10259
  campaign = _yield$this$get3.campaign;
10162
- return _context59.abrupt("return", campaign);
10260
+ return _context60.abrupt("return", campaign);
10163
10261
 
10164
10262
  case 5:
10165
10263
  case "end":
10166
- return _context59.stop();
10264
+ return _context60.stop();
10167
10265
  }
10168
10266
  }
10169
- }, _callee59, this);
10267
+ }, _callee60, this);
10170
10268
  }));
10171
10269
 
10172
- function getCampaign(_x79) {
10270
+ function getCampaign(_x80) {
10173
10271
  return _getCampaign.apply(this, arguments);
10174
10272
  }
10175
10273
 
@@ -10185,30 +10283,30 @@ var StreamChat = /*#__PURE__*/function () {
10185
10283
  }, {
10186
10284
  key: "listCampaigns",
10187
10285
  value: function () {
10188
- var _listCampaigns = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee60(options) {
10286
+ var _listCampaigns = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee61(options) {
10189
10287
  var _yield$this$get4, campaigns;
10190
10288
 
10191
- return _regeneratorRuntime.wrap(function _callee60$(_context60) {
10289
+ return _regeneratorRuntime.wrap(function _callee61$(_context61) {
10192
10290
  while (1) {
10193
- switch (_context60.prev = _context60.next) {
10291
+ switch (_context61.prev = _context61.next) {
10194
10292
  case 0:
10195
- _context60.next = 2;
10293
+ _context61.next = 2;
10196
10294
  return this.get(this.baseURL + "/campaigns", options);
10197
10295
 
10198
10296
  case 2:
10199
- _yield$this$get4 = _context60.sent;
10297
+ _yield$this$get4 = _context61.sent;
10200
10298
  campaigns = _yield$this$get4.campaigns;
10201
- return _context60.abrupt("return", campaigns);
10299
+ return _context61.abrupt("return", campaigns);
10202
10300
 
10203
10301
  case 5:
10204
10302
  case "end":
10205
- return _context60.stop();
10303
+ return _context61.stop();
10206
10304
  }
10207
10305
  }
10208
- }, _callee60, this);
10306
+ }, _callee61, this);
10209
10307
  }));
10210
10308
 
10211
- function listCampaigns(_x80) {
10309
+ function listCampaigns(_x81) {
10212
10310
  return _listCampaigns.apply(this, arguments);
10213
10311
  }
10214
10312
 
@@ -10226,32 +10324,32 @@ var StreamChat = /*#__PURE__*/function () {
10226
10324
  }, {
10227
10325
  key: "updateCampaign",
10228
10326
  value: function () {
10229
- var _updateCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee61(id, params) {
10327
+ var _updateCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee62(id, params) {
10230
10328
  var _yield$this$put2, campaign;
10231
10329
 
10232
- return _regeneratorRuntime.wrap(function _callee61$(_context61) {
10330
+ return _regeneratorRuntime.wrap(function _callee62$(_context62) {
10233
10331
  while (1) {
10234
- switch (_context61.prev = _context61.next) {
10332
+ switch (_context62.prev = _context62.next) {
10235
10333
  case 0:
10236
- _context61.next = 2;
10334
+ _context62.next = 2;
10237
10335
  return this.put(this.baseURL + "/campaigns/".concat(id), {
10238
10336
  campaign: params
10239
10337
  });
10240
10338
 
10241
10339
  case 2:
10242
- _yield$this$put2 = _context61.sent;
10340
+ _yield$this$put2 = _context62.sent;
10243
10341
  campaign = _yield$this$put2.campaign;
10244
- return _context61.abrupt("return", campaign);
10342
+ return _context62.abrupt("return", campaign);
10245
10343
 
10246
10344
  case 5:
10247
10345
  case "end":
10248
- return _context61.stop();
10346
+ return _context62.stop();
10249
10347
  }
10250
10348
  }
10251
- }, _callee61, this);
10349
+ }, _callee62, this);
10252
10350
  }));
10253
10351
 
10254
- function updateCampaign(_x81, _x82) {
10352
+ function updateCampaign(_x82, _x83) {
10255
10353
  return _updateCampaign.apply(this, arguments);
10256
10354
  }
10257
10355
 
@@ -10268,22 +10366,22 @@ var StreamChat = /*#__PURE__*/function () {
10268
10366
  }, {
10269
10367
  key: "deleteCampaign",
10270
10368
  value: function () {
10271
- var _deleteCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee62(id) {
10272
- return _regeneratorRuntime.wrap(function _callee62$(_context62) {
10369
+ var _deleteCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee63(id) {
10370
+ return _regeneratorRuntime.wrap(function _callee63$(_context63) {
10273
10371
  while (1) {
10274
- switch (_context62.prev = _context62.next) {
10372
+ switch (_context63.prev = _context63.next) {
10275
10373
  case 0:
10276
- return _context62.abrupt("return", this.delete(this.baseURL + "/campaigns/".concat(id)));
10374
+ return _context63.abrupt("return", this.delete(this.baseURL + "/campaigns/".concat(id)));
10277
10375
 
10278
10376
  case 1:
10279
10377
  case "end":
10280
- return _context62.stop();
10378
+ return _context63.stop();
10281
10379
  }
10282
10380
  }
10283
- }, _callee62, this);
10381
+ }, _callee63, this);
10284
10382
  }));
10285
10383
 
10286
- function deleteCampaign(_x83) {
10384
+ function deleteCampaign(_x84) {
10287
10385
  return _deleteCampaign.apply(this, arguments);
10288
10386
  }
10289
10387
 
@@ -10301,33 +10399,33 @@ var StreamChat = /*#__PURE__*/function () {
10301
10399
  }, {
10302
10400
  key: "scheduleCampaign",
10303
10401
  value: function () {
10304
- var _scheduleCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee63(id, params) {
10402
+ var _scheduleCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee64(id, params) {
10305
10403
  var scheduledFor, _yield$this$patch, campaign;
10306
10404
 
10307
- return _regeneratorRuntime.wrap(function _callee63$(_context63) {
10405
+ return _regeneratorRuntime.wrap(function _callee64$(_context64) {
10308
10406
  while (1) {
10309
- switch (_context63.prev = _context63.next) {
10407
+ switch (_context64.prev = _context64.next) {
10310
10408
  case 0:
10311
10409
  scheduledFor = params.scheduledFor;
10312
- _context63.next = 3;
10410
+ _context64.next = 3;
10313
10411
  return this.patch(this.baseURL + "/campaigns/".concat(id, "/schedule"), {
10314
10412
  scheduled_for: scheduledFor
10315
10413
  });
10316
10414
 
10317
10415
  case 3:
10318
- _yield$this$patch = _context63.sent;
10416
+ _yield$this$patch = _context64.sent;
10319
10417
  campaign = _yield$this$patch.campaign;
10320
- return _context63.abrupt("return", campaign);
10418
+ return _context64.abrupt("return", campaign);
10321
10419
 
10322
10420
  case 6:
10323
10421
  case "end":
10324
- return _context63.stop();
10422
+ return _context64.stop();
10325
10423
  }
10326
10424
  }
10327
- }, _callee63, this);
10425
+ }, _callee64, this);
10328
10426
  }));
10329
10427
 
10330
- function scheduleCampaign(_x84, _x85) {
10428
+ function scheduleCampaign(_x85, _x86) {
10331
10429
  return _scheduleCampaign.apply(this, arguments);
10332
10430
  }
10333
10431
 
@@ -10344,30 +10442,30 @@ var StreamChat = /*#__PURE__*/function () {
10344
10442
  }, {
10345
10443
  key: "stopCampaign",
10346
10444
  value: function () {
10347
- var _stopCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee64(id) {
10445
+ var _stopCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee65(id) {
10348
10446
  var _yield$this$patch2, campaign;
10349
10447
 
10350
- return _regeneratorRuntime.wrap(function _callee64$(_context64) {
10448
+ return _regeneratorRuntime.wrap(function _callee65$(_context65) {
10351
10449
  while (1) {
10352
- switch (_context64.prev = _context64.next) {
10450
+ switch (_context65.prev = _context65.next) {
10353
10451
  case 0:
10354
- _context64.next = 2;
10452
+ _context65.next = 2;
10355
10453
  return this.patch(this.baseURL + "/campaigns/".concat(id, "/stop"));
10356
10454
 
10357
10455
  case 2:
10358
- _yield$this$patch2 = _context64.sent;
10456
+ _yield$this$patch2 = _context65.sent;
10359
10457
  campaign = _yield$this$patch2.campaign;
10360
- return _context64.abrupt("return", campaign);
10458
+ return _context65.abrupt("return", campaign);
10361
10459
 
10362
10460
  case 5:
10363
10461
  case "end":
10364
- return _context64.stop();
10462
+ return _context65.stop();
10365
10463
  }
10366
10464
  }
10367
- }, _callee64, this);
10465
+ }, _callee65, this);
10368
10466
  }));
10369
10467
 
10370
- function stopCampaign(_x86) {
10468
+ function stopCampaign(_x87) {
10371
10469
  return _stopCampaign.apply(this, arguments);
10372
10470
  }
10373
10471
 
@@ -10384,30 +10482,30 @@ var StreamChat = /*#__PURE__*/function () {
10384
10482
  }, {
10385
10483
  key: "resumeCampaign",
10386
10484
  value: function () {
10387
- var _resumeCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee65(id) {
10485
+ var _resumeCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee66(id) {
10388
10486
  var _yield$this$patch3, campaign;
10389
10487
 
10390
- return _regeneratorRuntime.wrap(function _callee65$(_context65) {
10488
+ return _regeneratorRuntime.wrap(function _callee66$(_context66) {
10391
10489
  while (1) {
10392
- switch (_context65.prev = _context65.next) {
10490
+ switch (_context66.prev = _context66.next) {
10393
10491
  case 0:
10394
- _context65.next = 2;
10492
+ _context66.next = 2;
10395
10493
  return this.patch(this.baseURL + "/campaigns/".concat(id, "/resume"));
10396
10494
 
10397
10495
  case 2:
10398
- _yield$this$patch3 = _context65.sent;
10496
+ _yield$this$patch3 = _context66.sent;
10399
10497
  campaign = _yield$this$patch3.campaign;
10400
- return _context65.abrupt("return", campaign);
10498
+ return _context66.abrupt("return", campaign);
10401
10499
 
10402
10500
  case 5:
10403
10501
  case "end":
10404
- return _context65.stop();
10502
+ return _context66.stop();
10405
10503
  }
10406
10504
  }
10407
- }, _callee65, this);
10505
+ }, _callee66, this);
10408
10506
  }));
10409
10507
 
10410
- function resumeCampaign(_x87) {
10508
+ function resumeCampaign(_x88) {
10411
10509
  return _resumeCampaign.apply(this, arguments);
10412
10510
  }
10413
10511
 
@@ -10425,30 +10523,30 @@ var StreamChat = /*#__PURE__*/function () {
10425
10523
  }, {
10426
10524
  key: "testCampaign",
10427
10525
  value: function () {
10428
- var _testCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee66(id, params) {
10526
+ var _testCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee67(id, params) {
10429
10527
  var users;
10430
- return _regeneratorRuntime.wrap(function _callee66$(_context66) {
10528
+ return _regeneratorRuntime.wrap(function _callee67$(_context67) {
10431
10529
  while (1) {
10432
- switch (_context66.prev = _context66.next) {
10530
+ switch (_context67.prev = _context67.next) {
10433
10531
  case 0:
10434
10532
  users = params.users;
10435
- _context66.next = 3;
10533
+ _context67.next = 3;
10436
10534
  return this.post(this.baseURL + "/campaigns/".concat(id, "/test"), {
10437
10535
  users: users
10438
10536
  });
10439
10537
 
10440
10538
  case 3:
10441
- return _context66.abrupt("return", _context66.sent);
10539
+ return _context67.abrupt("return", _context67.sent);
10442
10540
 
10443
10541
  case 4:
10444
10542
  case "end":
10445
- return _context66.stop();
10543
+ return _context67.stop();
10446
10544
  }
10447
10545
  }
10448
- }, _callee66, this);
10546
+ }, _callee67, this);
10449
10547
  }));
10450
10548
 
10451
- function testCampaign(_x88, _x89) {
10549
+ function testCampaign(_x89, _x90) {
10452
10550
  return _testCampaign.apply(this, arguments);
10453
10551
  }
10454
10552
 
@@ -10464,24 +10562,24 @@ var StreamChat = /*#__PURE__*/function () {
10464
10562
  }, {
10465
10563
  key: "enrichURL",
10466
10564
  value: function () {
10467
- var _enrichURL = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee67(url) {
10468
- return _regeneratorRuntime.wrap(function _callee67$(_context67) {
10565
+ var _enrichURL = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee68(url) {
10566
+ return _regeneratorRuntime.wrap(function _callee68$(_context68) {
10469
10567
  while (1) {
10470
- switch (_context67.prev = _context67.next) {
10568
+ switch (_context68.prev = _context68.next) {
10471
10569
  case 0:
10472
- return _context67.abrupt("return", this.get(this.baseURL + "/og", {
10570
+ return _context68.abrupt("return", this.get(this.baseURL + "/og", {
10473
10571
  url: url
10474
10572
  }));
10475
10573
 
10476
10574
  case 1:
10477
10575
  case "end":
10478
- return _context67.stop();
10576
+ return _context68.stop();
10479
10577
  }
10480
10578
  }
10481
- }, _callee67, this);
10579
+ }, _callee68, this);
10482
10580
  }));
10483
10581
 
10484
- function enrichURL(_x90) {
10582
+ function enrichURL(_x91) {
10485
10583
  return _enrichURL.apply(this, arguments);
10486
10584
  }
10487
10585
 
@@ -10498,22 +10596,22 @@ var StreamChat = /*#__PURE__*/function () {
10498
10596
  }, {
10499
10597
  key: "getTask",
10500
10598
  value: function () {
10501
- var _getTask = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee68(id) {
10502
- return _regeneratorRuntime.wrap(function _callee68$(_context68) {
10599
+ var _getTask = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee69(id) {
10600
+ return _regeneratorRuntime.wrap(function _callee69$(_context69) {
10503
10601
  while (1) {
10504
- switch (_context68.prev = _context68.next) {
10602
+ switch (_context69.prev = _context69.next) {
10505
10603
  case 0:
10506
- return _context68.abrupt("return", this.get("".concat(this.baseURL, "/tasks/").concat(id)));
10604
+ return _context69.abrupt("return", this.get("".concat(this.baseURL, "/tasks/").concat(id)));
10507
10605
 
10508
10606
  case 1:
10509
10607
  case "end":
10510
- return _context68.stop();
10608
+ return _context69.stop();
10511
10609
  }
10512
10610
  }
10513
- }, _callee68, this);
10611
+ }, _callee69, this);
10514
10612
  }));
10515
10613
 
10516
- function getTask(_x91) {
10614
+ function getTask(_x92) {
10517
10615
  return _getTask.apply(this, arguments);
10518
10616
  }
10519
10617
 
@@ -10531,31 +10629,31 @@ var StreamChat = /*#__PURE__*/function () {
10531
10629
  }, {
10532
10630
  key: "deleteChannels",
10533
10631
  value: function () {
10534
- var _deleteChannels = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee69(cids) {
10632
+ var _deleteChannels = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee70(cids) {
10535
10633
  var options,
10536
- _args69 = arguments;
10537
- return _regeneratorRuntime.wrap(function _callee69$(_context69) {
10634
+ _args70 = arguments;
10635
+ return _regeneratorRuntime.wrap(function _callee70$(_context70) {
10538
10636
  while (1) {
10539
- switch (_context69.prev = _context69.next) {
10637
+ switch (_context70.prev = _context70.next) {
10540
10638
  case 0:
10541
- options = _args69.length > 1 && _args69[1] !== undefined ? _args69[1] : {};
10542
- _context69.next = 3;
10639
+ options = _args70.length > 1 && _args70[1] !== undefined ? _args70[1] : {};
10640
+ _context70.next = 3;
10543
10641
  return this.post(this.baseURL + "/channels/delete", _objectSpread({
10544
10642
  cids: cids
10545
10643
  }, options));
10546
10644
 
10547
10645
  case 3:
10548
- return _context69.abrupt("return", _context69.sent);
10646
+ return _context70.abrupt("return", _context70.sent);
10549
10647
 
10550
10648
  case 4:
10551
10649
  case "end":
10552
- return _context69.stop();
10650
+ return _context70.stop();
10553
10651
  }
10554
10652
  }
10555
- }, _callee69, this);
10653
+ }, _callee70, this);
10556
10654
  }));
10557
10655
 
10558
- function deleteChannels(_x92) {
10656
+ function deleteChannels(_x93) {
10559
10657
  return _deleteChannels.apply(this, arguments);
10560
10658
  }
10561
10659
 
@@ -10573,13 +10671,13 @@ var StreamChat = /*#__PURE__*/function () {
10573
10671
  }, {
10574
10672
  key: "deleteUsers",
10575
10673
  value: function () {
10576
- var _deleteUsers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee70(user_ids, options) {
10577
- return _regeneratorRuntime.wrap(function _callee70$(_context70) {
10674
+ var _deleteUsers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee71(user_ids, options) {
10675
+ return _regeneratorRuntime.wrap(function _callee71$(_context71) {
10578
10676
  while (1) {
10579
- switch (_context70.prev = _context70.next) {
10677
+ switch (_context71.prev = _context71.next) {
10580
10678
  case 0:
10581
10679
  if (!((options === null || options === void 0 ? void 0 : options.user) !== 'soft' && (options === null || options === void 0 ? void 0 : options.user) !== 'hard')) {
10582
- _context70.next = 2;
10680
+ _context71.next = 2;
10583
10681
  break;
10584
10682
  }
10585
10683
 
@@ -10587,7 +10685,7 @@ var StreamChat = /*#__PURE__*/function () {
10587
10685
 
10588
10686
  case 2:
10589
10687
  if (!(options.messages !== undefined && options.messages !== 'soft' && options.messages !== 'hard')) {
10590
- _context70.next = 4;
10688
+ _context71.next = 4;
10591
10689
  break;
10592
10690
  }
10593
10691
 
@@ -10595,30 +10693,30 @@ var StreamChat = /*#__PURE__*/function () {
10595
10693
 
10596
10694
  case 4:
10597
10695
  if (!(options.conversations !== undefined && options.conversations !== 'soft' && options.conversations !== 'hard')) {
10598
- _context70.next = 6;
10696
+ _context71.next = 6;
10599
10697
  break;
10600
10698
  }
10601
10699
 
10602
10700
  throw new Error('Invalid delete user options. conversations must be one of [soft hard]');
10603
10701
 
10604
10702
  case 6:
10605
- _context70.next = 8;
10703
+ _context71.next = 8;
10606
10704
  return this.post(this.baseURL + "/users/delete", _objectSpread({
10607
10705
  user_ids: user_ids
10608
10706
  }, options));
10609
10707
 
10610
10708
  case 8:
10611
- return _context70.abrupt("return", _context70.sent);
10709
+ return _context71.abrupt("return", _context71.sent);
10612
10710
 
10613
10711
  case 9:
10614
10712
  case "end":
10615
- return _context70.stop();
10713
+ return _context71.stop();
10616
10714
  }
10617
10715
  }
10618
- }, _callee70, this);
10716
+ }, _callee71, this);
10619
10717
  }));
10620
10718
 
10621
- function deleteUsers(_x93, _x94) {
10719
+ function deleteUsers(_x94, _x95) {
10622
10720
  return _deleteUsers.apply(this, arguments);
10623
10721
  }
10624
10722
 
@@ -10639,28 +10737,28 @@ var StreamChat = /*#__PURE__*/function () {
10639
10737
  }, {
10640
10738
  key: "_createImportURL",
10641
10739
  value: function () {
10642
- var _createImportURL2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee71(filename) {
10643
- return _regeneratorRuntime.wrap(function _callee71$(_context71) {
10740
+ var _createImportURL2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee72(filename) {
10741
+ return _regeneratorRuntime.wrap(function _callee72$(_context72) {
10644
10742
  while (1) {
10645
- switch (_context71.prev = _context71.next) {
10743
+ switch (_context72.prev = _context72.next) {
10646
10744
  case 0:
10647
- _context71.next = 2;
10745
+ _context72.next = 2;
10648
10746
  return this.post(this.baseURL + "/import_urls", {
10649
10747
  filename: filename
10650
10748
  });
10651
10749
 
10652
10750
  case 2:
10653
- return _context71.abrupt("return", _context71.sent);
10751
+ return _context72.abrupt("return", _context72.sent);
10654
10752
 
10655
10753
  case 3:
10656
10754
  case "end":
10657
- return _context71.stop();
10755
+ return _context72.stop();
10658
10756
  }
10659
10757
  }
10660
- }, _callee71, this);
10758
+ }, _callee72, this);
10661
10759
  }));
10662
10760
 
10663
- function _createImportURL(_x95) {
10761
+ function _createImportURL(_x96) {
10664
10762
  return _createImportURL2.apply(this, arguments);
10665
10763
  }
10666
10764
 
@@ -10682,33 +10780,33 @@ var StreamChat = /*#__PURE__*/function () {
10682
10780
  }, {
10683
10781
  key: "_createImport",
10684
10782
  value: function () {
10685
- var _createImport2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee72(path) {
10783
+ var _createImport2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee73(path) {
10686
10784
  var options,
10687
- _args72 = arguments;
10688
- return _regeneratorRuntime.wrap(function _callee72$(_context72) {
10785
+ _args73 = arguments;
10786
+ return _regeneratorRuntime.wrap(function _callee73$(_context73) {
10689
10787
  while (1) {
10690
- switch (_context72.prev = _context72.next) {
10788
+ switch (_context73.prev = _context73.next) {
10691
10789
  case 0:
10692
- options = _args72.length > 1 && _args72[1] !== undefined ? _args72[1] : {
10790
+ options = _args73.length > 1 && _args73[1] !== undefined ? _args73[1] : {
10693
10791
  mode: 'upsert'
10694
10792
  };
10695
- _context72.next = 3;
10793
+ _context73.next = 3;
10696
10794
  return this.post(this.baseURL + "/imports", _objectSpread({
10697
10795
  path: path
10698
10796
  }, options));
10699
10797
 
10700
10798
  case 3:
10701
- return _context72.abrupt("return", _context72.sent);
10799
+ return _context73.abrupt("return", _context73.sent);
10702
10800
 
10703
10801
  case 4:
10704
10802
  case "end":
10705
- return _context72.stop();
10803
+ return _context73.stop();
10706
10804
  }
10707
10805
  }
10708
- }, _callee72, this);
10806
+ }, _callee73, this);
10709
10807
  }));
10710
10808
 
10711
- function _createImport(_x96) {
10809
+ function _createImport(_x97) {
10712
10810
  return _createImport2.apply(this, arguments);
10713
10811
  }
10714
10812
 
@@ -10730,26 +10828,26 @@ var StreamChat = /*#__PURE__*/function () {
10730
10828
  }, {
10731
10829
  key: "_getImport",
10732
10830
  value: function () {
10733
- var _getImport2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee73(id) {
10734
- return _regeneratorRuntime.wrap(function _callee73$(_context73) {
10831
+ var _getImport2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee74(id) {
10832
+ return _regeneratorRuntime.wrap(function _callee74$(_context74) {
10735
10833
  while (1) {
10736
- switch (_context73.prev = _context73.next) {
10834
+ switch (_context74.prev = _context74.next) {
10737
10835
  case 0:
10738
- _context73.next = 2;
10836
+ _context74.next = 2;
10739
10837
  return this.get(this.baseURL + "/imports/".concat(id));
10740
10838
 
10741
10839
  case 2:
10742
- return _context73.abrupt("return", _context73.sent);
10840
+ return _context74.abrupt("return", _context74.sent);
10743
10841
 
10744
10842
  case 3:
10745
10843
  case "end":
10746
- return _context73.stop();
10844
+ return _context74.stop();
10747
10845
  }
10748
10846
  }
10749
- }, _callee73, this);
10847
+ }, _callee74, this);
10750
10848
  }));
10751
10849
 
10752
- function _getImport(_x97) {
10850
+ function _getImport(_x98) {
10753
10851
  return _getImport2.apply(this, arguments);
10754
10852
  }
10755
10853
 
@@ -10771,26 +10869,26 @@ var StreamChat = /*#__PURE__*/function () {
10771
10869
  }, {
10772
10870
  key: "_listImports",
10773
10871
  value: function () {
10774
- var _listImports2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee74(options) {
10775
- return _regeneratorRuntime.wrap(function _callee74$(_context74) {
10872
+ var _listImports2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee75(options) {
10873
+ return _regeneratorRuntime.wrap(function _callee75$(_context75) {
10776
10874
  while (1) {
10777
- switch (_context74.prev = _context74.next) {
10875
+ switch (_context75.prev = _context75.next) {
10778
10876
  case 0:
10779
- _context74.next = 2;
10877
+ _context75.next = 2;
10780
10878
  return this.get(this.baseURL + "/imports", options);
10781
10879
 
10782
10880
  case 2:
10783
- return _context74.abrupt("return", _context74.sent);
10881
+ return _context75.abrupt("return", _context75.sent);
10784
10882
 
10785
10883
  case 3:
10786
10884
  case "end":
10787
- return _context74.stop();
10885
+ return _context75.stop();
10788
10886
  }
10789
10887
  }
10790
- }, _callee74, this);
10888
+ }, _callee75, this);
10791
10889
  }));
10792
10890
 
10793
- function _listImports(_x98) {
10891
+ function _listImports(_x99) {
10794
10892
  return _listImports2.apply(this, arguments);
10795
10893
  }
10796
10894
 
@@ -10809,28 +10907,28 @@ var StreamChat = /*#__PURE__*/function () {
10809
10907
  }, {
10810
10908
  key: "upsertPushProvider",
10811
10909
  value: function () {
10812
- var _upsertPushProvider = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee75(pushProvider) {
10813
- return _regeneratorRuntime.wrap(function _callee75$(_context75) {
10910
+ var _upsertPushProvider = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee76(pushProvider) {
10911
+ return _regeneratorRuntime.wrap(function _callee76$(_context76) {
10814
10912
  while (1) {
10815
- switch (_context75.prev = _context75.next) {
10913
+ switch (_context76.prev = _context76.next) {
10816
10914
  case 0:
10817
- _context75.next = 2;
10915
+ _context76.next = 2;
10818
10916
  return this.post(this.baseURL + "/push_providers", {
10819
10917
  push_provider: pushProvider
10820
10918
  });
10821
10919
 
10822
10920
  case 2:
10823
- return _context75.abrupt("return", _context75.sent);
10921
+ return _context76.abrupt("return", _context76.sent);
10824
10922
 
10825
10923
  case 3:
10826
10924
  case "end":
10827
- return _context75.stop();
10925
+ return _context76.stop();
10828
10926
  }
10829
10927
  }
10830
- }, _callee75, this);
10928
+ }, _callee76, this);
10831
10929
  }));
10832
10930
 
10833
- function upsertPushProvider(_x99) {
10931
+ function upsertPushProvider(_x100) {
10834
10932
  return _upsertPushProvider.apply(this, arguments);
10835
10933
  }
10836
10934
 
@@ -10849,28 +10947,28 @@ var StreamChat = /*#__PURE__*/function () {
10849
10947
  }, {
10850
10948
  key: "deletePushProvider",
10851
10949
  value: function () {
10852
- var _deletePushProvider = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee76(_ref8) {
10950
+ var _deletePushProvider = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee77(_ref8) {
10853
10951
  var type, name;
10854
- return _regeneratorRuntime.wrap(function _callee76$(_context76) {
10952
+ return _regeneratorRuntime.wrap(function _callee77$(_context77) {
10855
10953
  while (1) {
10856
- switch (_context76.prev = _context76.next) {
10954
+ switch (_context77.prev = _context77.next) {
10857
10955
  case 0:
10858
10956
  type = _ref8.type, name = _ref8.name;
10859
- _context76.next = 3;
10957
+ _context77.next = 3;
10860
10958
  return this.delete(this.baseURL + "/push_providers/".concat(type, "/").concat(name));
10861
10959
 
10862
10960
  case 3:
10863
- return _context76.abrupt("return", _context76.sent);
10961
+ return _context77.abrupt("return", _context77.sent);
10864
10962
 
10865
10963
  case 4:
10866
10964
  case "end":
10867
- return _context76.stop();
10965
+ return _context77.stop();
10868
10966
  }
10869
10967
  }
10870
- }, _callee76, this);
10968
+ }, _callee77, this);
10871
10969
  }));
10872
10970
 
10873
- function deletePushProvider(_x100) {
10971
+ function deletePushProvider(_x101) {
10874
10972
  return _deletePushProvider.apply(this, arguments);
10875
10973
  }
10876
10974
 
@@ -10887,23 +10985,23 @@ var StreamChat = /*#__PURE__*/function () {
10887
10985
  }, {
10888
10986
  key: "listPushProviders",
10889
10987
  value: function () {
10890
- var _listPushProviders = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee77() {
10891
- return _regeneratorRuntime.wrap(function _callee77$(_context77) {
10988
+ var _listPushProviders = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee78() {
10989
+ return _regeneratorRuntime.wrap(function _callee78$(_context78) {
10892
10990
  while (1) {
10893
- switch (_context77.prev = _context77.next) {
10991
+ switch (_context78.prev = _context78.next) {
10894
10992
  case 0:
10895
- _context77.next = 2;
10993
+ _context78.next = 2;
10896
10994
  return this.get(this.baseURL + "/push_providers");
10897
10995
 
10898
10996
  case 2:
10899
- return _context77.abrupt("return", _context77.sent);
10997
+ return _context78.abrupt("return", _context78.sent);
10900
10998
 
10901
10999
  case 3:
10902
11000
  case "end":
10903
- return _context77.stop();
11001
+ return _context78.stop();
10904
11002
  }
10905
11003
  }
10906
- }, _callee77, this);
11004
+ }, _callee78, this);
10907
11005
  }));
10908
11006
 
10909
11007
  function listPushProviders() {