@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 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.4",
6671
+ 'X-Stream-Client': 'stream-node-' + "0.7.6",
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 addReaction(request) {
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,
@@ -7208,6 +7208,7 @@ class FeedsApi {
7208
7208
  notification: request?.notification,
7209
7209
  push_notification: request?.push_notification,
7210
7210
  ranking: request?.ranking,
7211
+ stories: request?.stories,
7211
7212
  };
7212
7213
  const response = await this.apiClient.sendRequest('POST', '/api/v2/feeds/feed_groups', undefined, undefined, body, 'application/json');
7213
7214
  decoders.CreateFeedGroupResponse?.(response.body);
@@ -7411,6 +7412,7 @@ class FeedsApi {
7411
7412
  notification: request?.notification,
7412
7413
  push_notification: request?.push_notification,
7413
7414
  ranking: request?.ranking,
7415
+ stories: request?.stories,
7414
7416
  };
7415
7417
  const response = await this.apiClient.sendRequest('POST', '/api/v2/feeds/feed_groups/{id}', pathParams, undefined, body, 'application/json');
7416
7418
  decoders.GetOrCreateFeedGroupResponse?.(response.body);
@@ -7428,6 +7430,7 @@ class FeedsApi {
7428
7430
  notification: request?.notification,
7429
7431
  push_notification: request?.push_notification,
7430
7432
  ranking: request?.ranking,
7433
+ stories: request?.stories,
7431
7434
  };
7432
7435
  const response = await this.apiClient.sendRequest('PUT', '/api/v2/feeds/feed_groups/{id}', pathParams, undefined, body, 'application/json');
7433
7436
  decoders.UpdateFeedGroupResponse?.(response.body);
@@ -7770,6 +7773,12 @@ class StreamFeedsClient extends FeedsApi {
7770
7773
  this.queryFeeds = (request) => {
7771
7774
  return super._queryFeeds(request);
7772
7775
  };
7776
+ /**
7777
+ * @deprecated Use addActivityReaction instead
7778
+ */
7779
+ this.addReaction = (request) => {
7780
+ return super.addActivityReaction(request);
7781
+ };
7773
7782
  }
7774
7783
  }
7775
7784