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