@incodetech/core 0.0.0-dev-20261123-4e85f134 → 0.0.0-dev-20261124-bcd99b1e
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-CSiQ4_ay.esm.js → FaceDetectionProvider-D4ncumfe.esm.js} +6 -6
- package/dist/{IIdCaptureCapability-CAxToGns.d.ts → IIdCaptureCapability-BRAZQtkM.d.ts} +1 -0
- package/dist/{WasmUtilProvider-BDXl-HzX.esm.js → WasmUtilProvider-unrmGEHD.esm.js} +2 -2
- package/dist/ae-signature.esm.js +1 -1
- package/dist/{apiError-D8p92jfK.esm.js → apiError-a7tezk_O.esm.js} +1 -1
- package/dist/authentication.d.ts +3 -3
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-CLG0PAw9.d.ts → authenticationManager-Cp64l__H.d.ts} +1 -1
- package/dist/{authenticationManager-DzwIWNvb.esm.js → authenticationManager-IpVKgxPn.esm.js} +4 -4
- package/dist/{authenticationStateMachine-QgXVzF_L.esm.js → authenticationStateMachine-B4CuMBgC.esm.js} +3 -3
- package/dist/camera.esm.js +1 -1
- package/dist/consent.d.ts +1 -1
- package/dist/{consentManager-Bx_osBME.d.ts → consentManager-DlvhoJYc.d.ts} +5 -5
- package/dist/curp-validation.d.ts +1 -1
- package/dist/{curpValidationManager-CA9w3fO6.d.ts → curpValidationManager-Dynwqu2z.d.ts} +1 -1
- package/dist/{deepsightCaptureConfig-Bcrw2pFu.esm.js → deepsightCaptureConfig-D0PCzVcM.esm.js} +2 -2
- package/dist/{deepsightLoader-DRDK4yts.esm.js → deepsightLoader-nbl5Dhvf.esm.js} +6 -6
- package/dist/{desktopCameraElection-BvPHvAA4.esm.js → desktopCameraElection-C2jhy2Fd.esm.js} +7 -7
- package/dist/document-capture.d.ts +1 -1
- package/dist/document-capture.esm.js +2 -2
- package/dist/document-signature.esm.js +1 -1
- package/dist/{documentCaptureManager-Dqklz08K.esm.js → documentCaptureManager-CXu2_1E-.esm.js} +1 -1
- package/dist/{documentCaptureManager-DLWTqjUr.d.ts → documentCaptureManager-DOgJTJ4F.d.ts} +5 -5
- package/dist/{documentCaptureStateMachine-BluxHQWk.esm.js → documentCaptureStateMachine-DR6_Mk5G.esm.js} +2 -2
- package/dist/{documentSignatureStateMachine-PMOkZDCn.esm.js → documentSignatureStateMachine-DoeIrTmr.esm.js} +1 -1
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-BOQRxy_t.esm.js → dynamicFormsManager-D_QpTKfT.esm.js} +1 -1
- package/dist/{dynamicFormsStateMachine-Bv8m-KhL.esm.js → dynamicFormsStateMachine-D_KmQwDZ.esm.js} +1 -1
- package/dist/ekyb.d.ts +1 -1
- package/dist/ekyb.esm.js +2 -2
- package/dist/{ekybManager-Dt7Z6NEX.esm.js → ekybManager-BG7eju18.esm.js} +1 -1
- package/dist/{ekybStateMachine-DExt873D.esm.js → ekybStateMachine-Bc-m_PHQ.esm.js} +1 -1
- package/dist/ekyc-prefill.d.ts +3 -3
- package/dist/ekyc-prefill.esm.js +2 -2
- package/dist/ekyc.d.ts +2 -2
- package/dist/ekyc.esm.js +3 -3
- package/dist/{ekycManager-N2EAITDJ.esm.js → ekycManager-BPUHoUHy.esm.js} +1 -1
- package/dist/{ekycManager-BKVQazAb.d.ts → ekycManager-BldDiWTJ.d.ts} +1 -1
- package/dist/{ekycPrefillManager-B1i-Fgy-.esm.js → ekycPrefillManager-BaX95xIW.esm.js} +1 -1
- package/dist/{ekycPrefillManager-BzM-GMVT.d.ts → ekycPrefillManager-qgG_uUKA.d.ts} +3 -3
- package/dist/{ekycPrefillStateMachine-DlUZGMCd.esm.js → ekycPrefillStateMachine-C8FEAHbH.esm.js} +1 -1
- package/dist/{ekycStateMachine-1qQi52Ih.esm.js → ekycStateMachine-Cq94FpIm.esm.js} +272 -19
- package/dist/{ekycUtils-D4CwNG7Y.esm.js → ekycUtils-C6HZB46m.esm.js} +32 -3
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-YyQFeYTi.esm.js → electronicSignatureManager-bgoE6nL8.esm.js} +1 -1
- package/dist/extensibility.d.ts +15 -15
- package/dist/extensibility.esm.js +15 -15
- package/dist/{faceCaptureManagerFactory-BNY7JNj3.d.ts → faceCaptureManagerFactory-BZ2XHhkj.d.ts} +3 -3
- package/dist/{faceCaptureManagerFactory-BOu2eQns.esm.js → faceCaptureManagerFactory-DvH9-zIi.esm.js} +4 -4
- package/dist/{faceCaptureSetup-CopYy5_O.esm.js → faceCaptureSetup-DuFiwK9F.esm.js} +9 -9
- package/dist/{feature-management-CGHalFcv.esm.js → feature-management-DiL2uBlX.esm.js} +1 -1
- package/dist/feature-management.esm.js +1 -1
- package/dist/flow-events.d.ts +1 -1
- package/dist/flow.d.ts +6 -6
- package/dist/flow.esm.js +3 -3
- package/dist/{flowCompletionService-BETSa4vN.esm.js → flowCompletionService-Bs4oWd_W.esm.js} +1 -1
- package/dist/{flowServices-Adu2JkFA.esm.js → flowServices-KLGZ3eWm.esm.js} +6 -6
- package/dist/geolocation.d.ts +1 -1
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-CENrvxpK.d.ts → geolocationManager-Del2ddmt.d.ts} +1 -1
- package/dist/{geolocationManager-CFSS2JSp.esm.js → geolocationManager-el4FUmYy.esm.js} +1 -1
- package/dist/{geolocationStateMachine-yhJy-Oli.esm.js → geolocationStateMachine-BnM-qTe3.esm.js} +1 -1
- package/dist/home.d.ts +1 -1
- package/dist/id-ocr.d.ts +1 -1
- package/dist/id-selfie-flow.d.ts +2 -2
- package/dist/id-selfie-flow.esm.js +8 -8
- package/dist/id.d.ts +3 -3
- package/dist/id.esm.js +3 -3
- package/dist/{idCaptureDefaults-rx4eoUCU.esm.js → idCaptureDefaults-CFyXIRuM.esm.js} +16 -6
- package/dist/{idCaptureManager-DksvDJ5Y.d.ts → idCaptureManager-Co4ZZ-pd.d.ts} +3 -3
- package/dist/{idCaptureManager-biMO4ti8.esm.js → idCaptureManager-UnWwLa3I.esm.js} +6 -6
- package/dist/{idCaptureServices-DsBCDgPq.esm.js → idCaptureServices-DFUdwccM.esm.js} +3 -3
- package/dist/{idCaptureStateMachine-DSVxM1sV.esm.js → idCaptureStateMachine-DGWGB0Tz.esm.js} +15 -15
- package/dist/{idOcrManager-CNGVEZ7B.d.ts → idOcrManager-C3BHGgSb.d.ts} +1 -1
- package/dist/identity-reuse.d.ts +1 -1
- package/dist/{identityReuseManager-D_jiHp1n.d.ts → identityReuseManager-CZ-qJ_Aa.d.ts} +4 -4
- package/dist/{index-BsqGSj_x.d.ts → index-RghgiJVx.d.ts} +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/kyb-checks.esm.js +2 -2
- package/dist/{kybChecksManager-BELqX_Lm.esm.js → kybChecksManager-CbkCctw0.esm.js} +1 -1
- package/dist/{kybChecksStateMachine-DK41gj76.esm.js → kybChecksStateMachine-BeB_cgk4.esm.js} +1 -1
- package/dist/mandatory-consent.d.ts +2 -2
- package/dist/{mandatoryConsentManager-B4-gw9FV.d.ts → mandatoryConsentManager-B_eFZmo-.d.ts} +6 -6
- package/dist/{permissionGuards-CnJYEirg.esm.js → permissionGuards-BqqRUDJ3.esm.js} +1 -1
- package/dist/{permissionServices-BB14DItB.esm.js → permissionServices-Csq_7Cbg.esm.js} +1 -1
- package/dist/qe-signature.esm.js +1 -1
- package/dist/{recordingService-C092bHW7.esm.js → recordingService-PUU8CObN.esm.js} +1 -1
- package/dist/{runChildModule-BImyqF65.esm.js → runChildModule-BOvtfM8r.esm.js} +1 -1
- package/dist/{sdkVersion-BGEzZXPX.esm.js → sdkVersion-thMGaHAC.esm.js} +1 -1
- package/dist/selfie.d.ts +3 -3
- package/dist/selfie.esm.js +8 -8
- package/dist/{selfieErrorUtils-BbrtgKm7.esm.js → selfieErrorUtils-CqudCvHN.esm.js} +1 -1
- package/dist/{selfieManager-CSxlf4Ls.d.ts → selfieManager-CKm034l4.d.ts} +1 -1
- package/dist/{selfieManager-Cdj5fjRN.esm.js → selfieManager-DWRVOhOE.esm.js} +4 -4
- package/dist/{selfieStateMachine-CAlutNlH.esm.js → selfieStateMachine-CNELgWFK.esm.js} +3 -3
- package/dist/{session-BlpaoMHX.esm.js → session-pNSU6n3-.esm.js} +4 -4
- package/dist/session.d.ts +1 -1
- package/dist/session.esm.js +4 -4
- package/dist/{sessionInitializer-DmGppDQX.esm.js → sessionInitializer-BzvYgZCQ.esm.js} +6 -6
- package/dist/{setup-DA07nIIF.esm.js → setup-BQVlJnC0.esm.js} +8 -8
- package/dist/trueSight-CiveOb7r.esm.js +1 -0
- package/dist/{trueSightService-DSDSHENR.esm.js → trueSightService-DjwNQ37t.esm.js} +2 -2
- package/dist/{types-DEa3taWc.d.ts → types-Bdes6iC1.d.ts} +6 -0
- package/dist/{types-eMmhwENp.d.ts → types-BiUMy0Vp.d.ts} +2 -2
- package/dist/{types-CzoXVfgt.d.ts → types-DFgJ26nw.d.ts} +1 -1
- package/dist/{types-DQ2BSAKU.d.ts → types-Dy4XI7jR.d.ts} +1 -1
- package/dist/types-J7D0pbWH.d.ts +6 -0
- package/dist/{types-E4jPC3M2.d.ts → types-_rJ2GjgK.d.ts} +1 -1
- package/dist/{types-D_-0O9pg.d.ts → types-aKXf9SVN.d.ts} +2 -2
- package/dist/{types-Ct3OFmQs.d.ts → types-mK4qyHxM.d.ts} +1 -1
- package/dist/video-selfie.d.ts +2 -2
- package/dist/video-selfie.esm.js +4 -4
- package/dist/{videoSelfieCameraWarmer-DWrg6vQd.esm.js → videoSelfieCameraWarmer-M25qqewS.esm.js} +5 -5
- package/dist/{videoSelfieStepDetector-Cu7EZdcz.d.ts → videoSelfieStepDetector-BBXE3DnI.d.ts} +3 -3
- package/dist/{warmup-CBaYXBuZ.esm.js → warmup-O3rAoe1-.esm.js} +1 -1
- package/dist/wasm.d.ts +1 -1
- package/dist/wasm.esm.js +3 -3
- package/dist/{wasmDsFlagSync-BX01stN8.esm.js → wasmDsFlagSync-0SxaYTcb.esm.js} +1 -1
- package/dist/{wasmWebClient-IwBSS51s.esm.js → wasmWebClient-BIML49JC.esm.js} +9 -9
- package/dist/workflow.d.ts +1 -1
- package/dist/workflow.esm.js +20 -20
- package/package.json +1 -1
- package/dist/trueSight-BAtlP0U8.esm.js +0 -1
- package/dist/types-DQACmFP1.d.ts +0 -6
|
@@ -7,7 +7,7 @@ import { n as usStates, t as usStateOptions } from "./usStates-CwOQ2kAx.esm.js";
|
|
|
7
7
|
import { a as getPostalCodeMaxLength, c as fillFromSuggestion, l as getStreetLevelErrorForSuggestion, n as formatPostalCode, t as createBundledDefinitionSource, u as keepSuggestionInOptions } from "./definitionSource-B-Z2EgJJ.esm.js";
|
|
8
8
|
import { n as checkSupport, t as resolveForm } from "./resolveForm-DaaQSVWp.esm.js";
|
|
9
9
|
import { n as searchAddress, r as isFormDefinitionsEnabled, t as debounceSearchActor } from "./addressSearch-BKlynuBr.esm.js";
|
|
10
|
-
import { C as TAX_ID_SOURCES, S as STREET_SOURCES, _ as
|
|
10
|
+
import { C as POSTAL_CODE_SOURCES, D as VOCABULARY, E as TAX_ID_SOURCES, S as ONE_OF_REQUIRED_GROUPS, T as STREET_SOURCES, _ as COUNTRY_SELECTOR_DISABLED_SOURCES, a as getEKYCFields, b as MIDDLE_NAME_SOURCES, c as isFieldOptional, d as toEkycConfig, f as withRiskAddonFields, g as COUNTRY_CODE_OMITTED_SOURCES, h as CITY_SOURCES, i as getEKYCDisplayModes, l as mapToEKYCvalue, m as APARTMENT_SOURCES, o as getEkycRiskAddons, p as ADDRESS_STATE_SOURCES, r as getEKYCCountry, s as getRiskAddonFields, t as EKYC_GROUP_KEYS, u as resolveEkycSource, v as EMAIL_SOURCES, w as STATE_CODE_HINTS, x as NAME_SOURCES, y as HOUSE_NO_SOURCES } from "./ekycUtils-C6HZB46m.esm.js";
|
|
11
11
|
import { t as DateFormattingProvider } from "./DateFormattingProvider-DPq9zco-.esm.js";
|
|
12
12
|
import { t as formatPhoneE164 } from "./phoneFormat-C3q0Ukh4.esm.js";
|
|
13
13
|
const brStateOptions = Object.values({
|
|
@@ -313,6 +313,7 @@ const EKYC_DEFINITIONS = {
|
|
|
313
313
|
kind: "text",
|
|
314
314
|
group: "email",
|
|
315
315
|
required: true,
|
|
316
|
+
requiredWhen: [{ riskAddon: "emailCheck" }],
|
|
316
317
|
label: { key: "verification.labels.email" },
|
|
317
318
|
placeholder: { key: "verification.placeholder.email" },
|
|
318
319
|
input: {
|
|
@@ -326,6 +327,11 @@ const EKYC_DEFINITIONS = {
|
|
|
326
327
|
name: "phone",
|
|
327
328
|
kind: "phone",
|
|
328
329
|
group: "phone",
|
|
330
|
+
requiredWhen: [
|
|
331
|
+
{ riskAddon: "phoneCheck" },
|
|
332
|
+
{ riskAddon: "advancedPhoneCheck" },
|
|
333
|
+
{ riskAddon: "phoneProfile" }
|
|
334
|
+
],
|
|
329
335
|
label: { key: "verification.labels.phone" },
|
|
330
336
|
input: { autofill: "phone" },
|
|
331
337
|
phone: { lockCountry: true },
|
|
@@ -520,6 +526,7 @@ const EKYC_DEFINITIONS = {
|
|
|
520
526
|
kind: "text",
|
|
521
527
|
group: "email",
|
|
522
528
|
required: true,
|
|
529
|
+
requiredWhen: [{ riskAddon: "emailCheck" }],
|
|
523
530
|
label: { key: "verification.labels.email" },
|
|
524
531
|
placeholder: { key: "verification.placeholder.email" },
|
|
525
532
|
input: {
|
|
@@ -534,6 +541,11 @@ const EKYC_DEFINITIONS = {
|
|
|
534
541
|
kind: "phone",
|
|
535
542
|
group: "phone",
|
|
536
543
|
required: true,
|
|
544
|
+
requiredWhen: [
|
|
545
|
+
{ riskAddon: "phoneCheck" },
|
|
546
|
+
{ riskAddon: "advancedPhoneCheck" },
|
|
547
|
+
{ riskAddon: "phoneProfile" }
|
|
548
|
+
],
|
|
537
549
|
label: { key: "verification.labels.phone" },
|
|
538
550
|
input: { autofill: "phone" },
|
|
539
551
|
phone: { lockCountry: "whenPhoneRisk" },
|
|
@@ -678,6 +690,7 @@ const EKYC_DEFINITIONS = {
|
|
|
678
690
|
kind: "text",
|
|
679
691
|
group: "email",
|
|
680
692
|
required: true,
|
|
693
|
+
requiredWhen: [{ riskAddon: "emailCheck" }],
|
|
681
694
|
label: { key: "verification.labels.email" },
|
|
682
695
|
placeholder: { key: "verification.placeholder.email" },
|
|
683
696
|
input: {
|
|
@@ -692,6 +705,11 @@ const EKYC_DEFINITIONS = {
|
|
|
692
705
|
kind: "phone",
|
|
693
706
|
group: "phone",
|
|
694
707
|
required: true,
|
|
708
|
+
requiredWhen: [
|
|
709
|
+
{ riskAddon: "phoneCheck" },
|
|
710
|
+
{ riskAddon: "advancedPhoneCheck" },
|
|
711
|
+
{ riskAddon: "phoneProfile" }
|
|
712
|
+
],
|
|
695
713
|
label: { key: "verification.labels.phone" },
|
|
696
714
|
input: { autofill: "phone" },
|
|
697
715
|
phone: { lockCountry: true },
|
|
@@ -842,6 +860,7 @@ const EKYC_DEFINITIONS = {
|
|
|
842
860
|
kind: "text",
|
|
843
861
|
group: "email",
|
|
844
862
|
required: true,
|
|
863
|
+
requiredWhen: [{ riskAddon: "emailCheck" }],
|
|
845
864
|
label: { key: "verification.labels.email" },
|
|
846
865
|
placeholder: { key: "verification.placeholder.email" },
|
|
847
866
|
input: {
|
|
@@ -856,6 +875,11 @@ const EKYC_DEFINITIONS = {
|
|
|
856
875
|
kind: "phone",
|
|
857
876
|
group: "phone",
|
|
858
877
|
required: true,
|
|
878
|
+
requiredWhen: [
|
|
879
|
+
{ riskAddon: "phoneCheck" },
|
|
880
|
+
{ riskAddon: "advancedPhoneCheck" },
|
|
881
|
+
{ riskAddon: "phoneProfile" }
|
|
882
|
+
],
|
|
859
883
|
label: { key: "verification.labels.phone" },
|
|
860
884
|
input: { autofill: "phone" },
|
|
861
885
|
phone: { lockCountry: "whenPhoneRisk" },
|
|
@@ -1034,6 +1058,7 @@ const EKYC_DEFINITIONS = {
|
|
|
1034
1058
|
name: "email",
|
|
1035
1059
|
kind: "text",
|
|
1036
1060
|
group: "email",
|
|
1061
|
+
requiredWhen: [{ riskAddon: "emailCheck" }],
|
|
1037
1062
|
label: { key: "verification.labels.email" },
|
|
1038
1063
|
placeholder: { key: "verification.placeholder.email" },
|
|
1039
1064
|
input: {
|
|
@@ -1047,6 +1072,11 @@ const EKYC_DEFINITIONS = {
|
|
|
1047
1072
|
name: "phone",
|
|
1048
1073
|
kind: "phone",
|
|
1049
1074
|
group: "phone",
|
|
1075
|
+
requiredWhen: [
|
|
1076
|
+
{ riskAddon: "phoneCheck" },
|
|
1077
|
+
{ riskAddon: "advancedPhoneCheck" },
|
|
1078
|
+
{ riskAddon: "phoneProfile" }
|
|
1079
|
+
],
|
|
1050
1080
|
label: { key: "verification.labels.phone" },
|
|
1051
1081
|
input: { autofill: "phone" },
|
|
1052
1082
|
phone: { lockCountry: true },
|
|
@@ -1222,6 +1252,7 @@ const EKYC_DEFINITIONS = {
|
|
|
1222
1252
|
kind: "text",
|
|
1223
1253
|
group: "email",
|
|
1224
1254
|
required: true,
|
|
1255
|
+
requiredWhen: [{ riskAddon: "emailCheck" }],
|
|
1225
1256
|
label: { key: "verification.labels.email" },
|
|
1226
1257
|
placeholder: { key: "verification.placeholder.email" },
|
|
1227
1258
|
input: {
|
|
@@ -1236,6 +1267,11 @@ const EKYC_DEFINITIONS = {
|
|
|
1236
1267
|
kind: "phone",
|
|
1237
1268
|
group: "phone",
|
|
1238
1269
|
required: true,
|
|
1270
|
+
requiredWhen: [
|
|
1271
|
+
{ riskAddon: "phoneCheck" },
|
|
1272
|
+
{ riskAddon: "advancedPhoneCheck" },
|
|
1273
|
+
{ riskAddon: "phoneProfile" }
|
|
1274
|
+
],
|
|
1239
1275
|
label: { key: "verification.labels.phone" },
|
|
1240
1276
|
input: { autofill: "phone" },
|
|
1241
1277
|
phone: { lockCountry: "whenPhoneRisk" },
|
|
@@ -1384,6 +1420,7 @@ const EKYC_DEFINITIONS = {
|
|
|
1384
1420
|
kind: "text",
|
|
1385
1421
|
group: "email",
|
|
1386
1422
|
required: true,
|
|
1423
|
+
requiredWhen: [{ riskAddon: "emailCheck" }],
|
|
1387
1424
|
label: { key: "verification.labels.email" },
|
|
1388
1425
|
placeholder: { key: "verification.placeholder.email" },
|
|
1389
1426
|
input: {
|
|
@@ -1397,6 +1434,11 @@ const EKYC_DEFINITIONS = {
|
|
|
1397
1434
|
name: "phone",
|
|
1398
1435
|
kind: "phone",
|
|
1399
1436
|
group: "phone",
|
|
1437
|
+
requiredWhen: [
|
|
1438
|
+
{ riskAddon: "phoneCheck" },
|
|
1439
|
+
{ riskAddon: "advancedPhoneCheck" },
|
|
1440
|
+
{ riskAddon: "phoneProfile" }
|
|
1441
|
+
],
|
|
1400
1442
|
label: { key: "verification.labels.phone" },
|
|
1401
1443
|
input: { autofill: "phone" },
|
|
1402
1444
|
phone: { lockCountry: true },
|
|
@@ -1552,6 +1594,7 @@ const EKYC_DEFINITIONS = {
|
|
|
1552
1594
|
kind: "text",
|
|
1553
1595
|
group: "email",
|
|
1554
1596
|
required: true,
|
|
1597
|
+
requiredWhen: [{ riskAddon: "emailCheck" }],
|
|
1555
1598
|
label: { key: "verification.labels.email" },
|
|
1556
1599
|
placeholder: { key: "verification.placeholder.email" },
|
|
1557
1600
|
input: {
|
|
@@ -1566,6 +1609,11 @@ const EKYC_DEFINITIONS = {
|
|
|
1566
1609
|
kind: "phone",
|
|
1567
1610
|
group: "phone",
|
|
1568
1611
|
required: true,
|
|
1612
|
+
requiredWhen: [
|
|
1613
|
+
{ riskAddon: "phoneCheck" },
|
|
1614
|
+
{ riskAddon: "advancedPhoneCheck" },
|
|
1615
|
+
{ riskAddon: "phoneProfile" }
|
|
1616
|
+
],
|
|
1569
1617
|
label: { key: "verification.labels.phone" },
|
|
1570
1618
|
input: { autofill: "phone" },
|
|
1571
1619
|
phone: { lockCountry: true },
|
|
@@ -1679,6 +1727,7 @@ const EKYC_DEFINITIONS = {
|
|
|
1679
1727
|
kind: "text",
|
|
1680
1728
|
group: "email",
|
|
1681
1729
|
required: true,
|
|
1730
|
+
requiredWhen: [{ riskAddon: "emailCheck" }],
|
|
1682
1731
|
label: { key: "verification.labels.email" },
|
|
1683
1732
|
placeholder: { key: "verification.placeholder.email" },
|
|
1684
1733
|
input: {
|
|
@@ -1693,6 +1742,11 @@ const EKYC_DEFINITIONS = {
|
|
|
1693
1742
|
kind: "phone",
|
|
1694
1743
|
group: "phone",
|
|
1695
1744
|
required: true,
|
|
1745
|
+
requiredWhen: [
|
|
1746
|
+
{ riskAddon: "phoneCheck" },
|
|
1747
|
+
{ riskAddon: "advancedPhoneCheck" },
|
|
1748
|
+
{ riskAddon: "phoneProfile" }
|
|
1749
|
+
],
|
|
1696
1750
|
label: { key: "verification.labels.phone" },
|
|
1697
1751
|
input: { autofill: "phone" },
|
|
1698
1752
|
phone: { lockCountry: "whenPhoneRisk" },
|
|
@@ -1793,6 +1847,7 @@ const EKYC_DEFINITIONS = {
|
|
|
1793
1847
|
kind: "text",
|
|
1794
1848
|
group: "email",
|
|
1795
1849
|
required: true,
|
|
1850
|
+
requiredWhen: [{ riskAddon: "emailCheck" }],
|
|
1796
1851
|
label: { key: "verification.labels.email" },
|
|
1797
1852
|
placeholder: { key: "verification.placeholder.email" },
|
|
1798
1853
|
input: {
|
|
@@ -1807,6 +1862,11 @@ const EKYC_DEFINITIONS = {
|
|
|
1807
1862
|
kind: "phone",
|
|
1808
1863
|
group: "phone",
|
|
1809
1864
|
required: true,
|
|
1865
|
+
requiredWhen: [
|
|
1866
|
+
{ riskAddon: "phoneCheck" },
|
|
1867
|
+
{ riskAddon: "advancedPhoneCheck" },
|
|
1868
|
+
{ riskAddon: "phoneProfile" }
|
|
1869
|
+
],
|
|
1810
1870
|
label: { key: "verification.labels.phone" },
|
|
1811
1871
|
input: { autofill: "phone" },
|
|
1812
1872
|
phone: { lockCountry: "whenPhoneRisk" },
|
|
@@ -1930,6 +1990,7 @@ const EKYC_DEFINITIONS = {
|
|
|
1930
1990
|
kind: "text",
|
|
1931
1991
|
group: "email",
|
|
1932
1992
|
required: true,
|
|
1993
|
+
requiredWhen: [{ riskAddon: "emailCheck" }],
|
|
1933
1994
|
label: { key: "verification.labels.email" },
|
|
1934
1995
|
placeholder: { key: "verification.placeholder.email" },
|
|
1935
1996
|
input: {
|
|
@@ -1943,6 +2004,11 @@ const EKYC_DEFINITIONS = {
|
|
|
1943
2004
|
name: "phone",
|
|
1944
2005
|
kind: "phone",
|
|
1945
2006
|
group: "phone",
|
|
2007
|
+
requiredWhen: [
|
|
2008
|
+
{ riskAddon: "phoneCheck" },
|
|
2009
|
+
{ riskAddon: "advancedPhoneCheck" },
|
|
2010
|
+
{ riskAddon: "phoneProfile" }
|
|
2011
|
+
],
|
|
1946
2012
|
label: { key: "verification.labels.phone" },
|
|
1947
2013
|
input: { autofill: "phone" },
|
|
1948
2014
|
phone: { lockCountry: true },
|
|
@@ -2064,6 +2130,7 @@ const EKYC_DEFINITIONS = {
|
|
|
2064
2130
|
kind: "text",
|
|
2065
2131
|
group: "email",
|
|
2066
2132
|
required: true,
|
|
2133
|
+
requiredWhen: [{ riskAddon: "emailCheck" }],
|
|
2067
2134
|
label: { key: "verification.labels.email" },
|
|
2068
2135
|
placeholder: { key: "verification.placeholder.email" },
|
|
2069
2136
|
input: {
|
|
@@ -2078,6 +2145,11 @@ const EKYC_DEFINITIONS = {
|
|
|
2078
2145
|
kind: "phone",
|
|
2079
2146
|
group: "phone",
|
|
2080
2147
|
required: true,
|
|
2148
|
+
requiredWhen: [
|
|
2149
|
+
{ riskAddon: "phoneCheck" },
|
|
2150
|
+
{ riskAddon: "advancedPhoneCheck" },
|
|
2151
|
+
{ riskAddon: "phoneProfile" }
|
|
2152
|
+
],
|
|
2081
2153
|
label: { key: "verification.labels.phone" },
|
|
2082
2154
|
input: { autofill: "phone" },
|
|
2083
2155
|
phone: { lockCountry: true },
|
|
@@ -2204,6 +2276,7 @@ const EKYC_DEFINITIONS = {
|
|
|
2204
2276
|
kind: "text",
|
|
2205
2277
|
group: "email",
|
|
2206
2278
|
required: true,
|
|
2279
|
+
requiredWhen: [{ riskAddon: "emailCheck" }],
|
|
2207
2280
|
label: { key: "verification.labels.email" },
|
|
2208
2281
|
placeholder: { key: "verification.placeholder.email" },
|
|
2209
2282
|
input: {
|
|
@@ -2217,6 +2290,11 @@ const EKYC_DEFINITIONS = {
|
|
|
2217
2290
|
name: "phone",
|
|
2218
2291
|
kind: "phone",
|
|
2219
2292
|
group: "phone",
|
|
2293
|
+
requiredWhen: [
|
|
2294
|
+
{ riskAddon: "phoneCheck" },
|
|
2295
|
+
{ riskAddon: "advancedPhoneCheck" },
|
|
2296
|
+
{ riskAddon: "phoneProfile" }
|
|
2297
|
+
],
|
|
2220
2298
|
label: { key: "verification.labels.phone" },
|
|
2221
2299
|
input: { autofill: "phone" },
|
|
2222
2300
|
phone: { lockCountry: true },
|
|
@@ -2369,6 +2447,7 @@ const EKYC_DEFINITIONS = {
|
|
|
2369
2447
|
name: "email",
|
|
2370
2448
|
kind: "text",
|
|
2371
2449
|
group: "email",
|
|
2450
|
+
requiredWhen: [{ riskAddon: "emailCheck" }],
|
|
2372
2451
|
label: { key: "verification.labels.email" },
|
|
2373
2452
|
placeholder: { key: "verification.placeholder.email" },
|
|
2374
2453
|
input: {
|
|
@@ -2383,6 +2462,11 @@ const EKYC_DEFINITIONS = {
|
|
|
2383
2462
|
kind: "phone",
|
|
2384
2463
|
group: "phone",
|
|
2385
2464
|
required: true,
|
|
2465
|
+
requiredWhen: [
|
|
2466
|
+
{ riskAddon: "phoneCheck" },
|
|
2467
|
+
{ riskAddon: "advancedPhoneCheck" },
|
|
2468
|
+
{ riskAddon: "phoneProfile" }
|
|
2469
|
+
],
|
|
2386
2470
|
label: { key: "verification.labels.phone" },
|
|
2387
2471
|
input: { autofill: "phone" },
|
|
2388
2472
|
phone: { lockCountry: true },
|
|
@@ -2523,6 +2607,7 @@ const EKYC_DEFINITIONS = {
|
|
|
2523
2607
|
kind: "text",
|
|
2524
2608
|
group: "email",
|
|
2525
2609
|
required: true,
|
|
2610
|
+
requiredWhen: [{ riskAddon: "emailCheck" }],
|
|
2526
2611
|
label: { key: "verification.labels.email" },
|
|
2527
2612
|
placeholder: { key: "verification.placeholder.email" },
|
|
2528
2613
|
input: {
|
|
@@ -2537,6 +2622,11 @@ const EKYC_DEFINITIONS = {
|
|
|
2537
2622
|
kind: "phone",
|
|
2538
2623
|
group: "phone",
|
|
2539
2624
|
required: true,
|
|
2625
|
+
requiredWhen: [
|
|
2626
|
+
{ riskAddon: "phoneCheck" },
|
|
2627
|
+
{ riskAddon: "advancedPhoneCheck" },
|
|
2628
|
+
{ riskAddon: "phoneProfile" }
|
|
2629
|
+
],
|
|
2540
2630
|
label: { key: "verification.labels.phone" },
|
|
2541
2631
|
input: { autofill: "phone" },
|
|
2542
2632
|
phone: { lockCountry: "whenPhoneRisk" },
|
|
@@ -2674,6 +2764,7 @@ const EKYC_DEFINITIONS = {
|
|
|
2674
2764
|
kind: "text",
|
|
2675
2765
|
group: "email",
|
|
2676
2766
|
required: true,
|
|
2767
|
+
requiredWhen: [{ riskAddon: "emailCheck" }],
|
|
2677
2768
|
label: { key: "verification.labels.email" },
|
|
2678
2769
|
placeholder: { key: "verification.placeholder.email" },
|
|
2679
2770
|
input: {
|
|
@@ -2688,6 +2779,11 @@ const EKYC_DEFINITIONS = {
|
|
|
2688
2779
|
kind: "phone",
|
|
2689
2780
|
group: "phone",
|
|
2690
2781
|
required: true,
|
|
2782
|
+
requiredWhen: [
|
|
2783
|
+
{ riskAddon: "phoneCheck" },
|
|
2784
|
+
{ riskAddon: "advancedPhoneCheck" },
|
|
2785
|
+
{ riskAddon: "phoneProfile" }
|
|
2786
|
+
],
|
|
2691
2787
|
label: { key: "verification.labels.phone" },
|
|
2692
2788
|
input: { autofill: "phone" },
|
|
2693
2789
|
phone: { lockCountry: "whenPhoneRisk" },
|
|
@@ -2841,6 +2937,7 @@ const EKYC_DEFINITIONS = {
|
|
|
2841
2937
|
kind: "text",
|
|
2842
2938
|
group: "email",
|
|
2843
2939
|
required: true,
|
|
2940
|
+
requiredWhen: [{ riskAddon: "emailCheck" }],
|
|
2844
2941
|
label: { key: "verification.labels.email" },
|
|
2845
2942
|
placeholder: { key: "verification.placeholder.email" },
|
|
2846
2943
|
input: {
|
|
@@ -2854,6 +2951,11 @@ const EKYC_DEFINITIONS = {
|
|
|
2854
2951
|
name: "phone",
|
|
2855
2952
|
kind: "phone",
|
|
2856
2953
|
group: "phone",
|
|
2954
|
+
requiredWhen: [
|
|
2955
|
+
{ riskAddon: "phoneCheck" },
|
|
2956
|
+
{ riskAddon: "advancedPhoneCheck" },
|
|
2957
|
+
{ riskAddon: "phoneProfile" }
|
|
2958
|
+
],
|
|
2857
2959
|
label: { key: "verification.labels.phone" },
|
|
2858
2960
|
input: { autofill: "phone" },
|
|
2859
2961
|
phone: { lockCountry: true },
|
|
@@ -3002,6 +3104,7 @@ const EKYC_DEFINITIONS = {
|
|
|
3002
3104
|
kind: "text",
|
|
3003
3105
|
group: "email",
|
|
3004
3106
|
required: true,
|
|
3107
|
+
requiredWhen: [{ riskAddon: "emailCheck" }],
|
|
3005
3108
|
label: { key: "verification.labels.email" },
|
|
3006
3109
|
placeholder: { key: "verification.placeholder.email" },
|
|
3007
3110
|
input: {
|
|
@@ -3015,6 +3118,11 @@ const EKYC_DEFINITIONS = {
|
|
|
3015
3118
|
name: "phone",
|
|
3016
3119
|
kind: "phone",
|
|
3017
3120
|
group: "phone",
|
|
3121
|
+
requiredWhen: [
|
|
3122
|
+
{ riskAddon: "phoneCheck" },
|
|
3123
|
+
{ riskAddon: "advancedPhoneCheck" },
|
|
3124
|
+
{ riskAddon: "phoneProfile" }
|
|
3125
|
+
],
|
|
3018
3126
|
label: { key: "verification.labels.phone" },
|
|
3019
3127
|
input: { autofill: "phone" },
|
|
3020
3128
|
phone: { lockCountry: true },
|
|
@@ -3184,6 +3292,7 @@ const EKYC_DEFINITIONS = {
|
|
|
3184
3292
|
kind: "text",
|
|
3185
3293
|
group: "email",
|
|
3186
3294
|
required: true,
|
|
3295
|
+
requiredWhen: [{ riskAddon: "emailCheck" }],
|
|
3187
3296
|
label: { key: "verification.labels.email" },
|
|
3188
3297
|
placeholder: { key: "verification.placeholder.email" },
|
|
3189
3298
|
input: {
|
|
@@ -3198,6 +3307,11 @@ const EKYC_DEFINITIONS = {
|
|
|
3198
3307
|
kind: "phone",
|
|
3199
3308
|
group: "phone",
|
|
3200
3309
|
required: true,
|
|
3310
|
+
requiredWhen: [
|
|
3311
|
+
{ riskAddon: "phoneCheck" },
|
|
3312
|
+
{ riskAddon: "advancedPhoneCheck" },
|
|
3313
|
+
{ riskAddon: "phoneProfile" }
|
|
3314
|
+
],
|
|
3201
3315
|
label: { key: "verification.labels.phone" },
|
|
3202
3316
|
input: { autofill: "phone" },
|
|
3203
3317
|
phone: { lockCountry: "whenPhoneRisk" },
|
|
@@ -3299,6 +3413,7 @@ const EKYC_DEFINITIONS = {
|
|
|
3299
3413
|
kind: "text",
|
|
3300
3414
|
group: "email",
|
|
3301
3415
|
required: true,
|
|
3416
|
+
requiredWhen: [{ riskAddon: "emailCheck" }],
|
|
3302
3417
|
label: { key: "verification.labels.email" },
|
|
3303
3418
|
placeholder: { key: "verification.placeholder.email" },
|
|
3304
3419
|
input: {
|
|
@@ -3313,6 +3428,11 @@ const EKYC_DEFINITIONS = {
|
|
|
3313
3428
|
kind: "phone",
|
|
3314
3429
|
group: "phone",
|
|
3315
3430
|
required: true,
|
|
3431
|
+
requiredWhen: [
|
|
3432
|
+
{ riskAddon: "phoneCheck" },
|
|
3433
|
+
{ riskAddon: "advancedPhoneCheck" },
|
|
3434
|
+
{ riskAddon: "phoneProfile" }
|
|
3435
|
+
],
|
|
3316
3436
|
label: { key: "verification.labels.phone" },
|
|
3317
3437
|
input: { autofill: "phone" },
|
|
3318
3438
|
phone: { lockCountry: "whenPhoneRisk" },
|
|
@@ -3468,6 +3588,7 @@ const EKYC_DEFINITIONS = {
|
|
|
3468
3588
|
kind: "text",
|
|
3469
3589
|
group: "email",
|
|
3470
3590
|
required: true,
|
|
3591
|
+
requiredWhen: [{ riskAddon: "emailCheck" }],
|
|
3471
3592
|
label: { key: "verification.labels.email" },
|
|
3472
3593
|
placeholder: { key: "verification.placeholder.email" },
|
|
3473
3594
|
input: {
|
|
@@ -3482,6 +3603,11 @@ const EKYC_DEFINITIONS = {
|
|
|
3482
3603
|
kind: "phone",
|
|
3483
3604
|
group: "phone",
|
|
3484
3605
|
required: true,
|
|
3606
|
+
requiredWhen: [
|
|
3607
|
+
{ riskAddon: "phoneCheck" },
|
|
3608
|
+
{ riskAddon: "advancedPhoneCheck" },
|
|
3609
|
+
{ riskAddon: "phoneProfile" }
|
|
3610
|
+
],
|
|
3485
3611
|
label: { key: "verification.labels.phone" },
|
|
3486
3612
|
input: { autofill: "phone" },
|
|
3487
3613
|
phone: { lockCountry: "whenPhoneRisk" },
|
|
@@ -3826,6 +3952,7 @@ const EKYC_DEFINITIONS = {
|
|
|
3826
3952
|
kind: "text",
|
|
3827
3953
|
group: "email",
|
|
3828
3954
|
required: true,
|
|
3955
|
+
requiredWhen: [{ riskAddon: "emailCheck" }],
|
|
3829
3956
|
label: { key: "verification.labels.email" },
|
|
3830
3957
|
placeholder: { key: "verification.placeholder.email" },
|
|
3831
3958
|
input: {
|
|
@@ -3840,6 +3967,11 @@ const EKYC_DEFINITIONS = {
|
|
|
3840
3967
|
kind: "phone",
|
|
3841
3968
|
group: "phone",
|
|
3842
3969
|
required: true,
|
|
3970
|
+
requiredWhen: [
|
|
3971
|
+
{ riskAddon: "phoneCheck" },
|
|
3972
|
+
{ riskAddon: "advancedPhoneCheck" },
|
|
3973
|
+
{ riskAddon: "phoneProfile" }
|
|
3974
|
+
],
|
|
3843
3975
|
label: { key: "verification.labels.phone" },
|
|
3844
3976
|
input: { autofill: "phone" },
|
|
3845
3977
|
phone: { lockCountry: true },
|
|
@@ -3958,6 +4090,7 @@ const EKYC_DEFINITIONS = {
|
|
|
3958
4090
|
kind: "text",
|
|
3959
4091
|
group: "email",
|
|
3960
4092
|
required: true,
|
|
4093
|
+
requiredWhen: [{ riskAddon: "emailCheck" }],
|
|
3961
4094
|
label: { key: "verification.labels.email" },
|
|
3962
4095
|
placeholder: { key: "verification.placeholder.email" },
|
|
3963
4096
|
input: {
|
|
@@ -3972,6 +4105,11 @@ const EKYC_DEFINITIONS = {
|
|
|
3972
4105
|
kind: "phone",
|
|
3973
4106
|
group: "phone",
|
|
3974
4107
|
required: true,
|
|
4108
|
+
requiredWhen: [
|
|
4109
|
+
{ riskAddon: "phoneCheck" },
|
|
4110
|
+
{ riskAddon: "advancedPhoneCheck" },
|
|
4111
|
+
{ riskAddon: "phoneProfile" }
|
|
4112
|
+
],
|
|
3975
4113
|
label: { key: "verification.labels.phone" },
|
|
3976
4114
|
input: { autofill: "phone" },
|
|
3977
4115
|
phone: { lockCountry: "whenPhoneRisk" },
|
|
@@ -4105,6 +4243,7 @@ const EKYC_DEFINITIONS = {
|
|
|
4105
4243
|
kind: "text",
|
|
4106
4244
|
group: "email",
|
|
4107
4245
|
required: true,
|
|
4246
|
+
requiredWhen: [{ riskAddon: "emailCheck" }],
|
|
4108
4247
|
label: { key: "verification.labels.email" },
|
|
4109
4248
|
placeholder: { key: "verification.placeholder.email" },
|
|
4110
4249
|
input: {
|
|
@@ -4119,6 +4258,11 @@ const EKYC_DEFINITIONS = {
|
|
|
4119
4258
|
kind: "phone",
|
|
4120
4259
|
group: "phone",
|
|
4121
4260
|
required: true,
|
|
4261
|
+
requiredWhen: [
|
|
4262
|
+
{ riskAddon: "phoneCheck" },
|
|
4263
|
+
{ riskAddon: "advancedPhoneCheck" },
|
|
4264
|
+
{ riskAddon: "phoneProfile" }
|
|
4265
|
+
],
|
|
4122
4266
|
label: { key: "verification.labels.phone" },
|
|
4123
4267
|
input: { autofill: "phone" },
|
|
4124
4268
|
phone: { lockCountry: "whenPhoneRisk" },
|
|
@@ -4224,6 +4368,7 @@ const EKYC_DEFINITIONS = {
|
|
|
4224
4368
|
kind: "text",
|
|
4225
4369
|
group: "email",
|
|
4226
4370
|
required: true,
|
|
4371
|
+
requiredWhen: [{ riskAddon: "emailCheck" }],
|
|
4227
4372
|
label: { key: "verification.labels.email" },
|
|
4228
4373
|
placeholder: { key: "verification.placeholder.email" },
|
|
4229
4374
|
input: {
|
|
@@ -4238,6 +4383,11 @@ const EKYC_DEFINITIONS = {
|
|
|
4238
4383
|
kind: "phone",
|
|
4239
4384
|
group: "phone",
|
|
4240
4385
|
required: true,
|
|
4386
|
+
requiredWhen: [
|
|
4387
|
+
{ riskAddon: "phoneCheck" },
|
|
4388
|
+
{ riskAddon: "advancedPhoneCheck" },
|
|
4389
|
+
{ riskAddon: "phoneProfile" }
|
|
4390
|
+
],
|
|
4241
4391
|
label: { key: "verification.labels.phone" },
|
|
4242
4392
|
input: { autofill: "phone" },
|
|
4243
4393
|
phone: { lockCountry: true },
|
|
@@ -4350,6 +4500,7 @@ const EKYC_DEFINITIONS = {
|
|
|
4350
4500
|
name: "email",
|
|
4351
4501
|
kind: "text",
|
|
4352
4502
|
group: "email",
|
|
4503
|
+
requiredWhen: [{ riskAddon: "emailCheck" }],
|
|
4353
4504
|
label: { key: "verification.labels.email" },
|
|
4354
4505
|
placeholder: { key: "verification.placeholder.email" },
|
|
4355
4506
|
input: {
|
|
@@ -4364,6 +4515,11 @@ const EKYC_DEFINITIONS = {
|
|
|
4364
4515
|
kind: "phone",
|
|
4365
4516
|
group: "phone",
|
|
4366
4517
|
required: true,
|
|
4518
|
+
requiredWhen: [
|
|
4519
|
+
{ riskAddon: "phoneCheck" },
|
|
4520
|
+
{ riskAddon: "advancedPhoneCheck" },
|
|
4521
|
+
{ riskAddon: "phoneProfile" }
|
|
4522
|
+
],
|
|
4367
4523
|
label: { key: "verification.labels.phone" },
|
|
4368
4524
|
input: { autofill: "phone" },
|
|
4369
4525
|
phone: { lockCountry: true },
|
|
@@ -4499,6 +4655,7 @@ const EKYC_DEFINITIONS = {
|
|
|
4499
4655
|
name: "email",
|
|
4500
4656
|
kind: "text",
|
|
4501
4657
|
group: "email",
|
|
4658
|
+
requiredWhen: [{ riskAddon: "emailCheck" }],
|
|
4502
4659
|
label: { key: "verification.labels.email" },
|
|
4503
4660
|
placeholder: { key: "verification.placeholder.email" },
|
|
4504
4661
|
input: {
|
|
@@ -4512,6 +4669,11 @@ const EKYC_DEFINITIONS = {
|
|
|
4512
4669
|
name: "phone",
|
|
4513
4670
|
kind: "phone",
|
|
4514
4671
|
group: "phone",
|
|
4672
|
+
requiredWhen: [
|
|
4673
|
+
{ riskAddon: "phoneCheck" },
|
|
4674
|
+
{ riskAddon: "advancedPhoneCheck" },
|
|
4675
|
+
{ riskAddon: "phoneProfile" }
|
|
4676
|
+
],
|
|
4515
4677
|
label: { key: "verification.labels.phone" },
|
|
4516
4678
|
input: { autofill: "phone" },
|
|
4517
4679
|
phone: { lockCountry: true },
|
|
@@ -4660,6 +4822,7 @@ const EKYC_DEFINITIONS = {
|
|
|
4660
4822
|
kind: "text",
|
|
4661
4823
|
group: "email",
|
|
4662
4824
|
required: true,
|
|
4825
|
+
requiredWhen: [{ riskAddon: "emailCheck" }],
|
|
4663
4826
|
label: { key: "verification.labels.email" },
|
|
4664
4827
|
placeholder: { key: "verification.placeholder.email" },
|
|
4665
4828
|
input: {
|
|
@@ -4674,6 +4837,11 @@ const EKYC_DEFINITIONS = {
|
|
|
4674
4837
|
kind: "phone",
|
|
4675
4838
|
group: "phone",
|
|
4676
4839
|
required: true,
|
|
4840
|
+
requiredWhen: [
|
|
4841
|
+
{ riskAddon: "phoneCheck" },
|
|
4842
|
+
{ riskAddon: "advancedPhoneCheck" },
|
|
4843
|
+
{ riskAddon: "phoneProfile" }
|
|
4844
|
+
],
|
|
4677
4845
|
label: { key: "verification.labels.phone" },
|
|
4678
4846
|
input: { autofill: "phone" },
|
|
4679
4847
|
phone: { lockCountry: "whenPhoneRisk" },
|
|
@@ -4804,6 +4972,7 @@ const EKYC_DEFINITIONS = {
|
|
|
4804
4972
|
kind: "text",
|
|
4805
4973
|
group: "email",
|
|
4806
4974
|
required: true,
|
|
4975
|
+
requiredWhen: [{ riskAddon: "emailCheck" }],
|
|
4807
4976
|
label: { key: "verification.labels.email" },
|
|
4808
4977
|
placeholder: { key: "verification.placeholder.email" },
|
|
4809
4978
|
input: {
|
|
@@ -4818,6 +4987,11 @@ const EKYC_DEFINITIONS = {
|
|
|
4818
4987
|
kind: "phone",
|
|
4819
4988
|
group: "phone",
|
|
4820
4989
|
required: true,
|
|
4990
|
+
requiredWhen: [
|
|
4991
|
+
{ riskAddon: "phoneCheck" },
|
|
4992
|
+
{ riskAddon: "advancedPhoneCheck" },
|
|
4993
|
+
{ riskAddon: "phoneProfile" }
|
|
4994
|
+
],
|
|
4821
4995
|
label: { key: "verification.labels.phone" },
|
|
4822
4996
|
input: { autofill: "phone" },
|
|
4823
4997
|
phone: { lockCountry: "whenPhoneRisk" },
|
|
@@ -5003,6 +5177,7 @@ const EKYC_DEFINITIONS = {
|
|
|
5003
5177
|
kind: "text",
|
|
5004
5178
|
group: "email",
|
|
5005
5179
|
required: true,
|
|
5180
|
+
requiredWhen: [{ riskAddon: "emailCheck" }],
|
|
5006
5181
|
label: { key: "verification.labels.email" },
|
|
5007
5182
|
placeholder: { key: "verification.placeholder.email" },
|
|
5008
5183
|
input: {
|
|
@@ -5017,6 +5192,11 @@ const EKYC_DEFINITIONS = {
|
|
|
5017
5192
|
kind: "phone",
|
|
5018
5193
|
group: "phone",
|
|
5019
5194
|
required: true,
|
|
5195
|
+
requiredWhen: [
|
|
5196
|
+
{ riskAddon: "phoneCheck" },
|
|
5197
|
+
{ riskAddon: "advancedPhoneCheck" },
|
|
5198
|
+
{ riskAddon: "phoneProfile" }
|
|
5199
|
+
],
|
|
5020
5200
|
label: { key: "verification.labels.phone" },
|
|
5021
5201
|
input: { autofill: "phone" },
|
|
5022
5202
|
phone: { lockCountry: true },
|
|
@@ -5132,6 +5312,7 @@ const EKYC_DEFINITIONS = {
|
|
|
5132
5312
|
kind: "text",
|
|
5133
5313
|
group: "email",
|
|
5134
5314
|
required: true,
|
|
5315
|
+
requiredWhen: [{ riskAddon: "emailCheck" }],
|
|
5135
5316
|
label: { key: "verification.labels.email" },
|
|
5136
5317
|
placeholder: { key: "verification.placeholder.email" },
|
|
5137
5318
|
input: {
|
|
@@ -5145,6 +5326,11 @@ const EKYC_DEFINITIONS = {
|
|
|
5145
5326
|
name: "phone",
|
|
5146
5327
|
kind: "phone",
|
|
5147
5328
|
group: "phone",
|
|
5329
|
+
requiredWhen: [
|
|
5330
|
+
{ riskAddon: "phoneCheck" },
|
|
5331
|
+
{ riskAddon: "advancedPhoneCheck" },
|
|
5332
|
+
{ riskAddon: "phoneProfile" }
|
|
5333
|
+
],
|
|
5148
5334
|
label: { key: "verification.labels.phone" },
|
|
5149
5335
|
input: { autofill: "phone" },
|
|
5150
5336
|
phone: { lockCountry: true },
|
|
@@ -5286,6 +5472,7 @@ const EKYC_DEFINITIONS = {
|
|
|
5286
5472
|
kind: "text",
|
|
5287
5473
|
group: "email",
|
|
5288
5474
|
required: true,
|
|
5475
|
+
requiredWhen: [{ riskAddon: "emailCheck" }],
|
|
5289
5476
|
label: { key: "verification.labels.email" },
|
|
5290
5477
|
placeholder: { key: "verification.placeholder.email" },
|
|
5291
5478
|
input: {
|
|
@@ -5300,6 +5487,11 @@ const EKYC_DEFINITIONS = {
|
|
|
5300
5487
|
kind: "phone",
|
|
5301
5488
|
group: "phone",
|
|
5302
5489
|
required: true,
|
|
5490
|
+
requiredWhen: [
|
|
5491
|
+
{ riskAddon: "phoneCheck" },
|
|
5492
|
+
{ riskAddon: "advancedPhoneCheck" },
|
|
5493
|
+
{ riskAddon: "phoneProfile" }
|
|
5494
|
+
],
|
|
5303
5495
|
label: { key: "verification.labels.phone" },
|
|
5304
5496
|
input: { autofill: "phone" },
|
|
5305
5497
|
phone: { lockCountry: "whenPhoneRisk" },
|
|
@@ -5437,6 +5629,7 @@ const EKYC_DEFINITIONS = {
|
|
|
5437
5629
|
name: "email",
|
|
5438
5630
|
kind: "text",
|
|
5439
5631
|
group: "email",
|
|
5632
|
+
requiredWhen: [{ riskAddon: "emailCheck" }],
|
|
5440
5633
|
label: { key: "verification.labels.email" },
|
|
5441
5634
|
placeholder: { key: "verification.placeholder.email" },
|
|
5442
5635
|
input: {
|
|
@@ -5451,6 +5644,11 @@ const EKYC_DEFINITIONS = {
|
|
|
5451
5644
|
kind: "phone",
|
|
5452
5645
|
group: "phone",
|
|
5453
5646
|
required: true,
|
|
5647
|
+
requiredWhen: [
|
|
5648
|
+
{ riskAddon: "phoneCheck" },
|
|
5649
|
+
{ riskAddon: "advancedPhoneCheck" },
|
|
5650
|
+
{ riskAddon: "phoneProfile" }
|
|
5651
|
+
],
|
|
5454
5652
|
label: { key: "verification.labels.phone" },
|
|
5455
5653
|
input: { autofill: "phone" },
|
|
5456
5654
|
phone: { lockCountry: true },
|
|
@@ -5599,6 +5797,7 @@ const EKYC_DEFINITIONS = {
|
|
|
5599
5797
|
kind: "text",
|
|
5600
5798
|
group: "email",
|
|
5601
5799
|
required: true,
|
|
5800
|
+
requiredWhen: [{ riskAddon: "emailCheck" }],
|
|
5602
5801
|
label: { key: "verification.labels.email" },
|
|
5603
5802
|
placeholder: { key: "verification.placeholder.email" },
|
|
5604
5803
|
input: {
|
|
@@ -5613,6 +5812,11 @@ const EKYC_DEFINITIONS = {
|
|
|
5613
5812
|
kind: "phone",
|
|
5614
5813
|
group: "phone",
|
|
5615
5814
|
required: true,
|
|
5815
|
+
requiredWhen: [
|
|
5816
|
+
{ riskAddon: "phoneCheck" },
|
|
5817
|
+
{ riskAddon: "advancedPhoneCheck" },
|
|
5818
|
+
{ riskAddon: "phoneProfile" }
|
|
5819
|
+
],
|
|
5616
5820
|
label: { key: "verification.labels.phone" },
|
|
5617
5821
|
input: { autofill: "phone" },
|
|
5618
5822
|
phone: { lockCountry: "whenPhoneRisk" },
|
|
@@ -6079,6 +6283,7 @@ const EKYC_DEFINITIONS = {
|
|
|
6079
6283
|
name: "email",
|
|
6080
6284
|
kind: "text",
|
|
6081
6285
|
group: "email",
|
|
6286
|
+
requiredWhen: [{ riskAddon: "emailCheck" }],
|
|
6082
6287
|
label: { key: "verification.labels.email" },
|
|
6083
6288
|
placeholder: { key: "verification.placeholder.email" },
|
|
6084
6289
|
input: {
|
|
@@ -6092,6 +6297,11 @@ const EKYC_DEFINITIONS = {
|
|
|
6092
6297
|
name: "phone",
|
|
6093
6298
|
kind: "phone",
|
|
6094
6299
|
group: "phone",
|
|
6300
|
+
requiredWhen: [
|
|
6301
|
+
{ riskAddon: "phoneCheck" },
|
|
6302
|
+
{ riskAddon: "advancedPhoneCheck" },
|
|
6303
|
+
{ riskAddon: "phoneProfile" }
|
|
6304
|
+
],
|
|
6095
6305
|
label: { key: "verification.labels.phone" },
|
|
6096
6306
|
input: { autofill: "phone" },
|
|
6097
6307
|
phone: { lockCountry: true },
|
|
@@ -6251,6 +6461,7 @@ const EKYC_DEFINITIONS = {
|
|
|
6251
6461
|
name: "email",
|
|
6252
6462
|
kind: "text",
|
|
6253
6463
|
group: "email",
|
|
6464
|
+
requiredWhen: [{ riskAddon: "emailCheck" }],
|
|
6254
6465
|
label: { key: "verification.labels.email" },
|
|
6255
6466
|
placeholder: { key: "verification.placeholder.email" },
|
|
6256
6467
|
input: {
|
|
@@ -6264,6 +6475,11 @@ const EKYC_DEFINITIONS = {
|
|
|
6264
6475
|
name: "phone",
|
|
6265
6476
|
kind: "phone",
|
|
6266
6477
|
group: "phone",
|
|
6478
|
+
requiredWhen: [
|
|
6479
|
+
{ riskAddon: "phoneCheck" },
|
|
6480
|
+
{ riskAddon: "advancedPhoneCheck" },
|
|
6481
|
+
{ riskAddon: "phoneProfile" }
|
|
6482
|
+
],
|
|
6267
6483
|
label: { key: "verification.labels.phone" },
|
|
6268
6484
|
input: { autofill: "phone" },
|
|
6269
6485
|
phone: { lockCountry: true },
|
|
@@ -6426,6 +6642,7 @@ const EKYC_DEFINITIONS = {
|
|
|
6426
6642
|
kind: "text",
|
|
6427
6643
|
group: "email",
|
|
6428
6644
|
required: true,
|
|
6645
|
+
requiredWhen: [{ riskAddon: "emailCheck" }],
|
|
6429
6646
|
label: { key: "verification.labels.email" },
|
|
6430
6647
|
placeholder: { key: "verification.placeholder.email" },
|
|
6431
6648
|
input: {
|
|
@@ -6439,6 +6656,11 @@ const EKYC_DEFINITIONS = {
|
|
|
6439
6656
|
name: "phone",
|
|
6440
6657
|
kind: "phone",
|
|
6441
6658
|
group: "phone",
|
|
6659
|
+
requiredWhen: [
|
|
6660
|
+
{ riskAddon: "phoneCheck" },
|
|
6661
|
+
{ riskAddon: "advancedPhoneCheck" },
|
|
6662
|
+
{ riskAddon: "phoneProfile" }
|
|
6663
|
+
],
|
|
6442
6664
|
label: { key: "verification.labels.phone" },
|
|
6443
6665
|
input: { autofill: "phone" },
|
|
6444
6666
|
phone: { lockCountry: true },
|
|
@@ -6597,6 +6819,7 @@ const EKYC_DEFINITIONS = {
|
|
|
6597
6819
|
name: "email",
|
|
6598
6820
|
kind: "text",
|
|
6599
6821
|
group: "email",
|
|
6822
|
+
requiredWhen: [{ riskAddon: "emailCheck" }],
|
|
6600
6823
|
label: { key: "verification.labels.email" },
|
|
6601
6824
|
placeholder: { key: "verification.placeholder.email" },
|
|
6602
6825
|
input: {
|
|
@@ -6611,6 +6834,11 @@ const EKYC_DEFINITIONS = {
|
|
|
6611
6834
|
kind: "phone",
|
|
6612
6835
|
group: "phone",
|
|
6613
6836
|
required: true,
|
|
6837
|
+
requiredWhen: [
|
|
6838
|
+
{ riskAddon: "phoneCheck" },
|
|
6839
|
+
{ riskAddon: "advancedPhoneCheck" },
|
|
6840
|
+
{ riskAddon: "phoneProfile" }
|
|
6841
|
+
],
|
|
6614
6842
|
label: { key: "verification.labels.phone" },
|
|
6615
6843
|
input: { autofill: "phone" },
|
|
6616
6844
|
phone: { lockCountry: true },
|
|
@@ -6768,6 +6996,7 @@ const EKYC_DEFINITIONS = {
|
|
|
6768
6996
|
kind: "text",
|
|
6769
6997
|
group: "email",
|
|
6770
6998
|
required: true,
|
|
6999
|
+
requiredWhen: [{ riskAddon: "emailCheck" }],
|
|
6771
7000
|
label: { key: "verification.labels.email" },
|
|
6772
7001
|
placeholder: { key: "verification.placeholder.email" },
|
|
6773
7002
|
input: {
|
|
@@ -6782,6 +7011,11 @@ const EKYC_DEFINITIONS = {
|
|
|
6782
7011
|
kind: "phone",
|
|
6783
7012
|
group: "phone",
|
|
6784
7013
|
required: true,
|
|
7014
|
+
requiredWhen: [
|
|
7015
|
+
{ riskAddon: "phoneCheck" },
|
|
7016
|
+
{ riskAddon: "advancedPhoneCheck" },
|
|
7017
|
+
{ riskAddon: "phoneProfile" }
|
|
7018
|
+
],
|
|
6785
7019
|
label: { key: "verification.labels.phone" },
|
|
6786
7020
|
input: { autofill: "phone" },
|
|
6787
7021
|
phone: { lockCountry: true },
|
|
@@ -6920,6 +7154,7 @@ const EKYC_DEFINITIONS = {
|
|
|
6920
7154
|
kind: "text",
|
|
6921
7155
|
group: "email",
|
|
6922
7156
|
required: true,
|
|
7157
|
+
requiredWhen: [{ riskAddon: "emailCheck" }],
|
|
6923
7158
|
label: { key: "verification.labels.email" },
|
|
6924
7159
|
placeholder: { key: "verification.placeholder.email" },
|
|
6925
7160
|
input: {
|
|
@@ -6934,6 +7169,11 @@ const EKYC_DEFINITIONS = {
|
|
|
6934
7169
|
kind: "phone",
|
|
6935
7170
|
group: "phone",
|
|
6936
7171
|
required: true,
|
|
7172
|
+
requiredWhen: [
|
|
7173
|
+
{ riskAddon: "phoneCheck" },
|
|
7174
|
+
{ riskAddon: "advancedPhoneCheck" },
|
|
7175
|
+
{ riskAddon: "phoneProfile" }
|
|
7176
|
+
],
|
|
6937
7177
|
label: { key: "verification.labels.phone" },
|
|
6938
7178
|
input: { autofill: "phone" },
|
|
6939
7179
|
phone: { lockCountry: "whenPhoneRisk" },
|
|
@@ -7216,8 +7456,7 @@ const OPTION_LISTS = {
|
|
|
7216
7456
|
/**
|
|
7217
7457
|
* What the projection can express today. Request-body transforms are listed
|
|
7218
7458
|
* because `buildSubmitPayload` already applies them, on the fields
|
|
7219
|
-
* `legacyPayloadTransforms` names
|
|
7220
|
-
* no condition is supported yet.
|
|
7459
|
+
* `legacyPayloadTransforms` names.
|
|
7221
7460
|
*/
|
|
7222
7461
|
const EKYC_SUPPORTED_IDS = {
|
|
7223
7462
|
schemaVersions: [1],
|
|
@@ -7239,7 +7478,7 @@ const EKYC_SUPPORTED_IDS = {
|
|
|
7239
7478
|
]),
|
|
7240
7479
|
groupRules: /* @__PURE__ */ new Set(["oneOfRequired", "rulesByOption"]),
|
|
7241
7480
|
optionLists: new Set(Object.keys(OPTION_LISTS)),
|
|
7242
|
-
conditions: /* @__PURE__ */ new Set(["fieldFilled"]),
|
|
7481
|
+
conditions: /* @__PURE__ */ new Set(["fieldFilled", "riskAddon"]),
|
|
7243
7482
|
prefillSources: new Set(EKYC_PREFILL_SOURCES),
|
|
7244
7483
|
flags: /* @__PURE__ */ new Set()
|
|
7245
7484
|
};
|
|
@@ -7426,6 +7665,7 @@ function toEkycResolveContext(verificationFields, enablePhoneRisk, displayModes
|
|
|
7426
7665
|
return {
|
|
7427
7666
|
groups: Object.fromEntries(groups.map(([group, key]) => [group, Boolean(verificationFields[key])])),
|
|
7428
7667
|
phoneRisk: enablePhoneRisk,
|
|
7668
|
+
riskAddons: [...riskAddons],
|
|
7429
7669
|
origins,
|
|
7430
7670
|
displayModes: modes,
|
|
7431
7671
|
lockingOrigins: LOCKING_ORIGINS
|
|
@@ -7483,6 +7723,16 @@ function projectField(resolved, verificationFields, country) {
|
|
|
7483
7723
|
return def;
|
|
7484
7724
|
}
|
|
7485
7725
|
/**
|
|
7726
|
+
* Adds a "one of" group rule to a member, first so it answers for a blank
|
|
7727
|
+
* field before any format rule. A member required on its own (a risk add-on's,
|
|
7728
|
+
* B20) answers with its own required error, so the group rule goes last
|
|
7729
|
+
* there. It stays so that filling that member clears its siblings' group error.
|
|
7730
|
+
*/
|
|
7731
|
+
function withOneOfRequired(def, oneOf) {
|
|
7732
|
+
const rules = def.validation ?? [];
|
|
7733
|
+
return def.required ? [...rules, oneOf] : [oneOf, ...rules];
|
|
7734
|
+
}
|
|
7735
|
+
/**
|
|
7486
7736
|
* Projects a resolved definition to today's `EkycFieldDef[]`, identical to
|
|
7487
7737
|
* what `legacyBuildFieldDefs` returns for the same source and country.
|
|
7488
7738
|
*/
|
|
@@ -7507,7 +7757,7 @@ function projectEkycFields(form, verificationFields, country) {
|
|
|
7507
7757
|
fields: [...fields],
|
|
7508
7758
|
...message && message !== "verification.errors.dobOrSsnRequired" && { message }
|
|
7509
7759
|
};
|
|
7510
|
-
for (const def of defs) if (fields.includes(def.name)) def.validation =
|
|
7760
|
+
for (const def of defs) if (fields.includes(def.name)) def.validation = withOneOfRequired(def, oneOf);
|
|
7511
7761
|
}
|
|
7512
7762
|
return defs;
|
|
7513
7763
|
}
|
|
@@ -7519,7 +7769,7 @@ const STATE_OPTIONS_BY_COUNTRY = {
|
|
|
7519
7769
|
US: usStateOptions,
|
|
7520
7770
|
BR: brStateOptions
|
|
7521
7771
|
};
|
|
7522
|
-
function buildValidationRules(field, country
|
|
7772
|
+
function buildValidationRules(field, country) {
|
|
7523
7773
|
const rules = [];
|
|
7524
7774
|
if (field.required) rules.push({ type: "required" });
|
|
7525
7775
|
if (field.name === "taxId" && country === "BR") rules.push({ type: "cpf" });
|
|
@@ -7532,7 +7782,7 @@ function buildValidationRules(field, country, configSource) {
|
|
|
7532
7782
|
if (field.name === "phone") rules.push({
|
|
7533
7783
|
type: "phoneFormat",
|
|
7534
7784
|
country,
|
|
7535
|
-
optional:
|
|
7785
|
+
optional: !field.required
|
|
7536
7786
|
});
|
|
7537
7787
|
if (field.name === "email") rules.push({ type: "emailFormat" });
|
|
7538
7788
|
if (field.name === "panNumber") rules.push({
|
|
@@ -7549,10 +7799,10 @@ function applyOneOfRequiredGroups(defs, configSource) {
|
|
|
7549
7799
|
for (const group of ONE_OF_REQUIRED_GROUPS[configSource] ?? []) {
|
|
7550
7800
|
const members = defs.filter((def) => group.includes(def.name));
|
|
7551
7801
|
const fields = members.map((def) => def.name);
|
|
7552
|
-
for (const def of members) def.validation =
|
|
7802
|
+
for (const def of members) def.validation = withOneOfRequired(def, {
|
|
7553
7803
|
type: "oneOfRequired",
|
|
7554
7804
|
fields
|
|
7555
|
-
}
|
|
7805
|
+
});
|
|
7556
7806
|
}
|
|
7557
7807
|
}
|
|
7558
7808
|
/**
|
|
@@ -7563,14 +7813,15 @@ function applyOneOfRequiredGroups(defs, configSource) {
|
|
|
7563
7813
|
* it was created, so it can't change mid-session. The options are named so a
|
|
7564
7814
|
* caller can't swap the two booleans.
|
|
7565
7815
|
*/
|
|
7566
|
-
function buildFieldDefs(fields, configSource, country, { useDefinitions, enablePhoneRisk = false }) {
|
|
7816
|
+
function buildFieldDefs(fields, configSource, country, { useDefinitions, enablePhoneRisk = false, riskAddons = [] }) {
|
|
7567
7817
|
const definition = selectEkycDefinition(configSource, country, useDefinitions);
|
|
7568
|
-
if (definition) return projectEkycFields(resolveForm(definition, toEkycResolveContext(fields, enablePhoneRisk)), fields, country);
|
|
7569
|
-
return legacyBuildFieldDefs(fields, configSource, country, enablePhoneRisk);
|
|
7818
|
+
if (definition) return projectEkycFields(resolveForm(definition, toEkycResolveContext(fields, enablePhoneRisk, {}, riskAddons)), fields, country);
|
|
7819
|
+
return legacyBuildFieldDefs(fields, configSource, country, enablePhoneRisk, riskAddons);
|
|
7570
7820
|
}
|
|
7571
7821
|
/** The per-source builder for sources without a form definition yet. */
|
|
7572
|
-
function legacyBuildFieldDefs(fields, configSource, country, enablePhoneRisk = false) {
|
|
7822
|
+
function legacyBuildFieldDefs(fields, configSource, country, enablePhoneRisk = false, riskAddons = []) {
|
|
7573
7823
|
const defs = [];
|
|
7824
|
+
const addonFields = getRiskAddonFields(riskAddons);
|
|
7574
7825
|
const add = (name, type, label, source, opts) => {
|
|
7575
7826
|
if (source === false) return;
|
|
7576
7827
|
const def = {
|
|
@@ -7578,10 +7829,10 @@ function legacyBuildFieldDefs(fields, configSource, country, enablePhoneRisk = f
|
|
|
7578
7829
|
type,
|
|
7579
7830
|
label,
|
|
7580
7831
|
source,
|
|
7581
|
-
required: !isFieldOptional(name, configSource),
|
|
7832
|
+
required: addonFields.has(name) || !isFieldOptional(name, configSource),
|
|
7582
7833
|
...opts
|
|
7583
7834
|
};
|
|
7584
|
-
const validation = buildValidationRules(def, country
|
|
7835
|
+
const validation = buildValidationRules(def, country);
|
|
7585
7836
|
if (validation.length > 0) def.validation = validation;
|
|
7586
7837
|
defs.push(def);
|
|
7587
7838
|
};
|
|
@@ -8030,7 +8281,7 @@ const prefillConfig = (context) => ({
|
|
|
8030
8281
|
configSource: context.configSource,
|
|
8031
8282
|
country: context.fieldsCountry,
|
|
8032
8283
|
enablePhoneRisk: context.moduleConfig?.enablePhoneRisk ?? context.config.enablePhoneRisk,
|
|
8033
|
-
riskAddons: context
|
|
8284
|
+
riskAddons: getEkycRiskAddons(context),
|
|
8034
8285
|
useDefinitions: context._formDefinitions
|
|
8035
8286
|
});
|
|
8036
8287
|
const stepsOf = (context) => buildEkycSteps(context.fields, context.hideEmail);
|
|
@@ -8071,7 +8322,8 @@ const ekycMachine = setup({
|
|
|
8071
8322
|
fieldsCountry: country,
|
|
8072
8323
|
fields: buildFieldDefs(vFields, source, country, {
|
|
8073
8324
|
useDefinitions: context._formDefinitions,
|
|
8074
|
-
enablePhoneRisk: config.enablePhoneRisk
|
|
8325
|
+
enablePhoneRisk: config.enablePhoneRisk,
|
|
8326
|
+
riskAddons: config.riskAddons
|
|
8075
8327
|
}),
|
|
8076
8328
|
displayModes: getEKYCDisplayModes(config)
|
|
8077
8329
|
};
|
|
@@ -8249,7 +8501,7 @@ const ekycMachine = setup({
|
|
|
8249
8501
|
target: "loading.phoneRules",
|
|
8250
8502
|
guard: "hasVerificationFields",
|
|
8251
8503
|
actions: assign(({ context }) => {
|
|
8252
|
-
const vFields = context.config.verificationFields;
|
|
8504
|
+
const vFields = withRiskAddonFields(context.config.verificationFields, context.config.riskAddons);
|
|
8253
8505
|
const source = context.config.source ?? "";
|
|
8254
8506
|
const country = context.config.fieldsCountry ?? getEKYCCountry(source);
|
|
8255
8507
|
return {
|
|
@@ -8258,7 +8510,8 @@ const ekycMachine = setup({
|
|
|
8258
8510
|
fieldsCountry: country,
|
|
8259
8511
|
fields: buildFieldDefs(vFields, source, country, {
|
|
8260
8512
|
useDefinitions: context._formDefinitions,
|
|
8261
|
-
enablePhoneRisk: context.config.enablePhoneRisk
|
|
8513
|
+
enablePhoneRisk: context.config.enablePhoneRisk,
|
|
8514
|
+
riskAddons: context.config.riskAddons
|
|
8262
8515
|
})
|
|
8263
8516
|
};
|
|
8264
8517
|
})
|