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.es.js
CHANGED
|
@@ -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.
|
|
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) {
|