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.
@@ -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<import("@ngrx/store").Action<string> | ({
25
+ loginSend$: import("rxjs").Observable<({
26
26
  payload: {
27
27
  error: any;
28
28
  };
29
- } & import("@ngrx/store").Action<"[Users] Auth Send Error">)> & import("@ngrx/effects").CreateEffectMetadata;
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<import("@ngrx/store").Action<string> | ({
33
+ refreshToken$: import("rxjs").Observable<({
34
34
  payload: {
35
35
  error: any;
36
36
  };
37
- } & import("@ngrx/store").Action<"[Users] Refresh Token Error">)> & import("@ngrx/effects").CreateEffectMetadata;
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;
@@ -10,5 +10,6 @@ export declare enum FieldType {
10
10
  FieldTypeRating = "rating",
11
11
  FieldTypeTags = "tags",
12
12
  FieldTypeJSON = "json",
13
- FieldTypeInputStringList = "input--string-list"
13
+ FieldTypeInputStringList = "input-string-list",
14
+ FieldTGroup = "group"
14
15
  }
@@ -87,4 +87,7 @@ export interface IFormFieldOptions {
87
87
  inputStringList?: {
88
88
  separator?: string;
89
89
  };
90
+ saving?: {
91
+ parentProperty?: string;
92
+ };
90
93
  }
@@ -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
  }
@@ -14,4 +14,8 @@ export interface AppConfig {
14
14
  additions?: {
15
15
  [key: string]: any;
16
16
  };
17
+ tokenCookiesName?: {
18
+ accessToken: string;
19
+ refreshAccessToken: string;
20
+ };
17
21
  }
@@ -0,0 +1,4 @@
1
+ export { UsersEndpointTypes } from './users-endpoint-types';
2
+ export { UsersRequestConfig } from './users-request-config';
3
+ export { UsersResponse } from './users-response';
4
+ export * from './permissions';
@@ -0,0 +1 @@
1
+ export * from './request';
@@ -0,0 +1,2 @@
1
+ export { PermissionsRequest } from './permissions-request';
2
+ export { PermissionsRequestConfig } from './permissions-request-config';
@@ -0,0 +1,5 @@
1
+ import { UsersRequestConfig } from '../../users-request-config';
2
+ import { UserAuthHeaders } from "../../../../models/user";
3
+ export interface PermissionsRequestConfig extends UsersRequestConfig {
4
+ headers: UserAuthHeaders;
5
+ }
@@ -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
+ }
@@ -0,0 +1,3 @@
1
+ export declare enum UsersEndpointTypes {
2
+ PERMISSIONS = "permissions"
3
+ }
@@ -0,0 +1,3 @@
1
+ import { RequestConfig } from '../../endpoints/http/request/request-config';
2
+ export interface UsersRequestConfig extends RequestConfig {
3
+ }
@@ -0,0 +1,3 @@
1
+ import { Response } from '../../../models/endpoints/http/response';
2
+ export interface UsersResponse extends Response {
3
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wt-front-shared",
3
- "version": "19.0.31",
3
+ "version": "19.0.33",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^19.2.14",
6
6
  "@angular/core": "^19.2.14",