@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
@@ -4,779 +4,699 @@
4
4
  "properties": {
5
5
  "propertyPack": {
6
6
  "properties": {
7
- "searches": {
8
- "items": {
9
- "oneOf": [
10
- null,
11
- {
12
- "properties": {
13
- "results": {
14
- "items": {
7
+ "materialFacts": {
8
+ "properties": {
9
+ "waterAndDrainage": {
10
+ "con29DWRef": "0",
11
+ "required": [
12
+ "maps",
13
+ "water",
14
+ "drainage",
15
+ "charging"
16
+ ],
17
+ "properties": {
18
+ "maps": {
19
+ "con29DWRef": "1",
20
+ "required": [
21
+ "publicSewerMapAttached",
22
+ "waterworksMapAttached"
23
+ ],
24
+ "properties": {
25
+ "publicSewerMapAttached": {
26
+ "con29DWRef": "1.1"
27
+ },
28
+ "waterworksMapAttached": {
29
+ "con29DWRef": "1.2"
30
+ }
31
+ }
32
+ },
33
+ "water": {
34
+ "con29DWRef": "3",
35
+ "required": [
36
+ "mainsWater",
37
+ "waterMainsWithinBoundaries",
38
+ "waterMainsSubjectOfAdoptionAgreement",
39
+ "lowWaterPressureRisk",
40
+ "waterQualityAnalysis",
41
+ "waterMeterLocation"
42
+ ],
43
+ "properties": {
44
+ "mainsWater": {
45
+ "con29DWRef": "3.1",
46
+ "discriminator": {
47
+ "propertyName": "yesNo"
48
+ },
49
+ "oneOf": [
50
+ {
51
+ "properties": {
52
+ "yesNo": {
53
+ "enum": [
54
+ "No"
55
+ ]
56
+ }
57
+ }
58
+ },
59
+ {
60
+ "properties": {
61
+ "yesNo": {
62
+ "enum": [
63
+ "Yes"
64
+ ]
65
+ },
66
+ "details": {
67
+ "con29DWRef": "3.1.2"
68
+ }
69
+ },
70
+ "required": [
71
+ "details"
72
+ ]
73
+ },
74
+ {
75
+ "properties": {
76
+ "yesNo": {
77
+ "enum": [
78
+ "To be connected"
79
+ ]
80
+ }
81
+ }
82
+ }
83
+ ],
84
+ "required": [
85
+ "yesNo"
86
+ ],
87
+ "properties": {
88
+ "yesNo": {
89
+ "con29DWRef": "3.1.1",
90
+ "enum": [
91
+ "Yes",
92
+ "No"
93
+ ]
94
+ }
95
+ }
96
+ },
97
+ "waterMainsWithinBoundaries": {
98
+ "con29DWRef": "3.2",
99
+ "discriminator": {
100
+ "propertyName": "yesNo"
101
+ },
102
+ "oneOf": [
103
+ {
104
+ "properties": {
105
+ "yesNo": {
106
+ "enum": [
107
+ "No"
108
+ ]
109
+ }
110
+ }
111
+ },
112
+ {
113
+ "properties": {
114
+ "yesNo": {
115
+ "enum": [
116
+ "Yes"
117
+ ]
118
+ },
119
+ "details": {
120
+ "con29DWRef": "3.2.2"
121
+ }
122
+ },
123
+ "required": [
124
+ "details"
125
+ ]
126
+ }
127
+ ],
128
+ "required": [
129
+ "yesNo"
130
+ ],
131
+ "properties": {
132
+ "yesNo": {
133
+ "con29DWRef": "3.2.1"
134
+ }
135
+ }
136
+ },
137
+ "waterMainsSubjectOfAdoptionAgreement": {
138
+ "con29DWRef": "3.3",
139
+ "discriminator": {
140
+ "propertyName": "yesNo"
141
+ },
15
142
  "oneOf": [
16
- null,
17
- null,
18
143
  {
144
+ "properties": {
145
+ "yesNo": {
146
+ "enum": [
147
+ "No"
148
+ ]
149
+ }
150
+ }
151
+ },
152
+ {
153
+ "properties": {
154
+ "yesNo": {
155
+ "enum": [
156
+ "Yes"
157
+ ]
158
+ },
159
+ "details": {
160
+ "con29DWRef": "3.3.2"
161
+ }
162
+ },
19
163
  "required": [
20
- "con29DW"
21
- ],
164
+ "details"
165
+ ]
166
+ }
167
+ ],
168
+ "required": [
169
+ "yesNo"
170
+ ],
171
+ "properties": {
172
+ "yesNo": {
173
+ "con29DWRef": "3.3.1"
174
+ }
175
+ }
176
+ },
177
+ "lowWaterPressureRisk": {
178
+ "con29DWRef": "3.4",
179
+ "discriminator": {
180
+ "propertyName": "yesNo"
181
+ },
182
+ "oneOf": [
183
+ {
22
184
  "properties": {
23
- "drainageAndWater": {
24
- "properties": {
25
- "maps": {
26
- "con29DWRef": "1",
27
- "title": "Maps",
28
- "required": [
29
- "publicSewerMapAttached",
30
- "waterworksMapAttached"
31
- ],
32
- "properties": {
33
- "publicSewerMapAttached": {
34
- "con29DWRef": "1.1",
35
- "title": "Where relevant, please include a copy of an extract from the public sewer map."
36
- },
37
- "waterworksMapAttached": {
38
- "con29DWRef": "1.2",
39
- "title": "Where relevant, please include a copy of an extract from the map of waterworks."
40
- }
41
- }
42
- },
43
- "drainage": {
44
- "con29DWRef": "2",
45
- "title": "Drainage",
46
- "required": [
47
- "publicFoulDrainage",
48
- "publicSurfaceDrainage",
49
- "surfaceDrainageCharge",
50
- "publicDrainWithinBoundaries",
51
- "publicPumpingStationWithinBoundaries",
52
- "publicSewerWithin100ft",
53
- "publicPumpingStationWithin50mOfBuildings",
54
- "sewersSubjectOfAdoptionAgreement",
55
- "sewerageUndertakerApproval",
56
- "riskOfInternalFlooding",
57
- "distanceToNearestSewerageTreatment"
58
- ],
59
- "properties": {
60
- "publicFoulDrainage": {
61
- "con29DWRef": "2.1",
62
- "title": "Does foul water from the property drain to a public sewer?",
63
- "discriminator": {
64
- "propertyName": "yesNo"
65
- },
66
- "oneOf": [
67
- {
68
- "properties": {
69
- "yesNo": {
70
- "enum": [
71
- "Yes"
72
- ]
73
- }
74
- }
75
- },
76
- {
77
- "properties": {
78
- "yesNo": {
79
- "enum": [
80
- "No"
81
- ]
82
- },
83
- "details": {
84
- "con29DWRef": "2.1.2",
85
- "title": "Details"
86
- }
87
- },
88
- "required": [
89
- "details"
90
- ]
91
- }
92
- ],
93
- "required": [
94
- "yesNo"
95
- ],
96
- "properties": {
97
- "yesNo": {
98
- "con29DWRef": "2.1.1",
99
- "enum": [
100
- "Yes",
101
- "No"
102
- ]
103
- }
104
- }
105
- },
106
- "publicSurfaceDrainage": {
107
- "con29DWRef": "2.2",
108
- "title": "Does surface water from the property drain to a public sewer?",
109
- "discriminator": {
110
- "propertyName": "yesNo"
111
- },
112
- "oneOf": [
113
- {
114
- "properties": {
115
- "yesNo": {
116
- "enum": [
117
- "Yes"
118
- ]
119
- }
120
- }
121
- },
122
- {
123
- "properties": {
124
- "yesNo": {
125
- "enum": [
126
- "No"
127
- ]
128
- },
129
- "details": {
130
- "con29DWRef": "2.2.2",
131
- "title": "Details"
132
- }
133
- },
134
- "required": [
135
- "details"
136
- ]
137
- }
138
- ],
139
- "required": [
140
- "yesNo"
141
- ],
142
- "properties": {
143
- "yesNo": {
144
- "con29DWRef": "2.2.1",
145
- "enum": [
146
- "Yes",
147
- "No"
148
- ]
149
- }
150
- }
151
- },
152
- "surfaceDrainageCharge": {
153
- "con29DWRef": "2.3",
154
- "title": "Is a surface water drainage charge payable?",
155
- "discriminator": {
156
- "propertyName": "yesNo"
157
- },
158
- "oneOf": [
159
- {
160
- "properties": {
161
- "yesNo": {
162
- "enum": [
163
- "No"
164
- ]
165
- }
166
- }
167
- },
168
- {
169
- "properties": {
170
- "yesNo": {
171
- "enum": [
172
- "Yes"
173
- ]
174
- },
175
- "details": {
176
- "con29DWRef": "2.3.2",
177
- "title": "Details"
178
- }
179
- },
180
- "required": [
181
- "details"
182
- ]
183
- }
184
- ],
185
- "required": [
186
- "yesNo"
187
- ],
188
- "properties": {
189
- "yesNo": {
190
- "con29DWRef": "2.3.1",
191
- "enum": [
192
- "Yes",
193
- "No"
194
- ]
195
- }
196
- }
197
- },
198
- "publicDrainWithinBoundaries": {
199
- "con29DWRef": "2.4",
200
- "title": "Does the public sewer map indicate any public sewer, disposal main or lateral drain within the boundaries of the property?",
201
- "discriminator": {
202
- "propertyName": "yesNo"
203
- },
204
- "oneOf": [
205
- {
206
- "properties": {
207
- "yesNo": {
208
- "enum": [
209
- "No"
210
- ]
211
- }
212
- }
213
- },
214
- {
215
- "properties": {
216
- "yesNo": {
217
- "enum": [
218
- "Yes"
219
- ]
220
- },
221
- "details": {
222
- "con29DWRef": "2.4.0.2",
223
- "title": "Details"
224
- }
225
- },
226
- "required": [
227
- "details"
228
- ]
229
- }
230
- ],
231
- "required": [
232
- "yesNo"
233
- ],
234
- "properties": {
235
- "yesNo": {
236
- "con29DWRef": "2.4.0.1",
237
- "enum": [
238
- "Yes",
239
- "No"
240
- ]
241
- }
242
- }
243
- },
244
- "publicPumpingStationWithinBoundaries": {
245
- "con29DWRef": "2.4.1",
246
- "title": "Does the public sewer map indicate any public pumping station or any other ancillary apparatus within the boundaries of the property?",
247
- "discriminator": {
248
- "propertyName": "yesNo"
249
- },
250
- "oneOf": [
251
- {
252
- "properties": {
253
- "yesNo": {
254
- "enum": [
255
- "No"
256
- ]
257
- }
258
- }
259
- },
260
- {
261
- "properties": {
262
- "yesNo": {
263
- "enum": [
264
- "Yes"
265
- ]
266
- },
267
- "details": {
268
- "con29DWRef": "2.4.1.2",
269
- "title": "Details"
270
- }
271
- },
272
- "required": [
273
- "details"
274
- ]
275
- }
276
- ],
277
- "required": [
278
- "yesNo"
279
- ],
280
- "properties": {
281
- "yesNo": {
282
- "con29DWRef": "2.4.1.1",
283
- "enum": [
284
- "Yes",
285
- "No"
286
- ]
287
- }
288
- }
289
- },
290
- "publicSewerWithin100ft": {
291
- "con29DWRef": "2.5",
292
- "title": "Does the public sewer map indicate any public sewer within 30.48 meters (100 feet) of any buildings within the property?",
293
- "discriminator": {
294
- "propertyName": "yesNo"
295
- },
296
- "oneOf": [
297
- {
298
- "properties": {
299
- "yesNo": {
300
- "enum": [
301
- "No"
302
- ]
303
- }
304
- }
305
- },
306
- {
307
- "properties": {
308
- "yesNo": {
309
- "enum": [
310
- "Yes"
311
- ]
312
- },
313
- "details": {
314
- "con29DWRef": "2.5.0.2",
315
- "title": "Details"
316
- }
317
- },
318
- "required": [
319
- "details"
320
- ]
321
- }
322
- ],
323
- "required": [
324
- "yesNo"
325
- ],
326
- "properties": {
327
- "yesNo": {
328
- "con29DWRef": "2.5.0.1",
329
- "enum": [
330
- "Yes",
331
- "No"
332
- ]
333
- }
334
- }
335
- },
336
- "publicPumpingStationWithin50mOfBuildings": {
337
- "con29DWRef": "2.5.1",
338
- "title": "Does the public sewer map indicate any public pumping station or any other ancillary apparatus within 50 metres of any buildings within the property?",
339
- "discriminator": {
340
- "propertyName": "yesNo"
341
- },
342
- "oneOf": [
343
- {
344
- "properties": {
345
- "yesNo": {
346
- "enum": [
347
- "No"
348
- ]
349
- }
350
- }
351
- },
352
- {
353
- "properties": {
354
- "yesNo": {
355
- "enum": [
356
- "Yes"
357
- ]
358
- },
359
- "details": {
360
- "con29DWRef": "2.5.1.2",
361
- "title": "Details"
362
- }
363
- },
364
- "required": [
365
- "details"
366
- ]
367
- }
368
- ],
369
- "required": [
370
- "yesNo"
371
- ],
372
- "properties": {
373
- "yesNo": {
374
- "con29DWRef": "2.5.1.1",
375
- "enum": [
376
- "Yes",
377
- "No"
378
- ]
379
- }
380
- }
381
- },
382
- "sewersSubjectOfAdoptionAgreement": {
383
- "con29DWRef": "2.6",
384
- "title": "Are any sewers or lateral drains serving, or which are proposed to serve the property, the subject of an existing adoption agreement or an application for such an agreement?",
385
- "discriminator": {
386
- "propertyName": "yesNo"
387
- },
388
- "oneOf": [
389
- {
390
- "properties": {
391
- "yesNo": {
392
- "enum": [
393
- "No"
394
- ]
395
- }
396
- }
397
- },
398
- {
399
- "properties": {
400
- "yesNo": {
401
- "enum": [
402
- "Yes"
403
- ]
404
- },
405
- "details": {
406
- "con29DWRef": "2.6.2",
407
- "title": "Details"
408
- }
409
- },
410
- "required": [
411
- "details"
412
- ]
413
- }
414
- ],
415
- "required": [
416
- "yesNo"
417
- ],
418
- "properties": {
419
- "yesNo": {
420
- "con29DWRef": "2.6.1",
421
- "enum": [
422
- "Yes",
423
- "No"
424
- ]
425
- }
426
- }
427
- },
428
- "sewerageUndertakerApproval": {
429
- "con29DWRef": "2.7",
430
- "title": "Has the sewerage undertaker approved or been consulted about any plans to erect a building or extension on the property over, or in the vicinity of, a public sewer, disposal main or drain?",
431
- "discriminator": {
432
- "propertyName": "yesNo"
433
- },
434
- "oneOf": [
435
- {
436
- "properties": {
437
- "yesNo": {
438
- "enum": [
439
- "No"
440
- ]
441
- }
442
- }
443
- },
444
- {
445
- "properties": {
446
- "yesNo": {
447
- "enum": [
448
- "Yes"
449
- ]
450
- },
451
- "details": {
452
- "con29DWRef": "2.7.2",
453
- "title": "Details"
454
- }
455
- },
456
- "required": [
457
- "details"
458
- ]
459
- }
460
- ],
461
- "required": [
462
- "yesNo"
463
- ],
464
- "properties": {
465
- "yesNo": {
466
- "con29DWRef": "2.7.1",
467
- "enum": [
468
- "Yes",
469
- "No"
470
- ]
471
- }
472
- }
473
- },
474
- "riskOfInternalFlooding": {
475
- "con29DWRef": "2.8",
476
- "title": "Is any building which is or forms part of the property, at risk of internal flooding due to overloaded public sewers?",
477
- "discriminator": {
478
- "propertyName": "yesNo"
479
- },
480
- "oneOf": [
481
- {
482
- "properties": {
483
- "yesNo": {
484
- "enum": [
485
- "No"
486
- ]
487
- }
488
- }
489
- },
490
- {
491
- "properties": {
492
- "yesNo": {
493
- "enum": [
494
- "Yes"
495
- ]
496
- },
497
- "details": {
498
- "con29DWRef": "2.8.2",
499
- "title": "Details"
500
- }
501
- },
502
- "required": [
503
- "details"
504
- ]
505
- }
506
- ],
507
- "required": [
508
- "yesNo"
509
- ],
510
- "properties": {
511
- "yesNo": {
512
- "con29DWRef": "2.8.1",
513
- "enum": [
514
- "Yes",
515
- "No"
516
- ]
517
- }
518
- }
519
- },
520
- "distanceToNearestSewerageTreatment": {
521
- "con29DWRef": "2.9",
522
- "title": "Please state the distance from the property to the nearest boundary of the nearest sewage treatment works."
523
- }
524
- }
525
- },
526
- "water": {
527
- "con29DWRef": "3",
528
- "title": "Water",
529
- "required": [
530
- "mainsWaterConnected",
531
- "waterMainsWithinBoundaries",
532
- "waterMainsSubjectOfAdoptionAgreement",
533
- "lowWaterPressureRisk",
534
- "waterQualityAnalysis",
535
- "waterMeterLocation"
536
- ],
537
- "properties": {
538
- "mainsWaterConnected": {
539
- "con29DWRef": "3.1",
540
- "title": "Is the property connected to the main water supply?",
541
- "discriminator": {
542
- "propertyName": "yesNo"
543
- },
544
- "oneOf": [
545
- {
546
- "properties": {
547
- "yesNo": {
548
- "enum": [
549
- "Yes"
550
- ]
551
- }
552
- }
553
- },
554
- {
555
- "properties": {
556
- "yesNo": {
557
- "enum": [
558
- "No"
559
- ]
560
- },
561
- "details": {
562
- "con29DWRef": "3.1.2",
563
- "title": "Details"
564
- }
565
- },
566
- "required": [
567
- "details"
568
- ]
569
- }
570
- ],
571
- "required": [
572
- "yesNo"
573
- ],
574
- "properties": {
575
- "yesNo": {
576
- "con29DWRef": "3.1.1",
577
- "enum": [
578
- "Yes",
579
- "No"
580
- ]
581
- }
582
- }
583
- },
584
- "waterMainsWithinBoundaries": {
585
- "con29DWRef": "3.2",
586
- "title": "Are there any water mains, resource mains or discharge pipes within the boundaries of the property?",
587
- "discriminator": {
588
- "propertyName": "yesNo"
589
- },
590
- "oneOf": [
591
- {
592
- "properties": {
593
- "yesNo": {
594
- "enum": [
595
- "No"
596
- ]
597
- }
598
- }
599
- },
600
- {
601
- "properties": {
602
- "yesNo": {
603
- "enum": [
604
- "Yes"
605
- ]
606
- },
607
- "details": {
608
- "con29DWRef": "3.2.2",
609
- "title": "Details"
610
- }
611
- },
612
- "required": [
613
- "details"
614
- ]
615
- }
616
- ],
617
- "required": [
618
- "yesNo"
619
- ],
620
- "properties": {
621
- "yesNo": {
622
- "con29DWRef": "3.2.1",
623
- "enum": [
624
- "Yes",
625
- "No"
626
- ]
627
- }
628
- }
629
- },
630
- "waterMainsSubjectOfAdoptionAgreement": {
631
- "con29DWRef": "3.3",
632
- "title": "Is any water main or service pipe serving or which is proposed to serve the property, the subject of an existing adoption agreement or an application for such an agreement?",
633
- "discriminator": {
634
- "propertyName": "yesNo"
635
- },
636
- "oneOf": [
637
- {
638
- "properties": {
639
- "yesNo": {
640
- "enum": [
641
- "No"
642
- ]
643
- }
644
- }
645
- },
646
- {
647
- "properties": {
648
- "yesNo": {
649
- "enum": [
650
- "Yes"
651
- ]
652
- },
653
- "details": {
654
- "con29DWRef": "3.3.2",
655
- "title": "Details"
656
- }
657
- },
658
- "required": [
659
- "details"
660
- ]
661
- }
662
- ],
663
- "required": [
664
- "yesNo"
665
- ],
666
- "properties": {
667
- "yesNo": {
668
- "con29DWRef": "3.3.1",
669
- "enum": [
670
- "Yes",
671
- "No"
672
- ]
673
- }
674
- }
675
- },
676
- "lowWaterPressureRisk": {
677
- "con29DWRef": "3.4",
678
- "title": "Is the property at risk of receiving low water pressure or flow?",
679
- "discriminator": {
680
- "propertyName": "yesNo"
681
- },
682
- "oneOf": [
683
- {
684
- "properties": {
685
- "yesNo": {
686
- "enum": [
687
- "No"
688
- ]
689
- }
690
- }
691
- },
692
- {
693
- "properties": {
694
- "yesNo": {
695
- "enum": [
696
- "Yes"
697
- ]
698
- },
699
- "details": {
700
- "con29DWRef": "3.4.2",
701
- "title": "Details"
702
- }
703
- },
704
- "required": [
705
- "details"
706
- ]
707
- }
708
- ],
709
- "required": [
710
- "yesNo"
711
- ],
712
- "properties": {
713
- "yesNo": {
714
- "con29DWRef": "3.4.1",
715
- "enum": [
716
- "Yes",
717
- "No"
718
- ]
719
- }
720
- }
721
- },
722
- "supplyClassification": {
723
- "con29DWRef": "3.5",
724
- "title": "What is the classification of the water supply for the property?"
725
- },
726
- "waterMeterLocation": {
727
- "con29DWRef": "3.6",
728
- "title": "Please include details of the location of any water meter serving the property."
729
- }
730
- }
731
- },
732
- "charging": {
733
- "con29DWRef": "4",
734
- "title": "Charging",
735
- "required": [
736
- "sewerageProvider",
737
- "waterProvider",
738
- "sewerageBills",
739
- "waterBills",
740
- "currentChargingBasis",
741
- "consequentialChargingBasis"
742
- ],
743
- "properties": {
744
- "sewerageProvider": {
745
- "con29DWRef": "4.1.1",
746
- "title": "Who are the sewerage undertakers for the property?"
747
- },
748
- "waterProvider": {
749
- "con29DWRef": "4.1.2",
750
- "title": "Who are the water undertakers for the property?"
751
- },
752
- "sewerageBills": {
753
- "con29DWRef": "4.2",
754
- "title": "Who bills the property for sewerage services?"
755
- },
756
- "waterBills": {
757
- "con29DWRef": "4.3",
758
- "title": "Who bills the property for water services?"
759
- },
760
- "currentChargingBasis": {
761
- "con29DWRef": "4.4",
762
- "title": "What is the current basis for charging for sewerage and/or water services at the property?"
763
- },
764
- "consequentialChargingBasis": {
765
- "con29DWRef": "4.5",
766
- "title": "Will the basis for charging for sewerage and water services at the property change as a consequence of a change of occupation?"
767
- }
768
- }
769
- }
770
- }
185
+ "yesNo": {
186
+ "enum": [
187
+ "No"
188
+ ]
771
189
  }
772
190
  }
191
+ },
192
+ {
193
+ "properties": {
194
+ "yesNo": {
195
+ "enum": [
196
+ "Yes"
197
+ ]
198
+ },
199
+ "details": {
200
+ "con29DWRef": "3.4.2"
201
+ }
202
+ },
203
+ "required": [
204
+ "details"
205
+ ]
773
206
  }
774
- ]
207
+ ],
208
+ "required": [
209
+ "yesNo"
210
+ ],
211
+ "properties": {
212
+ "yesNo": {
213
+ "con29DWRef": "3.4.1"
214
+ }
215
+ }
216
+ },
217
+ "supplyClassification": {
218
+ "con29DWRef": "3.5"
219
+ },
220
+ "waterMeterLocation": {
221
+ "con29DWRef": "3.6"
222
+ }
223
+ }
224
+ },
225
+ "drainage": {
226
+ "con29DWRef": "2",
227
+ "required": [
228
+ "mainsSurfaceWaterDrainage",
229
+ "mainsFoulDrainage",
230
+ "surfaceDrainageCharge",
231
+ "publicDrainWithinBoundaries",
232
+ "publicPumpingStationWithinBoundaries",
233
+ "publicSewerWithin100ft",
234
+ "publicPumpingStationWithin50mOfBuildings",
235
+ "sewersSubjectOfAdoptionAgreement",
236
+ "sewerageUndertakerApproval",
237
+ "riskOfInternalFlooding",
238
+ "distanceToNearestSewerageTreatment"
239
+ ],
240
+ "properties": {
241
+ "mainsSurfaceWaterDrainage": {
242
+ "con29DWRef": "2.2",
243
+ "discriminator": {
244
+ "propertyName": "yesNo"
245
+ },
246
+ "oneOf": [
247
+ {
248
+ "properties": {
249
+ "yesNo": {
250
+ "enum": [
251
+ "No",
252
+ "Not known"
253
+ ]
254
+ }
255
+ }
256
+ },
257
+ {
258
+ "properties": {
259
+ "yesNo": {
260
+ "enum": [
261
+ "Yes"
262
+ ]
263
+ },
264
+ "details": {
265
+ "con29DWRef": "2.2.2"
266
+ }
267
+ },
268
+ "required": [
269
+ "details"
270
+ ]
271
+ },
272
+ {
273
+ "properties": {
274
+ "yesNo": {
275
+ "enum": [
276
+ "To be connected"
277
+ ]
278
+ }
279
+ }
280
+ }
281
+ ],
282
+ "properties": {
283
+ "yesNo": {
284
+ "con29DWRef": "2.2.1",
285
+ "enum": [
286
+ "Yes",
287
+ "No"
288
+ ]
289
+ }
290
+ }
291
+ },
292
+ "mainsFoulDrainage": {
293
+ "con29DWRef": "2.1",
294
+ "discriminator": {
295
+ "propertyName": "yesNo"
296
+ },
297
+ "oneOf": [
298
+ {
299
+ "properties": {
300
+ "yesNo": {
301
+ "enum": [
302
+ "Yes"
303
+ ]
304
+ },
305
+ "details": {
306
+ "con29DWRef": "2.1.2"
307
+ }
308
+ },
309
+ "required": [
310
+ "details"
311
+ ]
312
+ },
313
+ {
314
+ "properties": {
315
+ "yesNo": {
316
+ "enum": [
317
+ "To be connected"
318
+ ]
319
+ }
320
+ }
321
+ },
322
+ {
323
+ "properties": {
324
+ "yesNo": {
325
+ "enum": [
326
+ "No",
327
+ "Not known"
328
+ ]
329
+ }
330
+ }
331
+ }
332
+ ],
333
+ "properties": {
334
+ "yesNo": {
335
+ "enum": [
336
+ "Yes",
337
+ "No"
338
+ ]
339
+ }
340
+ }
341
+ },
342
+ "surfaceDrainageCharge": {
343
+ "con29DWRef": "2.3",
344
+ "discriminator": {
345
+ "propertyName": "yesNo"
346
+ },
347
+ "oneOf": [
348
+ {
349
+ "properties": {
350
+ "yesNo": {
351
+ "enum": [
352
+ "No"
353
+ ]
354
+ }
355
+ }
356
+ },
357
+ {
358
+ "properties": {
359
+ "yesNo": {
360
+ "enum": [
361
+ "Yes"
362
+ ]
363
+ },
364
+ "details": {
365
+ "con29DWRef": "2.3.2"
366
+ }
367
+ },
368
+ "required": [
369
+ "details"
370
+ ]
371
+ }
372
+ ],
373
+ "required": [
374
+ "yesNo"
375
+ ],
376
+ "properties": {
377
+ "yesNo": {
378
+ "con29DWRef": "2.3.1"
379
+ }
380
+ }
381
+ },
382
+ "publicDrainWithinBoundaries": {
383
+ "con29DWRef": "2.4",
384
+ "discriminator": {
385
+ "propertyName": "yesNo"
386
+ },
387
+ "oneOf": [
388
+ {
389
+ "properties": {
390
+ "yesNo": {
391
+ "enum": [
392
+ "No"
393
+ ]
394
+ }
395
+ }
396
+ },
397
+ {
398
+ "properties": {
399
+ "yesNo": {
400
+ "enum": [
401
+ "Yes"
402
+ ]
403
+ },
404
+ "details": {
405
+ "con29DWRef": "2.4.0.2"
406
+ }
407
+ },
408
+ "required": [
409
+ "details"
410
+ ]
411
+ }
412
+ ],
413
+ "required": [
414
+ "yesNo"
415
+ ],
416
+ "properties": {
417
+ "yesNo": {
418
+ "con29DWRef": "2.4.0.1"
419
+ }
420
+ }
421
+ },
422
+ "publicPumpingStationWithinBoundaries": {
423
+ "con29DWRef": "2.4.1",
424
+ "discriminator": {
425
+ "propertyName": "yesNo"
426
+ },
427
+ "oneOf": [
428
+ {
429
+ "properties": {
430
+ "yesNo": {
431
+ "enum": [
432
+ "No"
433
+ ]
434
+ }
435
+ }
436
+ },
437
+ {
438
+ "properties": {
439
+ "yesNo": {
440
+ "enum": [
441
+ "Yes"
442
+ ]
443
+ },
444
+ "details": {
445
+ "con29DWRef": "2.4.1.2"
446
+ }
447
+ },
448
+ "required": [
449
+ "details"
450
+ ]
451
+ }
452
+ ],
453
+ "required": [
454
+ "yesNo"
455
+ ],
456
+ "properties": {
457
+ "yesNo": {
458
+ "con29DWRef": "2.4.1.1"
459
+ }
460
+ }
461
+ },
462
+ "publicSewerWithin100ft": {
463
+ "con29DWRef": "2.5",
464
+ "discriminator": {
465
+ "propertyName": "yesNo"
466
+ },
467
+ "oneOf": [
468
+ {
469
+ "properties": {
470
+ "yesNo": {
471
+ "enum": [
472
+ "No"
473
+ ]
474
+ }
475
+ }
476
+ },
477
+ {
478
+ "properties": {
479
+ "yesNo": {
480
+ "enum": [
481
+ "Yes"
482
+ ]
483
+ },
484
+ "details": {
485
+ "con29DWRef": "2.5.0.2"
486
+ }
487
+ },
488
+ "required": [
489
+ "details"
490
+ ]
491
+ }
492
+ ],
493
+ "required": [
494
+ "yesNo"
495
+ ],
496
+ "properties": {
497
+ "yesNo": {
498
+ "con29DWRef": "2.5.0.1"
499
+ }
500
+ }
501
+ },
502
+ "publicPumpingStationWithin50mOfBuildings": {
503
+ "con29DWRef": "2.5.1",
504
+ "discriminator": {
505
+ "propertyName": "yesNo"
506
+ },
507
+ "oneOf": [
508
+ {
509
+ "properties": {
510
+ "yesNo": {
511
+ "enum": [
512
+ "No"
513
+ ]
514
+ }
515
+ }
516
+ },
517
+ {
518
+ "properties": {
519
+ "yesNo": {
520
+ "enum": [
521
+ "Yes"
522
+ ]
523
+ },
524
+ "details": {
525
+ "con29DWRef": "2.5.1.2"
526
+ }
527
+ },
528
+ "required": [
529
+ "details"
530
+ ]
531
+ }
532
+ ],
533
+ "required": [
534
+ "yesNo"
535
+ ],
536
+ "properties": {
537
+ "yesNo": {
538
+ "con29DWRef": "2.5.1.1"
539
+ }
540
+ }
541
+ },
542
+ "sewersSubjectOfAdoptionAgreement": {
543
+ "con29DWRef": "2.6",
544
+ "discriminator": {
545
+ "propertyName": "yesNo"
546
+ },
547
+ "oneOf": [
548
+ {
549
+ "properties": {
550
+ "yesNo": {
551
+ "enum": [
552
+ "No"
553
+ ]
554
+ }
555
+ }
556
+ },
557
+ {
558
+ "properties": {
559
+ "yesNo": {
560
+ "enum": [
561
+ "Yes"
562
+ ]
563
+ },
564
+ "details": {
565
+ "con29DWRef": "2.6.2"
566
+ }
567
+ },
568
+ "required": [
569
+ "details"
570
+ ]
571
+ }
572
+ ],
573
+ "required": [
574
+ "yesNo"
575
+ ],
576
+ "properties": {
577
+ "yesNo": {
578
+ "con29DWRef": "2.6.1"
579
+ }
580
+ }
581
+ },
582
+ "sewerageUndertakerApproval": {
583
+ "con29DWRef": "2.7",
584
+ "discriminator": {
585
+ "propertyName": "yesNo"
586
+ },
587
+ "oneOf": [
588
+ {
589
+ "properties": {
590
+ "yesNo": {
591
+ "enum": [
592
+ "No"
593
+ ]
594
+ }
595
+ }
596
+ },
597
+ {
598
+ "properties": {
599
+ "yesNo": {
600
+ "enum": [
601
+ "Yes"
602
+ ]
603
+ },
604
+ "details": {
605
+ "con29DWRef": "2.7.2"
606
+ }
607
+ },
608
+ "required": [
609
+ "details"
610
+ ]
611
+ }
612
+ ],
613
+ "required": [
614
+ "yesNo"
615
+ ],
616
+ "properties": {
617
+ "yesNo": {
618
+ "con29DWRef": "2.7.1"
619
+ }
620
+ }
621
+ },
622
+ "riskOfInternalFlooding": {
623
+ "con29DWRef": "2.8",
624
+ "discriminator": {
625
+ "propertyName": "yesNo"
626
+ },
627
+ "oneOf": [
628
+ {
629
+ "properties": {
630
+ "yesNo": {
631
+ "enum": [
632
+ "No"
633
+ ]
634
+ }
635
+ }
636
+ },
637
+ {
638
+ "properties": {
639
+ "yesNo": {
640
+ "enum": [
641
+ "Yes"
642
+ ]
643
+ },
644
+ "details": {
645
+ "con29DWRef": "2.8.2"
646
+ }
647
+ },
648
+ "required": [
649
+ "details"
650
+ ]
651
+ }
652
+ ],
653
+ "required": [
654
+ "yesNo"
655
+ ],
656
+ "properties": {
657
+ "yesNo": {
658
+ "con29DWRef": "2.8.1"
659
+ }
660
+ }
661
+ },
662
+ "distanceToNearestSewerageTreatment": {
663
+ "con29DWRef": "2.9"
664
+ }
665
+ }
666
+ },
667
+ "charging": {
668
+ "con29DWRef": "4",
669
+ "required": [
670
+ "sewerageProvider",
671
+ "waterProvider",
672
+ "sewerageBills",
673
+ "waterBills",
674
+ "currentChargingBasis",
675
+ "consequentialChargingBasis"
676
+ ],
677
+ "properties": {
678
+ "sewerageProvider": {
679
+ "con29DWRef": "4.1.1"
680
+ },
681
+ "waterProvider": {
682
+ "con29DWRef": "4.1.2"
683
+ },
684
+ "sewerageBills": {
685
+ "con29DWRef": "4.2"
686
+ },
687
+ "waterBills": {
688
+ "con29DWRef": "4.3"
689
+ },
690
+ "currentChargingBasis": {
691
+ "con29DWRef": "4.4"
692
+ },
693
+ "consequentialChargingBasis": {
694
+ "con29DWRef": "4.5"
775
695
  }
776
696
  }
777
697
  }
778
698
  }
779
- ]
699
+ }
780
700
  }
781
701
  }
782
702
  }