@vitalfit/sdk 0.3.10 → 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.cjs CHANGED
@@ -447,13 +447,22 @@ var UserService = class {
447
447
  this.getMedicalProfile = this.getMedicalProfile.bind(this);
448
448
  this.updateMedicalProfile = this.updateMedicalProfile.bind(this);
449
449
  }
450
- async getStaffUsers({ search, role }, jwt) {
450
+ async getStaffUsers({
451
+ page = 1,
452
+ limit = 10,
453
+ sort = "desc",
454
+ search,
455
+ role
456
+ }, jwt) {
451
457
  const response = await this.client.get({
452
458
  url: "/user/users",
453
459
  jwt,
454
460
  params: {
455
461
  search,
456
- role
462
+ role,
463
+ page,
464
+ limit,
465
+ sort
457
466
  }
458
467
  });
459
468
  return response;
@@ -1907,6 +1916,8 @@ var ReportService = class {
1907
1916
  this.instructorStudentCountKPI = this.instructorStudentCountKPI.bind(this);
1908
1917
  this.instructorMonthlyClassesCount = this.instructorMonthlyClassesCount.bind(this);
1909
1918
  this.instructorClassesToday = this.instructorClassesToday.bind(this);
1919
+ this.instructorStudentsToday = this.instructorStudentsToday.bind(this);
1920
+ this.instructorAttendanceRate = this.instructorAttendanceRate.bind(this);
1910
1921
  this.weeklyRevenueKPI = this.weeklyRevenueKPI.bind(this);
1911
1922
  this.monthlyRecurringRevenueKPI = this.monthlyRecurringRevenueKPI.bind(this);
1912
1923
  this.accountsReceivableKPI = this.accountsReceivableKPI.bind(this);
@@ -2117,6 +2128,20 @@ var ReportService = class {
2117
2128
  });
2118
2129
  return response;
2119
2130
  }
2131
+ async instructorStudentsToday(jwt) {
2132
+ const response = await this.client.get({
2133
+ url: "/reports/instructors/students-today",
2134
+ jwt
2135
+ });
2136
+ return response;
2137
+ }
2138
+ async instructorAttendanceRate(jwt) {
2139
+ const response = await this.client.get({
2140
+ url: "/reports/instructors/attendance-rate",
2141
+ jwt
2142
+ });
2143
+ return response;
2144
+ }
2120
2145
  async weeklyRevenueKPI(jwt, branchId) {
2121
2146
  const response = await this.client.get({
2122
2147
  url: "/reports/kpi/weekly-revenue",
@@ -2777,7 +2802,7 @@ var VitalFit = class _VitalFit {
2777
2802
  return _VitalFit.instance;
2778
2803
  }
2779
2804
  version() {
2780
- return "0.3.10";
2805
+ return "0.3.12";
2781
2806
  }
2782
2807
  };
2783
2808
  // Annotate the CommonJS export names for ESM import in node: