@myclub_se/data-access 2.10.0 → 2.11.0
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/esm2020/lib/services/booking-calendar.service.mjs +8 -6
- package/esm2020/lib/services/team.service.mjs +7 -1
- package/fesm2015/myclub_se-data-access.mjs +13 -5
- package/fesm2015/myclub_se-data-access.mjs.map +1 -1
- package/fesm2020/myclub_se-data-access.mjs +13 -5
- package/fesm2020/myclub_se-data-access.mjs.map +1 -1
- package/lib/services/booking-calendar.service.d.ts +1 -1
- package/lib/services/team.service.d.ts +2 -1
- package/package.json +1 -1
|
@@ -2886,28 +2886,30 @@ class BookingCalendarService {
|
|
|
2886
2886
|
params
|
|
2887
2887
|
});
|
|
2888
2888
|
}
|
|
2889
|
-
copyBookingCalendarSlots(role, clubOrSectionOrTeamId, weekRelativeIndexes, onlyCopySlots = false, bookingSlotFilter) {
|
|
2889
|
+
copyBookingCalendarSlots(role, clubOrSectionOrTeamId, weekRelativeIndexes, onlyCopySlots = false, weekdays = [], bookingSlotFilter) {
|
|
2890
2890
|
if (role === Role.ClubAdmin) {
|
|
2891
|
-
return this.copyClubBookingCalendarSlots(clubOrSectionOrTeamId, weekRelativeIndexes, onlyCopySlots, bookingSlotFilter);
|
|
2891
|
+
return this.copyClubBookingCalendarSlots(clubOrSectionOrTeamId, weekRelativeIndexes, onlyCopySlots, weekdays, bookingSlotFilter);
|
|
2892
2892
|
}
|
|
2893
|
-
return this.copySectionBookingCalendarSlots(clubOrSectionOrTeamId, weekRelativeIndexes, onlyCopySlots, bookingSlotFilter);
|
|
2893
|
+
return this.copySectionBookingCalendarSlots(clubOrSectionOrTeamId, weekRelativeIndexes, onlyCopySlots, weekdays, bookingSlotFilter);
|
|
2894
2894
|
}
|
|
2895
|
-
copyClubBookingCalendarSlots(clubId, weekRelativeIndexes, onlyCopySlots = false, bookingSlotFilter) {
|
|
2895
|
+
copyClubBookingCalendarSlots(clubId, weekRelativeIndexes, onlyCopySlots = false, weekdays = [], bookingSlotFilter) {
|
|
2896
2896
|
const params = bookingSlotFilter.toParams();
|
|
2897
2897
|
return this.apiService
|
|
2898
2898
|
.postResourceNoResponse(Role.ClubAdmin, CLUB_BOOKING_CALENDAR_SLOTS_COPY_PATH, { clubId }, {
|
|
2899
2899
|
week_relative_indexes: weekRelativeIndexes,
|
|
2900
2900
|
only_copy_slots: onlyCopySlots,
|
|
2901
|
+
weekdays: weekdays,
|
|
2901
2902
|
}, {
|
|
2902
2903
|
params
|
|
2903
2904
|
});
|
|
2904
2905
|
}
|
|
2905
|
-
copySectionBookingCalendarSlots(sectionId, weekRelativeIndexes, onlyCopySlots = false, bookingSlotFilter) {
|
|
2906
|
+
copySectionBookingCalendarSlots(sectionId, weekRelativeIndexes, onlyCopySlots = false, weekdays = [], bookingSlotFilter) {
|
|
2906
2907
|
const params = bookingSlotFilter.toParams();
|
|
2907
2908
|
return this.apiService
|
|
2908
2909
|
.postResourceNoResponse(Role.SectionAdmin, SECTION_BOOKING_CALENDAR_SLOTS_COPY_PATH, { sectionId }, {
|
|
2909
2910
|
week_relative_indexes: weekRelativeIndexes,
|
|
2910
2911
|
only_copy_slots: onlyCopySlots,
|
|
2912
|
+
weekdays: weekdays,
|
|
2911
2913
|
}, {
|
|
2912
2914
|
params
|
|
2913
2915
|
});
|
|
@@ -3963,6 +3965,12 @@ class TeamService {
|
|
|
3963
3965
|
deleteTeamLeaderTeamMember(teamId, id) {
|
|
3964
3966
|
return this.apiService.deleteResource(Role.TeamAdmin, TEAM_LEADER_TEAM_MEMBER_PATH, { teamId, id });
|
|
3965
3967
|
}
|
|
3968
|
+
getTeams(role, clubOrSectionOrTeamId) {
|
|
3969
|
+
if (role === Role.ClubAdmin) {
|
|
3970
|
+
return this.getClubTeams(clubOrSectionOrTeamId);
|
|
3971
|
+
}
|
|
3972
|
+
return this.getSectionTeams(clubOrSectionOrTeamId);
|
|
3973
|
+
}
|
|
3966
3974
|
getClubTeams(clubId) {
|
|
3967
3975
|
return this.apiService.getCollection(searchTeamFactory, Role.ClubAdmin, CLUB_TEAMS_PATH, { clubId });
|
|
3968
3976
|
}
|