@pdtf/schemas 3.6.0-24 → 3.6.0-27

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/package.json CHANGED
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "name": "@pdtf/schemas",
3
-
4
- "version": "3.6.0-24",
3
+ "version": "3.6.0-27",
5
4
  "description": "Property Data Trust Framework Schemas and Utilities",
6
5
  "main": "index.js",
7
6
  "directories": {
@@ -12136,7 +12136,6 @@
12136
12136
  "removalOfChimneyBreast",
12137
12137
  "insulation",
12138
12138
  "otherBuildingWorksOrChangesToTheProperty",
12139
- "changeOfUse",
12140
12139
  "nonResidentialPurposes",
12141
12140
  "planningPermissionBreaches",
12142
12141
  "unresolvedPlanningIssues"
@@ -15130,6 +15129,7 @@
15130
15129
  "baspi5Ref": "A4.1.1",
15131
15130
  "piqRef": "A4.1.1",
15132
15131
  "ta6Ref": "3.2.1",
15132
+ "ta6ed6Ref": "4.2.1",
15133
15133
  "type": "string",
15134
15134
  "title": "",
15135
15135
  "enum": ["Yes", "No"]
@@ -15167,6 +15167,7 @@
15167
15167
  "baspi4Ref": "A4.1.2",
15168
15168
  "baspi5Ref": "A4.1.2",
15169
15169
  "ta6Ref": "3.2.2",
15170
+ "ta6ed6Ref": "4.2.2",
15170
15171
  "title": "Details",
15171
15172
  "type": "string",
15172
15173
  "minLength": 1
@@ -15182,6 +15183,7 @@
15182
15183
  "baspi4Required": ["details", "attachments"],
15183
15184
  "baspi5Required": ["details", "attachments"],
15184
15185
  "ta6Required": ["details"],
15186
+ "ta6ed6Required": ["details"],
15185
15187
  "ntsRequired": ["details"],
15186
15188
  "nts2Required": ["details"],
15187
15189
  "ntslRequired": ["details"],
@@ -15212,6 +15214,7 @@
15212
15214
  "baspi5Ref": "A4.2.1",
15213
15215
  "ta6Ref": "3.1.1",
15214
15216
  "piqRef": "A4.2.1",
15217
+ "ta6ed6Ref": "4.3.1",
15215
15218
  "type": "string",
15216
15219
  "title": "",
15217
15220
  "enum": ["Yes", "No"]
@@ -15249,6 +15252,7 @@
15249
15252
  "baspi4Ref": "A4.2.2",
15250
15253
  "baspi5Ref": "A4.2.2",
15251
15254
  "ta6Ref": "3.1.2",
15255
+ "ta6ed6Ref": "4.3.2",
15252
15256
  "title": "Details",
15253
15257
  "type": "string",
15254
15258
  "minLength": 1
@@ -15264,6 +15268,7 @@
15264
15268
  "baspi4Required": ["details", "attachments"],
15265
15269
  "baspi5Required": ["details", "attachments"],
15266
15270
  "ta6Required": ["details"],
15271
+ "ta6ed6Required": ["details"],
15267
15272
  "ntsRequired": ["details"],
15268
15273
  "nts2Required": ["details"],
15269
15274
  "ntslRequired": ["details"],
@@ -15464,6 +15469,7 @@
15464
15469
  "baspi4Ref": "A4.6.1",
15465
15470
  "baspi5Ref": "A4.6.1",
15466
15471
  "ta6Ref": "1.6.1",
15472
+ "ta6ed6Ref": "2.5.1",
15467
15473
  "type": "string",
15468
15474
  "title": "",
15469
15475
  "enum": ["Yes", "No"]
@@ -15493,6 +15499,7 @@
15493
15499
  "baspi4Ref": "A4.6.2",
15494
15500
  "baspi5Ref": "A4.6.2",
15495
15501
  "ta6Ref": "1.6.2",
15502
+ "ta6ed6Ref": "2.5.2",
15496
15503
  "title": "Details",
15497
15504
  "type": "string",
15498
15505
  "minLength": 1
@@ -15508,7 +15515,8 @@
15508
15515
  },
15509
15516
  "baspi4Required": ["details", "attachments"],
15510
15517
  "baspi5Required": ["details", "attachments"],
15511
- "ta6Required": ["details"]
15518
+ "ta6Required": ["details"],
15519
+ "ta6ed6Required": ["details"]
15512
15520
  }
15513
15521
  ]
15514
15522
  },
@@ -15527,6 +15535,7 @@
15527
15535
  "baspi5Ref": "A4.7.1",
15528
15536
  "ta6Ref": "3.1.1",
15529
15537
  "piqRef": "A4.6.1",
15538
+ "ta6ed6Ref": "4.1.1",
15530
15539
  "type": "string",
15531
15540
  "title": "",
15532
15541
  "enum": ["Yes", "No"]
@@ -15556,6 +15565,7 @@
15556
15565
  "baspi4Ref": "A4.7.2",
15557
15566
  "baspi5Ref": "A4.7.2",
15558
15567
  "ta6Ref": "3.1.2",
15568
+ "ta6ed6Ref": "4.1.2",
15559
15569
  "title": "Details",
15560
15570
  "type": "string",
15561
15571
  "minLength": 1
@@ -15570,7 +15580,8 @@
15570
15580
  },
15571
15581
  "baspi4Required": ["details", "attachments"],
15572
15582
  "baspi5Required": ["details", "attachments"],
15573
- "ta6Required": ["details"]
15583
+ "ta6Required": ["details"],
15584
+ "ta6ed6Required": ["details"]
15574
15585
  }
15575
15586
  ]
15576
15587
  }
@@ -22650,6 +22661,7 @@
22650
22661
  "ta6ed6Ref": "11.5",
22651
22662
  "con29DWRef": "2",
22652
22663
  "title": "Drainage",
22664
+ "ta6ed6Title": "Drains and sewers",
22653
22665
  "type": "object",
22654
22666
  "baspi4Required": [
22655
22667
  "mainsSurfaceWaterDrainage",
@@ -22675,8 +22687,7 @@
22675
22687
  "ta6Required": ["mainsSurfaceWaterDrainage", "mainsFoulDrainage"],
22676
22688
  "ta6ed6Required": [
22677
22689
  "mainsFoulDrainage",
22678
- "mainsSurfaceWaterDrainage",
22679
- "offMainsDrainageSystem"
22690
+ "mainsSurfaceWaterDrainage"
22680
22691
  ],
22681
22692
  "con29DWRequired": [
22682
22693
  "mainsSurfaceWaterDrainage",
@@ -22691,7 +22702,6 @@
22691
22702
  "riskOfInternalFlooding",
22692
22703
  "distanceToNearestSewerageTreatment"
22693
22704
  ],
22694
- "ta6ed6Title": "Drains and sewers",
22695
22705
  "properties": {
22696
22706
  "mainsSurfaceWaterDrainage": {
22697
22707
  "ntsRef": "B3.3.1",
@@ -22809,6 +22819,7 @@
22809
22819
  "baspi4Ref": "A7.1.0.11.1",
22810
22820
  "baspi5Ref": "A7.1.0.11.1",
22811
22821
  "ta6Ref": "12.4a1",
22822
+ "ta6ed6Ref": "11.5a1",
22812
22823
  "type": "string",
22813
22824
  "title": "",
22814
22825
  "enum": ["Yes", "To be connected", "No", "Not known"],
@@ -23383,6 +23394,8 @@
23383
23394
  "nts2Required": ["offMainsDrainageSystem"],
23384
23395
  "ntslRequired": ["offMainsDrainageSystem"],
23385
23396
  "ntsl2Required": ["offMainsDrainageSystem"],
23397
+ "ta6Required": ["offMainsDrainageSystem"],
23398
+ "ta6ed6Required": ["offMainsDrainageSystem"],
23386
23399
  "sef25Required": ["associatedCost"]
23387
23400
  }
23388
23401
  ]
@@ -24208,6 +24221,7 @@
24208
24221
  "type": "object",
24209
24222
  "properties": {
24210
24223
  "yesNo": {
24224
+ "ta6ed6Ref": "11.4c1",
24211
24225
  "type": "string",
24212
24226
  "enum": ["Yes", "No", "Not known"]
24213
24227
  }
@@ -26900,7 +26914,7 @@
26900
26914
  "baspi4Required": ["yesNo"],
26901
26915
  "baspi5Required": ["yesNo"],
26902
26916
  "ta6Required": ["yesNo"],
26903
- "ta6EdRequired": ["yesNo"]
26917
+ "ta6ed6Required": ["yesNo"]
26904
26918
  }
26905
26919
  }
26906
26920
  },
@@ -29722,20 +29736,7 @@
29722
29736
  "baspi4Required": ["hasValidGuaranteesOrWarranties"],
29723
29737
  "baspi5Required": ["hasValidGuaranteesOrWarranties"],
29724
29738
  "ta6Required": ["hasValidGuaranteesOrWarranties"],
29725
- "ta6ed6Required": [
29726
- "hasValidGuaranteesOrWarranties",
29727
- "newHomeWarranty",
29728
- "dampProofingTreatment",
29729
- "timberRotOrInfestationTreatment",
29730
- "doubleGlazing",
29731
- "roofingWork",
29732
- "centralHeatingAndorPlumbing",
29733
- "underpinning",
29734
- "insulation",
29735
- "otherGuarantees",
29736
- "outstandingClaimsOrApplications",
29737
- "breachOfTermsOrConditions"
29738
- ],
29739
+ "ta6ed6Required": ["hasValidGuaranteesOrWarranties"],
29739
29740
  "properties": {
29740
29741
  "hasValidGuaranteesOrWarranties": {
29741
29742
  "baspi4Ref": "B5.1",
@@ -2,6 +2,7 @@
2
2
  "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "$id": "https://trust.propdata.org.uk/schemas/v3/overlays/ta6.json",
4
4
  "required": [
5
+ "participants",
5
6
  "propertyPack"
6
7
  ],
7
8
  "properties": {
@@ -2061,7 +2062,10 @@
2061
2062
  }
2062
2063
  }
2063
2064
  }
2064
- }
2065
+ },
2066
+ "required": [
2067
+ "offMainsDrainageSystem"
2068
+ ]
2065
2069
  }
2066
2070
  ],
2067
2071
  "required": [
@@ -2519,13 +2519,24 @@
2519
2519
  "enum": [
2520
2520
  "Yes"
2521
2521
  ]
2522
+ },
2523
+ "details": {
2524
+ "ta6ed6Ref": "4.2.2"
2522
2525
  }
2523
- }
2526
+ },
2527
+ "required": [
2528
+ "details"
2529
+ ]
2524
2530
  }
2525
2531
  ],
2526
2532
  "required": [
2527
2533
  "yesNo"
2528
- ]
2534
+ ],
2535
+ "properties": {
2536
+ "yesNo": {
2537
+ "ta6ed6Ref": "4.2.1"
2538
+ }
2539
+ }
2529
2540
  },
2530
2541
  "planningApplication": {
2531
2542
  "ta6ed6Ref": "4.3",
@@ -2548,13 +2559,24 @@
2548
2559
  "enum": [
2549
2560
  "Yes"
2550
2561
  ]
2562
+ },
2563
+ "details": {
2564
+ "ta6ed6Ref": "4.3.2"
2551
2565
  }
2552
- }
2566
+ },
2567
+ "required": [
2568
+ "details"
2569
+ ]
2553
2570
  }
2554
2571
  ],
2555
2572
  "required": [
2556
2573
  "yesNo"
2557
- ]
2574
+ ],
2575
+ "properties": {
2576
+ "yesNo": {
2577
+ "ta6ed6Ref": "4.3.1"
2578
+ }
2579
+ }
2558
2580
  },
2559
2581
  "partyWallAct": {
2560
2582
  "ta6ed6Ref": "2.5",
@@ -2577,13 +2599,24 @@
2577
2599
  "enum": [
2578
2600
  "Yes"
2579
2601
  ]
2602
+ },
2603
+ "details": {
2604
+ "ta6ed6Ref": "2.5.2"
2580
2605
  }
2581
- }
2606
+ },
2607
+ "required": [
2608
+ "details"
2609
+ ]
2582
2610
  }
2583
2611
  ],
2584
2612
  "required": [
2585
2613
  "yesNo"
2586
- ]
2614
+ ],
2615
+ "properties": {
2616
+ "yesNo": {
2617
+ "ta6ed6Ref": "2.5.1"
2618
+ }
2619
+ }
2587
2620
  },
2588
2621
  "otherNotices": {
2589
2622
  "ta6ed6Ref": "4.1",
@@ -2606,13 +2639,24 @@
2606
2639
  "enum": [
2607
2640
  "Yes"
2608
2641
  ]
2642
+ },
2643
+ "details": {
2644
+ "ta6ed6Ref": "4.1.2"
2609
2645
  }
2610
- }
2646
+ },
2647
+ "required": [
2648
+ "details"
2649
+ ]
2611
2650
  }
2612
2651
  ],
2613
2652
  "required": [
2614
2653
  "yesNo"
2615
- ]
2654
+ ],
2655
+ "properties": {
2656
+ "yesNo": {
2657
+ "ta6ed6Ref": "4.1.1"
2658
+ }
2659
+ }
2616
2660
  }
2617
2661
  }
2618
2662
  },
@@ -3123,7 +3167,7 @@
3123
3167
  }
3124
3168
  },
3125
3169
  "required": [
3126
- "supplier",
3170
+ "providerName",
3127
3171
  "makeModel",
3128
3172
  "serviceProviderName"
3129
3173
  ]
@@ -3629,7 +3673,10 @@
3629
3673
  }
3630
3674
  }
3631
3675
  }
3632
- }
3676
+ },
3677
+ "required": [
3678
+ "offMainsDrainageSystem"
3679
+ ]
3633
3680
  }
3634
3681
  ],
3635
3682
  "required": [
@@ -3637,6 +3684,7 @@
3637
3684
  ],
3638
3685
  "properties": {
3639
3686
  "yesNo": {
3687
+ "ta6ed6Ref": "11.5a1",
3640
3688
  "enum": [
3641
3689
  "Yes",
3642
3690
  "No",
@@ -3857,7 +3905,12 @@
3857
3905
  ],
3858
3906
  "required": [
3859
3907
  "yesNo"
3860
- ]
3908
+ ],
3909
+ "properties": {
3910
+ "yesNo": {
3911
+ "ta6ed6Ref": "11.4c1"
3912
+ }
3913
+ }
3861
3914
  },
3862
3915
  "heatingLastServicedDate": {
3863
3916
  "ta6ed6Ref": "11.4g1"
@@ -4980,7 +5033,8 @@
4980
5033
  "ta6ed6Ref": "8",
4981
5034
  "required": [
4982
5035
  "flooding",
4983
- "radon"
5036
+ "radon",
5037
+ "greenDealScheme"
4984
5038
  ],
4985
5039
  "properties": {
4986
5040
  "flooding": {
@@ -5136,6 +5190,9 @@
5136
5190
  },
5137
5191
  "remedialMeasuresOnConstruction": {
5138
5192
  "ta6ed6Ref": "8.4",
5193
+ "required": [
5194
+ "yesNo"
5195
+ ],
5139
5196
  "description": "Measures could have been undertaken during construction or while adding an extension.",
5140
5197
  "properties": {
5141
5198
  "yesNo": {
@@ -6098,18 +6155,7 @@
6098
6155
  }
6099
6156
  ],
6100
6157
  "required": [
6101
- "hasValidGuaranteesOrWarranties",
6102
- "newHomeWarranty",
6103
- "dampProofingTreatment",
6104
- "timberRotOrInfestationTreatment",
6105
- "doubleGlazing",
6106
- "roofingWork",
6107
- "centralHeatingAndorPlumbing",
6108
- "subsidenceWork",
6109
- "insulation",
6110
- "otherGuarantees",
6111
- "outstandingClaimsOrApplications",
6112
- "breachOfTermsOrConditions"
6158
+ "hasValidGuaranteesOrWarranties"
6113
6159
  ],
6114
6160
  "properties": {
6115
6161
  "hasValidGuaranteesOrWarranties": {
@@ -79,6 +79,7 @@
79
79
  "disputes",
80
80
  "buildingSafetyAct",
81
81
  "enfranchisement",
82
+ "buildingSafety",
82
83
  "general",
83
84
  "requiredDocuments",
84
85
  "confirmationOfAccuracy"
@@ -84,6 +84,7 @@
84
84
  "disputes",
85
85
  "buildingSafetyAct",
86
86
  "enfranchisement",
87
+ "buildingSafety",
87
88
  "general",
88
89
  "requiredDocuments",
89
90
  "additionalInformation",
@@ -21761,10 +21761,7 @@
21761
21761
  "Not known"
21762
21762
  ]
21763
21763
  }
21764
- },
21765
- "ta6EdRequired": [
21766
- "yesNo"
21767
- ]
21764
+ }
21768
21765
  }
21769
21766
  }
21770
21767
  },
@@ -1596,9 +1596,17 @@ describe("TA6 Edition 6 overlay", () => {
1596
1596
  },
1597
1597
  },
1598
1598
  drainage: {
1599
- mainsFoulDrainage: { yesNo: "No" },
1599
+ mainsFoulDrainage: {
1600
+ yesNo: "No",
1601
+ offMainsDrainageSystem: {
1602
+ offMainsDrainageSystemType: "Not known",
1603
+ otherConnectedProperties: { yesNo: "No" },
1604
+ plantOnOtherLand: { yesNo: "No" },
1605
+ plantRegistered: { yesNo: "No" },
1606
+ plantDrainsIntoWaterway: { yesNo: "Yes" },
1607
+ },
1608
+ },
1600
1609
  mainsSurfaceWaterDrainage: { yesNo: "Yes" },
1601
- offMainsDrainageSystem: {},
1602
1610
  },
1603
1611
  };
1604
1612
  expect(validator(data)).toBe(true);
@@ -2157,7 +2165,7 @@ describe("TA6 Edition 6 overlay", () => {
2157
2165
  expect(validator(exampleTransaction)).toBe(false);
2158
2166
  const errorMessages = validator.errors.map((e) => e.message);
2159
2167
  expect(errorMessages).toContain(
2160
- "must have required property 'breachOfTermsOrConditions'"
2168
+ "must have required property 'consents'"
2161
2169
  );
2162
2170
  });
2163
2171