+import { EmptyObject } from '../../EmptyObject';
+import { JsonObject } from '../../JsonType';
import { OCPPConfigurationKey } from '../Configuration';
-export interface HeartbeatResponse {
+export interface OCPP16HeartbeatResponse extends JsonObject {
currentTime: string;
}
export enum OCPP16UnlockStatus {
UNLOCKED = 'Unlocked',
UNLOCK_FAILED = 'UnlockFailed',
- NOT_SUPPORTED = 'NotSupported'
+ NOT_SUPPORTED = 'NotSupported',
}
-export interface UnlockConnectorResponse {
+export interface UnlockConnectorResponse extends JsonObject {
status: OCPP16UnlockStatus;
}
ACCEPTED = 'Accepted',
REJECTED = 'Rejected',
REBOOT_REQUIRED = 'RebootRequired',
- NOT_SUPPORTED = 'NotSupported'
+ NOT_SUPPORTED = 'NotSupported',
}
-export interface ChangeConfigurationResponse {
+export interface ChangeConfigurationResponse extends JsonObject {
status: OCPP16ConfigurationStatus;
}
export enum OCPP16RegistrationStatus {
ACCEPTED = 'Accepted',
PENDING = 'Pending',
- REJECTED = 'Rejected'
+ REJECTED = 'Rejected',
}
-export interface OCPP16BootNotificationResponse {
+export interface OCPP16BootNotificationResponse extends JsonObject {
status: OCPP16RegistrationStatus;
currentTime: string;
interval: number;
}
-// eslint-disable-next-line @typescript-eslint/no-empty-interface
-export interface StatusNotificationResponse {}
+export type OCPP16StatusNotificationResponse = EmptyObject;
-export interface GetConfigurationResponse {
+export interface GetConfigurationResponse extends JsonObject {
configurationKey: OCPPConfigurationKey[];
unknownKey: string[];
}
NOT_SUPPORTED = 'NotSupported',
}
-export interface SetChargingProfileResponse {
+export interface SetChargingProfileResponse extends JsonObject {
status: OCPP16ChargingProfileStatus;
}
export enum OCPP16AvailabilityStatus {
ACCEPTED = 'Accepted',
REJECTED = 'Rejected',
- SCHEDULED = 'Scheduled'
+ SCHEDULED = 'Scheduled',
}
-export interface ChangeAvailabilityResponse {
+export interface ChangeAvailabilityResponse extends JsonObject {
status: OCPP16AvailabilityStatus;
}
export enum OCPP16ClearChargingProfileStatus {
ACCEPTED = 'Accepted',
- UNKNOWN = 'Unknown'
+ UNKNOWN = 'Unknown',
}
-export interface ClearChargingProfileResponse {
+export interface ClearChargingProfileResponse extends JsonObject {
status: OCPP16ClearChargingProfileStatus;
}
-export interface GetDiagnosticsResponse {
+export interface GetDiagnosticsResponse extends JsonObject {
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 JsonObject {
+ status: OCPP16TriggerMessageStatus;
+}