X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2Focpp%2FConnectorStatusEnum.ts;h=9c4d246994bd09ecec97242fb247a6366ea46048;hb=298be10c5c800e43b0b9dcd6c50f6d49e2cb786b;hp=929d59cd7ae7ae83102d278859c207c786efee9e;hpb=6e939d9e416de33fa1c64fc7f4eb6be70954f69c;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/ocpp/ConnectorStatusEnum.ts b/src/types/ocpp/ConnectorStatusEnum.ts index 929d59cd..9c4d2469 100644 --- a/src/types/ocpp/ConnectorStatusEnum.ts +++ b/src/types/ocpp/ConnectorStatusEnum.ts @@ -1,8 +1,14 @@ -import { OCPP16ChargePointStatus } from './1.6/ChargePointStatus'; -import { OCPP20ConnectorStatusEnumType } from './2.0/Requests'; +import { OCPP16ChargePointStatus } from './1.6/ChargePointStatus.js' +import { OCPP20ConnectorStatusEnumType } from './2.0/Common.js' export const ConnectorStatusEnum = { ...OCPP16ChargePointStatus, - ...OCPP20ConnectorStatusEnumType, -} as const; -export type ConnectorStatusEnum = OCPP16ChargePointStatus | OCPP20ConnectorStatusEnumType; + ...OCPP20ConnectorStatusEnumType +} as const +// eslint-disable-next-line @typescript-eslint/no-redeclare +export type ConnectorStatusEnum = OCPP16ChargePointStatus | OCPP20ConnectorStatusEnumType + +export type ConnectorStatusTransition = Readonly<{ + from?: ConnectorStatusEnum + to: ConnectorStatusEnum +}>