@myclub_se/data-access 3.1.8 → 3.1.10
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-session.mjs +1 -1
- package/esm2022/lib/api-models/api-booking-calendar.mjs +1 -1
- package/esm2022/lib/models/booking-calendar-slot-session.mjs +6 -2
- package/esm2022/lib/models/booking-calendar.mjs +5 -2
- package/esm2022/lib/services/booking-calendar.service.mjs +11 -1
- package/esm2022/lib/services/factories/booking-calendar-factory.mjs +2 -2
- package/esm2022/lib/services/factories/booking-calendar-slot-session-factory.mjs +2 -2
- package/esm2022/lib/services/index.mjs +2 -1
- package/esm2022/lib/services/member-fee.service.mjs +41 -0
- package/esm2022/lib/store/actions/index.mjs +2 -1
- package/esm2022/lib/store/actions/member-fee.actions.mjs +11 -0
- package/esm2022/lib/store/effects/data-access.effects.mjs +3 -1
- package/esm2022/lib/store/effects/member-fee.effects.mjs +18 -0
- package/esm2022/lib/store/reducers/data-access.reducer.mjs +3 -1
- package/esm2022/lib/store/reducers/member-fee.reducer.mjs +12 -0
- package/esm2022/lib/store/selectors/index.mjs +2 -1
- package/esm2022/lib/store/selectors/member-fee.selectors.mjs +5 -0
- package/esm2022/lib/store/state/data-access.state.mjs +1 -1
- package/esm2022/lib/store/state/index.mjs +2 -1
- package/esm2022/lib/store/state/member-fee.state.mjs +5 -0
- package/fesm2022/myclub_se-data-access.mjs +118 -27
- package/fesm2022/myclub_se-data-access.mjs.map +1 -1
- package/lib/api-models/api-booking-calendar-slot-session.d.ts +2 -0
- package/lib/api-models/api-booking-calendar.d.ts +1 -0
- package/lib/models/booking-calendar-slot-session.d.ts +3 -1
- package/lib/models/booking-calendar.d.ts +3 -1
- package/lib/services/booking-calendar.service.d.ts +1 -0
- package/lib/services/index.d.ts +1 -0
- package/lib/services/member-fee.service.d.ts +12 -0
- package/lib/store/actions/index.d.ts +1 -0
- package/lib/store/actions/member-fee.actions.d.ts +24 -0
- package/lib/store/effects/data-access.effects.d.ts +2 -1
- package/lib/store/effects/member-fee.effects.d.ts +14 -0
- package/lib/store/reducers/member-fee.reducer.d.ts +2 -0
- package/lib/store/selectors/index.d.ts +1 -0
- package/lib/store/selectors/member-fee.selectors.d.ts +3 -0
- package/lib/store/state/data-access.state.d.ts +2 -0
- package/lib/store/state/index.d.ts +1 -0
- package/lib/store/state/member-fee.state.d.ts +6 -0
- package/package.json +1 -1
|
@@ -32,6 +32,8 @@ export declare class BookingCalendarSlotSession {
|
|
|
32
32
|
readonly member_email: string | null;
|
|
33
33
|
readonly price: number;
|
|
34
34
|
readonly payment_order_id: string | null;
|
|
35
|
+
readonly pay_until: string | null;
|
|
36
|
+
readonly is_paid: boolean | null;
|
|
35
37
|
static asFormGroup(session?: BookingCalendarSlotSession): FormGroup<{
|
|
36
38
|
id: FormControl<string | null>;
|
|
37
39
|
section_id: FormControl<string | null>;
|
|
@@ -54,5 +56,5 @@ export declare class BookingCalendarSlotSession {
|
|
|
54
56
|
bookable_part_id: FormControl<string | null>;
|
|
55
57
|
member_id: FormControl<string | null>;
|
|
56
58
|
}>;
|
|
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, repeat: boolean, activity_type_id: string | null, color: string | null, update_repeating: boolean, update_until_date: 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);
|
|
59
|
+
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_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);
|
|
58
60
|
}
|
|
@@ -21,6 +21,7 @@ export declare class BookingCalendar {
|
|
|
21
21
|
bookable_groups?: BookableGroup[] | null | undefined;
|
|
22
22
|
type?: string | null | undefined;
|
|
23
23
|
type_display?: string | null | undefined;
|
|
24
|
+
member_fee_id?: string | null | undefined;
|
|
24
25
|
static asFormGroup(calendar?: BookingCalendar): FormGroup<{
|
|
25
26
|
id: FormControl<string | null>;
|
|
26
27
|
club_id: FormControl<string | null>;
|
|
@@ -40,6 +41,7 @@ export declare class BookingCalendar {
|
|
|
40
41
|
type: FormControl<string | null>;
|
|
41
42
|
price_per_hour: FormControl<number | null>;
|
|
42
43
|
payment_limit_in_minutes: FormControl<number | null>;
|
|
44
|
+
member_fee_id: FormControl<string | null>;
|
|
43
45
|
}>;
|
|
44
|
-
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, payment_limit_in_minutes?: number, price_per_hour?: number, available_for_teams?: SearchTeam[] | null | undefined, bookable_groups?: BookableGroup[] | null | undefined, type?: string | null | undefined, type_display?: string | null | undefined);
|
|
46
|
+
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, payment_limit_in_minutes?: number, price_per_hour?: number, available_for_teams?: SearchTeam[] | null | undefined, bookable_groups?: BookableGroup[] | null | undefined, type?: string | null | undefined, type_display?: string | null | undefined, member_fee_id?: string | null | undefined);
|
|
45
47
|
}
|
|
@@ -80,6 +80,7 @@ export declare class BookingCalendarService {
|
|
|
80
80
|
deleteBookingCalendarSlotSessionRepeatable(role: Role, clubOrSectionOrTeamId: string, id: string, deleteUntilDate: string | null): import("rxjs").Observable<boolean>;
|
|
81
81
|
private deleteClubBookingCalendarSlotSessionRepeatable;
|
|
82
82
|
private deleteSectionBookingCalendarSlotSessionRepeatable;
|
|
83
|
+
private deleteTeamBookingCalendarSlotSessionRepeatable;
|
|
83
84
|
getBookingSettings(role: Role, itemId: string): import("rxjs").Observable<BookingSettings>;
|
|
84
85
|
private getClubBookingSettings;
|
|
85
86
|
private getSectionBookingSettings;
|
package/lib/services/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ export * from './invoice';
|
|
|
12
12
|
export * from './maintenance-mode.service';
|
|
13
13
|
export * from './member.service';
|
|
14
14
|
export * from './member-card.service';
|
|
15
|
+
export * from './member-fee.service';
|
|
15
16
|
export * from './member-public-form.service';
|
|
16
17
|
export * from './news.service';
|
|
17
18
|
export * from './registration-qr-code.service';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ApiService } from './api.service';
|
|
2
|
+
import { Role } from '../models';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class MemberFeeService {
|
|
5
|
+
private apiService;
|
|
6
|
+
constructor(apiService: ApiService);
|
|
7
|
+
getMemberFees(role: Role, itemId: string): import("rxjs").Observable<import("../models").Collection<import("../models").MemberFee>>;
|
|
8
|
+
getClubMemberFees(clubId: string): import("rxjs").Observable<import("../models").Collection<import("../models").MemberFee>>;
|
|
9
|
+
getSectionMemberFees(sectionId: string): import("rxjs").Observable<import("../models").Collection<import("../models").MemberFee>>;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MemberFeeService, never>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MemberFeeService>;
|
|
12
|
+
}
|
|
@@ -10,6 +10,7 @@ export * from './file.actions';
|
|
|
10
10
|
export * from './invoice.actions';
|
|
11
11
|
export * from './member.actions';
|
|
12
12
|
export * from './member-card.actions';
|
|
13
|
+
export * from './member-fee.actions';
|
|
13
14
|
export * from './news.actions';
|
|
14
15
|
export * from './public-form.actions';
|
|
15
16
|
export * from './store.actions';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { HttpErrorResponse } from '@angular/common/http';
|
|
2
|
+
import { MemberFee, Role } from '../../models';
|
|
3
|
+
export declare enum MemberFeeActionType {
|
|
4
|
+
List = "[MemberFee] List",
|
|
5
|
+
ListFailure = "[MemberFee] List failure",
|
|
6
|
+
ListSuccess = "[MemberFee] List success"
|
|
7
|
+
}
|
|
8
|
+
export declare const listMemberFeesAction: import("@ngrx/store").ActionCreator<MemberFeeActionType.List, (props: {
|
|
9
|
+
role: Role;
|
|
10
|
+
itemId: string;
|
|
11
|
+
}) => {
|
|
12
|
+
role: Role;
|
|
13
|
+
itemId: string;
|
|
14
|
+
} & import("@ngrx/store").Action<MemberFeeActionType.List>>;
|
|
15
|
+
export declare const listMemberFeesFailureAction: import("@ngrx/store").ActionCreator<MemberFeeActionType.ListFailure, (props: {
|
|
16
|
+
payload: HttpErrorResponse;
|
|
17
|
+
}) => {
|
|
18
|
+
payload: HttpErrorResponse;
|
|
19
|
+
} & import("@ngrx/store").Action<MemberFeeActionType.ListFailure>>;
|
|
20
|
+
export declare const listMemberFeesSuccessAction: import("@ngrx/store").ActionCreator<MemberFeeActionType.ListSuccess, (props: {
|
|
21
|
+
fees: Array<MemberFee>;
|
|
22
|
+
}) => {
|
|
23
|
+
fees: Array<MemberFee>;
|
|
24
|
+
} & import("@ngrx/store").Action<MemberFeeActionType.ListSuccess>>;
|
|
@@ -16,4 +16,5 @@ import { SwishIncidentsEffects } from './swish-incidents.effects';
|
|
|
16
16
|
import { TeamEffects } from './team.effects';
|
|
17
17
|
import { TokenEffects } from './token.effects';
|
|
18
18
|
import { UserEffects } from './user.effects';
|
|
19
|
-
|
|
19
|
+
import { MemberFeeEffects } from "./member-fee.effects";
|
|
20
|
+
export declare const dataAccessEffects: (typeof ActivityEffects | typeof AuthEffects | typeof BookingEffects | typeof CalendarEffects | typeof ClubInfoEffects | typeof ConstantEffects | typeof EmailEffects | typeof ExternalLinkEffects | typeof FileEffects | typeof InvoiceEffects | typeof MemberEffects | typeof MemberCardEffects | typeof NewsEffects | typeof PublicFormEffects | typeof SwishIncidentsEffects | typeof TeamEffects | typeof TokenEffects | typeof UserEffects | typeof MemberFeeEffects)[];
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { MemberFee } from '../../models';
|
|
2
|
+
import { HttpErrorResponse } from '@angular/common/http';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class MemberFeeEffects {
|
|
5
|
+
private actions$;
|
|
6
|
+
private memberFeeService;
|
|
7
|
+
listMemberFees$: import("rxjs").Observable<({
|
|
8
|
+
fees: MemberFee[];
|
|
9
|
+
} & import("@ngrx/store").Action<import("../actions").MemberFeeActionType.ListSuccess>) | ({
|
|
10
|
+
payload: HttpErrorResponse;
|
|
11
|
+
} & import("@ngrx/store").Action<import("../actions").MemberFeeActionType.ListFailure>)> & import("@ngrx/effects").CreateEffectMetadata;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MemberFeeEffects, never>;
|
|
13
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MemberFeeEffects>;
|
|
14
|
+
}
|
|
@@ -9,6 +9,7 @@ export * from './file.selectors';
|
|
|
9
9
|
export * from './invoice.selectors';
|
|
10
10
|
export * from './member.selectors';
|
|
11
11
|
export * from './member-card.selectors';
|
|
12
|
+
export * from './member-fee.selectors';
|
|
12
13
|
export * from './news.selectors';
|
|
13
14
|
export * from './public-form.selectors';
|
|
14
15
|
export * from './public.selectors';
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { DataAccessState, MemberFeeState } from '../state';
|
|
2
|
+
export declare const memberFeeState: import("@ngrx/store").MemoizedSelector<object, MemberFeeState, (s1: DataAccessState) => MemberFeeState>;
|
|
3
|
+
export declare const selectMemberFees: import("@ngrx/store").MemoizedSelector<object, import("@myclub_se/data-access").ListResultInterface<import("@myclub_se/data-access").MemberFee>, (s1: MemberFeeState) => import("@myclub_se/data-access").ListResultInterface<import("@myclub_se/data-access").MemberFee>>;
|
|
@@ -15,6 +15,7 @@ import { TeamState } from './team.state';
|
|
|
15
15
|
import { TokenState } from './token.state';
|
|
16
16
|
import { UserState } from './user.state';
|
|
17
17
|
import { BookingState } from './booking.state';
|
|
18
|
+
import { MemberFeeState } from "./member-fee.state";
|
|
18
19
|
export interface DataAccessState {
|
|
19
20
|
auth: AuthState;
|
|
20
21
|
booking: BookingState;
|
|
@@ -27,6 +28,7 @@ export interface DataAccessState {
|
|
|
27
28
|
invoices: InvoiceState;
|
|
28
29
|
members: MemberState;
|
|
29
30
|
memberCards: MemberCardState;
|
|
31
|
+
memberFees: MemberFeeState;
|
|
30
32
|
news: NewsState;
|
|
31
33
|
public: PublicState;
|
|
32
34
|
publicForms: PublicFormState;
|
|
@@ -10,6 +10,7 @@ export * from './invoice.state';
|
|
|
10
10
|
export * from './file.state';
|
|
11
11
|
export * from './member.state';
|
|
12
12
|
export * from './member-card.state';
|
|
13
|
+
export * from './member-fee.state';
|
|
13
14
|
export * from './news.state';
|
|
14
15
|
export * from './public-form.state';
|
|
15
16
|
export * from './public.state';
|
package/package.json
CHANGED