Commit | Line | Data |
---|---|---|
c12b43d0 | 1 | import { EmptyObject } from '../../EmptyObject'; |
f7a1d1a9 | 2 | import { OCPPConfigurationKey } from '../Configuration'; |
f738a0e9 JB |
3 | |
4 | export interface HeartbeatResponse { | |
5 | currentTime: string; | |
6 | } | |
7 | ||
9ccca265 | 8 | export enum OCPP16UnlockStatus { |
9ac86a7e JB |
9 | UNLOCKED = 'Unlocked', |
10 | UNLOCK_FAILED = 'UnlockFailed', | |
11 | NOT_SUPPORTED = 'NotSupported' | |
12 | } | |
13 | ||
f738a0e9 | 14 | export interface UnlockConnectorResponse { |
9ccca265 | 15 | status: OCPP16UnlockStatus; |
9ac86a7e JB |
16 | } |
17 | ||
9ccca265 | 18 | export enum OCPP16ConfigurationStatus { |
9ac86a7e JB |
19 | ACCEPTED = 'Accepted', |
20 | REJECTED = 'Rejected', | |
21 | REBOOT_REQUIRED = 'RebootRequired', | |
22 | NOT_SUPPORTED = 'NotSupported' | |
23 | } | |
24 | ||
f738a0e9 | 25 | export interface ChangeConfigurationResponse { |
9ccca265 | 26 | status: OCPP16ConfigurationStatus; |
9ac86a7e | 27 | } |
f738a0e9 | 28 | |
c0560973 | 29 | export enum OCPP16RegistrationStatus { |
f738a0e9 JB |
30 | ACCEPTED = 'Accepted', |
31 | PENDING = 'Pending', | |
32 | REJECTED = 'Rejected' | |
33 | } | |
34 | ||
c0560973 JB |
35 | export interface OCPP16BootNotificationResponse { |
36 | status: OCPP16RegistrationStatus; | |
f738a0e9 | 37 | currentTime: string; |
e4cc41bf | 38 | interval: number; |
f738a0e9 JB |
39 | } |
40 | ||
c12b43d0 | 41 | export type StatusNotificationResponse = EmptyObject; |
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 | ||
c12b43d0 | 81 | export type DiagnosticsStatusNotificationResponse = EmptyObject; |
802cfa13 JB |
82 | |
83 | export enum OCPP16TriggerMessageStatus { | |
84 | ACCEPTED = 'Accepted', | |
85 | REJECTED = 'Rejected', | |
86 | NOT_IMPLEMENTED = 'NotImplemented' | |
87 | } | |
88 | ||
89 | export interface OCPP16TriggerMessageResponse { | |
90 | status: OCPP16TriggerMessageStatus | |
91 | } |