Use ConnectionTineOut OCPP parameter as WS timeout
[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 DefaultStatus {
8 ACCEPTED = 'Accepted',
9 REJECTED = 'Rejected'
10 }
11
12 export interface DefaultResponse {
13 status: DefaultStatus;
14 }
15
16 export enum UnlockStatus {
17 UNLOCKED = 'Unlocked',
18 UNLOCK_FAILED = 'UnlockFailed',
19 NOT_SUPPORTED = 'NotSupported'
20 }
21
22 export interface UnlockConnectorResponse {
23 status: UnlockStatus;
24 }
25
26 export enum ConfigurationStatus {
27 ACCEPTED = 'Accepted',
28 REJECTED = 'Rejected',
29 REBOOT_REQUIRED = 'RebootRequired',
30 NOT_SUPPORTED = 'NotSupported'
31 }
32
33 export interface ChangeConfigurationResponse {
34 status: ConfigurationStatus;
35 }
36
37 export enum OCPP16RegistrationStatus {
38 ACCEPTED = 'Accepted',
39 PENDING = 'Pending',
40 REJECTED = 'Rejected'
41 }
42
43 export interface OCPP16BootNotificationResponse {
44 status: OCPP16RegistrationStatus;
45 currentTime: string;
46 interval: number;
47 }
48
49 // eslint-disable-next-line @typescript-eslint/no-empty-interface
50 export interface StatusNotificationResponse { }
51
52 export interface GetConfigurationResponse {
53 configurationKey: OCPPConfigurationKey[];
54 unknownKey: string[];
55 }
56
57 export enum ChargingProfileStatus {
58 ACCEPTED = 'Accepted',
59 REJECTED = 'Rejected',
60 NOT_SUPPORTED = 'NotSupported',
61 }
62
63 export interface SetChargingProfileResponse {
64 status: ChargingProfileStatus;
65 }
66
67 export enum AvailabilityStatus {
68 ACCEPTED = 'Accepted',
69 REJECTED = 'Rejected',
70 SCHEDULED = 'Scheduled'
71 }
72
73 export interface ChangeAvailabilityResponse {
74 status: AvailabilityStatus;
75 }
76
77 export enum ClearChargingProfileStatus {
78 ACCEPTED = 'Accepted',
79 UNKNOWN = 'Unknown'
80 }
81
82 export interface ClearChargingProfileResponse {
83 status: ClearChargingProfileStatus;
84 }