| 1 | import { ConfigurationKey } from '../../ChargingStationConfiguration'; |
| 2 | |
| 3 | export interface HeartbeatResponse { |
| 4 | currentTime: string; |
| 5 | } |
| 6 | |
| 7 | export enum DefaultStatus { |
| 8 | ACCEPTED = 'Accepted', |
| 9 | REJECTED = 'Rejected' |
| 10 | } |
| 11 | |
| 12 | export interface DefaultResponse { |
| 13 | status: DefaultStatus; |
| 14 | } |
| 15 | |
| 16 | export enum UnlockStatus { |
| 17 | UNLOCKED = 'Unlocked', |
| 18 | UNLOCK_FAILED = 'UnlockFailed', |
| 19 | NOT_SUPPORTED = 'NotSupported' |
| 20 | } |
| 21 | |
| 22 | export interface UnlockConnectorResponse { |
| 23 | status: UnlockStatus; |
| 24 | } |
| 25 | |
| 26 | export enum ConfigurationStatus { |
| 27 | ACCEPTED = 'Accepted', |
| 28 | REJECTED = 'Rejected', |
| 29 | REBOOT_REQUIRED = 'RebootRequired', |
| 30 | NOT_SUPPORTED = 'NotSupported' |
| 31 | } |
| 32 | |
| 33 | export interface ChangeConfigurationResponse { |
| 34 | status: ConfigurationStatus; |
| 35 | } |
| 36 | |
| 37 | export enum RegistrationStatus { |
| 38 | ACCEPTED = 'Accepted', |
| 39 | PENDING = 'Pending', |
| 40 | REJECTED = 'Rejected' |
| 41 | } |
| 42 | |
| 43 | export interface BootNotificationResponse { |
| 44 | status: RegistrationStatus; |
| 45 | currentTime: string; |
| 46 | interval: number; |
| 47 | } |
| 48 | |
| 49 | // eslint-disable-next-line @typescript-eslint/no-empty-interface |
| 50 | export interface StatusNotificationResponse {} |
| 51 | |
| 52 | export interface GetConfigurationResponse { |
| 53 | configurationKey: ConfigurationKey[]; |
| 54 | unknownKey: string[]; |
| 55 | } |
| 56 | |
| 57 | export enum ChargingProfileStatus { |
| 58 | ACCEPTED = 'Accepted', |
| 59 | REJECTED = 'Rejected', |
| 60 | NOT_SUPPORTED = 'NotSupported', |
| 61 | } |
| 62 | |
| 63 | export interface SetChargingProfileResponse { |
| 64 | status: ChargingProfileStatus; |
| 65 | } |