@incodetech/core 2.4.1-agentic → 2.4.1-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/BrowserNetworkStatusProvider-BrDXBEDd.esm.js +21 -0
- package/dist/{multipartRecordingService-DMBxHKS2.esm.js → CameraCompositor-DN7NkJzV.esm.js} +7 -734
- package/dist/{FaceDetectionProvider-B83VmClw.esm.js → FaceDetectionProvider-D9PlON49.esm.js} +11 -12
- package/dist/MultipartRecordingProvider-D9mauUdS.esm.js +146 -0
- package/dist/StreamCanvasProcessingSession-CBnbTnOr.esm.js +42 -0
- package/dist/{WasmUtilProvider-GTkoJyFY.esm.js → WasmUtilProvider-Dp2V-Uct.esm.js} +2 -2
- package/dist/WorkerEncoderRecordingProvider-B1ODYtgN.esm.js +80 -0
- package/dist/{addressSearch-41sMcnJk.esm.js → addressSearch-DzbE9Ogt.esm.js} +2 -352
- package/dist/ae-signature.esm.js +1 -1
- package/dist/antifraud.esm.js +2 -2
- package/dist/{antifraudManager-CQ08atTC.esm.js → antifraudManager-BObuHBjn.esm.js} +2 -2
- package/dist/{antifraudStateMachine-BcsUTTIr.esm.js → antifraudStateMachine-Dfrd2-26.esm.js} +1 -1
- package/dist/{api-BO8JA7Pf.esm.js → api-CpP4PS4S.esm.js} +2 -0
- package/dist/{apiError-CfuIvnUy.esm.js → apiError-gNfsp99I.esm.js} +1 -1
- package/dist/{attemptCarry-BjTJ6bMQ.esm.js → attemptCarry-WOkfvFMw.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-BtN4CHOR.esm.js} +5 -5
- package/dist/{authenticationManager-C-cOki0Y.d.ts → authenticationManager-CWmh7aSY.d.ts} +1 -1
- package/dist/{authenticationStateMachine-BL2ptOA0.esm.js → authenticationStateMachine-DdcnWnBT.esm.js} +3 -3
- 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-C0fRj-ID.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-C1nETQos.esm.js} +2 -2
- package/dist/{certificateIssuanceStateMachine-kksIUOPD.esm.js → certificateIssuanceStateMachine-DThXMDqr.esm.js} +1 -1
- 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-CBwFozhv.esm.js → consentManager-DMlSL6Ax.esm.js} +2 -2
- package/dist/{consentManager-_q9yJUku.d.ts → consentManager-bjfVXO7p.d.ts} +9 -9
- package/dist/{consentStateMachine-CpmRAcr2.esm.js → consentStateMachine-DIYSMxKQ.esm.js} +1 -1
- package/dist/cross-document-data-match.esm.js +1 -1
- package/dist/{crossDocumentDataMatchManager-64O8t10a.esm.js → crossDocumentDataMatchManager-BFTdiEDB.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-DNpC3wyf.esm.js} +2 -2
- package/dist/{curpValidationManager-CXpFE-Mv.d.ts → curpValidationManager-z8428oCM.d.ts} +1 -1
- package/dist/{curpValidationStateMachine-Bx9YhVkJ.esm.js → curpValidationStateMachine-B3iVsDyt.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-CvI-pDT3.esm.js} +2 -2
- package/dist/{customWatchlistManager-D8o-2Nej.esm.js → customWatchlistManager-BuHtUb0y.esm.js} +2 -2
- package/dist/{customWatchlistStateMachine-Sbi6DIcK.esm.js → customWatchlistStateMachine-CiVD9wyF.esm.js} +1 -1
- package/dist/{deepsightService-twg3bXqY.esm.js → deepsightLoader-Crsj_u0c.esm.js} +34 -29
- package/dist/{desktopCameraElection-kHY2IDJi.esm.js → desktopCameraElection-BGMtYwk3.esm.js} +5 -5
- package/dist/document-capture.d.ts +3 -3
- package/dist/document-capture.esm.js +2 -2
- package/dist/{documentCaptureManager-6tnnDkMX.d.ts → documentCaptureManager-DDfviFg0.d.ts} +25 -4
- package/dist/{documentCaptureManager-CMSC_Mhd.esm.js → documentCaptureManager-DLPqruXJ.esm.js} +3 -2
- package/dist/{documentCaptureStateMachine-BCwD5Rto.esm.js → documentCaptureStateMachine-DCvWQhFG.esm.js} +67 -26
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-DU6W1e20.esm.js → dynamicFormsManager-CwqgwLa5.esm.js} +2 -2
- package/dist/{dynamicFormsStateMachine-C8Z7k3vo.esm.js → dynamicFormsStateMachine-CBdnpD95.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-BVTqTHd3.esm.js} +2 -2
- package/dist/{ekybStateMachine-DBgFuEPK.esm.js → ekybStateMachine-BmZHuZE1.esm.js} +5 -3
- package/dist/ekybUtils-Cw8Ta9Qi.esm.js +140 -0
- package/dist/ekyc.d.ts +3 -2
- package/dist/ekyc.esm.js +3 -3
- package/dist/{ekycManager-BSQteIfC.d.ts → ekycManager-DlGIn9wA.d.ts} +2 -1
- package/dist/{ekycManager-C2cgG2Pl.esm.js → ekycManager-DymCvmVB.esm.js} +2 -2
- package/dist/{ekycStateMachine-CuNF7z4O.esm.js → ekycStateMachine-CoFCUJ2z.esm.js} +141 -68
- package/dist/{ekycUtils-BFncpC4F.esm.js → ekycUtils-GRuMELYr.esm.js} +80 -9
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-C7pqXsRm.esm.js → electronicSignatureManager-Bt_tCIdI.esm.js} +3 -3
- package/dist/email.esm.js +2 -2
- package/dist/{emailManager-FH_CP0cT.esm.js → emailManager-CGoE3CUe.esm.js} +2 -2
- package/dist/{emailStateMachine-Cx-uTaBV.esm.js → emailStateMachine-KgHfDNvM.esm.js} +2 -2
- package/dist/{events-CQteqXfy.esm.js → events-ggpBBaZ8.esm.js} +1 -1
- package/dist/events.esm.js +1 -1
- package/dist/extensibility.d.ts +15 -14
- package/dist/extensibility.esm.js +36 -35
- package/dist/face-match.esm.js +2 -2
- package/dist/{faceCaptureManagerFactory-CBm05KnT.esm.js → faceCaptureManagerFactory-BWOB3ZeZ.esm.js} +4 -4
- package/dist/{faceCaptureManagerFactory-C-xKdj-d.d.ts → faceCaptureManagerFactory-DV2ULUYS.d.ts} +3 -3
- package/dist/{faceCaptureSetup-BQjCbL51.esm.js → faceCaptureSetup-D0w1UBlO.esm.js} +12 -403
- package/dist/{faceMatchManager-B2zp7yP4.esm.js → faceMatchManager-D2xKPjjQ.esm.js} +2 -2
- package/dist/{faceMatchStateMachine-ByTMQCUC.esm.js → faceMatchStateMachine-CUvwiQi9.esm.js} +2 -2
- package/dist/{feature-management-DjAG5lsJ.esm.js → feature-management-DBh1nqp8.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-DgDbEeFZ.esm.js} +2 -2
- package/dist/fiscal-qr.esm.js +1 -1
- package/dist/{fiscalQrManager-Be-r4oZj.esm.js → fiscalQrManager-BZeklojR.esm.js} +3 -3
- package/dist/flow-events.d.ts +1 -1
- package/dist/flow.d.ts +8 -8
- package/dist/flow.esm.js +10 -6
- package/dist/{flowCompletionService-ChMU2v79.esm.js → flowCompletionService-Dv7zoVWe.esm.js} +2 -2
- package/dist/{flowServices-g2tVWsJl.esm.js → flowServices-C5-oamoC.esm.js} +69 -143
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-DLbvZwUB.esm.js → geolocationManager-BFTxgOZG.esm.js} +2 -2
- package/dist/{geolocationStateMachine-CAJVongM.esm.js → geolocationStateMachine-v729Lz_0.esm.js} +3 -3
- package/dist/government-validation.esm.js +2 -2
- package/dist/{governmentValidationManager-CkX9TEkh.esm.js → governmentValidationManager-CjChjZ3C.esm.js} +2 -2
- package/dist/{governmentValidationStateMachine-PTPCP26N.esm.js → governmentValidationStateMachine-AEbn3Afi.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 +1 -1
- package/dist/id-ocr.esm.js +2 -2
- package/dist/id-selfie-flow.d.ts +1 -1
- package/dist/id-selfie-flow.esm.js +10 -9
- package/dist/id-verification.esm.js +2 -2
- package/dist/id.d.ts +3 -3
- package/dist/id.esm.js +4 -4
- package/dist/{idCaptureDefaults-MSQoqScU.esm.js → idCaptureDefaults-Dszuq9ng.esm.js} +3 -3
- package/dist/{idCaptureManager-zZdTcpG1.esm.js → idCaptureManager-BVfqpIjM.esm.js} +9 -8
- package/dist/{idCaptureManager-DzTfQ1Am.d.ts → idCaptureManager-CCA2D1Ah.d.ts} +5 -3
- package/dist/{idCaptureServices-8OHinO0N.esm.js → idCaptureServices-CwG9Xp_n.esm.js} +27 -196
- package/dist/{idCaptureStateMachine-B3G6XoDG.esm.js → idCaptureStateMachine-DUm3a_Mt.esm.js} +20 -20
- package/dist/{idOcrManager-DT3kPIB3.d.ts → idOcrManager-BTdHlJ9D.d.ts} +1 -1
- package/dist/{idOcrManager-B64-fjWg.esm.js → idOcrManager-xyEZNOBa.esm.js} +2 -2
- package/dist/{idOcrStateMachine-B1aZnobs.esm.js → idOcrStateMachine-DNKXh4Rn.esm.js} +1 -1
- package/dist/{idVerificationManager-_Kebv-Ue.esm.js → idVerificationManager-DdnvYfgN.esm.js} +2 -2
- package/dist/{idVerificationStateMachine-DQn6c84z.esm.js → idVerificationStateMachine-DtIBCa32.esm.js} +1 -1
- package/dist/identity-reuse.esm.js +2 -2
- package/dist/{identityReuseManager-DDXkNVZi.esm.js → identityReuseManager-CcpovlfD.esm.js} +2 -2
- package/dist/{identityReuseStateMachine-Bcnkbjf8.esm.js → identityReuseStateMachine-DxZFWy47.esm.js} +1 -1
- package/dist/{index-DEfwds5y.d.ts → index-BfSZvEHi.d.ts} +10 -2
- package/dist/{index-DMDAk85K.d.ts → index-DC0P2Vzw.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-BJ0GVHGr.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-D2BEaUzK.esm.js +89 -0
- package/dist/kybChecksStateMachine-Cy-MsmKZ.esm.js +718 -0
- package/dist/mandatory-consent.d.ts +2 -2
- package/dist/mandatory-consent.esm.js +2 -2
- package/dist/{mandatoryConsentManager-43W5d_8G.esm.js → mandatoryConsentManager-B4vCYslr.esm.js} +2 -2
- package/dist/{mandatoryConsentManager-xx3mY-xw.d.ts → mandatoryConsentManager-B88Sm5nd.d.ts} +6 -6
- package/dist/{mandatoryConsentStateMachine-CVlgdlnt.esm.js → mandatoryConsentStateMachine-DWslYPA3.esm.js} +1 -1
- package/dist/mediaRecorderOptions-B9-IEVtV.esm.js +70 -0
- package/dist/multipartRecordingService-BTqkHGG9.esm.js +407 -0
- package/dist/{permissionGuards-B3OPL8Si.esm.js → permissionGuards-DFV-Ws0a.esm.js} +1 -1
- package/dist/{permissionServices-DnBAN_hW.esm.js → permissionServices-D190ATGD.esm.js} +8 -6
- package/dist/phone.esm.js +2 -2
- package/dist/phoneFormat-JJNaWthV.esm.js +75 -0
- package/dist/{phoneManager-C6jut_pz.esm.js → phoneManager-Dy5tODCU.esm.js} +3 -3
- package/dist/phoneServices-DJgyOzU2.esm.js +77 -0
- package/dist/{phoneStateMachine-T1-drWfG.esm.js → phoneStateMachine-DnlPhnw7.esm.js} +20 -60
- package/dist/{processFaceMatch-BWme3kVV.esm.js → processFaceMatch-Bst83HaS.esm.js} +1 -1
- package/dist/qe-signature.esm.js +1 -1
- package/dist/recordingService-CTko6Cjn.esm.js +397 -0
- package/dist/redirect-to-mobile.esm.js +2 -2
- package/dist/{redirectToMobileManager-BJXC6Kx9.esm.js → redirectToMobileManager-CgGaT2NP.esm.js} +3 -3
- package/dist/{redirectToMobileStateMachine-BBMAc2Gb.esm.js → redirectToMobileStateMachine-CbhN8uVN.esm.js} +39 -21
- package/dist/resolveForm-O7-r79VA.esm.js +351 -0
- package/dist/{runChildModule-DPHTqSdF.esm.js → runChildModule-BG46reQE.esm.js} +2 -2
- package/dist/{sdkVersion-C3_P-Qbq.esm.js → sdkVersion-DJCo6uSb.esm.js} +1 -1
- package/dist/selfie.d.ts +3 -3
- package/dist/selfie.esm.js +10 -10
- package/dist/{selfieErrorUtils-BL0BLMnp.esm.js → selfieErrorUtils-DNbVqz2B.esm.js} +1 -1
- package/dist/{selfieManager-Cbliomv7.esm.js → selfieManager-1_TQP4-x.esm.js} +5 -5
- package/dist/{selfieManager-BMmpUii2.d.ts → selfieManager-DmZFzs1-.d.ts} +1 -1
- package/dist/{selfieStateMachine-B5m_Kn0O.esm.js → selfieStateMachine-BUnZmMRY.esm.js} +3 -3
- package/dist/{session-DAaAewMX.esm.js → session-DdnAM9fZ.esm.js} +4 -4
- package/dist/session.d.ts +1 -1
- package/dist/session.esm.js +6 -6
- package/dist/{sessionInitializer-CWFT4dfw.esm.js → sessionInitializer-CwJACl13.esm.js} +83 -24
- package/dist/{setup-D9qt8YVU.d.ts → setup-CmqnkqsR.d.ts} +1 -1
- package/dist/{setup-CDAKwTr7.esm.js → setup-D26WdmvA.esm.js} +28 -27
- package/dist/signature.esm.js +2 -2
- package/dist/{signatureManager-BeEVCcsC.esm.js → signatureManager-CwqjcxPg.esm.js} +2 -2
- package/dist/{signatureStateMachine-_1c1vSid.esm.js → signatureStateMachine-DBVDd1Eu.esm.js} +1 -1
- package/dist/{stats-BpMz-hTP.esm.js → stats-CatA2dea.esm.js} +1 -1
- package/dist/stats.esm.js +1 -1
- package/dist/textRules-D4NRinKY.d.ts +41 -0
- package/dist/{tri-BajQnjbf.esm.js → tri-C9SvtzuQ.esm.js} +24 -3
- package/dist/tri.d.ts +2 -2
- package/dist/{tri.esm-CzTNi5Q_.esm.js → tri.esm-DgTlfPhR.esm.js} +167 -155
- package/dist/tri.esm.js +2 -2
- package/dist/{trueSightService-BujtUIW6.esm.js → trueSightService-OZl8wQu7.esm.js} +4 -4
- package/dist/trust-graph.esm.js +1 -1
- package/dist/{types--3HDl2SF.d.ts → types-BEVHQbbC.d.ts} +1 -1
- package/dist/{types-xEEWCx1j.d.ts → types-BPm1JSu7.d.ts} +1 -1
- package/dist/{types-C397LhmN.d.ts → types-BgRHw-dR.d.ts} +1 -1
- package/dist/{types-DuD8TRJU.d.ts → types-CRaFu6wS.d.ts} +4 -2
- package/dist/types-CTaL0XJz.d.ts +80 -0
- package/dist/{types-PTZHRhGX.d.ts → types-Cd0J0F9D.d.ts} +1 -1
- package/dist/{types-e8fCsvvk.d.ts → types-Csh8vzPo.d.ts} +1 -1
- package/dist/{types-B2FK_wYb.d.ts → types-CuMJ2M7D.d.ts} +2 -41
- package/dist/{types-ZTZelfbM.d.ts → types-CyNndVAT.d.ts} +14 -6
- package/dist/types-J6g6iKe_.d.ts +6 -0
- package/dist/video-selfie.d.ts +1 -1
- package/dist/video-selfie.esm.js +9 -7
- package/dist/{videoSelfieCameraWarmer-DjkPpoj_.esm.js → videoSelfieCameraWarmer-Bhi70pSN.esm.js} +8 -8
- package/dist/{videoSelfieStepDetector-RfSmlFFW.d.ts → videoSelfieStepDetector-Dv3Mgws-.d.ts} +2 -2
- package/dist/virtualCameraCheck-eFOm2C9q.esm.js +27 -0
- package/dist/{warmup-BkfxQZsC.esm.js → warmup-DtB0DJpl.esm.js} +24 -17
- package/dist/wasm.d.ts +1 -1
- package/dist/wasm.esm.js +3 -3
- package/dist/{wasmDsFlagSync-BhU5H2oR.esm.js → wasmDsFlagSync-BtiR5pig.esm.js} +1 -1
- package/dist/{wasmWebClient-DTj9auyA.esm.js → wasmWebClient-BDrax6Eu.esm.js} +12 -9
- package/dist/watchlist-for-business.esm.js +2 -2
- package/dist/watchlist.esm.js +2 -2
- package/dist/{watchlistForBusinessManager-CVay6-9A.esm.js → watchlistForBusinessManager-DqUpAEj_.esm.js} +2 -2
- package/dist/{watchlistForBusinessStateMachine-DA6K5na4.esm.js → watchlistForBusinessStateMachine-DdaPl2PS.esm.js} +1 -1
- package/dist/{watchlistManager-B8gQ_rw3.esm.js → watchlistManager-CdpXzT4B.esm.js} +2 -2
- package/dist/{watchlistStateMachine-CSi_ZhtT.esm.js → watchlistStateMachine-ofHW_lPk.esm.js} +1 -1
- package/dist/workflow.d.ts +1 -1
- package/dist/workflow.esm.js +42 -42
- package/package.json +13 -7
- package/dist/deepsightLoader-DMxtowCm.esm.js +0 -33
- package/dist/types-D9r3zRfY.d.ts +0 -6
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { n as __exportAll } from "./rolldown-runtime-B-1-B7_t.esm.js";
|
|
2
|
+
//#region src/modules/ekyb/ekybConstants.ts
|
|
3
|
+
/**
|
|
4
|
+
* Countries available in all environments.
|
|
5
|
+
* Sorted alphabetically by display name.
|
|
6
|
+
*/
|
|
7
|
+
const SUPPORTED_COUNTRIES = [
|
|
8
|
+
"BR",
|
|
9
|
+
"CN",
|
|
10
|
+
"FR",
|
|
11
|
+
"DE",
|
|
12
|
+
"IL",
|
|
13
|
+
"IT",
|
|
14
|
+
"MX",
|
|
15
|
+
"ES",
|
|
16
|
+
"GB",
|
|
17
|
+
"US"
|
|
18
|
+
];
|
|
19
|
+
/**
|
|
20
|
+
* Additional countries available only in dev/staging environments.
|
|
21
|
+
*/
|
|
22
|
+
const DEV_ONLY_COUNTRIES = [
|
|
23
|
+
"CM",
|
|
24
|
+
"KE",
|
|
25
|
+
"NG"
|
|
26
|
+
];
|
|
27
|
+
/**
|
|
28
|
+
* Union of all recognized country codes (prod + dev).
|
|
29
|
+
*/
|
|
30
|
+
const ALL_COUNTRIES = [...SUPPORTED_COUNTRIES, ...DEV_ONLY_COUNTRIES];
|
|
31
|
+
const ALL_COUNTRIES_SET = new Set(ALL_COUNTRIES);
|
|
32
|
+
function isSupportedCountry(code) {
|
|
33
|
+
return ALL_COUNTRIES_SET.has(code);
|
|
34
|
+
}
|
|
35
|
+
const FIELD_ORDER = [
|
|
36
|
+
"name-user_input",
|
|
37
|
+
"taxId-user_input",
|
|
38
|
+
"street-user_input",
|
|
39
|
+
"houseNo-user_input",
|
|
40
|
+
"address2-user_input",
|
|
41
|
+
"city-user_input",
|
|
42
|
+
"state-user_input",
|
|
43
|
+
"postalCode-user_input"
|
|
44
|
+
];
|
|
45
|
+
const FIELD_NAME_MAPPING = {
|
|
46
|
+
"name-user_input": "businessName",
|
|
47
|
+
"street-user_input": "street",
|
|
48
|
+
"houseNo-user_input": "houseNo",
|
|
49
|
+
"address2-user_input": "addressLine2",
|
|
50
|
+
"city-user_input": "city",
|
|
51
|
+
"state-user_input": "state",
|
|
52
|
+
"postalCode-user_input": "postalCode",
|
|
53
|
+
"taxId-user_input": "taxId"
|
|
54
|
+
};
|
|
55
|
+
const BUSINESS_NAME_OPTIONAL_COUNTRIES = [];
|
|
56
|
+
const ADDRESS_FULLY_OPTIONAL_COUNTRIES = [
|
|
57
|
+
"BR",
|
|
58
|
+
"GB",
|
|
59
|
+
"FR"
|
|
60
|
+
];
|
|
61
|
+
const ADDRESS_FIELDS = [
|
|
62
|
+
"street",
|
|
63
|
+
"houseNo",
|
|
64
|
+
"addressLine2",
|
|
65
|
+
"city",
|
|
66
|
+
"state",
|
|
67
|
+
"postalCode"
|
|
68
|
+
];
|
|
69
|
+
const ALL_COUNTRIES_OPTIONAL_FIELDS = ["ubo"];
|
|
70
|
+
const UBO_FIELD_LABELS = {
|
|
71
|
+
name: "ekyb.uboName",
|
|
72
|
+
surname: "ekyb.uboSurname"
|
|
73
|
+
};
|
|
74
|
+
//#endregion
|
|
75
|
+
//#region src/modules/ekyb/ekybUtils.ts
|
|
76
|
+
var ekybUtils_exports = /* @__PURE__ */ __exportAll({
|
|
77
|
+
getFieldName: () => getFieldName,
|
|
78
|
+
hasAtLeastOneAddressField: () => hasAtLeastOneAddressField,
|
|
79
|
+
isFieldOptional: () => isFieldOptional,
|
|
80
|
+
requiresAddressValidation: () => requiresAddressValidation,
|
|
81
|
+
sortModulesByOrder: () => sortModulesByOrder,
|
|
82
|
+
toEkybConfig: () => toEkybConfig
|
|
83
|
+
});
|
|
84
|
+
/**
|
|
85
|
+
* Normalizes any supported eKYB config input into a manager-ready `EkybConfig`.
|
|
86
|
+
*
|
|
87
|
+
* Accepts either:
|
|
88
|
+
* - A manager-ready `EkybConfig` (with `flowId` or `verificationFields`) →
|
|
89
|
+
* returned unchanged.
|
|
90
|
+
* - A raw backend `EkybFlowConfig` (with `*Source` companions) → stripped to
|
|
91
|
+
* the four `check*` fields the manager consumes.
|
|
92
|
+
*
|
|
93
|
+
* Idempotent: `toEkybConfig(toEkybConfig(x))` equals `toEkybConfig(x)`.
|
|
94
|
+
*/
|
|
95
|
+
function toEkybConfig(config) {
|
|
96
|
+
if (config.flowId || config.verificationFields) return config;
|
|
97
|
+
return {
|
|
98
|
+
checkBusinessName: config.checkBusinessName,
|
|
99
|
+
checkAddress: config.checkAddress,
|
|
100
|
+
checkTaxId: config.checkTaxId,
|
|
101
|
+
checkUniqueBeneficialOwner: config.checkUniqueBeneficialOwner
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
/** Maps module names (e.g. 'name-user_input') to form field names (e.g. 'businessName') */
|
|
105
|
+
function getFieldName(moduleName) {
|
|
106
|
+
return FIELD_NAME_MAPPING[moduleName] ?? moduleName;
|
|
107
|
+
}
|
|
108
|
+
/** Sorts modules based on a custom order; items not in order maintain relative position */
|
|
109
|
+
function sortModulesByOrder(modules, customOrder) {
|
|
110
|
+
return [...modules].sort((a, b) => {
|
|
111
|
+
const indexA = customOrder.indexOf(a);
|
|
112
|
+
const indexB = customOrder.indexOf(b);
|
|
113
|
+
if (indexA !== -1 && indexB !== -1) return indexA - indexB;
|
|
114
|
+
if (indexA !== -1) return -1;
|
|
115
|
+
if (indexB !== -1) return 1;
|
|
116
|
+
return 0;
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
/** Determines if a field is optional for the given country */
|
|
120
|
+
function isFieldOptional(fieldName, countryCode) {
|
|
121
|
+
if (ALL_COUNTRIES_OPTIONAL_FIELDS.includes(fieldName)) return true;
|
|
122
|
+
if (fieldName === "businessName") return BUSINESS_NAME_OPTIONAL_COUNTRIES.includes(countryCode);
|
|
123
|
+
if (fieldName === "addressLine2") return true;
|
|
124
|
+
if (ADDRESS_FIELDS.includes(fieldName)) return false;
|
|
125
|
+
if (fieldName === "taxId") return false;
|
|
126
|
+
return false;
|
|
127
|
+
}
|
|
128
|
+
/** Checks if at least one address field has a non-empty value */
|
|
129
|
+
function hasAtLeastOneAddressField(formData) {
|
|
130
|
+
return ADDRESS_FIELDS.some((field) => {
|
|
131
|
+
const value = formData[field];
|
|
132
|
+
return value !== void 0 && value.trim() !== "";
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
/** Returns false for countries where address is fully optional */
|
|
136
|
+
function requiresAddressValidation(countryCode) {
|
|
137
|
+
return !ADDRESS_FULLY_OPTIONAL_COUNTRIES.includes(countryCode);
|
|
138
|
+
}
|
|
139
|
+
//#endregion
|
|
140
|
+
export { sortModulesByOrder as a, ALL_COUNTRIES as c, FIELD_ORDER as d, SUPPORTED_COUNTRIES as f, requiresAddressValidation as i, DEV_ONLY_COUNTRIES as l, isSupportedCountry as m, hasAtLeastOneAddressField as n, toEkybConfig as o, UBO_FIELD_LABELS as p, isFieldOptional as r, ADDRESS_FIELDS as s, ekybUtils_exports as t, FIELD_NAME_MAPPING as u };
|
package/dist/ekyc.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as
|
|
1
|
+
import { n as AddressSuggestion } from "./textRules-D4NRinKY.js";
|
|
2
|
+
import { c as EkycValidationErrors, i as EkycFieldDisplayMode, n as EkycDisplayModes, o as EkycModuleConfig, s as EkycValidationError, t as EkycConfig } from "./types-CuMJ2M7D.js";
|
|
3
|
+
import { n as EkycState, o as ekycMachine, r as createEkycManager, t as EkycManager } from "./ekycManager-DlGIn9wA.js";
|
|
3
4
|
//#region src/modules/ekyc/ekycUtils.d.ts
|
|
4
5
|
/**
|
|
5
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 { t as ekycMachine } from "./ekycStateMachine-CoFCUJ2z.esm.js";
|
|
2
|
+
import { l as toEkycConfig } from "./ekycUtils-GRuMELYr.esm.js";
|
|
3
|
+
import { t as createEkycManager } from "./ekycManager-DymCvmVB.esm.js";
|
|
4
4
|
export { createEkycManager, ekycMachine, toEkycConfig };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { i as ActorRefFrom } from "./spawn-D9jgw9pW.js";
|
|
2
2
|
import { t as Manager } from "./Manager-C9T5amUN.js";
|
|
3
3
|
import "./Actor-DpTj5PFb.js";
|
|
4
|
-
import {
|
|
4
|
+
import { n as AddressSuggestion } from "./textRules-D4NRinKY.js";
|
|
5
|
+
import { a as EkycFormValues, c as EkycValidationErrors, r as EkycFieldDef, t as EkycConfig } from "./types-CuMJ2M7D.js";
|
|
5
6
|
//#region src/modules/ekyc/ekycStateMachine.d.ts
|
|
6
7
|
declare const ekycMachine: any;
|
|
7
8
|
type EkycMachine = typeof ekycMachine;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ggpBBaZ8.esm.js";
|
|
2
2
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
3
|
import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
4
|
-
import { t as ekycMachine } from "./ekycStateMachine-
|
|
4
|
+
import { t as ekycMachine } from "./ekycStateMachine-CoFCUJ2z.esm.js";
|
|
5
5
|
//#region src/modules/ekyc/ekycActor.ts
|
|
6
6
|
/**
|
|
7
7
|
* Creates and starts an eKYC actor.
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { t as getLocalIsoDate } from "./IBrowserEnvironmentCapability-D7JG7ML3.esm.js";
|
|
2
|
-
import { t as api, u as endpoints } from "./api-
|
|
3
|
-
import {
|
|
2
|
+
import { t as api, u as endpoints } from "./api-CpP4PS4S.esm.js";
|
|
3
|
+
import { n as loadPhoneValidation, t as getPhoneValidation } from "./phoneValidation-OggtfjRt.esm.js";
|
|
4
4
|
import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
5
5
|
import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
6
6
|
import { a as isValidRut, i as isValidInDrivingLicenseNumber, n as isValidEsDni, r as isValidFiPersonalIdentityCode, t as isValidCurp } from "./nationalIds-B91f_RuB.esm.js";
|
|
7
|
-
import {
|
|
7
|
+
import { a as usStates, i as usStateOptions, n as checkSupport, r as DYNAMIC_REQUIRED_KEY, t as resolveForm } from "./resolveForm-O7-r79VA.esm.js";
|
|
8
|
+
import { a as FIXED_DIGIT_POSTAL_CODE_LENGTH, c as getPostalCodeMaxLength, d as fillFromSuggestion, f as getStreetLevelErrorForSuggestion, i as createBundledDefinitionSource, l as validatePostalCode, n as searchAddress, o as formatPostalCode, r as isFormDefinitionsEnabled, s as getPostalCodeErrorKey, t as debounceSearchActor, u as STREET_LEVEL_REQUIRED_ERROR } from "./addressSearch-DzbE9Ogt.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-GRuMELYr.esm.js";
|
|
8
10
|
import { n as DateFormattingProvider, t as validateCPF } from "./cpf-uAZTPUBy.esm.js";
|
|
9
|
-
import { n as
|
|
11
|
+
import { a as hasNameCharacters, c as matchesCharTemplate, i as hasDigitCount, n as CHARACTER_CLASSES, o as isInNumericRange, r as hasAllowedCharacters, s as isNotFuture, t as formatPhoneE164 } from "./phoneFormat-JJNaWthV.esm.js";
|
|
10
12
|
//#region src/internal/forms/resolvePrefill.ts
|
|
11
13
|
const DISPLAY_MODES = /* @__PURE__ */ new Set([
|
|
12
14
|
"editable",
|
|
@@ -89,67 +91,6 @@ function resolvePrefill(form, context, data, checks) {
|
|
|
89
91
|
};
|
|
90
92
|
}
|
|
91
93
|
//#endregion
|
|
92
|
-
//#region src/shared/validators/textRules.ts
|
|
93
|
-
const CHARACTER_CLASSES = [
|
|
94
|
-
"letter",
|
|
95
|
-
"digit",
|
|
96
|
-
"space"
|
|
97
|
-
];
|
|
98
|
-
const CLASS_PATTERNS = {
|
|
99
|
-
letter: "\\p{L}\\p{M}",
|
|
100
|
-
digit: "0-9",
|
|
101
|
-
space: " "
|
|
102
|
-
};
|
|
103
|
-
const escapeForClass = (chars) => chars.replace(/[\\\]^-]/g, "\\$&");
|
|
104
|
-
const escapeForPattern = (chars) => chars.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
105
|
-
const NAME_REGEX = /^[\p{L}\p{M} '’-]+$/u;
|
|
106
|
-
/** `nameCharacters`: letters from any script, spaces, hyphens and apostrophes. */
|
|
107
|
-
function hasNameCharacters(value) {
|
|
108
|
-
return NAME_REGEX.test(value);
|
|
109
|
-
}
|
|
110
|
-
/**
|
|
111
|
-
* `notFuture`: an ISO `YYYY-MM-DD` date on or before `today`, also ISO, in
|
|
112
|
-
* the user's calendar. A value that isn't an ISO date passes; the date input
|
|
113
|
-
* owns that.
|
|
114
|
-
*/
|
|
115
|
-
function isNotFuture(value, today) {
|
|
116
|
-
if (!/^\d{4}-\d{2}-\d{2}$/.test(value)) return true;
|
|
117
|
-
return value <= today;
|
|
118
|
-
}
|
|
119
|
-
/** `digitCount`: only the digits 0-9, with a count in `lengths` or between `min` and `max`. */
|
|
120
|
-
function hasDigitCount(value, count) {
|
|
121
|
-
if (!/^[0-9]+$/.test(value)) return false;
|
|
122
|
-
const { length } = value;
|
|
123
|
-
if (count.lengths) return count.lengths.includes(length);
|
|
124
|
-
return (count.min === void 0 || length >= count.min) && (count.max === void 0 || length <= count.max);
|
|
125
|
-
}
|
|
126
|
-
/** `allowedCharacters`: only characters from `classes`, plus any in `extra`. */
|
|
127
|
-
function hasAllowedCharacters(value, classes, extra = "") {
|
|
128
|
-
const set = classes.map((c) => CLASS_PATTERNS[c]).join("");
|
|
129
|
-
return new RegExp(`^[${set}${escapeForClass(extra)}]+$`, "u").test(value);
|
|
130
|
-
}
|
|
131
|
-
/**
|
|
132
|
-
* `charTemplate`: the whole value matches one template, where `9` is a digit,
|
|
133
|
-
* `A` an uppercase letter A-Z and any other character stands for itself.
|
|
134
|
-
* `ignoreCase` also accepts lowercase letters and literals in either case.
|
|
135
|
-
*/
|
|
136
|
-
function matchesCharTemplate(value, templates, ignoreCase = false) {
|
|
137
|
-
return templates.some((template) => {
|
|
138
|
-
const pattern = [...template].map((char) => {
|
|
139
|
-
if (char === "9") return "[0-9]";
|
|
140
|
-
if (char === "A") return "[A-Z]";
|
|
141
|
-
return escapeForPattern(char);
|
|
142
|
-
}).join("");
|
|
143
|
-
return new RegExp(`^${pattern}$`, ignoreCase ? "iu" : "u").test(value);
|
|
144
|
-
});
|
|
145
|
-
}
|
|
146
|
-
/** `numericRange`: a whole number from `min` to `max`. */
|
|
147
|
-
function isInNumericRange(value, min, max) {
|
|
148
|
-
if (!/^-?[0-9]+$/.test(value)) return false;
|
|
149
|
-
const number = Number(value);
|
|
150
|
-
return number >= min && number <= max;
|
|
151
|
-
}
|
|
152
|
-
//#endregion
|
|
153
94
|
//#region src/modules/ekyc/ekycValidators.ts
|
|
154
95
|
async function loadPhoneValidator() {
|
|
155
96
|
if (!await loadPhoneValidation()) throw new Error("Failed to load the phone validation rules");
|
|
@@ -178,9 +119,6 @@ function isPoBox(address) {
|
|
|
178
119
|
function validatePhone(phone, country) {
|
|
179
120
|
return getPhoneValidation()?.isValid(phone, country) ?? false;
|
|
180
121
|
}
|
|
181
|
-
function formatPhoneE164(phone, country) {
|
|
182
|
-
return getPhoneValidation()?.formatE164(phone, country) ?? phone;
|
|
183
|
-
}
|
|
184
122
|
/** The phone's national significant number, or the value as typed. */
|
|
185
123
|
function formatPhoneNational(phone, country) {
|
|
186
124
|
return getPhoneValidation()?.nationalNumber(phone, country) ?? phone;
|
|
@@ -3803,6 +3741,141 @@ const EKYC_DEFINITIONS = {
|
|
|
3803
3741
|
}
|
|
3804
3742
|
}
|
|
3805
3743
|
},
|
|
3744
|
+
"ekyc/KG/KG_VOTER_REGISTER": {
|
|
3745
|
+
schemaVersion: 1,
|
|
3746
|
+
vocabulary: "1.2",
|
|
3747
|
+
id: "ekyc/KG/KG_VOTER_REGISTER",
|
|
3748
|
+
module: "ekyc",
|
|
3749
|
+
country: "KG",
|
|
3750
|
+
source: "KG_VOTER_REGISTER",
|
|
3751
|
+
sections: [{ id: "address" }],
|
|
3752
|
+
fields: [
|
|
3753
|
+
{
|
|
3754
|
+
name: "firstName",
|
|
3755
|
+
kind: "text",
|
|
3756
|
+
group: "name",
|
|
3757
|
+
required: true,
|
|
3758
|
+
label: { key: "verification.labels.firstName" },
|
|
3759
|
+
placeholder: { key: "verification.placeholder.firstName" },
|
|
3760
|
+
input: {
|
|
3761
|
+
maxLength: 100,
|
|
3762
|
+
autofill: "givenName"
|
|
3763
|
+
},
|
|
3764
|
+
rules: [{ id: "nameCharacters" }],
|
|
3765
|
+
prefill: ["document.firstName", "poa.firstName"]
|
|
3766
|
+
},
|
|
3767
|
+
{
|
|
3768
|
+
name: "middleName",
|
|
3769
|
+
kind: "text",
|
|
3770
|
+
group: "name",
|
|
3771
|
+
label: { key: "verification.labels.middleName" },
|
|
3772
|
+
placeholder: { key: "verification.placeholder.middleName" },
|
|
3773
|
+
input: {
|
|
3774
|
+
maxLength: 100,
|
|
3775
|
+
autofill: "middleName"
|
|
3776
|
+
},
|
|
3777
|
+
rules: [{ id: "nameCharacters" }],
|
|
3778
|
+
prefill: ["document.middleName"]
|
|
3779
|
+
},
|
|
3780
|
+
{
|
|
3781
|
+
name: "surName",
|
|
3782
|
+
kind: "text",
|
|
3783
|
+
group: "name",
|
|
3784
|
+
required: true,
|
|
3785
|
+
label: { key: "verification.labels.surName" },
|
|
3786
|
+
placeholder: { key: "verification.placeholder.surname" },
|
|
3787
|
+
input: {
|
|
3788
|
+
maxLength: 100,
|
|
3789
|
+
autofill: "familyName"
|
|
3790
|
+
},
|
|
3791
|
+
rules: [{ id: "nameCharacters" }],
|
|
3792
|
+
prefill: ["document.paternalLastName", "poa.lastName"]
|
|
3793
|
+
},
|
|
3794
|
+
{
|
|
3795
|
+
name: "email",
|
|
3796
|
+
kind: "text",
|
|
3797
|
+
group: "email",
|
|
3798
|
+
required: true,
|
|
3799
|
+
label: { key: "verification.labels.email" },
|
|
3800
|
+
placeholder: { key: "verification.placeholder.email" },
|
|
3801
|
+
input: {
|
|
3802
|
+
keyboard: "email",
|
|
3803
|
+
autofill: "email"
|
|
3804
|
+
},
|
|
3805
|
+
rules: [{ id: "emailFormat" }],
|
|
3806
|
+
prefill: ["emailModule.email"]
|
|
3807
|
+
},
|
|
3808
|
+
{
|
|
3809
|
+
name: "phone",
|
|
3810
|
+
kind: "phone",
|
|
3811
|
+
group: "phone",
|
|
3812
|
+
required: true,
|
|
3813
|
+
label: { key: "verification.labels.phone" },
|
|
3814
|
+
input: { autofill: "phone" },
|
|
3815
|
+
phone: { lockCountry: "whenPhoneRisk" },
|
|
3816
|
+
rules: [{ id: "phoneFormat" }],
|
|
3817
|
+
payload: { transforms: [{ id: "e164" }] },
|
|
3818
|
+
prefill: ["phoneModule.phone"]
|
|
3819
|
+
},
|
|
3820
|
+
{
|
|
3821
|
+
name: "idNum",
|
|
3822
|
+
kind: "text",
|
|
3823
|
+
group: "idNumber",
|
|
3824
|
+
label: { key: "verification.labels.idNum" },
|
|
3825
|
+
input: {
|
|
3826
|
+
maxLength: 14,
|
|
3827
|
+
keyboard: "numeric"
|
|
3828
|
+
},
|
|
3829
|
+
rules: [{
|
|
3830
|
+
id: "digitCount",
|
|
3831
|
+
params: { lengths: [14] }
|
|
3832
|
+
}],
|
|
3833
|
+
prefill: ["document.documentNumber"]
|
|
3834
|
+
},
|
|
3835
|
+
{
|
|
3836
|
+
name: "gender",
|
|
3837
|
+
kind: "choice",
|
|
3838
|
+
group: "gender",
|
|
3839
|
+
widget: "radio",
|
|
3840
|
+
label: { key: "verification.labels.gender" },
|
|
3841
|
+
options: [{
|
|
3842
|
+
value: "F",
|
|
3843
|
+
label: { key: "common.female" }
|
|
3844
|
+
}, {
|
|
3845
|
+
value: "M",
|
|
3846
|
+
label: { key: "common.male" }
|
|
3847
|
+
}]
|
|
3848
|
+
},
|
|
3849
|
+
{
|
|
3850
|
+
name: "street",
|
|
3851
|
+
kind: "text",
|
|
3852
|
+
group: "address",
|
|
3853
|
+
section: "address",
|
|
3854
|
+
widget: "addressSearch",
|
|
3855
|
+
label: { key: "verification.labels.street" },
|
|
3856
|
+
input: { autofill: "addressLine1" },
|
|
3857
|
+
rules: [{ id: "noPoBox" }],
|
|
3858
|
+
prefill: ["document.street", "poa.street"]
|
|
3859
|
+
},
|
|
3860
|
+
{
|
|
3861
|
+
name: "city",
|
|
3862
|
+
kind: "text",
|
|
3863
|
+
group: "address",
|
|
3864
|
+
section: "address",
|
|
3865
|
+
required: true,
|
|
3866
|
+
label: { key: "verification.labels.city" },
|
|
3867
|
+
input: { autofill: "addressLevel2" },
|
|
3868
|
+
prefill: ["document.city", "poa.city"]
|
|
3869
|
+
}
|
|
3870
|
+
],
|
|
3871
|
+
submit: {
|
|
3872
|
+
static: { plugins: ["kyc"] },
|
|
3873
|
+
context: {
|
|
3874
|
+
source: "source",
|
|
3875
|
+
countryCode: "country"
|
|
3876
|
+
}
|
|
3877
|
+
}
|
|
3878
|
+
},
|
|
3806
3879
|
"ekyc/MX/MX_CIVIL_REGISTER_2": {
|
|
3807
3880
|
schemaVersion: 1,
|
|
3808
3881
|
vocabulary: "1.2",
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { n as __exportAll } from "./rolldown-runtime-B-1-B7_t.esm.js";
|
|
1
2
|
//#region ../form-definitions/generated/ekycIndex.ts
|
|
2
3
|
const EKYC_INDEX = [
|
|
3
4
|
{
|
|
@@ -115,6 +116,11 @@ const EKYC_INDEX = [
|
|
|
115
116
|
country: "IT",
|
|
116
117
|
source: "IT_CIVIL_REG_CREDIT_TELCO"
|
|
117
118
|
},
|
|
119
|
+
{
|
|
120
|
+
id: "ekyc/KG/KG_VOTER_REGISTER",
|
|
121
|
+
country: "KG",
|
|
122
|
+
source: "KG_VOTER_REGISTER"
|
|
123
|
+
},
|
|
118
124
|
{
|
|
119
125
|
id: "ekyc/MX/MX_CIVIL_REGISTER_2",
|
|
120
126
|
country: "MX",
|
|
@@ -189,7 +195,7 @@ const EKYC_INDEX = [
|
|
|
189
195
|
//#endregion
|
|
190
196
|
//#region ../form-definitions/generated/vocabulary.ts
|
|
191
197
|
const VOCABULARY = {
|
|
192
|
-
version: "1.
|
|
198
|
+
version: "1.3",
|
|
193
199
|
entries: [
|
|
194
200
|
{
|
|
195
201
|
id: "text",
|
|
@@ -211,6 +217,11 @@ const VOCABULARY = {
|
|
|
211
217
|
type: "kind",
|
|
212
218
|
since: "1.0"
|
|
213
219
|
},
|
|
220
|
+
{
|
|
221
|
+
id: "list",
|
|
222
|
+
type: "kind",
|
|
223
|
+
since: "1.3"
|
|
224
|
+
},
|
|
214
225
|
{
|
|
215
226
|
id: "masked",
|
|
216
227
|
type: "widget",
|
|
@@ -251,6 +262,11 @@ const VOCABULARY = {
|
|
|
251
262
|
type: "keyboard",
|
|
252
263
|
since: "1.0"
|
|
253
264
|
},
|
|
265
|
+
{
|
|
266
|
+
id: "url",
|
|
267
|
+
type: "keyboard",
|
|
268
|
+
since: "1.3"
|
|
269
|
+
},
|
|
254
270
|
{
|
|
255
271
|
id: "givenName",
|
|
256
272
|
type: "autofill",
|
|
@@ -389,8 +405,10 @@ const VOCABULARY = {
|
|
|
389
405
|
message: "verification.errors.invalidCharacters",
|
|
390
406
|
params: {
|
|
391
407
|
classes: "string[]",
|
|
392
|
-
extra: "string?"
|
|
393
|
-
|
|
408
|
+
extra: "string?",
|
|
409
|
+
ascii: "boolean?"
|
|
410
|
+
},
|
|
411
|
+
paramsSince: { ascii: "1.3" }
|
|
394
412
|
},
|
|
395
413
|
{
|
|
396
414
|
id: "charTemplate",
|
|
@@ -483,6 +501,11 @@ const VOCABULARY = {
|
|
|
483
501
|
type: "transform",
|
|
484
502
|
since: "1.0"
|
|
485
503
|
},
|
|
504
|
+
{
|
|
505
|
+
id: "trim",
|
|
506
|
+
type: "transform",
|
|
507
|
+
since: "1.3"
|
|
508
|
+
},
|
|
486
509
|
{
|
|
487
510
|
id: "nationalNumber",
|
|
488
511
|
type: "transform",
|
|
@@ -697,7 +720,7 @@ const VOCABULARY = {
|
|
|
697
720
|
{
|
|
698
721
|
id: "email",
|
|
699
722
|
type: "group",
|
|
700
|
-
modules: ["ekyc"],
|
|
723
|
+
modules: ["ekyc", "kybChecks"],
|
|
701
724
|
enabledBy: ["checkEmail", "riskAddon:emailCheck"],
|
|
702
725
|
sourceKey: "emailSource",
|
|
703
726
|
displayModeKey: "emailDisplayMode",
|
|
@@ -706,7 +729,7 @@ const VOCABULARY = {
|
|
|
706
729
|
{
|
|
707
730
|
id: "phone",
|
|
708
731
|
type: "group",
|
|
709
|
-
modules: ["ekyc"],
|
|
732
|
+
modules: ["ekyc", "kybChecks"],
|
|
710
733
|
enabledBy: [
|
|
711
734
|
"checkPhone",
|
|
712
735
|
"riskAddon:phoneCheck",
|
|
@@ -720,7 +743,11 @@ const VOCABULARY = {
|
|
|
720
743
|
{
|
|
721
744
|
id: "address",
|
|
722
745
|
type: "group",
|
|
723
|
-
modules: [
|
|
746
|
+
modules: [
|
|
747
|
+
"ekyc",
|
|
748
|
+
"ekyb",
|
|
749
|
+
"kybChecks"
|
|
750
|
+
],
|
|
724
751
|
enabledBy: ["checkAddress"],
|
|
725
752
|
sourceKey: "addressSource",
|
|
726
753
|
displayModeKey: "addressDisplayMode",
|
|
@@ -846,14 +873,14 @@ const VOCABULARY = {
|
|
|
846
873
|
{
|
|
847
874
|
id: "businessName",
|
|
848
875
|
type: "group",
|
|
849
|
-
modules: ["ekyb"],
|
|
876
|
+
modules: ["ekyb", "kybChecks"],
|
|
850
877
|
enabledBy: ["checkBusinessName"],
|
|
851
878
|
since: "1.0"
|
|
852
879
|
},
|
|
853
880
|
{
|
|
854
881
|
id: "taxId",
|
|
855
882
|
type: "group",
|
|
856
|
-
modules: ["ekyb"],
|
|
883
|
+
modules: ["ekyb", "kybChecks"],
|
|
857
884
|
enabledBy: ["checkTaxId"],
|
|
858
885
|
since: "1.0"
|
|
859
886
|
},
|
|
@@ -864,6 +891,36 @@ const VOCABULARY = {
|
|
|
864
891
|
enabledBy: ["checkUniqueBeneficialOwner"],
|
|
865
892
|
since: "1.0"
|
|
866
893
|
},
|
|
894
|
+
{
|
|
895
|
+
id: "country",
|
|
896
|
+
type: "group",
|
|
897
|
+
modules: ["kybChecks"],
|
|
898
|
+
since: "1.3"
|
|
899
|
+
},
|
|
900
|
+
{
|
|
901
|
+
id: "website",
|
|
902
|
+
type: "group",
|
|
903
|
+
modules: ["kybChecks"],
|
|
904
|
+
since: "1.3"
|
|
905
|
+
},
|
|
906
|
+
{
|
|
907
|
+
id: "alternativeNames",
|
|
908
|
+
type: "group",
|
|
909
|
+
modules: ["kybChecks"],
|
|
910
|
+
since: "1.3"
|
|
911
|
+
},
|
|
912
|
+
{
|
|
913
|
+
id: "personNames",
|
|
914
|
+
type: "group",
|
|
915
|
+
modules: ["kybChecks"],
|
|
916
|
+
since: "1.3"
|
|
917
|
+
},
|
|
918
|
+
{
|
|
919
|
+
id: "other",
|
|
920
|
+
type: "group",
|
|
921
|
+
modules: ["kybChecks"],
|
|
922
|
+
since: "1.3"
|
|
923
|
+
},
|
|
867
924
|
{
|
|
868
925
|
id: "editable",
|
|
869
926
|
type: "displayMode",
|
|
@@ -1091,6 +1148,7 @@ const DRIVERS_LICENSE_FIELDS = [
|
|
|
1091
1148
|
"dlState",
|
|
1092
1149
|
"dlExpireAt"
|
|
1093
1150
|
];
|
|
1151
|
+
const NO_STATE_SOURCES = ["GR_1", "UK_VOTER_REGISTER"];
|
|
1094
1152
|
const DOB_OPTIONAL_SOURCES = [
|
|
1095
1153
|
"US_TELCO_1",
|
|
1096
1154
|
"US_CREDIT_TELCO",
|
|
@@ -1218,6 +1276,19 @@ const RISK_ADDON_SOURCE_OVERRIDES = { phoneProfile: "PHONE_PROFILE" };
|
|
|
1218
1276
|
const COUNTRY_CODE_OMITTED_SOURCES = ["PHONE_PROFILE"];
|
|
1219
1277
|
//#endregion
|
|
1220
1278
|
//#region src/modules/ekyc/ekycUtils.ts
|
|
1279
|
+
var ekycUtils_exports = /* @__PURE__ */ __exportAll({
|
|
1280
|
+
EKYC_GROUP_KEYS: () => EKYC_GROUP_KEYS,
|
|
1281
|
+
NO_STATE_SOURCES: () => NO_STATE_SOURCES,
|
|
1282
|
+
getEKYCCountry: () => getEKYCCountry,
|
|
1283
|
+
getEKYCDisplayModes: () => getEKYCDisplayModes,
|
|
1284
|
+
getEKYCFields: () => getEKYCFields,
|
|
1285
|
+
indexCountries: () => indexCountries,
|
|
1286
|
+
isFieldOptional: () => isFieldOptional,
|
|
1287
|
+
legacyEkycCountry: () => legacyEkycCountry,
|
|
1288
|
+
mapToEKYCvalue: () => mapToEKYCvalue,
|
|
1289
|
+
resolveEkycSource: () => resolveEkycSource,
|
|
1290
|
+
toEkycConfig: () => toEkycConfig
|
|
1291
|
+
});
|
|
1221
1292
|
function mapToEKYCvalue(field) {
|
|
1222
1293
|
switch (field) {
|
|
1223
1294
|
case "poa": return "poa_document";
|
|
@@ -1398,4 +1469,4 @@ function isFieldOptional(fieldName, configSource) {
|
|
|
1398
1469
|
return false;
|
|
1399
1470
|
}
|
|
1400
1471
|
//#endregion
|
|
1401
|
-
export {
|
|
1472
|
+
export { TAX_ID_SOURCES as C, STREET_SOURCES as S, MIDDLE_NAME_SOURCES as _, getEKYCFields as a, POSTAL_CODE_SOURCES as b, resolveEkycSource as c, APARTMENT_SOURCES as d, CITY_SOURCES as f, HOUSE_NO_SOURCES as g, EMAIL_SOURCES as h, getEKYCDisplayModes as i, toEkycConfig as l, COUNTRY_SELECTOR_DISABLED_SOURCES as m, ekycUtils_exports as n, isFieldOptional as o, COUNTRY_CODE_OMITTED_SOURCES as p, getEKYCCountry as r, mapToEKYCvalue as s, EKYC_GROUP_KEYS as t, ADDRESS_STATE_SOURCES as u, NAME_SOURCES as v, VOCABULARY as w, STATE_CODE_HINTS as x, ONE_OF_REQUIRED_GROUPS as y };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as NAMIRIAL_QES_CONSENT_KEYS, c as areAllConsented, i as AE_CONSENT_KEYS, l as getConsentKeys, n as createElectronicSignatureManagerFromActor, o as NAMIRIAL_QES_PROVIDER_CODE, r as electronicSignatureMachine, s as QE_CONSENT_KEYS, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-
|
|
1
|
+
import { a as NAMIRIAL_QES_CONSENT_KEYS, c as areAllConsented, i as AE_CONSENT_KEYS, l as getConsentKeys, n as createElectronicSignatureManagerFromActor, o as NAMIRIAL_QES_PROVIDER_CODE, r as electronicSignatureMachine, s as QE_CONSENT_KEYS, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-Bt_tCIdI.esm.js";
|
|
2
2
|
export { AE_CONSENT_KEYS, NAMIRIAL_QES_CONSENT_KEYS, NAMIRIAL_QES_PROVIDER_CODE, QE_CONSENT_KEYS, areAllConsented, createElectronicSignatureManager, createElectronicSignatureManagerFromActor, electronicSignatureMachine, getConsentKeys, getDefaultConsentChecks };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
2
|
-
import { t as api, u as endpoints } from "./api-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ggpBBaZ8.esm.js";
|
|
2
|
+
import { t as api, u as endpoints } from "./api-CpP4PS4S.esm.js";
|
|
3
3
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
4
|
-
import { i as toIncodeApiError, n as isConnectivityError, t as IncodeApiError } from "./apiError-
|
|
4
|
+
import { i as toIncodeApiError, n as isConnectivityError, t as IncodeApiError } from "./apiError-gNfsp99I.esm.js";
|
|
5
5
|
import { i as assign, s as createActor, t as setup, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
6
6
|
import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
7
7
|
import { t as externalFetch } from "./externalFetch-CQY41QT1.esm.js";
|
package/dist/email.esm.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as emailMachine } from "./emailStateMachine-
|
|
2
|
-
import { t as createEmailManager } from "./emailManager-
|
|
1
|
+
import { t as emailMachine } from "./emailStateMachine-KgHfDNvM.esm.js";
|
|
2
|
+
import { t as createEmailManager } from "./emailManager-CGoE3CUe.esm.js";
|
|
3
3
|
export { createEmailManager, emailMachine };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ggpBBaZ8.esm.js";
|
|
2
2
|
import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
3
|
-
import { t as emailMachine } from "./emailStateMachine-
|
|
3
|
+
import { t as emailMachine } from "./emailStateMachine-KgHfDNvM.esm.js";
|
|
4
4
|
import { n as isOtpComplete } from "./otp-D2k3PeSL.esm.js";
|
|
5
5
|
//#region src/modules/email/emailActor.ts
|
|
6
6
|
function createEmailActor(options) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as api, u as endpoints } from "./api-
|
|
1
|
+
import { t as api, u as endpoints } from "./api-CpP4PS4S.esm.js";
|
|
2
2
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
3
3
|
import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
4
4
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
5
|
-
import { t as carryAttempts } from "./attemptCarry-
|
|
5
|
+
import { t as carryAttempts } from "./attemptCarry-WOkfvFMw.esm.js";
|
|
6
6
|
import { n as isOtpComplete, t as computeOtpValidationErrors } from "./otp-D2k3PeSL.esm.js";
|
|
7
7
|
//#region src/modules/email/emailServices.ts
|
|
8
8
|
function getEmailServerFailureReason(error, invalidStatus) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as getTimestamp } from "./IBrowserEnvironmentCapability-D7JG7ML3.esm.js";
|
|
2
|
-
import { t as api } from "./api-
|
|
2
|
+
import { t as api } from "./api-CpP4PS4S.esm.js";
|
|
3
3
|
//#region src/internal/events/eventBus.ts
|
|
4
4
|
function createEventBus() {
|
|
5
5
|
const listeners = [];
|
package/dist/events.esm.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { C as subscribeEvent, _ as stateChanged, a as videoSelfieEvents, d as experimentAssigned, f as moduleClosed, g as screenOpened, h as screenEvent, i as tutorialScreenNamesMapper, l as captureAttemptFinished, m as screenClosed, n as eventModuleNames, p as moduleOpened, r as eventScreenNames, s as recordExperimentAssignmentOnce, t as cameraScreenNamesMapper, u as elementClicked, y as addEvent } from "./events-
|
|
1
|
+
import { C as subscribeEvent, _ as stateChanged, a as videoSelfieEvents, d as experimentAssigned, f as moduleClosed, g as screenOpened, h as screenEvent, i as tutorialScreenNamesMapper, l as captureAttemptFinished, m as screenClosed, n as eventModuleNames, p as moduleOpened, r as eventScreenNames, s as recordExperimentAssignmentOnce, t as cameraScreenNamesMapper, u as elementClicked, y as addEvent } from "./events-ggpBBaZ8.esm.js";
|
|
2
2
|
export { addEvent, cameraScreenNamesMapper, captureAttemptFinished, elementClicked, eventModuleNames, eventScreenNames, experimentAssigned, moduleClosed, moduleOpened, recordExperimentAssignmentOnce, screenClosed, screenEvent, screenOpened, stateChanged, subscribeEvent, tutorialScreenNamesMapper, videoSelfieEvents };
|