@pdtf/schemas 3.6.0-9 → 3.6.0-dev.10

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.
Files changed (85) hide show
  1. package/README.md +57 -33
  2. package/docs/branch-release-workflow.md +138 -0
  3. package/docs/sef25-extensions-ui-spec.md +355 -0
  4. package/index.js +131 -75
  5. package/package.json +14 -2
  6. package/src/schemas/v3/combined.json +7952 -1721
  7. package/src/schemas/v3/compactSkeleton.txt +379 -5
  8. package/src/schemas/v3/overlays/baspi4.json +205 -93
  9. package/src/schemas/v3/overlays/baspi5.json +210 -95
  10. package/src/schemas/v3/overlays/extensions/ac.json +334 -0
  11. package/src/schemas/v3/overlays/extensions/as.json +4 -2
  12. package/src/schemas/v3/overlays/extensions/dk.json +33 -0
  13. package/src/schemas/v3/overlays/extensions/dr.json +9 -9
  14. package/src/schemas/v3/overlays/extensions/er.json +4 -2
  15. package/src/schemas/v3/overlays/extensions/fd.json +6 -3
  16. package/src/schemas/v3/overlays/extensions/hi.json +6 -3
  17. package/src/schemas/v3/overlays/extensions/hs.json +4 -2
  18. package/src/schemas/v3/overlays/extensions/ic.json +94 -0
  19. package/src/schemas/v3/overlays/extensions/jk.json +28 -8
  20. package/src/schemas/v3/overlays/extensions/la.json +4 -2
  21. package/src/schemas/v3/overlays/extensions/lc.json +76 -0
  22. package/src/schemas/v3/overlays/extensions/ma.json +6 -3
  23. package/src/schemas/v3/overlays/extensions/mc.json +4 -2
  24. package/src/schemas/v3/overlays/extensions/mi.json +70 -0
  25. package/src/schemas/v3/overlays/extensions/nd.json +44 -0
  26. package/src/schemas/v3/overlays/extensions/oa.json +4 -2
  27. package/src/schemas/v3/overlays/extensions/oc.json +4 -2
  28. package/src/schemas/v3/overlays/extensions/pc.json +38 -0
  29. package/src/schemas/v3/overlays/extensions/ph.json +195 -0
  30. package/src/schemas/v3/overlays/extensions/rw.json +69 -0
  31. package/src/schemas/v3/overlays/extensions/sb.json +4 -2
  32. package/src/schemas/v3/overlays/extensions/sc.json +133 -0
  33. package/src/schemas/v3/overlays/extensions/sd.json +64 -0
  34. package/src/schemas/v3/overlays/extensions/sf.json +4 -2
  35. package/src/schemas/v3/overlays/extensions/sl.json +4 -2
  36. package/src/schemas/v3/overlays/extensions/ta.json +204 -0
  37. package/src/schemas/v3/overlays/extensions/tf.json +6 -3
  38. package/src/schemas/v3/overlays/extensions/tr.json +74 -0
  39. package/src/schemas/v3/overlays/extensions/wg.json +351 -0
  40. package/src/schemas/v3/overlays/fme1.json +16 -14
  41. package/src/schemas/v3/overlays/llc1.json +1 -2
  42. package/src/schemas/v3/overlays/lpe1.json +61 -31
  43. package/src/schemas/v3/overlays/nts.json +71 -2
  44. package/src/schemas/v3/overlays/nts2.json +71 -5
  45. package/src/schemas/v3/overlays/ntsl.json +71 -2
  46. package/src/schemas/v3/overlays/ntsl2.json +71 -5
  47. package/src/schemas/v3/overlays/piq.json +60 -27
  48. package/src/schemas/v3/overlays/rds.json +139 -57
  49. package/src/schemas/v3/overlays/sef25.json +1653 -0
  50. package/src/schemas/v3/overlays/ta10.json +0 -9
  51. package/src/schemas/v3/overlays/ta6.json +83 -85
  52. package/src/schemas/v3/overlays/ta6ed6.json +6641 -0
  53. package/src/schemas/v3/overlays/ta7.json +70 -6
  54. package/src/schemas/v3/overlays/ta7ed5.json +1597 -0
  55. package/src/schemas/v3/pdtf-transaction.json +4525 -1013
  56. package/src/schemas/v3/skeleton.json +512 -40
  57. package/src/utils/extractExtensionOverlays.js +302 -31
  58. package/src/utils/extractOverlay.js +114 -27
  59. package/src/utils/pathSkeleton.js +1 -1
  60. package/.claude/settings.local.json +0 -42
  61. package/.github/workflows/pages.yml +0 -50
  62. package/CNAME +0 -1
  63. package/_config.yml +0 -1
  64. package/src/examples/v1/exampleAddParticipantVouch.json +0 -32
  65. package/src/examples/v1/exampleDocumentedVouch.json +0 -40
  66. package/src/examples/v1/exampleElectronicRecord.json +0 -30
  67. package/src/examples/v1/exampleTransaction.json +0 -878
  68. package/src/examples/v1/exampleVouch.json +0 -25
  69. package/src/examples/v2/exampleTransaction.json +0 -901
  70. package/src/examples/v3/exampleAddParticipantVouch.json +0 -38
  71. package/src/examples/v3/exampleCustomOverlay.json +0 -55
  72. package/src/examples/v3/exampleCustomOverlay2.json +0 -93
  73. package/src/examples/v3/exampleDocumentedVouch.json +0 -47
  74. package/src/examples/v3/exampleElectronicRecord.json +0 -36
  75. package/src/examples/v3/exampleTransaction.json +0 -1038
  76. package/src/examples/v3/exampleVouch.json +0 -32
  77. package/src/mappings/SendPropertyDetailsRequestSchema.json +0 -1588
  78. package/src/mappings/adf.js +0 -198
  79. package/src/tests/v3/caching.test.js +0 -591
  80. package/src/tests/v3/enquiries.test.js +0 -1096
  81. package/src/tests/v3/extensionOverlays.test.js +0 -525
  82. package/src/tests/v3/offers.test.js +0 -823
  83. package/src/tests/v3/patternProperties.test.js +0 -688
  84. package/src/tests/v3/transactionSchema.test.js +0 -615
  85. package/src/tests/v3/verifiedClaimsValidator.test.js +0 -195
@@ -787,6 +787,29 @@
787
787
  },
788
788
  "electricVehicleChargingPoint": {
789
789
  "nts2Ref": "B4.4",
790
+ "discriminator": {
791
+ "propertyName": "yesNo"
792
+ },
793
+ "oneOf": [
794
+ {
795
+ "properties": {
796
+ "yesNo": {
797
+ "enum": [
798
+ "No"
799
+ ]
800
+ }
801
+ }
802
+ },
803
+ {
804
+ "properties": {
805
+ "yesNo": {
806
+ "enum": [
807
+ "Yes"
808
+ ]
809
+ }
810
+ }
811
+ }
812
+ ],
790
813
  "required": [
791
814
  "yesNo"
792
815
  ],
@@ -1037,7 +1060,9 @@
1037
1060
  "properties": {
1038
1061
  "yesNo": {
1039
1062
  "enum": [
1040
- "No"
1063
+ "No",
1064
+ "Not applicable",
1065
+ "Not known"
1041
1066
  ]
1042
1067
  }
1043
1068
  }
@@ -1378,9 +1403,6 @@
1378
1403
  },
1379
1404
  "details": {
1380
1405
  "nts2Ref": "A5.1.2"
1381
- },
1382
- "attachments": {
1383
- "nts2Ref": "A5.1.3"
1384
1406
  }
1385
1407
  },
1386
1408
  "required": [
@@ -2221,7 +2243,25 @@
2221
2243
  }
2222
2244
  },
2223
2245
  "otherHeatingFeatures": {
2224
- "nts2Ref": "B3.4.2"
2246
+ "nts2Ref": "B3.4.2",
2247
+ "items": {
2248
+ "enum": [
2249
+ "None",
2250
+ "Air conditioning",
2251
+ "Double glazing",
2252
+ "Triple glazing",
2253
+ "Night storage",
2254
+ "Solar water",
2255
+ "Underfloor heating",
2256
+ "Wood burner",
2257
+ "Aga/Rayburn",
2258
+ "Open fire",
2259
+ "Ground source heat pump",
2260
+ "Air source heat pump",
2261
+ "Solar thermal",
2262
+ "Passive House design"
2263
+ ]
2264
+ }
2225
2265
  }
2226
2266
  }
2227
2267
  },
@@ -2253,6 +2293,32 @@
2253
2293
  },
2254
2294
  "broadband": {
2255
2295
  "nts2Ref": "B3.5",
2296
+ "discriminator": {
2297
+ "propertyName": "typeOfConnection"
2298
+ },
2299
+ "oneOf": [
2300
+ {
2301
+ "properties": {
2302
+ "typeOfConnection": {
2303
+ "enum": [
2304
+ "None"
2305
+ ]
2306
+ }
2307
+ }
2308
+ },
2309
+ {
2310
+ "properties": {
2311
+ "typeOfConnection": {
2312
+ "enum": [
2313
+ "ADSL copper wire",
2314
+ "Cable",
2315
+ "FTTC (Fibre to the Cabinet)",
2316
+ "FTTP (Fibre to the Premises)"
2317
+ ]
2318
+ }
2319
+ }
2320
+ }
2321
+ ],
2256
2322
  "required": [
2257
2323
  "typeOfConnection"
2258
2324
  ],
@@ -292,6 +292,29 @@
292
292
  },
293
293
  "electricVehicleChargingPoint": {
294
294
  "ntslRef": "B4.4",
295
+ "discriminator": {
296
+ "propertyName": "yesNo"
297
+ },
298
+ "oneOf": [
299
+ {
300
+ "properties": {
301
+ "yesNo": {
302
+ "enum": [
303
+ "No"
304
+ ]
305
+ }
306
+ }
307
+ },
308
+ {
309
+ "properties": {
310
+ "yesNo": {
311
+ "enum": [
312
+ "Yes"
313
+ ]
314
+ }
315
+ }
316
+ }
317
+ ],
295
318
  "required": [
296
319
  "yesNo"
297
320
  ],
@@ -534,7 +557,9 @@
534
557
  "properties": {
535
558
  "yesNo": {
536
559
  "enum": [
537
- "No"
560
+ "No",
561
+ "Not applicable",
562
+ "Not known"
538
563
  ]
539
564
  }
540
565
  }
@@ -1374,7 +1399,25 @@
1374
1399
  }
1375
1400
  },
1376
1401
  "otherHeatingFeatures": {
1377
- "ntslRef": "B3.4.2"
1402
+ "ntslRef": "B3.4.2",
1403
+ "items": {
1404
+ "enum": [
1405
+ "None",
1406
+ "Air conditioning",
1407
+ "Double glazing",
1408
+ "Triple glazing",
1409
+ "Night storage",
1410
+ "Solar water",
1411
+ "Underfloor heating",
1412
+ "Wood burner",
1413
+ "Aga/Rayburn",
1414
+ "Open fire",
1415
+ "Ground source heat pump",
1416
+ "Air source heat pump",
1417
+ "Solar thermal",
1418
+ "Passive House design"
1419
+ ]
1420
+ }
1378
1421
  }
1379
1422
  }
1380
1423
  },
@@ -1406,6 +1449,32 @@
1406
1449
  },
1407
1450
  "broadband": {
1408
1451
  "ntslRef": "B3.5",
1452
+ "discriminator": {
1453
+ "propertyName": "typeOfConnection"
1454
+ },
1455
+ "oneOf": [
1456
+ {
1457
+ "properties": {
1458
+ "typeOfConnection": {
1459
+ "enum": [
1460
+ "None"
1461
+ ]
1462
+ }
1463
+ }
1464
+ },
1465
+ {
1466
+ "properties": {
1467
+ "typeOfConnection": {
1468
+ "enum": [
1469
+ "ADSL copper wire",
1470
+ "Cable",
1471
+ "FTTC (Fibre to the Cabinet)",
1472
+ "FTTP (Fibre to the Premises)"
1473
+ ]
1474
+ }
1475
+ }
1476
+ }
1477
+ ],
1409
1478
  "required": [
1410
1479
  "typeOfConnection"
1411
1480
  ],
@@ -313,6 +313,29 @@
313
313
  },
314
314
  "electricVehicleChargingPoint": {
315
315
  "ntsl2Ref": "B4.4",
316
+ "discriminator": {
317
+ "propertyName": "yesNo"
318
+ },
319
+ "oneOf": [
320
+ {
321
+ "properties": {
322
+ "yesNo": {
323
+ "enum": [
324
+ "No"
325
+ ]
326
+ }
327
+ }
328
+ },
329
+ {
330
+ "properties": {
331
+ "yesNo": {
332
+ "enum": [
333
+ "Yes"
334
+ ]
335
+ }
336
+ }
337
+ }
338
+ ],
316
339
  "required": [
317
340
  "yesNo"
318
341
  ],
@@ -563,7 +586,9 @@
563
586
  "properties": {
564
587
  "yesNo": {
565
588
  "enum": [
566
- "No"
589
+ "No",
590
+ "Not applicable",
591
+ "Not known"
567
592
  ]
568
593
  }
569
594
  }
@@ -897,9 +922,6 @@
897
922
  },
898
923
  "details": {
899
924
  "ntsl2Ref": "A5.1.2"
900
- },
901
- "attachments": {
902
- "ntsl2Ref": "A5.1.3"
903
925
  }
904
926
  },
905
927
  "required": [
@@ -1740,7 +1762,25 @@
1740
1762
  }
1741
1763
  },
1742
1764
  "otherHeatingFeatures": {
1743
- "ntsl2Ref": "B3.4.2"
1765
+ "ntsl2Ref": "B3.4.2",
1766
+ "items": {
1767
+ "enum": [
1768
+ "None",
1769
+ "Air conditioning",
1770
+ "Double glazing",
1771
+ "Triple glazing",
1772
+ "Night storage",
1773
+ "Solar water",
1774
+ "Underfloor heating",
1775
+ "Wood burner",
1776
+ "Aga/Rayburn",
1777
+ "Open fire",
1778
+ "Ground source heat pump",
1779
+ "Air source heat pump",
1780
+ "Solar thermal",
1781
+ "Passive House design"
1782
+ ]
1783
+ }
1744
1784
  }
1745
1785
  }
1746
1786
  },
@@ -1772,6 +1812,32 @@
1772
1812
  },
1773
1813
  "broadband": {
1774
1814
  "ntsl2Ref": "B3.5",
1815
+ "discriminator": {
1816
+ "propertyName": "typeOfConnection"
1817
+ },
1818
+ "oneOf": [
1819
+ {
1820
+ "properties": {
1821
+ "typeOfConnection": {
1822
+ "enum": [
1823
+ "None"
1824
+ ]
1825
+ }
1826
+ }
1827
+ },
1828
+ {
1829
+ "properties": {
1830
+ "typeOfConnection": {
1831
+ "enum": [
1832
+ "ADSL copper wire",
1833
+ "Cable",
1834
+ "FTTC (Fibre to the Cabinet)",
1835
+ "FTTP (Fibre to the Premises)"
1836
+ ]
1837
+ }
1838
+ }
1839
+ }
1840
+ ],
1775
1841
  "required": [
1776
1842
  "typeOfConnection"
1777
1843
  ],
@@ -13,16 +13,17 @@
13
13
  "properties": {
14
14
  "role": {
15
15
  "enum": [
16
- "Seller's Conveyancer",
17
16
  "Prospective Buyer",
18
17
  "Buyer's Conveyancer",
18
+ "Seller's Conveyancer",
19
19
  "Estate Agent",
20
20
  "Buyer's Agent",
21
21
  "Surveyor",
22
22
  "Mortgage Broker",
23
23
  "Lender",
24
24
  "Landlord",
25
- "Tenant"
25
+ "Tenant",
26
+ "Platform Support"
26
27
  ]
27
28
  }
28
29
  }
@@ -65,14 +66,22 @@
65
66
  "enum": [
66
67
  "Personal Representative for a Deceased Owner",
67
68
  "Under Power of Attorney",
68
- "Company Director",
69
- "Company Secretary",
70
69
  "Trustee",
71
70
  "Assistant",
72
71
  "Other"
73
72
  ]
74
73
  }
75
74
  }
75
+ },
76
+ {
77
+ "properties": {
78
+ "capacity": {
79
+ "enum": [
80
+ "Company Director",
81
+ "Company Secretary"
82
+ ]
83
+ }
84
+ }
76
85
  }
77
86
  ]
78
87
  }
@@ -1625,7 +1634,8 @@
1625
1634
  "properties": {
1626
1635
  "yesNo": {
1627
1636
  "enum": [
1628
- "Yes"
1637
+ "Yes",
1638
+ "Not known"
1629
1639
  ]
1630
1640
  }
1631
1641
  }
@@ -1746,6 +1756,32 @@
1746
1756
  },
1747
1757
  "broadband": {
1748
1758
  "piqRef": "A7.1.15",
1759
+ "discriminator": {
1760
+ "propertyName": "typeOfConnection"
1761
+ },
1762
+ "oneOf": [
1763
+ {
1764
+ "properties": {
1765
+ "typeOfConnection": {
1766
+ "enum": [
1767
+ "None"
1768
+ ]
1769
+ }
1770
+ }
1771
+ },
1772
+ {
1773
+ "properties": {
1774
+ "typeOfConnection": {
1775
+ "enum": [
1776
+ "ADSL copper wire",
1777
+ "Cable",
1778
+ "FTTC (Fibre to the Cabinet)",
1779
+ "FTTP (Fibre to the Premises)"
1780
+ ]
1781
+ }
1782
+ }
1783
+ }
1784
+ ],
1749
1785
  "properties": {
1750
1786
  "typeOfConnection": {
1751
1787
  "piqRef": "A7.1.16"
@@ -1914,7 +1950,8 @@
1914
1950
  "properties": {
1915
1951
  "yesNo": {
1916
1952
  "enum": [
1917
- "No"
1953
+ "No",
1954
+ "Not applicable"
1918
1955
  ]
1919
1956
  }
1920
1957
  }
@@ -1982,7 +2019,8 @@
1982
2019
  "properties": {
1983
2020
  "yesNo": {
1984
2021
  "enum": [
1985
- "No"
2022
+ "No",
2023
+ "Not known"
1986
2024
  ]
1987
2025
  }
1988
2026
  }
@@ -2306,8 +2344,7 @@
2306
2344
  "properties": {
2307
2345
  "riskIndicator": {
2308
2346
  "enum": [
2309
- "No",
2310
- "Not known"
2347
+ "No"
2311
2348
  ]
2312
2349
  }
2313
2350
  }
@@ -2603,28 +2640,24 @@
2603
2640
  }
2604
2641
  },
2605
2642
  "ownership": {
2606
- "oneOf": [
2607
- {
2643
+ "properties": {
2644
+ "uniformBoundaries": {
2608
2645
  "properties": {
2609
- "uniformBoundaries": {
2610
- "properties": {
2611
- "left": {
2612
- "piqRef": "B3.1.1"
2613
- },
2614
- "right": {
2615
- "piqRef": "B3.1.2"
2616
- },
2617
- "rear": {
2618
- "piqRef": "B3.1.3"
2619
- },
2620
- "front": {
2621
- "piqRef": "B3.1.4"
2622
- }
2623
- }
2646
+ "left": {
2647
+ "piqRef": "B3.1.1"
2648
+ },
2649
+ "right": {
2650
+ "piqRef": "B3.1.2"
2651
+ },
2652
+ "rear": {
2653
+ "piqRef": "B3.1.3"
2654
+ },
2655
+ "front": {
2656
+ "piqRef": "B3.1.4"
2624
2657
  }
2625
2658
  }
2626
2659
  }
2627
- ]
2660
+ }
2628
2661
  },
2629
2662
  "haveBoundaryFeaturesMoved": {
2630
2663
  "piqRef": "B3.3",