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.es.js CHANGED
@@ -6242,28 +6242,17 @@ var Campaign = /*#__PURE__*/function () {
6242
6242
  return _delete;
6243
6243
  }()
6244
6244
  }, {
6245
- key: "schedule",
6245
+ key: "stop",
6246
6246
  value: function () {
6247
- var _schedule = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee5(params) {
6248
- var scheduledFor, _yield$this$client$pa, campaign;
6249
-
6247
+ var _stop = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee5() {
6250
6248
  return _regeneratorRuntime.wrap(function _callee5$(_context5) {
6251
6249
  while (1) {
6252
6250
  switch (_context5.prev = _context5.next) {
6253
6251
  case 0:
6254
6252
  this.verifyCampaignId();
6255
- scheduledFor = params.scheduledFor;
6256
- _context5.next = 4;
6257
- return this.client.patch(this.client.baseURL + "/campaigns/".concat(this.id, "/schedule"), {
6258
- scheduled_for: scheduledFor
6259
- });
6260
-
6261
- case 4:
6262
- _yield$this$client$pa = _context5.sent;
6263
- campaign = _yield$this$client$pa.campaign;
6264
- return _context5.abrupt("return", campaign);
6253
+ return _context5.abrupt("return", this.client.patch(this.client.baseURL + "/campaigns/".concat(this.id, "/stop")));
6265
6254
 
6266
- case 7:
6255
+ case 2:
6267
6256
  case "end":
6268
6257
  return _context5.stop();
6269
6258
  }
@@ -6271,104 +6260,29 @@ var Campaign = /*#__PURE__*/function () {
6271
6260
  }, _callee5, this);
6272
6261
  }));
6273
6262
 
6274
- function schedule(_x3) {
6275
- return _schedule.apply(this, arguments);
6276
- }
6277
-
6278
- return schedule;
6279
- }()
6280
- }, {
6281
- key: "stop",
6282
- value: function () {
6283
- var _stop = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee6() {
6284
- return _regeneratorRuntime.wrap(function _callee6$(_context6) {
6285
- while (1) {
6286
- switch (_context6.prev = _context6.next) {
6287
- case 0:
6288
- this.verifyCampaignId();
6289
- return _context6.abrupt("return", this.client.patch(this.client.baseURL + "/campaigns/".concat(this.id, "/stop")));
6290
-
6291
- case 2:
6292
- case "end":
6293
- return _context6.stop();
6294
- }
6295
- }
6296
- }, _callee6, this);
6297
- }));
6298
-
6299
6263
  function stop() {
6300
6264
  return _stop.apply(this, arguments);
6301
6265
  }
6302
6266
 
6303
6267
  return stop;
6304
6268
  }()
6305
- }, {
6306
- key: "pause",
6307
- value: function () {
6308
- var _pause = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee7() {
6309
- return _regeneratorRuntime.wrap(function _callee7$(_context7) {
6310
- while (1) {
6311
- switch (_context7.prev = _context7.next) {
6312
- case 0:
6313
- this.verifyCampaignId();
6314
- return _context7.abrupt("return", this.client.patch(this.client.baseURL + "/campaigns/".concat(this.id, "/pause")));
6315
-
6316
- case 2:
6317
- case "end":
6318
- return _context7.stop();
6319
- }
6320
- }
6321
- }, _callee7, this);
6322
- }));
6323
-
6324
- function pause() {
6325
- return _pause.apply(this, arguments);
6326
- }
6327
-
6328
- return pause;
6329
- }()
6330
- }, {
6331
- key: "resume",
6332
- value: function () {
6333
- var _resume = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee8() {
6334
- return _regeneratorRuntime.wrap(function _callee8$(_context8) {
6335
- while (1) {
6336
- switch (_context8.prev = _context8.next) {
6337
- case 0:
6338
- this.verifyCampaignId();
6339
- return _context8.abrupt("return", this.client.patch(this.client.baseURL + "/campaigns/".concat(this.id, "/resume")));
6340
-
6341
- case 2:
6342
- case "end":
6343
- return _context8.stop();
6344
- }
6345
- }
6346
- }, _callee8, this);
6347
- }));
6348
-
6349
- function resume() {
6350
- return _resume.apply(this, arguments);
6351
- }
6352
-
6353
- return resume;
6354
- }()
6355
6269
  }, {
6356
6270
  key: "get",
6357
6271
  value: function () {
6358
- var _get = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee9() {
6359
- return _regeneratorRuntime.wrap(function _callee9$(_context9) {
6272
+ var _get = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee6() {
6273
+ return _regeneratorRuntime.wrap(function _callee6$(_context6) {
6360
6274
  while (1) {
6361
- switch (_context9.prev = _context9.next) {
6275
+ switch (_context6.prev = _context6.next) {
6362
6276
  case 0:
6363
6277
  this.verifyCampaignId();
6364
- return _context9.abrupt("return", this.client.getCampaign(this.id));
6278
+ return _context6.abrupt("return", this.client.getCampaign(this.id));
6365
6279
 
6366
6280
  case 2:
6367
6281
  case "end":
6368
- return _context9.stop();
6282
+ return _context6.stop();
6369
6283
  }
6370
6284
  }
6371
- }, _callee9, this);
6285
+ }, _callee6, this);
6372
6286
  }));
6373
6287
 
6374
6288
  function get() {
@@ -11159,7 +11073,7 @@ var StreamChat = /*#__PURE__*/function () {
11159
11073
  }, {
11160
11074
  key: "getUserAgent",
11161
11075
  value: function getUserAgent() {
11162
- return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.18.1");
11076
+ return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.18.2");
11163
11077
  }
11164
11078
  }, {
11165
11079
  key: "setUserAgent",