@vitalfit/sdk 0.4.4 → 0.4.5

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
@@ -1594,7 +1594,7 @@ var ScheduleService = class {
1594
1594
  jwt
1595
1595
  });
1596
1596
  }
1597
- async GetClassesByInstructor(jwt, userId, month, year, date) {
1597
+ async GetClassesByInstructor(jwt, userId, month, year, date, branchId) {
1598
1598
  const response = await this.client.get({
1599
1599
  url: "/schedule/instructor",
1600
1600
  jwt,
@@ -1602,7 +1602,8 @@ var ScheduleService = class {
1602
1602
  user_id: userId,
1603
1603
  month,
1604
1604
  year,
1605
- date
1605
+ date,
1606
+ branch_id: branchId
1606
1607
  }
1607
1608
  });
1608
1609
  return response;
@@ -1836,17 +1837,27 @@ var BookingService = class {
1836
1837
  jwt
1837
1838
  });
1838
1839
  }
1839
- async getClientBooking(userID, jwt) {
1840
+ async getClientBooking(userID, jwt, month, year, date) {
1840
1841
  const response = await this.client.get({
1841
1842
  url: `/bookings/client/${userID}`,
1842
- jwt
1843
+ jwt,
1844
+ params: {
1845
+ month,
1846
+ year,
1847
+ date
1848
+ }
1843
1849
  });
1844
1850
  return response;
1845
1851
  }
1846
- async getClientBranchBooking(branchID, userID, jwt) {
1852
+ async getClientBranchBooking(branchID, userID, jwt, month, year, date) {
1847
1853
  const response = await this.client.get({
1848
1854
  url: `/schedule/branch/${branchID}/client/${userID}`,
1849
- jwt
1855
+ jwt,
1856
+ params: {
1857
+ month,
1858
+ year,
1859
+ date
1860
+ }
1850
1861
  });
1851
1862
  return response;
1852
1863
  }
@@ -3063,7 +3074,7 @@ var VitalFit = class _VitalFit {
3063
3074
  return _VitalFit.instance;
3064
3075
  }
3065
3076
  version() {
3066
- return "0.4.4";
3077
+ return "0.4.5";
3067
3078
  }
3068
3079
  };
3069
3080
  // Annotate the CommonJS export names for ESM import in node: