Skip to content

Commit b09646a

Browse files
authored
Merge pull request #93 from longzheng/sep2-xsd
Ensure posted SEP2 XML conform to XSD
2 parents 12c5915 + 5ee5dd5 commit b09646a

18 files changed

+534
-766
lines changed

package-lock.json

Lines changed: 6 additions & 538 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"eslint-plugin-react": "^7.37.4",
5454
"eslint-plugin-react-hooks": "^5.2.0",
5555
"eslint-plugin-tailwindcss": "^3.18.0",
56-
"libxmljs": "^1.0.11",
56+
"libxml2-wasm": "^0.5.0",
5757
"mermaid": "^11.4.1",
5858
"msw": "^2.7.0",
5959
"openapi-typescript": "^7.6.1",
@@ -65,7 +65,6 @@
6565
"vitepress": "^1.6.3",
6666
"vitepress-plugin-mermaid": "^2.0.17",
6767
"vitest": "^3.0.4",
68-
"xsd-validator": "^1.1.1",
6968
"zod-to-json-schema": "^3.24.1"
7069
},
7170
"dependencies": {

src/sep2/helpers/mirrorUsagePointDer.ts

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ const mirrorMeterReadingDefinitions = {
4848
},
4949
},
5050
realPowerPhaseAAverage: {
51-
description: 'DER Average Real Power (W) - Phase A',
51+
description: 'DER Avg Real Pwr (W) - Phase A',
5252
ReadingType: {
5353
commodity: CommodityType.ElectricitySecondaryMeteredValue,
5454
kind: KindType.Power,
@@ -60,7 +60,7 @@ const mirrorMeterReadingDefinitions = {
6060
},
6161
},
6262
realPowerPhaseBAverage: {
63-
description: 'DER Average Real Power (W) - Phase B',
63+
description: 'DER Avg Real Pwr (W) - Phase B',
6464
ReadingType: {
6565
commodity: CommodityType.ElectricitySecondaryMeteredValue,
6666
kind: KindType.Power,
@@ -72,7 +72,7 @@ const mirrorMeterReadingDefinitions = {
7272
},
7373
},
7474
realPowerPhaseCAverage: {
75-
description: 'DER Average Real Power (W) - Phase C',
75+
description: 'DER Avg Real Pwr (W) - Phase C',
7676
ReadingType: {
7777
commodity: CommodityType.ElectricitySecondaryMeteredValue,
7878
kind: KindType.Power,
@@ -96,7 +96,7 @@ const mirrorMeterReadingDefinitions = {
9696
},
9797
},
9898
realPowerPhaseAMaximum: {
99-
description: 'DER Maximum Real Power (W) - Phase A',
99+
description: 'DER Max Real Pwr (W) - Phase A',
100100
ReadingType: {
101101
commodity: CommodityType.ElectricitySecondaryMeteredValue,
102102
kind: KindType.Power,
@@ -108,7 +108,7 @@ const mirrorMeterReadingDefinitions = {
108108
},
109109
},
110110
realPowerPhaseBMaximum: {
111-
description: 'DER Maximum Real Power (W) - Phase B',
111+
description: 'DER Max Real Pwr (W) - Phase B',
112112
ReadingType: {
113113
commodity: CommodityType.ElectricitySecondaryMeteredValue,
114114
kind: KindType.Power,
@@ -120,7 +120,7 @@ const mirrorMeterReadingDefinitions = {
120120
},
121121
},
122122
realPowerPhaseCMaximum: {
123-
description: 'DER Maximum Real Power (W) - Phase C',
123+
description: 'DER Max Real Pwr (W) - Phase C',
124124
ReadingType: {
125125
commodity: CommodityType.ElectricitySecondaryMeteredValue,
126126
kind: KindType.Power,
@@ -144,7 +144,7 @@ const mirrorMeterReadingDefinitions = {
144144
},
145145
},
146146
realPowerPhaseAMinimum: {
147-
description: 'DER Minimum Real Power (W) - Phase A',
147+
description: 'DER Min Real Pwr (W) - Phase A',
148148
ReadingType: {
149149
commodity: CommodityType.ElectricitySecondaryMeteredValue,
150150
kind: KindType.Power,
@@ -156,7 +156,7 @@ const mirrorMeterReadingDefinitions = {
156156
},
157157
},
158158
realPowerPhaseBMinimum: {
159-
description: 'DER Minimum Real Power (W) - Phase B',
159+
description: 'DER Min Real Pwr (W) - Phase B',
160160
ReadingType: {
161161
commodity: CommodityType.ElectricitySecondaryMeteredValue,
162162
kind: KindType.Power,
@@ -168,7 +168,7 @@ const mirrorMeterReadingDefinitions = {
168168
},
169169
},
170170
realPowerPhaseCMinimum: {
171-
description: 'DER Minimum Real Power (W) - Phase C',
171+
description: 'DER Min Real Pwr (W) - Phase C',
172172
ReadingType: {
173173
commodity: CommodityType.ElectricitySecondaryMeteredValue,
174174
kind: KindType.Power,
@@ -180,7 +180,7 @@ const mirrorMeterReadingDefinitions = {
180180
},
181181
},
182182
reactivePowerNetAverage: {
183-
description: 'DER Average Reactive Power (VAR) - Net',
183+
description: 'DER Avg Reactive Power (VAR)',
184184
ReadingType: {
185185
commodity: CommodityType.ElectricitySecondaryMeteredValue,
186186
kind: KindType.Power,
@@ -192,7 +192,7 @@ const mirrorMeterReadingDefinitions = {
192192
},
193193
},
194194
reactivePowerPhaseAAverage: {
195-
description: 'DER Average Reactive Power (VAR) - Phase A',
195+
description: 'DER Avg Reactive Pwr (VAR) - A',
196196
ReadingType: {
197197
commodity: CommodityType.ElectricitySecondaryMeteredValue,
198198
kind: KindType.Power,
@@ -204,7 +204,7 @@ const mirrorMeterReadingDefinitions = {
204204
},
205205
},
206206
reactivePowerPhaseBAverage: {
207-
description: 'DER Average Reactive Power (VAR) - Phase B',
207+
description: 'DER Avg Reactive Pwr (VAR) - B',
208208
ReadingType: {
209209
commodity: CommodityType.ElectricitySecondaryMeteredValue,
210210
kind: KindType.Power,
@@ -216,7 +216,7 @@ const mirrorMeterReadingDefinitions = {
216216
},
217217
},
218218
reactivePowerPhaseCAverage: {
219-
description: 'DER Average Reactive Power (VAR) - Phase C',
219+
description: 'DER Avg Reactive Pwr (VAR) - C',
220220
ReadingType: {
221221
commodity: CommodityType.ElectricitySecondaryMeteredValue,
222222
kind: KindType.Power,
@@ -228,7 +228,7 @@ const mirrorMeterReadingDefinitions = {
228228
},
229229
},
230230
reactivePowerNetMaximum: {
231-
description: 'DER Maximum Reactive Power (VAR) - Net',
231+
description: 'DER Max Reactive Power (VAR)',
232232
ReadingType: {
233233
commodity: CommodityType.ElectricitySecondaryMeteredValue,
234234
kind: KindType.Power,
@@ -240,7 +240,7 @@ const mirrorMeterReadingDefinitions = {
240240
},
241241
},
242242
reactivePowerPhaseAMaximum: {
243-
description: 'DER Maximum Reactive Power (VAR) - Phase A',
243+
description: 'DER Max Reactive Pwr (VAR) - A',
244244
ReadingType: {
245245
commodity: CommodityType.ElectricitySecondaryMeteredValue,
246246
kind: KindType.Power,
@@ -252,7 +252,7 @@ const mirrorMeterReadingDefinitions = {
252252
},
253253
},
254254
reactivePowerPhaseBMaximum: {
255-
description: 'DER Maximum Reactive Power (VAR) - Phase B',
255+
description: 'DER Max Reactive Pwr (VAR) - B',
256256
ReadingType: {
257257
commodity: CommodityType.ElectricitySecondaryMeteredValue,
258258
kind: KindType.Power,
@@ -264,7 +264,7 @@ const mirrorMeterReadingDefinitions = {
264264
},
265265
},
266266
reactivePowerPhaseCMaximum: {
267-
description: 'DER Maximum Reactive Power (VAR) - Phase C',
267+
description: 'DER Max Reactive Pwr (VAR) - C',
268268
ReadingType: {
269269
commodity: CommodityType.ElectricitySecondaryMeteredValue,
270270
kind: KindType.Power,
@@ -276,7 +276,7 @@ const mirrorMeterReadingDefinitions = {
276276
},
277277
},
278278
reactivePowerNetMinimum: {
279-
description: 'DER Minimum Reactive Power (VAR) - Net',
279+
description: 'DER Min Reactive Power (VAR)',
280280
ReadingType: {
281281
commodity: CommodityType.ElectricitySecondaryMeteredValue,
282282
kind: KindType.Power,
@@ -288,7 +288,7 @@ const mirrorMeterReadingDefinitions = {
288288
},
289289
},
290290
reactivePowerPhaseAMinimum: {
291-
description: 'DER Minimum Reactive Power (VAR) - Phase A',
291+
description: 'DER Min Reactive Pwr (VAR) - A',
292292
ReadingType: {
293293
commodity: CommodityType.ElectricitySecondaryMeteredValue,
294294
kind: KindType.Power,
@@ -300,7 +300,7 @@ const mirrorMeterReadingDefinitions = {
300300
},
301301
},
302302
reactivePowerPhaseBMinimum: {
303-
description: 'DER Minimum Reactive Power (VAR) - Phase B',
303+
description: 'DER Min Reactive Pwr (VAR) - B',
304304
ReadingType: {
305305
commodity: CommodityType.ElectricitySecondaryMeteredValue,
306306
kind: KindType.Power,
@@ -312,7 +312,7 @@ const mirrorMeterReadingDefinitions = {
312312
},
313313
},
314314
reactivePowerPhaseCMinimum: {
315-
description: 'DER Minimum Reactive Power (VAR) - Phase C',
315+
description: 'DER Min Reactive Pwr (VAR) - C',
316316
ReadingType: {
317317
commodity: CommodityType.ElectricitySecondaryMeteredValue,
318318
kind: KindType.Power,
@@ -324,7 +324,7 @@ const mirrorMeterReadingDefinitions = {
324324
},
325325
},
326326
voltagePhaseAAverage: {
327-
description: 'DER Average Voltage (V) - Phase AN',
327+
description: 'DER Avg Voltage (V) - Phase AN',
328328
ReadingType: {
329329
commodity: CommodityType.ElectricitySecondaryMeteredValue,
330330
kind: KindType.Power,
@@ -336,7 +336,7 @@ const mirrorMeterReadingDefinitions = {
336336
},
337337
},
338338
voltagePhaseBAverage: {
339-
description: 'DER Average Voltage (V) - Phase BN',
339+
description: 'DER Avg Voltage (V) - Phase BN',
340340
ReadingType: {
341341
commodity: CommodityType.ElectricitySecondaryMeteredValue,
342342
kind: KindType.Power,
@@ -348,7 +348,7 @@ const mirrorMeterReadingDefinitions = {
348348
},
349349
},
350350
voltagePhaseCAverage: {
351-
description: 'DER Average Voltage (V) - Phase CN',
351+
description: 'DER Avg Voltage (V) - Phase CN',
352352
ReadingType: {
353353
commodity: CommodityType.ElectricitySecondaryMeteredValue,
354354
kind: KindType.Power,
@@ -360,7 +360,7 @@ const mirrorMeterReadingDefinitions = {
360360
},
361361
},
362362
voltagePhaseAMaximum: {
363-
description: 'DER Maximum Voltage (V) - Phase AN',
363+
description: 'DER Max Voltage (V) - Phase AN',
364364
ReadingType: {
365365
commodity: CommodityType.ElectricitySecondaryMeteredValue,
366366
kind: KindType.Power,
@@ -372,7 +372,7 @@ const mirrorMeterReadingDefinitions = {
372372
},
373373
},
374374
voltagePhaseBMaximum: {
375-
description: 'DER Maximum Voltage (V) - Phase BN',
375+
description: 'DER Max Voltage (V) - Phase BN',
376376
ReadingType: {
377377
commodity: CommodityType.ElectricitySecondaryMeteredValue,
378378
kind: KindType.Power,
@@ -384,7 +384,7 @@ const mirrorMeterReadingDefinitions = {
384384
},
385385
},
386386
voltagePhaseCMaximum: {
387-
description: 'DER Maximum Voltage (V) - Phase CN',
387+
description: 'DER Max Voltage (V) - Phase CN',
388388
ReadingType: {
389389
commodity: CommodityType.ElectricitySecondaryMeteredValue,
390390
kind: KindType.Power,
@@ -396,7 +396,7 @@ const mirrorMeterReadingDefinitions = {
396396
},
397397
},
398398
voltagePhaseAMinimum: {
399-
description: 'DER Minimum Voltage (V) - Phase AN',
399+
description: 'DER Min Voltage (V) - Phase AN',
400400
ReadingType: {
401401
commodity: CommodityType.ElectricitySecondaryMeteredValue,
402402
kind: KindType.Power,
@@ -408,7 +408,7 @@ const mirrorMeterReadingDefinitions = {
408408
},
409409
},
410410
voltagePhaseBMinimum: {
411-
description: 'DER Minimum Voltage (V) - Phase BN',
411+
description: 'DER Min Voltage (V) - Phase BN',
412412
ReadingType: {
413413
commodity: CommodityType.ElectricitySecondaryMeteredValue,
414414
kind: KindType.Power,
@@ -420,7 +420,7 @@ const mirrorMeterReadingDefinitions = {
420420
},
421421
},
422422
voltagePhaseCMinimum: {
423-
description: 'DER Minimum Voltage (V) - Phase CN',
423+
description: 'DER Min Voltage (V) - Phase CN',
424424
ReadingType: {
425425
commodity: CommodityType.ElectricitySecondaryMeteredValue,
426426
kind: KindType.Power,

0 commit comments

Comments
 (0)