stream-chat
Advanced tools
Comparing version 8.27.0 to 8.28.0
/// <reference types="node" /> | ||
import { ChannelState } from './channel_state'; | ||
import { StreamChat } from './client'; | ||
import { APIResponse, BanUserOptions, ChannelAPIResponse, ChannelData, ChannelMemberAPIResponse, ChannelQueryOptions, ChannelResponse, ChannelUpdateOptions, CreateCallOptions, CreateCallResponse, DefaultGenerics, DeleteChannelAPIResponse, Event, EventAPIResponse, EventHandler, EventTypes, ExtendableGenerics, FormatMessageResponse, GetMultipleMessagesAPIResponse, GetReactionsAPIResponse, GetRepliesAPIResponse, InviteOptions, MarkReadOptions, MarkUnreadOptions, MemberSort, Message, MessageFilters, MessagePaginationOptions, MessageResponse, MessageSetType, MuteChannelAPIResponse, PartialUpdateChannel, PartialUpdateChannelAPIResponse, PinnedMessagePaginationOptions, PinnedMessagesSort, QueryMembersOptions, Reaction, ReactionAPIResponse, SearchAPIResponse, SearchOptions, SendMessageAPIResponse, TruncateChannelAPIResponse, TruncateOptions, UpdateChannelAPIResponse, UserFilters, UserResponse, QueryChannelAPIResponse, PollVoteData, SendMessageOptions } from './types'; | ||
import { APIResponse, BanUserOptions, ChannelAPIResponse, ChannelData, ChannelMemberAPIResponse, ChannelQueryOptions, ChannelResponse, ChannelUpdateOptions, CreateCallOptions, CreateCallResponse, DefaultGenerics, DeleteChannelAPIResponse, Event, EventAPIResponse, EventHandler, EventTypes, ExtendableGenerics, FormatMessageResponse, GetMultipleMessagesAPIResponse, GetReactionsAPIResponse, GetRepliesAPIResponse, InviteOptions, MarkReadOptions, MarkUnreadOptions, MemberSort, Message, MessageFilters, MessagePaginationOptions, MessageResponse, MessageSetType, MuteChannelAPIResponse, PartialUpdateChannel, PartialUpdateChannelAPIResponse, PinnedMessagePaginationOptions, PinnedMessagesSort, QueryMembersOptions, Reaction, ReactionAPIResponse, SearchAPIResponse, SearchOptions, SendMessageAPIResponse, TruncateChannelAPIResponse, TruncateOptions, UpdateChannelAPIResponse, UserFilters, UserResponse, QueryChannelAPIResponse, PollVoteData, SendMessageOptions, AscDesc } from './types'; | ||
import { Role } from './permissions'; | ||
@@ -372,3 +372,5 @@ /** | ||
user_id?: string; | ||
}): Promise<GetRepliesAPIResponse<StreamChatGenerics>>; | ||
}, sort?: { | ||
created_at: AscDesc; | ||
}[]): Promise<GetRepliesAPIResponse<StreamChatGenerics>>; | ||
/** | ||
@@ -375,0 +377,0 @@ * getPinnedMessages - List list pinned messages of the channel |
{ | ||
"name": "stream-chat", | ||
"version": "8.27.0", | ||
"version": "8.28.0", | ||
"description": "JS SDK for the Stream Chat API", | ||
@@ -5,0 +5,0 @@ "author": "GetStream", |
@@ -58,2 +58,3 @@ import { ChannelState } from './channel_state'; | ||
SendMessageOptions, | ||
AscDesc, | ||
} from './types'; | ||
@@ -827,6 +828,9 @@ import { Role } from './permissions'; | ||
options: MessagePaginationOptions & { user?: UserResponse<StreamChatGenerics>; user_id?: string }, | ||
sort?: { created_at: AscDesc }[], | ||
) { | ||
const normalizedSort = sort ? normalizeQuerySort(sort) : undefined; | ||
const data = await this.getClient().get<GetRepliesAPIResponse<StreamChatGenerics>>( | ||
this.getClient().baseURL + `/messages/${parent_id}/replies`, | ||
{ | ||
sort: normalizedSort, | ||
...options, | ||
@@ -833,0 +837,0 @@ }, |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
5866527
61911