@ukhomeoffice/cop-react-form-renderer 6.5.1-peter → 6.7.0-alpha
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.
- package/dist/components/CheckYourAnswers/Answer.js +12 -12
- package/dist/components/CheckYourAnswers/Answer.test.js +92 -127
- package/dist/components/CheckYourAnswers/CheckYourAnswers.js +101 -131
- package/dist/components/CheckYourAnswers/CheckYourAnswers.test.js +463 -769
- package/dist/components/CollectionPage/CollectionPage.js +73 -63
- package/dist/components/CollectionPage/CollectionPage.test.js +316 -366
- package/dist/components/CollectionSummary/BannerStrip.js +13 -13
- package/dist/components/CollectionSummary/BannerStrip.test.js +80 -76
- package/dist/components/CollectionSummary/CollectionSummary.js +97 -107
- package/dist/components/CollectionSummary/CollectionSummary.test.js +152 -142
- package/dist/components/CollectionSummary/Confirmation.js +14 -12
- package/dist/components/CollectionSummary/Confirmation.test.js +68 -63
- package/dist/components/CollectionSummary/RenderListView.js +45 -51
- package/dist/components/CollectionSummary/RenderListView.test.js +78 -77
- package/dist/components/CollectionSummary/SummaryCard.js +104 -135
- package/dist/components/CollectionSummary/SummaryCard.test.js +930 -962
- package/dist/components/CollectionSummary/SummaryCardDetails.js +72 -71
- package/dist/components/CollectionSummary/SummaryCardDetails.test.js +128 -135
- package/dist/components/CollectionSummary/SummaryCardValidationContext.js +30 -35
- package/dist/components/CollectionSummary/SummaryCardValidationContext.test.js +62 -74
- package/dist/components/FormComponent/Collection.js +74 -108
- package/dist/components/FormComponent/Collection.test.js +909 -1081
- package/dist/components/FormComponent/Container.js +40 -38
- package/dist/components/FormComponent/Container.test.js +314 -345
- package/dist/components/FormComponent/FormComponent.js +69 -72
- package/dist/components/FormComponent/FormComponent.test.js +353 -414
- package/dist/components/FormComponent/helpers/addLabel.js +4 -7
- package/dist/components/FormComponent/helpers/getComponentDisabled.js +1 -1
- package/dist/components/FormComponent/helpers/getComponentDisabled.test.js +7 -7
- package/dist/components/FormComponent/helpers/getComponentError.js +3 -5
- package/dist/components/FormComponent/helpers/getComponentError.test.js +14 -14
- package/dist/components/FormComponent/helpers/getComponentFieldSet.js +3 -4
- package/dist/components/FormComponent/helpers/getComponentFieldSet.test.js +6 -6
- package/dist/components/FormComponent/helpers/index.js +4 -4
- package/dist/components/FormPage/FormPage.js +65 -80
- package/dist/components/FormPage/FormPage.test.js +127 -163
- package/dist/components/FormRenderer/FormRenderer.js +143 -179
- package/dist/components/FormRenderer/FormRenderer.test.js +730 -1115
- package/dist/components/FormRenderer/handlers/cyaAction.js +2 -2
- package/dist/components/FormRenderer/handlers/getPageId.js +1 -3
- package/dist/components/FormRenderer/handlers/getPageId.test.js +14 -14
- package/dist/components/FormRenderer/handlers/handlers.test.js +32 -32
- package/dist/components/FormRenderer/handlers/index.js +1 -1
- package/dist/components/FormRenderer/handlers/navigate.js +3 -3
- package/dist/components/FormRenderer/handlers/submissionError.js +1 -1
- package/dist/components/FormRenderer/helpers/canActionProceed.js +1 -1
- package/dist/components/FormRenderer/helpers/canActionProceed.test.js +15 -15
- package/dist/components/FormRenderer/helpers/canCYASubmit.js +1 -3
- package/dist/components/FormRenderer/helpers/canCYASubmit.test.js +16 -20
- package/dist/components/FormRenderer/helpers/cleanHiddenNestedData.js +17 -22
- package/dist/components/FormRenderer/helpers/cleanHiddenNestedData.test.js +16 -16
- package/dist/components/FormRenderer/helpers/getCYA.js +3 -5
- package/dist/components/FormRenderer/helpers/getCYA.test.js +11 -11
- package/dist/components/FormRenderer/helpers/getFormState.js +5 -7
- package/dist/components/FormRenderer/helpers/getFormState.test.js +10 -10
- package/dist/components/FormRenderer/helpers/getNextPageId.js +13 -24
- package/dist/components/FormRenderer/helpers/getNextPageId.test.js +67 -67
- package/dist/components/FormRenderer/helpers/getPage.js +2 -4
- package/dist/components/FormRenderer/helpers/getPage.test.js +11 -11
- package/dist/components/FormRenderer/helpers/getRelevantPages.js +7 -9
- package/dist/components/FormRenderer/helpers/getRelevantPages.test.js +14 -14
- package/dist/components/FormRenderer/helpers/getSubmissionStatus.js +5 -5
- package/dist/components/FormRenderer/helpers/getSubmissionStatus.test.js +103 -97
- package/dist/components/FormRenderer/helpers/getUpdatedSectionStates.js +62 -60
- package/dist/components/FormRenderer/helpers/getUpdatedSectionStates.test.js +71 -78
- package/dist/components/FormRenderer/helpers/index.js +2 -4
- package/dist/components/FormRenderer/onCYAAction.js +59 -51
- package/dist/components/FormRenderer/onCYAAction.test.js +164 -152
- package/dist/components/FormRenderer/onPageAction.js +44 -47
- package/dist/components/FormRenderer/onPageAction.test.js +223 -213
- package/dist/components/FormRenderer/onTaskAction.js +9 -13
- package/dist/components/FormRenderer/onTaskAction.test.js +93 -88
- package/dist/components/PageActions/ActionButton.js +12 -15
- package/dist/components/PageActions/ActionButton.test.js +56 -78
- package/dist/components/PageActions/PageActions.js +10 -10
- package/dist/components/PageActions/PageActions.test.js +86 -115
- package/dist/components/SummaryList/GroupAction.js +9 -17
- package/dist/components/SummaryList/GroupAction.test.js +37 -33
- package/dist/components/SummaryList/RowAction.js +11 -16
- package/dist/components/SummaryList/RowAction.test.js +37 -33
- package/dist/components/SummaryList/SummaryList.js +21 -26
- package/dist/components/SummaryList/SummaryList.test.js +143 -166
- package/dist/components/SummaryList/SummaryListHeadingRow.js +6 -4
- package/dist/components/SummaryList/SummaryListRow.js +6 -4
- package/dist/components/SummaryList/SummaryListTitleRow.js +5 -3
- package/dist/components/SummaryList/helpers/getGroupActionAttributes.js +3 -5
- package/dist/components/SummaryList/helpers/getGroupActionAttributes.test.js +22 -22
- package/dist/components/SummaryList/helpers/getRowActionAttributes.js +3 -5
- package/dist/components/SummaryList/helpers/getRowActionAttributes.test.js +22 -22
- package/dist/components/SummaryList/helpers/index.js +1 -1
- package/dist/components/TaskList/Task.js +19 -29
- package/dist/components/TaskList/Task.test.js +83 -76
- package/dist/components/TaskList/TaskList.js +45 -71
- package/dist/components/TaskList/TaskList.test.js +113 -111
- package/dist/components/TaskList/TaskState.js +7 -5
- package/dist/components/TaskList/TaskState.test.js +52 -45
- package/dist/components/index.js +7 -7
- package/dist/context/HooksContext/HooksContext.js +57 -80
- package/dist/context/HooksContext/HooksContext.test.js +26 -35
- package/dist/context/HooksContext/index.js +3 -4
- package/dist/context/ValidationContext/ValidationContext.js +43 -94
- package/dist/context/ValidationContext/ValidationContext.test.js +56 -68
- package/dist/context/ValidationContext/index.js +3 -4
- package/dist/context/index.js +2 -2
- package/dist/hooks/index.js +9 -10
- package/dist/hooks/useAxios.js +14 -40
- package/dist/hooks/useGetRequest.js +61 -97
- package/dist/hooks/useHooks.js +1 -3
- package/dist/hooks/useRefData.js +26 -39
- package/dist/hooks/useValidation.js +1 -3
- package/dist/index.js +13 -14
- package/dist/models/CollectionLabels.js +1 -1
- package/dist/models/ComponentTypes.js +25 -25
- package/dist/models/EventTypes.js +4 -4
- package/dist/models/FormPages.js +4 -4
- package/dist/models/FormTypes.js +8 -8
- package/dist/models/HubFormats.js +3 -3
- package/dist/models/PageAction.js +44 -38
- package/dist/models/TaskStates.js +29 -28
- package/dist/models/index.js +9 -9
- package/dist/setupTests.js +30 -31
- package/dist/utils/CheckYourAnswers/getCYAAction.js +5 -5
- package/dist/utils/CheckYourAnswers/getCYAAction.test.js +52 -54
- package/dist/utils/CheckYourAnswers/getCYACollectionChangeAction.js +15 -25
- package/dist/utils/CheckYourAnswers/getCYACollectionChangeAction.test.js +33 -35
- package/dist/utils/CheckYourAnswers/getCYACollectionDeleteAction.js +17 -31
- package/dist/utils/CheckYourAnswers/getCYACollectionDeleteAction.test.js +42 -44
- package/dist/utils/CheckYourAnswers/getCYARow.js +6 -6
- package/dist/utils/CheckYourAnswers/getCYARow.test.js +86 -86
- package/dist/utils/CheckYourAnswers/getCYARowForGroup.js +18 -24
- package/dist/utils/CheckYourAnswers/getCYARowForGroup.test.js +15 -16
- package/dist/utils/CheckYourAnswers/getCYARowsForCollection.js +33 -36
- package/dist/utils/CheckYourAnswers/getCYARowsForCollection.test.js +58 -61
- package/dist/utils/CheckYourAnswers/getCYARowsForCollectionPage.js +83 -89
- package/dist/utils/CheckYourAnswers/getCYARowsForCollectionPage.test.js +164 -138
- package/dist/utils/CheckYourAnswers/getCYARowsForContainer.js +25 -20
- package/dist/utils/CheckYourAnswers/getCYARowsForContainer.test.js +103 -97
- package/dist/utils/CheckYourAnswers/getCYARowsForPage.js +13 -18
- package/dist/utils/CheckYourAnswers/getCYARowsForPage.test.js +70 -76
- package/dist/utils/CheckYourAnswers/getComponentRowForCYA.js +11 -11
- package/dist/utils/CheckYourAnswers/getComponentRowForCYA.test.js +7 -7
- package/dist/utils/CheckYourAnswers/index.js +1 -1
- package/dist/utils/CheckYourAnswers/showComponentCYA.js +4 -4
- package/dist/utils/CheckYourAnswers/showComponentCYA.test.js +25 -25
- package/dist/utils/CollectionPage/addCollectionPageEntry.js +2 -2
- package/dist/utils/CollectionPage/addCollectionPageEntry.test.js +5 -5
- package/dist/utils/CollectionPage/duplicateCollectionPageActiveEntry.js +2 -2
- package/dist/utils/CollectionPage/duplicateCollectionPageActiveEntry.test.js +17 -18
- package/dist/utils/CollectionPage/duplicateCollectionPageEntry.js +18 -20
- package/dist/utils/CollectionPage/duplicateCollectionPageEntry.test.js +55 -26
- package/dist/utils/CollectionPage/getCollectionPageActiveId.js +2 -2
- package/dist/utils/CollectionPage/getCollectionPageActiveId.test.js +10 -10
- package/dist/utils/CollectionPage/getCollectionPageActiveIndex.js +7 -11
- package/dist/utils/CollectionPage/getCollectionPageActiveIndex.test.js +22 -22
- package/dist/utils/CollectionPage/getCollectionPageData.js +8 -12
- package/dist/utils/CollectionPage/getCollectionPageData.test.js +19 -19
- package/dist/utils/CollectionPage/getErrorsForCollection.js +24 -24
- package/dist/utils/CollectionPage/getErrorsForCollection.test.js +20 -22
- package/dist/utils/CollectionPage/getQuickEditPage.js +36 -28
- package/dist/utils/CollectionPage/getQuickEditPage.test.js +26 -45
- package/dist/utils/CollectionPage/index.js +1 -1
- package/dist/utils/CollectionPage/mergeCollectionPages.js +31 -35
- package/dist/utils/CollectionPage/mergeCollectionPages.test.js +20 -20
- package/dist/utils/CollectionPage/removeCollectionPageEntry.js +4 -6
- package/dist/utils/CollectionPage/removeCollectionPageEntry.test.js +10 -10
- package/dist/utils/CollectionPage/setCollectionPageData.js +10 -16
- package/dist/utils/CollectionPage/setCollectionPageData.test.js +24 -24
- package/dist/utils/Component/addShowWhen.js +4 -8
- package/dist/utils/Component/addShowWhen.test.js +37 -37
- package/dist/utils/Component/applyToComponentTree.js +18 -18
- package/dist/utils/Component/applyToComponentTree.test.js +27 -32
- package/dist/utils/Component/cleanAttributes.js +10 -13
- package/dist/utils/Component/cleanAttributes.test.js +17 -18
- package/dist/utils/Component/elevateNestedComponents.js +5 -5
- package/dist/utils/Component/elevateNestedComponents.test.js +30 -30
- package/dist/utils/Component/getComponent.js +88 -94
- package/dist/utils/Component/getComponentTests/getComponent.autocomplete.test.js +18 -17
- package/dist/utils/Component/getComponentTests/getComponent.calculation.test.js +46 -59
- package/dist/utils/Component/getComponentTests/getComponent.checkboxes.test.js +39 -48
- package/dist/utils/Component/getComponentTests/getComponent.date.test.js +23 -33
- package/dist/utils/Component/getComponentTests/getComponent.details.test.js +20 -18
- package/dist/utils/Component/getComponentTests/getComponent.email.test.js +17 -22
- package/dist/utils/Component/getComponentTests/getComponent.file.test.js +20 -25
- package/dist/utils/Component/getComponentTests/getComponent.heading.test.js +10 -9
- package/dist/utils/Component/getComponentTests/getComponent.html.test.js +17 -15
- package/dist/utils/Component/getComponentTests/getComponent.insetText.test.js +9 -8
- package/dist/utils/Component/getComponentTests/getComponent.list.test.js +17 -15
- package/dist/utils/Component/getComponentTests/getComponent.multifile.test.js +22 -26
- package/dist/utils/Component/getComponentTests/getComponent.nested.test.js +155 -175
- package/dist/utils/Component/getComponentTests/getComponent.paragraph.test.js +17 -15
- package/dist/utils/Component/getComponentTests/getComponent.phoneNumber.test.js +17 -22
- package/dist/utils/Component/getComponentTests/getComponent.radios.test.js +57 -72
- package/dist/utils/Component/getComponentTests/getComponent.select.test.js +17 -22
- package/dist/utils/Component/getComponentTests/getComponent.text.test.js +17 -22
- package/dist/utils/Component/getComponentTests/getComponent.textArea.test.js +31 -38
- package/dist/utils/Component/getComponentTests/getComponent.time.test.js +20 -29
- package/dist/utils/Component/getComponentTests/getComponent.unknown.test.js +2 -2
- package/dist/utils/Component/getComponentTests/getComponent.warningText.test.js +9 -8
- package/dist/utils/Component/getDefaultValue.js +6 -8
- package/dist/utils/Component/getDefaultValue.test.js +12 -12
- package/dist/utils/Component/getDefaultValueFromConfig.js +22 -21
- package/dist/utils/Component/getDefaultValueFromConfig.test.js +31 -31
- package/dist/utils/Component/index.js +1 -1
- package/dist/utils/Component/isEditable.js +2 -4
- package/dist/utils/Component/isEditable.test.js +14 -15
- package/dist/utils/Component/optionIsSelected.js +1 -1
- package/dist/utils/Component/optionIsSelected.test.js +9 -9
- package/dist/utils/Component/setupContainerComponentsPath.js +27 -29
- package/dist/utils/Component/setupContainerComponentsPath.test.js +11 -11
- package/dist/utils/Component/showComponent.js +1 -1
- package/dist/utils/Component/showComponent.test.js +28 -28
- package/dist/utils/Component/wrapInFormGroup.js +2 -2
- package/dist/utils/Condition/index.js +1 -1
- package/dist/utils/Condition/meetsAllConditions.js +8 -8
- package/dist/utils/Condition/meetsAllConditions.test.js +20 -20
- package/dist/utils/Condition/meetsCondition.js +16 -25
- package/dist/utils/Condition/meetsCondition.test.js +402 -402
- package/dist/utils/Condition/meetsOneCondition.js +5 -5
- package/dist/utils/Condition/meetsOneCondition.test.js +16 -16
- package/dist/utils/Condition/setupConditions.js +13 -18
- package/dist/utils/Condition/setupConditions.test.js +7 -7
- package/dist/utils/Container/getEditableComponents.js +3 -5
- package/dist/utils/Container/getEditableComponents.test.js +43 -45
- package/dist/utils/Container/index.js +1 -1
- package/dist/utils/Container/setupNesting.js +16 -20
- package/dist/utils/Container/setupNesting.test.js +27 -30
- package/dist/utils/Container/showContainer.js +3 -7
- package/dist/utils/Container/showContainer.test.js +30 -30
- package/dist/utils/Data/applyFormula.js +38 -48
- package/dist/utils/Data/applyFormula.test.js +20 -20
- package/dist/utils/Data/getAutocompleteSource.js +18 -26
- package/dist/utils/Data/getAutocompleteSource.test.js +80 -86
- package/dist/utils/Data/getDataPath.js +18 -28
- package/dist/utils/Data/getDataPath.test.js +12 -12
- package/dist/utils/Data/getOptions.js +24 -30
- package/dist/utils/Data/getOptions.test.js +27 -27
- package/dist/utils/Data/getSourceData.js +6 -19
- package/dist/utils/Data/getSourceData.test.js +84 -80
- package/dist/utils/Data/index.js +1 -1
- package/dist/utils/Data/nestInRefdataOptions.js +9 -16
- package/dist/utils/Data/nestInRefdataOptions.test.js +16 -16
- package/dist/utils/Data/refDataToOptions.js +10 -13
- package/dist/utils/Data/refDataToOptions.test.js +19 -19
- package/dist/utils/Data/setDataItem.js +7 -8
- package/dist/utils/Data/setDataItem.test.js +37 -37
- package/dist/utils/Data/setupFormData.js +13 -21
- package/dist/utils/Data/setupFormData.test.js +51 -50
- package/dist/utils/Data/setupRefDataUrlForComponent.js +20 -26
- package/dist/utils/Data/setupRefDataUrlForComponent.test.js +24 -24
- package/dist/utils/FormPage/applyConditionalProperties.js +5 -9
- package/dist/utils/FormPage/applyConditionalProperties.test.js +15 -18
- package/dist/utils/FormPage/getConditionalText.js +3 -3
- package/dist/utils/FormPage/getConditionalText.test.js +29 -29
- package/dist/utils/FormPage/getFormPage.js +15 -16
- package/dist/utils/FormPage/getFormPage.test.js +47 -46
- package/dist/utils/FormPage/getFormPages.js +7 -12
- package/dist/utils/FormPage/getFormPages.test.js +20 -23
- package/dist/utils/FormPage/getPageActions.js +9 -15
- package/dist/utils/FormPage/getPageActions.test.js +32 -32
- package/dist/utils/FormPage/getParagraphFromText.js +5 -7
- package/dist/utils/FormPage/getParagraphFromText.test.js +6 -6
- package/dist/utils/FormPage/index.js +2 -4
- package/dist/utils/FormPage/showFormPage.js +3 -7
- package/dist/utils/FormPage/showFormPage.test.js +32 -32
- package/dist/utils/FormPage/showFormPageCYA.js +1 -1
- package/dist/utils/FormPage/showFormPageCYA.test.js +8 -8
- package/dist/utils/FormPage/useComponent.js +21 -28
- package/dist/utils/FormPage/useComponent.test.js +77 -79
- package/dist/utils/Format/formatData.js +1 -1
- package/dist/utils/Format/formatData.test.js +18 -18
- package/dist/utils/Format/formatDataForComponent.js +5 -6
- package/dist/utils/Format/formatDataForComponent.test.js +50 -78
- package/dist/utils/Format/formatDataForForm.js +6 -8
- package/dist/utils/Format/formatDataForForm.test.js +13 -16
- package/dist/utils/Format/formatDataForPage.js +4 -5
- package/dist/utils/Format/formatDataForPage.test.js +20 -25
- package/dist/utils/Format/index.js +1 -1
- package/dist/utils/Hub/getFormHub.js +1 -1
- package/dist/utils/Hub/getFormHub.test.js +28 -31
- package/dist/utils/Hub/index.js +1 -1
- package/dist/utils/Meta/constants.js +2 -2
- package/dist/utils/Meta/documents/getDocuments.js +1 -1
- package/dist/utils/Meta/documents/getDocuments.test.js +24 -16
- package/dist/utils/Meta/documents/index.js +1 -1
- package/dist/utils/Meta/documents/setDocumentsForField.js +14 -16
- package/dist/utils/Meta/documents/setDocumentsForField.test.js +68 -34
- package/dist/utils/Meta/index.js +1 -1
- package/dist/utils/Operate/checkValueIsTruthy.js +2 -2
- package/dist/utils/Operate/checkValueIsTruthy.test.js +16 -16
- package/dist/utils/Operate/getFirstOf.js +5 -5
- package/dist/utils/Operate/getFirstOf.test.js +31 -31
- package/dist/utils/Operate/getIndexOfMatchingValueIn.js +10 -10
- package/dist/utils/Operate/getIndexOfMatchingValueIn.test.js +46 -52
- package/dist/utils/Operate/index.js +1 -1
- package/dist/utils/Operate/persistValueInFormData.js +3 -3
- package/dist/utils/Operate/persistValueInFormData.test.js +22 -20
- package/dist/utils/Operate/runPageOperations.js +7 -7
- package/dist/utils/Operate/runPageOperations.test.js +35 -36
- package/dist/utils/Operate/setValueInFormData.js +2 -2
- package/dist/utils/Operate/setValueInFormData.test.js +16 -16
- package/dist/utils/Operate/shouldRun.js +6 -6
- package/dist/utils/Operate/shouldRun.test.js +21 -27
- package/dist/utils/Validate/additional/conditionallyRequired.js +4 -4
- package/dist/utils/Validate/additional/conditionallyRequired.test.js +18 -18
- package/dist/utils/Validate/additional/index.js +6 -6
- package/dist/utils/Validate/additional/index.test.js +12 -12
- package/dist/utils/Validate/additional/mustBeAfter.js +2 -2
- package/dist/utils/Validate/additional/mustBeAfter.test.js +40 -40
- package/dist/utils/Validate/additional/mustBeBefore.js +2 -2
- package/dist/utils/Validate/additional/mustBeBefore.test.js +28 -28
- package/dist/utils/Validate/additional/mustBeEarlierDateTime.js +7 -11
- package/dist/utils/Validate/additional/mustBeEarlierDateTime.test.js +37 -41
- package/dist/utils/Validate/additional/mustBeGreaterThan.js +2 -2
- package/dist/utils/Validate/additional/mustBeGreaterThan.test.js +18 -18
- package/dist/utils/Validate/additional/mustBeInTheFuture.js +2 -2
- package/dist/utils/Validate/additional/mustBeInTheFuture.test.js +12 -12
- package/dist/utils/Validate/additional/mustBeInThePast.js +3 -3
- package/dist/utils/Validate/additional/mustBeInThePast.test.js +12 -12
- package/dist/utils/Validate/additional/mustBeLessThan.js +2 -2
- package/dist/utils/Validate/additional/mustBeLessThan.test.js +17 -17
- package/dist/utils/Validate/additional/mustBeLongerThan.js +1 -1
- package/dist/utils/Validate/additional/mustBeLongerThan.test.js +16 -16
- package/dist/utils/Validate/additional/mustBeNumbersOnly.js +2 -2
- package/dist/utils/Validate/additional/mustBeNumbersOnly.test.js +20 -20
- package/dist/utils/Validate/additional/mustBeShorterThan.js +1 -1
- package/dist/utils/Validate/additional/mustBeShorterThan.test.js +16 -16
- package/dist/utils/Validate/additional/mustBeUniqueInCollection.js +8 -4
- package/dist/utils/Validate/additional/mustBeUniqueInCollection.test.js +64 -32
- package/dist/utils/Validate/additional/mustEnterAtLeastOne.js +2 -2
- package/dist/utils/Validate/additional/mustEnterAtLeastOne.test.js +14 -16
- package/dist/utils/Validate/additional/mustHaveLessThanDecimalPlaces.js +1 -1
- package/dist/utils/Validate/additional/mustHaveLessThanDecimalPlaces.test.js +12 -12
- package/dist/utils/Validate/additional/mustNotContainSql.js +3 -4
- package/dist/utils/Validate/additional/mustNotContainSql.test.js +14 -14
- package/dist/utils/Validate/additional/mustSelectOnlyOne.js +2 -2
- package/dist/utils/Validate/additional/mustSelectOnlyOne.test.js +28 -26
- package/dist/utils/Validate/additional/utils.js +9 -22
- package/dist/utils/Validate/index.js +1 -1
- package/dist/utils/Validate/validateCollection.js +19 -25
- package/dist/utils/Validate/validateCollection.test.js +74 -66
- package/dist/utils/Validate/validateComponent.js +17 -15
- package/dist/utils/Validate/validateComponent.test.js +167 -146
- package/dist/utils/Validate/validateContainer.js +15 -20
- package/dist/utils/Validate/validateContainer.test.js +58 -52
- package/dist/utils/Validate/validateDate.js +15 -21
- package/dist/utils/Validate/validateDate.test.js +31 -32
- package/dist/utils/Validate/validateEmail.js +6 -8
- package/dist/utils/Validate/validateEmail.test.js +25 -25
- package/dist/utils/Validate/validateMultifile.js +5 -7
- package/dist/utils/Validate/validateMultifile.test.js +17 -18
- package/dist/utils/Validate/validatePage.js +19 -22
- package/dist/utils/Validate/validatePage.test.js +215 -203
- package/dist/utils/Validate/validateRegex.js +3 -5
- package/dist/utils/Validate/validateRegex.test.js +14 -14
- package/dist/utils/Validate/validateRequired.js +4 -6
- package/dist/utils/Validate/validateRequired.test.js +18 -18
- package/dist/utils/Validate/validateTextArea.js +4 -6
- package/dist/utils/Validate/validateTextArea.test.js +20 -20
- package/dist/utils/Validate/validateTime.js +11 -18
- package/dist/utils/Validate/validateTime.test.js +16 -16
- package/dist/utils/index.js +7 -9
- package/package.json +2 -2
- package/dist/components/FormRenderer/clear-uncompleted-routes/test-data/component-used-in-multiple-pages-data.json +0 -4
- package/dist/components/FormRenderer/clear-uncompleted-routes/test-data/component-used-in-multiple-pages-form.json +0 -61
- package/dist/components/FormRenderer/clear-uncompleted-routes/test-data/cop-airpax-after.json +0 -429
- package/dist/components/FormRenderer/clear-uncompleted-routes/test-data/cop-airpax-before.json +0 -449
- package/dist/components/FormRenderer/clear-uncompleted-routes/test-data/cop-airpax-form.json +0 -15219
- package/dist/components/FormRenderer/clear-uncompleted-routes/test-data/cop-eab-2-data-after.json +0 -516
- package/dist/components/FormRenderer/clear-uncompleted-routes/test-data/cop-eab-2-data-before.json +0 -593
- package/dist/components/FormRenderer/clear-uncompleted-routes/test-data/cop-eab2-form.json +0 -15219
- package/dist/components/FormRenderer/clear-uncompleted-routes/test-data/cop-mandec-data-after.json +0 -84
- package/dist/components/FormRenderer/clear-uncompleted-routes/test-data/cop-mandec-data-before.json +0 -98
- package/dist/components/FormRenderer/clear-uncompleted-routes/test-data/cop-mandec-form.json +0 -9158
- package/dist/components/FormRenderer/clear-uncompleted-routes/test-data/data-with-collection-data-removed.json +0 -4
- package/dist/components/FormRenderer/clear-uncompleted-routes/test-data/data-with-collections.json +0 -8
- package/dist/components/FormRenderer/clear-uncompleted-routes/test-data/data-with-components-removed.json +0 -3
- package/dist/components/FormRenderer/clear-uncompleted-routes/test-data/data-with-components.json +0 -5
- package/dist/components/FormRenderer/clear-uncompleted-routes/test-data/data-with-entire-collection-removed.json +0 -3
- package/dist/components/FormRenderer/clear-uncompleted-routes/test-data/data-with-nested-component-removed.json +0 -10
- package/dist/components/FormRenderer/clear-uncompleted-routes/test-data/data-with-nested-components.json +0 -11
- package/dist/components/FormRenderer/clear-uncompleted-routes/test-data/form-for-nested-components.json +0 -96
- package/dist/components/FormRenderer/clear-uncompleted-routes/test-data/form-with-collections-delete-entire.json +0 -47
- package/dist/components/FormRenderer/clear-uncompleted-routes/test-data/form-with-collections.json +0 -46
- package/dist/components/FormRenderer/clear-uncompleted-routes/test-data/form-with-components.json +0 -48
- package/dist/components/FormRenderer/clear-uncompleted-routes/test-data/test.json +0 -1605
- package/dist/components/FormRenderer/clear-uncompleted-routes/test-data/test2.json +0 -205
- package/dist/components/FormRenderer/helpers/clearOutUncompletedRoutes.js +0 -206
- package/dist/components/FormRenderer/helpers/clearOutUncompletedRoutes.test.js +0 -143
- package/dist/components/FormRenderer/helpers/deleteNodeByPath.js +0 -26
- package/dist/components/FormRenderer/helpers/deleteNodeByPath.test.js +0 -56
package/dist/components/FormRenderer/clear-uncompleted-routes/test-data/cop-airpax-after.json
DELETED
|
@@ -1,429 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"environmentContext": {
|
|
3
|
-
"attachmentServiceUrl": "/files",
|
|
4
|
-
"privateUiUrl": "http://localhost:3000",
|
|
5
|
-
"referenceDataUrl": "/refdata",
|
|
6
|
-
"workflowUrl": "/camunda"
|
|
7
|
-
},
|
|
8
|
-
"extendedStaffDetailsContext": {
|
|
9
|
-
"email": "peter.fajemisin@digital.homeoffice.gov.uk",
|
|
10
|
-
"linemanagerEmail": "kamran.mirza1@digital.homeoffice.gov.uk",
|
|
11
|
-
"name": "Peter Fajemisin",
|
|
12
|
-
"linemanagerApprovalStatus": "approved"
|
|
13
|
-
},
|
|
14
|
-
"keycloakContext": {
|
|
15
|
-
"accessToken": "eyJhbGciOiJSUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJfQXJ5M2M5VU9saEJLaWRhR29oMkV3R2ZnaDJYQUNSVU1jTnpiOUhNRzl3In0.eyJleHAiOjE3MDc1MTAzMDUsImlhdCI6MTcwNzUwOTQwNSwiYXV0aF90aW1lIjoxNzA3NTA3NzM5LCJqdGkiOiI0ODg4NzE2MS01NzUzLTRiNWMtYjZlOC1kNDdjMTVmMjlkODciLCJpc3MiOiJodHRwczovL3Nzby1kZXYubm90cHJvZC5ob21lb2ZmaWNlLmdvdi51ay9hdXRoL3JlYWxtcy9jb3AtZGV2IiwiYXVkIjpbInByaXZhdGUtcG9saWN5LXNlcnZpY2UiLCJjYW11bmRhLXJlc3QtYXBpIiwicmVmZGF0YS1hcGkiLCJvcGVyYXRpb25hbC1kYXRhLWFwaSIsImFjY291bnQiXSwic3ViIjoiOGIyODJhOGYtMTVhNS00MGQ0LWJmMTItZGE1MWZhMWE4M2YzIiwidHlwIjoiQmVhcmVyIiwiYXpwIjoiY29wIiwibm9uY2UiOiI5Y2E1ZDMzOS02OGU5LTQzNDctODQxOS1mMjAzYWQ4MjBkNTYiLCJzZXNzaW9uX3N0YXRlIjoiYmNkZjI3NTMtOTRlYy00MjAzLWIzYmQtNDQ5M2U2NmMyZDg1IiwiYWNyIjoiMCIsImFsbG93ZWQtb3JpZ2lucyI6WyIqIl0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJjb3BfYWRtaW4iLCJjb3BnZSIsInByb2Nlc3NfYWRtaW4iLCJmb3JtYnVpbGRlci1yZWFkb25seSIsImNhbXVuZGEtYWRtaW5zIiwiZm9ybWJ1aWxkZXItZWRpdCIsIm9mZmxpbmVfYWNjZXNzIiwiY2l2aWwiLCJiZnJvbGUiLCJzeXN0ZW11c2VyIiwidGFyZ2V0X3JlYWQiLCJ1bWFfYXV0aG9yaXphdGlvbiIsInRhcmdldF91cGRhdGUiXX0sInJlc291cmNlX2FjY2VzcyI6eyJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50IiwibWFuYWdlLWFjY291bnQtbGlua3MiLCJ2aWV3LXByb2ZpbGUiXX19LCJzY29wZSI6Im9wZW5pZCBjYW11bmRhLXJlc3QtYXBpIHByb2ZpbGUgZW1haWwiLCJzaWQiOiJiY2RmMjc1My05NGVjLTQyMDMtYjNiZC00NDkzZTY2YzJkODUiLCJlbWFpbF92ZXJpZmllZCI6ZmFsc2UsImxpbmVfbWFuYWdlcl9hcHByb3ZhbF9zdGF0dXMiOiJhcHByb3ZlZCIsImxpbmVfbWFuYWdlcl9lbWFpbCI6ImthbXJhbi5taXJ6YTFAZGlnaXRhbC5ob21lb2ZmaWNlLmdvdi51ayIsImdyb3VwcyI6WyIvQVAxVDAxUDEiLCIvQ09QIiwiL0NPUF9BRE1JTiIsIi9ETjAyRzUiLCIvYmZyb2xlIiwiL2NhbXVuZGEtYWRtaW4iLCIvY29wZ2UiLCIvcHJvY2Vzc19hZG1pbiJdLCJhY3RpdmUiOiJ5ZXMiLCJ0ZWFtX2lkIjoiZmU4NDYyMTctMGU5NS00MjNkLWJiNzctYmI2NDgwZDMxYzQ2IiwicHJlZmVycmVkX3VzZXJuYW1lIjoicGV0ZXIuZmFqZW1pc2luQGRpZ2l0YWwuaG9tZW9mZmljZS5nb3YudWsiLCJkYnJvbGUiOiJyZWFkb25seSIsImdpdmVuX25hbWUiOiJQZXRlciIsInJlZmRicm9sZSI6InJlZnJlYWRvbmx5IiwibG9jYXRpb25faWQiOjEyLCJncmFkZV9pZCI6IjFjMTQwMDExLTQ2YWQtNGE1ZC1hZjI1LWU4MGE2ZmNkY2RiYSIsInBob25lIjoiKzQ0NzgwOTI4NDAyOSIsIm5hbWUiOiJQZXRlciBGYWplbWlzaW4iLCJmYW1pbHlfbmFtZSI6IkZhamVtaXNpbiIsImFkZWxwaGlfbnVtYmVyIjoiMTcyNzI3IiwiZW1haWwiOiJwZXRlci5mYWplbWlzaW5AZGlnaXRhbC5ob21lb2ZmaWNlLmdvdi51ayIsInBvbGljeXNlcnZpY2UiOiJwb2xpY3lzZXJ2aWNlIn0.GKY9Jgjs2XldRp4XOSc6NCGCteNeNdiqbP7uLRwmw7qS7WZ0bOKIG6kbSbSlsKCJf_H-rtzJsKPyIGByGzMRxEXJ7GiSIhX_CpyEIoXJYZRyGFFxfgownsrqpcQ0Zjqb4NruDYlZ-TyRmwuzhFwSwv0bUWRvBklGMJNRVRPJsLDXpRT561ZNbiMtzR70It9kg_CSlwZ7Yq9jH_cFKRqwEKEhxgq2CgJfYih5h5biOzGKFvrwlYfmAHMFTEz8QD3qU-TDipuDyAev-xrHsQM2hbZsx9NJBKjFzVq0-Oi-b5XCPVaKaGpW_PmTPGt6S2Qo8idr-GZgLcTf3gaVW03Asg",
|
|
16
|
-
"adelphi": "172727",
|
|
17
|
-
"email": "peter.fajemisin@digital.homeoffice.gov.uk",
|
|
18
|
-
"familyName": "Fajemisin",
|
|
19
|
-
"givenName": "Peter",
|
|
20
|
-
"gradeId": "1c140011-46ad-4a5d-af25-e80a6fcdcdba",
|
|
21
|
-
"groups": [
|
|
22
|
-
"/AP1T01P1",
|
|
23
|
-
"/COP",
|
|
24
|
-
"/COP_ADMIN",
|
|
25
|
-
"/DN02G5",
|
|
26
|
-
"/bfrole",
|
|
27
|
-
"/camunda-admin",
|
|
28
|
-
"/copge",
|
|
29
|
-
"/process_admin"
|
|
30
|
-
],
|
|
31
|
-
"locationId": 12,
|
|
32
|
-
"phone": "+447809284029",
|
|
33
|
-
"realm": "cop-dev",
|
|
34
|
-
"refreshToken": "eyJhbGciOiJIUzI1NiIsInR5cCIgOiAiSldUIiwia2lkIiA6ICJhNGU2MmU2YS1kZGQ1LTQzMDAtOGEzZC1mZmYzYmZiMTdiY2MifQ.eyJleHAiOjE3MDc1MTEyMDUsImlhdCI6MTcwNzUwOTQwNSwianRpIjoiMzMzMGI2MGYtMGMxYi00MjMzLWJkZGQtMjY2NDQ4ZTBkZGU2IiwiaXNzIjoiaHR0cHM6Ly9zc28tZGV2Lm5vdHByb2QuaG9tZW9mZmljZS5nb3YudWsvYXV0aC9yZWFsbXMvY29wLWRldiIsImF1ZCI6Imh0dHBzOi8vc3NvLWRldi5ub3Rwcm9kLmhvbWVvZmZpY2UuZ292LnVrL2F1dGgvcmVhbG1zL2NvcC1kZXYiLCJzdWIiOiI4YjI4MmE4Zi0xNWE1LTQwZDQtYmYxMi1kYTUxZmExYTgzZjMiLCJ0eXAiOiJSZWZyZXNoIiwiYXpwIjoiY29wIiwibm9uY2UiOiI5Y2E1ZDMzOS02OGU5LTQzNDctODQxOS1mMjAzYWQ4MjBkNTYiLCJzZXNzaW9uX3N0YXRlIjoiYmNkZjI3NTMtOTRlYy00MjAzLWIzYmQtNDQ5M2U2NmMyZDg1Iiwic2NvcGUiOiJvcGVuaWQgY2FtdW5kYS1yZXN0LWFwaSBwcm9maWxlIGVtYWlsIiwic2lkIjoiYmNkZjI3NTMtOTRlYy00MjAzLWIzYmQtNDQ5M2U2NmMyZDg1In0.g26jOVWeudC9ycBazY8lGx9y9JHwQ8iLKTMdgfBCad8",
|
|
35
|
-
"roles": [
|
|
36
|
-
"cop_admin",
|
|
37
|
-
"copge",
|
|
38
|
-
"process_admin",
|
|
39
|
-
"formbuilder-readonly",
|
|
40
|
-
"camunda-admins",
|
|
41
|
-
"formbuilder-edit",
|
|
42
|
-
"offline_access",
|
|
43
|
-
"civil",
|
|
44
|
-
"bfrole",
|
|
45
|
-
"systemuser",
|
|
46
|
-
"target_read",
|
|
47
|
-
"uma_authorization",
|
|
48
|
-
"target_update"
|
|
49
|
-
],
|
|
50
|
-
"sessionId": "bcdf2753-94ec-4203-b3bd-4493e66c2d85",
|
|
51
|
-
"subject": "8b282a8f-15a5-40d4-bf12-da51fa1a83f3",
|
|
52
|
-
"url": "https://sso-dev.notprod.homeoffice.gov.uk/auth"
|
|
53
|
-
},
|
|
54
|
-
"shiftDetailsContext": {
|
|
55
|
-
"email": "peter.fajemisin@digital.homeoffice.gov.uk",
|
|
56
|
-
"location": {
|
|
57
|
-
"id": 12,
|
|
58
|
-
"name": "2 Marsham Street",
|
|
59
|
-
"description": null,
|
|
60
|
-
"unlocodeid": null,
|
|
61
|
-
"addressid": "dbcbb8fd-1d93-45f2-81a2-b0a0327ea1b9",
|
|
62
|
-
"geolat": "51.495927",
|
|
63
|
-
"geolong": "-0.129887",
|
|
64
|
-
"icaoid": null,
|
|
65
|
-
"bflocationtypeid": "73c2f30a-0e7d-4e90-af5c-de42dca9dfb0",
|
|
66
|
-
"code": "MARSH",
|
|
67
|
-
"countryoflegalsystem": "England",
|
|
68
|
-
"ukcountry": "England",
|
|
69
|
-
"validfrom": "2019-01-01T00:01:00.000Z",
|
|
70
|
-
"validto": null,
|
|
71
|
-
"updatedby": null
|
|
72
|
-
},
|
|
73
|
-
"locationid": 12,
|
|
74
|
-
"phone": "+447809284029",
|
|
75
|
-
"roles": [
|
|
76
|
-
"cop_admin",
|
|
77
|
-
"copge",
|
|
78
|
-
"process_admin",
|
|
79
|
-
"formbuilder-readonly",
|
|
80
|
-
"camunda-admins",
|
|
81
|
-
"formbuilder-edit",
|
|
82
|
-
"offline_access",
|
|
83
|
-
"civil",
|
|
84
|
-
"bfrole",
|
|
85
|
-
"systemuser",
|
|
86
|
-
"target_read",
|
|
87
|
-
"uma_authorization",
|
|
88
|
-
"target_update"
|
|
89
|
-
],
|
|
90
|
-
"team": {
|
|
91
|
-
"id": "63b89034-8b74-4fc8-9a98-ea514383a0dd",
|
|
92
|
-
"displayname": "Aberdeen Commodity team",
|
|
93
|
-
"code": "DN02G5",
|
|
94
|
-
"grouptypeid": 1,
|
|
95
|
-
"branchid": 22,
|
|
96
|
-
"keycloakgrouppath": "/DN02G5",
|
|
97
|
-
"locationid": null,
|
|
98
|
-
"name": "DN02G5",
|
|
99
|
-
"selfmanaged": false,
|
|
100
|
-
"teamid": "fe846217-0e95-423d-bb77-bb6480d31c46"
|
|
101
|
-
},
|
|
102
|
-
"teamid": "fe846217-0e95-423d-bb77-bb6480d31c46",
|
|
103
|
-
"currentGroup": {
|
|
104
|
-
"id": "63b89034-8b74-4fc8-9a98-ea514383a0dd",
|
|
105
|
-
"displayname": "Aberdeen Commodity team",
|
|
106
|
-
"code": "DN02G5",
|
|
107
|
-
"grouptypeid": 1,
|
|
108
|
-
"branchid": 22,
|
|
109
|
-
"keycloakgrouppath": "/DN02G5",
|
|
110
|
-
"locationid": null,
|
|
111
|
-
"name": "DN02G5",
|
|
112
|
-
"selfmanaged": false,
|
|
113
|
-
"teamid": "fe846217-0e95-423d-bb77-bb6480d31c46"
|
|
114
|
-
},
|
|
115
|
-
"groups": [
|
|
116
|
-
"/AP1T01P1",
|
|
117
|
-
"/COP",
|
|
118
|
-
"/COP_ADMIN",
|
|
119
|
-
"/DN02G5",
|
|
120
|
-
"/bfrole",
|
|
121
|
-
"/camunda-admin",
|
|
122
|
-
"/copge",
|
|
123
|
-
"/process_admin"
|
|
124
|
-
]
|
|
125
|
-
},
|
|
126
|
-
"staffDetailsDataContext": {
|
|
127
|
-
"adelphi": "172727",
|
|
128
|
-
"defaultlocation": {
|
|
129
|
-
"id": 12,
|
|
130
|
-
"name": "2 Marsham Street",
|
|
131
|
-
"description": null,
|
|
132
|
-
"unlocodeid": null,
|
|
133
|
-
"addressid": "dbcbb8fd-1d93-45f2-81a2-b0a0327ea1b9",
|
|
134
|
-
"geolat": "51.495927",
|
|
135
|
-
"geolong": "-0.129887",
|
|
136
|
-
"icaoid": null,
|
|
137
|
-
"bflocationtypeid": "73c2f30a-0e7d-4e90-af5c-de42dca9dfb0",
|
|
138
|
-
"code": "MARSH",
|
|
139
|
-
"countryoflegalsystem": "England",
|
|
140
|
-
"ukcountry": "England",
|
|
141
|
-
"validfrom": "2019-01-01T00:01:00.000Z",
|
|
142
|
-
"validto": null,
|
|
143
|
-
"updatedby": null
|
|
144
|
-
},
|
|
145
|
-
"defaultlocationid": 12,
|
|
146
|
-
"defaultteam": {
|
|
147
|
-
"id": "fe846217-0e95-423d-bb77-bb6480d31c46",
|
|
148
|
-
"name": "Aberdeen Commodity team",
|
|
149
|
-
"code": "DN02G5",
|
|
150
|
-
"description": null,
|
|
151
|
-
"costcentrecode": "DN02G5",
|
|
152
|
-
"parentteamid": "cf576f61-26cd-4862-92e1-2d5cfc050c2d",
|
|
153
|
-
"regionalintel": false,
|
|
154
|
-
"bffunctiontypeid": "63d59d5c-e1d0-4f16-9607-7aa2613cc695",
|
|
155
|
-
"ministryid": "1",
|
|
156
|
-
"departmentid": "1",
|
|
157
|
-
"directorateid": "2",
|
|
158
|
-
"branchid": "22",
|
|
159
|
-
"divisionid": "11",
|
|
160
|
-
"commandid": "38",
|
|
161
|
-
"validfrom": "2019-01-01T00:01:00.000Z",
|
|
162
|
-
"validto": null,
|
|
163
|
-
"updatedby": null
|
|
164
|
-
},
|
|
165
|
-
"defaultteamid": "fe846217-0e95-423d-bb77-bb6480d31c46",
|
|
166
|
-
"email": "peter.fajemisin@digital.homeoffice.gov.uk",
|
|
167
|
-
"firstname": "Peter",
|
|
168
|
-
"gradeid": "1c140011-46ad-4a5d-af25-e80a6fcdcdba",
|
|
169
|
-
"locationid": 12,
|
|
170
|
-
"phone": "+447809284029",
|
|
171
|
-
"surname": "Fajemisin",
|
|
172
|
-
"teamid": "fe846217-0e95-423d-bb77-bb6480d31c46",
|
|
173
|
-
"areYouACivilServant": "yes"
|
|
174
|
-
},
|
|
175
|
-
"businessKey": "DEV-20240209-1172",
|
|
176
|
-
"modeOfTransport": {
|
|
177
|
-
"id": 2,
|
|
178
|
-
"mode": "Scheduled Air Passenger",
|
|
179
|
-
"modecode": "airpass",
|
|
180
|
-
"crossingtype": [
|
|
181
|
-
"air"
|
|
182
|
-
],
|
|
183
|
-
"value": "Scheduled Air Passenger",
|
|
184
|
-
"label": "Scheduled Air Passenger"
|
|
185
|
-
},
|
|
186
|
-
"port": {
|
|
187
|
-
"id": 3415,
|
|
188
|
-
"name": "Luton",
|
|
189
|
-
"sea": false,
|
|
190
|
-
"air": true,
|
|
191
|
-
"land": false,
|
|
192
|
-
"rail": false,
|
|
193
|
-
"countryid": 234,
|
|
194
|
-
"iata": "LTN",
|
|
195
|
-
"value": "3415",
|
|
196
|
-
"label": "Luton"
|
|
197
|
-
},
|
|
198
|
-
"formStatus": {
|
|
199
|
-
"tasks": {
|
|
200
|
-
"undefined": {},
|
|
201
|
-
"Enter event details": {
|
|
202
|
-
"complete": true,
|
|
203
|
-
"currentPage": "eventDetailsCya"
|
|
204
|
-
},
|
|
205
|
-
"Enter item and storage details": {
|
|
206
|
-
"complete": true,
|
|
207
|
-
"currentPage": "whatHappensNext"
|
|
208
|
-
},
|
|
209
|
-
"Journey-details-item-abandoned": {
|
|
210
|
-
"complete": true,
|
|
211
|
-
"currentPage": "journeyCya"
|
|
212
|
-
},
|
|
213
|
-
"Accept and submit": {
|
|
214
|
-
"complete": false,
|
|
215
|
-
"currentPage": "submitForm"
|
|
216
|
-
}
|
|
217
|
-
},
|
|
218
|
-
"taskPage": "submitForm"
|
|
219
|
-
},
|
|
220
|
-
"formInstanceId": "31da7b24-3328-40de-b213-e6bfcd397a46",
|
|
221
|
-
"links": [
|
|
222
|
-
{
|
|
223
|
-
"method": "GET",
|
|
224
|
-
"href": "https://blue.dev.cop.homeoffice.gov.uk/camunda/engine-rest/process-instance/f2818194-c787-11ee-b319-56e77d2b6f37",
|
|
225
|
-
"rel": "self"
|
|
226
|
-
}
|
|
227
|
-
],
|
|
228
|
-
"id": "f2818194-c787-11ee-b319-56e77d2b6f37",
|
|
229
|
-
"definitionId": "cop-addABorderEvent:9:113b6e67-b48d-11ee-8088-52b814b55f74",
|
|
230
|
-
"caseInstanceId": null,
|
|
231
|
-
"ended": false,
|
|
232
|
-
"suspended": false,
|
|
233
|
-
"tenantId": null,
|
|
234
|
-
"whatHappened": "items",
|
|
235
|
-
"eventDateTime": {
|
|
236
|
-
"eventDate": "09-02-2024",
|
|
237
|
-
"eventTime": "10:10"
|
|
238
|
-
},
|
|
239
|
-
"centaurReference": "e1111111",
|
|
240
|
-
"leadOfficerEmail": {
|
|
241
|
-
"email": "peter.fajemisin@digital.homeoffice.gov.uk",
|
|
242
|
-
"label": "peter.fajemisin@digital.homeoffice.gov.uk",
|
|
243
|
-
"value": "peter.fajemisin@digital.homeoffice.gov.uk",
|
|
244
|
-
"defaultteamid": "fe846217-0e95-423d-bb77-bb6480d31c46"
|
|
245
|
-
},
|
|
246
|
-
"officerEmails": [],
|
|
247
|
-
"operationOrExercise": "no",
|
|
248
|
-
"itemsActiveId": "1707509763371",
|
|
249
|
-
"itemsNumberedIndex": 1,
|
|
250
|
-
"items": [
|
|
251
|
-
{
|
|
252
|
-
"id": "1707509763371",
|
|
253
|
-
"sealNumber": "ERTYUIOP0987654",
|
|
254
|
-
"itemCategory": {
|
|
255
|
-
"id": 6,
|
|
256
|
-
"category": "Alcohol",
|
|
257
|
-
"description": "Beers, Wines, Spirits etc.",
|
|
258
|
-
"validfrom": "2023-01-10T00:00:01.000Z",
|
|
259
|
-
"validto": null,
|
|
260
|
-
"updatedby": "Mohammed Abdul Odud",
|
|
261
|
-
"synonyms": [
|
|
262
|
-
"'Beer'",
|
|
263
|
-
"'Wines'",
|
|
264
|
-
"'Spirits'"
|
|
265
|
-
],
|
|
266
|
-
"value": "6",
|
|
267
|
-
"label": "Alcohol"
|
|
268
|
-
},
|
|
269
|
-
"itemSubCategory": {
|
|
270
|
-
"id": 1795,
|
|
271
|
-
"name": "Alcohol distiller",
|
|
272
|
-
"description": null,
|
|
273
|
-
"itemcategoriesid": 6,
|
|
274
|
-
"cites": false,
|
|
275
|
-
"poao": false,
|
|
276
|
-
"cbrn": false,
|
|
277
|
-
"document": false,
|
|
278
|
-
"tobacco": false,
|
|
279
|
-
"alcohol": true,
|
|
280
|
-
"weapons": false,
|
|
281
|
-
"firearms": false,
|
|
282
|
-
"ipr": true,
|
|
283
|
-
"strategic": false,
|
|
284
|
-
"avtc": false,
|
|
285
|
-
"oils": false,
|
|
286
|
-
"commodity": false,
|
|
287
|
-
"good": true,
|
|
288
|
-
"plant": false,
|
|
289
|
-
"animal": false,
|
|
290
|
-
"drugs": false,
|
|
291
|
-
"financial": false,
|
|
292
|
-
"indecent": false,
|
|
293
|
-
"vehicle": false,
|
|
294
|
-
"medical": false,
|
|
295
|
-
"unitid": 5,
|
|
296
|
-
"seizureqty": null,
|
|
297
|
-
"ienqty": null,
|
|
298
|
-
"validfrom": "2023-01-10T00:00:01.000Z",
|
|
299
|
-
"validto": null,
|
|
300
|
-
"updatedby": "Mohammed Abdul Odud",
|
|
301
|
-
"uof": false,
|
|
302
|
-
"epmscode": 1037,
|
|
303
|
-
"epmscategory": "ALP",
|
|
304
|
-
"unitarray": [
|
|
305
|
-
5
|
|
306
|
-
],
|
|
307
|
-
"categoryarray": [
|
|
308
|
-
6,
|
|
309
|
-
9,
|
|
310
|
-
14
|
|
311
|
-
],
|
|
312
|
-
"lethalfirearm": null,
|
|
313
|
-
"nonlethalfirearm": null,
|
|
314
|
-
"value": "1795",
|
|
315
|
-
"label": "Alcohol distiller"
|
|
316
|
-
},
|
|
317
|
-
"seizedOrDetained": "seized",
|
|
318
|
-
"legalReasonForSeizing": {
|
|
319
|
-
"id": 1,
|
|
320
|
-
"epmsvalue": 2,
|
|
321
|
-
"reason": "CEMA",
|
|
322
|
-
"description": "Customs and excise management act 1979",
|
|
323
|
-
"validfrom": "2022-09-21T00:00:01.000Z",
|
|
324
|
-
"validto": null,
|
|
325
|
-
"updatedby": "Mohammed Abdul Odud",
|
|
326
|
-
"value": "1",
|
|
327
|
-
"label": "Customs and excise management act 1979"
|
|
328
|
-
},
|
|
329
|
-
"detectionTechnologies": [
|
|
330
|
-
{
|
|
331
|
-
"id": "1707509774061",
|
|
332
|
-
"detectionTechnology": {
|
|
333
|
-
"id": 5,
|
|
334
|
-
"name": "Automatic Number Plate Recognition",
|
|
335
|
-
"value": "5",
|
|
336
|
-
"label": "Automatic Number Plate Recognition"
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
],
|
|
340
|
-
"searchTechniques": [
|
|
341
|
-
{
|
|
342
|
-
"id": "1707509774061",
|
|
343
|
-
"searchTechnique": {
|
|
344
|
-
"id": 27,
|
|
345
|
-
"type": "Baggage",
|
|
346
|
-
"value": "27",
|
|
347
|
-
"label": "Baggage"
|
|
348
|
-
}
|
|
349
|
-
}
|
|
350
|
-
],
|
|
351
|
-
"concealmentMethods": [
|
|
352
|
-
{
|
|
353
|
-
"id": "1707509774066",
|
|
354
|
-
"concealmentMethod": {
|
|
355
|
-
"id": 24,
|
|
356
|
-
"method": "Air filter",
|
|
357
|
-
"value": "24",
|
|
358
|
-
"label": "Air filter"
|
|
359
|
-
}
|
|
360
|
-
}
|
|
361
|
-
],
|
|
362
|
-
"brandText": "",
|
|
363
|
-
"specialStorageConditions": {
|
|
364
|
-
"epmsvalue": 4,
|
|
365
|
-
"description": "Drum",
|
|
366
|
-
"id": 4,
|
|
367
|
-
"value": "4",
|
|
368
|
-
"label": "Drum"
|
|
369
|
-
},
|
|
370
|
-
"make": "",
|
|
371
|
-
"quantity": "2",
|
|
372
|
-
"unitOfMeasure": {
|
|
373
|
-
"id": 13,
|
|
374
|
-
"unit": "Number of items",
|
|
375
|
-
"validfrom": "2023-02-21T00:00:01.000Z",
|
|
376
|
-
"validto": null,
|
|
377
|
-
"updatedby": "Mohammed Abdul Odud",
|
|
378
|
-
"code": 5,
|
|
379
|
-
"epmsid": 9,
|
|
380
|
-
"decimal": false,
|
|
381
|
-
"shortname": null,
|
|
382
|
-
"value": "13",
|
|
383
|
-
"label": "Number of items"
|
|
384
|
-
},
|
|
385
|
-
"itemDescription": "DSADSADSADSADA",
|
|
386
|
-
"willTheItemBeStored": "no",
|
|
387
|
-
"shouldThisItemBeDestroyed": "no",
|
|
388
|
-
"specialHandlingInstructions": "no",
|
|
389
|
-
"hasAnotherAgencyAdoptedTheItem": "no",
|
|
390
|
-
"constructedOrAdapted": "no",
|
|
391
|
-
"doYouHavePhotosOfTheItemToAdd": "no",
|
|
392
|
-
"whatIsTheInitialMovement?": {
|
|
393
|
-
"id": 1,
|
|
394
|
-
"epmscode": 1,
|
|
395
|
-
"description": "Lockup officer not available",
|
|
396
|
-
"inuse": true,
|
|
397
|
-
"validfrom": "2022-08-18T00:00:01.000Z",
|
|
398
|
-
"validto": null,
|
|
399
|
-
"updatedby": "Mohammed Abdul Odud",
|
|
400
|
-
"value": "1",
|
|
401
|
-
"label": "Lockup officer not available"
|
|
402
|
-
},
|
|
403
|
-
"giveAReason": "HHFFGH"
|
|
404
|
-
}
|
|
405
|
-
],
|
|
406
|
-
"lockup": {
|
|
407
|
-
"value": "LTN",
|
|
408
|
-
"label": "Luton Airport Lockup",
|
|
409
|
-
"hidden": true
|
|
410
|
-
},
|
|
411
|
-
"meta": {
|
|
412
|
-
"documents": [
|
|
413
|
-
{
|
|
414
|
-
"name": "smiley.jpg",
|
|
415
|
-
"extension": "jpg",
|
|
416
|
-
"type": "image/jpeg",
|
|
417
|
-
"file": {},
|
|
418
|
-
"url": "https://cop-file-upload-service.dev.cop.homeoffice.gov.uk/files/DEV-20240209-1172/clean/3f565ba8-67be-46e9-b9f9-21693e34d9f0",
|
|
419
|
-
"indexInField": 0,
|
|
420
|
-
"field": "items[0].photos",
|
|
421
|
-
"size": 6495
|
|
422
|
-
}
|
|
423
|
-
]
|
|
424
|
-
},
|
|
425
|
-
"photosUploadSpinner": false,
|
|
426
|
-
"photosNextPage": "seals",
|
|
427
|
-
"epmsSubmitted": true,
|
|
428
|
-
"doYouHaveTheirFlightNumber": "no"
|
|
429
|
-
}
|