stream-chat 9.35.1 → 9.36.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/cjs/index.browser.js +3 -29
- package/dist/cjs/index.browser.js.map +2 -2
- package/dist/cjs/index.node.js +3 -29
- package/dist/cjs/index.node.js.map +2 -2
- package/dist/esm/index.mjs +3 -29
- package/dist/esm/index.mjs.map +2 -2
- package/dist/types/channel_batch_updater.d.ts +0 -16
- package/dist/types/types.d.ts +1 -3
- package/package.json +1 -1
- package/src/channel_batch_updater.ts +0 -36
- package/src/client.ts +4 -0
- package/src/types.ts +1 -7
package/dist/cjs/index.node.js
CHANGED
|
@@ -470,34 +470,6 @@ var ChannelBatchUpdater = class {
|
|
|
470
470
|
data
|
|
471
471
|
});
|
|
472
472
|
}
|
|
473
|
-
/**
|
|
474
|
-
* addFilterTags - Add filter tags to channels matching the filter
|
|
475
|
-
*
|
|
476
|
-
* @param {UpdateChannelsBatchFilters} filter Filter to select channels
|
|
477
|
-
* @param {string[]} tags Tags to add
|
|
478
|
-
* @return {Promise<APIResponse & UpdateChannelsBatchResponse>} The server response
|
|
479
|
-
*/
|
|
480
|
-
async addFilterTags(filter, tags) {
|
|
481
|
-
return await this.client.updateChannelsBatch({
|
|
482
|
-
operation: "addFilterTags",
|
|
483
|
-
filter,
|
|
484
|
-
filter_tags_update: tags
|
|
485
|
-
});
|
|
486
|
-
}
|
|
487
|
-
/**
|
|
488
|
-
* removeFilterTags - Remove filter tags from channels matching the filter
|
|
489
|
-
*
|
|
490
|
-
* @param {UpdateChannelsBatchFilters} filter Filter to select channels
|
|
491
|
-
* @param {string[]} tags Tags to remove
|
|
492
|
-
* @return {Promise<APIResponse & UpdateChannelsBatchResponse>} The server response
|
|
493
|
-
*/
|
|
494
|
-
async removeFilterTags(filter, tags) {
|
|
495
|
-
return await this.client.updateChannelsBatch({
|
|
496
|
-
operation: "removeFilterTags",
|
|
497
|
-
filter,
|
|
498
|
-
filter_tags_update: tags
|
|
499
|
-
});
|
|
500
|
-
}
|
|
501
473
|
};
|
|
502
474
|
|
|
503
475
|
// src/client.ts
|
|
@@ -15039,6 +15011,8 @@ var StreamChat = class _StreamChat {
|
|
|
15039
15011
|
`${this.baseURL}/threads`,
|
|
15040
15012
|
requestBody
|
|
15041
15013
|
);
|
|
15014
|
+
const parentMessages = response.threads.map((thread) => thread.parent_message);
|
|
15015
|
+
this.polls.hydratePollCache(parentMessages);
|
|
15042
15016
|
return {
|
|
15043
15017
|
threads: response.threads.map(
|
|
15044
15018
|
(thread) => new Thread({ client: this, threadData: thread })
|
|
@@ -15113,7 +15087,7 @@ var StreamChat = class _StreamChat {
|
|
|
15113
15087
|
if (this.userAgent) {
|
|
15114
15088
|
return this.userAgent;
|
|
15115
15089
|
}
|
|
15116
|
-
const version = "9.
|
|
15090
|
+
const version = "9.36.0";
|
|
15117
15091
|
const clientBundle = "node-cjs";
|
|
15118
15092
|
let userAgentString = "";
|
|
15119
15093
|
if (this.sdkIdentifier) {
|