@pdtf/schemas 3.6.0-17 → 3.6.0-19

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.
@@ -0,0 +1,191 @@
1
+ {
2
+ "properties": {
3
+ "propertyPack": {
4
+ "properties": {
5
+ "specialistIssues": {
6
+ "properties": {
7
+ "wellsDitchesShaft": {
8
+ "sef25Ref": "H1.1",
9
+ "required": [
10
+ "yesNo"
11
+ ],
12
+ "discriminator": {
13
+ "propertyName": "yesNo"
14
+ },
15
+ "properties": {
16
+ "yesNo": {
17
+ "sef25Ref": "H1.1.1",
18
+ "type": "string"
19
+ }
20
+ },
21
+ "oneOf": [
22
+ {
23
+ "properties": {
24
+ "yesNo": {
25
+ "enum": [
26
+ "No"
27
+ ]
28
+ }
29
+ }
30
+ },
31
+ {
32
+ "required": [
33
+ "details"
34
+ ],
35
+ "properties": {
36
+ "details": {
37
+ "sef25Ref": "H1.1.2",
38
+ "type": "string",
39
+ "minLength": 1
40
+ },
41
+ "yesNo": {
42
+ "enum": [
43
+ "Yes"
44
+ ]
45
+ }
46
+ }
47
+ }
48
+ ],
49
+ "type": "object"
50
+ },
51
+ "damagedOrExposedElectrics": {
52
+ "sef25Ref": "H1.2",
53
+ "required": [
54
+ "yesNo"
55
+ ],
56
+ "discriminator": {
57
+ "propertyName": "yesNo"
58
+ },
59
+ "properties": {
60
+ "yesNo": {
61
+ "sef25Ref": "H1.2.1",
62
+ "type": "string"
63
+ }
64
+ },
65
+ "oneOf": [
66
+ {
67
+ "properties": {
68
+ "yesNo": {
69
+ "enum": [
70
+ "No"
71
+ ]
72
+ }
73
+ }
74
+ },
75
+ {
76
+ "required": [
77
+ "details"
78
+ ],
79
+ "properties": {
80
+ "details": {
81
+ "sef25Ref": "H1.2.2",
82
+ "type": "string",
83
+ "minLength": 1
84
+ },
85
+ "yesNo": {
86
+ "enum": [
87
+ "Yes"
88
+ ]
89
+ }
90
+ }
91
+ }
92
+ ],
93
+ "type": "object"
94
+ },
95
+ "damageToFlooringOrStaircases": {
96
+ "sef25Ref": "H1.3",
97
+ "required": [
98
+ "yesNo"
99
+ ],
100
+ "discriminator": {
101
+ "propertyName": "yesNo"
102
+ },
103
+ "properties": {
104
+ "yesNo": {
105
+ "sef25Ref": "H1.3.1",
106
+ "type": "string"
107
+ }
108
+ },
109
+ "oneOf": [
110
+ {
111
+ "properties": {
112
+ "yesNo": {
113
+ "enum": [
114
+ "No"
115
+ ]
116
+ }
117
+ }
118
+ },
119
+ {
120
+ "required": [
121
+ "details"
122
+ ],
123
+ "properties": {
124
+ "details": {
125
+ "sef25Ref": "H1.3.2",
126
+ "type": "string",
127
+ "minLength": 1
128
+ },
129
+ "yesNo": {
130
+ "enum": [
131
+ "Yes"
132
+ ]
133
+ }
134
+ }
135
+ }
136
+ ],
137
+ "type": "object"
138
+ },
139
+ "knownAreasInPoorCondition": {
140
+ "sef25Ref": "H1.4",
141
+ "required": [
142
+ "yesNo"
143
+ ],
144
+ "discriminator": {
145
+ "propertyName": "yesNo"
146
+ },
147
+ "properties": {
148
+ "yesNo": {
149
+ "sef25Ref": "H1.4.1",
150
+ "type": "string"
151
+ }
152
+ },
153
+ "oneOf": [
154
+ {
155
+ "properties": {
156
+ "yesNo": {
157
+ "enum": [
158
+ "No"
159
+ ]
160
+ }
161
+ }
162
+ },
163
+ {
164
+ "required": [
165
+ "details"
166
+ ],
167
+ "properties": {
168
+ "details": {
169
+ "sef25Ref": "H1.4.2",
170
+ "type": "string",
171
+ "minLength": 1
172
+ },
173
+ "yesNo": {
174
+ "enum": [
175
+ "Yes"
176
+ ]
177
+ }
178
+ }
179
+ }
180
+ ],
181
+ "type": "object"
182
+ }
183
+ }
184
+ }
185
+ }
186
+ }
187
+ },
188
+ "$schema": "http://json-schema.org/draft-07/schema#",
189
+ "$id": "https://trust.propdata.org.uk/schemas/v3/overlays/extensions/ph.json",
190
+ "$comment": "Property hazards and known issues"
191
+ }
@@ -0,0 +1,77 @@
1
+ {
2
+ "properties": {
3
+ "propertyPack": {
4
+ "properties": {
5
+ "waterAndDrainage": {
6
+ "properties": {
7
+ "water": {
8
+ "properties": {
9
+ "mainsWater": {
10
+ "oneOf": [
11
+ {
12
+ "properties": {
13
+ "associatedCost": {
14
+ "sef25Ref": "U1.1",
15
+ "required": [
16
+ "amount",
17
+ "frequency"
18
+ ],
19
+ "properties": {
20
+ "amount": {
21
+ "sef25Ref": "U1.1.1",
22
+ "type": "number"
23
+ },
24
+ "frequency": {
25
+ "sef25Ref": "U1.1.2",
26
+ "type": "string"
27
+ }
28
+ },
29
+ "type": "object"
30
+ }
31
+ }
32
+ }
33
+ ]
34
+ }
35
+ }
36
+ },
37
+ "drainage": {
38
+ "properties": {
39
+ "mainsFoulDrainage": {
40
+ "oneOf": [
41
+ null,
42
+ null,
43
+ {
44
+ "properties": {
45
+ "associatedCost": {
46
+ "sef25Ref": "U1.2",
47
+ "required": [
48
+ "amount",
49
+ "frequency"
50
+ ],
51
+ "properties": {
52
+ "amount": {
53
+ "sef25Ref": "U1.2.1",
54
+ "type": "number"
55
+ },
56
+ "frequency": {
57
+ "sef25Ref": "U1.2.2",
58
+ "type": "string"
59
+ }
60
+ },
61
+ "type": "object"
62
+ }
63
+ }
64
+ }
65
+ ]
66
+ }
67
+ }
68
+ }
69
+ }
70
+ }
71
+ }
72
+ }
73
+ },
74
+ "$schema": "http://json-schema.org/draft-07/schema#",
75
+ "$id": "https://trust.propdata.org.uk/schemas/v3/overlays/extensions/sc.json",
76
+ "$comment": "Associated costs for private water and sewerage supply"
77
+ }
@@ -445,7 +445,13 @@
445
445
  ],
446
446
  "properties": {
447
447
  "collector": {
448
- "lpe1Ref": "1.7"
448
+ "lpe1Ref": "1.7",
449
+ "enum": [
450
+ "Landlord",
451
+ "Management Company",
452
+ "Managing Agent",
453
+ "Not applicable"
454
+ ]
449
455
  }
450
456
  }
451
457
  },
@@ -458,7 +464,13 @@
458
464
  ],
459
465
  "properties": {
460
466
  "collector": {
461
- "lpe1Ref": "1.9"
467
+ "lpe1Ref": "1.9",
468
+ "enum": [
469
+ "Landlord",
470
+ "Management Company",
471
+ "Managing Agent",
472
+ "Not applicable"
473
+ ]
462
474
  }
463
475
  }
464
476
  },
@@ -336,7 +336,9 @@
336
336
  "collector": {
337
337
  "enum": [
338
338
  "Landlord",
339
- "Management company"
339
+ "Management Company",
340
+ "Managing Agent",
341
+ "Not applicable"
340
342
  ]
341
343
  }
342
344
  }
@@ -366,7 +368,7 @@
366
368
  "title": "Who collects the ground rent?",
367
369
  "enum": [
368
370
  "Landlord",
369
- "Management company",
371
+ "Management Company",
370
372
  "Other"
371
373
  ]
372
374
  }
@@ -384,9 +386,11 @@
384
386
  "enum": [
385
387
  "Freeholder",
386
388
  "Landlord",
387
- "Management company",
388
- "Head leaseholder",
389
- "Seller"
389
+ "Management Company",
390
+ "Managing Agent",
391
+ "Head Leaseholder",
392
+ "Seller",
393
+ "Not applicable"
390
394
  ]
391
395
  }
392
396
  }
@@ -416,8 +420,8 @@
416
420
  "enum": [
417
421
  "Freeholder",
418
422
  "Landlord",
419
- "Management company",
420
- "Head leaseholder",
423
+ "Management Company",
424
+ "Head Leaseholder",
421
425
  "Seller",
422
426
  "Other"
423
427
  ]
@@ -5043,7 +5043,8 @@
5043
5043
  "Landlord",
5044
5044
  "Management Company",
5045
5045
  "Managing Agent",
5046
- "Not applicable"
5046
+ "Not applicable",
5047
+ "Other"
5047
5048
  ]
5048
5049
  }
5049
5050
  },
@@ -5095,10 +5096,14 @@
5095
5096
  "title": "Who collects the building insurance premiums?",
5096
5097
  "type": "string",
5097
5098
  "enum": [
5099
+ "Freeholder",
5098
5100
  "Landlord",
5099
5101
  "Management Company",
5100
5102
  "Managing Agent",
5101
- "Not applicable"
5103
+ "Head Leaseholder",
5104
+ "Seller",
5105
+ "Not applicable",
5106
+ "Other"
5102
5107
  ]
5103
5108
  }
5104
5109
  },
@@ -5107,9 +5112,12 @@
5107
5112
  "properties": {
5108
5113
  "collector": {
5109
5114
  "enum": [
5115
+ "Freeholder",
5110
5116
  "Landlord",
5111
5117
  "Management Company",
5112
5118
  "Managing Agent",
5119
+ "Head Leaseholder",
5120
+ "Seller",
5113
5121
  "Not applicable"
5114
5122
  ]
5115
5123
  }
@@ -8363,8 +8371,17 @@
8363
8371
  ]
8364
8372
  },
8365
8373
  "annualCostOfPermit": {
8366
- "title": "Annual cost of permit (£)",
8374
+ "title": "Cost of permit (£)",
8367
8375
  "type": "number"
8376
+ },
8377
+ "costOfPermitFrequency": {
8378
+ "sef25Ref": "P1.1",
8379
+ "title": "Payment frequency",
8380
+ "type": "string",
8381
+ "enum": [
8382
+ "Per month",
8383
+ "Per year"
8384
+ ]
8368
8385
  }
8369
8386
  }
8370
8387
  }
@@ -12718,6 +12735,198 @@
12718
12735
  }
12719
12736
  }
12720
12737
  ]
12738
+ },
12739
+ "wellsDitchesShaft": {
12740
+ "sef25Ref": "H1.1",
12741
+ "title": "Are there any wells, ditches, or shafts at the property?",
12742
+ "type": "object",
12743
+ "sef25Required": [
12744
+ "yesNo"
12745
+ ],
12746
+ "properties": {
12747
+ "yesNo": {
12748
+ "sef25Ref": "H1.1.1",
12749
+ "type": "string",
12750
+ "title": "",
12751
+ "enum": [
12752
+ "Yes",
12753
+ "No"
12754
+ ]
12755
+ }
12756
+ },
12757
+ "oneOf": [
12758
+ {
12759
+ "properties": {
12760
+ "yesNo": {
12761
+ "enum": [
12762
+ "No"
12763
+ ]
12764
+ }
12765
+ }
12766
+ },
12767
+ {
12768
+ "sef25Required": [
12769
+ "details"
12770
+ ],
12771
+ "properties": {
12772
+ "yesNo": {
12773
+ "enum": [
12774
+ "Yes"
12775
+ ]
12776
+ },
12777
+ "details": {
12778
+ "sef25Ref": "H1.1.2",
12779
+ "title": "Give details",
12780
+ "type": "string",
12781
+ "minLength": 1
12782
+ }
12783
+ }
12784
+ }
12785
+ ]
12786
+ },
12787
+ "damagedOrExposedElectrics": {
12788
+ "sef25Ref": "H1.2",
12789
+ "title": "Are there any damaged or exposed electrics at the property?",
12790
+ "type": "object",
12791
+ "sef25Required": [
12792
+ "yesNo"
12793
+ ],
12794
+ "properties": {
12795
+ "yesNo": {
12796
+ "sef25Ref": "H1.2.1",
12797
+ "type": "string",
12798
+ "title": "",
12799
+ "enum": [
12800
+ "Yes",
12801
+ "No"
12802
+ ]
12803
+ }
12804
+ },
12805
+ "oneOf": [
12806
+ {
12807
+ "properties": {
12808
+ "yesNo": {
12809
+ "enum": [
12810
+ "No"
12811
+ ]
12812
+ }
12813
+ }
12814
+ },
12815
+ {
12816
+ "sef25Required": [
12817
+ "details"
12818
+ ],
12819
+ "properties": {
12820
+ "yesNo": {
12821
+ "enum": [
12822
+ "Yes"
12823
+ ]
12824
+ },
12825
+ "details": {
12826
+ "sef25Ref": "H1.2.2",
12827
+ "title": "Give details",
12828
+ "type": "string",
12829
+ "minLength": 1
12830
+ }
12831
+ }
12832
+ }
12833
+ ]
12834
+ },
12835
+ "damageToFlooringOrStaircases": {
12836
+ "sef25Ref": "H1.3",
12837
+ "title": "Is there any damage to flooring and/or staircases?",
12838
+ "type": "object",
12839
+ "sef25Required": [
12840
+ "yesNo"
12841
+ ],
12842
+ "properties": {
12843
+ "yesNo": {
12844
+ "sef25Ref": "H1.3.1",
12845
+ "type": "string",
12846
+ "title": "",
12847
+ "enum": [
12848
+ "Yes",
12849
+ "No"
12850
+ ]
12851
+ }
12852
+ },
12853
+ "oneOf": [
12854
+ {
12855
+ "properties": {
12856
+ "yesNo": {
12857
+ "enum": [
12858
+ "No"
12859
+ ]
12860
+ }
12861
+ }
12862
+ },
12863
+ {
12864
+ "sef25Required": [
12865
+ "details"
12866
+ ],
12867
+ "properties": {
12868
+ "yesNo": {
12869
+ "enum": [
12870
+ "Yes"
12871
+ ]
12872
+ },
12873
+ "details": {
12874
+ "sef25Ref": "H1.3.2",
12875
+ "title": "Give details",
12876
+ "type": "string",
12877
+ "minLength": 1
12878
+ }
12879
+ }
12880
+ }
12881
+ ]
12882
+ },
12883
+ "knownAreasInPoorCondition": {
12884
+ "sef25Ref": "H1.4",
12885
+ "title": "Are there any known areas in poor condition (internal or external)?",
12886
+ "type": "object",
12887
+ "sef25Required": [
12888
+ "yesNo"
12889
+ ],
12890
+ "properties": {
12891
+ "yesNo": {
12892
+ "sef25Ref": "H1.4.1",
12893
+ "type": "string",
12894
+ "title": "",
12895
+ "enum": [
12896
+ "Yes",
12897
+ "No"
12898
+ ]
12899
+ }
12900
+ },
12901
+ "oneOf": [
12902
+ {
12903
+ "properties": {
12904
+ "yesNo": {
12905
+ "enum": [
12906
+ "No"
12907
+ ]
12908
+ }
12909
+ }
12910
+ },
12911
+ {
12912
+ "sef25Required": [
12913
+ "details"
12914
+ ],
12915
+ "properties": {
12916
+ "yesNo": {
12917
+ "enum": [
12918
+ "Yes"
12919
+ ]
12920
+ },
12921
+ "details": {
12922
+ "sef25Ref": "H1.4.2",
12923
+ "title": "Give details",
12924
+ "type": "string",
12925
+ "minLength": 1
12926
+ }
12927
+ }
12928
+ }
12929
+ ]
12721
12930
  }
12722
12931
  }
12723
12932
  },
@@ -18376,6 +18585,31 @@
18376
18585
  "description": "e.g. Private well, borehole, springs etc.",
18377
18586
  "type": "string",
18378
18587
  "minLength": 1
18588
+ },
18589
+ "associatedCost": {
18590
+ "sef25Ref": "U1.1",
18591
+ "title": "Associated costs for water",
18592
+ "type": "object",
18593
+ "sef25Required": [
18594
+ "amount",
18595
+ "frequency"
18596
+ ],
18597
+ "properties": {
18598
+ "amount": {
18599
+ "sef25Ref": "U1.1.1",
18600
+ "title": "Cost (£)",
18601
+ "type": "number"
18602
+ },
18603
+ "frequency": {
18604
+ "sef25Ref": "U1.1.2",
18605
+ "title": "Payment frequency",
18606
+ "type": "string",
18607
+ "enum": [
18608
+ "Per month",
18609
+ "Per year"
18610
+ ]
18611
+ }
18612
+ }
18379
18613
  }
18380
18614
  }
18381
18615
  },
@@ -19027,6 +19261,31 @@
19027
19261
  }
19028
19262
  }
19029
19263
  ]
19264
+ },
19265
+ "associatedCost": {
19266
+ "sef25Ref": "U1.2",
19267
+ "title": "Associated costs for sewerage",
19268
+ "type": "object",
19269
+ "sef25Required": [
19270
+ "amount",
19271
+ "frequency"
19272
+ ],
19273
+ "properties": {
19274
+ "amount": {
19275
+ "sef25Ref": "U1.2.1",
19276
+ "title": "Cost (£)",
19277
+ "type": "number"
19278
+ },
19279
+ "frequency": {
19280
+ "sef25Ref": "U1.2.2",
19281
+ "title": "Payment frequency",
19282
+ "type": "string",
19283
+ "enum": [
19284
+ "Per month",
19285
+ "Per year"
19286
+ ]
19287
+ }
19288
+ }
19030
19289
  }
19031
19290
  }
19032
19291
  }