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