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.
@@ -753,7 +753,8 @@ var EVENT_MAP = {
753
753
  'user.watching.stop': true,
754
754
  // local events
755
755
  'connection.changed': true,
756
- 'connection.recovered': true
756
+ 'connection.recovered': true,
757
+ 'transport.changed': true
757
758
  };
758
759
 
759
760
  var IS_VALID_EVENT_MAP_TYPE = _objectSpread$6(_objectSpread$6({}, EVENT_MAP), {}, {
@@ -9121,7 +9122,7 @@ var StreamChat = /*#__PURE__*/function () {
9121
9122
  }, {
9122
9123
  key: "getUserAgent",
9123
9124
  value: function getUserAgent() {
9124
- return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "5.4.0");
9125
+ return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "5.5.0");
9125
9126
  }
9126
9127
  }, {
9127
9128
  key: "setUserAgent",
@@ -10123,6 +10124,131 @@ var StreamChat = /*#__PURE__*/function () {
10123
10124
 
10124
10125
  return deleteUsers;
10125
10126
  }()
10127
+ /**
10128
+ * _createImport - Create an Import Task.
10129
+ *
10130
+ * Note: Do not use this.
10131
+ * It is present for internal usage only.
10132
+ * This function can, and will, break and/or be removed at any point in time.
10133
+ *
10134
+ * @private
10135
+ * @param {string} filename filename of uploaded data
10136
+ *
10137
+ * @return {APIResponse & CreateImportResponse} An ImportTask
10138
+ */
10139
+
10140
+ }, {
10141
+ key: "_createImport",
10142
+ value: function () {
10143
+ var _createImport2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee70(filename) {
10144
+ return _regeneratorRuntime.wrap(function _callee70$(_context70) {
10145
+ while (1) {
10146
+ switch (_context70.prev = _context70.next) {
10147
+ case 0:
10148
+ _context70.next = 2;
10149
+ return this.post(this.baseURL + "/imports", {
10150
+ filename: filename
10151
+ });
10152
+
10153
+ case 2:
10154
+ return _context70.abrupt("return", _context70.sent);
10155
+
10156
+ case 3:
10157
+ case "end":
10158
+ return _context70.stop();
10159
+ }
10160
+ }
10161
+ }, _callee70, this);
10162
+ }));
10163
+
10164
+ function _createImport(_x94) {
10165
+ return _createImport2.apply(this, arguments);
10166
+ }
10167
+
10168
+ return _createImport;
10169
+ }()
10170
+ /**
10171
+ * _getImport - Get an Import Task.
10172
+ *
10173
+ * Note: Do not use this.
10174
+ * It is present for internal usage only.
10175
+ * This function can, and will, break and/or be removed at any point in time.
10176
+ *
10177
+ * @private
10178
+ * @param {string} id id of Import Task
10179
+ *
10180
+ * @return {APIResponse & GetImportResponse} An ImportTask
10181
+ */
10182
+
10183
+ }, {
10184
+ key: "_getImport",
10185
+ value: function () {
10186
+ var _getImport2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee71(id) {
10187
+ return _regeneratorRuntime.wrap(function _callee71$(_context71) {
10188
+ while (1) {
10189
+ switch (_context71.prev = _context71.next) {
10190
+ case 0:
10191
+ _context71.next = 2;
10192
+ return this.get(this.baseURL + "/imports/".concat(id));
10193
+
10194
+ case 2:
10195
+ return _context71.abrupt("return", _context71.sent);
10196
+
10197
+ case 3:
10198
+ case "end":
10199
+ return _context71.stop();
10200
+ }
10201
+ }
10202
+ }, _callee71, this);
10203
+ }));
10204
+
10205
+ function _getImport(_x95) {
10206
+ return _getImport2.apply(this, arguments);
10207
+ }
10208
+
10209
+ return _getImport;
10210
+ }()
10211
+ /**
10212
+ * _listImports - Lists Import Tasks.
10213
+ *
10214
+ * Note: Do not use this.
10215
+ * It is present for internal usage only.
10216
+ * This function can, and will, break and/or be removed at any point in time.
10217
+ *
10218
+ * @private
10219
+ * @param {ListImportsPaginationOptions} options pagination options
10220
+ *
10221
+ * @return {APIResponse & ListImportsResponse} An ImportTask
10222
+ */
10223
+
10224
+ }, {
10225
+ key: "_listImports",
10226
+ value: function () {
10227
+ var _listImports2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee72(options) {
10228
+ return _regeneratorRuntime.wrap(function _callee72$(_context72) {
10229
+ while (1) {
10230
+ switch (_context72.prev = _context72.next) {
10231
+ case 0:
10232
+ _context72.next = 2;
10233
+ return this.get(this.baseURL + "/imports", options);
10234
+
10235
+ case 2:
10236
+ return _context72.abrupt("return", _context72.sent);
10237
+
10238
+ case 3:
10239
+ case "end":
10240
+ return _context72.stop();
10241
+ }
10242
+ }
10243
+ }, _callee72, this);
10244
+ }));
10245
+
10246
+ function _listImports(_x96) {
10247
+ return _listImports2.apply(this, arguments);
10248
+ }
10249
+
10250
+ return _listImports;
10251
+ }()
10126
10252
  }], [{
10127
10253
  key: "getInstance",
10128
10254
  value: function getInstance(key, secretOrOptions, options) {