Skip to content

Commit 216a74e

Browse files
committed
v4.0.11
1 parent 515d12c commit 216a74e

3 files changed

Lines changed: 120 additions & 95 deletions

File tree

CometChat.d.ts

Lines changed: 118 additions & 93 deletions
Original file line numberDiff line numberDiff line change
@@ -483,6 +483,9 @@ export class CometChat {
483483
ENDED: string;
484484
};
485485
};
486+
/**
487+
* @deprecated Use `PresenceConstants` instead.
488+
*/
486489
static PresenceConstatnts: {
487490
STATUS: {
488491
ONLINE: string;
@@ -492,6 +495,15 @@ export class CometChat {
492495
LEFT: string;
493496
};
494497
};
498+
static PresenceConstants: {
499+
STATUS: {
500+
ONLINE: string;
501+
AVAILABLE: string;
502+
OFFLINE: string;
503+
JOINED: string;
504+
LEFT: string;
505+
};
506+
};
495507
static APPINFO: {
496508
platform: string;
497509
sdkVersion: string;
@@ -1099,6 +1111,7 @@ export class CometChat {
10991111
PROTECTED: string;
11001112
PASSWORD: string;
11011113
};
1114+
static MessageReceipt: typeof MessageReceipt;
11021115
/**
11031116
* Setter method for CometChat authToken.
11041117
* @internal
@@ -3662,6 +3675,9 @@ export const FeatureRestrictionErrors: {
36623675
details: {};
36633676
};
36643677
};
3678+
/**
3679+
* @deprecated Use `PresenceConstants` instead.
3680+
*/
36653681
export const PresenceConstatnts: {
36663682
STATUS: {
36673683
ONLINE: string;
@@ -3671,6 +3687,15 @@ export const PresenceConstatnts: {
36713687
LEFT: string;
36723688
};
36733689
};
3690+
export const PresenceConstants: {
3691+
STATUS: {
3692+
ONLINE: string;
3693+
AVAILABLE: string;
3694+
OFFLINE: string;
3695+
JOINED: string;
3696+
LEFT: string;
3697+
};
3698+
};
36743699
export const APP_SETTINGS: {
36753700
APP_SETTINGS: string;
36763701
KEYS: {
@@ -7070,6 +7095,99 @@ export class ConversationUpdateSettings {
70707095
static fromJSON(jsonData: Object): ConversationUpdateSettings;
70717096
}
70727097

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+
70737191
/** Push Notification Preferences Enums */
70747192
export enum MessagesOptions {
70757193
DONT_SUBSCRIBE,
@@ -7556,99 +7674,6 @@ export interface ErrorModel {
75567674
details?: string;
75577675
}
75587676

7559-
/**
7560-
*
7561-
* @module MessageReceipt
7562-
*/
7563-
export class MessageReceipt {
7564-
RECEIPT_TYPE: {
7565-
READ_RECEIPT: string;
7566-
DELIVERY_RECEIPT: string;
7567-
READ_BY_ALL_RECEIPT: string;
7568-
DELIVERED_TO_ALL_RECEIPT: string;
7569-
};
7570-
/**
7571-
* Method to get receiver type of the message receipt.
7572-
* @returns {string}
7573-
*/
7574-
getReceiverType(): string;
7575-
/**
7576-
* Method to set receiver type of the message receipt.
7577-
* @param {string} receiverType
7578-
*/
7579-
setReceiverType(receiverType: string): void;
7580-
/**
7581-
* Method to get sender of the message receipt.
7582-
* @returns {User}
7583-
*/
7584-
getSender(): User;
7585-
/**
7586-
* Method to set sender of the message receipt.
7587-
* @param {User} sender
7588-
*/
7589-
setSender(sender: User): void;
7590-
/**
7591-
* Method to get receiver of the message receipt.
7592-
* @returns {string}
7593-
*/
7594-
getReceiver(): string;
7595-
/**
7596-
* Method to set receiver of the message receipt.
7597-
* @param {string} receiver
7598-
*/
7599-
setReceiver(receiver: string): void;
7600-
/**
7601-
* Method to get timestamp of the message receipt.
7602-
* @returns {string}
7603-
*/
7604-
getTimestamp(): string;
7605-
/**
7606-
* Method to set timestamp of the message receipt.
7607-
* @param {string} timestamp
7608-
*/
7609-
setTimestamp(timestamp: string): void;
7610-
/**
7611-
* Method to set readAt timestamp of the message receipt.
7612-
* @param {number} readAt
7613-
*/
7614-
setReadAt(readAt: number): void;
7615-
/**
7616-
* Method to get readAt timestamp of the message receipt.
7617-
* @returns {number}
7618-
*/
7619-
getReadAt(): number;
7620-
/**
7621-
* Method to set deliveredAt timestamp of the message receipt.
7622-
* @param {number} deliveredAt
7623-
*/
7624-
setDeliveredAt(deliveredAt: number): void;
7625-
/**
7626-
* Method to get deliveredAt timestamp of the message receipt.
7627-
* @returns {number}
7628-
*/
7629-
getDeliveredAt(): number;
7630-
/**
7631-
* Method to get the message ID.
7632-
* @returns {string}
7633-
*/
7634-
getMessageId(): string;
7635-
/**
7636-
* Method to set the message ID.
7637-
* @param {string} messageId
7638-
*/
7639-
setMessageId(messageId: string): void;
7640-
/**
7641-
* Method to get the receipt type of message receipt.
7642-
* @returns {string}
7643-
*/
7644-
getReceiptType(): string;
7645-
/**
7646-
* Method to set the receipt type of message receipt.
7647-
* @param {string} receiptType
7648-
*/
7649-
setReceiptType(receiptType?: string): void;
7650-
}
7651-
76527677
export class RTCUser {
76537678
constructor(uid: string);
76547679
setUID(uid: string): void;

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.10",
3+
"version": "4.0.11",
44
"description": "A complete chat solution.",
55
"main": "CometChat.js",
66
"scripts": {

0 commit comments

Comments
 (0)