From: Jérôme Benoit Date: Sat, 3 Sep 2022 15:30:53 +0000 (+0200) Subject: Imports cleanup X-Git-Tag: v1.1.70~17 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=a65319ba9924b96204d7bfd3cbdcf8b84c113768;p=e-mobility-charging-stations-simulator.git Imports cleanup Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/ocpp/1.6/OCPP16IncomingRequestService.ts b/src/charging-station/ocpp/1.6/OCPP16IncomingRequestService.ts index e1d29e6f..e80d0d3d 100644 --- a/src/charging-station/ocpp/1.6/OCPP16IncomingRequestService.ts +++ b/src/charging-station/ocpp/1.6/OCPP16IncomingRequestService.ts @@ -69,7 +69,6 @@ import type { OCPPConfigurationKey } from '../../../types/ocpp/Configuration'; import { ErrorType } from '../../../types/ocpp/ErrorType'; import type { IncomingRequestHandler } from '../../../types/ocpp/Requests'; import type { DefaultResponse } from '../../../types/ocpp/Responses'; -import { StopTransactionReason } from '../../../types/ocpp/Transaction'; import Constants from '../../../utils/Constants'; import logger from '../../../utils/Logger'; import Utils from '../../../utils/Utils'; @@ -956,7 +955,7 @@ export default class OCPP16IncomingRequestService extends OCPPIncomingRequestSer chargingStation.getConnectorStatus(connectorId).status = OCPP16ChargePointStatus.FINISHING; const stopResponse = await chargingStation.stopTransactionOnConnector( connectorId, - StopTransactionReason.REMOTE + OCPP16StopTransactionReason.REMOTE ); if (stopResponse.idTagInfo?.status === OCPP16AuthorizationStatus.ACCEPTED) { return Constants.OCPP_RESPONSE_ACCEPTED; diff --git a/src/ui/web/src/types/UIProtocol.ts b/src/ui/web/src/types/UIProtocol.ts index 97f44b07..5921315c 100644 --- a/src/ui/web/src/types/UIProtocol.ts +++ b/src/ui/web/src/types/UIProtocol.ts @@ -1,4 +1,3 @@ -import type { ChargingStationData } from './ChargingStationType'; import type { JsonObject } from './JsonType'; export enum Protocol { @@ -34,6 +33,7 @@ export enum ProcedureName { START_AUTOMATIC_TRANSACTION_GENERATOR = 'startAutomaticTransactionGenerator', STOP_AUTOMATIC_TRANSACTION_GENERATOR = 'stopAutomaticTransactionGenerator', } + export interface RequestPayload extends JsonObject { hashIds?: string[]; connectorId?: number;