X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2Findex.ts;h=66a9682277abb2a637afa4c07f92a282232a12c3;hb=491dad29ded66644b4bca576cbd1edc0f84508df;hp=f0a947a4e30ae4ab4d579611e0985e0cf003df58;hpb=857d8dd995425597a2bfb15d49e7ee6d69b055bd;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/index.ts b/src/types/index.ts index f0a947a4..66a96822 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -1,45 +1,264 @@ -export * from './ocpp/ChargePointErrorCode'; -export * from './ocpp/ChargingProfile'; -export * from './ocpp/Configuration'; -export * from './ocpp/ConnectorStatusEnum'; -export * from './ocpp/ErrorType'; -export * from './ocpp/MessageType'; -export * from './ocpp/MeterValues'; -export * from './ocpp/OCPPProtocol'; -export * from './ocpp/OCPPVersion'; -export * from './ocpp/Requests'; -export * from './ocpp/Responses'; -export * from './ocpp/Transaction'; -export * from './ocpp/1.6/ChargePointErrorCode'; -export * from './ocpp/1.6/ChargePointStatus'; -export * from './ocpp/1.6/ChargingProfile'; -export * from './ocpp/1.6/Configuration'; -export * from './ocpp/1.6/DiagnosticsStatus'; -export * from './ocpp/1.6/MeterValues'; -export * from './ocpp/1.6/Requests'; -export * from './ocpp/1.6/Responses'; -export * from './ocpp/1.6/Transaction'; -export * from './ocpp/2.0/Requests'; -export * from './ocpp/2.0/Responses'; -export * from './ocpp/2.0/Variables'; -export * from './orm/entities/PerformanceData'; -export * from './orm/entities/PerformanceRecord'; -export * from './AutomaticTransactionGenerator'; -export * from './ChargingStationConfiguration'; -export * from './ChargingStationInfo'; -export * from './ChargingStationOcppConfiguration'; -export * from './ChargingStationTemplate'; -export * from './ChargingStationWorker'; -export * from './ConfigurationData'; -export * from './ConnectorStatus'; -export * from './EmptyObject'; -export * from './Error'; -export * from './FileType'; -export * from './JsonType'; -export * from './MeasurandPerPhaseSampledValueTemplates'; -export * from './MeasurandValues'; -export * from './Statistics'; -export * from './Storage'; -export * from './UIProtocol'; -export * from './WebSocket'; -export * from './WorkerBroadcastChannel'; +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'; +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'; +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'; +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 OCPP16CancelReservationRequest, + type OCPP16ChangeAvailabilityRequest, + type OCPP16ClearCacheRequest, + 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'; +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, + type OCPP16SampledValue, +} from './ocpp/1.6/MeterValues'; +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'; +export { + type OCPP16ChargingProfile, + OCPP16ChargingProfilePurposeType, + OCPP16ChargingRateUnitType, + type OCPP16ChargingSchedule, + type OCPP16ChargingSchedulePeriod, +} from './ocpp/1.6/ChargingProfile'; +export { + OCPP16StandardParametersKey, + OCPP16SupportedFeatureProfiles, +} from './ocpp/1.6/Configuration'; +export { OCPP16DiagnosticsStatus } from './ocpp/1.6/DiagnosticsStatus'; +export { + type OCPP20BootNotificationRequest, + type OCPP20ClearCacheRequest, + type OCPP20HeartbeatRequest, + OCPP20IncomingRequestCommand, + OCPP20RequestCommand, + type OCPP20StatusNotificationRequest, +} 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, +} from './WebSocket'; +export { + type Reservation, + type ReservationKey, + ReservationTerminationReason, +} from './ocpp/Reservation';