chore: switch coding style to JS standard
[e-mobility-charging-stations-simulator.git] / src / types / ocpp / 2.0 / Common.ts
index 9898ca3c7523e0155a7263bee8bdaea2932404e6..9d13b2a829aa295cb6cffd86b0409d5cb1b419f9 100644 (file)
@@ -1,17 +1,15 @@
-import type { JsonObject } from '../../JsonType.js';
-import type { GenericStatus } from '../Common.js';
+import type { JsonObject } from '../../JsonType.js'
+import type { GenericStatus } from '../Common.js'
 
 export enum DataEnumType {
-  // eslint-disable-next-line id-blacklist
   string = 'string',
   decimal = 'decimal',
   integer = 'integer',
   dateTime = 'dateTime',
-  // eslint-disable-next-line id-blacklist
   boolean = 'boolean',
   OptionList = 'OptionList',
   SequenceList = 'SequenceList',
-  MemberList = 'MemberList',
+  MemberList = 'MemberList'
 }
 
 export enum BootReasonEnumType {
@@ -23,12 +21,12 @@ export enum BootReasonEnumType {
   ScheduledReset = 'ScheduledReset',
   Triggered = 'Triggered',
   Unknown = 'Unknown',
-  Watchdog = 'Watchdog',
+  Watchdog = 'Watchdog'
 }
 
 export enum OperationalStatusEnumType {
   Operative = 'Operative',
-  Inoperative = 'Inoperative',
+  Inoperative = 'Inoperative'
 }
 
 export enum OCPP20ConnectorStatusEnumType {
@@ -36,15 +34,15 @@ export enum OCPP20ConnectorStatusEnumType {
   Occupied = 'Occupied',
   Reserved = 'Reserved',
   Unavailable = 'Unavailable',
-  Faulted = 'Faulted',
+  Faulted = 'Faulted'
 }
 
-export type GenericStatusEnumType = GenericStatus;
+export type GenericStatusEnumType = GenericStatus
 
 export enum HashAlgorithmEnumType {
   SHA256 = 'SHA256',
   SHA384 = 'SHA384',
-  SHA512 = 'SHA512',
+  SHA512 = 'SHA512'
 }
 
 export enum GetCertificateIdUseEnumType {
@@ -52,77 +50,77 @@ export enum GetCertificateIdUseEnumType {
   MORootCertificate = 'MORootCertificate',
   CSMSRootCertificate = 'CSMSRootCertificate',
   V2GCertificateChain = 'V2GCertificateChain',
-  ManufacturerRootCertificate = 'ManufacturerRootCertificate',
+  ManufacturerRootCertificate = 'ManufacturerRootCertificate'
 }
 
 export enum GetCertificateStatusEnumType {
   Accepted = 'Accepted',
-  Failed = 'Failed',
+  Failed = 'Failed'
 }
 
 export enum GetInstalledCertificateStatusEnumType {
   Accepted = 'Accepted',
-  NotFound = 'NotFound',
+  NotFound = 'NotFound'
 }
 
 export enum InstallCertificateStatusEnumType {
   Accepted = 'Accepted',
   Rejected = 'Rejected',
-  Failed = 'Failed',
+  Failed = 'Failed'
 }
 
 export enum InstallCertificateUseEnumType {
   V2GRootCertificate = 'V2GRootCertificate',
   MORootCertificate = 'MORootCertificate',
   CSMSRootCertificate = 'CSMSRootCertificate',
-  ManufacturerRootCertificate = 'ManufacturerRootCertificate',
+  ManufacturerRootCertificate = 'ManufacturerRootCertificate'
 }
 
 export enum DeleteCertificateStatusEnumType {
   Accepted = 'Accepted',
   Failed = 'Failed',
-  NotFound = 'NotFound',
+  NotFound = 'NotFound'
 }
 
 export enum CertificateActionEnumType {
   Install = 'Install',
-  Update = 'Update',
+  Update = 'Update'
 }
 
 export enum CertificateSigningUseEnumType {
   ChargingStationCertificate = 'ChargingStationCertificate',
-  V2GCertificate = 'V2GCertificate',
+  V2GCertificate = 'V2GCertificate'
 }
 
-export type CertificateSignedStatusEnumType = GenericStatusEnumType;
+export type CertificateSignedStatusEnumType = GenericStatusEnumType
 
 export type CertificateHashDataType = {
-  hashAlgorithm: HashAlgorithmEnumType;
-  issuerNameHash: string;
-  issuerKeyHash: string;
-  serialNumber: string;
-} & JsonObject;
+  hashAlgorithm: HashAlgorithmEnumType
+  issuerNameHash: string
+  issuerKeyHash: string
+  serialNumber: string
+} & JsonObject
 
 export type CertificateHashDataChainType = {
-  certificateType: GetCertificateIdUseEnumType;
-  certificateHashData: CertificateHashDataType;
-  childCertificateHashData?: CertificateHashDataType;
-} & JsonObject;
+  certificateType: GetCertificateIdUseEnumType
+  certificateHashData: CertificateHashDataType
+  childCertificateHashData?: CertificateHashDataType
+} & JsonObject
 
 export type OCSPRequestDataType = {
-  hashAlgorithm: HashAlgorithmEnumType;
-  issuerNameHash: string;
-  issuerKeyHash: string;
-  serialNumber: string;
-  responderURL: string;
-} & JsonObject;
+  hashAlgorithm: HashAlgorithmEnumType
+  issuerNameHash: string
+  issuerKeyHash: string
+  serialNumber: string
+  responderURL: string
+} & JsonObject
 
 export type StatusInfoType = {
-  reasonCode: string;
-  additionalInfo?: string;
-} & JsonObject;
+  reasonCode: string
+  additionalInfo?: string
+} & JsonObject
 
 export type EVSEType = {
-  id: number;
-  connectorId?: string;
-} & JsonObject;
+  id: number
+  connectorId?: string
+} & JsonObject