Skip to content

Commit

Permalink
v2.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
mayur-bhandari committed Oct 9, 2020
1 parent 8e0db2b commit 0977013
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 17 deletions.
36 changes: 22 additions & 14 deletions CometChat.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -476,11 +476,11 @@ export namespace CometChat {
* @static
* @param {string} guid
* @param {Array<GroupMember>} groupMembers
* @param {Array<GroupMember>} [bannedMembersList]
* @param {Array<String>} bannedMembersList
* @returns {Promise<Object>}
* @memberof CometChat
*/
export function addMembersToGroup(guid: string, groupMembers: Array<GroupMember>, bannedMembersList?: Array<string>): Promise<Object>;
export function addMembersToGroup(guid: string, groupMembers: Array<GroupMember>, bannedMembersList: Array<string>): Promise<Object>;

/**-------------------------------------------------------------------*
* Call related functions provided by CometChat class *
Expand Down Expand Up @@ -681,17 +681,17 @@ export namespace CometChat {
* @memberof CometChat
*/
export function logout(): Promise<Object>;

/**
* method to set resource, platform and language variable.
*
* @static
* @param {string} resource
* @param {string} platform
* @param {string} language
* @returns void
* @memberof CometChat
*/
* method to set resource, platform and language variable.
*
* @static
* @param {string} resource
* @param {string} platform
* @param {string} language
* @returns void
* @memberof CometChat
*/
export function setSource(resource: string, platform: string, language: string): void;

/**
Expand All @@ -706,7 +706,7 @@ export namespace CometChat {
* @memberof CometChat
*/
export function callExtension(slug: string, method: string, endpoint: string, data: Object): Promise<Object>;

export function isExtensionEnabled(extensionId: string): Promise<boolean>;
export function clearCache(): void;
export function typingTimer(): void;
Expand Down Expand Up @@ -1893,8 +1893,10 @@ export namespace CometChat {
limit: number;
searchKeyword: string;
guid: string;
scopes?: Array<String>;
setLimit(limit: number): this;
setSearchKeyword(searchKeyword: string): this;
setScopes(scopes: Array<String>): this;
build(): GroupMembersRequest;
}

Expand All @@ -1921,12 +1923,14 @@ export namespace CometChat {
searchKeyword: string;
shouldHideBlockedUsers: boolean;
role: string;
roles: Array<String>;
showFriendsOnly: boolean;
setLimit(limit: number): this;
setStatus(status: string): this;
setSearchKeyword(searchKeyword: string): this;
hideBlockedUsers(hideBlockedUsers: boolean): this;
setRole(role: string): this;
setRoles(roles: Array<String>): this;
friendsOnly(friendsOnly: boolean): this;
build(): UsersRequest;
}
Expand Down Expand Up @@ -2012,7 +2016,9 @@ export namespace CometChat {
updatedAt?: string;
onlyUpdate?: number;
category?: string;
categories?: Array<String>;
type?: string;
types?: Array<String>;
hideThreadedMessages?: boolean;
setLimit(limit: number): this;
setGUID(guid: string): this;
Expand All @@ -2026,7 +2032,9 @@ export namespace CometChat {
setUpdatedAfter(updatedAt: string): this;
updatesOnly(onlyUpdate: boolean): this;
setCategory(category: string): this;
setCategories(categories: Array<String>): this;
setType(type: string): this;
setTypes(types: Array<String>): this;
hideReplies(hideReplies: boolean): this;
/**
*Built the DefaultMessagesRequest
Expand Down Expand Up @@ -2234,4 +2242,4 @@ export namespace CometChat {
export class callingComponent{
}

}
}
2 changes: 1 addition & 1 deletion CometChat.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ This guide demonstrates how to add chat to a Javascript application using CometC
First, install via npm

```
npm install @cometchat-pro/[email protected].1 --save
npm install @cometchat-pro/[email protected].2 --save
```

Then, import the `CometChat` object wherever you want to use CometChat
Expand Down
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/react-native-chat",
"version": "2.1.1",
"version": "2.1.2",
"description": "A complete chat solution.",
"main": "CometChat.js",
"scripts": {
Expand Down

0 comments on commit 0977013

Please sign in to comment.