@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-eab-2-data-after.json
DELETED
|
@@ -1,516 +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.eyJleHAiOjE3MDY4ODQ3NDMsImlhdCI6MTcwNjg4Mzg0MywiYXV0aF90aW1lIjoxNzA2ODgzODQyLCJqdGkiOiJjMzhlNTM2OC00OTg4LTQ0MGYtODJkMy01MGNkOTE4ZjA0YzkiLCJpc3MiOiJodHRwczovL3Nzby1kZXYubm90cHJvZC5ob21lb2ZmaWNlLmdvdi51ay9hdXRoL3JlYWxtcy9jb3AtZGV2IiwiYXVkIjpbInByaXZhdGUtcG9saWN5LXNlcnZpY2UiLCJjYW11bmRhLXJlc3QtYXBpIiwicmVmZGF0YS1hcGkiLCJvcGVyYXRpb25hbC1kYXRhLWFwaSIsImFjY291bnQiXSwic3ViIjoiOGIyODJhOGYtMTVhNS00MGQ0LWJmMTItZGE1MWZhMWE4M2YzIiwidHlwIjoiQmVhcmVyIiwiYXpwIjoiY29wIiwibm9uY2UiOiJjNWUwMDAxMi0xMzE3LTQ3NzYtOGUwNS1mMGUwMTcwMDE2MmEiLCJzZXNzaW9uX3N0YXRlIjoiNjlhYjlkOTMtZTE5Mi00MmYwLTlhMDMtYWY2M2VkOWIyNWRiIiwiYWNyIjoiMSIsImFsbG93ZWQtb3JpZ2lucyI6WyIqIl0sInJlYWxtX2FjY2VzcyI6eyJyb2xlcyI6WyJjb3BfYWRtaW4iLCJjb3BnZSIsInByb2Nlc3NfYWRtaW4iLCJmb3JtYnVpbGRlci1yZWFkb25seSIsImNhbXVuZGEtYWRtaW5zIiwiZm9ybWJ1aWxkZXItZWRpdCIsIm9mZmxpbmVfYWNjZXNzIiwiY2l2aWwiLCJiZnJvbGUiLCJzeXN0ZW11c2VyIiwidGFyZ2V0X3JlYWQiLCJ1bWFfYXV0aG9yaXphdGlvbiIsInRhcmdldF91cGRhdGUiXX0sInJlc291cmNlX2FjY2VzcyI6eyJhY2NvdW50Ijp7InJvbGVzIjpbIm1hbmFnZS1hY2NvdW50IiwibWFuYWdlLWFjY291bnQtbGlua3MiLCJ2aWV3LXByb2ZpbGUiXX19LCJzY29wZSI6Im9wZW5pZCBjYW11bmRhLXJlc3QtYXBpIHByb2ZpbGUgZW1haWwiLCJzaWQiOiI2OWFiOWQ5My1lMTkyLTQyZjAtOWEwMy1hZjYzZWQ5YjI1ZGIiLCJlbWFpbF92ZXJpZmllZCI6ZmFsc2UsImxpbmVfbWFuYWdlcl9hcHByb3ZhbF9zdGF0dXMiOiJhcHByb3ZlZCIsImxpbmVfbWFuYWdlcl9lbWFpbCI6ImthbXJhbi5taXJ6YTFAZGlnaXRhbC5ob21lb2ZmaWNlLmdvdi51ayIsImdyb3VwcyI6WyIvQVAxVDAxUDEiLCIvQ09QIiwiL0NPUF9BRE1JTiIsIi9ETjAyRzUiLCIvYmZyb2xlIiwiL2NhbXVuZGEtYWRtaW4iLCIvY29wZ2UiLCIvcHJvY2Vzc19hZG1pbiJdLCJhY3RpdmUiOiJ5ZXMiLCJ0ZWFtX2lkIjoiZmU4NDYyMTctMGU5NS00MjNkLWJiNzctYmI2NDgwZDMxYzQ2IiwicHJlZmVycmVkX3VzZXJuYW1lIjoicGV0ZXIuZmFqZW1pc2luQGRpZ2l0YWwuaG9tZW9mZmljZS5nb3YudWsiLCJkYnJvbGUiOiJyZWFkb25seSIsImdpdmVuX25hbWUiOiJQZXRlciIsInJlZmRicm9sZSI6InJlZnJlYWRvbmx5IiwibG9jYXRpb25faWQiOjEyLCJncmFkZV9pZCI6IjFjMTQwMDExLTQ2YWQtNGE1ZC1hZjI1LWU4MGE2ZmNkY2RiYSIsInBob25lIjoiKzQ0NzgwOTI4NDAyOSIsIm5hbWUiOiJQZXRlciBGYWplbWlzaW4iLCJmYW1pbHlfbmFtZSI6IkZhamVtaXNpbiIsImFkZWxwaGlfbnVtYmVyIjoiMTcyNzI3IiwiZW1haWwiOiJwZXRlci5mYWplbWlzaW5AZGlnaXRhbC5ob21lb2ZmaWNlLmdvdi51ayIsInBvbGljeXNlcnZpY2UiOiJwb2xpY3lzZXJ2aWNlIn0.PDE7PsiyN1YkvIpfDHRyfKLZfrtyCNRvkbS6x_y6DAWc0yNJ9l9FHIbZ3OBEKcGVOQVHxaGDlu_2A0aAlLAlY0ZoZm0G4RMfB7aSH4v_uvsPn-hbZpQ-SWiqcZzGLYsdsB0jp-DqVWqEiNV9jpXPwASnK_efltb-9i9ew_My83DCt94JARD9LtQ32D85atsIhWy5TMJ8KpgRrggTIH62d6rVehQDR_E1kljzOz9PKLJSCCfjux0RraKttTPIz82cMWTk6FZETUJWPx_AF7tsO3CPlRfpPNgXXBkLWFpxsJZ8YWZhwZHtau_B-DRSrRzU7TTzPjeuRh6S6HkNa0xZtg",
|
|
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.eyJleHAiOjE3MDY4ODU2NDMsImlhdCI6MTcwNjg4Mzg0MywianRpIjoiZTA3NDJmN2UtYTcyNi00ZTVlLTliYTAtNTNiMDk1NjFkNDdmIiwiaXNzIjoiaHR0cHM6Ly9zc28tZGV2Lm5vdHByb2QuaG9tZW9mZmljZS5nb3YudWsvYXV0aC9yZWFsbXMvY29wLWRldiIsImF1ZCI6Imh0dHBzOi8vc3NvLWRldi5ub3Rwcm9kLmhvbWVvZmZpY2UuZ292LnVrL2F1dGgvcmVhbG1zL2NvcC1kZXYiLCJzdWIiOiI4YjI4MmE4Zi0xNWE1LTQwZDQtYmYxMi1kYTUxZmExYTgzZjMiLCJ0eXAiOiJSZWZyZXNoIiwiYXpwIjoiY29wIiwibm9uY2UiOiJjNWUwMDAxMi0xMzE3LTQ3NzYtOGUwNS1mMGUwMTcwMDE2MmEiLCJzZXNzaW9uX3N0YXRlIjoiNjlhYjlkOTMtZTE5Mi00MmYwLTlhMDMtYWY2M2VkOWIyNWRiIiwic2NvcGUiOiJvcGVuaWQgY2FtdW5kYS1yZXN0LWFwaSBwcm9maWxlIGVtYWlsIiwic2lkIjoiNjlhYjlkOTMtZTE5Mi00MmYwLTlhMDMtYWY2M2VkOWIyNWRiIn0.t-1lJii43pshD5JqyFc1WNqoUTn4pXzqZhtS3YiXSjE",
|
|
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": "69ab9d93-e192-42f0-9a03-af63ed9b25db",
|
|
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-20240202-525",
|
|
176
|
-
"modeOfTransport": {
|
|
177
|
-
"id": 16,
|
|
178
|
-
"mode": "RoRo Freight Accompanied",
|
|
179
|
-
"modecode": "rorofrac",
|
|
180
|
-
"crossingtype": [
|
|
181
|
-
"sea"
|
|
182
|
-
],
|
|
183
|
-
"value": "RoRo Freight Accompanied",
|
|
184
|
-
"label": "RoRo Freight Accompanied"
|
|
185
|
-
},
|
|
186
|
-
"port": {
|
|
187
|
-
"id": 113493,
|
|
188
|
-
"name": "Calais",
|
|
189
|
-
"sea": true,
|
|
190
|
-
"air": false,
|
|
191
|
-
"land": false,
|
|
192
|
-
"rail": false,
|
|
193
|
-
"countryid": 234,
|
|
194
|
-
"iata": null,
|
|
195
|
-
"value": "113493",
|
|
196
|
-
"label": "Calais"
|
|
197
|
-
},
|
|
198
|
-
"formStatus": {
|
|
199
|
-
"tasks": {
|
|
200
|
-
"undefined": {},
|
|
201
|
-
"event-summary-people": {
|
|
202
|
-
"complete": true,
|
|
203
|
-
"currentPage": "eventSummaryCya"
|
|
204
|
-
},
|
|
205
|
-
"Upload photos": {
|
|
206
|
-
"complete": true,
|
|
207
|
-
"currentPage": "upload-photos-cya"
|
|
208
|
-
},
|
|
209
|
-
"Upload documents": {
|
|
210
|
-
"complete": true,
|
|
211
|
-
"currentPage": "upload-documents-cya"
|
|
212
|
-
},
|
|
213
|
-
"search-and-interception-details-cp": {
|
|
214
|
-
"complete": true,
|
|
215
|
-
"currentPage": "search-and-interception-check-cya"
|
|
216
|
-
},
|
|
217
|
-
"Driver details": {
|
|
218
|
-
"complete": true,
|
|
219
|
-
"currentPage": "driver-details-cya"
|
|
220
|
-
},
|
|
221
|
-
"journey-details-cp": {
|
|
222
|
-
"complete": true,
|
|
223
|
-
"currentPage": "check-journey-details"
|
|
224
|
-
},
|
|
225
|
-
"vehicle-details-roro-accompanied": {
|
|
226
|
-
"complete": true,
|
|
227
|
-
"currentPage": "vehicle-details-cya"
|
|
228
|
-
},
|
|
229
|
-
"Confirm assurance and submit": {
|
|
230
|
-
"complete": false,
|
|
231
|
-
"currentPage": "submit-civil-penalties"
|
|
232
|
-
}
|
|
233
|
-
},
|
|
234
|
-
"taskPage": "submit-civil-penalties"
|
|
235
|
-
},
|
|
236
|
-
"formInstanceId": "f520f0e9-12bc-42fb-ad7e-78905a747916",
|
|
237
|
-
"links": [
|
|
238
|
-
{
|
|
239
|
-
"method": "GET",
|
|
240
|
-
"href": "https://blue.dev.cop.homeoffice.gov.uk/camunda/engine-rest/process-instance/594cab0e-c1d7-11ee-b450-265fe077fed7",
|
|
241
|
-
"rel": "self"
|
|
242
|
-
}
|
|
243
|
-
],
|
|
244
|
-
"id": "594cab0e-c1d7-11ee-b450-265fe077fed7",
|
|
245
|
-
"definitionId": "cop-addABorderEvent:9:113b6e67-b48d-11ee-8088-52b814b55f74",
|
|
246
|
-
"caseInstanceId": null,
|
|
247
|
-
"ended": false,
|
|
248
|
-
"suspended": false,
|
|
249
|
-
"tenantId": null,
|
|
250
|
-
"whatHappened": "peopleHidingVehicle",
|
|
251
|
-
"peopleFoundDateTime": {
|
|
252
|
-
"date": "02-02-2024",
|
|
253
|
-
"time": "10:10"
|
|
254
|
-
},
|
|
255
|
-
"hiddenNationalities": [
|
|
256
|
-
{
|
|
257
|
-
"id": "1706884124019",
|
|
258
|
-
"nationality": {
|
|
259
|
-
"id": 2,
|
|
260
|
-
"name": "Afghanistan",
|
|
261
|
-
"iso31661alpha3": "AFG",
|
|
262
|
-
"value": "2",
|
|
263
|
-
"label": "Afghanistan"
|
|
264
|
-
},
|
|
265
|
-
"number": "2"
|
|
266
|
-
}
|
|
267
|
-
],
|
|
268
|
-
"leadOfficerEmail": {
|
|
269
|
-
"email": "peter.fajemisin@digital.homeoffice.gov.uk",
|
|
270
|
-
"label": "peter.fajemisin@digital.homeoffice.gov.uk",
|
|
271
|
-
"value": "peter.fajemisin@digital.homeoffice.gov.uk",
|
|
272
|
-
"defaultteamid": "fe846217-0e95-423d-bb77-bb6480d31c46"
|
|
273
|
-
},
|
|
274
|
-
"officerEmails": [],
|
|
275
|
-
"operationOrExercise": "yes",
|
|
276
|
-
"operationOrExerciseName": "to be removed",
|
|
277
|
-
"evidencePhotos": [
|
|
278
|
-
{
|
|
279
|
-
"name": "smiley.jpg",
|
|
280
|
-
"extension": "jpg",
|
|
281
|
-
"type": "image/jpeg",
|
|
282
|
-
"file": {},
|
|
283
|
-
"url": "https://cop-file-upload-service.dev.cop.homeoffice.gov.uk/files/DEV-20240202-525/clean/2b4ad9dd-0ff6-4f6b-86a2-f393ee3421f1"
|
|
284
|
-
}
|
|
285
|
-
],
|
|
286
|
-
"meta": {
|
|
287
|
-
"documents": [
|
|
288
|
-
{
|
|
289
|
-
"name": "smiley.jpg",
|
|
290
|
-
"extension": "jpg",
|
|
291
|
-
"type": "image/jpeg",
|
|
292
|
-
"file": {},
|
|
293
|
-
"url": "https://cop-file-upload-service.dev.cop.homeoffice.gov.uk/files/DEV-20240202-525/clean/2b4ad9dd-0ff6-4f6b-86a2-f393ee3421f1",
|
|
294
|
-
"indexInField": 0,
|
|
295
|
-
"field": "evidencePhotos",
|
|
296
|
-
"size": 6495
|
|
297
|
-
},
|
|
298
|
-
{
|
|
299
|
-
"name": "smiley.jpg",
|
|
300
|
-
"extension": "jpg",
|
|
301
|
-
"type": "image/jpeg",
|
|
302
|
-
"file": {},
|
|
303
|
-
"url": "https://cop-file-upload-service.dev.cop.homeoffice.gov.uk/files/DEV-20240202-525/clean/f8cd0e16-45d8-4360-8d43-d4e10f2deb17",
|
|
304
|
-
"indexInField": 0,
|
|
305
|
-
"field": "evidenceDocuments",
|
|
306
|
-
"size": 6495
|
|
307
|
-
}
|
|
308
|
-
]
|
|
309
|
-
},
|
|
310
|
-
"photosOf": [
|
|
311
|
-
"vehicleSecurity",
|
|
312
|
-
"frontOfVehicle",
|
|
313
|
-
"backOfVehicle",
|
|
314
|
-
"sideOfVehicle",
|
|
315
|
-
"methodOfEntry",
|
|
316
|
-
"cutsTearsorDamage",
|
|
317
|
-
"signsOfVechicleSecurityTampering",
|
|
318
|
-
"signsOfLockDisfunction",
|
|
319
|
-
"unauthorisedStorageOrWindDeflectorAccess",
|
|
320
|
-
"unauthorisedRoofAccess"
|
|
321
|
-
],
|
|
322
|
-
"photosUploadSpinner": false,
|
|
323
|
-
"photosNextPage": "upload-photos-cya",
|
|
324
|
-
"evidenceDocuments": [
|
|
325
|
-
{
|
|
326
|
-
"name": "smiley.jpg",
|
|
327
|
-
"extension": "jpg",
|
|
328
|
-
"type": "image/jpeg",
|
|
329
|
-
"file": {},
|
|
330
|
-
"url": "https://cop-file-upload-service.dev.cop.homeoffice.gov.uk/files/DEV-20240202-525/clean/f8cd0e16-45d8-4360-8d43-d4e10f2deb17"
|
|
331
|
-
}
|
|
332
|
-
],
|
|
333
|
-
"documentsUploaded": [
|
|
334
|
-
"driversPassportOrId",
|
|
335
|
-
"driverVehicleSecurityChecklist",
|
|
336
|
-
"europeanOperatorsLicence",
|
|
337
|
-
"vehicleOwnershipDocuments",
|
|
338
|
-
"vehicleInsuranceDocuments",
|
|
339
|
-
"consignmentNote",
|
|
340
|
-
"tachograph",
|
|
341
|
-
"minutes",
|
|
342
|
-
"notebookEntries",
|
|
343
|
-
"clandestineIncidentReport"
|
|
344
|
-
],
|
|
345
|
-
"documentsUploadSpinner": false,
|
|
346
|
-
"documentsNextPage": "missing-document-reasons",
|
|
347
|
-
"whenWasTheVehicleStopDecided": "beforeArrival",
|
|
348
|
-
"whoDecidedSelection": "borderForceOfficer",
|
|
349
|
-
"reasonsForSelection": [
|
|
350
|
-
{
|
|
351
|
-
"id": "1706884402889",
|
|
352
|
-
"reasonForSelection": {
|
|
353
|
-
"id": 58,
|
|
354
|
-
"description": "1.01 - SIT / NIS",
|
|
355
|
-
"ien": true,
|
|
356
|
-
"ct": false,
|
|
357
|
-
"person": false,
|
|
358
|
-
"sea": true,
|
|
359
|
-
"land": true,
|
|
360
|
-
"rail": true,
|
|
361
|
-
"air": false,
|
|
362
|
-
"cash": false,
|
|
363
|
-
"validfrom": "2019-01-01T00:01:00.000Z",
|
|
364
|
-
"validto": null,
|
|
365
|
-
"updatedby": null,
|
|
366
|
-
"value": "58",
|
|
367
|
-
"label": "1.01 - SIT / NIS"
|
|
368
|
-
}
|
|
369
|
-
}
|
|
370
|
-
],
|
|
371
|
-
"detectionTechnologies": [
|
|
372
|
-
{
|
|
373
|
-
"id": "1706884405451",
|
|
374
|
-
"detectionTechnology": {
|
|
375
|
-
"id": 5,
|
|
376
|
-
"name": "Automatic Number Plate Recognition",
|
|
377
|
-
"value": "5",
|
|
378
|
-
"label": "Automatic Number Plate Recognition"
|
|
379
|
-
}
|
|
380
|
-
}
|
|
381
|
-
],
|
|
382
|
-
"searchTechniques": [
|
|
383
|
-
{
|
|
384
|
-
"id": "1706884405457",
|
|
385
|
-
"searchTechnique": {
|
|
386
|
-
"id": 27,
|
|
387
|
-
"type": "Baggage",
|
|
388
|
-
"value": "27",
|
|
389
|
-
"label": "Baggage"
|
|
390
|
-
}
|
|
391
|
-
}
|
|
392
|
-
],
|
|
393
|
-
"concealmentMethods": [
|
|
394
|
-
{
|
|
395
|
-
"id": "1706884412634",
|
|
396
|
-
"concealmentMethod": {
|
|
397
|
-
"id": 76,
|
|
398
|
-
"method": "Accompanied baggage",
|
|
399
|
-
"value": "76",
|
|
400
|
-
"label": "Accompanied baggage"
|
|
401
|
-
}
|
|
402
|
-
}
|
|
403
|
-
],
|
|
404
|
-
"driverDocumentType": [
|
|
405
|
-
"Biometric residence card or permit"
|
|
406
|
-
],
|
|
407
|
-
"driverLiveInUK": "no",
|
|
408
|
-
"driverTaken": "cfi",
|
|
409
|
-
"driverArrested": "no",
|
|
410
|
-
"driverReportSuspicion": "no",
|
|
411
|
-
"driverUnderDuress": "no",
|
|
412
|
-
"driverCoDriver": "no",
|
|
413
|
-
"coDriversPassport": {
|
|
414
|
-
"givenNames": "to be removed",
|
|
415
|
-
"surname": "to be removed",
|
|
416
|
-
"dateOfBirth": "11-11-1982",
|
|
417
|
-
"sex": "female",
|
|
418
|
-
"number": "22222222A",
|
|
419
|
-
"nationality": {
|
|
420
|
-
"id": 2,
|
|
421
|
-
"name": "Afghanistan",
|
|
422
|
-
"iso31661alpha3": "AFG",
|
|
423
|
-
"value": "2",
|
|
424
|
-
"label": "Afghanistan"
|
|
425
|
-
}
|
|
426
|
-
},
|
|
427
|
-
"driverBiometricResidence": {
|
|
428
|
-
"givenNames": "dffasasfa",
|
|
429
|
-
"surname": "fdsfsdffds",
|
|
430
|
-
"dateOfBirth": "10-10-1982",
|
|
431
|
-
"sex": "female",
|
|
432
|
-
"number": "ru1111111",
|
|
433
|
-
"nationality": {
|
|
434
|
-
"id": 7,
|
|
435
|
-
"name": "Angola",
|
|
436
|
-
"iso31661alpha3": "AGO",
|
|
437
|
-
"value": "7",
|
|
438
|
-
"label": "Angola"
|
|
439
|
-
}
|
|
440
|
-
},
|
|
441
|
-
"driverNonUkAddress": {
|
|
442
|
-
"addressLine1": "dsadsadsadsa",
|
|
443
|
-
"addressLine2": "dsadasdsada",
|
|
444
|
-
"country": {
|
|
445
|
-
"id": 13,
|
|
446
|
-
"name": "Aruba",
|
|
447
|
-
"iso31661alpha3": "ABW",
|
|
448
|
-
"value": "13",
|
|
449
|
-
"label": "Aruba"
|
|
450
|
-
}
|
|
451
|
-
},
|
|
452
|
-
"departureDateTime": {
|
|
453
|
-
"departureDate": "02-02-2024"
|
|
454
|
-
},
|
|
455
|
-
"carrierOrOperator": {
|
|
456
|
-
"id": 116,
|
|
457
|
-
"name": "ACL",
|
|
458
|
-
"twolettercode": null,
|
|
459
|
-
"threelettercode": null,
|
|
460
|
-
"designator": null,
|
|
461
|
-
"alliance": null,
|
|
462
|
-
"aviation": false,
|
|
463
|
-
"sea": true,
|
|
464
|
-
"land": false,
|
|
465
|
-
"rail": false,
|
|
466
|
-
"parcel": false,
|
|
467
|
-
"validfrom": "2019-01-01T00:00:00.000Z",
|
|
468
|
-
"validto": null,
|
|
469
|
-
"updatedby": null,
|
|
470
|
-
"value": "116",
|
|
471
|
-
"label": "ACL"
|
|
472
|
-
},
|
|
473
|
-
"countryOfDeparture": {
|
|
474
|
-
"id": 80,
|
|
475
|
-
"name": "France (European territory)",
|
|
476
|
-
"iso31661alpha3": "FRA"
|
|
477
|
-
},
|
|
478
|
-
"doYouKnowThePort": "no",
|
|
479
|
-
"separateCabAndTrailer": "no",
|
|
480
|
-
"haulierDetails": {
|
|
481
|
-
"companyName": "to be removed",
|
|
482
|
-
"companyContactName": "to be removed",
|
|
483
|
-
"address": {
|
|
484
|
-
"addressLine1": "to be removed",
|
|
485
|
-
"country": {
|
|
486
|
-
"id": 7,
|
|
487
|
-
"name": "Angola",
|
|
488
|
-
"iso31661alpha3": "AGO",
|
|
489
|
-
"value": "7",
|
|
490
|
-
"label": "Angola"
|
|
491
|
-
}
|
|
492
|
-
}
|
|
493
|
-
},
|
|
494
|
-
"vehicleRegistration": "to be removed",
|
|
495
|
-
"countryOfVehicleRegistration": {
|
|
496
|
-
"id": 13,
|
|
497
|
-
"name": "Aruba",
|
|
498
|
-
"iso31661alpha3": "ABW",
|
|
499
|
-
"continent": "NA",
|
|
500
|
-
"value": "13",
|
|
501
|
-
"label": "Aruba"
|
|
502
|
-
},
|
|
503
|
-
"vehicleType": {
|
|
504
|
-
"id": 28,
|
|
505
|
-
"type": "7.5T soft-sided",
|
|
506
|
-
"value": "28",
|
|
507
|
-
"label": "7.5T soft-sided"
|
|
508
|
-
},
|
|
509
|
-
"vehicleLoad": "to be removed",
|
|
510
|
-
"assuringHigherOfficer": {
|
|
511
|
-
"defaultteamid": "b3b8e3e9-cc07-47a9-817d-50359cb59ce0",
|
|
512
|
-
"email": "abdul.aziz@digital.homeoffice.gov.uk",
|
|
513
|
-
"value": "abdul.aziz@digital.homeoffice.gov.uk",
|
|
514
|
-
"label": "abdul.aziz@digital.homeoffice.gov.uk"
|
|
515
|
-
}
|
|
516
|
-
}
|