Update lastUpdateBy projected field
* Update projected fields
* Align lastchangedby projected field
only return firstName and name
MODIFY
src/authorization/AuthorizationsDefinition.ts
src/authorization/AuthorizationsDefinition.ts
@@ -8,7 +8,7 @@ export const AUTHORIZATION_DEFINITION: AuthorizationDefinition = {
resource: Entity.USER, action: Action.LIST,
attributes: [
'id', 'name', 'firstName', 'email', 'role', 'status', 'issuer', 'createdOn', 'createdBy',
- 'lastChangedOn', 'lastChangedBy', 'eulaAcceptedOn', 'eulaAcceptedVersion', 'locale',
+ 'lastChangedOn', 'lastChangedBy.name', 'lastChangedBy.firstName', 'eulaAcceptedOn', 'eulaAcceptedVersion', 'locale',
'billingData.customerID', 'billingData.lastChangedOn'
],
condition: {
@@ -105,7 +105,7 @@ export const AUTHORIZATION_DEFINITION: AuthorizationDefinition = {
],
attributes: [
'id', 'name', 'firstName', 'email', 'role', 'status', 'issuer', 'createdOn', 'createdBy',
- 'lastChangedOn', 'lastChangedBy', 'eulaAcceptedOn', 'eulaAcceptedVersion', 'locale',
+ 'lastChangedOn', 'lastChangedBy.name', 'lastChangedBy.firstName', 'eulaAcceptedOn', 'eulaAcceptedVersion', 'locale',
'billingData.customerID', 'billingData.lastChangedOn', 'technical', 'freeAccess'
],
condition: {
@@ -274,7 +274,8 @@ export const AUTHORIZATION_DEFINITION: AuthorizationDefinition = {
attributes: [
'id', 'name', 'siteID', 'maximumPower', 'voltage', 'numberOfPhases', 'accessControl', 'smartCharging',
'address.address1', 'address.address2', 'address.postalCode', 'address.city', 'address.country',
- 'address.coordinates', 'site.id', 'site.name', 'site.public', 'issuer', 'distanceMeters', 'createdOn', 'createdBy', 'lastChangedOn', 'lastChangedBy'
+ 'address.coordinates', 'site.id', 'site.name', 'site.public', 'issuer', 'distanceMeters', 'createdOn', 'createdBy', 'lastChangedOn',
+ 'lastChangedBy.name', 'lastChangedBy.firstName'
]
},
{

Update lastUpdateBy projected field (#3508)

* Update projected fields

* Align lastchangedby projected field

- only return firstName and name