@vitalfit/sdk 0.3.11 → 0.3.12

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/dist/index.d.cts CHANGED
@@ -1191,7 +1191,7 @@ declare class AuthService {
1191
1191
  declare class UserService {
1192
1192
  client: Client;
1193
1193
  constructor(client: Client);
1194
- getStaffUsers({ search, role }: UserPaginationOptions, jwt: string): Promise<DataResponse<User[]>>;
1194
+ getStaffUsers({ page, limit, sort, search, role, }: UserPaginationOptions, jwt: string): Promise<DataResponse<User[]>>;
1195
1195
  WhoAmI(jwt: string): Promise<UserApiResponse>;
1196
1196
  getBranchAdmins(jwt: string): Promise<DataResponse<User[]>>;
1197
1197
  getClientUsers(jwt: string, options?: UserPaginationOptions): Promise<PaginatedTotal<User[]>>;
package/dist/index.d.ts CHANGED
@@ -1191,7 +1191,7 @@ declare class AuthService {
1191
1191
  declare class UserService {
1192
1192
  client: Client;
1193
1193
  constructor(client: Client);
1194
- getStaffUsers({ search, role }: UserPaginationOptions, jwt: string): Promise<DataResponse<User[]>>;
1194
+ getStaffUsers({ page, limit, sort, search, role, }: UserPaginationOptions, jwt: string): Promise<DataResponse<User[]>>;
1195
1195
  WhoAmI(jwt: string): Promise<UserApiResponse>;
1196
1196
  getBranchAdmins(jwt: string): Promise<DataResponse<User[]>>;
1197
1197
  getClientUsers(jwt: string, options?: UserPaginationOptions): Promise<PaginatedTotal<User[]>>;
package/dist/index.js CHANGED
@@ -407,13 +407,22 @@ var UserService = class {
407
407
  this.getMedicalProfile = this.getMedicalProfile.bind(this);
408
408
  this.updateMedicalProfile = this.updateMedicalProfile.bind(this);
409
409
  }
410
- async getStaffUsers({ search, role }, jwt) {
410
+ async getStaffUsers({
411
+ page = 1,
412
+ limit = 10,
413
+ sort = "desc",
414
+ search,
415
+ role
416
+ }, jwt) {
411
417
  const response = await this.client.get({
412
418
  url: "/user/users",
413
419
  jwt,
414
420
  params: {
415
421
  search,
416
- role
422
+ role,
423
+ page,
424
+ limit,
425
+ sort
417
426
  }
418
427
  });
419
428
  return response;
@@ -2753,7 +2762,7 @@ var VitalFit = class _VitalFit {
2753
2762
  return _VitalFit.instance;
2754
2763
  }
2755
2764
  version() {
2756
- return "0.3.11";
2765
+ return "0.3.12";
2757
2766
  }
2758
2767
  };
2759
2768
  export {