@myclub_se/data-access 2.2.3 → 2.4.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-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-type.mjs +2 -0
- package/esm2020/lib/api-models/api-search-team.mjs +1 -1
- package/esm2020/lib/api-models/index.mjs +5 -1
- package/esm2020/lib/models/booking-settings.mjs +22 -0
- package/esm2020/lib/models/index.mjs +5 -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 +10 -2
- package/esm2020/lib/models/member-type.mjs +8 -0
- package/esm2020/lib/models/search-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-settings-factory.mjs +3 -0
- package/esm2020/lib/services/factories/index.mjs +4 -1
- package/esm2020/lib/services/factories/member-public-form-factory.mjs +16 -2
- package/esm2020/lib/services/factories/member-public-form-field-factory.mjs +5 -0
- package/esm2020/lib/services/factories/member-public-form-field-option-factory.mjs +3 -0
- package/esm2020/lib/services/factories/member-type-factory.mjs +3 -0
- package/esm2020/lib/services/factories/search-team-factory.mjs +2 -2
- package/fesm2015/myclub_se-data-access.mjs +110 -8
- package/fesm2015/myclub_se-data-access.mjs.map +1 -1
- package/fesm2020/myclub_se-data-access.mjs +110 -8
- package/fesm2020/myclub_se-data-access.mjs.map +1 -1
- 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 +10 -0
- package/lib/api-models/api-member-type.d.ts +5 -0
- package/lib/api-models/api-search-team.d.ts +3 -1
- package/lib/api-models/index.d.ts +4 -0
- package/lib/models/booking-settings.d.ts +18 -0
- package/lib/models/index.d.ts +4 -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 +12 -1
- package/lib/models/member-type.d.ts +6 -0
- package/lib/models/search-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/lib/services/factories/index.d.ts +3 -0
- package/lib/services/factories/member-public-form-field-factory.d.ts +3 -0
- package/lib/services/factories/member-public-form-field-option-factory.d.ts +3 -0
- package/lib/services/factories/member-type-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,18 @@
|
|
|
1
|
+
import { ApiSearchTeam } from './api-search-team';
|
|
2
|
+
import { ApiMemberType } from './api-member-type';
|
|
1
3
|
export interface ApiMemberPublicForm {
|
|
2
4
|
id: string;
|
|
3
5
|
active_from: string | null;
|
|
4
6
|
active_to: string | null;
|
|
7
|
+
comment: string;
|
|
8
|
+
fields: Object | null;
|
|
9
|
+
full_text: string;
|
|
10
|
+
max_registered_in_form_total: number;
|
|
11
|
+
member_types: Array<ApiMemberType>;
|
|
5
12
|
name: string;
|
|
13
|
+
num_registered: number;
|
|
14
|
+
team_help_text: string;
|
|
15
|
+
teams: Array<ApiSearchTeam>;
|
|
6
16
|
url: string;
|
|
7
17
|
user_token: string | null;
|
|
8
18
|
}
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { ApiClub
|
|
1
|
+
import { ApiClub } from './api-club';
|
|
2
|
+
import { ApiSection } from './api-section';
|
|
2
3
|
export interface ApiSearchTeam {
|
|
3
4
|
club: ApiClub | undefined;
|
|
4
5
|
section: ApiSection | undefined;
|
|
5
6
|
id: string;
|
|
7
|
+
club_name: string;
|
|
6
8
|
name: string;
|
|
7
9
|
section_name: string | undefined;
|
|
8
10
|
}
|
|
@@ -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,8 +26,11 @@ 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';
|
|
33
|
+
export * from './api-member-type';
|
|
30
34
|
export * from './api-news';
|
|
31
35
|
export * from './api-partner';
|
|
32
36
|
export * from './api-search-club';
|
|
@@ -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,8 +30,11 @@ 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';
|
|
37
|
+
export * from './member-type';
|
|
34
38
|
export * from './news';
|
|
35
39
|
export * from './partner';
|
|
36
40
|
export * from './role';
|
|
@@ -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,20 @@
|
|
|
1
|
+
import { MemberPublicFormField } from './member-public-form-field';
|
|
2
|
+
import { SearchTeam } from './search-team';
|
|
3
|
+
import { MemberType } from './member-type';
|
|
1
4
|
export declare class MemberPublicForm {
|
|
2
5
|
id: string;
|
|
3
6
|
active_form: string | null;
|
|
4
7
|
active_to: string | null;
|
|
5
8
|
userToken: string | null;
|
|
9
|
+
comment: string;
|
|
10
|
+
fields: Map<string, MemberPublicFormField>;
|
|
11
|
+
full_text: string;
|
|
12
|
+
max_registered_in_form_total: number;
|
|
13
|
+
member_types: Array<MemberType>;
|
|
6
14
|
name: string;
|
|
15
|
+
num_registered: number;
|
|
16
|
+
team_help_text: string;
|
|
17
|
+
teams: Array<SearchTeam>;
|
|
7
18
|
url: string;
|
|
8
|
-
constructor(id: string, active_form: string | null, active_to: string | null, userToken: string | null, name: string, url: string);
|
|
19
|
+
constructor(id: string, active_form: string | null, active_to: string | null, userToken: string | null, comment: string, fields: Map<string, MemberPublicFormField>, full_text: string, max_registered_in_form_total: number, member_types: Array<MemberType>, name: string, num_registered: number, team_help_text: string, teams: Array<SearchTeam>, url: string);
|
|
9
20
|
}
|
|
@@ -4,7 +4,8 @@ export declare class SearchTeam {
|
|
|
4
4
|
club: Club | undefined;
|
|
5
5
|
section: Section | undefined;
|
|
6
6
|
id: string;
|
|
7
|
+
club_name: string;
|
|
7
8
|
name: string;
|
|
8
9
|
section_name: string | undefined;
|
|
9
|
-
constructor(club: Club | undefined, section: Section | undefined, id: string, name: string, section_name: string | undefined);
|
|
10
|
+
constructor(club: Club | undefined, section: Section | undefined, id: string, club_name: string, name: string, section_name: string | undefined);
|
|
10
11
|
}
|
|
@@ -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;
|
|
@@ -40,8 +40,11 @@ export * from './member-invite-factory';
|
|
|
40
40
|
export * from './member-invoice-factory';
|
|
41
41
|
export * from './member-invoice-row-factory';
|
|
42
42
|
export * from './member-public-form-factory';
|
|
43
|
+
export * from './member-public-form-field-factory';
|
|
44
|
+
export * from './member-public-form-field-option-factory';
|
|
43
45
|
export * from './member-team-factory';
|
|
44
46
|
export * from './member-team-through-factory';
|
|
47
|
+
export * from './member-type-factory';
|
|
45
48
|
export * from './member-validation-settings-factory';
|
|
46
49
|
export * from './news-factory';
|
|
47
50
|
export * from './partner-factory';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ApiMemberPublicFormFieldOption } from '../../api-models';
|
|
2
|
+
import { MemberPublicFormFieldOption } from '../../models';
|
|
3
|
+
export declare const memberPublicFormFieldOptionFactory: (apiMemberPublicFormFieldOption: ApiMemberPublicFormFieldOption) => MemberPublicFormFieldOption;
|
package/package.json
CHANGED