@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.cjs.js
CHANGED
|
@@ -6668,7 +6668,7 @@ class ApiClient {
|
|
|
6668
6668
|
const headers = {
|
|
6669
6669
|
Authorization: this.apiConfig.token,
|
|
6670
6670
|
'stream-auth-type': 'jwt',
|
|
6671
|
-
'X-Stream-Client': 'stream-node-' + "0.7.
|
|
6671
|
+
'X-Stream-Client': 'stream-node-' + "0.7.7",
|
|
6672
6672
|
'Accept-Encoding': 'gzip',
|
|
6673
6673
|
'x-client-request-id': clientRequestId,
|
|
6674
6674
|
};
|
|
@@ -6902,7 +6902,7 @@ class FeedsApi {
|
|
|
6902
6902
|
decoders.PollVoteResponse?.(response.body);
|
|
6903
6903
|
return { ...response.body, metadata: response.metadata };
|
|
6904
6904
|
}
|
|
6905
|
-
async
|
|
6905
|
+
async addActivityReaction(request) {
|
|
6906
6906
|
const pathParams = {
|
|
6907
6907
|
activity_id: request?.activity_id,
|
|
6908
6908
|
};
|
|
@@ -7064,9 +7064,9 @@ class FeedsApi {
|
|
|
7064
7064
|
}
|
|
7065
7065
|
async addComment(request) {
|
|
7066
7066
|
const body = {
|
|
7067
|
-
comment: request?.comment,
|
|
7068
7067
|
object_id: request?.object_id,
|
|
7069
7068
|
object_type: request?.object_type,
|
|
7069
|
+
comment: request?.comment,
|
|
7070
7070
|
create_notification_activity: request?.create_notification_activity,
|
|
7071
7071
|
parent_id: request?.parent_id,
|
|
7072
7072
|
skip_push: request?.skip_push,
|
|
@@ -7510,6 +7510,17 @@ class FeedsApi {
|
|
|
7510
7510
|
decoders.GetFeedVisibilityResponse?.(response.body);
|
|
7511
7511
|
return { ...response.body, metadata: response.metadata };
|
|
7512
7512
|
}
|
|
7513
|
+
async updateFeedVisibility(request) {
|
|
7514
|
+
const pathParams = {
|
|
7515
|
+
name: request?.name,
|
|
7516
|
+
};
|
|
7517
|
+
const body = {
|
|
7518
|
+
grants: request?.grants,
|
|
7519
|
+
};
|
|
7520
|
+
const response = await this.apiClient.sendRequest('PUT', '/api/v2/feeds/feed_visibilities/{name}', pathParams, undefined, body, 'application/json');
|
|
7521
|
+
decoders.UpdateFeedVisibilityResponse?.(response.body);
|
|
7522
|
+
return { ...response.body, metadata: response.metadata };
|
|
7523
|
+
}
|
|
7513
7524
|
async createFeedsBatch(request) {
|
|
7514
7525
|
const body = {
|
|
7515
7526
|
feeds: request?.feeds,
|
|
@@ -7773,6 +7784,12 @@ class StreamFeedsClient extends FeedsApi {
|
|
|
7773
7784
|
this.queryFeeds = (request) => {
|
|
7774
7785
|
return super._queryFeeds(request);
|
|
7775
7786
|
};
|
|
7787
|
+
/**
|
|
7788
|
+
* @deprecated Use addActivityReaction instead
|
|
7789
|
+
*/
|
|
7790
|
+
this.addReaction = (request) => {
|
|
7791
|
+
return super.addActivityReaction(request);
|
|
7792
|
+
};
|
|
7776
7793
|
}
|
|
7777
7794
|
}
|
|
7778
7795
|
|