Add address postal code
MODIFY
src/authorization/AuthorizationsDefinition.ts
src/authorization/AuthorizationsDefinition.ts
@@ -97,7 +97,7 @@ const AUTHORIZATION_DEFINITION: AuthorizationDefinition = {
{
resource: Entity.COMPANIES, action: Action.LIST,
attributes: [
- 'id', 'name', 'address.address1', 'address.address2', 'address.city', 'address.country',
+ 'id', 'name', 'address.address1', 'address.address2', 'address.postalCode', 'address.city', 'address.country',
'logo', 'issuer', 'distanceMeters', 'createdOn', 'lastChangedOn',
'createdBy.name', 'createdBy.firstName', 'lastChangedBy.name', 'lastChangedBy.firstName'
]
@@ -134,7 +134,7 @@ const AUTHORIZATION_DEFINITION: AuthorizationDefinition = {
{
resource: Entity.SITES, action: Action.LIST,
attributes: [
- 'id', 'name', 'address.address1', 'address.address2', 'address.city', 'address.country',
+ 'id', 'name', 'address.address1', 'address.address2', 'address.postalCode', 'address.city', 'address.country',
'companyID', 'company.name', 'autoUserSiteAssignment', 'issuer',
'autoUserSiteAssignment', 'distanceMeters', 'public', 'createdOn', 'lastChangedOn',
'createdBy.name', 'createdBy.firstName', 'lastChangedBy.name', 'lastChangedBy.firstName'
@@ -157,7 +157,7 @@ const AUTHORIZATION_DEFINITION: AuthorizationDefinition = {
resource: Entity.SITE_AREAS, action: Action.LIST,
attributes: [
'id', 'name', 'siteID', 'maximumPower', 'voltage', 'numberOfPhases', 'accessControl', 'smartCharging',
- 'address.address1', 'address.address2', 'address.city', 'address.country',
+ 'address.address1', 'address.address2', 'address.postalCode', 'address.city', 'address.country',
'site.id', 'site.name', 'issuer', 'distanceMeters', 'createdOn', 'createdBy', 'lastChangedOn', 'lastChangedBy'
]
},
@@ -396,7 +396,7 @@ const AUTHORIZATION_DEFINITION: AuthorizationDefinition = {
args: { filters: ['AssignedSitesCompanies'] }
},
attributes: [
- 'id', 'name', 'address.address1', 'address.address2', 'address.city', 'address.country',
+ 'id', 'name', 'address.address1', 'address.address2', 'address.postalCode', 'address.city', 'address.country',
'logo', 'issuer', 'distanceMeters', 'createdOn', 'lastChangedOn'
]
},
@@ -423,7 +423,7 @@ const AUTHORIZATION_DEFINITION: AuthorizationDefinition = {
{
resource: Entity.SITES, action: Action.LIST,
attributes: [
- 'id', 'name', 'address.address1', 'address.address2', 'address.city', 'address.country',
+ 'id', 'name', 'address.address1', 'address.address2', 'address.postalCode', 'address.city', 'address.country',
'companyID', 'company.name', 'autoUserSiteAssignment', 'issuer',
'autoUserSiteAssignment', 'distanceMeters', 'public', 'createdOn', 'lastChangedOn',
],
@@ -447,7 +447,7 @@ const AUTHORIZATION_DEFINITION: AuthorizationDefinition = {
resource: Entity.SITE_AREAS, action: Action.LIST,
attributes: [
'id', 'name', 'siteID', 'maximumPower', 'voltage', 'numberOfPhases', 'accessControl', 'smartCharging',
- 'address.address1', 'address.address2', 'address.city', 'address.country',
+ 'address.address1', 'address.address2', 'address.postalCode', 'address.city', 'address.country',
'site.id', 'site.name', 'issuer', 'distanceMeters', 'createdOn', 'lastChangedOn'
],
condition: {
@@ -621,7 +621,7 @@ const AUTHORIZATION_DEFINITION: AuthorizationDefinition = {
},
{
resource: Entity.COMPANIES, action: Action.LIST, attributes: [
- 'id', 'name', 'address.address1', 'address.address2', 'address.city', 'address.country',
+ 'id', 'name', 'address.address1', 'address.address2', 'address.postalCode', 'address.city', 'address.country',
'logo', 'issuer', 'distanceMeters', 'createdOn', 'lastChangedOn'
]
},
@@ -632,7 +632,7 @@ const AUTHORIZATION_DEFINITION: AuthorizationDefinition = {
},
{
resource: Entity.SITES, action: Action.LIST, attributes: [
- 'id', 'name', 'address.address1', 'address.address2', 'address.city', 'address.country',
+ 'id', 'name', 'address.address1', 'address.address2', 'address.postalCode', 'address.city', 'address.country',
'companyID', 'company.name', 'autoUserSiteAssignment', 'issuer',
'autoUserSiteAssignment', 'distanceMeters', 'public', 'createdOn', 'lastChangedOn',
]
@@ -646,7 +646,7 @@ const AUTHORIZATION_DEFINITION: AuthorizationDefinition = {
{
resource: Entity.SITE_AREAS, action: Action.LIST, attributes: [
'id', 'name', 'siteID', 'maximumPower', 'voltage', 'numberOfPhases', 'accessControl', 'smartCharging',
- 'address.address1', 'address.address2', 'address.city', 'address.country',
+ 'address.address1', 'address.address2', 'address.postalCode', 'address.city', 'address.country',
'site.id', 'site.name', 'issuer', 'distanceMeters', 'createdOn', 'lastChangedOn'
]
},

Add address postal code