Allow to specify more OCPP command payload fields while using the UI
authorJérôme Benoit <jerome.benoit@sap.com>
Fri, 13 Jan 2023 19:56:46 +0000 (20:56 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Fri, 13 Jan 2023 19:56:46 +0000 (20:56 +0100)
server

Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
package-lock.json
package.json
src/charging-station/ocpp/1.6/OCPP16RequestService.ts
ui/web/package-lock.json
ui/web/package.json

index 416bf880781176d2f2f3d4c7bb52134daa97a1e3..b0a96da555a8dc199ecd0399fa36a33a23350326 100644 (file)
@@ -9,10 +9,10 @@
       "version": "1.1.89",
       "license": "Apache-2.0",
       "dependencies": {
-        "@mikro-orm/core": "^5.6.6",
-        "@mikro-orm/mariadb": "^5.6.6",
-        "@mikro-orm/reflection": "^5.6.6",
-        "@mikro-orm/sqlite": "^5.6.6",
+        "@mikro-orm/core": "^5.6.7",
+        "@mikro-orm/mariadb": "^5.6.7",
+        "@mikro-orm/reflection": "^5.6.7",
+        "@mikro-orm/sqlite": "^5.6.7",
         "ajv": "^8.12.0",
         "ajv-formats": "^2.1.1",
         "basic-ftp": "^5.0.2",
@@ -34,7 +34,7 @@
       },
       "devDependencies": {
         "@istanbuljs/nyc-config-typescript": "^1.0.2",
-        "@mikro-orm/cli": "^5.6.6",
+        "@mikro-orm/cli": "^5.6.7",
         "@release-it/bumper": "^4.0.2",
         "@rollup/plugin-json": "^6.0.0",
         "@types/mocha": "^10.0.1",
         "node": ">=8"
       }
     },
+    "node_modules/@jercle/yargonaut": {
+      "version": "1.1.5",
+      "resolved": "https://registry.npmjs.org/@jercle/yargonaut/-/yargonaut-1.1.5.tgz",
+      "integrity": "sha512-zBp2myVvBHp1UaJsNTyS6q4UDKT7eRiqTS4oNTS6VQMd6mpxYOdbeK4pY279cDCdakGy6hG0J3ejoXZVsPwHqw==",
+      "dev": true,
+      "dependencies": {
+        "chalk": "^4.1.2",
+        "figlet": "^1.5.2",
+        "parent-require": "^1.0.0"
+      }
+    },
     "node_modules/@jest/expect-utils": {
       "version": "29.3.1",
       "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-29.3.1.tgz",
       }
     },
     "node_modules/@mikro-orm/cli": {
-      "version": "5.6.6",
-      "resolved": "https://registry.npmjs.org/@mikro-orm/cli/-/cli-5.6.6.tgz",
-      "integrity": "sha512-jcIiYg+tL8V+ETj+4mUYz9XHV8QNS0qj4Rv14nhIzcryvDbooEs30UnNOpohGvnmmgN85Cbij8rRM8FWJMIvRQ==",
+      "version": "5.6.7",
+      "resolved": "https://registry.npmjs.org/@mikro-orm/cli/-/cli-5.6.7.tgz",
+      "integrity": "sha512-yIYi2hf/GxSRk9bGXNrjhk0TopfHf+ah2vv/knYid3aAh1HZF7ZHOuTdRSc5Et7LYwtXICF1cPQYyknmuFoESw==",
       "dev": true,
       "dependencies": {
-        "@mikro-orm/core": "~5.6.6",
-        "@mikro-orm/knex": "~5.6.6",
+        "@jercle/yargonaut": "1.1.5",
+        "@mikro-orm/core": "~5.6.7",
+        "@mikro-orm/knex": "~5.6.7",
         "fs-extra": "11.1.0",
         "tsconfig-paths": "4.1.2",
-        "yargonaut": "1.1.4",
         "yargs": "15.4.1"
       },
       "bin": {
       }
     },
     "node_modules/@mikro-orm/core": {
-      "version": "5.6.6",
-      "resolved": "https://registry.npmjs.org/@mikro-orm/core/-/core-5.6.6.tgz",
-      "integrity": "sha512-L5PPwYz2mwlhmaqcEDBZxKdf3ssV25lZWWGXJcKnszf13IUVY22TUOLYmP/Fv8wqvQ/kJzhSxzhWrDuJInMYtw==",
+      "version": "5.6.7",
+      "resolved": "https://registry.npmjs.org/@mikro-orm/core/-/core-5.6.7.tgz",
+      "integrity": "sha512-XLCY3S10nz7uUFGTFypUuaO48cQAhCUiSsQBxpqqhlOqVz6yxGYdqAe7SmMKuplmpOoVL8OGDZrULzd0bIjtYA==",
       "dependencies": {
         "acorn-loose": "8.3.0",
         "acorn-walk": "8.2.0",
         "dotenv": "16.0.3",
         "fs-extra": "11.1.0",
         "globby": "11.1.0",
-        "mikro-orm": "~5.6.6",
+        "mikro-orm": "~5.6.7",
         "reflect-metadata": "0.1.13"
       },
       "engines": {
       }
     },
     "node_modules/@mikro-orm/knex": {
-      "version": "5.6.6",
-      "resolved": "https://registry.npmjs.org/@mikro-orm/knex/-/knex-5.6.6.tgz",
-      "integrity": "sha512-llBuE4SecPPeLThXJ4EYppT0XwWvOeuLSpGmbCipWBshzpRa1YSRJg1EDP7+M0orkfEupBFJexaphZ83iI5eOw==",
+      "version": "5.6.7",
+      "resolved": "https://registry.npmjs.org/@mikro-orm/knex/-/knex-5.6.7.tgz",
+      "integrity": "sha512-UDwAt+lII9/G0NfaYjrwyChlhBbgNrq700VCy4aaSbJ1S2gysRfhzeiDVtlmd+zRIHDAz+U5NETspgnP128TKw==",
       "dependencies": {
         "fs-extra": "11.1.0",
         "knex": "2.4.0",
       }
     },
     "node_modules/@mikro-orm/mariadb": {
-      "version": "5.6.6",
-      "resolved": "https://registry.npmjs.org/@mikro-orm/mariadb/-/mariadb-5.6.6.tgz",
-      "integrity": "sha512-3ex7WtRV+3nnGlF314rHFCSbyVhdx/9MpRep1FY1W004A06Ks4Yb6t4fkHk9Gv+7Sjfr7IVH2owhzcDX2iXmew==",
+      "version": "5.6.7",
+      "resolved": "https://registry.npmjs.org/@mikro-orm/mariadb/-/mariadb-5.6.7.tgz",
+      "integrity": "sha512-g+n3PhsEXiJBG8VnspaYIANJ9jMZzhpXCCJzGhcS0f99fSnt1+/2U66WJJ6D07LVh51d2qISnYEfrKwuSArMKA==",
       "dependencies": {
-        "@mikro-orm/knex": "~5.6.6",
+        "@mikro-orm/knex": "~5.6.7",
         "mariadb": "2.5.6"
       },
       "engines": {
       }
     },
     "node_modules/@mikro-orm/reflection": {
-      "version": "5.6.6",
-      "resolved": "https://registry.npmjs.org/@mikro-orm/reflection/-/reflection-5.6.6.tgz",
-      "integrity": "sha512-2b+uLUX+RFH/ptEOuqM/jwBM1FBABGkgOiH3oGTleCr1tdd21HBNrfcNoNtNOprU+YQeQokFh8SaxByOJ18yTQ==",
+      "version": "5.6.7",
+      "resolved": "https://registry.npmjs.org/@mikro-orm/reflection/-/reflection-5.6.7.tgz",
+      "integrity": "sha512-20uzBXhoCIgQqFA67I14etutmdSYbw/hr96mbCCOSEheTjskL5KfpA6AS90QBk7NZtMtso730GhNXnsacqQeLA==",
       "dependencies": {
         "globby": "11.1.0",
         "ts-morph": "17.0.1"
       }
     },
     "node_modules/@mikro-orm/sqlite": {
-      "version": "5.6.6",
-      "resolved": "https://registry.npmjs.org/@mikro-orm/sqlite/-/sqlite-5.6.6.tgz",
-      "integrity": "sha512-/JFLr5JtWSdJ5jpZG8DqxFWl+F+gRYUv6OH0nGTKRzQ7JDiZQ6vxulpXsg++g06vgZrR3CKAD7MW3EAa3ORl/Q==",
+      "version": "5.6.7",
+      "resolved": "https://registry.npmjs.org/@mikro-orm/sqlite/-/sqlite-5.6.7.tgz",
+      "integrity": "sha512-TKJGkbrxgd3azcwuUXaJ5kPpeqCA3Cn/zHohTQ3WCmLicbcXTxxjR5jwNGrn22gkmiPCSOTKVAb0MmQUnFpJ1w==",
       "dependencies": {
-        "@mikro-orm/knex": "~5.6.6",
+        "@mikro-orm/knex": "~5.6.7",
         "fs-extra": "11.1.0",
         "sqlite3": "5.1.4",
         "sqlstring-sqlite": "0.1.1"
       }
     },
     "node_modules/mikro-orm": {
-      "version": "5.6.6",
-      "resolved": "https://registry.npmjs.org/mikro-orm/-/mikro-orm-5.6.6.tgz",
-      "integrity": "sha512-ckRwQ+0O6o6q80UzqKr/1HK8iecJXGNk4a5p27yLOU8GYwBXH5kGIAQLB47O6rjMiDJdOzle7Fi4VG1YNF9gVg==",
+      "version": "5.6.7",
+      "resolved": "https://registry.npmjs.org/mikro-orm/-/mikro-orm-5.6.7.tgz",
+      "integrity": "sha512-mxkg+BDXmuQh4PYlWkv0Yysy33Yvg/31BZN4UWWZpV9gcLMYPQcaEF8qfSW7sMbrdNSJcvqf2MX6etmIARHJ9A==",
       "engines": {
         "node": ">= 14.0.0"
       }
       }
     },
     "node_modules/node-fetch": {
-      "version": "2.6.7",
-      "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz",
-      "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==",
+      "version": "2.6.8",
+      "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.8.tgz",
+      "integrity": "sha512-RZ6dBYuj8dRSfxpUSu+NsdF1dpPpluJxwOp+6IoDp/sH2QNDSvurYsAa+F1WxY2RjA1iP93xhcsUoYbF2XBqVg==",
       "dependencies": {
         "whatwg-url": "^5.0.0"
       },
       }
     },
     "node_modules/release-it/node_modules/data-uri-to-buffer": {
-      "version": "4.0.0",
-      "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-4.0.0.tgz",
-      "integrity": "sha512-Vr3mLBA8qWmcuschSLAOogKgQ/Jwxulv3RNE4FXnYWRGujzrRWQI4m12fQqRkwX06C0KanhLr4hK+GydchZsaA==",
+      "version": "4.0.1",
+      "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-4.0.1.tgz",
+      "integrity": "sha512-0R9ikRb668HB7QDxT1vkpuUBtqc53YyAwMwGeUFKRojY/NWKvdZ+9UYtRfGmhqNbRkTSVpMbmyhXipFFv2cb/A==",
       "dev": true,
       "engines": {
         "node": ">= 12"
         "node": ">= 14"
       }
     },
-    "node_modules/yargonaut": {
-      "version": "1.1.4",
-      "resolved": "https://registry.npmjs.org/yargonaut/-/yargonaut-1.1.4.tgz",
-      "integrity": "sha512-rHgFmbgXAAzl+1nngqOcwEljqHGG9uUZoPjsdZEs1w5JW9RXYzrSvH/u70C1JE5qFi0qjsdhnUX/dJRpWqitSA==",
-      "dev": true,
-      "dependencies": {
-        "chalk": "^1.1.1",
-        "figlet": "^1.1.1",
-        "parent-require": "^1.0.0"
-      }
-    },
-    "node_modules/yargonaut/node_modules/ansi-regex": {
-      "version": "2.1.1",
-      "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz",
-      "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==",
-      "dev": true,
-      "engines": {
-        "node": ">=0.10.0"
-      }
-    },
-    "node_modules/yargonaut/node_modules/ansi-styles": {
-      "version": "2.2.1",
-      "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz",
-      "integrity": "sha512-kmCevFghRiWM7HB5zTPULl4r9bVFSWjz62MhqizDGUrq2NWuNMQyuv4tHHoKJHs69M/MF64lEcHdYIocrdWQYA==",
-      "dev": true,
-      "engines": {
-        "node": ">=0.10.0"
-      }
-    },
-    "node_modules/yargonaut/node_modules/chalk": {
-      "version": "1.1.3",
-      "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz",
-      "integrity": "sha512-U3lRVLMSlsCfjqYPbLyVv11M9CPW4I728d6TCKMAOJueEeB9/8o+eSsMnxPJD+Q+K909sdESg7C+tIkoH6on1A==",
-      "dev": true,
-      "dependencies": {
-        "ansi-styles": "^2.2.1",
-        "escape-string-regexp": "^1.0.2",
-        "has-ansi": "^2.0.0",
-        "strip-ansi": "^3.0.0",
-        "supports-color": "^2.0.0"
-      },
-      "engines": {
-        "node": ">=0.10.0"
-      }
-    },
-    "node_modules/yargonaut/node_modules/escape-string-regexp": {
-      "version": "1.0.5",
-      "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz",
-      "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==",
-      "dev": true,
-      "engines": {
-        "node": ">=0.8.0"
-      }
-    },
-    "node_modules/yargonaut/node_modules/strip-ansi": {
-      "version": "3.0.1",
-      "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz",
-      "integrity": "sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg==",
-      "dev": true,
-      "dependencies": {
-        "ansi-regex": "^2.0.0"
-      },
-      "engines": {
-        "node": ">=0.10.0"
-      }
-    },
-    "node_modules/yargonaut/node_modules/supports-color": {
-      "version": "2.0.0",
-      "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz",
-      "integrity": "sha512-KKNVtd6pCYgPIKU4cp2733HWYCpplQhddZLBUryaAHou723x+FRzQ5Df824Fj+IyyuiQTRoub4SnIFfIcrp70g==",
-      "dev": true,
-      "engines": {
-        "node": ">=0.8.0"
-      }
-    },
     "node_modules/yargs": {
       "version": "15.4.1",
       "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz",
       "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==",
       "dev": true
     },
+    "@jercle/yargonaut": {
+      "version": "1.1.5",
+      "resolved": "https://registry.npmjs.org/@jercle/yargonaut/-/yargonaut-1.1.5.tgz",
+      "integrity": "sha512-zBp2myVvBHp1UaJsNTyS6q4UDKT7eRiqTS4oNTS6VQMd6mpxYOdbeK4pY279cDCdakGy6hG0J3ejoXZVsPwHqw==",
+      "dev": true,
+      "requires": {
+        "chalk": "^4.1.2",
+        "figlet": "^1.5.2",
+        "parent-require": "^1.0.0"
+      }
+    },
     "@jest/expect-utils": {
       "version": "29.3.1",
       "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-29.3.1.tgz",
       }
     },
     "@mikro-orm/cli": {
-      "version": "5.6.6",
-      "resolved": "https://registry.npmjs.org/@mikro-orm/cli/-/cli-5.6.6.tgz",
-      "integrity": "sha512-jcIiYg+tL8V+ETj+4mUYz9XHV8QNS0qj4Rv14nhIzcryvDbooEs30UnNOpohGvnmmgN85Cbij8rRM8FWJMIvRQ==",
+      "version": "5.6.7",
+      "resolved": "https://registry.npmjs.org/@mikro-orm/cli/-/cli-5.6.7.tgz",
+      "integrity": "sha512-yIYi2hf/GxSRk9bGXNrjhk0TopfHf+ah2vv/knYid3aAh1HZF7ZHOuTdRSc5Et7LYwtXICF1cPQYyknmuFoESw==",
       "dev": true,
       "requires": {
-        "@mikro-orm/core": "~5.6.6",
-        "@mikro-orm/knex": "~5.6.6",
+        "@jercle/yargonaut": "1.1.5",
+        "@mikro-orm/core": "~5.6.7",
+        "@mikro-orm/knex": "~5.6.7",
         "fs-extra": "11.1.0",
         "tsconfig-paths": "4.1.2",
-        "yargonaut": "1.1.4",
         "yargs": "15.4.1"
       },
       "dependencies": {
       }
     },
     "@mikro-orm/core": {
-      "version": "5.6.6",
-      "resolved": "https://registry.npmjs.org/@mikro-orm/core/-/core-5.6.6.tgz",
-      "integrity": "sha512-L5PPwYz2mwlhmaqcEDBZxKdf3ssV25lZWWGXJcKnszf13IUVY22TUOLYmP/Fv8wqvQ/kJzhSxzhWrDuJInMYtw==",
+      "version": "5.6.7",
+      "resolved": "https://registry.npmjs.org/@mikro-orm/core/-/core-5.6.7.tgz",
+      "integrity": "sha512-XLCY3S10nz7uUFGTFypUuaO48cQAhCUiSsQBxpqqhlOqVz6yxGYdqAe7SmMKuplmpOoVL8OGDZrULzd0bIjtYA==",
       "requires": {
         "acorn-loose": "8.3.0",
         "acorn-walk": "8.2.0",
         "dotenv": "16.0.3",
         "fs-extra": "11.1.0",
         "globby": "11.1.0",
-        "mikro-orm": "~5.6.6",
+        "mikro-orm": "~5.6.7",
         "reflect-metadata": "0.1.13"
       },
       "dependencies": {
       }
     },
     "@mikro-orm/knex": {
-      "version": "5.6.6",
-      "resolved": "https://registry.npmjs.org/@mikro-orm/knex/-/knex-5.6.6.tgz",
-      "integrity": "sha512-llBuE4SecPPeLThXJ4EYppT0XwWvOeuLSpGmbCipWBshzpRa1YSRJg1EDP7+M0orkfEupBFJexaphZ83iI5eOw==",
+      "version": "5.6.7",
+      "resolved": "https://registry.npmjs.org/@mikro-orm/knex/-/knex-5.6.7.tgz",
+      "integrity": "sha512-UDwAt+lII9/G0NfaYjrwyChlhBbgNrq700VCy4aaSbJ1S2gysRfhzeiDVtlmd+zRIHDAz+U5NETspgnP128TKw==",
       "requires": {
         "fs-extra": "11.1.0",
         "knex": "2.4.0",
       }
     },
     "@mikro-orm/mariadb": {
-      "version": "5.6.6",
-      "resolved": "https://registry.npmjs.org/@mikro-orm/mariadb/-/mariadb-5.6.6.tgz",
-      "integrity": "sha512-3ex7WtRV+3nnGlF314rHFCSbyVhdx/9MpRep1FY1W004A06Ks4Yb6t4fkHk9Gv+7Sjfr7IVH2owhzcDX2iXmew==",
+      "version": "5.6.7",
+      "resolved": "https://registry.npmjs.org/@mikro-orm/mariadb/-/mariadb-5.6.7.tgz",
+      "integrity": "sha512-g+n3PhsEXiJBG8VnspaYIANJ9jMZzhpXCCJzGhcS0f99fSnt1+/2U66WJJ6D07LVh51d2qISnYEfrKwuSArMKA==",
       "requires": {
-        "@mikro-orm/knex": "~5.6.6",
+        "@mikro-orm/knex": "~5.6.7",
         "mariadb": "2.5.6"
       }
     },
     "@mikro-orm/reflection": {
-      "version": "5.6.6",
-      "resolved": "https://registry.npmjs.org/@mikro-orm/reflection/-/reflection-5.6.6.tgz",
-      "integrity": "sha512-2b+uLUX+RFH/ptEOuqM/jwBM1FBABGkgOiH3oGTleCr1tdd21HBNrfcNoNtNOprU+YQeQokFh8SaxByOJ18yTQ==",
+      "version": "5.6.7",
+      "resolved": "https://registry.npmjs.org/@mikro-orm/reflection/-/reflection-5.6.7.tgz",
+      "integrity": "sha512-20uzBXhoCIgQqFA67I14etutmdSYbw/hr96mbCCOSEheTjskL5KfpA6AS90QBk7NZtMtso730GhNXnsacqQeLA==",
       "requires": {
         "globby": "11.1.0",
         "ts-morph": "17.0.1"
       }
     },
     "@mikro-orm/sqlite": {
-      "version": "5.6.6",
-      "resolved": "https://registry.npmjs.org/@mikro-orm/sqlite/-/sqlite-5.6.6.tgz",
-      "integrity": "sha512-/JFLr5JtWSdJ5jpZG8DqxFWl+F+gRYUv6OH0nGTKRzQ7JDiZQ6vxulpXsg++g06vgZrR3CKAD7MW3EAa3ORl/Q==",
+      "version": "5.6.7",
+      "resolved": "https://registry.npmjs.org/@mikro-orm/sqlite/-/sqlite-5.6.7.tgz",
+      "integrity": "sha512-TKJGkbrxgd3azcwuUXaJ5kPpeqCA3Cn/zHohTQ3WCmLicbcXTxxjR5jwNGrn22gkmiPCSOTKVAb0MmQUnFpJ1w==",
       "requires": {
-        "@mikro-orm/knex": "~5.6.6",
+        "@mikro-orm/knex": "~5.6.7",
         "fs-extra": "11.1.0",
         "sqlite3": "5.1.4",
         "sqlstring-sqlite": "0.1.1"
       }
     },
     "mikro-orm": {
-      "version": "5.6.6",
-      "resolved": "https://registry.npmjs.org/mikro-orm/-/mikro-orm-5.6.6.tgz",
-      "integrity": "sha512-ckRwQ+0O6o6q80UzqKr/1HK8iecJXGNk4a5p27yLOU8GYwBXH5kGIAQLB47O6rjMiDJdOzle7Fi4VG1YNF9gVg=="
+      "version": "5.6.7",
+      "resolved": "https://registry.npmjs.org/mikro-orm/-/mikro-orm-5.6.7.tgz",
+      "integrity": "sha512-mxkg+BDXmuQh4PYlWkv0Yysy33Yvg/31BZN4UWWZpV9gcLMYPQcaEF8qfSW7sMbrdNSJcvqf2MX6etmIARHJ9A=="
     },
     "miller-rabin": {
       "version": "4.0.1",
       "dev": true
     },
     "node-fetch": {
-      "version": "2.6.7",
-      "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.7.tgz",
-      "integrity": "sha512-ZjMPFEfVx5j+y2yF35Kzx5sF7kDzxuDj6ziH4FFbOp87zKDZNx8yExJIb05OGF4Nlt9IHFIMBkRl41VdvcNdbQ==",
+      "version": "2.6.8",
+      "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.8.tgz",
+      "integrity": "sha512-RZ6dBYuj8dRSfxpUSu+NsdF1dpPpluJxwOp+6IoDp/sH2QNDSvurYsAa+F1WxY2RjA1iP93xhcsUoYbF2XBqVg==",
       "requires": {
         "whatwg-url": "^5.0.0"
       },
           }
         },
         "data-uri-to-buffer": {
-          "version": "4.0.0",
-          "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-4.0.0.tgz",
-          "integrity": "sha512-Vr3mLBA8qWmcuschSLAOogKgQ/Jwxulv3RNE4FXnYWRGujzrRWQI4m12fQqRkwX06C0KanhLr4hK+GydchZsaA==",
+          "version": "4.0.1",
+          "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-4.0.1.tgz",
+          "integrity": "sha512-0R9ikRb668HB7QDxT1vkpuUBtqc53YyAwMwGeUFKRojY/NWKvdZ+9UYtRfGmhqNbRkTSVpMbmyhXipFFv2cb/A==",
           "dev": true
         },
         "emoji-regex": {
       "integrity": "sha512-AacA8nRULjKMX2DvWvOAdBZMOfQlypSFkjcOcu9FalllIDJ1kvlREzcdIZmidQUqqeMv7jorHjq2HlLv/+c2lg==",
       "dev": true
     },
-    "yargonaut": {
-      "version": "1.1.4",
-      "resolved": "https://registry.npmjs.org/yargonaut/-/yargonaut-1.1.4.tgz",
-      "integrity": "sha512-rHgFmbgXAAzl+1nngqOcwEljqHGG9uUZoPjsdZEs1w5JW9RXYzrSvH/u70C1JE5qFi0qjsdhnUX/dJRpWqitSA==",
-      "dev": true,
-      "requires": {
-        "chalk": "^1.1.1",
-        "figlet": "^1.1.1",
-        "parent-require": "^1.0.0"
-      },
-      "dependencies": {
-        "ansi-regex": {
-          "version": "2.1.1",
-          "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz",
-          "integrity": "sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA==",
-          "dev": true
-        },
-        "ansi-styles": {
-          "version": "2.2.1",
-          "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz",
-          "integrity": "sha512-kmCevFghRiWM7HB5zTPULl4r9bVFSWjz62MhqizDGUrq2NWuNMQyuv4tHHoKJHs69M/MF64lEcHdYIocrdWQYA==",
-          "dev": true
-        },
-        "chalk": {
-          "version": "1.1.3",
-          "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz",
-          "integrity": "sha512-U3lRVLMSlsCfjqYPbLyVv11M9CPW4I728d6TCKMAOJueEeB9/8o+eSsMnxPJD+Q+K909sdESg7C+tIkoH6on1A==",
-          "dev": true,
-          "requires": {
-            "ansi-styles": "^2.2.1",
-            "escape-string-regexp": "^1.0.2",
-            "has-ansi": "^2.0.0",
-            "strip-ansi": "^3.0.0",
-            "supports-color": "^2.0.0"
-          }
-        },
-        "escape-string-regexp": {
-          "version": "1.0.5",
-          "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz",
-          "integrity": "sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg==",
-          "dev": true
-        },
-        "strip-ansi": {
-          "version": "3.0.1",
-          "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz",
-          "integrity": "sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg==",
-          "dev": true,
-          "requires": {
-            "ansi-regex": "^2.0.0"
-          }
-        },
-        "supports-color": {
-          "version": "2.0.0",
-          "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz",
-          "integrity": "sha512-KKNVtd6pCYgPIKU4cp2733HWYCpplQhddZLBUryaAHou723x+FRzQ5Df824Fj+IyyuiQTRoub4SnIFfIcrp70g==",
-          "dev": true
-        }
-      }
-    },
     "yargs": {
       "version": "15.4.1",
       "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.4.1.tgz",
index da2ea356ef6e98d91e83328e57995f652e50cad5..bb0c19b8f1fb2b6c0d1540d0325544bb62883a0f 100644 (file)
     "release": "release-it"
   },
   "dependencies": {
-    "@mikro-orm/core": "^5.6.6",
-    "@mikro-orm/mariadb": "^5.6.6",
-    "@mikro-orm/reflection": "^5.6.6",
-    "@mikro-orm/sqlite": "^5.6.6",
+    "@mikro-orm/core": "^5.6.7",
+    "@mikro-orm/mariadb": "^5.6.7",
+    "@mikro-orm/reflection": "^5.6.7",
+    "@mikro-orm/sqlite": "^5.6.7",
     "ajv": "^8.12.0",
     "ajv-formats": "^2.1.1",
     "basic-ftp": "^5.0.2",
   },
   "devDependencies": {
     "@istanbuljs/nyc-config-typescript": "^1.0.2",
-    "@mikro-orm/cli": "^5.6.6",
+    "@mikro-orm/cli": "^5.6.7",
     "@release-it/bumper": "^4.0.2",
     "@rollup/plugin-json": "^6.0.0",
     "@types/mocha": "^10.0.1",
index 77b5cb586d90ed9752ef911c1b9aa25ba53502cd..0671af3386336e5025045d3c347f407a5e4d8951 100644 (file)
@@ -192,6 +192,18 @@ export default class OCPP16RequestService extends OCPPRequestService {
           connectorId: commandParams?.connectorId,
           status: commandParams?.status,
           errorCode: commandParams?.errorCode,
+          ...(!Utils.isUndefined(commandParams?.info) && {
+            info: commandParams?.info,
+          }),
+          ...(!Utils.isUndefined(commandParams?.timestamp) && {
+            timestamp: commandParams?.timestamp,
+          }),
+          ...(!Utils.isUndefined(commandParams?.vendorId) && {
+            vendorId: commandParams?.vendorId,
+          }),
+          ...(!Utils.isUndefined(commandParams?.vendorErrorCode) && {
+            vendorErrorCode: commandParams?.vendorErrorCode,
+          }),
         } as unknown as Request;
       case OCPP16RequestCommand.START_TRANSACTION:
         return {
@@ -199,16 +211,23 @@ export default class OCPP16RequestService extends OCPPRequestService {
           ...(!Utils.isUndefined(commandParams?.idTag)
             ? { idTag: commandParams?.idTag }
             : { idTag: Constants.DEFAULT_IDTAG }),
-          meterStart: chargingStation.getEnergyActiveImportRegisterByConnectorId(
-            commandParams?.connectorId as number
-          ),
+          meterStart:
+            commandParams?.meterStart ??
+            chargingStation.getEnergyActiveImportRegisterByConnectorId(
+              commandParams?.connectorId as number
+            ),
           timestamp: commandParams?.timestamp ?? new Date(),
+          ...(!Utils.isUndefined(commandParams?.reservationId) && {
+            reservationId: commandParams?.reservationId,
+          }),
         } as unknown as Request;
       case OCPP16RequestCommand.STOP_TRANSACTION:
-        connectorId = chargingStation.getConnectorIdByTransactionId(
-          commandParams?.transactionId as number
-        );
-        commandParams?.meterStop &&
+        chargingStation.getTransactionDataMeterValues() &&
+          Utils.isUndefined(commandParams?.transactionData) &&
+          (connectorId = chargingStation.getConnectorIdByTransactionId(
+            commandParams?.transactionId as number
+          ));
+        !commandParams?.meterStop &&
           (energyActiveImportRegister =
             chargingStation.getEnergyActiveImportRegisterByTransactionId(
               commandParams?.transactionId as number,
@@ -221,17 +240,21 @@ export default class OCPP16RequestService extends OCPPRequestService {
             chargingStation.getTransactionIdTag(commandParams?.transactionId as number),
           meterStop: commandParams?.meterStop ?? energyActiveImportRegister,
           timestamp: commandParams?.timestamp ?? new Date(),
-          reason: commandParams?.reason,
-          ...(chargingStation.getTransactionDataMeterValues() && {
-            transactionData: OCPP16ServiceUtils.buildTransactionDataMeterValues(
-              chargingStation.getConnectorStatus(connectorId).transactionBeginMeterValue,
-              OCPP16ServiceUtils.buildTransactionEndMeterValue(
-                chargingStation,
-                connectorId,
-                (commandParams?.meterStop as number) ?? energyActiveImportRegister
-              )
-            ),
+          ...(!Utils.isUndefined(commandParams?.reason) && {
+            reason: commandParams?.reason,
           }),
+          ...(!Utils.isUndefined(commandParams?.transactionData)
+            ? { transactionData: commandParams?.transactionData }
+            : chargingStation.getTransactionDataMeterValues() && {
+                transactionData: OCPP16ServiceUtils.buildTransactionDataMeterValues(
+                  chargingStation.getConnectorStatus(connectorId).transactionBeginMeterValue,
+                  OCPP16ServiceUtils.buildTransactionEndMeterValue(
+                    chargingStation,
+                    connectorId,
+                    (commandParams?.meterStop as number) ?? energyActiveImportRegister
+                  )
+                ),
+              }),
         } as unknown as Request;
       case OCPP16RequestCommand.DATA_TRANSFER:
         return commandParams as unknown as Request;
index d811fba7a8ac2a4d097527106bc9725811e5a307..b76f3ac2ad0a5e8e693fe10f7d01f3a15e8e90b0 100644 (file)
@@ -34,7 +34,7 @@
         "@vue/tsconfig": "^0.1.3",
         "chai": "^4.3.7",
         "eslint": "^8.31.0",
-        "eslint-plugin-vue": "^9.8.0",
+        "eslint-plugin-vue": "^9.9.0",
         "prettier": "^2.8.2",
         "typescript": "~4.9.4"
       }
       }
     },
     "node_modules/eslint-plugin-vue": {
-      "version": "9.8.0",
-      "resolved": "https://registry.npmjs.org/eslint-plugin-vue/-/eslint-plugin-vue-9.8.0.tgz",
-      "integrity": "sha512-E/AXwcTzunyzM83C2QqDHxepMzvI2y6x+mmeYHbVDQlKFqmKYvRrhaVixEeeG27uI44p9oKDFiyCRw4XxgtfHA==",
+      "version": "9.9.0",
+      "resolved": "https://registry.npmjs.org/eslint-plugin-vue/-/eslint-plugin-vue-9.9.0.tgz",
+      "integrity": "sha512-YbubS7eK0J7DCf0U2LxvVP7LMfs6rC6UltihIgval3azO3gyDwEGVgsCMe1TmDiEkl6GdMKfRpaME6QxIYtzDQ==",
       "dev": true,
       "dependencies": {
         "eslint-utils": "^3.0.0",
       }
     },
     "eslint-plugin-vue": {
-      "version": "9.8.0",
-      "resolved": "https://registry.npmjs.org/eslint-plugin-vue/-/eslint-plugin-vue-9.8.0.tgz",
-      "integrity": "sha512-E/AXwcTzunyzM83C2QqDHxepMzvI2y6x+mmeYHbVDQlKFqmKYvRrhaVixEeeG27uI44p9oKDFiyCRw4XxgtfHA==",
+      "version": "9.9.0",
+      "resolved": "https://registry.npmjs.org/eslint-plugin-vue/-/eslint-plugin-vue-9.9.0.tgz",
+      "integrity": "sha512-YbubS7eK0J7DCf0U2LxvVP7LMfs6rC6UltihIgval3azO3gyDwEGVgsCMe1TmDiEkl6GdMKfRpaME6QxIYtzDQ==",
       "dev": true,
       "requires": {
         "eslint-utils": "^3.0.0",
index eaf827d4cd4a5fbed8e07a1d5363f9dc876d2cc5..037cfaf7f33d554d28586a7a80df89557a7ea0dc 100644 (file)
@@ -37,7 +37,7 @@
     "@vue/tsconfig": "^0.1.3",
     "chai": "^4.3.7",
     "eslint": "^8.31.0",
-    "eslint-plugin-vue": "^9.8.0",
+    "eslint-plugin-vue": "^9.9.0",
     "prettier": "^2.8.2",
     "typescript": "~4.9.4"
   },