remove deprecated ev-database attributes
MODIFY
src/assets/server/rest/v1/docs/e-mobility-oas.json
src/assets/server/rest/v1/docs/e-mobility-oas.json
"chargeStandardPower": 16.5,
"chargeStandardPhase": 3,
"chargeStandardPhaseAmp": 24,
- "chargeAlternativePower": 0,
- "chargeAlternativePhase": 0,
- "chargeAlternativePhaseAmp": 0,
"fastChargePlug": "Supercharger",
"fastChargePowerMax": 100,
"batteryCapacityFull": 75,
"chargeStandardPhase": 3,
"chargeStandardChargeTime": 315,
"chargeStandardChargeSpeed": 73,
- "chargeAlternativePower": 0,
- "chargeAlternativePhase": 0,
- "chargeAlternativePhaseAmp": 0,
"fastChargePlug": "Supercharger",
"fastChargePowerMax": 100,
"batteryCapacityUseable": 72.5,
"chargeStandardPower": 11,
"chargeStandardPhase": 3,
"chargeStandardPhaseAmp": 16,
- "chargeAlternativePower": 0,
- "chargeAlternativePhase": 0,
- "chargeAlternativePhaseAmp": 0,
"image": "###"
},
"user": {

MODIFY
src/assets/storage/schemas/car/car-catalog-save.json
src/assets/storage/schemas/car/car-catalog-save.json
"chargePlug2OptionalUK": {
"type": "boolean"
},
- "chargeStandardPowerDE": {
- "type": "number"
- },
- "chargeStandardPhaseDE": {
- "type": "number"
- },
- "chargeStandardPhaseAmpDE": {
- "type": "number"
- },
"chargeStandardChargeSpeedDE": {
"type": "number"
},
"chargeStandardChargeTimeDE": {
"type": "number"
},
- "chargeStandardPowerNL": {
- "type": "number"
- },
"chargeStandardChargeTimeNL": {
"type": "number"
},
"chargeStandardChargeSpeedNL": {
"type": "number"
},
- "chargeStandardPowerUK": {
- "type": "number"
- },
- "chargeStandardPhaseUK": {
- "type": "number"
- },
- "chargeStandardPhaseAmpUK": {
- "type": "number"
- },
"chargeStandarChargeTimeUK": {
"type": "number"
},
"chargeStandardChargeSpeed": {
"type": "number"
},
- "chargeAlternativePower": {
- "type": "number"
- },
- "chargeAlternativePhase": {
- "type": "number"
- },
- "chargeAlternativePhaseAmp": {
- "type": "number"
- },
"fastChargePlug": {
"type": "string"
},

MODIFY
src/authorization/AuthorizationsDefinition.ts
src/authorization/AuthorizationsDefinition.ts
@@ -115,8 +115,8 @@ export const AUTHORIZATION_DEFINITION: AuthorizationDefinition = {
attributes: [
'id', 'vehicleModel', 'vehicleMake', 'vehicleModelVersion', 'batteryCapacityFull', 'fastchargeChargeSpeed', 'performanceTopspeed',
'performanceAcceleration', 'rangeWLTP', 'rangeReal', 'efficiencyReal', 'image',
- 'chargeStandardPower', 'chargeStandardPhase', 'chargeStandardPhaseAmp', 'chargeAlternativePower', 'chargeAlternativePhaseAmp', 'chargeAlternativePhase', 'chargePlug', 'fastChargePlug',
- 'fastChargePowerMax', 'drivetrainPowerHP'
+ 'chargeStandardPower', 'chargeStandardPhase', 'chargeStandardPhaseAmp', 'chargePlug', 'fastChargePlug',
+ 'fastChargePowerMax', 'drivetrainPowerHP', 'chargeStandardPhase'
]
},
{ resource: Entity.CAR_CATALOG, action: Action.SYNCHRONIZE },
@@ -127,8 +127,7 @@ export const AUTHORIZATION_DEFINITION: AuthorizationDefinition = {
'performanceTopspeed', 'performanceAcceleration', 'rangeWLTP', 'rangeReal', 'efficiencyReal', 'drivetrainPropulsion',
'drivetrainTorque', 'batteryCapacityUseable', 'chargePlug', 'fastChargePlug', 'fastChargePowerMax', 'chargePlugLocation',
'drivetrainPowerHP', 'chargeStandardChargeSpeed', 'chargeStandardChargeTime', 'miscSeats', 'miscBody', 'miscIsofix', 'miscTurningCircle',
- 'miscSegment', 'miscIsofixSeats', 'chargeStandardPower', 'chargeStandardPhase', 'chargeAlternativePower', 'hash',
- 'chargeAlternativePhase', 'image', 'chargeAlternativePhaseAmp'
+ 'miscSegment', 'miscIsofixSeats', 'chargeStandardPower', 'chargeStandardPhase', 'hash', 'image'
]
},
]
@@ -669,8 +668,8 @@ export const AUTHORIZATION_DEFINITION: AuthorizationDefinition = {
attributes: [
'id', 'vehicleModel', 'vehicleMake', 'vehicleModelVersion', 'batteryCapacityFull', 'fastchargeChargeSpeed', 'performanceTopspeed',
'performanceAcceleration', 'rangeWLTP', 'rangeReal', 'efficiencyReal', 'image',
- 'chargeStandardPower', 'chargeStandardPhase', 'chargeStandardPhaseAmp', 'chargeAlternativePower', 'chargeAlternativePhaseAmp', 'chargeAlternativePhase', 'chargePlug', 'fastChargePlug',
- 'fastChargePowerMax', 'drivetrainPowerHP'
+ 'chargeStandardPower', 'chargeStandardPhase', 'chargeStandardPhaseAmp', 'chargePlug', 'fastChargePlug',
+ 'fastChargePowerMax', 'drivetrainPowerHP', 'chargeStandardPhase'
]
},
{
@@ -680,8 +679,7 @@ export const AUTHORIZATION_DEFINITION: AuthorizationDefinition = {
'performanceTopspeed', 'performanceAcceleration', 'rangeWLTP', 'rangeReal', 'efficiencyReal', 'drivetrainPropulsion',
'drivetrainTorque', 'batteryCapacityUseable', 'chargePlug', 'fastChargePlug', 'fastChargePowerMax', 'chargePlugLocation',
'drivetrainPowerHP', 'chargeStandardChargeSpeed', 'chargeStandardChargeTime', 'miscSeats', 'miscBody', 'miscIsofix', 'miscTurningCircle',
- 'miscSegment', 'miscIsofixSeats', 'chargeStandardPower', 'chargeStandardPhase', 'chargeAlternativePower', 'hash',
- 'chargeAlternativePhase', 'image', 'chargeAlternativePhaseAmp'
+ 'miscSegment', 'miscIsofixSeats', 'chargeStandardPower', 'chargeStandardPhase', 'hash', 'image'
]
},
{ resource: Entity.CAR, action: [Action.CREATE, Action.UPDATE, Action.DELETE] },
@@ -691,7 +689,6 @@ export const AUTHORIZATION_DEFINITION: AuthorizationDefinition = {
'id', 'type', 'vin', 'licensePlate', 'converter', 'default', 'createdOn', 'lastChangedOn',
'carCatalogID', 'carCatalog.vehicleMake', 'carCatalog.vehicleModel', 'carCatalog.vehicleModelVersion', 'carCatalog.image',
'carCatalog.chargeStandardPower', 'carCatalog.chargeStandardPhaseAmp', 'carCatalog.chargeStandardPhase',
- 'carCatalog.chargeAlternativePower', 'carCatalog.chargeAlternativePhaseAmp', 'carCatalog.chargeAlternativePhase',
'user.id', 'user.name', 'user.firstName', 'userID', 'carConnectorData.carConnectorID', 'carConnectorData.carConnectorMeterID'
]
},
@@ -763,7 +760,7 @@ export const AUTHORIZATION_DEFINITION: AuthorizationDefinition = {
attributes: [
'id', 'vehicleModel', 'vehicleMake', 'vehicleModelVersion', 'batteryCapacityFull', 'fastchargeChargeSpeed', 'performanceTopspeed',
'performanceAcceleration', 'rangeWLTP', 'rangeReal', 'efficiencyReal', 'image',
- 'chargeStandardPower', 'chargeStandardPhase', 'chargeStandardPhaseAmp', 'chargeAlternativePower', 'chargeAlternativePhaseAmp', 'chargeAlternativePhase', 'chargePlug', 'fastChargePlug',
+ 'chargeStandardPower', 'chargeStandardPhase', 'chargeStandardPhaseAmp', 'chargePlug', 'fastChargePlug',
'fastChargePowerMax', 'drivetrainPowerHP'
]
},
@@ -774,8 +771,7 @@ export const AUTHORIZATION_DEFINITION: AuthorizationDefinition = {
'performanceTopspeed', 'performanceAcceleration', 'rangeWLTP', 'rangeReal', 'efficiencyReal', 'drivetrainPropulsion',
'drivetrainTorque', 'batteryCapacityUseable', 'chargePlug', 'fastChargePlug', 'fastChargePowerMax', 'chargePlugLocation',
'drivetrainPowerHP', 'chargeStandardChargeSpeed', 'chargeStandardChargeTime', 'miscSeats', 'miscBody', 'miscIsofix', 'miscTurningCircle',
- 'miscSegment', 'miscIsofixSeats', 'chargeStandardPower', 'chargeStandardPhase', 'chargeAlternativePower', 'hash',
- 'chargeAlternativePhase', 'image', 'chargeAlternativePhaseAmp'
+ 'miscSegment', 'miscIsofixSeats', 'chargeStandardPower', 'chargeStandardPhase', 'hash', 'image', 'chargeStandardPhase'
]
},
{
@@ -816,8 +812,7 @@ export const AUTHORIZATION_DEFINITION: AuthorizationDefinition = {
'id', 'type', 'vin', 'licensePlate', 'converter', 'default', 'createdOn', 'lastChangedOn',
'carCatalogID', 'carCatalog.vehicleMake', 'carCatalog.vehicleModel', 'carCatalog.vehicleModelVersion', 'carCatalog.image',
'carCatalog.chargeStandardPower', 'carCatalog.chargeStandardPhaseAmp', 'carCatalog.chargeStandardPhase',
- 'carCatalog.chargeAlternativePower', 'carCatalog.chargeAlternativePhaseAmp', 'carCatalog.chargeAlternativePhase',
- 'user.id', 'user.name', 'user.firstName', 'userID', 'carConnectorData.carConnectorID', 'carConnectorData.carConnectorMeterID'
+ 'user.id', 'user.name', 'user.firstName', 'userID', 'carConnectorData.carConnectorID', 'carConnectorData.carConnectorMeterID', 'chargeStandardPhase'
],
},
{
@@ -1266,7 +1261,7 @@ export const AUTHORIZATION_DEFINITION: AuthorizationDefinition = {
attributes: [
'id', 'vehicleModel', 'vehicleMake', 'vehicleModelVersion', 'batteryCapacityFull', 'fastchargeChargeSpeed', 'performanceTopspeed',
'performanceAcceleration', 'rangeWLTP', 'rangeReal', 'efficiencyReal', 'image',
- 'chargeStandardPower', 'chargeStandardPhase', 'chargeStandardPhaseAmp', 'chargeAlternativePower', 'chargeAlternativePhaseAmp', 'chargeAlternativePhase', 'chargePlug', 'fastChargePlug',
+ 'chargeStandardPower', 'chargeStandardPhase', 'chargeStandardPhaseAmp', 'chargePlug', 'fastChargePlug', 'chargeStandardPhase',
'fastChargePowerMax', 'drivetrainPowerHP'
]
},
@@ -1277,8 +1272,7 @@ export const AUTHORIZATION_DEFINITION: AuthorizationDefinition = {
'performanceTopspeed', 'performanceAcceleration', 'rangeWLTP', 'rangeReal', 'efficiencyReal', 'drivetrainPropulsion',
'drivetrainTorque', 'batteryCapacityUseable', 'chargePlug', 'fastChargePlug', 'fastChargePowerMax', 'chargePlugLocation',
'drivetrainPowerHP', 'chargeStandardChargeSpeed', 'chargeStandardChargeTime', 'miscSeats', 'miscBody', 'miscIsofix', 'miscTurningCircle',
- 'miscSegment', 'miscIsofixSeats', 'chargeStandardPower', 'chargeStandardPhase', 'chargeAlternativePower', 'hash',
- 'chargeAlternativePhase', 'image', 'chargeAlternativePhaseAmp'
+ 'miscSegment', 'miscIsofixSeats', 'chargeStandardPower', 'chargeStandardPhase', 'hash', 'image', 'chargeStandardPhase'
]
}, {
resource: Entity.CAR, action: Action.READ,
@@ -1286,7 +1280,6 @@ export const AUTHORIZATION_DEFINITION: AuthorizationDefinition = {
'id', 'type', 'vin', 'licensePlate', 'converter', 'default',
'carCatalogID', 'carCatalog.vehicleMake', 'carCatalog.vehicleModel', 'carCatalog.vehicleModelVersion', 'carCatalog.image',
'carCatalog.chargeStandardPower', 'carCatalog.chargeStandardPhaseAmp', 'carCatalog.chargeStandardPhase',
- 'carCatalog.chargeAlternativePower', 'carCatalog.chargeAlternativePhaseAmp', 'carCatalog.chargeAlternativePhase'
]
},
{
@@ -1673,8 +1666,7 @@ export const AUTHORIZATION_DEFINITION: AuthorizationDefinition = {
'id', 'type', 'vin', 'licensePlate', 'converter', 'default', 'createdOn', 'lastChangedOn', 'user.id', 'user.name', 'user.firstName',
'carCatalogID', 'carCatalog.vehicleMake', 'carCatalog.vehicleModel', 'carCatalog.vehicleModelVersion', 'carCatalog.image',
'carCatalog.chargeStandardPower', 'carCatalog.chargeStandardPhaseAmp', 'carCatalog.chargeStandardPhase',
- 'carCatalog.chargeAlternativePower', 'carCatalog.chargeAlternativePhaseAmp', 'carCatalog.chargeAlternativePhase',
- 'carConnectorData.carConnectorID', 'carConnectorData.carConnectorMeterID'
+ 'carConnectorData.carConnectorID', 'carConnectorData.carConnectorMeterID', 'chargeStandardPhase'
],
},
{

MODIFY
src/integration/car/ev-database/EVDatabaseCarIntegration.ts
src/integration/car/ev-database/EVDatabaseCarIntegration.ts
@@ -54,27 +54,17 @@ export default class EVDatabaseCarIntegration extends CarIntegration {
chargePlug2OptionalDE: data.Charge_Plug_2_Optional_DE,
chargePlug2OptionalNL: data.Charge_Plug_2_Optional_NL,
chargePlug2OptionalUK: data.Charge_Plug_2_Optional_UK,
- chargeStandardPowerDE: data.Charge_Standard_Power_DE,
- chargeStandardPhaseDE: data.Charge_Standard_Phase_DE,
- chargeStandardPhaseAmpDE: data.Charge_Standard_PhaseAmp_DE,
chargeStandardChargeSpeedDE: data.Charge_Standard_ChargeSpeed_DE,
chargeStandardChargeTimeDE: data.Charge_Standard_ChargeTime_DE,
- chargeStandardPowerNL: data.Charge_Standard_Power_NL,
- chargeStandardPower: data.Charge_Standard_Power,
- chargeStandardPhase: data.Charge_Standard_Phase,
- chargeStandardPhaseAmp: data.Charge_Standard_PhaseAmp,
+ chargeStandardPower: data.Charge_Standard_Power_DE ?? data.Charge_Standard_Power_NL ?? data.Charge_Standard_Power_UK,
+ chargeStandardPhase: data.Charge_Standard_Phase_DE ?? data.Charge_Standard_Phase_NL ?? data.Charge_Standard_Phase_UK,
+ chargeStandardPhaseAmp: data.Charge_Standard_PhaseAmp_DE ?? data.Charge_Standard_PhaseAmp_NL ?? data.Charge_Standard_PhaseAmp_UK,
chargeStandardChargeTime: data.Charge_Standard_ChargeTime,
chargeStandardChargeTimeNL: data.Charge_Standard_ChargeTime_NL,
chargeStandardChargeSpeedNL: data.Charge_Standard_ChargeSpeed_NL,
- chargeStandardPowerUK: data.Charge_Standard_Power_UK,
- chargeStandardPhaseUK: data.Charge_Standard_Phase_UK,
- chargeStandardPhaseAmpUK: data.Charge_Standard_PhaseAmp_UK,
chargeStandarChargeTimeUK: data.Charge_Standard_ChargeTime_UK,
chargeStandardChargeSpeed: data.Charge_Standard_ChargeSpeed,
chargeStandardChargeSpeedUK: data.Charge_Standard_ChargeSpeed_UK,
- chargeAlternativePower: data.Charge_Alternative_Power,
- chargeAlternativePhase: data.Charge_Alternative_Phase,
- chargeAlternativePhaseAmp: data.Charge_Alternative_PhaseAmp,
fastChargePlug: data.Fastcharge_Plug,
fastChargePowerMax: data.Fastcharge_Power_Max,
batteryCapacityUseable: data.Battery_Capacity_Useable,

MODIFY
src/types/Car.ts
src/types/Car.ts
@@ -23,17 +23,10 @@ export interface CarCatalog extends CreatedUpdatedProps, AuthorizationActions {
chargePlug2OptionalDE?: boolean;
chargePlug2OptionalNL?: boolean;
chargePlug2OptionalUK?: boolean;
- chargeStandardPowerDE?: number;
- chargeStandardPhaseDE?: number;
- chargeStandardPhaseAmpDE?: number;
chargeStandardChargeSpeedDE?: number;
chargeStandardChargeTimeDE?: number;
- chargeStandardPowerNL?: number;
chargeStandardChargeTimeNL?: number;
chargeStandardChargeSpeedNL?: number;
- chargeStandardPowerUK?: number;
- chargeStandardPhaseUK?: number;
- chargeStandardPhaseAmpUK?: number;
chargeStandarChargeTimeUK?: number;
chargeStandardChargeSpeedUK?: number;
chargePlug?: string;
@@ -43,9 +36,6 @@ export interface CarCatalog extends CreatedUpdatedProps, AuthorizationActions {
chargeStandardPhaseAmp: number;
chargeStandardChargeTime: number;
chargeStandardChargeSpeed: number;
- chargeAlternativePower: number;
- chargeAlternativePhase: number;
- chargeAlternativePhaseAmp: number;
fastChargePlug?: string;
fastChargePowerMax?: number;
batteryCapacityUseable: number;

remove deprecated ev-database attributes