@ukhomeoffice/cop-react-form-renderer 6.15.7-alpha → 6.15.7

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 (43) hide show
  1. package/dist/components/CollectionSummary/BannerStrip.scss +4 -0
  2. package/dist/components/FormComponent/FormComponent.js +6 -0
  3. package/dist/components/FormComponent/helpers/addLabel.js +3 -2
  4. package/dist/components/FormPage/FormPage.js +28 -17
  5. package/dist/components/FormPage/FormPage.test.js +53 -0
  6. package/dist/components/FormRenderer/FormRenderer.js +5 -10
  7. package/dist/components/FormRenderer/clear-uncompleted-routes/test-data/forms/cop-reassign-task-to-rcc.json +445 -0
  8. package/dist/components/FormRenderer/clear-uncompleted-routes/test-data/forms/form-hidden-component-show-when-in-component-and-page.json +62 -0
  9. package/dist/components/FormRenderer/clear-uncompleted-routes/test-data/forms/form-hidden-page-same-component-reused.json +61 -0
  10. package/dist/components/FormRenderer/clear-uncompleted-routes/test-data/forms/form-page-same-component-reused-one-shown.json +74 -0
  11. package/dist/components/FormRenderer/clear-uncompleted-routes/test-data/input/cop-airpax-carrier.json +407 -0
  12. package/dist/components/FormRenderer/clear-uncompleted-routes/test-data/input/cop-airpax-change-what-happened-before.json +300 -0
  13. package/dist/components/FormRenderer/clear-uncompleted-routes/test-data/input/data-hidden-component-show-when-in-component-and-page.json +6 -0
  14. package/dist/components/FormRenderer/clear-uncompleted-routes/test-data/input/data-hidden-page-same-component-reused.json +6 -0
  15. package/dist/components/FormRenderer/clear-uncompleted-routes/test-data/input/data-page-same-component-reused-one-shown.json +8 -0
  16. package/dist/components/FormRenderer/clear-uncompleted-routes/test-data/input/reassign-to-rcc.json +72 -0
  17. package/dist/components/FormRenderer/clear-uncompleted-routes/test-data/output/cop-airpax-change-what-happened-after.json +280 -0
  18. package/dist/components/FormRenderer/clear-uncompleted-routes/test-data/output/data-hidden-component-show-when-in-component-and-page-removed.json +5 -0
  19. package/dist/components/FormRenderer/clear-uncompleted-routes/test-data/output/data-hidden-page-same-component-reused-removed.json +5 -0
  20. package/dist/components/FormRenderer/clear-uncompleted-routes/test-data/output/data-page-same-component-reused-one-shown-removed.json +7 -0
  21. package/dist/components/FormRenderer/helpers/clearOutUncompletedRoutes.js +259 -289
  22. package/dist/components/FormRenderer/helpers/clearOutUncompletedRoutes.test.js +89 -27
  23. package/dist/components/FormRenderer/helpers/clearOutUncompletedRoutesUtils.js +389 -0
  24. package/dist/components/FormRenderer/helpers/clearOutUncompletedRoutesUtils.test.js +559 -0
  25. package/dist/components/FormRenderer/onCYAAction.js +0 -2
  26. package/dist/components/FormRenderer/onCYAAction.test.js +5 -0
  27. package/dist/components/FormRenderer/onPageAction.js +0 -1
  28. package/dist/hooks/useGetRequest.js +15 -15
  29. package/dist/hooks/useRefData.js +3 -2
  30. package/dist/utils/Component/getComponentTests/getComponent.multifile.test.js +2 -1
  31. package/dist/utils/Component/getDefaultValueFromConfig.js +2 -1
  32. package/dist/utils/Condition/meetsCondition.js +26 -12
  33. package/dist/utils/Condition/meetsCondition.test.js +21 -0
  34. package/dist/utils/Data/getAutocompleteSource.js +68 -51
  35. package/dist/utils/Data/getAutocompleteSource.test.js +31 -18
  36. package/dist/utils/Operate/doesContainValue.js +34 -0
  37. package/dist/utils/Operate/doesContainValue.test.js +75 -0
  38. package/dist/utils/Operate/runPageOperations.js +2 -0
  39. package/dist/utils/Validate/validateOnPageLoad.js +23 -0
  40. package/dist/utils/Validate/validateOnPageLoad.test.js +88 -0
  41. package/package.json +4 -4
  42. package/dist/components/FormRenderer/helpers/deleteNodeByPath.js +0 -29
  43. package/dist/components/FormRenderer/helpers/deleteNodeByPath.test.js +0 -56
@@ -0,0 +1,300 @@
1
+ {
2
+ "id": "9a2aae86-e3c7-11ef-b502-56ecdccac0eb",
3
+ "businessKey": "DEV-20250205-1041",
4
+ "modeOfTransport": {
5
+ "id": 2,
6
+ "mode": "Scheduled Air Passenger",
7
+ "modecode": "airpass",
8
+ "crossingtype": [
9
+ "air"
10
+ ],
11
+ "value": "Scheduled Air Passenger",
12
+ "label": "Scheduled Air Passenger"
13
+ },
14
+ "port": {
15
+ "id": 3415,
16
+ "name": "Luton",
17
+ "sea": false,
18
+ "air": true,
19
+ "land": false,
20
+ "rail": false,
21
+ "countryid": 234,
22
+ "iata": "LTN",
23
+ "value": "3415",
24
+ "label": "Luton",
25
+ "hint": ""
26
+ },
27
+ "formStatus": {
28
+ "tasks": {
29
+ "undefined": {},
30
+ "event-summary-airpassenger": {
31
+ "complete": true,
32
+ "currentPage": "event-summary-check-answers"
33
+ },
34
+ "item-seals-abandoned": {
35
+ "complete": true,
36
+ "currentPage": "what-happens-next"
37
+ },
38
+ "journey-details-airpax": {
39
+ "complete": true,
40
+ "currentPage": "journey-check-answers"
41
+ },
42
+ "submit-airpax": {
43
+ "complete": false,
44
+ "currentPage": "submit-form"
45
+ }
46
+ },
47
+ "taskPage": "submit-form"
48
+ },
49
+ "whatHappened": "items",
50
+ "formInstanceId": "e1795627-b40e-4ac6-bfb2-5bf3f10ff126",
51
+ "links": [
52
+ {
53
+ "method": "GET",
54
+ "href": "https://green.dev.cop.homeoffice.gov.uk/camunda/engine-rest/process-instance/9a2aae86-e3c7-11ef-b502-56ecdccac0eb",
55
+ "rel": "self"
56
+ }
57
+ ],
58
+ "definitionId": "cop-addABorderEvent:3:08744e1c-8ba1-11ef-87e2-66391f301ad1",
59
+ "caseInstanceId": null,
60
+ "ended": false,
61
+ "suspended": false,
62
+ "tenantId": null,
63
+ "eventDateTime": {
64
+ "eventDate": "05-02-2025",
65
+ "eventTime": "12:12"
66
+ },
67
+ "terminal": {
68
+ "id": 8,
69
+ "name": "Eastern Docks",
70
+ "validfrom": "2019-01-01T00:01:00.000Z",
71
+ "validto": null,
72
+ "updatedby": null,
73
+ "value": "8",
74
+ "label": "Eastern Docks",
75
+ "hint": ""
76
+ },
77
+ "subLocation": {
78
+ "id": 19,
79
+ "sublocation": "Arrival Lounge",
80
+ "description": null,
81
+ "validfrom": "2021-05-07T00:00:03.000Z",
82
+ "validto": null,
83
+ "updatedby": "BethStephenson",
84
+ "uoflocation": false,
85
+ "value": "19",
86
+ "label": "Arrival Lounge",
87
+ "hint": ""
88
+ },
89
+ "operationOrExercise": "no",
90
+ "centaurReference": "E1234567",
91
+ "leadOfficerEmail": {
92
+ "email": "philip.harvey@digital.homeoffice.gov.uk",
93
+ "label": "philip.harvey@digital.homeoffice.gov.uk",
94
+ "value": "philip.harvey@digital.homeoffice.gov.uk",
95
+ "defaultteamid": "cf576f61-26cd-4862-92e1-2d5cfc050c2d"
96
+ },
97
+ "officerEmails": [],
98
+ "whoDecidedSelection": "borderForceOfficer",
99
+ "whyWasPassengerStoppedArray": [
100
+ {
101
+ "id": "2df7d599-a3fc-4c91-818f-afce7682b974",
102
+ "reason": {
103
+ "label": "Baggage - abandoned baggage",
104
+ "value": "baggageAbandoned",
105
+ "synonyms": [
106
+ "luggage",
107
+ "left",
108
+ "leave",
109
+ "without"
110
+ ],
111
+ "hint": ""
112
+ }
113
+ }
114
+ ],
115
+ "itemsActiveId": "5034aaef-010b-4cca-9b83-15a679da0049",
116
+ "items": [
117
+ {
118
+ "id": "5034aaef-010b-4cca-9b83-15a679da0049",
119
+ "sealNumber": "E1235612",
120
+ "itemCategory": {
121
+ "id": 6,
122
+ "category": "Alcohol",
123
+ "description": "Beers, Wines, Spirits etc.",
124
+ "validfrom": "2023-01-10T00:00:01.000Z",
125
+ "validto": null,
126
+ "updatedby": "Mohammed Abdul Odud",
127
+ "synonyms": [
128
+ "'Beer'",
129
+ "'Wines'",
130
+ "'Spirits'"
131
+ ],
132
+ "value": "6",
133
+ "label": "Alcohol",
134
+ "hint": ""
135
+ },
136
+ "itemSubCategory": {
137
+ "id": 1795,
138
+ "name": "Alcohol distiller",
139
+ "description": null,
140
+ "itemcategoriesid": 6,
141
+ "cites": false,
142
+ "poao": false,
143
+ "cbrn": false,
144
+ "document": false,
145
+ "tobacco": false,
146
+ "alcohol": true,
147
+ "weapons": false,
148
+ "firearms": false,
149
+ "ipr": true,
150
+ "strategic": false,
151
+ "avtc": false,
152
+ "oils": false,
153
+ "commodity": false,
154
+ "good": true,
155
+ "plant": false,
156
+ "animal": false,
157
+ "drugs": false,
158
+ "financial": false,
159
+ "indecent": false,
160
+ "vehicle": false,
161
+ "medical": false,
162
+ "unitid": 5,
163
+ "seizureqty": null,
164
+ "ienqty": null,
165
+ "validfrom": "2023-01-10T00:00:01.000Z",
166
+ "validto": null,
167
+ "updatedby": "Mohammed Abdul Odud",
168
+ "uof": false,
169
+ "epmscode": 1037,
170
+ "epmscategory": "ALP",
171
+ "unitarray": [
172
+ 5
173
+ ],
174
+ "categoryarray": [
175
+ 6,
176
+ 9,
177
+ 14
178
+ ],
179
+ "lethalfirearm": null,
180
+ "nonlethalfirearm": null,
181
+ "value": "1795",
182
+ "label": "Alcohol distiller",
183
+ "hint": ""
184
+ },
185
+ "seizedOrDetained": "seized",
186
+ "legalReasonForSeizing": {
187
+ "id": 1,
188
+ "epmsvalue": 2,
189
+ "reason": "CEMA",
190
+ "description": "Customs and excise management act 1979",
191
+ "validfrom": "2022-09-21T00:00:01.000Z",
192
+ "validto": null,
193
+ "updatedby": "Mohammed Abdul Odud",
194
+ "value": "1",
195
+ "label": "Customs and excise management act 1979",
196
+ "hint": ""
197
+ },
198
+ "detectionTechnologies": [
199
+ {
200
+ "id": "54600601-4f78-450d-bdee-2290b7aa4d09",
201
+ "detectionTechnology": {
202
+ "id": 5,
203
+ "name": "Automatic Number Plate Recognition",
204
+ "value": "5",
205
+ "label": "Automatic Number Plate Recognition",
206
+ "hint": ""
207
+ }
208
+ }
209
+ ],
210
+ "searchTechniques": [
211
+ {
212
+ "id": "54600601-4f78-450d-bdee-2290b7aa4d09",
213
+ "searchTechnique": {
214
+ "id": 27,
215
+ "type": "Baggage",
216
+ "value": "27",
217
+ "label": "Baggage",
218
+ "hint": ""
219
+ }
220
+ }
221
+ ],
222
+ "concealmentMethods": [
223
+ {
224
+ "id": "2e98b018-99ff-440d-88fa-ee630dbc7a19",
225
+ "concealmentMethod": {
226
+ "id": 24,
227
+ "method": "Air filter",
228
+ "value": "24",
229
+ "label": "Air filter",
230
+ "hint": ""
231
+ }
232
+ }
233
+ ],
234
+ "specialStorageConditions": {
235
+ "epmsvalue": 10,
236
+ "description": "Machinery",
237
+ "id": 10,
238
+ "value": "10",
239
+ "label": "Machinery",
240
+ "hint": ""
241
+ },
242
+ "brandText": "asd",
243
+ "make": "asd",
244
+ "unitOfMeasure": {
245
+ "id": 13,
246
+ "unit": "Number of items",
247
+ "validfrom": "2023-02-21T00:00:01.000Z",
248
+ "validto": null,
249
+ "updatedby": "Mohammed Abdul Odud",
250
+ "code": 5,
251
+ "epmsid": 9,
252
+ "decimal": false,
253
+ "shortname": null,
254
+ "value": "13",
255
+ "label": "Number of items"
256
+ },
257
+ "quantity": "122",
258
+ "itemDescription": "qwse qwe qwe qwe qwe qwe ",
259
+ "willTheItemBeStored": "no",
260
+ "whatIsTheInitialMovement?": {
261
+ "id": 2,
262
+ "epmscode": 4,
263
+ "description": "Retained by case officer",
264
+ "inuse": true,
265
+ "validfrom": "2022-08-18T00:00:01.000Z",
266
+ "validto": null,
267
+ "updatedby": "Mohammed Abdul Odud",
268
+ "value": "2",
269
+ "label": "Retained by case officer",
270
+ "hint": ""
271
+ },
272
+ "shouldThisItemBeDestroyed": "no",
273
+ "giveAReason": "sd asd asd asd ",
274
+ "specialHandlingInstructions": "no",
275
+ "hasAnotherAgencyAdoptedTheItem": "no",
276
+ "constructedOrAdapted": "no",
277
+ "doYouHavePhotosOfTheItemToAdd": "no"
278
+ }
279
+ ],
280
+ "lockup": {
281
+ "value": "LTN",
282
+ "label": "Luton Airport Lockup",
283
+ "hidden": true
284
+ },
285
+ "meta": {
286
+ "documents": []
287
+ },
288
+ "epmsSubmitted": true,
289
+ "doYouHaveTheirFlightNumber": "no",
290
+ "form": {
291
+ "formVersionId": "b1009648bfc7df2e5dcc565e953f8c48037d2648-20",
292
+ "title": "Add a border event",
293
+ "name": "cop-addABorderEvent",
294
+ "submissionDate": "2025-02-05T13:53:07.633Z",
295
+ "submittedBy": "philip.harvey@digital.homeoffice.gov.uk",
296
+ "submittingUsersName": "Phil",
297
+ "submissionTeam": "cf576f61-26cd-4862-92e1-2d5cfc050c2d",
298
+ "formInstanceId": "e1795627-b40e-4ac6-bfb2-5bf3f10ff126"
299
+ }
300
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "type": "Example form",
3
+ "alpha": "alpha-value",
4
+ "bravo": "bravo-value",
5
+ "charlie": "charlie-value"
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "alpha": "alpha-value",
3
+ "bravo": "bravo-value",
4
+ "externalCondition1": "externalCondition1-value",
5
+ "externalCondition2": "externalCondition2-value"
6
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "alpha": "alpha-value",
3
+ "bravo": "bravo-value",
4
+ "externalCondition1": "externalCondition1-value",
5
+ "externalCondition2": "externalCondition2-value",
6
+ "externalCondition3": "externalCondition3-value",
7
+ "makePageVisibleField": "makePageVisibleField-value"
8
+ }
@@ -0,0 +1,72 @@
1
+ {
2
+ "businessKey": "SIT-20250312-1016",
3
+ "definitionKey": "cop-ncc-task-form",
4
+ "port": {
5
+ "fixedpcp": null,
6
+ "updatedby": "Michaela Cook",
7
+ "geolong": "-3.3391",
8
+ "municipality": null,
9
+ "nonoperational": false,
10
+ "air": true,
11
+ "commandid": 22,
12
+ "juxtaposed": false,
13
+ "sea": false,
14
+ "subdivision": "NA",
15
+ "land": false,
16
+ "id": 9937,
17
+ "helipad": false,
18
+ "value": "9937",
19
+ "portablepcp": null,
20
+ "unlocode": null,
21
+ "rail": false,
22
+ "geolat": "51.39859",
23
+ "localcode": null,
24
+ "label": "Cardiff International Airport",
25
+ "countryid": 234,
26
+ "addressid": null,
27
+ "egates": null,
28
+ "iata": "CWL",
29
+ "locationid": null,
30
+ "hint": "",
31
+ "name": "Cardiff International Airport",
32
+ "icao": "EGFF",
33
+ "portsizeid": 1,
34
+ "validfrom": "2025-03-04T00:01:01.000Z",
35
+ "freightparcelposthub": false,
36
+ "validto": null
37
+ },
38
+ "terminal": null,
39
+ "leadOfficerEmail": null,
40
+ "officerEmails": null,
41
+ "regionalCommandCentre": {
42
+ "code": "BFCENT",
43
+ "updatedby": null,
44
+ "directorateid": 2,
45
+ "hint": "",
46
+ "name": "Central",
47
+ "validfrom": "2019-01-01T00:01:00.000Z",
48
+ "id": 23,
49
+ "label": "Central",
50
+ "value": "23",
51
+ "validto": null
52
+ },
53
+ "autoClose": "13 March 2025",
54
+ "assignWhere": "RCC",
55
+ "assignMessage": "test message",
56
+ "formStatus": {
57
+ "page": "cya"
58
+ },
59
+ "formInstanceId": "46d1b27d-5a6e-428b-a20e-4a432e37875f",
60
+ "form": {
61
+ "formVersionId": "7b941ec0bb281e2b93ba32058b81e1a88f0f0a9a",
62
+ "title": "Assign task to RCC",
63
+ "name": "cop-reassign-task-to-rcc",
64
+ "submissionDate": "2025-03-12T15:41:08.880Z",
65
+ "submittedBy": "acceptance.portuser1@system.local",
66
+ "submittingUsersName": "acceptance.portuser1",
67
+ "draftForm": true,
68
+ "submissionStartDate": "2025-03-12T15:41:08.880Z",
69
+ "formInstanceId": "46d1b27d-5a6e-428b-a20e-4a432e37875f",
70
+ "submissionTeam": "96e2d9db-8b3f-4b36-9ec3-eb1b7506d8c2"
71
+ }
72
+ }
@@ -0,0 +1,280 @@
1
+ {
2
+ "id": "9a2aae86-e3c7-11ef-b502-56ecdccac0eb",
3
+ "businessKey": "DEV-20250205-1041",
4
+ "modeOfTransport": {
5
+ "id": 2,
6
+ "mode": "Scheduled Air Passenger",
7
+ "modecode": "airpass",
8
+ "crossingtype": [
9
+ "air"
10
+ ],
11
+ "value": "Scheduled Air Passenger",
12
+ "label": "Scheduled Air Passenger"
13
+ },
14
+ "port": {
15
+ "id": 3415,
16
+ "name": "Luton",
17
+ "sea": false,
18
+ "air": true,
19
+ "land": false,
20
+ "rail": false,
21
+ "countryid": 234,
22
+ "iata": "LTN",
23
+ "value": "3415",
24
+ "label": "Luton",
25
+ "hint": ""
26
+ },
27
+ "formStatus": {
28
+ "tasks": {
29
+ "undefined": {},
30
+ "event-summary-airpassenger": {
31
+ "complete": true,
32
+ "currentPage": "event-summary-check-answers"
33
+ },
34
+ "item-seals-abandoned": {
35
+ "complete": true,
36
+ "currentPage": "what-happens-next"
37
+ },
38
+ "journey-details-airpax": {
39
+ "complete": true,
40
+ "currentPage": "journey-check-answers"
41
+ },
42
+ "submit-airpax": {
43
+ "complete": false,
44
+ "currentPage": "submit-form"
45
+ }
46
+ },
47
+ "taskPage": "submit-form"
48
+ },
49
+ "whatHappened": "items",
50
+ "formInstanceId": "e1795627-b40e-4ac6-bfb2-5bf3f10ff126",
51
+ "links": [
52
+ {
53
+ "method": "GET",
54
+ "href": "https://green.dev.cop.homeoffice.gov.uk/camunda/engine-rest/process-instance/9a2aae86-e3c7-11ef-b502-56ecdccac0eb",
55
+ "rel": "self"
56
+ }
57
+ ],
58
+ "definitionId": "cop-addABorderEvent:3:08744e1c-8ba1-11ef-87e2-66391f301ad1",
59
+ "caseInstanceId": null,
60
+ "ended": false,
61
+ "suspended": false,
62
+ "tenantId": null,
63
+ "eventDateTime": {
64
+ "eventDate": "05-02-2025",
65
+ "eventTime": "12:12"
66
+ },
67
+ "terminal": {
68
+ "id": 8,
69
+ "name": "Eastern Docks",
70
+ "validfrom": "2019-01-01T00:01:00.000Z",
71
+ "validto": null,
72
+ "updatedby": null,
73
+ "value": "8",
74
+ "label": "Eastern Docks",
75
+ "hint": ""
76
+ },
77
+ "subLocation": {
78
+ "id": 19,
79
+ "sublocation": "Arrival Lounge",
80
+ "description": null,
81
+ "validfrom": "2021-05-07T00:00:03.000Z",
82
+ "validto": null,
83
+ "updatedby": "BethStephenson",
84
+ "uoflocation": false,
85
+ "value": "19",
86
+ "label": "Arrival Lounge",
87
+ "hint": ""
88
+ },
89
+ "operationOrExercise": "no",
90
+ "centaurReference": "E1234567",
91
+ "leadOfficerEmail": {
92
+ "email": "philip.harvey@digital.homeoffice.gov.uk",
93
+ "label": "philip.harvey@digital.homeoffice.gov.uk",
94
+ "value": "philip.harvey@digital.homeoffice.gov.uk",
95
+ "defaultteamid": "cf576f61-26cd-4862-92e1-2d5cfc050c2d"
96
+ },
97
+ "itemsActiveId": "5034aaef-010b-4cca-9b83-15a679da0049",
98
+ "items": [
99
+ {
100
+ "id": "5034aaef-010b-4cca-9b83-15a679da0049",
101
+ "sealNumber": "E1235612",
102
+ "itemCategory": {
103
+ "id": 6,
104
+ "category": "Alcohol",
105
+ "description": "Beers, Wines, Spirits etc.",
106
+ "validfrom": "2023-01-10T00:00:01.000Z",
107
+ "validto": null,
108
+ "updatedby": "Mohammed Abdul Odud",
109
+ "synonyms": [
110
+ "'Beer'",
111
+ "'Wines'",
112
+ "'Spirits'"
113
+ ],
114
+ "value": "6",
115
+ "label": "Alcohol",
116
+ "hint": ""
117
+ },
118
+ "itemSubCategory": {
119
+ "id": 1795,
120
+ "name": "Alcohol distiller",
121
+ "description": null,
122
+ "itemcategoriesid": 6,
123
+ "cites": false,
124
+ "poao": false,
125
+ "cbrn": false,
126
+ "document": false,
127
+ "tobacco": false,
128
+ "alcohol": true,
129
+ "weapons": false,
130
+ "firearms": false,
131
+ "ipr": true,
132
+ "strategic": false,
133
+ "avtc": false,
134
+ "oils": false,
135
+ "commodity": false,
136
+ "good": true,
137
+ "plant": false,
138
+ "animal": false,
139
+ "drugs": false,
140
+ "financial": false,
141
+ "indecent": false,
142
+ "vehicle": false,
143
+ "medical": false,
144
+ "unitid": 5,
145
+ "seizureqty": null,
146
+ "ienqty": null,
147
+ "validfrom": "2023-01-10T00:00:01.000Z",
148
+ "validto": null,
149
+ "updatedby": "Mohammed Abdul Odud",
150
+ "uof": false,
151
+ "epmscode": 1037,
152
+ "epmscategory": "ALP",
153
+ "unitarray": [
154
+ 5
155
+ ],
156
+ "categoryarray": [
157
+ 6,
158
+ 9,
159
+ 14
160
+ ],
161
+ "lethalfirearm": null,
162
+ "nonlethalfirearm": null,
163
+ "value": "1795",
164
+ "label": "Alcohol distiller",
165
+ "hint": ""
166
+ },
167
+ "seizedOrDetained": "seized",
168
+ "legalReasonForSeizing": {
169
+ "id": 1,
170
+ "epmsvalue": 2,
171
+ "reason": "CEMA",
172
+ "description": "Customs and excise management act 1979",
173
+ "validfrom": "2022-09-21T00:00:01.000Z",
174
+ "validto": null,
175
+ "updatedby": "Mohammed Abdul Odud",
176
+ "value": "1",
177
+ "label": "Customs and excise management act 1979",
178
+ "hint": ""
179
+ },
180
+ "detectionTechnologies": [
181
+ {
182
+ "id": "54600601-4f78-450d-bdee-2290b7aa4d09",
183
+ "detectionTechnology": {
184
+ "id": 5,
185
+ "name": "Automatic Number Plate Recognition",
186
+ "value": "5",
187
+ "label": "Automatic Number Plate Recognition",
188
+ "hint": ""
189
+ }
190
+ }
191
+ ],
192
+ "searchTechniques": [
193
+ {
194
+ "id": "54600601-4f78-450d-bdee-2290b7aa4d09",
195
+ "searchTechnique": {
196
+ "id": 27,
197
+ "type": "Baggage",
198
+ "value": "27",
199
+ "label": "Baggage",
200
+ "hint": ""
201
+ }
202
+ }
203
+ ],
204
+ "concealmentMethods": [
205
+ {
206
+ "id": "2e98b018-99ff-440d-88fa-ee630dbc7a19",
207
+ "concealmentMethod": {
208
+ "id": 24,
209
+ "method": "Air filter",
210
+ "value": "24",
211
+ "label": "Air filter",
212
+ "hint": ""
213
+ }
214
+ }
215
+ ],
216
+ "specialStorageConditions": {
217
+ "epmsvalue": 10,
218
+ "description": "Machinery",
219
+ "id": 10,
220
+ "value": "10",
221
+ "label": "Machinery",
222
+ "hint": ""
223
+ },
224
+ "brandText": "asd",
225
+ "make": "asd",
226
+ "unitOfMeasure": {
227
+ "id": 13,
228
+ "unit": "Number of items",
229
+ "validfrom": "2023-02-21T00:00:01.000Z",
230
+ "validto": null,
231
+ "updatedby": "Mohammed Abdul Odud",
232
+ "code": 5,
233
+ "epmsid": 9,
234
+ "decimal": false,
235
+ "shortname": null,
236
+ "value": "13",
237
+ "label": "Number of items"
238
+ },
239
+ "quantity": "122",
240
+ "itemDescription": "qwse qwe qwe qwe qwe qwe ",
241
+ "willTheItemBeStored": "no",
242
+ "whatIsTheInitialMovement?": {
243
+ "id": 2,
244
+ "epmscode": 4,
245
+ "description": "Retained by case officer",
246
+ "inuse": true,
247
+ "validfrom": "2022-08-18T00:00:01.000Z",
248
+ "validto": null,
249
+ "updatedby": "Mohammed Abdul Odud",
250
+ "value": "2",
251
+ "label": "Retained by case officer",
252
+ "hint": ""
253
+ },
254
+ "shouldThisItemBeDestroyed": "no",
255
+ "giveAReason": "sd asd asd asd ",
256
+ "specialHandlingInstructions": "no",
257
+ "hasAnotherAgencyAdoptedTheItem": "no",
258
+ "constructedOrAdapted": "no",
259
+ "doYouHavePhotosOfTheItemToAdd": "no"
260
+ }
261
+ ],
262
+ "lockup": {
263
+ "value": "LTN",
264
+ "label": "Luton Airport Lockup",
265
+ "hidden": true
266
+ },
267
+ "meta": {},
268
+ "epmsSubmitted": true,
269
+ "doYouHaveTheirFlightNumber": "no",
270
+ "form": {
271
+ "formVersionId": "b1009648bfc7df2e5dcc565e953f8c48037d2648-20",
272
+ "title": "Add a border event",
273
+ "name": "cop-addABorderEvent",
274
+ "submissionDate": "2025-02-05T13:53:07.633Z",
275
+ "submittedBy": "philip.harvey@digital.homeoffice.gov.uk",
276
+ "submittingUsersName": "Phil",
277
+ "submissionTeam": "cf576f61-26cd-4862-92e1-2d5cfc050c2d",
278
+ "formInstanceId": "e1795627-b40e-4ac6-bfb2-5bf3f10ff126"
279
+ }
280
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "type": "Example form",
3
+ "alpha": "alpha-value",
4
+ "charlie": "charlie-value"
5
+ }