@utiliread/primitives 1.0.0-145 → 1.0.0-147
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.
- package/dist/aggregate-id.d.ts +1 -0
- package/dist/breakdown-rule.d.ts +18 -0
- package/dist/breakdown-rule.spec.d.ts +1 -0
- package/dist/csv.d.ts +4 -0
- package/dist/csv.spec.d.ts +1 -0
- package/dist/cursor-navigation-state.d.ts +61 -0
- package/dist/cursor-navigation-state.spec.d.ts +1 -0
- package/dist/index.d.ts +26 -0
- package/dist/index.js +2842 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +2829 -0
- package/dist/index.mjs.map +1 -0
- package/dist/measure-id.d.ts +1 -0
- package/dist/measures/duration.d.ts +2 -0
- package/dist/measures/energy.d.ts +2 -0
- package/dist/measures/humidity.d.ts +2 -0
- package/dist/measures/infocode.d.ts +2 -0
- package/dist/measures/mass-flow.d.ts +3 -0
- package/dist/measures/mass.d.ts +2 -0
- package/dist/measures/noise.d.ts +3 -0
- package/dist/measures/power.d.ts +3 -0
- package/dist/measures/pressure.d.ts +3 -0
- package/dist/measures/reactive-energy.d.ts +2 -0
- package/dist/measures/reactive-power.d.ts +2 -0
- package/dist/measures/temperature.d.ts +3 -0
- package/dist/measures/time.d.ts +2 -0
- package/dist/measures/volume-flow.d.ts +3 -0
- package/dist/measures/volume.d.ts +2 -0
- package/dist/medium.d.ts +7 -0
- package/dist/medium.spec.d.ts +1 -0
- package/dist/number-formatter.d.ts +17 -0
- package/dist/number-formatter.spec.d.ts +1 -0
- package/dist/optional.d.ts +1 -0
- package/dist/precision-number.d.ts +16 -0
- package/dist/precision-number.spec.d.ts +1 -0
- package/dist/register-convention.d.ts +14 -0
- package/dist/register-convention.spec.d.ts +1 -0
- package/dist/register-definition.d.ts +13 -0
- package/dist/register-id.d.ts +1 -0
- package/dist/register-library.d.ts +15 -0
- package/dist/register-library.spec.d.ts +1 -0
- package/dist/register-pack.d.ts +4 -0
- package/dist/register-utils.d.ts +3 -0
- package/dist/registers/acoustic-noise.d.ts +8 -0
- package/dist/registers/ambient-temperature.d.ts +8 -0
- package/dist/registers/axioma-infocode.d.ts +3 -0
- package/dist/registers/consumer.d.ts +9 -0
- package/dist/registers/cooling-energy-inlet.d.ts +4 -0
- package/dist/registers/cooling-energy-outlet.d.ts +4 -0
- package/dist/registers/cooling-energy.d.ts +4 -0
- package/dist/registers/cooling.d.ts +15 -0
- package/dist/registers/device-addresses-kamdraft.d.ts +6 -0
- package/dist/registers/device-addresses-msisdn.d.ts +6 -0
- package/dist/registers/device-addresses-tchlr.d.ts +6 -0
- package/dist/registers/device-addresses-wmbus.d.ts +9 -0
- package/dist/registers/device-date-time.d.ts +2 -0
- package/dist/registers/device-date.d.ts +2 -0
- package/dist/registers/device-nominal-diameter.d.ts +2 -0
- package/dist/registers/device-permanent-volume-flow.d.ts +2 -0
- package/dist/registers/device-registers.d.ts +2 -0
- package/dist/registers/device-samples.d.ts +14 -0
- package/dist/registers/device-software-version.d.ts +2 -0
- package/dist/registers/device-time.d.ts +2 -0
- package/dist/registers/device.d.ts +8 -0
- package/dist/registers/diehl-infocode.d.ts +7 -0
- package/dist/registers/electrical-energy.d.ts +4 -0
- package/dist/registers/energy-inlet.d.ts +4 -0
- package/dist/registers/energy-outlet.d.ts +4 -0
- package/dist/registers/error-operating-time.d.ts +4 -0
- package/dist/registers/flow-temperature-aux.d.ts +8 -0
- package/dist/registers/flow-temperature-inlet.d.ts +8 -0
- package/dist/registers/flow-temperature-outlet.d.ts +8 -0
- package/dist/registers/flow-temperature.d.ts +8 -0
- package/dist/registers/heat-energy-inlet.d.ts +10 -0
- package/dist/registers/heat-energy-outlet.d.ts +10 -0
- package/dist/registers/heat-energy.d.ts +10 -0
- package/dist/registers/index.d.ts +71 -0
- package/dist/registers/infocode.d.ts +17 -0
- package/dist/registers/kamstrup-module-type.d.ts +2 -0
- package/dist/registers/kamstrup-multical-infocode.d.ts +9 -0
- package/dist/registers/landis-gyr-infocode.d.ts +4 -0
- package/dist/registers/landis-gyr-mbus-status.d.ts +4 -0
- package/dist/registers/mass-flow-inlet.d.ts +8 -0
- package/dist/registers/mass-flow-outlet.d.ts +8 -0
- package/dist/registers/mass-flow.d.ts +8 -0
- package/dist/registers/mass-inlet.d.ts +4 -0
- package/dist/registers/mass-outlet.d.ts +4 -0
- package/dist/registers/mass.d.ts +4 -0
- package/dist/registers/mbus-format-string-signature.d.ts +2 -0
- package/dist/registers/none.d.ts +2 -0
- package/dist/registers/operating-time.d.ts +4 -0
- package/dist/registers/place.d.ts +16 -0
- package/dist/registers/power-inlet.d.ts +8 -0
- package/dist/registers/power-outlet.d.ts +8 -0
- package/dist/registers/power.d.ts +8 -0
- package/dist/registers/pressure-inlet.d.ts +8 -0
- package/dist/registers/pressure-outlet.d.ts +8 -0
- package/dist/registers/pressure.d.ts +8 -0
- package/dist/registers/radiator-temperature.d.ts +8 -0
- package/dist/registers/reactive-energy.d.ts +4 -0
- package/dist/registers/relative-humidity.d.ts +2 -0
- package/dist/registers/remaining-battery-time.d.ts +4 -0
- package/dist/registers/time-last-exact-overhearing-arrived.d.ts +3 -0
- package/dist/registers/time-last-installation-mounted.d.ts +3 -0
- package/dist/registers/time-last-possible-candidate-overhearing-arrived.d.ts +3 -0
- package/dist/registers/time-last-sampled.d.ts +3 -0
- package/dist/registers/time.d.ts +7 -0
- package/dist/registers/volume-flow-inlet.d.ts +8 -0
- package/dist/registers/volume-flow-outlet.d.ts +8 -0
- package/dist/registers/volume-flow.d.ts +8 -0
- package/dist/registers/volume-inlet.d.ts +4 -0
- package/dist/registers/volume-outlet.d.ts +4 -0
- package/dist/registers/volume-pulse-input-a.d.ts +4 -0
- package/dist/registers/volume-pulse-input-b.d.ts +4 -0
- package/dist/registers/volume.d.ts +4 -0
- package/dist/repository.d.ts +10 -0
- package/dist/repository.spec.d.ts +1 -0
- package/dist/step.d.ts +15 -0
- package/dist/step.spec.d.ts +1 -0
- package/dist/time-or-rule.d.ts +10 -0
- package/dist/unit-id.d.ts +1 -0
- package/package.json +1 -1
- package/src/number-formatter.spec.ts +21 -0
- package/src/number-formatter.ts +17 -9
- package/src/precision-number.spec.ts +134 -3
- package/src/precision-number.ts +123 -17
package/dist/index.js
ADDED
|
@@ -0,0 +1,2842 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var luxon = require('luxon');
|
|
4
|
+
|
|
5
|
+
const units$c = ["decibel"];
|
|
6
|
+
const sqUnits$5 = ["decibel2"];
|
|
7
|
+
|
|
8
|
+
const acousticNoise = {
|
|
9
|
+
id: "acousticNoise",
|
|
10
|
+
measure: "noise",
|
|
11
|
+
aggregate: "instant",
|
|
12
|
+
units: units$c,
|
|
13
|
+
};
|
|
14
|
+
const minAcousticNoise = {
|
|
15
|
+
id: "minAcousticNoise",
|
|
16
|
+
measure: "noise",
|
|
17
|
+
aggregate: "min",
|
|
18
|
+
units: units$c,
|
|
19
|
+
};
|
|
20
|
+
const maxAcousticNoise = {
|
|
21
|
+
id: "maxAcousticNoise",
|
|
22
|
+
measure: "noise",
|
|
23
|
+
aggregate: "max",
|
|
24
|
+
units: units$c,
|
|
25
|
+
};
|
|
26
|
+
const avgAcousticNoise = {
|
|
27
|
+
id: "avgAcousticNoise",
|
|
28
|
+
measure: "noise",
|
|
29
|
+
aggregate: "avg",
|
|
30
|
+
units: units$c,
|
|
31
|
+
};
|
|
32
|
+
const sumAcousticNoise = {
|
|
33
|
+
id: "sumAcousticNoise",
|
|
34
|
+
measure: "noise",
|
|
35
|
+
aggregate: "sum",
|
|
36
|
+
units: units$c,
|
|
37
|
+
};
|
|
38
|
+
const cntAcousticNoise = {
|
|
39
|
+
id: "cntAcousticNoise",
|
|
40
|
+
measure: "noise",
|
|
41
|
+
aggregate: "cnt",
|
|
42
|
+
units: ["unitless"],
|
|
43
|
+
};
|
|
44
|
+
const ssqAcousticNoise = {
|
|
45
|
+
id: "ssqAcousticNoise",
|
|
46
|
+
measure: "noise",
|
|
47
|
+
aggregate: "ssq",
|
|
48
|
+
units: sqUnits$5,
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
const units$b = ["celcius", "kelvin", "fahrenheit"];
|
|
52
|
+
const sqUnits$4 = [
|
|
53
|
+
"celcius2",
|
|
54
|
+
"kelvin2",
|
|
55
|
+
"fahrenheit2",
|
|
56
|
+
];
|
|
57
|
+
|
|
58
|
+
const ambientTemperature = {
|
|
59
|
+
id: "ambientTemperature",
|
|
60
|
+
measure: "temperature",
|
|
61
|
+
aggregate: "instant",
|
|
62
|
+
units: units$b,
|
|
63
|
+
};
|
|
64
|
+
const minAmbientTemperature = {
|
|
65
|
+
id: "minAmbientTemperature",
|
|
66
|
+
measure: "temperature",
|
|
67
|
+
aggregate: "min",
|
|
68
|
+
units: units$b,
|
|
69
|
+
};
|
|
70
|
+
const maxAmbientTemperature = {
|
|
71
|
+
id: "maxAmbientTemperature",
|
|
72
|
+
measure: "temperature",
|
|
73
|
+
aggregate: "max",
|
|
74
|
+
units: units$b,
|
|
75
|
+
};
|
|
76
|
+
const avgAmbientTemperature = {
|
|
77
|
+
id: "avgAmbientTemperature",
|
|
78
|
+
measure: "temperature",
|
|
79
|
+
aggregate: "avg",
|
|
80
|
+
units: units$b,
|
|
81
|
+
};
|
|
82
|
+
const sumAmbientTemperature = {
|
|
83
|
+
id: "sumAmbientTemperature",
|
|
84
|
+
measure: "temperature",
|
|
85
|
+
aggregate: "sum",
|
|
86
|
+
units: units$b,
|
|
87
|
+
};
|
|
88
|
+
const cntAmbientTemperature = {
|
|
89
|
+
id: "cntAmbientTemperature",
|
|
90
|
+
measure: "temperature",
|
|
91
|
+
aggregate: "cnt",
|
|
92
|
+
units: ["unitless"],
|
|
93
|
+
};
|
|
94
|
+
const ssqAmbientTemperature = {
|
|
95
|
+
id: "ssqAmbientTemperature",
|
|
96
|
+
measure: "temperature",
|
|
97
|
+
aggregate: "ssq",
|
|
98
|
+
units: sqUnits$4,
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
const units$a = ["unitless", "json"];
|
|
102
|
+
|
|
103
|
+
const axiomaInfocode = {
|
|
104
|
+
id: "axiomaInfocode",
|
|
105
|
+
measure: "none",
|
|
106
|
+
aggregate: "instant",
|
|
107
|
+
units: units$a,
|
|
108
|
+
};
|
|
109
|
+
const axiomaInfocodeType1 = {
|
|
110
|
+
id: "axiomaInfocodeType1",
|
|
111
|
+
measure: "none",
|
|
112
|
+
aggregate: "instant",
|
|
113
|
+
units: units$a,
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
const consumer = {
|
|
117
|
+
id: "consumer",
|
|
118
|
+
measure: "none",
|
|
119
|
+
aggregate: "instant",
|
|
120
|
+
units: ["unitless"],
|
|
121
|
+
immediate: true,
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
const units$9 = [
|
|
125
|
+
"milliWattHour",
|
|
126
|
+
"wattHour",
|
|
127
|
+
"kiloWattHour",
|
|
128
|
+
"megaWattHour",
|
|
129
|
+
"gigaWattHour",
|
|
130
|
+
"calorie",
|
|
131
|
+
"kiloCalorie",
|
|
132
|
+
"megaCalorie",
|
|
133
|
+
"gigaCalorie",
|
|
134
|
+
];
|
|
135
|
+
|
|
136
|
+
const coolingEnergyVolumeInInlet = {
|
|
137
|
+
id: "coolingEnergyVolumeInInlet",
|
|
138
|
+
measure: "energy",
|
|
139
|
+
aggregate: "instant",
|
|
140
|
+
units: units$9,
|
|
141
|
+
};
|
|
142
|
+
const diffCoolingEnergyVolumeInInlet = {
|
|
143
|
+
id: "diffCoolingEnergyVolumeInInlet",
|
|
144
|
+
measure: "energy",
|
|
145
|
+
aggregate: "diff",
|
|
146
|
+
units: units$9,
|
|
147
|
+
};
|
|
148
|
+
const cntCoolingEnergyVolumeInInlet = {
|
|
149
|
+
id: "cntCoolingEnergyVolumeInInlet",
|
|
150
|
+
measure: "energy",
|
|
151
|
+
aggregate: "cnt",
|
|
152
|
+
units: ["unitless"],
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
const coolingEnergyVolumeInOutlet = {
|
|
156
|
+
id: "coolingEnergyVolumeInOutlet",
|
|
157
|
+
measure: "energy",
|
|
158
|
+
aggregate: "instant",
|
|
159
|
+
units: units$9,
|
|
160
|
+
};
|
|
161
|
+
const diffCoolingEnergyVolumeInOutlet = {
|
|
162
|
+
id: "diffCoolingEnergyVolumeInOutlet",
|
|
163
|
+
measure: "energy",
|
|
164
|
+
aggregate: "diff",
|
|
165
|
+
units: units$9,
|
|
166
|
+
};
|
|
167
|
+
const cntCoolingEnergyVolumeInOutlet = {
|
|
168
|
+
id: "cntCoolingEnergyVolumeInOutlet",
|
|
169
|
+
measure: "energy",
|
|
170
|
+
aggregate: "cnt",
|
|
171
|
+
units: ["unitless"],
|
|
172
|
+
};
|
|
173
|
+
|
|
174
|
+
const coolingEnergy = {
|
|
175
|
+
id: "coolingEnergy",
|
|
176
|
+
measure: "energy",
|
|
177
|
+
aggregate: "instant",
|
|
178
|
+
units: units$9,
|
|
179
|
+
};
|
|
180
|
+
const diffCoolingEnergy = {
|
|
181
|
+
id: "diffCoolingEnergy",
|
|
182
|
+
measure: "energy",
|
|
183
|
+
aggregate: "diff",
|
|
184
|
+
units: units$9,
|
|
185
|
+
};
|
|
186
|
+
const cntCoolingEnergy = {
|
|
187
|
+
id: "cntCoolingEnergy",
|
|
188
|
+
measure: "energy",
|
|
189
|
+
aggregate: "cnt",
|
|
190
|
+
units: ["unitless"],
|
|
191
|
+
};
|
|
192
|
+
|
|
193
|
+
const inletMinusOutletFlowTemperatureDifference = {
|
|
194
|
+
id: "inletMinusOutletFlowTemperatureDifference",
|
|
195
|
+
measure: "temperature",
|
|
196
|
+
aggregate: "instant",
|
|
197
|
+
units: units$b,
|
|
198
|
+
};
|
|
199
|
+
const minInletMinusOutletFlowTemperatureDifference = {
|
|
200
|
+
id: "minInletMinusOutletFlowTemperatureDifference",
|
|
201
|
+
measure: "temperature",
|
|
202
|
+
aggregate: "min",
|
|
203
|
+
units: units$b,
|
|
204
|
+
};
|
|
205
|
+
const maxInletMinusOutletFlowTemperatureDifference = {
|
|
206
|
+
id: "maxInletMinusOutletFlowTemperatureDifference",
|
|
207
|
+
measure: "temperature",
|
|
208
|
+
aggregate: "max",
|
|
209
|
+
units: units$b,
|
|
210
|
+
};
|
|
211
|
+
const avgInletMinusOutletFlowTemperatureDifference = {
|
|
212
|
+
id: "avgInletMinusOutletFlowTemperatureDifference",
|
|
213
|
+
measure: "temperature",
|
|
214
|
+
aggregate: "avg",
|
|
215
|
+
units: units$b,
|
|
216
|
+
};
|
|
217
|
+
const sumInletMinusOutletFlowTemperatureDifference = {
|
|
218
|
+
id: "sumInletMinusOutletFlowTemperatureDifference",
|
|
219
|
+
measure: "temperature",
|
|
220
|
+
aggregate: "sum",
|
|
221
|
+
units: units$b,
|
|
222
|
+
};
|
|
223
|
+
const cntInletMinusOutletFlowTemperatureDifference = {
|
|
224
|
+
id: "cntInletMinusOutletFlowTemperatureDifference",
|
|
225
|
+
measure: "temperature",
|
|
226
|
+
aggregate: "cnt",
|
|
227
|
+
units: ["unitless"],
|
|
228
|
+
};
|
|
229
|
+
const ssqInletMinusOutletFlowTemperatureDifference = {
|
|
230
|
+
id: "ssqInletMinusOutletFlowTemperatureDifference",
|
|
231
|
+
measure: "temperature",
|
|
232
|
+
aggregate: "ssq",
|
|
233
|
+
units: sqUnits$4,
|
|
234
|
+
};
|
|
235
|
+
const outletMinusInletFlowTemperatureDifference = {
|
|
236
|
+
id: "outletMinusInletFlowTemperatureDifference",
|
|
237
|
+
measure: "temperature",
|
|
238
|
+
aggregate: "instant",
|
|
239
|
+
units: units$b,
|
|
240
|
+
};
|
|
241
|
+
const minOutletMinusInletFlowTemperatureDifference = {
|
|
242
|
+
id: "minOutletMinusInletFlowTemperatureDifference",
|
|
243
|
+
measure: "temperature",
|
|
244
|
+
aggregate: "min",
|
|
245
|
+
units: units$b,
|
|
246
|
+
};
|
|
247
|
+
const maxOutletMinusInletFlowTemperatureDifference = {
|
|
248
|
+
id: "maxOutletMinusInletFlowTemperatureDifference",
|
|
249
|
+
measure: "temperature",
|
|
250
|
+
aggregate: "max",
|
|
251
|
+
units: units$b,
|
|
252
|
+
};
|
|
253
|
+
const avgOutletMinusInletFlowTemperatureDifference = {
|
|
254
|
+
id: "avgOutletMinusInletFlowTemperatureDifference",
|
|
255
|
+
measure: "temperature",
|
|
256
|
+
aggregate: "avg",
|
|
257
|
+
units: units$b,
|
|
258
|
+
};
|
|
259
|
+
const sumOutletMinusInletFlowTemperatureDifference = {
|
|
260
|
+
id: "sumOutletMinusInletFlowTemperatureDifference",
|
|
261
|
+
measure: "temperature",
|
|
262
|
+
aggregate: "sum",
|
|
263
|
+
units: units$b,
|
|
264
|
+
};
|
|
265
|
+
const cntOutletMinusInletFlowTemperatureDifference = {
|
|
266
|
+
id: "cntOutletMinusInletFlowTemperatureDifference",
|
|
267
|
+
measure: "temperature",
|
|
268
|
+
aggregate: "cnt",
|
|
269
|
+
units: ["unitless"],
|
|
270
|
+
};
|
|
271
|
+
const ssqOutletMinusInletFlowTemperatureDifference = {
|
|
272
|
+
id: "ssqOutletMinusInletFlowTemperatureDifference",
|
|
273
|
+
measure: "temperature",
|
|
274
|
+
aggregate: "ssq",
|
|
275
|
+
units: sqUnits$4,
|
|
276
|
+
};
|
|
277
|
+
|
|
278
|
+
const kamdraftDeviceAddresses = {
|
|
279
|
+
id: "kamdraftDeviceAddresses",
|
|
280
|
+
measure: "none",
|
|
281
|
+
aggregate: "instant",
|
|
282
|
+
units: ["json"],
|
|
283
|
+
immediate: true,
|
|
284
|
+
};
|
|
285
|
+
|
|
286
|
+
const msisdnDeviceAddresses = {
|
|
287
|
+
id: "msisdnDeviceAddresses",
|
|
288
|
+
measure: "none",
|
|
289
|
+
aggregate: "instant",
|
|
290
|
+
units: ["json"],
|
|
291
|
+
immediate: true,
|
|
292
|
+
};
|
|
293
|
+
|
|
294
|
+
const tchlrDeviceAddresses = {
|
|
295
|
+
id: "tchlrDeviceAddresses",
|
|
296
|
+
measure: "none",
|
|
297
|
+
aggregate: "instant",
|
|
298
|
+
units: ["json"],
|
|
299
|
+
immediate: true,
|
|
300
|
+
};
|
|
301
|
+
|
|
302
|
+
const wMBusDeviceAddresses = {
|
|
303
|
+
id: "wMBusDeviceAddresses",
|
|
304
|
+
measure: "none",
|
|
305
|
+
aggregate: "instant",
|
|
306
|
+
units: ["json"],
|
|
307
|
+
immediate: true,
|
|
308
|
+
};
|
|
309
|
+
|
|
310
|
+
const units$8 = [];
|
|
311
|
+
|
|
312
|
+
const deviceDateTime = {
|
|
313
|
+
id: "deviceDateTime",
|
|
314
|
+
measure: "time",
|
|
315
|
+
aggregate: "instant",
|
|
316
|
+
units: units$8,
|
|
317
|
+
};
|
|
318
|
+
|
|
319
|
+
const deviceDate = {
|
|
320
|
+
id: "deviceDate",
|
|
321
|
+
measure: "time",
|
|
322
|
+
aggregate: "instant",
|
|
323
|
+
units: units$8,
|
|
324
|
+
};
|
|
325
|
+
|
|
326
|
+
const deviceNominalDiameter = {
|
|
327
|
+
id: "deviceNominalDiameter",
|
|
328
|
+
measure: "none",
|
|
329
|
+
aggregate: "instant",
|
|
330
|
+
units: ["unitless"],
|
|
331
|
+
immediate: true,
|
|
332
|
+
};
|
|
333
|
+
|
|
334
|
+
const devicePermanentVolumeFlow = {
|
|
335
|
+
id: "devicePermanentVolumeFlow",
|
|
336
|
+
measure: "volumeFlow",
|
|
337
|
+
aggregate: "instant",
|
|
338
|
+
units: ["cubicMetersPerHour"],
|
|
339
|
+
immediate: true,
|
|
340
|
+
};
|
|
341
|
+
|
|
342
|
+
const deviceRegisters = {
|
|
343
|
+
id: "deviceRegisters",
|
|
344
|
+
measure: "none",
|
|
345
|
+
aggregate: "instant",
|
|
346
|
+
units: ["json"],
|
|
347
|
+
immediate: true,
|
|
348
|
+
};
|
|
349
|
+
|
|
350
|
+
const legacyDeviceSamples = {
|
|
351
|
+
id: "legacyDeviceSamples",
|
|
352
|
+
measure: "none",
|
|
353
|
+
aggregate: "instant",
|
|
354
|
+
units: ["json"],
|
|
355
|
+
immediate: true,
|
|
356
|
+
};
|
|
357
|
+
const deviceSamplesOnLastMount = {
|
|
358
|
+
id: "deviceSamplesOnLastMount",
|
|
359
|
+
measure: "none",
|
|
360
|
+
aggregate: "instant",
|
|
361
|
+
units: ["json"],
|
|
362
|
+
immediate: true,
|
|
363
|
+
};
|
|
364
|
+
const deviceSamplesOnLastUnmount = {
|
|
365
|
+
id: "deviceSamplesOnLastUnmount",
|
|
366
|
+
measure: "none",
|
|
367
|
+
aggregate: "instant",
|
|
368
|
+
units: ["json"],
|
|
369
|
+
immediate: true,
|
|
370
|
+
};
|
|
371
|
+
|
|
372
|
+
const deviceSoftwareVersion = {
|
|
373
|
+
id: "deviceSoftwareVersion",
|
|
374
|
+
measure: "none",
|
|
375
|
+
aggregate: "instant",
|
|
376
|
+
units: ["unitless"],
|
|
377
|
+
};
|
|
378
|
+
|
|
379
|
+
const deviceTime = {
|
|
380
|
+
id: "deviceTime",
|
|
381
|
+
measure: "time",
|
|
382
|
+
aggregate: "instant",
|
|
383
|
+
units: units$8,
|
|
384
|
+
};
|
|
385
|
+
|
|
386
|
+
const device = {
|
|
387
|
+
id: "device",
|
|
388
|
+
measure: "none",
|
|
389
|
+
aggregate: "instant",
|
|
390
|
+
units: ["json"],
|
|
391
|
+
immediate: true,
|
|
392
|
+
};
|
|
393
|
+
|
|
394
|
+
const diehlInfocode = {
|
|
395
|
+
id: "diehlInfocode",
|
|
396
|
+
measure: "none",
|
|
397
|
+
aggregate: "instant",
|
|
398
|
+
units: units$a,
|
|
399
|
+
};
|
|
400
|
+
const diehlInfocodeType1 = {
|
|
401
|
+
id: "diehlInfocodeType1",
|
|
402
|
+
measure: "none",
|
|
403
|
+
aggregate: "instant",
|
|
404
|
+
units: units$a,
|
|
405
|
+
};
|
|
406
|
+
const diehlInfocodeType2 = {
|
|
407
|
+
id: "diehlInfocodeType2",
|
|
408
|
+
measure: "none",
|
|
409
|
+
aggregate: "instant",
|
|
410
|
+
units: units$a,
|
|
411
|
+
};
|
|
412
|
+
const diehlInfocodeType3 = {
|
|
413
|
+
id: "diehlInfocodeType3",
|
|
414
|
+
measure: "none",
|
|
415
|
+
aggregate: "instant",
|
|
416
|
+
units: units$a,
|
|
417
|
+
};
|
|
418
|
+
const diehlInfocodeType4 = {
|
|
419
|
+
id: "diehlInfocodeType4",
|
|
420
|
+
measure: "none",
|
|
421
|
+
aggregate: "instant",
|
|
422
|
+
units: units$a,
|
|
423
|
+
};
|
|
424
|
+
const diehlInfocodeType5 = {
|
|
425
|
+
id: "diehlInfocodeType5",
|
|
426
|
+
measure: "none",
|
|
427
|
+
aggregate: "instant",
|
|
428
|
+
units: units$a,
|
|
429
|
+
};
|
|
430
|
+
|
|
431
|
+
const electricalEnergy = {
|
|
432
|
+
id: "electricalEnergy",
|
|
433
|
+
measure: "energy",
|
|
434
|
+
aggregate: "instant",
|
|
435
|
+
units: units$9,
|
|
436
|
+
};
|
|
437
|
+
const diffElectricalEnergy = {
|
|
438
|
+
id: "diffElectricalEnergy",
|
|
439
|
+
measure: "energy",
|
|
440
|
+
aggregate: "diff",
|
|
441
|
+
units: units$9,
|
|
442
|
+
};
|
|
443
|
+
const cntElectricalEnergy = {
|
|
444
|
+
id: "cntElectricalEnergy",
|
|
445
|
+
measure: "energy",
|
|
446
|
+
aggregate: "cnt",
|
|
447
|
+
units: ["unitless"],
|
|
448
|
+
};
|
|
449
|
+
|
|
450
|
+
const kamstrupE8Inlet = {
|
|
451
|
+
id: "kamstrupE8Inlet",
|
|
452
|
+
measure: "energy",
|
|
453
|
+
aggregate: "instant",
|
|
454
|
+
units: ["cubicMeterCelcius", ...units$9],
|
|
455
|
+
};
|
|
456
|
+
const diffKamstrupE8Inlet = {
|
|
457
|
+
id: "diffKamstrupE8Inlet",
|
|
458
|
+
measure: "energy",
|
|
459
|
+
aggregate: "diff",
|
|
460
|
+
units: ["cubicMeterCelcius", ...units$9],
|
|
461
|
+
};
|
|
462
|
+
const cntKamstrupE8Inlet = {
|
|
463
|
+
id: "cntKamstrupE8Inlet",
|
|
464
|
+
measure: "energy",
|
|
465
|
+
aggregate: "cnt",
|
|
466
|
+
units: ["unitless"],
|
|
467
|
+
};
|
|
468
|
+
|
|
469
|
+
const kamstrupE9Outlet = {
|
|
470
|
+
id: "kamstrupE9Outlet",
|
|
471
|
+
measure: "energy",
|
|
472
|
+
aggregate: "instant",
|
|
473
|
+
units: ["cubicMeterCelcius", ...units$9],
|
|
474
|
+
};
|
|
475
|
+
const diffKamstrupE9Outlet = {
|
|
476
|
+
id: "diffKamstrupE9Outlet",
|
|
477
|
+
measure: "energy",
|
|
478
|
+
aggregate: "diff",
|
|
479
|
+
units: ["cubicMeterCelcius", ...units$9],
|
|
480
|
+
};
|
|
481
|
+
const cntKamstrupE9Outlet = {
|
|
482
|
+
id: "cntKamstrupE9Outlet",
|
|
483
|
+
measure: "energy",
|
|
484
|
+
aggregate: "cnt",
|
|
485
|
+
units: ["unitless"],
|
|
486
|
+
};
|
|
487
|
+
|
|
488
|
+
const units$7 = [
|
|
489
|
+
"second",
|
|
490
|
+
"minute",
|
|
491
|
+
"hour",
|
|
492
|
+
"day",
|
|
493
|
+
"week",
|
|
494
|
+
"month",
|
|
495
|
+
"year",
|
|
496
|
+
];
|
|
497
|
+
|
|
498
|
+
const errorOperatingTime = {
|
|
499
|
+
id: "errorOperatingTime",
|
|
500
|
+
measure: "duration",
|
|
501
|
+
aggregate: "instant",
|
|
502
|
+
units: units$7,
|
|
503
|
+
};
|
|
504
|
+
const diffErrorOperatingTime = {
|
|
505
|
+
id: "diffErrorOperatingTime",
|
|
506
|
+
measure: "duration",
|
|
507
|
+
aggregate: "diff",
|
|
508
|
+
units: units$7,
|
|
509
|
+
};
|
|
510
|
+
const cntErrorOperatingTime = {
|
|
511
|
+
id: "cntErrorOperatingTime",
|
|
512
|
+
measure: "duration",
|
|
513
|
+
aggregate: "cnt",
|
|
514
|
+
units: ["unitless"],
|
|
515
|
+
};
|
|
516
|
+
|
|
517
|
+
const auxFlowTemperature = {
|
|
518
|
+
id: "auxFlowTemperature",
|
|
519
|
+
measure: "temperature",
|
|
520
|
+
aggregate: "instant",
|
|
521
|
+
units: units$b,
|
|
522
|
+
};
|
|
523
|
+
const minAuxFlowTemperature = {
|
|
524
|
+
id: "minAuxFlowTemperature",
|
|
525
|
+
measure: "temperature",
|
|
526
|
+
aggregate: "min",
|
|
527
|
+
units: units$b,
|
|
528
|
+
};
|
|
529
|
+
const maxAuxFlowTemperature = {
|
|
530
|
+
id: "maxAuxFlowTemperature",
|
|
531
|
+
measure: "temperature",
|
|
532
|
+
aggregate: "max",
|
|
533
|
+
units: units$b,
|
|
534
|
+
};
|
|
535
|
+
const avgAuxFlowTemperature = {
|
|
536
|
+
id: "avgAuxFlowTemperature",
|
|
537
|
+
measure: "temperature",
|
|
538
|
+
aggregate: "avg",
|
|
539
|
+
units: units$b,
|
|
540
|
+
};
|
|
541
|
+
const sumAuxFlowTemperature = {
|
|
542
|
+
id: "sumAuxFlowTemperature",
|
|
543
|
+
measure: "temperature",
|
|
544
|
+
aggregate: "sum",
|
|
545
|
+
units: units$b,
|
|
546
|
+
};
|
|
547
|
+
const cntAuxFlowTemperature = {
|
|
548
|
+
id: "cntAuxFlowTemperature",
|
|
549
|
+
measure: "temperature",
|
|
550
|
+
aggregate: "cnt",
|
|
551
|
+
units: ["unitless"],
|
|
552
|
+
};
|
|
553
|
+
const ssqAuxFlowTemperature = {
|
|
554
|
+
id: "ssqAuxFlowTemperature",
|
|
555
|
+
measure: "temperature",
|
|
556
|
+
aggregate: "ssq",
|
|
557
|
+
units: sqUnits$4,
|
|
558
|
+
};
|
|
559
|
+
|
|
560
|
+
const inletFlowTemperature = {
|
|
561
|
+
id: "inletFlowTemperature",
|
|
562
|
+
measure: "temperature",
|
|
563
|
+
aggregate: "instant",
|
|
564
|
+
units: units$b,
|
|
565
|
+
};
|
|
566
|
+
const minInletFlowTemperature = {
|
|
567
|
+
id: "minInletFlowTemperature",
|
|
568
|
+
measure: "temperature",
|
|
569
|
+
aggregate: "min",
|
|
570
|
+
units: units$b,
|
|
571
|
+
};
|
|
572
|
+
const maxInletFlowTemperature = {
|
|
573
|
+
id: "maxInletFlowTemperature",
|
|
574
|
+
measure: "temperature",
|
|
575
|
+
aggregate: "max",
|
|
576
|
+
units: units$b,
|
|
577
|
+
};
|
|
578
|
+
const avgInletFlowTemperature = {
|
|
579
|
+
id: "avgInletFlowTemperature",
|
|
580
|
+
measure: "temperature",
|
|
581
|
+
aggregate: "avg",
|
|
582
|
+
units: units$b,
|
|
583
|
+
};
|
|
584
|
+
const sumInletFlowTemperature = {
|
|
585
|
+
id: "sumInletFlowTemperature",
|
|
586
|
+
measure: "temperature",
|
|
587
|
+
aggregate: "sum",
|
|
588
|
+
units: units$b,
|
|
589
|
+
};
|
|
590
|
+
const cntInletFlowTemperature = {
|
|
591
|
+
id: "cntInletFlowTemperature",
|
|
592
|
+
measure: "temperature",
|
|
593
|
+
aggregate: "cnt",
|
|
594
|
+
units: ["unitless"],
|
|
595
|
+
};
|
|
596
|
+
const ssqInletFlowTemperature = {
|
|
597
|
+
id: "ssqInletFlowTemperature",
|
|
598
|
+
measure: "temperature",
|
|
599
|
+
aggregate: "ssq",
|
|
600
|
+
units: sqUnits$4,
|
|
601
|
+
};
|
|
602
|
+
|
|
603
|
+
const outletFlowTemperature = {
|
|
604
|
+
id: "outletFlowTemperature",
|
|
605
|
+
measure: "temperature",
|
|
606
|
+
aggregate: "instant",
|
|
607
|
+
units: units$b,
|
|
608
|
+
};
|
|
609
|
+
const minOutletFlowTemperature = {
|
|
610
|
+
id: "minOutletFlowTemperature",
|
|
611
|
+
measure: "temperature",
|
|
612
|
+
aggregate: "min",
|
|
613
|
+
units: units$b,
|
|
614
|
+
};
|
|
615
|
+
const maxOutletFlowTemperature = {
|
|
616
|
+
id: "maxOutletFlowTemperature",
|
|
617
|
+
measure: "temperature",
|
|
618
|
+
aggregate: "max",
|
|
619
|
+
units: units$b,
|
|
620
|
+
};
|
|
621
|
+
const avgOutletFlowTemperature = {
|
|
622
|
+
id: "avgOutletFlowTemperature",
|
|
623
|
+
measure: "temperature",
|
|
624
|
+
aggregate: "avg",
|
|
625
|
+
units: units$b,
|
|
626
|
+
};
|
|
627
|
+
const sumOutletFlowTemperature = {
|
|
628
|
+
id: "sumOutletFlowTemperature",
|
|
629
|
+
measure: "temperature",
|
|
630
|
+
aggregate: "sum",
|
|
631
|
+
units: units$b,
|
|
632
|
+
};
|
|
633
|
+
const cntOutletFlowTemperature = {
|
|
634
|
+
id: "cntOutletFlowTemperature",
|
|
635
|
+
measure: "temperature",
|
|
636
|
+
aggregate: "cnt",
|
|
637
|
+
units: ["unitless"],
|
|
638
|
+
};
|
|
639
|
+
const ssqOutletFlowTemperature = {
|
|
640
|
+
id: "ssqOutletFlowTemperature",
|
|
641
|
+
measure: "temperature",
|
|
642
|
+
aggregate: "ssq",
|
|
643
|
+
units: sqUnits$4,
|
|
644
|
+
};
|
|
645
|
+
|
|
646
|
+
const flowTemperature = {
|
|
647
|
+
id: "flowTemperature",
|
|
648
|
+
measure: "temperature",
|
|
649
|
+
aggregate: "instant",
|
|
650
|
+
units: units$b,
|
|
651
|
+
};
|
|
652
|
+
const minFlowTemperature = {
|
|
653
|
+
id: "minFlowTemperature",
|
|
654
|
+
measure: "temperature",
|
|
655
|
+
aggregate: "min",
|
|
656
|
+
units: units$b,
|
|
657
|
+
};
|
|
658
|
+
const maxFlowTemperature = {
|
|
659
|
+
id: "maxFlowTemperature",
|
|
660
|
+
measure: "temperature",
|
|
661
|
+
aggregate: "max",
|
|
662
|
+
units: units$b,
|
|
663
|
+
};
|
|
664
|
+
const avgFlowTemperature = {
|
|
665
|
+
id: "avgFlowTemperature",
|
|
666
|
+
measure: "temperature",
|
|
667
|
+
aggregate: "avg",
|
|
668
|
+
units: units$b,
|
|
669
|
+
};
|
|
670
|
+
const sumFlowTemperature = {
|
|
671
|
+
id: "sumFlowTemperature",
|
|
672
|
+
measure: "temperature",
|
|
673
|
+
aggregate: "sum",
|
|
674
|
+
units: units$b,
|
|
675
|
+
};
|
|
676
|
+
const cntFlowTemperature = {
|
|
677
|
+
id: "cntFlowTemperature",
|
|
678
|
+
measure: "temperature",
|
|
679
|
+
aggregate: "cnt",
|
|
680
|
+
units: ["unitless"],
|
|
681
|
+
};
|
|
682
|
+
const ssqFlowTemperature = {
|
|
683
|
+
id: "ssqFlowTemperature",
|
|
684
|
+
measure: "temperature",
|
|
685
|
+
aggregate: "ssq",
|
|
686
|
+
units: sqUnits$4,
|
|
687
|
+
};
|
|
688
|
+
|
|
689
|
+
const heatEnergyVolumeInInlet = {
|
|
690
|
+
id: "heatEnergyVolumeInInlet",
|
|
691
|
+
measure: "energy",
|
|
692
|
+
aggregate: "instant",
|
|
693
|
+
units: units$9,
|
|
694
|
+
};
|
|
695
|
+
const diffHeatEnergyVolumeInInlet = {
|
|
696
|
+
id: "diffHeatEnergyVolumeInInlet",
|
|
697
|
+
measure: "energy",
|
|
698
|
+
aggregate: "diff",
|
|
699
|
+
units: units$9,
|
|
700
|
+
};
|
|
701
|
+
const cntHeatEnergyVolumeInInlet = {
|
|
702
|
+
id: "cntHeatEnergyVolumeInInlet",
|
|
703
|
+
measure: "energy",
|
|
704
|
+
aggregate: "cnt",
|
|
705
|
+
units: ["unitless"],
|
|
706
|
+
};
|
|
707
|
+
const heatEnergyTariff1VolumeInInlet = {
|
|
708
|
+
id: "heatEnergyTariff1VolumeInInlet",
|
|
709
|
+
measure: "energy",
|
|
710
|
+
aggregate: "instant",
|
|
711
|
+
units: units$9,
|
|
712
|
+
};
|
|
713
|
+
const diffHeatEnergyTariff1VolumeInInlet = {
|
|
714
|
+
id: "diffHeatEnergyTariff1VolumeInInlet",
|
|
715
|
+
measure: "energy",
|
|
716
|
+
aggregate: "diff",
|
|
717
|
+
units: units$9,
|
|
718
|
+
};
|
|
719
|
+
const cntHeatEnergyTariff1VolumeInInlet = {
|
|
720
|
+
id: "cntHeatEnergyTariff1VolumeInInlet",
|
|
721
|
+
measure: "energy",
|
|
722
|
+
aggregate: "cnt",
|
|
723
|
+
units: ["unitless"],
|
|
724
|
+
};
|
|
725
|
+
const heatEnergyTariff2VolumeInInlet = {
|
|
726
|
+
id: "heatEnergyTariff2VolumeInInlet",
|
|
727
|
+
measure: "energy",
|
|
728
|
+
aggregate: "instant",
|
|
729
|
+
units: units$9,
|
|
730
|
+
};
|
|
731
|
+
const diffHeatEnergyTariff2VolumeInInlet = {
|
|
732
|
+
id: "diffHeatEnergyTariff2VolumeInInlet",
|
|
733
|
+
measure: "energy",
|
|
734
|
+
aggregate: "diff",
|
|
735
|
+
units: units$9,
|
|
736
|
+
};
|
|
737
|
+
const cntHeatEnergyTariff2VolumeInInlet = {
|
|
738
|
+
id: "cntHeatEnergyTariff2VolumeInInlet",
|
|
739
|
+
measure: "energy",
|
|
740
|
+
aggregate: "cnt",
|
|
741
|
+
units: ["unitless"],
|
|
742
|
+
};
|
|
743
|
+
|
|
744
|
+
const heatEnergyVolumeInOutlet = {
|
|
745
|
+
id: "heatEnergyVolumeInOutlet",
|
|
746
|
+
measure: "energy",
|
|
747
|
+
aggregate: "instant",
|
|
748
|
+
units: units$9,
|
|
749
|
+
};
|
|
750
|
+
const diffHeatEnergyVolumeInOutlet = {
|
|
751
|
+
id: "diffHeatEnergyVolumeInOutlet",
|
|
752
|
+
measure: "energy",
|
|
753
|
+
aggregate: "diff",
|
|
754
|
+
units: units$9,
|
|
755
|
+
};
|
|
756
|
+
const cntHeatEnergyVolumeInOutlet = {
|
|
757
|
+
id: "cntHeatEnergyVolumeInOutlet",
|
|
758
|
+
measure: "energy",
|
|
759
|
+
aggregate: "cnt",
|
|
760
|
+
units: ["unitless"],
|
|
761
|
+
};
|
|
762
|
+
const heatEnergyTariff1VolumeInOutlet = {
|
|
763
|
+
id: "heatEnergyTariff1VolumeInOutlet",
|
|
764
|
+
measure: "energy",
|
|
765
|
+
aggregate: "instant",
|
|
766
|
+
units: units$9,
|
|
767
|
+
};
|
|
768
|
+
const diffHeatEnergyTariff1VolumeInOutlet = {
|
|
769
|
+
id: "diffHeatEnergyTariff1VolumeInOutlet",
|
|
770
|
+
measure: "energy",
|
|
771
|
+
aggregate: "diff",
|
|
772
|
+
units: units$9,
|
|
773
|
+
};
|
|
774
|
+
const cntHeatEnergyTariff1VolumeInOutlet = {
|
|
775
|
+
id: "cntHeatEnergyTariff1VolumeInOutlet",
|
|
776
|
+
measure: "energy",
|
|
777
|
+
aggregate: "cnt",
|
|
778
|
+
units: ["unitless"],
|
|
779
|
+
};
|
|
780
|
+
const heatEnergyTariff2VolumeInOutlet = {
|
|
781
|
+
id: "heatEnergyTariff2VolumeInOutlet",
|
|
782
|
+
measure: "energy",
|
|
783
|
+
aggregate: "instant",
|
|
784
|
+
units: units$9,
|
|
785
|
+
};
|
|
786
|
+
const diffHeatEnergyTariff2VolumeInOutlet = {
|
|
787
|
+
id: "diffHeatEnergyTariff2VolumeInOutlet",
|
|
788
|
+
measure: "energy",
|
|
789
|
+
aggregate: "diff",
|
|
790
|
+
units: units$9,
|
|
791
|
+
};
|
|
792
|
+
const cntHeatEnergyTariff2VolumeInOutlet = {
|
|
793
|
+
id: "cntHeatEnergyTariff2VolumeInOutlet",
|
|
794
|
+
measure: "energy",
|
|
795
|
+
aggregate: "cnt",
|
|
796
|
+
units: ["unitless"],
|
|
797
|
+
};
|
|
798
|
+
|
|
799
|
+
const heatEnergy = {
|
|
800
|
+
id: "heatEnergy",
|
|
801
|
+
measure: "energy",
|
|
802
|
+
aggregate: "instant",
|
|
803
|
+
units: units$9,
|
|
804
|
+
};
|
|
805
|
+
const diffHeatEnergy = {
|
|
806
|
+
id: "diffHeatEnergy",
|
|
807
|
+
measure: "energy",
|
|
808
|
+
aggregate: "diff",
|
|
809
|
+
units: units$9,
|
|
810
|
+
};
|
|
811
|
+
const cntHeatEnergy = {
|
|
812
|
+
id: "cntHeatEnergy",
|
|
813
|
+
measure: "energy",
|
|
814
|
+
aggregate: "cnt",
|
|
815
|
+
units: ["unitless"],
|
|
816
|
+
};
|
|
817
|
+
const heatEnergyTariff1 = {
|
|
818
|
+
id: "heatEnergyTariff1",
|
|
819
|
+
measure: "energy",
|
|
820
|
+
aggregate: "instant",
|
|
821
|
+
units: units$9,
|
|
822
|
+
};
|
|
823
|
+
const diffHeatEnergyTariff1 = {
|
|
824
|
+
id: "diffHeatEnergyTariff1",
|
|
825
|
+
measure: "energy",
|
|
826
|
+
aggregate: "diff",
|
|
827
|
+
units: units$9,
|
|
828
|
+
};
|
|
829
|
+
const cntHeatEnergyTariff1 = {
|
|
830
|
+
id: "cntHeatEnergyTariff1",
|
|
831
|
+
measure: "energy",
|
|
832
|
+
aggregate: "cnt",
|
|
833
|
+
units: ["unitless"],
|
|
834
|
+
};
|
|
835
|
+
const heatEnergyTariff2 = {
|
|
836
|
+
id: "heatEnergyTariff2",
|
|
837
|
+
measure: "energy",
|
|
838
|
+
aggregate: "instant",
|
|
839
|
+
units: units$9,
|
|
840
|
+
};
|
|
841
|
+
const diffHeatEnergyTariff2 = {
|
|
842
|
+
id: "diffHeatEnergyTariff2",
|
|
843
|
+
measure: "energy",
|
|
844
|
+
aggregate: "diff",
|
|
845
|
+
units: units$9,
|
|
846
|
+
};
|
|
847
|
+
const cntHeatEnergyTariff2 = {
|
|
848
|
+
id: "cntHeatEnergyTariff2",
|
|
849
|
+
measure: "energy",
|
|
850
|
+
aggregate: "cnt",
|
|
851
|
+
units: ["unitless"],
|
|
852
|
+
};
|
|
853
|
+
|
|
854
|
+
const infocode = {
|
|
855
|
+
id: "infocode",
|
|
856
|
+
measure: "none",
|
|
857
|
+
aggregate: "instant",
|
|
858
|
+
units: units$a,
|
|
859
|
+
};
|
|
860
|
+
|
|
861
|
+
const kamstrupModuleType = {
|
|
862
|
+
id: "kamstrupModuleType",
|
|
863
|
+
measure: "none",
|
|
864
|
+
aggregate: "instant",
|
|
865
|
+
units: ["unitless"],
|
|
866
|
+
};
|
|
867
|
+
|
|
868
|
+
const kamstrupMulticalInfocode = {
|
|
869
|
+
id: "kamstrupMulticalInfocode",
|
|
870
|
+
measure: "none",
|
|
871
|
+
aggregate: "instant",
|
|
872
|
+
units: units$a,
|
|
873
|
+
};
|
|
874
|
+
const kamstrupMulticalInfocodeType1 = {
|
|
875
|
+
id: "kamstrupMulticalInfocodeType1",
|
|
876
|
+
measure: "none",
|
|
877
|
+
aggregate: "instant",
|
|
878
|
+
units: units$a,
|
|
879
|
+
};
|
|
880
|
+
const kamstrupMulticalInfocodeType2 = {
|
|
881
|
+
id: "kamstrupMulticalInfocodeType2",
|
|
882
|
+
measure: "none",
|
|
883
|
+
aggregate: "instant",
|
|
884
|
+
units: units$a,
|
|
885
|
+
};
|
|
886
|
+
const kamstrupMulticalInfocodeType3 = {
|
|
887
|
+
id: "kamstrupMulticalInfocodeType3",
|
|
888
|
+
measure: "none",
|
|
889
|
+
aggregate: "instant",
|
|
890
|
+
units: units$a,
|
|
891
|
+
};
|
|
892
|
+
const kamstrupMulticalInfocodeType4 = {
|
|
893
|
+
id: "kamstrupMulticalInfocodeType4",
|
|
894
|
+
measure: "none",
|
|
895
|
+
aggregate: "instant",
|
|
896
|
+
units: units$a,
|
|
897
|
+
};
|
|
898
|
+
const kamstrupMulticalInfocodeType5 = {
|
|
899
|
+
id: "kamstrupMulticalInfocodeType5",
|
|
900
|
+
measure: "none",
|
|
901
|
+
aggregate: "instant",
|
|
902
|
+
units: units$a,
|
|
903
|
+
};
|
|
904
|
+
const kamstrupMulticalInfocodeType6 = {
|
|
905
|
+
id: "kamstrupMulticalInfocodeType6",
|
|
906
|
+
measure: "none",
|
|
907
|
+
aggregate: "instant",
|
|
908
|
+
units: units$a,
|
|
909
|
+
};
|
|
910
|
+
const kamstrupMulticalInfocodeType7 = {
|
|
911
|
+
id: "kamstrupMulticalInfocodeType7",
|
|
912
|
+
measure: "none",
|
|
913
|
+
aggregate: "instant",
|
|
914
|
+
units: units$a,
|
|
915
|
+
};
|
|
916
|
+
|
|
917
|
+
const landisGyrInfocode = {
|
|
918
|
+
id: "landisGyrInfocode",
|
|
919
|
+
measure: "none",
|
|
920
|
+
aggregate: "instant",
|
|
921
|
+
units: units$a,
|
|
922
|
+
};
|
|
923
|
+
const landisGyrInfocodeType1 = {
|
|
924
|
+
id: "landisGyrInfocodeType1",
|
|
925
|
+
measure: "none",
|
|
926
|
+
aggregate: "instant",
|
|
927
|
+
units: units$a,
|
|
928
|
+
};
|
|
929
|
+
const landisGyrInfocodeType2 = {
|
|
930
|
+
id: "landisGyrInfocodeType2",
|
|
931
|
+
measure: "none",
|
|
932
|
+
aggregate: "instant",
|
|
933
|
+
units: units$a,
|
|
934
|
+
};
|
|
935
|
+
|
|
936
|
+
const landisGyrMBusStatus = {
|
|
937
|
+
id: "landisGyrMBusStatus",
|
|
938
|
+
measure: "none",
|
|
939
|
+
aggregate: "instant",
|
|
940
|
+
units: units$a,
|
|
941
|
+
};
|
|
942
|
+
const landisGyrMBusStatusType1 = {
|
|
943
|
+
id: "landisGyrMBusStatusType1",
|
|
944
|
+
measure: "none",
|
|
945
|
+
aggregate: "instant",
|
|
946
|
+
units: units$a,
|
|
947
|
+
};
|
|
948
|
+
const landisGyrMBusStatusType2 = {
|
|
949
|
+
id: "landisGyrMBusStatusType2",
|
|
950
|
+
measure: "none",
|
|
951
|
+
aggregate: "instant",
|
|
952
|
+
units: units$a,
|
|
953
|
+
};
|
|
954
|
+
|
|
955
|
+
const units$6 = [
|
|
956
|
+
"gramsPerSecond",
|
|
957
|
+
"gramsPerMinute",
|
|
958
|
+
"gramsPerHour",
|
|
959
|
+
"kiloGramsPerSecond",
|
|
960
|
+
"kiloGramsPerMinute",
|
|
961
|
+
"kiloGramsPerHour",
|
|
962
|
+
];
|
|
963
|
+
const sqUnits$3 = [
|
|
964
|
+
"gramsPerSecond2",
|
|
965
|
+
"gramsPerMinute2",
|
|
966
|
+
"gramsPerHour2",
|
|
967
|
+
"kiloGramsPerSecond2",
|
|
968
|
+
"kiloGramsPerMinute2",
|
|
969
|
+
"kiloGramsPerHour2",
|
|
970
|
+
];
|
|
971
|
+
|
|
972
|
+
const inletMassFlow = {
|
|
973
|
+
id: "inletMassFlow",
|
|
974
|
+
measure: "massFlow",
|
|
975
|
+
aggregate: "instant",
|
|
976
|
+
units: units$6,
|
|
977
|
+
};
|
|
978
|
+
const minInletMassFlow = {
|
|
979
|
+
id: "minInletMassFlow",
|
|
980
|
+
measure: "massFlow",
|
|
981
|
+
aggregate: "min",
|
|
982
|
+
units: units$6,
|
|
983
|
+
};
|
|
984
|
+
const maxInletMassFlow = {
|
|
985
|
+
id: "maxInletMassFlow",
|
|
986
|
+
measure: "massFlow",
|
|
987
|
+
aggregate: "max",
|
|
988
|
+
units: units$6,
|
|
989
|
+
};
|
|
990
|
+
const avgInletMassFlow = {
|
|
991
|
+
id: "avgInletMassFlow",
|
|
992
|
+
measure: "massFlow",
|
|
993
|
+
aggregate: "avg",
|
|
994
|
+
units: units$6,
|
|
995
|
+
};
|
|
996
|
+
const sumInletMassFlow = {
|
|
997
|
+
id: "sumInletMassFlow",
|
|
998
|
+
measure: "massFlow",
|
|
999
|
+
aggregate: "sum",
|
|
1000
|
+
units: units$6,
|
|
1001
|
+
};
|
|
1002
|
+
const cntInletMassFlow = {
|
|
1003
|
+
id: "cntInletMassFlow",
|
|
1004
|
+
measure: "massFlow",
|
|
1005
|
+
aggregate: "cnt",
|
|
1006
|
+
units: ["unitless"],
|
|
1007
|
+
};
|
|
1008
|
+
const ssqInletMassFlow = {
|
|
1009
|
+
id: "ssqInletMassFlow",
|
|
1010
|
+
measure: "massFlow",
|
|
1011
|
+
aggregate: "ssq",
|
|
1012
|
+
units: sqUnits$3,
|
|
1013
|
+
};
|
|
1014
|
+
|
|
1015
|
+
const outletMassFlow = {
|
|
1016
|
+
id: "outletMassFlow",
|
|
1017
|
+
measure: "massFlow",
|
|
1018
|
+
aggregate: "instant",
|
|
1019
|
+
units: units$6,
|
|
1020
|
+
};
|
|
1021
|
+
const minOutletMassFlow = {
|
|
1022
|
+
id: "minOutletMassFlow",
|
|
1023
|
+
measure: "massFlow",
|
|
1024
|
+
aggregate: "min",
|
|
1025
|
+
units: units$6,
|
|
1026
|
+
};
|
|
1027
|
+
const maxOutletMassFlow = {
|
|
1028
|
+
id: "maxOutletMassFlow",
|
|
1029
|
+
measure: "massFlow",
|
|
1030
|
+
aggregate: "max",
|
|
1031
|
+
units: units$6,
|
|
1032
|
+
};
|
|
1033
|
+
const avgOutletMassFlow = {
|
|
1034
|
+
id: "avgOutletMassFlow",
|
|
1035
|
+
measure: "massFlow",
|
|
1036
|
+
aggregate: "avg",
|
|
1037
|
+
units: units$6,
|
|
1038
|
+
};
|
|
1039
|
+
const sumOutletMassFlow = {
|
|
1040
|
+
id: "sumOutletMassFlow",
|
|
1041
|
+
measure: "massFlow",
|
|
1042
|
+
aggregate: "sum",
|
|
1043
|
+
units: units$6,
|
|
1044
|
+
};
|
|
1045
|
+
const cntOutletMassFlow = {
|
|
1046
|
+
id: "cntOutletMassFlow",
|
|
1047
|
+
measure: "massFlow",
|
|
1048
|
+
aggregate: "cnt",
|
|
1049
|
+
units: ["unitless"],
|
|
1050
|
+
};
|
|
1051
|
+
const ssqOutletMassFlow = {
|
|
1052
|
+
id: "ssqOutletMassFlow",
|
|
1053
|
+
measure: "massFlow",
|
|
1054
|
+
aggregate: "ssq",
|
|
1055
|
+
units: sqUnits$3,
|
|
1056
|
+
};
|
|
1057
|
+
|
|
1058
|
+
const massFlow = {
|
|
1059
|
+
id: "massFlow",
|
|
1060
|
+
measure: "massFlow",
|
|
1061
|
+
aggregate: "instant",
|
|
1062
|
+
units: units$6,
|
|
1063
|
+
};
|
|
1064
|
+
const minMassFlow = {
|
|
1065
|
+
id: "minMassFlow",
|
|
1066
|
+
measure: "massFlow",
|
|
1067
|
+
aggregate: "min",
|
|
1068
|
+
units: units$6,
|
|
1069
|
+
};
|
|
1070
|
+
const maxMassFlow = {
|
|
1071
|
+
id: "maxMassFlow",
|
|
1072
|
+
measure: "massFlow",
|
|
1073
|
+
aggregate: "max",
|
|
1074
|
+
units: units$6,
|
|
1075
|
+
};
|
|
1076
|
+
const avgMassFlow = {
|
|
1077
|
+
id: "avgMassFlow",
|
|
1078
|
+
measure: "massFlow",
|
|
1079
|
+
aggregate: "avg",
|
|
1080
|
+
units: units$6,
|
|
1081
|
+
};
|
|
1082
|
+
const sumMassFlow = {
|
|
1083
|
+
id: "sumMassFlow",
|
|
1084
|
+
measure: "massFlow",
|
|
1085
|
+
aggregate: "sum",
|
|
1086
|
+
units: units$6,
|
|
1087
|
+
};
|
|
1088
|
+
const cntMassFlow = {
|
|
1089
|
+
id: "cntMassFlow",
|
|
1090
|
+
measure: "massFlow",
|
|
1091
|
+
aggregate: "cnt",
|
|
1092
|
+
units: ["unitless"],
|
|
1093
|
+
};
|
|
1094
|
+
const ssqMassFlow = {
|
|
1095
|
+
id: "ssqMassFlow",
|
|
1096
|
+
measure: "massFlow",
|
|
1097
|
+
aggregate: "ssq",
|
|
1098
|
+
units: sqUnits$3,
|
|
1099
|
+
};
|
|
1100
|
+
|
|
1101
|
+
const units$5 = [
|
|
1102
|
+
"gram",
|
|
1103
|
+
"kiloGram",
|
|
1104
|
+
"tonne",
|
|
1105
|
+
"ounce",
|
|
1106
|
+
"pound",
|
|
1107
|
+
"ton",
|
|
1108
|
+
];
|
|
1109
|
+
|
|
1110
|
+
const inletMass = {
|
|
1111
|
+
id: "inletMass",
|
|
1112
|
+
measure: "mass",
|
|
1113
|
+
aggregate: "instant",
|
|
1114
|
+
units: units$5,
|
|
1115
|
+
};
|
|
1116
|
+
const diffInletMass = {
|
|
1117
|
+
id: "diffInletMass",
|
|
1118
|
+
measure: "mass",
|
|
1119
|
+
aggregate: "diff",
|
|
1120
|
+
units: units$5,
|
|
1121
|
+
};
|
|
1122
|
+
const cntInletMass = {
|
|
1123
|
+
id: "cntInletMass",
|
|
1124
|
+
measure: "mass",
|
|
1125
|
+
aggregate: "cnt",
|
|
1126
|
+
units: ["unitless"],
|
|
1127
|
+
};
|
|
1128
|
+
|
|
1129
|
+
const outletMass = {
|
|
1130
|
+
id: "outletMass",
|
|
1131
|
+
measure: "mass",
|
|
1132
|
+
aggregate: "instant",
|
|
1133
|
+
units: units$5,
|
|
1134
|
+
};
|
|
1135
|
+
const diffOutletMass = {
|
|
1136
|
+
id: "diffOutletMass",
|
|
1137
|
+
measure: "mass",
|
|
1138
|
+
aggregate: "diff",
|
|
1139
|
+
units: units$5,
|
|
1140
|
+
};
|
|
1141
|
+
const cntOutletMass = {
|
|
1142
|
+
id: "cntOutletMass",
|
|
1143
|
+
measure: "mass",
|
|
1144
|
+
aggregate: "cnt",
|
|
1145
|
+
units: ["unitless"],
|
|
1146
|
+
};
|
|
1147
|
+
|
|
1148
|
+
const mass = {
|
|
1149
|
+
id: "mass",
|
|
1150
|
+
measure: "mass",
|
|
1151
|
+
aggregate: "instant",
|
|
1152
|
+
units: units$5,
|
|
1153
|
+
};
|
|
1154
|
+
const diffMass = {
|
|
1155
|
+
id: "diffMass",
|
|
1156
|
+
measure: "mass",
|
|
1157
|
+
aggregate: "diff",
|
|
1158
|
+
units: units$5,
|
|
1159
|
+
};
|
|
1160
|
+
const cntMass = {
|
|
1161
|
+
id: "cntMass",
|
|
1162
|
+
measure: "mass",
|
|
1163
|
+
aggregate: "cnt",
|
|
1164
|
+
units: ["unitless"],
|
|
1165
|
+
};
|
|
1166
|
+
|
|
1167
|
+
const mBusFormatStringSignature = {
|
|
1168
|
+
id: "mBusFormatStringSignature",
|
|
1169
|
+
measure: "none",
|
|
1170
|
+
aggregate: "instant",
|
|
1171
|
+
units: ["unitless"],
|
|
1172
|
+
};
|
|
1173
|
+
|
|
1174
|
+
const none = {
|
|
1175
|
+
id: "none",
|
|
1176
|
+
measure: "none",
|
|
1177
|
+
aggregate: "instant",
|
|
1178
|
+
units: ["unitless"],
|
|
1179
|
+
};
|
|
1180
|
+
|
|
1181
|
+
const operatingTime = {
|
|
1182
|
+
id: "operatingTime",
|
|
1183
|
+
measure: "duration",
|
|
1184
|
+
aggregate: "instant",
|
|
1185
|
+
units: units$7,
|
|
1186
|
+
};
|
|
1187
|
+
const diffOperatingTime = {
|
|
1188
|
+
id: "diffOperatingTime",
|
|
1189
|
+
measure: "duration",
|
|
1190
|
+
aggregate: "diff",
|
|
1191
|
+
units: units$7,
|
|
1192
|
+
};
|
|
1193
|
+
const cntOperatingTime = {
|
|
1194
|
+
id: "cntOperatingTime",
|
|
1195
|
+
measure: "duration",
|
|
1196
|
+
aggregate: "cnt",
|
|
1197
|
+
units: ["unitless"],
|
|
1198
|
+
};
|
|
1199
|
+
|
|
1200
|
+
const place = {
|
|
1201
|
+
id: "place",
|
|
1202
|
+
measure: "none",
|
|
1203
|
+
aggregate: "instant",
|
|
1204
|
+
units: ["json"],
|
|
1205
|
+
immediate: true,
|
|
1206
|
+
};
|
|
1207
|
+
const lastPlace = {
|
|
1208
|
+
id: "lastPlace",
|
|
1209
|
+
measure: "none",
|
|
1210
|
+
aggregate: "instant",
|
|
1211
|
+
units: ["json"],
|
|
1212
|
+
immediate: true,
|
|
1213
|
+
};
|
|
1214
|
+
|
|
1215
|
+
const units$4 = [
|
|
1216
|
+
"milliWatt",
|
|
1217
|
+
"watt",
|
|
1218
|
+
"kiloWatt",
|
|
1219
|
+
"megaWatt",
|
|
1220
|
+
"gigaWatt",
|
|
1221
|
+
"joulesPerSecond",
|
|
1222
|
+
"joulesPerMinute",
|
|
1223
|
+
"joulesPerHour",
|
|
1224
|
+
];
|
|
1225
|
+
const sqUnits$2 = [
|
|
1226
|
+
"milliWatt2",
|
|
1227
|
+
"watt2",
|
|
1228
|
+
"kiloWatt2",
|
|
1229
|
+
"megaWatt2",
|
|
1230
|
+
"gigaWatt2",
|
|
1231
|
+
"joulesPerSecond2",
|
|
1232
|
+
"joulesPerMinute2",
|
|
1233
|
+
"joulesPerHour2",
|
|
1234
|
+
];
|
|
1235
|
+
|
|
1236
|
+
const inletPower = {
|
|
1237
|
+
id: "inletPower",
|
|
1238
|
+
measure: "power",
|
|
1239
|
+
aggregate: "instant",
|
|
1240
|
+
units: units$4,
|
|
1241
|
+
};
|
|
1242
|
+
const minInletPower = {
|
|
1243
|
+
id: "minInletPower",
|
|
1244
|
+
measure: "power",
|
|
1245
|
+
aggregate: "min",
|
|
1246
|
+
units: units$4,
|
|
1247
|
+
};
|
|
1248
|
+
const maxInletPower = {
|
|
1249
|
+
id: "maxInletPower",
|
|
1250
|
+
measure: "power",
|
|
1251
|
+
aggregate: "max",
|
|
1252
|
+
units: units$4,
|
|
1253
|
+
};
|
|
1254
|
+
const avgInletPower = {
|
|
1255
|
+
id: "avgInletPower",
|
|
1256
|
+
measure: "power",
|
|
1257
|
+
aggregate: "avg",
|
|
1258
|
+
units: units$4,
|
|
1259
|
+
};
|
|
1260
|
+
const sumInletPower = {
|
|
1261
|
+
id: "sumInletPower",
|
|
1262
|
+
measure: "power",
|
|
1263
|
+
aggregate: "sum",
|
|
1264
|
+
units: units$4,
|
|
1265
|
+
};
|
|
1266
|
+
const cntInletPower = {
|
|
1267
|
+
id: "cntInletPower",
|
|
1268
|
+
measure: "power",
|
|
1269
|
+
aggregate: "cnt",
|
|
1270
|
+
units: ["unitless"],
|
|
1271
|
+
};
|
|
1272
|
+
const ssqInletPower = {
|
|
1273
|
+
id: "ssqInletPower",
|
|
1274
|
+
measure: "power",
|
|
1275
|
+
aggregate: "ssq",
|
|
1276
|
+
units: sqUnits$2,
|
|
1277
|
+
};
|
|
1278
|
+
|
|
1279
|
+
const outletPower = {
|
|
1280
|
+
id: "outletPower",
|
|
1281
|
+
measure: "power",
|
|
1282
|
+
aggregate: "instant",
|
|
1283
|
+
units: units$4,
|
|
1284
|
+
};
|
|
1285
|
+
const minOutletPower = {
|
|
1286
|
+
id: "minOutletPower",
|
|
1287
|
+
measure: "power",
|
|
1288
|
+
aggregate: "min",
|
|
1289
|
+
units: units$4,
|
|
1290
|
+
};
|
|
1291
|
+
const maxOutletPower = {
|
|
1292
|
+
id: "maxOutletPower",
|
|
1293
|
+
measure: "power",
|
|
1294
|
+
aggregate: "max",
|
|
1295
|
+
units: units$4,
|
|
1296
|
+
};
|
|
1297
|
+
const avgOutletPower = {
|
|
1298
|
+
id: "avgOutletPower",
|
|
1299
|
+
measure: "power",
|
|
1300
|
+
aggregate: "avg",
|
|
1301
|
+
units: units$4,
|
|
1302
|
+
};
|
|
1303
|
+
const sumOutletPower = {
|
|
1304
|
+
id: "sumOutletPower",
|
|
1305
|
+
measure: "power",
|
|
1306
|
+
aggregate: "sum",
|
|
1307
|
+
units: units$4,
|
|
1308
|
+
};
|
|
1309
|
+
const cntOutletPower = {
|
|
1310
|
+
id: "cntOutletPower",
|
|
1311
|
+
measure: "power",
|
|
1312
|
+
aggregate: "cnt",
|
|
1313
|
+
units: ["unitless"],
|
|
1314
|
+
};
|
|
1315
|
+
const ssqOutletPower = {
|
|
1316
|
+
id: "ssqOutletPower",
|
|
1317
|
+
measure: "power",
|
|
1318
|
+
aggregate: "ssq",
|
|
1319
|
+
units: sqUnits$2,
|
|
1320
|
+
};
|
|
1321
|
+
|
|
1322
|
+
const power = {
|
|
1323
|
+
id: "power",
|
|
1324
|
+
measure: "power",
|
|
1325
|
+
aggregate: "instant",
|
|
1326
|
+
units: units$4,
|
|
1327
|
+
};
|
|
1328
|
+
const minPower = {
|
|
1329
|
+
id: "minPower",
|
|
1330
|
+
measure: "power",
|
|
1331
|
+
aggregate: "min",
|
|
1332
|
+
units: units$4,
|
|
1333
|
+
};
|
|
1334
|
+
const maxPower = {
|
|
1335
|
+
id: "maxPower",
|
|
1336
|
+
measure: "power",
|
|
1337
|
+
aggregate: "max",
|
|
1338
|
+
units: units$4,
|
|
1339
|
+
};
|
|
1340
|
+
const avgPower = {
|
|
1341
|
+
id: "avgPower",
|
|
1342
|
+
measure: "power",
|
|
1343
|
+
aggregate: "avg",
|
|
1344
|
+
units: units$4,
|
|
1345
|
+
};
|
|
1346
|
+
const sumPower = {
|
|
1347
|
+
id: "sumPower",
|
|
1348
|
+
measure: "power",
|
|
1349
|
+
aggregate: "sum",
|
|
1350
|
+
units: units$4,
|
|
1351
|
+
};
|
|
1352
|
+
const cntPower = {
|
|
1353
|
+
id: "cntPower",
|
|
1354
|
+
measure: "power",
|
|
1355
|
+
aggregate: "cnt",
|
|
1356
|
+
units: ["unitless"],
|
|
1357
|
+
};
|
|
1358
|
+
const ssqPower = {
|
|
1359
|
+
id: "ssqPower",
|
|
1360
|
+
measure: "power",
|
|
1361
|
+
aggregate: "ssq",
|
|
1362
|
+
units: sqUnits$2,
|
|
1363
|
+
};
|
|
1364
|
+
|
|
1365
|
+
const units$3 = ["bar", "pascal", "kiloPascal"];
|
|
1366
|
+
const sqUnits$1 = [
|
|
1367
|
+
"bar2",
|
|
1368
|
+
"pascal2",
|
|
1369
|
+
"kiloPascal2",
|
|
1370
|
+
];
|
|
1371
|
+
|
|
1372
|
+
const inletPressure = {
|
|
1373
|
+
id: "inletPressure",
|
|
1374
|
+
measure: "pressure",
|
|
1375
|
+
aggregate: "instant",
|
|
1376
|
+
units: units$3,
|
|
1377
|
+
};
|
|
1378
|
+
const minInletPressure = {
|
|
1379
|
+
id: "minInletPressure",
|
|
1380
|
+
measure: "pressure",
|
|
1381
|
+
aggregate: "min",
|
|
1382
|
+
units: units$3,
|
|
1383
|
+
};
|
|
1384
|
+
const maxInletPressure = {
|
|
1385
|
+
id: "maxInletPressure",
|
|
1386
|
+
measure: "pressure",
|
|
1387
|
+
aggregate: "max",
|
|
1388
|
+
units: units$3,
|
|
1389
|
+
};
|
|
1390
|
+
const avgInletPressure = {
|
|
1391
|
+
id: "avgInletPressure",
|
|
1392
|
+
measure: "pressure",
|
|
1393
|
+
aggregate: "avg",
|
|
1394
|
+
units: units$3,
|
|
1395
|
+
};
|
|
1396
|
+
const sumInletPressure = {
|
|
1397
|
+
id: "sumInletPressure",
|
|
1398
|
+
measure: "pressure",
|
|
1399
|
+
aggregate: "sum",
|
|
1400
|
+
units: units$3,
|
|
1401
|
+
};
|
|
1402
|
+
const cntInletPressure = {
|
|
1403
|
+
id: "cntInletPressure",
|
|
1404
|
+
measure: "pressure",
|
|
1405
|
+
aggregate: "cnt",
|
|
1406
|
+
units: ["unitless"],
|
|
1407
|
+
};
|
|
1408
|
+
const ssqInletPressure = {
|
|
1409
|
+
id: "ssqInletPressure",
|
|
1410
|
+
measure: "pressure",
|
|
1411
|
+
aggregate: "ssq",
|
|
1412
|
+
units: sqUnits$1,
|
|
1413
|
+
};
|
|
1414
|
+
|
|
1415
|
+
const outletPressure = {
|
|
1416
|
+
id: "outletPressure",
|
|
1417
|
+
measure: "pressure",
|
|
1418
|
+
aggregate: "instant",
|
|
1419
|
+
units: units$3,
|
|
1420
|
+
};
|
|
1421
|
+
const minOutletPressure = {
|
|
1422
|
+
id: "minOutletPressure",
|
|
1423
|
+
measure: "pressure",
|
|
1424
|
+
aggregate: "min",
|
|
1425
|
+
units: units$3,
|
|
1426
|
+
};
|
|
1427
|
+
const maxOutletPressure = {
|
|
1428
|
+
id: "maxOutletPressure",
|
|
1429
|
+
measure: "pressure",
|
|
1430
|
+
aggregate: "max",
|
|
1431
|
+
units: units$3,
|
|
1432
|
+
};
|
|
1433
|
+
const avgOutletPressure = {
|
|
1434
|
+
id: "avgOutletPressure",
|
|
1435
|
+
measure: "pressure",
|
|
1436
|
+
aggregate: "avg",
|
|
1437
|
+
units: units$3,
|
|
1438
|
+
};
|
|
1439
|
+
const sumOutletPressure = {
|
|
1440
|
+
id: "sumOutletPressure",
|
|
1441
|
+
measure: "pressure",
|
|
1442
|
+
aggregate: "sum",
|
|
1443
|
+
units: units$3,
|
|
1444
|
+
};
|
|
1445
|
+
const cntOutletPressure = {
|
|
1446
|
+
id: "cntOutletPressure",
|
|
1447
|
+
measure: "pressure",
|
|
1448
|
+
aggregate: "cnt",
|
|
1449
|
+
units: ["unitless"],
|
|
1450
|
+
};
|
|
1451
|
+
const ssqOutletPressure = {
|
|
1452
|
+
id: "ssqOutletPressure",
|
|
1453
|
+
measure: "pressure",
|
|
1454
|
+
aggregate: "ssq",
|
|
1455
|
+
units: sqUnits$1,
|
|
1456
|
+
};
|
|
1457
|
+
|
|
1458
|
+
const pressure = {
|
|
1459
|
+
id: "pressure",
|
|
1460
|
+
measure: "pressure",
|
|
1461
|
+
aggregate: "instant",
|
|
1462
|
+
units: units$3,
|
|
1463
|
+
};
|
|
1464
|
+
const minPressure = {
|
|
1465
|
+
id: "minPressure",
|
|
1466
|
+
measure: "pressure",
|
|
1467
|
+
aggregate: "min",
|
|
1468
|
+
units: units$3,
|
|
1469
|
+
};
|
|
1470
|
+
const maxPressure = {
|
|
1471
|
+
id: "maxPressure",
|
|
1472
|
+
measure: "pressure",
|
|
1473
|
+
aggregate: "max",
|
|
1474
|
+
units: units$3,
|
|
1475
|
+
};
|
|
1476
|
+
const avgPressure = {
|
|
1477
|
+
id: "avgPressure",
|
|
1478
|
+
measure: "pressure",
|
|
1479
|
+
aggregate: "avg",
|
|
1480
|
+
units: units$3,
|
|
1481
|
+
};
|
|
1482
|
+
const sumPressure = {
|
|
1483
|
+
id: "sumPressure",
|
|
1484
|
+
measure: "pressure",
|
|
1485
|
+
aggregate: "sum",
|
|
1486
|
+
units: units$3,
|
|
1487
|
+
};
|
|
1488
|
+
const cntPressure = {
|
|
1489
|
+
id: "cntPressure",
|
|
1490
|
+
measure: "pressure",
|
|
1491
|
+
aggregate: "cnt",
|
|
1492
|
+
units: ["unitless"],
|
|
1493
|
+
};
|
|
1494
|
+
const ssqPressure = {
|
|
1495
|
+
id: "ssqPressure",
|
|
1496
|
+
measure: "pressure",
|
|
1497
|
+
aggregate: "ssq",
|
|
1498
|
+
units: sqUnits$1,
|
|
1499
|
+
};
|
|
1500
|
+
|
|
1501
|
+
const radiatorTemperature = {
|
|
1502
|
+
id: "radiatorTemperature",
|
|
1503
|
+
measure: "temperature",
|
|
1504
|
+
aggregate: "instant",
|
|
1505
|
+
units: units$b,
|
|
1506
|
+
};
|
|
1507
|
+
const minRadiatorTemperature = {
|
|
1508
|
+
id: "minRadiatorTemperature",
|
|
1509
|
+
measure: "temperature",
|
|
1510
|
+
aggregate: "min",
|
|
1511
|
+
units: units$b,
|
|
1512
|
+
};
|
|
1513
|
+
const maxRadiatorTemperature = {
|
|
1514
|
+
id: "maxRadiatorTemperature",
|
|
1515
|
+
measure: "temperature",
|
|
1516
|
+
aggregate: "max",
|
|
1517
|
+
units: units$b,
|
|
1518
|
+
};
|
|
1519
|
+
const avgRadiatorTemperature = {
|
|
1520
|
+
id: "avgRadiatorTemperature",
|
|
1521
|
+
measure: "temperature",
|
|
1522
|
+
aggregate: "avg",
|
|
1523
|
+
units: units$b,
|
|
1524
|
+
};
|
|
1525
|
+
const sumRadiatorTemperature = {
|
|
1526
|
+
id: "sumRadiatorTemperature",
|
|
1527
|
+
measure: "temperature",
|
|
1528
|
+
aggregate: "sum",
|
|
1529
|
+
units: units$b,
|
|
1530
|
+
};
|
|
1531
|
+
const cntRadiatorTemperature = {
|
|
1532
|
+
id: "cntRadiatorTemperature",
|
|
1533
|
+
measure: "temperature",
|
|
1534
|
+
aggregate: "cnt",
|
|
1535
|
+
units: ["unitless"],
|
|
1536
|
+
};
|
|
1537
|
+
const ssqRadiatorTemperature = {
|
|
1538
|
+
id: "ssqRadiatorTemperature",
|
|
1539
|
+
measure: "temperature",
|
|
1540
|
+
aggregate: "ssq",
|
|
1541
|
+
units: sqUnits$4,
|
|
1542
|
+
};
|
|
1543
|
+
|
|
1544
|
+
const units$2 = [
|
|
1545
|
+
"varHour",
|
|
1546
|
+
"kiloVarHour",
|
|
1547
|
+
"megaVarHour",
|
|
1548
|
+
];
|
|
1549
|
+
|
|
1550
|
+
const reactiveEnergy = {
|
|
1551
|
+
id: "reactiveEnergy",
|
|
1552
|
+
measure: "reactiveEnergy",
|
|
1553
|
+
aggregate: "instant",
|
|
1554
|
+
units: units$2,
|
|
1555
|
+
};
|
|
1556
|
+
const diffReactiveEnergy = {
|
|
1557
|
+
id: "diffReactiveEnergy",
|
|
1558
|
+
measure: "reactiveEnergy",
|
|
1559
|
+
aggregate: "diff",
|
|
1560
|
+
units: units$2,
|
|
1561
|
+
};
|
|
1562
|
+
const cntReactiveEnergy = {
|
|
1563
|
+
id: "cntReactiveEnergy",
|
|
1564
|
+
measure: "reactiveEnergy",
|
|
1565
|
+
aggregate: "cnt",
|
|
1566
|
+
units: ["unitless"],
|
|
1567
|
+
};
|
|
1568
|
+
|
|
1569
|
+
const relativeHumidity = {
|
|
1570
|
+
id: "relativeHumidity",
|
|
1571
|
+
measure: "humidity",
|
|
1572
|
+
aggregate: "instant",
|
|
1573
|
+
units: ["percentage"],
|
|
1574
|
+
};
|
|
1575
|
+
|
|
1576
|
+
const remainingBatteryTime = {
|
|
1577
|
+
id: "remainingBatteryTime",
|
|
1578
|
+
measure: "duration",
|
|
1579
|
+
aggregate: "instant",
|
|
1580
|
+
units: units$7,
|
|
1581
|
+
};
|
|
1582
|
+
const diffRemainingBatteryTime = {
|
|
1583
|
+
id: "diffRemainingBatteryTime",
|
|
1584
|
+
measure: "duration",
|
|
1585
|
+
aggregate: "diff",
|
|
1586
|
+
units: units$7,
|
|
1587
|
+
};
|
|
1588
|
+
const cntRemainingBatteryTime = {
|
|
1589
|
+
id: "cntRemainingBatteryTime",
|
|
1590
|
+
measure: "duration",
|
|
1591
|
+
aggregate: "cnt",
|
|
1592
|
+
units: ["unitless"],
|
|
1593
|
+
};
|
|
1594
|
+
|
|
1595
|
+
const timeAtLastExactOverhearingArrived = {
|
|
1596
|
+
id: "timeAtLastExactOverhearingArrived",
|
|
1597
|
+
measure: "time",
|
|
1598
|
+
aggregate: "instant",
|
|
1599
|
+
units: units$8,
|
|
1600
|
+
immediate: true,
|
|
1601
|
+
};
|
|
1602
|
+
const timeSinceLastExactOverhearingArrived = {
|
|
1603
|
+
id: "timeSinceLastExactOverhearingArrived",
|
|
1604
|
+
measure: "duration",
|
|
1605
|
+
aggregate: "instant",
|
|
1606
|
+
units: units$7,
|
|
1607
|
+
immediate: true,
|
|
1608
|
+
};
|
|
1609
|
+
|
|
1610
|
+
const timeAtLastInstallationMounted = {
|
|
1611
|
+
id: "timeAtLastInstallationMounted",
|
|
1612
|
+
measure: "time",
|
|
1613
|
+
aggregate: "instant",
|
|
1614
|
+
units: units$8,
|
|
1615
|
+
immediate: true,
|
|
1616
|
+
};
|
|
1617
|
+
const timeSinceLastInstallationMounted = {
|
|
1618
|
+
id: "timeSinceLastInstallationMounted",
|
|
1619
|
+
measure: "duration",
|
|
1620
|
+
aggregate: "instant",
|
|
1621
|
+
units: units$7,
|
|
1622
|
+
immediate: true,
|
|
1623
|
+
};
|
|
1624
|
+
|
|
1625
|
+
const timeAtLastPossibleCandidateOverhearingArrived = {
|
|
1626
|
+
id: "timeAtLastPossibleCandidateOverhearingArrived",
|
|
1627
|
+
measure: "time",
|
|
1628
|
+
aggregate: "instant",
|
|
1629
|
+
units: units$8,
|
|
1630
|
+
immediate: true,
|
|
1631
|
+
};
|
|
1632
|
+
const timeSinceLastPossibleCandidateOverhearingArrived = {
|
|
1633
|
+
id: "timeSinceLastPossibleCandidateOverhearingArrived",
|
|
1634
|
+
measure: "duration",
|
|
1635
|
+
aggregate: "instant",
|
|
1636
|
+
units: units$7,
|
|
1637
|
+
immediate: true,
|
|
1638
|
+
};
|
|
1639
|
+
|
|
1640
|
+
const timeAtLastSampled = {
|
|
1641
|
+
id: "timeAtLastSampled",
|
|
1642
|
+
measure: "time",
|
|
1643
|
+
aggregate: "instant",
|
|
1644
|
+
units: units$8,
|
|
1645
|
+
immediate: true,
|
|
1646
|
+
};
|
|
1647
|
+
const timeSinceLastSampled = {
|
|
1648
|
+
id: "timeSinceLastSampled",
|
|
1649
|
+
measure: "duration",
|
|
1650
|
+
aggregate: "instant",
|
|
1651
|
+
units: units$7,
|
|
1652
|
+
immediate: true,
|
|
1653
|
+
};
|
|
1654
|
+
|
|
1655
|
+
const basetime = {
|
|
1656
|
+
id: "basetime",
|
|
1657
|
+
measure: "time",
|
|
1658
|
+
aggregate: "instant",
|
|
1659
|
+
units: units$8,
|
|
1660
|
+
immediate: true,
|
|
1661
|
+
};
|
|
1662
|
+
const instantTime = {
|
|
1663
|
+
id: "instantTime",
|
|
1664
|
+
measure: "time",
|
|
1665
|
+
aggregate: "instant",
|
|
1666
|
+
units: units$8,
|
|
1667
|
+
};
|
|
1668
|
+
const periodStartTime = {
|
|
1669
|
+
id: "periodStartTime",
|
|
1670
|
+
measure: "time",
|
|
1671
|
+
aggregate: "instant",
|
|
1672
|
+
units: units$8,
|
|
1673
|
+
};
|
|
1674
|
+
const periodEndTime = {
|
|
1675
|
+
id: "periodEndTime",
|
|
1676
|
+
measure: "time",
|
|
1677
|
+
aggregate: "instant",
|
|
1678
|
+
units: units$8,
|
|
1679
|
+
};
|
|
1680
|
+
const instantOrPeriodStartTime = {
|
|
1681
|
+
id: "instantOrPeriodStartTime",
|
|
1682
|
+
measure: "time",
|
|
1683
|
+
aggregate: "instant",
|
|
1684
|
+
units: units$8,
|
|
1685
|
+
};
|
|
1686
|
+
const instantOrPeriodEndTime = {
|
|
1687
|
+
id: "instantOrPeriodEndTime",
|
|
1688
|
+
measure: "time",
|
|
1689
|
+
aggregate: "instant",
|
|
1690
|
+
units: units$8,
|
|
1691
|
+
};
|
|
1692
|
+
|
|
1693
|
+
const units$1 = [
|
|
1694
|
+
"litersPerSecond",
|
|
1695
|
+
"litersPerMinute",
|
|
1696
|
+
"litersPerHour",
|
|
1697
|
+
"cubicMetersPerSecond",
|
|
1698
|
+
"cubicMetersPerMinute",
|
|
1699
|
+
"cubicMetersPerHour",
|
|
1700
|
+
"gallonsPerSecond",
|
|
1701
|
+
"gallonsPerMinute",
|
|
1702
|
+
"gallonsPerHour",
|
|
1703
|
+
];
|
|
1704
|
+
const sqUnits = [
|
|
1705
|
+
"litersPerSecond2",
|
|
1706
|
+
"litersPerMinute2",
|
|
1707
|
+
"litersPerHour2",
|
|
1708
|
+
"cubicMetersPerSecond2",
|
|
1709
|
+
"cubicMetersPerMinute2",
|
|
1710
|
+
"cubicMetersPerHour2",
|
|
1711
|
+
"gallonsPerSecond2",
|
|
1712
|
+
"gallonsPerMinute2",
|
|
1713
|
+
"gallonsPerHour2",
|
|
1714
|
+
];
|
|
1715
|
+
|
|
1716
|
+
const inletVolumeFlow = {
|
|
1717
|
+
id: "inletVolumeFlow",
|
|
1718
|
+
measure: "volumeFlow",
|
|
1719
|
+
aggregate: "instant",
|
|
1720
|
+
units: units$1,
|
|
1721
|
+
};
|
|
1722
|
+
const minInletVolumeFlow = {
|
|
1723
|
+
id: "minInletVolumeFlow",
|
|
1724
|
+
measure: "volumeFlow",
|
|
1725
|
+
aggregate: "min",
|
|
1726
|
+
units: units$1,
|
|
1727
|
+
};
|
|
1728
|
+
const maxInletVolumeFlow = {
|
|
1729
|
+
id: "maxInletVolumeFlow",
|
|
1730
|
+
measure: "volumeFlow",
|
|
1731
|
+
aggregate: "max",
|
|
1732
|
+
units: units$1,
|
|
1733
|
+
};
|
|
1734
|
+
const avgInletVolumeFlow = {
|
|
1735
|
+
id: "avgInletVolumeFlow",
|
|
1736
|
+
measure: "volumeFlow",
|
|
1737
|
+
aggregate: "avg",
|
|
1738
|
+
units: units$1,
|
|
1739
|
+
};
|
|
1740
|
+
const sumInletVolumeFlow = {
|
|
1741
|
+
id: "sumInletVolumeFlow",
|
|
1742
|
+
measure: "volumeFlow",
|
|
1743
|
+
aggregate: "sum",
|
|
1744
|
+
units: units$1,
|
|
1745
|
+
};
|
|
1746
|
+
const cntInletVolumeFlow = {
|
|
1747
|
+
id: "cntInletVolumeFlow",
|
|
1748
|
+
measure: "volumeFlow",
|
|
1749
|
+
aggregate: "cnt",
|
|
1750
|
+
units: ["unitless"],
|
|
1751
|
+
};
|
|
1752
|
+
const ssqInletVolumeFlow = {
|
|
1753
|
+
id: "ssqInletVolumeFlow",
|
|
1754
|
+
measure: "volumeFlow",
|
|
1755
|
+
aggregate: "ssq",
|
|
1756
|
+
units: sqUnits,
|
|
1757
|
+
};
|
|
1758
|
+
|
|
1759
|
+
const outletVolumeFlow = {
|
|
1760
|
+
id: "outletVolumeFlow",
|
|
1761
|
+
measure: "volumeFlow",
|
|
1762
|
+
aggregate: "instant",
|
|
1763
|
+
units: units$1,
|
|
1764
|
+
};
|
|
1765
|
+
const minOutletVolumeFlow = {
|
|
1766
|
+
id: "minOutletVolumeFlow",
|
|
1767
|
+
measure: "volumeFlow",
|
|
1768
|
+
aggregate: "min",
|
|
1769
|
+
units: units$1,
|
|
1770
|
+
};
|
|
1771
|
+
const maxOutletVolumeFlow = {
|
|
1772
|
+
id: "maxOutletVolumeFlow",
|
|
1773
|
+
measure: "volumeFlow",
|
|
1774
|
+
aggregate: "max",
|
|
1775
|
+
units: units$1,
|
|
1776
|
+
};
|
|
1777
|
+
const avgOutletVolumeFlow = {
|
|
1778
|
+
id: "avgOutletVolumeFlow",
|
|
1779
|
+
measure: "volumeFlow",
|
|
1780
|
+
aggregate: "avg",
|
|
1781
|
+
units: units$1,
|
|
1782
|
+
};
|
|
1783
|
+
const sumOutletVolumeFlow = {
|
|
1784
|
+
id: "sumOutletVolumeFlow",
|
|
1785
|
+
measure: "volumeFlow",
|
|
1786
|
+
aggregate: "sum",
|
|
1787
|
+
units: units$1,
|
|
1788
|
+
};
|
|
1789
|
+
const cntOutletVolumeFlow = {
|
|
1790
|
+
id: "cntOutletVolumeFlow",
|
|
1791
|
+
measure: "volumeFlow",
|
|
1792
|
+
aggregate: "cnt",
|
|
1793
|
+
units: ["unitless"],
|
|
1794
|
+
};
|
|
1795
|
+
const ssqOutletVolumeFlow = {
|
|
1796
|
+
id: "ssqOutletVolumeFlow",
|
|
1797
|
+
measure: "volumeFlow",
|
|
1798
|
+
aggregate: "ssq",
|
|
1799
|
+
units: sqUnits,
|
|
1800
|
+
};
|
|
1801
|
+
|
|
1802
|
+
const volumeFlow = {
|
|
1803
|
+
id: "volumeFlow",
|
|
1804
|
+
measure: "volumeFlow",
|
|
1805
|
+
aggregate: "instant",
|
|
1806
|
+
units: units$1,
|
|
1807
|
+
};
|
|
1808
|
+
const minVolumeFlow = {
|
|
1809
|
+
id: "minVolumeFlow",
|
|
1810
|
+
measure: "volumeFlow",
|
|
1811
|
+
aggregate: "min",
|
|
1812
|
+
units: units$1,
|
|
1813
|
+
};
|
|
1814
|
+
const maxVolumeFlow = {
|
|
1815
|
+
id: "maxVolumeFlow",
|
|
1816
|
+
measure: "volumeFlow",
|
|
1817
|
+
aggregate: "max",
|
|
1818
|
+
units: units$1,
|
|
1819
|
+
};
|
|
1820
|
+
const avgVolumeFlow = {
|
|
1821
|
+
id: "avgVolumeFlow",
|
|
1822
|
+
measure: "volumeFlow",
|
|
1823
|
+
aggregate: "avg",
|
|
1824
|
+
units: units$1,
|
|
1825
|
+
};
|
|
1826
|
+
const sumVolumeFlow = {
|
|
1827
|
+
id: "sumVolumeFlow",
|
|
1828
|
+
measure: "volumeFlow",
|
|
1829
|
+
aggregate: "sum",
|
|
1830
|
+
units: units$1,
|
|
1831
|
+
};
|
|
1832
|
+
const cntVolumeFlow = {
|
|
1833
|
+
id: "cntVolumeFlow",
|
|
1834
|
+
measure: "volumeFlow",
|
|
1835
|
+
aggregate: "cnt",
|
|
1836
|
+
units: ["unitless"],
|
|
1837
|
+
};
|
|
1838
|
+
const ssqVolumeFlow = {
|
|
1839
|
+
id: "ssqVolumeFlow",
|
|
1840
|
+
measure: "volumeFlow",
|
|
1841
|
+
aggregate: "ssq",
|
|
1842
|
+
units: sqUnits,
|
|
1843
|
+
};
|
|
1844
|
+
|
|
1845
|
+
const units = ["liter", "cubicMeter", "gallon"];
|
|
1846
|
+
|
|
1847
|
+
const inletVolume = {
|
|
1848
|
+
id: "inletVolume",
|
|
1849
|
+
measure: "volume",
|
|
1850
|
+
aggregate: "instant",
|
|
1851
|
+
units,
|
|
1852
|
+
};
|
|
1853
|
+
const diffInletVolume = {
|
|
1854
|
+
id: "diffInletVolume",
|
|
1855
|
+
measure: "volume",
|
|
1856
|
+
aggregate: "diff",
|
|
1857
|
+
units,
|
|
1858
|
+
};
|
|
1859
|
+
const cntInletVolume = {
|
|
1860
|
+
id: "cntInletVolume",
|
|
1861
|
+
measure: "volume",
|
|
1862
|
+
aggregate: "cnt",
|
|
1863
|
+
units: ["unitless"],
|
|
1864
|
+
};
|
|
1865
|
+
|
|
1866
|
+
const outletVolume = {
|
|
1867
|
+
id: "outletVolume",
|
|
1868
|
+
measure: "volume",
|
|
1869
|
+
aggregate: "instant",
|
|
1870
|
+
units,
|
|
1871
|
+
};
|
|
1872
|
+
const diffOutletVolume = {
|
|
1873
|
+
id: "diffOutletVolume",
|
|
1874
|
+
measure: "volume",
|
|
1875
|
+
aggregate: "diff",
|
|
1876
|
+
units,
|
|
1877
|
+
};
|
|
1878
|
+
const cntOutletVolume = {
|
|
1879
|
+
id: "cntOutletVolume",
|
|
1880
|
+
measure: "volume",
|
|
1881
|
+
aggregate: "cnt",
|
|
1882
|
+
units: ["unitless"],
|
|
1883
|
+
};
|
|
1884
|
+
|
|
1885
|
+
const pulseInputAVolume = {
|
|
1886
|
+
id: "pulseInputAVolume",
|
|
1887
|
+
measure: "volume",
|
|
1888
|
+
aggregate: "instant",
|
|
1889
|
+
units,
|
|
1890
|
+
};
|
|
1891
|
+
const diffPulseInputAVolume = {
|
|
1892
|
+
id: "diffPulseInputAVolume",
|
|
1893
|
+
measure: "volume",
|
|
1894
|
+
aggregate: "diff",
|
|
1895
|
+
units,
|
|
1896
|
+
};
|
|
1897
|
+
const cntPulseInputAVolume = {
|
|
1898
|
+
id: "cntPulseInputAVolume",
|
|
1899
|
+
measure: "volume",
|
|
1900
|
+
aggregate: "cnt",
|
|
1901
|
+
units: ["unitless"],
|
|
1902
|
+
};
|
|
1903
|
+
|
|
1904
|
+
const pulseInputBVolume = {
|
|
1905
|
+
id: "pulseInputBVolume",
|
|
1906
|
+
measure: "volume",
|
|
1907
|
+
aggregate: "instant",
|
|
1908
|
+
units,
|
|
1909
|
+
};
|
|
1910
|
+
const diffPulseInputBVolume = {
|
|
1911
|
+
id: "diffPulseInputBVolume",
|
|
1912
|
+
measure: "volume",
|
|
1913
|
+
aggregate: "diff",
|
|
1914
|
+
units,
|
|
1915
|
+
};
|
|
1916
|
+
const cntPulseInputBVolume = {
|
|
1917
|
+
id: "cntPulseInputBVolume",
|
|
1918
|
+
measure: "volume",
|
|
1919
|
+
aggregate: "cnt",
|
|
1920
|
+
units: ["unitless"],
|
|
1921
|
+
};
|
|
1922
|
+
|
|
1923
|
+
const volume = {
|
|
1924
|
+
id: "volume",
|
|
1925
|
+
measure: "volume",
|
|
1926
|
+
aggregate: "instant",
|
|
1927
|
+
units,
|
|
1928
|
+
};
|
|
1929
|
+
const diffVolume = {
|
|
1930
|
+
id: "diffVolume",
|
|
1931
|
+
measure: "volume",
|
|
1932
|
+
aggregate: "diff",
|
|
1933
|
+
units,
|
|
1934
|
+
};
|
|
1935
|
+
const cntVolume = {
|
|
1936
|
+
id: "cntVolume",
|
|
1937
|
+
measure: "volume",
|
|
1938
|
+
aggregate: "cnt",
|
|
1939
|
+
units: ["unitless"],
|
|
1940
|
+
};
|
|
1941
|
+
|
|
1942
|
+
var Registers = /*#__PURE__*/Object.freeze({
|
|
1943
|
+
__proto__: null,
|
|
1944
|
+
acousticNoise: acousticNoise,
|
|
1945
|
+
ambientTemperature: ambientTemperature,
|
|
1946
|
+
auxFlowTemperature: auxFlowTemperature,
|
|
1947
|
+
avgAcousticNoise: avgAcousticNoise,
|
|
1948
|
+
avgAmbientTemperature: avgAmbientTemperature,
|
|
1949
|
+
avgAuxFlowTemperature: avgAuxFlowTemperature,
|
|
1950
|
+
avgFlowTemperature: avgFlowTemperature,
|
|
1951
|
+
avgInletFlowTemperature: avgInletFlowTemperature,
|
|
1952
|
+
avgInletMassFlow: avgInletMassFlow,
|
|
1953
|
+
avgInletMinusOutletFlowTemperatureDifference: avgInletMinusOutletFlowTemperatureDifference,
|
|
1954
|
+
avgInletPower: avgInletPower,
|
|
1955
|
+
avgInletPressure: avgInletPressure,
|
|
1956
|
+
avgInletVolumeFlow: avgInletVolumeFlow,
|
|
1957
|
+
avgMassFlow: avgMassFlow,
|
|
1958
|
+
avgOutletFlowTemperature: avgOutletFlowTemperature,
|
|
1959
|
+
avgOutletMassFlow: avgOutletMassFlow,
|
|
1960
|
+
avgOutletMinusInletFlowTemperatureDifference: avgOutletMinusInletFlowTemperatureDifference,
|
|
1961
|
+
avgOutletPower: avgOutletPower,
|
|
1962
|
+
avgOutletPressure: avgOutletPressure,
|
|
1963
|
+
avgOutletVolumeFlow: avgOutletVolumeFlow,
|
|
1964
|
+
avgPower: avgPower,
|
|
1965
|
+
avgPressure: avgPressure,
|
|
1966
|
+
avgRadiatorTemperature: avgRadiatorTemperature,
|
|
1967
|
+
avgVolumeFlow: avgVolumeFlow,
|
|
1968
|
+
axiomaInfocode: axiomaInfocode,
|
|
1969
|
+
axiomaInfocodeType1: axiomaInfocodeType1,
|
|
1970
|
+
basetime: basetime,
|
|
1971
|
+
cntAcousticNoise: cntAcousticNoise,
|
|
1972
|
+
cntAmbientTemperature: cntAmbientTemperature,
|
|
1973
|
+
cntAuxFlowTemperature: cntAuxFlowTemperature,
|
|
1974
|
+
cntCoolingEnergy: cntCoolingEnergy,
|
|
1975
|
+
cntCoolingEnergyVolumeInInlet: cntCoolingEnergyVolumeInInlet,
|
|
1976
|
+
cntCoolingEnergyVolumeInOutlet: cntCoolingEnergyVolumeInOutlet,
|
|
1977
|
+
cntElectricalEnergy: cntElectricalEnergy,
|
|
1978
|
+
cntErrorOperatingTime: cntErrorOperatingTime,
|
|
1979
|
+
cntFlowTemperature: cntFlowTemperature,
|
|
1980
|
+
cntHeatEnergy: cntHeatEnergy,
|
|
1981
|
+
cntHeatEnergyTariff1: cntHeatEnergyTariff1,
|
|
1982
|
+
cntHeatEnergyTariff1VolumeInInlet: cntHeatEnergyTariff1VolumeInInlet,
|
|
1983
|
+
cntHeatEnergyTariff1VolumeInOutlet: cntHeatEnergyTariff1VolumeInOutlet,
|
|
1984
|
+
cntHeatEnergyTariff2: cntHeatEnergyTariff2,
|
|
1985
|
+
cntHeatEnergyTariff2VolumeInInlet: cntHeatEnergyTariff2VolumeInInlet,
|
|
1986
|
+
cntHeatEnergyTariff2VolumeInOutlet: cntHeatEnergyTariff2VolumeInOutlet,
|
|
1987
|
+
cntHeatEnergyVolumeInInlet: cntHeatEnergyVolumeInInlet,
|
|
1988
|
+
cntHeatEnergyVolumeInOutlet: cntHeatEnergyVolumeInOutlet,
|
|
1989
|
+
cntInletFlowTemperature: cntInletFlowTemperature,
|
|
1990
|
+
cntInletMass: cntInletMass,
|
|
1991
|
+
cntInletMassFlow: cntInletMassFlow,
|
|
1992
|
+
cntInletMinusOutletFlowTemperatureDifference: cntInletMinusOutletFlowTemperatureDifference,
|
|
1993
|
+
cntInletPower: cntInletPower,
|
|
1994
|
+
cntInletPressure: cntInletPressure,
|
|
1995
|
+
cntInletVolume: cntInletVolume,
|
|
1996
|
+
cntInletVolumeFlow: cntInletVolumeFlow,
|
|
1997
|
+
cntKamstrupE8Inlet: cntKamstrupE8Inlet,
|
|
1998
|
+
cntKamstrupE9Outlet: cntKamstrupE9Outlet,
|
|
1999
|
+
cntMass: cntMass,
|
|
2000
|
+
cntMassFlow: cntMassFlow,
|
|
2001
|
+
cntOperatingTime: cntOperatingTime,
|
|
2002
|
+
cntOutletFlowTemperature: cntOutletFlowTemperature,
|
|
2003
|
+
cntOutletMass: cntOutletMass,
|
|
2004
|
+
cntOutletMassFlow: cntOutletMassFlow,
|
|
2005
|
+
cntOutletMinusInletFlowTemperatureDifference: cntOutletMinusInletFlowTemperatureDifference,
|
|
2006
|
+
cntOutletPower: cntOutletPower,
|
|
2007
|
+
cntOutletPressure: cntOutletPressure,
|
|
2008
|
+
cntOutletVolume: cntOutletVolume,
|
|
2009
|
+
cntOutletVolumeFlow: cntOutletVolumeFlow,
|
|
2010
|
+
cntPower: cntPower,
|
|
2011
|
+
cntPressure: cntPressure,
|
|
2012
|
+
cntPulseInputAVolume: cntPulseInputAVolume,
|
|
2013
|
+
cntPulseInputBVolume: cntPulseInputBVolume,
|
|
2014
|
+
cntRadiatorTemperature: cntRadiatorTemperature,
|
|
2015
|
+
cntReactiveEnergy: cntReactiveEnergy,
|
|
2016
|
+
cntRemainingBatteryTime: cntRemainingBatteryTime,
|
|
2017
|
+
cntVolume: cntVolume,
|
|
2018
|
+
cntVolumeFlow: cntVolumeFlow,
|
|
2019
|
+
consumer: consumer,
|
|
2020
|
+
coolingEnergy: coolingEnergy,
|
|
2021
|
+
coolingEnergyVolumeInInlet: coolingEnergyVolumeInInlet,
|
|
2022
|
+
coolingEnergyVolumeInOutlet: coolingEnergyVolumeInOutlet,
|
|
2023
|
+
device: device,
|
|
2024
|
+
deviceDate: deviceDate,
|
|
2025
|
+
deviceDateTime: deviceDateTime,
|
|
2026
|
+
deviceNominalDiameter: deviceNominalDiameter,
|
|
2027
|
+
devicePermanentVolumeFlow: devicePermanentVolumeFlow,
|
|
2028
|
+
deviceRegisters: deviceRegisters,
|
|
2029
|
+
deviceSamplesOnLastMount: deviceSamplesOnLastMount,
|
|
2030
|
+
deviceSamplesOnLastUnmount: deviceSamplesOnLastUnmount,
|
|
2031
|
+
deviceSoftwareVersion: deviceSoftwareVersion,
|
|
2032
|
+
deviceTime: deviceTime,
|
|
2033
|
+
diehlInfocode: diehlInfocode,
|
|
2034
|
+
diehlInfocodeType1: diehlInfocodeType1,
|
|
2035
|
+
diehlInfocodeType2: diehlInfocodeType2,
|
|
2036
|
+
diehlInfocodeType3: diehlInfocodeType3,
|
|
2037
|
+
diehlInfocodeType4: diehlInfocodeType4,
|
|
2038
|
+
diehlInfocodeType5: diehlInfocodeType5,
|
|
2039
|
+
diffCoolingEnergy: diffCoolingEnergy,
|
|
2040
|
+
diffCoolingEnergyVolumeInInlet: diffCoolingEnergyVolumeInInlet,
|
|
2041
|
+
diffCoolingEnergyVolumeInOutlet: diffCoolingEnergyVolumeInOutlet,
|
|
2042
|
+
diffElectricalEnergy: diffElectricalEnergy,
|
|
2043
|
+
diffErrorOperatingTime: diffErrorOperatingTime,
|
|
2044
|
+
diffHeatEnergy: diffHeatEnergy,
|
|
2045
|
+
diffHeatEnergyTariff1: diffHeatEnergyTariff1,
|
|
2046
|
+
diffHeatEnergyTariff1VolumeInInlet: diffHeatEnergyTariff1VolumeInInlet,
|
|
2047
|
+
diffHeatEnergyTariff1VolumeInOutlet: diffHeatEnergyTariff1VolumeInOutlet,
|
|
2048
|
+
diffHeatEnergyTariff2: diffHeatEnergyTariff2,
|
|
2049
|
+
diffHeatEnergyTariff2VolumeInInlet: diffHeatEnergyTariff2VolumeInInlet,
|
|
2050
|
+
diffHeatEnergyTariff2VolumeInOutlet: diffHeatEnergyTariff2VolumeInOutlet,
|
|
2051
|
+
diffHeatEnergyVolumeInInlet: diffHeatEnergyVolumeInInlet,
|
|
2052
|
+
diffHeatEnergyVolumeInOutlet: diffHeatEnergyVolumeInOutlet,
|
|
2053
|
+
diffInletMass: diffInletMass,
|
|
2054
|
+
diffInletVolume: diffInletVolume,
|
|
2055
|
+
diffKamstrupE8Inlet: diffKamstrupE8Inlet,
|
|
2056
|
+
diffKamstrupE9Outlet: diffKamstrupE9Outlet,
|
|
2057
|
+
diffMass: diffMass,
|
|
2058
|
+
diffOperatingTime: diffOperatingTime,
|
|
2059
|
+
diffOutletMass: diffOutletMass,
|
|
2060
|
+
diffOutletVolume: diffOutletVolume,
|
|
2061
|
+
diffPulseInputAVolume: diffPulseInputAVolume,
|
|
2062
|
+
diffPulseInputBVolume: diffPulseInputBVolume,
|
|
2063
|
+
diffReactiveEnergy: diffReactiveEnergy,
|
|
2064
|
+
diffRemainingBatteryTime: diffRemainingBatteryTime,
|
|
2065
|
+
diffVolume: diffVolume,
|
|
2066
|
+
electricalEnergy: electricalEnergy,
|
|
2067
|
+
errorOperatingTime: errorOperatingTime,
|
|
2068
|
+
flowTemperature: flowTemperature,
|
|
2069
|
+
heatEnergy: heatEnergy,
|
|
2070
|
+
heatEnergyTariff1: heatEnergyTariff1,
|
|
2071
|
+
heatEnergyTariff1VolumeInInlet: heatEnergyTariff1VolumeInInlet,
|
|
2072
|
+
heatEnergyTariff1VolumeInOutlet: heatEnergyTariff1VolumeInOutlet,
|
|
2073
|
+
heatEnergyTariff2: heatEnergyTariff2,
|
|
2074
|
+
heatEnergyTariff2VolumeInInlet: heatEnergyTariff2VolumeInInlet,
|
|
2075
|
+
heatEnergyTariff2VolumeInOutlet: heatEnergyTariff2VolumeInOutlet,
|
|
2076
|
+
heatEnergyVolumeInInlet: heatEnergyVolumeInInlet,
|
|
2077
|
+
heatEnergyVolumeInOutlet: heatEnergyVolumeInOutlet,
|
|
2078
|
+
infocode: infocode,
|
|
2079
|
+
inletFlowTemperature: inletFlowTemperature,
|
|
2080
|
+
inletMass: inletMass,
|
|
2081
|
+
inletMassFlow: inletMassFlow,
|
|
2082
|
+
inletMinusOutletFlowTemperatureDifference: inletMinusOutletFlowTemperatureDifference,
|
|
2083
|
+
inletPower: inletPower,
|
|
2084
|
+
inletPressure: inletPressure,
|
|
2085
|
+
inletVolume: inletVolume,
|
|
2086
|
+
inletVolumeFlow: inletVolumeFlow,
|
|
2087
|
+
instantOrPeriodEndTime: instantOrPeriodEndTime,
|
|
2088
|
+
instantOrPeriodStartTime: instantOrPeriodStartTime,
|
|
2089
|
+
instantTime: instantTime,
|
|
2090
|
+
kamdraftDeviceAddresses: kamdraftDeviceAddresses,
|
|
2091
|
+
kamstrupE8Inlet: kamstrupE8Inlet,
|
|
2092
|
+
kamstrupE9Outlet: kamstrupE9Outlet,
|
|
2093
|
+
kamstrupModuleType: kamstrupModuleType,
|
|
2094
|
+
kamstrupMulticalInfocode: kamstrupMulticalInfocode,
|
|
2095
|
+
kamstrupMulticalInfocodeType1: kamstrupMulticalInfocodeType1,
|
|
2096
|
+
kamstrupMulticalInfocodeType2: kamstrupMulticalInfocodeType2,
|
|
2097
|
+
kamstrupMulticalInfocodeType3: kamstrupMulticalInfocodeType3,
|
|
2098
|
+
kamstrupMulticalInfocodeType4: kamstrupMulticalInfocodeType4,
|
|
2099
|
+
kamstrupMulticalInfocodeType5: kamstrupMulticalInfocodeType5,
|
|
2100
|
+
kamstrupMulticalInfocodeType6: kamstrupMulticalInfocodeType6,
|
|
2101
|
+
kamstrupMulticalInfocodeType7: kamstrupMulticalInfocodeType7,
|
|
2102
|
+
landisGyrInfocode: landisGyrInfocode,
|
|
2103
|
+
landisGyrInfocodeType1: landisGyrInfocodeType1,
|
|
2104
|
+
landisGyrInfocodeType2: landisGyrInfocodeType2,
|
|
2105
|
+
landisGyrMBusStatus: landisGyrMBusStatus,
|
|
2106
|
+
landisGyrMBusStatusType1: landisGyrMBusStatusType1,
|
|
2107
|
+
landisGyrMBusStatusType2: landisGyrMBusStatusType2,
|
|
2108
|
+
lastPlace: lastPlace,
|
|
2109
|
+
legacyDeviceSamples: legacyDeviceSamples,
|
|
2110
|
+
mBusFormatStringSignature: mBusFormatStringSignature,
|
|
2111
|
+
mass: mass,
|
|
2112
|
+
massFlow: massFlow,
|
|
2113
|
+
maxAcousticNoise: maxAcousticNoise,
|
|
2114
|
+
maxAmbientTemperature: maxAmbientTemperature,
|
|
2115
|
+
maxAuxFlowTemperature: maxAuxFlowTemperature,
|
|
2116
|
+
maxFlowTemperature: maxFlowTemperature,
|
|
2117
|
+
maxInletFlowTemperature: maxInletFlowTemperature,
|
|
2118
|
+
maxInletMassFlow: maxInletMassFlow,
|
|
2119
|
+
maxInletMinusOutletFlowTemperatureDifference: maxInletMinusOutletFlowTemperatureDifference,
|
|
2120
|
+
maxInletPower: maxInletPower,
|
|
2121
|
+
maxInletPressure: maxInletPressure,
|
|
2122
|
+
maxInletVolumeFlow: maxInletVolumeFlow,
|
|
2123
|
+
maxMassFlow: maxMassFlow,
|
|
2124
|
+
maxOutletFlowTemperature: maxOutletFlowTemperature,
|
|
2125
|
+
maxOutletMassFlow: maxOutletMassFlow,
|
|
2126
|
+
maxOutletMinusInletFlowTemperatureDifference: maxOutletMinusInletFlowTemperatureDifference,
|
|
2127
|
+
maxOutletPower: maxOutletPower,
|
|
2128
|
+
maxOutletPressure: maxOutletPressure,
|
|
2129
|
+
maxOutletVolumeFlow: maxOutletVolumeFlow,
|
|
2130
|
+
maxPower: maxPower,
|
|
2131
|
+
maxPressure: maxPressure,
|
|
2132
|
+
maxRadiatorTemperature: maxRadiatorTemperature,
|
|
2133
|
+
maxVolumeFlow: maxVolumeFlow,
|
|
2134
|
+
minAcousticNoise: minAcousticNoise,
|
|
2135
|
+
minAmbientTemperature: minAmbientTemperature,
|
|
2136
|
+
minAuxFlowTemperature: minAuxFlowTemperature,
|
|
2137
|
+
minFlowTemperature: minFlowTemperature,
|
|
2138
|
+
minInletFlowTemperature: minInletFlowTemperature,
|
|
2139
|
+
minInletMassFlow: minInletMassFlow,
|
|
2140
|
+
minInletMinusOutletFlowTemperatureDifference: minInletMinusOutletFlowTemperatureDifference,
|
|
2141
|
+
minInletPower: minInletPower,
|
|
2142
|
+
minInletPressure: minInletPressure,
|
|
2143
|
+
minInletVolumeFlow: minInletVolumeFlow,
|
|
2144
|
+
minMassFlow: minMassFlow,
|
|
2145
|
+
minOutletFlowTemperature: minOutletFlowTemperature,
|
|
2146
|
+
minOutletMassFlow: minOutletMassFlow,
|
|
2147
|
+
minOutletMinusInletFlowTemperatureDifference: minOutletMinusInletFlowTemperatureDifference,
|
|
2148
|
+
minOutletPower: minOutletPower,
|
|
2149
|
+
minOutletPressure: minOutletPressure,
|
|
2150
|
+
minOutletVolumeFlow: minOutletVolumeFlow,
|
|
2151
|
+
minPower: minPower,
|
|
2152
|
+
minPressure: minPressure,
|
|
2153
|
+
minRadiatorTemperature: minRadiatorTemperature,
|
|
2154
|
+
minVolumeFlow: minVolumeFlow,
|
|
2155
|
+
msisdnDeviceAddresses: msisdnDeviceAddresses,
|
|
2156
|
+
none: none,
|
|
2157
|
+
operatingTime: operatingTime,
|
|
2158
|
+
outletFlowTemperature: outletFlowTemperature,
|
|
2159
|
+
outletMass: outletMass,
|
|
2160
|
+
outletMassFlow: outletMassFlow,
|
|
2161
|
+
outletMinusInletFlowTemperatureDifference: outletMinusInletFlowTemperatureDifference,
|
|
2162
|
+
outletPower: outletPower,
|
|
2163
|
+
outletPressure: outletPressure,
|
|
2164
|
+
outletVolume: outletVolume,
|
|
2165
|
+
outletVolumeFlow: outletVolumeFlow,
|
|
2166
|
+
periodEndTime: periodEndTime,
|
|
2167
|
+
periodStartTime: periodStartTime,
|
|
2168
|
+
place: place,
|
|
2169
|
+
power: power,
|
|
2170
|
+
pressure: pressure,
|
|
2171
|
+
pulseInputAVolume: pulseInputAVolume,
|
|
2172
|
+
pulseInputBVolume: pulseInputBVolume,
|
|
2173
|
+
radiatorTemperature: radiatorTemperature,
|
|
2174
|
+
reactiveEnergy: reactiveEnergy,
|
|
2175
|
+
relativeHumidity: relativeHumidity,
|
|
2176
|
+
remainingBatteryTime: remainingBatteryTime,
|
|
2177
|
+
ssqAcousticNoise: ssqAcousticNoise,
|
|
2178
|
+
ssqAmbientTemperature: ssqAmbientTemperature,
|
|
2179
|
+
ssqAuxFlowTemperature: ssqAuxFlowTemperature,
|
|
2180
|
+
ssqFlowTemperature: ssqFlowTemperature,
|
|
2181
|
+
ssqInletFlowTemperature: ssqInletFlowTemperature,
|
|
2182
|
+
ssqInletMassFlow: ssqInletMassFlow,
|
|
2183
|
+
ssqInletMinusOutletFlowTemperatureDifference: ssqInletMinusOutletFlowTemperatureDifference,
|
|
2184
|
+
ssqInletPower: ssqInletPower,
|
|
2185
|
+
ssqInletPressure: ssqInletPressure,
|
|
2186
|
+
ssqInletVolumeFlow: ssqInletVolumeFlow,
|
|
2187
|
+
ssqMassFlow: ssqMassFlow,
|
|
2188
|
+
ssqOutletFlowTemperature: ssqOutletFlowTemperature,
|
|
2189
|
+
ssqOutletMassFlow: ssqOutletMassFlow,
|
|
2190
|
+
ssqOutletMinusInletFlowTemperatureDifference: ssqOutletMinusInletFlowTemperatureDifference,
|
|
2191
|
+
ssqOutletPower: ssqOutletPower,
|
|
2192
|
+
ssqOutletPressure: ssqOutletPressure,
|
|
2193
|
+
ssqOutletVolumeFlow: ssqOutletVolumeFlow,
|
|
2194
|
+
ssqPower: ssqPower,
|
|
2195
|
+
ssqPressure: ssqPressure,
|
|
2196
|
+
ssqRadiatorTemperature: ssqRadiatorTemperature,
|
|
2197
|
+
ssqVolumeFlow: ssqVolumeFlow,
|
|
2198
|
+
sumAcousticNoise: sumAcousticNoise,
|
|
2199
|
+
sumAmbientTemperature: sumAmbientTemperature,
|
|
2200
|
+
sumAuxFlowTemperature: sumAuxFlowTemperature,
|
|
2201
|
+
sumFlowTemperature: sumFlowTemperature,
|
|
2202
|
+
sumInletFlowTemperature: sumInletFlowTemperature,
|
|
2203
|
+
sumInletMassFlow: sumInletMassFlow,
|
|
2204
|
+
sumInletMinusOutletFlowTemperatureDifference: sumInletMinusOutletFlowTemperatureDifference,
|
|
2205
|
+
sumInletPower: sumInletPower,
|
|
2206
|
+
sumInletPressure: sumInletPressure,
|
|
2207
|
+
sumInletVolumeFlow: sumInletVolumeFlow,
|
|
2208
|
+
sumMassFlow: sumMassFlow,
|
|
2209
|
+
sumOutletFlowTemperature: sumOutletFlowTemperature,
|
|
2210
|
+
sumOutletMassFlow: sumOutletMassFlow,
|
|
2211
|
+
sumOutletMinusInletFlowTemperatureDifference: sumOutletMinusInletFlowTemperatureDifference,
|
|
2212
|
+
sumOutletPower: sumOutletPower,
|
|
2213
|
+
sumOutletPressure: sumOutletPressure,
|
|
2214
|
+
sumOutletVolumeFlow: sumOutletVolumeFlow,
|
|
2215
|
+
sumPower: sumPower,
|
|
2216
|
+
sumPressure: sumPressure,
|
|
2217
|
+
sumRadiatorTemperature: sumRadiatorTemperature,
|
|
2218
|
+
sumVolumeFlow: sumVolumeFlow,
|
|
2219
|
+
tchlrDeviceAddresses: tchlrDeviceAddresses,
|
|
2220
|
+
timeAtLastExactOverhearingArrived: timeAtLastExactOverhearingArrived,
|
|
2221
|
+
timeAtLastInstallationMounted: timeAtLastInstallationMounted,
|
|
2222
|
+
timeAtLastPossibleCandidateOverhearingArrived: timeAtLastPossibleCandidateOverhearingArrived,
|
|
2223
|
+
timeAtLastSampled: timeAtLastSampled,
|
|
2224
|
+
timeSinceLastExactOverhearingArrived: timeSinceLastExactOverhearingArrived,
|
|
2225
|
+
timeSinceLastInstallationMounted: timeSinceLastInstallationMounted,
|
|
2226
|
+
timeSinceLastPossibleCandidateOverhearingArrived: timeSinceLastPossibleCandidateOverhearingArrived,
|
|
2227
|
+
timeSinceLastSampled: timeSinceLastSampled,
|
|
2228
|
+
volume: volume,
|
|
2229
|
+
volumeFlow: volumeFlow,
|
|
2230
|
+
wMBusDeviceAddresses: wMBusDeviceAddresses
|
|
2231
|
+
});
|
|
2232
|
+
|
|
2233
|
+
exports.DayOfWeek = void 0;
|
|
2234
|
+
(function (DayOfWeek) {
|
|
2235
|
+
DayOfWeek[DayOfWeek["Monday"] = 1] = "Monday";
|
|
2236
|
+
DayOfWeek[DayOfWeek["Tuesday"] = 2] = "Tuesday";
|
|
2237
|
+
DayOfWeek[DayOfWeek["Wednesday"] = 3] = "Wednesday";
|
|
2238
|
+
DayOfWeek[DayOfWeek["Thursday"] = 4] = "Thursday";
|
|
2239
|
+
DayOfWeek[DayOfWeek["Friday"] = 5] = "Friday";
|
|
2240
|
+
DayOfWeek[DayOfWeek["Saturday"] = 6] = "Saturday";
|
|
2241
|
+
DayOfWeek[DayOfWeek["Sunday"] = 7] = "Sunday";
|
|
2242
|
+
})(exports.DayOfWeek || (exports.DayOfWeek = {}));
|
|
2243
|
+
exports.Step = void 0;
|
|
2244
|
+
(function (Step) {
|
|
2245
|
+
function startOf(dateTime, step, firstDayOfWeek) {
|
|
2246
|
+
if (step === "week") {
|
|
2247
|
+
const value = dateTime
|
|
2248
|
+
.startOf("day")
|
|
2249
|
+
.set({ weekday: firstDayOfWeek ?? exports.DayOfWeek.Monday });
|
|
2250
|
+
return value > dateTime ? value.minus({ days: 7 }) : value;
|
|
2251
|
+
}
|
|
2252
|
+
else {
|
|
2253
|
+
return dateTime.startOf(step);
|
|
2254
|
+
}
|
|
2255
|
+
}
|
|
2256
|
+
Step.startOf = startOf;
|
|
2257
|
+
function asDuration(step, amount = 1) {
|
|
2258
|
+
switch (step) {
|
|
2259
|
+
case "hour":
|
|
2260
|
+
return luxon.Duration.fromObject({ hours: amount });
|
|
2261
|
+
case "day":
|
|
2262
|
+
return luxon.Duration.fromObject({ days: amount });
|
|
2263
|
+
case "week":
|
|
2264
|
+
return luxon.Duration.fromObject({ days: 7 * amount });
|
|
2265
|
+
case "month":
|
|
2266
|
+
return luxon.Duration.fromObject({ months: amount });
|
|
2267
|
+
case "year":
|
|
2268
|
+
return luxon.Duration.fromObject({ years: amount });
|
|
2269
|
+
}
|
|
2270
|
+
}
|
|
2271
|
+
Step.asDuration = asDuration;
|
|
2272
|
+
})(exports.Step || (exports.Step = {}));
|
|
2273
|
+
|
|
2274
|
+
const invariantDecimalSeparator = (0.1).toString()[1];
|
|
2275
|
+
const localeDecimalSeparator = (0.1).toLocaleString()[1];
|
|
2276
|
+
class Formatter {
|
|
2277
|
+
toPrecision(value, precision, maxDecimals) {
|
|
2278
|
+
const absValue = Math.abs(value);
|
|
2279
|
+
const noOfIntegerDigits = Math.round(absValue).toString().length;
|
|
2280
|
+
// Adjust precision to maxDecimals
|
|
2281
|
+
if (maxDecimals !== undefined) {
|
|
2282
|
+
precision = Math.min(precision, noOfIntegerDigits + maxDecimals);
|
|
2283
|
+
}
|
|
2284
|
+
if (value === 0) {
|
|
2285
|
+
// (0).toPrecision(1) == "0"
|
|
2286
|
+
// (0).toPrecision(2) == "0.0"
|
|
2287
|
+
// (0).toPrecision(3) == "0.00"
|
|
2288
|
+
// However, we want:
|
|
2289
|
+
// Formatter.toPrecision(0, 0) == "0"
|
|
2290
|
+
// Formatter.toPrecision(0, 1) == "0.0"
|
|
2291
|
+
// Formatter.toPrecision(0, 2) == "0.00"
|
|
2292
|
+
return value.toPrecision(precision + 1);
|
|
2293
|
+
}
|
|
2294
|
+
if (absValue < 1) {
|
|
2295
|
+
return value.toPrecision(precision);
|
|
2296
|
+
}
|
|
2297
|
+
return precision >= noOfIntegerDigits
|
|
2298
|
+
? value.toFixed(precision - noOfIntegerDigits)
|
|
2299
|
+
: value.toPrecision(precision);
|
|
2300
|
+
}
|
|
2301
|
+
toLocalePrecision(value, precision, maxDecimals) {
|
|
2302
|
+
return this.toPrecision(value, precision, maxDecimals).replace(invariantDecimalSeparator, localeDecimalSeparator);
|
|
2303
|
+
}
|
|
2304
|
+
toFixed(value, precision, maxDecimals) {
|
|
2305
|
+
const parts = this.getParts(value, precision, maxDecimals);
|
|
2306
|
+
if (parts.noOfCoefficientDecimals < parts.exponent) {
|
|
2307
|
+
const number = parts.invariantCoefficientString.replace(invariantDecimalSeparator, "");
|
|
2308
|
+
const zeros = parts.exponent - parts.noOfCoefficientDecimals;
|
|
2309
|
+
return `${number}${"0".repeat(zeros)}`;
|
|
2310
|
+
}
|
|
2311
|
+
else {
|
|
2312
|
+
return parts.invariantPrecisionString;
|
|
2313
|
+
}
|
|
2314
|
+
}
|
|
2315
|
+
toLocaleFixed(value, precision, maxDecimals) {
|
|
2316
|
+
return this.toFixed(value, precision, maxDecimals).replace(invariantDecimalSeparator, localeDecimalSeparator);
|
|
2317
|
+
}
|
|
2318
|
+
getParts(value, precision, maxDecimals) {
|
|
2319
|
+
const precisionString = this.toPrecision(value, precision, maxDecimals);
|
|
2320
|
+
if (precisionString.indexOf("e") >= 0) {
|
|
2321
|
+
const match = /(.*)e([\+-]\d+)$/.exec(precisionString);
|
|
2322
|
+
const coefficientString = match[1];
|
|
2323
|
+
const exponent = parseInt(match[2]);
|
|
2324
|
+
const decimalSeparatorIndex = coefficientString.indexOf(invariantDecimalSeparator);
|
|
2325
|
+
const noOfCoefficientDecimals = decimalSeparatorIndex >= 0
|
|
2326
|
+
? coefficientString.length - decimalSeparatorIndex - 1
|
|
2327
|
+
: 0;
|
|
2328
|
+
return {
|
|
2329
|
+
invariantPrecisionString: precisionString,
|
|
2330
|
+
invariantCoefficientString: coefficientString,
|
|
2331
|
+
exponent,
|
|
2332
|
+
noOfCoefficientDecimals,
|
|
2333
|
+
};
|
|
2334
|
+
}
|
|
2335
|
+
else {
|
|
2336
|
+
const decimalSeparatorIndex = precisionString.indexOf(invariantDecimalSeparator);
|
|
2337
|
+
const noOfCoefficientDecimals = decimalSeparatorIndex >= 0
|
|
2338
|
+
? precisionString.length - decimalSeparatorIndex - 1
|
|
2339
|
+
: 0;
|
|
2340
|
+
return {
|
|
2341
|
+
invariantPrecisionString: precisionString,
|
|
2342
|
+
invariantCoefficientString: precisionString,
|
|
2343
|
+
exponent: 0,
|
|
2344
|
+
noOfCoefficientDecimals,
|
|
2345
|
+
};
|
|
2346
|
+
}
|
|
2347
|
+
}
|
|
2348
|
+
}
|
|
2349
|
+
const NumberFormatter = new Formatter();
|
|
2350
|
+
|
|
2351
|
+
function TimeOrRule(timeOrRule) {
|
|
2352
|
+
return timeOrRule;
|
|
2353
|
+
}
|
|
2354
|
+
(function (TimeOrRule) {
|
|
2355
|
+
function parse(input) {
|
|
2356
|
+
const time = luxon.DateTime.fromISO(input, { setZone: true });
|
|
2357
|
+
return time.isValid ? time : input;
|
|
2358
|
+
}
|
|
2359
|
+
TimeOrRule.parse = parse;
|
|
2360
|
+
function isTime(input) {
|
|
2361
|
+
return typeof input !== "string";
|
|
2362
|
+
}
|
|
2363
|
+
TimeOrRule.isTime = isTime;
|
|
2364
|
+
function isRule(input) {
|
|
2365
|
+
return typeof input === "string";
|
|
2366
|
+
}
|
|
2367
|
+
TimeOrRule.isRule = isRule;
|
|
2368
|
+
function asDateTime(input) {
|
|
2369
|
+
if (isRule(input)) {
|
|
2370
|
+
return;
|
|
2371
|
+
}
|
|
2372
|
+
else if (luxon.DateTime.isDateTime(input)) {
|
|
2373
|
+
return input;
|
|
2374
|
+
}
|
|
2375
|
+
else {
|
|
2376
|
+
const dateTime = luxon.DateTime.fromJSDate(input);
|
|
2377
|
+
if (!dateTime.isValid) {
|
|
2378
|
+
throw new Error("Unable to convert from Date to DateTime");
|
|
2379
|
+
}
|
|
2380
|
+
return dateTime;
|
|
2381
|
+
}
|
|
2382
|
+
}
|
|
2383
|
+
TimeOrRule.asDateTime = asDateTime;
|
|
2384
|
+
function toJSON(input) {
|
|
2385
|
+
return isRule(input) ? input : input.toJSON();
|
|
2386
|
+
}
|
|
2387
|
+
TimeOrRule.toJSON = toJSON;
|
|
2388
|
+
})(TimeOrRule || (TimeOrRule = {}));
|
|
2389
|
+
|
|
2390
|
+
function BreakdownRule(...params) {
|
|
2391
|
+
let init;
|
|
2392
|
+
switch (params.length) {
|
|
2393
|
+
case 1:
|
|
2394
|
+
init = params[0];
|
|
2395
|
+
break;
|
|
2396
|
+
case 3:
|
|
2397
|
+
init = {
|
|
2398
|
+
origin: params[0],
|
|
2399
|
+
count: params[1],
|
|
2400
|
+
period: params[2],
|
|
2401
|
+
};
|
|
2402
|
+
break;
|
|
2403
|
+
default:
|
|
2404
|
+
throw new TypeError("Invalid breakdown rule format");
|
|
2405
|
+
}
|
|
2406
|
+
const periodName = Math.abs(init.count) == 1 ? init.period : init.period + "s";
|
|
2407
|
+
return `${init.origin}/${init.count}${periodName}`;
|
|
2408
|
+
}
|
|
2409
|
+
(function (BreakdownRule) {
|
|
2410
|
+
const regex = new RegExp("(.*)/([-+]?[0-9]+)(hour|day|week|month|year)s?");
|
|
2411
|
+
function split(rule) {
|
|
2412
|
+
const match = regex.exec(rule);
|
|
2413
|
+
if (!match) {
|
|
2414
|
+
throw new Error("Invalid breakdown rule format");
|
|
2415
|
+
}
|
|
2416
|
+
const origin = match[1];
|
|
2417
|
+
const count = parseInt(match[2]);
|
|
2418
|
+
let period = match[3];
|
|
2419
|
+
if (period.endsWith("s")) {
|
|
2420
|
+
period = period.substring(0, period.length - 1);
|
|
2421
|
+
}
|
|
2422
|
+
return {
|
|
2423
|
+
origin: TimeOrRule.parse(origin),
|
|
2424
|
+
count,
|
|
2425
|
+
period: period,
|
|
2426
|
+
};
|
|
2427
|
+
}
|
|
2428
|
+
BreakdownRule.split = split;
|
|
2429
|
+
})(BreakdownRule || (BreakdownRule = {}));
|
|
2430
|
+
|
|
2431
|
+
function csv(values) {
|
|
2432
|
+
return values.join(",");
|
|
2433
|
+
}
|
|
2434
|
+
|
|
2435
|
+
exports.Medium = void 0;
|
|
2436
|
+
(function (Medium) {
|
|
2437
|
+
function isMedium(input) {
|
|
2438
|
+
if (input === "none" || input === "all") {
|
|
2439
|
+
return true;
|
|
2440
|
+
}
|
|
2441
|
+
const ALL_MEDIUMS = [
|
|
2442
|
+
"heat",
|
|
2443
|
+
"water",
|
|
2444
|
+
"cooling",
|
|
2445
|
+
"electricity",
|
|
2446
|
+
"infrastructure",
|
|
2447
|
+
];
|
|
2448
|
+
return Array.isArray(input)
|
|
2449
|
+
? !input.some((x) => !ALL_MEDIUMS.includes(x))
|
|
2450
|
+
: ALL_MEDIUMS.includes(input);
|
|
2451
|
+
}
|
|
2452
|
+
Medium.isMedium = isMedium;
|
|
2453
|
+
function isMeter(medium) {
|
|
2454
|
+
return (medium.includes("heat") ||
|
|
2455
|
+
medium.includes("water") ||
|
|
2456
|
+
medium.includes("cooling") ||
|
|
2457
|
+
medium.includes("electricity"));
|
|
2458
|
+
}
|
|
2459
|
+
Medium.isMeter = isMeter;
|
|
2460
|
+
function isFlowMeter(medium) {
|
|
2461
|
+
return (medium.includes("heat") ||
|
|
2462
|
+
medium.includes("water") ||
|
|
2463
|
+
medium.includes("cooling"));
|
|
2464
|
+
}
|
|
2465
|
+
Medium.isFlowMeter = isFlowMeter;
|
|
2466
|
+
})(exports.Medium || (exports.Medium = {}));
|
|
2467
|
+
|
|
2468
|
+
class PrecisionNumber {
|
|
2469
|
+
get decimals() {
|
|
2470
|
+
if (this.value > -1 && this.value < 1) {
|
|
2471
|
+
return this.precision;
|
|
2472
|
+
}
|
|
2473
|
+
else {
|
|
2474
|
+
return this.precision - getNumberOfIntegralDigits(this.value);
|
|
2475
|
+
}
|
|
2476
|
+
}
|
|
2477
|
+
constructor(value, precision) {
|
|
2478
|
+
this.value = value;
|
|
2479
|
+
this.precision = precision ?? getPrecision(value);
|
|
2480
|
+
}
|
|
2481
|
+
static parse(input) {
|
|
2482
|
+
let normalized = input
|
|
2483
|
+
.trim()
|
|
2484
|
+
.replace(",", ".")
|
|
2485
|
+
.replace(localeDecimalSeparator, invariantDecimalSeparator);
|
|
2486
|
+
if (normalized.endsWith(invariantDecimalSeparator)) {
|
|
2487
|
+
normalized += "0";
|
|
2488
|
+
}
|
|
2489
|
+
const value = parseFloat(normalized);
|
|
2490
|
+
const precision = value === 0
|
|
2491
|
+
? 1
|
|
2492
|
+
: normalized
|
|
2493
|
+
.replace(".", "")
|
|
2494
|
+
.replace("+", "")
|
|
2495
|
+
.replace("-", "")
|
|
2496
|
+
.replace(/^0+/, "").length;
|
|
2497
|
+
return new PrecisionNumber(value, precision);
|
|
2498
|
+
}
|
|
2499
|
+
abs() {
|
|
2500
|
+
return new PrecisionNumber(Math.abs(this.value), this.precision);
|
|
2501
|
+
}
|
|
2502
|
+
plus(rhs) {
|
|
2503
|
+
// The result should have the same number of decimal places as the minimum of the two inputs
|
|
2504
|
+
const lhs = this;
|
|
2505
|
+
const value = lhs.value + rhs.value;
|
|
2506
|
+
const decimals = Math.min(lhs.decimals, rhs.decimals);
|
|
2507
|
+
const precision = getPrecision(value, decimals);
|
|
2508
|
+
return new PrecisionNumber(value, precision);
|
|
2509
|
+
}
|
|
2510
|
+
minus(rhs) {
|
|
2511
|
+
// The result should have the same number of decimal places as the minimum of the two inputs
|
|
2512
|
+
const lhs = this;
|
|
2513
|
+
const value = lhs.value - rhs.value;
|
|
2514
|
+
const decimals = Math.min(lhs.decimals, rhs.decimals);
|
|
2515
|
+
const precision = getPrecision(value, decimals);
|
|
2516
|
+
return new PrecisionNumber(value, precision);
|
|
2517
|
+
}
|
|
2518
|
+
valueOf() {
|
|
2519
|
+
const scale = Math.pow(10, this.decimals);
|
|
2520
|
+
const integer = Math.round(this.value * scale);
|
|
2521
|
+
const value = integer / scale;
|
|
2522
|
+
return value;
|
|
2523
|
+
}
|
|
2524
|
+
toString() {
|
|
2525
|
+
return this.valueOf().toString();
|
|
2526
|
+
}
|
|
2527
|
+
toFixed() {
|
|
2528
|
+
return NumberFormatter.toFixed(this.valueOf(), this.precision);
|
|
2529
|
+
}
|
|
2530
|
+
toPrecision() {
|
|
2531
|
+
return NumberFormatter.toPrecision(this.valueOf(), this.precision);
|
|
2532
|
+
}
|
|
2533
|
+
toLocaleFixed() {
|
|
2534
|
+
return NumberFormatter.toLocaleFixed(this.valueOf(), this.precision);
|
|
2535
|
+
}
|
|
2536
|
+
toLocalePrecision() {
|
|
2537
|
+
return NumberFormatter.toLocalePrecision(this.valueOf(), this.precision);
|
|
2538
|
+
}
|
|
2539
|
+
}
|
|
2540
|
+
function getPrecision(number, decimals) {
|
|
2541
|
+
decimals ?? (decimals = number.toString().split(".", 2)[1]?.length ?? 0);
|
|
2542
|
+
if (number == 0) {
|
|
2543
|
+
return 1;
|
|
2544
|
+
}
|
|
2545
|
+
else if (number > -1 && number < 1) {
|
|
2546
|
+
return decimals;
|
|
2547
|
+
}
|
|
2548
|
+
else {
|
|
2549
|
+
return Math.max(getNumberOfIntegralDigits(number) + decimals, 1);
|
|
2550
|
+
}
|
|
2551
|
+
}
|
|
2552
|
+
function getNumberOfIntegralDigits(number) {
|
|
2553
|
+
const abs = Math.abs(number);
|
|
2554
|
+
if (abs < 10)
|
|
2555
|
+
return 1;
|
|
2556
|
+
if (abs < 100)
|
|
2557
|
+
return 2;
|
|
2558
|
+
if (abs < 1000)
|
|
2559
|
+
return 3;
|
|
2560
|
+
if (abs < 10000)
|
|
2561
|
+
return 4;
|
|
2562
|
+
if (abs < 100000)
|
|
2563
|
+
return 5;
|
|
2564
|
+
if (abs < 1000000)
|
|
2565
|
+
return 6;
|
|
2566
|
+
if (abs < 10000000)
|
|
2567
|
+
return 7;
|
|
2568
|
+
if (abs < 100000000)
|
|
2569
|
+
return 8;
|
|
2570
|
+
if (abs < 1000000000)
|
|
2571
|
+
return 9;
|
|
2572
|
+
return Math.floor(Math.log10(abs) + 1);
|
|
2573
|
+
}
|
|
2574
|
+
|
|
2575
|
+
function getRegisterId(register) {
|
|
2576
|
+
return typeof register === "string" ? register : register.id;
|
|
2577
|
+
}
|
|
2578
|
+
|
|
2579
|
+
const aggregatePrefixes = {
|
|
2580
|
+
instant: "",
|
|
2581
|
+
diff: "diff",
|
|
2582
|
+
min: "min",
|
|
2583
|
+
max: "max",
|
|
2584
|
+
avg: "avg",
|
|
2585
|
+
sum: "sum",
|
|
2586
|
+
cnt: "cnt",
|
|
2587
|
+
ssq: "ssq",
|
|
2588
|
+
};
|
|
2589
|
+
class Convention {
|
|
2590
|
+
getAggregate(register) {
|
|
2591
|
+
const registerId = getRegisterId(register);
|
|
2592
|
+
// Brute force all prefixes - if none of them, then it must be instant.
|
|
2593
|
+
for (const aggregateString of Object.keys(aggregatePrefixes)) {
|
|
2594
|
+
const aggregate = aggregateString;
|
|
2595
|
+
const prefix = aggregatePrefixes[aggregate];
|
|
2596
|
+
if (prefix.length && isPrefix(registerId, prefix)) {
|
|
2597
|
+
// Not instant - it was any of the others.
|
|
2598
|
+
return aggregate;
|
|
2599
|
+
}
|
|
2600
|
+
}
|
|
2601
|
+
return "instant";
|
|
2602
|
+
}
|
|
2603
|
+
toInstant(register) {
|
|
2604
|
+
const registerId = getRegisterId(register);
|
|
2605
|
+
for (const prefix of Object.values(aggregatePrefixes)) {
|
|
2606
|
+
if (prefix.length && isPrefix(registerId, prefix)) {
|
|
2607
|
+
const tail = registerId.substr(prefix.length);
|
|
2608
|
+
return (tail[0].toLowerCase() + tail.substr(1));
|
|
2609
|
+
}
|
|
2610
|
+
}
|
|
2611
|
+
return registerId;
|
|
2612
|
+
}
|
|
2613
|
+
toAggregate(register, aggregate) {
|
|
2614
|
+
const instantRegisterId = this.toInstant(register);
|
|
2615
|
+
if (aggregate === "instant") {
|
|
2616
|
+
return instantRegisterId;
|
|
2617
|
+
}
|
|
2618
|
+
const prefix = aggregatePrefixes[aggregate];
|
|
2619
|
+
return ((prefix +
|
|
2620
|
+
instantRegisterId[0].toUpperCase() +
|
|
2621
|
+
instantRegisterId.substr(1)));
|
|
2622
|
+
}
|
|
2623
|
+
}
|
|
2624
|
+
function isPrefix(registerId, prefix) {
|
|
2625
|
+
return (registerId.startsWith(prefix) && isUppercase(registerId[prefix.length]));
|
|
2626
|
+
}
|
|
2627
|
+
function isUppercase(input) {
|
|
2628
|
+
return input.toUpperCase() === input;
|
|
2629
|
+
}
|
|
2630
|
+
const RegisterConvention = new Convention();
|
|
2631
|
+
|
|
2632
|
+
class Library {
|
|
2633
|
+
constructor() {
|
|
2634
|
+
this.definitions = {};
|
|
2635
|
+
}
|
|
2636
|
+
add(...definitions) {
|
|
2637
|
+
for (const definition of definitions) {
|
|
2638
|
+
if (isDefinition(definition)) {
|
|
2639
|
+
this.tryAdd(definition);
|
|
2640
|
+
}
|
|
2641
|
+
else {
|
|
2642
|
+
for (const definitionInPack of Object.values(definition)) {
|
|
2643
|
+
this.tryAdd(definitionInPack);
|
|
2644
|
+
}
|
|
2645
|
+
}
|
|
2646
|
+
}
|
|
2647
|
+
}
|
|
2648
|
+
tryAdd(definition) {
|
|
2649
|
+
if (!this.definitions[definition.id]) {
|
|
2650
|
+
this.definitions[definition.id] = definition;
|
|
2651
|
+
return true;
|
|
2652
|
+
}
|
|
2653
|
+
return false;
|
|
2654
|
+
}
|
|
2655
|
+
has(id) {
|
|
2656
|
+
return !!this.definitions[id];
|
|
2657
|
+
}
|
|
2658
|
+
tryGet(id) {
|
|
2659
|
+
return this.definitions[id];
|
|
2660
|
+
}
|
|
2661
|
+
get(id) {
|
|
2662
|
+
const definition = this.definitions[id];
|
|
2663
|
+
if (!definition) {
|
|
2664
|
+
throw new Error(`Defintion was not loaded for register ${id}`);
|
|
2665
|
+
}
|
|
2666
|
+
return definition;
|
|
2667
|
+
}
|
|
2668
|
+
all() {
|
|
2669
|
+
return Object.values(this.definitions).map((x) => x);
|
|
2670
|
+
}
|
|
2671
|
+
reset() {
|
|
2672
|
+
this.definitions = {};
|
|
2673
|
+
}
|
|
2674
|
+
}
|
|
2675
|
+
function isDefinition(definitionOrPack) {
|
|
2676
|
+
return !!(definitionOrPack.id &&
|
|
2677
|
+
definitionOrPack.aggregate &&
|
|
2678
|
+
definitionOrPack.units);
|
|
2679
|
+
}
|
|
2680
|
+
const RegisterLibrary = new Library();
|
|
2681
|
+
|
|
2682
|
+
function Repository(repoOrTeam, name) {
|
|
2683
|
+
const repo = name ? `${repoOrTeam}/${name}` : repoOrTeam;
|
|
2684
|
+
if (!Repository.isRepository(repo)) {
|
|
2685
|
+
throw new TypeError("Invalid repository format");
|
|
2686
|
+
}
|
|
2687
|
+
return repo;
|
|
2688
|
+
}
|
|
2689
|
+
(function (Repository) {
|
|
2690
|
+
function isRepository(input) {
|
|
2691
|
+
return /^[a-z][a-z0-9-]*\/[a-z][a-z0-9-]*$/.test(input);
|
|
2692
|
+
}
|
|
2693
|
+
Repository.isRepository = isRepository;
|
|
2694
|
+
function split(repo) {
|
|
2695
|
+
const parts = repo.split("/");
|
|
2696
|
+
return {
|
|
2697
|
+
team: parts[0],
|
|
2698
|
+
name: parts[1],
|
|
2699
|
+
};
|
|
2700
|
+
}
|
|
2701
|
+
Repository.split = split;
|
|
2702
|
+
})(Repository || (Repository = {}));
|
|
2703
|
+
|
|
2704
|
+
/**
|
|
2705
|
+
* Tracks client-side navigation state for cursor-based paging.
|
|
2706
|
+
*
|
|
2707
|
+
* The first page is represented by the empty-string cursor.
|
|
2708
|
+
* `futureCursor` is the server-provided cursor for the page after the current
|
|
2709
|
+
* one, while `cursors` keeps the visited cursor chain so the UI can move
|
|
2710
|
+
* backward without recomputing anything.
|
|
2711
|
+
*/
|
|
2712
|
+
class CursorNavigationState {
|
|
2713
|
+
/** One-based page number inferred from the visited cursor chain. */
|
|
2714
|
+
get pageNumber() {
|
|
2715
|
+
return this.cursors.indexOf(this.currentCursor) + 1;
|
|
2716
|
+
}
|
|
2717
|
+
/** Total number of pages computed from the total item count and page limit. */
|
|
2718
|
+
get pageCount() {
|
|
2719
|
+
return this.totalCount != null
|
|
2720
|
+
? Math.ceil(this.totalCount / this.limit)
|
|
2721
|
+
: 0;
|
|
2722
|
+
}
|
|
2723
|
+
/** One-based index of the first item on the current page. */
|
|
2724
|
+
get firstItemNumber() {
|
|
2725
|
+
const index = this.cursors.indexOf(this.currentCursor);
|
|
2726
|
+
const currentPageItemCount = this.pageItemCounts.get(this.currentCursor) ?? 0;
|
|
2727
|
+
return index >= 0 && currentPageItemCount > 0
|
|
2728
|
+
? this.cursors
|
|
2729
|
+
.slice(0, index)
|
|
2730
|
+
.reduce((itemCount, cursor) => itemCount + (this.pageItemCounts.get(cursor) ?? 0), 0) + 1
|
|
2731
|
+
: 0;
|
|
2732
|
+
}
|
|
2733
|
+
/** One-based index of the last item on the current page. */
|
|
2734
|
+
get lastItemNumber() {
|
|
2735
|
+
const currentPageItemCount = this.pageItemCounts.get(this.currentCursor) ?? 0;
|
|
2736
|
+
return currentPageItemCount > 0
|
|
2737
|
+
? this.firstItemNumber + currentPageItemCount - 1
|
|
2738
|
+
: 0;
|
|
2739
|
+
}
|
|
2740
|
+
/**
|
|
2741
|
+
* Cursor for the next page, or the current page cursor if the current page is the last page.
|
|
2742
|
+
*/
|
|
2743
|
+
get nextCursor() {
|
|
2744
|
+
const currentIndex = this.cursors.indexOf(this.currentCursor);
|
|
2745
|
+
return currentIndex >= 0 && currentIndex < this.cursors.length - 1
|
|
2746
|
+
? this.cursors[currentIndex + 1]
|
|
2747
|
+
: (this.futureCursor ?? this.currentCursor);
|
|
2748
|
+
}
|
|
2749
|
+
/** Cursor for the previous page, or the first-page sentinel. */
|
|
2750
|
+
get previousCursor() {
|
|
2751
|
+
const currentIndex = this.cursors.indexOf(this.currentCursor);
|
|
2752
|
+
const previousCursor = this.cursors[currentIndex - 1] ?? "";
|
|
2753
|
+
return previousCursor;
|
|
2754
|
+
}
|
|
2755
|
+
/** Whether the current page is the first page. */
|
|
2756
|
+
get currentIsFirst() {
|
|
2757
|
+
return this.currentCursor === "";
|
|
2758
|
+
}
|
|
2759
|
+
/** Whether the current page is the last page. */
|
|
2760
|
+
get currentIsLast() {
|
|
2761
|
+
return (this.futureCursor === null &&
|
|
2762
|
+
(this.cursors.length === 0 ||
|
|
2763
|
+
this.cursors[this.cursors.length - 1] === this.currentCursor));
|
|
2764
|
+
}
|
|
2765
|
+
constructor(options) {
|
|
2766
|
+
/** Cursor for the currently displayed page. */
|
|
2767
|
+
this.currentCursor = "";
|
|
2768
|
+
/**
|
|
2769
|
+
* Cursor for the next page as reported by the server.
|
|
2770
|
+
*
|
|
2771
|
+
* `undefined` means the current page has not been loaded yet.
|
|
2772
|
+
* `null` means that all pages are exhausted.
|
|
2773
|
+
*/
|
|
2774
|
+
this.futureCursor = undefined;
|
|
2775
|
+
/** Visited page cursor chain in navigation order. */
|
|
2776
|
+
this.cursors = [];
|
|
2777
|
+
this.pageItemCounts = new Map();
|
|
2778
|
+
/** Total item count when the API provides it or when the last page is reached. */
|
|
2779
|
+
this.totalCount = null;
|
|
2780
|
+
this.limit = options?.limit ?? 20;
|
|
2781
|
+
}
|
|
2782
|
+
/**
|
|
2783
|
+
* Applies a fetched page to the navigation state.
|
|
2784
|
+
*
|
|
2785
|
+
* `cursor` is the request cursor that produced `page`.
|
|
2786
|
+
*/
|
|
2787
|
+
visitPage(cursor, page) {
|
|
2788
|
+
// Determine if this page is the first in the navigation flow, and that it is the first time it it visited.
|
|
2789
|
+
const isInitialFirstPage = this.cursors.length === 0 && cursor === "";
|
|
2790
|
+
const isExpectedFuturePage = this.cursors.length > 0 && cursor === this.futureCursor;
|
|
2791
|
+
this.currentCursor = cursor;
|
|
2792
|
+
// Add the visited cursor to the chain only if it's the first or expected future page.
|
|
2793
|
+
if (isInitialFirstPage || isExpectedFuturePage) {
|
|
2794
|
+
this.cursors.push(cursor);
|
|
2795
|
+
}
|
|
2796
|
+
// Set or update the item count for the visited page.
|
|
2797
|
+
if (this.cursors.includes(cursor)) {
|
|
2798
|
+
this.pageItemCounts.set(cursor, page.items.length);
|
|
2799
|
+
}
|
|
2800
|
+
// Set or advance the future cursor if monotonically advancing.
|
|
2801
|
+
// Note that `futureCursor` is advanced even when `cursors.length === 0`.
|
|
2802
|
+
// This allows us to "start" with some intermediate cursor if the first page is not the initial page;
|
|
2803
|
+
// in that case we still track the `futureCursor` so that we can navigate forward - backward in this case is however not possible.
|
|
2804
|
+
if (this.futureCursor === undefined ||
|
|
2805
|
+
isInitialFirstPage ||
|
|
2806
|
+
cursor === this.futureCursor) {
|
|
2807
|
+
this.futureCursor = page.nextCursor;
|
|
2808
|
+
}
|
|
2809
|
+
// Assign total count if provided
|
|
2810
|
+
if (page.totalCount != null) {
|
|
2811
|
+
this.totalCount = page.totalCount;
|
|
2812
|
+
}
|
|
2813
|
+
else if ((isInitialFirstPage || isExpectedFuturePage) &&
|
|
2814
|
+
!page.hasMore) {
|
|
2815
|
+
this.totalCount = this.cursors.reduce((itemCount, cursor) => itemCount + (this.pageItemCounts.get(cursor) ?? 0), 0);
|
|
2816
|
+
}
|
|
2817
|
+
}
|
|
2818
|
+
toString() {
|
|
2819
|
+
const hasItemNumbers = this.cursors.indexOf(this.currentCursor) >= 0;
|
|
2820
|
+
const range = hasItemNumbers
|
|
2821
|
+
? `${this.firstItemNumber}-${this.lastItemNumber}`
|
|
2822
|
+
: "...";
|
|
2823
|
+
const total = this.totalCount ?? "?";
|
|
2824
|
+
return `${range} / ${total}`;
|
|
2825
|
+
}
|
|
2826
|
+
}
|
|
2827
|
+
|
|
2828
|
+
const registers = Registers;
|
|
2829
|
+
|
|
2830
|
+
exports.BreakdownRule = BreakdownRule;
|
|
2831
|
+
exports.CursorNavigationState = CursorNavigationState;
|
|
2832
|
+
exports.NumberFormatter = NumberFormatter;
|
|
2833
|
+
exports.PrecisionNumber = PrecisionNumber;
|
|
2834
|
+
exports.RegisterConvention = RegisterConvention;
|
|
2835
|
+
exports.RegisterLibrary = RegisterLibrary;
|
|
2836
|
+
exports.Repository = Repository;
|
|
2837
|
+
exports.TimeOrRule = TimeOrRule;
|
|
2838
|
+
exports.csv = csv;
|
|
2839
|
+
exports.invariantDecimalSeparator = invariantDecimalSeparator;
|
|
2840
|
+
exports.localeDecimalSeparator = localeDecimalSeparator;
|
|
2841
|
+
exports.registers = registers;
|
|
2842
|
+
//# sourceMappingURL=index.js.map
|