Add support for OCPP 1.6 TriggerMessage command
[e-mobility-charging-stations-simulator.git] / src / types / ocpp / 1.6 / Responses.ts
CommitLineData
f7a1d1a9 1import { OCPPConfigurationKey } from '../Configuration';
f738a0e9
JB
2
3export interface HeartbeatResponse {
4 currentTime: string;
5}
6
9ccca265 7export enum OCPP16UnlockStatus {
9ac86a7e
JB
8 UNLOCKED = 'Unlocked',
9 UNLOCK_FAILED = 'UnlockFailed',
10 NOT_SUPPORTED = 'NotSupported'
11}
12
f738a0e9 13export interface UnlockConnectorResponse {
9ccca265 14 status: OCPP16UnlockStatus;
9ac86a7e
JB
15}
16
9ccca265 17export enum OCPP16ConfigurationStatus {
9ac86a7e
JB
18 ACCEPTED = 'Accepted',
19 REJECTED = 'Rejected',
20 REBOOT_REQUIRED = 'RebootRequired',
21 NOT_SUPPORTED = 'NotSupported'
22}
23
f738a0e9 24export interface ChangeConfigurationResponse {
9ccca265 25 status: OCPP16ConfigurationStatus;
9ac86a7e 26}
f738a0e9 27
c0560973 28export enum OCPP16RegistrationStatus {
f738a0e9
JB
29 ACCEPTED = 'Accepted',
30 PENDING = 'Pending',
31 REJECTED = 'Rejected'
32}
33
c0560973
JB
34export interface OCPP16BootNotificationResponse {
35 status: OCPP16RegistrationStatus;
f738a0e9 36 currentTime: string;
e4cc41bf 37 interval: number;
f738a0e9
JB
38}
39
40// eslint-disable-next-line @typescript-eslint/no-empty-interface
9ccca265 41export interface StatusNotificationResponse {}
f738a0e9
JB
42
43export interface GetConfigurationResponse {
f7a1d1a9 44 configurationKey: OCPPConfigurationKey[];
f738a0e9
JB
45 unknownKey: string[];
46}
8c476a1f 47
9ccca265 48export enum OCPP16ChargingProfileStatus {
8c476a1f
JB
49 ACCEPTED = 'Accepted',
50 REJECTED = 'Rejected',
51 NOT_SUPPORTED = 'NotSupported',
52}
53
54export interface SetChargingProfileResponse {
9ccca265 55 status: OCPP16ChargingProfileStatus;
8c476a1f 56}
4dff73b0 57
9ccca265 58export enum OCPP16AvailabilityStatus {
4dff73b0
JB
59 ACCEPTED = 'Accepted',
60 REJECTED = 'Rejected',
61 SCHEDULED = 'Scheduled'
62}
63
64export interface ChangeAvailabilityResponse {
9ccca265 65 status: OCPP16AvailabilityStatus;
4dff73b0 66}
edf4bd64 67
9ccca265 68export enum OCPP16ClearChargingProfileStatus {
edf4bd64
JB
69 ACCEPTED = 'Accepted',
70 UNKNOWN = 'Unknown'
71}
72
73export interface ClearChargingProfileResponse {
9ccca265 74 status: OCPP16ClearChargingProfileStatus;
edf4bd64 75}
47e22477
JB
76
77export interface GetDiagnosticsResponse {
78 fileName?: string;
79}
80
81// eslint-disable-next-line @typescript-eslint/no-empty-interface
82export interface DiagnosticsStatusNotificationResponse {}
802cfa13
JB
83
84export enum OCPP16TriggerMessageStatus {
85 ACCEPTED = 'Accepted',
86 REJECTED = 'Rejected',
87 NOT_IMPLEMENTED = 'NotImplemented'
88}
89
90export interface OCPP16TriggerMessageResponse {
91 status: OCPP16TriggerMessageStatus
92}