perf: add fastpath for trigger message handling
[e-mobility-charging-stations-simulator.git] / src / types / index.ts
index 04608aaba3289fc9910c246b2bfdf1a9d21383a4..0de12683d952000179e7dedc58b1a944a8411fe5 100644 (file)
@@ -9,15 +9,15 @@ export {
   ProtocolVersion,
   type RequestPayload,
   type ResponsePayload,
-  ResponseStatus,
-} from './UIProtocol';
+  ResponseStatus
+} from './UIProtocol.js'
 export {
   type AutomaticTransactionGeneratorConfiguration,
   type ChargingStationAutomaticTransactionGeneratorConfiguration,
   IdTagDistribution,
-  type Status,
-} from './AutomaticTransactionGenerator';
-export { type GenericResponse, GenericStatus, RegistrationStatusEnumType } from './ocpp/Common';
+  type Status
+} from './AutomaticTransactionGenerator.js'
+export { type GenericResponse, GenericStatus, RegistrationStatusEnumType } from './ocpp/Common.js'
 export {
   AvailabilityType,
   type BootNotificationRequest,
@@ -38,28 +38,29 @@ export {
   type RequestParams,
   type ResponseCallback,
   type ResponseType,
-  type StatusNotificationRequest,
-} from './ocpp/Requests';
+  type StatusNotificationRequest
+} from './ocpp/Requests.js'
 export {
   AvailabilityStatus,
   type BootNotificationResponse,
   ChargingProfileStatus,
-  ClearChargingProfileStatus,
   type ClearCacheResponse,
+  ClearChargingProfileStatus,
   ConfigurationStatus,
-  DataTransferStatus,
   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';
+  UnlockStatus
+} from './ocpp/Responses.js'
 export {
   AuthorizationStatus,
   type AuthorizeRequest,
@@ -68,26 +69,27 @@ export {
   type StartTransactionResponse,
   StopTransactionReason,
   type StopTransactionRequest,
-  type StopTransactionResponse,
-} from './ocpp/Transaction';
-export { BootReasonEnumType, OCPP20ConnectorStatusEnumType } from './ocpp/2.0/Common';
+  type StopTransactionResponse
+} from './ocpp/Transaction.js'
+export { BootReasonEnumType, OCPP20ConnectorStatusEnumType } from './ocpp/2.0/Common.js'
 export {
   BroadcastChannelProcedureName,
   type BroadcastChannelRequest,
   type BroadcastChannelRequestPayload,
   type BroadcastChannelResponse,
   type BroadcastChannelResponsePayload,
-  type MessageEvent,
-} from './WorkerBroadcastChannel';
+  type MessageEvent
+} from './WorkerBroadcastChannel.js'
 export {
-  type ChangeAvailabilityRequest,
   type ChangeConfigurationRequest,
-  type ClearChargingProfileRequest,
   type GetConfigurationRequest,
   type GetDiagnosticsRequest,
   OCPP16AvailabilityType,
   type OCPP16BootNotificationRequest,
+  type OCPP16CancelReservationRequest,
+  type OCPP16ChangeAvailabilityRequest,
   type OCPP16ClearCacheRequest,
+  type OCPP16ClearChargingProfileRequest,
   type OCPP16DataTransferRequest,
   OCPP16DataTransferVendorId,
   type OCPP16DiagnosticsStatusNotificationRequest,
@@ -98,6 +100,7 @@ export {
   OCPP16IncomingRequestCommand,
   OCPP16MessageTrigger,
   OCPP16RequestCommand,
+  type OCPP16ReserveNowRequest,
   type OCPP16StatusNotificationRequest,
   type OCPP16TriggerMessageRequest,
   type OCPP16UpdateFirmwareRequest,
@@ -105,55 +108,54 @@ export {
   type RemoteStopTransactionRequest,
   type ResetRequest,
   type SetChargingProfileRequest,
-  type UnlockConnectorRequest,
-  type OCPP16ReserveNowRequest,
-  type OCPP16CancelReservationRequest,
-} from './ocpp/1.6/Requests';
+  type UnlockConnectorRequest
+} from './ocpp/1.6/Requests.js'
 export {
-  type ChangeAvailabilityResponse,
   type ChangeConfigurationResponse,
-  type ClearChargingProfileResponse,
   type GetConfigurationResponse,
   type GetDiagnosticsResponse,
   type OCPP16BootNotificationResponse,
+  type OCPP16ChangeAvailabilityResponse,
+  type OCPP16ClearChargingProfileResponse,
   type OCPP16DataTransferResponse,
   OCPP16DataTransferStatus,
   type OCPP16DiagnosticsStatusNotificationResponse,
   type OCPP16FirmwareStatusNotificationResponse,
   type OCPP16GetCompositeScheduleResponse,
   type OCPP16HeartbeatResponse,
+  type OCPP16ReserveNowResponse,
   type OCPP16StatusNotificationResponse,
   type OCPP16TriggerMessageResponse,
+  OCPP16TriggerMessageStatus,
   type OCPP16UpdateFirmwareResponse,
   type SetChargingProfileResponse,
-  type UnlockConnectorResponse,
-  type OCPP16ReserveNowResponse,
-} from './ocpp/1.6/Responses';
-export { ChargePointErrorCode } from './ocpp/ChargePointErrorCode';
+  type UnlockConnectorResponse
+} from './ocpp/1.6/Responses.js'
+export { ChargePointErrorCode } from './ocpp/ChargePointErrorCode.js'
 export {
   type ChargingProfile,
   ChargingProfileKindType,
   ChargingRateUnitType,
   type ChargingSchedulePeriod,
-  RecurrencyKindType,
-} from './ocpp/ChargingProfile';
+  RecurrencyKindType
+} from './ocpp/ChargingProfile.js'
 export type {
   ChargingStationConfiguration,
-  EvseStatusConfiguration,
-} from './ChargingStationConfiguration';
+  EvseStatusConfiguration
+} from './ChargingStationConfiguration.js'
 export {
   type ChargingStationData,
   type ChargingStationWorkerData,
   type ChargingStationWorkerMessage,
   type ChargingStationWorkerMessageData,
   ChargingStationWorkerMessageEvents,
-  type EvseStatusWorkerType,
-} from './ChargingStationWorker';
-export type { ChargingStationInfo } from './ChargingStationInfo';
+  type EvseStatusWorkerType
+} from './ChargingStationWorker.js'
+export type { ChargingStationInfo } from './ChargingStationInfo.js'
 export type {
   ChargingStationOcppConfiguration,
-  ConfigurationKey,
-} from './ChargingStationOcppConfiguration';
+  ConfigurationKey
+} from './ChargingStationOcppConfiguration.js'
 export {
   AmpereUnits,
   type ChargingStationTemplate,
@@ -161,53 +163,63 @@ export {
   type FirmwareUpgrade,
   PowerUnits,
   Voltage,
-  type WsOptions,
-} from './ChargingStationTemplate';
+  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';
+  type WorkerConfiguration
+} from './ConfigurationData.js'
 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';
+  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';
-export type { MeasurandValues } from './MeasurandValues';
-export { MessageType } from './ocpp/MessageType';
-export { type MeterValue, MeterValueMeasurand, MeterValuePhase } from './ocpp/MeterValues';
+  SampledValueTemplate
+} from './MeasurandPerPhaseSampledValueTemplates.js'
+export type { MeasurandValues } from './MeasurandValues.js'
+export { MessageType } from './ocpp/MessageType.js'
 export {
+  type MeterValue,
   MeterValueContext,
   MeterValueLocation,
+  MeterValueMeasurand,
+  MeterValuePhase,
   MeterValueUnit,
+  type SampledValue
+} from './ocpp/MeterValues.js'
+export {
   type OCPP16MeterValue,
+  OCPP16MeterValueContext,
+  OCPP16MeterValueLocation,
   OCPP16MeterValueMeasurand,
   OCPP16MeterValuePhase,
+  OCPP16MeterValueUnit,
   type OCPP16MeterValuesRequest,
   type OCPP16MeterValuesResponse,
-  type OCPP16SampledValue,
-} from './ocpp/1.6/MeterValues';
+  type OCPP16SampledValue
+} from './ocpp/1.6/MeterValues.js'
 export {
   OCPP16AuthorizationStatus,
   type OCPP16AuthorizeRequest,
@@ -216,46 +228,48 @@ export {
   type OCPP16StartTransactionResponse,
   OCPP16StopTransactionReason,
   type OCPP16StopTransactionRequest,
-  type OCPP16StopTransactionResponse,
-} from './ocpp/1.6/Transaction';
-export { OCPP16ChargePointErrorCode } from './ocpp/1.6/ChargePointErrorCode';
-export { OCPP16ChargePointStatus } from './ocpp/1.6/ChargePointStatus';
+  type OCPP16StopTransactionResponse
+} from './ocpp/1.6/Transaction.js'
+export { OCPP16ChargePointErrorCode } from './ocpp/1.6/ChargePointErrorCode.js'
+export { OCPP16ChargePointStatus } from './ocpp/1.6/ChargePointStatus.js'
 export {
   type OCPP16ChargingProfile,
   OCPP16ChargingProfilePurposeType,
+  OCPP16ChargingRateUnitType,
   type OCPP16ChargingSchedule,
-} from './ocpp/1.6/ChargingProfile';
+  type OCPP16ChargingSchedulePeriod
+} from './ocpp/1.6/ChargingProfile.js'
 export {
   OCPP16StandardParametersKey,
-  OCPP16SupportedFeatureProfiles,
-} from './ocpp/1.6/Configuration';
-export { OCPP16DiagnosticsStatus } from './ocpp/1.6/DiagnosticsStatus';
+  OCPP16SupportedFeatureProfiles
+} from './ocpp/1.6/Configuration.js'
+export { OCPP16DiagnosticsStatus } from './ocpp/1.6/DiagnosticsStatus.js'
 export {
   type OCPP20BootNotificationRequest,
   type OCPP20ClearCacheRequest,
   type OCPP20HeartbeatRequest,
   OCPP20IncomingRequestCommand,
   OCPP20RequestCommand,
-  type OCPP20StatusNotificationRequest,
-} from './ocpp/2.0/Requests';
+  type OCPP20StatusNotificationRequest
+} from './ocpp/2.0/Requests.js'
 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';
+  OCPP20StatusNotificationResponse
+} from './ocpp/2.0/Responses.js'
+export { OCPP20OptionalVariableName } from './ocpp/2.0/Variables.js'
+export { OCPPVersion } from './ocpp/OCPPVersion.js'
+export { PerformanceRecord } from './orm/entities/PerformanceRecord.js'
+export type { Statistics, TimestampedData } from './Statistics.js'
 export {
   type WSError,
   WebSocketCloseEventStatusCode,
-  WebSocketCloseEventStatusString,
-} from './WebSocket';
+  WebSocketCloseEventStatusString
+} from './WebSocket.js'
 export {
   type Reservation,
-  type ReservationFilterKey,
-  ReservationTerminationReason,
-} from './ocpp/Reservation';
+  type ReservationKey,
+  ReservationTerminationReason
+} from './ocpp/Reservation.js'
+export { ChargingStationEvents } from './ChargingStationEvents.js'