@vitalfit/sdk 0.3.9 → 0.3.11

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
@@ -804,7 +804,7 @@ var InstructorService = class {
804
804
  jwt
805
805
  });
806
806
  }
807
- async getAssignedClients(instructorId, jwt, { page = 1, limit = 10, sort = "desc", search } = {}) {
807
+ async getAssignedClients(jwt, instructorId, { page = 1, limit = 10, sort = "desc", search } = {}) {
808
808
  const response = await this.client.get({
809
809
  url: `/instructor/${instructorId}/clients`,
810
810
  jwt,
@@ -1907,6 +1907,8 @@ var ReportService = class {
1907
1907
  this.instructorStudentCountKPI = this.instructorStudentCountKPI.bind(this);
1908
1908
  this.instructorMonthlyClassesCount = this.instructorMonthlyClassesCount.bind(this);
1909
1909
  this.instructorClassesToday = this.instructorClassesToday.bind(this);
1910
+ this.instructorStudentsToday = this.instructorStudentsToday.bind(this);
1911
+ this.instructorAttendanceRate = this.instructorAttendanceRate.bind(this);
1910
1912
  this.weeklyRevenueKPI = this.weeklyRevenueKPI.bind(this);
1911
1913
  this.monthlyRecurringRevenueKPI = this.monthlyRecurringRevenueKPI.bind(this);
1912
1914
  this.accountsReceivableKPI = this.accountsReceivableKPI.bind(this);
@@ -2117,6 +2119,20 @@ var ReportService = class {
2117
2119
  });
2118
2120
  return response;
2119
2121
  }
2122
+ async instructorStudentsToday(jwt) {
2123
+ const response = await this.client.get({
2124
+ url: "/reports/instructors/students-today",
2125
+ jwt
2126
+ });
2127
+ return response;
2128
+ }
2129
+ async instructorAttendanceRate(jwt) {
2130
+ const response = await this.client.get({
2131
+ url: "/reports/instructors/attendance-rate",
2132
+ jwt
2133
+ });
2134
+ return response;
2135
+ }
2120
2136
  async weeklyRevenueKPI(jwt, branchId) {
2121
2137
  const response = await this.client.get({
2122
2138
  url: "/reports/kpi/weekly-revenue",
@@ -2517,36 +2533,36 @@ var ExportsService = class {
2517
2533
  this.exportPaymentMethods = this.exportPaymentMethods.bind(this);
2518
2534
  }
2519
2535
  // Reports
2520
- async exportFinancialReport(jwt, start, end, branchId) {
2536
+ async exportFinancialReport(jwt, start, end, branchId, format) {
2521
2537
  return await this.client.download({
2522
2538
  url: "/reports/export/financial",
2523
2539
  jwt,
2524
2540
  params: {
2525
2541
  start,
2526
2542
  end,
2527
- branch_id: branchId
2543
+ branch_id: branchId,
2544
+ type: format
2528
2545
  }
2529
2546
  });
2530
2547
  }
2531
- async exportClientsReport(jwt, start, end, branchId) {
2548
+ async exportClientsReport(jwt, format) {
2532
2549
  return await this.client.download({
2533
2550
  url: "/reports/export/clients",
2534
2551
  jwt,
2535
2552
  params: {
2536
- start,
2537
- end,
2538
- branch_id: branchId
2553
+ type: format
2539
2554
  }
2540
2555
  });
2541
2556
  }
2542
- async exportSalesReport(jwt, start, end, branchId) {
2557
+ async exportSalesReport(jwt, start, end, branchId, format) {
2543
2558
  return await this.client.download({
2544
2559
  url: "/reports/export/sales",
2545
2560
  jwt,
2546
2561
  params: {
2547
2562
  start,
2548
2563
  end,
2549
- branch_id: branchId
2564
+ branch_id: branchId,
2565
+ type: format
2550
2566
  }
2551
2567
  });
2552
2568
  }
@@ -2777,7 +2793,7 @@ var VitalFit = class _VitalFit {
2777
2793
  return _VitalFit.instance;
2778
2794
  }
2779
2795
  version() {
2780
- return "0.3.9";
2796
+ return "0.3.11";
2781
2797
  }
2782
2798
  };
2783
2799
  // Annotate the CommonJS export names for ESM import in node: