Skip to content

Commit

Permalink
feat: add reactiongroups in MessageResponse
Browse files Browse the repository at this point in the history
  • Loading branch information
guerinoni committed Apr 24, 2024
1 parent 63facdd commit ba4d6f9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -627,6 +627,8 @@ export type MessageResponse<
export type MessageResponseBase<
StreamChatGenerics extends ExtendableGenerics = DefaultGenerics
> = MessageBase<StreamChatGenerics> & {
poll: PollResponse<StreamChatGenerics>;

Check failure on line 630 in src/types.ts

View workflow job for this annotation

GitHub Actions / test

Duplicate identifier 'poll'.

Check failure on line 630 in src/types.ts

View workflow job for this annotation

GitHub Actions / test

All declarations of 'poll' must have identical modifiers.

Check failure on line 630 in src/types.ts

View workflow job for this annotation

GitHub Actions / lint

Duplicate identifier 'poll'.

Check failure on line 630 in src/types.ts

View workflow job for this annotation

GitHub Actions / lint

All declarations of 'poll' must have identical modifiers.

Check failure on line 630 in src/types.ts

View workflow job for this annotation

GitHub Actions / test (18)

Duplicate identifier 'poll'.

Check failure on line 630 in src/types.ts

View workflow job for this annotation

GitHub Actions / test (18)

All declarations of 'poll' must have identical modifiers.
reaction_groups: Record<string, ReactionGroupResponse>;
type: MessageLabel;
args?: string;
before_message_send_failed?: boolean;
Expand Down Expand Up @@ -658,6 +660,13 @@ export type MessageResponseBase<
updated_at?: string;
};

export type ReactionGroupResponse = {
count: number;
sum_scores: number;
first_reaction_at?: string;
last_reaction_at?: string;
};

export type ModerationDetailsResponse = {
action: 'MESSAGE_RESPONSE_ACTION_BOUNCE' | (string & {});
error_msg: string;
Expand Down

0 comments on commit ba4d6f9

Please sign in to comment.