@stream-io/node-sdk 0.7.5 → 0.7.7
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/index.cjs.js +20 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.mjs +20 -3
- package/dist/index.es.mjs.map +1 -1
- package/dist/src/StreamFeedsClient.d.ts +7 -1
- package/dist/src/gen/feeds/FeedsApi.d.ts +5 -2
- package/dist/src/gen/models/index.d.ts +7 -0
- package/package.json +1 -1
- package/src/StreamFeedsClient.ts +8 -1
- package/src/gen/feeds/FeedsApi.ts +30 -2
- package/src/gen/models/index.ts +10 -0
package/dist/index.es.mjs
CHANGED
|
@@ -6649,7 +6649,7 @@ class ApiClient {
|
|
|
6649
6649
|
const headers = {
|
|
6650
6650
|
Authorization: this.apiConfig.token,
|
|
6651
6651
|
'stream-auth-type': 'jwt',
|
|
6652
|
-
'X-Stream-Client': 'stream-node-' + "0.7.
|
|
6652
|
+
'X-Stream-Client': 'stream-node-' + "0.7.7",
|
|
6653
6653
|
'Accept-Encoding': 'gzip',
|
|
6654
6654
|
'x-client-request-id': clientRequestId,
|
|
6655
6655
|
};
|
|
@@ -6883,7 +6883,7 @@ class FeedsApi {
|
|
|
6883
6883
|
decoders.PollVoteResponse?.(response.body);
|
|
6884
6884
|
return { ...response.body, metadata: response.metadata };
|
|
6885
6885
|
}
|
|
6886
|
-
async
|
|
6886
|
+
async addActivityReaction(request) {
|
|
6887
6887
|
const pathParams = {
|
|
6888
6888
|
activity_id: request?.activity_id,
|
|
6889
6889
|
};
|
|
@@ -7045,9 +7045,9 @@ class FeedsApi {
|
|
|
7045
7045
|
}
|
|
7046
7046
|
async addComment(request) {
|
|
7047
7047
|
const body = {
|
|
7048
|
-
comment: request?.comment,
|
|
7049
7048
|
object_id: request?.object_id,
|
|
7050
7049
|
object_type: request?.object_type,
|
|
7050
|
+
comment: request?.comment,
|
|
7051
7051
|
create_notification_activity: request?.create_notification_activity,
|
|
7052
7052
|
parent_id: request?.parent_id,
|
|
7053
7053
|
skip_push: request?.skip_push,
|
|
@@ -7491,6 +7491,17 @@ class FeedsApi {
|
|
|
7491
7491
|
decoders.GetFeedVisibilityResponse?.(response.body);
|
|
7492
7492
|
return { ...response.body, metadata: response.metadata };
|
|
7493
7493
|
}
|
|
7494
|
+
async updateFeedVisibility(request) {
|
|
7495
|
+
const pathParams = {
|
|
7496
|
+
name: request?.name,
|
|
7497
|
+
};
|
|
7498
|
+
const body = {
|
|
7499
|
+
grants: request?.grants,
|
|
7500
|
+
};
|
|
7501
|
+
const response = await this.apiClient.sendRequest('PUT', '/api/v2/feeds/feed_visibilities/{name}', pathParams, undefined, body, 'application/json');
|
|
7502
|
+
decoders.UpdateFeedVisibilityResponse?.(response.body);
|
|
7503
|
+
return { ...response.body, metadata: response.metadata };
|
|
7504
|
+
}
|
|
7494
7505
|
async createFeedsBatch(request) {
|
|
7495
7506
|
const body = {
|
|
7496
7507
|
feeds: request?.feeds,
|
|
@@ -7754,6 +7765,12 @@ class StreamFeedsClient extends FeedsApi {
|
|
|
7754
7765
|
this.queryFeeds = (request) => {
|
|
7755
7766
|
return super._queryFeeds(request);
|
|
7756
7767
|
};
|
|
7768
|
+
/**
|
|
7769
|
+
* @deprecated Use addActivityReaction instead
|
|
7770
|
+
*/
|
|
7771
|
+
this.addReaction = (request) => {
|
|
7772
|
+
return super.addActivityReaction(request);
|
|
7773
|
+
};
|
|
7757
7774
|
}
|
|
7758
7775
|
}
|
|
7759
7776
|
|