@vitalfit/sdk 0.3.0 → 0.3.2

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
@@ -1303,7 +1303,7 @@ declare class BookingService {
1303
1303
  getClientBooking(userID: string, jwt: string): Promise<DataResponse<ClientBookingResponse[]>>;
1304
1304
  getClientBranchBooking(branchID: string, userID: string, jwt: string): Promise<DataResponse<BranchScheduleResponse[]>>;
1305
1305
  getClassBookingCount(classID: string, jwt: string): Promise<ClassBookingCount>;
1306
- getBookingClass(classID: string, jwt: string, { page, limit, sort }: PaginationRequest): Promise<PaginatedTotal<BookingParticipant>>;
1306
+ getBookingClass(classID: string, jwt: string, { page, limit, sort }: PaginationRequest): Promise<PaginatedTotal<BookingParticipant[]>>;
1307
1307
  }
1308
1308
 
1309
1309
  declare class AccessService {
package/dist/index.d.ts CHANGED
@@ -1303,7 +1303,7 @@ declare class BookingService {
1303
1303
  getClientBooking(userID: string, jwt: string): Promise<DataResponse<ClientBookingResponse[]>>;
1304
1304
  getClientBranchBooking(branchID: string, userID: string, jwt: string): Promise<DataResponse<BranchScheduleResponse[]>>;
1305
1305
  getClassBookingCount(classID: string, jwt: string): Promise<ClassBookingCount>;
1306
- getBookingClass(classID: string, jwt: string, { page, limit, sort }: PaginationRequest): Promise<PaginatedTotal<BookingParticipant>>;
1306
+ getBookingClass(classID: string, jwt: string, { page, limit, sort }: PaginationRequest): Promise<PaginatedTotal<BookingParticipant[]>>;
1307
1307
  }
1308
1308
 
1309
1309
  declare class AccessService {
package/dist/index.js CHANGED
@@ -1595,7 +1595,7 @@ var BookingService = class {
1595
1595
  });
1596
1596
  }
1597
1597
  async cancelBooking(bookingId, jwt) {
1598
- await this.client.delete({
1598
+ await this.client.patch({
1599
1599
  url: `/booking/${bookingId}/cancel`,
1600
1600
  jwt
1601
1601
  });
@@ -2366,7 +2366,7 @@ var VitalFit = class _VitalFit {
2366
2366
  return _VitalFit.instance;
2367
2367
  }
2368
2368
  version() {
2369
- return "0.3.0";
2369
+ return "0.3.2";
2370
2370
  }
2371
2371
  };
2372
2372
  export {