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/browser.js CHANGED
@@ -135,7 +135,7 @@ var Campaign = /*#__PURE__*/function () {
135
135
  key: "create",
136
136
  value: function () {
137
137
  var _create = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee() {
138
- var _this$data, _this$data2, _this$data3, _this$data4, _this$data5, _this$data6, _this$data7, _this$data8;
138
+ var _this$data, _this$data2, _this$data3, _this$data4, _this$data5, _this$data6, _this$data7, _this$data8, _this$data9;
139
139
 
140
140
  var body, result;
141
141
  return _regeneratorRuntime__default['default'].wrap(function _callee$(_context) {
@@ -147,11 +147,12 @@ var Campaign = /*#__PURE__*/function () {
147
147
  message_template: (_this$data = this.data) === null || _this$data === void 0 ? void 0 : _this$data.message_template,
148
148
  segment_ids: (_this$data2 = this.data) === null || _this$data2 === void 0 ? void 0 : _this$data2.segment_ids,
149
149
  sender_id: (_this$data3 = this.data) === null || _this$data3 === void 0 ? void 0 : _this$data3.sender_id,
150
- channel_template: (_this$data4 = this.data) === null || _this$data4 === void 0 ? void 0 : _this$data4.channel_template,
151
- create_channels: (_this$data5 = this.data) === null || _this$data5 === void 0 ? void 0 : _this$data5.create_channels,
152
- description: (_this$data6 = this.data) === null || _this$data6 === void 0 ? void 0 : _this$data6.description,
153
- name: (_this$data7 = this.data) === null || _this$data7 === void 0 ? void 0 : _this$data7.name,
154
- user_ids: (_this$data8 = this.data) === null || _this$data8 === void 0 ? void 0 : _this$data8.user_ids
150
+ sender_mode: (_this$data4 = this.data) === null || _this$data4 === void 0 ? void 0 : _this$data4.sender_mode,
151
+ channel_template: (_this$data5 = this.data) === null || _this$data5 === void 0 ? void 0 : _this$data5.channel_template,
152
+ create_channels: (_this$data6 = this.data) === null || _this$data6 === void 0 ? void 0 : _this$data6.create_channels,
153
+ description: (_this$data7 = this.data) === null || _this$data7 === void 0 ? void 0 : _this$data7.description,
154
+ name: (_this$data8 = this.data) === null || _this$data8 === void 0 ? void 0 : _this$data8.name,
155
+ user_ids: (_this$data9 = this.data) === null || _this$data9 === void 0 ? void 0 : _this$data9.user_ids
155
156
  };
156
157
  _context.next = 3;
157
158
  return this.client.createCampaign(body);
@@ -8576,21 +8577,18 @@ var Moderation = /*#__PURE__*/function () {
8576
8577
  }, {
8577
8578
  key: "upsertConfig",
8578
8579
  value: function () {
8579
- var _upsertConfig = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee8() {
8580
- var config,
8581
- _args8 = arguments;
8580
+ var _upsertConfig = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee8(config) {
8582
8581
  return _regeneratorRuntime__default['default'].wrap(function _callee8$(_context8) {
8583
8582
  while (1) {
8584
8583
  switch (_context8.prev = _context8.next) {
8585
8584
  case 0:
8586
- config = _args8.length > 0 && _args8[0] !== undefined ? _args8[0] : {};
8587
- _context8.next = 3;
8585
+ _context8.next = 2;
8588
8586
  return this.client.post(this.client.baseURL + '/api/v2/moderation/config', config);
8589
8587
 
8590
- case 3:
8588
+ case 2:
8591
8589
  return _context8.abrupt("return", _context8.sent);
8592
8590
 
8593
- case 4:
8591
+ case 3:
8594
8592
  case "end":
8595
8593
  return _context8.stop();
8596
8594
  }
@@ -8598,7 +8596,7 @@ var Moderation = /*#__PURE__*/function () {
8598
8596
  }, _callee8, this);
8599
8597
  }));
8600
8598
 
8601
- function upsertConfig() {
8599
+ function upsertConfig(_x13) {
8602
8600
  return _upsertConfig.apply(this, arguments);
8603
8601
  }
8604
8602
 
@@ -8612,13 +8610,13 @@ var Moderation = /*#__PURE__*/function () {
8612
8610
  }, {
8613
8611
  key: "getConfig",
8614
8612
  value: function () {
8615
- var _getConfig = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee9(key) {
8613
+ var _getConfig = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee9(key, data) {
8616
8614
  return _regeneratorRuntime__default['default'].wrap(function _callee9$(_context9) {
8617
8615
  while (1) {
8618
8616
  switch (_context9.prev = _context9.next) {
8619
8617
  case 0:
8620
8618
  _context9.next = 2;
8621
- return this.client.get(this.client.baseURL + '/api/v2/moderation/config/' + key);
8619
+ return this.client.get(this.client.baseURL + '/api/v2/moderation/config/' + key, data);
8622
8620
 
8623
8621
  case 2:
8624
8622
  return _context9.abrupt("return", _context9.sent);
@@ -8631,7 +8629,7 @@ var Moderation = /*#__PURE__*/function () {
8631
8629
  }, _callee9, this);
8632
8630
  }));
8633
8631
 
8634
- function getConfig(_x13) {
8632
+ function getConfig(_x14, _x15) {
8635
8633
  return _getConfig.apply(this, arguments);
8636
8634
  }
8637
8635
 
@@ -8640,13 +8638,13 @@ var Moderation = /*#__PURE__*/function () {
8640
8638
  }, {
8641
8639
  key: "deleteConfig",
8642
8640
  value: function () {
8643
- var _deleteConfig = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee10(key) {
8641
+ var _deleteConfig = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee10(key, data) {
8644
8642
  return _regeneratorRuntime__default['default'].wrap(function _callee10$(_context10) {
8645
8643
  while (1) {
8646
8644
  switch (_context10.prev = _context10.next) {
8647
8645
  case 0:
8648
8646
  _context10.next = 2;
8649
- return this.client.delete(this.client.baseURL + '/api/v2/moderation/config/' + key);
8647
+ return this.client.delete(this.client.baseURL + '/api/v2/moderation/config/' + key, data);
8650
8648
 
8651
8649
  case 2:
8652
8650
  return _context10.abrupt("return", _context10.sent);
@@ -8659,7 +8657,7 @@ var Moderation = /*#__PURE__*/function () {
8659
8657
  }, _callee10, this);
8660
8658
  }));
8661
8659
 
8662
- function deleteConfig(_x14) {
8660
+ function deleteConfig(_x16, _x17) {
8663
8661
  return _deleteConfig.apply(this, arguments);
8664
8662
  }
8665
8663
 
@@ -8700,7 +8698,7 @@ var Moderation = /*#__PURE__*/function () {
8700
8698
  }, _callee11, this);
8701
8699
  }));
8702
8700
 
8703
- function queryConfigs(_x15, _x16) {
8701
+ function queryConfigs(_x18, _x19) {
8704
8702
  return _queryConfigs.apply(this, arguments);
8705
8703
  }
8706
8704
 
@@ -8734,7 +8732,7 @@ var Moderation = /*#__PURE__*/function () {
8734
8732
  }, _callee12, this);
8735
8733
  }));
8736
8734
 
8737
- function submitAction(_x17, _x18) {
8735
+ function submitAction(_x20, _x21) {
8738
8736
  return _submitAction.apply(this, arguments);
8739
8737
  }
8740
8738
 
@@ -8783,7 +8781,7 @@ var Moderation = /*#__PURE__*/function () {
8783
8781
  }, _callee13, this);
8784
8782
  }));
8785
8783
 
8786
- function check(_x19, _x20, _x21, _x22, _x23, _x24) {
8784
+ function check(_x22, _x23, _x24, _x25, _x26, _x27) {
8787
8785
  return _check.apply(this, arguments);
8788
8786
  }
8789
8787
 
@@ -8830,7 +8828,7 @@ var Moderation = /*#__PURE__*/function () {
8830
8828
  }, _callee14, this);
8831
8829
  }));
8832
8830
 
8833
- function addCustomFlags(_x25, _x26, _x27, _x28, _x29) {
8831
+ function addCustomFlags(_x28, _x29, _x30, _x31, _x32) {
8834
8832
  return _addCustomFlags.apply(this, arguments);
8835
8833
  }
8836
8834
 
@@ -8865,7 +8863,7 @@ var Moderation = /*#__PURE__*/function () {
8865
8863
  }, _callee15, this);
8866
8864
  }));
8867
8865
 
8868
- function addCustomMessageFlags(_x30, _x31) {
8866
+ function addCustomMessageFlags(_x33, _x34) {
8869
8867
  return _addCustomMessageFlags.apply(this, arguments);
8870
8868
  }
8871
8869
 
@@ -14858,7 +14856,7 @@ var StreamChat = /*#__PURE__*/function () {
14858
14856
  }, {
14859
14857
  key: "getUserAgent",
14860
14858
  value: function getUserAgent() {
14861
- return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.48.0");
14859
+ return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.50.0");
14862
14860
  }
14863
14861
  }, {
14864
14862
  key: "setUserAgent",