stream-chat 8.36.0 → 8.37.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser.es.js +44 -1
- 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 +44 -1
- package/dist/browser.js.map +1 -1
- package/dist/index.es.js +44 -1
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +44 -1
- package/dist/index.js.map +1 -1
- package/dist/types/client.d.ts +11 -0
- package/dist/types/client.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +16 -0
package/dist/index.js
CHANGED
|
@@ -11578,7 +11578,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
11578
11578
|
}, {
|
|
11579
11579
|
key: "getUserAgent",
|
|
11580
11580
|
value: function getUserAgent() {
|
|
11581
|
-
return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.
|
|
11581
|
+
return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.37.0");
|
|
11582
11582
|
}
|
|
11583
11583
|
}, {
|
|
11584
11584
|
key: "setUserAgent",
|
|
@@ -13612,6 +13612,49 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
13612
13612
|
|
|
13613
13613
|
return queryMessageHistory;
|
|
13614
13614
|
}()
|
|
13615
|
+
/**
|
|
13616
|
+
* updateFlags - reviews/unflags flagged message
|
|
13617
|
+
*
|
|
13618
|
+
* @param {string[]} message_ids list of message IDs
|
|
13619
|
+
* @param {string} options Option object in case user ID is set to review all the flagged messages by the user
|
|
13620
|
+
* @param {string} reviewed_by user ID who reviewed the flagged message
|
|
13621
|
+
* @returns {APIResponse}
|
|
13622
|
+
*/
|
|
13623
|
+
|
|
13624
|
+
}, {
|
|
13625
|
+
key: "updateFlags",
|
|
13626
|
+
value: function () {
|
|
13627
|
+
var _updateFlags = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee114(message_ids, reviewed_by) {
|
|
13628
|
+
var options,
|
|
13629
|
+
_args114 = arguments;
|
|
13630
|
+
return _regeneratorRuntime__default['default'].wrap(function _callee114$(_context114) {
|
|
13631
|
+
while (1) {
|
|
13632
|
+
switch (_context114.prev = _context114.next) {
|
|
13633
|
+
case 0:
|
|
13634
|
+
options = _args114.length > 2 && _args114[2] !== undefined ? _args114[2] : {};
|
|
13635
|
+
_context114.next = 3;
|
|
13636
|
+
return this.post(this.baseURL + '/automod/v1/moderation/update_flags', _objectSpread({
|
|
13637
|
+
message_ids: message_ids,
|
|
13638
|
+
reviewed_by: reviewed_by
|
|
13639
|
+
}, options));
|
|
13640
|
+
|
|
13641
|
+
case 3:
|
|
13642
|
+
return _context114.abrupt("return", _context114.sent);
|
|
13643
|
+
|
|
13644
|
+
case 4:
|
|
13645
|
+
case "end":
|
|
13646
|
+
return _context114.stop();
|
|
13647
|
+
}
|
|
13648
|
+
}
|
|
13649
|
+
}, _callee114, this);
|
|
13650
|
+
}));
|
|
13651
|
+
|
|
13652
|
+
function updateFlags(_x163, _x164) {
|
|
13653
|
+
return _updateFlags.apply(this, arguments);
|
|
13654
|
+
}
|
|
13655
|
+
|
|
13656
|
+
return updateFlags;
|
|
13657
|
+
}()
|
|
13615
13658
|
}], [{
|
|
13616
13659
|
key: "getInstance",
|
|
13617
13660
|
value: function getInstance(key, secretOrOptions, options) {
|