Skip to content

Commit afbb508

Browse files
committed
Updated SDK version to 4.1.4
1 parent 9a0fb5e commit afbb508

3 files changed

Lines changed: 84 additions & 2 deletions

File tree

CometChat.d.ts

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5000,13 +5000,20 @@ export class GroupsRequest {
50005000
* @return {boolean}
50015001
*/
50025002
isWithTags(): boolean;
5003+
/**
5004+
* Get the current page number that the request is on.
5005+
*
5006+
* @return {number}
5007+
*/
5008+
getPage(): number;
50035009
}
50045010
export class GroupsRequestBuilder {
50055011
/** @private */ limit: number;
50065012
/** @private */ searchKeyword: string;
50075013
/** @private */ hasJoined: boolean;
50085014
/** @private */ tags: Array<String>;
50095015
/** @private */ showTags: boolean;
5016+
/** @private */ page: number;
50105017
/**
50115018
*
50125019
* @param {number} limit
@@ -5041,6 +5048,13 @@ export class GroupsRequestBuilder {
50415048
* @returns
50425049
*/
50435050
withTags(withTags: boolean): this;
5051+
/**
5052+
*
5053+
* @param {number} page
5054+
* A method to set the page number to start fetching from. Page 0 will fetch the first page.
5055+
* @returns
5056+
*/
5057+
setPage(page: number): this;
50445058
/**
50455059
* This method will return an object of the GroupsRequest class.
50465060
* @returns {GroupsRequest}
@@ -5084,6 +5098,12 @@ export class GroupMembersRequest {
50845098
* @return {String[]}
50855099
*/
50865100
getScopes(): String[];
5101+
/**
5102+
* Get the current page number that the request is on.
5103+
*
5104+
* @return {number}
5105+
*/
5106+
getPage(): number;
50875107
/**
50885108
* Gets the status filter used to fetch members based on their online or offline status.
50895109
*
@@ -5100,6 +5120,7 @@ export class GroupMembersRequestBuilder {
51005120
/** @private */ searchKeyword: string;
51015121
/** @private */ guid: string;
51025122
/** @private */ scopes?: Array<String>;
5123+
/** @private */ page: number;
51035124
/** @private */ status: string;
51045125
constructor(guid: string);
51055126
/**
@@ -5130,6 +5151,13 @@ export class GroupMembersRequestBuilder {
51305151
* @returns
51315152
*/
51325153
setScopes(scopes: Array<String>): this;
5154+
/**
5155+
*
5156+
* @param {number} page
5157+
* A method to set the page number to start fetching from. Page 0 will fetch the first page.
5158+
* @returns
5159+
*/
5160+
setPage(page: number): this;
51335161
/**
51345162
* A method to get the members belonging to a specific status.
51355163
* @param {string} status
@@ -5175,6 +5203,12 @@ export class BannedMembersRequest {
51755203
* @return {String[]}
51765204
*/
51775205
getScopes(): String[];
5206+
/**
5207+
* Get the current page number that the request is on.
5208+
*
5209+
* @return {number}
5210+
*/
5211+
getPage(): number;
51785212
/**
51795213
* @internal
51805214
*/
@@ -5185,6 +5219,7 @@ export class BannedMembersRequestBuilder {
51855219
/** @private */ searchKeyword: string;
51865220
/** @private */ guid: string;
51875221
/** @private */ scopes?: Array<String>;
5222+
/** @private */ page: number;
51885223
constructor(guid: string);
51895224
/**
51905225
* Set the unique identifier of the group.
@@ -5214,6 +5249,13 @@ export class BannedMembersRequestBuilder {
52145249
* @returns
52155250
*/
52165251
setScopes(scopes: Array<String>): this;
5252+
/**
5253+
*
5254+
* @param {number} page
5255+
* A method to set the page number to start fetching from. Page 0 will fetch the first page.
5256+
* @returns
5257+
*/
5258+
setPage(page: number): this;
52175259
/**
52185260
* This method will return an object of the BannedMembersRequest class.
52195261
* @returns {BannedMembersRequest}
@@ -5311,6 +5353,12 @@ export class UsersRequest {
53115353
* @return {string}
53125354
*/
53135355
getSortOrder(): string;
5356+
/**
5357+
* Get the current page number that the request is on.
5358+
*
5359+
* @return {number}
5360+
*/
5361+
getPage(): number;
53145362
/**
53155363
* 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.
53165364
* @returns {Promise<User[] | []>}
@@ -5335,6 +5383,7 @@ export class UsersRequestBuilder {
53355383
/** @private */ SortBy: string;
53365384
/** @private */ SortOrder: string;
53375385
/** @private */ SearchIn: Array<String>;
5386+
/** @private */ page: number;
53385387
/**
53395388
* A method to set limit for the number of Users returned in a single iteration. A maximum of 100 users can fetched in a single iteration.
53405389
* @param {number} limit
@@ -5420,6 +5469,12 @@ export class UsersRequestBuilder {
54205469
* @returns
54215470
*/
54225471
searchIn(searchIn: Array<String>): this;
5472+
/**
5473+
* A method to set the page number to start fetching from. Page 0 will fetch the first page.
5474+
* @param {number} page
5475+
* @returns
5476+
*/
5477+
setPage(page: number): this;
54235478
/**
54245479
* This method will return an object of the UsersRequest class.
54255480
* @returns {UsersRequest}
@@ -5504,6 +5559,12 @@ export class ConversationsRequest {
55045559
* @returns {boolean}
55055560
*/
55065561
getUnread(): boolean;
5562+
/**
5563+
* Get the current page number that the request is on.
5564+
*
5565+
* @return {number}
5566+
*/
5567+
getPage(): number;
55075568
/**
55085569
* Determines whether agentic conversations should be hidden.
55095570
*
@@ -5529,6 +5590,7 @@ export class ConversationsRequestBuilder {
55295590
/** @private */ WithBlockedInfo: boolean;
55305591
/** @private */ searchKeyword: string;
55315592
/** @private */ unreadOnly: boolean;
5593+
/** @private */ page: number;
55325594
/** @private */ hideAgentic: boolean;
55335595
/** @private */ onlyAgentic: boolean;
55345596
/**
@@ -5619,6 +5681,12 @@ export class ConversationsRequestBuilder {
56195681
* @returns
56205682
*/
56215683
setUnread(unread: boolean): this;
5684+
/**
5685+
* A method to set the page number to start fetching from. Page 0 will fetch the first page.
5686+
* @param {number} page
5687+
* @returns
5688+
*/
5689+
setPage(page: number): this;
56225690
/**
56235691
* A method to hide agentic conversations from the list.
56245692
* @param {boolean} hideAgentic
@@ -6275,13 +6343,20 @@ export class BlockedUsersRequest {
62756343
* @return {string}
62766344
*/
62776345
getSearchKeyword(): string;
6346+
/**
6347+
* Get the current page number that the request is on.
6348+
*
6349+
* @return {number}
6350+
*/
6351+
getPage(): number;
62786352
/** @internal */
62796353
getNextData(): any;
62806354
}
62816355
export class BlockedUsersRequestBuilder {
62826356
/** @private */ limit: number;
62836357
/** @private */ searchKeyword: string;
62846358
/** @private */ direction: string;
6359+
/** @private */ page: number;
62856360
/**
62866361
*
62876362
* @param {number} limit
@@ -6303,6 +6378,13 @@ export class BlockedUsersRequestBuilder {
63036378
* @returns
63046379
*/
63056380
setDirection(direction: string): this;
6381+
/**
6382+
*
6383+
* @param {number} page
6384+
* A method to set the page number to start fetching from. Page 0 will fetch the first page.
6385+
* @returns
6386+
*/
6387+
setPage(page: number): this;
63066388
/** @internal */
63076389
blockedByMe(): this;
63086390
/** @internal */

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

0 commit comments

Comments
 (0)