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.js
CHANGED
|
@@ -6864,6 +6864,10 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
6864
6864
|
* Base Types
|
|
6865
6865
|
*/
|
|
6866
6866
|
|
|
6867
|
+
/**
|
|
6868
|
+
* @deprecated Use ChannelMemberResponse instead
|
|
6869
|
+
*/
|
|
6870
|
+
|
|
6867
6871
|
/*
|
|
6868
6872
|
DeleteUserOptions specifies a collection of one or more `user_ids` to be deleted.
|
|
6869
6873
|
|
|
@@ -11457,7 +11461,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
11457
11461
|
}, {
|
|
11458
11462
|
key: "getUserAgent",
|
|
11459
11463
|
value: function getUserAgent() {
|
|
11460
|
-
return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.
|
|
11464
|
+
return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.33.0");
|
|
11461
11465
|
}
|
|
11462
11466
|
}, {
|
|
11463
11467
|
key: "setUserAgent",
|
|
@@ -13445,6 +13449,52 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
13445
13449
|
|
|
13446
13450
|
return queryPollVotes;
|
|
13447
13451
|
}()
|
|
13452
|
+
/**
|
|
13453
|
+
* Queries message histories
|
|
13454
|
+
* @param filter
|
|
13455
|
+
* @param sort
|
|
13456
|
+
* @param options Option object, {limit: 10}
|
|
13457
|
+
* @returns {APIResponse & QueryMessageHistoryResponse} The message histories
|
|
13458
|
+
*/
|
|
13459
|
+
|
|
13460
|
+
}, {
|
|
13461
|
+
key: "queryMessageHistory",
|
|
13462
|
+
value: function () {
|
|
13463
|
+
var _queryMessageHistory = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee110() {
|
|
13464
|
+
var filter,
|
|
13465
|
+
sort,
|
|
13466
|
+
options,
|
|
13467
|
+
_args110 = arguments;
|
|
13468
|
+
return _regeneratorRuntime__default['default'].wrap(function _callee110$(_context110) {
|
|
13469
|
+
while (1) {
|
|
13470
|
+
switch (_context110.prev = _context110.next) {
|
|
13471
|
+
case 0:
|
|
13472
|
+
filter = _args110.length > 0 && _args110[0] !== undefined ? _args110[0] : {};
|
|
13473
|
+
sort = _args110.length > 1 && _args110[1] !== undefined ? _args110[1] : [];
|
|
13474
|
+
options = _args110.length > 2 && _args110[2] !== undefined ? _args110[2] : {};
|
|
13475
|
+
_context110.next = 5;
|
|
13476
|
+
return this.post(this.baseURL + '/messages/history', _objectSpread({
|
|
13477
|
+
filter: filter,
|
|
13478
|
+
sort: normalizeQuerySort(sort)
|
|
13479
|
+
}, options));
|
|
13480
|
+
|
|
13481
|
+
case 5:
|
|
13482
|
+
return _context110.abrupt("return", _context110.sent);
|
|
13483
|
+
|
|
13484
|
+
case 6:
|
|
13485
|
+
case "end":
|
|
13486
|
+
return _context110.stop();
|
|
13487
|
+
}
|
|
13488
|
+
}
|
|
13489
|
+
}, _callee110, this);
|
|
13490
|
+
}));
|
|
13491
|
+
|
|
13492
|
+
function queryMessageHistory() {
|
|
13493
|
+
return _queryMessageHistory.apply(this, arguments);
|
|
13494
|
+
}
|
|
13495
|
+
|
|
13496
|
+
return queryMessageHistory;
|
|
13497
|
+
}()
|
|
13448
13498
|
}], [{
|
|
13449
13499
|
key: "getInstance",
|
|
13450
13500
|
value: function getInstance(key, secretOrOptions, options) {
|