@myclub_se/data-access 2.5.12 → 2.5.13
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.mjs +1 -1
- package/esm2020/lib/api-models/api-booking-settings.mjs +1 -1
- package/esm2020/lib/models/booking-calendar.mjs +5 -3
- package/esm2020/lib/models/booking-settings.mjs +2 -4
- package/esm2020/lib/services/booking-calendar.service.mjs +13 -1
- package/esm2020/lib/services/factories/booking-calendar-factory.mjs +2 -2
- package/esm2020/lib/services/factories/booking-settings-factory.mjs +2 -2
- package/fesm2015/myclub_se-data-access.mjs +19 -7
- package/fesm2015/myclub_se-data-access.mjs.map +1 -1
- package/fesm2020/myclub_se-data-access.mjs +19 -7
- package/fesm2020/myclub_se-data-access.mjs.map +1 -1
- package/lib/api-models/api-booking-calendar.d.ts +1 -0
- package/lib/api-models/api-booking-settings.d.ts +0 -1
- package/lib/models/booking-calendar.d.ts +3 -1
- package/lib/models/booking-settings.d.ts +1 -3
- package/lib/services/booking-calendar.service.d.ts +2 -0
- package/package.json +1 -1
|
@@ -9,6 +9,7 @@ export declare class BookingCalendar {
|
|
|
9
9
|
name: string;
|
|
10
10
|
section_name: string | null;
|
|
11
11
|
team_name: string | null;
|
|
12
|
+
status: string | null;
|
|
12
13
|
static asFormGroup(calendar?: BookingCalendar): FormGroup<{
|
|
13
14
|
id: FormControl<string | null>;
|
|
14
15
|
club_id: FormControl<string | null>;
|
|
@@ -19,6 +20,7 @@ export declare class BookingCalendar {
|
|
|
19
20
|
name: FormControl<string | null>;
|
|
20
21
|
section_name: FormControl<string | null>;
|
|
21
22
|
team_name: FormControl<string | null>;
|
|
23
|
+
status: FormControl<string | null>;
|
|
22
24
|
}>;
|
|
23
|
-
constructor(id: string, club_id: string, section_id: string | null, team_id: string | null, club_name: string, color: string, name: string, section_name: string | null, team_name: string | null);
|
|
25
|
+
constructor(id: string, club_id: string, section_id: string | null, team_id: string | null, club_name: string, color: string, name: string, section_name: string | null, team_name: string | null, status: string | null);
|
|
24
26
|
}
|
|
@@ -1,18 +1,16 @@
|
|
|
1
1
|
import { FormControl, FormGroup } from "@angular/forms";
|
|
2
2
|
export declare class BookingSettings {
|
|
3
3
|
id: string;
|
|
4
|
-
club_id: string;
|
|
5
4
|
calendar_step: string;
|
|
6
5
|
calendar_min_time: string;
|
|
7
6
|
calendar_max_time: string;
|
|
8
7
|
should_split_booking_into_zones: boolean;
|
|
9
8
|
static asFormGroup(settings?: BookingSettings): FormGroup<{
|
|
10
9
|
id: FormControl<string | null>;
|
|
11
|
-
club_id: FormControl<string | null>;
|
|
12
10
|
calendar_step: FormControl<string | null>;
|
|
13
11
|
calendar_min_time: FormControl<string | null>;
|
|
14
12
|
calendar_max_time: FormControl<string | null>;
|
|
15
13
|
should_split_booking_into_zones: FormControl<boolean | null>;
|
|
16
14
|
}>;
|
|
17
|
-
constructor(id: string,
|
|
15
|
+
constructor(id: string, calendar_step: string, calendar_min_time: string, calendar_max_time: string, should_split_booking_into_zones: boolean);
|
|
18
16
|
}
|
|
@@ -41,7 +41,9 @@ export declare class BookingCalendarService {
|
|
|
41
41
|
getBookingSettings(role: Role, clubOrTeamId: string): import("rxjs").Observable<BookingSettings>;
|
|
42
42
|
getClubBookingSettings(clubId: string): import("rxjs").Observable<BookingSettings>;
|
|
43
43
|
getTeamBookingSettings(teamId: string): import("rxjs").Observable<BookingSettings>;
|
|
44
|
+
updateBookingSettings(role: Role, clubOrTeamId: string, bookingSettings: BookingSettings): import("rxjs").Observable<BookingSettings>;
|
|
44
45
|
updateClubBookingSettings(clubId: string, bookingSettings: BookingSettings): import("rxjs").Observable<BookingSettings>;
|
|
46
|
+
updateTeamBookingSettings(teamId: string, bookingSettings: BookingSettings): import("rxjs").Observable<BookingSettings>;
|
|
45
47
|
updateClubBookingCalendarApplicationTime(clubId: string, availableTime: BookingCalendarApplicationTime): import("rxjs").Observable<BookingCalendarApplicationTime>;
|
|
46
48
|
createTeamBookingCalendarApplicationTime(teamId: string, availableTime: Partial<BookingCalendarApplicationTime>): import("rxjs").Observable<BookingCalendarApplicationTime>;
|
|
47
49
|
updateTeamBookingCalendarApplicationTime(teamId: string, availableTime: BookingCalendarApplicationTime): import("rxjs").Observable<BookingCalendarApplicationTime>;
|
package/package.json
CHANGED