X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2Focpp%2FResponses.ts;h=da5948a92fe7fca90ab0d4b3f5144cd1a5a0432b;hb=db652e1ea3fbb7ae3902c4b91b857bca44c87ac1;hp=f14ef426871c107b8533d8744fde282f6930a857;hpb=f1bf81be82f85af01906effff244cc1d95e7e57a;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/ocpp/Responses.ts b/src/types/ocpp/Responses.ts index f14ef426..da5948a9 100644 --- a/src/types/ocpp/Responses.ts +++ b/src/types/ocpp/Responses.ts @@ -1,10 +1,8 @@ -import type { ChargingStation } from '../../charging-station'; +import type { OCPP16MeterValuesResponse } from './1.6/MeterValues'; import { - type ErrorType, - type JsonType, - type MessageType, OCPP16AvailabilityStatus, type OCPP16BootNotificationResponse, + OCPP16CancelReservationStatus, OCPP16ChargingProfileStatus, OCPP16ClearChargingProfileStatus, OCPP16ConfigurationStatus, @@ -13,14 +11,20 @@ import { type OCPP16DiagnosticsStatusNotificationResponse, type OCPP16FirmwareStatusNotificationResponse, type OCPP16HeartbeatResponse, - type OCPP16MeterValuesResponse, + OCPP16ReservationStatus, type OCPP16StatusNotificationResponse, OCPP16TriggerMessageStatus, OCPP16UnlockStatus, - type OCPP20BootNotificationResponse, - type OCPP20ClearCacheResponse, - type OCPP20StatusNotificationResponse, -} from '../internal'; +} from './1.6/Responses'; +import type { + OCPP20BootNotificationResponse, + OCPP20ClearCacheResponse, + OCPP20StatusNotificationResponse, +} from './2.0/Responses'; +import type { ErrorType } from './ErrorType'; +import type { MessageType } from './MessageType'; +import type { ChargingStation } from '../../charging-station'; +import type { JsonType } from '../JsonType'; export type Response = [MessageType.CALL_RESULT_MESSAGE, string, JsonType]; @@ -101,3 +105,15 @@ export const DataTransferStatus = { ...OCPP16DataTransferStatus, } as const; export type DataTransferStatus = OCPP16DataTransferStatus; + +export type ReservationStatus = OCPP16ReservationStatus; + +export const ReservationStatus = { + ...OCPP16ReservationStatus, +}; + +export type CancelReservationStatus = OCPP16CancelReservationStatus; + +export const CancelReservationStatus = { + ...OCPP16CancelReservationStatus, +};