From b0ba2bfc10e4f48b6660c100c29abe0bcff4d330 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sat, 18 Mar 2023 01:39:28 +0100 Subject: [PATCH] refactor(simulator): cleanup types export MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- src/types/internal.ts | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/src/types/internal.ts b/src/types/internal.ts index 3d9fa5cb..11a47d99 100644 --- a/src/types/internal.ts +++ b/src/types/internal.ts @@ -1,8 +1,8 @@ -export * from './ocpp/1.6/ChargePointErrorCode'; -export * from './ocpp/1.6/ChargePointStatus'; +export { OCPP16ChargePointErrorCode } from './ocpp/1.6/ChargePointErrorCode'; +export { OCPP16ChargePointStatus } from './ocpp/1.6/ChargePointStatus'; export * from './ocpp/1.6/ChargingProfile'; export * from './ocpp/1.6/Configuration'; -export * from './ocpp/1.6/DiagnosticsStatus'; +export { OCPP16DiagnosticsStatus } from './ocpp/1.6/DiagnosticsStatus'; export * from './ocpp/1.6/MeterValues'; export * from './ocpp/1.6/Requests'; export * from './ocpp/1.6/Responses'; @@ -16,7 +16,7 @@ export * from './ocpp/ChargingProfile'; export * from './ocpp/Configuration'; export * from './ocpp/ConnectorStatusEnum'; export { ErrorType } from './ocpp/ErrorType'; -export * from './ocpp/MessageType'; +export { MessageType } from './ocpp/MessageType'; export * from './ocpp/MeterValues'; export { OCPPProtocol } from './ocpp/OCPPProtocol'; export { OCPPVersion } from './ocpp/OCPPVersion'; @@ -25,7 +25,12 @@ export * from './ocpp/Responses'; export * from './ocpp/Transaction'; export * from './orm/entities/PerformanceData'; export * from './orm/entities/PerformanceRecord'; -export * from './AutomaticTransactionGenerator'; +export { + type AutomaticTransactionGeneratorConfiguration, + type ChargingStationAutomaticTransactionGeneratorConfiguration, + IdTagDistribution, + type Status, +} from './AutomaticTransactionGenerator'; export * from './ChargingStationConfiguration'; export type { ChargingStationInfo, ChargingStationInfoConfiguration } from './ChargingStationInfo'; export * from './ChargingStationOcppConfiguration'; @@ -36,11 +41,15 @@ export type { ConnectorStatus } from './ConnectorStatus'; export type { EmptyObject } from './EmptyObject'; export type { HandleErrorParams } from './Error'; export { FileType } from './FileType'; -export type { JsonType, JsonObject } from './JsonType'; +export type { JsonObject, JsonType } from './JsonType'; export * from './MeasurandPerPhaseSampledValueTemplates'; export type { MeasurandValues } from './MeasurandValues'; export * from './Statistics'; export * from './Storage'; export * from './UIProtocol'; -export * from './WebSocket'; +export { + type WSError, + WebSocketCloseEventStatusCode, + WebSocketCloseEventStatusString, +} from './WebSocket'; export * from './WorkerBroadcastChannel'; -- 2.34.1