Skip to content

Commit

Permalink
[CHAT-1382] added id_around & created_at_around to query messages (#798)
Browse files Browse the repository at this point in the history
  • Loading branch information
gumuz committed Oct 25, 2021
1 parent a4eb19e commit 578a956
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -830,7 +830,7 @@ export type ChannelQueryOptions<
connection_id?: string;
data?: ChannelResponse<ChannelType, CommandType, UserType>;
members?: PaginationOptions;
messages?: PaginationOptions;
messages?: MessagePaginationOptions;
presence?: boolean;
state?: boolean;
watch?: boolean;
Expand Down Expand Up @@ -956,6 +956,11 @@ export type PaginationOptions = {
offset?: number;
};

export type MessagePaginationOptions = PaginationOptions & {
created_at_around?: string | Date;
id_around?: string;
};

export type QueryMembersOptions = {
limit?: number;
offset?: number;
Expand Down

0 comments on commit 578a956

Please sign in to comment.