@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?: DeviceStatusDetails;
39
- connectivity?: DeviceConnectivityDetails;
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 = params.status != null ? new DeviceStatusDetails({ statuses: params.status, id: params.id }) : undefined; //new DeviceStatusDetails(params.status);
79
- this.connectivity = params.connectivity != null ? new DeviceConnectivityDetails({ ...params.connectivity, id: params.id }) : undefined; //new DeviceConnectivityDetails(params.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: DeviceStatusDTO[];
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
  }
@@ -3,5 +3,4 @@ export * from "./columnInfos";
3
3
  export * from "./tableDetails";
4
4
  export * from "./tableFilter";
5
5
  export * from "./tableInfos";
6
- export * from "./tableOrder";
7
- export * from "./translationColumnInfos";
6
+ export * from "./tableOrder";
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.67",
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": "6cc34e046f8f86c6b13d67d8e11f8870bc073d15"
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
- }