@yuuvis/client-core 0.8.0 → 0.9.1

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/index.d.ts CHANGED
@@ -44,6 +44,8 @@ export * from './lib/service/pending-changes/pending-changes-guard.service';
44
44
  export * from './lib/service/pending-changes/pending-changes.service';
45
45
  export * from './lib/service/prediction/prediction.interface';
46
46
  export * from './lib/service/prediction/prediction.service';
47
+ export * from './lib/service/retention/retention.service';
48
+ export * from './lib/service/retention/retention.interface';
47
49
  export * from './lib/service/search/search.service';
48
50
  export * from './lib/service/search/search.utils';
49
51
  export * from './lib/service/search/search.service.interface';
@@ -55,6 +57,7 @@ export * from './lib/service/system/system.service';
55
57
  export * from './lib/service/upload/upload.interface';
56
58
  export * from './lib/service/upload/upload.service';
57
59
  export * from './lib/service/user/user.service';
60
+ export * from './lib/service/user/user-storage.service';
58
61
  export * from './lib/util/utils';
59
62
  export * from './lib/util/utils.helper.enum';
60
63
  export * from './lib/client-core.module';
@@ -18,6 +18,7 @@ export declare class ClipboardService {
18
18
  */
19
19
  addObjects(objects: DmsObject[], mode: ClipboardDataMode, bucket?: string): void;
20
20
  clear(bucket?: string): void;
21
+ addToNavigatorClipBoard(data: string): Promise<void>;
21
22
  static ɵfac: i0.ɵɵFactoryDeclaration<ClipboardService, never>;
22
23
  static ɵprov: i0.ɵɵInjectableDeclaration<ClipboardService>;
23
24
  }
@@ -0,0 +1,5 @@
1
+ export interface RetentionState {
2
+ underRetention: boolean;
3
+ start?: Date;
4
+ end?: Date;
5
+ }
@@ -0,0 +1,26 @@
1
+ import { DmsObject } from '../../model/dms-object.model';
2
+ import { RetentionState } from './retention.interface';
3
+ import { Observable } from 'rxjs';
4
+ import * as i0 from "@angular/core";
5
+ /**
6
+ * Service to manage retention for DMS objects. This service allows to set retention
7
+ * for objects and revert retention if necessary/possible.
8
+ */
9
+ export declare class RetentionService {
10
+ #private;
11
+ /**
12
+ * Set retention for given objects. This will add the retention SOT to the objects
13
+ * and set the retention start and end date. If the retetion start date is in the
14
+ * future, you can revert the retention until then by calling `revertRetention`.
15
+ * @param dmsObjects The objects to set retention for
16
+ * @param retentionStart Date when retention period should begin
17
+ * @param retentionEnd Date when retention period should end
18
+ * @param destructionDate Date when the object should be destroyed. This right now is just a
19
+ * marker and has no effect on the object lifecycle.
20
+ * @returns The updated objects
21
+ */
22
+ setRetention(dmsObjects: DmsObject[], retentionStart: Date, retentionEnd: Date, destructionDate?: Date): Observable<DmsObject[]>;
23
+ getRetentionState(dmsObject: DmsObject): RetentionState;
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<RetentionService, never>;
25
+ static ɵprov: i0.ɵɵInjectableDeclaration<RetentionService>;
26
+ }
@@ -30,12 +30,6 @@ export declare const RetentionField: {
30
30
  RETENTION_START: string;
31
31
  DESTRUCTION_DATE: string;
32
32
  };
33
- export declare enum RetentionState {
34
- NONE = 0,
35
- ACTIVE = 1,
36
- DESTRUCT = 2,
37
- INACTIVE = 3
38
- }
39
33
  export declare const BaseObjectTypeField: {
40
34
  PARENT_ID: string;
41
35
  PARENT_OBJECT_TYPE_ID: string;
@@ -0,0 +1,18 @@
1
+ import { Observable } from 'rxjs';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * Service providing user related remote storage. This service is used load and
5
+ * store user related data from any device.
6
+ */
7
+ export declare class UserStorageService {
8
+ #private;
9
+ /**
10
+ *
11
+ * @param section section key for
12
+ * @param value value to be stored
13
+ */
14
+ getItem(section: string): Observable<Record<string, any> | undefined>;
15
+ setItem(section: string, data: Record<string, any>): Observable<any>;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<UserStorageService, never>;
17
+ static ɵprov: i0.ɵɵInjectableDeclaration<UserStorageService>;
18
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yuuvis/client-core",
3
- "version": "0.8.0",
3
+ "version": "0.9.1",
4
4
  "author": "OPTIMAL SYSTEMS GmbH <npm@optimal-systems.de>",
5
5
  "license": "MIT",
6
6
  "peerDependencies": {