@pdtf/schemas 2.3.0 → 3.0.0-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 (41) hide show
  1. package/index.js +52 -94
  2. package/package.json +1 -1
  3. package/src/examples/v2/exampleTransaction.json +6 -20
  4. package/src/examples/v3/exampleTransaction.json +904 -0
  5. package/src/mappings/SendPropertyDetailsRequestSchema.json +1588 -0
  6. package/src/mappings/adf.js +1 -1
  7. package/src/schemas/v2/combined.json +13206 -12615
  8. package/src/schemas/v2/overlays/baspi.json +510 -2331
  9. package/src/schemas/v2/overlays/con29DW.json +682 -762
  10. package/src/schemas/v2/overlays/con29R.json +2914 -3073
  11. package/src/schemas/v2/overlays/fme1.json +48 -233
  12. package/src/schemas/v2/overlays/llc1.json +12 -33
  13. package/src/schemas/v2/overlays/lpe1.json +75 -367
  14. package/src/schemas/v2/overlays/nts.json +17 -103
  15. package/src/schemas/v2/overlays/piq.json +146 -693
  16. package/src/schemas/v2/overlays/rds.json +66 -300
  17. package/src/schemas/v2/overlays/ta10.json +540 -1755
  18. package/src/schemas/v2/overlays/ta6.json +241 -1193
  19. package/src/schemas/v2/overlays/ta7.json +106 -440
  20. package/src/schemas/v2/pdtf-transaction.json +13656 -12911
  21. package/src/schemas/v2/skeleton.json +1342 -1155
  22. package/src/schemas/v3/combined.json +38477 -0
  23. package/src/schemas/v3/overlays/baspi.json +8022 -0
  24. package/src/schemas/v3/overlays/con29DW.json +705 -0
  25. package/src/schemas/v3/overlays/con29R.json +2956 -0
  26. package/src/schemas/v3/overlays/fme1.json +1264 -0
  27. package/src/schemas/v3/overlays/llc1.json +25 -0
  28. package/src/schemas/v3/overlays/lpe1.json +2181 -0
  29. package/src/schemas/v3/overlays/nts.json +1937 -0
  30. package/src/schemas/v3/overlays/oc1.json +2799 -0
  31. package/src/schemas/v3/overlays/piq.json +3391 -0
  32. package/src/schemas/v3/overlays/rds.json +3818 -0
  33. package/src/schemas/v3/overlays/ta10.json +5306 -0
  34. package/src/schemas/v3/overlays/ta6.json +4410 -0
  35. package/src/schemas/v3/overlays/ta7.json +1157 -0
  36. package/src/schemas/v3/pdtf-transaction.json +34858 -0
  37. package/src/schemas/v3/skeleton.json +4018 -0
  38. package/src/tests/{v2 → v3}/transactionSchema.test.js +46 -36
  39. package/src/tests/{v2 → v3}/verifiedClaimsValidator.test.js +11 -11
  40. package/src/utils/extractOverlay.js +12 -34
  41. package/src/utils/hmlrLLC1.json +0 -275
@@ -0,0 +1,1157 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema#",
3
+ "$id": "https://trust.propdata.org.uk/schemas/v3/overlays/ta7.json",
4
+ "properties": {
5
+ "propertyPack": {
6
+ "properties": {
7
+ "materialFacts": {
8
+ "properties": {
9
+ "address": {
10
+ "ta7Ref": "0.1",
11
+ "properties": {
12
+ "line1": {
13
+ "ta7Ref": "0.1.1"
14
+ },
15
+ "line2": {
16
+ "ta7Ref": "0.1.2"
17
+ },
18
+ "line3": {
19
+ "ta7Ref": "0.1.3"
20
+ },
21
+ "town": {
22
+ "ta7Ref": "0.1.4"
23
+ },
24
+ "postcode": {
25
+ "ta7Ref": "0.1.5"
26
+ }
27
+ }
28
+ },
29
+ "ownership": {
30
+ "ta7Ref": "1",
31
+ "properties": {
32
+ "ownershipsToBeTransferred": {
33
+ "ta7Ref": "1",
34
+ "items": {
35
+ "ta7Ref": "1",
36
+ "discriminator": {
37
+ "propertyName": "ownershipType"
38
+ },
39
+ "oneOf": [
40
+ {
41
+ "properties": {
42
+ "ownershipType": {
43
+ "enum": [
44
+ "Freehold"
45
+ ]
46
+ }
47
+ }
48
+ },
49
+ {
50
+ "properties": {
51
+ "ownershipType": {
52
+ "enum": [
53
+ "Managed Freehold",
54
+ "Commonhold"
55
+ ]
56
+ },
57
+ "managedFreeholdOrCommonholdInformation": {
58
+ "properties": {
59
+ "contactDetails": {
60
+ "properties": {
61
+ "managementCompany": {
62
+ "properties": {
63
+ "contact": {
64
+ "ta7Ref": "4.1b",
65
+ "properties": {
66
+ "nameOrOrganisation": {
67
+ "ta7Ref": "4.1b.1"
68
+ },
69
+ "address": {
70
+ "properties": {
71
+ "line1": {
72
+ "ta7Ref": "4.1b.2"
73
+ },
74
+ "line2": {
75
+ "ta7Ref": "4.1b.3"
76
+ },
77
+ "line3": {
78
+ "ta7Ref": "4.1b.4"
79
+ },
80
+ "town": {
81
+ "ta7Ref": "4.1b.5"
82
+ },
83
+ "postcode": {
84
+ "ta7Ref": "4.1b.6"
85
+ }
86
+ }
87
+ },
88
+ "telephone": {
89
+ "ta7Ref": "4.1b.7"
90
+ },
91
+ "emailAddress": {
92
+ "ta7Ref": "4.1b.8"
93
+ }
94
+ }
95
+ }
96
+ }
97
+ },
98
+ "managingAgent": {
99
+ "properties": {
100
+ "contact": {
101
+ "ta7Ref": "4.1c",
102
+ "properties": {
103
+ "nameOrOrganisation": {
104
+ "ta7Ref": "4.1c.1"
105
+ },
106
+ "address": {
107
+ "properties": {
108
+ "line1": {
109
+ "ta7Ref": "4.1c.2"
110
+ },
111
+ "line2": {
112
+ "ta7Ref": "4.1c.3"
113
+ },
114
+ "line3": {
115
+ "ta7Ref": "4.1c.4"
116
+ },
117
+ "town": {
118
+ "ta7Ref": "4.1c.5"
119
+ },
120
+ "postcode": {
121
+ "ta7Ref": "4.1c.6"
122
+ }
123
+ }
124
+ },
125
+ "telephone": {
126
+ "ta7Ref": "4.1c.7"
127
+ },
128
+ "emailAddress": {
129
+ "ta7Ref": "4.1c.8"
130
+ }
131
+ }
132
+ }
133
+ }
134
+ }
135
+ }
136
+ }
137
+ }
138
+ }
139
+ }
140
+ },
141
+ {
142
+ "properties": {
143
+ "ownershipType": {
144
+ "enum": [
145
+ "Leasehold"
146
+ ]
147
+ },
148
+ "leaseholdInformation": {
149
+ "required": [
150
+ "typeOfLeasehold",
151
+ "leaseTerm",
152
+ "contactDetails",
153
+ "transferAndRegistration",
154
+ "groundRent",
155
+ "ownershipAndManagement",
156
+ "disputesAndEnfranchisement",
157
+ "general",
158
+ "requiredDocuments"
159
+ ],
160
+ "properties": {
161
+ "typeOfLeasehold": {
162
+ "properties": {
163
+ "leaseholdType": {
164
+ "ta7Ref": "1.1"
165
+ }
166
+ }
167
+ },
168
+ "contactDetails": {
169
+ "ta7Ref": "4.1",
170
+ "required": [
171
+ "contacts"
172
+ ],
173
+ "properties": {
174
+ "contacts": {
175
+ "ta7Ref": "4.1",
176
+ "required": [
177
+ "landlord",
178
+ "managementCompany",
179
+ "managingAgent"
180
+ ],
181
+ "properties": {
182
+ "landlord": {
183
+ "ta7Ref": "4.1a",
184
+ "properties": {
185
+ "contact": {
186
+ "ta7Ref": "4.1a",
187
+ "properties": {
188
+ "nameOrOrganisation": {
189
+ "ta7Ref": "4.1a.1"
190
+ },
191
+ "address": {
192
+ "properties": {
193
+ "line1": {
194
+ "ta7Ref": "4.1a.2"
195
+ },
196
+ "line2": {
197
+ "ta7Ref": "4.1a.3"
198
+ },
199
+ "line3": {
200
+ "ta7Ref": "4.1a.4"
201
+ },
202
+ "town": {
203
+ "ta7Ref": "4.1a.5"
204
+ },
205
+ "postcode": {
206
+ "ta7Ref": "4.1a.6"
207
+ }
208
+ }
209
+ },
210
+ "telephone": {
211
+ "ta7Ref": "4.1a.7"
212
+ },
213
+ "emailAddress": {
214
+ "ta7Ref": "4.1a.8"
215
+ }
216
+ }
217
+ }
218
+ }
219
+ },
220
+ "managementCompany": {
221
+ "properties": {
222
+ "contact": {
223
+ "ta7Ref": "4.1b",
224
+ "properties": {
225
+ "nameOrOrganisation": {
226
+ "ta7Ref": "4.1b.1"
227
+ },
228
+ "address": {
229
+ "properties": {
230
+ "line1": {
231
+ "ta7Ref": "4.1b.2"
232
+ },
233
+ "line2": {
234
+ "ta7Ref": "4.1b.3"
235
+ },
236
+ "line3": {
237
+ "ta7Ref": "4.1b.4"
238
+ },
239
+ "town": {
240
+ "ta7Ref": "4.1b.5"
241
+ },
242
+ "postcode": {
243
+ "ta7Ref": "4.1b.6"
244
+ }
245
+ }
246
+ },
247
+ "telephone": {
248
+ "ta7Ref": "4.1b.7"
249
+ },
250
+ "emailAddress": {
251
+ "ta7Ref": "4.1b.8"
252
+ }
253
+ }
254
+ }
255
+ }
256
+ },
257
+ "managingAgent": {
258
+ "ta7Ref": "4.1c",
259
+ "properties": {
260
+ "contact": {
261
+ "ta7Ref": "4.1c",
262
+ "properties": {
263
+ "nameOrOrganisation": {
264
+ "ta7Ref": "4.1c.1"
265
+ },
266
+ "address": {
267
+ "properties": {
268
+ "line1": {
269
+ "ta7Ref": "4.1c.2"
270
+ },
271
+ "line2": {
272
+ "ta7Ref": "4.1c.3"
273
+ },
274
+ "line3": {
275
+ "ta7Ref": "4.1c.4"
276
+ },
277
+ "town": {
278
+ "ta7Ref": "4.1c.5"
279
+ },
280
+ "postcode": {
281
+ "ta7Ref": "4.1c.6"
282
+ }
283
+ }
284
+ },
285
+ "telephone": {
286
+ "ta7Ref": "4.1c.7"
287
+ },
288
+ "emailAddress": {
289
+ "ta7Ref": "4.1c.8"
290
+ }
291
+ }
292
+ }
293
+ }
294
+ }
295
+ }
296
+ },
297
+ "serviceContactAssignments": {
298
+ "properties": {
299
+ "organisesBuildingInsurance": {
300
+ "ta7Ref": "5.1"
301
+ }
302
+ }
303
+ }
304
+ }
305
+ },
306
+ "transferAndRegistration": {
307
+ "required": [
308
+ "awareOfConsents",
309
+ "changesInTermOfLease"
310
+ ],
311
+ "properties": {
312
+ "awareOfConsents": {
313
+ "ta7Ref": "9.3",
314
+ "discriminator": {
315
+ "propertyName": "yesNo"
316
+ },
317
+ "oneOf": [
318
+ {
319
+ "properties": {
320
+ "yesNo": {
321
+ "enum": [
322
+ "No"
323
+ ]
324
+ }
325
+ }
326
+ },
327
+ {
328
+ "properties": {
329
+ "yesNo": {
330
+ "enum": [
331
+ "Yes"
332
+ ]
333
+ }
334
+ }
335
+ }
336
+ ],
337
+ "required": [
338
+ "yesNo"
339
+ ],
340
+ "properties": {
341
+ "yesNo": {
342
+ "ta7Ref": "9.3.1"
343
+ }
344
+ }
345
+ },
346
+ "changesInTermOfLease": {
347
+ "ta7Ref": "7.1",
348
+ "discriminator": {
349
+ "propertyName": "isSellerAwareOfChanges"
350
+ },
351
+ "oneOf": [
352
+ {
353
+ "properties": {
354
+ "isSellerAwareOfChanges": {
355
+ "enum": [
356
+ "No",
357
+ "Attached",
358
+ "To follow",
359
+ "Lost"
360
+ ]
361
+ }
362
+ }
363
+ },
364
+ {
365
+ "properties": {
366
+ "isSellerAwareOfChanges": {
367
+ "enum": [
368
+ "Yes"
369
+ ]
370
+ },
371
+ "details": {
372
+ "ta7Ref": "7.1.3"
373
+ }
374
+ }
375
+ }
376
+ ],
377
+ "required": [
378
+ "isSellerAwareOfChanges"
379
+ ]
380
+ }
381
+ }
382
+ },
383
+ "groundRent": {
384
+ "ta7Ref": "1.2",
385
+ "discriminator": {
386
+ "propertyName": "isGroundRentPayable"
387
+ },
388
+ "oneOf": [
389
+ {
390
+ "properties": {
391
+ "isGroundRentPayable": {
392
+ "enum": [
393
+ "No"
394
+ ]
395
+ }
396
+ }
397
+ },
398
+ {
399
+ "properties": {
400
+ "isGroundRentPayable": {
401
+ "enum": [
402
+ "Yes"
403
+ ]
404
+ },
405
+ "annualGroundRent": {
406
+ "ta7Ref": "1.2a"
407
+ },
408
+ "groundRentFrequency": {
409
+ "ta7Ref": "1.2b"
410
+ },
411
+ "rentSubjectToIncrease": {
412
+ "ta7Ref": "1.2c",
413
+ "discriminator": {
414
+ "propertyName": "yesNo"
415
+ },
416
+ "oneOf": [
417
+ {
418
+ "properties": {
419
+ "yesNo": {
420
+ "enum": [
421
+ "No"
422
+ ]
423
+ }
424
+ }
425
+ },
426
+ {
427
+ "properties": {
428
+ "yesNo": {
429
+ "enum": [
430
+ "Yes"
431
+ ]
432
+ },
433
+ "rentReviewFrequency": {
434
+ "ta7Ref": "1.2d"
435
+ },
436
+ "rentIncreaseCalculated": {
437
+ "ta7Ref": "1.2e"
438
+ }
439
+ }
440
+ }
441
+ ],
442
+ "required": [
443
+ "yesNo"
444
+ ],
445
+ "properties": {
446
+ "yesNo": {
447
+ "ta7Ref": "1.2c.1"
448
+ }
449
+ }
450
+ }
451
+ }
452
+ }
453
+ ],
454
+ "required": [
455
+ "isGroundRentPayable"
456
+ ],
457
+ "properties": {
458
+ "isGroundRentPayable": {
459
+ "ta7Ref": "1.2.1"
460
+ }
461
+ }
462
+ },
463
+ "ownershipAndManagement": {
464
+ "ta7Ref": "2",
465
+ "required": [
466
+ "freeholdOwner",
467
+ "hasHeadlease",
468
+ "buildingManager",
469
+ "hasTenantCompanyDissolved",
470
+ "isManagingAgentEmployed"
471
+ ],
472
+ "properties": {
473
+ "freeholdOwner": {
474
+ "ta7Ref": "2.1b"
475
+ },
476
+ "hasHeadlease": {
477
+ "ta7Ref": "2.2",
478
+ "discriminator": {
479
+ "propertyName": "yesNo"
480
+ },
481
+ "oneOf": [
482
+ {
483
+ "properties": {
484
+ "yesNo": {
485
+ "enum": [
486
+ "No"
487
+ ]
488
+ }
489
+ }
490
+ },
491
+ {
492
+ "properties": {
493
+ "yesNo": {
494
+ "enum": [
495
+ "Yes"
496
+ ]
497
+ },
498
+ "headLeaseholderControlled": {
499
+ "ta7Ref": "2.2.2"
500
+ }
501
+ }
502
+ }
503
+ ],
504
+ "required": [
505
+ "yesNo"
506
+ ],
507
+ "properties": {
508
+ "yesNo": {
509
+ "ta7Ref": "2.2.1"
510
+ }
511
+ }
512
+ },
513
+ "buildingManager": {
514
+ "ta7Ref": "2.3",
515
+ "discriminator": {
516
+ "propertyName": "buildingManagerType"
517
+ },
518
+ "oneOf": [
519
+ {
520
+ "properties": {
521
+ "buildingManagerType": {
522
+ "enum": [
523
+ "Freeholder",
524
+ "Headleaseholder",
525
+ "Management company named in lease of the property",
526
+ "Right to manage company set up by the tenants under statutory rights"
527
+ ]
528
+ }
529
+ }
530
+ },
531
+ {
532
+ "properties": {
533
+ "buildingManagerType": {
534
+ "enum": [
535
+ "Other"
536
+ ]
537
+ },
538
+ "details": {
539
+ "ta7Ref": "2.3e"
540
+ }
541
+ }
542
+ }
543
+ ],
544
+ "required": [
545
+ "buildingManagerType"
546
+ ]
547
+ },
548
+ "hasTenantCompanyDissolved": {
549
+ "ta7Ref": "2.4"
550
+ },
551
+ "isManagingAgentEmployed": {
552
+ "ta7Ref": "2.5"
553
+ }
554
+ }
555
+ },
556
+ "serviceCharge": {
557
+ "ta7Ref": "5.4",
558
+ "discriminator": {
559
+ "propertyName": "sellerContributesToServiceCharge"
560
+ },
561
+ "oneOf": [
562
+ {
563
+ "properties": {
564
+ "sellerContributesToServiceCharge": {
565
+ "enum": [
566
+ "No"
567
+ ]
568
+ }
569
+ }
570
+ },
571
+ {
572
+ "properties": {
573
+ "sellerContributesToServiceCharge": {
574
+ "enum": [
575
+ "Yes"
576
+ ]
577
+ },
578
+ "largeAdditionalExpense": {
579
+ "ta7Ref": "5.5",
580
+ "discriminator": {
581
+ "propertyName": "yesNo"
582
+ },
583
+ "oneOf": [
584
+ {
585
+ "properties": {
586
+ "yesNo": {
587
+ "enum": [
588
+ "No"
589
+ ]
590
+ }
591
+ }
592
+ },
593
+ {
594
+ "properties": {
595
+ "yesNo": {
596
+ "enum": [
597
+ "Yes"
598
+ ]
599
+ },
600
+ "details": {
601
+ "ta7Ref": "5.5.2"
602
+ }
603
+ }
604
+ }
605
+ ],
606
+ "required": [
607
+ "yesNo"
608
+ ],
609
+ "properties": {
610
+ "yesNo": {
611
+ "ta7Ref": "5.5.1"
612
+ }
613
+ }
614
+ },
615
+ "problemInServiceChargeLevel": {
616
+ "ta7Ref": "5.6",
617
+ "discriminator": {
618
+ "propertyName": "yesNo"
619
+ },
620
+ "oneOf": [
621
+ {
622
+ "properties": {
623
+ "yesNo": {
624
+ "enum": [
625
+ "No"
626
+ ]
627
+ }
628
+ }
629
+ },
630
+ {
631
+ "properties": {
632
+ "yesNo": {
633
+ "enum": [
634
+ "Yes"
635
+ ]
636
+ },
637
+ "details": {
638
+ "ta7Ref": "5.6.2"
639
+ }
640
+ }
641
+ }
642
+ ],
643
+ "required": [
644
+ "yesNo"
645
+ ],
646
+ "properties": {
647
+ "yesNo": {
648
+ "ta7Ref": "5.6.1"
649
+ }
650
+ }
651
+ },
652
+ "serviceChargeChallenged": {
653
+ "ta7Ref": "5.7",
654
+ "discriminator": {
655
+ "propertyName": "yesNo"
656
+ },
657
+ "oneOf": [
658
+ {
659
+ "properties": {
660
+ "yesNo": {
661
+ "enum": [
662
+ "No"
663
+ ]
664
+ }
665
+ }
666
+ },
667
+ {
668
+ "properties": {
669
+ "yesNo": {
670
+ "enum": [
671
+ "Yes"
672
+ ]
673
+ },
674
+ "details": {
675
+ "ta7Ref": "5.7.2"
676
+ }
677
+ }
678
+ }
679
+ ],
680
+ "required": [
681
+ "yesNo"
682
+ ],
683
+ "properties": {
684
+ "yesNo": {
685
+ "ta7Ref": "5.7.1"
686
+ }
687
+ }
688
+ },
689
+ "dangerousCladdingOrDefects": {
690
+ "ta7Ref": "5.8"
691
+ },
692
+ "difficultyInCollectingServiceCharge": {
693
+ "ta7Ref": "5.9",
694
+ "discriminator": {
695
+ "propertyName": "yesNo"
696
+ },
697
+ "oneOf": [
698
+ {
699
+ "properties": {
700
+ "yesNo": {
701
+ "enum": [
702
+ "No"
703
+ ]
704
+ }
705
+ }
706
+ },
707
+ {
708
+ "properties": {
709
+ "yesNo": {
710
+ "enum": [
711
+ "Yes"
712
+ ]
713
+ }
714
+ }
715
+ }
716
+ ],
717
+ "required": [
718
+ "yesNo"
719
+ ],
720
+ "properties": {
721
+ "yesNo": {
722
+ "ta7Ref": "5.9.1"
723
+ }
724
+ }
725
+ },
726
+ "serviceChargeOwed": {
727
+ "ta7Ref": "5.10",
728
+ "discriminator": {
729
+ "propertyName": "yesNo"
730
+ },
731
+ "oneOf": [
732
+ {
733
+ "properties": {
734
+ "yesNo": {
735
+ "enum": [
736
+ "No"
737
+ ]
738
+ }
739
+ }
740
+ },
741
+ {
742
+ "properties": {
743
+ "yesNo": {
744
+ "enum": [
745
+ "Yes"
746
+ ]
747
+ },
748
+ "details": {
749
+ "ta7Ref": "5.10.2"
750
+ }
751
+ }
752
+ }
753
+ ],
754
+ "required": [
755
+ "yesNo"
756
+ ],
757
+ "properties": {
758
+ "yesNo": {
759
+ "ta7Ref": "5.10.1"
760
+ }
761
+ }
762
+ },
763
+ "lastDecoratedPeriod": {
764
+ "properties": {
765
+ "internally": {
766
+ "ta7Ref": "5.3"
767
+ },
768
+ "externally": {
769
+ "ta7Ref": "5.2"
770
+ }
771
+ }
772
+ },
773
+ "deedOfCertificateServed": {
774
+ "ta7Ref": "11.3",
775
+ "discriminator": {
776
+ "propertyName": "yesNoNotApplicable"
777
+ },
778
+ "oneOf": [
779
+ {
780
+ "properties": {
781
+ "yesNoNotApplicable": {
782
+ "enum": [
783
+ "Not applicable"
784
+ ]
785
+ }
786
+ }
787
+ },
788
+ {
789
+ "properties": {
790
+ "yesNoNotApplicable": {
791
+ "enum": [
792
+ "No"
793
+ ]
794
+ }
795
+ }
796
+ },
797
+ {
798
+ "properties": {
799
+ "yesNoNotApplicable": {
800
+ "enum": [
801
+ "Yes"
802
+ ]
803
+ },
804
+ "sellerCompletedDeedOfCertificate": {
805
+ "ta7Ref": "11.3a"
806
+ }
807
+ }
808
+ }
809
+ ],
810
+ "required": [
811
+ "yesNoNotApplicable"
812
+ ],
813
+ "title": "Is there a Leaseholder Deed of Certificate for the property?",
814
+ "properties": {
815
+ "yesNoNotApplicable": {
816
+ "ta7Ref": "11.3.1"
817
+ }
818
+ }
819
+ }
820
+ }
821
+ }
822
+ ],
823
+ "required": [
824
+ "sellerContributesToServiceCharge"
825
+ ],
826
+ "properties": {
827
+ "sellerContributesToServiceCharge": {
828
+ "ta7Ref": "5.4"
829
+ }
830
+ }
831
+ },
832
+ "disputesAndEnfranchisement": {
833
+ "required": [
834
+ "sellerReceivedComplaint",
835
+ "sellerSentComplaint"
836
+ ],
837
+ "properties": {
838
+ "sellerReceivedComplaint": {
839
+ "ta7Ref": "8.1",
840
+ "discriminator": {
841
+ "propertyName": "yesNo"
842
+ },
843
+ "oneOf": [
844
+ {
845
+ "properties": {
846
+ "yesNo": {
847
+ "enum": [
848
+ "No"
849
+ ]
850
+ }
851
+ }
852
+ },
853
+ {
854
+ "properties": {
855
+ "yesNo": {
856
+ "enum": [
857
+ "Yes"
858
+ ]
859
+ },
860
+ "details": {
861
+ "ta7Ref": "8.1.2"
862
+ }
863
+ }
864
+ }
865
+ ],
866
+ "required": [
867
+ "yesNo"
868
+ ],
869
+ "properties": {
870
+ "yesNo": {
871
+ "ta7Ref": "8.1.1"
872
+ }
873
+ }
874
+ },
875
+ "sellerSentComplaint": {
876
+ "ta7Ref": "8.2",
877
+ "discriminator": {
878
+ "propertyName": "yesNo"
879
+ },
880
+ "oneOf": [
881
+ {
882
+ "properties": {
883
+ "yesNo": {
884
+ "enum": [
885
+ "No"
886
+ ]
887
+ }
888
+ }
889
+ },
890
+ {
891
+ "properties": {
892
+ "yesNo": {
893
+ "enum": [
894
+ "Yes"
895
+ ]
896
+ },
897
+ "details": {
898
+ "ta7Ref": "8.2.2"
899
+ }
900
+ }
901
+ }
902
+ ],
903
+ "required": [
904
+ "yesNo"
905
+ ],
906
+ "properties": {
907
+ "yesNo": {
908
+ "ta7Ref": "8.2.1"
909
+ }
910
+ }
911
+ }
912
+ }
913
+ },
914
+ "general": {
915
+ "required": [
916
+ "sellerAwareOfAlterations",
917
+ "sellerOwnedProperty",
918
+ "sellerServedNoticeOnLandlord",
919
+ "sellerAwareOfNoticeOfCollectivePurchase",
920
+ "sellerAwareOfResponse",
921
+ "isLeaseQualifying"
922
+ ],
923
+ "properties": {
924
+ "sellerAwareOfAlterations": {
925
+ "ta7Ref": "9.1",
926
+ "discriminator": {
927
+ "propertyName": "yesNo"
928
+ },
929
+ "oneOf": [
930
+ {
931
+ "properties": {
932
+ "yesNo": {
933
+ "enum": [
934
+ "No"
935
+ ]
936
+ }
937
+ }
938
+ },
939
+ {
940
+ "properties": {
941
+ "yesNo": {
942
+ "enum": [
943
+ "Yes"
944
+ ]
945
+ },
946
+ "details": {
947
+ "ta7Ref": "9.2"
948
+ }
949
+ }
950
+ }
951
+ ],
952
+ "required": [
953
+ "yesNo"
954
+ ],
955
+ "properties": {
956
+ "yesNo": {
957
+ "ta7Ref": "9.1.1"
958
+ }
959
+ }
960
+ },
961
+ "sellerOwnedProperty": {
962
+ "ta7Ref": "10.1"
963
+ },
964
+ "sellerServedNoticeOnLandlord": {
965
+ "ta7Ref": "10.2"
966
+ },
967
+ "sellerAwareOfNoticeOfCollectivePurchase": {
968
+ "ta7Ref": "10.3"
969
+ },
970
+ "sellerAwareOfResponse": {
971
+ "ta7Ref": "10.4"
972
+ },
973
+ "isLeaseQualifying": {
974
+ "ta7Ref": "11.2"
975
+ }
976
+ }
977
+ },
978
+ "requiredDocuments": {
979
+ "required": [
980
+ "noticeOfSale",
981
+ "noticeOfBuildingCondition",
982
+ "landlordNotifiedOfSale",
983
+ "copyOfcorrespondence",
984
+ "serviceChargeAccounts",
985
+ "groundRent",
986
+ "buildingsInsurancePolicy",
987
+ "additionalRegulationsNotInLease",
988
+ "deedsOfVariation",
989
+ "deedOfCovenant",
990
+ "memorandumAndArticles",
991
+ "shareOrMembershipCertificate",
992
+ "companyAccounts",
993
+ "deedOfCertificate",
994
+ "landlordsCertificate"
995
+ ],
996
+ "properties": {
997
+ "noticeOfSale": {
998
+ "ta7Ref": "6.1"
999
+ },
1000
+ "noticeOfBuildingCondition": {
1001
+ "ta7Ref": "6.2"
1002
+ },
1003
+ "landlordNotifiedOfSale": {
1004
+ "ta7Ref": "11.4"
1005
+ },
1006
+ "copyOfcorrespondence": {
1007
+ "ta7Ref": "3.2"
1008
+ },
1009
+ "serviceChargeAccounts": {
1010
+ "ta7Ref": "3.3a"
1011
+ },
1012
+ "groundRent": {
1013
+ "ta7Ref": "3.3b"
1014
+ },
1015
+ "buildingsInsurancePolicy": {
1016
+ "ta7Ref": "3.4",
1017
+ "properties": {
1018
+ "arrangedBySeller": {
1019
+ "ta7Ref": "3.4a"
1020
+ },
1021
+ "arrangedByLandlord": {
1022
+ "ta7Ref": "3.4b"
1023
+ }
1024
+ }
1025
+ },
1026
+ "additionalRegulationsNotInLease": {
1027
+ "ta7Ref": "3.1b"
1028
+ },
1029
+ "deedsOfVariation": {
1030
+ "ta7Ref": "3.1a"
1031
+ },
1032
+ "deedOfCovenant": {
1033
+ "ta7Ref": "3.1a"
1034
+ },
1035
+ "memorandumAndArticles": {
1036
+ "ta7Ref": "3.5a"
1037
+ },
1038
+ "shareOrMembershipCertificate": {
1039
+ "ta7Ref": "3.5b"
1040
+ },
1041
+ "companyAccounts": {
1042
+ "ta7Ref": "3.5c"
1043
+ },
1044
+ "deedOfCertificate": {
1045
+ "ta7Ref": "11.3b",
1046
+ "title": "Please supply a copy of the leaseholder deed of certificate and the accompanying evidence"
1047
+ },
1048
+ "landlordsCertificate": {
1049
+ "ta7Ref": "11.5",
1050
+ "title": "Has the seller received a Landlord’s Certificate and the accompanying evidence?",
1051
+ "enum": [
1052
+ "Enclosed",
1053
+ "To follow",
1054
+ "No"
1055
+ ]
1056
+ }
1057
+ }
1058
+ }
1059
+ }
1060
+ }
1061
+ },
1062
+ "required": [
1063
+ "leaseholdInformation"
1064
+ ]
1065
+ },
1066
+ {
1067
+ "properties": {
1068
+ "ownershipType": {
1069
+ "enum": [
1070
+ "Other"
1071
+ ]
1072
+ }
1073
+ }
1074
+ }
1075
+ ],
1076
+ "required": [
1077
+ "ownershipType"
1078
+ ],
1079
+ "properties": {
1080
+ "ownershipType": {
1081
+ "ta7Ref": "1.1"
1082
+ }
1083
+ }
1084
+ }
1085
+ }
1086
+ }
1087
+ },
1088
+ "typeOfConstruction": {
1089
+ "properties": {
1090
+ "buildingSafety": {
1091
+ "ta7Ref": "11.1",
1092
+ "discriminator": {
1093
+ "propertyName": "yesNo"
1094
+ },
1095
+ "oneOf": [
1096
+ {
1097
+ "properties": {
1098
+ "yesNo": {
1099
+ "enum": [
1100
+ "No",
1101
+ "Not applicable"
1102
+ ]
1103
+ }
1104
+ }
1105
+ },
1106
+ {
1107
+ "properties": {
1108
+ "yesNo": {
1109
+ "enum": [
1110
+ "Yes"
1111
+ ]
1112
+ },
1113
+ "details": {
1114
+ "ta7Ref": "11.1.2",
1115
+ "title": "Please provide details of the remediation works proposed and evidence of any carried out."
1116
+ },
1117
+ "workAlreadyDone": {
1118
+ "ta7Ref": "11.1.2"
1119
+ },
1120
+ "workToBeDone": {
1121
+ "ta7Ref": "11.1.2"
1122
+ },
1123
+ "potentialCost": {
1124
+ "ta7Ref": "11.1.2"
1125
+ },
1126
+ "abilityToResideAtProperty": {
1127
+ "ta7Ref": "11.1.2"
1128
+ },
1129
+ "attachments": {
1130
+ "ta7Ref": "11.1.3"
1131
+ }
1132
+ }
1133
+ }
1134
+ ],
1135
+ "required": [
1136
+ "yesNo"
1137
+ ],
1138
+ "title": "Have any remediation works on the building been proposed or carried out?",
1139
+ "properties": {
1140
+ "yesNo": {
1141
+ "ta7Ref": "11.1.1",
1142
+ "enum": [
1143
+ "Yes",
1144
+ "No",
1145
+ "Not applicable"
1146
+ ]
1147
+ }
1148
+ }
1149
+ }
1150
+ }
1151
+ }
1152
+ }
1153
+ }
1154
+ }
1155
+ }
1156
+ }
1157
+ }