@pdtf/schemas 3.2.0-3 → 3.2.0-5

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 CHANGED
@@ -47,6 +47,7 @@ const overlaysMap = {
47
47
  rdsV333: require("./src/schemas/v3/overlays/rds.json"),
48
48
  oc1v21: require("./src/schemas/v3/overlays/oc1.json"),
49
49
  piqV3: require("./src/schemas/v3/overlays/piq.json"),
50
+ sr24: require("./src/schemas/v3/overlays/sr24.json"),
50
51
  null: {},
51
52
  },
52
53
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pdtf/schemas",
3
- "version": "3.2.0-3",
3
+ "version": "3.2.0-5",
4
4
  "description": "Property Data Trust Framework Schemas and Utilities",
5
5
  "main": "index.js",
6
6
  "directories": {
@@ -675,6 +675,11 @@
675
675
  "Modern Method of Auction",
676
676
  "Private treaty"
677
677
  ]
678
+ },
679
+ "saleAtUndervalue": {
680
+ "title": "Is the property being sold at undervalue?",
681
+ "type": "string",
682
+ "enum": ["Yes", "No"]
678
683
  }
679
684
  }
680
685
  },
@@ -757,46 +762,6 @@
757
762
  }
758
763
  }
759
764
  },
760
- "saleAtUndervalue": {
761
- "title": "Is the property being sold at undervalue?",
762
- "type": "string",
763
- "enum": ["Yes", "No"]
764
- },
765
- "hasHelpToBuyEquityLoan": {
766
- "title": "Is the property being sold with a Help to Buy equity loan outstanding?",
767
- "type": "string",
768
- "enum": ["Yes", "No"]
769
- },
770
- "isHMO": {
771
- "title": "Is the property a House in Multiple Occupation (HMO)?",
772
- "type": "string",
773
- "enum": ["Yes", "No"]
774
- },
775
- "isStudentAccommodation": {
776
- "title": "Is the property student accommodation?",
777
- "type": "string",
778
- "enum": ["Yes", "No"]
779
- },
780
- "numberOfSellers": {
781
- "title": "How many sellers are involved in the transaction?",
782
- "description": "This may differ from the number of legal owners, for example if the property is being sold by executors of a deceased owner",
783
- "type": "integer"
784
- },
785
- "numberOfNonUkResidentSellers": {
786
- "title": "How many sellers are involved in the transaction who are resident outside the UK?",
787
- "description": "This may differ from the number of legal owners, for example if the property is being sold by executors of a deceased owner",
788
- "type": "integer"
789
- },
790
- "isFirstRegistration": {
791
- "title": "Is this the first time the property is to be registered with HMLR?",
792
- "type": "string",
793
- "enum": ["Yes", "No"]
794
- },
795
- "isLimitedCompanySale": {
796
- "title": "Is the property being sold by a Limited Company?",
797
- "type": "string",
798
- "enum": ["Yes", "No"]
799
- },
800
765
  "buildInformation": {
801
766
  "ntsRef": "B1.1",
802
767
  "ntslRef": "B1.1",
@@ -998,6 +963,16 @@
998
963
  }
999
964
  }
1000
965
  },
966
+ "isHMO": {
967
+ "title": "Is the property a House in Multiple Occupation (HMO)?",
968
+ "type": "string",
969
+ "enum": ["Yes", "No"]
970
+ },
971
+ "isStudentAccommodation": {
972
+ "title": "Is the property student accommodation?",
973
+ "type": "string",
974
+ "enum": ["Yes", "No"]
975
+ },
1001
976
  "roomDimensions": {
1002
977
  "ntsRef": "B2",
1003
978
  "ntslRef": "B2",
@@ -1538,6 +1513,31 @@
1538
1513
  "ntsRequired": ["ownershipsToBeTransferred"],
1539
1514
  "ta7Required": ["ownershipsToBeTransferred"],
1540
1515
  "properties": {
1516
+ "numberOfSellers": {
1517
+ "title": "How many sellers are involved in the transaction?",
1518
+ "description": "This may differ from the number of legal owners, for example if the property is being sold by executors of a deceased owner",
1519
+ "type": "integer"
1520
+ },
1521
+ "numberOfNonUkResidentSellers": {
1522
+ "title": "How many sellers are involved in the transaction who are resident outside the UK?",
1523
+ "description": "This may differ from the number of legal owners, for example if the property is being sold by executors of a deceased owner",
1524
+ "type": "integer"
1525
+ },
1526
+ "hasHelpToBuyEquityLoan": {
1527
+ "title": "Is the property being sold with a Help to Buy equity loan outstanding?",
1528
+ "type": "string",
1529
+ "enum": ["Yes", "No"]
1530
+ },
1531
+ "isFirstRegistration": {
1532
+ "title": "Is this the first time the property is to be registered with HMLR?",
1533
+ "type": "string",
1534
+ "enum": ["Yes", "No"]
1535
+ },
1536
+ "isLimitedCompanySale": {
1537
+ "title": "Is the property being sold by a Limited Company?",
1538
+ "type": "string",
1539
+ "enum": ["Yes", "No"]
1540
+ },
1541
1541
  "ownershipsToBeTransferred": {
1542
1542
  "baspi4Ref": "A1.3",
1543
1543
  "baspi5Ref": "A1.3",
@@ -19603,7 +19603,9 @@
19603
19603
  },
19604
19604
  "consequentialChargingBasis": {
19605
19605
  "con29DWRef": "4.5",
19606
- "title": "Will the basis for charging for sewerage and water services at the property change as a consequence of a change of occupation?"
19606
+ "title": "Will the basis for charging for sewerage and water services at the property change as a consequence of a change of occupation?",
19607
+ "type": "string",
19608
+ "minLength": 1
19607
19609
  }
19608
19610
  },
19609
19611
  "con29DWRequired": [
@@ -25841,6 +25843,23 @@
25841
25843
  }
25842
25844
  }
25843
25845
  },
25846
+ "saleReadyDeclarations": {
25847
+ "sr24Ref": "1",
25848
+ "title": "Confirmations to be supplied to confirm Sale Ready status",
25849
+ "type": "object",
25850
+ "properties": {
25851
+ "authorisedToActOnBehalfOfAllSellers": {
25852
+ "sr24Ref": "1.1",
25853
+ "title": "I/we confirm that I am/we are authorised to supply data and documents in relation to this property on behalf of all the owners of the property",
25854
+ "type": "boolean"
25855
+ },
25856
+ "authorisationToShare": {
25857
+ "sr24Ref": "1.2",
25858
+ "title": "I/we consent to the sharing of the information contained in the Sale Ready pack with the my/our legal representative and the buyer(s) and their legal representatives",
25859
+ "type": "boolean"
25860
+ }
25861
+ }
25862
+ },
25844
25863
  "localSearches": {
25845
25864
  "title": "Result of local searches, including Local Land Charges and CON29R",
25846
25865
  "type": "object",
@@ -38304,7 +38323,7 @@
38304
38323
  }
38305
38324
  }
38306
38325
  }
38307
- },
38326
+ },
38308
38327
  "additionalDocuments": {
38309
38328
  "title": "Additional documents referred to in title register",
38310
38329
  "type": "array",
@@ -0,0 +1,21 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://trust.propdata.org.uk/schemas/v3/overlays/sr24.json",
4
+ "properties": {
5
+ "propertyPack": {
6
+ "properties": {
7
+ "saleReadyDeclarations": {
8
+ "sr24Ref": "1",
9
+ "properties": {
10
+ "authorisedToActOnBehalfOfAllSellers": {
11
+ "sr24Ref": "1.1"
12
+ },
13
+ "authorisationToShare": {
14
+ "sr24Ref": "1.2"
15
+ }
16
+ }
17
+ }
18
+ }
19
+ }
20
+ }
21
+ }
@@ -485,6 +485,14 @@
485
485
  "Modern Method of Auction",
486
486
  "Private treaty"
487
487
  ]
488
+ },
489
+ "saleAtUndervalue": {
490
+ "title": "Is the property being sold at undervalue?",
491
+ "type": "string",
492
+ "enum": [
493
+ "Yes",
494
+ "No"
495
+ ]
488
496
  }
489
497
  }
490
498
  },
@@ -563,64 +571,6 @@
563
571
  }
564
572
  }
565
573
  },
566
- "saleAtUndervalue": {
567
- "title": "Is the property being sold at undervalue?",
568
- "type": "string",
569
- "enum": [
570
- "Yes",
571
- "No"
572
- ]
573
- },
574
- "hasHelpToBuyEquityLoan": {
575
- "title": "Is the property being sold with a Help to Buy equity loan outstanding?",
576
- "type": "string",
577
- "enum": [
578
- "Yes",
579
- "No"
580
- ]
581
- },
582
- "isHMO": {
583
- "title": "Is the property a House in Multiple Occupation (HMO)?",
584
- "type": "string",
585
- "enum": [
586
- "Yes",
587
- "No"
588
- ]
589
- },
590
- "isStudentAccommodation": {
591
- "title": "Is the property student accommodation?",
592
- "type": "string",
593
- "enum": [
594
- "Yes",
595
- "No"
596
- ]
597
- },
598
- "numberOfSellers": {
599
- "title": "How many sellers are involved in the transaction?",
600
- "description": "This may differ from the number of legal owners, for example if the property is being sold by executors of a deceased owner",
601
- "type": "integer"
602
- },
603
- "numberOfNonUkResidentSellers": {
604
- "title": "How many sellers are involved in the transaction who are resident outside the UK?",
605
- "description": "This may differ from the number of legal owners, for example if the property is being sold by executors of a deceased owner",
606
- "type": "integer"
607
- },
608
- "isFirstRegistration": {
609
- "title": "Is this the first time the property is to be registered with HMLR?",
610
- "type": "string",
611
- "enum": [
612
- "Yes",
613
- "No"
614
- ]
615
- },
616
- "isLimitedCompanySale": {
617
- "title": "Is the property being sold by a Limited Company?",
618
- "type": "string",
619
- "enum": [
620
- "Yes",
621
- "No"
622
- ]
623
- },
624
574
  "buildInformation": {
625
575
  "title": "About the property building",
626
576
  "type": "object",
@@ -785,6 +735,22 @@
785
735
  }
786
736
  }
787
737
  },
738
+ "isHMO": {
739
+ "title": "Is the property a House in Multiple Occupation (HMO)?",
740
+ "type": "string",
741
+ "enum": [
742
+ "Yes",
743
+ "No"
744
+ ]
745
+ },
746
+ "isStudentAccommodation": {
747
+ "title": "Is the property student accommodation?",
748
+ "type": "string",
749
+ "enum": [
750
+ "Yes",
751
+ "No"
752
+ ]
753
+ },
788
754
  "roomDimensions": {
789
755
  "title": "Room dimensions",
790
756
  "type": "object",
@@ -1317,6 +1283,40 @@
1317
1283
  "title": "Ownership",
1318
1284
  "type": "object",
1319
1285
  "properties": {
1286
+ "numberOfSellers": {
1287
+ "title": "How many sellers are involved in the transaction?",
1288
+ "description": "This may differ from the number of legal owners, for example if the property is being sold by executors of a deceased owner",
1289
+ "type": "integer"
1290
+ },
1291
+ "numberOfNonUkResidentSellers": {
1292
+ "title": "How many sellers are involved in the transaction who are resident outside the UK?",
1293
+ "description": "This may differ from the number of legal owners, for example if the property is being sold by executors of a deceased owner",
1294
+ "type": "integer"
1295
+ },
1296
+ "hasHelpToBuyEquityLoan": {
1297
+ "title": "Is the property being sold with a Help to Buy equity loan outstanding?",
1298
+ "type": "string",
1299
+ "enum": [
1300
+ "Yes",
1301
+ "No"
1302
+ ]
1303
+ },
1304
+ "isFirstRegistration": {
1305
+ "title": "Is this the first time the property is to be registered with HMLR?",
1306
+ "type": "string",
1307
+ "enum": [
1308
+ "Yes",
1309
+ "No"
1310
+ ]
1311
+ },
1312
+ "isLimitedCompanySale": {
1313
+ "title": "Is the property being sold by a Limited Company?",
1314
+ "type": "string",
1315
+ "enum": [
1316
+ "Yes",
1317
+ "No"
1318
+ ]
1319
+ },
1320
1320
  "ownershipsToBeTransferred": {
1321
1321
  "title": "Ownerships to be transferred on sale",
1322
1322
  "type": "array",
@@ -16752,7 +16752,9 @@
16752
16752
  "minLength": 1
16753
16753
  },
16754
16754
  "consequentialChargingBasis": {
16755
- "title": "Will the basis for charging for sewerage and water services at the property change as a consequence of a change of occupation?"
16755
+ "title": "Will the basis for charging for sewerage and water services at the property change as a consequence of a change of occupation?",
16756
+ "type": "string",
16757
+ "minLength": 1
16756
16758
  }
16757
16759
  }
16758
16760
  }
@@ -21615,6 +21617,20 @@
21615
21617
  }
21616
21618
  }
21617
21619
  },
21620
+ "saleReadyDeclarations": {
21621
+ "title": "Confirmations to be supplied to confirm Sale Ready status",
21622
+ "type": "object",
21623
+ "properties": {
21624
+ "authorisedToActOnBehalfOfAllSellers": {
21625
+ "title": "I/we confirm that I am/we are authorised to supply data and documents in relation to this property on behalf of all the owners of the property",
21626
+ "type": "boolean"
21627
+ },
21628
+ "authorisationToShare": {
21629
+ "title": "I/we consent to the sharing of the information contained in the Sale Ready pack with the my/our legal representative and the buyer(s) and their legal representatives",
21630
+ "type": "boolean"
21631
+ }
21632
+ }
21633
+ },
21618
21634
  "localSearches": {
21619
21635
  "title": "Result of local searches, including Local Land Charges and CON29R",
21620
21636
  "type": "object",
@@ -78,7 +78,8 @@
78
78
  "priceInformation": {
79
79
  "price": {},
80
80
  "priceQualifier": {},
81
- "disposal": {}
81
+ "disposal": {},
82
+ "saleAtUndervalue": {}
82
83
  },
83
84
  "lettingInformation": {
84
85
  "rent": {},
@@ -93,14 +94,6 @@
93
94
  "mediaUrl": {},
94
95
  "caption": {}
95
96
  },
96
- "saleAtUndervalue": {},
97
- "hasHelpToBuyEquityLoan": {},
98
- "isHMO": {},
99
- "isStudentAccommodation": {},
100
- "numberOfSellers": {},
101
- "numberOfNonUkResidentSellers": {},
102
- "isFirstRegistration": {},
103
- "isLimitedCompanySale": {},
104
97
  "buildInformation": {
105
98
  "building": {
106
99
  "builtForm": {},
@@ -122,6 +115,8 @@
122
115
  "isNewBuild": {
123
116
  "yesNo": {}
124
117
  },
118
+ "isHMO": {},
119
+ "isStudentAccommodation": {},
125
120
  "roomDimensions": {
126
121
  "hasFloorplan": {},
127
122
  "attachments": {},
@@ -210,6 +205,11 @@
210
205
  }
211
206
  },
212
207
  "ownership": {
208
+ "numberOfSellers": {},
209
+ "numberOfNonUkResidentSellers": {},
210
+ "hasHelpToBuyEquityLoan": {},
211
+ "isFirstRegistration": {},
212
+ "isLimitedCompanySale": {},
213
213
  "ownershipsToBeTransferred": {
214
214
  "titleNumber": {},
215
215
  "ownershipType": {},
@@ -2807,6 +2807,10 @@
2807
2807
  "confirmWillProvideAdditionalDocumentation": {},
2808
2808
  "confirmInformationIsAccurate": {}
2809
2809
  },
2810
+ "saleReadyDeclarations": {
2811
+ "authorisedToActOnBehalfOfAllSellers": {},
2812
+ "authorisationToShare": {}
2813
+ },
2810
2814
  "localSearches": {
2811
2815
  "localLandCharges": {
2812
2816
  "hmlrReference": {},
@@ -22,6 +22,7 @@ const extractFields = [
22
22
  "llc1",
23
23
  "rds",
24
24
  "oc1",
25
+ "sr24",
25
26
  ];
26
27
 
27
28
  const flattenSkeleton = (schema) => {