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.
Files changed (140) hide show
  1. checksums.yaml +4 -4
  2. data/.ruby-version +1 -1
  3. data/Gemfile +1 -1
  4. data/Gemfile.lock +21 -21
  5. data/api/schemas/data/orchestrate.json +4 -0
  6. data/api/schemas/xml/CEPC-S-7.0/Reports/BaseDataTypes.xsd +296 -296
  7. data/api/schemas/xml/CEPC-S-7.0/Reports/CEPC-Reports.xsd +63 -63
  8. data/api/schemas/xml/CEPC-S-7.0/Reports/Input-Data.xsd +34 -34
  9. data/api/schemas/xml/CEPC-S-7.0/Reports/Performance-Summary.xsd +120 -120
  10. data/api/schemas/xml/CEPC-S-7.0/Reports/Property.xsd +67 -67
  11. data/api/schemas/xml/CEPC-S-7.0/Reports/Report-Header.xsd +178 -178
  12. data/api/schemas/xml/CEPC-S-7.0/Reports/Reported-Data.xsd +391 -391
  13. data/api/schemas/xml/CEPC-S-7.0/Reports/UserManagement.xsd +171 -171
  14. data/api/schemas/xml/CEPC-S-7.1/Reports/BaseDataTypes.xsd +300 -300
  15. data/api/schemas/xml/CEPC-S-7.1/Reports/CEPC-Reports.xsd +66 -66
  16. data/api/schemas/xml/CEPC-S-7.1/Reports/Input-Data.xsd +34 -34
  17. data/api/schemas/xml/CEPC-S-7.1/Reports/Performance-Summary.xsd +125 -125
  18. data/api/schemas/xml/CEPC-S-7.1/Reports/Performance-Summary.xsd.bak +123 -123
  19. data/api/schemas/xml/CEPC-S-7.1/Reports/Property.xsd +67 -67
  20. data/api/schemas/xml/CEPC-S-7.1/Reports/Report-Header.xsd +178 -178
  21. data/api/schemas/xml/CEPC-S-7.1/Reports/Reported-Data.xsd +406 -406
  22. data/api/schemas/xml/CEPC-S-7.1/Reports/UserManagement.xsd +174 -174
  23. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/CommonFiles/CommonStructures.xsd +160 -0
  24. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/CommonFiles/Exceptions.xsd +72 -0
  25. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/ExternalDefinitions.xsd +147 -0
  26. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/ConditionReportChangeAccessRequest_1.xsd +44 -0
  27. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/ConditionReportChangeAccessResponse_1.xsd +47 -0
  28. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/ConditionReportChangeStatusRequest_1.xsd +44 -0
  29. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/ConditionReportChangeStatusResponse_1.xsd +47 -0
  30. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/ConditionReportCreateRequest_1.xsd +41 -0
  31. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/ConditionReportCreateResponse_1.xsd +52 -0
  32. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/ConditionReportRetrieveRequest_1.xsd +52 -0
  33. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/ConditionReportRetrieveResponse_1.xsd +87 -0
  34. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/HomeInspectorRegisterUpdateRequest_1.xsd +44 -0
  35. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/HomeInspectorRegisterUpdateResponse_1.xsd +28 -0
  36. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/HomeInspectorRegisterUpdateStatusRequest_1.xsd +30 -0
  37. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/HomeInspectorRegisterUpdateStatusResponse_1.xsd +52 -0
  38. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/PropertyUPRNValidationRequest_1.xsd +44 -0
  39. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/PropertyUPRNValidationResponse_1.xsd +46 -0
  40. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/SAP-EPC/Templates/EPC-Certificate.xsd +270 -0
  41. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/SAP-EPC/Templates/Property.xsd +68 -0
  42. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/SAP-EPC/Templates/SAP05-CollectedData.xsd +1188 -0
  43. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/SAP-EPC/Templates/SAP05-Report.xsd +195 -0
  44. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/SAP-EPC/Templates/UserManagement.xsd +215 -0
  45. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/SAP-EPC/UDT/BaseDataTypes.xsd +175 -0
  46. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/SAP-EPC/UDT/EPC-Domains.xsd +703 -0
  47. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/SAP-EPC/UDT/SAP05-Domains.xsd +3007 -0
  48. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/SAP-EPC/UDT/SharedDomains.xsd +311 -0
  49. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/EPC-Certificate.xsd +252 -0
  50. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/EPC-CollectedData.xsd +444 -0
  51. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/HCR-FeaturesExternal.xsd +283 -0
  52. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/HCR-FeaturesGrounds.xsd +222 -0
  53. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/HCR-FeaturesInternal.xsd +205 -0
  54. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/HCR-FeaturesServices.xsd +311 -0
  55. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/HCR-PropertyDetails.xsd +380 -0
  56. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/HCR-RiskAssessment.xsd +297 -0
  57. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/HIP-Reports.xsd +220 -0
  58. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/Property.xsd +73 -0
  59. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/UserManagement.xsd +257 -0
  60. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/UDT/BaseDataTypes.xsd +176 -0
  61. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/UDT/EPC-Domains.xsd +743 -0
  62. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/UDT/HCR-Domains.xsd +1773 -0
  63. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/UDT/SAP-Domains.xsd +1134 -0
  64. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/UDT/SharedDomains.xsd +660 -0
  65. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/UDT/TypeDefinitions.xsd +19 -0
  66. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/ExternalDefinitions.xml +1456 -1456
  67. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/ExternalDefinitions.xsd +236 -236
  68. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/AssessorManagement.xsd +16 -16
  69. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/EPC-Certificate.xsd +388 -388
  70. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/EPC-CollectedData.xsd +784 -784
  71. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/HCR-FeaturesExternal.xsd +283 -283
  72. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/HCR-FeaturesGrounds.xsd +222 -222
  73. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/HCR-FeaturesInternal.xsd +205 -205
  74. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/HCR-FeaturesServices.xsd +311 -311
  75. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/HCR-PropertyDetails.xsd +380 -380
  76. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/HCR-RiskAssessment.xsd +298 -298
  77. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/Property.xsd +67 -67
  78. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/SAP-Reports.xsd +201 -201
  79. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/Templates/UserManagement.xsd +259 -259
  80. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/UDT/BaseDataTypes.xsd +176 -176
  81. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/UDT/EPC-Domains.xsd +881 -881
  82. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/UDT/HCR-Domains.xsd +1779 -1779
  83. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/UDT/SAP-Domains.xsd +1650 -1650
  84. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/UDT/SharedDomains.xsd +768 -768
  85. data/api/schemas/xml/RdSAP-Schema-S-16.1/RdSAP/UDT/TypeDefinitions.xsd +19 -19
  86. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/ExternalDefinitions.xml +1456 -1456
  87. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/ExternalDefinitions.xsd +236 -236
  88. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/Templates/AssessorManagement.xsd +208 -208
  89. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/Templates/EPC-Certificate.xsd +400 -400
  90. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/Templates/EPC-CollectedData.xsd +957 -957
  91. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/Templates/ExceptionList.xsd +18 -18
  92. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/Templates/Property.xsd +66 -66
  93. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/Templates/RdSAP-Report.xsd +180 -180
  94. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/Templates/ReportList.xsd +26 -26
  95. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/UDT/EPC-Domains.xsd +843 -843
  96. data/api/schemas/xml/RdSAP-Schema-S-17.00/RdSAP/UDT/SAP-Domains.xsd +2541 -2541
  97. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/ExternalDefinitions.xml +1456 -1456
  98. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/ExternalDefinitions.xsd +236 -236
  99. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/Templates/AssessorManagement.xsd +213 -213
  100. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/Templates/EPC-Certificate.xsd +400 -400
  101. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/Templates/EPC-CollectedData.xsd +966 -966
  102. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/Templates/ExceptionList.xsd +18 -18
  103. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/Templates/Property.xsd +66 -66
  104. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/Templates/RdSAP-Report.xsd +175 -175
  105. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/Templates/ReportList.xsd +26 -26
  106. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/UDT/EPC-Domains.xsd +853 -853
  107. data/api/schemas/xml/RdSAP-Schema-S-18.0/RdSAP/UDT/SAP-Domains.xsd +2551 -2551
  108. data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/ExternalDefinitions.xsd +261 -261
  109. data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/Templates/AssessorManagement.xsd +213 -213
  110. data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/Templates/EPC-Certificate.xsd +400 -400
  111. data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/Templates/EPC-CollectedData.xsd +1051 -1051
  112. data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/Templates/Property.xsd +66 -66
  113. data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/Templates/RdSAP-Report.xsd +176 -176
  114. data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/Templates/ReportList.xsd +26 -26
  115. data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/UDT/EPC-Domains.xsd +858 -858
  116. data/api/schemas/xml/RdSAP-Schema-S-19.0/RdSAP/UDT/SAP-Domains.xsd +2684 -2684
  117. data/api/schemas/xml/RdSAP-Schema-S-21.0/RdSAP/Templates/RdSAP-Report.cs +11846 -11846
  118. data/epb_view_models.gemspec +3 -2
  119. data/lib/epb_view_models.rb +1 -1
  120. data/lib/view_model/cepc_s_70/cepc.rb +5 -5
  121. data/lib/view_model/cepc_s_71/cepc.rb +5 -5
  122. data/lib/view_model/cs63/common_schema.rb +1 -1
  123. data/lib/view_model/factory.rb +1 -0
  124. data/lib/view_model/rd_sap_schema_ni_173/common_schema.rb +8 -8
  125. data/lib/view_model/rd_sap_schema_ni_174/common_schema.rb +8 -8
  126. data/lib/view_model/rd_sap_schema_ni_180/common_schema.rb +8 -8
  127. data/lib/view_model/rd_sap_schema_ni_190/common_schema.rb +8 -8
  128. data/lib/view_model/rd_sap_schema_ni_200/common_schema.rb +8 -8
  129. data/lib/view_model/rd_sap_schema_s_140/common_schema.rb +550 -0
  130. data/lib/view_model/rd_sap_schema_s_190/common_schema.rb +41 -41
  131. data/lib/view_model/rd_sap_schema_s_210/common_schema.rb +35 -35
  132. data/lib/view_model/rd_sap_wrapper.rb +2 -0
  133. data/lib/view_model/sap_schema_1900/common_schema.rb +6 -6
  134. data/lib/view_model/sap_schema_1910/common_schema.rb +6 -6
  135. data/lib/view_model/sap_schema_1920/common_schema.rb +6 -6
  136. data/lib/view_model/sap_schema_ni_173/common_schema.rb +8 -8
  137. data/lib/view_model/sap_schema_ni_174/common_schema.rb +8 -8
  138. data/lib/view_model/sap_schema_ni_1800/common_schema.rb +8 -8
  139. data/lib/view_model/sap_schema_s_1900/common_schema.rb +11 -11
  140. 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
- xpath(%w[Party-Wall-Construction], node)
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
- 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
- }
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
- roof_insulation_location: node.at_xpath("Roof-Insulation-Location")&.content,
597
- roof_construction: node.at_xpath("Roof-Construction")&.content,
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
- floor_u_value: node.at_xpath("Floor-U-Value")&.content,
612
- floor_insulation_thickness: node.at_xpath("Floor-Insulation-Thickness")&.content,
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
- 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
- }
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
- wall_u_value: node.at_xpath("Wall-U-Value")&.content,
637
- wall_insulation_thickness: node.at_xpath("Wall-Insulation-Thickness")&.content,
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
- 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
- }
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
- lighting_efficacy:
376
- xpath(%w[Lighting-Efficacy], part),
377
- lighting_outlets:
378
- xpath(%w[Lighting-Outlets], part),
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
- lighting_efficacy:
376
- xpath(%w[Lighting-Efficacy], part),
377
- lighting_outlets:
378
- xpath(%w[Lighting-Outlets], part),
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
- lighting_efficacy:
376
- xpath(%w[Lighting-Efficacy], part),
377
- lighting_outlets:
378
- xpath(%w[Lighting-Outlets], part),
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
- 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
- }
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
- 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
- }
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
- 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
- }
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
- lighting_efficacy:
372
- xpath(%w[Lighting-Efficacy], part),
373
- lighting_outlets:
374
- xpath(%w[Lighting-Outlets], part),
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
- main_heating_code: xpath(%w[Main-Heating-Code]),
605
- main_heating_index_number: xpath(%w[Main-Heating-Index-Number]),
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
- xpath(%w[Construction-Year], node)
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.2.20
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.16'
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.16'
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.1'
1935
+ version: '3.4'
1878
1936
  required_rubygems_version: !ruby/object:Gem::Requirement
1879
1937
  requirements:
1880
1938
  - - ">="