@stream-io/node-sdk 0.7.4 → 0.7.6
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 +12 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.mjs +12 -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 +1 -1
- package/dist/src/gen/models/index.d.ts +2 -0
- package/package.json +1 -1
- package/src/StreamFeedsClient.ts +8 -1
- package/src/gen/feeds/FeedsApi.ts +5 -2
- package/src/gen/models/index.ts +4 -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.6",
|
|
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,
|
|
@@ -7189,6 +7189,7 @@ class FeedsApi {
|
|
|
7189
7189
|
notification: request?.notification,
|
|
7190
7190
|
push_notification: request?.push_notification,
|
|
7191
7191
|
ranking: request?.ranking,
|
|
7192
|
+
stories: request?.stories,
|
|
7192
7193
|
};
|
|
7193
7194
|
const response = await this.apiClient.sendRequest('POST', '/api/v2/feeds/feed_groups', undefined, undefined, body, 'application/json');
|
|
7194
7195
|
decoders.CreateFeedGroupResponse?.(response.body);
|
|
@@ -7392,6 +7393,7 @@ class FeedsApi {
|
|
|
7392
7393
|
notification: request?.notification,
|
|
7393
7394
|
push_notification: request?.push_notification,
|
|
7394
7395
|
ranking: request?.ranking,
|
|
7396
|
+
stories: request?.stories,
|
|
7395
7397
|
};
|
|
7396
7398
|
const response = await this.apiClient.sendRequest('POST', '/api/v2/feeds/feed_groups/{id}', pathParams, undefined, body, 'application/json');
|
|
7397
7399
|
decoders.GetOrCreateFeedGroupResponse?.(response.body);
|
|
@@ -7409,6 +7411,7 @@ class FeedsApi {
|
|
|
7409
7411
|
notification: request?.notification,
|
|
7410
7412
|
push_notification: request?.push_notification,
|
|
7411
7413
|
ranking: request?.ranking,
|
|
7414
|
+
stories: request?.stories,
|
|
7412
7415
|
};
|
|
7413
7416
|
const response = await this.apiClient.sendRequest('PUT', '/api/v2/feeds/feed_groups/{id}', pathParams, undefined, body, 'application/json');
|
|
7414
7417
|
decoders.UpdateFeedGroupResponse?.(response.body);
|
|
@@ -7751,6 +7754,12 @@ class StreamFeedsClient extends FeedsApi {
|
|
|
7751
7754
|
this.queryFeeds = (request) => {
|
|
7752
7755
|
return super._queryFeeds(request);
|
|
7753
7756
|
};
|
|
7757
|
+
/**
|
|
7758
|
+
* @deprecated Use addActivityReaction instead
|
|
7759
|
+
*/
|
|
7760
|
+
this.addReaction = (request) => {
|
|
7761
|
+
return super.addActivityReaction(request);
|
|
7762
|
+
};
|
|
7754
7763
|
}
|
|
7755
7764
|
}
|
|
7756
7765
|
|