@stream-io/feeds-client 0.1.6 → 0.1.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.
@@ -1973,6 +1973,18 @@ class FeedsApi {
1973
1973
  decoders.RejectFeedMemberInviteResponse?.(response.body);
1974
1974
  return { ...response.body, metadata: response.metadata };
1975
1975
  }
1976
+ async stopWatchingFeed(request) {
1977
+ const queryParams = {
1978
+ connection_id: request?.connection_id,
1979
+ };
1980
+ const pathParams = {
1981
+ feed_group_id: request?.feed_group_id,
1982
+ feed_id: request?.feed_id,
1983
+ };
1984
+ const response = await this.apiClient.sendRequest('DELETE', '/api/v2/feeds/feed_groups/{feed_group_id}/feeds/{feed_id}/watch', pathParams, queryParams);
1985
+ decoders.Response?.(response.body);
1986
+ return { ...response.body, metadata: response.metadata };
1987
+ }
1976
1988
  async getFollowSuggestions(request) {
1977
1989
  const queryParams = {
1978
1990
  limit: request?.limit,
@@ -3803,6 +3815,13 @@ class FeedApi {
3803
3815
  ...request,
3804
3816
  });
3805
3817
  }
3818
+ stopWatching(request) {
3819
+ return this.feedsApi.stopWatchingFeed({
3820
+ feed_id: this.id,
3821
+ feed_group_id: this.group,
3822
+ ...request,
3823
+ });
3824
+ }
3806
3825
  }
3807
3826
 
3808
3827
  const addActivitiesToState = (newActivities, activities, position) => {