@pdtf/schemas 2.0.0-22 → 2.0.0-24
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/index.js +23 -20
- package/package.json +1 -1
- package/src/examples/v2/exampleTransaction.json +14 -11
- package/src/schemas/v2/combined.json +1342 -320
- package/src/schemas/v2/overlays/baspi.json +548 -81
- package/src/schemas/v2/overlays/rds.json +195 -35
- package/src/schemas/v2/overlays/ta10.json +3 -0
- package/src/schemas/v2/overlays/ta6.json +3268 -304
- package/src/schemas/v2/pdtf-transaction.json +474 -140
- package/src/schemas/v2/skeleton.json +40 -13
- package/src/tests/v2/transactionSchema.test.js +37 -1
- package/src/utils/extractOverlay.js +1 -1
|
@@ -946,7 +946,7 @@
|
|
|
946
946
|
},
|
|
947
947
|
"details": {
|
|
948
948
|
"rdsRef": "Buildings,BuildingsSections/StructureAuthorised,BuildingsSections/StructureUnauthorised",
|
|
949
|
-
"title": "
|
|
949
|
+
"title": "Please give details"
|
|
950
950
|
},
|
|
951
951
|
"willingToInsure": {
|
|
952
952
|
"rdsRef": "Insurance/isWillingToProvide",
|
|
@@ -985,7 +985,7 @@
|
|
|
985
985
|
},
|
|
986
986
|
"details": {
|
|
987
987
|
"rdsRef": "Buildings,BuildingsSections/StructureAuthorised,BuildingsSections/StructureUnauthorised",
|
|
988
|
-
"title": "
|
|
988
|
+
"title": "Please give details"
|
|
989
989
|
},
|
|
990
990
|
"willingToInsure": {
|
|
991
991
|
"rdsRef": "Insurance/isWillingToProvide",
|
|
@@ -2231,31 +2231,7 @@
|
|
|
2231
2231
|
"properties": {
|
|
2232
2232
|
"difficultiesObtainingInsurance": {
|
|
2233
2233
|
"rdsRef": "Insurance/Flags,Insurance/refusalReason=?",
|
|
2234
|
-
"title": "Have you had any difficulty obtaining competitively priced building insurance due to the structure or location of the property or had insurance refused?"
|
|
2235
|
-
"description": "(e.g. high premiums, excess over £1,500, special conditions etc)",
|
|
2236
|
-
"discriminator": {
|
|
2237
|
-
"propertyName": "yesNo"
|
|
2238
|
-
},
|
|
2239
|
-
"oneOf": [
|
|
2240
|
-
{
|
|
2241
|
-
"properties": {
|
|
2242
|
-
"yesNo": {
|
|
2243
|
-
"enum": [
|
|
2244
|
-
"No"
|
|
2245
|
-
]
|
|
2246
|
-
}
|
|
2247
|
-
}
|
|
2248
|
-
},
|
|
2249
|
-
{
|
|
2250
|
-
"properties": {
|
|
2251
|
-
"yesNo": {
|
|
2252
|
-
"enum": [
|
|
2253
|
-
"Yes"
|
|
2254
|
-
]
|
|
2255
|
-
}
|
|
2256
|
-
}
|
|
2257
|
-
}
|
|
2258
|
-
]
|
|
2234
|
+
"title": "Have you had any difficulty obtaining competitively priced building insurance due to the structure or location of the property or had insurance refused?"
|
|
2259
2235
|
},
|
|
2260
2236
|
"insuranceClaims": {
|
|
2261
2237
|
"rdsRef": "Insurance/Claims",
|
|
@@ -3473,35 +3449,219 @@
|
|
|
3473
3449
|
},
|
|
3474
3450
|
"roofingWork": {
|
|
3475
3451
|
"rdsRef": "Certificates",
|
|
3476
|
-
"title": "Roofing work"
|
|
3452
|
+
"title": "Roofing work",
|
|
3453
|
+
"discriminator": {
|
|
3454
|
+
"propertyName": "yesNo"
|
|
3455
|
+
},
|
|
3456
|
+
"oneOf": [
|
|
3457
|
+
{
|
|
3458
|
+
"properties": {
|
|
3459
|
+
"yesNo": {
|
|
3460
|
+
"enum": [
|
|
3461
|
+
"No"
|
|
3462
|
+
]
|
|
3463
|
+
}
|
|
3464
|
+
}
|
|
3465
|
+
},
|
|
3466
|
+
{
|
|
3467
|
+
"properties": {
|
|
3468
|
+
"yesNo": {
|
|
3469
|
+
"enum": [
|
|
3470
|
+
"Yes"
|
|
3471
|
+
]
|
|
3472
|
+
}
|
|
3473
|
+
}
|
|
3474
|
+
}
|
|
3475
|
+
]
|
|
3477
3476
|
},
|
|
3478
3477
|
"dampProofingTreatment": {
|
|
3479
3478
|
"rdsRef": "Certificates",
|
|
3480
|
-
"title": "Damp proofing treatment"
|
|
3479
|
+
"title": "Damp proofing treatment",
|
|
3480
|
+
"discriminator": {
|
|
3481
|
+
"propertyName": "yesNo"
|
|
3482
|
+
},
|
|
3483
|
+
"oneOf": [
|
|
3484
|
+
{
|
|
3485
|
+
"properties": {
|
|
3486
|
+
"yesNo": {
|
|
3487
|
+
"enum": [
|
|
3488
|
+
"No"
|
|
3489
|
+
]
|
|
3490
|
+
}
|
|
3491
|
+
}
|
|
3492
|
+
},
|
|
3493
|
+
{
|
|
3494
|
+
"properties": {
|
|
3495
|
+
"yesNo": {
|
|
3496
|
+
"enum": [
|
|
3497
|
+
"Yes"
|
|
3498
|
+
]
|
|
3499
|
+
}
|
|
3500
|
+
}
|
|
3501
|
+
}
|
|
3502
|
+
]
|
|
3481
3503
|
},
|
|
3482
3504
|
"timberRotOrInfestationTreatment": {
|
|
3483
3505
|
"rdsRef": "Certificates",
|
|
3484
|
-
"title": "Timber rot or infestation treatment"
|
|
3506
|
+
"title": "Timber rot or infestation treatment",
|
|
3507
|
+
"discriminator": {
|
|
3508
|
+
"propertyName": "yesNo"
|
|
3509
|
+
},
|
|
3510
|
+
"oneOf": [
|
|
3511
|
+
{
|
|
3512
|
+
"properties": {
|
|
3513
|
+
"yesNo": {
|
|
3514
|
+
"enum": [
|
|
3515
|
+
"No"
|
|
3516
|
+
]
|
|
3517
|
+
}
|
|
3518
|
+
}
|
|
3519
|
+
},
|
|
3520
|
+
{
|
|
3521
|
+
"properties": {
|
|
3522
|
+
"yesNo": {
|
|
3523
|
+
"enum": [
|
|
3524
|
+
"Yes"
|
|
3525
|
+
]
|
|
3526
|
+
}
|
|
3527
|
+
}
|
|
3528
|
+
}
|
|
3529
|
+
]
|
|
3485
3530
|
},
|
|
3486
3531
|
"centralHeatingAndorPlumbing": {
|
|
3487
3532
|
"rdsRef": "Certificates",
|
|
3488
|
-
"title": "Central heating and/or plumbing"
|
|
3533
|
+
"title": "Central heating and/or plumbing",
|
|
3534
|
+
"discriminator": {
|
|
3535
|
+
"propertyName": "yesNo"
|
|
3536
|
+
},
|
|
3537
|
+
"oneOf": [
|
|
3538
|
+
{
|
|
3539
|
+
"properties": {
|
|
3540
|
+
"yesNo": {
|
|
3541
|
+
"enum": [
|
|
3542
|
+
"No"
|
|
3543
|
+
]
|
|
3544
|
+
}
|
|
3545
|
+
}
|
|
3546
|
+
},
|
|
3547
|
+
{
|
|
3548
|
+
"properties": {
|
|
3549
|
+
"yesNo": {
|
|
3550
|
+
"enum": [
|
|
3551
|
+
"Yes"
|
|
3552
|
+
]
|
|
3553
|
+
}
|
|
3554
|
+
}
|
|
3555
|
+
}
|
|
3556
|
+
]
|
|
3489
3557
|
},
|
|
3490
3558
|
"doubleGlazing": {
|
|
3491
3559
|
"rdsRef": "Certificates",
|
|
3492
|
-
"title": "Double glazing (windows, doors, roof lights, conservatory etc)"
|
|
3560
|
+
"title": "Double glazing (windows, doors, roof lights, conservatory etc)",
|
|
3561
|
+
"discriminator": {
|
|
3562
|
+
"propertyName": "yesNo"
|
|
3563
|
+
},
|
|
3564
|
+
"oneOf": [
|
|
3565
|
+
{
|
|
3566
|
+
"properties": {
|
|
3567
|
+
"yesNo": {
|
|
3568
|
+
"enum": [
|
|
3569
|
+
"No"
|
|
3570
|
+
]
|
|
3571
|
+
}
|
|
3572
|
+
}
|
|
3573
|
+
},
|
|
3574
|
+
{
|
|
3575
|
+
"properties": {
|
|
3576
|
+
"yesNo": {
|
|
3577
|
+
"enum": [
|
|
3578
|
+
"Yes"
|
|
3579
|
+
]
|
|
3580
|
+
}
|
|
3581
|
+
}
|
|
3582
|
+
}
|
|
3583
|
+
]
|
|
3493
3584
|
},
|
|
3494
3585
|
"electricalRepairOrInstallation": {
|
|
3495
3586
|
"rdsRef": "Certificates",
|
|
3496
|
-
"title": "Electrical repair or installation"
|
|
3587
|
+
"title": "Electrical repair or installation",
|
|
3588
|
+
"discriminator": {
|
|
3589
|
+
"propertyName": "yesNo"
|
|
3590
|
+
},
|
|
3591
|
+
"oneOf": [
|
|
3592
|
+
{
|
|
3593
|
+
"properties": {
|
|
3594
|
+
"yesNo": {
|
|
3595
|
+
"enum": [
|
|
3596
|
+
"No"
|
|
3597
|
+
]
|
|
3598
|
+
}
|
|
3599
|
+
}
|
|
3600
|
+
},
|
|
3601
|
+
{
|
|
3602
|
+
"properties": {
|
|
3603
|
+
"yesNo": {
|
|
3604
|
+
"enum": [
|
|
3605
|
+
"Yes"
|
|
3606
|
+
]
|
|
3607
|
+
}
|
|
3608
|
+
}
|
|
3609
|
+
}
|
|
3610
|
+
]
|
|
3497
3611
|
},
|
|
3498
3612
|
"subsidenceWork": {
|
|
3499
3613
|
"rdsRef": "Certificates",
|
|
3500
|
-
"title": "Underpinning or other preventative work and/or remedial action relating to subsidence"
|
|
3614
|
+
"title": "Underpinning or other preventative work and/or remedial action relating to subsidence",
|
|
3615
|
+
"discriminator": {
|
|
3616
|
+
"propertyName": "yesNo"
|
|
3617
|
+
},
|
|
3618
|
+
"oneOf": [
|
|
3619
|
+
{
|
|
3620
|
+
"properties": {
|
|
3621
|
+
"yesNo": {
|
|
3622
|
+
"enum": [
|
|
3623
|
+
"No"
|
|
3624
|
+
]
|
|
3625
|
+
}
|
|
3626
|
+
}
|
|
3627
|
+
},
|
|
3628
|
+
{
|
|
3629
|
+
"properties": {
|
|
3630
|
+
"yesNo": {
|
|
3631
|
+
"enum": [
|
|
3632
|
+
"Yes"
|
|
3633
|
+
]
|
|
3634
|
+
}
|
|
3635
|
+
}
|
|
3636
|
+
}
|
|
3637
|
+
]
|
|
3501
3638
|
},
|
|
3502
3639
|
"solarPanels": {
|
|
3503
3640
|
"rdsRef": "Certificates",
|
|
3504
|
-
"title": "Solar panels"
|
|
3641
|
+
"title": "Solar panels",
|
|
3642
|
+
"discriminator": {
|
|
3643
|
+
"propertyName": "yesNo"
|
|
3644
|
+
},
|
|
3645
|
+
"oneOf": [
|
|
3646
|
+
{
|
|
3647
|
+
"properties": {
|
|
3648
|
+
"yesNo": {
|
|
3649
|
+
"enum": [
|
|
3650
|
+
"No"
|
|
3651
|
+
]
|
|
3652
|
+
}
|
|
3653
|
+
}
|
|
3654
|
+
},
|
|
3655
|
+
{
|
|
3656
|
+
"properties": {
|
|
3657
|
+
"yesNo": {
|
|
3658
|
+
"enum": [
|
|
3659
|
+
"Yes"
|
|
3660
|
+
]
|
|
3661
|
+
}
|
|
3662
|
+
}
|
|
3663
|
+
}
|
|
3664
|
+
]
|
|
3505
3665
|
},
|
|
3506
3666
|
"otherGuarantees": {
|
|
3507
3667
|
"rdsRef": "Certificates",
|
|
@@ -7,6 +7,9 @@
|
|
|
7
7
|
"materialFacts": {
|
|
8
8
|
"properties": {
|
|
9
9
|
"fixturesAndFittings": {
|
|
10
|
+
"ta10Ref": "0",
|
|
11
|
+
"title": "Fixtures and Fittings",
|
|
12
|
+
"description": "This is so a buyer’s offer can take into account whether you are taking something of value or leaving extra items. A full list will need to be completed after the sale is agreed.",
|
|
10
13
|
"required": [
|
|
11
14
|
"basicFittings",
|
|
12
15
|
"kitchen",
|