@myclub_se/data-access 3.5.6 → 3.5.7
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/esm2022/lib/api-models/api-booking-calendar-slot-group-item.mjs +2 -0
- package/esm2022/lib/api-models/api-booking-calendar-slot-session-group-item.mjs +2 -0
- package/esm2022/lib/api-models/api-booking-calendar-slot-session.mjs +1 -1
- package/esm2022/lib/api-models/api-booking-calendar-slot.mjs +1 -1
- package/esm2022/lib/api-models/index.mjs +3 -1
- package/esm2022/lib/models/booking-calendar-slot-session.mjs +5 -11
- package/esm2022/lib/models/booking-calendar-slot.mjs +5 -8
- package/esm2022/lib/services/booking-calendar.service.mjs +79 -19
- package/esm2022/lib/services/factories/booking-calendar-slot-factory.mjs +2 -2
- package/esm2022/lib/services/factories/booking-calendar-slot-group-item-factory.mjs +2 -0
- package/esm2022/lib/services/factories/booking-calendar-slot-session-factory.mjs +2 -2
- package/esm2022/lib/services/factories/booking-calendar-slot-session-group-item-factory.mjs +2 -0
- package/esm2022/lib/services/factories/index.mjs +3 -1
- package/esm2022/lib/store/actions/booking.actions.mjs +1 -1
- package/esm2022/lib/store/effects/booking.effects.mjs +3 -3
- package/fesm2022/myclub_se-data-access.mjs +93 -38
- package/fesm2022/myclub_se-data-access.mjs.map +1 -1
- package/lib/api-models/api-booking-calendar-slot-group-item.d.ts +3 -0
- package/lib/api-models/api-booking-calendar-slot-session-group-item.d.ts +3 -0
- package/lib/api-models/api-booking-calendar-slot-session.d.ts +1 -3
- package/lib/api-models/api-booking-calendar-slot.d.ts +1 -2
- package/lib/api-models/index.d.ts +2 -0
- package/lib/models/booking-calendar-slot-session.d.ts +3 -7
- package/lib/models/booking-calendar-slot.d.ts +3 -5
- package/lib/services/booking-calendar.service.d.ts +12 -2
- package/lib/services/factories/booking-calendar-slot-group-item-factory.d.ts +2 -0
- package/lib/services/factories/booking-calendar-slot-session-group-item-factory.d.ts +2 -0
- package/lib/services/factories/index.d.ts +2 -0
- package/lib/store/actions/booking.actions.d.ts +4 -4
- package/package.json +1 -1
|
@@ -20,11 +20,9 @@ export interface ApiBookingCalendarSlotSession {
|
|
|
20
20
|
readonly bookable_id: string;
|
|
21
21
|
readonly bookable_name: string | null;
|
|
22
22
|
readonly day: string;
|
|
23
|
-
repeat: boolean;
|
|
24
23
|
activity_type_id: string | null;
|
|
25
24
|
readonly color: string | null;
|
|
26
|
-
|
|
27
|
-
update_until_date: string | null;
|
|
25
|
+
update_dates?: string[] | null;
|
|
28
26
|
member_id: string | null;
|
|
29
27
|
readonly member_name: string | null;
|
|
30
28
|
readonly member_email: string | null;
|
|
@@ -21,8 +21,7 @@ export interface ApiBookingCalendarSlot {
|
|
|
21
21
|
repeat_to_day?: string | null;
|
|
22
22
|
repeat_num?: number | null;
|
|
23
23
|
repeat_type?: string | null;
|
|
24
|
-
|
|
25
|
-
update_until_date: string | null;
|
|
24
|
+
update_dates?: string[] | null;
|
|
26
25
|
reserved_time_enabled: boolean;
|
|
27
26
|
reserved_time?: string | null;
|
|
28
27
|
reserved_time_position?: BookingCalendarSlotReservedTimePosition | null;
|
|
@@ -14,7 +14,9 @@ export * from './api-bookable-tag';
|
|
|
14
14
|
export * from './api-booking-calendar';
|
|
15
15
|
export * from './api-booking-calendar-application-time';
|
|
16
16
|
export * from './api-booking-calendar-slot';
|
|
17
|
+
export * from './api-booking-calendar-slot-group-item';
|
|
17
18
|
export * from './api-booking-calendar-slot-session';
|
|
19
|
+
export * from './api-booking-calendar-slot-session-group-item';
|
|
18
20
|
export * from './api-booking-calendar-slot-validate-copy-result';
|
|
19
21
|
export * from './api-booking-settings';
|
|
20
22
|
export * from './api-calendar';
|
|
@@ -16,11 +16,9 @@ export declare class BookingCalendarSlotSession {
|
|
|
16
16
|
readonly slot_index: number;
|
|
17
17
|
comment: string | null;
|
|
18
18
|
readonly day: string;
|
|
19
|
-
readonly repeat: boolean;
|
|
20
19
|
activity_type_id: string | null;
|
|
21
20
|
readonly color: string | null;
|
|
22
|
-
|
|
23
|
-
update_until_date: string | null;
|
|
21
|
+
update_dates: string[] | null;
|
|
24
22
|
bookable_zones_taken: number;
|
|
25
23
|
bookable_zones_taken_display: string;
|
|
26
24
|
bookable_part_id: string | null;
|
|
@@ -50,13 +48,11 @@ export declare class BookingCalendarSlotSession {
|
|
|
50
48
|
is_overbooked: FormControl<boolean | null>;
|
|
51
49
|
type: FormControl<string | null>;
|
|
52
50
|
comment: FormControl<string | null>;
|
|
53
|
-
repeat: FormControl<boolean | null>;
|
|
54
51
|
activity_type_id: FormControl<string | null>;
|
|
55
|
-
|
|
56
|
-
update_until_date: FormControl<moment.Moment | null>;
|
|
52
|
+
update_dates: FormControl<string[] | null>;
|
|
57
53
|
bookable_zones_taken: FormControl<number | null>;
|
|
58
54
|
bookable_part_id: FormControl<string | null>;
|
|
59
55
|
member_id: FormControl<string | null>;
|
|
60
56
|
}>;
|
|
61
|
-
constructor(id: string, section_id: string | null, slot_id: string, team_id: string | null, title: string, end_time: string, section_name: string | null, start_time: string, team_name: string | null, is_overbooked: boolean, last_repeating_date: string | null, type: string, slot_index: number, comment: string | null, day: string,
|
|
57
|
+
constructor(id: string, section_id: string | null, slot_id: string, team_id: string | null, title: string, end_time: string, section_name: string | null, start_time: string, team_name: string | null, is_overbooked: boolean, last_repeating_date: string | null, type: string, slot_index: number, comment: string | null, day: string, activity_type_id: string | null, color: string | null, update_dates: string[] | null, bookable_zones_taken: number, bookable_zones_taken_display: string, bookable_part_id: string | null, bookable_part_name: string | null, bookable_name: string | null, bookable_id: string, member_id: string | null, member_name: string | null, member_email: string | null, price: number, payment_order_id: string | null, pay_until: string | null, is_paid: boolean | null, group_id: string | null, calendar_id: string | null);
|
|
62
58
|
}
|
|
@@ -17,8 +17,7 @@ export declare class BookingCalendarSlot {
|
|
|
17
17
|
start_time: string;
|
|
18
18
|
type: BookingCalendarSlotType;
|
|
19
19
|
repeat: string;
|
|
20
|
-
|
|
21
|
-
update_until_date: string | null;
|
|
20
|
+
update_dates: string[] | null;
|
|
22
21
|
reserved_time_enabled: boolean;
|
|
23
22
|
repeat_num?: number | null | undefined;
|
|
24
23
|
repeat_to_day?: string | null | undefined;
|
|
@@ -43,8 +42,7 @@ export declare class BookingCalendarSlot {
|
|
|
43
42
|
repeat_num: FormControl<number | null>;
|
|
44
43
|
repeat_to_day: FormControl<moment.Moment | null>;
|
|
45
44
|
repeat_type: FormControl<string | null>;
|
|
46
|
-
|
|
47
|
-
update_until_date: FormControl<moment.Moment | null>;
|
|
45
|
+
update_dates: FormControl<string[] | null>;
|
|
48
46
|
reserved_time_enabled: FormControl<boolean | null>;
|
|
49
47
|
reserved_time: FormControl<moment.Moment | null>;
|
|
50
48
|
reserved_time_position: FormControl<string | null>;
|
|
@@ -52,5 +50,5 @@ export declare class BookingCalendarSlot {
|
|
|
52
50
|
price: FormControl<number | null>;
|
|
53
51
|
split: FormControl<string | null>;
|
|
54
52
|
}>;
|
|
55
|
-
constructor(id: string, calendar_id: string, calendar_status: string, color: string, day: string, end_time: string, group_id: string | null, number_of_available_sessions: number, sessions: Array<BookingCalendarSlotSession>, open_sessions: Array<BookingCalendarSlotSession>, start_time: string, type: BookingCalendarSlotType, repeat: string,
|
|
53
|
+
constructor(id: string, calendar_id: string, calendar_status: string, color: string, day: string, end_time: string, group_id: string | null, number_of_available_sessions: number, sessions: Array<BookingCalendarSlotSession>, open_sessions: Array<BookingCalendarSlotSession>, start_time: string, type: BookingCalendarSlotType, repeat: string, update_dates: string[] | null, reserved_time_enabled: boolean, repeat_num?: number | null | undefined, repeat_to_day?: string | null | undefined, repeat_type?: string | null | undefined, reserved_time?: string | null | undefined, reserved_time_position?: BookingCalendarSlotReservedTimePosition | null | undefined, application_times?: BookingCalendarApplicationTime[] | null | undefined, last_repeating_date?: string | null | undefined, bookable_name?: string | null | undefined, bookable_id?: string | undefined, price?: number | null);
|
|
56
54
|
}
|
|
@@ -63,9 +63,14 @@ export declare class BookingCalendarService {
|
|
|
63
63
|
deleteBookingCalendarSlot(role: Role, clubOrSectionOrTeamId: string, id: string, sendNotification?: boolean): import("rxjs").Observable<boolean>;
|
|
64
64
|
private deleteClubBookingCalendarSlot;
|
|
65
65
|
private deleteSectionBookingCalendarSlot;
|
|
66
|
-
deleteBookingCalendarSlotRepeatable(role: Role, clubOrSectionOrTeamId: string, id: string,
|
|
66
|
+
deleteBookingCalendarSlotRepeatable(role: Role, clubOrSectionOrTeamId: string, id: string, deleteDates: string[] | null, sendNotification?: boolean): import("rxjs").Observable<boolean>;
|
|
67
67
|
private deleteClubBookingCalendarSlotRepeatable;
|
|
68
68
|
private deleteSectionBookingCalendarSlotRepeatable;
|
|
69
|
+
getSlotGroupItems(role: Role, itemId: string, id: string): import("rxjs").Observable<import("../models").Collection<import("../api-models").ApiBookingCalendarSlotGroupItem>>;
|
|
70
|
+
private getClubSlotGroupItems;
|
|
71
|
+
private getSectionSlotGroupItems;
|
|
72
|
+
private getTeamSlotGroupItems;
|
|
73
|
+
private getMemberSlotGroupItems;
|
|
69
74
|
getMemberBookingCalendarSlotSessions(memberId: string): import("rxjs").Observable<import("../models").Collection<BookingCalendarSlotSession>>;
|
|
70
75
|
getMemberBookingCalendarBookableSlots(memberId: string, bookableId: string, startDate: string, endDate: string): import("rxjs").Observable<import("../models").Collection<BookingCalendarSlot>>;
|
|
71
76
|
createBookingCalendarSlotSession(role: Role, itemId: string, session: Partial<BookingCalendarSlotSession>): import("rxjs").Observable<BookingCalendarSlotSession>;
|
|
@@ -88,10 +93,15 @@ export declare class BookingCalendarService {
|
|
|
88
93
|
private deleteSectionBookingCalendarSlotSession;
|
|
89
94
|
private deleteTeamBookingCalendarSlotSession;
|
|
90
95
|
private deleteMemberBookingCalendarSlotSession;
|
|
91
|
-
deleteBookingCalendarSlotSessionRepeatable(role: Role, clubOrSectionOrTeamId: string, id: string,
|
|
96
|
+
deleteBookingCalendarSlotSessionRepeatable(role: Role, clubOrSectionOrTeamId: string, id: string, deleteDates: string[] | null, sendNotification?: boolean): import("rxjs").Observable<boolean>;
|
|
92
97
|
private deleteClubBookingCalendarSlotSessionRepeatable;
|
|
93
98
|
private deleteSectionBookingCalendarSlotSessionRepeatable;
|
|
94
99
|
private deleteTeamBookingCalendarSlotSessionRepeatable;
|
|
100
|
+
getSessionGroupItems(role: Role, itemId: string, id: string): import("rxjs").Observable<import("../models").Collection<import("../api-models").ApiBookingCalendarSlotSessionGroupItem>>;
|
|
101
|
+
private getClubSessionGroupItems;
|
|
102
|
+
private getSectionSessionGroupItems;
|
|
103
|
+
private getTeamSessionGroupItems;
|
|
104
|
+
private getMemberSessionGroupItems;
|
|
95
105
|
getBookingSettings(role: Role, itemId: string): import("rxjs").Observable<BookingSettings>;
|
|
96
106
|
private getClubBookingSettings;
|
|
97
107
|
private getSectionBookingSettings;
|
|
@@ -19,7 +19,9 @@ export * from './bookable-tag-factory';
|
|
|
19
19
|
export * from './booking-calendar-factory';
|
|
20
20
|
export * from './booking-calendar-application-time-factory';
|
|
21
21
|
export * from './booking-calendar-slot-factory';
|
|
22
|
+
export * from './booking-calendar-slot-group-item-factory';
|
|
22
23
|
export * from './booking-calendar-slot-session-factory';
|
|
24
|
+
export * from './booking-calendar-slot-session-group-item-factory';
|
|
23
25
|
export * from './booking-calendar-slot-validate-copy-result-factory';
|
|
24
26
|
export * from './booking-settings-factory';
|
|
25
27
|
export * from './card-deal-factory';
|
|
@@ -518,13 +518,13 @@ export declare const deleteBookingCalendarRepeatableSlotAction: import("@ngrx/st
|
|
|
518
518
|
role: Role;
|
|
519
519
|
clubOrSectionOrTeamId: string;
|
|
520
520
|
slot: BookingCalendarSlot;
|
|
521
|
-
|
|
521
|
+
deleteDates: string[] | null;
|
|
522
522
|
sendNotification: boolean;
|
|
523
523
|
}) => {
|
|
524
524
|
role: Role;
|
|
525
525
|
clubOrSectionOrTeamId: string;
|
|
526
526
|
slot: BookingCalendarSlot;
|
|
527
|
-
|
|
527
|
+
deleteDates: string[] | null;
|
|
528
528
|
sendNotification: boolean;
|
|
529
529
|
} & import("@ngrx/store").Action<BookingActionTypes.DeleteBookingCalendarRepeatableSlot>>;
|
|
530
530
|
export declare const deleteBookingCalendarRepeatableSlotSuccessAction: import("@ngrx/store").ActionCreator<BookingActionTypes.DeleteBookingCalendarRepeatableSlotSuccess, (props: {
|
|
@@ -655,13 +655,13 @@ export declare const deleteBookingCalendarRepeatableSlotSessionAction: import("@
|
|
|
655
655
|
role: Role;
|
|
656
656
|
clubOrSectionOrTeamId: string;
|
|
657
657
|
session: BookingCalendarSlotSession;
|
|
658
|
-
|
|
658
|
+
deleteDates: string[] | null;
|
|
659
659
|
sendNotification: boolean;
|
|
660
660
|
}) => {
|
|
661
661
|
role: Role;
|
|
662
662
|
clubOrSectionOrTeamId: string;
|
|
663
663
|
session: BookingCalendarSlotSession;
|
|
664
|
-
|
|
664
|
+
deleteDates: string[] | null;
|
|
665
665
|
sendNotification: boolean;
|
|
666
666
|
} & import("@ngrx/store").Action<BookingActionTypes.DeleteBookingCalendarRepeatableSlotSession>>;
|
|
667
667
|
export declare const deleteBookingCalendarRepeatableSlotSessionSuccessAction: import("@ngrx/store").ActionCreator<BookingActionTypes.DeleteBookingCalendarRepeatableSlotSessionSuccess, (props: {
|
package/package.json
CHANGED