stream-chat 8.48.0 → 8.50.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.
@@ -110,7 +110,7 @@ var Campaign = /*#__PURE__*/function () {
110
110
  key: "create",
111
111
  value: function () {
112
112
  var _create = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
113
- var _this$data, _this$data2, _this$data3, _this$data4, _this$data5, _this$data6, _this$data7, _this$data8;
113
+ var _this$data, _this$data2, _this$data3, _this$data4, _this$data5, _this$data6, _this$data7, _this$data8, _this$data9;
114
114
 
115
115
  var body, result;
116
116
  return _regeneratorRuntime.wrap(function _callee$(_context) {
@@ -122,11 +122,12 @@ var Campaign = /*#__PURE__*/function () {
122
122
  message_template: (_this$data = this.data) === null || _this$data === void 0 ? void 0 : _this$data.message_template,
123
123
  segment_ids: (_this$data2 = this.data) === null || _this$data2 === void 0 ? void 0 : _this$data2.segment_ids,
124
124
  sender_id: (_this$data3 = this.data) === null || _this$data3 === void 0 ? void 0 : _this$data3.sender_id,
125
- channel_template: (_this$data4 = this.data) === null || _this$data4 === void 0 ? void 0 : _this$data4.channel_template,
126
- create_channels: (_this$data5 = this.data) === null || _this$data5 === void 0 ? void 0 : _this$data5.create_channels,
127
- description: (_this$data6 = this.data) === null || _this$data6 === void 0 ? void 0 : _this$data6.description,
128
- name: (_this$data7 = this.data) === null || _this$data7 === void 0 ? void 0 : _this$data7.name,
129
- user_ids: (_this$data8 = this.data) === null || _this$data8 === void 0 ? void 0 : _this$data8.user_ids
125
+ sender_mode: (_this$data4 = this.data) === null || _this$data4 === void 0 ? void 0 : _this$data4.sender_mode,
126
+ channel_template: (_this$data5 = this.data) === null || _this$data5 === void 0 ? void 0 : _this$data5.channel_template,
127
+ create_channels: (_this$data6 = this.data) === null || _this$data6 === void 0 ? void 0 : _this$data6.create_channels,
128
+ description: (_this$data7 = this.data) === null || _this$data7 === void 0 ? void 0 : _this$data7.description,
129
+ name: (_this$data8 = this.data) === null || _this$data8 === void 0 ? void 0 : _this$data8.name,
130
+ user_ids: (_this$data9 = this.data) === null || _this$data9 === void 0 ? void 0 : _this$data9.user_ids
130
131
  };
131
132
  _context.next = 3;
132
133
  return this.client.createCampaign(body);
@@ -8551,21 +8552,18 @@ var Moderation = /*#__PURE__*/function () {
8551
8552
  }, {
8552
8553
  key: "upsertConfig",
8553
8554
  value: function () {
8554
- var _upsertConfig = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee8() {
8555
- var config,
8556
- _args8 = arguments;
8555
+ var _upsertConfig = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee8(config) {
8557
8556
  return _regeneratorRuntime.wrap(function _callee8$(_context8) {
8558
8557
  while (1) {
8559
8558
  switch (_context8.prev = _context8.next) {
8560
8559
  case 0:
8561
- config = _args8.length > 0 && _args8[0] !== undefined ? _args8[0] : {};
8562
- _context8.next = 3;
8560
+ _context8.next = 2;
8563
8561
  return this.client.post(this.client.baseURL + '/api/v2/moderation/config', config);
8564
8562
 
8565
- case 3:
8563
+ case 2:
8566
8564
  return _context8.abrupt("return", _context8.sent);
8567
8565
 
8568
- case 4:
8566
+ case 3:
8569
8567
  case "end":
8570
8568
  return _context8.stop();
8571
8569
  }
@@ -8573,7 +8571,7 @@ var Moderation = /*#__PURE__*/function () {
8573
8571
  }, _callee8, this);
8574
8572
  }));
8575
8573
 
8576
- function upsertConfig() {
8574
+ function upsertConfig(_x13) {
8577
8575
  return _upsertConfig.apply(this, arguments);
8578
8576
  }
8579
8577
 
@@ -8587,13 +8585,13 @@ var Moderation = /*#__PURE__*/function () {
8587
8585
  }, {
8588
8586
  key: "getConfig",
8589
8587
  value: function () {
8590
- var _getConfig = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee9(key) {
8588
+ var _getConfig = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee9(key, data) {
8591
8589
  return _regeneratorRuntime.wrap(function _callee9$(_context9) {
8592
8590
  while (1) {
8593
8591
  switch (_context9.prev = _context9.next) {
8594
8592
  case 0:
8595
8593
  _context9.next = 2;
8596
- return this.client.get(this.client.baseURL + '/api/v2/moderation/config/' + key);
8594
+ return this.client.get(this.client.baseURL + '/api/v2/moderation/config/' + key, data);
8597
8595
 
8598
8596
  case 2:
8599
8597
  return _context9.abrupt("return", _context9.sent);
@@ -8606,7 +8604,7 @@ var Moderation = /*#__PURE__*/function () {
8606
8604
  }, _callee9, this);
8607
8605
  }));
8608
8606
 
8609
- function getConfig(_x13) {
8607
+ function getConfig(_x14, _x15) {
8610
8608
  return _getConfig.apply(this, arguments);
8611
8609
  }
8612
8610
 
@@ -8615,13 +8613,13 @@ var Moderation = /*#__PURE__*/function () {
8615
8613
  }, {
8616
8614
  key: "deleteConfig",
8617
8615
  value: function () {
8618
- var _deleteConfig = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee10(key) {
8616
+ var _deleteConfig = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee10(key, data) {
8619
8617
  return _regeneratorRuntime.wrap(function _callee10$(_context10) {
8620
8618
  while (1) {
8621
8619
  switch (_context10.prev = _context10.next) {
8622
8620
  case 0:
8623
8621
  _context10.next = 2;
8624
- return this.client.delete(this.client.baseURL + '/api/v2/moderation/config/' + key);
8622
+ return this.client.delete(this.client.baseURL + '/api/v2/moderation/config/' + key, data);
8625
8623
 
8626
8624
  case 2:
8627
8625
  return _context10.abrupt("return", _context10.sent);
@@ -8634,7 +8632,7 @@ var Moderation = /*#__PURE__*/function () {
8634
8632
  }, _callee10, this);
8635
8633
  }));
8636
8634
 
8637
- function deleteConfig(_x14) {
8635
+ function deleteConfig(_x16, _x17) {
8638
8636
  return _deleteConfig.apply(this, arguments);
8639
8637
  }
8640
8638
 
@@ -8675,7 +8673,7 @@ var Moderation = /*#__PURE__*/function () {
8675
8673
  }, _callee11, this);
8676
8674
  }));
8677
8675
 
8678
- function queryConfigs(_x15, _x16) {
8676
+ function queryConfigs(_x18, _x19) {
8679
8677
  return _queryConfigs.apply(this, arguments);
8680
8678
  }
8681
8679
 
@@ -8709,7 +8707,7 @@ var Moderation = /*#__PURE__*/function () {
8709
8707
  }, _callee12, this);
8710
8708
  }));
8711
8709
 
8712
- function submitAction(_x17, _x18) {
8710
+ function submitAction(_x20, _x21) {
8713
8711
  return _submitAction.apply(this, arguments);
8714
8712
  }
8715
8713
 
@@ -8758,7 +8756,7 @@ var Moderation = /*#__PURE__*/function () {
8758
8756
  }, _callee13, this);
8759
8757
  }));
8760
8758
 
8761
- function check(_x19, _x20, _x21, _x22, _x23, _x24) {
8759
+ function check(_x22, _x23, _x24, _x25, _x26, _x27) {
8762
8760
  return _check.apply(this, arguments);
8763
8761
  }
8764
8762
 
@@ -8805,7 +8803,7 @@ var Moderation = /*#__PURE__*/function () {
8805
8803
  }, _callee14, this);
8806
8804
  }));
8807
8805
 
8808
- function addCustomFlags(_x25, _x26, _x27, _x28, _x29) {
8806
+ function addCustomFlags(_x28, _x29, _x30, _x31, _x32) {
8809
8807
  return _addCustomFlags.apply(this, arguments);
8810
8808
  }
8811
8809
 
@@ -8840,7 +8838,7 @@ var Moderation = /*#__PURE__*/function () {
8840
8838
  }, _callee15, this);
8841
8839
  }));
8842
8840
 
8843
- function addCustomMessageFlags(_x30, _x31) {
8841
+ function addCustomMessageFlags(_x33, _x34) {
8844
8842
  return _addCustomMessageFlags.apply(this, arguments);
8845
8843
  }
8846
8844
 
@@ -14833,7 +14831,7 @@ var StreamChat = /*#__PURE__*/function () {
14833
14831
  }, {
14834
14832
  key: "getUserAgent",
14835
14833
  value: function getUserAgent() {
14836
- return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.48.0");
14834
+ return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.50.0");
14837
14835
  }
14838
14836
  }, {
14839
14837
  key: "setUserAgent",