stream-chat 8.18.2 → 8.19.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.
@@ -6158,14 +6158,14 @@ var Campaign = /*#__PURE__*/function () {
6158
6158
  }, {
6159
6159
  key: "start",
6160
6160
  value: function () {
6161
- var _start = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(scheduledFor) {
6161
+ var _start = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(options) {
6162
6162
  return _regeneratorRuntime.wrap(function _callee2$(_context2) {
6163
6163
  while (1) {
6164
6164
  switch (_context2.prev = _context2.next) {
6165
6165
  case 0:
6166
6166
  this.verifyCampaignId();
6167
6167
  _context2.next = 3;
6168
- return this.client.startCampaign(this.id, scheduledFor);
6168
+ return this.client.startCampaign(this.id, options);
6169
6169
 
6170
6170
  case 3:
6171
6171
  return _context2.abrupt("return", _context2.sent);
@@ -11070,7 +11070,7 @@ var StreamChat = /*#__PURE__*/function () {
11070
11070
  }, {
11071
11071
  key: "getUserAgent",
11072
11072
  value: function getUserAgent() {
11073
- return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.18.2");
11073
+ return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.19.0");
11074
11074
  }
11075
11075
  }, {
11076
11076
  key: "setUserAgent",
@@ -11844,14 +11844,15 @@ var StreamChat = /*#__PURE__*/function () {
11844
11844
  }, {
11845
11845
  key: "startCampaign",
11846
11846
  value: function () {
11847
- var _startCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee76(id, scheduledFor) {
11847
+ var _startCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee76(id, options) {
11848
11848
  return _regeneratorRuntime.wrap(function _callee76$(_context76) {
11849
11849
  while (1) {
11850
11850
  switch (_context76.prev = _context76.next) {
11851
11851
  case 0:
11852
11852
  this.validateServerSideAuth();
11853
11853
  return _context76.abrupt("return", this.post(this.baseURL + "/campaigns/".concat(id, "/start"), {
11854
- scheduled_for: scheduledFor
11854
+ scheduled_for: options === null || options === void 0 ? void 0 : options.scheduledFor,
11855
+ stop_at: options === null || options === void 0 ? void 0 : options.stopAt
11855
11856
  }));
11856
11857
 
11857
11858
  case 2: