@dative-gpi/foundation-core-domain 1.0.135 → 1.0.136-maps

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.
@@ -70,4 +70,5 @@ export interface ChartOrganisationTypeFilters {
70
70
  draft?: boolean | null;
71
71
  deprecatedChartId?: string | null;
72
72
  deviceOrganisationsIds?: string[] | null
73
+ dataDefinitionsIds?: string[] | null;
73
74
  }
@@ -66,5 +66,6 @@ export interface ChartOrganisationFilters {
66
66
  search?: string | null;
67
67
  draft?: boolean | null;
68
68
  deprecatedChartId?: string | null;
69
- deviceOrganisationsIds?: string[] | null
69
+ deviceOrganisationsIds?: string[] | null;
70
+ dataDefinitionsIds?: string[] | null;
70
71
  }
@@ -0,0 +1,39 @@
1
+ import { isoToEpoch } from "@dative-gpi/foundation-shared-domain/tools";
2
+
3
+ export class DeviceDataDefinitionInfos {
4
+ id: string;
5
+ deviceId: string;
6
+ dataDefinitionId: string;
7
+ dataDefinitionCode: string;
8
+ dataDefinitionLabel: string;
9
+ dataCategoryCode: string;
10
+ dataCategoryLabel: string;
11
+ timestamp: number;
12
+
13
+ constructor(params: DeviceDataDefinitionInfosDTO) {
14
+ this.id = params.id;
15
+ this.deviceId = params.deviceId;
16
+ this.dataDefinitionId = params.dataDefinitionId;
17
+ this.dataDefinitionCode = params.dataDefinitionCode;
18
+ this.dataDefinitionLabel = params.dataDefinitionLabel;
19
+ this.dataCategoryCode = params.dataCategoryCode;
20
+ this.dataCategoryLabel = params.dataCategoryLabel;
21
+ this.timestamp = isoToEpoch(params.timestamp);
22
+ }
23
+ }
24
+
25
+ export interface DeviceDataDefinitionInfosDTO {
26
+ id: string;
27
+ deviceId: string;
28
+ dataDefinitionId: string;
29
+ dataDefinitionCode: string;
30
+ dataDefinitionLabel: string;
31
+ dataCategoryCode: string;
32
+ dataCategoryLabel: string;
33
+ timestamp: string;
34
+ }
35
+
36
+ export interface DeviceDataDefinitionFilters {
37
+ devicesIds?: string[];
38
+ deviceId?: string;
39
+ }
@@ -0,0 +1 @@
1
+ export * from "./deviceDataDefinitionInfos";
package/models/index.ts CHANGED
@@ -25,6 +25,7 @@ export * from "./dataCategories";
25
25
  export * from "./dataDefinitions";
26
26
  export * from "./dataDefinitionMappings"; // No service
27
27
  export * from "./deviceConnectivities";
28
+ export * from "./deviceDataDefinitions";
28
29
  export * from "./deviceExplorerElements";
29
30
  export * from "./deviceOrganisations";
30
31
  export * from "./deviceStatuses";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dative-gpi/foundation-core-domain",
3
3
  "sideEffects": false,
4
- "version": "1.0.135",
4
+ "version": "1.0.136-maps",
5
5
  "description": "",
6
6
  "publishConfig": {
7
7
  "access": "public"
@@ -10,8 +10,8 @@
10
10
  "author": "",
11
11
  "license": "ISC",
12
12
  "dependencies": {
13
- "@dative-gpi/foundation-shared-domain": "1.0.135",
14
- "@dative-gpi/foundation-shared-services": "1.0.135"
13
+ "@dative-gpi/foundation-shared-domain": "1.0.136-maps",
14
+ "@dative-gpi/foundation-shared-services": "1.0.136-maps"
15
15
  },
16
- "gitHead": "a8b8d2c285134ca72edf1bb0d3e224815f04c131"
16
+ "gitHead": "e5804d19ea9d2d1f215ddab730d72f0256841295"
17
17
  }