| 1 | import type { |
| 2 | EmptyObject, |
| 3 | GenericStatus, |
| 4 | JsonObject, |
| 5 | OCPP16ChargingSchedule, |
| 6 | OCPPConfigurationKey, |
| 7 | RegistrationStatusEnumType, |
| 8 | } from '../../internal'; |
| 9 | |
| 10 | export interface OCPP16HeartbeatResponse extends JsonObject { |
| 11 | currentTime: Date; |
| 12 | } |
| 13 | |
| 14 | export enum OCPP16UnlockStatus { |
| 15 | UNLOCKED = 'Unlocked', |
| 16 | UNLOCK_FAILED = 'UnlockFailed', |
| 17 | NOT_SUPPORTED = 'NotSupported', |
| 18 | } |
| 19 | |
| 20 | export interface UnlockConnectorResponse extends JsonObject { |
| 21 | status: OCPP16UnlockStatus; |
| 22 | } |
| 23 | |
| 24 | export enum OCPP16ConfigurationStatus { |
| 25 | ACCEPTED = 'Accepted', |
| 26 | REJECTED = 'Rejected', |
| 27 | REBOOT_REQUIRED = 'RebootRequired', |
| 28 | NOT_SUPPORTED = 'NotSupported', |
| 29 | } |
| 30 | |
| 31 | export interface ChangeConfigurationResponse extends JsonObject { |
| 32 | status: OCPP16ConfigurationStatus; |
| 33 | } |
| 34 | |
| 35 | export interface OCPP16BootNotificationResponse extends JsonObject { |
| 36 | status: RegistrationStatusEnumType; |
| 37 | currentTime: Date; |
| 38 | interval: number; |
| 39 | } |
| 40 | |
| 41 | export type OCPP16StatusNotificationResponse = EmptyObject; |
| 42 | |
| 43 | export interface GetConfigurationResponse extends JsonObject { |
| 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 OCPP16GetCompositeScheduleResponse extends JsonObject { |
| 55 | status: GenericStatus; |
| 56 | connectorId?: number; |
| 57 | scheduleStart?: Date; |
| 58 | chargingSchedule?: OCPP16ChargingSchedule; |
| 59 | } |
| 60 | |
| 61 | export interface SetChargingProfileResponse extends JsonObject { |
| 62 | status: OCPP16ChargingProfileStatus; |
| 63 | } |
| 64 | |
| 65 | export enum OCPP16AvailabilityStatus { |
| 66 | ACCEPTED = 'Accepted', |
| 67 | REJECTED = 'Rejected', |
| 68 | SCHEDULED = 'Scheduled', |
| 69 | } |
| 70 | |
| 71 | export interface ChangeAvailabilityResponse extends JsonObject { |
| 72 | status: OCPP16AvailabilityStatus; |
| 73 | } |
| 74 | |
| 75 | export enum OCPP16ClearChargingProfileStatus { |
| 76 | ACCEPTED = 'Accepted', |
| 77 | UNKNOWN = 'Unknown', |
| 78 | } |
| 79 | |
| 80 | export interface ClearChargingProfileResponse extends JsonObject { |
| 81 | status: OCPP16ClearChargingProfileStatus; |
| 82 | } |
| 83 | |
| 84 | export type OCPP16UpdateFirmwareResponse = EmptyObject; |
| 85 | |
| 86 | export type OCPP16FirmwareStatusNotificationResponse = EmptyObject; |
| 87 | |
| 88 | export interface GetDiagnosticsResponse extends JsonObject { |
| 89 | fileName?: string; |
| 90 | } |
| 91 | |
| 92 | export type OCPP16DiagnosticsStatusNotificationResponse = EmptyObject; |
| 93 | |
| 94 | export enum OCPP16TriggerMessageStatus { |
| 95 | ACCEPTED = 'Accepted', |
| 96 | REJECTED = 'Rejected', |
| 97 | NOT_IMPLEMENTED = 'NotImplemented', |
| 98 | } |
| 99 | |
| 100 | export interface OCPP16TriggerMessageResponse extends JsonObject { |
| 101 | status: OCPP16TriggerMessageStatus; |
| 102 | } |
| 103 | |
| 104 | export enum OCPP16DataTransferStatus { |
| 105 | ACCEPTED = 'Accepted', |
| 106 | REJECTED = 'Rejected', |
| 107 | UNKNOWN_MESSAGE_ID = 'UnknownMessageId', |
| 108 | UNKNOWN_VENDOR_ID = 'UnknownVendorId', |
| 109 | } |
| 110 | |
| 111 | export interface OCPP16DataTransferResponse extends JsonObject { |
| 112 | status: OCPP16DataTransferStatus; |
| 113 | data?: string; |
| 114 | } |