X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2Findex.ts;h=e24d7f5437cfbff9afe4e204bb185d2749100af1;hb=1091427efe95a8f1733282589dc1794a5be7e785;hp=cc80f527c8ed699f5b9d06442dd8074eb1738325;hpb=41f3983a4f934199769f9ef1c46bfae2adc22b56;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/index.ts b/src/types/index.ts index cc80f527..e24d7f54 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -1,84 +1,87 @@ -export { - ApplicationProtocol, - AuthenticationType, - ProcedureName, - Protocol, - type ProtocolRequest, - type ProtocolRequestHandler, - type ProtocolResponse, - ProtocolVersion, - type RequestPayload, - type ResponsePayload, - ResponseStatus, -} from './UIProtocol'; 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 { + 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'; + 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, - type Response, - type ResponseHandler, - type StatusNotificationResponse, - TriggerMessageStatus, - UnlockStatus, -} from './ocpp/Responses'; + 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'; -export { BootReasonEnumType, OCPP20ConnectorStatusEnumType } from './ocpp/2.0/Common'; + 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 { MapStringifyFormat } from './MapStringifyFormat.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'; + 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, @@ -107,8 +110,8 @@ export { type RemoteStopTransactionRequest, type ResetRequest, type SetChargingProfileRequest, - type UnlockConnectorRequest, -} from './ocpp/1.6/Requests'; + type UnlockConnectorRequest +} from './ocpp/1.6/Requests.js' export { type ChangeConfigurationResponse, type GetConfigurationResponse, @@ -125,79 +128,57 @@ export { type OCPP16ReserveNowResponse, type OCPP16StatusNotificationResponse, type OCPP16TriggerMessageResponse, + OCPP16TriggerMessageStatus, type OCPP16UpdateFirmwareResponse, type SetChargingProfileResponse, - type UnlockConnectorResponse, -} from './ocpp/1.6/Responses'; -export { ChargePointErrorCode } from './ocpp/ChargePointErrorCode'; + 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, 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 ElementsPerWorkerType, - type LogConfiguration, - type StationTemplateUrl, - type StorageConfiguration, - SupervisionUrlDistribution, - type UIServerConfiguration, - type WorkerConfiguration, -} from './ConfigurationData'; + RecurrencyKindType +} from './ocpp/ChargingProfile.js' +export { type GenericResponse, GenericStatus, RegistrationStatusEnumType } from './ocpp/Common.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'; -export type { - MeasurandPerPhaseSampledValueTemplates, - SampledValueTemplate, -} from './MeasurandPerPhaseSampledValueTemplates'; -export type { MeasurandValues } from './MeasurandValues'; -export { MessageType } from './ocpp/MessageType'; + VendorParametersKey +} from './ocpp/Configuration.js' +export { ConnectorStatusEnum, type ConnectorStatusTransition } from './ocpp/ConnectorStatusEnum.js' +export { ErrorType } from './ocpp/ErrorType.js' +export { MessageType } from './ocpp/MessageType.js' export { type MeterValue, MeterValueContext, @@ -205,70 +186,99 @@ export { MeterValueMeasurand, MeterValuePhase, MeterValueUnit, - type SampledValue, -} from './ocpp/MeterValues'; -export { - type OCPP16MeterValue, - OCPP16MeterValueContext, - OCPP16MeterValueLocation, - OCPP16MeterValueMeasurand, - OCPP16MeterValuePhase, - OCPP16MeterValueUnit, - type OCPP16MeterValuesRequest, - type OCPP16MeterValuesResponse, - type OCPP16SampledValue, -} from './ocpp/1.6/MeterValues'; + type SampledValue +} from './ocpp/MeterValues.js' +export { OCPPVersion } from './ocpp/OCPPVersion.js' export { - OCPP16AuthorizationStatus, - type OCPP16AuthorizeRequest, - type OCPP16AuthorizeResponse, - type OCPP16StartTransactionRequest, - 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'; + 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'; + type Reservation, + type ReservationKey, + ReservationTerminationReason +} from './ocpp/Reservation.js' export { - OCPP16StandardParametersKey, - OCPP16SupportedFeatureProfiles, -} from './ocpp/1.6/Configuration'; -export { OCPP16DiagnosticsStatus } from './ocpp/1.6/DiagnosticsStatus'; + 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'; + 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 { SimulatorState } from './SimulatorState.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'; + Statistics, + StatisticsData, + TemplateStatistics, + 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 +} from './UIProtocol.js' export { - type WSError, WebSocketCloseEventStatusCode, WebSocketCloseEventStatusString, -} from './WebSocket'; + type WSError +} from './WebSocket.js' export { - type Reservation, - type ReservationKey, - ReservationTerminationReason, -} from './ocpp/Reservation'; -export { ChargingStationEvents } from './ChargingStationEvents'; + BroadcastChannelProcedureName, + type BroadcastChannelRequest, + type BroadcastChannelRequestPayload, + type BroadcastChannelResponse, + type BroadcastChannelResponsePayload, + type MessageEvent +} from './WorkerBroadcastChannel.js'