Rename types definition files for the sake of namespace consitency.
authorJérôme Benoit <jerome.benoit@sap.com>
Tue, 2 Feb 2021 07:48:01 +0000 (08:48 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Tue, 2 Feb 2021 07:48:01 +0000 (08:48 +0100)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
src/charging-station/ChargingStation.ts
src/charging-station/ocpp/1.6/OCCP16IncomingRequestService.ts
src/charging-station/ocpp/1.6/OCPP16RequestService.ts
src/charging-station/ocpp/1.6/OCPP16ResponseService.ts
src/charging-station/ocpp/OCPPRequestService.ts
src/types/ocpp/1.6/Responses.ts [moved from src/types/ocpp/1.6/RequestResponses.ts with 100% similarity]
src/types/ocpp/Responses.ts [moved from src/types/ocpp/RequestResponses.ts with 88% similarity]
src/utils/Constants.ts

index a7081aa97eb68c74bc5522a557276972062fdd15..efedd1016fa57127ccf5d2ba71147fc975e7082a 100644 (file)
@@ -1,4 +1,4 @@
-import { BootNotificationResponse, RegistrationStatus } from '../types/ocpp/RequestResponses';
+import { BootNotificationResponse, RegistrationStatus } from '../types/ocpp/Responses';
 import ChargingStationConfiguration, { ConfigurationKey } from '../types/ChargingStationConfiguration';
 import ChargingStationTemplate, { PowerOutType, VoltageOut } from '../types/ChargingStationTemplate';
 import Connectors, { Connector } from '../types/Connectors';
index 38bd3c0621b1c16b243e597a7d87a7f82ea2ecee..0f7e4dab30bcbb0bb610fde7efc26973a8e565c8 100644 (file)
@@ -1,5 +1,5 @@
 import { ChangeAvailabilityRequest, ChangeConfigurationRequest, ClearChargingProfileRequest, GetConfigurationRequest, OCPP16AvailabilityType, OCPP16IncomingRequestCommand, RemoteStartTransactionRequest, RemoteStopTransactionRequest, ResetRequest, SetChargingProfileRequest, UnlockConnectorRequest } from '../../../types/ocpp/1.6/Requests';
-import { ChangeAvailabilityResponse, ChangeConfigurationResponse, ClearChargingProfileResponse, DefaultResponse, GetConfigurationResponse, SetChargingProfileResponse, UnlockConnectorResponse } from '../../../types/ocpp/1.6/RequestResponses';
+import { ChangeAvailabilityResponse, ChangeConfigurationResponse, ClearChargingProfileResponse, DefaultResponse, GetConfigurationResponse, SetChargingProfileResponse, UnlockConnectorResponse } from '../../../types/ocpp/1.6/Responses';
 import { ChargingProfilePurposeType, OCPP16ChargingProfile } from '../../../types/ocpp/1.6/ChargingProfile';
 import { OCPP16AuthorizationStatus, OCPP16StopTransactionReason } from '../../../types/ocpp/1.6/Transaction';
 
index a437e0b3dfa2df49891a1bb2fc08665822b6a62a..7470b3426c2cddbc44e85092353a74007259bad1 100644 (file)
@@ -6,7 +6,7 @@ import Constants from '../../../utils/Constants';
 import ElectricUtils from '../../../utils/ElectricUtils';
 import MeasurandValues from '../../../types/MeasurandValues';
 import { MessageType } from '../../../types/ocpp/MessageType';
-import { OCPP16BootNotificationResponse } from '../../../types/ocpp/1.6/RequestResponses';
+import { OCPP16BootNotificationResponse } from '../../../types/ocpp/1.6/Responses';
 import { OCPP16ChargePointErrorCode } from '../../../types/ocpp/1.6/ChargePointErrorCode';
 import { OCPP16ChargePointStatus } from '../../../types/ocpp/1.6/ChargePointStatus';
 import { OCPP16StandardParametersKey } from '../../../types/ocpp/1.6/Configuration';
index 31802460a8fb4e2d626a5651fb9b086a8f73e863..0a848692a983e23b80c679c911624a040e57c701 100644 (file)
@@ -1,6 +1,6 @@
 import { AuthorizeRequest, OCPP16AuthorizationStatus, OCPP16AuthorizeResponse, OCPP16StartTransactionResponse, OCPP16StopTransactionResponse, StartTransactionRequest, StopTransactionRequest } from '../../../types/ocpp/1.6/Transaction';
 import { HeartbeatRequest, OCPP16BootNotificationRequest, OCPP16RequestCommand, StatusNotificationRequest } from '../../../types/ocpp/1.6/Requests';
-import { HeartbeatResponse, OCPP16BootNotificationResponse, OCPP16RegistrationStatus, StatusNotificationResponse } from '../../../types/ocpp/1.6/RequestResponses';
+import { HeartbeatResponse, OCPP16BootNotificationResponse, OCPP16RegistrationStatus, StatusNotificationResponse } from '../../../types/ocpp/1.6/Responses';
 import { MeterValuesRequest, MeterValuesResponse } from '../../../types/ocpp/1.6/MeterValues';
 
 import { OCPP16ChargePointStatus } from '../../../types/ocpp/1.6/ChargePointStatus';
index e09e15e8e7c324eb64a80a42818a5bb7f6299526..8924882286e404de0d14bab0070ffb6424f0e0e5 100644 (file)
@@ -1,7 +1,7 @@
 import { AuthorizeResponse, StartTransactionResponse, StopTransactionReason, StopTransactionResponse } from '../../types/ocpp/Transaction';
 import { IncomingRequestCommand, Request, RequestCommand } from '../../types/ocpp/Requests';
 
-import { BootNotificationResponse } from '../../types/ocpp/RequestResponses';
+import { BootNotificationResponse } from '../../types/ocpp/Responses';
 import { ChargePointErrorCode } from '../../types/ocpp/ChargePointErrorCode';
 import { ChargePointStatus } from '../../types/ocpp/ChargePointStatus';
 import ChargingStation from '../ChargingStation';
similarity index 88%
rename from src/types/ocpp/RequestResponses.ts
rename to src/types/ocpp/Responses.ts
index 08b1080d6162f9761041ab400671d68c5235cd24..d134f545de2e9118152f348fe634ae14c79af428 100644 (file)
@@ -1,4 +1,4 @@
-import { OCPP16BootNotificationResponse, OCPP16RegistrationStatus } from './1.6/RequestResponses';
+import { OCPP16BootNotificationResponse, OCPP16RegistrationStatus } from './1.6/Responses';
 
 export type BootNotificationResponse = OCPP16BootNotificationResponse;
 
index 31a673281c8b9a43a2d37b405b611ce0a2c04588..1959ed935340ebf7424285fc682a5213ffa03d05 100644 (file)
@@ -1,4 +1,4 @@
-import { AvailabilityStatus, ChargingProfileStatus, ClearChargingProfileStatus, ConfigurationStatus, DefaultStatus, UnlockStatus } from '../types/ocpp/1.6/RequestResponses';
+import { AvailabilityStatus, ChargingProfileStatus, ClearChargingProfileStatus, ConfigurationStatus, DefaultStatus, UnlockStatus } from '../types/ocpp/1.6/Responses';
 
 export default class Constants {
   static readonly ENTITY_CHARGING_STATION = 'ChargingStation';