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.
package/dist/index.es.js CHANGED
@@ -113,7 +113,7 @@ var Campaign = /*#__PURE__*/function () {
113
113
  key: "create",
114
114
  value: function () {
115
115
  var _create = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
116
- var _this$data, _this$data2, _this$data3, _this$data4, _this$data5, _this$data6, _this$data7, _this$data8;
116
+ var _this$data, _this$data2, _this$data3, _this$data4, _this$data5, _this$data6, _this$data7, _this$data8, _this$data9;
117
117
 
118
118
  var body, result;
119
119
  return _regeneratorRuntime.wrap(function _callee$(_context) {
@@ -125,11 +125,12 @@ var Campaign = /*#__PURE__*/function () {
125
125
  message_template: (_this$data = this.data) === null || _this$data === void 0 ? void 0 : _this$data.message_template,
126
126
  segment_ids: (_this$data2 = this.data) === null || _this$data2 === void 0 ? void 0 : _this$data2.segment_ids,
127
127
  sender_id: (_this$data3 = this.data) === null || _this$data3 === void 0 ? void 0 : _this$data3.sender_id,
128
- channel_template: (_this$data4 = this.data) === null || _this$data4 === void 0 ? void 0 : _this$data4.channel_template,
129
- create_channels: (_this$data5 = this.data) === null || _this$data5 === void 0 ? void 0 : _this$data5.create_channels,
130
- description: (_this$data6 = this.data) === null || _this$data6 === void 0 ? void 0 : _this$data6.description,
131
- name: (_this$data7 = this.data) === null || _this$data7 === void 0 ? void 0 : _this$data7.name,
132
- user_ids: (_this$data8 = this.data) === null || _this$data8 === void 0 ? void 0 : _this$data8.user_ids
128
+ sender_mode: (_this$data4 = this.data) === null || _this$data4 === void 0 ? void 0 : _this$data4.sender_mode,
129
+ channel_template: (_this$data5 = this.data) === null || _this$data5 === void 0 ? void 0 : _this$data5.channel_template,
130
+ create_channels: (_this$data6 = this.data) === null || _this$data6 === void 0 ? void 0 : _this$data6.create_channels,
131
+ description: (_this$data7 = this.data) === null || _this$data7 === void 0 ? void 0 : _this$data7.description,
132
+ name: (_this$data8 = this.data) === null || _this$data8 === void 0 ? void 0 : _this$data8.name,
133
+ user_ids: (_this$data9 = this.data) === null || _this$data9 === void 0 ? void 0 : _this$data9.user_ids
133
134
  };
134
135
  _context.next = 3;
135
136
  return this.client.createCampaign(body);
@@ -8554,21 +8555,18 @@ var Moderation = /*#__PURE__*/function () {
8554
8555
  }, {
8555
8556
  key: "upsertConfig",
8556
8557
  value: function () {
8557
- var _upsertConfig = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee8() {
8558
- var config,
8559
- _args8 = arguments;
8558
+ var _upsertConfig = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee8(config) {
8560
8559
  return _regeneratorRuntime.wrap(function _callee8$(_context8) {
8561
8560
  while (1) {
8562
8561
  switch (_context8.prev = _context8.next) {
8563
8562
  case 0:
8564
- config = _args8.length > 0 && _args8[0] !== undefined ? _args8[0] : {};
8565
- _context8.next = 3;
8563
+ _context8.next = 2;
8566
8564
  return this.client.post(this.client.baseURL + '/api/v2/moderation/config', config);
8567
8565
 
8568
- case 3:
8566
+ case 2:
8569
8567
  return _context8.abrupt("return", _context8.sent);
8570
8568
 
8571
- case 4:
8569
+ case 3:
8572
8570
  case "end":
8573
8571
  return _context8.stop();
8574
8572
  }
@@ -8576,7 +8574,7 @@ var Moderation = /*#__PURE__*/function () {
8576
8574
  }, _callee8, this);
8577
8575
  }));
8578
8576
 
8579
- function upsertConfig() {
8577
+ function upsertConfig(_x13) {
8580
8578
  return _upsertConfig.apply(this, arguments);
8581
8579
  }
8582
8580
 
@@ -8590,13 +8588,13 @@ var Moderation = /*#__PURE__*/function () {
8590
8588
  }, {
8591
8589
  key: "getConfig",
8592
8590
  value: function () {
8593
- var _getConfig = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee9(key) {
8591
+ var _getConfig = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee9(key, data) {
8594
8592
  return _regeneratorRuntime.wrap(function _callee9$(_context9) {
8595
8593
  while (1) {
8596
8594
  switch (_context9.prev = _context9.next) {
8597
8595
  case 0:
8598
8596
  _context9.next = 2;
8599
- return this.client.get(this.client.baseURL + '/api/v2/moderation/config/' + key);
8597
+ return this.client.get(this.client.baseURL + '/api/v2/moderation/config/' + key, data);
8600
8598
 
8601
8599
  case 2:
8602
8600
  return _context9.abrupt("return", _context9.sent);
@@ -8609,7 +8607,7 @@ var Moderation = /*#__PURE__*/function () {
8609
8607
  }, _callee9, this);
8610
8608
  }));
8611
8609
 
8612
- function getConfig(_x13) {
8610
+ function getConfig(_x14, _x15) {
8613
8611
  return _getConfig.apply(this, arguments);
8614
8612
  }
8615
8613
 
@@ -8618,13 +8616,13 @@ var Moderation = /*#__PURE__*/function () {
8618
8616
  }, {
8619
8617
  key: "deleteConfig",
8620
8618
  value: function () {
8621
- var _deleteConfig = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee10(key) {
8619
+ var _deleteConfig = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee10(key, data) {
8622
8620
  return _regeneratorRuntime.wrap(function _callee10$(_context10) {
8623
8621
  while (1) {
8624
8622
  switch (_context10.prev = _context10.next) {
8625
8623
  case 0:
8626
8624
  _context10.next = 2;
8627
- return this.client.delete(this.client.baseURL + '/api/v2/moderation/config/' + key);
8625
+ return this.client.delete(this.client.baseURL + '/api/v2/moderation/config/' + key, data);
8628
8626
 
8629
8627
  case 2:
8630
8628
  return _context10.abrupt("return", _context10.sent);
@@ -8637,7 +8635,7 @@ var Moderation = /*#__PURE__*/function () {
8637
8635
  }, _callee10, this);
8638
8636
  }));
8639
8637
 
8640
- function deleteConfig(_x14) {
8638
+ function deleteConfig(_x16, _x17) {
8641
8639
  return _deleteConfig.apply(this, arguments);
8642
8640
  }
8643
8641
 
@@ -8678,7 +8676,7 @@ var Moderation = /*#__PURE__*/function () {
8678
8676
  }, _callee11, this);
8679
8677
  }));
8680
8678
 
8681
- function queryConfigs(_x15, _x16) {
8679
+ function queryConfigs(_x18, _x19) {
8682
8680
  return _queryConfigs.apply(this, arguments);
8683
8681
  }
8684
8682
 
@@ -8712,7 +8710,7 @@ var Moderation = /*#__PURE__*/function () {
8712
8710
  }, _callee12, this);
8713
8711
  }));
8714
8712
 
8715
- function submitAction(_x17, _x18) {
8713
+ function submitAction(_x20, _x21) {
8716
8714
  return _submitAction.apply(this, arguments);
8717
8715
  }
8718
8716
 
@@ -8761,7 +8759,7 @@ var Moderation = /*#__PURE__*/function () {
8761
8759
  }, _callee13, this);
8762
8760
  }));
8763
8761
 
8764
- function check(_x19, _x20, _x21, _x22, _x23, _x24) {
8762
+ function check(_x22, _x23, _x24, _x25, _x26, _x27) {
8765
8763
  return _check.apply(this, arguments);
8766
8764
  }
8767
8765
 
@@ -8808,7 +8806,7 @@ var Moderation = /*#__PURE__*/function () {
8808
8806
  }, _callee14, this);
8809
8807
  }));
8810
8808
 
8811
- function addCustomFlags(_x25, _x26, _x27, _x28, _x29) {
8809
+ function addCustomFlags(_x28, _x29, _x30, _x31, _x32) {
8812
8810
  return _addCustomFlags.apply(this, arguments);
8813
8811
  }
8814
8812
 
@@ -8843,7 +8841,7 @@ var Moderation = /*#__PURE__*/function () {
8843
8841
  }, _callee15, this);
8844
8842
  }));
8845
8843
 
8846
- function addCustomMessageFlags(_x30, _x31) {
8844
+ function addCustomMessageFlags(_x33, _x34) {
8847
8845
  return _addCustomMessageFlags.apply(this, arguments);
8848
8846
  }
8849
8847
 
@@ -14836,7 +14834,7 @@ var StreamChat = /*#__PURE__*/function () {
14836
14834
  }, {
14837
14835
  key: "getUserAgent",
14838
14836
  value: function getUserAgent() {
14839
- return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.48.0");
14837
+ return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.50.0");
14840
14838
  }
14841
14839
  }, {
14842
14840
  key: "setUserAgent",