@yuuvis/client-core 2.10.2 → 2.11.0

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 http communication with the yuuvis Momentum backend. Apps
8
- * should use this service to communicate with the backend instead of default
9
- * httpClient because required headers are managed and apps do not have
10
- * to care about prerequisites.
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yuuvis/client-core",
3
- "version": "2.10.2",
3
+ "version": "2.11.0",
4
4
  "author": "OPTIMAL SYSTEMS GmbH <npm@optimal-systems.de>",
5
5
  "license": "MIT",
6
6
  "peerDependencies": {
@@ -1 +0,0 @@
1
- {}
@@ -1 +0,0 @@
1
- {}