wt-front-shared 19.0.31 → 19.0.33
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/fesm2022/wt-front-shared.mjs +168 -95
- package/fesm2022/wt-front-shared.mjs.map +1 -1
- package/lib/core/+state/static-data/static-data.facade.d.ts +1 -0
- package/lib/core/+state/users/users.effects.d.ts +4 -4
- package/lib/core/components/auto-form/interfaces/field-type.d.ts +2 -1
- package/lib/core/components/auto-form/interfaces/form-field-others.d.ts +3 -0
- package/lib/core/components/static-data/containers/static-data-details/static-data-details.component.d.ts +2 -0
- package/lib/core/pipes/phone.pipe.d.ts +1 -1
- package/lib/core/services/auth/authentication.service.d.ts +5 -2
- package/lib/core/services/users/users.service.d.ts +2 -0
- package/lib/models/config/app-config.d.ts +4 -0
- package/lib/models/endpoints/users/index.d.ts +4 -0
- package/lib/models/endpoints/users/permissions/index.d.ts +1 -0
- package/lib/models/endpoints/users/permissions/request/index.d.ts +2 -0
- package/lib/models/endpoints/users/permissions/request/permissions-request-config.d.ts +5 -0
- package/lib/models/endpoints/users/permissions/request/permissions-request.d.ts +10 -0
- package/lib/models/endpoints/users/users-endpoint-types.d.ts +3 -0
- package/lib/models/endpoints/users/users-request-config.d.ts +3 -0
- package/lib/models/endpoints/users/users-response.d.ts +3 -0
- package/package.json +1 -1
|
@@ -30,6 +30,7 @@ export declare class StaticDataFacade {
|
|
|
30
30
|
}>;
|
|
31
31
|
getStaticDataItem$(contentType: string, subSection: string, itemIdOrSlug: number | string, langId?: number): Observable<StaticDataModel>;
|
|
32
32
|
getStaticDataRevision(contentType?: string): Promise<string>;
|
|
33
|
+
getStaticDataRevisionObservable(contentType?: string): Observable<null | string>;
|
|
33
34
|
getStaticDataRevisions(contentTypes?: string[]): Promise<string[]>;
|
|
34
35
|
loadStaticData(contentType: string, params?: LoadStaticDataParams, subSection?: string): void;
|
|
35
36
|
loadStaticDataSubRouting(contentType: string, routing: any, data: any, revision?: string): void;
|
|
@@ -22,19 +22,19 @@ export declare class UsersEffects {
|
|
|
22
22
|
protected notificationsFacade: NotificationsFacade;
|
|
23
23
|
GlobalEvent$: import("rxjs").Observable<HttpClientResult<BaseResponse>> & import("@ngrx/effects").CreateEffectMetadata;
|
|
24
24
|
GlobalEvent2$: import("rxjs").Observable<HttpClientResult<BaseResponse>> & import("@ngrx/effects").CreateEffectMetadata;
|
|
25
|
-
loginSend$: import("rxjs").Observable<
|
|
25
|
+
loginSend$: import("rxjs").Observable<({
|
|
26
26
|
payload: {
|
|
27
27
|
error: any;
|
|
28
28
|
};
|
|
29
|
-
} & import("@ngrx/store").Action<"[Users] Auth Send Error">)
|
|
29
|
+
} & import("@ngrx/store").Action<"[Users] Auth Send Error">) | import("@ngrx/store").Action<string>> & import("@ngrx/effects").CreateEffectMetadata;
|
|
30
30
|
loginSendSuccess$: import("rxjs").Observable<{
|
|
31
31
|
payload: UsersAction.LoginSendSuccessPayload;
|
|
32
32
|
} & import("@ngrx/store").Action<"[Users] Auth Send Success">> & import("@ngrx/effects").CreateEffectMetadata;
|
|
33
|
-
refreshToken$: import("rxjs").Observable<
|
|
33
|
+
refreshToken$: import("rxjs").Observable<({
|
|
34
34
|
payload: {
|
|
35
35
|
error: any;
|
|
36
36
|
};
|
|
37
|
-
} & import("@ngrx/store").Action<"[Users] Refresh Token Error">)
|
|
37
|
+
} & import("@ngrx/store").Action<"[Users] Refresh Token Error">) | import("@ngrx/store").Action<string>> & import("@ngrx/effects").CreateEffectMetadata;
|
|
38
38
|
refreshTokenSuccess$: import("rxjs").Observable<[{
|
|
39
39
|
payload: UsersAction.RefreshTokenSuccessPayment;
|
|
40
40
|
} & import("@ngrx/store").Action<"[Users] Refresh Token Success 2">, import("wt-front-shared").UsersState]> & import("@ngrx/effects").CreateEffectMetadata;
|
|
@@ -150,7 +150,9 @@ export declare class StaticDataDetailsComponent implements OnInit, OnDestroy, On
|
|
|
150
150
|
private subscribeToRoute;
|
|
151
151
|
private init;
|
|
152
152
|
private preLoadSections;
|
|
153
|
+
private getEntityFields;
|
|
153
154
|
private staticDataSubscription;
|
|
155
|
+
private getDataForForm;
|
|
154
156
|
private initForm;
|
|
155
157
|
private subscribeToDataStatus;
|
|
156
158
|
private submitClickHandler;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class PhonePipe implements PipeTransform {
|
|
4
|
-
transform(number: any[]): string;
|
|
4
|
+
transform(number: any[] | string): string;
|
|
5
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<PhonePipe, never>;
|
|
6
6
|
static ɵpipe: i0.ɵɵPipeDeclaration<PhonePipe, "phoneFormat", false>;
|
|
7
7
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
2
|
import { ActivatedRoute } from '@angular/router';
|
|
3
3
|
import { UserModel } from '../../../models/models/user/user-model';
|
|
4
|
-
import { UserSectionRightModel } from "../../../models";
|
|
4
|
+
import { AppConfig, UserSectionRightModel } from "../../../models";
|
|
5
|
+
import { CookieService } from "ngx-cookie-service";
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export interface UserAuthInfo {
|
|
7
8
|
token: string;
|
|
@@ -22,11 +23,13 @@ export interface UserAuthInfo {
|
|
|
22
23
|
}
|
|
23
24
|
export declare class AuthenticationService {
|
|
24
25
|
private platformId;
|
|
26
|
+
private config;
|
|
25
27
|
protected route: ActivatedRoute;
|
|
28
|
+
private cookieService;
|
|
26
29
|
haveLocalStorage: boolean;
|
|
27
30
|
currentUser: Observable<UserModel>;
|
|
28
31
|
private currentUserSubject;
|
|
29
|
-
constructor(platformId: any, route: ActivatedRoute);
|
|
32
|
+
constructor(platformId: any, config: AppConfig, route: ActivatedRoute, cookieService: CookieService);
|
|
30
33
|
get isGuest(): boolean;
|
|
31
34
|
get currentUserValue(): UserModel;
|
|
32
35
|
loadAuthDataFromLocalStore(): UserAuthInfo;
|
|
@@ -7,6 +7,7 @@ import { AppConfig } from "../../../models";
|
|
|
7
7
|
import { FormsFacade } from "../../+state/forms";
|
|
8
8
|
import { HttpClientResult } from "../../models/http-client-result";
|
|
9
9
|
import { RefreshTokenRequestConfig } from "../../../models/endpoints/auth/refresh-token";
|
|
10
|
+
import { PermissionsRequestConfig } from "../../../models/endpoints/users";
|
|
10
11
|
import * as i0 from "@angular/core";
|
|
11
12
|
export declare class UsersService extends BaseAPIService {
|
|
12
13
|
protected httpClient: HttpClient;
|
|
@@ -16,6 +17,7 @@ export declare class UsersService extends BaseAPIService {
|
|
|
16
17
|
constructor(httpClient: HttpClient, config: AppConfig, requestsFacade: RequestsFacade, formsFacade: FormsFacade);
|
|
17
18
|
loginSend(config: LoginSendCreateRequestConfig): Observable<HttpClientResult<AuthResponse>>;
|
|
18
19
|
refreshToken(config: RefreshTokenRequestConfig): Observable<HttpClientResult<AuthResponse>>;
|
|
20
|
+
permissions(config: PermissionsRequestConfig): Observable<HttpClientResult<AuthResponse>>;
|
|
19
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<UsersService, never>;
|
|
20
22
|
static ɵprov: i0.ɵɵInjectableDeclaration<UsersService>;
|
|
21
23
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './request';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { PermissionsRequestConfig } from './permissions-request-config';
|
|
2
|
+
import { GetRequest } from "../../../http";
|
|
3
|
+
export declare class PermissionsRequest extends GetRequest {
|
|
4
|
+
protected domain: string;
|
|
5
|
+
private config;
|
|
6
|
+
constructor(domain: string, config: PermissionsRequestConfig);
|
|
7
|
+
get url(): string;
|
|
8
|
+
get headers(): import("../../../http").RequestHeaders;
|
|
9
|
+
get params(): any;
|
|
10
|
+
}
|