Typing.
[e-mobility-charging-stations-simulator.git] / src / types / ocpp / 1.6 / Requests.ts
CommitLineData
f738a0e9
JB
1import { ChargePointErrorCode } from './ChargePointErrorCode';
2import { ChargePointStatus } from './ChargePointStatus';
3import { ChargingProfile } from './ChargingProfile';
63b48f77
JB
4import OCPPError from '../../../charging-station/OcppError';
5
6export default interface Requests {
f738a0e9
JB
7 [id: string]: [(payload?, requestPayload?) => void, (error?: OCPPError) => void, Record<string, unknown>];
8}
9
10// eslint-disable-next-line @typescript-eslint/no-empty-interface
11export interface HeartbeatRequest {}
12
13export 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
25export 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
35export interface ChangeConfigurationRequest {
36 key: string;
37 value: string;
38}
39
40export interface RemoteStartTransactionRequest {
41 connectorId: number;
42 idTag: string;
43 chargingProfile?: ChargingProfile;
44}
45
46export interface RemoteStopTransactionRequest {
47 transactionId: number;
48}
49
50export interface UnlockConnectorRequest {
51 connectorId: number;
52}
53
54export interface GetConfigurationRequest {
55 key?: string[];
56}
57
58export enum ResetType {
59 HARD = 'Hard',
60 SOFT = 'Soft'
61}
62
63export interface ResetRequest {
64 type: ResetType;
63b48f77 65}