nuxeo-development-framework 3.4.1 → 3.4.2

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.
@@ -1,14 +1,31 @@
1
1
  import { KeycloakService } from 'keycloak-angular';
2
2
  import { NuxeoService } from '../nuxeo/nuxeo.service';
3
3
  import { UserPreferencesService } from '../user/user-preferences.service';
4
+ import { LocalStoragService } from '../localStorag/local-storag.service';
5
+ import { Router } from '@angular/router';
6
+ import { HttpClient } from '@angular/common/http';
7
+ import { Subscription } from 'rxjs';
8
+ import { CookieService } from 'ngx-cookie-service';
4
9
  import * as i0 from "@angular/core";
5
10
  export declare class InitializationService {
6
11
  private keycloak;
7
12
  private nuxeoService;
13
+ private router;
14
+ private cookieService;
15
+ private httpClient;
16
+ private storage;
8
17
  private userPreferences;
9
18
  private environment;
10
- constructor(keycloak: KeycloakService, nuxeoService: NuxeoService, userPreferences: UserPreferencesService, environment: any);
11
- initializer(): Promise<unknown>;
19
+ routerSubscription: Subscription;
20
+ constructor(keycloak: KeycloakService, nuxeoService: NuxeoService, router: Router, cookieService: CookieService, httpClient: HttpClient, storage: LocalStoragService, userPreferences: UserPreferencesService, environment: any);
21
+ initializer(loginMethod?: string): Promise<unknown>;
22
+ initiateKeyClock(): Promise<any>;
23
+ initiateNuxeoLogin(resolve: any, reject: any): void;
24
+ getFromNuxeo(code: any): import("rxjs").Observable<Object>;
25
+ initiateClientWithNuxeo(token: any, resolve: any, reject: any): void;
26
+ login(): void;
27
+ encriptFormating(cachable: any): string;
28
+ decriptFormating(formate: string): any;
12
29
  static ɵfac: i0.ɵɵFactoryDeclaration<InitializationService, never>;
13
30
  static ɵprov: i0.ɵɵInjectableDeclaration<InitializationService>;
14
31
  }
@@ -0,0 +1,13 @@
1
+ import { CookieService } from "ngx-cookie-service";
2
+ declare const Nuxeo: any;
3
+ export declare class NewNuxeoOverride extends Nuxeo {
4
+ private environment;
5
+ private cookieService;
6
+ constructor(opts: {}, environment: any, cookieService: CookieService);
7
+ http(opts?: any): any;
8
+ refreshAccessToken(): Promise<any>;
9
+ login(): void;
10
+ logout(): void;
11
+ encriptFormating(cachable: any): string;
12
+ }
13
+ export {};
@@ -2,12 +2,14 @@ import { HttpClient } from '@angular/common/http';
2
2
  import { KeycloakService } from 'keycloak-angular';
3
3
  import { Observable } from 'rxjs';
4
4
  import { RolesService } from '../roles/roles.service';
5
+ import { CookieService } from 'ngx-cookie-service';
5
6
  import * as i0 from "@angular/core";
6
7
  export declare class NuxeoService {
7
8
  private http;
8
9
  private keycloak;
9
10
  private baseHref;
10
11
  private environment;
12
+ private cookiesService;
11
13
  private rolesService;
12
14
  nuxeoClient: any;
13
15
  excludedUrls: any[];
@@ -15,8 +17,10 @@ export declare class NuxeoService {
15
17
  authenticated: boolean;
16
18
  token: any;
17
19
  tokenObservable: any;
18
- constructor(http: HttpClient, keycloak: KeycloakService, baseHref: string, environment: any, rolesService: RolesService);
20
+ constructor(http: HttpClient, keycloak: KeycloakService, baseHref: string, environment: any, cookiesService: CookieService, rolesService: RolesService);
19
21
  init(): Promise<any>;
22
+ initWithNuxeoToken(token: any): Promise<unknown>;
23
+ createClientWithNuxeoToken(token: any): void;
20
24
  createTokenClient(token: any): void;
21
25
  getToken(): Promise<string>;
22
26
  doLogout(): void;
@@ -5,12 +5,18 @@ import { KeycloakService } from "keycloak-angular";
5
5
  import { Observable, ReplaySubject } from "rxjs";
6
6
  import { NuxeoService } from "../../Core/services/nuxeo/nuxeo.service";
7
7
  import { TranslationService } from "../../Core/services/translation/translation.service";
8
+ import { LocalStoragService } from "../../Core/services/localStorag/local-storag.service";
9
+ import { InitializationService } from "../../Core/services/initialization/initialization.service";
10
+ import { CookieService } from 'ngx-cookie-service';
8
11
  import * as i0 from "@angular/core";
9
12
  export declare class NotificationsService {
10
13
  private http;
11
14
  router: Router;
12
15
  nuxeoService: NuxeoService;
13
16
  private keycloak;
17
+ private cookieService;
18
+ private localStorag;
19
+ private intializationService;
14
20
  private translationService;
15
21
  private environment;
16
22
  stompClient: any;
@@ -32,7 +38,7 @@ export declare class NotificationsService {
32
38
  };
33
39
  systemLang: string;
34
40
  langChanged: boolean;
35
- constructor(http: HttpClient, router: Router, nuxeoService: NuxeoService, keycloak: KeycloakService, translationService: TranslationService, environment: any);
41
+ constructor(http: HttpClient, router: Router, nuxeoService: NuxeoService, keycloak: KeycloakService, cookieService: CookieService, localStorag: LocalStoragService, intializationService: InitializationService, translationService: TranslationService, environment: any);
36
42
  getCount(): Observable<any>;
37
43
  reset(): void;
38
44
  resetNotifications(): void;
@@ -59,6 +65,7 @@ export declare class NotificationsService {
59
65
  unsubscribe(): void;
60
66
  private createConnection;
61
67
  testNotification(): Observable<any>;
68
+ getCachable(): any;
62
69
  static ɵfac: i0.ɵɵFactoryDeclaration<NotificationsService, never>;
63
70
  static ɵprov: i0.ɵɵInjectableDeclaration<NotificationsService>;
64
71
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxeo-development-framework",
3
- "version": "3.4.1",
3
+ "version": "3.4.2",
4
4
  "peerDependencies": {
5
5
  "@angular/animations": "12.2.3",
6
6
  "@angular/common": "12.2.3",
@@ -55,7 +55,8 @@
55
55
  "webstomp-client": "^1.2.6",
56
56
  "file-saver": "^2.0.5",
57
57
  "devextreme": "23.1",
58
- "devextreme-angular": "^23.1"
58
+ "devextreme-angular": "^23.1",
59
+ "ngx-cookie-service": "^12.0.3"
59
60
  },
60
61
  "dependencies": {
61
62
  "tslib": "^2.3.0"