stream-chat 5.4.0 → 5.5.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/index.js CHANGED
@@ -777,7 +777,8 @@ var EVENT_MAP = {
777
777
  'user.watching.stop': true,
778
778
  // local events
779
779
  'connection.changed': true,
780
- 'connection.recovered': true
780
+ 'connection.recovered': true,
781
+ 'transport.changed': true
781
782
  };
782
783
 
783
784
  var IS_VALID_EVENT_MAP_TYPE = _objectSpread$6(_objectSpread$6({}, EVENT_MAP), {}, {
@@ -9147,7 +9148,7 @@ var StreamChat = /*#__PURE__*/function () {
9147
9148
  }, {
9148
9149
  key: "getUserAgent",
9149
9150
  value: function getUserAgent() {
9150
- return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "5.4.0");
9151
+ return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "5.5.0");
9151
9152
  }
9152
9153
  }, {
9153
9154
  key: "setUserAgent",
@@ -10149,6 +10150,131 @@ var StreamChat = /*#__PURE__*/function () {
10149
10150
 
10150
10151
  return deleteUsers;
10151
10152
  }()
10153
+ /**
10154
+ * _createImport - Create an Import Task.
10155
+ *
10156
+ * Note: Do not use this.
10157
+ * It is present for internal usage only.
10158
+ * This function can, and will, break and/or be removed at any point in time.
10159
+ *
10160
+ * @private
10161
+ * @param {string} filename filename of uploaded data
10162
+ *
10163
+ * @return {APIResponse & CreateImportResponse} An ImportTask
10164
+ */
10165
+
10166
+ }, {
10167
+ key: "_createImport",
10168
+ value: function () {
10169
+ var _createImport2 = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee70(filename) {
10170
+ return _regeneratorRuntime__default['default'].wrap(function _callee70$(_context70) {
10171
+ while (1) {
10172
+ switch (_context70.prev = _context70.next) {
10173
+ case 0:
10174
+ _context70.next = 2;
10175
+ return this.post(this.baseURL + "/imports", {
10176
+ filename: filename
10177
+ });
10178
+
10179
+ case 2:
10180
+ return _context70.abrupt("return", _context70.sent);
10181
+
10182
+ case 3:
10183
+ case "end":
10184
+ return _context70.stop();
10185
+ }
10186
+ }
10187
+ }, _callee70, this);
10188
+ }));
10189
+
10190
+ function _createImport(_x94) {
10191
+ return _createImport2.apply(this, arguments);
10192
+ }
10193
+
10194
+ return _createImport;
10195
+ }()
10196
+ /**
10197
+ * _getImport - Get an Import Task.
10198
+ *
10199
+ * Note: Do not use this.
10200
+ * It is present for internal usage only.
10201
+ * This function can, and will, break and/or be removed at any point in time.
10202
+ *
10203
+ * @private
10204
+ * @param {string} id id of Import Task
10205
+ *
10206
+ * @return {APIResponse & GetImportResponse} An ImportTask
10207
+ */
10208
+
10209
+ }, {
10210
+ key: "_getImport",
10211
+ value: function () {
10212
+ var _getImport2 = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee71(id) {
10213
+ return _regeneratorRuntime__default['default'].wrap(function _callee71$(_context71) {
10214
+ while (1) {
10215
+ switch (_context71.prev = _context71.next) {
10216
+ case 0:
10217
+ _context71.next = 2;
10218
+ return this.get(this.baseURL + "/imports/".concat(id));
10219
+
10220
+ case 2:
10221
+ return _context71.abrupt("return", _context71.sent);
10222
+
10223
+ case 3:
10224
+ case "end":
10225
+ return _context71.stop();
10226
+ }
10227
+ }
10228
+ }, _callee71, this);
10229
+ }));
10230
+
10231
+ function _getImport(_x95) {
10232
+ return _getImport2.apply(this, arguments);
10233
+ }
10234
+
10235
+ return _getImport;
10236
+ }()
10237
+ /**
10238
+ * _listImports - Lists Import Tasks.
10239
+ *
10240
+ * Note: Do not use this.
10241
+ * It is present for internal usage only.
10242
+ * This function can, and will, break and/or be removed at any point in time.
10243
+ *
10244
+ * @private
10245
+ * @param {ListImportsPaginationOptions} options pagination options
10246
+ *
10247
+ * @return {APIResponse & ListImportsResponse} An ImportTask
10248
+ */
10249
+
10250
+ }, {
10251
+ key: "_listImports",
10252
+ value: function () {
10253
+ var _listImports2 = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee72(options) {
10254
+ return _regeneratorRuntime__default['default'].wrap(function _callee72$(_context72) {
10255
+ while (1) {
10256
+ switch (_context72.prev = _context72.next) {
10257
+ case 0:
10258
+ _context72.next = 2;
10259
+ return this.get(this.baseURL + "/imports", options);
10260
+
10261
+ case 2:
10262
+ return _context72.abrupt("return", _context72.sent);
10263
+
10264
+ case 3:
10265
+ case "end":
10266
+ return _context72.stop();
10267
+ }
10268
+ }
10269
+ }, _callee72, this);
10270
+ }));
10271
+
10272
+ function _listImports(_x96) {
10273
+ return _listImports2.apply(this, arguments);
10274
+ }
10275
+
10276
+ return _listImports;
10277
+ }()
10152
10278
  }], [{
10153
10279
  key: "getInstance",
10154
10280
  value: function getInstance(key, secretOrOptions, options) {