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.
- package/dist/browser.es.js +57 -39
- package/dist/browser.es.js.map +1 -1
- package/dist/browser.full-bundle.min.js +1 -1
- package/dist/browser.full-bundle.min.js.map +1 -1
- package/dist/browser.js +57 -39
- package/dist/browser.js.map +1 -1
- package/dist/index.es.js +57 -39
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +57 -39
- package/dist/index.js.map +1 -1
- package/dist/types/campaign.d.ts +18 -2
- package/dist/types/campaign.d.ts.map +1 -1
- package/dist/types/channel_manager.d.ts +2 -2
- package/dist/types/channel_manager.d.ts.map +1 -1
- package/dist/types/client.d.ts +33 -10
- package/dist/types/client.d.ts.map +1 -1
- package/dist/types/types.d.ts +14 -0
- package/dist/types/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/campaign.ts +3 -3
- package/src/channel_manager.ts +4 -1
- package/src/client.ts +53 -15
- package/src/types.ts +9 -0
package/dist/browser.es.js
CHANGED
|
@@ -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
|
-
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
18315
|
+
function updateFlags(_x179, _x180) {
|
|
18298
18316
|
return _updateFlags.apply(this, arguments);
|
|
18299
18317
|
}
|
|
18300
18318
|
|