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