epb_view_models 2.6.1 → 2.7.1
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.
- checksums.yaml +4 -4
- data/api/schemas/data/orchestrate.json +4 -0
- data/api/schemas/xml/SAP-Schema-S-16.1/SAP/ExternalDefinitions.txt +236 -0
- data/api/schemas/xml/SAP-Schema-S-16.1/SAP/ExternalDefinitions.xml +1456 -0
- data/api/schemas/xml/SAP-Schema-S-16.1/SAP/Templates/EPC-Certificate.xsd +433 -0
- data/api/schemas/xml/SAP-Schema-S-16.1/SAP/Templates/Property.xsd +69 -0
- data/api/schemas/xml/SAP-Schema-S-16.1/SAP/Templates/SAP09-CollectedData.xsd +1326 -0
- data/api/schemas/xml/SAP-Schema-S-16.1/SAP/Templates/SAP09-Report.xsd +196 -0
- data/api/schemas/xml/SAP-Schema-S-16.1/SAP/Templates/UserManagement.xsd +217 -0
- data/api/schemas/xml/SAP-Schema-S-16.1/SAP/UDT/BaseDataTypes.xsd +175 -0
- data/api/schemas/xml/SAP-Schema-S-16.1/SAP/UDT/EPC-Domains.xsd +813 -0
- data/api/schemas/xml/SAP-Schema-S-16.1/SAP/UDT/SAP09-Domains.xsd +3457 -0
- data/api/schemas/xml/SAP-Schema-S-16.1/SAP/UDT/SharedDomains.xsd +317 -0
- data/lib/epb_view_models/version.rb +1 -1
- data/lib/view_model/factory.rb +1 -0
- data/lib/view_model/rd_sap_schema_s_161/common_schema.rb +9 -9
- data/lib/view_model/sap_schema_s_161/common_schema.rb +503 -0
- data/lib/view_model/sap_wrapper.rb +2 -0
- metadata +13 -1
|
@@ -0,0 +1,317 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!-- edited with XMLSpy v2007 rel. 3 U (http://www.altova.com) by Graeme McLean (Bridgeall Ltd.) -->
|
|
3
|
+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.est.org.uk/epc/estcrV1/DCLG-SAP09" xmlns:SAP="http://www.est.org.uk/epc/estcrV1/DCLG-SAP09" targetNamespace="http://www.est.org.uk/epc/estcrV1/DCLG-SAP09" elementFormDefault="qualified" attributeFormDefault="unqualified" version="LIG-16.1">
|
|
4
|
+
<xs:annotation>
|
|
5
|
+
<xs:documentation>Enumerated Domains (EnumeratedDomains.xsd) are explicit lists of pre-defined values that may be assigned to a data-item and any value assigned to an instance of that data-item must be a member of that defined list.
|
|
6
|
+
|
|
7
|
+
For example a Boolean could be considered an enumerated Domain, with "True" or "False" as the only allowed values, as are {Days of Week} and {Country Codes}. In fact Enumerated Domain is actually a bit of a misnomer because it covers all pre-defined lists of allowed values, classification schemes and taxonomies not just "numbered values".
|
|
8
|
+
</xs:documentation>
|
|
9
|
+
</xs:annotation>
|
|
10
|
+
<xs:simpleType name="ReportStatusCode">
|
|
11
|
+
<xs:restriction base="xs:string">
|
|
12
|
+
<xs:enumeration value="cancelled">
|
|
13
|
+
<xs:annotation>
|
|
14
|
+
<xs:documentation>Cancelled</xs:documentation>
|
|
15
|
+
</xs:annotation>
|
|
16
|
+
</xs:enumeration>
|
|
17
|
+
<xs:enumeration value="entered">
|
|
18
|
+
<xs:annotation>
|
|
19
|
+
<xs:documentation>entered on the register</xs:documentation>
|
|
20
|
+
</xs:annotation>
|
|
21
|
+
</xs:enumeration>
|
|
22
|
+
<xs:enumeration value="appeal">
|
|
23
|
+
<xs:annotation>
|
|
24
|
+
<xs:documentation>under appeal</xs:documentation>
|
|
25
|
+
</xs:annotation>
|
|
26
|
+
</xs:enumeration>
|
|
27
|
+
<xs:enumeration value="removed">
|
|
28
|
+
<xs:annotation>
|
|
29
|
+
<xs:documentation>removed</xs:documentation>
|
|
30
|
+
</xs:annotation>
|
|
31
|
+
</xs:enumeration>
|
|
32
|
+
<xs:enumeration value="rejected">
|
|
33
|
+
<xs:annotation>
|
|
34
|
+
<xs:documentation>rejected</xs:documentation>
|
|
35
|
+
</xs:annotation>
|
|
36
|
+
</xs:enumeration>
|
|
37
|
+
</xs:restriction>
|
|
38
|
+
</xs:simpleType>
|
|
39
|
+
<xs:simpleType name="RestrictedAccessCode">
|
|
40
|
+
<xs:annotation>
|
|
41
|
+
<xs:documentation>Set of access codes identifying any restrictions on the retrieval of the electronic HCR.</xs:documentation>
|
|
42
|
+
</xs:annotation>
|
|
43
|
+
<xs:restriction base="xs:string">
|
|
44
|
+
<xs:enumeration value="0">
|
|
45
|
+
<xs:annotation>
|
|
46
|
+
<xs:documentation>No restriction</xs:documentation>
|
|
47
|
+
</xs:annotation>
|
|
48
|
+
</xs:enumeration>
|
|
49
|
+
<xs:enumeration value="1">
|
|
50
|
+
<xs:annotation>
|
|
51
|
+
<xs:documentation>Exclude mortgage lenders</xs:documentation>
|
|
52
|
+
</xs:annotation>
|
|
53
|
+
</xs:enumeration>
|
|
54
|
+
<xs:enumeration value="2">
|
|
55
|
+
<xs:annotation>
|
|
56
|
+
<xs:documentation>Mortgage lenders only</xs:documentation>
|
|
57
|
+
</xs:annotation>
|
|
58
|
+
</xs:enumeration>
|
|
59
|
+
<xs:enumeration value="4">
|
|
60
|
+
<xs:annotation>
|
|
61
|
+
<xs:documentation>No access allowed</xs:documentation>
|
|
62
|
+
</xs:annotation>
|
|
63
|
+
</xs:enumeration>
|
|
64
|
+
</xs:restriction>
|
|
65
|
+
</xs:simpleType>
|
|
66
|
+
<xs:simpleType name="ReportTypeCode">
|
|
67
|
+
<xs:restriction base="xs:string">
|
|
68
|
+
<xs:enumeration value="1">
|
|
69
|
+
<xs:annotation>
|
|
70
|
+
<xs:documentation>Home Condition Report</xs:documentation>
|
|
71
|
+
</xs:annotation>
|
|
72
|
+
</xs:enumeration>
|
|
73
|
+
<xs:enumeration value="2">
|
|
74
|
+
<xs:annotation>
|
|
75
|
+
<xs:documentation>RdSAP Energy Performance Certificate</xs:documentation>
|
|
76
|
+
</xs:annotation>
|
|
77
|
+
</xs:enumeration>
|
|
78
|
+
<xs:enumeration value="3">
|
|
79
|
+
<xs:annotation>
|
|
80
|
+
<xs:documentation>SAP Energy Performance Certificate</xs:documentation>
|
|
81
|
+
</xs:annotation>
|
|
82
|
+
</xs:enumeration>
|
|
83
|
+
<xs:enumeration value="4">
|
|
84
|
+
<xs:annotation>
|
|
85
|
+
<xs:documentation>Interim RdSAP Energy Performance Certificate (to be superseded by SAP EPC)</xs:documentation>
|
|
86
|
+
</xs:annotation>
|
|
87
|
+
</xs:enumeration>
|
|
88
|
+
</xs:restriction>
|
|
89
|
+
</xs:simpleType>
|
|
90
|
+
<xs:simpleType name="BlockStoreyCode">
|
|
91
|
+
<xs:restriction base="xs:string">
|
|
92
|
+
<xs:enumeration value="-1">
|
|
93
|
+
<xs:annotation>
|
|
94
|
+
<xs:documentation>Basement</xs:documentation>
|
|
95
|
+
</xs:annotation>
|
|
96
|
+
</xs:enumeration>
|
|
97
|
+
<xs:enumeration value="00">
|
|
98
|
+
<xs:annotation>
|
|
99
|
+
<xs:documentation>Ground</xs:documentation>
|
|
100
|
+
</xs:annotation>
|
|
101
|
+
</xs:enumeration>
|
|
102
|
+
<xs:enumeration value="01">
|
|
103
|
+
<xs:annotation>
|
|
104
|
+
<xs:documentation>1st</xs:documentation>
|
|
105
|
+
</xs:annotation>
|
|
106
|
+
</xs:enumeration>
|
|
107
|
+
<xs:enumeration value="02">
|
|
108
|
+
<xs:annotation>
|
|
109
|
+
<xs:documentation>2nd</xs:documentation>
|
|
110
|
+
</xs:annotation>
|
|
111
|
+
</xs:enumeration>
|
|
112
|
+
<xs:enumeration value="03">
|
|
113
|
+
<xs:annotation>
|
|
114
|
+
<xs:documentation>3rd</xs:documentation>
|
|
115
|
+
</xs:annotation>
|
|
116
|
+
</xs:enumeration>
|
|
117
|
+
<xs:enumeration value="04">
|
|
118
|
+
<xs:annotation>
|
|
119
|
+
<xs:documentation>4th</xs:documentation>
|
|
120
|
+
</xs:annotation>
|
|
121
|
+
</xs:enumeration>
|
|
122
|
+
<xs:enumeration value="05">
|
|
123
|
+
<xs:annotation>
|
|
124
|
+
<xs:documentation>5th</xs:documentation>
|
|
125
|
+
</xs:annotation>
|
|
126
|
+
</xs:enumeration>
|
|
127
|
+
<xs:enumeration value="06">
|
|
128
|
+
<xs:annotation>
|
|
129
|
+
<xs:documentation>6th</xs:documentation>
|
|
130
|
+
</xs:annotation>
|
|
131
|
+
</xs:enumeration>
|
|
132
|
+
<xs:enumeration value="07">
|
|
133
|
+
<xs:annotation>
|
|
134
|
+
<xs:documentation>7th</xs:documentation>
|
|
135
|
+
</xs:annotation>
|
|
136
|
+
</xs:enumeration>
|
|
137
|
+
<xs:enumeration value="08">
|
|
138
|
+
<xs:annotation>
|
|
139
|
+
<xs:documentation>8th</xs:documentation>
|
|
140
|
+
</xs:annotation>
|
|
141
|
+
</xs:enumeration>
|
|
142
|
+
<xs:enumeration value="09">
|
|
143
|
+
<xs:annotation>
|
|
144
|
+
<xs:documentation>9th</xs:documentation>
|
|
145
|
+
</xs:annotation>
|
|
146
|
+
</xs:enumeration>
|
|
147
|
+
<xs:enumeration value="10">
|
|
148
|
+
<xs:annotation>
|
|
149
|
+
<xs:documentation>10th</xs:documentation>
|
|
150
|
+
</xs:annotation>
|
|
151
|
+
</xs:enumeration>
|
|
152
|
+
<xs:enumeration value="11">
|
|
153
|
+
<xs:annotation>
|
|
154
|
+
<xs:documentation>11th</xs:documentation>
|
|
155
|
+
</xs:annotation>
|
|
156
|
+
</xs:enumeration>
|
|
157
|
+
<xs:enumeration value="12">
|
|
158
|
+
<xs:annotation>
|
|
159
|
+
<xs:documentation>12th</xs:documentation>
|
|
160
|
+
</xs:annotation>
|
|
161
|
+
</xs:enumeration>
|
|
162
|
+
<xs:enumeration value="13">
|
|
163
|
+
<xs:annotation>
|
|
164
|
+
<xs:documentation>13th</xs:documentation>
|
|
165
|
+
</xs:annotation>
|
|
166
|
+
</xs:enumeration>
|
|
167
|
+
<xs:enumeration value="14">
|
|
168
|
+
<xs:annotation>
|
|
169
|
+
<xs:documentation>14th</xs:documentation>
|
|
170
|
+
</xs:annotation>
|
|
171
|
+
</xs:enumeration>
|
|
172
|
+
<xs:enumeration value="15">
|
|
173
|
+
<xs:annotation>
|
|
174
|
+
<xs:documentation>15th</xs:documentation>
|
|
175
|
+
</xs:annotation>
|
|
176
|
+
</xs:enumeration>
|
|
177
|
+
<xs:enumeration value="16">
|
|
178
|
+
<xs:annotation>
|
|
179
|
+
<xs:documentation>16th</xs:documentation>
|
|
180
|
+
</xs:annotation>
|
|
181
|
+
</xs:enumeration>
|
|
182
|
+
<xs:enumeration value="17">
|
|
183
|
+
<xs:annotation>
|
|
184
|
+
<xs:documentation>17th</xs:documentation>
|
|
185
|
+
</xs:annotation>
|
|
186
|
+
</xs:enumeration>
|
|
187
|
+
<xs:enumeration value="18">
|
|
188
|
+
<xs:annotation>
|
|
189
|
+
<xs:documentation>18th</xs:documentation>
|
|
190
|
+
</xs:annotation>
|
|
191
|
+
</xs:enumeration>
|
|
192
|
+
<xs:enumeration value="19">
|
|
193
|
+
<xs:annotation>
|
|
194
|
+
<xs:documentation>19th</xs:documentation>
|
|
195
|
+
</xs:annotation>
|
|
196
|
+
</xs:enumeration>
|
|
197
|
+
<xs:enumeration value="20">
|
|
198
|
+
<xs:annotation>
|
|
199
|
+
<xs:documentation>20th</xs:documentation>
|
|
200
|
+
</xs:annotation>
|
|
201
|
+
</xs:enumeration>
|
|
202
|
+
<xs:enumeration value="20+">
|
|
203
|
+
<xs:annotation>
|
|
204
|
+
<xs:documentation>21st or above</xs:documentation>
|
|
205
|
+
</xs:annotation>
|
|
206
|
+
</xs:enumeration>
|
|
207
|
+
</xs:restriction>
|
|
208
|
+
</xs:simpleType>
|
|
209
|
+
<xs:simpleType name="PropertyTypeCode">
|
|
210
|
+
<xs:annotation>
|
|
211
|
+
<xs:documentation>Code which indicates the type of property.</xs:documentation>
|
|
212
|
+
</xs:annotation>
|
|
213
|
+
<xs:restriction base="xs:string">
|
|
214
|
+
<xs:enumeration value="0">
|
|
215
|
+
<xs:annotation>
|
|
216
|
+
<xs:documentation>House</xs:documentation>
|
|
217
|
+
</xs:annotation>
|
|
218
|
+
</xs:enumeration>
|
|
219
|
+
<xs:enumeration value="1">
|
|
220
|
+
<xs:annotation>
|
|
221
|
+
<xs:documentation>Bungalow</xs:documentation>
|
|
222
|
+
</xs:annotation>
|
|
223
|
+
</xs:enumeration>
|
|
224
|
+
<xs:enumeration value="2">
|
|
225
|
+
<xs:annotation>
|
|
226
|
+
<xs:documentation>Flat</xs:documentation>
|
|
227
|
+
</xs:annotation>
|
|
228
|
+
</xs:enumeration>
|
|
229
|
+
<xs:enumeration value="3">
|
|
230
|
+
<xs:annotation>
|
|
231
|
+
<xs:documentation>Maisonette</xs:documentation>
|
|
232
|
+
</xs:annotation>
|
|
233
|
+
</xs:enumeration>
|
|
234
|
+
</xs:restriction>
|
|
235
|
+
</xs:simpleType>
|
|
236
|
+
<xs:simpleType name="TransactionType">
|
|
237
|
+
<xs:restriction base="xs:string">
|
|
238
|
+
<xs:enumeration value="1">
|
|
239
|
+
<xs:annotation>
|
|
240
|
+
<xs:documentation>marketed sale</xs:documentation>
|
|
241
|
+
</xs:annotation>
|
|
242
|
+
</xs:enumeration>
|
|
243
|
+
<xs:enumeration value="2">
|
|
244
|
+
<xs:annotation>
|
|
245
|
+
<xs:documentation>non marketed sale</xs:documentation>
|
|
246
|
+
</xs:annotation>
|
|
247
|
+
</xs:enumeration>
|
|
248
|
+
<xs:enumeration value="3">
|
|
249
|
+
<xs:annotation>
|
|
250
|
+
<xs:documentation>rental (social)</xs:documentation>
|
|
251
|
+
</xs:annotation>
|
|
252
|
+
</xs:enumeration>
|
|
253
|
+
<xs:enumeration value="4">
|
|
254
|
+
<xs:annotation>
|
|
255
|
+
<xs:documentation>rental (private)</xs:documentation>
|
|
256
|
+
</xs:annotation>
|
|
257
|
+
</xs:enumeration>
|
|
258
|
+
<xs:enumeration value="5">
|
|
259
|
+
<xs:annotation>
|
|
260
|
+
<xs:documentation>not sale or rental</xs:documentation>
|
|
261
|
+
</xs:annotation>
|
|
262
|
+
</xs:enumeration>
|
|
263
|
+
<xs:enumeration value="6">
|
|
264
|
+
<xs:annotation>
|
|
265
|
+
<xs:documentation>new dwelling</xs:documentation>
|
|
266
|
+
</xs:annotation>
|
|
267
|
+
</xs:enumeration>
|
|
268
|
+
<xs:enumeration value="7">
|
|
269
|
+
<xs:annotation>
|
|
270
|
+
<xs:documentation>not recorded - this is for backwards compatibility only and should not be used</xs:documentation>
|
|
271
|
+
</xs:annotation>
|
|
272
|
+
</xs:enumeration>
|
|
273
|
+
</xs:restriction>
|
|
274
|
+
</xs:simpleType>
|
|
275
|
+
<xs:simpleType name="DisclosureCode">
|
|
276
|
+
<xs:annotation>
|
|
277
|
+
<xs:documentation>Code indicating any potential conflicts of interest or commercial relationships with other parties.</xs:documentation>
|
|
278
|
+
</xs:annotation>
|
|
279
|
+
<xs:restriction base="xs:string">
|
|
280
|
+
<xs:enumeration value="1">
|
|
281
|
+
<xs:annotation>
|
|
282
|
+
<xs:documentation>No related party</xs:documentation>
|
|
283
|
+
</xs:annotation>
|
|
284
|
+
</xs:enumeration>
|
|
285
|
+
<xs:enumeration value="2">
|
|
286
|
+
<xs:annotation>
|
|
287
|
+
<xs:documentation>Relative of homeowner or occupier of the property</xs:documentation>
|
|
288
|
+
</xs:annotation>
|
|
289
|
+
</xs:enumeration>
|
|
290
|
+
<xs:enumeration value="3">
|
|
291
|
+
<xs:annotation>
|
|
292
|
+
<xs:documentation>Residing at the property</xs:documentation>
|
|
293
|
+
</xs:annotation>
|
|
294
|
+
</xs:enumeration>
|
|
295
|
+
<xs:enumeration value="4">
|
|
296
|
+
<xs:annotation>
|
|
297
|
+
<xs:documentation>Financial interest in the property</xs:documentation>
|
|
298
|
+
</xs:annotation>
|
|
299
|
+
</xs:enumeration>
|
|
300
|
+
<xs:enumeration value="5">
|
|
301
|
+
<xs:annotation>
|
|
302
|
+
<xs:documentation>Owner or Director of the organisation dealing with the property transaction</xs:documentation>
|
|
303
|
+
</xs:annotation>
|
|
304
|
+
</xs:enumeration>
|
|
305
|
+
<xs:enumeration value="6">
|
|
306
|
+
<xs:annotation>
|
|
307
|
+
<xs:documentation>Employed by the professional dealing with the property transaction</xs:documentation>
|
|
308
|
+
</xs:annotation>
|
|
309
|
+
</xs:enumeration>
|
|
310
|
+
<xs:enumeration value="7">
|
|
311
|
+
<xs:annotation>
|
|
312
|
+
<xs:documentation>Relative of the professional dealing with the property transaction</xs:documentation>
|
|
313
|
+
</xs:annotation>
|
|
314
|
+
</xs:enumeration>
|
|
315
|
+
</xs:restriction>
|
|
316
|
+
</xs:simpleType>
|
|
317
|
+
</xs:schema>
|
data/lib/view_model/factory.rb
CHANGED
|
@@ -82,6 +82,7 @@ module ViewModel
|
|
|
82
82
|
SAP-Schema-NI-11.2
|
|
83
83
|
SAP-Schema-S-19.0.0
|
|
84
84
|
SAP-Schema-S-17.0
|
|
85
|
+
SAP-Schema-S-16.1
|
|
85
86
|
].freeze
|
|
86
87
|
def create(xml, schema_type, filter_results_for = nil, additional_data = {})
|
|
87
88
|
# Hack to use symbols, we need to update all callers to use symbols instead
|
|
@@ -18,7 +18,7 @@ module ViewModel
|
|
|
18
18
|
end
|
|
19
19
|
|
|
20
20
|
def address_line4
|
|
21
|
-
|
|
21
|
+
nil
|
|
22
22
|
end
|
|
23
23
|
|
|
24
24
|
def town
|
|
@@ -328,7 +328,7 @@ module ViewModel
|
|
|
328
328
|
end
|
|
329
329
|
|
|
330
330
|
def storey_count
|
|
331
|
-
|
|
331
|
+
nil
|
|
332
332
|
end
|
|
333
333
|
|
|
334
334
|
def main_heating_controls
|
|
@@ -336,15 +336,15 @@ module ViewModel
|
|
|
336
336
|
end
|
|
337
337
|
|
|
338
338
|
def multiple_glazed_proportion
|
|
339
|
-
|
|
339
|
+
nil
|
|
340
340
|
end
|
|
341
341
|
|
|
342
342
|
def glazed_area
|
|
343
|
-
|
|
343
|
+
nil
|
|
344
344
|
end
|
|
345
345
|
|
|
346
346
|
def heated_room_count
|
|
347
|
-
|
|
347
|
+
nil
|
|
348
348
|
end
|
|
349
349
|
|
|
350
350
|
def low_energy_lighting
|
|
@@ -380,11 +380,11 @@ module ViewModel
|
|
|
380
380
|
end
|
|
381
381
|
|
|
382
382
|
def heat_loss_corridor
|
|
383
|
-
|
|
383
|
+
nil
|
|
384
384
|
end
|
|
385
385
|
|
|
386
386
|
def unheated_corridor_length
|
|
387
|
-
|
|
387
|
+
nil
|
|
388
388
|
end
|
|
389
389
|
|
|
390
390
|
def window_description
|
|
@@ -424,7 +424,7 @@ module ViewModel
|
|
|
424
424
|
end
|
|
425
425
|
|
|
426
426
|
def photovoltaic_roof_area_percent
|
|
427
|
-
|
|
427
|
+
nil
|
|
428
428
|
end
|
|
429
429
|
|
|
430
430
|
def built_form
|
|
@@ -432,7 +432,7 @@ module ViewModel
|
|
|
432
432
|
end
|
|
433
433
|
|
|
434
434
|
def extensions_count
|
|
435
|
-
|
|
435
|
+
nil
|
|
436
436
|
end
|
|
437
437
|
|
|
438
438
|
def report_type
|