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