stream-chat 8.10.0 → 8.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser.es.js +531 -561
- package/dist/browser.es.js.map +1 -1
- package/dist/browser.full-bundle.min.js +1 -1
- package/dist/browser.full-bundle.min.js.map +1 -1
- package/dist/browser.js +531 -561
- package/dist/browser.js.map +1 -1
- package/dist/index.es.js +531 -561
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +531 -561
- package/dist/index.js.map +1 -1
- package/dist/types/client.d.ts +1 -2
- package/dist/types/client.d.ts.map +1 -1
- package/dist/types/types.d.ts +0 -13
- package/dist/types/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +0 -5
- package/src/types.ts +0 -14
package/dist/index.es.js
CHANGED
|
@@ -8349,36 +8349,6 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
8349
8349
|
|
|
8350
8350
|
return getDevices;
|
|
8351
8351
|
}()
|
|
8352
|
-
}, {
|
|
8353
|
-
key: "getUnreadCount",
|
|
8354
|
-
value: function () {
|
|
8355
|
-
var _getUnreadCount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee23(userID) {
|
|
8356
|
-
return _regeneratorRuntime.wrap(function _callee23$(_context23) {
|
|
8357
|
-
while (1) {
|
|
8358
|
-
switch (_context23.prev = _context23.next) {
|
|
8359
|
-
case 0:
|
|
8360
|
-
_context23.next = 2;
|
|
8361
|
-
return this.get(this.baseURL + '/unread', userID ? {
|
|
8362
|
-
user_id: userID
|
|
8363
|
-
} : {});
|
|
8364
|
-
|
|
8365
|
-
case 2:
|
|
8366
|
-
return _context23.abrupt("return", _context23.sent);
|
|
8367
|
-
|
|
8368
|
-
case 3:
|
|
8369
|
-
case "end":
|
|
8370
|
-
return _context23.stop();
|
|
8371
|
-
}
|
|
8372
|
-
}
|
|
8373
|
-
}, _callee23, this);
|
|
8374
|
-
}));
|
|
8375
|
-
|
|
8376
|
-
function getUnreadCount(_x25) {
|
|
8377
|
-
return _getUnreadCount.apply(this, arguments);
|
|
8378
|
-
}
|
|
8379
|
-
|
|
8380
|
-
return getUnreadCount;
|
|
8381
|
-
}()
|
|
8382
8352
|
/**
|
|
8383
8353
|
* removeDevice - Removes the device with the given id. Clientside users can only delete their own devices
|
|
8384
8354
|
*
|
|
@@ -8390,12 +8360,12 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
8390
8360
|
}, {
|
|
8391
8361
|
key: "removeDevice",
|
|
8392
8362
|
value: function () {
|
|
8393
|
-
var _removeDevice = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
8394
|
-
return _regeneratorRuntime.wrap(function
|
|
8363
|
+
var _removeDevice = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee23(id, userID) {
|
|
8364
|
+
return _regeneratorRuntime.wrap(function _callee23$(_context23) {
|
|
8395
8365
|
while (1) {
|
|
8396
|
-
switch (
|
|
8366
|
+
switch (_context23.prev = _context23.next) {
|
|
8397
8367
|
case 0:
|
|
8398
|
-
|
|
8368
|
+
_context23.next = 2;
|
|
8399
8369
|
return this.delete(this.baseURL + '/devices', _objectSpread({
|
|
8400
8370
|
id: id
|
|
8401
8371
|
}, userID ? {
|
|
@@ -8403,17 +8373,17 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
8403
8373
|
} : {}));
|
|
8404
8374
|
|
|
8405
8375
|
case 2:
|
|
8406
|
-
return
|
|
8376
|
+
return _context23.abrupt("return", _context23.sent);
|
|
8407
8377
|
|
|
8408
8378
|
case 3:
|
|
8409
8379
|
case "end":
|
|
8410
|
-
return
|
|
8380
|
+
return _context23.stop();
|
|
8411
8381
|
}
|
|
8412
8382
|
}
|
|
8413
|
-
},
|
|
8383
|
+
}, _callee23, this);
|
|
8414
8384
|
}));
|
|
8415
8385
|
|
|
8416
|
-
function removeDevice(
|
|
8386
|
+
function removeDevice(_x25, _x26) {
|
|
8417
8387
|
return _removeDevice.apply(this, arguments);
|
|
8418
8388
|
}
|
|
8419
8389
|
|
|
@@ -8430,15 +8400,15 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
8430
8400
|
}, {
|
|
8431
8401
|
key: "getRateLimits",
|
|
8432
8402
|
value: function () {
|
|
8433
|
-
var _getRateLimits = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
8403
|
+
var _getRateLimits = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee24(params) {
|
|
8434
8404
|
var _ref7, serverSide, web, android, ios, endpoints;
|
|
8435
8405
|
|
|
8436
|
-
return _regeneratorRuntime.wrap(function
|
|
8406
|
+
return _regeneratorRuntime.wrap(function _callee24$(_context24) {
|
|
8437
8407
|
while (1) {
|
|
8438
|
-
switch (
|
|
8408
|
+
switch (_context24.prev = _context24.next) {
|
|
8439
8409
|
case 0:
|
|
8440
8410
|
_ref7 = params || {}, serverSide = _ref7.serverSide, web = _ref7.web, android = _ref7.android, ios = _ref7.ios, endpoints = _ref7.endpoints;
|
|
8441
|
-
return
|
|
8411
|
+
return _context24.abrupt("return", this.get(this.baseURL + '/rate_limits', {
|
|
8442
8412
|
server_side: serverSide,
|
|
8443
8413
|
web: web,
|
|
8444
8414
|
android: android,
|
|
@@ -8448,13 +8418,13 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
8448
8418
|
|
|
8449
8419
|
case 2:
|
|
8450
8420
|
case "end":
|
|
8451
|
-
return
|
|
8421
|
+
return _context24.stop();
|
|
8452
8422
|
}
|
|
8453
8423
|
}
|
|
8454
|
-
},
|
|
8424
|
+
}, _callee24, this);
|
|
8455
8425
|
}));
|
|
8456
8426
|
|
|
8457
|
-
function getRateLimits(
|
|
8427
|
+
function getRateLimits(_x27) {
|
|
8458
8428
|
return _getRateLimits.apply(this, arguments);
|
|
8459
8429
|
}
|
|
8460
8430
|
|
|
@@ -8538,26 +8508,26 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
8538
8508
|
* @return {Promise<{ users: { [key: string]: UserResponse<StreamChatGenerics> } }>} list of updated users
|
|
8539
8509
|
*/
|
|
8540
8510
|
function () {
|
|
8541
|
-
var _partialUpdateUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
8542
|
-
return _regeneratorRuntime.wrap(function
|
|
8511
|
+
var _partialUpdateUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee25(partialUserObject) {
|
|
8512
|
+
return _regeneratorRuntime.wrap(function _callee25$(_context25) {
|
|
8543
8513
|
while (1) {
|
|
8544
|
-
switch (
|
|
8514
|
+
switch (_context25.prev = _context25.next) {
|
|
8545
8515
|
case 0:
|
|
8546
|
-
|
|
8516
|
+
_context25.next = 2;
|
|
8547
8517
|
return this.partialUpdateUsers([partialUserObject]);
|
|
8548
8518
|
|
|
8549
8519
|
case 2:
|
|
8550
|
-
return
|
|
8520
|
+
return _context25.abrupt("return", _context25.sent);
|
|
8551
8521
|
|
|
8552
8522
|
case 3:
|
|
8553
8523
|
case "end":
|
|
8554
|
-
return
|
|
8524
|
+
return _context25.stop();
|
|
8555
8525
|
}
|
|
8556
8526
|
}
|
|
8557
|
-
},
|
|
8527
|
+
}, _callee25, this);
|
|
8558
8528
|
}));
|
|
8559
8529
|
|
|
8560
|
-
function partialUpdateUser(
|
|
8530
|
+
function partialUpdateUser(_x28) {
|
|
8561
8531
|
return _partialUpdateUser.apply(this, arguments);
|
|
8562
8532
|
}
|
|
8563
8533
|
|
|
@@ -8574,29 +8544,29 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
8574
8544
|
}, {
|
|
8575
8545
|
key: "upsertUsers",
|
|
8576
8546
|
value: function () {
|
|
8577
|
-
var _upsertUsers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
8547
|
+
var _upsertUsers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee26(users) {
|
|
8578
8548
|
var userMap, _iterator4, _step4, userObject;
|
|
8579
8549
|
|
|
8580
|
-
return _regeneratorRuntime.wrap(function
|
|
8550
|
+
return _regeneratorRuntime.wrap(function _callee26$(_context26) {
|
|
8581
8551
|
while (1) {
|
|
8582
|
-
switch (
|
|
8552
|
+
switch (_context26.prev = _context26.next) {
|
|
8583
8553
|
case 0:
|
|
8584
8554
|
userMap = {};
|
|
8585
8555
|
_iterator4 = _createForOfIteratorHelper(users);
|
|
8586
|
-
|
|
8556
|
+
_context26.prev = 2;
|
|
8587
8557
|
|
|
8588
8558
|
_iterator4.s();
|
|
8589
8559
|
|
|
8590
8560
|
case 4:
|
|
8591
8561
|
if ((_step4 = _iterator4.n()).done) {
|
|
8592
|
-
|
|
8562
|
+
_context26.next = 11;
|
|
8593
8563
|
break;
|
|
8594
8564
|
}
|
|
8595
8565
|
|
|
8596
8566
|
userObject = _step4.value;
|
|
8597
8567
|
|
|
8598
8568
|
if (userObject.id) {
|
|
8599
|
-
|
|
8569
|
+
_context26.next = 8;
|
|
8600
8570
|
break;
|
|
8601
8571
|
}
|
|
8602
8572
|
|
|
@@ -8606,44 +8576,44 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
8606
8576
|
userMap[userObject.id] = userObject;
|
|
8607
8577
|
|
|
8608
8578
|
case 9:
|
|
8609
|
-
|
|
8579
|
+
_context26.next = 4;
|
|
8610
8580
|
break;
|
|
8611
8581
|
|
|
8612
8582
|
case 11:
|
|
8613
|
-
|
|
8583
|
+
_context26.next = 16;
|
|
8614
8584
|
break;
|
|
8615
8585
|
|
|
8616
8586
|
case 13:
|
|
8617
|
-
|
|
8618
|
-
|
|
8587
|
+
_context26.prev = 13;
|
|
8588
|
+
_context26.t0 = _context26["catch"](2);
|
|
8619
8589
|
|
|
8620
|
-
_iterator4.e(
|
|
8590
|
+
_iterator4.e(_context26.t0);
|
|
8621
8591
|
|
|
8622
8592
|
case 16:
|
|
8623
|
-
|
|
8593
|
+
_context26.prev = 16;
|
|
8624
8594
|
|
|
8625
8595
|
_iterator4.f();
|
|
8626
8596
|
|
|
8627
|
-
return
|
|
8597
|
+
return _context26.finish(16);
|
|
8628
8598
|
|
|
8629
8599
|
case 19:
|
|
8630
|
-
|
|
8600
|
+
_context26.next = 21;
|
|
8631
8601
|
return this.post(this.baseURL + '/users', {
|
|
8632
8602
|
users: userMap
|
|
8633
8603
|
});
|
|
8634
8604
|
|
|
8635
8605
|
case 21:
|
|
8636
|
-
return
|
|
8606
|
+
return _context26.abrupt("return", _context26.sent);
|
|
8637
8607
|
|
|
8638
8608
|
case 22:
|
|
8639
8609
|
case "end":
|
|
8640
|
-
return
|
|
8610
|
+
return _context26.stop();
|
|
8641
8611
|
}
|
|
8642
8612
|
}
|
|
8643
|
-
},
|
|
8613
|
+
}, _callee26, this, [[2, 13, 16, 19]]);
|
|
8644
8614
|
}));
|
|
8645
8615
|
|
|
8646
|
-
function upsertUsers(
|
|
8616
|
+
function upsertUsers(_x29) {
|
|
8647
8617
|
return _upsertUsers.apply(this, arguments);
|
|
8648
8618
|
}
|
|
8649
8619
|
|
|
@@ -8691,72 +8661,72 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
8691
8661
|
* @return {Promise<{ users: { [key: string]: UserResponse<StreamChatGenerics> } }>}
|
|
8692
8662
|
*/
|
|
8693
8663
|
function () {
|
|
8694
|
-
var _partialUpdateUsers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
8664
|
+
var _partialUpdateUsers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee27(users) {
|
|
8695
8665
|
var _iterator5, _step5, userObject;
|
|
8696
8666
|
|
|
8697
|
-
return _regeneratorRuntime.wrap(function
|
|
8667
|
+
return _regeneratorRuntime.wrap(function _callee27$(_context27) {
|
|
8698
8668
|
while (1) {
|
|
8699
|
-
switch (
|
|
8669
|
+
switch (_context27.prev = _context27.next) {
|
|
8700
8670
|
case 0:
|
|
8701
8671
|
_iterator5 = _createForOfIteratorHelper(users);
|
|
8702
|
-
|
|
8672
|
+
_context27.prev = 1;
|
|
8703
8673
|
|
|
8704
8674
|
_iterator5.s();
|
|
8705
8675
|
|
|
8706
8676
|
case 3:
|
|
8707
8677
|
if ((_step5 = _iterator5.n()).done) {
|
|
8708
|
-
|
|
8678
|
+
_context27.next = 9;
|
|
8709
8679
|
break;
|
|
8710
8680
|
}
|
|
8711
8681
|
|
|
8712
8682
|
userObject = _step5.value;
|
|
8713
8683
|
|
|
8714
8684
|
if (userObject.id) {
|
|
8715
|
-
|
|
8685
|
+
_context27.next = 7;
|
|
8716
8686
|
break;
|
|
8717
8687
|
}
|
|
8718
8688
|
|
|
8719
8689
|
throw Error('User ID is required when updating a user');
|
|
8720
8690
|
|
|
8721
8691
|
case 7:
|
|
8722
|
-
|
|
8692
|
+
_context27.next = 3;
|
|
8723
8693
|
break;
|
|
8724
8694
|
|
|
8725
8695
|
case 9:
|
|
8726
|
-
|
|
8696
|
+
_context27.next = 14;
|
|
8727
8697
|
break;
|
|
8728
8698
|
|
|
8729
8699
|
case 11:
|
|
8730
|
-
|
|
8731
|
-
|
|
8700
|
+
_context27.prev = 11;
|
|
8701
|
+
_context27.t0 = _context27["catch"](1);
|
|
8732
8702
|
|
|
8733
|
-
_iterator5.e(
|
|
8703
|
+
_iterator5.e(_context27.t0);
|
|
8734
8704
|
|
|
8735
8705
|
case 14:
|
|
8736
|
-
|
|
8706
|
+
_context27.prev = 14;
|
|
8737
8707
|
|
|
8738
8708
|
_iterator5.f();
|
|
8739
8709
|
|
|
8740
|
-
return
|
|
8710
|
+
return _context27.finish(14);
|
|
8741
8711
|
|
|
8742
8712
|
case 17:
|
|
8743
|
-
|
|
8713
|
+
_context27.next = 19;
|
|
8744
8714
|
return this.patch(this.baseURL + '/users', {
|
|
8745
8715
|
users: users
|
|
8746
8716
|
});
|
|
8747
8717
|
|
|
8748
8718
|
case 19:
|
|
8749
|
-
return
|
|
8719
|
+
return _context27.abrupt("return", _context27.sent);
|
|
8750
8720
|
|
|
8751
8721
|
case 20:
|
|
8752
8722
|
case "end":
|
|
8753
|
-
return
|
|
8723
|
+
return _context27.stop();
|
|
8754
8724
|
}
|
|
8755
8725
|
}
|
|
8756
|
-
},
|
|
8726
|
+
}, _callee27, this, [[1, 11, 14, 17]]);
|
|
8757
8727
|
}));
|
|
8758
8728
|
|
|
8759
|
-
function partialUpdateUsers(
|
|
8729
|
+
function partialUpdateUsers(_x30) {
|
|
8760
8730
|
return _partialUpdateUsers.apply(this, arguments);
|
|
8761
8731
|
}
|
|
8762
8732
|
|
|
@@ -8765,26 +8735,26 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
8765
8735
|
}, {
|
|
8766
8736
|
key: "deleteUser",
|
|
8767
8737
|
value: function () {
|
|
8768
|
-
var _deleteUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
8769
|
-
return _regeneratorRuntime.wrap(function
|
|
8738
|
+
var _deleteUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee28(userID, params) {
|
|
8739
|
+
return _regeneratorRuntime.wrap(function _callee28$(_context28) {
|
|
8770
8740
|
while (1) {
|
|
8771
|
-
switch (
|
|
8741
|
+
switch (_context28.prev = _context28.next) {
|
|
8772
8742
|
case 0:
|
|
8773
|
-
|
|
8743
|
+
_context28.next = 2;
|
|
8774
8744
|
return this.delete(this.baseURL + "/users/".concat(userID), params);
|
|
8775
8745
|
|
|
8776
8746
|
case 2:
|
|
8777
|
-
return
|
|
8747
|
+
return _context28.abrupt("return", _context28.sent);
|
|
8778
8748
|
|
|
8779
8749
|
case 3:
|
|
8780
8750
|
case "end":
|
|
8781
|
-
return
|
|
8751
|
+
return _context28.stop();
|
|
8782
8752
|
}
|
|
8783
8753
|
}
|
|
8784
|
-
},
|
|
8754
|
+
}, _callee28, this);
|
|
8785
8755
|
}));
|
|
8786
8756
|
|
|
8787
|
-
function deleteUser(
|
|
8757
|
+
function deleteUser(_x31, _x32) {
|
|
8788
8758
|
return _deleteUser.apply(this, arguments);
|
|
8789
8759
|
}
|
|
8790
8760
|
|
|
@@ -8801,28 +8771,28 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
8801
8771
|
}, {
|
|
8802
8772
|
key: "restoreUsers",
|
|
8803
8773
|
value: function () {
|
|
8804
|
-
var _restoreUsers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
8805
|
-
return _regeneratorRuntime.wrap(function
|
|
8774
|
+
var _restoreUsers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee29(user_ids) {
|
|
8775
|
+
return _regeneratorRuntime.wrap(function _callee29$(_context29) {
|
|
8806
8776
|
while (1) {
|
|
8807
|
-
switch (
|
|
8777
|
+
switch (_context29.prev = _context29.next) {
|
|
8808
8778
|
case 0:
|
|
8809
|
-
|
|
8779
|
+
_context29.next = 2;
|
|
8810
8780
|
return this.post(this.baseURL + "/users/restore", {
|
|
8811
8781
|
user_ids: user_ids
|
|
8812
8782
|
});
|
|
8813
8783
|
|
|
8814
8784
|
case 2:
|
|
8815
|
-
return
|
|
8785
|
+
return _context29.abrupt("return", _context29.sent);
|
|
8816
8786
|
|
|
8817
8787
|
case 3:
|
|
8818
8788
|
case "end":
|
|
8819
|
-
return
|
|
8789
|
+
return _context29.stop();
|
|
8820
8790
|
}
|
|
8821
8791
|
}
|
|
8822
|
-
},
|
|
8792
|
+
}, _callee29, this);
|
|
8823
8793
|
}));
|
|
8824
8794
|
|
|
8825
|
-
function restoreUsers(
|
|
8795
|
+
function restoreUsers(_x33) {
|
|
8826
8796
|
return _restoreUsers.apply(this, arguments);
|
|
8827
8797
|
}
|
|
8828
8798
|
|
|
@@ -8840,26 +8810,26 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
8840
8810
|
}, {
|
|
8841
8811
|
key: "reactivateUser",
|
|
8842
8812
|
value: function () {
|
|
8843
|
-
var _reactivateUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
8844
|
-
return _regeneratorRuntime.wrap(function
|
|
8813
|
+
var _reactivateUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee30(userID, options) {
|
|
8814
|
+
return _regeneratorRuntime.wrap(function _callee30$(_context30) {
|
|
8845
8815
|
while (1) {
|
|
8846
|
-
switch (
|
|
8816
|
+
switch (_context30.prev = _context30.next) {
|
|
8847
8817
|
case 0:
|
|
8848
|
-
|
|
8818
|
+
_context30.next = 2;
|
|
8849
8819
|
return this.post(this.baseURL + "/users/".concat(userID, "/reactivate"), _objectSpread({}, options));
|
|
8850
8820
|
|
|
8851
8821
|
case 2:
|
|
8852
|
-
return
|
|
8822
|
+
return _context30.abrupt("return", _context30.sent);
|
|
8853
8823
|
|
|
8854
8824
|
case 3:
|
|
8855
8825
|
case "end":
|
|
8856
|
-
return
|
|
8826
|
+
return _context30.stop();
|
|
8857
8827
|
}
|
|
8858
8828
|
}
|
|
8859
|
-
},
|
|
8829
|
+
}, _callee30, this);
|
|
8860
8830
|
}));
|
|
8861
8831
|
|
|
8862
|
-
function reactivateUser(
|
|
8832
|
+
function reactivateUser(_x34, _x35) {
|
|
8863
8833
|
return _reactivateUser.apply(this, arguments);
|
|
8864
8834
|
}
|
|
8865
8835
|
|
|
@@ -8877,28 +8847,28 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
8877
8847
|
}, {
|
|
8878
8848
|
key: "reactivateUsers",
|
|
8879
8849
|
value: function () {
|
|
8880
|
-
var _reactivateUsers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
8881
|
-
return _regeneratorRuntime.wrap(function
|
|
8850
|
+
var _reactivateUsers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee31(user_ids, options) {
|
|
8851
|
+
return _regeneratorRuntime.wrap(function _callee31$(_context31) {
|
|
8882
8852
|
while (1) {
|
|
8883
|
-
switch (
|
|
8853
|
+
switch (_context31.prev = _context31.next) {
|
|
8884
8854
|
case 0:
|
|
8885
|
-
|
|
8855
|
+
_context31.next = 2;
|
|
8886
8856
|
return this.post(this.baseURL + "/users/reactivate", _objectSpread({
|
|
8887
8857
|
user_ids: user_ids
|
|
8888
8858
|
}, options));
|
|
8889
8859
|
|
|
8890
8860
|
case 2:
|
|
8891
|
-
return
|
|
8861
|
+
return _context31.abrupt("return", _context31.sent);
|
|
8892
8862
|
|
|
8893
8863
|
case 3:
|
|
8894
8864
|
case "end":
|
|
8895
|
-
return
|
|
8865
|
+
return _context31.stop();
|
|
8896
8866
|
}
|
|
8897
8867
|
}
|
|
8898
|
-
},
|
|
8868
|
+
}, _callee31, this);
|
|
8899
8869
|
}));
|
|
8900
8870
|
|
|
8901
|
-
function reactivateUsers(
|
|
8871
|
+
function reactivateUsers(_x36, _x37) {
|
|
8902
8872
|
return _reactivateUsers.apply(this, arguments);
|
|
8903
8873
|
}
|
|
8904
8874
|
|
|
@@ -8916,26 +8886,26 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
8916
8886
|
}, {
|
|
8917
8887
|
key: "deactivateUser",
|
|
8918
8888
|
value: function () {
|
|
8919
|
-
var _deactivateUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
8920
|
-
return _regeneratorRuntime.wrap(function
|
|
8889
|
+
var _deactivateUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee32(userID, options) {
|
|
8890
|
+
return _regeneratorRuntime.wrap(function _callee32$(_context32) {
|
|
8921
8891
|
while (1) {
|
|
8922
|
-
switch (
|
|
8892
|
+
switch (_context32.prev = _context32.next) {
|
|
8923
8893
|
case 0:
|
|
8924
|
-
|
|
8894
|
+
_context32.next = 2;
|
|
8925
8895
|
return this.post(this.baseURL + "/users/".concat(userID, "/deactivate"), _objectSpread({}, options));
|
|
8926
8896
|
|
|
8927
8897
|
case 2:
|
|
8928
|
-
return
|
|
8898
|
+
return _context32.abrupt("return", _context32.sent);
|
|
8929
8899
|
|
|
8930
8900
|
case 3:
|
|
8931
8901
|
case "end":
|
|
8932
|
-
return
|
|
8902
|
+
return _context32.stop();
|
|
8933
8903
|
}
|
|
8934
8904
|
}
|
|
8935
|
-
},
|
|
8905
|
+
}, _callee32, this);
|
|
8936
8906
|
}));
|
|
8937
8907
|
|
|
8938
|
-
function deactivateUser(
|
|
8908
|
+
function deactivateUser(_x38, _x39) {
|
|
8939
8909
|
return _deactivateUser.apply(this, arguments);
|
|
8940
8910
|
}
|
|
8941
8911
|
|
|
@@ -8953,28 +8923,28 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
8953
8923
|
}, {
|
|
8954
8924
|
key: "deactivateUsers",
|
|
8955
8925
|
value: function () {
|
|
8956
|
-
var _deactivateUsers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
8957
|
-
return _regeneratorRuntime.wrap(function
|
|
8926
|
+
var _deactivateUsers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee33(user_ids, options) {
|
|
8927
|
+
return _regeneratorRuntime.wrap(function _callee33$(_context33) {
|
|
8958
8928
|
while (1) {
|
|
8959
|
-
switch (
|
|
8929
|
+
switch (_context33.prev = _context33.next) {
|
|
8960
8930
|
case 0:
|
|
8961
|
-
|
|
8931
|
+
_context33.next = 2;
|
|
8962
8932
|
return this.post(this.baseURL + "/users/deactivate", _objectSpread({
|
|
8963
8933
|
user_ids: user_ids
|
|
8964
8934
|
}, options));
|
|
8965
8935
|
|
|
8966
8936
|
case 2:
|
|
8967
|
-
return
|
|
8937
|
+
return _context33.abrupt("return", _context33.sent);
|
|
8968
8938
|
|
|
8969
8939
|
case 3:
|
|
8970
8940
|
case "end":
|
|
8971
|
-
return
|
|
8941
|
+
return _context33.stop();
|
|
8972
8942
|
}
|
|
8973
8943
|
}
|
|
8974
|
-
},
|
|
8944
|
+
}, _callee33, this);
|
|
8975
8945
|
}));
|
|
8976
8946
|
|
|
8977
|
-
function deactivateUsers(
|
|
8947
|
+
function deactivateUsers(_x40, _x41) {
|
|
8978
8948
|
return _deactivateUsers.apply(this, arguments);
|
|
8979
8949
|
}
|
|
8980
8950
|
|
|
@@ -8983,26 +8953,26 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
8983
8953
|
}, {
|
|
8984
8954
|
key: "exportUser",
|
|
8985
8955
|
value: function () {
|
|
8986
|
-
var _exportUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
8987
|
-
return _regeneratorRuntime.wrap(function
|
|
8956
|
+
var _exportUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee34(userID, options) {
|
|
8957
|
+
return _regeneratorRuntime.wrap(function _callee34$(_context34) {
|
|
8988
8958
|
while (1) {
|
|
8989
|
-
switch (
|
|
8959
|
+
switch (_context34.prev = _context34.next) {
|
|
8990
8960
|
case 0:
|
|
8991
|
-
|
|
8961
|
+
_context34.next = 2;
|
|
8992
8962
|
return this.get(this.baseURL + "/users/".concat(userID, "/export"), _objectSpread({}, options));
|
|
8993
8963
|
|
|
8994
8964
|
case 2:
|
|
8995
|
-
return
|
|
8965
|
+
return _context34.abrupt("return", _context34.sent);
|
|
8996
8966
|
|
|
8997
8967
|
case 3:
|
|
8998
8968
|
case "end":
|
|
8999
|
-
return
|
|
8969
|
+
return _context34.stop();
|
|
9000
8970
|
}
|
|
9001
8971
|
}
|
|
9002
|
-
},
|
|
8972
|
+
}, _callee34, this);
|
|
9003
8973
|
}));
|
|
9004
8974
|
|
|
9005
|
-
function exportUser(
|
|
8975
|
+
function exportUser(_x42, _x43) {
|
|
9006
8976
|
return _exportUser.apply(this, arguments);
|
|
9007
8977
|
}
|
|
9008
8978
|
|
|
@@ -9018,28 +8988,28 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9018
8988
|
}, {
|
|
9019
8989
|
key: "banUser",
|
|
9020
8990
|
value: function () {
|
|
9021
|
-
var _banUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
9022
|
-
return _regeneratorRuntime.wrap(function
|
|
8991
|
+
var _banUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee35(targetUserID, options) {
|
|
8992
|
+
return _regeneratorRuntime.wrap(function _callee35$(_context35) {
|
|
9023
8993
|
while (1) {
|
|
9024
|
-
switch (
|
|
8994
|
+
switch (_context35.prev = _context35.next) {
|
|
9025
8995
|
case 0:
|
|
9026
|
-
|
|
8996
|
+
_context35.next = 2;
|
|
9027
8997
|
return this.post(this.baseURL + '/moderation/ban', _objectSpread({
|
|
9028
8998
|
target_user_id: targetUserID
|
|
9029
8999
|
}, options));
|
|
9030
9000
|
|
|
9031
9001
|
case 2:
|
|
9032
|
-
return
|
|
9002
|
+
return _context35.abrupt("return", _context35.sent);
|
|
9033
9003
|
|
|
9034
9004
|
case 3:
|
|
9035
9005
|
case "end":
|
|
9036
|
-
return
|
|
9006
|
+
return _context35.stop();
|
|
9037
9007
|
}
|
|
9038
9008
|
}
|
|
9039
|
-
},
|
|
9009
|
+
}, _callee35, this);
|
|
9040
9010
|
}));
|
|
9041
9011
|
|
|
9042
|
-
function banUser(
|
|
9012
|
+
function banUser(_x44, _x45) {
|
|
9043
9013
|
return _banUser.apply(this, arguments);
|
|
9044
9014
|
}
|
|
9045
9015
|
|
|
@@ -9055,28 +9025,28 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9055
9025
|
}, {
|
|
9056
9026
|
key: "unbanUser",
|
|
9057
9027
|
value: function () {
|
|
9058
|
-
var _unbanUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
9059
|
-
return _regeneratorRuntime.wrap(function
|
|
9028
|
+
var _unbanUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee36(targetUserID, options) {
|
|
9029
|
+
return _regeneratorRuntime.wrap(function _callee36$(_context36) {
|
|
9060
9030
|
while (1) {
|
|
9061
|
-
switch (
|
|
9031
|
+
switch (_context36.prev = _context36.next) {
|
|
9062
9032
|
case 0:
|
|
9063
|
-
|
|
9033
|
+
_context36.next = 2;
|
|
9064
9034
|
return this.delete(this.baseURL + '/moderation/ban', _objectSpread({
|
|
9065
9035
|
target_user_id: targetUserID
|
|
9066
9036
|
}, options));
|
|
9067
9037
|
|
|
9068
9038
|
case 2:
|
|
9069
|
-
return
|
|
9039
|
+
return _context36.abrupt("return", _context36.sent);
|
|
9070
9040
|
|
|
9071
9041
|
case 3:
|
|
9072
9042
|
case "end":
|
|
9073
|
-
return
|
|
9043
|
+
return _context36.stop();
|
|
9074
9044
|
}
|
|
9075
9045
|
}
|
|
9076
|
-
},
|
|
9046
|
+
}, _callee36, this);
|
|
9077
9047
|
}));
|
|
9078
9048
|
|
|
9079
|
-
function unbanUser(
|
|
9049
|
+
function unbanUser(_x46, _x47) {
|
|
9080
9050
|
return _unbanUser.apply(this, arguments);
|
|
9081
9051
|
}
|
|
9082
9052
|
|
|
@@ -9092,28 +9062,28 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9092
9062
|
}, {
|
|
9093
9063
|
key: "shadowBan",
|
|
9094
9064
|
value: function () {
|
|
9095
|
-
var _shadowBan = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
9096
|
-
return _regeneratorRuntime.wrap(function
|
|
9065
|
+
var _shadowBan = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee37(targetUserID, options) {
|
|
9066
|
+
return _regeneratorRuntime.wrap(function _callee37$(_context37) {
|
|
9097
9067
|
while (1) {
|
|
9098
|
-
switch (
|
|
9068
|
+
switch (_context37.prev = _context37.next) {
|
|
9099
9069
|
case 0:
|
|
9100
|
-
|
|
9070
|
+
_context37.next = 2;
|
|
9101
9071
|
return this.banUser(targetUserID, _objectSpread({
|
|
9102
9072
|
shadow: true
|
|
9103
9073
|
}, options));
|
|
9104
9074
|
|
|
9105
9075
|
case 2:
|
|
9106
|
-
return
|
|
9076
|
+
return _context37.abrupt("return", _context37.sent);
|
|
9107
9077
|
|
|
9108
9078
|
case 3:
|
|
9109
9079
|
case "end":
|
|
9110
|
-
return
|
|
9080
|
+
return _context37.stop();
|
|
9111
9081
|
}
|
|
9112
9082
|
}
|
|
9113
|
-
},
|
|
9083
|
+
}, _callee37, this);
|
|
9114
9084
|
}));
|
|
9115
9085
|
|
|
9116
|
-
function shadowBan(
|
|
9086
|
+
function shadowBan(_x48, _x49) {
|
|
9117
9087
|
return _shadowBan.apply(this, arguments);
|
|
9118
9088
|
}
|
|
9119
9089
|
|
|
@@ -9129,28 +9099,28 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9129
9099
|
}, {
|
|
9130
9100
|
key: "removeShadowBan",
|
|
9131
9101
|
value: function () {
|
|
9132
|
-
var _removeShadowBan = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
9133
|
-
return _regeneratorRuntime.wrap(function
|
|
9102
|
+
var _removeShadowBan = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee38(targetUserID, options) {
|
|
9103
|
+
return _regeneratorRuntime.wrap(function _callee38$(_context38) {
|
|
9134
9104
|
while (1) {
|
|
9135
|
-
switch (
|
|
9105
|
+
switch (_context38.prev = _context38.next) {
|
|
9136
9106
|
case 0:
|
|
9137
|
-
|
|
9107
|
+
_context38.next = 2;
|
|
9138
9108
|
return this.unbanUser(targetUserID, _objectSpread({
|
|
9139
9109
|
shadow: true
|
|
9140
9110
|
}, options));
|
|
9141
9111
|
|
|
9142
9112
|
case 2:
|
|
9143
|
-
return
|
|
9113
|
+
return _context38.abrupt("return", _context38.sent);
|
|
9144
9114
|
|
|
9145
9115
|
case 3:
|
|
9146
9116
|
case "end":
|
|
9147
|
-
return
|
|
9117
|
+
return _context38.stop();
|
|
9148
9118
|
}
|
|
9149
9119
|
}
|
|
9150
|
-
},
|
|
9120
|
+
}, _callee38, this);
|
|
9151
9121
|
}));
|
|
9152
9122
|
|
|
9153
|
-
function removeShadowBan(
|
|
9123
|
+
function removeShadowBan(_x50, _x51) {
|
|
9154
9124
|
return _removeShadowBan.apply(this, arguments);
|
|
9155
9125
|
}
|
|
9156
9126
|
|
|
@@ -9167,15 +9137,15 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9167
9137
|
}, {
|
|
9168
9138
|
key: "muteUser",
|
|
9169
9139
|
value: function () {
|
|
9170
|
-
var _muteUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
9140
|
+
var _muteUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee39(targetID, userID) {
|
|
9171
9141
|
var options,
|
|
9172
|
-
|
|
9173
|
-
return _regeneratorRuntime.wrap(function
|
|
9142
|
+
_args39 = arguments;
|
|
9143
|
+
return _regeneratorRuntime.wrap(function _callee39$(_context39) {
|
|
9174
9144
|
while (1) {
|
|
9175
|
-
switch (
|
|
9145
|
+
switch (_context39.prev = _context39.next) {
|
|
9176
9146
|
case 0:
|
|
9177
|
-
options =
|
|
9178
|
-
|
|
9147
|
+
options = _args39.length > 2 && _args39[2] !== undefined ? _args39[2] : {};
|
|
9148
|
+
_context39.next = 3;
|
|
9179
9149
|
return this.post(this.baseURL + '/moderation/mute', _objectSpread(_objectSpread({
|
|
9180
9150
|
target_id: targetID
|
|
9181
9151
|
}, userID ? {
|
|
@@ -9183,17 +9153,17 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9183
9153
|
} : {}), options));
|
|
9184
9154
|
|
|
9185
9155
|
case 3:
|
|
9186
|
-
return
|
|
9156
|
+
return _context39.abrupt("return", _context39.sent);
|
|
9187
9157
|
|
|
9188
9158
|
case 4:
|
|
9189
9159
|
case "end":
|
|
9190
|
-
return
|
|
9160
|
+
return _context39.stop();
|
|
9191
9161
|
}
|
|
9192
9162
|
}
|
|
9193
|
-
},
|
|
9163
|
+
}, _callee39, this);
|
|
9194
9164
|
}));
|
|
9195
9165
|
|
|
9196
|
-
function muteUser(
|
|
9166
|
+
function muteUser(_x52, _x53) {
|
|
9197
9167
|
return _muteUser.apply(this, arguments);
|
|
9198
9168
|
}
|
|
9199
9169
|
|
|
@@ -9209,12 +9179,12 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9209
9179
|
}, {
|
|
9210
9180
|
key: "unmuteUser",
|
|
9211
9181
|
value: function () {
|
|
9212
|
-
var _unmuteUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
9213
|
-
return _regeneratorRuntime.wrap(function
|
|
9182
|
+
var _unmuteUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee40(targetID, currentUserID) {
|
|
9183
|
+
return _regeneratorRuntime.wrap(function _callee40$(_context40) {
|
|
9214
9184
|
while (1) {
|
|
9215
|
-
switch (
|
|
9185
|
+
switch (_context40.prev = _context40.next) {
|
|
9216
9186
|
case 0:
|
|
9217
|
-
|
|
9187
|
+
_context40.next = 2;
|
|
9218
9188
|
return this.post(this.baseURL + '/moderation/unmute', _objectSpread({
|
|
9219
9189
|
target_id: targetID
|
|
9220
9190
|
}, currentUserID ? {
|
|
@@ -9222,17 +9192,17 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9222
9192
|
} : {}));
|
|
9223
9193
|
|
|
9224
9194
|
case 2:
|
|
9225
|
-
return
|
|
9195
|
+
return _context40.abrupt("return", _context40.sent);
|
|
9226
9196
|
|
|
9227
9197
|
case 3:
|
|
9228
9198
|
case "end":
|
|
9229
|
-
return
|
|
9199
|
+
return _context40.stop();
|
|
9230
9200
|
}
|
|
9231
9201
|
}
|
|
9232
|
-
},
|
|
9202
|
+
}, _callee40, this);
|
|
9233
9203
|
}));
|
|
9234
9204
|
|
|
9235
|
-
function unmuteUser(
|
|
9205
|
+
function unmuteUser(_x54, _x55) {
|
|
9236
9206
|
return _unmuteUser.apply(this, arguments);
|
|
9237
9207
|
}
|
|
9238
9208
|
|
|
@@ -9267,31 +9237,31 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9267
9237
|
}, {
|
|
9268
9238
|
key: "flagMessage",
|
|
9269
9239
|
value: function () {
|
|
9270
|
-
var _flagMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
9240
|
+
var _flagMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee41(targetMessageID) {
|
|
9271
9241
|
var options,
|
|
9272
|
-
|
|
9273
|
-
return _regeneratorRuntime.wrap(function
|
|
9242
|
+
_args41 = arguments;
|
|
9243
|
+
return _regeneratorRuntime.wrap(function _callee41$(_context41) {
|
|
9274
9244
|
while (1) {
|
|
9275
|
-
switch (
|
|
9245
|
+
switch (_context41.prev = _context41.next) {
|
|
9276
9246
|
case 0:
|
|
9277
|
-
options =
|
|
9278
|
-
|
|
9247
|
+
options = _args41.length > 1 && _args41[1] !== undefined ? _args41[1] : {};
|
|
9248
|
+
_context41.next = 3;
|
|
9279
9249
|
return this.post(this.baseURL + '/moderation/flag', _objectSpread({
|
|
9280
9250
|
target_message_id: targetMessageID
|
|
9281
9251
|
}, options));
|
|
9282
9252
|
|
|
9283
9253
|
case 3:
|
|
9284
|
-
return
|
|
9254
|
+
return _context41.abrupt("return", _context41.sent);
|
|
9285
9255
|
|
|
9286
9256
|
case 4:
|
|
9287
9257
|
case "end":
|
|
9288
|
-
return
|
|
9258
|
+
return _context41.stop();
|
|
9289
9259
|
}
|
|
9290
9260
|
}
|
|
9291
|
-
},
|
|
9261
|
+
}, _callee41, this);
|
|
9292
9262
|
}));
|
|
9293
9263
|
|
|
9294
|
-
function flagMessage(
|
|
9264
|
+
function flagMessage(_x56) {
|
|
9295
9265
|
return _flagMessage.apply(this, arguments);
|
|
9296
9266
|
}
|
|
9297
9267
|
|
|
@@ -9307,31 +9277,31 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9307
9277
|
}, {
|
|
9308
9278
|
key: "flagUser",
|
|
9309
9279
|
value: function () {
|
|
9310
|
-
var _flagUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
9280
|
+
var _flagUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee42(targetID) {
|
|
9311
9281
|
var options,
|
|
9312
|
-
|
|
9313
|
-
return _regeneratorRuntime.wrap(function
|
|
9282
|
+
_args42 = arguments;
|
|
9283
|
+
return _regeneratorRuntime.wrap(function _callee42$(_context42) {
|
|
9314
9284
|
while (1) {
|
|
9315
|
-
switch (
|
|
9285
|
+
switch (_context42.prev = _context42.next) {
|
|
9316
9286
|
case 0:
|
|
9317
|
-
options =
|
|
9318
|
-
|
|
9287
|
+
options = _args42.length > 1 && _args42[1] !== undefined ? _args42[1] : {};
|
|
9288
|
+
_context42.next = 3;
|
|
9319
9289
|
return this.post(this.baseURL + '/moderation/flag', _objectSpread({
|
|
9320
9290
|
target_user_id: targetID
|
|
9321
9291
|
}, options));
|
|
9322
9292
|
|
|
9323
9293
|
case 3:
|
|
9324
|
-
return
|
|
9294
|
+
return _context42.abrupt("return", _context42.sent);
|
|
9325
9295
|
|
|
9326
9296
|
case 4:
|
|
9327
9297
|
case "end":
|
|
9328
|
-
return
|
|
9298
|
+
return _context42.stop();
|
|
9329
9299
|
}
|
|
9330
9300
|
}
|
|
9331
|
-
},
|
|
9301
|
+
}, _callee42, this);
|
|
9332
9302
|
}));
|
|
9333
9303
|
|
|
9334
|
-
function flagUser(
|
|
9304
|
+
function flagUser(_x57) {
|
|
9335
9305
|
return _flagUser.apply(this, arguments);
|
|
9336
9306
|
}
|
|
9337
9307
|
|
|
@@ -9347,31 +9317,31 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9347
9317
|
}, {
|
|
9348
9318
|
key: "unflagMessage",
|
|
9349
9319
|
value: function () {
|
|
9350
|
-
var _unflagMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
9320
|
+
var _unflagMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee43(targetMessageID) {
|
|
9351
9321
|
var options,
|
|
9352
|
-
|
|
9353
|
-
return _regeneratorRuntime.wrap(function
|
|
9322
|
+
_args43 = arguments;
|
|
9323
|
+
return _regeneratorRuntime.wrap(function _callee43$(_context43) {
|
|
9354
9324
|
while (1) {
|
|
9355
|
-
switch (
|
|
9325
|
+
switch (_context43.prev = _context43.next) {
|
|
9356
9326
|
case 0:
|
|
9357
|
-
options =
|
|
9358
|
-
|
|
9327
|
+
options = _args43.length > 1 && _args43[1] !== undefined ? _args43[1] : {};
|
|
9328
|
+
_context43.next = 3;
|
|
9359
9329
|
return this.post(this.baseURL + '/moderation/unflag', _objectSpread({
|
|
9360
9330
|
target_message_id: targetMessageID
|
|
9361
9331
|
}, options));
|
|
9362
9332
|
|
|
9363
9333
|
case 3:
|
|
9364
|
-
return
|
|
9334
|
+
return _context43.abrupt("return", _context43.sent);
|
|
9365
9335
|
|
|
9366
9336
|
case 4:
|
|
9367
9337
|
case "end":
|
|
9368
|
-
return
|
|
9338
|
+
return _context43.stop();
|
|
9369
9339
|
}
|
|
9370
9340
|
}
|
|
9371
|
-
},
|
|
9341
|
+
}, _callee43, this);
|
|
9372
9342
|
}));
|
|
9373
9343
|
|
|
9374
|
-
function unflagMessage(
|
|
9344
|
+
function unflagMessage(_x58) {
|
|
9375
9345
|
return _unflagMessage.apply(this, arguments);
|
|
9376
9346
|
}
|
|
9377
9347
|
|
|
@@ -9387,31 +9357,31 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9387
9357
|
}, {
|
|
9388
9358
|
key: "unflagUser",
|
|
9389
9359
|
value: function () {
|
|
9390
|
-
var _unflagUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
9360
|
+
var _unflagUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee44(targetID) {
|
|
9391
9361
|
var options,
|
|
9392
|
-
|
|
9393
|
-
return _regeneratorRuntime.wrap(function
|
|
9362
|
+
_args44 = arguments;
|
|
9363
|
+
return _regeneratorRuntime.wrap(function _callee44$(_context44) {
|
|
9394
9364
|
while (1) {
|
|
9395
|
-
switch (
|
|
9365
|
+
switch (_context44.prev = _context44.next) {
|
|
9396
9366
|
case 0:
|
|
9397
|
-
options =
|
|
9398
|
-
|
|
9367
|
+
options = _args44.length > 1 && _args44[1] !== undefined ? _args44[1] : {};
|
|
9368
|
+
_context44.next = 3;
|
|
9399
9369
|
return this.post(this.baseURL + '/moderation/unflag', _objectSpread({
|
|
9400
9370
|
target_user_id: targetID
|
|
9401
9371
|
}, options));
|
|
9402
9372
|
|
|
9403
9373
|
case 3:
|
|
9404
|
-
return
|
|
9374
|
+
return _context44.abrupt("return", _context44.sent);
|
|
9405
9375
|
|
|
9406
9376
|
case 4:
|
|
9407
9377
|
case "end":
|
|
9408
|
-
return
|
|
9378
|
+
return _context44.stop();
|
|
9409
9379
|
}
|
|
9410
9380
|
}
|
|
9411
|
-
},
|
|
9381
|
+
}, _callee44, this);
|
|
9412
9382
|
}));
|
|
9413
9383
|
|
|
9414
|
-
function unflagUser(
|
|
9384
|
+
function unflagUser(_x59) {
|
|
9415
9385
|
return _unflagUser.apply(this, arguments);
|
|
9416
9386
|
}
|
|
9417
9387
|
|
|
@@ -9428,29 +9398,29 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9428
9398
|
}, {
|
|
9429
9399
|
key: "getCallToken",
|
|
9430
9400
|
value: function () {
|
|
9431
|
-
var _getCallToken = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
9401
|
+
var _getCallToken = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee45(callID) {
|
|
9432
9402
|
var options,
|
|
9433
|
-
|
|
9434
|
-
return _regeneratorRuntime.wrap(function
|
|
9403
|
+
_args45 = arguments;
|
|
9404
|
+
return _regeneratorRuntime.wrap(function _callee45$(_context45) {
|
|
9435
9405
|
while (1) {
|
|
9436
|
-
switch (
|
|
9406
|
+
switch (_context45.prev = _context45.next) {
|
|
9437
9407
|
case 0:
|
|
9438
|
-
options =
|
|
9439
|
-
|
|
9408
|
+
options = _args45.length > 1 && _args45[1] !== undefined ? _args45[1] : {};
|
|
9409
|
+
_context45.next = 3;
|
|
9440
9410
|
return this.post(this.baseURL + "/calls/".concat(callID), _objectSpread({}, options));
|
|
9441
9411
|
|
|
9442
9412
|
case 3:
|
|
9443
|
-
return
|
|
9413
|
+
return _context45.abrupt("return", _context45.sent);
|
|
9444
9414
|
|
|
9445
9415
|
case 4:
|
|
9446
9416
|
case "end":
|
|
9447
|
-
return
|
|
9417
|
+
return _context45.stop();
|
|
9448
9418
|
}
|
|
9449
9419
|
}
|
|
9450
|
-
},
|
|
9420
|
+
}, _callee45, this);
|
|
9451
9421
|
}));
|
|
9452
9422
|
|
|
9453
|
-
function getCallToken(
|
|
9423
|
+
function getCallToken(_x60) {
|
|
9454
9424
|
return _getCallToken.apply(this, arguments);
|
|
9455
9425
|
}
|
|
9456
9426
|
|
|
@@ -9473,30 +9443,30 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9473
9443
|
}, {
|
|
9474
9444
|
key: "_queryFlags",
|
|
9475
9445
|
value: function () {
|
|
9476
|
-
var _queryFlags2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
9446
|
+
var _queryFlags2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee46() {
|
|
9477
9447
|
var filterConditions,
|
|
9478
9448
|
options,
|
|
9479
|
-
|
|
9480
|
-
return _regeneratorRuntime.wrap(function
|
|
9449
|
+
_args46 = arguments;
|
|
9450
|
+
return _regeneratorRuntime.wrap(function _callee46$(_context46) {
|
|
9481
9451
|
while (1) {
|
|
9482
|
-
switch (
|
|
9452
|
+
switch (_context46.prev = _context46.next) {
|
|
9483
9453
|
case 0:
|
|
9484
|
-
filterConditions =
|
|
9485
|
-
options =
|
|
9486
|
-
|
|
9454
|
+
filterConditions = _args46.length > 0 && _args46[0] !== undefined ? _args46[0] : {};
|
|
9455
|
+
options = _args46.length > 1 && _args46[1] !== undefined ? _args46[1] : {};
|
|
9456
|
+
_context46.next = 4;
|
|
9487
9457
|
return this.post(this.baseURL + '/moderation/flags', _objectSpread({
|
|
9488
9458
|
filter_conditions: filterConditions
|
|
9489
9459
|
}, options));
|
|
9490
9460
|
|
|
9491
9461
|
case 4:
|
|
9492
|
-
return
|
|
9462
|
+
return _context46.abrupt("return", _context46.sent);
|
|
9493
9463
|
|
|
9494
9464
|
case 5:
|
|
9495
9465
|
case "end":
|
|
9496
|
-
return
|
|
9466
|
+
return _context46.stop();
|
|
9497
9467
|
}
|
|
9498
9468
|
}
|
|
9499
|
-
},
|
|
9469
|
+
}, _callee46, this);
|
|
9500
9470
|
}));
|
|
9501
9471
|
|
|
9502
9472
|
function _queryFlags() {
|
|
@@ -9522,30 +9492,30 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9522
9492
|
}, {
|
|
9523
9493
|
key: "_queryFlagReports",
|
|
9524
9494
|
value: function () {
|
|
9525
|
-
var _queryFlagReports2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
9495
|
+
var _queryFlagReports2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee47() {
|
|
9526
9496
|
var filterConditions,
|
|
9527
9497
|
options,
|
|
9528
|
-
|
|
9529
|
-
return _regeneratorRuntime.wrap(function
|
|
9498
|
+
_args47 = arguments;
|
|
9499
|
+
return _regeneratorRuntime.wrap(function _callee47$(_context47) {
|
|
9530
9500
|
while (1) {
|
|
9531
|
-
switch (
|
|
9501
|
+
switch (_context47.prev = _context47.next) {
|
|
9532
9502
|
case 0:
|
|
9533
|
-
filterConditions =
|
|
9534
|
-
options =
|
|
9535
|
-
|
|
9503
|
+
filterConditions = _args47.length > 0 && _args47[0] !== undefined ? _args47[0] : {};
|
|
9504
|
+
options = _args47.length > 1 && _args47[1] !== undefined ? _args47[1] : {};
|
|
9505
|
+
_context47.next = 4;
|
|
9536
9506
|
return this.post(this.baseURL + '/moderation/reports', _objectSpread({
|
|
9537
9507
|
filter_conditions: filterConditions
|
|
9538
9508
|
}, options));
|
|
9539
9509
|
|
|
9540
9510
|
case 4:
|
|
9541
|
-
return
|
|
9511
|
+
return _context47.abrupt("return", _context47.sent);
|
|
9542
9512
|
|
|
9543
9513
|
case 5:
|
|
9544
9514
|
case "end":
|
|
9545
|
-
return
|
|
9515
|
+
return _context47.stop();
|
|
9546
9516
|
}
|
|
9547
9517
|
}
|
|
9548
|
-
},
|
|
9518
|
+
}, _callee47, this);
|
|
9549
9519
|
}));
|
|
9550
9520
|
|
|
9551
9521
|
function _queryFlagReports() {
|
|
@@ -9572,31 +9542,31 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9572
9542
|
}, {
|
|
9573
9543
|
key: "_reviewFlagReport",
|
|
9574
9544
|
value: function () {
|
|
9575
|
-
var _reviewFlagReport2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
9545
|
+
var _reviewFlagReport2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee48(id, reviewResult) {
|
|
9576
9546
|
var options,
|
|
9577
|
-
|
|
9578
|
-
return _regeneratorRuntime.wrap(function
|
|
9547
|
+
_args48 = arguments;
|
|
9548
|
+
return _regeneratorRuntime.wrap(function _callee48$(_context48) {
|
|
9579
9549
|
while (1) {
|
|
9580
|
-
switch (
|
|
9550
|
+
switch (_context48.prev = _context48.next) {
|
|
9581
9551
|
case 0:
|
|
9582
|
-
options =
|
|
9583
|
-
|
|
9552
|
+
options = _args48.length > 2 && _args48[2] !== undefined ? _args48[2] : {};
|
|
9553
|
+
_context48.next = 3;
|
|
9584
9554
|
return this.patch(this.baseURL + "/moderation/reports/".concat(id), _objectSpread({
|
|
9585
9555
|
review_result: reviewResult
|
|
9586
9556
|
}, options));
|
|
9587
9557
|
|
|
9588
9558
|
case 3:
|
|
9589
|
-
return
|
|
9559
|
+
return _context48.abrupt("return", _context48.sent);
|
|
9590
9560
|
|
|
9591
9561
|
case 4:
|
|
9592
9562
|
case "end":
|
|
9593
|
-
return
|
|
9563
|
+
return _context48.stop();
|
|
9594
9564
|
}
|
|
9595
9565
|
}
|
|
9596
|
-
},
|
|
9566
|
+
}, _callee48, this);
|
|
9597
9567
|
}));
|
|
9598
9568
|
|
|
9599
|
-
function _reviewFlagReport(
|
|
9569
|
+
function _reviewFlagReport(_x61, _x62) {
|
|
9600
9570
|
return _reviewFlagReport2.apply(this, arguments);
|
|
9601
9571
|
}
|
|
9602
9572
|
|
|
@@ -9618,31 +9588,31 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9618
9588
|
}, {
|
|
9619
9589
|
key: "_unblockMessage",
|
|
9620
9590
|
value: function () {
|
|
9621
|
-
var _unblockMessage2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
9591
|
+
var _unblockMessage2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee49(targetMessageID) {
|
|
9622
9592
|
var options,
|
|
9623
|
-
|
|
9624
|
-
return _regeneratorRuntime.wrap(function
|
|
9593
|
+
_args49 = arguments;
|
|
9594
|
+
return _regeneratorRuntime.wrap(function _callee49$(_context49) {
|
|
9625
9595
|
while (1) {
|
|
9626
|
-
switch (
|
|
9596
|
+
switch (_context49.prev = _context49.next) {
|
|
9627
9597
|
case 0:
|
|
9628
|
-
options =
|
|
9629
|
-
|
|
9598
|
+
options = _args49.length > 1 && _args49[1] !== undefined ? _args49[1] : {};
|
|
9599
|
+
_context49.next = 3;
|
|
9630
9600
|
return this.post(this.baseURL + '/moderation/unblock_message', _objectSpread({
|
|
9631
9601
|
target_message_id: targetMessageID
|
|
9632
9602
|
}, options));
|
|
9633
9603
|
|
|
9634
9604
|
case 3:
|
|
9635
|
-
return
|
|
9605
|
+
return _context49.abrupt("return", _context49.sent);
|
|
9636
9606
|
|
|
9637
9607
|
case 4:
|
|
9638
9608
|
case "end":
|
|
9639
|
-
return
|
|
9609
|
+
return _context49.stop();
|
|
9640
9610
|
}
|
|
9641
9611
|
}
|
|
9642
|
-
},
|
|
9612
|
+
}, _callee49, this);
|
|
9643
9613
|
}));
|
|
9644
9614
|
|
|
9645
|
-
function _unblockMessage(
|
|
9615
|
+
function _unblockMessage(_x63) {
|
|
9646
9616
|
return _unblockMessage2.apply(this, arguments);
|
|
9647
9617
|
}
|
|
9648
9618
|
|
|
@@ -9669,23 +9639,23 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9669
9639
|
* @return {Promise<APIResponse>}
|
|
9670
9640
|
*/
|
|
9671
9641
|
function () {
|
|
9672
|
-
var _markChannelsRead = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
9642
|
+
var _markChannelsRead = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee50() {
|
|
9673
9643
|
var data,
|
|
9674
|
-
|
|
9675
|
-
return _regeneratorRuntime.wrap(function
|
|
9644
|
+
_args50 = arguments;
|
|
9645
|
+
return _regeneratorRuntime.wrap(function _callee50$(_context50) {
|
|
9676
9646
|
while (1) {
|
|
9677
|
-
switch (
|
|
9647
|
+
switch (_context50.prev = _context50.next) {
|
|
9678
9648
|
case 0:
|
|
9679
|
-
data =
|
|
9680
|
-
|
|
9649
|
+
data = _args50.length > 0 && _args50[0] !== undefined ? _args50[0] : {};
|
|
9650
|
+
_context50.next = 3;
|
|
9681
9651
|
return this.post(this.baseURL + '/channels/read', _objectSpread({}, data));
|
|
9682
9652
|
|
|
9683
9653
|
case 3:
|
|
9684
9654
|
case "end":
|
|
9685
|
-
return
|
|
9655
|
+
return _context50.stop();
|
|
9686
9656
|
}
|
|
9687
9657
|
}
|
|
9688
|
-
},
|
|
9658
|
+
}, _callee50, this);
|
|
9689
9659
|
}));
|
|
9690
9660
|
|
|
9691
9661
|
function markChannelsRead() {
|
|
@@ -9760,28 +9730,28 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9760
9730
|
}, {
|
|
9761
9731
|
key: "translateMessage",
|
|
9762
9732
|
value: function () {
|
|
9763
|
-
var _translateMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
9764
|
-
return _regeneratorRuntime.wrap(function
|
|
9733
|
+
var _translateMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee51(messageId, language) {
|
|
9734
|
+
return _regeneratorRuntime.wrap(function _callee51$(_context51) {
|
|
9765
9735
|
while (1) {
|
|
9766
|
-
switch (
|
|
9736
|
+
switch (_context51.prev = _context51.next) {
|
|
9767
9737
|
case 0:
|
|
9768
|
-
|
|
9738
|
+
_context51.next = 2;
|
|
9769
9739
|
return this.post(this.baseURL + "/messages/".concat(messageId, "/translate"), {
|
|
9770
9740
|
language: language
|
|
9771
9741
|
});
|
|
9772
9742
|
|
|
9773
9743
|
case 2:
|
|
9774
|
-
return
|
|
9744
|
+
return _context51.abrupt("return", _context51.sent);
|
|
9775
9745
|
|
|
9776
9746
|
case 3:
|
|
9777
9747
|
case "end":
|
|
9778
|
-
return
|
|
9748
|
+
return _context51.stop();
|
|
9779
9749
|
}
|
|
9780
9750
|
}
|
|
9781
|
-
},
|
|
9751
|
+
}, _callee51, this);
|
|
9782
9752
|
}));
|
|
9783
9753
|
|
|
9784
|
-
function translateMessage(
|
|
9754
|
+
function translateMessage(_x64, _x65) {
|
|
9785
9755
|
return _translateMessage.apply(this, arguments);
|
|
9786
9756
|
}
|
|
9787
9757
|
|
|
@@ -9883,14 +9853,14 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9883
9853
|
}, {
|
|
9884
9854
|
key: "updateMessage",
|
|
9885
9855
|
value: function () {
|
|
9886
|
-
var _updateMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
9856
|
+
var _updateMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee52(message, userId, options) {
|
|
9887
9857
|
var clonedMessage, reservedMessageFields;
|
|
9888
|
-
return _regeneratorRuntime.wrap(function
|
|
9858
|
+
return _regeneratorRuntime.wrap(function _callee52$(_context52) {
|
|
9889
9859
|
while (1) {
|
|
9890
|
-
switch (
|
|
9860
|
+
switch (_context52.prev = _context52.next) {
|
|
9891
9861
|
case 0:
|
|
9892
9862
|
if (message.id) {
|
|
9893
|
-
|
|
9863
|
+
_context52.next = 2;
|
|
9894
9864
|
break;
|
|
9895
9865
|
}
|
|
9896
9866
|
|
|
@@ -9927,23 +9897,23 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9927
9897
|
});
|
|
9928
9898
|
}
|
|
9929
9899
|
|
|
9930
|
-
|
|
9900
|
+
_context52.next = 10;
|
|
9931
9901
|
return this.post(this.baseURL + "/messages/".concat(message.id), _objectSpread({
|
|
9932
9902
|
message: clonedMessage
|
|
9933
9903
|
}, options));
|
|
9934
9904
|
|
|
9935
9905
|
case 10:
|
|
9936
|
-
return
|
|
9906
|
+
return _context52.abrupt("return", _context52.sent);
|
|
9937
9907
|
|
|
9938
9908
|
case 11:
|
|
9939
9909
|
case "end":
|
|
9940
|
-
return
|
|
9910
|
+
return _context52.stop();
|
|
9941
9911
|
}
|
|
9942
9912
|
}
|
|
9943
|
-
},
|
|
9913
|
+
}, _callee52, this);
|
|
9944
9914
|
}));
|
|
9945
9915
|
|
|
9946
|
-
function updateMessage(_x67, _x68
|
|
9916
|
+
function updateMessage(_x66, _x67, _x68) {
|
|
9947
9917
|
return _updateMessage.apply(this, arguments);
|
|
9948
9918
|
}
|
|
9949
9919
|
|
|
@@ -9966,14 +9936,14 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9966
9936
|
}, {
|
|
9967
9937
|
key: "partialUpdateMessage",
|
|
9968
9938
|
value: function () {
|
|
9969
|
-
var _partialUpdateMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
9939
|
+
var _partialUpdateMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee53(id, partialMessageObject, userId, options) {
|
|
9970
9940
|
var user;
|
|
9971
|
-
return _regeneratorRuntime.wrap(function
|
|
9941
|
+
return _regeneratorRuntime.wrap(function _callee53$(_context53) {
|
|
9972
9942
|
while (1) {
|
|
9973
|
-
switch (
|
|
9943
|
+
switch (_context53.prev = _context53.next) {
|
|
9974
9944
|
case 0:
|
|
9975
9945
|
if (id) {
|
|
9976
|
-
|
|
9946
|
+
_context53.next = 2;
|
|
9977
9947
|
break;
|
|
9978
9948
|
}
|
|
9979
9949
|
|
|
@@ -9988,23 +9958,23 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9988
9958
|
};
|
|
9989
9959
|
}
|
|
9990
9960
|
|
|
9991
|
-
|
|
9961
|
+
_context53.next = 6;
|
|
9992
9962
|
return this.put(this.baseURL + "/messages/".concat(id), _objectSpread(_objectSpread(_objectSpread({}, partialMessageObject), options), {}, {
|
|
9993
9963
|
user: user
|
|
9994
9964
|
}));
|
|
9995
9965
|
|
|
9996
9966
|
case 6:
|
|
9997
|
-
return
|
|
9967
|
+
return _context53.abrupt("return", _context53.sent);
|
|
9998
9968
|
|
|
9999
9969
|
case 7:
|
|
10000
9970
|
case "end":
|
|
10001
|
-
return
|
|
9971
|
+
return _context53.stop();
|
|
10002
9972
|
}
|
|
10003
9973
|
}
|
|
10004
|
-
},
|
|
9974
|
+
}, _callee53, this);
|
|
10005
9975
|
}));
|
|
10006
9976
|
|
|
10007
|
-
function partialUpdateMessage(_x70, _x71, _x72
|
|
9977
|
+
function partialUpdateMessage(_x69, _x70, _x71, _x72) {
|
|
10008
9978
|
return _partialUpdateMessage.apply(this, arguments);
|
|
10009
9979
|
}
|
|
10010
9980
|
|
|
@@ -10013,11 +9983,11 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10013
9983
|
}, {
|
|
10014
9984
|
key: "deleteMessage",
|
|
10015
9985
|
value: function () {
|
|
10016
|
-
var _deleteMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
9986
|
+
var _deleteMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee54(messageID, hardDelete) {
|
|
10017
9987
|
var params;
|
|
10018
|
-
return _regeneratorRuntime.wrap(function
|
|
9988
|
+
return _regeneratorRuntime.wrap(function _callee54$(_context54) {
|
|
10019
9989
|
while (1) {
|
|
10020
|
-
switch (
|
|
9990
|
+
switch (_context54.prev = _context54.next) {
|
|
10021
9991
|
case 0:
|
|
10022
9992
|
params = {};
|
|
10023
9993
|
|
|
@@ -10027,21 +9997,21 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10027
9997
|
};
|
|
10028
9998
|
}
|
|
10029
9999
|
|
|
10030
|
-
|
|
10000
|
+
_context54.next = 4;
|
|
10031
10001
|
return this.delete(this.baseURL + "/messages/".concat(messageID), params);
|
|
10032
10002
|
|
|
10033
10003
|
case 4:
|
|
10034
|
-
return
|
|
10004
|
+
return _context54.abrupt("return", _context54.sent);
|
|
10035
10005
|
|
|
10036
10006
|
case 5:
|
|
10037
10007
|
case "end":
|
|
10038
|
-
return
|
|
10008
|
+
return _context54.stop();
|
|
10039
10009
|
}
|
|
10040
10010
|
}
|
|
10041
|
-
},
|
|
10011
|
+
}, _callee54, this);
|
|
10042
10012
|
}));
|
|
10043
10013
|
|
|
10044
|
-
function deleteMessage(
|
|
10014
|
+
function deleteMessage(_x73, _x74) {
|
|
10045
10015
|
return _deleteMessage.apply(this, arguments);
|
|
10046
10016
|
}
|
|
10047
10017
|
|
|
@@ -10050,26 +10020,26 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10050
10020
|
}, {
|
|
10051
10021
|
key: "getMessage",
|
|
10052
10022
|
value: function () {
|
|
10053
|
-
var _getMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10054
|
-
return _regeneratorRuntime.wrap(function
|
|
10023
|
+
var _getMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee55(messageID) {
|
|
10024
|
+
return _regeneratorRuntime.wrap(function _callee55$(_context55) {
|
|
10055
10025
|
while (1) {
|
|
10056
|
-
switch (
|
|
10026
|
+
switch (_context55.prev = _context55.next) {
|
|
10057
10027
|
case 0:
|
|
10058
|
-
|
|
10028
|
+
_context55.next = 2;
|
|
10059
10029
|
return this.get(this.baseURL + "/messages/".concat(messageID));
|
|
10060
10030
|
|
|
10061
10031
|
case 2:
|
|
10062
|
-
return
|
|
10032
|
+
return _context55.abrupt("return", _context55.sent);
|
|
10063
10033
|
|
|
10064
10034
|
case 3:
|
|
10065
10035
|
case "end":
|
|
10066
|
-
return
|
|
10036
|
+
return _context55.stop();
|
|
10067
10037
|
}
|
|
10068
10038
|
}
|
|
10069
|
-
},
|
|
10039
|
+
}, _callee55, this);
|
|
10070
10040
|
}));
|
|
10071
10041
|
|
|
10072
|
-
function getMessage(
|
|
10042
|
+
function getMessage(_x75) {
|
|
10073
10043
|
return _getMessage.apply(this, arguments);
|
|
10074
10044
|
}
|
|
10075
10045
|
|
|
@@ -10078,7 +10048,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10078
10048
|
}, {
|
|
10079
10049
|
key: "getUserAgent",
|
|
10080
10050
|
value: function getUserAgent() {
|
|
10081
|
-
return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.10.
|
|
10051
|
+
return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.10.1");
|
|
10082
10052
|
}
|
|
10083
10053
|
}, {
|
|
10084
10054
|
key: "setUserAgent",
|
|
@@ -10297,28 +10267,28 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10297
10267
|
}, {
|
|
10298
10268
|
key: "sendUserCustomEvent",
|
|
10299
10269
|
value: function () {
|
|
10300
|
-
var _sendUserCustomEvent = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10301
|
-
return _regeneratorRuntime.wrap(function
|
|
10270
|
+
var _sendUserCustomEvent = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee56(targetUserID, event) {
|
|
10271
|
+
return _regeneratorRuntime.wrap(function _callee56$(_context56) {
|
|
10302
10272
|
while (1) {
|
|
10303
|
-
switch (
|
|
10273
|
+
switch (_context56.prev = _context56.next) {
|
|
10304
10274
|
case 0:
|
|
10305
|
-
|
|
10275
|
+
_context56.next = 2;
|
|
10306
10276
|
return this.post("".concat(this.baseURL, "/users/").concat(targetUserID, "/event"), {
|
|
10307
10277
|
event: event
|
|
10308
10278
|
});
|
|
10309
10279
|
|
|
10310
10280
|
case 2:
|
|
10311
|
-
return
|
|
10281
|
+
return _context56.abrupt("return", _context56.sent);
|
|
10312
10282
|
|
|
10313
10283
|
case 3:
|
|
10314
10284
|
case "end":
|
|
10315
|
-
return
|
|
10285
|
+
return _context56.stop();
|
|
10316
10286
|
}
|
|
10317
10287
|
}
|
|
10318
|
-
},
|
|
10288
|
+
}, _callee56, this);
|
|
10319
10289
|
}));
|
|
10320
10290
|
|
|
10321
|
-
function sendUserCustomEvent(
|
|
10291
|
+
function sendUserCustomEvent(_x76, _x77) {
|
|
10322
10292
|
return _sendUserCustomEvent.apply(this, arguments);
|
|
10323
10293
|
}
|
|
10324
10294
|
|
|
@@ -10386,32 +10356,32 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10386
10356
|
}, {
|
|
10387
10357
|
key: "createSegment",
|
|
10388
10358
|
value: function () {
|
|
10389
|
-
var _createSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10359
|
+
var _createSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee57(params) {
|
|
10390
10360
|
var _yield$this$post, segment;
|
|
10391
10361
|
|
|
10392
|
-
return _regeneratorRuntime.wrap(function
|
|
10362
|
+
return _regeneratorRuntime.wrap(function _callee57$(_context57) {
|
|
10393
10363
|
while (1) {
|
|
10394
|
-
switch (
|
|
10364
|
+
switch (_context57.prev = _context57.next) {
|
|
10395
10365
|
case 0:
|
|
10396
|
-
|
|
10366
|
+
_context57.next = 2;
|
|
10397
10367
|
return this.post(this.baseURL + "/segments", {
|
|
10398
10368
|
segment: params
|
|
10399
10369
|
});
|
|
10400
10370
|
|
|
10401
10371
|
case 2:
|
|
10402
|
-
_yield$this$post =
|
|
10372
|
+
_yield$this$post = _context57.sent;
|
|
10403
10373
|
segment = _yield$this$post.segment;
|
|
10404
|
-
return
|
|
10374
|
+
return _context57.abrupt("return", segment);
|
|
10405
10375
|
|
|
10406
10376
|
case 5:
|
|
10407
10377
|
case "end":
|
|
10408
|
-
return
|
|
10378
|
+
return _context57.stop();
|
|
10409
10379
|
}
|
|
10410
10380
|
}
|
|
10411
|
-
},
|
|
10381
|
+
}, _callee57, this);
|
|
10412
10382
|
}));
|
|
10413
10383
|
|
|
10414
|
-
function createSegment(
|
|
10384
|
+
function createSegment(_x78) {
|
|
10415
10385
|
return _createSegment.apply(this, arguments);
|
|
10416
10386
|
}
|
|
10417
10387
|
|
|
@@ -10427,15 +10397,15 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10427
10397
|
}, {
|
|
10428
10398
|
key: "querySegments",
|
|
10429
10399
|
value: function () {
|
|
10430
|
-
var _querySegments = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10400
|
+
var _querySegments = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee58(filters) {
|
|
10431
10401
|
var options,
|
|
10432
|
-
|
|
10433
|
-
return _regeneratorRuntime.wrap(function
|
|
10402
|
+
_args58 = arguments;
|
|
10403
|
+
return _regeneratorRuntime.wrap(function _callee58$(_context58) {
|
|
10434
10404
|
while (1) {
|
|
10435
|
-
switch (
|
|
10405
|
+
switch (_context58.prev = _context58.next) {
|
|
10436
10406
|
case 0:
|
|
10437
|
-
options =
|
|
10438
|
-
|
|
10407
|
+
options = _args58.length > 1 && _args58[1] !== undefined ? _args58[1] : {};
|
|
10408
|
+
_context58.next = 3;
|
|
10439
10409
|
return this.get(this.baseURL + "/segments", {
|
|
10440
10410
|
payload: _objectSpread({
|
|
10441
10411
|
filter_conditions: filters
|
|
@@ -10443,17 +10413,17 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10443
10413
|
});
|
|
10444
10414
|
|
|
10445
10415
|
case 3:
|
|
10446
|
-
return
|
|
10416
|
+
return _context58.abrupt("return", _context58.sent);
|
|
10447
10417
|
|
|
10448
10418
|
case 4:
|
|
10449
10419
|
case "end":
|
|
10450
|
-
return
|
|
10420
|
+
return _context58.stop();
|
|
10451
10421
|
}
|
|
10452
10422
|
}
|
|
10453
|
-
},
|
|
10423
|
+
}, _callee58, this);
|
|
10454
10424
|
}));
|
|
10455
10425
|
|
|
10456
|
-
function querySegments(
|
|
10426
|
+
function querySegments(_x79) {
|
|
10457
10427
|
return _querySegments.apply(this, arguments);
|
|
10458
10428
|
}
|
|
10459
10429
|
|
|
@@ -10471,32 +10441,32 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10471
10441
|
}, {
|
|
10472
10442
|
key: "updateSegment",
|
|
10473
10443
|
value: function () {
|
|
10474
|
-
var _updateSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10444
|
+
var _updateSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee59(id, params) {
|
|
10475
10445
|
var _yield$this$put, segment;
|
|
10476
10446
|
|
|
10477
|
-
return _regeneratorRuntime.wrap(function
|
|
10447
|
+
return _regeneratorRuntime.wrap(function _callee59$(_context59) {
|
|
10478
10448
|
while (1) {
|
|
10479
|
-
switch (
|
|
10449
|
+
switch (_context59.prev = _context59.next) {
|
|
10480
10450
|
case 0:
|
|
10481
|
-
|
|
10451
|
+
_context59.next = 2;
|
|
10482
10452
|
return this.put(this.baseURL + "/segments/".concat(id), {
|
|
10483
10453
|
segment: params
|
|
10484
10454
|
});
|
|
10485
10455
|
|
|
10486
10456
|
case 2:
|
|
10487
|
-
_yield$this$put =
|
|
10457
|
+
_yield$this$put = _context59.sent;
|
|
10488
10458
|
segment = _yield$this$put.segment;
|
|
10489
|
-
return
|
|
10459
|
+
return _context59.abrupt("return", segment);
|
|
10490
10460
|
|
|
10491
10461
|
case 5:
|
|
10492
10462
|
case "end":
|
|
10493
|
-
return
|
|
10463
|
+
return _context59.stop();
|
|
10494
10464
|
}
|
|
10495
10465
|
}
|
|
10496
|
-
},
|
|
10466
|
+
}, _callee59, this);
|
|
10497
10467
|
}));
|
|
10498
10468
|
|
|
10499
|
-
function updateSegment(
|
|
10469
|
+
function updateSegment(_x80, _x81) {
|
|
10500
10470
|
return _updateSegment.apply(this, arguments);
|
|
10501
10471
|
}
|
|
10502
10472
|
|
|
@@ -10513,22 +10483,22 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10513
10483
|
}, {
|
|
10514
10484
|
key: "deleteSegment",
|
|
10515
10485
|
value: function () {
|
|
10516
|
-
var _deleteSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10517
|
-
return _regeneratorRuntime.wrap(function
|
|
10486
|
+
var _deleteSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee60(id) {
|
|
10487
|
+
return _regeneratorRuntime.wrap(function _callee60$(_context60) {
|
|
10518
10488
|
while (1) {
|
|
10519
|
-
switch (
|
|
10489
|
+
switch (_context60.prev = _context60.next) {
|
|
10520
10490
|
case 0:
|
|
10521
|
-
return
|
|
10491
|
+
return _context60.abrupt("return", this.delete(this.baseURL + "/segments/".concat(id)));
|
|
10522
10492
|
|
|
10523
10493
|
case 1:
|
|
10524
10494
|
case "end":
|
|
10525
|
-
return
|
|
10495
|
+
return _context60.stop();
|
|
10526
10496
|
}
|
|
10527
10497
|
}
|
|
10528
|
-
},
|
|
10498
|
+
}, _callee60, this);
|
|
10529
10499
|
}));
|
|
10530
10500
|
|
|
10531
|
-
function deleteSegment(
|
|
10501
|
+
function deleteSegment(_x82) {
|
|
10532
10502
|
return _deleteSegment.apply(this, arguments);
|
|
10533
10503
|
}
|
|
10534
10504
|
|
|
@@ -10545,32 +10515,32 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10545
10515
|
}, {
|
|
10546
10516
|
key: "createCampaign",
|
|
10547
10517
|
value: function () {
|
|
10548
|
-
var _createCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10518
|
+
var _createCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee61(params) {
|
|
10549
10519
|
var _yield$this$post2, campaign;
|
|
10550
10520
|
|
|
10551
|
-
return _regeneratorRuntime.wrap(function
|
|
10521
|
+
return _regeneratorRuntime.wrap(function _callee61$(_context61) {
|
|
10552
10522
|
while (1) {
|
|
10553
|
-
switch (
|
|
10523
|
+
switch (_context61.prev = _context61.next) {
|
|
10554
10524
|
case 0:
|
|
10555
|
-
|
|
10525
|
+
_context61.next = 2;
|
|
10556
10526
|
return this.post(this.baseURL + "/campaigns", {
|
|
10557
10527
|
campaign: params
|
|
10558
10528
|
});
|
|
10559
10529
|
|
|
10560
10530
|
case 2:
|
|
10561
|
-
_yield$this$post2 =
|
|
10531
|
+
_yield$this$post2 = _context61.sent;
|
|
10562
10532
|
campaign = _yield$this$post2.campaign;
|
|
10563
|
-
return
|
|
10533
|
+
return _context61.abrupt("return", campaign);
|
|
10564
10534
|
|
|
10565
10535
|
case 5:
|
|
10566
10536
|
case "end":
|
|
10567
|
-
return
|
|
10537
|
+
return _context61.stop();
|
|
10568
10538
|
}
|
|
10569
10539
|
}
|
|
10570
|
-
},
|
|
10540
|
+
}, _callee61, this);
|
|
10571
10541
|
}));
|
|
10572
10542
|
|
|
10573
|
-
function createCampaign(
|
|
10543
|
+
function createCampaign(_x83) {
|
|
10574
10544
|
return _createCampaign.apply(this, arguments);
|
|
10575
10545
|
}
|
|
10576
10546
|
|
|
@@ -10586,15 +10556,15 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10586
10556
|
}, {
|
|
10587
10557
|
key: "queryCampaigns",
|
|
10588
10558
|
value: function () {
|
|
10589
|
-
var _queryCampaigns = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10559
|
+
var _queryCampaigns = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee62(filters) {
|
|
10590
10560
|
var options,
|
|
10591
|
-
|
|
10592
|
-
return _regeneratorRuntime.wrap(function
|
|
10561
|
+
_args62 = arguments;
|
|
10562
|
+
return _regeneratorRuntime.wrap(function _callee62$(_context62) {
|
|
10593
10563
|
while (1) {
|
|
10594
|
-
switch (
|
|
10564
|
+
switch (_context62.prev = _context62.next) {
|
|
10595
10565
|
case 0:
|
|
10596
|
-
options =
|
|
10597
|
-
|
|
10566
|
+
options = _args62.length > 1 && _args62[1] !== undefined ? _args62[1] : {};
|
|
10567
|
+
_context62.next = 3;
|
|
10598
10568
|
return this.get(this.baseURL + "/campaigns", {
|
|
10599
10569
|
payload: _objectSpread({
|
|
10600
10570
|
filter_conditions: filters
|
|
@@ -10602,17 +10572,17 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10602
10572
|
});
|
|
10603
10573
|
|
|
10604
10574
|
case 3:
|
|
10605
|
-
return
|
|
10575
|
+
return _context62.abrupt("return", _context62.sent);
|
|
10606
10576
|
|
|
10607
10577
|
case 4:
|
|
10608
10578
|
case "end":
|
|
10609
|
-
return
|
|
10579
|
+
return _context62.stop();
|
|
10610
10580
|
}
|
|
10611
10581
|
}
|
|
10612
|
-
},
|
|
10582
|
+
}, _callee62, this);
|
|
10613
10583
|
}));
|
|
10614
10584
|
|
|
10615
|
-
function queryCampaigns(
|
|
10585
|
+
function queryCampaigns(_x84) {
|
|
10616
10586
|
return _queryCampaigns.apply(this, arguments);
|
|
10617
10587
|
}
|
|
10618
10588
|
|
|
@@ -10630,32 +10600,32 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10630
10600
|
}, {
|
|
10631
10601
|
key: "updateCampaign",
|
|
10632
10602
|
value: function () {
|
|
10633
|
-
var _updateCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10603
|
+
var _updateCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee63(id, params) {
|
|
10634
10604
|
var _yield$this$put2, campaign;
|
|
10635
10605
|
|
|
10636
|
-
return _regeneratorRuntime.wrap(function
|
|
10606
|
+
return _regeneratorRuntime.wrap(function _callee63$(_context63) {
|
|
10637
10607
|
while (1) {
|
|
10638
|
-
switch (
|
|
10608
|
+
switch (_context63.prev = _context63.next) {
|
|
10639
10609
|
case 0:
|
|
10640
|
-
|
|
10610
|
+
_context63.next = 2;
|
|
10641
10611
|
return this.put(this.baseURL + "/campaigns/".concat(id), {
|
|
10642
10612
|
campaign: params
|
|
10643
10613
|
});
|
|
10644
10614
|
|
|
10645
10615
|
case 2:
|
|
10646
|
-
_yield$this$put2 =
|
|
10616
|
+
_yield$this$put2 = _context63.sent;
|
|
10647
10617
|
campaign = _yield$this$put2.campaign;
|
|
10648
|
-
return
|
|
10618
|
+
return _context63.abrupt("return", campaign);
|
|
10649
10619
|
|
|
10650
10620
|
case 5:
|
|
10651
10621
|
case "end":
|
|
10652
|
-
return
|
|
10622
|
+
return _context63.stop();
|
|
10653
10623
|
}
|
|
10654
10624
|
}
|
|
10655
|
-
},
|
|
10625
|
+
}, _callee63, this);
|
|
10656
10626
|
}));
|
|
10657
10627
|
|
|
10658
|
-
function updateCampaign(
|
|
10628
|
+
function updateCampaign(_x85, _x86) {
|
|
10659
10629
|
return _updateCampaign.apply(this, arguments);
|
|
10660
10630
|
}
|
|
10661
10631
|
|
|
@@ -10672,25 +10642,25 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10672
10642
|
}, {
|
|
10673
10643
|
key: "deleteCampaign",
|
|
10674
10644
|
value: function () {
|
|
10675
|
-
var _deleteCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10645
|
+
var _deleteCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee64(id) {
|
|
10676
10646
|
var params,
|
|
10677
|
-
|
|
10678
|
-
return _regeneratorRuntime.wrap(function
|
|
10647
|
+
_args64 = arguments;
|
|
10648
|
+
return _regeneratorRuntime.wrap(function _callee64$(_context64) {
|
|
10679
10649
|
while (1) {
|
|
10680
|
-
switch (
|
|
10650
|
+
switch (_context64.prev = _context64.next) {
|
|
10681
10651
|
case 0:
|
|
10682
|
-
params =
|
|
10683
|
-
return
|
|
10652
|
+
params = _args64.length > 1 && _args64[1] !== undefined ? _args64[1] : {};
|
|
10653
|
+
return _context64.abrupt("return", this.delete(this.baseURL + "/campaigns/".concat(id), params));
|
|
10684
10654
|
|
|
10685
10655
|
case 2:
|
|
10686
10656
|
case "end":
|
|
10687
|
-
return
|
|
10657
|
+
return _context64.stop();
|
|
10688
10658
|
}
|
|
10689
10659
|
}
|
|
10690
|
-
},
|
|
10660
|
+
}, _callee64, this);
|
|
10691
10661
|
}));
|
|
10692
10662
|
|
|
10693
|
-
function deleteCampaign(
|
|
10663
|
+
function deleteCampaign(_x87) {
|
|
10694
10664
|
return _deleteCampaign.apply(this, arguments);
|
|
10695
10665
|
}
|
|
10696
10666
|
|
|
@@ -10708,33 +10678,33 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10708
10678
|
}, {
|
|
10709
10679
|
key: "scheduleCampaign",
|
|
10710
10680
|
value: function () {
|
|
10711
|
-
var _scheduleCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10681
|
+
var _scheduleCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee65(id, params) {
|
|
10712
10682
|
var scheduledFor, _yield$this$patch, campaign;
|
|
10713
10683
|
|
|
10714
|
-
return _regeneratorRuntime.wrap(function
|
|
10684
|
+
return _regeneratorRuntime.wrap(function _callee65$(_context65) {
|
|
10715
10685
|
while (1) {
|
|
10716
|
-
switch (
|
|
10686
|
+
switch (_context65.prev = _context65.next) {
|
|
10717
10687
|
case 0:
|
|
10718
10688
|
scheduledFor = params.scheduledFor;
|
|
10719
|
-
|
|
10689
|
+
_context65.next = 3;
|
|
10720
10690
|
return this.patch(this.baseURL + "/campaigns/".concat(id, "/schedule"), {
|
|
10721
10691
|
scheduled_for: scheduledFor
|
|
10722
10692
|
});
|
|
10723
10693
|
|
|
10724
10694
|
case 3:
|
|
10725
|
-
_yield$this$patch =
|
|
10695
|
+
_yield$this$patch = _context65.sent;
|
|
10726
10696
|
campaign = _yield$this$patch.campaign;
|
|
10727
|
-
return
|
|
10697
|
+
return _context65.abrupt("return", campaign);
|
|
10728
10698
|
|
|
10729
10699
|
case 6:
|
|
10730
10700
|
case "end":
|
|
10731
|
-
return
|
|
10701
|
+
return _context65.stop();
|
|
10732
10702
|
}
|
|
10733
10703
|
}
|
|
10734
|
-
},
|
|
10704
|
+
}, _callee65, this);
|
|
10735
10705
|
}));
|
|
10736
10706
|
|
|
10737
|
-
function scheduleCampaign(
|
|
10707
|
+
function scheduleCampaign(_x88, _x89) {
|
|
10738
10708
|
return _scheduleCampaign.apply(this, arguments);
|
|
10739
10709
|
}
|
|
10740
10710
|
|
|
@@ -10751,30 +10721,30 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10751
10721
|
}, {
|
|
10752
10722
|
key: "stopCampaign",
|
|
10753
10723
|
value: function () {
|
|
10754
|
-
var _stopCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10724
|
+
var _stopCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee66(id) {
|
|
10755
10725
|
var _yield$this$patch2, campaign;
|
|
10756
10726
|
|
|
10757
|
-
return _regeneratorRuntime.wrap(function
|
|
10727
|
+
return _regeneratorRuntime.wrap(function _callee66$(_context66) {
|
|
10758
10728
|
while (1) {
|
|
10759
|
-
switch (
|
|
10729
|
+
switch (_context66.prev = _context66.next) {
|
|
10760
10730
|
case 0:
|
|
10761
|
-
|
|
10731
|
+
_context66.next = 2;
|
|
10762
10732
|
return this.patch(this.baseURL + "/campaigns/".concat(id, "/stop"));
|
|
10763
10733
|
|
|
10764
10734
|
case 2:
|
|
10765
|
-
_yield$this$patch2 =
|
|
10735
|
+
_yield$this$patch2 = _context66.sent;
|
|
10766
10736
|
campaign = _yield$this$patch2.campaign;
|
|
10767
|
-
return
|
|
10737
|
+
return _context66.abrupt("return", campaign);
|
|
10768
10738
|
|
|
10769
10739
|
case 5:
|
|
10770
10740
|
case "end":
|
|
10771
|
-
return
|
|
10741
|
+
return _context66.stop();
|
|
10772
10742
|
}
|
|
10773
10743
|
}
|
|
10774
|
-
},
|
|
10744
|
+
}, _callee66, this);
|
|
10775
10745
|
}));
|
|
10776
10746
|
|
|
10777
|
-
function stopCampaign(
|
|
10747
|
+
function stopCampaign(_x90) {
|
|
10778
10748
|
return _stopCampaign.apply(this, arguments);
|
|
10779
10749
|
}
|
|
10780
10750
|
|
|
@@ -10791,30 +10761,30 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10791
10761
|
}, {
|
|
10792
10762
|
key: "resumeCampaign",
|
|
10793
10763
|
value: function () {
|
|
10794
|
-
var _resumeCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10764
|
+
var _resumeCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee67(id) {
|
|
10795
10765
|
var _yield$this$patch3, campaign;
|
|
10796
10766
|
|
|
10797
|
-
return _regeneratorRuntime.wrap(function
|
|
10767
|
+
return _regeneratorRuntime.wrap(function _callee67$(_context67) {
|
|
10798
10768
|
while (1) {
|
|
10799
|
-
switch (
|
|
10769
|
+
switch (_context67.prev = _context67.next) {
|
|
10800
10770
|
case 0:
|
|
10801
|
-
|
|
10771
|
+
_context67.next = 2;
|
|
10802
10772
|
return this.patch(this.baseURL + "/campaigns/".concat(id, "/resume"));
|
|
10803
10773
|
|
|
10804
10774
|
case 2:
|
|
10805
|
-
_yield$this$patch3 =
|
|
10775
|
+
_yield$this$patch3 = _context67.sent;
|
|
10806
10776
|
campaign = _yield$this$patch3.campaign;
|
|
10807
|
-
return
|
|
10777
|
+
return _context67.abrupt("return", campaign);
|
|
10808
10778
|
|
|
10809
10779
|
case 5:
|
|
10810
10780
|
case "end":
|
|
10811
|
-
return
|
|
10781
|
+
return _context67.stop();
|
|
10812
10782
|
}
|
|
10813
10783
|
}
|
|
10814
|
-
},
|
|
10784
|
+
}, _callee67, this);
|
|
10815
10785
|
}));
|
|
10816
10786
|
|
|
10817
|
-
function resumeCampaign(
|
|
10787
|
+
function resumeCampaign(_x91) {
|
|
10818
10788
|
return _resumeCampaign.apply(this, arguments);
|
|
10819
10789
|
}
|
|
10820
10790
|
|
|
@@ -10832,30 +10802,30 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10832
10802
|
}, {
|
|
10833
10803
|
key: "testCampaign",
|
|
10834
10804
|
value: function () {
|
|
10835
|
-
var _testCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10805
|
+
var _testCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee68(id, params) {
|
|
10836
10806
|
var users;
|
|
10837
|
-
return _regeneratorRuntime.wrap(function
|
|
10807
|
+
return _regeneratorRuntime.wrap(function _callee68$(_context68) {
|
|
10838
10808
|
while (1) {
|
|
10839
|
-
switch (
|
|
10809
|
+
switch (_context68.prev = _context68.next) {
|
|
10840
10810
|
case 0:
|
|
10841
10811
|
users = params.users;
|
|
10842
|
-
|
|
10812
|
+
_context68.next = 3;
|
|
10843
10813
|
return this.post(this.baseURL + "/campaigns/".concat(id, "/test"), {
|
|
10844
10814
|
users: users
|
|
10845
10815
|
});
|
|
10846
10816
|
|
|
10847
10817
|
case 3:
|
|
10848
|
-
return
|
|
10818
|
+
return _context68.abrupt("return", _context68.sent);
|
|
10849
10819
|
|
|
10850
10820
|
case 4:
|
|
10851
10821
|
case "end":
|
|
10852
|
-
return
|
|
10822
|
+
return _context68.stop();
|
|
10853
10823
|
}
|
|
10854
10824
|
}
|
|
10855
|
-
},
|
|
10825
|
+
}, _callee68, this);
|
|
10856
10826
|
}));
|
|
10857
10827
|
|
|
10858
|
-
function testCampaign(
|
|
10828
|
+
function testCampaign(_x92, _x93) {
|
|
10859
10829
|
return _testCampaign.apply(this, arguments);
|
|
10860
10830
|
}
|
|
10861
10831
|
|
|
@@ -10871,15 +10841,15 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10871
10841
|
}, {
|
|
10872
10842
|
key: "queryRecipients",
|
|
10873
10843
|
value: function () {
|
|
10874
|
-
var _queryRecipients = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10844
|
+
var _queryRecipients = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee69(filters) {
|
|
10875
10845
|
var options,
|
|
10876
|
-
|
|
10877
|
-
return _regeneratorRuntime.wrap(function
|
|
10846
|
+
_args69 = arguments;
|
|
10847
|
+
return _regeneratorRuntime.wrap(function _callee69$(_context69) {
|
|
10878
10848
|
while (1) {
|
|
10879
|
-
switch (
|
|
10849
|
+
switch (_context69.prev = _context69.next) {
|
|
10880
10850
|
case 0:
|
|
10881
|
-
options =
|
|
10882
|
-
|
|
10851
|
+
options = _args69.length > 1 && _args69[1] !== undefined ? _args69[1] : {};
|
|
10852
|
+
_context69.next = 3;
|
|
10883
10853
|
return this.get(this.baseURL + "/recipients", {
|
|
10884
10854
|
payload: _objectSpread({
|
|
10885
10855
|
filter_conditions: filters
|
|
@@ -10887,17 +10857,17 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10887
10857
|
});
|
|
10888
10858
|
|
|
10889
10859
|
case 3:
|
|
10890
|
-
return
|
|
10860
|
+
return _context69.abrupt("return", _context69.sent);
|
|
10891
10861
|
|
|
10892
10862
|
case 4:
|
|
10893
10863
|
case "end":
|
|
10894
|
-
return
|
|
10864
|
+
return _context69.stop();
|
|
10895
10865
|
}
|
|
10896
10866
|
}
|
|
10897
|
-
},
|
|
10867
|
+
}, _callee69, this);
|
|
10898
10868
|
}));
|
|
10899
10869
|
|
|
10900
|
-
function queryRecipients(
|
|
10870
|
+
function queryRecipients(_x94) {
|
|
10901
10871
|
return _queryRecipients.apply(this, arguments);
|
|
10902
10872
|
}
|
|
10903
10873
|
|
|
@@ -10913,24 +10883,24 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10913
10883
|
}, {
|
|
10914
10884
|
key: "enrichURL",
|
|
10915
10885
|
value: function () {
|
|
10916
|
-
var _enrichURL = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10917
|
-
return _regeneratorRuntime.wrap(function
|
|
10886
|
+
var _enrichURL = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee70(url) {
|
|
10887
|
+
return _regeneratorRuntime.wrap(function _callee70$(_context70) {
|
|
10918
10888
|
while (1) {
|
|
10919
|
-
switch (
|
|
10889
|
+
switch (_context70.prev = _context70.next) {
|
|
10920
10890
|
case 0:
|
|
10921
|
-
return
|
|
10891
|
+
return _context70.abrupt("return", this.get(this.baseURL + "/og", {
|
|
10922
10892
|
url: url
|
|
10923
10893
|
}));
|
|
10924
10894
|
|
|
10925
10895
|
case 1:
|
|
10926
10896
|
case "end":
|
|
10927
|
-
return
|
|
10897
|
+
return _context70.stop();
|
|
10928
10898
|
}
|
|
10929
10899
|
}
|
|
10930
|
-
},
|
|
10900
|
+
}, _callee70, this);
|
|
10931
10901
|
}));
|
|
10932
10902
|
|
|
10933
|
-
function enrichURL(
|
|
10903
|
+
function enrichURL(_x95) {
|
|
10934
10904
|
return _enrichURL.apply(this, arguments);
|
|
10935
10905
|
}
|
|
10936
10906
|
|
|
@@ -10947,22 +10917,22 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10947
10917
|
}, {
|
|
10948
10918
|
key: "getTask",
|
|
10949
10919
|
value: function () {
|
|
10950
|
-
var _getTask = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10951
|
-
return _regeneratorRuntime.wrap(function
|
|
10920
|
+
var _getTask = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee71(id) {
|
|
10921
|
+
return _regeneratorRuntime.wrap(function _callee71$(_context71) {
|
|
10952
10922
|
while (1) {
|
|
10953
|
-
switch (
|
|
10923
|
+
switch (_context71.prev = _context71.next) {
|
|
10954
10924
|
case 0:
|
|
10955
|
-
return
|
|
10925
|
+
return _context71.abrupt("return", this.get("".concat(this.baseURL, "/tasks/").concat(id)));
|
|
10956
10926
|
|
|
10957
10927
|
case 1:
|
|
10958
10928
|
case "end":
|
|
10959
|
-
return
|
|
10929
|
+
return _context71.stop();
|
|
10960
10930
|
}
|
|
10961
10931
|
}
|
|
10962
|
-
},
|
|
10932
|
+
}, _callee71, this);
|
|
10963
10933
|
}));
|
|
10964
10934
|
|
|
10965
|
-
function getTask(
|
|
10935
|
+
function getTask(_x96) {
|
|
10966
10936
|
return _getTask.apply(this, arguments);
|
|
10967
10937
|
}
|
|
10968
10938
|
|
|
@@ -10980,31 +10950,31 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10980
10950
|
}, {
|
|
10981
10951
|
key: "deleteChannels",
|
|
10982
10952
|
value: function () {
|
|
10983
|
-
var _deleteChannels = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10953
|
+
var _deleteChannels = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee72(cids) {
|
|
10984
10954
|
var options,
|
|
10985
|
-
|
|
10986
|
-
return _regeneratorRuntime.wrap(function
|
|
10955
|
+
_args72 = arguments;
|
|
10956
|
+
return _regeneratorRuntime.wrap(function _callee72$(_context72) {
|
|
10987
10957
|
while (1) {
|
|
10988
|
-
switch (
|
|
10958
|
+
switch (_context72.prev = _context72.next) {
|
|
10989
10959
|
case 0:
|
|
10990
|
-
options =
|
|
10991
|
-
|
|
10960
|
+
options = _args72.length > 1 && _args72[1] !== undefined ? _args72[1] : {};
|
|
10961
|
+
_context72.next = 3;
|
|
10992
10962
|
return this.post(this.baseURL + "/channels/delete", _objectSpread({
|
|
10993
10963
|
cids: cids
|
|
10994
10964
|
}, options));
|
|
10995
10965
|
|
|
10996
10966
|
case 3:
|
|
10997
|
-
return
|
|
10967
|
+
return _context72.abrupt("return", _context72.sent);
|
|
10998
10968
|
|
|
10999
10969
|
case 4:
|
|
11000
10970
|
case "end":
|
|
11001
|
-
return
|
|
10971
|
+
return _context72.stop();
|
|
11002
10972
|
}
|
|
11003
10973
|
}
|
|
11004
|
-
},
|
|
10974
|
+
}, _callee72, this);
|
|
11005
10975
|
}));
|
|
11006
10976
|
|
|
11007
|
-
function deleteChannels(
|
|
10977
|
+
function deleteChannels(_x97) {
|
|
11008
10978
|
return _deleteChannels.apply(this, arguments);
|
|
11009
10979
|
}
|
|
11010
10980
|
|
|
@@ -11022,13 +10992,13 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
11022
10992
|
}, {
|
|
11023
10993
|
key: "deleteUsers",
|
|
11024
10994
|
value: function () {
|
|
11025
|
-
var _deleteUsers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
11026
|
-
return _regeneratorRuntime.wrap(function
|
|
10995
|
+
var _deleteUsers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee73(user_ids, options) {
|
|
10996
|
+
return _regeneratorRuntime.wrap(function _callee73$(_context73) {
|
|
11027
10997
|
while (1) {
|
|
11028
|
-
switch (
|
|
10998
|
+
switch (_context73.prev = _context73.next) {
|
|
11029
10999
|
case 0:
|
|
11030
11000
|
if (!((options === null || options === void 0 ? void 0 : options.user) !== 'soft' && (options === null || options === void 0 ? void 0 : options.user) !== 'hard')) {
|
|
11031
|
-
|
|
11001
|
+
_context73.next = 2;
|
|
11032
11002
|
break;
|
|
11033
11003
|
}
|
|
11034
11004
|
|
|
@@ -11036,7 +11006,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
11036
11006
|
|
|
11037
11007
|
case 2:
|
|
11038
11008
|
if (!(options.messages !== undefined && options.messages !== 'soft' && options.messages !== 'hard')) {
|
|
11039
|
-
|
|
11009
|
+
_context73.next = 4;
|
|
11040
11010
|
break;
|
|
11041
11011
|
}
|
|
11042
11012
|
|
|
@@ -11044,30 +11014,30 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
11044
11014
|
|
|
11045
11015
|
case 4:
|
|
11046
11016
|
if (!(options.conversations !== undefined && options.conversations !== 'soft' && options.conversations !== 'hard')) {
|
|
11047
|
-
|
|
11017
|
+
_context73.next = 6;
|
|
11048
11018
|
break;
|
|
11049
11019
|
}
|
|
11050
11020
|
|
|
11051
11021
|
throw new Error('Invalid delete user options. conversations must be one of [soft hard]');
|
|
11052
11022
|
|
|
11053
11023
|
case 6:
|
|
11054
|
-
|
|
11024
|
+
_context73.next = 8;
|
|
11055
11025
|
return this.post(this.baseURL + "/users/delete", _objectSpread({
|
|
11056
11026
|
user_ids: user_ids
|
|
11057
11027
|
}, options));
|
|
11058
11028
|
|
|
11059
11029
|
case 8:
|
|
11060
|
-
return
|
|
11030
|
+
return _context73.abrupt("return", _context73.sent);
|
|
11061
11031
|
|
|
11062
11032
|
case 9:
|
|
11063
11033
|
case "end":
|
|
11064
|
-
return
|
|
11034
|
+
return _context73.stop();
|
|
11065
11035
|
}
|
|
11066
11036
|
}
|
|
11067
|
-
},
|
|
11037
|
+
}, _callee73, this);
|
|
11068
11038
|
}));
|
|
11069
11039
|
|
|
11070
|
-
function deleteUsers(
|
|
11040
|
+
function deleteUsers(_x98, _x99) {
|
|
11071
11041
|
return _deleteUsers.apply(this, arguments);
|
|
11072
11042
|
}
|
|
11073
11043
|
|
|
@@ -11088,28 +11058,28 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
11088
11058
|
}, {
|
|
11089
11059
|
key: "_createImportURL",
|
|
11090
11060
|
value: function () {
|
|
11091
|
-
var _createImportURL2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
11092
|
-
return _regeneratorRuntime.wrap(function
|
|
11061
|
+
var _createImportURL2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee74(filename) {
|
|
11062
|
+
return _regeneratorRuntime.wrap(function _callee74$(_context74) {
|
|
11093
11063
|
while (1) {
|
|
11094
|
-
switch (
|
|
11064
|
+
switch (_context74.prev = _context74.next) {
|
|
11095
11065
|
case 0:
|
|
11096
|
-
|
|
11066
|
+
_context74.next = 2;
|
|
11097
11067
|
return this.post(this.baseURL + "/import_urls", {
|
|
11098
11068
|
filename: filename
|
|
11099
11069
|
});
|
|
11100
11070
|
|
|
11101
11071
|
case 2:
|
|
11102
|
-
return
|
|
11072
|
+
return _context74.abrupt("return", _context74.sent);
|
|
11103
11073
|
|
|
11104
11074
|
case 3:
|
|
11105
11075
|
case "end":
|
|
11106
|
-
return
|
|
11076
|
+
return _context74.stop();
|
|
11107
11077
|
}
|
|
11108
11078
|
}
|
|
11109
|
-
},
|
|
11079
|
+
}, _callee74, this);
|
|
11110
11080
|
}));
|
|
11111
11081
|
|
|
11112
|
-
function _createImportURL(
|
|
11082
|
+
function _createImportURL(_x100) {
|
|
11113
11083
|
return _createImportURL2.apply(this, arguments);
|
|
11114
11084
|
}
|
|
11115
11085
|
|
|
@@ -11131,33 +11101,33 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
11131
11101
|
}, {
|
|
11132
11102
|
key: "_createImport",
|
|
11133
11103
|
value: function () {
|
|
11134
|
-
var _createImport2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
11104
|
+
var _createImport2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee75(path) {
|
|
11135
11105
|
var options,
|
|
11136
|
-
|
|
11137
|
-
return _regeneratorRuntime.wrap(function
|
|
11106
|
+
_args75 = arguments;
|
|
11107
|
+
return _regeneratorRuntime.wrap(function _callee75$(_context75) {
|
|
11138
11108
|
while (1) {
|
|
11139
|
-
switch (
|
|
11109
|
+
switch (_context75.prev = _context75.next) {
|
|
11140
11110
|
case 0:
|
|
11141
|
-
options =
|
|
11111
|
+
options = _args75.length > 1 && _args75[1] !== undefined ? _args75[1] : {
|
|
11142
11112
|
mode: 'upsert'
|
|
11143
11113
|
};
|
|
11144
|
-
|
|
11114
|
+
_context75.next = 3;
|
|
11145
11115
|
return this.post(this.baseURL + "/imports", _objectSpread({
|
|
11146
11116
|
path: path
|
|
11147
11117
|
}, options));
|
|
11148
11118
|
|
|
11149
11119
|
case 3:
|
|
11150
|
-
return
|
|
11120
|
+
return _context75.abrupt("return", _context75.sent);
|
|
11151
11121
|
|
|
11152
11122
|
case 4:
|
|
11153
11123
|
case "end":
|
|
11154
|
-
return
|
|
11124
|
+
return _context75.stop();
|
|
11155
11125
|
}
|
|
11156
11126
|
}
|
|
11157
|
-
},
|
|
11127
|
+
}, _callee75, this);
|
|
11158
11128
|
}));
|
|
11159
11129
|
|
|
11160
|
-
function _createImport(
|
|
11130
|
+
function _createImport(_x101) {
|
|
11161
11131
|
return _createImport2.apply(this, arguments);
|
|
11162
11132
|
}
|
|
11163
11133
|
|
|
@@ -11179,26 +11149,26 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
11179
11149
|
}, {
|
|
11180
11150
|
key: "_getImport",
|
|
11181
11151
|
value: function () {
|
|
11182
|
-
var _getImport2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
11183
|
-
return _regeneratorRuntime.wrap(function
|
|
11152
|
+
var _getImport2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee76(id) {
|
|
11153
|
+
return _regeneratorRuntime.wrap(function _callee76$(_context76) {
|
|
11184
11154
|
while (1) {
|
|
11185
|
-
switch (
|
|
11155
|
+
switch (_context76.prev = _context76.next) {
|
|
11186
11156
|
case 0:
|
|
11187
|
-
|
|
11157
|
+
_context76.next = 2;
|
|
11188
11158
|
return this.get(this.baseURL + "/imports/".concat(id));
|
|
11189
11159
|
|
|
11190
11160
|
case 2:
|
|
11191
|
-
return
|
|
11161
|
+
return _context76.abrupt("return", _context76.sent);
|
|
11192
11162
|
|
|
11193
11163
|
case 3:
|
|
11194
11164
|
case "end":
|
|
11195
|
-
return
|
|
11165
|
+
return _context76.stop();
|
|
11196
11166
|
}
|
|
11197
11167
|
}
|
|
11198
|
-
},
|
|
11168
|
+
}, _callee76, this);
|
|
11199
11169
|
}));
|
|
11200
11170
|
|
|
11201
|
-
function _getImport(
|
|
11171
|
+
function _getImport(_x102) {
|
|
11202
11172
|
return _getImport2.apply(this, arguments);
|
|
11203
11173
|
}
|
|
11204
11174
|
|
|
@@ -11220,26 +11190,26 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
11220
11190
|
}, {
|
|
11221
11191
|
key: "_listImports",
|
|
11222
11192
|
value: function () {
|
|
11223
|
-
var _listImports2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
11224
|
-
return _regeneratorRuntime.wrap(function
|
|
11193
|
+
var _listImports2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee77(options) {
|
|
11194
|
+
return _regeneratorRuntime.wrap(function _callee77$(_context77) {
|
|
11225
11195
|
while (1) {
|
|
11226
|
-
switch (
|
|
11196
|
+
switch (_context77.prev = _context77.next) {
|
|
11227
11197
|
case 0:
|
|
11228
|
-
|
|
11198
|
+
_context77.next = 2;
|
|
11229
11199
|
return this.get(this.baseURL + "/imports", options);
|
|
11230
11200
|
|
|
11231
11201
|
case 2:
|
|
11232
|
-
return
|
|
11202
|
+
return _context77.abrupt("return", _context77.sent);
|
|
11233
11203
|
|
|
11234
11204
|
case 3:
|
|
11235
11205
|
case "end":
|
|
11236
|
-
return
|
|
11206
|
+
return _context77.stop();
|
|
11237
11207
|
}
|
|
11238
11208
|
}
|
|
11239
|
-
},
|
|
11209
|
+
}, _callee77, this);
|
|
11240
11210
|
}));
|
|
11241
11211
|
|
|
11242
|
-
function _listImports(
|
|
11212
|
+
function _listImports(_x103) {
|
|
11243
11213
|
return _listImports2.apply(this, arguments);
|
|
11244
11214
|
}
|
|
11245
11215
|
|
|
@@ -11258,28 +11228,28 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
11258
11228
|
}, {
|
|
11259
11229
|
key: "upsertPushProvider",
|
|
11260
11230
|
value: function () {
|
|
11261
|
-
var _upsertPushProvider = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
11262
|
-
return _regeneratorRuntime.wrap(function
|
|
11231
|
+
var _upsertPushProvider = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee78(pushProvider) {
|
|
11232
|
+
return _regeneratorRuntime.wrap(function _callee78$(_context78) {
|
|
11263
11233
|
while (1) {
|
|
11264
|
-
switch (
|
|
11234
|
+
switch (_context78.prev = _context78.next) {
|
|
11265
11235
|
case 0:
|
|
11266
|
-
|
|
11236
|
+
_context78.next = 2;
|
|
11267
11237
|
return this.post(this.baseURL + "/push_providers", {
|
|
11268
11238
|
push_provider: pushProvider
|
|
11269
11239
|
});
|
|
11270
11240
|
|
|
11271
11241
|
case 2:
|
|
11272
|
-
return
|
|
11242
|
+
return _context78.abrupt("return", _context78.sent);
|
|
11273
11243
|
|
|
11274
11244
|
case 3:
|
|
11275
11245
|
case "end":
|
|
11276
|
-
return
|
|
11246
|
+
return _context78.stop();
|
|
11277
11247
|
}
|
|
11278
11248
|
}
|
|
11279
|
-
},
|
|
11249
|
+
}, _callee78, this);
|
|
11280
11250
|
}));
|
|
11281
11251
|
|
|
11282
|
-
function upsertPushProvider(
|
|
11252
|
+
function upsertPushProvider(_x104) {
|
|
11283
11253
|
return _upsertPushProvider.apply(this, arguments);
|
|
11284
11254
|
}
|
|
11285
11255
|
|
|
@@ -11298,28 +11268,28 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
11298
11268
|
}, {
|
|
11299
11269
|
key: "deletePushProvider",
|
|
11300
11270
|
value: function () {
|
|
11301
|
-
var _deletePushProvider = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
11271
|
+
var _deletePushProvider = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee79(_ref10) {
|
|
11302
11272
|
var type, name;
|
|
11303
|
-
return _regeneratorRuntime.wrap(function
|
|
11273
|
+
return _regeneratorRuntime.wrap(function _callee79$(_context79) {
|
|
11304
11274
|
while (1) {
|
|
11305
|
-
switch (
|
|
11275
|
+
switch (_context79.prev = _context79.next) {
|
|
11306
11276
|
case 0:
|
|
11307
11277
|
type = _ref10.type, name = _ref10.name;
|
|
11308
|
-
|
|
11278
|
+
_context79.next = 3;
|
|
11309
11279
|
return this.delete(this.baseURL + "/push_providers/".concat(type, "/").concat(name));
|
|
11310
11280
|
|
|
11311
11281
|
case 3:
|
|
11312
|
-
return
|
|
11282
|
+
return _context79.abrupt("return", _context79.sent);
|
|
11313
11283
|
|
|
11314
11284
|
case 4:
|
|
11315
11285
|
case "end":
|
|
11316
|
-
return
|
|
11286
|
+
return _context79.stop();
|
|
11317
11287
|
}
|
|
11318
11288
|
}
|
|
11319
|
-
},
|
|
11289
|
+
}, _callee79, this);
|
|
11320
11290
|
}));
|
|
11321
11291
|
|
|
11322
|
-
function deletePushProvider(
|
|
11292
|
+
function deletePushProvider(_x105) {
|
|
11323
11293
|
return _deletePushProvider.apply(this, arguments);
|
|
11324
11294
|
}
|
|
11325
11295
|
|
|
@@ -11336,23 +11306,23 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
11336
11306
|
}, {
|
|
11337
11307
|
key: "listPushProviders",
|
|
11338
11308
|
value: function () {
|
|
11339
|
-
var _listPushProviders = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
11340
|
-
return _regeneratorRuntime.wrap(function
|
|
11309
|
+
var _listPushProviders = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee80() {
|
|
11310
|
+
return _regeneratorRuntime.wrap(function _callee80$(_context80) {
|
|
11341
11311
|
while (1) {
|
|
11342
|
-
switch (
|
|
11312
|
+
switch (_context80.prev = _context80.next) {
|
|
11343
11313
|
case 0:
|
|
11344
|
-
|
|
11314
|
+
_context80.next = 2;
|
|
11345
11315
|
return this.get(this.baseURL + "/push_providers");
|
|
11346
11316
|
|
|
11347
11317
|
case 2:
|
|
11348
|
-
return
|
|
11318
|
+
return _context80.abrupt("return", _context80.sent);
|
|
11349
11319
|
|
|
11350
11320
|
case 3:
|
|
11351
11321
|
case "end":
|
|
11352
|
-
return
|
|
11322
|
+
return _context80.stop();
|
|
11353
11323
|
}
|
|
11354
11324
|
}
|
|
11355
|
-
},
|
|
11325
|
+
}, _callee80, this);
|
|
11356
11326
|
}));
|
|
11357
11327
|
|
|
11358
11328
|
function listPushProviders() {
|
|
@@ -11380,26 +11350,26 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
11380
11350
|
}, {
|
|
11381
11351
|
key: "commitMessage",
|
|
11382
11352
|
value: function () {
|
|
11383
|
-
var _commitMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
11384
|
-
return _regeneratorRuntime.wrap(function
|
|
11353
|
+
var _commitMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee81(id) {
|
|
11354
|
+
return _regeneratorRuntime.wrap(function _callee81$(_context81) {
|
|
11385
11355
|
while (1) {
|
|
11386
|
-
switch (
|
|
11356
|
+
switch (_context81.prev = _context81.next) {
|
|
11387
11357
|
case 0:
|
|
11388
|
-
|
|
11358
|
+
_context81.next = 2;
|
|
11389
11359
|
return this.post(this.baseURL + "/messages/".concat(id, "/commit"));
|
|
11390
11360
|
|
|
11391
11361
|
case 2:
|
|
11392
|
-
return
|
|
11362
|
+
return _context81.abrupt("return", _context81.sent);
|
|
11393
11363
|
|
|
11394
11364
|
case 3:
|
|
11395
11365
|
case "end":
|
|
11396
|
-
return
|
|
11366
|
+
return _context81.stop();
|
|
11397
11367
|
}
|
|
11398
11368
|
}
|
|
11399
|
-
},
|
|
11369
|
+
}, _callee81, this);
|
|
11400
11370
|
}));
|
|
11401
11371
|
|
|
11402
|
-
function commitMessage(
|
|
11372
|
+
function commitMessage(_x106) {
|
|
11403
11373
|
return _commitMessage.apply(this, arguments);
|
|
11404
11374
|
}
|
|
11405
11375
|
|