@yuuvis/client-core 2.12.3 → 2.13.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.
@@ -9,7 +9,6 @@ import * as i0 from "@angular/core";
9
9
  export declare class AuthService {
10
10
  #private;
11
11
  coreConfig: CoreConfig;
12
- readonly USER_FETCH_URI = "/idm/whoami";
13
12
  authenticated$: Observable<boolean>;
14
13
  initError?: YuvInitError;
15
14
  constructor(coreConfig: CoreConfig);
@@ -40,11 +40,20 @@ export declare class BackendService {
40
40
  */
41
41
  setHeader(key: string, value: string): void;
42
42
  /**
43
- * Wrapped HTTP GET method
44
- * @param uri The REST URI to be queried
45
- * @param base The Base URI (backend service) to be used
46
- * @param requestOptions Additional request options
47
- * @returns The data retrieved from the given endpoint
43
+ * Performs an HTTP GET request against a yuuvis Momentum backend endpoint.
44
+ *
45
+ * Automatically prepends the resolved base URI (via {@link getApiBase}) to the given `uri`,
46
+ * applies centralized headers (authorization, content-type) and emits an event on
47
+ * `httpCommunicationOccurred$` after each successful response used by SessionService
48
+ * to keep the session alive.
49
+ *
50
+ * @param uri REST URI relative to the selected backend service base. Must start with `/`,
51
+ * e.g. `/api/dms/objects/{objectId}`.
52
+ * @param base Selects which backend service base URL to use.
53
+ * @param requestOptions Optional Angular `HttpClient` options (headers, params, responseType, etc.)
54
+ * merged on top of the default headers set by this service.
55
+ * @returns An `Observable<T>` that emits the deserialized response body and completes.
56
+ * Unsubscribing before completion cancels the underlying HTTP request.
48
57
  */
49
58
  get<T = any>(uri: string, base?: string, requestOptions?: HttpOptions): Observable<T>;
50
59
  /**
@@ -14,7 +14,7 @@ export interface VirtualObjectType {
14
14
  */
15
15
  export interface SystemDefinition {
16
16
  version: number;
17
- lastModificationDate: any;
17
+ lastModificationDate: unknown;
18
18
  objectTypes: ObjectType[];
19
19
  secondaryObjectTypes: SecondaryObjectType[];
20
20
  relationships: Relationship[];
@@ -51,8 +51,6 @@ export interface Relationship {
51
51
  allowedTargetTypes: string[];
52
52
  fields: ObjectTypeField[];
53
53
  }
54
- export interface RelationshipType {
55
- }
56
54
  /**
57
55
  * Interface providing secondary object type
58
56
  */
@@ -60,12 +58,12 @@ export type SecondaryObjectType = _ObjectTypeBase;
60
58
  export interface _ObjectTypeFieldBase {
61
59
  id: string;
62
60
  name: string;
63
- description: string;
61
+ description?: string;
64
62
  propertyType: ObjectTypeFieldType;
65
63
  cardinality: 'single' | 'multi';
66
64
  required: boolean;
67
- updatability: 'readonly' | 'readwrite ' | 'oncreate' | 'byhooks';
68
- queryable: boolean;
65
+ updatability?: 'readonly' | 'readwrite' | 'oncreate' | 'byhooks';
66
+ queryable?: boolean;
69
67
  classifications?: string[];
70
68
  resolution?: string;
71
69
  columnDefinitions?: SchemaResponseFieldDefinition[];
@@ -84,7 +82,7 @@ export interface ObjectTypeField extends _ObjectTypeFieldBase {
84
82
  }
85
83
  export interface VisibleObjectTag {
86
84
  tagName: string;
87
- tagValues?: any[];
85
+ tagValues?: unknown[];
88
86
  }
89
87
  /**
90
88
  * Base definition of the kind of data we'll receive
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yuuvis/client-core",
3
- "version": "2.12.3",
3
+ "version": "2.13.0",
4
4
  "author": "OPTIMAL SYSTEMS GmbH <npm@optimal-systems.de>",
5
5
  "license": "MIT",
6
6
  "peerDependencies": {