stream-chat 8.6.0 → 8.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser.es.js +572 -534
- 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 +572 -534
- package/dist/browser.js.map +1 -1
- package/dist/index.es.js +572 -534
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +572 -534
- package/dist/index.js.map +1 -1
- package/dist/types/channel.d.ts.map +1 -1
- package/dist/types/client.d.ts +2 -1
- package/dist/types/client.d.ts.map +1 -1
- package/dist/types/types.d.ts +13 -0
- package/dist/types/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/channel.ts +4 -0
- package/src/client.ts +5 -0
- package/src/types.ts +14 -0
package/dist/index.es.js
CHANGED
|
@@ -1527,18 +1527,26 @@ var Channel = /*#__PURE__*/function () {
|
|
|
1527
1527
|
while (1) {
|
|
1528
1528
|
switch (_context2.prev = _context2.next) {
|
|
1529
1529
|
case 0:
|
|
1530
|
-
|
|
1530
|
+
if (!((options === null || options === void 0 ? void 0 : options.is_pending_message) !== undefined && !this._client._isUsingServerAuth())) {
|
|
1531
|
+
_context2.next = 2;
|
|
1532
|
+
break;
|
|
1533
|
+
}
|
|
1534
|
+
|
|
1535
|
+
throw new Error('Setting is_pending_message on client side is not supported');
|
|
1536
|
+
|
|
1537
|
+
case 2:
|
|
1538
|
+
_context2.next = 4;
|
|
1531
1539
|
return this.getClient().post(this._channelURL() + '/message', _objectSpread$5({
|
|
1532
1540
|
message: message
|
|
1533
1541
|
}, options));
|
|
1534
1542
|
|
|
1535
|
-
case
|
|
1543
|
+
case 4:
|
|
1536
1544
|
sendMessageResponse = _context2.sent;
|
|
1537
1545
|
// Reset unreadCount to 0.
|
|
1538
1546
|
this.state.unreadCount = 0;
|
|
1539
1547
|
return _context2.abrupt("return", sendMessageResponse);
|
|
1540
1548
|
|
|
1541
|
-
case
|
|
1549
|
+
case 7:
|
|
1542
1550
|
case "end":
|
|
1543
1551
|
return _context2.stop();
|
|
1544
1552
|
}
|
|
@@ -8320,6 +8328,36 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
8320
8328
|
|
|
8321
8329
|
return getDevices;
|
|
8322
8330
|
}()
|
|
8331
|
+
}, {
|
|
8332
|
+
key: "getUnreadCount",
|
|
8333
|
+
value: function () {
|
|
8334
|
+
var _getUnreadCount = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee23(userID) {
|
|
8335
|
+
return _regeneratorRuntime.wrap(function _callee23$(_context23) {
|
|
8336
|
+
while (1) {
|
|
8337
|
+
switch (_context23.prev = _context23.next) {
|
|
8338
|
+
case 0:
|
|
8339
|
+
_context23.next = 2;
|
|
8340
|
+
return this.get(this.baseURL + '/unread', userID ? {
|
|
8341
|
+
user_id: userID
|
|
8342
|
+
} : {});
|
|
8343
|
+
|
|
8344
|
+
case 2:
|
|
8345
|
+
return _context23.abrupt("return", _context23.sent);
|
|
8346
|
+
|
|
8347
|
+
case 3:
|
|
8348
|
+
case "end":
|
|
8349
|
+
return _context23.stop();
|
|
8350
|
+
}
|
|
8351
|
+
}
|
|
8352
|
+
}, _callee23, this);
|
|
8353
|
+
}));
|
|
8354
|
+
|
|
8355
|
+
function getUnreadCount(_x25) {
|
|
8356
|
+
return _getUnreadCount.apply(this, arguments);
|
|
8357
|
+
}
|
|
8358
|
+
|
|
8359
|
+
return getUnreadCount;
|
|
8360
|
+
}()
|
|
8323
8361
|
/**
|
|
8324
8362
|
* removeDevice - Removes the device with the given id. Clientside users can only delete their own devices
|
|
8325
8363
|
*
|
|
@@ -8331,12 +8369,12 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
8331
8369
|
}, {
|
|
8332
8370
|
key: "removeDevice",
|
|
8333
8371
|
value: function () {
|
|
8334
|
-
var _removeDevice = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
8335
|
-
return _regeneratorRuntime.wrap(function
|
|
8372
|
+
var _removeDevice = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee24(id, userID) {
|
|
8373
|
+
return _regeneratorRuntime.wrap(function _callee24$(_context24) {
|
|
8336
8374
|
while (1) {
|
|
8337
|
-
switch (
|
|
8375
|
+
switch (_context24.prev = _context24.next) {
|
|
8338
8376
|
case 0:
|
|
8339
|
-
|
|
8377
|
+
_context24.next = 2;
|
|
8340
8378
|
return this.delete(this.baseURL + '/devices', _objectSpread({
|
|
8341
8379
|
id: id
|
|
8342
8380
|
}, userID ? {
|
|
@@ -8344,17 +8382,17 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
8344
8382
|
} : {}));
|
|
8345
8383
|
|
|
8346
8384
|
case 2:
|
|
8347
|
-
return
|
|
8385
|
+
return _context24.abrupt("return", _context24.sent);
|
|
8348
8386
|
|
|
8349
8387
|
case 3:
|
|
8350
8388
|
case "end":
|
|
8351
|
-
return
|
|
8389
|
+
return _context24.stop();
|
|
8352
8390
|
}
|
|
8353
8391
|
}
|
|
8354
|
-
},
|
|
8392
|
+
}, _callee24, this);
|
|
8355
8393
|
}));
|
|
8356
8394
|
|
|
8357
|
-
function removeDevice(
|
|
8395
|
+
function removeDevice(_x26, _x27) {
|
|
8358
8396
|
return _removeDevice.apply(this, arguments);
|
|
8359
8397
|
}
|
|
8360
8398
|
|
|
@@ -8371,15 +8409,15 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
8371
8409
|
}, {
|
|
8372
8410
|
key: "getRateLimits",
|
|
8373
8411
|
value: function () {
|
|
8374
|
-
var _getRateLimits = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
8412
|
+
var _getRateLimits = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee25(params) {
|
|
8375
8413
|
var _ref7, serverSide, web, android, ios, endpoints;
|
|
8376
8414
|
|
|
8377
|
-
return _regeneratorRuntime.wrap(function
|
|
8415
|
+
return _regeneratorRuntime.wrap(function _callee25$(_context25) {
|
|
8378
8416
|
while (1) {
|
|
8379
|
-
switch (
|
|
8417
|
+
switch (_context25.prev = _context25.next) {
|
|
8380
8418
|
case 0:
|
|
8381
8419
|
_ref7 = params || {}, serverSide = _ref7.serverSide, web = _ref7.web, android = _ref7.android, ios = _ref7.ios, endpoints = _ref7.endpoints;
|
|
8382
|
-
return
|
|
8420
|
+
return _context25.abrupt("return", this.get(this.baseURL + '/rate_limits', {
|
|
8383
8421
|
server_side: serverSide,
|
|
8384
8422
|
web: web,
|
|
8385
8423
|
android: android,
|
|
@@ -8389,13 +8427,13 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
8389
8427
|
|
|
8390
8428
|
case 2:
|
|
8391
8429
|
case "end":
|
|
8392
|
-
return
|
|
8430
|
+
return _context25.stop();
|
|
8393
8431
|
}
|
|
8394
8432
|
}
|
|
8395
|
-
},
|
|
8433
|
+
}, _callee25, this);
|
|
8396
8434
|
}));
|
|
8397
8435
|
|
|
8398
|
-
function getRateLimits(
|
|
8436
|
+
function getRateLimits(_x28) {
|
|
8399
8437
|
return _getRateLimits.apply(this, arguments);
|
|
8400
8438
|
}
|
|
8401
8439
|
|
|
@@ -8479,26 +8517,26 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
8479
8517
|
* @return {Promise<{ users: { [key: string]: UserResponse<StreamChatGenerics> } }>} list of updated users
|
|
8480
8518
|
*/
|
|
8481
8519
|
function () {
|
|
8482
|
-
var _partialUpdateUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
8483
|
-
return _regeneratorRuntime.wrap(function
|
|
8520
|
+
var _partialUpdateUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee26(partialUserObject) {
|
|
8521
|
+
return _regeneratorRuntime.wrap(function _callee26$(_context26) {
|
|
8484
8522
|
while (1) {
|
|
8485
|
-
switch (
|
|
8523
|
+
switch (_context26.prev = _context26.next) {
|
|
8486
8524
|
case 0:
|
|
8487
|
-
|
|
8525
|
+
_context26.next = 2;
|
|
8488
8526
|
return this.partialUpdateUsers([partialUserObject]);
|
|
8489
8527
|
|
|
8490
8528
|
case 2:
|
|
8491
|
-
return
|
|
8529
|
+
return _context26.abrupt("return", _context26.sent);
|
|
8492
8530
|
|
|
8493
8531
|
case 3:
|
|
8494
8532
|
case "end":
|
|
8495
|
-
return
|
|
8533
|
+
return _context26.stop();
|
|
8496
8534
|
}
|
|
8497
8535
|
}
|
|
8498
|
-
},
|
|
8536
|
+
}, _callee26, this);
|
|
8499
8537
|
}));
|
|
8500
8538
|
|
|
8501
|
-
function partialUpdateUser(
|
|
8539
|
+
function partialUpdateUser(_x29) {
|
|
8502
8540
|
return _partialUpdateUser.apply(this, arguments);
|
|
8503
8541
|
}
|
|
8504
8542
|
|
|
@@ -8515,29 +8553,29 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
8515
8553
|
}, {
|
|
8516
8554
|
key: "upsertUsers",
|
|
8517
8555
|
value: function () {
|
|
8518
|
-
var _upsertUsers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
8556
|
+
var _upsertUsers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee27(users) {
|
|
8519
8557
|
var userMap, _iterator4, _step4, userObject;
|
|
8520
8558
|
|
|
8521
|
-
return _regeneratorRuntime.wrap(function
|
|
8559
|
+
return _regeneratorRuntime.wrap(function _callee27$(_context27) {
|
|
8522
8560
|
while (1) {
|
|
8523
|
-
switch (
|
|
8561
|
+
switch (_context27.prev = _context27.next) {
|
|
8524
8562
|
case 0:
|
|
8525
8563
|
userMap = {};
|
|
8526
8564
|
_iterator4 = _createForOfIteratorHelper(users);
|
|
8527
|
-
|
|
8565
|
+
_context27.prev = 2;
|
|
8528
8566
|
|
|
8529
8567
|
_iterator4.s();
|
|
8530
8568
|
|
|
8531
8569
|
case 4:
|
|
8532
8570
|
if ((_step4 = _iterator4.n()).done) {
|
|
8533
|
-
|
|
8571
|
+
_context27.next = 11;
|
|
8534
8572
|
break;
|
|
8535
8573
|
}
|
|
8536
8574
|
|
|
8537
8575
|
userObject = _step4.value;
|
|
8538
8576
|
|
|
8539
8577
|
if (userObject.id) {
|
|
8540
|
-
|
|
8578
|
+
_context27.next = 8;
|
|
8541
8579
|
break;
|
|
8542
8580
|
}
|
|
8543
8581
|
|
|
@@ -8547,44 +8585,44 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
8547
8585
|
userMap[userObject.id] = userObject;
|
|
8548
8586
|
|
|
8549
8587
|
case 9:
|
|
8550
|
-
|
|
8588
|
+
_context27.next = 4;
|
|
8551
8589
|
break;
|
|
8552
8590
|
|
|
8553
8591
|
case 11:
|
|
8554
|
-
|
|
8592
|
+
_context27.next = 16;
|
|
8555
8593
|
break;
|
|
8556
8594
|
|
|
8557
8595
|
case 13:
|
|
8558
|
-
|
|
8559
|
-
|
|
8596
|
+
_context27.prev = 13;
|
|
8597
|
+
_context27.t0 = _context27["catch"](2);
|
|
8560
8598
|
|
|
8561
|
-
_iterator4.e(
|
|
8599
|
+
_iterator4.e(_context27.t0);
|
|
8562
8600
|
|
|
8563
8601
|
case 16:
|
|
8564
|
-
|
|
8602
|
+
_context27.prev = 16;
|
|
8565
8603
|
|
|
8566
8604
|
_iterator4.f();
|
|
8567
8605
|
|
|
8568
|
-
return
|
|
8606
|
+
return _context27.finish(16);
|
|
8569
8607
|
|
|
8570
8608
|
case 19:
|
|
8571
|
-
|
|
8609
|
+
_context27.next = 21;
|
|
8572
8610
|
return this.post(this.baseURL + '/users', {
|
|
8573
8611
|
users: userMap
|
|
8574
8612
|
});
|
|
8575
8613
|
|
|
8576
8614
|
case 21:
|
|
8577
|
-
return
|
|
8615
|
+
return _context27.abrupt("return", _context27.sent);
|
|
8578
8616
|
|
|
8579
8617
|
case 22:
|
|
8580
8618
|
case "end":
|
|
8581
|
-
return
|
|
8619
|
+
return _context27.stop();
|
|
8582
8620
|
}
|
|
8583
8621
|
}
|
|
8584
|
-
},
|
|
8622
|
+
}, _callee27, this, [[2, 13, 16, 19]]);
|
|
8585
8623
|
}));
|
|
8586
8624
|
|
|
8587
|
-
function upsertUsers(
|
|
8625
|
+
function upsertUsers(_x30) {
|
|
8588
8626
|
return _upsertUsers.apply(this, arguments);
|
|
8589
8627
|
}
|
|
8590
8628
|
|
|
@@ -8632,72 +8670,72 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
8632
8670
|
* @return {Promise<{ users: { [key: string]: UserResponse<StreamChatGenerics> } }>}
|
|
8633
8671
|
*/
|
|
8634
8672
|
function () {
|
|
8635
|
-
var _partialUpdateUsers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
8673
|
+
var _partialUpdateUsers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee28(users) {
|
|
8636
8674
|
var _iterator5, _step5, userObject;
|
|
8637
8675
|
|
|
8638
|
-
return _regeneratorRuntime.wrap(function
|
|
8676
|
+
return _regeneratorRuntime.wrap(function _callee28$(_context28) {
|
|
8639
8677
|
while (1) {
|
|
8640
|
-
switch (
|
|
8678
|
+
switch (_context28.prev = _context28.next) {
|
|
8641
8679
|
case 0:
|
|
8642
8680
|
_iterator5 = _createForOfIteratorHelper(users);
|
|
8643
|
-
|
|
8681
|
+
_context28.prev = 1;
|
|
8644
8682
|
|
|
8645
8683
|
_iterator5.s();
|
|
8646
8684
|
|
|
8647
8685
|
case 3:
|
|
8648
8686
|
if ((_step5 = _iterator5.n()).done) {
|
|
8649
|
-
|
|
8687
|
+
_context28.next = 9;
|
|
8650
8688
|
break;
|
|
8651
8689
|
}
|
|
8652
8690
|
|
|
8653
8691
|
userObject = _step5.value;
|
|
8654
8692
|
|
|
8655
8693
|
if (userObject.id) {
|
|
8656
|
-
|
|
8694
|
+
_context28.next = 7;
|
|
8657
8695
|
break;
|
|
8658
8696
|
}
|
|
8659
8697
|
|
|
8660
8698
|
throw Error('User ID is required when updating a user');
|
|
8661
8699
|
|
|
8662
8700
|
case 7:
|
|
8663
|
-
|
|
8701
|
+
_context28.next = 3;
|
|
8664
8702
|
break;
|
|
8665
8703
|
|
|
8666
8704
|
case 9:
|
|
8667
|
-
|
|
8705
|
+
_context28.next = 14;
|
|
8668
8706
|
break;
|
|
8669
8707
|
|
|
8670
8708
|
case 11:
|
|
8671
|
-
|
|
8672
|
-
|
|
8709
|
+
_context28.prev = 11;
|
|
8710
|
+
_context28.t0 = _context28["catch"](1);
|
|
8673
8711
|
|
|
8674
|
-
_iterator5.e(
|
|
8712
|
+
_iterator5.e(_context28.t0);
|
|
8675
8713
|
|
|
8676
8714
|
case 14:
|
|
8677
|
-
|
|
8715
|
+
_context28.prev = 14;
|
|
8678
8716
|
|
|
8679
8717
|
_iterator5.f();
|
|
8680
8718
|
|
|
8681
|
-
return
|
|
8719
|
+
return _context28.finish(14);
|
|
8682
8720
|
|
|
8683
8721
|
case 17:
|
|
8684
|
-
|
|
8722
|
+
_context28.next = 19;
|
|
8685
8723
|
return this.patch(this.baseURL + '/users', {
|
|
8686
8724
|
users: users
|
|
8687
8725
|
});
|
|
8688
8726
|
|
|
8689
8727
|
case 19:
|
|
8690
|
-
return
|
|
8728
|
+
return _context28.abrupt("return", _context28.sent);
|
|
8691
8729
|
|
|
8692
8730
|
case 20:
|
|
8693
8731
|
case "end":
|
|
8694
|
-
return
|
|
8732
|
+
return _context28.stop();
|
|
8695
8733
|
}
|
|
8696
8734
|
}
|
|
8697
|
-
},
|
|
8735
|
+
}, _callee28, this, [[1, 11, 14, 17]]);
|
|
8698
8736
|
}));
|
|
8699
8737
|
|
|
8700
|
-
function partialUpdateUsers(
|
|
8738
|
+
function partialUpdateUsers(_x31) {
|
|
8701
8739
|
return _partialUpdateUsers.apply(this, arguments);
|
|
8702
8740
|
}
|
|
8703
8741
|
|
|
@@ -8706,26 +8744,26 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
8706
8744
|
}, {
|
|
8707
8745
|
key: "deleteUser",
|
|
8708
8746
|
value: function () {
|
|
8709
|
-
var _deleteUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
8710
|
-
return _regeneratorRuntime.wrap(function
|
|
8747
|
+
var _deleteUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee29(userID, params) {
|
|
8748
|
+
return _regeneratorRuntime.wrap(function _callee29$(_context29) {
|
|
8711
8749
|
while (1) {
|
|
8712
|
-
switch (
|
|
8750
|
+
switch (_context29.prev = _context29.next) {
|
|
8713
8751
|
case 0:
|
|
8714
|
-
|
|
8752
|
+
_context29.next = 2;
|
|
8715
8753
|
return this.delete(this.baseURL + "/users/".concat(userID), params);
|
|
8716
8754
|
|
|
8717
8755
|
case 2:
|
|
8718
|
-
return
|
|
8756
|
+
return _context29.abrupt("return", _context29.sent);
|
|
8719
8757
|
|
|
8720
8758
|
case 3:
|
|
8721
8759
|
case "end":
|
|
8722
|
-
return
|
|
8760
|
+
return _context29.stop();
|
|
8723
8761
|
}
|
|
8724
8762
|
}
|
|
8725
|
-
},
|
|
8763
|
+
}, _callee29, this);
|
|
8726
8764
|
}));
|
|
8727
8765
|
|
|
8728
|
-
function deleteUser(
|
|
8766
|
+
function deleteUser(_x32, _x33) {
|
|
8729
8767
|
return _deleteUser.apply(this, arguments);
|
|
8730
8768
|
}
|
|
8731
8769
|
|
|
@@ -8742,28 +8780,28 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
8742
8780
|
}, {
|
|
8743
8781
|
key: "restoreUsers",
|
|
8744
8782
|
value: function () {
|
|
8745
|
-
var _restoreUsers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
8746
|
-
return _regeneratorRuntime.wrap(function
|
|
8783
|
+
var _restoreUsers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee30(user_ids) {
|
|
8784
|
+
return _regeneratorRuntime.wrap(function _callee30$(_context30) {
|
|
8747
8785
|
while (1) {
|
|
8748
|
-
switch (
|
|
8786
|
+
switch (_context30.prev = _context30.next) {
|
|
8749
8787
|
case 0:
|
|
8750
|
-
|
|
8788
|
+
_context30.next = 2;
|
|
8751
8789
|
return this.post(this.baseURL + "/users/restore", {
|
|
8752
8790
|
user_ids: user_ids
|
|
8753
8791
|
});
|
|
8754
8792
|
|
|
8755
8793
|
case 2:
|
|
8756
|
-
return
|
|
8794
|
+
return _context30.abrupt("return", _context30.sent);
|
|
8757
8795
|
|
|
8758
8796
|
case 3:
|
|
8759
8797
|
case "end":
|
|
8760
|
-
return
|
|
8798
|
+
return _context30.stop();
|
|
8761
8799
|
}
|
|
8762
8800
|
}
|
|
8763
|
-
},
|
|
8801
|
+
}, _callee30, this);
|
|
8764
8802
|
}));
|
|
8765
8803
|
|
|
8766
|
-
function restoreUsers(
|
|
8804
|
+
function restoreUsers(_x34) {
|
|
8767
8805
|
return _restoreUsers.apply(this, arguments);
|
|
8768
8806
|
}
|
|
8769
8807
|
|
|
@@ -8781,26 +8819,26 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
8781
8819
|
}, {
|
|
8782
8820
|
key: "reactivateUser",
|
|
8783
8821
|
value: function () {
|
|
8784
|
-
var _reactivateUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
8785
|
-
return _regeneratorRuntime.wrap(function
|
|
8822
|
+
var _reactivateUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee31(userID, options) {
|
|
8823
|
+
return _regeneratorRuntime.wrap(function _callee31$(_context31) {
|
|
8786
8824
|
while (1) {
|
|
8787
|
-
switch (
|
|
8825
|
+
switch (_context31.prev = _context31.next) {
|
|
8788
8826
|
case 0:
|
|
8789
|
-
|
|
8827
|
+
_context31.next = 2;
|
|
8790
8828
|
return this.post(this.baseURL + "/users/".concat(userID, "/reactivate"), _objectSpread({}, options));
|
|
8791
8829
|
|
|
8792
8830
|
case 2:
|
|
8793
|
-
return
|
|
8831
|
+
return _context31.abrupt("return", _context31.sent);
|
|
8794
8832
|
|
|
8795
8833
|
case 3:
|
|
8796
8834
|
case "end":
|
|
8797
|
-
return
|
|
8835
|
+
return _context31.stop();
|
|
8798
8836
|
}
|
|
8799
8837
|
}
|
|
8800
|
-
},
|
|
8838
|
+
}, _callee31, this);
|
|
8801
8839
|
}));
|
|
8802
8840
|
|
|
8803
|
-
function reactivateUser(
|
|
8841
|
+
function reactivateUser(_x35, _x36) {
|
|
8804
8842
|
return _reactivateUser.apply(this, arguments);
|
|
8805
8843
|
}
|
|
8806
8844
|
|
|
@@ -8818,28 +8856,28 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
8818
8856
|
}, {
|
|
8819
8857
|
key: "reactivateUsers",
|
|
8820
8858
|
value: function () {
|
|
8821
|
-
var _reactivateUsers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
8822
|
-
return _regeneratorRuntime.wrap(function
|
|
8859
|
+
var _reactivateUsers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee32(user_ids, options) {
|
|
8860
|
+
return _regeneratorRuntime.wrap(function _callee32$(_context32) {
|
|
8823
8861
|
while (1) {
|
|
8824
|
-
switch (
|
|
8862
|
+
switch (_context32.prev = _context32.next) {
|
|
8825
8863
|
case 0:
|
|
8826
|
-
|
|
8864
|
+
_context32.next = 2;
|
|
8827
8865
|
return this.post(this.baseURL + "/users/reactivate", _objectSpread({
|
|
8828
8866
|
user_ids: user_ids
|
|
8829
8867
|
}, options));
|
|
8830
8868
|
|
|
8831
8869
|
case 2:
|
|
8832
|
-
return
|
|
8870
|
+
return _context32.abrupt("return", _context32.sent);
|
|
8833
8871
|
|
|
8834
8872
|
case 3:
|
|
8835
8873
|
case "end":
|
|
8836
|
-
return
|
|
8874
|
+
return _context32.stop();
|
|
8837
8875
|
}
|
|
8838
8876
|
}
|
|
8839
|
-
},
|
|
8877
|
+
}, _callee32, this);
|
|
8840
8878
|
}));
|
|
8841
8879
|
|
|
8842
|
-
function reactivateUsers(
|
|
8880
|
+
function reactivateUsers(_x37, _x38) {
|
|
8843
8881
|
return _reactivateUsers.apply(this, arguments);
|
|
8844
8882
|
}
|
|
8845
8883
|
|
|
@@ -8857,26 +8895,26 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
8857
8895
|
}, {
|
|
8858
8896
|
key: "deactivateUser",
|
|
8859
8897
|
value: function () {
|
|
8860
|
-
var _deactivateUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
8861
|
-
return _regeneratorRuntime.wrap(function
|
|
8898
|
+
var _deactivateUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee33(userID, options) {
|
|
8899
|
+
return _regeneratorRuntime.wrap(function _callee33$(_context33) {
|
|
8862
8900
|
while (1) {
|
|
8863
|
-
switch (
|
|
8901
|
+
switch (_context33.prev = _context33.next) {
|
|
8864
8902
|
case 0:
|
|
8865
|
-
|
|
8903
|
+
_context33.next = 2;
|
|
8866
8904
|
return this.post(this.baseURL + "/users/".concat(userID, "/deactivate"), _objectSpread({}, options));
|
|
8867
8905
|
|
|
8868
8906
|
case 2:
|
|
8869
|
-
return
|
|
8907
|
+
return _context33.abrupt("return", _context33.sent);
|
|
8870
8908
|
|
|
8871
8909
|
case 3:
|
|
8872
8910
|
case "end":
|
|
8873
|
-
return
|
|
8911
|
+
return _context33.stop();
|
|
8874
8912
|
}
|
|
8875
8913
|
}
|
|
8876
|
-
},
|
|
8914
|
+
}, _callee33, this);
|
|
8877
8915
|
}));
|
|
8878
8916
|
|
|
8879
|
-
function deactivateUser(
|
|
8917
|
+
function deactivateUser(_x39, _x40) {
|
|
8880
8918
|
return _deactivateUser.apply(this, arguments);
|
|
8881
8919
|
}
|
|
8882
8920
|
|
|
@@ -8894,28 +8932,28 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
8894
8932
|
}, {
|
|
8895
8933
|
key: "deactivateUsers",
|
|
8896
8934
|
value: function () {
|
|
8897
|
-
var _deactivateUsers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
8898
|
-
return _regeneratorRuntime.wrap(function
|
|
8935
|
+
var _deactivateUsers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee34(user_ids, options) {
|
|
8936
|
+
return _regeneratorRuntime.wrap(function _callee34$(_context34) {
|
|
8899
8937
|
while (1) {
|
|
8900
|
-
switch (
|
|
8938
|
+
switch (_context34.prev = _context34.next) {
|
|
8901
8939
|
case 0:
|
|
8902
|
-
|
|
8940
|
+
_context34.next = 2;
|
|
8903
8941
|
return this.post(this.baseURL + "/users/deactivate", _objectSpread({
|
|
8904
8942
|
user_ids: user_ids
|
|
8905
8943
|
}, options));
|
|
8906
8944
|
|
|
8907
8945
|
case 2:
|
|
8908
|
-
return
|
|
8946
|
+
return _context34.abrupt("return", _context34.sent);
|
|
8909
8947
|
|
|
8910
8948
|
case 3:
|
|
8911
8949
|
case "end":
|
|
8912
|
-
return
|
|
8950
|
+
return _context34.stop();
|
|
8913
8951
|
}
|
|
8914
8952
|
}
|
|
8915
|
-
},
|
|
8953
|
+
}, _callee34, this);
|
|
8916
8954
|
}));
|
|
8917
8955
|
|
|
8918
|
-
function deactivateUsers(
|
|
8956
|
+
function deactivateUsers(_x41, _x42) {
|
|
8919
8957
|
return _deactivateUsers.apply(this, arguments);
|
|
8920
8958
|
}
|
|
8921
8959
|
|
|
@@ -8924,26 +8962,26 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
8924
8962
|
}, {
|
|
8925
8963
|
key: "exportUser",
|
|
8926
8964
|
value: function () {
|
|
8927
|
-
var _exportUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
8928
|
-
return _regeneratorRuntime.wrap(function
|
|
8965
|
+
var _exportUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee35(userID, options) {
|
|
8966
|
+
return _regeneratorRuntime.wrap(function _callee35$(_context35) {
|
|
8929
8967
|
while (1) {
|
|
8930
|
-
switch (
|
|
8968
|
+
switch (_context35.prev = _context35.next) {
|
|
8931
8969
|
case 0:
|
|
8932
|
-
|
|
8970
|
+
_context35.next = 2;
|
|
8933
8971
|
return this.get(this.baseURL + "/users/".concat(userID, "/export"), _objectSpread({}, options));
|
|
8934
8972
|
|
|
8935
8973
|
case 2:
|
|
8936
|
-
return
|
|
8974
|
+
return _context35.abrupt("return", _context35.sent);
|
|
8937
8975
|
|
|
8938
8976
|
case 3:
|
|
8939
8977
|
case "end":
|
|
8940
|
-
return
|
|
8978
|
+
return _context35.stop();
|
|
8941
8979
|
}
|
|
8942
8980
|
}
|
|
8943
|
-
},
|
|
8981
|
+
}, _callee35, this);
|
|
8944
8982
|
}));
|
|
8945
8983
|
|
|
8946
|
-
function exportUser(
|
|
8984
|
+
function exportUser(_x43, _x44) {
|
|
8947
8985
|
return _exportUser.apply(this, arguments);
|
|
8948
8986
|
}
|
|
8949
8987
|
|
|
@@ -8959,28 +8997,28 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
8959
8997
|
}, {
|
|
8960
8998
|
key: "banUser",
|
|
8961
8999
|
value: function () {
|
|
8962
|
-
var _banUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
8963
|
-
return _regeneratorRuntime.wrap(function
|
|
9000
|
+
var _banUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee36(targetUserID, options) {
|
|
9001
|
+
return _regeneratorRuntime.wrap(function _callee36$(_context36) {
|
|
8964
9002
|
while (1) {
|
|
8965
|
-
switch (
|
|
9003
|
+
switch (_context36.prev = _context36.next) {
|
|
8966
9004
|
case 0:
|
|
8967
|
-
|
|
9005
|
+
_context36.next = 2;
|
|
8968
9006
|
return this.post(this.baseURL + '/moderation/ban', _objectSpread({
|
|
8969
9007
|
target_user_id: targetUserID
|
|
8970
9008
|
}, options));
|
|
8971
9009
|
|
|
8972
9010
|
case 2:
|
|
8973
|
-
return
|
|
9011
|
+
return _context36.abrupt("return", _context36.sent);
|
|
8974
9012
|
|
|
8975
9013
|
case 3:
|
|
8976
9014
|
case "end":
|
|
8977
|
-
return
|
|
9015
|
+
return _context36.stop();
|
|
8978
9016
|
}
|
|
8979
9017
|
}
|
|
8980
|
-
},
|
|
9018
|
+
}, _callee36, this);
|
|
8981
9019
|
}));
|
|
8982
9020
|
|
|
8983
|
-
function banUser(
|
|
9021
|
+
function banUser(_x45, _x46) {
|
|
8984
9022
|
return _banUser.apply(this, arguments);
|
|
8985
9023
|
}
|
|
8986
9024
|
|
|
@@ -8996,28 +9034,28 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
8996
9034
|
}, {
|
|
8997
9035
|
key: "unbanUser",
|
|
8998
9036
|
value: function () {
|
|
8999
|
-
var _unbanUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
9000
|
-
return _regeneratorRuntime.wrap(function
|
|
9037
|
+
var _unbanUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee37(targetUserID, options) {
|
|
9038
|
+
return _regeneratorRuntime.wrap(function _callee37$(_context37) {
|
|
9001
9039
|
while (1) {
|
|
9002
|
-
switch (
|
|
9040
|
+
switch (_context37.prev = _context37.next) {
|
|
9003
9041
|
case 0:
|
|
9004
|
-
|
|
9042
|
+
_context37.next = 2;
|
|
9005
9043
|
return this.delete(this.baseURL + '/moderation/ban', _objectSpread({
|
|
9006
9044
|
target_user_id: targetUserID
|
|
9007
9045
|
}, options));
|
|
9008
9046
|
|
|
9009
9047
|
case 2:
|
|
9010
|
-
return
|
|
9048
|
+
return _context37.abrupt("return", _context37.sent);
|
|
9011
9049
|
|
|
9012
9050
|
case 3:
|
|
9013
9051
|
case "end":
|
|
9014
|
-
return
|
|
9052
|
+
return _context37.stop();
|
|
9015
9053
|
}
|
|
9016
9054
|
}
|
|
9017
|
-
},
|
|
9055
|
+
}, _callee37, this);
|
|
9018
9056
|
}));
|
|
9019
9057
|
|
|
9020
|
-
function unbanUser(
|
|
9058
|
+
function unbanUser(_x47, _x48) {
|
|
9021
9059
|
return _unbanUser.apply(this, arguments);
|
|
9022
9060
|
}
|
|
9023
9061
|
|
|
@@ -9033,28 +9071,28 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9033
9071
|
}, {
|
|
9034
9072
|
key: "shadowBan",
|
|
9035
9073
|
value: function () {
|
|
9036
|
-
var _shadowBan = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
9037
|
-
return _regeneratorRuntime.wrap(function
|
|
9074
|
+
var _shadowBan = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee38(targetUserID, options) {
|
|
9075
|
+
return _regeneratorRuntime.wrap(function _callee38$(_context38) {
|
|
9038
9076
|
while (1) {
|
|
9039
|
-
switch (
|
|
9077
|
+
switch (_context38.prev = _context38.next) {
|
|
9040
9078
|
case 0:
|
|
9041
|
-
|
|
9079
|
+
_context38.next = 2;
|
|
9042
9080
|
return this.banUser(targetUserID, _objectSpread({
|
|
9043
9081
|
shadow: true
|
|
9044
9082
|
}, options));
|
|
9045
9083
|
|
|
9046
9084
|
case 2:
|
|
9047
|
-
return
|
|
9085
|
+
return _context38.abrupt("return", _context38.sent);
|
|
9048
9086
|
|
|
9049
9087
|
case 3:
|
|
9050
9088
|
case "end":
|
|
9051
|
-
return
|
|
9089
|
+
return _context38.stop();
|
|
9052
9090
|
}
|
|
9053
9091
|
}
|
|
9054
|
-
},
|
|
9092
|
+
}, _callee38, this);
|
|
9055
9093
|
}));
|
|
9056
9094
|
|
|
9057
|
-
function shadowBan(
|
|
9095
|
+
function shadowBan(_x49, _x50) {
|
|
9058
9096
|
return _shadowBan.apply(this, arguments);
|
|
9059
9097
|
}
|
|
9060
9098
|
|
|
@@ -9070,28 +9108,28 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9070
9108
|
}, {
|
|
9071
9109
|
key: "removeShadowBan",
|
|
9072
9110
|
value: function () {
|
|
9073
|
-
var _removeShadowBan = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
9074
|
-
return _regeneratorRuntime.wrap(function
|
|
9111
|
+
var _removeShadowBan = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee39(targetUserID, options) {
|
|
9112
|
+
return _regeneratorRuntime.wrap(function _callee39$(_context39) {
|
|
9075
9113
|
while (1) {
|
|
9076
|
-
switch (
|
|
9114
|
+
switch (_context39.prev = _context39.next) {
|
|
9077
9115
|
case 0:
|
|
9078
|
-
|
|
9116
|
+
_context39.next = 2;
|
|
9079
9117
|
return this.unbanUser(targetUserID, _objectSpread({
|
|
9080
9118
|
shadow: true
|
|
9081
9119
|
}, options));
|
|
9082
9120
|
|
|
9083
9121
|
case 2:
|
|
9084
|
-
return
|
|
9122
|
+
return _context39.abrupt("return", _context39.sent);
|
|
9085
9123
|
|
|
9086
9124
|
case 3:
|
|
9087
9125
|
case "end":
|
|
9088
|
-
return
|
|
9126
|
+
return _context39.stop();
|
|
9089
9127
|
}
|
|
9090
9128
|
}
|
|
9091
|
-
},
|
|
9129
|
+
}, _callee39, this);
|
|
9092
9130
|
}));
|
|
9093
9131
|
|
|
9094
|
-
function removeShadowBan(
|
|
9132
|
+
function removeShadowBan(_x51, _x52) {
|
|
9095
9133
|
return _removeShadowBan.apply(this, arguments);
|
|
9096
9134
|
}
|
|
9097
9135
|
|
|
@@ -9108,15 +9146,15 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9108
9146
|
}, {
|
|
9109
9147
|
key: "muteUser",
|
|
9110
9148
|
value: function () {
|
|
9111
|
-
var _muteUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
9149
|
+
var _muteUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee40(targetID, userID) {
|
|
9112
9150
|
var options,
|
|
9113
|
-
|
|
9114
|
-
return _regeneratorRuntime.wrap(function
|
|
9151
|
+
_args40 = arguments;
|
|
9152
|
+
return _regeneratorRuntime.wrap(function _callee40$(_context40) {
|
|
9115
9153
|
while (1) {
|
|
9116
|
-
switch (
|
|
9154
|
+
switch (_context40.prev = _context40.next) {
|
|
9117
9155
|
case 0:
|
|
9118
|
-
options =
|
|
9119
|
-
|
|
9156
|
+
options = _args40.length > 2 && _args40[2] !== undefined ? _args40[2] : {};
|
|
9157
|
+
_context40.next = 3;
|
|
9120
9158
|
return this.post(this.baseURL + '/moderation/mute', _objectSpread(_objectSpread({
|
|
9121
9159
|
target_id: targetID
|
|
9122
9160
|
}, userID ? {
|
|
@@ -9124,17 +9162,17 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9124
9162
|
} : {}), options));
|
|
9125
9163
|
|
|
9126
9164
|
case 3:
|
|
9127
|
-
return
|
|
9165
|
+
return _context40.abrupt("return", _context40.sent);
|
|
9128
9166
|
|
|
9129
9167
|
case 4:
|
|
9130
9168
|
case "end":
|
|
9131
|
-
return
|
|
9169
|
+
return _context40.stop();
|
|
9132
9170
|
}
|
|
9133
9171
|
}
|
|
9134
|
-
},
|
|
9172
|
+
}, _callee40, this);
|
|
9135
9173
|
}));
|
|
9136
9174
|
|
|
9137
|
-
function muteUser(
|
|
9175
|
+
function muteUser(_x53, _x54) {
|
|
9138
9176
|
return _muteUser.apply(this, arguments);
|
|
9139
9177
|
}
|
|
9140
9178
|
|
|
@@ -9150,12 +9188,12 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9150
9188
|
}, {
|
|
9151
9189
|
key: "unmuteUser",
|
|
9152
9190
|
value: function () {
|
|
9153
|
-
var _unmuteUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
9154
|
-
return _regeneratorRuntime.wrap(function
|
|
9191
|
+
var _unmuteUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee41(targetID, currentUserID) {
|
|
9192
|
+
return _regeneratorRuntime.wrap(function _callee41$(_context41) {
|
|
9155
9193
|
while (1) {
|
|
9156
|
-
switch (
|
|
9194
|
+
switch (_context41.prev = _context41.next) {
|
|
9157
9195
|
case 0:
|
|
9158
|
-
|
|
9196
|
+
_context41.next = 2;
|
|
9159
9197
|
return this.post(this.baseURL + '/moderation/unmute', _objectSpread({
|
|
9160
9198
|
target_id: targetID
|
|
9161
9199
|
}, currentUserID ? {
|
|
@@ -9163,17 +9201,17 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9163
9201
|
} : {}));
|
|
9164
9202
|
|
|
9165
9203
|
case 2:
|
|
9166
|
-
return
|
|
9204
|
+
return _context41.abrupt("return", _context41.sent);
|
|
9167
9205
|
|
|
9168
9206
|
case 3:
|
|
9169
9207
|
case "end":
|
|
9170
|
-
return
|
|
9208
|
+
return _context41.stop();
|
|
9171
9209
|
}
|
|
9172
9210
|
}
|
|
9173
|
-
},
|
|
9211
|
+
}, _callee41, this);
|
|
9174
9212
|
}));
|
|
9175
9213
|
|
|
9176
|
-
function unmuteUser(
|
|
9214
|
+
function unmuteUser(_x55, _x56) {
|
|
9177
9215
|
return _unmuteUser.apply(this, arguments);
|
|
9178
9216
|
}
|
|
9179
9217
|
|
|
@@ -9208,31 +9246,31 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9208
9246
|
}, {
|
|
9209
9247
|
key: "flagMessage",
|
|
9210
9248
|
value: function () {
|
|
9211
|
-
var _flagMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
9249
|
+
var _flagMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee42(targetMessageID) {
|
|
9212
9250
|
var options,
|
|
9213
|
-
|
|
9214
|
-
return _regeneratorRuntime.wrap(function
|
|
9251
|
+
_args42 = arguments;
|
|
9252
|
+
return _regeneratorRuntime.wrap(function _callee42$(_context42) {
|
|
9215
9253
|
while (1) {
|
|
9216
|
-
switch (
|
|
9254
|
+
switch (_context42.prev = _context42.next) {
|
|
9217
9255
|
case 0:
|
|
9218
|
-
options =
|
|
9219
|
-
|
|
9256
|
+
options = _args42.length > 1 && _args42[1] !== undefined ? _args42[1] : {};
|
|
9257
|
+
_context42.next = 3;
|
|
9220
9258
|
return this.post(this.baseURL + '/moderation/flag', _objectSpread({
|
|
9221
9259
|
target_message_id: targetMessageID
|
|
9222
9260
|
}, options));
|
|
9223
9261
|
|
|
9224
9262
|
case 3:
|
|
9225
|
-
return
|
|
9263
|
+
return _context42.abrupt("return", _context42.sent);
|
|
9226
9264
|
|
|
9227
9265
|
case 4:
|
|
9228
9266
|
case "end":
|
|
9229
|
-
return
|
|
9267
|
+
return _context42.stop();
|
|
9230
9268
|
}
|
|
9231
9269
|
}
|
|
9232
|
-
},
|
|
9270
|
+
}, _callee42, this);
|
|
9233
9271
|
}));
|
|
9234
9272
|
|
|
9235
|
-
function flagMessage(
|
|
9273
|
+
function flagMessage(_x57) {
|
|
9236
9274
|
return _flagMessage.apply(this, arguments);
|
|
9237
9275
|
}
|
|
9238
9276
|
|
|
@@ -9248,31 +9286,31 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9248
9286
|
}, {
|
|
9249
9287
|
key: "flagUser",
|
|
9250
9288
|
value: function () {
|
|
9251
|
-
var _flagUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
9289
|
+
var _flagUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee43(targetID) {
|
|
9252
9290
|
var options,
|
|
9253
|
-
|
|
9254
|
-
return _regeneratorRuntime.wrap(function
|
|
9291
|
+
_args43 = arguments;
|
|
9292
|
+
return _regeneratorRuntime.wrap(function _callee43$(_context43) {
|
|
9255
9293
|
while (1) {
|
|
9256
|
-
switch (
|
|
9294
|
+
switch (_context43.prev = _context43.next) {
|
|
9257
9295
|
case 0:
|
|
9258
|
-
options =
|
|
9259
|
-
|
|
9296
|
+
options = _args43.length > 1 && _args43[1] !== undefined ? _args43[1] : {};
|
|
9297
|
+
_context43.next = 3;
|
|
9260
9298
|
return this.post(this.baseURL + '/moderation/flag', _objectSpread({
|
|
9261
9299
|
target_user_id: targetID
|
|
9262
9300
|
}, options));
|
|
9263
9301
|
|
|
9264
9302
|
case 3:
|
|
9265
|
-
return
|
|
9303
|
+
return _context43.abrupt("return", _context43.sent);
|
|
9266
9304
|
|
|
9267
9305
|
case 4:
|
|
9268
9306
|
case "end":
|
|
9269
|
-
return
|
|
9307
|
+
return _context43.stop();
|
|
9270
9308
|
}
|
|
9271
9309
|
}
|
|
9272
|
-
},
|
|
9310
|
+
}, _callee43, this);
|
|
9273
9311
|
}));
|
|
9274
9312
|
|
|
9275
|
-
function flagUser(
|
|
9313
|
+
function flagUser(_x58) {
|
|
9276
9314
|
return _flagUser.apply(this, arguments);
|
|
9277
9315
|
}
|
|
9278
9316
|
|
|
@@ -9288,31 +9326,31 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9288
9326
|
}, {
|
|
9289
9327
|
key: "unflagMessage",
|
|
9290
9328
|
value: function () {
|
|
9291
|
-
var _unflagMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
9329
|
+
var _unflagMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee44(targetMessageID) {
|
|
9292
9330
|
var options,
|
|
9293
|
-
|
|
9294
|
-
return _regeneratorRuntime.wrap(function
|
|
9331
|
+
_args44 = arguments;
|
|
9332
|
+
return _regeneratorRuntime.wrap(function _callee44$(_context44) {
|
|
9295
9333
|
while (1) {
|
|
9296
|
-
switch (
|
|
9334
|
+
switch (_context44.prev = _context44.next) {
|
|
9297
9335
|
case 0:
|
|
9298
|
-
options =
|
|
9299
|
-
|
|
9336
|
+
options = _args44.length > 1 && _args44[1] !== undefined ? _args44[1] : {};
|
|
9337
|
+
_context44.next = 3;
|
|
9300
9338
|
return this.post(this.baseURL + '/moderation/unflag', _objectSpread({
|
|
9301
9339
|
target_message_id: targetMessageID
|
|
9302
9340
|
}, options));
|
|
9303
9341
|
|
|
9304
9342
|
case 3:
|
|
9305
|
-
return
|
|
9343
|
+
return _context44.abrupt("return", _context44.sent);
|
|
9306
9344
|
|
|
9307
9345
|
case 4:
|
|
9308
9346
|
case "end":
|
|
9309
|
-
return
|
|
9347
|
+
return _context44.stop();
|
|
9310
9348
|
}
|
|
9311
9349
|
}
|
|
9312
|
-
},
|
|
9350
|
+
}, _callee44, this);
|
|
9313
9351
|
}));
|
|
9314
9352
|
|
|
9315
|
-
function unflagMessage(
|
|
9353
|
+
function unflagMessage(_x59) {
|
|
9316
9354
|
return _unflagMessage.apply(this, arguments);
|
|
9317
9355
|
}
|
|
9318
9356
|
|
|
@@ -9328,31 +9366,31 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9328
9366
|
}, {
|
|
9329
9367
|
key: "unflagUser",
|
|
9330
9368
|
value: function () {
|
|
9331
|
-
var _unflagUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
9369
|
+
var _unflagUser = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee45(targetID) {
|
|
9332
9370
|
var options,
|
|
9333
|
-
|
|
9334
|
-
return _regeneratorRuntime.wrap(function
|
|
9371
|
+
_args45 = arguments;
|
|
9372
|
+
return _regeneratorRuntime.wrap(function _callee45$(_context45) {
|
|
9335
9373
|
while (1) {
|
|
9336
|
-
switch (
|
|
9374
|
+
switch (_context45.prev = _context45.next) {
|
|
9337
9375
|
case 0:
|
|
9338
|
-
options =
|
|
9339
|
-
|
|
9376
|
+
options = _args45.length > 1 && _args45[1] !== undefined ? _args45[1] : {};
|
|
9377
|
+
_context45.next = 3;
|
|
9340
9378
|
return this.post(this.baseURL + '/moderation/unflag', _objectSpread({
|
|
9341
9379
|
target_user_id: targetID
|
|
9342
9380
|
}, options));
|
|
9343
9381
|
|
|
9344
9382
|
case 3:
|
|
9345
|
-
return
|
|
9383
|
+
return _context45.abrupt("return", _context45.sent);
|
|
9346
9384
|
|
|
9347
9385
|
case 4:
|
|
9348
9386
|
case "end":
|
|
9349
|
-
return
|
|
9387
|
+
return _context45.stop();
|
|
9350
9388
|
}
|
|
9351
9389
|
}
|
|
9352
|
-
},
|
|
9390
|
+
}, _callee45, this);
|
|
9353
9391
|
}));
|
|
9354
9392
|
|
|
9355
|
-
function unflagUser(
|
|
9393
|
+
function unflagUser(_x60) {
|
|
9356
9394
|
return _unflagUser.apply(this, arguments);
|
|
9357
9395
|
}
|
|
9358
9396
|
|
|
@@ -9369,29 +9407,29 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9369
9407
|
}, {
|
|
9370
9408
|
key: "getCallToken",
|
|
9371
9409
|
value: function () {
|
|
9372
|
-
var _getCallToken = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
9410
|
+
var _getCallToken = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee46(callID) {
|
|
9373
9411
|
var options,
|
|
9374
|
-
|
|
9375
|
-
return _regeneratorRuntime.wrap(function
|
|
9412
|
+
_args46 = arguments;
|
|
9413
|
+
return _regeneratorRuntime.wrap(function _callee46$(_context46) {
|
|
9376
9414
|
while (1) {
|
|
9377
|
-
switch (
|
|
9415
|
+
switch (_context46.prev = _context46.next) {
|
|
9378
9416
|
case 0:
|
|
9379
|
-
options =
|
|
9380
|
-
|
|
9417
|
+
options = _args46.length > 1 && _args46[1] !== undefined ? _args46[1] : {};
|
|
9418
|
+
_context46.next = 3;
|
|
9381
9419
|
return this.post(this.baseURL + "/calls/".concat(callID), _objectSpread({}, options));
|
|
9382
9420
|
|
|
9383
9421
|
case 3:
|
|
9384
|
-
return
|
|
9422
|
+
return _context46.abrupt("return", _context46.sent);
|
|
9385
9423
|
|
|
9386
9424
|
case 4:
|
|
9387
9425
|
case "end":
|
|
9388
|
-
return
|
|
9426
|
+
return _context46.stop();
|
|
9389
9427
|
}
|
|
9390
9428
|
}
|
|
9391
|
-
},
|
|
9429
|
+
}, _callee46, this);
|
|
9392
9430
|
}));
|
|
9393
9431
|
|
|
9394
|
-
function getCallToken(
|
|
9432
|
+
function getCallToken(_x61) {
|
|
9395
9433
|
return _getCallToken.apply(this, arguments);
|
|
9396
9434
|
}
|
|
9397
9435
|
|
|
@@ -9414,30 +9452,30 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9414
9452
|
}, {
|
|
9415
9453
|
key: "_queryFlags",
|
|
9416
9454
|
value: function () {
|
|
9417
|
-
var _queryFlags2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
9455
|
+
var _queryFlags2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee47() {
|
|
9418
9456
|
var filterConditions,
|
|
9419
9457
|
options,
|
|
9420
|
-
|
|
9421
|
-
return _regeneratorRuntime.wrap(function
|
|
9458
|
+
_args47 = arguments;
|
|
9459
|
+
return _regeneratorRuntime.wrap(function _callee47$(_context47) {
|
|
9422
9460
|
while (1) {
|
|
9423
|
-
switch (
|
|
9461
|
+
switch (_context47.prev = _context47.next) {
|
|
9424
9462
|
case 0:
|
|
9425
|
-
filterConditions =
|
|
9426
|
-
options =
|
|
9427
|
-
|
|
9463
|
+
filterConditions = _args47.length > 0 && _args47[0] !== undefined ? _args47[0] : {};
|
|
9464
|
+
options = _args47.length > 1 && _args47[1] !== undefined ? _args47[1] : {};
|
|
9465
|
+
_context47.next = 4;
|
|
9428
9466
|
return this.post(this.baseURL + '/moderation/flags', _objectSpread({
|
|
9429
9467
|
filter_conditions: filterConditions
|
|
9430
9468
|
}, options));
|
|
9431
9469
|
|
|
9432
9470
|
case 4:
|
|
9433
|
-
return
|
|
9471
|
+
return _context47.abrupt("return", _context47.sent);
|
|
9434
9472
|
|
|
9435
9473
|
case 5:
|
|
9436
9474
|
case "end":
|
|
9437
|
-
return
|
|
9475
|
+
return _context47.stop();
|
|
9438
9476
|
}
|
|
9439
9477
|
}
|
|
9440
|
-
},
|
|
9478
|
+
}, _callee47, this);
|
|
9441
9479
|
}));
|
|
9442
9480
|
|
|
9443
9481
|
function _queryFlags() {
|
|
@@ -9463,30 +9501,30 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9463
9501
|
}, {
|
|
9464
9502
|
key: "_queryFlagReports",
|
|
9465
9503
|
value: function () {
|
|
9466
|
-
var _queryFlagReports2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
9504
|
+
var _queryFlagReports2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee48() {
|
|
9467
9505
|
var filterConditions,
|
|
9468
9506
|
options,
|
|
9469
|
-
|
|
9470
|
-
return _regeneratorRuntime.wrap(function
|
|
9507
|
+
_args48 = arguments;
|
|
9508
|
+
return _regeneratorRuntime.wrap(function _callee48$(_context48) {
|
|
9471
9509
|
while (1) {
|
|
9472
|
-
switch (
|
|
9510
|
+
switch (_context48.prev = _context48.next) {
|
|
9473
9511
|
case 0:
|
|
9474
|
-
filterConditions =
|
|
9475
|
-
options =
|
|
9476
|
-
|
|
9512
|
+
filterConditions = _args48.length > 0 && _args48[0] !== undefined ? _args48[0] : {};
|
|
9513
|
+
options = _args48.length > 1 && _args48[1] !== undefined ? _args48[1] : {};
|
|
9514
|
+
_context48.next = 4;
|
|
9477
9515
|
return this.post(this.baseURL + '/moderation/reports', _objectSpread({
|
|
9478
9516
|
filter_conditions: filterConditions
|
|
9479
9517
|
}, options));
|
|
9480
9518
|
|
|
9481
9519
|
case 4:
|
|
9482
|
-
return
|
|
9520
|
+
return _context48.abrupt("return", _context48.sent);
|
|
9483
9521
|
|
|
9484
9522
|
case 5:
|
|
9485
9523
|
case "end":
|
|
9486
|
-
return
|
|
9524
|
+
return _context48.stop();
|
|
9487
9525
|
}
|
|
9488
9526
|
}
|
|
9489
|
-
},
|
|
9527
|
+
}, _callee48, this);
|
|
9490
9528
|
}));
|
|
9491
9529
|
|
|
9492
9530
|
function _queryFlagReports() {
|
|
@@ -9513,31 +9551,31 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9513
9551
|
}, {
|
|
9514
9552
|
key: "_reviewFlagReport",
|
|
9515
9553
|
value: function () {
|
|
9516
|
-
var _reviewFlagReport2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
9554
|
+
var _reviewFlagReport2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee49(id, reviewResult) {
|
|
9517
9555
|
var options,
|
|
9518
|
-
|
|
9519
|
-
return _regeneratorRuntime.wrap(function
|
|
9556
|
+
_args49 = arguments;
|
|
9557
|
+
return _regeneratorRuntime.wrap(function _callee49$(_context49) {
|
|
9520
9558
|
while (1) {
|
|
9521
|
-
switch (
|
|
9559
|
+
switch (_context49.prev = _context49.next) {
|
|
9522
9560
|
case 0:
|
|
9523
|
-
options =
|
|
9524
|
-
|
|
9561
|
+
options = _args49.length > 2 && _args49[2] !== undefined ? _args49[2] : {};
|
|
9562
|
+
_context49.next = 3;
|
|
9525
9563
|
return this.patch(this.baseURL + "/moderation/reports/".concat(id), _objectSpread({
|
|
9526
9564
|
review_result: reviewResult
|
|
9527
9565
|
}, options));
|
|
9528
9566
|
|
|
9529
9567
|
case 3:
|
|
9530
|
-
return
|
|
9568
|
+
return _context49.abrupt("return", _context49.sent);
|
|
9531
9569
|
|
|
9532
9570
|
case 4:
|
|
9533
9571
|
case "end":
|
|
9534
|
-
return
|
|
9572
|
+
return _context49.stop();
|
|
9535
9573
|
}
|
|
9536
9574
|
}
|
|
9537
|
-
},
|
|
9575
|
+
}, _callee49, this);
|
|
9538
9576
|
}));
|
|
9539
9577
|
|
|
9540
|
-
function _reviewFlagReport(
|
|
9578
|
+
function _reviewFlagReport(_x62, _x63) {
|
|
9541
9579
|
return _reviewFlagReport2.apply(this, arguments);
|
|
9542
9580
|
}
|
|
9543
9581
|
|
|
@@ -9559,31 +9597,31 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9559
9597
|
}, {
|
|
9560
9598
|
key: "_unblockMessage",
|
|
9561
9599
|
value: function () {
|
|
9562
|
-
var _unblockMessage2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
9600
|
+
var _unblockMessage2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee50(targetMessageID) {
|
|
9563
9601
|
var options,
|
|
9564
|
-
|
|
9565
|
-
return _regeneratorRuntime.wrap(function
|
|
9602
|
+
_args50 = arguments;
|
|
9603
|
+
return _regeneratorRuntime.wrap(function _callee50$(_context50) {
|
|
9566
9604
|
while (1) {
|
|
9567
|
-
switch (
|
|
9605
|
+
switch (_context50.prev = _context50.next) {
|
|
9568
9606
|
case 0:
|
|
9569
|
-
options =
|
|
9570
|
-
|
|
9607
|
+
options = _args50.length > 1 && _args50[1] !== undefined ? _args50[1] : {};
|
|
9608
|
+
_context50.next = 3;
|
|
9571
9609
|
return this.post(this.baseURL + '/moderation/unblock_message', _objectSpread({
|
|
9572
9610
|
target_message_id: targetMessageID
|
|
9573
9611
|
}, options));
|
|
9574
9612
|
|
|
9575
9613
|
case 3:
|
|
9576
|
-
return
|
|
9614
|
+
return _context50.abrupt("return", _context50.sent);
|
|
9577
9615
|
|
|
9578
9616
|
case 4:
|
|
9579
9617
|
case "end":
|
|
9580
|
-
return
|
|
9618
|
+
return _context50.stop();
|
|
9581
9619
|
}
|
|
9582
9620
|
}
|
|
9583
|
-
},
|
|
9621
|
+
}, _callee50, this);
|
|
9584
9622
|
}));
|
|
9585
9623
|
|
|
9586
|
-
function _unblockMessage(
|
|
9624
|
+
function _unblockMessage(_x64) {
|
|
9587
9625
|
return _unblockMessage2.apply(this, arguments);
|
|
9588
9626
|
}
|
|
9589
9627
|
|
|
@@ -9610,23 +9648,23 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9610
9648
|
* @return {Promise<APIResponse>}
|
|
9611
9649
|
*/
|
|
9612
9650
|
function () {
|
|
9613
|
-
var _markChannelsRead = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
9651
|
+
var _markChannelsRead = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee51() {
|
|
9614
9652
|
var data,
|
|
9615
|
-
|
|
9616
|
-
return _regeneratorRuntime.wrap(function
|
|
9653
|
+
_args51 = arguments;
|
|
9654
|
+
return _regeneratorRuntime.wrap(function _callee51$(_context51) {
|
|
9617
9655
|
while (1) {
|
|
9618
|
-
switch (
|
|
9656
|
+
switch (_context51.prev = _context51.next) {
|
|
9619
9657
|
case 0:
|
|
9620
|
-
data =
|
|
9621
|
-
|
|
9658
|
+
data = _args51.length > 0 && _args51[0] !== undefined ? _args51[0] : {};
|
|
9659
|
+
_context51.next = 3;
|
|
9622
9660
|
return this.post(this.baseURL + '/channels/read', _objectSpread({}, data));
|
|
9623
9661
|
|
|
9624
9662
|
case 3:
|
|
9625
9663
|
case "end":
|
|
9626
|
-
return
|
|
9664
|
+
return _context51.stop();
|
|
9627
9665
|
}
|
|
9628
9666
|
}
|
|
9629
|
-
},
|
|
9667
|
+
}, _callee51, this);
|
|
9630
9668
|
}));
|
|
9631
9669
|
|
|
9632
9670
|
function markChannelsRead() {
|
|
@@ -9701,28 +9739,28 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9701
9739
|
}, {
|
|
9702
9740
|
key: "translateMessage",
|
|
9703
9741
|
value: function () {
|
|
9704
|
-
var _translateMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
9705
|
-
return _regeneratorRuntime.wrap(function
|
|
9742
|
+
var _translateMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee52(messageId, language) {
|
|
9743
|
+
return _regeneratorRuntime.wrap(function _callee52$(_context52) {
|
|
9706
9744
|
while (1) {
|
|
9707
|
-
switch (
|
|
9745
|
+
switch (_context52.prev = _context52.next) {
|
|
9708
9746
|
case 0:
|
|
9709
|
-
|
|
9747
|
+
_context52.next = 2;
|
|
9710
9748
|
return this.post(this.baseURL + "/messages/".concat(messageId, "/translate"), {
|
|
9711
9749
|
language: language
|
|
9712
9750
|
});
|
|
9713
9751
|
|
|
9714
9752
|
case 2:
|
|
9715
|
-
return
|
|
9753
|
+
return _context52.abrupt("return", _context52.sent);
|
|
9716
9754
|
|
|
9717
9755
|
case 3:
|
|
9718
9756
|
case "end":
|
|
9719
|
-
return
|
|
9757
|
+
return _context52.stop();
|
|
9720
9758
|
}
|
|
9721
9759
|
}
|
|
9722
|
-
},
|
|
9760
|
+
}, _callee52, this);
|
|
9723
9761
|
}));
|
|
9724
9762
|
|
|
9725
|
-
function translateMessage(
|
|
9763
|
+
function translateMessage(_x65, _x66) {
|
|
9726
9764
|
return _translateMessage.apply(this, arguments);
|
|
9727
9765
|
}
|
|
9728
9766
|
|
|
@@ -9824,14 +9862,14 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9824
9862
|
}, {
|
|
9825
9863
|
key: "updateMessage",
|
|
9826
9864
|
value: function () {
|
|
9827
|
-
var _updateMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
9865
|
+
var _updateMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee53(message, userId, options) {
|
|
9828
9866
|
var clonedMessage, reservedMessageFields;
|
|
9829
|
-
return _regeneratorRuntime.wrap(function
|
|
9867
|
+
return _regeneratorRuntime.wrap(function _callee53$(_context53) {
|
|
9830
9868
|
while (1) {
|
|
9831
|
-
switch (
|
|
9869
|
+
switch (_context53.prev = _context53.next) {
|
|
9832
9870
|
case 0:
|
|
9833
9871
|
if (message.id) {
|
|
9834
|
-
|
|
9872
|
+
_context53.next = 2;
|
|
9835
9873
|
break;
|
|
9836
9874
|
}
|
|
9837
9875
|
|
|
@@ -9868,23 +9906,23 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9868
9906
|
});
|
|
9869
9907
|
}
|
|
9870
9908
|
|
|
9871
|
-
|
|
9909
|
+
_context53.next = 10;
|
|
9872
9910
|
return this.post(this.baseURL + "/messages/".concat(message.id), _objectSpread({
|
|
9873
9911
|
message: clonedMessage
|
|
9874
9912
|
}, options));
|
|
9875
9913
|
|
|
9876
9914
|
case 10:
|
|
9877
|
-
return
|
|
9915
|
+
return _context53.abrupt("return", _context53.sent);
|
|
9878
9916
|
|
|
9879
9917
|
case 11:
|
|
9880
9918
|
case "end":
|
|
9881
|
-
return
|
|
9919
|
+
return _context53.stop();
|
|
9882
9920
|
}
|
|
9883
9921
|
}
|
|
9884
|
-
},
|
|
9922
|
+
}, _callee53, this);
|
|
9885
9923
|
}));
|
|
9886
9924
|
|
|
9887
|
-
function updateMessage(
|
|
9925
|
+
function updateMessage(_x67, _x68, _x69) {
|
|
9888
9926
|
return _updateMessage.apply(this, arguments);
|
|
9889
9927
|
}
|
|
9890
9928
|
|
|
@@ -9907,14 +9945,14 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9907
9945
|
}, {
|
|
9908
9946
|
key: "partialUpdateMessage",
|
|
9909
9947
|
value: function () {
|
|
9910
|
-
var _partialUpdateMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
9948
|
+
var _partialUpdateMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee54(id, partialMessageObject, userId, options) {
|
|
9911
9949
|
var user;
|
|
9912
|
-
return _regeneratorRuntime.wrap(function
|
|
9950
|
+
return _regeneratorRuntime.wrap(function _callee54$(_context54) {
|
|
9913
9951
|
while (1) {
|
|
9914
|
-
switch (
|
|
9952
|
+
switch (_context54.prev = _context54.next) {
|
|
9915
9953
|
case 0:
|
|
9916
9954
|
if (id) {
|
|
9917
|
-
|
|
9955
|
+
_context54.next = 2;
|
|
9918
9956
|
break;
|
|
9919
9957
|
}
|
|
9920
9958
|
|
|
@@ -9929,23 +9967,23 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9929
9967
|
};
|
|
9930
9968
|
}
|
|
9931
9969
|
|
|
9932
|
-
|
|
9970
|
+
_context54.next = 6;
|
|
9933
9971
|
return this.put(this.baseURL + "/messages/".concat(id), _objectSpread(_objectSpread(_objectSpread({}, partialMessageObject), options), {}, {
|
|
9934
9972
|
user: user
|
|
9935
9973
|
}));
|
|
9936
9974
|
|
|
9937
9975
|
case 6:
|
|
9938
|
-
return
|
|
9976
|
+
return _context54.abrupt("return", _context54.sent);
|
|
9939
9977
|
|
|
9940
9978
|
case 7:
|
|
9941
9979
|
case "end":
|
|
9942
|
-
return
|
|
9980
|
+
return _context54.stop();
|
|
9943
9981
|
}
|
|
9944
9982
|
}
|
|
9945
|
-
},
|
|
9983
|
+
}, _callee54, this);
|
|
9946
9984
|
}));
|
|
9947
9985
|
|
|
9948
|
-
function partialUpdateMessage(
|
|
9986
|
+
function partialUpdateMessage(_x70, _x71, _x72, _x73) {
|
|
9949
9987
|
return _partialUpdateMessage.apply(this, arguments);
|
|
9950
9988
|
}
|
|
9951
9989
|
|
|
@@ -9954,11 +9992,11 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9954
9992
|
}, {
|
|
9955
9993
|
key: "deleteMessage",
|
|
9956
9994
|
value: function () {
|
|
9957
|
-
var _deleteMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
9995
|
+
var _deleteMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee55(messageID, hardDelete) {
|
|
9958
9996
|
var params;
|
|
9959
|
-
return _regeneratorRuntime.wrap(function
|
|
9997
|
+
return _regeneratorRuntime.wrap(function _callee55$(_context55) {
|
|
9960
9998
|
while (1) {
|
|
9961
|
-
switch (
|
|
9999
|
+
switch (_context55.prev = _context55.next) {
|
|
9962
10000
|
case 0:
|
|
9963
10001
|
params = {};
|
|
9964
10002
|
|
|
@@ -9968,21 +10006,21 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9968
10006
|
};
|
|
9969
10007
|
}
|
|
9970
10008
|
|
|
9971
|
-
|
|
10009
|
+
_context55.next = 4;
|
|
9972
10010
|
return this.delete(this.baseURL + "/messages/".concat(messageID), params);
|
|
9973
10011
|
|
|
9974
10012
|
case 4:
|
|
9975
|
-
return
|
|
10013
|
+
return _context55.abrupt("return", _context55.sent);
|
|
9976
10014
|
|
|
9977
10015
|
case 5:
|
|
9978
10016
|
case "end":
|
|
9979
|
-
return
|
|
10017
|
+
return _context55.stop();
|
|
9980
10018
|
}
|
|
9981
10019
|
}
|
|
9982
|
-
},
|
|
10020
|
+
}, _callee55, this);
|
|
9983
10021
|
}));
|
|
9984
10022
|
|
|
9985
|
-
function deleteMessage(
|
|
10023
|
+
function deleteMessage(_x74, _x75) {
|
|
9986
10024
|
return _deleteMessage.apply(this, arguments);
|
|
9987
10025
|
}
|
|
9988
10026
|
|
|
@@ -9991,26 +10029,26 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
9991
10029
|
}, {
|
|
9992
10030
|
key: "getMessage",
|
|
9993
10031
|
value: function () {
|
|
9994
|
-
var _getMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
9995
|
-
return _regeneratorRuntime.wrap(function
|
|
10032
|
+
var _getMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee56(messageID) {
|
|
10033
|
+
return _regeneratorRuntime.wrap(function _callee56$(_context56) {
|
|
9996
10034
|
while (1) {
|
|
9997
|
-
switch (
|
|
10035
|
+
switch (_context56.prev = _context56.next) {
|
|
9998
10036
|
case 0:
|
|
9999
|
-
|
|
10037
|
+
_context56.next = 2;
|
|
10000
10038
|
return this.get(this.baseURL + "/messages/".concat(messageID));
|
|
10001
10039
|
|
|
10002
10040
|
case 2:
|
|
10003
|
-
return
|
|
10041
|
+
return _context56.abrupt("return", _context56.sent);
|
|
10004
10042
|
|
|
10005
10043
|
case 3:
|
|
10006
10044
|
case "end":
|
|
10007
|
-
return
|
|
10045
|
+
return _context56.stop();
|
|
10008
10046
|
}
|
|
10009
10047
|
}
|
|
10010
|
-
},
|
|
10048
|
+
}, _callee56, this);
|
|
10011
10049
|
}));
|
|
10012
10050
|
|
|
10013
|
-
function getMessage(
|
|
10051
|
+
function getMessage(_x76) {
|
|
10014
10052
|
return _getMessage.apply(this, arguments);
|
|
10015
10053
|
}
|
|
10016
10054
|
|
|
@@ -10019,7 +10057,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10019
10057
|
}, {
|
|
10020
10058
|
key: "getUserAgent",
|
|
10021
10059
|
value: function getUserAgent() {
|
|
10022
|
-
return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.
|
|
10060
|
+
return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.8.0");
|
|
10023
10061
|
}
|
|
10024
10062
|
}, {
|
|
10025
10063
|
key: "setUserAgent",
|
|
@@ -10238,28 +10276,28 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10238
10276
|
}, {
|
|
10239
10277
|
key: "sendUserCustomEvent",
|
|
10240
10278
|
value: function () {
|
|
10241
|
-
var _sendUserCustomEvent = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10242
|
-
return _regeneratorRuntime.wrap(function
|
|
10279
|
+
var _sendUserCustomEvent = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee57(targetUserID, event) {
|
|
10280
|
+
return _regeneratorRuntime.wrap(function _callee57$(_context57) {
|
|
10243
10281
|
while (1) {
|
|
10244
|
-
switch (
|
|
10282
|
+
switch (_context57.prev = _context57.next) {
|
|
10245
10283
|
case 0:
|
|
10246
|
-
|
|
10284
|
+
_context57.next = 2;
|
|
10247
10285
|
return this.post("".concat(this.baseURL, "/users/").concat(targetUserID, "/event"), {
|
|
10248
10286
|
event: event
|
|
10249
10287
|
});
|
|
10250
10288
|
|
|
10251
10289
|
case 2:
|
|
10252
|
-
return
|
|
10290
|
+
return _context57.abrupt("return", _context57.sent);
|
|
10253
10291
|
|
|
10254
10292
|
case 3:
|
|
10255
10293
|
case "end":
|
|
10256
|
-
return
|
|
10294
|
+
return _context57.stop();
|
|
10257
10295
|
}
|
|
10258
10296
|
}
|
|
10259
|
-
},
|
|
10297
|
+
}, _callee57, this);
|
|
10260
10298
|
}));
|
|
10261
10299
|
|
|
10262
|
-
function sendUserCustomEvent(
|
|
10300
|
+
function sendUserCustomEvent(_x77, _x78) {
|
|
10263
10301
|
return _sendUserCustomEvent.apply(this, arguments);
|
|
10264
10302
|
}
|
|
10265
10303
|
|
|
@@ -10327,32 +10365,32 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10327
10365
|
}, {
|
|
10328
10366
|
key: "createSegment",
|
|
10329
10367
|
value: function () {
|
|
10330
|
-
var _createSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10368
|
+
var _createSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee58(params) {
|
|
10331
10369
|
var _yield$this$post, segment;
|
|
10332
10370
|
|
|
10333
|
-
return _regeneratorRuntime.wrap(function
|
|
10371
|
+
return _regeneratorRuntime.wrap(function _callee58$(_context58) {
|
|
10334
10372
|
while (1) {
|
|
10335
|
-
switch (
|
|
10373
|
+
switch (_context58.prev = _context58.next) {
|
|
10336
10374
|
case 0:
|
|
10337
|
-
|
|
10375
|
+
_context58.next = 2;
|
|
10338
10376
|
return this.post(this.baseURL + "/segments", {
|
|
10339
10377
|
segment: params
|
|
10340
10378
|
});
|
|
10341
10379
|
|
|
10342
10380
|
case 2:
|
|
10343
|
-
_yield$this$post =
|
|
10381
|
+
_yield$this$post = _context58.sent;
|
|
10344
10382
|
segment = _yield$this$post.segment;
|
|
10345
|
-
return
|
|
10383
|
+
return _context58.abrupt("return", segment);
|
|
10346
10384
|
|
|
10347
10385
|
case 5:
|
|
10348
10386
|
case "end":
|
|
10349
|
-
return
|
|
10387
|
+
return _context58.stop();
|
|
10350
10388
|
}
|
|
10351
10389
|
}
|
|
10352
|
-
},
|
|
10390
|
+
}, _callee58, this);
|
|
10353
10391
|
}));
|
|
10354
10392
|
|
|
10355
|
-
function createSegment(
|
|
10393
|
+
function createSegment(_x79) {
|
|
10356
10394
|
return _createSegment.apply(this, arguments);
|
|
10357
10395
|
}
|
|
10358
10396
|
|
|
@@ -10368,15 +10406,15 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10368
10406
|
}, {
|
|
10369
10407
|
key: "querySegments",
|
|
10370
10408
|
value: function () {
|
|
10371
|
-
var _querySegments = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10409
|
+
var _querySegments = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee59(filters) {
|
|
10372
10410
|
var options,
|
|
10373
|
-
|
|
10374
|
-
return _regeneratorRuntime.wrap(function
|
|
10411
|
+
_args59 = arguments;
|
|
10412
|
+
return _regeneratorRuntime.wrap(function _callee59$(_context59) {
|
|
10375
10413
|
while (1) {
|
|
10376
|
-
switch (
|
|
10414
|
+
switch (_context59.prev = _context59.next) {
|
|
10377
10415
|
case 0:
|
|
10378
|
-
options =
|
|
10379
|
-
|
|
10416
|
+
options = _args59.length > 1 && _args59[1] !== undefined ? _args59[1] : {};
|
|
10417
|
+
_context59.next = 3;
|
|
10380
10418
|
return this.get(this.baseURL + "/segments", {
|
|
10381
10419
|
payload: _objectSpread({
|
|
10382
10420
|
filter_conditions: filters
|
|
@@ -10384,17 +10422,17 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10384
10422
|
});
|
|
10385
10423
|
|
|
10386
10424
|
case 3:
|
|
10387
|
-
return
|
|
10425
|
+
return _context59.abrupt("return", _context59.sent);
|
|
10388
10426
|
|
|
10389
10427
|
case 4:
|
|
10390
10428
|
case "end":
|
|
10391
|
-
return
|
|
10429
|
+
return _context59.stop();
|
|
10392
10430
|
}
|
|
10393
10431
|
}
|
|
10394
|
-
},
|
|
10432
|
+
}, _callee59, this);
|
|
10395
10433
|
}));
|
|
10396
10434
|
|
|
10397
|
-
function querySegments(
|
|
10435
|
+
function querySegments(_x80) {
|
|
10398
10436
|
return _querySegments.apply(this, arguments);
|
|
10399
10437
|
}
|
|
10400
10438
|
|
|
@@ -10412,32 +10450,32 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10412
10450
|
}, {
|
|
10413
10451
|
key: "updateSegment",
|
|
10414
10452
|
value: function () {
|
|
10415
|
-
var _updateSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10453
|
+
var _updateSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee60(id, params) {
|
|
10416
10454
|
var _yield$this$put, segment;
|
|
10417
10455
|
|
|
10418
|
-
return _regeneratorRuntime.wrap(function
|
|
10456
|
+
return _regeneratorRuntime.wrap(function _callee60$(_context60) {
|
|
10419
10457
|
while (1) {
|
|
10420
|
-
switch (
|
|
10458
|
+
switch (_context60.prev = _context60.next) {
|
|
10421
10459
|
case 0:
|
|
10422
|
-
|
|
10460
|
+
_context60.next = 2;
|
|
10423
10461
|
return this.put(this.baseURL + "/segments/".concat(id), {
|
|
10424
10462
|
segment: params
|
|
10425
10463
|
});
|
|
10426
10464
|
|
|
10427
10465
|
case 2:
|
|
10428
|
-
_yield$this$put =
|
|
10466
|
+
_yield$this$put = _context60.sent;
|
|
10429
10467
|
segment = _yield$this$put.segment;
|
|
10430
|
-
return
|
|
10468
|
+
return _context60.abrupt("return", segment);
|
|
10431
10469
|
|
|
10432
10470
|
case 5:
|
|
10433
10471
|
case "end":
|
|
10434
|
-
return
|
|
10472
|
+
return _context60.stop();
|
|
10435
10473
|
}
|
|
10436
10474
|
}
|
|
10437
|
-
},
|
|
10475
|
+
}, _callee60, this);
|
|
10438
10476
|
}));
|
|
10439
10477
|
|
|
10440
|
-
function updateSegment(
|
|
10478
|
+
function updateSegment(_x81, _x82) {
|
|
10441
10479
|
return _updateSegment.apply(this, arguments);
|
|
10442
10480
|
}
|
|
10443
10481
|
|
|
@@ -10454,22 +10492,22 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10454
10492
|
}, {
|
|
10455
10493
|
key: "deleteSegment",
|
|
10456
10494
|
value: function () {
|
|
10457
|
-
var _deleteSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10458
|
-
return _regeneratorRuntime.wrap(function
|
|
10495
|
+
var _deleteSegment = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee61(id) {
|
|
10496
|
+
return _regeneratorRuntime.wrap(function _callee61$(_context61) {
|
|
10459
10497
|
while (1) {
|
|
10460
|
-
switch (
|
|
10498
|
+
switch (_context61.prev = _context61.next) {
|
|
10461
10499
|
case 0:
|
|
10462
|
-
return
|
|
10500
|
+
return _context61.abrupt("return", this.delete(this.baseURL + "/segments/".concat(id)));
|
|
10463
10501
|
|
|
10464
10502
|
case 1:
|
|
10465
10503
|
case "end":
|
|
10466
|
-
return
|
|
10504
|
+
return _context61.stop();
|
|
10467
10505
|
}
|
|
10468
10506
|
}
|
|
10469
|
-
},
|
|
10507
|
+
}, _callee61, this);
|
|
10470
10508
|
}));
|
|
10471
10509
|
|
|
10472
|
-
function deleteSegment(
|
|
10510
|
+
function deleteSegment(_x83) {
|
|
10473
10511
|
return _deleteSegment.apply(this, arguments);
|
|
10474
10512
|
}
|
|
10475
10513
|
|
|
@@ -10486,32 +10524,32 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10486
10524
|
}, {
|
|
10487
10525
|
key: "createCampaign",
|
|
10488
10526
|
value: function () {
|
|
10489
|
-
var _createCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10527
|
+
var _createCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee62(params) {
|
|
10490
10528
|
var _yield$this$post2, campaign;
|
|
10491
10529
|
|
|
10492
|
-
return _regeneratorRuntime.wrap(function
|
|
10530
|
+
return _regeneratorRuntime.wrap(function _callee62$(_context62) {
|
|
10493
10531
|
while (1) {
|
|
10494
|
-
switch (
|
|
10532
|
+
switch (_context62.prev = _context62.next) {
|
|
10495
10533
|
case 0:
|
|
10496
|
-
|
|
10534
|
+
_context62.next = 2;
|
|
10497
10535
|
return this.post(this.baseURL + "/campaigns", {
|
|
10498
10536
|
campaign: params
|
|
10499
10537
|
});
|
|
10500
10538
|
|
|
10501
10539
|
case 2:
|
|
10502
|
-
_yield$this$post2 =
|
|
10540
|
+
_yield$this$post2 = _context62.sent;
|
|
10503
10541
|
campaign = _yield$this$post2.campaign;
|
|
10504
|
-
return
|
|
10542
|
+
return _context62.abrupt("return", campaign);
|
|
10505
10543
|
|
|
10506
10544
|
case 5:
|
|
10507
10545
|
case "end":
|
|
10508
|
-
return
|
|
10546
|
+
return _context62.stop();
|
|
10509
10547
|
}
|
|
10510
10548
|
}
|
|
10511
|
-
},
|
|
10549
|
+
}, _callee62, this);
|
|
10512
10550
|
}));
|
|
10513
10551
|
|
|
10514
|
-
function createCampaign(
|
|
10552
|
+
function createCampaign(_x84) {
|
|
10515
10553
|
return _createCampaign.apply(this, arguments);
|
|
10516
10554
|
}
|
|
10517
10555
|
|
|
@@ -10527,15 +10565,15 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10527
10565
|
}, {
|
|
10528
10566
|
key: "queryCampaigns",
|
|
10529
10567
|
value: function () {
|
|
10530
|
-
var _queryCampaigns = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10568
|
+
var _queryCampaigns = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee63(filters) {
|
|
10531
10569
|
var options,
|
|
10532
|
-
|
|
10533
|
-
return _regeneratorRuntime.wrap(function
|
|
10570
|
+
_args63 = arguments;
|
|
10571
|
+
return _regeneratorRuntime.wrap(function _callee63$(_context63) {
|
|
10534
10572
|
while (1) {
|
|
10535
|
-
switch (
|
|
10573
|
+
switch (_context63.prev = _context63.next) {
|
|
10536
10574
|
case 0:
|
|
10537
|
-
options =
|
|
10538
|
-
|
|
10575
|
+
options = _args63.length > 1 && _args63[1] !== undefined ? _args63[1] : {};
|
|
10576
|
+
_context63.next = 3;
|
|
10539
10577
|
return this.get(this.baseURL + "/campaigns", {
|
|
10540
10578
|
payload: _objectSpread({
|
|
10541
10579
|
filter_conditions: filters
|
|
@@ -10543,17 +10581,17 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10543
10581
|
});
|
|
10544
10582
|
|
|
10545
10583
|
case 3:
|
|
10546
|
-
return
|
|
10584
|
+
return _context63.abrupt("return", _context63.sent);
|
|
10547
10585
|
|
|
10548
10586
|
case 4:
|
|
10549
10587
|
case "end":
|
|
10550
|
-
return
|
|
10588
|
+
return _context63.stop();
|
|
10551
10589
|
}
|
|
10552
10590
|
}
|
|
10553
|
-
},
|
|
10591
|
+
}, _callee63, this);
|
|
10554
10592
|
}));
|
|
10555
10593
|
|
|
10556
|
-
function queryCampaigns(
|
|
10594
|
+
function queryCampaigns(_x85) {
|
|
10557
10595
|
return _queryCampaigns.apply(this, arguments);
|
|
10558
10596
|
}
|
|
10559
10597
|
|
|
@@ -10571,32 +10609,32 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10571
10609
|
}, {
|
|
10572
10610
|
key: "updateCampaign",
|
|
10573
10611
|
value: function () {
|
|
10574
|
-
var _updateCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10612
|
+
var _updateCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee64(id, params) {
|
|
10575
10613
|
var _yield$this$put2, campaign;
|
|
10576
10614
|
|
|
10577
|
-
return _regeneratorRuntime.wrap(function
|
|
10615
|
+
return _regeneratorRuntime.wrap(function _callee64$(_context64) {
|
|
10578
10616
|
while (1) {
|
|
10579
|
-
switch (
|
|
10617
|
+
switch (_context64.prev = _context64.next) {
|
|
10580
10618
|
case 0:
|
|
10581
|
-
|
|
10619
|
+
_context64.next = 2;
|
|
10582
10620
|
return this.put(this.baseURL + "/campaigns/".concat(id), {
|
|
10583
10621
|
campaign: params
|
|
10584
10622
|
});
|
|
10585
10623
|
|
|
10586
10624
|
case 2:
|
|
10587
|
-
_yield$this$put2 =
|
|
10625
|
+
_yield$this$put2 = _context64.sent;
|
|
10588
10626
|
campaign = _yield$this$put2.campaign;
|
|
10589
|
-
return
|
|
10627
|
+
return _context64.abrupt("return", campaign);
|
|
10590
10628
|
|
|
10591
10629
|
case 5:
|
|
10592
10630
|
case "end":
|
|
10593
|
-
return
|
|
10631
|
+
return _context64.stop();
|
|
10594
10632
|
}
|
|
10595
10633
|
}
|
|
10596
|
-
},
|
|
10634
|
+
}, _callee64, this);
|
|
10597
10635
|
}));
|
|
10598
10636
|
|
|
10599
|
-
function updateCampaign(
|
|
10637
|
+
function updateCampaign(_x86, _x87) {
|
|
10600
10638
|
return _updateCampaign.apply(this, arguments);
|
|
10601
10639
|
}
|
|
10602
10640
|
|
|
@@ -10613,25 +10651,25 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10613
10651
|
}, {
|
|
10614
10652
|
key: "deleteCampaign",
|
|
10615
10653
|
value: function () {
|
|
10616
|
-
var _deleteCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10654
|
+
var _deleteCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee65(id) {
|
|
10617
10655
|
var params,
|
|
10618
|
-
|
|
10619
|
-
return _regeneratorRuntime.wrap(function
|
|
10656
|
+
_args65 = arguments;
|
|
10657
|
+
return _regeneratorRuntime.wrap(function _callee65$(_context65) {
|
|
10620
10658
|
while (1) {
|
|
10621
|
-
switch (
|
|
10659
|
+
switch (_context65.prev = _context65.next) {
|
|
10622
10660
|
case 0:
|
|
10623
|
-
params =
|
|
10624
|
-
return
|
|
10661
|
+
params = _args65.length > 1 && _args65[1] !== undefined ? _args65[1] : {};
|
|
10662
|
+
return _context65.abrupt("return", this.delete(this.baseURL + "/campaigns/".concat(id), params));
|
|
10625
10663
|
|
|
10626
10664
|
case 2:
|
|
10627
10665
|
case "end":
|
|
10628
|
-
return
|
|
10666
|
+
return _context65.stop();
|
|
10629
10667
|
}
|
|
10630
10668
|
}
|
|
10631
|
-
},
|
|
10669
|
+
}, _callee65, this);
|
|
10632
10670
|
}));
|
|
10633
10671
|
|
|
10634
|
-
function deleteCampaign(
|
|
10672
|
+
function deleteCampaign(_x88) {
|
|
10635
10673
|
return _deleteCampaign.apply(this, arguments);
|
|
10636
10674
|
}
|
|
10637
10675
|
|
|
@@ -10649,33 +10687,33 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10649
10687
|
}, {
|
|
10650
10688
|
key: "scheduleCampaign",
|
|
10651
10689
|
value: function () {
|
|
10652
|
-
var _scheduleCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10690
|
+
var _scheduleCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee66(id, params) {
|
|
10653
10691
|
var scheduledFor, _yield$this$patch, campaign;
|
|
10654
10692
|
|
|
10655
|
-
return _regeneratorRuntime.wrap(function
|
|
10693
|
+
return _regeneratorRuntime.wrap(function _callee66$(_context66) {
|
|
10656
10694
|
while (1) {
|
|
10657
|
-
switch (
|
|
10695
|
+
switch (_context66.prev = _context66.next) {
|
|
10658
10696
|
case 0:
|
|
10659
10697
|
scheduledFor = params.scheduledFor;
|
|
10660
|
-
|
|
10698
|
+
_context66.next = 3;
|
|
10661
10699
|
return this.patch(this.baseURL + "/campaigns/".concat(id, "/schedule"), {
|
|
10662
10700
|
scheduled_for: scheduledFor
|
|
10663
10701
|
});
|
|
10664
10702
|
|
|
10665
10703
|
case 3:
|
|
10666
|
-
_yield$this$patch =
|
|
10704
|
+
_yield$this$patch = _context66.sent;
|
|
10667
10705
|
campaign = _yield$this$patch.campaign;
|
|
10668
|
-
return
|
|
10706
|
+
return _context66.abrupt("return", campaign);
|
|
10669
10707
|
|
|
10670
10708
|
case 6:
|
|
10671
10709
|
case "end":
|
|
10672
|
-
return
|
|
10710
|
+
return _context66.stop();
|
|
10673
10711
|
}
|
|
10674
10712
|
}
|
|
10675
|
-
},
|
|
10713
|
+
}, _callee66, this);
|
|
10676
10714
|
}));
|
|
10677
10715
|
|
|
10678
|
-
function scheduleCampaign(
|
|
10716
|
+
function scheduleCampaign(_x89, _x90) {
|
|
10679
10717
|
return _scheduleCampaign.apply(this, arguments);
|
|
10680
10718
|
}
|
|
10681
10719
|
|
|
@@ -10692,30 +10730,30 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10692
10730
|
}, {
|
|
10693
10731
|
key: "stopCampaign",
|
|
10694
10732
|
value: function () {
|
|
10695
|
-
var _stopCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10733
|
+
var _stopCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee67(id) {
|
|
10696
10734
|
var _yield$this$patch2, campaign;
|
|
10697
10735
|
|
|
10698
|
-
return _regeneratorRuntime.wrap(function
|
|
10736
|
+
return _regeneratorRuntime.wrap(function _callee67$(_context67) {
|
|
10699
10737
|
while (1) {
|
|
10700
|
-
switch (
|
|
10738
|
+
switch (_context67.prev = _context67.next) {
|
|
10701
10739
|
case 0:
|
|
10702
|
-
|
|
10740
|
+
_context67.next = 2;
|
|
10703
10741
|
return this.patch(this.baseURL + "/campaigns/".concat(id, "/stop"));
|
|
10704
10742
|
|
|
10705
10743
|
case 2:
|
|
10706
|
-
_yield$this$patch2 =
|
|
10744
|
+
_yield$this$patch2 = _context67.sent;
|
|
10707
10745
|
campaign = _yield$this$patch2.campaign;
|
|
10708
|
-
return
|
|
10746
|
+
return _context67.abrupt("return", campaign);
|
|
10709
10747
|
|
|
10710
10748
|
case 5:
|
|
10711
10749
|
case "end":
|
|
10712
|
-
return
|
|
10750
|
+
return _context67.stop();
|
|
10713
10751
|
}
|
|
10714
10752
|
}
|
|
10715
|
-
},
|
|
10753
|
+
}, _callee67, this);
|
|
10716
10754
|
}));
|
|
10717
10755
|
|
|
10718
|
-
function stopCampaign(
|
|
10756
|
+
function stopCampaign(_x91) {
|
|
10719
10757
|
return _stopCampaign.apply(this, arguments);
|
|
10720
10758
|
}
|
|
10721
10759
|
|
|
@@ -10732,30 +10770,30 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10732
10770
|
}, {
|
|
10733
10771
|
key: "resumeCampaign",
|
|
10734
10772
|
value: function () {
|
|
10735
|
-
var _resumeCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10773
|
+
var _resumeCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee68(id) {
|
|
10736
10774
|
var _yield$this$patch3, campaign;
|
|
10737
10775
|
|
|
10738
|
-
return _regeneratorRuntime.wrap(function
|
|
10776
|
+
return _regeneratorRuntime.wrap(function _callee68$(_context68) {
|
|
10739
10777
|
while (1) {
|
|
10740
|
-
switch (
|
|
10778
|
+
switch (_context68.prev = _context68.next) {
|
|
10741
10779
|
case 0:
|
|
10742
|
-
|
|
10780
|
+
_context68.next = 2;
|
|
10743
10781
|
return this.patch(this.baseURL + "/campaigns/".concat(id, "/resume"));
|
|
10744
10782
|
|
|
10745
10783
|
case 2:
|
|
10746
|
-
_yield$this$patch3 =
|
|
10784
|
+
_yield$this$patch3 = _context68.sent;
|
|
10747
10785
|
campaign = _yield$this$patch3.campaign;
|
|
10748
|
-
return
|
|
10786
|
+
return _context68.abrupt("return", campaign);
|
|
10749
10787
|
|
|
10750
10788
|
case 5:
|
|
10751
10789
|
case "end":
|
|
10752
|
-
return
|
|
10790
|
+
return _context68.stop();
|
|
10753
10791
|
}
|
|
10754
10792
|
}
|
|
10755
|
-
},
|
|
10793
|
+
}, _callee68, this);
|
|
10756
10794
|
}));
|
|
10757
10795
|
|
|
10758
|
-
function resumeCampaign(
|
|
10796
|
+
function resumeCampaign(_x92) {
|
|
10759
10797
|
return _resumeCampaign.apply(this, arguments);
|
|
10760
10798
|
}
|
|
10761
10799
|
|
|
@@ -10773,30 +10811,30 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10773
10811
|
}, {
|
|
10774
10812
|
key: "testCampaign",
|
|
10775
10813
|
value: function () {
|
|
10776
|
-
var _testCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10814
|
+
var _testCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee69(id, params) {
|
|
10777
10815
|
var users;
|
|
10778
|
-
return _regeneratorRuntime.wrap(function
|
|
10816
|
+
return _regeneratorRuntime.wrap(function _callee69$(_context69) {
|
|
10779
10817
|
while (1) {
|
|
10780
|
-
switch (
|
|
10818
|
+
switch (_context69.prev = _context69.next) {
|
|
10781
10819
|
case 0:
|
|
10782
10820
|
users = params.users;
|
|
10783
|
-
|
|
10821
|
+
_context69.next = 3;
|
|
10784
10822
|
return this.post(this.baseURL + "/campaigns/".concat(id, "/test"), {
|
|
10785
10823
|
users: users
|
|
10786
10824
|
});
|
|
10787
10825
|
|
|
10788
10826
|
case 3:
|
|
10789
|
-
return
|
|
10827
|
+
return _context69.abrupt("return", _context69.sent);
|
|
10790
10828
|
|
|
10791
10829
|
case 4:
|
|
10792
10830
|
case "end":
|
|
10793
|
-
return
|
|
10831
|
+
return _context69.stop();
|
|
10794
10832
|
}
|
|
10795
10833
|
}
|
|
10796
|
-
},
|
|
10834
|
+
}, _callee69, this);
|
|
10797
10835
|
}));
|
|
10798
10836
|
|
|
10799
|
-
function testCampaign(
|
|
10837
|
+
function testCampaign(_x93, _x94) {
|
|
10800
10838
|
return _testCampaign.apply(this, arguments);
|
|
10801
10839
|
}
|
|
10802
10840
|
|
|
@@ -10812,15 +10850,15 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10812
10850
|
}, {
|
|
10813
10851
|
key: "queryRecipients",
|
|
10814
10852
|
value: function () {
|
|
10815
|
-
var _queryRecipients = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10853
|
+
var _queryRecipients = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee70(filters) {
|
|
10816
10854
|
var options,
|
|
10817
|
-
|
|
10818
|
-
return _regeneratorRuntime.wrap(function
|
|
10855
|
+
_args70 = arguments;
|
|
10856
|
+
return _regeneratorRuntime.wrap(function _callee70$(_context70) {
|
|
10819
10857
|
while (1) {
|
|
10820
|
-
switch (
|
|
10858
|
+
switch (_context70.prev = _context70.next) {
|
|
10821
10859
|
case 0:
|
|
10822
|
-
options =
|
|
10823
|
-
|
|
10860
|
+
options = _args70.length > 1 && _args70[1] !== undefined ? _args70[1] : {};
|
|
10861
|
+
_context70.next = 3;
|
|
10824
10862
|
return this.get(this.baseURL + "/recipients", {
|
|
10825
10863
|
payload: _objectSpread({
|
|
10826
10864
|
filter_conditions: filters
|
|
@@ -10828,17 +10866,17 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10828
10866
|
});
|
|
10829
10867
|
|
|
10830
10868
|
case 3:
|
|
10831
|
-
return
|
|
10869
|
+
return _context70.abrupt("return", _context70.sent);
|
|
10832
10870
|
|
|
10833
10871
|
case 4:
|
|
10834
10872
|
case "end":
|
|
10835
|
-
return
|
|
10873
|
+
return _context70.stop();
|
|
10836
10874
|
}
|
|
10837
10875
|
}
|
|
10838
|
-
},
|
|
10876
|
+
}, _callee70, this);
|
|
10839
10877
|
}));
|
|
10840
10878
|
|
|
10841
|
-
function queryRecipients(
|
|
10879
|
+
function queryRecipients(_x95) {
|
|
10842
10880
|
return _queryRecipients.apply(this, arguments);
|
|
10843
10881
|
}
|
|
10844
10882
|
|
|
@@ -10854,24 +10892,24 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10854
10892
|
}, {
|
|
10855
10893
|
key: "enrichURL",
|
|
10856
10894
|
value: function () {
|
|
10857
|
-
var _enrichURL = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10858
|
-
return _regeneratorRuntime.wrap(function
|
|
10895
|
+
var _enrichURL = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee71(url) {
|
|
10896
|
+
return _regeneratorRuntime.wrap(function _callee71$(_context71) {
|
|
10859
10897
|
while (1) {
|
|
10860
|
-
switch (
|
|
10898
|
+
switch (_context71.prev = _context71.next) {
|
|
10861
10899
|
case 0:
|
|
10862
|
-
return
|
|
10900
|
+
return _context71.abrupt("return", this.get(this.baseURL + "/og", {
|
|
10863
10901
|
url: url
|
|
10864
10902
|
}));
|
|
10865
10903
|
|
|
10866
10904
|
case 1:
|
|
10867
10905
|
case "end":
|
|
10868
|
-
return
|
|
10906
|
+
return _context71.stop();
|
|
10869
10907
|
}
|
|
10870
10908
|
}
|
|
10871
|
-
},
|
|
10909
|
+
}, _callee71, this);
|
|
10872
10910
|
}));
|
|
10873
10911
|
|
|
10874
|
-
function enrichURL(
|
|
10912
|
+
function enrichURL(_x96) {
|
|
10875
10913
|
return _enrichURL.apply(this, arguments);
|
|
10876
10914
|
}
|
|
10877
10915
|
|
|
@@ -10888,22 +10926,22 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10888
10926
|
}, {
|
|
10889
10927
|
key: "getTask",
|
|
10890
10928
|
value: function () {
|
|
10891
|
-
var _getTask = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10892
|
-
return _regeneratorRuntime.wrap(function
|
|
10929
|
+
var _getTask = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee72(id) {
|
|
10930
|
+
return _regeneratorRuntime.wrap(function _callee72$(_context72) {
|
|
10893
10931
|
while (1) {
|
|
10894
|
-
switch (
|
|
10932
|
+
switch (_context72.prev = _context72.next) {
|
|
10895
10933
|
case 0:
|
|
10896
|
-
return
|
|
10934
|
+
return _context72.abrupt("return", this.get("".concat(this.baseURL, "/tasks/").concat(id)));
|
|
10897
10935
|
|
|
10898
10936
|
case 1:
|
|
10899
10937
|
case "end":
|
|
10900
|
-
return
|
|
10938
|
+
return _context72.stop();
|
|
10901
10939
|
}
|
|
10902
10940
|
}
|
|
10903
|
-
},
|
|
10941
|
+
}, _callee72, this);
|
|
10904
10942
|
}));
|
|
10905
10943
|
|
|
10906
|
-
function getTask(
|
|
10944
|
+
function getTask(_x97) {
|
|
10907
10945
|
return _getTask.apply(this, arguments);
|
|
10908
10946
|
}
|
|
10909
10947
|
|
|
@@ -10921,31 +10959,31 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10921
10959
|
}, {
|
|
10922
10960
|
key: "deleteChannels",
|
|
10923
10961
|
value: function () {
|
|
10924
|
-
var _deleteChannels = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10962
|
+
var _deleteChannels = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee73(cids) {
|
|
10925
10963
|
var options,
|
|
10926
|
-
|
|
10927
|
-
return _regeneratorRuntime.wrap(function
|
|
10964
|
+
_args73 = arguments;
|
|
10965
|
+
return _regeneratorRuntime.wrap(function _callee73$(_context73) {
|
|
10928
10966
|
while (1) {
|
|
10929
|
-
switch (
|
|
10967
|
+
switch (_context73.prev = _context73.next) {
|
|
10930
10968
|
case 0:
|
|
10931
|
-
options =
|
|
10932
|
-
|
|
10969
|
+
options = _args73.length > 1 && _args73[1] !== undefined ? _args73[1] : {};
|
|
10970
|
+
_context73.next = 3;
|
|
10933
10971
|
return this.post(this.baseURL + "/channels/delete", _objectSpread({
|
|
10934
10972
|
cids: cids
|
|
10935
10973
|
}, options));
|
|
10936
10974
|
|
|
10937
10975
|
case 3:
|
|
10938
|
-
return
|
|
10976
|
+
return _context73.abrupt("return", _context73.sent);
|
|
10939
10977
|
|
|
10940
10978
|
case 4:
|
|
10941
10979
|
case "end":
|
|
10942
|
-
return
|
|
10980
|
+
return _context73.stop();
|
|
10943
10981
|
}
|
|
10944
10982
|
}
|
|
10945
|
-
},
|
|
10983
|
+
}, _callee73, this);
|
|
10946
10984
|
}));
|
|
10947
10985
|
|
|
10948
|
-
function deleteChannels(
|
|
10986
|
+
function deleteChannels(_x98) {
|
|
10949
10987
|
return _deleteChannels.apply(this, arguments);
|
|
10950
10988
|
}
|
|
10951
10989
|
|
|
@@ -10963,13 +11001,13 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10963
11001
|
}, {
|
|
10964
11002
|
key: "deleteUsers",
|
|
10965
11003
|
value: function () {
|
|
10966
|
-
var _deleteUsers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
10967
|
-
return _regeneratorRuntime.wrap(function
|
|
11004
|
+
var _deleteUsers = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee74(user_ids, options) {
|
|
11005
|
+
return _regeneratorRuntime.wrap(function _callee74$(_context74) {
|
|
10968
11006
|
while (1) {
|
|
10969
|
-
switch (
|
|
11007
|
+
switch (_context74.prev = _context74.next) {
|
|
10970
11008
|
case 0:
|
|
10971
11009
|
if (!((options === null || options === void 0 ? void 0 : options.user) !== 'soft' && (options === null || options === void 0 ? void 0 : options.user) !== 'hard')) {
|
|
10972
|
-
|
|
11010
|
+
_context74.next = 2;
|
|
10973
11011
|
break;
|
|
10974
11012
|
}
|
|
10975
11013
|
|
|
@@ -10977,7 +11015,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10977
11015
|
|
|
10978
11016
|
case 2:
|
|
10979
11017
|
if (!(options.messages !== undefined && options.messages !== 'soft' && options.messages !== 'hard')) {
|
|
10980
|
-
|
|
11018
|
+
_context74.next = 4;
|
|
10981
11019
|
break;
|
|
10982
11020
|
}
|
|
10983
11021
|
|
|
@@ -10985,30 +11023,30 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
10985
11023
|
|
|
10986
11024
|
case 4:
|
|
10987
11025
|
if (!(options.conversations !== undefined && options.conversations !== 'soft' && options.conversations !== 'hard')) {
|
|
10988
|
-
|
|
11026
|
+
_context74.next = 6;
|
|
10989
11027
|
break;
|
|
10990
11028
|
}
|
|
10991
11029
|
|
|
10992
11030
|
throw new Error('Invalid delete user options. conversations must be one of [soft hard]');
|
|
10993
11031
|
|
|
10994
11032
|
case 6:
|
|
10995
|
-
|
|
11033
|
+
_context74.next = 8;
|
|
10996
11034
|
return this.post(this.baseURL + "/users/delete", _objectSpread({
|
|
10997
11035
|
user_ids: user_ids
|
|
10998
11036
|
}, options));
|
|
10999
11037
|
|
|
11000
11038
|
case 8:
|
|
11001
|
-
return
|
|
11039
|
+
return _context74.abrupt("return", _context74.sent);
|
|
11002
11040
|
|
|
11003
11041
|
case 9:
|
|
11004
11042
|
case "end":
|
|
11005
|
-
return
|
|
11043
|
+
return _context74.stop();
|
|
11006
11044
|
}
|
|
11007
11045
|
}
|
|
11008
|
-
},
|
|
11046
|
+
}, _callee74, this);
|
|
11009
11047
|
}));
|
|
11010
11048
|
|
|
11011
|
-
function deleteUsers(
|
|
11049
|
+
function deleteUsers(_x99, _x100) {
|
|
11012
11050
|
return _deleteUsers.apply(this, arguments);
|
|
11013
11051
|
}
|
|
11014
11052
|
|
|
@@ -11029,28 +11067,28 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
11029
11067
|
}, {
|
|
11030
11068
|
key: "_createImportURL",
|
|
11031
11069
|
value: function () {
|
|
11032
|
-
var _createImportURL2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
11033
|
-
return _regeneratorRuntime.wrap(function
|
|
11070
|
+
var _createImportURL2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee75(filename) {
|
|
11071
|
+
return _regeneratorRuntime.wrap(function _callee75$(_context75) {
|
|
11034
11072
|
while (1) {
|
|
11035
|
-
switch (
|
|
11073
|
+
switch (_context75.prev = _context75.next) {
|
|
11036
11074
|
case 0:
|
|
11037
|
-
|
|
11075
|
+
_context75.next = 2;
|
|
11038
11076
|
return this.post(this.baseURL + "/import_urls", {
|
|
11039
11077
|
filename: filename
|
|
11040
11078
|
});
|
|
11041
11079
|
|
|
11042
11080
|
case 2:
|
|
11043
|
-
return
|
|
11081
|
+
return _context75.abrupt("return", _context75.sent);
|
|
11044
11082
|
|
|
11045
11083
|
case 3:
|
|
11046
11084
|
case "end":
|
|
11047
|
-
return
|
|
11085
|
+
return _context75.stop();
|
|
11048
11086
|
}
|
|
11049
11087
|
}
|
|
11050
|
-
},
|
|
11088
|
+
}, _callee75, this);
|
|
11051
11089
|
}));
|
|
11052
11090
|
|
|
11053
|
-
function _createImportURL(
|
|
11091
|
+
function _createImportURL(_x101) {
|
|
11054
11092
|
return _createImportURL2.apply(this, arguments);
|
|
11055
11093
|
}
|
|
11056
11094
|
|
|
@@ -11072,33 +11110,33 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
11072
11110
|
}, {
|
|
11073
11111
|
key: "_createImport",
|
|
11074
11112
|
value: function () {
|
|
11075
|
-
var _createImport2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
11113
|
+
var _createImport2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee76(path) {
|
|
11076
11114
|
var options,
|
|
11077
|
-
|
|
11078
|
-
return _regeneratorRuntime.wrap(function
|
|
11115
|
+
_args76 = arguments;
|
|
11116
|
+
return _regeneratorRuntime.wrap(function _callee76$(_context76) {
|
|
11079
11117
|
while (1) {
|
|
11080
|
-
switch (
|
|
11118
|
+
switch (_context76.prev = _context76.next) {
|
|
11081
11119
|
case 0:
|
|
11082
|
-
options =
|
|
11120
|
+
options = _args76.length > 1 && _args76[1] !== undefined ? _args76[1] : {
|
|
11083
11121
|
mode: 'upsert'
|
|
11084
11122
|
};
|
|
11085
|
-
|
|
11123
|
+
_context76.next = 3;
|
|
11086
11124
|
return this.post(this.baseURL + "/imports", _objectSpread({
|
|
11087
11125
|
path: path
|
|
11088
11126
|
}, options));
|
|
11089
11127
|
|
|
11090
11128
|
case 3:
|
|
11091
|
-
return
|
|
11129
|
+
return _context76.abrupt("return", _context76.sent);
|
|
11092
11130
|
|
|
11093
11131
|
case 4:
|
|
11094
11132
|
case "end":
|
|
11095
|
-
return
|
|
11133
|
+
return _context76.stop();
|
|
11096
11134
|
}
|
|
11097
11135
|
}
|
|
11098
|
-
},
|
|
11136
|
+
}, _callee76, this);
|
|
11099
11137
|
}));
|
|
11100
11138
|
|
|
11101
|
-
function _createImport(
|
|
11139
|
+
function _createImport(_x102) {
|
|
11102
11140
|
return _createImport2.apply(this, arguments);
|
|
11103
11141
|
}
|
|
11104
11142
|
|
|
@@ -11120,26 +11158,26 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
11120
11158
|
}, {
|
|
11121
11159
|
key: "_getImport",
|
|
11122
11160
|
value: function () {
|
|
11123
|
-
var _getImport2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
11124
|
-
return _regeneratorRuntime.wrap(function
|
|
11161
|
+
var _getImport2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee77(id) {
|
|
11162
|
+
return _regeneratorRuntime.wrap(function _callee77$(_context77) {
|
|
11125
11163
|
while (1) {
|
|
11126
|
-
switch (
|
|
11164
|
+
switch (_context77.prev = _context77.next) {
|
|
11127
11165
|
case 0:
|
|
11128
|
-
|
|
11166
|
+
_context77.next = 2;
|
|
11129
11167
|
return this.get(this.baseURL + "/imports/".concat(id));
|
|
11130
11168
|
|
|
11131
11169
|
case 2:
|
|
11132
|
-
return
|
|
11170
|
+
return _context77.abrupt("return", _context77.sent);
|
|
11133
11171
|
|
|
11134
11172
|
case 3:
|
|
11135
11173
|
case "end":
|
|
11136
|
-
return
|
|
11174
|
+
return _context77.stop();
|
|
11137
11175
|
}
|
|
11138
11176
|
}
|
|
11139
|
-
},
|
|
11177
|
+
}, _callee77, this);
|
|
11140
11178
|
}));
|
|
11141
11179
|
|
|
11142
|
-
function _getImport(
|
|
11180
|
+
function _getImport(_x103) {
|
|
11143
11181
|
return _getImport2.apply(this, arguments);
|
|
11144
11182
|
}
|
|
11145
11183
|
|
|
@@ -11161,26 +11199,26 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
11161
11199
|
}, {
|
|
11162
11200
|
key: "_listImports",
|
|
11163
11201
|
value: function () {
|
|
11164
|
-
var _listImports2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
11165
|
-
return _regeneratorRuntime.wrap(function
|
|
11202
|
+
var _listImports2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee78(options) {
|
|
11203
|
+
return _regeneratorRuntime.wrap(function _callee78$(_context78) {
|
|
11166
11204
|
while (1) {
|
|
11167
|
-
switch (
|
|
11205
|
+
switch (_context78.prev = _context78.next) {
|
|
11168
11206
|
case 0:
|
|
11169
|
-
|
|
11207
|
+
_context78.next = 2;
|
|
11170
11208
|
return this.get(this.baseURL + "/imports", options);
|
|
11171
11209
|
|
|
11172
11210
|
case 2:
|
|
11173
|
-
return
|
|
11211
|
+
return _context78.abrupt("return", _context78.sent);
|
|
11174
11212
|
|
|
11175
11213
|
case 3:
|
|
11176
11214
|
case "end":
|
|
11177
|
-
return
|
|
11215
|
+
return _context78.stop();
|
|
11178
11216
|
}
|
|
11179
11217
|
}
|
|
11180
|
-
},
|
|
11218
|
+
}, _callee78, this);
|
|
11181
11219
|
}));
|
|
11182
11220
|
|
|
11183
|
-
function _listImports(
|
|
11221
|
+
function _listImports(_x104) {
|
|
11184
11222
|
return _listImports2.apply(this, arguments);
|
|
11185
11223
|
}
|
|
11186
11224
|
|
|
@@ -11199,28 +11237,28 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
11199
11237
|
}, {
|
|
11200
11238
|
key: "upsertPushProvider",
|
|
11201
11239
|
value: function () {
|
|
11202
|
-
var _upsertPushProvider = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
11203
|
-
return _regeneratorRuntime.wrap(function
|
|
11240
|
+
var _upsertPushProvider = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee79(pushProvider) {
|
|
11241
|
+
return _regeneratorRuntime.wrap(function _callee79$(_context79) {
|
|
11204
11242
|
while (1) {
|
|
11205
|
-
switch (
|
|
11243
|
+
switch (_context79.prev = _context79.next) {
|
|
11206
11244
|
case 0:
|
|
11207
|
-
|
|
11245
|
+
_context79.next = 2;
|
|
11208
11246
|
return this.post(this.baseURL + "/push_providers", {
|
|
11209
11247
|
push_provider: pushProvider
|
|
11210
11248
|
});
|
|
11211
11249
|
|
|
11212
11250
|
case 2:
|
|
11213
|
-
return
|
|
11251
|
+
return _context79.abrupt("return", _context79.sent);
|
|
11214
11252
|
|
|
11215
11253
|
case 3:
|
|
11216
11254
|
case "end":
|
|
11217
|
-
return
|
|
11255
|
+
return _context79.stop();
|
|
11218
11256
|
}
|
|
11219
11257
|
}
|
|
11220
|
-
},
|
|
11258
|
+
}, _callee79, this);
|
|
11221
11259
|
}));
|
|
11222
11260
|
|
|
11223
|
-
function upsertPushProvider(
|
|
11261
|
+
function upsertPushProvider(_x105) {
|
|
11224
11262
|
return _upsertPushProvider.apply(this, arguments);
|
|
11225
11263
|
}
|
|
11226
11264
|
|
|
@@ -11239,28 +11277,28 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
11239
11277
|
}, {
|
|
11240
11278
|
key: "deletePushProvider",
|
|
11241
11279
|
value: function () {
|
|
11242
|
-
var _deletePushProvider = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
11280
|
+
var _deletePushProvider = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee80(_ref10) {
|
|
11243
11281
|
var type, name;
|
|
11244
|
-
return _regeneratorRuntime.wrap(function
|
|
11282
|
+
return _regeneratorRuntime.wrap(function _callee80$(_context80) {
|
|
11245
11283
|
while (1) {
|
|
11246
|
-
switch (
|
|
11284
|
+
switch (_context80.prev = _context80.next) {
|
|
11247
11285
|
case 0:
|
|
11248
11286
|
type = _ref10.type, name = _ref10.name;
|
|
11249
|
-
|
|
11287
|
+
_context80.next = 3;
|
|
11250
11288
|
return this.delete(this.baseURL + "/push_providers/".concat(type, "/").concat(name));
|
|
11251
11289
|
|
|
11252
11290
|
case 3:
|
|
11253
|
-
return
|
|
11291
|
+
return _context80.abrupt("return", _context80.sent);
|
|
11254
11292
|
|
|
11255
11293
|
case 4:
|
|
11256
11294
|
case "end":
|
|
11257
|
-
return
|
|
11295
|
+
return _context80.stop();
|
|
11258
11296
|
}
|
|
11259
11297
|
}
|
|
11260
|
-
},
|
|
11298
|
+
}, _callee80, this);
|
|
11261
11299
|
}));
|
|
11262
11300
|
|
|
11263
|
-
function deletePushProvider(
|
|
11301
|
+
function deletePushProvider(_x106) {
|
|
11264
11302
|
return _deletePushProvider.apply(this, arguments);
|
|
11265
11303
|
}
|
|
11266
11304
|
|
|
@@ -11277,23 +11315,23 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
11277
11315
|
}, {
|
|
11278
11316
|
key: "listPushProviders",
|
|
11279
11317
|
value: function () {
|
|
11280
|
-
var _listPushProviders = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
11281
|
-
return _regeneratorRuntime.wrap(function
|
|
11318
|
+
var _listPushProviders = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee81() {
|
|
11319
|
+
return _regeneratorRuntime.wrap(function _callee81$(_context81) {
|
|
11282
11320
|
while (1) {
|
|
11283
|
-
switch (
|
|
11321
|
+
switch (_context81.prev = _context81.next) {
|
|
11284
11322
|
case 0:
|
|
11285
|
-
|
|
11323
|
+
_context81.next = 2;
|
|
11286
11324
|
return this.get(this.baseURL + "/push_providers");
|
|
11287
11325
|
|
|
11288
11326
|
case 2:
|
|
11289
|
-
return
|
|
11327
|
+
return _context81.abrupt("return", _context81.sent);
|
|
11290
11328
|
|
|
11291
11329
|
case 3:
|
|
11292
11330
|
case "end":
|
|
11293
|
-
return
|
|
11331
|
+
return _context81.stop();
|
|
11294
11332
|
}
|
|
11295
11333
|
}
|
|
11296
|
-
},
|
|
11334
|
+
}, _callee81, this);
|
|
11297
11335
|
}));
|
|
11298
11336
|
|
|
11299
11337
|
function listPushProviders() {
|
|
@@ -11321,26 +11359,26 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
11321
11359
|
}, {
|
|
11322
11360
|
key: "commitMessage",
|
|
11323
11361
|
value: function () {
|
|
11324
|
-
var _commitMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function
|
|
11325
|
-
return _regeneratorRuntime.wrap(function
|
|
11362
|
+
var _commitMessage = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee82(id) {
|
|
11363
|
+
return _regeneratorRuntime.wrap(function _callee82$(_context82) {
|
|
11326
11364
|
while (1) {
|
|
11327
|
-
switch (
|
|
11365
|
+
switch (_context82.prev = _context82.next) {
|
|
11328
11366
|
case 0:
|
|
11329
|
-
|
|
11367
|
+
_context82.next = 2;
|
|
11330
11368
|
return this.post(this.baseURL + "/messages/".concat(id, "/commit"));
|
|
11331
11369
|
|
|
11332
11370
|
case 2:
|
|
11333
|
-
return
|
|
11371
|
+
return _context82.abrupt("return", _context82.sent);
|
|
11334
11372
|
|
|
11335
11373
|
case 3:
|
|
11336
11374
|
case "end":
|
|
11337
|
-
return
|
|
11375
|
+
return _context82.stop();
|
|
11338
11376
|
}
|
|
11339
11377
|
}
|
|
11340
|
-
},
|
|
11378
|
+
}, _callee82, this);
|
|
11341
11379
|
}));
|
|
11342
11380
|
|
|
11343
|
-
function commitMessage(
|
|
11381
|
+
function commitMessage(_x107) {
|
|
11344
11382
|
return _commitMessage.apply(this, arguments);
|
|
11345
11383
|
}
|
|
11346
11384
|
|