stream-chat
Advanced tools
Comparing version 1.1.4 to 1.1.5
@@ -0,1 +1,13 @@ | ||
## October 10, 2019 - 1.1.5 | ||
- Fix for issue [#133](https://github.com/GetStream/stream-chat-js/issues/133) - Updating user object in client, when `user.updated` is received corresponding to user of client | ||
- Adding types for ChannelData object | ||
- Fixing tests | ||
## October 07, 2019 - 1.1.4 | ||
## October 07, 2019 - 1.1.3 | ||
- File upload issue fix - Allowing File object as valid uri in sendFile function in client. | ||
## September 30, 2019 - 1.1.2 | ||
@@ -2,0 +14,0 @@ |
{ | ||
"name": "stream-chat", | ||
"version": "1.1.4", | ||
"version": "1.1.5", | ||
"description": "JS SDK for the Stream Chat API", | ||
@@ -5,0 +5,0 @@ "author": "GetStream", |
@@ -216,3 +216,3 @@ // TypeScript Version: 2.8 | ||
channel(channelType: string, channelID: string, custom: object): Channel; | ||
channel(channelType: string, channelID: string, custom: ChannelData): Channel; | ||
@@ -233,7 +233,7 @@ updateUser(userObject: User): Promise<UpdateUsersAPIResponse>; | ||
createChannelType(data: object): Promise<CreateChannelTypeAPIResponse>; | ||
getChannelType(channelType: string, data: object): Promise<GetChannelTypeAPIResponse>; | ||
createChannelType(data: ChannelData): Promise<CreateChannelTypeAPIResponse>; | ||
getChannelType(channelType: string): Promise<GetChannelTypeAPIResponse>; | ||
updateChannelType( | ||
channelType: string, | ||
data: object, | ||
data: ChannelData, | ||
): Promise<UpdateChannelTypeAPIResponse>; | ||
@@ -259,7 +259,7 @@ deleteChannelType(channelType: string): Promise<DeleteChannelTypeAPIResponse>; | ||
export class Channel { | ||
constructor(client: StreamChat, type: string, id: string, data: object); | ||
constructor(client: StreamChat, type: string, id: string, data: ChannelData); | ||
type: string; | ||
id: string; | ||
// used by the frontend, gets updated: | ||
data: object; | ||
data: ChannelResponse; | ||
cid: string; // `${type}:${id}`; | ||
@@ -306,3 +306,6 @@ listeners: { | ||
update(channelData: object, updateMessage: Message): Promise<UpdateChannelAPIResponse>; | ||
update( | ||
channelData: ChannelData, | ||
updateMessage: Message, | ||
): Promise<UpdateChannelAPIResponse>; | ||
delete(): Promise<DeleteChannelAPIResponse>; | ||
@@ -372,2 +375,8 @@ | ||
export interface ChannelData { | ||
name?: string; | ||
image?: string; | ||
members?: string[]; | ||
[key: string]: any; | ||
} | ||
export class StableWSConnection { | ||
@@ -600,2 +609,4 @@ constructor( | ||
id: string; | ||
name?: string; | ||
image?: string; | ||
type: string; | ||
@@ -608,5 +619,6 @@ last_message_at?: string; | ||
frozen: boolean; | ||
members?: ChannelMemberResponse[]; | ||
member_count?: number; | ||
invites?: string[]; | ||
config: ChannelConfigWithInfo; | ||
config?: ChannelConfigWithInfo; | ||
// Additional properties defined on channel | ||
@@ -613,0 +625,0 @@ [propName: string]: any; |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1770545
20916