Enhance log message on supervision url distribution
[e-mobility-charging-stations-simulator.git] / src / types / ocpp / 1.6 / Responses.ts
CommitLineData
c12b43d0 1import { EmptyObject } from '../../EmptyObject';
f7a1d1a9 2import { OCPPConfigurationKey } from '../Configuration';
f738a0e9
JB
3
4export interface HeartbeatResponse {
5 currentTime: string;
6}
7
9ccca265 8export enum OCPP16UnlockStatus {
9ac86a7e
JB
9 UNLOCKED = 'Unlocked',
10 UNLOCK_FAILED = 'UnlockFailed',
11 NOT_SUPPORTED = 'NotSupported'
12}
13
f738a0e9 14export interface UnlockConnectorResponse {
9ccca265 15 status: OCPP16UnlockStatus;
9ac86a7e
JB
16}
17
9ccca265 18export enum OCPP16ConfigurationStatus {
9ac86a7e
JB
19 ACCEPTED = 'Accepted',
20 REJECTED = 'Rejected',
21 REBOOT_REQUIRED = 'RebootRequired',
22 NOT_SUPPORTED = 'NotSupported'
23}
24
f738a0e9 25export interface ChangeConfigurationResponse {
9ccca265 26 status: OCPP16ConfigurationStatus;
9ac86a7e 27}
f738a0e9 28
c0560973 29export enum OCPP16RegistrationStatus {
f738a0e9
JB
30 ACCEPTED = 'Accepted',
31 PENDING = 'Pending',
32 REJECTED = 'Rejected'
33}
34
c0560973
JB
35export interface OCPP16BootNotificationResponse {
36 status: OCPP16RegistrationStatus;
f738a0e9 37 currentTime: string;
e4cc41bf 38 interval: number;
f738a0e9
JB
39}
40
c12b43d0 41export type StatusNotificationResponse = EmptyObject;
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
c12b43d0 81export type DiagnosticsStatusNotificationResponse = EmptyObject;
802cfa13
JB
82
83export enum OCPP16TriggerMessageStatus {
84 ACCEPTED = 'Accepted',
85 REJECTED = 'Rejected',
86 NOT_IMPLEMENTED = 'NotImplemented'
87}
88
89export interface OCPP16TriggerMessageResponse {
90 status: OCPP16TriggerMessageStatus
91}