@cometchat/chat-sdk-javascript 4.0.12 → 4.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CometChat.d.ts CHANGED
@@ -397,6 +397,7 @@ export class CometChat {
397
397
  HAS_MENTIONS: string;
398
398
  HAS_REACTIONS: string;
399
399
  MENTIONED_UIDS: string;
400
+ ATTACHMENT_TYPES: string;
400
401
  };
401
402
  };
402
403
  };
@@ -980,6 +981,7 @@ export class CometChat {
980
981
  MSG_VER_POST: string;
981
982
  };
982
983
  static GoalType: typeof GoalType;
984
+ static AttachmentType: typeof AttachmentType;
983
985
  static CometChatException: typeof CometChatException;
984
986
  static TextMessage: typeof TextMessage;
985
987
  static MediaMessage: typeof MediaMessage;
@@ -3052,6 +3054,7 @@ export const MessageConstatnts: {
3052
3054
  HAS_MENTIONS: string;
3053
3055
  HAS_REACTIONS: string;
3054
3056
  MENTIONED_UIDS: string;
3057
+ ATTACHMENT_TYPES: string;
3055
3058
  };
3056
3059
  };
3057
3060
  };
@@ -3847,6 +3850,12 @@ export const AI_FEATURE_ACCESSIBLE = "features.ai.accessible";
3847
3850
  export const AI_FEATURE_ENABLED = "features.ai.enabled";
3848
3851
  export const AI_SLUG_ACCESSIBLE = "features.ai.%s.accessible";
3849
3852
  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
+ }
3850
3859
 
3851
3860
  /**
3852
3861
  *
@@ -5568,6 +5577,11 @@ export class MessagesRequest {
5568
5577
  * @return {boolean}
5569
5578
  */
5570
5579
  isInteractionGoalCompletedOnly(): boolean;
5580
+ /**
5581
+ * Returns the list of selected attachment types used for filtering messages.
5582
+ * @return {Array<AttachmentTypes>}
5583
+ */
5584
+ getAttachmentTypes(): Array<AttachmentType>;
5571
5585
  /**
5572
5586
  * 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.
5573
5587
  * @returns {Promise<BaseMessage[] | []>}
@@ -5608,6 +5622,7 @@ export class MessagesRequestBuilder {
5608
5622
  /** @private */ HasMentions?: boolean;
5609
5623
  /** @private */ HasReactions?: boolean;
5610
5624
  /** @private */ mentionedUIDs?: Array<String>;
5625
+ /** @private */ attachmentTypes?: Array<AttachmentType>;
5611
5626
  /**
5612
5627
  * 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.
5613
5628
  * @param {number} limit
@@ -5770,6 +5785,12 @@ export class MessagesRequestBuilder {
5770
5785
  * @returns
5771
5786
  */
5772
5787
  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;
5773
5794
  /**
5774
5795
  * This method will return an object of the MessagesRequest class.
5775
5796
  * @returns {MessagesRequest}