| 1 | import { ChargePointErrorCode } from './ChargePointErrorCode'; |
| 2 | import { ChargePointStatus } from './ChargePointStatus'; |
| 3 | import { ChargingProfile } from './ChargingProfile'; |
| 4 | import OCPPError from '../../../charging-station/OcppError'; |
| 5 | |
| 6 | export default interface Requests { |
| 7 | [id: string]: [(payload?, requestPayload?) => void, (error?: OCPPError) => void, Record<string, unknown>]; |
| 8 | } |
| 9 | |
| 10 | // eslint-disable-next-line @typescript-eslint/no-empty-interface |
| 11 | export interface HeartbeatRequest {} |
| 12 | |
| 13 | export interface BootNotificationRequest { |
| 14 | chargeBoxSerialNumber?: string; |
| 15 | chargePointModel: string; |
| 16 | chargePointSerialNumber?: string; |
| 17 | chargePointVendor: string; |
| 18 | firmwareVersion?: string; |
| 19 | iccid?: string; |
| 20 | imsi?: string; |
| 21 | meterSerialNumber?: string; |
| 22 | meterType?: string; |
| 23 | } |
| 24 | |
| 25 | export interface StatusNotificationRequest { |
| 26 | connectorId: number; |
| 27 | errorCode: ChargePointErrorCode; |
| 28 | info?: string; |
| 29 | status: ChargePointStatus; |
| 30 | timestamp?: string; |
| 31 | vendorId?: string; |
| 32 | vendorErrorCode?: string; |
| 33 | } |
| 34 | |
| 35 | export interface ChangeConfigurationRequest { |
| 36 | key: string; |
| 37 | value: string; |
| 38 | } |
| 39 | |
| 40 | export interface RemoteStartTransactionRequest { |
| 41 | connectorId: number; |
| 42 | idTag: string; |
| 43 | chargingProfile?: ChargingProfile; |
| 44 | } |
| 45 | |
| 46 | export interface RemoteStopTransactionRequest { |
| 47 | transactionId: number; |
| 48 | } |
| 49 | |
| 50 | export interface UnlockConnectorRequest { |
| 51 | connectorId: number; |
| 52 | } |
| 53 | |
| 54 | export interface GetConfigurationRequest { |
| 55 | key?: string[]; |
| 56 | } |
| 57 | |
| 58 | export enum ResetType { |
| 59 | HARD = 'Hard', |
| 60 | SOFT = 'Soft' |
| 61 | } |
| 62 | |
| 63 | export interface ResetRequest { |
| 64 | type: ResetType; |
| 65 | } |
| 66 | |
| 67 | export interface SetChargingProfileRequest { |
| 68 | connectorId: number; |
| 69 | csChargingProfiles: ChargingProfile; |
| 70 | } |