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