stream-chat 8.58.0 → 8.59.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, _this$data9;
113
+ var _this$data, _this$data2, _this$data3, _this$data4, _this$data5, _this$data6, _this$data7, _this$data8, _this$data9, _this$data10, _this$data11, _this$data12;
114
114
 
115
115
  var body, result;
116
116
  return _regeneratorRuntime.wrap(function _callee$(_context) {
@@ -125,9 +125,12 @@ var Campaign = /*#__PURE__*/function () {
125
125
  sender_mode: (_this$data4 = this.data) === null || _this$data4 === void 0 ? void 0 : _this$data4.sender_mode,
126
126
  channel_template: (_this$data5 = this.data) === null || _this$data5 === void 0 ? void 0 : _this$data5.channel_template,
127
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
128
+ show_channels: (_this$data7 = this.data) === null || _this$data7 === void 0 ? void 0 : _this$data7.show_channels,
129
+ description: (_this$data8 = this.data) === null || _this$data8 === void 0 ? void 0 : _this$data8.description,
130
+ name: (_this$data9 = this.data) === null || _this$data9 === void 0 ? void 0 : _this$data9.name,
131
+ skip_push: (_this$data10 = this.data) === null || _this$data10 === void 0 ? void 0 : _this$data10.skip_push,
132
+ skip_webhook: (_this$data11 = this.data) === null || _this$data11 === void 0 ? void 0 : _this$data11.skip_webhook,
133
+ user_ids: (_this$data12 = this.data) === null || _this$data12 === void 0 ? void 0 : _this$data12.user_ids
131
134
  };
132
135
  _context.next = 3;
133
136
  return this.client.createCampaign(body);
@@ -16308,7 +16311,7 @@ var StreamChat = /*#__PURE__*/function () {
16308
16311
  return this.userAgent;
16309
16312
  }
16310
16313
 
16311
- var version = "8.58.0";
16314
+ var version = "8.59.0";
16312
16315
  var clientBundle = "";
16313
16316
  var userAgentString = '';
16314
16317
 
@@ -18573,19 +18576,23 @@ var StreamChat = /*#__PURE__*/function () {
18573
18576
  value: function () {
18574
18577
  var _queryDrafts = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee118() {
18575
18578
  var options,
18579
+ payload,
18576
18580
  _args118 = arguments;
18577
18581
  return _regeneratorRuntime.wrap(function _callee118$(_context118) {
18578
18582
  while (1) {
18579
18583
  switch (_context118.prev = _context118.next) {
18580
18584
  case 0:
18581
18585
  options = _args118.length > 0 && _args118[0] !== undefined ? _args118[0] : {};
18582
- _context118.next = 3;
18583
- return this.post(this.baseURL + '/drafts/query', options);
18586
+ payload = _objectSpread$1(_objectSpread$1({}, options), {}, {
18587
+ sort: options.sort ? normalizeQuerySort(options.sort) : undefined
18588
+ });
18589
+ _context118.next = 4;
18590
+ return this.post(this.baseURL + '/drafts/query', payload);
18584
18591
 
18585
- case 3:
18592
+ case 4:
18586
18593
  return _context118.abrupt("return", _context118.sent);
18587
18594
 
18588
- case 4:
18595
+ case 5:
18589
18596
  case "end":
18590
18597
  return _context118.stop();
18591
18598
  }