@frankieone/one-sdk 1.7.2-rc → 1.7.3-rc
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/commit.txt +1 -1
- package/dist/esm/modules/biometrics/definition.d.ts +3 -3
- package/dist/esm/modules/biometrics/events.d.ts +2 -2
- package/dist/esm/modules/biometrics/index.d.ts +1 -1
- package/dist/esm/modules/biometrics/index.d.ts.map +1 -1
- package/dist/esm/modules/biometrics/index.js +12 -6
- package/dist/esm/modules/biometrics/index.js.map +1 -1
- package/dist/esm/modules/biometrics/parseConfiguration.d.ts +1 -1
- package/dist/esm/modules/biometrics/vendors/Incode/index.d.ts +3 -3
- package/dist/esm/modules/biometrics/vendors/OcrLabs/index.d.ts +2 -2
- package/dist/esm/modules/biometrics/vendors/Onfido/index.d.ts +5 -5
- package/dist/esm/modules/biometrics/vendors/common/createSession.d.ts +4 -4
- package/dist/esm/modules/biometrics/vendors/common/errors.d.ts +3 -3
- package/dist/esm/modules/biometrics/vendors/common/initProcess.d.ts +4 -4
- package/dist/esm/modules/biometrics/vendors/dummy-biometrics/index.d.ts +2 -2
- package/dist/esm/modules/business/actions/emitEvents.d.ts +2 -2
- package/dist/esm/modules/business/actions/search.d.ts +3 -3
- package/dist/esm/modules/business/actions/upload.d.ts +4 -4
- package/dist/esm/modules/business/definition.d.ts +4 -4
- package/dist/esm/modules/business/events.d.ts +1 -1
- package/dist/esm/modules/common/modules/HOF.d.ts +1 -1
- package/dist/esm/modules/common/modules/ReactiveStore.d.ts +1 -1
- package/dist/esm/modules/common/modules/defineModule.d.ts +1 -1
- package/dist/esm/modules/common/modules/error.d.ts +1 -1
- package/dist/esm/modules/common/modules/eventHub/index.d.ts.map +1 -1
- package/dist/esm/modules/common/modules/eventHub/index.js +14 -6
- package/dist/esm/modules/common/modules/eventHub/index.js.map +1 -1
- package/dist/esm/modules/common/modules/eventHub/types.d.ts +2 -2
- package/dist/esm/modules/common/modules/eventHub/windowEventHub.d.ts +1 -1
- package/dist/esm/modules/common/modules/eventHub/windowEventHub.d.ts.map +1 -1
- package/dist/esm/modules/common/modules/eventHub/windowEventHub.js +4 -2
- package/dist/esm/modules/common/modules/eventHub/windowEventHub.js.map +1 -1
- package/dist/esm/modules/common/modules/objectUtils.d.ts +1 -1
- package/dist/esm/modules/common/modules/vendorLoading.d.ts +4 -4
- package/dist/esm/modules/common/shared/models/DeviceCheck.d.ts +1 -1
- package/dist/esm/modules/common/shared/models/UBOData.d.ts +3 -3
- package/dist/esm/modules/common/types/Accessors.d.ts +1 -1
- package/dist/esm/modules/common/types/oneSDKModules/baseParameters.types.d.ts +6 -6
- package/dist/esm/modules/common/types/oneSDKModules/contextObject.d.ts +1 -1
- package/dist/esm/modules/common/types/oneSDKModules/definition.types.d.ts +2 -2
- package/dist/esm/modules/common/types/oneSDKModules/initialiseFunction.d.ts +2 -2
- package/dist/esm/modules/common/types/oneSDKModules/typeSystem.types.d.ts +1 -1
- package/dist/esm/modules/common/types/oneSDKVendorWrappers/initialiseFunction.d.ts +1 -1
- package/dist/esm/modules/common/types/recipeConfiguration.types.d.ts +5 -5
- package/dist/esm/modules/common/vendors/form/promisifyForm.d.ts +2 -2
- package/dist/esm/modules/common/vendors/form/useForm.d.ts +4 -4
- package/dist/esm/modules/common/vendors/incode/createEventHandlers.d.ts +4 -4
- package/dist/esm/modules/common/vendors/incode/index.d.ts +1 -1
- package/dist/esm/modules/common/vendors/incode/startCamera.d.ts +3 -3
- package/dist/esm/modules/common/vendors/onfido/index.d.ts +3 -3
- package/dist/esm/modules/common/vendors/onfido/onfido.types.d.ts +1 -1
- package/dist/esm/modules/config/modules.d.ts +18 -18
- package/dist/esm/modules/device/definition.d.ts +2 -2
- package/dist/esm/modules/device/events.d.ts +1 -1
- package/dist/esm/modules/device/index.d.ts +4 -4
- package/dist/esm/modules/device/index.d.ts.map +1 -1
- package/dist/esm/modules/device/index.js +19 -16
- package/dist/esm/modules/device/index.js.map +1 -1
- package/dist/esm/modules/device/parseConfiguration.d.ts +1 -1
- package/dist/esm/modules/device/vendors/Sardine.d.ts +6 -6
- package/dist/esm/modules/device/vendors/Threatmetrix/index.d.ts +4 -4
- package/dist/esm/modules/exports.d.ts +1 -1
- package/dist/esm/modules/features.config.d.ts +1 -1
- package/dist/esm/modules/federation/definition.d.ts +2 -2
- package/dist/esm/modules/federation/index.d.ts +2 -2
- package/dist/esm/modules/federation/index.d.ts.map +1 -1
- package/dist/esm/modules/federation/index.js +15 -14
- package/dist/esm/modules/federation/index.js.map +1 -1
- package/dist/esm/modules/federation/parseConfiguration.d.ts +1 -1
- package/dist/esm/modules/federation/vendors/Singpass.d.ts +5 -5
- package/dist/esm/modules/form/definition.d.ts +7 -7
- package/dist/esm/modules/form/events.d.ts +3 -3
- package/dist/esm/modules/form/index.d.ts.map +1 -1
- package/dist/esm/modules/form/index.js +5 -3
- package/dist/esm/modules/form/index.js.map +1 -1
- package/dist/esm/modules/form/validateConfiguration.d.ts +1 -1
- package/dist/esm/modules/form/vendors/formio/formioSdk.d.ts +1 -1
- package/dist/esm/modules/form/vendors/formio/index.d.ts +3 -3
- package/dist/esm/modules/form/vendors/formio/transformers/assignFormioDataToIndividualModule.d.ts +1 -1
- package/dist/esm/modules/form/vendors/formio/transformers/assignIndividualDataToFormioSdk.d.ts +1 -1
- package/dist/esm/modules/form/vendors/legacy/index.d.ts +5 -5
- package/dist/esm/modules/form/vendors/legacy/legacyUIEvents.types.d.ts +5 -5
- package/dist/esm/modules/form/vendors/legacy/loadLegacyUI.d.ts +3 -3
- package/dist/esm/modules/form/vendors/react/App.d.ts +2 -2
- package/dist/esm/modules/form/vendors/react/appConfig.type.d.ts +2 -2
- package/dist/esm/modules/form/vendors/react/components/base/SharedInput/Input.d.ts +1 -1
- package/dist/esm/modules/form/vendors/react/components/view/ActionFormField/ActionFormField.js +2 -2
- package/dist/esm/modules/form/vendors/react/components/view/ActionFormField/ActionFormField.js.map +1 -1
- package/dist/esm/modules/form/vendors/react/components/view/FrankieAddress/FrankieAddress.js +2 -2
- package/dist/esm/modules/form/vendors/react/components/view/FrankieAddress/FrankieAddress.js.map +1 -1
- package/dist/esm/modules/form/vendors/react/components/view/FrankieFormMapper/FrankieFormMapper.d.ts +1 -1
- package/dist/esm/modules/form/vendors/react/constants/icons.d.ts +62 -62
- package/dist/esm/modules/form/vendors/react/constants/icons.d.ts.map +1 -1
- package/dist/esm/modules/form/vendors/react/constants/icons.js +74 -62
- package/dist/esm/modules/form/vendors/react/constants/icons.js.map +1 -1
- package/dist/esm/modules/form/vendors/react/constants/layoutMapper.const.d.ts +7 -7
- package/dist/esm/modules/form/vendors/react/constants/staticScreenMapper.const.d.ts +3 -3
- package/dist/esm/modules/form/vendors/react/features/Consent/hostedBusinessConsent.config.d.ts +1 -1
- package/dist/esm/modules/form/vendors/react/features/DocUpload/FileUploader/Main.d.ts +1 -1
- package/dist/esm/modules/form/vendors/react/features/DocUpload/FileUploader/Progress.d.ts +1 -1
- package/dist/esm/modules/form/vendors/react/features/DocUpload/FileUploader/Review.d.ts +1 -1
- package/dist/esm/modules/form/vendors/react/features/DocUpload/FileUploader/index.d.ts +1 -1
- package/dist/esm/modules/form/vendors/react/features/IdPreps/driversLicense.config.d.ts +1 -1
- package/dist/esm/modules/form/vendors/react/features/IdPreps/mediCare.config.d.ts +1 -1
- package/dist/esm/modules/form/vendors/react/features/IdPreps/passport.config.d.ts +1 -1
- package/dist/esm/modules/form/vendors/react/features/IdSelection/idSelection.config.d.ts +6 -6
- package/dist/esm/modules/form/vendors/react/features/IdSelection/idSelection.const.d.ts +4 -4
- package/dist/esm/modules/form/vendors/react/features/IdSelection/manualIdSelection.config.d.ts +47 -47
- package/dist/esm/modules/form/vendors/react/features/PersonalDetails/PersonalDetails.js +1 -1
- package/dist/esm/modules/form/vendors/react/features/PersonalDetails/PersonalDetails.js.map +1 -1
- package/dist/esm/modules/form/vendors/react/features/PersonalDetails/personalDetails.config.d.ts +392 -392
- package/dist/esm/modules/form/vendors/react/features/ReviewDocument/ReviewDocument.js +1 -1
- package/dist/esm/modules/form/vendors/react/features/ReviewDocument/ReviewDocument.js.map +1 -1
- package/dist/esm/modules/form/vendors/react/features/Welcome/hostedBusinessWelcome.config.d.ts +1 -1
- package/dist/esm/modules/form/vendors/react/features/Welcome/manualWelcome.config.d.ts +4 -4
- package/dist/esm/modules/form/vendors/react/features/Welcome/welcome.config.d.ts +1 -1
- package/dist/esm/modules/form/vendors/react/hooks/useConfigFactory.hooks.js +1 -1
- package/dist/esm/modules/form/vendors/react/hooks/useConfigFactory.hooks.js.map +1 -1
- package/dist/esm/modules/form/vendors/react/hooks/useEventContext.d.ts +3 -3
- package/dist/esm/modules/form/vendors/react/hooks/useFormMapper.hook.d.ts +526 -526
- package/dist/esm/modules/form/vendors/react/hooks/useManualConfigFactory.hook.js +1 -1
- package/dist/esm/modules/form/vendors/react/hooks/useManualConfigFactory.hook.js.map +1 -1
- package/dist/esm/modules/form/vendors/react/hooks/usePersonalDetailsUpdateFactory.hook.d.ts +1 -1
- package/dist/esm/modules/form/vendors/react/hooks/usePersonalDetailsUpdateFactory.hook.js +1 -1
- package/dist/esm/modules/form/vendors/react/hooks/usePersonalDetailsUpdateFactory.hook.js.map +1 -1
- package/dist/esm/modules/form/vendors/react/hooks/useReviewUpdateFactory.hook.d.ts +6 -6
- package/dist/esm/modules/form/vendors/react/index.d.ts +4 -4
- package/dist/esm/modules/form/vendors/react/model/address.model.d.ts +2 -2
- package/dist/esm/modules/form/vendors/react/model/googleAddress.model.d.ts +1 -1
- package/dist/esm/modules/form/vendors/react/model/idDetails.model.d.ts +1 -1
- package/dist/esm/modules/form/vendors/react/model/personalDetails.model.d.ts +1 -1
- package/dist/esm/modules/form/vendors/react/model/review.model.d.ts +2 -2
- package/dist/esm/modules/form/vendors/react/types/pages.type.d.ts +1 -1
- package/dist/esm/modules/form/vendors/react/utils/layout.util.d.ts +1 -1
- package/dist/esm/modules/form/vendors/react/utils/object.util.d.ts +2 -2
- package/dist/esm/modules/frankie-client/ClientsDictionary.d.ts +1 -1
- package/dist/esm/modules/frankie-client/DummyFrankieApiClient.d.ts +1 -1
- package/dist/esm/modules/frankie-client/FrankieApiClient.d.ts +2 -2
- package/dist/esm/modules/frankie-client/clients/ApplicantClient.d.ts +4 -4
- package/dist/esm/modules/frankie-client/clients/BusinessClient.d.ts +1 -1
- package/dist/esm/modules/frankie-client/clients/FederationClient.d.ts +1 -1
- package/dist/esm/modules/frankie-client/clients/IDVClient.d.ts +2 -2
- package/dist/esm/modules/frankie-client/clients/OCRClient.d.ts +1 -1
- package/dist/esm/modules/frankie-client/clients/SupportingDocumentsClient.d.ts +3 -3
- package/dist/esm/modules/frankie-client/clients/TelemetryEventsClient.d.ts +1 -1
- package/dist/esm/modules/frankie-client/index.d.ts +1 -1
- package/dist/esm/modules/frankie-client/mocks/federation/index.d.ts +1 -1
- package/dist/esm/modules/frankie-client/mocks/idvAndBiometrics/idvSubmission.d.ts +4 -4
- package/dist/esm/modules/frankie-client/mocks/individual/loadIndividual.d.ts +1 -1
- package/dist/esm/modules/frankie-client/mocks/individual/resolveDocumentData.d.ts +2 -2
- package/dist/esm/modules/frankie-client/mocks/individual/resolveIndividualData.d.ts +3 -3
- package/dist/esm/modules/frankie-client/mocks/ocr/ocrSubmission.d.ts +1 -1
- package/dist/esm/modules/frankie-client/mocks/options/simplified/idvFlow.d.ts +4 -4
- package/dist/esm/modules/frankie-client/mocks/options/simplified/ocrFlow.d.ts +4 -4
- package/dist/esm/modules/frankie-client/mocks/options/simplified/preloadedIndividual.d.ts +5 -5
- package/dist/esm/modules/frankie-client/mocks/storage/mockStorage.d.ts +1 -1
- package/dist/esm/modules/idv/actions/mount.d.ts +3 -3
- package/dist/esm/modules/idv/definition.types.d.ts +8 -8
- package/dist/esm/modules/idv/events.types.d.ts +5 -5
- package/dist/esm/modules/idv/index.d.ts.map +1 -1
- package/dist/esm/modules/idv/index.js +9 -5
- package/dist/esm/modules/idv/index.js.map +1 -1
- package/dist/esm/modules/idv/parseConfiguration.d.ts +1 -1
- package/dist/esm/modules/idv/vendors/Incode/index.d.ts +5 -5
- package/dist/esm/modules/idv/vendors/Mastercard/index.d.ts +2 -2
- package/dist/esm/modules/idv/vendors/OcrLabs/endFlow.d.ts +4 -4
- package/dist/esm/modules/idv/vendors/OcrLabs/index.d.ts +3 -3
- package/dist/esm/modules/idv/vendors/OcrLabs/startDummyFlow.d.ts +2 -2
- package/dist/esm/modules/idv/vendors/OcrLabs/startFlow.d.ts +2 -2
- package/dist/esm/modules/idv/vendors/Onfido/index.d.ts +4 -4
- package/dist/esm/modules/idv/vendors/common/checkStatusEventMapping.d.ts +3 -3
- package/dist/esm/modules/idv/vendors/common/iframeUtils/createIframe.d.ts +2 -2
- package/dist/esm/modules/idv/vendors/common/iframeUtils/createIframeEventListener.d.ts +1 -1
- package/dist/esm/modules/idv/vendors/common/iframeUtils/defineIframeIDVWrapper.d.ts +7 -7
- package/dist/esm/modules/idv/vendors/common/iframeUtils/updateIndividualModuleState.d.ts +3 -3
- package/dist/esm/modules/idv/vendors/common/initialiseSession.d.ts +4 -4
- package/dist/esm/modules/idv/vendors/common/windowUtils/createWindow.d.ts +1 -1
- package/dist/esm/modules/index.d.ts +4 -4
- package/dist/esm/modules/individual/actions/addReference.d.ts +3 -3
- package/dist/esm/modules/individual/actions/addresses.d.ts +2 -2
- package/dist/esm/modules/individual/actions/consents.d.ts +1 -1
- package/dist/esm/modules/individual/actions/documents.d.ts +2 -2
- package/dist/esm/modules/individual/actions/email.d.ts +2 -2
- package/dist/esm/modules/individual/actions/emitEvents.d.ts +3 -3
- package/dist/esm/modules/individual/actions/phoneNumber.d.ts +2 -2
- package/dist/esm/modules/individual/actions/profileType.d.ts +2 -2
- package/dist/esm/modules/individual/actions/search.d.ts +3 -3
- package/dist/esm/modules/individual/actions/submit.d.ts +5 -5
- package/dist/esm/modules/individual/definition.d.ts +8 -8
- package/dist/esm/modules/individual/events.d.ts +1 -1
- package/dist/esm/modules/meta.json +1 -1
- package/dist/esm/modules/ocr/actions/mount.d.ts +4 -4
- package/dist/esm/modules/ocr/actions/start.d.ts +7 -7
- package/dist/esm/modules/ocr/definition.d.ts +5 -5
- package/dist/esm/modules/ocr/events.d.ts +2 -2
- package/dist/esm/modules/ocr/index.d.ts +11 -11
- package/dist/esm/modules/ocr/index.d.ts.map +1 -1
- package/dist/esm/modules/ocr/index.js +6 -3
- package/dist/esm/modules/ocr/index.js.map +1 -1
- package/dist/esm/modules/ocr/vendors/Incode/index.d.ts +3 -3
- package/dist/esm/modules/ocr/vendors/Onfido/index.d.ts +2 -2
- package/dist/esm/modules/ocr/vendors/common/createSession.d.ts +4 -4
- package/dist/esm/modules/ocr/vendors/common/initProcess.d.ts +2 -2
- package/dist/esm/modules/ocr/vendors/common/mutationObserver.d.ts +2 -2
- package/dist/esm/modules/ocr/vendors/common/statusEvaluators.d.ts +5 -5
- package/dist/esm/modules/ocr/vendors/dummy-ocr/index.d.ts +3 -3
- package/dist/esm/modules/sdk/initialisation/componentLoader.d.ts +2 -2
- package/dist/esm/modules/sdk/initialisation/configurationParser.d.ts +1 -1
- package/dist/esm/modules/sdk/initialisation/sharedDependencies.d.ts +4 -4
- package/dist/esm/modules/sdk/initialisation/sharedDependencies.d.ts.map +1 -1
- package/dist/esm/modules/sdk/initialisation/sharedDependencies.js +20 -8
- package/dist/esm/modules/sdk/initialisation/sharedDependencies.js.map +1 -1
- package/dist/esm/modules/sdk/types/globalEvents.d.ts +2 -2
- package/dist/esm/modules/sdk/types/oneSDK.d.ts +5 -5
- package/dist/esm/modules/sdk/types/oneSDKParameters.d.ts +2 -2
- package/dist/esm/modules/session/SessionContext.d.ts +1 -1
- package/dist/esm/modules/session/definition.d.ts +3 -3
- package/dist/esm/modules/session/index.d.ts +5 -5
- package/dist/esm/modules/session/index.d.ts.map +1 -1
- package/dist/esm/modules/session/index.js +24 -16
- package/dist/esm/modules/session/index.js.map +1 -1
- package/dist/esm/modules/session/types/module.d.ts +1 -1
- package/dist/esm/modules/types.d.ts +13 -13
- package/dist/esm/modules/workflow/definition.types.d.ts +1 -1
- package/dist/esm/modules/workflow/index.d.ts +1 -1
- package/dist/version.txt +0 -1
- package/package.json +8 -5
- package/dist/esm/node_modules/@reduxjs/toolkit/dist/uncheckedindexed.d.ts +0 -6
- package/dist/esm/node_modules/@reduxjs/toolkit/dist/uncheckedindexed.d.ts.map +0 -1
- package/dist/umd/080b774e0f4f9c679e85.svg +0 -45
- package/dist/umd/0c9574c81d7d87e9ccd3.svg +0 -34
- package/dist/umd/0cd8e74f8a68e0b1ae14.svg +0 -3
- package/dist/umd/10183d99573bcd186235.svg +0 -5
- package/dist/umd/124.js +0 -2
- package/dist/umd/124.js.map +0 -1
- package/dist/umd/1c9c1ef03c6dd661b89b.woff +0 -0
- package/dist/umd/1df3f35eac93c61986b1.svg +0 -60
- package/dist/umd/1f76ff5e84787152adc5.svg +0 -50
- package/dist/umd/2451ce2859277292a2a3.svg +0 -4
- package/dist/umd/24c67c1821feba22f3f7.svg +0 -5
- package/dist/umd/2546128ef2e2d56276b7.svg +0 -5
- package/dist/umd/26a8e1ce5e5578874420.woff2 +0 -0
- package/dist/umd/2f32844e02839dd608a4.svg +0 -4
- package/dist/umd/329d07fd3f40d3967c81.svg +0 -4
- package/dist/umd/32cb4eea6ca1acb9f788.svg +0 -45
- package/dist/umd/3443b53b9b1a00c340f7.svg +0 -27
- package/dist/umd/34fe2370aa5e73787795.svg +0 -30
- package/dist/umd/36ddfb506829cb8cde72.svg +0 -113
- package/dist/umd/396cc7cc5e61acfa8fc8.svg +0 -15
- package/dist/umd/3a660ff8435efa515e98.svg +0 -4
- package/dist/umd/3b687e48c6bb765ed976.svg +0 -5
- package/dist/umd/3d245ccf2dde73ceca07.svg +0 -114
- package/dist/umd/42caa2dd6b4f0de68157.svg +0 -51
- package/dist/umd/463e54e898297e314139.svg +0 -81
- package/dist/umd/4ac349963383ebda508b.svg +0 -50
- package/dist/umd/4db0db393dfe2f9f90c1.svg +0 -60
- package/dist/umd/4ee01199f6f6b7e6fb24.svg +0 -195
- package/dist/umd/4ff338b86cdba19934cf.svg +0 -86
- package/dist/umd/58b74e594849c43b2248.woff2 +0 -0
- package/dist/umd/5c23763467ce9cfda119.svg +0 -41
- package/dist/umd/5ddf80d7ddb1d1c5a0bc.woff +0 -0
- package/dist/umd/6375eb14534238c06a4b.svg +0 -27
- package/dist/umd/6558f8e71743e073c18b.svg +0 -3
- package/dist/umd/67cbc8178ea76ef0d8b4.svg +0 -4
- package/dist/umd/6c874e1a72a4fa9eeed8.woff2 +0 -0
- package/dist/umd/71b71503b4f733079331.svg +0 -3
- package/dist/umd/7f6d57b96337c21c053d.woff +0 -0
- package/dist/umd/8053f51266aa9d864691.svg +0 -4
- package/dist/umd/80929602ea97f94dc18c.svg +0 -65
- package/dist/umd/8a06059b84b1aa2bf661.svg +0 -29
- package/dist/umd/8f10666ff21ef0238370.svg +0 -13
- package/dist/umd/949.js +0 -3
- package/dist/umd/949.js.LICENSE.txt +0 -60
- package/dist/umd/949.js.map +0 -1
- package/dist/umd/9d49ce231cb895b6ef29.svg +0 -50
- package/dist/umd/9dee3446081d7d47623b.svg +0 -4
- package/dist/umd/a96ec21d243a49916487.svg +0 -47
- package/dist/umd/ac457c4800183645b1ad.svg +0 -45
- package/dist/umd/af823d3a76ce1e2e36af.woff +0 -0
- package/dist/umd/aff615d38d2fce3f82b2.svg +0 -83
- package/dist/umd/bc42b55176ae1021b9e4.svg +0 -80
- package/dist/umd/biometrics-dummy.js +0 -2
- package/dist/umd/biometrics-dummy.js.map +0 -1
- package/dist/umd/biometrics-incode.js +0 -2
- package/dist/umd/biometrics-incode.js.map +0 -1
- package/dist/umd/biometrics-ocrlabs.js +0 -2
- package/dist/umd/biometrics-ocrlabs.js.map +0 -1
- package/dist/umd/biometrics-onfido.js +0 -2
- package/dist/umd/biometrics-onfido.js.map +0 -1
- package/dist/umd/c0dede047f9a2b7c1309.svg +0 -51
- package/dist/umd/c16900512bb2f899c7eb.svg +0 -5
- package/dist/umd/c7a05c7d7d1f9347ae1b.svg +0 -53
- package/dist/umd/ce5b46abe62641bddb20.svg +0 -5
- package/dist/umd/d15d58eb544d245877e2.svg +0 -16
- package/dist/umd/d216030199c873b0bf41.woff2 +0 -0
- package/dist/umd/d563d85c23bcbd268d5e.svg +0 -30
- package/dist/umd/d70a547a409868c43a95.svg +0 -43
- package/dist/umd/d9ed930ae3bb52f2abe1.svg +0 -4
- package/dist/umd/dc45d5d9fb4b8959e156.svg +0 -24
- package/dist/umd/dd199fa4125e4ebef289.svg +0 -67
- package/dist/umd/dddc2581e578cfb3b997.svg +0 -195
- package/dist/umd/device-sardine.js +0 -2
- package/dist/umd/device-sardine.js.map +0 -1
- package/dist/umd/device-threatmetrix.js +0 -2
- package/dist/umd/device-threatmetrix.js.map +0 -1
- package/dist/umd/df83da88c151bcf97231.svg +0 -45
- package/dist/umd/e7ac03e5736bea4d6346.svg +0 -53
- package/dist/umd/e84075ff43e508e4fbd5.svg +0 -5
- package/dist/umd/e85b9f93aac09995bad2.svg +0 -80
- package/dist/umd/ef3c33f0d919896ee0bf.svg +0 -25
- package/dist/umd/f22fe25046b4ca4a969a.svg +0 -65
- package/dist/umd/f4a5163b8f91c2c66892.svg +0 -4
- package/dist/umd/f670207e1feb7ec4f6d4.svg +0 -5
- package/dist/umd/f75020be237d9de68d86.svg +0 -192
- package/dist/umd/fc7c8869af28cb1b9c21.svg +0 -5
- package/dist/umd/fdb0a109281e6c12eff6.svg +0 -75
- package/dist/umd/form-formio.js +0 -2
- package/dist/umd/form-formio.js.map +0 -1
- package/dist/umd/form-legacy.js +0 -2
- package/dist/umd/form-legacy.js.map +0 -1
- package/dist/umd/form-react.js +0 -2
- package/dist/umd/form-react.js.map +0 -1
- package/dist/umd/idv-incode.js +0 -2
- package/dist/umd/idv-incode.js.map +0 -1
- package/dist/umd/idv-mastercard.js +0 -2
- package/dist/umd/idv-mastercard.js.map +0 -1
- package/dist/umd/idv-ocrlabs.js +0 -2
- package/dist/umd/idv-ocrlabs.js.map +0 -1
- package/dist/umd/idv-onfido.js +0 -2
- package/dist/umd/idv-onfido.js.map +0 -1
- package/dist/umd/ocr-dummy.js +0 -2
- package/dist/umd/ocr-dummy.js.map +0 -1
- package/dist/umd/ocr-incode.js +0 -2
- package/dist/umd/ocr-incode.js.map +0 -1
- package/dist/umd/ocr-onfido.js +0 -2
- package/dist/umd/ocr-onfido.js.map +0 -1
- package/dist/umd/oneSdk.umd.js +0 -3
- package/dist/umd/oneSdk.umd.js.LICENSE.txt +0 -8
- package/dist/umd/oneSdk.umd.js.map +0 -1
package/dist/commit.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
e6f8eb1f49d89e297a122dcd3bad0f2d8ab5dcd8
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { EventHub } from '
|
|
2
|
-
import type { ModuleDefinition } from '
|
|
3
|
-
import type { OnfidoCustomUIProps } from '
|
|
1
|
+
import type { EventHub } from '../common';
|
|
2
|
+
import type { ModuleDefinition } from '../common/types';
|
|
3
|
+
import type { OnfidoCustomUIProps } from '../common/vendors/onfido/onfido.types';
|
|
4
4
|
import type { Events } from './events';
|
|
5
5
|
import type { PartialDeep } from 'type-fest';
|
|
6
6
|
export type BiometricsModule = ModuleDefinition<{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Document } from '
|
|
2
|
-
import type { IDVStatus } from '
|
|
1
|
+
import type { Document } from '../common/shared/models/Document';
|
|
2
|
+
import type { IDVStatus } from '../frankie-client/clients/IDVClient';
|
|
3
3
|
import type { BiometricsModule } from './definition';
|
|
4
4
|
type Vendor = BiometricsModule['vendorName'];
|
|
5
5
|
export type Events = {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Events } from '
|
|
1
|
+
import type { Events } from './events';
|
|
2
2
|
import type { BiometricsModule } from './definition';
|
|
3
3
|
export type { Events };
|
|
4
4
|
declare const _default: import("../common/types").BrandedInitialiseFunction<BiometricsModule>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../modules/biometrics/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AAOxD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAErD,YAAY,EAAE,MAAM,EAAE,CAAC;;AAEvB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../modules/biometrics/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AAOxD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AAErD,YAAY,EAAE,MAAM,EAAE,CAAC;;AAEvB,wBAuGE;AAEF,cAAc,cAAc,CAAC"}
|
|
@@ -5,19 +5,25 @@ import { SdkModes } from '../sdk/types/index.js';
|
|
|
5
5
|
import { validateConfiguration } from './parseConfiguration.js';
|
|
6
6
|
export default defineModule('biometrics', (globalState, options) => {
|
|
7
7
|
validateConfiguration(globalState);
|
|
8
|
-
const { globalEventHub, recipe: { biometrics }, localEventHub } = globalState;
|
|
8
|
+
const { globalEventHub, recipe: { biometrics }, localEventHub, } = globalState;
|
|
9
9
|
// @TODO add validation check
|
|
10
10
|
Object.assign(biometrics, merge(biometrics, options));
|
|
11
11
|
const loadVendorWrapper = mkVendorLoader({
|
|
12
12
|
// If initialising in dummy mode, force the use of the dummy-biometrics wrapper
|
|
13
13
|
// otherwise load the wrapper based on the provider's name
|
|
14
|
-
vendorName: globalState.mode.modeName === SdkModes.DUMMY
|
|
14
|
+
vendorName: globalState.mode.modeName === SdkModes.DUMMY
|
|
15
|
+
? 'dummy-biometrics'
|
|
16
|
+
: biometrics.provider.name,
|
|
15
17
|
sharedConfiguration: globalState,
|
|
16
18
|
vendorLoader: {
|
|
17
|
-
ocrlabs: () => import(
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
ocrlabs: () => import(
|
|
20
|
+
/* webpackChunkName: 'biometrics-ocrlabs' */ './vendors/OcrLabs/index.js'),
|
|
21
|
+
onfido: () => import(
|
|
22
|
+
/* webpackChunkName: 'biometrics-onfido' */ './vendors/Onfido/index.js'),
|
|
23
|
+
incode: () => import(
|
|
24
|
+
/* webpackChunkName: 'biometrics-incode' */ './vendors/Incode/index.js'),
|
|
25
|
+
'dummy-biometrics': () => import(
|
|
26
|
+
/* webpackChunkName: 'biometrics-dummy' */ './vendors/dummy-biometrics/index.js'),
|
|
21
27
|
},
|
|
22
28
|
});
|
|
23
29
|
// Publicly exposed "mount" function
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../modules/biometrics/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,cAAc,CAAC;AAGjC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AACnE,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAM7D,eAAe,YAAY,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../modules/biometrics/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,cAAc,CAAC;AAGjC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,qCAAqC,CAAC;AACnE,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAM7D,eAAe,YAAY,CACzB,YAAY,EACZ,CAAC,WAAW,EAAE,OAAO,EAAE,EAAE;IACvB,qBAAqB,CAAC,WAAW,CAAC,CAA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ACJ,CAAC,CACF,CAAC;AAEF,cAAc,cAAc,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export declare const initialise: import("../../../common/types").WrapperInitialiseFunction<{
|
|
2
|
-
eventHub: import("../../../common").EventHub<import("
|
|
2
|
+
eventHub: import("../../../common").EventHub<import("../..").Events>;
|
|
3
3
|
mountElement: HTMLElement;
|
|
4
4
|
}, void, "sync", {
|
|
5
|
-
localEventHub: import("../../../common").EventHub<import("
|
|
5
|
+
localEventHub: import("../../../common").EventHub<import("../..").Events>;
|
|
6
6
|
recipe: {
|
|
7
7
|
biometrics: {
|
|
8
8
|
provider: {
|
|
@@ -10,7 +10,7 @@ export declare const initialise: import("../../../common/types").WrapperInitiali
|
|
|
10
10
|
tx_id: string;
|
|
11
11
|
} | {
|
|
12
12
|
name: "onfido";
|
|
13
|
-
fallback?: "
|
|
13
|
+
fallback?: "standard" | "video";
|
|
14
14
|
sdkVersion?: string;
|
|
15
15
|
customUI?: import("../../../common/vendors/onfido/onfido.types").OnfidoCustomUIProps;
|
|
16
16
|
} | {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './window';
|
|
2
2
|
import './nolint_liveness-v3.2.0.vendor';
|
|
3
|
-
export declare const initialise: import("
|
|
3
|
+
export declare const initialise: import("../../../common/types").WrapperInitialiseFunction<{
|
|
4
4
|
eventHub: import("../../../common").EventHub<import("../..").Events>;
|
|
5
5
|
mountElement: HTMLElement;
|
|
6
6
|
}, void, "sync", {
|
|
@@ -12,7 +12,7 @@ export declare const initialise: import("@module/common/types").WrapperInitialis
|
|
|
12
12
|
tx_id: string;
|
|
13
13
|
} | {
|
|
14
14
|
name: "onfido";
|
|
15
|
-
fallback?: "
|
|
15
|
+
fallback?: "standard" | "video";
|
|
16
16
|
sdkVersion?: string;
|
|
17
17
|
customUI?: import("../../../common/vendors/onfido/onfido.types").OnfidoCustomUIProps;
|
|
18
18
|
} | {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Events } from '
|
|
2
|
-
import type { EventHub } from '
|
|
3
|
-
export declare const initialise: import("
|
|
1
|
+
import type { Events } from '../../events';
|
|
2
|
+
import type { EventHub } from '../../../common';
|
|
3
|
+
export declare const initialise: import("../../../common/types").WrapperInitialiseFunction<{
|
|
4
4
|
eventHub: EventHub<Events>;
|
|
5
5
|
mountElement: HTMLElement;
|
|
6
6
|
}, void, "sync", {
|
|
@@ -12,9 +12,9 @@ export declare const initialise: import("@module/common/types").WrapperInitialis
|
|
|
12
12
|
tx_id: string;
|
|
13
13
|
} | {
|
|
14
14
|
name: "onfido";
|
|
15
|
-
fallback?: "
|
|
15
|
+
fallback?: "standard" | "video";
|
|
16
16
|
sdkVersion?: string;
|
|
17
|
-
customUI?: import("
|
|
17
|
+
customUI?: import("../../../common/vendors/onfido/onfido.types").OnfidoCustomUIProps;
|
|
18
18
|
} | {
|
|
19
19
|
name: "incode";
|
|
20
20
|
sdkVersion?: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { Events } from '
|
|
2
|
-
import type { EventHub } from '
|
|
3
|
-
import type { IDVClient } from '
|
|
4
|
-
import type { _DictionaryWrite } from '
|
|
1
|
+
import type { Events } from '../../events';
|
|
2
|
+
import type { EventHub } from '../../../common';
|
|
3
|
+
import type { IDVClient } from '../../../frankie-client/clients/IDVClient';
|
|
4
|
+
import type { _DictionaryWrite } from '../../../../types/index.js';
|
|
5
5
|
/**
|
|
6
6
|
* Creates a session by obtaining an entity ID, token, and vendor parameters from an IDVClient.
|
|
7
7
|
* It will also emit 'session_data_generated' event to the provided event hub.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { OneSDKError } from '
|
|
2
|
-
import { IDVStatus } from '
|
|
3
|
-
import type { RecipeParsed } from '
|
|
1
|
+
import { OneSDKError } from '../../../common';
|
|
2
|
+
import { IDVStatus } from '../../../frankie-client/clients/IDVClient';
|
|
3
|
+
import type { RecipeParsed } from '../../../sdk/types';
|
|
4
4
|
export type ErrorMessages = Record<'DEFAULT' | 'INIT_PROCESS' | Extract<IDVStatus, 'PROVIDER_OFFLINE' | 'WAITING_DOC_UPLOAD' | 'WAITING_SELFIE_UPLOAD'>, string>;
|
|
5
5
|
export declare const mkErrors: (recipe: RecipeParsed) => (type: keyof ErrorMessages, ...payload: unknown[]) => OneSDKError<unknown[]>;
|
|
6
6
|
//# sourceMappingURL=errors.d.ts.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { Events } from '
|
|
2
|
-
import type { EventHub } from '
|
|
3
|
-
import type { IDVClient } from '
|
|
4
|
-
import type { RecipeParsed } from '
|
|
1
|
+
import type { Events } from '../../events';
|
|
2
|
+
import type { EventHub } from '../../../common';
|
|
3
|
+
import type { IDVClient } from '../../../frankie-client/clients/IDVClient';
|
|
4
|
+
import type { RecipeParsed } from '../../../sdk/types';
|
|
5
5
|
export declare const initProcess: ({ idvClient, recipe, eventHub }: {
|
|
6
6
|
idvClient: IDVClient;
|
|
7
7
|
recipe: RecipeParsed;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const initialise: import("
|
|
1
|
+
export declare const initialise: import("../../../common/types").WrapperInitialiseFunction<{
|
|
2
2
|
eventHub: import("../../../common").EventHub<import("../..").Events>;
|
|
3
3
|
mountElement: HTMLElement;
|
|
4
4
|
}, void, "sync", {
|
|
@@ -10,7 +10,7 @@ export declare const initialise: import("@module/common/types").WrapperInitialis
|
|
|
10
10
|
tx_id: string;
|
|
11
11
|
} | {
|
|
12
12
|
name: "onfido";
|
|
13
|
-
fallback?: "
|
|
13
|
+
fallback?: "standard" | "video";
|
|
14
14
|
sdkVersion?: string;
|
|
15
15
|
customUI?: import("../../../common/vendors/onfido/onfido.types").OnfidoCustomUIProps;
|
|
16
16
|
} | {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { EventHub, ReadonlyAccessors } from '
|
|
2
|
-
import type { Organization_Profile } from '
|
|
1
|
+
import type { EventHub, ReadonlyAccessors } from '../../common';
|
|
2
|
+
import type { Organization_Profile } from '../../common/shared/models/internal';
|
|
3
3
|
import type { Events } from '..';
|
|
4
4
|
type SubscribeAndEmitEventsDeps = {
|
|
5
5
|
emitDataUpdatedFor: ReadonlyAccessors<unknown>[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Events, InternalState } from '
|
|
2
|
-
import type { EventHub, ReactiveStore } from '
|
|
3
|
-
import type { BusinessClient } from '
|
|
1
|
+
import type { Events, InternalState } from './..';
|
|
2
|
+
import type { EventHub, ReactiveStore } from '../../common';
|
|
3
|
+
import type { BusinessClient } from '../../frankie-client/clients/BusinessClient';
|
|
4
4
|
type MkSearchDeps = {
|
|
5
5
|
client: BusinessClient;
|
|
6
6
|
eventHub: EventHub<Events>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { Events, InternalState } from '
|
|
2
|
-
import type { EventHub, ReactiveStore } from '
|
|
3
|
-
import type { DocumentType } from '
|
|
4
|
-
import type { SupportingDocumentsClient } from '
|
|
1
|
+
import type { Events, InternalState } from './..';
|
|
2
|
+
import type { EventHub, ReactiveStore } from '../../common';
|
|
3
|
+
import type { DocumentType } from '../../common/shared/models/SupportingDocument';
|
|
4
|
+
import type { SupportingDocumentsClient } from '../../frankie-client/clients/SupportingDocumentsClient';
|
|
5
5
|
type MkUploadDeps = {
|
|
6
6
|
client: SupportingDocumentsClient;
|
|
7
7
|
eventHub: EventHub<Events>;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { AccessFunction, AccessorsDictionary } from '
|
|
2
|
-
import type { Entity_Documents, Organization_Name, Organization_Profile } from '
|
|
3
|
-
import type { DocumentType } from '
|
|
4
|
-
import type { ModuleDefinition } from '
|
|
1
|
+
import type { AccessFunction, AccessorsDictionary } from '../common';
|
|
2
|
+
import type { Entity_Documents, Organization_Name, Organization_Profile } from '../common/shared/models/internal';
|
|
3
|
+
import type { DocumentType } from '../common/shared/models/SupportingDocument';
|
|
4
|
+
import type { ModuleDefinition } from '../common/types';
|
|
5
5
|
import type { Events } from './events';
|
|
6
6
|
export type BusinessModule = ModuleDefinition<{
|
|
7
7
|
module: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BrandedInitialiseFunction, InjectedModuleParameters, ModuleDefinition, ModuleInitialiseFunction } from '
|
|
1
|
+
import type { BrandedInitialiseFunction, InjectedModuleParameters, ModuleDefinition, ModuleInitialiseFunction } from '../types';
|
|
2
2
|
/**
|
|
3
3
|
* This simple function takes a module name and its initialise function and adds extra capabilities to it.
|
|
4
4
|
* - It enforces the type of the module's initialise function, as defined by the Module type definition.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GlobalEvents } from '
|
|
1
|
+
import { GlobalEvents } from '../../sdk/types';
|
|
2
2
|
import { EventHub } from './eventHub';
|
|
3
3
|
export declare const mkErrorEmitter: (globalEventHub: EventHub<GlobalEvents>, options: unknown) => (message: string) => never;
|
|
4
4
|
//# sourceMappingURL=error.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../modules/common/modules/eventHub/index.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,QAAQ,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAE/E,cAAc,SAAS,CAAC;AAexB;;;GAGG;AACH,wBAAgB,UAAU,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../modules/common/modules/eventHub/index.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,QAAQ,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,SAAS,CAAC;AAE/E,cAAc,SAAS,CAAC;AAexB;;;GAGG;AACH,wBAAgB,UAAU,CACxB,MAAM,SAAS,gBAAgB,KAC5B,QAAQ,CAAC,MAAM,CAAC,CAqGpB;AACD;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,GAAG,SAAS,QAAQ,EAClD,OAAO,EAAE,GAAG,GACX,mBAAmB,CAAC,GAAG,CAAC,CAK1B"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import EE from 'event-emitter';
|
|
2
|
-
import allOff from 'event-emitter/all-off';
|
|
3
|
-
import hasListeners from 'event-emitter/has-listeners';
|
|
2
|
+
import allOff from 'event-emitter/all-off.js';
|
|
3
|
+
import hasListeners from 'event-emitter/has-listeners.js';
|
|
4
4
|
import { feat } from '../../../features.config.js';
|
|
5
5
|
export * from './types.js';
|
|
6
6
|
//TODO: Add method "breed", or "child" to generate a new event hub which reference is kept and can be used for cascading the "off" method
|
|
@@ -33,7 +33,9 @@ export function mkEventHub() {
|
|
|
33
33
|
const skippedStacks = 2;
|
|
34
34
|
const stackTrace = getStackTrace(skippedStacks);
|
|
35
35
|
const argsWithStack = stackTrace ? [...args, stackTrace] : args;
|
|
36
|
-
const wildcardArgsWithStack = stackTrace
|
|
36
|
+
const wildcardArgsWithStack = stackTrace
|
|
37
|
+
? [wildcardArgs, stackTrace]
|
|
38
|
+
: [wildcardArgs];
|
|
37
39
|
originalEmit(eventName, ...argsWithStack);
|
|
38
40
|
originalEmit('*', ...wildcardArgsWithStack);
|
|
39
41
|
};
|
|
@@ -48,7 +50,9 @@ export function mkEventHub() {
|
|
|
48
50
|
*/
|
|
49
51
|
const off = (eventName, listener) => {
|
|
50
52
|
const wasArrayProvided = Array.isArray(eventName);
|
|
51
|
-
const eventNamesArray = wasArrayProvided
|
|
53
|
+
const eventNamesArray = wasArrayProvided
|
|
54
|
+
? eventName
|
|
55
|
+
: [eventName];
|
|
52
56
|
if (eventName && listener) {
|
|
53
57
|
eventNamesArray.forEach((eventName) => originalOff(eventName, listener));
|
|
54
58
|
}
|
|
@@ -61,7 +65,9 @@ export function mkEventHub() {
|
|
|
61
65
|
* TODO: Return a "EventReference" object to allow caller to unplug all the event listeners mapped by this method at once and prevent memory leaks easily
|
|
62
66
|
*/
|
|
63
67
|
const on = (eventNames, callback) => {
|
|
64
|
-
const eventNamesArray = Array.isArray(eventNames)
|
|
68
|
+
const eventNamesArray = Array.isArray(eventNames)
|
|
69
|
+
? eventNames
|
|
70
|
+
: [eventNames];
|
|
65
71
|
eventNamesArray.forEach((eventName) => originalOn(eventName, callback));
|
|
66
72
|
return {
|
|
67
73
|
cleanup: () => {
|
|
@@ -78,7 +84,9 @@ export function mkEventHub() {
|
|
|
78
84
|
// emit the provided proxyEventName in the proxied eventHub, OR
|
|
79
85
|
// emit the same eventName in the proxied eventHub, if no proxyEventName is provided
|
|
80
86
|
const wasArrayProvided = Array.isArray(eventNames);
|
|
81
|
-
const eventNamesArray = wasArrayProvided
|
|
87
|
+
const eventNamesArray = wasArrayProvided
|
|
88
|
+
? eventNames
|
|
89
|
+
: [eventNames];
|
|
82
90
|
eventNamesArray.forEach((eventName) => {
|
|
83
91
|
const proxiedEventName = proxyEventName !== null && proxyEventName !== void 0 ? proxyEventName : eventName;
|
|
84
92
|
on(eventName, (...args) => proxyEventHub.emit(proxiedEventName, ...args));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../modules/common/modules/eventHub/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,MAAM,eAAe,CAAC;AACjD,OAAO,MAAM,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../modules/common/modules/eventHub/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,MAAM,eAAe,CAAC;AACjD,OAAO,MAAM,MAAM,0BAA0B,CAAC;AAC9C,OAAO,YAAY,MAAM,gCAAgC,CAAC;AAE1D,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AAItC,cAAc,SAAS,CAAC;AAExB,yIAAyI;AACzI,iJAAiJ;AACjJ,sIAAsI;AAEtI;;GAEG;AAEH,iEAAiE;AACjE,gEAAgE;AAChE,MAAM,OAAO,GAAG,cAAa,CAAC,CAAC;AAC/B,EAAE,C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Ae,CAAC,OAAO,CAAC,CAAC,SAAS,EAAE,EAAE;YACpC,MAAM,gBAAgB,GAAG,cAAc,aAAd,cAAc,cAAd,cAAc,GAAI,SAAS,CAAC;YACrD,EAAE,CAAC,SAAS,EAAE,CAAC,GAAG,IAAI,EAAE,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,gBAAgB,EAAE,GAAG,IAAI,CAAC,CAAC,CAAC;QAC5E,CAAC,CAAC,CAAC;IACL,CAAC,CAAC;IAEF,OAAO,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE;QAC5B,EAAE;QACF,IAAI;QACJ,eAAe;QACf,GAAG;QACH,GAAG;KACgB,CAAC,CAAC;AACzB,CAAC;AACD;;;;;GAKG;AACH,MAAM,UAAU,eAAe,CAC7B,OAAY;IAEZ,OAAO;QACL,EAAE,EAAE,OAAO,CAAC,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC;QAC5B,GAAG,EAAE,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC;KAC/B,CAAC;AACJ,CAAC;AAED,MAAM,aAAa,GAAG,CAAC,IAAY,EAAmB,EAAE;;IACtD,IAAI,CAAC,IAAI,CAAC,2BAA2B,CAAC;QAAE,OAAO,IAAI,CAAC;IACpD,IAAI,CAAC;QACH,MAAM,IAAI,KAAK,EAAE,CAAC;IACpB,CAAC;IAAC,OAAO,CAAC,EAAE,CAAC;QACX,0DAA0D;QAC1D,OAAO,MAAA,CAAC,CAAC,KAAK,0CACV,KAAK,CAAC,IAAI,EACX,KAAK,CAAC,IAAI,EACV,GAAG,CAAC,CAAC,IAAY,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;IACxC,CAAC;AACH,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { OneSDKError } from '
|
|
2
|
-
import type { KeyOf, Override } from '
|
|
1
|
+
import type { OneSDKError } from '../../errors/OneSDKError.class';
|
|
2
|
+
import type { KeyOf, Override } from '../../../../types/index.js';
|
|
3
3
|
type DefaultEvents = {
|
|
4
4
|
error: [OneSDKError];
|
|
5
5
|
warning: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"windowEventHub.d.ts","sourceRoot":"","sources":["../../../../../../modules/common/modules/eventHub/windowEventHub.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAIpC,OAAO,KAAK,EAAE,gBAAgB,EAAuB,QAAQ,EAAE,MAAM,SAAS,CAAC;AAE/E;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,SAAS,gBAAgB,
|
|
1
|
+
{"version":3,"file":"windowEventHub.d.ts","sourceRoot":"","sources":["../../../../../../modules/common/modules/eventHub/windowEventHub.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;AAIpC,OAAO,KAAK,EAAE,gBAAgB,EAAuB,QAAQ,EAAE,MAAM,SAAS,CAAC;AAE/E;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,SAAS,gBAAgB,EAC9D,kBAAkB,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE;;;EA0CpC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OneSDKError } from '../../errors/OneSDKError.class.js';
|
|
2
|
-
import { mkEventHub, mkEventListener } from '.';
|
|
2
|
+
import { mkEventHub, mkEventListener } from './index.js';
|
|
3
3
|
/**
|
|
4
4
|
* This function is used to create an event hub that listens to events emitted by the window object.
|
|
5
5
|
* This function will convert Error objects into OneSDKError objects.
|
|
@@ -18,7 +18,9 @@ export function mkWindowEventHub(autoEmitEventNames) {
|
|
|
18
18
|
};
|
|
19
19
|
autoEmitEventNames.forEach((eventName) => addEventListener(eventName, (customEvent) => {
|
|
20
20
|
const detail = customEvent.detail;
|
|
21
|
-
const data = detail instanceof Error
|
|
21
|
+
const data = detail instanceof Error
|
|
22
|
+
? new OneSDKError(detail.message, detail)
|
|
23
|
+
: detail;
|
|
22
24
|
emitToEventHub(eventName, data);
|
|
23
25
|
}));
|
|
24
26
|
return {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"windowEventHub.js","sourceRoot":"","sources":["../../../../../../modules/common/modules/eventHub/windowEventHub.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AAGtE,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"windowEventHub.js","sourceRoot":"","sources":["../../../../../../modules/common/modules/eventHub/windowEventHub.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,yCAAyC,CAAC;AAGtE,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAIzD;;;;;GAKG;AACH,MAAM,UAAU,gBAAgB,CAC9B,kBAAmC;IAInC,MAAM,SAAS,GAEX,EAAE,CAAC;IAEP,MAAM,YAAY,GAAG,UAAU,EAAU,CAAC;IAC1C,MAAM,cAAc,GAAG,wBAAwB,CAAC,YAAY,CAAC,CAAC;IAE9D,MAAM,gBAAgB,GAAG,CACvB,SAAiB,EACjB,QAAwC,EACxC,EAAE;;QACF,MAAA,SAAS,CAAC,SAAS,qCAAnB,SAAS,CAAC,SAAS,IAAM,EAAE,EAAC;QAC5B,SAAS,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAEpC,MAAM,CAAC,gBAAgB,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;IAC/C,CAAC,CAAC;IACF,kBAAkB,CAAC,OAAO,CAAC,CAAC,SAAS,EAAE,EAAE,CACvC,gBAAgB,CAAC,SAAS,EAAE,CAAC,WAAW,EAAE,EAAE;QAC1C,MAAM,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC;QAClC,MAAM,IAAI,GACR,MAAM,YAAY,KAAK;YACrB,CAAC,CAAC,IAAI,WAAW,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC;YACzC,CAAC,CAAC,MAAM,CAAC;QAEb,cAAc,CAAC,SAAmD,EAAE,IAAI,CAAC,CAAC;IAC5E,CAAC,CAAC,CACH,CAAC;IAEF,OAAO;QACL,OAAO;YACL,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,EAAE,SAAS,CAAC,EAAE,EAAE;gBAC3D,SAAS,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,EAAE;oBAC7B,MAAM,CAAC,mBAAmB,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC;gBAClD,CAAC,CAAC,CAAC;YACL,CAAC,CAAC,CAAC;QACL,CAAC;QACD,aAAa,EAAE,eAAe,CAAC,YAAY,CAAC;KAC7C,CAAC;AACJ,CAAC;AAED;;GAEG;AACH,MAAM,wBAAwB,GAAG,CAAC,EAAY,EAAE,EAAE,CAChD,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAwC,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { Modules } from '
|
|
2
|
-
import type { ModuleDefinition } from '
|
|
3
|
-
import { type InjectedState } from '
|
|
4
|
-
import type { Dictionary } from '
|
|
1
|
+
import type { Modules } from '../../config/index.js';
|
|
2
|
+
import type { ModuleDefinition } from '../types';
|
|
3
|
+
import { type InjectedState } from '../types';
|
|
4
|
+
import type { Dictionary } from '../../../types/index.js';
|
|
5
5
|
import type { EventHub } from './eventHub';
|
|
6
6
|
/**
|
|
7
7
|
* Helper Closure function that defines a common logic to load and initialise vendor wrappers
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ActivityType } from '
|
|
1
|
+
import { ActivityType } from '../../../device';
|
|
2
2
|
export type DeviceCheckType = 'DEVICE' | 'BIOMETRIC';
|
|
3
3
|
export type DeviceActivityType = 'SIGNUP' | 'LOGIN' | 'PAYMENT' | 'CONFIRMATION' | ActivityType;
|
|
4
4
|
export interface DeviceCheckDetails {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Dictionary } from "
|
|
1
|
+
import { Dictionary } from "../../../../types/index.js";
|
|
2
2
|
import { RiskLevel } from "./ApplicantSummary";
|
|
3
3
|
import { TAssociationRole } from "./AssociatedParty";
|
|
4
4
|
import { Nullable } from "./general";
|
|
@@ -468,7 +468,7 @@ export type PassedStatusCodes = "PASS" | "FAIL" | "WARN" | null;
|
|
|
468
468
|
export declare class PassedStatus extends Badge {
|
|
469
469
|
constructor(code: PassedStatusCodes);
|
|
470
470
|
get label(): ComposedLabel;
|
|
471
|
-
get type(): "
|
|
471
|
+
get type(): "success" | "fail" | "warn";
|
|
472
472
|
}
|
|
473
473
|
export declare class AdverseMediaStatus extends Badge {
|
|
474
474
|
constructor(code: "NO_MATCH" | "POT_MATCH" | null);
|
|
@@ -478,7 +478,7 @@ export declare class AdverseMediaStatus extends Badge {
|
|
|
478
478
|
export declare class KYCStatus extends Badge {
|
|
479
479
|
constructor(code: PassedStatusCodes);
|
|
480
480
|
get label(): string;
|
|
481
|
-
get type(): "
|
|
481
|
+
get type(): "success" | "fail" | "warn";
|
|
482
482
|
}
|
|
483
483
|
export {};
|
|
484
484
|
//# sourceMappingURL=UBOData.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { EventHub } from '
|
|
2
|
-
import type { FrankieApiClient } from '
|
|
3
|
-
import type { SimplifiedMockOptions } from '
|
|
4
|
-
import type { GlobalEvents, OneSdkContext, RecipeParsed, SdkModes } from '
|
|
5
|
-
import type { SessionContext } from '
|
|
6
|
-
import type { Modules } from '
|
|
1
|
+
import type { EventHub } from '../..';
|
|
2
|
+
import type { FrankieApiClient } from '../../../frankie-client';
|
|
3
|
+
import type { SimplifiedMockOptions } from '../../../frankie-client/mocks/options/simplified/SimplifiedMockOptions.type';
|
|
4
|
+
import type { GlobalEvents, OneSdkContext, RecipeParsed, SdkModes } from '../../../sdk/types';
|
|
5
|
+
import type { SessionContext } from '../../../session/SessionContext';
|
|
6
|
+
import type { Modules } from '../../../types';
|
|
7
7
|
import type { ModuleCategory } from './categories';
|
|
8
8
|
/**
|
|
9
9
|
* ModuleBaseParameters
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { CommonEvents, EventListener, EventsDictionary } from "
|
|
1
|
+
import { CommonEvents, EventListener, EventsDictionary } from "../..";
|
|
2
2
|
/**
|
|
3
3
|
* Module context represents an instance of a module. It is the result of calling the initialise function of that module.
|
|
4
4
|
* Both "Component" and "Flow" are instances of a module which are created by their respective factory functions. The factory function will:
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { EventHub, EventsDictionary } from '
|
|
2
|
-
import type { Dictionary, EmptyObject, Field } from '
|
|
1
|
+
import type { EventHub, EventsDictionary } from '../../modules/eventHub';
|
|
2
|
+
import type { Dictionary, EmptyObject, Field } from '../../../../types/index.js';
|
|
3
3
|
import type { ModuleCategory } from './categories';
|
|
4
4
|
import type { ModuleContext, ModuleInstance } from './contextObject';
|
|
5
5
|
import type { ModuleInitialiseFunction } from './initialiseFunction';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ModuleDefinition } from '
|
|
2
|
-
import type { Branded, Dictionary } from '
|
|
1
|
+
import type { ModuleDefinition } from './definition.types';
|
|
2
|
+
import type { Branded, Dictionary } from '../../../../types/index.js';
|
|
3
3
|
import type { BaseParameters } from './baseParameters.types';
|
|
4
4
|
import type { ModuleCategory } from './categories';
|
|
5
5
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Dictionary, KeyOf, NOP, ParameterCount } from '
|
|
1
|
+
import type { Dictionary, KeyOf, NOP, ParameterCount } from '../../../../types/index.js';
|
|
2
2
|
import type { ModuleCategory, ModuleCategoryMapping } from './categories';
|
|
3
3
|
import type { ModuleContext } from './contextObject';
|
|
4
4
|
import type { ModuleDefinition } from './definition.types';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Dictionary } from "
|
|
1
|
+
import { Dictionary } from "../../../../types/index.js";
|
|
2
2
|
import { InjectedState } from "../oneSDKModules";
|
|
3
3
|
/**
|
|
4
4
|
* Definition for a vendor wrapper initialise function. This is the function that is whats exported by all vendor wrappers.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { BiometricsModule } from '
|
|
2
|
-
import type { FormModule } from '
|
|
3
|
-
import type { IDVModule } from '
|
|
4
|
-
import type { OCRModule } from '
|
|
5
|
-
import type { WorkflowModule } from '
|
|
1
|
+
import type { BiometricsModule } from '../../biometrics';
|
|
2
|
+
import type { FormModule } from '../../form/definition';
|
|
3
|
+
import type { IDVModule } from '../../idv/definition.types';
|
|
4
|
+
import type { OCRModule } from '../../ocr';
|
|
5
|
+
import type { WorkflowModule } from '../../workflow/definition.types';
|
|
6
6
|
import type { ProfileTypeEnumerated } from '../shared/models/Profile';
|
|
7
7
|
import type { PartialDeep } from 'type-fest';
|
|
8
8
|
export type RecipeConfiguration = PartialDeep<RecipeNameConfiguration & BiometricsModule['recipeConfiguration'] & DeviceRecipeConfiguration & IDVModule['recipeConfiguration'] & OCRModule['recipeConfiguration'] & FederationRecipeConfiguration & FormModule['recipeConfiguration'] & WorkflowModule['recipeConfiguration']>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Document } from '
|
|
2
|
-
import type { FormModule } from '
|
|
1
|
+
import type { Document } from '../../shared/models/Document';
|
|
2
|
+
import type { FormModule } from '../../../form/definition';
|
|
3
3
|
/**
|
|
4
4
|
* Convert the Form execution into a promise. This function will mount the
|
|
5
5
|
* Form and wait for user completion, resulting in a Document object
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { OneSDKError } from '
|
|
2
|
-
import type { EventHub } from '
|
|
3
|
-
import type { Document } from '
|
|
4
|
-
import type { OneSdkContext } from '
|
|
1
|
+
import { OneSDKError } from '../../errors/OneSDKError.class';
|
|
2
|
+
import type { EventHub } from '../../modules/eventHub';
|
|
3
|
+
import type { Document } from '../../shared/models/Document';
|
|
4
|
+
import type { OneSdkContext } from '../../../types';
|
|
5
5
|
type IDVResults = {
|
|
6
6
|
document: Document;
|
|
7
7
|
entityId: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { Events as BiometricsEvents } from '
|
|
2
|
-
import type { EventHub } from '
|
|
3
|
-
import type { IncodeResponse } from '
|
|
4
|
-
import type { Events as OcrEvents } from '
|
|
1
|
+
import type { Events as BiometricsEvents } from '../../../biometrics';
|
|
2
|
+
import type { EventHub } from '../..';
|
|
3
|
+
import type { IncodeResponse } from './onBoarding.types';
|
|
4
|
+
import type { Events as OcrEvents } from '../../../ocr';
|
|
5
5
|
/**
|
|
6
6
|
* Creates event handlers for a given EventHub.
|
|
7
7
|
*
|