fix: add missing type definition file
[e-mobility-charging-stations-simulator.git] / src / types / ocpp / 1.6 / Responses.ts
index 0f65b7d199ea7f9a9f0066b73510358731871085..e7814c4f178caec976040c3d6e9372c155cf1729 100644 (file)
@@ -1,9 +1,14 @@
-import type { EmptyObject } from '../../EmptyObject';
-import type { JsonObject } from '../../JsonType';
-import type { OCPPConfigurationKey } from '../Configuration';
+import type {
+  EmptyObject,
+  GenericStatus,
+  JsonObject,
+  OCPP16ChargingSchedule,
+  OCPPConfigurationKey,
+  RegistrationStatusEnumType,
+} from '../../internal';
 
 export interface OCPP16HeartbeatResponse extends JsonObject {
-  currentTime: string;
+  currentTime: Date;
 }
 
 export enum OCPP16UnlockStatus {
@@ -27,15 +32,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 +51,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 +81,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',