Apply dependencies update
authorJérôme Benoit <jerome.benoit@sap.com>
Thu, 5 Jan 2023 20:25:06 +0000 (21:25 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Thu, 5 Jan 2023 20:25:06 +0000 (21:25 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
package-lock.json
package.json
src/types/ChargingStationTemplate.ts
src/types/ocpp/1.6/Requests.ts
src/types/ocpp/Requests.ts

index 255313987bb24f34c46428a15abecbfbf9ca3c0d..cf87f2db70d37a860b29107809e46a0633f9c70a 100644 (file)
@@ -36,7 +36,7 @@
       "devDependencies": {
         "@istanbuljs/nyc-config-typescript": "^1.0.2",
         "@mikro-orm/cli": "^5.6.3",
-        "@release-it/bumper": "^4.0.1",
+        "@release-it/bumper": "^4.0.2",
         "@rollup/plugin-json": "^6.0.0",
         "@types/mocha": "^10.0.1",
         "@types/mochawesome": "^6.2.1",
@@ -82,7 +82,7 @@
       },
       "optionalDependencies": {
         "bufferutil": "^4.0.7",
-        "utf-8-validate": "^5.0.10"
+        "utf-8-validate": "^6.0.0"
       }
     },
     "node_modules/@assemblyscript/loader": {
       }
     },
     "node_modules/@release-it/bumper": {
-      "version": "4.0.1",
-      "resolved": "https://registry.npmjs.org/@release-it/bumper/-/bumper-4.0.1.tgz",
-      "integrity": "sha512-/HG+COX2MtDC7Ca25XqZYcEwpq1gDifjmSeatbjEc293y+DPUwuIjs6LrMsEUr91UuIg9NTqriKzXj//gq3QCw==",
+      "version": "4.0.2",
+      "resolved": "https://registry.npmjs.org/@release-it/bumper/-/bumper-4.0.2.tgz",
+      "integrity": "sha512-HjiFIBNvb67cLTbzdm6EqiSRwpB4MJY4TGJFY/ac5qnIxERWK5gx1zBnwbJZffDSoS46hJMugoXrDbITEfX4gA==",
       "dev": true,
       "dependencies": {
         "@iarna/toml": "^2.2.5",
       }
     },
     "node_modules/release-it/node_modules/ansi-escapes/node_modules/type-fest": {
-      "version": "3.5.0",
-      "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-3.5.0.tgz",
-      "integrity": "sha512-bI3zRmZC8K0tUz1HjbIOAGQwR2CoPQG68N5IF7gm0LBl8QSNXzkmaWnkWccCUL5uG9mCsp4sBwC8SBrNSISWew==",
+      "version": "3.5.1",
+      "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-3.5.1.tgz",
+      "integrity": "sha512-70T99cpILFk2fzwuljwWxmazSphFrdOe3gRHbp6bqs71pxFBbJwFqnmkLO2lQL6aLHxHmYAnP/sL+AJWpT70jA==",
       "dev": true,
       "engines": {
         "node": ">=14.16"
       }
     },
     "node_modules/utf-8-validate": {
-      "version": "5.0.10",
-      "resolved": "https://registry.npmjs.org/utf-8-validate/-/utf-8-validate-5.0.10.tgz",
-      "integrity": "sha512-Z6czzLq4u8fPOyx7TU6X3dvUZVvoJmxSQ+IcrlmagKhilxlhZgxPK6C5Jqbkw1IDUmFTM+cz9QDnnLTwDz/2gQ==",
+      "version": "6.0.0",
+      "resolved": "https://registry.npmjs.org/utf-8-validate/-/utf-8-validate-6.0.0.tgz",
+      "integrity": "sha512-OCJuwxQsnG51swYmNloViggxNOFO/leOZpnb/vVeoastJbrzrZZU7lGsYlUcdkCl9nsBu2nkKLjpljb3Ckvb/Q==",
       "hasInstallScript": true,
       "optional": true,
       "dependencies": {
       }
     },
     "@release-it/bumper": {
-      "version": "4.0.1",
-      "resolved": "https://registry.npmjs.org/@release-it/bumper/-/bumper-4.0.1.tgz",
-      "integrity": "sha512-/HG+COX2MtDC7Ca25XqZYcEwpq1gDifjmSeatbjEc293y+DPUwuIjs6LrMsEUr91UuIg9NTqriKzXj//gq3QCw==",
+      "version": "4.0.2",
+      "resolved": "https://registry.npmjs.org/@release-it/bumper/-/bumper-4.0.2.tgz",
+      "integrity": "sha512-HjiFIBNvb67cLTbzdm6EqiSRwpB4MJY4TGJFY/ac5qnIxERWK5gx1zBnwbJZffDSoS46hJMugoXrDbITEfX4gA==",
       "dev": true,
       "requires": {
         "@iarna/toml": "^2.2.5",
           },
           "dependencies": {
             "type-fest": {
-              "version": "3.5.0",
-              "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-3.5.0.tgz",
-              "integrity": "sha512-bI3zRmZC8K0tUz1HjbIOAGQwR2CoPQG68N5IF7gm0LBl8QSNXzkmaWnkWccCUL5uG9mCsp4sBwC8SBrNSISWew==",
+              "version": "3.5.1",
+              "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-3.5.1.tgz",
+              "integrity": "sha512-70T99cpILFk2fzwuljwWxmazSphFrdOe3gRHbp6bqs71pxFBbJwFqnmkLO2lQL6aLHxHmYAnP/sL+AJWpT70jA==",
               "dev": true
             }
           }
       }
     },
     "utf-8-validate": {
-      "version": "5.0.10",
-      "resolved": "https://registry.npmjs.org/utf-8-validate/-/utf-8-validate-5.0.10.tgz",
-      "integrity": "sha512-Z6czzLq4u8fPOyx7TU6X3dvUZVvoJmxSQ+IcrlmagKhilxlhZgxPK6C5Jqbkw1IDUmFTM+cz9QDnnLTwDz/2gQ==",
+      "version": "6.0.0",
+      "resolved": "https://registry.npmjs.org/utf-8-validate/-/utf-8-validate-6.0.0.tgz",
+      "integrity": "sha512-OCJuwxQsnG51swYmNloViggxNOFO/leOZpnb/vVeoastJbrzrZZU7lGsYlUcdkCl9nsBu2nkKLjpljb3Ckvb/Q==",
       "optional": true,
       "requires": {
         "node-gyp-build": "^4.3.0"
index d0433ead960d2ee3c8366c253d7a8786ed4c8f7e..d0851240576f46915aabffbb98502a0d4ba1d59a 100644 (file)
   },
   "optionalDependencies": {
     "bufferutil": "^4.0.7",
-    "utf-8-validate": "^5.0.10"
+    "utf-8-validate": "^6.0.0"
   },
   "devDependencies": {
     "@istanbuljs/nyc-config-typescript": "^1.0.2",
     "@mikro-orm/cli": "^5.6.3",
-    "@release-it/bumper": "^4.0.1",
+    "@release-it/bumper": "^4.0.2",
     "@rollup/plugin-json": "^6.0.0",
     "@types/mocha": "^10.0.1",
     "@types/mochawesome": "^6.2.1",
index cd92616c11063cb4060013081ce8ffd45e974bc2..c6640771e673933d1d67ac252801ff22fbd9a638 100644 (file)
@@ -7,7 +7,12 @@ import type { ChargingStationOcppConfiguration } from './ChargingStationOcppConf
 import type { ConnectorStatus } from './ConnectorStatus';
 import type { OCPPProtocol } from './ocpp/OCPPProtocol';
 import type { OCPPVersion } from './ocpp/OCPPVersion';
-import type { IncomingRequestCommand, MessageTrigger, RequestCommand } from './ocpp/Requests';
+import type {
+  FirmwareStatus,
+  IncomingRequestCommand,
+  MessageTrigger,
+  RequestCommand,
+} from './ocpp/Requests';
 
 export enum CurrentType {
   AC = 'AC',
@@ -38,11 +43,11 @@ export type WsOptions = ClientOptions & ClientRequestArgs;
 type FirmwareUpgrade = {
   versionUpgrade: {
     patternGroup?: number | number[];
-    to?: string;
+    step?: number;
   };
   reset?: boolean;
   resetDelay?: number;
-  checkIntegrity?: boolean;
+  failureMessage?: FirmwareStatus;
 };
 
 type CommandsSupport = {
index 97dccc1e1480418bb4f8740be23da78252be953b..78fe4105fe2f533ea4d0b2c9991a3e4cf89de5e6 100644 (file)
@@ -15,6 +15,7 @@ export enum OCPP16RequestCommand {
   STOP_TRANSACTION = 'StopTransaction',
   METER_VALUES = 'MeterValues',
   DIAGNOSTICS_STATUS_NOTIFICATION = 'DiagnosticsStatusNotification',
+  FIRMWARE_STATUS_NOTIFICATION = 'FirmwareStatusNotification',
   DATA_TRANSFER = 'DataTransfer',
 }
 
@@ -122,6 +123,20 @@ export interface OCPP16UpdateFirmwareRequest extends JsonObject {
   retryInterval?: number;
 }
 
+export enum OCPP16FirmwareStatus {
+  Downloaded = 'Downloaded',
+  DownloadFailed = 'DownloadFailed',
+  Downloading = 'Downloading',
+  Idle = 'Idle',
+  InstallationFailed = 'InstallationFailed',
+  Installing = 'Installing',
+  Installed = 'Installed',
+}
+
+export type OCPP16FirmwareStatusNotificationRequest = {
+  status: OCPP16FirmwareStatus;
+};
+
 export interface GetDiagnosticsRequest extends JsonObject {
   location: string;
   retries?: number;
index 09e2b0cc5a7df446239c90839607c57f64262aab..a21949962049f95634c73d5fb061a7694748ead0 100644 (file)
@@ -7,6 +7,7 @@ import {
   OCPP16AvailabilityType,
   type OCPP16BootNotificationRequest,
   type OCPP16DataTransferRequest,
+  OCPP16FirmwareStatus,
   type OCPP16HeartbeatRequest,
   OCPP16IncomingRequestCommand,
   OCPP16MessageTrigger,
@@ -82,4 +83,9 @@ export const DiagnosticsStatus = {
 } as const;
 export type DiagnosticsStatus = OCPP16DiagnosticsStatus;
 
+export const FirmwareStatus = {
+  ...OCPP16FirmwareStatus,
+} as const;
+export type FirmwareStatus = OCPP16FirmwareStatus;
+
 export type ResponseType = JsonType | OCPPError;