monkey-front-core 0.0.305 → 0.0.307

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.
@@ -11,6 +11,7 @@ export declare class MonkeyEcxHttpConfigErrorInterceptor implements HttpIntercep
11
11
  private monkeyecxAuthenticationService;
12
12
  private monkeyecxErrorHandlingService;
13
13
  constructor(monkeyecxAuthenticationService: MonkeyEcxAuthenticationService, monkeyecxErrorHandlingService: MonkeyEcxErrorHandlingService);
14
+ private handle;
14
15
  intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
15
16
  static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyEcxHttpConfigErrorInterceptor, never>;
16
17
  static ɵprov: i0.ɵɵInjectableDeclaration<MonkeyEcxHttpConfigErrorInterceptor>;
@@ -1,8 +1,8 @@
1
1
  import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';
2
2
  import { Observable } from 'rxjs';
3
- import { MonkeyEcxErrorHandlingService } from '../services/error';
4
- import { MonkeyEcxAuthenticationService } from '../services/auth';
5
3
  import { MonkeyEcxConfigService } from '../services';
4
+ import { MonkeyEcxAuthenticationService } from '../services/auth';
5
+ import { MonkeyEcxErrorHandlingService } from '../services/error';
6
6
  import * as i0 from "@angular/core";
7
7
  export declare class MonkeyEcxHttpConfigHeaderInterceptor implements HttpInterceptor {
8
8
  private authService;
@@ -1,11 +1,10 @@
1
1
  import { CanActivate } from '@angular/router';
2
- import { Observable } from 'rxjs';
3
2
  import { MonkeyEcxAuthenticationService } from './monkeyecx-authentication.service';
4
3
  import * as i0 from "@angular/core";
5
4
  export declare class MonkeyEcxAuthGuardCompany implements CanActivate {
6
5
  private monkeyecxAuthenticationService;
7
6
  constructor(monkeyecxAuthenticationService: MonkeyEcxAuthenticationService);
8
- canActivate(): Observable<boolean> | Promise<boolean> | boolean;
7
+ canActivate(): Promise<boolean>;
9
8
  static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyEcxAuthGuardCompany, never>;
10
9
  static ɵprov: i0.ɵɵInjectableDeclaration<MonkeyEcxAuthGuardCompany>;
11
10
  }
@@ -1,11 +1,10 @@
1
1
  import { CanActivate } from '@angular/router';
2
- import { Observable } from 'rxjs';
3
2
  import { MonkeyEcxAuthenticationService } from './monkeyecx-authentication.service';
4
3
  import * as i0 from "@angular/core";
5
4
  export declare class MonkeyEcxAuthGuardLogin implements CanActivate {
6
5
  private monkeyecxAuthenticationService;
7
6
  constructor(monkeyecxAuthenticationService: MonkeyEcxAuthenticationService);
8
- canActivate(): Observable<boolean> | Promise<boolean> | boolean;
7
+ canActivate(): Promise<boolean>;
9
8
  static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyEcxAuthGuardLogin, never>;
10
9
  static ɵprov: i0.ɵɵInjectableDeclaration<MonkeyEcxAuthGuardLogin>;
11
10
  }
@@ -1,11 +1,10 @@
1
1
  import { CanActivate } from '@angular/router';
2
- import { Observable } from 'rxjs';
3
2
  import { MonkeyEcxAuthenticationService } from './monkeyecx-authentication.service';
4
3
  import * as i0 from "@angular/core";
5
4
  export declare class MonkeyEcxAuthGuard implements CanActivate {
6
5
  private monkeyecxAuthenticationService;
7
6
  constructor(monkeyecxAuthenticationService: MonkeyEcxAuthenticationService);
8
- canActivate(): Observable<boolean> | Promise<boolean> | boolean;
7
+ canActivate(): Promise<boolean>;
9
8
  static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyEcxAuthGuard, never>;
10
9
  static ɵprov: i0.ɵɵInjectableDeclaration<MonkeyEcxAuthGuard>;
11
10
  }
@@ -1,18 +1,19 @@
1
- import { Observable } from 'rxjs';
2
1
  import { HttpErrorResponse, HttpRequest } from '@angular/common/http';
2
+ import { Observable } from 'rxjs';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class MonkeyEcxAuthenticationService {
5
5
  constructor();
6
- hadAtLeastOneLogin: () => null;
6
+ hadAtLeastOneLogin: () => Promise<null>;
7
7
  redirectApp: () => null;
8
8
  redirectLoginWelcomeBack: () => null;
9
- isAuthorized: () => boolean;
10
- isCompanyAuthorized: () => boolean;
9
+ isAuthorized: () => Promise<boolean>;
10
+ isCompanyAuthorized: () => Promise<boolean>;
11
11
  isTokenMandatory: (url: string) => boolean;
12
12
  getRequestWithHeaders: (request: HttpRequest<any>) => HttpRequest<any> | any;
13
13
  getRequestWithHeadersOb: (request: HttpRequest<any>) => Observable<any> | any;
14
+ getRequestWithHeadersAsync: (request: HttpRequest<any>) => Promise<null>;
14
15
  refreshShouldHappen: (response: HttpErrorResponse) => boolean;
15
- refreshToken: () => Observable<any> | null;
16
+ refreshToken: () => Promise<null>;
16
17
  init(args: {
17
18
  hadAtLeastOneLogin?: any;
18
19
  redirectApp?: any;
@@ -21,6 +22,7 @@ export declare class MonkeyEcxAuthenticationService {
21
22
  isTokenMandatory?: any;
22
23
  isCompanyAuthorized?: any;
23
24
  getRequestWithHeaders?: any;
25
+ getRequestWithHeadersAsync?: any;
24
26
  getRequestWithHeadersOb?: any;
25
27
  refreshShouldHappen?: any;
26
28
  refreshToken?: any;
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "monkey-front-core",
3
- "version": "0.0.305",
3
+ "version": "0.0.307",
4
4
  "peerDependencies": {
5
5
  "@angular/cdk": "^13.1.1",
6
6
  "@angular/common": "^13.1.1",
Binary file