@yuuvis/client-core 2.10.3 → 2.11.1
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.
|
@@ -4,14 +4,30 @@ import { ConfigService } from '../config/config.service';
|
|
|
4
4
|
import { HttpDeleteOptions, HttpOptions } from './backend.interface';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
/**
|
|
7
|
-
* Service for
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
7
|
+
* Service for HTTP communication with the yuuvis Momentum backend.
|
|
8
|
+
*
|
|
9
|
+
* This service wraps Angular's HttpClient and provides:
|
|
10
|
+
* - Automatic base URI management for different backend services
|
|
11
|
+
* - Centralized header management (authorization, content-type, etc.)
|
|
12
|
+
* - Response caching with configurable TTL
|
|
13
|
+
* - HTTP activity tracking for session management
|
|
14
|
+
* - Standardized error handling and logging
|
|
15
|
+
*
|
|
16
|
+
* **Why Use This Service:**
|
|
17
|
+
* Applications should use BackendService instead of HttpClient directly because
|
|
18
|
+
* required headers (authentication, content-type) are automatically managed,
|
|
19
|
+
* and apps don't have to handle backend URL construction and prerequisites.
|
|
20
|
+
*
|
|
21
|
+
* **HTTP Activity Tracking:**
|
|
22
|
+
* All HTTP requests emit events via `httpCommunicationOccurred$`, which is used by
|
|
23
|
+
* SessionService and other consumers to detect user activity and keep sessions alive.
|
|
24
|
+
*
|
|
25
|
+
* @see {@link SessionService} for session management integration (Task HAR-2975)
|
|
11
26
|
*/
|
|
12
27
|
export declare class BackendService {
|
|
13
28
|
#private;
|
|
14
29
|
configService: ConfigService;
|
|
30
|
+
httpCommunicationOccurred$: Observable<void>;
|
|
15
31
|
/**
|
|
16
32
|
* OpenIdConnect authorization headers
|
|
17
33
|
*/
|
package/package.json
CHANGED
package/lib/assets/i18n/de.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{}
|
package/lib/assets/i18n/en.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{}
|