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.js
CHANGED
|
@@ -7430,6 +7430,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
7430
7430
|
/**
|
|
7431
7431
|
* Response Types
|
|
7432
7432
|
*/
|
|
7433
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
|
7433
7434
|
// TODO: Figure out a way to strongly type set and unset.
|
|
7434
7435
|
// Thumb URL(thumb_url) is added considering video attachments as the backend will return the thumbnail in the response.
|
|
7435
7436
|
|
|
@@ -7604,7 +7605,43 @@ var DEFAULT_PAGE_LIMIT = 50;
|
|
|
7604
7605
|
var DEFAULT_SORT = [{
|
|
7605
7606
|
created_at: -1
|
|
7606
7607
|
}];
|
|
7607
|
-
var MARK_AS_READ_THROTTLE_TIMEOUT = 1000;
|
|
7608
|
+
var MARK_AS_READ_THROTTLE_TIMEOUT = 1000; // TODO: remove this once we move to API v2
|
|
7609
|
+
|
|
7610
|
+
var THREAD_RESPONSE_RESERVED_KEYS = {
|
|
7611
|
+
channel: true,
|
|
7612
|
+
channel_cid: true,
|
|
7613
|
+
created_at: true,
|
|
7614
|
+
created_by_user_id: true,
|
|
7615
|
+
parent_message_id: true,
|
|
7616
|
+
title: true,
|
|
7617
|
+
updated_at: true,
|
|
7618
|
+
latest_replies: true,
|
|
7619
|
+
active_participant_count: true,
|
|
7620
|
+
deleted_at: true,
|
|
7621
|
+
last_message_at: true,
|
|
7622
|
+
participant_count: true,
|
|
7623
|
+
reply_count: true,
|
|
7624
|
+
read: true,
|
|
7625
|
+
thread_participants: true,
|
|
7626
|
+
created_by: true,
|
|
7627
|
+
parent_message: true
|
|
7628
|
+
}; // TODO: remove this once we move to API v2
|
|
7629
|
+
|
|
7630
|
+
var constructCustomDataObject = function constructCustomDataObject(threadData) {
|
|
7631
|
+
var custom = {};
|
|
7632
|
+
|
|
7633
|
+
for (var key in threadData) {
|
|
7634
|
+
if (THREAD_RESPONSE_RESERVED_KEYS[key]) {
|
|
7635
|
+
continue;
|
|
7636
|
+
}
|
|
7637
|
+
|
|
7638
|
+
var customKey = key;
|
|
7639
|
+
custom[customKey] = threadData[customKey];
|
|
7640
|
+
}
|
|
7641
|
+
|
|
7642
|
+
return custom;
|
|
7643
|
+
};
|
|
7644
|
+
|
|
7608
7645
|
var Thread = /*#__PURE__*/function () {
|
|
7609
7646
|
function Thread(_ref) {
|
|
7610
7647
|
var _this = this,
|
|
@@ -7612,7 +7649,7 @@ var Thread = /*#__PURE__*/function () {
|
|
|
7612
7649
|
_threadData$reply_cou;
|
|
7613
7650
|
|
|
7614
7651
|
var client = _ref.client,
|
|
7615
|
-
|
|
7652
|
+
_threadData = _ref.threadData;
|
|
7616
7653
|
|
|
7617
7654
|
_classCallCheck__default['default'](this, Thread);
|
|
7618
7655
|
|
|
@@ -7726,6 +7763,8 @@ var Thread = /*#__PURE__*/function () {
|
|
|
7726
7763
|
return;
|
|
7727
7764
|
}
|
|
7728
7765
|
|
|
7766
|
+
_this.unsubscribeFunctions.add(_this.subscribeThreadUpdated());
|
|
7767
|
+
|
|
7729
7768
|
_this.unsubscribeFunctions.add(_this.subscribeMarkActiveThreadRead());
|
|
7730
7769
|
|
|
7731
7770
|
_this.unsubscribeFunctions.add(_this.subscribeReloadActiveStaleThread());
|
|
@@ -7741,6 +7780,24 @@ var Thread = /*#__PURE__*/function () {
|
|
|
7741
7780
|
_this.unsubscribeFunctions.add(_this.subscribeMessageUpdated());
|
|
7742
7781
|
});
|
|
7743
7782
|
|
|
7783
|
+
_defineProperty__default['default'](this, "subscribeThreadUpdated", function () {
|
|
7784
|
+
return _this.client.on('thread.updated', function (event) {
|
|
7785
|
+
if (!event.thread || event.thread.parent_message_id !== _this.id) {
|
|
7786
|
+
return;
|
|
7787
|
+
}
|
|
7788
|
+
|
|
7789
|
+
var threadData = event.thread;
|
|
7790
|
+
|
|
7791
|
+
_this.state.partialNext({
|
|
7792
|
+
title: threadData.title,
|
|
7793
|
+
updatedAt: new Date(threadData.updated_at),
|
|
7794
|
+
deletedAt: threadData.deleted_at ? new Date(threadData.deleted_at) : null,
|
|
7795
|
+
// TODO: use threadData.custom once we move to API v2
|
|
7796
|
+
custom: constructCustomDataObject(threadData)
|
|
7797
|
+
});
|
|
7798
|
+
}).unsubscribe;
|
|
7799
|
+
});
|
|
7800
|
+
|
|
7744
7801
|
_defineProperty__default['default'](this, "subscribeMarkActiveThreadRead", function () {
|
|
7745
7802
|
return _this.state.subscribeWithSelector(function (nextValue) {
|
|
7746
7803
|
return {
|
|
@@ -8168,12 +8225,12 @@ var Thread = /*#__PURE__*/function () {
|
|
|
8168
8225
|
};
|
|
8169
8226
|
}());
|
|
8170
8227
|
|
|
8171
|
-
var _channel = client.channel(
|
|
8172
|
-
name:
|
|
8228
|
+
var _channel = client.channel(_threadData.channel.type, _threadData.channel.id, {
|
|
8229
|
+
name: _threadData.channel.name
|
|
8173
8230
|
});
|
|
8174
8231
|
|
|
8175
8232
|
_channel._hydrateMembers({
|
|
8176
|
-
members: (_threadData$channel$m =
|
|
8233
|
+
members: (_threadData$channel$m = _threadData.channel.members) !== null && _threadData$channel$m !== void 0 ? _threadData$channel$m : [],
|
|
8177
8234
|
overrideCurrentState: false
|
|
8178
8235
|
}); // For when read object is undefined and due to that unreadMessageCount for
|
|
8179
8236
|
// the current user isn't being incremented on message.new
|
|
@@ -8187,21 +8244,26 @@ var Thread = /*#__PURE__*/function () {
|
|
|
8187
8244
|
last_read: new Date().toISOString()
|
|
8188
8245
|
}] : [];
|
|
8189
8246
|
this.state = new StateStore({
|
|
8247
|
+
// local only
|
|
8190
8248
|
active: false,
|
|
8191
|
-
channel: _channel,
|
|
8192
|
-
createdAt: new Date(threadData.created_at),
|
|
8193
|
-
deletedAt: threadData.deleted_at ? new Date(threadData.deleted_at) : null,
|
|
8194
8249
|
isLoading: false,
|
|
8195
8250
|
isStateStale: false,
|
|
8196
|
-
|
|
8197
|
-
|
|
8198
|
-
|
|
8199
|
-
|
|
8200
|
-
|
|
8201
|
-
|
|
8202
|
-
|
|
8251
|
+
// 99.9% should never change
|
|
8252
|
+
channel: _channel,
|
|
8253
|
+
createdAt: new Date(_threadData.created_at),
|
|
8254
|
+
// rest
|
|
8255
|
+
deletedAt: _threadData.deleted_at ? new Date(_threadData.deleted_at) : null,
|
|
8256
|
+
pagination: repliesPaginationFromInitialThread(_threadData),
|
|
8257
|
+
parentMessage: formatMessage(_threadData.parent_message),
|
|
8258
|
+
participants: _threadData.thread_participants,
|
|
8259
|
+
read: formatReadState(!_threadData.read || _threadData.read.length === 0 ? placeholderReadResponse : _threadData.read),
|
|
8260
|
+
replies: _threadData.latest_replies.map(formatMessage),
|
|
8261
|
+
replyCount: (_threadData$reply_cou = _threadData.reply_count) !== null && _threadData$reply_cou !== void 0 ? _threadData$reply_cou : 0,
|
|
8262
|
+
updatedAt: _threadData.updated_at ? new Date(_threadData.updated_at) : null,
|
|
8263
|
+
title: _threadData.title,
|
|
8264
|
+
custom: constructCustomDataObject(_threadData)
|
|
8203
8265
|
});
|
|
8204
|
-
this.id =
|
|
8266
|
+
this.id = _threadData.parent_message_id;
|
|
8205
8267
|
this.client = client;
|
|
8206
8268
|
}
|
|
8207
8269
|
|
|
@@ -14675,36 +14737,40 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
14675
14737
|
}, {
|
|
14676
14738
|
key: "queryThreads",
|
|
14677
14739
|
value: function () {
|
|
14678
|
-
var _queryThreads = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee64(
|
|
14740
|
+
var _queryThreads = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee64() {
|
|
14679
14741
|
var _this5 = this;
|
|
14680
14742
|
|
|
14681
|
-
var
|
|
14743
|
+
var options,
|
|
14744
|
+
optionsWithDefaults,
|
|
14745
|
+
response,
|
|
14746
|
+
_args64 = arguments;
|
|
14682
14747
|
return _regeneratorRuntime__default['default'].wrap(function _callee64$(_context64) {
|
|
14683
14748
|
while (1) {
|
|
14684
14749
|
switch (_context64.prev = _context64.next) {
|
|
14685
14750
|
case 0:
|
|
14686
|
-
|
|
14751
|
+
options = _args64.length > 0 && _args64[0] !== undefined ? _args64[0] : {};
|
|
14752
|
+
optionsWithDefaults = _objectSpread({
|
|
14687
14753
|
limit: 10,
|
|
14688
14754
|
participant_limit: 10,
|
|
14689
14755
|
reply_limit: 3,
|
|
14690
14756
|
watch: true
|
|
14691
14757
|
}, options);
|
|
14692
|
-
_context64.next =
|
|
14693
|
-
return this.post(this.baseURL
|
|
14758
|
+
_context64.next = 4;
|
|
14759
|
+
return this.post("".concat(this.baseURL, "/threads"), optionsWithDefaults);
|
|
14694
14760
|
|
|
14695
|
-
case
|
|
14696
|
-
|
|
14761
|
+
case 4:
|
|
14762
|
+
response = _context64.sent;
|
|
14697
14763
|
return _context64.abrupt("return", {
|
|
14698
|
-
threads:
|
|
14764
|
+
threads: response.threads.map(function (thread) {
|
|
14699
14765
|
return new Thread({
|
|
14700
14766
|
client: _this5,
|
|
14701
14767
|
threadData: thread
|
|
14702
14768
|
});
|
|
14703
14769
|
}),
|
|
14704
|
-
next:
|
|
14770
|
+
next: response.next
|
|
14705
14771
|
});
|
|
14706
14772
|
|
|
14707
|
-
case
|
|
14773
|
+
case 6:
|
|
14708
14774
|
case "end":
|
|
14709
14775
|
return _context64.stop();
|
|
14710
14776
|
}
|
|
@@ -14712,7 +14778,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
14712
14778
|
}, _callee64, this);
|
|
14713
14779
|
}));
|
|
14714
14780
|
|
|
14715
|
-
function queryThreads(
|
|
14781
|
+
function queryThreads() {
|
|
14716
14782
|
return _queryThreads.apply(this, arguments);
|
|
14717
14783
|
}
|
|
14718
14784
|
|
|
@@ -14735,8 +14801,8 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
14735
14801
|
value: function () {
|
|
14736
14802
|
var _getThread = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee65(messageId) {
|
|
14737
14803
|
var options,
|
|
14738
|
-
|
|
14739
|
-
|
|
14804
|
+
optionsWithDefaults,
|
|
14805
|
+
response,
|
|
14740
14806
|
_args65 = arguments;
|
|
14741
14807
|
return _regeneratorRuntime__default['default'].wrap(function _callee65$(_context65) {
|
|
14742
14808
|
while (1) {
|
|
@@ -14749,22 +14815,22 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
14749
14815
|
break;
|
|
14750
14816
|
}
|
|
14751
14817
|
|
|
14752
|
-
throw Error('Please specify the
|
|
14818
|
+
throw Error('Please specify the messageId when calling getThread');
|
|
14753
14819
|
|
|
14754
14820
|
case 3:
|
|
14755
|
-
|
|
14821
|
+
optionsWithDefaults = _objectSpread({
|
|
14756
14822
|
participant_limit: 100,
|
|
14757
14823
|
reply_limit: 3,
|
|
14758
14824
|
watch: true
|
|
14759
14825
|
}, options);
|
|
14760
14826
|
_context65.next = 6;
|
|
14761
|
-
return this.get(this.baseURL
|
|
14827
|
+
return this.get("".concat(this.baseURL, "/threads/").concat(encodeURIComponent(messageId)), optionsWithDefaults);
|
|
14762
14828
|
|
|
14763
14829
|
case 6:
|
|
14764
|
-
|
|
14830
|
+
response = _context65.sent;
|
|
14765
14831
|
return _context65.abrupt("return", new Thread({
|
|
14766
14832
|
client: this,
|
|
14767
|
-
threadData:
|
|
14833
|
+
threadData: response.thread
|
|
14768
14834
|
}));
|
|
14769
14835
|
|
|
14770
14836
|
case 8:
|
|
@@ -14775,7 +14841,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
14775
14841
|
}, _callee65, this);
|
|
14776
14842
|
}));
|
|
14777
14843
|
|
|
14778
|
-
function getThread(
|
|
14844
|
+
function getThread(_x88) {
|
|
14779
14845
|
return _getThread.apply(this, arguments);
|
|
14780
14846
|
}
|
|
14781
14847
|
|
|
@@ -14810,7 +14876,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
14810
14876
|
case 2:
|
|
14811
14877
|
// check for reserved fields from ThreadResponse type within partialThreadObject's set and unset.
|
|
14812
14878
|
// Throw error if any of the reserved field is found.
|
|
14813
|
-
reservedThreadFields = ['created_at', 'id', 'last_message_at', 'type', 'updated_at', 'user', 'reply_count', 'participants', 'channel'];
|
|
14879
|
+
reservedThreadFields = ['created_at', 'id', 'last_message_at', 'type', 'updated_at', 'user', 'reply_count', 'participants', 'channel', 'custom'];
|
|
14814
14880
|
_context66.t0 = _regeneratorRuntime__default['default'].keys(_objectSpread(_objectSpread({}, partialThreadObject.set), partialThreadObject.unset));
|
|
14815
14881
|
|
|
14816
14882
|
case 4:
|
|
@@ -14834,7 +14900,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
14834
14900
|
|
|
14835
14901
|
case 10:
|
|
14836
14902
|
_context66.next = 12;
|
|
14837
|
-
return this.patch(this.baseURL
|
|
14903
|
+
return this.patch("".concat(this.baseURL, "/threads/").concat(encodeURIComponent(messageId)), partialThreadObject);
|
|
14838
14904
|
|
|
14839
14905
|
case 12:
|
|
14840
14906
|
return _context66.abrupt("return", _context66.sent);
|
|
@@ -14847,7 +14913,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
14847
14913
|
}, _callee66, this);
|
|
14848
14914
|
}));
|
|
14849
14915
|
|
|
14850
|
-
function partialUpdateThread(
|
|
14916
|
+
function partialUpdateThread(_x89, _x90) {
|
|
14851
14917
|
return _partialUpdateThread.apply(this, arguments);
|
|
14852
14918
|
}
|
|
14853
14919
|
|
|
@@ -14856,7 +14922,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
14856
14922
|
}, {
|
|
14857
14923
|
key: "getUserAgent",
|
|
14858
14924
|
value: function getUserAgent() {
|
|
14859
|
-
return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.
|
|
14925
|
+
return this.userAgent || "stream-chat-javascript-client-".concat(this.node ? 'node' : 'browser', "-", "8.51.0");
|
|
14860
14926
|
}
|
|
14861
14927
|
}, {
|
|
14862
14928
|
key: "setUserAgent",
|
|
@@ -15096,7 +15162,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
15096
15162
|
}, _callee67, this);
|
|
15097
15163
|
}));
|
|
15098
15164
|
|
|
15099
|
-
function sendUserCustomEvent(
|
|
15165
|
+
function sendUserCustomEvent(_x91, _x92) {
|
|
15100
15166
|
return _sendUserCustomEvent.apply(this, arguments);
|
|
15101
15167
|
}
|
|
15102
15168
|
|
|
@@ -15214,7 +15280,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
15214
15280
|
}, _callee68, this);
|
|
15215
15281
|
}));
|
|
15216
15282
|
|
|
15217
|
-
function createSegment(_x94, _x95
|
|
15283
|
+
function createSegment(_x93, _x94, _x95) {
|
|
15218
15284
|
return _createSegment.apply(this, arguments);
|
|
15219
15285
|
}
|
|
15220
15286
|
|
|
@@ -15249,7 +15315,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
15249
15315
|
}, _callee69, this);
|
|
15250
15316
|
}));
|
|
15251
15317
|
|
|
15252
|
-
function createUserSegment(
|
|
15318
|
+
function createUserSegment(_x96, _x97) {
|
|
15253
15319
|
return _createUserSegment.apply(this, arguments);
|
|
15254
15320
|
}
|
|
15255
15321
|
|
|
@@ -15284,7 +15350,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
15284
15350
|
}, _callee70, this);
|
|
15285
15351
|
}));
|
|
15286
15352
|
|
|
15287
|
-
function createChannelSegment(
|
|
15353
|
+
function createChannelSegment(_x98, _x99) {
|
|
15288
15354
|
return _createChannelSegment.apply(this, arguments);
|
|
15289
15355
|
}
|
|
15290
15356
|
|
|
@@ -15309,7 +15375,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
15309
15375
|
}, _callee71, this);
|
|
15310
15376
|
}));
|
|
15311
15377
|
|
|
15312
|
-
function getSegment(
|
|
15378
|
+
function getSegment(_x100) {
|
|
15313
15379
|
return _getSegment.apply(this, arguments);
|
|
15314
15380
|
}
|
|
15315
15381
|
|
|
@@ -15343,7 +15409,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
15343
15409
|
}, _callee72, this);
|
|
15344
15410
|
}));
|
|
15345
15411
|
|
|
15346
|
-
function updateSegment(
|
|
15412
|
+
function updateSegment(_x101, _x102) {
|
|
15347
15413
|
return _updateSegment.apply(this, arguments);
|
|
15348
15414
|
}
|
|
15349
15415
|
|
|
@@ -15381,7 +15447,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
15381
15447
|
}, _callee73, this);
|
|
15382
15448
|
}));
|
|
15383
15449
|
|
|
15384
|
-
function addSegmentTargets(
|
|
15450
|
+
function addSegmentTargets(_x103, _x104) {
|
|
15385
15451
|
return _addSegmentTargets.apply(this, arguments);
|
|
15386
15452
|
}
|
|
15387
15453
|
|
|
@@ -15416,7 +15482,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
15416
15482
|
}, _callee74, this);
|
|
15417
15483
|
}));
|
|
15418
15484
|
|
|
15419
|
-
function querySegmentTargets(
|
|
15485
|
+
function querySegmentTargets(_x105) {
|
|
15420
15486
|
return _querySegmentTargets.apply(this, arguments);
|
|
15421
15487
|
}
|
|
15422
15488
|
|
|
@@ -15454,7 +15520,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
15454
15520
|
}, _callee75, this);
|
|
15455
15521
|
}));
|
|
15456
15522
|
|
|
15457
|
-
function removeSegmentTargets(
|
|
15523
|
+
function removeSegmentTargets(_x106, _x107) {
|
|
15458
15524
|
return _removeSegmentTargets.apply(this, arguments);
|
|
15459
15525
|
}
|
|
15460
15526
|
|
|
@@ -15494,7 +15560,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
15494
15560
|
}, _callee76, this);
|
|
15495
15561
|
}));
|
|
15496
15562
|
|
|
15497
|
-
function querySegments(
|
|
15563
|
+
function querySegments(_x108, _x109) {
|
|
15498
15564
|
return _querySegments.apply(this, arguments);
|
|
15499
15565
|
}
|
|
15500
15566
|
|
|
@@ -15527,7 +15593,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
15527
15593
|
}, _callee77, this);
|
|
15528
15594
|
}));
|
|
15529
15595
|
|
|
15530
|
-
function deleteSegment(
|
|
15596
|
+
function deleteSegment(_x110) {
|
|
15531
15597
|
return _deleteSegment.apply(this, arguments);
|
|
15532
15598
|
}
|
|
15533
15599
|
|
|
@@ -15561,7 +15627,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
15561
15627
|
}, _callee78, this);
|
|
15562
15628
|
}));
|
|
15563
15629
|
|
|
15564
|
-
function segmentTargetExists(
|
|
15630
|
+
function segmentTargetExists(_x111, _x112) {
|
|
15565
15631
|
return _segmentTargetExists.apply(this, arguments);
|
|
15566
15632
|
}
|
|
15567
15633
|
|
|
@@ -15594,7 +15660,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
15594
15660
|
}, _callee79, this);
|
|
15595
15661
|
}));
|
|
15596
15662
|
|
|
15597
|
-
function createCampaign(
|
|
15663
|
+
function createCampaign(_x113) {
|
|
15598
15664
|
return _createCampaign.apply(this, arguments);
|
|
15599
15665
|
}
|
|
15600
15666
|
|
|
@@ -15619,7 +15685,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
15619
15685
|
}, _callee80, this);
|
|
15620
15686
|
}));
|
|
15621
15687
|
|
|
15622
|
-
function getCampaign(
|
|
15688
|
+
function getCampaign(_x114) {
|
|
15623
15689
|
return _getCampaign.apply(this, arguments);
|
|
15624
15690
|
}
|
|
15625
15691
|
|
|
@@ -15647,7 +15713,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
15647
15713
|
}, _callee81, this);
|
|
15648
15714
|
}));
|
|
15649
15715
|
|
|
15650
|
-
function startCampaign(
|
|
15716
|
+
function startCampaign(_x115, _x116) {
|
|
15651
15717
|
return _startCampaign.apply(this, arguments);
|
|
15652
15718
|
}
|
|
15653
15719
|
|
|
@@ -15686,7 +15752,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
15686
15752
|
}, _callee82, this);
|
|
15687
15753
|
}));
|
|
15688
15754
|
|
|
15689
|
-
function queryCampaigns(_x118, _x119
|
|
15755
|
+
function queryCampaigns(_x117, _x118, _x119) {
|
|
15690
15756
|
return _queryCampaigns.apply(this, arguments);
|
|
15691
15757
|
}
|
|
15692
15758
|
|
|
@@ -15720,7 +15786,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
15720
15786
|
}, _callee83, this);
|
|
15721
15787
|
}));
|
|
15722
15788
|
|
|
15723
|
-
function updateCampaign(
|
|
15789
|
+
function updateCampaign(_x120, _x121) {
|
|
15724
15790
|
return _updateCampaign.apply(this, arguments);
|
|
15725
15791
|
}
|
|
15726
15792
|
|
|
@@ -15753,7 +15819,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
15753
15819
|
}, _callee84, this);
|
|
15754
15820
|
}));
|
|
15755
15821
|
|
|
15756
|
-
function deleteCampaign(
|
|
15822
|
+
function deleteCampaign(_x122) {
|
|
15757
15823
|
return _deleteCampaign.apply(this, arguments);
|
|
15758
15824
|
}
|
|
15759
15825
|
|
|
@@ -15786,7 +15852,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
15786
15852
|
}, _callee85, this);
|
|
15787
15853
|
}));
|
|
15788
15854
|
|
|
15789
|
-
function stopCampaign(
|
|
15855
|
+
function stopCampaign(_x123) {
|
|
15790
15856
|
return _stopCampaign.apply(this, arguments);
|
|
15791
15857
|
}
|
|
15792
15858
|
|
|
@@ -15819,7 +15885,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
15819
15885
|
}, _callee86, this);
|
|
15820
15886
|
}));
|
|
15821
15887
|
|
|
15822
|
-
function enrichURL(
|
|
15888
|
+
function enrichURL(_x124) {
|
|
15823
15889
|
return _enrichURL.apply(this, arguments);
|
|
15824
15890
|
}
|
|
15825
15891
|
|
|
@@ -15851,7 +15917,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
15851
15917
|
}, _callee87, this);
|
|
15852
15918
|
}));
|
|
15853
15919
|
|
|
15854
|
-
function getTask(
|
|
15920
|
+
function getTask(_x125) {
|
|
15855
15921
|
return _getTask.apply(this, arguments);
|
|
15856
15922
|
}
|
|
15857
15923
|
|
|
@@ -15893,7 +15959,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
15893
15959
|
}, _callee88, this);
|
|
15894
15960
|
}));
|
|
15895
15961
|
|
|
15896
|
-
function deleteChannels(
|
|
15962
|
+
function deleteChannels(_x126) {
|
|
15897
15963
|
return _deleteChannels.apply(this, arguments);
|
|
15898
15964
|
}
|
|
15899
15965
|
|
|
@@ -15960,7 +16026,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
15960
16026
|
}, _callee89, this);
|
|
15961
16027
|
}));
|
|
15962
16028
|
|
|
15963
|
-
function deleteUsers(
|
|
16029
|
+
function deleteUsers(_x127) {
|
|
15964
16030
|
return _deleteUsers.apply(this, arguments);
|
|
15965
16031
|
}
|
|
15966
16032
|
|
|
@@ -16002,7 +16068,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
16002
16068
|
}, _callee90, this);
|
|
16003
16069
|
}));
|
|
16004
16070
|
|
|
16005
|
-
function _createImportURL(
|
|
16071
|
+
function _createImportURL(_x128) {
|
|
16006
16072
|
return _createImportURL2.apply(this, arguments);
|
|
16007
16073
|
}
|
|
16008
16074
|
|
|
@@ -16050,7 +16116,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
16050
16116
|
}, _callee91, this);
|
|
16051
16117
|
}));
|
|
16052
16118
|
|
|
16053
|
-
function _createImport(
|
|
16119
|
+
function _createImport(_x129) {
|
|
16054
16120
|
return _createImport2.apply(this, arguments);
|
|
16055
16121
|
}
|
|
16056
16122
|
|
|
@@ -16091,7 +16157,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
16091
16157
|
}, _callee92, this);
|
|
16092
16158
|
}));
|
|
16093
16159
|
|
|
16094
|
-
function _getImport(
|
|
16160
|
+
function _getImport(_x130) {
|
|
16095
16161
|
return _getImport2.apply(this, arguments);
|
|
16096
16162
|
}
|
|
16097
16163
|
|
|
@@ -16132,7 +16198,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
16132
16198
|
}, _callee93, this);
|
|
16133
16199
|
}));
|
|
16134
16200
|
|
|
16135
|
-
function _listImports(
|
|
16201
|
+
function _listImports(_x131) {
|
|
16136
16202
|
return _listImports2.apply(this, arguments);
|
|
16137
16203
|
}
|
|
16138
16204
|
|
|
@@ -16172,7 +16238,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
16172
16238
|
}, _callee94, this);
|
|
16173
16239
|
}));
|
|
16174
16240
|
|
|
16175
|
-
function upsertPushProvider(
|
|
16241
|
+
function upsertPushProvider(_x132) {
|
|
16176
16242
|
return _upsertPushProvider.apply(this, arguments);
|
|
16177
16243
|
}
|
|
16178
16244
|
|
|
@@ -16212,7 +16278,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
16212
16278
|
}, _callee95, this);
|
|
16213
16279
|
}));
|
|
16214
16280
|
|
|
16215
|
-
function deletePushProvider(
|
|
16281
|
+
function deletePushProvider(_x133) {
|
|
16216
16282
|
return _deletePushProvider.apply(this, arguments);
|
|
16217
16283
|
}
|
|
16218
16284
|
|
|
@@ -16292,7 +16358,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
16292
16358
|
}, _callee97, this);
|
|
16293
16359
|
}));
|
|
16294
16360
|
|
|
16295
|
-
function commitMessage(
|
|
16361
|
+
function commitMessage(_x134) {
|
|
16296
16362
|
return _commitMessage.apply(this, arguments);
|
|
16297
16363
|
}
|
|
16298
16364
|
|
|
@@ -16329,7 +16395,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
16329
16395
|
}, _callee98, this);
|
|
16330
16396
|
}));
|
|
16331
16397
|
|
|
16332
|
-
function createPoll(
|
|
16398
|
+
function createPoll(_x135, _x136) {
|
|
16333
16399
|
return _createPoll.apply(this, arguments);
|
|
16334
16400
|
}
|
|
16335
16401
|
|
|
@@ -16366,7 +16432,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
16366
16432
|
}, _callee99, this);
|
|
16367
16433
|
}));
|
|
16368
16434
|
|
|
16369
|
-
function getPoll(
|
|
16435
|
+
function getPoll(_x137, _x138) {
|
|
16370
16436
|
return _getPoll.apply(this, arguments);
|
|
16371
16437
|
}
|
|
16372
16438
|
|
|
@@ -16403,7 +16469,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
16403
16469
|
}, _callee100, this);
|
|
16404
16470
|
}));
|
|
16405
16471
|
|
|
16406
|
-
function updatePoll(
|
|
16472
|
+
function updatePoll(_x139, _x140) {
|
|
16407
16473
|
return _updatePoll.apply(this, arguments);
|
|
16408
16474
|
}
|
|
16409
16475
|
|
|
@@ -16442,7 +16508,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
16442
16508
|
}, _callee101, this);
|
|
16443
16509
|
}));
|
|
16444
16510
|
|
|
16445
|
-
function partialUpdatePoll(_x142, _x143
|
|
16511
|
+
function partialUpdatePoll(_x141, _x142, _x143) {
|
|
16446
16512
|
return _partialUpdatePoll.apply(this, arguments);
|
|
16447
16513
|
}
|
|
16448
16514
|
|
|
@@ -16479,7 +16545,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
16479
16545
|
}, _callee102, this);
|
|
16480
16546
|
}));
|
|
16481
16547
|
|
|
16482
|
-
function deletePoll(
|
|
16548
|
+
function deletePoll(_x144, _x145) {
|
|
16483
16549
|
return _deletePoll.apply(this, arguments);
|
|
16484
16550
|
}
|
|
16485
16551
|
|
|
@@ -16514,7 +16580,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
16514
16580
|
}, _callee103, this);
|
|
16515
16581
|
}));
|
|
16516
16582
|
|
|
16517
|
-
function closePoll(
|
|
16583
|
+
function closePoll(_x146, _x147) {
|
|
16518
16584
|
return _closePoll.apply(this, arguments);
|
|
16519
16585
|
}
|
|
16520
16586
|
|
|
@@ -16552,7 +16618,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
16552
16618
|
}, _callee104, this);
|
|
16553
16619
|
}));
|
|
16554
16620
|
|
|
16555
|
-
function createPollOption(_x149, _x150
|
|
16621
|
+
function createPollOption(_x148, _x149, _x150) {
|
|
16556
16622
|
return _createPollOption.apply(this, arguments);
|
|
16557
16623
|
}
|
|
16558
16624
|
|
|
@@ -16590,7 +16656,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
16590
16656
|
}, _callee105, this);
|
|
16591
16657
|
}));
|
|
16592
16658
|
|
|
16593
|
-
function getPollOption(_x152, _x153
|
|
16659
|
+
function getPollOption(_x151, _x152, _x153) {
|
|
16594
16660
|
return _getPollOption.apply(this, arguments);
|
|
16595
16661
|
}
|
|
16596
16662
|
|
|
@@ -16628,7 +16694,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
16628
16694
|
}, _callee106, this);
|
|
16629
16695
|
}));
|
|
16630
16696
|
|
|
16631
|
-
function updatePollOption(_x155, _x156
|
|
16697
|
+
function updatePollOption(_x154, _x155, _x156) {
|
|
16632
16698
|
return _updatePollOption.apply(this, arguments);
|
|
16633
16699
|
}
|
|
16634
16700
|
|
|
@@ -16666,7 +16732,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
16666
16732
|
}, _callee107, this);
|
|
16667
16733
|
}));
|
|
16668
16734
|
|
|
16669
|
-
function deletePollOption(_x158, _x159
|
|
16735
|
+
function deletePollOption(_x157, _x158, _x159) {
|
|
16670
16736
|
return _deletePollOption.apply(this, arguments);
|
|
16671
16737
|
}
|
|
16672
16738
|
|
|
@@ -16707,7 +16773,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
16707
16773
|
}, _callee108, this);
|
|
16708
16774
|
}));
|
|
16709
16775
|
|
|
16710
|
-
function castPollVote(_x161, _x162, _x163
|
|
16776
|
+
function castPollVote(_x160, _x161, _x162, _x163) {
|
|
16711
16777
|
return _castPollVote.apply(this, arguments);
|
|
16712
16778
|
}
|
|
16713
16779
|
|
|
@@ -16741,7 +16807,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
16741
16807
|
}, _callee109, this);
|
|
16742
16808
|
}));
|
|
16743
16809
|
|
|
16744
|
-
function addPollAnswer(_x165, _x166, _x167
|
|
16810
|
+
function addPollAnswer(_x164, _x165, _x166, _x167) {
|
|
16745
16811
|
return _addPollAnswer.apply(this, arguments);
|
|
16746
16812
|
}
|
|
16747
16813
|
|
|
@@ -16771,7 +16837,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
16771
16837
|
}, _callee110, this);
|
|
16772
16838
|
}));
|
|
16773
16839
|
|
|
16774
|
-
function removePollVote(_x169, _x170, _x171
|
|
16840
|
+
function removePollVote(_x168, _x169, _x170, _x171) {
|
|
16775
16841
|
return _removePollVote.apply(this, arguments);
|
|
16776
16842
|
}
|
|
16777
16843
|
|
|
@@ -16874,7 +16940,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
16874
16940
|
}, _callee112, this);
|
|
16875
16941
|
}));
|
|
16876
16942
|
|
|
16877
|
-
function queryPollVotes(
|
|
16943
|
+
function queryPollVotes(_x172) {
|
|
16878
16944
|
return _queryPollVotes.apply(this, arguments);
|
|
16879
16945
|
}
|
|
16880
16946
|
|
|
@@ -16928,7 +16994,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
16928
16994
|
}, _callee113, this);
|
|
16929
16995
|
}));
|
|
16930
16996
|
|
|
16931
|
-
function queryPollAnswers(
|
|
16997
|
+
function queryPollAnswers(_x173) {
|
|
16932
16998
|
return _queryPollAnswers.apply(this, arguments);
|
|
16933
16999
|
}
|
|
16934
17000
|
|
|
@@ -17017,7 +17083,7 @@ var StreamChat = /*#__PURE__*/function () {
|
|
|
17017
17083
|
}, _callee115, this);
|
|
17018
17084
|
}));
|
|
17019
17085
|
|
|
17020
|
-
function updateFlags(
|
|
17086
|
+
function updateFlags(_x174, _x175) {
|
|
17021
17087
|
return _updateFlags.apply(this, arguments);
|
|
17022
17088
|
}
|
|
17023
17089
|
|
|
@@ -17083,6 +17149,7 @@ var EVENT_MAP = {
|
|
|
17083
17149
|
'reaction.deleted': true,
|
|
17084
17150
|
'reaction.new': true,
|
|
17085
17151
|
'reaction.updated': true,
|
|
17152
|
+
'thread.updated': true,
|
|
17086
17153
|
'typing.start': true,
|
|
17087
17154
|
'typing.stop': true,
|
|
17088
17155
|
'user.banned': true,
|