@cometchat/chat-sdk-javascript 4.0.5 → 4.0.7
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 +472 -31
- package/CometChat.js +1 -1
- package/package.json +1 -1
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:
|
|
4263
|
-
protected callReceiver:
|
|
4278
|
+
protected callInitiator: User;
|
|
4279
|
+
protected callReceiver: User | Group;
|
|
4264
4280
|
/**
|
|
4265
4281
|
* @memberof {@link CometChat | CometChat }
|
|
4266
4282
|
* @param receiverId
|
|
@@ -4655,6 +4671,38 @@ export class GroupsRequest {
|
|
|
4655
4671
|
* @returns {Promise<Group[] | []>}
|
|
4656
4672
|
*/
|
|
4657
4673
|
fetchNext(): Promise<Group[] | []>;
|
|
4674
|
+
/**
|
|
4675
|
+
* Gets the limit on the number of groups to be fetched in a single operation.
|
|
4676
|
+
*
|
|
4677
|
+
* @return {number}
|
|
4678
|
+
*/
|
|
4679
|
+
getLimit(): number;
|
|
4680
|
+
/**
|
|
4681
|
+
* Gets the search keyword used to filter the groups by their name or GUID.
|
|
4682
|
+
* Only groups whose names or GUIDs contain this keyword will be fetched.
|
|
4683
|
+
*
|
|
4684
|
+
* @return {string}
|
|
4685
|
+
*/
|
|
4686
|
+
getSearchKeyword(): string;
|
|
4687
|
+
/**
|
|
4688
|
+
* Gets the flag indicating whether only the groups the user has joined should be fetched.
|
|
4689
|
+
*
|
|
4690
|
+
* @return {boolean}
|
|
4691
|
+
*/
|
|
4692
|
+
isJoinedOnly(): any;
|
|
4693
|
+
/**
|
|
4694
|
+
* Gets the list of tags used to filter the groups.
|
|
4695
|
+
* Only groups associated with these tags will be fetched.
|
|
4696
|
+
*
|
|
4697
|
+
* @return {String[]}
|
|
4698
|
+
*/
|
|
4699
|
+
getTags(): String[];
|
|
4700
|
+
/**
|
|
4701
|
+
* Gets the flag indicating whether tags should be included with the groups data.
|
|
4702
|
+
*
|
|
4703
|
+
* @return {boolean}
|
|
4704
|
+
*/
|
|
4705
|
+
isWithTags(): boolean;
|
|
4658
4706
|
}
|
|
4659
4707
|
export class GroupsRequestBuilder {
|
|
4660
4708
|
/** @private */ limit: number;
|
|
@@ -4710,6 +4758,31 @@ export class GroupMembersRequest {
|
|
|
4710
4758
|
* @returns {Promise<GroupMember[] | []>}
|
|
4711
4759
|
*/
|
|
4712
4760
|
fetchNext(): Promise<GroupMember[] | []>;
|
|
4761
|
+
/**
|
|
4762
|
+
* Get the unique identifier of the group for which members are requested.
|
|
4763
|
+
*
|
|
4764
|
+
* @return {string}.
|
|
4765
|
+
*/
|
|
4766
|
+
getGuid(): string;
|
|
4767
|
+
/**
|
|
4768
|
+
* Get the maximum number of group members to fetch in a single operation.
|
|
4769
|
+
*
|
|
4770
|
+
* @return {number}
|
|
4771
|
+
*/
|
|
4772
|
+
getLimit(): number;
|
|
4773
|
+
/**
|
|
4774
|
+
* Gets the search keyword used to filter the group members by name or UID.
|
|
4775
|
+
*
|
|
4776
|
+
* @return {string}
|
|
4777
|
+
*/
|
|
4778
|
+
getSearchKeyword(): string;
|
|
4779
|
+
/**
|
|
4780
|
+
* Gets the list of scopes used to filter banned group members based on specific criteria.
|
|
4781
|
+
* The scopes define the categories or roles of the group members to be fetched.
|
|
4782
|
+
*
|
|
4783
|
+
* @return {String[]}
|
|
4784
|
+
*/
|
|
4785
|
+
getScopes(): String[];
|
|
4713
4786
|
/**
|
|
4714
4787
|
* @internal
|
|
4715
4788
|
*/
|
|
@@ -4721,6 +4794,13 @@ export class GroupMembersRequestBuilder {
|
|
|
4721
4794
|
/** @private */ guid: string;
|
|
4722
4795
|
/** @private */ scopes?: Array<String>;
|
|
4723
4796
|
constructor(guid: string);
|
|
4797
|
+
/**
|
|
4798
|
+
* Set the unique identifier of the group.
|
|
4799
|
+
*
|
|
4800
|
+
* @param guid The group ID to set.
|
|
4801
|
+
* @returns
|
|
4802
|
+
*/
|
|
4803
|
+
setGuid(guid: string): this;
|
|
4724
4804
|
/**
|
|
4725
4805
|
*
|
|
4726
4806
|
* @param {number} limit
|
|
@@ -4756,6 +4836,31 @@ export class BannedMembersRequest {
|
|
|
4756
4836
|
* @returns {Promise<GroupMember[] | []>}
|
|
4757
4837
|
*/
|
|
4758
4838
|
fetchNext(): Promise<GroupMember[] | []>;
|
|
4839
|
+
/**
|
|
4840
|
+
* Get the unique identifier of the group for which banned members are requested.
|
|
4841
|
+
*
|
|
4842
|
+
* @return {string}.
|
|
4843
|
+
*/
|
|
4844
|
+
getGuid(): string;
|
|
4845
|
+
/**
|
|
4846
|
+
* Get the maximum number of banned group members to fetch in a single operation.
|
|
4847
|
+
*
|
|
4848
|
+
* @return {number}
|
|
4849
|
+
*/
|
|
4850
|
+
getLimit(): number;
|
|
4851
|
+
/**
|
|
4852
|
+
* Get the search keyword used to filter banned group members.
|
|
4853
|
+
*
|
|
4854
|
+
* @return {string}
|
|
4855
|
+
*/
|
|
4856
|
+
getSearchKeyword(): string;
|
|
4857
|
+
/**
|
|
4858
|
+
* Gets the list of scopes used to filter banned group members based on specific criteria.
|
|
4859
|
+
* The scopes define the categories or roles of the group members to be fetched.
|
|
4860
|
+
*
|
|
4861
|
+
* @return {String[]}
|
|
4862
|
+
*/
|
|
4863
|
+
getScopes(): String[];
|
|
4759
4864
|
/**
|
|
4760
4865
|
* @internal
|
|
4761
4866
|
*/
|
|
@@ -4767,6 +4872,13 @@ export class BannedMembersRequestBuilder {
|
|
|
4767
4872
|
/** @private */ guid: string;
|
|
4768
4873
|
/** @private */ scopes?: Array<String>;
|
|
4769
4874
|
constructor(guid: string);
|
|
4875
|
+
/**
|
|
4876
|
+
* Set the unique identifier of the group.
|
|
4877
|
+
*
|
|
4878
|
+
* @param guid The group ID to set.
|
|
4879
|
+
* @returns
|
|
4880
|
+
*/
|
|
4881
|
+
setGuid(guid: string): this;
|
|
4770
4882
|
/**
|
|
4771
4883
|
*
|
|
4772
4884
|
* @param {number} limit
|
|
@@ -4801,6 +4913,90 @@ export class UsersRequest {
|
|
|
4801
4913
|
OFFLINE: string;
|
|
4802
4914
|
};
|
|
4803
4915
|
constructor(builder?: UsersRequestBuilder);
|
|
4916
|
+
/**
|
|
4917
|
+
* Gets the limit on the number of users to be fetched.
|
|
4918
|
+
*
|
|
4919
|
+
* @return {number}
|
|
4920
|
+
*/
|
|
4921
|
+
getLimit(): number;
|
|
4922
|
+
/**
|
|
4923
|
+
* Gets the search keyword used to filter the users list.
|
|
4924
|
+
* This keyword is used to search for users based on their name or UID.
|
|
4925
|
+
*
|
|
4926
|
+
* @return {string}
|
|
4927
|
+
*/
|
|
4928
|
+
getSearchKeyword(): string;
|
|
4929
|
+
/**
|
|
4930
|
+
* Determines whether blocked users are excluded from the users list.
|
|
4931
|
+
*
|
|
4932
|
+
* @return {boolean}
|
|
4933
|
+
*/
|
|
4934
|
+
isHideBlockedUsers(): boolean;
|
|
4935
|
+
/**
|
|
4936
|
+
* Gets the status filter used to fetch users based on their online or offline status.
|
|
4937
|
+
*
|
|
4938
|
+
* @return {string}
|
|
4939
|
+
*/
|
|
4940
|
+
getStatus(): string;
|
|
4941
|
+
/**
|
|
4942
|
+
* Gets the user role filter used to fetch users based on their role.
|
|
4943
|
+
*
|
|
4944
|
+
* @return {string}
|
|
4945
|
+
*/
|
|
4946
|
+
getRole(): string;
|
|
4947
|
+
/**
|
|
4948
|
+
* Determines whether only friends are included in the users list.
|
|
4949
|
+
*
|
|
4950
|
+
* @return {boolean}
|
|
4951
|
+
*/
|
|
4952
|
+
isFriendsOnly(): boolean;
|
|
4953
|
+
/**
|
|
4954
|
+
* Gets the list of roles used to filter users.
|
|
4955
|
+
* Users will be fetched based on the specified roles.
|
|
4956
|
+
*
|
|
4957
|
+
* @return {String[]}
|
|
4958
|
+
*/
|
|
4959
|
+
getRoles(): String[];
|
|
4960
|
+
/**
|
|
4961
|
+
* Gets the list of tags used to filter users.
|
|
4962
|
+
* Users will be fetched based on the specified tags.
|
|
4963
|
+
*
|
|
4964
|
+
* @return {String[]}
|
|
4965
|
+
*/
|
|
4966
|
+
getTags(): String[];
|
|
4967
|
+
/**
|
|
4968
|
+
* Determines whether the tags are included in the users data when fetched.
|
|
4969
|
+
*
|
|
4970
|
+
* @return {boolean}
|
|
4971
|
+
*/
|
|
4972
|
+
isWithTags(): boolean;
|
|
4973
|
+
/**
|
|
4974
|
+
* Gets the list of UIDs used to fetch specific users.
|
|
4975
|
+
*
|
|
4976
|
+
* @return {}
|
|
4977
|
+
*/
|
|
4978
|
+
getUIDs(): String[];
|
|
4979
|
+
/**
|
|
4980
|
+
* Gets the fields specified to search for the search keyword in the user data.
|
|
4981
|
+
* Possible fields are "name" and "uid".
|
|
4982
|
+
*
|
|
4983
|
+
* @return {String[]}
|
|
4984
|
+
*/
|
|
4985
|
+
getSearchIn(): String[];
|
|
4986
|
+
/**
|
|
4987
|
+
* Gets the field by which the user list is sorted.
|
|
4988
|
+
* Possible values are "status" or "name".
|
|
4989
|
+
*
|
|
4990
|
+
* @return {string}
|
|
4991
|
+
*/
|
|
4992
|
+
getSortBy(): string;
|
|
4993
|
+
/**
|
|
4994
|
+
* Gets the order in which the user list is sorted.
|
|
4995
|
+
* Possible values are "asc" for ascending order and "desc" for descending order.
|
|
4996
|
+
*
|
|
4997
|
+
* @return {string}
|
|
4998
|
+
*/
|
|
4999
|
+
getSortOrder(): string;
|
|
4804
5000
|
/**
|
|
4805
5001
|
* Get list of next set of users based on the parameters specified in UsersRequestBuilder class The Developer need to call this method repeatedly using the same object of UsersRequestBuilder class to get paginated list of users.
|
|
4806
5002
|
* @returns {Promise<User[] | []>}
|
|
@@ -4932,6 +5128,57 @@ export class ConversationsRequest {
|
|
|
4932
5128
|
* @internal
|
|
4933
5129
|
*/
|
|
4934
5130
|
getNextData(): any;
|
|
5131
|
+
/**
|
|
5132
|
+
* Checks if blocked users are to be included in the list of conversations.
|
|
5133
|
+
* @returns {boolean}
|
|
5134
|
+
*/
|
|
5135
|
+
isIncludeBlockedUsers(): boolean;
|
|
5136
|
+
/**
|
|
5137
|
+
* Checks if blocked information should be included in the list of conversations.
|
|
5138
|
+
* @returns {boolean}
|
|
5139
|
+
*/
|
|
5140
|
+
isWithBlockedInfo(): boolean;
|
|
5141
|
+
/**
|
|
5142
|
+
* Gets the limit for the number of items to be fetched or processed.
|
|
5143
|
+
* @returns {number}
|
|
5144
|
+
*/
|
|
5145
|
+
getLimit(): number;
|
|
5146
|
+
/**
|
|
5147
|
+
* Retrieves the type of the conversation.
|
|
5148
|
+
* This can be used to differentiate between different types of conversations, such as user and group.
|
|
5149
|
+
* @returns {string}
|
|
5150
|
+
*/
|
|
5151
|
+
getConversationType(): string;
|
|
5152
|
+
/**
|
|
5153
|
+
* Checks if the filtering should include both user and group tags.
|
|
5154
|
+
* @return true if both user and group tags are included. false otherwise.
|
|
5155
|
+
* @returns {boolean}
|
|
5156
|
+
*/
|
|
5157
|
+
isWithUserAndGroupTags(): boolean;
|
|
5158
|
+
/**
|
|
5159
|
+
* Gets the list of tags associated with the conversation item.
|
|
5160
|
+
* These tags can be used for categorization or filtering.
|
|
5161
|
+
* @returns {String[]}
|
|
5162
|
+
*/
|
|
5163
|
+
getTags(): String[];
|
|
5164
|
+
/**
|
|
5165
|
+
* Determines whether the filtering or selection process should consider tags.
|
|
5166
|
+
*
|
|
5167
|
+
* @returns {boolean}
|
|
5168
|
+
*/
|
|
5169
|
+
isWithTags(): boolean;
|
|
5170
|
+
/**
|
|
5171
|
+
* Retrieves the list of group-specific tags.
|
|
5172
|
+
* These tags are used to filter and fetch conversations that are associated with groups tagged with these specified tags.
|
|
5173
|
+
* @returns {String[]}
|
|
5174
|
+
*/
|
|
5175
|
+
getGroupTags(): String[];
|
|
5176
|
+
/**
|
|
5177
|
+
* Retrieves the list of user-specific tags.
|
|
5178
|
+
* These tags are used to filter and fetch conversations that are associated with users tagged with these specified tags.
|
|
5179
|
+
* @returns {String[]}
|
|
5180
|
+
*/
|
|
5181
|
+
getUserTags(): String[];
|
|
4935
5182
|
}
|
|
4936
5183
|
export class ConversationsRequestBuilder {
|
|
4937
5184
|
/** @private */ conversationType: string;
|
|
@@ -4941,6 +5188,8 @@ export class ConversationsRequestBuilder {
|
|
|
4941
5188
|
/** @private */ WithTags: boolean;
|
|
4942
5189
|
/** @private */ groupTags: Array<String>;
|
|
4943
5190
|
/** @private */ userTags: Array<String>;
|
|
5191
|
+
/** @private */ includeBlockedUsers: boolean;
|
|
5192
|
+
/** @private */ withBlockedInfo: boolean;
|
|
4944
5193
|
/**
|
|
4945
5194
|
*
|
|
4946
5195
|
* @param {number} limit
|
|
@@ -4986,6 +5235,18 @@ export class ConversationsRequestBuilder {
|
|
|
4986
5235
|
* @returns
|
|
4987
5236
|
*/
|
|
4988
5237
|
setUserTags(userTags: Array<String>): this;
|
|
5238
|
+
/**
|
|
5239
|
+
* A method to include blocked users in the list of conversations.
|
|
5240
|
+
* @param {boolean} userTags
|
|
5241
|
+
* @returns
|
|
5242
|
+
*/
|
|
5243
|
+
setIncludeBlockedUsers(_includeBlockedUsers: any): this;
|
|
5244
|
+
/**
|
|
5245
|
+
* A method to include blocked users information in the list of conversations.
|
|
5246
|
+
* @param {boolean} userTags
|
|
5247
|
+
* @returns
|
|
5248
|
+
*/
|
|
5249
|
+
setWithBlockedInfo(_withBlockedInfo: any): this;
|
|
4989
5250
|
/**
|
|
4990
5251
|
* This method will return an object of the ConversationsRequest class.
|
|
4991
5252
|
* @returns {ConversationsRequest}
|
|
@@ -4995,6 +5256,140 @@ export class ConversationsRequestBuilder {
|
|
|
4995
5256
|
|
|
4996
5257
|
export class MessagesRequest {
|
|
4997
5258
|
constructor(builder?: MessagesRequestBuilder);
|
|
5259
|
+
/**
|
|
5260
|
+
* Gets the limit on the number of messages to be fetched in a single operation.
|
|
5261
|
+
*
|
|
5262
|
+
* @return {number}
|
|
5263
|
+
*/
|
|
5264
|
+
getLimit(): number;
|
|
5265
|
+
/**
|
|
5266
|
+
* Gets the UID of the user for which the messages are being fetched.
|
|
5267
|
+
*
|
|
5268
|
+
* @return {string}.
|
|
5269
|
+
*/
|
|
5270
|
+
getUID(): string;
|
|
5271
|
+
/**
|
|
5272
|
+
* Gets the GUID of the group for which the messages are being fetched.
|
|
5273
|
+
*
|
|
5274
|
+
* @return {guid}
|
|
5275
|
+
*/
|
|
5276
|
+
getGUID(): string;
|
|
5277
|
+
/**
|
|
5278
|
+
* Gets the message ID from which subsequent or previous messages are to be fetched.
|
|
5279
|
+
*
|
|
5280
|
+
* @return {number}
|
|
5281
|
+
*/
|
|
5282
|
+
getMessageId(): number;
|
|
5283
|
+
/**
|
|
5284
|
+
* Gets the flag indicating whether to fetch only unread messages.
|
|
5285
|
+
*
|
|
5286
|
+
* @return {boolean}
|
|
5287
|
+
*/
|
|
5288
|
+
isUnread(): boolean;
|
|
5289
|
+
/**
|
|
5290
|
+
* Gets the flag indicating whether to hide messages from blocked users.
|
|
5291
|
+
*
|
|
5292
|
+
* @return {boolean}
|
|
5293
|
+
*/
|
|
5294
|
+
isHideMessagesFromBlockedUsers(): boolean;
|
|
5295
|
+
/**
|
|
5296
|
+
* Gets the timestamp from which messages are to be fetched.
|
|
5297
|
+
* Used to fetch messages around a specific time point.
|
|
5298
|
+
*
|
|
5299
|
+
* @return {number}
|
|
5300
|
+
*/
|
|
5301
|
+
getTimestamp(): number;
|
|
5302
|
+
/**
|
|
5303
|
+
* Gets the search keyword used to filter messages.
|
|
5304
|
+
* Only messages containing this keyword will be fetched.
|
|
5305
|
+
*
|
|
5306
|
+
* @return {string}
|
|
5307
|
+
*/
|
|
5308
|
+
getSearchKeyword(): string;
|
|
5309
|
+
/**
|
|
5310
|
+
* Gets the timestamp after which updated or edited messages are to be fetched.
|
|
5311
|
+
*
|
|
5312
|
+
* @return {string}
|
|
5313
|
+
*/
|
|
5314
|
+
getUpdatedAfter(): string;
|
|
5315
|
+
/**
|
|
5316
|
+
* Gets the flag indicating whether to fetch only updated or edited messages.
|
|
5317
|
+
*
|
|
5318
|
+
* @return {boolean}
|
|
5319
|
+
*/
|
|
5320
|
+
isUpdatesOnly(): any;
|
|
5321
|
+
/**
|
|
5322
|
+
* Gets the list of categories for which the messages are to be fetched.
|
|
5323
|
+
*
|
|
5324
|
+
* @return {String[]}
|
|
5325
|
+
*/
|
|
5326
|
+
getCategories(): String[];
|
|
5327
|
+
/**
|
|
5328
|
+
* Gets the category for which the messages are to be fetched.
|
|
5329
|
+
*
|
|
5330
|
+
* @return {string}
|
|
5331
|
+
*/
|
|
5332
|
+
getCategory(): string;
|
|
5333
|
+
/**
|
|
5334
|
+
* Gets the list of types for which the messages are to be fetched.
|
|
5335
|
+
*
|
|
5336
|
+
* @return {String[]}
|
|
5337
|
+
*/
|
|
5338
|
+
getTypes(): String[];
|
|
5339
|
+
/**
|
|
5340
|
+
* Gets the type for which the messages are to be fetched.
|
|
5341
|
+
*
|
|
5342
|
+
* @return {string}
|
|
5343
|
+
*/
|
|
5344
|
+
getType(): string;
|
|
5345
|
+
/**
|
|
5346
|
+
* Gets the parent message ID to fetch messages belonging to a specific thread.
|
|
5347
|
+
*
|
|
5348
|
+
* @return {number}
|
|
5349
|
+
*/
|
|
5350
|
+
getParentMessageId(): number;
|
|
5351
|
+
/**
|
|
5352
|
+
* Gets the flag indicating whether to exclude replies (threaded messages) when fetching messages.
|
|
5353
|
+
*
|
|
5354
|
+
* @return {boolean}
|
|
5355
|
+
*/
|
|
5356
|
+
isHideReplies(): boolean;
|
|
5357
|
+
/**
|
|
5358
|
+
* Gets the flag indicating whether to hide deleted messages when fetching messages.
|
|
5359
|
+
*
|
|
5360
|
+
* @return {boolean}
|
|
5361
|
+
*/
|
|
5362
|
+
isHideDeletedMessages(): boolean;
|
|
5363
|
+
/**
|
|
5364
|
+
* Gets the list of tags for which the messages are to be fetched.
|
|
5365
|
+
*
|
|
5366
|
+
* @return {String[]}
|
|
5367
|
+
*/
|
|
5368
|
+
getTags(): String[];
|
|
5369
|
+
/**
|
|
5370
|
+
* Gets the flag indicating whether messages should be fetched with their tags.
|
|
5371
|
+
*
|
|
5372
|
+
* @return {boolean}
|
|
5373
|
+
*/
|
|
5374
|
+
isWithTags(): boolean;
|
|
5375
|
+
/**
|
|
5376
|
+
* Gets the flag indicating whether to fetch mentioned messages with user tag information.
|
|
5377
|
+
*
|
|
5378
|
+
* @return {boolean}
|
|
5379
|
+
*/
|
|
5380
|
+
isMentionsWithTagInfo(): boolean;
|
|
5381
|
+
/**
|
|
5382
|
+
* Gets the flag indicating whether to fetch mentioned messages with blocked relation information.
|
|
5383
|
+
*
|
|
5384
|
+
* @return {boolean}
|
|
5385
|
+
*/
|
|
5386
|
+
isMentionsWithBlockedInfo(): boolean;
|
|
5387
|
+
/**
|
|
5388
|
+
* Gets the flag indicating whether to fetch only messages with completed interaction goals.
|
|
5389
|
+
*
|
|
5390
|
+
* @return {boolean}
|
|
5391
|
+
*/
|
|
5392
|
+
isInteractionGoalCompletedOnly(): boolean;
|
|
4998
5393
|
/**
|
|
4999
5394
|
* 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.
|
|
5000
5395
|
* @returns {Promise<BaseMessage[] | []>}
|
|
@@ -5225,44 +5620,44 @@ export class CustomMessage extends BaseMessage implements Message {
|
|
|
5225
5620
|
protected data?: Object;
|
|
5226
5621
|
constructor(...args: any[]);
|
|
5227
5622
|
/**
|
|
5228
|
-
|
|
5229
|
-
|
|
5230
|
-
|
|
5231
|
-
|
|
5232
|
-
|
|
5623
|
+
* Retrieves the preview text for a custom message to be displayed in the Conversation List.
|
|
5624
|
+
* This method allows for a textual representation of the custom message that can be used
|
|
5625
|
+
* as a conversation snippet or preview, enhancing the user experience by providing context.
|
|
5626
|
+
* @returns {string} The text to display as the conversation preview.
|
|
5627
|
+
*/
|
|
5233
5628
|
getConversationText(): string;
|
|
5234
5629
|
/**
|
|
5235
|
-
|
|
5236
|
-
|
|
5237
|
-
|
|
5238
|
-
|
|
5239
|
-
|
|
5630
|
+
* Sets the preview text for a custom message to be displayed in the Conversation List.
|
|
5631
|
+
* This method allows for a textual representation of the custom message that can be used
|
|
5632
|
+
* as a conversation snippet or preview, enhancing the user experience by providing context.
|
|
5633
|
+
* @param {string} text The text to set as the conversation preview.
|
|
5634
|
+
*/
|
|
5240
5635
|
setConversationText(text: string): void;
|
|
5241
5636
|
/**
|
|
5242
|
-
|
|
5243
|
-
|
|
5244
|
-
|
|
5245
|
-
|
|
5246
|
-
|
|
5247
|
-
|
|
5248
|
-
|
|
5637
|
+
* Determines whether the custom message should be considered as the last message
|
|
5638
|
+
* in the conversation, potentially changing the order of conversations.
|
|
5639
|
+
* This method indicates if sending a custom message will update the conversation's last message,
|
|
5640
|
+
* which may affect the conversation's position in the list based on the sorting order.
|
|
5641
|
+
* @returns {boolean} A boolean value indicating whether sending the custom message triggers an update
|
|
5642
|
+
* to the last message of the conversation, potentially altering the conversation order.
|
|
5643
|
+
*/
|
|
5249
5644
|
willUpdateConversation(): boolean;
|
|
5250
5645
|
/**
|
|
5251
|
-
|
|
5252
|
-
|
|
5253
|
-
|
|
5646
|
+
* Set the flag to determine if the conversation should be updated.
|
|
5647
|
+
* @param {boolean} updateConversation The flag to set if the conversation should be updated.
|
|
5648
|
+
*/
|
|
5254
5649
|
shouldUpdateConversation(updateConversation: boolean): void;
|
|
5255
5650
|
/**
|
|
5256
|
-
|
|
5257
|
-
|
|
5258
|
-
|
|
5259
|
-
|
|
5260
|
-
|
|
5651
|
+
* Determines whether a push notification should be sent for the custom message.
|
|
5652
|
+
* This method checks if the current custom message configuration specifies that a push notification
|
|
5653
|
+
* is warranted when the message is sent.
|
|
5654
|
+
* @returns {boolean} A boolean value indicating whether to send a push notification for the custom message.
|
|
5655
|
+
*/
|
|
5261
5656
|
willSendNotification(): boolean;
|
|
5262
5657
|
/**
|
|
5263
|
-
|
|
5264
|
-
|
|
5265
|
-
|
|
5658
|
+
* Set the flag to determine if a notification should be sent.
|
|
5659
|
+
* @param {boolean} sendNotification The flag to set if a notification should be sent.
|
|
5660
|
+
*/
|
|
5266
5661
|
shouldSendNotification(sendNotification: boolean): void;
|
|
5267
5662
|
/**
|
|
5268
5663
|
* Method to get custom data of the message.
|
|
@@ -5376,6 +5771,25 @@ export class BlockedUsersRequest {
|
|
|
5376
5771
|
* @returns {Promise<User[] | []>}
|
|
5377
5772
|
*/
|
|
5378
5773
|
fetchNext(): Promise<User[] | []>;
|
|
5774
|
+
/**
|
|
5775
|
+
* Gets the direction type to determine the nature of the blocked users to be fetched.
|
|
5776
|
+
* The direction specifies whether to fetch users who are blocked by the logged-in user,
|
|
5777
|
+
* users who have blocked the logged-in user, or both.
|
|
5778
|
+
*
|
|
5779
|
+
* @return {string}. It can be one of "blocked_by_me", "blocked_me", or "both".
|
|
5780
|
+
*/
|
|
5781
|
+
getDirection(): string;
|
|
5782
|
+
/**
|
|
5783
|
+
* Get the maximum number of blocked users to be fetched in a single operation.
|
|
5784
|
+
* @return {number}
|
|
5785
|
+
*/
|
|
5786
|
+
getLimit(): number;
|
|
5787
|
+
/**
|
|
5788
|
+
* Get the search keyword used to filter blocked users by name or UID.
|
|
5789
|
+
*
|
|
5790
|
+
* @return {string}
|
|
5791
|
+
*/
|
|
5792
|
+
getSearchKeyword(): string;
|
|
5379
5793
|
/** @internal */
|
|
5380
5794
|
getNextData(): any;
|
|
5381
5795
|
}
|
|
@@ -6443,6 +6857,24 @@ export class InteractionReceipt {
|
|
|
6443
6857
|
|
|
6444
6858
|
export class ReactionsRequest {
|
|
6445
6859
|
constructor(builder?: ReactionsRequestBuilder);
|
|
6860
|
+
/**
|
|
6861
|
+
* Gets the limit on the number of reactions to be fetched in a single operation.
|
|
6862
|
+
*
|
|
6863
|
+
* @return {number}.
|
|
6864
|
+
*/
|
|
6865
|
+
getLimit(): number;
|
|
6866
|
+
/**
|
|
6867
|
+
* Gets the message ID for which reactions are to be fetched.
|
|
6868
|
+
*
|
|
6869
|
+
* @return {number}
|
|
6870
|
+
*/
|
|
6871
|
+
getMessageId(): number;
|
|
6872
|
+
/**
|
|
6873
|
+
* Gets the specific reaction type by which reactions are to be fetched.
|
|
6874
|
+
*
|
|
6875
|
+
* @return {string}
|
|
6876
|
+
*/
|
|
6877
|
+
getReaction(): string;
|
|
6446
6878
|
/**
|
|
6447
6879
|
* Get list of next reactions list based on the parameters specified in ReactionsRequestBuilder class. The Developer need to call this method repeatedly using the same object of ReactionsRequest class to get paginated list of reactions.
|
|
6448
6880
|
* @returns {Promise<Reaction[] | []>}
|
|
@@ -6543,6 +6975,15 @@ export class Reaction {
|
|
|
6543
6975
|
setReactedBy(reactedBy: User): void;
|
|
6544
6976
|
}
|
|
6545
6977
|
|
|
6978
|
+
export class ConversationUpdateSettings {
|
|
6979
|
+
constructor();
|
|
6980
|
+
shouldUpdateOnCallActivities(): boolean;
|
|
6981
|
+
shouldUpdateOnGroupActions(): boolean;
|
|
6982
|
+
shouldUpdateOnCustomMessages(): boolean;
|
|
6983
|
+
shouldUpdateOnMessageReplies(): boolean;
|
|
6984
|
+
static fromJSON(jsonData: Object): ConversationUpdateSettings;
|
|
6985
|
+
}
|
|
6986
|
+
|
|
6546
6987
|
/** Push Notification Preferences Enums */
|
|
6547
6988
|
export enum MessagesOptions {
|
|
6548
6989
|
DONT_SUBSCRIBE,
|