authorization definitions - expose full address
MODIFY
src/authorization/AuthorizationsDefinition.ts
src/authorization/AuthorizationsDefinition.ts
@@ -164,8 +164,7 @@ export const AUTHORIZATION_DEFINITION: AuthorizationDefinition = {
{
resource: Entity.COMPANY, action: Action.LIST,
attributes: [
- 'id', 'name', 'address.address1', 'address.address2', 'address.postalCode', 'address.city', 'address.country',
- 'address.coordinates', 'logo', 'issuer', 'distanceMeters', 'createdOn', 'lastChangedOn',
+ 'id', 'name', 'address', 'logo', 'issuer', 'distanceMeters', 'createdOn', 'lastChangedOn',
'createdBy.name', 'createdBy.firstName', 'lastChangedBy.name', 'lastChangedBy.firstName'
]
},
@@ -226,8 +225,7 @@ export const AUTHORIZATION_DEFINITION: AuthorizationDefinition = {
{
resource: Entity.SITE, action: Action.LIST,
attributes: [
- 'id', 'name', 'address.address1', 'address.address2', 'address.postalCode', 'address.city', 'address.country',
- 'address.coordinates', 'companyID', 'company.name', 'autoUserSiteAssignment', 'issuer',
+ 'id', 'name', 'address', 'companyID', 'company.name', 'autoUserSiteAssignment', 'issuer',
'autoUserSiteAssignment', 'distanceMeters', 'public', 'createdOn', 'lastChangedOn',
'createdBy.name', 'createdBy.firstName', 'lastChangedBy.name', 'lastChangedBy.firstName', 'connectors'
]
@@ -273,8 +271,7 @@ export const AUTHORIZATION_DEFINITION: AuthorizationDefinition = {
resource: Entity.SITE_AREA, action: Action.LIST,
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', 'parentSiteAreaID', 'parentSiteArea.name', 'issuer', 'distanceMeters',
+ 'address', 'site.id', 'site.name', 'site.public', 'parentSiteAreaID', 'parentSiteArea.name', 'issuer', 'distanceMeters',
'createdOn', 'createdBy.name', 'createdBy.firstName', 'lastChangedOn', 'lastChangedBy.name', 'lastChangedBy.firstName', 'connectors'
]
},
@@ -650,8 +647,7 @@ export const AUTHORIZATION_DEFINITION: AuthorizationDefinition = {
}
},
attributes: [
- 'id', 'name', 'address.address1', 'address.address2', 'address.postalCode', 'address.city', 'address.country',
- 'address.coordinates', 'logo', 'issuer', 'distanceMeters', 'createdOn', 'lastChangedOn'
+ 'id', 'name', 'address', 'logo', 'issuer', 'distanceMeters', 'createdOn', 'lastChangedOn'
]
},
{
@@ -733,8 +729,7 @@ export const AUTHORIZATION_DEFINITION: AuthorizationDefinition = {
}
},
attributes: [
- 'id', 'name', 'address.address1', 'address.address2', 'address.postalCode', 'address.city', 'address.country',
- 'address.coordinates', 'companyID', 'company.name', 'autoUserSiteAssignment', 'issuer',
+ 'id', 'name', 'address', 'companyID', 'company.name', 'autoUserSiteAssignment', 'issuer',
'autoUserSiteAssignment', 'distanceMeters', 'public', 'createdOn', 'lastChangedOn', 'connectors'
],
},
@@ -763,8 +758,7 @@ 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', 'parentSiteAreaID', 'parentSiteArea.name', 'issuer',
+ 'address','site.id', 'site.name', 'parentSiteAreaID', 'parentSiteArea.name', 'issuer',
'distanceMeters', 'createdOn', 'lastChangedOn', 'connectors'
],
},
@@ -997,8 +991,7 @@ export const AUTHORIZATION_DEFINITION: AuthorizationDefinition = {
{
resource: Entity.COMPANY, action: Action.LIST,
attributes: [
- 'id', 'name', 'address.address1', 'address.address2', 'address.postalCode', 'address.city', 'address.country',
- 'address.coordinates', 'logo', 'issuer', 'distanceMeters', 'createdOn', 'lastChangedOn'
+ 'id', 'name', 'address', 'logo', 'issuer', 'distanceMeters', 'createdOn', 'lastChangedOn'
]
},
{
@@ -1010,8 +1003,7 @@ export const AUTHORIZATION_DEFINITION: AuthorizationDefinition = {
{
resource: Entity.SITE, action: Action.LIST,
attributes: [
- 'id', 'name', 'address.address1', 'address.address2', 'address.postalCode', 'address.city', 'address.country',
- 'address.coordinates', 'companyID', 'company.name', 'autoUserSiteAssignment', 'issuer',
+ 'id', 'name', 'address', 'companyID', 'company.name', 'autoUserSiteAssignment', 'issuer',
'autoUserSiteAssignment', 'distanceMeters', 'public', 'createdOn', 'lastChangedOn', 'connectors'
]
},
@@ -1026,8 +1018,7 @@ export const AUTHORIZATION_DEFINITION: AuthorizationDefinition = {
resource: Entity.SITE_AREA, action: Action.LIST,
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', 'parentSiteAreaID', 'parentSiteArea.name', 'issuer',
+ 'address', 'site.id', 'site.name', 'parentSiteAreaID', 'parentSiteArea.name', 'issuer',
'distanceMeters', 'createdOn', 'lastChangedOn', 'connectors'
]
},

authorization definitions - expose full address (#3550)