stream-chat 8.18.1 → 8.18.2

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
@@ -6270,28 +6270,17 @@ var Campaign = /*#__PURE__*/function () {
6270
6270
  return _delete;
6271
6271
  }()
6272
6272
  }, {
6273
- key: "schedule",
6273
+ key: "stop",
6274
6274
  value: function () {
6275
- var _schedule = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee5(params) {
6276
- var scheduledFor, _yield$this$client$pa, campaign;
6277
-
6275
+ var _stop = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee5() {
6278
6276
  return _regeneratorRuntime__default['default'].wrap(function _callee5$(_context5) {
6279
6277
  while (1) {
6280
6278
  switch (_context5.prev = _context5.next) {
6281
6279
  case 0:
6282
6280
  this.verifyCampaignId();
6283
- scheduledFor = params.scheduledFor;
6284
- _context5.next = 4;
6285
- return this.client.patch(this.client.baseURL + "/campaigns/".concat(this.id, "/schedule"), {
6286
- scheduled_for: scheduledFor
6287
- });
6288
-
6289
- case 4:
6290
- _yield$this$client$pa = _context5.sent;
6291
- campaign = _yield$this$client$pa.campaign;
6292
- return _context5.abrupt("return", campaign);
6281
+ return _context5.abrupt("return", this.client.patch(this.client.baseURL + "/campaigns/".concat(this.id, "/stop")));
6293
6282
 
6294
- case 7:
6283
+ case 2:
6295
6284
  case "end":
6296
6285
  return _context5.stop();
6297
6286
  }
@@ -6299,104 +6288,29 @@ var Campaign = /*#__PURE__*/function () {
6299
6288
  }, _callee5, this);
6300
6289
  }));
6301
6290
 
6302
- function schedule(_x3) {
6303
- return _schedule.apply(this, arguments);
6304
- }
6305
-
6306
- return schedule;
6307
- }()
6308
- }, {
6309
- key: "stop",
6310
- value: function () {
6311
- var _stop = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee6() {
6312
- return _regeneratorRuntime__default['default'].wrap(function _callee6$(_context6) {
6313
- while (1) {
6314
- switch (_context6.prev = _context6.next) {
6315
- case 0:
6316
- this.verifyCampaignId();
6317
- return _context6.abrupt("return", this.client.patch(this.client.baseURL + "/campaigns/".concat(this.id, "/stop")));
6318
-
6319
- case 2:
6320
- case "end":
6321
- return _context6.stop();
6322
- }
6323
- }
6324
- }, _callee6, this);
6325
- }));
6326
-
6327
6291
  function stop() {
6328
6292
  return _stop.apply(this, arguments);
6329
6293
  }
6330
6294
 
6331
6295
  return stop;
6332
6296
  }()
6333
- }, {
6334
- key: "pause",
6335
- value: function () {
6336
- var _pause = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee7() {
6337
- return _regeneratorRuntime__default['default'].wrap(function _callee7$(_context7) {
6338
- while (1) {
6339
- switch (_context7.prev = _context7.next) {
6340
- case 0:
6341
- this.verifyCampaignId();
6342
- return _context7.abrupt("return", this.client.patch(this.client.baseURL + "/campaigns/".concat(this.id, "/pause")));
6343
-
6344
- case 2:
6345
- case "end":
6346
- return _context7.stop();
6347
- }
6348
- }
6349
- }, _callee7, this);
6350
- }));
6351
-
6352
- function pause() {
6353
- return _pause.apply(this, arguments);
6354
- }
6355
-
6356
- return pause;
6357
- }()
6358
- }, {
6359
- key: "resume",
6360
- value: function () {
6361
- var _resume = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee8() {
6362
- return _regeneratorRuntime__default['default'].wrap(function _callee8$(_context8) {
6363
- while (1) {
6364
- switch (_context8.prev = _context8.next) {
6365
- case 0:
6366
- this.verifyCampaignId();
6367
- return _context8.abrupt("return", this.client.patch(this.client.baseURL + "/campaigns/".concat(this.id, "/resume")));
6368
-
6369
- case 2:
6370
- case "end":
6371
- return _context8.stop();
6372
- }
6373
- }
6374
- }, _callee8, this);
6375
- }));
6376
-
6377
- function resume() {
6378
- return _resume.apply(this, arguments);
6379
- }
6380
-
6381
- return resume;
6382
- }()
6383
6297
  }, {
6384
6298
  key: "get",
6385
6299
  value: function () {
6386
- var _get = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee9() {
6387
- return _regeneratorRuntime__default['default'].wrap(function _callee9$(_context9) {
6300
+ var _get = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee6() {
6301
+ return _regeneratorRuntime__default['default'].wrap(function _callee6$(_context6) {
6388
6302
  while (1) {
6389
- switch (_context9.prev = _context9.next) {
6303
+ switch (_context6.prev = _context6.next) {
6390
6304
  case 0:
6391
6305
  this.verifyCampaignId();
6392
- return _context9.abrupt("return", this.client.getCampaign(this.id));
6306
+ return _context6.abrupt("return", this.client.getCampaign(this.id));
6393
6307
 
6394
6308
  case 2:
6395
6309
  case "end":
6396
- return _context9.stop();
6310
+ return _context6.stop();
6397
6311
  }
6398
6312
  }
6399
- }, _callee9, this);
6313
+ }, _callee6, this);
6400
6314
  }));
6401
6315
 
6402
6316
  function get() {
@@ -11187,7 +11101,7 @@ var StreamChat = /*#__PURE__*/function () {
11187
11101
  }, {
11188
11102
  key: "getUserAgent",
11189
11103
  value: function getUserAgent() {
11190
- return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.18.1");
11104
+ return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.18.2");
11191
11105
  }
11192
11106
  }, {
11193
11107
  key: "setUserAgent",