monkey-front-core 0.0.306 → 0.0.308

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>;
@@ -13,7 +13,7 @@ export declare class MonkeyEcxAuthenticationService {
13
13
  getRequestWithHeadersOb: (request: HttpRequest<any>) => Observable<any> | any;
14
14
  getRequestWithHeadersAsync: (request: HttpRequest<any>) => Promise<null>;
15
15
  refreshShouldHappen: (response: HttpErrorResponse) => boolean;
16
- refreshToken: () => Observable<any> | null;
16
+ refreshToken: () => Promise<null>;
17
17
  init(args: {
18
18
  hadAtLeastOneLogin?: any;
19
19
  redirectApp?: any;
@@ -1,7 +1,7 @@
1
1
  import { ActivatedRouteSnapshot, Router, RouterStateSnapshot } from '@angular/router';
2
2
  import { TranslateService } from '@ngx-translate/core';
3
3
  import { BehaviorSubject, Observable } from 'rxjs';
4
- import { MonkeyEcxConfig, MonkeyEcxCountrySecurity, MonkeyEcxErrorResponse, MonkeyEcxHandledErrorResponse, MonkeyEcxRequestPaged, MonkeyEcxRequestSchedule, MonkeyEcxResponseLinks, MonkeyEcxResponsePaged, MonkeyEcxSavedState, MonkeyEcxTokenCredentials, MonkeyEcxTranslateOptions } from '../../interfaces';
4
+ import { MonkeyEcxConfig, MonkeyEcxCountrySecurity, MonkeyEcxErrorResponse, MonkeyEcxHandledErrorResponse, MonkeyEcxRequestPaged, MonkeyEcxRequestSchedule, MonkeyEcxResponseLinks, MonkeyEcxResponsePaged, MonkeyEcxSavedState, MonkeyEcxTranslateOptions } from '../../interfaces';
5
5
  import { MonkeyEcxFeatureToggleService } from '../config/monkeyecx-feature-toggle.service';
6
6
  import { MonkeyEcxService } from '../monkeyecx-service.service';
7
7
  import { MonkeyEcxPaginationService } from '../pagination';
@@ -46,7 +46,7 @@ export declare class MonkeyEcxCommonsService {
46
46
  __onZipCodeDataChanged$: BehaviorSubject<any>;
47
47
  __oni18nDataChanged$: BehaviorSubject<any>;
48
48
  __onDoSearch$: BehaviorSubject<MonkeyEcxRequestPaged>;
49
- __tokenCredentials: MonkeyEcxTokenCredentials | undefined;
49
+ __tokenCredentials: any;
50
50
  __schedule: MonkeyEcxRequestSchedule | null;
51
51
  __i18n: any;
52
52
  __callbackPagination: Function;
@@ -17,7 +17,7 @@ export declare class MonkeyEcxTokenStorageService {
17
17
  private getAllMe;
18
18
  tokenHasChanged(): Observable<MonkeyEcxTokenCredentials>;
19
19
  meHasChanged(): Observable<MonkeyEcxMeCredentials>;
20
- getToken(): Promise<MonkeyEcxStorage | undefined>;
20
+ getToken(): Promise<MonkeyEcxStorage | null | undefined>;
21
21
  getMe(): Promise<{
22
22
  name?: string | undefined;
23
23
  email?: string | undefined;
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "monkey-front-core",
3
- "version": "0.0.306",
3
+ "version": "0.0.308",
4
4
  "peerDependencies": {
5
5
  "@angular/cdk": "^13.1.1",
6
6
  "@angular/common": "^13.1.1",
Binary file