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