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