stream-chat 8.56.1 → 8.57.1

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.
@@ -270,13 +270,13 @@ var Campaign = /*#__PURE__*/function () {
270
270
  }, {
271
271
  key: "get",
272
272
  value: function () {
273
- var _get = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee6() {
273
+ var _get = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee6(options) {
274
274
  return _regeneratorRuntime.wrap(function _callee6$(_context6) {
275
275
  while (1) {
276
276
  switch (_context6.prev = _context6.next) {
277
277
  case 0:
278
278
  this.verifyCampaignId();
279
- return _context6.abrupt("return", this.client.getCampaign(this.id));
279
+ return _context6.abrupt("return", this.client.getCampaign(this.id, options));
280
280
 
281
281
  case 2:
282
282
  case "end":
@@ -286,7 +286,7 @@ var Campaign = /*#__PURE__*/function () {
286
286
  }, _callee6, this);
287
287
  }));
288
288
 
289
- function get() {
289
+ function get(_x3) {
290
290
  return _get.apply(this, arguments);
291
291
  }
292
292
 
@@ -10776,6 +10776,7 @@ var channelManagerEventToHandlerMapping = {
10776
10776
  'channel.deleted': 'channelDeletedHandler',
10777
10777
  'channel.hidden': 'channelHiddenHandler',
10778
10778
  'channel.truncated': 'channelTruncatedHandler',
10779
+ 'channel.updated': 'channelUpdatedHandler',
10779
10780
  'channel.visible': 'channelVisibleHandler',
10780
10781
  'message.new': 'newMessageHandler',
10781
10782
  'member.updated': 'memberUpdatedHandler',
@@ -11549,6 +11550,8 @@ var StreamChat = /*#__PURE__*/function () {
11549
11550
 
11550
11551
  _defineProperty(this, "defaultWSTimeout", void 0);
11551
11552
 
11553
+ _defineProperty(this, "sdkIdentifier", void 0);
11554
+
11552
11555
  _defineProperty(this, "nextRequestAbortController", null);
11553
11556
 
11554
11557
  _defineProperty(this, "_getConnectionID", function () {
@@ -16082,8 +16085,23 @@ var StreamChat = /*#__PURE__*/function () {
16082
16085
  }, {
16083
16086
  key: "getUserAgent",
16084
16087
  value: function getUserAgent() {
16085
- return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.56.1");
16088
+ if (this.userAgent) {
16089
+ return this.userAgent;
16090
+ }
16091
+
16092
+ var version = "8.57.1";
16093
+
16094
+ if (this.sdkIdentifier) {
16095
+ return "stream-chat-".concat(this.sdkIdentifier.name, "-v").concat(this.sdkIdentifier.version, "-llc-v").concat(version);
16096
+ } else {
16097
+ return "stream-chat-js-v".concat(version, "-").concat(this.node ? 'node' : 'browser');
16098
+ }
16086
16099
  }
16100
+ /**
16101
+ * @deprecated use sdkIdentifier instead
16102
+ * @param userAgent
16103
+ */
16104
+
16087
16105
  }, {
16088
16106
  key: "setUserAgent",
16089
16107
  value: function setUserAgent(userAgent) {
@@ -16880,13 +16898,13 @@ var StreamChat = /*#__PURE__*/function () {
16880
16898
  }, {
16881
16899
  key: "getCampaign",
16882
16900
  value: function () {
16883
- var _getCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee82(id) {
16901
+ var _getCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee82(id, options) {
16884
16902
  return _regeneratorRuntime.wrap(function _callee82$(_context82) {
16885
16903
  while (1) {
16886
16904
  switch (_context82.prev = _context82.next) {
16887
16905
  case 0:
16888
16906
  this.validateServerSideAuth();
16889
- return _context82.abrupt("return", this.get(this.baseURL + "/campaigns/".concat(encodeURIComponent(id))));
16907
+ return _context82.abrupt("return", this.get(this.baseURL + "/campaigns/".concat(encodeURIComponent(id)), _objectSpread$1({}, options === null || options === void 0 ? void 0 : options.users)));
16890
16908
 
16891
16909
  case 2:
16892
16910
  case "end":
@@ -16896,7 +16914,7 @@ var StreamChat = /*#__PURE__*/function () {
16896
16914
  }, _callee82, this);
16897
16915
  }));
16898
16916
 
16899
- function getCampaign(_x118) {
16917
+ function getCampaign(_x118, _x119) {
16900
16918
  return _getCampaign.apply(this, arguments);
16901
16919
  }
16902
16920
 
@@ -16924,7 +16942,7 @@ var StreamChat = /*#__PURE__*/function () {
16924
16942
  }, _callee83, this);
16925
16943
  }));
16926
16944
 
16927
- function startCampaign(_x119, _x120) {
16945
+ function startCampaign(_x120, _x121) {
16928
16946
  return _startCampaign.apply(this, arguments);
16929
16947
  }
16930
16948
 
@@ -16963,7 +16981,7 @@ var StreamChat = /*#__PURE__*/function () {
16963
16981
  }, _callee84, this);
16964
16982
  }));
16965
16983
 
16966
- function queryCampaigns(_x121, _x122, _x123) {
16984
+ function queryCampaigns(_x122, _x123, _x124) {
16967
16985
  return _queryCampaigns.apply(this, arguments);
16968
16986
  }
16969
16987
 
@@ -16997,7 +17015,7 @@ var StreamChat = /*#__PURE__*/function () {
16997
17015
  }, _callee85, this);
16998
17016
  }));
16999
17017
 
17000
- function updateCampaign(_x124, _x125) {
17018
+ function updateCampaign(_x125, _x126) {
17001
17019
  return _updateCampaign.apply(this, arguments);
17002
17020
  }
17003
17021
 
@@ -17030,7 +17048,7 @@ var StreamChat = /*#__PURE__*/function () {
17030
17048
  }, _callee86, this);
17031
17049
  }));
17032
17050
 
17033
- function deleteCampaign(_x126) {
17051
+ function deleteCampaign(_x127) {
17034
17052
  return _deleteCampaign.apply(this, arguments);
17035
17053
  }
17036
17054
 
@@ -17063,7 +17081,7 @@ var StreamChat = /*#__PURE__*/function () {
17063
17081
  }, _callee87, this);
17064
17082
  }));
17065
17083
 
17066
- function stopCampaign(_x127) {
17084
+ function stopCampaign(_x128) {
17067
17085
  return _stopCampaign.apply(this, arguments);
17068
17086
  }
17069
17087
 
@@ -17096,7 +17114,7 @@ var StreamChat = /*#__PURE__*/function () {
17096
17114
  }, _callee88, this);
17097
17115
  }));
17098
17116
 
17099
- function enrichURL(_x128) {
17117
+ function enrichURL(_x129) {
17100
17118
  return _enrichURL.apply(this, arguments);
17101
17119
  }
17102
17120
 
@@ -17128,7 +17146,7 @@ var StreamChat = /*#__PURE__*/function () {
17128
17146
  }, _callee89, this);
17129
17147
  }));
17130
17148
 
17131
- function getTask(_x129) {
17149
+ function getTask(_x130) {
17132
17150
  return _getTask.apply(this, arguments);
17133
17151
  }
17134
17152
 
@@ -17170,7 +17188,7 @@ var StreamChat = /*#__PURE__*/function () {
17170
17188
  }, _callee90, this);
17171
17189
  }));
17172
17190
 
17173
- function deleteChannels(_x130) {
17191
+ function deleteChannels(_x131) {
17174
17192
  return _deleteChannels.apply(this, arguments);
17175
17193
  }
17176
17194
 
@@ -17237,7 +17255,7 @@ var StreamChat = /*#__PURE__*/function () {
17237
17255
  }, _callee91, this);
17238
17256
  }));
17239
17257
 
17240
- function deleteUsers(_x131) {
17258
+ function deleteUsers(_x132) {
17241
17259
  return _deleteUsers.apply(this, arguments);
17242
17260
  }
17243
17261
 
@@ -17279,7 +17297,7 @@ var StreamChat = /*#__PURE__*/function () {
17279
17297
  }, _callee92, this);
17280
17298
  }));
17281
17299
 
17282
- function _createImportURL(_x132) {
17300
+ function _createImportURL(_x133) {
17283
17301
  return _createImportURL2.apply(this, arguments);
17284
17302
  }
17285
17303
 
@@ -17327,7 +17345,7 @@ var StreamChat = /*#__PURE__*/function () {
17327
17345
  }, _callee93, this);
17328
17346
  }));
17329
17347
 
17330
- function _createImport(_x133) {
17348
+ function _createImport(_x134) {
17331
17349
  return _createImport2.apply(this, arguments);
17332
17350
  }
17333
17351
 
@@ -17368,7 +17386,7 @@ var StreamChat = /*#__PURE__*/function () {
17368
17386
  }, _callee94, this);
17369
17387
  }));
17370
17388
 
17371
- function _getImport(_x134) {
17389
+ function _getImport(_x135) {
17372
17390
  return _getImport2.apply(this, arguments);
17373
17391
  }
17374
17392
 
@@ -17409,7 +17427,7 @@ var StreamChat = /*#__PURE__*/function () {
17409
17427
  }, _callee95, this);
17410
17428
  }));
17411
17429
 
17412
- function _listImports(_x135) {
17430
+ function _listImports(_x136) {
17413
17431
  return _listImports2.apply(this, arguments);
17414
17432
  }
17415
17433
 
@@ -17449,7 +17467,7 @@ var StreamChat = /*#__PURE__*/function () {
17449
17467
  }, _callee96, this);
17450
17468
  }));
17451
17469
 
17452
- function upsertPushProvider(_x136) {
17470
+ function upsertPushProvider(_x137) {
17453
17471
  return _upsertPushProvider.apply(this, arguments);
17454
17472
  }
17455
17473
 
@@ -17489,7 +17507,7 @@ var StreamChat = /*#__PURE__*/function () {
17489
17507
  }, _callee97, this);
17490
17508
  }));
17491
17509
 
17492
- function deletePushProvider(_x137) {
17510
+ function deletePushProvider(_x138) {
17493
17511
  return _deletePushProvider.apply(this, arguments);
17494
17512
  }
17495
17513
 
@@ -17569,7 +17587,7 @@ var StreamChat = /*#__PURE__*/function () {
17569
17587
  }, _callee99, this);
17570
17588
  }));
17571
17589
 
17572
- function commitMessage(_x138) {
17590
+ function commitMessage(_x139) {
17573
17591
  return _commitMessage.apply(this, arguments);
17574
17592
  }
17575
17593
 
@@ -17606,7 +17624,7 @@ var StreamChat = /*#__PURE__*/function () {
17606
17624
  }, _callee100, this);
17607
17625
  }));
17608
17626
 
17609
- function createPoll(_x139, _x140) {
17627
+ function createPoll(_x140, _x141) {
17610
17628
  return _createPoll.apply(this, arguments);
17611
17629
  }
17612
17630
 
@@ -17643,7 +17661,7 @@ var StreamChat = /*#__PURE__*/function () {
17643
17661
  }, _callee101, this);
17644
17662
  }));
17645
17663
 
17646
- function getPoll(_x141, _x142) {
17664
+ function getPoll(_x142, _x143) {
17647
17665
  return _getPoll.apply(this, arguments);
17648
17666
  }
17649
17667
 
@@ -17680,7 +17698,7 @@ var StreamChat = /*#__PURE__*/function () {
17680
17698
  }, _callee102, this);
17681
17699
  }));
17682
17700
 
17683
- function updatePoll(_x143, _x144) {
17701
+ function updatePoll(_x144, _x145) {
17684
17702
  return _updatePoll.apply(this, arguments);
17685
17703
  }
17686
17704
 
@@ -17719,7 +17737,7 @@ var StreamChat = /*#__PURE__*/function () {
17719
17737
  }, _callee103, this);
17720
17738
  }));
17721
17739
 
17722
- function partialUpdatePoll(_x145, _x146, _x147) {
17740
+ function partialUpdatePoll(_x146, _x147, _x148) {
17723
17741
  return _partialUpdatePoll.apply(this, arguments);
17724
17742
  }
17725
17743
 
@@ -17756,7 +17774,7 @@ var StreamChat = /*#__PURE__*/function () {
17756
17774
  }, _callee104, this);
17757
17775
  }));
17758
17776
 
17759
- function deletePoll(_x148, _x149) {
17777
+ function deletePoll(_x149, _x150) {
17760
17778
  return _deletePoll.apply(this, arguments);
17761
17779
  }
17762
17780
 
@@ -17791,7 +17809,7 @@ var StreamChat = /*#__PURE__*/function () {
17791
17809
  }, _callee105, this);
17792
17810
  }));
17793
17811
 
17794
- function closePoll(_x150, _x151) {
17812
+ function closePoll(_x151, _x152) {
17795
17813
  return _closePoll.apply(this, arguments);
17796
17814
  }
17797
17815
 
@@ -17829,7 +17847,7 @@ var StreamChat = /*#__PURE__*/function () {
17829
17847
  }, _callee106, this);
17830
17848
  }));
17831
17849
 
17832
- function createPollOption(_x152, _x153, _x154) {
17850
+ function createPollOption(_x153, _x154, _x155) {
17833
17851
  return _createPollOption.apply(this, arguments);
17834
17852
  }
17835
17853
 
@@ -17867,7 +17885,7 @@ var StreamChat = /*#__PURE__*/function () {
17867
17885
  }, _callee107, this);
17868
17886
  }));
17869
17887
 
17870
- function getPollOption(_x155, _x156, _x157) {
17888
+ function getPollOption(_x156, _x157, _x158) {
17871
17889
  return _getPollOption.apply(this, arguments);
17872
17890
  }
17873
17891
 
@@ -17905,7 +17923,7 @@ var StreamChat = /*#__PURE__*/function () {
17905
17923
  }, _callee108, this);
17906
17924
  }));
17907
17925
 
17908
- function updatePollOption(_x158, _x159, _x160) {
17926
+ function updatePollOption(_x159, _x160, _x161) {
17909
17927
  return _updatePollOption.apply(this, arguments);
17910
17928
  }
17911
17929
 
@@ -17943,7 +17961,7 @@ var StreamChat = /*#__PURE__*/function () {
17943
17961
  }, _callee109, this);
17944
17962
  }));
17945
17963
 
17946
- function deletePollOption(_x161, _x162, _x163) {
17964
+ function deletePollOption(_x162, _x163, _x164) {
17947
17965
  return _deletePollOption.apply(this, arguments);
17948
17966
  }
17949
17967
 
@@ -17984,7 +18002,7 @@ var StreamChat = /*#__PURE__*/function () {
17984
18002
  }, _callee110, this);
17985
18003
  }));
17986
18004
 
17987
- function castPollVote(_x164, _x165, _x166, _x167) {
18005
+ function castPollVote(_x165, _x166, _x167, _x168) {
17988
18006
  return _castPollVote.apply(this, arguments);
17989
18007
  }
17990
18008
 
@@ -18018,7 +18036,7 @@ var StreamChat = /*#__PURE__*/function () {
18018
18036
  }, _callee111, this);
18019
18037
  }));
18020
18038
 
18021
- function addPollAnswer(_x168, _x169, _x170, _x171) {
18039
+ function addPollAnswer(_x169, _x170, _x171, _x172) {
18022
18040
  return _addPollAnswer.apply(this, arguments);
18023
18041
  }
18024
18042
 
@@ -18048,7 +18066,7 @@ var StreamChat = /*#__PURE__*/function () {
18048
18066
  }, _callee112, this);
18049
18067
  }));
18050
18068
 
18051
- function removePollVote(_x172, _x173, _x174, _x175) {
18069
+ function removePollVote(_x173, _x174, _x175, _x176) {
18052
18070
  return _removePollVote.apply(this, arguments);
18053
18071
  }
18054
18072
 
@@ -18151,7 +18169,7 @@ var StreamChat = /*#__PURE__*/function () {
18151
18169
  }, _callee114, this);
18152
18170
  }));
18153
18171
 
18154
- function queryPollVotes(_x176) {
18172
+ function queryPollVotes(_x177) {
18155
18173
  return _queryPollVotes.apply(this, arguments);
18156
18174
  }
18157
18175
 
@@ -18205,7 +18223,7 @@ var StreamChat = /*#__PURE__*/function () {
18205
18223
  }, _callee115, this);
18206
18224
  }));
18207
18225
 
18208
- function queryPollAnswers(_x177) {
18226
+ function queryPollAnswers(_x178) {
18209
18227
  return _queryPollAnswers.apply(this, arguments);
18210
18228
  }
18211
18229
 
@@ -18294,7 +18312,7 @@ var StreamChat = /*#__PURE__*/function () {
18294
18312
  }, _callee117, this);
18295
18313
  }));
18296
18314
 
18297
- function updateFlags(_x178, _x179) {
18315
+ function updateFlags(_x179, _x180) {
18298
18316
  return _updateFlags.apply(this, arguments);
18299
18317
  }
18300
18318