Skip to content

Commit

Permalink
Merge pull request #4153 from sap-labs-france/master-labs
Browse files Browse the repository at this point in the history
Version 2.7.6
  • Loading branch information
Claude ROSSI authored Mar 21, 2023
2 parents 33ff54b + 3afb296 commit 14309d9
Show file tree
Hide file tree
Showing 25 changed files with 797 additions and 179 deletions.
115 changes: 51 additions & 64 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ev-server",
"version": "2.7.5",
"version": "2.7.6",
"engines": {
"node": "16.x.x",
"npm": "8.x.x"
Expand Down Expand Up @@ -153,8 +153,8 @@
"role-acl": "^4.5.4",
"simple-odata-server": "^1.1.2",
"source-map-support": "^0.5.21",
"stripe": "^9.16.0",
"strong-soap": "^3.4.0",
"stripe": "^11.14.0",
"strong-soap": "^3.4.3",
"swagger-ui-express": "^4.5.0",
"tslib": "^2.4.0",
"tz-lookup": "^6.1.25",
Expand Down
2 changes: 1 addition & 1 deletion src/assets/configs-ci
19 changes: 19 additions & 0 deletions src/assets/schemas/common/common.json
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,25 @@
}
}
},
"smartChargingSessionParameters": {
"type": "object",
"properties": {
"departureTime": {
"type": "string",
"sanitize": "mongo",
"pattern": "^(0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$",
"nullable": true
},
"carStateOfCharge": {
"type": "integer",
"sanitize": "mongo"
},
"targetStateOfCharge": {
"type": "integer",
"sanitize": "mongo"
}
}
},
"acceptEula": {
"type": "boolean",
"sanitize": "mongo"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,15 @@
"sapSmartCharging": {
"type": "object",
"properties": {
"limitBufferAC" : {
"limitBufferAC": {
"type": "number",
"sanitize": "mongo"
"sanitize": "mongo",
"minimum": 1
},
"limitBufferDC": {
"type": "number",
"sanitize": "mongo"
"sanitize": "mongo",
"minimum": 1
},
"optimizerUrl": {
"type": "string",
Expand All @@ -32,13 +34,19 @@
"user": {
"type": "string",
"sanitize": "mongo"
},
"prioritizationParametersActive": {
"type": "boolean",
"sanitize": "mongo"
}
}
},
"type": {
"type": "string",
"sanitize": "mongo",
"enum": ["sapSmartCharging"]
"enum": [
"sapSmartCharging"
]
}
},
"links": {
Expand All @@ -55,7 +63,9 @@
"identifier": {
"type": "string",
"sanitize": "mongo",
"enum": ["smartCharging"]
"enum": [
"smartCharging"
]
},
"sensitiveData": {
"$ref": "setting#/definitions/sensitiveData"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
"$ref": "site-area#/definitions/smartCharging",
"default": false
},
"smartChargingSessionParameters": {
"$ref": "common#/definitions/smartChargingSessionParameters"
},
"accessControl": {
"$ref": "site-area#/definitions/accessControl"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
"$ref": "site-area#/definitions/smartCharging",
"default": false
},
"smartChargingSessionParameters": {
"$ref": "common#/definitions/smartChargingSessionParameters"
},
"accessControl": {
"$ref": "site-area#/definitions/accessControl"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@
},
"ProjectFields": {
"$ref": "common#/definitions/projectFields"
},
"CarID": {
"$ref": "car#/definitions/id"
},
"TagID": {
"$ref": "tag#/definitions/id"
}
},
"required": [
Expand Down
6 changes: 5 additions & 1 deletion src/authorization/AuthorizationsDefinition.ts
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,8 @@ export const AUTHORIZATION_DEFINITION: AuthorizationDefinition = {
resource: Entity.SITE_AREA,
action: [Action.READ, Action.READ_CHARGING_STATIONS_FROM_SITE_AREA],
attributes: [
'id', 'name', 'issuer', 'image', 'maximumPower', 'numberOfPhases', 'voltage', 'smartCharging', 'accessControl',
'id', 'name', 'issuer', 'image', 'maximumPower', 'numberOfPhases', 'voltage', 'smartCharging', 'smartChargingSessionParameters',
'smartChargingSessionParameters.departureTime', 'smartChargingSessionParameters.carStateOfCharge', 'smartChargingSessionParameters.targetStateOfCharge', 'accessControl',
'connectorStats', 'siteID', 'site.name', 'site.public', 'parentSiteAreaID', 'parentSiteArea.name', 'tariffID',
'address.address1', 'address.address2', 'address.postalCode', 'address.city',
'address.department', 'address.region', 'address.country', 'address.coordinates'
Expand Down Expand Up @@ -1309,6 +1310,7 @@ export const AUTHORIZATION_DEFINITION: AuthorizationDefinition = {
attributes: [
'id', 'name', 'issuer', 'image', 'maximumPower', 'numberOfPhases',
'voltage', 'smartCharging', 'accessControl', 'connectorStats', 'siteID',
'smartChargingSessionParameters.departureTime', 'smartChargingSessionParameters.carStateOfCharge', 'smartChargingSessionParameters.targetStateOfCharge',
'parentSiteAreaID', 'site.name', 'parentSiteArea.name',
'address.address1', 'address.address2', 'address.postalCode', 'address.city',
'address.department', 'address.region', 'address.country', 'address.coordinates'
Expand Down Expand Up @@ -1865,6 +1867,7 @@ export const AUTHORIZATION_DEFINITION: AuthorizationDefinition = {
attributes: [
'id', 'name', 'issuer', 'image', 'maximumPower', 'numberOfPhases',
'voltage', 'smartCharging', 'accessControl', 'connectorStats',
'smartChargingSessionParameters.departureTime', 'smartChargingSessionParameters.carStateOfCharge', 'smartChargingSessionParameters.targetStateOfCharge',
'siteID', 'parentSiteAreaID', 'site.name', 'parentSiteArea.name',
'address.address1', 'address.address2', 'address.postalCode', 'address.city',
'address.department', 'address.region', 'address.country', 'address.coordinates'
Expand Down Expand Up @@ -2336,6 +2339,7 @@ export const AUTHORIZATION_DEFINITION: AuthorizationDefinition = {
attributes: [
'id', 'name', 'issuer', 'image', 'maximumPower', 'numberOfPhases',
'voltage', 'smartCharging', 'accessControl', 'connectorStats',
'smartChargingSessionParameters.departureTime', 'smartChargingSessionParameters.carStateOfCharge', 'smartChargingSessionParameters.targetStateOfCharge',
'siteID', 'site.name', 'site.public', 'tariffID',
'address.address1', 'address.address2', 'address.postalCode', 'address.city',
'address.department', 'address.region', 'address.country', 'address.coordinates'
Expand Down
Loading

0 comments on commit 14309d9

Please sign in to comment.