@incodetech/core 2.4.1 → 2.5.0-agentic.1
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/Actor-DqjOqDfU.d.ts +1 -0
- package/dist/{BaseWasmProvider-Bq3OHo7P.d.ts → BaseWasmProvider-CPdofn7R.d.ts} +3 -5
- package/dist/BrowserNetworkStatusProvider-BrDXBEDd.esm.js +21 -0
- package/dist/{multipartRecordingService-CLwrF5wD.esm.js → CameraCompositor-C7N1N61V.esm.js} +61 -744
- package/dist/DateFormattingProvider-DPq9zco-.esm.js +25 -0
- package/dist/{FaceDetectionProvider-J_-1Cwck.esm.js → FaceDetectionProvider-Cy2EAL0i.esm.js} +38 -66
- package/dist/IBrowserEnvironmentCapability-D7JG7ML3.esm.js +16 -0
- package/dist/IGeolocationCapability-r49Qo7rR.d.ts +10 -0
- package/dist/{IIdCaptureCapability-CGcEt2Cw.d.ts → IIdCaptureCapability-BRAZQtkM.d.ts} +4 -3
- package/dist/{IWasmUtilCapability-GF2n7sfm.d.ts → IWasmUtilCapability-CLWIYHB4.d.ts} +35 -7
- package/dist/Manager-BvXAwDv9.esm.js +125 -0
- package/dist/{Manager-C9T5amUN.d.ts → Manager-DufwKlav.d.ts} +1 -7
- package/dist/{MotionSensorProvider-DYxh8TjR.esm.js → MotionSensorProvider-BAGydZPH.esm.js} +20 -0
- package/dist/MultipartRecordingProvider-BtMQZEbg.esm.js +151 -0
- package/dist/{PhoneValidationProvider-SZiOS0jB.esm.js → PhoneValidationProvider-Co4zk2en.esm.js} +7 -0
- package/dist/{StreamCanvasCapture-7JRf-2ck.d.ts → StreamCanvasCapture-BqaHTJF0.d.ts} +36 -5
- package/dist/{StreamCanvasCapture-C9jtgBdT.esm.js → StreamCanvasCapture-CXd87trH.esm.js} +18 -3
- package/dist/StreamCanvasProcessingSession-CBnbTnOr.esm.js +42 -0
- package/dist/{WasmUtilProvider-DtJuBdt-.esm.js → WasmUtilProvider-C4x5gc1c.esm.js} +135 -25
- package/dist/WorkerEncoderRecordingProvider-BO7urYwT.esm.js +80 -0
- package/dist/addressSearch-DBJeg_g3.esm.js +301 -0
- package/dist/{advanceableErrors-q_pfU3Cn.esm.js → advanceableErrors-CxZyPRyh.esm.js} +4 -2
- package/dist/ae-signature.d.ts +2 -2
- package/dist/ae-signature.esm.js +1 -1
- package/dist/allowedCharacters-Bnir--CN.esm.js +17 -0
- package/dist/antifraud.d.ts +1 -1
- package/dist/antifraud.esm.js +2 -2
- package/dist/{antifraudManager-DbGCvlJs.d.ts → antifraudManager-BxfCsyA7.d.ts} +3 -3
- package/dist/{antifraudManager-CaweCYnY.esm.js → antifraudManager-DRMBLSh7.esm.js} +5 -3
- package/dist/{antifraudStateMachine-DRl0UVyA.esm.js → antifraudStateMachine-Bi0m60oV.esm.js} +4 -6
- package/dist/{api-Cz90EHyu.esm.js → api-B58edv6M.esm.js} +13 -7
- package/dist/{apiError-9Yi8xMeB.esm.js → apiError-B9-B3cMq.esm.js} +1 -1
- package/dist/attemptCarry-CxiYlUAO.esm.js +45 -0
- package/dist/authentication.d.ts +3 -3
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-BIZC55Bi.d.ts → authenticationManager-CkD0JR7Q.d.ts} +2 -2
- package/dist/{authenticationManager-pKQS4fHT.esm.js → authenticationManager-DNWtc0eq.esm.js} +7 -6
- package/dist/{authenticationStateMachine-D_DygKtQ.esm.js → authenticationStateMachine-CJ9i4Al-.esm.js} +50 -18
- package/dist/avatar.d.ts +1 -1
- package/dist/backCameraLabel-yda5ugE4.esm.js +67 -0
- package/dist/{backCameraStream-CMvXj4X4.esm.js → backCameraStream-6qVHvj76.esm.js} +12 -107
- package/dist/{browser-DlFgHpoC-DnyrCR8r.esm.js → browser-pQZA35G2-B4Dwja1e.esm.js} +161 -150
- package/dist/calendarDate-D2zWfUlA.esm.js +35 -0
- package/dist/{callback-645_omgz.d.ts → callback-BmjJ1G-5.d.ts} +1 -1
- package/dist/camera-9yYDUOsO.d.ts +5 -0
- package/dist/{camera-sIa9ceW2.esm.js → camera-CJKApt0x.esm.js} +19 -20
- package/dist/camera.d.ts +9 -5
- package/dist/camera.esm.js +1 -1
- package/dist/certificate-issuance.d.ts +1 -1
- package/dist/certificate-issuance.esm.js +2 -2
- package/dist/{certificateIssuanceManager-Dr8A4Lgr.d.ts → certificateIssuanceManager-BcYhxO63.d.ts} +4 -3
- package/dist/{certificateIssuanceManager-BfeMv2PU.esm.js → certificateIssuanceManager-Ctj6AJC7.esm.js} +5 -3
- package/dist/{certificateIssuanceStateMachine-Frgjbjw8.esm.js → certificateIssuanceStateMachine-DDqN9kvL.esm.js} +4 -4
- package/dist/cnpj-CVq3vL39.esm.js +71 -0
- package/dist/cnpj-D5cxwIe-.esm.js +9 -0
- package/dist/connectivity-BCuEoQ-n.esm.js +114 -0
- package/dist/consent.d.ts +1 -1
- package/dist/consent.esm.js +2 -2
- package/dist/{consentManager-Ca8FHlC4.d.ts → consentManager-B0YKqYtZ.d.ts} +20 -12
- package/dist/{consentManager-CvEu8h_W.esm.js → consentManager-CyoeiABc.esm.js} +7 -4
- package/dist/{consentStateMachine-DJTgN_-1.esm.js → consentStateMachine-BTUrAslr.esm.js} +25 -15
- package/dist/cpf-DDXMTLYr.esm.js +37 -0
- package/dist/{createFaceAvatar-lYX0VTYs.d.ts → createFaceAvatar-Ct9QrQ66.d.ts} +1 -1
- package/dist/cross-document-data-match.d.ts +1 -1
- package/dist/cross-document-data-match.esm.js +1 -1
- package/dist/{crossDocumentDataMatchManager-Cu141CE8.esm.js → crossDocumentDataMatchManager-cmQmp7Bi.esm.js} +6 -5
- package/dist/{crossDocumentDataMatchManager-yCWCOzcU.d.ts → crossDocumentDataMatchManager-crZcIUSY.d.ts} +3 -3
- package/dist/curp-DZGvefg3.esm.js +14 -0
- package/dist/curp-validation.d.ts +1 -1
- package/dist/curp-validation.esm.js +2 -2
- package/dist/{curpValidationManager-B-z9q5V3.esm.js → curpValidationManager-EW44fVpH.esm.js} +6 -3
- package/dist/{curpValidationManager-C9sqoh9n.d.ts → curpValidationManager-HOidAKvT.d.ts} +4 -4
- package/dist/{curpValidationStateMachine-vDEFLMPw.esm.js → curpValidationStateMachine-BFkt90Zs.esm.js} +41 -34
- package/dist/custom-fields.d.ts +1 -1
- package/dist/custom-fields.esm.js +1 -1
- package/dist/custom-watchlist.d.ts +1 -1
- package/dist/custom-watchlist.esm.js +2 -2
- package/dist/{customFieldsManager-CF-cO8ap.d.ts → customFieldsManager-CdWTbsew.d.ts} +3 -3
- package/dist/{customFieldsManager-D1ex2cFM.esm.js → customFieldsManager-DPMBJrcH.esm.js} +15 -17
- package/dist/{customWatchlistManager-CTI-SGk0.esm.js → customWatchlistManager-DiYpPjZx.esm.js} +5 -3
- package/dist/{customWatchlistManager-DolUswyR.d.ts → customWatchlistManager-lJrveDS4.d.ts} +3 -3
- package/dist/{customWatchlistStateMachine-hmRd0f2I.esm.js → customWatchlistStateMachine-D7VxQggF.esm.js} +4 -6
- package/dist/deepsightCaptureConfig-BxD3mSac.esm.js +70 -0
- package/dist/{deepsightService-C3DVBOZd.esm.js → deepsightLoader-KYZP8_x-.esm.js} +41 -74
- package/dist/definitionSource-B9WTvQb9.esm.js +30 -0
- package/dist/{createCameraCycleOwnership-Dj_LHUvN.esm.js → desktopCameraElection-BGQRIA2u.esm.js} +278 -44
- package/dist/device.d.ts +3 -3
- package/dist/device.esm.js +16 -16
- package/dist/document-capture.d.ts +3 -3
- package/dist/document-capture.esm.js +2 -2
- package/dist/document-signature.d.ts +123 -0
- package/dist/document-signature.esm.js +149 -0
- package/dist/{documentCaptureManager-DUJwpKC5.esm.js → documentCaptureManager-SRG6YEMh.esm.js} +30 -20
- package/dist/{documentCaptureManager-DkyDtm3Y.d.ts → documentCaptureManager-sJWgqtUy.d.ts} +42 -8
- package/dist/{documentCaptureStateMachine-B8i7GnLh.esm.js → documentCaptureStateMachine-Bh0uyfGq.esm.js} +110 -63
- package/dist/documentSignatureStateMachine-CLljjltG.esm.js +219 -0
- package/dist/dynamic-forms.d.ts +2 -2
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-C0dHs1ty.d.ts → dynamicFormsManager-C45pTncO.d.ts} +4 -4
- package/dist/{dynamicFormsManager-DK_oc5Oy.esm.js → dynamicFormsManager-CnU2hRvl.esm.js} +5 -3
- package/dist/{dynamicFormsStateMachine-CGlIAWZ6.esm.js → dynamicFormsStateMachine-huYmjamB.esm.js} +12 -13
- package/dist/ekyb.d.ts +5 -5
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-BLgkiWXw.esm.js → ekybManager-CaEErq39.esm.js} +5 -3
- package/dist/{ekybManager-BaZ_7CEu.d.ts → ekybManager-Cjk8pQX0.d.ts} +5 -5
- package/dist/ekybStateMachine-BIU8KIMv.esm.js +2173 -0
- package/dist/ekybUtils-Dl0MU-ib.esm.js +172 -0
- package/dist/ekyc-prefill.d.ts +17 -0
- package/dist/ekyc-prefill.esm.js +3 -0
- package/dist/ekyc.d.ts +4 -3
- package/dist/ekyc.esm.js +3 -3
- package/dist/{ekycManager-BO-Lui3t.esm.js → ekycManager-D2K8AaMV.esm.js} +39 -16
- package/dist/{ekycManager-DW-ynodd.d.ts → ekycManager-DusmB-4j.d.ts} +49 -7
- package/dist/ekycPrefillManager-BwmPXfhY.d.ts +566 -0
- package/dist/ekycPrefillManager-CENQjdNq.esm.js +102 -0
- package/dist/ekycPrefillStateMachine-jT3hIt2X.esm.js +1289 -0
- package/dist/ekycStateMachine-6EKndBd7.esm.js +9024 -0
- package/dist/ekycUtils-C6HZB46m.esm.js +1532 -0
- package/dist/electronic-signature.d.ts +1 -1
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-DTSLOvKR.d.ts → electronicSignatureManager-5tYz-a4o.d.ts} +4 -3
- package/dist/{electronicSignatureManager-CjKvJ6E-.esm.js → electronicSignatureManager-wM8WTgzP.esm.js} +12 -18
- package/dist/email.d.ts +1 -1
- package/dist/email.esm.js +2 -2
- package/dist/{emailManager-ButFktRm.esm.js → emailManager-BBdRYLtH.esm.js} +5 -3
- package/dist/{emailManager-Dy6omJVp.d.ts → emailManager-pM7ZPuMa.d.ts} +3 -3
- package/dist/{emailStateMachine-BXtlC0NV.esm.js → emailStateMachine-DO7lWYvn.esm.js} +35 -25
- package/dist/events-PUWyizJn.esm.js +299 -0
- package/dist/events.d.ts +4 -4
- package/dist/events.esm.js +2 -1
- package/dist/extensibility.d.ts +57 -41
- package/dist/extensibility.esm.js +39 -37
- package/dist/{externalFetch-DrR9xshk.esm.js → externalFetch-cUjJYyXj.esm.js} +4 -1
- package/dist/face-match.d.ts +1 -1
- package/dist/face-match.esm.js +2 -2
- package/dist/{faceCaptureManagerFactory-1hzeS_rB.d.ts → faceCaptureManagerFactory-D1EJw36F.d.ts} +101 -77
- package/dist/{faceCaptureManagerFactory-BDGhg24q.esm.js → faceCaptureManagerFactory-DbEARG3h.esm.js} +29 -12
- package/dist/{faceCaptureSetup-CvGYG4GZ.esm.js → faceCaptureSetup-VaAjMpWX.esm.js} +189 -513
- package/dist/{faceMatchManager-DIgG-UFS.d.ts → faceMatchManager-C5b5WtcY.d.ts} +23 -7
- package/dist/{faceMatchManager-DWFUQjMQ.esm.js → faceMatchManager-nBvS9z0o.esm.js} +5 -3
- package/dist/{faceMatchStateMachine-CUCvlydD.esm.js → faceMatchStateMachine-48O8j_Lx.esm.js} +70 -42
- package/dist/{feature-management-D4ne_hXW.esm.js → feature-management-D7oLtULO.esm.js} +37 -22
- package/dist/feature-management.esm.js +1 -1
- package/dist/field-comparison.d.ts +1 -1
- package/dist/field-comparison.esm.js +1 -1
- package/dist/{fieldComparisonManager-v3knTYV_.esm.js → fieldComparisonManager-B1ipvtnp.esm.js} +7 -7
- package/dist/{fieldComparisonManager-CUX4gza2.d.ts → fieldComparisonManager-mFOHRhVd.d.ts} +3 -3
- package/dist/fiscal-qr.d.ts +1 -1
- package/dist/fiscal-qr.esm.js +1 -1
- package/dist/{fiscalQrManager-D0Iy7EKR.d.ts → fiscalQrManager-DFnFVpP9.d.ts} +3 -3
- package/dist/{fiscalQrManager-Dt9fHG7h.esm.js → fiscalQrManager-yecjuXV4.esm.js} +9 -8
- package/dist/flow-events.d.ts +1 -1
- package/dist/flow.d.ts +73 -24
- package/dist/flow.esm.js +261 -66
- package/dist/{flowCompletionService-Cemwaa5b.esm.js → flowCompletionService-CIjaIpMH.esm.js} +2 -2
- package/dist/flowServices-Dqt75TXx.esm.js +951 -0
- package/dist/formErrors-lSfh7Y8J.esm.js +512 -0
- package/dist/geolocation.d.ts +1 -1
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-Dn24g1fl.d.ts → geolocationManager-CENrvxpK.d.ts} +19 -20
- package/dist/{geolocationManager-B0dc5rW9.esm.js → geolocationManager-DHfgXhEs.esm.js} +9 -9
- package/dist/{geolocationStateMachine-B3rcoODF.esm.js → geolocationStateMachine-CrEspaN-.esm.js} +16 -14
- package/dist/{getDeviceClass-bsWdEDxP.esm.js → getDeviceClass-Dcy9erbl.esm.js} +1 -1
- package/dist/government-validation.d.ts +1 -1
- package/dist/government-validation.esm.js +2 -2
- package/dist/{governmentValidationManager-BtXWHICu.esm.js → governmentValidationManager-0-L21hu6.esm.js} +5 -3
- package/dist/{governmentValidationManager-B82zOut8.d.ts → governmentValidationManager-De_vU7bm.d.ts} +4 -4
- package/dist/{governmentValidationStateMachine-COL-Vs48.esm.js → governmentValidationStateMachine-BFIcq3UB.esm.js} +4 -6
- package/dist/home.d.ts +4 -3
- package/dist/home.esm.js +4 -2
- package/dist/http.esm.js +1 -1
- package/dist/id-ocr.d.ts +2 -2
- package/dist/id-ocr.esm.js +3 -3
- package/dist/id-selfie-flow.d.ts +7 -6
- package/dist/id-selfie-flow.esm.js +14 -12
- package/dist/id-verification.d.ts +1 -1
- package/dist/id-verification.esm.js +2 -2
- package/dist/id.d.ts +6 -19
- package/dist/id.esm.js +4 -4
- package/dist/{idCaptureDefaults-BGsG2OAs.esm.js → idCaptureDefaults-CNopPetU.esm.js} +17 -7
- package/dist/{idCaptureManager-IouAnrFm.esm.js → idCaptureManager-BPDCAV04.esm.js} +95 -34
- package/dist/{idCaptureManager-0M02hSuC.d.ts → idCaptureManager-CNFBeYgV.d.ts} +105 -16
- package/dist/{idCaptureServices-VTKIPSpT.esm.js → idCaptureServices-CWZFmS7l.esm.js} +36 -213
- package/dist/{idCaptureStateMachine-_Pn2Xkpb.esm.js → idCaptureStateMachine-Cyt2BvPB.esm.js} +3081 -2510
- package/dist/{idOcrManager-DT3kPIB3.d.ts → idOcrManager-DflRx-_u.d.ts} +6 -5
- package/dist/{idOcrManager-D3-HNMXP.esm.js → idOcrManager-bjBLjrEE.esm.js} +5 -3
- package/dist/{idOcrStateMachine-DyENX6Ki.esm.js → idOcrStateMachine-D5ifJ1B8.esm.js} +20 -16
- package/dist/{idVerificationManager-BJapZfpy.d.ts → idVerificationManager-B6R8xNZq.d.ts} +4 -3
- package/dist/{idVerificationManager-iWz7Avkr.esm.js → idVerificationManager-C8Ja-vKq.esm.js} +5 -3
- package/dist/{idVerificationStateMachine-CL1kUdBe.esm.js → idVerificationStateMachine-BMnfZZli.esm.js} +4 -6
- package/dist/identity-reuse.d.ts +2 -2
- package/dist/identity-reuse.esm.js +2 -2
- package/dist/identity-search.d.ts +97 -0
- package/dist/identity-search.esm.js +96 -0
- package/dist/{identityReuseManager-CD1ucp1d.esm.js → identityReuseManager-B5BWAleT.esm.js} +9 -4
- package/dist/{identityReuseManager-ooAbp6Kc.d.ts → identityReuseManager-CZ-qJ_Aa.d.ts} +82 -15
- package/dist/{identityReuseStateMachine-DfV81wQC.esm.js → identityReuseStateMachine-Cuggm1UP.esm.js} +24 -31
- package/dist/{index-BKOWUhxG.d.ts → index-BMr3MZEI.d.ts} +93 -22
- package/dist/{index-CKQ9QBZP.d.ts → index-BoGlwLGK.d.ts} +2 -2
- package/dist/index-DHuAkTe0.d.ts +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/{invokeOnCaptureCallback-DYrkOXO6.esm.js → invokeOnCaptureCallback-D2FOfi4O.esm.js} +1 -1
- package/dist/kyb-checks.d.ts +3 -0
- package/dist/kyb-checks.esm.js +3 -0
- package/dist/kybChecksManager-BF2vf0Q2.esm.js +90 -0
- package/dist/kybChecksManager-CKDy1mel.d.ts +95 -0
- package/dist/kybChecksStateMachine-oBQfgdka.esm.js +713 -0
- package/dist/mandatory-consent.d.ts +2 -2
- package/dist/mandatory-consent.esm.js +2 -2
- package/dist/{mandatoryConsentManager-qYojnZYg.d.ts → mandatoryConsentManager-BcxCesP5.d.ts} +30 -13
- package/dist/{mandatoryConsentManager-Cwqx1nK7.esm.js → mandatoryConsentManager-FfgHdPYw.esm.js} +7 -4
- package/dist/{mandatoryConsentStateMachine-pXWqAHo_.esm.js → mandatoryConsentStateMachine-CXuYC3qR.esm.js} +35 -19
- package/dist/mediaRecorderOptions-Di_V9TnZ.esm.js +87 -0
- package/dist/multipartRecordingService-CFmOUGQt.esm.js +407 -0
- package/dist/numericRange-2e1vw1W0.esm.js +256 -0
- package/dist/{permissionGuards-gcy3U0SL.esm.js → permissionGuards-CZTCRHT-.esm.js} +1 -1
- package/dist/{permissionServices-Ca-tSNhT.esm.js → permissionServices-Vd86JiW9.esm.js} +47 -19
- package/dist/phone-number.d.ts +7 -1
- package/dist/phone-number.esm.js +15 -2
- package/dist/phone.d.ts +1 -1
- package/dist/phone.esm.js +2 -2
- package/dist/{phoneManager-BO-LTih5.d.ts → phoneManager-bA-xw2TP.d.ts} +8 -11
- package/dist/{phoneManager-KKUq-Vgo.esm.js → phoneManager-oIMdbeLG.esm.js} +8 -7
- package/dist/phoneServices-Dk4j3NhI.esm.js +63 -0
- package/dist/{phoneStateMachine-D2QWS2cu.esm.js → phoneStateMachine-Cu3y7ewi.esm.js} +57 -90
- package/dist/{phoneValidation-DnBcNUNh.esm.js → phoneValidation-OggtfjRt.esm.js} +1 -2
- package/dist/{platform-DkcRc9JV.esm.js → platform-GIg4uPWe.esm.js} +15 -4
- package/dist/processFaceMatch-CHeI0DEt.esm.js +21 -0
- package/dist/qe-signature.d.ts +2 -2
- package/dist/qe-signature.esm.js +1 -1
- package/dist/recordingService-DK3kjUby.esm.js +404 -0
- package/dist/redirect-to-mobile.d.ts +2 -2
- package/dist/redirect-to-mobile.esm.js +2 -2
- package/dist/{redirectToMobileManager-CVsvpVbQ.d.ts → redirectToMobileManager-Db99n9Yu.d.ts} +7 -4
- package/dist/{redirectToMobileManager-uHW3dyuQ.esm.js → redirectToMobileManager-yYJGE47m.esm.js} +10 -6
- package/dist/{redirectToMobileStateMachine-b-H-ipGM.esm.js → redirectToMobileStateMachine-g_NbyHrL.esm.js} +82 -46
- package/dist/resolveForm-DaaQSVWp.esm.js +146 -0
- package/dist/{runChildModule-DSpP41Hl.esm.js → runChildModule-x1rrxjYY.esm.js} +9 -7
- package/dist/{sdkVersion-DKHwWEyH.esm.js → sdkVersion-kRh5h82H.esm.js} +1 -1
- package/dist/selfie.d.ts +6 -6
- package/dist/selfie.esm.js +15 -13
- package/dist/{selfieErrorUtils-DoN1KFSQ.esm.js → selfieErrorUtils-B9GfiS9f.esm.js} +1 -1
- package/dist/{selfieManager-DtQegA6T.esm.js → selfieManager-CivYjnF5.esm.js} +7 -6
- package/dist/{selfieManager-BJdNu_nd.d.ts → selfieManager-CqDlUy6B.d.ts} +2 -2
- package/dist/{selfieStateMachine-CnCwJZuC.esm.js → selfieStateMachine-dLwrXWll.esm.js} +5 -5
- package/dist/{session-CNUfjlRc.esm.js → session-DeJ-rd9u.esm.js} +78 -9
- package/dist/session.d.ts +85 -9
- package/dist/session.esm.js +7 -6
- package/dist/{sessionInitializer-JM_glXR2.esm.js → sessionInitializer-uZgyxsrL.esm.js} +442 -208
- package/dist/{setup-YPKTUCY5.d.ts → setup-Cr2KCwau.d.ts} +7 -6
- package/dist/{setup-C5tfWt6W.esm.js → setup-D0QZHkS8.esm.js} +42 -29
- package/dist/signature.d.ts +1 -1
- package/dist/signature.esm.js +2 -2
- package/dist/{signatureManager-f_dPAGXn.esm.js → signatureManager-DRUflksL.esm.js} +5 -3
- package/dist/{signatureManager-BpVt_Jv7.d.ts → signatureManager-daT_8fj_.d.ts} +3 -3
- package/dist/{signatureStateMachine-C-nUq_oq.esm.js → signatureStateMachine-BQZenxel.esm.js} +5 -7
- package/dist/{spawn-D9jgw9pW.d.ts → spawn-COZKetCS.d.ts} +1 -1
- package/dist/{stats-BEvexnKC.esm.js → stats-DHu3li6G.esm.js} +1 -1
- package/dist/stats.esm.js +1 -1
- package/dist/step-up.d.ts +379 -0
- package/dist/step-up.esm.js +640 -0
- package/dist/{tri-xzRLIIMN.esm.js → tri-D_gHPWrq.esm.js} +137 -8
- package/dist/tri.d.ts +2 -2
- package/dist/tri.esm-CftnGf9w.esm.js +3115 -0
- package/dist/tri.esm.js +2 -2
- package/dist/trueSight-CbrZUzLx.esm.js +1 -0
- package/dist/{trueSightService-fLmL_cyg.esm.js → trueSightService-BMp8g65B.esm.js} +25 -16
- package/dist/trust-graph.d.ts +87 -27
- package/dist/trust-graph.esm.js +6 -25
- package/dist/trustGraphStateMachine-0Ehwried.esm.js +58 -0
- package/dist/types-B9C8W01q.d.ts +34 -0
- package/dist/types-BNkzXOXE.d.ts +45 -0
- package/dist/{types-B6HsSzpk.d.ts → types-BZsmNYom.d.ts} +77 -9
- package/dist/types-BinnzVrL.d.ts +6 -0
- package/dist/{types-CJ7Yl9K-.d.ts → types-Bpo97EOh.d.ts} +4 -2
- package/dist/{types-0L-eFDmr.d.ts → types-BwMpWCVG.d.ts} +6 -2
- package/dist/{types-BQA7lRDV.d.ts → types-C3rfDzgE.d.ts} +4 -2
- package/dist/types-CXTDuzUJ.d.ts +16 -0
- package/dist/{types-BEwVKkLJ.d.ts → types-CeEcakO7.d.ts} +7 -1
- package/dist/{types-DUnFZ08M.d.ts → types-Cy6Lx3L6.d.ts} +18 -10
- package/dist/{types-BAxn7MpY.d.ts → types-D-FEM1rT.d.ts} +156 -58
- package/dist/types-D6Q1D1kx.d.ts +33 -0
- package/dist/{events-Du2A4-Qr.esm.js → types-DLsivQsu.esm.js} +6 -303
- package/dist/{types-DPIDuhut.d.ts → types-DNVzoRvi.d.ts} +2 -1
- package/dist/types-DWqO7owj.d.ts +58 -0
- package/dist/{types-yPH8lAH-.d.ts → types-HHgsFhZn.d.ts} +16 -3
- package/dist/{types-Ckir_BEs.d.ts → types-LbccjQYX.d.ts} +3 -2
- package/dist/{types-CK8Jbjkp.d.ts → types-PnJXvTkV.d.ts} +1 -1
- package/dist/types-g3NuVCT9.d.ts +118 -0
- package/dist/types-tOSLpcSa.d.ts +231 -0
- package/dist/urlUtils-B2wagB5v.esm.js +39 -0
- package/dist/usStates-CwOQ2kAx.esm.js +209 -0
- package/dist/video-selfie.d.ts +27 -17
- package/dist/video-selfie.esm.js +105 -26
- package/dist/{videoSelfieCameraWarmer-BBNKiau1.esm.js → videoSelfieCameraWarmer-BpP0_lDr.esm.js} +47 -29
- package/dist/{videoSelfieFlowModuleMachine-BCFVHBQ1.esm.js → videoSelfieFlowModuleMachine-IWdxw1TW.esm.js} +1 -1
- package/dist/{videoSelfieStepDetector-CGsTltqB.d.ts → videoSelfieStepDetector-CxOc3kSI.d.ts} +24 -9
- package/dist/virtualCameraCheck-eFOm2C9q.esm.js +27 -0
- package/dist/{warmup-BElYWRh7.esm.js → warmup-ClZxXOkg.esm.js} +378 -57
- package/dist/{warmup-BO57syF6.d.ts → warmup-SWu5L7cW.d.ts} +19 -2
- package/dist/wasm.d.ts +9 -3
- package/dist/wasm.esm.js +3 -3
- package/dist/wasmDeepsightConfigSync-DukEcrU8.esm.js +77 -0
- package/dist/{wasmDsFlagSync-CYj5LL9z.esm.js → wasmDsFlagSync-Bw-P5OG1.esm.js} +1 -1
- package/dist/{wasmWebClient-BjZw_7OB.esm.js → wasmWebClient-BLtlzQhv.esm.js} +77 -29
- package/dist/watchlist-for-business.d.ts +2 -1
- package/dist/watchlist-for-business.esm.js +2 -2
- package/dist/watchlist.d.ts +1 -1
- package/dist/watchlist.esm.js +2 -2
- package/dist/{watchlistForBusinessManager-CZZOFkGl.esm.js → watchlistForBusinessManager-d8kdf35n.esm.js} +40 -8
- package/dist/{watchlistForBusinessManager-B3GDPZrr.d.ts → watchlistForBusinessManager-l7ZERQcV.d.ts} +57 -21
- package/dist/watchlistForBusinessStateMachine-Y9wFmuMH.esm.js +170 -0
- package/dist/{watchlistManager-DXtX94SN.esm.js → watchlistManager-D1BVrd3H.esm.js} +5 -3
- package/dist/{watchlistManager-DJQOd8Pw.d.ts → watchlistManager-DQq4GxBO.d.ts} +3 -3
- package/dist/{watchlistStateMachine-McALifag.esm.js → watchlistStateMachine-Da4p0sTE.esm.js} +4 -6
- package/dist/workflow.d.ts +10 -6
- package/dist/workflow.esm.js +95 -60
- package/dist/{xstate-actors.esm-8Gzepa_A.esm.js → xstate-actors.esm-BCcwgosu.esm.js} +1 -1
- package/dist/xstate.cjs-D6Ur0X1F.d.ts +7 -0
- package/dist/{xstate.esm-DSajW7CJ.esm.js → xstate.esm-CIqUf_i6.esm.js} +1 -125
- package/package.json +34 -7
- package/dist/Actor-DpTj5PFb.d.ts +0 -1
- package/dist/IBrowserEnvironmentCapability-DEaRRk-R.esm.js +0 -9
- package/dist/addressSearch-DPjIKJrX.esm.js +0 -563
- package/dist/camera-9wWD-pwg.d.ts +0 -4
- package/dist/cpf-uAZTPUBy.esm.js +0 -61
- package/dist/deepsightLoader-sH7920zw.esm.js +0 -55
- package/dist/ekybStateMachine-BfgOUZMK.esm.js +0 -933
- package/dist/ekycStateMachine-CDnI_NRq.esm.js +0 -1443
- package/dist/ekycUtils-zY8CdKJL.esm.js +0 -300
- package/dist/flowServices-X6Rwf_7E.esm.js +0 -688
- package/dist/index-DpTj5PFb.d.ts +0 -1
- package/dist/thumbmark.esm-CRc0cYvz.esm.js +0 -1242
- package/dist/tri.esm-BIjHhBJ2.esm.js +0 -2620
- package/dist/types-BvLo3U4u.d.ts +0 -134
- package/dist/types-zOgZqMni.d.ts +0 -6
- package/dist/urlUtils-6jsE6rKp.esm.js +0 -23
- package/dist/watchlistForBusinessStateMachine-B66E7jud.esm.js +0 -78
- /package/dist/{types-BSBzhHRH2.d.ts → types-BSBzhHRH.d.ts} +0 -0
|
@@ -0,0 +1,2173 @@
|
|
|
1
|
+
import { t as api, u as endpoints } from "./api-B58edv6M.esm.js";
|
|
2
|
+
import { n as getFlow } from "./flowServices-Dqt75TXx.esm.js";
|
|
3
|
+
import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
4
|
+
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
5
|
+
import { a as requiresAddressValidation, c as ADDRESS_FIELDS, d as FIELD_NAME_MAPPING, f as FIELD_ORDER, g as isSupportedCountry, h as UBO_FIELD_LABELS, i as isFormFieldEntry, l as ALL_COUNTRIES, m as TAX_ID_RULES_BY_COUNTRY, n as hasAtLeastOneAddressField, o as sortModulesByOrder, r as isFieldOptional, s as toEkybConfig } from "./ekybUtils-Dl0MU-ib.esm.js";
|
|
6
|
+
import { t as usStateOptions } from "./usStates-CwOQ2kAx.esm.js";
|
|
7
|
+
import { t as validateCNPJ } from "./cnpj-CVq3vL39.esm.js";
|
|
8
|
+
import { n as requiresCnpjValidation } from "./cnpj-D5cxwIe-.esm.js";
|
|
9
|
+
import { a as getPostalCodeErrorKey, c as validatePostalCode, d as getStreetLevelErrorForSuggestion, f as keepSuggestionInOptions, i as formatPostalCode, l as STREET_LEVEL_REQUIRED_ERROR, o as getPostalCodeErrorParams, r as isFormDefinitionsEnabled, s as getPostalCodeMaxLength, t as debounceSearchActor, u as fillFromSuggestion } from "./addressSearch-DBJeg_g3.esm.js";
|
|
10
|
+
import { n as checkSupport, r as DYNAMIC_REQUIRED_KEY, t as resolveForm } from "./resolveForm-DaaQSVWp.esm.js";
|
|
11
|
+
import { n as matchesCharTemplate, t as createBundledDefinitionSource } from "./definitionSource-B9WTvQb9.esm.js";
|
|
12
|
+
//#region src/modules/ekyb/ekybValidators.ts
|
|
13
|
+
const createValidators = () => ({
|
|
14
|
+
required: (value, _rule, field) => {
|
|
15
|
+
if (value.trim().length > 0) return void 0;
|
|
16
|
+
const fieldName = field.displayLabel ?? field.label;
|
|
17
|
+
return fieldName ? {
|
|
18
|
+
key: DYNAMIC_REQUIRED_KEY,
|
|
19
|
+
params: { fieldName }
|
|
20
|
+
} : { key: DYNAMIC_REQUIRED_KEY };
|
|
21
|
+
},
|
|
22
|
+
streetLevelRequired: (value) => {
|
|
23
|
+
if (value.trim().length > 0) return void 0;
|
|
24
|
+
return STREET_LEVEL_REQUIRED_ERROR;
|
|
25
|
+
},
|
|
26
|
+
cnpj: (value) => {
|
|
27
|
+
if (value.trim().length === 0) return void 0;
|
|
28
|
+
return validateCNPJ(value) ? void 0 : { key: "ekyb.error.invalidTaxId" };
|
|
29
|
+
},
|
|
30
|
+
postalCodeFormat: (value, rule) => {
|
|
31
|
+
if (rule.type !== "postalCodeFormat") return void 0;
|
|
32
|
+
if (value.trim().length === 0) return void 0;
|
|
33
|
+
if (validatePostalCode(value, rule.country)) return void 0;
|
|
34
|
+
return {
|
|
35
|
+
key: getPostalCodeErrorKey(rule.country),
|
|
36
|
+
params: getPostalCodeErrorParams(rule.country)
|
|
37
|
+
};
|
|
38
|
+
},
|
|
39
|
+
charTemplate: (value, rule) => {
|
|
40
|
+
if (rule.type !== "charTemplate") return void 0;
|
|
41
|
+
if (value.trim().length === 0) return void 0;
|
|
42
|
+
return matchesCharTemplate(value.trim(), rule.templates, rule.ignoreCase) ? void 0 : { key: "verification.errors.invalidFormat" };
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
const normalizeFieldValue = (value) => typeof value === "string" ? value : String(value ?? "");
|
|
46
|
+
const evaluateRules = (value, rules, field, validators) => {
|
|
47
|
+
if (!rules) return void 0;
|
|
48
|
+
for (const rule of rules) {
|
|
49
|
+
const error = validators[rule.type](value, rule, field);
|
|
50
|
+
if (error) return error;
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* Address group: when no address field is filled (for countries that require
|
|
55
|
+
* address validation), marks required address fields with a required error.
|
|
56
|
+
* Per-field errors take precedence — this is merged last in validateEkybForm.
|
|
57
|
+
*/
|
|
58
|
+
function validateAddressGroup(fields, values, country) {
|
|
59
|
+
if (!requiresAddressValidation(country)) return {};
|
|
60
|
+
const addressValues = {};
|
|
61
|
+
for (const f of ADDRESS_FIELDS) addressValues[f] = values[f];
|
|
62
|
+
if (hasAtLeastOneAddressField(addressValues)) return {};
|
|
63
|
+
const errors = {};
|
|
64
|
+
const requiredAddressFields = fields.filter((f) => ADDRESS_FIELDS.includes(f.name) && f.required);
|
|
65
|
+
for (const f of requiredAddressFields) if (!(values[f.name] ?? "").trim()) {
|
|
66
|
+
const fieldName = f.displayLabel ?? f.label;
|
|
67
|
+
errors[f.name] = {
|
|
68
|
+
key: DYNAMIC_REQUIRED_KEY,
|
|
69
|
+
params: { fieldName }
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
return errors;
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* UBO group: marks required UBO name/surname fields when the UBO entry
|
|
76
|
+
* has been interacted with (first UBO always validates; subsequent UBOs
|
|
77
|
+
* only validate if either field has a value).
|
|
78
|
+
*/
|
|
79
|
+
function validateUboGroup(ubos, hasUbos) {
|
|
80
|
+
if (!hasUbos) return {};
|
|
81
|
+
const errors = {};
|
|
82
|
+
for (let i = 0; i < ubos.length; i++) {
|
|
83
|
+
const isDefault = i === 0;
|
|
84
|
+
const hasAnyValue = ubos[i].name.trim() !== "" || ubos[i].surname.trim() !== "";
|
|
85
|
+
if (isDefault || hasAnyValue) {
|
|
86
|
+
if (!ubos[i].name.trim()) errors[`ubo-${i}-name`] = {
|
|
87
|
+
key: DYNAMIC_REQUIRED_KEY,
|
|
88
|
+
params: { fieldName: UBO_FIELD_LABELS.name }
|
|
89
|
+
};
|
|
90
|
+
if (!ubos[i].surname.trim()) errors[`ubo-${i}-surname`] = {
|
|
91
|
+
key: DYNAMIC_REQUIRED_KEY,
|
|
92
|
+
params: { fieldName: UBO_FIELD_LABELS.surname }
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
return errors;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Full-form validation: per-field pass, then address cross-field pass, then
|
|
100
|
+
* UBO pass. Per-field errors take precedence over cross-field errors for
|
|
101
|
+
* the same key.
|
|
102
|
+
*/
|
|
103
|
+
function validateEkybForm(values, fields, country, ubos, hasUbos) {
|
|
104
|
+
const validators = createValidators();
|
|
105
|
+
const perField = fields.reduce((acc, field) => {
|
|
106
|
+
const value = normalizeFieldValue(values[field.name]);
|
|
107
|
+
const error = evaluateRules(value, field.validation, field, validators);
|
|
108
|
+
if (error) acc[field.name] = error;
|
|
109
|
+
return acc;
|
|
110
|
+
}, {});
|
|
111
|
+
const addressGroup = validateAddressGroup(fields, values, country);
|
|
112
|
+
const uboGroup = validateUboGroup(ubos, hasUbos);
|
|
113
|
+
return {
|
|
114
|
+
...addressGroup,
|
|
115
|
+
...perField,
|
|
116
|
+
...uboGroup
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Single-field validation (per-field only, no cross-field passes).
|
|
121
|
+
* Intended for blur-triggered validation of regular form fields.
|
|
122
|
+
*/
|
|
123
|
+
function validateEkybField(values, fieldName, fields) {
|
|
124
|
+
const field = fields.find((f) => f.name === fieldName);
|
|
125
|
+
if (!field) return void 0;
|
|
126
|
+
const validators = createValidators();
|
|
127
|
+
const value = normalizeFieldValue(values[field.name]);
|
|
128
|
+
return evaluateRules(value, field.validation, field, validators);
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* Single UBO field validation (blur-triggered).
|
|
132
|
+
* fieldKey format: `ubo-{index}-name` or `ubo-{index}-surname`.
|
|
133
|
+
* Returns undefined for non-default UBOs whose peer field is also empty
|
|
134
|
+
* (user hasn't started filling that UBO entry yet).
|
|
135
|
+
*/
|
|
136
|
+
function validateEkybUboField(ubos, fieldKey) {
|
|
137
|
+
const match = fieldKey.match(/^ubo-(\d+)-(name|surname)$/);
|
|
138
|
+
if (!match) return void 0;
|
|
139
|
+
const index = Number(match[1]);
|
|
140
|
+
const field = match[2];
|
|
141
|
+
if (index < 0 || index >= ubos.length) return void 0;
|
|
142
|
+
const ubo = ubos[index];
|
|
143
|
+
const isDefault = index === 0;
|
|
144
|
+
const hasAnyValue = ubo.name.trim() !== "" || ubo.surname.trim() !== "";
|
|
145
|
+
if (!isDefault && !hasAnyValue) return void 0;
|
|
146
|
+
if (!ubo[field].trim()) return {
|
|
147
|
+
key: DYNAMIC_REQUIRED_KEY,
|
|
148
|
+
params: { fieldName: UBO_FIELD_LABELS[field] }
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
//#endregion
|
|
152
|
+
//#region ../form-definitions/generated/ekyb.ts
|
|
153
|
+
const EKYB_DEFINITIONS = {
|
|
154
|
+
"ekyb/BR": {
|
|
155
|
+
schemaVersion: 1,
|
|
156
|
+
vocabulary: "1.0",
|
|
157
|
+
id: "ekyb/BR",
|
|
158
|
+
module: "ekyb",
|
|
159
|
+
country: "BR",
|
|
160
|
+
fields: [
|
|
161
|
+
{
|
|
162
|
+
name: "businessName",
|
|
163
|
+
kind: "text",
|
|
164
|
+
group: "businessName",
|
|
165
|
+
required: true,
|
|
166
|
+
label: { key: "ekyb.businessName" },
|
|
167
|
+
input: { autofill: "organization" }
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
name: "taxId",
|
|
171
|
+
kind: "text",
|
|
172
|
+
group: "taxId",
|
|
173
|
+
required: true,
|
|
174
|
+
label: { key: "ekyb.taxId" },
|
|
175
|
+
displayLabel: {
|
|
176
|
+
key: "verification.labels.cpf",
|
|
177
|
+
text: "CPF"
|
|
178
|
+
},
|
|
179
|
+
rules: [{ id: "cnpj" }]
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
name: "street",
|
|
183
|
+
kind: "text",
|
|
184
|
+
group: "address",
|
|
185
|
+
required: true,
|
|
186
|
+
widget: "addressSearch",
|
|
187
|
+
label: { key: "ekyb.street" },
|
|
188
|
+
input: { autofill: "addressLine1" }
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
name: "houseNo",
|
|
192
|
+
kind: "text",
|
|
193
|
+
group: "address",
|
|
194
|
+
required: true,
|
|
195
|
+
label: { key: "ekyb.houseNo" }
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
name: "addressLine2",
|
|
199
|
+
kind: "text",
|
|
200
|
+
group: "address",
|
|
201
|
+
label: { key: "ekyb.addressLine2" },
|
|
202
|
+
input: { autofill: "addressLine2" }
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
name: "city",
|
|
206
|
+
kind: "text",
|
|
207
|
+
group: "address",
|
|
208
|
+
required: true,
|
|
209
|
+
label: { key: "ekyb.city" },
|
|
210
|
+
input: { autofill: "addressLevel2" }
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
name: "state",
|
|
214
|
+
kind: "text",
|
|
215
|
+
group: "address",
|
|
216
|
+
required: true,
|
|
217
|
+
label: { key: "ekyb.state" },
|
|
218
|
+
input: { autofill: "addressLevel1" }
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
name: "postalCode",
|
|
222
|
+
kind: "text",
|
|
223
|
+
group: "address",
|
|
224
|
+
required: true,
|
|
225
|
+
label: { key: "ekyb.postalCode" },
|
|
226
|
+
input: {
|
|
227
|
+
maxLength: 9,
|
|
228
|
+
autofill: "postalCode"
|
|
229
|
+
},
|
|
230
|
+
rules: [{ id: "postalCodeFormat" }]
|
|
231
|
+
}
|
|
232
|
+
],
|
|
233
|
+
collections: [{
|
|
234
|
+
id: "ubos",
|
|
235
|
+
group: "ubos",
|
|
236
|
+
min: 1,
|
|
237
|
+
max: 8,
|
|
238
|
+
fields: [{
|
|
239
|
+
name: "name",
|
|
240
|
+
kind: "text",
|
|
241
|
+
group: "ubos",
|
|
242
|
+
required: true,
|
|
243
|
+
label: { key: "ekyb.uboName" }
|
|
244
|
+
}, {
|
|
245
|
+
name: "surname",
|
|
246
|
+
kind: "text",
|
|
247
|
+
group: "ubos",
|
|
248
|
+
required: true,
|
|
249
|
+
label: { key: "ekyb.uboSurname" }
|
|
250
|
+
}],
|
|
251
|
+
payload: {
|
|
252
|
+
key: "uboNames",
|
|
253
|
+
join: ["name", "surname"]
|
|
254
|
+
}
|
|
255
|
+
}],
|
|
256
|
+
submit: {
|
|
257
|
+
static: { plugins: ["ekyb"] },
|
|
258
|
+
context: { country: "country" }
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
"ekyb/CM": {
|
|
262
|
+
schemaVersion: 1,
|
|
263
|
+
vocabulary: "1.0",
|
|
264
|
+
id: "ekyb/CM",
|
|
265
|
+
module: "ekyb",
|
|
266
|
+
country: "CM",
|
|
267
|
+
availableIn: ["development", "staging"],
|
|
268
|
+
fields: [
|
|
269
|
+
{
|
|
270
|
+
name: "businessName",
|
|
271
|
+
kind: "text",
|
|
272
|
+
group: "businessName",
|
|
273
|
+
required: true,
|
|
274
|
+
label: { key: "ekyb.businessName" },
|
|
275
|
+
input: { autofill: "organization" }
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
name: "taxId",
|
|
279
|
+
kind: "text",
|
|
280
|
+
group: "taxId",
|
|
281
|
+
required: true,
|
|
282
|
+
label: { key: "ekyb.taxId" }
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
name: "street",
|
|
286
|
+
kind: "text",
|
|
287
|
+
group: "address",
|
|
288
|
+
required: true,
|
|
289
|
+
widget: "addressSearch",
|
|
290
|
+
label: { key: "ekyb.street" },
|
|
291
|
+
input: { autofill: "addressLine1" }
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
name: "houseNo",
|
|
295
|
+
kind: "text",
|
|
296
|
+
group: "address",
|
|
297
|
+
required: true,
|
|
298
|
+
label: { key: "ekyb.houseNo" }
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
name: "addressLine2",
|
|
302
|
+
kind: "text",
|
|
303
|
+
group: "address",
|
|
304
|
+
label: { key: "ekyb.addressLine2" },
|
|
305
|
+
input: { autofill: "addressLine2" }
|
|
306
|
+
},
|
|
307
|
+
{
|
|
308
|
+
name: "city",
|
|
309
|
+
kind: "text",
|
|
310
|
+
group: "address",
|
|
311
|
+
required: true,
|
|
312
|
+
label: { key: "ekyb.city" },
|
|
313
|
+
input: { autofill: "addressLevel2" }
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
name: "state",
|
|
317
|
+
kind: "text",
|
|
318
|
+
group: "address",
|
|
319
|
+
required: true,
|
|
320
|
+
label: { key: "ekyb.state" },
|
|
321
|
+
input: { autofill: "addressLevel1" }
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
name: "postalCode",
|
|
325
|
+
kind: "text",
|
|
326
|
+
group: "address",
|
|
327
|
+
required: true,
|
|
328
|
+
label: { key: "ekyb.postalCode" },
|
|
329
|
+
input: {
|
|
330
|
+
maxLength: 8,
|
|
331
|
+
autofill: "postalCode"
|
|
332
|
+
},
|
|
333
|
+
rules: [{ id: "postalCodeFormat" }]
|
|
334
|
+
}
|
|
335
|
+
],
|
|
336
|
+
collections: [{
|
|
337
|
+
id: "ubos",
|
|
338
|
+
group: "ubos",
|
|
339
|
+
min: 1,
|
|
340
|
+
max: 8,
|
|
341
|
+
fields: [{
|
|
342
|
+
name: "name",
|
|
343
|
+
kind: "text",
|
|
344
|
+
group: "ubos",
|
|
345
|
+
required: true,
|
|
346
|
+
label: { key: "ekyb.uboName" }
|
|
347
|
+
}, {
|
|
348
|
+
name: "surname",
|
|
349
|
+
kind: "text",
|
|
350
|
+
group: "ubos",
|
|
351
|
+
required: true,
|
|
352
|
+
label: { key: "ekyb.uboSurname" }
|
|
353
|
+
}],
|
|
354
|
+
payload: {
|
|
355
|
+
key: "uboNames",
|
|
356
|
+
join: ["name", "surname"]
|
|
357
|
+
}
|
|
358
|
+
}],
|
|
359
|
+
submit: {
|
|
360
|
+
static: { plugins: ["ekyb"] },
|
|
361
|
+
context: { country: "country" }
|
|
362
|
+
}
|
|
363
|
+
},
|
|
364
|
+
"ekyb/CN": {
|
|
365
|
+
schemaVersion: 1,
|
|
366
|
+
vocabulary: "1.0",
|
|
367
|
+
id: "ekyb/CN",
|
|
368
|
+
module: "ekyb",
|
|
369
|
+
country: "CN",
|
|
370
|
+
fields: [
|
|
371
|
+
{
|
|
372
|
+
name: "businessName",
|
|
373
|
+
kind: "text",
|
|
374
|
+
group: "businessName",
|
|
375
|
+
required: true,
|
|
376
|
+
label: { key: "ekyb.businessName" },
|
|
377
|
+
input: { autofill: "organization" }
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
name: "taxId",
|
|
381
|
+
kind: "text",
|
|
382
|
+
group: "taxId",
|
|
383
|
+
required: true,
|
|
384
|
+
label: { key: "verification.labels.prcId" }
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
name: "street",
|
|
388
|
+
kind: "text",
|
|
389
|
+
group: "address",
|
|
390
|
+
required: true,
|
|
391
|
+
widget: "addressSearch",
|
|
392
|
+
label: { key: "ekyb.street" },
|
|
393
|
+
input: { autofill: "addressLine1" }
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
name: "houseNo",
|
|
397
|
+
kind: "text",
|
|
398
|
+
group: "address",
|
|
399
|
+
required: true,
|
|
400
|
+
label: { key: "ekyb.houseNo" }
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
name: "addressLine2",
|
|
404
|
+
kind: "text",
|
|
405
|
+
group: "address",
|
|
406
|
+
label: { key: "ekyb.addressLine2" },
|
|
407
|
+
input: { autofill: "addressLine2" }
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
name: "city",
|
|
411
|
+
kind: "text",
|
|
412
|
+
group: "address",
|
|
413
|
+
required: true,
|
|
414
|
+
label: { key: "ekyb.city" },
|
|
415
|
+
input: { autofill: "addressLevel2" }
|
|
416
|
+
},
|
|
417
|
+
{
|
|
418
|
+
name: "state",
|
|
419
|
+
kind: "text",
|
|
420
|
+
group: "address",
|
|
421
|
+
required: true,
|
|
422
|
+
label: { key: "ekyb.state" },
|
|
423
|
+
input: { autofill: "addressLevel1" }
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
name: "postalCode",
|
|
427
|
+
kind: "text",
|
|
428
|
+
group: "address",
|
|
429
|
+
required: true,
|
|
430
|
+
label: { key: "ekyb.postalCode" },
|
|
431
|
+
input: {
|
|
432
|
+
maxLength: 6,
|
|
433
|
+
autofill: "postalCode"
|
|
434
|
+
},
|
|
435
|
+
rules: [{ id: "postalCodeFormat" }]
|
|
436
|
+
}
|
|
437
|
+
],
|
|
438
|
+
collections: [{
|
|
439
|
+
id: "ubos",
|
|
440
|
+
group: "ubos",
|
|
441
|
+
min: 1,
|
|
442
|
+
max: 8,
|
|
443
|
+
fields: [{
|
|
444
|
+
name: "name",
|
|
445
|
+
kind: "text",
|
|
446
|
+
group: "ubos",
|
|
447
|
+
required: true,
|
|
448
|
+
label: { key: "ekyb.uboName" }
|
|
449
|
+
}, {
|
|
450
|
+
name: "surname",
|
|
451
|
+
kind: "text",
|
|
452
|
+
group: "ubos",
|
|
453
|
+
required: true,
|
|
454
|
+
label: { key: "ekyb.uboSurname" }
|
|
455
|
+
}],
|
|
456
|
+
payload: {
|
|
457
|
+
key: "uboNames",
|
|
458
|
+
join: ["name", "surname"]
|
|
459
|
+
}
|
|
460
|
+
}],
|
|
461
|
+
submit: {
|
|
462
|
+
static: { plugins: ["ekyb"] },
|
|
463
|
+
context: { country: "country" }
|
|
464
|
+
}
|
|
465
|
+
},
|
|
466
|
+
"ekyb/CO": {
|
|
467
|
+
schemaVersion: 1,
|
|
468
|
+
vocabulary: "1.0",
|
|
469
|
+
id: "ekyb/CO",
|
|
470
|
+
module: "ekyb",
|
|
471
|
+
country: "CO",
|
|
472
|
+
availableIn: ["development", "staging"],
|
|
473
|
+
fields: [
|
|
474
|
+
{
|
|
475
|
+
name: "businessName",
|
|
476
|
+
kind: "text",
|
|
477
|
+
group: "businessName",
|
|
478
|
+
required: true,
|
|
479
|
+
label: { key: "ekyb.businessName" },
|
|
480
|
+
input: { autofill: "organization" }
|
|
481
|
+
},
|
|
482
|
+
{
|
|
483
|
+
name: "taxId",
|
|
484
|
+
kind: "text",
|
|
485
|
+
group: "taxId",
|
|
486
|
+
required: true,
|
|
487
|
+
label: { key: "ekyb.taxId" },
|
|
488
|
+
rules: [{
|
|
489
|
+
id: "charTemplate",
|
|
490
|
+
params: { templates: [
|
|
491
|
+
"999999999",
|
|
492
|
+
"9999999999",
|
|
493
|
+
"999999999-9",
|
|
494
|
+
"999.999.999",
|
|
495
|
+
"999.999.999-9"
|
|
496
|
+
] }
|
|
497
|
+
}]
|
|
498
|
+
},
|
|
499
|
+
{
|
|
500
|
+
name: "street",
|
|
501
|
+
kind: "text",
|
|
502
|
+
group: "address",
|
|
503
|
+
required: true,
|
|
504
|
+
widget: "addressSearch",
|
|
505
|
+
label: { key: "ekyb.street" },
|
|
506
|
+
input: { autofill: "addressLine1" }
|
|
507
|
+
},
|
|
508
|
+
{
|
|
509
|
+
name: "houseNo",
|
|
510
|
+
kind: "text",
|
|
511
|
+
group: "address",
|
|
512
|
+
required: true,
|
|
513
|
+
label: { key: "ekyb.houseNo" }
|
|
514
|
+
},
|
|
515
|
+
{
|
|
516
|
+
name: "addressLine2",
|
|
517
|
+
kind: "text",
|
|
518
|
+
group: "address",
|
|
519
|
+
label: { key: "ekyb.addressLine2" },
|
|
520
|
+
input: { autofill: "addressLine2" }
|
|
521
|
+
},
|
|
522
|
+
{
|
|
523
|
+
name: "city",
|
|
524
|
+
kind: "text",
|
|
525
|
+
group: "address",
|
|
526
|
+
required: true,
|
|
527
|
+
label: { key: "ekyb.city" },
|
|
528
|
+
input: { autofill: "addressLevel2" }
|
|
529
|
+
},
|
|
530
|
+
{
|
|
531
|
+
name: "state",
|
|
532
|
+
kind: "text",
|
|
533
|
+
group: "address",
|
|
534
|
+
required: true,
|
|
535
|
+
label: { key: "ekyb.state" },
|
|
536
|
+
input: { autofill: "addressLevel1" }
|
|
537
|
+
},
|
|
538
|
+
{
|
|
539
|
+
name: "postalCode",
|
|
540
|
+
kind: "text",
|
|
541
|
+
group: "address",
|
|
542
|
+
label: { key: "ekyb.postalCode" },
|
|
543
|
+
input: {
|
|
544
|
+
maxLength: 6,
|
|
545
|
+
autofill: "postalCode"
|
|
546
|
+
},
|
|
547
|
+
rules: [{ id: "postalCodeFormat" }]
|
|
548
|
+
}
|
|
549
|
+
],
|
|
550
|
+
collections: [{
|
|
551
|
+
id: "ubos",
|
|
552
|
+
group: "ubos",
|
|
553
|
+
min: 1,
|
|
554
|
+
max: 8,
|
|
555
|
+
fields: [{
|
|
556
|
+
name: "name",
|
|
557
|
+
kind: "text",
|
|
558
|
+
group: "ubos",
|
|
559
|
+
required: true,
|
|
560
|
+
label: { key: "ekyb.uboName" }
|
|
561
|
+
}, {
|
|
562
|
+
name: "surname",
|
|
563
|
+
kind: "text",
|
|
564
|
+
group: "ubos",
|
|
565
|
+
required: true,
|
|
566
|
+
label: { key: "ekyb.uboSurname" }
|
|
567
|
+
}],
|
|
568
|
+
payload: {
|
|
569
|
+
key: "uboNames",
|
|
570
|
+
join: ["name", "surname"]
|
|
571
|
+
}
|
|
572
|
+
}],
|
|
573
|
+
submit: {
|
|
574
|
+
static: { plugins: ["ekyb"] },
|
|
575
|
+
context: { country: "country" }
|
|
576
|
+
}
|
|
577
|
+
},
|
|
578
|
+
"ekyb/DE": {
|
|
579
|
+
schemaVersion: 1,
|
|
580
|
+
vocabulary: "1.0",
|
|
581
|
+
id: "ekyb/DE",
|
|
582
|
+
module: "ekyb",
|
|
583
|
+
country: "DE",
|
|
584
|
+
fields: [
|
|
585
|
+
{
|
|
586
|
+
name: "businessName",
|
|
587
|
+
kind: "text",
|
|
588
|
+
group: "businessName",
|
|
589
|
+
required: true,
|
|
590
|
+
label: { key: "ekyb.businessName" },
|
|
591
|
+
input: { autofill: "organization" }
|
|
592
|
+
},
|
|
593
|
+
{
|
|
594
|
+
name: "taxId",
|
|
595
|
+
kind: "text",
|
|
596
|
+
group: "taxId",
|
|
597
|
+
required: true,
|
|
598
|
+
label: { key: "ekyb.taxId" }
|
|
599
|
+
},
|
|
600
|
+
{
|
|
601
|
+
name: "street",
|
|
602
|
+
kind: "text",
|
|
603
|
+
group: "address",
|
|
604
|
+
required: true,
|
|
605
|
+
widget: "addressSearch",
|
|
606
|
+
label: { key: "ekyb.street" },
|
|
607
|
+
input: { autofill: "addressLine1" }
|
|
608
|
+
},
|
|
609
|
+
{
|
|
610
|
+
name: "houseNo",
|
|
611
|
+
kind: "text",
|
|
612
|
+
group: "address",
|
|
613
|
+
required: true,
|
|
614
|
+
label: { key: "ekyb.houseNo" }
|
|
615
|
+
},
|
|
616
|
+
{
|
|
617
|
+
name: "addressLine2",
|
|
618
|
+
kind: "text",
|
|
619
|
+
group: "address",
|
|
620
|
+
label: { key: "ekyb.addressLine2" },
|
|
621
|
+
input: { autofill: "addressLine2" }
|
|
622
|
+
},
|
|
623
|
+
{
|
|
624
|
+
name: "city",
|
|
625
|
+
kind: "text",
|
|
626
|
+
group: "address",
|
|
627
|
+
required: true,
|
|
628
|
+
label: { key: "ekyb.city" },
|
|
629
|
+
input: { autofill: "addressLevel2" }
|
|
630
|
+
},
|
|
631
|
+
{
|
|
632
|
+
name: "state",
|
|
633
|
+
kind: "text",
|
|
634
|
+
group: "address",
|
|
635
|
+
required: true,
|
|
636
|
+
label: { key: "ekyb.state" },
|
|
637
|
+
input: { autofill: "addressLevel1" }
|
|
638
|
+
},
|
|
639
|
+
{
|
|
640
|
+
name: "postalCode",
|
|
641
|
+
kind: "text",
|
|
642
|
+
group: "address",
|
|
643
|
+
required: true,
|
|
644
|
+
label: { key: "ekyb.postalCode" },
|
|
645
|
+
input: {
|
|
646
|
+
maxLength: 5,
|
|
647
|
+
autofill: "postalCode"
|
|
648
|
+
},
|
|
649
|
+
rules: [{ id: "postalCodeFormat" }]
|
|
650
|
+
}
|
|
651
|
+
],
|
|
652
|
+
collections: [{
|
|
653
|
+
id: "ubos",
|
|
654
|
+
group: "ubos",
|
|
655
|
+
min: 1,
|
|
656
|
+
max: 8,
|
|
657
|
+
fields: [{
|
|
658
|
+
name: "name",
|
|
659
|
+
kind: "text",
|
|
660
|
+
group: "ubos",
|
|
661
|
+
required: true,
|
|
662
|
+
label: { key: "ekyb.uboName" }
|
|
663
|
+
}, {
|
|
664
|
+
name: "surname",
|
|
665
|
+
kind: "text",
|
|
666
|
+
group: "ubos",
|
|
667
|
+
required: true,
|
|
668
|
+
label: { key: "ekyb.uboSurname" }
|
|
669
|
+
}],
|
|
670
|
+
payload: {
|
|
671
|
+
key: "uboNames",
|
|
672
|
+
join: ["name", "surname"]
|
|
673
|
+
}
|
|
674
|
+
}],
|
|
675
|
+
submit: {
|
|
676
|
+
static: { plugins: ["ekyb"] },
|
|
677
|
+
context: { country: "country" }
|
|
678
|
+
}
|
|
679
|
+
},
|
|
680
|
+
"ekyb/ES": {
|
|
681
|
+
schemaVersion: 1,
|
|
682
|
+
vocabulary: "1.0",
|
|
683
|
+
id: "ekyb/ES",
|
|
684
|
+
module: "ekyb",
|
|
685
|
+
country: "ES",
|
|
686
|
+
fields: [
|
|
687
|
+
{
|
|
688
|
+
name: "businessName",
|
|
689
|
+
kind: "text",
|
|
690
|
+
group: "businessName",
|
|
691
|
+
required: true,
|
|
692
|
+
label: { key: "ekyb.businessName" },
|
|
693
|
+
input: { autofill: "organization" }
|
|
694
|
+
},
|
|
695
|
+
{
|
|
696
|
+
name: "taxId",
|
|
697
|
+
kind: "text",
|
|
698
|
+
group: "taxId",
|
|
699
|
+
required: true,
|
|
700
|
+
label: { key: "ekyb.taxId" }
|
|
701
|
+
},
|
|
702
|
+
{
|
|
703
|
+
name: "street",
|
|
704
|
+
kind: "text",
|
|
705
|
+
group: "address",
|
|
706
|
+
required: true,
|
|
707
|
+
widget: "addressSearch",
|
|
708
|
+
label: { key: "ekyb.street" },
|
|
709
|
+
input: { autofill: "addressLine1" }
|
|
710
|
+
},
|
|
711
|
+
{
|
|
712
|
+
name: "houseNo",
|
|
713
|
+
kind: "text",
|
|
714
|
+
group: "address",
|
|
715
|
+
required: true,
|
|
716
|
+
label: { key: "ekyb.houseNo" }
|
|
717
|
+
},
|
|
718
|
+
{
|
|
719
|
+
name: "addressLine2",
|
|
720
|
+
kind: "text",
|
|
721
|
+
group: "address",
|
|
722
|
+
label: { key: "ekyb.addressLine2" },
|
|
723
|
+
input: { autofill: "addressLine2" }
|
|
724
|
+
},
|
|
725
|
+
{
|
|
726
|
+
name: "city",
|
|
727
|
+
kind: "text",
|
|
728
|
+
group: "address",
|
|
729
|
+
required: true,
|
|
730
|
+
label: { key: "ekyb.city" },
|
|
731
|
+
input: { autofill: "addressLevel2" }
|
|
732
|
+
},
|
|
733
|
+
{
|
|
734
|
+
name: "state",
|
|
735
|
+
kind: "text",
|
|
736
|
+
group: "address",
|
|
737
|
+
required: true,
|
|
738
|
+
label: { key: "ekyb.state" },
|
|
739
|
+
input: { autofill: "addressLevel1" }
|
|
740
|
+
},
|
|
741
|
+
{
|
|
742
|
+
name: "postalCode",
|
|
743
|
+
kind: "text",
|
|
744
|
+
group: "address",
|
|
745
|
+
required: true,
|
|
746
|
+
label: { key: "ekyb.postalCode" },
|
|
747
|
+
input: {
|
|
748
|
+
maxLength: 5,
|
|
749
|
+
autofill: "postalCode"
|
|
750
|
+
},
|
|
751
|
+
rules: [{ id: "postalCodeFormat" }]
|
|
752
|
+
}
|
|
753
|
+
],
|
|
754
|
+
collections: [{
|
|
755
|
+
id: "ubos",
|
|
756
|
+
group: "ubos",
|
|
757
|
+
min: 1,
|
|
758
|
+
max: 8,
|
|
759
|
+
fields: [{
|
|
760
|
+
name: "name",
|
|
761
|
+
kind: "text",
|
|
762
|
+
group: "ubos",
|
|
763
|
+
required: true,
|
|
764
|
+
label: { key: "ekyb.uboName" }
|
|
765
|
+
}, {
|
|
766
|
+
name: "surname",
|
|
767
|
+
kind: "text",
|
|
768
|
+
group: "ubos",
|
|
769
|
+
required: true,
|
|
770
|
+
label: { key: "ekyb.uboSurname" }
|
|
771
|
+
}],
|
|
772
|
+
payload: {
|
|
773
|
+
key: "uboNames",
|
|
774
|
+
join: ["name", "surname"]
|
|
775
|
+
}
|
|
776
|
+
}],
|
|
777
|
+
submit: {
|
|
778
|
+
static: { plugins: ["ekyb"] },
|
|
779
|
+
context: { country: "country" }
|
|
780
|
+
}
|
|
781
|
+
},
|
|
782
|
+
"ekyb/FR": {
|
|
783
|
+
schemaVersion: 1,
|
|
784
|
+
vocabulary: "1.0",
|
|
785
|
+
id: "ekyb/FR",
|
|
786
|
+
module: "ekyb",
|
|
787
|
+
country: "FR",
|
|
788
|
+
fields: [
|
|
789
|
+
{
|
|
790
|
+
name: "businessName",
|
|
791
|
+
kind: "text",
|
|
792
|
+
group: "businessName",
|
|
793
|
+
required: true,
|
|
794
|
+
label: { key: "ekyb.businessName" },
|
|
795
|
+
input: { autofill: "organization" }
|
|
796
|
+
},
|
|
797
|
+
{
|
|
798
|
+
name: "taxId",
|
|
799
|
+
kind: "text",
|
|
800
|
+
group: "taxId",
|
|
801
|
+
required: true,
|
|
802
|
+
label: { key: "ekyb.taxId" }
|
|
803
|
+
},
|
|
804
|
+
{
|
|
805
|
+
name: "street",
|
|
806
|
+
kind: "text",
|
|
807
|
+
group: "address",
|
|
808
|
+
required: true,
|
|
809
|
+
widget: "addressSearch",
|
|
810
|
+
label: { key: "ekyb.street" },
|
|
811
|
+
input: { autofill: "addressLine1" }
|
|
812
|
+
},
|
|
813
|
+
{
|
|
814
|
+
name: "houseNo",
|
|
815
|
+
kind: "text",
|
|
816
|
+
group: "address",
|
|
817
|
+
required: true,
|
|
818
|
+
label: { key: "ekyb.houseNo" }
|
|
819
|
+
},
|
|
820
|
+
{
|
|
821
|
+
name: "addressLine2",
|
|
822
|
+
kind: "text",
|
|
823
|
+
group: "address",
|
|
824
|
+
label: { key: "ekyb.addressLine2" },
|
|
825
|
+
input: { autofill: "addressLine2" }
|
|
826
|
+
},
|
|
827
|
+
{
|
|
828
|
+
name: "city",
|
|
829
|
+
kind: "text",
|
|
830
|
+
group: "address",
|
|
831
|
+
required: true,
|
|
832
|
+
label: { key: "ekyb.city" },
|
|
833
|
+
input: { autofill: "addressLevel2" }
|
|
834
|
+
},
|
|
835
|
+
{
|
|
836
|
+
name: "state",
|
|
837
|
+
kind: "text",
|
|
838
|
+
group: "address",
|
|
839
|
+
required: true,
|
|
840
|
+
label: { key: "ekyb.state" },
|
|
841
|
+
input: { autofill: "addressLevel1" }
|
|
842
|
+
},
|
|
843
|
+
{
|
|
844
|
+
name: "postalCode",
|
|
845
|
+
kind: "text",
|
|
846
|
+
group: "address",
|
|
847
|
+
required: true,
|
|
848
|
+
label: { key: "ekyb.postalCode" },
|
|
849
|
+
input: {
|
|
850
|
+
maxLength: 5,
|
|
851
|
+
autofill: "postalCode"
|
|
852
|
+
},
|
|
853
|
+
rules: [{ id: "postalCodeFormat" }]
|
|
854
|
+
}
|
|
855
|
+
],
|
|
856
|
+
collections: [{
|
|
857
|
+
id: "ubos",
|
|
858
|
+
group: "ubos",
|
|
859
|
+
min: 1,
|
|
860
|
+
max: 8,
|
|
861
|
+
fields: [{
|
|
862
|
+
name: "name",
|
|
863
|
+
kind: "text",
|
|
864
|
+
group: "ubos",
|
|
865
|
+
required: true,
|
|
866
|
+
label: { key: "ekyb.uboName" }
|
|
867
|
+
}, {
|
|
868
|
+
name: "surname",
|
|
869
|
+
kind: "text",
|
|
870
|
+
group: "ubos",
|
|
871
|
+
required: true,
|
|
872
|
+
label: { key: "ekyb.uboSurname" }
|
|
873
|
+
}],
|
|
874
|
+
payload: {
|
|
875
|
+
key: "uboNames",
|
|
876
|
+
join: ["name", "surname"]
|
|
877
|
+
}
|
|
878
|
+
}],
|
|
879
|
+
submit: {
|
|
880
|
+
static: { plugins: ["ekyb"] },
|
|
881
|
+
context: { country: "country" }
|
|
882
|
+
}
|
|
883
|
+
},
|
|
884
|
+
"ekyb/GB": {
|
|
885
|
+
schemaVersion: 1,
|
|
886
|
+
vocabulary: "1.0",
|
|
887
|
+
id: "ekyb/GB",
|
|
888
|
+
module: "ekyb",
|
|
889
|
+
country: "GB",
|
|
890
|
+
fields: [
|
|
891
|
+
{
|
|
892
|
+
name: "businessName",
|
|
893
|
+
kind: "text",
|
|
894
|
+
group: "businessName",
|
|
895
|
+
required: true,
|
|
896
|
+
label: { key: "ekyb.businessName" },
|
|
897
|
+
input: { autofill: "organization" }
|
|
898
|
+
},
|
|
899
|
+
{
|
|
900
|
+
name: "taxId",
|
|
901
|
+
kind: "text",
|
|
902
|
+
group: "taxId",
|
|
903
|
+
required: true,
|
|
904
|
+
label: { key: "ekyb.taxId" }
|
|
905
|
+
},
|
|
906
|
+
{
|
|
907
|
+
name: "street",
|
|
908
|
+
kind: "text",
|
|
909
|
+
group: "address",
|
|
910
|
+
required: true,
|
|
911
|
+
widget: "addressSearch",
|
|
912
|
+
label: { key: "ekyb.street" },
|
|
913
|
+
input: { autofill: "addressLine1" }
|
|
914
|
+
},
|
|
915
|
+
{
|
|
916
|
+
name: "houseNo",
|
|
917
|
+
kind: "text",
|
|
918
|
+
group: "address",
|
|
919
|
+
required: true,
|
|
920
|
+
label: { key: "ekyb.houseNo" }
|
|
921
|
+
},
|
|
922
|
+
{
|
|
923
|
+
name: "addressLine2",
|
|
924
|
+
kind: "text",
|
|
925
|
+
group: "address",
|
|
926
|
+
label: { key: "ekyb.addressLine2" },
|
|
927
|
+
input: { autofill: "addressLine2" }
|
|
928
|
+
},
|
|
929
|
+
{
|
|
930
|
+
name: "city",
|
|
931
|
+
kind: "text",
|
|
932
|
+
group: "address",
|
|
933
|
+
required: true,
|
|
934
|
+
label: { key: "ekyb.city" },
|
|
935
|
+
input: { autofill: "addressLevel2" }
|
|
936
|
+
},
|
|
937
|
+
{
|
|
938
|
+
name: "postalCode",
|
|
939
|
+
kind: "text",
|
|
940
|
+
group: "address",
|
|
941
|
+
required: true,
|
|
942
|
+
label: { key: "ekyb.postalCode" },
|
|
943
|
+
input: {
|
|
944
|
+
maxLength: 8,
|
|
945
|
+
autofill: "postalCode"
|
|
946
|
+
},
|
|
947
|
+
rules: [{ id: "postalCodeFormat" }]
|
|
948
|
+
}
|
|
949
|
+
],
|
|
950
|
+
collections: [{
|
|
951
|
+
id: "ubos",
|
|
952
|
+
group: "ubos",
|
|
953
|
+
min: 1,
|
|
954
|
+
max: 8,
|
|
955
|
+
fields: [{
|
|
956
|
+
name: "name",
|
|
957
|
+
kind: "text",
|
|
958
|
+
group: "ubos",
|
|
959
|
+
required: true,
|
|
960
|
+
label: { key: "ekyb.uboName" }
|
|
961
|
+
}, {
|
|
962
|
+
name: "surname",
|
|
963
|
+
kind: "text",
|
|
964
|
+
group: "ubos",
|
|
965
|
+
required: true,
|
|
966
|
+
label: { key: "ekyb.uboSurname" }
|
|
967
|
+
}],
|
|
968
|
+
payload: {
|
|
969
|
+
key: "uboNames",
|
|
970
|
+
join: ["name", "surname"]
|
|
971
|
+
}
|
|
972
|
+
}],
|
|
973
|
+
submit: {
|
|
974
|
+
static: { plugins: ["ekyb"] },
|
|
975
|
+
context: { country: "country" }
|
|
976
|
+
}
|
|
977
|
+
},
|
|
978
|
+
"ekyb/IL": {
|
|
979
|
+
schemaVersion: 1,
|
|
980
|
+
vocabulary: "1.0",
|
|
981
|
+
id: "ekyb/IL",
|
|
982
|
+
module: "ekyb",
|
|
983
|
+
country: "IL",
|
|
984
|
+
fields: [
|
|
985
|
+
{
|
|
986
|
+
name: "businessName",
|
|
987
|
+
kind: "text",
|
|
988
|
+
group: "businessName",
|
|
989
|
+
required: true,
|
|
990
|
+
label: { key: "ekyb.businessName" },
|
|
991
|
+
input: { autofill: "organization" }
|
|
992
|
+
},
|
|
993
|
+
{
|
|
994
|
+
name: "taxId",
|
|
995
|
+
kind: "text",
|
|
996
|
+
group: "taxId",
|
|
997
|
+
required: true,
|
|
998
|
+
label: { key: "ekyb.taxId" }
|
|
999
|
+
},
|
|
1000
|
+
{
|
|
1001
|
+
name: "street",
|
|
1002
|
+
kind: "text",
|
|
1003
|
+
group: "address",
|
|
1004
|
+
required: true,
|
|
1005
|
+
widget: "addressSearch",
|
|
1006
|
+
label: { key: "ekyb.street" },
|
|
1007
|
+
input: { autofill: "addressLine1" }
|
|
1008
|
+
},
|
|
1009
|
+
{
|
|
1010
|
+
name: "houseNo",
|
|
1011
|
+
kind: "text",
|
|
1012
|
+
group: "address",
|
|
1013
|
+
required: true,
|
|
1014
|
+
label: { key: "ekyb.houseNo" }
|
|
1015
|
+
},
|
|
1016
|
+
{
|
|
1017
|
+
name: "addressLine2",
|
|
1018
|
+
kind: "text",
|
|
1019
|
+
group: "address",
|
|
1020
|
+
label: { key: "ekyb.addressLine2" },
|
|
1021
|
+
input: { autofill: "addressLine2" }
|
|
1022
|
+
},
|
|
1023
|
+
{
|
|
1024
|
+
name: "city",
|
|
1025
|
+
kind: "text",
|
|
1026
|
+
group: "address",
|
|
1027
|
+
required: true,
|
|
1028
|
+
label: { key: "ekyb.city" },
|
|
1029
|
+
input: { autofill: "addressLevel2" }
|
|
1030
|
+
},
|
|
1031
|
+
{
|
|
1032
|
+
name: "state",
|
|
1033
|
+
kind: "text",
|
|
1034
|
+
group: "address",
|
|
1035
|
+
required: true,
|
|
1036
|
+
label: { key: "ekyb.state" },
|
|
1037
|
+
input: { autofill: "addressLevel1" }
|
|
1038
|
+
},
|
|
1039
|
+
{
|
|
1040
|
+
name: "postalCode",
|
|
1041
|
+
kind: "text",
|
|
1042
|
+
group: "address",
|
|
1043
|
+
required: true,
|
|
1044
|
+
label: { key: "ekyb.postalCode" },
|
|
1045
|
+
input: {
|
|
1046
|
+
maxLength: 7,
|
|
1047
|
+
autofill: "postalCode"
|
|
1048
|
+
},
|
|
1049
|
+
rules: [{ id: "postalCodeFormat" }]
|
|
1050
|
+
}
|
|
1051
|
+
],
|
|
1052
|
+
collections: [{
|
|
1053
|
+
id: "ubos",
|
|
1054
|
+
group: "ubos",
|
|
1055
|
+
min: 1,
|
|
1056
|
+
max: 8,
|
|
1057
|
+
fields: [{
|
|
1058
|
+
name: "name",
|
|
1059
|
+
kind: "text",
|
|
1060
|
+
group: "ubos",
|
|
1061
|
+
required: true,
|
|
1062
|
+
label: { key: "ekyb.uboName" }
|
|
1063
|
+
}, {
|
|
1064
|
+
name: "surname",
|
|
1065
|
+
kind: "text",
|
|
1066
|
+
group: "ubos",
|
|
1067
|
+
required: true,
|
|
1068
|
+
label: { key: "ekyb.uboSurname" }
|
|
1069
|
+
}],
|
|
1070
|
+
payload: {
|
|
1071
|
+
key: "uboNames",
|
|
1072
|
+
join: ["name", "surname"]
|
|
1073
|
+
}
|
|
1074
|
+
}],
|
|
1075
|
+
submit: {
|
|
1076
|
+
static: { plugins: ["ekyb"] },
|
|
1077
|
+
context: { country: "country" }
|
|
1078
|
+
}
|
|
1079
|
+
},
|
|
1080
|
+
"ekyb/IT": {
|
|
1081
|
+
schemaVersion: 1,
|
|
1082
|
+
vocabulary: "1.0",
|
|
1083
|
+
id: "ekyb/IT",
|
|
1084
|
+
module: "ekyb",
|
|
1085
|
+
country: "IT",
|
|
1086
|
+
fields: [
|
|
1087
|
+
{
|
|
1088
|
+
name: "businessName",
|
|
1089
|
+
kind: "text",
|
|
1090
|
+
group: "businessName",
|
|
1091
|
+
required: true,
|
|
1092
|
+
label: { key: "ekyb.businessName" },
|
|
1093
|
+
input: { autofill: "organization" }
|
|
1094
|
+
},
|
|
1095
|
+
{
|
|
1096
|
+
name: "taxId",
|
|
1097
|
+
kind: "text",
|
|
1098
|
+
group: "taxId",
|
|
1099
|
+
required: true,
|
|
1100
|
+
label: { key: "ekyb.taxId" }
|
|
1101
|
+
},
|
|
1102
|
+
{
|
|
1103
|
+
name: "street",
|
|
1104
|
+
kind: "text",
|
|
1105
|
+
group: "address",
|
|
1106
|
+
required: true,
|
|
1107
|
+
widget: "addressSearch",
|
|
1108
|
+
label: { key: "ekyb.street" },
|
|
1109
|
+
input: { autofill: "addressLine1" }
|
|
1110
|
+
},
|
|
1111
|
+
{
|
|
1112
|
+
name: "houseNo",
|
|
1113
|
+
kind: "text",
|
|
1114
|
+
group: "address",
|
|
1115
|
+
required: true,
|
|
1116
|
+
label: { key: "ekyb.houseNo" }
|
|
1117
|
+
},
|
|
1118
|
+
{
|
|
1119
|
+
name: "addressLine2",
|
|
1120
|
+
kind: "text",
|
|
1121
|
+
group: "address",
|
|
1122
|
+
label: { key: "ekyb.addressLine2" },
|
|
1123
|
+
input: { autofill: "addressLine2" }
|
|
1124
|
+
},
|
|
1125
|
+
{
|
|
1126
|
+
name: "city",
|
|
1127
|
+
kind: "text",
|
|
1128
|
+
group: "address",
|
|
1129
|
+
required: true,
|
|
1130
|
+
label: { key: "ekyb.city" },
|
|
1131
|
+
input: { autofill: "addressLevel2" }
|
|
1132
|
+
},
|
|
1133
|
+
{
|
|
1134
|
+
name: "state",
|
|
1135
|
+
kind: "text",
|
|
1136
|
+
group: "address",
|
|
1137
|
+
required: true,
|
|
1138
|
+
label: { key: "ekyb.state" },
|
|
1139
|
+
input: { autofill: "addressLevel1" }
|
|
1140
|
+
},
|
|
1141
|
+
{
|
|
1142
|
+
name: "postalCode",
|
|
1143
|
+
kind: "text",
|
|
1144
|
+
group: "address",
|
|
1145
|
+
required: true,
|
|
1146
|
+
label: { key: "ekyb.postalCode" },
|
|
1147
|
+
input: {
|
|
1148
|
+
maxLength: 5,
|
|
1149
|
+
autofill: "postalCode"
|
|
1150
|
+
},
|
|
1151
|
+
rules: [{ id: "postalCodeFormat" }]
|
|
1152
|
+
}
|
|
1153
|
+
],
|
|
1154
|
+
collections: [{
|
|
1155
|
+
id: "ubos",
|
|
1156
|
+
group: "ubos",
|
|
1157
|
+
min: 1,
|
|
1158
|
+
max: 8,
|
|
1159
|
+
fields: [{
|
|
1160
|
+
name: "name",
|
|
1161
|
+
kind: "text",
|
|
1162
|
+
group: "ubos",
|
|
1163
|
+
required: true,
|
|
1164
|
+
label: { key: "ekyb.uboName" }
|
|
1165
|
+
}, {
|
|
1166
|
+
name: "surname",
|
|
1167
|
+
kind: "text",
|
|
1168
|
+
group: "ubos",
|
|
1169
|
+
required: true,
|
|
1170
|
+
label: { key: "ekyb.uboSurname" }
|
|
1171
|
+
}],
|
|
1172
|
+
payload: {
|
|
1173
|
+
key: "uboNames",
|
|
1174
|
+
join: ["name", "surname"]
|
|
1175
|
+
}
|
|
1176
|
+
}],
|
|
1177
|
+
submit: {
|
|
1178
|
+
static: { plugins: ["ekyb"] },
|
|
1179
|
+
context: { country: "country" }
|
|
1180
|
+
}
|
|
1181
|
+
},
|
|
1182
|
+
"ekyb/KE": {
|
|
1183
|
+
schemaVersion: 1,
|
|
1184
|
+
vocabulary: "1.0",
|
|
1185
|
+
id: "ekyb/KE",
|
|
1186
|
+
module: "ekyb",
|
|
1187
|
+
country: "KE",
|
|
1188
|
+
availableIn: ["development", "staging"],
|
|
1189
|
+
fields: [
|
|
1190
|
+
{
|
|
1191
|
+
name: "businessName",
|
|
1192
|
+
kind: "text",
|
|
1193
|
+
group: "businessName",
|
|
1194
|
+
required: true,
|
|
1195
|
+
label: { key: "ekyb.businessName" },
|
|
1196
|
+
input: { autofill: "organization" }
|
|
1197
|
+
},
|
|
1198
|
+
{
|
|
1199
|
+
name: "taxId",
|
|
1200
|
+
kind: "text",
|
|
1201
|
+
group: "taxId",
|
|
1202
|
+
required: true,
|
|
1203
|
+
label: { key: "ekyb.taxId" }
|
|
1204
|
+
},
|
|
1205
|
+
{
|
|
1206
|
+
name: "street",
|
|
1207
|
+
kind: "text",
|
|
1208
|
+
group: "address",
|
|
1209
|
+
required: true,
|
|
1210
|
+
widget: "addressSearch",
|
|
1211
|
+
label: { key: "ekyb.street" },
|
|
1212
|
+
input: { autofill: "addressLine1" }
|
|
1213
|
+
},
|
|
1214
|
+
{
|
|
1215
|
+
name: "houseNo",
|
|
1216
|
+
kind: "text",
|
|
1217
|
+
group: "address",
|
|
1218
|
+
required: true,
|
|
1219
|
+
label: { key: "ekyb.houseNo" }
|
|
1220
|
+
},
|
|
1221
|
+
{
|
|
1222
|
+
name: "addressLine2",
|
|
1223
|
+
kind: "text",
|
|
1224
|
+
group: "address",
|
|
1225
|
+
label: { key: "ekyb.addressLine2" },
|
|
1226
|
+
input: { autofill: "addressLine2" }
|
|
1227
|
+
},
|
|
1228
|
+
{
|
|
1229
|
+
name: "city",
|
|
1230
|
+
kind: "text",
|
|
1231
|
+
group: "address",
|
|
1232
|
+
required: true,
|
|
1233
|
+
label: { key: "ekyb.city" },
|
|
1234
|
+
input: { autofill: "addressLevel2" }
|
|
1235
|
+
},
|
|
1236
|
+
{
|
|
1237
|
+
name: "state",
|
|
1238
|
+
kind: "text",
|
|
1239
|
+
group: "address",
|
|
1240
|
+
required: true,
|
|
1241
|
+
label: { key: "ekyb.state" },
|
|
1242
|
+
input: { autofill: "addressLevel1" }
|
|
1243
|
+
},
|
|
1244
|
+
{
|
|
1245
|
+
name: "postalCode",
|
|
1246
|
+
kind: "text",
|
|
1247
|
+
group: "address",
|
|
1248
|
+
required: true,
|
|
1249
|
+
label: { key: "ekyb.postalCode" },
|
|
1250
|
+
input: {
|
|
1251
|
+
maxLength: 5,
|
|
1252
|
+
autofill: "postalCode"
|
|
1253
|
+
},
|
|
1254
|
+
rules: [{ id: "postalCodeFormat" }]
|
|
1255
|
+
}
|
|
1256
|
+
],
|
|
1257
|
+
collections: [{
|
|
1258
|
+
id: "ubos",
|
|
1259
|
+
group: "ubos",
|
|
1260
|
+
min: 1,
|
|
1261
|
+
max: 8,
|
|
1262
|
+
fields: [{
|
|
1263
|
+
name: "name",
|
|
1264
|
+
kind: "text",
|
|
1265
|
+
group: "ubos",
|
|
1266
|
+
required: true,
|
|
1267
|
+
label: { key: "ekyb.uboName" }
|
|
1268
|
+
}, {
|
|
1269
|
+
name: "surname",
|
|
1270
|
+
kind: "text",
|
|
1271
|
+
group: "ubos",
|
|
1272
|
+
required: true,
|
|
1273
|
+
label: { key: "ekyb.uboSurname" }
|
|
1274
|
+
}],
|
|
1275
|
+
payload: {
|
|
1276
|
+
key: "uboNames",
|
|
1277
|
+
join: ["name", "surname"]
|
|
1278
|
+
}
|
|
1279
|
+
}],
|
|
1280
|
+
submit: {
|
|
1281
|
+
static: { plugins: ["ekyb"] },
|
|
1282
|
+
context: { country: "country" }
|
|
1283
|
+
}
|
|
1284
|
+
},
|
|
1285
|
+
"ekyb/MX": {
|
|
1286
|
+
schemaVersion: 1,
|
|
1287
|
+
vocabulary: "1.0",
|
|
1288
|
+
id: "ekyb/MX",
|
|
1289
|
+
module: "ekyb",
|
|
1290
|
+
country: "MX",
|
|
1291
|
+
fields: [
|
|
1292
|
+
{
|
|
1293
|
+
name: "businessName",
|
|
1294
|
+
kind: "text",
|
|
1295
|
+
group: "businessName",
|
|
1296
|
+
required: true,
|
|
1297
|
+
label: { key: "ekyb.businessName" },
|
|
1298
|
+
input: { autofill: "organization" }
|
|
1299
|
+
},
|
|
1300
|
+
{
|
|
1301
|
+
name: "taxId",
|
|
1302
|
+
kind: "text",
|
|
1303
|
+
group: "taxId",
|
|
1304
|
+
required: true,
|
|
1305
|
+
label: { key: "ekyb.taxId" }
|
|
1306
|
+
},
|
|
1307
|
+
{
|
|
1308
|
+
name: "postalCode",
|
|
1309
|
+
kind: "text",
|
|
1310
|
+
group: "address",
|
|
1311
|
+
required: true,
|
|
1312
|
+
label: { key: "ekyb.postalCode" },
|
|
1313
|
+
input: {
|
|
1314
|
+
maxLength: 5,
|
|
1315
|
+
autofill: "postalCode"
|
|
1316
|
+
},
|
|
1317
|
+
rules: [{ id: "postalCodeFormat" }]
|
|
1318
|
+
}
|
|
1319
|
+
],
|
|
1320
|
+
submit: {
|
|
1321
|
+
static: { plugins: ["ekyb"] },
|
|
1322
|
+
context: { country: "country" }
|
|
1323
|
+
}
|
|
1324
|
+
},
|
|
1325
|
+
"ekyb/NG": {
|
|
1326
|
+
schemaVersion: 1,
|
|
1327
|
+
vocabulary: "1.0",
|
|
1328
|
+
id: "ekyb/NG",
|
|
1329
|
+
module: "ekyb",
|
|
1330
|
+
country: "NG",
|
|
1331
|
+
availableIn: ["development", "staging"],
|
|
1332
|
+
fields: [
|
|
1333
|
+
{
|
|
1334
|
+
name: "businessName",
|
|
1335
|
+
kind: "text",
|
|
1336
|
+
group: "businessName",
|
|
1337
|
+
required: true,
|
|
1338
|
+
label: { key: "ekyb.businessName" },
|
|
1339
|
+
input: { autofill: "organization" }
|
|
1340
|
+
},
|
|
1341
|
+
{
|
|
1342
|
+
name: "taxId",
|
|
1343
|
+
kind: "text",
|
|
1344
|
+
group: "taxId",
|
|
1345
|
+
required: true,
|
|
1346
|
+
label: { key: "ekyb.taxId" }
|
|
1347
|
+
},
|
|
1348
|
+
{
|
|
1349
|
+
name: "street",
|
|
1350
|
+
kind: "text",
|
|
1351
|
+
group: "address",
|
|
1352
|
+
required: true,
|
|
1353
|
+
widget: "addressSearch",
|
|
1354
|
+
label: { key: "ekyb.street" },
|
|
1355
|
+
input: { autofill: "addressLine1" }
|
|
1356
|
+
},
|
|
1357
|
+
{
|
|
1358
|
+
name: "houseNo",
|
|
1359
|
+
kind: "text",
|
|
1360
|
+
group: "address",
|
|
1361
|
+
required: true,
|
|
1362
|
+
label: { key: "ekyb.houseNo" }
|
|
1363
|
+
},
|
|
1364
|
+
{
|
|
1365
|
+
name: "addressLine2",
|
|
1366
|
+
kind: "text",
|
|
1367
|
+
group: "address",
|
|
1368
|
+
label: { key: "ekyb.addressLine2" },
|
|
1369
|
+
input: { autofill: "addressLine2" }
|
|
1370
|
+
},
|
|
1371
|
+
{
|
|
1372
|
+
name: "city",
|
|
1373
|
+
kind: "text",
|
|
1374
|
+
group: "address",
|
|
1375
|
+
required: true,
|
|
1376
|
+
label: { key: "ekyb.city" },
|
|
1377
|
+
input: { autofill: "addressLevel2" }
|
|
1378
|
+
},
|
|
1379
|
+
{
|
|
1380
|
+
name: "state",
|
|
1381
|
+
kind: "text",
|
|
1382
|
+
group: "address",
|
|
1383
|
+
required: true,
|
|
1384
|
+
label: { key: "ekyb.state" },
|
|
1385
|
+
input: { autofill: "addressLevel1" }
|
|
1386
|
+
},
|
|
1387
|
+
{
|
|
1388
|
+
name: "postalCode",
|
|
1389
|
+
kind: "text",
|
|
1390
|
+
group: "address",
|
|
1391
|
+
required: true,
|
|
1392
|
+
label: { key: "ekyb.postalCode" },
|
|
1393
|
+
input: {
|
|
1394
|
+
maxLength: 6,
|
|
1395
|
+
autofill: "postalCode"
|
|
1396
|
+
},
|
|
1397
|
+
rules: [{ id: "postalCodeFormat" }]
|
|
1398
|
+
}
|
|
1399
|
+
],
|
|
1400
|
+
collections: [{
|
|
1401
|
+
id: "ubos",
|
|
1402
|
+
group: "ubos",
|
|
1403
|
+
min: 1,
|
|
1404
|
+
max: 8,
|
|
1405
|
+
fields: [{
|
|
1406
|
+
name: "name",
|
|
1407
|
+
kind: "text",
|
|
1408
|
+
group: "ubos",
|
|
1409
|
+
required: true,
|
|
1410
|
+
label: { key: "ekyb.uboName" }
|
|
1411
|
+
}, {
|
|
1412
|
+
name: "surname",
|
|
1413
|
+
kind: "text",
|
|
1414
|
+
group: "ubos",
|
|
1415
|
+
required: true,
|
|
1416
|
+
label: { key: "ekyb.uboSurname" }
|
|
1417
|
+
}],
|
|
1418
|
+
payload: {
|
|
1419
|
+
key: "uboNames",
|
|
1420
|
+
join: ["name", "surname"]
|
|
1421
|
+
}
|
|
1422
|
+
}],
|
|
1423
|
+
submit: {
|
|
1424
|
+
static: { plugins: ["ekyb"] },
|
|
1425
|
+
context: { country: "country" }
|
|
1426
|
+
}
|
|
1427
|
+
},
|
|
1428
|
+
"ekyb/US": {
|
|
1429
|
+
schemaVersion: 1,
|
|
1430
|
+
vocabulary: "1.0",
|
|
1431
|
+
id: "ekyb/US",
|
|
1432
|
+
module: "ekyb",
|
|
1433
|
+
country: "US",
|
|
1434
|
+
fields: [
|
|
1435
|
+
{
|
|
1436
|
+
name: "businessName",
|
|
1437
|
+
kind: "text",
|
|
1438
|
+
group: "businessName",
|
|
1439
|
+
required: true,
|
|
1440
|
+
label: { key: "ekyb.businessName" },
|
|
1441
|
+
input: { autofill: "organization" }
|
|
1442
|
+
},
|
|
1443
|
+
{
|
|
1444
|
+
name: "taxId",
|
|
1445
|
+
kind: "text",
|
|
1446
|
+
group: "taxId",
|
|
1447
|
+
required: true,
|
|
1448
|
+
label: { key: "ekyb.taxId" }
|
|
1449
|
+
},
|
|
1450
|
+
{
|
|
1451
|
+
name: "street",
|
|
1452
|
+
kind: "text",
|
|
1453
|
+
group: "address",
|
|
1454
|
+
required: true,
|
|
1455
|
+
widget: "addressSearch",
|
|
1456
|
+
label: { key: "ekyb.street" },
|
|
1457
|
+
input: { autofill: "addressLine1" }
|
|
1458
|
+
},
|
|
1459
|
+
{
|
|
1460
|
+
name: "houseNo",
|
|
1461
|
+
kind: "text",
|
|
1462
|
+
group: "address",
|
|
1463
|
+
required: true,
|
|
1464
|
+
label: { key: "ekyb.houseNo" }
|
|
1465
|
+
},
|
|
1466
|
+
{
|
|
1467
|
+
name: "addressLine2",
|
|
1468
|
+
kind: "text",
|
|
1469
|
+
group: "address",
|
|
1470
|
+
label: { key: "ekyb.addressLine2" },
|
|
1471
|
+
input: { autofill: "addressLine2" }
|
|
1472
|
+
},
|
|
1473
|
+
{
|
|
1474
|
+
name: "city",
|
|
1475
|
+
kind: "text",
|
|
1476
|
+
group: "address",
|
|
1477
|
+
required: true,
|
|
1478
|
+
label: { key: "ekyb.city" },
|
|
1479
|
+
input: { autofill: "addressLevel2" }
|
|
1480
|
+
},
|
|
1481
|
+
{
|
|
1482
|
+
name: "state",
|
|
1483
|
+
kind: "choice",
|
|
1484
|
+
group: "address",
|
|
1485
|
+
required: true,
|
|
1486
|
+
widget: "select",
|
|
1487
|
+
label: { key: "ekyb.state" },
|
|
1488
|
+
placeholder: { key: "verification.placeholder.state" },
|
|
1489
|
+
input: { autofill: "addressLevel1" },
|
|
1490
|
+
optionsRef: "US_STATES"
|
|
1491
|
+
},
|
|
1492
|
+
{
|
|
1493
|
+
name: "postalCode",
|
|
1494
|
+
kind: "text",
|
|
1495
|
+
group: "address",
|
|
1496
|
+
required: true,
|
|
1497
|
+
label: { key: "ekyb.postalCode" },
|
|
1498
|
+
input: {
|
|
1499
|
+
maxLength: 10,
|
|
1500
|
+
autofill: "postalCode"
|
|
1501
|
+
},
|
|
1502
|
+
rules: [{ id: "postalCodeFormat" }]
|
|
1503
|
+
}
|
|
1504
|
+
],
|
|
1505
|
+
collections: [{
|
|
1506
|
+
id: "ubos",
|
|
1507
|
+
group: "ubos",
|
|
1508
|
+
min: 1,
|
|
1509
|
+
max: 8,
|
|
1510
|
+
fields: [{
|
|
1511
|
+
name: "name",
|
|
1512
|
+
kind: "text",
|
|
1513
|
+
group: "ubos",
|
|
1514
|
+
required: true,
|
|
1515
|
+
label: { key: "ekyb.uboName" }
|
|
1516
|
+
}, {
|
|
1517
|
+
name: "surname",
|
|
1518
|
+
kind: "text",
|
|
1519
|
+
group: "ubos",
|
|
1520
|
+
required: true,
|
|
1521
|
+
label: { key: "ekyb.uboSurname" }
|
|
1522
|
+
}],
|
|
1523
|
+
payload: {
|
|
1524
|
+
key: "uboNames",
|
|
1525
|
+
join: ["name", "surname"]
|
|
1526
|
+
}
|
|
1527
|
+
}],
|
|
1528
|
+
submit: {
|
|
1529
|
+
static: { plugins: ["ekyb"] },
|
|
1530
|
+
context: { country: "country" }
|
|
1531
|
+
}
|
|
1532
|
+
}
|
|
1533
|
+
};
|
|
1534
|
+
//#endregion
|
|
1535
|
+
//#region src/modules/ekyb/ekybForm.ts
|
|
1536
|
+
/**
|
|
1537
|
+
* eKYB adapter for form definitions.
|
|
1538
|
+
*
|
|
1539
|
+
* Selects the bundled definition for a country, resolves it against the
|
|
1540
|
+
* verification fields from module configuration, and projects the result to
|
|
1541
|
+
* today's public `EkybFieldDef[]` shape. A country without a projectable
|
|
1542
|
+
* definition, or a custom field list that can't be expressed as groups, keeps
|
|
1543
|
+
* the current builder, and so does every country while the form definitions
|
|
1544
|
+
* rollout is off.
|
|
1545
|
+
*/
|
|
1546
|
+
/** eKYB group id → the verification-field entries that turn it on. */
|
|
1547
|
+
const EKYB_GROUP_ENTRIES = {
|
|
1548
|
+
businessName: ["name-user_input"],
|
|
1549
|
+
taxId: ["taxId-user_input"],
|
|
1550
|
+
address: [
|
|
1551
|
+
"street-user_input",
|
|
1552
|
+
"houseNo-user_input",
|
|
1553
|
+
"address2-user_input",
|
|
1554
|
+
"city-user_input",
|
|
1555
|
+
"state-user_input",
|
|
1556
|
+
"postalCode-user_input"
|
|
1557
|
+
],
|
|
1558
|
+
ubos: ["ubos-user_input"]
|
|
1559
|
+
};
|
|
1560
|
+
const KNOWN_ENTRIES = new Set(Object.values(EKYB_GROUP_ENTRIES).flat());
|
|
1561
|
+
const OPTION_LISTS = { US_STATES: usStateOptions };
|
|
1562
|
+
/** Vocabulary rules expressed as today's `EkybValidationRule` objects. */
|
|
1563
|
+
const RULES = {
|
|
1564
|
+
cnpj: () => ({ type: "cnpj" }),
|
|
1565
|
+
postalCodeFormat: (country) => ({
|
|
1566
|
+
type: "postalCodeFormat",
|
|
1567
|
+
country
|
|
1568
|
+
}),
|
|
1569
|
+
charTemplate: (_country, { templates, ignoreCase }) => Array.isArray(templates) && templates.length > 0 && templates.every((t) => typeof t === "string" && t !== "") && (ignoreCase === void 0 || typeof ignoreCase === "boolean") ? {
|
|
1570
|
+
type: "charTemplate",
|
|
1571
|
+
templates: [...templates],
|
|
1572
|
+
...ignoreCase !== void 0 && { ignoreCase }
|
|
1573
|
+
} : void 0
|
|
1574
|
+
};
|
|
1575
|
+
const EKYB_SUPPORTED_IDS = {
|
|
1576
|
+
schemaVersions: [1],
|
|
1577
|
+
vocabulary: "1.0",
|
|
1578
|
+
kinds: /* @__PURE__ */ new Set(["text", "choice"]),
|
|
1579
|
+
groups: new Set(Object.keys(EKYB_GROUP_ENTRIES)),
|
|
1580
|
+
rules: new Set(Object.keys(RULES)),
|
|
1581
|
+
transforms: /* @__PURE__ */ new Set(),
|
|
1582
|
+
groupRules: /* @__PURE__ */ new Set(),
|
|
1583
|
+
optionLists: new Set(Object.keys(OPTION_LISTS)),
|
|
1584
|
+
conditions: /* @__PURE__ */ new Set(),
|
|
1585
|
+
prefillSources: /* @__PURE__ */ new Set(),
|
|
1586
|
+
flags: /* @__PURE__ */ new Set()
|
|
1587
|
+
};
|
|
1588
|
+
/** Today's UBO actions use a fixed limit and a single collection. */
|
|
1589
|
+
const UBO_COLLECTION = "ubos";
|
|
1590
|
+
/**
|
|
1591
|
+
* Whether today's code handles a field the way its definition says. Today's
|
|
1592
|
+
* validators show their own message, so a rule can't carry one. The field
|
|
1593
|
+
* shape has no hint, suggestions, sections or Text params, and the UI shows a
|
|
1594
|
+
* placeholder only on dropdowns. `buildEkybSubmitPayload` sends the value
|
|
1595
|
+
* under the field name, unchanged. Input formatting and request bodies stay
|
|
1596
|
+
* in today's code until P2.
|
|
1597
|
+
*/
|
|
1598
|
+
function isProjectableField(field) {
|
|
1599
|
+
return !field.hint && !field.suggestionsRef && !field.section && !field.label.params && !field.displayLabel?.params && (field.options ?? []).every((option) => !option.label.params) && (!field.placeholder || field.kind === "choice" && !field.placeholder.params) && (field.rules ?? []).every((rule) => !rule.message) && !field.input?.format?.length && (field.payload?.key ?? field.name) === field.name && !field.payload?.omit;
|
|
1600
|
+
}
|
|
1601
|
+
/** The only properties today's owner fields honor. */
|
|
1602
|
+
const UBO_FIELD_KEYS = /* @__PURE__ */ new Set([
|
|
1603
|
+
"name",
|
|
1604
|
+
"kind",
|
|
1605
|
+
"group",
|
|
1606
|
+
"required",
|
|
1607
|
+
"label"
|
|
1608
|
+
]);
|
|
1609
|
+
/**
|
|
1610
|
+
* Today's owner code is fixed: owner 1 is required, up to `UBO_INPUT_LIMIT`
|
|
1611
|
+
* owners, each with a required name and surname under `UBO_FIELD_LABELS`, and
|
|
1612
|
+
* the request body joins them into `uboNames`. A collection is projectable
|
|
1613
|
+
* only when it declares exactly that.
|
|
1614
|
+
*/
|
|
1615
|
+
function isProjectableUboCollection(collection) {
|
|
1616
|
+
const { key, join } = collection.payload;
|
|
1617
|
+
const names = collection.fields.map((field) => field.name);
|
|
1618
|
+
return collection.id === UBO_COLLECTION && collection.min === 1 && collection.max === 8 && key === "uboNames" && join.length === 2 && join[0] === "name" && join[1] === "surname" && names.length === 2 && names[0] === "name" && names[1] === "surname" && collection.fields.every((field) => Object.keys(field).every((prop) => UBO_FIELD_KEYS.has(prop)) && field.kind === "text" && field.required === true && Object.keys(field.label).length === 1 && field.label.key === UBO_FIELD_LABELS[field.name]);
|
|
1619
|
+
}
|
|
1620
|
+
/**
|
|
1621
|
+
* Caches the check per definition object. Bundled definitions are singletons
|
|
1622
|
+
* created once at module load, so each is checked once. A served source (P4)
|
|
1623
|
+
* that builds new objects per call would still be correct, but would miss
|
|
1624
|
+
* this cache; key it by definition id and version then.
|
|
1625
|
+
*/
|
|
1626
|
+
const projectable = /* @__PURE__ */ new WeakMap();
|
|
1627
|
+
/** Whether every part of a definition maps onto today's `EkybFieldDef`. */
|
|
1628
|
+
function isProjectableEkybDefinition(definition) {
|
|
1629
|
+
let result = projectable.get(definition);
|
|
1630
|
+
if (result === void 0) {
|
|
1631
|
+
result = definition.module === "ekyb" && checkSupport(definition, EKYB_SUPPORTED_IDS).supported && !definition.sections?.length && definition.fields.every(isProjectableField) && (definition.collections ?? []).every(isProjectableUboCollection);
|
|
1632
|
+
projectable.set(definition, result);
|
|
1633
|
+
}
|
|
1634
|
+
return result;
|
|
1635
|
+
}
|
|
1636
|
+
/**
|
|
1637
|
+
* Maps module configuration to groups. Returns `undefined` when the field
|
|
1638
|
+
* list can't be expressed as whole groups (an unknown entry, or part of the
|
|
1639
|
+
* address), so the current builder keeps handling it.
|
|
1640
|
+
*/
|
|
1641
|
+
function toEkybResolveContext(config, verificationFields) {
|
|
1642
|
+
const entries = verificationFields.filter(isFormFieldEntry);
|
|
1643
|
+
if (entries.some((entry) => !KNOWN_ENTRIES.has(entry))) return void 0;
|
|
1644
|
+
const groups = {};
|
|
1645
|
+
for (const [group, groupEntries] of Object.entries(EKYB_GROUP_ENTRIES)) {
|
|
1646
|
+
const present = groupEntries.filter((e) => entries.includes(e)).length;
|
|
1647
|
+
if (present !== 0 && present !== groupEntries.length) return void 0;
|
|
1648
|
+
groups[group] = present > 0;
|
|
1649
|
+
}
|
|
1650
|
+
groups.ubos = groups.ubos === true && config.checkUniqueBeneficialOwner !== false;
|
|
1651
|
+
return { groups };
|
|
1652
|
+
}
|
|
1653
|
+
const bundled = createBundledDefinitionSource(EKYB_DEFINITIONS);
|
|
1654
|
+
/**
|
|
1655
|
+
* The resolved definition for this country and configuration, if one applies
|
|
1656
|
+
* and the rollout is on. Every country has a builder today, so none is exempt.
|
|
1657
|
+
* `useDefinitions` is the rollout answer the machine read once, when it was
|
|
1658
|
+
* created.
|
|
1659
|
+
*/
|
|
1660
|
+
function selectEkybForm(config, verificationFields, country, useDefinitions) {
|
|
1661
|
+
if (!useDefinitions) return void 0;
|
|
1662
|
+
const context = toEkybResolveContext(config, verificationFields);
|
|
1663
|
+
if (!context) return void 0;
|
|
1664
|
+
const definition = bundled.select({
|
|
1665
|
+
module: "ekyb",
|
|
1666
|
+
country
|
|
1667
|
+
});
|
|
1668
|
+
if (!definition || !isProjectableEkybDefinition(definition)) return void 0;
|
|
1669
|
+
return resolveForm(definition, context);
|
|
1670
|
+
}
|
|
1671
|
+
function projectField(field, required, country) {
|
|
1672
|
+
const def = {
|
|
1673
|
+
name: field.name,
|
|
1674
|
+
type: field.kind === "choice" ? "dropdown" : "text",
|
|
1675
|
+
label: field.label.key,
|
|
1676
|
+
required
|
|
1677
|
+
};
|
|
1678
|
+
if (field.placeholder) def.placeholder = field.placeholder.key;
|
|
1679
|
+
if (field.displayLabel) def.displayLabel = field.displayLabel.text ?? field.displayLabel.key;
|
|
1680
|
+
if (field.input?.maxLength !== void 0) def.maxLength = field.input.maxLength;
|
|
1681
|
+
if (field.optionsRef) def.options = OPTION_LISTS[field.optionsRef];
|
|
1682
|
+
else if (field.options) def.options = field.options.map((option) => ({
|
|
1683
|
+
value: option.value,
|
|
1684
|
+
label: option.label.key
|
|
1685
|
+
}));
|
|
1686
|
+
const validation = required ? [{ type: "required" }] : [];
|
|
1687
|
+
for (const rule of field.rules ?? []) {
|
|
1688
|
+
const projected = RULES[rule.id]?.(country, rule.params ?? {});
|
|
1689
|
+
if (projected) validation.push(projected);
|
|
1690
|
+
}
|
|
1691
|
+
if (validation.length > 0) def.validation = validation;
|
|
1692
|
+
return def;
|
|
1693
|
+
}
|
|
1694
|
+
/** Projects a resolved definition to today's `EkybFieldDef[]`. */
|
|
1695
|
+
function projectEkybFields(form, country) {
|
|
1696
|
+
return form.fields.map(({ field, required }) => projectField(field, required, country));
|
|
1697
|
+
}
|
|
1698
|
+
/** Whether the resolved form collects beneficial owners. */
|
|
1699
|
+
function hasUboCollection(form) {
|
|
1700
|
+
return form.collections.some((c) => c.collection.id === UBO_COLLECTION);
|
|
1701
|
+
}
|
|
1702
|
+
//#endregion
|
|
1703
|
+
//#region src/modules/ekyb/ekybActions.ts
|
|
1704
|
+
function buildEkybValidationRules(fieldName, required, country) {
|
|
1705
|
+
const rules = [];
|
|
1706
|
+
if (required) rules.push({ type: "required" });
|
|
1707
|
+
if (fieldName === "taxId" && requiresCnpjValidation(country)) rules.push({ type: "cnpj" });
|
|
1708
|
+
if (fieldName === "taxId") rules.push(...TAX_ID_RULES_BY_COUNTRY[country] ?? []);
|
|
1709
|
+
if (fieldName === "postalCode") rules.push({
|
|
1710
|
+
type: "postalCodeFormat",
|
|
1711
|
+
country
|
|
1712
|
+
});
|
|
1713
|
+
return rules;
|
|
1714
|
+
}
|
|
1715
|
+
/**
|
|
1716
|
+
* Fields and beneficial-owner state for a country. With the rollout on, the
|
|
1717
|
+
* country reads its form definition (`packages/form-definitions/catalog/ekyb`),
|
|
1718
|
+
* unless the custom field list isn't whole groups. Otherwise the current
|
|
1719
|
+
* builder and its UBO rule apply; the parity fixtures keep the two equal.
|
|
1720
|
+
* `useDefinitions` is the rollout answer the machine read once, when it was
|
|
1721
|
+
* created (`selectEkybForm`).
|
|
1722
|
+
*/
|
|
1723
|
+
function buildEkybForm(config, verificationFields, country, useDefinitions) {
|
|
1724
|
+
const form = selectEkybForm(config, verificationFields, country, useDefinitions);
|
|
1725
|
+
if (form) return {
|
|
1726
|
+
fields: projectEkybFields(form, country),
|
|
1727
|
+
hasUbos: hasUboCollection(form)
|
|
1728
|
+
};
|
|
1729
|
+
const hasUbos = config.checkUniqueBeneficialOwner !== false && verificationFields.includes("ubos-user_input") && country !== "MX";
|
|
1730
|
+
return {
|
|
1731
|
+
fields: buildEkybFields(verificationFields, country, hasUbos),
|
|
1732
|
+
hasUbos
|
|
1733
|
+
};
|
|
1734
|
+
}
|
|
1735
|
+
/**
|
|
1736
|
+
* The per-country builder, used with the rollout off and for custom field
|
|
1737
|
+
* lists that aren't whole groups. Every country's form definition must give
|
|
1738
|
+
* the same fields (parity), so change both together.
|
|
1739
|
+
*/
|
|
1740
|
+
function buildEkybFields(verificationFields, country, _hasUbos) {
|
|
1741
|
+
let modules = verificationFields.filter((f) => f !== "ubos-user_input" && isFormFieldEntry(f));
|
|
1742
|
+
if (country === "GB") modules = modules.filter((m) => m !== "state-user_input");
|
|
1743
|
+
if (country === "MX") modules = modules.filter((m) => {
|
|
1744
|
+
if (m === "ubos-user_input") return false;
|
|
1745
|
+
const fieldName = FIELD_NAME_MAPPING[m] ?? m;
|
|
1746
|
+
if (ADDRESS_FIELDS.includes(fieldName) && fieldName !== "postalCode") return false;
|
|
1747
|
+
return true;
|
|
1748
|
+
});
|
|
1749
|
+
return sortModulesByOrder(modules, FIELD_ORDER).map((moduleName) => {
|
|
1750
|
+
const fieldName = FIELD_NAME_MAPPING[moduleName] ?? moduleName;
|
|
1751
|
+
const optional = isFieldOptional(fieldName, country);
|
|
1752
|
+
const def = {
|
|
1753
|
+
name: fieldName,
|
|
1754
|
+
type: "text",
|
|
1755
|
+
label: `ekyb.${fieldName}`,
|
|
1756
|
+
required: !optional
|
|
1757
|
+
};
|
|
1758
|
+
if (fieldName === "taxId") {
|
|
1759
|
+
def.required = true;
|
|
1760
|
+
if (country === "CN") def.label = "verification.labels.prcId";
|
|
1761
|
+
if (country === "BR") def.displayLabel = "CPF";
|
|
1762
|
+
}
|
|
1763
|
+
if (fieldName === "postalCode") def.maxLength = getPostalCodeMaxLength(country);
|
|
1764
|
+
if (fieldName === "state" && country === "US") {
|
|
1765
|
+
def.type = "dropdown";
|
|
1766
|
+
def.options = usStateOptions;
|
|
1767
|
+
def.placeholder = "verification.placeholder.state";
|
|
1768
|
+
}
|
|
1769
|
+
const validation = buildEkybValidationRules(fieldName, def.required, country);
|
|
1770
|
+
if (validation.length > 0) def.validation = validation;
|
|
1771
|
+
return def;
|
|
1772
|
+
});
|
|
1773
|
+
}
|
|
1774
|
+
function getDefaultVerificationFields(config) {
|
|
1775
|
+
if (config.verificationFields && config.verificationFields.length > 0) return config.verificationFields;
|
|
1776
|
+
const fields = [];
|
|
1777
|
+
if (config.checkBusinessName !== false) fields.push("name-user_input");
|
|
1778
|
+
if (config.checkAddress !== false) fields.push("street-user_input", "houseNo-user_input", "address2-user_input", "city-user_input", "state-user_input", "postalCode-user_input");
|
|
1779
|
+
if (config.checkTaxId !== false) fields.push("taxId-user_input");
|
|
1780
|
+
if (config.checkUniqueBeneficialOwner !== false) fields.push("ubos-user_input");
|
|
1781
|
+
return fields;
|
|
1782
|
+
}
|
|
1783
|
+
function processEkybFieldValue(name, value, country) {
|
|
1784
|
+
if (name === "postalCode") return formatPostalCode(value, country);
|
|
1785
|
+
return value;
|
|
1786
|
+
}
|
|
1787
|
+
/**
|
|
1788
|
+
* Whether a field's value is left out of the request body: absent, `null`, or
|
|
1789
|
+
* text that is blank once trimmed (CK1 decision K1, as the kernel's
|
|
1790
|
+
* `buildPayload` does). A host can pass anything to `setField`, so any other
|
|
1791
|
+
* value is sent as it is.
|
|
1792
|
+
*/
|
|
1793
|
+
const isLeftOut = (value) => value === void 0 || value === null || typeof value === "string" && value.trim() === "";
|
|
1794
|
+
/**
|
|
1795
|
+
* Builds the request body. Keep it in sync with `isProjectableField` and
|
|
1796
|
+
* `isProjectableUboCollection` in `ekybForm.ts`: definitions are projectable
|
|
1797
|
+
* only when they declare exactly this handling, until P2 builds request
|
|
1798
|
+
* bodies from them.
|
|
1799
|
+
*/
|
|
1800
|
+
function buildEkybSubmitPayload(ctx) {
|
|
1801
|
+
const uboNames = ctx.ubos.filter((u) => u.name.trim() || u.surname.trim()).map((u) => `${u.name.trim()} ${u.surname.trim()}`.trim());
|
|
1802
|
+
const payload = {
|
|
1803
|
+
country: ctx.country,
|
|
1804
|
+
plugins: ["ekyb"],
|
|
1805
|
+
uboNames
|
|
1806
|
+
};
|
|
1807
|
+
for (const field of ctx.fields) {
|
|
1808
|
+
const val = ctx.values[field.name];
|
|
1809
|
+
if (!isLeftOut(val)) payload[field.name] = val;
|
|
1810
|
+
}
|
|
1811
|
+
return payload;
|
|
1812
|
+
}
|
|
1813
|
+
//#endregion
|
|
1814
|
+
//#region src/modules/ekyb/ekybGuards.ts
|
|
1815
|
+
const hasFlowIdGuard = ({ context }) => !!context.config.flowId;
|
|
1816
|
+
const hasNoValidationErrorsGuard = ({ context }) => Object.keys(context.validationErrors ?? {}).length === 0;
|
|
1817
|
+
const canAddUboGuard = ({ context }) => context.canAddUbo;
|
|
1818
|
+
const isValidUboIndexGuard = ({ context, event }) => {
|
|
1819
|
+
const { index } = event;
|
|
1820
|
+
return Number.isInteger(index) && index >= 0 && index < context.ubos.length;
|
|
1821
|
+
};
|
|
1822
|
+
const isSupportedCountryGuard = ({ event }) => {
|
|
1823
|
+
const { country } = event;
|
|
1824
|
+
return isSupportedCountry(country);
|
|
1825
|
+
};
|
|
1826
|
+
//#endregion
|
|
1827
|
+
//#region src/modules/ekyb/ekybServices.ts
|
|
1828
|
+
/** Fetches the onboarding flow and extracts the EKYB module configuration */
|
|
1829
|
+
async function fetchEkybModuleConfig(signal) {
|
|
1830
|
+
const ekybModule = (await getFlow(signal)).flowModules.find((m) => m.key === "EKYB");
|
|
1831
|
+
if (!ekybModule) throw new Error("EKYB module not found in flow configuration");
|
|
1832
|
+
return ekybModule.configuration;
|
|
1833
|
+
}
|
|
1834
|
+
/** Submits eKYB business verification */
|
|
1835
|
+
async function submitEkyb(data, signal) {
|
|
1836
|
+
return (await api.post(endpoints.ekybSubmit, data, { signal })).data;
|
|
1837
|
+
}
|
|
1838
|
+
//#endregion
|
|
1839
|
+
//#region src/modules/ekyb/ekybActors.ts
|
|
1840
|
+
const fetchEkybModuleConfigActor = fromPromise(async ({ signal }) => fetchEkybModuleConfig(signal));
|
|
1841
|
+
const submitEkybActor = fromPromise(async ({ input, signal }) => submitEkyb(input, signal));
|
|
1842
|
+
//#endregion
|
|
1843
|
+
//#region src/modules/ekyb/ekybStateMachine.ts
|
|
1844
|
+
const ADDRESS_AUTOCOMPLETE_KEYS = [
|
|
1845
|
+
"street",
|
|
1846
|
+
"city",
|
|
1847
|
+
"state",
|
|
1848
|
+
"postalCode",
|
|
1849
|
+
"houseNo"
|
|
1850
|
+
];
|
|
1851
|
+
const ekybMachine = setup({
|
|
1852
|
+
types: {
|
|
1853
|
+
context: {},
|
|
1854
|
+
events: {},
|
|
1855
|
+
input: {}
|
|
1856
|
+
},
|
|
1857
|
+
actors: {
|
|
1858
|
+
fetchEkybModuleConfig: fetchEkybModuleConfigActor,
|
|
1859
|
+
submitEkyb: submitEkybActor,
|
|
1860
|
+
debounceSearch: debounceSearchActor
|
|
1861
|
+
},
|
|
1862
|
+
actions: {
|
|
1863
|
+
applyFetchedConfig: assign(({ context, event }) => {
|
|
1864
|
+
const fetched = event.output;
|
|
1865
|
+
const config = {
|
|
1866
|
+
checkBusinessName: fetched.checkBusinessName,
|
|
1867
|
+
checkAddress: fetched.checkAddress,
|
|
1868
|
+
checkTaxId: fetched.checkTaxId,
|
|
1869
|
+
checkUniqueBeneficialOwner: fetched.checkUniqueBeneficialOwner
|
|
1870
|
+
};
|
|
1871
|
+
const country = "US";
|
|
1872
|
+
const { fields, hasUbos } = buildEkybForm(config, getDefaultVerificationFields(config), country, context._formDefinitions);
|
|
1873
|
+
return {
|
|
1874
|
+
config,
|
|
1875
|
+
country,
|
|
1876
|
+
availableCountries: ALL_COUNTRIES,
|
|
1877
|
+
fields,
|
|
1878
|
+
values: { country },
|
|
1879
|
+
validationErrors: void 0,
|
|
1880
|
+
ubos: hasUbos ? [{
|
|
1881
|
+
id: "ubo-1",
|
|
1882
|
+
name: "",
|
|
1883
|
+
surname: ""
|
|
1884
|
+
}] : [],
|
|
1885
|
+
canAddUbo: hasUbos,
|
|
1886
|
+
hasUbos,
|
|
1887
|
+
addressSuggestions: [],
|
|
1888
|
+
_nextUboId: 2,
|
|
1889
|
+
_searchQuery: ""
|
|
1890
|
+
};
|
|
1891
|
+
}),
|
|
1892
|
+
setCountry: assign(({ context, event }) => {
|
|
1893
|
+
const { country } = event;
|
|
1894
|
+
const vFields = getDefaultVerificationFields(context.config);
|
|
1895
|
+
const { fields, hasUbos } = buildEkybForm(context.config, vFields, country, context._formDefinitions);
|
|
1896
|
+
let nextId = context._nextUboId;
|
|
1897
|
+
let ubos;
|
|
1898
|
+
if (hasUbos) if (context.ubos.length > 0) ubos = context.ubos;
|
|
1899
|
+
else {
|
|
1900
|
+
ubos = [{
|
|
1901
|
+
id: `ubo-${nextId}`,
|
|
1902
|
+
name: "",
|
|
1903
|
+
surname: ""
|
|
1904
|
+
}];
|
|
1905
|
+
nextId += 1;
|
|
1906
|
+
}
|
|
1907
|
+
else ubos = [];
|
|
1908
|
+
return {
|
|
1909
|
+
country,
|
|
1910
|
+
fields,
|
|
1911
|
+
values: {
|
|
1912
|
+
...context.values,
|
|
1913
|
+
country,
|
|
1914
|
+
state: ""
|
|
1915
|
+
},
|
|
1916
|
+
validationErrors: void 0,
|
|
1917
|
+
ubos,
|
|
1918
|
+
canAddUbo: hasUbos && ubos.length < 8,
|
|
1919
|
+
hasUbos,
|
|
1920
|
+
_nextUboId: nextId
|
|
1921
|
+
};
|
|
1922
|
+
}),
|
|
1923
|
+
updateField: assign(({ context, event }) => {
|
|
1924
|
+
if (event.type !== "DATA_CHANGED") return {};
|
|
1925
|
+
const processed = processEkybFieldValue(event.name, event.value, context.country);
|
|
1926
|
+
return { values: {
|
|
1927
|
+
...context.values,
|
|
1928
|
+
[event.name]: processed
|
|
1929
|
+
} };
|
|
1930
|
+
}),
|
|
1931
|
+
clearFieldValidationError: assign(({ context, event }) => {
|
|
1932
|
+
if (event.type !== "DATA_CHANGED") return {};
|
|
1933
|
+
const errs = context.validationErrors;
|
|
1934
|
+
if (!errs?.[event.name]) return {};
|
|
1935
|
+
const next = { ...errs };
|
|
1936
|
+
delete next[event.name];
|
|
1937
|
+
return { validationErrors: Object.keys(next).length > 0 ? next : void 0 };
|
|
1938
|
+
}),
|
|
1939
|
+
validateFormField: assign(({ context, event }) => {
|
|
1940
|
+
if (event.type !== "VALIDATE_FIELD") return {};
|
|
1941
|
+
const { name } = event;
|
|
1942
|
+
const message = /^ubo-\d+-(name|surname)$/.test(name) ? validateEkybUboField(context.ubos, name) : validateEkybField(context.values, name, context.fields);
|
|
1943
|
+
const next = { ...context.validationErrors ?? {} };
|
|
1944
|
+
if (message) next[name] = message;
|
|
1945
|
+
else delete next[name];
|
|
1946
|
+
return { validationErrors: Object.keys(next).length > 0 ? next : void 0 };
|
|
1947
|
+
}),
|
|
1948
|
+
computeValidationResult: assign(({ context }) => {
|
|
1949
|
+
const errors = validateEkybForm(context.values, context.fields, context.country, context.ubos, context.hasUbos);
|
|
1950
|
+
return { validationErrors: Object.keys(errors).length > 0 ? errors : void 0 };
|
|
1951
|
+
}),
|
|
1952
|
+
addUbo: assign(({ context }) => {
|
|
1953
|
+
const newId = context._nextUboId;
|
|
1954
|
+
const ubos = [...context.ubos, {
|
|
1955
|
+
id: `ubo-${newId}`,
|
|
1956
|
+
name: "",
|
|
1957
|
+
surname: ""
|
|
1958
|
+
}];
|
|
1959
|
+
return {
|
|
1960
|
+
ubos,
|
|
1961
|
+
canAddUbo: ubos.length < 8,
|
|
1962
|
+
_nextUboId: newId + 1
|
|
1963
|
+
};
|
|
1964
|
+
}),
|
|
1965
|
+
removeUbo: assign(({ context, event }) => {
|
|
1966
|
+
const { index } = event;
|
|
1967
|
+
const ubos = context.ubos.filter((_, i) => i !== index);
|
|
1968
|
+
const canAddUbo = ubos.length < 8;
|
|
1969
|
+
const errs = context.validationErrors;
|
|
1970
|
+
let newErrors;
|
|
1971
|
+
if (errs) {
|
|
1972
|
+
const next = {};
|
|
1973
|
+
for (const [key, val] of Object.entries(errs)) {
|
|
1974
|
+
const match = key.match(/^ubo-(\d+)-(name|surname)$/);
|
|
1975
|
+
if (!match) {
|
|
1976
|
+
next[key] = val;
|
|
1977
|
+
continue;
|
|
1978
|
+
}
|
|
1979
|
+
const uboIdx = Number(match[1]);
|
|
1980
|
+
if (uboIdx === index) continue;
|
|
1981
|
+
const newIdx = uboIdx > index ? uboIdx - 1 : uboIdx;
|
|
1982
|
+
next[`ubo-${newIdx}-${match[2]}`] = val;
|
|
1983
|
+
}
|
|
1984
|
+
newErrors = Object.keys(next).length > 0 ? next : void 0;
|
|
1985
|
+
}
|
|
1986
|
+
return {
|
|
1987
|
+
ubos,
|
|
1988
|
+
canAddUbo,
|
|
1989
|
+
validationErrors: newErrors
|
|
1990
|
+
};
|
|
1991
|
+
}),
|
|
1992
|
+
setUboField: assign(({ context, event }) => {
|
|
1993
|
+
const { index, field, value } = event;
|
|
1994
|
+
const ubos = context.ubos.map((ubo, i) => i === index ? {
|
|
1995
|
+
...ubo,
|
|
1996
|
+
[field]: value
|
|
1997
|
+
} : ubo);
|
|
1998
|
+
const fieldKey = `ubo-${index}-${field}`;
|
|
1999
|
+
const errs = context.validationErrors;
|
|
2000
|
+
if (!errs?.[fieldKey]) return { ubos };
|
|
2001
|
+
const next = { ...errs };
|
|
2002
|
+
delete next[fieldKey];
|
|
2003
|
+
return {
|
|
2004
|
+
ubos,
|
|
2005
|
+
validationErrors: Object.keys(next).length > 0 ? next : void 0
|
|
2006
|
+
};
|
|
2007
|
+
}),
|
|
2008
|
+
setErrorMessage: assign(({ event }) => ({ errorMessage: String(event.error ?? "verification.error") })),
|
|
2009
|
+
clearErrorMessage: assign({ errorMessage: () => "" }),
|
|
2010
|
+
fillAddressFields: assign(({ context, event }) => {
|
|
2011
|
+
const { suggestion } = event;
|
|
2012
|
+
const activeFields = new Set(context.fields.map((f) => f.name));
|
|
2013
|
+
const { values: filled } = fillFromSuggestion(context.values, {}, suggestion, activeFields);
|
|
2014
|
+
const newValues = keepSuggestionInOptions(context.fields, context.values, filled);
|
|
2015
|
+
const errs = context.validationErrors;
|
|
2016
|
+
let newErrors = errs;
|
|
2017
|
+
if (errs) {
|
|
2018
|
+
const next = { ...errs };
|
|
2019
|
+
for (const key of ADDRESS_AUTOCOMPLETE_KEYS) delete next[key];
|
|
2020
|
+
newErrors = Object.keys(next).length > 0 ? next : void 0;
|
|
2021
|
+
}
|
|
2022
|
+
const streetError = getStreetLevelErrorForSuggestion(suggestion, activeFields);
|
|
2023
|
+
if (streetError !== void 0) newErrors = {
|
|
2024
|
+
...newErrors,
|
|
2025
|
+
street: streetError
|
|
2026
|
+
};
|
|
2027
|
+
return {
|
|
2028
|
+
values: newValues,
|
|
2029
|
+
addressSuggestions: [],
|
|
2030
|
+
_searchQuery: "",
|
|
2031
|
+
validationErrors: newErrors
|
|
2032
|
+
};
|
|
2033
|
+
}),
|
|
2034
|
+
setAddressSuggestions: assign(({ event }) => ({ addressSuggestions: event.suggestions }))
|
|
2035
|
+
},
|
|
2036
|
+
guards: {
|
|
2037
|
+
hasFlowId: hasFlowIdGuard,
|
|
2038
|
+
hasNoValidationErrors: hasNoValidationErrorsGuard,
|
|
2039
|
+
canAddUbo: canAddUboGuard,
|
|
2040
|
+
isValidUboIndex: isValidUboIndexGuard,
|
|
2041
|
+
isSupportedCountry: isSupportedCountryGuard
|
|
2042
|
+
}
|
|
2043
|
+
}).createMachine({
|
|
2044
|
+
id: "ekyb",
|
|
2045
|
+
initial: "idle",
|
|
2046
|
+
context: ({ input }) => {
|
|
2047
|
+
const config = toEkybConfig(input.config);
|
|
2048
|
+
const country = "US";
|
|
2049
|
+
const vFields = getDefaultVerificationFields(config);
|
|
2050
|
+
const formDefinitions = isFormDefinitionsEnabled();
|
|
2051
|
+
const { fields, hasUbos } = buildEkybForm(config, vFields, country, formDefinitions);
|
|
2052
|
+
return {
|
|
2053
|
+
config,
|
|
2054
|
+
country,
|
|
2055
|
+
availableCountries: ALL_COUNTRIES,
|
|
2056
|
+
fields,
|
|
2057
|
+
values: { country },
|
|
2058
|
+
validationErrors: void 0,
|
|
2059
|
+
ubos: hasUbos ? [{
|
|
2060
|
+
id: "ubo-1",
|
|
2061
|
+
name: "",
|
|
2062
|
+
surname: ""
|
|
2063
|
+
}] : [],
|
|
2064
|
+
canAddUbo: hasUbos,
|
|
2065
|
+
hasUbos,
|
|
2066
|
+
errorMessage: "",
|
|
2067
|
+
addressSuggestions: [],
|
|
2068
|
+
_nextUboId: 2,
|
|
2069
|
+
_searchQuery: "",
|
|
2070
|
+
_formDefinitions: formDefinitions
|
|
2071
|
+
};
|
|
2072
|
+
},
|
|
2073
|
+
states: {
|
|
2074
|
+
idle: { on: { LOAD: [{
|
|
2075
|
+
target: "loading",
|
|
2076
|
+
guard: "hasFlowId"
|
|
2077
|
+
}, { target: "form" }] } },
|
|
2078
|
+
loading: { invoke: {
|
|
2079
|
+
id: "fetchEkybModuleConfig",
|
|
2080
|
+
src: "fetchEkybModuleConfig",
|
|
2081
|
+
onDone: {
|
|
2082
|
+
target: "form",
|
|
2083
|
+
actions: "applyFetchedConfig"
|
|
2084
|
+
},
|
|
2085
|
+
onError: "form"
|
|
2086
|
+
} },
|
|
2087
|
+
form: {
|
|
2088
|
+
initial: "inputting",
|
|
2089
|
+
states: {
|
|
2090
|
+
inputting: { on: {
|
|
2091
|
+
DATA_CHANGED: { actions: ["updateField", "clearFieldValidationError"] },
|
|
2092
|
+
VALIDATE_FIELD: { actions: "validateFormField" },
|
|
2093
|
+
SUBMIT: { target: "validatingSubmit" }
|
|
2094
|
+
} },
|
|
2095
|
+
searching: {
|
|
2096
|
+
invoke: {
|
|
2097
|
+
id: "debounceSearch",
|
|
2098
|
+
src: "debounceSearch",
|
|
2099
|
+
input: ({ context }) => ({ query: context._searchQuery })
|
|
2100
|
+
},
|
|
2101
|
+
on: {
|
|
2102
|
+
DATA_CHANGED: { actions: ["updateField", "clearFieldValidationError"] },
|
|
2103
|
+
VALIDATE_FIELD: { actions: "validateFormField" },
|
|
2104
|
+
RESULTS: {
|
|
2105
|
+
target: "inputting",
|
|
2106
|
+
actions: "setAddressSuggestions"
|
|
2107
|
+
},
|
|
2108
|
+
SUBMIT: { target: "validatingSubmit" }
|
|
2109
|
+
}
|
|
2110
|
+
},
|
|
2111
|
+
validatingSubmit: {
|
|
2112
|
+
entry: "computeValidationResult",
|
|
2113
|
+
always: [{
|
|
2114
|
+
guard: "hasNoValidationErrors",
|
|
2115
|
+
target: "#ekyb.submitting"
|
|
2116
|
+
}, { target: "inputting" }]
|
|
2117
|
+
}
|
|
2118
|
+
},
|
|
2119
|
+
on: {
|
|
2120
|
+
SET_COUNTRY: {
|
|
2121
|
+
guard: "isSupportedCountry",
|
|
2122
|
+
actions: "setCountry"
|
|
2123
|
+
},
|
|
2124
|
+
ADD_UBO: {
|
|
2125
|
+
guard: "canAddUbo",
|
|
2126
|
+
actions: "addUbo"
|
|
2127
|
+
},
|
|
2128
|
+
REMOVE_UBO: {
|
|
2129
|
+
guard: "isValidUboIndex",
|
|
2130
|
+
actions: "removeUbo"
|
|
2131
|
+
},
|
|
2132
|
+
SET_UBO_FIELD: {
|
|
2133
|
+
guard: "isValidUboIndex",
|
|
2134
|
+
actions: "setUboField"
|
|
2135
|
+
},
|
|
2136
|
+
SEARCH_ADDRESS: {
|
|
2137
|
+
target: ".searching",
|
|
2138
|
+
actions: assign(({ event }) => ({
|
|
2139
|
+
_searchQuery: event.query,
|
|
2140
|
+
addressSuggestions: []
|
|
2141
|
+
}))
|
|
2142
|
+
},
|
|
2143
|
+
SELECT_ADDRESS: {
|
|
2144
|
+
target: ".inputting",
|
|
2145
|
+
actions: "fillAddressFields"
|
|
2146
|
+
},
|
|
2147
|
+
CLOSE: { target: "closed" }
|
|
2148
|
+
}
|
|
2149
|
+
},
|
|
2150
|
+
submitting: { invoke: {
|
|
2151
|
+
id: "submitEkyb",
|
|
2152
|
+
src: "submitEkyb",
|
|
2153
|
+
input: ({ context }) => buildEkybSubmitPayload(context),
|
|
2154
|
+
onDone: { target: "success" },
|
|
2155
|
+
onError: {
|
|
2156
|
+
target: "error",
|
|
2157
|
+
actions: "setErrorMessage"
|
|
2158
|
+
}
|
|
2159
|
+
} },
|
|
2160
|
+
success: { after: { 3e3: "finished" } },
|
|
2161
|
+
error: { on: {
|
|
2162
|
+
RETRY: {
|
|
2163
|
+
target: "form",
|
|
2164
|
+
actions: "clearErrorMessage"
|
|
2165
|
+
},
|
|
2166
|
+
CLOSE: { target: "closed" }
|
|
2167
|
+
} },
|
|
2168
|
+
finished: { type: "final" },
|
|
2169
|
+
closed: { type: "final" }
|
|
2170
|
+
}
|
|
2171
|
+
});
|
|
2172
|
+
//#endregion
|
|
2173
|
+
export { ekybMachine as t };
|