Skip to content

Commit

Permalink
Merge branch 'master' into message-insertion
Browse files Browse the repository at this point in the history
  • Loading branch information
myandrienko authored Dec 18, 2024
2 parents 17f8269 + af5cb81 commit 5d7ce61
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/channel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ import {
AscDesc,
PartialUpdateMemberAPIResponse,
AIState,
MessageOptions,
} from './types';
import { Role } from './permissions';
import { DEFAULT_QUERY_CHANNEL_MESSAGE_LIST_PAGE_SIZE } from './constants';
Expand Down Expand Up @@ -237,6 +238,7 @@ export class Channel<StreamChatGenerics extends ExtendableGenerics = DefaultGene
client_id?: string;
connection_id?: string;
message_filter_conditions?: MessageFilters<StreamChatGenerics>;
message_options?: MessageOptions;
query?: string;
} = {},
) {
Expand Down
5 changes: 5 additions & 0 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1713,6 +1713,10 @@ export type MessageFilters<StreamChatGenerics extends ExtendableGenerics = Defau
}
>;

export type MessageOptions = {
include_thread_participants?: boolean;
};

export type PrimitiveFilter<ObjectType> = ObjectType | null;

export type QueryFilter<ObjectType = string> = NonNullable<ObjectType> extends string | number | boolean
Expand Down Expand Up @@ -2738,6 +2742,7 @@ export type SearchPayload<StreamChatGenerics extends ExtendableGenerics = Defaul
connection_id?: string;
filter_conditions?: ChannelFilters<StreamChatGenerics>;
message_filter_conditions?: MessageFilters<StreamChatGenerics>;
message_options?: MessageOptions;
query?: string;
sort?: Array<{
direction: AscDesc;
Expand Down

0 comments on commit 5d7ce61

Please sign in to comment.