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