@pdtf/schemas 3.6.0-33 → 3.6.0-34

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pdtf/schemas",
3
- "version": "3.6.0-33",
3
+ "version": "3.6.0-34",
4
4
  "description": "Property Data Trust Framework Schemas and Utilities",
5
5
  "main": "index.js",
6
6
  "directories": {
@@ -30060,6 +30060,7 @@
30060
30060
  "baspi5Required": ["hasValidGuaranteesOrWarranties"],
30061
30061
  "ta6Required": ["hasValidGuaranteesOrWarranties"],
30062
30062
  "ta6ed6Required": ["hasValidGuaranteesOrWarranties"],
30063
+ "sef25Required": ["hasValidGuaranteesOrWarranties"],
30063
30064
  "properties": {
30064
30065
  "hasValidGuaranteesOrWarranties": {
30065
30066
  "baspi4Ref": "B5.1",
@@ -30068,6 +30069,7 @@
30068
30069
  "ta6ed6Ref": "6.1",
30069
30070
  "rdsRef": "Certificates",
30070
30071
  "piqRef": "B5.1",
30072
+ "sef25Ref": "W1.0",
30071
30073
  "title": "Are there any valid guarantees, warranties or indemnity insurances relating to this property?",
30072
30074
  "type": "string",
30073
30075
  "enum": ["Yes", "No"]
@@ -30114,6 +30116,7 @@
30114
30116
  "baspi5Required": ["yesNo"],
30115
30117
  "ta6Required": ["yesNo"],
30116
30118
  "ta6ed6Required": ["yesNo"],
30119
+ "sef25Required": ["yesNo"],
30117
30120
  "discriminator": {
30118
30121
  "propertyName": "yesNo"
30119
30122
  },
@@ -30180,6 +30183,7 @@
30180
30183
  "baspi5Required": ["yesNo"],
30181
30184
  "ta6Required": ["yesNo"],
30182
30185
  "ta6ed6Required": ["yesNo"],
30186
+ "sef25Required": ["yesNo"],
30183
30187
  "discriminator": {
30184
30188
  "propertyName": "yesNo"
30185
30189
  },
@@ -30237,6 +30241,7 @@
30237
30241
  "baspi4Required": ["yesNo"],
30238
30242
  "baspi5Required": ["yesNo"],
30239
30243
  "ta6Required": ["yesNo"],
30244
+ "sef25Required": ["yesNo"],
30240
30245
  "ta6ed6Required": ["yesNo"],
30241
30246
  "discriminator": {
30242
30247
  "propertyName": "yesNo"
@@ -30354,6 +30359,7 @@
30354
30359
  "baspi5Required": ["yesNo"],
30355
30360
  "ta6Required": ["yesNo"],
30356
30361
  "ta6ed6Required": ["yesNo"],
30362
+ "sef25Required": ["yesNo"],
30357
30363
  "discriminator": {
30358
30364
  "propertyName": "yesNo"
30359
30365
  },
@@ -30498,6 +30504,7 @@
30498
30504
  },
30499
30505
  "baspi4Required": ["yesNo"],
30500
30506
  "baspi5Required": ["yesNo"],
30507
+ "sef25Required": ["yesNo"],
30501
30508
  "ta6Required": ["yesNo"],
30502
30509
  "discriminator": {
30503
30510
  "propertyName": "yesNo"
@@ -30555,6 +30562,7 @@
30555
30562
  "baspi5Required": ["yesNo"],
30556
30563
  "ta6Required": ["yesNo"],
30557
30564
  "ta6ed6Required": ["yesNo"],
30565
+ "sef25Required": ["yesNo"],
30558
30566
  "discriminator": {
30559
30567
  "propertyName": "yesNo"
30560
30568
  },
@@ -30701,6 +30709,7 @@
30701
30709
  "baspi5Required": ["yesNo"],
30702
30710
  "ta6Required": ["yesNo"],
30703
30711
  "ta6ed6Required": ["yesNo"],
30712
+ "sef25Required": ["yesNo"],
30704
30713
  "discriminator": {
30705
30714
  "propertyName": "yesNo"
30706
30715
  },
@@ -3,6 +3,12 @@
3
3
  "propertyPack": {
4
4
  "properties": {
5
5
  "specialistIssues": {
6
+ "required": [
7
+ "wellsDitchesShaft",
8
+ "damagedOrExposedElectrics",
9
+ "damageToFlooringOrStaircases",
10
+ "knownAreasInPoorCondition"
11
+ ],
6
12
  "properties": {
7
13
  "wellsDitchesShaft": {
8
14
  "ntsRef": "H1.1",
@@ -45,8 +51,7 @@
45
51
  }
46
52
  }
47
53
  }
48
- ],
49
- "type": "object"
54
+ ]
50
55
  },
51
56
  "damagedOrExposedElectrics": {
52
57
  "ntsRef": "H1.2",
@@ -89,8 +94,7 @@
89
94
  }
90
95
  }
91
96
  }
92
- ],
93
- "type": "object"
97
+ ]
94
98
  },
95
99
  "damageToFlooringOrStaircases": {
96
100
  "ntsRef": "H1.3",
@@ -133,8 +137,7 @@
133
137
  }
134
138
  }
135
139
  }
136
- ],
137
- "type": "object"
140
+ ]
138
141
  },
139
142
  "knownAreasInPoorCondition": {
140
143
  "ntsRef": "H1.4",
@@ -177,16 +180,10 @@
177
180
  }
178
181
  }
179
182
  }
180
- ],
181
- "type": "object"
183
+ ]
182
184
  }
183
185
  },
184
- "required": [
185
- "wellsDitchesShaft",
186
- "damagedOrExposedElectrics",
187
- "damageToFlooringOrStaircases",
188
- "knownAreasInPoorCondition"
189
- ]
186
+ "type": "object"
190
187
  }
191
188
  }
192
189
  }
@@ -3,12 +3,36 @@
3
3
  "propertyPack": {
4
4
  "properties": {
5
5
  "guaranteesWarrantiesAndIndemnityInsurances": {
6
+ "ntsRef": "W1",
7
+ "required": [
8
+ "hasValidGuaranteesOrWarranties"
9
+ ],
10
+ "discriminator": {
11
+ "propertyName": "hasValidGuaranteesOrWarranties"
12
+ },
13
+ "properties": {
14
+ "hasValidGuaranteesOrWarranties": {
15
+ "ntsRef": "W1.0",
16
+ "type": "string"
17
+ }
18
+ },
6
19
  "oneOf": [
7
- null,
20
+ {
21
+ "properties": {
22
+ "hasValidGuaranteesOrWarranties": {
23
+ "enum": [
24
+ "No"
25
+ ]
26
+ }
27
+ }
28
+ },
8
29
  {
9
30
  "properties": {
10
31
  "newHomeWarranty": {
11
32
  "ntsRef": "W1.1",
33
+ "required": [
34
+ "yesNo"
35
+ ],
12
36
  "discriminator": {
13
37
  "propertyName": "yesNo"
14
38
  },
@@ -31,11 +55,13 @@
31
55
  }
32
56
  }
33
57
  }
34
- ],
35
- "type": "object"
58
+ ]
36
59
  },
37
60
  "roofingWork": {
38
61
  "ntsRef": "W1.2",
62
+ "required": [
63
+ "yesNo"
64
+ ],
39
65
  "discriminator": {
40
66
  "propertyName": "yesNo"
41
67
  },
@@ -58,11 +84,13 @@
58
84
  }
59
85
  }
60
86
  }
61
- ],
62
- "type": "object"
87
+ ]
63
88
  },
64
89
  "dampProofingTreatment": {
65
90
  "ntsRef": "W1.3",
91
+ "required": [
92
+ "yesNo"
93
+ ],
66
94
  "discriminator": {
67
95
  "propertyName": "yesNo"
68
96
  },
@@ -85,11 +113,13 @@
85
113
  }
86
114
  }
87
115
  }
88
- ],
89
- "type": "object"
116
+ ]
90
117
  },
91
118
  "centralHeatingAndorPlumbing": {
92
119
  "ntsRef": "W1.4",
120
+ "required": [
121
+ "yesNo"
122
+ ],
93
123
  "discriminator": {
94
124
  "propertyName": "yesNo"
95
125
  },
@@ -112,11 +142,13 @@
112
142
  }
113
143
  }
114
144
  }
115
- ],
116
- "type": "object"
145
+ ]
117
146
  },
118
147
  "electricalRepairOrInstallation": {
119
148
  "ntsRef": "W1.5",
149
+ "required": [
150
+ "yesNo"
151
+ ],
120
152
  "discriminator": {
121
153
  "propertyName": "yesNo"
122
154
  },
@@ -139,11 +171,13 @@
139
171
  }
140
172
  }
141
173
  }
142
- ],
143
- "type": "object"
174
+ ]
144
175
  },
145
176
  "subsidenceWork": {
146
177
  "ntsRef": "W1.6",
178
+ "required": [
179
+ "yesNo"
180
+ ],
147
181
  "discriminator": {
148
182
  "propertyName": "yesNo"
149
183
  },
@@ -166,11 +200,13 @@
166
200
  }
167
201
  }
168
202
  }
169
- ],
170
- "type": "object"
203
+ ]
171
204
  },
172
205
  "otherGuarantees": {
173
206
  "ntsRef": "W1.7",
207
+ "required": [
208
+ "yesNo"
209
+ ],
174
210
  "discriminator": {
175
211
  "propertyName": "yesNo"
176
212
  },
@@ -193,12 +229,17 @@
193
229
  }
194
230
  }
195
231
  }
196
- ],
197
- "type": "object"
232
+ ]
233
+ },
234
+ "hasValidGuaranteesOrWarranties": {
235
+ "enum": [
236
+ "Yes"
237
+ ]
198
238
  }
199
239
  }
200
240
  }
201
- ]
241
+ ],
242
+ "type": "object"
202
243
  }
203
244
  }
204
245
  }
@@ -798,6 +798,9 @@
798
798
  }
799
799
  }
800
800
  }
801
+ ],
802
+ "required": [
803
+ "yesNo"
801
804
  ]
802
805
  },
803
806
  "roofingWork": {
@@ -824,6 +827,9 @@
824
827
  }
825
828
  }
826
829
  }
830
+ ],
831
+ "required": [
832
+ "yesNo"
827
833
  ]
828
834
  },
829
835
  "dampProofingTreatment": {
@@ -850,6 +856,9 @@
850
856
  }
851
857
  }
852
858
  }
859
+ ],
860
+ "required": [
861
+ "yesNo"
853
862
  ]
854
863
  },
855
864
  "centralHeatingAndorPlumbing": {
@@ -876,6 +885,9 @@
876
885
  }
877
886
  }
878
887
  }
888
+ ],
889
+ "required": [
890
+ "yesNo"
879
891
  ]
880
892
  },
881
893
  "electricalRepairOrInstallation": {
@@ -902,6 +914,9 @@
902
914
  }
903
915
  }
904
916
  }
917
+ ],
918
+ "required": [
919
+ "yesNo"
905
920
  ]
906
921
  },
907
922
  "subsidenceWork": {
@@ -928,6 +943,9 @@
928
943
  }
929
944
  }
930
945
  }
946
+ ],
947
+ "required": [
948
+ "yesNo"
931
949
  ]
932
950
  },
933
951
  "otherGuarantees": {
@@ -954,11 +972,22 @@
954
972
  }
955
973
  }
956
974
  }
975
+ ],
976
+ "required": [
977
+ "yesNo"
957
978
  ]
958
979
  }
959
980
  }
960
981
  }
961
- ]
982
+ ],
983
+ "required": [
984
+ "hasValidGuaranteesOrWarranties"
985
+ ],
986
+ "properties": {
987
+ "hasValidGuaranteesOrWarranties": {
988
+ "sef25Ref": "W1.0"
989
+ }
990
+ }
962
991
  }
963
992
  }
964
993
  }
@@ -214,10 +214,7 @@ const extensionMappings = {
214
214
  description: "Property hazards and known issues",
215
215
  refType: "sef25Ref",
216
216
  paths: [
217
- "/properties/propertyPack/properties/specialistIssues/properties/wellsDitchesShaft",
218
- "/properties/propertyPack/properties/specialistIssues/properties/damagedOrExposedElectrics",
219
- "/properties/propertyPack/properties/specialistIssues/properties/damageToFlooringOrStaircases",
220
- "/properties/propertyPack/properties/specialistIssues/properties/knownAreasInPoorCondition",
217
+ "/properties/propertyPack/properties/specialistIssues",
221
218
  ],
222
219
  },
223
220
 
@@ -267,13 +264,7 @@ const extensionMappings = {
267
264
  description: "Warranties and guarantees upfront Y/N for SEF25",
268
265
  refType: "sef25Ref",
269
266
  paths: [
270
- "/properties/propertyPack/properties/guaranteesWarrantiesAndIndemnityInsurances/oneOf/1/properties/newHomeWarranty",
271
- "/properties/propertyPack/properties/guaranteesWarrantiesAndIndemnityInsurances/oneOf/1/properties/roofingWork",
272
- "/properties/propertyPack/properties/guaranteesWarrantiesAndIndemnityInsurances/oneOf/1/properties/dampProofingTreatment",
273
- "/properties/propertyPack/properties/guaranteesWarrantiesAndIndemnityInsurances/oneOf/1/properties/centralHeatingAndorPlumbing",
274
- "/properties/propertyPack/properties/guaranteesWarrantiesAndIndemnityInsurances/oneOf/1/properties/electricalRepairOrInstallation",
275
- "/properties/propertyPack/properties/guaranteesWarrantiesAndIndemnityInsurances/oneOf/1/properties/subsidenceWork",
276
- "/properties/propertyPack/properties/guaranteesWarrantiesAndIndemnityInsurances/oneOf/1/properties/otherGuarantees",
267
+ "/properties/propertyPack/properties/guaranteesWarrantiesAndIndemnityInsurances",
277
268
  ],
278
269
  },
279
270