Commit | Line | Data |
---|---|---|
f7a1d1a9 | 1 | import { OCPPConfigurationKey } from '../Configuration'; |
f738a0e9 JB |
2 | |
3 | export interface HeartbeatResponse { | |
4 | currentTime: string; | |
5 | } | |
6 | ||
9ccca265 | 7 | export enum OCPP16UnlockStatus { |
9ac86a7e JB |
8 | UNLOCKED = 'Unlocked', |
9 | UNLOCK_FAILED = 'UnlockFailed', | |
10 | NOT_SUPPORTED = 'NotSupported' | |
11 | } | |
12 | ||
f738a0e9 | 13 | export interface UnlockConnectorResponse { |
9ccca265 | 14 | status: OCPP16UnlockStatus; |
9ac86a7e JB |
15 | } |
16 | ||
9ccca265 | 17 | export enum OCPP16ConfigurationStatus { |
9ac86a7e JB |
18 | ACCEPTED = 'Accepted', |
19 | REJECTED = 'Rejected', | |
20 | REBOOT_REQUIRED = 'RebootRequired', | |
21 | NOT_SUPPORTED = 'NotSupported' | |
22 | } | |
23 | ||
f738a0e9 | 24 | export interface ChangeConfigurationResponse { |
9ccca265 | 25 | status: OCPP16ConfigurationStatus; |
9ac86a7e | 26 | } |
f738a0e9 | 27 | |
c0560973 | 28 | export enum OCPP16RegistrationStatus { |
f738a0e9 JB |
29 | ACCEPTED = 'Accepted', |
30 | PENDING = 'Pending', | |
31 | REJECTED = 'Rejected' | |
32 | } | |
33 | ||
c0560973 JB |
34 | export interface OCPP16BootNotificationResponse { |
35 | status: OCPP16RegistrationStatus; | |
f738a0e9 | 36 | currentTime: string; |
e4cc41bf | 37 | interval: number; |
f738a0e9 JB |
38 | } |
39 | ||
40 | // eslint-disable-next-line @typescript-eslint/no-empty-interface | |
9ccca265 | 41 | export interface StatusNotificationResponse {} |
f738a0e9 JB |
42 | |
43 | export interface GetConfigurationResponse { | |
f7a1d1a9 | 44 | configurationKey: OCPPConfigurationKey[]; |
f738a0e9 JB |
45 | unknownKey: string[]; |
46 | } | |
8c476a1f | 47 | |
9ccca265 | 48 | export enum OCPP16ChargingProfileStatus { |
8c476a1f JB |
49 | ACCEPTED = 'Accepted', |
50 | REJECTED = 'Rejected', | |
51 | NOT_SUPPORTED = 'NotSupported', | |
52 | } | |
53 | ||
54 | export interface SetChargingProfileResponse { | |
9ccca265 | 55 | status: OCPP16ChargingProfileStatus; |
8c476a1f | 56 | } |
4dff73b0 | 57 | |
9ccca265 | 58 | export enum OCPP16AvailabilityStatus { |
4dff73b0 JB |
59 | ACCEPTED = 'Accepted', |
60 | REJECTED = 'Rejected', | |
61 | SCHEDULED = 'Scheduled' | |
62 | } | |
63 | ||
64 | export interface ChangeAvailabilityResponse { | |
9ccca265 | 65 | status: OCPP16AvailabilityStatus; |
4dff73b0 | 66 | } |
edf4bd64 | 67 | |
9ccca265 | 68 | export enum OCPP16ClearChargingProfileStatus { |
edf4bd64 JB |
69 | ACCEPTED = 'Accepted', |
70 | UNKNOWN = 'Unknown' | |
71 | } | |
72 | ||
73 | export interface ClearChargingProfileResponse { | |
9ccca265 | 74 | status: OCPP16ClearChargingProfileStatus; |
edf4bd64 | 75 | } |
47e22477 JB |
76 | |
77 | export interface GetDiagnosticsResponse { | |
78 | fileName?: string; | |
79 | } | |
80 | ||
81 | // eslint-disable-next-line @typescript-eslint/no-empty-interface | |
82 | export interface DiagnosticsStatusNotificationResponse {} |