build(deps-dev): apply updates
[e-mobility-charging-stations-simulator.git] / src / types / ocpp / 1.6 / Responses.ts
index e7814c4f178caec976040c3d6e9372c155cf1729..b8c36ed24f471f6d23734b74c569e5eedd6ddfa0 100644 (file)
-import type {
-  EmptyObject,
-  GenericStatus,
-  JsonObject,
-  OCPP16ChargingSchedule,
-  OCPPConfigurationKey,
-  RegistrationStatusEnumType,
-} from '../../internal';
+import type { OCPP16ChargingSchedule } from './ChargingProfile.js'
+import type { EmptyObject } from '../../EmptyObject.js'
+import type { JsonObject } from '../../JsonType.js'
+import type { GenericStatus, RegistrationStatusEnumType } from '../Common.js'
+import type { OCPPConfigurationKey } from '../Configuration.js'
 
 export interface OCPP16HeartbeatResponse extends JsonObject {
-  currentTime: Date;
+  currentTime: Date
 }
 
 export enum OCPP16UnlockStatus {
   UNLOCKED = 'Unlocked',
   UNLOCK_FAILED = 'UnlockFailed',
-  NOT_SUPPORTED = 'NotSupported',
+  NOT_SUPPORTED = 'NotSupported'
 }
 
 export interface UnlockConnectorResponse extends JsonObject {
-  status: OCPP16UnlockStatus;
+  status: OCPP16UnlockStatus
 }
 
 export enum OCPP16ConfigurationStatus {
   ACCEPTED = 'Accepted',
   REJECTED = 'Rejected',
   REBOOT_REQUIRED = 'RebootRequired',
-  NOT_SUPPORTED = 'NotSupported',
+  NOT_SUPPORTED = 'NotSupported'
 }
 
 export interface ChangeConfigurationResponse extends JsonObject {
-  status: OCPP16ConfigurationStatus;
+  status: OCPP16ConfigurationStatus
 }
 
 export interface OCPP16BootNotificationResponse extends JsonObject {
-  status: RegistrationStatusEnumType;
-  currentTime: Date;
-  interval: number;
+  status: RegistrationStatusEnumType
+  currentTime: Date
+  interval: number
 }
 
-export type OCPP16StatusNotificationResponse = EmptyObject;
+export type OCPP16StatusNotificationResponse = EmptyObject
 
 export interface GetConfigurationResponse extends JsonObject {
-  configurationKey: OCPPConfigurationKey[];
-  unknownKey: string[];
+  configurationKey: OCPPConfigurationKey[]
+  unknownKey: string[]
 }
 
 export enum OCPP16ChargingProfileStatus {
   ACCEPTED = 'Accepted',
   REJECTED = 'Rejected',
-  NOT_SUPPORTED = 'NotSupported',
+  NOT_SUPPORTED = 'NotSupported'
 }
 
 export interface OCPP16GetCompositeScheduleResponse extends JsonObject {
-  status: GenericStatus;
-  connectorId?: number;
-  scheduleStart?: Date;
-  chargingSchedule?: OCPP16ChargingSchedule;
+  status: GenericStatus
+  connectorId?: number
+  scheduleStart?: Date
+  chargingSchedule?: OCPP16ChargingSchedule
 }
 
 export interface SetChargingProfileResponse extends JsonObject {
-  status: OCPP16ChargingProfileStatus;
+  status: OCPP16ChargingProfileStatus
 }
 
 export enum OCPP16AvailabilityStatus {
   ACCEPTED = 'Accepted',
   REJECTED = 'Rejected',
-  SCHEDULED = 'Scheduled',
+  SCHEDULED = 'Scheduled'
 }
 
-export interface ChangeAvailabilityResponse extends JsonObject {
-  status: OCPP16AvailabilityStatus;
+export interface OCPP16ChangeAvailabilityResponse extends JsonObject {
+  status: OCPP16AvailabilityStatus
 }
 
 export enum OCPP16ClearChargingProfileStatus {
   ACCEPTED = 'Accepted',
-  UNKNOWN = 'Unknown',
+  UNKNOWN = 'Unknown'
 }
 
-export interface ClearChargingProfileResponse extends JsonObject {
-  status: OCPP16ClearChargingProfileStatus;
+export interface OCPP16ClearChargingProfileResponse extends JsonObject {
+  status: OCPP16ClearChargingProfileStatus
 }
 
-export type OCPP16UpdateFirmwareResponse = EmptyObject;
+export type OCPP16UpdateFirmwareResponse = EmptyObject
 
-export type OCPP16FirmwareStatusNotificationResponse = EmptyObject;
+export type OCPP16FirmwareStatusNotificationResponse = EmptyObject
 
 export interface GetDiagnosticsResponse extends JsonObject {
-  fileName?: string;
+  fileName?: string
 }
 
-export type OCPP16DiagnosticsStatusNotificationResponse = EmptyObject;
+export type OCPP16DiagnosticsStatusNotificationResponse = EmptyObject
 
 export enum OCPP16TriggerMessageStatus {
   ACCEPTED = 'Accepted',
   REJECTED = 'Rejected',
-  NOT_IMPLEMENTED = 'NotImplemented',
+  NOT_IMPLEMENTED = 'NotImplemented'
 }
 
 export interface OCPP16TriggerMessageResponse extends JsonObject {
-  status: OCPP16TriggerMessageStatus;
+  status: OCPP16TriggerMessageStatus
 }
 
 export enum OCPP16DataTransferStatus {
   ACCEPTED = 'Accepted',
   REJECTED = 'Rejected',
   UNKNOWN_MESSAGE_ID = 'UnknownMessageId',
-  UNKNOWN_VENDOR_ID = 'UnknownVendorId',
+  UNKNOWN_VENDOR_ID = 'UnknownVendorId'
 }
 
 export interface OCPP16DataTransferResponse extends JsonObject {
-  status: OCPP16DataTransferStatus;
-  data?: string;
+  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
 }