epb_view_models 2.2.20 → 2.3.0
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/.ruby-version +1 -1
- data/Gemfile +1 -1
- data/Gemfile.lock +21 -21
- data/api/schemas/data/orchestrate.json +4 -0
- data/api/schemas/xml/CEPC-S-7.0/Reports/BaseDataTypes.xsd +296 -296
- data/api/schemas/xml/CEPC-S-7.0/Reports/CEPC-Reports.xsd +63 -63
- data/api/schemas/xml/CEPC-S-7.0/Reports/Input-Data.xsd +34 -34
- data/api/schemas/xml/CEPC-S-7.0/Reports/Performance-Summary.xsd +120 -120
- data/api/schemas/xml/CEPC-S-7.0/Reports/Property.xsd +67 -67
- data/api/schemas/xml/CEPC-S-7.0/Reports/Report-Header.xsd +178 -178
- data/api/schemas/xml/CEPC-S-7.0/Reports/Reported-Data.xsd +391 -391
- data/api/schemas/xml/CEPC-S-7.0/Reports/UserManagement.xsd +171 -171
- data/api/schemas/xml/CEPC-S-7.1/Reports/BaseDataTypes.xsd +300 -300
- data/api/schemas/xml/CEPC-S-7.1/Reports/CEPC-Reports.xsd +66 -66
- data/api/schemas/xml/CEPC-S-7.1/Reports/Input-Data.xsd +34 -34
- data/api/schemas/xml/CEPC-S-7.1/Reports/Performance-Summary.xsd +125 -125
- data/api/schemas/xml/CEPC-S-7.1/Reports/Performance-Summary.xsd.bak +123 -123
- data/api/schemas/xml/CEPC-S-7.1/Reports/Property.xsd +67 -67
- data/api/schemas/xml/CEPC-S-7.1/Reports/Report-Header.xsd +178 -178
- data/api/schemas/xml/CEPC-S-7.1/Reports/Reported-Data.xsd +406 -406
- data/api/schemas/xml/CEPC-S-7.1/Reports/UserManagement.xsd +174 -174
- data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/CommonFiles/CommonStructures.xsd +160 -0
- data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/CommonFiles/Exceptions.xsd +72 -0
- data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/ExternalDefinitions.xsd +147 -0
- data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/ConditionReportChangeAccessRequest_1.xsd +44 -0
- data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/ConditionReportChangeAccessResponse_1.xsd +47 -0
- data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/ConditionReportChangeStatusRequest_1.xsd +44 -0
- data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/ConditionReportChangeStatusResponse_1.xsd +47 -0
- data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/ConditionReportCreateRequest_1.xsd +41 -0
- data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/ConditionReportCreateResponse_1.xsd +52 -0
- data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/ConditionReportRetrieveRequest_1.xsd +52 -0
- data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/ConditionReportRetrieveResponse_1.xsd +87 -0
- data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/HomeInspectorRegisterUpdateRequest_1.xsd +44 -0
- data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/HomeInspectorRegisterUpdateResponse_1.xsd +28 -0
- data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/HomeInspectorRegisterUpdateStatusRequest_1.xsd +30 -0
- data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/HomeInspectorRegisterUpdateStatusResponse_1.xsd +52 -0
- data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/PropertyUPRNValidationRequest_1.xsd +44 -0
- data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/PropertyUPRNValidationResponse_1.xsd +46 -0
- data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/SAP-EPC/Templates/EPC-Certificate.xsd +270 -0
- data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/SAP-EPC/Templates/Property.xsd +68 -0
- data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/SAP-EPC/Templates/SAP05-CollectedData.xsd +1188 -0
- data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/SAP-EPC/Templates/SAP05-Report.xsd +195 -0
- data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/SAP-EPC/Templates/UserManagement.xsd +215 -0
- data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/SAP-EPC/UDT/BaseDataTypes.xsd +175 -0
- data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/SAP-EPC/UDT/EPC-Domains.xsd +703 -0
- data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/SAP-EPC/UDT/SAP05-Domains.xsd +3007 -0
- data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/SAP-EPC/UDT/SharedDomains.xsd +311 -0
- data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/EPC-Certificate.xsd +252 -0
- data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/EPC-CollectedData.xsd +444 -0
- data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/HCR-FeaturesExternal.xsd +283 -0
- data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/HCR-FeaturesGrounds.xsd +222 -0
- data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/HCR-FeaturesInternal.xsd +205 -0
- data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/HCR-FeaturesServices.xsd +311 -0
- data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/HCR-PropertyDetails.xsd +380 -0
- data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/HCR-RiskAssessment.xsd +297 -0
- data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/HIP-Reports.xsd +220 -0
- data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/Property.xsd +73 -0
- data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/UserManagement.xsd +257 -0
- data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/UDT/BaseDataTypes.xsd +176 -0
- data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/UDT/EPC-Domains.xsd +743 -0
- data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/UDT/HCR-Domains.xsd +1773 -0
- data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/UDT/SAP-Domains.xsd +1134 -0
- data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/UDT/SharedDomains.xsd +660 -0
- data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/UDT/TypeDefinitions.xsd +19 -0
- data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/ExternalDefinitions.xml +1456 -1456
- data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/ExternalDefinitions.xsd +236 -236
- data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/AssessorManagement.xsd +16 -16
- data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/EPC-Certificate.xsd +388 -388
- data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/EPC-CollectedData.xsd +784 -784
- data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/HCR-FeaturesExternal.xsd +283 -283
- data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/HCR-FeaturesGrounds.xsd +222 -222
- data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/HCR-FeaturesInternal.xsd +205 -205
- data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/HCR-FeaturesServices.xsd +311 -311
- data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/HCR-PropertyDetails.xsd +380 -380
- data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/HCR-RiskAssessment.xsd +298 -298
- data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/Property.xsd +67 -67
- data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/SAP-Reports.xsd +201 -201
- data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/UserManagement.xsd +259 -259
- data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/UDT/BaseDataTypes.xsd +176 -176
- data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/UDT/EPC-Domains.xsd +881 -881
- data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/UDT/HCR-Domains.xsd +1779 -1779
- data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/UDT/SAP-Domains.xsd +1650 -1650
- data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/UDT/SharedDomains.xsd +768 -768
- data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/UDT/TypeDefinitions.xsd +19 -19
- data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/ExternalDefinitions.xml +1456 -1456
- data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/ExternalDefinitions.xsd +236 -236
- data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/Templates/AssessorManagement.xsd +208 -208
- data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/Templates/EPC-Certificate.xsd +400 -400
- data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/Templates/EPC-CollectedData.xsd +957 -957
- data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/Templates/ExceptionList.xsd +18 -18
- data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/Templates/Property.xsd +66 -66
- data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/Templates/RdSAP-Report.xsd +180 -180
- data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/Templates/ReportList.xsd +26 -26
- data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/UDT/EPC-Domains.xsd +843 -843
- data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/UDT/SAP-Domains.xsd +2541 -2541
- data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/ExternalDefinitions.xml +1456 -1456
- data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/ExternalDefinitions.xsd +236 -236
- data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/Templates/AssessorManagement.xsd +213 -213
- data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/Templates/EPC-Certificate.xsd +400 -400
- data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/Templates/EPC-CollectedData.xsd +966 -966
- data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/Templates/ExceptionList.xsd +18 -18
- data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/Templates/Property.xsd +66 -66
- data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/Templates/RdSAP-Report.xsd +175 -175
- data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/Templates/ReportList.xsd +26 -26
- data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/UDT/EPC-Domains.xsd +853 -853
- data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/UDT/SAP-Domains.xsd +2551 -2551
- data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/ExternalDefinitions.xsd +261 -261
- data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/Templates/AssessorManagement.xsd +213 -213
- data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/Templates/EPC-Certificate.xsd +400 -400
- data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/Templates/EPC-CollectedData.xsd +1051 -1051
- data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/Templates/Property.xsd +66 -66
- data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/Templates/RdSAP-Report.xsd +176 -176
- data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/Templates/ReportList.xsd +26 -26
- data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/UDT/EPC-Domains.xsd +858 -858
- data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/UDT/SAP-Domains.xsd +2684 -2684
- data/api/schemas/xml/RdSAP-Schema-S-21.0/RdSAP/Templates/RdSAP-Report.cs +11846 -11846
- data/epb_view_models.gemspec +3 -2
- data/lib/epb_view_models.rb +1 -1
- data/lib/view_model/cepc_s_70/cepc.rb +5 -5
- data/lib/view_model/cepc_s_71/cepc.rb +5 -5
- data/lib/view_model/cs63/common_schema.rb +1 -1
- data/lib/view_model/factory.rb +1 -0
- data/lib/view_model/rd_sap_schema_ni_173/common_schema.rb +8 -8
- data/lib/view_model/rd_sap_schema_ni_174/common_schema.rb +8 -8
- data/lib/view_model/rd_sap_schema_ni_180/common_schema.rb +8 -8
- data/lib/view_model/rd_sap_schema_ni_190/common_schema.rb +8 -8
- data/lib/view_model/rd_sap_schema_ni_200/common_schema.rb +8 -8
- data/lib/view_model/rd_sap_schema_s_140/common_schema.rb +550 -0
- data/lib/view_model/rd_sap_schema_s_190/common_schema.rb +41 -41
- data/lib/view_model/rd_sap_schema_s_210/common_schema.rb +35 -35
- data/lib/view_model/rd_sap_wrapper.rb +2 -0
- data/lib/view_model/sap_schema_1900/common_schema.rb +6 -6
- data/lib/view_model/sap_schema_1910/common_schema.rb +6 -6
- data/lib/view_model/sap_schema_1920/common_schema.rb +6 -6
- data/lib/view_model/sap_schema_ni_173/common_schema.rb +8 -8
- data/lib/view_model/sap_schema_ni_174/common_schema.rb +8 -8
- data/lib/view_model/sap_schema_ni_1800/common_schema.rb +8 -8
- data/lib/view_model/sap_schema_s_1900/common_schema.rb +11 -11
- metadata +62 -4
|
@@ -567,7 +567,7 @@ module ViewModel
|
|
|
567
567
|
@xml_doc
|
|
568
568
|
.search("SAP-Building-Part")
|
|
569
569
|
.map do |node|
|
|
570
|
-
|
|
570
|
+
xpath(%w[Party-Wall-Construction], node)
|
|
571
571
|
end
|
|
572
572
|
end
|
|
573
573
|
|
|
@@ -575,16 +575,16 @@ module ViewModel
|
|
|
575
575
|
@xml_doc
|
|
576
576
|
.search("SAP-Building-Part")
|
|
577
577
|
.map do |node|
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
578
|
+
{
|
|
579
|
+
alternative_wall_thickness: node.at_xpath("SAP-Alternative-Wall/Wall-Thickness")&.content,
|
|
580
|
+
alternative_wall_thickness_measured: node.at_xpath("SAP-Alternative-Wall/Wall-Thickness-Measured")&.content,
|
|
581
|
+
alternative_wall_construction: node.at_xpath("SAP-Alternative-Wall/Wall-Construction")&.content,
|
|
582
|
+
alternative_wall_u_value: node.at_xpath("SAP-Alternative-Wall/Wall-U-Value")&.content,
|
|
583
|
+
alternative_wall_insulation_thickness: node.at_xpath("SAP-Alternative-Wall/Wall-Insulation-Thickness")&.content,
|
|
584
|
+
wall_thickness: node.at_xpath("Wall-Thickness")&.content,
|
|
585
|
+
wall_construction: node.at_xpath("Wall-Construction")&.content,
|
|
586
|
+
wall_thickness_measured: node.at_xpath("Wall-Thickness-Measured")&.content,
|
|
587
|
+
}
|
|
588
588
|
end
|
|
589
589
|
end
|
|
590
590
|
|
|
@@ -592,10 +592,10 @@ module ViewModel
|
|
|
592
592
|
@xml_doc
|
|
593
593
|
.search("SAP-Building-Part")
|
|
594
594
|
.map do |node|
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
595
|
+
{
|
|
596
|
+
roof_insulation_location: node.at_xpath("Roof-Insulation-Location")&.content,
|
|
597
|
+
roof_construction: node.at_xpath("Roof-Construction")&.content,
|
|
598
|
+
}
|
|
599
599
|
end
|
|
600
600
|
end
|
|
601
601
|
|
|
@@ -607,10 +607,10 @@ module ViewModel
|
|
|
607
607
|
@xml_doc
|
|
608
608
|
.search("SAP-Building-Part")
|
|
609
609
|
.map do |node|
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
610
|
+
{
|
|
611
|
+
floor_u_value: node.at_xpath("Floor-U-Value")&.content,
|
|
612
|
+
floor_insulation_thickness: node.at_xpath("Floor-Insulation-Thickness")&.content,
|
|
613
|
+
}
|
|
614
614
|
end
|
|
615
615
|
end
|
|
616
616
|
|
|
@@ -618,13 +618,13 @@ module ViewModel
|
|
|
618
618
|
@xml_doc
|
|
619
619
|
.search("SAP-Building-Part")
|
|
620
620
|
.map do |node|
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
621
|
+
{
|
|
622
|
+
roof_u_value: node.at_xpath("Roof-U-Value")&.content,
|
|
623
|
+
roof_insulation_thickness: node.at_xpath("Roof-Insulation-Thickness")&.content,
|
|
624
|
+
rafter_insulation_thickness: node.at_xpath("Rafter-Insulation-Thickness")&.content,
|
|
625
|
+
flat_roof_insulation_thickness: node.at_xpath("Flat-Roof-Insulation-Thickness")&.content,
|
|
626
|
+
sloping_ceiling_insulation_thickness: node.at_xpath("Sloping-Ceiling-Insulation-Thickness")&.content,
|
|
627
|
+
}
|
|
628
628
|
end
|
|
629
629
|
end
|
|
630
630
|
|
|
@@ -632,10 +632,10 @@ module ViewModel
|
|
|
632
632
|
@xml_doc
|
|
633
633
|
.search("SAP-Building-Part")
|
|
634
634
|
.map do |node|
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
635
|
+
{
|
|
636
|
+
wall_u_value: node.at_xpath("Wall-U-Value")&.content,
|
|
637
|
+
wall_insulation_thickness: node.at_xpath("Wall-Insulation-Thickness")&.content,
|
|
638
|
+
}
|
|
639
639
|
end
|
|
640
640
|
end
|
|
641
641
|
|
|
@@ -651,11 +651,11 @@ module ViewModel
|
|
|
651
651
|
@xml_doc
|
|
652
652
|
.search("Main-Heating")
|
|
653
653
|
.map do |_node|
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
654
|
+
{
|
|
655
|
+
main_heating_index_number: xpath(%w[Main-Heating-Index-Number]),
|
|
656
|
+
sap_main_heating_code: xpath(%w[SAP-Main-Heating-Code]),
|
|
657
|
+
main_fuel_type: xpath(%w[Main-Fuel-Type]),
|
|
658
|
+
}
|
|
659
659
|
end
|
|
660
660
|
end
|
|
661
661
|
|
|
@@ -93,6 +93,8 @@ module ViewModel
|
|
|
93
93
|
ViewModel::RdSapSchemaS1700::CommonSchema.new xml_doc
|
|
94
94
|
when :"RdSAP-Schema-S-16.1"
|
|
95
95
|
ViewModel::RdSapSchemaS161::CommonSchema.new xml_doc
|
|
96
|
+
when :"RdSAP-Schema-S-14.0"
|
|
97
|
+
ViewModel::RdSapSchemaS140::CommonSchema.new xml_doc
|
|
96
98
|
else
|
|
97
99
|
raise ArgumentError, "Unsupported schema type"
|
|
98
100
|
end
|
|
@@ -371,12 +371,12 @@ module ViewModel
|
|
|
371
371
|
@xml_doc
|
|
372
372
|
.search("Fixed-Lights/Fixed-Light")
|
|
373
373
|
.map do |part|
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
374
|
+
{
|
|
375
|
+
lighting_efficacy:
|
|
376
|
+
xpath(%w[Lighting-Efficacy], part),
|
|
377
|
+
lighting_outlets:
|
|
378
|
+
xpath(%w[Lighting-Outlets], part),
|
|
379
|
+
}
|
|
380
380
|
end
|
|
381
381
|
end
|
|
382
382
|
|
|
@@ -371,12 +371,12 @@ module ViewModel
|
|
|
371
371
|
@xml_doc
|
|
372
372
|
.search("Fixed-Lights/Fixed-Light")
|
|
373
373
|
.map do |part|
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
374
|
+
{
|
|
375
|
+
lighting_efficacy:
|
|
376
|
+
xpath(%w[Lighting-Efficacy], part),
|
|
377
|
+
lighting_outlets:
|
|
378
|
+
xpath(%w[Lighting-Outlets], part),
|
|
379
|
+
}
|
|
380
380
|
end
|
|
381
381
|
end
|
|
382
382
|
|
|
@@ -371,12 +371,12 @@ module ViewModel
|
|
|
371
371
|
@xml_doc
|
|
372
372
|
.search("Fixed-Lights/Fixed-Light")
|
|
373
373
|
.map do |part|
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
374
|
+
{
|
|
375
|
+
lighting_efficacy:
|
|
376
|
+
xpath(%w[Lighting-Efficacy], part),
|
|
377
|
+
lighting_outlets:
|
|
378
|
+
xpath(%w[Lighting-Outlets], part),
|
|
379
|
+
}
|
|
380
380
|
end
|
|
381
381
|
end
|
|
382
382
|
|
|
@@ -454,14 +454,14 @@ module ViewModel
|
|
|
454
454
|
@xml_doc
|
|
455
455
|
.search("Suggested-Improvements Improvement")
|
|
456
456
|
.map do |node|
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
457
|
+
improvement_code = xpath(%w[Improvement-Details Improvement-Number], node)
|
|
458
|
+
{
|
|
459
|
+
sequence: xpath(%w[Sequence], node).to_i,
|
|
460
|
+
improvement_code: xpath(%w[Improvement-Details Improvement-Number], node),
|
|
461
|
+
improvement_summary: improvement_code ? accessor.fetch_details(schema_version: "SAP-Schema-NI-17.3", improvement_number: improvement_code).summary : xpath(%w[Improvement-Summary], node),
|
|
462
|
+
improvement_description: improvement_code ? accessor.fetch_details(schema_version: "SAP-Schema-NI-17.3", improvement_number: improvement_code).description : xpath(%w[Improvement-Description], node),
|
|
463
|
+
indicative_cost: xpath(%w[Indicative-Cost], node),
|
|
464
|
+
}
|
|
465
465
|
end
|
|
466
466
|
end
|
|
467
467
|
end
|
|
@@ -454,14 +454,14 @@ module ViewModel
|
|
|
454
454
|
@xml_doc
|
|
455
455
|
.search("Suggested-Improvements Improvement")
|
|
456
456
|
.map do |node|
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
457
|
+
improvement_code = xpath(%w[Improvement-Details Improvement-Number], node)
|
|
458
|
+
{
|
|
459
|
+
sequence: xpath(%w[Sequence], node).to_i,
|
|
460
|
+
improvement_code: xpath(%w[Improvement-Details Improvement-Number], node),
|
|
461
|
+
improvement_summary: improvement_code ? accessor.fetch_details(schema_version: "SAP-Schema-NI-17.4", improvement_number: improvement_code).summary : xpath(%w[Improvement-Summary], node),
|
|
462
|
+
improvement_description: improvement_code ? accessor.fetch_details(schema_version: "SAP-Schema-NI-17.4", improvement_number: improvement_code).description : xpath(%w[Improvement-Description], node),
|
|
463
|
+
indicative_cost: xpath(%w[Indicative-Cost], node),
|
|
464
|
+
}
|
|
465
465
|
end
|
|
466
466
|
end
|
|
467
467
|
end
|
|
@@ -510,14 +510,14 @@ module ViewModel
|
|
|
510
510
|
@xml_doc
|
|
511
511
|
.search("Suggested-Improvements Improvement")
|
|
512
512
|
.map do |node|
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
513
|
+
improvement_code = xpath(%w[Improvement-Details Improvement-Number], node)
|
|
514
|
+
{
|
|
515
|
+
sequence: xpath(%w[Sequence], node).to_i,
|
|
516
|
+
improvement_code: xpath(%w[Improvement-Details Improvement-Number], node),
|
|
517
|
+
improvement_summary: improvement_code ? accessor.fetch_details(schema_version: "SAP-Schema-NI-18.0.0", improvement_number: improvement_code).summary : xpath(%w[Improvement-Summary], node),
|
|
518
|
+
improvement_description: improvement_code ? accessor.fetch_details(schema_version: "SAP-Schema-NI-18.0.0", improvement_number: improvement_code).description : xpath(%w[Improvement-Description], node),
|
|
519
|
+
indicative_cost: xpath(%w[Indicative-Cost], node),
|
|
520
|
+
}
|
|
521
521
|
end
|
|
522
522
|
end
|
|
523
523
|
end
|
|
@@ -367,12 +367,12 @@ module ViewModel
|
|
|
367
367
|
@xml_doc
|
|
368
368
|
.search("Fixed-Lights/Fixed-Light")
|
|
369
369
|
.map do |part|
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
370
|
+
{
|
|
371
|
+
lighting_efficacy:
|
|
372
|
+
xpath(%w[Lighting-Efficacy], part),
|
|
373
|
+
lighting_outlets:
|
|
374
|
+
xpath(%w[Lighting-Outlets], part),
|
|
375
|
+
}
|
|
376
376
|
end
|
|
377
377
|
end
|
|
378
378
|
|
|
@@ -600,10 +600,10 @@ module ViewModel
|
|
|
600
600
|
@xml_doc
|
|
601
601
|
.search("SAP-Heating/Main-Heating-Details/Main-Heating")
|
|
602
602
|
.map do |_node|
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
603
|
+
{
|
|
604
|
+
main_heating_code: xpath(%w[Main-Heating-Code]),
|
|
605
|
+
main_heating_index_number: xpath(%w[Main-Heating-Index-Number]),
|
|
606
|
+
}
|
|
607
607
|
end
|
|
608
608
|
end
|
|
609
609
|
|
|
@@ -611,7 +611,7 @@ module ViewModel
|
|
|
611
611
|
@xml_doc
|
|
612
612
|
.search("SAP-Building-Part")
|
|
613
613
|
.map do |node|
|
|
614
|
-
|
|
614
|
+
xpath(%w[Construction-Year], node)
|
|
615
615
|
end
|
|
616
616
|
end
|
|
617
617
|
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.
|
|
4
|
+
version: 2.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- MHCLG Energy Performance of Buildings
|
|
@@ -15,14 +15,28 @@ dependencies:
|
|
|
15
15
|
requirements:
|
|
16
16
|
- - "~>"
|
|
17
17
|
- !ruby/object:Gem::Version
|
|
18
|
-
version: '1.
|
|
18
|
+
version: '1.18'
|
|
19
19
|
type: :runtime
|
|
20
20
|
prerelease: false
|
|
21
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
22
22
|
requirements:
|
|
23
23
|
- - "~>"
|
|
24
24
|
- !ruby/object:Gem::Version
|
|
25
|
-
version: '1.
|
|
25
|
+
version: '1.18'
|
|
26
|
+
- !ruby/object:Gem::Dependency
|
|
27
|
+
name: rexml
|
|
28
|
+
requirement: !ruby/object:Gem::Requirement
|
|
29
|
+
requirements:
|
|
30
|
+
- - "~>"
|
|
31
|
+
- !ruby/object:Gem::Version
|
|
32
|
+
version: '3.3'
|
|
33
|
+
type: :runtime
|
|
34
|
+
prerelease: false
|
|
35
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
36
|
+
requirements:
|
|
37
|
+
- - "~>"
|
|
38
|
+
- !ruby/object:Gem::Version
|
|
39
|
+
version: '3.3'
|
|
26
40
|
- !ruby/object:Gem::Dependency
|
|
27
41
|
name: zeitwerk
|
|
28
42
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -328,6 +342,49 @@ files:
|
|
|
328
342
|
- api/schemas/xml/RdSAP-Schema-NI-21.0.1/RdSAP/Templates/RdSAP-Report.xsd
|
|
329
343
|
- api/schemas/xml/RdSAP-Schema-NI-21.0.1/RdSAP/UDT/EPC-Domains.xsd
|
|
330
344
|
- api/schemas/xml/RdSAP-Schema-NI-21.0.1/RdSAP/UDT/SAP-Domains.xsd
|
|
345
|
+
- api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/CommonFiles/CommonStructures.xsd
|
|
346
|
+
- api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/CommonFiles/Exceptions.xsd
|
|
347
|
+
- api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/ExternalDefinitions.xsd
|
|
348
|
+
- api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/ConditionReportChangeAccessRequest_1.xsd
|
|
349
|
+
- api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/ConditionReportChangeAccessResponse_1.xsd
|
|
350
|
+
- api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/ConditionReportChangeStatusRequest_1.xsd
|
|
351
|
+
- api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/ConditionReportChangeStatusResponse_1.xsd
|
|
352
|
+
- api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/ConditionReportCreateRequest_1.xsd
|
|
353
|
+
- api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/ConditionReportCreateResponse_1.xsd
|
|
354
|
+
- api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/ConditionReportRetrieveRequest_1.xsd
|
|
355
|
+
- api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/ConditionReportRetrieveResponse_1.xsd
|
|
356
|
+
- api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/HomeInspectorRegisterUpdateRequest_1.xsd
|
|
357
|
+
- api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/HomeInspectorRegisterUpdateResponse_1.xsd
|
|
358
|
+
- api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/HomeInspectorRegisterUpdateStatusRequest_1.xsd
|
|
359
|
+
- api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/HomeInspectorRegisterUpdateStatusResponse_1.xsd
|
|
360
|
+
- api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/PropertyUPRNValidationRequest_1.xsd
|
|
361
|
+
- api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/PropertyUPRNValidationResponse_1.xsd
|
|
362
|
+
- api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/SAP-EPC/Templates/EPC-Certificate.xsd
|
|
363
|
+
- api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/SAP-EPC/Templates/Property.xsd
|
|
364
|
+
- api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/SAP-EPC/Templates/SAP05-CollectedData.xsd
|
|
365
|
+
- api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/SAP-EPC/Templates/SAP05-Report.xsd
|
|
366
|
+
- api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/SAP-EPC/Templates/UserManagement.xsd
|
|
367
|
+
- api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/SAP-EPC/UDT/BaseDataTypes.xsd
|
|
368
|
+
- api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/SAP-EPC/UDT/EPC-Domains.xsd
|
|
369
|
+
- api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/SAP-EPC/UDT/SAP05-Domains.xsd
|
|
370
|
+
- api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/SAP-EPC/UDT/SharedDomains.xsd
|
|
371
|
+
- api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/EPC-Certificate.xsd
|
|
372
|
+
- api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/EPC-CollectedData.xsd
|
|
373
|
+
- api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/HCR-FeaturesExternal.xsd
|
|
374
|
+
- api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/HCR-FeaturesGrounds.xsd
|
|
375
|
+
- api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/HCR-FeaturesInternal.xsd
|
|
376
|
+
- api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/HCR-FeaturesServices.xsd
|
|
377
|
+
- api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/HCR-PropertyDetails.xsd
|
|
378
|
+
- api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/HCR-RiskAssessment.xsd
|
|
379
|
+
- api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/HIP-Reports.xsd
|
|
380
|
+
- api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/Property.xsd
|
|
381
|
+
- api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/UserManagement.xsd
|
|
382
|
+
- api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/UDT/BaseDataTypes.xsd
|
|
383
|
+
- api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/UDT/EPC-Domains.xsd
|
|
384
|
+
- api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/UDT/HCR-Domains.xsd
|
|
385
|
+
- api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/UDT/SAP-Domains.xsd
|
|
386
|
+
- api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/UDT/SharedDomains.xsd
|
|
387
|
+
- api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/UDT/TypeDefinitions.xsd
|
|
331
388
|
- api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/ExternalDefinitions.xml
|
|
332
389
|
- api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/ExternalDefinitions.xsd
|
|
333
390
|
- api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/All-HIP.xsd
|
|
@@ -1768,6 +1825,7 @@ files:
|
|
|
1768
1825
|
- lib/view_model/rd_sap_schema_ni_200/common_schema.rb
|
|
1769
1826
|
- lib/view_model/rd_sap_schema_ni_210/common_schema.rb
|
|
1770
1827
|
- lib/view_model/rd_sap_schema_ni_2101/common_schema.rb
|
|
1828
|
+
- lib/view_model/rd_sap_schema_s_140/common_schema.rb
|
|
1771
1829
|
- lib/view_model/rd_sap_schema_s_161/common_schema.rb
|
|
1772
1830
|
- lib/view_model/rd_sap_schema_s_1700/common_schema.rb
|
|
1773
1831
|
- lib/view_model/rd_sap_schema_s_180/common_schema.rb
|
|
@@ -1874,7 +1932,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
1874
1932
|
requirements:
|
|
1875
1933
|
- - ">="
|
|
1876
1934
|
- !ruby/object:Gem::Version
|
|
1877
|
-
version: '3.
|
|
1935
|
+
version: '3.4'
|
|
1878
1936
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1879
1937
|
requirements:
|
|
1880
1938
|
- - ">="
|