stream-chat 6.1.0 → 6.2.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
@@ -9183,7 +9183,7 @@ var StreamChat = /*#__PURE__*/function () {
9183
9183
  }, {
9184
9184
  key: "getUserAgent",
9185
9185
  value: function getUserAgent() {
9186
- return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "6.1.0");
9186
+ return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "6.2.0");
9187
9187
  }
9188
9188
  }, {
9189
9189
  key: "setUserAgent",
@@ -10186,7 +10186,7 @@ var StreamChat = /*#__PURE__*/function () {
10186
10186
  return deleteUsers;
10187
10187
  }()
10188
10188
  /**
10189
- * _createImport - Create an Import Task.
10189
+ * _createImportURL - Create an Import upload url.
10190
10190
  *
10191
10191
  * Note: Do not use this.
10192
10192
  * It is present for internal usage only.
@@ -10199,15 +10199,15 @@ var StreamChat = /*#__PURE__*/function () {
10199
10199
  */
10200
10200
 
10201
10201
  }, {
10202
- key: "_createImport",
10202
+ key: "_createImportURL",
10203
10203
  value: function () {
10204
- var _createImport2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee71(filename) {
10204
+ var _createImportURL2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee71(filename) {
10205
10205
  return _regeneratorRuntime.wrap(function _callee71$(_context71) {
10206
10206
  while (1) {
10207
10207
  switch (_context71.prev = _context71.next) {
10208
10208
  case 0:
10209
10209
  _context71.next = 2;
10210
- return this.post(this.baseURL + "/imports", {
10210
+ return this.post(this.baseURL + "/import_urls", {
10211
10211
  filename: filename
10212
10212
  });
10213
10213
 
@@ -10222,7 +10222,50 @@ var StreamChat = /*#__PURE__*/function () {
10222
10222
  }, _callee71, this);
10223
10223
  }));
10224
10224
 
10225
- function _createImport(_x94) {
10225
+ function _createImportURL(_x94) {
10226
+ return _createImportURL2.apply(this, arguments);
10227
+ }
10228
+
10229
+ return _createImportURL;
10230
+ }()
10231
+ /**
10232
+ * _createImport - Create an Import Task.
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 {string} path path of uploaded data
10240
+ *
10241
+ * @return {APIResponse & CreateImportResponse} An ImportTask
10242
+ */
10243
+
10244
+ }, {
10245
+ key: "_createImport",
10246
+ value: function () {
10247
+ var _createImport2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee72(path) {
10248
+ return _regeneratorRuntime.wrap(function _callee72$(_context72) {
10249
+ while (1) {
10250
+ switch (_context72.prev = _context72.next) {
10251
+ case 0:
10252
+ _context72.next = 2;
10253
+ return this.post(this.baseURL + "/imports", {
10254
+ path: path
10255
+ });
10256
+
10257
+ case 2:
10258
+ return _context72.abrupt("return", _context72.sent);
10259
+
10260
+ case 3:
10261
+ case "end":
10262
+ return _context72.stop();
10263
+ }
10264
+ }
10265
+ }, _callee72, this);
10266
+ }));
10267
+
10268
+ function _createImport(_x95) {
10226
10269
  return _createImport2.apply(this, arguments);
10227
10270
  }
10228
10271
 
@@ -10244,26 +10287,26 @@ var StreamChat = /*#__PURE__*/function () {
10244
10287
  }, {
10245
10288
  key: "_getImport",
10246
10289
  value: function () {
10247
- var _getImport2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee72(id) {
10248
- return _regeneratorRuntime.wrap(function _callee72$(_context72) {
10290
+ var _getImport2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee73(id) {
10291
+ return _regeneratorRuntime.wrap(function _callee73$(_context73) {
10249
10292
  while (1) {
10250
- switch (_context72.prev = _context72.next) {
10293
+ switch (_context73.prev = _context73.next) {
10251
10294
  case 0:
10252
- _context72.next = 2;
10295
+ _context73.next = 2;
10253
10296
  return this.get(this.baseURL + "/imports/".concat(id));
10254
10297
 
10255
10298
  case 2:
10256
- return _context72.abrupt("return", _context72.sent);
10299
+ return _context73.abrupt("return", _context73.sent);
10257
10300
 
10258
10301
  case 3:
10259
10302
  case "end":
10260
- return _context72.stop();
10303
+ return _context73.stop();
10261
10304
  }
10262
10305
  }
10263
- }, _callee72, this);
10306
+ }, _callee73, this);
10264
10307
  }));
10265
10308
 
10266
- function _getImport(_x95) {
10309
+ function _getImport(_x96) {
10267
10310
  return _getImport2.apply(this, arguments);
10268
10311
  }
10269
10312
 
@@ -10285,26 +10328,26 @@ var StreamChat = /*#__PURE__*/function () {
10285
10328
  }, {
10286
10329
  key: "_listImports",
10287
10330
  value: function () {
10288
- var _listImports2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee73(options) {
10289
- return _regeneratorRuntime.wrap(function _callee73$(_context73) {
10331
+ var _listImports2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee74(options) {
10332
+ return _regeneratorRuntime.wrap(function _callee74$(_context74) {
10290
10333
  while (1) {
10291
- switch (_context73.prev = _context73.next) {
10334
+ switch (_context74.prev = _context74.next) {
10292
10335
  case 0:
10293
- _context73.next = 2;
10336
+ _context74.next = 2;
10294
10337
  return this.get(this.baseURL + "/imports", options);
10295
10338
 
10296
10339
  case 2:
10297
- return _context73.abrupt("return", _context73.sent);
10340
+ return _context74.abrupt("return", _context74.sent);
10298
10341
 
10299
10342
  case 3:
10300
10343
  case "end":
10301
- return _context73.stop();
10344
+ return _context74.stop();
10302
10345
  }
10303
10346
  }
10304
- }, _callee73, this);
10347
+ }, _callee74, this);
10305
10348
  }));
10306
10349
 
10307
- function _listImports(_x96) {
10350
+ function _listImports(_x97) {
10308
10351
  return _listImports2.apply(this, arguments);
10309
10352
  }
10310
10353