@pdtf/schemas 3.2.0-2 → 3.2.0-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.
@@ -587,6 +587,30 @@
587
587
  },
588
588
  "controlledParking": {
589
589
  "ntsRef": "B4.3",
590
+ "discriminator": {
591
+ "propertyName": "yesNo"
592
+ },
593
+ "oneOf": [
594
+ {
595
+ "properties": {
596
+ "yesNo": {
597
+ "enum": [
598
+ "No",
599
+ "Not known"
600
+ ]
601
+ }
602
+ }
603
+ },
604
+ {
605
+ "properties": {
606
+ "yesNo": {
607
+ "enum": [
608
+ "Yes"
609
+ ]
610
+ }
611
+ }
612
+ }
613
+ ],
590
614
  "required": [
591
615
  "yesNo"
592
616
  ],
@@ -1160,7 +1184,7 @@
1160
1184
  }
1161
1185
  }
1162
1186
  },
1163
- "otherSources": {
1187
+ "heatPump": {
1164
1188
  "ntsRef": "B3.8",
1165
1189
  "discriminator": {
1166
1190
  "propertyName": "yesNo"
@@ -1215,6 +1239,62 @@
1215
1239
  ]
1216
1240
  }
1217
1241
  }
1242
+ },
1243
+ "otherSources": {
1244
+ "ntsRef": "B3.9",
1245
+ "discriminator": {
1246
+ "propertyName": "yesNo"
1247
+ },
1248
+ "oneOf": [
1249
+ {
1250
+ "properties": {
1251
+ "yesNo": {
1252
+ "enum": [
1253
+ "No"
1254
+ ]
1255
+ }
1256
+ }
1257
+ },
1258
+ {
1259
+ "properties": {
1260
+ "yesNo": {
1261
+ "enum": [
1262
+ "Yes"
1263
+ ]
1264
+ },
1265
+ "details": {
1266
+ "ntsRef": "B3.9.2"
1267
+ }
1268
+ },
1269
+ "required": [
1270
+ "details"
1271
+ ]
1272
+ },
1273
+ {
1274
+ "properties": {
1275
+ "yesNo": {
1276
+ "enum": [
1277
+ "To be connected"
1278
+ ]
1279
+ },
1280
+ "details": {
1281
+ "ntsRef": "B3.9.2"
1282
+ }
1283
+ }
1284
+ }
1285
+ ],
1286
+ "required": [
1287
+ "yesNo"
1288
+ ],
1289
+ "properties": {
1290
+ "yesNo": {
1291
+ "ntsRef": "B3.9.1",
1292
+ "enum": [
1293
+ "Yes",
1294
+ "No"
1295
+ ]
1296
+ }
1297
+ }
1218
1298
  }
1219
1299
  }
1220
1300
  },
@@ -257,6 +257,30 @@
257
257
  },
258
258
  "controlledParking": {
259
259
  "ntslRef": "B4.3",
260
+ "discriminator": {
261
+ "propertyName": "yesNo"
262
+ },
263
+ "oneOf": [
264
+ {
265
+ "properties": {
266
+ "yesNo": {
267
+ "enum": [
268
+ "No",
269
+ "Not known"
270
+ ]
271
+ }
272
+ }
273
+ },
274
+ {
275
+ "properties": {
276
+ "yesNo": {
277
+ "enum": [
278
+ "Yes"
279
+ ]
280
+ }
281
+ }
282
+ }
283
+ ],
260
284
  "required": [
261
285
  "yesNo"
262
286
  ],
@@ -830,7 +854,7 @@
830
854
  }
831
855
  }
832
856
  },
833
- "otherSources": {
857
+ "heatPump": {
834
858
  "ntslRef": "B3.8",
835
859
  "discriminator": {
836
860
  "propertyName": "yesNo"
@@ -885,6 +909,62 @@
885
909
  ]
886
910
  }
887
911
  }
912
+ },
913
+ "otherSources": {
914
+ "ntslRef": "B3.9",
915
+ "discriminator": {
916
+ "propertyName": "yesNo"
917
+ },
918
+ "oneOf": [
919
+ {
920
+ "properties": {
921
+ "yesNo": {
922
+ "enum": [
923
+ "No"
924
+ ]
925
+ }
926
+ }
927
+ },
928
+ {
929
+ "properties": {
930
+ "yesNo": {
931
+ "enum": [
932
+ "Yes"
933
+ ]
934
+ },
935
+ "details": {
936
+ "ntslRef": "B3.9.2"
937
+ }
938
+ },
939
+ "required": [
940
+ "details"
941
+ ]
942
+ },
943
+ {
944
+ "properties": {
945
+ "yesNo": {
946
+ "enum": [
947
+ "To be connected"
948
+ ]
949
+ },
950
+ "details": {
951
+ "ntslRef": "B3.9.2"
952
+ }
953
+ }
954
+ }
955
+ ],
956
+ "required": [
957
+ "yesNo"
958
+ ],
959
+ "properties": {
960
+ "yesNo": {
961
+ "ntslRef": "B3.9.1",
962
+ "enum": [
963
+ "Yes",
964
+ "No"
965
+ ]
966
+ }
967
+ }
888
968
  }
889
969
  }
890
970
  },
@@ -37,16 +37,34 @@
37
37
  }
38
38
  },
39
39
  "propertyAddress": {
40
- "required": [
41
- "addressLine"
42
- ],
43
- "properties": {
44
- "postcodeZone": {
40
+ "oneOf": [
41
+ {
42
+ "items": {
43
+ "required": [
44
+ "addressLine"
45
+ ],
46
+ "properties": {
47
+ "postcodeZone": {
48
+ "required": [
49
+ "postcode"
50
+ ]
51
+ }
52
+ }
53
+ }
54
+ },
55
+ {
45
56
  "required": [
46
- "postcode"
47
- ]
57
+ "addressLine"
58
+ ],
59
+ "properties": {
60
+ "postcodeZone": {
61
+ "required": [
62
+ "postcode"
63
+ ]
64
+ }
65
+ }
48
66
  }
49
- }
67
+ ]
50
68
  },
51
69
  "title": {
52
70
  "required": [
@@ -3,38 +3,70 @@
3
3
  "$id": "https://trust.propdata.org.uk/schemas/v3/overlays/piq.json",
4
4
  "properties": {
5
5
  "participants": {
6
+ "piqRef": "B1",
6
7
  "items": {
7
- "properties": {
8
- "sellersCapacity": {
9
- "piqRef": "B1.3.1",
10
- "discriminator": {
11
- "propertyName": "capacity"
12
- },
13
- "oneOf": [
14
- {
15
- "properties": {
16
- "capacity": {
17
- "enum": [
18
- "Legal Owner",
19
- "Mortgagee in Possession"
20
- ]
21
- }
22
- }
8
+ "discriminator": {
9
+ "propertyName": "role"
10
+ },
11
+ "oneOf": [
12
+ {
13
+ "properties": {
14
+ "role": {
15
+ "enum": [
16
+ "Buyer",
17
+ "Seller's Conveyancer",
18
+ "Prospective Buyer",
19
+ "Buyer's Conveyancer",
20
+ "Estate Agent",
21
+ "Buyer's Agent",
22
+ "Surveyor",
23
+ "Mortgage Broker",
24
+ "Lender",
25
+ "Landlord",
26
+ "Tenant"
27
+ ]
28
+ }
29
+ }
30
+ },
31
+ {
32
+ "properties": {
33
+ "role": {
34
+ "enum": [
35
+ "Seller"
36
+ ]
23
37
  },
24
- {
25
- "properties": {
26
- "capacity": {
27
- "enum": [
28
- "Personal Representative for a Deceased Owner",
29
- "Under Power of Attorney",
30
- "Other"
31
- ]
38
+ "sellersCapacity": {
39
+ "piqRef": "B1.3.1",
40
+ "discriminator": {
41
+ "propertyName": "capacity"
42
+ },
43
+ "oneOf": [
44
+ {
45
+ "properties": {
46
+ "capacity": {
47
+ "enum": [
48
+ "Legal Owner",
49
+ "Mortgagee in Possession"
50
+ ]
51
+ }
52
+ }
53
+ },
54
+ {
55
+ "properties": {
56
+ "capacity": {
57
+ "enum": [
58
+ "Personal Representative for a Deceased Owner",
59
+ "Under Power of Attorney",
60
+ "Other"
61
+ ]
62
+ }
63
+ }
32
64
  }
33
- }
65
+ ]
34
66
  }
35
- ]
67
+ }
36
68
  }
37
- }
69
+ ]
38
70
  }
39
71
  },
40
72
  "propertyPack": {
@@ -1262,6 +1294,44 @@
1262
1294
  }
1263
1295
  ]
1264
1296
  },
1297
+ "heatPump": {
1298
+ "piqRef": "A7.1.19",
1299
+ "discriminator": {
1300
+ "propertyName": "yesNo"
1301
+ },
1302
+ "oneOf": [
1303
+ {
1304
+ "properties": {
1305
+ "yesNo": {
1306
+ "enum": [
1307
+ "No"
1308
+ ]
1309
+ }
1310
+ }
1311
+ },
1312
+ {
1313
+ "properties": {
1314
+ "yesNo": {
1315
+ "enum": [
1316
+ "Yes"
1317
+ ]
1318
+ }
1319
+ }
1320
+ },
1321
+ {
1322
+ "properties": {
1323
+ "yesNo": {
1324
+ "enum": [
1325
+ "To be connected"
1326
+ ]
1327
+ },
1328
+ "supplier": {
1329
+ "piqRef": "A7.1.20"
1330
+ }
1331
+ }
1332
+ }
1333
+ ]
1334
+ },
1265
1335
  "otherSources": {
1266
1336
  "piqRef": "A7.1.19",
1267
1337
  "discriminator": {
@@ -1674,158 +1744,151 @@
1674
1744
  },
1675
1745
  "insurance": {
1676
1746
  "properties": {
1677
- "isInsured": {
1678
- "piqRef": "A8.2"
1679
- }
1680
- },
1681
- "oneOf": [
1682
- null,
1683
- {
1747
+ "difficultiesObtainingInsurance": {
1748
+ "piqRef": "A8.1",
1684
1749
  "properties": {
1685
- "difficultiesObtainingInsurance": {
1686
- "piqRef": "A8.1",
1687
- "properties": {
1688
- "abnormalRiseInPremiums": {
1689
- "piqRef": "A8.1a",
1690
- "discriminator": {
1691
- "propertyName": "yesNo"
1692
- },
1693
- "oneOf": [
1694
- {
1695
- "properties": {
1696
- "yesNo": {
1697
- "enum": [
1698
- "No"
1699
- ]
1700
- }
1701
- }
1702
- },
1703
- {
1704
- "properties": {
1705
- "yesNo": {
1706
- "enum": [
1707
- "Yes"
1708
- ]
1709
- },
1710
- "details": {
1711
- "piqRef": "A8.1a1.1"
1712
- }
1713
- }
1714
- }
1715
- ],
1750
+ "abnormalRiseInPremiums": {
1751
+ "piqRef": "A8.1a",
1752
+ "discriminator": {
1753
+ "propertyName": "yesNo"
1754
+ },
1755
+ "oneOf": [
1756
+ {
1716
1757
  "properties": {
1717
1758
  "yesNo": {
1718
- "piqRef": "A8.1a1"
1759
+ "enum": [
1760
+ "No"
1761
+ ]
1719
1762
  }
1720
1763
  }
1721
1764
  },
1722
- "subjectToHighExcesses": {
1723
- "piqRef": "A8.1b",
1724
- "discriminator": {
1725
- "propertyName": "yesNo"
1726
- },
1727
- "oneOf": [
1728
- {
1729
- "properties": {
1730
- "yesNo": {
1731
- "enum": [
1732
- "No"
1733
- ]
1734
- }
1735
- }
1765
+ {
1766
+ "properties": {
1767
+ "yesNo": {
1768
+ "enum": [
1769
+ "Yes"
1770
+ ]
1736
1771
  },
1737
- {
1738
- "properties": {
1739
- "yesNo": {
1740
- "enum": [
1741
- "Yes"
1742
- ]
1743
- },
1744
- "details": {
1745
- "piqRef": "A8.1b2"
1746
- }
1747
- }
1772
+ "details": {
1773
+ "piqRef": "A8.1a1.1"
1748
1774
  }
1749
- ],
1775
+ }
1776
+ }
1777
+ ],
1778
+ "properties": {
1779
+ "yesNo": {
1780
+ "piqRef": "A8.1a1"
1781
+ }
1782
+ }
1783
+ },
1784
+ "subjectToHighExcesses": {
1785
+ "piqRef": "A8.1b",
1786
+ "discriminator": {
1787
+ "propertyName": "yesNo"
1788
+ },
1789
+ "oneOf": [
1790
+ {
1750
1791
  "properties": {
1751
1792
  "yesNo": {
1752
- "piqRef": "A8.1b1"
1793
+ "enum": [
1794
+ "No"
1795
+ ]
1753
1796
  }
1754
1797
  }
1755
1798
  },
1756
- "subjectToUnusualConditions": {
1757
- "piqRef": "A8.1c",
1758
- "discriminator": {
1759
- "propertyName": "yesNo"
1760
- },
1761
- "oneOf": [
1762
- {
1763
- "properties": {
1764
- "yesNo": {
1765
- "enum": [
1766
- "No"
1767
- ]
1768
- }
1769
- }
1799
+ {
1800
+ "properties": {
1801
+ "yesNo": {
1802
+ "enum": [
1803
+ "Yes"
1804
+ ]
1770
1805
  },
1771
- {
1772
- "properties": {
1773
- "yesNo": {
1774
- "enum": [
1775
- "Yes"
1776
- ]
1777
- },
1778
- "details": {
1779
- "piqRef": "A8.1c2"
1780
- }
1781
- }
1806
+ "details": {
1807
+ "piqRef": "A8.1b2"
1782
1808
  }
1783
- ],
1809
+ }
1810
+ }
1811
+ ],
1812
+ "properties": {
1813
+ "yesNo": {
1814
+ "piqRef": "A8.1b1"
1815
+ }
1816
+ }
1817
+ },
1818
+ "subjectToUnusualConditions": {
1819
+ "piqRef": "A8.1c",
1820
+ "discriminator": {
1821
+ "propertyName": "yesNo"
1822
+ },
1823
+ "oneOf": [
1824
+ {
1784
1825
  "properties": {
1785
1826
  "yesNo": {
1786
- "piqRef": "A8.1c1"
1827
+ "enum": [
1828
+ "No"
1829
+ ]
1787
1830
  }
1788
1831
  }
1789
1832
  },
1790
- "refused": {
1791
- "piqRef": "A8.1d",
1792
- "discriminator": {
1793
- "propertyName": "yesNo"
1794
- },
1795
- "oneOf": [
1796
- {
1797
- "properties": {
1798
- "yesNo": {
1799
- "enum": [
1800
- "No"
1801
- ]
1802
- }
1803
- }
1833
+ {
1834
+ "properties": {
1835
+ "yesNo": {
1836
+ "enum": [
1837
+ "Yes"
1838
+ ]
1804
1839
  },
1805
- {
1806
- "properties": {
1807
- "yesNo": {
1808
- "enum": [
1809
- "Yes"
1810
- ]
1811
- },
1812
- "details": {
1813
- "piqRef": "A8.1d2"
1814
- }
1815
- }
1840
+ "details": {
1841
+ "piqRef": "A8.1c2"
1816
1842
  }
1817
- ],
1843
+ }
1844
+ }
1845
+ ],
1846
+ "properties": {
1847
+ "yesNo": {
1848
+ "piqRef": "A8.1c1"
1849
+ }
1850
+ }
1851
+ },
1852
+ "refused": {
1853
+ "piqRef": "A8.1d",
1854
+ "discriminator": {
1855
+ "propertyName": "yesNo"
1856
+ },
1857
+ "oneOf": [
1858
+ {
1818
1859
  "properties": {
1819
1860
  "yesNo": {
1820
- "piqRef": "A8.1d1"
1861
+ "enum": [
1862
+ "No"
1863
+ ]
1821
1864
  }
1822
1865
  }
1866
+ },
1867
+ {
1868
+ "properties": {
1869
+ "yesNo": {
1870
+ "enum": [
1871
+ "Yes"
1872
+ ]
1873
+ },
1874
+ "details": {
1875
+ "piqRef": "A8.1d2"
1876
+ }
1877
+ }
1878
+ }
1879
+ ],
1880
+ "properties": {
1881
+ "yesNo": {
1882
+ "piqRef": "A8.1d1"
1823
1883
  }
1824
1884
  }
1825
1885
  }
1826
1886
  }
1887
+ },
1888
+ "isInsured": {
1889
+ "piqRef": "A8.2"
1827
1890
  }
1828
- ]
1891
+ }
1829
1892
  },
1830
1893
  "rightsAndInformalArrangements": {
1831
1894
  "properties": {