@pdtf/schemas 3.6.0-14 → 3.6.0-15

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.6.0-14",
3
+ "version": "3.6.0-15",
4
4
  "description": "Property Data Trust Framework Schemas and Utilities",
5
5
  "main": "index.js",
6
6
  "directories": {
@@ -62,6 +62,7 @@
62
62
  "baspi4Ref": "B1",
63
63
  "baspi5Ref": "B1",
64
64
  "piqRef": "B1",
65
+ "ta6ed6Ref": "1",
65
66
  "title": "Transaction participants",
66
67
  "type": "array",
67
68
  "minItems": 1,
@@ -4387,6 +4388,7 @@
4387
4388
  "baspi5Ref": "A1.5",
4388
4389
  "ntsRef": "A3.2",
4389
4390
  "nts2Ref": "A3.2",
4391
+ "ta7ed5Ref": "2",
4390
4392
  "title": "Leasehold information",
4391
4393
  "type": "object",
4392
4394
  "lpe1Required": [
@@ -5661,6 +5663,7 @@
5661
5663
  },
5662
5664
  "serviceContactAssignments": {
5663
5665
  "ta7Ref": "5.1",
5666
+ "ta7ed5Ref": "4",
5664
5667
  "lpe1Ref": "1.6",
5665
5668
  "type": "object",
5666
5669
  "lpe1Required": [
@@ -6298,7 +6301,7 @@
6298
6301
  },
6299
6302
  "otherCollector": {
6300
6303
  "ta7ed5Ref": "4.3.3",
6301
- "title": "If 'Other' collects the ground rent, specify who",
6304
+ "title": "Please specify who",
6302
6305
  "type": "string",
6303
6306
  "minLength": 1
6304
6307
  }
@@ -6378,7 +6381,7 @@
6378
6381
  },
6379
6382
  "otherCollector": {
6380
6383
  "ta7ed5Ref": "4.2.3",
6381
- "title": "If 'Other' collects the building insurance premiums, specify who",
6384
+ "title": "Please specify who",
6382
6385
  "type": "string",
6383
6386
  "minLength": 1
6384
6387
  }
@@ -6590,7 +6593,8 @@
6590
6593
  ]
6591
6594
  }
6592
6595
  },
6593
- "lpe1Required": ["details"]
6596
+ "lpe1Required": ["details"],
6597
+ "ta7ed5Required": ["details"]
6594
6598
  }
6595
6599
  ]
6596
6600
  },
@@ -6636,7 +6640,8 @@
6636
6640
  "type": "string",
6637
6641
  "enum": ["Attached", "To follow"]
6638
6642
  }
6639
- }
6643
+ },
6644
+ "ta7ed5Required": ["details", "attachments"]
6640
6645
  }
6641
6646
  ]
6642
6647
  }
@@ -7213,20 +7218,6 @@
7213
7218
  }
7214
7219
  ]
7215
7220
  },
7216
- "hasTenantCompanyDissolved": {
7217
- "ta7Ref": "2.4",
7218
- "ta7ed5Ref": "4.5.1",
7219
- "title": "Has any tenants’ management company been dissolved or struck off the register at Companies House?",
7220
- "ta7ed5Title": "Are you aware of any company responsible for managing the building having been dissolved or struck off the register at Companies House?",
7221
- "type": "string",
7222
- "enum": ["Yes", "No"],
7223
- "ta7ed5Enum": ["Yes", "No", "Not applicable"]
7224
- },
7225
- "hasTenantCompanyDissolvedDetails": {
7226
- "ta7ed5Ref": "4.5.2",
7227
- "ta7ed5Title": "If tenants’ management company has been dissolved or struck off, please provide details",
7228
- "type": "string"
7229
- },
7230
7221
  "isManagingAgentEmployed": {
7231
7222
  "ta7Ref": "2.5",
7232
7223
  "ta7ed5Ref": "4.1.1",
@@ -7275,8 +7266,38 @@
7275
7266
  "ta7ed5Required": ["attachments"]
7276
7267
  }
7277
7268
  ]
7269
+ },
7270
+ "hasTenantCompanyDissolved": {
7271
+ "ta7Ref": "2.4",
7272
+ "ta7ed5Ref": "4.5.1",
7273
+ "title": "Has any tenants' management company been dissolved or struck off the register at Companies House?",
7274
+ "ta7ed5Title": "Are you aware of any company responsible for managing the building having been dissolved or struck off the register at Companies House?",
7275
+ "type": "string",
7276
+ "enum": ["Yes", "No"],
7277
+ "ta7ed5Enum": ["Yes", "No", "Not applicable"]
7278
7278
  }
7279
- }
7279
+ },
7280
+ "discriminator": {
7281
+ "propertyName": "hasTenantCompanyDissolved"
7282
+ },
7283
+ "oneOf": [
7284
+ {
7285
+ "properties": {
7286
+ "hasTenantCompanyDissolved": { "enum": ["No", "Not applicable"] }
7287
+ }
7288
+ },
7289
+ {
7290
+ "properties": {
7291
+ "hasTenantCompanyDissolved": { "enum": ["Yes"] },
7292
+ "hasTenantCompanyDissolvedDetails": {
7293
+ "ta7ed5Ref": "4.5.2",
7294
+ "title": "If tenants' management company has been dissolved or struck off, please provide details",
7295
+ "type": "string"
7296
+ }
7297
+ },
7298
+ "ta7ed5Required": ["hasTenantCompanyDissolvedDetails"]
7299
+ }
7300
+ ]
7280
7301
  },
7281
7302
  "serviceCharge": {
7282
7303
  "baspi4Ref": "A1.5.1",
@@ -8276,6 +8297,7 @@
8276
8297
  },
8277
8298
  "buildingsInsurance": {
8278
8299
  "lpe1Ref": "5",
8300
+ "ta7ed5Ref": "2.2",
8279
8301
  "title": "Buildings Insurance",
8280
8302
  "type": "object",
8281
8303
  "lpe1Required": [
@@ -9652,6 +9674,7 @@
9652
9674
  "requiredDocuments": {
9653
9675
  "lpe1Ref": "8",
9654
9676
  "ta7Ref": "3",
9677
+ "ta7ed5Ref": "6",
9655
9678
  "title": "Required documents",
9656
9679
  "ta7Title": "Relevant documents",
9657
9680
  "type": "object",
@@ -10909,6 +10932,7 @@
10909
10932
  "nts2Ref": "A1.2",
10910
10933
  "ntslRef": "A1.2",
10911
10934
  "ntsl2Ref": "A1.2",
10935
+ "ta7ed5Ref": "11",
10912
10936
  "title": "Type of Construction",
10913
10937
  "type": "object",
10914
10938
  "baspi4Required": [
@@ -11332,6 +11356,7 @@
11332
11356
  "baspi4Ref": "A1.8.3",
11333
11357
  "baspi5Ref": "A1.8.3",
11334
11358
  "ta6Ref": "7.6",
11359
+ "ta6ed6Ref": "8",
11335
11360
  "ntsRef": "A4",
11336
11361
  "nts2Ref": "A4",
11337
11362
  "ntslRef": "A4",
@@ -726,12 +726,12 @@
726
726
  buildingManager
727
727
  buildingManagerType
728
728
  details
729
- hasTenantCompanyDissolved
730
- hasTenantCompanyDissolvedDetails
731
729
  isManagingAgentEmployed
732
730
  sellerOwnership
733
731
  yesNo
734
732
  attachments
733
+ hasTenantCompanyDissolved
734
+ hasTenantCompanyDissolvedDetails
735
735
  serviceCharge
736
736
  sellerContributesToServiceCharge
737
737
  annualServiceCharge
@@ -7,19 +7,46 @@
7
7
  ],
8
8
  "properties": {
9
9
  "participants": {
10
+ "ta6ed6Ref": "1",
10
11
  "items": {
11
- "required": [
12
- "role"
13
- ],
12
+ "discriminator": {
13
+ "propertyName": "role"
14
+ },
14
15
  "oneOf": [
15
- null,
16
- null,
17
16
  {
18
- "required": [
19
- "sellersCapacity",
20
- "dateBecameOwnerOrAuthority"
21
- ],
22
17
  "properties": {
18
+ "role": {
19
+ "enum": [
20
+ "Prospective Buyer",
21
+ "Buyer's Conveyancer",
22
+ "Seller's Conveyancer",
23
+ "Estate Agent",
24
+ "Buyer's Agent",
25
+ "Surveyor",
26
+ "Mortgage Broker",
27
+ "Lender",
28
+ "Landlord",
29
+ "Tenant"
30
+ ]
31
+ }
32
+ }
33
+ },
34
+ {
35
+ "properties": {
36
+ "role": {
37
+ "enum": [
38
+ "Buyer"
39
+ ]
40
+ }
41
+ }
42
+ },
43
+ {
44
+ "properties": {
45
+ "role": {
46
+ "enum": [
47
+ "Seller"
48
+ ]
49
+ },
23
50
  "sellersCapacity": {
24
51
  "ta6ed6Ref": "1.4",
25
52
  "discriminator": {
@@ -81,8 +108,15 @@
81
108
  "dateBecameOwnerOrAuthority": {
82
109
  "ta6ed6Ref": "1.5"
83
110
  }
84
- }
111
+ },
112
+ "required": [
113
+ "sellersCapacity",
114
+ "dateBecameOwnerOrAuthority"
115
+ ]
85
116
  }
117
+ ],
118
+ "required": [
119
+ "role"
86
120
  ]
87
121
  }
88
122
  },
@@ -445,6 +479,7 @@
445
479
  }
446
480
  },
447
481
  "energyEfficiency": {
482
+ "ta6ed6Ref": "8",
448
483
  "properties": {
449
484
  "greenDealLoan": {
450
485
  "ta6ed6Ref": "8.5",
@@ -425,6 +425,30 @@
425
425
  },
426
426
  "ownershipAndManagement": {
427
427
  "ta7Ref": "2",
428
+ "discriminator": {
429
+ "propertyName": "hasTenantCompanyDissolved"
430
+ },
431
+ "oneOf": [
432
+ {
433
+ "properties": {
434
+ "hasTenantCompanyDissolved": {
435
+ "enum": [
436
+ "No",
437
+ "Not applicable"
438
+ ]
439
+ }
440
+ }
441
+ },
442
+ {
443
+ "properties": {
444
+ "hasTenantCompanyDissolved": {
445
+ "enum": [
446
+ "Yes"
447
+ ]
448
+ }
449
+ }
450
+ }
451
+ ],
428
452
  "required": [
429
453
  "freeholdOwner",
430
454
  "hasHeadlease",
@@ -519,11 +543,11 @@
519
543
  }
520
544
  }
521
545
  },
522
- "hasTenantCompanyDissolved": {
523
- "ta7Ref": "2.4"
524
- },
525
546
  "isManagingAgentEmployed": {
526
547
  "ta7Ref": "2.5"
548
+ },
549
+ "hasTenantCompanyDissolved": {
550
+ "ta7Ref": "2.4"
527
551
  }
528
552
  }
529
553
  },
@@ -71,6 +71,7 @@
71
71
  ]
72
72
  },
73
73
  "leaseholdInformation": {
74
+ "ta7ed5Ref": "2",
74
75
  "required": [
75
76
  "typeOfLeasehold",
76
77
  "sharedOwnership",
@@ -372,6 +373,7 @@
372
373
  }
373
374
  },
374
375
  "serviceContactAssignments": {
376
+ "ta7ed5Ref": "4",
375
377
  "required": [
376
378
  "collectsGroundRent",
377
379
  "collectsbuildingInsurancePremiums"
@@ -516,7 +518,10 @@
516
518
  "attachments": {
517
519
  "ta7ed5Ref": "8.1.3"
518
520
  }
519
- }
521
+ },
522
+ "required": [
523
+ "details"
524
+ ]
520
525
  }
521
526
  ],
522
527
  "required": [
@@ -556,7 +561,11 @@
556
561
  "attachments": {
557
562
  "ta7ed5Ref": "8.2.3"
558
563
  }
559
- }
564
+ },
565
+ "required": [
566
+ "details",
567
+ "attachments"
568
+ ]
560
569
  }
561
570
  ],
562
571
  "required": [
@@ -612,25 +621,42 @@
612
621
  },
613
622
  "ownershipAndManagement": {
614
623
  "ta7ed5Ref": "4",
624
+ "discriminator": {
625
+ "propertyName": "hasTenantCompanyDissolved"
626
+ },
627
+ "oneOf": [
628
+ {
629
+ "properties": {
630
+ "hasTenantCompanyDissolved": {
631
+ "enum": [
632
+ "No",
633
+ "Not applicable"
634
+ ]
635
+ }
636
+ }
637
+ },
638
+ {
639
+ "properties": {
640
+ "hasTenantCompanyDissolved": {
641
+ "enum": [
642
+ "Yes"
643
+ ]
644
+ },
645
+ "hasTenantCompanyDissolvedDetails": {
646
+ "ta7ed5Ref": "4.5.2"
647
+ }
648
+ },
649
+ "required": [
650
+ "hasTenantCompanyDissolvedDetails"
651
+ ]
652
+ }
653
+ ],
615
654
  "required": [
616
655
  "isManagingAgentEmployed",
617
656
  "sellerOwnership",
618
657
  "hasTenantCompanyDissolved"
619
658
  ],
620
659
  "properties": {
621
- "hasTenantCompanyDissolved": {
622
- "ta7ed5Ref": "4.5.1",
623
- "title": "Are you aware of any company responsible for managing the building having been dissolved or struck off the register at Companies House?",
624
- "enum": [
625
- "Yes",
626
- "No",
627
- "Not applicable"
628
- ]
629
- },
630
- "hasTenantCompanyDissolvedDetails": {
631
- "ta7ed5Ref": "4.5.2",
632
- "title": "If tenants’ management company has been dissolved or struck off, please provide details"
633
- },
634
660
  "isManagingAgentEmployed": {
635
661
  "ta7ed5Ref": "4.1.1",
636
662
  "title": "Is a managing agent appointed to manage the building and collect service charges?",
@@ -680,6 +706,15 @@
680
706
  "ta7ed5Ref": "4.4.1"
681
707
  }
682
708
  }
709
+ },
710
+ "hasTenantCompanyDissolved": {
711
+ "ta7ed5Ref": "4.5.1",
712
+ "title": "Are you aware of any company responsible for managing the building having been dissolved or struck off the register at Companies House?",
713
+ "enum": [
714
+ "Yes",
715
+ "No",
716
+ "Not applicable"
717
+ ]
683
718
  }
684
719
  }
685
720
  },
@@ -911,6 +946,7 @@
911
946
  }
912
947
  },
913
948
  "buildingsInsurance": {
949
+ "ta7ed5Ref": "2.2",
914
950
  "required": [
915
951
  "mostRecentBuildingsInsuranceDemandStatus"
916
952
  ],
@@ -1362,6 +1398,7 @@
1362
1398
  }
1363
1399
  },
1364
1400
  "requiredDocuments": {
1401
+ "ta7ed5Ref": "6",
1365
1402
  "required": [
1366
1403
  "noticeOfSale",
1367
1404
  "noticeOfBuildingCondition"
@@ -1491,6 +1528,7 @@
1491
1528
  }
1492
1529
  },
1493
1530
  "typeOfConstruction": {
1531
+ "ta7ed5Ref": "11",
1494
1532
  "required": [
1495
1533
  "buildingSafety"
1496
1534
  ],
@@ -5068,7 +5068,7 @@
5068
5068
  ]
5069
5069
  },
5070
5070
  "otherCollector": {
5071
- "title": "If 'Other' collects the ground rent, specify who",
5071
+ "title": "Please specify who",
5072
5072
  "type": "string",
5073
5073
  "minLength": 1
5074
5074
  }
@@ -5123,7 +5123,7 @@
5123
5123
  ]
5124
5124
  },
5125
5125
  "otherCollector": {
5126
- "title": "If 'Other' collects the building insurance premiums, specify who",
5126
+ "title": "Please specify who",
5127
5127
  "type": "string",
5128
5128
  "minLength": 1
5129
5129
  }
@@ -5764,17 +5764,6 @@
5764
5764
  }
5765
5765
  ]
5766
5766
  },
5767
- "hasTenantCompanyDissolved": {
5768
- "title": "Has any tenants’ management company been dissolved or struck off the register at Companies House?",
5769
- "type": "string",
5770
- "enum": [
5771
- "Yes",
5772
- "No"
5773
- ]
5774
- },
5775
- "hasTenantCompanyDissolvedDetails": {
5776
- "type": "string"
5777
- },
5778
5767
  "isManagingAgentEmployed": {
5779
5768
  "title": "Does the landlord, tenants’ management company or Right to Manage company employ a managing agent to collect rent or manage the building?",
5780
5769
  "type": "string",
@@ -5827,8 +5816,41 @@
5827
5816
  }
5828
5817
  }
5829
5818
  ]
5819
+ },
5820
+ "hasTenantCompanyDissolved": {
5821
+ "title": "Has any tenants' management company been dissolved or struck off the register at Companies House?",
5822
+ "type": "string",
5823
+ "enum": [
5824
+ "Yes",
5825
+ "No"
5826
+ ]
5830
5827
  }
5831
- }
5828
+ },
5829
+ "oneOf": [
5830
+ {
5831
+ "properties": {
5832
+ "hasTenantCompanyDissolved": {
5833
+ "enum": [
5834
+ "No",
5835
+ "Not applicable"
5836
+ ]
5837
+ }
5838
+ }
5839
+ },
5840
+ {
5841
+ "properties": {
5842
+ "hasTenantCompanyDissolved": {
5843
+ "enum": [
5844
+ "Yes"
5845
+ ]
5846
+ },
5847
+ "hasTenantCompanyDissolvedDetails": {
5848
+ "title": "If tenants' management company has been dissolved or struck off, please provide details",
5849
+ "type": "string"
5850
+ }
5851
+ }
5852
+ }
5853
+ ]
5832
5854
  },
5833
5855
  "serviceCharge": {
5834
5856
  "title": "Service Charge",
@@ -927,13 +927,13 @@
927
927
  "buildingManagerType": "variant",
928
928
  "details": "string"
929
929
  },
930
- "hasTenantCompanyDissolved": "string",
931
- "hasTenantCompanyDissolvedDetails": "string",
932
930
  "isManagingAgentEmployed": "string",
933
931
  "sellerOwnership": {
934
932
  "yesNo": "variant",
935
933
  "attachments": "string"
936
- }
934
+ },
935
+ "hasTenantCompanyDissolved": "variant",
936
+ "hasTenantCompanyDissolvedDetails": "string"
937
937
  },
938
938
  "serviceCharge": {
939
939
  "sellerContributesToServiceCharge": "variant",