@myclub_se/data-access 2.5.12 → 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/api-booking-calendar.mjs +1 -1
- package/esm2020/lib/api-models/api-booking-settings.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/booking-calendar.mjs +5 -3
- package/esm2020/lib/models/booking-settings.mjs +2 -4
- 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 +52 -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-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/booking-settings-factory.mjs +2 -2
- package/esm2020/lib/services/factories/index.mjs +2 -1
- package/fesm2015/myclub_se-data-access.mjs +130 -29
- package/fesm2015/myclub_se-data-access.mjs.map +1 -1
- package/fesm2020/myclub_se-data-access.mjs +130 -29
- 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/api-booking-calendar.d.ts +1 -0
- package/lib/api-models/api-booking-settings.d.ts +0 -1
- 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/booking-calendar.d.ts +3 -1
- package/lib/models/booking-settings.d.ts +1 -3
- 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 +11 -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
|
@@ -3,6 +3,7 @@ export * from './activity-factory';
|
|
|
3
3
|
export * from './activity-invite-factory';
|
|
4
4
|
export * from './activity-location-factory';
|
|
5
5
|
export * from './activity-location-group-factory';
|
|
6
|
+
export * from './activity-location-tag-factory';
|
|
6
7
|
export * from './activity-settings-factory';
|
|
7
8
|
export * from './activity-type-factory';
|
|
8
9
|
export * from './auth-factory';
|
|
@@ -68,4 +69,4 @@ export * from './unpaid-invoice-factory';
|
|
|
68
69
|
export * from './user-factory';
|
|
69
70
|
export * from './user-notification-factory';
|
|
70
71
|
export * from './zimpler-factory';
|
|
71
|
-
//# sourceMappingURL=data:application/json;base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G9yeSc7XG5leHBvcnQgKiBmcm9tICcuL3ppbXBsZXItZmFjdG9yeSc7XG4iXX0=
|
|
@@ -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;
|
|
@@ -231,7 +247,7 @@ class Authentication {
|
|
|
231
247
|
}
|
|
232
248
|
|
|
233
249
|
class BookingCalendar {
|
|
234
|
-
constructor(id, club_id, section_id, team_id, club_name, color, name, section_name, team_name) {
|
|
250
|
+
constructor(id, club_id, section_id, team_id, club_name, color, name, section_name, team_name, status) {
|
|
235
251
|
this.id = id;
|
|
236
252
|
this.club_id = club_id;
|
|
237
253
|
this.section_id = section_id;
|
|
@@ -241,6 +257,7 @@ class BookingCalendar {
|
|
|
241
257
|
this.name = name;
|
|
242
258
|
this.section_name = section_name;
|
|
243
259
|
this.team_name = team_name;
|
|
260
|
+
this.status = status;
|
|
244
261
|
}
|
|
245
262
|
static asFormGroup(calendar) {
|
|
246
263
|
return new FormGroup({
|
|
@@ -252,13 +269,14 @@ class BookingCalendar {
|
|
|
252
269
|
color: new FormControl((calendar === null || calendar === void 0 ? void 0 : calendar.color) || '', Validators.required),
|
|
253
270
|
name: new FormControl((calendar === null || calendar === void 0 ? void 0 : calendar.name) || '', Validators.required),
|
|
254
271
|
section_name: new FormControl((calendar === null || calendar === void 0 ? void 0 : calendar.section_name) || ''),
|
|
255
|
-
team_name: new FormControl((calendar === null || calendar === void 0 ? void 0 : calendar.team_name) || '')
|
|
272
|
+
team_name: new FormControl((calendar === null || calendar === void 0 ? void 0 : calendar.team_name) || ''),
|
|
273
|
+
status: new FormControl((calendar === null || calendar === void 0 ? void 0 : calendar.status) || 'preliminary'),
|
|
256
274
|
});
|
|
257
275
|
}
|
|
258
276
|
}
|
|
259
277
|
|
|
260
278
|
class BookingCalendarApplicationTime {
|
|
261
|
-
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) {
|
|
262
280
|
this.id = id;
|
|
263
281
|
this.section_id = section_id;
|
|
264
282
|
this.slot_id = slot_id;
|
|
@@ -271,6 +289,9 @@ class BookingCalendarApplicationTime {
|
|
|
271
289
|
this.applicant_comment = applicant_comment;
|
|
272
290
|
this.reviewer_comment = reviewer_comment;
|
|
273
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;
|
|
274
295
|
}
|
|
275
296
|
static asFormGroup(session) {
|
|
276
297
|
return new FormGroup({
|
|
@@ -286,14 +307,16 @@ class BookingCalendarApplicationTime {
|
|
|
286
307
|
applicant_comment: new FormControl((session === null || session === void 0 ? void 0 : session.applicant_comment) || null),
|
|
287
308
|
reviewer_comment: new FormControl((session === null || session === void 0 ? void 0 : session.reviewer_comment) || null),
|
|
288
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) || ''),
|
|
289
311
|
});
|
|
290
312
|
}
|
|
291
313
|
}
|
|
292
314
|
|
|
293
315
|
class BookingCalendarSlot {
|
|
294
|
-
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) {
|
|
295
317
|
this.id = id;
|
|
296
318
|
this.calendar_id = calendar_id;
|
|
319
|
+
this.calendar_status = calendar_status;
|
|
297
320
|
this.location_id = location_id;
|
|
298
321
|
this.color = color;
|
|
299
322
|
this.day = day;
|
|
@@ -339,7 +362,7 @@ class BookingCalendarSlot {
|
|
|
339
362
|
}
|
|
340
363
|
|
|
341
364
|
class BookingCalendarSlotSession {
|
|
342
|
-
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) {
|
|
343
366
|
this.id = id;
|
|
344
367
|
this.section_id = section_id;
|
|
345
368
|
this.slot_id = slot_id;
|
|
@@ -353,6 +376,9 @@ class BookingCalendarSlotSession {
|
|
|
353
376
|
this.location_zones_taken = location_zones_taken;
|
|
354
377
|
this.slot_index = slot_index;
|
|
355
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;
|
|
356
382
|
}
|
|
357
383
|
static asFormGroup(session) {
|
|
358
384
|
return new FormGroup({
|
|
@@ -368,14 +394,14 @@ class BookingCalendarSlotSession {
|
|
|
368
394
|
type: new FormControl((session === null || session === void 0 ? void 0 : session.type) || ''),
|
|
369
395
|
location_zones_taken: new FormControl((session === null || session === void 0 ? void 0 : session.location_zones_taken) || 1, [Validators.min(1), Validators.required]),
|
|
370
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) || ''),
|
|
371
398
|
});
|
|
372
399
|
}
|
|
373
400
|
}
|
|
374
401
|
|
|
375
402
|
class BookingSettings {
|
|
376
|
-
constructor(id,
|
|
403
|
+
constructor(id, calendar_step, calendar_min_time, calendar_max_time, should_split_booking_into_zones) {
|
|
377
404
|
this.id = id;
|
|
378
|
-
this.club_id = club_id;
|
|
379
405
|
this.calendar_step = calendar_step;
|
|
380
406
|
this.calendar_min_time = calendar_min_time;
|
|
381
407
|
this.calendar_max_time = calendar_max_time;
|
|
@@ -384,7 +410,6 @@ class BookingSettings {
|
|
|
384
410
|
static asFormGroup(settings) {
|
|
385
411
|
return new FormGroup({
|
|
386
412
|
id: new FormControl((settings === null || settings === void 0 ? void 0 : settings.id) || ''),
|
|
387
|
-
club_id: new FormControl((settings === null || settings === void 0 ? void 0 : settings.club_id) || ''),
|
|
388
413
|
calendar_step: new FormControl((settings === null || settings === void 0 ? void 0 : settings.calendar_step) || '01:00:00', [Validators.required]),
|
|
389
414
|
calendar_min_time: new FormControl((settings === null || settings === void 0 ? void 0 : settings.calendar_min_time) || '00:00:00', [Validators.required]),
|
|
390
415
|
calendar_max_time: new FormControl((settings === null || settings === void 0 ? void 0 : settings.calendar_max_time) || '23:00:00', [Validators.required]),
|
|
@@ -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);
|
|
@@ -1482,15 +1511,15 @@ const authTeamFactory = (apiAuthTeam) => new AuthTeam(apiAuthTeam.id, apiAuthTea
|
|
|
1482
1511
|
|
|
1483
1512
|
const authFactory = (apiAuth) => new Auth(apiAuth.id, apiAuth.name, apiAuth.club_admin, apiAuth.is_section_club, apiAuth.members.map((apiAuthMember) => authMemberFactory(apiAuthMember)), apiAuth.registration_enabled, apiAuth.sections.map((apiAuthSection) => authSectionFactory(apiAuthSection)), apiAuth.site_enabled, apiAuth.teams.map((apiAuthTeam) => authTeamFactory(apiAuthTeam)), apiAuth.user_name);
|
|
1484
1513
|
|
|
1485
|
-
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);
|
|
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
|
-
const bookingSettingsFactory = (apiBookingSettings) => new BookingSettings(apiBookingSettings.id, apiBookingSettings.
|
|
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
|
|
|
1495
1524
|
const imageUrlsFactory = (apiImageUrls) => new ImageUrls(apiImageUrls.lg, apiImageUrls.md, apiImageUrls.raw, apiImageUrls.sm, apiImageUrls.xs);
|
|
1496
1525
|
|
|
@@ -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
|
}
|
|
@@ -2347,12 +2436,24 @@ class BookingCalendarService {
|
|
|
2347
2436
|
return this.apiService
|
|
2348
2437
|
.getResource(bookingSettingsFactory, Role.TeamAdmin, TEAM_BOOKING_SETTINGS_PATH, { teamId });
|
|
2349
2438
|
}
|
|
2439
|
+
updateBookingSettings(role, clubOrTeamId, bookingSettings) {
|
|
2440
|
+
if (role == Role.ClubAdmin) {
|
|
2441
|
+
return this.updateClubBookingSettings(clubOrTeamId, bookingSettings);
|
|
2442
|
+
}
|
|
2443
|
+
return this.updateTeamBookingSettings(clubOrTeamId, bookingSettings);
|
|
2444
|
+
}
|
|
2350
2445
|
updateClubBookingSettings(clubId, bookingSettings) {
|
|
2351
2446
|
return this.apiService
|
|
2352
2447
|
.updateResource(bookingSettingsFactory, Role.ClubAdmin, CLUB_BOOKING_SETTINGS_PATH, {
|
|
2353
2448
|
clubId,
|
|
2354
2449
|
}, bookingSettings);
|
|
2355
2450
|
}
|
|
2451
|
+
updateTeamBookingSettings(teamId, bookingSettings) {
|
|
2452
|
+
return this.apiService
|
|
2453
|
+
.updateResource(bookingSettingsFactory, Role.TeamAdmin, TEAM_BOOKING_SETTINGS_PATH, {
|
|
2454
|
+
teamId,
|
|
2455
|
+
}, bookingSettings);
|
|
2456
|
+
}
|
|
2356
2457
|
// endregion
|
|
2357
2458
|
// region Booking Calendar Application Times
|
|
2358
2459
|
updateClubBookingCalendarApplicationTime(clubId, availableTime) {
|
|
@@ -3490,5 +3591,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.11", ngImpo
|
|
|
3490
3591
|
* Generated bundle index. Do not edit.
|
|
3491
3592
|
*/
|
|
3492
3593
|
|
|
3493
|
-
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 };
|
|
3494
3595
|
//# sourceMappingURL=myclub_se-data-access.mjs.map
|