@myclub_se/data-access 2.13.1 → 2.15.0
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-participant.mjs +2 -0
- package/esm2020/lib/api-models/api-bookable-group.mjs +2 -0
- package/esm2020/lib/api-models/api-bookable-item.mjs +2 -0
- package/esm2020/lib/api-models/api-bookable-part.mjs +2 -0
- package/esm2020/lib/api-models/api-bookable-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-event.mjs +1 -1
- package/esm2020/lib/api-models/api-overbooked-bookable-item.mjs +2 -0
- package/esm2020/lib/api-models/index.mjs +7 -1
- package/esm2020/lib/models/activity-location-part.mjs +4 -4
- package/esm2020/lib/models/activity-participant.mjs +12 -0
- package/esm2020/lib/models/bookable-group.mjs +21 -0
- package/esm2020/lib/models/bookable-item.mjs +34 -0
- package/esm2020/lib/models/bookable-part.mjs +14 -0
- package/esm2020/lib/models/bookable-tag.mjs +17 -0
- package/esm2020/lib/models/booking-calendar-application-time.mjs +9 -9
- package/esm2020/lib/models/booking-calendar-slot-session.mjs +9 -9
- package/esm2020/lib/models/booking-calendar-slot.mjs +5 -5
- package/esm2020/lib/models/booking-calendar.mjs +9 -9
- package/esm2020/lib/models/event.mjs +3 -2
- package/esm2020/lib/models/index.mjs +7 -1
- package/esm2020/lib/models/overbooked-bookable-item.mjs +10 -0
- package/esm2020/lib/services/activity.service.mjs +2 -189
- package/esm2020/lib/services/bookable.service.mjs +258 -0
- package/esm2020/lib/services/booking-calendar.service.mjs +30 -26
- package/esm2020/lib/services/factories/activity-participant-factory.mjs +3 -0
- package/esm2020/lib/services/factories/bookable-group-factory.mjs +6 -0
- package/esm2020/lib/services/factories/bookable-item-factory.mjs +5 -0
- package/esm2020/lib/services/factories/bookable-part-factory.mjs +5 -0
- package/esm2020/lib/services/factories/bookable-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 +3 -3
- 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/event-factory.mjs +3 -2
- package/esm2020/lib/services/factories/index.mjs +8 -1
- package/esm2020/lib/services/factories/overbooked-bookable-item-factory.mjs +3 -0
- package/esm2020/lib/services/index.mjs +2 -1
- package/fesm2015/myclub_se-data-access.mjs +439 -247
- package/fesm2015/myclub_se-data-access.mjs.map +1 -1
- package/fesm2020/myclub_se-data-access.mjs +439 -247
- package/fesm2020/myclub_se-data-access.mjs.map +1 -1
- package/lib/api-models/api-activity-participant.d.ts +9 -0
- package/lib/api-models/api-bookable-group.d.ts +9 -0
- package/lib/api-models/api-bookable-item.d.ts +12 -0
- package/lib/api-models/api-bookable-part.d.ts +4 -0
- package/lib/api-models/api-bookable-tag.d.ts +7 -0
- package/lib/api-models/api-booking-calendar-application-time.d.ts +5 -5
- package/lib/api-models/api-booking-calendar-slot-session.d.ts +5 -5
- package/lib/api-models/api-booking-calendar-slot.d.ts +2 -2
- package/lib/api-models/api-booking-calendar.d.ts +2 -2
- package/lib/api-models/api-event.d.ts +2 -0
- package/lib/api-models/api-overbooked-bookable-item.d.ts +7 -0
- package/lib/api-models/index.d.ts +6 -0
- package/lib/models/activity-location-part.d.ts +1 -1
- package/lib/models/activity-participant.d.ts +10 -0
- package/lib/models/bookable-group.d.ts +18 -0
- package/lib/models/bookable-item.d.ts +22 -0
- package/lib/models/bookable-part.d.ts +10 -0
- package/lib/models/bookable-tag.d.ts +13 -0
- package/lib/models/booking-calendar-application-time.d.ts +8 -8
- package/lib/models/booking-calendar-slot-session.d.ts +8 -8
- package/lib/models/booking-calendar-slot.d.ts +4 -4
- package/lib/models/booking-calendar.d.ts +4 -4
- package/lib/models/event.d.ts +3 -1
- package/lib/models/index.d.ts +6 -0
- package/lib/models/overbooked-bookable-item.d.ts +8 -0
- package/lib/services/activity.service.d.ts +1 -31
- package/lib/services/bookable.service.d.ts +44 -0
- package/lib/services/booking-calendar.service.d.ts +6 -5
- package/lib/services/factories/activity-participant-factory.d.ts +3 -0
- package/lib/services/factories/bookable-group-factory.d.ts +3 -0
- package/lib/services/factories/bookable-item-factory.d.ts +3 -0
- package/lib/services/factories/bookable-part-factory.d.ts +3 -0
- package/lib/services/factories/bookable-tag-factory.d.ts +3 -0
- package/lib/services/factories/index.d.ts +7 -0
- package/lib/services/factories/overbooked-bookable-item-factory.d.ts +3 -0
- package/lib/services/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ApiBookablePart } from "./api-bookable-part";
|
|
2
|
+
import { ApiBookableTag } from "./api-bookable-tag";
|
|
3
|
+
export interface ApiBookableItem {
|
|
4
|
+
active: boolean;
|
|
5
|
+
club_id: string;
|
|
6
|
+
group_id: string | null;
|
|
7
|
+
id: string;
|
|
8
|
+
name: string;
|
|
9
|
+
section_id: string | null;
|
|
10
|
+
tags?: Array<ApiBookableTag> | null;
|
|
11
|
+
parts?: Array<ApiBookablePart> | null;
|
|
12
|
+
}
|
|
@@ -8,13 +8,9 @@ export interface ApiBookingCalendarApplicationTime {
|
|
|
8
8
|
team_id: string;
|
|
9
9
|
title: string;
|
|
10
10
|
readonly team_name: string;
|
|
11
|
-
location_zones_taken: number;
|
|
12
11
|
applicant_comment: string | null;
|
|
13
12
|
reviewer_comment: string | null;
|
|
14
13
|
status: string;
|
|
15
|
-
location_part_id: string | null;
|
|
16
|
-
readonly location_part_name: string | null;
|
|
17
|
-
readonly location_id: string;
|
|
18
14
|
repeat: boolean;
|
|
19
15
|
activity_type_id: string | null;
|
|
20
16
|
readonly color: string | null;
|
|
@@ -24,5 +20,9 @@ export interface ApiBookingCalendarApplicationTime {
|
|
|
24
20
|
readonly slot_number_of_available_sessions: string;
|
|
25
21
|
readonly slot_last_repeating_date: string;
|
|
26
22
|
readonly created: string;
|
|
27
|
-
readonly
|
|
23
|
+
readonly bookable_name: string;
|
|
24
|
+
bookable_zones_taken: number;
|
|
25
|
+
bookable_part_id: string | null;
|
|
26
|
+
readonly bookable_part_name: string | null;
|
|
27
|
+
readonly bookable_id: string;
|
|
28
28
|
}
|
|
@@ -11,13 +11,13 @@ export interface ApiBookingCalendarSlotSession {
|
|
|
11
11
|
readonly is_overbooked: boolean;
|
|
12
12
|
readonly last_repeating_date: string | null;
|
|
13
13
|
readonly type: string;
|
|
14
|
-
location_zones_taken: number;
|
|
15
14
|
readonly slot_index: number;
|
|
16
15
|
comment: string | null;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
readonly
|
|
20
|
-
readonly
|
|
16
|
+
bookable_zones_taken: number;
|
|
17
|
+
bookable_part_id: string | null;
|
|
18
|
+
readonly bookable_part_name: string | null;
|
|
19
|
+
readonly bookable_id: string;
|
|
20
|
+
readonly bookable_name: string | null;
|
|
21
21
|
readonly day: string;
|
|
22
22
|
repeat: boolean;
|
|
23
23
|
activity_type_id: string | null;
|
|
@@ -10,8 +10,8 @@ export interface ApiBookingCalendarSlot {
|
|
|
10
10
|
end_time: string;
|
|
11
11
|
group_id: string | null;
|
|
12
12
|
id: string;
|
|
13
|
-
|
|
14
|
-
readonly
|
|
13
|
+
bookable_id: string;
|
|
14
|
+
readonly bookable_name: string | null;
|
|
15
15
|
readonly name: string;
|
|
16
16
|
number_of_available_sessions: number;
|
|
17
17
|
sessions: Array<ApiBookingCalendarSlotSession> | null;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ApiActivityLocationGroup } from "./api-activity-location-group";
|
|
2
1
|
import { ApiSearchTeam } from "./api-search-team";
|
|
2
|
+
import { ApiBookableGroup } from "./api-bookable-group";
|
|
3
3
|
export interface ApiBookingCalendar {
|
|
4
4
|
id: string;
|
|
5
5
|
club_id: string;
|
|
@@ -10,7 +10,7 @@ export interface ApiBookingCalendar {
|
|
|
10
10
|
team_id: string | null;
|
|
11
11
|
readonly team_name: string | null;
|
|
12
12
|
status: string;
|
|
13
|
-
|
|
13
|
+
bookable_groups: Array<ApiBookableGroup> | null;
|
|
14
14
|
available_for_teams: Array<ApiSearchTeam> | null;
|
|
15
15
|
is_default: boolean;
|
|
16
16
|
max_application_number: number;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ApiMemberActivityInvite } from './api-member-activity-invite';
|
|
2
|
+
import { ApiActivityParticipant } from './api-activity-participant';
|
|
2
3
|
export interface ApiEvent {
|
|
3
4
|
activity_id: string | null;
|
|
4
5
|
activity_type: string | null;
|
|
@@ -17,6 +18,7 @@ export interface ApiEvent {
|
|
|
17
18
|
meet_up_time: string;
|
|
18
19
|
member_id: string;
|
|
19
20
|
open_activity: boolean;
|
|
21
|
+
participants: Array<ApiActivityParticipant>;
|
|
20
22
|
start: string;
|
|
21
23
|
title: string;
|
|
22
24
|
type: string;
|
|
@@ -5,8 +5,13 @@ export * from './api-activity-location';
|
|
|
5
5
|
export * from './api-activity-location-group';
|
|
6
6
|
export * from './api-activity-location-tag';
|
|
7
7
|
export * from './api-activity-location-part';
|
|
8
|
+
export * from './api-activity-participant';
|
|
8
9
|
export * from './api-activity-type';
|
|
9
10
|
export * from './api-auth';
|
|
11
|
+
export * from './api-bookable-group';
|
|
12
|
+
export * from './api-bookable-item';
|
|
13
|
+
export * from './api-bookable-part';
|
|
14
|
+
export * from './api-bookable-tag';
|
|
10
15
|
export * from './api-booking-calendar';
|
|
11
16
|
export * from './api-booking-calendar-application-time';
|
|
12
17
|
export * from './api-booking-calendar-slot';
|
|
@@ -38,6 +43,7 @@ export * from './api-member-type';
|
|
|
38
43
|
export * from './api-news';
|
|
39
44
|
export * from './api-open-activity';
|
|
40
45
|
export * from './api-optional-fee';
|
|
46
|
+
export * from './api-overbooked-bookable-item';
|
|
41
47
|
export * from './api-overbooked-location';
|
|
42
48
|
export * from './api-partner';
|
|
43
49
|
export * from './api-registration-qr-code';
|
|
@@ -2,7 +2,7 @@ import { FormControl, FormGroup } from "@angular/forms";
|
|
|
2
2
|
export declare class ActivityLocationPart {
|
|
3
3
|
id: string;
|
|
4
4
|
name: string;
|
|
5
|
-
static asFormGroup(
|
|
5
|
+
static asFormGroup(part?: ActivityLocationPart): FormGroup<{
|
|
6
6
|
id: FormControl<string | null>;
|
|
7
7
|
name: FormControl<string | null>;
|
|
8
8
|
}>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare class ActivityParticipant {
|
|
2
|
+
id: string;
|
|
3
|
+
activityId: string;
|
|
4
|
+
memberId: string;
|
|
5
|
+
teamId: string;
|
|
6
|
+
memberEmail: string;
|
|
7
|
+
memberName: string;
|
|
8
|
+
rfLeader: boolean;
|
|
9
|
+
constructor(id: string, activityId: string, memberId: string, teamId: string, memberEmail: string, memberName: string, rfLeader: boolean);
|
|
10
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { FormControl, FormGroup } from "@angular/forms";
|
|
2
|
+
import { BookableItem } from "./bookable-item";
|
|
3
|
+
export declare class BookableGroup {
|
|
4
|
+
id: string;
|
|
5
|
+
club_id: string;
|
|
6
|
+
section_id: string | null;
|
|
7
|
+
active: boolean;
|
|
8
|
+
name: string;
|
|
9
|
+
bookable_items: Array<BookableItem> | null;
|
|
10
|
+
static asFormGroup(bookableGroup?: BookableGroup): FormGroup<{
|
|
11
|
+
id: FormControl<string | null>;
|
|
12
|
+
club_id: FormControl<string | null>;
|
|
13
|
+
section_id: FormControl<string | null>;
|
|
14
|
+
name: FormControl<string | null>;
|
|
15
|
+
active: FormControl<boolean | null>;
|
|
16
|
+
}>;
|
|
17
|
+
constructor(id: string, club_id: string, section_id: string | null, active: boolean, name: string, bookable_items: Array<BookableItem> | null);
|
|
18
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { FormArray, FormControl, FormGroup } from "@angular/forms";
|
|
2
|
+
import { BookableTag } from "./bookable-tag";
|
|
3
|
+
import { BookablePart } from "./bookable-part";
|
|
4
|
+
export declare class BookableItem {
|
|
5
|
+
id: string;
|
|
6
|
+
club_id: string;
|
|
7
|
+
section_id: string | null;
|
|
8
|
+
group_id: string | null;
|
|
9
|
+
active: boolean;
|
|
10
|
+
name: string;
|
|
11
|
+
tags?: BookableTag[] | null | undefined;
|
|
12
|
+
parts?: BookablePart[] | null | undefined;
|
|
13
|
+
static asFormGroup(bookable?: BookableItem): FormGroup<{
|
|
14
|
+
id: FormControl<string | null>;
|
|
15
|
+
club_id: FormControl<string | null>;
|
|
16
|
+
active: FormControl<boolean | null>;
|
|
17
|
+
group_id: FormControl<string | null>;
|
|
18
|
+
tags: FormArray<FormGroup<any>>;
|
|
19
|
+
parts: FormArray<FormGroup<any>>;
|
|
20
|
+
}>;
|
|
21
|
+
constructor(id: string, club_id: string, section_id: string | null, group_id: string | null, active: boolean, name: string, tags?: BookableTag[] | null | undefined, parts?: BookablePart[] | null | undefined);
|
|
22
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FormControl, FormGroup } from "@angular/forms";
|
|
2
|
+
export declare class BookablePart {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
static asFormGroup(part?: BookablePart): FormGroup<{
|
|
6
|
+
id: FormControl<string | null>;
|
|
7
|
+
name: FormControl<string | null>;
|
|
8
|
+
}>;
|
|
9
|
+
constructor(id: string, name: string);
|
|
10
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { FormControl, FormGroup } from "@angular/forms";
|
|
2
|
+
export declare class BookableTag {
|
|
3
|
+
id: string;
|
|
4
|
+
club_id: string;
|
|
5
|
+
section_id: string | null;
|
|
6
|
+
name: string;
|
|
7
|
+
bookable_item_names: Array<string>;
|
|
8
|
+
static asFormGroup(tag?: BookableTag): FormGroup<{
|
|
9
|
+
id: FormControl<string | null>;
|
|
10
|
+
name: FormControl<string | null>;
|
|
11
|
+
}>;
|
|
12
|
+
constructor(id: string, club_id: string, section_id: string | null, name: string, bookable_item_names?: Array<string>);
|
|
13
|
+
}
|
|
@@ -9,13 +9,9 @@ export declare class BookingCalendarApplicationTime {
|
|
|
9
9
|
section_name: string | null;
|
|
10
10
|
start_time: string;
|
|
11
11
|
team_name: string | null;
|
|
12
|
-
location_zones_taken: number;
|
|
13
12
|
applicant_comment: string | null;
|
|
14
13
|
reviewer_comment: string | null;
|
|
15
14
|
status: string;
|
|
16
|
-
location_part_id: string | null;
|
|
17
|
-
readonly location_part_name: string | null;
|
|
18
|
-
readonly location_id: string;
|
|
19
15
|
repeat: boolean;
|
|
20
16
|
activity_type_id: string | null;
|
|
21
17
|
readonly color: string | null;
|
|
@@ -25,7 +21,11 @@ export declare class BookingCalendarApplicationTime {
|
|
|
25
21
|
readonly slot_number_of_available_sessions: string;
|
|
26
22
|
readonly slot_last_repeating_date: string | null;
|
|
27
23
|
readonly created: string;
|
|
28
|
-
|
|
24
|
+
bookable_zones_taken: number;
|
|
25
|
+
bookable_part_id: string | null;
|
|
26
|
+
readonly bookable_part_name: string | null;
|
|
27
|
+
readonly bookable_id: string;
|
|
28
|
+
readonly bookable_name: string | null;
|
|
29
29
|
static asFormGroup(session?: BookingCalendarApplicationTime): FormGroup<{
|
|
30
30
|
id: FormControl<string | null>;
|
|
31
31
|
section_id: FormControl<string | null>;
|
|
@@ -36,13 +36,13 @@ export declare class BookingCalendarApplicationTime {
|
|
|
36
36
|
section_name: FormControl<string | null>;
|
|
37
37
|
start_time: FormControl<string | null>;
|
|
38
38
|
team_name: FormControl<string | null>;
|
|
39
|
-
location_zones_taken: FormControl<number | null>;
|
|
40
39
|
applicant_comment: FormControl<string | null>;
|
|
41
40
|
reviewer_comment: FormControl<string | null>;
|
|
42
41
|
status: FormControl<string | null>;
|
|
43
|
-
location_part_id: FormControl<string | null>;
|
|
44
42
|
repeat: FormControl<boolean | null>;
|
|
45
43
|
activity_type_id: FormControl<string | null>;
|
|
44
|
+
bookable_zones_taken: FormControl<number | null>;
|
|
45
|
+
bookable_part_id: FormControl<string | null>;
|
|
46
46
|
}>;
|
|
47
|
-
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,
|
|
47
|
+
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, applicant_comment: string | null, reviewer_comment: string | null, status: 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, bookable_zones_taken: number, bookable_part_id: string | null, bookable_part_name: string | null, bookable_id: string, bookable_name: string | null);
|
|
48
48
|
}
|
|
@@ -12,19 +12,19 @@ export declare class BookingCalendarSlotSession {
|
|
|
12
12
|
is_overbooked: boolean;
|
|
13
13
|
last_repeating_date: string | null;
|
|
14
14
|
type: string;
|
|
15
|
-
location_zones_taken: number;
|
|
16
15
|
readonly slot_index: number;
|
|
17
16
|
comment: string | null;
|
|
18
|
-
location_part_id: string | null;
|
|
19
|
-
readonly location_part_name: string | null;
|
|
20
|
-
readonly location_name: string | null;
|
|
21
|
-
readonly location_id: string;
|
|
22
17
|
readonly day: string;
|
|
23
18
|
readonly repeat: boolean;
|
|
24
19
|
activity_type_id: string | null;
|
|
25
20
|
readonly color: string | null;
|
|
26
21
|
update_repeating: boolean;
|
|
27
22
|
update_until_date: string | null;
|
|
23
|
+
bookable_zones_taken: number;
|
|
24
|
+
bookable_part_id: string | null;
|
|
25
|
+
readonly bookable_part_name: string | null;
|
|
26
|
+
readonly bookable_name: string | null;
|
|
27
|
+
readonly bookable_id: string;
|
|
28
28
|
static asFormGroup(session?: BookingCalendarSlotSession): FormGroup<{
|
|
29
29
|
id: FormControl<string | null>;
|
|
30
30
|
section_id: FormControl<string | null>;
|
|
@@ -38,13 +38,13 @@ export declare class BookingCalendarSlotSession {
|
|
|
38
38
|
is_overbooked: FormControl<boolean | null>;
|
|
39
39
|
last_repeating_date: FormControl<string | null>;
|
|
40
40
|
type: FormControl<string | null>;
|
|
41
|
-
location_zones_taken: FormControl<number | null>;
|
|
42
41
|
comment: FormControl<string | null>;
|
|
43
|
-
location_part_id: FormControl<string | null>;
|
|
44
42
|
repeat: FormControl<boolean | null>;
|
|
45
43
|
activity_type_id: FormControl<string | null>;
|
|
46
44
|
update_repeating: FormControl<boolean | null>;
|
|
47
45
|
update_until_date: FormControl<string | null>;
|
|
46
|
+
bookable_zones_taken: FormControl<number | null>;
|
|
47
|
+
bookable_part_id: FormControl<string | null>;
|
|
48
48
|
}>;
|
|
49
|
-
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,
|
|
49
|
+
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, repeat: boolean, activity_type_id: string | null, color: string | null, update_repeating: boolean, update_until_date: string | null, bookable_zones_taken: number, bookable_part_id: string | null, bookable_part_name: string | null, bookable_name: string | null, bookable_id: string);
|
|
50
50
|
}
|
|
@@ -7,12 +7,10 @@ export declare class BookingCalendarSlot {
|
|
|
7
7
|
id: string;
|
|
8
8
|
calendar_id: string;
|
|
9
9
|
calendar_status: string;
|
|
10
|
-
location_id: string;
|
|
11
10
|
color: string;
|
|
12
11
|
day: string;
|
|
13
12
|
end_time: string;
|
|
14
13
|
group_id: string | null;
|
|
15
|
-
location_name: string;
|
|
16
14
|
number_of_available_sessions: number;
|
|
17
15
|
sessions: Array<BookingCalendarSlotSession>;
|
|
18
16
|
open_sessions: Array<BookingCalendarSlotSession>;
|
|
@@ -29,10 +27,11 @@ export declare class BookingCalendarSlot {
|
|
|
29
27
|
reserved_time_position?: BookingCalendarSlotReservedTimePosition | null | undefined;
|
|
30
28
|
application_times?: BookingCalendarApplicationTime[] | null | undefined;
|
|
31
29
|
last_repeating_date?: string | null | undefined;
|
|
30
|
+
bookable_name?: string | null | undefined;
|
|
31
|
+
bookable_id?: string | undefined;
|
|
32
32
|
static asFormGroup(slot?: BookingCalendarSlot): FormGroup<{
|
|
33
33
|
id: FormControl<string | null>;
|
|
34
34
|
calendar_id: FormControl<string | null>;
|
|
35
|
-
location_id: FormControl<string | null>;
|
|
36
35
|
day: FormControl<string | null>;
|
|
37
36
|
end_time: FormControl<string | null>;
|
|
38
37
|
group_id: FormControl<string | null>;
|
|
@@ -48,6 +47,7 @@ export declare class BookingCalendarSlot {
|
|
|
48
47
|
reserved_time_enabled: FormControl<boolean | null>;
|
|
49
48
|
reserved_time: FormControl<string | null>;
|
|
50
49
|
reserved_time_position: FormControl<string | null>;
|
|
50
|
+
bookable_id: FormControl<string | null>;
|
|
51
51
|
}>;
|
|
52
|
-
constructor(id: string, calendar_id: string, calendar_status: string,
|
|
52
|
+
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_repeating: boolean, update_until_date: 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);
|
|
53
53
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FormArray, FormControl, FormGroup } from "@angular/forms";
|
|
2
|
-
import { ActivityLocationGroup } from "./activity-location-group";
|
|
3
2
|
import { SearchTeam } from "./search-team";
|
|
3
|
+
import { BookableGroup } from "./bookable-group";
|
|
4
4
|
export declare class BookingCalendar {
|
|
5
5
|
id: string;
|
|
6
6
|
club_id: string;
|
|
@@ -15,8 +15,8 @@ export declare class BookingCalendar {
|
|
|
15
15
|
allow_team_export: boolean;
|
|
16
16
|
allow_repeated_bookings: boolean;
|
|
17
17
|
is_default: boolean;
|
|
18
|
-
location_groups?: ActivityLocationGroup[] | null | undefined;
|
|
19
18
|
available_for_teams?: SearchTeam[] | null | undefined;
|
|
19
|
+
bookable_groups?: BookableGroup[] | null | undefined;
|
|
20
20
|
static asFormGroup(calendar?: BookingCalendar): FormGroup<{
|
|
21
21
|
id: FormControl<string | null>;
|
|
22
22
|
club_id: FormControl<string | null>;
|
|
@@ -27,12 +27,12 @@ export declare class BookingCalendar {
|
|
|
27
27
|
section_name: FormControl<string | null>;
|
|
28
28
|
team_name: FormControl<string | null>;
|
|
29
29
|
status: FormControl<string | null>;
|
|
30
|
-
|
|
30
|
+
bookable_groups: FormArray<FormGroup<any>>;
|
|
31
31
|
available_for_teams: FormArray<FormGroup<any>>;
|
|
32
32
|
max_application_number: FormControl<number | null>;
|
|
33
33
|
is_default: FormControl<boolean | null>;
|
|
34
34
|
allow_team_export: FormControl<boolean | null>;
|
|
35
35
|
allow_repeated_bookings: FormControl<boolean | null>;
|
|
36
36
|
}>;
|
|
37
|
-
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, allow_team_export: boolean, allow_repeated_bookings: boolean, is_default: boolean,
|
|
37
|
+
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, allow_team_export: boolean, allow_repeated_bookings: boolean, is_default: boolean, available_for_teams?: SearchTeam[] | null | undefined, bookable_groups?: BookableGroup[] | null | undefined);
|
|
38
38
|
}
|
package/lib/models/event.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { MemberActivityInvite } from './member-activity-invite';
|
|
2
|
+
import { ActivityParticipant } from './activity-participant';
|
|
2
3
|
export declare class Event {
|
|
3
4
|
id: string;
|
|
4
5
|
activity_id: string | null;
|
|
@@ -17,8 +18,9 @@ export declare class Event {
|
|
|
17
18
|
meet_up_time: string;
|
|
18
19
|
member_id: string;
|
|
19
20
|
open_activity: boolean;
|
|
21
|
+
participants: Array<ActivityParticipant>;
|
|
20
22
|
start: string;
|
|
21
23
|
title: string;
|
|
22
24
|
type: string;
|
|
23
|
-
constructor(id: string, activity_id: string | null, activity_type: string | null, base_background_color: string | null, base_color: string | null, base_name: string | null, calendar_name: string, description: string | null, end: string, invitation_id: string | null, invitation_response: string | null, invited_members: Array<MemberActivityInvite> | null, location: string, meet_up_place: string | null, meet_up_time: string, member_id: string, open_activity: boolean, start: string, title: string, type: string);
|
|
25
|
+
constructor(id: string, activity_id: string | null, activity_type: string | null, base_background_color: string | null, base_color: string | null, base_name: string | null, calendar_name: string, description: string | null, end: string, invitation_id: string | null, invitation_response: string | null, invited_members: Array<MemberActivityInvite> | null, location: string, meet_up_place: string | null, meet_up_time: string, member_id: string, open_activity: boolean, participants: Array<ActivityParticipant>, start: string, title: string, type: string);
|
|
24
26
|
}
|
package/lib/models/index.d.ts
CHANGED
|
@@ -5,10 +5,15 @@ export * from './activity-location';
|
|
|
5
5
|
export * from './activity-location-group';
|
|
6
6
|
export * from './activity-location-tag';
|
|
7
7
|
export * from './activity-location-part';
|
|
8
|
+
export * from './activity-participant';
|
|
8
9
|
export * from './activity-settings';
|
|
9
10
|
export * from './activity-type';
|
|
10
11
|
export * from './auth';
|
|
11
12
|
export * from './authentication';
|
|
13
|
+
export * from './bookable-group';
|
|
14
|
+
export * from './bookable-item';
|
|
15
|
+
export * from './bookable-part';
|
|
16
|
+
export * from './bookable-tag';
|
|
12
17
|
export * from './booking-calendar';
|
|
13
18
|
export * from './booking-calendar-application-time';
|
|
14
19
|
export * from './booking-calendar-slot';
|
|
@@ -42,6 +47,7 @@ export * from './member-type';
|
|
|
42
47
|
export * from './news';
|
|
43
48
|
export * from './open-activity';
|
|
44
49
|
export * from './optional-fee';
|
|
50
|
+
export * from './overbooked-bookable-item';
|
|
45
51
|
export * from './overbooked-location';
|
|
46
52
|
export * from './partner';
|
|
47
53
|
export * from './public-authentication';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare class OverbookedBookableItem {
|
|
2
|
+
start_time: string;
|
|
3
|
+
end_time: string;
|
|
4
|
+
day: string;
|
|
5
|
+
bookable_name: string;
|
|
6
|
+
session_names: Array<string>;
|
|
7
|
+
constructor(start_time: string, end_time: string, day: string, bookable_name: string, session_names: Array<string>);
|
|
8
|
+
}
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import { ApiService } from './api.service';
|
|
2
|
-
import { Activity, ActivityLocation,
|
|
2
|
+
import { Activity, ActivityLocation, ActivityType, Collection, MemberActivityInvite, Role } from '../models';
|
|
3
3
|
import { OpenActivitySearchParamsInterface } from '../interfaces';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class ActivityService {
|
|
6
6
|
private apiService;
|
|
7
7
|
activityLocationCollection: Collection<ActivityLocation> | undefined;
|
|
8
|
-
activityTypeCollection: Collection<ActivityType> | undefined;
|
|
9
8
|
activityLocationResponseDate: Date | undefined;
|
|
10
|
-
activityTypeResponseDate: Date | undefined;
|
|
11
9
|
constructor(apiService: ApiService);
|
|
12
10
|
addTeamActivityInvites(teamId: string, activityId: string, memberIds: Array<string>): import("rxjs").Observable<boolean>;
|
|
13
11
|
createTeamActivity(teamId: string, data: Partial<Activity>): import("rxjs").Observable<Activity>;
|
|
@@ -36,34 +34,6 @@ export declare class ActivityService {
|
|
|
36
34
|
updateClubActivityLocation(clubId: string, location: ActivityLocation): import("rxjs").Observable<ActivityLocation>;
|
|
37
35
|
updateMemberActivityAttendance(memberId: string, activityId: string): import("rxjs").Observable<boolean>;
|
|
38
36
|
updateSectionActivityLocation(sectionId: string, location: ActivityLocation): import("rxjs").Observable<ActivityLocation>;
|
|
39
|
-
getActivityLocationGroups(role: Role, clubOrSectionOrTeamId: string): import("rxjs").Observable<Collection<ActivityLocationGroup>>;
|
|
40
|
-
getClubActivityLocationGroups(clubId: string): import("rxjs").Observable<Collection<ActivityLocationGroup>>;
|
|
41
|
-
getSectionActivityLocationGroups(sectionId: string): import("rxjs").Observable<Collection<ActivityLocationGroup>>;
|
|
42
|
-
getTeamActivityLocationGroups(teamId: string): import("rxjs").Observable<Collection<ActivityLocationGroup>>;
|
|
43
|
-
updateActivityLocationGroup(role: Role, clubOrSectionOrTeamId: string, locationGroup: ActivityLocationGroup): import("rxjs").Observable<ActivityLocationGroup>;
|
|
44
|
-
updateClubActivityLocationGroup(clubId: string, locationGroup: ActivityLocationGroup): import("rxjs").Observable<ActivityLocationGroup>;
|
|
45
|
-
updateSectionActivityLocationGroup(sectionId: string, locationGroup: ActivityLocationGroup): import("rxjs").Observable<ActivityLocationGroup>;
|
|
46
|
-
createActivityLocationGroup(role: Role, clubOrSectionOrTeamId: string, locationGroup: Partial<ActivityLocationGroup>): import("rxjs").Observable<ActivityLocationGroup>;
|
|
47
|
-
createClubActivityLocationGroup(clubId: string, locationGroup: Partial<ActivityLocationGroup>): import("rxjs").Observable<ActivityLocationGroup>;
|
|
48
|
-
createSectionActivityLocationGroup(sectionId: string, locationGroup: Partial<ActivityLocationGroup>): import("rxjs").Observable<ActivityLocationGroup>;
|
|
49
|
-
getActivityLocationTags(role: Role, clubOrSectionOrTeamId: string): import("rxjs").Observable<Collection<ActivityLocationTag>>;
|
|
50
|
-
getClubActivityLocationTags(clubId: string): import("rxjs").Observable<Collection<ActivityLocationTag>>;
|
|
51
|
-
getSectionActivityLocationTags(sectionId: string): import("rxjs").Observable<Collection<ActivityLocationTag>>;
|
|
52
|
-
getTeamActivityLocationTags(teamId: string): import("rxjs").Observable<Collection<ActivityLocationTag>>;
|
|
53
|
-
createActivityLocationTag(role: Role, clubOrSectionOrTeamId: string, tag: Partial<ActivityLocationTag>): import("rxjs").Observable<ActivityLocationTag>;
|
|
54
|
-
createClubActivityLocationTag(clubId: string, tag: Partial<ActivityLocationTag>): import("rxjs").Observable<ActivityLocationTag>;
|
|
55
|
-
createSectionActivityLocationTag(sectionId: string, tag: Partial<ActivityLocationTag>): import("rxjs").Observable<ActivityLocationTag>;
|
|
56
|
-
createTeamActivityLocationTag(teamId: string, tag: Partial<ActivityLocationTag>): import("rxjs").Observable<ActivityLocationTag>;
|
|
57
|
-
updateActivityLocationTag(role: Role, clubOrSectionOrTeamId: string, tag: ActivityLocationTag): import("rxjs").Observable<ActivityLocationTag>;
|
|
58
|
-
updateClubActivityLocationTag(clubId: string, tag: ActivityLocationTag): import("rxjs").Observable<ActivityLocationTag>;
|
|
59
|
-
updateSectionActivityLocationTag(sectionId: string, tag: ActivityLocationTag): import("rxjs").Observable<ActivityLocationTag>;
|
|
60
|
-
deleteActivityLocationTag(role: Role, clubOrSectionOrTeamId: string, tag: ActivityLocationTag): import("rxjs").Observable<boolean>;
|
|
61
|
-
deleteClubActivityLocationTag(clubId: string, tag: ActivityLocationTag): import("rxjs").Observable<boolean>;
|
|
62
|
-
deleteSectionActivityLocationTag(sectionId: string, tag: ActivityLocationTag): import("rxjs").Observable<boolean>;
|
|
63
|
-
getActivityLocationParts(role: Role, clubOrSectionOrTeamId: string, locationId: string): import("rxjs").Observable<Collection<import("../models").ActivityLocationPart>>;
|
|
64
|
-
getClubActivityLocationParts(clubId: string, locationId: string): import("rxjs").Observable<Collection<import("../models").ActivityLocationPart>>;
|
|
65
|
-
getSectionActivityLocationParts(sectionId: string, locationId: string): import("rxjs").Observable<Collection<import("../models").ActivityLocationPart>>;
|
|
66
|
-
getTeamActivityLocationParts(teamId: string, locationId: string): import("rxjs").Observable<Collection<import("../models").ActivityLocationPart>>;
|
|
67
37
|
getTeamActivityNew(teamId: string): import("rxjs").Observable<Activity>;
|
|
68
38
|
getTeamActivityParticipants(teamId: string, activityId: string): import("rxjs").Observable<Collection<import("../models").SearchMember>>;
|
|
69
39
|
getActivitySettings(role: Role, clubOrSectionOrTeamId: string): import("rxjs").Observable<import("../models").ActivitySettings>;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ApiService } from './api.service';
|
|
2
|
+
import { BookableGroup, BookableItem, BookableTag, Role } from '../models';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class BookableService {
|
|
5
|
+
private apiService;
|
|
6
|
+
constructor(apiService: ApiService);
|
|
7
|
+
getBookableItems(role: Role, clubOrSectionOrTeamId: string): import("rxjs").Observable<import("../models").Collection<BookableItem>>;
|
|
8
|
+
getTeamBookableItems(teamId: string): import("rxjs").Observable<import("../models").Collection<BookableItem>>;
|
|
9
|
+
getClubBookableItems(clubId: string): import("rxjs").Observable<import("../models").Collection<BookableItem>>;
|
|
10
|
+
getSectionBookableItems(sectionId: string): import("rxjs").Observable<import("../models").Collection<BookableItem>>;
|
|
11
|
+
updateBookableItem(role: Role, clubOrSectionOrTeamId: string, bookableItem: BookableItem): import("rxjs").Observable<BookableItem>;
|
|
12
|
+
updateClubBookableItem(clubId: string, bookableItem: BookableItem): import("rxjs").Observable<BookableItem>;
|
|
13
|
+
updateSectionBookableItem(sectionId: string, bookableItem: BookableItem): import("rxjs").Observable<BookableItem>;
|
|
14
|
+
getBookableGroups(role: Role, clubOrSectionOrTeamId: string): import("rxjs").Observable<import("../models").Collection<BookableGroup>>;
|
|
15
|
+
getClubBookableGroups(clubId: string): import("rxjs").Observable<import("../models").Collection<BookableGroup>>;
|
|
16
|
+
getSectionBookableGroups(sectionId: string): import("rxjs").Observable<import("../models").Collection<BookableGroup>>;
|
|
17
|
+
getTeamBookableGroups(teamId: string): import("rxjs").Observable<import("../models").Collection<BookableGroup>>;
|
|
18
|
+
updateBookableGroup(role: Role, clubOrSectionOrTeamId: string, bookableGroup: BookableGroup): import("rxjs").Observable<BookableGroup>;
|
|
19
|
+
updateClubBookableGroup(clubId: string, bookableGroup: BookableGroup): import("rxjs").Observable<BookableGroup>;
|
|
20
|
+
updateSectionBookableGroup(sectionId: string, bookableGroup: BookableGroup): import("rxjs").Observable<BookableGroup>;
|
|
21
|
+
createBookableGroup(role: Role, clubOrSectionOrTeamId: string, bookableGroup: Partial<BookableGroup>): import("rxjs").Observable<BookableGroup>;
|
|
22
|
+
createClubBookableGroup(clubId: string, bookableGroup: Partial<BookableGroup>): import("rxjs").Observable<BookableGroup>;
|
|
23
|
+
createSectionBookableGroup(sectionId: string, bookableGroup: Partial<BookableGroup>): import("rxjs").Observable<BookableGroup>;
|
|
24
|
+
getBookableTags(role: Role, clubOrSectionOrTeamId: string): import("rxjs").Observable<import("../models").Collection<BookableTag>>;
|
|
25
|
+
getClubBookableTags(clubId: string): import("rxjs").Observable<import("../models").Collection<BookableTag>>;
|
|
26
|
+
getSectionBookableTags(sectionId: string): import("rxjs").Observable<import("../models").Collection<BookableTag>>;
|
|
27
|
+
getTeamBookableTags(teamId: string): import("rxjs").Observable<import("../models").Collection<BookableTag>>;
|
|
28
|
+
createBookableTag(role: Role, clubOrSectionOrTeamId: string, tag: Partial<BookableTag>): import("rxjs").Observable<BookableTag>;
|
|
29
|
+
createClubBookableTag(clubId: string, tag: Partial<BookableTag>): import("rxjs").Observable<BookableTag>;
|
|
30
|
+
createSectionBookableTag(sectionId: string, tag: Partial<BookableTag>): import("rxjs").Observable<BookableTag>;
|
|
31
|
+
createTeamBookableTag(teamId: string, tag: Partial<BookableTag>): import("rxjs").Observable<BookableTag>;
|
|
32
|
+
updateBookableTag(role: Role, clubOrSectionOrTeamId: string, tag: BookableTag): import("rxjs").Observable<BookableTag>;
|
|
33
|
+
updateClubBookableTag(clubId: string, tag: BookableTag): import("rxjs").Observable<BookableTag>;
|
|
34
|
+
updateSectionBookableTag(sectionId: string, tag: BookableTag): import("rxjs").Observable<BookableTag>;
|
|
35
|
+
deleteBookableTag(role: Role, clubOrSectionOrTeamId: string, tag: BookableTag): import("rxjs").Observable<boolean>;
|
|
36
|
+
deleteClubBookableTag(clubId: string, tag: BookableTag): import("rxjs").Observable<boolean>;
|
|
37
|
+
deleteSectionBookableTag(sectionId: string, tag: BookableTag): import("rxjs").Observable<boolean>;
|
|
38
|
+
getBookableParts(role: Role, clubOrSectionOrTeamId: string, bookableId: string): import("rxjs").Observable<import("../models").Collection<import("../models").BookablePart>>;
|
|
39
|
+
getClubBookableParts(clubId: string, bookableId: string): import("rxjs").Observable<import("../models").Collection<import("../models").BookablePart>>;
|
|
40
|
+
getSectionBookableParts(sectionId: string, bookableId: string): import("rxjs").Observable<import("../models").Collection<import("../models").BookablePart>>;
|
|
41
|
+
getTeamBookableParts(teamId: string, bookableId: string): import("rxjs").Observable<import("../models").Collection<import("../models").BookablePart>>;
|
|
42
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BookableService, never>;
|
|
43
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<BookableService>;
|
|
44
|
+
}
|
|
@@ -6,14 +6,15 @@ export declare class BookingSlotFilter {
|
|
|
6
6
|
endDate: string | null;
|
|
7
7
|
calendarIds: string[] | null;
|
|
8
8
|
locationIds: string[] | null;
|
|
9
|
+
bookableItemIds: string[] | null;
|
|
9
10
|
tagIds: string[] | null;
|
|
10
11
|
teamIds: string[] | null;
|
|
11
|
-
|
|
12
|
+
bookableGroupIds: string[] | null;
|
|
12
13
|
activityTypeIds: string[] | null;
|
|
13
14
|
hasOpenSessions: boolean | null;
|
|
14
15
|
showApplicationTimes: boolean | null;
|
|
15
16
|
sortBy: string | null;
|
|
16
|
-
constructor(startDate?: string | null, endDate?: string | null, calendarIds?: string[] | null, locationIds?: string[] | null, tagIds?: string[] | null, teamIds?: string[] | null,
|
|
17
|
+
constructor(startDate?: string | null, endDate?: string | null, calendarIds?: string[] | null, locationIds?: string[] | null, bookableItemIds?: string[] | null, tagIds?: string[] | null, teamIds?: string[] | null, bookableGroupIds?: string[] | null, activityTypeIds?: string[] | null, hasOpenSessions?: boolean | null, showApplicationTimes?: boolean | null, sortBy?: string | null);
|
|
17
18
|
static fromFilter(filter: BookingSlotFilter): BookingSlotFilter;
|
|
18
19
|
toParams(): any;
|
|
19
20
|
}
|
|
@@ -103,12 +104,12 @@ export declare class BookingCalendarService {
|
|
|
103
104
|
private deleteClubBookingCalendarApplicationTime;
|
|
104
105
|
private deleteSectionBookingCalendarApplicationTime;
|
|
105
106
|
private deleteTeamBookingCalendarApplicationTime;
|
|
106
|
-
getOverbookedLocations(role: Role, clubOrSectionOrTeamId: string, bookingSlotFilter: BookingSlotFilter): import("rxjs").Observable<import("../models").Collection<import("../models").OverbookedLocation>>;
|
|
107
|
-
private getClubOverbookedLocations;
|
|
108
|
-
private getSectionOverbookedLocations;
|
|
109
107
|
getOverbookedSessions(role: Role, clubOrSectionOrTeamId: string, bookingSlotFilter: BookingSlotFilter): import("rxjs").Observable<import("../models").Collection<BookingCalendarSlotSession>>;
|
|
110
108
|
private getClubOverbookedSessions;
|
|
111
109
|
private getSectionOverbookedSessions;
|
|
110
|
+
getOverbookedBookables(role: Role, clubOrSectionOrTeamId: string, bookingSlotFilter: BookingSlotFilter): import("rxjs").Observable<import("../models").Collection<import("../models").OverbookedBookableItem>>;
|
|
111
|
+
private getClubOverbookedBookables;
|
|
112
|
+
private getSectionOverbookedBookables;
|
|
112
113
|
static ɵfac: i0.ɵɵFactoryDeclaration<BookingCalendarService, never>;
|
|
113
114
|
static ɵprov: i0.ɵɵInjectableDeclaration<BookingCalendarService>;
|
|
114
115
|
}
|