@stream-io/feeds-client 0.1.7 → 0.1.8

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/CHANGELOG.md CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [0.1.8](https://github.com/GetStream/stream-feeds-js/compare/@stream-io/feeds-client-0.1.7...@stream-io/feeds-client-0.1.8) (2025-07-23)
6
+
7
+
8
+ * [FEEDS-538] bump openapi to support notifcation event ([#73](https://github.com/GetStream/stream-feeds-js/issues/73)) ([6829746](https://github.com/GetStream/stream-feeds-js/commit/6829746dd64ac171e17133c1d1a44161346cc17b))
9
+
5
10
  ## [0.1.7](https://github.com/GetStream/stream-feeds-js/compare/@stream-io/feeds-client-0.1.6...@stream-io/feeds-client-0.1.7) (2025-07-22)
6
11
 
7
12
 
@@ -1147,6 +1147,18 @@ decoders.MuteResponse = (input) => {
1147
1147
  };
1148
1148
  return decode(typeMappings, input);
1149
1149
  };
1150
+ decoders.NotificationFeedUpdatedEvent = (input) => {
1151
+ const typeMappings = {
1152
+ created_at: { type: 'DatetimeType', isSingle: true },
1153
+ received_at: { type: 'DatetimeType', isSingle: true },
1154
+ aggregated_activities: {
1155
+ type: 'AggregatedActivityResponse',
1156
+ isSingle: false,
1157
+ },
1158
+ notification_status: { type: 'NotificationStatusResponse', isSingle: true },
1159
+ };
1160
+ return decode(typeMappings, input);
1161
+ };
1150
1162
  decoders.NotificationStatusResponse = (input) => {
1151
1163
  const typeMappings = {
1152
1164
  last_seen_at: { type: 'DatetimeType', isSingle: true },
@@ -2622,7 +2634,6 @@ class FeedsApi {
2622
2634
  }
2623
2635
  async updateLiveLocation(request) {
2624
2636
  const body = {
2625
- created_by_device_id: request?.created_by_device_id,
2626
2637
  message_id: request?.message_id,
2627
2638
  end_at: request?.end_at,
2628
2639
  latitude: request?.latitude,
@@ -3706,6 +3717,7 @@ const eventDecoderMapping = {
3706
3717
  'feeds.follow.created': (data) => decoders.FollowCreatedEvent(data),
3707
3718
  'feeds.follow.deleted': (data) => decoders.FollowDeletedEvent(data),
3708
3719
  'feeds.follow.updated': (data) => decoders.FollowUpdatedEvent(data),
3720
+ 'feeds.notification_feed.updated': (data) => decoders.NotificationFeedUpdatedEvent(data),
3709
3721
  'feeds.poll.closed': (data) => decoders.PollClosedFeedEvent(data),
3710
3722
  'feeds.poll.deleted': (data) => decoders.PollDeletedFeedEvent(data),
3711
3723
  'feeds.poll.updated': (data) => decoders.PollUpdatedFeedEvent(data),
@@ -4324,6 +4336,10 @@ class Feed extends FeedApi {
4324
4336
  return newState ?? currentState;
4325
4337
  });
4326
4338
  },
4339
+ 'feeds.notification_feed.updated': (event) => {
4340
+ console.info('notification feed updated', event);
4341
+ // TODO: handle notification feed updates
4342
+ },
4327
4343
  // the poll events should be removed from here
4328
4344
  'feeds.poll.closed': Feed.noop,
4329
4345
  'feeds.poll.deleted': Feed.noop,