@pdtf/schemas 3.5.1-1 → 3.5.1-3

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.
@@ -17,7 +17,6 @@
17
17
  "properties": {
18
18
  "role": {
19
19
  "enum": [
20
- "Buyer",
21
20
  "Seller's Conveyancer",
22
21
  "Prospective Buyer",
23
22
  "Buyer's Conveyancer",
@@ -32,6 +31,15 @@
32
31
  }
33
32
  }
34
33
  },
34
+ {
35
+ "properties": {
36
+ "role": {
37
+ "enum": [
38
+ "Buyer"
39
+ ]
40
+ }
41
+ }
42
+ },
35
43
  {
36
44
  "properties": {
37
45
  "role": {
@@ -17,7 +17,6 @@
17
17
  "properties": {
18
18
  "role": {
19
19
  "enum": [
20
- "Buyer",
21
20
  "Seller's Conveyancer",
22
21
  "Prospective Buyer",
23
22
  "Buyer's Conveyancer",
@@ -32,6 +31,15 @@
32
31
  }
33
32
  }
34
33
  },
34
+ {
35
+ "properties": {
36
+ "role": {
37
+ "enum": [
38
+ "Buyer"
39
+ ]
40
+ }
41
+ }
42
+ },
35
43
  {
36
44
  "properties": {
37
45
  "role": {
@@ -841,58 +841,6 @@
841
841
  }
842
842
  ]
843
843
  },
844
- "problemInServiceChargeLevel": {
845
- "required": [
846
- "yesNo"
847
- ],
848
- "oneOf": [
849
- null,
850
- {
851
- "required": [
852
- "details"
853
- ]
854
- }
855
- ]
856
- },
857
- "serviceChargeChallenged": {
858
- "required": [
859
- "yesNo"
860
- ],
861
- "oneOf": [
862
- null,
863
- {
864
- "required": [
865
- "details"
866
- ]
867
- }
868
- ]
869
- },
870
- "difficultyInCollectingServiceCharge": {
871
- "required": [
872
- "yesNo"
873
- ],
874
- "oneOf": [
875
- null,
876
- {
877
- "required": [
878
- "details"
879
- ]
880
- }
881
- ]
882
- },
883
- "serviceChargeOwed": {
884
- "required": [
885
- "yesNo"
886
- ],
887
- "oneOf": [
888
- null,
889
- {
890
- "required": [
891
- "details"
892
- ]
893
- }
894
- ]
895
- },
896
844
  "propertiesContributingToMaintenanceOfManagedArea": {
897
845
  "lpe1Ref": "4.1"
898
846
  },
@@ -1301,11 +1249,6 @@
1301
1249
  "required": [
1302
1250
  "annualServiceCharge",
1303
1251
  "largeAdditionalExpense",
1304
- "problemInServiceChargeLevel",
1305
- "serviceChargeChallenged",
1306
- "dangerousCladdingOrDefects",
1307
- "difficultyInCollectingServiceCharge",
1308
- "serviceChargeOwed",
1309
1252
  "propertiesContributingToMaintenanceOfManagedArea",
1310
1253
  "adHocExpenses",
1311
1254
  "serviceChargePaidUpToDate",
@@ -13,7 +13,6 @@
13
13
  "properties": {
14
14
  "role": {
15
15
  "enum": [
16
- "Buyer",
17
16
  "Seller's Conveyancer",
18
17
  "Prospective Buyer",
19
18
  "Buyer's Conveyancer",
@@ -28,6 +27,15 @@
28
27
  }
29
28
  }
30
29
  },
30
+ {
31
+ "properties": {
32
+ "role": {
33
+ "enum": [
34
+ "Buyer"
35
+ ]
36
+ }
37
+ }
38
+ },
31
39
  {
32
40
  "properties": {
33
41
  "role": {
@@ -5,6 +5,7 @@
5
5
  "participants": {
6
6
  "items": {
7
7
  "oneOf": [
8
+ null,
8
9
  null,
9
10
  {
10
11
  "properties": {
@@ -3128,11 +3128,52 @@
3128
3128
  ],
3129
3129
  "properties": {
3130
3130
  "flooding": {
3131
- "ta6Ref": "7.1.0",
3131
+ "ta6Ref": "7",
3132
3132
  "required": [
3133
+ "floodRiskReport",
3133
3134
  "historicalFlooding"
3134
3135
  ],
3135
3136
  "properties": {
3137
+ "floodRiskReport": {
3138
+ "ta6Ref": "7.3",
3139
+ "discriminator": {
3140
+ "propertyName": "hasReportBeenPrepared"
3141
+ },
3142
+ "oneOf": [
3143
+ {
3144
+ "properties": {
3145
+ "hasReportBeenPrepared": {
3146
+ "enum": [
3147
+ "No"
3148
+ ]
3149
+ }
3150
+ }
3151
+ },
3152
+ {
3153
+ "properties": {
3154
+ "hasReportBeenPrepared": {
3155
+ "enum": [
3156
+ "Yes"
3157
+ ]
3158
+ },
3159
+ "attachments": {
3160
+ "ta6Ref": "7.3.2"
3161
+ }
3162
+ },
3163
+ "required": [
3164
+ "attachments"
3165
+ ]
3166
+ }
3167
+ ],
3168
+ "required": [
3169
+ "hasReportBeenPrepared"
3170
+ ],
3171
+ "properties": {
3172
+ "hasReportBeenPrepared": {
3173
+ "ta6Ref": "7.3.1"
3174
+ }
3175
+ }
3176
+ },
3136
3177
  "historicalFlooding": {
3137
3178
  "ta6Ref": "7.1",
3138
3179
  "discriminator": {
@@ -610,7 +610,10 @@
610
610
  "details": {
611
611
  "ta7Ref": "5.7.2"
612
612
  }
613
- }
613
+ },
614
+ "required": [
615
+ "details"
616
+ ]
614
617
  }
615
618
  ],
616
619
  "required": [
@@ -623,7 +626,44 @@
623
626
  }
624
627
  },
625
628
  "dangerousCladdingOrDefects": {
626
- "ta7Ref": "5.8"
629
+ "ta7Ref": "5.8",
630
+ "discriminator": {
631
+ "propertyName": "yesNo"
632
+ },
633
+ "oneOf": [
634
+ {
635
+ "properties": {
636
+ "yesNo": {
637
+ "enum": [
638
+ "No"
639
+ ]
640
+ }
641
+ }
642
+ },
643
+ {
644
+ "properties": {
645
+ "yesNo": {
646
+ "enum": [
647
+ "Yes"
648
+ ]
649
+ },
650
+ "details": {
651
+ "ta7Ref": "5.8.2"
652
+ }
653
+ },
654
+ "required": [
655
+ "details"
656
+ ]
657
+ }
658
+ ],
659
+ "required": [
660
+ "yesNo"
661
+ ],
662
+ "properties": {
663
+ "yesNo": {
664
+ "ta7Ref": "5.8.1"
665
+ }
666
+ }
627
667
  },
628
668
  "difficultyInCollectingServiceCharge": {
629
669
  "ta7Ref": "5.9",
@@ -690,7 +730,10 @@
690
730
  "details": {
691
731
  "ta7Ref": "5.10.2"
692
732
  }
693
- }
733
+ },
734
+ "required": [
735
+ "details"
736
+ ]
694
737
  }
695
738
  ],
696
739
  "required": [
@@ -273,7 +273,6 @@
273
273
  "properties": {
274
274
  "role": {
275
275
  "enum": [
276
- "Buyer",
277
276
  "Seller's Conveyancer",
278
277
  "Prospective Buyer",
279
278
  "Buyer's Conveyancer",
@@ -288,6 +287,20 @@
288
287
  }
289
288
  }
290
289
  },
290
+ {
291
+ "properties": {
292
+ "role": {
293
+ "enum": [
294
+ "Buyer"
295
+ ]
296
+ },
297
+ "offerId": {
298
+ "title": "Reference to an offer in the offers object",
299
+ "type": "string",
300
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:+-]*$"
301
+ }
302
+ }
303
+ },
291
304
  {
292
305
  "properties": {
293
306
  "role": {
@@ -5429,10 +5442,40 @@
5429
5442
  },
5430
5443
  "dangerousCladdingOrDefects": {
5431
5444
  "title": "Does the seller know of the existence or suspected existence in the building of dangerous cladding or any other defects that create a building safety risk?",
5432
- "type": "string",
5433
- "enum": [
5434
- "Yes",
5435
- "No"
5445
+ "type": "object",
5446
+ "properties": {
5447
+ "yesNo": {
5448
+ "type": "string",
5449
+ "title": "",
5450
+ "enum": [
5451
+ "Yes",
5452
+ "No"
5453
+ ]
5454
+ }
5455
+ },
5456
+ "oneOf": [
5457
+ {
5458
+ "properties": {
5459
+ "yesNo": {
5460
+ "enum": [
5461
+ "No"
5462
+ ]
5463
+ }
5464
+ }
5465
+ },
5466
+ {
5467
+ "properties": {
5468
+ "yesNo": {
5469
+ "enum": [
5470
+ "Yes"
5471
+ ]
5472
+ },
5473
+ "details": {
5474
+ "title": "Please give details:",
5475
+ "type": "string"
5476
+ }
5477
+ }
5478
+ }
5436
5479
  ]
5437
5480
  },
5438
5481
  "difficultyInCollectingServiceCharge": {
@@ -18310,6 +18353,48 @@
18310
18353
  "title": "Flooding",
18311
18354
  "type": "object",
18312
18355
  "properties": {
18356
+ "floodRiskReport": {
18357
+ "title": "Flood risk report",
18358
+ "type": "object",
18359
+ "properties": {
18360
+ "hasReportBeenPrepared": {
18361
+ "title": "Has a flood risk report been prepared?",
18362
+ "type": "string",
18363
+ "enum": [
18364
+ "Yes",
18365
+ "No"
18366
+ ]
18367
+ }
18368
+ },
18369
+ "oneOf": [
18370
+ {
18371
+ "properties": {
18372
+ "hasReportBeenPrepared": {
18373
+ "enum": [
18374
+ "No"
18375
+ ]
18376
+ }
18377
+ }
18378
+ },
18379
+ {
18380
+ "properties": {
18381
+ "hasReportBeenPrepared": {
18382
+ "enum": [
18383
+ "Yes"
18384
+ ]
18385
+ },
18386
+ "attachments": {
18387
+ "title": "Please supply a copy",
18388
+ "type": "string",
18389
+ "enum": [
18390
+ "Attached",
18391
+ "To follow"
18392
+ ]
18393
+ }
18394
+ }
18395
+ }
18396
+ ]
18397
+ },
18313
18398
  "floodRisk": {
18314
18399
  "title": "Flood Risk",
18315
18400
  "type": "object",
@@ -37220,6 +37305,61 @@
37220
37305
  }
37221
37306
  }
37222
37307
  }
37308
+ },
37309
+ "offers": {
37310
+ "title": "Offers for purchase of the property",
37311
+ "type": "object",
37312
+ "propertyNames": {
37313
+ "pattern": "^[A-Za-z0-9][A-Za-z0-9._:+-]*$"
37314
+ },
37315
+ "patternProperties": {
37316
+ ".*": {
37317
+ "type": "object",
37318
+ "properties": {
37319
+ "amount": {
37320
+ "type": "number",
37321
+ "minimum": 0
37322
+ },
37323
+ "currency": {
37324
+ "type": "string",
37325
+ "pattern": "^[A-Z]{3}$"
37326
+ },
37327
+ "status": {
37328
+ "type": "string",
37329
+ "enum": [
37330
+ "pending",
37331
+ "withdrawn",
37332
+ "rejected",
37333
+ "accepted",
37334
+ "noteOfInterest"
37335
+ ]
37336
+ },
37337
+ "inclusions": {
37338
+ "type": "array",
37339
+ "items": {
37340
+ "type": "string"
37341
+ }
37342
+ },
37343
+ "exclusions": {
37344
+ "type": "array",
37345
+ "items": {
37346
+ "type": "string"
37347
+ }
37348
+ },
37349
+ "conditions": {
37350
+ "type": "array",
37351
+ "items": {
37352
+ "type": "string"
37353
+ }
37354
+ }
37355
+ },
37356
+ "required": [
37357
+ "amount",
37358
+ "currency",
37359
+ "status"
37360
+ ]
37361
+ }
37362
+ }
37223
37363
  }
37224
37364
  }
37225
37365
  }