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