@yuuvis/client-core 2.20.1 → 3.0.0-beta.20.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.
Files changed (102) hide show
  1. package/fesm2022/yuuvis-client-core.mjs +160 -159
  2. package/fesm2022/yuuvis-client-core.mjs.map +1 -1
  3. package/index.d.ts +3255 -68
  4. package/package.json +6 -6
  5. package/lib/common/pipes/filesize.pipe.d.ts +0 -18
  6. package/lib/common/pipes/index.d.ts +0 -5
  7. package/lib/common/pipes/keys.pipe.d.ts +0 -10
  8. package/lib/common/pipes/locale-date.pipe.d.ts +0 -12
  9. package/lib/common/pipes/locale-number.pipe.d.ts +0 -47
  10. package/lib/common/pipes/safe-html.pipe.d.ts +0 -28
  11. package/lib/common/services/native-notifications.d.ts +0 -8
  12. package/lib/common/services/native-notifications.interface.d.ts +0 -5
  13. package/lib/model/dms-object.interface.d.ts +0 -22
  14. package/lib/model/dms-object.model.d.ts +0 -26
  15. package/lib/model/file-upload-options.model.d.ts +0 -5
  16. package/lib/model/object-flavor.interface.d.ts +0 -46
  17. package/lib/model/range-value.interface.d.ts +0 -9
  18. package/lib/model/yuv-error.model.d.ts +0 -18
  19. package/lib/model/yuv-user.model.d.ts +0 -42
  20. package/lib/provider/available-backend-apps/available-backend-apps.model.d.ts +0 -6
  21. package/lib/provider/available-backend-apps/available-backend-apps.provider.d.ts +0 -6
  22. package/lib/provider/available-backend-apps/index.d.ts +0 -2
  23. package/lib/provider/index.d.ts +0 -3
  24. package/lib/provider/navigation/index.d.ts +0 -3
  25. package/lib/provider/navigation/provide.before.unload.guard.d.ts +0 -12
  26. package/lib/provider/navigation/provide.navigation-protection.d.ts +0 -2
  27. package/lib/provider/navigation/provide.popstate-dialog.guard.d.ts +0 -14
  28. package/lib/provider/provide.client.core.d.ts +0 -5
  29. package/lib/service/audit/audit.interface.d.ts +0 -47
  30. package/lib/service/audit/audit.service.d.ts +0 -37
  31. package/lib/service/auth/auth.interceptor.d.ts +0 -6
  32. package/lib/service/auth/auth.interface.d.ts +0 -34
  33. package/lib/service/auth/auth.service.d.ts +0 -54
  34. package/lib/service/backend/api.enum.d.ts +0 -7
  35. package/lib/service/backend/backend.interface.d.ts +0 -21
  36. package/lib/service/backend/backend.service.d.ts +0 -145
  37. package/lib/service/bpm/bpm.interface.d.ts +0 -87
  38. package/lib/service/bpm/bpm.service.d.ts +0 -19
  39. package/lib/service/cache/app-cache.service.d.ts +0 -43
  40. package/lib/service/catalog/catalog.interface.d.ts +0 -12
  41. package/lib/service/catalog/catalog.service.d.ts +0 -5
  42. package/lib/service/client-cache/client-cache.interface.d.ts +0 -5
  43. package/lib/service/client-cache/client-cache.service.d.ts +0 -35
  44. package/lib/service/clipboard/clipboard.interface.d.ts +0 -11
  45. package/lib/service/clipboard/clipboard.service.d.ts +0 -24
  46. package/lib/service/config/config.interface.d.ts +0 -34
  47. package/lib/service/config/config.service.d.ts +0 -37
  48. package/lib/service/config/core-config.d.ts +0 -12
  49. package/lib/service/config/core-config.tokens.d.ts +0 -7
  50. package/lib/service/connection/connection.service.d.ts +0 -31
  51. package/lib/service/connection/offline.interceptor.d.ts +0 -6
  52. package/lib/service/core-init/core-init.service.d.ts +0 -5
  53. package/lib/service/core-init/missing-translation-handler.d.ts +0 -8
  54. package/lib/service/core-init/translate-json-loader.d.ts +0 -20
  55. package/lib/service/device/device.interface.d.ts +0 -15
  56. package/lib/service/device/device.service.d.ts +0 -62
  57. package/lib/service/dms/dms.service.d.ts +0 -207
  58. package/lib/service/dms/dms.service.interface.d.ts +0 -60
  59. package/lib/service/event/custom.events.token.d.ts +0 -3
  60. package/lib/service/event/event.interface.d.ts +0 -36
  61. package/lib/service/event/event.service.d.ts +0 -30
  62. package/lib/service/event/events.d.ts +0 -22
  63. package/lib/service/idm/idm.service.d.ts +0 -43
  64. package/lib/service/idm/models/idm-cached-user.model.d.ts +0 -11
  65. package/lib/service/idm/models/idm-user-cache.model.d.ts +0 -9
  66. package/lib/service/idm/models/idm-user-response.model.d.ts +0 -24
  67. package/lib/service/idm/models/index.d.ts +0 -4
  68. package/lib/service/idm/models/organization-set-entry.model.d.ts +0 -12
  69. package/lib/service/logger/logger.interface.d.ts +0 -10
  70. package/lib/service/logger/logger.service.d.ts +0 -20
  71. package/lib/service/notification/notification.service.d.ts +0 -71
  72. package/lib/service/object-config/object-config.interface.d.ts +0 -62
  73. package/lib/service/object-config/object-config.service.d.ts +0 -40
  74. package/lib/service/object-form/object-form.interface.d.ts +0 -46
  75. package/lib/service/object-form/object-form.model.d.ts +0 -45
  76. package/lib/service/pending-changes/index.d.ts +0 -4
  77. package/lib/service/pending-changes/pending-changes-component.interface.d.ts +0 -6
  78. package/lib/service/pending-changes/pending-changes-dialog.guard.service.d.ts +0 -128
  79. package/lib/service/pending-changes/pending-changes-guard.service.d.ts +0 -14
  80. package/lib/service/pending-changes/pending-changes-tab.guard.directive.d.ts +0 -9
  81. package/lib/service/pending-changes/pending-changes.service.d.ts +0 -58
  82. package/lib/service/prediction/prediction.interface.d.ts +0 -18
  83. package/lib/service/prediction/prediction.service.d.ts +0 -15
  84. package/lib/service/retention/retention.interface.d.ts +0 -5
  85. package/lib/service/retention/retention.service.d.ts +0 -26
  86. package/lib/service/search/search.service.d.ts +0 -55
  87. package/lib/service/search/search.service.interface.d.ts +0 -123
  88. package/lib/service/search/search.utils.d.ts +0 -18
  89. package/lib/service/session-storage/session-storage.service.d.ts +0 -15
  90. package/lib/service/system/system.enum.d.ts +0 -143
  91. package/lib/service/system/system.interface.d.ts +0 -165
  92. package/lib/service/system/system.service.d.ts +0 -175
  93. package/lib/service/toast/toast.interface.d.ts +0 -8
  94. package/lib/service/toast/toast.service.d.ts +0 -17
  95. package/lib/service/toast/toast.styles.d.ts +0 -1
  96. package/lib/service/upload/upload.interface.d.ts +0 -56
  97. package/lib/service/upload/upload.service.d.ts +0 -160
  98. package/lib/service/user/user-storage.service.d.ts +0 -18
  99. package/lib/service/user/user.providers.d.ts +0 -4
  100. package/lib/service/user/user.service.d.ts +0 -67
  101. package/lib/util/utils.d.ts +0 -123
  102. package/lib/util/utils.helper.enum.d.ts +0 -13
@@ -1,207 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import { DmsObjectTag } from '../../model/dms-object.interface';
3
- import { DmsObject } from '../../model/dms-object.model';
4
- import { FileUploadOptions } from '../../model/file-upload-options.model';
5
- import { HttpOptions } from '../backend/backend.interface';
6
- import { SearchResponse, SearchResult } from '../search/search.service.interface';
7
- import { CoreApiResponse, ObjectCopyOptions, ObjectDeleteOptions, ObjectDeleteResult, ObjectMoveOptions, ObjectOptions } from './dms.service.interface';
8
- import * as i0 from "@angular/core";
9
- /**
10
- * Service for working with dms objects: create them, delete, etc.
11
- */
12
- export declare class DmsService {
13
- #private;
14
- /**
15
- * Create new dms object(s). Providing an array of files here instead of one will create
16
- * a new dms object for every file. In this case indexdata will shared across all files.
17
- * @param objectTypeId The ID of the object type to be created
18
- * @param indexdata Indexdata for the new object(s)
19
- * @param files File(s) to create dms objects content(s) with
20
- * @param label A label that will show up in the upload overlay dialog while uploading
21
- *
22
- * @returns Array of IDs of the objects that have been created
23
- */
24
- createDmsObject(objectTypeId: string, indexdata: any, files: File[], label?: string, silent?: boolean, options?: ObjectOptions): Observable<string[]>;
25
- /**
26
- * Delete a dms object.
27
- * @param id ID of the object to be deleted
28
- */
29
- deleteDmsObject(id: string, silent?: boolean): Observable<any>;
30
- /**
31
- * Restore older version of a dms object.
32
- * @param id ID of the object to be restored
33
- * @param version version of the object to be restored
34
- */
35
- restoreDmsObject(id: string, version: number, silent?: boolean): Observable<any>;
36
- /**
37
- * Upload (add/replace) content to a dms object.
38
- * @param objectId ID of the dms object to upload the file to
39
- * @param file The file to be uploaded
40
- * @param label A label that will show up in the upload overlay dialog while uploading
41
- *
42
- * @deprecated use uploadFileContent instead. Provide label and silent through `options`
43
- */
44
- uploadContent(objectId: string, file: File, label?: string, silent?: boolean): Observable<any>;
45
- /**
46
- * Uploads a file as the content of an existing DMS object, replacing or setting its content stream.
47
- *
48
- * This is the preferred alternative to the legacy `uploadContent()` method. It accepts a typed
49
- * `FileUploadOptions` object instead of individual parameters, which enables full control over
50
- * the upload label, silent mode, and scope-based progress visibility.
51
- *
52
- * After a successful upload, a `DMS_OBJECT_UPDATED` event is triggered automatically so that
53
- * any subscribed parts of the application can react to the change (e.g. refreshing a preview).
54
- *
55
- * **Behavior:**
56
- * - Targets the content endpoint of the given DMS object: `/dms/objects/{objectId}/contents/file`
57
- * - `options.label` is shown in the upload progress indicator; falls back to `file.name` if omitted
58
- * - If `options.silent` is `true`, the upload runs in the background with no UI feedback
59
- * and no `DMS_OBJECT_UPDATED` event is emitted
60
- * - `options.scope` tags the upload so that only the `UploadProgressComponent` instance
61
- * configured with the same scope will display progress for this upload
62
- *
63
- * @param objectId - ID of the DMS object whose content should be uploaded or replaced
64
- * @param file - The `File` object to upload as the new content stream
65
- * @param options - Upload configuration: label, silent mode, and optional scope
66
- * @returns An `Observable` that emits the updated DMS object on completion
67
- *
68
- * @example
69
- * ```typescript
70
- * // Replace content with a visible progress indicator
71
- * this.dmsService.uploadFileContent(objectId, file, { label: 'Uploading contract.pdf' }).subscribe();
72
- *
73
- * // Silent replacement (no UI feedback, no event emitted)
74
- * this.dmsService.uploadFileContent(objectId, file, { label: 'report.pdf', silent: true }).subscribe();
75
- *
76
- * // Scoped upload — only UploadProgressComponent with scope 'detail-panel' will show this
77
- * this.dmsService
78
- * .uploadFileContent(objectId, file, { label: 'photo.jpg', scope: 'detail-panel' })
79
- * .subscribe();
80
- * ```
81
- */
82
- uploadFileContent(objectId: string, file: File, options: FileUploadOptions): Observable<unknown>;
83
- /**
84
- * Path of dms object content file.
85
- * @param objectId ID of the dms object
86
- * @param version version number of the dms object
87
- */
88
- getContentPath(objectId: string, version?: number): string;
89
- /**
90
- * Original API Path of dms object content file.
91
- * @param objectId ID of the dms object
92
- * @param version version number of the dms object
93
- * @param rendition should return rendition path of the dms object
94
- */
95
- getFullContentPath(objectId: string, version?: number, rendition?: boolean): string;
96
- getSlideURI(objectId: string, mimeType?: string): string | undefined;
97
- /**
98
- * Downloads the content of dms objects.
99
- *
100
- * @param DmsObject[] dmsObjects Array of dms objects to be downloaded
101
- * @param withVersion should download specific version of the object
102
- */
103
- downloadContent(objects: DmsObject[], withVersion?: boolean): void;
104
- /**
105
- * Fetch a dms object.
106
- * @param id ID of the object to be retrieved
107
- * @param version Desired version of the object
108
- */
109
- getDmsObject(id: string, version?: number, silent?: boolean, requestOptions?: HttpOptions): Observable<DmsObject>;
110
- /**
111
- * Get tags of a dms object.
112
- * @param objectData Data field of the dms object
113
- */
114
- getDmsObjectTags(objectData: Record<string, unknown>): DmsObjectTag[];
115
- /**
116
- * Updates a tag on a dms object.
117
- * @param id The ID of the object
118
- * @param tag The tag to be updated
119
- * @param value The tags new value
120
- */
121
- setDmsObjectTag(id: string, tag: string, value: any, silent?: boolean): Observable<any>;
122
- /**
123
- * Deletes a tag from a dms object.
124
- * @param id The ID of the object
125
- * @param tag The tag to be deleted
126
- */
127
- deleteDmsObjectTag(id: string, tag: string, silent?: boolean): Observable<any>;
128
- /**
129
- * Update indexdata of a dms object.
130
- * @param id ID of the object to apply the data to
131
- * @param data Indexdata to be applied
132
- * @param silent flag to trigger DMS_OBJECT_UPDATED event
133
- */
134
- updateDmsObject(id: string, data: any, silent?: boolean, options?: ObjectOptions): Observable<DmsObject>;
135
- /**
136
- * Updates given objects.
137
- * @param objects the objects to updated
138
- */
139
- updateDmsObjects(objects: {
140
- id: string;
141
- data: {
142
- [key: string]: any;
143
- };
144
- }[], silent?: boolean, options?: ObjectOptions): Observable<DmsObject[]>;
145
- /**
146
- * Updates a tag on a dms object.
147
- * @param ids List of IDs of objects
148
- * @param tag The tag to be updated
149
- * @param value The tags new value
150
- */
151
- updateDmsObjectsTag(ids: string[], tag: string, value: any, silent?: boolean): Observable<any>;
152
- /**
153
- * Moves given objects to a different folder.
154
- * @param folderId the id of the new parent folder
155
- * @param objects objects to be moved
156
- * @param options options for the move operation
157
- */
158
- moveDmsObjects(targetFolderId: string | null, objects: DmsObject[], options?: ObjectMoveOptions): Observable<any>;
159
- /**
160
- * Copy given objects to a different folder. The objects will be copied with their indexdata referencing
161
- * the existing content of the source object.
162
- * @param targetFolderId The ID of the target folder
163
- * @param objects The objects to be copied
164
- * @param options options for the copy operation
165
- */
166
- copyDmsObjects(targetFolderId: string | null, objects: DmsObject[], options?: ObjectCopyOptions): Observable<CoreApiResponse>;
167
- /**
168
- * Get a bunch of dms objects.
169
- * @param ids List of IDs of objects to be retrieved
170
- */
171
- getDmsObjects(ids: string[], silent?: boolean): Observable<DmsObject[]>;
172
- /**
173
- * Delete a bunch of dms objects.
174
- * @param ids List of IDs of objects to be deleted
175
- * @param options Options for the delete operation
176
- * @returns Array of delete results.
177
- */
178
- deleteDmsObjects(objects: string[] | {
179
- id: string;
180
- subject: string;
181
- }[], options?: ObjectDeleteOptions): Observable<ObjectDeleteResult[]>;
182
- /**
183
- * Fetch a dms object versions.
184
- * @param id ID of the object to be retrieved
185
- */
186
- getDmsObjectVersions(id: string): Observable<DmsObject[]>;
187
- getDmsObjectVersion(id: string, version: number): Observable<DmsObject>;
188
- coreApiResponseToDmsObject(res: CoreApiResponse): DmsObject;
189
- /**
190
- * Transforms a plain data object to a DmsObject.
191
- * @param data The plain data object
192
- * @returns DmsObject
193
- */
194
- toDmsObject(data: Record<string, unknown>): DmsObject;
195
- batchUpdateTag(ids: string[], tag: string, value: any): Observable<any[]>;
196
- batchDeleteTag(ids: string[], tag: string): Observable<any[]>;
197
- batchDelete(ids: string[]): Observable<any[]>;
198
- batchGet(ids: string[]): Observable<any[]>;
199
- /**
200
- * Map search result from the backend to applications SearchResult object
201
- * @param searchResponse The backend response
202
- */
203
- toSearchResult(searchResponse: SearchResponse): SearchResult;
204
- private triggerEvent;
205
- static ɵfac: i0.ɵɵFactoryDeclaration<DmsService, never>;
206
- static ɵprov: i0.ɵɵInjectableDeclaration<DmsService>;
207
- }
@@ -1,60 +0,0 @@
1
- export interface ObjectOptions {
2
- waitForSearchConsistency?: boolean;
3
- scope?: string;
4
- }
5
- export interface ObjectDeleteOptions extends ObjectOptions {
6
- silent?: boolean;
7
- greedy?: boolean;
8
- }
9
- export interface ObjectDeleteResult {
10
- id: string;
11
- properties?: {
12
- [key: string]: {
13
- value: any;
14
- };
15
- };
16
- _error?: ObjectDeleteError;
17
- }
18
- export interface ObjectDeleteError {
19
- status: number;
20
- message: string;
21
- }
22
- export interface ObjectMoveOptions extends ObjectOptions {
23
- silent?: boolean;
24
- }
25
- export interface ObjectCopyOptions extends ObjectOptions {
26
- }
27
- export interface CoreApiObject {
28
- properties: Record<string, CoreApiObjectProperty>;
29
- contentStreams?: Partial<ContentStream>[];
30
- }
31
- export interface CoreApiObjectProperty {
32
- value: unknown;
33
- }
34
- export interface ContentStream {
35
- contentStreamId: string;
36
- repositoryId: string;
37
- digest: string;
38
- fileName: string;
39
- size: number;
40
- archivePath?: string;
41
- range?: string;
42
- mimeType: string;
43
- }
44
- export interface CoreApiBatchResponse {
45
- hasMoreItems: boolean;
46
- numItems: number;
47
- objects: CoreApiResponse[];
48
- totalNumItems: number;
49
- }
50
- export interface CoreApiResponse {
51
- properties: Record<string, CoreApiObjectProperty>;
52
- contentStreams?: ContentStream[];
53
- options: {
54
- 'system:response': {
55
- httpStatusCode: number;
56
- serviceErrorCode?: number;
57
- message: string;
58
- };
59
- };
60
- }
@@ -1,3 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- export declare const CUSTOM_EVENTS: InjectionToken<string[]>;
3
- export declare const CUSTOM_EVENTS_TRUSTED_ORIGINS: InjectionToken<string[]>;
@@ -1,36 +0,0 @@
1
- /**
2
- * Triggerable and Subscribable events
3
- * 1 & T creates an intersection of the literal type 1 and type T, this results in never since nothing can be both 1 and string except for any.
4
- * 0 dose not extends never or 1, so if T is any, the condition resolves to true.
5
- */
6
- export type IsAny<T> = 0 extends 1 & T ? true : false;
7
- export interface YuvEvent<D = any> {
8
- /**
9
- * type
10
- */
11
- type: string;
12
- /**
13
- * data to be passed along with the event if T is 'any' data is optional
14
- */
15
- data: IsAny<D> extends true ? D | undefined : D;
16
- }
17
- /**
18
- * Mandatory Custom event prefix for all custom YUV events
19
- */
20
- export declare const CUSTOM_YUV_EVENT_PREFIX = "yuv.";
21
- /**
22
- * Message event interface for postMessage events
23
- */
24
- export interface YuvMessage {
25
- type: string;
26
- data: any;
27
- timestamp: number;
28
- source: string;
29
- }
30
- /**
31
- * Generic call-signature for triggering events.
32
- * - If `T` is `string`, the `type` parameter will be that string literal type.
33
- * - If `T` is `any`, the `data` parameter will be optional.
34
- * - Otherwise `data` is required.
35
- */
36
- export type Trigger = <T = any>(type: T extends string ? T : string, ...data: IsAny<T> extends true ? [data?: T] : [data: T]) => void;
@@ -1,30 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import { IsAny, YuvEvent } from './event.interface';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * Service for providing triggered events
6
- */
7
- export declare class EventService {
8
- #private;
9
- event$: Observable<YuvEvent>;
10
- constructor();
11
- /**
12
- * Triggers a postMessage event that will be sent to the yuuvis global event Trigger
13
- * @param type Type/key of the event
14
- * @param data Data to be sent along with the event
15
- */
16
- triggerPostMessageEvent(type: string, data?: any): void;
17
- /**
18
- * Trigger an global event
19
- * @param type Type/key of the event
20
- * @param data Data to be send along with the event
21
- */
22
- trigger<T extends string = any, D = any>(type: IsAny<T> extends true ? string : T, ...args: IsAny<D> extends true ? [data?: D] : [data: D]): void;
23
- /**
24
- * Listen on a triggered event
25
- * @param types Type/key of the event
26
- */
27
- on<T extends string = any, D = any>(...types: (IsAny<T> extends true ? string : T)[]): Observable<YuvEvent<D>>;
28
- static ɵfac: i0.ɵɵFactoryDeclaration<EventService, never>;
29
- static ɵprov: i0.ɵɵInjectableDeclaration<EventService>;
30
- }
@@ -1,22 +0,0 @@
1
- import { DmsObject } from '../../model/dms-object.model';
2
- /**
3
- * Events emitted by parts of the application
4
- */
5
- export declare enum YuvEventType {
6
- LOGOUT = "yuv.user.logout",
7
- CLIENT_LOCALE_CHANGED = "yuv.user.locale.client.changed",
8
- DMS_OBJECT_LOADED = "yuv.dms.object.loaded",
9
- DMS_OBJECT_CREATED = "yuv.dms.object.created",
10
- DMS_OBJECT_DELETED = "yuv.dms.object.deleted",
11
- DMS_OBJECT_UPDATED = "yuv.dms.object.updated",
12
- DMS_OBJECT_CONTENT_UPDATED = "yuv.dms.object.content.updated",
13
- DMS_OBJECTS_MOVED = "yuv.dms.objects.moved",
14
- RELATIONSHIP_CREATED = "yuv.dms.relationship.created",
15
- RELATIONSHIP_DELETED = "yuv.dms.relationship.deleted"
16
- }
17
- export interface YuvEventDeletedData {
18
- id: string;
19
- properties: Record<string, unknown>;
20
- }
21
- export type YuvEventUpdatedData = DmsObject;
22
- export type YuvEventCreatedData = string[];
@@ -1,43 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import { YuvUser } from '../../model/yuv-user.model';
3
- import { IdmUserCache, OrganizationSetEntry } from './models';
4
- import * as i0 from "@angular/core";
5
- /**
6
- * Service for managing Identity Management (IDM) operations.
7
- * Provides functionality for querying users, roles, and organization entities,
8
- * with built-in caching mechanisms to optimize performance.
9
- */
10
- export declare class IdmService {
11
- #private;
12
- userCache: IdmUserCache;
13
- constructor();
14
- /**
15
- * Queries organization entities (users and/or roles) based on search term.
16
- *
17
- * @param term - The search term to filter entities
18
- * @param targetTypes - Array of entity types to search for ('user', 'role')
19
- * @param size - Optional maximum number of results to return
20
- * @returns Observable array of organization set entries matching the search criteria
21
- */
22
- queryOrganizationEntity(term: string, targetTypes: string[], size?: number): Observable<OrganizationSetEntry[]>;
23
- /**
24
- * Retrieves available roles, optionally filtered by a search term.
25
- *
26
- * @param role - Optional search term to filter roles by name
27
- * @returns Observable array of role objects containing name and description
28
- */
29
- getRoles(role?: string): Observable<{
30
- name: string;
31
- description: string;
32
- }[]>;
33
- /**
34
- * Retrieves user information by user ID with automatic caching.
35
- * Uses a 1-hour TTL cache to minimize backend requests.
36
- *
37
- * @param id - The unique identifier of the user
38
- * @returns Observable of YuvUser object or null if user is not found
39
- */
40
- getUserById(id: string): Observable<YuvUser | null>;
41
- static ɵfac: i0.ɵɵFactoryDeclaration<IdmService, never>;
42
- static ɵprov: i0.ɵɵInjectableDeclaration<IdmService>;
43
- }
@@ -1,11 +0,0 @@
1
- import { IdmUserResponse } from './idm-user-response.model';
2
- /**
3
- * Represents a cached user entry with expiration timestamp.
4
- * Used internally by IdmService to manage user data caching.
5
- */
6
- export interface IdmCachedUser {
7
- /** Timestamp when the cache expires (Date.now() + TTL) */
8
- expires: number;
9
- /** The cached user data from the IDM API */
10
- user: IdmUserResponse;
11
- }
@@ -1,9 +0,0 @@
1
- import { IdmCachedUser } from './idm-cached-user.model';
2
- /**
3
- * Dictionary/map structure for storing cached user data.
4
- * Keys are user IDs and values are cached user entries with expiration.
5
- */
6
- export interface IdmUserCache {
7
- /** Map of user IDs to their cached user data */
8
- [userId: string]: IdmCachedUser;
9
- }
@@ -1,24 +0,0 @@
1
- /**
2
- * Represents the user data structure returned from the IDM API.
3
- * Contains all essential user information including authentication and authorization details.
4
- */
5
- export interface IdmUserResponse {
6
- /** The unique username for login */
7
- username: string;
8
- /** The unique user identifier */
9
- id: string;
10
- /** The user's email address */
11
- email: string;
12
- /** The user's first name */
13
- firstname: string;
14
- /** The user's last name */
15
- lastname: string;
16
- /** Whether the user account is enabled/active */
17
- enabled: boolean;
18
- /** The tenant identifier this user belongs to */
19
- tenant: string;
20
- /** Array of granted authorities/permissions for the user */
21
- authorities: string[];
22
- /** The formatted display name for the user */
23
- displayName: string;
24
- }
@@ -1,4 +0,0 @@
1
- export * from './organization-set-entry.model';
2
- export * from './idm-user-cache.model';
3
- export * from './idm-cached-user.model';
4
- export * from './idm-user-response.model';
@@ -1,12 +0,0 @@
1
- /**
2
- * Represents an entry in the organization set, which can be either a user or a role.
3
- * Used in search results and organization entity queries.
4
- */
5
- export interface OrganizationSetEntry {
6
- /** The unique identifier of the user or role */
7
- id: string;
8
- /** The display title/name for the entry */
9
- title: string;
10
- /** The type of organization entity */
11
- type: 'user' | 'role';
12
- }
@@ -1,10 +0,0 @@
1
- /**
2
- * Interface providing a default logger, that is used for the Dependency-Injection (DI) token.
3
- */
4
- export interface ILogger {
5
- debug(...args: any[]): void;
6
- error(...args: any[]): void;
7
- info(...args: any[]): void;
8
- log(...args: any[]): void;
9
- warn(...args: any[]): void;
10
- }
@@ -1,20 +0,0 @@
1
- import { ConfigService } from '../config/config.service';
2
- import { ILogger } from './logger.interface';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * @ignore
6
- */
7
- export declare class Logger implements ILogger {
8
- private config;
9
- constructor(config: ConfigService);
10
- private styles;
11
- private apply;
12
- debug(...args: any[]): void;
13
- error(...args: any[]): void;
14
- info(...args: any[]): void;
15
- log(...args: any[]): void;
16
- warn(...args: any[]): void;
17
- private shouldLog;
18
- static ɵfac: i0.ɵɵFactoryDeclaration<Logger, never>;
19
- static ɵprov: i0.ɵɵInjectableDeclaration<Logger>;
20
- }
@@ -1,71 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- /**
3
- * Shows a message after completing each action.
4
- */
5
- export declare class NotificationService {
6
- #private;
7
- /**
8
- * Set to true to suppress any notifications
9
- */
10
- silent: boolean;
11
- /**
12
- * Default Notofication Options
13
- *
14
- */
15
- private options;
16
- constructor();
17
- /**
18
- * Show info colored massage (blue)
19
- *
20
- * @param string title
21
- * @param string msg
22
- */
23
- info(title: string, msg?: string): void;
24
- /**
25
- * Show success colored massage (green)
26
- * @param string title
27
- * @param string msg
28
- */
29
- success(title: string, msg?: string): void;
30
- /**
31
- * can not be in use
32
- *
33
- * @param string title
34
- * @param string msg
35
- */
36
- wait(title: string, msg?: string): void;
37
- /**
38
- * Show error colored massage (red)
39
- *
40
- * @param string title
41
- * @param string msg
42
- */
43
- error(title: string, msg?: string): void;
44
- /**
45
- * Show warning colored massage (yellow)
46
- *
47
- * @param string title
48
- * @param string msg
49
- */
50
- warning(title: string, msg?: string): void;
51
- /**
52
- * Public wrapper for accessing the Toastr
53
- *
54
- * @param string title
55
- * @param string msg
56
- * @param string mode
57
- * @param _options
58
- */
59
- private toast;
60
- /**
61
- * Accessing the toastr service
62
- *
63
- * @param string msg
64
- * @param string title
65
- * @param options
66
- * @param string mode
67
- */
68
- private doToast;
69
- static ɵfac: i0.ɵɵFactoryDeclaration<NotificationService, never>;
70
- static ɵprov: i0.ɵɵInjectableDeclaration<NotificationService>;
71
- }
@@ -1,62 +0,0 @@
1
- import { ObjectTypeFieldInternalType } from '../object-form/object-form.interface';
2
- import { VirtualObjectType } from '../system/system.interface';
3
- /**
4
- * Config defining the most important/interessting fields for
5
- * a certain object type. They'll be used to render result lists
6
- * as well as headers for onbjects of that type.
7
- */
8
- export interface ObjectConfig {
9
- objectTypeId: string;
10
- icon?: ObjectConfigIcon;
11
- title?: ObjectConfigProperty;
12
- description?: ObjectConfigProperty;
13
- meta?: ObjectConfigProperty;
14
- aside?: ObjectConfigProperty;
15
- actions?: ObjectConfigAction[];
16
- badges?: ObjectConfigBadge[];
17
- }
18
- export interface ObjectConfigIcon {
19
- svg: string;
20
- }
21
- export interface ObjectConfigAction {
22
- id: string;
23
- }
24
- export interface ObjectConfigBadge {
25
- label: string;
26
- }
27
- export interface ObjectConfigProperty {
28
- label: string;
29
- propertyName: string;
30
- }
31
- export interface StoredObjectConfig {
32
- main: ObjectConfigRecord;
33
- buckets: ObjectConfigBucket[];
34
- }
35
- export type ObjectConfigRecord = Record<string, ObjectConfig>;
36
- export interface ObjectConfigBucket {
37
- id: string;
38
- configs: ObjectConfigRecord;
39
- }
40
- export interface ResolvedObjectConfig {
41
- id: string;
42
- objectTypeId: string;
43
- icon?: ResolvedObjectConfigItem;
44
- title: ResolvedObjectConfigItem;
45
- description?: ResolvedObjectConfigItem;
46
- meta?: ResolvedObjectConfigItem;
47
- aside?: ResolvedObjectConfigItem;
48
- actions?: ObjectConfigAction[];
49
- badges?: ObjectConfigBadge[];
50
- instanceData?: Record<string, unknown>;
51
- }
52
- export interface ResolvedObjectConfigItem {
53
- propertyName: string;
54
- rendererType?: RendererType;
55
- value?: any;
56
- meta?: Record<string, any>;
57
- }
58
- export type RendererType = Partial<ObjectTypeFieldInternalType | string>;
59
- export interface ConfigTypeOption {
60
- bucket?: string;
61
- type: VirtualObjectType;
62
- }