@pdtf/schemas 2.0.0-7 → 2.0.0-8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/examples/v2/exampleTransaction.json +12 -16
- package/src/schemas/v2/combined.json +101 -110
- package/src/schemas/v2/overlays/baspi.json +90 -94
- package/src/schemas/v2/overlays/lpe1.json +15 -15
- package/src/schemas/v2/overlays/nts.json +38 -42
- package/src/schemas/v2/overlays/ta7.json +14 -14
- package/src/schemas/v2/pdtf-transaction.json +71 -71
- package/src/tests/v2/transactionSchema.test.js +2 -2
package/package.json
CHANGED
|
@@ -34,6 +34,16 @@
|
|
|
34
34
|
"titleNumber": "HD221222",
|
|
35
35
|
"ownershipType": "Leasehold",
|
|
36
36
|
"leaseholdInformation": {
|
|
37
|
+
"typeOfLeasehold": {
|
|
38
|
+
"leaseholdType": "Shared ownership",
|
|
39
|
+
"sharedOwnershipPercentage": 50,
|
|
40
|
+
"sharedOwnershipRent": 200,
|
|
41
|
+
"sharedOwnershipRentFrequency": "Monthly"
|
|
42
|
+
},
|
|
43
|
+
"leaseTerm": {
|
|
44
|
+
"startYearOfLease": 1900,
|
|
45
|
+
"lengthOfLeaseInYears": 999
|
|
46
|
+
},
|
|
37
47
|
"contactDetails": {
|
|
38
48
|
"contacts": {
|
|
39
49
|
"landlord": {
|
|
@@ -77,20 +87,6 @@
|
|
|
77
87
|
"details": "There is sinking fund."
|
|
78
88
|
}
|
|
79
89
|
},
|
|
80
|
-
"general": {
|
|
81
|
-
"typeOfLeasehold": {
|
|
82
|
-
"leaseholdType": "Shared ownership",
|
|
83
|
-
"sharedOwnershipPercentage": 50,
|
|
84
|
-
"sharedOwnershipRent": 200,
|
|
85
|
-
"sharedOwnershipRentFrequency": "Monthly"
|
|
86
|
-
},
|
|
87
|
-
"leaseTerm": {
|
|
88
|
-
"startYearOfLease": 1900,
|
|
89
|
-
"lengthOfLeaseInYears": 999
|
|
90
|
-
}
|
|
91
|
-
},
|
|
92
|
-
|
|
93
|
-
"largeAdditionalExpense": { "yesNo": "No" },
|
|
94
90
|
"additionalFeesOnSale": 0
|
|
95
91
|
}
|
|
96
92
|
}
|
|
@@ -308,14 +304,14 @@
|
|
|
308
304
|
}
|
|
309
305
|
},
|
|
310
306
|
"connectedUtilities": {
|
|
311
|
-
"
|
|
307
|
+
"mainsElectricity": {
|
|
312
308
|
"maintenanceAgreements": {
|
|
313
309
|
"yesNo": "No"
|
|
314
310
|
},
|
|
315
311
|
"yesNo": "Yes",
|
|
316
312
|
"supplier": "Octopus Energy"
|
|
317
313
|
},
|
|
318
|
-
"
|
|
314
|
+
"mainsGas": {
|
|
319
315
|
"maintenanceAgreements": {
|
|
320
316
|
"yesNo": "No"
|
|
321
317
|
},
|
|
@@ -2573,13 +2573,107 @@
|
|
|
2573
2573
|
"confirmation"
|
|
2574
2574
|
],
|
|
2575
2575
|
"baspiRequired": [
|
|
2576
|
+
"typeOfLeasehold",
|
|
2577
|
+
"leaseTerm",
|
|
2576
2578
|
"contactDetails",
|
|
2577
2579
|
"groundRent",
|
|
2578
2580
|
"transferAndRegistration",
|
|
2579
|
-
"serviceCharge"
|
|
2580
|
-
"general"
|
|
2581
|
+
"serviceCharge"
|
|
2581
2582
|
],
|
|
2582
2583
|
"properties": {
|
|
2584
|
+
"typeOfLeasehold": {
|
|
2585
|
+
"baspiRef": "A1.3.1",
|
|
2586
|
+
"type": "object",
|
|
2587
|
+
"lpe1Required": ["leaseholdType"],
|
|
2588
|
+
"baspiRequired": ["leaseholdType"],
|
|
2589
|
+
"properties": {
|
|
2590
|
+
"leaseholdType": {
|
|
2591
|
+
"baspiRef": "A1.3.1",
|
|
2592
|
+
"ta7Ref": "1.1",
|
|
2593
|
+
"title": "What type of leasehold property does the seller own?",
|
|
2594
|
+
"description": "‘Flat’ includes maisonette and apartment.",
|
|
2595
|
+
"type": "string",
|
|
2596
|
+
"enum": [
|
|
2597
|
+
"Flat",
|
|
2598
|
+
"Shared ownership",
|
|
2599
|
+
"Long leasehold house"
|
|
2600
|
+
]
|
|
2601
|
+
}
|
|
2602
|
+
},
|
|
2603
|
+
"discriminator": {
|
|
2604
|
+
"propertyName": "leaseholdType"
|
|
2605
|
+
},
|
|
2606
|
+
"oneOf": [
|
|
2607
|
+
{
|
|
2608
|
+
"properties": {
|
|
2609
|
+
"leaseholdType": {
|
|
2610
|
+
"enum": ["Flat", "Long leasehold house"]
|
|
2611
|
+
}
|
|
2612
|
+
}
|
|
2613
|
+
},
|
|
2614
|
+
{
|
|
2615
|
+
"properties": {
|
|
2616
|
+
"leaseholdType": {
|
|
2617
|
+
"enum": ["Shared ownership"]
|
|
2618
|
+
},
|
|
2619
|
+
"sharedOwnershipPercentage": {
|
|
2620
|
+
"baspiRef": "A1.3.1.1",
|
|
2621
|
+
"ntsRef": "A1.7.1",
|
|
2622
|
+
"title": "Shared ownership percentage",
|
|
2623
|
+
"type": "integer",
|
|
2624
|
+
"minimum": 5,
|
|
2625
|
+
"exclusiveMaximum": 100
|
|
2626
|
+
},
|
|
2627
|
+
"sharedOwnershipRent": {
|
|
2628
|
+
"baspiRef": "A1.3.1.2",
|
|
2629
|
+
"ntsRef": "A1.7.2",
|
|
2630
|
+
"title": "Shared ownership rent (£)",
|
|
2631
|
+
"type": "number",
|
|
2632
|
+
"minimum": 0
|
|
2633
|
+
},
|
|
2634
|
+
"sharedOwnershipRentFrequency": {
|
|
2635
|
+
"baspiRef": "A1.3.1.3",
|
|
2636
|
+
"ntsRef": "A1.7.3",
|
|
2637
|
+
"title": "Shared ownership rent frequency",
|
|
2638
|
+
"type": "string",
|
|
2639
|
+
"enum": ["Yearly", "Monthly", "Weekly"]
|
|
2640
|
+
}
|
|
2641
|
+
},
|
|
2642
|
+
"lpe1Required": [
|
|
2643
|
+
"sharedOwnershipPercentage",
|
|
2644
|
+
"sharedOwnershipRent",
|
|
2645
|
+
"sharedOwnershipRentFrequency"
|
|
2646
|
+
],
|
|
2647
|
+
"baspiRequired": [
|
|
2648
|
+
"sharedOwnershipPercentage",
|
|
2649
|
+
"sharedOwnershipRent",
|
|
2650
|
+
"sharedOwnershipRentFrequency"
|
|
2651
|
+
]
|
|
2652
|
+
}
|
|
2653
|
+
]
|
|
2654
|
+
},
|
|
2655
|
+
"leaseTerm": {
|
|
2656
|
+
"baspiRef": "A1.4.1",
|
|
2657
|
+
"type": "object",
|
|
2658
|
+
"baspiRequired": [
|
|
2659
|
+
"startYearOfLease",
|
|
2660
|
+
"lengthOfLeaseInYears"
|
|
2661
|
+
],
|
|
2662
|
+
"properties": {
|
|
2663
|
+
"startYearOfLease": {
|
|
2664
|
+
"baspiRef": "A1.4.1.1",
|
|
2665
|
+
"ntsRef": "A1.2",
|
|
2666
|
+
"title": "Year that the lease commenced",
|
|
2667
|
+
"type": "integer"
|
|
2668
|
+
},
|
|
2669
|
+
"lengthOfLeaseInYears": {
|
|
2670
|
+
"baspiRef": "A1.4.1.2",
|
|
2671
|
+
"ntsRef": "A1.3",
|
|
2672
|
+
"title": "Length of lease (years)",
|
|
2673
|
+
"type": "integer"
|
|
2674
|
+
}
|
|
2675
|
+
}
|
|
2676
|
+
},
|
|
2583
2677
|
"contactDetails": {
|
|
2584
2678
|
"baspiRef": "A1.5.4",
|
|
2585
2679
|
"ta7Ref": "4.1",
|
|
@@ -6103,111 +6197,7 @@
|
|
|
6103
6197
|
"additionalParkingRegulations",
|
|
6104
6198
|
"restrictionOnKeepingPets"
|
|
6105
6199
|
],
|
|
6106
|
-
"baspiRequired": [
|
|
6107
|
-
"typeOfLeasehold",
|
|
6108
|
-
"leaseTerm"
|
|
6109
|
-
],
|
|
6110
6200
|
"properties": {
|
|
6111
|
-
"typeOfLeasehold": {
|
|
6112
|
-
"baspiRef": "A1.3.1",
|
|
6113
|
-
"type": "object",
|
|
6114
|
-
"lpe1Required": ["leaseholdType"],
|
|
6115
|
-
"baspiRequired": ["leaseholdType"],
|
|
6116
|
-
"properties": {
|
|
6117
|
-
"leaseholdType": {
|
|
6118
|
-
"baspiRef": "A1.3.1",
|
|
6119
|
-
"ta7Ref": "1.1",
|
|
6120
|
-
"title": "What type of leasehold property does the seller own?",
|
|
6121
|
-
"description": "‘Flat’ includes maisonette and apartment.",
|
|
6122
|
-
"type": "string",
|
|
6123
|
-
"enum": [
|
|
6124
|
-
"Flat",
|
|
6125
|
-
"Shared ownership",
|
|
6126
|
-
"Long leasehold house"
|
|
6127
|
-
]
|
|
6128
|
-
}
|
|
6129
|
-
},
|
|
6130
|
-
"discriminator": {
|
|
6131
|
-
"propertyName": "leaseholdType"
|
|
6132
|
-
},
|
|
6133
|
-
"oneOf": [
|
|
6134
|
-
{
|
|
6135
|
-
"properties": {
|
|
6136
|
-
"leaseholdType": {
|
|
6137
|
-
"enum": [
|
|
6138
|
-
"Flat",
|
|
6139
|
-
"Long leasehold house"
|
|
6140
|
-
]
|
|
6141
|
-
}
|
|
6142
|
-
}
|
|
6143
|
-
},
|
|
6144
|
-
{
|
|
6145
|
-
"properties": {
|
|
6146
|
-
"leaseholdType": {
|
|
6147
|
-
"enum": ["Shared ownership"]
|
|
6148
|
-
},
|
|
6149
|
-
"sharedOwnershipPercentage": {
|
|
6150
|
-
"baspiRef": "A1.3.1.1",
|
|
6151
|
-
"ntsRef": "A1.7.1",
|
|
6152
|
-
"title": "Shared ownership percentage",
|
|
6153
|
-
"type": "integer",
|
|
6154
|
-
"minimum": 5,
|
|
6155
|
-
"exclusiveMaximum": 100
|
|
6156
|
-
},
|
|
6157
|
-
"sharedOwnershipRent": {
|
|
6158
|
-
"baspiRef": "A1.3.1.2",
|
|
6159
|
-
"ntsRef": "A1.7.2",
|
|
6160
|
-
"title": "Shared ownership rent (£)",
|
|
6161
|
-
"type": "number",
|
|
6162
|
-
"minimum": 0
|
|
6163
|
-
},
|
|
6164
|
-
"sharedOwnershipRentFrequency": {
|
|
6165
|
-
"baspiRef": "A1.3.1.3",
|
|
6166
|
-
"ntsRef": "A1.7.3",
|
|
6167
|
-
"title": "Shared ownership rent frequency",
|
|
6168
|
-
"type": "string",
|
|
6169
|
-
"enum": [
|
|
6170
|
-
"Yearly",
|
|
6171
|
-
"Monthly",
|
|
6172
|
-
"Weekly"
|
|
6173
|
-
]
|
|
6174
|
-
}
|
|
6175
|
-
},
|
|
6176
|
-
"lpe1Required": [
|
|
6177
|
-
"sharedOwnershipPercentage",
|
|
6178
|
-
"sharedOwnershipRent",
|
|
6179
|
-
"sharedOwnershipRentFrequency"
|
|
6180
|
-
],
|
|
6181
|
-
"baspiRequired": [
|
|
6182
|
-
"sharedOwnershipPercentage",
|
|
6183
|
-
"sharedOwnershipRent",
|
|
6184
|
-
"sharedOwnershipRentFrequency"
|
|
6185
|
-
]
|
|
6186
|
-
}
|
|
6187
|
-
]
|
|
6188
|
-
},
|
|
6189
|
-
"leaseTerm": {
|
|
6190
|
-
"baspiRef": "A1.4.1",
|
|
6191
|
-
"type": "object",
|
|
6192
|
-
"baspiRequired": [
|
|
6193
|
-
"startYearOfLease",
|
|
6194
|
-
"lengthOfLeaseInYears"
|
|
6195
|
-
],
|
|
6196
|
-
"properties": {
|
|
6197
|
-
"startYearOfLease": {
|
|
6198
|
-
"baspiRef": "A1.4.1.1",
|
|
6199
|
-
"ntsRef": "A1.2",
|
|
6200
|
-
"title": "Year that the lease commenced",
|
|
6201
|
-
"type": "integer"
|
|
6202
|
-
},
|
|
6203
|
-
"lengthOfLeaseInYears": {
|
|
6204
|
-
"baspiRef": "A1.4.1.2",
|
|
6205
|
-
"ntsRef": "A1.3",
|
|
6206
|
-
"title": "Length of lease (years)",
|
|
6207
|
-
"type": "integer"
|
|
6208
|
-
}
|
|
6209
|
-
}
|
|
6210
|
-
},
|
|
6211
6201
|
"sellerAwareOfAlterations": {
|
|
6212
6202
|
"ta7Ref": "9.1",
|
|
6213
6203
|
"title": "Is the seller aware of any alterations having been made to the property since the lease was originally granted?",
|
|
@@ -9640,8 +9630,8 @@
|
|
|
9640
9630
|
"description": "Please indicate which utilities are are connected to the property.",
|
|
9641
9631
|
"type": "object",
|
|
9642
9632
|
"baspiRequired": [
|
|
9643
|
-
"
|
|
9644
|
-
"
|
|
9633
|
+
"mainsElectricity",
|
|
9634
|
+
"mainsGas",
|
|
9645
9635
|
"lpg",
|
|
9646
9636
|
"oil",
|
|
9647
9637
|
"telephone",
|
|
@@ -12496,7 +12486,7 @@
|
|
|
12496
12486
|
},
|
|
12497
12487
|
"details": {
|
|
12498
12488
|
"baspiRef": "A12.2.2",
|
|
12499
|
-
"title": "
|
|
12489
|
+
"title": "Please describe this issue and any action that has been taken, if applicable.",
|
|
12500
12490
|
"type": "string",
|
|
12501
12491
|
"minLength": 1
|
|
12502
12492
|
},
|
|
@@ -12715,7 +12705,7 @@
|
|
|
12715
12705
|
"areBoundariesUniform": {
|
|
12716
12706
|
"baspiRef": "B2.1.0.1",
|
|
12717
12707
|
"TA6Ref": "1.2",
|
|
12718
|
-
"title": "",
|
|
12708
|
+
"title": "Are the boundaries uniform?",
|
|
12719
12709
|
"type": "string",
|
|
12720
12710
|
"enum": ["Yes", "No", "N/A"]
|
|
12721
12711
|
}
|
|
@@ -12730,6 +12720,7 @@
|
|
|
12730
12720
|
"enum": ["Yes"]
|
|
12731
12721
|
},
|
|
12732
12722
|
"uniformBoundaries": {
|
|
12723
|
+
"baspiRef": "B2.1.0.2",
|
|
12733
12724
|
"title": "Please indicate who has repaired, or treated as belonging to them, each of the boundaries. Identify each boundary as if you were looking at the property from the road.",
|
|
12734
12725
|
"type": "object",
|
|
12735
12726
|
"properties": {
|
|
@@ -365,13 +365,95 @@
|
|
|
365
365
|
"baspiRef": "A1.5",
|
|
366
366
|
"title": "Leasehold information",
|
|
367
367
|
"required": [
|
|
368
|
+
"typeOfLeasehold",
|
|
369
|
+
"leaseTerm",
|
|
368
370
|
"contactDetails",
|
|
369
371
|
"groundRent",
|
|
370
372
|
"transferAndRegistration",
|
|
371
|
-
"serviceCharge"
|
|
372
|
-
"general"
|
|
373
|
+
"serviceCharge"
|
|
373
374
|
],
|
|
374
375
|
"properties": {
|
|
376
|
+
"typeOfLeasehold": {
|
|
377
|
+
"baspiRef": "A1.3.1",
|
|
378
|
+
"discriminator": {
|
|
379
|
+
"propertyName": "leaseholdType"
|
|
380
|
+
},
|
|
381
|
+
"oneOf": [
|
|
382
|
+
{
|
|
383
|
+
"properties": {
|
|
384
|
+
"leaseholdType": {
|
|
385
|
+
"enum": [
|
|
386
|
+
"Flat",
|
|
387
|
+
"Long leasehold house"
|
|
388
|
+
]
|
|
389
|
+
}
|
|
390
|
+
}
|
|
391
|
+
},
|
|
392
|
+
{
|
|
393
|
+
"properties": {
|
|
394
|
+
"leaseholdType": {
|
|
395
|
+
"enum": [
|
|
396
|
+
"Shared ownership"
|
|
397
|
+
]
|
|
398
|
+
},
|
|
399
|
+
"sharedOwnershipPercentage": {
|
|
400
|
+
"baspiRef": "A1.3.1.1",
|
|
401
|
+
"title": "Shared ownership percentage"
|
|
402
|
+
},
|
|
403
|
+
"sharedOwnershipRent": {
|
|
404
|
+
"baspiRef": "A1.3.1.2",
|
|
405
|
+
"title": "Shared ownership rent (£)"
|
|
406
|
+
},
|
|
407
|
+
"sharedOwnershipRentFrequency": {
|
|
408
|
+
"baspiRef": "A1.3.1.3",
|
|
409
|
+
"title": "Shared ownership rent frequency",
|
|
410
|
+
"enum": [
|
|
411
|
+
"Yearly",
|
|
412
|
+
"Monthly",
|
|
413
|
+
"Weekly"
|
|
414
|
+
]
|
|
415
|
+
}
|
|
416
|
+
},
|
|
417
|
+
"required": [
|
|
418
|
+
"sharedOwnershipPercentage",
|
|
419
|
+
"sharedOwnershipRent",
|
|
420
|
+
"sharedOwnershipRentFrequency"
|
|
421
|
+
]
|
|
422
|
+
}
|
|
423
|
+
],
|
|
424
|
+
"required": [
|
|
425
|
+
"leaseholdType"
|
|
426
|
+
],
|
|
427
|
+
"properties": {
|
|
428
|
+
"leaseholdType": {
|
|
429
|
+
"baspiRef": "A1.3.1",
|
|
430
|
+
"title": "What type of leasehold property does the seller own?",
|
|
431
|
+
"description": "‘Flat’ includes maisonette and apartment.",
|
|
432
|
+
"enum": [
|
|
433
|
+
"Flat",
|
|
434
|
+
"Shared ownership",
|
|
435
|
+
"Long leasehold house"
|
|
436
|
+
]
|
|
437
|
+
}
|
|
438
|
+
}
|
|
439
|
+
},
|
|
440
|
+
"leaseTerm": {
|
|
441
|
+
"baspiRef": "A1.4.1",
|
|
442
|
+
"required": [
|
|
443
|
+
"startYearOfLease",
|
|
444
|
+
"lengthOfLeaseInYears"
|
|
445
|
+
],
|
|
446
|
+
"properties": {
|
|
447
|
+
"startYearOfLease": {
|
|
448
|
+
"baspiRef": "A1.4.1.1",
|
|
449
|
+
"title": "Year that the lease commenced"
|
|
450
|
+
},
|
|
451
|
+
"lengthOfLeaseInYears": {
|
|
452
|
+
"baspiRef": "A1.4.1.2",
|
|
453
|
+
"title": "Length of lease (years)"
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
},
|
|
375
457
|
"contactDetails": {
|
|
376
458
|
"baspiRef": "A1.5.4",
|
|
377
459
|
"title": "Contact Details",
|
|
@@ -781,95 +863,6 @@
|
|
|
781
863
|
]
|
|
782
864
|
}
|
|
783
865
|
}
|
|
784
|
-
},
|
|
785
|
-
"general": {
|
|
786
|
-
"required": [
|
|
787
|
-
"typeOfLeasehold",
|
|
788
|
-
"leaseTerm"
|
|
789
|
-
],
|
|
790
|
-
"properties": {
|
|
791
|
-
"typeOfLeasehold": {
|
|
792
|
-
"baspiRef": "A1.3.1",
|
|
793
|
-
"discriminator": {
|
|
794
|
-
"propertyName": "leaseholdType"
|
|
795
|
-
},
|
|
796
|
-
"oneOf": [
|
|
797
|
-
{
|
|
798
|
-
"properties": {
|
|
799
|
-
"leaseholdType": {
|
|
800
|
-
"enum": [
|
|
801
|
-
"Flat",
|
|
802
|
-
"Long leasehold house"
|
|
803
|
-
]
|
|
804
|
-
}
|
|
805
|
-
}
|
|
806
|
-
},
|
|
807
|
-
{
|
|
808
|
-
"properties": {
|
|
809
|
-
"leaseholdType": {
|
|
810
|
-
"enum": [
|
|
811
|
-
"Shared ownership"
|
|
812
|
-
]
|
|
813
|
-
},
|
|
814
|
-
"sharedOwnershipPercentage": {
|
|
815
|
-
"baspiRef": "A1.3.1.1",
|
|
816
|
-
"title": "Shared ownership percentage"
|
|
817
|
-
},
|
|
818
|
-
"sharedOwnershipRent": {
|
|
819
|
-
"baspiRef": "A1.3.1.2",
|
|
820
|
-
"title": "Shared ownership rent (£)"
|
|
821
|
-
},
|
|
822
|
-
"sharedOwnershipRentFrequency": {
|
|
823
|
-
"baspiRef": "A1.3.1.3",
|
|
824
|
-
"title": "Shared ownership rent frequency",
|
|
825
|
-
"enum": [
|
|
826
|
-
"Yearly",
|
|
827
|
-
"Monthly",
|
|
828
|
-
"Weekly"
|
|
829
|
-
]
|
|
830
|
-
}
|
|
831
|
-
},
|
|
832
|
-
"required": [
|
|
833
|
-
"sharedOwnershipPercentage",
|
|
834
|
-
"sharedOwnershipRent",
|
|
835
|
-
"sharedOwnershipRentFrequency"
|
|
836
|
-
]
|
|
837
|
-
}
|
|
838
|
-
],
|
|
839
|
-
"required": [
|
|
840
|
-
"leaseholdType"
|
|
841
|
-
],
|
|
842
|
-
"properties": {
|
|
843
|
-
"leaseholdType": {
|
|
844
|
-
"baspiRef": "A1.3.1",
|
|
845
|
-
"title": "What type of leasehold property does the seller own?",
|
|
846
|
-
"description": "‘Flat’ includes maisonette and apartment.",
|
|
847
|
-
"enum": [
|
|
848
|
-
"Flat",
|
|
849
|
-
"Shared ownership",
|
|
850
|
-
"Long leasehold house"
|
|
851
|
-
]
|
|
852
|
-
}
|
|
853
|
-
}
|
|
854
|
-
},
|
|
855
|
-
"leaseTerm": {
|
|
856
|
-
"baspiRef": "A1.4.1",
|
|
857
|
-
"required": [
|
|
858
|
-
"startYearOfLease",
|
|
859
|
-
"lengthOfLeaseInYears"
|
|
860
|
-
],
|
|
861
|
-
"properties": {
|
|
862
|
-
"startYearOfLease": {
|
|
863
|
-
"baspiRef": "A1.4.1.1",
|
|
864
|
-
"title": "Year that the lease commenced"
|
|
865
|
-
},
|
|
866
|
-
"lengthOfLeaseInYears": {
|
|
867
|
-
"baspiRef": "A1.4.1.2",
|
|
868
|
-
"title": "Length of lease (years)"
|
|
869
|
-
}
|
|
870
|
-
}
|
|
871
|
-
}
|
|
872
|
-
}
|
|
873
866
|
}
|
|
874
867
|
}
|
|
875
868
|
}
|
|
@@ -3791,8 +3784,8 @@
|
|
|
3791
3784
|
"title": "Connected utilities",
|
|
3792
3785
|
"description": "Please indicate which utilities are are connected to the property.",
|
|
3793
3786
|
"required": [
|
|
3794
|
-
"
|
|
3795
|
-
"
|
|
3787
|
+
"mainsElectricity",
|
|
3788
|
+
"mainsGas",
|
|
3796
3789
|
"lpg",
|
|
3797
3790
|
"oil",
|
|
3798
3791
|
"telephone",
|
|
@@ -6859,7 +6852,7 @@
|
|
|
6859
6852
|
},
|
|
6860
6853
|
"details": {
|
|
6861
6854
|
"baspiRef": "A12.2.2",
|
|
6862
|
-
"title": "
|
|
6855
|
+
"title": "Please describe this issue and any action that has been taken, if applicable."
|
|
6863
6856
|
},
|
|
6864
6857
|
"attachments": {
|
|
6865
6858
|
"baspiRef": "A12.2.3",
|
|
@@ -7097,6 +7090,8 @@
|
|
|
7097
7090
|
]
|
|
7098
7091
|
},
|
|
7099
7092
|
"uniformBoundaries": {
|
|
7093
|
+
"baspiRef": "B2.1.0.2",
|
|
7094
|
+
"title": "Please indicate who has repaired, or treated as belonging to them, each of the boundaries. Identify each boundary as if you were looking at the property from the road.",
|
|
7100
7095
|
"properties": {
|
|
7101
7096
|
"left": {
|
|
7102
7097
|
"baspiRef": "B2.1.1",
|
|
@@ -7189,6 +7184,7 @@
|
|
|
7189
7184
|
"properties": {
|
|
7190
7185
|
"areBoundariesUniform": {
|
|
7191
7186
|
"baspiRef": "B2.1.0.1",
|
|
7187
|
+
"title": "Are the boundaries uniform?",
|
|
7192
7188
|
"enum": [
|
|
7193
7189
|
"Yes",
|
|
7194
7190
|
"No",
|
|
@@ -32,6 +32,21 @@
|
|
|
32
32
|
"confirmation"
|
|
33
33
|
],
|
|
34
34
|
"properties": {
|
|
35
|
+
"typeOfLeasehold": {
|
|
36
|
+
"required": [
|
|
37
|
+
"leaseholdType"
|
|
38
|
+
],
|
|
39
|
+
"oneOf": [
|
|
40
|
+
null,
|
|
41
|
+
{
|
|
42
|
+
"required": [
|
|
43
|
+
"sharedOwnershipPercentage",
|
|
44
|
+
"sharedOwnershipRent",
|
|
45
|
+
"sharedOwnershipRentFrequency"
|
|
46
|
+
]
|
|
47
|
+
}
|
|
48
|
+
]
|
|
49
|
+
},
|
|
35
50
|
"contactDetails": {
|
|
36
51
|
"lpe1Ref": "1",
|
|
37
52
|
"title": "Contact Details",
|
|
@@ -1984,21 +1999,6 @@
|
|
|
1984
1999
|
"restrictionOnKeepingPets"
|
|
1985
2000
|
],
|
|
1986
2001
|
"properties": {
|
|
1987
|
-
"typeOfLeasehold": {
|
|
1988
|
-
"required": [
|
|
1989
|
-
"leaseholdType"
|
|
1990
|
-
],
|
|
1991
|
-
"oneOf": [
|
|
1992
|
-
null,
|
|
1993
|
-
{
|
|
1994
|
-
"required": [
|
|
1995
|
-
"sharedOwnershipPercentage",
|
|
1996
|
-
"sharedOwnershipRent",
|
|
1997
|
-
"sharedOwnershipRentFrequency"
|
|
1998
|
-
]
|
|
1999
|
-
}
|
|
2000
|
-
]
|
|
2001
|
-
},
|
|
2002
2002
|
"sellerAwareOfAlterations": {
|
|
2003
2003
|
"required": [
|
|
2004
2004
|
"yesNo"
|
|
@@ -41,6 +41,44 @@
|
|
|
41
41
|
"properties": {
|
|
42
42
|
"leaseholdInformation": {
|
|
43
43
|
"properties": {
|
|
44
|
+
"typeOfLeasehold": {
|
|
45
|
+
"oneOf": [
|
|
46
|
+
null,
|
|
47
|
+
{
|
|
48
|
+
"properties": {
|
|
49
|
+
"sharedOwnershipPercentage": {
|
|
50
|
+
"ntsRef": "A1.7.1",
|
|
51
|
+
"title": "Shared ownership percentage"
|
|
52
|
+
},
|
|
53
|
+
"sharedOwnershipRent": {
|
|
54
|
+
"ntsRef": "A1.7.2",
|
|
55
|
+
"title": "Shared ownership rent (£)"
|
|
56
|
+
},
|
|
57
|
+
"sharedOwnershipRentFrequency": {
|
|
58
|
+
"ntsRef": "A1.7.3",
|
|
59
|
+
"title": "Shared ownership rent frequency",
|
|
60
|
+
"enum": [
|
|
61
|
+
"Yearly",
|
|
62
|
+
"Monthly",
|
|
63
|
+
"Weekly"
|
|
64
|
+
]
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
]
|
|
69
|
+
},
|
|
70
|
+
"leaseTerm": {
|
|
71
|
+
"properties": {
|
|
72
|
+
"startYearOfLease": {
|
|
73
|
+
"ntsRef": "A1.2",
|
|
74
|
+
"title": "Year that the lease commenced"
|
|
75
|
+
},
|
|
76
|
+
"lengthOfLeaseInYears": {
|
|
77
|
+
"ntsRef": "A1.3",
|
|
78
|
+
"title": "Length of lease (years)"
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
},
|
|
44
82
|
"groundRent": {
|
|
45
83
|
"oneOf": [
|
|
46
84
|
null,
|
|
@@ -80,48 +118,6 @@
|
|
|
80
118
|
}
|
|
81
119
|
}
|
|
82
120
|
]
|
|
83
|
-
},
|
|
84
|
-
"general": {
|
|
85
|
-
"properties": {
|
|
86
|
-
"typeOfLeasehold": {
|
|
87
|
-
"oneOf": [
|
|
88
|
-
null,
|
|
89
|
-
{
|
|
90
|
-
"properties": {
|
|
91
|
-
"sharedOwnershipPercentage": {
|
|
92
|
-
"ntsRef": "A1.7.1",
|
|
93
|
-
"title": "Shared ownership percentage"
|
|
94
|
-
},
|
|
95
|
-
"sharedOwnershipRent": {
|
|
96
|
-
"ntsRef": "A1.7.2",
|
|
97
|
-
"title": "Shared ownership rent (£)"
|
|
98
|
-
},
|
|
99
|
-
"sharedOwnershipRentFrequency": {
|
|
100
|
-
"ntsRef": "A1.7.3",
|
|
101
|
-
"title": "Shared ownership rent frequency",
|
|
102
|
-
"enum": [
|
|
103
|
-
"Yearly",
|
|
104
|
-
"Monthly",
|
|
105
|
-
"Weekly"
|
|
106
|
-
]
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
]
|
|
111
|
-
},
|
|
112
|
-
"leaseTerm": {
|
|
113
|
-
"properties": {
|
|
114
|
-
"startYearOfLease": {
|
|
115
|
-
"ntsRef": "A1.2",
|
|
116
|
-
"title": "Year that the lease commenced"
|
|
117
|
-
},
|
|
118
|
-
"lengthOfLeaseInYears": {
|
|
119
|
-
"ntsRef": "A1.3",
|
|
120
|
-
"title": "Length of lease (years)"
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
121
|
}
|
|
126
122
|
}
|
|
127
123
|
}
|
|
@@ -61,6 +61,20 @@
|
|
|
61
61
|
"properties": {
|
|
62
62
|
"leaseholdInformation": {
|
|
63
63
|
"properties": {
|
|
64
|
+
"typeOfLeasehold": {
|
|
65
|
+
"properties": {
|
|
66
|
+
"leaseholdType": {
|
|
67
|
+
"ta7Ref": "1.1",
|
|
68
|
+
"title": "What type of leasehold property does the seller own?",
|
|
69
|
+
"description": "‘Flat’ includes maisonette and apartment.",
|
|
70
|
+
"enum": [
|
|
71
|
+
"Flat",
|
|
72
|
+
"Shared ownership",
|
|
73
|
+
"Long leasehold house"
|
|
74
|
+
]
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
},
|
|
64
78
|
"contactDetails": {
|
|
65
79
|
"ta7Ref": "4.1",
|
|
66
80
|
"title": "Contact Details",
|
|
@@ -632,20 +646,6 @@
|
|
|
632
646
|
},
|
|
633
647
|
"general": {
|
|
634
648
|
"properties": {
|
|
635
|
-
"typeOfLeasehold": {
|
|
636
|
-
"properties": {
|
|
637
|
-
"leaseholdType": {
|
|
638
|
-
"ta7Ref": "1.1",
|
|
639
|
-
"title": "What type of leasehold property does the seller own?",
|
|
640
|
-
"description": "‘Flat’ includes maisonette and apartment.",
|
|
641
|
-
"enum": [
|
|
642
|
-
"Flat",
|
|
643
|
-
"Shared ownership",
|
|
644
|
-
"Long leasehold house"
|
|
645
|
-
]
|
|
646
|
-
}
|
|
647
|
-
}
|
|
648
|
-
},
|
|
649
649
|
"sellerAwareOfAlterations": {
|
|
650
650
|
"ta7Ref": "9.1",
|
|
651
651
|
"title": "Is the seller aware of any alterations having been made to the property since the lease was originally granted?",
|
|
@@ -2325,6 +2325,75 @@
|
|
|
2325
2325
|
"title": "Leasehold information",
|
|
2326
2326
|
"type": "object",
|
|
2327
2327
|
"properties": {
|
|
2328
|
+
"typeOfLeasehold": {
|
|
2329
|
+
"type": "object",
|
|
2330
|
+
"properties": {
|
|
2331
|
+
"leaseholdType": {
|
|
2332
|
+
"title": "What type of leasehold property does the seller own?",
|
|
2333
|
+
"description": "‘Flat’ includes maisonette and apartment.",
|
|
2334
|
+
"type": "string",
|
|
2335
|
+
"enum": [
|
|
2336
|
+
"Flat",
|
|
2337
|
+
"Shared ownership",
|
|
2338
|
+
"Long leasehold house"
|
|
2339
|
+
]
|
|
2340
|
+
}
|
|
2341
|
+
},
|
|
2342
|
+
"oneOf": [
|
|
2343
|
+
{
|
|
2344
|
+
"properties": {
|
|
2345
|
+
"leaseholdType": {
|
|
2346
|
+
"enum": [
|
|
2347
|
+
"Flat",
|
|
2348
|
+
"Long leasehold house"
|
|
2349
|
+
]
|
|
2350
|
+
}
|
|
2351
|
+
}
|
|
2352
|
+
},
|
|
2353
|
+
{
|
|
2354
|
+
"properties": {
|
|
2355
|
+
"leaseholdType": {
|
|
2356
|
+
"enum": [
|
|
2357
|
+
"Shared ownership"
|
|
2358
|
+
]
|
|
2359
|
+
},
|
|
2360
|
+
"sharedOwnershipPercentage": {
|
|
2361
|
+
"title": "Shared ownership percentage",
|
|
2362
|
+
"type": "integer",
|
|
2363
|
+
"minimum": 5,
|
|
2364
|
+
"exclusiveMaximum": 100
|
|
2365
|
+
},
|
|
2366
|
+
"sharedOwnershipRent": {
|
|
2367
|
+
"title": "Shared ownership rent (£)",
|
|
2368
|
+
"type": "number",
|
|
2369
|
+
"minimum": 0
|
|
2370
|
+
},
|
|
2371
|
+
"sharedOwnershipRentFrequency": {
|
|
2372
|
+
"title": "Shared ownership rent frequency",
|
|
2373
|
+
"type": "string",
|
|
2374
|
+
"enum": [
|
|
2375
|
+
"Yearly",
|
|
2376
|
+
"Monthly",
|
|
2377
|
+
"Weekly"
|
|
2378
|
+
]
|
|
2379
|
+
}
|
|
2380
|
+
}
|
|
2381
|
+
}
|
|
2382
|
+
]
|
|
2383
|
+
},
|
|
2384
|
+
"leaseTerm": {
|
|
2385
|
+
"type": "object",
|
|
2386
|
+
"properties": {
|
|
2387
|
+
"startYearOfLease": {
|
|
2388
|
+
"title": "Year that the lease commenced",
|
|
2389
|
+
"type": "integer"
|
|
2390
|
+
},
|
|
2391
|
+
"lengthOfLeaseInYears": {
|
|
2392
|
+
"title": "Length of lease (years)",
|
|
2393
|
+
"type": "integer"
|
|
2394
|
+
}
|
|
2395
|
+
}
|
|
2396
|
+
},
|
|
2328
2397
|
"contactDetails": {
|
|
2329
2398
|
"title": "Contact Details",
|
|
2330
2399
|
"type": "object",
|
|
@@ -5453,75 +5522,6 @@
|
|
|
5453
5522
|
"title": "General",
|
|
5454
5523
|
"type": "object",
|
|
5455
5524
|
"properties": {
|
|
5456
|
-
"typeOfLeasehold": {
|
|
5457
|
-
"type": "object",
|
|
5458
|
-
"properties": {
|
|
5459
|
-
"leaseholdType": {
|
|
5460
|
-
"title": "What type of leasehold property does the seller own?",
|
|
5461
|
-
"description": "‘Flat’ includes maisonette and apartment.",
|
|
5462
|
-
"type": "string",
|
|
5463
|
-
"enum": [
|
|
5464
|
-
"Flat",
|
|
5465
|
-
"Shared ownership",
|
|
5466
|
-
"Long leasehold house"
|
|
5467
|
-
]
|
|
5468
|
-
}
|
|
5469
|
-
},
|
|
5470
|
-
"oneOf": [
|
|
5471
|
-
{
|
|
5472
|
-
"properties": {
|
|
5473
|
-
"leaseholdType": {
|
|
5474
|
-
"enum": [
|
|
5475
|
-
"Flat",
|
|
5476
|
-
"Long leasehold house"
|
|
5477
|
-
]
|
|
5478
|
-
}
|
|
5479
|
-
}
|
|
5480
|
-
},
|
|
5481
|
-
{
|
|
5482
|
-
"properties": {
|
|
5483
|
-
"leaseholdType": {
|
|
5484
|
-
"enum": [
|
|
5485
|
-
"Shared ownership"
|
|
5486
|
-
]
|
|
5487
|
-
},
|
|
5488
|
-
"sharedOwnershipPercentage": {
|
|
5489
|
-
"title": "Shared ownership percentage",
|
|
5490
|
-
"type": "integer",
|
|
5491
|
-
"minimum": 5,
|
|
5492
|
-
"exclusiveMaximum": 100
|
|
5493
|
-
},
|
|
5494
|
-
"sharedOwnershipRent": {
|
|
5495
|
-
"title": "Shared ownership rent (£)",
|
|
5496
|
-
"type": "number",
|
|
5497
|
-
"minimum": 0
|
|
5498
|
-
},
|
|
5499
|
-
"sharedOwnershipRentFrequency": {
|
|
5500
|
-
"title": "Shared ownership rent frequency",
|
|
5501
|
-
"type": "string",
|
|
5502
|
-
"enum": [
|
|
5503
|
-
"Yearly",
|
|
5504
|
-
"Monthly",
|
|
5505
|
-
"Weekly"
|
|
5506
|
-
]
|
|
5507
|
-
}
|
|
5508
|
-
}
|
|
5509
|
-
}
|
|
5510
|
-
]
|
|
5511
|
-
},
|
|
5512
|
-
"leaseTerm": {
|
|
5513
|
-
"type": "object",
|
|
5514
|
-
"properties": {
|
|
5515
|
-
"startYearOfLease": {
|
|
5516
|
-
"title": "Year that the lease commenced",
|
|
5517
|
-
"type": "integer"
|
|
5518
|
-
},
|
|
5519
|
-
"lengthOfLeaseInYears": {
|
|
5520
|
-
"title": "Length of lease (years)",
|
|
5521
|
-
"type": "integer"
|
|
5522
|
-
}
|
|
5523
|
-
}
|
|
5524
|
-
},
|
|
5525
5525
|
"sellerAwareOfAlterations": {
|
|
5526
5526
|
"title": "Is the seller aware of any alterations having been made to the property since the lease was originally granted?",
|
|
5527
5527
|
"type": "object",
|
|
@@ -11460,7 +11460,7 @@
|
|
|
11460
11460
|
]
|
|
11461
11461
|
},
|
|
11462
11462
|
"details": {
|
|
11463
|
-
"title": "
|
|
11463
|
+
"title": "Please describe this issue and any action that has been taken, if applicable.",
|
|
11464
11464
|
"type": "string",
|
|
11465
11465
|
"minLength": 1
|
|
11466
11466
|
},
|
|
@@ -11640,7 +11640,7 @@
|
|
|
11640
11640
|
"properties": {
|
|
11641
11641
|
"areBoundariesUniform": {
|
|
11642
11642
|
"TA6Ref": "1.2",
|
|
11643
|
-
"title": "",
|
|
11643
|
+
"title": "Are the boundaries uniform?",
|
|
11644
11644
|
"type": "string",
|
|
11645
11645
|
"enum": [
|
|
11646
11646
|
"Yes",
|
|
@@ -117,7 +117,7 @@ test("correctly gets a subschema through a dependency", () => {
|
|
|
117
117
|
|
|
118
118
|
test("correctly gets another subschema through a dependency", () => {
|
|
119
119
|
const subschema = getSubschema(
|
|
120
|
-
"/propertyPack/materialFacts/ownership/ownershipsToBeTransferred/0/leaseholdInformation/
|
|
120
|
+
"/propertyPack/materialFacts/ownership/ownershipsToBeTransferred/0/leaseholdInformation/leaseTerm/lengthOfLeaseInYears",
|
|
121
121
|
schemaId
|
|
122
122
|
);
|
|
123
123
|
expect(subschema.title).toBe("Length of lease (years)");
|
|
@@ -200,7 +200,7 @@ test("correctly gets titles across schemas, arrays and non-existient title prope
|
|
|
200
200
|
expect(
|
|
201
201
|
getTitleAtPath(
|
|
202
202
|
v2TransactionSchema,
|
|
203
|
-
"/propertyPack/materialFacts/ownership/ownershipsToBeTransferred/0/leaseholdInformation/
|
|
203
|
+
"/propertyPack/materialFacts/ownership/ownershipsToBeTransferred/0/leaseholdInformation/leaseTerm/lengthOfLeaseInYears"
|
|
204
204
|
)
|
|
205
205
|
).toBe("Length of lease (years)");
|
|
206
206
|
expect(
|