@vitalfit/sdk 0.3.9 → 0.3.10

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,
@@ -2517,36 +2517,36 @@ var ExportsService = class {
2517
2517
  this.exportPaymentMethods = this.exportPaymentMethods.bind(this);
2518
2518
  }
2519
2519
  // Reports
2520
- async exportFinancialReport(jwt, start, end, branchId) {
2520
+ async exportFinancialReport(jwt, start, end, branchId, format) {
2521
2521
  return await this.client.download({
2522
2522
  url: "/reports/export/financial",
2523
2523
  jwt,
2524
2524
  params: {
2525
2525
  start,
2526
2526
  end,
2527
- branch_id: branchId
2527
+ branch_id: branchId,
2528
+ type: format
2528
2529
  }
2529
2530
  });
2530
2531
  }
2531
- async exportClientsReport(jwt, start, end, branchId) {
2532
+ async exportClientsReport(jwt, format) {
2532
2533
  return await this.client.download({
2533
2534
  url: "/reports/export/clients",
2534
2535
  jwt,
2535
2536
  params: {
2536
- start,
2537
- end,
2538
- branch_id: branchId
2537
+ type: format
2539
2538
  }
2540
2539
  });
2541
2540
  }
2542
- async exportSalesReport(jwt, start, end, branchId) {
2541
+ async exportSalesReport(jwt, start, end, branchId, format) {
2543
2542
  return await this.client.download({
2544
2543
  url: "/reports/export/sales",
2545
2544
  jwt,
2546
2545
  params: {
2547
2546
  start,
2548
2547
  end,
2549
- branch_id: branchId
2548
+ branch_id: branchId,
2549
+ type: format
2550
2550
  }
2551
2551
  });
2552
2552
  }
@@ -2777,7 +2777,7 @@ var VitalFit = class _VitalFit {
2777
2777
  return _VitalFit.instance;
2778
2778
  }
2779
2779
  version() {
2780
- return "0.3.9";
2780
+ return "0.3.10";
2781
2781
  }
2782
2782
  };
2783
2783
  // Annotate the CommonJS export names for ESM import in node: