X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2Focpp%2F1.6%2FResponses.ts;h=9cd96b2473dbfccccbe7a7772b34c5f72b57184a;hb=6d52ef25c911dcb8d37ead86819b53a7fe35ef53;hp=0f65b7d199ea7f9a9f0066b73510358731871085;hpb=91a7d3eac062df6c73d8443a542568c1fe69ec1b;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/ocpp/1.6/Responses.ts b/src/types/ocpp/1.6/Responses.ts index 0f65b7d1..9cd96b24 100644 --- a/src/types/ocpp/1.6/Responses.ts +++ b/src/types/ocpp/1.6/Responses.ts @@ -1,9 +1,11 @@ +import type { OCPP16ChargingSchedule } from './ChargingProfile'; import type { EmptyObject } from '../../EmptyObject'; import type { JsonObject } from '../../JsonType'; import type { OCPPConfigurationKey } from '../Configuration'; +import { GenericStatus, type RegistrationStatusEnumType } from '../Responses'; export interface OCPP16HeartbeatResponse extends JsonObject { - currentTime: string; + currentTime: Date; } export enum OCPP16UnlockStatus { @@ -27,15 +29,9 @@ export interface ChangeConfigurationResponse extends JsonObject { status: OCPP16ConfigurationStatus; } -export enum OCPP16RegistrationStatus { - ACCEPTED = 'Accepted', - PENDING = 'Pending', - REJECTED = 'Rejected', -} - export interface OCPP16BootNotificationResponse extends JsonObject { - status: OCPP16RegistrationStatus; - currentTime: string; + status: RegistrationStatusEnumType; + currentTime: Date; interval: number; } @@ -52,6 +48,13 @@ export enum OCPP16ChargingProfileStatus { NOT_SUPPORTED = 'NotSupported', } +export interface OCPP16GetCompositeScheduleResponse extends JsonObject { + status: GenericStatus; + connectorId?: number; + scheduleStart?: Date; + chargingSchedule?: OCPP16ChargingSchedule; +} + export interface SetChargingProfileResponse extends JsonObject { status: OCPP16ChargingProfileStatus; } @@ -75,11 +78,15 @@ export interface ClearChargingProfileResponse extends JsonObject { status: OCPP16ClearChargingProfileStatus; } +export type OCPP16UpdateFirmwareResponse = EmptyObject; + +export type OCPP16FirmwareStatusNotificationResponse = EmptyObject; + export interface GetDiagnosticsResponse extends JsonObject { fileName?: string; } -export type DiagnosticsStatusNotificationResponse = EmptyObject; +export type OCPP16DiagnosticsStatusNotificationResponse = EmptyObject; export enum OCPP16TriggerMessageStatus { ACCEPTED = 'Accepted', @@ -102,3 +109,16 @@ export interface OCPP16DataTransferResponse extends JsonObject { status: OCPP16DataTransferStatus; data?: string; } + +export enum OCPP16ReservationStatus { + ACCEPTED = 'Accepted', + FAULTED = 'Faulted', + OCCUPIED = 'Occupied', + REJECTED = 'Rejected', + UNAVAILABLE = 'Unavailable', + NOT_SUPPORTED = 'NotSupported', +} + +export interface OCPP16ReserveNowResponse extends JsonObject { + status: OCPP16ReservationStatus; +}