+import { EmptyObject } from '../../EmptyObject';
+import { JsonType } from '../../JsonType';
import { OCPPConfigurationKey } from '../Configuration';
-export interface HeartbeatResponse {
+export interface HeartbeatResponse extends JsonType {
currentTime: string;
}
NOT_SUPPORTED = 'NotSupported'
}
-export interface UnlockConnectorResponse {
+export interface UnlockConnectorResponse extends JsonType {
status: OCPP16UnlockStatus;
}
NOT_SUPPORTED = 'NotSupported'
}
-export interface ChangeConfigurationResponse {
+export interface ChangeConfigurationResponse extends JsonType {
status: OCPP16ConfigurationStatus;
}
REJECTED = 'Rejected'
}
-export interface OCPP16BootNotificationResponse {
+export interface OCPP16BootNotificationResponse extends JsonType {
status: OCPP16RegistrationStatus;
currentTime: string;
interval: number;
}
-// eslint-disable-next-line @typescript-eslint/no-empty-interface
-export interface StatusNotificationResponse {}
+export type StatusNotificationResponse = EmptyObject;
-export interface GetConfigurationResponse {
+export interface GetConfigurationResponse extends JsonType {
configurationKey: OCPPConfigurationKey[];
unknownKey: string[];
}
NOT_SUPPORTED = 'NotSupported',
}
-export interface SetChargingProfileResponse {
+export interface SetChargingProfileResponse extends JsonType {
status: OCPP16ChargingProfileStatus;
}
SCHEDULED = 'Scheduled'
}
-export interface ChangeAvailabilityResponse {
+export interface ChangeAvailabilityResponse extends JsonType {
status: OCPP16AvailabilityStatus;
}
UNKNOWN = 'Unknown'
}
-export interface ClearChargingProfileResponse {
+export interface ClearChargingProfileResponse extends JsonType {
status: OCPP16ClearChargingProfileStatus;
}
-export interface GetDiagnosticsResponse {
+export interface GetDiagnosticsResponse extends JsonType {
fileName?: string;
}
-// eslint-disable-next-line @typescript-eslint/no-empty-interface
-export interface DiagnosticsStatusNotificationResponse {}
+export type DiagnosticsStatusNotificationResponse = EmptyObject;
+
+export enum OCPP16TriggerMessageStatus {
+ ACCEPTED = 'Accepted',
+ REJECTED = 'Rejected',
+ NOT_IMPLEMENTED = 'NotImplemented'
+}
+
+export interface OCPP16TriggerMessageResponse extends JsonType {
+ status: OCPP16TriggerMessageStatus
+}