@cometchat/chat-sdk-javascript 4.0.10 → 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 +118 -93
- package/CometChat.js +1 -1
- package/package.json +1 -1
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: {
|
|
@@ -7070,6 +7095,99 @@ export class ConversationUpdateSettings {
|
|
|
7070
7095
|
static fromJSON(jsonData: Object): ConversationUpdateSettings;
|
|
7071
7096
|
}
|
|
7072
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
|
+
|
|
7073
7191
|
/** Push Notification Preferences Enums */
|
|
7074
7192
|
export enum MessagesOptions {
|
|
7075
7193
|
DONT_SUBSCRIBE,
|
|
@@ -7556,99 +7674,6 @@ export interface ErrorModel {
|
|
|
7556
7674
|
details?: string;
|
|
7557
7675
|
}
|
|
7558
7676
|
|
|
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
|
-
|
|
7652
7677
|
export class RTCUser {
|
|
7653
7678
|
constructor(uid: string);
|
|
7654
7679
|
setUID(uid: string): void;
|