@dative-gpi/foundation-core-domain 1.1.2 → 1.1.3-groupings
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.
|
@@ -5,6 +5,7 @@ import { ModelStatusInfos, type ModelStatusInfosDTO } from "../modelStatuses/mod
|
|
|
5
5
|
import { type EntityType } from '@dative-gpi/foundation-shared-domain/enums';
|
|
6
6
|
import { PathCrumb, type PathCrumbDTO } from "../shared/pathCrumb";
|
|
7
7
|
import { Address, type AddressDTO } from '@dative-gpi/foundation-shared-domain';
|
|
8
|
+
import { SubgroupingInfos } from "../subgroupings";
|
|
8
9
|
|
|
9
10
|
export class DeviceOrganisationInfos {
|
|
10
11
|
id: string;
|
|
@@ -46,6 +47,7 @@ export class DeviceOrganisationInfos {
|
|
|
46
47
|
connectivity: DeviceConnectivityDetails;
|
|
47
48
|
alerts: DeviceOrganisationAlert[];
|
|
48
49
|
worstAlert: DeviceOrganisationAlert | null;
|
|
50
|
+
subgroupings: SubgroupingInfos[];
|
|
49
51
|
|
|
50
52
|
constructor(params: DeviceOrganisationInfosDTO) {
|
|
51
53
|
this.id = params.id;
|
|
@@ -88,6 +90,7 @@ export class DeviceOrganisationInfos {
|
|
|
88
90
|
this.alerts = params.alerts.map(dto => new DeviceOrganisationAlert(dto));
|
|
89
91
|
this.worstAlert = params.worstAlert != null ?
|
|
90
92
|
new DeviceOrganisationAlert(params.worstAlert) : null;
|
|
93
|
+
this.subgroupings = params.subgroupings.map(dto => new SubgroupingInfos(dto));
|
|
91
94
|
}
|
|
92
95
|
}
|
|
93
96
|
|
|
@@ -131,6 +134,7 @@ export interface DeviceOrganisationInfosDTO {
|
|
|
131
134
|
connectivity: DeviceConnectivityDetailsDTO;
|
|
132
135
|
alerts: DeviceOrganisationAlertDTO[];
|
|
133
136
|
worstAlert: DeviceOrganisationAlertDTO | null;
|
|
137
|
+
subgroupings: SubgroupingInfos[];
|
|
134
138
|
}
|
|
135
139
|
|
|
136
140
|
export interface DeviceOrganisationFilters {
|
|
@@ -1,28 +1,41 @@
|
|
|
1
1
|
export class SubgroupingInfos {
|
|
2
2
|
id: string;
|
|
3
3
|
groupingId: string;
|
|
4
|
+
groupingLabel: string;
|
|
5
|
+
groupingColor: string;
|
|
6
|
+
groupingIcon: string;
|
|
4
7
|
label: string;
|
|
5
8
|
code: string;
|
|
6
9
|
icon: string;
|
|
10
|
+
deviceOrganisationsCount?: number;
|
|
7
11
|
|
|
8
12
|
constructor(params: SubgroupingInfosDTO) {
|
|
9
13
|
this.id = params.id;
|
|
10
14
|
this.groupingId = params.groupingId;
|
|
15
|
+
this.groupingLabel = params.groupingLabel;
|
|
16
|
+
this.groupingColor = params.groupingColor;
|
|
17
|
+
this.groupingIcon = params.groupingIcon;
|
|
11
18
|
this.label = params.label;
|
|
12
19
|
this.code = params.code;
|
|
13
20
|
this.icon = params.icon;
|
|
21
|
+
this.deviceOrganisationsCount = params.deviceOrganisationsCount;
|
|
14
22
|
}
|
|
15
23
|
}
|
|
16
24
|
|
|
17
25
|
export interface SubgroupingInfosDTO {
|
|
18
26
|
id: string;
|
|
19
27
|
groupingId: string;
|
|
28
|
+
groupingLabel: string;
|
|
29
|
+
groupingColor: string;
|
|
30
|
+
groupingIcon: string;
|
|
20
31
|
label: string;
|
|
21
32
|
code: string;
|
|
22
33
|
icon: string;
|
|
34
|
+
deviceOrganisationsCount?: number;
|
|
23
35
|
}
|
|
24
36
|
|
|
25
37
|
export interface SubgroupingFilters {
|
|
38
|
+
subgroupingsIds?: string[] | null;
|
|
26
39
|
groupingIds?: string[] | null;
|
|
27
40
|
search?: string | null;
|
|
28
41
|
}
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"url": "https://github.com/Dative-GPI/foundation-shared-ui.git"
|
|
5
5
|
},
|
|
6
6
|
"sideEffects": false,
|
|
7
|
-
"version": "1.1.
|
|
7
|
+
"version": "1.1.3-groupings",
|
|
8
8
|
"description": "",
|
|
9
9
|
"publishConfig": {
|
|
10
10
|
"access": "public"
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
"author": "",
|
|
14
14
|
"license": "ISC",
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@dative-gpi/foundation-shared-domain": "1.1.
|
|
17
|
-
"@dative-gpi/foundation-shared-services": "1.1.
|
|
16
|
+
"@dative-gpi/foundation-shared-domain": "1.1.3-groupings",
|
|
17
|
+
"@dative-gpi/foundation-shared-services": "1.1.3-groupings"
|
|
18
18
|
},
|
|
19
|
-
"gitHead": "
|
|
19
|
+
"gitHead": "ad40c30f9ecd5b50de62619fa3cfab64e63d7cc5"
|
|
20
20
|
}
|