@myclub_se/data-access 1.5.3 → 1.6.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/api-models/api-booking-calendar-slot-session.mjs +2 -0
- package/esm2020/lib/api-models/api-booking-calendar-slot.mjs +2 -0
- package/esm2020/lib/api-models/api-booking-calendar.mjs +2 -0
- package/esm2020/lib/api-models/api-member-activity-invite.mjs +1 -1
- package/esm2020/lib/api-models/index.mjs +4 -1
- package/esm2020/lib/models/booking-calendar-slot-session.mjs +26 -0
- package/esm2020/lib/models/booking-calendar-slot.mjs +29 -0
- package/esm2020/lib/models/booking-calendar.mjs +28 -0
- package/esm2020/lib/models/index.mjs +4 -1
- package/esm2020/lib/models/member-activity-invite.mjs +3 -2
- package/esm2020/lib/services/activity.service.mjs +13 -2
- package/esm2020/lib/services/booking-calendar.service.mjs +143 -0
- package/esm2020/lib/services/factories/booking-calendar-factory.mjs +3 -0
- package/esm2020/lib/services/factories/booking-calendar-slot-factory.mjs +4 -0
- package/esm2020/lib/services/factories/booking-calendar-slot-session-factory.mjs +3 -0
- package/esm2020/lib/services/factories/member-invite-factory.mjs +2 -2
- package/esm2020/lib/services/index.mjs +2 -1
- package/esm2020/lib/types/booking-calendar-slot-type.mjs +2 -0
- package/fesm2015/myclub_se-data-access.mjs +238 -4
- package/fesm2015/myclub_se-data-access.mjs.map +1 -1
- package/fesm2020/myclub_se-data-access.mjs +238 -4
- package/fesm2020/myclub_se-data-access.mjs.map +1 -1
- package/lib/api-models/api-booking-calendar-slot-session.d.ts +10 -0
- package/lib/api-models/api-booking-calendar-slot.d.ts +16 -0
- package/lib/api-models/api-booking-calendar.d.ts +11 -0
- package/lib/api-models/api-member-activity-invite.d.ts +1 -0
- package/lib/api-models/index.d.ts +3 -0
- package/lib/models/booking-calendar-slot-session.d.ts +22 -0
- package/lib/models/booking-calendar-slot.d.ts +27 -0
- package/lib/models/booking-calendar.d.ts +24 -0
- package/lib/models/index.d.ts +3 -0
- package/lib/models/member-activity-invite.d.ts +2 -1
- package/lib/services/activity.service.d.ts +1 -0
- package/lib/services/booking-calendar.service.d.ts +27 -0
- package/lib/services/factories/booking-calendar-factory.d.ts +3 -0
- package/lib/services/factories/booking-calendar-slot-factory.d.ts +3 -0
- package/lib/services/factories/booking-calendar-slot-session-factory.d.ts +3 -0
- package/lib/services/index.d.ts +1 -0
- package/lib/types/booking-calendar-slot-type.d.ts +1 -0
- package/package.json +1 -1
|
@@ -218,6 +218,86 @@ class Authentication {
|
|
|
218
218
|
}
|
|
219
219
|
}
|
|
220
220
|
|
|
221
|
+
class BookingCalendar {
|
|
222
|
+
constructor(id, club_id, section_id, team_id, club_name, color, name, section_name, team_name) {
|
|
223
|
+
this.id = id;
|
|
224
|
+
this.club_id = club_id;
|
|
225
|
+
this.section_id = section_id;
|
|
226
|
+
this.team_id = team_id;
|
|
227
|
+
this.club_name = club_name;
|
|
228
|
+
this.color = color;
|
|
229
|
+
this.name = name;
|
|
230
|
+
this.section_name = section_name;
|
|
231
|
+
this.team_name = team_name;
|
|
232
|
+
}
|
|
233
|
+
static asFormGroup(calendar) {
|
|
234
|
+
return new FormGroup({
|
|
235
|
+
id: new FormControl((calendar === null || calendar === void 0 ? void 0 : calendar.id) || ''),
|
|
236
|
+
club_id: new FormControl((calendar === null || calendar === void 0 ? void 0 : calendar.club_id) || ''),
|
|
237
|
+
section_id: new FormControl((calendar === null || calendar === void 0 ? void 0 : calendar.section_id) || ''),
|
|
238
|
+
team_id: new FormControl((calendar === null || calendar === void 0 ? void 0 : calendar.team_id) || ''),
|
|
239
|
+
club_name: new FormControl((calendar === null || calendar === void 0 ? void 0 : calendar.club_name) || ''),
|
|
240
|
+
color: new FormControl((calendar === null || calendar === void 0 ? void 0 : calendar.color) || '', Validators.required),
|
|
241
|
+
name: new FormControl((calendar === null || calendar === void 0 ? void 0 : calendar.name) || '', Validators.required),
|
|
242
|
+
section_name: new FormControl((calendar === null || calendar === void 0 ? void 0 : calendar.section_name) || ''),
|
|
243
|
+
team_name: new FormControl((calendar === null || calendar === void 0 ? void 0 : calendar.team_name) || '')
|
|
244
|
+
});
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
class BookingCalendarSlot {
|
|
249
|
+
constructor(id, calendar_id, location_id, color, day, end_time, location_name, number_of_available_sessions, sessions, start_time, type) {
|
|
250
|
+
this.id = id;
|
|
251
|
+
this.calendar_id = calendar_id;
|
|
252
|
+
this.location_id = location_id;
|
|
253
|
+
this.color = color;
|
|
254
|
+
this.day = day;
|
|
255
|
+
this.end_time = end_time;
|
|
256
|
+
this.location_name = location_name;
|
|
257
|
+
this.number_of_available_sessions = number_of_available_sessions;
|
|
258
|
+
this.sessions = sessions;
|
|
259
|
+
this.start_time = start_time;
|
|
260
|
+
this.type = type;
|
|
261
|
+
}
|
|
262
|
+
static asFormGroup(slot) {
|
|
263
|
+
return new FormGroup({
|
|
264
|
+
id: new FormControl((slot === null || slot === void 0 ? void 0 : slot.id) || ''),
|
|
265
|
+
calendar_id: new FormControl((slot === null || slot === void 0 ? void 0 : slot.calendar_id) || ''),
|
|
266
|
+
location_id: new FormControl((slot === null || slot === void 0 ? void 0 : slot.location_id) || '', Validators.required),
|
|
267
|
+
day: new FormControl((slot === null || slot === void 0 ? void 0 : slot.day) || '', Validators.required),
|
|
268
|
+
end_time: new FormControl((slot === null || slot === void 0 ? void 0 : slot.end_time) || '', Validators.required),
|
|
269
|
+
number_of_available_sessions: new FormControl((slot === null || slot === void 0 ? void 0 : slot.number_of_available_sessions) || 0, Validators.required),
|
|
270
|
+
start_time: new FormControl((slot === null || slot === void 0 ? void 0 : slot.start_time) || '', Validators.required),
|
|
271
|
+
type: new FormControl((slot === null || slot === void 0 ? void 0 : slot.type) || '', Validators.required),
|
|
272
|
+
});
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
class BookingCalendarSlotSession {
|
|
277
|
+
constructor(id, section_id, slot_id, team_id, end_time, section_name, start_time, team_name) {
|
|
278
|
+
this.id = id;
|
|
279
|
+
this.section_id = section_id;
|
|
280
|
+
this.slot_id = slot_id;
|
|
281
|
+
this.team_id = team_id;
|
|
282
|
+
this.end_time = end_time;
|
|
283
|
+
this.section_name = section_name;
|
|
284
|
+
this.start_time = start_time;
|
|
285
|
+
this.team_name = team_name;
|
|
286
|
+
}
|
|
287
|
+
static asFormGroup(session) {
|
|
288
|
+
return new FormGroup({
|
|
289
|
+
id: new FormControl((session === null || session === void 0 ? void 0 : session.id) || ''),
|
|
290
|
+
section_id: new FormControl((session === null || session === void 0 ? void 0 : session.section_id) || ''),
|
|
291
|
+
slot_id: new FormControl((session === null || session === void 0 ? void 0 : session.slot_id) || '', Validators.required),
|
|
292
|
+
team_id: new FormControl((session === null || session === void 0 ? void 0 : session.team_id) || ''),
|
|
293
|
+
end_time: new FormControl((session === null || session === void 0 ? void 0 : session.end_time) || '', Validators.required),
|
|
294
|
+
section_name: new FormControl((session === null || session === void 0 ? void 0 : session.section_name) || ''),
|
|
295
|
+
start_time: new FormControl((session === null || session === void 0 ? void 0 : session.start_time) || '', Validators.required),
|
|
296
|
+
team_name: new FormControl((session === null || session === void 0 ? void 0 : session.team_name) || '')
|
|
297
|
+
});
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
|
|
221
301
|
class Calendar {
|
|
222
302
|
constructor(id, club_id, section_id, name, types_to_show) {
|
|
223
303
|
this.id = id;
|
|
@@ -896,9 +976,10 @@ class SearchMember {
|
|
|
896
976
|
}
|
|
897
977
|
|
|
898
978
|
class MemberActivityInvite {
|
|
899
|
-
constructor(id, comment, last_invite, leader, member_email, member_id, member_name, next_invite, response_date, status) {
|
|
979
|
+
constructor(id, comment, current_num_attendants, last_invite, leader, member_email, member_id, member_name, next_invite, response_date, status) {
|
|
900
980
|
this.id = id;
|
|
901
981
|
this.comment = comment;
|
|
982
|
+
this.current_num_attendants = current_num_attendants;
|
|
902
983
|
this.last_invite = last_invite;
|
|
903
984
|
this.leader = leader;
|
|
904
985
|
this.member_email = member_email;
|
|
@@ -1207,7 +1288,7 @@ const memberFactory = (apiMember) => new Member(apiMember.id, apiMember.club_id,
|
|
|
1207
1288
|
const activityExtraMemberFactory = (apiActivityExtraMember) => new ActivityExtraMember(apiActivityExtraMember.id, apiActivityExtraMember.member_id, apiActivityExtraMember.team_id, apiActivityExtraMember.created, apiActivityExtraMember.leader, apiActivityExtraMember.member.birth_date ?
|
|
1208
1289
|
memberFactory(apiActivityExtraMember.member) : searchMemberFactory(apiActivityExtraMember.member), apiActivityExtraMember.member_name);
|
|
1209
1290
|
|
|
1210
|
-
const memberActivityInviteFactory = (invitedMember) => new MemberActivityInvite(invitedMember.id, invitedMember.comment, invitedMember.last_invite, invitedMember.leader, invitedMember.member_email, invitedMember.member_id, invitedMember.member_name, invitedMember.next_invite, invitedMember.response_date, invitedMember.status);
|
|
1291
|
+
const memberActivityInviteFactory = (invitedMember) => new MemberActivityInvite(invitedMember.id, invitedMember.comment, invitedMember.current_num_attendants, invitedMember.last_invite, invitedMember.leader, invitedMember.member_email, invitedMember.member_id, invitedMember.member_name, invitedMember.next_invite, invitedMember.response_date, invitedMember.status);
|
|
1211
1292
|
|
|
1212
1293
|
const activityFactory = (apiActivity) => new Activity(apiActivity.id, apiActivity.activity_group_id, apiActivity.activity_type_id, apiActivity.club_id, apiActivity.location_id, apiActivity.team_id, apiActivity.activity_location, apiActivity.activity_type_name, apiActivity.allow_maybe, apiActivity.calendar_name, apiActivity.created, apiActivity.current_num_attendants, apiActivity.day, apiActivity.description, apiActivity.end_time, apiActivity.file, apiActivity.invitation_text, apiActivity.invite_first_days, [], apiActivity.invite_hide_before_sent, apiActivity.invite_last_response_date, apiActivity.invite_remind, apiActivity.invite_remind_receivers, apiActivity.invite_second_days, 'same_as_last', (apiActivity.invited_members && apiActivity.invited_members.length) ? apiActivity.invited_members.map((invitedMember) => memberActivityInviteFactory(invitedMember)) : [], apiActivity.last_response_date, apiActivity.max_num_attendants, apiActivity.max_num_attendants_type, apiActivity.meet_up_place, apiActivity.meet_up_time, apiActivity.meet_up_time_display, 'none', 6, format(new Date(), 'yyyy-MM-dd'), 'repeat_until', apiActivity.show_other_invited, apiActivity.start_time, apiActivity.title, apiActivity.updated, apiActivity.use_invite, false);
|
|
1213
1294
|
|
|
@@ -1394,13 +1475,14 @@ const TEAM_ACTIVITIES_PATH = ':teamId/activities/';
|
|
|
1394
1475
|
const TEAM_ACTIVITY_INVITES_PATH = ':teamId/activities/:activityId/invites/';
|
|
1395
1476
|
const TEAM_ACTIVITY_INVITE_PATH = ':teamId/activities/:activityId/invites/:activityInviteId/';
|
|
1396
1477
|
const TEAM_ACTIVITY_INVITE_RESEND_PATH = ':teamId/activities/:activityId/invites/:activityInviteId/resend-invite/';
|
|
1397
|
-
const TEAM_ACTIVITY_LOCATIONS_PATH = ':teamId/activities/locations/';
|
|
1398
1478
|
const TEAM_ACTIVITY_NEW_PATH = ':teamId/activities/new/';
|
|
1399
1479
|
const TEAM_ACTIVITY_PARTICIPANTS_PATH = ':teamId/activities/:activityId/participants/';
|
|
1400
1480
|
const TEAM_ACTIVITY_PATH = ':teamId/activities/:id/';
|
|
1401
1481
|
const TEAM_ACTIVITY_SETTINGS_PATH = ':teamId/activities/settings/';
|
|
1402
1482
|
const TEAM_ACTIVITY_TYPES_PATH = ':teamId/activities/types/';
|
|
1403
1483
|
const TEAM_CALENDAR_PATH = ':teamId/activities/calendar/';
|
|
1484
|
+
const TEAM_ACTIVITY_LOCATIONS_PATH = ':teamId/activities/locations/';
|
|
1485
|
+
const CLUB_ACTIVITY_LOCATIONS_PATH = ':clubId/activities/locations/';
|
|
1404
1486
|
class ActivityService {
|
|
1405
1487
|
constructor(apiService) {
|
|
1406
1488
|
this.apiService = apiService;
|
|
@@ -1483,6 +1565,16 @@ class ActivityService {
|
|
|
1483
1565
|
this.activityLocationCollection = activityLocationCollection;
|
|
1484
1566
|
}));
|
|
1485
1567
|
}
|
|
1568
|
+
getClubActivityLocations(clubId) {
|
|
1569
|
+
if (this.activityLocationResponseDate && this.activityLocationResponseDate > sub(new Date(), { hours: 1 })) {
|
|
1570
|
+
return of(this.activityLocationCollection);
|
|
1571
|
+
}
|
|
1572
|
+
return this.apiService
|
|
1573
|
+
.getCollection(activityLocationFactory, Role.ClubAdmin, CLUB_ACTIVITY_LOCATIONS_PATH, { clubId }, { params: { limit: 'null' } }).pipe(tap((activityLocationCollection) => {
|
|
1574
|
+
this.activityLocationResponseDate = new Date();
|
|
1575
|
+
this.activityLocationCollection = activityLocationCollection;
|
|
1576
|
+
}));
|
|
1577
|
+
}
|
|
1486
1578
|
getTeamActivityNew(teamId) {
|
|
1487
1579
|
return this.apiService
|
|
1488
1580
|
.getResource(activityFactory, Role.TeamAdmin, TEAM_ACTIVITY_NEW_PATH, { teamId });
|
|
@@ -1591,6 +1683,148 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.11", ngImpo
|
|
|
1591
1683
|
}]
|
|
1592
1684
|
}], ctorParameters: function () { return [{ type: ApiService }]; } });
|
|
1593
1685
|
|
|
1686
|
+
const bookingCalendarFactory = (apiBookingCalendar) => new BookingCalendar(apiBookingCalendar.id, apiBookingCalendar.club_id, apiBookingCalendar.section_id, apiBookingCalendar.team_id, apiBookingCalendar.club_name, apiBookingCalendar.color, apiBookingCalendar.name, apiBookingCalendar.section_name, apiBookingCalendar.team_name);
|
|
1687
|
+
|
|
1688
|
+
const bookingCalendarSlotSessionFactory = (apiBookingSlotSession) => new BookingCalendarSlotSession(apiBookingSlotSession.id, apiBookingSlotSession.section_id, apiBookingSlotSession.slot_id, apiBookingSlotSession.team_id, apiBookingSlotSession.end_time, apiBookingSlotSession.section_name, apiBookingSlotSession.start_time, apiBookingSlotSession.team_name);
|
|
1689
|
+
|
|
1690
|
+
const bookingCalendarSlotFactory = (apiBookingSlot) => new BookingCalendarSlot(apiBookingSlot.id, apiBookingSlot.calendar_id, apiBookingSlot.location_id, apiBookingSlot.color, apiBookingSlot.day, apiBookingSlot.end_time, apiBookingSlot.location_name, apiBookingSlot.number_of_available_sessions, apiBookingSlot.sessions && apiBookingSlot.sessions.length ? apiBookingSlot.sessions.map((apiBookingSlotSession) => bookingCalendarSlotSessionFactory(apiBookingSlotSession)) : [], apiBookingSlot.start_time, apiBookingSlot.type);
|
|
1691
|
+
|
|
1692
|
+
const CLUB_BOOKING_CALENDARS_PATH = ':clubId/activities/calendars/';
|
|
1693
|
+
const CLUB_BOOKING_CALENDAR_PATH = ':clubId/activities/calendars/:id/';
|
|
1694
|
+
const CLUB_BOOKING_CALENDAR_SLOTS_PATH = ':clubId/activities/slots/';
|
|
1695
|
+
const CLUB_BOOKING_CALENDAR_SLOT_PATH = ':clubId/activities/slots/:id/';
|
|
1696
|
+
const CLUB_BOOKING_CALENDAR_SLOT_SESSIONS_PATH = ':clubId/activities/sessions/';
|
|
1697
|
+
const CLUB_BOOKING_CALENDAR_SLOT_SESSION_PATH = ':clubId/activities/sessions/:id/';
|
|
1698
|
+
class BookingCalendarService {
|
|
1699
|
+
constructor(apiService) {
|
|
1700
|
+
this.apiService = apiService;
|
|
1701
|
+
}
|
|
1702
|
+
// region Booking calendar
|
|
1703
|
+
createClubBookingCalendar(clubId, calendar) {
|
|
1704
|
+
delete calendar.id;
|
|
1705
|
+
return this.apiService
|
|
1706
|
+
.postResource(bookingCalendarFactory, Role.ClubAdmin, CLUB_BOOKING_CALENDARS_PATH, {
|
|
1707
|
+
clubId,
|
|
1708
|
+
}, calendar);
|
|
1709
|
+
}
|
|
1710
|
+
getClubBookingCalendars(clubId, name = null) {
|
|
1711
|
+
const params = { limit: 'null' };
|
|
1712
|
+
if (name) {
|
|
1713
|
+
params['name'] = name;
|
|
1714
|
+
}
|
|
1715
|
+
return this.apiService
|
|
1716
|
+
.getCollection(bookingCalendarFactory, Role.ClubAdmin, CLUB_BOOKING_CALENDARS_PATH, { clubId }, {
|
|
1717
|
+
params
|
|
1718
|
+
});
|
|
1719
|
+
}
|
|
1720
|
+
getClubBookingCalendar(clubId, id) {
|
|
1721
|
+
return this.apiService
|
|
1722
|
+
.getResource(bookingCalendarFactory, Role.ClubAdmin, CLUB_BOOKING_CALENDAR_PATH, { clubId, id });
|
|
1723
|
+
}
|
|
1724
|
+
updateClubBookingCalendar(clubId, calendar) {
|
|
1725
|
+
return this.apiService
|
|
1726
|
+
.updateResource(bookingCalendarFactory, Role.ClubAdmin, CLUB_BOOKING_CALENDAR_PATH, {
|
|
1727
|
+
clubId,
|
|
1728
|
+
id: calendar.id
|
|
1729
|
+
}, calendar);
|
|
1730
|
+
}
|
|
1731
|
+
deleteClubBookingCalendar(clubId, id) {
|
|
1732
|
+
return this.apiService
|
|
1733
|
+
.deleteResource(Role.ClubAdmin, CLUB_BOOKING_CALENDAR_PATH, {
|
|
1734
|
+
clubId,
|
|
1735
|
+
id
|
|
1736
|
+
});
|
|
1737
|
+
}
|
|
1738
|
+
// endregion
|
|
1739
|
+
// region Booking calendar slot
|
|
1740
|
+
createClubBookingCalendarSlot(clubId, slot) {
|
|
1741
|
+
delete slot.id;
|
|
1742
|
+
return this.apiService
|
|
1743
|
+
.postResource(bookingCalendarSlotFactory, Role.ClubAdmin, CLUB_BOOKING_CALENDAR_SLOTS_PATH, {
|
|
1744
|
+
clubId,
|
|
1745
|
+
}, slot);
|
|
1746
|
+
}
|
|
1747
|
+
getClubBookingCalendarSlots(clubId, startDate = null, endDate = null) {
|
|
1748
|
+
const params = { limit: 'null' };
|
|
1749
|
+
if (startDate) {
|
|
1750
|
+
params['day__gte'] = startDate;
|
|
1751
|
+
}
|
|
1752
|
+
if (endDate) {
|
|
1753
|
+
params['day__lte'] = endDate;
|
|
1754
|
+
}
|
|
1755
|
+
return this.apiService
|
|
1756
|
+
.getCollection(bookingCalendarSlotFactory, Role.ClubAdmin, CLUB_BOOKING_CALENDAR_SLOTS_PATH, { clubId }, {
|
|
1757
|
+
params
|
|
1758
|
+
});
|
|
1759
|
+
}
|
|
1760
|
+
getClubBookingCalendarSlot(clubId, id) {
|
|
1761
|
+
return this.apiService
|
|
1762
|
+
.getResource(bookingCalendarSlotFactory, Role.ClubAdmin, CLUB_BOOKING_CALENDAR_SLOT_PATH, { clubId, id });
|
|
1763
|
+
}
|
|
1764
|
+
updateClubBookingCalendarSlot(clubId, slot) {
|
|
1765
|
+
return this.apiService
|
|
1766
|
+
.updateResource(bookingCalendarSlotFactory, Role.ClubAdmin, CLUB_BOOKING_CALENDAR_SLOT_PATH, {
|
|
1767
|
+
clubId,
|
|
1768
|
+
id: slot.id
|
|
1769
|
+
}, slot);
|
|
1770
|
+
}
|
|
1771
|
+
deleteClubBookingCalendarSlot(clubId, id) {
|
|
1772
|
+
return this.apiService
|
|
1773
|
+
.deleteResource(Role.ClubAdmin, CLUB_BOOKING_CALENDAR_SLOT_PATH, {
|
|
1774
|
+
clubId,
|
|
1775
|
+
id
|
|
1776
|
+
});
|
|
1777
|
+
}
|
|
1778
|
+
// endregion
|
|
1779
|
+
// region Booking calendar slot session
|
|
1780
|
+
createClubBookingCalendarSlotSession(clubId, session) {
|
|
1781
|
+
delete session.id;
|
|
1782
|
+
return this.apiService
|
|
1783
|
+
.postResource(bookingCalendarSlotSessionFactory, Role.ClubAdmin, CLUB_BOOKING_CALENDAR_SLOT_SESSIONS_PATH, {
|
|
1784
|
+
clubId,
|
|
1785
|
+
}, session);
|
|
1786
|
+
}
|
|
1787
|
+
getClubBookingCalendarSlotSessions(clubId, startDate = null, endDate = null) {
|
|
1788
|
+
const params = { limit: 'null' };
|
|
1789
|
+
if (startDate) {
|
|
1790
|
+
params['day__gte'] = startDate;
|
|
1791
|
+
}
|
|
1792
|
+
if (endDate) {
|
|
1793
|
+
params['day__lte'] = endDate;
|
|
1794
|
+
}
|
|
1795
|
+
return this.apiService
|
|
1796
|
+
.getCollection(bookingCalendarSlotSessionFactory, Role.ClubAdmin, CLUB_BOOKING_CALENDAR_SLOT_SESSIONS_PATH, { clubId }, {
|
|
1797
|
+
params
|
|
1798
|
+
});
|
|
1799
|
+
}
|
|
1800
|
+
getClubBookingCalendarSlotSession(clubId, id) {
|
|
1801
|
+
return this.apiService
|
|
1802
|
+
.getResource(bookingCalendarSlotSessionFactory, Role.ClubAdmin, CLUB_BOOKING_CALENDAR_SLOT_SESSION_PATH, { clubId, id });
|
|
1803
|
+
}
|
|
1804
|
+
updateClubBookingCalendarSlotSession(clubId, session) {
|
|
1805
|
+
return this.apiService
|
|
1806
|
+
.updateResource(bookingCalendarSlotSessionFactory, Role.ClubAdmin, CLUB_BOOKING_CALENDAR_SLOT_SESSION_PATH, {
|
|
1807
|
+
clubId,
|
|
1808
|
+
id: session.id
|
|
1809
|
+
}, session);
|
|
1810
|
+
}
|
|
1811
|
+
deleteClubBookingCalendarSlotSession(clubId, id) {
|
|
1812
|
+
return this.apiService
|
|
1813
|
+
.deleteResource(Role.ClubAdmin, CLUB_BOOKING_CALENDAR_SLOT_SESSION_PATH, {
|
|
1814
|
+
clubId,
|
|
1815
|
+
id
|
|
1816
|
+
});
|
|
1817
|
+
}
|
|
1818
|
+
}
|
|
1819
|
+
BookingCalendarService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.11", ngImport: i0, type: BookingCalendarService, deps: [{ token: ApiService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1820
|
+
BookingCalendarService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.11", ngImport: i0, type: BookingCalendarService, providedIn: 'root' });
|
|
1821
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.11", ngImport: i0, type: BookingCalendarService, decorators: [{
|
|
1822
|
+
type: Injectable,
|
|
1823
|
+
args: [{
|
|
1824
|
+
providedIn: 'root'
|
|
1825
|
+
}]
|
|
1826
|
+
}], ctorParameters: function () { return [{ type: ApiService }]; } });
|
|
1827
|
+
|
|
1594
1828
|
const MEMBER_CLUB_INFO = ':memberId/club-info/';
|
|
1595
1829
|
const TEAM_CLUB_INFO = ':teamId/club-info/';
|
|
1596
1830
|
class ClubService {
|
|
@@ -2630,5 +2864,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.11", ngImpo
|
|
|
2630
2864
|
* Generated bundle index. Do not edit.
|
|
2631
2865
|
*/
|
|
2632
2866
|
|
|
2633
|
-
export { APP, Activity, ActivityExtraMember, ActivityInvite, ActivityLocation, ActivityService, ActivitySettings, ActivityType, Auth, AuthMember, AuthSection, AuthService, AuthTeam, AuthTeamSection, AuthenticatedGuard, Authentication, AuthenticationInterceptor, AuthenticationService, Calendar, CalendarEvent, Card, CardDeal, CardLogo, CardLogoUrls, CardMemberTicket, CardTheme, CardTicket, CardTicketLocation, Club, ClubImage, ClubSection, ClubService, ClubTeam, Collection, ConstantService, Contact, CreditCard, DataAccessModule, Directory, Email, EmailRecipient, EmailService, Event, ExternalLink, ExternalLinkService, FileObject, FileService, GeneralImage, Giro, HandleGrantTokenGuard, HomeTeam, ImageUrls, InvoiceService, Member, MemberActivityInvite, MemberAttribute, MemberCard, MemberCardService, MemberContact, MemberFee, MemberFunction, MemberInvoice, MemberInvoiceRow, MemberPublicForm, MemberPublicFormService, MemberService, MemberTeam, MemberTeamThrough, MemberValidationSettings, News, NewsService, Partner, PaymentAttempt, PaymentAttemptService, Role, SearchClub, SearchMember, SearchMemberCard, SearchMemberInvoice, SearchMemberTeam, SearchTeam, Section, SectionService, Swish, SwishQrCode, TeamService, Token, TokenService, USER_NOTIFICATIONS_PATH, UnpaidMemberInvoice, User, UserNotification, UserNotificationService, UserService, Zimpler };
|
|
2867
|
+
export { APP, Activity, ActivityExtraMember, ActivityInvite, ActivityLocation, ActivityService, ActivitySettings, ActivityType, Auth, AuthMember, AuthSection, AuthService, AuthTeam, AuthTeamSection, AuthenticatedGuard, Authentication, AuthenticationInterceptor, AuthenticationService, BookingCalendar, BookingCalendarService, BookingCalendarSlot, BookingCalendarSlotSession, Calendar, CalendarEvent, Card, CardDeal, CardLogo, CardLogoUrls, CardMemberTicket, CardTheme, CardTicket, CardTicketLocation, Club, ClubImage, ClubSection, ClubService, ClubTeam, Collection, ConstantService, Contact, CreditCard, DataAccessModule, Directory, Email, EmailRecipient, EmailService, Event, ExternalLink, ExternalLinkService, FileObject, FileService, GeneralImage, Giro, HandleGrantTokenGuard, HomeTeam, ImageUrls, InvoiceService, Member, MemberActivityInvite, MemberAttribute, MemberCard, MemberCardService, MemberContact, MemberFee, MemberFunction, MemberInvoice, MemberInvoiceRow, MemberPublicForm, MemberPublicFormService, MemberService, MemberTeam, MemberTeamThrough, MemberValidationSettings, News, NewsService, Partner, PaymentAttempt, PaymentAttemptService, Role, SearchClub, SearchMember, SearchMemberCard, SearchMemberInvoice, SearchMemberTeam, SearchTeam, Section, SectionService, Swish, SwishQrCode, TeamService, Token, TokenService, USER_NOTIFICATIONS_PATH, UnpaidMemberInvoice, User, UserNotification, UserNotificationService, UserService, Zimpler };
|
|
2634
2868
|
//# sourceMappingURL=myclub_se-data-access.mjs.map
|