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