@pdtf/schemas 0.10.0 → 0.10.1-b
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
CHANGED
|
@@ -454,14 +454,18 @@
|
|
|
454
454
|
},
|
|
455
455
|
"occupiers": {
|
|
456
456
|
"sellerLivesAtProperty": { "yesNo": "Yes" },
|
|
457
|
-
"
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
457
|
+
"othersAged17OrOver": {
|
|
458
|
+
"hasOthersAged17OrOver": "Yes",
|
|
459
|
+
"aged17OrOverNames": [
|
|
460
|
+
{ "firstName": "Freya", "lastName": "Jones", "age": 21 }
|
|
461
|
+
],
|
|
462
|
+
"aged17OrOverTenantsOrLodgers": { "yesNo": "No" },
|
|
463
|
+
"vacantPossession": {
|
|
464
|
+
"soldWithVacantPossession": "Yes",
|
|
465
|
+
"aged17OrOverAgreedToLeave": { "yesNo": "Yes" },
|
|
466
|
+
"aged17OrOverWillSignToConfirmWillVacate": { "yesNo": "Yes" }
|
|
467
|
+
}
|
|
468
|
+
}
|
|
465
469
|
},
|
|
466
470
|
"completionAndMoving": {
|
|
467
471
|
"willRemoveAllRubbish": true,
|
|
@@ -574,7 +574,7 @@
|
|
|
574
574
|
"lawSocietyRef": "TA6/11",
|
|
575
575
|
"title": "Occupiers",
|
|
576
576
|
"type": "object",
|
|
577
|
-
"required": ["sellerLivesAtProperty", "
|
|
577
|
+
"required": ["sellerLivesAtProperty", "othersAged17OrOver"],
|
|
578
578
|
"properties": {
|
|
579
579
|
"sellerLivesAtProperty": {
|
|
580
580
|
"baspiRef": "B6.1",
|
|
@@ -583,119 +583,137 @@
|
|
|
583
583
|
"title": "Does the seller live at the property?",
|
|
584
584
|
"$ref": "#/$defs/yesNo"
|
|
585
585
|
},
|
|
586
|
-
"
|
|
586
|
+
"othersAged17OrOver": {
|
|
587
587
|
"baspiRef": "B6.2",
|
|
588
588
|
"RDSRef": "Participants",
|
|
589
589
|
"lawSocietyRef": "TA6/11.2",
|
|
590
|
-
"
|
|
591
|
-
"
|
|
592
|
-
"
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
590
|
+
"type": "object",
|
|
591
|
+
"required": ["hasOthersAged17OrOver"],
|
|
592
|
+
"properties": {
|
|
593
|
+
"hasOthersAged17OrOver": {
|
|
594
|
+
"baspiRef": "B6.2",
|
|
595
|
+
"RDSRef": "Participants",
|
|
596
|
+
"lawSocietyRef": "TA6/11.2",
|
|
597
|
+
"title": "Does anyone else, aged 17 or over, live at the property?",
|
|
598
|
+
"type": "string",
|
|
599
|
+
"enum": ["Yes", "No"]
|
|
600
|
+
}
|
|
601
|
+
},
|
|
602
|
+
"dependencies": {
|
|
603
|
+
"hasOthersAged17OrOver": {
|
|
604
|
+
"oneOf": [
|
|
605
|
+
{
|
|
606
|
+
"properties": {
|
|
607
|
+
"hasOthersAged17OrOver": {
|
|
608
|
+
"enum": ["No"]
|
|
609
|
+
}
|
|
610
|
+
},
|
|
611
|
+
"additionalProperties": false
|
|
611
612
|
},
|
|
612
|
-
|
|
613
|
-
"
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
"
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
"
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
613
|
+
{
|
|
614
|
+
"properties": {
|
|
615
|
+
"hasOthersAged17OrOver": {
|
|
616
|
+
"enum": ["Yes"]
|
|
617
|
+
},
|
|
618
|
+
"aged17OrOverNames": {
|
|
619
|
+
"lawSocietyRef": "TA6/11.3",
|
|
620
|
+
"title": "Please specify their full names and ages.",
|
|
621
|
+
"type": "array",
|
|
622
|
+
"minItems": 1,
|
|
623
|
+
"items": {
|
|
624
|
+
"type": "object",
|
|
625
|
+
"properties": {
|
|
626
|
+
"firstName": {
|
|
627
|
+
"title": "First Name",
|
|
628
|
+
"type": "string",
|
|
629
|
+
"minLength": 1
|
|
630
|
+
},
|
|
631
|
+
"middleNames": {
|
|
632
|
+
"title": "Middle name(s) if any",
|
|
633
|
+
"type": "string"
|
|
634
|
+
},
|
|
635
|
+
"lastName": {
|
|
636
|
+
"title": "Last Name",
|
|
637
|
+
"type": "string",
|
|
638
|
+
"minLength": 1
|
|
639
|
+
},
|
|
640
|
+
"age": {
|
|
641
|
+
"title": "Age",
|
|
642
|
+
"type": "integer"
|
|
643
|
+
}
|
|
644
|
+
},
|
|
645
|
+
"required": ["firstName", "lastName", "age"]
|
|
637
646
|
}
|
|
638
647
|
},
|
|
639
|
-
"
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
"lawSocietyRef": "TA6/11.5",
|
|
651
|
-
"type": "string",
|
|
652
|
-
"title": "Is the property being sold with vacant possession?",
|
|
653
|
-
"enum": ["Yes", "No"]
|
|
654
|
-
}
|
|
655
|
-
},
|
|
656
|
-
"required": [
|
|
657
|
-
"aged17OrOverNames",
|
|
658
|
-
"aged17OrOverTenantsOrLodgers",
|
|
659
|
-
"soldWithVacantPosesssion"
|
|
660
|
-
],
|
|
661
|
-
"dependencies": {
|
|
662
|
-
"soldWithVacantPosesssion": {
|
|
663
|
-
"oneOf": [
|
|
664
|
-
{
|
|
648
|
+
"aged17OrOverTenantsOrLodgers": {
|
|
649
|
+
"baspiRef": "B6.1",
|
|
650
|
+
"RDSRef": "Property/Flags",
|
|
651
|
+
"lawSocietyRef": "TA6/11.4",
|
|
652
|
+
"title": "Are any of them tenants or lodgers?",
|
|
653
|
+
"$ref": "#/$defs/yesNo"
|
|
654
|
+
},
|
|
655
|
+
"vacantPossession": {
|
|
656
|
+
"lawSocietyRef": "TA6/11.5",
|
|
657
|
+
"type": "object",
|
|
658
|
+
"required": ["soldWithVacantPossession"],
|
|
665
659
|
"properties": {
|
|
666
|
-
"
|
|
667
|
-
"
|
|
660
|
+
"soldWithVacantPossession": {
|
|
661
|
+
"type": "string",
|
|
662
|
+
"title": "Is the property being sold with vacant possession?",
|
|
663
|
+
"enum": ["Yes", "No"]
|
|
668
664
|
}
|
|
669
665
|
},
|
|
670
|
-
"
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
666
|
+
"dependencies": {
|
|
667
|
+
"soldWithVacantPossession": {
|
|
668
|
+
"oneOf": [
|
|
669
|
+
{
|
|
670
|
+
"properties": {
|
|
671
|
+
"soldWithVacantPossession": {
|
|
672
|
+
"enum": ["No"]
|
|
673
|
+
}
|
|
674
|
+
},
|
|
675
|
+
"additionalProperties": false
|
|
676
|
+
},
|
|
677
|
+
{
|
|
678
|
+
"properties": {
|
|
679
|
+
"soldWithVacantPossession": {
|
|
680
|
+
"enum": ["Yes"]
|
|
681
|
+
},
|
|
682
|
+
"aged17OrOverAgreedToLeave": {
|
|
683
|
+
"baspiRef": "B6.4",
|
|
684
|
+
"RDSRef": "RightsHolders,TenureAgreements,Notifications",
|
|
685
|
+
"lawSocietyRef": "TA6/11.5a",
|
|
686
|
+
"title": "Have all occupiers aged 17 or over agreed to leave prior to completion?",
|
|
687
|
+
"$ref": "#/$defs/yesNo"
|
|
688
|
+
},
|
|
689
|
+
"aged17OrOverWillSignToConfirmWillVacate": {
|
|
690
|
+
"baspiRef": "B6.4",
|
|
691
|
+
"RDSRef": "RightsHolders,TenureAgreements,Notifications",
|
|
692
|
+
"lawSocietyRef": "TA6/11.5b",
|
|
693
|
+
"title": "Have all occupiers aged 17 or over, agreed to sign the sale contract?",
|
|
694
|
+
"$ref": "#/$defs/yesNoDetailIfNo",
|
|
695
|
+
"description": "If 'No', please supply other evidence that the property will be vacant on completion."
|
|
696
|
+
}
|
|
697
|
+
},
|
|
698
|
+
"required": [
|
|
699
|
+
"aged17OrOverAgreedToLeave",
|
|
700
|
+
"aged17OrOverWillSignToConfirmWillVacate"
|
|
701
|
+
]
|
|
702
|
+
}
|
|
703
|
+
]
|
|
691
704
|
}
|
|
692
705
|
}
|
|
693
706
|
}
|
|
707
|
+
},
|
|
708
|
+
"required": [
|
|
709
|
+
"aged17OrOverNames",
|
|
710
|
+
"aged17OrOverTenantsOrLodgers",
|
|
711
|
+
"vacantPossession"
|
|
694
712
|
]
|
|
695
713
|
}
|
|
696
|
-
|
|
714
|
+
]
|
|
697
715
|
}
|
|
698
|
-
|
|
716
|
+
}
|
|
699
717
|
}
|
|
700
718
|
}
|
|
701
719
|
},
|
|
@@ -1639,6 +1639,7 @@
|
|
|
1639
1639
|
},
|
|
1640
1640
|
"hasBeenFlooded": {
|
|
1641
1641
|
"title": "Has any part of the property (whether buildings or surrounding garden or land) ever been flooded?",
|
|
1642
|
+
"description": "If yes, please state when the flooding occurred and identify the parts that flooded",
|
|
1642
1643
|
"lawSocietyRef": "TA6/7.2",
|
|
1643
1644
|
"type": "string",
|
|
1644
1645
|
"enum": ["Yes", "No"]
|
|
@@ -2125,7 +2126,6 @@
|
|
|
2125
2126
|
},
|
|
2126
2127
|
"address": {
|
|
2127
2128
|
"title": "Address",
|
|
2128
|
-
|
|
2129
2129
|
"type": "string",
|
|
2130
2130
|
"minLength": 1
|
|
2131
2131
|
}
|
|
@@ -184,7 +184,7 @@ test("correctly gets titles across schemas, arrays and non-existient title prope
|
|
|
184
184
|
expect(
|
|
185
185
|
getTitleAtPath(
|
|
186
186
|
transactionSchema,
|
|
187
|
-
"/propertyPack/additionalLegalInfo/occupiers/aged17OrOverNames/0/firstName"
|
|
187
|
+
"/propertyPack/additionalLegalInfo/occupiers/othersAged17OrOver/aged17OrOverNames/0/firstName"
|
|
188
188
|
)
|
|
189
189
|
).toBe("First Name");
|
|
190
190
|
});
|