@yuuvis/client-core 0.7.4 → 0.9.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.
- package/esm2022/index.mjs +5 -1
- package/esm2022/lib/service/clipboard/clipboard.service.mjs +10 -1
- package/esm2022/lib/service/object-config/object-config.service.mjs +1 -2
- package/esm2022/lib/service/retention/retention.interface.mjs +2 -0
- package/esm2022/lib/service/retention/retention.service.mjs +65 -0
- package/esm2022/lib/service/search/search.service.interface.mjs +1 -1
- package/esm2022/lib/service/search/search.service.mjs +84 -1
- package/esm2022/lib/service/search/search.utils.mjs +142 -0
- package/esm2022/lib/service/system/system.enum.mjs +2 -14
- package/esm2022/lib/service/system/system.service.mjs +1 -1
- package/esm2022/lib/service/user/user-storage.service.mjs +38 -0
- package/fesm2022/yuuvis-client-core.mjs +653 -340
- package/fesm2022/yuuvis-client-core.mjs.map +1 -1
- package/index.d.ts +4 -0
- package/lib/service/clipboard/clipboard.service.d.ts +1 -0
- package/lib/service/retention/retention.interface.d.ts +5 -0
- package/lib/service/retention/retention.service.d.ts +26 -0
- package/lib/service/search/search.service.d.ts +10 -1
- package/lib/service/search/search.service.interface.d.ts +3 -1
- package/lib/service/search/search.utils.d.ts +18 -0
- package/lib/service/system/system.enum.d.ts +0 -6
- package/lib/service/user/user-storage.service.d.ts +18 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -44,7 +44,10 @@ 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';
|
|
50
|
+
export * from './lib/service/search/search.utils';
|
|
48
51
|
export * from './lib/service/search/search.service.interface';
|
|
49
52
|
export * from './lib/service/session-storage/session-storage.service';
|
|
50
53
|
export * from './lib/service/system/object-form.interface';
|
|
@@ -54,6 +57,7 @@ export * from './lib/service/system/system.service';
|
|
|
54
57
|
export * from './lib/service/upload/upload.interface';
|
|
55
58
|
export * from './lib/service/upload/upload.service';
|
|
56
59
|
export * from './lib/service/user/user.service';
|
|
60
|
+
export * from './lib/service/user/user-storage.service';
|
|
57
61
|
export * from './lib/util/utils';
|
|
58
62
|
export * from './lib/util/utils.helper.enum';
|
|
59
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,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
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
|
-
import { AggregateResult, SearchQuery, SearchResponse, SearchResult } from './search.service.interface';
|
|
2
|
+
import { AggregateResult, SearchFilter, SearchQuery, SearchResponse, SearchResult } from './search.service.interface';
|
|
3
|
+
import { RangeValue } from '../../model/range-value.interface';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class SearchService {
|
|
5
6
|
#private;
|
|
@@ -41,6 +42,14 @@ export declare class SearchService {
|
|
|
41
42
|
* @param searchResponse The backend response
|
|
42
43
|
*/
|
|
43
44
|
toSearchResult(searchResponse: SearchResponse): SearchResult;
|
|
45
|
+
/**
|
|
46
|
+
* Maps data extracted from a search form to search filters. Every key of the form data object
|
|
47
|
+
* will be mapped to a search filter.
|
|
48
|
+
* @param formData form data
|
|
49
|
+
* @returns Array of search filters
|
|
50
|
+
*/
|
|
51
|
+
formDataToSearchFilter(formData: Record<string, unknown>): SearchFilter[];
|
|
52
|
+
rangeValueToSearchFilter(value: RangeValue, property: string): SearchFilter | undefined;
|
|
44
53
|
static ɵfac: i0.ɵɵFactoryDeclaration<SearchService, never>;
|
|
45
54
|
static ɵprov: i0.ɵɵInjectableDeclaration<SearchService>;
|
|
46
55
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { ContentStream, CoreApiObject } from '../dms/dms.service.interface';
|
|
2
|
+
export type DateRange = 'today' | 'yesterday' | 'thisWeek' | 'lastWeek' | 'thisMonth' | 'lastMonth' | 'thisYear' | 'lastYear';
|
|
3
|
+
export type FilesizeRange = 'small' | 'medium' | 'large' | 'verylarge';
|
|
2
4
|
export interface SearchQuery {
|
|
3
5
|
term?: string;
|
|
4
|
-
scope?: '
|
|
6
|
+
scope?: 'metadata' | 'content';
|
|
5
7
|
size?: number;
|
|
6
8
|
from?: number;
|
|
7
9
|
fields?: string[];
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { RangeValue } from '../../model/range-value.interface';
|
|
2
|
+
import { DateRange, FilesizeRange } from './search.service.interface';
|
|
3
|
+
export declare class SearchUtils {
|
|
4
|
+
static dateRanges: string[];
|
|
5
|
+
static filesizeRanges: string[];
|
|
6
|
+
static dateRangeStartEnd(dateRange: DateRange): {
|
|
7
|
+
start: Date;
|
|
8
|
+
end: Date;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Maps a date range filter to a date range value like 'thisWeek', 'lastMonth', etc.
|
|
12
|
+
* @param rangeValue the range value
|
|
13
|
+
* @returns the date range (eg. 'thisWeek', 'lastMonth', etc.)
|
|
14
|
+
*/
|
|
15
|
+
static getMatchingDateRange(rangeValue: RangeValue): DateRange | undefined;
|
|
16
|
+
static getMatchingFilesizeRange(rangeValue: RangeValue): FilesizeRange | undefined;
|
|
17
|
+
static filesizeRangeToRangeValue(filesizeRange: FilesizeRange): RangeValue | undefined;
|
|
18
|
+
}
|
|
@@ -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
|
+
}
|