From 271426fb72220de7969c8200067f51793a5502a7 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 26 Aug 2024 18:24:44 +0200 Subject: [PATCH] build(deps): bump the regular group with 3 updates (#1151) * build(deps): bump the regular group with 3 updates Bumps the regular group with 3 updates: [poolifier](https://github.com/poolifier/poolifier), [neostandard](https://github.com/neostandard/neostandard) and [tsx](https://github.com/privatenumber/tsx). Updates `poolifier` from 4.2.3 to 4.2.5 - [Release notes](https://github.com/poolifier/poolifier/releases) - [Changelog](https://github.com/poolifier/poolifier/blob/master/CHANGELOG.md) - [Commits](https://github.com/poolifier/poolifier/compare/v4.2.3...v4.2.5) Updates `neostandard` from 0.11.3 to 0.11.4 - [Release notes](https://github.com/neostandard/neostandard/releases) - [Changelog](https://github.com/neostandard/neostandard/blob/main/CHANGELOG.md) - [Commits](https://github.com/neostandard/neostandard/compare/v0.11.3...v0.11.4) Updates `tsx` from 4.17.0 to 4.18.0 - [Release notes](https://github.com/privatenumber/tsx/releases) - [Changelog](https://github.com/privatenumber/tsx/blob/master/release.config.cjs) - [Commits](https://github.com/privatenumber/tsx/compare/v4.17.0...v4.18.0) --- updated-dependencies: - dependency-name: poolifier dependency-type: direct:production update-type: version-update:semver-patch dependency-group: regular - dependency-name: neostandard dependency-type: direct:development update-type: version-update:semver-patch dependency-group: regular - dependency-name: tsx dependency-type: direct:development update-type: version-update:semver-minor dependency-group: regular ... Signed-off-by: dependabot[bot] * [autofix.ci] apply automated fixes --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> --- package.json | 6 +-- pnpm-lock.yaml | 48 +++++++++---------- src/charging-station/Bootstrap.ts | 2 +- src/charging-station/SharedLRUCache.ts | 2 +- .../ui-server/UIHttpServer.ts | 2 +- src/types/AutomaticTransactionGenerator.ts | 2 +- src/types/ChargingStationEvents.ts | 2 +- src/types/ChargingStationTemplate.ts | 10 ++-- src/types/ChargingStationWorker.ts | 2 +- src/types/ConfigurationData.ts | 6 +-- src/types/FileType.ts | 2 +- src/types/MapStringifyFormat.ts | 2 +- src/types/Storage.ts | 4 +- src/types/UIProtocol.ts | 12 ++--- src/types/WebSocket.ts | 2 +- src/types/WorkerBroadcastChannel.ts | 2 +- src/types/ocpp/1.6/ChargePointErrorCode.ts | 2 +- src/types/ocpp/1.6/ChargePointStatus.ts | 2 +- src/types/ocpp/1.6/ChargingProfile.ts | 8 ++-- src/types/ocpp/1.6/Configuration.ts | 6 +-- src/types/ocpp/1.6/DiagnosticsStatus.ts | 2 +- src/types/ocpp/1.6/MeterValues.ts | 12 ++--- src/types/ocpp/1.6/Requests.ts | 12 ++--- src/types/ocpp/1.6/Responses.ts | 16 +++---- src/types/ocpp/1.6/Transaction.ts | 4 +- src/types/ocpp/2.0/Common.ts | 26 +++++----- src/types/ocpp/2.0/Requests.ts | 4 +- src/types/ocpp/2.0/Variables.ts | 12 ++--- src/types/ocpp/Common.ts | 4 +- src/types/ocpp/Configuration.ts | 2 +- src/types/ocpp/ErrorType.ts | 2 +- src/types/ocpp/MessageType.ts | 2 +- src/types/ocpp/OCPPProtocol.ts | 2 +- src/types/ocpp/OCPPVersion.ts | 2 +- src/types/ocpp/Reservation.ts | 2 +- src/utils/AsyncLock.ts | 2 +- .../ChargingStationConfigurationUtils.ts | 2 +- src/worker/WorkerTypes.ts | 6 +-- ui/web/src/types/ChargingStationType.ts | 26 +++++----- ui/web/src/types/UIProtocol.ts | 12 ++--- 40 files changed, 138 insertions(+), 138 deletions(-) diff --git a/package.json b/package.json index 12646596..80d010ea 100644 --- a/package.json +++ b/package.json @@ -99,7 +99,7 @@ "logform": "^2.6.1", "mnemonist": "0.40.0-rc1", "mongodb": "^6.8.0", - "poolifier": "^4.2.3", + "poolifier": "^4.2.5", "rambda": "^9.3.0", "tar": "^7.4.3", "winston": "^3.14.2", @@ -133,12 +133,12 @@ "glob": "^11.0.0", "husky": "^9.1.5", "lint-staged": "^15.2.9", - "neostandard": "^0.11.3", + "neostandard": "^0.11.4", "prettier": "^3.3.3", "rimraf": "^6.0.1", "semver": "^7.6.3", "ts-node": "^10.9.2", - "tsx": "^4.17.0", + "tsx": "^4.18.0", "typescript": "~5.5.4" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1992e631..b4440a87 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -57,8 +57,8 @@ importers: specifier: ^6.8.0 version: 6.8.0(socks@2.8.3) poolifier: - specifier: ^4.2.3 - version: 4.2.3 + specifier: ^4.2.5 + version: 4.2.5 rambda: specifier: ^9.3.0 version: 9.3.0 @@ -149,8 +149,8 @@ importers: specifier: ^15.2.9 version: 15.2.9 neostandard: - specifier: ^0.11.3 - version: 0.11.3(eslint@9.9.1(jiti@1.21.6))(typescript@5.5.4) + specifier: ^0.11.4 + version: 0.11.4(eslint@9.9.1(jiti@1.21.6))(typescript@5.5.4) prettier: specifier: ^3.3.3 version: 3.3.3 @@ -164,8 +164,8 @@ importers: specifier: ^10.9.2 version: 10.9.2(@types/node@22.5.0)(typescript@5.5.4) tsx: - specifier: ^4.17.0 - version: 4.17.0 + specifier: ^4.18.0 + version: 4.18.0 typescript: specifier: ~5.5.4 version: 5.5.4 @@ -1093,8 +1093,8 @@ packages: '@types/conventional-commits-parser@5.0.0': resolution: {integrity: sha512-loB369iXNmAZglwWATL+WRe+CRMmmBPtpolYzIebFaX4YA3x+BEfLqhUAV9WanycKI3TG1IMr5bMJDajDKLlUQ==} - '@types/eslint@9.6.0': - resolution: {integrity: sha512-gi6WQJ7cHRgZxtkQEoyHMppPjq9Kxo5Tjn2prSKDSmZrCz8TZ3jSRCeTJm+WoM+oB0WG37bRqLzaaU3q7JypGg==} + '@types/eslint@9.6.1': + resolution: {integrity: sha512-FXx2pKgId/WyYo2jXw63kk7/+TY7u7AziEJxJAnSFzHlqTAS3Ync6SvgYAN/k4/PQpnnVuzoMuVnByKK2qp0ag==} '@types/estree@1.0.5': resolution: {integrity: sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==} @@ -4095,8 +4095,8 @@ packages: resolution: {integrity: sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==} engines: {node: '>= 0.6'} - neostandard@0.11.3: - resolution: {integrity: sha512-ZDzt9wBIUnIr6ktvHDx81QgqmiIWHVmhrw/edv+AuhJlfkxrqxkzf+f8nksX1SSU8V5VDqGvfTj/F3UwyYF4+Q==} + neostandard@0.11.4: + resolution: {integrity: sha512-rBdlVeUdM0NhBc2S7Vr/l98Y/FTYY+YGdOqSgv60HzP3LF7ruX9Mceur4Nc/qkXf7UT1IOjofLS7OSLAObPi2A==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} hasBin: true peerDependencies: @@ -4447,8 +4447,8 @@ packages: resolution: {integrity: sha512-nDywThFk1i4BQK4twPQ6TA4RT8bDY96yeuCVBWL3ePARCiEKDRSrNGbFIgUJpLp+XeIR65v8ra7WuJOFUBtkMA==} engines: {node: '>=8'} - poolifier@4.2.3: - resolution: {integrity: sha512-JF3gPzuugRLKlfyQ+vjtxviMr5AyarCAnWYT/g00NAL5Djb5oviCIvb0+eECWQ15QX0QBwcqaxrqB89Dr+pP3Q==} + poolifier@4.2.5: + resolution: {integrity: sha512-z3RLgTBZurCJo8pOJSxxnO4usZG6mIYGNd+TP7amhFSljVdTuc5jWWmHL6i66GUSDtb0CX8CvQ0EfIgtqZNgeg==} engines: {node: '>=18.0.0', pnpm: '>=9.0.0'} possible-typed-array-names@1.0.0: @@ -5309,8 +5309,8 @@ packages: tslib@2.7.0: resolution: {integrity: sha512-gLXCKdN1/j47AiHiOkJN69hJmcbGTHI0ImLmbYLHykhgeN0jVGola9yVjFgzCUklsZQMW55o+dW7IXv3RCXDzA==} - tsx@4.17.0: - resolution: {integrity: sha512-eN4mnDA5UMKDt4YZixo9tBioibaMBpoxBkD+rIPAjVmYERSG0/dWEY1CEFuV89CgASlKL499q8AhmkMnnjtOJg==} + tsx@4.18.0: + resolution: {integrity: sha512-a1jaKBSVQkd6yEc1/NI7G6yHFfefIcuf3QJST7ZEyn4oQnxLYrZR5uZAM8UrwUa3Ge8suiZHcNS1gNrEvmobqg==} engines: {node: '>=18.0.0'} hasBin: true @@ -6679,7 +6679,7 @@ snapshots: '@stylistic/eslint-plugin-js@2.6.4(eslint@9.9.1(jiti@1.21.6))': dependencies: - '@types/eslint': 9.6.0 + '@types/eslint': 9.6.1 acorn: 8.12.1 eslint: 9.9.1(jiti@1.21.6) eslint-visitor-keys: 4.0.0 @@ -6688,7 +6688,7 @@ snapshots: '@stylistic/eslint-plugin-jsx@2.6.4(eslint@9.9.1(jiti@1.21.6))': dependencies: '@stylistic/eslint-plugin-js': 2.6.4(eslint@9.9.1(jiti@1.21.6)) - '@types/eslint': 9.6.0 + '@types/eslint': 9.6.1 eslint: 9.9.1(jiti@1.21.6) eslint-visitor-keys: 4.0.0 espree: 10.1.0 @@ -6697,13 +6697,13 @@ snapshots: '@stylistic/eslint-plugin-plus@2.6.4(eslint@9.9.1(jiti@1.21.6))': dependencies: - '@types/eslint': 9.6.0 + '@types/eslint': 9.6.1 eslint: 9.9.1(jiti@1.21.6) '@stylistic/eslint-plugin-ts@2.6.4(eslint@9.9.1(jiti@1.21.6))(typescript@5.5.4)': dependencies: '@stylistic/eslint-plugin-js': 2.6.4(eslint@9.9.1(jiti@1.21.6)) - '@types/eslint': 9.6.0 + '@types/eslint': 9.6.1 '@typescript-eslint/utils': 8.2.0(eslint@9.9.1(jiti@1.21.6))(typescript@5.5.4) eslint: 9.9.1(jiti@1.21.6) transitivePeerDependencies: @@ -6716,7 +6716,7 @@ snapshots: '@stylistic/eslint-plugin-jsx': 2.6.4(eslint@9.9.1(jiti@1.21.6)) '@stylistic/eslint-plugin-plus': 2.6.4(eslint@9.9.1(jiti@1.21.6)) '@stylistic/eslint-plugin-ts': 2.6.4(eslint@9.9.1(jiti@1.21.6))(typescript@5.5.4) - '@types/eslint': 9.6.0 + '@types/eslint': 9.6.1 eslint: 9.9.1(jiti@1.21.6) transitivePeerDependencies: - supports-color @@ -6769,7 +6769,7 @@ snapshots: dependencies: '@types/node': 22.5.0 - '@types/eslint@9.6.0': + '@types/eslint@9.6.1': dependencies: '@types/estree': 1.0.5 '@types/json-schema': 7.0.15 @@ -10319,11 +10319,11 @@ snapshots: negotiator@0.6.3: optional: true - neostandard@0.11.3(eslint@9.9.1(jiti@1.21.6))(typescript@5.5.4): + neostandard@0.11.4(eslint@9.9.1(jiti@1.21.6))(typescript@5.5.4): dependencies: '@humanwhocodes/gitignore-to-minimatch': 1.0.2 '@stylistic/eslint-plugin': 2.6.4(eslint@9.9.1(jiti@1.21.6))(typescript@5.5.4) - '@types/eslint': 9.6.0 + '@types/eslint': 9.6.1 eslint: 9.9.1(jiti@1.21.6) eslint-plugin-n: 17.10.2(eslint@9.9.1(jiti@1.21.6)) eslint-plugin-promise: 7.1.0(eslint@9.9.1(jiti@1.21.6)) @@ -10673,7 +10673,7 @@ snapshots: dependencies: find-up: 3.0.0 - poolifier@4.2.3: {} + poolifier@4.2.5: {} possible-typed-array-names@1.0.0: {} @@ -11673,7 +11673,7 @@ snapshots: tslib@2.7.0: {} - tsx@4.17.0: + tsx@4.18.0: dependencies: esbuild: 0.23.1 get-tsconfig: 4.7.6 diff --git a/src/charging-station/Bootstrap.ts b/src/charging-station/Bootstrap.ts index b7178ad4..82c2cea9 100644 --- a/src/charging-station/Bootstrap.ts +++ b/src/charging-station/Bootstrap.ts @@ -58,7 +58,7 @@ enum exitCodes { duplicateChargingStationTemplateUrls = 2, noChargingStationTemplates = 3, // eslint-disable-next-line perfectionist/sort-enums - gracefulShutdownError = 4 + gracefulShutdownError = 4, } export class Bootstrap extends EventEmitter { diff --git a/src/charging-station/SharedLRUCache.ts b/src/charging-station/SharedLRUCache.ts index 55cd6c23..1023ab8c 100644 --- a/src/charging-station/SharedLRUCache.ts +++ b/src/charging-station/SharedLRUCache.ts @@ -8,7 +8,7 @@ import { Bootstrap } from './Bootstrap.js' enum CacheType { chargingStationConfiguration = 'chargingStationConfiguration', - chargingStationTemplate = 'chargingStationTemplate' + chargingStationTemplate = 'chargingStationTemplate', } type CacheValueType = ChargingStationConfiguration | ChargingStationTemplate diff --git a/src/charging-station/ui-server/UIHttpServer.ts b/src/charging-station/ui-server/UIHttpServer.ts index f33099b7..4445ce24 100644 --- a/src/charging-station/ui-server/UIHttpServer.ts +++ b/src/charging-station/ui-server/UIHttpServer.ts @@ -32,7 +32,7 @@ enum HttpMethods { GET = 'GET', PATCH = 'PATCH', POST = 'POST', - PUT = 'PUT' + PUT = 'PUT', } export class UIHttpServer extends AbstractUIServer { diff --git a/src/types/AutomaticTransactionGenerator.ts b/src/types/AutomaticTransactionGenerator.ts index 8c736384..e1fb9667 100644 --- a/src/types/AutomaticTransactionGenerator.ts +++ b/src/types/AutomaticTransactionGenerator.ts @@ -3,7 +3,7 @@ import type { JsonObject } from './JsonType.js' export enum IdTagDistribution { CONNECTOR_AFFINITY = 'connector-affinity', RANDOM = 'random', - ROUND_ROBIN = 'round-robin' + ROUND_ROBIN = 'round-robin', } export interface AutomaticTransactionGeneratorConfiguration extends JsonObject { diff --git a/src/types/ChargingStationEvents.ts b/src/types/ChargingStationEvents.ts index 4b36805f..b1d27038 100644 --- a/src/types/ChargingStationEvents.ts +++ b/src/types/ChargingStationEvents.ts @@ -9,5 +9,5 @@ export enum ChargingStationEvents { rejected = 'rejected', started = 'started', stopped = 'stopped', - updated = 'updated' + updated = 'updated', } diff --git a/src/types/ChargingStationTemplate.ts b/src/types/ChargingStationTemplate.ts index 46cc9479..571e4458 100644 --- a/src/types/ChargingStationTemplate.ts +++ b/src/types/ChargingStationTemplate.ts @@ -17,26 +17,26 @@ import type { export enum CurrentType { AC = 'AC', - DC = 'DC' + DC = 'DC', } export enum PowerUnits { KILO_WATT = 'kW', - WATT = 'W' + WATT = 'W', } export enum AmpereUnits { AMPERE = 'A', CENTI_AMPERE = 'cA', DECI_AMPERE = 'dA', - MILLI_AMPERE = 'mA' + MILLI_AMPERE = 'mA', } export enum Voltage { VOLTAGE_110 = 110, VOLTAGE_230 = 230, VOLTAGE_400 = 400, - VOLTAGE_800 = 800 + VOLTAGE_800 = 800, } export type WsOptions = ClientOptions & ClientRequestArgs @@ -61,7 +61,7 @@ enum x509CertificateType { ManufacturerRootCertificate = 'ManufacturerRootCertificate', MORootCertificate = 'MORootCertificate', V2GCertificate = 'V2GCertificate', - V2GRootCertificate = 'V2GRootCertificate' + V2GRootCertificate = 'V2GRootCertificate', } export interface ChargingStationTemplate { diff --git a/src/types/ChargingStationWorker.ts b/src/types/ChargingStationWorker.ts index b9abdeb2..a732471a 100644 --- a/src/types/ChargingStationWorker.ts +++ b/src/types/ChargingStationWorker.ts @@ -49,7 +49,7 @@ export interface ChargingStationData extends WorkerData { } enum ChargingStationMessageEvents { - performanceStatistics = 'performanceStatistics' + performanceStatistics = 'performanceStatistics', } export const ChargingStationWorkerMessageEvents = { diff --git a/src/types/ConfigurationData.ts b/src/types/ConfigurationData.ts index 23457f5d..19d93248 100644 --- a/src/types/ConfigurationData.ts +++ b/src/types/ConfigurationData.ts @@ -12,13 +12,13 @@ export enum ConfigurationSection { log = 'log', performanceStorage = 'performanceStorage', uiServer = 'uiServer', - worker = 'worker' + worker = 'worker', } export enum SupervisionUrlDistribution { CHARGING_STATION_AFFINITY = 'charging-station-affinity', RANDOM = 'random', - ROUND_ROBIN = 'round-robin' + ROUND_ROBIN = 'round-robin', } export interface StationTemplateUrl { @@ -42,7 +42,7 @@ export interface LogConfiguration { export enum ApplicationProtocolVersion { VERSION_11 = '1.1', - VERSION_20 = '2.0' + VERSION_20 = '2.0', } export interface UIServerConfiguration { diff --git a/src/types/FileType.ts b/src/types/FileType.ts index 8884a899..9071002b 100644 --- a/src/types/FileType.ts +++ b/src/types/FileType.ts @@ -4,5 +4,5 @@ export enum FileType { ChargingStationTemplate = 'charging station template', Configuration = 'configuration', JsonSchema = 'json schema', - PerformanceRecords = 'performance records' + PerformanceRecords = 'performance records', } diff --git a/src/types/MapStringifyFormat.ts b/src/types/MapStringifyFormat.ts index 8543ef27..cde4c7bc 100644 --- a/src/types/MapStringifyFormat.ts +++ b/src/types/MapStringifyFormat.ts @@ -1,4 +1,4 @@ export enum MapStringifyFormat { array = 'array', - object = 'object' + object = 'object', } diff --git a/src/types/Storage.ts b/src/types/Storage.ts index 1128007e..f942670a 100644 --- a/src/types/Storage.ts +++ b/src/types/Storage.ts @@ -4,12 +4,12 @@ export enum StorageType { MONGO_DB = 'mongodb', MYSQL = 'mysql', NONE = 'none', - SQLITE = 'sqlite' + SQLITE = 'sqlite', } export enum DBName { MARIA_DB = 'MariaDB', MONGO_DB = 'MongoDB', MYSQL = 'MySQL', - SQLITE = 'SQLite' + SQLITE = 'SQLite', } diff --git a/src/types/UIProtocol.ts b/src/types/UIProtocol.ts index 7a3dce2d..50e70ed9 100644 --- a/src/types/UIProtocol.ts +++ b/src/types/UIProtocol.ts @@ -2,21 +2,21 @@ import type { JsonObject } from './JsonType.js' import type { BroadcastChannelResponsePayload } from './WorkerBroadcastChannel.js' export enum Protocol { - UI = 'ui' + UI = 'ui', } export enum ApplicationProtocol { HTTP = 'http', - WS = 'ws' + WS = 'ws', } export enum AuthenticationType { BASIC_AUTH = 'basic-auth', - PROTOCOL_BASIC_AUTH = 'protocol-basic-auth' + PROTOCOL_BASIC_AUTH = 'protocol-basic-auth', } export enum ProtocolVersion { - '0.0.1' = '0.0.1' + '0.0.1' = '0.0.1', } export type ProtocolRequest = [ @@ -60,7 +60,7 @@ export enum ProcedureName { STOP_AUTOMATIC_TRANSACTION_GENERATOR = 'stopAutomaticTransactionGenerator', STOP_CHARGING_STATION = 'stopChargingStation', STOP_SIMULATOR = 'stopSimulator', - STOP_TRANSACTION = 'stopTransaction' + STOP_TRANSACTION = 'stopTransaction', } export interface RequestPayload extends JsonObject { @@ -70,7 +70,7 @@ export interface RequestPayload extends JsonObject { export enum ResponseStatus { FAILURE = 'failure', - SUCCESS = 'success' + SUCCESS = 'success', } export interface ResponsePayload extends JsonObject { diff --git a/src/types/WebSocket.ts b/src/types/WebSocket.ts index 94b85c86..396c768b 100644 --- a/src/types/WebSocket.ts +++ b/src/types/WebSocket.ts @@ -35,7 +35,7 @@ export enum WebSocketCloseEventStatusCode { CLOSE_SERVICE_RESTART = 1012, CLOSE_TRY_AGAIN_LATER = 1013, CLOSE_BAD_GATEWAY = 1014, - CLOSE_TLS_HANDSHAKE = 1015 + CLOSE_TLS_HANDSHAKE = 1015, } export interface WSError extends Error { diff --git a/src/types/WorkerBroadcastChannel.ts b/src/types/WorkerBroadcastChannel.ts index 4582f2b3..8f1cebfc 100644 --- a/src/types/WorkerBroadcastChannel.ts +++ b/src/types/WorkerBroadcastChannel.ts @@ -28,7 +28,7 @@ export enum BroadcastChannelProcedureName { STATUS_NOTIFICATION = 'statusNotification', STOP_AUTOMATIC_TRANSACTION_GENERATOR = 'stopAutomaticTransactionGenerator', STOP_CHARGING_STATION = 'stopChargingStation', - STOP_TRANSACTION = 'stopTransaction' + STOP_TRANSACTION = 'stopTransaction', } export interface BroadcastChannelRequestPayload extends RequestPayload { diff --git a/src/types/ocpp/1.6/ChargePointErrorCode.ts b/src/types/ocpp/1.6/ChargePointErrorCode.ts index db06d0c9..4255cd05 100644 --- a/src/types/ocpp/1.6/ChargePointErrorCode.ts +++ b/src/types/ocpp/1.6/ChargePointErrorCode.ts @@ -14,5 +14,5 @@ export enum OCPP16ChargePointErrorCode { READER_FAILURE = 'ReaderFailure', RESET_FAILURE = 'ResetFailure', UNDER_VOLTAGE = 'UnderVoltage', - WEAK_SIGNAL = 'WeakSignal' + WEAK_SIGNAL = 'WeakSignal', } diff --git a/src/types/ocpp/1.6/ChargePointStatus.ts b/src/types/ocpp/1.6/ChargePointStatus.ts index 9acc5487..9af19352 100644 --- a/src/types/ocpp/1.6/ChargePointStatus.ts +++ b/src/types/ocpp/1.6/ChargePointStatus.ts @@ -7,5 +7,5 @@ export enum OCPP16ChargePointStatus { Reserved = 'Reserved', SuspendedEV = 'SuspendedEV', SuspendedEVSE = 'SuspendedEVSE', - Unavailable = 'Unavailable' + Unavailable = 'Unavailable', } diff --git a/src/types/ocpp/1.6/ChargingProfile.ts b/src/types/ocpp/1.6/ChargingProfile.ts index ecf6bebb..cea7d569 100644 --- a/src/types/ocpp/1.6/ChargingProfile.ts +++ b/src/types/ocpp/1.6/ChargingProfile.ts @@ -28,22 +28,22 @@ export interface OCPP16ChargingSchedulePeriod extends JsonObject { export enum OCPP16ChargingRateUnitType { AMPERE = 'A', - WATT = 'W' + WATT = 'W', } export enum OCPP16ChargingProfileKindType { ABSOLUTE = 'Absolute', RECURRING = 'Recurring', - RELATIVE = 'Relative' + RELATIVE = 'Relative', } export enum OCPP16ChargingProfilePurposeType { CHARGE_POINT_MAX_PROFILE = 'ChargePointMaxProfile', TX_DEFAULT_PROFILE = 'TxDefaultProfile', - TX_PROFILE = 'TxProfile' + TX_PROFILE = 'TxProfile', } export enum OCPP16RecurrencyKindType { DAILY = 'Daily', - WEEKLY = 'Weekly' + WEEKLY = 'Weekly', } diff --git a/src/types/ocpp/1.6/Configuration.ts b/src/types/ocpp/1.6/Configuration.ts index d40d8d1f..22658ee6 100644 --- a/src/types/ocpp/1.6/Configuration.ts +++ b/src/types/ocpp/1.6/Configuration.ts @@ -4,7 +4,7 @@ export enum OCPP16SupportedFeatureProfiles { LocalAuthListManagement = 'LocalAuthListManagement', RemoteTrigger = 'RemoteTrigger', Reservation = 'Reservation', - SmartCharging = 'SmartCharging' + SmartCharging = 'SmartCharging', } export enum OCPP16StandardParametersKey { @@ -51,9 +51,9 @@ export enum OCPP16StandardParametersKey { TransactionMessageAttempts = 'TransactionMessageAttempts', TransactionMessageRetryInterval = 'TransactionMessageRetryInterval', UnlockConnectorOnEVSideDisconnect = 'UnlockConnectorOnEVSideDisconnect', - WebSocketPingInterval = 'WebSocketPingInterval' + WebSocketPingInterval = 'WebSocketPingInterval', } export enum OCPP16VendorParametersKey { - ConnectionUrl = 'ConnectionUrl' + ConnectionUrl = 'ConnectionUrl', } diff --git a/src/types/ocpp/1.6/DiagnosticsStatus.ts b/src/types/ocpp/1.6/DiagnosticsStatus.ts index c9feccea..c8c2c890 100644 --- a/src/types/ocpp/1.6/DiagnosticsStatus.ts +++ b/src/types/ocpp/1.6/DiagnosticsStatus.ts @@ -2,5 +2,5 @@ export enum OCPP16DiagnosticsStatus { Idle = 'Idle', Uploaded = 'Uploaded', UploadFailed = 'UploadFailed', - Uploading = 'Uploading' + Uploading = 'Uploading', } diff --git a/src/types/ocpp/1.6/MeterValues.ts b/src/types/ocpp/1.6/MeterValues.ts index d01cae07..ff4f304a 100644 --- a/src/types/ocpp/1.6/MeterValues.ts +++ b/src/types/ocpp/1.6/MeterValues.ts @@ -17,7 +17,7 @@ export enum OCPP16MeterValueUnit { VOLT = 'V', VOLT_AMP = 'VA', WATT = 'W', - WATT_HOUR = 'Wh' + WATT_HOUR = 'Wh', } export enum OCPP16MeterValueContext { @@ -28,7 +28,7 @@ export enum OCPP16MeterValueContext { SAMPLE_PERIODIC = 'Sample.Periodic', TRANSACTION_BEGIN = 'Transaction.Begin', TRANSACTION_END = 'Transaction.End', - TRIGGER = 'Trigger' + TRIGGER = 'Trigger', } export enum OCPP16MeterValueMeasurand { @@ -53,7 +53,7 @@ export enum OCPP16MeterValueMeasurand { POWER_REACTIVE_IMPORT = 'Power.Reactive.Import', STATE_OF_CHARGE = 'SoC', TEMPERATURE = 'Temperature', - VOLTAGE = 'Voltage' + VOLTAGE = 'Voltage', } export enum OCPP16MeterValueLocation { @@ -61,7 +61,7 @@ export enum OCPP16MeterValueLocation { CABLE = 'Cable', EV = 'EV', INLET = 'Inlet', - OUTLET = 'Outlet' + OUTLET = 'Outlet', } export enum OCPP16MeterValuePhase { @@ -74,12 +74,12 @@ export enum OCPP16MeterValuePhase { L3 = 'L3', L3_L1 = 'L3-L1', L3_N = 'L3-N', - N = 'N' + N = 'N', } enum OCPP16MeterValueFormat { RAW = 'Raw', - SIGNED_DATA = 'SignedData' + SIGNED_DATA = 'SignedData', } export interface OCPP16SampledValue extends JsonObject { diff --git a/src/types/ocpp/1.6/Requests.ts b/src/types/ocpp/1.6/Requests.ts index 82d90f66..5715dd12 100644 --- a/src/types/ocpp/1.6/Requests.ts +++ b/src/types/ocpp/1.6/Requests.ts @@ -20,7 +20,7 @@ export enum OCPP16RequestCommand { METER_VALUES = 'MeterValues', START_TRANSACTION = 'StartTransaction', STATUS_NOTIFICATION = 'StatusNotification', - STOP_TRANSACTION = 'StopTransaction' + STOP_TRANSACTION = 'StopTransaction', } export enum OCPP16IncomingRequestCommand { @@ -40,7 +40,7 @@ export enum OCPP16IncomingRequestCommand { SET_CHARGING_PROFILE = 'SetChargingProfile', TRIGGER_MESSAGE = 'TriggerMessage', UNLOCK_CONNECTOR = 'UnlockConnector', - UPDATE_FIRMWARE = 'UpdateFirmware' + UPDATE_FIRMWARE = 'UpdateFirmware', } export type OCPP16HeartbeatRequest = EmptyObject @@ -96,7 +96,7 @@ export interface GetConfigurationRequest extends JsonObject { enum ResetType { HARD = 'Hard', - SOFT = 'Soft' + SOFT = 'Soft', } export interface ResetRequest extends JsonObject { @@ -116,7 +116,7 @@ export interface SetChargingProfileRequest extends JsonObject { export enum OCPP16AvailabilityType { Inoperative = 'Inoperative', - Operative = 'Operative' + Operative = 'Operative', } export interface OCPP16ChangeAvailabilityRequest extends JsonObject { @@ -145,7 +145,7 @@ export enum OCPP16FirmwareStatus { Idle = 'Idle', InstallationFailed = 'InstallationFailed', Installed = 'Installed', - Installing = 'Installing' + Installing = 'Installing', } export interface OCPP16FirmwareStatusNotificationRequest extends JsonObject { @@ -170,7 +170,7 @@ export enum OCPP16MessageTrigger { FirmwareStatusNotification = 'FirmwareStatusNotification', Heartbeat = 'Heartbeat', MeterValues = 'MeterValues', - StatusNotification = 'StatusNotification' + StatusNotification = 'StatusNotification', } export interface OCPP16TriggerMessageRequest extends JsonObject { diff --git a/src/types/ocpp/1.6/Responses.ts b/src/types/ocpp/1.6/Responses.ts index 2447d8c9..18eddc9a 100644 --- a/src/types/ocpp/1.6/Responses.ts +++ b/src/types/ocpp/1.6/Responses.ts @@ -11,7 +11,7 @@ export interface OCPP16HeartbeatResponse extends JsonObject { export enum OCPP16UnlockStatus { NOT_SUPPORTED = 'NotSupported', UNLOCK_FAILED = 'UnlockFailed', - UNLOCKED = 'Unlocked' + UNLOCKED = 'Unlocked', } export interface UnlockConnectorResponse extends JsonObject { @@ -22,7 +22,7 @@ export enum OCPP16ConfigurationStatus { ACCEPTED = 'Accepted', NOT_SUPPORTED = 'NotSupported', REBOOT_REQUIRED = 'RebootRequired', - REJECTED = 'Rejected' + REJECTED = 'Rejected', } export interface ChangeConfigurationResponse extends JsonObject { @@ -45,7 +45,7 @@ export interface GetConfigurationResponse extends JsonObject { export enum OCPP16ChargingProfileStatus { ACCEPTED = 'Accepted', NOT_SUPPORTED = 'NotSupported', - REJECTED = 'Rejected' + REJECTED = 'Rejected', } export interface OCPP16GetCompositeScheduleResponse extends JsonObject { @@ -62,7 +62,7 @@ export interface SetChargingProfileResponse extends JsonObject { export enum OCPP16AvailabilityStatus { ACCEPTED = 'Accepted', REJECTED = 'Rejected', - SCHEDULED = 'Scheduled' + SCHEDULED = 'Scheduled', } export interface OCPP16ChangeAvailabilityResponse extends JsonObject { @@ -71,7 +71,7 @@ export interface OCPP16ChangeAvailabilityResponse extends JsonObject { export enum OCPP16ClearChargingProfileStatus { ACCEPTED = 'Accepted', - UNKNOWN = 'Unknown' + UNKNOWN = 'Unknown', } export interface OCPP16ClearChargingProfileResponse extends JsonObject { @@ -91,7 +91,7 @@ export type OCPP16DiagnosticsStatusNotificationResponse = EmptyObject export enum OCPP16TriggerMessageStatus { ACCEPTED = 'Accepted', NOT_IMPLEMENTED = 'NotImplemented', - REJECTED = 'Rejected' + REJECTED = 'Rejected', } export interface OCPP16TriggerMessageResponse extends JsonObject { @@ -102,7 +102,7 @@ export enum OCPP16DataTransferStatus { ACCEPTED = 'Accepted', REJECTED = 'Rejected', UNKNOWN_MESSAGE_ID = 'UnknownMessageId', - UNKNOWN_VENDOR_ID = 'UnknownVendorId' + UNKNOWN_VENDOR_ID = 'UnknownVendorId', } export interface OCPP16DataTransferResponse extends JsonObject { @@ -116,7 +116,7 @@ export enum OCPP16ReservationStatus { NOT_SUPPORTED = 'NotSupported', OCCUPIED = 'Occupied', REJECTED = 'Rejected', - UNAVAILABLE = 'Unavailable' + UNAVAILABLE = 'Unavailable', } export interface OCPP16ReserveNowResponse extends JsonObject { diff --git a/src/types/ocpp/1.6/Transaction.ts b/src/types/ocpp/1.6/Transaction.ts index 6adb3220..beec7cd8 100644 --- a/src/types/ocpp/1.6/Transaction.ts +++ b/src/types/ocpp/1.6/Transaction.ts @@ -12,7 +12,7 @@ export enum OCPP16StopTransactionReason { REBOOT = 'Reboot', REMOTE = 'Remote', SOFT_RESET = 'SoftReset', - UNLOCK_COMMAND = 'UnlockCommand' + UNLOCK_COMMAND = 'UnlockCommand', } export enum OCPP16AuthorizationStatus { @@ -20,7 +20,7 @@ export enum OCPP16AuthorizationStatus { BLOCKED = 'Blocked', CONCURRENT_TX = 'ConcurrentTx', EXPIRED = 'Expired', - INVALID = 'Invalid' + INVALID = 'Invalid', } interface IdTagInfo extends JsonObject { diff --git a/src/types/ocpp/2.0/Common.ts b/src/types/ocpp/2.0/Common.ts index 7f5fc65d..d13279e9 100644 --- a/src/types/ocpp/2.0/Common.ts +++ b/src/types/ocpp/2.0/Common.ts @@ -9,7 +9,7 @@ export enum DataEnumType { MemberList = 'MemberList', OptionList = 'OptionList', SequenceList = 'SequenceList', - string = 'string' + string = 'string', } export enum BootReasonEnumType { @@ -21,12 +21,12 @@ export enum BootReasonEnumType { ScheduledReset = 'ScheduledReset', Triggered = 'Triggered', Unknown = 'Unknown', - Watchdog = 'Watchdog' + Watchdog = 'Watchdog', } export enum OperationalStatusEnumType { Inoperative = 'Inoperative', - Operative = 'Operative' + Operative = 'Operative', } export enum OCPP20ConnectorStatusEnumType { @@ -34,7 +34,7 @@ export enum OCPP20ConnectorStatusEnumType { Faulted = 'Faulted', Occupied = 'Occupied', Reserved = 'Reserved', - Unavailable = 'Unavailable' + Unavailable = 'Unavailable', } export type GenericStatusEnumType = GenericStatus @@ -42,7 +42,7 @@ export type GenericStatusEnumType = GenericStatus export enum HashAlgorithmEnumType { SHA256 = 'SHA256', SHA384 = 'SHA384', - SHA512 = 'SHA512' + SHA512 = 'SHA512', } export enum GetCertificateIdUseEnumType { @@ -50,46 +50,46 @@ export enum GetCertificateIdUseEnumType { ManufacturerRootCertificate = 'ManufacturerRootCertificate', MORootCertificate = 'MORootCertificate', V2GCertificateChain = 'V2GCertificateChain', - V2GRootCertificate = 'V2GRootCertificate' + V2GRootCertificate = 'V2GRootCertificate', } export enum GetCertificateStatusEnumType { Accepted = 'Accepted', - Failed = 'Failed' + Failed = 'Failed', } export enum GetInstalledCertificateStatusEnumType { Accepted = 'Accepted', - NotFound = 'NotFound' + NotFound = 'NotFound', } export enum InstallCertificateStatusEnumType { Accepted = 'Accepted', Failed = 'Failed', - Rejected = 'Rejected' + Rejected = 'Rejected', } export enum InstallCertificateUseEnumType { CSMSRootCertificate = 'CSMSRootCertificate', ManufacturerRootCertificate = 'ManufacturerRootCertificate', MORootCertificate = 'MORootCertificate', - V2GRootCertificate = 'V2GRootCertificate' + V2GRootCertificate = 'V2GRootCertificate', } export enum DeleteCertificateStatusEnumType { Accepted = 'Accepted', Failed = 'Failed', - NotFound = 'NotFound' + NotFound = 'NotFound', } export enum CertificateActionEnumType { Install = 'Install', - Update = 'Update' + Update = 'Update', } export enum CertificateSigningUseEnumType { ChargingStationCertificate = 'ChargingStationCertificate', - V2GCertificate = 'V2GCertificate' + V2GCertificate = 'V2GCertificate', } export type CertificateSignedStatusEnumType = GenericStatusEnumType diff --git a/src/types/ocpp/2.0/Requests.ts b/src/types/ocpp/2.0/Requests.ts index 7c0e3852..6fd56088 100644 --- a/src/types/ocpp/2.0/Requests.ts +++ b/src/types/ocpp/2.0/Requests.ts @@ -10,13 +10,13 @@ import type { OCPP20SetVariableDataType } from './Variables.js' export enum OCPP20RequestCommand { BOOT_NOTIFICATION = 'BootNotification', HEARTBEAT = 'Heartbeat', - STATUS_NOTIFICATION = 'StatusNotification' + STATUS_NOTIFICATION = 'StatusNotification', } export enum OCPP20IncomingRequestCommand { CLEAR_CACHE = 'ClearCache', REQUEST_START_TRANSACTION = 'RequestStartTransaction', - REQUEST_STOP_TRANSACTION = 'RequestStopTransaction' + REQUEST_STOP_TRANSACTION = 'RequestStopTransaction', } interface ModemType extends JsonObject { diff --git a/src/types/ocpp/2.0/Variables.ts b/src/types/ocpp/2.0/Variables.ts index 0f35ee80..dac4a3a6 100644 --- a/src/types/ocpp/2.0/Variables.ts +++ b/src/types/ocpp/2.0/Variables.ts @@ -19,7 +19,7 @@ enum OCPP20ComponentName { SecurityCtrlr = 'SecurityCtrlr', SmartChargingCtrlr = 'SmartChargingCtrlr', TariffCostCtrlr = 'TariffCostCtrlr', - TxCtrlr = 'TxCtrlr' + TxCtrlr = 'TxCtrlr', } export enum OCPP20RequiredVariableName { @@ -50,23 +50,23 @@ export enum OCPP20RequiredVariableName { TxStopPoint = 'TxStopPoint', TxUpdatedInterval = 'TxUpdatedInterval', TxUpdatedMeasurands = 'TxUpdatedMeasurands', - UnlockOnEVSideDisconnect = 'UnlockOnEVSideDisconnect' + UnlockOnEVSideDisconnect = 'UnlockOnEVSideDisconnect', } export enum OCPP20OptionalVariableName { HeartbeatInterval = 'HeartbeatInterval', - WebSocketPingInterval = 'WebSocketPingInterval' + WebSocketPingInterval = 'WebSocketPingInterval', } export enum OCPP20VendorVariableName { - ConnectionUrl = 'ConnectionUrl' + ConnectionUrl = 'ConnectionUrl', } enum AttributeEnumType { Actual = 'Actual', MaxSet = 'MaxSet', MinSet = 'MinSet', - Target = 'Target' + Target = 'Target', } interface ComponentType extends JsonObject { @@ -99,7 +99,7 @@ enum SetVariableStatusEnumType { RebootRequired = 'RebootRequired', Rejected = 'Rejected', UnknownComponent = 'UnknownComponent', - UnknownVariable = 'UnknownVariable' + UnknownVariable = 'UnknownVariable', } export interface OCPP20SetVariableResultType extends JsonObject { diff --git a/src/types/ocpp/Common.ts b/src/types/ocpp/Common.ts index 55b92f10..e8923973 100644 --- a/src/types/ocpp/Common.ts +++ b/src/types/ocpp/Common.ts @@ -2,7 +2,7 @@ import type { JsonObject } from '../JsonType.js' export enum GenericStatus { Accepted = 'Accepted', - Rejected = 'Rejected' + Rejected = 'Rejected', } export interface GenericResponse extends JsonObject { @@ -12,5 +12,5 @@ export interface GenericResponse extends JsonObject { export enum RegistrationStatusEnumType { ACCEPTED = 'Accepted', PENDING = 'Pending', - REJECTED = 'Rejected' + REJECTED = 'Rejected', } diff --git a/src/types/ocpp/Configuration.ts b/src/types/ocpp/Configuration.ts index 26790402..c0de4370 100644 --- a/src/types/ocpp/Configuration.ts +++ b/src/types/ocpp/Configuration.ts @@ -40,7 +40,7 @@ export enum ConnectorPhaseRotation { STR = 'STR', TRS = 'TRS', TSR = 'TSR', - Unknown = 'Unknown' + Unknown = 'Unknown', } export type ConfigurationKeyType = StandardParametersKey | string | VendorParametersKey diff --git a/src/types/ocpp/ErrorType.ts b/src/types/ocpp/ErrorType.ts index 506b4d5b..b4e1e59d 100644 --- a/src/types/ocpp/ErrorType.ts +++ b/src/types/ocpp/ErrorType.ts @@ -19,5 +19,5 @@ export enum ErrorType { // During the processing of Action a security issue occurred preventing receiver from completing the Action successfully SECURITY_ERROR = 'SecurityError', // Payload for Action is syntactically correct but at least one of the fields violates data type constraints (e.g. "somestring" = 12) - TYPE_CONSTRAINT_VIOLATION = 'TypeConstraintViolation' + TYPE_CONSTRAINT_VIOLATION = 'TypeConstraintViolation', } diff --git a/src/types/ocpp/MessageType.ts b/src/types/ocpp/MessageType.ts index 8e82ff85..c44cb88f 100644 --- a/src/types/ocpp/MessageType.ts +++ b/src/types/ocpp/MessageType.ts @@ -2,5 +2,5 @@ export enum MessageType { CALL_MESSAGE = 2, // Caller to Callee CALL_RESULT_MESSAGE = 3, // Callee to Caller // eslint-disable-next-line perfectionist/sort-enums - CALL_ERROR_MESSAGE = 4 // Callee to Caller + CALL_ERROR_MESSAGE = 4, // Callee to Caller } diff --git a/src/types/ocpp/OCPPProtocol.ts b/src/types/ocpp/OCPPProtocol.ts index 3342d81d..1df59397 100644 --- a/src/types/ocpp/OCPPProtocol.ts +++ b/src/types/ocpp/OCPPProtocol.ts @@ -1,3 +1,3 @@ export enum OCPPProtocol { - JSON = 'json' + JSON = 'json', } diff --git a/src/types/ocpp/OCPPVersion.ts b/src/types/ocpp/OCPPVersion.ts index 37690b5e..a19fc280 100644 --- a/src/types/ocpp/OCPPVersion.ts +++ b/src/types/ocpp/OCPPVersion.ts @@ -1,5 +1,5 @@ export enum OCPPVersion { VERSION_16 = '1.6', VERSION_20 = '2.0', - VERSION_201 = '2.0.1' + VERSION_201 = '2.0.1', } diff --git a/src/types/ocpp/Reservation.ts b/src/types/ocpp/Reservation.ts index 03d085ea..1a1b95c1 100644 --- a/src/types/ocpp/Reservation.ts +++ b/src/types/ocpp/Reservation.ts @@ -9,5 +9,5 @@ export enum ReservationTerminationReason { EXPIRED = 'Expired', REPLACE_EXISTING = 'ReplaceExisting', RESERVATION_CANCELED = 'ReservationCanceled', - TRANSACTION_STARTED = 'TransactionStarted' + TRANSACTION_STARTED = 'TransactionStarted', } diff --git a/src/utils/AsyncLock.ts b/src/utils/AsyncLock.ts index 6c25adbd..e8c66f95 100644 --- a/src/utils/AsyncLock.ts +++ b/src/utils/AsyncLock.ts @@ -6,7 +6,7 @@ import { isAsyncFunction } from './Utils.js' export enum AsyncLockType { configuration = 'configuration', - performance = 'performance' + performance = 'performance', } type ResolveType = (value: PromiseLike | void) => void diff --git a/src/utils/ChargingStationConfigurationUtils.ts b/src/utils/ChargingStationConfigurationUtils.ts index ddeb0127..205fcfac 100644 --- a/src/utils/ChargingStationConfigurationUtils.ts +++ b/src/utils/ChargingStationConfigurationUtils.ts @@ -27,7 +27,7 @@ export const buildConnectorsStatus = (chargingStation: ChargingStation): Connect export enum OutputFormat { configuration = 'configuration', - worker = 'worker' + worker = 'worker', } export const buildEvsesStatus = ( diff --git a/src/worker/WorkerTypes.ts b/src/worker/WorkerTypes.ts index 8794420a..336c5c62 100644 --- a/src/worker/WorkerTypes.ts +++ b/src/worker/WorkerTypes.ts @@ -6,7 +6,7 @@ export enum WorkerProcessType { /** @experimental */ dynamicPool = 'dynamicPool', fixedPool = 'fixedPool', - workerSet = 'workerSet' + workerSet = 'workerSet', } export interface SetInfo { @@ -24,7 +24,7 @@ export enum WorkerSetEvents { elementError = 'elementError', error = 'error', started = 'started', - stopped = 'stopped' + stopped = 'stopped', } export const WorkerEvents = { @@ -66,5 +66,5 @@ export interface WorkerMessage { export enum WorkerMessageEvents { addedWorkerElement = 'addedWorkerElement', addWorkerElement = 'addWorkerElement', - workerElementError = 'workerElementError' + workerElementError = 'workerElementError', } diff --git a/ui/web/src/types/ChargingStationType.ts b/ui/web/src/types/ChargingStationType.ts index 8790e78f..a074f159 100644 --- a/ui/web/src/types/ChargingStationType.ts +++ b/ui/web/src/types/ChargingStationType.ts @@ -3,7 +3,7 @@ import type { JsonObject } from './JsonType' export enum IdTagDistribution { CONNECTOR_AFFINITY = 'connector-affinity', RANDOM = 'random', - ROUND_ROBIN = 'round-robin' + ROUND_ROBIN = 'round-robin', } export interface AutomaticTransactionGeneratorConfiguration extends JsonObject { @@ -47,7 +47,7 @@ export enum OCPP16FirmwareStatus { Idle = 'Idle', InstallationFailed = 'InstallationFailed', Installed = 'Installed', - Installing = 'Installing' + Installing = 'Installing', } export interface FirmwareUpgrade extends JsonObject { @@ -165,7 +165,7 @@ export enum OCPP16IncomingRequestCommand { RESET = 'Reset', SET_CHARGING_PROFILE = 'SetChargingProfile', TRIGGER_MESSAGE = 'TriggerMessage', - UNLOCK_CONNECTOR = 'UnlockConnector' + UNLOCK_CONNECTOR = 'UnlockConnector', } export const IncomingRequestCommand = { @@ -182,7 +182,7 @@ export enum OCPP16RequestCommand { METER_VALUES = 'MeterValues', START_TRANSACTION = 'StartTransaction', STATUS_NOTIFICATION = 'StatusNotification', - STOP_TRANSACTION = 'StopTransaction' + STOP_TRANSACTION = 'StopTransaction', } export const RequestCommand = { @@ -196,7 +196,7 @@ export type BootNotificationResponse = OCPP16BootNotificationResponse export enum OCPP16RegistrationStatus { ACCEPTED = 'Accepted', PENDING = 'Pending', - REJECTED = 'Rejected' + REJECTED = 'Rejected', } export interface OCPP16BootNotificationResponse extends JsonObject { @@ -211,7 +211,7 @@ export enum OCPP16MessageTrigger { FirmwareStatusNotification = 'FirmwareStatusNotification', Heartbeat = 'Heartbeat', MeterValues = 'MeterValues', - StatusNotification = 'StatusNotification' + StatusNotification = 'StatusNotification', } export const MessageTrigger = { @@ -228,30 +228,30 @@ interface CommandsSupport extends JsonObject { export enum OCPPVersion { VERSION_16 = '1.6', VERSION_20 = '2.0', - VERSION_201 = '2.0.1' + VERSION_201 = '2.0.1', } export enum OCPPProtocol { - JSON = 'json' + JSON = 'json', } export enum CurrentType { AC = 'AC', - DC = 'DC' + DC = 'DC', } export enum Voltage { VOLTAGE_110 = 110, VOLTAGE_230 = 230, VOLTAGE_400 = 400, - VOLTAGE_800 = 800 + VOLTAGE_800 = 800, } export enum AmpereUnits { AMPERE = 'A', CENTI_AMPERE = 'cA', DECI_AMPERE = 'dA', - MILLI_AMPERE = 'mA' + MILLI_AMPERE = 'mA', } export interface ConnectorStatus extends JsonObject { @@ -277,7 +277,7 @@ export interface EvseStatus extends JsonObject { export enum OCPP16AvailabilityType { INOPERATIVE = 'Inoperative', - OPERATIVE = 'Operative' + OPERATIVE = 'Operative', } export type AvailabilityType = OCPP16AvailabilityType @@ -291,7 +291,7 @@ export enum OCPP16ChargePointStatus { RESERVED = 'Reserved', SUSPENDED_EV = 'SuspendedEV', SUSPENDED_EVSE = 'SuspendedEVSE', - UNAVAILABLE = 'Unavailable' + UNAVAILABLE = 'Unavailable', } export type ChargePointStatus = OCPP16ChargePointStatus diff --git a/ui/web/src/types/UIProtocol.ts b/ui/web/src/types/UIProtocol.ts index 39d9e0fa..44df63d2 100644 --- a/ui/web/src/types/UIProtocol.ts +++ b/ui/web/src/types/UIProtocol.ts @@ -1,20 +1,20 @@ import type { JsonObject } from './JsonType' export enum Protocol { - UI = 'ui' + UI = 'ui', } export enum ApplicationProtocol { WS = 'ws', - WSS = 'wss' + WSS = 'wss', } export enum ProtocolVersion { - '0.0.1' = '0.0.1' + '0.0.1' = '0.0.1', } export enum AuthenticationType { - PROTOCOL_BASIC_AUTH = 'protocol-basic-auth' + PROTOCOL_BASIC_AUTH = 'protocol-basic-auth', } export type ProtocolRequest = [ @@ -47,7 +47,7 @@ export enum ProcedureName { STOP_AUTOMATIC_TRANSACTION_GENERATOR = 'stopAutomaticTransactionGenerator', STOP_CHARGING_STATION = 'stopChargingStation', STOP_SIMULATOR = 'stopSimulator', - STOP_TRANSACTION = 'stopTransaction' + STOP_TRANSACTION = 'stopTransaction', } export interface RequestPayload extends JsonObject { @@ -57,7 +57,7 @@ export interface RequestPayload extends JsonObject { export enum ResponseStatus { FAILURE = 'failure', - SUCCESS = 'success' + SUCCESS = 'success', } export interface ResponsePayload extends JsonObject { -- 2.34.1