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/index.es.js
CHANGED
|
@@ -273,13 +273,13 @@ var Campaign = /*#__PURE__*/function () {
|
|
|
273
273
|
}, {
|
|
274
274
|
key: "get",
|
|
275
275
|
value: function () {
|
|
276
|
-
var _get = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee6() {
|
|
276
|
+
var _get = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee6(options) {
|
|
277
277
|
return _regeneratorRuntime.wrap(function _callee6$(_context6) {
|
|
278
278
|
while (1) {
|
|
279
279
|
switch (_context6.prev = _context6.next) {
|
|
280
280
|
case 0:
|
|
281
281
|
this.verifyCampaignId();
|
|
282
|
-
return _context6.abrupt("return", this.client.getCampaign(this.id));
|
|
282
|
+
return _context6.abrupt("return", this.client.getCampaign(this.id, options));
|
|
283
283
|
|
|
284
284
|
case 2:
|
|
285
285
|
case "end":
|
|
@@ -289,7 +289,7 @@ var Campaign = /*#__PURE__*/function () {
|
|
|
289
289
|
}, _callee6, this);
|
|
290
290
|
}));
|
|
291
291
|
|
|
292
|
-
function get() {
|
|
292
|
+
function get(_x3) {
|
|
293
293
|
return _get.apply(this, arguments);
|
|
294
294
|
}
|
|
295
295
|
|
|
@@ -10779,6 +10779,7 @@ var channelManagerEventToHandlerMapping = {
|
|
|
10779
10779
|
'channel.deleted': 'channelDeletedHandler',
|
|
10780
10780
|
'channel.hidden': 'channelHiddenHandler',
|
|
10781
10781
|
'channel.truncated': 'channelTruncatedHandler',
|
|
10782
|
+
'channel.updated': 'channelUpdatedHandler',
|
|
10782
10783
|
'channel.visible': 'channelVisibleHandler',
|
|
10783
10784
|
'message.new': 'newMessageHandler',
|
|
10784
10785
|
'member.updated': 'memberUpdatedHandler',
|
|
@@ -11552,6 +11553,8 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
11552
11553
|
|
|
11553
11554
|
_defineProperty(this, "defaultWSTimeout", void 0);
|
|
11554
11555
|
|
|
11556
|
+
_defineProperty(this, "sdkIdentifier", void 0);
|
|
11557
|
+
|
|
11555
11558
|
_defineProperty(this, "nextRequestAbortController", null);
|
|
11556
11559
|
|
|
11557
11560
|
_defineProperty(this, "_getConnectionID", function () {
|
|
@@ -16085,8 +16088,23 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
16085
16088
|
}, {
|
|
16086
16089
|
key: "getUserAgent",
|
|
16087
16090
|
value: function getUserAgent() {
|
|
16088
|
-
|
|
16091
|
+
if (this.userAgent) {
|
|
16092
|
+
return this.userAgent;
|
|
16093
|
+
}
|
|
16094
|
+
|
|
16095
|
+
var version = "8.57.1";
|
|
16096
|
+
|
|
16097
|
+
if (this.sdkIdentifier) {
|
|
16098
|
+
return "stream-chat-".concat(this.sdkIdentifier.name, "-v").concat(this.sdkIdentifier.version, "-llc-v").concat(version);
|
|
16099
|
+
} else {
|
|
16100
|
+
return "stream-chat-js-v".concat(version, "-").concat(this.node ? 'node' : 'browser');
|
|
16101
|
+
}
|
|
16089
16102
|
}
|
|
16103
|
+
/**
|
|
16104
|
+
* @deprecated use sdkIdentifier instead
|
|
16105
|
+
* @param userAgent
|
|
16106
|
+
*/
|
|
16107
|
+
|
|
16090
16108
|
}, {
|
|
16091
16109
|
key: "setUserAgent",
|
|
16092
16110
|
value: function setUserAgent(userAgent) {
|
|
@@ -16883,13 +16901,13 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
16883
16901
|
}, {
|
|
16884
16902
|
key: "getCampaign",
|
|
16885
16903
|
value: function () {
|
|
16886
|
-
var _getCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee82(id) {
|
|
16904
|
+
var _getCampaign = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee82(id, options) {
|
|
16887
16905
|
return _regeneratorRuntime.wrap(function _callee82$(_context82) {
|
|
16888
16906
|
while (1) {
|
|
16889
16907
|
switch (_context82.prev = _context82.next) {
|
|
16890
16908
|
case 0:
|
|
16891
16909
|
this.validateServerSideAuth();
|
|
16892
|
-
return _context82.abrupt("return", this.get(this.baseURL + "/campaigns/".concat(encodeURIComponent(id))));
|
|
16910
|
+
return _context82.abrupt("return", this.get(this.baseURL + "/campaigns/".concat(encodeURIComponent(id)), _objectSpread$1({}, options === null || options === void 0 ? void 0 : options.users)));
|
|
16893
16911
|
|
|
16894
16912
|
case 2:
|
|
16895
16913
|
case "end":
|
|
@@ -16899,7 +16917,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
16899
16917
|
}, _callee82, this);
|
|
16900
16918
|
}));
|
|
16901
16919
|
|
|
16902
|
-
function getCampaign(_x118) {
|
|
16920
|
+
function getCampaign(_x118, _x119) {
|
|
16903
16921
|
return _getCampaign.apply(this, arguments);
|
|
16904
16922
|
}
|
|
16905
16923
|
|
|
@@ -16927,7 +16945,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
16927
16945
|
}, _callee83, this);
|
|
16928
16946
|
}));
|
|
16929
16947
|
|
|
16930
|
-
function startCampaign(
|
|
16948
|
+
function startCampaign(_x120, _x121) {
|
|
16931
16949
|
return _startCampaign.apply(this, arguments);
|
|
16932
16950
|
}
|
|
16933
16951
|
|
|
@@ -16966,7 +16984,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
16966
16984
|
}, _callee84, this);
|
|
16967
16985
|
}));
|
|
16968
16986
|
|
|
16969
|
-
function queryCampaigns(
|
|
16987
|
+
function queryCampaigns(_x122, _x123, _x124) {
|
|
16970
16988
|
return _queryCampaigns.apply(this, arguments);
|
|
16971
16989
|
}
|
|
16972
16990
|
|
|
@@ -17000,7 +17018,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
17000
17018
|
}, _callee85, this);
|
|
17001
17019
|
}));
|
|
17002
17020
|
|
|
17003
|
-
function updateCampaign(
|
|
17021
|
+
function updateCampaign(_x125, _x126) {
|
|
17004
17022
|
return _updateCampaign.apply(this, arguments);
|
|
17005
17023
|
}
|
|
17006
17024
|
|
|
@@ -17033,7 +17051,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
17033
17051
|
}, _callee86, this);
|
|
17034
17052
|
}));
|
|
17035
17053
|
|
|
17036
|
-
function deleteCampaign(
|
|
17054
|
+
function deleteCampaign(_x127) {
|
|
17037
17055
|
return _deleteCampaign.apply(this, arguments);
|
|
17038
17056
|
}
|
|
17039
17057
|
|
|
@@ -17066,7 +17084,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
17066
17084
|
}, _callee87, this);
|
|
17067
17085
|
}));
|
|
17068
17086
|
|
|
17069
|
-
function stopCampaign(
|
|
17087
|
+
function stopCampaign(_x128) {
|
|
17070
17088
|
return _stopCampaign.apply(this, arguments);
|
|
17071
17089
|
}
|
|
17072
17090
|
|
|
@@ -17099,7 +17117,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
17099
17117
|
}, _callee88, this);
|
|
17100
17118
|
}));
|
|
17101
17119
|
|
|
17102
|
-
function enrichURL(
|
|
17120
|
+
function enrichURL(_x129) {
|
|
17103
17121
|
return _enrichURL.apply(this, arguments);
|
|
17104
17122
|
}
|
|
17105
17123
|
|
|
@@ -17131,7 +17149,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
17131
17149
|
}, _callee89, this);
|
|
17132
17150
|
}));
|
|
17133
17151
|
|
|
17134
|
-
function getTask(
|
|
17152
|
+
function getTask(_x130) {
|
|
17135
17153
|
return _getTask.apply(this, arguments);
|
|
17136
17154
|
}
|
|
17137
17155
|
|
|
@@ -17173,7 +17191,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
17173
17191
|
}, _callee90, this);
|
|
17174
17192
|
}));
|
|
17175
17193
|
|
|
17176
|
-
function deleteChannels(
|
|
17194
|
+
function deleteChannels(_x131) {
|
|
17177
17195
|
return _deleteChannels.apply(this, arguments);
|
|
17178
17196
|
}
|
|
17179
17197
|
|
|
@@ -17240,7 +17258,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
17240
17258
|
}, _callee91, this);
|
|
17241
17259
|
}));
|
|
17242
17260
|
|
|
17243
|
-
function deleteUsers(
|
|
17261
|
+
function deleteUsers(_x132) {
|
|
17244
17262
|
return _deleteUsers.apply(this, arguments);
|
|
17245
17263
|
}
|
|
17246
17264
|
|
|
@@ -17282,7 +17300,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
17282
17300
|
}, _callee92, this);
|
|
17283
17301
|
}));
|
|
17284
17302
|
|
|
17285
|
-
function _createImportURL(
|
|
17303
|
+
function _createImportURL(_x133) {
|
|
17286
17304
|
return _createImportURL2.apply(this, arguments);
|
|
17287
17305
|
}
|
|
17288
17306
|
|
|
@@ -17330,7 +17348,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
17330
17348
|
}, _callee93, this);
|
|
17331
17349
|
}));
|
|
17332
17350
|
|
|
17333
|
-
function _createImport(
|
|
17351
|
+
function _createImport(_x134) {
|
|
17334
17352
|
return _createImport2.apply(this, arguments);
|
|
17335
17353
|
}
|
|
17336
17354
|
|
|
@@ -17371,7 +17389,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
17371
17389
|
}, _callee94, this);
|
|
17372
17390
|
}));
|
|
17373
17391
|
|
|
17374
|
-
function _getImport(
|
|
17392
|
+
function _getImport(_x135) {
|
|
17375
17393
|
return _getImport2.apply(this, arguments);
|
|
17376
17394
|
}
|
|
17377
17395
|
|
|
@@ -17412,7 +17430,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
17412
17430
|
}, _callee95, this);
|
|
17413
17431
|
}));
|
|
17414
17432
|
|
|
17415
|
-
function _listImports(
|
|
17433
|
+
function _listImports(_x136) {
|
|
17416
17434
|
return _listImports2.apply(this, arguments);
|
|
17417
17435
|
}
|
|
17418
17436
|
|
|
@@ -17452,7 +17470,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
17452
17470
|
}, _callee96, this);
|
|
17453
17471
|
}));
|
|
17454
17472
|
|
|
17455
|
-
function upsertPushProvider(
|
|
17473
|
+
function upsertPushProvider(_x137) {
|
|
17456
17474
|
return _upsertPushProvider.apply(this, arguments);
|
|
17457
17475
|
}
|
|
17458
17476
|
|
|
@@ -17492,7 +17510,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
17492
17510
|
}, _callee97, this);
|
|
17493
17511
|
}));
|
|
17494
17512
|
|
|
17495
|
-
function deletePushProvider(
|
|
17513
|
+
function deletePushProvider(_x138) {
|
|
17496
17514
|
return _deletePushProvider.apply(this, arguments);
|
|
17497
17515
|
}
|
|
17498
17516
|
|
|
@@ -17572,7 +17590,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
17572
17590
|
}, _callee99, this);
|
|
17573
17591
|
}));
|
|
17574
17592
|
|
|
17575
|
-
function commitMessage(
|
|
17593
|
+
function commitMessage(_x139) {
|
|
17576
17594
|
return _commitMessage.apply(this, arguments);
|
|
17577
17595
|
}
|
|
17578
17596
|
|
|
@@ -17609,7 +17627,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
17609
17627
|
}, _callee100, this);
|
|
17610
17628
|
}));
|
|
17611
17629
|
|
|
17612
|
-
function createPoll(
|
|
17630
|
+
function createPoll(_x140, _x141) {
|
|
17613
17631
|
return _createPoll.apply(this, arguments);
|
|
17614
17632
|
}
|
|
17615
17633
|
|
|
@@ -17646,7 +17664,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
17646
17664
|
}, _callee101, this);
|
|
17647
17665
|
}));
|
|
17648
17666
|
|
|
17649
|
-
function getPoll(
|
|
17667
|
+
function getPoll(_x142, _x143) {
|
|
17650
17668
|
return _getPoll.apply(this, arguments);
|
|
17651
17669
|
}
|
|
17652
17670
|
|
|
@@ -17683,7 +17701,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
17683
17701
|
}, _callee102, this);
|
|
17684
17702
|
}));
|
|
17685
17703
|
|
|
17686
|
-
function updatePoll(
|
|
17704
|
+
function updatePoll(_x144, _x145) {
|
|
17687
17705
|
return _updatePoll.apply(this, arguments);
|
|
17688
17706
|
}
|
|
17689
17707
|
|
|
@@ -17722,7 +17740,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
17722
17740
|
}, _callee103, this);
|
|
17723
17741
|
}));
|
|
17724
17742
|
|
|
17725
|
-
function partialUpdatePoll(
|
|
17743
|
+
function partialUpdatePoll(_x146, _x147, _x148) {
|
|
17726
17744
|
return _partialUpdatePoll.apply(this, arguments);
|
|
17727
17745
|
}
|
|
17728
17746
|
|
|
@@ -17759,7 +17777,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
17759
17777
|
}, _callee104, this);
|
|
17760
17778
|
}));
|
|
17761
17779
|
|
|
17762
|
-
function deletePoll(
|
|
17780
|
+
function deletePoll(_x149, _x150) {
|
|
17763
17781
|
return _deletePoll.apply(this, arguments);
|
|
17764
17782
|
}
|
|
17765
17783
|
|
|
@@ -17794,7 +17812,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
17794
17812
|
}, _callee105, this);
|
|
17795
17813
|
}));
|
|
17796
17814
|
|
|
17797
|
-
function closePoll(
|
|
17815
|
+
function closePoll(_x151, _x152) {
|
|
17798
17816
|
return _closePoll.apply(this, arguments);
|
|
17799
17817
|
}
|
|
17800
17818
|
|
|
@@ -17832,7 +17850,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
17832
17850
|
}, _callee106, this);
|
|
17833
17851
|
}));
|
|
17834
17852
|
|
|
17835
|
-
function createPollOption(
|
|
17853
|
+
function createPollOption(_x153, _x154, _x155) {
|
|
17836
17854
|
return _createPollOption.apply(this, arguments);
|
|
17837
17855
|
}
|
|
17838
17856
|
|
|
@@ -17870,7 +17888,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
17870
17888
|
}, _callee107, this);
|
|
17871
17889
|
}));
|
|
17872
17890
|
|
|
17873
|
-
function getPollOption(
|
|
17891
|
+
function getPollOption(_x156, _x157, _x158) {
|
|
17874
17892
|
return _getPollOption.apply(this, arguments);
|
|
17875
17893
|
}
|
|
17876
17894
|
|
|
@@ -17908,7 +17926,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
17908
17926
|
}, _callee108, this);
|
|
17909
17927
|
}));
|
|
17910
17928
|
|
|
17911
|
-
function updatePollOption(
|
|
17929
|
+
function updatePollOption(_x159, _x160, _x161) {
|
|
17912
17930
|
return _updatePollOption.apply(this, arguments);
|
|
17913
17931
|
}
|
|
17914
17932
|
|
|
@@ -17946,7 +17964,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
17946
17964
|
}, _callee109, this);
|
|
17947
17965
|
}));
|
|
17948
17966
|
|
|
17949
|
-
function deletePollOption(
|
|
17967
|
+
function deletePollOption(_x162, _x163, _x164) {
|
|
17950
17968
|
return _deletePollOption.apply(this, arguments);
|
|
17951
17969
|
}
|
|
17952
17970
|
|
|
@@ -17987,7 +18005,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
17987
18005
|
}, _callee110, this);
|
|
17988
18006
|
}));
|
|
17989
18007
|
|
|
17990
|
-
function castPollVote(
|
|
18008
|
+
function castPollVote(_x165, _x166, _x167, _x168) {
|
|
17991
18009
|
return _castPollVote.apply(this, arguments);
|
|
17992
18010
|
}
|
|
17993
18011
|
|
|
@@ -18021,7 +18039,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
18021
18039
|
}, _callee111, this);
|
|
18022
18040
|
}));
|
|
18023
18041
|
|
|
18024
|
-
function addPollAnswer(
|
|
18042
|
+
function addPollAnswer(_x169, _x170, _x171, _x172) {
|
|
18025
18043
|
return _addPollAnswer.apply(this, arguments);
|
|
18026
18044
|
}
|
|
18027
18045
|
|
|
@@ -18051,7 +18069,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
18051
18069
|
}, _callee112, this);
|
|
18052
18070
|
}));
|
|
18053
18071
|
|
|
18054
|
-
function removePollVote(
|
|
18072
|
+
function removePollVote(_x173, _x174, _x175, _x176) {
|
|
18055
18073
|
return _removePollVote.apply(this, arguments);
|
|
18056
18074
|
}
|
|
18057
18075
|
|
|
@@ -18154,7 +18172,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
18154
18172
|
}, _callee114, this);
|
|
18155
18173
|
}));
|
|
18156
18174
|
|
|
18157
|
-
function queryPollVotes(
|
|
18175
|
+
function queryPollVotes(_x177) {
|
|
18158
18176
|
return _queryPollVotes.apply(this, arguments);
|
|
18159
18177
|
}
|
|
18160
18178
|
|
|
@@ -18208,7 +18226,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
18208
18226
|
}, _callee115, this);
|
|
18209
18227
|
}));
|
|
18210
18228
|
|
|
18211
|
-
function queryPollAnswers(
|
|
18229
|
+
function queryPollAnswers(_x178) {
|
|
18212
18230
|
return _queryPollAnswers.apply(this, arguments);
|
|
18213
18231
|
}
|
|
18214
18232
|
|
|
@@ -18297,7 +18315,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
18297
18315
|
}, _callee117, this);
|
|
18298
18316
|
}));
|
|
18299
18317
|
|
|
18300
|
-
function updateFlags(
|
|
18318
|
+
function updateFlags(_x179, _x180) {
|
|
18301
18319
|
return _updateFlags.apply(this, arguments);
|
|
18302
18320
|
}
|
|
18303
18321
|
|