stream-chat 8.31.0 → 8.33.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.
@@ -6833,6 +6833,10 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
6833
6833
  * Base Types
6834
6834
  */
6835
6835
 
6836
+ /**
6837
+ * @deprecated Use ChannelMemberResponse instead
6838
+ */
6839
+
6836
6840
  /*
6837
6841
  DeleteUserOptions specifies a collection of one or more `user_ids` to be deleted.
6838
6842
 
@@ -11426,7 +11430,7 @@ var StreamChat = /*#__PURE__*/function () {
11426
11430
  }, {
11427
11431
  key: "getUserAgent",
11428
11432
  value: function getUserAgent() {
11429
- return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.31.0");
11433
+ return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.33.0");
11430
11434
  }
11431
11435
  }, {
11432
11436
  key: "setUserAgent",
@@ -13414,6 +13418,52 @@ var StreamChat = /*#__PURE__*/function () {
13414
13418
 
13415
13419
  return queryPollVotes;
13416
13420
  }()
13421
+ /**
13422
+ * Queries message histories
13423
+ * @param filter
13424
+ * @param sort
13425
+ * @param options Option object, {limit: 10}
13426
+ * @returns {APIResponse & QueryMessageHistoryResponse} The message histories
13427
+ */
13428
+
13429
+ }, {
13430
+ key: "queryMessageHistory",
13431
+ value: function () {
13432
+ var _queryMessageHistory = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee110() {
13433
+ var filter,
13434
+ sort,
13435
+ options,
13436
+ _args110 = arguments;
13437
+ return _regeneratorRuntime.wrap(function _callee110$(_context110) {
13438
+ while (1) {
13439
+ switch (_context110.prev = _context110.next) {
13440
+ case 0:
13441
+ filter = _args110.length > 0 && _args110[0] !== undefined ? _args110[0] : {};
13442
+ sort = _args110.length > 1 && _args110[1] !== undefined ? _args110[1] : [];
13443
+ options = _args110.length > 2 && _args110[2] !== undefined ? _args110[2] : {};
13444
+ _context110.next = 5;
13445
+ return this.post(this.baseURL + '/messages/history', _objectSpread({
13446
+ filter: filter,
13447
+ sort: normalizeQuerySort(sort)
13448
+ }, options));
13449
+
13450
+ case 5:
13451
+ return _context110.abrupt("return", _context110.sent);
13452
+
13453
+ case 6:
13454
+ case "end":
13455
+ return _context110.stop();
13456
+ }
13457
+ }
13458
+ }, _callee110, this);
13459
+ }));
13460
+
13461
+ function queryMessageHistory() {
13462
+ return _queryMessageHistory.apply(this, arguments);
13463
+ }
13464
+
13465
+ return queryMessageHistory;
13466
+ }()
13417
13467
  }], [{
13418
13468
  key: "getInstance",
13419
13469
  value: function getInstance(key, secretOrOptions, options) {