@myclub_se/data-access 2.11.0 → 2.11.1

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.
@@ -2914,13 +2914,13 @@ class BookingCalendarService {
2914
2914
  params
2915
2915
  });
2916
2916
  }
2917
- clearBookingCalendarSlots(role, clubOrSectionOrTeamId, currentWeekStartDate, weekRelativeIndexes, onlyDeleteSessions = false, shouldDeleteRepeatingSlots = false, bookingSlotFilter) {
2917
+ clearBookingCalendarSlots(role, clubOrSectionOrTeamId, currentWeekStartDate, weekRelativeIndexes, onlyDeleteSessions = false, shouldDeleteRepeatingSlots = false, weekdays = [], bookingSlotFilter) {
2918
2918
  if (role === Role.ClubAdmin) {
2919
- return this.clearClubBookingCalendarSlots(clubOrSectionOrTeamId, currentWeekStartDate, weekRelativeIndexes, onlyDeleteSessions, shouldDeleteRepeatingSlots, bookingSlotFilter);
2919
+ return this.clearClubBookingCalendarSlots(clubOrSectionOrTeamId, currentWeekStartDate, weekRelativeIndexes, onlyDeleteSessions, shouldDeleteRepeatingSlots, weekdays, bookingSlotFilter);
2920
2920
  }
2921
- return this.clearSectionBookingCalendarSlots(clubOrSectionOrTeamId, currentWeekStartDate, weekRelativeIndexes, onlyDeleteSessions, shouldDeleteRepeatingSlots, bookingSlotFilter);
2921
+ return this.clearSectionBookingCalendarSlots(clubOrSectionOrTeamId, currentWeekStartDate, weekRelativeIndexes, onlyDeleteSessions, shouldDeleteRepeatingSlots, weekdays, bookingSlotFilter);
2922
2922
  }
2923
- clearClubBookingCalendarSlots(clubId, currentWeekStartDate, weekRelativeIndexes, onlyDeleteSessions = false, shouldDeleteRepeatingSlots = false, bookingSlotFilter) {
2923
+ clearClubBookingCalendarSlots(clubId, currentWeekStartDate, weekRelativeIndexes, onlyDeleteSessions = false, shouldDeleteRepeatingSlots = false, weekdays = [], bookingSlotFilter) {
2924
2924
  const params = bookingSlotFilter.toParams();
2925
2925
  return this.apiService
2926
2926
  .deleteResourceWithBody(Role.ClubAdmin, CLUB_BOOKING_CALENDAR_SLOTS_CLEAR_PATH, { clubId }, {
@@ -2929,11 +2929,12 @@ class BookingCalendarService {
2929
2929
  week_relative_indexes: weekRelativeIndexes,
2930
2930
  only_delete_sessions: onlyDeleteSessions,
2931
2931
  should_delete_repeating_slots: shouldDeleteRepeatingSlots,
2932
+ weekdays: weekdays,
2932
2933
  },
2933
2934
  params,
2934
2935
  });
2935
2936
  }
2936
- clearSectionBookingCalendarSlots(sectionId, currentWeekStartDate, weekRelativeIndexes, onlyDeleteSessions = false, shouldDeleteRepeatingSlots = false, bookingSlotFilter) {
2937
+ clearSectionBookingCalendarSlots(sectionId, currentWeekStartDate, weekRelativeIndexes, onlyDeleteSessions = false, shouldDeleteRepeatingSlots = false, weekdays = [], bookingSlotFilter) {
2937
2938
  const params = bookingSlotFilter.toParams();
2938
2939
  return this.apiService
2939
2940
  .deleteResourceWithBody(Role.SectionAdmin, SECTION_BOOKING_CALENDAR_SLOTS_CLEAR_PATH, { sectionId }, {
@@ -2942,6 +2943,7 @@ class BookingCalendarService {
2942
2943
  week_relative_indexes: weekRelativeIndexes,
2943
2944
  only_delete_sessions: onlyDeleteSessions,
2944
2945
  should_delete_repeating_slots: shouldDeleteRepeatingSlots,
2946
+ weekdays: weekdays,
2945
2947
  },
2946
2948
  params,
2947
2949
  });