@pdtf/schemas 3.0.0-2 → 3.0.0-21
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/index.js +15 -13
- package/package.json +1 -1
- package/src/examples/v3/exampleTransaction.json +82 -75
- package/src/schemas/v2/overlays/baspi.json +510 -2331
- package/src/schemas/v2/overlays/con29DW.json +36 -125
- package/src/schemas/v2/overlays/con29R.json +5 -143
- package/src/schemas/v2/overlays/fme1.json +48 -233
- package/src/schemas/v2/overlays/lpe1.json +75 -367
- package/src/schemas/v2/overlays/nts.json +17 -103
- package/src/schemas/v2/overlays/piq.json +146 -693
- package/src/schemas/v2/overlays/rds.json +50 -316
- package/src/schemas/v2/overlays/ta10.json +540 -1755
- package/src/schemas/v2/overlays/ta6.json +241 -1193
- package/src/schemas/v2/overlays/ta7.json +106 -440
- package/src/schemas/v3/combined.json +2434 -2581
- package/src/schemas/v3/overlays/baspi.json +1360 -3480
- package/src/schemas/v3/overlays/con29DW.json +36 -125
- package/src/schemas/v3/overlays/con29R.json +5 -143
- package/src/schemas/v3/overlays/fme1.json +53 -233
- package/src/schemas/v3/overlays/lpe1.json +85 -367
- package/src/schemas/v3/overlays/nts.json +711 -634
- package/src/schemas/v3/overlays/piq.json +452 -1190
- package/src/schemas/v3/overlays/rds.json +500 -1059
- package/src/schemas/v3/overlays/ta10.json +540 -1755
- package/src/schemas/v3/overlays/ta6.json +787 -1678
- package/src/schemas/v3/overlays/ta7.json +220 -462
- package/src/schemas/v3/pdtf-transaction.json +1976 -2286
- package/src/schemas/v3/skeleton.json +248 -214
- package/src/tests/v3/transactionSchema.test.js +28 -18
- package/src/tests/v3/verifiedClaimsValidator.test.js +2 -2
- package/src/utils/extractOverlay.js +5 -27
- package/src/tests/v2/transactionSchema.test.js +0 -361
- package/src/tests/v2/verifiedClaimsValidator.test.js +0 -128
|
@@ -8,8 +8,6 @@
|
|
|
8
8
|
"properties": {
|
|
9
9
|
"waterAndDrainage": {
|
|
10
10
|
"con29DWRef": "0",
|
|
11
|
-
"title": "Water and Drainage",
|
|
12
|
-
"description": "Please describe the water and drainage services that are connected to the property.",
|
|
13
11
|
"required": [
|
|
14
12
|
"maps",
|
|
15
13
|
"water",
|
|
@@ -19,25 +17,21 @@
|
|
|
19
17
|
"properties": {
|
|
20
18
|
"maps": {
|
|
21
19
|
"con29DWRef": "1",
|
|
22
|
-
"title": "Maps",
|
|
23
20
|
"required": [
|
|
24
21
|
"publicSewerMapAttached",
|
|
25
22
|
"waterworksMapAttached"
|
|
26
23
|
],
|
|
27
24
|
"properties": {
|
|
28
25
|
"publicSewerMapAttached": {
|
|
29
|
-
"con29DWRef": "1.1"
|
|
30
|
-
"title": "Where relevant, please include a copy of an extract from the public sewer map."
|
|
26
|
+
"con29DWRef": "1.1"
|
|
31
27
|
},
|
|
32
28
|
"waterworksMapAttached": {
|
|
33
|
-
"con29DWRef": "1.2"
|
|
34
|
-
"title": "Where relevant, please include a copy of an extract from the map of waterworks."
|
|
29
|
+
"con29DWRef": "1.2"
|
|
35
30
|
}
|
|
36
31
|
}
|
|
37
32
|
},
|
|
38
33
|
"water": {
|
|
39
34
|
"con29DWRef": "3",
|
|
40
|
-
"title": "Water",
|
|
41
35
|
"required": [
|
|
42
36
|
"mainsWater",
|
|
43
37
|
"waterMainsWithinBoundaries",
|
|
@@ -49,7 +43,6 @@
|
|
|
49
43
|
"properties": {
|
|
50
44
|
"mainsWater": {
|
|
51
45
|
"con29DWRef": "3.1",
|
|
52
|
-
"title": "Mains water",
|
|
53
46
|
"discriminator": {
|
|
54
47
|
"propertyName": "yesNo"
|
|
55
48
|
},
|
|
@@ -71,8 +64,7 @@
|
|
|
71
64
|
]
|
|
72
65
|
},
|
|
73
66
|
"details": {
|
|
74
|
-
"con29DWRef": "3.1.2"
|
|
75
|
-
"title": "Details"
|
|
67
|
+
"con29DWRef": "3.1.2"
|
|
76
68
|
}
|
|
77
69
|
},
|
|
78
70
|
"required": [
|
|
@@ -104,7 +96,6 @@
|
|
|
104
96
|
},
|
|
105
97
|
"waterMainsWithinBoundaries": {
|
|
106
98
|
"con29DWRef": "3.2",
|
|
107
|
-
"title": "Are there any water mains, resource mains or discharge pipes within the boundaries of the property?",
|
|
108
99
|
"discriminator": {
|
|
109
100
|
"propertyName": "yesNo"
|
|
110
101
|
},
|
|
@@ -126,8 +117,7 @@
|
|
|
126
117
|
]
|
|
127
118
|
},
|
|
128
119
|
"details": {
|
|
129
|
-
"con29DWRef": "3.2.2"
|
|
130
|
-
"title": "Details"
|
|
120
|
+
"con29DWRef": "3.2.2"
|
|
131
121
|
}
|
|
132
122
|
},
|
|
133
123
|
"required": [
|
|
@@ -140,17 +130,12 @@
|
|
|
140
130
|
],
|
|
141
131
|
"properties": {
|
|
142
132
|
"yesNo": {
|
|
143
|
-
"con29DWRef": "3.2.1"
|
|
144
|
-
"enum": [
|
|
145
|
-
"Yes",
|
|
146
|
-
"No"
|
|
147
|
-
]
|
|
133
|
+
"con29DWRef": "3.2.1"
|
|
148
134
|
}
|
|
149
135
|
}
|
|
150
136
|
},
|
|
151
137
|
"waterMainsSubjectOfAdoptionAgreement": {
|
|
152
138
|
"con29DWRef": "3.3",
|
|
153
|
-
"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?",
|
|
154
139
|
"discriminator": {
|
|
155
140
|
"propertyName": "yesNo"
|
|
156
141
|
},
|
|
@@ -172,8 +157,7 @@
|
|
|
172
157
|
]
|
|
173
158
|
},
|
|
174
159
|
"details": {
|
|
175
|
-
"con29DWRef": "3.3.2"
|
|
176
|
-
"title": "Details"
|
|
160
|
+
"con29DWRef": "3.3.2"
|
|
177
161
|
}
|
|
178
162
|
},
|
|
179
163
|
"required": [
|
|
@@ -186,17 +170,12 @@
|
|
|
186
170
|
],
|
|
187
171
|
"properties": {
|
|
188
172
|
"yesNo": {
|
|
189
|
-
"con29DWRef": "3.3.1"
|
|
190
|
-
"enum": [
|
|
191
|
-
"Yes",
|
|
192
|
-
"No"
|
|
193
|
-
]
|
|
173
|
+
"con29DWRef": "3.3.1"
|
|
194
174
|
}
|
|
195
175
|
}
|
|
196
176
|
},
|
|
197
177
|
"lowWaterPressureRisk": {
|
|
198
178
|
"con29DWRef": "3.4",
|
|
199
|
-
"title": "Is the property at risk of receiving low water pressure or flow?",
|
|
200
179
|
"discriminator": {
|
|
201
180
|
"propertyName": "yesNo"
|
|
202
181
|
},
|
|
@@ -218,8 +197,7 @@
|
|
|
218
197
|
]
|
|
219
198
|
},
|
|
220
199
|
"details": {
|
|
221
|
-
"con29DWRef": "3.4.2"
|
|
222
|
-
"title": "Details"
|
|
200
|
+
"con29DWRef": "3.4.2"
|
|
223
201
|
}
|
|
224
202
|
},
|
|
225
203
|
"required": [
|
|
@@ -232,27 +210,20 @@
|
|
|
232
210
|
],
|
|
233
211
|
"properties": {
|
|
234
212
|
"yesNo": {
|
|
235
|
-
"con29DWRef": "3.4.1"
|
|
236
|
-
"enum": [
|
|
237
|
-
"Yes",
|
|
238
|
-
"No"
|
|
239
|
-
]
|
|
213
|
+
"con29DWRef": "3.4.1"
|
|
240
214
|
}
|
|
241
215
|
}
|
|
242
216
|
},
|
|
243
217
|
"supplyClassification": {
|
|
244
|
-
"con29DWRef": "3.5"
|
|
245
|
-
"title": "What is the classification of the water supply for the property?"
|
|
218
|
+
"con29DWRef": "3.5"
|
|
246
219
|
},
|
|
247
220
|
"waterMeterLocation": {
|
|
248
|
-
"con29DWRef": "3.6"
|
|
249
|
-
"title": "Please include details of the location of any water meter serving the property."
|
|
221
|
+
"con29DWRef": "3.6"
|
|
250
222
|
}
|
|
251
223
|
}
|
|
252
224
|
},
|
|
253
225
|
"drainage": {
|
|
254
226
|
"con29DWRef": "2",
|
|
255
|
-
"title": "Drainage",
|
|
256
227
|
"required": [
|
|
257
228
|
"mainsSurfaceWaterDrainage",
|
|
258
229
|
"mainsFoulDrainage",
|
|
@@ -269,7 +240,6 @@
|
|
|
269
240
|
"properties": {
|
|
270
241
|
"mainsSurfaceWaterDrainage": {
|
|
271
242
|
"con29DWRef": "2.2",
|
|
272
|
-
"title": "Mains surface water drainage",
|
|
273
243
|
"discriminator": {
|
|
274
244
|
"propertyName": "yesNo"
|
|
275
245
|
},
|
|
@@ -292,8 +262,7 @@
|
|
|
292
262
|
]
|
|
293
263
|
},
|
|
294
264
|
"details": {
|
|
295
|
-
"con29DWRef": "2.2.2"
|
|
296
|
-
"title": "Details"
|
|
265
|
+
"con29DWRef": "2.2.2"
|
|
297
266
|
}
|
|
298
267
|
},
|
|
299
268
|
"required": [
|
|
@@ -322,7 +291,6 @@
|
|
|
322
291
|
},
|
|
323
292
|
"mainsFoulDrainage": {
|
|
324
293
|
"con29DWRef": "2.1",
|
|
325
|
-
"title": "Mains foul drainage",
|
|
326
294
|
"discriminator": {
|
|
327
295
|
"propertyName": "yesNo"
|
|
328
296
|
},
|
|
@@ -335,8 +303,7 @@
|
|
|
335
303
|
]
|
|
336
304
|
},
|
|
337
305
|
"details": {
|
|
338
|
-
"con29DWRef": "2.1.2"
|
|
339
|
-
"title": "Details"
|
|
306
|
+
"con29DWRef": "2.1.2"
|
|
340
307
|
}
|
|
341
308
|
},
|
|
342
309
|
"required": [
|
|
@@ -374,7 +341,6 @@
|
|
|
374
341
|
},
|
|
375
342
|
"surfaceDrainageCharge": {
|
|
376
343
|
"con29DWRef": "2.3",
|
|
377
|
-
"title": "Is a surface water drainage charge payable?",
|
|
378
344
|
"discriminator": {
|
|
379
345
|
"propertyName": "yesNo"
|
|
380
346
|
},
|
|
@@ -396,8 +362,7 @@
|
|
|
396
362
|
]
|
|
397
363
|
},
|
|
398
364
|
"details": {
|
|
399
|
-
"con29DWRef": "2.3.2"
|
|
400
|
-
"title": "Details"
|
|
365
|
+
"con29DWRef": "2.3.2"
|
|
401
366
|
}
|
|
402
367
|
},
|
|
403
368
|
"required": [
|
|
@@ -410,17 +375,12 @@
|
|
|
410
375
|
],
|
|
411
376
|
"properties": {
|
|
412
377
|
"yesNo": {
|
|
413
|
-
"con29DWRef": "2.3.1"
|
|
414
|
-
"enum": [
|
|
415
|
-
"Yes",
|
|
416
|
-
"No"
|
|
417
|
-
]
|
|
378
|
+
"con29DWRef": "2.3.1"
|
|
418
379
|
}
|
|
419
380
|
}
|
|
420
381
|
},
|
|
421
382
|
"publicDrainWithinBoundaries": {
|
|
422
383
|
"con29DWRef": "2.4",
|
|
423
|
-
"title": "Does the public sewer map indicate any public sewer, disposal main or lateral drain within the boundaries of the property?",
|
|
424
384
|
"discriminator": {
|
|
425
385
|
"propertyName": "yesNo"
|
|
426
386
|
},
|
|
@@ -442,8 +402,7 @@
|
|
|
442
402
|
]
|
|
443
403
|
},
|
|
444
404
|
"details": {
|
|
445
|
-
"con29DWRef": "2.4.0.2"
|
|
446
|
-
"title": "Details"
|
|
405
|
+
"con29DWRef": "2.4.0.2"
|
|
447
406
|
}
|
|
448
407
|
},
|
|
449
408
|
"required": [
|
|
@@ -456,17 +415,12 @@
|
|
|
456
415
|
],
|
|
457
416
|
"properties": {
|
|
458
417
|
"yesNo": {
|
|
459
|
-
"con29DWRef": "2.4.0.1"
|
|
460
|
-
"enum": [
|
|
461
|
-
"Yes",
|
|
462
|
-
"No"
|
|
463
|
-
]
|
|
418
|
+
"con29DWRef": "2.4.0.1"
|
|
464
419
|
}
|
|
465
420
|
}
|
|
466
421
|
},
|
|
467
422
|
"publicPumpingStationWithinBoundaries": {
|
|
468
423
|
"con29DWRef": "2.4.1",
|
|
469
|
-
"title": "Does the public sewer map indicate any public pumping station or any other ancillary apparatus within the boundaries of the property?",
|
|
470
424
|
"discriminator": {
|
|
471
425
|
"propertyName": "yesNo"
|
|
472
426
|
},
|
|
@@ -488,8 +442,7 @@
|
|
|
488
442
|
]
|
|
489
443
|
},
|
|
490
444
|
"details": {
|
|
491
|
-
"con29DWRef": "2.4.1.2"
|
|
492
|
-
"title": "Details"
|
|
445
|
+
"con29DWRef": "2.4.1.2"
|
|
493
446
|
}
|
|
494
447
|
},
|
|
495
448
|
"required": [
|
|
@@ -502,17 +455,12 @@
|
|
|
502
455
|
],
|
|
503
456
|
"properties": {
|
|
504
457
|
"yesNo": {
|
|
505
|
-
"con29DWRef": "2.4.1.1"
|
|
506
|
-
"enum": [
|
|
507
|
-
"Yes",
|
|
508
|
-
"No"
|
|
509
|
-
]
|
|
458
|
+
"con29DWRef": "2.4.1.1"
|
|
510
459
|
}
|
|
511
460
|
}
|
|
512
461
|
},
|
|
513
462
|
"publicSewerWithin100ft": {
|
|
514
463
|
"con29DWRef": "2.5",
|
|
515
|
-
"title": "Does the public sewer map indicate any public sewer within 30.48 meters (100 feet) of any buildings within the property?",
|
|
516
464
|
"discriminator": {
|
|
517
465
|
"propertyName": "yesNo"
|
|
518
466
|
},
|
|
@@ -534,8 +482,7 @@
|
|
|
534
482
|
]
|
|
535
483
|
},
|
|
536
484
|
"details": {
|
|
537
|
-
"con29DWRef": "2.5.0.2"
|
|
538
|
-
"title": "Details"
|
|
485
|
+
"con29DWRef": "2.5.0.2"
|
|
539
486
|
}
|
|
540
487
|
},
|
|
541
488
|
"required": [
|
|
@@ -548,17 +495,12 @@
|
|
|
548
495
|
],
|
|
549
496
|
"properties": {
|
|
550
497
|
"yesNo": {
|
|
551
|
-
"con29DWRef": "2.5.0.1"
|
|
552
|
-
"enum": [
|
|
553
|
-
"Yes",
|
|
554
|
-
"No"
|
|
555
|
-
]
|
|
498
|
+
"con29DWRef": "2.5.0.1"
|
|
556
499
|
}
|
|
557
500
|
}
|
|
558
501
|
},
|
|
559
502
|
"publicPumpingStationWithin50mOfBuildings": {
|
|
560
503
|
"con29DWRef": "2.5.1",
|
|
561
|
-
"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?",
|
|
562
504
|
"discriminator": {
|
|
563
505
|
"propertyName": "yesNo"
|
|
564
506
|
},
|
|
@@ -580,8 +522,7 @@
|
|
|
580
522
|
]
|
|
581
523
|
},
|
|
582
524
|
"details": {
|
|
583
|
-
"con29DWRef": "2.5.1.2"
|
|
584
|
-
"title": "Details"
|
|
525
|
+
"con29DWRef": "2.5.1.2"
|
|
585
526
|
}
|
|
586
527
|
},
|
|
587
528
|
"required": [
|
|
@@ -594,17 +535,12 @@
|
|
|
594
535
|
],
|
|
595
536
|
"properties": {
|
|
596
537
|
"yesNo": {
|
|
597
|
-
"con29DWRef": "2.5.1.1"
|
|
598
|
-
"enum": [
|
|
599
|
-
"Yes",
|
|
600
|
-
"No"
|
|
601
|
-
]
|
|
538
|
+
"con29DWRef": "2.5.1.1"
|
|
602
539
|
}
|
|
603
540
|
}
|
|
604
541
|
},
|
|
605
542
|
"sewersSubjectOfAdoptionAgreement": {
|
|
606
543
|
"con29DWRef": "2.6",
|
|
607
|
-
"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?",
|
|
608
544
|
"discriminator": {
|
|
609
545
|
"propertyName": "yesNo"
|
|
610
546
|
},
|
|
@@ -626,8 +562,7 @@
|
|
|
626
562
|
]
|
|
627
563
|
},
|
|
628
564
|
"details": {
|
|
629
|
-
"con29DWRef": "2.6.2"
|
|
630
|
-
"title": "Details"
|
|
565
|
+
"con29DWRef": "2.6.2"
|
|
631
566
|
}
|
|
632
567
|
},
|
|
633
568
|
"required": [
|
|
@@ -640,17 +575,12 @@
|
|
|
640
575
|
],
|
|
641
576
|
"properties": {
|
|
642
577
|
"yesNo": {
|
|
643
|
-
"con29DWRef": "2.6.1"
|
|
644
|
-
"enum": [
|
|
645
|
-
"Yes",
|
|
646
|
-
"No"
|
|
647
|
-
]
|
|
578
|
+
"con29DWRef": "2.6.1"
|
|
648
579
|
}
|
|
649
580
|
}
|
|
650
581
|
},
|
|
651
582
|
"sewerageUndertakerApproval": {
|
|
652
583
|
"con29DWRef": "2.7",
|
|
653
|
-
"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?",
|
|
654
584
|
"discriminator": {
|
|
655
585
|
"propertyName": "yesNo"
|
|
656
586
|
},
|
|
@@ -672,8 +602,7 @@
|
|
|
672
602
|
]
|
|
673
603
|
},
|
|
674
604
|
"details": {
|
|
675
|
-
"con29DWRef": "2.7.2"
|
|
676
|
-
"title": "Details"
|
|
605
|
+
"con29DWRef": "2.7.2"
|
|
677
606
|
}
|
|
678
607
|
},
|
|
679
608
|
"required": [
|
|
@@ -686,17 +615,12 @@
|
|
|
686
615
|
],
|
|
687
616
|
"properties": {
|
|
688
617
|
"yesNo": {
|
|
689
|
-
"con29DWRef": "2.7.1"
|
|
690
|
-
"enum": [
|
|
691
|
-
"Yes",
|
|
692
|
-
"No"
|
|
693
|
-
]
|
|
618
|
+
"con29DWRef": "2.7.1"
|
|
694
619
|
}
|
|
695
620
|
}
|
|
696
621
|
},
|
|
697
622
|
"riskOfInternalFlooding": {
|
|
698
623
|
"con29DWRef": "2.8",
|
|
699
|
-
"title": "Is any building which is or forms part of the property, at risk of internal flooding due to overloaded public sewers?",
|
|
700
624
|
"discriminator": {
|
|
701
625
|
"propertyName": "yesNo"
|
|
702
626
|
},
|
|
@@ -718,8 +642,7 @@
|
|
|
718
642
|
]
|
|
719
643
|
},
|
|
720
644
|
"details": {
|
|
721
|
-
"con29DWRef": "2.8.2"
|
|
722
|
-
"title": "Details"
|
|
645
|
+
"con29DWRef": "2.8.2"
|
|
723
646
|
}
|
|
724
647
|
},
|
|
725
648
|
"required": [
|
|
@@ -732,23 +655,17 @@
|
|
|
732
655
|
],
|
|
733
656
|
"properties": {
|
|
734
657
|
"yesNo": {
|
|
735
|
-
"con29DWRef": "2.8.1"
|
|
736
|
-
"enum": [
|
|
737
|
-
"Yes",
|
|
738
|
-
"No"
|
|
739
|
-
]
|
|
658
|
+
"con29DWRef": "2.8.1"
|
|
740
659
|
}
|
|
741
660
|
}
|
|
742
661
|
},
|
|
743
662
|
"distanceToNearestSewerageTreatment": {
|
|
744
|
-
"con29DWRef": "2.9"
|
|
745
|
-
"title": "Please state the distance from the property to the nearest boundary of the nearest sewage treatment works."
|
|
663
|
+
"con29DWRef": "2.9"
|
|
746
664
|
}
|
|
747
665
|
}
|
|
748
666
|
},
|
|
749
667
|
"charging": {
|
|
750
668
|
"con29DWRef": "4",
|
|
751
|
-
"title": "Charging",
|
|
752
669
|
"required": [
|
|
753
670
|
"sewerageProvider",
|
|
754
671
|
"waterProvider",
|
|
@@ -759,28 +676,22 @@
|
|
|
759
676
|
],
|
|
760
677
|
"properties": {
|
|
761
678
|
"sewerageProvider": {
|
|
762
|
-
"con29DWRef": "4.1.1"
|
|
763
|
-
"title": "Who are the sewerage undertakers for the property?"
|
|
679
|
+
"con29DWRef": "4.1.1"
|
|
764
680
|
},
|
|
765
681
|
"waterProvider": {
|
|
766
|
-
"con29DWRef": "4.1.2"
|
|
767
|
-
"title": "Who are the water undertakers for the property?"
|
|
682
|
+
"con29DWRef": "4.1.2"
|
|
768
683
|
},
|
|
769
684
|
"sewerageBills": {
|
|
770
|
-
"con29DWRef": "4.2"
|
|
771
|
-
"title": "Who bills the property for sewerage services?"
|
|
685
|
+
"con29DWRef": "4.2"
|
|
772
686
|
},
|
|
773
687
|
"waterBills": {
|
|
774
|
-
"con29DWRef": "4.3"
|
|
775
|
-
"title": "Who bills the property for water services?"
|
|
688
|
+
"con29DWRef": "4.3"
|
|
776
689
|
},
|
|
777
690
|
"currentChargingBasis": {
|
|
778
|
-
"con29DWRef": "4.4"
|
|
779
|
-
"title": "What is the current basis for charging for sewerage and/or water services at the property?"
|
|
691
|
+
"con29DWRef": "4.4"
|
|
780
692
|
},
|
|
781
693
|
"consequentialChargingBasis": {
|
|
782
|
-
"con29DWRef": "4.5"
|
|
783
|
-
"title": "Will the basis for charging for sewerage and water services at the property change as a consequence of a change of occupation?"
|
|
694
|
+
"con29DWRef": "4.5"
|
|
784
695
|
}
|
|
785
696
|
}
|
|
786
697
|
}
|