@incodetech/core 2.5.0-agentic → 2.5.0-agentic.2
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/{FaceDetectionProvider-Dv9iXub0.esm.js → FaceDetectionProvider-ClZEDaLF.esm.js} +9 -9
- package/dist/{IIdCaptureCapability-CAxToGns.d.ts → IIdCaptureCapability-BRAZQtkM.d.ts} +1 -0
- package/dist/{MotionSensorProvider-X4_2eBGd.esm.js → MotionSensorProvider-BAGydZPH.esm.js} +5 -0
- package/dist/{WasmUtilProvider-DVFDFlIL.esm.js → WasmUtilProvider-C4x5gc1c.esm.js} +2 -2
- package/dist/{definitionSource-B-Z2EgJJ.esm.js → addressSearch-DBJeg_g3.esm.js} +76 -9
- package/dist/ae-signature.esm.js +1 -1
- package/dist/{phoneFormat-C3q0Ukh4.esm.js → allowedCharacters-Bnir--CN.esm.js} +1 -11
- package/dist/antifraud.esm.js +2 -2
- package/dist/{antifraudManager-BI2zr7YX.esm.js → antifraudManager-DRMBLSh7.esm.js} +3 -3
- package/dist/{antifraudStateMachine-TWUu8wLN.esm.js → antifraudStateMachine-Bi0m60oV.esm.js} +1 -1
- package/dist/{api-BNxrW8xK.esm.js → api-B58edv6M.esm.js} +0 -1
- package/dist/{apiError-BAfdBGxH.esm.js → apiError-CWjo9dzH.esm.js} +1 -1
- package/dist/{attemptCarry-DWM8lV9V.esm.js → attemptCarry-CxiYlUAO.esm.js} +1 -1
- package/dist/authentication.d.ts +3 -3
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-BJElkTsj.d.ts → authenticationManager-CkD0JR7Q.d.ts} +1 -1
- package/dist/{authenticationManager-DFzByAYo.esm.js → authenticationManager-D_qFuB3y.esm.js} +6 -6
- package/dist/{authenticationStateMachine-CKTOhwwc.esm.js → authenticationStateMachine-DJJWTDZS.esm.js} +3 -3
- package/dist/{browser-pQZA35G2-CG3C-xGt.esm.js → browser-pQZA35G2-B4Dwja1e.esm.js} +1 -1
- package/dist/{calendarDate-DcqGuEht.esm.js → calendarDate-D2zWfUlA.esm.js} +1 -1
- package/dist/camera.esm.js +1 -1
- package/dist/certificate-issuance.esm.js +2 -2
- package/dist/{certificateIssuanceManager-P44yBRop.esm.js → certificateIssuanceManager-Ctj6AJC7.esm.js} +3 -3
- package/dist/{certificateIssuanceStateMachine-BPBrILt6.esm.js → certificateIssuanceStateMachine-DDqN9kvL.esm.js} +1 -1
- package/dist/{cnpj-Bl_olpdX.esm.js → cnpj-CVq3vL39.esm.js} +1 -9
- package/dist/cnpj-D5cxwIe-.esm.js +9 -0
- package/dist/consent.d.ts +1 -1
- package/dist/consent.esm.js +2 -2
- package/dist/{consentManager-Duzd8paN.d.ts → consentManager-B0YKqYtZ.d.ts} +5 -5
- package/dist/{consentManager-D43w2ms-.esm.js → consentManager-CyoeiABc.esm.js} +3 -3
- package/dist/{consentStateMachine-CLK8PfM4.esm.js → consentStateMachine-BTUrAslr.esm.js} +1 -1
- package/dist/cross-document-data-match.esm.js +1 -1
- package/dist/{crossDocumentDataMatchManager-Cag_bcyW.esm.js → crossDocumentDataMatchManager-cmQmp7Bi.esm.js} +3 -3
- package/dist/curp-validation.d.ts +1 -1
- package/dist/curp-validation.esm.js +2 -2
- package/dist/{curpValidationManager-C6WmQToS.esm.js → curpValidationManager-EW44fVpH.esm.js} +3 -3
- package/dist/{curpValidationManager-CmL52FU8.d.ts → curpValidationManager-HOidAKvT.d.ts} +1 -1
- package/dist/{curpValidationStateMachine-BbJ4YAzE.esm.js → curpValidationStateMachine-BFkt90Zs.esm.js} +3 -3
- package/dist/custom-fields.esm.js +1 -1
- package/dist/custom-watchlist.esm.js +2 -2
- package/dist/{customFieldsManager-BBy6X9nh.esm.js → customFieldsManager-DPMBJrcH.esm.js} +4 -4
- package/dist/{customWatchlistManager-CtBMy2EF.esm.js → customWatchlistManager-DiYpPjZx.esm.js} +3 -3
- package/dist/{customWatchlistStateMachine-SS2ssNCg.esm.js → customWatchlistStateMachine-D7VxQggF.esm.js} +1 -1
- package/dist/{deepsightCaptureConfig-Nm_K8twx.esm.js → deepsightCaptureConfig-XPx0BN30.esm.js} +2 -2
- package/dist/{deepsightLoader-BInnND1H.esm.js → deepsightLoader-Bvs8HYaK.esm.js} +7 -7
- package/dist/definitionSource-B9WTvQb9.esm.js +30 -0
- package/dist/{desktopCameraElection-JNBOXqvK.esm.js → desktopCameraElection-CdrLiJTn.esm.js} +8 -8
- package/dist/document-capture.esm.js +2 -2
- package/dist/document-signature.esm.js +3 -3
- package/dist/{documentCaptureManager-CGDtkfWj.esm.js → documentCaptureManager-SRG6YEMh.esm.js} +3 -3
- package/dist/{documentCaptureStateMachine-flAt9D4q.esm.js → documentCaptureStateMachine-Bh0uyfGq.esm.js} +4 -4
- package/dist/{documentSignatureStateMachine-DrRyICFT.esm.js → documentSignatureStateMachine-oqU3EPca.esm.js} +4 -4
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-CxLq2KzT.esm.js → dynamicFormsManager-YGL7Avp-.esm.js} +3 -3
- package/dist/{dynamicFormsStateMachine-By-maT_4.esm.js → dynamicFormsStateMachine-BE_WfmVE.esm.js} +3 -3
- package/dist/ekyb.d.ts +4 -4
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-CE19Pcdb.esm.js → ekybManager-35NxvxZK.esm.js} +3 -3
- package/dist/{ekybManager-BflWuTe4.d.ts → ekybManager-Cjk8pQX0.d.ts} +2 -2
- package/dist/{ekybStateMachine-q7JQ-x9l.esm.js → ekybStateMachine-BD4zpC3O.esm.js} +141 -10
- package/dist/{ekybUtils-Z9MhFAer.esm.js → ekybUtils-Dl0MU-ib.esm.js} +23 -1
- package/dist/ekyc-prefill.d.ts +5 -5
- package/dist/ekyc-prefill.esm.js +2 -2
- package/dist/ekyc.d.ts +3 -3
- package/dist/ekyc.esm.js +3 -3
- package/dist/{ekycManager-p3uenUEi.esm.js → ekycManager-D2K8AaMV.esm.js} +3 -3
- package/dist/{ekycManager-BKVQazAb.d.ts → ekycManager-DusmB-4j.d.ts} +2 -2
- package/dist/{ekycPrefillManager-BcLhkpp8.d.ts → ekycPrefillManager-BwmPXfhY.d.ts} +12 -12
- package/dist/{ekycPrefillManager-gPX3XE7u.esm.js → ekycPrefillManager-CxzjSch2.esm.js} +6 -7
- package/dist/ekycPrefillStateMachine-x6skDqhq.esm.js +1289 -0
- package/dist/{ekycStateMachine-D0NAHzS7.esm.js → ekycStateMachine-6EKndBd7.esm.js} +740 -230
- package/dist/{ekycUtils-DEvtEyBI.esm.js → ekycUtils-C6HZB46m.esm.js} +37 -6
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-C1M-Yxf2.esm.js → electronicSignatureManager-BYJHywZK.esm.js} +4 -4
- package/dist/email.esm.js +2 -2
- package/dist/{emailManager-DWnhEsUf.esm.js → emailManager-BBdRYLtH.esm.js} +3 -3
- package/dist/{emailStateMachine--T9PHflK.esm.js → emailStateMachine-DO7lWYvn.esm.js} +2 -2
- package/dist/{events-ChMS-UzR.esm.js → events-PUWyizJn.esm.js} +2 -2
- package/dist/events.d.ts +0 -3
- package/dist/events.esm.js +2 -2
- package/dist/extensibility.d.ts +15 -15
- package/dist/extensibility.esm.js +36 -36
- package/dist/face-match.esm.js +2 -2
- package/dist/{faceCaptureManagerFactory-18QW0lmV.esm.js → faceCaptureManagerFactory-CYr2rVEj.esm.js} +6 -6
- package/dist/{faceCaptureManagerFactory-CHqmyOjM.d.ts → faceCaptureManagerFactory-D1EJw36F.d.ts} +3 -3
- package/dist/{faceCaptureSetup-CFToXwHy.esm.js → faceCaptureSetup-DadLKnMf.esm.js} +20 -12
- package/dist/{faceMatchManager-DIStK4qi.esm.js → faceMatchManager-nBvS9z0o.esm.js} +3 -3
- package/dist/{faceMatchStateMachine-DagrRdo2.esm.js → faceMatchStateMachine-48O8j_Lx.esm.js} +2 -2
- package/dist/{feature-management-BlscKbeV.esm.js → feature-management-CUzbPq54.esm.js} +1 -1
- package/dist/feature-management.esm.js +1 -1
- package/dist/field-comparison.esm.js +1 -1
- package/dist/{fieldComparisonManager-BnWBtMN7.esm.js → fieldComparisonManager-B1ipvtnp.esm.js} +3 -3
- package/dist/fiscal-qr.esm.js +1 -1
- package/dist/{fiscalQrManager-BxXaLhin.esm.js → fiscalQrManager-yecjuXV4.esm.js} +3 -3
- package/dist/flow-events.d.ts +1 -1
- package/dist/flow.d.ts +7 -7
- package/dist/flow.esm.js +5 -5
- package/dist/{flowCompletionService-DNLssMAg.esm.js → flowCompletionService-BSiUcHmU.esm.js} +2 -2
- package/dist/{flowServices-Bzq3piUR.esm.js → flowServices-BIMnpB8Q.esm.js} +9 -9
- package/dist/formErrors-lSfh7Y8J.esm.js +512 -0
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-DoLbpx5e.esm.js → geolocationManager-D7J-rLJp.esm.js} +3 -3
- package/dist/{geolocationStateMachine-d5_E7gAm.esm.js → geolocationStateMachine-5g2Quxbz.esm.js} +3 -3
- package/dist/government-validation.esm.js +2 -2
- package/dist/{governmentValidationManager-CaZxyEOO.esm.js → governmentValidationManager-0-L21hu6.esm.js} +3 -3
- package/dist/{governmentValidationStateMachine-DeHHhlcf.esm.js → governmentValidationStateMachine-BFIcq3UB.esm.js} +1 -1
- package/dist/home.d.ts +1 -1
- package/dist/home.esm.js +2 -2
- package/dist/http.esm.js +1 -1
- package/dist/id-ocr.d.ts +1 -1
- package/dist/id-ocr.esm.js +19 -3
- package/dist/id-selfie-flow.d.ts +2 -2
- package/dist/id-selfie-flow.esm.js +8 -8
- package/dist/id-verification.esm.js +2 -2
- package/dist/id.d.ts +3 -3
- package/dist/id.esm.js +3 -3
- package/dist/{idCaptureDefaults-R3rHuTOE.esm.js → idCaptureDefaults-CNopPetU.esm.js} +16 -6
- package/dist/{idCaptureManager-CgkQW3Xc.d.ts → idCaptureManager-CNFBeYgV.d.ts} +20 -5
- package/dist/{idCaptureManager-D_YGMeCW.esm.js → idCaptureManager-Du5jr3gJ.esm.js} +24 -18
- package/dist/{idCaptureServices-CP6AxsFW.esm.js → idCaptureServices-N0sn1AOF.esm.js} +5 -5
- package/dist/{idCaptureStateMachine-BdBtGQZP.esm.js → idCaptureStateMachine-CHk0uv1U.esm.js} +191 -44
- package/dist/{idOcrManager-C0C7lFGd.d.ts → idOcrManager-DflRx-_u.d.ts} +1 -1
- package/dist/{idOcrManager-XTbpfHoF.esm.js → idOcrManager-bjBLjrEE.esm.js} +3 -3
- package/dist/{idOcrStateMachine-B-00PgPh.esm.js → idOcrStateMachine-D5ifJ1B8.esm.js} +2 -2
- package/dist/{idVerificationManager-B4NYLlUl.esm.js → idVerificationManager-C8Ja-vKq.esm.js} +3 -3
- package/dist/{idVerificationStateMachine-B48Ikl-7.esm.js → idVerificationStateMachine-BMnfZZli.esm.js} +1 -1
- package/dist/identity-reuse.esm.js +2 -2
- package/dist/identity-search.esm.js +2 -2
- package/dist/{identityReuseManager-tFeYm_So.esm.js → identityReuseManager-B5BWAleT.esm.js} +3 -3
- package/dist/{identityReuseStateMachine-Ckf39qFu.esm.js → identityReuseStateMachine-Cuggm1UP.esm.js} +1 -1
- package/dist/{index-CoePktWH.d.ts → index-BoGlwLGK.d.ts} +1 -1
- package/dist/{index-CNck5TLp.d.ts → index-bsGvWr9-.d.ts} +21 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/{invokeOnCaptureCallback-DNQX9k5e.esm.js → invokeOnCaptureCallback-D2FOfi4O.esm.js} +1 -1
- package/dist/kyb-checks.d.ts +3 -3
- package/dist/kyb-checks.esm.js +2 -2
- package/dist/{kybChecksManager-DP76y-Qz.esm.js → kybChecksManager-CDxP2pYP.esm.js} +2 -2
- package/dist/{kybChecksManager-B7Di9auB.d.ts → kybChecksManager-CKDy1mel.d.ts} +1 -1
- package/dist/{kybChecksStateMachine-OKLT8Zoc.esm.js → kybChecksStateMachine-ZOKNXTUx.esm.js} +176 -179
- package/dist/mandatory-consent.d.ts +2 -2
- package/dist/mandatory-consent.esm.js +2 -2
- package/dist/{mandatoryConsentManager-kzr5kdc_.d.ts → mandatoryConsentManager-BcxCesP5.d.ts} +6 -6
- package/dist/{mandatoryConsentManager-NX1lz6nk.esm.js → mandatoryConsentManager-FfgHdPYw.esm.js} +3 -3
- package/dist/{mandatoryConsentStateMachine-D1J2NQSI.esm.js → mandatoryConsentStateMachine-CXuYC3qR.esm.js} +1 -1
- package/dist/{multipartRecordingService-Cz-cWrpV.esm.js → multipartRecordingService-CFmOUGQt.esm.js} +1 -1
- package/dist/numericRange-2e1vw1W0.esm.js +256 -0
- package/dist/{permissionGuards-Cyh71hOt.esm.js → permissionGuards-CZTCRHT-.esm.js} +1 -1
- package/dist/{permissionServices-BrtDMB0Z.esm.js → permissionServices-Vd86JiW9.esm.js} +19 -7
- package/dist/phone.d.ts +1 -1
- package/dist/phone.esm.js +2 -2
- package/dist/{phoneManager-VO1HEoUZ.d.ts → phoneManager-bA-xw2TP.d.ts} +0 -8
- package/dist/{phoneManager-D1QPNbu0.esm.js → phoneManager-oIMdbeLG.esm.js} +5 -6
- package/dist/{phoneServices-DC7AuUed.esm.js → phoneServices-Dk4j3NhI.esm.js} +2 -12
- package/dist/{phoneStateMachine-CxCPxTIy.esm.js → phoneStateMachine-Cu3y7ewi.esm.js} +3 -8
- package/dist/{processFaceMatch-BQoiqLVh.esm.js → processFaceMatch-CHeI0DEt.esm.js} +1 -1
- package/dist/qe-signature.esm.js +1 -1
- package/dist/{recordingService-CSCvD2tB.esm.js → recordingService-Cg-DwTxA.esm.js} +3 -3
- package/dist/redirect-to-mobile.esm.js +2 -2
- package/dist/{redirectToMobileManager-Dcpg5GfP.esm.js → redirectToMobileManager-yYJGE47m.esm.js} +3 -3
- package/dist/{redirectToMobileStateMachine-BMehrtVP.esm.js → redirectToMobileStateMachine-g_NbyHrL.esm.js} +1 -1
- package/dist/{runChildModule-DNEmc7of.esm.js → runChildModule-Dd-tXDh2.esm.js} +2 -2
- package/dist/{sdkVersion-etdZfyCR.esm.js → sdkVersion-DDHH3E2F.esm.js} +1 -1
- package/dist/selfie.d.ts +3 -3
- package/dist/selfie.esm.js +11 -11
- package/dist/{selfieErrorUtils-DT-uhK20.esm.js → selfieErrorUtils-Dtm9bDS7.esm.js} +1 -1
- package/dist/{selfieManager-CdS6a7Q8.esm.js → selfieManager-BYJPzJW1.esm.js} +6 -6
- package/dist/{selfieManager-DrBYj5kA.d.ts → selfieManager-CqDlUy6B.d.ts} +1 -1
- package/dist/{selfieStateMachine-ChCl3nyf.esm.js → selfieStateMachine-DGg7S9O6.esm.js} +3 -3
- package/dist/{session-VXYuRYzb.esm.js → session-B49EJzZg.esm.js} +5 -5
- package/dist/session.d.ts +1 -1
- package/dist/session.esm.js +5 -5
- package/dist/{sessionInitializer-BT_CmYcX.esm.js → sessionInitializer-CaY5gnUl.esm.js} +11 -11
- package/dist/{setup-BXrgDdfx.esm.js → setup-B7SDCbtu.esm.js} +13 -13
- package/dist/{setup-rcXgYUcY.d.ts → setup-CTnxQSQW.d.ts} +1 -1
- package/dist/signature.esm.js +2 -2
- package/dist/{signatureManager-B737Gkvk.esm.js → signatureManager-DRUflksL.esm.js} +3 -3
- package/dist/{signatureStateMachine-B-QG7fk0.esm.js → signatureStateMachine-BQZenxel.esm.js} +1 -1
- package/dist/{stats-CrqhpKkP.esm.js → stats-DHu3li6G.esm.js} +1 -1
- package/dist/stats.esm.js +1 -1
- package/dist/{tri-BD9z6z0w.esm.js → tri-DBB-iiN3.esm.js} +8 -25
- package/dist/tri.d.ts +1 -1
- package/dist/{tri.esm-DYdFtcDH.esm.js → tri.esm-CftnGf9w.esm.js} +187 -177
- package/dist/tri.esm.js +1 -1
- package/dist/trueSight-Dg3TSVN7.esm.js +1 -0
- package/dist/{trueSightService-BwyLhIAo.esm.js → trueSightService-BWDGk571.esm.js} +5 -7
- package/dist/trust-graph.esm.js +3 -3
- package/dist/{trustGraphStateMachine-BxvReuo1.esm.js → trustGraphStateMachine-0Ehwried.esm.js} +1 -1
- package/dist/{types-4Re9FSOw.d.ts → types-BZsmNYom.d.ts} +3 -4
- package/dist/types-BinnzVrL.d.ts +6 -0
- package/dist/{types-BgRHw-dR.d.ts → types-BwMpWCVG.d.ts} +6 -2
- package/dist/{types-b0l9b83G.d.ts → types-D-FEM1rT.d.ts} +26 -10
- package/dist/{textRules-D4NRinKY.d.ts → types-D6Q1D1kx.d.ts} +1 -9
- package/dist/{types-CBQN04Rh.esm.js → types-DLsivQsu.esm.js} +0 -3
- package/dist/{types-CTaL0XJz.d.ts → types-DWqO7owj.d.ts} +2 -24
- package/dist/{types-CEGG70FK.d.ts → types-HHgsFhZn.d.ts} +1 -1
- package/dist/{types-C1056-J1.d.ts → types-LbccjQYX.d.ts} +1 -1
- package/dist/{types-DHpz4Y37.d.ts → types-PnJXvTkV.d.ts} +1 -1
- package/dist/{types-B-PIc0en.d.ts → types-g3NuVCT9.d.ts} +40 -37
- package/dist/{types-DEa3taWc.d.ts → types-tOSLpcSa.d.ts} +16 -2
- package/dist/video-selfie.d.ts +14 -6
- package/dist/video-selfie.esm.js +12 -9
- package/dist/{videoSelfieCameraWarmer-DgRlU_8q.esm.js → videoSelfieCameraWarmer-DFhlGeRd.esm.js} +27 -8
- package/dist/{videoSelfieStepDetector-DC_Qh7qI.d.ts → videoSelfieStepDetector-CxOc3kSI.d.ts} +3 -3
- package/dist/{warmup-BN8dG2KX.esm.js → warmup-ClZxXOkg.esm.js} +1 -1
- package/dist/wasm.d.ts +2 -2
- package/dist/wasm.esm.js +3 -3
- package/dist/{wasmDsFlagSync-DwBfTlgB.esm.js → wasmDsFlagSync-Bw-P5OG1.esm.js} +1 -1
- package/dist/{wasmWebClient-B2P6Vlvv.esm.js → wasmWebClient-BLtlzQhv.esm.js} +9 -9
- package/dist/watchlist-for-business.esm.js +2 -2
- package/dist/watchlist.esm.js +2 -2
- package/dist/{watchlistForBusinessManager-DxeSH80T.esm.js → watchlistForBusinessManager-d8kdf35n.esm.js} +3 -3
- package/dist/{watchlistForBusinessStateMachine-BC9UWLuZ.esm.js → watchlistForBusinessStateMachine-Y9wFmuMH.esm.js} +4 -3
- package/dist/{watchlistManager-BHzmC9OC.esm.js → watchlistManager-D1BVrd3H.esm.js} +3 -3
- package/dist/{watchlistStateMachine-Bxzn16iJ.esm.js → watchlistStateMachine-Da4p0sTE.esm.js} +1 -1
- package/dist/workflow.d.ts +1 -1
- package/dist/workflow.esm.js +42 -42
- package/package.json +3 -3
- package/dist/addressSearch-BKlynuBr.esm.js +0 -71
- package/dist/ekycPrefillStateMachine-SBnBKPGA.esm.js +0 -685
- package/dist/ekycRules-BH_Ll_0A.esm.js +0 -482
- package/dist/idOcrCpfUtils-D5Gwskxu.esm.js +0 -18
- package/dist/trueSight-BymJD5cW.esm.js +0 -1
- package/dist/types-BtrJ5fkm.d.ts +0 -6
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { t as WasmUtilProvider } from "./WasmUtilProvider-
|
|
2
|
-
import { u as trueSightLog } from "./trueSightService-
|
|
3
|
-
import { t as SDK_VERSION } from "./sdkVersion-
|
|
4
|
-
import "./trueSight-
|
|
5
|
-
import { C as SDK_PLATFORM, S as fingerprintSignalsReporter, _ as isBrowserSimulation, b as IpifyProvider, n as getFingerprintEnabled, t as getDisableIpify, x as BrowserEnvironmentProvider } from "./sessionInitializer-
|
|
1
|
+
import { t as WasmUtilProvider } from "./WasmUtilProvider-C4x5gc1c.esm.js";
|
|
2
|
+
import { u as trueSightLog } from "./trueSightService-BWDGk571.esm.js";
|
|
3
|
+
import { t as SDK_VERSION } from "./sdkVersion-DDHH3E2F.esm.js";
|
|
4
|
+
import "./trueSight-Dg3TSVN7.esm.js";
|
|
5
|
+
import { C as SDK_PLATFORM, S as fingerprintSignalsReporter, _ as isBrowserSimulation, b as IpifyProvider, n as getFingerprintEnabled, t as getDisableIpify, x as BrowserEnvironmentProvider } from "./sessionInitializer-CaY5gnUl.esm.js";
|
|
6
6
|
import { t as getParsedUserAgent } from "./getParsedUserAgent-DhQPeKqw.esm.js";
|
|
7
7
|
import { t as getUserAgent } from "./getBrowser-CBiibsL-.esm.js";
|
|
8
|
-
import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-
|
|
9
|
-
import { t as MotionSensorProvider } from "./MotionSensorProvider-
|
|
8
|
+
import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-Bw-P5OG1.esm.js";
|
|
9
|
+
import { t as MotionSensorProvider } from "./MotionSensorProvider-BAGydZPH.esm.js";
|
|
10
10
|
import { t as getDeviceInfo } from "./getDeviceClass-CeBiEayS.esm.js";
|
|
11
11
|
import { n as runVirtualCameraCheck } from "./virtualCameraCheck-eFOm2C9q.esm.js";
|
|
12
12
|
//#region src/internal/deepsight/metadataService.ts
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
//#region src/internal/forms/checks/charTemplate.ts
|
|
2
|
+
const escapeForPattern = (chars) => chars.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
3
|
+
/**
|
|
4
|
+
* `charTemplate`: the whole value matches one template, where `9` is a digit,
|
|
5
|
+
* `A` an uppercase letter A-Z and any other character stands for itself.
|
|
6
|
+
* `ignoreCase` also accepts lowercase letters and literals in either case.
|
|
7
|
+
*/
|
|
8
|
+
function matchesCharTemplate(value, templates, ignoreCase = false) {
|
|
9
|
+
return templates.some((template) => {
|
|
10
|
+
const pattern = [...template].map((char) => {
|
|
11
|
+
if (char === "9") return "[0-9]";
|
|
12
|
+
if (char === "A") return "[A-Z]";
|
|
13
|
+
return escapeForPattern(char);
|
|
14
|
+
}).join("");
|
|
15
|
+
return new RegExp(`^${pattern}$`, ignoreCase ? "iu" : "u").test(value);
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
//#region src/internal/forms/definitionSource.ts
|
|
20
|
+
const queryKey = ({ module, source, country }) => `${module}|${source ?? ""}|${country ?? ""}`;
|
|
21
|
+
/**
|
|
22
|
+
* The definitions bundled with this build. Matches module, source and country
|
|
23
|
+
* exactly, so a pair without its own definition keeps the current builder.
|
|
24
|
+
*/
|
|
25
|
+
function createBundledDefinitionSource(definitions) {
|
|
26
|
+
const byQuery = new Map(Object.values(definitions).map((definition) => [queryKey(definition), definition]));
|
|
27
|
+
return { select: (query) => byQuery.get(queryKey(query)) };
|
|
28
|
+
}
|
|
29
|
+
//#endregion
|
|
30
|
+
export { matchesCharTemplate as n, createBundledDefinitionSource as t };
|
package/dist/{desktopCameraElection-JNBOXqvK.esm.js → desktopCameraElection-CdrLiJTn.esm.js}
RENAMED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { n as getTimestamp } from "./IBrowserEnvironmentCapability-D7JG7ML3.esm.js";
|
|
2
|
-
import { d as CAMERA_CYCLE_OWNERSHIP_DOMAIN, f as getCameraCycleOwnershipDomain, l as wasmRuntime, u as resetWasmOtherStateSync } from "./warmup-
|
|
2
|
+
import { d as CAMERA_CYCLE_OWNERSHIP_DOMAIN, f as getCameraCycleOwnershipDomain, l as wasmRuntime, u as resetWasmOtherStateSync } from "./warmup-ClZxXOkg.esm.js";
|
|
3
3
|
import { r as setWasmDeepsightConfigSync } from "./wasmDeepsightConfigSync-DukEcrU8.esm.js";
|
|
4
|
-
import { i as utilityWasmApi } from "./WasmUtilProvider-
|
|
5
|
-
import { t as api, u as endpoints } from "./api-
|
|
6
|
-
import { u as trueSightLog } from "./trueSightService-
|
|
7
|
-
import "./trueSight-
|
|
8
|
-
import { m as getFeatureGate } from "./feature-management-
|
|
4
|
+
import { i as utilityWasmApi } from "./WasmUtilProvider-C4x5gc1c.esm.js";
|
|
5
|
+
import { t as api, u as endpoints } from "./api-B58edv6M.esm.js";
|
|
6
|
+
import { u as trueSightLog } from "./trueSightService-BWDGk571.esm.js";
|
|
7
|
+
import "./trueSight-Dg3TSVN7.esm.js";
|
|
8
|
+
import { m as getFeatureGate } from "./feature-management-CUzbPq54.esm.js";
|
|
9
9
|
import { t as fromCallback } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
10
10
|
import { c as isCameraDenialErrorName, n as enumerateVideoDevices, o as withAudioTracks, r as requestCameraAccess, s as clearCameraGrantedInDocument, u as markCameraGrantedInDocument } from "./camera-CJKApt0x.esm.js";
|
|
11
|
-
import {
|
|
11
|
+
import { u as queryCameraPermission } from "./permissionServices-Vd86JiW9.esm.js";
|
|
12
12
|
import { t as getDeviceClass } from "./getDeviceClass-Dcy9erbl.esm.js";
|
|
13
|
-
import { t as deepsightCaptureConfigText } from "./deepsightCaptureConfig-
|
|
13
|
+
import { t as deepsightCaptureConfigText } from "./deepsightCaptureConfig-XPx0BN30.esm.js";
|
|
14
14
|
import { r as selectBestBackDevice, t as isBackCameraLabel } from "./backCameraLabel-yda5ugE4.esm.js";
|
|
15
15
|
//#region ../infra/src/capabilities/ICameraCycleCapability.ts
|
|
16
16
|
/**
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { r as DOCUMENT_CAPTURE_ERROR_CODES, t as documentCaptureMachine } from "./documentCaptureStateMachine-
|
|
2
|
-
import { n as createDocumentCaptureManagerFromActor, t as createDocumentCaptureManager } from "./documentCaptureManager-
|
|
1
|
+
import { r as DOCUMENT_CAPTURE_ERROR_CODES, t as documentCaptureMachine } from "./documentCaptureStateMachine-Bh0uyfGq.esm.js";
|
|
2
|
+
import { n as createDocumentCaptureManagerFromActor, t as createDocumentCaptureManager } from "./documentCaptureManager-SRG6YEMh.esm.js";
|
|
3
3
|
export { DOCUMENT_CAPTURE_ERROR_CODES, createDocumentCaptureManager, createDocumentCaptureManagerFromActor, documentCaptureMachine };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { n as eventModuleNames } from "./types-
|
|
2
|
-
import { t as createManagerInstrumentation } from "./events-
|
|
1
|
+
import { n as eventModuleNames } from "./types-DLsivQsu.esm.js";
|
|
2
|
+
import { t as createManagerInstrumentation } from "./events-PUWyizJn.esm.js";
|
|
3
3
|
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
4
4
|
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
5
|
-
import { a as hasReadAll, i as hasDownloads, n as canSubmitSignature, r as documentSignatureMachine, t as canOpenSign } from "./documentSignatureStateMachine-
|
|
5
|
+
import { a as hasReadAll, i as hasDownloads, n as canSubmitSignature, r as documentSignatureMachine, t as canOpenSign } from "./documentSignatureStateMachine-oqU3EPca.esm.js";
|
|
6
6
|
//#region src/modules/document-signature/documentSignatureActor.ts
|
|
7
7
|
function createDocumentSignatureActor(options) {
|
|
8
8
|
return createActor(documentSignatureMachine, { input: { config: options.config } }).start();
|
package/dist/{documentCaptureManager-CGDtkfWj.esm.js → documentCaptureManager-SRG6YEMh.esm.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { n as eventModuleNames } from "./types-
|
|
2
|
-
import { t as createManagerInstrumentation } from "./events-
|
|
1
|
+
import { n as eventModuleNames } from "./types-DLsivQsu.esm.js";
|
|
2
|
+
import { t as createManagerInstrumentation } from "./events-PUWyizJn.esm.js";
|
|
3
3
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
4
4
|
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
5
5
|
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
6
|
-
import { n as DEFAULT_MAX_FILE_SIZE, r as DOCUMENT_CAPTURE_ERROR_CODES, t as documentCaptureMachine } from "./documentCaptureStateMachine-
|
|
6
|
+
import { n as DEFAULT_MAX_FILE_SIZE, r as DOCUMENT_CAPTURE_ERROR_CODES, t as documentCaptureMachine } from "./documentCaptureStateMachine-Bh0uyfGq.esm.js";
|
|
7
7
|
//#region src/modules/document-capture/documentCaptureActor.ts
|
|
8
8
|
function createDocumentCaptureActor(options) {
|
|
9
9
|
return createActor(documentCaptureMachine, { input: { config: options.config } }).start();
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { t as api, u as endpoints } from "./api-
|
|
1
|
+
import { t as api, u as endpoints } from "./api-B58edv6M.esm.js";
|
|
2
2
|
import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
3
3
|
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
4
4
|
import { a as stopCameraStream } from "./camera-CJKApt0x.esm.js";
|
|
5
|
-
import { n as
|
|
6
|
-
import { r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-
|
|
7
|
-
import { t as carryAttempts } from "./attemptCarry-
|
|
5
|
+
import { n as checkPermission, r as invokeRequestPermissionActor } from "./permissionServices-Vd86JiW9.esm.js";
|
|
6
|
+
import { r as resolveStoredPermissionResult, t as isReadyForCaptureFromPermission } from "./permissionGuards-CZTCRHT-.esm.js";
|
|
7
|
+
import { t as carryAttempts } from "./attemptCarry-CxiYlUAO.esm.js";
|
|
8
8
|
import { n as getBackCameraStream } from "./backCameraStream-6qVHvj76.esm.js";
|
|
9
9
|
//#region src/modules/document-capture/types.ts
|
|
10
10
|
const PROCESSING_TYPE_MAP = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as eventModuleNames, v as addEvent } from "./types-
|
|
2
|
-
import { t as api, u as endpoints } from "./api-
|
|
3
|
-
import "./events-
|
|
4
|
-
import { i as toIncodeApiError } from "./apiError-
|
|
1
|
+
import { n as eventModuleNames, v as addEvent } from "./types-DLsivQsu.esm.js";
|
|
2
|
+
import { t as api, u as endpoints } from "./api-B58edv6M.esm.js";
|
|
3
|
+
import "./events-PUWyizJn.esm.js";
|
|
4
|
+
import { i as toIncodeApiError } from "./apiError-CWjo9dzH.esm.js";
|
|
5
5
|
import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
6
6
|
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
7
7
|
//#region src/modules/document-signature/documentSignatureServices.ts
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-
|
|
2
|
-
import { t as createDynamicFormsManager } from "./dynamicFormsManager-
|
|
1
|
+
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-BE_WfmVE.esm.js";
|
|
2
|
+
import { t as createDynamicFormsManager } from "./dynamicFormsManager-YGL7Avp-.esm.js";
|
|
3
3
|
export { createDynamicFormsManager, dynamicFormsMachine };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { n as eventModuleNames } from "./types-
|
|
2
|
-
import { t as createManagerInstrumentation } from "./events-
|
|
1
|
+
import { n as eventModuleNames } from "./types-DLsivQsu.esm.js";
|
|
2
|
+
import { t as createManagerInstrumentation } from "./events-PUWyizJn.esm.js";
|
|
3
3
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
4
4
|
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
5
5
|
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
6
|
-
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-
|
|
6
|
+
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-BE_WfmVE.esm.js";
|
|
7
7
|
//#region src/modules/dynamic-forms/dynamicFormsActor.ts
|
|
8
8
|
function createDynamicFormsActor(options) {
|
|
9
9
|
return createActor(dynamicFormsMachine, { input: { config: options.config } }).start();
|
package/dist/{dynamicFormsStateMachine-By-maT_4.esm.js → dynamicFormsStateMachine-BE_WfmVE.esm.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as api, u as endpoints } from "./api-
|
|
2
|
-
import { i as toIncodeApiError, r as isServerError, t as IncodeApiError } from "./apiError-
|
|
1
|
+
import { t as api, u as endpoints } from "./api-B58edv6M.esm.js";
|
|
2
|
+
import { i as toIncodeApiError, r as isServerError, t as IncodeApiError } from "./apiError-CWjo9dzH.esm.js";
|
|
3
3
|
import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
4
4
|
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
5
|
-
import { n as calendarDateError } from "./calendarDate-
|
|
5
|
+
import { n as calendarDateError } from "./calendarDate-D2zWfUlA.esm.js";
|
|
6
6
|
import { t as isoDateToMs } from "./dateUtils-CvG0FvK8.esm.js";
|
|
7
7
|
//#region src/modules/dynamic-forms/dynamicFormsFields.ts
|
|
8
8
|
function getEffectiveType(question) {
|
package/dist/ekyb.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./xstate.cjs-D6Ur0X1F.js";
|
|
2
|
-
import {
|
|
3
|
-
import { i as FlowModuleConfig } from "./types-
|
|
4
|
-
import { a as EkybValidationError, n as EkybCountry, o as EkybValidationErrors, r as EkybFieldDef, s as UboEntry, t as EkybConfig } from "./types-
|
|
5
|
-
import { n as EkybState, o as ekybMachine, r as createEkybManager, t as EkybManager } from "./ekybManager-
|
|
2
|
+
import { t as AddressSuggestion } from "./types-D6Q1D1kx.js";
|
|
3
|
+
import { i as FlowModuleConfig } from "./types-BZsmNYom.js";
|
|
4
|
+
import { a as EkybValidationError, n as EkybCountry, o as EkybValidationErrors, r as EkybFieldDef, s as UboEntry, t as EkybConfig } from "./types-BwMpWCVG.js";
|
|
5
|
+
import { n as EkybState, o as ekybMachine, r as createEkybManager, t as EkybManager } from "./ekybManager-Cjk8pQX0.js";
|
|
6
6
|
//#region src/modules/ekyb/ekybServices.d.ts
|
|
7
7
|
type EkybFlowConfig = FlowModuleConfig['EKYB'];
|
|
8
8
|
//#endregion
|
package/dist/ekyb.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as ekybMachine } from "./ekybStateMachine-
|
|
3
|
-
import { t as createEkybManager } from "./ekybManager-
|
|
1
|
+
import { g as isSupportedCountry, l as ALL_COUNTRIES, p as SUPPORTED_COUNTRIES, s as toEkybConfig, u as DEV_ONLY_COUNTRIES } from "./ekybUtils-Dl0MU-ib.esm.js";
|
|
2
|
+
import { t as ekybMachine } from "./ekybStateMachine-BD4zpC3O.esm.js";
|
|
3
|
+
import { t as createEkybManager } from "./ekybManager-35NxvxZK.esm.js";
|
|
4
4
|
export { ALL_COUNTRIES, DEV_ONLY_COUNTRIES, SUPPORTED_COUNTRIES, createEkybManager, ekybMachine, isSupportedCountry, toEkybConfig };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { n as eventModuleNames } from "./types-
|
|
2
|
-
import { t as createManagerInstrumentation } from "./events-
|
|
1
|
+
import { n as eventModuleNames } from "./types-DLsivQsu.esm.js";
|
|
2
|
+
import { t as createManagerInstrumentation } from "./events-PUWyizJn.esm.js";
|
|
3
3
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
4
4
|
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
5
5
|
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
6
|
-
import { t as ekybMachine } from "./ekybStateMachine-
|
|
6
|
+
import { t as ekybMachine } from "./ekybStateMachine-BD4zpC3O.esm.js";
|
|
7
7
|
//#region src/modules/ekyb/ekybActor.ts
|
|
8
8
|
/**
|
|
9
9
|
* Creates and starts an eKYB actor.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { i as ActorRefFrom } from "./spawn-COZKetCS.js";
|
|
2
2
|
import { t as Manager } from "./Manager-DufwKlav.js";
|
|
3
3
|
import "./Actor-DqjOqDfU.js";
|
|
4
|
-
import {
|
|
5
|
-
import { i as EkybFormValues, o as EkybValidationErrors, r as EkybFieldDef, s as UboEntry, t as EkybConfig } from "./types-
|
|
4
|
+
import { t as AddressSuggestion } from "./types-D6Q1D1kx.js";
|
|
5
|
+
import { i as EkybFormValues, o as EkybValidationErrors, r as EkybFieldDef, s as UboEntry, t as EkybConfig } from "./types-BwMpWCVG.js";
|
|
6
6
|
//#region src/modules/ekyb/ekybStateMachine.d.ts
|
|
7
7
|
declare const ekybMachine: any;
|
|
8
8
|
type EkybMachine = typeof ekybMachine;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { t as api, u as endpoints } from "./api-
|
|
2
|
-
import { n as getFlow } from "./flowServices-
|
|
1
|
+
import { t as api, u as endpoints } from "./api-B58edv6M.esm.js";
|
|
2
|
+
import { n as getFlow } from "./flowServices-BIMnpB8Q.esm.js";
|
|
3
3
|
import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
4
4
|
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
5
|
-
import { a as requiresAddressValidation, c as ADDRESS_FIELDS, d as FIELD_NAME_MAPPING, f as FIELD_ORDER,
|
|
5
|
+
import { a as requiresAddressValidation, c as ADDRESS_FIELDS, d as FIELD_NAME_MAPPING, f as FIELD_ORDER, g as isSupportedCountry, h as UBO_FIELD_LABELS, i as isFormFieldEntry, l as ALL_COUNTRIES, m as TAX_ID_RULES_BY_COUNTRY, n as hasAtLeastOneAddressField, o as sortModulesByOrder, r as isFieldOptional, s as toEkybConfig } from "./ekybUtils-Dl0MU-ib.esm.js";
|
|
6
6
|
import { t as usStateOptions } from "./usStates-CwOQ2kAx.esm.js";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
7
|
+
import { t as validateCNPJ } from "./cnpj-CVq3vL39.esm.js";
|
|
8
|
+
import { n as requiresCnpjValidation } from "./cnpj-D5cxwIe-.esm.js";
|
|
9
|
+
import { a as getPostalCodeErrorKey, c as validatePostalCode, d as getStreetLevelErrorForSuggestion, f as keepSuggestionInOptions, i as formatPostalCode, l as STREET_LEVEL_REQUIRED_ERROR, o as getPostalCodeErrorParams, r as isFormDefinitionsEnabled, s as getPostalCodeMaxLength, t as debounceSearchActor, u as fillFromSuggestion } from "./addressSearch-DBJeg_g3.esm.js";
|
|
9
10
|
import { n as checkSupport, r as DYNAMIC_REQUIRED_KEY, t as resolveForm } from "./resolveForm-DaaQSVWp.esm.js";
|
|
10
|
-
import {
|
|
11
|
+
import { n as matchesCharTemplate, t as createBundledDefinitionSource } from "./definitionSource-B9WTvQb9.esm.js";
|
|
11
12
|
//#region src/modules/ekyb/ekybValidators.ts
|
|
12
13
|
const createValidators = () => ({
|
|
13
14
|
required: (value, _rule, field) => {
|
|
@@ -34,6 +35,11 @@ const createValidators = () => ({
|
|
|
34
35
|
key: getPostalCodeErrorKey(rule.country),
|
|
35
36
|
params: getPostalCodeErrorParams(rule.country)
|
|
36
37
|
};
|
|
38
|
+
},
|
|
39
|
+
charTemplate: (value, rule) => {
|
|
40
|
+
if (rule.type !== "charTemplate") return void 0;
|
|
41
|
+
if (value.trim().length === 0) return void 0;
|
|
42
|
+
return matchesCharTemplate(value.trim(), rule.templates, rule.ignoreCase) ? void 0 : { key: "verification.errors.invalidFormat" };
|
|
37
43
|
}
|
|
38
44
|
});
|
|
39
45
|
const normalizeFieldValue = (value) => typeof value === "string" ? value : String(value ?? "");
|
|
@@ -457,6 +463,118 @@ const EKYB_DEFINITIONS = {
|
|
|
457
463
|
context: { country: "country" }
|
|
458
464
|
}
|
|
459
465
|
},
|
|
466
|
+
"ekyb/CO": {
|
|
467
|
+
schemaVersion: 1,
|
|
468
|
+
vocabulary: "1.0",
|
|
469
|
+
id: "ekyb/CO",
|
|
470
|
+
module: "ekyb",
|
|
471
|
+
country: "CO",
|
|
472
|
+
availableIn: ["development", "staging"],
|
|
473
|
+
fields: [
|
|
474
|
+
{
|
|
475
|
+
name: "businessName",
|
|
476
|
+
kind: "text",
|
|
477
|
+
group: "businessName",
|
|
478
|
+
required: true,
|
|
479
|
+
label: { key: "ekyb.businessName" },
|
|
480
|
+
input: { autofill: "organization" }
|
|
481
|
+
},
|
|
482
|
+
{
|
|
483
|
+
name: "taxId",
|
|
484
|
+
kind: "text",
|
|
485
|
+
group: "taxId",
|
|
486
|
+
required: true,
|
|
487
|
+
label: { key: "ekyb.taxId" },
|
|
488
|
+
rules: [{
|
|
489
|
+
id: "charTemplate",
|
|
490
|
+
params: { templates: [
|
|
491
|
+
"999999999",
|
|
492
|
+
"9999999999",
|
|
493
|
+
"999999999-9",
|
|
494
|
+
"999.999.999",
|
|
495
|
+
"999.999.999-9"
|
|
496
|
+
] }
|
|
497
|
+
}]
|
|
498
|
+
},
|
|
499
|
+
{
|
|
500
|
+
name: "street",
|
|
501
|
+
kind: "text",
|
|
502
|
+
group: "address",
|
|
503
|
+
required: true,
|
|
504
|
+
widget: "addressSearch",
|
|
505
|
+
label: { key: "ekyb.street" },
|
|
506
|
+
input: { autofill: "addressLine1" }
|
|
507
|
+
},
|
|
508
|
+
{
|
|
509
|
+
name: "houseNo",
|
|
510
|
+
kind: "text",
|
|
511
|
+
group: "address",
|
|
512
|
+
required: true,
|
|
513
|
+
label: { key: "ekyb.houseNo" }
|
|
514
|
+
},
|
|
515
|
+
{
|
|
516
|
+
name: "addressLine2",
|
|
517
|
+
kind: "text",
|
|
518
|
+
group: "address",
|
|
519
|
+
label: { key: "ekyb.addressLine2" },
|
|
520
|
+
input: { autofill: "addressLine2" }
|
|
521
|
+
},
|
|
522
|
+
{
|
|
523
|
+
name: "city",
|
|
524
|
+
kind: "text",
|
|
525
|
+
group: "address",
|
|
526
|
+
required: true,
|
|
527
|
+
label: { key: "ekyb.city" },
|
|
528
|
+
input: { autofill: "addressLevel2" }
|
|
529
|
+
},
|
|
530
|
+
{
|
|
531
|
+
name: "state",
|
|
532
|
+
kind: "text",
|
|
533
|
+
group: "address",
|
|
534
|
+
required: true,
|
|
535
|
+
label: { key: "ekyb.state" },
|
|
536
|
+
input: { autofill: "addressLevel1" }
|
|
537
|
+
},
|
|
538
|
+
{
|
|
539
|
+
name: "postalCode",
|
|
540
|
+
kind: "text",
|
|
541
|
+
group: "address",
|
|
542
|
+
label: { key: "ekyb.postalCode" },
|
|
543
|
+
input: {
|
|
544
|
+
maxLength: 6,
|
|
545
|
+
autofill: "postalCode"
|
|
546
|
+
},
|
|
547
|
+
rules: [{ id: "postalCodeFormat" }]
|
|
548
|
+
}
|
|
549
|
+
],
|
|
550
|
+
collections: [{
|
|
551
|
+
id: "ubos",
|
|
552
|
+
group: "ubos",
|
|
553
|
+
min: 1,
|
|
554
|
+
max: 8,
|
|
555
|
+
fields: [{
|
|
556
|
+
name: "name",
|
|
557
|
+
kind: "text",
|
|
558
|
+
group: "ubos",
|
|
559
|
+
required: true,
|
|
560
|
+
label: { key: "ekyb.uboName" }
|
|
561
|
+
}, {
|
|
562
|
+
name: "surname",
|
|
563
|
+
kind: "text",
|
|
564
|
+
group: "ubos",
|
|
565
|
+
required: true,
|
|
566
|
+
label: { key: "ekyb.uboSurname" }
|
|
567
|
+
}],
|
|
568
|
+
payload: {
|
|
569
|
+
key: "uboNames",
|
|
570
|
+
join: ["name", "surname"]
|
|
571
|
+
}
|
|
572
|
+
}],
|
|
573
|
+
submit: {
|
|
574
|
+
static: { plugins: ["ekyb"] },
|
|
575
|
+
context: { country: "country" }
|
|
576
|
+
}
|
|
577
|
+
},
|
|
460
578
|
"ekyb/DE": {
|
|
461
579
|
schemaVersion: 1,
|
|
462
580
|
vocabulary: "1.0",
|
|
@@ -1447,7 +1565,12 @@ const RULES = {
|
|
|
1447
1565
|
postalCodeFormat: (country) => ({
|
|
1448
1566
|
type: "postalCodeFormat",
|
|
1449
1567
|
country
|
|
1450
|
-
})
|
|
1568
|
+
}),
|
|
1569
|
+
charTemplate: (_country, { templates, ignoreCase }) => Array.isArray(templates) && templates.length > 0 && templates.every((t) => typeof t === "string" && t !== "") && (ignoreCase === void 0 || typeof ignoreCase === "boolean") ? {
|
|
1570
|
+
type: "charTemplate",
|
|
1571
|
+
templates: [...templates],
|
|
1572
|
+
...ignoreCase !== void 0 && { ignoreCase }
|
|
1573
|
+
} : void 0
|
|
1451
1574
|
};
|
|
1452
1575
|
const EKYB_SUPPORTED_IDS = {
|
|
1453
1576
|
schemaVersions: [1],
|
|
@@ -1562,8 +1685,8 @@ function projectField(field, required, country) {
|
|
|
1562
1685
|
}));
|
|
1563
1686
|
const validation = required ? [{ type: "required" }] : [];
|
|
1564
1687
|
for (const rule of field.rules ?? []) {
|
|
1565
|
-
const
|
|
1566
|
-
if (
|
|
1688
|
+
const projected = RULES[rule.id]?.(country, rule.params ?? {});
|
|
1689
|
+
if (projected) validation.push(projected);
|
|
1567
1690
|
}
|
|
1568
1691
|
if (validation.length > 0) def.validation = validation;
|
|
1569
1692
|
return def;
|
|
@@ -1582,6 +1705,7 @@ function buildEkybValidationRules(fieldName, required, country) {
|
|
|
1582
1705
|
const rules = [];
|
|
1583
1706
|
if (required) rules.push({ type: "required" });
|
|
1584
1707
|
if (fieldName === "taxId" && requiresCnpjValidation(country)) rules.push({ type: "cnpj" });
|
|
1708
|
+
if (fieldName === "taxId") rules.push(...TAX_ID_RULES_BY_COUNTRY[country] ?? []);
|
|
1585
1709
|
if (fieldName === "postalCode") rules.push({
|
|
1586
1710
|
type: "postalCodeFormat",
|
|
1587
1711
|
country
|
|
@@ -1661,6 +1785,13 @@ function processEkybFieldValue(name, value, country) {
|
|
|
1661
1785
|
return value;
|
|
1662
1786
|
}
|
|
1663
1787
|
/**
|
|
1788
|
+
* Whether a field's value is left out of the request body: absent, `null`, or
|
|
1789
|
+
* text that is blank once trimmed (CK1 decision K1, as the kernel's
|
|
1790
|
+
* `buildPayload` does). A host can pass anything to `setField`, so any other
|
|
1791
|
+
* value is sent as it is.
|
|
1792
|
+
*/
|
|
1793
|
+
const isLeftOut = (value) => value === void 0 || value === null || typeof value === "string" && value.trim() === "";
|
|
1794
|
+
/**
|
|
1664
1795
|
* Builds the request body. Keep it in sync with `isProjectableField` and
|
|
1665
1796
|
* `isProjectableUboCollection` in `ekybForm.ts`: definitions are projectable
|
|
1666
1797
|
* only when they declare exactly this handling, until P2 builds request
|
|
@@ -1675,7 +1806,7 @@ function buildEkybSubmitPayload(ctx) {
|
|
|
1675
1806
|
};
|
|
1676
1807
|
for (const field of ctx.fields) {
|
|
1677
1808
|
const val = ctx.values[field.name];
|
|
1678
|
-
if (val
|
|
1809
|
+
if (!isLeftOut(val)) payload[field.name] = val;
|
|
1679
1810
|
}
|
|
1680
1811
|
return payload;
|
|
1681
1812
|
}
|
|
@@ -21,6 +21,7 @@ const SUPPORTED_COUNTRIES = [
|
|
|
21
21
|
*/
|
|
22
22
|
const DEV_ONLY_COUNTRIES = [
|
|
23
23
|
"CM",
|
|
24
|
+
"CO",
|
|
24
25
|
"KE",
|
|
25
26
|
"NG"
|
|
26
27
|
];
|
|
@@ -67,6 +68,26 @@ const ADDRESS_FIELDS = [
|
|
|
67
68
|
"postalCode"
|
|
68
69
|
];
|
|
69
70
|
const ALL_COUNTRIES_OPTIONAL_FIELDS = ["ubo"];
|
|
71
|
+
/**
|
|
72
|
+
* Fields a country doesn't require, beyond the ones no country requires.
|
|
73
|
+
* Colombia: most companies have no postal code on the registry.
|
|
74
|
+
*/
|
|
75
|
+
const OPTIONAL_FIELDS_BY_COUNTRY = { CO: ["postalCode"] };
|
|
76
|
+
/**
|
|
77
|
+
* The format rules on a country's tax ID, beyond the CNPJ check on Brazil's.
|
|
78
|
+
* Colombia: the 9-digit NIT, with or without the dots, and with or without
|
|
79
|
+
* the check digit (DV). The backend reduces it to the 9 digits.
|
|
80
|
+
*/
|
|
81
|
+
const TAX_ID_RULES_BY_COUNTRY = { CO: [{
|
|
82
|
+
type: "charTemplate",
|
|
83
|
+
templates: [
|
|
84
|
+
"999999999",
|
|
85
|
+
"9999999999",
|
|
86
|
+
"999999999-9",
|
|
87
|
+
"999.999.999",
|
|
88
|
+
"999.999.999-9"
|
|
89
|
+
]
|
|
90
|
+
}] };
|
|
70
91
|
const UBO_FIELD_LABELS = {
|
|
71
92
|
name: "ekyb.uboName",
|
|
72
93
|
surname: "ekyb.uboSurname"
|
|
@@ -131,6 +152,7 @@ function isFieldOptional(fieldName, countryCode) {
|
|
|
131
152
|
if (ALL_COUNTRIES_OPTIONAL_FIELDS.includes(fieldName)) return true;
|
|
132
153
|
if (fieldName === "businessName") return BUSINESS_NAME_OPTIONAL_COUNTRIES.includes(countryCode);
|
|
133
154
|
if (fieldName === "addressLine2") return true;
|
|
155
|
+
if (OPTIONAL_FIELDS_BY_COUNTRY[countryCode]?.includes(fieldName)) return true;
|
|
134
156
|
if (ADDRESS_FIELDS.includes(fieldName)) return false;
|
|
135
157
|
if (fieldName === "taxId") return false;
|
|
136
158
|
return false;
|
|
@@ -147,4 +169,4 @@ function requiresAddressValidation(countryCode) {
|
|
|
147
169
|
return !ADDRESS_FULLY_OPTIONAL_COUNTRIES.includes(countryCode);
|
|
148
170
|
}
|
|
149
171
|
//#endregion
|
|
150
|
-
export { requiresAddressValidation as a, ADDRESS_FIELDS as c, FIELD_NAME_MAPPING as d, FIELD_ORDER as f, isSupportedCountry as h, isFormFieldEntry as i, ALL_COUNTRIES as l,
|
|
172
|
+
export { requiresAddressValidation as a, ADDRESS_FIELDS as c, FIELD_NAME_MAPPING as d, FIELD_ORDER as f, isSupportedCountry as g, UBO_FIELD_LABELS as h, isFormFieldEntry as i, ALL_COUNTRIES as l, TAX_ID_RULES_BY_COUNTRY as m, hasAtLeastOneAddressField as n, sortModulesByOrder as o, SUPPORTED_COUNTRIES as p, isFieldOptional as r, toEkybConfig as s, ekybUtils_exports as t, DEV_ONLY_COUNTRIES as u };
|
package/dist/ekyc-prefill.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import { a as
|
|
3
|
-
import { a as EkycPrefillFormState, c as EkycPrefillManager, d as EkycPrefillSubmittingState, f as createEkycPrefillManager, h as ekycPrefillMachine, i as EkycPrefillFinishedState, l as EkycPrefillMisconfiguredState, n as EkycPrefillClosedState, o as EkycPrefillIdleState, r as EkycPrefillErrorState, s as EkycPrefillLimitReachedState, t as EkycPrefillAnyOfState, u as EkycPrefillState } from "./ekycPrefillManager-BcLhkpp8.js";
|
|
1
|
+
import { a as EkycPrefillFieldDef, f as EkycPrefillValues, i as EkycPrefillErrorKind, l as EkycPrefillModuleConfig, n as EkycPrefillConfigField, o as EkycPrefillFieldError, s as EkycPrefillFieldErrors, t as EkycPrefillConfig, u as EkycPrefillServedField } from "./types-g3NuVCT9.js";
|
|
2
|
+
import { a as EkycPrefillFormState, c as EkycPrefillManager, d as EkycPrefillSubmittingState, f as createEkycPrefillManager, h as ekycPrefillMachine, i as EkycPrefillFinishedState, l as EkycPrefillMisconfiguredState, n as EkycPrefillClosedState, o as EkycPrefillIdleState, r as EkycPrefillErrorState, s as EkycPrefillLimitReachedState, t as EkycPrefillAnyOfState, u as EkycPrefillState } from "./ekycPrefillManager-BwmPXfhY.js";
|
|
4
3
|
//#region src/modules/ekyc-prefill/ekycPrefillConfig.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* Normalizes the served `EKYC_PREFILL` configuration. Idempotent, so a
|
|
@@ -10,8 +9,9 @@ import { a as EkycPrefillFormState, c as EkycPrefillManager, d as EkycPrefillSub
|
|
|
10
9
|
* check hides the field.
|
|
11
10
|
* - `fields` stays `undefined` when the configuration has no `fields` array:
|
|
12
11
|
* the flat dashboard shape, which the module can't render.
|
|
13
|
-
* - `source
|
|
12
|
+
* - A field's `source` and `displayMode` are kept when served as non-empty
|
|
13
|
+
* strings; other per-field keys are dropped.
|
|
14
14
|
*/
|
|
15
15
|
declare function toEkycPrefillConfig(raw: EkycPrefillModuleConfig | EkycPrefillConfig | undefined): EkycPrefillConfig;
|
|
16
16
|
//#endregion
|
|
17
|
-
export { type EkycPrefillAnyOfState, type EkycPrefillClosedState, type EkycPrefillConfig, type EkycPrefillConfigField, type EkycPrefillErrorKind, type EkycPrefillErrorState, type EkycPrefillFieldDef, type
|
|
17
|
+
export { type EkycPrefillAnyOfState, type EkycPrefillClosedState, type EkycPrefillConfig, type EkycPrefillConfigField, type EkycPrefillErrorKind, type EkycPrefillErrorState, type EkycPrefillFieldDef, type EkycPrefillFieldError, type EkycPrefillFieldErrors, type EkycPrefillFinishedState, type EkycPrefillFormState, type EkycPrefillIdleState, type EkycPrefillLimitReachedState, type EkycPrefillManager, type EkycPrefillMisconfiguredState, type EkycPrefillModuleConfig, type EkycPrefillServedField, type EkycPrefillState, type EkycPrefillSubmittingState, type EkycPrefillValues, createEkycPrefillManager, ekycPrefillMachine, toEkycPrefillConfig };
|
package/dist/ekyc-prefill.esm.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as createEkycPrefillManager } from "./ekycPrefillManager-
|
|
1
|
+
import { r as toEkycPrefillConfig, t as ekycPrefillMachine } from "./ekycPrefillStateMachine-x6skDqhq.esm.js";
|
|
2
|
+
import { t as createEkycPrefillManager } from "./ekycPrefillManager-CxzjSch2.esm.js";
|
|
3
3
|
export { createEkycPrefillManager, ekycPrefillMachine, toEkycPrefillConfig };
|
package/dist/ekyc.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { c as EkycValidationErrors, i as EkycFieldDisplayMode, n as EkycDisplayModes, o as EkycModuleConfig, s as EkycValidationError, t as EkycConfig } from "./types-
|
|
3
|
-
import { a as EkycStep, n as EkycState, r as createEkycManager, s as ekycMachine, t as EkycManager } from "./ekycManager-
|
|
1
|
+
import { t as AddressSuggestion } from "./types-D6Q1D1kx.js";
|
|
2
|
+
import { c as EkycValidationErrors, i as EkycFieldDisplayMode, n as EkycDisplayModes, o as EkycModuleConfig, s as EkycValidationError, t as EkycConfig } from "./types-tOSLpcSa.js";
|
|
3
|
+
import { a as EkycStep, n as EkycState, r as createEkycManager, s as ekycMachine, t as EkycManager } from "./ekycManager-DusmB-4j.js";
|
|
4
4
|
//#region src/modules/ekyc/ekycUtils.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Normalizes any supported eKYC config input into a manager-ready `EkycConfig`.
|
package/dist/ekyc.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { t as createEkycManager } from "./ekycManager-
|
|
1
|
+
import { d as toEkycConfig } from "./ekycUtils-C6HZB46m.esm.js";
|
|
2
|
+
import { t as ekycMachine } from "./ekycStateMachine-6EKndBd7.esm.js";
|
|
3
|
+
import { t as createEkycManager } from "./ekycManager-D2K8AaMV.esm.js";
|
|
4
4
|
export { createEkycManager, ekycMachine, toEkycConfig };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { n as eventModuleNames } from "./types-
|
|
2
|
-
import { t as createManagerInstrumentation } from "./events-
|
|
1
|
+
import { n as eventModuleNames } from "./types-DLsivQsu.esm.js";
|
|
2
|
+
import { t as createManagerInstrumentation } from "./events-PUWyizJn.esm.js";
|
|
3
3
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
4
4
|
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
5
5
|
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
6
|
-
import { i as isStepValid, n as buildEkycSteps, r as clampStepIndex, t as ekycMachine } from "./ekycStateMachine-
|
|
6
|
+
import { i as isStepValid, n as buildEkycSteps, r as clampStepIndex, t as ekycMachine } from "./ekycStateMachine-6EKndBd7.esm.js";
|
|
7
7
|
//#region src/modules/ekyc/ekycActor.ts
|
|
8
8
|
/**
|
|
9
9
|
* Creates and starts an eKYC actor.
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { i as ActorRefFrom } from "./spawn-COZKetCS.js";
|
|
2
2
|
import { t as Manager } from "./Manager-DufwKlav.js";
|
|
3
3
|
import "./Actor-DqjOqDfU.js";
|
|
4
|
-
import {
|
|
5
|
-
import { a as EkycFormValues, c as EkycValidationErrors, r as EkycFieldDef, t as EkycConfig } from "./types-
|
|
4
|
+
import { t as AddressSuggestion } from "./types-D6Q1D1kx.js";
|
|
5
|
+
import { a as EkycFormValues, c as EkycValidationErrors, r as EkycFieldDef, t as EkycConfig } from "./types-tOSLpcSa.js";
|
|
6
6
|
//#region src/modules/ekyc/ekycStateMachine.d.ts
|
|
7
7
|
declare const ekycMachine: any;
|
|
8
8
|
type EkycMachine = typeof ekycMachine;
|
|
@@ -2,12 +2,11 @@ import { A as MachineSnapshot, O as PromiseActorLogic, S as RequiredLogicInput,
|
|
|
2
2
|
import "./xstate.cjs-D6Ur0X1F.js";
|
|
3
3
|
import { t as Manager } from "./Manager-DufwKlav.js";
|
|
4
4
|
import "./Actor-DqjOqDfU.js";
|
|
5
|
-
import { a as
|
|
6
|
-
import { a as EkycPrefillFieldDef, c as EkycPrefillModuleConfig, d as EkycPrefillSubmitResponse, i as EkycPrefillErrorKind, o as EkycPrefillInput, r as EkycPrefillContext, t as EkycPrefillConfig, u as EkycPrefillSubmitPlan } from "./types-B-PIc0en.js";
|
|
5
|
+
import { a as EkycPrefillFieldDef, c as EkycPrefillInput, d as EkycPrefillSubmitResponse, f as EkycPrefillValues, i as EkycPrefillErrorKind, l as EkycPrefillModuleConfig, r as EkycPrefillContext, s as EkycPrefillFieldErrors, t as EkycPrefillConfig } from "./types-g3NuVCT9.js";
|
|
7
6
|
//#region src/modules/ekyc-prefill/ekycPrefillStateMachine.d.ts
|
|
8
7
|
type SubmitInput = {
|
|
9
|
-
|
|
10
|
-
values:
|
|
8
|
+
config: EkycPrefillConfig;
|
|
9
|
+
values: EkycPrefillValues;
|
|
11
10
|
};
|
|
12
11
|
declare const ekycPrefillMachine: StateMachine<EkycPrefillContext, {
|
|
13
12
|
type: "LOAD";
|
|
@@ -216,7 +215,6 @@ declare const ekycPrefillMachine: StateMachine<EkycPrefillContext, {
|
|
|
216
215
|
values: {};
|
|
217
216
|
errors: {};
|
|
218
217
|
invalidFormats: {};
|
|
219
|
-
anyOfError: false;
|
|
220
218
|
phoneRulesLoaded: false;
|
|
221
219
|
phoneRulesFailed: false;
|
|
222
220
|
submitError: undefined;
|
|
@@ -401,8 +399,8 @@ declare const ekycPrefillMachine: StateMachine<EkycPrefillContext, {
|
|
|
401
399
|
type: "CLOSE";
|
|
402
400
|
}, AnyEventObject>;
|
|
403
401
|
}) => {
|
|
404
|
-
|
|
405
|
-
values:
|
|
402
|
+
config: EkycPrefillConfig;
|
|
403
|
+
values: EkycPrefillValues;
|
|
406
404
|
};
|
|
407
405
|
readonly onDone: {
|
|
408
406
|
readonly target: "finished";
|
|
@@ -474,20 +472,22 @@ type CreateEkycPrefillActorOptions = {
|
|
|
474
472
|
type EkycPrefillIdleState = {
|
|
475
473
|
status: 'idle';
|
|
476
474
|
};
|
|
477
|
-
/**
|
|
475
|
+
/**
|
|
476
|
+
* The "at least one of" rule: its members and its message. Show the message
|
|
477
|
+
* as a hint under them. A member left empty gets it as its own error (in
|
|
478
|
+
* `errors`); show the hint only while no member does.
|
|
479
|
+
*/
|
|
478
480
|
type EkycPrefillAnyOfState = {
|
|
479
481
|
fields: string[];
|
|
480
482
|
/** Message key. Its `fields` param lists the members' labels. */
|
|
481
483
|
message: string;
|
|
482
|
-
/** Show the message as an error; otherwise as a hint. */
|
|
483
|
-
showError: boolean;
|
|
484
484
|
};
|
|
485
485
|
type EkycPrefillFormState = {
|
|
486
486
|
status: 'form';
|
|
487
487
|
country: string;
|
|
488
488
|
fields: EkycPrefillFieldDef[];
|
|
489
|
-
values:
|
|
490
|
-
errors:
|
|
489
|
+
values: EkycPrefillValues;
|
|
490
|
+
errors: EkycPrefillFieldErrors;
|
|
491
491
|
anyOf: EkycPrefillAnyOfState | undefined;
|
|
492
492
|
/** A rejection the form can't pin on one field. Message key. */
|
|
493
493
|
submitError: string | undefined;
|