Commit | Line | Data |
---|---|---|
f7a1d1a9 | 1 | import { OCPPConfigurationKey } from '../Configuration'; |
f738a0e9 JB |
2 | |
3 | export interface HeartbeatResponse { | |
4 | currentTime: string; | |
5 | } | |
6 | ||
7 | export enum DefaultStatus { | |
9ac86a7e JB |
8 | ACCEPTED = 'Accepted', |
9 | REJECTED = 'Rejected' | |
10 | } | |
11 | ||
f738a0e9 JB |
12 | export interface DefaultResponse { |
13 | status: DefaultStatus; | |
9ac86a7e JB |
14 | } |
15 | ||
16 | export enum UnlockStatus { | |
17 | UNLOCKED = 'Unlocked', | |
18 | UNLOCK_FAILED = 'UnlockFailed', | |
19 | NOT_SUPPORTED = 'NotSupported' | |
20 | } | |
21 | ||
f738a0e9 | 22 | export interface UnlockConnectorResponse { |
9ac86a7e JB |
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 | ||
f738a0e9 | 33 | export interface ChangeConfigurationResponse { |
63b48f77 | 34 | status: ConfigurationStatus; |
9ac86a7e | 35 | } |
f738a0e9 | 36 | |
c0560973 | 37 | export enum OCPP16RegistrationStatus { |
f738a0e9 JB |
38 | ACCEPTED = 'Accepted', |
39 | PENDING = 'Pending', | |
40 | REJECTED = 'Rejected' | |
41 | } | |
42 | ||
c0560973 JB |
43 | export interface OCPP16BootNotificationResponse { |
44 | status: OCPP16RegistrationStatus; | |
f738a0e9 | 45 | currentTime: string; |
e4cc41bf | 46 | interval: number; |
f738a0e9 JB |
47 | } |
48 | ||
49 | // eslint-disable-next-line @typescript-eslint/no-empty-interface | |
d0641efa | 50 | export interface StatusNotificationResponse { } |
f738a0e9 JB |
51 | |
52 | export interface GetConfigurationResponse { | |
f7a1d1a9 | 53 | configurationKey: OCPPConfigurationKey[]; |
f738a0e9 JB |
54 | unknownKey: string[]; |
55 | } | |
8c476a1f JB |
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 | } | |
4dff73b0 JB |
66 | |
67 | export enum AvailabilityStatus { | |
68 | ACCEPTED = 'Accepted', | |
69 | REJECTED = 'Rejected', | |
70 | SCHEDULED = 'Scheduled' | |
71 | } | |
72 | ||
73 | export interface ChangeAvailabilityResponse { | |
74 | status: AvailabilityStatus; | |
75 | } | |
edf4bd64 JB |
76 | |
77 | export enum ClearChargingProfileStatus { | |
78 | ACCEPTED = 'Accepted', | |
79 | UNKNOWN = 'Unknown' | |
80 | } | |
81 | ||
82 | export interface ClearChargingProfileResponse { | |
83 | status: ClearChargingProfileStatus; | |
84 | } |