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