@cometchat/chat-sdk-javascript 4.0.9 → 4.0.11

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
@@ -483,6 +483,9 @@ export class CometChat {
483
483
  ENDED: string;
484
484
  };
485
485
  };
486
+ /**
487
+ * @deprecated Use `PresenceConstants` instead.
488
+ */
486
489
  static PresenceConstatnts: {
487
490
  STATUS: {
488
491
  ONLINE: string;
@@ -492,6 +495,15 @@ export class CometChat {
492
495
  LEFT: string;
493
496
  };
494
497
  };
498
+ static PresenceConstants: {
499
+ STATUS: {
500
+ ONLINE: string;
501
+ AVAILABLE: string;
502
+ OFFLINE: string;
503
+ JOINED: string;
504
+ LEFT: string;
505
+ };
506
+ };
495
507
  static APPINFO: {
496
508
  platform: string;
497
509
  sdkVersion: string;
@@ -1099,6 +1111,7 @@ export class CometChat {
1099
1111
  PROTECTED: string;
1100
1112
  PASSWORD: string;
1101
1113
  };
1114
+ static MessageReceipt: typeof MessageReceipt;
1102
1115
  /**
1103
1116
  * Setter method for CometChat authToken.
1104
1117
  * @internal
@@ -3662,6 +3675,9 @@ export const FeatureRestrictionErrors: {
3662
3675
  details: {};
3663
3676
  };
3664
3677
  };
3678
+ /**
3679
+ * @deprecated Use `PresenceConstants` instead.
3680
+ */
3665
3681
  export const PresenceConstatnts: {
3666
3682
  STATUS: {
3667
3683
  ONLINE: string;
@@ -3671,6 +3687,15 @@ export const PresenceConstatnts: {
3671
3687
  LEFT: string;
3672
3688
  };
3673
3689
  };
3690
+ export const PresenceConstants: {
3691
+ STATUS: {
3692
+ ONLINE: string;
3693
+ AVAILABLE: string;
3694
+ OFFLINE: string;
3695
+ JOINED: string;
3696
+ LEFT: string;
3697
+ };
3698
+ };
3674
3699
  export const APP_SETTINGS: {
3675
3700
  APP_SETTINGS: string;
3676
3701
  KEYS: {
@@ -4474,6 +4499,11 @@ export class CallController {
4474
4499
  * @memberof CallController
4475
4500
  */
4476
4501
  initiateCall(call: Call): Promise<Call>;
4502
+ /**
4503
+ * @internal
4504
+ * Method to clear timer.
4505
+ */
4506
+ clearTimer(): void;
4477
4507
  /**
4478
4508
  *End the onGoing call
4479
4509
  *
@@ -7065,6 +7095,99 @@ export class ConversationUpdateSettings {
7065
7095
  static fromJSON(jsonData: Object): ConversationUpdateSettings;
7066
7096
  }
7067
7097
 
7098
+ /**
7099
+ *
7100
+ * @module MessageReceipt
7101
+ */
7102
+ export class MessageReceipt {
7103
+ RECEIPT_TYPE: {
7104
+ READ_RECEIPT: string;
7105
+ DELIVERY_RECEIPT: string;
7106
+ READ_BY_ALL_RECEIPT: string;
7107
+ DELIVERED_TO_ALL_RECEIPT: string;
7108
+ };
7109
+ /**
7110
+ * Method to get receiver type of the message receipt.
7111
+ * @returns {string}
7112
+ */
7113
+ getReceiverType(): string;
7114
+ /**
7115
+ * Method to set receiver type of the message receipt.
7116
+ * @param {string} receiverType
7117
+ */
7118
+ setReceiverType(receiverType: string): void;
7119
+ /**
7120
+ * Method to get sender of the message receipt.
7121
+ * @returns {User}
7122
+ */
7123
+ getSender(): User;
7124
+ /**
7125
+ * Method to set sender of the message receipt.
7126
+ * @param {User} sender
7127
+ */
7128
+ setSender(sender: User): void;
7129
+ /**
7130
+ * Method to get receiver of the message receipt.
7131
+ * @returns {string}
7132
+ */
7133
+ getReceiver(): string;
7134
+ /**
7135
+ * Method to set receiver of the message receipt.
7136
+ * @param {string} receiver
7137
+ */
7138
+ setReceiver(receiver: string): void;
7139
+ /**
7140
+ * Method to get timestamp of the message receipt.
7141
+ * @returns {string}
7142
+ */
7143
+ getTimestamp(): string;
7144
+ /**
7145
+ * Method to set timestamp of the message receipt.
7146
+ * @param {string} timestamp
7147
+ */
7148
+ setTimestamp(timestamp: string): void;
7149
+ /**
7150
+ * Method to set readAt timestamp of the message receipt.
7151
+ * @param {number} readAt
7152
+ */
7153
+ setReadAt(readAt: number): void;
7154
+ /**
7155
+ * Method to get readAt timestamp of the message receipt.
7156
+ * @returns {number}
7157
+ */
7158
+ getReadAt(): number;
7159
+ /**
7160
+ * Method to set deliveredAt timestamp of the message receipt.
7161
+ * @param {number} deliveredAt
7162
+ */
7163
+ setDeliveredAt(deliveredAt: number): void;
7164
+ /**
7165
+ * Method to get deliveredAt timestamp of the message receipt.
7166
+ * @returns {number}
7167
+ */
7168
+ getDeliveredAt(): number;
7169
+ /**
7170
+ * Method to get the message ID.
7171
+ * @returns {string}
7172
+ */
7173
+ getMessageId(): string;
7174
+ /**
7175
+ * Method to set the message ID.
7176
+ * @param {string} messageId
7177
+ */
7178
+ setMessageId(messageId: string): void;
7179
+ /**
7180
+ * Method to get the receipt type of message receipt.
7181
+ * @returns {string}
7182
+ */
7183
+ getReceiptType(): string;
7184
+ /**
7185
+ * Method to set the receipt type of message receipt.
7186
+ * @param {string} receiptType
7187
+ */
7188
+ setReceiptType(receiptType?: string): void;
7189
+ }
7190
+
7068
7191
  /** Push Notification Preferences Enums */
7069
7192
  export enum MessagesOptions {
7070
7193
  DONT_SUBSCRIBE,
@@ -7551,99 +7674,6 @@ export interface ErrorModel {
7551
7674
  details?: string;
7552
7675
  }
7553
7676
 
7554
- /**
7555
- *
7556
- * @module MessageReceipt
7557
- */
7558
- export class MessageReceipt {
7559
- RECEIPT_TYPE: {
7560
- READ_RECEIPT: string;
7561
- DELIVERY_RECEIPT: string;
7562
- READ_BY_ALL_RECEIPT: string;
7563
- DELIVERED_TO_ALL_RECEIPT: string;
7564
- };
7565
- /**
7566
- * Method to get receiver type of the message receipt.
7567
- * @returns {string}
7568
- */
7569
- getReceiverType(): string;
7570
- /**
7571
- * Method to set receiver type of the message receipt.
7572
- * @param {string} receiverType
7573
- */
7574
- setReceiverType(receiverType: string): void;
7575
- /**
7576
- * Method to get sender of the message receipt.
7577
- * @returns {User}
7578
- */
7579
- getSender(): User;
7580
- /**
7581
- * Method to set sender of the message receipt.
7582
- * @param {User} sender
7583
- */
7584
- setSender(sender: User): void;
7585
- /**
7586
- * Method to get receiver of the message receipt.
7587
- * @returns {string}
7588
- */
7589
- getReceiver(): string;
7590
- /**
7591
- * Method to set receiver of the message receipt.
7592
- * @param {string} receiver
7593
- */
7594
- setReceiver(receiver: string): void;
7595
- /**
7596
- * Method to get timestamp of the message receipt.
7597
- * @returns {string}
7598
- */
7599
- getTimestamp(): string;
7600
- /**
7601
- * Method to set timestamp of the message receipt.
7602
- * @param {string} timestamp
7603
- */
7604
- setTimestamp(timestamp: string): void;
7605
- /**
7606
- * Method to set readAt timestamp of the message receipt.
7607
- * @param {number} readAt
7608
- */
7609
- setReadAt(readAt: number): void;
7610
- /**
7611
- * Method to get readAt timestamp of the message receipt.
7612
- * @returns {number}
7613
- */
7614
- getReadAt(): number;
7615
- /**
7616
- * Method to set deliveredAt timestamp of the message receipt.
7617
- * @param {number} deliveredAt
7618
- */
7619
- setDeliveredAt(deliveredAt: number): void;
7620
- /**
7621
- * Method to get deliveredAt timestamp of the message receipt.
7622
- * @returns {number}
7623
- */
7624
- getDeliveredAt(): number;
7625
- /**
7626
- * Method to get the message ID.
7627
- * @returns {string}
7628
- */
7629
- getMessageId(): string;
7630
- /**
7631
- * Method to set the message ID.
7632
- * @param {string} messageId
7633
- */
7634
- setMessageId(messageId: string): void;
7635
- /**
7636
- * Method to get the receipt type of message receipt.
7637
- * @returns {string}
7638
- */
7639
- getReceiptType(): string;
7640
- /**
7641
- * Method to set the receipt type of message receipt.
7642
- * @param {string} receiptType
7643
- */
7644
- setReceiptType(receiptType?: string): void;
7645
- }
7646
-
7647
7677
  export class RTCUser {
7648
7678
  constructor(uid: string);
7649
7679
  setUID(uid: string): void;