@pdtf/schemas 0.10.2 → 0.10.3
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,15 +454,17 @@
|
|
|
454
454
|
},
|
|
455
455
|
"occupiers": {
|
|
456
456
|
"sellerLivesAtProperty": { "yesNo": "Yes" },
|
|
457
|
-
"
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
"
|
|
464
|
-
|
|
465
|
-
|
|
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
|
+
}
|
|
466
468
|
}
|
|
467
469
|
},
|
|
468
470
|
"completionAndMoving": {
|
|
@@ -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,128 +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
|
-
"properties": {
|
|
608
|
-
"hasOthersAged17OrOver": {
|
|
609
|
-
"enum": ["Yes"]
|
|
610
|
-
},
|
|
611
|
-
"aged17OrOverNames": {
|
|
612
|
-
"lawSocietyRef": "TA6/11.3",
|
|
613
|
-
"title": "Please specify their full names and ages.",
|
|
614
|
-
"type": "array",
|
|
615
|
-
"minItems": 1,
|
|
616
|
-
"items": {
|
|
617
|
-
"type": "object",
|
|
618
|
-
"properties": {
|
|
619
|
-
"firstName": {
|
|
620
|
-
"title": "First Name",
|
|
621
|
-
"type": "string",
|
|
622
|
-
"minLength": 1
|
|
623
|
-
},
|
|
624
|
-
"middleNames": {
|
|
625
|
-
"title": "Middle name(s) if any",
|
|
626
|
-
"type": "string"
|
|
627
|
-
},
|
|
628
|
-
"lastName": {
|
|
629
|
-
"title": "Last Name",
|
|
630
|
-
"type": "string",
|
|
631
|
-
"minLength": 1
|
|
632
|
-
},
|
|
633
|
-
"age": {
|
|
634
|
-
"title": "Age",
|
|
635
|
-
"type": "integer"
|
|
636
|
-
}
|
|
637
|
-
},
|
|
638
|
-
"required": ["firstName", "lastName", "age"]
|
|
639
|
-
}
|
|
640
|
-
},
|
|
641
|
-
"aged17OrOverTenantsOrLodgers": {
|
|
642
|
-
"baspiRef": "B6.1",
|
|
643
|
-
"RDSRef": "Property/Flags",
|
|
644
|
-
"lawSocietyRef": "TA6/11.4",
|
|
645
|
-
"title": "Are any of them tenants or lodgers?",
|
|
646
|
-
"$ref": "#/$defs/yesNo"
|
|
647
|
-
},
|
|
648
|
-
"vacantPossession": {
|
|
649
|
-
"lawSocietyRef": "TA6/11.5",
|
|
650
|
-
"type": "object",
|
|
651
|
-
"required": ["soldWithVacantPossession"],
|
|
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
|
+
{
|
|
652
606
|
"properties": {
|
|
653
|
-
"
|
|
654
|
-
"
|
|
655
|
-
"title": "Is the property being sold with vacant possession?",
|
|
656
|
-
"enum": ["Yes", "No"]
|
|
607
|
+
"hasOthersAged17OrOver": {
|
|
608
|
+
"enum": ["No"]
|
|
657
609
|
}
|
|
658
610
|
},
|
|
659
|
-
"
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
611
|
+
"additionalProperties": false
|
|
612
|
+
},
|
|
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"
|
|
667
634
|
},
|
|
668
|
-
"
|
|
635
|
+
"lastName": {
|
|
636
|
+
"title": "Last Name",
|
|
637
|
+
"type": "string",
|
|
638
|
+
"minLength": 1
|
|
639
|
+
},
|
|
640
|
+
"age": {
|
|
641
|
+
"title": "Age",
|
|
642
|
+
"type": "integer"
|
|
643
|
+
}
|
|
669
644
|
},
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
645
|
+
"required": ["firstName", "lastName", "age"]
|
|
646
|
+
}
|
|
647
|
+
},
|
|
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"],
|
|
659
|
+
"properties": {
|
|
660
|
+
"soldWithVacantPossession": {
|
|
661
|
+
"type": "string",
|
|
662
|
+
"title": "Is the property being sold with vacant possession?",
|
|
663
|
+
"enum": ["Yes", "No"]
|
|
664
|
+
}
|
|
665
|
+
},
|
|
666
|
+
"dependencies": {
|
|
667
|
+
"soldWithVacantPossession": {
|
|
668
|
+
"oneOf": [
|
|
669
|
+
{
|
|
670
|
+
"properties": {
|
|
671
|
+
"soldWithVacantPossession": {
|
|
672
|
+
"enum": ["No"]
|
|
673
|
+
}
|
|
674
|
+
},
|
|
675
|
+
"additionalProperties": false
|
|
681
676
|
},
|
|
682
|
-
|
|
683
|
-
"
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
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
|
+
]
|
|
689
702
|
}
|
|
690
|
-
},
|
|
691
|
-
"required": [
|
|
692
|
-
"aged17OrOverAgreedToLeave",
|
|
693
|
-
"aged17OrOverWillSignToConfirmWillVacate"
|
|
694
703
|
]
|
|
695
704
|
}
|
|
696
|
-
|
|
705
|
+
}
|
|
697
706
|
}
|
|
698
|
-
}
|
|
707
|
+
},
|
|
708
|
+
"required": [
|
|
709
|
+
"aged17OrOverNames",
|
|
710
|
+
"aged17OrOverTenantsOrLodgers",
|
|
711
|
+
"vacantPossession"
|
|
712
|
+
]
|
|
699
713
|
}
|
|
700
|
-
},
|
|
701
|
-
"required": [
|
|
702
|
-
"aged17OrOverNames",
|
|
703
|
-
"aged17OrOverTenantsOrLodgers",
|
|
704
|
-
"vacantPossession"
|
|
705
714
|
]
|
|
706
715
|
}
|
|
707
|
-
|
|
716
|
+
}
|
|
708
717
|
}
|
|
709
718
|
}
|
|
710
719
|
},
|
|
@@ -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
|
});
|