Add charge alternative/option
MODIFY
src/server/rest/service/CarService.ts
src/server/rest/service/CarService.ts
@@ -49,8 +49,8 @@ export default class CarService {
},
{ limit: filteredRequest.Limit, skip: filteredRequest.Skip, sort: filteredRequest.Sort, onlyRecordCount: filteredRequest.OnlyRecordCount },
['id', 'vehicleModel', 'vehicleMake', 'vehicleModelVersion', 'batteryCapacityFull', 'fastchargeChargeSpeed', 'performanceTopspeed',
- 'performanceAcceleration', 'rangeWLTP', 'rangeReal', 'efficiencyReal', 'image', 'chargeStandardChargeSpeed',
- 'chargeStandardPower', 'chargeStandardPhase', 'chargePlug', 'fastChargePlug', 'chargeStandardTables', 'fastChargePowerMax', 'drivetrainPowerHP']
+ 'performanceAcceleration', 'rangeWLTP', 'rangeReal', 'efficiencyReal', 'image',
+ 'chargeStandardPower','chargeStandardPhase','chargeStandardPhaseAmp','chargeAlternativePower','chargeOptionPower','chargeOptionPhaseAmp','chargeAlternativePhaseAmp', 'chargePlug', 'fastChargePlug','fastChargePowerMax', 'drivetrainPowerHP']
);
// Filter
CarSecurity.filterCarCatalogsResponse(carCatalogs, req.user);
@@ -86,7 +86,7 @@ export default class CarService {
'performanceTopspeed', 'performanceAcceleration', 'rangeWLTP', 'rangeReal', 'efficiencyReal', 'drivetrainPropulsion',
'drivetrainTorque', 'batteryCapacityUseable', 'chargePlug', 'fastChargePlug', 'fastChargePowerMax', 'chargePlugLocation', 'drivetrainPowerHP',
'chargeStandardChargeSpeed', 'chargeStandardChargeTime', 'miscSeats', 'miscBody', 'miscIsofix', 'miscTurningCircle',
- 'miscSegment', 'miscIsofixSeats', 'chargeStandardTables', 'chargeStandardPower', 'chargeStandardPhase', 'image']);
+ 'miscSegment', 'miscIsofixSeats', 'chargeStandardPower', 'chargeStandardPhase','chargeAlternativePower', 'chargeAlternativePhase','chargeOptionPower', 'chargeOptionPhase', 'image']);
} else {
// Get the car
carCatalog = await CarStorage.getCarCatalog(filteredRequest.ID);

MODIFY
src/server/rest/service/security/CarSecurity.ts
src/server/rest/service/security/CarSecurity.ts
@@ -86,8 +86,11 @@ export default class CarSecurity {
miscTurningCircle: carCatalog.miscTurningCircle,
miscSegment: carCatalog.miscSegment,
miscIsofixSeats: carCatalog.miscIsofixSeats,
- chargeStandardTables: carCatalog.chargeStandardTables,
image: carCatalog.image,
+ chargeAlternativePower: carCatalog.chargeAlternativePower,
+ chargeAlternativePhase: carCatalog.chargeAlternativePhase,
+ chargeOptionPower: carCatalog.chargeOptionPower,
+ chargeOptionPhase: carCatalog.chargeOptionPhase,
} as CarCatalog;
}
// Created By / Last Changed By
@@ -160,7 +163,11 @@ export default class CarSecurity {
efficiencyReal: carCatalog.efficiencyReal,
image: carCatalog.image,
chargeStandardChargeSpeed: carCatalog.chargeStandardChargeSpeed,
- chargeStandardTables: carCatalog.chargeStandardTables
+ chargeOptionPower: carCatalog.chargeOptionPower,
+ chargeAlternativePower: carCatalog.chargeAlternativePower,
+ chargeStandardPhaseAmp: carCatalog.chargeStandardPhaseAmp,
+ chargeOptionPhaseAmp: carCatalog.chargeOptionPhaseAmp,
+ chargeAlternativePhaseAmp: carCatalog.chargeAlternativePhaseAmp,
});
}
}

Add charge alternative/option