epb_view_models 2.2.18 → 2.2.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.
- checksums.yaml +4 -4
- data/api/schemas/data/orchestrate.json +4 -0
- data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/ExternalDefinitions.xml +1456 -0
- data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/ExternalDefinitions.xsd +236 -0
- data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/All-HIP.xsd +25 -0
- data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/AssessorManagement.xsd +16 -0
- data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/EPC-Certificate.xsd +388 -0
- data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/EPC-CollectedData.xsd +784 -0
- data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/HCR-FeaturesExternal.xsd +283 -0
- data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/HCR-FeaturesGrounds.xsd +222 -0
- data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/HCR-FeaturesInternal.xsd +205 -0
- data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/HCR-FeaturesServices.xsd +311 -0
- data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/HCR-PropertyDetails.xsd +380 -0
- data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/HCR-RiskAssessment.xsd +298 -0
- data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/Property.xsd +67 -0
- data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/SAP-Reports.xsd +201 -0
- data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/UserManagement.xsd +259 -0
- data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/UDT/BaseDataTypes.xsd +176 -0
- data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/UDT/EPC-Domains.xsd +881 -0
- data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/UDT/HCR-Domains.xsd +1779 -0
- data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/UDT/SAP-Domains.xsd +1650 -0
- data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/UDT/SharedDomains.xsd +768 -0
- data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/UDT/TypeDefinitions.xsd +19 -0
- data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/Templates/RdSAP-Report.xsd +6 -1
- data/lib/epb_view_models.rb +1 -1
- data/lib/presenter/xsd.rb +1 -8
- data/lib/view_model/factory.rb +1 -0
- data/lib/view_model/rd_sap_schema_s_161/common_schema.rb +556 -0
- data/lib/view_model/rd_sap_schema_s_1700/common_schema.rb +15 -0
- data/lib/view_model/rd_sap_schema_s_180/common_schema.rb +15 -0
- data/lib/view_model/rd_sap_schema_s_190/common_schema.rb +15 -0
- data/lib/view_model/rd_sap_schema_s_210/common_schema.rb +15 -0
- data/lib/view_model/rd_sap_wrapper.rb +2 -0
- metadata +23 -1
|
@@ -665,6 +665,21 @@ module ViewModel
|
|
|
665
665
|
water_heating_code: xpath(%w[Water-Heating-Code]),
|
|
666
666
|
}
|
|
667
667
|
end
|
|
668
|
+
|
|
669
|
+
def lzc_energy_sources
|
|
670
|
+
return nil if xpath(%w[LZC-Energy-Sources]).nil?
|
|
671
|
+
|
|
672
|
+
@xml_doc
|
|
673
|
+
.search("LZC-Energy-Sources/LZC-Energy-Source")
|
|
674
|
+
.select(&:element?)
|
|
675
|
+
.map { |n| n.text.to_i }
|
|
676
|
+
end
|
|
677
|
+
|
|
678
|
+
def addendum
|
|
679
|
+
return nil if xpath(%w[Addendum]).nil?
|
|
680
|
+
|
|
681
|
+
fetch_addendum_numbers.merge(fetch_addendum_boolean_nodes)
|
|
682
|
+
end
|
|
668
683
|
end
|
|
669
684
|
end
|
|
670
685
|
end
|
|
@@ -91,6 +91,8 @@ module ViewModel
|
|
|
91
91
|
ViewModel::RdSapSchemaS180::CommonSchema.new xml_doc
|
|
92
92
|
when :"RdSAP-Schema-S-17.00"
|
|
93
93
|
ViewModel::RdSapSchemaS1700::CommonSchema.new xml_doc
|
|
94
|
+
when :"RdSAP-Schema-S-16.1"
|
|
95
|
+
ViewModel::RdSapSchemaS161::CommonSchema.new xml_doc
|
|
94
96
|
else
|
|
95
97
|
raise ArgumentError, "Unsupported schema type"
|
|
96
98
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: epb_view_models
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.2.
|
|
4
|
+
version: 2.2.19
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- MHCLG Energy Performance of Buildings
|
|
@@ -328,6 +328,27 @@ files:
|
|
|
328
328
|
- api/schemas/xml/RdSAP-Schema-NI-21.0.1/RdSAP/Templates/RdSAP-Report.xsd
|
|
329
329
|
- api/schemas/xml/RdSAP-Schema-NI-21.0.1/RdSAP/UDT/EPC-Domains.xsd
|
|
330
330
|
- api/schemas/xml/RdSAP-Schema-NI-21.0.1/RdSAP/UDT/SAP-Domains.xsd
|
|
331
|
+
- api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/ExternalDefinitions.xml
|
|
332
|
+
- api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/ExternalDefinitions.xsd
|
|
333
|
+
- api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/All-HIP.xsd
|
|
334
|
+
- api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/AssessorManagement.xsd
|
|
335
|
+
- api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/EPC-Certificate.xsd
|
|
336
|
+
- api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/EPC-CollectedData.xsd
|
|
337
|
+
- api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/HCR-FeaturesExternal.xsd
|
|
338
|
+
- api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/HCR-FeaturesGrounds.xsd
|
|
339
|
+
- api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/HCR-FeaturesInternal.xsd
|
|
340
|
+
- api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/HCR-FeaturesServices.xsd
|
|
341
|
+
- api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/HCR-PropertyDetails.xsd
|
|
342
|
+
- api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/HCR-RiskAssessment.xsd
|
|
343
|
+
- api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/Property.xsd
|
|
344
|
+
- api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/SAP-Reports.xsd
|
|
345
|
+
- api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/UserManagement.xsd
|
|
346
|
+
- api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/UDT/BaseDataTypes.xsd
|
|
347
|
+
- api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/UDT/EPC-Domains.xsd
|
|
348
|
+
- api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/UDT/HCR-Domains.xsd
|
|
349
|
+
- api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/UDT/SAP-Domains.xsd
|
|
350
|
+
- api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/UDT/SharedDomains.xsd
|
|
351
|
+
- api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/UDT/TypeDefinitions.xsd
|
|
331
352
|
- api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/ExternalDefinitions.xml
|
|
332
353
|
- api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/ExternalDefinitions.xsd
|
|
333
354
|
- api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/Templates/AssessorManagement.xsd
|
|
@@ -1747,6 +1768,7 @@ files:
|
|
|
1747
1768
|
- lib/view_model/rd_sap_schema_ni_200/common_schema.rb
|
|
1748
1769
|
- lib/view_model/rd_sap_schema_ni_210/common_schema.rb
|
|
1749
1770
|
- lib/view_model/rd_sap_schema_ni_2101/common_schema.rb
|
|
1771
|
+
- lib/view_model/rd_sap_schema_s_161/common_schema.rb
|
|
1750
1772
|
- lib/view_model/rd_sap_schema_s_1700/common_schema.rb
|
|
1751
1773
|
- lib/view_model/rd_sap_schema_s_180/common_schema.rb
|
|
1752
1774
|
- lib/view_model/rd_sap_schema_s_190/common_schema.rb
|