monkey-front-core 0.0.194 → 0.0.197
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/esm2020/lib/core/directives/monkeyecx-feature-by-program-directive.mjs +2 -2
- package/esm2020/lib/core/interceptors/monkeyecx-http-config-header.interceptor.mjs +54 -11
- package/esm2020/lib/core/services/auth/monkeyecx-authentication.service.mjs +5 -1
- package/esm2020/lib/core/services/commons/monkeyecx-commons.service.mjs +4 -4
- package/fesm2015/monkey-front-core.mjs +73 -26
- package/fesm2015/monkey-front-core.mjs.map +1 -1
- package/fesm2020/monkey-front-core.mjs +60 -14
- package/fesm2020/monkey-front-core.mjs.map +1 -1
- package/lib/core/interceptors/monkeyecx-http-config-header.interceptor.d.ts +7 -3
- package/lib/core/services/auth/monkeyecx-authentication.service.d.ts +3 -2
- package/monkey-front-core-0.0.197.tgz +0 -0
- package/package.json +1 -1
- package/monkey-front-core-0.0.194.tgz +0 -0
|
@@ -2,11 +2,15 @@ import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/c
|
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { MonkeyEcxErrorHandlingService } from '../services/error';
|
|
4
4
|
import { MonkeyEcxAuthenticationService } from '../services/auth';
|
|
5
|
+
import { MonkeyEcxConfigService } from '../services';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class MonkeyEcxHttpConfigHeaderInterceptor implements HttpInterceptor {
|
|
7
|
-
private
|
|
8
|
-
private
|
|
9
|
-
|
|
8
|
+
private authService;
|
|
9
|
+
private errorHandlingService;
|
|
10
|
+
private config;
|
|
11
|
+
constructor(authService: MonkeyEcxAuthenticationService, errorHandlingService: MonkeyEcxErrorHandlingService, config: MonkeyEcxConfigService);
|
|
12
|
+
private handle;
|
|
13
|
+
private onValidateConfig;
|
|
10
14
|
intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
|
|
11
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<MonkeyEcxHttpConfigHeaderInterceptor, never>;
|
|
12
16
|
static ɵprov: i0.ɵɵInjectableDeclaration<MonkeyEcxHttpConfigHeaderInterceptor>;
|
|
@@ -8,8 +8,9 @@ export declare class MonkeyEcxAuthenticationService {
|
|
|
8
8
|
redirectLoginWelcomeBack: () => null;
|
|
9
9
|
isAuthorized: () => boolean;
|
|
10
10
|
isCompanyAuthorized: () => boolean;
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
isTokenMandatory: (url: string) => boolean;
|
|
12
|
+
getRequestWithHeaders: (request: HttpRequest<any>) => HttpRequest<any> | any;
|
|
13
|
+
getRequestWithHeadersOb: (request: HttpRequest<any>) => Observable<any> | any;
|
|
13
14
|
refreshShouldHappen: (response: HttpErrorResponse) => boolean;
|
|
14
15
|
refreshToken: () => Observable<any> | null;
|
|
15
16
|
init(args: {
|
|
Binary file
|
package/package.json
CHANGED
|
Binary file
|