Skip to content

Commit 40814c9

Browse files
committed
Updated SDK version to 4.0.13
1 parent aff045f commit 40814c9

File tree

3 files changed

+23
-2
lines changed

3 files changed

+23
-2
lines changed

CometChat.d.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,7 @@ export class CometChat {
397397
HAS_MENTIONS: string;
398398
HAS_REACTIONS: string;
399399
MENTIONED_UIDS: string;
400+
ATTACHMENT_TYPES: string;
400401
};
401402
};
402403
};
@@ -980,6 +981,7 @@ export class CometChat {
980981
MSG_VER_POST: string;
981982
};
982983
static GoalType: typeof GoalType;
984+
static AttachmentType: typeof AttachmentType;
983985
static CometChatException: typeof CometChatException;
984986
static TextMessage: typeof TextMessage;
985987
static MediaMessage: typeof MediaMessage;
@@ -3052,6 +3054,7 @@ export const MessageConstatnts: {
30523054
HAS_MENTIONS: string;
30533055
HAS_REACTIONS: string;
30543056
MENTIONED_UIDS: string;
3057+
ATTACHMENT_TYPES: string;
30553058
};
30563059
};
30573060
};
@@ -3847,6 +3850,12 @@ export const AI_FEATURE_ACCESSIBLE = "features.ai.accessible";
38473850
export const AI_FEATURE_ENABLED = "features.ai.enabled";
38483851
export const AI_SLUG_ACCESSIBLE = "features.ai.%s.accessible";
38493852
export const AI_SLUG_ENABLED = "features.ai.%s.enabled";
3853+
export enum AttachmentType {
3854+
IMAGE = "image",
3855+
VIDEO = "video",
3856+
AUDIO = "audio",
3857+
FILE = "file"
3858+
}
38503859

38513860
/**
38523861
*
@@ -5568,6 +5577,11 @@ export class MessagesRequest {
55685577
* @return {boolean}
55695578
*/
55705579
isInteractionGoalCompletedOnly(): boolean;
5580+
/**
5581+
* Returns the list of selected attachment types used for filtering messages.
5582+
* @return {Array<AttachmentTypes>}
5583+
*/
5584+
getAttachmentTypes(): Array<AttachmentType>;
55715585
/**
55725586
* Get list of next messages based on the parameters specified in MessagesRequestBuilder class. The Developer need to call this method repeatedly using the same object of MessagesRequest class to get paginated list of message.
55735587
* @returns {Promise<BaseMessage[] | []>}
@@ -5608,6 +5622,7 @@ export class MessagesRequestBuilder {
56085622
/** @private */ HasMentions?: boolean;
56095623
/** @private */ HasReactions?: boolean;
56105624
/** @private */ mentionedUIDs?: Array<String>;
5625+
/** @private */ attachmentTypes?: Array<AttachmentType>;
56115626
/**
56125627
* 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.
56135628
* @param {number} limit
@@ -5770,6 +5785,12 @@ export class MessagesRequestBuilder {
57705785
* @returns
57715786
*/
57725787
setInteractionGoalCompletedOnly(interactionGoalCompletedOnly?: boolean): this;
5788+
/**
5789+
* Filters messages by specific attachment types.
5790+
* @param {Array<AttachmentTyes>} attachmentTypes
5791+
* @returns
5792+
*/
5793+
setAttachmentTypes(attachmentTypes: Array<AttachmentType>): this;
57735794
/**
57745795
* This method will return an object of the MessagesRequest class.
57755796
* @returns {MessagesRequest}

CometChat.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@cometchat/chat-sdk-javascript",
3-
"version": "4.0.12",
3+
"version": "4.0.13",
44
"description": "A complete chat solution.",
55
"main": "CometChat.js",
66
"scripts": {

0 commit comments

Comments
 (0)