@myclub_se/data-access 2.9.0 → 2.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/api-models/api-booking-calendar-application-time.mjs +1 -1
- package/esm2020/lib/api-models/api-booking-calendar.mjs +1 -1
- package/esm2020/lib/models/booking-calendar-application-time.mjs +9 -2
- package/esm2020/lib/models/booking-calendar.mjs +4 -2
- package/esm2020/lib/services/booking-calendar.service.mjs +74 -3
- 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/types/booking-calendar-slot-type.mjs +1 -1
- package/fesm2015/myclub_se-data-access.mjs +86 -6
- package/fesm2015/myclub_se-data-access.mjs.map +1 -1
- package/fesm2020/myclub_se-data-access.mjs +86 -6
- package/fesm2020/myclub_se-data-access.mjs.map +1 -1
- package/lib/api-models/api-booking-calendar-application-time.d.ts +7 -0
- package/lib/api-models/api-booking-calendar.d.ts +1 -0
- package/lib/models/booking-calendar-application-time.d.ts +8 -1
- package/lib/models/booking-calendar.d.ts +3 -1
- package/lib/services/booking-calendar.service.d.ts +11 -1
- package/lib/types/booking-calendar-slot-type.d.ts +1 -1
- package/package.json +1 -1
|
@@ -16,4 +16,11 @@ export interface ApiBookingCalendarApplicationTime {
|
|
|
16
16
|
readonly location_id: string;
|
|
17
17
|
repeat: boolean;
|
|
18
18
|
activity_type_id: string | null;
|
|
19
|
+
readonly color: string | null;
|
|
20
|
+
readonly slot_start_time: string;
|
|
21
|
+
readonly slot_end_time: string;
|
|
22
|
+
readonly slot_day: string;
|
|
23
|
+
readonly slot_number_of_available_sessions: string;
|
|
24
|
+
readonly slot_last_repeating_date: string;
|
|
25
|
+
readonly created: string;
|
|
19
26
|
}
|
|
@@ -17,6 +17,13 @@ export declare class BookingCalendarApplicationTime {
|
|
|
17
17
|
readonly location_id: string;
|
|
18
18
|
repeat: boolean;
|
|
19
19
|
activity_type_id: string | null;
|
|
20
|
+
readonly color: string | null;
|
|
21
|
+
readonly slot_start_time: string;
|
|
22
|
+
readonly slot_end_time: string;
|
|
23
|
+
readonly slot_day: string;
|
|
24
|
+
readonly slot_number_of_available_sessions: string;
|
|
25
|
+
readonly slot_last_repeating_date: string | null;
|
|
26
|
+
readonly created: string;
|
|
20
27
|
static asFormGroup(session?: BookingCalendarApplicationTime): FormGroup<{
|
|
21
28
|
id: FormControl<string | null>;
|
|
22
29
|
section_id: FormControl<string | null>;
|
|
@@ -34,5 +41,5 @@ export declare class BookingCalendarApplicationTime {
|
|
|
34
41
|
repeat: FormControl<boolean | null>;
|
|
35
42
|
activity_type_id: FormControl<string | null>;
|
|
36
43
|
}>;
|
|
37
|
-
constructor(id: string, section_id: string | null, slot_id: string, team_id: string | null, end_time: string, section_name: string | null, start_time: string, team_name: string | null, location_zones_taken: number, applicant_comment: string | null, reviewer_comment: string | null, status: string, location_part_id: string | null, location_part_name: string | null, location_id: string, repeat: boolean, activity_type_id: string | null);
|
|
44
|
+
constructor(id: string, section_id: string | null, slot_id: string, team_id: string | null, end_time: string, section_name: string | null, start_time: string, team_name: string | null, location_zones_taken: number, applicant_comment: string | null, reviewer_comment: string | null, status: string, location_part_id: string | null, location_part_name: string | null, location_id: string, repeat: boolean, activity_type_id: string | null, color: string | null, slot_start_time: string, slot_end_time: string, slot_day: string, slot_number_of_available_sessions: string, slot_last_repeating_date: string | null, created: string);
|
|
38
45
|
}
|
|
@@ -10,6 +10,7 @@ export declare class BookingCalendar {
|
|
|
10
10
|
section_name: string | null;
|
|
11
11
|
team_name: string | null;
|
|
12
12
|
status: string | null;
|
|
13
|
+
max_application_number: number;
|
|
13
14
|
location_groups?: ActivityLocationGroup[] | null | undefined;
|
|
14
15
|
static asFormGroup(calendar?: BookingCalendar): FormGroup<{
|
|
15
16
|
id: FormControl<string | null>;
|
|
@@ -22,6 +23,7 @@ export declare class BookingCalendar {
|
|
|
22
23
|
team_name: FormControl<string | null>;
|
|
23
24
|
status: FormControl<string | null>;
|
|
24
25
|
location_groups: FormArray<FormGroup<any>>;
|
|
26
|
+
max_application_number: FormControl<number | null>;
|
|
25
27
|
}>;
|
|
26
|
-
constructor(id: string, club_id: string, section_id: string | null, team_id: string | null, club_name: string, name: string, section_name: string | null, team_name: string | null, status: string | null, location_groups?: ActivityLocationGroup[] | null | undefined);
|
|
28
|
+
constructor(id: string, club_id: string, section_id: string | null, team_id: string | null, club_name: string, name: string, section_name: string | null, team_name: string | null, status: string | null, max_application_number: number, location_groups?: ActivityLocationGroup[] | null | undefined);
|
|
27
29
|
}
|
|
@@ -11,7 +11,9 @@ export declare class BookingSlotFilter {
|
|
|
11
11
|
locationGroupIds: string[] | null;
|
|
12
12
|
activityTypeIds: string[] | null;
|
|
13
13
|
hasOpenSessions: boolean | null;
|
|
14
|
-
|
|
14
|
+
showApplicationTimes: boolean | null;
|
|
15
|
+
sortBy: string | null;
|
|
16
|
+
constructor(startDate?: string | null, endDate?: string | null, calendarIds?: string[] | null, locationIds?: string[] | null, tagIds?: string[] | null, teamIds?: string[] | null, locationGroupIds?: string[] | null, activityTypeIds?: string[] | null, hasOpenSessions?: boolean | null, showApplicationTimes?: boolean | null, sortBy?: string | null);
|
|
15
17
|
static fromFilter(filter: BookingSlotFilter): BookingSlotFilter;
|
|
16
18
|
toParams(): any;
|
|
17
19
|
}
|
|
@@ -38,10 +40,18 @@ export declare class BookingCalendarService {
|
|
|
38
40
|
private getClubBookingCalendarSlots;
|
|
39
41
|
private getSectionBookingCalendarSlots;
|
|
40
42
|
private getTeamBookingCalendarSlots;
|
|
43
|
+
getBookingCalendarSlot(role: Role, clubOrSectionOrTeamId: string, slotId: string): import("rxjs").Observable<BookingCalendarSlot>;
|
|
44
|
+
private getClubBookingCalendarSlot;
|
|
45
|
+
private getSectionBookingCalendarSlot;
|
|
46
|
+
private getTeamBookingCalendarSlot;
|
|
41
47
|
getBookingCalendarApplicationTimeSlots(role: Role, clubOrSectionOrTeamId: string, bookingSlotFilter: BookingSlotFilter): import("rxjs").Observable<import("../models").Collection<BookingCalendarSlot>>;
|
|
42
48
|
private getClubBookingCalendarApplicationTimeSlots;
|
|
43
49
|
private getSectionBookingCalendarApplicationTimeSlots;
|
|
44
50
|
private getTeamBookingCalendarApplicationTimeSlots;
|
|
51
|
+
getBookingCalendarApplicationTimes(role: Role, clubOrSectionOrTeamId: string, bookingSlotFilter: BookingSlotFilter): import("rxjs").Observable<import("../models").Collection<BookingCalendarApplicationTime>>;
|
|
52
|
+
private getClubBookingCalendarApplicationTimes;
|
|
53
|
+
private getSectionBookingCalendarApplicationTimes;
|
|
54
|
+
private getTeamBookingCalendarApplicationTimes;
|
|
45
55
|
copyBookingCalendarSlots(role: Role, clubOrSectionOrTeamId: string, weekRelativeIndexes: number[], onlyCopySlots: boolean | undefined, bookingSlotFilter: BookingSlotFilter): import("rxjs").Observable<boolean>;
|
|
46
56
|
private copyClubBookingCalendarSlots;
|
|
47
57
|
private copySectionBookingCalendarSlots;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare type BookingCalendarSlotType = 'open' | 'closed' | 'hidden' | 'read';
|
|
1
|
+
export declare type BookingCalendarSlotType = 'open' | 'closed' | 'closed_time' | 'hidden' | 'read';
|
package/package.json
CHANGED