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