Skip to content

Commit

Permalink
3.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
mayur-bhandari committed Jun 8, 2022
1 parent 641a378 commit cc61358
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 5 deletions.
62 changes: 61 additions & 1 deletion CometChat.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,14 @@ export namespace CometChat {
CANCELLED: string;
ENDED: string;
};

let SORT_BY: {
NAME: string;
STATUS: string;
}
let SORT_ORDER: {
ASCENDING: string;
DESCENDING: string;
}

let appSettings: AppSettings;

Expand Down Expand Up @@ -487,6 +494,17 @@ export namespace CometChat {
* @memberof CometChat
*/
export function transferGroupOwnership(guid: string, uid: string): Promise<string>;

/**
* Function to create a group and add/ban members in/from that group.
* @param {Group} group
* @param {Array<GroupMember>} members
* @param {Array<String>} banMembers
* @returns {Promise<Object>}
* @memberof CometChat
*/
export function createGroupWithMembers(group: Group, members: Array<GroupMember>, banMembers: Array<string>): Promise<Object>;

/**-------------------------------------------------------------------*
* Call related functions provided by CometChat class *
*--------------------------------------------------------------------**/
Expand Down Expand Up @@ -3031,6 +3049,9 @@ export class UsersRequestBuilder {
/** @private */ showFriendsOnly: boolean;
/** @private */ showTags: boolean;
/** @private */ UIDs: Array<String>;
/** @private */ SortBy: string;
/** @private */ SortOrder: string;
/** @private */ SearchIn: Array<String>;
/**
* A method to set limit for the number of Users returned in a single iteration. A maximum of 100 users can fetched in a single iteration.
* @param {number} limit
Expand Down Expand Up @@ -3091,6 +3112,31 @@ export class UsersRequestBuilder {
* @returns
*/
setUIDs(uids: Array<String>): this;
/**
* A method to get the users sorted by either `name` or `status`.
* It accepts a string as input.
* By default the SDK fetches users sorted by `status`.
* @param {string} sortBy
* @returns
*/
public sortBy(sortBy: string): this;
/**
* A method to get the users sorted either in `asc` or `desc` order.
* It accepts a string as input.
* By default the SDK fetches users sorted in `asc` order.
* @param {string} sortOrder
* @returns
*/
public sortByOrder(sortOrder: string): this;
/**
* A method to set which field the search string should be searched.
* It accepts an array of string as input.
* It can be `["name"]`, `["uid"]` or `["name", "uid"]`.
* By default the SDK searches the search string in `["name", "uid"]`.
* @param {string[]} searchIn
* @returns
*/
public searchIn(searchIn: Array<String>): this;
/**
* This method will return an object of the UsersRequest class.
* @returns {UsersRequest}
Expand All @@ -3116,6 +3162,8 @@ export class ConversationsRequestBuilder {
/** @private */ getUserAndGroupTags: boolean;
/** @private */ tags: Array<String>;
/** @private */ WithTags: boolean;
/** @private */ groupTags: Array<String>;
/** @private */ userTags: Array<String>;
/**
*
* @param {number} limit
Expand Down Expand Up @@ -3149,6 +3197,18 @@ export class ConversationsRequestBuilder {
* @returns
*/
setTags(tags: Array<String>): this;
/**
* A method to filter conversation list by group tags.
* @param {Array<String>} groupTags
* @returns
*/
public setGroupTags(groupTags: Array<String>): this;
/**
* A method to filter conversation list by user tags.
* @param {Array<String>} userTags
* @returns
*/
public setUserTags(userTags: Array<String>): this;
/**
* This method will return an object of the ConversationsRequest class.
* @returns {ConversationsRequest}
Expand Down
2 changes: 1 addition & 1 deletion CometChat.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ This guide demonstrates how to add chat to an Ionic App using CometChat Pro.
[Push Notification](https://prodocs.cometchat.com/docs/extensions-enhanced-push-notification) | [Email Notification](https://prodocs.cometchat.com/docs/extensions-email-notification) | [SMS Notification](https://prodocs.cometchat.com/docs/extensions-sms-notification) | [Thumbnail Generation](https://prodocs.cometchat.com/docs/extensions-thumbnail-generation) | [Link Preview](https://prodocs.cometchat.com/docs/extensions-link-preview) | [Rich Media Preview](https://prodocs.cometchat.com/docs/extensions-rich-media-preview) | [Voice Transcription](https://prodocs.cometchat.com/docs/extensions-voice-transcription) | [Smart Reply](https://prodocs.cometchat.com/docs/extensions-smart-reply) | [Message Translation](https://prodocs.cometchat.com/docs/extensions-message-translation) | [Emojis](https://prodocs.cometchat.com/docs/extensions-emojis) | [Polls](https://prodocs.cometchat.com/docs/extensions-polls) | [Reactions](https://prodocs.cometchat.com/docs/extensions-reactions) | [Stickers](https://prodocs.cometchat.com/docs/extensions-stickers) | [Video Broadcasting](https://prodocs.cometchat.com/docs/extensions-broadcast) | [Collaborative Documents](https://prodocs.cometchat.com/docs/extensions-collaborative-document) | [Collaborative Whiteboards](https://prodocs.cometchat.com/docs/extensions-collaborative-whiteboard) | [Data Masking Filter](https://prodocs.cometchat.com/docs/extensions-data-masking-filter) | [Profanity Filter](https://prodocs.cometchat.com/docs/extensions-profanity-filter) | [Image Moderation](https://prodocs.cometchat.com/docs/extensions-image-moderation)| [Sentiment Analysis](https://prodocs.cometchat.com/docs/extensions-sentiment-analysis) | [In-flight Message Moderation](https://prodocs.cometchat.com/docs/extensions-in-flight-message-moderation) | [Virus & Malware Scanner](https://prodocs.cometchat.com/docs/extensions-virus-malware-scanner) | [XSS Filter](https://prodocs.cometchat.com/docs/extensions-xss-filter)

[![Platform](https://img.shields.io/badge/Platform-Javascript-brightgreen)](#)
<a href=" "> <img src="https://img.shields.io/badge/Version-3.0.6-important" /></a>
<a href=" "> <img src="https://img.shields.io/badge/Version-3.0.7-important" /></a>
![GitHub repo size](https://img.shields.io/github/repo-size/cometchat-pro/cordova-ionic-chat-sdk)
![GitHub contributors](https://img.shields.io/github/contributors/cometchat-pro/cordova-ionic-chat-sdk)
![GitHub stars](https://img.shields.io/github/stars/cometchat-pro/cordova-ionic-chat-sdk?style=social)
Expand Down Expand Up @@ -79,7 +79,7 @@ To setup Cordova Ionic SDK, you need to first register on CometChat Dashboard.
1. Run the following command to install the CometChat Pro Cordova Ionic SDK<br/>

```javascript
npm install @cometchat-pro/cordova-ionic-chat@3.0.6 --save
npm install @cometchat-pro/cordova-ionic-chat@3.0.7 --save
```

You can refer to the below link for instructions on how to do so:<br/>
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/cordova-ionic-chat",
"version": "3.0.6",
"version": "3.0.7",
"description": "A complete chat solution.",
"main": "CometChat.js",
"scripts": {
Expand Down

0 comments on commit cc61358

Please sign in to comment.