refactor(simulator): introduce HTTP methods enum
[e-mobility-charging-stations-simulator.git] / src / types / ocpp / 2.0 / Common.ts
1 import type { JsonObject } from '../../internal';
2
3 export enum BootReasonEnumType {
4 ApplicationReset = 'ApplicationReset',
5 FirmwareUpdate = 'FirmwareUpdate',
6 LocalReset = 'LocalReset',
7 PowerUp = 'PowerUp',
8 RemoteReset = 'RemoteReset',
9 ScheduledReset = 'ScheduledReset',
10 Triggered = 'Triggered',
11 Unknown = 'Unknown',
12 Watchdog = 'Watchdog',
13 }
14
15 export enum OCPP20ConnectorStatusEnumType {
16 AVAILABLE = 'Available',
17 OCCUPIED = 'Occupied',
18 RESERVED = 'Reserved',
19 UNAVAILABLE = 'Unavailable',
20 FAULTED = 'Faulted',
21 }
22
23 export type StatusInfoType = {
24 reasonCode: string;
25 additionalInfo?: string;
26 } & JsonObject;
27
28 export type EVSEType = {
29 id: number;
30 connectorId?: string;
31 } & JsonObject;