@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
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@yuuvis/client-core",
3
- "version": "2.20.1",
3
+ "version": "3.0.0-beta.20.0",
4
4
  "author": "OPTIMAL SYSTEMS GmbH <npm@optimal-systems.de>",
5
5
  "license": "MIT",
6
6
  "peerDependencies": {
7
- "@angular/common": "^19.2.1",
8
- "@angular/core": "^19.2.1",
9
- "@angular/router": "^19.2.1"
7
+ "@angular/common": "^20.0.0",
8
+ "@angular/core": "^20.0.0",
9
+ "@angular/router": "^20.0.0"
10
10
  },
11
11
  "dependencies": {
12
- "@ngx-pwa/local-storage": "^19.0.0",
13
- "@ngx-translate/core": "^15.0.0",
12
+ "@ngx-pwa/local-storage": "^20.0.0",
13
+ "@ngx-translate/core": "^17.0.0",
14
14
  "ngx-device-detector": "^9.0.0",
15
15
  "tslib": "^2.3.0"
16
16
  },
@@ -1,18 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import { LocaleNumberPipe } from './locale-number.pipe';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * This pipe transforms its input (supposed to be a file size in bytes) into a more
6
- * human readable format like for example 1MB or 200KB.
7
- *
8
- * @example
9
- * <div *ngFor="let size of file | fileSize">...</div>
10
- */
11
- export declare class FileSizePipe extends LocaleNumberPipe implements PipeTransform {
12
- private k;
13
- private sizes;
14
- transform(bytes?: number): string;
15
- stringToNumber(value: string): number;
16
- static ɵfac: i0.ɵɵFactoryDeclaration<FileSizePipe, never>;
17
- static ɵpipe: i0.ɵɵPipeDeclaration<FileSizePipe, "fileSize", true>;
18
- }
@@ -1,5 +0,0 @@
1
- export * from './filesize.pipe';
2
- export * from './locale-date.pipe';
3
- export * from './locale-number.pipe';
4
- export * from './safe-html.pipe';
5
- export * from './keys.pipe';
@@ -1,10 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * @ignore
5
- */
6
- export declare class KeysPipe implements PipeTransform {
7
- transform(value: any): any;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<KeysPipe, never>;
9
- static ɵpipe: i0.ɵɵPipeDeclaration<KeysPipe, "keys", true>;
10
- }
@@ -1,12 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import { TranslateService } from '@ngx-translate/core';
3
- import * as i0 from "@angular/core";
4
- type Formats = 'short' | 'medium' | 'shortDate';
5
- export declare class LocaleDatePipe implements PipeTransform {
6
- translate: TranslateService;
7
- constructor(translate: TranslateService);
8
- transform(value: string | number | Date | undefined, format?: Formats): string;
9
- static ɵfac: i0.ɵɵFactoryDeclaration<LocaleDatePipe, never>;
10
- static ɵpipe: i0.ɵɵPipeDeclaration<LocaleDatePipe, "localeDate", true>;
11
- }
12
- export {};
@@ -1,47 +0,0 @@
1
- import { CurrencyPipe, DecimalPipe, PercentPipe } from '@angular/common';
2
- import { PipeTransform } from '@angular/core';
3
- import { TranslateService } from '@ngx-translate/core';
4
- import * as i0 from "@angular/core";
5
- /**
6
- * @ignore
7
- */
8
- export declare class LocaleDecimalPipe extends DecimalPipe implements PipeTransform {
9
- translate: TranslateService;
10
- constructor(translate: TranslateService);
11
- transform(value: any, digits?: string, locale?: string): string | null | any;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<LocaleDecimalPipe, never>;
13
- static ɵpipe: i0.ɵɵPipeDeclaration<LocaleDecimalPipe, "localeDecimal", true>;
14
- }
15
- /**
16
- * @ignore
17
- */
18
- export declare class LocalePercentPipe extends PercentPipe implements PipeTransform {
19
- translate: TranslateService;
20
- constructor(translate: TranslateService);
21
- transform(value: any, digits?: string, locale?: string): string | null | any;
22
- static ɵfac: i0.ɵɵFactoryDeclaration<LocalePercentPipe, never>;
23
- static ɵpipe: i0.ɵɵPipeDeclaration<LocalePercentPipe, "localePercent", true>;
24
- }
25
- /**
26
- * @ignore
27
- */
28
- export declare class LocaleCurrencyPipe extends CurrencyPipe implements PipeTransform {
29
- translate: TranslateService;
30
- constructor(translate: TranslateService);
31
- transform(value: any, currencyCode?: string, display?: 'code' | 'symbol' | 'symbol-narrow' | boolean, digits?: string, locale?: string): string | null | any;
32
- static ɵfac: i0.ɵɵFactoryDeclaration<LocaleCurrencyPipe, never>;
33
- static ɵpipe: i0.ɵɵPipeDeclaration<LocaleCurrencyPipe, "localeCurrency", true>;
34
- }
35
- export declare class LocaleNumberPipe implements PipeTransform {
36
- translate: TranslateService;
37
- decimalPipe: LocaleDecimalPipe;
38
- decimalSeparator: string;
39
- separator: string;
40
- constructor(translate: TranslateService);
41
- transform(value: any, grouping?: boolean, pattern?: string, scale?: number, digits?: string, locale?: string): string | null;
42
- private updateSeparators;
43
- stringToNumber(value: string): number;
44
- numberToString(value: number, grouping?: boolean, pattern?: string, scale?: number): string | null;
45
- static ɵfac: i0.ɵɵFactoryDeclaration<LocaleNumberPipe, never>;
46
- static ɵpipe: i0.ɵɵPipeDeclaration<LocaleNumberPipe, "localeNumber", true>;
47
- }
@@ -1,28 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import { DomSanitizer, SafeHtml, SafeResourceUrl } from '@angular/platform-browser';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * This pipe bypass security and trust the given value to be safe HTML.
6
- * Only use this when the bound HTML is unsafe (e.g. contains script tags and the code should be executed.).
7
- * @example
8
- * <div [innerHtml]="value | safeHtml"></div>
9
- */
10
- export declare class SafeHtmlPipe implements PipeTransform {
11
- private sanitizer;
12
- constructor(sanitizer: DomSanitizer);
13
- transform(style: any): SafeHtml;
14
- static ɵfac: i0.ɵɵFactoryDeclaration<SafeHtmlPipe, never>;
15
- static ɵpipe: i0.ɵɵPipeDeclaration<SafeHtmlPipe, "safeHtml", true>;
16
- }
17
- /**
18
- * This pipe bypass security and trust the given value to be a safe style URL, i.e. a value that can be used in hyperlinks or img src.
19
- * @example
20
- * <iframe [src]="previewSrc | safeUrl"></iframe>
21
- */
22
- export declare class SafeUrlPipe implements PipeTransform {
23
- private sanitizer;
24
- constructor(sanitizer: DomSanitizer);
25
- transform(url: any): SafeResourceUrl;
26
- static ɵfac: i0.ɵɵFactoryDeclaration<SafeUrlPipe, never>;
27
- static ɵpipe: i0.ɵɵPipeDeclaration<SafeUrlPipe, "safeUrl", true>;
28
- }
@@ -1,8 +0,0 @@
1
- import { NativeNotificationOptions } from './native-notifications.interface';
2
- import * as i0 from "@angular/core";
3
- export declare class NativeNotificationService {
4
- requestPermission(): void;
5
- showNotification(title: string, options?: NativeNotificationOptions): void;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<NativeNotificationService, never>;
7
- static ɵprov: i0.ɵɵInjectableDeclaration<NativeNotificationService>;
8
- }
@@ -1,5 +0,0 @@
1
- export interface NativeNotificationOptions {
2
- options: NotificationOptions;
3
- preventOnTabActive?: boolean;
4
- onClick?: () => void;
5
- }
@@ -1,22 +0,0 @@
1
- export interface DmsObjectPermissions {
2
- readIndexData: boolean;
3
- readContent: boolean;
4
- writeIndexData: boolean;
5
- writeContent: boolean;
6
- deleteObject: boolean;
7
- deleteContent: boolean;
8
- }
9
- export interface DmsObjectAuditInfo {
10
- on: Date;
11
- by: {
12
- id: string;
13
- title?: string;
14
- name?: string;
15
- };
16
- }
17
- export interface DmsObjectTag {
18
- name: string;
19
- state: number;
20
- creationDate: Date;
21
- traceId: string;
22
- }
@@ -1,26 +0,0 @@
1
- import { ContentStream } from '../service/dms/dms.service.interface';
2
- import { SearchResultItem } from '../service/search/search.service.interface';
3
- import { DmsObjectAuditInfo, DmsObjectPermissions } from './dms-object.interface';
4
- /**
5
- * `DmsObject` is a business object of a type that generally contain a document file in addition to its metadata.
6
- * Document file can be text documents, e-mails, image files, video, etc.
7
- * Each object type classifies the object and defines the properties that the object must have or is allowed to have.
8
- */
9
- export declare class DmsObject {
10
- #private;
11
- id: string;
12
- parentId: string;
13
- content?: ContentStream;
14
- data: Record<string, unknown>;
15
- isFolder: boolean;
16
- objectTypeId: string;
17
- permissions?: DmsObjectPermissions;
18
- version: number;
19
- created: DmsObjectAuditInfo;
20
- modified: DmsObjectAuditInfo;
21
- sots: string[];
22
- /**
23
- * @ignore
24
- */
25
- constructor(searchResultItem: SearchResultItem);
26
- }
@@ -1,5 +0,0 @@
1
- export interface FileUploadOptions {
2
- label?: string;
3
- silent?: boolean;
4
- scope?: string;
5
- }
@@ -1,46 +0,0 @@
1
- import { Type } from '@angular/core';
2
- import { DmsObject } from './dms-object.model';
3
- import { Router } from '@angular/router';
4
- export interface FlavoredDmsObject {
5
- object: DmsObject;
6
- flavors: ObjectTypeFlavor[];
7
- }
8
- export interface ObjectTypeFlavor {
9
- id: string;
10
- icon?: string;
11
- svgIcon?: boolean;
12
- sot: string;
13
- applicableTo?: {
14
- mimeTypes?: string[];
15
- folders?: boolean;
16
- documents?: boolean;
17
- };
18
- preventApply?: boolean;
19
- preventRemove?: boolean;
20
- }
21
- /**
22
- * Create flavors can be used to provide a specific way of creating objects.
23
- */
24
- export interface ObjectCreateFlavor {
25
- id: string;
26
- descriptionKey?: string;
27
- icon?: string;
28
- withFileUpload?: {
29
- applicableTo?: {
30
- mimeTypes: string[];
31
- };
32
- multiple?: boolean;
33
- };
34
- sot?: string;
35
- getCreateData?: (files?: File[]) => Record<string, unknown>;
36
- afterCreate?: (ids: string[], router: Router) => void;
37
- applyComponent?: Type<any>;
38
- applyComponentDialogConfig?: {
39
- width?: string;
40
- height?: string;
41
- minWidth?: number | string;
42
- minHeight?: number | string;
43
- maxWidth?: number | string;
44
- maxHeight?: number | string;
45
- };
46
- }
@@ -1,9 +0,0 @@
1
- import { Operator } from '../service/search/search.service.interface';
2
- /**
3
- * Value class to be used with form elements that support ranges
4
- */
5
- export interface RangeValue<T = unknown> {
6
- operator: Operator;
7
- firstValue: T;
8
- secondValue?: T;
9
- }
@@ -1,18 +0,0 @@
1
- /**
2
- * @ignore
3
- */
4
- export declare class YuvError implements Error {
5
- originalError: any | Error;
6
- private _name?;
7
- private _message?;
8
- private _skipNotification;
9
- get name(): any;
10
- get message(): any;
11
- get stack(): any;
12
- get status(): any;
13
- get url(): any;
14
- get skipNotification(): boolean;
15
- get isHttpErrorResponse(): any;
16
- constructor(originalError: any | Error, _name?: string | undefined, _message?: string | undefined, _skipNotification?: boolean);
17
- toString(): any;
18
- }
@@ -1,42 +0,0 @@
1
- import { IdmUserResponse } from "../service/idm/models";
2
- /**
3
- * User account configuration
4
- */
5
- export declare class YuvUser {
6
- private DEFAULT_USER_LOCALE;
7
- id: string;
8
- username: string;
9
- firstname: string;
10
- lastname: string;
11
- title: string;
12
- email: string;
13
- tenant: string;
14
- authorities: string[];
15
- enabled: boolean;
16
- /**
17
- * User settings
18
- */
19
- uiDirection?: string;
20
- /**
21
- * User settings
22
- */
23
- userSettings: UserSettings;
24
- /**
25
- * @ignore
26
- */
27
- constructor(json: IdmUserResponse, userSettings?: UserSettings);
28
- /**
29
- * Gets the users configured client locale
30
- * @returns locale string
31
- */
32
- getClientLocale(fallback?: string): string;
33
- getFullName(): string;
34
- getDisplayNameName(): string;
35
- }
36
- /**
37
- * Interface for user settings
38
- */
39
- export interface UserSettings {
40
- locale: string;
41
- clientAppSettings?: Record<string, any>;
42
- }
@@ -1,6 +0,0 @@
1
- export type AvailabilityState = 'enabled' | 'disabled';
2
- export type Requirements = Record<string, string[]>;
3
- export interface YuvAvailableBackendApps {
4
- name: string;
5
- state: AvailabilityState;
6
- }
@@ -1,6 +0,0 @@
1
- import { InjectionToken, Provider } from '@angular/core';
2
- import { Requirements, YuvAvailableBackendApps } from './available-backend-apps.model';
3
- export declare const AVAILABLE_BACKEND_APPS: InjectionToken<YuvAvailableBackendApps[] | undefined>;
4
- export declare const provideAvailabilityManagement: (user: YuvAvailableBackendApps[]) => Provider;
5
- export declare const CLIENT_APP_REQUIREMENTS: InjectionToken<Requirements | null>;
6
- export declare const provideRequirements: (requirements: Requirements) => Provider;
@@ -1,2 +0,0 @@
1
- export * from './available-backend-apps.model';
2
- export * from './available-backend-apps.provider';
@@ -1,3 +0,0 @@
1
- export * from './available-backend-apps';
2
- export * from './navigation';
3
- export * from './provide.client.core';
@@ -1,3 +0,0 @@
1
- export * from './provide.before.unload.guard';
2
- export * from './provide.navigation-protection';
3
- export * from './provide.popstate-dialog.guard';
@@ -1,12 +0,0 @@
1
- import { EnvironmentProviders } from '@angular/core';
2
- /**
3
- * Registers a global `beforeunload` event listener that prevents the browser
4
- * from navigating away (tab close / reload) whenever there are pending tasks
5
- * tracked by {@link PendingChangesService}.
6
- *
7
- * Usage in `app.config.ts`:
8
- * ```ts
9
- * provideBeforeUnloadProtection()
10
- * ```
11
- */
12
- export declare function provideBeforeUnloadProtection(): EnvironmentProviders;
@@ -1,2 +0,0 @@
1
- import { EnvironmentProviders } from '@angular/core';
2
- export declare function provideNavigationProtection(): EnvironmentProviders[];
@@ -1,14 +0,0 @@
1
- import { EnvironmentProviders } from '@angular/core';
2
- /**
3
- * Provides environment-level protection against the browser back/forward buttons
4
- * while a Material dialog is open.
5
- *
6
- * Behavior:
7
- * 1. Listens for the browser `popstate` event (triggered by back/forward navigation).
8
- * 2. If at least one `MatDialog` is open, the URL is immediately restored via
9
- * `history.pushState` so the Angular router does not pick up the navigation.
10
- * 3. If `PendingChangesService` reports a pending task the user is prompted for
11
- * confirmation — the topmost dialog is closed only when the user agrees to discard.
12
- * 4. If there are no pending changes the topmost dialog is closed directly.
13
- */
14
- export declare function providePopstateDialogProtection(): EnvironmentProviders;
@@ -1,5 +0,0 @@
1
- import { EnvironmentProviders } from '@angular/core';
2
- export interface YuvClientCoreConfig {
3
- translations: string[];
4
- }
5
- export declare const provideYuvClientCore: (options?: YuvClientCoreConfig, customEvents?: string[], customEventsTrustedOrigin?: string[], disableBeforeUnloadProtection?: boolean, disablePopstateDialogProtection?: boolean) => EnvironmentProviders;
@@ -1,47 +0,0 @@
1
- import { SearchQuery } from "../search/search.service.interface";
2
- /**
3
- * Is a part of `AuditQueryResult` interface
4
- */
5
- export interface AuditEntry {
6
- action: number;
7
- actionGroup: number;
8
- detail: string;
9
- subaction?: number;
10
- creationDate: Date;
11
- version: number;
12
- createdBy: {
13
- id: string;
14
- title: string;
15
- };
16
- more?: string;
17
- }
18
- /**
19
- * Interface for a result object of a former audits query
20
- */
21
- export interface AuditQueryResult {
22
- /**
23
- * the original query, needed for later on paging requests
24
- */
25
- query: SearchQuery;
26
- items: AuditEntry[];
27
- hasMoreItems: boolean;
28
- /**
29
- * the page of the current result (in case of multi-page results, otherwise 1)
30
- */
31
- page: number;
32
- }
33
- export interface AuditQueryOptions {
34
- /**
35
- * List of actions (codes) to restricts the audits to
36
- */
37
- actions?: string[];
38
- /**
39
- * Actions that should explicitly NOT be fetched
40
- */
41
- skipActions?: number[];
42
- /**
43
- * Whether or not to query all audit entries, without the user
44
- * or admin filter conditions
45
- */
46
- allActions?: boolean;
47
- }
@@ -1,37 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import { AuditQueryOptions, AuditQueryResult } from './audit.interface';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * Service providing access to the systems audit entries. Audits can be seen as the history of
6
- * an object. Actions perormed on an object (eg. read, write, delete, ...) will be recorded during
7
- * the objects lifecycle. Audits are provided based on a users permissions. Beside the audit entries
8
- * visible to regular users there are more technical ones that will only be shown to users that
9
- * have administrative role.
10
- */
11
- export declare class AuditService {
12
- #private;
13
- private DEFAULT_RES_SIZE;
14
- private userAuditActions;
15
- private adminAuditActions;
16
- /**
17
- * Get audit entries of a dms object
18
- * @param id The id of the object to get the audit entries for
19
- * @param options Options
20
- */
21
- getAuditEntries(id: string, options?: AuditQueryOptions): Observable<AuditQueryResult>;
22
- /**
23
- * Get an array of action codes that are provided by the service. Based on
24
- * whether or not the user has admin permissions you'll get a different
25
- * set of actions.
26
- * @param skipActions codes of actions that should not be fetched
27
- */
28
- getAuditActions(allActions: boolean, skipActions?: number[]): number[];
29
- /**
30
- * Get a certain page for a former audits query.
31
- * @param auditsResult The result object of a former audits query
32
- * @param page The page to load
33
- */
34
- getPage(auditsResult: AuditQueryResult, page: number): Observable<AuditQueryResult>;
35
- static ɵfac: i0.ɵɵFactoryDeclaration<AuditService, never>;
36
- static ɵprov: i0.ɵɵInjectableDeclaration<AuditService>;
37
- }
@@ -1,6 +0,0 @@
1
- import { HttpEvent, HttpHandlerFn, HttpRequest } from '@angular/common/http';
2
- import { Observable } from 'rxjs';
3
- /**
4
- * Prevent app from running into 401 issues related to gateway timeouts.
5
- */
6
- export declare function AuthInterceptorFnc(req: HttpRequest<unknown>, next: HttpHandlerFn): Observable<HttpEvent<unknown>>;
@@ -1,34 +0,0 @@
1
- /**
2
- * Result when calling loginDevice endpoint in cloud environment
3
- * when using device flow
4
- */
5
- export interface LoginDeviceResult {
6
- user_code: string;
7
- device_code: string;
8
- interval: number;
9
- verification_uri: string;
10
- expires_in: number;
11
- }
12
- /**
13
- * @ignore
14
- */
15
- export interface StoredToken {
16
- accessToken: string;
17
- tenant: string;
18
- }
19
- /**
20
- * State emitted by the login function when using the device flow
21
- */
22
- export interface LoginState {
23
- name: LoginStateName;
24
- data: any;
25
- }
26
- export declare enum LoginStateName {
27
- STATE_LOGIN_URI = "login.uri",
28
- STATE_DONE = "login.done",
29
- STATE_CANCELED = "login.canceled"
30
- }
31
- export interface YuvInitError {
32
- status: number;
33
- key: string;
34
- }
@@ -1,54 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import { YuvUser } from '../../model/yuv-user.model';
3
- import { CoreConfig } from '../config/core-config';
4
- import { YuvInitError } from './auth.interface';
5
- import * as i0 from "@angular/core";
6
- /**
7
- * Service handling authentication related issues.
8
- */
9
- export declare class AuthService {
10
- #private;
11
- coreConfig: CoreConfig;
12
- authenticated$: Observable<boolean>;
13
- initError?: YuvInitError;
14
- constructor(coreConfig: CoreConfig);
15
- isLoggedIn(): boolean;
16
- /**
17
- * Called while app/core is initialized (APP_INITIALIZER)
18
- * @ignore
19
- */
20
- initUser(): Observable<YuvUser>;
21
- /**
22
- * Get the current tenant or the previous one persisted locally
23
- */
24
- getTenant(): string;
25
- /**
26
- * Fetch information about the user currently logged in
27
- */
28
- fetchUser(): Observable<YuvUser>;
29
- /**
30
- * Logs out the current user.
31
- */
32
- logout(): void;
33
- /**
34
- * Persists the initial request URI. This is nessesary to be able to
35
- * redirect the user to the requested page after authentication.
36
- * This is done on app initialization (core-init).
37
- */
38
- setInitialRequestUri(): Observable<boolean>;
39
- /**
40
- * Get the URL that entered the app. May be a deep link that could then be
41
- * picked up again after user has been authenticated.
42
- */
43
- getInitialRequestUri(): Observable<{
44
- uri: string;
45
- timestamp: number;
46
- }>;
47
- resetInitialRequestUri(): Observable<any>;
48
- static ɵfac: i0.ɵɵFactoryDeclaration<AuthService, never>;
49
- static ɵprov: i0.ɵɵInjectableDeclaration<AuthService>;
50
- }
51
- export interface AuthData {
52
- tenant: string;
53
- language: string;
54
- }
@@ -1,7 +0,0 @@
1
- export declare enum ApiBase {
2
- core = "api",
3
- apiWeb = "api-web/api",
4
- predict = "predict-api/api",
5
- custom = "custom",
6
- none = ""
7
- }
@@ -1,21 +0,0 @@
1
- import { HttpHeaders, HttpParams } from '@angular/common/http';
2
- /**
3
- * HttpOptions for http request
4
- * @param observe: 'body' | 'events' | 'response'
5
- * @param responseType: 'arraybuffer' | 'blob' | 'json' | 'text'
6
- */
7
- export interface HttpOptions {
8
- headers?: HttpHeaders | {
9
- [header: string]: string | string[];
10
- };
11
- observe?: any;
12
- params?: HttpParams | {
13
- [param: string]: string | string[];
14
- };
15
- reportProgress?: boolean;
16
- responseType?: any;
17
- withCredentials?: boolean;
18
- }
19
- export interface HttpDeleteOptions extends HttpOptions {
20
- body?: any;
21
- }