Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion melos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ command:
photo_view: ^0.15.0
json_annotation: ^4.9.0
meta: ^1.9.1
retrofit: ^4.6.0
# There's a breaking change in retrofit 4.10.0, so we limit the version to <=4.9.0
retrofit: ">=4.6.0 <=4.9.0"
rxdart: ^0.28.0
shared_preferences: ^2.5.3
state_notifier: ^1.0.0
Expand Down
3 changes: 3 additions & 0 deletions packages/stream_feeds/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
## unreleased
- [BREAKING] Change `queryFollowSuggestions` return type to `List<FeedSuggestionData>`.
- [BREAKING] Remove `activitySelectorOptions` from `FeedQuery`.
- Add `hidden` and `preview` fields to `ActivityData`.
- Update follower and following counts on the feed state when receiving follow websocket events.
- Fix FeedsReactionData id for updating reactions in the feed state.
- Improvement for stories and minor updates to other AggregatedActivity state updates.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ abstract interface class DefaultApi {

@POST('/api/v2/feeds/comments')
Future<Result<AddCommentResponse>> addComment({
@Body() required AddCommentRequest addCommentRequest,
@Body() AddCommentRequest? addCommentRequest,
});

@POST('/api/v2/feeds/comments/{id}/reactions')
Expand Down Expand Up @@ -90,6 +90,11 @@ abstract interface class DefaultApi {
@Body() required CreateBlockListRequest createBlockListRequest,
});

@POST('/api/v2/feeds/collections')
Future<Result<CreateCollectionsResponse>> createCollections({
@Body() required CreateCollectionsRequest createCollectionsRequest,
});

@POST('/api/v2/devices')
Future<Result<DurationResponse>> createDevice({
@Body() required CreateDeviceRequest createDeviceRequest,
Expand Down Expand Up @@ -150,6 +155,11 @@ abstract interface class DefaultApi {
@Path('folder_id') required String folderId,
});

@DELETE('/api/v2/feeds/collections')
Future<Result<DeleteCollectionsResponse>> deleteCollections({
@Query('collection_refs') required List<String> collectionRefs,
});

@DELETE('/api/v2/feeds/comments/{id}')
Future<Result<DeleteCommentResponse>> deleteComment({
@Path('id') required String id,
Expand Down Expand Up @@ -423,6 +433,11 @@ abstract interface class DefaultApi {
@Query('payload') QueryUsersPayload? payload,
});

@GET('/api/v2/feeds/collections')
Future<Result<ReadCollectionsResponse>> readCollections({
@Query('collection_refs') required List<String> collectionRefs,
});

@POST(
'/api/v2/feeds/feed_groups/{feed_group_id}/feeds/{feed_id}/members/reject')
Future<Result<RejectFeedMemberInviteResponse>> rejectFeedMemberInvite({
Expand Down Expand Up @@ -495,6 +510,11 @@ abstract interface class DefaultApi {
@Body() UpdateBookmarkFolderRequest? updateBookmarkFolderRequest,
});

@PATCH('/api/v2/feeds/collections')
Future<Result<UpdateCollectionsResponse>> updateCollections({
@Body() required UpdateCollectionsRequest updateCollectionsRequest,
});

@PATCH('/api/v2/feeds/comments/{id}')
Future<Result<UpdateCommentResponse>> updateComment({
@Path('id') required String id,
Expand Down
165 changes: 162 additions & 3 deletions packages/stream_feeds/lib/src/generated/api/api/default_api.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
// Code generated by GetStream internal OpenAPI code generator. DO NOT EDIT.

// coverage:ignore-file
// ignore_for_file: unused_import, unnecessary_import, prefer_single_quotes, require_trailing_commas, unnecessary_raw_strings, public_member_api_docs

import 'package:freezed_annotation/freezed_annotation.dart';
import 'package:json_annotation/json_annotation.dart';
import 'package:meta/meta.dart';
import 'package:stream_core/stream_core.dart' as core;

import '../models.dart';

part 'activity_feedback_event.g.dart';
part 'activity_feedback_event.freezed.dart';

@freezed
@immutable
@JsonSerializable()
class ActivityFeedbackEvent extends core.WsEvent with _$ActivityFeedbackEvent {
const ActivityFeedbackEvent({
required this.activityFeedback,
required this.createdAt,
required this.custom,
this.receivedAt,
required this.type,
this.user,
});

@override
final ActivityFeedbackEventPayload activityFeedback;

@override
@EpochDateTimeConverter()
final DateTime createdAt;

@override
final Map<String, Object?> custom;

@override
@EpochDateTimeConverter()
final DateTime? receivedAt;

@override
final String type;

@override
final UserResponseCommonFields? user;

Map<String, dynamic> toJson() => _$ActivityFeedbackEventToJson(this);

static ActivityFeedbackEvent fromJson(Map<String, dynamic> json) =>
_$ActivityFeedbackEventFromJson(json);
}
Loading