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