@dative-gpi/foundation-core-domain 0.0.67 → 0.0.69
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.
|
@@ -2,7 +2,6 @@ import { DeviceConnectivityDetails, DeviceConnectivityDetailsDTO } from "../devi
|
|
|
2
2
|
import { DeviceStatusDetails, DeviceStatusDetailsDTO } from "../deviceStatuses/deviceStatusDetails";
|
|
3
3
|
import { DeviceOrganisationAlert, DeviceOrganisationAlertDTO } from "./deviceOrganisationAlert";
|
|
4
4
|
import { ModelStatusInfos, ModelStatusInfosDTO } from "../modelStatuses/modelStatusInfos";
|
|
5
|
-
import { DeviceStatusDTO } from "../deviceStatuses/deviceStatusInfos";
|
|
6
5
|
|
|
7
6
|
export class DeviceOrganisationInfos {
|
|
8
7
|
id: string;
|
|
@@ -35,8 +34,8 @@ export class DeviceOrganisationInfos {
|
|
|
35
34
|
online: number;
|
|
36
35
|
meta: { [key: string]: string };
|
|
37
36
|
modelStatuses: ModelStatusInfos[];
|
|
38
|
-
status
|
|
39
|
-
connectivity
|
|
37
|
+
status: DeviceStatusDetails;
|
|
38
|
+
connectivity: DeviceConnectivityDetails;
|
|
40
39
|
alerts: DeviceOrganisationAlert[];
|
|
41
40
|
worstAlert?: DeviceOrganisationAlert;
|
|
42
41
|
|
|
@@ -75,8 +74,8 @@ export class DeviceOrganisationInfos {
|
|
|
75
74
|
this.online = params.online;
|
|
76
75
|
this.meta = { ...params.meta };
|
|
77
76
|
this.modelStatuses = params.modelStatuses.map(dto => new ModelStatusInfos(dto));
|
|
78
|
-
this.status =
|
|
79
|
-
this.connectivity =
|
|
77
|
+
this.status = new DeviceStatusDetails(params.status);
|
|
78
|
+
this.connectivity = new DeviceConnectivityDetails(params.connectivity);
|
|
80
79
|
this.alerts = params.alerts.map(dto => new DeviceOrganisationAlert(dto));
|
|
81
80
|
this.worstAlert = params.worstAlert != null ? new DeviceOrganisationAlert(params.worstAlert) : undefined;
|
|
82
81
|
}
|
|
@@ -113,7 +112,7 @@ export interface DeviceOrganisationInfosDTO {
|
|
|
113
112
|
online: number;
|
|
114
113
|
meta: { [key: string]: string };
|
|
115
114
|
modelStatuses: ModelStatusInfosDTO[];
|
|
116
|
-
status:
|
|
115
|
+
status: DeviceStatusDetailsDTO;
|
|
117
116
|
connectivity: DeviceConnectivityDetailsDTO;
|
|
118
117
|
alerts: DeviceOrganisationAlertDTO[];
|
|
119
118
|
worstAlert?: DeviceOrganisationAlertDTO;
|
|
@@ -1,15 +1,13 @@
|
|
|
1
|
-
import { TranslationColumnInfos, TranslationColumnInfosDTO } from "./translationColumnInfos";
|
|
2
|
-
|
|
3
1
|
export class ColumnInfos {
|
|
4
2
|
columnId: string;
|
|
5
3
|
text: string;
|
|
6
4
|
value: string;
|
|
7
5
|
sortable: boolean;
|
|
8
6
|
filterable: boolean;
|
|
7
|
+
|
|
9
8
|
// Depends on [OrganisationType, UserOrganisation]
|
|
10
9
|
index: number;
|
|
11
10
|
hidden: boolean;
|
|
12
|
-
translations?: TranslationColumnInfos[]
|
|
13
11
|
|
|
14
12
|
constructor(dto: ColumnInfosDTO) {
|
|
15
13
|
this.columnId = dto.columnId;
|
|
@@ -19,7 +17,6 @@ export class ColumnInfos {
|
|
|
19
17
|
this.filterable = dto.filterable;
|
|
20
18
|
this.index = dto.index;
|
|
21
19
|
this.hidden = dto.hidden;
|
|
22
|
-
this.translations = dto.translations?.map(dto => new TranslationColumnInfos(dto));
|
|
23
20
|
}
|
|
24
21
|
}
|
|
25
22
|
|
|
@@ -31,5 +28,4 @@ export interface ColumnInfosDTO {
|
|
|
31
28
|
filterable: boolean;
|
|
32
29
|
index: number;
|
|
33
30
|
hidden: boolean;
|
|
34
|
-
translations?: TranslationColumnInfosDTO[]
|
|
35
31
|
}
|
package/models/tables/index.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dative-gpi/foundation-core-domain",
|
|
3
3
|
"sideEffects": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.69",
|
|
5
5
|
"description": "",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -9,5 +9,5 @@
|
|
|
9
9
|
"main": "index.ts",
|
|
10
10
|
"author": "",
|
|
11
11
|
"license": "ISC",
|
|
12
|
-
"gitHead": "
|
|
12
|
+
"gitHead": "f42750502e3f9499a2df817d41a2e89847c83cdd"
|
|
13
13
|
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export class TranslationColumnInfos {
|
|
2
|
-
languageCode: string;
|
|
3
|
-
label: string;
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
constructor(dto: TranslationColumnInfosDTO) {
|
|
7
|
-
this.languageCode = dto.languageCode;
|
|
8
|
-
this.label = dto.label;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export interface TranslationColumnInfosDTO {
|
|
13
|
-
languageCode: string;
|
|
14
|
-
label: string;
|
|
15
|
-
}
|