77 * @param {string } appId appId generted at the time of perchase. unique for each client.
88 * @returns {CometChat }
99 */
10- export function init ( appId : string ) : CometChat ;
11- export as namespace CometChat ;
12- export as namespace CometChatNotifications ;
10+ export function init ( appId : string ) : CometChat ;
11+ export as namespace CometChat ;
12+ export as namespace CometChatNotifications ;
1313
1414export class CometChat {
1515 static GroupType : typeof GroupType ;
@@ -392,6 +392,11 @@ export class CometChat {
392392 MENTIONS_WITH_TAG_INFO : string ;
393393 MENTIONS_WITH_BLOCKED_INFO : string ;
394394 ONLY_INTERACTION_GOAL_COMPLETED : string ;
395+ HAS_ATTACHMENTS : string ;
396+ HAS_LINKS : string ;
397+ HAS_MENTIONS : string ;
398+ HAS_REACTIONS : string ;
399+ MENTIONED_UIDS : string ;
395400 } ;
396401 } ;
397402 } ;
@@ -988,6 +993,7 @@ export class CometChat {
988993 static InteractionGoal : typeof InteractionGoal ;
989994 static Interaction : typeof Interaction ;
990995 static InteractionReceipt : typeof InteractionReceipt ;
996+ static MessageReceipt : typeof MessageReceipt ;
991997 static Group : typeof Group ;
992998 static User : typeof User ;
993999 static GroupMember : typeof GroupMember ;
@@ -1111,7 +1117,6 @@ export class CometChat {
11111117 PROTECTED : string ;
11121118 PASSWORD : string ;
11131119 } ;
1114- static MessageReceipt : typeof MessageReceipt ;
11151120 /**
11161121 * Setter method for CometChat authToken.
11171122 * @internal
@@ -3042,6 +3047,11 @@ export const MessageConstatnts: {
30423047 MENTIONS_WITH_TAG_INFO : string ;
30433048 MENTIONS_WITH_BLOCKED_INFO : string ;
30443049 ONLY_INTERACTION_GOAL_COMPLETED : string ;
3050+ HAS_ATTACHMENTS : string ;
3051+ HAS_LINKS : string ;
3052+ HAS_MENTIONS : string ;
3053+ HAS_REACTIONS : string ;
3054+ MENTIONED_UIDS : string ;
30453055 } ;
30463056 } ;
30473057} ;
@@ -5243,6 +5253,11 @@ export class ConversationsRequest {
52435253 * @returns {string }
52445254 */
52455255 getConversationType ( ) : string ;
5256+ /**
5257+ * Method to get the search string based on which the conversations will be fetched.
5258+ * @returns {string }
5259+ */
5260+ getSearchKeyword ( ) : string ;
52465261 /**
52475262 * Checks if the filtering should include both user and group tags.
52485263 * @return true if both user and group tags are included. false otherwise.
@@ -5273,6 +5288,12 @@ export class ConversationsRequest {
52735288 * @returns {String[] }
52745289 */
52755290 getUserTags ( ) : String [ ] ;
5291+ /**
5292+ * Determines whether only unread conversations should be fetched.
5293+ *
5294+ * @returns {boolean }
5295+ */
5296+ getUnread ( ) : boolean ;
52765297}
52775298export class ConversationsRequestBuilder {
52785299 /** @private */ conversationType : string ;
@@ -5284,6 +5305,8 @@ export class ConversationsRequestBuilder {
52845305 /** @private */ userTags : Array < String > ;
52855306 /** @private */ IncludeBlockedUsers : boolean ;
52865307 /** @private */ WithBlockedInfo : boolean ;
5308+ /** @private */ searchKeyword : string ;
5309+ /** @private */ unreadOnly : boolean ;
52875310 /**
52885311 *
52895312 * @param {number } limit
@@ -5298,6 +5321,14 @@ export class ConversationsRequestBuilder {
52985321 * @returns
52995322 */
53005323 setConversationType ( conversationType : string ) : this;
5324+ /**
5325+ *
5326+ * @param {string } searchKeyword
5327+ * Method to set the search string based on which the conversations will be fetched.
5328+ * This string will be searched in the `conversationWith` property.
5329+ * @returns
5330+ */
5331+ setSearchKeyword ( searchKeyword : string ) : this;
53015332 /**
53025333 *
53035334 * @param {boolean } getUserAndGroupTags
@@ -5358,6 +5389,12 @@ export class ConversationsRequestBuilder {
53585389 * @returns
53595390 */
53605391 withBlockedInfo ( _withBlockedInfo : boolean ) : this;
5392+ /**
5393+ * A method to fetch unread conversations.
5394+ * @param {boolean } unread
5395+ * @returns
5396+ */
5397+ setUnread ( unread : boolean ) : this;
53615398 /**
53625399 * This method will return an object of the ConversationsRequest class.
53635400 * @returns {ConversationsRequest }
@@ -5471,6 +5508,36 @@ export class MessagesRequest {
54715508 * @return {boolean }
54725509 */
54735510 isHideDeletedMessages ( ) : boolean ;
5511+ /**
5512+ * Gets the flag indicating whether to only fetch messages which have attachments.
5513+ *
5514+ * @return {boolean }
5515+ */
5516+ getHasAttachments ( ) : boolean ;
5517+ /**
5518+ * Method to only fetch messages which have links.
5519+ *
5520+ * @return {boolean }
5521+ */
5522+ getHasLinks ( ) : boolean ;
5523+ /**
5524+ * Method to only fetch messages which have mentions.
5525+ *
5526+ * @return {boolean }
5527+ */
5528+ getHasMentions ( ) : boolean ;
5529+ /**
5530+ * Method to only fetch messages which have reactions.
5531+ *
5532+ * @return {boolean }
5533+ */
5534+ getHasReactions ( ) : boolean ;
5535+ /**
5536+ * Method to only fetch messages which have the given mentioned UIDs.
5537+ *
5538+ * @return {String[] }
5539+ */
5540+ getMentionedUIDs ( ) : String [ ] ;
54745541 /**
54755542 * Gets the list of tags for which the messages are to be fetched.
54765543 *
@@ -5536,6 +5603,11 @@ export class MessagesRequestBuilder {
55365603 /** @private */ interactionGoalCompletedOnly ?: boolean ;
55375604 /** @private */ mentionsWithUserTags ?: boolean ;
55385605 /** @private */ mentionsWithBlockedRelation ?: boolean ;
5606+ /** @private */ HasAttachments ?: boolean ;
5607+ /** @private */ HasLinks ?: boolean ;
5608+ /** @private */ HasMentions ?: boolean ;
5609+ /** @private */ HasReactions ?: boolean ;
5610+ /** @private */ mentionedUIDs ?: Array < String > ;
55395611 /**
55405612 * A method to set limit for the number of messages returned in a single iteration. A maximum of 100 messages can fetched in a single iteration.
55415613 * @param {number } limit
@@ -5638,6 +5710,36 @@ export class MessagesRequestBuilder {
56385710 * @returns
56395711 */
56405712 hideDeletedMessages ( hideDeletedMessages : boolean ) : this;
5713+ /**
5714+ * Method to only fetch messages which have attachments.
5715+ * @param {boolean } hasAttachments
5716+ * @returns
5717+ */
5718+ hasAttachments ( hasAttachments : boolean ) : this;
5719+ /**
5720+ * Method to only fetch messages which have links.
5721+ * @param {boolean } hasLinks
5722+ * @returns
5723+ */
5724+ hasLinks ( hasLinks : boolean ) : this;
5725+ /**
5726+ * Method to only fetch messages which have mentions.
5727+ * @param {boolean } hasMentions
5728+ * @returns
5729+ */
5730+ hasMentions ( hasMentions : boolean ) : this;
5731+ /**
5732+ * Method to only fetch messages which have reactions.
5733+ * @param {boolean } hasReactions
5734+ * @returns
5735+ */
5736+ hasReactions ( hasReactions : boolean ) : this;
5737+ /**
5738+ * Method to only fetch messages which have the given mentioned UIDs.
5739+ * @param {Array<String> } mentionedUIDs
5740+ * @returns
5741+ */
5742+ setMentionedUIDs ( mentionedUIDs : Array < String > ) : this;
56415743 /**
56425744 * A method to set parameter to get the messages belonging to specific tags.
56435745 * @param {Array<String> } tags
@@ -7687,4 +7789,3 @@ export class RTCUser {
76877789 setResource ( resource : string ) : void ;
76887790 getResource ( ) : string ;
76897791}
7690-
0 commit comments