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.js
CHANGED
|
@@ -301,13 +301,13 @@ var Campaign = /*#__PURE__*/function () {
|
|
|
301
301
|
}, {
|
|
302
302
|
key: "get",
|
|
303
303
|
value: function () {
|
|
304
|
-
var _get = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee6() {
|
|
304
|
+
var _get = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee6(options) {
|
|
305
305
|
return _regeneratorRuntime__default['default'].wrap(function _callee6$(_context6) {
|
|
306
306
|
while (1) {
|
|
307
307
|
switch (_context6.prev = _context6.next) {
|
|
308
308
|
case 0:
|
|
309
309
|
this.verifyCampaignId();
|
|
310
|
-
return _context6.abrupt("return", this.client.getCampaign(this.id));
|
|
310
|
+
return _context6.abrupt("return", this.client.getCampaign(this.id, options));
|
|
311
311
|
|
|
312
312
|
case 2:
|
|
313
313
|
case "end":
|
|
@@ -317,7 +317,7 @@ var Campaign = /*#__PURE__*/function () {
|
|
|
317
317
|
}, _callee6, this);
|
|
318
318
|
}));
|
|
319
319
|
|
|
320
|
-
function get() {
|
|
320
|
+
function get(_x3) {
|
|
321
321
|
return _get.apply(this, arguments);
|
|
322
322
|
}
|
|
323
323
|
|
|
@@ -10807,6 +10807,7 @@ var channelManagerEventToHandlerMapping = {
|
|
|
10807
10807
|
'channel.deleted': 'channelDeletedHandler',
|
|
10808
10808
|
'channel.hidden': 'channelHiddenHandler',
|
|
10809
10809
|
'channel.truncated': 'channelTruncatedHandler',
|
|
10810
|
+
'channel.updated': 'channelUpdatedHandler',
|
|
10810
10811
|
'channel.visible': 'channelVisibleHandler',
|
|
10811
10812
|
'message.new': 'newMessageHandler',
|
|
10812
10813
|
'member.updated': 'memberUpdatedHandler',
|
|
@@ -11580,6 +11581,8 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
11580
11581
|
|
|
11581
11582
|
_defineProperty__default['default'](this, "defaultWSTimeout", void 0);
|
|
11582
11583
|
|
|
11584
|
+
_defineProperty__default['default'](this, "sdkIdentifier", void 0);
|
|
11585
|
+
|
|
11583
11586
|
_defineProperty__default['default'](this, "nextRequestAbortController", null);
|
|
11584
11587
|
|
|
11585
11588
|
_defineProperty__default['default'](this, "_getConnectionID", function () {
|
|
@@ -16113,8 +16116,23 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
16113
16116
|
}, {
|
|
16114
16117
|
key: "getUserAgent",
|
|
16115
16118
|
value: function getUserAgent() {
|
|
16116
|
-
|
|
16119
|
+
if (this.userAgent) {
|
|
16120
|
+
return this.userAgent;
|
|
16121
|
+
}
|
|
16122
|
+
|
|
16123
|
+
var version = "8.57.1";
|
|
16124
|
+
|
|
16125
|
+
if (this.sdkIdentifier) {
|
|
16126
|
+
return "stream-chat-".concat(this.sdkIdentifier.name, "-v").concat(this.sdkIdentifier.version, "-llc-v").concat(version);
|
|
16127
|
+
} else {
|
|
16128
|
+
return "stream-chat-js-v".concat(version, "-").concat(this.node ? 'node' : 'browser');
|
|
16129
|
+
}
|
|
16117
16130
|
}
|
|
16131
|
+
/**
|
|
16132
|
+
* @deprecated use sdkIdentifier instead
|
|
16133
|
+
* @param userAgent
|
|
16134
|
+
*/
|
|
16135
|
+
|
|
16118
16136
|
}, {
|
|
16119
16137
|
key: "setUserAgent",
|
|
16120
16138
|
value: function setUserAgent(userAgent) {
|
|
@@ -16911,13 +16929,13 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
16911
16929
|
}, {
|
|
16912
16930
|
key: "getCampaign",
|
|
16913
16931
|
value: function () {
|
|
16914
|
-
var _getCampaign = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee82(id) {
|
|
16932
|
+
var _getCampaign = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee82(id, options) {
|
|
16915
16933
|
return _regeneratorRuntime__default['default'].wrap(function _callee82$(_context82) {
|
|
16916
16934
|
while (1) {
|
|
16917
16935
|
switch (_context82.prev = _context82.next) {
|
|
16918
16936
|
case 0:
|
|
16919
16937
|
this.validateServerSideAuth();
|
|
16920
|
-
return _context82.abrupt("return", this.get(this.baseURL + "/campaigns/".concat(encodeURIComponent(id))));
|
|
16938
|
+
return _context82.abrupt("return", this.get(this.baseURL + "/campaigns/".concat(encodeURIComponent(id)), _objectSpread$1({}, options === null || options === void 0 ? void 0 : options.users)));
|
|
16921
16939
|
|
|
16922
16940
|
case 2:
|
|
16923
16941
|
case "end":
|
|
@@ -16927,7 +16945,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
16927
16945
|
}, _callee82, this);
|
|
16928
16946
|
}));
|
|
16929
16947
|
|
|
16930
|
-
function getCampaign(_x118) {
|
|
16948
|
+
function getCampaign(_x118, _x119) {
|
|
16931
16949
|
return _getCampaign.apply(this, arguments);
|
|
16932
16950
|
}
|
|
16933
16951
|
|
|
@@ -16955,7 +16973,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
16955
16973
|
}, _callee83, this);
|
|
16956
16974
|
}));
|
|
16957
16975
|
|
|
16958
|
-
function startCampaign(
|
|
16976
|
+
function startCampaign(_x120, _x121) {
|
|
16959
16977
|
return _startCampaign.apply(this, arguments);
|
|
16960
16978
|
}
|
|
16961
16979
|
|
|
@@ -16994,7 +17012,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
16994
17012
|
}, _callee84, this);
|
|
16995
17013
|
}));
|
|
16996
17014
|
|
|
16997
|
-
function queryCampaigns(
|
|
17015
|
+
function queryCampaigns(_x122, _x123, _x124) {
|
|
16998
17016
|
return _queryCampaigns.apply(this, arguments);
|
|
16999
17017
|
}
|
|
17000
17018
|
|
|
@@ -17028,7 +17046,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
17028
17046
|
}, _callee85, this);
|
|
17029
17047
|
}));
|
|
17030
17048
|
|
|
17031
|
-
function updateCampaign(
|
|
17049
|
+
function updateCampaign(_x125, _x126) {
|
|
17032
17050
|
return _updateCampaign.apply(this, arguments);
|
|
17033
17051
|
}
|
|
17034
17052
|
|
|
@@ -17061,7 +17079,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
17061
17079
|
}, _callee86, this);
|
|
17062
17080
|
}));
|
|
17063
17081
|
|
|
17064
|
-
function deleteCampaign(
|
|
17082
|
+
function deleteCampaign(_x127) {
|
|
17065
17083
|
return _deleteCampaign.apply(this, arguments);
|
|
17066
17084
|
}
|
|
17067
17085
|
|
|
@@ -17094,7 +17112,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
17094
17112
|
}, _callee87, this);
|
|
17095
17113
|
}));
|
|
17096
17114
|
|
|
17097
|
-
function stopCampaign(
|
|
17115
|
+
function stopCampaign(_x128) {
|
|
17098
17116
|
return _stopCampaign.apply(this, arguments);
|
|
17099
17117
|
}
|
|
17100
17118
|
|
|
@@ -17127,7 +17145,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
17127
17145
|
}, _callee88, this);
|
|
17128
17146
|
}));
|
|
17129
17147
|
|
|
17130
|
-
function enrichURL(
|
|
17148
|
+
function enrichURL(_x129) {
|
|
17131
17149
|
return _enrichURL.apply(this, arguments);
|
|
17132
17150
|
}
|
|
17133
17151
|
|
|
@@ -17159,7 +17177,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
17159
17177
|
}, _callee89, this);
|
|
17160
17178
|
}));
|
|
17161
17179
|
|
|
17162
|
-
function getTask(
|
|
17180
|
+
function getTask(_x130) {
|
|
17163
17181
|
return _getTask.apply(this, arguments);
|
|
17164
17182
|
}
|
|
17165
17183
|
|
|
@@ -17201,7 +17219,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
17201
17219
|
}, _callee90, this);
|
|
17202
17220
|
}));
|
|
17203
17221
|
|
|
17204
|
-
function deleteChannels(
|
|
17222
|
+
function deleteChannels(_x131) {
|
|
17205
17223
|
return _deleteChannels.apply(this, arguments);
|
|
17206
17224
|
}
|
|
17207
17225
|
|
|
@@ -17268,7 +17286,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
17268
17286
|
}, _callee91, this);
|
|
17269
17287
|
}));
|
|
17270
17288
|
|
|
17271
|
-
function deleteUsers(
|
|
17289
|
+
function deleteUsers(_x132) {
|
|
17272
17290
|
return _deleteUsers.apply(this, arguments);
|
|
17273
17291
|
}
|
|
17274
17292
|
|
|
@@ -17310,7 +17328,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
17310
17328
|
}, _callee92, this);
|
|
17311
17329
|
}));
|
|
17312
17330
|
|
|
17313
|
-
function _createImportURL(
|
|
17331
|
+
function _createImportURL(_x133) {
|
|
17314
17332
|
return _createImportURL2.apply(this, arguments);
|
|
17315
17333
|
}
|
|
17316
17334
|
|
|
@@ -17358,7 +17376,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
17358
17376
|
}, _callee93, this);
|
|
17359
17377
|
}));
|
|
17360
17378
|
|
|
17361
|
-
function _createImport(
|
|
17379
|
+
function _createImport(_x134) {
|
|
17362
17380
|
return _createImport2.apply(this, arguments);
|
|
17363
17381
|
}
|
|
17364
17382
|
|
|
@@ -17399,7 +17417,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
17399
17417
|
}, _callee94, this);
|
|
17400
17418
|
}));
|
|
17401
17419
|
|
|
17402
|
-
function _getImport(
|
|
17420
|
+
function _getImport(_x135) {
|
|
17403
17421
|
return _getImport2.apply(this, arguments);
|
|
17404
17422
|
}
|
|
17405
17423
|
|
|
@@ -17440,7 +17458,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
17440
17458
|
}, _callee95, this);
|
|
17441
17459
|
}));
|
|
17442
17460
|
|
|
17443
|
-
function _listImports(
|
|
17461
|
+
function _listImports(_x136) {
|
|
17444
17462
|
return _listImports2.apply(this, arguments);
|
|
17445
17463
|
}
|
|
17446
17464
|
|
|
@@ -17480,7 +17498,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
17480
17498
|
}, _callee96, this);
|
|
17481
17499
|
}));
|
|
17482
17500
|
|
|
17483
|
-
function upsertPushProvider(
|
|
17501
|
+
function upsertPushProvider(_x137) {
|
|
17484
17502
|
return _upsertPushProvider.apply(this, arguments);
|
|
17485
17503
|
}
|
|
17486
17504
|
|
|
@@ -17520,7 +17538,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
17520
17538
|
}, _callee97, this);
|
|
17521
17539
|
}));
|
|
17522
17540
|
|
|
17523
|
-
function deletePushProvider(
|
|
17541
|
+
function deletePushProvider(_x138) {
|
|
17524
17542
|
return _deletePushProvider.apply(this, arguments);
|
|
17525
17543
|
}
|
|
17526
17544
|
|
|
@@ -17600,7 +17618,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
17600
17618
|
}, _callee99, this);
|
|
17601
17619
|
}));
|
|
17602
17620
|
|
|
17603
|
-
function commitMessage(
|
|
17621
|
+
function commitMessage(_x139) {
|
|
17604
17622
|
return _commitMessage.apply(this, arguments);
|
|
17605
17623
|
}
|
|
17606
17624
|
|
|
@@ -17637,7 +17655,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
17637
17655
|
}, _callee100, this);
|
|
17638
17656
|
}));
|
|
17639
17657
|
|
|
17640
|
-
function createPoll(
|
|
17658
|
+
function createPoll(_x140, _x141) {
|
|
17641
17659
|
return _createPoll.apply(this, arguments);
|
|
17642
17660
|
}
|
|
17643
17661
|
|
|
@@ -17674,7 +17692,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
17674
17692
|
}, _callee101, this);
|
|
17675
17693
|
}));
|
|
17676
17694
|
|
|
17677
|
-
function getPoll(
|
|
17695
|
+
function getPoll(_x142, _x143) {
|
|
17678
17696
|
return _getPoll.apply(this, arguments);
|
|
17679
17697
|
}
|
|
17680
17698
|
|
|
@@ -17711,7 +17729,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
17711
17729
|
}, _callee102, this);
|
|
17712
17730
|
}));
|
|
17713
17731
|
|
|
17714
|
-
function updatePoll(
|
|
17732
|
+
function updatePoll(_x144, _x145) {
|
|
17715
17733
|
return _updatePoll.apply(this, arguments);
|
|
17716
17734
|
}
|
|
17717
17735
|
|
|
@@ -17750,7 +17768,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
17750
17768
|
}, _callee103, this);
|
|
17751
17769
|
}));
|
|
17752
17770
|
|
|
17753
|
-
function partialUpdatePoll(
|
|
17771
|
+
function partialUpdatePoll(_x146, _x147, _x148) {
|
|
17754
17772
|
return _partialUpdatePoll.apply(this, arguments);
|
|
17755
17773
|
}
|
|
17756
17774
|
|
|
@@ -17787,7 +17805,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
17787
17805
|
}, _callee104, this);
|
|
17788
17806
|
}));
|
|
17789
17807
|
|
|
17790
|
-
function deletePoll(
|
|
17808
|
+
function deletePoll(_x149, _x150) {
|
|
17791
17809
|
return _deletePoll.apply(this, arguments);
|
|
17792
17810
|
}
|
|
17793
17811
|
|
|
@@ -17822,7 +17840,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
17822
17840
|
}, _callee105, this);
|
|
17823
17841
|
}));
|
|
17824
17842
|
|
|
17825
|
-
function closePoll(
|
|
17843
|
+
function closePoll(_x151, _x152) {
|
|
17826
17844
|
return _closePoll.apply(this, arguments);
|
|
17827
17845
|
}
|
|
17828
17846
|
|
|
@@ -17860,7 +17878,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
17860
17878
|
}, _callee106, this);
|
|
17861
17879
|
}));
|
|
17862
17880
|
|
|
17863
|
-
function createPollOption(
|
|
17881
|
+
function createPollOption(_x153, _x154, _x155) {
|
|
17864
17882
|
return _createPollOption.apply(this, arguments);
|
|
17865
17883
|
}
|
|
17866
17884
|
|
|
@@ -17898,7 +17916,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
17898
17916
|
}, _callee107, this);
|
|
17899
17917
|
}));
|
|
17900
17918
|
|
|
17901
|
-
function getPollOption(
|
|
17919
|
+
function getPollOption(_x156, _x157, _x158) {
|
|
17902
17920
|
return _getPollOption.apply(this, arguments);
|
|
17903
17921
|
}
|
|
17904
17922
|
|
|
@@ -17936,7 +17954,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
17936
17954
|
}, _callee108, this);
|
|
17937
17955
|
}));
|
|
17938
17956
|
|
|
17939
|
-
function updatePollOption(
|
|
17957
|
+
function updatePollOption(_x159, _x160, _x161) {
|
|
17940
17958
|
return _updatePollOption.apply(this, arguments);
|
|
17941
17959
|
}
|
|
17942
17960
|
|
|
@@ -17974,7 +17992,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
17974
17992
|
}, _callee109, this);
|
|
17975
17993
|
}));
|
|
17976
17994
|
|
|
17977
|
-
function deletePollOption(
|
|
17995
|
+
function deletePollOption(_x162, _x163, _x164) {
|
|
17978
17996
|
return _deletePollOption.apply(this, arguments);
|
|
17979
17997
|
}
|
|
17980
17998
|
|
|
@@ -18015,7 +18033,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
18015
18033
|
}, _callee110, this);
|
|
18016
18034
|
}));
|
|
18017
18035
|
|
|
18018
|
-
function castPollVote(
|
|
18036
|
+
function castPollVote(_x165, _x166, _x167, _x168) {
|
|
18019
18037
|
return _castPollVote.apply(this, arguments);
|
|
18020
18038
|
}
|
|
18021
18039
|
|
|
@@ -18049,7 +18067,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
18049
18067
|
}, _callee111, this);
|
|
18050
18068
|
}));
|
|
18051
18069
|
|
|
18052
|
-
function addPollAnswer(
|
|
18070
|
+
function addPollAnswer(_x169, _x170, _x171, _x172) {
|
|
18053
18071
|
return _addPollAnswer.apply(this, arguments);
|
|
18054
18072
|
}
|
|
18055
18073
|
|
|
@@ -18079,7 +18097,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
18079
18097
|
}, _callee112, this);
|
|
18080
18098
|
}));
|
|
18081
18099
|
|
|
18082
|
-
function removePollVote(
|
|
18100
|
+
function removePollVote(_x173, _x174, _x175, _x176) {
|
|
18083
18101
|
return _removePollVote.apply(this, arguments);
|
|
18084
18102
|
}
|
|
18085
18103
|
|
|
@@ -18182,7 +18200,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
18182
18200
|
}, _callee114, this);
|
|
18183
18201
|
}));
|
|
18184
18202
|
|
|
18185
|
-
function queryPollVotes(
|
|
18203
|
+
function queryPollVotes(_x177) {
|
|
18186
18204
|
return _queryPollVotes.apply(this, arguments);
|
|
18187
18205
|
}
|
|
18188
18206
|
|
|
@@ -18236,7 +18254,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
18236
18254
|
}, _callee115, this);
|
|
18237
18255
|
}));
|
|
18238
18256
|
|
|
18239
|
-
function queryPollAnswers(
|
|
18257
|
+
function queryPollAnswers(_x178) {
|
|
18240
18258
|
return _queryPollAnswers.apply(this, arguments);
|
|
18241
18259
|
}
|
|
18242
18260
|
|
|
@@ -18325,7 +18343,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
18325
18343
|
}, _callee117, this);
|
|
18326
18344
|
}));
|
|
18327
18345
|
|
|
18328
|
-
function updateFlags(
|
|
18346
|
+
function updateFlags(_x179, _x180) {
|
|
18329
18347
|
return _updateFlags.apply(this, arguments);
|
|
18330
18348
|
}
|
|
18331
18349
|
|