@yuuvis/client-core 2.0.0 → 2.0.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,8 +1,6 @@
1
1
  import { HttpClient } from '@angular/common/http';
2
2
  import { MissingTranslationHandler, TranslateLoader } from '@ngx-translate/core';
3
- import { AuthInterceptor } from './service/auth/auth.interceptor';
4
3
  import { CoreConfig } from './service/config/core-config';
5
- import { OfflineInterceptor } from './service/connection/offline.interceptor';
6
4
  import { EoxMissingTranslationHandler } from './service/core-init/missing-translation-handler';
7
5
  import { EoxTranslateJsonLoader } from './service/core-init/translate-json-loader';
8
6
  import { Logger } from './service/logger/logger';
@@ -13,37 +11,21 @@ export interface YuvClientCoreConfig {
13
11
  export declare const provideYuvClientCore: (options?: YuvClientCoreConfig) => (import("@angular/core").EnvironmentProviders | {
14
12
  provide: typeof Logger;
15
13
  useClass: typeof LoggerConsoleService;
16
- multi?: undefined;
17
- deps?: undefined;
18
- useValue?: undefined;
19
- } | {
20
- provide: import("@angular/core").InjectionToken<readonly import("@angular/common/http").HttpInterceptor[]>;
21
- useClass: typeof AuthInterceptor;
22
- multi: boolean;
23
- deps?: undefined;
24
- useValue?: undefined;
25
- } | {
26
- provide: import("@angular/core").InjectionToken<readonly import("@angular/common/http").HttpInterceptor[]>;
27
- useClass: typeof OfflineInterceptor;
28
- multi: boolean;
29
14
  deps?: undefined;
30
15
  useValue?: undefined;
31
16
  } | {
32
17
  provide: import("@angular/core").InjectionToken<CoreConfig>;
33
18
  useClass: typeof CoreConfig;
34
19
  deps: import("@angular/core").InjectionToken<CoreConfig>[];
35
- multi?: undefined;
36
20
  useValue?: undefined;
37
21
  } | {
38
22
  provide: typeof TranslateLoader;
39
23
  useClass: typeof EoxTranslateJsonLoader;
40
24
  deps: (typeof HttpClient | import("@angular/core").InjectionToken<CoreConfig>)[];
41
- multi?: undefined;
42
25
  useValue?: undefined;
43
26
  } | {
44
27
  provide: typeof MissingTranslationHandler;
45
28
  useClass: typeof EoxMissingTranslationHandler;
46
- multi?: undefined;
47
29
  deps?: undefined;
48
30
  useValue?: undefined;
49
31
  } | {
@@ -53,6 +35,5 @@ export declare const provideYuvClientCore: (options?: YuvClientCoreConfig) => (i
53
35
  ɵprov: unknown;
54
36
  };
55
37
  useClass?: undefined;
56
- multi?: undefined;
57
38
  deps?: undefined;
58
39
  })[];
@@ -1,12 +1,6 @@
1
- import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';
1
+ import { HttpEvent, HttpHandlerFn, HttpRequest } from '@angular/common/http';
2
2
  import { Observable } from 'rxjs';
3
- import * as i0 from "@angular/core";
4
3
  /**
5
4
  * Prevent app from running into 401 issues related to gateway timeouts.
6
5
  */
7
- export declare class AuthInterceptor implements HttpInterceptor {
8
- #private;
9
- intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<AuthInterceptor, never>;
11
- static ɵprov: i0.ɵɵInjectableDeclaration<AuthInterceptor>;
12
- }
6
+ export declare function AuthInterceptorFnc(req: HttpRequest<unknown>, next: HttpHandlerFn): Observable<HttpEvent<unknown>>;
@@ -1,15 +1,6 @@
1
- import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';
1
+ import { HttpEvent, HttpHandlerFn, HttpRequest } from '@angular/common/http';
2
2
  import { Observable } from 'rxjs';
3
- import { ConnectionService } from './connection.service';
4
- import * as i0 from "@angular/core";
5
3
  /**
6
4
  * Http Offline interceptor trys to serving offline content for method/url
7
5
  */
8
- export declare class OfflineInterceptor implements HttpInterceptor {
9
- private connectionService;
10
- offline: boolean;
11
- constructor(connectionService: ConnectionService);
12
- intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
13
- static ɵfac: i0.ɵɵFactoryDeclaration<OfflineInterceptor, never>;
14
- static ɵprov: i0.ɵɵInjectableDeclaration<OfflineInterceptor>;
15
- }
6
+ export declare function OfflineInterceptorFnc(req: HttpRequest<unknown>, next: HttpHandlerFn): Observable<HttpEvent<unknown>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yuuvis/client-core",
3
- "version": "2.0.0",
3
+ "version": "2.0.2",
4
4
  "author": "OPTIMAL SYSTEMS GmbH <npm@optimal-systems.de>",
5
5
  "license": "MIT",
6
6
  "peerDependencies": {