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