@pdtf/schemas 2.0.0-15 → 2.0.0-16

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.
package/index.js CHANGED
@@ -48,15 +48,17 @@ const combinedSchema = require("./src/schemas/v2/combined.json");
48
48
  const v2CoreSchema = require("./src/schemas/v2/pdtf-transaction.json");
49
49
 
50
50
  const baspiOverlay = require("./src/schemas/v2/overlays/baspi.json");
51
- // const ta6Overlay = require("./src/schemas/v2/overlays/ta6.json");
52
- // const ta7Overlay = require("./src/schemas/v2/overlays/ta7.json");
53
- // const lpe1Overlay = require("./src/schemas/v2/overlays/lpe1.json");
54
- // const fme1Overlay = require("./src/schemas/v2/overlays/fme1.json");
55
- // const llc1Overlay = require("./src/schemas/v2/overlays/llc1.json");
56
- // const con29ROverlay = require("./src/schemas/v2/overlays/con29R.json");
57
- // const con29DWOverlay = require("./src/schemas/v2/overlays/con29DW.json");
58
- // const rdsOverlay = require("./src/schemas/v2/overlays/rds.json");
59
- // const oc1Overlay = require("./src/schemas/v2/overlays/oc1.json");
51
+ const ta6Overlay = require("./src/schemas/v2/overlays/ta6.json");
52
+ const ta7Overlay = require("./src/schemas/v2/overlays/ta7.json");
53
+ const ta10Overlay = require("./src/schemas/v2/overlays/ta10.json");
54
+ const lpe1Overlay = require("./src/schemas/v2/overlays/lpe1.json");
55
+ const fme1Overlay = require("./src/schemas/v2/overlays/fme1.json");
56
+ const llc1Overlay = require("./src/schemas/v2/overlays/llc1.json");
57
+ const ntsOverlay = require("./src/schemas/v2/overlays/nts.json");
58
+ const con29ROverlay = require("./src/schemas/v2/overlays/con29R.json");
59
+ const con29DWOverlay = require("./src/schemas/v2/overlays/con29DW.json");
60
+ const rdsOverlay = require("./src/schemas/v2/overlays/rds.json");
61
+ const oc1Overlay = require("./src/schemas/v2/overlays/oc1.json");
60
62
 
61
63
  const overlays = { baspiV4: baspiOverlay, null: {} };
62
64
 
@@ -245,4 +247,16 @@ module.exports = {
245
247
  getTitleAtPath,
246
248
  verifiedClaimsSchema,
247
249
  validateVerifiedClaims,
250
+ baspiOverlay,
251
+ ta6Overlay,
252
+ ta7Overlay,
253
+ ta10Overlay,
254
+ lpe1Overlay,
255
+ fme1Overlay,
256
+ llc1Overlay,
257
+ ntsOverlay,
258
+ con29ROverlay,
259
+ con29DWOverlay,
260
+ rdsOverlay,
261
+ oc1Overlay,
248
262
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pdtf/schemas",
3
- "version": "2.0.0-15",
3
+ "version": "2.0.0-16",
4
4
  "description": "Property Data Trust Framework Schemas and Utilities",
5
5
  "main": "index.js",
6
6
  "directories": {
@@ -4518,7 +4518,7 @@
4518
4518
  "ntsRef": "A1.4",
4519
4519
  "lpe1Ref": "3.1",
4520
4520
  "rdsRef": "TenureAgreements/RentPayable/Value",
4521
- "title": "What is the annual ground rent payable?",
4521
+ "title": "What is the annual ground rent payable? (£)",
4522
4522
  "type": "number"
4523
4523
  },
4524
4524
  "groundRentFrequency": {
@@ -33443,10 +33443,34 @@
33443
33443
  "properties": {
33444
33444
  "publicSewerMapAttached": {
33445
33445
  "con29DWRef": "1.1",
33446
- "title": "Is a copy of an extract from the public sewer map attached?",
33446
+ "title": "Where relevant, please include a copy of an extract from the public sewer map.",
33447
+ "type": "string",
33448
+ "minLength": 1
33449
+ },
33450
+ "waterworksMapAttached": {
33451
+ "con29DWRef": "1.2",
33452
+ "title": "Where relevant, please include a copy of an extract from the map of waterworks.",
33453
+ "type": "string",
33454
+ "minLength": 1
33455
+ }
33456
+ },
33457
+ "con29DWRequired": [
33458
+ "publicSewerMapAttached",
33459
+ "waterworksMapAttached"
33460
+ ]
33461
+ },
33462
+ "drainage": {
33463
+ "type": "object",
33464
+ "con29DWRef": "2",
33465
+ "title": "Drainage",
33466
+ "properties": {
33467
+ "publicFoulDrainage": {
33468
+ "con29DWRef": "2.1",
33469
+ "title": "Does foul water from the property drain to a public sewer?",
33447
33470
  "type": "object",
33448
33471
  "properties": {
33449
33472
  "yesNo": {
33473
+ "con29DWRef": "2.1.1",
33450
33474
  "type": "string",
33451
33475
  "title": "",
33452
33476
  "enum": ["Yes", "No"]
@@ -33470,6 +33494,7 @@
33470
33494
  "enum": ["No"]
33471
33495
  },
33472
33496
  "details": {
33497
+ "con29DWRef": "2.1.2",
33473
33498
  "title": "Details",
33474
33499
  "type": "string",
33475
33500
  "minLength": 1
@@ -33479,12 +33504,13 @@
33479
33504
  }
33480
33505
  ]
33481
33506
  },
33482
- "waterworksMapAttached": {
33483
- "con29DWRef": "1.2",
33484
- "title": "Is a copy of an extract from the map of waterworks attached?",
33507
+ "publicSurfaceDrainage": {
33508
+ "con29DWRef": "2.2",
33509
+ "title": "Does surface water from the property drain to a public sewer?",
33485
33510
  "type": "object",
33486
33511
  "properties": {
33487
33512
  "yesNo": {
33513
+ "con29DWRef": "2.2.1",
33488
33514
  "type": "string",
33489
33515
  "title": "",
33490
33516
  "enum": ["Yes", "No"]
@@ -33508,6 +33534,7 @@
33508
33534
  "enum": ["No"]
33509
33535
  },
33510
33536
  "details": {
33537
+ "con29DWRef": "2.2.2",
33511
33538
  "title": "Details",
33512
33539
  "type": "string",
33513
33540
  "minLength": 1
@@ -33516,24 +33543,14 @@
33516
33543
  "con29DWRequired": ["details"]
33517
33544
  }
33518
33545
  ]
33519
- }
33520
- },
33521
- "con29DWRequired": [
33522
- "publicSewerMapAttached",
33523
- "waterworksMapAttached"
33524
- ]
33525
- },
33526
- "drainage": {
33527
- "type": "object",
33528
- "con29DWRef": "2",
33529
- "title": "Drainage",
33530
- "properties": {
33531
- "publicFoulDrainage": {
33532
- "con29DWRef": "2.1",
33533
- "title": "Does foul water from the property drain to a public sewer?",
33546
+ },
33547
+ "surfaceDrainageCharge": {
33548
+ "con29DWRef": "2.3",
33549
+ "title": "Is a surface water drainage charge payable?",
33534
33550
  "type": "object",
33535
33551
  "properties": {
33536
33552
  "yesNo": {
33553
+ "con29DWRef": "2.3.1",
33537
33554
  "type": "string",
33538
33555
  "title": "",
33539
33556
  "enum": ["Yes", "No"]
@@ -33547,16 +33564,17 @@
33547
33564
  {
33548
33565
  "properties": {
33549
33566
  "yesNo": {
33550
- "enum": ["Yes"]
33567
+ "enum": ["No"]
33551
33568
  }
33552
33569
  }
33553
33570
  },
33554
33571
  {
33555
33572
  "properties": {
33556
33573
  "yesNo": {
33557
- "enum": ["No"]
33574
+ "enum": ["Yes"]
33558
33575
  },
33559
33576
  "details": {
33577
+ "con29DWRef": "2.3.2",
33560
33578
  "title": "Details",
33561
33579
  "type": "string",
33562
33580
  "minLength": 1
@@ -33566,12 +33584,13 @@
33566
33584
  }
33567
33585
  ]
33568
33586
  },
33569
- "publicSurfaceDrainage": {
33570
- "con29DWRef": "2.2",
33571
- "title": "Does surface water from the property drain to a public sewer?",
33587
+ "publicDrainWithinBoundaries": {
33588
+ "con29DWRef": "2.4",
33589
+ "title": "Does the public sewer map indicate any public sewer, disposal main or lateral drain within the boundaries of the property?",
33572
33590
  "type": "object",
33573
33591
  "properties": {
33574
33592
  "yesNo": {
33593
+ "con29DWRef": "2.4.0.1",
33575
33594
  "type": "string",
33576
33595
  "title": "",
33577
33596
  "enum": ["Yes", "No"]
@@ -33585,16 +33604,17 @@
33585
33604
  {
33586
33605
  "properties": {
33587
33606
  "yesNo": {
33588
- "enum": ["Yes"]
33607
+ "enum": ["No"]
33589
33608
  }
33590
33609
  }
33591
33610
  },
33592
33611
  {
33593
33612
  "properties": {
33594
33613
  "yesNo": {
33595
- "enum": ["No"]
33614
+ "enum": ["Yes"]
33596
33615
  },
33597
33616
  "details": {
33617
+ "con29DWRef": "2.4.0.2",
33598
33618
  "title": "Details",
33599
33619
  "type": "string",
33600
33620
  "minLength": 1
@@ -33604,12 +33624,13 @@
33604
33624
  }
33605
33625
  ]
33606
33626
  },
33607
- "surfaceDrainageCharge": {
33608
- "con29DWRef": "2.3",
33609
- "title": "Is a surface water drainage charge payable?",
33627
+ "publicPumpingStationWithinBoundaries": {
33628
+ "con29DWRef": "2.4.1",
33629
+ "title": "Does the public sewer map indicate any public pumping station or any other ancillary apparatus within the boundaries of the property?",
33610
33630
  "type": "object",
33611
33631
  "properties": {
33612
33632
  "yesNo": {
33633
+ "con29DWRef": "2.4.1.1",
33613
33634
  "type": "string",
33614
33635
  "title": "",
33615
33636
  "enum": ["Yes", "No"]
@@ -33633,6 +33654,7 @@
33633
33654
  "enum": ["Yes"]
33634
33655
  },
33635
33656
  "details": {
33657
+ "con29DWRef": "2.4.1.2",
33636
33658
  "title": "Details",
33637
33659
  "type": "string",
33638
33660
  "minLength": 1
@@ -33642,12 +33664,13 @@
33642
33664
  }
33643
33665
  ]
33644
33666
  },
33645
- "publicDrainWithinBoundaries": {
33646
- "con29DWRef": "2.4",
33647
- "title": "Does the public sewer map indicate any public sewer, disposal main or lateral drain within the boundaries of the property?",
33667
+ "publicSewerWithin100ft": {
33668
+ "con29DWRef": "2.5",
33669
+ "title": "Does the public sewer map indicate any public sewer within 30.48 meters (100 feet) of any buildings within the property?",
33648
33670
  "type": "object",
33649
33671
  "properties": {
33650
33672
  "yesNo": {
33673
+ "con29DWRef": "2.5.0.1",
33651
33674
  "type": "string",
33652
33675
  "title": "",
33653
33676
  "enum": ["Yes", "No"]
@@ -33671,6 +33694,7 @@
33671
33694
  "enum": ["Yes"]
33672
33695
  },
33673
33696
  "details": {
33697
+ "con29DWRef": "2.5.0.2",
33674
33698
  "title": "Details",
33675
33699
  "type": "string",
33676
33700
  "minLength": 1
@@ -33680,12 +33704,13 @@
33680
33704
  }
33681
33705
  ]
33682
33706
  },
33683
- "publicSewerWithin100ft": {
33684
- "con29DWRef": "2.5",
33685
- "title": "Does the public sewer map indicate any public sewer within 30.48 meters (100 feet) of any buildings within the property?",
33707
+ "publicPumpingStationWithin50mOfBuildings": {
33708
+ "con29DWRef": "2.5.1",
33709
+ "title": "Does the public sewer map indicate any public pumping station or any other ancillary apparatus within 50 metres of any buildings within the property?",
33686
33710
  "type": "object",
33687
33711
  "properties": {
33688
33712
  "yesNo": {
33713
+ "con29DWRef": "2.5.1.1",
33689
33714
  "type": "string",
33690
33715
  "title": "",
33691
33716
  "enum": ["Yes", "No"]
@@ -33709,6 +33734,7 @@
33709
33734
  "enum": ["Yes"]
33710
33735
  },
33711
33736
  "details": {
33737
+ "con29DWRef": "2.5.1.2",
33712
33738
  "title": "Details",
33713
33739
  "type": "string",
33714
33740
  "minLength": 1
@@ -33724,6 +33750,7 @@
33724
33750
  "type": "object",
33725
33751
  "properties": {
33726
33752
  "yesNo": {
33753
+ "con29DWRef": "2.6.1",
33727
33754
  "type": "string",
33728
33755
  "title": "",
33729
33756
  "enum": ["Yes", "No"]
@@ -33747,6 +33774,7 @@
33747
33774
  "enum": ["Yes"]
33748
33775
  },
33749
33776
  "details": {
33777
+ "con29DWRef": "2.6.2",
33750
33778
  "title": "Details",
33751
33779
  "type": "string",
33752
33780
  "minLength": 1
@@ -33762,6 +33790,7 @@
33762
33790
  "type": "object",
33763
33791
  "properties": {
33764
33792
  "yesNo": {
33793
+ "con29DWRef": "2.7.1",
33765
33794
  "type": "string",
33766
33795
  "title": "",
33767
33796
  "enum": ["Yes", "No"]
@@ -33785,6 +33814,7 @@
33785
33814
  "enum": ["Yes"]
33786
33815
  },
33787
33816
  "details": {
33817
+ "con29DWRef": "2.7.2",
33788
33818
  "title": "Details",
33789
33819
  "type": "string",
33790
33820
  "minLength": 1
@@ -33796,10 +33826,11 @@
33796
33826
  },
33797
33827
  "riskOfInternalFlooding": {
33798
33828
  "con29DWRef": "2.8",
33799
- "title": "Is any building which is or Charging forms part of the property, at risk of internal flooding due to overloaded public sewers?",
33829
+ "title": "Is any building which is or forms part of the property, at risk of internal flooding due to overloaded public sewers?",
33800
33830
  "type": "object",
33801
33831
  "properties": {
33802
33832
  "yesNo": {
33833
+ "con29DWRef": "2.8.1",
33803
33834
  "type": "string",
33804
33835
  "title": "",
33805
33836
  "enum": ["Yes", "No"]
@@ -33823,6 +33854,7 @@
33823
33854
  "enum": ["Yes"]
33824
33855
  },
33825
33856
  "details": {
33857
+ "con29DWRef": "2.8.2",
33826
33858
  "title": "Details",
33827
33859
  "type": "string",
33828
33860
  "minLength": 1
@@ -33844,7 +33876,9 @@
33844
33876
  "publicSurfaceDrainage",
33845
33877
  "surfaceDrainageCharge",
33846
33878
  "publicDrainWithinBoundaries",
33879
+ "publicPumpingStationWithinBoundaries",
33847
33880
  "publicSewerWithin100ft",
33881
+ "publicPumpingStationWithin50mOfBuildings",
33848
33882
  "sewersSubjectOfAdoptionAgreement",
33849
33883
  "sewerageUndertakerApproval",
33850
33884
  "riskOfInternalFlooding",
@@ -33862,6 +33896,7 @@
33862
33896
  "type": "object",
33863
33897
  "properties": {
33864
33898
  "yesNo": {
33899
+ "con29DWRef": "3.1.1",
33865
33900
  "type": "string",
33866
33901
  "title": "",
33867
33902
  "enum": ["Yes", "No"]
@@ -33885,6 +33920,7 @@
33885
33920
  "enum": ["No"]
33886
33921
  },
33887
33922
  "details": {
33923
+ "con29DWRef": "3.1.2",
33888
33924
  "title": "Details",
33889
33925
  "type": "string",
33890
33926
  "minLength": 1
@@ -33900,6 +33936,7 @@
33900
33936
  "type": "object",
33901
33937
  "properties": {
33902
33938
  "yesNo": {
33939
+ "con29DWRef": "3.2.1",
33903
33940
  "type": "string",
33904
33941
  "title": "",
33905
33942
  "enum": ["Yes", "No"]
@@ -33923,6 +33960,7 @@
33923
33960
  "enum": ["Yes"]
33924
33961
  },
33925
33962
  "details": {
33963
+ "con29DWRef": "3.2.2",
33926
33964
  "title": "Details",
33927
33965
  "type": "string",
33928
33966
  "minLength": 1
@@ -33934,10 +33972,11 @@
33934
33972
  },
33935
33973
  "waterMainsSubjectOfAdoptionAgreement": {
33936
33974
  "con29DWRef": "3.3",
33937
- "title": "Is any water main or service pipe serving, or which is proposed to serve the property, the subject of an existing adoption agreement or an application for such an agreement?",
33975
+ "title": "Is any water main or service pipe serving or which is proposed to serve the property, the subject of an existing adoption agreement or an application for such an agreement?",
33938
33976
  "type": "object",
33939
33977
  "properties": {
33940
33978
  "yesNo": {
33979
+ "con29DWRef": "3.3.1",
33941
33980
  "type": "string",
33942
33981
  "title": "",
33943
33982
  "enum": ["Yes", "No"]
@@ -33961,6 +34000,7 @@
33961
34000
  "enum": ["Yes"]
33962
34001
  },
33963
34002
  "details": {
34003
+ "con29DWRef": "3.3.2",
33964
34004
  "title": "Details",
33965
34005
  "type": "string",
33966
34006
  "minLength": 1
@@ -33976,6 +34016,7 @@
33976
34016
  "type": "object",
33977
34017
  "properties": {
33978
34018
  "yesNo": {
34019
+ "con29DWRef": "3.4.1",
33979
34020
  "type": "string",
33980
34021
  "title": "",
33981
34022
  "enum": ["Yes", "No"]
@@ -33999,6 +34040,7 @@
33999
34040
  "enum": ["Yes"]
34000
34041
  },
34001
34042
  "details": {
34043
+ "con29DWRef": "3.4.2",
34002
34044
  "title": "Details",
34003
34045
  "type": "string",
34004
34046
  "minLength": 1
@@ -34008,88 +34050,17 @@
34008
34050
  }
34009
34051
  ]
34010
34052
  },
34011
- "waterQualityAnalysis": {
34053
+ "supplyClassification": {
34012
34054
  "con29DWRef": "3.5",
34013
- "title": "Please include details of a water quality analysis made by the water undertaker for the water supply zone in respect of the most recent calendar year.",
34014
- "altTitle": "What is the classification of the water supply for the property?",
34055
+ "title": "What is the classification of the water supply for the property?",
34015
34056
  "type": "string",
34016
34057
  "minLength": 1
34017
34058
  },
34018
- "authorisedDeparturesFrom2000Regulations": {
34019
- "con29DWRef": "3.6",
34020
- "title": "Are there any departures authorised by the Secretary of State or National Assembly for Wales under Part 6 of the 2000 Regulations from the provisions of Part 3 of those Regulations.",
34021
- "type": "object",
34022
- "properties": {
34023
- "yesNo": {
34024
- "type": "string",
34025
- "title": "",
34026
- "enum": ["Yes", "No"]
34027
- }
34028
- },
34029
- "con29DWRequired": ["yesNo"],
34030
- "discriminator": {
34031
- "propertyName": "yesNo"
34032
- },
34033
- "oneOf": [
34034
- {
34035
- "properties": {
34036
- "yesNo": {
34037
- "enum": ["No"]
34038
- }
34039
- }
34040
- },
34041
- {
34042
- "properties": {
34043
- "yesNo": {
34044
- "enum": ["Yes"]
34045
- },
34046
- "details": {
34047
- "title": "Details",
34048
- "type": "string",
34049
- "minLength": 1
34050
- }
34051
- },
34052
- "con29DWRequired": ["details"]
34053
- }
34054
- ]
34055
- },
34056
34059
  "waterMeterLocation": {
34057
- "con29DWRef": "3.7",
34058
- "title": "Is there a water meter serving the property?",
34059
- "type": "object",
34060
- "properties": {
34061
- "yesNo": {
34062
- "type": "string",
34063
- "title": "",
34064
- "enum": ["Yes", "No"]
34065
- }
34066
- },
34067
- "con29DWRequired": ["yesNo"],
34068
- "discriminator": {
34069
- "propertyName": "yesNo"
34070
- },
34071
- "oneOf": [
34072
- {
34073
- "properties": {
34074
- "yesNo": {
34075
- "enum": ["No"]
34076
- }
34077
- }
34078
- },
34079
- {
34080
- "properties": {
34081
- "yesNo": {
34082
- "enum": ["Yes"]
34083
- },
34084
- "details": {
34085
- "title": "Details",
34086
- "type": "string",
34087
- "minLength": 1
34088
- }
34089
- },
34090
- "con29DWRequired": ["details"]
34091
- }
34092
- ]
34060
+ "con29DWRef": "3.6",
34061
+ "title": "Please include details of the location of any water meter serving the property.",
34062
+ "type": "string",
34063
+ "minLength": 1
34093
34064
  }
34094
34065
  },
34095
34066
  "con29DWRequired": [
@@ -34098,7 +34069,6 @@
34098
34069
  "waterMainsSubjectOfAdoptionAgreement",
34099
34070
  "lowWaterPressureRisk",
34100
34071
  "waterQualityAnalysis",
34101
- "authorisedDeparturesFrom2000Regulations",
34102
34072
  "waterMeterLocation"
34103
34073
  ]
34104
34074
  },
@@ -34109,13 +34079,13 @@
34109
34079
  "properties": {
34110
34080
  "sewerageProvider": {
34111
34081
  "con29DWRef": "4.1.1",
34112
- "title": "Who is responsible for providing the sewerage services for the property?",
34082
+ "title": "Who are the sewerage undertakers for the property?",
34113
34083
  "type": "string",
34114
34084
  "minLength": 1
34115
34085
  },
34116
34086
  "waterProvider": {
34117
34087
  "con29DWRef": "4.1.2",
34118
- "title": "Who is responsible for providing the water services for the property?",
34088
+ "title": "Who are the water undertakers for the property?",
34119
34089
  "type": "string",
34120
34090
  "minLength": 1
34121
34091
  },
@@ -866,7 +866,7 @@
866
866
  },
867
867
  "annualGroundRent": {
868
868
  "baspiRef": "A1.4.2.2",
869
- "title": "What is the annual ground rent payable?"
869
+ "title": "What is the annual ground rent payable? (£)"
870
870
  },
871
871
  "rentSubjectToIncrease": {
872
872
  "baspiRef": "A1.4.2.3",