"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",
},
"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"
},
"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",
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',
type FirmwareUpgrade = {
versionUpgrade: {
patternGroup?: number | number[];
- to?: string;
+ step?: number;
};
reset?: boolean;
resetDelay?: number;
- checkIntegrity?: boolean;
+ failureMessage?: FirmwareStatus;
};
type CommandsSupport = {
STOP_TRANSACTION = 'StopTransaction',
METER_VALUES = 'MeterValues',
DIAGNOSTICS_STATUS_NOTIFICATION = 'DiagnosticsStatusNotification',
+ FIRMWARE_STATUS_NOTIFICATION = 'FirmwareStatusNotification',
DATA_TRANSFER = 'DataTransfer',
}
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;