From: Jérôme Benoit Date: Mon, 1 Jul 2024 19:37:09 +0000 (+0200) Subject: build(ci): silence linter X-Git-Tag: v1.3.7~4 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=4d8b5b9019b4853c97df80817dfb72e7f854b61a;p=e-mobility-charging-stations-simulator.git build(ci): silence linter Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/ocpp/1.6/OCPP16Constants.ts b/src/charging-station/ocpp/1.6/OCPP16Constants.ts index 214c5a85..229124e0 100644 --- a/src/charging-station/ocpp/1.6/OCPP16Constants.ts +++ b/src/charging-station/ocpp/1.6/OCPP16Constants.ts @@ -2,9 +2,8 @@ import { type ConnectorStatusTransition, OCPP16ChargePointStatus } from '../../. import { OCPPConstants } from '../OCPPConstants.js' export class OCPP16Constants extends OCPPConstants { - static readonly ChargePointStatusChargingStationTransitions: Readonly< - ConnectorStatusTransition[] - > = Object.freeze([ + static readonly ChargePointStatusChargingStationTransitions: readonly ConnectorStatusTransition[] = + Object.freeze([ { to: OCPP16ChargePointStatus.Available }, // { from: OCPP16ChargePointStatus.Available, to: OCPP16ChargePointStatus.Available }, { @@ -34,10 +33,10 @@ export class OCPP16Constants extends OCPPConstants { from: OCPP16ChargePointStatus.Faulted, to: OCPP16ChargePointStatus.Unavailable } - // { from: OCPP16ChargePointStatus.Faulted, to: OCPP16ChargePointStatus.Faulted } + // { from: OCPP16ChargePointStatus.Faulted, to: OCPP16ChargePointStatus.Faulted } ]) - static readonly ChargePointStatusConnectorTransitions: Readonly = + static readonly ChargePointStatusConnectorTransitions: readonly ConnectorStatusTransition[] = Object.freeze([ { to: OCPP16ChargePointStatus.Available }, // { from: OCPP16ChargePointStatus.Available, to: OCPP16ChargePointStatus.Available }, diff --git a/src/charging-station/ocpp/2.0/OCPP20Constants.ts b/src/charging-station/ocpp/2.0/OCPP20Constants.ts index b4c73bc2..9e3c52a0 100644 --- a/src/charging-station/ocpp/2.0/OCPP20Constants.ts +++ b/src/charging-station/ocpp/2.0/OCPP20Constants.ts @@ -5,7 +5,7 @@ import { import { OCPPConstants } from '../OCPPConstants.js' export class OCPP20Constants extends OCPPConstants { - static readonly ChargingStationStatusTransitions: Readonly = + static readonly ChargingStationStatusTransitions: readonly ConnectorStatusTransition[] = Object.freeze([ { to: OCPP20ConnectorStatusEnumType.Available }, // { from: OCPP20ConnectorStatusEnumType.Available, to: OCPP20ConnectorStatusEnumType.Available }, @@ -42,92 +42,90 @@ export class OCPP20Constants extends OCPPConstants { // { from: OCPP20ConnectorStatusEnumType.Faulted, to: OCPP20ConnectorStatusEnumType.Faulted } ]) - static readonly ConnectorStatusTransitions: Readonly = Object.freeze( - [ - { to: OCPP20ConnectorStatusEnumType.Available }, - // { from: OCPP20ConnectorStatusEnumType.Available, to: OCPP20ConnectorStatusEnumType.Available }, - { - from: OCPP20ConnectorStatusEnumType.Available, - to: OCPP20ConnectorStatusEnumType.Occupied - }, - { - from: OCPP20ConnectorStatusEnumType.Available, - to: OCPP20ConnectorStatusEnumType.Reserved - }, - { - from: OCPP20ConnectorStatusEnumType.Available, - to: OCPP20ConnectorStatusEnumType.Unavailable - }, - { - from: OCPP20ConnectorStatusEnumType.Available, - to: OCPP20ConnectorStatusEnumType.Faulted - }, - // { to: OCPP20ConnectorStatusEnumType.Occupied }, - { - from: OCPP20ConnectorStatusEnumType.Occupied, - to: OCPP20ConnectorStatusEnumType.Available - }, - // { from: OCPP20ConnectorStatusEnumType.Occupied, to: OCPP20ConnectorStatusEnumType.Occupied }, - // { from: OCPP20ConnectorStatusEnumType.Occupied, to: OCPP20ConnectorStatusEnumType.Reserved }, - { - from: OCPP20ConnectorStatusEnumType.Occupied, - to: OCPP20ConnectorStatusEnumType.Unavailable - }, - { - from: OCPP20ConnectorStatusEnumType.Occupied, - to: OCPP20ConnectorStatusEnumType.Faulted - }, - // { to: OCPP20ConnectorStatusEnumType.Reserved }, - { - from: OCPP20ConnectorStatusEnumType.Reserved, - to: OCPP20ConnectorStatusEnumType.Available - }, - { - from: OCPP20ConnectorStatusEnumType.Reserved, - to: OCPP20ConnectorStatusEnumType.Occupied - }, - // { from: OCPP20ConnectorStatusEnumType.Reserved, to: OCPP20ConnectorStatusEnumType.Reserved }, - { - from: OCPP20ConnectorStatusEnumType.Reserved, - to: OCPP20ConnectorStatusEnumType.Unavailable - }, - { - from: OCPP20ConnectorStatusEnumType.Reserved, - to: OCPP20ConnectorStatusEnumType.Faulted - }, - { to: OCPP20ConnectorStatusEnumType.Unavailable }, - { - from: OCPP20ConnectorStatusEnumType.Unavailable, - to: OCPP20ConnectorStatusEnumType.Available - }, - { - from: OCPP20ConnectorStatusEnumType.Unavailable, - to: OCPP20ConnectorStatusEnumType.Occupied - }, - // { from: OCPP20ConnectorStatusEnumType.Unavailable, to: OCPP20ConnectorStatusEnumType.Reserved }, - // { from: OCPP20ConnectorStatusEnumType.Unavailable, to: OCPP20ConnectorStatusEnumType.Unavailable }, - { - from: OCPP20ConnectorStatusEnumType.Unavailable, - to: OCPP20ConnectorStatusEnumType.Faulted - }, - { to: OCPP20ConnectorStatusEnumType.Faulted }, - { - from: OCPP20ConnectorStatusEnumType.Faulted, - to: OCPP20ConnectorStatusEnumType.Available - }, - { - from: OCPP20ConnectorStatusEnumType.Faulted, - to: OCPP20ConnectorStatusEnumType.Occupied - }, - { - from: OCPP20ConnectorStatusEnumType.Faulted, - to: OCPP20ConnectorStatusEnumType.Reserved - }, - { - from: OCPP20ConnectorStatusEnumType.Faulted, - to: OCPP20ConnectorStatusEnumType.Unavailable - } - // { from: OCPP20ConnectorStatusEnumType.Faulted, to: OCPP20ConnectorStatusEnumType.Faulted } - ] - ) + static readonly ConnectorStatusTransitions: readonly ConnectorStatusTransition[] = Object.freeze([ + { to: OCPP20ConnectorStatusEnumType.Available }, + // { from: OCPP20ConnectorStatusEnumType.Available, to: OCPP20ConnectorStatusEnumType.Available }, + { + from: OCPP20ConnectorStatusEnumType.Available, + to: OCPP20ConnectorStatusEnumType.Occupied + }, + { + from: OCPP20ConnectorStatusEnumType.Available, + to: OCPP20ConnectorStatusEnumType.Reserved + }, + { + from: OCPP20ConnectorStatusEnumType.Available, + to: OCPP20ConnectorStatusEnumType.Unavailable + }, + { + from: OCPP20ConnectorStatusEnumType.Available, + to: OCPP20ConnectorStatusEnumType.Faulted + }, + // { to: OCPP20ConnectorStatusEnumType.Occupied }, + { + from: OCPP20ConnectorStatusEnumType.Occupied, + to: OCPP20ConnectorStatusEnumType.Available + }, + // { from: OCPP20ConnectorStatusEnumType.Occupied, to: OCPP20ConnectorStatusEnumType.Occupied }, + // { from: OCPP20ConnectorStatusEnumType.Occupied, to: OCPP20ConnectorStatusEnumType.Reserved }, + { + from: OCPP20ConnectorStatusEnumType.Occupied, + to: OCPP20ConnectorStatusEnumType.Unavailable + }, + { + from: OCPP20ConnectorStatusEnumType.Occupied, + to: OCPP20ConnectorStatusEnumType.Faulted + }, + // { to: OCPP20ConnectorStatusEnumType.Reserved }, + { + from: OCPP20ConnectorStatusEnumType.Reserved, + to: OCPP20ConnectorStatusEnumType.Available + }, + { + from: OCPP20ConnectorStatusEnumType.Reserved, + to: OCPP20ConnectorStatusEnumType.Occupied + }, + // { from: OCPP20ConnectorStatusEnumType.Reserved, to: OCPP20ConnectorStatusEnumType.Reserved }, + { + from: OCPP20ConnectorStatusEnumType.Reserved, + to: OCPP20ConnectorStatusEnumType.Unavailable + }, + { + from: OCPP20ConnectorStatusEnumType.Reserved, + to: OCPP20ConnectorStatusEnumType.Faulted + }, + { to: OCPP20ConnectorStatusEnumType.Unavailable }, + { + from: OCPP20ConnectorStatusEnumType.Unavailable, + to: OCPP20ConnectorStatusEnumType.Available + }, + { + from: OCPP20ConnectorStatusEnumType.Unavailable, + to: OCPP20ConnectorStatusEnumType.Occupied + }, + // { from: OCPP20ConnectorStatusEnumType.Unavailable, to: OCPP20ConnectorStatusEnumType.Reserved }, + // { from: OCPP20ConnectorStatusEnumType.Unavailable, to: OCPP20ConnectorStatusEnumType.Unavailable }, + { + from: OCPP20ConnectorStatusEnumType.Unavailable, + to: OCPP20ConnectorStatusEnumType.Faulted + }, + { to: OCPP20ConnectorStatusEnumType.Faulted }, + { + from: OCPP20ConnectorStatusEnumType.Faulted, + to: OCPP20ConnectorStatusEnumType.Available + }, + { + from: OCPP20ConnectorStatusEnumType.Faulted, + to: OCPP20ConnectorStatusEnumType.Occupied + }, + { + from: OCPP20ConnectorStatusEnumType.Faulted, + to: OCPP20ConnectorStatusEnumType.Reserved + }, + { + from: OCPP20ConnectorStatusEnumType.Faulted, + to: OCPP20ConnectorStatusEnumType.Unavailable + } + // { from: OCPP20ConnectorStatusEnumType.Faulted, to: OCPP20ConnectorStatusEnumType.Faulted } + ]) }