@incodetech/core 2.4.1-agentic → 2.4.1-agentic.10
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/{BaseWasmProvider-Bq3OHo7P.d.ts → BaseWasmProvider-bBNquvYn.d.ts} +2 -2
- package/dist/BrowserNetworkStatusProvider-BrDXBEDd.esm.js +21 -0
- package/dist/{multipartRecordingService-DMBxHKS2.esm.js → CameraCompositor-DN7NkJzV.esm.js} +7 -734
- package/dist/DateFormattingProvider-DPq9zco-.esm.js +25 -0
- package/dist/{FaceDetectionProvider-B83VmClw.esm.js → FaceDetectionProvider-BSLpXAGx.esm.js} +11 -12
- package/dist/{IIdCaptureCapability-CGcEt2Cw.d.ts → IIdCaptureCapability-C-5M8pP1.d.ts} +2 -2
- package/dist/{IWasmUtilCapability-Cqiaxydi.d.ts → IWasmUtilCapability-BRn0wz8v.d.ts} +2 -2
- package/dist/MultipartRecordingProvider-BfQPSgSO.esm.js +151 -0
- package/dist/{StreamCanvasCapture-C3xNfOsv.d.ts → StreamCanvasCapture-ixfy84ys.d.ts} +2 -2
- package/dist/StreamCanvasProcessingSession-CBnbTnOr.esm.js +42 -0
- package/dist/{WasmUtilProvider-GTkoJyFY.esm.js → WasmUtilProvider-C_puwvVn.esm.js} +2 -2
- package/dist/WorkerEncoderRecordingProvider-CyCrQnZR.esm.js +80 -0
- package/dist/addressSearch-B_4JYKa-.esm.js +72 -0
- package/dist/ae-signature.esm.js +1 -1
- package/dist/antifraud.esm.js +2 -2
- package/dist/{antifraudManager-CQ08atTC.esm.js → antifraudManager-BWCVkSu2.esm.js} +2 -2
- package/dist/{antifraudStateMachine-BcsUTTIr.esm.js → antifraudStateMachine-CX9I2f3s.esm.js} +1 -1
- package/dist/{api-BO8JA7Pf.esm.js → api-BSnbg4HO.esm.js} +4 -0
- package/dist/{apiError-CfuIvnUy.esm.js → apiError-Bmwy1Fa7.esm.js} +1 -1
- package/dist/{attemptCarry-BjTJ6bMQ.esm.js → attemptCarry-zQH85Elh.esm.js} +2 -2
- package/dist/authentication.d.ts +3 -3
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-DvmklBTE.esm.js → authenticationManager-BoiOaB0m.esm.js} +5 -5
- package/dist/{authenticationManager-C-cOki0Y.d.ts → authenticationManager-CISxaY6N.d.ts} +1 -1
- package/dist/{authenticationStateMachine-BL2ptOA0.esm.js → authenticationStateMachine-BMD1JLwr.esm.js} +3 -3
- package/dist/avatar.d.ts +1 -1
- package/dist/backCameraLabel-yda5ugE4.esm.js +67 -0
- package/dist/{backCameraStream-C5_NNfUN.esm.js → backCameraStream-DS1oDiUq.esm.js} +10 -65
- package/dist/{browser-pQZA35G2-DtkAf6sn.esm.js → browser-pQZA35G2-PIj2uGBm.esm.js} +1 -1
- package/dist/camera.d.ts +2 -2
- package/dist/camera.esm.js +1 -1
- package/dist/certificate-issuance.esm.js +2 -2
- package/dist/{certificateIssuanceManager-CM0fuqDC.esm.js → certificateIssuanceManager-DzDuQTsK.esm.js} +2 -2
- package/dist/{certificateIssuanceStateMachine-kksIUOPD.esm.js → certificateIssuanceStateMachine-BAOYLACb.esm.js} +2 -2
- package/dist/{connectivity-HSl0diCx.esm.js → connectivity-BCuEoQ-n.esm.js} +2 -21
- package/dist/consent.d.ts +1 -1
- package/dist/consent.esm.js +2 -2
- package/dist/{consentManager-_q9yJUku.d.ts → consentManager-7aHaehwF.d.ts} +5 -5
- package/dist/{consentManager-CBwFozhv.esm.js → consentManager-DFSKQTcR.esm.js} +2 -2
- package/dist/{consentStateMachine-CpmRAcr2.esm.js → consentStateMachine-4nZIH2O8.esm.js} +1 -1
- package/dist/{cpf-uAZTPUBy.esm.js → cpf-BIADjddF.esm.js} +1 -25
- package/dist/{createFaceAvatar-lYX0VTYs.d.ts → createFaceAvatar-BimBTONm.d.ts} +1 -1
- package/dist/cross-document-data-match.esm.js +1 -1
- package/dist/{crossDocumentDataMatchManager-64O8t10a.esm.js → crossDocumentDataMatchManager-D7ka2qOC.esm.js} +2 -2
- package/dist/curp-validation.d.ts +1 -1
- package/dist/curp-validation.esm.js +2 -2
- package/dist/{curpValidationManager-CLgJQcx0.esm.js → curpValidationManager-BVTt7IgC.esm.js} +2 -2
- package/dist/{curpValidationManager-CXpFE-Mv.d.ts → curpValidationManager-DEqTUWdu.d.ts} +1 -1
- package/dist/{curpValidationStateMachine-Bx9YhVkJ.esm.js → curpValidationStateMachine-FB_MRbZQ.esm.js} +2 -2
- package/dist/custom-fields.esm.js +1 -1
- package/dist/custom-watchlist.esm.js +2 -2
- package/dist/{customFieldsManager-DWt_0YtJ.esm.js → customFieldsManager-gbsq53p6.esm.js} +2 -2
- package/dist/{customWatchlistManager-D8o-2Nej.esm.js → customWatchlistManager-50APwk4Z.esm.js} +2 -2
- package/dist/{customWatchlistStateMachine-Sbi6DIcK.esm.js → customWatchlistStateMachine-CpEVPzuT.esm.js} +1 -1
- package/dist/{deepsightService-twg3bXqY.esm.js → deepsightLoader-BKCT8UT1.esm.js} +34 -29
- package/dist/definitionSource-BHNxbuiv.esm.js +184 -0
- package/dist/{desktopCameraElection-kHY2IDJi.esm.js → desktopCameraElection-Dvvw7PRY.esm.js} +5 -5
- package/dist/document-capture.d.ts +3 -3
- package/dist/document-capture.esm.js +2 -2
- package/dist/{documentCaptureManager-CMSC_Mhd.esm.js → documentCaptureManager-BG5TuqJz.esm.js} +3 -2
- package/dist/{documentCaptureManager-6tnnDkMX.d.ts → documentCaptureManager-DDfviFg0.d.ts} +25 -4
- package/dist/{documentCaptureStateMachine-BCwD5Rto.esm.js → documentCaptureStateMachine-C7PW_Ah9.esm.js} +67 -26
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-DU6W1e20.esm.js → dynamicFormsManager-B0bpHhhJ.esm.js} +2 -2
- package/dist/{dynamicFormsStateMachine-C8Z7k3vo.esm.js → dynamicFormsStateMachine-2ZHyejBc.esm.js} +2 -2
- package/dist/ekyb.d.ts +4 -4
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-TB6ZG5lX.d.ts → ekybManager-BLOkwmWO.d.ts} +2 -2
- package/dist/{ekybManager-TGfqyjuu.esm.js → ekybManager-P9mC7W9J.esm.js} +2 -2
- package/dist/{ekybStateMachine-DBgFuEPK.esm.js → ekybStateMachine-C7HKaeVr.esm.js} +7 -3
- package/dist/ekybUtils-Cw8Ta9Qi.esm.js +140 -0
- package/dist/ekyc-prefill.d.ts +17 -0
- package/dist/ekyc-prefill.esm.js +3 -0
- package/dist/ekyc.d.ts +3 -2
- package/dist/ekyc.esm.js +3 -3
- package/dist/{ekycManager-C2cgG2Pl.esm.js → ekycManager-CeeJoRFY.esm.js} +2 -2
- package/dist/{ekycManager-BSQteIfC.d.ts → ekycManager-q1fos6IY.d.ts} +2 -1
- package/dist/ekycPrefillManager-C6BFFKxc.esm.js +102 -0
- package/dist/ekycPrefillManager-PPGVZbWk.d.ts +565 -0
- package/dist/ekycPrefillStateMachine-Dku90kZL.esm.js +686 -0
- package/dist/ekycRules-BLX7Elcb.esm.js +319 -0
- package/dist/{ekycStateMachine-CuNF7z4O.esm.js → ekycStateMachine-DBTczgGE.esm.js} +719 -596
- package/dist/{ekycUtils-BFncpC4F.esm.js → ekycUtils-Dcff8BOD.esm.js} +103 -14
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-C7pqXsRm.esm.js → electronicSignatureManager-BKQuhJm_.esm.js} +4 -4
- package/dist/email.esm.js +2 -2
- package/dist/{emailManager-FH_CP0cT.esm.js → emailManager-CGmKbsBL.esm.js} +2 -2
- package/dist/{emailStateMachine-Cx-uTaBV.esm.js → emailStateMachine-CGY1UGs2.esm.js} +2 -2
- package/dist/{events-CQteqXfy.esm.js → events-C7h7oaTE.esm.js} +1 -1
- package/dist/events.esm.js +1 -1
- package/dist/extensibility.d.ts +20 -18
- package/dist/extensibility.esm.js +37 -35
- package/dist/{externalFetch-CQY41QT1.esm.js → externalFetch-cUjJYyXj.esm.js} +1 -1
- package/dist/face-match.d.ts +1 -1
- package/dist/face-match.esm.js +2 -2
- package/dist/{faceCaptureManagerFactory-C-xKdj-d.d.ts → faceCaptureManagerFactory-BVwVGa3z.d.ts} +7 -7
- package/dist/{faceCaptureManagerFactory-CBm05KnT.esm.js → faceCaptureManagerFactory-ClFsByZc.esm.js} +4 -4
- package/dist/{faceCaptureSetup-BQjCbL51.esm.js → faceCaptureSetup-9hv5GC_H.esm.js} +12 -403
- package/dist/{faceMatchManager-Z4UDLwAv.d.ts → faceMatchManager-BZtEw6bB.d.ts} +9 -3
- package/dist/{faceMatchManager-B2zp7yP4.esm.js → faceMatchManager-CRe7Nvm6.esm.js} +2 -2
- package/dist/{faceMatchStateMachine-ByTMQCUC.esm.js → faceMatchStateMachine-EX9QhxFE.esm.js} +28 -14
- package/dist/{feature-management-DjAG5lsJ.esm.js → feature-management-CmKTG_T5.esm.js} +35 -21
- package/dist/feature-management.esm.js +1 -1
- package/dist/field-comparison.esm.js +1 -1
- package/dist/{fieldComparisonManager-CC0vKmpf.esm.js → fieldComparisonManager-DuosZJso.esm.js} +2 -2
- package/dist/fiscal-qr.esm.js +1 -1
- package/dist/{fiscalQrManager-Be-r4oZj.esm.js → fiscalQrManager-ji0qDaTW.esm.js} +3 -3
- package/dist/flow-events.d.ts +1 -1
- package/dist/flow.d.ts +33 -18
- package/dist/flow.esm.js +82 -17
- package/dist/{flowCompletionService-ChMU2v79.esm.js → flowCompletionService-DvcH16XO.esm.js} +24 -3
- package/dist/{flowServices-g2tVWsJl.esm.js → flowServices-Ca2vKNt2.esm.js} +84 -139
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-DLbvZwUB.esm.js → geolocationManager-CiG32lIm.esm.js} +2 -2
- package/dist/{geolocationStateMachine-CAJVongM.esm.js → geolocationStateMachine-5rnTEOuw.esm.js} +3 -3
- package/dist/government-validation.esm.js +2 -2
- package/dist/{governmentValidationManager-CkX9TEkh.esm.js → governmentValidationManager-BivVZNVe.esm.js} +2 -2
- package/dist/{governmentValidationStateMachine-PTPCP26N.esm.js → governmentValidationStateMachine-CeSDNgha.esm.js} +1 -1
- package/dist/home.d.ts +1 -1
- package/dist/home.esm.js +1 -1
- package/dist/http.esm.js +1 -1
- package/dist/id-ocr.d.ts +2 -2
- package/dist/id-ocr.esm.js +3 -19
- package/dist/id-selfie-flow.d.ts +3 -3
- package/dist/id-selfie-flow.esm.js +10 -9
- package/dist/id-verification.esm.js +2 -2
- package/dist/id.d.ts +4 -4
- package/dist/id.esm.js +4 -4
- package/dist/{idCaptureDefaults-MSQoqScU.esm.js → idCaptureDefaults-DBnOC28H.esm.js} +3 -3
- package/dist/{idCaptureManager-zZdTcpG1.esm.js → idCaptureManager-B5xqok0L.esm.js} +9 -8
- package/dist/{idCaptureManager-DzTfQ1Am.d.ts → idCaptureManager-CG8zbAp0.d.ts} +10 -8
- package/dist/{idCaptureServices-8OHinO0N.esm.js → idCaptureServices-BIF_7rub.esm.js} +27 -196
- package/dist/{idCaptureStateMachine-B3G6XoDG.esm.js → idCaptureStateMachine-B5cfgKvn.esm.js} +50 -22
- package/dist/idOcrCpfUtils-Nfln1Psb.esm.js +18 -0
- package/dist/{idOcrManager-DT3kPIB3.d.ts → idOcrManager-B5xeI2lg.d.ts} +3 -3
- package/dist/{idOcrManager-B64-fjWg.esm.js → idOcrManager-DNbVTMIu.esm.js} +2 -2
- package/dist/{idOcrStateMachine-B1aZnobs.esm.js → idOcrStateMachine-MAGnpWkb.esm.js} +8 -7
- package/dist/{idVerificationManager-_Kebv-Ue.esm.js → idVerificationManager-BEAkamNm.esm.js} +2 -2
- package/dist/{idVerificationStateMachine-DQn6c84z.esm.js → idVerificationStateMachine-D5mBN2Ye.esm.js} +1 -1
- package/dist/identity-reuse.esm.js +2 -2
- package/dist/{identityReuseManager-DDXkNVZi.esm.js → identityReuseManager-M8-BTjar.esm.js} +2 -2
- package/dist/{identityReuseStateMachine-Bcnkbjf8.esm.js → identityReuseStateMachine-D5bXgw9h.esm.js} +1 -1
- package/dist/{index-DEfwds5y.d.ts → index-Btj1EhiM.d.ts} +43 -19
- package/dist/{index-DMDAk85K.d.ts → index-CSPOoqah.d.ts} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/{invokeOnCaptureCallback-CXIBwBeE.esm.js → invokeOnCaptureCallback-C1-j4fsq.esm.js} +1 -1
- package/dist/kyb-checks.d.ts +3 -0
- package/dist/kyb-checks.esm.js +3 -0
- package/dist/kybChecksManager-CblEL97E.d.ts +95 -0
- package/dist/kybChecksManager-CnqwgKoV.esm.js +89 -0
- package/dist/kybChecksStateMachine-Be41K_NS.esm.js +719 -0
- package/dist/mandatory-consent.d.ts +2 -2
- package/dist/mandatory-consent.esm.js +2 -2
- package/dist/{mandatoryConsentManager-xx3mY-xw.d.ts → mandatoryConsentManager-CYOJd_IZ.d.ts} +20 -11
- package/dist/{mandatoryConsentManager-43W5d_8G.esm.js → mandatoryConsentManager-LFhUlLvO.esm.js} +2 -2
- package/dist/{mandatoryConsentStateMachine-CVlgdlnt.esm.js → mandatoryConsentStateMachine-DTSyDqQs.esm.js} +11 -5
- package/dist/mediaRecorderOptions-B9-IEVtV.esm.js +70 -0
- package/dist/multipartRecordingService-CCiRpByl.esm.js +407 -0
- package/dist/{permissionGuards-B3OPL8Si.esm.js → permissionGuards-DjQUR1du.esm.js} +1 -1
- package/dist/{permissionServices-DnBAN_hW.esm.js → permissionServices-CZpORUWY.esm.js} +8 -6
- package/dist/phone.esm.js +2 -2
- package/dist/phoneFormat-DEpESpz2.esm.js +87 -0
- package/dist/{phoneManager-C6jut_pz.esm.js → phoneManager-C-qD3p3N.esm.js} +3 -3
- package/dist/phoneServices-BdR1nmSO.esm.js +77 -0
- package/dist/{phoneStateMachine-T1-drWfG.esm.js → phoneStateMachine-2FMTdjtJ.esm.js} +20 -60
- package/dist/{processFaceMatch-BWme3kVV.esm.js → processFaceMatch-B1YnoBer.esm.js} +1 -1
- package/dist/qe-signature.esm.js +1 -1
- package/dist/recordingService-BVSCo0ac.esm.js +397 -0
- package/dist/redirect-to-mobile.esm.js +2 -2
- package/dist/{redirectToMobileManager-BJXC6Kx9.esm.js → redirectToMobileManager-CqyDfDxs.esm.js} +3 -3
- package/dist/{redirectToMobileStateMachine-BBMAc2Gb.esm.js → redirectToMobileStateMachine-CXqfo2Gd.esm.js} +40 -22
- package/dist/resolveForm-f9PhUo9j.esm.js +143 -0
- package/dist/{runChildModule-DPHTqSdF.esm.js → runChildModule-BmteMhR7.esm.js} +2 -2
- package/dist/{sdkVersion-C3_P-Qbq.esm.js → sdkVersion-KZROt6l3.esm.js} +1 -1
- package/dist/selfie.d.ts +4 -4
- package/dist/selfie.esm.js +10 -10
- package/dist/{selfieErrorUtils-BL0BLMnp.esm.js → selfieErrorUtils-fqxp645p.esm.js} +1 -1
- package/dist/{selfieManager-Cbliomv7.esm.js → selfieManager-A-n3k9Tu.esm.js} +5 -5
- package/dist/{selfieManager-BMmpUii2.d.ts → selfieManager-DREuBhXZ.d.ts} +1 -1
- package/dist/{selfieStateMachine-B5m_Kn0O.esm.js → selfieStateMachine-48PKdKrw.esm.js} +3 -3
- package/dist/{session-DAaAewMX.esm.js → session-D0DWDKp9.esm.js} +4 -4
- package/dist/session.d.ts +2 -2
- package/dist/session.esm.js +6 -6
- package/dist/{sessionInitializer-CWFT4dfw.esm.js → sessionInitializer-I92b2dmL.esm.js} +94 -24
- package/dist/{setup-CDAKwTr7.esm.js → setup-BpjzWqR1.esm.js} +25 -27
- package/dist/{setup-D9qt8YVU.d.ts → setup-CG6oLkAa.d.ts} +2 -2
- package/dist/signature.esm.js +2 -2
- package/dist/{signatureManager-BeEVCcsC.esm.js → signatureManager-M9vQBj19.esm.js} +2 -2
- package/dist/{signatureStateMachine-_1c1vSid.esm.js → signatureStateMachine-0_frzAN5.esm.js} +1 -1
- package/dist/{stats-BpMz-hTP.esm.js → stats-C2sigf9p.esm.js} +1 -1
- package/dist/stats.esm.js +1 -1
- package/dist/step-up.d.ts +378 -0
- package/dist/step-up.esm.js +639 -0
- package/dist/textRules-D4NRinKY.d.ts +41 -0
- package/dist/{tri-BajQnjbf.esm.js → tri-DaUNvo-o.esm.js} +29 -34
- package/dist/tri.d.ts +2 -2
- package/dist/tri.esm-Df5eKLsY.esm.js +2165 -0
- package/dist/tri.esm.js +2 -2
- package/dist/{trueSightService-BujtUIW6.esm.js → trueSightService-DHYTBCIn.esm.js} +4 -4
- package/dist/trust-graph.esm.js +1 -1
- package/dist/types-B-PIc0en.d.ts +115 -0
- package/dist/{types-C397LhmN.d.ts → types-BgRHw-dR.d.ts} +1 -1
- package/dist/{types-CJ7Yl9K-.d.ts → types-Bpo97EOh.d.ts} +4 -2
- package/dist/{types-xEEWCx1j.d.ts → types-BqlZSoZ-.d.ts} +5 -5
- package/dist/types-CTaL0XJz.d.ts +80 -0
- package/dist/{types-e8fCsvvk.d.ts → types-Cbm9J2yF.d.ts} +1 -1
- package/dist/{types--3HDl2SF.d.ts → types-CgihAhT_.d.ts} +3 -3
- package/dist/{types-ZTZelfbM.d.ts → types-CyNndVAT.d.ts} +14 -6
- package/dist/{types-B2FK_wYb.d.ts → types-DEa3taWc.d.ts} +9 -41
- package/dist/{types-PTZHRhGX.d.ts → types-P9LzsfRo.d.ts} +3 -2
- package/dist/{types-DuD8TRJU.d.ts → types-TisHEbBg.d.ts} +12 -4
- package/dist/types-kLsU6Jkt.d.ts +6 -0
- package/dist/{urlUtils-eYiyWjh0.esm.js → urlUtils-B2wagB5v.esm.js} +14 -1
- package/dist/usStates-CwOQ2kAx.esm.js +209 -0
- package/dist/video-selfie.d.ts +5 -4
- package/dist/video-selfie.esm.js +9 -7
- package/dist/{videoSelfieCameraWarmer-DjkPpoj_.esm.js → videoSelfieCameraWarmer-CTOpqhov.esm.js} +16 -14
- package/dist/{videoSelfieStepDetector-RfSmlFFW.d.ts → videoSelfieStepDetector-4XE2QI5q.d.ts} +4 -4
- package/dist/virtualCameraCheck-eFOm2C9q.esm.js +27 -0
- package/dist/{warmup-BkfxQZsC.esm.js → warmup-9iKKNNuW.esm.js} +69 -20
- package/dist/{warmup-BO57syF6.d.ts → warmup-BNhIuURi.d.ts} +18 -2
- package/dist/wasm.d.ts +9 -3
- package/dist/wasm.esm.js +3 -3
- package/dist/{wasmDsFlagSync-BhU5H2oR.esm.js → wasmDsFlagSync-lRIgn5Ic.esm.js} +1 -1
- package/dist/{wasmWebClient-DTj9auyA.esm.js → wasmWebClient-C3v3s_4H.esm.js} +34 -19
- package/dist/watchlist-for-business.esm.js +2 -2
- package/dist/watchlist.esm.js +2 -2
- package/dist/{watchlistForBusinessManager-CVay6-9A.esm.js → watchlistForBusinessManager-C1S5y5yj.esm.js} +2 -2
- package/dist/{watchlistForBusinessStateMachine-DA6K5na4.esm.js → watchlistForBusinessStateMachine-Bj_hnoK5.esm.js} +1 -1
- package/dist/{watchlistManager-B8gQ_rw3.esm.js → watchlistManager-BpegtZbc.esm.js} +2 -2
- package/dist/{watchlistStateMachine-CSi_ZhtT.esm.js → watchlistStateMachine-Bgkh1gra.esm.js} +1 -1
- package/dist/workflow.d.ts +226 -41
- package/dist/workflow.esm.js +163 -67
- package/package.json +21 -5
- package/dist/addressSearch-41sMcnJk.esm.js +0 -604
- package/dist/deepsightLoader-DMxtowCm.esm.js +0 -33
- package/dist/tri.esm-CzTNi5Q_.esm.js +0 -3826
- package/dist/types-D9r3zRfY.d.ts +0 -6
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
import { t as
|
|
3
|
-
import { C as VOCABULARY, S as TAX_ID_SOURCES, _ as NAME_SOURCES, a as isFieldOptional, b as STATE_CODE_HINTS, c as toEkycConfig, d as CITY_SOURCES, f as COUNTRY_CODE_OMITTED_SOURCES, g as MIDDLE_NAME_SOURCES, h as HOUSE_NO_SOURCES, i as getEKYCFields, l as ADDRESS_STATE_SOURCES, m as EMAIL_SOURCES, n as getEKYCCountry, o as mapToEKYCvalue, p as COUNTRY_SELECTOR_DISABLED_SOURCES, r as getEKYCDisplayModes, s as resolveEkycSource, t as EKYC_GROUP_KEYS, u as APARTMENT_SOURCES, v as ONE_OF_REQUIRED_GROUPS, x as STREET_SOURCES, y as POSTAL_CODE_SOURCES } from "./ekycUtils-BFncpC4F.esm.js";
|
|
1
|
+
import { t as api, u as endpoints } from "./api-BSnbg4HO.esm.js";
|
|
2
|
+
import { t as getPhoneValidation } from "./phoneValidation-OggtfjRt.esm.js";
|
|
4
3
|
import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
5
4
|
import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { n as
|
|
9
|
-
import { n as
|
|
5
|
+
import { n as usStates, t as usStateOptions } from "./usStates-CwOQ2kAx.esm.js";
|
|
6
|
+
import { a as getPostalCodeMaxLength, c as fillFromSuggestion, l as getStreetLevelErrorForSuggestion, r as formatPostalCode, t as createBundledDefinitionSource } from "./definitionSource-BHNxbuiv.esm.js";
|
|
7
|
+
import { n as checkSupport, t as resolveForm } from "./resolveForm-f9PhUo9j.esm.js";
|
|
8
|
+
import { n as searchAddress, r as isFormDefinitionsEnabled, t as debounceSearchActor } from "./addressSearch-B_4JYKa-.esm.js";
|
|
9
|
+
import { C as TAX_ID_SOURCES, S as STREET_SOURCES, _ as MIDDLE_NAME_SOURCES, a as getEKYCFields, b as POSTAL_CODE_SOURCES, c as resolveEkycSource, d as APARTMENT_SOURCES, f as CITY_SOURCES, g as HOUSE_NO_SOURCES, h as EMAIL_SOURCES, i as getEKYCDisplayModes, l as toEkycConfig, m as COUNTRY_SELECTOR_DISABLED_SOURCES, o as isFieldOptional, p as COUNTRY_CODE_OMITTED_SOURCES, r as getEKYCCountry, s as mapToEKYCvalue, t as EKYC_GROUP_KEYS, u as ADDRESS_STATE_SOURCES, v as NAME_SOURCES, w as VOCABULARY, x as STATE_CODE_HINTS, y as ONE_OF_REQUIRED_GROUPS } from "./ekycUtils-Dcff8BOD.esm.js";
|
|
10
|
+
import { t as DateFormattingProvider } from "./DateFormattingProvider-DPq9zco-.esm.js";
|
|
11
|
+
import { n as CHARACTER_CLASSES, t as formatPhoneE164 } from "./phoneFormat-DEpESpz2.esm.js";
|
|
12
|
+
import { a as formatPhoneNational, c as oneOfRequiredErrorKey, i as cleanName, l as validateEkycField, n as projectRules, o as formatSSN, s as loadPhoneValidator, t as RULES, u as validateEkycForm } from "./ekycRules-BLX7Elcb.esm.js";
|
|
10
13
|
//#region src/internal/forms/resolvePrefill.ts
|
|
11
14
|
const DISPLAY_MODES = /* @__PURE__ */ new Set([
|
|
12
15
|
"editable",
|
|
@@ -88,302 +91,125 @@ function resolvePrefill(form, context, data, checks) {
|
|
|
88
91
|
values
|
|
89
92
|
};
|
|
90
93
|
}
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
key: "verification.errors.digitsOneOf",
|
|
200
|
-
params: { lengths: rule.lengths }
|
|
201
|
-
};
|
|
202
|
-
return {
|
|
203
|
-
key: "verification.errors.digitsBetween",
|
|
204
|
-
params: {
|
|
205
|
-
min: rule.min ?? 0,
|
|
206
|
-
max: rule.max ?? 0
|
|
207
|
-
}
|
|
208
|
-
};
|
|
209
|
-
};
|
|
210
|
-
/**
|
|
211
|
-
* A national ID check: blank passes, anything else must satisfy `isValid`.
|
|
212
|
-
* The error is the vocabulary's message for these rules; a definition names
|
|
213
|
-
* its own with the rule's `message`.
|
|
214
|
-
*/
|
|
215
|
-
const idNumberValidator = (isValid) => (value) => {
|
|
216
|
-
if (value.trim().length === 0) return void 0;
|
|
217
|
-
if (isValid(value)) return void 0;
|
|
218
|
-
return { key: INVALID_ID_NUMBER_KEY };
|
|
219
|
-
};
|
|
220
|
-
const normalizeFieldValue = (value) => typeof value === "string" ? value : String(value ?? "");
|
|
221
|
-
const SSN_FORMAT_REGEX = /^\d{3}-\d{2}-\d{4}$/;
|
|
222
|
-
const EMAIL_FORMAT_REGEX = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
|
|
223
|
-
const buildPostalCodeParams = (country) => {
|
|
224
|
-
const fixedLen = FIXED_DIGIT_POSTAL_CODE_LENGTH[country];
|
|
225
|
-
if (fixedLen !== void 0) return { length: fixedLen };
|
|
226
|
-
let maxLen = getPostalCodeMaxLength(country);
|
|
227
|
-
if (country === "US" || country === "BR") maxLen = maxLen - 1;
|
|
228
|
-
return { maxLength: maxLen };
|
|
229
|
-
};
|
|
230
|
-
const requiredError = (field) => {
|
|
231
|
-
const fieldName = field.displayLabel ?? field.label;
|
|
232
|
-
return fieldName ? {
|
|
233
|
-
key: DYNAMIC_REQUIRED_KEY,
|
|
234
|
-
params: { fieldName }
|
|
235
|
-
} : { key: DYNAMIC_REQUIRED_KEY };
|
|
236
|
-
};
|
|
237
|
-
const isFilled = (values, name) => normalizeFieldValue(values[name]).trim().length > 0;
|
|
238
|
-
const createValidators = () => {
|
|
239
|
-
const validators = {
|
|
240
|
-
required: (value, _rule, field) => {
|
|
241
|
-
if (value.trim().length > 0) return void 0;
|
|
242
|
-
return requiredError(field);
|
|
243
|
-
},
|
|
244
|
-
requiredIfFilled: (value, rule, field, values) => {
|
|
245
|
-
if (rule.type !== "requiredIfFilled") return void 0;
|
|
246
|
-
if (value.trim().length > 0) return void 0;
|
|
247
|
-
return rule.fields.some((name) => isFilled(values, name)) ? requiredError(field) : void 0;
|
|
248
|
-
},
|
|
249
|
-
rulesByOption: (value, rule, field, values) => {
|
|
250
|
-
if (rule.type !== "rulesByOption") return void 0;
|
|
251
|
-
if (value.trim().length === 0) return void 0;
|
|
252
|
-
const option = normalizeFieldValue(values[rule.selector]).trim();
|
|
253
|
-
const rules = Object.prototype.hasOwnProperty.call(rule.cases, option) ? rule.cases[option] : void 0;
|
|
254
|
-
return evaluateRules(value, rules, field, values, validators);
|
|
255
|
-
},
|
|
256
|
-
streetLevelRequired: (value) => {
|
|
257
|
-
if (value.trim().length > 0) return void 0;
|
|
258
|
-
return STREET_LEVEL_REQUIRED_ERROR;
|
|
259
|
-
},
|
|
260
|
-
cpf: (value) => {
|
|
261
|
-
if (value.trim().length === 0) return void 0;
|
|
262
|
-
return validateCPF(value) ? void 0 : { key: "verification.errors.invalidTaxId" };
|
|
263
|
-
},
|
|
264
|
-
ssnFormat: (value) => {
|
|
265
|
-
if (value.trim().length === 0) return void 0;
|
|
266
|
-
return SSN_FORMAT_REGEX.test(value) ? void 0 : { key: "verification.errors.ssnFormat" };
|
|
267
|
-
},
|
|
268
|
-
noPoBox: (value) => {
|
|
269
|
-
if (value.trim().length === 0) return void 0;
|
|
270
|
-
return isPoBox(value) ? { key: "verification.errors.poBox" } : void 0;
|
|
271
|
-
},
|
|
272
|
-
postalCodeFormat: (value, rule) => {
|
|
273
|
-
if (rule.type !== "postalCodeFormat") return void 0;
|
|
274
|
-
if (value.trim().length === 0) return void 0;
|
|
275
|
-
if (validatePostalCode(value, rule.country)) return void 0;
|
|
276
|
-
return {
|
|
277
|
-
key: getPostalCodeErrorKey(rule.country),
|
|
278
|
-
params: buildPostalCodeParams(rule.country)
|
|
279
|
-
};
|
|
280
|
-
},
|
|
281
|
-
phoneFormat: (value, rule) => {
|
|
282
|
-
if (rule.type !== "phoneFormat") return void 0;
|
|
283
|
-
const trimmed = value.trim();
|
|
284
|
-
if (rule.optional && trimmed.length === 0) return void 0;
|
|
285
|
-
return validatePhone(trimmed, rule.country) ? void 0 : { key: "verification.errors.phoneInvalid" };
|
|
286
|
-
},
|
|
287
|
-
emailFormat: (value) => {
|
|
288
|
-
if (value.trim().length === 0) return void 0;
|
|
289
|
-
return EMAIL_FORMAT_REGEX.test(value) ? void 0 : { key: "verification.errors.emailInvalid" };
|
|
290
|
-
},
|
|
291
|
-
exactLength: (value, rule) => {
|
|
292
|
-
if (rule.type !== "exactLength") return void 0;
|
|
293
|
-
if (value.trim().length === 0) return void 0;
|
|
294
|
-
return value.length === rule.length ? void 0 : { key: "verification.errors.exactly10Characters" };
|
|
295
|
-
},
|
|
296
|
-
nameCharacters: (value) => {
|
|
297
|
-
if (value.trim().length === 0) return void 0;
|
|
298
|
-
return hasNameCharacters(value.trim()) ? void 0 : { key: "verification.errors.nameCharacters" };
|
|
299
|
-
},
|
|
300
|
-
notFuture: (value) => {
|
|
301
|
-
if (value.trim().length === 0) return void 0;
|
|
302
|
-
return isNotFuture(value.trim(), getLocalIsoDate()) ? void 0 : { key: "verification.errors.futureDate" };
|
|
303
|
-
},
|
|
304
|
-
phoneDigits: (value, rule) => {
|
|
305
|
-
if (rule.type !== "phoneDigits") return void 0;
|
|
306
|
-
const trimmed = value.trim();
|
|
307
|
-
if (trimmed.length === 0) return void 0;
|
|
308
|
-
const national = getPhoneValidation()?.nationalNumber(trimmed, rule.country);
|
|
309
|
-
if (!national) return { key: PHONE_INVALID_KEY };
|
|
310
|
-
return national.length >= rule.min && national.length <= rule.max ? void 0 : { key: PHONE_INVALID_KEY };
|
|
311
|
-
},
|
|
312
|
-
digitCount: (value, rule) => {
|
|
313
|
-
if (rule.type !== "digitCount") return void 0;
|
|
314
|
-
if (value.trim().length === 0) return void 0;
|
|
315
|
-
return hasDigitCount(value.trim(), rule) ? void 0 : digitCountError(rule);
|
|
316
|
-
},
|
|
317
|
-
allowedCharacters: (value, rule) => {
|
|
318
|
-
if (rule.type !== "allowedCharacters") return void 0;
|
|
319
|
-
if (value.trim().length === 0) return void 0;
|
|
320
|
-
return hasAllowedCharacters(value.trim(), rule.classes, rule.extra) ? void 0 : { key: "verification.errors.invalidCharacters" };
|
|
321
|
-
},
|
|
322
|
-
charTemplate: (value, rule) => {
|
|
323
|
-
if (rule.type !== "charTemplate") return void 0;
|
|
324
|
-
if (value.trim().length === 0) return void 0;
|
|
325
|
-
return matchesCharTemplate(value.trim(), rule.templates, rule.ignoreCase) ? void 0 : { key: "verification.errors.invalidFormat" };
|
|
326
|
-
},
|
|
327
|
-
numericRange: (value, rule) => {
|
|
328
|
-
if (rule.type !== "numericRange") return void 0;
|
|
329
|
-
if (value.trim().length === 0) return void 0;
|
|
330
|
-
return isInNumericRange(value.trim(), rule.min, rule.max) ? void 0 : {
|
|
331
|
-
key: "verification.errors.numberBetween",
|
|
332
|
-
params: {
|
|
333
|
-
min: rule.min,
|
|
334
|
-
max: rule.max
|
|
335
|
-
}
|
|
336
|
-
};
|
|
337
|
-
},
|
|
338
|
-
rut: idNumberValidator(isValidRut),
|
|
339
|
-
esDni: idNumberValidator(isValidEsDni),
|
|
340
|
-
fiPersonalIdentityCode: idNumberValidator(isValidFiPersonalIdentityCode),
|
|
341
|
-
inDrivingLicenseNumber: idNumberValidator(isValidInDrivingLicenseNumber),
|
|
342
|
-
curp: idNumberValidator((value) => isValidCurp(value.trim())),
|
|
343
|
-
oneOfRequired: (_value, rule, _field, values) => {
|
|
344
|
-
if (rule.type !== "oneOfRequired") return void 0;
|
|
345
|
-
return rule.fields.some((name) => isFilled(values, name)) ? void 0 : { key: oneOfRequiredErrorKey(rule) };
|
|
346
|
-
}
|
|
347
|
-
};
|
|
348
|
-
return validators;
|
|
349
|
-
};
|
|
350
|
-
/**
|
|
351
|
-
* A rule's own message key shows instead of the validator's, keeping its
|
|
352
|
-
* params. `oneOfRequired` already shows its message.
|
|
353
|
-
*/
|
|
354
|
-
const withRuleMessage = (error, rule) => !rule.message || error.key === rule.message ? error : {
|
|
355
|
-
...error,
|
|
356
|
-
key: rule.message
|
|
357
|
-
};
|
|
358
|
-
const evaluateRules = (value, rules, field, values, validators) => {
|
|
359
|
-
if (!rules) return void 0;
|
|
360
|
-
for (const rule of rules) {
|
|
361
|
-
const error = validators[rule.type](value, rule, field, values);
|
|
362
|
-
if (error) return withRuleMessage(error, rule);
|
|
94
|
+
const brStateOptions = Object.values({
|
|
95
|
+
AC: {
|
|
96
|
+
code: "AC",
|
|
97
|
+
name: "Acre"
|
|
98
|
+
},
|
|
99
|
+
AL: {
|
|
100
|
+
code: "AL",
|
|
101
|
+
name: "Alagoas"
|
|
102
|
+
},
|
|
103
|
+
AP: {
|
|
104
|
+
code: "AP",
|
|
105
|
+
name: "Amapá"
|
|
106
|
+
},
|
|
107
|
+
AM: {
|
|
108
|
+
code: "AM",
|
|
109
|
+
name: "Amazonas"
|
|
110
|
+
},
|
|
111
|
+
BA: {
|
|
112
|
+
code: "BA",
|
|
113
|
+
name: "Bahia"
|
|
114
|
+
},
|
|
115
|
+
CE: {
|
|
116
|
+
code: "CE",
|
|
117
|
+
name: "Ceará"
|
|
118
|
+
},
|
|
119
|
+
DF: {
|
|
120
|
+
code: "DF",
|
|
121
|
+
name: "Distrito Federal"
|
|
122
|
+
},
|
|
123
|
+
ES: {
|
|
124
|
+
code: "ES",
|
|
125
|
+
name: "Espírito Santo"
|
|
126
|
+
},
|
|
127
|
+
GO: {
|
|
128
|
+
code: "GO",
|
|
129
|
+
name: "Goiás"
|
|
130
|
+
},
|
|
131
|
+
MA: {
|
|
132
|
+
code: "MA",
|
|
133
|
+
name: "Maranhão"
|
|
134
|
+
},
|
|
135
|
+
MT: {
|
|
136
|
+
code: "MT",
|
|
137
|
+
name: "Mato Grosso"
|
|
138
|
+
},
|
|
139
|
+
MS: {
|
|
140
|
+
code: "MS",
|
|
141
|
+
name: "Mato Grosso do Sul"
|
|
142
|
+
},
|
|
143
|
+
MG: {
|
|
144
|
+
code: "MG",
|
|
145
|
+
name: "Minas Gerais"
|
|
146
|
+
},
|
|
147
|
+
PA: {
|
|
148
|
+
code: "PA",
|
|
149
|
+
name: "Pará"
|
|
150
|
+
},
|
|
151
|
+
PB: {
|
|
152
|
+
code: "PB",
|
|
153
|
+
name: "Paraíba"
|
|
154
|
+
},
|
|
155
|
+
PR: {
|
|
156
|
+
code: "PR",
|
|
157
|
+
name: "Paraná"
|
|
158
|
+
},
|
|
159
|
+
PE: {
|
|
160
|
+
code: "PE",
|
|
161
|
+
name: "Pernambuco"
|
|
162
|
+
},
|
|
163
|
+
PI: {
|
|
164
|
+
code: "PI",
|
|
165
|
+
name: "Piauí"
|
|
166
|
+
},
|
|
167
|
+
RJ: {
|
|
168
|
+
code: "RJ",
|
|
169
|
+
name: "Rio de Janeiro"
|
|
170
|
+
},
|
|
171
|
+
RN: {
|
|
172
|
+
code: "RN",
|
|
173
|
+
name: "Rio Grande do Norte"
|
|
174
|
+
},
|
|
175
|
+
RS: {
|
|
176
|
+
code: "RS",
|
|
177
|
+
name: "Rio Grande do Sul"
|
|
178
|
+
},
|
|
179
|
+
RO: {
|
|
180
|
+
code: "RO",
|
|
181
|
+
name: "Rondônia"
|
|
182
|
+
},
|
|
183
|
+
RR: {
|
|
184
|
+
code: "RR",
|
|
185
|
+
name: "Roraima"
|
|
186
|
+
},
|
|
187
|
+
SC: {
|
|
188
|
+
code: "SC",
|
|
189
|
+
name: "Santa Catarina"
|
|
190
|
+
},
|
|
191
|
+
SP: {
|
|
192
|
+
code: "SP",
|
|
193
|
+
name: "São Paulo"
|
|
194
|
+
},
|
|
195
|
+
SE: {
|
|
196
|
+
code: "SE",
|
|
197
|
+
name: "Sergipe"
|
|
198
|
+
},
|
|
199
|
+
TO: {
|
|
200
|
+
code: "TO",
|
|
201
|
+
name: "Tocantins"
|
|
363
202
|
}
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
const value = normalizeFieldValue(values[field.name]);
|
|
369
|
-
const error = evaluateRules(value, field.validation, field, values, validators);
|
|
370
|
-
if (error) errors[field.name] = error;
|
|
371
|
-
return errors;
|
|
372
|
-
}, {});
|
|
373
|
-
}
|
|
374
|
-
function validateEkycField(values, fieldName, fields) {
|
|
375
|
-
const field = fields.find((f) => f.name === fieldName);
|
|
376
|
-
if (!field) return void 0;
|
|
377
|
-
const validators = createValidators();
|
|
378
|
-
const value = normalizeFieldValue(values[field.name]);
|
|
379
|
-
return evaluateRules(value, field.validation, field, values, validators);
|
|
380
|
-
}
|
|
203
|
+
}).map((state) => ({
|
|
204
|
+
value: state.code,
|
|
205
|
+
label: state.name
|
|
206
|
+
}));
|
|
381
207
|
//#endregion
|
|
382
208
|
//#region ../form-definitions/generated/ekyc.ts
|
|
383
209
|
const EKYC_DEFINITIONS = {
|
|
384
210
|
"ekyc/AR/AR_CREDIT_BUR_1": {
|
|
385
211
|
schemaVersion: 1,
|
|
386
|
-
vocabulary: "1.
|
|
212
|
+
vocabulary: "1.3",
|
|
387
213
|
id: "ekyc/AR/AR_CREDIT_BUR_1",
|
|
388
214
|
module: "ekyc",
|
|
389
215
|
country: "AR",
|
|
@@ -438,7 +264,10 @@ const EKYC_DEFINITIONS = {
|
|
|
438
264
|
required: true,
|
|
439
265
|
label: { key: "verification.labels.dateOfBirth" },
|
|
440
266
|
input: { autofill: "birthday" },
|
|
441
|
-
rules: [{
|
|
267
|
+
rules: [{
|
|
268
|
+
id: "maxAge",
|
|
269
|
+
params: { years: 120 }
|
|
270
|
+
}, { id: "notFuture" }],
|
|
442
271
|
prefill: ["document.birthDate"]
|
|
443
272
|
},
|
|
444
273
|
{
|
|
@@ -485,6 +314,7 @@ const EKYC_DEFINITIONS = {
|
|
|
485
314
|
id: "digitCount",
|
|
486
315
|
params: { lengths: [8] }
|
|
487
316
|
}],
|
|
317
|
+
payload: { key: "idNumber" },
|
|
488
318
|
prefill: ["document.documentNumber"]
|
|
489
319
|
},
|
|
490
320
|
{
|
|
@@ -500,6 +330,7 @@ const EKYC_DEFINITIONS = {
|
|
|
500
330
|
id: "digitCount",
|
|
501
331
|
params: { lengths: [11] }
|
|
502
332
|
}],
|
|
333
|
+
payload: { key: "idNumber1" },
|
|
503
334
|
prefill: ["document.personalNumber"]
|
|
504
335
|
},
|
|
505
336
|
{
|
|
@@ -586,7 +417,7 @@ const EKYC_DEFINITIONS = {
|
|
|
586
417
|
},
|
|
587
418
|
"ekyc/AR/AR_RES_REGISTER": {
|
|
588
419
|
schemaVersion: 1,
|
|
589
|
-
vocabulary: "1.
|
|
420
|
+
vocabulary: "1.3",
|
|
590
421
|
id: "ekyc/AR/AR_RES_REGISTER",
|
|
591
422
|
module: "ekyc",
|
|
592
423
|
country: "AR",
|
|
@@ -640,7 +471,10 @@ const EKYC_DEFINITIONS = {
|
|
|
640
471
|
group: "dateOfBirth",
|
|
641
472
|
label: { key: "verification.labels.dateOfBirth" },
|
|
642
473
|
input: { autofill: "birthday" },
|
|
643
|
-
rules: [{
|
|
474
|
+
rules: [{
|
|
475
|
+
id: "maxAge",
|
|
476
|
+
params: { years: 120 }
|
|
477
|
+
}, { id: "notFuture" }],
|
|
644
478
|
prefill: ["document.birthDate"]
|
|
645
479
|
},
|
|
646
480
|
{
|
|
@@ -754,7 +588,7 @@ const EKYC_DEFINITIONS = {
|
|
|
754
588
|
},
|
|
755
589
|
"ekyc/BE/BE_CREDIT_TELCO": {
|
|
756
590
|
schemaVersion: 1,
|
|
757
|
-
vocabulary: "1.
|
|
591
|
+
vocabulary: "1.3",
|
|
758
592
|
id: "ekyc/BE/BE_CREDIT_TELCO",
|
|
759
593
|
module: "ekyc",
|
|
760
594
|
country: "BE",
|
|
@@ -795,7 +629,10 @@ const EKYC_DEFINITIONS = {
|
|
|
795
629
|
group: "dateOfBirth",
|
|
796
630
|
label: { key: "verification.labels.dateOfBirth" },
|
|
797
631
|
input: { autofill: "birthday" },
|
|
798
|
-
rules: [{
|
|
632
|
+
rules: [{
|
|
633
|
+
id: "maxAge",
|
|
634
|
+
params: { years: 120 }
|
|
635
|
+
}, { id: "notFuture" }],
|
|
799
636
|
prefill: ["document.birthDate"]
|
|
800
637
|
},
|
|
801
638
|
{
|
|
@@ -914,7 +751,7 @@ const EKYC_DEFINITIONS = {
|
|
|
914
751
|
},
|
|
915
752
|
"ekyc/BR/BR_GOVT_1": {
|
|
916
753
|
schemaVersion: 1,
|
|
917
|
-
vocabulary: "1.
|
|
754
|
+
vocabulary: "1.3",
|
|
918
755
|
id: "ekyc/BR/BR_GOVT_1",
|
|
919
756
|
module: "ekyc",
|
|
920
757
|
country: "BR",
|
|
@@ -956,7 +793,10 @@ const EKYC_DEFINITIONS = {
|
|
|
956
793
|
required: true,
|
|
957
794
|
label: { key: "verification.labels.dateOfBirth" },
|
|
958
795
|
input: { autofill: "birthday" },
|
|
959
|
-
rules: [{
|
|
796
|
+
rules: [{
|
|
797
|
+
id: "maxAge",
|
|
798
|
+
params: { years: 120 }
|
|
799
|
+
}, { id: "notFuture" }],
|
|
960
800
|
prefill: ["document.birthDate"]
|
|
961
801
|
},
|
|
962
802
|
{
|
|
@@ -1053,15 +893,14 @@ const EKYC_DEFINITIONS = {
|
|
|
1053
893
|
},
|
|
1054
894
|
{
|
|
1055
895
|
name: "state",
|
|
1056
|
-
kind: "
|
|
896
|
+
kind: "choice",
|
|
1057
897
|
group: "address",
|
|
1058
898
|
section: "address",
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
params: { states: "RJ, SP" }
|
|
1063
|
-
},
|
|
899
|
+
widget: "select",
|
|
900
|
+
label: { key: "verification.labels.chooseState" },
|
|
901
|
+
placeholder: { key: "verification.placeholder.state" },
|
|
1064
902
|
input: { autofill: "addressLevel1" },
|
|
903
|
+
optionsRef: "BR_STATES",
|
|
1065
904
|
payload: { transforms: [{ id: "uppercase" }] },
|
|
1066
905
|
prefill: ["document.state", "poa.state"]
|
|
1067
906
|
},
|
|
@@ -1093,7 +932,7 @@ const EKYC_DEFINITIONS = {
|
|
|
1093
932
|
},
|
|
1094
933
|
"ekyc/BR/BR_TAX_PHONE_REGISTER": {
|
|
1095
934
|
schemaVersion: 1,
|
|
1096
|
-
vocabulary: "1.
|
|
935
|
+
vocabulary: "1.3",
|
|
1097
936
|
id: "ekyc/BR/BR_TAX_PHONE_REGISTER",
|
|
1098
937
|
module: "ekyc",
|
|
1099
938
|
country: "BR",
|
|
@@ -1147,7 +986,10 @@ const EKYC_DEFINITIONS = {
|
|
|
1147
986
|
group: "dateOfBirth",
|
|
1148
987
|
label: { key: "verification.labels.dateOfBirth" },
|
|
1149
988
|
input: { autofill: "birthday" },
|
|
1150
|
-
rules: [{
|
|
989
|
+
rules: [{
|
|
990
|
+
id: "maxAge",
|
|
991
|
+
params: { years: 120 }
|
|
992
|
+
}, { id: "notFuture" }],
|
|
1151
993
|
prefill: ["document.birthDate"]
|
|
1152
994
|
},
|
|
1153
995
|
{
|
|
@@ -1236,15 +1078,14 @@ const EKYC_DEFINITIONS = {
|
|
|
1236
1078
|
},
|
|
1237
1079
|
{
|
|
1238
1080
|
name: "state",
|
|
1239
|
-
kind: "
|
|
1081
|
+
kind: "choice",
|
|
1240
1082
|
group: "address",
|
|
1241
1083
|
section: "address",
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
params: { states: "RJ, SP" }
|
|
1246
|
-
},
|
|
1084
|
+
widget: "select",
|
|
1085
|
+
label: { key: "verification.labels.chooseState" },
|
|
1086
|
+
placeholder: { key: "verification.placeholder.state" },
|
|
1247
1087
|
input: { autofill: "addressLevel1" },
|
|
1088
|
+
optionsRef: "BR_STATES",
|
|
1248
1089
|
payload: { transforms: [{ id: "uppercase" }] },
|
|
1249
1090
|
prefill: ["document.state", "poa.state"]
|
|
1250
1091
|
},
|
|
@@ -1276,7 +1117,7 @@ const EKYC_DEFINITIONS = {
|
|
|
1276
1117
|
},
|
|
1277
1118
|
"ekyc/CA/CA_CREDIT_FINTRAC": {
|
|
1278
1119
|
schemaVersion: 1,
|
|
1279
|
-
vocabulary: "1.
|
|
1120
|
+
vocabulary: "1.3",
|
|
1280
1121
|
id: "ekyc/CA/CA_CREDIT_FINTRAC",
|
|
1281
1122
|
module: "ekyc",
|
|
1282
1123
|
country: "CA",
|
|
@@ -1331,7 +1172,10 @@ const EKYC_DEFINITIONS = {
|
|
|
1331
1172
|
required: true,
|
|
1332
1173
|
label: { key: "verification.labels.dateOfBirth" },
|
|
1333
1174
|
input: { autofill: "birthday" },
|
|
1334
|
-
rules: [{
|
|
1175
|
+
rules: [{
|
|
1176
|
+
id: "maxAge",
|
|
1177
|
+
params: { years: 120 }
|
|
1178
|
+
}, { id: "notFuture" }],
|
|
1335
1179
|
prefill: ["document.birthDate"]
|
|
1336
1180
|
},
|
|
1337
1181
|
{
|
|
@@ -1435,7 +1279,7 @@ const EKYC_DEFINITIONS = {
|
|
|
1435
1279
|
},
|
|
1436
1280
|
"ekyc/CA/CA_RES_CREDIT": {
|
|
1437
1281
|
schemaVersion: 1,
|
|
1438
|
-
vocabulary: "1.
|
|
1282
|
+
vocabulary: "1.3",
|
|
1439
1283
|
id: "ekyc/CA/CA_RES_CREDIT",
|
|
1440
1284
|
module: "ekyc",
|
|
1441
1285
|
country: "CA",
|
|
@@ -1490,7 +1334,10 @@ const EKYC_DEFINITIONS = {
|
|
|
1490
1334
|
required: true,
|
|
1491
1335
|
label: { key: "verification.labels.dateOfBirth" },
|
|
1492
1336
|
input: { autofill: "birthday" },
|
|
1493
|
-
rules: [{
|
|
1337
|
+
rules: [{
|
|
1338
|
+
id: "maxAge",
|
|
1339
|
+
params: { years: 120 }
|
|
1340
|
+
}, { id: "notFuture" }],
|
|
1494
1341
|
prefill: ["document.birthDate"]
|
|
1495
1342
|
},
|
|
1496
1343
|
{
|
|
@@ -1613,7 +1460,7 @@ const EKYC_DEFINITIONS = {
|
|
|
1613
1460
|
},
|
|
1614
1461
|
"ekyc/CA/CA_TELCO": {
|
|
1615
1462
|
schemaVersion: 1,
|
|
1616
|
-
vocabulary: "1.
|
|
1463
|
+
vocabulary: "1.3",
|
|
1617
1464
|
id: "ekyc/CA/CA_TELCO",
|
|
1618
1465
|
module: "ekyc",
|
|
1619
1466
|
country: "CA",
|
|
@@ -1655,7 +1502,10 @@ const EKYC_DEFINITIONS = {
|
|
|
1655
1502
|
required: true,
|
|
1656
1503
|
label: { key: "verification.labels.dateOfBirth" },
|
|
1657
1504
|
input: { autofill: "birthday" },
|
|
1658
|
-
rules: [{
|
|
1505
|
+
rules: [{
|
|
1506
|
+
id: "maxAge",
|
|
1507
|
+
params: { years: 120 }
|
|
1508
|
+
}, { id: "notFuture" }],
|
|
1659
1509
|
prefill: ["document.birthDate"]
|
|
1660
1510
|
},
|
|
1661
1511
|
{
|
|
@@ -1830,6 +1680,7 @@ const EKYC_DEFINITIONS = {
|
|
|
1830
1680
|
format: [{ id: "stripSeparators" }, { id: "uppercase" }]
|
|
1831
1681
|
},
|
|
1832
1682
|
rules: [{ id: "rut" }],
|
|
1683
|
+
payload: { key: "idNumber" },
|
|
1833
1684
|
prefill: ["document.documentNumber"]
|
|
1834
1685
|
}
|
|
1835
1686
|
],
|
|
@@ -1843,7 +1694,7 @@ const EKYC_DEFINITIONS = {
|
|
|
1843
1694
|
},
|
|
1844
1695
|
"ekyc/CO/CO_CIVIL_REGISTER_1": {
|
|
1845
1696
|
schemaVersion: 1,
|
|
1846
|
-
vocabulary: "1.
|
|
1697
|
+
vocabulary: "1.3",
|
|
1847
1698
|
id: "ekyc/CO/CO_CIVIL_REGISTER_1",
|
|
1848
1699
|
module: "ekyc",
|
|
1849
1700
|
country: "CO",
|
|
@@ -1900,7 +1751,10 @@ const EKYC_DEFINITIONS = {
|
|
|
1900
1751
|
group: "dateOfBirth",
|
|
1901
1752
|
label: { key: "verification.labels.dateOfBirth" },
|
|
1902
1753
|
input: { autofill: "birthday" },
|
|
1903
|
-
rules: [{
|
|
1754
|
+
rules: [{
|
|
1755
|
+
id: "maxAge",
|
|
1756
|
+
params: { years: 120 }
|
|
1757
|
+
}, { id: "notFuture" }],
|
|
1904
1758
|
prefill: ["document.birthDate"]
|
|
1905
1759
|
},
|
|
1906
1760
|
{
|
|
@@ -1943,6 +1797,7 @@ const EKYC_DEFINITIONS = {
|
|
|
1943
1797
|
id: "digitCount",
|
|
1944
1798
|
params: { lengths: [8, 10] }
|
|
1945
1799
|
}],
|
|
1800
|
+
payload: { key: "idNumber" },
|
|
1946
1801
|
prefill: ["document.documentNumber"]
|
|
1947
1802
|
},
|
|
1948
1803
|
{
|
|
@@ -1979,7 +1834,7 @@ const EKYC_DEFINITIONS = {
|
|
|
1979
1834
|
},
|
|
1980
1835
|
"ekyc/DE/DE_PHONE_MOBILE_REGISTER": {
|
|
1981
1836
|
schemaVersion: 1,
|
|
1982
|
-
vocabulary: "1.
|
|
1837
|
+
vocabulary: "1.3",
|
|
1983
1838
|
id: "ekyc/DE/DE_PHONE_MOBILE_REGISTER",
|
|
1984
1839
|
module: "ekyc",
|
|
1985
1840
|
country: "DE",
|
|
@@ -2033,7 +1888,10 @@ const EKYC_DEFINITIONS = {
|
|
|
2033
1888
|
group: "dateOfBirth",
|
|
2034
1889
|
label: { key: "verification.labels.dateOfBirth" },
|
|
2035
1890
|
input: { autofill: "birthday" },
|
|
2036
|
-
rules: [{
|
|
1891
|
+
rules: [{
|
|
1892
|
+
id: "maxAge",
|
|
1893
|
+
params: { years: 120 }
|
|
1894
|
+
}, { id: "notFuture" }],
|
|
2037
1895
|
prefill: ["document.birthDate"]
|
|
2038
1896
|
},
|
|
2039
1897
|
{
|
|
@@ -2123,7 +1981,7 @@ const EKYC_DEFINITIONS = {
|
|
|
2123
1981
|
},
|
|
2124
1982
|
"ekyc/DK/DK_CIVIL_REG_CREDIT_TELCO": {
|
|
2125
1983
|
schemaVersion: 1,
|
|
2126
|
-
vocabulary: "1.
|
|
1984
|
+
vocabulary: "1.3",
|
|
2127
1985
|
id: "ekyc/DK/DK_CIVIL_REG_CREDIT_TELCO",
|
|
2128
1986
|
module: "ekyc",
|
|
2129
1987
|
country: "DK",
|
|
@@ -2164,7 +2022,10 @@ const EKYC_DEFINITIONS = {
|
|
|
2164
2022
|
group: "dateOfBirth",
|
|
2165
2023
|
label: { key: "verification.labels.dateOfBirth" },
|
|
2166
2024
|
input: { autofill: "birthday" },
|
|
2167
|
-
rules: [{
|
|
2025
|
+
rules: [{
|
|
2026
|
+
id: "maxAge",
|
|
2027
|
+
params: { years: 120 }
|
|
2028
|
+
}, { id: "notFuture" }],
|
|
2168
2029
|
prefill: ["document.birthDate"]
|
|
2169
2030
|
},
|
|
2170
2031
|
{
|
|
@@ -2247,7 +2108,7 @@ const EKYC_DEFINITIONS = {
|
|
|
2247
2108
|
},
|
|
2248
2109
|
"ekyc/ES/ES_PHONE_REGISTER_2": {
|
|
2249
2110
|
schemaVersion: 1,
|
|
2250
|
-
vocabulary: "1.
|
|
2111
|
+
vocabulary: "1.3",
|
|
2251
2112
|
id: "ekyc/ES/ES_PHONE_REGISTER_2",
|
|
2252
2113
|
module: "ekyc",
|
|
2253
2114
|
country: "ES",
|
|
@@ -2301,7 +2162,10 @@ const EKYC_DEFINITIONS = {
|
|
|
2301
2162
|
group: "dateOfBirth",
|
|
2302
2163
|
label: { key: "verification.labels.dateOfBirth" },
|
|
2303
2164
|
input: { autofill: "birthday" },
|
|
2304
|
-
rules: [{
|
|
2165
|
+
rules: [{
|
|
2166
|
+
id: "maxAge",
|
|
2167
|
+
params: { years: 120 }
|
|
2168
|
+
}, { id: "notFuture" }],
|
|
2305
2169
|
prefill: ["document.birthDate"]
|
|
2306
2170
|
},
|
|
2307
2171
|
{
|
|
@@ -2346,6 +2210,7 @@ const EKYC_DEFINITIONS = {
|
|
|
2346
2210
|
format: [{ id: "stripSeparators" }, { id: "uppercase" }]
|
|
2347
2211
|
},
|
|
2348
2212
|
rules: [{ id: "esDni" }],
|
|
2213
|
+
payload: { key: "idNumber" },
|
|
2349
2214
|
prefill: ["document.documentNumber"]
|
|
2350
2215
|
},
|
|
2351
2216
|
{
|
|
@@ -2422,7 +2287,7 @@ const EKYC_DEFINITIONS = {
|
|
|
2422
2287
|
},
|
|
2423
2288
|
"ekyc/FI/FI_CONSUMER_POP_REG_TELCO": {
|
|
2424
2289
|
schemaVersion: 1,
|
|
2425
|
-
vocabulary: "1.
|
|
2290
|
+
vocabulary: "1.3",
|
|
2426
2291
|
id: "ekyc/FI/FI_CONSUMER_POP_REG_TELCO",
|
|
2427
2292
|
module: "ekyc",
|
|
2428
2293
|
country: "FI",
|
|
@@ -2463,7 +2328,10 @@ const EKYC_DEFINITIONS = {
|
|
|
2463
2328
|
group: "dateOfBirth",
|
|
2464
2329
|
label: { key: "verification.labels.dateOfBirth" },
|
|
2465
2330
|
input: { autofill: "birthday" },
|
|
2466
|
-
rules: [{
|
|
2331
|
+
rules: [{
|
|
2332
|
+
id: "maxAge",
|
|
2333
|
+
params: { years: 120 }
|
|
2334
|
+
}, { id: "notFuture" }],
|
|
2467
2335
|
prefill: ["document.birthDate"]
|
|
2468
2336
|
},
|
|
2469
2337
|
{
|
|
@@ -2571,7 +2439,7 @@ const EKYC_DEFINITIONS = {
|
|
|
2571
2439
|
},
|
|
2572
2440
|
"ekyc/FI/FI_NATIONAL_ID": {
|
|
2573
2441
|
schemaVersion: 1,
|
|
2574
|
-
vocabulary: "1.
|
|
2442
|
+
vocabulary: "1.3",
|
|
2575
2443
|
id: "ekyc/FI/FI_NATIONAL_ID",
|
|
2576
2444
|
module: "ekyc",
|
|
2577
2445
|
country: "FI",
|
|
@@ -2613,7 +2481,10 @@ const EKYC_DEFINITIONS = {
|
|
|
2613
2481
|
required: true,
|
|
2614
2482
|
label: { key: "verification.labels.dateOfBirth" },
|
|
2615
2483
|
input: { autofill: "birthday" },
|
|
2616
|
-
rules: [{
|
|
2484
|
+
rules: [{
|
|
2485
|
+
id: "maxAge",
|
|
2486
|
+
params: { years: 120 }
|
|
2487
|
+
}, { id: "notFuture" }],
|
|
2617
2488
|
prefill: ["document.birthDate"]
|
|
2618
2489
|
},
|
|
2619
2490
|
{
|
|
@@ -2650,6 +2521,7 @@ const EKYC_DEFINITIONS = {
|
|
|
2650
2521
|
label: { key: "verification.labels.idNum" },
|
|
2651
2522
|
input: { maxLength: 11 },
|
|
2652
2523
|
rules: [{ id: "fiPersonalIdentityCode" }],
|
|
2524
|
+
payload: { key: "idNumber" },
|
|
2653
2525
|
prefill: ["document.documentNumber"]
|
|
2654
2526
|
},
|
|
2655
2527
|
{
|
|
@@ -2718,7 +2590,7 @@ const EKYC_DEFINITIONS = {
|
|
|
2718
2590
|
},
|
|
2719
2591
|
"ekyc/GB/GB_2X2": {
|
|
2720
2592
|
schemaVersion: 1,
|
|
2721
|
-
vocabulary: "1.
|
|
2593
|
+
vocabulary: "1.3",
|
|
2722
2594
|
id: "ekyc/GB/GB_2X2",
|
|
2723
2595
|
module: "ekyc",
|
|
2724
2596
|
country: "GB",
|
|
@@ -2760,7 +2632,10 @@ const EKYC_DEFINITIONS = {
|
|
|
2760
2632
|
required: true,
|
|
2761
2633
|
label: { key: "verification.labels.dateOfBirth" },
|
|
2762
2634
|
input: { autofill: "birthday" },
|
|
2763
|
-
rules: [{
|
|
2635
|
+
rules: [{
|
|
2636
|
+
id: "maxAge",
|
|
2637
|
+
params: { years: 120 }
|
|
2638
|
+
}, { id: "notFuture" }],
|
|
2764
2639
|
prefill: ["document.birthDate"]
|
|
2765
2640
|
},
|
|
2766
2641
|
{
|
|
@@ -2870,7 +2745,7 @@ const EKYC_DEFINITIONS = {
|
|
|
2870
2745
|
},
|
|
2871
2746
|
"ekyc/GB/UK_VOTER_REGISTER": {
|
|
2872
2747
|
schemaVersion: 1,
|
|
2873
|
-
vocabulary: "1.
|
|
2748
|
+
vocabulary: "1.3",
|
|
2874
2749
|
id: "ekyc/GB/UK_VOTER_REGISTER",
|
|
2875
2750
|
module: "ekyc",
|
|
2876
2751
|
country: "GB",
|
|
@@ -2924,7 +2799,10 @@ const EKYC_DEFINITIONS = {
|
|
|
2924
2799
|
group: "dateOfBirth",
|
|
2925
2800
|
label: { key: "verification.labels.dateOfBirth" },
|
|
2926
2801
|
input: { autofill: "birthday" },
|
|
2927
|
-
rules: [{
|
|
2802
|
+
rules: [{
|
|
2803
|
+
id: "maxAge",
|
|
2804
|
+
params: { years: 120 }
|
|
2805
|
+
}, { id: "notFuture" }],
|
|
2928
2806
|
prefill: ["document.birthDate"]
|
|
2929
2807
|
},
|
|
2930
2808
|
{
|
|
@@ -3028,7 +2906,7 @@ const EKYC_DEFINITIONS = {
|
|
|
3028
2906
|
},
|
|
3029
2907
|
"ekyc/GR/GR_1": {
|
|
3030
2908
|
schemaVersion: 1,
|
|
3031
|
-
vocabulary: "1.
|
|
2909
|
+
vocabulary: "1.3",
|
|
3032
2910
|
id: "ekyc/GR/GR_1",
|
|
3033
2911
|
module: "ekyc",
|
|
3034
2912
|
country: "GR",
|
|
@@ -3082,7 +2960,10 @@ const EKYC_DEFINITIONS = {
|
|
|
3082
2960
|
group: "dateOfBirth",
|
|
3083
2961
|
label: { key: "verification.labels.dateOfBirth" },
|
|
3084
2962
|
input: { autofill: "birthday" },
|
|
3085
|
-
rules: [{
|
|
2963
|
+
rules: [{
|
|
2964
|
+
id: "maxAge",
|
|
2965
|
+
params: { years: 120 }
|
|
2966
|
+
}, { id: "notFuture" }],
|
|
3086
2967
|
prefill: ["document.birthDate"]
|
|
3087
2968
|
},
|
|
3088
2969
|
{
|
|
@@ -3130,6 +3011,7 @@ const EKYC_DEFINITIONS = {
|
|
|
3130
3011
|
id: "digitCount",
|
|
3131
3012
|
params: { lengths: [9] }
|
|
3132
3013
|
}],
|
|
3014
|
+
payload: { key: "idNumber" },
|
|
3133
3015
|
prefill: ["document.documentNumber"]
|
|
3134
3016
|
},
|
|
3135
3017
|
{
|
|
@@ -3221,7 +3103,7 @@ const EKYC_DEFINITIONS = {
|
|
|
3221
3103
|
},
|
|
3222
3104
|
"ekyc/GT/GT_1": {
|
|
3223
3105
|
schemaVersion: 1,
|
|
3224
|
-
vocabulary: "1.
|
|
3106
|
+
vocabulary: "1.3",
|
|
3225
3107
|
id: "ekyc/GT/GT_1",
|
|
3226
3108
|
module: "ekyc",
|
|
3227
3109
|
country: "GT",
|
|
@@ -3260,7 +3142,10 @@ const EKYC_DEFINITIONS = {
|
|
|
3260
3142
|
required: true,
|
|
3261
3143
|
label: { key: "verification.labels.dateOfBirth" },
|
|
3262
3144
|
input: { autofill: "birthday" },
|
|
3263
|
-
rules: [{
|
|
3145
|
+
rules: [{
|
|
3146
|
+
id: "maxAge",
|
|
3147
|
+
params: { years: 120 }
|
|
3148
|
+
}, { id: "notFuture" }],
|
|
3264
3149
|
prefill: ["document.birthDate"]
|
|
3265
3150
|
},
|
|
3266
3151
|
{
|
|
@@ -3303,6 +3188,7 @@ const EKYC_DEFINITIONS = {
|
|
|
3303
3188
|
id: "digitCount",
|
|
3304
3189
|
params: { lengths: [13] }
|
|
3305
3190
|
}],
|
|
3191
|
+
payload: { key: "idNumber" },
|
|
3306
3192
|
prefill: ["document.documentNumber"]
|
|
3307
3193
|
}
|
|
3308
3194
|
],
|
|
@@ -3316,7 +3202,7 @@ const EKYC_DEFINITIONS = {
|
|
|
3316
3202
|
},
|
|
3317
3203
|
"ekyc/IN/IN_DMV": {
|
|
3318
3204
|
schemaVersion: 1,
|
|
3319
|
-
vocabulary: "1.
|
|
3205
|
+
vocabulary: "1.3",
|
|
3320
3206
|
id: "ekyc/IN/IN_DMV",
|
|
3321
3207
|
module: "ekyc",
|
|
3322
3208
|
country: "IN",
|
|
@@ -3371,7 +3257,10 @@ const EKYC_DEFINITIONS = {
|
|
|
3371
3257
|
required: true,
|
|
3372
3258
|
label: { key: "verification.labels.dateOfBirth" },
|
|
3373
3259
|
input: { autofill: "birthday" },
|
|
3374
|
-
rules: [{
|
|
3260
|
+
rules: [{
|
|
3261
|
+
id: "maxAge",
|
|
3262
|
+
params: { years: 120 }
|
|
3263
|
+
}, { id: "notFuture" }],
|
|
3375
3264
|
prefill: ["document.birthDate"]
|
|
3376
3265
|
},
|
|
3377
3266
|
{
|
|
@@ -3408,6 +3297,7 @@ const EKYC_DEFINITIONS = {
|
|
|
3408
3297
|
label: { key: "verification.labels.idNum" },
|
|
3409
3298
|
input: { maxLength: 20 },
|
|
3410
3299
|
rules: [{ id: "inDrivingLicenseNumber" }],
|
|
3300
|
+
payload: { key: "idNumber" },
|
|
3411
3301
|
prefill: ["document.documentNumber"]
|
|
3412
3302
|
},
|
|
3413
3303
|
{
|
|
@@ -3494,7 +3384,7 @@ const EKYC_DEFINITIONS = {
|
|
|
3494
3384
|
},
|
|
3495
3385
|
"ekyc/IN/INDIA_PAN_1": {
|
|
3496
3386
|
schemaVersion: 1,
|
|
3497
|
-
vocabulary: "1.
|
|
3387
|
+
vocabulary: "1.3",
|
|
3498
3388
|
id: "ekyc/IN/INDIA_PAN_1",
|
|
3499
3389
|
module: "ekyc",
|
|
3500
3390
|
country: "IN",
|
|
@@ -3535,7 +3425,10 @@ const EKYC_DEFINITIONS = {
|
|
|
3535
3425
|
required: true,
|
|
3536
3426
|
label: { key: "verification.labels.dateOfBirth" },
|
|
3537
3427
|
input: { autofill: "birthday" },
|
|
3538
|
-
rules: [{
|
|
3428
|
+
rules: [{
|
|
3429
|
+
id: "maxAge",
|
|
3430
|
+
params: { years: 120 }
|
|
3431
|
+
}, { id: "notFuture" }],
|
|
3539
3432
|
prefill: ["document.birthDate"]
|
|
3540
3433
|
},
|
|
3541
3434
|
{
|
|
@@ -3567,7 +3460,7 @@ const EKYC_DEFINITIONS = {
|
|
|
3567
3460
|
},
|
|
3568
3461
|
"ekyc/IN/INDIA_PASSPORT_1": {
|
|
3569
3462
|
schemaVersion: 1,
|
|
3570
|
-
vocabulary: "1.
|
|
3463
|
+
vocabulary: "1.3",
|
|
3571
3464
|
id: "ekyc/IN/INDIA_PASSPORT_1",
|
|
3572
3465
|
module: "ekyc",
|
|
3573
3466
|
country: "IN",
|
|
@@ -3615,7 +3508,10 @@ const EKYC_DEFINITIONS = {
|
|
|
3615
3508
|
required: true,
|
|
3616
3509
|
label: { key: "verification.labels.dateOfBirth" },
|
|
3617
3510
|
input: { autofill: "birthday" },
|
|
3618
|
-
rules: [{
|
|
3511
|
+
rules: [{
|
|
3512
|
+
id: "maxAge",
|
|
3513
|
+
params: { years: 120 }
|
|
3514
|
+
}, { id: "notFuture" }],
|
|
3619
3515
|
prefill: ["document.birthDate"]
|
|
3620
3516
|
},
|
|
3621
3517
|
{
|
|
@@ -3636,6 +3532,7 @@ const EKYC_DEFINITIONS = {
|
|
|
3636
3532
|
},
|
|
3637
3533
|
message: { key: "verification.errors.passportNumberFormat" }
|
|
3638
3534
|
}],
|
|
3535
|
+
payload: { key: "idNumber" },
|
|
3639
3536
|
prefill: ["document.documentNumber"]
|
|
3640
3537
|
},
|
|
3641
3538
|
{
|
|
@@ -3677,7 +3574,7 @@ const EKYC_DEFINITIONS = {
|
|
|
3677
3574
|
},
|
|
3678
3575
|
"ekyc/IT/IT_CIVIL_REG_CREDIT_TELCO": {
|
|
3679
3576
|
schemaVersion: 1,
|
|
3680
|
-
vocabulary: "1.
|
|
3577
|
+
vocabulary: "1.3",
|
|
3681
3578
|
id: "ekyc/IT/IT_CIVIL_REG_CREDIT_TELCO",
|
|
3682
3579
|
module: "ekyc",
|
|
3683
3580
|
country: "IT",
|
|
@@ -3718,7 +3615,10 @@ const EKYC_DEFINITIONS = {
|
|
|
3718
3615
|
group: "dateOfBirth",
|
|
3719
3616
|
label: { key: "verification.labels.dateOfBirth" },
|
|
3720
3617
|
input: { autofill: "birthday" },
|
|
3721
|
-
rules: [{
|
|
3618
|
+
rules: [{
|
|
3619
|
+
id: "maxAge",
|
|
3620
|
+
params: { years: 120 }
|
|
3621
|
+
}, { id: "notFuture" }],
|
|
3722
3622
|
prefill: ["document.birthDate"]
|
|
3723
3623
|
},
|
|
3724
3624
|
{
|
|
@@ -3803,9 +3703,145 @@ const EKYC_DEFINITIONS = {
|
|
|
3803
3703
|
}
|
|
3804
3704
|
}
|
|
3805
3705
|
},
|
|
3806
|
-
"ekyc/
|
|
3706
|
+
"ekyc/KG/KG_VOTER_REGISTER": {
|
|
3807
3707
|
schemaVersion: 1,
|
|
3808
3708
|
vocabulary: "1.2",
|
|
3709
|
+
id: "ekyc/KG/KG_VOTER_REGISTER",
|
|
3710
|
+
module: "ekyc",
|
|
3711
|
+
country: "KG",
|
|
3712
|
+
source: "KG_VOTER_REGISTER",
|
|
3713
|
+
sections: [{ id: "address" }],
|
|
3714
|
+
fields: [
|
|
3715
|
+
{
|
|
3716
|
+
name: "firstName",
|
|
3717
|
+
kind: "text",
|
|
3718
|
+
group: "name",
|
|
3719
|
+
required: true,
|
|
3720
|
+
label: { key: "verification.labels.firstName" },
|
|
3721
|
+
placeholder: { key: "verification.placeholder.firstName" },
|
|
3722
|
+
input: {
|
|
3723
|
+
maxLength: 100,
|
|
3724
|
+
autofill: "givenName"
|
|
3725
|
+
},
|
|
3726
|
+
rules: [{ id: "nameCharacters" }],
|
|
3727
|
+
prefill: ["document.firstName", "poa.firstName"]
|
|
3728
|
+
},
|
|
3729
|
+
{
|
|
3730
|
+
name: "middleName",
|
|
3731
|
+
kind: "text",
|
|
3732
|
+
group: "name",
|
|
3733
|
+
label: { key: "verification.labels.middleName" },
|
|
3734
|
+
placeholder: { key: "verification.placeholder.middleName" },
|
|
3735
|
+
input: {
|
|
3736
|
+
maxLength: 100,
|
|
3737
|
+
autofill: "middleName"
|
|
3738
|
+
},
|
|
3739
|
+
rules: [{ id: "nameCharacters" }],
|
|
3740
|
+
prefill: ["document.middleName"]
|
|
3741
|
+
},
|
|
3742
|
+
{
|
|
3743
|
+
name: "surName",
|
|
3744
|
+
kind: "text",
|
|
3745
|
+
group: "name",
|
|
3746
|
+
required: true,
|
|
3747
|
+
label: { key: "verification.labels.surName" },
|
|
3748
|
+
placeholder: { key: "verification.placeholder.surname" },
|
|
3749
|
+
input: {
|
|
3750
|
+
maxLength: 100,
|
|
3751
|
+
autofill: "familyName"
|
|
3752
|
+
},
|
|
3753
|
+
rules: [{ id: "nameCharacters" }],
|
|
3754
|
+
prefill: ["document.paternalLastName", "poa.lastName"]
|
|
3755
|
+
},
|
|
3756
|
+
{
|
|
3757
|
+
name: "email",
|
|
3758
|
+
kind: "text",
|
|
3759
|
+
group: "email",
|
|
3760
|
+
required: true,
|
|
3761
|
+
label: { key: "verification.labels.email" },
|
|
3762
|
+
placeholder: { key: "verification.placeholder.email" },
|
|
3763
|
+
input: {
|
|
3764
|
+
keyboard: "email",
|
|
3765
|
+
autofill: "email"
|
|
3766
|
+
},
|
|
3767
|
+
rules: [{ id: "emailFormat" }],
|
|
3768
|
+
prefill: ["emailModule.email"]
|
|
3769
|
+
},
|
|
3770
|
+
{
|
|
3771
|
+
name: "phone",
|
|
3772
|
+
kind: "phone",
|
|
3773
|
+
group: "phone",
|
|
3774
|
+
required: true,
|
|
3775
|
+
label: { key: "verification.labels.phone" },
|
|
3776
|
+
input: { autofill: "phone" },
|
|
3777
|
+
phone: { lockCountry: "whenPhoneRisk" },
|
|
3778
|
+
rules: [{ id: "phoneFormat" }],
|
|
3779
|
+
payload: { transforms: [{ id: "e164" }] },
|
|
3780
|
+
prefill: ["phoneModule.phone"]
|
|
3781
|
+
},
|
|
3782
|
+
{
|
|
3783
|
+
name: "idNum",
|
|
3784
|
+
kind: "text",
|
|
3785
|
+
group: "idNumber",
|
|
3786
|
+
label: { key: "verification.labels.idNum" },
|
|
3787
|
+
input: {
|
|
3788
|
+
maxLength: 14,
|
|
3789
|
+
keyboard: "numeric"
|
|
3790
|
+
},
|
|
3791
|
+
rules: [{
|
|
3792
|
+
id: "digitCount",
|
|
3793
|
+
params: { lengths: [14] }
|
|
3794
|
+
}],
|
|
3795
|
+
payload: { key: "idNumber" },
|
|
3796
|
+
prefill: ["document.documentNumber"]
|
|
3797
|
+
},
|
|
3798
|
+
{
|
|
3799
|
+
name: "gender",
|
|
3800
|
+
kind: "choice",
|
|
3801
|
+
group: "gender",
|
|
3802
|
+
widget: "radio",
|
|
3803
|
+
label: { key: "verification.labels.gender" },
|
|
3804
|
+
options: [{
|
|
3805
|
+
value: "F",
|
|
3806
|
+
label: { key: "common.female" }
|
|
3807
|
+
}, {
|
|
3808
|
+
value: "M",
|
|
3809
|
+
label: { key: "common.male" }
|
|
3810
|
+
}]
|
|
3811
|
+
},
|
|
3812
|
+
{
|
|
3813
|
+
name: "street",
|
|
3814
|
+
kind: "text",
|
|
3815
|
+
group: "address",
|
|
3816
|
+
section: "address",
|
|
3817
|
+
widget: "addressSearch",
|
|
3818
|
+
label: { key: "verification.labels.street" },
|
|
3819
|
+
input: { autofill: "addressLine1" },
|
|
3820
|
+
rules: [{ id: "noPoBox" }],
|
|
3821
|
+
prefill: ["document.street", "poa.street"]
|
|
3822
|
+
},
|
|
3823
|
+
{
|
|
3824
|
+
name: "city",
|
|
3825
|
+
kind: "text",
|
|
3826
|
+
group: "address",
|
|
3827
|
+
section: "address",
|
|
3828
|
+
required: true,
|
|
3829
|
+
label: { key: "verification.labels.city" },
|
|
3830
|
+
input: { autofill: "addressLevel2" },
|
|
3831
|
+
prefill: ["document.city", "poa.city"]
|
|
3832
|
+
}
|
|
3833
|
+
],
|
|
3834
|
+
submit: {
|
|
3835
|
+
static: { plugins: ["kyc"] },
|
|
3836
|
+
context: {
|
|
3837
|
+
source: "source",
|
|
3838
|
+
countryCode: "country"
|
|
3839
|
+
}
|
|
3840
|
+
}
|
|
3841
|
+
},
|
|
3842
|
+
"ekyc/MX/MX_CIVIL_REGISTER_2": {
|
|
3843
|
+
schemaVersion: 1,
|
|
3844
|
+
vocabulary: "1.3",
|
|
3809
3845
|
id: "ekyc/MX/MX_CIVIL_REGISTER_2",
|
|
3810
3846
|
module: "ekyc",
|
|
3811
3847
|
country: "MX",
|
|
@@ -3858,7 +3894,10 @@ const EKYC_DEFINITIONS = {
|
|
|
3858
3894
|
group: "dateOfBirth",
|
|
3859
3895
|
label: { key: "verification.labels.dateOfBirth" },
|
|
3860
3896
|
input: { autofill: "birthday" },
|
|
3861
|
-
rules: [{
|
|
3897
|
+
rules: [{
|
|
3898
|
+
id: "maxAge",
|
|
3899
|
+
params: { years: 120 }
|
|
3900
|
+
}, { id: "notFuture" }],
|
|
3862
3901
|
prefill: ["document.birthDate"]
|
|
3863
3902
|
},
|
|
3864
3903
|
{
|
|
@@ -3905,6 +3944,7 @@ const EKYC_DEFINITIONS = {
|
|
|
3905
3944
|
id: "curp",
|
|
3906
3945
|
message: { key: "verification.errors.curp" }
|
|
3907
3946
|
}],
|
|
3947
|
+
payload: { key: "idNumber" },
|
|
3908
3948
|
prefill: ["document.documentNumber"]
|
|
3909
3949
|
},
|
|
3910
3950
|
{
|
|
@@ -3932,7 +3972,7 @@ const EKYC_DEFINITIONS = {
|
|
|
3932
3972
|
},
|
|
3933
3973
|
"ekyc/NL/NL_CIVIL_REG_CREDIT_TELCO": {
|
|
3934
3974
|
schemaVersion: 1,
|
|
3935
|
-
vocabulary: "1.
|
|
3975
|
+
vocabulary: "1.3",
|
|
3936
3976
|
id: "ekyc/NL/NL_CIVIL_REG_CREDIT_TELCO",
|
|
3937
3977
|
module: "ekyc",
|
|
3938
3978
|
country: "NL",
|
|
@@ -3973,7 +4013,10 @@ const EKYC_DEFINITIONS = {
|
|
|
3973
4013
|
group: "dateOfBirth",
|
|
3974
4014
|
label: { key: "verification.labels.dateOfBirth" },
|
|
3975
4015
|
input: { autofill: "birthday" },
|
|
3976
|
-
rules: [{
|
|
4016
|
+
rules: [{
|
|
4017
|
+
id: "maxAge",
|
|
4018
|
+
params: { years: 120 }
|
|
4019
|
+
}, { id: "notFuture" }],
|
|
3977
4020
|
prefill: ["document.birthDate"]
|
|
3978
4021
|
},
|
|
3979
4022
|
{
|
|
@@ -4056,7 +4099,7 @@ const EKYC_DEFINITIONS = {
|
|
|
4056
4099
|
},
|
|
4057
4100
|
"ekyc/NL/NL_CONSUMER_POP_REG_TELCO": {
|
|
4058
4101
|
schemaVersion: 1,
|
|
4059
|
-
vocabulary: "1.
|
|
4102
|
+
vocabulary: "1.3",
|
|
4060
4103
|
id: "ekyc/NL/NL_CONSUMER_POP_REG_TELCO",
|
|
4061
4104
|
module: "ekyc",
|
|
4062
4105
|
country: "NL",
|
|
@@ -4097,7 +4140,10 @@ const EKYC_DEFINITIONS = {
|
|
|
4097
4140
|
group: "dateOfBirth",
|
|
4098
4141
|
label: { key: "verification.labels.dateOfBirth" },
|
|
4099
4142
|
input: { autofill: "birthday" },
|
|
4100
|
-
rules: [{
|
|
4143
|
+
rules: [{
|
|
4144
|
+
id: "maxAge",
|
|
4145
|
+
params: { years: 120 }
|
|
4146
|
+
}, { id: "notFuture" }],
|
|
4101
4147
|
prefill: ["document.birthDate"]
|
|
4102
4148
|
},
|
|
4103
4149
|
{
|
|
@@ -4201,7 +4247,7 @@ const EKYC_DEFINITIONS = {
|
|
|
4201
4247
|
},
|
|
4202
4248
|
"ekyc/NO/NO_CONS_POP_REG": {
|
|
4203
4249
|
schemaVersion: 1,
|
|
4204
|
-
vocabulary: "1.
|
|
4250
|
+
vocabulary: "1.3",
|
|
4205
4251
|
id: "ekyc/NO/NO_CONS_POP_REG",
|
|
4206
4252
|
module: "ekyc",
|
|
4207
4253
|
country: "NO",
|
|
@@ -4243,7 +4289,10 @@ const EKYC_DEFINITIONS = {
|
|
|
4243
4289
|
required: true,
|
|
4244
4290
|
label: { key: "verification.labels.dateOfBirth" },
|
|
4245
4291
|
input: { autofill: "birthday" },
|
|
4246
|
-
rules: [{
|
|
4292
|
+
rules: [{
|
|
4293
|
+
id: "maxAge",
|
|
4294
|
+
params: { years: 120 }
|
|
4295
|
+
}, { id: "notFuture" }],
|
|
4247
4296
|
prefill: ["document.birthDate"]
|
|
4248
4297
|
},
|
|
4249
4298
|
{
|
|
@@ -4346,7 +4395,7 @@ const EKYC_DEFINITIONS = {
|
|
|
4346
4395
|
},
|
|
4347
4396
|
"ekyc/PE/PE_CIVIL_REGISTER_2": {
|
|
4348
4397
|
schemaVersion: 1,
|
|
4349
|
-
vocabulary: "1.
|
|
4398
|
+
vocabulary: "1.3",
|
|
4350
4399
|
id: "ekyc/PE/PE_CIVIL_REGISTER_2",
|
|
4351
4400
|
module: "ekyc",
|
|
4352
4401
|
country: "PE",
|
|
@@ -4400,7 +4449,10 @@ const EKYC_DEFINITIONS = {
|
|
|
4400
4449
|
group: "dateOfBirth",
|
|
4401
4450
|
label: { key: "verification.labels.dateOfBirth" },
|
|
4402
4451
|
input: { autofill: "birthday" },
|
|
4403
|
-
rules: [{
|
|
4452
|
+
rules: [{
|
|
4453
|
+
id: "maxAge",
|
|
4454
|
+
params: { years: 120 }
|
|
4455
|
+
}, { id: "notFuture" }],
|
|
4404
4456
|
prefill: ["document.birthDate"]
|
|
4405
4457
|
},
|
|
4406
4458
|
{
|
|
@@ -4443,6 +4495,7 @@ const EKYC_DEFINITIONS = {
|
|
|
4443
4495
|
id: "digitCount",
|
|
4444
4496
|
params: { lengths: [8] }
|
|
4445
4497
|
}],
|
|
4498
|
+
payload: { key: "idNumber" },
|
|
4446
4499
|
prefill: ["document.documentNumber"]
|
|
4447
4500
|
},
|
|
4448
4501
|
{
|
|
@@ -4481,7 +4534,7 @@ const EKYC_DEFINITIONS = {
|
|
|
4481
4534
|
},
|
|
4482
4535
|
"ekyc/PH/PH_RES_CREDIT": {
|
|
4483
4536
|
schemaVersion: 1,
|
|
4484
|
-
vocabulary: "1.
|
|
4537
|
+
vocabulary: "1.3",
|
|
4485
4538
|
id: "ekyc/PH/PH_RES_CREDIT",
|
|
4486
4539
|
module: "ekyc",
|
|
4487
4540
|
country: "PH",
|
|
@@ -4540,7 +4593,10 @@ const EKYC_DEFINITIONS = {
|
|
|
4540
4593
|
required: true,
|
|
4541
4594
|
label: { key: "verification.labels.dateOfBirth" },
|
|
4542
4595
|
input: { autofill: "birthday" },
|
|
4543
|
-
rules: [{
|
|
4596
|
+
rules: [{
|
|
4597
|
+
id: "maxAge",
|
|
4598
|
+
params: { years: 120 }
|
|
4599
|
+
}, { id: "notFuture" }],
|
|
4544
4600
|
prefill: ["document.birthDate"]
|
|
4545
4601
|
},
|
|
4546
4602
|
{
|
|
@@ -4592,6 +4648,7 @@ const EKYC_DEFINITIONS = {
|
|
|
4592
4648
|
extra: "-"
|
|
4593
4649
|
}
|
|
4594
4650
|
}],
|
|
4651
|
+
payload: { key: "idNumber" },
|
|
4595
4652
|
prefill: ["document.documentNumber"]
|
|
4596
4653
|
},
|
|
4597
4654
|
{
|
|
@@ -4694,7 +4751,7 @@ const EKYC_DEFINITIONS = {
|
|
|
4694
4751
|
},
|
|
4695
4752
|
"ekyc/PT/PT_CIVIL_REG_CREDIT_TELCO": {
|
|
4696
4753
|
schemaVersion: 1,
|
|
4697
|
-
vocabulary: "1.
|
|
4754
|
+
vocabulary: "1.3",
|
|
4698
4755
|
id: "ekyc/PT/PT_CIVIL_REG_CREDIT_TELCO",
|
|
4699
4756
|
module: "ekyc",
|
|
4700
4757
|
country: "PT",
|
|
@@ -4735,7 +4792,10 @@ const EKYC_DEFINITIONS = {
|
|
|
4735
4792
|
group: "dateOfBirth",
|
|
4736
4793
|
label: { key: "verification.labels.dateOfBirth" },
|
|
4737
4794
|
input: { autofill: "birthday" },
|
|
4738
|
-
rules: [{
|
|
4795
|
+
rules: [{
|
|
4796
|
+
id: "maxAge",
|
|
4797
|
+
params: { years: 120 }
|
|
4798
|
+
}, { id: "notFuture" }],
|
|
4739
4799
|
prefill: ["document.birthDate"]
|
|
4740
4800
|
},
|
|
4741
4801
|
{
|
|
@@ -4817,9 +4877,161 @@ const EKYC_DEFINITIONS = {
|
|
|
4817
4877
|
}
|
|
4818
4878
|
}
|
|
4819
4879
|
},
|
|
4880
|
+
"ekyc/RO/RO_VOTER_REGISTER": {
|
|
4881
|
+
schemaVersion: 1,
|
|
4882
|
+
vocabulary: "1.3",
|
|
4883
|
+
id: "ekyc/RO/RO_VOTER_REGISTER",
|
|
4884
|
+
module: "ekyc",
|
|
4885
|
+
country: "RO",
|
|
4886
|
+
source: "RO_VOTER_REGISTER",
|
|
4887
|
+
sections: [{ id: "address" }],
|
|
4888
|
+
fields: [
|
|
4889
|
+
{
|
|
4890
|
+
name: "firstName",
|
|
4891
|
+
kind: "text",
|
|
4892
|
+
group: "name",
|
|
4893
|
+
required: true,
|
|
4894
|
+
label: { key: "verification.labels.firstName" },
|
|
4895
|
+
placeholder: { key: "verification.placeholder.firstName" },
|
|
4896
|
+
input: {
|
|
4897
|
+
maxLength: 100,
|
|
4898
|
+
autofill: "givenName"
|
|
4899
|
+
},
|
|
4900
|
+
rules: [{ id: "nameCharacters" }],
|
|
4901
|
+
prefill: ["document.firstName", "poa.firstName"]
|
|
4902
|
+
},
|
|
4903
|
+
{
|
|
4904
|
+
name: "middleName",
|
|
4905
|
+
kind: "text",
|
|
4906
|
+
group: "name",
|
|
4907
|
+
label: { key: "verification.labels.middleName" },
|
|
4908
|
+
placeholder: { key: "verification.placeholder.middleName" },
|
|
4909
|
+
input: {
|
|
4910
|
+
maxLength: 100,
|
|
4911
|
+
autofill: "middleName"
|
|
4912
|
+
},
|
|
4913
|
+
rules: [{ id: "nameCharacters" }],
|
|
4914
|
+
prefill: ["document.middleName"]
|
|
4915
|
+
},
|
|
4916
|
+
{
|
|
4917
|
+
name: "surName",
|
|
4918
|
+
kind: "text",
|
|
4919
|
+
group: "name",
|
|
4920
|
+
required: true,
|
|
4921
|
+
label: { key: "verification.labels.surName" },
|
|
4922
|
+
placeholder: { key: "verification.placeholder.surname" },
|
|
4923
|
+
input: {
|
|
4924
|
+
maxLength: 100,
|
|
4925
|
+
autofill: "familyName"
|
|
4926
|
+
},
|
|
4927
|
+
rules: [{ id: "nameCharacters" }],
|
|
4928
|
+
prefill: ["document.paternalLastName", "poa.lastName"]
|
|
4929
|
+
},
|
|
4930
|
+
{
|
|
4931
|
+
name: "dateOfBirth",
|
|
4932
|
+
kind: "date",
|
|
4933
|
+
group: "dateOfBirth",
|
|
4934
|
+
label: { key: "verification.labels.dateOfBirth" },
|
|
4935
|
+
input: { autofill: "birthday" },
|
|
4936
|
+
rules: [{
|
|
4937
|
+
id: "maxAge",
|
|
4938
|
+
params: { years: 120 }
|
|
4939
|
+
}, { id: "notFuture" }],
|
|
4940
|
+
prefill: ["document.birthDate"]
|
|
4941
|
+
},
|
|
4942
|
+
{
|
|
4943
|
+
name: "email",
|
|
4944
|
+
kind: "text",
|
|
4945
|
+
group: "email",
|
|
4946
|
+
required: true,
|
|
4947
|
+
label: { key: "verification.labels.email" },
|
|
4948
|
+
placeholder: { key: "verification.placeholder.email" },
|
|
4949
|
+
input: {
|
|
4950
|
+
keyboard: "email",
|
|
4951
|
+
autofill: "email"
|
|
4952
|
+
},
|
|
4953
|
+
rules: [{ id: "emailFormat" }],
|
|
4954
|
+
prefill: ["emailModule.email"]
|
|
4955
|
+
},
|
|
4956
|
+
{
|
|
4957
|
+
name: "phone",
|
|
4958
|
+
kind: "phone",
|
|
4959
|
+
group: "phone",
|
|
4960
|
+
required: true,
|
|
4961
|
+
label: { key: "verification.labels.phone" },
|
|
4962
|
+
input: { autofill: "phone" },
|
|
4963
|
+
phone: { lockCountry: "whenPhoneRisk" },
|
|
4964
|
+
rules: [{ id: "phoneFormat" }],
|
|
4965
|
+
payload: { transforms: [{ id: "e164" }] },
|
|
4966
|
+
prefill: ["phoneModule.phone"]
|
|
4967
|
+
},
|
|
4968
|
+
{
|
|
4969
|
+
name: "gender",
|
|
4970
|
+
kind: "choice",
|
|
4971
|
+
group: "gender",
|
|
4972
|
+
widget: "radio",
|
|
4973
|
+
label: { key: "verification.labels.gender" },
|
|
4974
|
+
options: [{
|
|
4975
|
+
value: "F",
|
|
4976
|
+
label: { key: "common.female" }
|
|
4977
|
+
}, {
|
|
4978
|
+
value: "M",
|
|
4979
|
+
label: { key: "common.male" }
|
|
4980
|
+
}]
|
|
4981
|
+
},
|
|
4982
|
+
{
|
|
4983
|
+
name: "street",
|
|
4984
|
+
kind: "text",
|
|
4985
|
+
group: "address",
|
|
4986
|
+
section: "address",
|
|
4987
|
+
widget: "addressSearch",
|
|
4988
|
+
label: { key: "verification.labels.streetAndHouseNumber" },
|
|
4989
|
+
input: { autofill: "addressLine1" },
|
|
4990
|
+
rules: [{ id: "noPoBox" }],
|
|
4991
|
+
prefill: ["document.street", "poa.street"]
|
|
4992
|
+
},
|
|
4993
|
+
{
|
|
4994
|
+
name: "city",
|
|
4995
|
+
kind: "text",
|
|
4996
|
+
group: "address",
|
|
4997
|
+
section: "address",
|
|
4998
|
+
label: { key: "verification.labels.city" },
|
|
4999
|
+
input: { autofill: "addressLevel2" },
|
|
5000
|
+
prefill: ["document.city", "poa.city"]
|
|
5001
|
+
},
|
|
5002
|
+
{
|
|
5003
|
+
name: "postalCode",
|
|
5004
|
+
kind: "text",
|
|
5005
|
+
group: "address",
|
|
5006
|
+
section: "address",
|
|
5007
|
+
label: { key: "verification.labels.postalCode" },
|
|
5008
|
+
input: {
|
|
5009
|
+
maxLength: 6,
|
|
5010
|
+
autofill: "postalCode",
|
|
5011
|
+
keyboard: "numeric"
|
|
5012
|
+
},
|
|
5013
|
+
rules: [{ id: "postalCodeFormat" }, {
|
|
5014
|
+
id: "digitCount",
|
|
5015
|
+
params: { lengths: [6] }
|
|
5016
|
+
}],
|
|
5017
|
+
payload: { transforms: [{
|
|
5018
|
+
id: "stripSeparators",
|
|
5019
|
+
params: { chars: "- " }
|
|
5020
|
+
}] },
|
|
5021
|
+
prefill: ["document.postalCode", "poa.postalCode"]
|
|
5022
|
+
}
|
|
5023
|
+
],
|
|
5024
|
+
submit: {
|
|
5025
|
+
static: { plugins: ["kyc"] },
|
|
5026
|
+
context: {
|
|
5027
|
+
source: "source",
|
|
5028
|
+
countryCode: "country"
|
|
5029
|
+
}
|
|
5030
|
+
}
|
|
5031
|
+
},
|
|
4820
5032
|
"ekyc/SG/SG_PHONE_REGISTER": {
|
|
4821
5033
|
schemaVersion: 1,
|
|
4822
|
-
vocabulary: "1.
|
|
5034
|
+
vocabulary: "1.3",
|
|
4823
5035
|
id: "ekyc/SG/SG_PHONE_REGISTER",
|
|
4824
5036
|
module: "ekyc",
|
|
4825
5037
|
country: "SG",
|
|
@@ -4873,7 +5085,10 @@ const EKYC_DEFINITIONS = {
|
|
|
4873
5085
|
group: "dateOfBirth",
|
|
4874
5086
|
label: { key: "verification.labels.dateOfBirth" },
|
|
4875
5087
|
input: { autofill: "birthday" },
|
|
4876
|
-
rules: [{
|
|
5088
|
+
rules: [{
|
|
5089
|
+
id: "maxAge",
|
|
5090
|
+
params: { years: 120 }
|
|
5091
|
+
}, { id: "notFuture" }],
|
|
4877
5092
|
prefill: ["document.birthDate"]
|
|
4878
5093
|
},
|
|
4879
5094
|
{
|
|
@@ -4977,7 +5192,7 @@ const EKYC_DEFINITIONS = {
|
|
|
4977
5192
|
},
|
|
4978
5193
|
"ekyc/US/US_CREDIT_BUREAU_1": {
|
|
4979
5194
|
schemaVersion: 1,
|
|
4980
|
-
vocabulary: "1.
|
|
5195
|
+
vocabulary: "1.3",
|
|
4981
5196
|
id: "ekyc/US/US_CREDIT_BUREAU_1",
|
|
4982
5197
|
module: "ekyc",
|
|
4983
5198
|
country: "US",
|
|
@@ -5031,7 +5246,10 @@ const EKYC_DEFINITIONS = {
|
|
|
5031
5246
|
group: "dateOfBirth",
|
|
5032
5247
|
label: { key: "verification.labels.dateOfBirth" },
|
|
5033
5248
|
input: { autofill: "birthday" },
|
|
5034
|
-
rules: [{
|
|
5249
|
+
rules: [{
|
|
5250
|
+
id: "maxAge",
|
|
5251
|
+
params: { years: 120 }
|
|
5252
|
+
}, { id: "notFuture" }],
|
|
5035
5253
|
prefill: ["document.birthDate"]
|
|
5036
5254
|
},
|
|
5037
5255
|
{
|
|
@@ -5146,7 +5364,7 @@ const EKYC_DEFINITIONS = {
|
|
|
5146
5364
|
},
|
|
5147
5365
|
"ekyc/US/US_CREDIT_BUREAU_3": {
|
|
5148
5366
|
schemaVersion: 1,
|
|
5149
|
-
vocabulary: "1.
|
|
5367
|
+
vocabulary: "1.3",
|
|
5150
5368
|
id: "ekyc/US/US_CREDIT_BUREAU_3",
|
|
5151
5369
|
module: "ekyc",
|
|
5152
5370
|
country: "US",
|
|
@@ -5200,7 +5418,10 @@ const EKYC_DEFINITIONS = {
|
|
|
5200
5418
|
group: "dateOfBirth",
|
|
5201
5419
|
label: { key: "verification.labels.dateOfBirth" },
|
|
5202
5420
|
input: { autofill: "birthday" },
|
|
5203
|
-
rules: [{
|
|
5421
|
+
rules: [{
|
|
5422
|
+
id: "maxAge",
|
|
5423
|
+
params: { years: 120 }
|
|
5424
|
+
}, { id: "notFuture" }],
|
|
5204
5425
|
prefill: ["document.birthDate"]
|
|
5205
5426
|
},
|
|
5206
5427
|
{
|
|
@@ -5326,7 +5547,7 @@ const EKYC_DEFINITIONS = {
|
|
|
5326
5547
|
},
|
|
5327
5548
|
"ekyc/US/US_CREDIT_TELCO": {
|
|
5328
5549
|
schemaVersion: 1,
|
|
5329
|
-
vocabulary: "1.
|
|
5550
|
+
vocabulary: "1.3",
|
|
5330
5551
|
id: "ekyc/US/US_CREDIT_TELCO",
|
|
5331
5552
|
module: "ekyc",
|
|
5332
5553
|
country: "US",
|
|
@@ -5371,7 +5592,10 @@ const EKYC_DEFINITIONS = {
|
|
|
5371
5592
|
group: "dateOfBirth",
|
|
5372
5593
|
label: { key: "verification.labels.dateOfBirth" },
|
|
5373
5594
|
input: { autofill: "birthday" },
|
|
5374
|
-
rules: [{
|
|
5595
|
+
rules: [{
|
|
5596
|
+
id: "maxAge",
|
|
5597
|
+
params: { years: 120 }
|
|
5598
|
+
}, { id: "notFuture" }],
|
|
5375
5599
|
prefill: ["document.birthDate"]
|
|
5376
5600
|
},
|
|
5377
5601
|
{
|
|
@@ -5496,7 +5720,7 @@ const EKYC_DEFINITIONS = {
|
|
|
5496
5720
|
},
|
|
5497
5721
|
"ekyc/US/US_TELCO_1": {
|
|
5498
5722
|
schemaVersion: 1,
|
|
5499
|
-
vocabulary: "1.
|
|
5723
|
+
vocabulary: "1.3",
|
|
5500
5724
|
id: "ekyc/US/US_TELCO_1",
|
|
5501
5725
|
module: "ekyc",
|
|
5502
5726
|
country: "US",
|
|
@@ -5537,7 +5761,10 @@ const EKYC_DEFINITIONS = {
|
|
|
5537
5761
|
group: "dateOfBirth",
|
|
5538
5762
|
label: { key: "verification.labels.dateOfBirth" },
|
|
5539
5763
|
input: { autofill: "birthday" },
|
|
5540
|
-
rules: [{
|
|
5764
|
+
rules: [{
|
|
5765
|
+
id: "maxAge",
|
|
5766
|
+
params: { years: 120 }
|
|
5767
|
+
}, { id: "notFuture" }],
|
|
5541
5768
|
prefill: ["document.birthDate"]
|
|
5542
5769
|
},
|
|
5543
5770
|
{
|
|
@@ -5665,7 +5892,7 @@ const EKYC_DEFINITIONS = {
|
|
|
5665
5892
|
},
|
|
5666
5893
|
"ekyc/US/US_TELCO_2": {
|
|
5667
5894
|
schemaVersion: 1,
|
|
5668
|
-
vocabulary: "1.
|
|
5895
|
+
vocabulary: "1.3",
|
|
5669
5896
|
id: "ekyc/US/US_TELCO_2",
|
|
5670
5897
|
module: "ekyc",
|
|
5671
5898
|
country: "US",
|
|
@@ -5704,7 +5931,10 @@ const EKYC_DEFINITIONS = {
|
|
|
5704
5931
|
group: "dateOfBirth",
|
|
5705
5932
|
label: { key: "verification.labels.dateOfBirth" },
|
|
5706
5933
|
input: { autofill: "birthday" },
|
|
5707
|
-
rules: [{
|
|
5934
|
+
rules: [{
|
|
5935
|
+
id: "maxAge",
|
|
5936
|
+
params: { years: 120 }
|
|
5937
|
+
}, { id: "notFuture" }],
|
|
5708
5938
|
prefill: ["document.birthDate"]
|
|
5709
5939
|
},
|
|
5710
5940
|
{
|
|
@@ -5800,7 +6030,7 @@ const EKYC_DEFINITIONS = {
|
|
|
5800
6030
|
},
|
|
5801
6031
|
"ekyc/VE/VE_CIVIL_REGISTER": {
|
|
5802
6032
|
schemaVersion: 1,
|
|
5803
|
-
vocabulary: "1.
|
|
6033
|
+
vocabulary: "1.3",
|
|
5804
6034
|
id: "ekyc/VE/VE_CIVIL_REGISTER",
|
|
5805
6035
|
module: "ekyc",
|
|
5806
6036
|
country: "VE",
|
|
@@ -5853,7 +6083,10 @@ const EKYC_DEFINITIONS = {
|
|
|
5853
6083
|
group: "dateOfBirth",
|
|
5854
6084
|
label: { key: "verification.labels.dateOfBirth" },
|
|
5855
6085
|
input: { autofill: "birthday" },
|
|
5856
|
-
rules: [{
|
|
6086
|
+
rules: [{
|
|
6087
|
+
id: "maxAge",
|
|
6088
|
+
params: { years: 120 }
|
|
6089
|
+
}, { id: "notFuture" }],
|
|
5857
6090
|
prefill: ["document.birthDate"]
|
|
5858
6091
|
},
|
|
5859
6092
|
{
|
|
@@ -5899,6 +6132,7 @@ const EKYC_DEFINITIONS = {
|
|
|
5899
6132
|
max: 9
|
|
5900
6133
|
}
|
|
5901
6134
|
}],
|
|
6135
|
+
payload: { key: "idNumber" },
|
|
5902
6136
|
prefill: ["document.documentNumber"]
|
|
5903
6137
|
}
|
|
5904
6138
|
],
|
|
@@ -5911,119 +6145,6 @@ const EKYC_DEFINITIONS = {
|
|
|
5911
6145
|
}
|
|
5912
6146
|
}
|
|
5913
6147
|
};
|
|
5914
|
-
const brStateOptions = Object.values({
|
|
5915
|
-
AC: {
|
|
5916
|
-
code: "AC",
|
|
5917
|
-
name: "Acre"
|
|
5918
|
-
},
|
|
5919
|
-
AL: {
|
|
5920
|
-
code: "AL",
|
|
5921
|
-
name: "Alagoas"
|
|
5922
|
-
},
|
|
5923
|
-
AP: {
|
|
5924
|
-
code: "AP",
|
|
5925
|
-
name: "Amapá"
|
|
5926
|
-
},
|
|
5927
|
-
AM: {
|
|
5928
|
-
code: "AM",
|
|
5929
|
-
name: "Amazonas"
|
|
5930
|
-
},
|
|
5931
|
-
BA: {
|
|
5932
|
-
code: "BA",
|
|
5933
|
-
name: "Bahia"
|
|
5934
|
-
},
|
|
5935
|
-
CE: {
|
|
5936
|
-
code: "CE",
|
|
5937
|
-
name: "Ceará"
|
|
5938
|
-
},
|
|
5939
|
-
DF: {
|
|
5940
|
-
code: "DF",
|
|
5941
|
-
name: "Distrito Federal"
|
|
5942
|
-
},
|
|
5943
|
-
ES: {
|
|
5944
|
-
code: "ES",
|
|
5945
|
-
name: "Espírito Santo"
|
|
5946
|
-
},
|
|
5947
|
-
GO: {
|
|
5948
|
-
code: "GO",
|
|
5949
|
-
name: "Goiás"
|
|
5950
|
-
},
|
|
5951
|
-
MA: {
|
|
5952
|
-
code: "MA",
|
|
5953
|
-
name: "Maranhão"
|
|
5954
|
-
},
|
|
5955
|
-
MT: {
|
|
5956
|
-
code: "MT",
|
|
5957
|
-
name: "Mato Grosso"
|
|
5958
|
-
},
|
|
5959
|
-
MS: {
|
|
5960
|
-
code: "MS",
|
|
5961
|
-
name: "Mato Grosso do Sul"
|
|
5962
|
-
},
|
|
5963
|
-
MG: {
|
|
5964
|
-
code: "MG",
|
|
5965
|
-
name: "Minas Gerais"
|
|
5966
|
-
},
|
|
5967
|
-
PA: {
|
|
5968
|
-
code: "PA",
|
|
5969
|
-
name: "Pará"
|
|
5970
|
-
},
|
|
5971
|
-
PB: {
|
|
5972
|
-
code: "PB",
|
|
5973
|
-
name: "Paraíba"
|
|
5974
|
-
},
|
|
5975
|
-
PR: {
|
|
5976
|
-
code: "PR",
|
|
5977
|
-
name: "Paraná"
|
|
5978
|
-
},
|
|
5979
|
-
PE: {
|
|
5980
|
-
code: "PE",
|
|
5981
|
-
name: "Pernambuco"
|
|
5982
|
-
},
|
|
5983
|
-
PI: {
|
|
5984
|
-
code: "PI",
|
|
5985
|
-
name: "Piauí"
|
|
5986
|
-
},
|
|
5987
|
-
RJ: {
|
|
5988
|
-
code: "RJ",
|
|
5989
|
-
name: "Rio de Janeiro"
|
|
5990
|
-
},
|
|
5991
|
-
RN: {
|
|
5992
|
-
code: "RN",
|
|
5993
|
-
name: "Rio Grande do Norte"
|
|
5994
|
-
},
|
|
5995
|
-
RS: {
|
|
5996
|
-
code: "RS",
|
|
5997
|
-
name: "Rio Grande do Sul"
|
|
5998
|
-
},
|
|
5999
|
-
RO: {
|
|
6000
|
-
code: "RO",
|
|
6001
|
-
name: "Rondônia"
|
|
6002
|
-
},
|
|
6003
|
-
RR: {
|
|
6004
|
-
code: "RR",
|
|
6005
|
-
name: "Roraima"
|
|
6006
|
-
},
|
|
6007
|
-
SC: {
|
|
6008
|
-
code: "SC",
|
|
6009
|
-
name: "Santa Catarina"
|
|
6010
|
-
},
|
|
6011
|
-
SP: {
|
|
6012
|
-
code: "SP",
|
|
6013
|
-
name: "São Paulo"
|
|
6014
|
-
},
|
|
6015
|
-
SE: {
|
|
6016
|
-
code: "SE",
|
|
6017
|
-
name: "Sergipe"
|
|
6018
|
-
},
|
|
6019
|
-
TO: {
|
|
6020
|
-
code: "TO",
|
|
6021
|
-
name: "Tocantins"
|
|
6022
|
-
}
|
|
6023
|
-
}).map((state) => ({
|
|
6024
|
-
value: state.code,
|
|
6025
|
-
label: state.name
|
|
6026
|
-
}));
|
|
6027
6148
|
const caProvinceOptions = Object.values({
|
|
6028
6149
|
AB: {
|
|
6029
6150
|
code: "AB",
|
|
@@ -6362,60 +6483,6 @@ const OPTION_LISTS = {
|
|
|
6362
6483
|
}
|
|
6363
6484
|
]
|
|
6364
6485
|
};
|
|
6365
|
-
/** Vocabulary rules expressed as today's `EkycValidationRule` objects. */
|
|
6366
|
-
const RULES = {
|
|
6367
|
-
cpf: () => ({ type: "cpf" }),
|
|
6368
|
-
ssnFormat: () => ({ type: "ssnFormat" }),
|
|
6369
|
-
noPoBox: () => ({ type: "noPoBox" }),
|
|
6370
|
-
emailFormat: () => ({ type: "emailFormat" }),
|
|
6371
|
-
postalCodeFormat: ({ country }) => ({
|
|
6372
|
-
type: "postalCodeFormat",
|
|
6373
|
-
country
|
|
6374
|
-
}),
|
|
6375
|
-
phoneFormat: ({ country, required }) => ({
|
|
6376
|
-
type: "phoneFormat",
|
|
6377
|
-
country,
|
|
6378
|
-
optional: !required
|
|
6379
|
-
}),
|
|
6380
|
-
exactLength: ({ params }) => ({
|
|
6381
|
-
type: "exactLength",
|
|
6382
|
-
length: params.length
|
|
6383
|
-
}),
|
|
6384
|
-
nameCharacters: () => ({ type: "nameCharacters" }),
|
|
6385
|
-
notFuture: () => ({ type: "notFuture" }),
|
|
6386
|
-
phoneDigits: ({ country, params }) => ({
|
|
6387
|
-
type: "phoneDigits",
|
|
6388
|
-
country,
|
|
6389
|
-
min: params.min,
|
|
6390
|
-
max: params.max
|
|
6391
|
-
}),
|
|
6392
|
-
digitCount: ({ params }) => ({
|
|
6393
|
-
type: "digitCount",
|
|
6394
|
-
...params.lengths !== void 0 && { lengths: [...params.lengths] },
|
|
6395
|
-
...params.min !== void 0 && { min: params.min },
|
|
6396
|
-
...params.max !== void 0 && { max: params.max }
|
|
6397
|
-
}),
|
|
6398
|
-
allowedCharacters: ({ params }) => ({
|
|
6399
|
-
type: "allowedCharacters",
|
|
6400
|
-
classes: [...params.classes],
|
|
6401
|
-
...params.extra !== void 0 && { extra: params.extra }
|
|
6402
|
-
}),
|
|
6403
|
-
charTemplate: ({ params }) => ({
|
|
6404
|
-
type: "charTemplate",
|
|
6405
|
-
templates: [...params.templates],
|
|
6406
|
-
...params.ignoreCase !== void 0 && { ignoreCase: params.ignoreCase }
|
|
6407
|
-
}),
|
|
6408
|
-
numericRange: ({ params }) => ({
|
|
6409
|
-
type: "numericRange",
|
|
6410
|
-
min: params.min,
|
|
6411
|
-
max: params.max
|
|
6412
|
-
}),
|
|
6413
|
-
rut: () => ({ type: "rut" }),
|
|
6414
|
-
esDni: () => ({ type: "esDni" }),
|
|
6415
|
-
fiPersonalIdentityCode: () => ({ type: "fiPersonalIdentityCode" }),
|
|
6416
|
-
inDrivingLicenseNumber: () => ({ type: "inDrivingLicenseNumber" }),
|
|
6417
|
-
curp: () => ({ type: "curp" })
|
|
6418
|
-
};
|
|
6419
6486
|
const isCount = (value) => typeof value === "number" && Number.isInteger(value) && value > 0;
|
|
6420
6487
|
const isInteger = (value) => typeof value === "number" && Number.isInteger(value);
|
|
6421
6488
|
const isNonEmptyArrayOf = (value, item) => Array.isArray(value) && value.length > 0 && value.every(item);
|
|
@@ -6432,7 +6499,8 @@ const RULE_PARAMS = {
|
|
|
6432
6499
|
digitCount: ({ lengths, min, max }) => lengths !== void 0 ? isNonEmptyArrayOf(lengths, isCount) && min === void 0 && max === void 0 : isCount(min) && isCount(max) && min <= max,
|
|
6433
6500
|
allowedCharacters: ({ classes, extra }) => isNonEmptyArrayOf(classes, isCharacterClass) && (extra === void 0 || isString(extra)),
|
|
6434
6501
|
charTemplate: ({ templates, ignoreCase }) => isNonEmptyArrayOf(templates, (t) => isString(t) && t !== "") && (ignoreCase === void 0 || typeof ignoreCase === "boolean"),
|
|
6435
|
-
numericRange: ({ min, max }) => isInteger(min) && isInteger(max) && min <= max
|
|
6502
|
+
numericRange: ({ min, max }) => isInteger(min) && isInteger(max) && min <= max,
|
|
6503
|
+
maxAge: ({ years }) => isCount(years)
|
|
6436
6504
|
};
|
|
6437
6505
|
/**
|
|
6438
6506
|
* What the projection can express today. Request-body transforms are listed
|
|
@@ -6442,7 +6510,7 @@ const RULE_PARAMS = {
|
|
|
6442
6510
|
*/
|
|
6443
6511
|
const EKYC_SUPPORTED_IDS = {
|
|
6444
6512
|
schemaVersions: [1],
|
|
6445
|
-
vocabulary: "1.
|
|
6513
|
+
vocabulary: "1.3",
|
|
6446
6514
|
kinds: /* @__PURE__ */ new Set([
|
|
6447
6515
|
"text",
|
|
6448
6516
|
"date",
|
|
@@ -6705,21 +6773,6 @@ function projectField(resolved, verificationFields, country) {
|
|
|
6705
6773
|
if (validation.length > 0) def.validation = validation;
|
|
6706
6774
|
return def;
|
|
6707
6775
|
}
|
|
6708
|
-
function projectRules(rules, country, required) {
|
|
6709
|
-
return rules.flatMap((rule) => {
|
|
6710
|
-
const project = RULES[rule.id];
|
|
6711
|
-
if (!project) return [];
|
|
6712
|
-
const projected = project({
|
|
6713
|
-
country,
|
|
6714
|
-
required,
|
|
6715
|
-
params: rule.params ?? {}
|
|
6716
|
-
});
|
|
6717
|
-
return [rule.message ? {
|
|
6718
|
-
...projected,
|
|
6719
|
-
message: rule.message.key
|
|
6720
|
-
} : projected];
|
|
6721
|
-
});
|
|
6722
|
-
}
|
|
6723
6776
|
/**
|
|
6724
6777
|
* Projects a resolved definition to today's `EkycFieldDef[]`, identical to
|
|
6725
6778
|
* what `legacyBuildFieldDefs` returns for the same source and country.
|
|
@@ -6752,6 +6805,11 @@ function projectEkycFields(form, verificationFields, country) {
|
|
|
6752
6805
|
//#endregion
|
|
6753
6806
|
//#region src/modules/ekyc/ekycActions.ts
|
|
6754
6807
|
const dateFormattingInstance = new DateFormattingProvider();
|
|
6808
|
+
/** Countries whose state is picked from a list, sent as the two-letter code. */
|
|
6809
|
+
const STATE_OPTIONS_BY_COUNTRY = {
|
|
6810
|
+
US: usStateOptions,
|
|
6811
|
+
BR: brStateOptions
|
|
6812
|
+
};
|
|
6755
6813
|
function buildValidationRules(field, country, configSource) {
|
|
6756
6814
|
const rules = [];
|
|
6757
6815
|
if (field.required) rules.push({ type: "required" });
|
|
@@ -6772,6 +6830,10 @@ function buildValidationRules(field, country, configSource) {
|
|
|
6772
6830
|
type: "exactLength",
|
|
6773
6831
|
length: 10
|
|
6774
6832
|
});
|
|
6833
|
+
if (field.name === "dateOfBirth") rules.push({
|
|
6834
|
+
type: "maxAge",
|
|
6835
|
+
years: 120
|
|
6836
|
+
});
|
|
6775
6837
|
return rules;
|
|
6776
6838
|
}
|
|
6777
6839
|
function applyOneOfRequiredGroups(defs, configSource) {
|
|
@@ -6863,8 +6925,11 @@ function legacyBuildFieldDefs(fields, configSource, country, enablePhoneRisk = f
|
|
|
6863
6925
|
] });
|
|
6864
6926
|
else add("nationality", "text", "verification.labels.nationality", fields.nationality);
|
|
6865
6927
|
if (fields.last4SSN) add("last4SSN", "text", "verification.labels.last4SSN", fields.last4SSN, { maxLength: 4 });
|
|
6866
|
-
if (fields.idNum) add("idNum", "text", "verification.labels.idNum", fields.idNum, {
|
|
6867
|
-
|
|
6928
|
+
if (fields.idNum) add("idNum", "text", "verification.labels.idNum", fields.idNum, {
|
|
6929
|
+
maxLength: 13,
|
|
6930
|
+
payloadKey: "idNumber"
|
|
6931
|
+
});
|
|
6932
|
+
if (fields.idNum1) add("idNum1", "text", "verification.labels.idNum1", fields.idNum1, { payloadKey: "idNumber1" });
|
|
6868
6933
|
if (fields.gender) add("gender", "radio", "verification.labels.gender", fields.gender, { options: [{
|
|
6869
6934
|
value: "F",
|
|
6870
6935
|
label: "common.female"
|
|
@@ -6876,23 +6941,26 @@ function legacyBuildFieldDefs(fields, configSource, country, enablePhoneRisk = f
|
|
|
6876
6941
|
const addAddressFields = () => {
|
|
6877
6942
|
const addrSource = fields.address;
|
|
6878
6943
|
if (!addrSource) return;
|
|
6879
|
-
if (HOUSE_NO_SOURCES.includes(configSource)) add("houseNo", "text", "verification.labels.houseNo", addrSource, { section: "address" });
|
|
6880
6944
|
if (STREET_SOURCES.includes(configSource)) add("street", "text", "verification.labels.street", addrSource, { section: "address" });
|
|
6945
|
+
if (HOUSE_NO_SOURCES.includes(configSource)) add("houseNo", "text", "verification.labels.houseNo", addrSource, { section: "address" });
|
|
6881
6946
|
if (APARTMENT_SOURCES.includes(configSource)) add("apartment", "text", "verification.labels.apartment", addrSource, {
|
|
6882
6947
|
section: "address",
|
|
6883
6948
|
placeholder: "verification.placeholder.apartment"
|
|
6884
6949
|
});
|
|
6885
6950
|
if (CITY_SOURCES.includes(configSource)) add("city", "text", "verification.labels.city", addrSource, { section: "address" });
|
|
6886
|
-
if (ADDRESS_STATE_SOURCES.includes(configSource))
|
|
6887
|
-
|
|
6888
|
-
|
|
6889
|
-
|
|
6890
|
-
|
|
6891
|
-
|
|
6892
|
-
|
|
6893
|
-
|
|
6894
|
-
|
|
6895
|
-
|
|
6951
|
+
if (ADDRESS_STATE_SOURCES.includes(configSource)) {
|
|
6952
|
+
const stateOptions = STATE_OPTIONS_BY_COUNTRY[country];
|
|
6953
|
+
add("state", stateOptions ? "dropdown" : "text", stateOptions ? "verification.labels.chooseState" : "verification.labels.state", addrSource, {
|
|
6954
|
+
section: "address",
|
|
6955
|
+
...stateOptions ? {
|
|
6956
|
+
options: stateOptions,
|
|
6957
|
+
placeholder: "verification.placeholder.state"
|
|
6958
|
+
} : {
|
|
6959
|
+
placeholder: "verification.placeholder.stateCode",
|
|
6960
|
+
placeholderParams: { states: STATE_CODE_HINTS[country] ?? "" }
|
|
6961
|
+
}
|
|
6962
|
+
});
|
|
6963
|
+
}
|
|
6896
6964
|
if (POSTAL_CODE_SOURCES.includes(configSource)) add("postalCode", "text", country === "US" ? "verification.labels.zipCode" : "verification.labels.postalCode", addrSource, {
|
|
6897
6965
|
section: "address",
|
|
6898
6966
|
maxLength: getPostalCodeMaxLength(country)
|
|
@@ -7142,6 +7210,14 @@ async function submitEkyc(data, signal) {
|
|
|
7142
7210
|
//#region src/modules/ekyc/ekycGuards.ts
|
|
7143
7211
|
const hasNoValidationErrorsGuard = ({ context }) => Object.keys(context.validationErrors ?? {}).length === 0;
|
|
7144
7212
|
const hasFlowIdGuard = ({ context }) => !!context.config.flowId;
|
|
7213
|
+
/** The backend runs the checks itself, so the step finishes without a form. */
|
|
7214
|
+
const isAutoExecutionGuard = ({ context }) => context.config.autoExecution === true;
|
|
7215
|
+
/** The fetched module config turns on auto execution. */
|
|
7216
|
+
const isModuleConfigAutoExecutionGuard = ({ event }) => event.output?.autoExecution === true;
|
|
7217
|
+
/** A `flowId` config whose module config never arrived (its load failed). */
|
|
7218
|
+
const needsModuleConfigGuard = ({ context }) => !!context.config.flowId && context.moduleConfig === void 0;
|
|
7219
|
+
/** A form with a phone field whose phone rules haven't loaded. */
|
|
7220
|
+
const needsPhoneRulesGuard = ({ context }) => context.fields.some((field) => field.type === "phone") && getPhoneValidation() === void 0;
|
|
7145
7221
|
const hasVerificationFieldsGuard = ({ context }) => !!context.config.verificationFields;
|
|
7146
7222
|
const COUNTRY_NOT_SUPPORTED_MSG = "Request unsuccessful. Country not supported for EKYC.";
|
|
7147
7223
|
const isCountryNotSupportedGuard = ({ event }) => {
|
|
@@ -7154,9 +7230,17 @@ const fetchModuleConfigActor = fromPromise(async ({ input, signal }) => {
|
|
|
7154
7230
|
const phoneRules = loadPhoneValidator();
|
|
7155
7231
|
phoneRules.catch(() => void 0);
|
|
7156
7232
|
const config = await fetchModuleConfig(input.flowId, signal);
|
|
7157
|
-
if (getEKYCFields(config).phone !== false) await phoneRules;
|
|
7233
|
+
if (config.autoExecution !== true && getEKYCFields(config).phone !== false) await phoneRules;
|
|
7158
7234
|
return config;
|
|
7159
7235
|
});
|
|
7236
|
+
/**
|
|
7237
|
+
* Loads the phone validation rules for a config that arrived already resolved
|
|
7238
|
+
* (a workflow node, or `verificationFields`), which skips
|
|
7239
|
+
* `fetchModuleConfigActor`. Only a form with a phone field waits for them.
|
|
7240
|
+
*/
|
|
7241
|
+
const loadPhoneRulesActor = fromPromise(async ({ input }) => {
|
|
7242
|
+
if (input.hasPhone) await loadPhoneValidator();
|
|
7243
|
+
});
|
|
7160
7244
|
/** The first address suggestion for the first query that has one. */
|
|
7161
7245
|
async function firstSuggestion(queries, signal) {
|
|
7162
7246
|
for (const query of queries) try {
|
|
@@ -7219,6 +7303,7 @@ const ekycMachine = setup({
|
|
|
7219
7303
|
},
|
|
7220
7304
|
actors: {
|
|
7221
7305
|
fetchModuleConfig: fetchModuleConfigActor,
|
|
7306
|
+
loadPhoneRules: loadPhoneRulesActor,
|
|
7222
7307
|
fetchPrefillData: fetchPrefillDataActor,
|
|
7223
7308
|
submitEkyc: submitEkycActor,
|
|
7224
7309
|
debounceSearch: debounceSearchActor
|
|
@@ -7333,7 +7418,11 @@ const ekycMachine = setup({
|
|
|
7333
7418
|
guards: {
|
|
7334
7419
|
hasNoValidationErrors: hasNoValidationErrorsGuard,
|
|
7335
7420
|
hasFlowId: hasFlowIdGuard,
|
|
7421
|
+
isAutoExecution: isAutoExecutionGuard,
|
|
7422
|
+
isModuleConfigAutoExecution: isModuleConfigAutoExecutionGuard,
|
|
7336
7423
|
hasVerificationFields: hasVerificationFieldsGuard,
|
|
7424
|
+
needsModuleConfig: needsModuleConfigGuard,
|
|
7425
|
+
needsPhoneRules: needsPhoneRulesGuard,
|
|
7337
7426
|
isCountryNotSupported: isCountryNotSupportedGuard,
|
|
7338
7427
|
shouldAutoSubmit: ({ context }) => !context.autoSubmitted && showsNoFields(context),
|
|
7339
7428
|
showsNoFields: ({ context }) => showsNoFields(context)
|
|
@@ -7365,11 +7454,15 @@ const ekycMachine = setup({
|
|
|
7365
7454
|
states: {
|
|
7366
7455
|
idle: { on: { LOAD: [
|
|
7367
7456
|
{
|
|
7368
|
-
target: "
|
|
7457
|
+
target: "finished",
|
|
7458
|
+
guard: "isAutoExecution"
|
|
7459
|
+
},
|
|
7460
|
+
{
|
|
7461
|
+
target: "loading.moduleConfig",
|
|
7369
7462
|
guard: "hasFlowId"
|
|
7370
7463
|
},
|
|
7371
7464
|
{
|
|
7372
|
-
target: "
|
|
7465
|
+
target: "loading.phoneRules",
|
|
7373
7466
|
guard: "hasVerificationFields",
|
|
7374
7467
|
actions: assign(({ context }) => {
|
|
7375
7468
|
const vFields = context.config.verificationFields;
|
|
@@ -7385,19 +7478,37 @@ const ekycMachine = setup({
|
|
|
7385
7478
|
},
|
|
7386
7479
|
{ target: "misconfigured" }
|
|
7387
7480
|
] } },
|
|
7388
|
-
loading: {
|
|
7389
|
-
|
|
7390
|
-
|
|
7391
|
-
|
|
7392
|
-
|
|
7393
|
-
|
|
7394
|
-
|
|
7395
|
-
|
|
7396
|
-
|
|
7397
|
-
|
|
7398
|
-
|
|
7481
|
+
loading: {
|
|
7482
|
+
initial: "moduleConfig",
|
|
7483
|
+
states: {
|
|
7484
|
+
moduleConfig: { invoke: {
|
|
7485
|
+
id: "fetchModuleConfig",
|
|
7486
|
+
src: "fetchModuleConfig",
|
|
7487
|
+
input: ({ context }) => ({ flowId: context.config.flowId }),
|
|
7488
|
+
onDone: [{
|
|
7489
|
+
target: "#ekyc.finished",
|
|
7490
|
+
guard: "isModuleConfigAutoExecution"
|
|
7491
|
+
}, {
|
|
7492
|
+
target: "#ekyc.prefilling",
|
|
7493
|
+
actions: "setModuleConfig"
|
|
7494
|
+
}],
|
|
7495
|
+
onError: {
|
|
7496
|
+
target: "#ekyc.error",
|
|
7497
|
+
actions: "setErrorMessage"
|
|
7498
|
+
}
|
|
7499
|
+
} },
|
|
7500
|
+
phoneRules: { invoke: {
|
|
7501
|
+
id: "loadPhoneRules",
|
|
7502
|
+
src: "loadPhoneRules",
|
|
7503
|
+
input: ({ context }) => ({ hasPhone: context.fields.some((field) => field.type === "phone") }),
|
|
7504
|
+
onDone: { target: "#ekyc.prefilling" },
|
|
7505
|
+
onError: {
|
|
7506
|
+
target: "#ekyc.error",
|
|
7507
|
+
actions: "setErrorMessage"
|
|
7508
|
+
}
|
|
7509
|
+
} }
|
|
7399
7510
|
}
|
|
7400
|
-
}
|
|
7511
|
+
},
|
|
7401
7512
|
prefilling: { invoke: {
|
|
7402
7513
|
id: "fetchPrefillData",
|
|
7403
7514
|
src: "fetchPrefillData",
|
|
@@ -7489,10 +7600,22 @@ const ekycMachine = setup({
|
|
|
7489
7600
|
} },
|
|
7490
7601
|
success: { after: { 3e3: "finished" } },
|
|
7491
7602
|
error: { on: {
|
|
7492
|
-
RETRY:
|
|
7493
|
-
|
|
7494
|
-
|
|
7495
|
-
|
|
7603
|
+
RETRY: [
|
|
7604
|
+
{
|
|
7605
|
+
target: "loading.moduleConfig",
|
|
7606
|
+
guard: "needsModuleConfig",
|
|
7607
|
+
actions: "clearErrorMessage"
|
|
7608
|
+
},
|
|
7609
|
+
{
|
|
7610
|
+
target: "loading.phoneRules",
|
|
7611
|
+
guard: "needsPhoneRules",
|
|
7612
|
+
actions: "clearErrorMessage"
|
|
7613
|
+
},
|
|
7614
|
+
{
|
|
7615
|
+
target: "form",
|
|
7616
|
+
actions: ["clearErrorMessage", assign({ autoSubmitted: () => false })]
|
|
7617
|
+
}
|
|
7618
|
+
],
|
|
7496
7619
|
SKIP: { target: "finished" },
|
|
7497
7620
|
CLOSE: { target: "closed" }
|
|
7498
7621
|
} },
|