@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.
@@ -3354,8 +3354,25 @@
3354
3354
  },
3355
3355
  "supplier": {
3356
3356
  "baspiRef": "A7.1.0.1.2"
3357
+ },
3358
+ "electricityMeter": {
3359
+ "baspiRef": "B4.4",
3360
+ "required": [
3361
+ "location"
3362
+ ],
3363
+ "properties": {
3364
+ "location": {
3365
+ "baspiRef": "4.4.1"
3366
+ },
3367
+ "attachments": {
3368
+ "baspiRef": "4.4.2"
3369
+ }
3370
+ }
3357
3371
  }
3358
- }
3372
+ },
3373
+ "required": [
3374
+ "electricityMeter"
3375
+ ]
3359
3376
  },
3360
3377
  {
3361
3378
  "properties": {
@@ -3409,8 +3426,175 @@
3409
3426
  },
3410
3427
  "supplier": {
3411
3428
  "baspiRef": "A7.1.0.8.2"
3429
+ },
3430
+ "yearInstalled": {
3431
+ "baspiRef": "B4.3.1"
3432
+ },
3433
+ "panelsOwnedOutright": {
3434
+ "baspiRef": "B4.3.2",
3435
+ "discriminator": {
3436
+ "propertyName": "yesNo"
3437
+ },
3438
+ "oneOf": [
3439
+ {
3440
+ "properties": {
3441
+ "yesNo": {
3442
+ "enum": [
3443
+ "Yes"
3444
+ ]
3445
+ }
3446
+ }
3447
+ },
3448
+ {
3449
+ "properties": {
3450
+ "yesNo": {
3451
+ "enum": [
3452
+ "No"
3453
+ ]
3454
+ },
3455
+ "details": {
3456
+ "baspiRef": "B4.3.2.2"
3457
+ },
3458
+ "attachments": {
3459
+ "baspiRef": "B4.3.2.3"
3460
+ }
3461
+ },
3462
+ "required": [
3463
+ "details",
3464
+ "attachments"
3465
+ ]
3466
+ }
3467
+ ],
3468
+ "required": [
3469
+ "yesNo"
3470
+ ],
3471
+ "properties": {
3472
+ "yesNo": {
3473
+ "baspiRef": "B4.3.2.1"
3474
+ }
3475
+ }
3476
+ },
3477
+ "panelProviderLease": {
3478
+ "baspiRef": "B4.3.3",
3479
+ "discriminator": {
3480
+ "propertyName": "yesNo"
3481
+ },
3482
+ "oneOf": [
3483
+ {
3484
+ "properties": {
3485
+ "yesNo": {
3486
+ "enum": [
3487
+ "No"
3488
+ ]
3489
+ }
3490
+ }
3491
+ },
3492
+ {
3493
+ "properties": {
3494
+ "yesNo": {
3495
+ "enum": [
3496
+ "Yes"
3497
+ ]
3498
+ },
3499
+ "details": {
3500
+ "baspiRef": "4.3.3.2"
3501
+ },
3502
+ "attachments": {
3503
+ "baspiRef": "4.3.3.3"
3504
+ }
3505
+ },
3506
+ "required": [
3507
+ "details",
3508
+ "attachments"
3509
+ ]
3510
+ }
3511
+ ],
3512
+ "required": [
3513
+ "yesNo"
3514
+ ],
3515
+ "properties": {
3516
+ "yesNo": {
3517
+ "baspiRef": "4.3.3.1"
3518
+ }
3519
+ }
3520
+ },
3521
+ "lastMaintained": {
3522
+ "baspiRef": "B4.3.4"
3523
+ },
3524
+ "inGoodWorkingOrder": {
3525
+ "baspiRef": "B4.3.5",
3526
+ "discriminator": {
3527
+ "propertyName": "yesNo"
3528
+ },
3529
+ "oneOf": [
3530
+ {
3531
+ "properties": {
3532
+ "yesNo": {
3533
+ "enum": [
3534
+ "Yes"
3535
+ ]
3536
+ }
3537
+ }
3538
+ },
3539
+ {
3540
+ "properties": {
3541
+ "yesNo": {
3542
+ "enum": [
3543
+ "No"
3544
+ ]
3545
+ },
3546
+ "details": {
3547
+ "baspiRef": "B4.3.5.2"
3548
+ }
3549
+ },
3550
+ "required": [
3551
+ "details"
3552
+ ]
3553
+ }
3554
+ ],
3555
+ "required": [
3556
+ "yesNo"
3557
+ ],
3558
+ "properties": {
3559
+ "yesNo": {
3560
+ "baspiRef": "B4.3.5.1"
3561
+ }
3562
+ }
3563
+ },
3564
+ "isConnectedToNationalGrid": {
3565
+ "baspiRef": "B4.3.6"
3566
+ },
3567
+ "photovoltaicMeterPanelLocation": {
3568
+ "baspiRef": "B4.7",
3569
+ "properties": {
3570
+ "description": {
3571
+ "baspiRef": "4.7.1"
3572
+ },
3573
+ "attachments": {
3574
+ "baspiRef": "4.7.2"
3575
+ }
3576
+ }
3577
+ },
3578
+ "photovoltaicBatteriesLocation": {
3579
+ "baspiRef": "B4.8",
3580
+ "properties": {
3581
+ "description": {
3582
+ "baspiRef": "4.8.1"
3583
+ },
3584
+ "attachments": {
3585
+ "baspiRef": "4.8.2"
3586
+ }
3587
+ }
3412
3588
  }
3413
- }
3589
+ },
3590
+ "required": [
3591
+ "yearInstalled",
3592
+ "panelsOwnedOutright",
3593
+ "panelProviderLease",
3594
+ "lastMaintained",
3595
+ "inGoodWorkingOrder",
3596
+ "isConnectedToNationalGrid"
3597
+ ]
3414
3598
  },
3415
3599
  {
3416
3600
  "properties": {
@@ -3538,8 +3722,63 @@
3538
3722
  },
3539
3723
  "supplier": {
3540
3724
  "baspiRef": "A7.1.0.10.2"
3725
+ },
3726
+ "stopcock": {
3727
+ "baspiRef": "B4.6.1",
3728
+ "properties": {
3729
+ "location": {
3730
+ "baspiRef": "4.6.1.1"
3731
+ },
3732
+ "attachments": {
3733
+ "baspiRef": "4.6.1.2"
3734
+ }
3735
+ }
3736
+ },
3737
+ "waterMeter": {
3738
+ "baspiRef": "A7.",
3739
+ "discriminator": {
3740
+ "propertyName": "isSupplyMetered"
3741
+ },
3742
+ "oneOf": [
3743
+ {
3744
+ "properties": {
3745
+ "isSupplyMetered": {
3746
+ "enum": [
3747
+ "No"
3748
+ ]
3749
+ }
3750
+ }
3751
+ },
3752
+ {
3753
+ "properties": {
3754
+ "isSupplyMetered": {
3755
+ "enum": [
3756
+ "Yes"
3757
+ ]
3758
+ },
3759
+ "location": {
3760
+ "baspiRef": "4.6.2.1"
3761
+ },
3762
+ "attachments": {
3763
+ "baspiRef": "4.6.2.2"
3764
+ }
3765
+ }
3766
+ }
3767
+ ],
3768
+ "required": [
3769
+ "isSupplyMetered"
3770
+ ],
3771
+ "properties": {
3772
+ "isSupplyMetered": {
3773
+ "baspiRef": "B4.6.2"
3774
+ }
3775
+ }
3541
3776
  }
3542
- }
3777
+ },
3778
+ "required": [
3779
+ "stopcock",
3780
+ "waterMeter"
3781
+ ]
3543
3782
  },
3544
3783
  {
3545
3784
  "properties": {
@@ -4039,12 +4278,49 @@
4039
4278
  "properties": {
4040
4279
  "centralHeatingFuelType": {
4041
4280
  "enum": [
4042
- "Mains gas",
4043
- "Electricity",
4281
+ "Mains gas"
4282
+ ]
4283
+ },
4284
+ "supplier": {
4285
+ "baspiRef": "A7.1.0"
4286
+ },
4287
+ "gasMeter": {
4288
+ "baspiRef": "B4.5",
4289
+ "properties": {
4290
+ "location": {
4291
+ "baspiRef": "4.5.1"
4292
+ },
4293
+ "attachments": {
4294
+ "baspiRef": "4.5.2"
4295
+ }
4296
+ }
4297
+ }
4298
+ },
4299
+ "required": [
4300
+ "supplier",
4301
+ "gasMeter"
4302
+ ]
4303
+ },
4304
+ {
4305
+ "properties": {
4306
+ "centralHeatingFuelType": {
4307
+ "enum": [
4308
+ "Electricity"
4309
+ ]
4310
+ }
4311
+ }
4312
+ },
4313
+ {
4314
+ "properties": {
4315
+ "centralHeatingFuelType": {
4316
+ "enum": [
4044
4317
  "Oil",
4045
4318
  "LPG",
4046
4319
  "Biomass"
4047
4320
  ]
4321
+ },
4322
+ "supplier": {
4323
+ "baspiRef": "A7.1.0"
4048
4324
  }
4049
4325
  }
4050
4326
  },
@@ -5743,7 +6019,7 @@
5743
6019
  "sellersCapacity",
5744
6020
  "legalBoundaries",
5745
6021
  "servicesCrossing",
5746
- "energyAndMeters",
6022
+ "electricalWorks",
5747
6023
  "smartHomeSystems",
5748
6024
  "guaranteesWarrantiesAndIndemnityInsurances",
5749
6025
  "occupiers",
@@ -6220,12 +6496,11 @@
6220
6496
  }
6221
6497
  }
6222
6498
  },
6223
- "energyAndMeters": {
6499
+ "electricalWorks": {
6224
6500
  "baspiRef": "B4",
6225
6501
  "required": [
6226
6502
  "testedByQualifiedElectrician",
6227
- "electricalWorkSince2005",
6228
- "solarPanels"
6503
+ "electricalWorkSince2005"
6229
6504
  ],
6230
6505
  "properties": {
6231
6506
  "testedByQualifiedElectrician": {
@@ -6325,251 +6600,6 @@
6325
6600
  "baspiRef": "B4.2.1"
6326
6601
  }
6327
6602
  }
6328
- },
6329
- "solarPanels": {
6330
- "baspiRef": "B4.3",
6331
- "discriminator": {
6332
- "propertyName": "hasSolarPanels"
6333
- },
6334
- "oneOf": [
6335
- {
6336
- "properties": {
6337
- "hasSolarPanels": {
6338
- "enum": [
6339
- "No"
6340
- ]
6341
- }
6342
- }
6343
- },
6344
- {
6345
- "properties": {
6346
- "hasSolarPanels": {
6347
- "enum": [
6348
- "Yes"
6349
- ]
6350
- },
6351
- "yearInstalled": {
6352
- "baspiRef": "B4.3.1"
6353
- },
6354
- "panelsOwnedOutright": {
6355
- "baspiRef": "B4.3.2",
6356
- "discriminator": {
6357
- "propertyName": "yesNo"
6358
- },
6359
- "oneOf": [
6360
- {
6361
- "properties": {
6362
- "yesNo": {
6363
- "enum": [
6364
- "Yes"
6365
- ]
6366
- }
6367
- }
6368
- },
6369
- {
6370
- "properties": {
6371
- "yesNo": {
6372
- "enum": [
6373
- "No"
6374
- ]
6375
- },
6376
- "details": {
6377
- "baspiRef": "B4.3.2.2"
6378
- },
6379
- "attachments": {
6380
- "baspiRef": "B4.3.2.3"
6381
- }
6382
- },
6383
- "required": [
6384
- "details",
6385
- "attachments"
6386
- ]
6387
- }
6388
- ],
6389
- "required": [
6390
- "yesNo"
6391
- ],
6392
- "properties": {
6393
- "yesNo": {
6394
- "baspiRef": "B4.3.2.1"
6395
- }
6396
- }
6397
- },
6398
- "panelProviderLease": {
6399
- "baspiRef": "B4.3.3",
6400
- "discriminator": {
6401
- "propertyName": "yesNo"
6402
- },
6403
- "oneOf": [
6404
- {
6405
- "properties": {
6406
- "yesNo": {
6407
- "enum": [
6408
- "No"
6409
- ]
6410
- }
6411
- }
6412
- },
6413
- {
6414
- "properties": {
6415
- "yesNo": {
6416
- "enum": [
6417
- "Yes"
6418
- ]
6419
- },
6420
- "details": {
6421
- "baspiRef": "4.3.3.2"
6422
- },
6423
- "attachments": {
6424
- "baspiRef": "4.3.3.3"
6425
- }
6426
- },
6427
- "required": [
6428
- "details",
6429
- "attachments"
6430
- ]
6431
- }
6432
- ],
6433
- "required": [
6434
- "yesNo"
6435
- ],
6436
- "properties": {
6437
- "yesNo": {
6438
- "baspiRef": "4.3.3.1"
6439
- }
6440
- }
6441
- },
6442
- "lastMaintained": {
6443
- "baspiRef": "B4.3.4"
6444
- },
6445
- "inGoodWorkingOrder": {
6446
- "baspiRef": "B4.3.5",
6447
- "discriminator": {
6448
- "propertyName": "yesNo"
6449
- },
6450
- "oneOf": [
6451
- {
6452
- "properties": {
6453
- "yesNo": {
6454
- "enum": [
6455
- "Yes"
6456
- ]
6457
- }
6458
- }
6459
- },
6460
- {
6461
- "properties": {
6462
- "yesNo": {
6463
- "enum": [
6464
- "No"
6465
- ]
6466
- },
6467
- "details": {
6468
- "baspiRef": "B4.3.5.2"
6469
- }
6470
- },
6471
- "required": [
6472
- "details"
6473
- ]
6474
- }
6475
- ],
6476
- "required": [
6477
- "yesNo"
6478
- ],
6479
- "properties": {
6480
- "yesNo": {
6481
- "baspiRef": "B4.3.5.1"
6482
- }
6483
- }
6484
- },
6485
- "isConnectedToNationalGrid": {
6486
- "baspiRef": "B4.3.6"
6487
- },
6488
- "photovoltaicMeterPanelLocation": {
6489
- "baspiRef": "B4.7",
6490
- "properties": {
6491
- "description": {
6492
- "baspiRef": "4.7.1"
6493
- },
6494
- "attachments": {
6495
- "baspiRef": "4.7.2"
6496
- }
6497
- }
6498
- },
6499
- "photovoltaicBatteriesLocation": {
6500
- "baspiRef": "B4.8",
6501
- "properties": {
6502
- "description": {
6503
- "baspiRef": "4.8.1"
6504
- },
6505
- "attachments": {
6506
- "baspiRef": "4.8.2"
6507
- }
6508
- }
6509
- }
6510
- },
6511
- "required": [
6512
- "yearInstalled",
6513
- "panelsOwnedOutright",
6514
- "panelProviderLease",
6515
- "lastMaintained",
6516
- "inGoodWorkingOrder",
6517
- "isConnectedToNationalGrid"
6518
- ]
6519
- }
6520
- ],
6521
- "required": [
6522
- "hasSolarPanels"
6523
- ],
6524
- "properties": {
6525
- "hasSolarPanels": {
6526
- "baspiRef": "B4.3.0"
6527
- }
6528
- }
6529
- },
6530
- "electricityMeter": {
6531
- "baspiRef": "B4.4",
6532
- "properties": {
6533
- "location": {
6534
- "baspiRef": "4.4.1"
6535
- },
6536
- "attachments": {
6537
- "baspiRef": "4.4.2"
6538
- }
6539
- }
6540
- },
6541
- "gasMeter": {
6542
- "baspiRef": "B4.5",
6543
- "properties": {
6544
- "location": {
6545
- "baspiRef": "4.5.1"
6546
- },
6547
- "attachments": {
6548
- "baspiRef": "4.5.2"
6549
- }
6550
- }
6551
- },
6552
- "stopcock": {
6553
- "baspiRef": "B4.6.1",
6554
- "properties": {
6555
- "location": {
6556
- "baspiRef": "4.6.1.1"
6557
- },
6558
- "attachments": {
6559
- "baspiRef": "4.6.1.2"
6560
- }
6561
- }
6562
- },
6563
- "waterMeter": {
6564
- "baspiRef": "B4.6.2",
6565
- "properties": {
6566
- "location": {
6567
- "baspiRef": "4.6.2.1"
6568
- },
6569
- "attachments": {
6570
- "baspiRef": "4.6.2.2"
6571
- }
6572
- }
6573
6603
  }
6574
6604
  }
6575
6605
  },
@@ -1221,12 +1221,43 @@
1221
1221
  "Yes"
1222
1222
  ]
1223
1223
  },
1224
- "isSupplyMetered": {
1225
- "ntsRef": "3.2.3"
1224
+ "waterMeter": {
1225
+ "ntsRef": "B3.2.1.1",
1226
+ "discriminator": {
1227
+ "propertyName": "isSupplyMetered"
1228
+ },
1229
+ "oneOf": [
1230
+ {
1231
+ "properties": {
1232
+ "isSupplyMetered": {
1233
+ "enum": [
1234
+ "No"
1235
+ ]
1236
+ }
1237
+ }
1238
+ },
1239
+ {
1240
+ "properties": {
1241
+ "isSupplyMetered": {
1242
+ "enum": [
1243
+ "Yes"
1244
+ ]
1245
+ }
1246
+ }
1247
+ }
1248
+ ],
1249
+ "required": [
1250
+ "isSupplyMetered"
1251
+ ],
1252
+ "properties": {
1253
+ "isSupplyMetered": {
1254
+ "ntsRef": "3.2.3"
1255
+ }
1256
+ }
1226
1257
  }
1227
1258
  },
1228
1259
  "required": [
1229
- "isSupplyMetered"
1260
+ "waterMeter"
1230
1261
  ]
1231
1262
  },
1232
1263
  {
@@ -1474,8 +1505,24 @@
1474
1505
  "properties": {
1475
1506
  "centralHeatingFuelType": {
1476
1507
  "enum": [
1477
- "Mains gas",
1478
- "Electricity",
1508
+ "Mains gas"
1509
+ ]
1510
+ }
1511
+ }
1512
+ },
1513
+ {
1514
+ "properties": {
1515
+ "centralHeatingFuelType": {
1516
+ "enum": [
1517
+ "Electricity"
1518
+ ]
1519
+ }
1520
+ }
1521
+ },
1522
+ {
1523
+ "properties": {
1524
+ "centralHeatingFuelType": {
1525
+ "enum": [
1479
1526
  "Oil",
1480
1527
  "LPG",
1481
1528
  "Biomass"