stream-chat 8.50.0 → 8.51.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.
- package/dist/browser.es.js +152 -85
- 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 +152 -85
- package/dist/browser.js.map +1 -1
- package/dist/index.es.js +152 -85
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +152 -85
- package/dist/index.js.map +1 -1
- package/dist/types/client.d.ts.map +1 -1
- package/dist/types/events.d.ts +1 -0
- package/dist/types/events.d.ts.map +1 -1
- package/dist/types/index.d.ts +2 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/thread.d.ts +5 -1
- package/dist/types/thread.d.ts.map +1 -1
- package/dist/types/types.d.ts +4 -1
- package/dist/types/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +18 -12
- package/src/events.ts +1 -0
- package/src/index.ts +2 -1
- package/src/thread.ts +66 -2
- package/src/types.ts +7 -1
package/dist/browser.es.js
CHANGED
|
@@ -7405,6 +7405,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
7405
7405
|
/**
|
|
7406
7406
|
* Response Types
|
|
7407
7407
|
*/
|
|
7408
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
7408
7409
|
// TODO: Figure out a way to strongly type set and unset.
|
|
7409
7410
|
// Thumb URL(thumb_url) is added considering video attachments as the backend will return the thumbnail in the response.
|
|
7410
7411
|
|
|
@@ -7579,7 +7580,43 @@ var DEFAULT_PAGE_LIMIT = 50;
|
|
|
7579
7580
|
var DEFAULT_SORT = [{
|
|
7580
7581
|
created_at: -1
|
|
7581
7582
|
}];
|
|
7582
|
-
var MARK_AS_READ_THROTTLE_TIMEOUT = 1000;
|
|
7583
|
+
var MARK_AS_READ_THROTTLE_TIMEOUT = 1000; // TODO: remove this once we move to API v2
|
|
7584
|
+
|
|
7585
|
+
var THREAD_RESPONSE_RESERVED_KEYS = {
|
|
7586
|
+
channel: true,
|
|
7587
|
+
channel_cid: true,
|
|
7588
|
+
created_at: true,
|
|
7589
|
+
created_by_user_id: true,
|
|
7590
|
+
parent_message_id: true,
|
|
7591
|
+
title: true,
|
|
7592
|
+
updated_at: true,
|
|
7593
|
+
latest_replies: true,
|
|
7594
|
+
active_participant_count: true,
|
|
7595
|
+
deleted_at: true,
|
|
7596
|
+
last_message_at: true,
|
|
7597
|
+
participant_count: true,
|
|
7598
|
+
reply_count: true,
|
|
7599
|
+
read: true,
|
|
7600
|
+
thread_participants: true,
|
|
7601
|
+
created_by: true,
|
|
7602
|
+
parent_message: true
|
|
7603
|
+
}; // TODO: remove this once we move to API v2
|
|
7604
|
+
|
|
7605
|
+
var constructCustomDataObject = function constructCustomDataObject(threadData) {
|
|
7606
|
+
var custom = {};
|
|
7607
|
+
|
|
7608
|
+
for (var key in threadData) {
|
|
7609
|
+
if (THREAD_RESPONSE_RESERVED_KEYS[key]) {
|
|
7610
|
+
continue;
|
|
7611
|
+
}
|
|
7612
|
+
|
|
7613
|
+
var customKey = key;
|
|
7614
|
+
custom[customKey] = threadData[customKey];
|
|
7615
|
+
}
|
|
7616
|
+
|
|
7617
|
+
return custom;
|
|
7618
|
+
};
|
|
7619
|
+
|
|
7583
7620
|
var Thread = /*#__PURE__*/function () {
|
|
7584
7621
|
function Thread(_ref) {
|
|
7585
7622
|
var _this = this,
|
|
@@ -7587,7 +7624,7 @@ var Thread = /*#__PURE__*/function () {
|
|
|
7587
7624
|
_threadData$reply_cou;
|
|
7588
7625
|
|
|
7589
7626
|
var client = _ref.client,
|
|
7590
|
-
|
|
7627
|
+
_threadData = _ref.threadData;
|
|
7591
7628
|
|
|
7592
7629
|
_classCallCheck(this, Thread);
|
|
7593
7630
|
|
|
@@ -7701,6 +7738,8 @@ var Thread = /*#__PURE__*/function () {
|
|
|
7701
7738
|
return;
|
|
7702
7739
|
}
|
|
7703
7740
|
|
|
7741
|
+
_this.unsubscribeFunctions.add(_this.subscribeThreadUpdated());
|
|
7742
|
+
|
|
7704
7743
|
_this.unsubscribeFunctions.add(_this.subscribeMarkActiveThreadRead());
|
|
7705
7744
|
|
|
7706
7745
|
_this.unsubscribeFunctions.add(_this.subscribeReloadActiveStaleThread());
|
|
@@ -7716,6 +7755,24 @@ var Thread = /*#__PURE__*/function () {
|
|
|
7716
7755
|
_this.unsubscribeFunctions.add(_this.subscribeMessageUpdated());
|
|
7717
7756
|
});
|
|
7718
7757
|
|
|
7758
|
+
_defineProperty(this, "subscribeThreadUpdated", function () {
|
|
7759
|
+
return _this.client.on('thread.updated', function (event) {
|
|
7760
|
+
if (!event.thread || event.thread.parent_message_id !== _this.id) {
|
|
7761
|
+
return;
|
|
7762
|
+
}
|
|
7763
|
+
|
|
7764
|
+
var threadData = event.thread;
|
|
7765
|
+
|
|
7766
|
+
_this.state.partialNext({
|
|
7767
|
+
title: threadData.title,
|
|
7768
|
+
updatedAt: new Date(threadData.updated_at),
|
|
7769
|
+
deletedAt: threadData.deleted_at ? new Date(threadData.deleted_at) : null,
|
|
7770
|
+
// TODO: use threadData.custom once we move to API v2
|
|
7771
|
+
custom: constructCustomDataObject(threadData)
|
|
7772
|
+
});
|
|
7773
|
+
}).unsubscribe;
|
|
7774
|
+
});
|
|
7775
|
+
|
|
7719
7776
|
_defineProperty(this, "subscribeMarkActiveThreadRead", function () {
|
|
7720
7777
|
return _this.state.subscribeWithSelector(function (nextValue) {
|
|
7721
7778
|
return {
|
|
@@ -8143,12 +8200,12 @@ var Thread = /*#__PURE__*/function () {
|
|
|
8143
8200
|
};
|
|
8144
8201
|
}());
|
|
8145
8202
|
|
|
8146
|
-
var _channel = client.channel(
|
|
8147
|
-
name:
|
|
8203
|
+
var _channel = client.channel(_threadData.channel.type, _threadData.channel.id, {
|
|
8204
|
+
name: _threadData.channel.name
|
|
8148
8205
|
});
|
|
8149
8206
|
|
|
8150
8207
|
_channel._hydrateMembers({
|
|
8151
|
-
members: (_threadData$channel$m =
|
|
8208
|
+
members: (_threadData$channel$m = _threadData.channel.members) !== null && _threadData$channel$m !== void 0 ? _threadData$channel$m : [],
|
|
8152
8209
|
overrideCurrentState: false
|
|
8153
8210
|
}); // For when read object is undefined and due to that unreadMessageCount for
|
|
8154
8211
|
// the current user isn't being incremented on message.new
|
|
@@ -8162,21 +8219,26 @@ var Thread = /*#__PURE__*/function () {
|
|
|
8162
8219
|
last_read: new Date().toISOString()
|
|
8163
8220
|
}] : [];
|
|
8164
8221
|
this.state = new StateStore({
|
|
8222
|
+
// local only
|
|
8165
8223
|
active: false,
|
|
8166
|
-
channel: _channel,
|
|
8167
|
-
createdAt: new Date(threadData.created_at),
|
|
8168
|
-
deletedAt: threadData.deleted_at ? new Date(threadData.deleted_at) : null,
|
|
8169
8224
|
isLoading: false,
|
|
8170
8225
|
isStateStale: false,
|
|
8171
|
-
|
|
8172
|
-
|
|
8173
|
-
|
|
8174
|
-
|
|
8175
|
-
|
|
8176
|
-
|
|
8177
|
-
|
|
8226
|
+
// 99.9% should never change
|
|
8227
|
+
channel: _channel,
|
|
8228
|
+
createdAt: new Date(_threadData.created_at),
|
|
8229
|
+
// rest
|
|
8230
|
+
deletedAt: _threadData.deleted_at ? new Date(_threadData.deleted_at) : null,
|
|
8231
|
+
pagination: repliesPaginationFromInitialThread(_threadData),
|
|
8232
|
+
parentMessage: formatMessage(_threadData.parent_message),
|
|
8233
|
+
participants: _threadData.thread_participants,
|
|
8234
|
+
read: formatReadState(!_threadData.read || _threadData.read.length === 0 ? placeholderReadResponse : _threadData.read),
|
|
8235
|
+
replies: _threadData.latest_replies.map(formatMessage),
|
|
8236
|
+
replyCount: (_threadData$reply_cou = _threadData.reply_count) !== null && _threadData$reply_cou !== void 0 ? _threadData$reply_cou : 0,
|
|
8237
|
+
updatedAt: _threadData.updated_at ? new Date(_threadData.updated_at) : null,
|
|
8238
|
+
title: _threadData.title,
|
|
8239
|
+
custom: constructCustomDataObject(_threadData)
|
|
8178
8240
|
});
|
|
8179
|
-
this.id =
|
|
8241
|
+
this.id = _threadData.parent_message_id;
|
|
8180
8242
|
this.client = client;
|
|
8181
8243
|
}
|
|
8182
8244
|
|
|
@@ -14650,36 +14712,40 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
14650
14712
|
}, {
|
|
14651
14713
|
key: "queryThreads",
|
|
14652
14714
|
value: function () {
|
|
14653
|
-
var _queryThreads = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee64(
|
|
14715
|
+
var _queryThreads = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee64() {
|
|
14654
14716
|
var _this5 = this;
|
|
14655
14717
|
|
|
14656
|
-
var
|
|
14718
|
+
var options,
|
|
14719
|
+
optionsWithDefaults,
|
|
14720
|
+
response,
|
|
14721
|
+
_args64 = arguments;
|
|
14657
14722
|
return _regeneratorRuntime.wrap(function _callee64$(_context64) {
|
|
14658
14723
|
while (1) {
|
|
14659
14724
|
switch (_context64.prev = _context64.next) {
|
|
14660
14725
|
case 0:
|
|
14661
|
-
|
|
14726
|
+
options = _args64.length > 0 && _args64[0] !== undefined ? _args64[0] : {};
|
|
14727
|
+
optionsWithDefaults = _objectSpread({
|
|
14662
14728
|
limit: 10,
|
|
14663
14729
|
participant_limit: 10,
|
|
14664
14730
|
reply_limit: 3,
|
|
14665
14731
|
watch: true
|
|
14666
14732
|
}, options);
|
|
14667
|
-
_context64.next =
|
|
14668
|
-
return this.post(this.baseURL
|
|
14733
|
+
_context64.next = 4;
|
|
14734
|
+
return this.post("".concat(this.baseURL, "/threads"), optionsWithDefaults);
|
|
14669
14735
|
|
|
14670
|
-
case
|
|
14671
|
-
|
|
14736
|
+
case 4:
|
|
14737
|
+
response = _context64.sent;
|
|
14672
14738
|
return _context64.abrupt("return", {
|
|
14673
|
-
threads:
|
|
14739
|
+
threads: response.threads.map(function (thread) {
|
|
14674
14740
|
return new Thread({
|
|
14675
14741
|
client: _this5,
|
|
14676
14742
|
threadData: thread
|
|
14677
14743
|
});
|
|
14678
14744
|
}),
|
|
14679
|
-
next:
|
|
14745
|
+
next: response.next
|
|
14680
14746
|
});
|
|
14681
14747
|
|
|
14682
|
-
case
|
|
14748
|
+
case 6:
|
|
14683
14749
|
case "end":
|
|
14684
14750
|
return _context64.stop();
|
|
14685
14751
|
}
|
|
@@ -14687,7 +14753,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
14687
14753
|
}, _callee64, this);
|
|
14688
14754
|
}));
|
|
14689
14755
|
|
|
14690
|
-
function queryThreads(
|
|
14756
|
+
function queryThreads() {
|
|
14691
14757
|
return _queryThreads.apply(this, arguments);
|
|
14692
14758
|
}
|
|
14693
14759
|
|
|
@@ -14710,8 +14776,8 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
14710
14776
|
value: function () {
|
|
14711
14777
|
var _getThread = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee65(messageId) {
|
|
14712
14778
|
var options,
|
|
14713
|
-
|
|
14714
|
-
|
|
14779
|
+
optionsWithDefaults,
|
|
14780
|
+
response,
|
|
14715
14781
|
_args65 = arguments;
|
|
14716
14782
|
return _regeneratorRuntime.wrap(function _callee65$(_context65) {
|
|
14717
14783
|
while (1) {
|
|
@@ -14724,22 +14790,22 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
14724
14790
|
break;
|
|
14725
14791
|
}
|
|
14726
14792
|
|
|
14727
|
-
throw Error('Please specify the
|
|
14793
|
+
throw Error('Please specify the messageId when calling getThread');
|
|
14728
14794
|
|
|
14729
14795
|
case 3:
|
|
14730
|
-
|
|
14796
|
+
optionsWithDefaults = _objectSpread({
|
|
14731
14797
|
participant_limit: 100,
|
|
14732
14798
|
reply_limit: 3,
|
|
14733
14799
|
watch: true
|
|
14734
14800
|
}, options);
|
|
14735
14801
|
_context65.next = 6;
|
|
14736
|
-
return this.get(this.baseURL
|
|
14802
|
+
return this.get("".concat(this.baseURL, "/threads/").concat(encodeURIComponent(messageId)), optionsWithDefaults);
|
|
14737
14803
|
|
|
14738
14804
|
case 6:
|
|
14739
|
-
|
|
14805
|
+
response = _context65.sent;
|
|
14740
14806
|
return _context65.abrupt("return", new Thread({
|
|
14741
14807
|
client: this,
|
|
14742
|
-
threadData:
|
|
14808
|
+
threadData: response.thread
|
|
14743
14809
|
}));
|
|
14744
14810
|
|
|
14745
14811
|
case 8:
|
|
@@ -14750,7 +14816,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
14750
14816
|
}, _callee65, this);
|
|
14751
14817
|
}));
|
|
14752
14818
|
|
|
14753
|
-
function getThread(
|
|
14819
|
+
function getThread(_x88) {
|
|
14754
14820
|
return _getThread.apply(this, arguments);
|
|
14755
14821
|
}
|
|
14756
14822
|
|
|
@@ -14785,7 +14851,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
14785
14851
|
case 2:
|
|
14786
14852
|
// check for reserved fields from ThreadResponse type within partialThreadObject's set and unset.
|
|
14787
14853
|
// Throw error if any of the reserved field is found.
|
|
14788
|
-
reservedThreadFields = ['created_at', 'id', 'last_message_at', 'type', 'updated_at', 'user', 'reply_count', 'participants', 'channel'];
|
|
14854
|
+
reservedThreadFields = ['created_at', 'id', 'last_message_at', 'type', 'updated_at', 'user', 'reply_count', 'participants', 'channel', 'custom'];
|
|
14789
14855
|
_context66.t0 = _regeneratorRuntime.keys(_objectSpread(_objectSpread({}, partialThreadObject.set), partialThreadObject.unset));
|
|
14790
14856
|
|
|
14791
14857
|
case 4:
|
|
@@ -14809,7 +14875,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
14809
14875
|
|
|
14810
14876
|
case 10:
|
|
14811
14877
|
_context66.next = 12;
|
|
14812
|
-
return this.patch(this.baseURL
|
|
14878
|
+
return this.patch("".concat(this.baseURL, "/threads/").concat(encodeURIComponent(messageId)), partialThreadObject);
|
|
14813
14879
|
|
|
14814
14880
|
case 12:
|
|
14815
14881
|
return _context66.abrupt("return", _context66.sent);
|
|
@@ -14822,7 +14888,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
14822
14888
|
}, _callee66, this);
|
|
14823
14889
|
}));
|
|
14824
14890
|
|
|
14825
|
-
function partialUpdateThread(
|
|
14891
|
+
function partialUpdateThread(_x89, _x90) {
|
|
14826
14892
|
return _partialUpdateThread.apply(this, arguments);
|
|
14827
14893
|
}
|
|
14828
14894
|
|
|
@@ -14831,7 +14897,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
14831
14897
|
}, {
|
|
14832
14898
|
key: "getUserAgent",
|
|
14833
14899
|
value: function getUserAgent() {
|
|
14834
|
-
return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.
|
|
14900
|
+
return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.51.0");
|
|
14835
14901
|
}
|
|
14836
14902
|
}, {
|
|
14837
14903
|
key: "setUserAgent",
|
|
@@ -15071,7 +15137,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
15071
15137
|
}, _callee67, this);
|
|
15072
15138
|
}));
|
|
15073
15139
|
|
|
15074
|
-
function sendUserCustomEvent(
|
|
15140
|
+
function sendUserCustomEvent(_x91, _x92) {
|
|
15075
15141
|
return _sendUserCustomEvent.apply(this, arguments);
|
|
15076
15142
|
}
|
|
15077
15143
|
|
|
@@ -15189,7 +15255,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
15189
15255
|
}, _callee68, this);
|
|
15190
15256
|
}));
|
|
15191
15257
|
|
|
15192
|
-
function createSegment(_x94, _x95
|
|
15258
|
+
function createSegment(_x93, _x94, _x95) {
|
|
15193
15259
|
return _createSegment.apply(this, arguments);
|
|
15194
15260
|
}
|
|
15195
15261
|
|
|
@@ -15224,7 +15290,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
15224
15290
|
}, _callee69, this);
|
|
15225
15291
|
}));
|
|
15226
15292
|
|
|
15227
|
-
function createUserSegment(
|
|
15293
|
+
function createUserSegment(_x96, _x97) {
|
|
15228
15294
|
return _createUserSegment.apply(this, arguments);
|
|
15229
15295
|
}
|
|
15230
15296
|
|
|
@@ -15259,7 +15325,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
15259
15325
|
}, _callee70, this);
|
|
15260
15326
|
}));
|
|
15261
15327
|
|
|
15262
|
-
function createChannelSegment(
|
|
15328
|
+
function createChannelSegment(_x98, _x99) {
|
|
15263
15329
|
return _createChannelSegment.apply(this, arguments);
|
|
15264
15330
|
}
|
|
15265
15331
|
|
|
@@ -15284,7 +15350,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
15284
15350
|
}, _callee71, this);
|
|
15285
15351
|
}));
|
|
15286
15352
|
|
|
15287
|
-
function getSegment(
|
|
15353
|
+
function getSegment(_x100) {
|
|
15288
15354
|
return _getSegment.apply(this, arguments);
|
|
15289
15355
|
}
|
|
15290
15356
|
|
|
@@ -15318,7 +15384,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
15318
15384
|
}, _callee72, this);
|
|
15319
15385
|
}));
|
|
15320
15386
|
|
|
15321
|
-
function updateSegment(
|
|
15387
|
+
function updateSegment(_x101, _x102) {
|
|
15322
15388
|
return _updateSegment.apply(this, arguments);
|
|
15323
15389
|
}
|
|
15324
15390
|
|
|
@@ -15356,7 +15422,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
15356
15422
|
}, _callee73, this);
|
|
15357
15423
|
}));
|
|
15358
15424
|
|
|
15359
|
-
function addSegmentTargets(
|
|
15425
|
+
function addSegmentTargets(_x103, _x104) {
|
|
15360
15426
|
return _addSegmentTargets.apply(this, arguments);
|
|
15361
15427
|
}
|
|
15362
15428
|
|
|
@@ -15391,7 +15457,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
15391
15457
|
}, _callee74, this);
|
|
15392
15458
|
}));
|
|
15393
15459
|
|
|
15394
|
-
function querySegmentTargets(
|
|
15460
|
+
function querySegmentTargets(_x105) {
|
|
15395
15461
|
return _querySegmentTargets.apply(this, arguments);
|
|
15396
15462
|
}
|
|
15397
15463
|
|
|
@@ -15429,7 +15495,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
15429
15495
|
}, _callee75, this);
|
|
15430
15496
|
}));
|
|
15431
15497
|
|
|
15432
|
-
function removeSegmentTargets(
|
|
15498
|
+
function removeSegmentTargets(_x106, _x107) {
|
|
15433
15499
|
return _removeSegmentTargets.apply(this, arguments);
|
|
15434
15500
|
}
|
|
15435
15501
|
|
|
@@ -15469,7 +15535,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
15469
15535
|
}, _callee76, this);
|
|
15470
15536
|
}));
|
|
15471
15537
|
|
|
15472
|
-
function querySegments(
|
|
15538
|
+
function querySegments(_x108, _x109) {
|
|
15473
15539
|
return _querySegments.apply(this, arguments);
|
|
15474
15540
|
}
|
|
15475
15541
|
|
|
@@ -15502,7 +15568,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
15502
15568
|
}, _callee77, this);
|
|
15503
15569
|
}));
|
|
15504
15570
|
|
|
15505
|
-
function deleteSegment(
|
|
15571
|
+
function deleteSegment(_x110) {
|
|
15506
15572
|
return _deleteSegment.apply(this, arguments);
|
|
15507
15573
|
}
|
|
15508
15574
|
|
|
@@ -15536,7 +15602,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
15536
15602
|
}, _callee78, this);
|
|
15537
15603
|
}));
|
|
15538
15604
|
|
|
15539
|
-
function segmentTargetExists(
|
|
15605
|
+
function segmentTargetExists(_x111, _x112) {
|
|
15540
15606
|
return _segmentTargetExists.apply(this, arguments);
|
|
15541
15607
|
}
|
|
15542
15608
|
|
|
@@ -15569,7 +15635,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
15569
15635
|
}, _callee79, this);
|
|
15570
15636
|
}));
|
|
15571
15637
|
|
|
15572
|
-
function createCampaign(
|
|
15638
|
+
function createCampaign(_x113) {
|
|
15573
15639
|
return _createCampaign.apply(this, arguments);
|
|
15574
15640
|
}
|
|
15575
15641
|
|
|
@@ -15594,7 +15660,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
15594
15660
|
}, _callee80, this);
|
|
15595
15661
|
}));
|
|
15596
15662
|
|
|
15597
|
-
function getCampaign(
|
|
15663
|
+
function getCampaign(_x114) {
|
|
15598
15664
|
return _getCampaign.apply(this, arguments);
|
|
15599
15665
|
}
|
|
15600
15666
|
|
|
@@ -15622,7 +15688,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
15622
15688
|
}, _callee81, this);
|
|
15623
15689
|
}));
|
|
15624
15690
|
|
|
15625
|
-
function startCampaign(
|
|
15691
|
+
function startCampaign(_x115, _x116) {
|
|
15626
15692
|
return _startCampaign.apply(this, arguments);
|
|
15627
15693
|
}
|
|
15628
15694
|
|
|
@@ -15661,7 +15727,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
15661
15727
|
}, _callee82, this);
|
|
15662
15728
|
}));
|
|
15663
15729
|
|
|
15664
|
-
function queryCampaigns(_x118, _x119
|
|
15730
|
+
function queryCampaigns(_x117, _x118, _x119) {
|
|
15665
15731
|
return _queryCampaigns.apply(this, arguments);
|
|
15666
15732
|
}
|
|
15667
15733
|
|
|
@@ -15695,7 +15761,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
15695
15761
|
}, _callee83, this);
|
|
15696
15762
|
}));
|
|
15697
15763
|
|
|
15698
|
-
function updateCampaign(
|
|
15764
|
+
function updateCampaign(_x120, _x121) {
|
|
15699
15765
|
return _updateCampaign.apply(this, arguments);
|
|
15700
15766
|
}
|
|
15701
15767
|
|
|
@@ -15728,7 +15794,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
15728
15794
|
}, _callee84, this);
|
|
15729
15795
|
}));
|
|
15730
15796
|
|
|
15731
|
-
function deleteCampaign(
|
|
15797
|
+
function deleteCampaign(_x122) {
|
|
15732
15798
|
return _deleteCampaign.apply(this, arguments);
|
|
15733
15799
|
}
|
|
15734
15800
|
|
|
@@ -15761,7 +15827,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
15761
15827
|
}, _callee85, this);
|
|
15762
15828
|
}));
|
|
15763
15829
|
|
|
15764
|
-
function stopCampaign(
|
|
15830
|
+
function stopCampaign(_x123) {
|
|
15765
15831
|
return _stopCampaign.apply(this, arguments);
|
|
15766
15832
|
}
|
|
15767
15833
|
|
|
@@ -15794,7 +15860,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
15794
15860
|
}, _callee86, this);
|
|
15795
15861
|
}));
|
|
15796
15862
|
|
|
15797
|
-
function enrichURL(
|
|
15863
|
+
function enrichURL(_x124) {
|
|
15798
15864
|
return _enrichURL.apply(this, arguments);
|
|
15799
15865
|
}
|
|
15800
15866
|
|
|
@@ -15826,7 +15892,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
15826
15892
|
}, _callee87, this);
|
|
15827
15893
|
}));
|
|
15828
15894
|
|
|
15829
|
-
function getTask(
|
|
15895
|
+
function getTask(_x125) {
|
|
15830
15896
|
return _getTask.apply(this, arguments);
|
|
15831
15897
|
}
|
|
15832
15898
|
|
|
@@ -15868,7 +15934,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
15868
15934
|
}, _callee88, this);
|
|
15869
15935
|
}));
|
|
15870
15936
|
|
|
15871
|
-
function deleteChannels(
|
|
15937
|
+
function deleteChannels(_x126) {
|
|
15872
15938
|
return _deleteChannels.apply(this, arguments);
|
|
15873
15939
|
}
|
|
15874
15940
|
|
|
@@ -15935,7 +16001,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
15935
16001
|
}, _callee89, this);
|
|
15936
16002
|
}));
|
|
15937
16003
|
|
|
15938
|
-
function deleteUsers(
|
|
16004
|
+
function deleteUsers(_x127) {
|
|
15939
16005
|
return _deleteUsers.apply(this, arguments);
|
|
15940
16006
|
}
|
|
15941
16007
|
|
|
@@ -15977,7 +16043,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
15977
16043
|
}, _callee90, this);
|
|
15978
16044
|
}));
|
|
15979
16045
|
|
|
15980
|
-
function _createImportURL(
|
|
16046
|
+
function _createImportURL(_x128) {
|
|
15981
16047
|
return _createImportURL2.apply(this, arguments);
|
|
15982
16048
|
}
|
|
15983
16049
|
|
|
@@ -16025,7 +16091,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
16025
16091
|
}, _callee91, this);
|
|
16026
16092
|
}));
|
|
16027
16093
|
|
|
16028
|
-
function _createImport(
|
|
16094
|
+
function _createImport(_x129) {
|
|
16029
16095
|
return _createImport2.apply(this, arguments);
|
|
16030
16096
|
}
|
|
16031
16097
|
|
|
@@ -16066,7 +16132,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
16066
16132
|
}, _callee92, this);
|
|
16067
16133
|
}));
|
|
16068
16134
|
|
|
16069
|
-
function _getImport(
|
|
16135
|
+
function _getImport(_x130) {
|
|
16070
16136
|
return _getImport2.apply(this, arguments);
|
|
16071
16137
|
}
|
|
16072
16138
|
|
|
@@ -16107,7 +16173,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
16107
16173
|
}, _callee93, this);
|
|
16108
16174
|
}));
|
|
16109
16175
|
|
|
16110
|
-
function _listImports(
|
|
16176
|
+
function _listImports(_x131) {
|
|
16111
16177
|
return _listImports2.apply(this, arguments);
|
|
16112
16178
|
}
|
|
16113
16179
|
|
|
@@ -16147,7 +16213,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
16147
16213
|
}, _callee94, this);
|
|
16148
16214
|
}));
|
|
16149
16215
|
|
|
16150
|
-
function upsertPushProvider(
|
|
16216
|
+
function upsertPushProvider(_x132) {
|
|
16151
16217
|
return _upsertPushProvider.apply(this, arguments);
|
|
16152
16218
|
}
|
|
16153
16219
|
|
|
@@ -16187,7 +16253,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
16187
16253
|
}, _callee95, this);
|
|
16188
16254
|
}));
|
|
16189
16255
|
|
|
16190
|
-
function deletePushProvider(
|
|
16256
|
+
function deletePushProvider(_x133) {
|
|
16191
16257
|
return _deletePushProvider.apply(this, arguments);
|
|
16192
16258
|
}
|
|
16193
16259
|
|
|
@@ -16267,7 +16333,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
16267
16333
|
}, _callee97, this);
|
|
16268
16334
|
}));
|
|
16269
16335
|
|
|
16270
|
-
function commitMessage(
|
|
16336
|
+
function commitMessage(_x134) {
|
|
16271
16337
|
return _commitMessage.apply(this, arguments);
|
|
16272
16338
|
}
|
|
16273
16339
|
|
|
@@ -16304,7 +16370,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
16304
16370
|
}, _callee98, this);
|
|
16305
16371
|
}));
|
|
16306
16372
|
|
|
16307
|
-
function createPoll(
|
|
16373
|
+
function createPoll(_x135, _x136) {
|
|
16308
16374
|
return _createPoll.apply(this, arguments);
|
|
16309
16375
|
}
|
|
16310
16376
|
|
|
@@ -16341,7 +16407,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
16341
16407
|
}, _callee99, this);
|
|
16342
16408
|
}));
|
|
16343
16409
|
|
|
16344
|
-
function getPoll(
|
|
16410
|
+
function getPoll(_x137, _x138) {
|
|
16345
16411
|
return _getPoll.apply(this, arguments);
|
|
16346
16412
|
}
|
|
16347
16413
|
|
|
@@ -16378,7 +16444,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
16378
16444
|
}, _callee100, this);
|
|
16379
16445
|
}));
|
|
16380
16446
|
|
|
16381
|
-
function updatePoll(
|
|
16447
|
+
function updatePoll(_x139, _x140) {
|
|
16382
16448
|
return _updatePoll.apply(this, arguments);
|
|
16383
16449
|
}
|
|
16384
16450
|
|
|
@@ -16417,7 +16483,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
16417
16483
|
}, _callee101, this);
|
|
16418
16484
|
}));
|
|
16419
16485
|
|
|
16420
|
-
function partialUpdatePoll(_x142, _x143
|
|
16486
|
+
function partialUpdatePoll(_x141, _x142, _x143) {
|
|
16421
16487
|
return _partialUpdatePoll.apply(this, arguments);
|
|
16422
16488
|
}
|
|
16423
16489
|
|
|
@@ -16454,7 +16520,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
16454
16520
|
}, _callee102, this);
|
|
16455
16521
|
}));
|
|
16456
16522
|
|
|
16457
|
-
function deletePoll(
|
|
16523
|
+
function deletePoll(_x144, _x145) {
|
|
16458
16524
|
return _deletePoll.apply(this, arguments);
|
|
16459
16525
|
}
|
|
16460
16526
|
|
|
@@ -16489,7 +16555,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
16489
16555
|
}, _callee103, this);
|
|
16490
16556
|
}));
|
|
16491
16557
|
|
|
16492
|
-
function closePoll(
|
|
16558
|
+
function closePoll(_x146, _x147) {
|
|
16493
16559
|
return _closePoll.apply(this, arguments);
|
|
16494
16560
|
}
|
|
16495
16561
|
|
|
@@ -16527,7 +16593,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
16527
16593
|
}, _callee104, this);
|
|
16528
16594
|
}));
|
|
16529
16595
|
|
|
16530
|
-
function createPollOption(_x149, _x150
|
|
16596
|
+
function createPollOption(_x148, _x149, _x150) {
|
|
16531
16597
|
return _createPollOption.apply(this, arguments);
|
|
16532
16598
|
}
|
|
16533
16599
|
|
|
@@ -16565,7 +16631,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
16565
16631
|
}, _callee105, this);
|
|
16566
16632
|
}));
|
|
16567
16633
|
|
|
16568
|
-
function getPollOption(_x152, _x153
|
|
16634
|
+
function getPollOption(_x151, _x152, _x153) {
|
|
16569
16635
|
return _getPollOption.apply(this, arguments);
|
|
16570
16636
|
}
|
|
16571
16637
|
|
|
@@ -16603,7 +16669,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
16603
16669
|
}, _callee106, this);
|
|
16604
16670
|
}));
|
|
16605
16671
|
|
|
16606
|
-
function updatePollOption(_x155, _x156
|
|
16672
|
+
function updatePollOption(_x154, _x155, _x156) {
|
|
16607
16673
|
return _updatePollOption.apply(this, arguments);
|
|
16608
16674
|
}
|
|
16609
16675
|
|
|
@@ -16641,7 +16707,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
16641
16707
|
}, _callee107, this);
|
|
16642
16708
|
}));
|
|
16643
16709
|
|
|
16644
|
-
function deletePollOption(_x158, _x159
|
|
16710
|
+
function deletePollOption(_x157, _x158, _x159) {
|
|
16645
16711
|
return _deletePollOption.apply(this, arguments);
|
|
16646
16712
|
}
|
|
16647
16713
|
|
|
@@ -16682,7 +16748,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
16682
16748
|
}, _callee108, this);
|
|
16683
16749
|
}));
|
|
16684
16750
|
|
|
16685
|
-
function castPollVote(_x161, _x162, _x163
|
|
16751
|
+
function castPollVote(_x160, _x161, _x162, _x163) {
|
|
16686
16752
|
return _castPollVote.apply(this, arguments);
|
|
16687
16753
|
}
|
|
16688
16754
|
|
|
@@ -16716,7 +16782,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
16716
16782
|
}, _callee109, this);
|
|
16717
16783
|
}));
|
|
16718
16784
|
|
|
16719
|
-
function addPollAnswer(_x165, _x166, _x167
|
|
16785
|
+
function addPollAnswer(_x164, _x165, _x166, _x167) {
|
|
16720
16786
|
return _addPollAnswer.apply(this, arguments);
|
|
16721
16787
|
}
|
|
16722
16788
|
|
|
@@ -16746,7 +16812,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
16746
16812
|
}, _callee110, this);
|
|
16747
16813
|
}));
|
|
16748
16814
|
|
|
16749
|
-
function removePollVote(_x169, _x170, _x171
|
|
16815
|
+
function removePollVote(_x168, _x169, _x170, _x171) {
|
|
16750
16816
|
return _removePollVote.apply(this, arguments);
|
|
16751
16817
|
}
|
|
16752
16818
|
|
|
@@ -16849,7 +16915,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
16849
16915
|
}, _callee112, this);
|
|
16850
16916
|
}));
|
|
16851
16917
|
|
|
16852
|
-
function queryPollVotes(
|
|
16918
|
+
function queryPollVotes(_x172) {
|
|
16853
16919
|
return _queryPollVotes.apply(this, arguments);
|
|
16854
16920
|
}
|
|
16855
16921
|
|
|
@@ -16903,7 +16969,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
16903
16969
|
}, _callee113, this);
|
|
16904
16970
|
}));
|
|
16905
16971
|
|
|
16906
|
-
function queryPollAnswers(
|
|
16972
|
+
function queryPollAnswers(_x173) {
|
|
16907
16973
|
return _queryPollAnswers.apply(this, arguments);
|
|
16908
16974
|
}
|
|
16909
16975
|
|
|
@@ -16992,7 +17058,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
16992
17058
|
}, _callee115, this);
|
|
16993
17059
|
}));
|
|
16994
17060
|
|
|
16995
|
-
function updateFlags(
|
|
17061
|
+
function updateFlags(_x174, _x175) {
|
|
16996
17062
|
return _updateFlags.apply(this, arguments);
|
|
16997
17063
|
}
|
|
16998
17064
|
|
|
@@ -17058,6 +17124,7 @@ var EVENT_MAP = {
|
|
|
17058
17124
|
'reaction.deleted': true,
|
|
17059
17125
|
'reaction.new': true,
|
|
17060
17126
|
'reaction.updated': true,
|
|
17127
|
+
'thread.updated': true,
|
|
17061
17128
|
'typing.start': true,
|
|
17062
17129
|
'typing.stop': true,
|
|
17063
17130
|
'user.banned': true,
|