@pdtf/schemas 3.0.0-20 → 3.0.0-21

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.
@@ -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
  },