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