@pdtf/schemas 0.10.0 → 0.10.2

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pdtf/schemas",
3
- "version": "0.10.0",
3
+ "version": "0.10.2",
4
4
  "description": "Property Data Trust Framework Schemas and Utilities",
5
5
  "main": "index.js",
6
6
  "directories": {
@@ -454,14 +454,16 @@
454
454
  },
455
455
  "occupiers": {
456
456
  "sellerLivesAtProperty": { "yesNo": "Yes" },
457
- "hasOthersAgedOver17": "Yes",
457
+ "hasOthersAged17OrOver": "Yes",
458
458
  "aged17OrOverNames": [
459
459
  { "firstName": "Freya", "lastName": "Jones", "age": 21 }
460
460
  ],
461
461
  "aged17OrOverTenantsOrLodgers": { "yesNo": "No" },
462
- "soldWithVacantPosesssion": "Yes",
463
- "aged17OrOverAgreedToLeave": { "yesNo": "Yes" },
464
- "over17sWillSignToConfirmWillVacate": { "yesNo": "Yes" }
462
+ "vacantPossession": {
463
+ "soldWithVacantPossession": "Yes",
464
+ "aged17OrOverAgreedToLeave": { "yesNo": "Yes" },
465
+ "aged17OrOverWillSignToConfirmWillVacate": { "yesNo": "Yes" }
466
+ }
465
467
  },
466
468
  "completionAndMoving": {
467
469
  "willRemoveAllRubbish": true,
@@ -574,7 +574,7 @@
574
574
  "lawSocietyRef": "TA6/11",
575
575
  "title": "Occupiers",
576
576
  "type": "object",
577
- "required": ["sellerLivesAtProperty", "hasOthersAgedOver17"],
577
+ "required": ["sellerLivesAtProperty", "hasOthersAged17OrOver"],
578
578
  "properties": {
579
579
  "sellerLivesAtProperty": {
580
580
  "baspiRef": "B6.1",
@@ -583,7 +583,7 @@
583
583
  "title": "Does the seller live at the property?",
584
584
  "$ref": "#/$defs/yesNo"
585
585
  },
586
- "hasOthersAgedOver17": {
586
+ "hasOthersAged17OrOver": {
587
587
  "baspiRef": "B6.2",
588
588
  "RDSRef": "Participants",
589
589
  "lawSocietyRef": "TA6/11.2",
@@ -592,13 +592,12 @@
592
592
  "enum": ["Yes", "No"]
593
593
  }
594
594
  },
595
-
596
595
  "dependencies": {
597
- "hasOthersAgedOver17": {
596
+ "hasOthersAged17OrOver": {
598
597
  "oneOf": [
599
598
  {
600
599
  "properties": {
601
- "hasOthersAgedOver17": {
600
+ "hasOthersAged17OrOver": {
602
601
  "enum": ["No"]
603
602
  }
604
603
  },
@@ -606,7 +605,7 @@
606
605
  },
607
606
  {
608
607
  "properties": {
609
- "hasOthersAgedOver17": {
608
+ "hasOthersAged17OrOver": {
610
609
  "enum": ["Yes"]
611
610
  },
612
611
  "aged17OrOverNames": {
@@ -646,54 +645,64 @@
646
645
  "title": "Are any of them tenants or lodgers?",
647
646
  "$ref": "#/$defs/yesNo"
648
647
  },
649
- "soldWithVacantPosesssion": {
648
+ "vacantPossession": {
650
649
  "lawSocietyRef": "TA6/11.5",
651
- "type": "string",
652
- "title": "Is the property being sold with vacant possession?",
653
- "enum": ["Yes", "No"]
650
+ "type": "object",
651
+ "required": ["soldWithVacantPossession"],
652
+ "properties": {
653
+ "soldWithVacantPossession": {
654
+ "type": "string",
655
+ "title": "Is the property being sold with vacant possession?",
656
+ "enum": ["Yes", "No"]
657
+ }
658
+ },
659
+ "dependencies": {
660
+ "soldWithVacantPossession": {
661
+ "oneOf": [
662
+ {
663
+ "properties": {
664
+ "soldWithVacantPossession": {
665
+ "enum": ["No"]
666
+ }
667
+ },
668
+ "additionalProperties": false
669
+ },
670
+ {
671
+ "properties": {
672
+ "soldWithVacantPossession": {
673
+ "enum": ["Yes"]
674
+ },
675
+ "aged17OrOverAgreedToLeave": {
676
+ "baspiRef": "B6.4",
677
+ "RDSRef": "RightsHolders,TenureAgreements,Notifications",
678
+ "lawSocietyRef": "TA6/11.5a",
679
+ "title": "Have all occupiers aged 17 or over agreed to leave prior to completion?",
680
+ "$ref": "#/$defs/yesNo"
681
+ },
682
+ "aged17OrOverWillSignToConfirmWillVacate": {
683
+ "baspiRef": "B6.4",
684
+ "RDSRef": "RightsHolders,TenureAgreements,Notifications",
685
+ "lawSocietyRef": "TA6/11.5b",
686
+ "title": "Have all occupiers aged 17 or over, agreed to sign the sale contract?",
687
+ "$ref": "#/$defs/yesNoDetailIfNo",
688
+ "description": "If 'No', please supply other evidence that the property will be vacant on completion."
689
+ }
690
+ },
691
+ "required": [
692
+ "aged17OrOverAgreedToLeave",
693
+ "aged17OrOverWillSignToConfirmWillVacate"
694
+ ]
695
+ }
696
+ ]
697
+ }
698
+ }
654
699
  }
655
700
  },
656
701
  "required": [
657
702
  "aged17OrOverNames",
658
703
  "aged17OrOverTenantsOrLodgers",
659
- "soldWithVacantPosesssion"
660
- ],
661
- "dependencies": {
662
- "soldWithVacantPosesssion": {
663
- "oneOf": [
664
- {
665
- "properties": {
666
- "soldWithVacantPosesssion": {
667
- "enum": ["No"]
668
- }
669
- },
670
- "additionalProperties": false
671
- },
672
- {
673
- "properties": {
674
- "soldWithVacantPosesssion": {
675
- "enum": ["Yes"]
676
- },
677
- "aged17OrOverAgreedToLeave": {
678
- "baspiRef": "B6.4",
679
- "RDSRef": "RightsHolders,TenureAgreements,Notifications",
680
- "lawSocietyRef": "TA6/11.5a",
681
- "title": "Have all occupiers aged 17 or over agreed to leave prior to completion?",
682
- "$ref": "#/$defs/yesNo"
683
- },
684
- "aged17OrOverWillSignToConfirmWillVacate": {
685
- "baspiRef": "B6.4",
686
- "RDSRef": "RightsHolders,TenureAgreements,Notifications",
687
- "lawSocietyRef": "TA6/11.5b",
688
- "title": "Have all occupiers aged 17 or over, agreed to sign the sale contract?",
689
- "$ref": "#/$defs/yesNoDetailIfNo",
690
- "description": "If 'No', please supply other evidence that the property will be vacant on completion."
691
- }
692
- }
693
- }
694
- ]
695
- }
696
- }
704
+ "vacantPossession"
705
+ ]
697
706
  }
698
707
  ]
699
708
  }
@@ -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"]