@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.
@@ -1434,7 +1434,8 @@
1434
1434
  "electricity": {
1435
1435
  "ta6Ref": "13.1",
1436
1436
  "required": [
1437
- "mainsElectricity"
1437
+ "mainsElectricity",
1438
+ "solarPanels"
1438
1439
  ],
1439
1440
  "properties": {
1440
1441
  "mainsElectricity": {
@@ -1461,10 +1462,22 @@
1461
1462
  },
1462
1463
  "supplier": {
1463
1464
  "ta6Ref": "13.1.2"
1465
+ },
1466
+ "electricityMeter": {
1467
+ "ta6Ref": "13.1b",
1468
+ "required": [
1469
+ "location"
1470
+ ],
1471
+ "properties": {
1472
+ "location": {
1473
+ "ta6Ref": "13.1b1"
1474
+ }
1475
+ }
1464
1476
  }
1465
1477
  },
1466
1478
  "required": [
1467
- "supplier"
1479
+ "supplier",
1480
+ "electricityMeter"
1468
1481
  ]
1469
1482
  },
1470
1483
  {
@@ -1488,6 +1501,126 @@
1488
1501
  "ta6Ref": "13.1.1"
1489
1502
  }
1490
1503
  }
1504
+ },
1505
+ "solarPanels": {
1506
+ "ta6Ref": "4.6",
1507
+ "discriminator": {
1508
+ "propertyName": "yesNo"
1509
+ },
1510
+ "oneOf": [
1511
+ {
1512
+ "properties": {
1513
+ "yesNo": {
1514
+ "enum": [
1515
+ "No"
1516
+ ]
1517
+ }
1518
+ }
1519
+ },
1520
+ {
1521
+ "properties": {
1522
+ "yesNo": {
1523
+ "enum": [
1524
+ "Yes"
1525
+ ]
1526
+ },
1527
+ "yearInstalled": {
1528
+ "ta6Ref": "4.6a"
1529
+ },
1530
+ "panelsOwnedOutright": {
1531
+ "ta6Ref": "4.6b",
1532
+ "discriminator": {
1533
+ "propertyName": "yesNo"
1534
+ },
1535
+ "oneOf": [
1536
+ {
1537
+ "properties": {
1538
+ "yesNo": {
1539
+ "enum": [
1540
+ "Yes"
1541
+ ]
1542
+ }
1543
+ }
1544
+ },
1545
+ {
1546
+ "properties": {
1547
+ "yesNo": {
1548
+ "enum": [
1549
+ "No"
1550
+ ]
1551
+ }
1552
+ }
1553
+ }
1554
+ ],
1555
+ "required": [
1556
+ "yesNo"
1557
+ ],
1558
+ "properties": {
1559
+ "yesNo": {
1560
+ "ta6Ref": "4.6b1"
1561
+ }
1562
+ }
1563
+ },
1564
+ "panelProviderLease": {
1565
+ "ta6Ref": "4.6c",
1566
+ "discriminator": {
1567
+ "propertyName": "yesNo"
1568
+ },
1569
+ "oneOf": [
1570
+ {
1571
+ "properties": {
1572
+ "yesNo": {
1573
+ "enum": [
1574
+ "No"
1575
+ ]
1576
+ }
1577
+ }
1578
+ },
1579
+ {
1580
+ "properties": {
1581
+ "yesNo": {
1582
+ "enum": [
1583
+ "Yes"
1584
+ ]
1585
+ },
1586
+ "attachments": {
1587
+ "ta6Ref": "4.6c2"
1588
+ }
1589
+ },
1590
+ "required": [
1591
+ "attachments"
1592
+ ]
1593
+ }
1594
+ ],
1595
+ "required": [
1596
+ "yesNo"
1597
+ ],
1598
+ "properties": {
1599
+ "yesNo": {
1600
+ "ta6Ref": "4.6c1"
1601
+ }
1602
+ }
1603
+ }
1604
+ },
1605
+ "required": [
1606
+ "yearInstalled",
1607
+ "panelsOwnedOutright",
1608
+ "panelProviderLease"
1609
+ ]
1610
+ },
1611
+ {
1612
+ "properties": {
1613
+ "yesNo": {
1614
+ "enum": [
1615
+ "To be connected"
1616
+ ]
1617
+ }
1618
+ }
1619
+ }
1620
+ ],
1621
+ "required": [
1622
+ "yesNo"
1623
+ ]
1491
1624
  }
1492
1625
  }
1493
1626
  },
@@ -1528,10 +1661,60 @@
1528
1661
  },
1529
1662
  "supplier": {
1530
1663
  "ta6Ref": "13.3.2"
1664
+ },
1665
+ "stopcock": {
1666
+ "ta6Ref": "13.3b",
1667
+ "properties": {
1668
+ "location": {
1669
+ "ta6Ref": "13.3b1"
1670
+ }
1671
+ }
1672
+ },
1673
+ "waterMeter": {
1674
+ "ta6Ref": "13.3b2",
1675
+ "discriminator": {
1676
+ "propertyName": "isSupplyMetered"
1677
+ },
1678
+ "oneOf": [
1679
+ {
1680
+ "properties": {
1681
+ "isSupplyMetered": {
1682
+ "enum": [
1683
+ "No"
1684
+ ]
1685
+ }
1686
+ }
1687
+ },
1688
+ {
1689
+ "properties": {
1690
+ "isSupplyMetered": {
1691
+ "enum": [
1692
+ "Yes"
1693
+ ]
1694
+ },
1695
+ "location": {
1696
+ "ta6Ref": "13.3b2.1"
1697
+ }
1698
+ },
1699
+ "required": [
1700
+ "location"
1701
+ ]
1702
+ }
1703
+ ],
1704
+ "required": [
1705
+ "isSupplyMetered"
1706
+ ],
1707
+ "properties": {
1708
+ "isSupplyMetered": {
1709
+ "ta6Ref": "13.3b2"
1710
+ }
1711
+ }
1531
1712
  }
1532
1713
  },
1533
1714
  "required": [
1534
- "supplier"
1715
+ "supplier",
1716
+ "stopcock",
1717
+ "waterMeter"
1535
1718
  ]
1536
1719
  },
1537
1720
  {
@@ -1552,7 +1735,11 @@
1552
1735
  ],
1553
1736
  "properties": {
1554
1737
  "yesNo": {
1555
- "ta6Ref": "13.3.1"
1738
+ "ta6Ref": "13.3.1",
1739
+ "enum": [
1740
+ "Yes",
1741
+ "No"
1742
+ ]
1556
1743
  }
1557
1744
  }
1558
1745
  }
@@ -1886,8 +2073,36 @@
1886
2073
  "properties": {
1887
2074
  "centralHeatingFuelType": {
1888
2075
  "enum": [
1889
- "Mains gas",
1890
- "Electricity",
2076
+ "Mains gas"
2077
+ ]
2078
+ },
2079
+ "gasMeter": {
2080
+ "ta6Ref": "13.2b",
2081
+ "properties": {
2082
+ "location": {
2083
+ "ta6Ref": "13.2b1"
2084
+ }
2085
+ }
2086
+ }
2087
+ },
2088
+ "required": [
2089
+ "supplier",
2090
+ "gasMeter"
2091
+ ]
2092
+ },
2093
+ {
2094
+ "properties": {
2095
+ "centralHeatingFuelType": {
2096
+ "enum": [
2097
+ "Electricity"
2098
+ ]
2099
+ }
2100
+ }
2101
+ },
2102
+ {
2103
+ "properties": {
2104
+ "centralHeatingFuelType": {
2105
+ "enum": [
1891
2106
  "Oil",
1892
2107
  "LPG",
1893
2108
  "Biomass"
@@ -3015,7 +3230,7 @@
3015
3230
  "required": [
3016
3231
  "legalBoundaries",
3017
3232
  "servicesCrossing",
3018
- "energyAndMeters",
3233
+ "electricalWorks",
3019
3234
  "guaranteesWarrantiesAndIndemnityInsurances",
3020
3235
  "occupiers",
3021
3236
  "completionAndMoving",
@@ -3332,12 +3547,11 @@
3332
3547
  }
3333
3548
  }
3334
3549
  },
3335
- "energyAndMeters": {
3550
+ "electricalWorks": {
3336
3551
  "ta6Ref": "12",
3337
3552
  "required": [
3338
3553
  "testedByQualifiedElectrician",
3339
- "electricalWorkSince2005",
3340
- "solarPanels"
3554
+ "electricalWorkSince2005"
3341
3555
  ],
3342
3556
  "properties": {
3343
3557
  "testedByQualifiedElectrician": {
@@ -3427,154 +3641,6 @@
3427
3641
  "ta6Ref": "12.2.1"
3428
3642
  }
3429
3643
  }
3430
- },
3431
- "solarPanels": {
3432
- "ta6Ref": "4.6",
3433
- "discriminator": {
3434
- "propertyName": "hasSolarPanels"
3435
- },
3436
- "oneOf": [
3437
- {
3438
- "properties": {
3439
- "hasSolarPanels": {
3440
- "enum": [
3441
- "No"
3442
- ]
3443
- }
3444
- }
3445
- },
3446
- {
3447
- "properties": {
3448
- "hasSolarPanels": {
3449
- "enum": [
3450
- "Yes"
3451
- ]
3452
- },
3453
- "yearInstalled": {
3454
- "ta6Ref": "4.6a"
3455
- },
3456
- "panelsOwnedOutright": {
3457
- "ta6Ref": "4.6b",
3458
- "discriminator": {
3459
- "propertyName": "yesNo"
3460
- },
3461
- "oneOf": [
3462
- {
3463
- "properties": {
3464
- "yesNo": {
3465
- "enum": [
3466
- "Yes"
3467
- ]
3468
- }
3469
- }
3470
- },
3471
- {
3472
- "properties": {
3473
- "yesNo": {
3474
- "enum": [
3475
- "No"
3476
- ]
3477
- }
3478
- }
3479
- }
3480
- ],
3481
- "required": [
3482
- "yesNo"
3483
- ],
3484
- "properties": {
3485
- "yesNo": {
3486
- "ta6Ref": "4.6b1"
3487
- }
3488
- }
3489
- },
3490
- "panelProviderLease": {
3491
- "ta6Ref": "4.6c",
3492
- "discriminator": {
3493
- "propertyName": "yesNo"
3494
- },
3495
- "oneOf": [
3496
- {
3497
- "properties": {
3498
- "yesNo": {
3499
- "enum": [
3500
- "No"
3501
- ]
3502
- }
3503
- }
3504
- },
3505
- {
3506
- "properties": {
3507
- "yesNo": {
3508
- "enum": [
3509
- "Yes"
3510
- ]
3511
- },
3512
- "attachments": {
3513
- "ta6Ref": "4.6c2"
3514
- }
3515
- },
3516
- "required": [
3517
- "attachments"
3518
- ]
3519
- }
3520
- ],
3521
- "required": [
3522
- "yesNo"
3523
- ],
3524
- "properties": {
3525
- "yesNo": {
3526
- "ta6Ref": "4.6c1"
3527
- }
3528
- }
3529
- }
3530
- },
3531
- "required": [
3532
- "yearInstalled",
3533
- "panelsOwnedOutright",
3534
- "panelProviderLease"
3535
- ]
3536
- }
3537
- ],
3538
- "required": [
3539
- "hasSolarPanels"
3540
- ],
3541
- "properties": {
3542
- "hasSolarPanels": {
3543
- "ta6Ref": "4.6"
3544
- }
3545
- }
3546
- },
3547
- "electricityMeter": {
3548
- "ta6Ref": "13.1b",
3549
- "properties": {
3550
- "location": {
3551
- "ta6Ref": "13.1b1"
3552
- }
3553
- }
3554
- },
3555
- "gasMeter": {
3556
- "ta6Ref": "13.2b",
3557
- "properties": {
3558
- "location": {
3559
- "ta6Ref": "13.2b1"
3560
- }
3561
- }
3562
- },
3563
- "stopcock": {
3564
- "ta6Ref": "13.3b",
3565
- "properties": {
3566
- "location": {
3567
- "ta6Ref": "13.3b1"
3568
- }
3569
- }
3570
- },
3571
- "waterMeter": {
3572
- "ta6Ref": "13.3b",
3573
- "properties": {
3574
- "location": {
3575
- "ta6Ref": "13.3b2"
3576
- }
3577
- }
3578
3644
  }
3579
3645
  }
3580
3646
  },