317926f3fe921be2020dc59ac6c687cea0b7c1bc
[e-mobility-charging-stations-simulator.git] / src / types / ocpp / 1.6 / Responses.ts
1 import { OCPPConfigurationKey } from '../Configuration';
2
3 export interface HeartbeatResponse {
4 currentTime: string;
5 }
6
7 export enum OCPP16UnlockStatus {
8 UNLOCKED = 'Unlocked',
9 UNLOCK_FAILED = 'UnlockFailed',
10 NOT_SUPPORTED = 'NotSupported'
11 }
12
13 export interface UnlockConnectorResponse {
14 status: OCPP16UnlockStatus;
15 }
16
17 export enum OCPP16ConfigurationStatus {
18 ACCEPTED = 'Accepted',
19 REJECTED = 'Rejected',
20 REBOOT_REQUIRED = 'RebootRequired',
21 NOT_SUPPORTED = 'NotSupported'
22 }
23
24 export interface ChangeConfigurationResponse {
25 status: OCPP16ConfigurationStatus;
26 }
27
28 export enum OCPP16RegistrationStatus {
29 ACCEPTED = 'Accepted',
30 PENDING = 'Pending',
31 REJECTED = 'Rejected'
32 }
33
34 export interface OCPP16BootNotificationResponse {
35 status: OCPP16RegistrationStatus;
36 currentTime: string;
37 interval: number;
38 }
39
40 // eslint-disable-next-line @typescript-eslint/no-empty-interface
41 export interface StatusNotificationResponse {}
42
43 export interface GetConfigurationResponse {
44 configurationKey: OCPPConfigurationKey[];
45 unknownKey: string[];
46 }
47
48 export enum OCPP16ChargingProfileStatus {
49 ACCEPTED = 'Accepted',
50 REJECTED = 'Rejected',
51 NOT_SUPPORTED = 'NotSupported',
52 }
53
54 export interface SetChargingProfileResponse {
55 status: OCPP16ChargingProfileStatus;
56 }
57
58 export enum OCPP16AvailabilityStatus {
59 ACCEPTED = 'Accepted',
60 REJECTED = 'Rejected',
61 SCHEDULED = 'Scheduled'
62 }
63
64 export interface ChangeAvailabilityResponse {
65 status: OCPP16AvailabilityStatus;
66 }
67
68 export enum OCPP16ClearChargingProfileStatus {
69 ACCEPTED = 'Accepted',
70 UNKNOWN = 'Unknown'
71 }
72
73 export interface ClearChargingProfileResponse {
74 status: OCPP16ClearChargingProfileStatus;
75 }