@tstdl/base 0.92.131 → 0.92.132
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/document-management/service-models/enriched/enriched-document-management-data.view.d.ts
CHANGED
|
@@ -28,9 +28,10 @@ export declare class EnrichedDocumentManagementData {
|
|
|
28
28
|
categories: Map<string, EnrichedDocumentCategory>;
|
|
29
29
|
types: Map<string, EnrichedDocumentType>;
|
|
30
30
|
};
|
|
31
|
+
get collectionIds(): string[];
|
|
31
32
|
get rootCollections(): EnrichedDocumentCollection[];
|
|
32
33
|
get collections(): EnrichedDocumentCollection[];
|
|
33
|
-
get
|
|
34
|
+
get collectionGroups(): EnrichedCollectionsGroup[];
|
|
34
35
|
get documents(): EnrichedDocument[];
|
|
35
36
|
get requests(): EnrichedDocumentRequest[];
|
|
36
37
|
get rootCategories(): EnrichedDocumentCategory[];
|
package/document-management/service-models/enriched/enriched-document-management-data.view.js
CHANGED
|
@@ -51,13 +51,16 @@ export class EnrichedDocumentManagementData {
|
|
|
51
51
|
categories: () => getEntityMap(this.categories),
|
|
52
52
|
types: () => getEntityMap(this.types),
|
|
53
53
|
});
|
|
54
|
+
get collectionIds() {
|
|
55
|
+
return this.rawData.collections.map((collection) => collection.id);
|
|
56
|
+
}
|
|
54
57
|
get rootCollections() {
|
|
55
58
|
return this.rawData.collections.filter((collection) => isNull(collection.parentId)).map((collection) => new EnrichedDocumentCollection(this, collection, null));
|
|
56
59
|
}
|
|
57
60
|
get collections() {
|
|
58
61
|
return this.rootCollections.flatMap((collection) => [collection, ...collection.childrenDeep]);
|
|
59
62
|
}
|
|
60
|
-
get
|
|
63
|
+
get collectionGroups() {
|
|
61
64
|
const groups = [...group(this.collections, (collection) => collection.group)];
|
|
62
65
|
return groups.map(([group, collections]) => new EnrichedCollectionsGroup(group, collections));
|
|
63
66
|
}
|
|
@@ -83,6 +86,11 @@ export class EnrichedDocumentManagementData {
|
|
|
83
86
|
this.rawData = data;
|
|
84
87
|
}
|
|
85
88
|
}
|
|
89
|
+
__decorate([
|
|
90
|
+
Memoize(),
|
|
91
|
+
__metadata("design:type", Array),
|
|
92
|
+
__metadata("design:paramtypes", [])
|
|
93
|
+
], EnrichedDocumentManagementData.prototype, "collectionIds", null);
|
|
86
94
|
__decorate([
|
|
87
95
|
Memoize(),
|
|
88
96
|
__metadata("design:type", Array),
|
|
@@ -97,7 +105,7 @@ __decorate([
|
|
|
97
105
|
Memoize(),
|
|
98
106
|
__metadata("design:type", Array),
|
|
99
107
|
__metadata("design:paramtypes", [])
|
|
100
|
-
], EnrichedDocumentManagementData.prototype, "
|
|
108
|
+
], EnrichedDocumentManagementData.prototype, "collectionGroups", null);
|
|
101
109
|
__decorate([
|
|
102
110
|
Memoize(),
|
|
103
111
|
__metadata("design:type", Array),
|