@yuuvis/client-core 0.6.5
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.
- package/README.md +111 -0
- package/esm2022/index.mjs +65 -0
- package/esm2022/lib/client-core.module.mjs +117 -0
- package/esm2022/lib/client-core.shared.module.mjs +18 -0
- package/esm2022/lib/common/pipes/filesize.pipe.mjs +37 -0
- package/esm2022/lib/common/pipes/index.mjs +6 -0
- package/esm2022/lib/common/pipes/keys.pipe.mjs +17 -0
- package/esm2022/lib/common/pipes/locale-date.pipe.mjs +45 -0
- package/esm2022/lib/common/pipes/locale-number.pipe.mjs +115 -0
- package/esm2022/lib/common/pipes/safe-html.pipe.mjs +44 -0
- package/esm2022/lib/common/services/native-notifications.interface.mjs +2 -0
- package/esm2022/lib/common/services/native-notifications.mjs +40 -0
- package/esm2022/lib/model/dms-object.interface.mjs +2 -0
- package/esm2022/lib/model/dms-object.model.mjs +79 -0
- package/esm2022/lib/model/object-flavor.interface.mjs +2 -0
- package/esm2022/lib/model/range-value.interface.mjs +2 -0
- package/esm2022/lib/model/yuv-error.model.mjs +37 -0
- package/esm2022/lib/model/yuv-user.model.mjs +38 -0
- package/esm2022/lib/service/audit/audit.interface.mjs +2 -0
- package/esm2022/lib/service/audit/audit.service.mjs +135 -0
- package/esm2022/lib/service/auth/auth.interceptor.mjs +50 -0
- package/esm2022/lib/service/auth/auth.interface.mjs +7 -0
- package/esm2022/lib/service/auth/auth.service.mjs +130 -0
- package/esm2022/lib/service/auth/oidc.service.mjs +81 -0
- package/esm2022/lib/service/backend/api.enum.mjs +11 -0
- package/esm2022/lib/service/backend/backend.interface.mjs +2 -0
- package/esm2022/lib/service/backend/backend.service.mjs +206 -0
- package/esm2022/lib/service/bpm/bpm.interface.mjs +8 -0
- package/esm2022/lib/service/bpm/bpm.service.mjs +51 -0
- package/esm2022/lib/service/cache/app-cache.service.mjs +51 -0
- package/esm2022/lib/service/catalog/catalog.interface.mjs +2 -0
- package/esm2022/lib/service/catalog/catalog.service.mjs +13 -0
- package/esm2022/lib/service/clipboard/clipboard.interface.mjs +2 -0
- package/esm2022/lib/service/clipboard/clipboard.service.mjs +90 -0
- package/esm2022/lib/service/config/config.interface.mjs +6 -0
- package/esm2022/lib/service/config/config.service.mjs +115 -0
- package/esm2022/lib/service/config/core-config.mjs +20 -0
- package/esm2022/lib/service/config/core-config.tokens.mjs +9 -0
- package/esm2022/lib/service/connection/connection.service.mjs +36 -0
- package/esm2022/lib/service/connection/offline.interceptor.mjs +28 -0
- package/esm2022/lib/service/core-init/core-init.service.mjs +29 -0
- package/esm2022/lib/service/core-init/missing-translation-handler.mjs +10 -0
- package/esm2022/lib/service/core-init/translate-json-loader.mjs +117 -0
- package/esm2022/lib/service/device/device.interface.mjs +6 -0
- package/esm2022/lib/service/device/device.service.mjs +144 -0
- package/esm2022/lib/service/dms/dms.service.interface.mjs +2 -0
- package/esm2022/lib/service/dms/dms.service.mjs +440 -0
- package/esm2022/lib/service/event/event.interface.mjs +2 -0
- package/esm2022/lib/service/event/event.service.mjs +38 -0
- package/esm2022/lib/service/event/events.mjs +14 -0
- package/esm2022/lib/service/idm/idm.interface.mjs +2 -0
- package/esm2022/lib/service/idm/idm.service.mjs +34 -0
- package/esm2022/lib/service/logger/logger-console.service.mjs +73 -0
- package/esm2022/lib/service/logger/logger.interface.mjs +2 -0
- package/esm2022/lib/service/logger/logger.mjs +27 -0
- package/esm2022/lib/service/notification/notification.service.mjs +131 -0
- package/esm2022/lib/service/object-config/object-config.interface.mjs +2 -0
- package/esm2022/lib/service/object-config/object-config.service.mjs +229 -0
- package/esm2022/lib/service/pending-changes/pending-changes-component.interface.mjs +5 -0
- package/esm2022/lib/service/pending-changes/pending-changes-guard.service.mjs +25 -0
- package/esm2022/lib/service/pending-changes/pending-changes.service.mjs +123 -0
- package/esm2022/lib/service/prediction/prediction.interface.mjs +2 -0
- package/esm2022/lib/service/prediction/prediction.service.mjs +60 -0
- package/esm2022/lib/service/search/search.service.interface.mjs +39 -0
- package/esm2022/lib/service/search/search.service.mjs +178 -0
- package/esm2022/lib/service/session-storage/session-storage.service.mjs +50 -0
- package/esm2022/lib/service/system/object-form.interface.mjs +2 -0
- package/esm2022/lib/service/system/system.enum.mjs +179 -0
- package/esm2022/lib/service/system/system.interface.mjs +2 -0
- package/esm2022/lib/service/system/system.service.mjs +597 -0
- package/esm2022/lib/service/upload/upload.interface.mjs +2 -0
- package/esm2022/lib/service/upload/upload.service.mjs +228 -0
- package/esm2022/lib/service/user/user.service.mjs +211 -0
- package/esm2022/lib/util/utils.helper.enum.mjs +15 -0
- package/esm2022/lib/util/utils.mjs +373 -0
- package/esm2022/yuuvis-client-core.mjs +5 -0
- package/fesm2022/yuuvis-client-core.mjs +4775 -0
- package/fesm2022/yuuvis-client-core.mjs.map +1 -0
- package/index.d.ts +61 -0
- package/lib/client-core.module.d.ts +20 -0
- package/lib/client-core.shared.module.d.ts +10 -0
- package/lib/common/pipes/filesize.pipe.d.ts +18 -0
- package/lib/common/pipes/index.d.ts +5 -0
- package/lib/common/pipes/keys.pipe.d.ts +10 -0
- package/lib/common/pipes/locale-date.pipe.d.ts +12 -0
- package/lib/common/pipes/locale-number.pipe.d.ts +47 -0
- package/lib/common/pipes/safe-html.pipe.d.ts +28 -0
- package/lib/common/services/native-notifications.d.ts +8 -0
- package/lib/common/services/native-notifications.interface.d.ts +5 -0
- package/lib/model/dms-object.interface.d.ts +16 -0
- package/lib/model/dms-object.model.d.ts +26 -0
- package/lib/model/object-flavor.interface.d.ts +30 -0
- package/lib/model/range-value.interface.d.ts +9 -0
- package/lib/model/yuv-error.model.d.ts +18 -0
- package/lib/model/yuv-user.model.d.ts +44 -0
- package/lib/service/audit/audit.interface.d.ts +47 -0
- package/lib/service/audit/audit.service.d.ts +35 -0
- package/lib/service/auth/auth.interceptor.d.ts +12 -0
- package/lib/service/auth/auth.interface.d.ts +34 -0
- package/lib/service/auth/auth.service.d.ts +50 -0
- package/lib/service/auth/oidc.service.d.ts +16 -0
- package/lib/service/backend/api.enum.d.ts +7 -0
- package/lib/service/backend/backend.interface.d.ts +29 -0
- package/lib/service/backend/backend.service.d.ts +118 -0
- package/lib/service/bpm/bpm.interface.d.ts +86 -0
- package/lib/service/bpm/bpm.service.d.ts +19 -0
- package/lib/service/cache/app-cache.service.d.ts +18 -0
- package/lib/service/catalog/catalog.interface.d.ts +12 -0
- package/lib/service/catalog/catalog.service.d.ts +5 -0
- package/lib/service/clipboard/clipboard.interface.d.ts +11 -0
- package/lib/service/clipboard/clipboard.service.d.ts +23 -0
- package/lib/service/config/config.interface.d.ts +34 -0
- package/lib/service/config/config.service.d.ts +45 -0
- package/lib/service/config/core-config.d.ts +14 -0
- package/lib/service/config/core-config.tokens.d.ts +7 -0
- package/lib/service/connection/connection.service.d.ts +25 -0
- package/lib/service/connection/offline.interceptor.d.ts +15 -0
- package/lib/service/core-init/core-init.service.d.ts +11 -0
- package/lib/service/core-init/missing-translation-handler.d.ts +8 -0
- package/lib/service/core-init/translate-json-loader.d.ts +20 -0
- package/lib/service/device/device.interface.d.ts +15 -0
- package/lib/service/device/device.service.d.ts +54 -0
- package/lib/service/dms/dms.service.d.ts +153 -0
- package/lib/service/dms/dms.service.interface.d.ts +59 -0
- package/lib/service/event/event.interface.d.ts +13 -0
- package/lib/service/event/event.service.d.ts +23 -0
- package/lib/service/event/events.d.ts +12 -0
- package/lib/service/idm/idm.interface.d.ts +5 -0
- package/lib/service/idm/idm.service.d.ts +9 -0
- package/lib/service/logger/logger-console.service.d.ts +20 -0
- package/lib/service/logger/logger.d.ts +17 -0
- package/lib/service/logger/logger.interface.d.ts +10 -0
- package/lib/service/notification/notification.service.d.ts +71 -0
- package/lib/service/object-config/object-config.interface.d.ts +62 -0
- package/lib/service/object-config/object-config.service.d.ts +38 -0
- package/lib/service/pending-changes/pending-changes-component.interface.d.ts +6 -0
- package/lib/service/pending-changes/pending-changes-guard.service.d.ts +14 -0
- package/lib/service/pending-changes/pending-changes.service.d.ts +57 -0
- package/lib/service/prediction/prediction.interface.d.ts +18 -0
- package/lib/service/prediction/prediction.service.d.ts +15 -0
- package/lib/service/search/search.service.d.ts +46 -0
- package/lib/service/search/search.service.interface.d.ts +119 -0
- package/lib/service/session-storage/session-storage.service.d.ts +15 -0
- package/lib/service/system/object-form.interface.d.ts +46 -0
- package/lib/service/system/system.enum.d.ts +141 -0
- package/lib/service/system/system.interface.d.ts +146 -0
- package/lib/service/system/system.service.d.ts +168 -0
- package/lib/service/upload/upload.interface.d.ts +55 -0
- package/lib/service/upload/upload.service.d.ts +34 -0
- package/lib/service/user/user.service.d.ts +69 -0
- package/lib/util/utils.d.ts +118 -0
- package/lib/util/utils.helper.enum.d.ts +13 -0
- package/package.json +33 -0
package/index.d.ts
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
export { TranslateDirective, TranslateLoader, TranslateModule, TranslatePipe, TranslateService } from '@ngx-translate/core';
|
|
2
|
+
export * from './lib/client-core.shared.module';
|
|
3
|
+
export * from './lib/model/dms-object.interface';
|
|
4
|
+
export * from './lib/model/object-flavor.interface';
|
|
5
|
+
export * from './lib/model/dms-object.model';
|
|
6
|
+
export * from './lib/model/range-value.interface';
|
|
7
|
+
export * from './lib/model/yuv-error.model';
|
|
8
|
+
export * from './lib/model/yuv-user.model';
|
|
9
|
+
export * from './lib/service/audit/audit.interface';
|
|
10
|
+
export * from './lib/service/audit/audit.service';
|
|
11
|
+
export * from './lib/service/auth/auth.interface';
|
|
12
|
+
export * from './lib/service/auth/auth.service';
|
|
13
|
+
export * from './lib/service/auth/oidc.service';
|
|
14
|
+
export * from './lib/service/backend/api.enum';
|
|
15
|
+
export * from './lib/service/backend/backend.interface';
|
|
16
|
+
export * from './lib/service/backend/backend.service';
|
|
17
|
+
export * from './lib/service/bpm/bpm.service';
|
|
18
|
+
export * from './lib/service/bpm/bpm.interface';
|
|
19
|
+
export * from './lib/service/cache/app-cache.service';
|
|
20
|
+
export * from './lib/service/catalog/catalog.interface';
|
|
21
|
+
export * from './lib/service/catalog/catalog.service';
|
|
22
|
+
export * from './lib/service/clipboard/clipboard.interface';
|
|
23
|
+
export * from './lib/service/clipboard/clipboard.service';
|
|
24
|
+
export * from './lib/service/config/config.interface';
|
|
25
|
+
export * from './lib/service/config/config.service';
|
|
26
|
+
export * from './lib/service/config/core-config';
|
|
27
|
+
export * from './lib/service/config/core-config.tokens';
|
|
28
|
+
export * from './lib/service/connection/connection.service';
|
|
29
|
+
export * from './lib/service/core-init/core-init.service';
|
|
30
|
+
export * from './lib/service/device/device.service';
|
|
31
|
+
export * from './lib/service/device/device.interface';
|
|
32
|
+
export * from './lib/service/dms/dms.service';
|
|
33
|
+
export * from './lib/service/dms/dms.service.interface';
|
|
34
|
+
export * from './lib/service/event/event.interface';
|
|
35
|
+
export * from './lib/service/event/event.service';
|
|
36
|
+
export * from './lib/service/event/events';
|
|
37
|
+
export * from './lib/service/idm/idm.interface';
|
|
38
|
+
export * from './lib/service/idm/idm.service';
|
|
39
|
+
export * from './lib/service/logger/logger';
|
|
40
|
+
export * from './lib/service/notification/notification.service';
|
|
41
|
+
export * from './lib/service/object-config/object-config.interface';
|
|
42
|
+
export * from './lib/service/object-config/object-config.service';
|
|
43
|
+
export * from './lib/service/pending-changes/pending-changes-guard.service';
|
|
44
|
+
export * from './lib/service/pending-changes/pending-changes.service';
|
|
45
|
+
export * from './lib/service/prediction/prediction.interface';
|
|
46
|
+
export * from './lib/service/prediction/prediction.service';
|
|
47
|
+
export * from './lib/service/search/search.service';
|
|
48
|
+
export * from './lib/service/search/search.service.interface';
|
|
49
|
+
export * from './lib/service/session-storage/session-storage.service';
|
|
50
|
+
export * from './lib/service/system/object-form.interface';
|
|
51
|
+
export * from './lib/service/system/system.enum';
|
|
52
|
+
export * from './lib/service/system/system.interface';
|
|
53
|
+
export * from './lib/service/system/system.service';
|
|
54
|
+
export * from './lib/service/upload/upload.interface';
|
|
55
|
+
export * from './lib/service/upload/upload.service';
|
|
56
|
+
export * from './lib/service/user/user.service';
|
|
57
|
+
export * from './lib/util/utils';
|
|
58
|
+
export * from './lib/util/utils.helper.enum';
|
|
59
|
+
export * from './lib/client-core.module';
|
|
60
|
+
export * from './lib/common/pipes';
|
|
61
|
+
export * from './lib/common/services/native-notifications';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { OAuthStorage } from 'angular-oauth2-oidc';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "angular-oauth2-oidc";
|
|
4
|
+
import * as i2 from "@ngx-translate/core";
|
|
5
|
+
import * as i3 from "./client-core.shared.module";
|
|
6
|
+
export declare function storageFactory(): OAuthStorage;
|
|
7
|
+
/**
|
|
8
|
+
* `YuvClientCoreModule` provides a bunch of services to interact with a yuuvis backend.
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
*/
|
|
12
|
+
export declare class YuvClientCoreModule {
|
|
13
|
+
/**
|
|
14
|
+
* @ignore
|
|
15
|
+
*/
|
|
16
|
+
constructor(parentModule: YuvClientCoreModule);
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<YuvClientCoreModule, [{ optional: true; skipSelf: true; }]>;
|
|
18
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<YuvClientCoreModule, never, [typeof i1.OAuthModule, typeof i2.TranslateModule], [typeof i3.YuvClientCoreSharedModule]>;
|
|
19
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<YuvClientCoreModule>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "@ngx-translate/core";
|
|
3
|
+
/**
|
|
4
|
+
* `YuvClientCoreSharedModule` sets up and re-exports the TranslateModule.
|
|
5
|
+
*/
|
|
6
|
+
export declare class YuvClientCoreSharedModule {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<YuvClientCoreSharedModule, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<YuvClientCoreSharedModule, never, never, [typeof i1.TranslateModule]>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<YuvClientCoreSharedModule>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
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 {};
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Type } from '@angular/core';
|
|
2
|
+
import { DmsObject } from './dms-object.model';
|
|
3
|
+
export interface FlavoredDmsObject {
|
|
4
|
+
object: DmsObject;
|
|
5
|
+
flavors: ObjectTypeFlavor[];
|
|
6
|
+
}
|
|
7
|
+
export interface ObjectTypeFlavor {
|
|
8
|
+
id: string;
|
|
9
|
+
icon?: string;
|
|
10
|
+
sot: string;
|
|
11
|
+
applicableTo?: {
|
|
12
|
+
mimeTypes: string[];
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Create flavors can be used to provide a specific way of creating objects.
|
|
17
|
+
*/
|
|
18
|
+
export interface ObjectCreateFlavor {
|
|
19
|
+
id: string;
|
|
20
|
+
descriptionKey?: string;
|
|
21
|
+
icon?: string;
|
|
22
|
+
withFileUpload?: {
|
|
23
|
+
applicableTo?: {
|
|
24
|
+
mimeTypes: string[];
|
|
25
|
+
};
|
|
26
|
+
multiple?: boolean;
|
|
27
|
+
};
|
|
28
|
+
sot?: string;
|
|
29
|
+
applyComponent?: Type<any>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* User account configuration
|
|
3
|
+
*/
|
|
4
|
+
export declare class YuvUser {
|
|
5
|
+
private DEFAULT_USER_LOCALE;
|
|
6
|
+
id: string;
|
|
7
|
+
username: string;
|
|
8
|
+
firstname: string;
|
|
9
|
+
lastname: string;
|
|
10
|
+
title: string;
|
|
11
|
+
email: string;
|
|
12
|
+
image: string;
|
|
13
|
+
tenant: string;
|
|
14
|
+
domain: string;
|
|
15
|
+
authorities: string[];
|
|
16
|
+
substituteOf: string[];
|
|
17
|
+
enabled: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* User settings
|
|
20
|
+
*/
|
|
21
|
+
uiDirection?: string;
|
|
22
|
+
/**
|
|
23
|
+
* User settings
|
|
24
|
+
*/
|
|
25
|
+
userSettings: UserSettings;
|
|
26
|
+
/**
|
|
27
|
+
* @ignore
|
|
28
|
+
*/
|
|
29
|
+
constructor(json: any, userSettings?: UserSettings);
|
|
30
|
+
/**
|
|
31
|
+
* Gets the users configured client locale
|
|
32
|
+
* @returns locale string
|
|
33
|
+
*/
|
|
34
|
+
getClientLocale(fallback?: string): string;
|
|
35
|
+
getFullName(): string;
|
|
36
|
+
getDisplayNameName(): string;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Interface for user settings
|
|
40
|
+
*/
|
|
41
|
+
export interface UserSettings {
|
|
42
|
+
locale: string;
|
|
43
|
+
clientAppSettings?: Record<string, any>;
|
|
44
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
*/
|
|
19
|
+
getAuditEntries(id: string, options?: AuditQueryOptions): Observable<AuditQueryResult>;
|
|
20
|
+
/**
|
|
21
|
+
* Get an array of action codes that are provided by the service. Based on
|
|
22
|
+
* whether or not the user has admin permissions you'll get a different
|
|
23
|
+
* set of actions.
|
|
24
|
+
* @param skipActions codes of actions that should not be fetched
|
|
25
|
+
*/
|
|
26
|
+
getAuditActions(allActions: boolean, skipActions?: number[]): number[];
|
|
27
|
+
/**
|
|
28
|
+
* Get a certain page for a former audits query.
|
|
29
|
+
* @param auditsResult The result object of a former audits query
|
|
30
|
+
* @param page The page to load
|
|
31
|
+
*/
|
|
32
|
+
getPage(auditsResult: AuditQueryResult, page: number): Observable<AuditQueryResult>;
|
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AuditService, never>;
|
|
34
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AuditService>;
|
|
35
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
/**
|
|
5
|
+
* Prevent app from running into 401 issues related to gateway timeouts.
|
|
6
|
+
*/
|
|
7
|
+
export declare class AuthInterceptor implements HttpInterceptor {
|
|
8
|
+
#private;
|
|
9
|
+
intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AuthInterceptor, never>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AuthInterceptor>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
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
|
+
readonly USER_FETCH_URI = "/idm/whoami";
|
|
13
|
+
authenticated$: Observable<boolean>;
|
|
14
|
+
initError?: YuvInitError;
|
|
15
|
+
constructor(coreConfig: CoreConfig);
|
|
16
|
+
isLoggedIn(): boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Called while app/core is initialized (APP_INITIALIZER)
|
|
19
|
+
* @ignore
|
|
20
|
+
*/
|
|
21
|
+
initUser(): Observable<YuvUser>;
|
|
22
|
+
/**
|
|
23
|
+
* Get the current tenant or the previous one persisted locally
|
|
24
|
+
*/
|
|
25
|
+
getTenant(): string;
|
|
26
|
+
/**
|
|
27
|
+
* Fetch information about the user currently logged in
|
|
28
|
+
*/
|
|
29
|
+
fetchUser(): Observable<YuvUser>;
|
|
30
|
+
/**
|
|
31
|
+
* Logs out the current user.
|
|
32
|
+
*/
|
|
33
|
+
logout(): void;
|
|
34
|
+
setInitialRequestUri(): void;
|
|
35
|
+
/**
|
|
36
|
+
* Get the URL that entered the app. May be a deep link that could then be
|
|
37
|
+
* picked up again after user has been authenticated.
|
|
38
|
+
*/
|
|
39
|
+
getInitialRequestUri(): Observable<{
|
|
40
|
+
uri: string;
|
|
41
|
+
timestamp: number;
|
|
42
|
+
}>;
|
|
43
|
+
resetInitialRequestUri(): Observable<any>;
|
|
44
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AuthService, never>;
|
|
45
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AuthService>;
|
|
46
|
+
}
|
|
47
|
+
export interface AuthData {
|
|
48
|
+
tenant: string;
|
|
49
|
+
language: string;
|
|
50
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { OAuthModuleConfig, OAuthService } from 'angular-oauth2-oidc';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { OpenIdConfig } from '../backend/backend.interface';
|
|
4
|
+
import { CoreConfig } from '../config/core-config';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class OidcService {
|
|
7
|
+
private oAuthConfig;
|
|
8
|
+
config: CoreConfig;
|
|
9
|
+
private oauthService;
|
|
10
|
+
constructor(oAuthConfig: OAuthModuleConfig, config: CoreConfig, oauthService: OAuthService);
|
|
11
|
+
initOpenIdConnect(oidc: OpenIdConfig | undefined): Observable<OpenIdConfig | undefined>;
|
|
12
|
+
logout(): void;
|
|
13
|
+
setupCookie(viewer: string, path: string, headers: any): Observable<unknown>;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OidcService, [{ optional: true; }, null, null]>;
|
|
15
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<OidcService>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { HttpHeaders, HttpParams } from '@angular/common/http';
|
|
2
|
+
export interface OpenIdConfig {
|
|
3
|
+
host: string;
|
|
4
|
+
tenant: string;
|
|
5
|
+
issuer: string;
|
|
6
|
+
clientId: string;
|
|
7
|
+
redirectUri?: string;
|
|
8
|
+
postLogoutRedirectUri?: string;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* HttpOptions for http request
|
|
12
|
+
* @param observe: 'body' | 'events' | 'response'
|
|
13
|
+
* @param responseType: 'arraybuffer' | 'blob' | 'json' | 'text'
|
|
14
|
+
*/
|
|
15
|
+
export interface HttpOptions {
|
|
16
|
+
headers?: HttpHeaders | {
|
|
17
|
+
[header: string]: string | string[];
|
|
18
|
+
};
|
|
19
|
+
observe?: any;
|
|
20
|
+
params?: HttpParams | {
|
|
21
|
+
[param: string]: string | string[];
|
|
22
|
+
};
|
|
23
|
+
reportProgress?: boolean;
|
|
24
|
+
responseType?: any;
|
|
25
|
+
withCredentials?: boolean;
|
|
26
|
+
}
|
|
27
|
+
export interface HttpDeleteOptions extends HttpOptions {
|
|
28
|
+
body?: any;
|
|
29
|
+
}
|