refactor: cleanup eslint configuration
[e-mobility-charging-stations-simulator.git] / src / types / index.ts
index f312480a0eed1e4cda5865df7ebb97d2c560da70..023107fd3c0f9a7f309a26c6dbb4d43429aaa438 100644 (file)
@@ -1,87 +1,86 @@
-export {
-  ApplicationProtocol,
-  AuthenticationType,
-  ProcedureName,
-  Protocol,
-  type ProtocolRequest,
-  type ProtocolRequestHandler,
-  type ProtocolResponse,
-  ProtocolVersion,
-  type RequestPayload,
-  type ResponsePayload,
-  ResponseStatus,
-  type SimulatorState,
-  type TemplateStatistics
-} from './UIProtocol.js'
 export {
   type AutomaticTransactionGeneratorConfiguration,
   type ChargingStationAutomaticTransactionGeneratorConfiguration,
   IdTagDistribution,
   type Status
 } from './AutomaticTransactionGenerator.js'
-export { type GenericResponse, GenericStatus, RegistrationStatusEnumType } from './ocpp/Common.js'
+export type {
+  ChargingStationConfiguration,
+  EvseStatusConfiguration
+} from './ChargingStationConfiguration.js'
+export { ChargingStationEvents } from './ChargingStationEvents.js'
+export type { ChargingStationInfo } from './ChargingStationInfo.js'
+export type {
+  ChargingStationOcppConfiguration,
+  ConfigurationKey
+} from './ChargingStationOcppConfiguration.js'
 export {
-  AvailabilityType,
-  type BootNotificationRequest,
-  type CachedRequest,
-  type DataTransferRequest,
-  type DiagnosticsStatusNotificationRequest,
-  type ErrorCallback,
-  FirmwareStatus,
-  type FirmwareStatusNotificationRequest,
-  type HeartbeatRequest,
-  type IncomingRequest,
-  IncomingRequestCommand,
-  type IncomingRequestHandler,
-  MessageTrigger,
-  type MeterValuesRequest,
-  type OutgoingRequest,
-  RequestCommand,
-  type RequestParams,
-  type ResponseCallback,
-  type ResponseType,
-  type StatusNotificationRequest
-} from './ocpp/Requests.js'
+  AmpereUnits,
+  type ChargingStationTemplate,
+  CurrentType,
+  type FirmwareUpgrade,
+  PowerUnits,
+  Voltage,
+  type WsOptions
+} from './ChargingStationTemplate.js'
 export {
-  AvailabilityStatus,
-  type BootNotificationResponse,
-  ChargingProfileStatus,
-  type ClearCacheResponse,
-  ClearChargingProfileStatus,
-  ConfigurationStatus,
-  type DataTransferResponse,
-  DataTransferStatus,
-  type DiagnosticsStatusNotificationResponse,
-  type ErrorResponse,
-  type FirmwareStatusNotificationResponse,
-  type HeartbeatResponse,
-  type MeterValuesResponse,
-  ReservationStatus,
-  type Response,
-  type ResponseHandler,
-  type StatusNotificationResponse,
-  TriggerMessageStatus,
-  UnlockStatus
-} from './ocpp/Responses.js'
+  type ChargingStationData,
+  type ChargingStationOptions,
+  type ChargingStationWorkerData,
+  type ChargingStationWorkerEventError,
+  type ChargingStationWorkerMessage,
+  type ChargingStationWorkerMessageData,
+  ChargingStationWorkerMessageEvents,
+  type EvseStatusWorkerType
+} from './ChargingStationWorker.js'
 export {
-  AuthorizationStatus,
-  type AuthorizeRequest,
-  type AuthorizeResponse,
-  type StartTransactionRequest,
-  type StartTransactionResponse,
-  StopTransactionReason,
-  type StopTransactionRequest,
-  type StopTransactionResponse
-} from './ocpp/Transaction.js'
-export { BootReasonEnumType, OCPP20ConnectorStatusEnumType } from './ocpp/2.0/Common.js'
+  ApplicationProtocolVersion,
+  type ConfigurationData,
+  ConfigurationSection,
+  type ElementsPerWorkerType,
+  type LogConfiguration,
+  type StationTemplateUrl,
+  type StorageConfiguration,
+  SupervisionUrlDistribution,
+  type UIServerConfiguration,
+  type WorkerConfiguration
+} from './ConfigurationData.js'
+export type { ConnectorStatus } from './ConnectorStatus.js'
+export type { EmptyObject } from './EmptyObject.js'
+export type { HandleErrorParams } from './Error.js'
+export type { EvseStatus, EvseTemplate } from './Evse.js'
+export { FileType } from './FileType.js'
+export type { JsonObject, JsonType } from './JsonType.js'
+export type {
+  MeasurandPerPhaseSampledValueTemplates,
+  SampledValueTemplate
+} from './MeasurandPerPhaseSampledValueTemplates.js'
+export type { MeasurandValues } from './MeasurandValues.js'
+export { OCPP16ChargePointErrorCode } from './ocpp/1.6/ChargePointErrorCode.js'
+export { OCPP16ChargePointStatus } from './ocpp/1.6/ChargePointStatus.js'
 export {
-  BroadcastChannelProcedureName,
-  type BroadcastChannelRequest,
-  type BroadcastChannelRequestPayload,
-  type BroadcastChannelResponse,
-  type BroadcastChannelResponsePayload,
-  type MessageEvent
-} from './WorkerBroadcastChannel.js'
+  type OCPP16ChargingProfile,
+  OCPP16ChargingProfilePurposeType,
+  OCPP16ChargingRateUnitType,
+  type OCPP16ChargingSchedule,
+  type OCPP16ChargingSchedulePeriod
+} from './ocpp/1.6/ChargingProfile.js'
+export {
+  OCPP16StandardParametersKey,
+  OCPP16SupportedFeatureProfiles
+} from './ocpp/1.6/Configuration.js'
+export { OCPP16DiagnosticsStatus } from './ocpp/1.6/DiagnosticsStatus.js'
+export {
+  type OCPP16MeterValue,
+  OCPP16MeterValueContext,
+  OCPP16MeterValueLocation,
+  OCPP16MeterValueMeasurand,
+  OCPP16MeterValuePhase,
+  type OCPP16MeterValuesRequest,
+  type OCPP16MeterValuesResponse,
+  OCPP16MeterValueUnit,
+  type OCPP16SampledValue
+} from './ocpp/1.6/MeterValues.js'
 export {
   type ChangeConfigurationRequest,
   type GetConfigurationRequest,
@@ -133,6 +132,32 @@ export {
   type SetChargingProfileResponse,
   type UnlockConnectorResponse
 } from './ocpp/1.6/Responses.js'
+export {
+  OCPP16AuthorizationStatus,
+  type OCPP16AuthorizeRequest,
+  type OCPP16AuthorizeResponse,
+  type OCPP16StartTransactionRequest,
+  type OCPP16StartTransactionResponse,
+  OCPP16StopTransactionReason,
+  type OCPP16StopTransactionRequest,
+  type OCPP16StopTransactionResponse
+} from './ocpp/1.6/Transaction.js'
+export { BootReasonEnumType, OCPP20ConnectorStatusEnumType } from './ocpp/2.0/Common.js'
+export {
+  type OCPP20BootNotificationRequest,
+  type OCPP20ClearCacheRequest,
+  type OCPP20HeartbeatRequest,
+  OCPP20IncomingRequestCommand,
+  OCPP20RequestCommand,
+  type OCPP20StatusNotificationRequest
+} from './ocpp/2.0/Requests.js'
+export type {
+  OCPP20BootNotificationResponse,
+  OCPP20ClearCacheResponse,
+  OCPP20HeartbeatResponse,
+  OCPP20StatusNotificationResponse
+} from './ocpp/2.0/Responses.js'
+export { OCPP20OptionalVariableName } from './ocpp/2.0/Variables.js'
 export { ChargePointErrorCode } from './ocpp/ChargePointErrorCode.js'
 export {
   type ChargingProfile,
@@ -141,46 +166,7 @@ export {
   type ChargingSchedulePeriod,
   RecurrencyKindType
 } from './ocpp/ChargingProfile.js'
-export type {
-  ChargingStationConfiguration,
-  EvseStatusConfiguration
-} from './ChargingStationConfiguration.js'
-export {
-  type ChargingStationData,
-  type ChargingStationWorkerData,
-  type ChargingStationWorkerEventError,
-  type ChargingStationWorkerMessage,
-  type ChargingStationWorkerMessageData,
-  ChargingStationWorkerMessageEvents,
-  type ChargingStationOptions,
-  type EvseStatusWorkerType
-} from './ChargingStationWorker.js'
-export type { ChargingStationInfo } from './ChargingStationInfo.js'
-export type {
-  ChargingStationOcppConfiguration,
-  ConfigurationKey
-} from './ChargingStationOcppConfiguration.js'
-export {
-  AmpereUnits,
-  type ChargingStationTemplate,
-  CurrentType,
-  type FirmwareUpgrade,
-  PowerUnits,
-  Voltage,
-  type WsOptions
-} from './ChargingStationTemplate.js'
-export {
-  ApplicationProtocolVersion,
-  type ConfigurationData,
-  ConfigurationSection,
-  type ElementsPerWorkerType,
-  type LogConfiguration,
-  type StationTemplateUrl,
-  type StorageConfiguration,
-  SupervisionUrlDistribution,
-  type UIServerConfiguration,
-  type WorkerConfiguration
-} from './ConfigurationData.js'
+export { type GenericResponse, GenericStatus, RegistrationStatusEnumType } from './ocpp/Common.js'
 export {
   type ConfigurationKeyType,
   ConnectorPhaseRotation,
@@ -189,20 +175,8 @@ export {
   SupportedFeatureProfiles,
   VendorParametersKey
 } from './ocpp/Configuration.js'
-export type { ConnectorStatus } from './ConnectorStatus.js'
 export { ConnectorStatusEnum, type ConnectorStatusTransition } from './ocpp/ConnectorStatusEnum.js'
-export { DBName, StorageType } from './Storage.js'
-export type { EmptyObject } from './EmptyObject.js'
 export { ErrorType } from './ocpp/ErrorType.js'
-export type { EvseTemplate, EvseStatus } from './Evse.js'
-export { FileType } from './FileType.js'
-export type { HandleErrorParams } from './Error.js'
-export type { JsonObject, JsonType } from './JsonType.js'
-export type {
-  MeasurandPerPhaseSampledValueTemplates,
-  SampledValueTemplate
-} from './MeasurandPerPhaseSampledValueTemplates.js'
-export type { MeasurandValues } from './MeasurandValues.js'
 export { MessageType } from './ocpp/MessageType.js'
 export {
   type MeterValue,
@@ -213,57 +187,65 @@ export {
   MeterValueUnit,
   type SampledValue
 } from './ocpp/MeterValues.js'
+export { OCPPVersion } from './ocpp/OCPPVersion.js'
 export {
-  type OCPP16MeterValue,
-  OCPP16MeterValueContext,
-  OCPP16MeterValueLocation,
-  OCPP16MeterValueMeasurand,
-  OCPP16MeterValuePhase,
-  OCPP16MeterValueUnit,
-  type OCPP16MeterValuesRequest,
-  type OCPP16MeterValuesResponse,
-  type OCPP16SampledValue
-} from './ocpp/1.6/MeterValues.js'
-export {
-  OCPP16AuthorizationStatus,
-  type OCPP16AuthorizeRequest,
-  type OCPP16AuthorizeResponse,
-  type OCPP16StartTransactionRequest,
-  type OCPP16StartTransactionResponse,
-  OCPP16StopTransactionReason,
-  type OCPP16StopTransactionRequest,
-  type OCPP16StopTransactionResponse
-} from './ocpp/1.6/Transaction.js'
-export { OCPP16ChargePointErrorCode } from './ocpp/1.6/ChargePointErrorCode.js'
-export { OCPP16ChargePointStatus } from './ocpp/1.6/ChargePointStatus.js'
+  AvailabilityType,
+  type BootNotificationRequest,
+  type CachedRequest,
+  type DataTransferRequest,
+  type DiagnosticsStatusNotificationRequest,
+  type ErrorCallback,
+  FirmwareStatus,
+  type FirmwareStatusNotificationRequest,
+  type HeartbeatRequest,
+  type IncomingRequest,
+  IncomingRequestCommand,
+  type IncomingRequestHandler,
+  MessageTrigger,
+  type MeterValuesRequest,
+  type OutgoingRequest,
+  RequestCommand,
+  type RequestParams,
+  type ResponseCallback,
+  type ResponseType,
+  type StatusNotificationRequest
+} from './ocpp/Requests.js'
 export {
-  type OCPP16ChargingProfile,
-  OCPP16ChargingProfilePurposeType,
-  OCPP16ChargingRateUnitType,
-  type OCPP16ChargingSchedule,
-  type OCPP16ChargingSchedulePeriod
-} from './ocpp/1.6/ChargingProfile.js'
+  type Reservation,
+  type ReservationKey,
+  ReservationTerminationReason
+} from './ocpp/Reservation.js'
 export {
-  OCPP16StandardParametersKey,
-  OCPP16SupportedFeatureProfiles
-} from './ocpp/1.6/Configuration.js'
-export { OCPP16DiagnosticsStatus } from './ocpp/1.6/DiagnosticsStatus.js'
+  AvailabilityStatus,
+  type BootNotificationResponse,
+  ChargingProfileStatus,
+  type ClearCacheResponse,
+  ClearChargingProfileStatus,
+  ConfigurationStatus,
+  type DataTransferResponse,
+  DataTransferStatus,
+  type DiagnosticsStatusNotificationResponse,
+  type ErrorResponse,
+  type FirmwareStatusNotificationResponse,
+  type HeartbeatResponse,
+  type MeterValuesResponse,
+  ReservationStatus,
+  type Response,
+  type ResponseHandler,
+  type StatusNotificationResponse,
+  TriggerMessageStatus,
+  UnlockStatus
+} from './ocpp/Responses.js'
 export {
-  type OCPP20BootNotificationRequest,
-  type OCPP20ClearCacheRequest,
-  type OCPP20HeartbeatRequest,
-  OCPP20IncomingRequestCommand,
-  OCPP20RequestCommand,
-  type OCPP20StatusNotificationRequest
-} from './ocpp/2.0/Requests.js'
-export type {
-  OCPP20BootNotificationResponse,
-  OCPP20ClearCacheResponse,
-  OCPP20HeartbeatResponse,
-  OCPP20StatusNotificationResponse
-} from './ocpp/2.0/Responses.js'
-export { OCPP20OptionalVariableName } from './ocpp/2.0/Variables.js'
-export { OCPPVersion } from './ocpp/OCPPVersion.js'
+  AuthorizationStatus,
+  type AuthorizeRequest,
+  type AuthorizeResponse,
+  type StartTransactionRequest,
+  type StartTransactionResponse,
+  StopTransactionReason,
+  type StopTransactionRequest,
+  type StopTransactionResponse
+} from './ocpp/Transaction.js'
 export { PerformanceRecord } from './orm/entities/PerformanceRecord.js'
 export type {
   InternalTemplateStatistics,
@@ -271,14 +253,32 @@ export type {
   StatisticsData,
   TimestampedData
 } from './Statistics.js'
+export { DBName, StorageType } from './Storage.js'
+export {
+  ApplicationProtocol,
+  AuthenticationType,
+  ProcedureName,
+  Protocol,
+  type ProtocolRequest,
+  type ProtocolRequestHandler,
+  type ProtocolResponse,
+  ProtocolVersion,
+  type RequestPayload,
+  type ResponsePayload,
+  ResponseStatus,
+  type SimulatorState,
+  type TemplateStatistics
+} from './UIProtocol.js'
 export {
-  type WSError,
   WebSocketCloseEventStatusCode,
-  WebSocketCloseEventStatusString
+  WebSocketCloseEventStatusString,
+  type WSError
 } from './WebSocket.js'
 export {
-  type Reservation,
-  type ReservationKey,
-  ReservationTerminationReason
-} from './ocpp/Reservation.js'
-export { ChargingStationEvents } from './ChargingStationEvents.js'
+  BroadcastChannelProcedureName,
+  type BroadcastChannelRequest,
+  type BroadcastChannelRequestPayload,
+  type BroadcastChannelResponse,
+  type BroadcastChannelResponsePayload,
+  type MessageEvent
+} from './WorkerBroadcastChannel.js'