@myclub_se/data-access 2.2.2 → 2.3.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-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-settings.mjs +2 -0
- package/esm2020/lib/api-models/api-member-public-form-field-option.mjs +2 -0
- package/esm2020/lib/api-models/api-member-public-form-field.mjs +2 -0
- package/esm2020/lib/api-models/api-member-public-form.mjs +1 -1
- package/esm2020/lib/api-models/api-member-team.mjs +1 -1
- package/esm2020/lib/api-models/index.mjs +4 -1
- package/esm2020/lib/models/booking-calendar-slot-session.mjs +5 -3
- package/esm2020/lib/models/booking-calendar-slot.mjs +4 -2
- package/esm2020/lib/models/booking-settings.mjs +22 -0
- package/esm2020/lib/models/index.mjs +4 -1
- package/esm2020/lib/models/member-public-form-field-option.mjs +9 -0
- package/esm2020/lib/models/member-public-form-field.mjs +16 -0
- package/esm2020/lib/models/member-public-form.mjs +6 -2
- package/esm2020/lib/models/member-team.mjs +3 -2
- package/esm2020/lib/services/booking-calendar.service.mjs +22 -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 +3 -0
- package/esm2020/lib/services/factories/member-public-form-factory.mjs +13 -3
- package/esm2020/lib/services/factories/member-team-factory.mjs +2 -2
- package/fesm2015/myclub_se-data-access.mjs +97 -11
- package/fesm2015/myclub_se-data-access.mjs.map +1 -1
- package/fesm2020/myclub_se-data-access.mjs +97 -11
- package/fesm2020/myclub_se-data-access.mjs.map +1 -1
- package/lib/api-models/api-booking-calendar-slot-session.d.ts +1 -0
- package/lib/api-models/api-booking-calendar-slot.d.ts +1 -0
- package/lib/api-models/api-booking-settings.d.ts +8 -0
- package/lib/api-models/api-member-public-form-field-option.d.ts +6 -0
- package/lib/api-models/api-member-public-form-field.d.ts +14 -0
- package/lib/api-models/api-member-public-form.d.ts +5 -0
- package/lib/api-models/api-member-team.d.ts +1 -0
- package/lib/api-models/index.d.ts +3 -0
- package/lib/models/booking-calendar-slot-session.d.ts +3 -1
- package/lib/models/booking-calendar-slot.d.ts +3 -1
- package/lib/models/booking-settings.d.ts +18 -0
- package/lib/models/index.d.ts +3 -0
- package/lib/models/member-public-form-field-option.d.ts +7 -0
- package/lib/models/member-public-form-field.d.ts +15 -0
- package/lib/models/member-public-form.d.ts +6 -1
- package/lib/models/member-team.d.ts +2 -1
- package/lib/services/booking-calendar.service.d.ts +4 -2
- package/lib/services/factories/booking-calendar-factory.d.ts +2 -2
- package/lib/services/factories/booking-settings-factory.d.ts +3 -0
- package/package.json +1 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ApiMemberPublicFormFieldOption } from './api-member-public-form-field-option';
|
|
2
|
+
export interface ApiMemberPublicFormField {
|
|
3
|
+
all_choice_options: Array<ApiMemberPublicFormFieldOption>;
|
|
4
|
+
divider: boolean;
|
|
5
|
+
familys: boolean;
|
|
6
|
+
field_id: string;
|
|
7
|
+
field_name: string;
|
|
8
|
+
field_order: string;
|
|
9
|
+
header: string;
|
|
10
|
+
help_text: string;
|
|
11
|
+
required: boolean;
|
|
12
|
+
type: string;
|
|
13
|
+
value: string;
|
|
14
|
+
}
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
+
import { ApiMemberPublicFormField } from './api-member-public-form-field';
|
|
1
2
|
export interface ApiMemberPublicForm {
|
|
2
3
|
id: string;
|
|
3
4
|
active_from: string | null;
|
|
4
5
|
active_to: string | null;
|
|
6
|
+
comment: string;
|
|
7
|
+
fields: Map<string, ApiMemberPublicFormField> | null;
|
|
8
|
+
max_registered_in_form_total: number;
|
|
5
9
|
name: string;
|
|
10
|
+
num_registered: number;
|
|
6
11
|
url: string;
|
|
7
12
|
user_token: string | null;
|
|
8
13
|
}
|
|
@@ -8,6 +8,7 @@ export * from './api-auth';
|
|
|
8
8
|
export * from './api-booking-calendar';
|
|
9
9
|
export * from './api-booking-calendar-slot';
|
|
10
10
|
export * from './api-booking-calendar-slot-session';
|
|
11
|
+
export * from './api-booking-settings';
|
|
11
12
|
export * from './api-calendar';
|
|
12
13
|
export * from './api-calendar-event';
|
|
13
14
|
export * from './api-card';
|
|
@@ -25,6 +26,8 @@ export * from './api-invoice';
|
|
|
25
26
|
export * from './api-member';
|
|
26
27
|
export * from './api-member-activity-invite';
|
|
27
28
|
export * from './api-member-public-form';
|
|
29
|
+
export * from './api-member-public-form-field';
|
|
30
|
+
export * from './api-member-public-form-field-option';
|
|
28
31
|
export * from './api-member-team';
|
|
29
32
|
export * from './api-member-team-through';
|
|
30
33
|
export * from './api-news';
|
|
@@ -10,6 +10,7 @@ export declare class BookingCalendarSlotSession {
|
|
|
10
10
|
team_name: string | null;
|
|
11
11
|
is_overbooked: boolean;
|
|
12
12
|
type: string;
|
|
13
|
+
location_zones_taken: number;
|
|
13
14
|
static asFormGroup(session?: BookingCalendarSlotSession): FormGroup<{
|
|
14
15
|
id: FormControl<string | null>;
|
|
15
16
|
section_id: FormControl<string | null>;
|
|
@@ -21,6 +22,7 @@ export declare class BookingCalendarSlotSession {
|
|
|
21
22
|
team_name: FormControl<string | null>;
|
|
22
23
|
is_overbooked: FormControl<boolean | null>;
|
|
23
24
|
type: FormControl<string | null>;
|
|
25
|
+
location_zones_taken: FormControl<number | null>;
|
|
24
26
|
}>;
|
|
25
|
-
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, is_overbooked: boolean, type: string);
|
|
27
|
+
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, is_overbooked: boolean, type: string, location_zones_taken: number);
|
|
26
28
|
}
|
|
@@ -20,6 +20,7 @@ export declare class BookingCalendarSlot {
|
|
|
20
20
|
repeat: string;
|
|
21
21
|
update_repeating: boolean;
|
|
22
22
|
reserved_time_enabled: boolean;
|
|
23
|
+
available_location_zones: number;
|
|
23
24
|
repeat_num?: number | null | undefined;
|
|
24
25
|
repeat_to_day?: string | null | undefined;
|
|
25
26
|
repeat_type?: string | null | undefined;
|
|
@@ -45,6 +46,7 @@ export declare class BookingCalendarSlot {
|
|
|
45
46
|
reserved_time: FormControl<string | null>;
|
|
46
47
|
reserved_time_type: FormControl<string | null>;
|
|
47
48
|
reserved_time_position: FormControl<string | null>;
|
|
49
|
+
available_location_zones: FormControl<number | null>;
|
|
48
50
|
}>;
|
|
49
|
-
constructor(id: string, calendar_id: string, location_id: string, color: string, day: string, end_time: string, group_id: string | null, location_name: string, number_of_available_sessions: number, sessions: Array<BookingCalendarSlotSession>, open_sessions: Array<BookingCalendarSlotSession>, start_time: string, type: BookingCalendarSlotType, repeat: string, update_repeating: boolean, 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_type?: BookingCalendarSlotReservedTimeType | null | undefined, reserved_time_position?: BookingCalendarSlotReservedTimePosition | null | undefined);
|
|
51
|
+
constructor(id: string, calendar_id: string, location_id: string, color: string, day: string, end_time: string, group_id: string | null, location_name: string, number_of_available_sessions: number, sessions: Array<BookingCalendarSlotSession>, open_sessions: Array<BookingCalendarSlotSession>, start_time: string, type: BookingCalendarSlotType, repeat: string, update_repeating: boolean, reserved_time_enabled: boolean, available_location_zones: number, repeat_num?: number | null | undefined, repeat_to_day?: string | null | undefined, repeat_type?: string | null | undefined, reserved_time?: string | null | undefined, reserved_time_type?: BookingCalendarSlotReservedTimeType | null | undefined, reserved_time_position?: BookingCalendarSlotReservedTimePosition | null | undefined);
|
|
50
52
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { FormControl, FormGroup } from "@angular/forms";
|
|
2
|
+
export declare class BookingSettings {
|
|
3
|
+
id: string;
|
|
4
|
+
club_id: string;
|
|
5
|
+
calendar_step: string;
|
|
6
|
+
calendar_min_time: string;
|
|
7
|
+
calendar_max_time: string;
|
|
8
|
+
require_team_on_closed_session: boolean;
|
|
9
|
+
static asFormGroup(settings?: BookingSettings): FormGroup<{
|
|
10
|
+
id: FormControl<string | null>;
|
|
11
|
+
club_id: FormControl<string | null>;
|
|
12
|
+
calendar_step: FormControl<string | null>;
|
|
13
|
+
calendar_min_time: FormControl<string | null>;
|
|
14
|
+
calendar_max_time: FormControl<string | null>;
|
|
15
|
+
require_team_on_closed_session: FormControl<boolean | null>;
|
|
16
|
+
}>;
|
|
17
|
+
constructor(id: string, club_id: string, calendar_step: string, calendar_min_time: string, calendar_max_time: string, require_team_on_closed_session: boolean);
|
|
18
|
+
}
|
package/lib/models/index.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ export * from './authentication';
|
|
|
10
10
|
export * from './booking-calendar';
|
|
11
11
|
export * from './booking-calendar-slot';
|
|
12
12
|
export * from './booking-calendar-slot-session';
|
|
13
|
+
export * from './booking-settings';
|
|
13
14
|
export * from './calendar';
|
|
14
15
|
export * from './calendar-event';
|
|
15
16
|
export * from './card';
|
|
@@ -29,6 +30,8 @@ export * from './invoice';
|
|
|
29
30
|
export * from './member';
|
|
30
31
|
export * from './member-activity-invite';
|
|
31
32
|
export * from './member-public-form';
|
|
33
|
+
export * from './member-public-form-field';
|
|
34
|
+
export * from './member-public-form-field-option';
|
|
32
35
|
export * from './member-team';
|
|
33
36
|
export * from './member-team-through';
|
|
34
37
|
export * from './news';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { MemberPublicFormFieldOption } from './member-public-form-field-option';
|
|
2
|
+
export declare class MemberPublicFormField {
|
|
3
|
+
all_choice_options: Array<MemberPublicFormFieldOption>;
|
|
4
|
+
divider: boolean;
|
|
5
|
+
familys: boolean;
|
|
6
|
+
field_id: string;
|
|
7
|
+
field_name: string;
|
|
8
|
+
field_order: string;
|
|
9
|
+
header: string;
|
|
10
|
+
help_text: string;
|
|
11
|
+
required: boolean;
|
|
12
|
+
type: string;
|
|
13
|
+
value: string | boolean;
|
|
14
|
+
constructor(all_choice_options: Array<MemberPublicFormFieldOption>, divider: boolean, familys: boolean, field_id: string, field_name: string, field_order: string, header: string, help_text: string, required: boolean, type: string, value: string | boolean);
|
|
15
|
+
}
|
|
@@ -1,9 +1,14 @@
|
|
|
1
|
+
import { MemberPublicFormField } from './member-public-form-field';
|
|
1
2
|
export declare class MemberPublicForm {
|
|
2
3
|
id: string;
|
|
3
4
|
active_form: string | null;
|
|
4
5
|
active_to: string | null;
|
|
5
6
|
userToken: string | null;
|
|
7
|
+
comment: string;
|
|
8
|
+
fields: Map<string, MemberPublicFormField>;
|
|
9
|
+
max_registered_in_form_total: number;
|
|
6
10
|
name: string;
|
|
11
|
+
num_registered: number;
|
|
7
12
|
url: string;
|
|
8
|
-
constructor(id: string, active_form: string | null, active_to: string | null, userToken: string | null, name: string, url: string);
|
|
13
|
+
constructor(id: string, active_form: string | null, active_to: string | null, userToken: string | null, comment: string, fields: Map<string, MemberPublicFormField>, max_registered_in_form_total: number, name: string, num_registered: number, url: string);
|
|
9
14
|
}
|
|
@@ -4,8 +4,9 @@ export declare class MemberTeam {
|
|
|
4
4
|
section: Section | null;
|
|
5
5
|
id: string;
|
|
6
6
|
email: string;
|
|
7
|
+
readonly has_extra_members: boolean;
|
|
7
8
|
name: string;
|
|
8
9
|
phone: string;
|
|
9
10
|
section_name: string | undefined;
|
|
10
|
-
constructor(club: Club, section: Section | null, id: string, email: string, name: string, phone: string, section_name: string | undefined);
|
|
11
|
+
constructor(club: Club, section: Section | null, id: string, email: string, has_extra_members: boolean, name: string, phone: string, section_name: string | undefined);
|
|
11
12
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ApiService } from './api.service';
|
|
2
|
-
import { BookingCalendar, BookingCalendarSlot, BookingCalendarSlotSession } from
|
|
2
|
+
import { BookingCalendar, BookingCalendarSlot, BookingCalendarSlotSession, BookingSettings } from '../models';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class BookingCalendarService {
|
|
5
5
|
private apiService;
|
|
@@ -10,7 +10,7 @@ export declare class BookingCalendarService {
|
|
|
10
10
|
updateClubBookingCalendar(clubId: string, calendar: BookingCalendar): import("rxjs").Observable<BookingCalendar>;
|
|
11
11
|
deleteClubBookingCalendar(clubId: string, id: string): import("rxjs").Observable<boolean>;
|
|
12
12
|
createClubBookingCalendarSlot(clubId: string, slot: Partial<BookingCalendarSlot>): import("rxjs").Observable<BookingCalendarSlot>;
|
|
13
|
-
getClubBookingCalendarSlots(clubId: string, startDate?: string | null, endDate?: string | null, calendarIds?: string[] | null, locationIds?: string[] | null): import("rxjs").Observable<import("../models").Collection<BookingCalendarSlot>>;
|
|
13
|
+
getClubBookingCalendarSlots(clubId: string, startDate?: string | null, endDate?: string | null, calendarIds?: string[] | null, locationIds?: string[] | null, teamIds?: string[] | null, hasOpenSessions?: boolean | null): import("rxjs").Observable<import("../models").Collection<BookingCalendarSlot>>;
|
|
14
14
|
getClubBookingCalendarSlot(clubId: string, id: string): import("rxjs").Observable<BookingCalendarSlot>;
|
|
15
15
|
updateClubBookingCalendarSlot(clubId: string, slot: BookingCalendarSlot): import("rxjs").Observable<BookingCalendarSlot>;
|
|
16
16
|
deleteClubBookingCalendarSlot(clubId: string, id: string): import("rxjs").Observable<boolean>;
|
|
@@ -20,6 +20,8 @@ export declare class BookingCalendarService {
|
|
|
20
20
|
getClubBookingCalendarSlotSession(clubId: string, id: string): import("rxjs").Observable<BookingCalendarSlotSession>;
|
|
21
21
|
updateClubBookingCalendarSlotSession(clubId: string, session: BookingCalendarSlotSession): import("rxjs").Observable<BookingCalendarSlotSession>;
|
|
22
22
|
deleteClubBookingCalendarSlotSession(clubId: string, id: string): import("rxjs").Observable<boolean>;
|
|
23
|
+
getClubBookingSettings(clubId: string): import("rxjs").Observable<BookingSettings>;
|
|
24
|
+
updateClubBookingSettings(clubId: string, bookingSettings: BookingSettings): import("rxjs").Observable<BookingSettings>;
|
|
23
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<BookingCalendarService, never>;
|
|
24
26
|
static ɵprov: i0.ɵɵInjectableDeclaration<BookingCalendarService>;
|
|
25
27
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { ApiBookingCalendar } from "../../api-models
|
|
2
|
-
import { BookingCalendar } from "../../models
|
|
1
|
+
import { ApiBookingCalendar } from "../../api-models";
|
|
2
|
+
import { BookingCalendar } from "../../models";
|
|
3
3
|
export declare const bookingCalendarFactory: (apiBookingCalendar: ApiBookingCalendar) => BookingCalendar;
|
package/package.json
CHANGED