epb_view_models 2.3.0 → 2.4.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 (58) hide show
  1. checksums.yaml +4 -4
  2. data/api/schemas/data/orchestrate.json +4 -0
  3. data/api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/CommonFiles/CommonStructures.xsd +160 -0
  4. data/api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/CommonFiles/Exceptions.xsd +72 -0
  5. data/api/schemas/xml/{RdSAP-Schema-S-14.0/RdSAP/Messages/PropertyUPRNValidationRequest_1.xsd → RdSAP-Schema-S-12.0/RdSAP/Messages/ConditionReportCreateRequest_1.xsd} +24 -15
  6. data/api/schemas/xml/{RdSAP-Schema-S-14.0/RdSAP/SAP-EPC → RdSAP-Schema-S-12.0/RdSAP}/Templates/EPC-Certificate.xsd +48 -105
  7. data/api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/Templates/EPC-CollectedData.xsd +445 -0
  8. data/api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/Templates/HCR-FeaturesExternal.xsd +283 -0
  9. data/api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/Templates/HCR-FeaturesGrounds.xsd +222 -0
  10. data/api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/Templates/HCR-FeaturesInternal.xsd +205 -0
  11. data/api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/Templates/HCR-FeaturesServices.xsd +311 -0
  12. data/api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/Templates/HCR-PropertyDetails.xsd +380 -0
  13. data/api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/Templates/HCR-RiskAssessment.xsd +297 -0
  14. data/api/schemas/xml/{RdSAP-Schema-S-14.0/RdSAP/SAP-EPC/Templates/SAP05-Report.xsd → RdSAP-Schema-S-12.0/RdSAP/Templates/HIP-Reports.xsd} +64 -56
  15. data/api/schemas/xml/{RdSAP-Schema-S-14.0/RdSAP/SAP-EPC → RdSAP-Schema-S-12.0/RdSAP}/Templates/Property.xsd +14 -9
  16. data/api/schemas/xml/{RdSAP-Schema-S-14.0/RdSAP/SAP-EPC → RdSAP-Schema-S-12.0/RdSAP}/Templates/UserManagement.xsd +100 -63
  17. data/api/schemas/xml/{RdSAP-Schema-S-14.0/RdSAP/SAP-EPC → RdSAP-Schema-S-12.0/RdSAP}/UDT/BaseDataTypes.xsd +28 -26
  18. data/api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/UDT/EPC-Domains.xsd +68 -0
  19. data/api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/UDT/HCR-Domains.xsd +1773 -0
  20. data/api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/UDT/SAP-Domains.xsd +1101 -0
  21. data/api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/UDT/SharedDomains.xsd +596 -0
  22. data/api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/UDT/TypeDefinitions.xsd +19 -0
  23. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/ConditionReportCreateRequest_1.xsd +2 -2
  24. data/lib/epb_view_models/version.rb +5 -0
  25. data/lib/epb_view_models.rb +1 -3
  26. data/lib/helper/rrn_helper.rb +4 -4
  27. data/lib/view_model/cs63/common_schema.rb +18 -18
  28. data/lib/view_model/factory.rb +1 -0
  29. data/lib/view_model/rd_sap_schema_s_120/common_schema.rb +547 -0
  30. data/lib/view_model/rd_sap_wrapper.rb +2 -0
  31. metadata +26 -36
  32. data/.buildspec.yml +0 -13
  33. data/.gitignore +0 -19
  34. data/.rspec +0 -2
  35. data/.rubocop.yml +0 -8
  36. data/.ruby-version +0 -1
  37. data/Gemfile +0 -15
  38. data/Gemfile.lock +0 -122
  39. data/Makefile +0 -17
  40. data/Rakefile +0 -12
  41. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/ExternalDefinitions.xsd +0 -147
  42. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/ConditionReportChangeAccessRequest_1.xsd +0 -44
  43. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/ConditionReportChangeAccessResponse_1.xsd +0 -47
  44. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/ConditionReportChangeStatusRequest_1.xsd +0 -44
  45. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/ConditionReportChangeStatusResponse_1.xsd +0 -47
  46. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/ConditionReportCreateResponse_1.xsd +0 -52
  47. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/ConditionReportRetrieveRequest_1.xsd +0 -52
  48. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/ConditionReportRetrieveResponse_1.xsd +0 -87
  49. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/HomeInspectorRegisterUpdateRequest_1.xsd +0 -44
  50. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/HomeInspectorRegisterUpdateResponse_1.xsd +0 -28
  51. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/HomeInspectorRegisterUpdateStatusRequest_1.xsd +0 -30
  52. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/HomeInspectorRegisterUpdateStatusResponse_1.xsd +0 -52
  53. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Messages/PropertyUPRNValidationResponse_1.xsd +0 -46
  54. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/SAP-EPC/Templates/SAP05-CollectedData.xsd +0 -1188
  55. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/SAP-EPC/UDT/EPC-Domains.xsd +0 -703
  56. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/SAP-EPC/UDT/SAP05-Domains.xsd +0 -3007
  57. data/api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/SAP-EPC/UDT/SharedDomains.xsd +0 -311
  58. data/epb_view_models.gemspec +0 -27
metadata CHANGED
@@ -1,11 +1,11 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: epb_view_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.0
4
+ version: 2.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - MHCLG Energy Performance of Buildings
8
- bindir: exe
8
+ bindir: bin
9
9
  cert_chain: []
10
10
  date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies:
@@ -57,17 +57,8 @@ executables: []
57
57
  extensions: []
58
58
  extra_rdoc_files: []
59
59
  files:
60
- - ".buildspec.yml"
61
- - ".gitignore"
62
- - ".rspec"
63
- - ".rubocop.yml"
64
- - ".ruby-version"
65
- - Gemfile
66
- - Gemfile.lock
67
60
  - LICENSE
68
- - Makefile
69
61
  - README.md
70
- - Rakefile
71
62
  - api/schemas/data/orchestrate.json
72
63
  - api/schemas/xml/CEPC-3.1/CommonFiles/CommonStructures.xsd
73
64
  - api/schemas/xml/CEPC-3.1/CommonFiles/Exceptions.xsd
@@ -342,32 +333,29 @@ files:
342
333
  - api/schemas/xml/RdSAP-Schema-NI-21.0.1/RdSAP/Templates/RdSAP-Report.xsd
343
334
  - api/schemas/xml/RdSAP-Schema-NI-21.0.1/RdSAP/UDT/EPC-Domains.xsd
344
335
  - api/schemas/xml/RdSAP-Schema-NI-21.0.1/RdSAP/UDT/SAP-Domains.xsd
336
+ - api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/CommonFiles/CommonStructures.xsd
337
+ - api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/CommonFiles/Exceptions.xsd
338
+ - api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/Messages/ConditionReportCreateRequest_1.xsd
339
+ - api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/Templates/EPC-Certificate.xsd
340
+ - api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/Templates/EPC-CollectedData.xsd
341
+ - api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/Templates/HCR-FeaturesExternal.xsd
342
+ - api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/Templates/HCR-FeaturesGrounds.xsd
343
+ - api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/Templates/HCR-FeaturesInternal.xsd
344
+ - api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/Templates/HCR-FeaturesServices.xsd
345
+ - api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/Templates/HCR-PropertyDetails.xsd
346
+ - api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/Templates/HCR-RiskAssessment.xsd
347
+ - api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/Templates/HIP-Reports.xsd
348
+ - api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/Templates/Property.xsd
349
+ - api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/Templates/UserManagement.xsd
350
+ - api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/UDT/BaseDataTypes.xsd
351
+ - api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/UDT/EPC-Domains.xsd
352
+ - api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/UDT/HCR-Domains.xsd
353
+ - api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/UDT/SAP-Domains.xsd
354
+ - api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/UDT/SharedDomains.xsd
355
+ - api/schemas/xml/RdSAP-Schema-S-12.0/RdSAP/UDT/TypeDefinitions.xsd
345
356
  - api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/CommonFiles/CommonStructures.xsd
346
357
  - 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
358
  - 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
359
  - api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/EPC-Certificate.xsd
372
360
  - api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/EPC-CollectedData.xsd
373
361
  - api/schemas/xml/RdSAP-Schema-S-14.0/RdSAP/Templates/HCR-FeaturesExternal.xsd
@@ -1684,9 +1672,9 @@ files:
1684
1672
  - api/schemas/xml/examples/RdSAP-NI-20.0.0.xml
1685
1673
  - api/schemas/xml/examples/SAP-18.0.0.xml
1686
1674
  - api/schemas/xml/examples/SAP-NI-18.0.0.xml
1687
- - epb_view_models.gemspec
1688
1675
  - lib/accessor/domestic_recommendations_accessor.rb
1689
1676
  - lib/epb_view_models.rb
1677
+ - lib/epb_view_models/version.rb
1690
1678
  - lib/helper/ac_report_extraction.rb
1691
1679
  - lib/helper/energy_band_calculator.rb
1692
1680
  - lib/helper/estimated_cost_potential_saving_helper.rb
@@ -1825,6 +1813,7 @@ files:
1825
1813
  - lib/view_model/rd_sap_schema_ni_200/common_schema.rb
1826
1814
  - lib/view_model/rd_sap_schema_ni_210/common_schema.rb
1827
1815
  - lib/view_model/rd_sap_schema_ni_2101/common_schema.rb
1816
+ - lib/view_model/rd_sap_schema_s_120/common_schema.rb
1828
1817
  - lib/view_model/rd_sap_schema_s_140/common_schema.rb
1829
1818
  - lib/view_model/rd_sap_schema_s_161/common_schema.rb
1830
1819
  - lib/view_model/rd_sap_schema_s_1700/common_schema.rb
@@ -1924,7 +1913,8 @@ files:
1924
1913
  homepage: https://github.com/communitiesuk/epb-view-models
1925
1914
  licenses:
1926
1915
  - MIT
1927
- metadata: {}
1916
+ metadata:
1917
+ rubygems_mfa_required: 'true'
1928
1918
  rdoc_options: []
1929
1919
  require_paths:
1930
1920
  - lib
data/.buildspec.yml DELETED
@@ -1,13 +0,0 @@
1
- version: 0.2
2
-
3
- phases:
4
- install:
5
- runtime-versions:
6
- ruby: 3.4
7
- pre_build:
8
- commands:
9
- - gem install bundler:2.3.15
10
- - make install
11
- build:
12
- commands:
13
- - make test
data/.gitignore DELETED
@@ -1,19 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /_yardoc/
4
- /coverage/
5
- /doc/
6
- /pkg/
7
- /spec/reports/
8
- /tmp/
9
- **/.DS_Store
10
- dump.rdb
11
-
12
- # rspec failure tracking
13
- .rspec_status
14
-
15
- # Jetbrains
16
- .idea
17
-
18
- # Avoid committing gem file when releasing
19
- *.gem
data/.rspec DELETED
@@ -1,2 +0,0 @@
1
- --require spec_helper
2
- --color
data/.rubocop.yml DELETED
@@ -1,8 +0,0 @@
1
- inherit_gem:
2
- rubocop-govuk:
3
- - config/default.yml
4
- - config/rspec.yml
5
-
6
- inherit_mode:
7
- merge:
8
- - Exclude
data/.ruby-version DELETED
@@ -1 +0,0 @@
1
- 3.4.9
data/Gemfile DELETED
@@ -1,15 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- ruby "3.4.9"
4
-
5
- source "https://rubygems.org"
6
-
7
- group :test do
8
- gem "rake", "~> 13.0.6"
9
- gem "rspec", "~> 3.0"
10
- gem "rubocop-govuk", "~> 5.0", require: false
11
- end
12
-
13
- gem "nokogiri", ">= 1.18.8"
14
- gem "rexml", ">= 3.3.9"
15
- gem "zeitwerk", "~> 2.6"
data/Gemfile.lock DELETED
@@ -1,122 +0,0 @@
1
- GEM
2
- remote: https://rubygems.org/
3
- specs:
4
- activesupport (8.1.3)
5
- base64
6
- bigdecimal
7
- concurrent-ruby (~> 1.0, >= 1.3.1)
8
- connection_pool (>= 2.2.5)
9
- drb
10
- i18n (>= 1.6, < 2)
11
- json
12
- logger (>= 1.4.2)
13
- minitest (>= 5.1)
14
- securerandom (>= 0.3)
15
- tzinfo (~> 2.0, >= 2.0.5)
16
- uri (>= 0.13.1)
17
- ast (2.4.3)
18
- base64 (0.3.0)
19
- bigdecimal (4.1.2)
20
- concurrent-ruby (1.3.8)
21
- connection_pool (3.0.2)
22
- diff-lcs (1.6.2)
23
- drb (2.2.3)
24
- i18n (1.15.2)
25
- concurrent-ruby (~> 1.0)
26
- json (2.21.1)
27
- language_server-protocol (3.17.0.6)
28
- lint_roller (1.1.0)
29
- logger (1.7.0)
30
- mini_portile2 (2.8.9)
31
- minitest (6.0.6)
32
- drb (~> 2.0)
33
- prism (~> 1.5)
34
- nokogiri (1.19.4)
35
- mini_portile2 (~> 2.8.2)
36
- racc (~> 1.4)
37
- parallel (1.28.0)
38
- parser (3.3.12.0)
39
- ast (~> 2.4.1)
40
- racc
41
- prism (1.9.0)
42
- racc (1.8.1)
43
- rack (3.2.6)
44
- rainbow (3.1.1)
45
- rake (13.0.6)
46
- regexp_parser (2.12.0)
47
- rexml (3.4.4)
48
- rspec (3.13.2)
49
- rspec-core (~> 3.13.0)
50
- rspec-expectations (~> 3.13.0)
51
- rspec-mocks (~> 3.13.0)
52
- rspec-core (3.13.6)
53
- rspec-support (~> 3.13.0)
54
- rspec-expectations (3.13.5)
55
- diff-lcs (>= 1.2.0, < 2.0)
56
- rspec-support (~> 3.13.0)
57
- rspec-mocks (3.13.8)
58
- diff-lcs (>= 1.2.0, < 2.0)
59
- rspec-support (~> 3.13.0)
60
- rspec-support (3.13.7)
61
- rubocop (1.86.0)
62
- json (~> 2.3)
63
- language_server-protocol (~> 3.17.0.2)
64
- lint_roller (~> 1.1.0)
65
- parallel (~> 1.10)
66
- parser (>= 3.3.0.2)
67
- rainbow (>= 2.2.2, < 4.0)
68
- regexp_parser (>= 2.9.3, < 3.0)
69
- rubocop-ast (>= 1.49.0, < 2.0)
70
- ruby-progressbar (~> 1.7)
71
- unicode-display_width (>= 2.4.0, < 4.0)
72
- rubocop-ast (1.49.1)
73
- parser (>= 3.3.7.2)
74
- prism (~> 1.7)
75
- rubocop-capybara (2.22.1)
76
- lint_roller (~> 1.1)
77
- rubocop (~> 1.72, >= 1.72.1)
78
- rubocop-govuk (5.2.1)
79
- rubocop (= 1.86.0)
80
- rubocop-ast (= 1.49.1)
81
- rubocop-capybara (= 2.22.1)
82
- rubocop-rails (= 2.34.3)
83
- rubocop-rake (= 0.7.1)
84
- rubocop-rspec (= 3.9.0)
85
- rubocop-rails (2.34.3)
86
- activesupport (>= 4.2.0)
87
- lint_roller (~> 1.1)
88
- rack (>= 1.1)
89
- rubocop (>= 1.75.0, < 2.0)
90
- rubocop-ast (>= 1.44.0, < 2.0)
91
- rubocop-rake (0.7.1)
92
- lint_roller (~> 1.1)
93
- rubocop (>= 1.72.1)
94
- rubocop-rspec (3.9.0)
95
- lint_roller (~> 1.1)
96
- rubocop (~> 1.81)
97
- ruby-progressbar (1.13.0)
98
- securerandom (0.4.1)
99
- tzinfo (2.0.6)
100
- concurrent-ruby (~> 1.0)
101
- unicode-display_width (3.2.0)
102
- unicode-emoji (~> 4.1)
103
- unicode-emoji (4.2.0)
104
- uri (1.1.1)
105
- zeitwerk (2.8.2)
106
-
107
- PLATFORMS
108
- ruby
109
-
110
- DEPENDENCIES
111
- nokogiri (>= 1.18.8)
112
- rake (~> 13.0.6)
113
- rexml (>= 3.3.9)
114
- rspec (~> 3.0)
115
- rubocop-govuk (~> 5.0)
116
- zeitwerk (~> 2.6)
117
-
118
- RUBY VERSION
119
- ruby 3.4.9p82
120
-
121
- BUNDLED WITH
122
- 2.3.15
data/Makefile DELETED
@@ -1,17 +0,0 @@
1
- .DEFAULT_GOAL := help
2
- SHELL := /bin/bash
3
-
4
- .PHONY: help install test format
5
-
6
- help: ## Print help documentation
7
- @echo -e "Makefile Help for epb-view-models"
8
- @cat $(MAKEFILE_LIST) | grep -E '^[a-zA-Z_-]+:.*?## .*$$' | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
9
-
10
- install: ## Install required libraries and setup
11
- @bundle install
12
-
13
- test: ## Run all tests
14
- @bundle exec rake spec
15
-
16
- format: ## Runs Rubocop with the GOV.UK rules
17
- @bundle exec rake rubocop:autocorrect
data/Rakefile DELETED
@@ -1,12 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "bundler/gem_tasks"
4
- require "rspec/core/rake_task"
5
-
6
- RSpec::Core::RakeTask.new(:spec)
7
-
8
- require "rubocop/rake_task"
9
-
10
- RuboCop::RakeTask.new
11
-
12
- task default: %i[spec rubocop]
@@ -1,147 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <xs:schema xmlns="EPC" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="EPC" attributeFormDefault="unqualified">
3
- <xs:annotation>
4
- <xs:documentation>
5
- This schema is used to provide
6
- (a) the texts of recommendations on EPCs
7
- (b) addenda that may appear on RdSAP EPCs
8
- (c) the options for Related Party Disclosure
9
- </xs:documentation>
10
- </xs:annotation>
11
- <xs:element name="ExternalDefinitions" type="ExternalDefinitions"/>
12
- <xs:complexType name="ExternalDefinitions">
13
- <xs:sequence>
14
- <xs:element name="Revision-Number" type="xs:string">
15
- <xs:annotation>
16
- <xs:documentation>The version number of the latest revision to any of the texts</xs:documentation>
17
- </xs:annotation>
18
- </xs:element>
19
- <xs:element name="Revision-Date" type="xs:date">
20
- <xs:annotation>
21
- <xs:documentation>The date of the latest revision to any of the texts</xs:documentation>
22
- </xs:annotation>
23
- </xs:element>
24
- <xs:element name="Country" type="Country" maxOccurs="3"/>
25
- <xs:element name="Addendum" type="Addendum" minOccurs="0" maxOccurs="unbounded"/>
26
- <xs:element name="Related-Party-Disclosure" type="Related-Party-Disclosure" minOccurs="0" maxOccurs="unbounded"/>
27
- </xs:sequence>
28
- </xs:complexType>
29
- <xs:complexType name="Country">
30
- <xs:sequence>
31
- <xs:element name="Country-Code" type="UKCountryCode"/>
32
- <xs:element name="Recommendation" type="Recommendation" maxOccurs="unbounded"/>
33
- <xs:element name="Footnote-Text" type="Sentence" minOccurs="0" maxOccurs="2"/>
34
- </xs:sequence>
35
- </xs:complexType>
36
- <xs:complexType name="Recommendation">
37
- <xs:sequence>
38
- <xs:element name="Improvement-Number" type="xs:positiveInteger">
39
- <xs:annotation>
40
- <xs:documentation>Recommendations are selected by recommendation number according to the criteria in Appendix T of the SAP specification.</xs:documentation>
41
- </xs:annotation>
42
- </xs:element>
43
- <xs:element name="Improvement-Summary" type="Sentence" maxOccurs="2">
44
- <xs:annotation>
45
- <xs:documentation>A short description of the improvement. English only, or English and Welsh</xs:documentation>
46
- </xs:annotation>
47
- </xs:element>
48
- <xs:element name="Improvement-Heading" type="Sentence" maxOccurs="2">
49
- <xs:annotation>
50
- <xs:documentation>Text to precede the improvement description. English only, or English and Welsh</xs:documentation>
51
- </xs:annotation>
52
- </xs:element>
53
- <xs:element name="Improvement-Description" type="Sentence" maxOccurs="2">
54
- <xs:annotation>
55
- <xs:documentation>Detailed description of the improvement. English only, or English and Welsh</xs:documentation>
56
- </xs:annotation>
57
- </xs:element>
58
- <xs:element name="Has-Footnote" type="xs:boolean" default="false" minOccurs="0">
59
- <xs:annotation>
60
- <xs:documentation>If true the Footnote-Text appears at the bottom of the page.</xs:documentation>
61
- </xs:annotation>
62
- </xs:element>
63
- </xs:sequence>
64
- </xs:complexType>
65
- <xs:complexType name="Addendum">
66
- <xs:annotation>
67
- <xs:documentation>Addendum-Number is unique for the text concerned. If an addendum is deleted the number will not be re-used.</xs:documentation>
68
- </xs:annotation>
69
- <xs:sequence>
70
- <xs:element name="Addendum-Number" type="xs:positiveInteger">
71
- <xs:annotation>
72
- <xs:documentation>The text of an addendum is picked up via the Addendum-Number.</xs:documentation>
73
- </xs:annotation>
74
- </xs:element>
75
- <xs:element name="Circumstances" type="xs:string">
76
- <xs:annotation>
77
- <xs:documentation>The circumstances under which this addendum should be included.</xs:documentation>
78
- </xs:annotation>
79
- </xs:element>
80
- <xs:element name="Addendum-Text" type="Sentence" minOccurs="2" maxOccurs="2">
81
- <xs:annotation>
82
- <xs:documentation>Text to be included on the EPC (English and Welsh versions).</xs:documentation>
83
- </xs:annotation>
84
- </xs:element>
85
- </xs:sequence>
86
- </xs:complexType>
87
- <xs:complexType name="Related-Party-Disclosure">
88
- <xs:annotation>
89
- <xs:documentation>List of possible texts for Related Party Disclosure on EPCs</xs:documentation>
90
- </xs:annotation>
91
- <xs:sequence>
92
- <xs:element name="Disclosure-Code" type="xs:positiveInteger"/>
93
- <xs:element name="Disclosure-Text" type="Sentence" minOccurs="2" maxOccurs="2"/>
94
- </xs:sequence>
95
- </xs:complexType>
96
- <xs:simpleType name="LanguageCode">
97
- <xs:restriction base="xs:string">
98
- <xs:enumeration value="1">
99
- <xs:annotation>
100
- <xs:documentation>English</xs:documentation>
101
- </xs:annotation>
102
- </xs:enumeration>
103
- <xs:enumeration value="2">
104
- <xs:annotation>
105
- <xs:documentation>Welsh</xs:documentation>
106
- </xs:annotation>
107
- </xs:enumeration>
108
- </xs:restriction>
109
- </xs:simpleType>
110
- <xs:simpleType name="UKCountryCode">
111
- <xs:annotation>
112
- <xs:documentation>Code which indicates the country within the UK, taken from BS 6879.</xs:documentation>
113
- </xs:annotation>
114
- <xs:restriction base="xs:string">
115
- <xs:enumeration value="EAW">
116
- <xs:annotation>
117
- <xs:documentation>England and Wales</xs:documentation>
118
- </xs:annotation>
119
- </xs:enumeration>
120
- <xs:enumeration value="SCT">
121
- <xs:annotation>
122
- <xs:documentation>Scotland</xs:documentation>
123
- </xs:annotation>
124
- </xs:enumeration>
125
- <xs:enumeration value="NIR">
126
- <xs:annotation>
127
- <xs:documentation>Northern Ireland</xs:documentation>
128
- </xs:annotation>
129
- </xs:enumeration>
130
- </xs:restriction>
131
- </xs:simpleType>
132
- <xs:element name="Sentence" type="Sentence"/>
133
- <xs:complexType name="Sentence">
134
- <xs:annotation>
135
- <xs:documentation>String value with a language code for natural-language text.</xs:documentation>
136
- </xs:annotation>
137
- <xs:simpleContent>
138
- <xs:extension base="xs:string">
139
- <xs:attribute name="language" type="LanguageCode" use="required">
140
- <xs:annotation>
141
- <xs:documentation>Identifies the language that the sentence is recorded in.</xs:documentation>
142
- </xs:annotation>
143
- </xs:attribute>
144
- </xs:extension>
145
- </xs:simpleContent>
146
- </xs:complexType>
147
- </xs:schema>
@@ -1,44 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:CS="http://www.est.org.uk/epc/lodgement/estV20/DCLG-HIP/CommonStructures" xmlns:ERR="http://www.est.org.uk/epc/lodgement/estV20/DCLG-HIP/Exceptions" xmlns:HIP="http://www.est.org.uk/epc/lodgement/estV20/DCLG-HIP" elementFormDefault="qualified" attributeFormDefault="unqualified" version="LIG-14.0">
3
- <!--
4
- © Department of Communities and Local Government. © Crown copyright, 2007. The Home Condition Report logo and associated wording is a registered trade mark - any unlicensed use is not permitted. Copyright in the typographical arrangement of this document rests with the Crown. This publication, excluding logos, may be reproduced free of charge in any format or medium for research, private study, for internal circulation within an organisation or by registered scheme users. This is subject to it being reproduced accurately and not used in a misleading context.
5
-
6
- -->
7
- <!--***************************************************************************
8
- Imports and Inclusions
9
- *************************************************************************** -->
10
- <!-- Common Structures contains the standard domain-wide declarations of the infrastructure elements such as IdentifyingBlock -->
11
- <xs:import namespace="http://www.est.org.uk/epc/lodgement/estV20/DCLG-HIP/CommonStructures" schemaLocation="../CommonFiles/CommonStructures.xsd"/>
12
- <xs:import namespace="http://www.est.org.uk/epc/lodgement/estV20/DCLG-HIP/Exceptions" schemaLocation="../CommonFiles/Exceptions.xsd"/>
13
- <!-- Include templates for all Business Entities used by the message -->
14
- <xs:import namespace="http://www.est.org.uk/epc/lodgement/estV20/DCLG-HIP" schemaLocation="../Templates/HIP-Reports.xsd"/>
15
- <!--***************************************************************************
16
- Message Definition
17
- *************************************************************************** -->
18
- <xs:element name="ConditionReportChangeAccessRequest_1">
19
- <xs:complexType>
20
- <xs:sequence>
21
- <xs:element name="Identification">
22
- <xs:complexType>
23
- <xs:complexContent>
24
- <xs:extension base="CS:DefaultIdBlock">
25
- <xs:sequence>
26
- <xs:element name="Identifier" type="HIP:ReportKeyFields"/>
27
- </xs:sequence>
28
- </xs:extension>
29
- </xs:complexContent>
30
- </xs:complexType>
31
- </xs:element>
32
- <xs:element name="Configuration" type="CS:UpdateRequestConfigBlock"/>
33
- <xs:element name="Content">
34
- <xs:complexType>
35
- <xs:sequence>
36
- <xs:element name="OldCode" type="HIP:RestrictedAccessCode"/>
37
- <xs:element name="NewCode" type="HIP:RestrictedAccessCode"/>
38
- </xs:sequence>
39
- </xs:complexType>
40
- </xs:element>
41
- </xs:sequence>
42
- </xs:complexType>
43
- </xs:element>
44
- </xs:schema>
@@ -1,47 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:CS="http://www.est.org.uk/epc/lodgement/estV20/DCLG-HIP/CommonStructures" xmlns:ERR="http://www.est.org.uk/epc/lodgement/estV20/DCLG-HIP/Exceptions" xmlns:pfdt="http://www.est.org.uk/epc/lodgement/estV20/DCLG-HIP/BaseDataTypes" xmlns:HIP="http://www.est.org.uk/epc/lodgement/estV20/DCLG-HIP" elementFormDefault="qualified" attributeFormDefault="unqualified" version="LIG-14.0">
3
- <!--
4
- © Department of Communities and Local Government. © Crown copyright, 2007. The Home Condition Report logo and associated wording is a registered trade mark - any unlicensed use is not permitted. Copyright in the typographical arrangement of this document rests with the Crown. This publication, excluding logos, may be reproduced free of charge in any format or medium for research, private study, for internal circulation within an organisation or by registered scheme users. This is subject to it being reproduced accurately and not used in a misleading context.
5
-
6
- -->
7
- <!--***************************************************************************
8
- Imports and Inclusions
9
- *************************************************************************** -->
10
- <!-- Common Structures contains the standard domain-wide declarations of the infrastructure elements such as IdentifyingBlock -->
11
- <xs:import namespace="http://www.est.org.uk/epc/lodgement/estV20/DCLG-HIP/CommonStructures" schemaLocation="../CommonFiles/CommonStructures.xsd"/>
12
- <xs:import namespace="http://www.est.org.uk/epc/lodgement/estV20/DCLG-HIP/Exceptions" schemaLocation="../CommonFiles/Exceptions.xsd"/>
13
- <xs:import namespace="http://www.est.org.uk/epc/lodgement/estV20/DCLG-HIP/BaseDataTypes" schemaLocation="../UDT/BaseDataTypes.xsd"/>
14
- <!-- Include templates for all Business Entities used by the message -->
15
- <xs:import namespace="http://www.est.org.uk/epc/lodgement/estV20/DCLG-HIP" schemaLocation="../Templates/HIP-Reports.xsd"/>
16
- <!--***************************************************************************
17
- Message Definition
18
- *************************************************************************** -->
19
- <xs:element name="ConditionReportChangeAccessResponse_1">
20
- <xs:complexType>
21
- <xs:sequence>
22
- <xs:element name="Identification">
23
- <xs:complexType>
24
- <xs:complexContent>
25
- <xs:extension base="CS:DefaultIdBlock">
26
- <xs:sequence>
27
- <xs:element name="Identifier" type="HIP:ReportKeyFields"/>
28
- </xs:sequence>
29
- </xs:extension>
30
- </xs:complexContent>
31
- </xs:complexType>
32
- </xs:element>
33
- <xs:element name="Configuration" type="CS:UpdateRequestConfigBlock" minOccurs="0"/>
34
- <xs:element name="Content">
35
- <xs:complexType>
36
- <xs:choice>
37
- <!-- If everything is OK then no response is actually required but a success flag doesn't hurt! -->
38
- <xs:element name="Success" type="pfdt:Flag" fixed="Y"/>
39
- <!-- This is the response if anything is wrong with the actual data in the message -->
40
- <xs:element name="ExceptionList" type="ERR:ExceptionList"/>
41
- </xs:choice>
42
- </xs:complexType>
43
- </xs:element>
44
- </xs:sequence>
45
- </xs:complexType>
46
- </xs:element>
47
- </xs:schema>
@@ -1,44 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:CS="http://www.est.org.uk/epc/lodgement/estV20/DCLG-HIP/CommonStructures" xmlns:ERR="http://www.est.org.uk/epc/lodgement/estV20/DCLG-HIP/Exceptions" xmlns:HIP="http://www.est.org.uk/epc/lodgement/estV20/DCLG-HIP" targetNamespace="http://www.est.org.uk/epc/lodgement" elementFormDefault="qualified" attributeFormDefault="unqualified" version="LIG-14.0">
3
- <!--
4
- © Department of Communities and Local Government. © Crown copyright, 2007. The Home Condition Report logo and associated wording is a registered trade mark - any unlicensed use is not permitted. Copyright in the typographical arrangement of this document rests with the Crown. This publication, excluding logos, may be reproduced free of charge in any format or medium for research, private study, for internal circulation within an organisation or by registered scheme users. This is subject to it being reproduced accurately and not used in a misleading context.
5
-
6
- -->
7
- <!--***************************************************************************
8
- Imports and Inclusions
9
- *************************************************************************** -->
10
- <!-- Common Structures contains the standard domain-wide declarations of the infrastructure elements such as IdentifyingBlock -->
11
- <xs:import namespace="http://www.est.org.uk/epc/lodgement/estV20/DCLG-HIP/CommonStructures" schemaLocation="../CommonFiles/CommonStructures.xsd"/>
12
- <xs:import namespace="http://www.est.org.uk/epc/lodgement/estV20/DCLG-HIP/Exceptions" schemaLocation="../CommonFiles/Exceptions.xsd"/>
13
- <!-- Include templates for all Business Entities used by the message -->
14
- <xs:import namespace="http://www.est.org.uk/epc/lodgement/estV20/DCLG-HIP" schemaLocation="../Templates/HIP-Reports.xsd"/>
15
- <!--***************************************************************************
16
- Message Definition
17
- *************************************************************************** -->
18
- <xs:element name="ConditionReportChangeStatusRequest_1">
19
- <xs:complexType>
20
- <xs:sequence>
21
- <xs:element name="Identification">
22
- <xs:complexType>
23
- <xs:complexContent>
24
- <xs:extension base="CS:DefaultIdBlock">
25
- <xs:sequence>
26
- <xs:element name="Identifier" type="HIP:ReportKeyFields"/>
27
- </xs:sequence>
28
- </xs:extension>
29
- </xs:complexContent>
30
- </xs:complexType>
31
- </xs:element>
32
- <xs:element name="Configuration" type="CS:UpdateRequestConfigBlock"/>
33
- <xs:element name="Content">
34
- <xs:complexType>
35
- <xs:sequence>
36
- <xs:element name="OldStatus" type="HIP:ReportStatusCode"/>
37
- <xs:element name="NewStatus" type="HIP:ReportStatusCode"/>
38
- </xs:sequence>
39
- </xs:complexType>
40
- </xs:element>
41
- </xs:sequence>
42
- </xs:complexType>
43
- </xs:element>
44
- </xs:schema>