@defra/forms-engine-plugin 4.0.40 → 4.0.42

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 (94) hide show
  1. package/.public/javascripts/application.min.js +1 -1
  2. package/.public/javascripts/application.min.js.map +1 -1
  3. package/.public/javascripts/shared.min.js +1 -1
  4. package/.public/javascripts/shared.min.js.map +1 -1
  5. package/.public/stylesheets/application.min.css +2 -2
  6. package/.public/stylesheets/application.min.css.map +1 -1
  7. package/.server/client/javascripts/location-map.d.ts +93 -0
  8. package/.server/client/javascripts/location-map.js +745 -0
  9. package/.server/client/javascripts/location-map.js.map +1 -0
  10. package/.server/client/javascripts/shared.d.ts +4 -0
  11. package/.server/client/javascripts/shared.js +5 -0
  12. package/.server/client/javascripts/shared.js.map +1 -1
  13. package/.server/client/stylesheets/_location-fields.scss +11 -0
  14. package/.server/client/stylesheets/application.scss +0 -1
  15. package/.server/client/stylesheets/shared.scss +1 -0
  16. package/.server/config/index.js +1 -1
  17. package/.server/config/index.js.map +1 -1
  18. package/.server/server/plugins/engine/outputFormatters/adapter/v1.js +1 -2
  19. package/.server/server/plugins/engine/outputFormatters/adapter/v1.js.map +1 -1
  20. package/.server/server/plugins/engine/plugin.js +11 -0
  21. package/.server/server/plugins/engine/plugin.js.map +1 -1
  22. package/.server/server/plugins/engine/views/components/_location-field-base.html +1 -1
  23. package/.server/server/plugins/engine/views/components/osgridreffield.html +4 -2
  24. package/.server/server/plugins/map/index.d.ts +7 -0
  25. package/.server/server/plugins/map/index.js +20 -0
  26. package/.server/server/plugins/map/index.js.map +1 -0
  27. package/.server/server/plugins/map/routes/index.d.ts +20 -0
  28. package/.server/server/plugins/map/routes/index.js +128 -0
  29. package/.server/server/plugins/map/routes/index.js.map +1 -0
  30. package/.server/server/plugins/map/routes/vts/OS_VTS_3857/resources/sprites/dark.json +690 -0
  31. package/.server/server/plugins/map/routes/vts/OS_VTS_3857/resources/sprites/dark.png +0 -0
  32. package/.server/server/plugins/map/routes/vts/OS_VTS_3857/resources/sprites/dark@2x.json +690 -0
  33. package/.server/server/plugins/map/routes/vts/OS_VTS_3857/resources/sprites/dark@2x.png +0 -0
  34. package/.server/server/plugins/map/routes/vts/OS_VTS_3857/resources/sprites/greyscale.json +690 -0
  35. package/.server/server/plugins/map/routes/vts/OS_VTS_3857/resources/sprites/greyscale.png +0 -0
  36. package/.server/server/plugins/map/routes/vts/OS_VTS_3857/resources/sprites/greyscale@2x.json +690 -0
  37. package/.server/server/plugins/map/routes/vts/OS_VTS_3857/resources/sprites/greyscale@2x.png +0 -0
  38. package/.server/server/plugins/map/routes/vts/OS_VTS_3857/resources/sprites/sprite.json +690 -0
  39. package/.server/server/plugins/map/routes/vts/OS_VTS_3857/resources/sprites/sprite.png +0 -0
  40. package/.server/server/plugins/map/routes/vts/OS_VTS_3857/resources/sprites/sprite@2x.json +690 -0
  41. package/.server/server/plugins/map/routes/vts/OS_VTS_3857/resources/sprites/sprite@2x.png +0 -0
  42. package/.server/server/plugins/map/routes/vts/OS_VTS_3857_Black_and_White.json +7858 -0
  43. package/.server/server/plugins/map/routes/vts/OS_VTS_3857_Dark.json +7669 -0
  44. package/.server/server/plugins/map/routes/vts/OS_VTS_3857_Outdoor.json +7653 -0
  45. package/.server/server/plugins/map/routes/vts/README.md +5 -0
  46. package/.server/server/plugins/map/service.d.ts +14 -0
  47. package/.server/server/plugins/map/service.js +76 -0
  48. package/.server/server/plugins/map/service.js.map +1 -0
  49. package/.server/server/plugins/map/service.test.js +120 -0
  50. package/.server/server/plugins/map/service.test.js.map +1 -0
  51. package/.server/server/plugins/map/test/__stubs__/find.d.ts +3 -0
  52. package/.server/server/plugins/map/test/__stubs__/find.js +216 -0
  53. package/.server/server/plugins/map/test/__stubs__/find.js.map +1 -0
  54. package/.server/server/plugins/map/test/__stubs__/nearest.d.ts +37 -0
  55. package/.server/server/plugins/map/test/__stubs__/nearest.js +38 -0
  56. package/.server/server/plugins/map/test/__stubs__/nearest.js.map +1 -0
  57. package/.server/server/plugins/map/types.d.ts +232 -0
  58. package/.server/server/plugins/map/types.js +120 -0
  59. package/.server/server/plugins/map/types.js.map +1 -0
  60. package/package.json +3 -1
  61. package/src/client/javascripts/location-map.js +766 -0
  62. package/src/client/javascripts/shared.js +4 -0
  63. package/src/client/stylesheets/_location-fields.scss +11 -0
  64. package/src/client/stylesheets/application.scss +0 -1
  65. package/src/client/stylesheets/shared.scss +1 -0
  66. package/src/config/index.ts +1 -1
  67. package/src/server/plugins/engine/outputFormatters/adapter/v1.test.ts +1 -1
  68. package/src/server/plugins/engine/outputFormatters/adapter/v1.ts +1 -2
  69. package/src/server/plugins/engine/plugin.ts +11 -0
  70. package/src/server/plugins/engine/views/components/_location-field-base.html +1 -1
  71. package/src/server/plugins/engine/views/components/osgridreffield.html +4 -2
  72. package/src/server/plugins/map/index.js +19 -0
  73. package/src/server/plugins/map/routes/index.js +146 -0
  74. package/src/server/plugins/map/routes/vts/OS_VTS_3857/resources/sprites/dark.json +690 -0
  75. package/src/server/plugins/map/routes/vts/OS_VTS_3857/resources/sprites/dark.png +0 -0
  76. package/src/server/plugins/map/routes/vts/OS_VTS_3857/resources/sprites/dark@2x.json +690 -0
  77. package/src/server/plugins/map/routes/vts/OS_VTS_3857/resources/sprites/dark@2x.png +0 -0
  78. package/src/server/plugins/map/routes/vts/OS_VTS_3857/resources/sprites/greyscale.json +690 -0
  79. package/src/server/plugins/map/routes/vts/OS_VTS_3857/resources/sprites/greyscale.png +0 -0
  80. package/src/server/plugins/map/routes/vts/OS_VTS_3857/resources/sprites/greyscale@2x.json +690 -0
  81. package/src/server/plugins/map/routes/vts/OS_VTS_3857/resources/sprites/greyscale@2x.png +0 -0
  82. package/src/server/plugins/map/routes/vts/OS_VTS_3857/resources/sprites/sprite.json +690 -0
  83. package/src/server/plugins/map/routes/vts/OS_VTS_3857/resources/sprites/sprite.png +0 -0
  84. package/src/server/plugins/map/routes/vts/OS_VTS_3857/resources/sprites/sprite@2x.json +690 -0
  85. package/src/server/plugins/map/routes/vts/OS_VTS_3857/resources/sprites/sprite@2x.png +0 -0
  86. package/src/server/plugins/map/routes/vts/OS_VTS_3857_Black_and_White.json +7858 -0
  87. package/src/server/plugins/map/routes/vts/OS_VTS_3857_Dark.json +7669 -0
  88. package/src/server/plugins/map/routes/vts/OS_VTS_3857_Outdoor.json +7653 -0
  89. package/src/server/plugins/map/routes/vts/README.md +5 -0
  90. package/src/server/plugins/map/service.js +84 -0
  91. package/src/server/plugins/map/service.test.js +144 -0
  92. package/src/server/plugins/map/test/__stubs__/find.js +271 -0
  93. package/src/server/plugins/map/test/__stubs__/nearest.js +46 -0
  94. package/src/server/plugins/map/types.js +119 -0
@@ -0,0 +1,232 @@
1
+ export type MapConfiguration = {
2
+ ordnanceSurveyApiKey: string;
3
+ };
4
+ /**
5
+ * Map proxy query params
6
+ */
7
+ export type MapProxyQuery = {
8
+ /**
9
+ * - the proxied url
10
+ */
11
+ url: string;
12
+ };
13
+ /**
14
+ * Map geocode query params
15
+ */
16
+ export type MapGeocodeQuery = {
17
+ /**
18
+ * - name query
19
+ */
20
+ query: string;
21
+ };
22
+ /**
23
+ * Map reverse geocode query params
24
+ */
25
+ export type MapReverseGeocodeQuery = {
26
+ /**
27
+ * - the Easting point
28
+ */
29
+ easting: number;
30
+ /**
31
+ * - the Northing point
32
+ */
33
+ northing: number;
34
+ };
35
+ /**
36
+ * Map geocode get request
37
+ */
38
+ export type MapProxyGetRequestRefs = {
39
+ /**
40
+ * - Request query
41
+ */
42
+ Query: MapProxyQuery;
43
+ };
44
+ /**
45
+ * Map geocode get request
46
+ */
47
+ export type MapGeocodeGetRequestRefs = {
48
+ /**
49
+ * - Request query
50
+ */
51
+ Query: MapGeocodeQuery;
52
+ };
53
+ /**
54
+ * Map reverst geocode get request
55
+ */
56
+ export type MapReverseGeocodeGetRequestRefs = {
57
+ /**
58
+ * - Request query
59
+ */
60
+ Query: MapReverseGeocodeQuery;
61
+ };
62
+ export type MapProxyRequestRefs = MapProxyGetRequestRefs;
63
+ export type MapGeocodeRequestRefs = MapGeocodeGetRequestRefs;
64
+ export type MapReverseGeocodeRequestRefs = MapReverseGeocodeGetRequestRefs;
65
+ export type MapProxyGetRequest = Request<MapGeocodeGetRequestRefs>;
66
+ export type MapGeocodeGetRequest = Request<MapGeocodeGetRequestRefs>;
67
+ export type MapReverseGeocodeGetRequest = Request<MapReverseGeocodeGetRequestRefs>;
68
+ export type MapRequest = MapProxyGetRequest | MapGeocodeGetRequest | MapReverseGeocodeGetRequest;
69
+ export type OsNamesFindResponse = {
70
+ /**
71
+ * - Metadata about the search request and results.
72
+ */
73
+ header: OsNamesFindHeader;
74
+ /**
75
+ * - An array of matched place records from the search.
76
+ */
77
+ results: OsNamesFindResult[];
78
+ };
79
+ export type OsNamesFindHeader = {
80
+ /**
81
+ * - The query URI (usually same as search text).
82
+ */
83
+ uri: string;
84
+ /**
85
+ * - The original text query string passed to the API.
86
+ */
87
+ query: string;
88
+ /**
89
+ * - The response format returned (e.g., "JSON").
90
+ */
91
+ format: string;
92
+ /**
93
+ * - The maximum number of results requested.
94
+ */
95
+ maxresults: number;
96
+ /**
97
+ * - The offset used in the search results.
98
+ */
99
+ offset: number;
100
+ /**
101
+ * - The total number of results that matched the query.
102
+ */
103
+ totalresults: number;
104
+ /**
105
+ * - The original filter string passed to the API.
106
+ */
107
+ filter: string;
108
+ };
109
+ export type OsNamesFindGazetteerEntry = {
110
+ /**
111
+ * - Unique identifier for the place/feature.
112
+ */
113
+ ID: string;
114
+ /**
115
+ * - A URI (identifier) for this named feature.
116
+ */
117
+ NAMES_URI: string;
118
+ /**
119
+ * - Primary name of the feature.
120
+ */
121
+ NAME1: string;
122
+ /**
123
+ * - General type classification of the feature.
124
+ */
125
+ TYPE: string;
126
+ /**
127
+ * - Local or more specific type classification.
128
+ */
129
+ LOCAL_TYPE: string;
130
+ /**
131
+ * - Easting coordinate (British National Grid).
132
+ */
133
+ GEOMETRY_X: number;
134
+ /**
135
+ * - Northing coordinate (British National Grid).
136
+ */
137
+ GEOMETRY_Y: number;
138
+ /**
139
+ * - Most detailed resolution available.
140
+ */
141
+ MOST_DETAIL_VIEW_RES: number;
142
+ /**
143
+ * - Least detailed resolution available.
144
+ */
145
+ LEAST_DETAIL_VIEW_RES: number;
146
+ /**
147
+ * - Minimum bounding box X (easting).
148
+ */
149
+ MBR_XMIN?: number | undefined;
150
+ /**
151
+ * - Minimum bounding box Y (northing).
152
+ */
153
+ MBR_YMIN?: number | undefined;
154
+ /**
155
+ * - Maximum bounding box X (easting).
156
+ */
157
+ MBR_XMAX?: number | undefined;
158
+ /**
159
+ * - Maximum bounding box Y (northing).
160
+ */
161
+ MBR_YMAX?: number | undefined;
162
+ /**
163
+ * - (Optional) District borough.
164
+ */
165
+ DISTRICT_BOROUGH?: string | undefined;
166
+ /**
167
+ * - (Optional) URI for the district borough.
168
+ */
169
+ DISTRICT_BOROUGH_URI?: string | undefined;
170
+ /**
171
+ * - (Optional) Type of the district borough.
172
+ */
173
+ DISTRICT_BOROUGH_TYPE?: string | undefined;
174
+ /**
175
+ * - (Optional) Postcode district.
176
+ */
177
+ POSTCODE_DISTRICT?: string | undefined;
178
+ /**
179
+ * - (Optional) URI for the postcode district.
180
+ */
181
+ POSTCODE_DISTRICT_URI?: string | undefined;
182
+ /**
183
+ * - (Optional) Name of associated populated place.
184
+ */
185
+ POPULATED_PLACE?: string | undefined;
186
+ /**
187
+ * - (Optional) URI of populated place.
188
+ */
189
+ POPULATED_PLACE_URI?: string | undefined;
190
+ /**
191
+ * - (Optional) Type of populated place.
192
+ */
193
+ POPULATED_PLACE_TYPE?: string | undefined;
194
+ /**
195
+ * - (Optional) County or unitary authority name.
196
+ */
197
+ COUNTY_UNITARY?: string | undefined;
198
+ /**
199
+ * - (Optional) URI for county/unitary authority.
200
+ */
201
+ COUNTY_UNITARY_URI?: string | undefined;
202
+ /**
203
+ * - (Optional) Classification of county/unitary authority.
204
+ */
205
+ COUNTY_UNITARY_TYPE?: string | undefined;
206
+ /**
207
+ * - (Optional) Region name.
208
+ */
209
+ REGION?: string | undefined;
210
+ /**
211
+ * - (Optional) URI for region.
212
+ */
213
+ REGION_URI?: string | undefined;
214
+ /**
215
+ * - (Optional) Country name.
216
+ */
217
+ COUNTRY?: string | undefined;
218
+ /**
219
+ * - (Optional) URI for country.
220
+ */
221
+ COUNTRY_URI?: string | undefined;
222
+ };
223
+ /**
224
+ * OS names GAZETTEER_ENTRY response
225
+ */
226
+ export type OsNamesFindResult = {
227
+ /**
228
+ * - Gazetteer entry
229
+ */
230
+ GAZETTEER_ENTRY: OsNamesFindGazetteerEntry;
231
+ };
232
+ import type { Request } from '@hapi/hapi';
@@ -0,0 +1,120 @@
1
+ /**
2
+ * @typedef {{
3
+ * ordnanceSurveyApiKey: string
4
+ * }} MapConfiguration
5
+ */
6
+
7
+ //
8
+ // Route types
9
+ //
10
+
11
+ /**
12
+ * Map proxy query params
13
+ * @typedef {object} MapProxyQuery
14
+ * @property {string} url - the proxied url
15
+ */
16
+
17
+ /**
18
+ * Map geocode query params
19
+ * @typedef {object} MapGeocodeQuery
20
+ * @property {string} query - name query
21
+ */
22
+
23
+ /**
24
+ * Map reverse geocode query params
25
+ * @typedef {object} MapReverseGeocodeQuery
26
+ * @property {number} easting - the Easting point
27
+ * @property {number} northing - the Northing point
28
+ */
29
+
30
+ /**
31
+ * Map geocode get request
32
+ * @typedef {object} MapProxyGetRequestRefs
33
+ * @property {MapProxyQuery} Query - Request query
34
+ */
35
+
36
+ /**
37
+ * Map geocode get request
38
+ * @typedef {object} MapGeocodeGetRequestRefs
39
+ * @property {MapGeocodeQuery} Query - Request query
40
+ */
41
+
42
+ /**
43
+ * Map reverst geocode get request
44
+ * @typedef {object} MapReverseGeocodeGetRequestRefs
45
+ * @property {MapReverseGeocodeQuery} Query - Request query
46
+ */
47
+
48
+ /**
49
+ * @typedef {MapProxyGetRequestRefs} MapProxyRequestRefs
50
+ * @typedef {MapGeocodeGetRequestRefs} MapGeocodeRequestRefs
51
+ * @typedef {MapReverseGeocodeGetRequestRefs} MapReverseGeocodeRequestRefs
52
+ * @typedef {Request<MapGeocodeGetRequestRefs>} MapProxyGetRequest
53
+ * @typedef {Request<MapGeocodeGetRequestRefs>} MapGeocodeGetRequest
54
+ * @typedef {Request<MapReverseGeocodeGetRequestRefs>} MapReverseGeocodeGetRequest
55
+ * @typedef {MapProxyGetRequest | MapGeocodeGetRequest | MapReverseGeocodeGetRequest} MapRequest
56
+ */
57
+
58
+ //
59
+ // Service types
60
+ //
61
+
62
+ /**
63
+ * @typedef {object} OsNamesFindResponse
64
+ * @property {OsNamesFindHeader} header - Metadata about the search request and results.
65
+ * @property {OsNamesFindResult[]} results - An array of matched place records from the search.
66
+ */
67
+
68
+ /**
69
+ * @typedef {object} OsNamesFindHeader
70
+ * @property {string} uri - The query URI (usually same as search text).
71
+ * @property {string} query - The original text query string passed to the API.
72
+ * @property {string} format - The response format returned (e.g., "JSON").
73
+ * @property {number} maxresults - The maximum number of results requested.
74
+ * @property {number} offset - The offset used in the search results.
75
+ * @property {number} totalresults - The total number of results that matched the query.
76
+ * @property {string} filter - The original filter string passed to the API.
77
+ */
78
+
79
+ /**
80
+ * @typedef {object} OsNamesFindGazetteerEntry
81
+ * @property {string} ID - Unique identifier for the place/feature.
82
+ * @property {string} NAMES_URI - A URI (identifier) for this named feature.
83
+ * @property {string} NAME1 - Primary name of the feature.
84
+ * @property {string} TYPE - General type classification of the feature.
85
+ * @property {string} LOCAL_TYPE - Local or more specific type classification.
86
+ * @property {number} GEOMETRY_X - Easting coordinate (British National Grid).
87
+ * @property {number} GEOMETRY_Y - Northing coordinate (British National Grid).
88
+ * @property {number} MOST_DETAIL_VIEW_RES - Most detailed resolution available.
89
+ * @property {number} LEAST_DETAIL_VIEW_RES - Least detailed resolution available.
90
+ * @property {number} [MBR_XMIN] - Minimum bounding box X (easting).
91
+ * @property {number} [MBR_YMIN] - Minimum bounding box Y (northing).
92
+ * @property {number} [MBR_XMAX] - Maximum bounding box X (easting).
93
+ * @property {number} [MBR_YMAX] - Maximum bounding box Y (northing).
94
+ * @property {string} [DISTRICT_BOROUGH] - (Optional) District borough.
95
+ * @property {string} [DISTRICT_BOROUGH_URI] - (Optional) URI for the district borough.
96
+ * @property {string} [DISTRICT_BOROUGH_TYPE] - (Optional) Type of the district borough.
97
+ * @property {string} [POSTCODE_DISTRICT] - (Optional) Postcode district.
98
+ * @property {string} [POSTCODE_DISTRICT_URI] - (Optional) URI for the postcode district.
99
+ * @property {string} [POPULATED_PLACE] - (Optional) Name of associated populated place.
100
+ * @property {string} [POPULATED_PLACE_URI] - (Optional) URI of populated place.
101
+ * @property {string} [POPULATED_PLACE_TYPE] - (Optional) Type of populated place.
102
+ * @property {string} [COUNTY_UNITARY] - (Optional) County or unitary authority name.
103
+ * @property {string} [COUNTY_UNITARY_URI] - (Optional) URI for county/unitary authority.
104
+ * @property {string} [COUNTY_UNITARY_TYPE] - (Optional) Classification of county/unitary authority.
105
+ * @property {string} [REGION] - (Optional) Region name.
106
+ * @property {string} [REGION_URI] - (Optional) URI for region.
107
+ * @property {string} [COUNTRY] - (Optional) Country name.
108
+ * @property {string} [COUNTRY_URI] - (Optional) URI for country.
109
+ */
110
+
111
+ /**
112
+ * OS names GAZETTEER_ENTRY response
113
+ * @typedef {object} OsNamesFindResult
114
+ * @property {OsNamesFindGazetteerEntry} GAZETTEER_ENTRY - Gazetteer entry
115
+ */
116
+
117
+ /**
118
+ * @import { Request } from '@hapi/hapi'
119
+ */
120
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","names":[],"sources":["../../../../src/server/plugins/map/types.js"],"sourcesContent":["/**\n * @typedef {{\n * ordnanceSurveyApiKey: string\n * }} MapConfiguration\n */\n\n//\n// Route types\n//\n\n/**\n * Map proxy query params\n * @typedef {object} MapProxyQuery\n * @property {string} url - the proxied url\n */\n\n/**\n * Map geocode query params\n * @typedef {object} MapGeocodeQuery\n * @property {string} query - name query\n */\n\n/**\n * Map reverse geocode query params\n * @typedef {object} MapReverseGeocodeQuery\n * @property {number} easting - the Easting point\n * @property {number} northing - the Northing point\n */\n\n/**\n * Map geocode get request\n * @typedef {object} MapProxyGetRequestRefs\n * @property {MapProxyQuery} Query - Request query\n */\n\n/**\n * Map geocode get request\n * @typedef {object} MapGeocodeGetRequestRefs\n * @property {MapGeocodeQuery} Query - Request query\n */\n\n/**\n * Map reverst geocode get request\n * @typedef {object} MapReverseGeocodeGetRequestRefs\n * @property {MapReverseGeocodeQuery} Query - Request query\n */\n\n/**\n * @typedef {MapProxyGetRequestRefs} MapProxyRequestRefs\n * @typedef {MapGeocodeGetRequestRefs} MapGeocodeRequestRefs\n * @typedef {MapReverseGeocodeGetRequestRefs} MapReverseGeocodeRequestRefs\n * @typedef {Request<MapGeocodeGetRequestRefs>} MapProxyGetRequest\n * @typedef {Request<MapGeocodeGetRequestRefs>} MapGeocodeGetRequest\n * @typedef {Request<MapReverseGeocodeGetRequestRefs>} MapReverseGeocodeGetRequest\n * @typedef {MapProxyGetRequest | MapGeocodeGetRequest | MapReverseGeocodeGetRequest} MapRequest\n */\n\n//\n// Service types\n//\n\n/**\n * @typedef {object} OsNamesFindResponse\n * @property {OsNamesFindHeader} header - Metadata about the search request and results.\n * @property {OsNamesFindResult[]} results - An array of matched place records from the search.\n */\n\n/**\n * @typedef {object} OsNamesFindHeader\n * @property {string} uri - The query URI (usually same as search text).\n * @property {string} query - The original text query string passed to the API.\n * @property {string} format - The response format returned (e.g., \"JSON\").\n * @property {number} maxresults - The maximum number of results requested.\n * @property {number} offset - The offset used in the search results.\n * @property {number} totalresults - The total number of results that matched the query.\n * @property {string} filter - The original filter string passed to the API.\n */\n\n/**\n * @typedef {object} OsNamesFindGazetteerEntry\n * @property {string} ID - Unique identifier for the place/feature.\n * @property {string} NAMES_URI - A URI (identifier) for this named feature.\n * @property {string} NAME1 - Primary name of the feature.\n * @property {string} TYPE - General type classification of the feature.\n * @property {string} LOCAL_TYPE - Local or more specific type classification.\n * @property {number} GEOMETRY_X - Easting coordinate (British National Grid).\n * @property {number} GEOMETRY_Y - Northing coordinate (British National Grid).\n * @property {number} MOST_DETAIL_VIEW_RES - Most detailed resolution available.\n * @property {number} LEAST_DETAIL_VIEW_RES - Least detailed resolution available.\n * @property {number} [MBR_XMIN] - Minimum bounding box X (easting).\n * @property {number} [MBR_YMIN] - Minimum bounding box Y (northing).\n * @property {number} [MBR_XMAX] - Maximum bounding box X (easting).\n * @property {number} [MBR_YMAX] - Maximum bounding box Y (northing).\n * @property {string} [DISTRICT_BOROUGH] - (Optional) District borough.\n * @property {string} [DISTRICT_BOROUGH_URI] - (Optional) URI for the district borough.\n * @property {string} [DISTRICT_BOROUGH_TYPE] - (Optional) Type of the district borough.\n * @property {string} [POSTCODE_DISTRICT] - (Optional) Postcode district.\n * @property {string} [POSTCODE_DISTRICT_URI] - (Optional) URI for the postcode district.\n * @property {string} [POPULATED_PLACE] - (Optional) Name of associated populated place.\n * @property {string} [POPULATED_PLACE_URI] - (Optional) URI of populated place.\n * @property {string} [POPULATED_PLACE_TYPE] - (Optional) Type of populated place.\n * @property {string} [COUNTY_UNITARY] - (Optional) County or unitary authority name.\n * @property {string} [COUNTY_UNITARY_URI] - (Optional) URI for county/unitary authority.\n * @property {string} [COUNTY_UNITARY_TYPE] - (Optional) Classification of county/unitary authority.\n * @property {string} [REGION] - (Optional) Region name.\n * @property {string} [REGION_URI] - (Optional) URI for region.\n * @property {string} [COUNTRY] - (Optional) Country name.\n * @property {string} [COUNTRY_URI] - (Optional) URI for country.\n */\n\n/**\n * OS names GAZETTEER_ENTRY response\n * @typedef {object} OsNamesFindResult\n * @property {OsNamesFindGazetteerEntry} GAZETTEER_ENTRY - Gazetteer entry\n */\n\n/**\n * @import { Request } from '@hapi/hapi'\n */\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defra/forms-engine-plugin",
3
- "version": "4.0.40",
3
+ "version": "4.0.42",
4
4
  "description": "Defra forms engine",
5
5
  "type": "module",
6
6
  "files": [
@@ -72,6 +72,7 @@
72
72
  "dependencies": {
73
73
  "@defra/forms-model": "^3.0.603",
74
74
  "@defra/hapi-tracing": "^1.29.0",
75
+ "@defra/interactive-map": "^0.0.3-alpha",
75
76
  "@elastic/ecs-pino-format": "^1.5.0",
76
77
  "@hapi/boom": "^10.0.1",
77
78
  "@hapi/catbox": "^12.1.1",
@@ -96,6 +97,7 @@
96
97
  "date-fns": "^4.1.0",
97
98
  "dotenv": "^17.2.3",
98
99
  "expr-eval-fork": "^3.0.0",
100
+ "geodesy": "^2.4.0",
99
101
  "govuk-frontend": "^5.13.0",
100
102
  "hapi-pino": "^13.0.0",
101
103
  "hapi-pulse": "^3.0.1",