stream-chat 8.33.1 → 8.34.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -10316,6 +10316,100 @@ var StreamChat = /*#__PURE__*/function () {
10316
10316
 
10317
10317
  return removeShadowBan;
10318
10318
  }()
10319
+ }, {
10320
+ key: "blockUser",
10321
+ value: function () {
10322
+ var _blockUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee43(blockedUserID, user_id) {
10323
+ return _regeneratorRuntime.wrap(function _callee43$(_context43) {
10324
+ while (1) {
10325
+ switch (_context43.prev = _context43.next) {
10326
+ case 0:
10327
+ _context43.next = 2;
10328
+ return this.post(this.baseURL + '/users/block', _objectSpread({
10329
+ blocked_user_id: blockedUserID
10330
+ }, user_id ? {
10331
+ user_id: user_id
10332
+ } : {}));
10333
+
10334
+ case 2:
10335
+ return _context43.abrupt("return", _context43.sent);
10336
+
10337
+ case 3:
10338
+ case "end":
10339
+ return _context43.stop();
10340
+ }
10341
+ }
10342
+ }, _callee43, this);
10343
+ }));
10344
+
10345
+ function blockUser(_x56, _x57) {
10346
+ return _blockUser.apply(this, arguments);
10347
+ }
10348
+
10349
+ return blockUser;
10350
+ }()
10351
+ }, {
10352
+ key: "getBlockedUsers",
10353
+ value: function () {
10354
+ var _getBlockedUsers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee44(user_id) {
10355
+ return _regeneratorRuntime.wrap(function _callee44$(_context44) {
10356
+ while (1) {
10357
+ switch (_context44.prev = _context44.next) {
10358
+ case 0:
10359
+ _context44.next = 2;
10360
+ return this.get(this.baseURL + '/users/block', _objectSpread({}, user_id ? {
10361
+ user_id: user_id
10362
+ } : {}));
10363
+
10364
+ case 2:
10365
+ return _context44.abrupt("return", _context44.sent);
10366
+
10367
+ case 3:
10368
+ case "end":
10369
+ return _context44.stop();
10370
+ }
10371
+ }
10372
+ }, _callee44, this);
10373
+ }));
10374
+
10375
+ function getBlockedUsers(_x58) {
10376
+ return _getBlockedUsers.apply(this, arguments);
10377
+ }
10378
+
10379
+ return getBlockedUsers;
10380
+ }()
10381
+ }, {
10382
+ key: "unBlockUser",
10383
+ value: function () {
10384
+ var _unBlockUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee45(blockedUserID, userID) {
10385
+ return _regeneratorRuntime.wrap(function _callee45$(_context45) {
10386
+ while (1) {
10387
+ switch (_context45.prev = _context45.next) {
10388
+ case 0:
10389
+ _context45.next = 2;
10390
+ return this.post(this.baseURL + '/users/unblock', _objectSpread({
10391
+ blocked_user_id: blockedUserID
10392
+ }, userID ? {
10393
+ user_id: userID
10394
+ } : {}));
10395
+
10396
+ case 2:
10397
+ return _context45.abrupt("return", _context45.sent);
10398
+
10399
+ case 3:
10400
+ case "end":
10401
+ return _context45.stop();
10402
+ }
10403
+ }
10404
+ }, _callee45, this);
10405
+ }));
10406
+
10407
+ function unBlockUser(_x59, _x60) {
10408
+ return _unBlockUser.apply(this, arguments);
10409
+ }
10410
+
10411
+ return unBlockUser;
10412
+ }()
10319
10413
  /** muteUser - mutes a user
10320
10414
  *
10321
10415
  * @param {string} targetID
@@ -10327,15 +10421,15 @@ var StreamChat = /*#__PURE__*/function () {
10327
10421
  }, {
10328
10422
  key: "muteUser",
10329
10423
  value: function () {
10330
- var _muteUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee43(targetID, userID) {
10424
+ var _muteUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee46(targetID, userID) {
10331
10425
  var options,
10332
- _args43 = arguments;
10333
- return _regeneratorRuntime.wrap(function _callee43$(_context43) {
10426
+ _args46 = arguments;
10427
+ return _regeneratorRuntime.wrap(function _callee46$(_context46) {
10334
10428
  while (1) {
10335
- switch (_context43.prev = _context43.next) {
10429
+ switch (_context46.prev = _context46.next) {
10336
10430
  case 0:
10337
- options = _args43.length > 2 && _args43[2] !== undefined ? _args43[2] : {};
10338
- _context43.next = 3;
10431
+ options = _args46.length > 2 && _args46[2] !== undefined ? _args46[2] : {};
10432
+ _context46.next = 3;
10339
10433
  return this.post(this.baseURL + '/moderation/mute', _objectSpread(_objectSpread({
10340
10434
  target_id: targetID
10341
10435
  }, userID ? {
@@ -10343,17 +10437,17 @@ var StreamChat = /*#__PURE__*/function () {
10343
10437
  } : {}), options));
10344
10438
 
10345
10439
  case 3:
10346
- return _context43.abrupt("return", _context43.sent);
10440
+ return _context46.abrupt("return", _context46.sent);
10347
10441
 
10348
10442
  case 4:
10349
10443
  case "end":
10350
- return _context43.stop();
10444
+ return _context46.stop();
10351
10445
  }
10352
10446
  }
10353
- }, _callee43, this);
10447
+ }, _callee46, this);
10354
10448
  }));
10355
10449
 
10356
- function muteUser(_x56, _x57) {
10450
+ function muteUser(_x61, _x62) {
10357
10451
  return _muteUser.apply(this, arguments);
10358
10452
  }
10359
10453
 
@@ -10369,12 +10463,12 @@ var StreamChat = /*#__PURE__*/function () {
10369
10463
  }, {
10370
10464
  key: "unmuteUser",
10371
10465
  value: function () {
10372
- var _unmuteUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee44(targetID, currentUserID) {
10373
- return _regeneratorRuntime.wrap(function _callee44$(_context44) {
10466
+ var _unmuteUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee47(targetID, currentUserID) {
10467
+ return _regeneratorRuntime.wrap(function _callee47$(_context47) {
10374
10468
  while (1) {
10375
- switch (_context44.prev = _context44.next) {
10469
+ switch (_context47.prev = _context47.next) {
10376
10470
  case 0:
10377
- _context44.next = 2;
10471
+ _context47.next = 2;
10378
10472
  return this.post(this.baseURL + '/moderation/unmute', _objectSpread({
10379
10473
  target_id: targetID
10380
10474
  }, currentUserID ? {
@@ -10382,17 +10476,17 @@ var StreamChat = /*#__PURE__*/function () {
10382
10476
  } : {}));
10383
10477
 
10384
10478
  case 2:
10385
- return _context44.abrupt("return", _context44.sent);
10479
+ return _context47.abrupt("return", _context47.sent);
10386
10480
 
10387
10481
  case 3:
10388
10482
  case "end":
10389
- return _context44.stop();
10483
+ return _context47.stop();
10390
10484
  }
10391
10485
  }
10392
- }, _callee44, this);
10486
+ }, _callee47, this);
10393
10487
  }));
10394
10488
 
10395
- function unmuteUser(_x58, _x59) {
10489
+ function unmuteUser(_x63, _x64) {
10396
10490
  return _unmuteUser.apply(this, arguments);
10397
10491
  }
10398
10492
 
@@ -10427,31 +10521,31 @@ var StreamChat = /*#__PURE__*/function () {
10427
10521
  }, {
10428
10522
  key: "flagMessage",
10429
10523
  value: function () {
10430
- var _flagMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee45(targetMessageID) {
10524
+ var _flagMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee48(targetMessageID) {
10431
10525
  var options,
10432
- _args45 = arguments;
10433
- return _regeneratorRuntime.wrap(function _callee45$(_context45) {
10526
+ _args48 = arguments;
10527
+ return _regeneratorRuntime.wrap(function _callee48$(_context48) {
10434
10528
  while (1) {
10435
- switch (_context45.prev = _context45.next) {
10529
+ switch (_context48.prev = _context48.next) {
10436
10530
  case 0:
10437
- options = _args45.length > 1 && _args45[1] !== undefined ? _args45[1] : {};
10438
- _context45.next = 3;
10531
+ options = _args48.length > 1 && _args48[1] !== undefined ? _args48[1] : {};
10532
+ _context48.next = 3;
10439
10533
  return this.post(this.baseURL + '/moderation/flag', _objectSpread({
10440
10534
  target_message_id: targetMessageID
10441
10535
  }, options));
10442
10536
 
10443
10537
  case 3:
10444
- return _context45.abrupt("return", _context45.sent);
10538
+ return _context48.abrupt("return", _context48.sent);
10445
10539
 
10446
10540
  case 4:
10447
10541
  case "end":
10448
- return _context45.stop();
10542
+ return _context48.stop();
10449
10543
  }
10450
10544
  }
10451
- }, _callee45, this);
10545
+ }, _callee48, this);
10452
10546
  }));
10453
10547
 
10454
- function flagMessage(_x60) {
10548
+ function flagMessage(_x65) {
10455
10549
  return _flagMessage.apply(this, arguments);
10456
10550
  }
10457
10551
 
@@ -10467,31 +10561,31 @@ var StreamChat = /*#__PURE__*/function () {
10467
10561
  }, {
10468
10562
  key: "flagUser",
10469
10563
  value: function () {
10470
- var _flagUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee46(targetID) {
10564
+ var _flagUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee49(targetID) {
10471
10565
  var options,
10472
- _args46 = arguments;
10473
- return _regeneratorRuntime.wrap(function _callee46$(_context46) {
10566
+ _args49 = arguments;
10567
+ return _regeneratorRuntime.wrap(function _callee49$(_context49) {
10474
10568
  while (1) {
10475
- switch (_context46.prev = _context46.next) {
10569
+ switch (_context49.prev = _context49.next) {
10476
10570
  case 0:
10477
- options = _args46.length > 1 && _args46[1] !== undefined ? _args46[1] : {};
10478
- _context46.next = 3;
10571
+ options = _args49.length > 1 && _args49[1] !== undefined ? _args49[1] : {};
10572
+ _context49.next = 3;
10479
10573
  return this.post(this.baseURL + '/moderation/flag', _objectSpread({
10480
10574
  target_user_id: targetID
10481
10575
  }, options));
10482
10576
 
10483
10577
  case 3:
10484
- return _context46.abrupt("return", _context46.sent);
10578
+ return _context49.abrupt("return", _context49.sent);
10485
10579
 
10486
10580
  case 4:
10487
10581
  case "end":
10488
- return _context46.stop();
10582
+ return _context49.stop();
10489
10583
  }
10490
10584
  }
10491
- }, _callee46, this);
10585
+ }, _callee49, this);
10492
10586
  }));
10493
10587
 
10494
- function flagUser(_x61) {
10588
+ function flagUser(_x66) {
10495
10589
  return _flagUser.apply(this, arguments);
10496
10590
  }
10497
10591
 
@@ -10507,31 +10601,31 @@ var StreamChat = /*#__PURE__*/function () {
10507
10601
  }, {
10508
10602
  key: "unflagMessage",
10509
10603
  value: function () {
10510
- var _unflagMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee47(targetMessageID) {
10604
+ var _unflagMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee50(targetMessageID) {
10511
10605
  var options,
10512
- _args47 = arguments;
10513
- return _regeneratorRuntime.wrap(function _callee47$(_context47) {
10606
+ _args50 = arguments;
10607
+ return _regeneratorRuntime.wrap(function _callee50$(_context50) {
10514
10608
  while (1) {
10515
- switch (_context47.prev = _context47.next) {
10609
+ switch (_context50.prev = _context50.next) {
10516
10610
  case 0:
10517
- options = _args47.length > 1 && _args47[1] !== undefined ? _args47[1] : {};
10518
- _context47.next = 3;
10611
+ options = _args50.length > 1 && _args50[1] !== undefined ? _args50[1] : {};
10612
+ _context50.next = 3;
10519
10613
  return this.post(this.baseURL + '/moderation/unflag', _objectSpread({
10520
10614
  target_message_id: targetMessageID
10521
10615
  }, options));
10522
10616
 
10523
10617
  case 3:
10524
- return _context47.abrupt("return", _context47.sent);
10618
+ return _context50.abrupt("return", _context50.sent);
10525
10619
 
10526
10620
  case 4:
10527
10621
  case "end":
10528
- return _context47.stop();
10622
+ return _context50.stop();
10529
10623
  }
10530
10624
  }
10531
- }, _callee47, this);
10625
+ }, _callee50, this);
10532
10626
  }));
10533
10627
 
10534
- function unflagMessage(_x62) {
10628
+ function unflagMessage(_x67) {
10535
10629
  return _unflagMessage.apply(this, arguments);
10536
10630
  }
10537
10631
 
@@ -10547,31 +10641,31 @@ var StreamChat = /*#__PURE__*/function () {
10547
10641
  }, {
10548
10642
  key: "unflagUser",
10549
10643
  value: function () {
10550
- var _unflagUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee48(targetID) {
10644
+ var _unflagUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee51(targetID) {
10551
10645
  var options,
10552
- _args48 = arguments;
10553
- return _regeneratorRuntime.wrap(function _callee48$(_context48) {
10646
+ _args51 = arguments;
10647
+ return _regeneratorRuntime.wrap(function _callee51$(_context51) {
10554
10648
  while (1) {
10555
- switch (_context48.prev = _context48.next) {
10649
+ switch (_context51.prev = _context51.next) {
10556
10650
  case 0:
10557
- options = _args48.length > 1 && _args48[1] !== undefined ? _args48[1] : {};
10558
- _context48.next = 3;
10651
+ options = _args51.length > 1 && _args51[1] !== undefined ? _args51[1] : {};
10652
+ _context51.next = 3;
10559
10653
  return this.post(this.baseURL + '/moderation/unflag', _objectSpread({
10560
10654
  target_user_id: targetID
10561
10655
  }, options));
10562
10656
 
10563
10657
  case 3:
10564
- return _context48.abrupt("return", _context48.sent);
10658
+ return _context51.abrupt("return", _context51.sent);
10565
10659
 
10566
10660
  case 4:
10567
10661
  case "end":
10568
- return _context48.stop();
10662
+ return _context51.stop();
10569
10663
  }
10570
10664
  }
10571
- }, _callee48, this);
10665
+ }, _callee51, this);
10572
10666
  }));
10573
10667
 
10574
- function unflagUser(_x63) {
10668
+ function unflagUser(_x68) {
10575
10669
  return _unflagUser.apply(this, arguments);
10576
10670
  }
10577
10671
 
@@ -10588,29 +10682,29 @@ var StreamChat = /*#__PURE__*/function () {
10588
10682
  }, {
10589
10683
  key: "getCallToken",
10590
10684
  value: function () {
10591
- var _getCallToken = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee49(callID) {
10685
+ var _getCallToken = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee52(callID) {
10592
10686
  var options,
10593
- _args49 = arguments;
10594
- return _regeneratorRuntime.wrap(function _callee49$(_context49) {
10687
+ _args52 = arguments;
10688
+ return _regeneratorRuntime.wrap(function _callee52$(_context52) {
10595
10689
  while (1) {
10596
- switch (_context49.prev = _context49.next) {
10690
+ switch (_context52.prev = _context52.next) {
10597
10691
  case 0:
10598
- options = _args49.length > 1 && _args49[1] !== undefined ? _args49[1] : {};
10599
- _context49.next = 3;
10692
+ options = _args52.length > 1 && _args52[1] !== undefined ? _args52[1] : {};
10693
+ _context52.next = 3;
10600
10694
  return this.post(this.baseURL + "/calls/".concat(callID), _objectSpread({}, options));
10601
10695
 
10602
10696
  case 3:
10603
- return _context49.abrupt("return", _context49.sent);
10697
+ return _context52.abrupt("return", _context52.sent);
10604
10698
 
10605
10699
  case 4:
10606
10700
  case "end":
10607
- return _context49.stop();
10701
+ return _context52.stop();
10608
10702
  }
10609
10703
  }
10610
- }, _callee49, this);
10704
+ }, _callee52, this);
10611
10705
  }));
10612
10706
 
10613
- function getCallToken(_x64) {
10707
+ function getCallToken(_x69) {
10614
10708
  return _getCallToken.apply(this, arguments);
10615
10709
  }
10616
10710
 
@@ -10633,30 +10727,30 @@ var StreamChat = /*#__PURE__*/function () {
10633
10727
  }, {
10634
10728
  key: "_queryFlags",
10635
10729
  value: function () {
10636
- var _queryFlags2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee50() {
10730
+ var _queryFlags2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee53() {
10637
10731
  var filterConditions,
10638
10732
  options,
10639
- _args50 = arguments;
10640
- return _regeneratorRuntime.wrap(function _callee50$(_context50) {
10733
+ _args53 = arguments;
10734
+ return _regeneratorRuntime.wrap(function _callee53$(_context53) {
10641
10735
  while (1) {
10642
- switch (_context50.prev = _context50.next) {
10736
+ switch (_context53.prev = _context53.next) {
10643
10737
  case 0:
10644
- filterConditions = _args50.length > 0 && _args50[0] !== undefined ? _args50[0] : {};
10645
- options = _args50.length > 1 && _args50[1] !== undefined ? _args50[1] : {};
10646
- _context50.next = 4;
10738
+ filterConditions = _args53.length > 0 && _args53[0] !== undefined ? _args53[0] : {};
10739
+ options = _args53.length > 1 && _args53[1] !== undefined ? _args53[1] : {};
10740
+ _context53.next = 4;
10647
10741
  return this.post(this.baseURL + '/moderation/flags', _objectSpread({
10648
10742
  filter_conditions: filterConditions
10649
10743
  }, options));
10650
10744
 
10651
10745
  case 4:
10652
- return _context50.abrupt("return", _context50.sent);
10746
+ return _context53.abrupt("return", _context53.sent);
10653
10747
 
10654
10748
  case 5:
10655
10749
  case "end":
10656
- return _context50.stop();
10750
+ return _context53.stop();
10657
10751
  }
10658
10752
  }
10659
- }, _callee50, this);
10753
+ }, _callee53, this);
10660
10754
  }));
10661
10755
 
10662
10756
  function _queryFlags() {
@@ -10682,30 +10776,30 @@ var StreamChat = /*#__PURE__*/function () {
10682
10776
  }, {
10683
10777
  key: "_queryFlagReports",
10684
10778
  value: function () {
10685
- var _queryFlagReports2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee51() {
10779
+ var _queryFlagReports2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee54() {
10686
10780
  var filterConditions,
10687
10781
  options,
10688
- _args51 = arguments;
10689
- return _regeneratorRuntime.wrap(function _callee51$(_context51) {
10782
+ _args54 = arguments;
10783
+ return _regeneratorRuntime.wrap(function _callee54$(_context54) {
10690
10784
  while (1) {
10691
- switch (_context51.prev = _context51.next) {
10785
+ switch (_context54.prev = _context54.next) {
10692
10786
  case 0:
10693
- filterConditions = _args51.length > 0 && _args51[0] !== undefined ? _args51[0] : {};
10694
- options = _args51.length > 1 && _args51[1] !== undefined ? _args51[1] : {};
10695
- _context51.next = 4;
10787
+ filterConditions = _args54.length > 0 && _args54[0] !== undefined ? _args54[0] : {};
10788
+ options = _args54.length > 1 && _args54[1] !== undefined ? _args54[1] : {};
10789
+ _context54.next = 4;
10696
10790
  return this.post(this.baseURL + '/moderation/reports', _objectSpread({
10697
10791
  filter_conditions: filterConditions
10698
10792
  }, options));
10699
10793
 
10700
10794
  case 4:
10701
- return _context51.abrupt("return", _context51.sent);
10795
+ return _context54.abrupt("return", _context54.sent);
10702
10796
 
10703
10797
  case 5:
10704
10798
  case "end":
10705
- return _context51.stop();
10799
+ return _context54.stop();
10706
10800
  }
10707
10801
  }
10708
- }, _callee51, this);
10802
+ }, _callee54, this);
10709
10803
  }));
10710
10804
 
10711
10805
  function _queryFlagReports() {
@@ -10732,31 +10826,31 @@ var StreamChat = /*#__PURE__*/function () {
10732
10826
  }, {
10733
10827
  key: "_reviewFlagReport",
10734
10828
  value: function () {
10735
- var _reviewFlagReport2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee52(id, reviewResult) {
10829
+ var _reviewFlagReport2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee55(id, reviewResult) {
10736
10830
  var options,
10737
- _args52 = arguments;
10738
- return _regeneratorRuntime.wrap(function _callee52$(_context52) {
10831
+ _args55 = arguments;
10832
+ return _regeneratorRuntime.wrap(function _callee55$(_context55) {
10739
10833
  while (1) {
10740
- switch (_context52.prev = _context52.next) {
10834
+ switch (_context55.prev = _context55.next) {
10741
10835
  case 0:
10742
- options = _args52.length > 2 && _args52[2] !== undefined ? _args52[2] : {};
10743
- _context52.next = 3;
10836
+ options = _args55.length > 2 && _args55[2] !== undefined ? _args55[2] : {};
10837
+ _context55.next = 3;
10744
10838
  return this.patch(this.baseURL + "/moderation/reports/".concat(id), _objectSpread({
10745
10839
  review_result: reviewResult
10746
10840
  }, options));
10747
10841
 
10748
10842
  case 3:
10749
- return _context52.abrupt("return", _context52.sent);
10843
+ return _context55.abrupt("return", _context55.sent);
10750
10844
 
10751
10845
  case 4:
10752
10846
  case "end":
10753
- return _context52.stop();
10847
+ return _context55.stop();
10754
10848
  }
10755
10849
  }
10756
- }, _callee52, this);
10850
+ }, _callee55, this);
10757
10851
  }));
10758
10852
 
10759
- function _reviewFlagReport(_x65, _x66) {
10853
+ function _reviewFlagReport(_x70, _x71) {
10760
10854
  return _reviewFlagReport2.apply(this, arguments);
10761
10855
  }
10762
10856
 
@@ -10774,31 +10868,31 @@ var StreamChat = /*#__PURE__*/function () {
10774
10868
  }, {
10775
10869
  key: "unblockMessage",
10776
10870
  value: function () {
10777
- var _unblockMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee53(targetMessageID) {
10871
+ var _unblockMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee56(targetMessageID) {
10778
10872
  var options,
10779
- _args53 = arguments;
10780
- return _regeneratorRuntime.wrap(function _callee53$(_context53) {
10873
+ _args56 = arguments;
10874
+ return _regeneratorRuntime.wrap(function _callee56$(_context56) {
10781
10875
  while (1) {
10782
- switch (_context53.prev = _context53.next) {
10876
+ switch (_context56.prev = _context56.next) {
10783
10877
  case 0:
10784
- options = _args53.length > 1 && _args53[1] !== undefined ? _args53[1] : {};
10785
- _context53.next = 3;
10878
+ options = _args56.length > 1 && _args56[1] !== undefined ? _args56[1] : {};
10879
+ _context56.next = 3;
10786
10880
  return this.post(this.baseURL + '/moderation/unblock_message', _objectSpread({
10787
10881
  target_message_id: targetMessageID
10788
10882
  }, options));
10789
10883
 
10790
10884
  case 3:
10791
- return _context53.abrupt("return", _context53.sent);
10885
+ return _context56.abrupt("return", _context56.sent);
10792
10886
 
10793
10887
  case 4:
10794
10888
  case "end":
10795
- return _context53.stop();
10889
+ return _context56.stop();
10796
10890
  }
10797
10891
  }
10798
- }, _callee53, this);
10892
+ }, _callee56, this);
10799
10893
  }));
10800
10894
 
10801
- function unblockMessage(_x67) {
10895
+ function unblockMessage(_x72) {
10802
10896
  return _unblockMessage.apply(this, arguments);
10803
10897
  }
10804
10898
 
@@ -10817,23 +10911,23 @@ var StreamChat = /*#__PURE__*/function () {
10817
10911
  * @return {Promise<APIResponse>}
10818
10912
  */
10819
10913
  function () {
10820
- var _markChannelsRead = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee54() {
10914
+ var _markChannelsRead = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee57() {
10821
10915
  var data,
10822
- _args54 = arguments;
10823
- return _regeneratorRuntime.wrap(function _callee54$(_context54) {
10916
+ _args57 = arguments;
10917
+ return _regeneratorRuntime.wrap(function _callee57$(_context57) {
10824
10918
  while (1) {
10825
- switch (_context54.prev = _context54.next) {
10919
+ switch (_context57.prev = _context57.next) {
10826
10920
  case 0:
10827
- data = _args54.length > 0 && _args54[0] !== undefined ? _args54[0] : {};
10828
- _context54.next = 3;
10921
+ data = _args57.length > 0 && _args57[0] !== undefined ? _args57[0] : {};
10922
+ _context57.next = 3;
10829
10923
  return this.post(this.baseURL + '/channels/read', _objectSpread({}, data));
10830
10924
 
10831
10925
  case 3:
10832
10926
  case "end":
10833
- return _context54.stop();
10927
+ return _context57.stop();
10834
10928
  }
10835
10929
  }
10836
- }, _callee54, this);
10930
+ }, _callee57, this);
10837
10931
  }));
10838
10932
 
10839
10933
  function markChannelsRead() {
@@ -10908,28 +11002,28 @@ var StreamChat = /*#__PURE__*/function () {
10908
11002
  }, {
10909
11003
  key: "translateMessage",
10910
11004
  value: function () {
10911
- var _translateMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee55(messageId, language) {
10912
- return _regeneratorRuntime.wrap(function _callee55$(_context55) {
11005
+ var _translateMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee58(messageId, language) {
11006
+ return _regeneratorRuntime.wrap(function _callee58$(_context58) {
10913
11007
  while (1) {
10914
- switch (_context55.prev = _context55.next) {
11008
+ switch (_context58.prev = _context58.next) {
10915
11009
  case 0:
10916
- _context55.next = 2;
11010
+ _context58.next = 2;
10917
11011
  return this.post(this.baseURL + "/messages/".concat(messageId, "/translate"), {
10918
11012
  language: language
10919
11013
  });
10920
11014
 
10921
11015
  case 2:
10922
- return _context55.abrupt("return", _context55.sent);
11016
+ return _context58.abrupt("return", _context58.sent);
10923
11017
 
10924
11018
  case 3:
10925
11019
  case "end":
10926
- return _context55.stop();
11020
+ return _context58.stop();
10927
11021
  }
10928
11022
  }
10929
- }, _callee55, this);
11023
+ }, _callee58, this);
10930
11024
  }));
10931
11025
 
10932
- function translateMessage(_x68, _x69) {
11026
+ function translateMessage(_x73, _x74) {
10933
11027
  return _translateMessage.apply(this, arguments);
10934
11028
  }
10935
11029
 
@@ -11031,14 +11125,14 @@ var StreamChat = /*#__PURE__*/function () {
11031
11125
  }, {
11032
11126
  key: "updateMessage",
11033
11127
  value: function () {
11034
- var _updateMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee56(message, userId, options) {
11128
+ var _updateMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee59(message, userId, options) {
11035
11129
  var clonedMessage, reservedMessageFields;
11036
- return _regeneratorRuntime.wrap(function _callee56$(_context56) {
11130
+ return _regeneratorRuntime.wrap(function _callee59$(_context59) {
11037
11131
  while (1) {
11038
- switch (_context56.prev = _context56.next) {
11132
+ switch (_context59.prev = _context59.next) {
11039
11133
  case 0:
11040
11134
  if (message.id) {
11041
- _context56.next = 2;
11135
+ _context59.next = 2;
11042
11136
  break;
11043
11137
  }
11044
11138
 
@@ -11075,23 +11169,23 @@ var StreamChat = /*#__PURE__*/function () {
11075
11169
  });
11076
11170
  }
11077
11171
 
11078
- _context56.next = 10;
11172
+ _context59.next = 10;
11079
11173
  return this.post(this.baseURL + "/messages/".concat(message.id), _objectSpread({
11080
11174
  message: clonedMessage
11081
11175
  }, options));
11082
11176
 
11083
11177
  case 10:
11084
- return _context56.abrupt("return", _context56.sent);
11178
+ return _context59.abrupt("return", _context59.sent);
11085
11179
 
11086
11180
  case 11:
11087
11181
  case "end":
11088
- return _context56.stop();
11182
+ return _context59.stop();
11089
11183
  }
11090
11184
  }
11091
- }, _callee56, this);
11185
+ }, _callee59, this);
11092
11186
  }));
11093
11187
 
11094
- function updateMessage(_x70, _x71, _x72) {
11188
+ function updateMessage(_x75, _x76, _x77) {
11095
11189
  return _updateMessage.apply(this, arguments);
11096
11190
  }
11097
11191
 
@@ -11114,14 +11208,14 @@ var StreamChat = /*#__PURE__*/function () {
11114
11208
  }, {
11115
11209
  key: "partialUpdateMessage",
11116
11210
  value: function () {
11117
- var _partialUpdateMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee57(id, partialMessageObject, userId, options) {
11211
+ var _partialUpdateMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee60(id, partialMessageObject, userId, options) {
11118
11212
  var user;
11119
- return _regeneratorRuntime.wrap(function _callee57$(_context57) {
11213
+ return _regeneratorRuntime.wrap(function _callee60$(_context60) {
11120
11214
  while (1) {
11121
- switch (_context57.prev = _context57.next) {
11215
+ switch (_context60.prev = _context60.next) {
11122
11216
  case 0:
11123
11217
  if (id) {
11124
- _context57.next = 2;
11218
+ _context60.next = 2;
11125
11219
  break;
11126
11220
  }
11127
11221
 
@@ -11136,23 +11230,23 @@ var StreamChat = /*#__PURE__*/function () {
11136
11230
  };
11137
11231
  }
11138
11232
 
11139
- _context57.next = 6;
11233
+ _context60.next = 6;
11140
11234
  return this.put(this.baseURL + "/messages/".concat(id), _objectSpread(_objectSpread(_objectSpread({}, partialMessageObject), options), {}, {
11141
11235
  user: user
11142
11236
  }));
11143
11237
 
11144
11238
  case 6:
11145
- return _context57.abrupt("return", _context57.sent);
11239
+ return _context60.abrupt("return", _context60.sent);
11146
11240
 
11147
11241
  case 7:
11148
11242
  case "end":
11149
- return _context57.stop();
11243
+ return _context60.stop();
11150
11244
  }
11151
11245
  }
11152
- }, _callee57, this);
11246
+ }, _callee60, this);
11153
11247
  }));
11154
11248
 
11155
- function partialUpdateMessage(_x73, _x74, _x75, _x76) {
11249
+ function partialUpdateMessage(_x78, _x79, _x80, _x81) {
11156
11250
  return _partialUpdateMessage.apply(this, arguments);
11157
11251
  }
11158
11252
 
@@ -11161,11 +11255,11 @@ var StreamChat = /*#__PURE__*/function () {
11161
11255
  }, {
11162
11256
  key: "deleteMessage",
11163
11257
  value: function () {
11164
- var _deleteMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee58(messageID, hardDelete) {
11258
+ var _deleteMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee61(messageID, hardDelete) {
11165
11259
  var params;
11166
- return _regeneratorRuntime.wrap(function _callee58$(_context58) {
11260
+ return _regeneratorRuntime.wrap(function _callee61$(_context61) {
11167
11261
  while (1) {
11168
- switch (_context58.prev = _context58.next) {
11262
+ switch (_context61.prev = _context61.next) {
11169
11263
  case 0:
11170
11264
  params = {};
11171
11265
 
@@ -11175,21 +11269,21 @@ var StreamChat = /*#__PURE__*/function () {
11175
11269
  };
11176
11270
  }
11177
11271
 
11178
- _context58.next = 4;
11272
+ _context61.next = 4;
11179
11273
  return this.delete(this.baseURL + "/messages/".concat(messageID), params);
11180
11274
 
11181
11275
  case 4:
11182
- return _context58.abrupt("return", _context58.sent);
11276
+ return _context61.abrupt("return", _context61.sent);
11183
11277
 
11184
11278
  case 5:
11185
11279
  case "end":
11186
- return _context58.stop();
11280
+ return _context61.stop();
11187
11281
  }
11188
11282
  }
11189
- }, _callee58, this);
11283
+ }, _callee61, this);
11190
11284
  }));
11191
11285
 
11192
- function deleteMessage(_x77, _x78) {
11286
+ function deleteMessage(_x82, _x83) {
11193
11287
  return _deleteMessage.apply(this, arguments);
11194
11288
  }
11195
11289
 
@@ -11211,28 +11305,28 @@ var StreamChat = /*#__PURE__*/function () {
11211
11305
  }, {
11212
11306
  key: "undeleteMessage",
11213
11307
  value: function () {
11214
- var _undeleteMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee59(messageID, userID) {
11215
- return _regeneratorRuntime.wrap(function _callee59$(_context59) {
11308
+ var _undeleteMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee62(messageID, userID) {
11309
+ return _regeneratorRuntime.wrap(function _callee62$(_context62) {
11216
11310
  while (1) {
11217
- switch (_context59.prev = _context59.next) {
11311
+ switch (_context62.prev = _context62.next) {
11218
11312
  case 0:
11219
- _context59.next = 2;
11313
+ _context62.next = 2;
11220
11314
  return this.post(this.baseURL + "/messages/".concat(messageID, "/undelete"), {
11221
11315
  undeleted_by: userID
11222
11316
  });
11223
11317
 
11224
11318
  case 2:
11225
- return _context59.abrupt("return", _context59.sent);
11319
+ return _context62.abrupt("return", _context62.sent);
11226
11320
 
11227
11321
  case 3:
11228
11322
  case "end":
11229
- return _context59.stop();
11323
+ return _context62.stop();
11230
11324
  }
11231
11325
  }
11232
- }, _callee59, this);
11326
+ }, _callee62, this);
11233
11327
  }));
11234
11328
 
11235
- function undeleteMessage(_x79, _x80) {
11329
+ function undeleteMessage(_x84, _x85) {
11236
11330
  return _undeleteMessage.apply(this, arguments);
11237
11331
  }
11238
11332
 
@@ -11241,26 +11335,26 @@ var StreamChat = /*#__PURE__*/function () {
11241
11335
  }, {
11242
11336
  key: "getMessage",
11243
11337
  value: function () {
11244
- var _getMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee60(messageID, options) {
11245
- return _regeneratorRuntime.wrap(function _callee60$(_context60) {
11338
+ var _getMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee63(messageID, options) {
11339
+ return _regeneratorRuntime.wrap(function _callee63$(_context63) {
11246
11340
  while (1) {
11247
- switch (_context60.prev = _context60.next) {
11341
+ switch (_context63.prev = _context63.next) {
11248
11342
  case 0:
11249
- _context60.next = 2;
11343
+ _context63.next = 2;
11250
11344
  return this.get(this.baseURL + "/messages/".concat(encodeURIComponent(messageID)), _objectSpread({}, options));
11251
11345
 
11252
11346
  case 2:
11253
- return _context60.abrupt("return", _context60.sent);
11347
+ return _context63.abrupt("return", _context63.sent);
11254
11348
 
11255
11349
  case 3:
11256
11350
  case "end":
11257
- return _context60.stop();
11351
+ return _context63.stop();
11258
11352
  }
11259
11353
  }
11260
- }, _callee60, this);
11354
+ }, _callee63, this);
11261
11355
  }));
11262
11356
 
11263
- function getMessage(_x81, _x82) {
11357
+ function getMessage(_x86, _x87) {
11264
11358
  return _getMessage.apply(this, arguments);
11265
11359
  }
11266
11360
 
@@ -11281,13 +11375,13 @@ var StreamChat = /*#__PURE__*/function () {
11281
11375
  }, {
11282
11376
  key: "queryThreads",
11283
11377
  value: function () {
11284
- var _queryThreads = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee61(options) {
11378
+ var _queryThreads = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee64(options) {
11285
11379
  var _this5 = this;
11286
11380
 
11287
11381
  var opts, res;
11288
- return _regeneratorRuntime.wrap(function _callee61$(_context61) {
11382
+ return _regeneratorRuntime.wrap(function _callee64$(_context64) {
11289
11383
  while (1) {
11290
- switch (_context61.prev = _context61.next) {
11384
+ switch (_context64.prev = _context64.next) {
11291
11385
  case 0:
11292
11386
  opts = _objectSpread({
11293
11387
  limit: 10,
@@ -11295,12 +11389,12 @@ var StreamChat = /*#__PURE__*/function () {
11295
11389
  reply_limit: 3,
11296
11390
  watch: true
11297
11391
  }, options);
11298
- _context61.next = 3;
11392
+ _context64.next = 3;
11299
11393
  return this.post(this.baseURL + "/threads", opts);
11300
11394
 
11301
11395
  case 3:
11302
- res = _context61.sent;
11303
- return _context61.abrupt("return", {
11396
+ res = _context64.sent;
11397
+ return _context64.abrupt("return", {
11304
11398
  threads: res.threads.map(function (thread) {
11305
11399
  return new Thread(_this5, thread);
11306
11400
  }),
@@ -11309,13 +11403,13 @@ var StreamChat = /*#__PURE__*/function () {
11309
11403
 
11310
11404
  case 5:
11311
11405
  case "end":
11312
- return _context61.stop();
11406
+ return _context64.stop();
11313
11407
  }
11314
11408
  }
11315
- }, _callee61, this);
11409
+ }, _callee64, this);
11316
11410
  }));
11317
11411
 
11318
- function queryThreads(_x83) {
11412
+ function queryThreads(_x88) {
11319
11413
  return _queryThreads.apply(this, arguments);
11320
11414
  }
11321
11415
 
@@ -11336,19 +11430,19 @@ var StreamChat = /*#__PURE__*/function () {
11336
11430
  }, {
11337
11431
  key: "getThread",
11338
11432
  value: function () {
11339
- var _getThread = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee62(messageId) {
11433
+ var _getThread = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee65(messageId) {
11340
11434
  var options,
11341
11435
  opts,
11342
11436
  res,
11343
- _args62 = arguments;
11344
- return _regeneratorRuntime.wrap(function _callee62$(_context62) {
11437
+ _args65 = arguments;
11438
+ return _regeneratorRuntime.wrap(function _callee65$(_context65) {
11345
11439
  while (1) {
11346
- switch (_context62.prev = _context62.next) {
11440
+ switch (_context65.prev = _context65.next) {
11347
11441
  case 0:
11348
- options = _args62.length > 1 && _args62[1] !== undefined ? _args62[1] : {};
11442
+ options = _args65.length > 1 && _args65[1] !== undefined ? _args65[1] : {};
11349
11443
 
11350
11444
  if (messageId) {
11351
- _context62.next = 3;
11445
+ _context65.next = 3;
11352
11446
  break;
11353
11447
  }
11354
11448
 
@@ -11360,22 +11454,22 @@ var StreamChat = /*#__PURE__*/function () {
11360
11454
  reply_limit: 3,
11361
11455
  watch: true
11362
11456
  }, options);
11363
- _context62.next = 6;
11457
+ _context65.next = 6;
11364
11458
  return this.get(this.baseURL + "/threads/".concat(messageId), opts);
11365
11459
 
11366
11460
  case 6:
11367
- res = _context62.sent;
11368
- return _context62.abrupt("return", new Thread(this, res.thread));
11461
+ res = _context65.sent;
11462
+ return _context65.abrupt("return", new Thread(this, res.thread));
11369
11463
 
11370
11464
  case 8:
11371
11465
  case "end":
11372
- return _context62.stop();
11466
+ return _context65.stop();
11373
11467
  }
11374
11468
  }
11375
- }, _callee62, this);
11469
+ }, _callee65, this);
11376
11470
  }));
11377
11471
 
11378
- function getThread(_x84) {
11472
+ function getThread(_x89) {
11379
11473
  return _getThread.apply(this, arguments);
11380
11474
  }
11381
11475
 
@@ -11393,15 +11487,15 @@ var StreamChat = /*#__PURE__*/function () {
11393
11487
  }, {
11394
11488
  key: "partialUpdateThread",
11395
11489
  value: function () {
11396
- var _partialUpdateThread = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee63(messageId, partialThreadObject) {
11490
+ var _partialUpdateThread = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee66(messageId, partialThreadObject) {
11397
11491
  var reservedThreadFields, _key5;
11398
11492
 
11399
- return _regeneratorRuntime.wrap(function _callee63$(_context63) {
11493
+ return _regeneratorRuntime.wrap(function _callee66$(_context66) {
11400
11494
  while (1) {
11401
- switch (_context63.prev = _context63.next) {
11495
+ switch (_context66.prev = _context66.next) {
11402
11496
  case 0:
11403
11497
  if (messageId) {
11404
- _context63.next = 2;
11498
+ _context66.next = 2;
11405
11499
  break;
11406
11500
  }
11407
11501
 
@@ -11411,43 +11505,43 @@ var StreamChat = /*#__PURE__*/function () {
11411
11505
  // check for reserved fields from ThreadResponse type within partialThreadObject's set and unset.
11412
11506
  // Throw error if any of the reserved field is found.
11413
11507
  reservedThreadFields = ['created_at', 'id', 'last_message_at', 'type', 'updated_at', 'user', 'reply_count', 'participants', 'channel'];
11414
- _context63.t0 = _regeneratorRuntime.keys(_objectSpread(_objectSpread({}, partialThreadObject.set), partialThreadObject.unset));
11508
+ _context66.t0 = _regeneratorRuntime.keys(_objectSpread(_objectSpread({}, partialThreadObject.set), partialThreadObject.unset));
11415
11509
 
11416
11510
  case 4:
11417
- if ((_context63.t1 = _context63.t0()).done) {
11418
- _context63.next = 10;
11511
+ if ((_context66.t1 = _context66.t0()).done) {
11512
+ _context66.next = 10;
11419
11513
  break;
11420
11514
  }
11421
11515
 
11422
- _key5 = _context63.t1.value;
11516
+ _key5 = _context66.t1.value;
11423
11517
 
11424
11518
  if (!reservedThreadFields.includes(_key5)) {
11425
- _context63.next = 8;
11519
+ _context66.next = 8;
11426
11520
  break;
11427
11521
  }
11428
11522
 
11429
11523
  throw Error("You cannot set ".concat(_key5, " field on Thread object. ").concat(_key5, " is reserved for server-side use. Please omit ").concat(_key5, " from your set object."));
11430
11524
 
11431
11525
  case 8:
11432
- _context63.next = 4;
11526
+ _context66.next = 4;
11433
11527
  break;
11434
11528
 
11435
11529
  case 10:
11436
- _context63.next = 12;
11530
+ _context66.next = 12;
11437
11531
  return this.patch(this.baseURL + "/threads/".concat(messageId), partialThreadObject);
11438
11532
 
11439
11533
  case 12:
11440
- return _context63.abrupt("return", _context63.sent);
11534
+ return _context66.abrupt("return", _context66.sent);
11441
11535
 
11442
11536
  case 13:
11443
11537
  case "end":
11444
- return _context63.stop();
11538
+ return _context66.stop();
11445
11539
  }
11446
11540
  }
11447
- }, _callee63, this);
11541
+ }, _callee66, this);
11448
11542
  }));
11449
11543
 
11450
- function partialUpdateThread(_x85, _x86) {
11544
+ function partialUpdateThread(_x90, _x91) {
11451
11545
  return _partialUpdateThread.apply(this, arguments);
11452
11546
  }
11453
11547
 
@@ -11456,7 +11550,7 @@ var StreamChat = /*#__PURE__*/function () {
11456
11550
  }, {
11457
11551
  key: "getUserAgent",
11458
11552
  value: function getUserAgent() {
11459
- return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.33.1");
11553
+ return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.34.0");
11460
11554
  }
11461
11555
  }, {
11462
11556
  key: "setUserAgent",
@@ -11675,28 +11769,28 @@ var StreamChat = /*#__PURE__*/function () {
11675
11769
  }, {
11676
11770
  key: "sendUserCustomEvent",
11677
11771
  value: function () {
11678
- var _sendUserCustomEvent = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee64(targetUserID, event) {
11679
- return _regeneratorRuntime.wrap(function _callee64$(_context64) {
11772
+ var _sendUserCustomEvent = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee67(targetUserID, event) {
11773
+ return _regeneratorRuntime.wrap(function _callee67$(_context67) {
11680
11774
  while (1) {
11681
- switch (_context64.prev = _context64.next) {
11775
+ switch (_context67.prev = _context67.next) {
11682
11776
  case 0:
11683
- _context64.next = 2;
11777
+ _context67.next = 2;
11684
11778
  return this.post("".concat(this.baseURL, "/users/").concat(targetUserID, "/event"), {
11685
11779
  event: event
11686
11780
  });
11687
11781
 
11688
11782
  case 2:
11689
- return _context64.abrupt("return", _context64.sent);
11783
+ return _context67.abrupt("return", _context67.sent);
11690
11784
 
11691
11785
  case 3:
11692
11786
  case "end":
11693
- return _context64.stop();
11787
+ return _context67.stop();
11694
11788
  }
11695
11789
  }
11696
- }, _callee64, this);
11790
+ }, _callee67, this);
11697
11791
  }));
11698
11792
 
11699
- function sendUserCustomEvent(_x87, _x88) {
11793
+ function sendUserCustomEvent(_x92, _x93) {
11700
11794
  return _sendUserCustomEvent.apply(this, arguments);
11701
11795
  }
11702
11796
 
@@ -11793,28 +11887,28 @@ var StreamChat = /*#__PURE__*/function () {
11793
11887
  }, {
11794
11888
  key: "createSegment",
11795
11889
  value: function () {
11796
- var _createSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee65(type, id, data) {
11890
+ var _createSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee68(type, id, data) {
11797
11891
  var body;
11798
- return _regeneratorRuntime.wrap(function _callee65$(_context65) {
11892
+ return _regeneratorRuntime.wrap(function _callee68$(_context68) {
11799
11893
  while (1) {
11800
- switch (_context65.prev = _context65.next) {
11894
+ switch (_context68.prev = _context68.next) {
11801
11895
  case 0:
11802
11896
  this.validateServerSideAuth();
11803
11897
  body = _objectSpread({
11804
11898
  id: id,
11805
11899
  type: type
11806
11900
  }, data);
11807
- return _context65.abrupt("return", this.post(this.baseURL + "/segments", body));
11901
+ return _context68.abrupt("return", this.post(this.baseURL + "/segments", body));
11808
11902
 
11809
11903
  case 3:
11810
11904
  case "end":
11811
- return _context65.stop();
11905
+ return _context68.stop();
11812
11906
  }
11813
11907
  }
11814
- }, _callee65, this);
11908
+ }, _callee68, this);
11815
11909
  }));
11816
11910
 
11817
- function createSegment(_x89, _x90, _x91) {
11911
+ function createSegment(_x94, _x95, _x96) {
11818
11912
  return _createSegment.apply(this, arguments);
11819
11913
  }
11820
11914
 
@@ -11833,23 +11927,23 @@ var StreamChat = /*#__PURE__*/function () {
11833
11927
  }, {
11834
11928
  key: "createUserSegment",
11835
11929
  value: function () {
11836
- var _createUserSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee66(id, data) {
11837
- return _regeneratorRuntime.wrap(function _callee66$(_context66) {
11930
+ var _createUserSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee69(id, data) {
11931
+ return _regeneratorRuntime.wrap(function _callee69$(_context69) {
11838
11932
  while (1) {
11839
- switch (_context66.prev = _context66.next) {
11933
+ switch (_context69.prev = _context69.next) {
11840
11934
  case 0:
11841
11935
  this.validateServerSideAuth();
11842
- return _context66.abrupt("return", this.createSegment('user', id, data));
11936
+ return _context69.abrupt("return", this.createSegment('user', id, data));
11843
11937
 
11844
11938
  case 2:
11845
11939
  case "end":
11846
- return _context66.stop();
11940
+ return _context69.stop();
11847
11941
  }
11848
11942
  }
11849
- }, _callee66, this);
11943
+ }, _callee69, this);
11850
11944
  }));
11851
11945
 
11852
- function createUserSegment(_x92, _x93) {
11946
+ function createUserSegment(_x97, _x98) {
11853
11947
  return _createUserSegment.apply(this, arguments);
11854
11948
  }
11855
11949
 
@@ -11868,23 +11962,23 @@ var StreamChat = /*#__PURE__*/function () {
11868
11962
  }, {
11869
11963
  key: "createChannelSegment",
11870
11964
  value: function () {
11871
- var _createChannelSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee67(id, data) {
11872
- return _regeneratorRuntime.wrap(function _callee67$(_context67) {
11965
+ var _createChannelSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee70(id, data) {
11966
+ return _regeneratorRuntime.wrap(function _callee70$(_context70) {
11873
11967
  while (1) {
11874
- switch (_context67.prev = _context67.next) {
11968
+ switch (_context70.prev = _context70.next) {
11875
11969
  case 0:
11876
11970
  this.validateServerSideAuth();
11877
- return _context67.abrupt("return", this.createSegment('channel', id, data));
11971
+ return _context70.abrupt("return", this.createSegment('channel', id, data));
11878
11972
 
11879
11973
  case 2:
11880
11974
  case "end":
11881
- return _context67.stop();
11975
+ return _context70.stop();
11882
11976
  }
11883
11977
  }
11884
- }, _callee67, this);
11978
+ }, _callee70, this);
11885
11979
  }));
11886
11980
 
11887
- function createChannelSegment(_x94, _x95) {
11981
+ function createChannelSegment(_x99, _x100) {
11888
11982
  return _createChannelSegment.apply(this, arguments);
11889
11983
  }
11890
11984
 
@@ -11893,23 +11987,23 @@ var StreamChat = /*#__PURE__*/function () {
11893
11987
  }, {
11894
11988
  key: "getSegment",
11895
11989
  value: function () {
11896
- var _getSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee68(id) {
11897
- return _regeneratorRuntime.wrap(function _callee68$(_context68) {
11990
+ var _getSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee71(id) {
11991
+ return _regeneratorRuntime.wrap(function _callee71$(_context71) {
11898
11992
  while (1) {
11899
- switch (_context68.prev = _context68.next) {
11993
+ switch (_context71.prev = _context71.next) {
11900
11994
  case 0:
11901
11995
  this.validateServerSideAuth();
11902
- return _context68.abrupt("return", this.get(this.baseURL + "/segments/".concat(id)));
11996
+ return _context71.abrupt("return", this.get(this.baseURL + "/segments/".concat(id)));
11903
11997
 
11904
11998
  case 2:
11905
11999
  case "end":
11906
- return _context68.stop();
12000
+ return _context71.stop();
11907
12001
  }
11908
12002
  }
11909
- }, _callee68, this);
12003
+ }, _callee71, this);
11910
12004
  }));
11911
12005
 
11912
- function getSegment(_x96) {
12006
+ function getSegment(_x101) {
11913
12007
  return _getSegment.apply(this, arguments);
11914
12008
  }
11915
12009
 
@@ -11927,23 +12021,23 @@ var StreamChat = /*#__PURE__*/function () {
11927
12021
  }, {
11928
12022
  key: "updateSegment",
11929
12023
  value: function () {
11930
- var _updateSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee69(id, data) {
11931
- return _regeneratorRuntime.wrap(function _callee69$(_context69) {
12024
+ var _updateSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee72(id, data) {
12025
+ return _regeneratorRuntime.wrap(function _callee72$(_context72) {
11932
12026
  while (1) {
11933
- switch (_context69.prev = _context69.next) {
12027
+ switch (_context72.prev = _context72.next) {
11934
12028
  case 0:
11935
12029
  this.validateServerSideAuth();
11936
- return _context69.abrupt("return", this.put(this.baseURL + "/segments/".concat(id), data));
12030
+ return _context72.abrupt("return", this.put(this.baseURL + "/segments/".concat(id), data));
11937
12031
 
11938
12032
  case 2:
11939
12033
  case "end":
11940
- return _context69.stop();
12034
+ return _context72.stop();
11941
12035
  }
11942
12036
  }
11943
- }, _callee69, this);
12037
+ }, _callee72, this);
11944
12038
  }));
11945
12039
 
11946
- function updateSegment(_x97, _x98) {
12040
+ function updateSegment(_x102, _x103) {
11947
12041
  return _updateSegment.apply(this, arguments);
11948
12042
  }
11949
12043
 
@@ -11961,27 +12055,27 @@ var StreamChat = /*#__PURE__*/function () {
11961
12055
  }, {
11962
12056
  key: "addSegmentTargets",
11963
12057
  value: function () {
11964
- var _addSegmentTargets = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee70(id, targets) {
12058
+ var _addSegmentTargets = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee73(id, targets) {
11965
12059
  var body;
11966
- return _regeneratorRuntime.wrap(function _callee70$(_context70) {
12060
+ return _regeneratorRuntime.wrap(function _callee73$(_context73) {
11967
12061
  while (1) {
11968
- switch (_context70.prev = _context70.next) {
12062
+ switch (_context73.prev = _context73.next) {
11969
12063
  case 0:
11970
12064
  this.validateServerSideAuth();
11971
12065
  body = {
11972
12066
  target_ids: targets
11973
12067
  };
11974
- return _context70.abrupt("return", this.post(this.baseURL + "/segments/".concat(id, "/addtargets"), body));
12068
+ return _context73.abrupt("return", this.post(this.baseURL + "/segments/".concat(id, "/addtargets"), body));
11975
12069
 
11976
12070
  case 3:
11977
12071
  case "end":
11978
- return _context70.stop();
12072
+ return _context73.stop();
11979
12073
  }
11980
12074
  }
11981
- }, _callee70, this);
12075
+ }, _callee73, this);
11982
12076
  }));
11983
12077
 
11984
- function addSegmentTargets(_x99, _x100) {
12078
+ function addSegmentTargets(_x104, _x105) {
11985
12079
  return _addSegmentTargets.apply(this, arguments);
11986
12080
  }
11987
12081
 
@@ -11990,33 +12084,33 @@ var StreamChat = /*#__PURE__*/function () {
11990
12084
  }, {
11991
12085
  key: "querySegmentTargets",
11992
12086
  value: function () {
11993
- var _querySegmentTargets = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee71(id) {
12087
+ var _querySegmentTargets = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee74(id) {
11994
12088
  var filter,
11995
12089
  sort,
11996
12090
  options,
11997
- _args71 = arguments;
11998
- return _regeneratorRuntime.wrap(function _callee71$(_context71) {
12091
+ _args74 = arguments;
12092
+ return _regeneratorRuntime.wrap(function _callee74$(_context74) {
11999
12093
  while (1) {
12000
- switch (_context71.prev = _context71.next) {
12094
+ switch (_context74.prev = _context74.next) {
12001
12095
  case 0:
12002
- filter = _args71.length > 1 && _args71[1] !== undefined ? _args71[1] : {};
12003
- sort = _args71.length > 2 && _args71[2] !== undefined ? _args71[2] : [];
12004
- options = _args71.length > 3 && _args71[3] !== undefined ? _args71[3] : {};
12096
+ filter = _args74.length > 1 && _args74[1] !== undefined ? _args74[1] : {};
12097
+ sort = _args74.length > 2 && _args74[2] !== undefined ? _args74[2] : [];
12098
+ options = _args74.length > 3 && _args74[3] !== undefined ? _args74[3] : {};
12005
12099
  this.validateServerSideAuth();
12006
- return _context71.abrupt("return", this.post(this.baseURL + "/segments/".concat(id, "/targets/query"), _objectSpread({
12100
+ return _context74.abrupt("return", this.post(this.baseURL + "/segments/".concat(id, "/targets/query"), _objectSpread({
12007
12101
  filter: filter || {},
12008
12102
  sort: sort || []
12009
12103
  }, options)));
12010
12104
 
12011
12105
  case 5:
12012
12106
  case "end":
12013
- return _context71.stop();
12107
+ return _context74.stop();
12014
12108
  }
12015
12109
  }
12016
- }, _callee71, this);
12110
+ }, _callee74, this);
12017
12111
  }));
12018
12112
 
12019
- function querySegmentTargets(_x101) {
12113
+ function querySegmentTargets(_x106) {
12020
12114
  return _querySegmentTargets.apply(this, arguments);
12021
12115
  }
12022
12116
 
@@ -12034,27 +12128,27 @@ var StreamChat = /*#__PURE__*/function () {
12034
12128
  }, {
12035
12129
  key: "removeSegmentTargets",
12036
12130
  value: function () {
12037
- var _removeSegmentTargets = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee72(id, targets) {
12131
+ var _removeSegmentTargets = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee75(id, targets) {
12038
12132
  var body;
12039
- return _regeneratorRuntime.wrap(function _callee72$(_context72) {
12133
+ return _regeneratorRuntime.wrap(function _callee75$(_context75) {
12040
12134
  while (1) {
12041
- switch (_context72.prev = _context72.next) {
12135
+ switch (_context75.prev = _context75.next) {
12042
12136
  case 0:
12043
12137
  this.validateServerSideAuth();
12044
12138
  body = {
12045
12139
  target_ids: targets
12046
12140
  };
12047
- return _context72.abrupt("return", this.post(this.baseURL + "/segments/".concat(id, "/deletetargets"), body));
12141
+ return _context75.abrupt("return", this.post(this.baseURL + "/segments/".concat(id, "/deletetargets"), body));
12048
12142
 
12049
12143
  case 3:
12050
12144
  case "end":
12051
- return _context72.stop();
12145
+ return _context75.stop();
12052
12146
  }
12053
12147
  }
12054
- }, _callee72, this);
12148
+ }, _callee75, this);
12055
12149
  }));
12056
12150
 
12057
- function removeSegmentTargets(_x102, _x103) {
12151
+ function removeSegmentTargets(_x107, _x108) {
12058
12152
  return _removeSegmentTargets.apply(this, arguments);
12059
12153
  }
12060
12154
 
@@ -12072,29 +12166,29 @@ var StreamChat = /*#__PURE__*/function () {
12072
12166
  }, {
12073
12167
  key: "querySegments",
12074
12168
  value: function () {
12075
- var _querySegments = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee73(filter, sort) {
12169
+ var _querySegments = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee76(filter, sort) {
12076
12170
  var options,
12077
- _args73 = arguments;
12078
- return _regeneratorRuntime.wrap(function _callee73$(_context73) {
12171
+ _args76 = arguments;
12172
+ return _regeneratorRuntime.wrap(function _callee76$(_context76) {
12079
12173
  while (1) {
12080
- switch (_context73.prev = _context73.next) {
12174
+ switch (_context76.prev = _context76.next) {
12081
12175
  case 0:
12082
- options = _args73.length > 2 && _args73[2] !== undefined ? _args73[2] : {};
12176
+ options = _args76.length > 2 && _args76[2] !== undefined ? _args76[2] : {};
12083
12177
  this.validateServerSideAuth();
12084
- return _context73.abrupt("return", this.post(this.baseURL + "/segments/query", _objectSpread({
12178
+ return _context76.abrupt("return", this.post(this.baseURL + "/segments/query", _objectSpread({
12085
12179
  filter: filter,
12086
12180
  sort: sort
12087
12181
  }, options)));
12088
12182
 
12089
12183
  case 3:
12090
12184
  case "end":
12091
- return _context73.stop();
12185
+ return _context76.stop();
12092
12186
  }
12093
12187
  }
12094
- }, _callee73, this);
12188
+ }, _callee76, this);
12095
12189
  }));
12096
12190
 
12097
- function querySegments(_x104, _x105) {
12191
+ function querySegments(_x109, _x110) {
12098
12192
  return _querySegments.apply(this, arguments);
12099
12193
  }
12100
12194
 
@@ -12111,23 +12205,23 @@ var StreamChat = /*#__PURE__*/function () {
12111
12205
  }, {
12112
12206
  key: "deleteSegment",
12113
12207
  value: function () {
12114
- var _deleteSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee74(id) {
12115
- return _regeneratorRuntime.wrap(function _callee74$(_context74) {
12208
+ var _deleteSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee77(id) {
12209
+ return _regeneratorRuntime.wrap(function _callee77$(_context77) {
12116
12210
  while (1) {
12117
- switch (_context74.prev = _context74.next) {
12211
+ switch (_context77.prev = _context77.next) {
12118
12212
  case 0:
12119
12213
  this.validateServerSideAuth();
12120
- return _context74.abrupt("return", this.delete(this.baseURL + "/segments/".concat(id)));
12214
+ return _context77.abrupt("return", this.delete(this.baseURL + "/segments/".concat(id)));
12121
12215
 
12122
12216
  case 2:
12123
12217
  case "end":
12124
- return _context74.stop();
12218
+ return _context77.stop();
12125
12219
  }
12126
12220
  }
12127
- }, _callee74, this);
12221
+ }, _callee77, this);
12128
12222
  }));
12129
12223
 
12130
- function deleteSegment(_x106) {
12224
+ function deleteSegment(_x111) {
12131
12225
  return _deleteSegment.apply(this, arguments);
12132
12226
  }
12133
12227
 
@@ -12145,23 +12239,23 @@ var StreamChat = /*#__PURE__*/function () {
12145
12239
  }, {
12146
12240
  key: "segmentTargetExists",
12147
12241
  value: function () {
12148
- var _segmentTargetExists = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee75(segmentId, targetId) {
12149
- return _regeneratorRuntime.wrap(function _callee75$(_context75) {
12242
+ var _segmentTargetExists = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee78(segmentId, targetId) {
12243
+ return _regeneratorRuntime.wrap(function _callee78$(_context78) {
12150
12244
  while (1) {
12151
- switch (_context75.prev = _context75.next) {
12245
+ switch (_context78.prev = _context78.next) {
12152
12246
  case 0:
12153
12247
  this.validateServerSideAuth();
12154
- return _context75.abrupt("return", this.get(this.baseURL + "/segments/".concat(segmentId, "/target/").concat(targetId)));
12248
+ return _context78.abrupt("return", this.get(this.baseURL + "/segments/".concat(segmentId, "/target/").concat(targetId)));
12155
12249
 
12156
12250
  case 2:
12157
12251
  case "end":
12158
- return _context75.stop();
12252
+ return _context78.stop();
12159
12253
  }
12160
12254
  }
12161
- }, _callee75, this);
12255
+ }, _callee78, this);
12162
12256
  }));
12163
12257
 
12164
- function segmentTargetExists(_x107, _x108) {
12258
+ function segmentTargetExists(_x112, _x113) {
12165
12259
  return _segmentTargetExists.apply(this, arguments);
12166
12260
  }
12167
12261
 
@@ -12178,23 +12272,23 @@ var StreamChat = /*#__PURE__*/function () {
12178
12272
  }, {
12179
12273
  key: "createCampaign",
12180
12274
  value: function () {
12181
- var _createCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee76(params) {
12182
- return _regeneratorRuntime.wrap(function _callee76$(_context76) {
12275
+ var _createCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee79(params) {
12276
+ return _regeneratorRuntime.wrap(function _callee79$(_context79) {
12183
12277
  while (1) {
12184
- switch (_context76.prev = _context76.next) {
12278
+ switch (_context79.prev = _context79.next) {
12185
12279
  case 0:
12186
12280
  this.validateServerSideAuth();
12187
- return _context76.abrupt("return", this.post(this.baseURL + "/campaigns", _objectSpread({}, params)));
12281
+ return _context79.abrupt("return", this.post(this.baseURL + "/campaigns", _objectSpread({}, params)));
12188
12282
 
12189
12283
  case 2:
12190
12284
  case "end":
12191
- return _context76.stop();
12285
+ return _context79.stop();
12192
12286
  }
12193
12287
  }
12194
- }, _callee76, this);
12288
+ }, _callee79, this);
12195
12289
  }));
12196
12290
 
12197
- function createCampaign(_x109) {
12291
+ function createCampaign(_x114) {
12198
12292
  return _createCampaign.apply(this, arguments);
12199
12293
  }
12200
12294
 
@@ -12203,23 +12297,23 @@ var StreamChat = /*#__PURE__*/function () {
12203
12297
  }, {
12204
12298
  key: "getCampaign",
12205
12299
  value: function () {
12206
- var _getCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee77(id) {
12207
- return _regeneratorRuntime.wrap(function _callee77$(_context77) {
12300
+ var _getCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee80(id) {
12301
+ return _regeneratorRuntime.wrap(function _callee80$(_context80) {
12208
12302
  while (1) {
12209
- switch (_context77.prev = _context77.next) {
12303
+ switch (_context80.prev = _context80.next) {
12210
12304
  case 0:
12211
12305
  this.validateServerSideAuth();
12212
- return _context77.abrupt("return", this.get(this.baseURL + "/campaigns/".concat(id)));
12306
+ return _context80.abrupt("return", this.get(this.baseURL + "/campaigns/".concat(id)));
12213
12307
 
12214
12308
  case 2:
12215
12309
  case "end":
12216
- return _context77.stop();
12310
+ return _context80.stop();
12217
12311
  }
12218
12312
  }
12219
- }, _callee77, this);
12313
+ }, _callee80, this);
12220
12314
  }));
12221
12315
 
12222
- function getCampaign(_x110) {
12316
+ function getCampaign(_x115) {
12223
12317
  return _getCampaign.apply(this, arguments);
12224
12318
  }
12225
12319
 
@@ -12228,26 +12322,26 @@ var StreamChat = /*#__PURE__*/function () {
12228
12322
  }, {
12229
12323
  key: "startCampaign",
12230
12324
  value: function () {
12231
- var _startCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee78(id, options) {
12232
- return _regeneratorRuntime.wrap(function _callee78$(_context78) {
12325
+ var _startCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee81(id, options) {
12326
+ return _regeneratorRuntime.wrap(function _callee81$(_context81) {
12233
12327
  while (1) {
12234
- switch (_context78.prev = _context78.next) {
12328
+ switch (_context81.prev = _context81.next) {
12235
12329
  case 0:
12236
12330
  this.validateServerSideAuth();
12237
- return _context78.abrupt("return", this.post(this.baseURL + "/campaigns/".concat(id, "/start"), {
12331
+ return _context81.abrupt("return", this.post(this.baseURL + "/campaigns/".concat(id, "/start"), {
12238
12332
  scheduled_for: options === null || options === void 0 ? void 0 : options.scheduledFor,
12239
12333
  stop_at: options === null || options === void 0 ? void 0 : options.stopAt
12240
12334
  }));
12241
12335
 
12242
12336
  case 2:
12243
12337
  case "end":
12244
- return _context78.stop();
12338
+ return _context81.stop();
12245
12339
  }
12246
12340
  }
12247
- }, _callee78, this);
12341
+ }, _callee81, this);
12248
12342
  }));
12249
12343
 
12250
- function startCampaign(_x111, _x112) {
12344
+ function startCampaign(_x116, _x117) {
12251
12345
  return _startCampaign.apply(this, arguments);
12252
12346
  }
12253
12347
 
@@ -12263,30 +12357,30 @@ var StreamChat = /*#__PURE__*/function () {
12263
12357
  }, {
12264
12358
  key: "queryCampaigns",
12265
12359
  value: function () {
12266
- var _queryCampaigns = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee79(filter, sort, options) {
12267
- return _regeneratorRuntime.wrap(function _callee79$(_context79) {
12360
+ var _queryCampaigns = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee82(filter, sort, options) {
12361
+ return _regeneratorRuntime.wrap(function _callee82$(_context82) {
12268
12362
  while (1) {
12269
- switch (_context79.prev = _context79.next) {
12363
+ switch (_context82.prev = _context82.next) {
12270
12364
  case 0:
12271
12365
  this.validateServerSideAuth();
12272
- _context79.next = 3;
12366
+ _context82.next = 3;
12273
12367
  return this.post(this.baseURL + "/campaigns/query", _objectSpread({
12274
12368
  filter: filter,
12275
12369
  sort: sort
12276
12370
  }, options || {}));
12277
12371
 
12278
12372
  case 3:
12279
- return _context79.abrupt("return", _context79.sent);
12373
+ return _context82.abrupt("return", _context82.sent);
12280
12374
 
12281
12375
  case 4:
12282
12376
  case "end":
12283
- return _context79.stop();
12377
+ return _context82.stop();
12284
12378
  }
12285
12379
  }
12286
- }, _callee79, this);
12380
+ }, _callee82, this);
12287
12381
  }));
12288
12382
 
12289
- function queryCampaigns(_x113, _x114, _x115) {
12383
+ function queryCampaigns(_x118, _x119, _x120) {
12290
12384
  return _queryCampaigns.apply(this, arguments);
12291
12385
  }
12292
12386
 
@@ -12304,23 +12398,23 @@ var StreamChat = /*#__PURE__*/function () {
12304
12398
  }, {
12305
12399
  key: "updateCampaign",
12306
12400
  value: function () {
12307
- var _updateCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee80(id, params) {
12308
- return _regeneratorRuntime.wrap(function _callee80$(_context80) {
12401
+ var _updateCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee83(id, params) {
12402
+ return _regeneratorRuntime.wrap(function _callee83$(_context83) {
12309
12403
  while (1) {
12310
- switch (_context80.prev = _context80.next) {
12404
+ switch (_context83.prev = _context83.next) {
12311
12405
  case 0:
12312
12406
  this.validateServerSideAuth();
12313
- return _context80.abrupt("return", this.put(this.baseURL + "/campaigns/".concat(id), params));
12407
+ return _context83.abrupt("return", this.put(this.baseURL + "/campaigns/".concat(id), params));
12314
12408
 
12315
12409
  case 2:
12316
12410
  case "end":
12317
- return _context80.stop();
12411
+ return _context83.stop();
12318
12412
  }
12319
12413
  }
12320
- }, _callee80, this);
12414
+ }, _callee83, this);
12321
12415
  }));
12322
12416
 
12323
- function updateCampaign(_x116, _x117) {
12417
+ function updateCampaign(_x121, _x122) {
12324
12418
  return _updateCampaign.apply(this, arguments);
12325
12419
  }
12326
12420
 
@@ -12337,23 +12431,23 @@ var StreamChat = /*#__PURE__*/function () {
12337
12431
  }, {
12338
12432
  key: "deleteCampaign",
12339
12433
  value: function () {
12340
- var _deleteCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee81(id) {
12341
- return _regeneratorRuntime.wrap(function _callee81$(_context81) {
12434
+ var _deleteCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee84(id) {
12435
+ return _regeneratorRuntime.wrap(function _callee84$(_context84) {
12342
12436
  while (1) {
12343
- switch (_context81.prev = _context81.next) {
12437
+ switch (_context84.prev = _context84.next) {
12344
12438
  case 0:
12345
12439
  this.validateServerSideAuth();
12346
- return _context81.abrupt("return", this.delete(this.baseURL + "/campaigns/".concat(id)));
12440
+ return _context84.abrupt("return", this.delete(this.baseURL + "/campaigns/".concat(id)));
12347
12441
 
12348
12442
  case 2:
12349
12443
  case "end":
12350
- return _context81.stop();
12444
+ return _context84.stop();
12351
12445
  }
12352
12446
  }
12353
- }, _callee81, this);
12447
+ }, _callee84, this);
12354
12448
  }));
12355
12449
 
12356
- function deleteCampaign(_x118) {
12450
+ function deleteCampaign(_x123) {
12357
12451
  return _deleteCampaign.apply(this, arguments);
12358
12452
  }
12359
12453
 
@@ -12370,23 +12464,23 @@ var StreamChat = /*#__PURE__*/function () {
12370
12464
  }, {
12371
12465
  key: "stopCampaign",
12372
12466
  value: function () {
12373
- var _stopCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee82(id) {
12374
- return _regeneratorRuntime.wrap(function _callee82$(_context82) {
12467
+ var _stopCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee85(id) {
12468
+ return _regeneratorRuntime.wrap(function _callee85$(_context85) {
12375
12469
  while (1) {
12376
- switch (_context82.prev = _context82.next) {
12470
+ switch (_context85.prev = _context85.next) {
12377
12471
  case 0:
12378
12472
  this.validateServerSideAuth();
12379
- return _context82.abrupt("return", this.post(this.baseURL + "/campaigns/".concat(id, "/stop")));
12473
+ return _context85.abrupt("return", this.post(this.baseURL + "/campaigns/".concat(id, "/stop")));
12380
12474
 
12381
12475
  case 2:
12382
12476
  case "end":
12383
- return _context82.stop();
12477
+ return _context85.stop();
12384
12478
  }
12385
12479
  }
12386
- }, _callee82, this);
12480
+ }, _callee85, this);
12387
12481
  }));
12388
12482
 
12389
- function stopCampaign(_x119) {
12483
+ function stopCampaign(_x124) {
12390
12484
  return _stopCampaign.apply(this, arguments);
12391
12485
  }
12392
12486
 
@@ -12402,24 +12496,24 @@ var StreamChat = /*#__PURE__*/function () {
12402
12496
  }, {
12403
12497
  key: "enrichURL",
12404
12498
  value: function () {
12405
- var _enrichURL = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee83(url) {
12406
- return _regeneratorRuntime.wrap(function _callee83$(_context83) {
12499
+ var _enrichURL = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee86(url) {
12500
+ return _regeneratorRuntime.wrap(function _callee86$(_context86) {
12407
12501
  while (1) {
12408
- switch (_context83.prev = _context83.next) {
12502
+ switch (_context86.prev = _context86.next) {
12409
12503
  case 0:
12410
- return _context83.abrupt("return", this.get(this.baseURL + "/og", {
12504
+ return _context86.abrupt("return", this.get(this.baseURL + "/og", {
12411
12505
  url: url
12412
12506
  }));
12413
12507
 
12414
12508
  case 1:
12415
12509
  case "end":
12416
- return _context83.stop();
12510
+ return _context86.stop();
12417
12511
  }
12418
12512
  }
12419
- }, _callee83, this);
12513
+ }, _callee86, this);
12420
12514
  }));
12421
12515
 
12422
- function enrichURL(_x120) {
12516
+ function enrichURL(_x125) {
12423
12517
  return _enrichURL.apply(this, arguments);
12424
12518
  }
12425
12519
 
@@ -12436,22 +12530,22 @@ var StreamChat = /*#__PURE__*/function () {
12436
12530
  }, {
12437
12531
  key: "getTask",
12438
12532
  value: function () {
12439
- var _getTask = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee84(id) {
12440
- return _regeneratorRuntime.wrap(function _callee84$(_context84) {
12533
+ var _getTask = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee87(id) {
12534
+ return _regeneratorRuntime.wrap(function _callee87$(_context87) {
12441
12535
  while (1) {
12442
- switch (_context84.prev = _context84.next) {
12536
+ switch (_context87.prev = _context87.next) {
12443
12537
  case 0:
12444
- return _context84.abrupt("return", this.get("".concat(this.baseURL, "/tasks/").concat(id)));
12538
+ return _context87.abrupt("return", this.get("".concat(this.baseURL, "/tasks/").concat(id)));
12445
12539
 
12446
12540
  case 1:
12447
12541
  case "end":
12448
- return _context84.stop();
12542
+ return _context87.stop();
12449
12543
  }
12450
12544
  }
12451
- }, _callee84, this);
12545
+ }, _callee87, this);
12452
12546
  }));
12453
12547
 
12454
- function getTask(_x121) {
12548
+ function getTask(_x126) {
12455
12549
  return _getTask.apply(this, arguments);
12456
12550
  }
12457
12551
 
@@ -12469,31 +12563,31 @@ var StreamChat = /*#__PURE__*/function () {
12469
12563
  }, {
12470
12564
  key: "deleteChannels",
12471
12565
  value: function () {
12472
- var _deleteChannels = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee85(cids) {
12566
+ var _deleteChannels = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee88(cids) {
12473
12567
  var options,
12474
- _args85 = arguments;
12475
- return _regeneratorRuntime.wrap(function _callee85$(_context85) {
12568
+ _args88 = arguments;
12569
+ return _regeneratorRuntime.wrap(function _callee88$(_context88) {
12476
12570
  while (1) {
12477
- switch (_context85.prev = _context85.next) {
12571
+ switch (_context88.prev = _context88.next) {
12478
12572
  case 0:
12479
- options = _args85.length > 1 && _args85[1] !== undefined ? _args85[1] : {};
12480
- _context85.next = 3;
12573
+ options = _args88.length > 1 && _args88[1] !== undefined ? _args88[1] : {};
12574
+ _context88.next = 3;
12481
12575
  return this.post(this.baseURL + "/channels/delete", _objectSpread({
12482
12576
  cids: cids
12483
12577
  }, options));
12484
12578
 
12485
12579
  case 3:
12486
- return _context85.abrupt("return", _context85.sent);
12580
+ return _context88.abrupt("return", _context88.sent);
12487
12581
 
12488
12582
  case 4:
12489
12583
  case "end":
12490
- return _context85.stop();
12584
+ return _context88.stop();
12491
12585
  }
12492
12586
  }
12493
- }, _callee85, this);
12587
+ }, _callee88, this);
12494
12588
  }));
12495
12589
 
12496
- function deleteChannels(_x122) {
12590
+ function deleteChannels(_x127) {
12497
12591
  return _deleteChannels.apply(this, arguments);
12498
12592
  }
12499
12593
 
@@ -12511,17 +12605,17 @@ var StreamChat = /*#__PURE__*/function () {
12511
12605
  }, {
12512
12606
  key: "deleteUsers",
12513
12607
  value: function () {
12514
- var _deleteUsers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee86(user_ids) {
12608
+ var _deleteUsers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee89(user_ids) {
12515
12609
  var options,
12516
- _args86 = arguments;
12517
- return _regeneratorRuntime.wrap(function _callee86$(_context86) {
12610
+ _args89 = arguments;
12611
+ return _regeneratorRuntime.wrap(function _callee89$(_context89) {
12518
12612
  while (1) {
12519
- switch (_context86.prev = _context86.next) {
12613
+ switch (_context89.prev = _context89.next) {
12520
12614
  case 0:
12521
- options = _args86.length > 1 && _args86[1] !== undefined ? _args86[1] : {};
12615
+ options = _args89.length > 1 && _args89[1] !== undefined ? _args89[1] : {};
12522
12616
 
12523
12617
  if (!(typeof options.user !== 'undefined' && !['soft', 'hard', 'pruning'].includes(options.user))) {
12524
- _context86.next = 3;
12618
+ _context89.next = 3;
12525
12619
  break;
12526
12620
  }
12527
12621
 
@@ -12529,7 +12623,7 @@ var StreamChat = /*#__PURE__*/function () {
12529
12623
 
12530
12624
  case 3:
12531
12625
  if (!(typeof options.conversations !== 'undefined' && !['soft', 'hard'].includes(options.conversations))) {
12532
- _context86.next = 5;
12626
+ _context89.next = 5;
12533
12627
  break;
12534
12628
  }
12535
12629
 
@@ -12537,30 +12631,30 @@ var StreamChat = /*#__PURE__*/function () {
12537
12631
 
12538
12632
  case 5:
12539
12633
  if (!(typeof options.messages !== 'undefined' && !['soft', 'hard', 'pruning'].includes(options.messages))) {
12540
- _context86.next = 7;
12634
+ _context89.next = 7;
12541
12635
  break;
12542
12636
  }
12543
12637
 
12544
12638
  throw new Error('Invalid delete user options. messages must be one of [soft hard pruning]');
12545
12639
 
12546
12640
  case 7:
12547
- _context86.next = 9;
12641
+ _context89.next = 9;
12548
12642
  return this.post(this.baseURL + "/users/delete", _objectSpread({
12549
12643
  user_ids: user_ids
12550
12644
  }, options));
12551
12645
 
12552
12646
  case 9:
12553
- return _context86.abrupt("return", _context86.sent);
12647
+ return _context89.abrupt("return", _context89.sent);
12554
12648
 
12555
12649
  case 10:
12556
12650
  case "end":
12557
- return _context86.stop();
12651
+ return _context89.stop();
12558
12652
  }
12559
12653
  }
12560
- }, _callee86, this);
12654
+ }, _callee89, this);
12561
12655
  }));
12562
12656
 
12563
- function deleteUsers(_x123) {
12657
+ function deleteUsers(_x128) {
12564
12658
  return _deleteUsers.apply(this, arguments);
12565
12659
  }
12566
12660
 
@@ -12581,28 +12675,28 @@ var StreamChat = /*#__PURE__*/function () {
12581
12675
  }, {
12582
12676
  key: "_createImportURL",
12583
12677
  value: function () {
12584
- var _createImportURL2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee87(filename) {
12585
- return _regeneratorRuntime.wrap(function _callee87$(_context87) {
12678
+ var _createImportURL2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee90(filename) {
12679
+ return _regeneratorRuntime.wrap(function _callee90$(_context90) {
12586
12680
  while (1) {
12587
- switch (_context87.prev = _context87.next) {
12681
+ switch (_context90.prev = _context90.next) {
12588
12682
  case 0:
12589
- _context87.next = 2;
12683
+ _context90.next = 2;
12590
12684
  return this.post(this.baseURL + "/import_urls", {
12591
12685
  filename: filename
12592
12686
  });
12593
12687
 
12594
12688
  case 2:
12595
- return _context87.abrupt("return", _context87.sent);
12689
+ return _context90.abrupt("return", _context90.sent);
12596
12690
 
12597
12691
  case 3:
12598
12692
  case "end":
12599
- return _context87.stop();
12693
+ return _context90.stop();
12600
12694
  }
12601
12695
  }
12602
- }, _callee87, this);
12696
+ }, _callee90, this);
12603
12697
  }));
12604
12698
 
12605
- function _createImportURL(_x124) {
12699
+ function _createImportURL(_x129) {
12606
12700
  return _createImportURL2.apply(this, arguments);
12607
12701
  }
12608
12702
 
@@ -12624,33 +12718,33 @@ var StreamChat = /*#__PURE__*/function () {
12624
12718
  }, {
12625
12719
  key: "_createImport",
12626
12720
  value: function () {
12627
- var _createImport2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee88(path) {
12721
+ var _createImport2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee91(path) {
12628
12722
  var options,
12629
- _args88 = arguments;
12630
- return _regeneratorRuntime.wrap(function _callee88$(_context88) {
12723
+ _args91 = arguments;
12724
+ return _regeneratorRuntime.wrap(function _callee91$(_context91) {
12631
12725
  while (1) {
12632
- switch (_context88.prev = _context88.next) {
12726
+ switch (_context91.prev = _context91.next) {
12633
12727
  case 0:
12634
- options = _args88.length > 1 && _args88[1] !== undefined ? _args88[1] : {
12728
+ options = _args91.length > 1 && _args91[1] !== undefined ? _args91[1] : {
12635
12729
  mode: 'upsert'
12636
12730
  };
12637
- _context88.next = 3;
12731
+ _context91.next = 3;
12638
12732
  return this.post(this.baseURL + "/imports", _objectSpread({
12639
12733
  path: path
12640
12734
  }, options));
12641
12735
 
12642
12736
  case 3:
12643
- return _context88.abrupt("return", _context88.sent);
12737
+ return _context91.abrupt("return", _context91.sent);
12644
12738
 
12645
12739
  case 4:
12646
12740
  case "end":
12647
- return _context88.stop();
12741
+ return _context91.stop();
12648
12742
  }
12649
12743
  }
12650
- }, _callee88, this);
12744
+ }, _callee91, this);
12651
12745
  }));
12652
12746
 
12653
- function _createImport(_x125) {
12747
+ function _createImport(_x130) {
12654
12748
  return _createImport2.apply(this, arguments);
12655
12749
  }
12656
12750
 
@@ -12672,26 +12766,26 @@ var StreamChat = /*#__PURE__*/function () {
12672
12766
  }, {
12673
12767
  key: "_getImport",
12674
12768
  value: function () {
12675
- var _getImport2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee89(id) {
12676
- return _regeneratorRuntime.wrap(function _callee89$(_context89) {
12769
+ var _getImport2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee92(id) {
12770
+ return _regeneratorRuntime.wrap(function _callee92$(_context92) {
12677
12771
  while (1) {
12678
- switch (_context89.prev = _context89.next) {
12772
+ switch (_context92.prev = _context92.next) {
12679
12773
  case 0:
12680
- _context89.next = 2;
12774
+ _context92.next = 2;
12681
12775
  return this.get(this.baseURL + "/imports/".concat(id));
12682
12776
 
12683
12777
  case 2:
12684
- return _context89.abrupt("return", _context89.sent);
12778
+ return _context92.abrupt("return", _context92.sent);
12685
12779
 
12686
12780
  case 3:
12687
12781
  case "end":
12688
- return _context89.stop();
12782
+ return _context92.stop();
12689
12783
  }
12690
12784
  }
12691
- }, _callee89, this);
12785
+ }, _callee92, this);
12692
12786
  }));
12693
12787
 
12694
- function _getImport(_x126) {
12788
+ function _getImport(_x131) {
12695
12789
  return _getImport2.apply(this, arguments);
12696
12790
  }
12697
12791
 
@@ -12713,26 +12807,26 @@ var StreamChat = /*#__PURE__*/function () {
12713
12807
  }, {
12714
12808
  key: "_listImports",
12715
12809
  value: function () {
12716
- var _listImports2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee90(options) {
12717
- return _regeneratorRuntime.wrap(function _callee90$(_context90) {
12810
+ var _listImports2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee93(options) {
12811
+ return _regeneratorRuntime.wrap(function _callee93$(_context93) {
12718
12812
  while (1) {
12719
- switch (_context90.prev = _context90.next) {
12813
+ switch (_context93.prev = _context93.next) {
12720
12814
  case 0:
12721
- _context90.next = 2;
12815
+ _context93.next = 2;
12722
12816
  return this.get(this.baseURL + "/imports", options);
12723
12817
 
12724
12818
  case 2:
12725
- return _context90.abrupt("return", _context90.sent);
12819
+ return _context93.abrupt("return", _context93.sent);
12726
12820
 
12727
12821
  case 3:
12728
12822
  case "end":
12729
- return _context90.stop();
12823
+ return _context93.stop();
12730
12824
  }
12731
12825
  }
12732
- }, _callee90, this);
12826
+ }, _callee93, this);
12733
12827
  }));
12734
12828
 
12735
- function _listImports(_x127) {
12829
+ function _listImports(_x132) {
12736
12830
  return _listImports2.apply(this, arguments);
12737
12831
  }
12738
12832
 
@@ -12751,28 +12845,28 @@ var StreamChat = /*#__PURE__*/function () {
12751
12845
  }, {
12752
12846
  key: "upsertPushProvider",
12753
12847
  value: function () {
12754
- var _upsertPushProvider = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee91(pushProvider) {
12755
- return _regeneratorRuntime.wrap(function _callee91$(_context91) {
12848
+ var _upsertPushProvider = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee94(pushProvider) {
12849
+ return _regeneratorRuntime.wrap(function _callee94$(_context94) {
12756
12850
  while (1) {
12757
- switch (_context91.prev = _context91.next) {
12851
+ switch (_context94.prev = _context94.next) {
12758
12852
  case 0:
12759
- _context91.next = 2;
12853
+ _context94.next = 2;
12760
12854
  return this.post(this.baseURL + "/push_providers", {
12761
12855
  push_provider: pushProvider
12762
12856
  });
12763
12857
 
12764
12858
  case 2:
12765
- return _context91.abrupt("return", _context91.sent);
12859
+ return _context94.abrupt("return", _context94.sent);
12766
12860
 
12767
12861
  case 3:
12768
12862
  case "end":
12769
- return _context91.stop();
12863
+ return _context94.stop();
12770
12864
  }
12771
12865
  }
12772
- }, _callee91, this);
12866
+ }, _callee94, this);
12773
12867
  }));
12774
12868
 
12775
- function upsertPushProvider(_x128) {
12869
+ function upsertPushProvider(_x133) {
12776
12870
  return _upsertPushProvider.apply(this, arguments);
12777
12871
  }
12778
12872
 
@@ -12791,28 +12885,28 @@ var StreamChat = /*#__PURE__*/function () {
12791
12885
  }, {
12792
12886
  key: "deletePushProvider",
12793
12887
  value: function () {
12794
- var _deletePushProvider = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee92(_ref10) {
12888
+ var _deletePushProvider = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee95(_ref10) {
12795
12889
  var type, name;
12796
- return _regeneratorRuntime.wrap(function _callee92$(_context92) {
12890
+ return _regeneratorRuntime.wrap(function _callee95$(_context95) {
12797
12891
  while (1) {
12798
- switch (_context92.prev = _context92.next) {
12892
+ switch (_context95.prev = _context95.next) {
12799
12893
  case 0:
12800
12894
  type = _ref10.type, name = _ref10.name;
12801
- _context92.next = 3;
12895
+ _context95.next = 3;
12802
12896
  return this.delete(this.baseURL + "/push_providers/".concat(type, "/").concat(name));
12803
12897
 
12804
12898
  case 3:
12805
- return _context92.abrupt("return", _context92.sent);
12899
+ return _context95.abrupt("return", _context95.sent);
12806
12900
 
12807
12901
  case 4:
12808
12902
  case "end":
12809
- return _context92.stop();
12903
+ return _context95.stop();
12810
12904
  }
12811
12905
  }
12812
- }, _callee92, this);
12906
+ }, _callee95, this);
12813
12907
  }));
12814
12908
 
12815
- function deletePushProvider(_x129) {
12909
+ function deletePushProvider(_x134) {
12816
12910
  return _deletePushProvider.apply(this, arguments);
12817
12911
  }
12818
12912
 
@@ -12829,23 +12923,23 @@ var StreamChat = /*#__PURE__*/function () {
12829
12923
  }, {
12830
12924
  key: "listPushProviders",
12831
12925
  value: function () {
12832
- var _listPushProviders = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee93() {
12833
- return _regeneratorRuntime.wrap(function _callee93$(_context93) {
12926
+ var _listPushProviders = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee96() {
12927
+ return _regeneratorRuntime.wrap(function _callee96$(_context96) {
12834
12928
  while (1) {
12835
- switch (_context93.prev = _context93.next) {
12929
+ switch (_context96.prev = _context96.next) {
12836
12930
  case 0:
12837
- _context93.next = 2;
12931
+ _context96.next = 2;
12838
12932
  return this.get(this.baseURL + "/push_providers");
12839
12933
 
12840
12934
  case 2:
12841
- return _context93.abrupt("return", _context93.sent);
12935
+ return _context96.abrupt("return", _context96.sent);
12842
12936
 
12843
12937
  case 3:
12844
12938
  case "end":
12845
- return _context93.stop();
12939
+ return _context96.stop();
12846
12940
  }
12847
12941
  }
12848
- }, _callee93, this);
12942
+ }, _callee96, this);
12849
12943
  }));
12850
12944
 
12851
12945
  function listPushProviders() {
@@ -12873,26 +12967,26 @@ var StreamChat = /*#__PURE__*/function () {
12873
12967
  }, {
12874
12968
  key: "commitMessage",
12875
12969
  value: function () {
12876
- var _commitMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee94(id) {
12877
- return _regeneratorRuntime.wrap(function _callee94$(_context94) {
12970
+ var _commitMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee97(id) {
12971
+ return _regeneratorRuntime.wrap(function _callee97$(_context97) {
12878
12972
  while (1) {
12879
- switch (_context94.prev = _context94.next) {
12973
+ switch (_context97.prev = _context97.next) {
12880
12974
  case 0:
12881
- _context94.next = 2;
12975
+ _context97.next = 2;
12882
12976
  return this.post(this.baseURL + "/messages/".concat(id, "/commit"));
12883
12977
 
12884
12978
  case 2:
12885
- return _context94.abrupt("return", _context94.sent);
12979
+ return _context97.abrupt("return", _context97.sent);
12886
12980
 
12887
12981
  case 3:
12888
12982
  case "end":
12889
- return _context94.stop();
12983
+ return _context97.stop();
12890
12984
  }
12891
12985
  }
12892
- }, _callee94, this);
12986
+ }, _callee97, this);
12893
12987
  }));
12894
12988
 
12895
- function commitMessage(_x130) {
12989
+ function commitMessage(_x135) {
12896
12990
  return _commitMessage.apply(this, arguments);
12897
12991
  }
12898
12992
 
@@ -12907,26 +13001,26 @@ var StreamChat = /*#__PURE__*/function () {
12907
13001
  }, {
12908
13002
  key: "createPoll",
12909
13003
  value: function () {
12910
- var _createPoll = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee95(poll) {
12911
- return _regeneratorRuntime.wrap(function _callee95$(_context95) {
13004
+ var _createPoll = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee98(poll) {
13005
+ return _regeneratorRuntime.wrap(function _callee98$(_context98) {
12912
13006
  while (1) {
12913
- switch (_context95.prev = _context95.next) {
13007
+ switch (_context98.prev = _context98.next) {
12914
13008
  case 0:
12915
- _context95.next = 2;
13009
+ _context98.next = 2;
12916
13010
  return this.post(this.baseURL + "/polls", poll);
12917
13011
 
12918
13012
  case 2:
12919
- return _context95.abrupt("return", _context95.sent);
13013
+ return _context98.abrupt("return", _context98.sent);
12920
13014
 
12921
13015
  case 3:
12922
13016
  case "end":
12923
- return _context95.stop();
13017
+ return _context98.stop();
12924
13018
  }
12925
13019
  }
12926
- }, _callee95, this);
13020
+ }, _callee98, this);
12927
13021
  }));
12928
13022
 
12929
- function createPoll(_x131) {
13023
+ function createPoll(_x136) {
12930
13024
  return _createPoll.apply(this, arguments);
12931
13025
  }
12932
13026
 
@@ -12941,28 +13035,28 @@ var StreamChat = /*#__PURE__*/function () {
12941
13035
  }, {
12942
13036
  key: "getPoll",
12943
13037
  value: function () {
12944
- var _getPoll = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee96(id, userId) {
12945
- return _regeneratorRuntime.wrap(function _callee96$(_context96) {
13038
+ var _getPoll = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee99(id, userId) {
13039
+ return _regeneratorRuntime.wrap(function _callee99$(_context99) {
12946
13040
  while (1) {
12947
- switch (_context96.prev = _context96.next) {
13041
+ switch (_context99.prev = _context99.next) {
12948
13042
  case 0:
12949
- _context96.next = 2;
13043
+ _context99.next = 2;
12950
13044
  return this.get(this.baseURL + "/polls/".concat(id), _objectSpread({}, userId ? {
12951
13045
  user_id: userId
12952
13046
  } : {}));
12953
13047
 
12954
13048
  case 2:
12955
- return _context96.abrupt("return", _context96.sent);
13049
+ return _context99.abrupt("return", _context99.sent);
12956
13050
 
12957
13051
  case 3:
12958
13052
  case "end":
12959
- return _context96.stop();
13053
+ return _context99.stop();
12960
13054
  }
12961
13055
  }
12962
- }, _callee96, this);
13056
+ }, _callee99, this);
12963
13057
  }));
12964
13058
 
12965
- function getPoll(_x132, _x133) {
13059
+ function getPoll(_x137, _x138) {
12966
13060
  return _getPoll.apply(this, arguments);
12967
13061
  }
12968
13062
 
@@ -12977,26 +13071,26 @@ var StreamChat = /*#__PURE__*/function () {
12977
13071
  }, {
12978
13072
  key: "updatePoll",
12979
13073
  value: function () {
12980
- var _updatePoll = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee97(poll) {
12981
- return _regeneratorRuntime.wrap(function _callee97$(_context97) {
13074
+ var _updatePoll = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee100(poll) {
13075
+ return _regeneratorRuntime.wrap(function _callee100$(_context100) {
12982
13076
  while (1) {
12983
- switch (_context97.prev = _context97.next) {
13077
+ switch (_context100.prev = _context100.next) {
12984
13078
  case 0:
12985
- _context97.next = 2;
13079
+ _context100.next = 2;
12986
13080
  return this.put(this.baseURL + "/polls", poll);
12987
13081
 
12988
13082
  case 2:
12989
- return _context97.abrupt("return", _context97.sent);
13083
+ return _context100.abrupt("return", _context100.sent);
12990
13084
 
12991
13085
  case 3:
12992
13086
  case "end":
12993
- return _context97.stop();
13087
+ return _context100.stop();
12994
13088
  }
12995
13089
  }
12996
- }, _callee97, this);
13090
+ }, _callee100, this);
12997
13091
  }));
12998
13092
 
12999
- function updatePoll(_x134) {
13093
+ function updatePoll(_x139) {
13000
13094
  return _updatePoll.apply(this, arguments);
13001
13095
  }
13002
13096
 
@@ -13013,26 +13107,26 @@ var StreamChat = /*#__PURE__*/function () {
13013
13107
  }, {
13014
13108
  key: "partialUpdatePoll",
13015
13109
  value: function () {
13016
- var _partialUpdatePoll = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee98(id, partialPollObject) {
13017
- return _regeneratorRuntime.wrap(function _callee98$(_context98) {
13110
+ var _partialUpdatePoll = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee101(id, partialPollObject) {
13111
+ return _regeneratorRuntime.wrap(function _callee101$(_context101) {
13018
13112
  while (1) {
13019
- switch (_context98.prev = _context98.next) {
13113
+ switch (_context101.prev = _context101.next) {
13020
13114
  case 0:
13021
- _context98.next = 2;
13115
+ _context101.next = 2;
13022
13116
  return this.patch(this.baseURL + "/polls/".concat(id), partialPollObject);
13023
13117
 
13024
13118
  case 2:
13025
- return _context98.abrupt("return", _context98.sent);
13119
+ return _context101.abrupt("return", _context101.sent);
13026
13120
 
13027
13121
  case 3:
13028
13122
  case "end":
13029
- return _context98.stop();
13123
+ return _context101.stop();
13030
13124
  }
13031
13125
  }
13032
- }, _callee98, this);
13126
+ }, _callee101, this);
13033
13127
  }));
13034
13128
 
13035
- function partialUpdatePoll(_x135, _x136) {
13129
+ function partialUpdatePoll(_x140, _x141) {
13036
13130
  return _partialUpdatePoll.apply(this, arguments);
13037
13131
  }
13038
13132
 
@@ -13048,28 +13142,28 @@ var StreamChat = /*#__PURE__*/function () {
13048
13142
  }, {
13049
13143
  key: "deletePoll",
13050
13144
  value: function () {
13051
- var _deletePoll = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee99(id, userId) {
13052
- return _regeneratorRuntime.wrap(function _callee99$(_context99) {
13145
+ var _deletePoll = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee102(id, userId) {
13146
+ return _regeneratorRuntime.wrap(function _callee102$(_context102) {
13053
13147
  while (1) {
13054
- switch (_context99.prev = _context99.next) {
13148
+ switch (_context102.prev = _context102.next) {
13055
13149
  case 0:
13056
- _context99.next = 2;
13150
+ _context102.next = 2;
13057
13151
  return this.delete(this.baseURL + "/polls/".concat(id), _objectSpread({}, userId ? {
13058
13152
  user_id: userId
13059
13153
  } : {}));
13060
13154
 
13061
13155
  case 2:
13062
- return _context99.abrupt("return", _context99.sent);
13156
+ return _context102.abrupt("return", _context102.sent);
13063
13157
 
13064
13158
  case 3:
13065
13159
  case "end":
13066
- return _context99.stop();
13160
+ return _context102.stop();
13067
13161
  }
13068
13162
  }
13069
- }, _callee99, this);
13163
+ }, _callee102, this);
13070
13164
  }));
13071
13165
 
13072
- function deletePoll(_x137, _x138) {
13166
+ function deletePoll(_x142, _x143) {
13073
13167
  return _deletePoll.apply(this, arguments);
13074
13168
  }
13075
13169
 
@@ -13084,12 +13178,12 @@ var StreamChat = /*#__PURE__*/function () {
13084
13178
  }, {
13085
13179
  key: "closePoll",
13086
13180
  value: function () {
13087
- var _closePoll = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee100(id) {
13088
- return _regeneratorRuntime.wrap(function _callee100$(_context100) {
13181
+ var _closePoll = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee103(id) {
13182
+ return _regeneratorRuntime.wrap(function _callee103$(_context103) {
13089
13183
  while (1) {
13090
- switch (_context100.prev = _context100.next) {
13184
+ switch (_context103.prev = _context103.next) {
13091
13185
  case 0:
13092
- return _context100.abrupt("return", this.partialUpdatePoll(id, {
13186
+ return _context103.abrupt("return", this.partialUpdatePoll(id, {
13093
13187
  set: {
13094
13188
  is_closed: true
13095
13189
  }
@@ -13097,13 +13191,13 @@ var StreamChat = /*#__PURE__*/function () {
13097
13191
 
13098
13192
  case 1:
13099
13193
  case "end":
13100
- return _context100.stop();
13194
+ return _context103.stop();
13101
13195
  }
13102
13196
  }
13103
- }, _callee100, this);
13197
+ }, _callee103, this);
13104
13198
  }));
13105
13199
 
13106
- function closePoll(_x139) {
13200
+ function closePoll(_x144) {
13107
13201
  return _closePoll.apply(this, arguments);
13108
13202
  }
13109
13203
 
@@ -13119,26 +13213,26 @@ var StreamChat = /*#__PURE__*/function () {
13119
13213
  }, {
13120
13214
  key: "createPollOption",
13121
13215
  value: function () {
13122
- var _createPollOption = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee101(pollId, option) {
13123
- return _regeneratorRuntime.wrap(function _callee101$(_context101) {
13216
+ var _createPollOption = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee104(pollId, option) {
13217
+ return _regeneratorRuntime.wrap(function _callee104$(_context104) {
13124
13218
  while (1) {
13125
- switch (_context101.prev = _context101.next) {
13219
+ switch (_context104.prev = _context104.next) {
13126
13220
  case 0:
13127
- _context101.next = 2;
13221
+ _context104.next = 2;
13128
13222
  return this.post(this.baseURL + "/polls/".concat(pollId, "/options"), option);
13129
13223
 
13130
13224
  case 2:
13131
- return _context101.abrupt("return", _context101.sent);
13225
+ return _context104.abrupt("return", _context104.sent);
13132
13226
 
13133
13227
  case 3:
13134
13228
  case "end":
13135
- return _context101.stop();
13229
+ return _context104.stop();
13136
13230
  }
13137
13231
  }
13138
- }, _callee101, this);
13232
+ }, _callee104, this);
13139
13233
  }));
13140
13234
 
13141
- function createPollOption(_x140, _x141) {
13235
+ function createPollOption(_x145, _x146) {
13142
13236
  return _createPollOption.apply(this, arguments);
13143
13237
  }
13144
13238
 
@@ -13154,26 +13248,26 @@ var StreamChat = /*#__PURE__*/function () {
13154
13248
  }, {
13155
13249
  key: "getPollOption",
13156
13250
  value: function () {
13157
- var _getPollOption = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee102(pollId, optionId) {
13158
- return _regeneratorRuntime.wrap(function _callee102$(_context102) {
13251
+ var _getPollOption = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee105(pollId, optionId) {
13252
+ return _regeneratorRuntime.wrap(function _callee105$(_context105) {
13159
13253
  while (1) {
13160
- switch (_context102.prev = _context102.next) {
13254
+ switch (_context105.prev = _context105.next) {
13161
13255
  case 0:
13162
- _context102.next = 2;
13256
+ _context105.next = 2;
13163
13257
  return this.get(this.baseURL + "/polls/".concat(pollId, "/options/").concat(optionId));
13164
13258
 
13165
13259
  case 2:
13166
- return _context102.abrupt("return", _context102.sent);
13260
+ return _context105.abrupt("return", _context105.sent);
13167
13261
 
13168
13262
  case 3:
13169
13263
  case "end":
13170
- return _context102.stop();
13264
+ return _context105.stop();
13171
13265
  }
13172
13266
  }
13173
- }, _callee102, this);
13267
+ }, _callee105, this);
13174
13268
  }));
13175
13269
 
13176
- function getPollOption(_x142, _x143) {
13270
+ function getPollOption(_x147, _x148) {
13177
13271
  return _getPollOption.apply(this, arguments);
13178
13272
  }
13179
13273
 
@@ -13189,26 +13283,26 @@ var StreamChat = /*#__PURE__*/function () {
13189
13283
  }, {
13190
13284
  key: "updatePollOption",
13191
13285
  value: function () {
13192
- var _updatePollOption = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee103(pollId, option) {
13193
- return _regeneratorRuntime.wrap(function _callee103$(_context103) {
13286
+ var _updatePollOption = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee106(pollId, option) {
13287
+ return _regeneratorRuntime.wrap(function _callee106$(_context106) {
13194
13288
  while (1) {
13195
- switch (_context103.prev = _context103.next) {
13289
+ switch (_context106.prev = _context106.next) {
13196
13290
  case 0:
13197
- _context103.next = 2;
13291
+ _context106.next = 2;
13198
13292
  return this.put(this.baseURL + "/polls/".concat(pollId, "/options"), option);
13199
13293
 
13200
13294
  case 2:
13201
- return _context103.abrupt("return", _context103.sent);
13295
+ return _context106.abrupt("return", _context106.sent);
13202
13296
 
13203
13297
  case 3:
13204
13298
  case "end":
13205
- return _context103.stop();
13299
+ return _context106.stop();
13206
13300
  }
13207
13301
  }
13208
- }, _callee103, this);
13302
+ }, _callee106, this);
13209
13303
  }));
13210
13304
 
13211
- function updatePollOption(_x144, _x145) {
13305
+ function updatePollOption(_x149, _x150) {
13212
13306
  return _updatePollOption.apply(this, arguments);
13213
13307
  }
13214
13308
 
@@ -13224,26 +13318,26 @@ var StreamChat = /*#__PURE__*/function () {
13224
13318
  }, {
13225
13319
  key: "deletePollOption",
13226
13320
  value: function () {
13227
- var _deletePollOption = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee104(pollId, optionId) {
13228
- return _regeneratorRuntime.wrap(function _callee104$(_context104) {
13321
+ var _deletePollOption = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee107(pollId, optionId) {
13322
+ return _regeneratorRuntime.wrap(function _callee107$(_context107) {
13229
13323
  while (1) {
13230
- switch (_context104.prev = _context104.next) {
13324
+ switch (_context107.prev = _context107.next) {
13231
13325
  case 0:
13232
- _context104.next = 2;
13326
+ _context107.next = 2;
13233
13327
  return this.delete(this.baseURL + "/polls/".concat(pollId, "/options/").concat(optionId));
13234
13328
 
13235
13329
  case 2:
13236
- return _context104.abrupt("return", _context104.sent);
13330
+ return _context107.abrupt("return", _context107.sent);
13237
13331
 
13238
13332
  case 3:
13239
13333
  case "end":
13240
- return _context104.stop();
13334
+ return _context107.stop();
13241
13335
  }
13242
13336
  }
13243
- }, _callee104, this);
13337
+ }, _callee107, this);
13244
13338
  }));
13245
13339
 
13246
- function deletePollOption(_x146, _x147) {
13340
+ function deletePollOption(_x151, _x152) {
13247
13341
  return _deletePollOption.apply(this, arguments);
13248
13342
  }
13249
13343
 
@@ -13260,31 +13354,31 @@ var StreamChat = /*#__PURE__*/function () {
13260
13354
  }, {
13261
13355
  key: "castPollVote",
13262
13356
  value: function () {
13263
- var _castPollVote = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee105(messageId, pollId, vote) {
13357
+ var _castPollVote = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee108(messageId, pollId, vote) {
13264
13358
  var options,
13265
- _args105 = arguments;
13266
- return _regeneratorRuntime.wrap(function _callee105$(_context105) {
13359
+ _args108 = arguments;
13360
+ return _regeneratorRuntime.wrap(function _callee108$(_context108) {
13267
13361
  while (1) {
13268
- switch (_context105.prev = _context105.next) {
13362
+ switch (_context108.prev = _context108.next) {
13269
13363
  case 0:
13270
- options = _args105.length > 3 && _args105[3] !== undefined ? _args105[3] : {};
13271
- _context105.next = 3;
13364
+ options = _args108.length > 3 && _args108[3] !== undefined ? _args108[3] : {};
13365
+ _context108.next = 3;
13272
13366
  return this.post(this.baseURL + "/messages/".concat(messageId, "/polls/").concat(pollId, "/vote"), _objectSpread({
13273
13367
  vote: vote
13274
13368
  }, options));
13275
13369
 
13276
13370
  case 3:
13277
- return _context105.abrupt("return", _context105.sent);
13371
+ return _context108.abrupt("return", _context108.sent);
13278
13372
 
13279
13373
  case 4:
13280
13374
  case "end":
13281
- return _context105.stop();
13375
+ return _context108.stop();
13282
13376
  }
13283
13377
  }
13284
- }, _callee105, this);
13378
+ }, _callee108, this);
13285
13379
  }));
13286
13380
 
13287
- function castPollVote(_x148, _x149, _x150) {
13381
+ function castPollVote(_x153, _x154, _x155) {
13288
13382
  return _castPollVote.apply(this, arguments);
13289
13383
  }
13290
13384
 
@@ -13300,24 +13394,24 @@ var StreamChat = /*#__PURE__*/function () {
13300
13394
  }, {
13301
13395
  key: "addPollAnswer",
13302
13396
  value: function () {
13303
- var _addPollAnswer = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee106(messageId, pollId, answerText) {
13304
- return _regeneratorRuntime.wrap(function _callee106$(_context106) {
13397
+ var _addPollAnswer = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee109(messageId, pollId, answerText) {
13398
+ return _regeneratorRuntime.wrap(function _callee109$(_context109) {
13305
13399
  while (1) {
13306
- switch (_context106.prev = _context106.next) {
13400
+ switch (_context109.prev = _context109.next) {
13307
13401
  case 0:
13308
- return _context106.abrupt("return", this.castPollVote(messageId, pollId, {
13402
+ return _context109.abrupt("return", this.castPollVote(messageId, pollId, {
13309
13403
  answer_text: answerText
13310
13404
  }));
13311
13405
 
13312
13406
  case 1:
13313
13407
  case "end":
13314
- return _context106.stop();
13408
+ return _context109.stop();
13315
13409
  }
13316
13410
  }
13317
- }, _callee106, this);
13411
+ }, _callee109, this);
13318
13412
  }));
13319
13413
 
13320
- function addPollAnswer(_x151, _x152, _x153) {
13414
+ function addPollAnswer(_x156, _x157, _x158) {
13321
13415
  return _addPollAnswer.apply(this, arguments);
13322
13416
  }
13323
13417
 
@@ -13326,26 +13420,26 @@ var StreamChat = /*#__PURE__*/function () {
13326
13420
  }, {
13327
13421
  key: "removePollVote",
13328
13422
  value: function () {
13329
- var _removePollVote = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee107(messageId, pollId, voteId) {
13330
- return _regeneratorRuntime.wrap(function _callee107$(_context107) {
13423
+ var _removePollVote = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee110(messageId, pollId, voteId) {
13424
+ return _regeneratorRuntime.wrap(function _callee110$(_context110) {
13331
13425
  while (1) {
13332
- switch (_context107.prev = _context107.next) {
13426
+ switch (_context110.prev = _context110.next) {
13333
13427
  case 0:
13334
- _context107.next = 2;
13428
+ _context110.next = 2;
13335
13429
  return this.delete(this.baseURL + "/messages/".concat(messageId, "/polls/").concat(pollId, "/vote/").concat(voteId));
13336
13430
 
13337
13431
  case 2:
13338
- return _context107.abrupt("return", _context107.sent);
13432
+ return _context110.abrupt("return", _context110.sent);
13339
13433
 
13340
13434
  case 3:
13341
13435
  case "end":
13342
- return _context107.stop();
13436
+ return _context110.stop();
13343
13437
  }
13344
13438
  }
13345
- }, _callee107, this);
13439
+ }, _callee110, this);
13346
13440
  }));
13347
13441
 
13348
- function removePollVote(_x154, _x155, _x156) {
13442
+ function removePollVote(_x159, _x160, _x161) {
13349
13443
  return _removePollVote.apply(this, arguments);
13350
13444
  }
13351
13445
 
@@ -13362,33 +13456,33 @@ var StreamChat = /*#__PURE__*/function () {
13362
13456
  }, {
13363
13457
  key: "queryPolls",
13364
13458
  value: function () {
13365
- var _queryPolls = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee108() {
13459
+ var _queryPolls = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee111() {
13366
13460
  var filter,
13367
13461
  sort,
13368
13462
  options,
13369
- _args108 = arguments;
13370
- return _regeneratorRuntime.wrap(function _callee108$(_context108) {
13463
+ _args111 = arguments;
13464
+ return _regeneratorRuntime.wrap(function _callee111$(_context111) {
13371
13465
  while (1) {
13372
- switch (_context108.prev = _context108.next) {
13466
+ switch (_context111.prev = _context111.next) {
13373
13467
  case 0:
13374
- filter = _args108.length > 0 && _args108[0] !== undefined ? _args108[0] : {};
13375
- sort = _args108.length > 1 && _args108[1] !== undefined ? _args108[1] : [];
13376
- options = _args108.length > 2 && _args108[2] !== undefined ? _args108[2] : {};
13377
- _context108.next = 5;
13468
+ filter = _args111.length > 0 && _args111[0] !== undefined ? _args111[0] : {};
13469
+ sort = _args111.length > 1 && _args111[1] !== undefined ? _args111[1] : [];
13470
+ options = _args111.length > 2 && _args111[2] !== undefined ? _args111[2] : {};
13471
+ _context111.next = 5;
13378
13472
  return this.post(this.baseURL + '/polls/query', _objectSpread({
13379
13473
  filter: filter,
13380
13474
  sort: normalizeQuerySort(sort)
13381
13475
  }, options));
13382
13476
 
13383
13477
  case 5:
13384
- return _context108.abrupt("return", _context108.sent);
13478
+ return _context111.abrupt("return", _context111.sent);
13385
13479
 
13386
13480
  case 6:
13387
13481
  case "end":
13388
- return _context108.stop();
13482
+ return _context111.stop();
13389
13483
  }
13390
13484
  }
13391
- }, _callee108, this);
13485
+ }, _callee111, this);
13392
13486
  }));
13393
13487
 
13394
13488
  function queryPolls() {
@@ -13409,36 +13503,36 @@ var StreamChat = /*#__PURE__*/function () {
13409
13503
  }, {
13410
13504
  key: "queryPollVotes",
13411
13505
  value: function () {
13412
- var _queryPollVotes = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee109(pollId) {
13506
+ var _queryPollVotes = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee112(pollId) {
13413
13507
  var filter,
13414
13508
  sort,
13415
13509
  options,
13416
- _args109 = arguments;
13417
- return _regeneratorRuntime.wrap(function _callee109$(_context109) {
13510
+ _args112 = arguments;
13511
+ return _regeneratorRuntime.wrap(function _callee112$(_context112) {
13418
13512
  while (1) {
13419
- switch (_context109.prev = _context109.next) {
13513
+ switch (_context112.prev = _context112.next) {
13420
13514
  case 0:
13421
- filter = _args109.length > 1 && _args109[1] !== undefined ? _args109[1] : {};
13422
- sort = _args109.length > 2 && _args109[2] !== undefined ? _args109[2] : [];
13423
- options = _args109.length > 3 && _args109[3] !== undefined ? _args109[3] : {};
13424
- _context109.next = 5;
13515
+ filter = _args112.length > 1 && _args112[1] !== undefined ? _args112[1] : {};
13516
+ sort = _args112.length > 2 && _args112[2] !== undefined ? _args112[2] : [];
13517
+ options = _args112.length > 3 && _args112[3] !== undefined ? _args112[3] : {};
13518
+ _context112.next = 5;
13425
13519
  return this.post(this.baseURL + "/polls/".concat(pollId, "/votes"), _objectSpread({
13426
13520
  filter: filter,
13427
13521
  sort: normalizeQuerySort(sort)
13428
13522
  }, options));
13429
13523
 
13430
13524
  case 5:
13431
- return _context109.abrupt("return", _context109.sent);
13525
+ return _context112.abrupt("return", _context112.sent);
13432
13526
 
13433
13527
  case 6:
13434
13528
  case "end":
13435
- return _context109.stop();
13529
+ return _context112.stop();
13436
13530
  }
13437
13531
  }
13438
- }, _callee109, this);
13532
+ }, _callee112, this);
13439
13533
  }));
13440
13534
 
13441
- function queryPollVotes(_x157) {
13535
+ function queryPollVotes(_x162) {
13442
13536
  return _queryPollVotes.apply(this, arguments);
13443
13537
  }
13444
13538
 
@@ -13455,33 +13549,33 @@ var StreamChat = /*#__PURE__*/function () {
13455
13549
  }, {
13456
13550
  key: "queryMessageHistory",
13457
13551
  value: function () {
13458
- var _queryMessageHistory = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee110() {
13552
+ var _queryMessageHistory = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee113() {
13459
13553
  var filter,
13460
13554
  sort,
13461
13555
  options,
13462
- _args110 = arguments;
13463
- return _regeneratorRuntime.wrap(function _callee110$(_context110) {
13556
+ _args113 = arguments;
13557
+ return _regeneratorRuntime.wrap(function _callee113$(_context113) {
13464
13558
  while (1) {
13465
- switch (_context110.prev = _context110.next) {
13559
+ switch (_context113.prev = _context113.next) {
13466
13560
  case 0:
13467
- filter = _args110.length > 0 && _args110[0] !== undefined ? _args110[0] : {};
13468
- sort = _args110.length > 1 && _args110[1] !== undefined ? _args110[1] : [];
13469
- options = _args110.length > 2 && _args110[2] !== undefined ? _args110[2] : {};
13470
- _context110.next = 5;
13561
+ filter = _args113.length > 0 && _args113[0] !== undefined ? _args113[0] : {};
13562
+ sort = _args113.length > 1 && _args113[1] !== undefined ? _args113[1] : [];
13563
+ options = _args113.length > 2 && _args113[2] !== undefined ? _args113[2] : {};
13564
+ _context113.next = 5;
13471
13565
  return this.post(this.baseURL + '/messages/history', _objectSpread({
13472
13566
  filter: filter,
13473
13567
  sort: normalizeQuerySort(sort)
13474
13568
  }, options));
13475
13569
 
13476
13570
  case 5:
13477
- return _context110.abrupt("return", _context110.sent);
13571
+ return _context113.abrupt("return", _context113.sent);
13478
13572
 
13479
13573
  case 6:
13480
13574
  case "end":
13481
- return _context110.stop();
13575
+ return _context113.stop();
13482
13576
  }
13483
13577
  }
13484
- }, _callee110, this);
13578
+ }, _callee113, this);
13485
13579
  }));
13486
13580
 
13487
13581
  function queryMessageHistory() {