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