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