@myclub_se/data-access 2.5.13 → 2.5.14
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-activity-location-part.mjs +2 -0
- package/esm2020/lib/api-models/api-activity-location-tag.mjs +2 -0
- package/esm2020/lib/api-models/api-booking-calendar-application-time.mjs +1 -1
- package/esm2020/lib/api-models/api-booking-calendar-slot-session.mjs +1 -1
- package/esm2020/lib/api-models/api-booking-calendar-slot.mjs +1 -1
- package/esm2020/lib/api-models/index.mjs +3 -1
- package/esm2020/lib/models/activity-location-part.mjs +7 -0
- package/esm2020/lib/models/activity-location-tag.mjs +9 -0
- package/esm2020/lib/models/booking-calendar-application-time.mjs +6 -2
- package/esm2020/lib/models/booking-calendar-slot-session.mjs +6 -2
- package/esm2020/lib/models/booking-calendar-slot.mjs +3 -2
- package/esm2020/lib/models/index.mjs +3 -1
- package/esm2020/lib/services/activity.service.mjs +35 -2
- package/esm2020/lib/services/booking-calendar.service.mjs +40 -16
- package/esm2020/lib/services/factories/activity-location-group-factory.mjs +2 -2
- package/esm2020/lib/services/factories/activity-location-part-factory.mjs +5 -0
- package/esm2020/lib/services/factories/activity-location-tag-factory.mjs +5 -0
- package/esm2020/lib/services/factories/booking-calendar-application-time-factory.mjs +2 -2
- package/esm2020/lib/services/factories/booking-calendar-slot-factory.mjs +2 -2
- package/esm2020/lib/services/factories/booking-calendar-slot-session-factory.mjs +2 -2
- package/esm2020/lib/services/factories/index.mjs +2 -1
- package/fesm2015/myclub_se-data-access.mjs +111 -22
- package/fesm2015/myclub_se-data-access.mjs.map +1 -1
- package/fesm2020/myclub_se-data-access.mjs +111 -22
- package/fesm2020/myclub_se-data-access.mjs.map +1 -1
- package/lib/api-models/api-activity-location-part.d.ts +4 -0
- package/lib/api-models/api-activity-location-tag.d.ts +6 -0
- package/lib/api-models/api-booking-calendar-application-time.d.ts +3 -0
- package/lib/api-models/api-booking-calendar-slot-session.d.ts +3 -0
- package/lib/api-models/api-booking-calendar-slot.d.ts +1 -0
- package/lib/api-models/index.d.ts +2 -0
- package/lib/models/activity-location-part.d.ts +5 -0
- package/lib/models/activity-location-tag.d.ts +7 -0
- package/lib/models/booking-calendar-application-time.d.ts +5 -1
- package/lib/models/booking-calendar-slot-session.d.ts +5 -1
- package/lib/models/booking-calendar-slot.d.ts +2 -1
- package/lib/models/index.d.ts +2 -0
- package/lib/services/activity.service.d.ts +10 -4
- package/lib/services/booking-calendar.service.d.ts +9 -9
- package/lib/services/factories/activity-location-group-factory.d.ts +2 -2
- package/lib/services/factories/activity-location-part-factory.d.ts +3 -0
- package/lib/services/factories/activity-location-tag-factory.d.ts +3 -0
- package/lib/services/factories/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -150,6 +150,22 @@ class ActivityLocationGroup {
|
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
+
class ActivityLocationTag {
|
|
154
|
+
constructor(id, club_id, section_id, name) {
|
|
155
|
+
this.id = id;
|
|
156
|
+
this.club_id = club_id;
|
|
157
|
+
this.section_id = section_id;
|
|
158
|
+
this.name = name;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
class ActivityLocationPart {
|
|
163
|
+
constructor(id, name) {
|
|
164
|
+
this.id = id;
|
|
165
|
+
this.name = name;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
|
|
153
169
|
class ActivitySettings {
|
|
154
170
|
constructor(dayOptions, hourOptions, inviteGroupOptions, inviteSettingsOptions, maxAttendanceOptions, meetUpTimeOptions, remindReceiverOptions, repeatOptions, repeatTypeOptions) {
|
|
155
171
|
this.dayOptions = dayOptions;
|
|
@@ -260,7 +276,7 @@ class BookingCalendar {
|
|
|
260
276
|
}
|
|
261
277
|
|
|
262
278
|
class BookingCalendarApplicationTime {
|
|
263
|
-
constructor(id, section_id, slot_id, team_id, end_time, section_name, start_time, team_name, location_zones_taken, applicant_comment, reviewer_comment, status) {
|
|
279
|
+
constructor(id, section_id, slot_id, team_id, end_time, section_name, start_time, team_name, location_zones_taken, applicant_comment, reviewer_comment, status, location_part_id, location_part_name, location_id) {
|
|
264
280
|
this.id = id;
|
|
265
281
|
this.section_id = section_id;
|
|
266
282
|
this.slot_id = slot_id;
|
|
@@ -273,6 +289,9 @@ class BookingCalendarApplicationTime {
|
|
|
273
289
|
this.applicant_comment = applicant_comment;
|
|
274
290
|
this.reviewer_comment = reviewer_comment;
|
|
275
291
|
this.status = status;
|
|
292
|
+
this.location_part_id = location_part_id;
|
|
293
|
+
this.location_part_name = location_part_name;
|
|
294
|
+
this.location_id = location_id;
|
|
276
295
|
}
|
|
277
296
|
static asFormGroup(session) {
|
|
278
297
|
return new FormGroup({
|
|
@@ -288,14 +307,16 @@ class BookingCalendarApplicationTime {
|
|
|
288
307
|
applicant_comment: new FormControl((session === null || session === void 0 ? void 0 : session.applicant_comment) || null),
|
|
289
308
|
reviewer_comment: new FormControl((session === null || session === void 0 ? void 0 : session.reviewer_comment) || null),
|
|
290
309
|
status: new FormControl((session === null || session === void 0 ? void 0 : session.status) || ''),
|
|
310
|
+
location_part_id: new FormControl((session === null || session === void 0 ? void 0 : session.location_part_id) || ''),
|
|
291
311
|
});
|
|
292
312
|
}
|
|
293
313
|
}
|
|
294
314
|
|
|
295
315
|
class BookingCalendarSlot {
|
|
296
|
-
constructor(id, calendar_id, location_id, color, day, end_time, group_id, location_name, number_of_available_sessions, sessions, open_sessions, start_time, type, repeat, update_repeating, reserved_time_enabled, repeat_num, repeat_to_day, repeat_type, reserved_time, reserved_time_position, application_times) {
|
|
316
|
+
constructor(id, calendar_id, calendar_status, location_id, color, day, end_time, group_id, location_name, number_of_available_sessions, sessions, open_sessions, start_time, type, repeat, update_repeating, reserved_time_enabled, repeat_num, repeat_to_day, repeat_type, reserved_time, reserved_time_position, application_times) {
|
|
297
317
|
this.id = id;
|
|
298
318
|
this.calendar_id = calendar_id;
|
|
319
|
+
this.calendar_status = calendar_status;
|
|
299
320
|
this.location_id = location_id;
|
|
300
321
|
this.color = color;
|
|
301
322
|
this.day = day;
|
|
@@ -341,7 +362,7 @@ class BookingCalendarSlot {
|
|
|
341
362
|
}
|
|
342
363
|
|
|
343
364
|
class BookingCalendarSlotSession {
|
|
344
|
-
constructor(id, section_id, slot_id, team_id, end_time, section_name, start_time, team_name, is_overbooked, type, location_zones_taken, slot_index, comment) {
|
|
365
|
+
constructor(id, section_id, slot_id, team_id, end_time, section_name, start_time, team_name, is_overbooked, type, location_zones_taken, slot_index, comment, location_part_id, location_part_name, location_id) {
|
|
345
366
|
this.id = id;
|
|
346
367
|
this.section_id = section_id;
|
|
347
368
|
this.slot_id = slot_id;
|
|
@@ -355,6 +376,9 @@ class BookingCalendarSlotSession {
|
|
|
355
376
|
this.location_zones_taken = location_zones_taken;
|
|
356
377
|
this.slot_index = slot_index;
|
|
357
378
|
this.comment = comment;
|
|
379
|
+
this.location_part_id = location_part_id;
|
|
380
|
+
this.location_part_name = location_part_name;
|
|
381
|
+
this.location_id = location_id;
|
|
358
382
|
}
|
|
359
383
|
static asFormGroup(session) {
|
|
360
384
|
return new FormGroup({
|
|
@@ -370,6 +394,7 @@ class BookingCalendarSlotSession {
|
|
|
370
394
|
type: new FormControl((session === null || session === void 0 ? void 0 : session.type) || ''),
|
|
371
395
|
location_zones_taken: new FormControl((session === null || session === void 0 ? void 0 : session.location_zones_taken) || 1, [Validators.min(1), Validators.required]),
|
|
372
396
|
comment: new FormControl((session === null || session === void 0 ? void 0 : session.comment) || ''),
|
|
397
|
+
location_part_id: new FormControl((session === null || session === void 0 ? void 0 : session.location_part_id) || ''),
|
|
373
398
|
});
|
|
374
399
|
}
|
|
375
400
|
}
|
|
@@ -1468,6 +1493,10 @@ const activityLocationGroupFactory = (apiActivityLocationGroup) => {
|
|
|
1468
1493
|
return new ActivityLocationGroup(apiActivityLocationGroup.id, apiActivityLocationGroup.club_id, apiActivityLocationGroup.section_id, apiActivityLocationGroup.active, apiActivityLocationGroup.name, apiActivityLocationGroup.locations && apiActivityLocationGroup.locations.length ? apiActivityLocationGroup.locations.map((apiActivityLocation) => activityLocationFactory(apiActivityLocation)) : []);
|
|
1469
1494
|
};
|
|
1470
1495
|
|
|
1496
|
+
const activityLocationTagFactory = (apiActivityLocationTag) => {
|
|
1497
|
+
return new ActivityLocationTag(apiActivityLocationTag.id, apiActivityLocationTag.club_id, apiActivityLocationTag.section_id, apiActivityLocationTag.name);
|
|
1498
|
+
};
|
|
1499
|
+
|
|
1471
1500
|
const activitySettingsFactory = (apiActivitySettings) => new ActivitySettings(apiActivitySettings.day_options, apiActivitySettings.hour_options, apiActivitySettings.invite_group_options, apiActivitySettings.invite_settings_options, apiActivitySettings.max_attendance_options, apiActivitySettings.meet_up_time_options, apiActivitySettings.remind_receiver_options, apiActivitySettings.repeat_options, apiActivitySettings.repeat_type_options);
|
|
1472
1501
|
|
|
1473
1502
|
const activityTypeFactory = (apiActivityType) => new ActivityType(apiActivityType.id, apiActivityType.club_id, apiActivityType.section_id, apiActivityType.active, apiActivityType.base_type, apiActivityType.name);
|
|
@@ -1484,11 +1513,11 @@ const authFactory = (apiAuth) => new Auth(apiAuth.id, apiAuth.name, apiAuth.club
|
|
|
1484
1513
|
|
|
1485
1514
|
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, apiBookingCalendar.status);
|
|
1486
1515
|
|
|
1487
|
-
const bookingCalendarApplicationTimeFactory = (apiBookingApplicationTime) => new BookingCalendarApplicationTime(apiBookingApplicationTime.id, apiBookingApplicationTime.section_id, apiBookingApplicationTime.slot_id, apiBookingApplicationTime.team_id, apiBookingApplicationTime.end_time, apiBookingApplicationTime.section_name, apiBookingApplicationTime.start_time, apiBookingApplicationTime.team_name, apiBookingApplicationTime.location_zones_taken, apiBookingApplicationTime.applicant_comment, apiBookingApplicationTime.reviewer_comment, apiBookingApplicationTime.status);
|
|
1516
|
+
const bookingCalendarApplicationTimeFactory = (apiBookingApplicationTime) => new BookingCalendarApplicationTime(apiBookingApplicationTime.id, apiBookingApplicationTime.section_id, apiBookingApplicationTime.slot_id, apiBookingApplicationTime.team_id, apiBookingApplicationTime.end_time, apiBookingApplicationTime.section_name, apiBookingApplicationTime.start_time, apiBookingApplicationTime.team_name, apiBookingApplicationTime.location_zones_taken, apiBookingApplicationTime.applicant_comment, apiBookingApplicationTime.reviewer_comment, apiBookingApplicationTime.status, apiBookingApplicationTime.location_part_id, apiBookingApplicationTime.location_part_name, apiBookingApplicationTime.location_id);
|
|
1488
1517
|
|
|
1489
|
-
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, apiBookingSlotSession.is_overbooked, apiBookingSlotSession.type, apiBookingSlotSession.location_zones_taken, apiBookingSlotSession.slot_index, apiBookingSlotSession.comment);
|
|
1518
|
+
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, apiBookingSlotSession.is_overbooked, apiBookingSlotSession.type, apiBookingSlotSession.location_zones_taken, apiBookingSlotSession.slot_index, apiBookingSlotSession.comment, apiBookingSlotSession.location_part_id, apiBookingSlotSession.location_part_name, apiBookingSlotSession.location_id);
|
|
1490
1519
|
|
|
1491
|
-
const bookingCalendarSlotFactory = (apiBookingSlot) => new BookingCalendarSlot(apiBookingSlot.id, apiBookingSlot.calendar_id, apiBookingSlot.location_id, apiBookingSlot.color, apiBookingSlot.day, apiBookingSlot.end_time, apiBookingSlot.group_id, apiBookingSlot.location_name, apiBookingSlot.number_of_available_sessions, apiBookingSlot.sessions && apiBookingSlot.sessions.length ? apiBookingSlot.sessions.map((apiBookingSlotSession) => bookingCalendarSlotSessionFactory(apiBookingSlotSession)) : [], apiBookingSlot.open_sessions && apiBookingSlot.open_sessions.length ? apiBookingSlot.open_sessions.map((apiBookingSlotSession) => bookingCalendarSlotSessionFactory(apiBookingSlotSession)) : [], apiBookingSlot.start_time, apiBookingSlot.type, 'none', false, false, 6, format(new Date(), 'yyyy-MM-dd'), 'repeat_until', apiBookingSlot.reserved_time, apiBookingSlot.reserved_time_position, apiBookingSlot.application_times && apiBookingSlot.application_times.length ? apiBookingSlot.application_times.map((apiBookingApplicationTime) => bookingCalendarApplicationTimeFactory(apiBookingApplicationTime)) : []);
|
|
1520
|
+
const bookingCalendarSlotFactory = (apiBookingSlot) => new BookingCalendarSlot(apiBookingSlot.id, apiBookingSlot.calendar_id, apiBookingSlot.calendar_status, apiBookingSlot.location_id, apiBookingSlot.color, apiBookingSlot.day, apiBookingSlot.end_time, apiBookingSlot.group_id, apiBookingSlot.location_name, apiBookingSlot.number_of_available_sessions, apiBookingSlot.sessions && apiBookingSlot.sessions.length ? apiBookingSlot.sessions.map((apiBookingSlotSession) => bookingCalendarSlotSessionFactory(apiBookingSlotSession)) : [], apiBookingSlot.open_sessions && apiBookingSlot.open_sessions.length ? apiBookingSlot.open_sessions.map((apiBookingSlotSession) => bookingCalendarSlotSessionFactory(apiBookingSlotSession)) : [], apiBookingSlot.start_time, apiBookingSlot.type, 'none', false, false, 6, format(new Date(), 'yyyy-MM-dd'), 'repeat_until', apiBookingSlot.reserved_time, apiBookingSlot.reserved_time_position, apiBookingSlot.application_times && apiBookingSlot.application_times.length ? apiBookingSlot.application_times.map((apiBookingApplicationTime) => bookingCalendarApplicationTimeFactory(apiBookingApplicationTime)) : []);
|
|
1492
1521
|
|
|
1493
1522
|
const bookingSettingsFactory = (apiBookingSettings) => new BookingSettings(apiBookingSettings.id, apiBookingSettings.calendar_step, apiBookingSettings.calendar_min_time, apiBookingSettings.calendar_max_time, apiBookingSettings.should_split_booking_into_zones);
|
|
1494
1523
|
|
|
@@ -1672,6 +1701,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.11", ngImpo
|
|
|
1672
1701
|
}]
|
|
1673
1702
|
}], ctorParameters: function () { return [{ type: ApiService }]; } });
|
|
1674
1703
|
|
|
1704
|
+
const activityLocationPartFactory = (apiActivityLocationPart) => {
|
|
1705
|
+
return new ActivityLocationPart(apiActivityLocationPart.id, apiActivityLocationPart.name);
|
|
1706
|
+
};
|
|
1707
|
+
|
|
1675
1708
|
const MEMBER_ACTIVITY_INVITE_PATH = ':memberId/activities/:activityInviteId/';
|
|
1676
1709
|
const MEMBER_ACTIVITY_INVITES_PATH = ':memberId/activities/';
|
|
1677
1710
|
const MEMBER_CALENDAR_PATH = ':memberId/activities/calendar/';
|
|
@@ -1689,8 +1722,12 @@ const TEAM_ACTIVITY_TYPES_PATH = ':teamId/activities/types/';
|
|
|
1689
1722
|
const TEAM_CALENDAR_PATH = ':teamId/activities/calendar/';
|
|
1690
1723
|
const CLUB_ACTIVITY_LOCATIONS_PATH = ':clubId/activities/locations/';
|
|
1691
1724
|
const CLUB_ACTIVITY_LOCATION_GROUPS_PATH = ':clubId/activities/locations/groups/';
|
|
1725
|
+
const CLUB_ACTIVITY_LOCATION_TAGS_PATH = ':clubId/activities/locations/tags/';
|
|
1726
|
+
const CLUB_ACTIVITY_LOCATION_PARTS_PATH = ':clubId/activities/locations/:locationId/parts/';
|
|
1692
1727
|
const TEAM_ACTIVITY_LOCATIONS_PATH = ':teamId/activities/locations/';
|
|
1693
1728
|
const TEAM_ACTIVITY_LOCATION_GROUPS_PATH = ':teamId/activities/locations/groups/';
|
|
1729
|
+
const TEAM_ACTIVITY_LOCATION_TAGS_PATH = ':teamId/activities/locations/tags/';
|
|
1730
|
+
const TEAM_ACTIVITY_LOCATION_PARTS_PATH = ':teamId/activities/locations/:locationId/parts/';
|
|
1694
1731
|
class ActivityService {
|
|
1695
1732
|
constructor(apiService) {
|
|
1696
1733
|
this.apiService = apiService;
|
|
@@ -1797,6 +1834,34 @@ class ActivityService {
|
|
|
1797
1834
|
return this.apiService
|
|
1798
1835
|
.getCollection(activityLocationGroupFactory, Role.TeamAdmin, TEAM_ACTIVITY_LOCATION_GROUPS_PATH, { teamId }, { params: { limit: 'null' } });
|
|
1799
1836
|
}
|
|
1837
|
+
getActivityLocationTags(role, clubOrTeamId) {
|
|
1838
|
+
if (role == Role.ClubAdmin) {
|
|
1839
|
+
return this.getClubActivityLocationTags(clubOrTeamId);
|
|
1840
|
+
}
|
|
1841
|
+
return this.getTeamActivityLocationTags(clubOrTeamId);
|
|
1842
|
+
}
|
|
1843
|
+
getClubActivityLocationTags(clubId) {
|
|
1844
|
+
return this.apiService
|
|
1845
|
+
.getCollection(activityLocationTagFactory, Role.ClubAdmin, CLUB_ACTIVITY_LOCATION_TAGS_PATH, { clubId }, { params: { limit: 'null' } });
|
|
1846
|
+
}
|
|
1847
|
+
getTeamActivityLocationTags(teamId) {
|
|
1848
|
+
return this.apiService
|
|
1849
|
+
.getCollection(activityLocationTagFactory, Role.TeamAdmin, TEAM_ACTIVITY_LOCATION_TAGS_PATH, { teamId }, { params: { limit: 'null' } });
|
|
1850
|
+
}
|
|
1851
|
+
getActivityLocationParts(role, clubOrTeamId, locationId) {
|
|
1852
|
+
if (role == Role.ClubAdmin) {
|
|
1853
|
+
return this.getClubActivityLocationParts(clubOrTeamId, locationId);
|
|
1854
|
+
}
|
|
1855
|
+
return this.getTeamActivityLocationParts(clubOrTeamId, locationId);
|
|
1856
|
+
}
|
|
1857
|
+
getClubActivityLocationParts(clubId, locationId) {
|
|
1858
|
+
return this.apiService
|
|
1859
|
+
.getCollection(activityLocationPartFactory, Role.ClubAdmin, CLUB_ACTIVITY_LOCATION_PARTS_PATH, { clubId, locationId }, { params: { limit: 'null' } });
|
|
1860
|
+
}
|
|
1861
|
+
getTeamActivityLocationParts(teamId, locationId) {
|
|
1862
|
+
return this.apiService
|
|
1863
|
+
.getCollection(activityLocationPartFactory, Role.TeamAdmin, TEAM_ACTIVITY_LOCATION_PARTS_PATH, { teamId, locationId }, { params: { limit: 'null' } });
|
|
1864
|
+
}
|
|
1800
1865
|
getTeamActivityNew(teamId) {
|
|
1801
1866
|
return this.apiService
|
|
1802
1867
|
.getResource(activityFactory, Role.TeamAdmin, TEAM_ACTIVITY_NEW_PATH, { teamId });
|
|
@@ -2005,13 +2070,13 @@ class BookingCalendarService {
|
|
|
2005
2070
|
clubId,
|
|
2006
2071
|
}, slot);
|
|
2007
2072
|
}
|
|
2008
|
-
getBookingCalendarSlots(role, clubOrTeamId, startDate = null, endDate = null, calendarIds = null, locationIds = null, teamIds = null, hasOpenSessions = null) {
|
|
2073
|
+
getBookingCalendarSlots(role, clubOrTeamId, startDate = null, endDate = null, calendarIds = null, locationIds = null, tagIds = null, teamIds = null, hasOpenSessions = null) {
|
|
2009
2074
|
if (role == Role.ClubAdmin) {
|
|
2010
|
-
return this.getClubBookingCalendarSlots(clubOrTeamId, startDate, endDate, calendarIds, locationIds, teamIds, hasOpenSessions);
|
|
2075
|
+
return this.getClubBookingCalendarSlots(clubOrTeamId, startDate, endDate, calendarIds, locationIds, tagIds, teamIds, hasOpenSessions);
|
|
2011
2076
|
}
|
|
2012
|
-
return this.getTeamBookingCalendarSlots(clubOrTeamId, startDate, endDate, calendarIds, locationIds, teamIds, hasOpenSessions);
|
|
2077
|
+
return this.getTeamBookingCalendarSlots(clubOrTeamId, startDate, endDate, calendarIds, locationIds, tagIds, teamIds, hasOpenSessions);
|
|
2013
2078
|
}
|
|
2014
|
-
getClubBookingCalendarSlots(clubId, startDate = null, endDate = null, calendarIds = null, locationIds = null, teamIds = null, hasOpenSessions = null) {
|
|
2079
|
+
getClubBookingCalendarSlots(clubId, startDate = null, endDate = null, calendarIds = null, locationIds = null, tagIds = null, teamIds = null, hasOpenSessions = null) {
|
|
2015
2080
|
const params = { limit: 'null' };
|
|
2016
2081
|
if (startDate) {
|
|
2017
2082
|
params['day__gte'] = startDate;
|
|
@@ -2025,6 +2090,9 @@ class BookingCalendarService {
|
|
|
2025
2090
|
if (locationIds && locationIds.length) {
|
|
2026
2091
|
params['location_id'] = locationIds.join(',');
|
|
2027
2092
|
}
|
|
2093
|
+
if (tagIds && tagIds.length) {
|
|
2094
|
+
params['tag_id'] = tagIds.join(',');
|
|
2095
|
+
}
|
|
2028
2096
|
if (teamIds && teamIds.length) {
|
|
2029
2097
|
params['team_id'] = teamIds.join(',');
|
|
2030
2098
|
}
|
|
@@ -2036,7 +2104,7 @@ class BookingCalendarService {
|
|
|
2036
2104
|
params
|
|
2037
2105
|
});
|
|
2038
2106
|
}
|
|
2039
|
-
getTeamBookingCalendarSlots(teamId, startDate = null, endDate = null, calendarIds = null, locationIds = null, teamIds = null, hasOpenSessions = null) {
|
|
2107
|
+
getTeamBookingCalendarSlots(teamId, startDate = null, endDate = null, calendarIds = null, locationIds = null, tagIds = null, teamIds = null, hasOpenSessions = null) {
|
|
2040
2108
|
const params = { limit: 'null' };
|
|
2041
2109
|
if (startDate) {
|
|
2042
2110
|
params['day__gte'] = startDate;
|
|
@@ -2050,6 +2118,9 @@ class BookingCalendarService {
|
|
|
2050
2118
|
if (locationIds && locationIds.length) {
|
|
2051
2119
|
params['location_id'] = locationIds.join(',');
|
|
2052
2120
|
}
|
|
2121
|
+
if (tagIds && tagIds.length) {
|
|
2122
|
+
params['tag_id'] = tagIds.join(',');
|
|
2123
|
+
}
|
|
2053
2124
|
if (teamIds && teamIds.length) {
|
|
2054
2125
|
params['team_id'] = teamIds.join(',');
|
|
2055
2126
|
}
|
|
@@ -2061,13 +2132,13 @@ class BookingCalendarService {
|
|
|
2061
2132
|
params
|
|
2062
2133
|
});
|
|
2063
2134
|
}
|
|
2064
|
-
getBookingCalendarApplicationTimeSlots(role, clubOrTeamId, startDate = null, endDate = null, calendarIds = null, locationIds = null, teamIds = null, hasOpenSessions = null) {
|
|
2135
|
+
getBookingCalendarApplicationTimeSlots(role, clubOrTeamId, startDate = null, endDate = null, calendarIds = null, locationIds = null, tagIds = null, teamIds = null, hasOpenSessions = null) {
|
|
2065
2136
|
if (role == Role.ClubAdmin) {
|
|
2066
|
-
return this.getClubBookingCalendarApplicationTimeSlots(clubOrTeamId, startDate, endDate, calendarIds, locationIds, teamIds, hasOpenSessions);
|
|
2137
|
+
return this.getClubBookingCalendarApplicationTimeSlots(clubOrTeamId, startDate, endDate, calendarIds, locationIds, tagIds, teamIds, hasOpenSessions);
|
|
2067
2138
|
}
|
|
2068
|
-
return this.getTeamBookingCalendarApplicationTimeSlots(clubOrTeamId, startDate, endDate, calendarIds, locationIds, teamIds, hasOpenSessions);
|
|
2139
|
+
return this.getTeamBookingCalendarApplicationTimeSlots(clubOrTeamId, startDate, endDate, calendarIds, locationIds, tagIds, teamIds, hasOpenSessions);
|
|
2069
2140
|
}
|
|
2070
|
-
getClubBookingCalendarApplicationTimeSlots(clubId, startDate = null, endDate = null, calendarIds = null, locationIds = null, teamIds = null, hasOpenSessions = null) {
|
|
2141
|
+
getClubBookingCalendarApplicationTimeSlots(clubId, startDate = null, endDate = null, calendarIds = null, locationIds = null, tagIds = null, teamIds = null, hasOpenSessions = null) {
|
|
2071
2142
|
const params = { limit: 'null' };
|
|
2072
2143
|
if (startDate) {
|
|
2073
2144
|
params['day__gte'] = startDate;
|
|
@@ -2081,6 +2152,9 @@ class BookingCalendarService {
|
|
|
2081
2152
|
if (locationIds && locationIds.length) {
|
|
2082
2153
|
params['location_id'] = locationIds.join(',');
|
|
2083
2154
|
}
|
|
2155
|
+
if (tagIds && tagIds.length) {
|
|
2156
|
+
params['tag_id'] = tagIds.join(',');
|
|
2157
|
+
}
|
|
2084
2158
|
if (teamIds && teamIds.length) {
|
|
2085
2159
|
params['team_id'] = teamIds.join(',');
|
|
2086
2160
|
}
|
|
@@ -2092,7 +2166,7 @@ class BookingCalendarService {
|
|
|
2092
2166
|
params
|
|
2093
2167
|
});
|
|
2094
2168
|
}
|
|
2095
|
-
getTeamBookingCalendarApplicationTimeSlots(teamId, startDate = null, endDate = null, calendarIds = null, locationIds = null, teamIds = null, hasOpenSessions = null) {
|
|
2169
|
+
getTeamBookingCalendarApplicationTimeSlots(teamId, startDate = null, endDate = null, calendarIds = null, locationIds = null, tagIds = null, teamIds = null, hasOpenSessions = null) {
|
|
2096
2170
|
const params = { limit: 'null' };
|
|
2097
2171
|
if (startDate) {
|
|
2098
2172
|
params['day__gte'] = startDate;
|
|
@@ -2106,6 +2180,9 @@ class BookingCalendarService {
|
|
|
2106
2180
|
if (locationIds && locationIds.length) {
|
|
2107
2181
|
params['location_id'] = locationIds.join(',');
|
|
2108
2182
|
}
|
|
2183
|
+
if (tagIds && tagIds.length) {
|
|
2184
|
+
params['tag_id'] = tagIds.join(',');
|
|
2185
|
+
}
|
|
2109
2186
|
if (teamIds && teamIds.length) {
|
|
2110
2187
|
params['team_id'] = teamIds.join(',');
|
|
2111
2188
|
}
|
|
@@ -2117,7 +2194,7 @@ class BookingCalendarService {
|
|
|
2117
2194
|
params
|
|
2118
2195
|
});
|
|
2119
2196
|
}
|
|
2120
|
-
copyClubBookingCalendarSlots(clubId, weekRelativeIndexes, onlyCopySlots = false, startDate = null, endDate = null, calendarIds = null, locationIds = null, teamIds = null, hasOpenSessions = null) {
|
|
2197
|
+
copyClubBookingCalendarSlots(clubId, weekRelativeIndexes, onlyCopySlots = false, startDate = null, endDate = null, calendarIds = null, locationIds = null, tagIds = null, teamIds = null, hasOpenSessions = null) {
|
|
2121
2198
|
const params = { limit: 'null' };
|
|
2122
2199
|
if (startDate) {
|
|
2123
2200
|
params['day__gte'] = startDate;
|
|
@@ -2131,6 +2208,9 @@ class BookingCalendarService {
|
|
|
2131
2208
|
if (locationIds && locationIds.length) {
|
|
2132
2209
|
params['location_id'] = locationIds.join(',');
|
|
2133
2210
|
}
|
|
2211
|
+
if (tagIds && tagIds.length) {
|
|
2212
|
+
params['tag_id'] = tagIds.join(',');
|
|
2213
|
+
}
|
|
2134
2214
|
if (teamIds && teamIds.length) {
|
|
2135
2215
|
params['team_id'] = teamIds.join(',');
|
|
2136
2216
|
}
|
|
@@ -2145,7 +2225,7 @@ class BookingCalendarService {
|
|
|
2145
2225
|
params
|
|
2146
2226
|
});
|
|
2147
2227
|
}
|
|
2148
|
-
clearClubBookingCalendarSlots(clubId, currentWeekStartDate, weekRelativeIndexes, onlyDeleteSessions = false, startDate = null, endDate = null, calendarIds = null, locationIds = null, teamIds = null, hasOpenSessions = null) {
|
|
2228
|
+
clearClubBookingCalendarSlots(clubId, currentWeekStartDate, weekRelativeIndexes, onlyDeleteSessions = false, startDate = null, endDate = null, calendarIds = null, locationIds = null, tagIds = null, teamIds = null, hasOpenSessions = null) {
|
|
2149
2229
|
const params = { limit: 'null' };
|
|
2150
2230
|
if (startDate) {
|
|
2151
2231
|
params['day__gte'] = startDate;
|
|
@@ -2159,6 +2239,9 @@ class BookingCalendarService {
|
|
|
2159
2239
|
if (locationIds && locationIds.length) {
|
|
2160
2240
|
params['location_id'] = locationIds.join(',');
|
|
2161
2241
|
}
|
|
2242
|
+
if (tagIds && tagIds.length) {
|
|
2243
|
+
params['tag_id'] = tagIds.join(',');
|
|
2244
|
+
}
|
|
2162
2245
|
if (teamIds && teamIds.length) {
|
|
2163
2246
|
params['team_id'] = teamIds.join(',');
|
|
2164
2247
|
}
|
|
@@ -2175,13 +2258,13 @@ class BookingCalendarService {
|
|
|
2175
2258
|
params,
|
|
2176
2259
|
});
|
|
2177
2260
|
}
|
|
2178
|
-
syncBookingCalendarSlots(role, clubOrTeamId, currentWeekStartDate, weekRelativeIndexes, startDate = null, endDate = null, calendarIds = null, locationIds = null, teamIds = null) {
|
|
2261
|
+
syncBookingCalendarSlots(role, clubOrTeamId, currentWeekStartDate, weekRelativeIndexes, startDate = null, endDate = null, calendarIds = null, locationIds = null, tagIds = null, teamIds = null) {
|
|
2179
2262
|
if (role == Role.ClubAdmin) {
|
|
2180
2263
|
return this.syncClubBookingCalendarSlots(clubOrTeamId, currentWeekStartDate, weekRelativeIndexes, startDate, endDate, calendarIds, locationIds, teamIds);
|
|
2181
2264
|
}
|
|
2182
2265
|
return this.syncTeamBookingCalendarSlots(clubOrTeamId, currentWeekStartDate, weekRelativeIndexes, startDate, endDate, calendarIds, locationIds, teamIds);
|
|
2183
2266
|
}
|
|
2184
|
-
syncClubBookingCalendarSlots(clubId, currentWeekStartDate, weekRelativeIndexes, startDate = null, endDate = null, calendarIds = null, locationIds = null, teamIds = null) {
|
|
2267
|
+
syncClubBookingCalendarSlots(clubId, currentWeekStartDate, weekRelativeIndexes, startDate = null, endDate = null, calendarIds = null, locationIds = null, tagIds = null, teamIds = null) {
|
|
2185
2268
|
const params = { limit: 'null' };
|
|
2186
2269
|
if (startDate) {
|
|
2187
2270
|
params['day__gte'] = startDate;
|
|
@@ -2195,6 +2278,9 @@ class BookingCalendarService {
|
|
|
2195
2278
|
if (locationIds && locationIds.length) {
|
|
2196
2279
|
params['location_id'] = locationIds.join(',');
|
|
2197
2280
|
}
|
|
2281
|
+
if (tagIds && tagIds.length) {
|
|
2282
|
+
params['tag_id'] = tagIds.join(',');
|
|
2283
|
+
}
|
|
2198
2284
|
if (teamIds && teamIds.length) {
|
|
2199
2285
|
params['team_id'] = teamIds.join(',');
|
|
2200
2286
|
}
|
|
@@ -2204,7 +2290,7 @@ class BookingCalendarService {
|
|
|
2204
2290
|
week_relative_indexes: weekRelativeIndexes,
|
|
2205
2291
|
}, { params });
|
|
2206
2292
|
}
|
|
2207
|
-
syncTeamBookingCalendarSlots(teamId, currentWeekStartDate, weekRelativeIndexes, startDate = null, endDate = null, calendarIds = null, locationIds = null, teamIds = null) {
|
|
2293
|
+
syncTeamBookingCalendarSlots(teamId, currentWeekStartDate, weekRelativeIndexes, startDate = null, endDate = null, calendarIds = null, locationIds = null, tagIds = null, teamIds = null) {
|
|
2208
2294
|
const params = { limit: 'null' };
|
|
2209
2295
|
if (startDate) {
|
|
2210
2296
|
params['day__gte'] = startDate;
|
|
@@ -2218,6 +2304,9 @@ class BookingCalendarService {
|
|
|
2218
2304
|
if (locationIds && locationIds.length) {
|
|
2219
2305
|
params['location_id'] = locationIds.join(',');
|
|
2220
2306
|
}
|
|
2307
|
+
if (tagIds && tagIds.length) {
|
|
2308
|
+
params['tag_id'] = tagIds.join(',');
|
|
2309
|
+
}
|
|
2221
2310
|
if (teamIds && teamIds.length) {
|
|
2222
2311
|
params['team_id'] = teamIds.join(',');
|
|
2223
2312
|
}
|
|
@@ -3502,5 +3591,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.11", ngImpo
|
|
|
3502
3591
|
* Generated bundle index. Do not edit.
|
|
3503
3592
|
*/
|
|
3504
3593
|
|
|
3505
|
-
export { APP, Activity, ActivityExtraMember, ActivityInvite, ActivityLocation, ActivityLocationGroup, ActivityService, ActivitySettings, ActivityType, Auth, AuthMember, AuthSection, AuthService, AuthTeam, AuthTeamSection, AuthenticatedGuard, Authentication, AuthenticationInterceptor, AuthenticationService, BookingCalendar, BookingCalendarApplicationTime, BookingCalendarService, BookingCalendarSlot, BookingCalendarSlotSession, BookingSettings, Calendar, CalendarEvent, Card, CardDeal, CardLogo, CardLogoUrls, CardMemberTicket, CardTheme, CardTicket, CardTicketLocation, Club, ClubImage, ClubSection, ClubService, Collection, ConstantService, Contact, CreditCard, DataAccessModule, Directory, Email, EmailService, Event, ExternalLink, ExternalLinkService, FileObject, FileService, GeneralImage, Giro, GroupRole, HandleGrantTokenGuard, HomeTeam, ImageUrls, InvoiceService, MaintenanceModeService, Member, MemberActivityInvite, MemberAttribute, MemberCard, MemberCardService, MemberContact, MemberFee, MemberFunction, MemberInvoice, MemberInvoiceRow, MemberPublicForm, MemberPublicFormField, MemberPublicFormFieldOption, MemberPublicFormService, MemberService, MemberTeam, MemberTeamThrough, MemberType, MemberValidationSettings, News, NewsService, Partner, PaymentAttempt, PaymentAttemptService, Role, SearchClub, SearchMember, SearchMemberCard, SearchMemberInvoice, SearchTeam, Section, SectionService, Swish, SwishQrCode, TeamService, Token, TokenService, USER_NOTIFICATIONS_PATH, UnpaidMemberInvoice, User, UserNotification, UserNotificationService, UserService, Zimpler };
|
|
3594
|
+
export { APP, Activity, ActivityExtraMember, ActivityInvite, ActivityLocation, ActivityLocationGroup, ActivityLocationPart, ActivityLocationTag, ActivityService, ActivitySettings, ActivityType, Auth, AuthMember, AuthSection, AuthService, AuthTeam, AuthTeamSection, AuthenticatedGuard, Authentication, AuthenticationInterceptor, AuthenticationService, BookingCalendar, BookingCalendarApplicationTime, BookingCalendarService, BookingCalendarSlot, BookingCalendarSlotSession, BookingSettings, Calendar, CalendarEvent, Card, CardDeal, CardLogo, CardLogoUrls, CardMemberTicket, CardTheme, CardTicket, CardTicketLocation, Club, ClubImage, ClubSection, ClubService, Collection, ConstantService, Contact, CreditCard, DataAccessModule, Directory, Email, EmailService, Event, ExternalLink, ExternalLinkService, FileObject, FileService, GeneralImage, Giro, GroupRole, HandleGrantTokenGuard, HomeTeam, ImageUrls, InvoiceService, MaintenanceModeService, Member, MemberActivityInvite, MemberAttribute, MemberCard, MemberCardService, MemberContact, MemberFee, MemberFunction, MemberInvoice, MemberInvoiceRow, MemberPublicForm, MemberPublicFormField, MemberPublicFormFieldOption, MemberPublicFormService, MemberService, MemberTeam, MemberTeamThrough, MemberType, MemberValidationSettings, News, NewsService, Partner, PaymentAttempt, PaymentAttemptService, Role, SearchClub, SearchMember, SearchMemberCard, SearchMemberInvoice, SearchTeam, Section, SectionService, Swish, SwishQrCode, TeamService, Token, TokenService, USER_NOTIFICATIONS_PATH, UnpaidMemberInvoice, User, UserNotification, UserNotificationService, UserService, Zimpler };
|
|
3506
3595
|
//# sourceMappingURL=myclub_se-data-access.mjs.map
|