iobroker.eos-admin 9.0.21 → 9.0.24
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/NEXOWATT_EOS_BUILD_INFO.json +17 -11
- package/README.md +32 -8
- package/START_HIER_9.0.21.md +53 -0
- package/START_HIER_9.0.22.md +48 -0
- package/START_HIER_9.0.23.md +47 -0
- package/START_HIER_9.0.24.md +70 -0
- package/adminWww/.vite/manifest.json +55 -55
- package/adminWww/NEXOWATT_EOS_FRONTEND_MANIFEST.json +13760 -13760
- package/adminWww/assets/{AdapterUpdateDialog-Dxl_b7Op.js → AdapterUpdateDialog-D7sI5VRm.js} +1 -1
- package/adminWww/assets/{Adapters-CVKKhXmI.js → Adapters-DS6ITaEH.js} +1 -1
- package/adminWww/assets/{ConfigManager-Bf6nTAkL.js → ConfigManager-_iFDSXuD.js} +1 -1
- package/adminWww/assets/{Enums-CJHVJY7t.js → Enums-Bdv7Tqmf.js} +1 -1
- package/adminWww/assets/{Fields-DWHbZKvm.js → Fields-CWUY1AnV.js} +1 -1
- package/adminWww/assets/{Files-a6owMTXA.js → Files-BveV1b_F.js} +1 -1
- package/adminWww/assets/{Hosts-LtEMeXpV.js → Hosts-B1HWZLGl.js} +1 -1
- package/adminWww/assets/{Instances-DhChziA1.js → Instances-DYvbOlj7.js} +1 -1
- package/adminWww/assets/{Intro-Cyq9gVDC.js → Intro-pYT2FzIK.js} +1 -1
- package/adminWww/assets/{Logs-wcramXsg.js → Logs-D2ZbCY3Z.js} +1 -1
- package/adminWww/assets/{Objects-DINVHd_e.js → Objects-CTUxbXJM.js} +1 -1
- package/adminWww/assets/{Overview-DK4R41zR.js → Overview-i6PsoN_F.js} +1 -1
- package/adminWww/assets/{State-DcEACXzL.js → State-BEQXNcI3.js} +1 -1
- package/adminWww/assets/{UsedResources-C1LcM0Rb.js → UsedResources-CLc1afk1.js} +1 -1
- package/adminWww/assets/{Users-DvDdSyDY.js → Users-DG6i7iqC.js} +1 -1
- package/adminWww/assets/{bootstrap-Dbj_GbnP.js → bootstrap-4KhX67tn.js} +4 -4
- package/adminWww/assets/{hostInit-BNFIx0-f.js → hostInit-B08JmaAP.js} +1 -1
- package/adminWww/assets/{icons-material-DVbdXNgr.js → icons-material-sOCHi6x9.js} +1 -1
- package/adminWww/assets/{index-CoKP1NSA.js → index-DHSNS0v8.js} +2 -2
- package/adminWww/assets/{installSVGRenderer-CMvku1F1.js → installSVGRenderer-CWaaO5tF.js} +1 -1
- package/adminWww/assets/{mf-entry-bootstrap-0-ac330bce.js → mf-entry-bootstrap-0-e7c54f7f.js} +2 -2
- package/adminWww/index.html +23 -23
- package/adminWww/mf-manifest.json +1 -1
- package/adminWww/mf-stats.json +1 -1
- package/adminWww/{remoteEntry-eos-9.0.21.js → remoteEntry-eos-9.0.24.js} +1 -1
- package/adminWww/remoteEntry.js +1 -1
- package/build/lib/eosHistoryBackupScope.js +73 -0
- package/build/lib/eosHistoryBackupScope.js.map +1 -0
- package/build/lib/eosKiosk.js +348 -0
- package/build/lib/eosKiosk.js.map +1 -0
- package/build/lib/eosLegacyMigration.js +14 -3
- package/build/lib/eosLegacyMigration.js.map +1 -1
- package/build/lib/eosLicenseService.js +1 -1
- package/build/lib/eosLicenseService.js.map +1 -1
- package/build/lib/eosModuleConfigStore.js +1 -1
- package/build/lib/eosModuleConfigStore.js.map +1 -1
- package/build/lib/eosModuleHost.js +241 -21
- package/build/lib/eosModuleHost.js.map +1 -1
- package/build/lib/eosModuleHttp.js +40 -6
- package/build/lib/eosModuleHttp.js.map +1 -1
- package/build/lib/eosModuleProcess.js +317 -0
- package/build/lib/eosModuleProcess.js.map +1 -0
- package/build/lib/eosModuleProcessProtocol.js +213 -0
- package/build/lib/eosModuleProcessProtocol.js.map +1 -0
- package/build/lib/eosModuleProcessWorker.js +279 -0
- package/build/lib/eosModuleProcessWorker.js.map +1 -0
- package/build/lib/eosPostgresProvisioning.js +189 -0
- package/build/lib/eosPostgresProvisioning.js.map +1 -0
- package/build/lib/eosRuntimeHealth.js +155 -0
- package/build/lib/eosRuntimeHealth.js.map +1 -0
- package/build/lib/eosUiProcess.js +689 -0
- package/build/lib/eosUiProcess.js.map +1 -0
- package/build/lib/eosUiProcessRpc.js +279 -0
- package/build/lib/eosUiProcessRpc.js.map +1 -0
- package/build/lib/eosUiProcessWorker.js +399 -0
- package/build/lib/eosUiProcessWorker.js.map +1 -0
- package/build/lib/eosUiSecretCodec.js +64 -0
- package/build/lib/eosUiSecretCodec.js.map +1 -0
- package/build/lib/eosUnifiedBoundary.js +28 -4
- package/build/lib/eosUnifiedBoundary.js.map +1 -1
- package/build/lib/eosUpdateSnapshot.js +32 -1
- package/build/lib/eosUpdateSnapshot.js.map +1 -1
- package/build/lib/web.js +104 -7
- package/build/lib/web.js.map +1 -1
- package/docs/reports/unified-9.0.21/CRA_NACHWEISSTAND.md +159 -0
- package/docs/reports/unified-9.0.21/CUSTOMER_UPDATE_BACKEND_REVIEW.md +30 -0
- package/docs/reports/unified-9.0.21/CUSTOMER_UPDATE_UI_REVIEW.md +44 -0
- package/docs/reports/unified-9.0.21/CUSTOMER_UPDATE_WORKER_REVIEW.md +147 -0
- package/docs/reports/unified-9.0.21/CUSTOMER_WORKER_ZWEITPRUEFUNG.md +108 -0
- package/docs/reports/unified-9.0.21/DEVICE_STABILITY_REVIEW.md +50 -0
- package/docs/reports/unified-9.0.21/EMS_STABILITAET.md +41 -0
- package/docs/reports/unified-9.0.21/HISTORY_TARIFF_STABILITY_REVIEW.md +48 -0
- package/docs/reports/unified-9.0.21/MQTT_ZWEITPRUEFUNG_EMS.md +47 -0
- package/docs/reports/unified-9.0.21/PERSISTENZ_STABILITAET.md +76 -0
- package/docs/reports/unified-9.0.21/PRUEFBERICHT.md +64 -0
- package/docs/reports/unified-9.0.21/SECURITY_STABILITY_REVIEW.md +118 -0
- package/docs/reports/unified-9.0.21/UI_SECURITY_GATE_REVIEW.md +62 -0
- package/docs/reports/unified-9.0.21/UPDATE_HTTP_SNAPSHOT_PRUEFUNG.md +46 -0
- package/docs/reports/unified-9.0.21/raw/INDEX.json +1307 -0
- package/docs/reports/unified-9.0.21/raw/audit-full.log +345 -0
- package/docs/reports/unified-9.0.21/raw/audit-full.result.json +14 -0
- package/docs/reports/unified-9.0.21/raw/audit-runtime.log +23 -0
- package/docs/reports/unified-9.0.21/raw/audit-runtime.result.json +15 -0
- package/docs/reports/unified-9.0.21/raw/backend-final.log +5 -0
- package/docs/reports/unified-9.0.21/raw/backend-final.result.json +14 -0
- package/docs/reports/unified-9.0.21/raw/cra/frontend-installer-sbom.json +32 -0
- package/docs/reports/unified-9.0.21/raw/customer-update-glue/root-glue-focused-node24.tap +34 -0
- package/docs/reports/unified-9.0.21/raw/customer-update-service/lint.log +0 -0
- package/docs/reports/unified-9.0.21/raw/customer-update-service/real920-archive-inspection.json +20 -0
- package/docs/reports/unified-9.0.21/raw/customer-update-service/service-node22.log +110 -0
- package/docs/reports/unified-9.0.21/raw/customer-update-service/service-node24.log +24 -0
- package/docs/reports/unified-9.0.21/raw/customer-update-service/service-verification.json +54 -0
- package/docs/reports/unified-9.0.21/raw/customer-update-service/typecheck.log +0 -0
- package/docs/reports/unified-9.0.21/raw/customer-update-worker/customer-worker-lint.log +0 -0
- package/docs/reports/unified-9.0.21/raw/customer-update-worker/customer-worker-node22.tap +86 -0
- package/docs/reports/unified-9.0.21/raw/customer-update-worker/customer-worker-node24.tap +20 -0
- package/docs/reports/unified-9.0.21/raw/customer-update-worker/customer-worker-strict-typecheck.log +0 -0
- package/docs/reports/unified-9.0.21/raw/customer-update-worker/customer-worker-typecheck.log +0 -0
- package/docs/reports/unified-9.0.21/raw/customer-update-worker/independent/independent-worker-probes.cjs +109 -0
- package/docs/reports/unified-9.0.21/raw/customer-update-worker/independent/node22.tap +86 -0
- package/docs/reports/unified-9.0.21/raw/customer-update-worker/independent/node24.tap +20 -0
- package/docs/reports/unified-9.0.21/raw/customer-update-worker/independent/probes-node22.tap +44 -0
- package/docs/reports/unified-9.0.21/raw/customer-update-worker/independent/probes-node24.tap +13 -0
- package/docs/reports/unified-9.0.21/raw/customer-update-worker/independent/receipt.json +89 -0
- package/docs/reports/unified-9.0.21/raw/customer-update-worker/receipt.json +42 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/all-devices-before-drain-catch-node22.log +1959 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/all-devices-before-drain-test-update-node22.log +1968 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/all-devices-before-drain-test-update-node24.log +337 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/all-devices-before-runtime-review-node22.log +1895 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/all-devices-before-runtime-review-node24.log +317 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/all-devices-final-node22.log +1959 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/all-devices-final-node24.log +327 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/baseline-final-message-test-node22.log +36 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/baseline-final-message-test-node24.log +28 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/baseline-message-session-node22.log +36 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/baseline-message-session-node24.log +28 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/baseline-mqtt-command-replay-repro-node22.log +15 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/baseline-mqtt-command-replay-repro-node24.log +13 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/baseline-mqtt-shutdown-repro-node22.log +16 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/baseline-mqtt-shutdown-repro-node24.log +14 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/baseline-resources-node22.log +74 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/baseline-resources-node24.log +46 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/commands-before-drain-test-update.json +206 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/commands-before-runtime-review.json +150 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/commands-final.json +275 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/commands.json +134 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/env-node22.log +3 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/env-node24.log +1 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/lint-before-drain-test-update-node22.log +2 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/lint-before-drain-test-update-node24.log +0 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/lint-before-runtime-review-node22.log +2 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/lint-before-runtime-review-node24.log +0 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/lint-final-node22.log +2 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/lint-final-node24.log +0 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/mqtt-command-replay-repro.cjs +38 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/mqtt-shutdown-repro.cjs +31 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/regression-node22.log +322 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/regression-node24.log +55 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/run-evidence.py +23 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/run-final-evidence.py +20 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/runtime-lint-920.json +1 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/runtime-lint-921.json +1 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/source-hashes.json +16 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/types-before-drain-test-update-node22.log +0 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/types-before-drain-test-update-node24.log +0 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/types-before-runtime-review-node22.log +0 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/types-before-runtime-review-node24.log +0 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/types-final-node22.log +0 -0
- package/docs/reports/unified-9.0.21/raw/device-mqtt/types-final-node24.log +0 -0
- package/docs/reports/unified-9.0.21/raw/ems/baseline-files-eslint.json +1 -0
- package/docs/reports/unified-9.0.21/raw/ems/changed-files-eslint.json +1 -0
- package/docs/reports/unified-9.0.21/raw/ems/engine.patch +38 -0
- package/docs/reports/unified-9.0.21/raw/ems/eslint-delta.json +6 -0
- package/docs/reports/unified-9.0.21/raw/ems/evidence.json +171 -0
- package/docs/reports/unified-9.0.21/raw/ems/farm-concurrency-baseline-node24.log +124 -0
- package/docs/reports/unified-9.0.21/raw/ems/farm-concurrency-node22.log +56 -0
- package/docs/reports/unified-9.0.21/raw/ems/farm-concurrency-node24.log +15 -0
- package/docs/reports/unified-9.0.21/raw/ems/farm-owned-methods.patch +133 -0
- package/docs/reports/unified-9.0.21/raw/ems/generated-regression-node22.log +460 -0
- package/docs/reports/unified-9.0.21/raw/ems/generated-regression-node24.log +82 -0
- package/docs/reports/unified-9.0.21/raw/ems/mqtt-final-frozen-node22.log +170 -0
- package/docs/reports/unified-9.0.21/raw/ems/mqtt-final-frozen-node24.log +33 -0
- package/docs/reports/unified-9.0.21/raw/ems/mqtt-final-review-node22.log +153 -0
- package/docs/reports/unified-9.0.21/raw/ems/mqtt-final-review-node24.log +39 -0
- package/docs/reports/unified-9.0.21/raw/ems/mqtt-final-reviewed-node22.log +170 -0
- package/docs/reports/unified-9.0.21/raw/ems/mqtt-final-reviewed-node24.log +33 -0
- package/docs/reports/unified-9.0.21/raw/ems/mqtt-queue-inheritance-before.log +28 -0
- package/docs/reports/unified-9.0.21/raw/ems/mqtt-runtime-review-baseline-node24.log +64 -0
- package/docs/reports/unified-9.0.21/raw/ems/mqtt-runtime-review-initial-timing.log +32 -0
- package/docs/reports/unified-9.0.21/raw/ems/mqtt-runtime-review-node22.log +44 -0
- package/docs/reports/unified-9.0.21/raw/ems/mqtt-runtime-review-node24.log +13 -0
- package/docs/reports/unified-9.0.21/raw/ems/mqtt-runtime-session-review.cjs +23 -0
- package/docs/reports/unified-9.0.21/raw/ems/mqtt-runtime-session-review.log +119 -0
- package/docs/reports/unified-9.0.21/raw/ems/nvp-baseline-node22.log +170 -0
- package/docs/reports/unified-9.0.21/raw/ems/nvp-baseline-node24.log +121 -0
- package/docs/reports/unified-9.0.21/raw/ems/nvp-node22.log +68 -0
- package/docs/reports/unified-9.0.21/raw/ems/nvp-node24.log +17 -0
- package/docs/reports/unified-9.0.21/raw/ems/ui-code-delta-inventory.json +32 -0
- package/docs/reports/unified-9.0.21/raw/ems/ui-docs-check.log +6 -0
- package/docs/reports/unified-9.0.21/raw/ems/ui-farm-fingerprint-moves.json +74 -0
- package/docs/reports/unified-9.0.21/raw/ems/ui-lint-policy-tests.log +6 -0
- package/docs/reports/unified-9.0.21/raw/ems/ui-lint-security-final-node22.log +5 -0
- package/docs/reports/unified-9.0.21/raw/ems/ui-lint-security-final-node24.log +8 -0
- package/docs/reports/unified-9.0.21/raw/ems/ui-lint-security-initial.log +6 -0
- package/docs/reports/unified-9.0.21/raw/ems/ui-main-full-delta.patch +135 -0
- package/docs/reports/unified-9.0.21/raw/ems/ui-reviewed-changes.json +93 -0
- package/docs/reports/unified-9.0.21/raw/ems/ui-reviewed-findings-before.json +3185 -0
- package/docs/reports/unified-9.0.21/raw/ems/ui-security-final-node22.json +28833 -0
- package/docs/reports/unified-9.0.21/raw/ems/ui-security-final-node24.json +28833 -0
- package/docs/reports/unified-9.0.21/raw/ems/ui-security-inventory-before.json +28991 -0
- package/docs/reports/unified-9.0.21/raw/ems/update-ui-reviewed-findings.cjs +59 -0
- package/docs/reports/unified-9.0.21/raw/frontend-build.log +152 -0
- package/docs/reports/unified-9.0.21/raw/frontend-build.result.json +14 -0
- package/docs/reports/unified-9.0.21/raw/frontend-installer-sbom.json +32 -0
- package/docs/reports/unified-9.0.21/raw/history/baseline920-influx-sequence-node24.log +12 -0
- package/docs/reports/unified-9.0.21/raw/history/baseline920-outage-node24.log +64 -0
- package/docs/reports/unified-9.0.21/raw/history/cra-tariff-source-node22.log +38 -0
- package/docs/reports/unified-9.0.21/raw/history/cra-tariff-source-node24.log +36 -0
- package/docs/reports/unified-9.0.21/raw/history/lint-baseline-comparison.json +83 -0
- package/docs/reports/unified-9.0.21/raw/history/lint-scope.cjs +29 -0
- package/docs/reports/unified-9.0.21/raw/history/regression-node22.log +438 -0
- package/docs/reports/unified-9.0.21/raw/history/regression-node24.log +75 -0
- package/docs/reports/unified-9.0.21/raw/history/results-node22.json +37 -0
- package/docs/reports/unified-9.0.21/raw/history/results-node24.json +66 -0
- package/docs/reports/unified-9.0.21/raw/history/run-checks.py +18 -0
- package/docs/reports/unified-9.0.21/raw/history/source-evidence.json +83 -0
- package/docs/reports/unified-9.0.21/raw/installer-build.log +26 -0
- package/docs/reports/unified-9.0.21/raw/installer-build.result.json +14 -0
- package/docs/reports/unified-9.0.21/raw/keygen-source.json +6 -0
- package/docs/reports/unified-9.0.21/raw/lint-final.log +16 -0
- package/docs/reports/unified-9.0.21/raw/lint-final.result.json +14 -0
- package/docs/reports/unified-9.0.21/raw/modules-build.log +5 -0
- package/docs/reports/unified-9.0.21/raw/modules-build.result.json +14 -0
- package/docs/reports/unified-9.0.21/raw/node22-tests-final.log +13274 -0
- package/docs/reports/unified-9.0.21/raw/node22-tests-final.result.json +13 -0
- package/docs/reports/unified-9.0.21/raw/node22-typecheck-final.log +7 -0
- package/docs/reports/unified-9.0.21/raw/node22-typecheck-final.result.json +14 -0
- package/docs/reports/unified-9.0.21/raw/node22-version.log +1 -0
- package/docs/reports/unified-9.0.21/raw/node24-tests-final.log +2223 -0
- package/docs/reports/unified-9.0.21/raw/node24-tests-final.result.json +13 -0
- package/docs/reports/unified-9.0.21/raw/node24-typecheck-final.log +5 -0
- package/docs/reports/unified-9.0.21/raw/node24-typecheck-final.result.json +14 -0
- package/docs/reports/unified-9.0.21/raw/node24-version.log +1 -0
- package/docs/reports/unified-9.0.21/raw/persistence/920-http-draft-revision-node24.log +50 -0
- package/docs/reports/unified-9.0.21/raw/persistence/920-late-commit-overwrite-node24.log +30 -0
- package/docs/reports/unified-9.0.21/raw/persistence/920-save-lifecycle-node24.log +59 -0
- package/docs/reports/unified-9.0.21/raw/persistence/921-backend-types.log +0 -0
- package/docs/reports/unified-9.0.21/raw/persistence/921-editor-lint.log +0 -0
- package/docs/reports/unified-9.0.21/raw/persistence/921-eebus-editor-typecheck.log +0 -0
- package/docs/reports/unified-9.0.21/raw/persistence/921-final-format-review.json +24 -0
- package/docs/reports/unified-9.0.21/raw/persistence/921-lint.log +0 -0
- package/docs/reports/unified-9.0.21/raw/persistence/921-new-update-http-before.log +177 -0
- package/docs/reports/unified-9.0.21/raw/persistence/921-new-update-snapshot-before.log +80 -0
- package/docs/reports/unified-9.0.21/raw/persistence/921-persistence-final-node22.log +1019 -0
- package/docs/reports/unified-9.0.21/raw/persistence/921-persistence-final-node22.receipt.json +28 -0
- package/docs/reports/unified-9.0.21/raw/persistence/921-persistence-final-node24.log +174 -0
- package/docs/reports/unified-9.0.21/raw/persistence/921-persistence-final-node24.receipt.json +28 -0
- package/docs/reports/unified-9.0.21/raw/persistence/921-update-helpers-eslint-final.log +0 -0
- package/docs/reports/unified-9.0.21/raw/persistence/921-update-helpers-final-node22.log +137 -0
- package/docs/reports/unified-9.0.21/raw/persistence/921-update-helpers-final-node22.receipt.json +21 -0
- package/docs/reports/unified-9.0.21/raw/persistence/921-update-helpers-final-node24.log +30 -0
- package/docs/reports/unified-9.0.21/raw/persistence/921-update-helpers-final-node24.receipt.json +21 -0
- package/docs/reports/unified-9.0.21/raw/persistence/921-update-helpers-strict-typecheck.log +0 -0
- package/docs/reports/unified-9.0.21/raw/persistence/921-update-helpers-typecheck-final.log +0 -0
- package/docs/reports/unified-9.0.21/raw/persistence/http-slowbody-after.log +3 -0
- package/docs/reports/unified-9.0.21/raw/persistence/http-slowbody-before-observation.json +25 -0
- package/docs/reports/unified-9.0.21/raw/persistence/http-slowbody-repro.cjs +7 -0
- package/docs/reports/unified-9.0.21/raw/persistence/source-files.pre-final-format.sha256 +14 -0
- package/docs/reports/unified-9.0.21/raw/persistence/source-files.sha256 +14 -0
- package/docs/reports/unified-9.0.21/raw/release-overlay/obsolete-assets-920-added.json +94 -0
- package/docs/reports/unified-9.0.21/raw/release-overlay/publish-catalog-regression.log +49 -0
- package/docs/reports/unified-9.0.21/raw/release-overlay/publish-catalog-regression.result.json +15 -0
- package/docs/reports/unified-9.0.21/raw/sbom-runtime.log +7 -0
- package/docs/reports/unified-9.0.21/raw/sbom-runtime.result.json +14 -0
- package/docs/reports/unified-9.0.21/raw/sbom-vendor-check.log +1 -0
- package/docs/reports/unified-9.0.21/raw/sbom-vendor-check.result.json +14 -0
- package/docs/reports/unified-9.0.21/raw/security-stability/backend-typecheck.log +0 -0
- package/docs/reports/unified-9.0.21/raw/security-stability/boundaries-node22.tap +495 -0
- package/docs/reports/unified-9.0.21/raw/security-stability/boundaries-node24.tap +88 -0
- package/docs/reports/unified-9.0.21/raw/security-stability/coexistence-node22.tap +179 -0
- package/docs/reports/unified-9.0.21/raw/security-stability/coexistence-node24.tap +36 -0
- package/docs/reports/unified-9.0.21/raw/security-stability/results.json +118 -0
- package/docs/reports/unified-9.0.21/raw/security-stability/upload-admission-before-node22.tap +63 -0
- package/docs/reports/unified-9.0.21/raw/security-stability/upload-admission-before-node24.tap +47 -0
- package/docs/reports/unified-9.0.21/raw/security-stability/upload-lint.log +0 -0
- package/docs/reports/unified-9.0.21/raw/security-stability/upload-node22.tap +148 -0
- package/docs/reports/unified-9.0.21/raw/security-stability/upload-node24.tap +30 -0
- package/docs/reports/unified-9.0.21/raw/ui-docs-check.log +6 -0
- package/docs/reports/unified-9.0.21/raw/ui-docs-check.result.json +14 -0
- package/docs/reports/unified-9.0.21/raw/ui-runtime-final.log +7 -0
- package/docs/reports/unified-9.0.21/raw/ui-runtime-final.result.json +14 -0
- package/docs/reports/unified-9.0.21/raw/ui-runtime-sync.log +1 -0
- package/docs/reports/unified-9.0.21/raw/ui-runtime-sync.result.json +14 -0
- package/docs/reports/unified-9.0.21/raw/ui-sbom-check.log +6 -0
- package/docs/reports/unified-9.0.21/raw/ui-sbom-check.result.json +14 -0
- package/docs/reports/unified-9.0.21/raw/ui-sbom-final.log +6 -0
- package/docs/reports/unified-9.0.21/raw/ui-sbom-final.result.json +14 -0
- package/docs/reports/unified-9.0.21/raw/ui-secret-final.log +6 -0
- package/docs/reports/unified-9.0.21/raw/ui-secret-final.result.json +14 -0
- package/docs/reports/unified-9.0.21/raw/ui-security-final.log +8 -0
- package/docs/reports/unified-9.0.21/raw/ui-security-final.result.json +14 -0
- package/docs/reports/unified-9.0.21/raw/update-ui/baseline-ui.log +280 -0
- package/docs/reports/unified-9.0.21/raw/update-ui/browser-preview.test.cjs +170 -0
- package/docs/reports/unified-9.0.21/raw/update-ui/draft-regression.log +214 -0
- package/docs/reports/unified-9.0.21/raw/update-ui/eos-updates-before.ts +171 -0
- package/docs/reports/unified-9.0.21/raw/update-ui/lint.log +0 -0
- package/docs/reports/unified-9.0.21/raw/update-ui/results.json +90 -0
- package/docs/reports/unified-9.0.21/raw/update-ui/source-evidence.json +30 -0
- package/docs/reports/unified-9.0.21/raw/update-ui/type-node22.log +0 -0
- package/docs/reports/unified-9.0.21/raw/update-ui/type-node24.log +0 -0
- package/docs/reports/unified-9.0.21/raw/update-ui/ui-node22.log +98 -0
- package/docs/reports/unified-9.0.21/raw/update-ui/ui-node24.log +22 -0
- package/docs/reports/unified-9.0.22/BACKUP_POSTGRES_FOLLOWUP.md +44 -0
- package/docs/reports/unified-9.0.22/ENERGIEFLUSS_BROWSERPRUEFUNG.md +40 -0
- package/docs/reports/unified-9.0.22/ENERGY_FLOW_BACKEND.md +44 -0
- package/docs/reports/unified-9.0.22/FLOW_TARIFF_INDEPENDENT_REVIEW.md +33 -0
- package/docs/reports/unified-9.0.22/OCPP_STOP_WRITER_REVIEW.md +27 -0
- package/docs/reports/unified-9.0.22/POSTGRESQL_SYSTEM_SETUP.md +34 -0
- package/docs/reports/unified-9.0.22/PRUEFBERICHT.md +85 -0
- package/docs/reports/unified-9.0.22/flow/PRUEFVERMERK.md +42 -0
- package/docs/reports/unified-9.0.22/flow/frontend-cadence-tests.log +37 -0
- package/docs/reports/unified-9.0.22/flow/frontend-source-hashes.json +13 -0
- package/docs/reports/unified-9.0.22/flow/frontend-tests.log +31 -0
- package/docs/reports/unified-9.0.22/postgres-history-review.md +43 -0
- package/docs/reports/unified-9.0.22/postgres-real-review.tap +21 -0
- package/docs/reports/unified-9.0.22/postgres-review-lint.log +0 -0
- package/docs/reports/unified-9.0.22/postgres-review-typecheck.log +0 -0
- package/docs/reports/unified-9.0.22/postgres-review-unit-api.tap +25 -0
- package/docs/reports/unified-9.0.22/raw/INDEX.json +43 -0
- package/docs/reports/unified-9.0.22/raw/backup-followup/eslint-backup.log +0 -0
- package/docs/reports/unified-9.0.22/raw/backup-followup/evcs-stop-writer-after.tap +13 -0
- package/docs/reports/unified-9.0.22/raw/backup-followup/evcs-stop-writer-before.tap +54 -0
- package/docs/reports/unified-9.0.22/raw/backup-followup/evcs-stop-writer-test-eslint.log +0 -0
- package/docs/reports/unified-9.0.22/raw/backup-followup/influx-real-node24.tap +11 -0
- package/docs/reports/unified-9.0.22/raw/backup-followup/scope-hashes.json +51 -0
- package/docs/reports/unified-9.0.22/raw/backup-followup/storage-nullable-before.tap +96 -0
- package/docs/reports/unified-9.0.22/raw/backup-followup/storage-nullable-flow.tap +12 -0
- package/docs/reports/unified-9.0.22/raw/backup-followup/tests-node24.tap +116 -0
- package/docs/reports/unified-9.0.22/raw/backup-followup/typecheck-backup-scope.log +0 -0
- package/docs/reports/unified-9.0.22/raw/backup-followup/typecheck-backup.log +0 -0
- package/docs/reports/unified-9.0.22/raw/backup-followup/typecheck-postgres-setup.log +0 -0
- package/docs/reports/unified-9.0.22/raw/current/admin-build.log +152 -0
- package/docs/reports/unified-9.0.22/raw/current/availability-final.log +1 -0
- package/docs/reports/unified-9.0.22/raw/current/backend-build.log +5 -0
- package/docs/reports/unified-9.0.22/raw/current/baseline-repairs.log +60 -0
- package/docs/reports/unified-9.0.22/raw/current/baseline-unified.log +1675 -0
- package/docs/reports/unified-9.0.22/raw/current/combined-fixes.log +65 -0
- package/docs/reports/unified-9.0.22/raw/current/control-final.log +25 -0
- package/docs/reports/unified-9.0.22/raw/current/energyflow-browser.json +244 -0
- package/docs/reports/unified-9.0.22/raw/current/energyflow-browser.stderr +0 -0
- package/docs/reports/unified-9.0.22/raw/current/energyflow-cadence-browser.json +63 -0
- package/docs/reports/unified-9.0.22/raw/current/energyflow-cadence-browser.stderr +0 -0
- package/docs/reports/unified-9.0.22/raw/current/lint-final.log +5 -0
- package/docs/reports/unified-9.0.22/raw/current/lint.log +5 -0
- package/docs/reports/unified-9.0.22/raw/current/markdown-build.log +1 -0
- package/docs/reports/unified-9.0.22/raw/current/modules-build.log +5 -0
- package/docs/reports/unified-9.0.22/raw/current/pre-ocpp-full.log +2337 -0
- package/docs/reports/unified-9.0.22/raw/current/production-audit.json +22 -0
- package/docs/reports/unified-9.0.22/raw/current/production-audit.stderr +1 -0
- package/docs/reports/unified-9.0.22/raw/current/runtime-build-final.log +8 -0
- package/docs/reports/unified-9.0.22/raw/current/runtime-build.log +32 -0
- package/docs/reports/unified-9.0.22/raw/current/runtime-sync.log +1 -0
- package/docs/reports/unified-9.0.22/raw/current/safety-envelope-final.log +1 -0
- package/docs/reports/unified-9.0.22/raw/current/sbom-lock-graph.log +1 -0
- package/docs/reports/unified-9.0.22/raw/current/sbom.log +6120 -0
- package/docs/reports/unified-9.0.22/raw/current/station-permission-final.log +1 -0
- package/docs/reports/unified-9.0.22/raw/current/storage-feedforward-final.log +1 -0
- package/docs/reports/unified-9.0.22/raw/current/typecheck-final.log +5 -0
- package/docs/reports/unified-9.0.22/raw/current/typecheck.log +5 -0
- package/docs/reports/unified-9.0.22/raw/ems-control-points/eslint.txt +0 -0
- package/docs/reports/unified-9.0.22/raw/ems-control-points/node22-availability.txt +1 -0
- package/docs/reports/unified-9.0.22/raw/ems-control-points/node22-safety.txt +1 -0
- package/docs/reports/unified-9.0.22/raw/ems-control-points/node22-station.txt +1 -0
- package/docs/reports/unified-9.0.22/raw/ems-control-points/node22-tests.tap +124 -0
- package/docs/reports/unified-9.0.22/raw/ems-control-points/node24-availability.txt +1 -0
- package/docs/reports/unified-9.0.22/raw/ems-control-points/node24-safety.txt +1 -0
- package/docs/reports/unified-9.0.22/raw/ems-control-points/node24-station.txt +1 -0
- package/docs/reports/unified-9.0.22/raw/ems-control-points/node24-tests.tap +26 -0
- package/docs/reports/unified-9.0.22/raw/ems-control-points/typecheck.txt +0 -0
- package/docs/reports/unified-9.0.22/raw/flow-backend/core-pv-node22.tap +30 -0
- package/docs/reports/unified-9.0.22/raw/flow-backend/core-pv-node24.tap +11 -0
- package/docs/reports/unified-9.0.22/raw/flow-backend/environment.json +7 -0
- package/docs/reports/unified-9.0.22/raw/flow-backend/lint.log +0 -0
- package/docs/reports/unified-9.0.22/raw/flow-backend/node22.tap +164 -0
- package/docs/reports/unified-9.0.22/raw/flow-backend/node24.tap +33 -0
- package/docs/reports/unified-9.0.22/raw/flow-backend/typecheck.log +0 -0
- package/docs/reports/unified-9.0.22/raw/history-ui/browser-runtime.json +11 -0
- package/docs/reports/unified-9.0.22/raw/history-ui/browser-smoke.json +49 -0
- package/docs/reports/unified-9.0.22/raw/history-ui/browser-smoke.stderr +0 -0
- package/docs/reports/unified-9.0.22/raw/history-ui/build.log +18 -0
- package/docs/reports/unified-9.0.22/raw/history-ui/environment.json +38 -0
- package/docs/reports/unified-9.0.22/raw/history-ui/lint.log +0 -0
- package/docs/reports/unified-9.0.22/raw/history-ui/node22.tap +144 -0
- package/docs/reports/unified-9.0.22/raw/history-ui/node24.tap +30 -0
- package/docs/reports/unified-9.0.22/raw/node22-tests-final.log +14086 -0
- package/docs/reports/unified-9.0.22/raw/node22-version.log +1 -0
- package/docs/reports/unified-9.0.22/raw/node24-tests-final.log +2356 -0
- package/docs/reports/unified-9.0.22/raw/node24-version.log +1 -0
- package/docs/reports/unified-9.0.22/raw/postgresql-system/setup-eslint.log +0 -0
- package/docs/reports/unified-9.0.22/raw/postgresql-system/setup-node22.tap +72 -0
- package/docs/reports/unified-9.0.22/raw/postgresql-system/setup-node24.tap +70 -0
- package/docs/reports/unified-9.0.22/raw/postgresql-system/status-eslint.log +0 -0
- package/docs/reports/unified-9.0.22/raw/postgresql-system/typecheck.log +0 -0
- package/docs/reports/unified-9.0.23/MODULE_PROCESS_IMPLEMENTATION.md +43 -0
- package/docs/reports/unified-9.0.23/OCPP_0.4.3_ERGEBNIS.json +24 -0
- package/docs/reports/unified-9.0.23/OCPP_0.4.3_PRUEFBERICHT.md +50 -0
- package/docs/reports/unified-9.0.23/OCPP_AUTOMATISCHE_ZUORDNUNG.md +49 -0
- package/docs/reports/unified-9.0.23/OCPP_CM_INTEGRATION.md +31 -0
- package/docs/reports/unified-9.0.23/PROZESSDIAGNOSE.md +35 -0
- package/docs/reports/unified-9.0.23/PRUEFBERICHT.md +75 -0
- package/docs/reports/unified-9.0.23/UI_EMS_PROZESSGRENZE.md +36 -0
- package/docs/reports/unified-9.0.23/UI_PROCESS_INDEPENDENT_FOLLOWUP.md +33 -0
- package/docs/reports/unified-9.0.23/module-process-contract-review-node22.tap +86 -0
- package/docs/reports/unified-9.0.23/module-process-contract-review-node24.tap +20 -0
- package/docs/reports/unified-9.0.23/module-process-contract-review.md +39 -0
- package/docs/reports/unified-9.0.23/module-process-contract-review.tap +20 -0
- package/docs/reports/unified-9.0.23/module-process-final.tap +27 -0
- package/docs/reports/unified-9.0.23/module-process-static.json +57 -0
- package/docs/reports/unified-9.0.23/raw/INDEX.json +43 -0
- package/docs/reports/unified-9.0.23/raw/build-backend-final.log +5 -0
- package/docs/reports/unified-9.0.23/raw/build-frontend.log +152 -0
- package/docs/reports/unified-9.0.23/raw/build-installer.log +26 -0
- package/docs/reports/unified-9.0.23/raw/build-ui-final.log +7 -0
- package/docs/reports/unified-9.0.23/raw/current/evcs-stop-writer-ocpp043.txt +20 -0
- package/docs/reports/unified-9.0.23/raw/current/ocpp-runtime-feedback-lint.txt +1 -0
- package/docs/reports/unified-9.0.23/raw/current/ocpp-runtime-feedback-tests.txt +28 -0
- package/docs/reports/unified-9.0.23/raw/current/runtime-health-browser.json +49 -0
- package/docs/reports/unified-9.0.23/raw/current/runtime-health-browser.stderr.txt +0 -0
- package/docs/reports/unified-9.0.23/raw/current/runtime-health-lint.txt +1 -0
- package/docs/reports/unified-9.0.23/raw/current/runtime-health-tests.txt +27 -0
- package/docs/reports/unified-9.0.23/raw/current/runtime-health-types.txt +1 -0
- package/docs/reports/unified-9.0.23/raw/eos-production-audit.json +22 -0
- package/docs/reports/unified-9.0.23/raw/idle-pwa-node22.log +75 -0
- package/docs/reports/unified-9.0.23/raw/idle-pwa-node24.log +22 -0
- package/docs/reports/unified-9.0.23/raw/lint-final.log +5 -0
- package/docs/reports/unified-9.0.23/raw/node22-tests-final.log +14612 -0
- package/docs/reports/unified-9.0.23/raw/node22-version.log +1 -0
- package/docs/reports/unified-9.0.23/raw/node24-tests-final.log +2443 -0
- package/docs/reports/unified-9.0.23/raw/node24-version.log +1 -0
- package/docs/reports/unified-9.0.23/raw/ocpp-auto-discovery.log +21 -0
- package/docs/reports/unified-9.0.23/raw/ocpp-discovery-browser.json +55 -0
- package/docs/reports/unified-9.0.23/raw/ocpp-discovery-lifecycle-regression.log +48 -0
- package/docs/reports/unified-9.0.23/raw/ocpp-production-audit.json +69 -0
- package/docs/reports/unified-9.0.23/raw/typecheck-final.log +5 -0
- package/docs/reports/unified-9.0.23/raw/ui-process/discovery-review.tap +21 -0
- package/docs/reports/unified-9.0.23/raw/ui-process/lint.log +0 -0
- package/docs/reports/unified-9.0.23/raw/ui-process/node22.tap +118 -0
- package/docs/reports/unified-9.0.23/raw/ui-process/node24.tap +112 -0
- package/docs/reports/unified-9.0.23/raw/ui-process/root-typecheck.log +0 -0
- package/docs/reports/unified-9.0.23/raw/ui-process/typecheck.log +0 -0
- package/docs/reports/unified-9.0.23/raw/ui-process/unified-listen-build-node24.tap +196 -0
- package/docs/reports/unified-9.0.23/raw/ui-process/unified-listen-node22.tap +200 -0
- package/docs/reports/unified-9.0.23/raw/ui-process/web-lint.log +0 -0
- package/docs/reports/unified-9.0.23/raw/ui-process/web-pipeline-node22.tap +92 -0
- package/docs/reports/unified-9.0.23/raw/ui-process/web-pipeline-node24.tap +90 -0
- package/docs/reports/unified-9.0.23/ui-process-contract-review.md +30 -0
- package/docs/reports/unified-9.0.23/ui-process-final-review-node22.tap +50 -0
- package/docs/reports/unified-9.0.23/ui-process-final-review-node24.tap +14 -0
- package/docs/reports/unified-9.0.23/ui-process-followup-hashes.json +13 -0
- package/docs/reports/unified-9.0.23/ui-process-operational-review-node22.tap +30 -0
- package/docs/reports/unified-9.0.23/ui-process-operational-review-node24.tap +11 -0
- package/docs/reports/unified-9.0.23/ui-process-review-node22.tap +48 -0
- package/docs/reports/unified-9.0.23/ui-process-review-node24.tap +46 -0
- package/docs/reports/unified-9.0.24/BACKUP_INTEROP_PRUEFBERICHT.md +48 -0
- package/docs/reports/unified-9.0.24/KIOSK_FRONTEND_BROWSERPRUEFUNG.md +49 -0
- package/docs/reports/unified-9.0.24/KIOSK_UNABHAENGIGER_REVIEW.md +21 -0
- package/docs/reports/unified-9.0.24/OCPP_HOST_MIGRATION.md +41 -0
- package/docs/reports/unified-9.0.24/OCPP_NAMESPACE_REGELPFAD.md +55 -0
- package/docs/reports/unified-9.0.24/OCPP_UNABHAENGIGER_REVIEW.md +37 -0
- package/docs/reports/unified-9.0.24/OCPP_VERWALTUNG.md +33 -0
- package/docs/reports/unified-9.0.24/PRUEFBERICHT.md +54 -0
- package/docs/reports/unified-9.0.24/PUBLISH_OVERLAY_9_0_21.md +23 -0
- package/docs/reports/unified-9.0.24/raw/INDEX.json +43 -0
- package/docs/reports/unified-9.0.24/raw/backup-interop/ems-independence-node24.tap +9 -0
- package/docs/reports/unified-9.0.24/raw/backup-interop/final-node22.tap +175 -0
- package/docs/reports/unified-9.0.24/raw/backup-interop/final-node24.tap +35 -0
- package/docs/reports/unified-9.0.24/raw/backup-interop/focused-node22.tap +132 -0
- package/docs/reports/unified-9.0.24/raw/backup-interop/focused-node24.tap +27 -0
- package/docs/reports/unified-9.0.24/raw/backup-interop/kiosk-review-node24.tap +13 -0
- package/docs/reports/unified-9.0.24/raw/backup-interop/kiosk-update-snapshot-node24.tap +22 -0
- package/docs/reports/unified-9.0.24/raw/backup-interop/lint-source.txt +0 -0
- package/docs/reports/unified-9.0.24/raw/backup-interop/lint-tests.txt +0 -0
- package/docs/reports/unified-9.0.24/raw/backup-interop/ocpp-backup-node24.tap +10 -0
- package/docs/reports/unified-9.0.24/raw/backup-interop/own-source-hashes.json +12 -0
- package/docs/reports/unified-9.0.24/raw/backup-interop/types.txt +0 -0
- package/docs/reports/unified-9.0.24/raw/backup-interop/update-snapshot-node24.tap +20 -0
- package/docs/reports/unified-9.0.24/raw/build.log +200 -0
- package/docs/reports/unified-9.0.24/raw/current/ocpp-admin-browser-node22.json +69 -0
- package/docs/reports/unified-9.0.24/raw/current/ocpp-admin-browser-node22.stderr.txt +3 -0
- package/docs/reports/unified-9.0.24/raw/current/ocpp-admin-browser.json +69 -0
- package/docs/reports/unified-9.0.24/raw/current/ocpp-admin-browser.stderr.txt +2 -0
- package/docs/reports/unified-9.0.24/raw/current/ocpp-admin-http-node22.txt +253 -0
- package/docs/reports/unified-9.0.24/raw/current/ocpp-admin-http-node24.txt +52 -0
- package/docs/reports/unified-9.0.24/raw/current/ocpp-admin-lint.txt +0 -0
- package/docs/reports/unified-9.0.24/raw/current/ocpp-admin-types.txt +0 -0
- package/docs/reports/unified-9.0.24/raw/current/ocpp-lease-registration-before.txt +28 -0
- package/docs/reports/unified-9.0.24/raw/current/ocpp-namespace-independent-node22.txt +302 -0
- package/docs/reports/unified-9.0.24/raw/current/ocpp-namespace-independent-node24.txt +55 -0
- package/docs/reports/unified-9.0.24/raw/current/ocpp-native-generic-before.txt +25 -0
- package/docs/reports/unified-9.0.24/raw/current/runtime-health-browser.json +49 -0
- package/docs/reports/unified-9.0.24/raw/current/runtime-health-browser.stderr.txt +0 -0
- package/docs/reports/unified-9.0.24/raw/current/runtime-health-types.txt +0 -0
- package/docs/reports/unified-9.0.24/raw/eos-production-audit.json +77 -0
- package/docs/reports/unified-9.0.24/raw/kiosk-auth-profiles-node22.log +16 -0
- package/docs/reports/unified-9.0.24/raw/kiosk-auth-profiles-node24.log +14 -0
- package/docs/reports/unified-9.0.24/raw/kiosk-browser-node22.json +57 -0
- package/docs/reports/unified-9.0.24/raw/kiosk-browser-node24.json +57 -0
- package/docs/reports/unified-9.0.24/raw/kiosk-idle-node22.log +215 -0
- package/docs/reports/unified-9.0.24/raw/kiosk-idle-node24.log +42 -0
- package/docs/reports/unified-9.0.24/raw/lint.log +45 -0
- package/docs/reports/unified-9.0.24/raw/node22-tests-final.log +15517 -0
- package/docs/reports/unified-9.0.24/raw/node22-version.log +1 -0
- package/docs/reports/unified-9.0.24/raw/node24-tests-final.log +2595 -0
- package/docs/reports/unified-9.0.24/raw/node24-version.log +1 -0
- package/docs/reports/unified-9.0.24/raw/ocpp-host-node22.tap +105 -0
- package/docs/reports/unified-9.0.24/raw/ocpp-host-node24.tap +24 -0
- package/docs/reports/unified-9.0.24/raw/ocpp-host-regression-node22.tap +818 -0
- package/docs/reports/unified-9.0.24/raw/ocpp-host-regression-node24.tap +140 -0
- package/docs/reports/unified-9.0.24/raw/ocpp-hosted-mapping-browser.log +2 -0
- package/docs/reports/unified-9.0.24/raw/ocpp-legacy-mapping-browser.log +2 -0
- package/docs/reports/unified-9.0.24/raw/ocpp-namespace-control.log +49 -0
- package/docs/reports/unified-9.0.24/raw/publish-overlay-node22.tap +278 -0
- package/docs/reports/unified-9.0.24/raw/publish-overlay-node24.tap +52 -0
- package/docs/reports/unified-9.0.24/raw/publish-overlay-provenance-922-923.json +32 -0
- package/docs/reports/unified-9.0.24/raw/publish-overlay-provenance.json +19 -0
- package/docs/reports/unified-9.0.24/raw/typecheck.log +5 -0
- package/docs/unified/EMS_BEDIEN_DATENPUNKTE_9_0_22.md +51 -0
- package/docs/unified/HISTORY_UI_9_0_22.md +75 -0
- package/docs/unified/POSTGRESQL_9_0_22.md +89 -0
- package/io-package.json +16 -17
- package/modules/backup/README.md +10 -0
- package/modules/backup/RECOVERY-9.0.22.md +59 -0
- package/modules/backup/admin/index.html +2 -1
- package/modules/backup/admin/index.js +17 -1
- package/modules/backup/build/config.js +2 -0
- package/modules/backup/build/coverage.js +64 -0
- package/modules/backup/build/creators.js +22 -17
- package/modules/backup/build/databaseTargets.js +42 -0
- package/modules/backup/build/index.js +47 -4
- package/modules/backup/build/influxIntegrity.js +159 -0
- package/modules/backup/build/postgresHistory.js +91 -0
- package/modules/backup/build/preflight.js +3 -8
- package/modules/backup/build/publicTrust.js +46 -0
- package/modules/backup/build/restore-cli.js +72 -1
- package/modules/backup/build/storageRetention.js +26 -0
- package/modules/backup/build/worker.js +18 -1
- package/modules/backup/src/config.ts +2 -0
- package/modules/backup/src/coverage.ts +50 -0
- package/modules/backup/src/creators.ts +20 -17
- package/modules/backup/src/databaseTargets.ts +45 -0
- package/modules/backup/src/index.ts +37 -4
- package/modules/backup/src/influxIntegrity.ts +125 -0
- package/modules/backup/src/postgresHistory.ts +66 -0
- package/modules/backup/src/preflight.ts +3 -10
- package/modules/backup/src/publicTrust.ts +34 -0
- package/modules/backup/src/restore-cli.ts +55 -4
- package/modules/backup/src/storageRetention.ts +20 -0
- package/modules/backup/src/types.ts +5 -0
- package/modules/backup/src/worker.ts +18 -2
- package/modules/backup/test/completeness.test.cjs +193 -0
- package/modules/backup/test/hosted.test.cjs +43 -3
- package/modules/backup/test/influx-real.test.cjs +75 -0
- package/modules/backup/test/lifecycle.test.cjs +7 -5
- package/modules/backup/test/ocpp-coverage.test.cjs +152 -0
- package/modules/devices/admin/index.html +1 -1
- package/modules/eebus/admin/index.html +1 -1
- package/modules/ocpp/LICENSE +21 -0
- package/modules/ocpp/README.md +61 -0
- package/modules/ocpp/admin/config-fields.json +353 -0
- package/modules/ocpp/admin/index.html +52 -0
- package/modules/ocpp/admin/index.js +228 -0
- package/modules/ocpp/admin/style.css +27 -0
- package/modules/ocpp/build/index.js +401 -0
- package/modules/ocpp/build/operationGuard.js +26 -0
- package/modules/ocpp/build/server.js +155 -0
- package/modules/ocpp/eslint.config.mjs +13 -0
- package/modules/ocpp/index.js +3 -0
- package/modules/ocpp/native-defaults.json +44 -0
- package/modules/ocpp/ocpp/common.js +646 -0
- package/modules/ocpp/ocpp/compact.js +332 -0
- package/modules/ocpp/ocpp/configuration.js +364 -0
- package/modules/ocpp/ocpp/eos-contract.js +149 -0
- package/modules/ocpp/ocpp/freshness.d.ts +10 -0
- package/modules/ocpp/ocpp/freshness.js +272 -0
- package/modules/ocpp/ocpp/schemas/NOTICE.md +17 -0
- package/modules/ocpp/ocpp/schemas/ocpp2_0_1_official.json +1 -0
- package/modules/ocpp/ocpp/schemas/ocpp2_1_official.json +1 -0
- package/modules/ocpp/ocpp/server.js +3 -0
- package/modules/ocpp/ocpp/v16.js +213 -0
- package/modules/ocpp/ocpp/v201.js +4 -0
- package/modules/ocpp/ocpp/v21.js +4 -0
- package/modules/ocpp/ocpp/v2base.js +255 -0
- package/modules/ocpp/package.json +11 -0
- package/modules/ocpp/provenance.json +33 -0
- package/modules/ocpp/runtime.d.ts +16 -0
- package/modules/ocpp/runtime.js +3391 -0
- package/modules/ocpp/src/index.ts +463 -0
- package/modules/ocpp/src/operationGuard.ts +29 -0
- package/modules/ocpp/src/server.ts +193 -0
- package/modules/ocpp/test/configuration-runtime.test.js +786 -0
- package/modules/ocpp/test/core.test.js +772 -0
- package/modules/ocpp/test/eos-contract.test.js +67 -0
- package/modules/ocpp/test/hosted.test.cjs +165 -0
- package/modules/ocpp/tsconfig.json +7 -0
- package/modules/ocpp/validation/manifest.json +36 -0
- package/modules/ocpp/validation/node22-tests.log +525 -0
- package/modules/ocpp/validation/node24-tests.log +92 -0
- package/package.json +27 -11
- package/public/eos-migration/index.html +1 -1
- package/public/eos-migration/index.js +2 -2
- package/public/eos-runtime/index.html +35 -0
- package/public/eos-runtime/index.js +111 -0
- package/public/eos-runtime/style.css +18 -0
- package/release-manifests/unified/build-environment.cdx.json +767 -131
- package/release-manifests/unified/files.json +612 -207
- package/release-manifests/unified/obsolete-admin-assets.json +210 -6
- package/release-manifests/unified/runtime.cdx.json +871 -143
- package/release-manifests/unified/validation.json +15 -15
- package/reports/unified/ocpp-pure-pv-9.0.22/PRUEFVERMERK.md +35 -0
- package/reports/unified/ocpp-pure-pv-9.0.22/raw/auto-pv-phases.log +1 -0
- package/reports/unified/ocpp-pure-pv-9.0.22/raw/control-tests.log +11 -0
- package/reports/unified/ocpp-pure-pv-9.0.22/raw/ocpp-stability.log +1 -0
- package/reports/unified/ocpp-pure-pv-9.0.22/raw/rc60.log +1 -0
- package/reports/unified/tariff-energy-flow-9.0.22/PRUEFVERMERK.md +44 -0
- package/reports/unified/tariff-energy-flow-9.0.22/raw/focused-tests.log +37 -0
- package/reports/unified/tariff-energy-flow-9.0.22/raw/grid-charge-policy.log +1 -0
- package/reports/unified/tariff-energy-flow-9.0.22/raw/status-truth.log +1 -0
- package/tools/eos-release-check.cjs +5 -0
- package/tools/eos-release-manifest.cjs +3 -3
- package/tools/eos-sbom-vendored.cjs +2 -1
- package/tools/system/eos-postgresql-setup.cjs +409 -0
- package/tsconfig.eos-history-backup-scope.json +9 -0
- package/tsconfig.eos-postgres-system.json +15 -0
- package/ui/admin/react/assets/index-wHWXfD_g.js +13 -0
- package/ui/admin/react/index.html +1 -1
- package/ui/ems/consumers/evcs.js +11 -7
- package/ui/ems/datapoints.js +14 -5
- package/ui/ems/engine.js +4 -1
- package/ui/ems/modules/charging-management.js +193 -63
- package/ui/ems/modules/core-limits.js +15 -20
- package/ui/ems/modules/storage-control.js +8 -6
- package/ui/ems/modules/tarif-vis.js +7 -2
- package/ui/ems/modules/tariff-status.js +19 -1
- package/ui/eslint.postgres-history.config.mjs +9 -0
- package/ui/io-package.json +5 -1
- package/ui/lib/ems-control-values.js +64 -0
- package/ui/lib/flow-measurement.js +72 -0
- package/ui/lib/hosted-adapter.js +12 -1
- package/ui/lib/influx-history-runtime.js +66 -24
- package/ui/lib/installer-lifecycle.js +4 -2
- package/ui/lib/ocpp-auto-discovery.js +397 -0
- package/ui/lib/ocpp-limit-feedback.js +166 -0
- package/ui/lib/partner-runtime.js +35 -2
- package/ui/lib/partner-websocket.js +4 -1
- package/ui/lib/postgres-history-config.js +57 -0
- package/ui/lib/postgres-history.js +344 -0
- package/ui/lib/runtime-proxy-html.js +34 -1
- package/ui/lib/smarthome-device-controls.js +4 -1
- package/ui/lib/ui-access-policy.js +39 -6
- package/ui/main.js +392 -222
- package/ui/package.json +1 -1
- package/ui/tsconfig.postgres-history.json +4 -0
- package/ui/www/app.js +106 -152
- package/ui/www/auth.js +36 -10
- package/ui/www/charging-diagnostics-appcenter.js +1 -0
- package/ui/www/customer-tariff.js +1 -0
- package/ui/www/dashboard-lp-status.js +1 -0
- package/ui/www/dc-station-display.js +1 -0
- package/ui/www/ems-apps.js +48 -8
- package/ui/www/energy-origin-appcenter.js +1 -0
- package/ui/www/energy-origin-ledger-view.js +1 -0
- package/ui/www/eos-kiosk-settings.js +174 -0
- package/ui/www/eos-session-idle.js +40 -6
- package/ui/www/eos-updates.js +1 -0
- package/ui/www/index.html +2 -1
- package/ui/www/license.js +1 -0
- package/ui/www/licenses/smarthome-markdown-components.json +157 -157
- package/ui/www/live-display.js +4 -2
- package/ui/www/login.js +19 -7
- package/ui/www/manifest.webmanifest +3 -3
- package/ui/www/netoperator-appcenter.js +1 -0
- package/ui/www/netoperator.js +1 -0
- package/ui/www/operating-strategies-appcenter.js +1 -0
- package/ui/www/operating-strategies-rule-builder.js +1 -0
- package/ui/www/power-measurements.js +27 -2
- package/ui/www/pwa.js +1 -0
- package/ui/www/runtime-base.js +1 -0
- package/ui/www/settings.html +13 -1
- package/ui/www/smarthome-activation.js +1 -0
- package/ui/www/smarthome-alias-config.js +1 -0
- package/ui/www/smarthome-custom-config.js +1 -0
- package/ui/www/smarthome-custom-views.js +1 -0
- package/ui/www/smarthome-device-categories.js +1 -0
- package/ui/www/smarthome-device-config.js +1 -0
- package/ui/www/smarthome-device-controls.js +1 -0
- package/ui/www/smarthome-feedback.js +1 -0
- package/ui/www/smarthome-layout-editor.js +1 -0
- package/ui/www/smarthome-presentation.js +1 -0
- package/ui/www/smarthome-setup.js +1 -0
- package/ui/www/smarthome-touch.js +1 -0
- package/ui/www/storagefarm-dispatch.js +1 -0
- package/ui/www/storagefarm-summary.js +1 -0
- package/ui/www/tariff-display.js +62 -2
- package/ui/admin/react/assets/index-BJO3q7oe.js +0 -13
|
@@ -0,0 +1,646 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const fs = require('node:fs');
|
|
4
|
+
const path = require('node:path');
|
|
5
|
+
const {
|
|
6
|
+
measurementDefinition,
|
|
7
|
+
canonicalMeasurand,
|
|
8
|
+
canonicalPhase,
|
|
9
|
+
canonicalUnitForMeasurand,
|
|
10
|
+
aggregatePhaseValues,
|
|
11
|
+
} = require('./compact');
|
|
12
|
+
const { isManaged } = require('./eos-contract');
|
|
13
|
+
|
|
14
|
+
// Shared helpers for all OCPP versions.
|
|
15
|
+
|
|
16
|
+
// Conversion of some commonly used units to a base unit.
|
|
17
|
+
function baseUnit(value, unit) {
|
|
18
|
+
const map = {
|
|
19
|
+
kWh: ['Wh', 1000],
|
|
20
|
+
kW: ['W', 1000],
|
|
21
|
+
kVA: ['VA', 1000],
|
|
22
|
+
kVAh: ['VAh', 1000],
|
|
23
|
+
kvar: ['var', 1000],
|
|
24
|
+
kvarh: ['varh', 1000],
|
|
25
|
+
Percent: ['%', 1],
|
|
26
|
+
Celcius: ['°C', 1],
|
|
27
|
+
Celsius: ['°C', 1],
|
|
28
|
+
Fahrenheit: ['°F', 1],
|
|
29
|
+
};
|
|
30
|
+
if (Object.hasOwn(map, unit)) return { val: value * map[unit][1], unit: map[unit][0] };
|
|
31
|
+
return { val: value, unit };
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
function normalizeKey(measurand, phase, location, context) {
|
|
35
|
+
const parts = [canonicalMeasurand(measurand) || 'Reading'];
|
|
36
|
+
const normalizedPhase = canonicalPhase(phase);
|
|
37
|
+
if (normalizedPhase) parts.push(normalizedPhase);
|
|
38
|
+
if (location && location !== 'Body') parts.push(location);
|
|
39
|
+
if (context && context !== 'Sample.Periodic') parts.push(context);
|
|
40
|
+
// Dots in an ioBroker object id create additional folders. Keep every
|
|
41
|
+
// protocol-specific metric flat and use underscores instead.
|
|
42
|
+
return parts.join('_')
|
|
43
|
+
.replace(/[^a-z0-9_-]+/gi, '_')
|
|
44
|
+
.replace(/_+/g, '_')
|
|
45
|
+
.replace(/^_+|_+$/g, '') || 'Reading';
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
const AGGREGATES = {
|
|
49
|
+
'Energy.Active.Export.Register': 'Energy_Active_Export_Register',
|
|
50
|
+
'Energy.Active.Import.Register': 'Energy_Active_Import_Register',
|
|
51
|
+
'Energy.Reactive.Export.Register': 'Energy_Reactive_Export_Register',
|
|
52
|
+
'Energy.Reactive.Import.Register': 'Energy_Reactive_Import_Register',
|
|
53
|
+
'Energy.Active.Export.Interval': 'Energy_Active_Export_Interval',
|
|
54
|
+
'Energy.Active.Import.Interval': 'Energy_Active_Import_Interval',
|
|
55
|
+
'Energy.Reactive.Export.Interval': 'Energy_Reactive_Export_Interval',
|
|
56
|
+
'Energy.Reactive.Import.Interval': 'Energy_Reactive_Import_Interval',
|
|
57
|
+
'Power.Active.Export': 'Power_Active_Export',
|
|
58
|
+
'Power.Active.Import': 'Power_Active_Import',
|
|
59
|
+
'Power.Offered': 'Power_Offered',
|
|
60
|
+
'Current.Import': 'Current_Import',
|
|
61
|
+
'Current.Export': 'Current_Export',
|
|
62
|
+
Voltage: 'Voltage',
|
|
63
|
+
Frequency: 'Frequency',
|
|
64
|
+
Temperature: 'Temperature',
|
|
65
|
+
SoC: 'SoC',
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
function _readSchemaDirectory(directory) {
|
|
69
|
+
if (!directory || !fs.existsSync(directory)) return [];
|
|
70
|
+
const result = [];
|
|
71
|
+
for (const file of fs.readdirSync(directory).filter((name) => name.endsWith('.json')).sort()) {
|
|
72
|
+
try {
|
|
73
|
+
const schema = JSON.parse(fs.readFileSync(path.join(directory, file), 'utf8'));
|
|
74
|
+
if (schema && typeof schema === 'object') {
|
|
75
|
+
if (!schema.$id) schema.$id = `urn:${path.basename(file, '.json')}`;
|
|
76
|
+
result.push(schema);
|
|
77
|
+
}
|
|
78
|
+
} catch (e) {
|
|
79
|
+
// Ignore a broken optional dependency schema and continue with explicit handlers.
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
return result;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
function _loadInstalledOcpp16Schemas() {
|
|
86
|
+
const roots = new Set();
|
|
87
|
+
try { roots.add(path.dirname(require.resolve('ocpp-rpc/package.json'))); } catch (e) { /* package exports may hide package.json */ }
|
|
88
|
+
try {
|
|
89
|
+
let current = path.dirname(require.resolve('ocpp-rpc'));
|
|
90
|
+
for (let i = 0; i < 4; i++) {
|
|
91
|
+
roots.add(current);
|
|
92
|
+
current = path.dirname(current);
|
|
93
|
+
}
|
|
94
|
+
} catch (e) {
|
|
95
|
+
// Dependency may not be installed while running dependency-free core tests.
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
for (const root of roots) {
|
|
99
|
+
const schemas = _readSchemaDirectory(path.join(root, 'schemas', 'openchargealliance', 'ocpp1.6'));
|
|
100
|
+
if (schemas.length) return schemas;
|
|
101
|
+
}
|
|
102
|
+
return [];
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
function _loadSchemas(protocol) {
|
|
106
|
+
// Prefer official schema bundles generated from the local OCA archives.
|
|
107
|
+
try {
|
|
108
|
+
if (protocol === 'ocpp2.0.1') return require('./schemas/ocpp2_0_1_official.json');
|
|
109
|
+
if (protocol === 'ocpp2.1') return require('./schemas/ocpp2_1_official.json');
|
|
110
|
+
} catch (e) {
|
|
111
|
+
// Fall through to the schemas supplied by ocpp-rpc.
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
if (protocol === 'ocpp1.6') {
|
|
115
|
+
const currentLayout = _loadInstalledOcpp16Schemas();
|
|
116
|
+
if (currentLayout.length) return currentLayout;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
// Compatibility with older ocpp-rpc package layouts.
|
|
120
|
+
const legacyModules = {
|
|
121
|
+
'ocpp1.6': ['ocpp-rpc/lib/schemas/ocpp1_6.json', 'ocpp-rpc/lib/schemas/ocpp1.6.json'],
|
|
122
|
+
'ocpp2.0.1': ['ocpp-rpc/lib/schemas/ocpp2_0_1.json'],
|
|
123
|
+
'ocpp2.1': ['ocpp-rpc/lib/schemas/ocpp2_1.json'],
|
|
124
|
+
};
|
|
125
|
+
for (const moduleId of legacyModules[protocol] || []) {
|
|
126
|
+
try {
|
|
127
|
+
const schemas = require(moduleId);
|
|
128
|
+
if (Array.isArray(schemas)) return schemas;
|
|
129
|
+
} catch (e) {
|
|
130
|
+
// Try the next known layout.
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
// Missing schemas only limits generic catch-all responses; explicit handlers remain active.
|
|
134
|
+
return [];
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
function _parseSchemaId(id) {
|
|
138
|
+
if (typeof id !== 'string' || !id) return null;
|
|
139
|
+
// ocpp-rpc legacy style: urn:Action.req / urn:Action.conf
|
|
140
|
+
let m = id.match(/^urn:([A-Za-z0-9_]+)\.(req|conf)$/);
|
|
141
|
+
if (m) return { action: m[1], kind: m[2] === 'req' ? 'Request' : 'Response' };
|
|
142
|
+
|
|
143
|
+
// ocpp-rpc 2.1 style: urn:ActionRequest / urn:ActionResponse
|
|
144
|
+
m = id.match(/^urn:([A-Za-z0-9_]+)(Request|Response)$/);
|
|
145
|
+
if (m) return { action: m[1], kind: m[2] };
|
|
146
|
+
|
|
147
|
+
// official OCA schemas: urn:OCPP:...:ActionRequest / ...:ActionResponse
|
|
148
|
+
m = id.match(/(?:^|:)([A-Za-z0-9_]+)(Request|Response)$/);
|
|
149
|
+
if (m) return { action: m[1], kind: m[2] };
|
|
150
|
+
return null;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
function _getAllRequestActions(protocol) {
|
|
154
|
+
const schemas = _loadSchemas(protocol);
|
|
155
|
+
const actions = new Set();
|
|
156
|
+
for (const s of schemas) {
|
|
157
|
+
const id = s && s.$id;
|
|
158
|
+
const parsed = _parseSchemaId(id);
|
|
159
|
+
if (parsed && parsed.kind === 'Request') actions.add(parsed.action);
|
|
160
|
+
}
|
|
161
|
+
return [...actions].sort();
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
function _buildResponseSchemaMap(protocol) {
|
|
165
|
+
const schemas = _loadSchemas(protocol);
|
|
166
|
+
const map = new Map();
|
|
167
|
+
for (const s of schemas) {
|
|
168
|
+
const id = s && s.$id;
|
|
169
|
+
const parsed = _parseSchemaId(id);
|
|
170
|
+
if (parsed && parsed.kind === 'Response') map.set(parsed.action, s);
|
|
171
|
+
}
|
|
172
|
+
return map;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
function _pickEnum(values, preferFailure = false) {
|
|
176
|
+
if (!Array.isArray(values) || values.length === 0) return undefined;
|
|
177
|
+
const prefer = preferFailure
|
|
178
|
+
? ['NotSupported', 'NotImplemented', 'Rejected', 'Failed', 'Unknown', 'Unavailable']
|
|
179
|
+
: ['Accepted', 'OK', 'AcceptedOffline', 'Available'];
|
|
180
|
+
for (const p of prefer) if (values.includes(p)) return p;
|
|
181
|
+
return values[0];
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
function _patternExample(pattern) {
|
|
185
|
+
if (typeof pattern !== 'string' || !pattern.length) return '0';
|
|
186
|
+
// common: hex with fixed length
|
|
187
|
+
let m = pattern.match(/^\^\[0-9A-Fa-f\]\{(\d+)\}\$?$/);
|
|
188
|
+
if (m) return 'A'.repeat(Number(m[1]));
|
|
189
|
+
m = pattern.match(/^\^\[0-9a-fA-F\]\{(\d+)\}\$?$/);
|
|
190
|
+
if (m) return 'A'.repeat(Number(m[1]));
|
|
191
|
+
// common: digits fixed length
|
|
192
|
+
m = pattern.match(/^\^\[0-9\]\{(\d+)\}\$?$/);
|
|
193
|
+
if (m) return '0'.repeat(Number(m[1]));
|
|
194
|
+
// simple UUID
|
|
195
|
+
if (pattern.includes('[0-9a-fA-F]') && pattern.includes('-') && pattern.includes('{8}') && pattern.includes('{4}') && pattern.includes('{12}')) {
|
|
196
|
+
return '00000000-0000-0000-0000-000000000000';
|
|
197
|
+
}
|
|
198
|
+
// fallback
|
|
199
|
+
return '0';
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
function _numberExample(schema) {
|
|
203
|
+
if (!schema || typeof schema !== 'object') return 0;
|
|
204
|
+
const isInt = schema.type === 'integer';
|
|
205
|
+
let v = 0;
|
|
206
|
+
if (schema.minimum !== undefined) v = schema.minimum;
|
|
207
|
+
if (schema.exclusiveMinimum !== undefined) v = isInt ? (schema.exclusiveMinimum + 1) : (schema.exclusiveMinimum + 0.000001);
|
|
208
|
+
if (schema.maximum !== undefined) v = Math.min(v, schema.maximum);
|
|
209
|
+
if (schema.exclusiveMaximum !== undefined) v = Math.min(v, isInt ? (schema.exclusiveMaximum - 1) : (schema.exclusiveMaximum - 0.000001));
|
|
210
|
+
if (schema.multipleOf) {
|
|
211
|
+
const m = schema.multipleOf;
|
|
212
|
+
if (m !== 0) v = Math.round(v / m) * m;
|
|
213
|
+
}
|
|
214
|
+
if (isInt) v = Math.trunc(v);
|
|
215
|
+
return v;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
function _generateFromSchema(schema, root, options, depth, refStack) {
|
|
219
|
+
if (!schema || typeof schema !== 'object') return undefined;
|
|
220
|
+
if (depth > 20) return undefined;
|
|
221
|
+
if (schema.$ref) {
|
|
222
|
+
const ref = schema.$ref;
|
|
223
|
+
if (typeof ref === 'string' && ref.startsWith('#/definitions/')) {
|
|
224
|
+
const name = ref.slice('#/definitions/'.length);
|
|
225
|
+
if (refStack.has(ref)) return undefined;
|
|
226
|
+
const def = root && root.definitions ? root.definitions[name] : undefined;
|
|
227
|
+
refStack.add(ref);
|
|
228
|
+
const v = _generateFromSchema(def, root, options, depth + 1, refStack);
|
|
229
|
+
refStack.delete(ref);
|
|
230
|
+
return v;
|
|
231
|
+
}
|
|
232
|
+
return undefined;
|
|
233
|
+
}
|
|
234
|
+
if (schema.const !== undefined) return schema.const;
|
|
235
|
+
if (schema.default !== undefined) return schema.default;
|
|
236
|
+
if (schema.enum) return _pickEnum(schema.enum, !!(options && options.preferFailure));
|
|
237
|
+
if (schema.oneOf && schema.oneOf.length) return _generateFromSchema(schema.oneOf[0], root, options, depth + 1, refStack);
|
|
238
|
+
if (schema.anyOf && schema.anyOf.length) return _generateFromSchema(schema.anyOf[0], root, options, depth + 1, refStack);
|
|
239
|
+
if (schema.allOf && schema.allOf.length) {
|
|
240
|
+
// merge objects if possible
|
|
241
|
+
const parts = schema.allOf.map(s => _generateFromSchema(s, root, options, depth + 1, refStack)).filter(v => v !== undefined);
|
|
242
|
+
if (parts.every(p => p && typeof p === 'object' && !Array.isArray(p))) {
|
|
243
|
+
return Object.assign({}, ...parts);
|
|
244
|
+
}
|
|
245
|
+
return parts[0];
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
let t = schema.type;
|
|
249
|
+
if (Array.isArray(t)) t = t[0];
|
|
250
|
+
|
|
251
|
+
switch (t) {
|
|
252
|
+
case 'object': {
|
|
253
|
+
const obj = {};
|
|
254
|
+
const props = schema.properties || {};
|
|
255
|
+
const required = Array.isArray(schema.required) ? schema.required : [];
|
|
256
|
+
for (const k of required) {
|
|
257
|
+
if (Object.prototype.hasOwnProperty.call(props, k)) {
|
|
258
|
+
obj[k] = _generateFromSchema(props[k], root, options, depth + 1, refStack);
|
|
259
|
+
} else if (schema.additionalProperties && typeof schema.additionalProperties === 'object') {
|
|
260
|
+
obj[k] = _generateFromSchema(schema.additionalProperties, root, options, depth + 1, refStack);
|
|
261
|
+
} else {
|
|
262
|
+
obj[k] = undefined;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
// Some schemas use minProperties without required.
|
|
266
|
+
const minProps = Number(schema.minProperties || 0);
|
|
267
|
+
if (minProps > 0 && Object.keys(obj).length < minProps) {
|
|
268
|
+
const keys = Object.keys(props);
|
|
269
|
+
for (const k of keys) {
|
|
270
|
+
if (Object.keys(obj).length >= minProps) break;
|
|
271
|
+
if (obj[k] === undefined) obj[k] = _generateFromSchema(props[k], root, options, depth + 1, refStack);
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
return obj;
|
|
275
|
+
}
|
|
276
|
+
case 'array': {
|
|
277
|
+
const min = Number(schema.minItems || 0);
|
|
278
|
+
const items = schema.items || {};
|
|
279
|
+
const arr = [];
|
|
280
|
+
for (let i = 0; i < min; i++) arr.push(_generateFromSchema(items, root, options, depth + 1, refStack));
|
|
281
|
+
return arr;
|
|
282
|
+
}
|
|
283
|
+
case 'string': {
|
|
284
|
+
if (schema.format === 'date-time') return new Date().toISOString();
|
|
285
|
+
if (schema.format === 'uri') return 'http://localhost/';
|
|
286
|
+
if (schema.pattern) {
|
|
287
|
+
const s = _patternExample(schema.pattern);
|
|
288
|
+
if (schema.maxLength && s.length > schema.maxLength) return s.slice(0, schema.maxLength);
|
|
289
|
+
if (schema.minLength && s.length < schema.minLength) return s.padEnd(schema.minLength, '0');
|
|
290
|
+
return s;
|
|
291
|
+
}
|
|
292
|
+
const minLen = Number(schema.minLength || 0);
|
|
293
|
+
const maxLen = schema.maxLength !== undefined ? Number(schema.maxLength) : undefined;
|
|
294
|
+
let s = minLen > 0 ? '0'.repeat(minLen) : '0';
|
|
295
|
+
if (maxLen !== undefined && s.length > maxLen) s = s.slice(0, maxLen);
|
|
296
|
+
return s;
|
|
297
|
+
}
|
|
298
|
+
case 'integer':
|
|
299
|
+
case 'number':
|
|
300
|
+
return _numberExample(schema);
|
|
301
|
+
case 'boolean':
|
|
302
|
+
return false;
|
|
303
|
+
default:
|
|
304
|
+
return undefined;
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
function createAutoResponder(protocol, options = {}) {
|
|
309
|
+
const vendorId = options.vendorId || 'NexoWatt';
|
|
310
|
+
const responseSchemas = _buildResponseSchemaMap(protocol);
|
|
311
|
+
return function autoResponse(action, responseOptions = {}) {
|
|
312
|
+
const schema = responseSchemas.get(action);
|
|
313
|
+
if (!schema) return {};
|
|
314
|
+
const generatorOptions = { vendorId, ...responseOptions };
|
|
315
|
+
const res = _generateFromSchema(schema, schema, generatorOptions, 0, new Set());
|
|
316
|
+
// Ensure required customData.vendorId if customData is present and empty.
|
|
317
|
+
if (res && typeof res === 'object' && !Array.isArray(res) && res.customData && typeof res.customData === 'object') {
|
|
318
|
+
if (!('vendorId' in res.customData)) res.customData.vendorId = vendorId;
|
|
319
|
+
}
|
|
320
|
+
return res || {};
|
|
321
|
+
};
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
// ---- Meter / sampling utilities ----
|
|
325
|
+
|
|
326
|
+
function _readMeasurand(sample, protocol) {
|
|
327
|
+
if (sample && sample.measurand) return canonicalMeasurand(sample.measurand);
|
|
328
|
+
// OCPP 1.6, 2.0.1 and 2.1 all define an omitted SampledValue measurand as
|
|
329
|
+
// Energy.Active.Import.Register.
|
|
330
|
+
return 'Energy.Active.Import.Register';
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
function _readUnitAndMultiplier(sample, protocol, measurand) {
|
|
334
|
+
if (!sample || typeof sample !== 'object') return { unit: '', multiplier: 0, explicitUnit: false };
|
|
335
|
+
const uom = protocol === 'ocpp1.6' ? {} : (sample.unitOfMeasure || {});
|
|
336
|
+
const explicitUnit = uom.unit || sample.unit;
|
|
337
|
+
const canonicalUnit = canonicalUnitForMeasurand(measurand);
|
|
338
|
+
// A few real stations omit the unit even though they explicitly provide a
|
|
339
|
+
// power/current measurand. Treating such a value as Wh creates a wrong DP and
|
|
340
|
+
// can destabilize load management. Only a fully omitted SampledValue keeps
|
|
341
|
+
// the protocol default Energy.Active.Import.Register in Wh.
|
|
342
|
+
const unit = explicitUnit || canonicalUnit || 'Wh';
|
|
343
|
+
return {
|
|
344
|
+
unit,
|
|
345
|
+
explicitUnit: !!explicitUnit,
|
|
346
|
+
multiplier: Number(protocol === 'ocpp1.6' ? (sample.multiplier || 0) : (uom.multiplier ?? sample.multiplier ?? 0)),
|
|
347
|
+
};
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
function _readNumericValue(sample, protocol, measurand) {
|
|
351
|
+
const { multiplier } = _readUnitAndMultiplier(sample, protocol, measurand);
|
|
352
|
+
const raw = sample && sample.value;
|
|
353
|
+
if (raw === undefined || raw === null || String(raw).trim() === '') return undefined;
|
|
354
|
+
const num = Number(raw);
|
|
355
|
+
const mul = Number(multiplier || 0);
|
|
356
|
+
if (!Number.isFinite(num) || !Number.isFinite(mul)) return undefined;
|
|
357
|
+
const val = num * Math.pow(10, mul);
|
|
358
|
+
return Number.isFinite(val) ? val : undefined;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
function extractEnergyImportRegisterWh(meterValueArray, protocol) {
|
|
362
|
+
const arr = Array.isArray(meterValueArray) ? meterValueArray : [];
|
|
363
|
+
for (const mv of arr) {
|
|
364
|
+
const samples = (mv && mv.sampledValue) || [];
|
|
365
|
+
for (const sv of samples) {
|
|
366
|
+
const meas = _readMeasurand(sv, protocol);
|
|
367
|
+
if (meas.toLowerCase().includes('energy.active.import.register')) {
|
|
368
|
+
const rawUnit = _readUnitAndMultiplier(sv, protocol, meas).unit;
|
|
369
|
+
const rawVal = _readNumericValue(sv, protocol, meas);
|
|
370
|
+
if (!Number.isFinite(rawVal)) continue;
|
|
371
|
+
const conv = baseUnit(rawVal, rawUnit);
|
|
372
|
+
// We store energy in Wh.
|
|
373
|
+
return Number.isFinite(conv.val) ? conv.val : undefined;
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
return undefined;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
async function _writeState(ctx, id, val, category = 'realtime') {
|
|
381
|
+
if (ctx && typeof ctx.setStateFreshAsync === 'function') {
|
|
382
|
+
return ctx.setStateFreshAsync(id, val, true, category);
|
|
383
|
+
}
|
|
384
|
+
if (ctx && typeof ctx.setStateChangedAsync === 'function') {
|
|
385
|
+
return ctx.setStateChangedAsync(id, val, true);
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
function _metricCategory(measurand, unit) {
|
|
390
|
+
const name = String(measurand || '');
|
|
391
|
+
if (name === 'SoC') return 'soc';
|
|
392
|
+
if (String(unit || '') === 'Wh' || name.toLowerCase().includes('energy')) return 'counter';
|
|
393
|
+
return 'realtime';
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
async function applyMeterValues(ctx, identity, evseId, connectorId, meterValueArray, protocol) {
|
|
397
|
+
if (!ctx || (!ctx.setStateFreshAsync && !ctx.setStateChangedAsync) || !ctx.states) return;
|
|
398
|
+
const id = identity;
|
|
399
|
+
const scoped = typeof ctx.runtime?.publishScopedMeter === 'function';
|
|
400
|
+
const receiveTime = Date.now();
|
|
401
|
+
const maxAge = Math.max(15, Number(ctx.config?.telemetryMaxAgeSec) || 90) * 1000;
|
|
402
|
+
const supplied = Array.isArray(meterValueArray) ? meterValueArray : [];
|
|
403
|
+
// The newest valid timestamp per batch is used for the operational snapshot.
|
|
404
|
+
// Historical transaction data is retained by the transaction handler, not fed to EOS as live data.
|
|
405
|
+
let arr = supplied;
|
|
406
|
+
if (scoped) {
|
|
407
|
+
arr = supplied.filter(v => { const t = Date.parse(v?.timestamp); return Number.isFinite(t) && t <= receiveTime + 30000 && receiveTime - t <= maxAge; });
|
|
408
|
+
if (!arr.length) return;
|
|
409
|
+
const latest = Math.max(...arr.map(v => Date.parse(v.timestamp)));
|
|
410
|
+
arr = arr.filter(v => Date.parse(v.timestamp) === latest);
|
|
411
|
+
}
|
|
412
|
+
const values = {};
|
|
413
|
+
let sourceAt = receiveTime;
|
|
414
|
+
if (scoped) {
|
|
415
|
+
sourceAt = Math.min(receiveTime, Date.parse(arr[0].timestamp));
|
|
416
|
+
const original = ctx;
|
|
417
|
+
const prefix = `${id}.measurements.`;
|
|
418
|
+
ctx = { ...original, setStateFreshAsync: async (stateId, val, ack, category) => {
|
|
419
|
+
if (stateId.startsWith(prefix) && isManaged(stateId.slice(prefix.length))) {
|
|
420
|
+
values[stateId.slice(prefix.length)] = { val, category, sourceAt }; return;
|
|
421
|
+
}
|
|
422
|
+
if (original.setStateFreshAsync) return original.setStateFreshAsync(stateId, val, ack, category);
|
|
423
|
+
return original.setStateChangedAsync(stateId, val, ack);
|
|
424
|
+
} };
|
|
425
|
+
}
|
|
426
|
+
let connectorBase;
|
|
427
|
+
if (typeof ctx.states.ensureConnectorStructure === 'function') {
|
|
428
|
+
connectorBase = await ctx.states.ensureConnectorStructure(id, evseId, connectorId);
|
|
429
|
+
} else if (typeof ctx.states.connectorBase === 'function') {
|
|
430
|
+
connectorBase = ctx.states.connectorBase(id, evseId, connectorId);
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
const phasesSeen = new Set();
|
|
434
|
+
const phaseTotals = new Map(); // measurand -> {unit, values: Map(phase,value)}
|
|
435
|
+
const totalSeen = new Set();
|
|
436
|
+
let latestTs = '';
|
|
437
|
+
let latestTsMs = 0;
|
|
438
|
+
let validSampleCount = 0;
|
|
439
|
+
let flowSampleCount = 0;
|
|
440
|
+
let nonZeroActualFlowSampleCount = 0;
|
|
441
|
+
let activeImportPowerSampleCount = 0;
|
|
442
|
+
let activeExportPowerSampleCount = 0;
|
|
443
|
+
let currentSampleCount = 0;
|
|
444
|
+
let socSampleCount = 0;
|
|
445
|
+
let latestSocTs = '';
|
|
446
|
+
const receivedAt = Date.now();
|
|
447
|
+
|
|
448
|
+
const ensureMeasurement = async (measurand, phase, unit) => {
|
|
449
|
+
const definition = measurementDefinition(measurand, phase);
|
|
450
|
+
if (typeof ctx.states.ensureMeasurementState === 'function') {
|
|
451
|
+
return { id: await ctx.states.ensureMeasurementState(id, definition.key, unit || definition.unit, definition), definition };
|
|
452
|
+
}
|
|
453
|
+
const aggName = AGGREGATES[String(measurand)];
|
|
454
|
+
if (!aggName || typeof ctx.states.ensureAggState !== 'function') return { id: undefined, definition };
|
|
455
|
+
const phaseKey = phase ? String(phase).replace(/[^A-Za-z0-9]+/g, '') : '';
|
|
456
|
+
return { id: await ctx.states.ensureAggState(id, phaseKey ? `${aggName}_${phaseKey}` : aggName, unit), definition };
|
|
457
|
+
};
|
|
458
|
+
|
|
459
|
+
for (const mv of arr) {
|
|
460
|
+
const ts = (mv && mv.timestamp) || new Date().toISOString();
|
|
461
|
+
const parsedTs = Date.parse(ts);
|
|
462
|
+
if (Number.isFinite(parsedTs) && parsedTs >= latestTsMs) {
|
|
463
|
+
latestTsMs = parsedTs;
|
|
464
|
+
latestTs = ts;
|
|
465
|
+
} else if (!latestTs) {
|
|
466
|
+
latestTs = ts;
|
|
467
|
+
}
|
|
468
|
+
if (connectorBase) {
|
|
469
|
+
const connectorTsId = connectorBase.endsWith('.meter') ? `${connectorBase}.lastTs` : `${connectorBase}.lastUpdate`;
|
|
470
|
+
await _writeState(ctx, connectorTsId, ts, 'status');
|
|
471
|
+
}
|
|
472
|
+
if (typeof ctx.states.ensureMeasurementState === 'function') {
|
|
473
|
+
const stationTsId = await ctx.states.ensureTextMeasurementState(id, 'lastUpdate', 'Letzte Messwertaktualisierung', 'value.time');
|
|
474
|
+
await _writeState(ctx, stationTsId, ts, 'status');
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
const samples = (mv && mv.sampledValue) || [];
|
|
478
|
+
for (const sv of samples) {
|
|
479
|
+
const measurand = _readMeasurand(sv, protocol);
|
|
480
|
+
const rawUnit = _readUnitAndMultiplier(sv, protocol, measurand).unit;
|
|
481
|
+
const rawVal = _readNumericValue(sv, protocol, measurand);
|
|
482
|
+
if (!Number.isFinite(rawVal)) continue;
|
|
483
|
+
const conv = baseUnit(rawVal, rawUnit);
|
|
484
|
+
if (!Number.isFinite(conv.val)) continue;
|
|
485
|
+
const expected = canonicalUnitForMeasurand(measurand);
|
|
486
|
+
if (['W','A','Wh','V','%'].includes(expected) && conv.unit !== expected) continue;
|
|
487
|
+
if (measurand === 'SoC' && (conv.val < 0 || conv.val > 100)) continue;
|
|
488
|
+
// Do not mix energy from inlet/body with outlet samples or sum line-to-line phases.
|
|
489
|
+
if (scoped && ['Power.Active.Import','Power.Active.Export','Current.Import','Current.Export','Energy.Active.Import.Register','Energy.Active.Export.Register'].includes(measurand) && sv.location && !['Outlet','Cable','EV', ...(evseId === 0 || connectorId === 0 ? ['Inlet'] : [])].includes(sv.location)) continue;
|
|
490
|
+
|
|
491
|
+
validSampleCount++;
|
|
492
|
+
const measurandName = String(measurand);
|
|
493
|
+
if (/^(?:Power\.(?:Active|Reactive)\.(?:Import|Export)|Current\.(?:Import|Export))$/.test(measurandName)) {
|
|
494
|
+
flowSampleCount++;
|
|
495
|
+
if (Math.abs(conv.val) > 1e-9) nonZeroActualFlowSampleCount++;
|
|
496
|
+
}
|
|
497
|
+
if (measurandName === 'Power.Active.Import') activeImportPowerSampleCount++;
|
|
498
|
+
if (measurandName === 'Power.Active.Export') activeExportPowerSampleCount++;
|
|
499
|
+
if (/^Current\.(?:Import|Export)$/.test(measurandName)) currentSampleCount++;
|
|
500
|
+
if (measurandName === 'SoC') {
|
|
501
|
+
socSampleCount++;
|
|
502
|
+
latestSocTs = ts;
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
const unit = conv.unit || rawUnit || '';
|
|
506
|
+
const category = _metricCategory(measurand, unit);
|
|
507
|
+
const phase = sv && sv.phase;
|
|
508
|
+
const { id: measurementId, definition } = await ensureMeasurement(measurandName, phase, unit);
|
|
509
|
+
if (measurementId) await _writeState(ctx, measurementId, conv.val, category);
|
|
510
|
+
|
|
511
|
+
if (unit === 'Wh' && String(measurand).toLowerCase().includes('energy')) {
|
|
512
|
+
let kwhId;
|
|
513
|
+
if (typeof ctx.states.ensureMeasurementState === 'function' && definition.kwhKey) {
|
|
514
|
+
kwhId = await ctx.states.ensureMeasurementState(id, definition.kwhKey, 'kWh', {
|
|
515
|
+
...definition,
|
|
516
|
+
key: definition.kwhKey,
|
|
517
|
+
kwhKey: undefined,
|
|
518
|
+
unit: 'kWh',
|
|
519
|
+
});
|
|
520
|
+
} else if (typeof ctx.states.ensureAggState === 'function') {
|
|
521
|
+
const aggName = AGGREGATES[measurandName];
|
|
522
|
+
const phaseKey = phase ? String(phase).replace(/[^A-Za-z0-9]+/g, '') : '';
|
|
523
|
+
if (aggName) kwhId = await ctx.states.ensureAggState(id, `${phaseKey ? `${aggName}_${phaseKey}` : aggName}_kWh`, 'kWh');
|
|
524
|
+
}
|
|
525
|
+
if (kwhId) await _writeState(ctx, kwhId, conv.val / 1000, 'counter');
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
// Connector-specific values are intentionally flat. They are optional,
|
|
529
|
+
// because the EOS control loop normally consumes the station aggregate.
|
|
530
|
+
if (typeof ctx.states.ensureMetricState === 'function') {
|
|
531
|
+
const key = normalizeKey(measurand, phase, sv && sv.location, sv && sv.context);
|
|
532
|
+
const connectorMetricId = await ctx.states.ensureMetricState(id, evseId, connectorId, key, unit, {
|
|
533
|
+
measurand: measurandName,
|
|
534
|
+
phase,
|
|
535
|
+
definition,
|
|
536
|
+
});
|
|
537
|
+
if (connectorMetricId) await _writeState(ctx, connectorMetricId, conv.val, category);
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
const phaseKey = canonicalPhase(phase);
|
|
541
|
+
const phaseAggregateMetric = (/^Power\./.test(measurandName) && measurandName !== 'Power.Factor') || /^Current\./.test(measurandName);
|
|
542
|
+
if (phaseAggregateMetric && (!scoped || !phaseKey || /^L[123]$/.test(phaseKey))) {
|
|
543
|
+
if (!phaseKey) {
|
|
544
|
+
totalSeen.add(measurandName);
|
|
545
|
+
} else {
|
|
546
|
+
if (!phaseTotals.has(measurandName)) phaseTotals.set(measurandName, { unit, values: new Map() });
|
|
547
|
+
phaseTotals.get(measurandName).values.set(phaseKey, conv.val);
|
|
548
|
+
if (ctx.runtime && typeof ctx.runtime.recordPhaseMetric === 'function') {
|
|
549
|
+
ctx.runtime.recordPhaseMetric(id, evseId, connectorId, measurandName, phaseKey, conv.val, unit, receivedAt);
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
if (connectorBase && measurandName.toLowerCase().includes('energy.active.import.register')) {
|
|
555
|
+
const lastWhId = connectorBase.endsWith('.meter') ? `${connectorBase}.lastWh` : `${connectorBase}.energyWh`;
|
|
556
|
+
const lastKWhId = connectorBase.endsWith('.meter') ? `${connectorBase}.lastKWh` : `${connectorBase}.energyKWh`;
|
|
557
|
+
await _writeState(ctx, lastWhId, conv.val, 'counter');
|
|
558
|
+
await _writeState(ctx, lastKWhId, conv.val / 1000, 'counter');
|
|
559
|
+
}
|
|
560
|
+
if (phase) phasesSeen.add(String(phase));
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
// Derive total active power/current when a station only reports phases.
|
|
565
|
+
for (const [measurand, data] of phaseTotals.entries()) {
|
|
566
|
+
if (totalSeen.has(measurand)) continue;
|
|
567
|
+
let derived;
|
|
568
|
+
if (!scoped && ctx.runtime && typeof ctx.runtime.getPhaseMetricTotal === 'function') {
|
|
569
|
+
derived = ctx.runtime.getPhaseMetricTotal(id, evseId, connectorId, measurand);
|
|
570
|
+
}
|
|
571
|
+
if (!derived || !Number.isFinite(derived.value)) {
|
|
572
|
+
derived = {
|
|
573
|
+
value: aggregatePhaseValues(measurand, data.values.values()),
|
|
574
|
+
unit: data.unit,
|
|
575
|
+
};
|
|
576
|
+
}
|
|
577
|
+
if (Number.isFinite(derived.value)) {
|
|
578
|
+
const { id: totalId } = await ensureMeasurement(measurand, '', derived.unit || data.unit || '');
|
|
579
|
+
if (totalId) await _writeState(ctx, totalId, derived.value, 'realtime');
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
const ps = [...phasesSeen];
|
|
584
|
+
if (ps.length > 0) {
|
|
585
|
+
let n = 1;
|
|
586
|
+
if (ps.some((phase) => /L3/i.test(phase))) n = 3;
|
|
587
|
+
else if (ps.some((phase) => /L2/i.test(phase))) n = 2;
|
|
588
|
+
await _writeState(ctx, `${id}.transactions.numberPhases`, n, 'status');
|
|
589
|
+
}
|
|
590
|
+
|
|
591
|
+
if (scoped && validSampleCount > 0) {
|
|
592
|
+
await ctx.runtime.publishScopedMeter(id, evseId, connectorId, values, receiveTime, sourceAt);
|
|
593
|
+
return;
|
|
594
|
+
}
|
|
595
|
+
if (validSampleCount > 0 && ctx.runtime && typeof ctx.runtime.noteMeterValue === 'function') {
|
|
596
|
+
await ctx.runtime.noteMeterValue(id, evseId, connectorId, latestTs || new Date().toISOString(), {
|
|
597
|
+
hasPower: activeImportPowerSampleCount > 0,
|
|
598
|
+
hasExportPower: activeExportPowerSampleCount > 0,
|
|
599
|
+
hasCurrent: currentSampleCount > 0,
|
|
600
|
+
hasActualFlow: flowSampleCount > 0,
|
|
601
|
+
hasNonZeroActualFlow: nonZeroActualFlowSampleCount > 0,
|
|
602
|
+
});
|
|
603
|
+
}
|
|
604
|
+
if (socSampleCount > 0 && ctx.runtime && typeof ctx.runtime.noteSoc === 'function') {
|
|
605
|
+
await ctx.runtime.noteSoc(id, latestSocTs || latestTs || new Date().toISOString());
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
function _findVinDeep(obj, depth = 0) {
|
|
610
|
+
if (depth > 6) return undefined;
|
|
611
|
+
if (!obj) return undefined;
|
|
612
|
+
if (typeof obj === 'string') {
|
|
613
|
+
// Sometimes VIN is embedded in a text.
|
|
614
|
+
const m = obj.match(/\b([A-HJ-NPR-Z0-9]{17})\b/);
|
|
615
|
+
if (m) return m[1];
|
|
616
|
+
return undefined;
|
|
617
|
+
}
|
|
618
|
+
if (typeof obj !== 'object') return undefined;
|
|
619
|
+
if (Array.isArray(obj)) {
|
|
620
|
+
for (const it of obj) {
|
|
621
|
+
const v = _findVinDeep(it, depth + 1);
|
|
622
|
+
if (v) return v;
|
|
623
|
+
}
|
|
624
|
+
return undefined;
|
|
625
|
+
}
|
|
626
|
+
for (const [k, v] of Object.entries(obj)) {
|
|
627
|
+
if (typeof k === 'string' && k.toLowerCase() === 'vin') {
|
|
628
|
+
const s = typeof v === 'string' ? v.trim() : undefined;
|
|
629
|
+
if (s && /[A-HJ-NPR-Z0-9]{17}/.test(s)) return s.match(/[A-HJ-NPR-Z0-9]{17}/)[0];
|
|
630
|
+
}
|
|
631
|
+
const found = _findVinDeep(v, depth + 1);
|
|
632
|
+
if (found) return found;
|
|
633
|
+
}
|
|
634
|
+
return undefined;
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
module.exports = {
|
|
638
|
+
AGGREGATES,
|
|
639
|
+
baseUnit,
|
|
640
|
+
normalizeKey,
|
|
641
|
+
createAutoResponder,
|
|
642
|
+
getAllRequestActions: _getAllRequestActions,
|
|
643
|
+
applyMeterValues,
|
|
644
|
+
extractEnergyImportRegisterWh,
|
|
645
|
+
findVinInPayload: _findVinDeep,
|
|
646
|
+
};
|