From: Jérôme Benoit Date: Fri, 22 Nov 2024 21:09:37 +0000 (+0100) Subject: refactor: cleanup some OCPP type definitions X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=11ca3c7f34134ea0db5cb3733c09b455acd80fd7;p=e-mobility-charging-stations-simulator.git refactor: cleanup some OCPP type definitions Signed-off-by: Jérôme Benoit --- diff --git a/src/types/ocpp/Responses.ts b/src/types/ocpp/Responses.ts index ec444fcf..e6b88f00 100644 --- a/src/types/ocpp/Responses.ts +++ b/src/types/ocpp/Responses.ts @@ -27,6 +27,8 @@ export type BootNotificationResponse = | OCPP16BootNotificationResponse | OCPP20BootNotificationResponse +export type CancelReservationResponse = GenericResponse + export type ClearCacheResponse = GenericResponse | OCPP20ClearCacheResponse export type DataTransferResponse = OCPP16DataTransferResponse @@ -93,16 +95,14 @@ export const DataTransferStatus = { // eslint-disable-next-line @typescript-eslint/no-redeclare export type DataTransferStatus = OCPP16DataTransferStatus -export type ReservationStatus = OCPP16ReservationStatus -// eslint-disable-next-line @typescript-eslint/no-redeclare export const ReservationStatus = { ...OCPP16ReservationStatus, } as const - -export type CancelReservationStatus = GenericStatus // eslint-disable-next-line @typescript-eslint/no-redeclare +export type ReservationStatus = OCPP16ReservationStatus + export const CancelReservationStatus = { ...GenericStatus, } as const - -export type CancelReservationResponse = GenericResponse +// eslint-disable-next-line @typescript-eslint/no-redeclare +export type CancelReservationStatus = GenericStatus