refactor: cleanup import
[e-mobility-charging-stations-simulator.git] / src / types / index.ts
index 8b060dd0bfc891b7ebcb06736ec8c6226fca0758..66a9682277abb2a637afa4c07f92a282232a12c3 100644 (file)
 export {
-  AmpereUnits,
   ApplicationProtocol,
   AuthenticationType,
-  AuthorizationStatus,
-  type AuthorizeRequest,
-  type AuthorizeResponse,
+  ProcedureName,
+  Protocol,
+  type ProtocolRequest,
+  type ProtocolRequestHandler,
+  type ProtocolResponse,
+  ProtocolVersion,
+  type RequestPayload,
+  type ResponsePayload,
+  ResponseStatus,
+} from './UIProtocol';
+export {
   type AutomaticTransactionGeneratorConfiguration,
-  AvailabilityStatus,
+  type ChargingStationAutomaticTransactionGeneratorConfiguration,
+  IdTagDistribution,
+  type Status,
+} from './AutomaticTransactionGenerator';
+export { type GenericResponse, GenericStatus, RegistrationStatusEnumType } from './ocpp/Common';
+export {
   AvailabilityType,
   type BootNotificationRequest,
-  type BootNotificationResponse,
-  BootReasonEnumType,
-  BroadcastChannelProcedureName,
-  type BroadcastChannelRequest,
-  type BroadcastChannelRequestPayload,
-  type BroadcastChannelResponse,
-  type BroadcastChannelResponsePayload,
   type CachedRequest,
-  type ChangeAvailabilityRequest,
-  type ChangeAvailabilityResponse,
-  type ChangeConfigurationRequest,
-  type ChangeConfigurationResponse,
-  ChargePointErrorCode,
-  type ChargingProfile,
-  ChargingProfileKindType,
-  ChargingProfileStatus,
-  ChargingRateUnitType,
-  type ChargingSchedulePeriod,
-  type ChargingStationConfiguration,
-  type ChargingStationData,
-  type ChargingStationInfo,
-  type ChargingStationOcppConfiguration,
-  type ChargingStationTemplate,
-  type ChargingStationWorkerData,
-  type ChargingStationWorkerMessage,
-  type ChargingStationWorkerMessageData,
-  ChargingStationWorkerMessageEvents,
-  type ClearCacheResponse,
-  type ClearChargingProfileRequest,
-  type ClearChargingProfileResponse,
-  ClearChargingProfileStatus,
-  type ConfigurationData,
-  type ConfigurationKey,
-  type ConfigurationKeyType,
-  ConfigurationStatus,
-  ConnectorPhaseRotation,
-  type ConnectorStatus,
-  ConnectorStatusEnum,
-  type ConnectorStatusTransition,
-  CurrentType,
-  DBName,
   type DataTransferRequest,
-  type DataTransferResponse,
-  DataTransferStatus,
   type DiagnosticsStatusNotificationRequest,
-  type DiagnosticsStatusNotificationResponse,
-  type EmptyObject,
   type ErrorCallback,
-  type ErrorResponse,
-  ErrorType,
-  FileType,
   FirmwareStatus,
   type FirmwareStatusNotificationRequest,
-  type FirmwareStatusNotificationResponse,
-  type FirmwareUpgrade,
-  type GenericResponse,
-  GenericStatus,
-  type GetConfigurationRequest,
-  type GetConfigurationResponse,
-  type GetDiagnosticsRequest,
-  type GetDiagnosticsResponse,
-  type HandleErrorParams,
   type HeartbeatRequest,
-  type HeartbeatResponse,
-  IdTagDistribution,
   type IncomingRequest,
   IncomingRequestCommand,
   type IncomingRequestHandler,
-  type JsonObject,
-  type JsonType,
-  type MeasurandPerPhaseSampledValueTemplates,
-  type MeasurandValues,
-  type MessageEvent,
   MessageTrigger,
-  MessageType,
-  type MeterValue,
-  MeterValueContext,
-  MeterValueLocation,
-  MeterValueMeasurand,
-  type MeterValuePhase,
-  MeterValueUnit,
   type MeterValuesRequest,
+  type OutgoingRequest,
+  RequestCommand,
+  type RequestParams,
+  type ResponseCallback,
+  type ResponseType,
+  type StatusNotificationRequest,
+} from './ocpp/Requests';
+export {
+  AvailabilityStatus,
+  type BootNotificationResponse,
+  ChargingProfileStatus,
+  type ClearCacheResponse,
+  ClearChargingProfileStatus,
+  ConfigurationStatus,
+  type DataTransferResponse,
+  DataTransferStatus,
+  type DiagnosticsStatusNotificationResponse,
+  type ErrorResponse,
+  type FirmwareStatusNotificationResponse,
+  type HeartbeatResponse,
   type MeterValuesResponse,
-  type MikroOrmDbType,
-  OCPP16AuthorizationStatus,
-  type OCPP16AuthorizeRequest,
-  type OCPP16AuthorizeResponse,
+  type Response,
+  type ResponseHandler,
+  type StatusNotificationResponse,
+  TriggerMessageStatus,
+  UnlockStatus,
+} from './ocpp/Responses';
+export {
+  AuthorizationStatus,
+  type AuthorizeRequest,
+  type AuthorizeResponse,
+  type StartTransactionRequest,
+  type StartTransactionResponse,
+  StopTransactionReason,
+  type StopTransactionRequest,
+  type StopTransactionResponse,
+} from './ocpp/Transaction';
+export { BootReasonEnumType, OCPP20ConnectorStatusEnumType } from './ocpp/2.0/Common';
+export {
+  BroadcastChannelProcedureName,
+  type BroadcastChannelRequest,
+  type BroadcastChannelRequestPayload,
+  type BroadcastChannelResponse,
+  type BroadcastChannelResponsePayload,
+  type MessageEvent,
+} from './WorkerBroadcastChannel';
+export {
+  type ChangeConfigurationRequest,
+  type ClearChargingProfileRequest,
+  type GetConfigurationRequest,
+  type GetDiagnosticsRequest,
   OCPP16AvailabilityType,
   type OCPP16BootNotificationRequest,
-  type OCPP16BootNotificationResponse,
-  OCPP16ChargePointErrorCode,
-  OCPP16ChargePointStatus,
-  type OCPP16ChargingProfile,
-  OCPP16ChargingProfilePurposeType,
-  type OCPP16ChargingSchedule,
+  type OCPP16CancelReservationRequest,
+  type OCPP16ChangeAvailabilityRequest,
   type OCPP16ClearCacheRequest,
   type OCPP16DataTransferRequest,
-  type OCPP16DataTransferResponse,
-  OCPP16DataTransferStatus,
   OCPP16DataTransferVendorId,
-  OCPP16DiagnosticsStatus,
   type OCPP16DiagnosticsStatusNotificationRequest,
-  type OCPP16DiagnosticsStatusNotificationResponse,
   OCPP16FirmwareStatus,
   type OCPP16FirmwareStatusNotificationRequest,
-  type OCPP16FirmwareStatusNotificationResponse,
   type OCPP16GetCompositeScheduleRequest,
-  type OCPP16GetCompositeScheduleResponse,
   type OCPP16HeartbeatRequest,
-  type OCPP16HeartbeatResponse,
   OCPP16IncomingRequestCommand,
   OCPP16MessageTrigger,
+  OCPP16RequestCommand,
+  type OCPP16ReserveNowRequest,
+  type OCPP16StatusNotificationRequest,
+  type OCPP16TriggerMessageRequest,
+  type OCPP16UpdateFirmwareRequest,
+  type RemoteStartTransactionRequest,
+  type RemoteStopTransactionRequest,
+  type ResetRequest,
+  type SetChargingProfileRequest,
+  type UnlockConnectorRequest,
+} from './ocpp/1.6/Requests';
+export {
+  type ChangeConfigurationResponse,
+  type ClearChargingProfileResponse,
+  type GetConfigurationResponse,
+  type GetDiagnosticsResponse,
+  type OCPP16BootNotificationResponse,
+  type OCPP16ChangeAvailabilityResponse,
+  type OCPP16DataTransferResponse,
+  OCPP16DataTransferStatus,
+  type OCPP16DiagnosticsStatusNotificationResponse,
+  type OCPP16FirmwareStatusNotificationResponse,
+  type OCPP16GetCompositeScheduleResponse,
+  type OCPP16HeartbeatResponse,
+  type OCPP16ReserveNowResponse,
+  type OCPP16StatusNotificationResponse,
+  type OCPP16TriggerMessageResponse,
+  type OCPP16UpdateFirmwareResponse,
+  type SetChargingProfileResponse,
+  type UnlockConnectorResponse,
+} from './ocpp/1.6/Responses';
+export { ChargePointErrorCode } from './ocpp/ChargePointErrorCode';
+export {
+  type ChargingProfile,
+  ChargingProfileKindType,
+  ChargingRateUnitType,
+  type ChargingSchedulePeriod,
+  RecurrencyKindType,
+} from './ocpp/ChargingProfile';
+export type {
+  ChargingStationConfiguration,
+  EvseStatusConfiguration,
+} from './ChargingStationConfiguration';
+export {
+  type ChargingStationData,
+  type ChargingStationWorkerData,
+  type ChargingStationWorkerMessage,
+  type ChargingStationWorkerMessageData,
+  ChargingStationWorkerMessageEvents,
+  type EvseStatusWorkerType,
+} from './ChargingStationWorker';
+export type { ChargingStationInfo } from './ChargingStationInfo';
+export type {
+  ChargingStationOcppConfiguration,
+  ConfigurationKey,
+} from './ChargingStationOcppConfiguration';
+export {
+  AmpereUnits,
+  type ChargingStationTemplate,
+  CurrentType,
+  type FirmwareUpgrade,
+  PowerUnits,
+  Voltage,
+  type WsOptions,
+} from './ChargingStationTemplate';
+export {
+  ApplicationProtocolVersion,
+  type ConfigurationData,
+  ConfigurationSection,
+  type LogConfiguration,
+  type StationTemplateUrl,
+  type StorageConfiguration,
+  SupervisionUrlDistribution,
+  type UIServerConfiguration,
+  type WorkerConfiguration,
+} from './ConfigurationData';
+export {
+  type ConfigurationKeyType,
+  ConnectorPhaseRotation,
+  type OCPPConfigurationKey,
+  StandardParametersKey,
+  SupportedFeatureProfiles,
+  VendorParametersKey,
+} from './ocpp/Configuration';
+export type { ConnectorStatus } from './ConnectorStatus';
+export { ConnectorStatusEnum, type ConnectorStatusTransition } from './ocpp/ConnectorStatusEnum';
+export { DBName, type MikroOrmDbType, StorageType } from './Storage';
+export type { EmptyObject } from './EmptyObject';
+export { ErrorType } from './ocpp/ErrorType';
+export type { EvseTemplate, EvseStatus } from './Evse';
+export { FileType } from './FileType';
+export type { HandleErrorParams } from './Error';
+export type { JsonObject, JsonType } from './JsonType';
+export type {
+  MeasurandPerPhaseSampledValueTemplates,
+  SampledValueTemplate,
+} from './MeasurandPerPhaseSampledValueTemplates';
+export type { MeasurandValues } from './MeasurandValues';
+export { MessageType } from './ocpp/MessageType';
+export { type MeterValue, MeterValueMeasurand, MeterValuePhase } from './ocpp/MeterValues';
+export {
+  MeterValueContext,
+  MeterValueLocation,
+  MeterValueUnit,
   type OCPP16MeterValue,
   OCPP16MeterValueMeasurand,
   OCPP16MeterValuePhase,
   type OCPP16MeterValuesRequest,
   type OCPP16MeterValuesResponse,
-  OCPP16RequestCommand,
   type OCPP16SampledValue,
-  OCPP16StandardParametersKey,
+} from './ocpp/1.6/MeterValues';
+export {
+  OCPP16AuthorizationStatus,
+  type OCPP16AuthorizeRequest,
+  type OCPP16AuthorizeResponse,
   type OCPP16StartTransactionRequest,
   type OCPP16StartTransactionResponse,
-  type OCPP16StatusNotificationRequest,
-  type OCPP16StatusNotificationResponse,
   OCPP16StopTransactionReason,
   type OCPP16StopTransactionRequest,
   type OCPP16StopTransactionResponse,
+} from './ocpp/1.6/Transaction';
+export { OCPP16ChargePointErrorCode } from './ocpp/1.6/ChargePointErrorCode';
+export { OCPP16ChargePointStatus } from './ocpp/1.6/ChargePointStatus';
+export {
+  type OCPP16ChargingProfile,
+  OCPP16ChargingProfilePurposeType,
+  OCPP16ChargingRateUnitType,
+  type OCPP16ChargingSchedule,
+  type OCPP16ChargingSchedulePeriod,
+} from './ocpp/1.6/ChargingProfile';
+export {
+  OCPP16StandardParametersKey,
   OCPP16SupportedFeatureProfiles,
-  type OCPP16TriggerMessageRequest,
-  type OCPP16TriggerMessageResponse,
-  type OCPP16UpdateFirmwareRequest,
-  type OCPP16UpdateFirmwareResponse,
+} from './ocpp/1.6/Configuration';
+export { OCPP16DiagnosticsStatus } from './ocpp/1.6/DiagnosticsStatus';
+export {
   type OCPP20BootNotificationRequest,
-  type OCPP20BootNotificationResponse,
   type OCPP20ClearCacheRequest,
-  type OCPP20ClearCacheResponse,
-  OCPP20ConnectorStatusEnumType,
   type OCPP20HeartbeatRequest,
-  type OCPP20HeartbeatResponse,
   OCPP20IncomingRequestCommand,
-  OCPP20OptionalVariableName,
   OCPP20RequestCommand,
   type OCPP20StatusNotificationRequest,
-  type OCPP20StatusNotificationResponse,
-  type OCPPConfigurationKey,
-  OCPPVersion,
-  type OutgoingRequest,
-  PerformanceData,
-  PerformanceRecord,
-  PowerUnits,
-  ProcedureName,
-  Protocol,
-  type ProtocolRequest,
-  type ProtocolRequestHandler,
-  type ProtocolResponse,
-  ProtocolVersion,
-  RecurrencyKindType,
-  RegistrationStatusEnumType,
-  type RemoteStartTransactionRequest,
-  type RemoteStopTransactionRequest,
-  RequestCommand,
-  type RequestParams,
-  type RequestPayload,
-  type ResetRequest,
-  type Response,
-  type ResponseCallback,
-  type ResponseHandler,
-  type ResponsePayload,
-  ResponseStatus,
-  type ResponseType,
-  type SampledValueTemplate,
-  type SetChargingProfileRequest,
-  type SetChargingProfileResponse,
-  StandardParametersKey,
-  type StartTransactionRequest,
-  type StartTransactionResponse,
-  type StationTemplateUrl,
-  type Statistics,
-  type Status,
-  type StatusNotificationRequest,
-  type StatusNotificationResponse,
-  StopTransactionReason,
-  type StopTransactionRequest,
-  type StopTransactionResponse,
-  type StorageConfiguration,
-  StorageType,
-  SupervisionUrlDistribution,
-  SupportedFeatureProfiles,
-  type TimeSeries,
-  TriggerMessageStatus,
-  type UIServerConfiguration,
-  type UnlockConnectorRequest,
-  type UnlockConnectorResponse,
-  UnlockStatus,
-  VendorParametersKey,
-  Voltage,
+} from './ocpp/2.0/Requests';
+export type {
+  OCPP20BootNotificationResponse,
+  OCPP20ClearCacheResponse,
+  OCPP20HeartbeatResponse,
+  OCPP20StatusNotificationResponse,
+} from './ocpp/2.0/Responses';
+export { OCPP20OptionalVariableName } from './ocpp/2.0/Variables';
+export { OCPPVersion } from './ocpp/OCPPVersion';
+export { PerformanceData } from './orm/entities/PerformanceData';
+export { PerformanceRecord } from './orm/entities/PerformanceRecord';
+export type { Statistics, TimestampedData } from './Statistics';
+export {
   type WSError,
   WebSocketCloseEventStatusCode,
   WebSocketCloseEventStatusString,
-  type WorkerConfiguration,
-  type WsOptions,
-} from './internal';
+} from './WebSocket';
+export {
+  type Reservation,
+  type ReservationKey,
+  ReservationTerminationReason,
+} from './ocpp/Reservation';