@utiliread/primitives 1.0.0-147 → 1.0.0-149

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.
Files changed (124) hide show
  1. package/dist/index.js +120 -25
  2. package/dist/index.js.map +1 -1
  3. package/dist/index.mjs +120 -25
  4. package/dist/index.mjs.map +1 -1
  5. package/dist/precision-number.d.ts +10 -0
  6. package/dist/step.d.ts +1 -1
  7. package/package.json +9 -6
  8. package/src/aggregate-id.ts +2 -9
  9. package/src/breakdown-rule.spec.ts +61 -61
  10. package/src/breakdown-rule.ts +58 -58
  11. package/src/csv.spec.ts +42 -42
  12. package/src/csv.ts +8 -9
  13. package/src/cursor-navigation-state.spec.ts +194 -194
  14. package/src/cursor-navigation-state.ts +168 -168
  15. package/src/index.ts +61 -61
  16. package/src/measure-id.ts +17 -17
  17. package/src/measures/duration.ts +11 -11
  18. package/src/measures/energy.ts +13 -13
  19. package/src/measures/humidity.ts +3 -3
  20. package/src/measures/infocode.ts +3 -3
  21. package/src/measures/mass-flow.ts +19 -19
  22. package/src/measures/mass.ts +10 -10
  23. package/src/measures/noise.ts +5 -5
  24. package/src/measures/power.ts +23 -23
  25. package/src/measures/pressure.ts +9 -9
  26. package/src/measures/reactive-energy.ts +7 -7
  27. package/src/measures/reactive-power.ts +3 -3
  28. package/src/measures/temperature.ts +9 -9
  29. package/src/measures/time.ts +3 -3
  30. package/src/measures/volume-flow.ts +25 -25
  31. package/src/measures/volume.ts +3 -3
  32. package/src/medium.spec.ts +12 -12
  33. package/src/medium.ts +47 -47
  34. package/src/number-formatter.spec.ts +570 -570
  35. package/src/number-formatter.ts +126 -126
  36. package/src/optional.ts +1 -1
  37. package/src/precision-number.spec.ts +382 -382
  38. package/src/precision-number.ts +229 -229
  39. package/src/register-convention.spec.ts +52 -52
  40. package/src/register-convention.ts +70 -70
  41. package/src/register-definition.ts +23 -23
  42. package/src/register-id.ts +288 -288
  43. package/src/register-library.spec.ts +41 -41
  44. package/src/register-library.ts +64 -64
  45. package/src/register-pack.ts +5 -5
  46. package/src/register-utils.ts +6 -6
  47. package/src/registers/acoustic-noise.ts +52 -52
  48. package/src/registers/ambient-temperature.ts +52 -52
  49. package/src/registers/axioma-infocode.ts +16 -16
  50. package/src/registers/consumer.ts +17 -17
  51. package/src/registers/cooling-energy-inlet.ts +23 -23
  52. package/src/registers/cooling-energy-outlet.ts +23 -23
  53. package/src/registers/cooling-energy.ts +23 -23
  54. package/src/registers/cooling.ts +113 -113
  55. package/src/registers/device-addresses-kamdraft.ts +14 -14
  56. package/src/registers/device-addresses-msisdn.ts +14 -14
  57. package/src/registers/device-addresses-tchlr.ts +14 -14
  58. package/src/registers/device-addresses-wmbus.ts +17 -17
  59. package/src/registers/device-date-time.ts +9 -9
  60. package/src/registers/device-date.ts +9 -9
  61. package/src/registers/device-nominal-diameter.ts +9 -9
  62. package/src/registers/device-permanent-volume-flow.ts +9 -9
  63. package/src/registers/device-registers.ts +9 -9
  64. package/src/registers/device-samples.ts +37 -37
  65. package/src/registers/device-software-version.ts +8 -8
  66. package/src/registers/device-time.ts +9 -9
  67. package/src/registers/device.ts +16 -16
  68. package/src/registers/diehl-infocode.ts +44 -44
  69. package/src/registers/electrical-energy.ts +23 -23
  70. package/src/registers/energy-inlet.ts +23 -23
  71. package/src/registers/energy-outlet.ts +23 -23
  72. package/src/registers/error-operating-time.ts +23 -23
  73. package/src/registers/flow-temperature-aux.ts +52 -52
  74. package/src/registers/flow-temperature-inlet.ts +52 -52
  75. package/src/registers/flow-temperature-outlet.ts +52 -52
  76. package/src/registers/flow-temperature.ts +52 -52
  77. package/src/registers/heat-energy-inlet.ts +65 -65
  78. package/src/registers/heat-energy-outlet.ts +65 -65
  79. package/src/registers/heat-energy.ts +65 -65
  80. package/src/registers/index.ts +71 -71
  81. package/src/registers/infocode.ts +70 -70
  82. package/src/registers/kamstrup-module-type.ts +8 -8
  83. package/src/registers/kamstrup-multical-infocode.ts +58 -58
  84. package/src/registers/landis-gyr-infocode.ts +23 -23
  85. package/src/registers/landis-gyr-mbus-status.ts +23 -23
  86. package/src/registers/mass-flow-inlet.ts +52 -52
  87. package/src/registers/mass-flow-outlet.ts +52 -52
  88. package/src/registers/mass-flow.ts +52 -52
  89. package/src/registers/mass-inlet.ts +23 -23
  90. package/src/registers/mass-outlet.ts +23 -23
  91. package/src/registers/mass.ts +23 -23
  92. package/src/registers/mbus-format-string-signature.ts +8 -8
  93. package/src/registers/none.ts +8 -8
  94. package/src/registers/operating-time.ts +23 -23
  95. package/src/registers/place.ts +31 -31
  96. package/src/registers/power-inlet.ts +52 -52
  97. package/src/registers/power-outlet.ts +52 -52
  98. package/src/registers/power.ts +52 -52
  99. package/src/registers/pressure-inlet.ts +52 -52
  100. package/src/registers/pressure-outlet.ts +52 -52
  101. package/src/registers/pressure.ts +52 -52
  102. package/src/registers/radiator-temperature.ts +52 -52
  103. package/src/registers/reactive-energy.ts +23 -23
  104. package/src/registers/relative-humidity.ts +8 -8
  105. package/src/registers/remaining-battery-time.ts +23 -23
  106. package/src/registers/time-last-exact-overhearing-arrived.ts +19 -19
  107. package/src/registers/time-last-installation-mounted.ts +19 -19
  108. package/src/registers/time-last-possible-candidate-overhearing-arrived.ts +21 -21
  109. package/src/registers/time-last-sampled.ts +19 -19
  110. package/src/registers/time.ts +45 -45
  111. package/src/registers/volume-flow-inlet.ts +52 -52
  112. package/src/registers/volume-flow-outlet.ts +52 -52
  113. package/src/registers/volume-flow.ts +52 -52
  114. package/src/registers/volume-inlet.ts +23 -23
  115. package/src/registers/volume-outlet.ts +23 -23
  116. package/src/registers/volume-pulse-input-a.ts +23 -23
  117. package/src/registers/volume-pulse-input-b.ts +23 -23
  118. package/src/registers/volume.ts +23 -23
  119. package/src/repository.spec.ts +30 -30
  120. package/src/repository.ts +26 -26
  121. package/src/step.spec.ts +45 -37
  122. package/src/step.ts +45 -45
  123. package/src/time-or-rule.ts +42 -42
  124. package/src/unit-id.ts +108 -108
@@ -1,44 +1,44 @@
1
- import type { RegisterDefinition } from "../register-definition";
2
- import { units } from "../measures/infocode";
3
-
4
- export const diehlInfocode: RegisterDefinition = {
5
- id: "diehlInfocode",
6
- measure: "none",
7
- aggregate: "instant",
8
- units,
9
- };
10
-
11
- export const diehlInfocodeType1: RegisterDefinition = {
12
- id: "diehlInfocodeType1",
13
- measure: "none",
14
- aggregate: "instant",
15
- units,
16
- };
17
-
18
- export const diehlInfocodeType2: RegisterDefinition = {
19
- id: "diehlInfocodeType2",
20
- measure: "none",
21
- aggregate: "instant",
22
- units,
23
- };
24
-
25
- export const diehlInfocodeType3: RegisterDefinition = {
26
- id: "diehlInfocodeType3",
27
- measure: "none",
28
- aggregate: "instant",
29
- units,
30
- };
31
-
32
- export const diehlInfocodeType4: RegisterDefinition = {
33
- id: "diehlInfocodeType4",
34
- measure: "none",
35
- aggregate: "instant",
36
- units,
37
- };
38
-
39
- export const diehlInfocodeType5: RegisterDefinition = {
40
- id: "diehlInfocodeType5",
41
- measure: "none",
42
- aggregate: "instant",
43
- units,
44
- };
1
+ import type { RegisterDefinition } from "../register-definition";
2
+ import { units } from "../measures/infocode";
3
+
4
+ export const diehlInfocode: RegisterDefinition = {
5
+ id: "diehlInfocode",
6
+ measure: "none",
7
+ aggregate: "instant",
8
+ units,
9
+ };
10
+
11
+ export const diehlInfocodeType1: RegisterDefinition = {
12
+ id: "diehlInfocodeType1",
13
+ measure: "none",
14
+ aggregate: "instant",
15
+ units,
16
+ };
17
+
18
+ export const diehlInfocodeType2: RegisterDefinition = {
19
+ id: "diehlInfocodeType2",
20
+ measure: "none",
21
+ aggregate: "instant",
22
+ units,
23
+ };
24
+
25
+ export const diehlInfocodeType3: RegisterDefinition = {
26
+ id: "diehlInfocodeType3",
27
+ measure: "none",
28
+ aggregate: "instant",
29
+ units,
30
+ };
31
+
32
+ export const diehlInfocodeType4: RegisterDefinition = {
33
+ id: "diehlInfocodeType4",
34
+ measure: "none",
35
+ aggregate: "instant",
36
+ units,
37
+ };
38
+
39
+ export const diehlInfocodeType5: RegisterDefinition = {
40
+ id: "diehlInfocodeType5",
41
+ measure: "none",
42
+ aggregate: "instant",
43
+ units,
44
+ };
@@ -1,23 +1,23 @@
1
- import type { RegisterDefinition } from "../register-definition";
2
- import { units } from "../measures/energy";
3
-
4
- export const electricalEnergy: RegisterDefinition = {
5
- id: "electricalEnergy",
6
- measure: "energy",
7
- aggregate: "instant",
8
- units,
9
- };
10
-
11
- export const diffElectricalEnergy: RegisterDefinition = {
12
- id: "diffElectricalEnergy",
13
- measure: "energy",
14
- aggregate: "diff",
15
- units,
16
- };
17
-
18
- export const cntElectricalEnergy: RegisterDefinition = {
19
- id: "cntElectricalEnergy",
20
- measure: "energy",
21
- aggregate: "cnt",
22
- units: ["unitless"],
23
- };
1
+ import type { RegisterDefinition } from "../register-definition";
2
+ import { units } from "../measures/energy";
3
+
4
+ export const electricalEnergy: RegisterDefinition = {
5
+ id: "electricalEnergy",
6
+ measure: "energy",
7
+ aggregate: "instant",
8
+ units,
9
+ };
10
+
11
+ export const diffElectricalEnergy: RegisterDefinition = {
12
+ id: "diffElectricalEnergy",
13
+ measure: "energy",
14
+ aggregate: "diff",
15
+ units,
16
+ };
17
+
18
+ export const cntElectricalEnergy: RegisterDefinition = {
19
+ id: "cntElectricalEnergy",
20
+ measure: "energy",
21
+ aggregate: "cnt",
22
+ units: ["unitless"],
23
+ };
@@ -1,23 +1,23 @@
1
- import type { RegisterDefinition } from "../register-definition";
2
- import { units } from "../measures/energy";
3
-
4
- export const kamstrupE8Inlet: RegisterDefinition = {
5
- id: "kamstrupE8Inlet",
6
- measure: "energy",
7
- aggregate: "instant",
8
- units: ["cubicMeterCelcius", ...units],
9
- };
10
-
11
- export const diffKamstrupE8Inlet: RegisterDefinition = {
12
- id: "diffKamstrupE8Inlet",
13
- measure: "energy",
14
- aggregate: "diff",
15
- units: ["cubicMeterCelcius", ...units],
16
- };
17
-
18
- export const cntKamstrupE8Inlet: RegisterDefinition = {
19
- id: "cntKamstrupE8Inlet",
20
- measure: "energy",
21
- aggregate: "cnt",
22
- units: ["unitless"],
23
- };
1
+ import type { RegisterDefinition } from "../register-definition";
2
+ import { units } from "../measures/energy";
3
+
4
+ export const kamstrupE8Inlet: RegisterDefinition = {
5
+ id: "kamstrupE8Inlet",
6
+ measure: "energy",
7
+ aggregate: "instant",
8
+ units: ["cubicMeterCelcius", ...units],
9
+ };
10
+
11
+ export const diffKamstrupE8Inlet: RegisterDefinition = {
12
+ id: "diffKamstrupE8Inlet",
13
+ measure: "energy",
14
+ aggregate: "diff",
15
+ units: ["cubicMeterCelcius", ...units],
16
+ };
17
+
18
+ export const cntKamstrupE8Inlet: RegisterDefinition = {
19
+ id: "cntKamstrupE8Inlet",
20
+ measure: "energy",
21
+ aggregate: "cnt",
22
+ units: ["unitless"],
23
+ };
@@ -1,23 +1,23 @@
1
- import type { RegisterDefinition } from "../register-definition";
2
- import { units } from "../measures/energy";
3
-
4
- export const kamstrupE9Outlet: RegisterDefinition = {
5
- id: "kamstrupE9Outlet",
6
- measure: "energy",
7
- aggregate: "instant",
8
- units: ["cubicMeterCelcius", ...units],
9
- };
10
-
11
- export const diffKamstrupE9Outlet: RegisterDefinition = {
12
- id: "diffKamstrupE9Outlet",
13
- measure: "energy",
14
- aggregate: "diff",
15
- units: ["cubicMeterCelcius", ...units],
16
- };
17
-
18
- export const cntKamstrupE9Outlet: RegisterDefinition = {
19
- id: "cntKamstrupE9Outlet",
20
- measure: "energy",
21
- aggregate: "cnt",
22
- units: ["unitless"],
23
- };
1
+ import type { RegisterDefinition } from "../register-definition";
2
+ import { units } from "../measures/energy";
3
+
4
+ export const kamstrupE9Outlet: RegisterDefinition = {
5
+ id: "kamstrupE9Outlet",
6
+ measure: "energy",
7
+ aggregate: "instant",
8
+ units: ["cubicMeterCelcius", ...units],
9
+ };
10
+
11
+ export const diffKamstrupE9Outlet: RegisterDefinition = {
12
+ id: "diffKamstrupE9Outlet",
13
+ measure: "energy",
14
+ aggregate: "diff",
15
+ units: ["cubicMeterCelcius", ...units],
16
+ };
17
+
18
+ export const cntKamstrupE9Outlet: RegisterDefinition = {
19
+ id: "cntKamstrupE9Outlet",
20
+ measure: "energy",
21
+ aggregate: "cnt",
22
+ units: ["unitless"],
23
+ };
@@ -1,23 +1,23 @@
1
- import type { RegisterDefinition } from "../register-definition";
2
- import { units } from "../measures/duration";
3
-
4
- export const errorOperatingTime: RegisterDefinition = {
5
- id: "errorOperatingTime",
6
- measure: "duration",
7
- aggregate: "instant",
8
- units,
9
- };
10
-
11
- export const diffErrorOperatingTime: RegisterDefinition = {
12
- id: "diffErrorOperatingTime",
13
- measure: "duration",
14
- aggregate: "diff",
15
- units,
16
- };
17
-
18
- export const cntErrorOperatingTime: RegisterDefinition = {
19
- id: "cntErrorOperatingTime",
20
- measure: "duration",
21
- aggregate: "cnt",
22
- units: ["unitless"],
23
- };
1
+ import type { RegisterDefinition } from "../register-definition";
2
+ import { units } from "../measures/duration";
3
+
4
+ export const errorOperatingTime: RegisterDefinition = {
5
+ id: "errorOperatingTime",
6
+ measure: "duration",
7
+ aggregate: "instant",
8
+ units,
9
+ };
10
+
11
+ export const diffErrorOperatingTime: RegisterDefinition = {
12
+ id: "diffErrorOperatingTime",
13
+ measure: "duration",
14
+ aggregate: "diff",
15
+ units,
16
+ };
17
+
18
+ export const cntErrorOperatingTime: RegisterDefinition = {
19
+ id: "cntErrorOperatingTime",
20
+ measure: "duration",
21
+ aggregate: "cnt",
22
+ units: ["unitless"],
23
+ };
@@ -1,52 +1,52 @@
1
- import { sqUnits, units } from "../measures/temperature";
2
-
3
- import type { RegisterDefinition } from "../register-definition";
4
-
5
- export const auxFlowTemperature: RegisterDefinition = {
6
- id: "auxFlowTemperature",
7
- measure: "temperature",
8
- aggregate: "instant",
9
- units,
10
- };
11
-
12
- export const minAuxFlowTemperature: RegisterDefinition = {
13
- id: "minAuxFlowTemperature",
14
- measure: "temperature",
15
- aggregate: "min",
16
- units,
17
- };
18
-
19
- export const maxAuxFlowTemperature: RegisterDefinition = {
20
- id: "maxAuxFlowTemperature",
21
- measure: "temperature",
22
- aggregate: "max",
23
- units,
24
- };
25
-
26
- export const avgAuxFlowTemperature: RegisterDefinition = {
27
- id: "avgAuxFlowTemperature",
28
- measure: "temperature",
29
- aggregate: "avg",
30
- units,
31
- };
32
-
33
- export const sumAuxFlowTemperature: RegisterDefinition = {
34
- id: "sumAuxFlowTemperature",
35
- measure: "temperature",
36
- aggregate: "sum",
37
- units,
38
- };
39
-
40
- export const cntAuxFlowTemperature: RegisterDefinition = {
41
- id: "cntAuxFlowTemperature",
42
- measure: "temperature",
43
- aggregate: "cnt",
44
- units: ["unitless"],
45
- };
46
-
47
- export const ssqAuxFlowTemperature: RegisterDefinition = {
48
- id: "ssqAuxFlowTemperature",
49
- measure: "temperature",
50
- aggregate: "ssq",
51
- units: sqUnits,
52
- };
1
+ import { sqUnits, units } from "../measures/temperature";
2
+
3
+ import type { RegisterDefinition } from "../register-definition";
4
+
5
+ export const auxFlowTemperature: RegisterDefinition = {
6
+ id: "auxFlowTemperature",
7
+ measure: "temperature",
8
+ aggregate: "instant",
9
+ units,
10
+ };
11
+
12
+ export const minAuxFlowTemperature: RegisterDefinition = {
13
+ id: "minAuxFlowTemperature",
14
+ measure: "temperature",
15
+ aggregate: "min",
16
+ units,
17
+ };
18
+
19
+ export const maxAuxFlowTemperature: RegisterDefinition = {
20
+ id: "maxAuxFlowTemperature",
21
+ measure: "temperature",
22
+ aggregate: "max",
23
+ units,
24
+ };
25
+
26
+ export const avgAuxFlowTemperature: RegisterDefinition = {
27
+ id: "avgAuxFlowTemperature",
28
+ measure: "temperature",
29
+ aggregate: "avg",
30
+ units,
31
+ };
32
+
33
+ export const sumAuxFlowTemperature: RegisterDefinition = {
34
+ id: "sumAuxFlowTemperature",
35
+ measure: "temperature",
36
+ aggregate: "sum",
37
+ units,
38
+ };
39
+
40
+ export const cntAuxFlowTemperature: RegisterDefinition = {
41
+ id: "cntAuxFlowTemperature",
42
+ measure: "temperature",
43
+ aggregate: "cnt",
44
+ units: ["unitless"],
45
+ };
46
+
47
+ export const ssqAuxFlowTemperature: RegisterDefinition = {
48
+ id: "ssqAuxFlowTemperature",
49
+ measure: "temperature",
50
+ aggregate: "ssq",
51
+ units: sqUnits,
52
+ };
@@ -1,52 +1,52 @@
1
- import { sqUnits, units } from "../measures/temperature";
2
-
3
- import type { RegisterDefinition } from "../register-definition";
4
-
5
- export const inletFlowTemperature: RegisterDefinition = {
6
- id: "inletFlowTemperature",
7
- measure: "temperature",
8
- aggregate: "instant",
9
- units,
10
- };
11
-
12
- export const minInletFlowTemperature: RegisterDefinition = {
13
- id: "minInletFlowTemperature",
14
- measure: "temperature",
15
- aggregate: "min",
16
- units,
17
- };
18
-
19
- export const maxInletFlowTemperature: RegisterDefinition = {
20
- id: "maxInletFlowTemperature",
21
- measure: "temperature",
22
- aggregate: "max",
23
- units,
24
- };
25
-
26
- export const avgInletFlowTemperature: RegisterDefinition = {
27
- id: "avgInletFlowTemperature",
28
- measure: "temperature",
29
- aggregate: "avg",
30
- units,
31
- };
32
-
33
- export const sumInletFlowTemperature: RegisterDefinition = {
34
- id: "sumInletFlowTemperature",
35
- measure: "temperature",
36
- aggregate: "sum",
37
- units,
38
- };
39
-
40
- export const cntInletFlowTemperature: RegisterDefinition = {
41
- id: "cntInletFlowTemperature",
42
- measure: "temperature",
43
- aggregate: "cnt",
44
- units: ["unitless"],
45
- };
46
-
47
- export const ssqInletFlowTemperature: RegisterDefinition = {
48
- id: "ssqInletFlowTemperature",
49
- measure: "temperature",
50
- aggregate: "ssq",
51
- units: sqUnits,
52
- };
1
+ import { sqUnits, units } from "../measures/temperature";
2
+
3
+ import type { RegisterDefinition } from "../register-definition";
4
+
5
+ export const inletFlowTemperature: RegisterDefinition = {
6
+ id: "inletFlowTemperature",
7
+ measure: "temperature",
8
+ aggregate: "instant",
9
+ units,
10
+ };
11
+
12
+ export const minInletFlowTemperature: RegisterDefinition = {
13
+ id: "minInletFlowTemperature",
14
+ measure: "temperature",
15
+ aggregate: "min",
16
+ units,
17
+ };
18
+
19
+ export const maxInletFlowTemperature: RegisterDefinition = {
20
+ id: "maxInletFlowTemperature",
21
+ measure: "temperature",
22
+ aggregate: "max",
23
+ units,
24
+ };
25
+
26
+ export const avgInletFlowTemperature: RegisterDefinition = {
27
+ id: "avgInletFlowTemperature",
28
+ measure: "temperature",
29
+ aggregate: "avg",
30
+ units,
31
+ };
32
+
33
+ export const sumInletFlowTemperature: RegisterDefinition = {
34
+ id: "sumInletFlowTemperature",
35
+ measure: "temperature",
36
+ aggregate: "sum",
37
+ units,
38
+ };
39
+
40
+ export const cntInletFlowTemperature: RegisterDefinition = {
41
+ id: "cntInletFlowTemperature",
42
+ measure: "temperature",
43
+ aggregate: "cnt",
44
+ units: ["unitless"],
45
+ };
46
+
47
+ export const ssqInletFlowTemperature: RegisterDefinition = {
48
+ id: "ssqInletFlowTemperature",
49
+ measure: "temperature",
50
+ aggregate: "ssq",
51
+ units: sqUnits,
52
+ };
@@ -1,52 +1,52 @@
1
- import { sqUnits, units } from "../measures/temperature";
2
-
3
- import type { RegisterDefinition } from "../register-definition";
4
-
5
- export const outletFlowTemperature: RegisterDefinition = {
6
- id: "outletFlowTemperature",
7
- measure: "temperature",
8
- aggregate: "instant",
9
- units,
10
- };
11
-
12
- export const minOutletFlowTemperature: RegisterDefinition = {
13
- id: "minOutletFlowTemperature",
14
- measure: "temperature",
15
- aggregate: "min",
16
- units,
17
- };
18
-
19
- export const maxOutletFlowTemperature: RegisterDefinition = {
20
- id: "maxOutletFlowTemperature",
21
- measure: "temperature",
22
- aggregate: "max",
23
- units,
24
- };
25
-
26
- export const avgOutletFlowTemperature: RegisterDefinition = {
27
- id: "avgOutletFlowTemperature",
28
- measure: "temperature",
29
- aggregate: "avg",
30
- units,
31
- };
32
-
33
- export const sumOutletFlowTemperature: RegisterDefinition = {
34
- id: "sumOutletFlowTemperature",
35
- measure: "temperature",
36
- aggregate: "sum",
37
- units,
38
- };
39
-
40
- export const cntOutletFlowTemperature: RegisterDefinition = {
41
- id: "cntOutletFlowTemperature",
42
- measure: "temperature",
43
- aggregate: "cnt",
44
- units: ["unitless"],
45
- };
46
-
47
- export const ssqOutletFlowTemperature: RegisterDefinition = {
48
- id: "ssqOutletFlowTemperature",
49
- measure: "temperature",
50
- aggregate: "ssq",
51
- units: sqUnits,
52
- };
1
+ import { sqUnits, units } from "../measures/temperature";
2
+
3
+ import type { RegisterDefinition } from "../register-definition";
4
+
5
+ export const outletFlowTemperature: RegisterDefinition = {
6
+ id: "outletFlowTemperature",
7
+ measure: "temperature",
8
+ aggregate: "instant",
9
+ units,
10
+ };
11
+
12
+ export const minOutletFlowTemperature: RegisterDefinition = {
13
+ id: "minOutletFlowTemperature",
14
+ measure: "temperature",
15
+ aggregate: "min",
16
+ units,
17
+ };
18
+
19
+ export const maxOutletFlowTemperature: RegisterDefinition = {
20
+ id: "maxOutletFlowTemperature",
21
+ measure: "temperature",
22
+ aggregate: "max",
23
+ units,
24
+ };
25
+
26
+ export const avgOutletFlowTemperature: RegisterDefinition = {
27
+ id: "avgOutletFlowTemperature",
28
+ measure: "temperature",
29
+ aggregate: "avg",
30
+ units,
31
+ };
32
+
33
+ export const sumOutletFlowTemperature: RegisterDefinition = {
34
+ id: "sumOutletFlowTemperature",
35
+ measure: "temperature",
36
+ aggregate: "sum",
37
+ units,
38
+ };
39
+
40
+ export const cntOutletFlowTemperature: RegisterDefinition = {
41
+ id: "cntOutletFlowTemperature",
42
+ measure: "temperature",
43
+ aggregate: "cnt",
44
+ units: ["unitless"],
45
+ };
46
+
47
+ export const ssqOutletFlowTemperature: RegisterDefinition = {
48
+ id: "ssqOutletFlowTemperature",
49
+ measure: "temperature",
50
+ aggregate: "ssq",
51
+ units: sqUnits,
52
+ };