@cometchat/chat-sdk-javascript 4.0.5 → 4.0.6

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
@@ -446,6 +446,11 @@ export class CometChat {
446
446
  WEBRTC_WEB_FRONTEND_HOST: string;
447
447
  WEBRTC_WEB_FRONTEND_VERSION: string;
448
448
  SECURED_MEDIA_HOST: string;
449
+ PARAMETERS: string;
450
+ CORE_CONVERSATIONS_UPDATE_ON_CALL_ACTIVITIES: string;
451
+ CORE_CONVERSATIONS_UPDATE_ON_GROUP_ACTIONS: string;
452
+ CORE_CONVERSATIONS_UPDATE_ON_CUSTOM_MESSAGES: string;
453
+ CORE_CONVERSATIONS_UPDATE_ON_REPLIES: string;
449
454
  };
450
455
  };
451
456
  static GroupConstants: {
@@ -1966,6 +1971,12 @@ export class CometChat {
1966
1971
  * @memberof CometChat
1967
1972
  */
1968
1973
  static markAsInteracted(messageId: string | any, elementId: string): Promise<string>;
1974
+ /**
1975
+ * Retrieves the ConversationUpdateSettings.
1976
+ *
1977
+ * @return A ConversationUpdateSettings object that holds the settings for updating the conversation.
1978
+ */
1979
+ static getConversationUpdateSettings(): Promise<ConversationUpdateSettings>;
1969
1980
  }
1970
1981
 
1971
1982
  export class CometChatNotifications {
@@ -3657,6 +3668,11 @@ export const APP_SETTINGS: {
3657
3668
  WEBRTC_WEB_FRONTEND_HOST: string;
3658
3669
  WEBRTC_WEB_FRONTEND_VERSION: string;
3659
3670
  SECURED_MEDIA_HOST: string;
3671
+ PARAMETERS: string;
3672
+ CORE_CONVERSATIONS_UPDATE_ON_CALL_ACTIVITIES: string;
3673
+ CORE_CONVERSATIONS_UPDATE_ON_GROUP_ACTIONS: string;
3674
+ CORE_CONVERSATIONS_UPDATE_ON_CUSTOM_MESSAGES: string;
3675
+ CORE_CONVERSATIONS_UPDATE_ON_REPLIES: string;
3660
3676
  };
3661
3677
  };
3662
3678
  export const COMMON_UTILITY_CONSTANTS: {
@@ -3935,7 +3951,7 @@ export class Group {
3935
3951
  /**
3936
3952
  * Method to check if the logged-in user is banned from the group or not.
3937
3953
  * @returns {boolean} status of the logged-in user as banned or not.
3938
- */
3954
+ */
3939
3955
  isBannedFromGroup(): boolean;
3940
3956
  }
3941
3957
 
@@ -4259,8 +4275,8 @@ export class Call extends BaseMessage implements Message {
4259
4275
  protected initiatedAt: number;
4260
4276
  protected joinedAt: number;
4261
4277
  protected data: any;
4262
- protected callInitiator: object;
4263
- protected callReceiver: object;
4278
+ protected callInitiator: User;
4279
+ protected callReceiver: User | Group;
4264
4280
  /**
4265
4281
  * @memberof {@link CometChat | CometChat }
4266
4282
  * @param receiverId
@@ -5225,44 +5241,44 @@ export class CustomMessage extends BaseMessage implements Message {
5225
5241
  protected data?: Object;
5226
5242
  constructor(...args: any[]);
5227
5243
  /**
5228
- * Retrieves the preview text for a custom message to be displayed in the Conversation List.
5229
- * This method allows for a textual representation of the custom message that can be used
5230
- * as a conversation snippet or preview, enhancing the user experience by providing context.
5231
- * @returns {string} The text to display as the conversation preview.
5232
- */
5244
+ * Retrieves the preview text for a custom message to be displayed in the Conversation List.
5245
+ * This method allows for a textual representation of the custom message that can be used
5246
+ * as a conversation snippet or preview, enhancing the user experience by providing context.
5247
+ * @returns {string} The text to display as the conversation preview.
5248
+ */
5233
5249
  getConversationText(): string;
5234
5250
  /**
5235
- * Sets the preview text for a custom message to be displayed in the Conversation List.
5236
- * This method allows for a textual representation of the custom message that can be used
5237
- * as a conversation snippet or preview, enhancing the user experience by providing context.
5238
- * @param {string} text The text to set as the conversation preview.
5239
- */
5251
+ * Sets the preview text for a custom message to be displayed in the Conversation List.
5252
+ * This method allows for a textual representation of the custom message that can be used
5253
+ * as a conversation snippet or preview, enhancing the user experience by providing context.
5254
+ * @param {string} text The text to set as the conversation preview.
5255
+ */
5240
5256
  setConversationText(text: string): void;
5241
5257
  /**
5242
- * Determines whether the custom message should be considered as the last message
5243
- * in the conversation, potentially changing the order of conversations.
5244
- * This method indicates if sending a custom message will update the conversation's last message,
5245
- * which may affect the conversation's position in the list based on the sorting order.
5246
- * @returns {boolean} A boolean value indicating whether sending the custom message triggers an update
5247
- * to the last message of the conversation, potentially altering the conversation order.
5248
- */
5258
+ * Determines whether the custom message should be considered as the last message
5259
+ * in the conversation, potentially changing the order of conversations.
5260
+ * This method indicates if sending a custom message will update the conversation's last message,
5261
+ * which may affect the conversation's position in the list based on the sorting order.
5262
+ * @returns {boolean} A boolean value indicating whether sending the custom message triggers an update
5263
+ * to the last message of the conversation, potentially altering the conversation order.
5264
+ */
5249
5265
  willUpdateConversation(): boolean;
5250
5266
  /**
5251
- * Set the flag to determine if the conversation should be updated.
5252
- * @param {boolean} updateConversation The flag to set if the conversation should be updated.
5253
- */
5267
+ * Set the flag to determine if the conversation should be updated.
5268
+ * @param {boolean} updateConversation The flag to set if the conversation should be updated.
5269
+ */
5254
5270
  shouldUpdateConversation(updateConversation: boolean): void;
5255
5271
  /**
5256
- * Determines whether a push notification should be sent for the custom message.
5257
- * This method checks if the current custom message configuration specifies that a push notification
5258
- * is warranted when the message is sent.
5259
- * @returns {boolean} A boolean value indicating whether to send a push notification for the custom message.
5260
- */
5272
+ * Determines whether a push notification should be sent for the custom message.
5273
+ * This method checks if the current custom message configuration specifies that a push notification
5274
+ * is warranted when the message is sent.
5275
+ * @returns {boolean} A boolean value indicating whether to send a push notification for the custom message.
5276
+ */
5261
5277
  willSendNotification(): boolean;
5262
5278
  /**
5263
- * Set the flag to determine if a notification should be sent.
5264
- * @param {boolean} sendNotification The flag to set if a notification should be sent.
5265
- */
5279
+ * Set the flag to determine if a notification should be sent.
5280
+ * @param {boolean} sendNotification The flag to set if a notification should be sent.
5281
+ */
5266
5282
  shouldSendNotification(sendNotification: boolean): void;
5267
5283
  /**
5268
5284
  * Method to get custom data of the message.
@@ -6543,6 +6559,15 @@ export class Reaction {
6543
6559
  setReactedBy(reactedBy: User): void;
6544
6560
  }
6545
6561
 
6562
+ export class ConversationUpdateSettings {
6563
+ constructor();
6564
+ shouldUpdateOnCallActivities(): boolean;
6565
+ shouldUpdateOnGroupActions(): boolean;
6566
+ shouldUpdateOnCustomMessages(): boolean;
6567
+ shouldUpdateOnMessageReplies(): boolean;
6568
+ static fromJSON(jsonData: Object): ConversationUpdateSettings;
6569
+ }
6570
+
6546
6571
  /** Push Notification Preferences Enums */
6547
6572
  export enum MessagesOptions {
6548
6573
  DONT_SUBSCRIBE,