Skip to content

Commit

Permalink
update prior approval example
Browse files Browse the repository at this point in the history
  • Loading branch information
jessicamcinchak committed Jul 2, 2024
1 parent 0d6d690 commit 4cb62e2
Show file tree
Hide file tree
Showing 2 changed files with 84 additions and 2 deletions.
37 changes: 36 additions & 1 deletion examples/data/priorApproval/convertCommercialToHome.ts
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,41 @@ export const priorApprovalConvertCommercialToHome: Schema = {
difference: 0,
},
},
units: {
residential: {
rebuilt: [
{
development: {value: 'changeOfUse', description: 'Change of use'},
type: {value: 'terraced', description: 'Terraced home'},
bedrooms: 3,
habitableRooms: 7,
area: {squareMetres: 300},
tenure: {value: 'marketForRent', description: 'Market for rent'},
provider: {value: 'private', description: 'Private'},
garden: false,
sheltered: false,
olderPersons: false,
compliance: [
{
value: 'm42',
description: 'Part M4(2) of the Building Regulations 2010',
},
{
value: 'm432a',
description:
'Part M4(3)(2a) of the Building Regulations 2010',
},
{
value: 'm432b',
description:
'Part M4(3)(2b) of the Building Regulations 2010',
},
],
identicalUnits: 1,
},
],
},
},
energy: {
type: ['heatPump'],
heatPumps: {
Expand Down Expand Up @@ -1523,7 +1558,7 @@ export const priorApprovalConvertCommercialToHome: Schema = {
source: 'PlanX',
service: {
flowId: 'f3cae2c8-9a64-4ce1-8cef-8e6832ad383d',
url: 'https://editor.planx.uk/lambeth/apply-for-prior-approval/published',
url: 'https://editor.planx.dev/lambeth/apply-for-prior-approval/published',
files: {
required: [
{
Expand Down
49 changes: 48 additions & 1 deletion examples/priorApproval/convertCommercialToHome.json
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,53 @@
"difference": 0
}
},
"units": {
"residential": {
"rebuilt": [
{
"development": {
"value": "changeOfUse",
"description": "Change of use"
},
"type": {
"value": "terraced",
"description": "Terraced home"
},
"bedrooms": 3,
"habitableRooms": 7,
"area": {
"squareMetres": 300
},
"tenure": {
"value": "marketForRent",
"description": "Market for rent"
},
"provider": {
"value": "private",
"description": "Private"
},
"garden": false,
"sheltered": false,
"olderPersons": false,
"compliance": [
{
"value": "m42",
"description": "Part M4(2) of the Building Regulations 2010"
},
{
"value": "m432a",
"description": "Part M4(3)(2a) of the Building Regulations 2010"
},
{
"value": "m432b",
"description": "Part M4(3)(2b) of the Building Regulations 2010"
}
],
"identicalUnits": 1
}
]
}
},
"energy": {
"type": [
"heatPump"
Expand Down Expand Up @@ -1573,7 +1620,7 @@
"source": "PlanX",
"service": {
"flowId": "f3cae2c8-9a64-4ce1-8cef-8e6832ad383d",
"url": "https://editor.planx.uk/lambeth/apply-for-prior-approval/published",
"url": "https://editor.planx.dev/lambeth/apply-for-prior-approval/published",
"files": {
"required": [
{
Expand Down

0 comments on commit 4cb62e2

Please sign in to comment.