@myclub_se/data-access 3.1.10 → 3.1.12
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-settings.mjs +1 -1
- package/esm2022/lib/authentication/authentication.interceptor.mjs +27 -17
- package/esm2022/lib/authentication/authentication.service.mjs +6 -6
- package/esm2022/lib/models/booking-settings.mjs +5 -2
- package/esm2022/lib/services/factories/booking-settings-factory.mjs +2 -2
- package/esm2022/lib/services/token.service.mjs +4 -1
- package/esm2022/lib/store/actions/calendar.actions.mjs +3 -1
- package/esm2022/lib/store/effects/auth.effects.mjs +3 -3
- package/esm2022/lib/store/effects/token.effects.mjs +35 -14
- package/esm2022/lib/store/reducers/calendar.reducer.mjs +3 -3
- package/esm2022/lib/store/reducers/user.reducer.mjs +2 -2
- package/fesm2022/myclub_se-data-access.mjs +80 -41
- package/fesm2022/myclub_se-data-access.mjs.map +1 -1
- package/lib/api-models/api-booking-settings.d.ts +1 -0
- package/lib/authentication/authentication.service.d.ts +3 -3
- package/lib/models/booking-settings.d.ts +3 -1
- package/lib/services/token.service.d.ts +6 -5
- package/lib/store/actions/calendar.actions.d.ts +2 -0
- package/lib/store/effects/token.effects.d.ts +4 -3
- package/package.json +1 -1
|
@@ -31,10 +31,10 @@ export declare class AuthenticationService {
|
|
|
31
31
|
changePublicToken(memberId: string): Observable<PublicAuthentication>;
|
|
32
32
|
getSessionToken(): Observable<Token | null>;
|
|
33
33
|
logout(): Observable<void>;
|
|
34
|
-
reauthenticate(grantType?: GrantType | null): Observable<Token>;
|
|
35
|
-
setAuthentication(accessToken: string, refreshToken: string): void;
|
|
34
|
+
reauthenticate(grantType?: GrantType | null): Observable<Token | null>;
|
|
36
35
|
setPublicToken(token: PublicAuthentication): void;
|
|
37
|
-
setToken(token: Token): void;
|
|
36
|
+
setToken(token: Token | null): void;
|
|
37
|
+
private setAuthentication;
|
|
38
38
|
static ɵfac: i0.ɵɵFactoryDeclaration<AuthenticationService, never>;
|
|
39
39
|
static ɵprov: i0.ɵɵInjectableDeclaration<AuthenticationService>;
|
|
40
40
|
}
|
|
@@ -7,6 +7,7 @@ export declare class BookingSettings {
|
|
|
7
7
|
calendar_max_time: string;
|
|
8
8
|
calendar_session_duration: string;
|
|
9
9
|
should_split_booking_into_zones: boolean;
|
|
10
|
+
should_display_booking_title: boolean;
|
|
10
11
|
static asFormGroup(settings?: BookingSettings): FormGroup<{
|
|
11
12
|
id: FormControl<string | null>;
|
|
12
13
|
calendar_step: FormControl<moment.Moment | null>;
|
|
@@ -14,6 +15,7 @@ export declare class BookingSettings {
|
|
|
14
15
|
calendar_max_time: FormControl<moment.Moment | null>;
|
|
15
16
|
calendar_session_duration: FormControl<moment.Moment | null>;
|
|
16
17
|
should_split_booking_into_zones: FormControl<boolean | null>;
|
|
18
|
+
should_display_booking_title: FormControl<boolean | null>;
|
|
17
19
|
}>;
|
|
18
|
-
constructor(id: string, calendar_step: string, calendar_min_time: string, calendar_max_time: string, calendar_session_duration: string, should_split_booking_into_zones: boolean);
|
|
20
|
+
constructor(id: string, calendar_step: string, calendar_min_time: string, calendar_max_time: string, calendar_session_duration: string, should_split_booking_into_zones: boolean, should_display_booking_title: boolean);
|
|
19
21
|
}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { ApiService } from './api.service';
|
|
2
2
|
import { Token } from '../models';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class TokenService {
|
|
5
6
|
private apiService;
|
|
6
7
|
constructor(apiService: ApiService);
|
|
7
|
-
getTokenByCredentials(clientId: string, clientSecret: string, username: string, password: string):
|
|
8
|
-
getTokenByCode(clientId: string, clientSecret: string, code: string):
|
|
9
|
-
getTokenByRefreshToken(clientId: string, clientSecret: string, refreshToken: string):
|
|
10
|
-
getTokenBySession():
|
|
11
|
-
logout():
|
|
8
|
+
getTokenByCredentials(clientId: string, clientSecret: string, username: string, password: string): Observable<Token>;
|
|
9
|
+
getTokenByCode(clientId: string, clientSecret: string, code: string): Observable<Token>;
|
|
10
|
+
getTokenByRefreshToken(clientId: string, clientSecret: string, refreshToken: string | null): Observable<Token | null>;
|
|
11
|
+
getTokenBySession(): Observable<Token | null>;
|
|
12
|
+
logout(): Observable<void>;
|
|
12
13
|
private getToken;
|
|
13
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<TokenService, never>;
|
|
14
15
|
static ɵprov: i0.ɵɵInjectableDeclaration<TokenService>;
|
|
@@ -2,6 +2,7 @@ import { HttpErrorResponse } from '@angular/common/http';
|
|
|
2
2
|
import { ActivityLocation, ActivityType, Event, OpenActivity } from '../../models';
|
|
3
3
|
import { OpenActivitySearchParamsInterface } from '../../interfaces';
|
|
4
4
|
export declare enum CalendarActionTypes {
|
|
5
|
+
ClearTeamActivities = "[Calendar] Clear team activities",
|
|
5
6
|
ListMemberActivities = "[Calendar] List member activities",
|
|
6
7
|
ListMemberActivitiesFailure = "[Calendar] List member activities failure",
|
|
7
8
|
ListMemberActivitiesSuccess = "[Calendar] List member activities success",
|
|
@@ -39,6 +40,7 @@ export declare enum CalendarActionTypes {
|
|
|
39
40
|
ListTeamActivitiesFailure = "[Calendar] List team activities failure",
|
|
40
41
|
ListTeamActivitiesSuccess = "[Calendar] List team activities success"
|
|
41
42
|
}
|
|
43
|
+
export declare const clearTeamActivitiesAction: import("@ngrx/store").ActionCreator<CalendarActionTypes.ClearTeamActivities, () => import("@ngrx/store").Action<CalendarActionTypes.ClearTeamActivities>>;
|
|
42
44
|
export declare const listMemberActivitiesAction: import("@ngrx/store").ActionCreator<CalendarActionTypes.ListMemberActivities, (props: {
|
|
43
45
|
payload: {
|
|
44
46
|
memberIds: Array<string>;
|
|
@@ -5,6 +5,7 @@ export declare class TokenEffects {
|
|
|
5
5
|
private actions$;
|
|
6
6
|
private authenticationService;
|
|
7
7
|
private storageService;
|
|
8
|
+
private isProcessingFailure;
|
|
8
9
|
clearCurrent$: import("rxjs").Observable<{
|
|
9
10
|
payload: Token | null;
|
|
10
11
|
} & import("@ngrx/store").Action<import("../actions").TokenActionType.SetCurrent>> & import("@ngrx/effects").CreateEffectMetadata;
|
|
@@ -42,10 +43,10 @@ export declare class TokenEffects {
|
|
|
42
43
|
} & import("@ngrx/store").Action<import("../actions").TokenActionType.SetCurrent>) | ({
|
|
43
44
|
payload: Token;
|
|
44
45
|
} & import("@ngrx/store").Action<import("../actions").TokenActionType.LoginSuccess>) | ({
|
|
45
|
-
payload: Token;
|
|
46
|
-
} & import("@ngrx/store").Action<import("../actions").TokenActionType.ReauthenticateSuccess>) | ({
|
|
47
46
|
payload: HttpErrorResponse;
|
|
48
|
-
} & import("@ngrx/store").Action<import("../actions").TokenActionType.ReauthenticateFailure>)
|
|
47
|
+
} & import("@ngrx/store").Action<import("../actions").TokenActionType.ReauthenticateFailure>) | ({
|
|
48
|
+
payload: Token;
|
|
49
|
+
} & import("@ngrx/store").Action<import("../actions").TokenActionType.ReauthenticateSuccess>)> & import("@ngrx/effects").CreateEffectMetadata;
|
|
49
50
|
selectPublicMember$: import("rxjs").Observable<({
|
|
50
51
|
payload: PublicAuthentication;
|
|
51
52
|
} & import("@ngrx/store").Action<import("../actions").TokenActionType.SelectPublicMemberSuccess>) | ({
|
package/package.json
CHANGED