@cometchat/chat-sdk-javascript 4.0.6 → 4.0.8

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
@@ -1670,6 +1670,12 @@ export class CometChat {
1670
1670
  * @memberof CometChat
1671
1671
  */
1672
1672
  static getActiveCall(): Call;
1673
+ /**
1674
+ * Function to clear any active call.
1675
+ * @returns {void}
1676
+ * @memberof CometChat
1677
+ */
1678
+ static clearActiveCall(): void;
1673
1679
  /**
1674
1680
  * Function to start a call.
1675
1681
  * @param {CallSettings | string} callSettings
@@ -1989,31 +1995,64 @@ export class CometChatNotifications {
1989
1995
  static MutedConversationType: typeof MutedConversationType;
1990
1996
  static PushPlatforms: typeof PushPlatforms;
1991
1997
  static DaySchedule: typeof DaySchedule;
1998
+ /**
1999
+ * @deprecated This property is deprecated as of version 4.0.8 due to newer property 'NotificationPreferences'.
2000
+ * It will be removed in subsequent versions.
2001
+ */
1992
2002
  static PushPreferences: typeof PushPreferences;
1993
2003
  static GroupPreferences: typeof GroupPreferences;
1994
2004
  static OneOnOnePreferences: typeof OneOnOnePreferences;
1995
2005
  static MutePreferences: typeof MutePreferences;
1996
2006
  static MutedConversation: typeof MutedConversation;
1997
2007
  static UnmutedConversation: typeof UnmutedConversation;
2008
+ static NotificationPreferences: typeof NotificationPreferences;
1998
2009
  /**
1999
2010
  * Function to get preferences set for the logged-in user.
2000
2011
  * @returns {Promise<PushPreferences>}
2001
2012
  * @memberof CometChatNotifications
2013
+ * @deprecated
2014
+ *
2015
+ * This method is deprecated as of version 4.0.8 due to newer method 'fetchPreferences'. It will be removed in subsequent versions.
2002
2016
  */
2003
2017
  static fetchPushPreferences(): Promise<PushPreferences>;
2018
+ /**
2019
+ * Function to get preferences set for the logged-in user.
2020
+ * @returns {Promise<NotificationPreferences>}
2021
+ * @memberof CometChatNotifications
2022
+ */
2023
+ static fetchPreferences(): Promise<NotificationPreferences>;
2004
2024
  /**
2005
2025
  * Function to update preferences for the logged-in user.
2006
2026
  * @param {PushPreferences} pushPreferences
2007
2027
  * @returns {Promise<PushPreferences>}
2008
2028
  * @memberof CometChatNotifications
2029
+ * @deprecated
2030
+ *
2031
+ * This method is deprecated as of version 4.0.8 due to newer method 'updatePreferences'. It will be removed in subsequent versions.
2009
2032
  */
2010
2033
  static updatePushPreferences(pushPreferences: PushPreferences): Promise<PushPreferences>;
2034
+ /**
2035
+ * Function to update preferences for the logged-in user.
2036
+ * @param {NotificationPreferences} notificationPreferences
2037
+ * @returns {Promise<NotificationPreferences>}
2038
+ * @memberof CometChatNotifications
2039
+ */
2040
+ static updatePreferences(notificationPreferences: NotificationPreferences): Promise<NotificationPreferences>;
2011
2041
  /**
2012
2042
  * Function to reset preferences for the logged-in user.
2013
2043
  * @returns {Promise<PushPreferences>}
2014
2044
  * @memberof CometChatNotifications
2045
+ * @deprecated
2046
+ *
2047
+ * This method is deprecated as of version 4.0.8 due to newer method 'resetPreferences'. It will be removed in subsequent versions.
2015
2048
  */
2016
2049
  static resetPushPreferences(): Promise<PushPreferences>;
2050
+ /**
2051
+ * Function to reset preferences for the logged-in user.
2052
+ * @returns {Promise<NotificationPreferences>}
2053
+ * @memberof CometChatNotifications
2054
+ */
2055
+ static resetPreferences(): Promise<NotificationPreferences>;
2017
2056
  /**
2018
2057
  * Function to register push token for the current authToken of the logged-in user.
2019
2058
  * @returns {Promise<string>}
@@ -2049,6 +2088,21 @@ export class CometChatNotifications {
2049
2088
  * @memberof CometChatNotifications
2050
2089
  */
2051
2090
  static getMutedConversations(): Promise<MutedConversation[]>;
2091
+ /**
2092
+ * Function to update timezone for the logged-in user.
2093
+ * @returns {Promise<string>}
2094
+ * @param {string} timezone
2095
+ * @memberof CometChatNotifications
2096
+ */
2097
+ static updateTimezone(timezone: String): Promise<string>;
2098
+ /**
2099
+ * Function to get timezone for the logged-in user.
2100
+ * @returns {Promise<{timezone: string} | string>} A promise that resolves to an object containing the timezone or a string in case of an error.
2101
+ * @memberof CometChatNotifications
2102
+ */
2103
+ static getTimezone(): Promise<{
2104
+ timezone: string;
2105
+ } | string>;
2052
2106
  }
2053
2107
 
2054
2108
  /**
@@ -4423,6 +4477,8 @@ export class CallController {
4423
4477
  /** @internal */
4424
4478
  onCallStarted(call: Call): Promise<Call>;
4425
4479
  /** @internal */
4480
+ clearActiveCall(): void;
4481
+ /** @internal */
4426
4482
  endCallSession(): void;
4427
4483
  /** @internal */
4428
4484
  startCall(callsettings: CallSettings, view: HTMLElement): void;
@@ -4671,6 +4727,38 @@ export class GroupsRequest {
4671
4727
  * @returns {Promise<Group[] | []>}
4672
4728
  */
4673
4729
  fetchNext(): Promise<Group[] | []>;
4730
+ /**
4731
+ * Gets the limit on the number of groups to be fetched in a single operation.
4732
+ *
4733
+ * @return {number}
4734
+ */
4735
+ getLimit(): number;
4736
+ /**
4737
+ * Gets the search keyword used to filter the groups by their name or GUID.
4738
+ * Only groups whose names or GUIDs contain this keyword will be fetched.
4739
+ *
4740
+ * @return {string}
4741
+ */
4742
+ getSearchKeyword(): string;
4743
+ /**
4744
+ * Gets the flag indicating whether only the groups the user has joined should be fetched.
4745
+ *
4746
+ * @return {boolean}
4747
+ */
4748
+ isJoinedOnly(): any;
4749
+ /**
4750
+ * Gets the list of tags used to filter the groups.
4751
+ * Only groups associated with these tags will be fetched.
4752
+ *
4753
+ * @return {String[]}
4754
+ */
4755
+ getTags(): String[];
4756
+ /**
4757
+ * Gets the flag indicating whether tags should be included with the groups data.
4758
+ *
4759
+ * @return {boolean}
4760
+ */
4761
+ isWithTags(): boolean;
4674
4762
  }
4675
4763
  export class GroupsRequestBuilder {
4676
4764
  /** @private */ limit: number;
@@ -4726,6 +4814,31 @@ export class GroupMembersRequest {
4726
4814
  * @returns {Promise<GroupMember[] | []>}
4727
4815
  */
4728
4816
  fetchNext(): Promise<GroupMember[] | []>;
4817
+ /**
4818
+ * Get the unique identifier of the group for which members are requested.
4819
+ *
4820
+ * @return {string}.
4821
+ */
4822
+ getGuid(): string;
4823
+ /**
4824
+ * Get the maximum number of group members to fetch in a single operation.
4825
+ *
4826
+ * @return {number}
4827
+ */
4828
+ getLimit(): number;
4829
+ /**
4830
+ * Gets the search keyword used to filter the group members by name or UID.
4831
+ *
4832
+ * @return {string}
4833
+ */
4834
+ getSearchKeyword(): string;
4835
+ /**
4836
+ * Gets the list of scopes used to filter banned group members based on specific criteria.
4837
+ * The scopes define the categories or roles of the group members to be fetched.
4838
+ *
4839
+ * @return {String[]}
4840
+ */
4841
+ getScopes(): String[];
4729
4842
  /**
4730
4843
  * @internal
4731
4844
  */
@@ -4737,6 +4850,13 @@ export class GroupMembersRequestBuilder {
4737
4850
  /** @private */ guid: string;
4738
4851
  /** @private */ scopes?: Array<String>;
4739
4852
  constructor(guid: string);
4853
+ /**
4854
+ * Set the unique identifier of the group.
4855
+ *
4856
+ * @param guid The group ID to set.
4857
+ * @returns
4858
+ */
4859
+ setGuid(guid: string): this;
4740
4860
  /**
4741
4861
  *
4742
4862
  * @param {number} limit
@@ -4772,6 +4892,31 @@ export class BannedMembersRequest {
4772
4892
  * @returns {Promise<GroupMember[] | []>}
4773
4893
  */
4774
4894
  fetchNext(): Promise<GroupMember[] | []>;
4895
+ /**
4896
+ * Get the unique identifier of the group for which banned members are requested.
4897
+ *
4898
+ * @return {string}.
4899
+ */
4900
+ getGuid(): string;
4901
+ /**
4902
+ * Get the maximum number of banned group members to fetch in a single operation.
4903
+ *
4904
+ * @return {number}
4905
+ */
4906
+ getLimit(): number;
4907
+ /**
4908
+ * Get the search keyword used to filter banned group members.
4909
+ *
4910
+ * @return {string}
4911
+ */
4912
+ getSearchKeyword(): string;
4913
+ /**
4914
+ * Gets the list of scopes used to filter banned group members based on specific criteria.
4915
+ * The scopes define the categories or roles of the group members to be fetched.
4916
+ *
4917
+ * @return {String[]}
4918
+ */
4919
+ getScopes(): String[];
4775
4920
  /**
4776
4921
  * @internal
4777
4922
  */
@@ -4783,6 +4928,13 @@ export class BannedMembersRequestBuilder {
4783
4928
  /** @private */ guid: string;
4784
4929
  /** @private */ scopes?: Array<String>;
4785
4930
  constructor(guid: string);
4931
+ /**
4932
+ * Set the unique identifier of the group.
4933
+ *
4934
+ * @param guid The group ID to set.
4935
+ * @returns
4936
+ */
4937
+ setGuid(guid: string): this;
4786
4938
  /**
4787
4939
  *
4788
4940
  * @param {number} limit
@@ -4817,6 +4969,90 @@ export class UsersRequest {
4817
4969
  OFFLINE: string;
4818
4970
  };
4819
4971
  constructor(builder?: UsersRequestBuilder);
4972
+ /**
4973
+ * Gets the limit on the number of users to be fetched.
4974
+ *
4975
+ * @return {number}
4976
+ */
4977
+ getLimit(): number;
4978
+ /**
4979
+ * Gets the search keyword used to filter the users list.
4980
+ * This keyword is used to search for users based on their name or UID.
4981
+ *
4982
+ * @return {string}
4983
+ */
4984
+ getSearchKeyword(): string;
4985
+ /**
4986
+ * Determines whether blocked users are excluded from the users list.
4987
+ *
4988
+ * @return {boolean}
4989
+ */
4990
+ isHideBlockedUsers(): boolean;
4991
+ /**
4992
+ * Gets the status filter used to fetch users based on their online or offline status.
4993
+ *
4994
+ * @return {string}
4995
+ */
4996
+ getStatus(): string;
4997
+ /**
4998
+ * Gets the user role filter used to fetch users based on their role.
4999
+ *
5000
+ * @return {string}
5001
+ */
5002
+ getRole(): string;
5003
+ /**
5004
+ * Determines whether only friends are included in the users list.
5005
+ *
5006
+ * @return {boolean}
5007
+ */
5008
+ isFriendsOnly(): boolean;
5009
+ /**
5010
+ * Gets the list of roles used to filter users.
5011
+ * Users will be fetched based on the specified roles.
5012
+ *
5013
+ * @return {String[]}
5014
+ */
5015
+ getRoles(): String[];
5016
+ /**
5017
+ * Gets the list of tags used to filter users.
5018
+ * Users will be fetched based on the specified tags.
5019
+ *
5020
+ * @return {String[]}
5021
+ */
5022
+ getTags(): String[];
5023
+ /**
5024
+ * Determines whether the tags are included in the users data when fetched.
5025
+ *
5026
+ * @return {boolean}
5027
+ */
5028
+ isWithTags(): boolean;
5029
+ /**
5030
+ * Gets the list of UIDs used to fetch specific users.
5031
+ *
5032
+ * @return {}
5033
+ */
5034
+ getUIDs(): String[];
5035
+ /**
5036
+ * Gets the fields specified to search for the search keyword in the user data.
5037
+ * Possible fields are "name" and "uid".
5038
+ *
5039
+ * @return {String[]}
5040
+ */
5041
+ getSearchIn(): String[];
5042
+ /**
5043
+ * Gets the field by which the user list is sorted.
5044
+ * Possible values are "status" or "name".
5045
+ *
5046
+ * @return {string}
5047
+ */
5048
+ getSortBy(): string;
5049
+ /**
5050
+ * Gets the order in which the user list is sorted.
5051
+ * Possible values are "asc" for ascending order and "desc" for descending order.
5052
+ *
5053
+ * @return {string}
5054
+ */
5055
+ getSortOrder(): string;
4820
5056
  /**
4821
5057
  * 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.
4822
5058
  * @returns {Promise<User[] | []>}
@@ -4948,6 +5184,57 @@ export class ConversationsRequest {
4948
5184
  * @internal
4949
5185
  */
4950
5186
  getNextData(): any;
5187
+ /**
5188
+ * Checks if blocked users are to be included in the list of conversations.
5189
+ * @returns {boolean}
5190
+ */
5191
+ isIncludeBlockedUsers(): boolean;
5192
+ /**
5193
+ * Checks if blocked information should be included in the list of conversations.
5194
+ * @returns {boolean}
5195
+ */
5196
+ isWithBlockedInfo(): boolean;
5197
+ /**
5198
+ * Gets the limit for the number of items to be fetched or processed.
5199
+ * @returns {number}
5200
+ */
5201
+ getLimit(): number;
5202
+ /**
5203
+ * Retrieves the type of the conversation.
5204
+ * This can be used to differentiate between different types of conversations, such as user and group.
5205
+ * @returns {string}
5206
+ */
5207
+ getConversationType(): string;
5208
+ /**
5209
+ * Checks if the filtering should include both user and group tags.
5210
+ * @return true if both user and group tags are included. false otherwise.
5211
+ * @returns {boolean}
5212
+ */
5213
+ isWithUserAndGroupTags(): boolean;
5214
+ /**
5215
+ * Gets the list of tags associated with the conversation item.
5216
+ * These tags can be used for categorization or filtering.
5217
+ * @returns {String[]}
5218
+ */
5219
+ getTags(): String[];
5220
+ /**
5221
+ * Determines whether the filtering or selection process should consider tags.
5222
+ *
5223
+ * @returns {boolean}
5224
+ */
5225
+ isWithTags(): boolean;
5226
+ /**
5227
+ * Retrieves the list of group-specific tags.
5228
+ * These tags are used to filter and fetch conversations that are associated with groups tagged with these specified tags.
5229
+ * @returns {String[]}
5230
+ */
5231
+ getGroupTags(): String[];
5232
+ /**
5233
+ * Retrieves the list of user-specific tags.
5234
+ * These tags are used to filter and fetch conversations that are associated with users tagged with these specified tags.
5235
+ * @returns {String[]}
5236
+ */
5237
+ getUserTags(): String[];
4951
5238
  }
4952
5239
  export class ConversationsRequestBuilder {
4953
5240
  /** @private */ conversationType: string;
@@ -4957,6 +5244,8 @@ export class ConversationsRequestBuilder {
4957
5244
  /** @private */ WithTags: boolean;
4958
5245
  /** @private */ groupTags: Array<String>;
4959
5246
  /** @private */ userTags: Array<String>;
5247
+ /** @private */ IncludeBlockedUsers: boolean;
5248
+ /** @private */ WithBlockedInfo: boolean;
4960
5249
  /**
4961
5250
  *
4962
5251
  * @param {number} limit
@@ -5002,6 +5291,35 @@ export class ConversationsRequestBuilder {
5002
5291
  * @returns
5003
5292
  */
5004
5293
  setUserTags(userTags: Array<String>): this;
5294
+ /**
5295
+ * A method to include blocked users in the list of conversations.
5296
+ * @param {boolean} _includeBlockedUsers
5297
+ * @returns
5298
+ * @deprecated This method is deprecated as of version 4.0.8 due to newer method 'includeBlockedUsers'.
5299
+ * It will be removed in subsequent versions.
5300
+ */
5301
+ setIncludeBlockedUsers(_includeBlockedUsers: boolean): this;
5302
+ /**
5303
+ * A method to include blocked users in the list of conversations.
5304
+ * @param {boolean} _includeBlockedUsers
5305
+ * @returns
5306
+ */
5307
+ includeBlockedUsers(_includeBlockedUsers: boolean): this;
5308
+ /**
5309
+ * A method to include blocked users information in the list of conversations.
5310
+ * @param {boolean} _withBlockedInfo
5311
+ * @returns
5312
+ *
5313
+ * @deprecated This method is deprecated as of version 4.0.8 due to newer method 'withBlockedInfo'.
5314
+ * It will be removed in subsequent versions.
5315
+ */
5316
+ setWithBlockedInfo(_withBlockedInfo: boolean): this;
5317
+ /**
5318
+ * A method to include blocked users information in the list of conversations.
5319
+ * @param {boolean} _withBlockedInfo
5320
+ * @returns
5321
+ */
5322
+ withBlockedInfo(_withBlockedInfo: boolean): this;
5005
5323
  /**
5006
5324
  * This method will return an object of the ConversationsRequest class.
5007
5325
  * @returns {ConversationsRequest}
@@ -5011,6 +5329,140 @@ export class ConversationsRequestBuilder {
5011
5329
 
5012
5330
  export class MessagesRequest {
5013
5331
  constructor(builder?: MessagesRequestBuilder);
5332
+ /**
5333
+ * Gets the limit on the number of messages to be fetched in a single operation.
5334
+ *
5335
+ * @return {number}
5336
+ */
5337
+ getLimit(): number;
5338
+ /**
5339
+ * Gets the UID of the user for which the messages are being fetched.
5340
+ *
5341
+ * @return {string}.
5342
+ */
5343
+ getUID(): string;
5344
+ /**
5345
+ * Gets the GUID of the group for which the messages are being fetched.
5346
+ *
5347
+ * @return {guid}
5348
+ */
5349
+ getGUID(): string;
5350
+ /**
5351
+ * Gets the message ID from which subsequent or previous messages are to be fetched.
5352
+ *
5353
+ * @return {number}
5354
+ */
5355
+ getMessageId(): number;
5356
+ /**
5357
+ * Gets the flag indicating whether to fetch only unread messages.
5358
+ *
5359
+ * @return {boolean}
5360
+ */
5361
+ isUnread(): boolean;
5362
+ /**
5363
+ * Gets the flag indicating whether to hide messages from blocked users.
5364
+ *
5365
+ * @return {boolean}
5366
+ */
5367
+ isHideMessagesFromBlockedUsers(): boolean;
5368
+ /**
5369
+ * Gets the timestamp from which messages are to be fetched.
5370
+ * Used to fetch messages around a specific time point.
5371
+ *
5372
+ * @return {number}
5373
+ */
5374
+ getTimestamp(): number;
5375
+ /**
5376
+ * Gets the search keyword used to filter messages.
5377
+ * Only messages containing this keyword will be fetched.
5378
+ *
5379
+ * @return {string}
5380
+ */
5381
+ getSearchKeyword(): string;
5382
+ /**
5383
+ * Gets the timestamp after which updated or edited messages are to be fetched.
5384
+ *
5385
+ * @return {string}
5386
+ */
5387
+ getUpdatedAfter(): string;
5388
+ /**
5389
+ * Gets the flag indicating whether to fetch only updated or edited messages.
5390
+ *
5391
+ * @return {boolean}
5392
+ */
5393
+ isUpdatesOnly(): any;
5394
+ /**
5395
+ * Gets the list of categories for which the messages are to be fetched.
5396
+ *
5397
+ * @return {String[]}
5398
+ */
5399
+ getCategories(): String[];
5400
+ /**
5401
+ * Gets the category for which the messages are to be fetched.
5402
+ *
5403
+ * @return {string}
5404
+ */
5405
+ getCategory(): string;
5406
+ /**
5407
+ * Gets the list of types for which the messages are to be fetched.
5408
+ *
5409
+ * @return {String[]}
5410
+ */
5411
+ getTypes(): String[];
5412
+ /**
5413
+ * Gets the type for which the messages are to be fetched.
5414
+ *
5415
+ * @return {string}
5416
+ */
5417
+ getType(): string;
5418
+ /**
5419
+ * Gets the parent message ID to fetch messages belonging to a specific thread.
5420
+ *
5421
+ * @return {number}
5422
+ */
5423
+ getParentMessageId(): number;
5424
+ /**
5425
+ * Gets the flag indicating whether to exclude replies (threaded messages) when fetching messages.
5426
+ *
5427
+ * @return {boolean}
5428
+ */
5429
+ isHideReplies(): boolean;
5430
+ /**
5431
+ * Gets the flag indicating whether to hide deleted messages when fetching messages.
5432
+ *
5433
+ * @return {boolean}
5434
+ */
5435
+ isHideDeletedMessages(): boolean;
5436
+ /**
5437
+ * Gets the list of tags for which the messages are to be fetched.
5438
+ *
5439
+ * @return {String[]}
5440
+ */
5441
+ getTags(): String[];
5442
+ /**
5443
+ * Gets the flag indicating whether messages should be fetched with their tags.
5444
+ *
5445
+ * @return {boolean}
5446
+ */
5447
+ isWithTags(): boolean;
5448
+ /**
5449
+ * Gets the flag indicating whether to fetch mentioned messages with user tag information.
5450
+ *
5451
+ * @return {boolean}
5452
+ */
5453
+ isMentionsWithTagInfo(): boolean;
5454
+ /**
5455
+ * Gets the flag indicating whether to fetch mentioned messages with blocked relation information.
5456
+ *
5457
+ * @return {boolean}
5458
+ */
5459
+ isMentionsWithBlockedInfo(): boolean;
5460
+ /**
5461
+ * Gets the flag indicating whether to fetch only messages with completed interaction goals.
5462
+ *
5463
+ * @return {boolean}
5464
+ */
5465
+ isInteractionGoalCompletedOnly(): boolean;
5014
5466
  /**
5015
5467
  * 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.
5016
5468
  * @returns {Promise<BaseMessage[] | []>}
@@ -5392,6 +5844,25 @@ export class BlockedUsersRequest {
5392
5844
  * @returns {Promise<User[] | []>}
5393
5845
  */
5394
5846
  fetchNext(): Promise<User[] | []>;
5847
+ /**
5848
+ * Gets the direction type to determine the nature of the blocked users to be fetched.
5849
+ * The direction specifies whether to fetch users who are blocked by the logged-in user,
5850
+ * users who have blocked the logged-in user, or both.
5851
+ *
5852
+ * @return {string}. It can be one of "blocked_by_me", "blocked_me", or "both".
5853
+ */
5854
+ getDirection(): string;
5855
+ /**
5856
+ * Get the maximum number of blocked users to be fetched in a single operation.
5857
+ * @return {number}
5858
+ */
5859
+ getLimit(): number;
5860
+ /**
5861
+ * Get the search keyword used to filter blocked users by name or UID.
5862
+ *
5863
+ * @return {string}
5864
+ */
5865
+ getSearchKeyword(): string;
5395
5866
  /** @internal */
5396
5867
  getNextData(): any;
5397
5868
  }
@@ -6459,6 +6930,24 @@ export class InteractionReceipt {
6459
6930
 
6460
6931
  export class ReactionsRequest {
6461
6932
  constructor(builder?: ReactionsRequestBuilder);
6933
+ /**
6934
+ * Gets the limit on the number of reactions to be fetched in a single operation.
6935
+ *
6936
+ * @return {number}.
6937
+ */
6938
+ getLimit(): number;
6939
+ /**
6940
+ * Gets the message ID for which reactions are to be fetched.
6941
+ *
6942
+ * @return {number}
6943
+ */
6944
+ getMessageId(): number;
6945
+ /**
6946
+ * Gets the specific reaction type by which reactions are to be fetched.
6947
+ *
6948
+ * @return {string}
6949
+ */
6950
+ getReaction(): string;
6462
6951
  /**
6463
6952
  * 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.
6464
6953
  * @returns {Promise<Reaction[] | []>}
@@ -6644,6 +7133,8 @@ export const APIConstants: {
6644
7133
  KEY_MUTED_CONVERSATIONS: string;
6645
7134
  KEY_FROM: string;
6646
7135
  KEY_TO: string;
7136
+ KEY_GET_TIMEZONE: string;
7137
+ KEY_UPDATE_TIMEZONE: string;
6647
7138
  };
6648
7139
  export const APIResponseConstants: {
6649
7140
  TOKEN_REGISTER_SUCCESS: string;
@@ -6654,6 +7145,9 @@ export const APIResponseConstants: {
6654
7145
  MUTE_CONVERSATION_ERROR: string;
6655
7146
  UNMUTE_CONVERSATION_SUCCESS: string;
6656
7147
  UNMUTE_CONVERSATION_ERROR: string;
7148
+ TIMEZONE_UPDATE_SUCCESS: string;
7149
+ TIMEZONE_UPDATE_ERROR: string;
7150
+ TIMEZONE_FETCH_ERROR: string;
6657
7151
  };
6658
7152
  export const DEFAULT_PROVIDER_ID = "default";
6659
7153
 
@@ -6875,6 +7369,54 @@ export class MutePreferences {
6875
7369
  static fromJSON(jsonData: Object): MutePreferences;
6876
7370
  }
6877
7371
 
7372
+ export class NotificationPreferences {
7373
+ /**
7374
+ * Get the OneOnOne preferences.
7375
+ * @returns {OneOnOnePreferences}
7376
+ */
7377
+ getOneOnOnePreferences(): OneOnOnePreferences;
7378
+ /**
7379
+ * @param {OneOnOnePreferences} oneOnOnePreferences
7380
+ * Set the OneOnOne preferences.
7381
+ */
7382
+ setOneOnOnePreferences(oneOnOnePreferences: OneOnOnePreferences): void;
7383
+ /**
7384
+ * Get the Muted preferences.
7385
+ * @returns {MutePreferences}
7386
+ */
7387
+ getMutePreferences(): MutePreferences;
7388
+ /**
7389
+ * @param {MutePreferences} mutePreferences
7390
+ * Set the Mute preferences.
7391
+ */
7392
+ setMutePreferences(mutePreferences: MutePreferences): void;
7393
+ /**
7394
+ * Get the Group preferences.
7395
+ * @returns {GroupPreferences}
7396
+ */
7397
+ getGroupPreferences(): GroupPreferences;
7398
+ /**
7399
+ * @param {GroupPreferences} groupPreferences
7400
+ * Set the Group preferences.
7401
+ */
7402
+ setGroupPreferences(groupPreferences: GroupPreferences): void;
7403
+ /**
7404
+ * Returns whether to use privacy template or not.
7405
+ * @returns {boolean}
7406
+ */
7407
+ getUsePrivacyTemplate(): boolean;
7408
+ /**
7409
+ * @param {boolean} usePrivacyTemplate
7410
+ * Set whether to use privacy template or not.
7411
+ */
7412
+ setUsePrivacyTemplate(usePrivacyTemplate: boolean): void;
7413
+ /**
7414
+ * @param {Object} jsonData
7415
+ * Convert JSON object to NotificationPreferences.
7416
+ */
7417
+ static fromJSON(jsonData: Object): NotificationPreferences;
7418
+ }
7419
+
6878
7420
  export class OneOnOnePreferences {
6879
7421
  /**
6880
7422
  * Get the reactions preferences for groups.
@@ -6913,6 +7455,10 @@ export class OneOnOnePreferences {
6913
7455
  static fromJSON(jsonData: Object): OneOnOnePreferences;
6914
7456
  }
6915
7457
 
7458
+ /**
7459
+ * @deprecated This class is deprecated as of version 4.0.8 due to newer class 'NotificationPreferences'.
7460
+ * It will be removed in subsequent versions.
7461
+ */
6916
7462
  export class PushPreferences {
6917
7463
  /**
6918
7464
  * Get the OneOnOne preferences.