X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2Findex.ts;h=2ca7e8cce450e93a144739943518e7948009cd10;hb=b10202d7b3b6d3ee005837c1fbb81d184b887cad;hp=406cbd001bd21cd444b2211755f3c907856aa8fe;hpb=6dad8e21f4a8e66836009802c11194ddab1bb02c;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/index.ts b/src/types/index.ts index 406cbd00..2ca7e8cc 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -1,208 +1,274 @@ 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.js' +export { type AutomaticTransactionGeneratorConfiguration, - AvailabilityStatus, + type ChargingStationAutomaticTransactionGeneratorConfiguration, + IdTagDistribution, + type Status +} from './AutomaticTransactionGenerator.js' +export { type GenericResponse, GenericStatus, RegistrationStatusEnumType } from './ocpp/Common.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' +export { + AvailabilityStatus, type BootNotificationResponse, - BootReasonEnumType, + 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 { + 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' +export { BroadcastChannelProcedureName, type BroadcastChannelRequest, type BroadcastChannelRequestPayload, type BroadcastChannelResponse, type BroadcastChannelResponsePayload, - type CachedRequest, - type ChangeAvailabilityRequest, - type ChangeAvailabilityResponse, + type MessageEvent +} from './WorkerBroadcastChannel.js' +export { type ChangeConfigurationRequest, + type GetConfigurationRequest, + type GetDiagnosticsRequest, + OCPP16AvailabilityType, + type OCPP16BootNotificationRequest, + type OCPP16CancelReservationRequest, + type OCPP16ChangeAvailabilityRequest, + type OCPP16ClearCacheRequest, + type OCPP16ClearChargingProfileRequest, + type OCPP16DataTransferRequest, + OCPP16DataTransferVendorId, + type OCPP16DiagnosticsStatusNotificationRequest, + OCPP16FirmwareStatus, + type OCPP16FirmwareStatusNotificationRequest, + type OCPP16GetCompositeScheduleRequest, + type OCPP16HeartbeatRequest, + 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.js' +export { type ChangeConfigurationResponse, - ChargePointErrorCode, + 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, + type OCPP16UpdateFirmwareResponse, + type SetChargingProfileResponse, + type UnlockConnectorResponse +} from './ocpp/1.6/Responses.js' +export { ChargePointErrorCode } from './ocpp/ChargePointErrorCode.js' +export { type ChargingProfile, ChargingProfileKindType, - ChargingProfileStatus, ChargingRateUnitType, type ChargingSchedulePeriod, - type ChargingStationConfiguration, + RecurrencyKindType +} from './ocpp/ChargingProfile.js' +export type { + ChargingStationConfiguration, + EvseStatusConfiguration +} from './ChargingStationConfiguration.js' +export { type ChargingStationData, - type ChargingStationInfo, - type ChargingStationOcppConfiguration, - type ChargingStationTemplate, type ChargingStationWorkerData, type ChargingStationWorkerMessage, type ChargingStationWorkerMessageData, ChargingStationWorkerMessageEvents, - type ClearCacheResponse, - type ClearChargingProfileRequest, - type ClearChargingProfileResponse, - ClearChargingProfileStatus, + 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, - type ConfigurationKey, + ConfigurationSection, + type ElementsPerWorkerType, + type LogConfiguration, + type StationTemplateUrl, + type StorageConfiguration, + SupervisionUrlDistribution, + type UIServerConfiguration, + type WorkerConfiguration +} from './ConfigurationData.js' +export { type ConfigurationKeyType, - ConfigurationStatus, ConnectorPhaseRotation, - ConnectorStatus, - ConnectorStatusEnum, - 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 OCPPConfigurationKey, + StandardParametersKey, + 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, MeterValueContext, MeterValueLocation, MeterValueMeasurand, - type MeterValuePhase, + MeterValuePhase, MeterValueUnit, - type MeterValuesRequest, - type MeterValuesResponse, - type MikroORMDBType, - OCPP16AuthorizationStatus, - type OCPP16AuthorizeRequest, - type OCPP16AuthorizeResponse, - OCPP16AvailabilityType, - type OCPP16BootNotificationRequest, - type OCPP16BootNotificationResponse, - OCPP16ChargePointErrorCode, - OCPP16ChargePointStatus, - type OCPP16ChargingProfile, - OCPP16ChargingProfilePurposeType, - type OCPP16ClearCacheRequest, - type OCPP16DataTransferRequest, - type OCPP16DataTransferResponse, - OCPP16DataTransferStatus, - OCPP16DataTransferVendorId, - OCPP16DiagnosticsStatus, - type OCPP16DiagnosticsStatusNotificationRequest, - type OCPP16DiagnosticsStatusNotificationResponse, - OCPP16FirmwareStatus, - type OCPP16FirmwareStatusNotificationRequest, - type OCPP16FirmwareStatusNotificationResponse, - type OCPP16HeartbeatRequest, - type OCPP16HeartbeatResponse, - OCPP16IncomingRequestCommand, - OCPP16MessageTrigger, + type SampledValue +} from './ocpp/MeterValues.js' +export { type OCPP16MeterValue, + OCPP16MeterValueContext, + OCPP16MeterValueLocation, OCPP16MeterValueMeasurand, OCPP16MeterValuePhase, + OCPP16MeterValueUnit, type OCPP16MeterValuesRequest, type OCPP16MeterValuesResponse, - OCPP16RequestCommand, - type OCPP16SampledValue, - OCPP16StandardParametersKey, + type OCPP16SampledValue +} from './ocpp/1.6/MeterValues.js' +export { + OCPP16AuthorizationStatus, + type OCPP16AuthorizeRequest, + type OCPP16AuthorizeResponse, type OCPP16StartTransactionRequest, type OCPP16StartTransactionResponse, - type OCPP16StatusNotificationRequest, - type OCPP16StatusNotificationResponse, OCPP16StopTransactionReason, type OCPP16StopTransactionRequest, - type OCPP16StopTransactionResponse, - OCPP16SupportedFeatureProfiles, - type OCPP16TriggerMessageRequest, - type OCPP16TriggerMessageResponse, - type OCPP16UpdateFirmwareRequest, - type OCPP16UpdateFirmwareResponse, + 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, + 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 OCPP20BootNotificationRequest, - type OCPP20BootNotificationResponse, type OCPP20ClearCacheRequest, - type OCPP20ClearCacheResponse, 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, + 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' +export { PerformanceRecord } from './orm/entities/PerformanceRecord.js' +export type { Statistics, TimestampedData } from './Statistics.js' +export { type WSError, WebSocketCloseEventStatusCode, - WebSocketCloseEventStatusString, - type WorkerConfiguration, - type WsOptions, -} from './internal'; + WebSocketCloseEventStatusString +} from './WebSocket.js' +export { + type Reservation, + type ReservationKey, + ReservationTerminationReason +} from './ocpp/Reservation.js' +export { ChargingStationEvents } from './ChargingStationEvents.js'