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