@pdtf/schemas 3.0.0-21 → 3.0.0-23

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@pdtf/schemas",
3
- "version": "3.0.0-21",
3
+ "version": "3.0.0-23",
4
4
  "description": "Property Data Trust Framework Schemas and Utilities",
5
5
  "main": "index.js",
6
6
  "directories": {
@@ -55,8 +55,8 @@
55
55
  "titleNumber": "HD221222",
56
56
  "ownershipType": "Leasehold",
57
57
  "leaseholdInformation": {
58
- "typeOfLeasehold": {
59
- "leaseholdType": "Shared ownership",
58
+ "sharedOwnership": {
59
+ "isSharedOwnership": "Yes",
60
60
  "sharedOwnershipPercentage": 50,
61
61
  "sharedOwnershipRent": 200,
62
62
  "sharedOwnershipRentFrequency": "Monthly"
@@ -200,6 +200,7 @@
200
200
  "environmentalIssues",
201
201
  "notices"
202
202
  ],
203
+ "ta7Required": ["ownership"],
203
204
  "properties": {
204
205
  "address": {
205
206
  "baspiRef": "A1.1",
@@ -1120,6 +1121,7 @@
1120
1121
  "type": "object",
1121
1122
  "baspiRequired": ["ownershipsToBeTransferred"],
1122
1123
  "ntsRequired": ["ownershipsToBeTransferred"],
1124
+ "ta7Required": ["ownershipsToBeTransferred"],
1123
1125
  "properties": {
1124
1126
  "ownershipsToBeTransferred": {
1125
1127
  "baspiRef": "A1.3",
@@ -1382,11 +1384,9 @@
1382
1384
  "type": "object",
1383
1385
  "properties": {
1384
1386
  "contact": {
1385
- "ta7Ref": "4.1b",
1386
1387
  "type": "object",
1387
1388
  "properties": {
1388
1389
  "nameOrOrganisation": {
1389
- "ta7Ref": "4.1b.1",
1390
1390
  "title": "Name or organisation",
1391
1391
  "type": "string",
1392
1392
  "minLength": 1
@@ -1396,28 +1396,23 @@
1396
1396
  "type": "object",
1397
1397
  "properties": {
1398
1398
  "line1": {
1399
- "ta7Ref": "4.1b.2",
1400
1399
  "title": "Address line 1",
1401
1400
  "type": "string",
1402
1401
  "minLength": 1
1403
1402
  },
1404
1403
  "line2": {
1405
- "ta7Ref": "4.1b.3",
1406
1404
  "title": "Address line 2",
1407
1405
  "type": "string"
1408
1406
  },
1409
1407
  "line3": {
1410
- "ta7Ref": "4.1b.4",
1411
1408
  "title": "Address line 3",
1412
1409
  "type": "string"
1413
1410
  },
1414
1411
  "town": {
1415
- "ta7Ref": "4.1b.5",
1416
1412
  "title": "Town",
1417
1413
  "type": "string"
1418
1414
  },
1419
1415
  "postcode": {
1420
- "ta7Ref": "4.1b.6",
1421
1416
  "title": "Postcode",
1422
1417
  "type": "string",
1423
1418
  "minLength": 1
@@ -1429,13 +1424,11 @@
1429
1424
  ]
1430
1425
  },
1431
1426
  "telephone": {
1432
- "ta7Ref": "4.1b.7",
1433
1427
  "title": "Telephone",
1434
1428
  "type": "string",
1435
1429
  "minLength": 1
1436
1430
  },
1437
1431
  "emailAddress": {
1438
- "ta7Ref": "4.1b.8",
1439
1432
  "title": "Email address",
1440
1433
  "type": "string",
1441
1434
  "format": "email"
@@ -1496,7 +1489,6 @@
1496
1489
  "properties": {
1497
1490
  "contact": {
1498
1491
  "baspiRef": "A1.5.5.1",
1499
- "ta7Ref": "4.1c",
1500
1492
  "type": "object",
1501
1493
  "fme1Required": [
1502
1494
  "nameOrOrganisation",
@@ -1511,7 +1503,6 @@
1511
1503
  "properties": {
1512
1504
  "nameOrOrganisation": {
1513
1505
  "baspiRef": "A1.5.5.1.1",
1514
- "ta7Ref": "4.1c.1",
1515
1506
  "title": "Name or organisation",
1516
1507
  "type": "string",
1517
1508
  "minLength": 1
@@ -1523,32 +1514,27 @@
1523
1514
  "properties": {
1524
1515
  "line1": {
1525
1516
  "baspiRef": "A1.5.5.1.2.1",
1526
- "ta7Ref": "4.1c.2",
1527
1517
  "title": "Address line 1",
1528
1518
  "type": "string",
1529
1519
  "minLength": 1
1530
1520
  },
1531
1521
  "line2": {
1532
1522
  "baspiRef": "A1.5.5.1.2.2",
1533
- "ta7Ref": "4.1c.3",
1534
1523
  "title": "Address line 2",
1535
1524
  "type": "string"
1536
1525
  },
1537
1526
  "line3": {
1538
1527
  "baspiRef": "A1.5.5.1.2.3",
1539
- "ta7Ref": "4.1c.4",
1540
1528
  "title": "Address line 3",
1541
1529
  "type": "string"
1542
1530
  },
1543
1531
  "town": {
1544
1532
  "baspiRef": "A1.5.5.1.2.4",
1545
- "ta7Ref": "4.1c.5",
1546
1533
  "title": "Town",
1547
1534
  "type": "string"
1548
1535
  },
1549
1536
  "postcode": {
1550
1537
  "baspiRef": "A1.5.5.1.2.5",
1551
- "ta7Ref": "4.1c.6",
1552
1538
  "title": "Postcode",
1553
1539
  "type": "string",
1554
1540
  "minLength": 1
@@ -1564,14 +1550,12 @@
1564
1550
  ]
1565
1551
  },
1566
1552
  "telephone": {
1567
- "ta7Ref": "4.1c.7",
1568
1553
  "title": "Telephone",
1569
1554
  "type": "string",
1570
1555
  "minLength": 1
1571
1556
  },
1572
1557
  "emailAddress": {
1573
1558
  "baspiRef": "A1.5.5.1.3",
1574
- "ta7Ref": "4.1c.8",
1575
1559
  "title": "Email address",
1576
1560
  "type": "string",
1577
1561
  "format": "email"
@@ -3446,7 +3430,7 @@
3446
3430
  "confirmation"
3447
3431
  ],
3448
3432
  "baspiRequired": [
3449
- "typeOfLeasehold",
3433
+ "sharedOwnership",
3450
3434
  "leaseTerm",
3451
3435
  "contactDetails",
3452
3436
  "groundRent",
@@ -3454,13 +3438,13 @@
3454
3438
  "serviceCharge"
3455
3439
  ],
3456
3440
  "ntsRequired": [
3457
- "typeOfLeasehold",
3441
+ "sharedOwnership",
3458
3442
  "leaseTerm",
3459
3443
  "groundRent",
3460
3444
  "serviceCharge"
3461
3445
  ],
3462
3446
  "ta7Required": [
3463
- "typeOfLeasehold",
3447
+ "sharedOwnership",
3464
3448
  "leaseTerm",
3465
3449
  "contactDetails",
3466
3450
  "transferAndRegistration",
@@ -3471,43 +3455,39 @@
3471
3455
  "requiredDocuments"
3472
3456
  ],
3473
3457
  "properties": {
3474
- "typeOfLeasehold": {
3458
+ "sharedOwnership": {
3475
3459
  "baspiRef": "A1.3.1",
3476
3460
  "ntsRef": "A3.2",
3477
3461
  "type": "object",
3478
- "lpe1Required": ["leaseholdType"],
3479
- "baspiRequired": ["leaseholdType"],
3480
- "ntsRequired": ["leaseholdType"],
3462
+ "lpe1Required": ["isSharedOwnership"],
3463
+ "baspiRequired": ["isSharedOwnership"],
3464
+ "ntsRequired": ["isSharedOwnership"],
3465
+ "ta7Required": ["isSharedOwnership"],
3481
3466
  "properties": {
3482
- "leaseholdType": {
3467
+ "isSharedOwnership": {
3483
3468
  "baspiRef": "A1.3.1",
3484
3469
  "ta7Ref": "1.1",
3485
3470
  "ntsRef": "A3.2.1",
3486
- "title": "What type of leasehold property does the seller own?",
3487
- "description": "‘Flat’ includes maisonette and apartment.",
3471
+ "title": "Is the lease on a Shared Ownership basis?",
3488
3472
  "type": "string",
3489
- "enum": [
3490
- "Flat",
3491
- "Shared ownership",
3492
- "Long leasehold house"
3493
- ]
3473
+ "enum": ["Yes", "No"]
3494
3474
  }
3495
3475
  },
3496
3476
  "discriminator": {
3497
- "propertyName": "leaseholdType"
3477
+ "propertyName": "isSharedOwnership"
3498
3478
  },
3499
3479
  "oneOf": [
3500
3480
  {
3501
3481
  "properties": {
3502
- "leaseholdType": {
3503
- "enum": ["Flat", "Long leasehold house"]
3482
+ "isSharedOwnership": {
3483
+ "enum": ["No"]
3504
3484
  }
3505
3485
  }
3506
3486
  },
3507
3487
  {
3508
3488
  "properties": {
3509
- "leaseholdType": {
3510
- "enum": ["Shared ownership"]
3489
+ "isSharedOwnership": {
3490
+ "enum": ["Yes"]
3511
3491
  },
3512
3492
  "sharedOwnershipPercentage": {
3513
3493
  "baspiRef": "A1.3.1.1",
@@ -3589,7 +3569,10 @@
3589
3569
  "serviceContactAssignments"
3590
3570
  ],
3591
3571
  "baspiRequired": ["contacts"],
3592
- "ta7Required": ["contacts"],
3572
+ "ta7Required": [
3573
+ "contacts",
3574
+ "serviceContactAssignments"
3575
+ ],
3593
3576
  "properties": {
3594
3577
  "contacts": {
3595
3578
  "baspiRef": "A1.5.4.",
@@ -4280,8 +4263,12 @@
4280
4263
  "collectsServiceCharges",
4281
4264
  "collectsbuildingInsurancePremiums",
4282
4265
  "dealsWithDayToDayMaintenanceOfManagedArea",
4266
+ "organisesBuildingInsurance",
4283
4267
  "dealsWithDayToDayMaintenanceOfBuilding"
4284
4268
  ],
4269
+ "ta7Required": [
4270
+ "organisesBuildingInsurance"
4271
+ ],
4285
4272
  "properties": {
4286
4273
  "noticeOfAssignmentAndCharge": {
4287
4274
  "lpe1Ref": "1.6",
@@ -4918,6 +4905,7 @@
4918
4905
  "lpe1Ref": "1.12",
4919
4906
  "ta7Ref": "5.1",
4920
4907
  "title": "Who organises and administers the buildings insurance?",
4908
+ "ta7Title": "Who is responsible for arranging the buildings insurance on the property?",
4921
4909
  "type": "string",
4922
4910
  "enum": [
4923
4911
  "Rentcharge Owner",
@@ -4926,6 +4914,11 @@
4926
4914
  "Managing Agent",
4927
4915
  "the Lessees",
4928
4916
  "Not applicable"
4917
+ ],
4918
+ "ta7enum": [
4919
+ "the Lessees",
4920
+ "Management Company",
4921
+ "Landlord"
4929
4922
  ]
4930
4923
  },
4931
4924
  "dealsWithDayToDayMaintenanceOfBuilding": {
@@ -5135,7 +5128,6 @@
5135
5128
  },
5136
5129
  "awareOfConsents": {
5137
5130
  "lpe1Ref": "2.4",
5138
- "ta7Ref": "9.3",
5139
5131
  "title": "Are you aware of consent having been given to any alterations or additions to the Property?",
5140
5132
  "type": "object",
5141
5133
  "properties": {
@@ -6090,6 +6082,7 @@
6090
6082
  },
6091
6083
  "lastDecoratedPeriod": {
6092
6084
  "lpe1Ref": "4.7",
6085
+ "ta7Ref": "5",
6093
6086
  "title": "Confirm the date when the Managed Areas were last decorated, internally and externally.",
6094
6087
  "type": "object",
6095
6088
  "properties": {
@@ -6479,6 +6472,17 @@
6479
6472
  "deedOfCertificateServed",
6480
6473
  "landlordsCertificateServed"
6481
6474
  ],
6475
+ "ta7Required": [
6476
+ "annualServiceCharge",
6477
+ "largeAdditionalExpense",
6478
+ "problemInServiceChargeLevel",
6479
+ "serviceChargeChallenged",
6480
+ "dangerousCladdingOrDefects",
6481
+ "difficultyInCollectingServiceCharge",
6482
+ "serviceChargeOwed",
6483
+ "lastDecoratedPeriod",
6484
+ "deedOfCertificateServed"
6485
+ ],
6482
6486
  "baspiRequired": [
6483
6487
  "annualServiceCharge",
6484
6488
  "largeAdditionalExpense",
@@ -7238,9 +7242,25 @@
7238
7242
  "title": "Please give details of these alterations",
7239
7243
  "type": "string",
7240
7244
  "minLength": 1
7245
+ },
7246
+ "landlordConsentObtained": {
7247
+ "ta7Ref": "9.3",
7248
+ "title": "Was the landlord’s consent for the alterations obtained? If Yes, please supply a copy.",
7249
+ "type": "string",
7250
+ "enum": [
7251
+ "No",
7252
+ "Not known",
7253
+ "Not required",
7254
+ "Attached",
7255
+ "To follow"
7256
+ ]
7241
7257
  }
7242
7258
  },
7243
- "lpe1Required": ["details"]
7259
+ "lpe1Required": ["details"],
7260
+ "ta71Required": [
7261
+ "details",
7262
+ "landlordConsentObtained"
7263
+ ]
7244
7264
  }
7245
7265
  ]
7246
7266
  },
@@ -11150,6 +11170,24 @@
11150
11170
  "ta10Ref": "1",
11151
11171
  "title": "Basic Fittings",
11152
11172
  "type": "object",
11173
+ "ta10Required": [
11174
+ "boilerImmersionHeater",
11175
+ "radiatorsWallHeaters",
11176
+ "nightStorageHeaters",
11177
+ "freeStandingHeaters",
11178
+ "gasFiresWithSurround",
11179
+ "electricFiresWithSurround",
11180
+ "lightSwitches",
11181
+ "roofInsulation",
11182
+ "windowFittings",
11183
+ "windowShuttersGrilles",
11184
+ "internalDoorFittings",
11185
+ "externalDoorFittings",
11186
+ "doorbellChime",
11187
+ "electricSockets",
11188
+ "burglarAlarm",
11189
+ "otherItems"
11190
+ ],
11153
11191
  "properties": {
11154
11192
  "boilerImmersionHeater": {
11155
11193
  "ta10Ref": "1.1",
@@ -12113,6 +12151,19 @@
12113
12151
  "title": "Kitchen",
12114
12152
  "description": "Note: In this section please also indicate whether the item is fitted or freestanding.",
12115
12153
  "type": "object",
12154
+ "ta10Required": [
12155
+ "hob",
12156
+ "extractorHood",
12157
+ "ovenGrill",
12158
+ "cooker",
12159
+ "microwave",
12160
+ "refrigeratorFridgeFreezer",
12161
+ "freezer",
12162
+ "dishwasher",
12163
+ "tumbleDryer",
12164
+ "washingMachine",
12165
+ "otherItems"
12166
+ ],
12116
12167
  "properties": {
12117
12168
  "hob": {
12118
12169
  "ta10Ref": "2.1",
@@ -13579,6 +13630,18 @@
13579
13630
  "ta10Ref": "3",
13580
13631
  "title": "Bathroom",
13581
13632
  "type": "object",
13633
+ "ta10Required": [
13634
+ "bath",
13635
+ "showerFittingForBath",
13636
+ "showerCurtain",
13637
+ "bathroomCabinet",
13638
+ "taps",
13639
+ "separateShowersAndFittings",
13640
+ "towelRail",
13641
+ "soapToothbrushHolders",
13642
+ "toiletRollHolders",
13643
+ "bathroomMirror"
13644
+ ],
13582
13645
  "properties": {
13583
13646
  "bath": {
13584
13647
  "ta10Ref": "3.1",
@@ -14186,6 +14249,16 @@
14186
14249
  "ta10Ref": "4",
14187
14250
  "title": "Carpets",
14188
14251
  "type": "object",
14252
+ "ta10Required": [
14253
+ "hallStairsLanding",
14254
+ "livingRoom",
14255
+ "diningRoom",
14256
+ "kitchen",
14257
+ "bedroom1",
14258
+ "bedroom2",
14259
+ "bedroom3",
14260
+ "otherRooms"
14261
+ ],
14189
14262
  "properties": {
14190
14263
  "hallStairsLanding": {
14191
14264
  "ta10Ref": "4.1",
@@ -14676,6 +14749,16 @@
14676
14749
  "curtainRailsPolesPelmets": {
14677
14750
  "type": "object",
14678
14751
  "title": "Curtain rails/poles/pelmets",
14752
+ "ta10Required": [
14753
+ "hallStairsLanding",
14754
+ "livingRoom",
14755
+ "diningRoom",
14756
+ "kitchen",
14757
+ "bedroom1",
14758
+ "bedroom2",
14759
+ "bedroom3",
14760
+ "otherRooms"
14761
+ ],
14679
14762
  "properties": {
14680
14763
  "hallStairsLanding": {
14681
14764
  "ta10Ref": "5.1",
@@ -15160,6 +15243,16 @@
15160
15243
  "curtainsBlinds": {
15161
15244
  "title": "Curtains/blinds",
15162
15245
  "type": "object",
15246
+ "ta10Required": [
15247
+ "hallStairsLanding",
15248
+ "livingRoom",
15249
+ "diningRoom",
15250
+ "kitchen",
15251
+ "bedroom1",
15252
+ "bedroom2",
15253
+ "bedroom3",
15254
+ "otherRooms"
15255
+ ],
15163
15256
  "properties": {
15164
15257
  "hallStairsLanding": {
15165
15258
  "ta10Ref": "5.12",
@@ -15648,6 +15741,16 @@
15648
15741
  "title": "Light fittings",
15649
15742
  "description": "Note: If the seller removes a light fitting, it is assumed that the seller will replace the fitting with a ceiling rose, a flex, bulb holder and bulb and that they will be left in a safe condition.",
15650
15743
  "type": "object",
15744
+ "ta10Required": [
15745
+ "hallStairsLanding",
15746
+ "livingRoom",
15747
+ "diningRoom",
15748
+ "kitchen",
15749
+ "bedroom1",
15750
+ "bedroom2",
15751
+ "bedroom3",
15752
+ "otherRooms"
15753
+ ],
15651
15754
  "properties": {
15652
15755
  "hallStairsLanding": {
15653
15756
  "ta10Ref": "6.1",
@@ -16131,6 +16234,16 @@
16131
16234
  "title": "Fitted units",
16132
16235
  "description": "Note: Fitted units include, for example, fitted cupboards, fitted shelves, and fitted wardrobes",
16133
16236
  "type": "object",
16237
+ "ta10Required": [
16238
+ "hallStairsLanding",
16239
+ "livingRoom",
16240
+ "diningRoom",
16241
+ "kitchen",
16242
+ "bedroom1",
16243
+ "bedroom2",
16244
+ "bedroom3",
16245
+ "otherRooms"
16246
+ ],
16134
16247
  "properties": {
16135
16248
  "hallStairsLanding": {
16136
16249
  "ta10Ref": "7.1",
@@ -16613,6 +16726,21 @@
16613
16726
  "ta10Ref": "8",
16614
16727
  "title": "Fitted units",
16615
16728
  "type": "object",
16729
+ "ta10Required": [
16730
+ "gardenFurniture",
16731
+ "gardenOrnaments",
16732
+ "treesPlantsShrubs",
16733
+ "barbecue",
16734
+ "dustbins",
16735
+ "gardenShed",
16736
+ "greenhouse",
16737
+ "outdoorHeater",
16738
+ "outdoorLights",
16739
+ "waterButt",
16740
+ "clothesLine",
16741
+ "rotaryLine",
16742
+ "otherItems"
16743
+ ],
16616
16744
  "properties": {
16617
16745
  "gardenFurniture": {
16618
16746
  "ta10Ref": "8.1",
@@ -17395,6 +17523,12 @@
17395
17523
  "ta10Ref": "9",
17396
17524
  "title": "Television and telephone",
17397
17525
  "type": "object",
17526
+ "ta10Required": [
17527
+ "telephoneReceivers",
17528
+ "televisionAerial",
17529
+ "radioAerial",
17530
+ "satelliteDish"
17531
+ ],
17398
17532
  "properties": {
17399
17533
  "telephoneReceivers": {
17400
17534
  "ta10Ref": "9.1",
@@ -17642,6 +17776,7 @@
17642
17776
  "ta10Ref": "10",
17643
17777
  "title": "Stock of fuel",
17644
17778
  "type": "object",
17779
+ "ta10Required": ["oil", "wood", "lpg"],
17645
17780
  "properties": {
17646
17781
  "oil": {
17647
17782
  "ta10Ref": "10.1",
@@ -17829,6 +17964,7 @@
17829
17964
  "ta10Ref": "11",
17830
17965
  "title": "Other items",
17831
17966
  "type": "object",
17967
+ "ta10Required": ["otherItems"],
17832
17968
  "properties": {
17833
17969
  "otherItems": {
17834
17970
  "title": "",
@@ -18426,8 +18562,7 @@
18426
18562
  "waterMainsWithinBoundaries",
18427
18563
  "waterMainsSubjectOfAdoptionAgreement",
18428
18564
  "lowWaterPressureRisk",
18429
- "waterQualityAnalysis",
18430
- "waterMeterLocation"
18565
+ "waterQualityAnalysis"
18431
18566
  ],
18432
18567
  "properties": {
18433
18568
  "mainsWater": {
@@ -18524,6 +18659,7 @@
18524
18659
  "ntsRequired": ["isSupplyMetered"],
18525
18660
  "baspiRequired": ["isSupplyMetered"],
18526
18661
  "ta6Required": ["isSupplyMetered"],
18662
+ "con29DWRequired": ["isSupplyMetered"],
18527
18663
  "properties": {
18528
18664
  "isSupplyMetered": {
18529
18665
  "ntsRef": "3.2.3",
@@ -18553,6 +18689,7 @@
18553
18689
  "location": {
18554
18690
  "baspiRef": "4.6.2.1",
18555
18691
  "ta6Ref": "13.3b2.1",
18692
+ "con29DWRef": "3.6",
18556
18693
  "title": "Describe the location of the meter",
18557
18694
  "type": "string",
18558
18695
  "minLength": 1
@@ -18564,13 +18701,15 @@
18564
18701
  "enum": ["Attached", "To follow"]
18565
18702
  }
18566
18703
  },
18567
- "ta6Required": ["location"]
18704
+ "baspiRequired": ["location"],
18705
+ "ta6Required": ["location"],
18706
+ "con29DWRequired": ["location"]
18568
18707
  }
18569
18708
  ]
18570
18709
  }
18571
18710
  },
18572
18711
  "ta6Required": ["supplier", "stopcock", "waterMeter"],
18573
- "con29DWRequired": ["details"],
18712
+ "con29DWRequired": ["details", "waterMeter"],
18574
18713
  "baspiRequired": ["stopcock", "waterMeter"],
18575
18714
  "ntsRequired": ["waterMeter"]
18576
18715
  },
@@ -18722,12 +18861,6 @@
18722
18861
  "title": "What is the classification of the water supply for the property?",
18723
18862
  "type": "string",
18724
18863
  "minLength": 1
18725
- },
18726
- "waterMeterLocation": {
18727
- "con29DWRef": "3.6",
18728
- "title": "Please include details of the location of any water meter serving the property.",
18729
- "type": "string",
18730
- "minLength": 1
18731
18864
  }
18732
18865
  }
18733
18866
  },
@@ -19815,7 +19948,9 @@
19815
19948
  "description": "You can find your property’s MPRN on your gas or dual fuel bill. It’s usually marked ‘Meter Point Reference Number’ and is between six and 10 digits long.",
19816
19949
  "type": "integer"
19817
19950
  }
19818
- }
19951
+ },
19952
+ "baspiRequired": ["location"],
19953
+ "ta6Required": ["location"]
19819
19954
  }
19820
19955
  },
19821
19956
  "baspiRequired": ["supplier", "gasMeter"],