@pdtf/schemas 3.0.0-20 → 3.0.0-22

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.
@@ -37,8 +37,7 @@
37
37
  "waterMainsWithinBoundaries",
38
38
  "waterMainsSubjectOfAdoptionAgreement",
39
39
  "lowWaterPressureRisk",
40
- "waterQualityAnalysis",
41
- "waterMeterLocation"
40
+ "waterQualityAnalysis"
42
41
  ],
43
42
  "properties": {
44
43
  "mainsWater": {
@@ -65,10 +64,29 @@
65
64
  },
66
65
  "details": {
67
66
  "con29DWRef": "3.1.2"
67
+ },
68
+ "waterMeter": {
69
+ "required": [
70
+ "isSupplyMetered"
71
+ ],
72
+ "oneOf": [
73
+ null,
74
+ {
75
+ "required": [
76
+ "location"
77
+ ],
78
+ "properties": {
79
+ "location": {
80
+ "con29DWRef": "3.6"
81
+ }
82
+ }
83
+ }
84
+ ]
68
85
  }
69
86
  },
70
87
  "required": [
71
- "details"
88
+ "details",
89
+ "waterMeter"
72
90
  ]
73
91
  },
74
92
  {
@@ -216,9 +234,6 @@
216
234
  },
217
235
  "supplyClassification": {
218
236
  "con29DWRef": "3.5"
219
- },
220
- "waterMeterLocation": {
221
- "con29DWRef": "3.6"
222
237
  }
223
238
  }
224
239
  },
@@ -46,9 +46,9 @@
46
46
  "confirmation"
47
47
  ],
48
48
  "properties": {
49
- "typeOfLeasehold": {
49
+ "sharedOwnership": {
50
50
  "required": [
51
- "leaseholdType"
51
+ "isSharedOwnership"
52
52
  ],
53
53
  "oneOf": [
54
54
  null,
@@ -261,6 +261,7 @@
261
261
  "collectsServiceCharges",
262
262
  "collectsbuildingInsurancePremiums",
263
263
  "dealsWithDayToDayMaintenanceOfManagedArea",
264
+ "organisesBuildingInsurance",
264
265
  "dealsWithDayToDayMaintenanceOfBuilding"
265
266
  ],
266
267
  "properties": {
@@ -293,33 +293,32 @@
293
293
  "leaseholdInformation": {
294
294
  "ntsRef": "A3.2",
295
295
  "required": [
296
- "typeOfLeasehold",
296
+ "sharedOwnership",
297
297
  "leaseTerm",
298
298
  "groundRent",
299
299
  "serviceCharge"
300
300
  ],
301
301
  "properties": {
302
- "typeOfLeasehold": {
302
+ "sharedOwnership": {
303
303
  "ntsRef": "A3.2",
304
304
  "discriminator": {
305
- "propertyName": "leaseholdType"
305
+ "propertyName": "isSharedOwnership"
306
306
  },
307
307
  "oneOf": [
308
308
  {
309
309
  "properties": {
310
- "leaseholdType": {
310
+ "isSharedOwnership": {
311
311
  "enum": [
312
- "Flat",
313
- "Long leasehold house"
312
+ "No"
314
313
  ]
315
314
  }
316
315
  }
317
316
  },
318
317
  {
319
318
  "properties": {
320
- "leaseholdType": {
319
+ "isSharedOwnership": {
321
320
  "enum": [
322
- "Shared ownership"
321
+ "Yes"
323
322
  ]
324
323
  },
325
324
  "sharedOwnershipPercentage": {
@@ -340,10 +339,10 @@
340
339
  }
341
340
  ],
342
341
  "required": [
343
- "leaseholdType"
342
+ "isSharedOwnership"
344
343
  ],
345
344
  "properties": {
346
- "leaseholdType": {
345
+ "isSharedOwnership": {
347
346
  "ntsRef": "A3.2.1"
348
347
  }
349
348
  }
@@ -1221,12 +1220,43 @@
1221
1220
  "Yes"
1222
1221
  ]
1223
1222
  },
1224
- "isSupplyMetered": {
1225
- "ntsRef": "3.2.3"
1223
+ "waterMeter": {
1224
+ "ntsRef": "B3.2.1.1",
1225
+ "discriminator": {
1226
+ "propertyName": "isSupplyMetered"
1227
+ },
1228
+ "oneOf": [
1229
+ {
1230
+ "properties": {
1231
+ "isSupplyMetered": {
1232
+ "enum": [
1233
+ "No"
1234
+ ]
1235
+ }
1236
+ }
1237
+ },
1238
+ {
1239
+ "properties": {
1240
+ "isSupplyMetered": {
1241
+ "enum": [
1242
+ "Yes"
1243
+ ]
1244
+ }
1245
+ }
1246
+ }
1247
+ ],
1248
+ "required": [
1249
+ "isSupplyMetered"
1250
+ ],
1251
+ "properties": {
1252
+ "isSupplyMetered": {
1253
+ "ntsRef": "3.2.3"
1254
+ }
1255
+ }
1226
1256
  }
1227
1257
  },
1228
1258
  "required": [
1229
- "isSupplyMetered"
1259
+ "waterMeter"
1230
1260
  ]
1231
1261
  },
1232
1262
  {
@@ -1474,8 +1504,24 @@
1474
1504
  "properties": {
1475
1505
  "centralHeatingFuelType": {
1476
1506
  "enum": [
1477
- "Mains gas",
1478
- "Electricity",
1507
+ "Mains gas"
1508
+ ]
1509
+ }
1510
+ }
1511
+ },
1512
+ {
1513
+ "properties": {
1514
+ "centralHeatingFuelType": {
1515
+ "enum": [
1516
+ "Electricity"
1517
+ ]
1518
+ }
1519
+ }
1520
+ },
1521
+ {
1522
+ "properties": {
1523
+ "centralHeatingFuelType": {
1524
+ "enum": [
1479
1525
  "Oil",
1480
1526
  "LPG",
1481
1527
  "Biomass"
@@ -1154,6 +1154,64 @@
1154
1154
  "enum": [
1155
1155
  "Yes"
1156
1156
  ]
1157
+ },
1158
+ "yearInstalled": {
1159
+ "piqRef": "B4.4.2"
1160
+ },
1161
+ "panelsOwnedOutright": {
1162
+ "piqRef": "B4.4.3",
1163
+ "discriminator": {
1164
+ "propertyName": "yesNo"
1165
+ },
1166
+ "oneOf": [
1167
+ {
1168
+ "properties": {
1169
+ "yesNo": {
1170
+ "enum": [
1171
+ "Yes"
1172
+ ]
1173
+ }
1174
+ }
1175
+ },
1176
+ {
1177
+ "properties": {
1178
+ "yesNo": {
1179
+ "enum": [
1180
+ "No"
1181
+ ]
1182
+ }
1183
+ }
1184
+ }
1185
+ ]
1186
+ },
1187
+ "panelProviderLease": {
1188
+ "piqRef": "B4.4.4",
1189
+ "discriminator": {
1190
+ "propertyName": "yesNo"
1191
+ },
1192
+ "oneOf": [
1193
+ {
1194
+ "properties": {
1195
+ "yesNo": {
1196
+ "enum": [
1197
+ "No"
1198
+ ]
1199
+ }
1200
+ }
1201
+ },
1202
+ {
1203
+ "properties": {
1204
+ "yesNo": {
1205
+ "enum": [
1206
+ "Yes"
1207
+ ]
1208
+ },
1209
+ "attachments": {
1210
+ "piqRef": "B4.4.5"
1211
+ }
1212
+ }
1213
+ }
1214
+ ]
1157
1215
  }
1158
1216
  }
1159
1217
  },
@@ -2625,7 +2683,7 @@
2625
2683
  }
2626
2684
  }
2627
2685
  },
2628
- "energyAndMeters": {
2686
+ "electricalWorks": {
2629
2687
  "properties": {
2630
2688
  "testedByQualifiedElectrician": {
2631
2689
  "piqRef": "B7.1",
@@ -2695,95 +2753,6 @@
2695
2753
  "piqRef": "B7.2.1"
2696
2754
  }
2697
2755
  }
2698
- },
2699
- "solarPanels": {
2700
- "piqRef": "B4.4",
2701
- "discriminator": {
2702
- "propertyName": "hasSolarPanels"
2703
- },
2704
- "oneOf": [
2705
- {
2706
- "properties": {
2707
- "hasSolarPanels": {
2708
- "enum": [
2709
- "No"
2710
- ]
2711
- }
2712
- }
2713
- },
2714
- {
2715
- "properties": {
2716
- "hasSolarPanels": {
2717
- "enum": [
2718
- "Yes"
2719
- ]
2720
- },
2721
- "yearInstalled": {
2722
- "piqRef": "B4.4.2"
2723
- },
2724
- "panelsOwnedOutright": {
2725
- "piqRef": "B4.4.3",
2726
- "discriminator": {
2727
- "propertyName": "yesNo"
2728
- },
2729
- "oneOf": [
2730
- {
2731
- "properties": {
2732
- "yesNo": {
2733
- "enum": [
2734
- "Yes"
2735
- ]
2736
- }
2737
- }
2738
- },
2739
- {
2740
- "properties": {
2741
- "yesNo": {
2742
- "enum": [
2743
- "No"
2744
- ]
2745
- }
2746
- }
2747
- }
2748
- ]
2749
- },
2750
- "panelProviderLease": {
2751
- "piqRef": "B4.4.4",
2752
- "discriminator": {
2753
- "propertyName": "yesNo"
2754
- },
2755
- "oneOf": [
2756
- {
2757
- "properties": {
2758
- "yesNo": {
2759
- "enum": [
2760
- "No"
2761
- ]
2762
- }
2763
- }
2764
- },
2765
- {
2766
- "properties": {
2767
- "yesNo": {
2768
- "enum": [
2769
- "Yes"
2770
- ]
2771
- },
2772
- "attachments": {
2773
- "piqRef": "B4.4.5"
2774
- }
2775
- }
2776
- }
2777
- ]
2778
- }
2779
- }
2780
- }
2781
- ],
2782
- "properties": {
2783
- "hasSolarPanels": {
2784
- "piqRef": "B4.4.1"
2785
- }
2786
- }
2787
2756
  }
2788
2757
  }
2789
2758
  },
@@ -1324,6 +1324,9 @@
1324
1324
  "enum": [
1325
1325
  "Yes"
1326
1326
  ]
1327
+ },
1328
+ "electricityMeter": {
1329
+ "rdsRef": "Objects/class='meters|'&access=?&accessLocation=?"
1327
1330
  }
1328
1331
  }
1329
1332
  },
@@ -1338,6 +1341,108 @@
1338
1341
  }
1339
1342
  ]
1340
1343
  },
1344
+ "solarPanels": {
1345
+ "oneOf": [
1346
+ null,
1347
+ {
1348
+ "properties": {
1349
+ "yearInstalled": {
1350
+ "rdsRef": "Objects/Installation"
1351
+ },
1352
+ "panelsOwnedOutright": {
1353
+ "rdsRef": "Objects/Ownership",
1354
+ "discriminator": {
1355
+ "propertyName": "yesNo"
1356
+ },
1357
+ "oneOf": [
1358
+ {
1359
+ "properties": {
1360
+ "yesNo": {
1361
+ "enum": [
1362
+ "Yes"
1363
+ ]
1364
+ }
1365
+ }
1366
+ },
1367
+ {
1368
+ "properties": {
1369
+ "yesNo": {
1370
+ "enum": [
1371
+ "No"
1372
+ ]
1373
+ }
1374
+ }
1375
+ }
1376
+ ]
1377
+ },
1378
+ "panelProviderLease": {
1379
+ "rdsRef": "Objects/Ownership",
1380
+ "discriminator": {
1381
+ "propertyName": "yesNo"
1382
+ },
1383
+ "oneOf": [
1384
+ {
1385
+ "properties": {
1386
+ "yesNo": {
1387
+ "enum": [
1388
+ "No"
1389
+ ]
1390
+ }
1391
+ }
1392
+ },
1393
+ {
1394
+ "properties": {
1395
+ "yesNo": {
1396
+ "enum": [
1397
+ "Yes"
1398
+ ]
1399
+ }
1400
+ }
1401
+ }
1402
+ ]
1403
+ },
1404
+ "lastMaintained": {
1405
+ "rdsRef": "Objects/Servicing"
1406
+ },
1407
+ "inGoodWorkingOrder": {
1408
+ "rdsRef": "Objects/isNotWorking=yes|no|true|false",
1409
+ "discriminator": {
1410
+ "propertyName": "yesNo"
1411
+ },
1412
+ "oneOf": [
1413
+ {
1414
+ "properties": {
1415
+ "yesNo": {
1416
+ "enum": [
1417
+ "Yes"
1418
+ ]
1419
+ }
1420
+ }
1421
+ },
1422
+ {
1423
+ "properties": {
1424
+ "yesNo": {
1425
+ "enum": [
1426
+ "No"
1427
+ ]
1428
+ }
1429
+ }
1430
+ }
1431
+ ]
1432
+ },
1433
+ "isConnectedToNationalGrid": {
1434
+ "rdsRef": "Objects/isExternallyConnected=yes|no|true|false,Connection,Objects/ExternalConnection"
1435
+ },
1436
+ "photovoltaicMeterPanelLocation": {
1437
+ "rdsRef": "Objects/class='meters|valve|stopcock'&access=?&accessLocation=?"
1438
+ },
1439
+ "photovoltaicBatteriesLocation": {
1440
+ "rdsRef": "Objects/class='meters|valve|stopcock'&access=?&accessLocation=?"
1441
+ }
1442
+ }
1443
+ }
1444
+ ]
1445
+ },
1341
1446
  "otherSources": {
1342
1447
  "rdsRef": "Services/Other",
1343
1448
  "discriminator": {
@@ -1400,6 +1505,9 @@
1400
1505
  "enum": [
1401
1506
  "Yes"
1402
1507
  ]
1508
+ },
1509
+ "stopcock": {
1510
+ "rdsRef": "Objects/class='meters|valve|stopcock'&access=?&accessLocation=?"
1403
1511
  }
1404
1512
  }
1405
1513
  },
@@ -1651,8 +1759,27 @@
1651
1759
  "properties": {
1652
1760
  "centralHeatingFuelType": {
1653
1761
  "enum": [
1654
- "Mains gas",
1655
- "Electricity",
1762
+ "Mains gas"
1763
+ ]
1764
+ },
1765
+ "gasMeter": {
1766
+ "rdsRef": "Objects/class='meters'&access=?&accessLocation=?"
1767
+ }
1768
+ }
1769
+ },
1770
+ {
1771
+ "properties": {
1772
+ "centralHeatingFuelType": {
1773
+ "enum": [
1774
+ "Electricity"
1775
+ ]
1776
+ }
1777
+ }
1778
+ },
1779
+ {
1780
+ "properties": {
1781
+ "centralHeatingFuelType": {
1782
+ "enum": [
1656
1783
  "Oil",
1657
1784
  "LPG",
1658
1785
  "Biomass"
@@ -2871,7 +2998,7 @@
2871
2998
  }
2872
2999
  }
2873
3000
  },
2874
- "energyAndMeters": {
3001
+ "electricalWorks": {
2875
3002
  "properties": {
2876
3003
  "testedByQualifiedElectrician": {
2877
3004
  "rdsRef": "Objects/Servicing",
@@ -2925,125 +3052,6 @@
2925
3052
  }
2926
3053
  }
2927
3054
  ]
2928
- },
2929
- "solarPanels": {
2930
- "properties": {
2931
- "hasSolarPanels": {
2932
- "rdsRef": "Property/Flags"
2933
- }
2934
- },
2935
- "oneOf": [
2936
- null,
2937
- {
2938
- "properties": {
2939
- "yearInstalled": {
2940
- "rdsRef": "Objects/Installation"
2941
- },
2942
- "panelsOwnedOutright": {
2943
- "rdsRef": "Objects/Ownership",
2944
- "discriminator": {
2945
- "propertyName": "yesNo"
2946
- },
2947
- "oneOf": [
2948
- {
2949
- "properties": {
2950
- "yesNo": {
2951
- "enum": [
2952
- "Yes"
2953
- ]
2954
- }
2955
- }
2956
- },
2957
- {
2958
- "properties": {
2959
- "yesNo": {
2960
- "enum": [
2961
- "No"
2962
- ]
2963
- }
2964
- }
2965
- }
2966
- ]
2967
- },
2968
- "panelProviderLease": {
2969
- "rdsRef": "Objects/Ownership",
2970
- "discriminator": {
2971
- "propertyName": "yesNo"
2972
- },
2973
- "oneOf": [
2974
- {
2975
- "properties": {
2976
- "yesNo": {
2977
- "enum": [
2978
- "No"
2979
- ]
2980
- }
2981
- }
2982
- },
2983
- {
2984
- "properties": {
2985
- "yesNo": {
2986
- "enum": [
2987
- "Yes"
2988
- ]
2989
- }
2990
- }
2991
- }
2992
- ]
2993
- },
2994
- "lastMaintained": {
2995
- "rdsRef": "Objects/Servicing"
2996
- },
2997
- "inGoodWorkingOrder": {
2998
- "rdsRef": "Objects/isNotWorking=yes|no|true|false",
2999
- "discriminator": {
3000
- "propertyName": "yesNo"
3001
- },
3002
- "oneOf": [
3003
- {
3004
- "properties": {
3005
- "yesNo": {
3006
- "enum": [
3007
- "Yes"
3008
- ]
3009
- }
3010
- }
3011
- },
3012
- {
3013
- "properties": {
3014
- "yesNo": {
3015
- "enum": [
3016
- "No"
3017
- ]
3018
- }
3019
- }
3020
- }
3021
- ]
3022
- },
3023
- "isConnectedToNationalGrid": {
3024
- "rdsRef": "Objects/isExternallyConnected=yes|no|true|false,Connection,Objects/ExternalConnection"
3025
- },
3026
- "photovoltaicMeterPanelLocation": {
3027
- "rdsRef": "Objects/class='meters|valve|stopcock'&access=?&accessLocation=?"
3028
- },
3029
- "photovoltaicBatteriesLocation": {
3030
- "rdsRef": "Objects/class='meters|valve|stopcock'&access=?&accessLocation=?"
3031
- }
3032
- }
3033
- }
3034
- ]
3035
- },
3036
- "electricityMeter": {
3037
- "rdsRef": "Objects/class='meters|'&access=?&accessLocation=?"
3038
- },
3039
- "gasMeter": {
3040
- "rdsRef": "Objects/class='meters'&access=?&accessLocation=?"
3041
- },
3042
- "stopcock": {
3043
- "rdsRef": "Objects/class='meters|valve|stopcock'&access=?&accessLocation=?"
3044
- },
3045
- "waterMeter": {
3046
- "rdsRef": "Objects/class='meters|valve|stopcock'&access=?&accessLocation=?"
3047
3055
  }
3048
3056
  }
3049
3057
  },