no command :)
MODIFY
src/server/rest/v1/validator/ChargingStationValidator.ts
src/server/rest/v1/validator/ChargingStationValidator.ts
-import { HttpChargingProfilesRequest, HttpChargingStationCommandRequest, HttpChargingStationCommandStartTransactionRequest, HttpChargingStationCommandStopTransactionRequest, HttpChargingStationConnectorRequest, HttpChargingStationGetFirmwareRequest, HttpChargingStationLimitPowerRequest, HttpChargingStationOcppParametersRequest, HttpChargingStationOcppRequest, HttpChargingStationParamsUpdateRequest, HttpChargingStationRequest, HttpChargingStationsInErrorRequest, HttpChargingStationsRequest, HttpDownloadQrCodeRequest, HttpTriggerSmartChargingRequest } from '../../../../types/requests/HttpChargingStationRequest';
+import { HttpChargingProfilesRequest, HttpChargingStationCommandRequest, HttpChargingStationConnectorRequest, HttpChargingStationGetFirmwareRequest, HttpChargingStationLimitPowerRequest, HttpChargingStationOcppParametersRequest, HttpChargingStationOcppRequest, HttpChargingStationParamsUpdateRequest, HttpChargingStationRequest, HttpChargingStationStartTransactionRequest, HttpChargingStationStopTransactionRequest, HttpChargingStationsInErrorRequest, HttpChargingStationsRequest, HttpDownloadQrCodeRequest, HttpTriggerSmartChargingRequest } from '../../../../types/requests/HttpChargingStationRequest';
import { ChargingProfile } from '../../../../types/ChargingProfile';
import HttpDatabaseRequest from '../../../../types/requests/HttpDatabaseRequest';
@@ -85,13 +85,13 @@ export default class ChargingStationValidator extends SchemaValidator {
return data;
}
- public validateChargingStationActionStartTransactionReq(data: HttpChargingStationCommandStartTransactionRequest): HttpChargingStationCommandStartTransactionRequest {
+ public validateChargingStationActionStartTransactionReq(data: HttpChargingStationStartTransactionRequest): HttpChargingStationStartTransactionRequest {
// Validate schema for StartTransaction
this.validate(this.chargingStationActionStartTransaction, data);
return data;
}
- public validateChargingStationActionStopTransactionReq(data: HttpChargingStationCommandStopTransactionRequest): HttpChargingStationCommandStopTransactionRequest {
+ public validateChargingStationActionStopTransactionReq(data: HttpChargingStationStopTransactionRequest): HttpChargingStationStopTransactionRequest {
// Validate schema for StopTransaction
this.validate(this.chargingStationActionStopTransaction, data);
return data;

MODIFY
src/types/requests/HttpChargingStationRequest.ts
src/types/requests/HttpChargingStationRequest.ts
@@ -111,7 +111,7 @@ export interface HttpChargingStationCommandRequest {
args?: any;
}
-export interface HttpChargingStationCommandStartTransactionRequest {
+export interface HttpChargingStationStartTransactionRequest {
chargingStationID: string,
args: {
tagID?: string,
@@ -119,7 +119,7 @@ export interface HttpChargingStationCommandStartTransactionRequest {
connectorId: string
}
}
-export interface HttpChargingStationCommandStopTransactionRequest {
+export interface HttpChargingStationStopTransactionRequest {
chargingStationID: string,
args: {
transactionID: string

no command :)