Skip to content

Commit

Permalink
2.0.7-beta1
Browse files Browse the repository at this point in the history
  • Loading branch information
mayur-bhandari committed Feb 28, 2020
1 parent 96b5bbd commit b9f3d55
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 12 deletions.
38 changes: 28 additions & 10 deletions CometChat.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,25 @@ export namespace CometChat {
/**-------------------------------------------------------------------*
* User related functions provided by CometChat class *
*--------------------------------------------------------------------**/
/**
* function to create user.
*
* @static
* @param {User} user, authOnly apiKey
* @returns Promise<User>
* @memberof CometChat
*/
export function createUser(user: User | any, apiKey: string): Promise<User>;

/**
*
* function to update the already existing user and returns the result with updated user
* @param {User} user, authOnly apiKey
* @returns Promise<User>
* @memberof CometChat
*/
export function updateUser(user: User | any, apiKey: string): Promise<User>;

/**
* function to get the information for the uid provided as an argument
* @static
Expand Down Expand Up @@ -535,13 +554,7 @@ export namespace CometChat {
/**-------------------------------------------------------------------------------------------------------*
* Events listeners setting and removing . *
*--------------------------------------------------------------------------------------------------------**/
/**
* It will add the MessgeEventListener to list of the MessageEventListeners.
*
* @param {string} name
* @param {Function} callback
* @memberof CometChat
*/

export function addMessageListener(name: string, messageEventListener: MessageListener): void;
/**
* It will remove the MessgeEventListener from the list of the MessageEventListeners.
Expand Down Expand Up @@ -689,12 +702,12 @@ export namespace CometChat {
setConversationType(conversationType: string): void;
setLastMessage(lastMessage: TextMessage | MediaMessage | CustomMessage | any): void;
setConversationWith(conversationWith: User | Group): void;
setUnreadMessageCount(unreadMessageCount: number | any): void;
setUnreadMessageCount(unreadMessageCount: number): void;
getConversationId(): string;
getConversationType(): string;
getLastMessage(): TextMessage | MediaMessage | CustomMessage | any;
getConversationWith(): User | Group;
getUnreadMessageCount(): number | any;
getUnreadMessageCount(): number;
constructor(conversationId: string, conversationType: string, lastMessage: TextMessage | MediaMessage | CustomMessage | any, conversationWith: User | Group, unreadMessageCount: number | any)
}

Expand Down Expand Up @@ -1431,7 +1444,12 @@ export namespace CometChat {
getJoinedAt(): string;
setJoinedAt(joinedAt: string): void;
}

export class ConnectionListener {
onConnected?: Function;
inConnecting?: Function;
onDisconnected?: Function;
constructor(...args: any[]);
}
export class MessageListener {
onAction?: Function;
onTextMessageReceived?: Function;
Expand Down
2 changes: 1 addition & 1 deletion CometChat.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cometchat-pro/cordova-ionic-chat",
"version": "2.0.6",
"version": "2.0.7-beta1",
"description": "A complete chat solution.",
"main": "CometChat.js",
"scripts": {
Expand Down

0 comments on commit b9f3d55

Please sign in to comment.