@incodetech/core 0.0.0-dev-20261113-368e4f61 → 0.0.0-dev-20261113-bf9cecf5
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-bc6dIc-B.esm.js → FaceDetectionProvider-BHFMKlVk.esm.js} +4 -4
- package/dist/{addressSearch-D55PKLQZ.esm.js → addressSearch-Rxm1K67A.esm.js} +3 -2
- package/dist/ae-signature.esm.js +1 -1
- package/dist/{apiError-Cfl4F-sU.esm.js → apiError-BGLJwanM.esm.js} +1 -1
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-B0IVnPgi.esm.js → authenticationManager-Dw8QnjmA.esm.js} +3 -3
- package/dist/{authenticationStateMachine-ByaEAtU2.esm.js → authenticationStateMachine-DPxh4vOu.esm.js} +2 -2
- package/dist/consent.d.ts +1 -1
- package/dist/{consentManager-DlvhoJYc.d.ts → consentManager-B2F_VeAo.d.ts} +8 -8
- package/dist/{deepsightLoader-CZaKj8Kd.esm.js → deepsightLoader-2dUuR62h.esm.js} +3 -3
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-CIZf-yHt.esm.js → dynamicFormsManager-x1-nyxYL.esm.js} +1 -1
- package/dist/{dynamicFormsStateMachine-B1yHlrU8.esm.js → dynamicFormsStateMachine-C5qxUfFI.esm.js} +1 -1
- package/dist/ekyb.esm.js +2 -2
- package/dist/{ekybManager-D56vk0Wx.esm.js → ekybManager-DKnI7tVY.esm.js} +1 -1
- package/dist/{ekybStateMachine-xr3iGud5.esm.js → ekybStateMachine-CBq9G3-f.esm.js} +8 -5
- package/dist/ekyc-prefill.d.ts +1 -1
- package/dist/ekyc-prefill.esm.js +2 -2
- package/dist/ekyc.esm.js +3 -3
- package/dist/{ekycManager-BojVwTr3.esm.js → ekycManager-BWOKhg0A.esm.js} +1 -1
- package/dist/{ekycPrefillManager-5Si4KDIm.esm.js → ekycPrefillManager-BnKbAmJu.esm.js} +1 -1
- package/dist/{ekycPrefillManager-BF6YIJ_s.d.ts → ekycPrefillManager-DOTl3Y2w.d.ts} +8 -8
- package/dist/{ekycPrefillStateMachine-BPHvBhTF.esm.js → ekycPrefillStateMachine-Cdpa9saV.esm.js} +5 -4
- package/dist/{ekycRules-BLX7Elcb.esm.js → ekycRules-B0OocyvM.esm.js} +1 -1
- package/dist/{ekycStateMachine-BQCS2Ycg.esm.js → ekycStateMachine-C--4YSib.esm.js} +20 -11
- package/dist/{ekycUtils-Dcff8BOD.esm.js → ekycUtils-Cp9M-bBI.esm.js} +39 -43
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-CJdkM3bH.esm.js → electronicSignatureManager-DVp6ECFq.esm.js} +1 -1
- package/dist/extensibility.d.ts +3 -3
- package/dist/extensibility.esm.js +13 -13
- package/dist/{faceCaptureManagerFactory-D_PGZzsG.esm.js → faceCaptureManagerFactory-DMahCXTd.esm.js} +1 -1
- package/dist/{faceCaptureSetup-CK4SceiU.esm.js → faceCaptureSetup-DHff9_Se.esm.js} +3 -3
- package/dist/{feature-management-D8pmjf_o.esm.js → feature-management-BWe9w7OO.esm.js} +1 -1
- package/dist/feature-management.esm.js +1 -1
- package/dist/flow.esm.js +3 -3
- package/dist/{flowCompletionService-Dwmg5WSY.esm.js → flowCompletionService-CVOmSB_k.esm.js} +1 -1
- package/dist/{flowServices-DkMMtPXz.esm.js → flowServices-CHl7r36s.esm.js} +5 -5
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-BD-Dlmtq.esm.js → geolocationManager-DNAsvMfT.esm.js} +1 -1
- package/dist/{geolocationStateMachine-DsswfuAz.esm.js → geolocationStateMachine-v9D_i1R8.esm.js} +1 -1
- package/dist/id-selfie-flow.esm.js +6 -6
- package/dist/id.esm.js +3 -3
- package/dist/{idCaptureManager-oohM-0sx.esm.js → idCaptureManager-B36SF0YJ.esm.js} +3 -3
- package/dist/{idCaptureServices-X9-7mkPu.esm.js → idCaptureServices-BZsDmLhR.esm.js} +2 -2
- package/dist/{idCaptureStateMachine-tAwKQ18W.esm.js → idCaptureStateMachine-lN-li29n.esm.js} +8 -8
- package/dist/index.esm.js +1 -1
- package/dist/kyb-checks.esm.js +2 -2
- package/dist/{kybChecksManager-BP1LdPBn.esm.js → kybChecksManager-D4t6I1BS.esm.js} +1 -1
- package/dist/{kybChecksStateMachine-CvE3wbi3.esm.js → kybChecksStateMachine-CALDE3Do.esm.js} +4 -3
- package/dist/mandatory-consent.d.ts +1 -1
- package/dist/{mandatoryConsentManager-BYKfAPVW.d.ts → mandatoryConsentManager-DgNuWWQw.d.ts} +6 -6
- package/dist/qe-signature.esm.js +1 -1
- package/dist/{resolveForm-f9PhUo9j.esm.js → resolveForm-DaaQSVWp.esm.js} +7 -4
- package/dist/{runChildModule-DjjglMKV.esm.js → runChildModule-BgqPX7O_.esm.js} +1 -1
- package/dist/{sdkVersion-DaLyrL-p.esm.js → sdkVersion-CI7AVv52.esm.js} +1 -1
- package/dist/selfie.esm.js +6 -6
- package/dist/{selfieErrorUtils-BZkVimkx.esm.js → selfieErrorUtils-CPjCnfAs.esm.js} +1 -1
- package/dist/{selfieManager-BnWqxn1f.esm.js → selfieManager-2_4e6flX.esm.js} +3 -3
- package/dist/{selfieStateMachine-BWx1LCMK.esm.js → selfieStateMachine-sHHpgUAE.esm.js} +3 -3
- package/dist/{session-076vVWUV.esm.js → session-DTKWnoo3.esm.js} +3 -3
- package/dist/session.esm.js +4 -4
- package/dist/{sessionInitializer-Bkx0kpLB.esm.js → sessionInitializer-DRIZt0ov.esm.js} +3 -3
- package/dist/{setup-DyRlK3Bb.esm.js → setup-CZPaluvp.esm.js} +4 -4
- package/dist/{trueSightService-DaKxTgj6.esm.js → trueSightService-DbFQftw_.esm.js} +1 -1
- package/dist/video-selfie.esm.js +3 -3
- package/dist/{videoSelfieCameraWarmer-DHO_Dv7F.esm.js → videoSelfieCameraWarmer-9yMgpC3E.esm.js} +3 -3
- package/dist/wasm.esm.js +1 -1
- package/dist/workflow.esm.js +17 -17
- package/package.json +1 -1
package/dist/{FaceDetectionProvider-bc6dIc-B.esm.js → FaceDetectionProvider-BHFMKlVk.esm.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { l as wasmRuntime } from "./warmup-BZOMg303.esm.js";
|
|
2
|
-
import { t as ensureWasmPipelines } from "./setup-
|
|
2
|
+
import { t as ensureWasmPipelines } from "./setup-CZPaluvp.esm.js";
|
|
3
3
|
import { r as BaseWasmProvider } from "./WasmUtilProvider-0xTxgP0R.esm.js";
|
|
4
4
|
import { t as api, u as endpoints } from "./api-CZpuJuZl.esm.js";
|
|
5
|
-
import { l as trueSightHintTransition, r as noteTrueSightCaptureActivity } from "./trueSightService-
|
|
6
|
-
import "./sessionInitializer-
|
|
5
|
+
import { l as trueSightHintTransition, r as noteTrueSightCaptureActivity } from "./trueSightService-DbFQftw_.esm.js";
|
|
6
|
+
import "./sessionInitializer-DRIZt0ov.esm.js";
|
|
7
7
|
import { t as addDeviceStats } from "./stats-DoByUnTa.esm.js";
|
|
8
8
|
import { t as IncodeCanvas } from "./canvas-BxFzWTt-.esm.js";
|
|
9
9
|
import { t as StreamCanvasProcessingSession } from "./StreamCanvasProcessingSession-CBnbTnOr.esm.js";
|
|
@@ -235,7 +235,7 @@ function startDetection(params) {
|
|
|
235
235
|
};
|
|
236
236
|
}
|
|
237
237
|
async function initializeDeepsightSession(options) {
|
|
238
|
-
const { loadDeepsightSession } = await import("./deepsightLoader-
|
|
238
|
+
const { loadDeepsightSession } = await import("./deepsightLoader-2dUuR62h.esm.js");
|
|
239
239
|
return loadDeepsightSession({
|
|
240
240
|
ds: options.ds,
|
|
241
241
|
storage: options.storage
|
|
@@ -5,8 +5,9 @@ import { t as fromCallback } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
|
5
5
|
/**
|
|
6
6
|
* The rollout switch for form definitions (ENG-59781): one all-or-nothing
|
|
7
7
|
* answer to "do eKYC and eKYB build their forms from catalog definitions, or
|
|
8
|
-
* with today's builders?".
|
|
9
|
-
*
|
|
8
|
+
* with today's builders?". The eKYC and eKYB machines read it once, when
|
|
9
|
+
* they're created, and pass the answer to the module adapters
|
|
10
|
+
* (`selectEkycDefinition`, `selectEkybForm`); the forms kernel
|
|
10
11
|
* (`internal/forms`) knows nothing about it.
|
|
11
12
|
*
|
|
12
13
|
* Off by default, so every source and country keeps today's builder. A
|
package/dist/ae-signature.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as areAllConsented, i as AE_CONSENT_KEYS, r as electronicSignatureMachine, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-
|
|
1
|
+
import { c as areAllConsented, i as AE_CONSENT_KEYS, r as electronicSignatureMachine, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-DVp6ECFq.esm.js";
|
|
2
2
|
//#region src/modules/ae-signature/index.ts
|
|
3
3
|
function createAeSignatureManager(options) {
|
|
4
4
|
return createElectronicSignatureManager({ config: {
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as authenticationMachine } from "./authenticationStateMachine-
|
|
2
|
-
import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-
|
|
1
|
+
import { t as authenticationMachine } from "./authenticationStateMachine-DPxh4vOu.esm.js";
|
|
2
|
+
import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager-Dw8QnjmA.esm.js";
|
|
3
3
|
export { authenticationMachine, createAuthenticationActor, createAuthenticationManager };
|
package/dist/{authenticationManager-B0IVnPgi.esm.js → authenticationManager-Dw8QnjmA.esm.js}
RENAMED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { u as BrowserStorageProvider } from "./setup-
|
|
1
|
+
import { u as BrowserStorageProvider } from "./setup-CZPaluvp.esm.js";
|
|
2
2
|
import { t as WasmUtilProvider } from "./WasmUtilProvider-0xTxgP0R.esm.js";
|
|
3
3
|
import { n as eventModuleNames } from "./types-DYYMdAGv.esm.js";
|
|
4
4
|
import "./events-CP3yOzAl.esm.js";
|
|
5
5
|
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
6
|
-
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-
|
|
7
|
-
import { t as authenticationMachine } from "./authenticationStateMachine-
|
|
6
|
+
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-DMahCXTd.esm.js";
|
|
7
|
+
import { t as authenticationMachine } from "./authenticationStateMachine-DPxh4vOu.esm.js";
|
|
8
8
|
//#region src/modules/authentication/authenticationActor.ts
|
|
9
9
|
function createAuthenticationActor(options) {
|
|
10
10
|
const dependencies = options.dependencies ?? {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i as assign } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
2
2
|
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
3
|
-
import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
4
|
-
import { d as isOnDeviceMode, u as FACE_ERROR_CODES } from "./FaceDetectionProvider-
|
|
3
|
+
import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-DHff9_Se.esm.js";
|
|
4
|
+
import { d as isOnDeviceMode, u as FACE_ERROR_CODES } from "./FaceDetectionProvider-BHFMKlVk.esm.js";
|
|
5
5
|
import { s as PROTECTED_CAPTURE_TARGET } from "./desktopCameraElection-BKFjsQpO.esm.js";
|
|
6
6
|
//#region src/modules/authentication/authenticationErrorUtils.ts
|
|
7
7
|
const AUTH_ERROR_MAP = {
|
package/dist/consent.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as ConsentActor, c as ConsentConfig, i as createConsentManagerFromActor, n as ConsentState, o as consentMachine, r as createConsentManager, s as ConsentCheckbox, t as ConsentManager } from "./consentManager-
|
|
1
|
+
import { a as ConsentActor, c as ConsentConfig, i as createConsentManagerFromActor, n as ConsentState, o as consentMachine, r as createConsentManager, s as ConsentCheckbox, t as ConsentManager } from "./consentManager-B2F_VeAo.js";
|
|
2
2
|
export { type ConsentActor, type ConsentCheckbox, type ConsentConfig, type ConsentManager, type ConsentState, consentMachine, createConsentManager, createConsentManagerFromActor };
|
|
@@ -79,18 +79,10 @@ declare const consentMachine: StateMachine<ConsentContext, {
|
|
|
79
79
|
type: "setError";
|
|
80
80
|
params: NonReducibleUnknown;
|
|
81
81
|
};
|
|
82
|
-
clearError: {
|
|
83
|
-
type: "clearError";
|
|
84
|
-
params: NonReducibleUnknown;
|
|
85
|
-
};
|
|
86
82
|
setLoadError: {
|
|
87
83
|
type: "setLoadError";
|
|
88
84
|
params: NonReducibleUnknown;
|
|
89
85
|
};
|
|
90
|
-
resetContext: {
|
|
91
|
-
type: "resetContext";
|
|
92
|
-
params: NonReducibleUnknown;
|
|
93
|
-
};
|
|
94
86
|
setConsentData: {
|
|
95
87
|
type: "setConsentData";
|
|
96
88
|
params: NonReducibleUnknown;
|
|
@@ -99,6 +91,14 @@ declare const consentMachine: StateMachine<ConsentContext, {
|
|
|
99
91
|
type: "toggleCheckbox";
|
|
100
92
|
params: NonReducibleUnknown;
|
|
101
93
|
};
|
|
94
|
+
clearError: {
|
|
95
|
+
type: "clearError";
|
|
96
|
+
params: NonReducibleUnknown;
|
|
97
|
+
};
|
|
98
|
+
resetContext: {
|
|
99
|
+
type: "resetContext";
|
|
100
|
+
params: NonReducibleUnknown;
|
|
101
|
+
};
|
|
102
102
|
}>, {
|
|
103
103
|
type: "canSubmit";
|
|
104
104
|
params: unknown;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as WasmUtilProvider } from "./WasmUtilProvider-0xTxgP0R.esm.js";
|
|
2
|
-
import { u as trueSightLog } from "./trueSightService-
|
|
3
|
-
import { t as SDK_VERSION } from "./sdkVersion-
|
|
4
|
-
import { C as BrowserEnvironmentProvider, S as IpifyProvider, T as SDK_PLATFORM, b as getThumbmarkId, n as getDisableIpify, r as getFingerprintEnabled, v as isBrowserSimulation, w as fingerprintSignalsReporter } from "./sessionInitializer-
|
|
2
|
+
import { u as trueSightLog } from "./trueSightService-DbFQftw_.esm.js";
|
|
3
|
+
import { t as SDK_VERSION } from "./sdkVersion-CI7AVv52.esm.js";
|
|
4
|
+
import { C as BrowserEnvironmentProvider, S as IpifyProvider, T as SDK_PLATFORM, b as getThumbmarkId, n as getDisableIpify, r as getFingerprintEnabled, v as isBrowserSimulation, w as fingerprintSignalsReporter } from "./sessionInitializer-DRIZt0ov.esm.js";
|
|
5
5
|
import { t as getParsedUserAgent } from "./getParsedUserAgent-DhQPeKqw.esm.js";
|
|
6
6
|
import { t as getUserAgent } from "./getBrowser-CBiibsL-.esm.js";
|
|
7
7
|
import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-DPK7qGgo.esm.js";
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-
|
|
2
|
-
import { t as createDynamicFormsManager } from "./dynamicFormsManager-
|
|
1
|
+
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-C5qxUfFI.esm.js";
|
|
2
|
+
import { t as createDynamicFormsManager } from "./dynamicFormsManager-x1-nyxYL.esm.js";
|
|
3
3
|
export { createDynamicFormsManager, dynamicFormsMachine };
|
|
@@ -3,7 +3,7 @@ import { t as createManagerInstrumentation } from "./events-CP3yOzAl.esm.js";
|
|
|
3
3
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
4
4
|
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
5
5
|
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
6
|
-
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-
|
|
6
|
+
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-C5qxUfFI.esm.js";
|
|
7
7
|
//#region src/modules/dynamic-forms/dynamicFormsActor.ts
|
|
8
8
|
function createDynamicFormsActor(options) {
|
|
9
9
|
return createActor(dynamicFormsMachine, { input: { config: options.config } }).start();
|
package/dist/{dynamicFormsStateMachine-B1yHlrU8.esm.js → dynamicFormsStateMachine-C5qxUfFI.esm.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as api, u as endpoints } from "./api-CZpuJuZl.esm.js";
|
|
2
|
-
import { i as toIncodeApiError, r as isServerError, t as IncodeApiError } from "./apiError-
|
|
2
|
+
import { i as toIncodeApiError, r as isServerError, t as IncodeApiError } from "./apiError-BGLJwanM.esm.js";
|
|
3
3
|
import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
4
4
|
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
5
5
|
import { t as isoDateToMs } from "./dateUtils-CvG0FvK8.esm.js";
|
package/dist/ekyb.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { c as ALL_COUNTRIES, f as SUPPORTED_COUNTRIES, l as DEV_ONLY_COUNTRIES, m as isSupportedCountry, o as toEkybConfig } from "./ekybUtils-Cw8Ta9Qi.esm.js";
|
|
2
|
-
import { t as ekybMachine } from "./ekybStateMachine-
|
|
3
|
-
import { t as createEkybManager } from "./ekybManager-
|
|
2
|
+
import { t as ekybMachine } from "./ekybStateMachine-CBq9G3-f.esm.js";
|
|
3
|
+
import { t as createEkybManager } from "./ekybManager-DKnI7tVY.esm.js";
|
|
4
4
|
export { ALL_COUNTRIES, DEV_ONLY_COUNTRIES, SUPPORTED_COUNTRIES, createEkybManager, ekybMachine, isSupportedCountry, toEkybConfig };
|
|
@@ -3,7 +3,7 @@ import { t as createManagerInstrumentation } from "./events-CP3yOzAl.esm.js";
|
|
|
3
3
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
4
4
|
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
5
5
|
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
6
|
-
import { t as ekybMachine } from "./ekybStateMachine-
|
|
6
|
+
import { t as ekybMachine } from "./ekybStateMachine-CBq9G3-f.esm.js";
|
|
7
7
|
//#region src/modules/ekyb/ekybActor.ts
|
|
8
8
|
/**
|
|
9
9
|
* Creates and starts an eKYB actor.
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { t as api, u as endpoints } from "./api-CZpuJuZl.esm.js";
|
|
2
|
-
import { n as getFlow } from "./flowServices-
|
|
2
|
+
import { n as getFlow } from "./flowServices-CHl7r36s.esm.js";
|
|
3
3
|
import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
4
4
|
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
5
5
|
import { a as sortModulesByOrder, c as ALL_COUNTRIES, d as FIELD_ORDER, i as requiresAddressValidation, m as isSupportedCountry, n as hasAtLeastOneAddressField, o as toEkybConfig, p as UBO_FIELD_LABELS, r as isFieldOptional, s as ADDRESS_FIELDS, u as FIELD_NAME_MAPPING } from "./ekybUtils-Cw8Ta9Qi.esm.js";
|
|
6
6
|
import { t as usStateOptions } from "./usStates-CwOQ2kAx.esm.js";
|
|
7
7
|
import { n as requiresCnpjValidation, r as validateCNPJ } from "./cnpj-Co1ottYN.esm.js";
|
|
8
8
|
import { a as getPostalCodeMaxLength, c as fillFromSuggestion, i as getPostalCodeErrorKey, l as getStreetLevelErrorForSuggestion, n as FIXED_DIGIT_POSTAL_CODE_LENGTH, o as validatePostalCode, r as formatPostalCode, s as STREET_LEVEL_REQUIRED_ERROR, t as createBundledDefinitionSource } from "./definitionSource-BHNxbuiv.esm.js";
|
|
9
|
-
import { n as checkSupport, r as DYNAMIC_REQUIRED_KEY, t as resolveForm } from "./resolveForm-
|
|
10
|
-
import { r as isFormDefinitionsEnabled, t as debounceSearchActor } from "./addressSearch-
|
|
9
|
+
import { n as checkSupport, r as DYNAMIC_REQUIRED_KEY, t as resolveForm } from "./resolveForm-DaaQSVWp.esm.js";
|
|
10
|
+
import { r as isFormDefinitionsEnabled, t as debounceSearchActor } from "./addressSearch-Rxm1K67A.esm.js";
|
|
11
11
|
//#region src/modules/ekyb/ekybValidators.ts
|
|
12
12
|
const buildPostalCodeParams = (country) => {
|
|
13
13
|
const fixedLen = FIXED_DIGIT_POSTAL_CODE_LENGTH[country];
|
|
@@ -344,7 +344,8 @@ const EKYB_SUPPORTED_IDS = {
|
|
|
344
344
|
groupRules: /* @__PURE__ */ new Set(),
|
|
345
345
|
optionLists: new Set(Object.keys(OPTION_LISTS)),
|
|
346
346
|
conditions: /* @__PURE__ */ new Set(),
|
|
347
|
-
prefillSources: /* @__PURE__ */ new Set()
|
|
347
|
+
prefillSources: /* @__PURE__ */ new Set(),
|
|
348
|
+
flags: /* @__PURE__ */ new Set()
|
|
348
349
|
};
|
|
349
350
|
/** Today's UBO actions use a fixed limit and a single collection. */
|
|
350
351
|
const UBO_COLLECTION = "ubos";
|
|
@@ -415,8 +416,10 @@ const bundled = createBundledDefinitionSource(EKYB_DEFINITIONS);
|
|
|
415
416
|
/**
|
|
416
417
|
* The resolved definition for this country and configuration, if one applies
|
|
417
418
|
* and the rollout is on. Every country has a builder today, so none is exempt.
|
|
419
|
+
* `useDefinitions` is the rollout answer the machine read once, when it was
|
|
420
|
+
* created.
|
|
418
421
|
*/
|
|
419
|
-
function selectEkybForm(config, verificationFields, country, useDefinitions
|
|
422
|
+
function selectEkybForm(config, verificationFields, country, useDefinitions) {
|
|
420
423
|
if (!useDefinitions) return void 0;
|
|
421
424
|
const context = toEkybResolveContext(config, verificationFields);
|
|
422
425
|
if (!context) return void 0;
|
package/dist/ekyc-prefill.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { a as EkycFormValues, c as EkycValidationErrors, s as EkycValidationError } from "./types-DEa3taWc.js";
|
|
2
2
|
import { a as EkycPrefillFieldDef, c as EkycPrefillModuleConfig, i as EkycPrefillErrorKind, l as EkycPrefillServedField, n as EkycPrefillConfigField, s as EkycPrefillInputFormat, t as EkycPrefillConfig } from "./types-B-PIc0en.js";
|
|
3
|
-
import { a as EkycPrefillFormState, c as EkycPrefillManager, d as EkycPrefillSubmittingState, f as createEkycPrefillManager, h as ekycPrefillMachine, i as EkycPrefillFinishedState, l as EkycPrefillMisconfiguredState, n as EkycPrefillClosedState, o as EkycPrefillIdleState, r as EkycPrefillErrorState, s as EkycPrefillLimitReachedState, t as EkycPrefillAnyOfState, u as EkycPrefillState } from "./ekycPrefillManager-
|
|
3
|
+
import { a as EkycPrefillFormState, c as EkycPrefillManager, d as EkycPrefillSubmittingState, f as createEkycPrefillManager, h as ekycPrefillMachine, i as EkycPrefillFinishedState, l as EkycPrefillMisconfiguredState, n as EkycPrefillClosedState, o as EkycPrefillIdleState, r as EkycPrefillErrorState, s as EkycPrefillLimitReachedState, t as EkycPrefillAnyOfState, u as EkycPrefillState } from "./ekycPrefillManager-DOTl3Y2w.js";
|
|
4
4
|
//#region src/modules/ekyc-prefill/ekycPrefillConfig.d.ts
|
|
5
5
|
/**
|
|
6
6
|
* Normalizes the served `EKYC_PREFILL` configuration. Idempotent, so a
|
package/dist/ekyc-prefill.esm.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { i as toEkycPrefillConfig, t as ekycPrefillMachine } from "./ekycPrefillStateMachine-
|
|
2
|
-
import { t as createEkycPrefillManager } from "./ekycPrefillManager-
|
|
1
|
+
import { i as toEkycPrefillConfig, t as ekycPrefillMachine } from "./ekycPrefillStateMachine-Cdpa9saV.esm.js";
|
|
2
|
+
import { t as createEkycPrefillManager } from "./ekycPrefillManager-BnKbAmJu.esm.js";
|
|
3
3
|
export { createEkycPrefillManager, ekycPrefillMachine, toEkycPrefillConfig };
|
package/dist/ekyc.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as ekycMachine } from "./ekycStateMachine-
|
|
2
|
-
import { l as toEkycConfig } from "./ekycUtils-
|
|
3
|
-
import { t as createEkycManager } from "./ekycManager-
|
|
1
|
+
import { t as ekycMachine } from "./ekycStateMachine-C--4YSib.esm.js";
|
|
2
|
+
import { l as toEkycConfig } from "./ekycUtils-Cp9M-bBI.esm.js";
|
|
3
|
+
import { t as createEkycManager } from "./ekycManager-BWOKhg0A.esm.js";
|
|
4
4
|
export { createEkycManager, ekycMachine, toEkycConfig };
|
|
@@ -3,7 +3,7 @@ import { t as createManagerInstrumentation } from "./events-CP3yOzAl.esm.js";
|
|
|
3
3
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
4
4
|
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
5
5
|
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
6
|
-
import { i as isStepValid, n as buildEkycSteps, r as clampStepIndex, t as ekycMachine } from "./ekycStateMachine-
|
|
6
|
+
import { i as isStepValid, n as buildEkycSteps, r as clampStepIndex, t as ekycMachine } from "./ekycStateMachine-C--4YSib.esm.js";
|
|
7
7
|
//#region src/modules/ekyc/ekycActor.ts
|
|
8
8
|
/**
|
|
9
9
|
* Creates and starts an eKYC actor.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
2
2
|
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
3
|
-
import { n as isAnyOfMissing, r as validateForm, t as ekycPrefillMachine } from "./ekycPrefillStateMachine-
|
|
3
|
+
import { n as isAnyOfMissing, r as validateForm, t as ekycPrefillMachine } from "./ekycPrefillStateMachine-Cdpa9saV.esm.js";
|
|
4
4
|
//#region src/modules/ekyc-prefill/ekycPrefillActor.ts
|
|
5
5
|
/** Creates and starts an eKYC Pre-fill actor, idle until `LOAD`. */
|
|
6
6
|
function createEkycPrefillActor(options = {}) {
|
|
@@ -45,6 +45,10 @@ declare const ekycPrefillMachine: StateMachine<EkycPrefillContext, {
|
|
|
45
45
|
id: string | undefined;
|
|
46
46
|
};
|
|
47
47
|
}>, Values<{
|
|
48
|
+
clearError: {
|
|
49
|
+
type: "clearError";
|
|
50
|
+
params: NonReducibleUnknown;
|
|
51
|
+
};
|
|
48
52
|
applyForm: {
|
|
49
53
|
type: "applyForm";
|
|
50
54
|
params: NonReducibleUnknown;
|
|
@@ -77,11 +81,11 @@ declare const ekycPrefillMachine: StateMachine<EkycPrefillContext, {
|
|
|
77
81
|
type: "setSubmitError";
|
|
78
82
|
params: NonReducibleUnknown;
|
|
79
83
|
};
|
|
80
|
-
clearError: {
|
|
81
|
-
type: "clearError";
|
|
82
|
-
params: NonReducibleUnknown;
|
|
83
|
-
};
|
|
84
84
|
}>, Values<{
|
|
85
|
+
isValid: {
|
|
86
|
+
type: "isValid";
|
|
87
|
+
params: unknown;
|
|
88
|
+
};
|
|
85
89
|
phoneRulesFailed: {
|
|
86
90
|
type: "phoneRulesFailed";
|
|
87
91
|
params: unknown;
|
|
@@ -94,10 +98,6 @@ declare const ekycPrefillMachine: StateMachine<EkycPrefillContext, {
|
|
|
94
98
|
type: "canRender";
|
|
95
99
|
params: unknown;
|
|
96
100
|
};
|
|
97
|
-
isValid: {
|
|
98
|
-
type: "isValid";
|
|
99
|
-
params: unknown;
|
|
100
|
-
};
|
|
101
101
|
isBadRequest: {
|
|
102
102
|
type: "isBadRequest";
|
|
103
103
|
params: unknown;
|
package/dist/{ekycPrefillStateMachine-BPHvBhTF.esm.js → ekycPrefillStateMachine-Cdpa9saV.esm.js}
RENAMED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { t as api, u as endpoints } from "./api-CZpuJuZl.esm.js";
|
|
2
|
-
import { i as toIncodeApiError } from "./apiError-
|
|
2
|
+
import { i as toIncodeApiError } from "./apiError-BGLJwanM.esm.js";
|
|
3
3
|
import { n as loadPhoneValidation } from "./phoneValidation-OggtfjRt.esm.js";
|
|
4
4
|
import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
5
5
|
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
6
6
|
import { t as createBundledDefinitionSource } from "./definitionSource-BHNxbuiv.esm.js";
|
|
7
|
-
import { n as checkSupport, t as resolveForm } from "./resolveForm-
|
|
7
|
+
import { n as checkSupport, t as resolveForm } from "./resolveForm-DaaQSVWp.esm.js";
|
|
8
8
|
import { t as formatPhoneE164 } from "./phoneFormat-DEpESpz2.esm.js";
|
|
9
|
-
import { i as cleanName, l as validateEkycField, n as projectRules, o as formatSSN } from "./ekycRules-
|
|
9
|
+
import { i as cleanName, l as validateEkycField, n as projectRules, o as formatSSN } from "./ekycRules-B0OocyvM.esm.js";
|
|
10
10
|
import { t as formatCPF } from "./idOcrCpfUtils-Nfln1Psb.esm.js";
|
|
11
11
|
//#region src/modules/ekyc-prefill/ekycPrefillConfig.ts
|
|
12
12
|
const isString = (value) => typeof value === "string" && value !== "";
|
|
@@ -180,7 +180,8 @@ const EKYC_PREFILL_SUPPORTED_IDS = {
|
|
|
180
180
|
groupRules: /* @__PURE__ */ new Set(["oneOfRequired"]),
|
|
181
181
|
optionLists: /* @__PURE__ */ new Set(),
|
|
182
182
|
conditions: /* @__PURE__ */ new Set(),
|
|
183
|
-
prefillSources: /* @__PURE__ */ new Set()
|
|
183
|
+
prefillSources: /* @__PURE__ */ new Set(),
|
|
184
|
+
flags: /* @__PURE__ */ new Set()
|
|
184
185
|
};
|
|
185
186
|
const bundled = createBundledDefinitionSource(EKYCPREFILL_DEFINITIONS);
|
|
186
187
|
/** The catalog definition for a country, or `undefined` when it has none. */
|
|
@@ -2,7 +2,7 @@ import { t as getLocalIsoDate } from "./IBrowserEnvironmentCapability-D7JG7ML3.e
|
|
|
2
2
|
import { n as loadPhoneValidation, t as getPhoneValidation } from "./phoneValidation-OggtfjRt.esm.js";
|
|
3
3
|
import { a as isValidRut, i as isValidInDrivingLicenseNumber, n as isValidEsDni, r as isValidFiPersonalIdentityCode, t as isValidCurp } from "./nationalIds-B91f_RuB.esm.js";
|
|
4
4
|
import { a as getPostalCodeMaxLength, i as getPostalCodeErrorKey, n as FIXED_DIGIT_POSTAL_CODE_LENGTH, o as validatePostalCode, s as STREET_LEVEL_REQUIRED_ERROR } from "./definitionSource-BHNxbuiv.esm.js";
|
|
5
|
-
import { r as DYNAMIC_REQUIRED_KEY } from "./resolveForm-
|
|
5
|
+
import { r as DYNAMIC_REQUIRED_KEY } from "./resolveForm-DaaQSVWp.esm.js";
|
|
6
6
|
import { t as validateCPF } from "./cpf-BIADjddF.esm.js";
|
|
7
7
|
import { a as hasNameCharacters, c as isWithinMaxAge, i as hasDigitCount, l as matchesCharTemplate, o as isInNumericRange, r as hasAllowedCharacters, s as isNotFuture } from "./phoneFormat-DEpESpz2.esm.js";
|
|
8
8
|
//#region src/modules/ekyc/ekycValidators.ts
|
|
@@ -4,12 +4,12 @@ import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
|
4
4
|
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
5
5
|
import { n as usStates, t as usStateOptions } from "./usStates-CwOQ2kAx.esm.js";
|
|
6
6
|
import { a as getPostalCodeMaxLength, c as fillFromSuggestion, l as getStreetLevelErrorForSuggestion, r as formatPostalCode, t as createBundledDefinitionSource } from "./definitionSource-BHNxbuiv.esm.js";
|
|
7
|
-
import { n as checkSupport, t as resolveForm } from "./resolveForm-
|
|
8
|
-
import { n as searchAddress, r as isFormDefinitionsEnabled, t as debounceSearchActor } from "./addressSearch-
|
|
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-
|
|
7
|
+
import { n as checkSupport, t as resolveForm } from "./resolveForm-DaaQSVWp.esm.js";
|
|
8
|
+
import { n as searchAddress, r as isFormDefinitionsEnabled, t as debounceSearchActor } from "./addressSearch-Rxm1K67A.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-Cp9M-bBI.esm.js";
|
|
10
10
|
import { t as DateFormattingProvider } from "./DateFormattingProvider-DPq9zco-.esm.js";
|
|
11
11
|
import { n as CHARACTER_CLASSES, t as formatPhoneE164 } from "./phoneFormat-DEpESpz2.esm.js";
|
|
12
|
-
import { a as formatPhoneNational, c as oneOfRequiredErrorKey, i as cleanName, l as validateEkycField, n as projectRules, o as formatSSN, s as loadPhoneValidator, t as RULES, u as validateEkycForm } from "./ekycRules-
|
|
12
|
+
import { a as formatPhoneNational, c as oneOfRequiredErrorKey, i as cleanName, l as validateEkycField, n as projectRules, o as formatSSN, s as loadPhoneValidator, t as RULES, u as validateEkycForm } from "./ekycRules-B0OocyvM.esm.js";
|
|
13
13
|
//#region src/internal/forms/resolvePrefill.ts
|
|
14
14
|
const DISPLAY_MODES = /* @__PURE__ */ new Set([
|
|
15
15
|
"editable",
|
|
@@ -6521,7 +6521,8 @@ const EKYC_SUPPORTED_IDS = {
|
|
|
6521
6521
|
groupRules: /* @__PURE__ */ new Set(["oneOfRequired", "rulesByOption"]),
|
|
6522
6522
|
optionLists: new Set(Object.keys(OPTION_LISTS)),
|
|
6523
6523
|
conditions: /* @__PURE__ */ new Set(["fieldFilled"]),
|
|
6524
|
-
prefillSources: new Set(EKYC_PREFILL_SOURCES)
|
|
6524
|
+
prefillSources: new Set(EKYC_PREFILL_SOURCES),
|
|
6525
|
+
flags: /* @__PURE__ */ new Set()
|
|
6525
6526
|
};
|
|
6526
6527
|
/** Today's field shape only flags `middleName` as optional. */
|
|
6527
6528
|
const LEGACY_OPTIONAL_FLAG = /* @__PURE__ */ new Set(["middleName"]);
|
|
@@ -6661,9 +6662,10 @@ const MIGRATED_EKYC_SOURCES = /* @__PURE__ */ new Set([
|
|
|
6661
6662
|
]);
|
|
6662
6663
|
/**
|
|
6663
6664
|
* The bundled definition for exactly this source and country, if it is
|
|
6664
|
-
* projectable and the rollout lets this source use it.
|
|
6665
|
+
* projectable and the rollout lets this source use it. `useDefinitions` is
|
|
6666
|
+
* the rollout answer the machine read once, when it was created.
|
|
6665
6667
|
*/
|
|
6666
|
-
function selectEkycDefinition(source, country, useDefinitions
|
|
6668
|
+
function selectEkycDefinition(source, country, useDefinitions) {
|
|
6667
6669
|
if (!useDefinitions && MIGRATED_EKYC_SOURCES.has(source)) return void 0;
|
|
6668
6670
|
const definition = bundled.select({
|
|
6669
6671
|
module: "ekyc",
|
|
@@ -6843,9 +6845,10 @@ function applyOneOfRequiredGroups(defs, configSource) {
|
|
|
6843
6845
|
* this country reads it (`packages/form-definitions/catalog/ekyc`) when the
|
|
6844
6846
|
* rollout allows (`selectEkycDefinition`); any other pair keeps the current
|
|
6845
6847
|
* builder. `useDefinitions` is the rollout answer the machine read once, when
|
|
6846
|
-
* it was created, so it can't change mid-session.
|
|
6848
|
+
* it was created, so it can't change mid-session. The options are named so a
|
|
6849
|
+
* caller can't swap the two booleans.
|
|
6847
6850
|
*/
|
|
6848
|
-
function buildFieldDefs(fields, configSource, country, enablePhoneRisk = false
|
|
6851
|
+
function buildFieldDefs(fields, configSource, country, { useDefinitions, enablePhoneRisk = false }) {
|
|
6849
6852
|
const definition = selectEkycDefinition(configSource, country, useDefinitions);
|
|
6850
6853
|
if (definition) return projectEkycFields(resolveForm(definition, toEkycResolveContext(fields, enablePhoneRisk)), fields, country);
|
|
6851
6854
|
return legacyBuildFieldDefs(fields, configSource, country, enablePhoneRisk);
|
|
@@ -7349,7 +7352,10 @@ const ekycMachine = setup({
|
|
|
7349
7352
|
verificationFields: vFields,
|
|
7350
7353
|
configSource: source,
|
|
7351
7354
|
fieldsCountry: country,
|
|
7352
|
-
fields: buildFieldDefs(vFields, source, country,
|
|
7355
|
+
fields: buildFieldDefs(vFields, source, country, {
|
|
7356
|
+
useDefinitions: context._formDefinitions,
|
|
7357
|
+
enablePhoneRisk: config.enablePhoneRisk
|
|
7358
|
+
}),
|
|
7353
7359
|
displayModes: getEKYCDisplayModes(config)
|
|
7354
7360
|
};
|
|
7355
7361
|
}),
|
|
@@ -7532,7 +7538,10 @@ const ekycMachine = setup({
|
|
|
7532
7538
|
verificationFields: vFields,
|
|
7533
7539
|
configSource: source,
|
|
7534
7540
|
fieldsCountry: country,
|
|
7535
|
-
fields: buildFieldDefs(vFields, source, country,
|
|
7541
|
+
fields: buildFieldDefs(vFields, source, country, {
|
|
7542
|
+
useDefinitions: context._formDefinitions,
|
|
7543
|
+
enablePhoneRisk: context.config.enablePhoneRisk
|
|
7544
|
+
})
|
|
7536
7545
|
};
|
|
7537
7546
|
})
|
|
7538
7547
|
},
|
|
@@ -1281,12 +1281,6 @@ const MIDDLE_NAME_SOURCES = [
|
|
|
1281
1281
|
"CL_1",
|
|
1282
1282
|
"INDIA_PAN"
|
|
1283
1283
|
];
|
|
1284
|
-
const PHONE_RISK_ADDONS = [
|
|
1285
|
-
"phoneCheck",
|
|
1286
|
-
"advancedPhoneCheck",
|
|
1287
|
-
"phoneProfile"
|
|
1288
|
-
];
|
|
1289
|
-
const EMAIL_RISK_ADDONS = ["emailCheck"];
|
|
1290
1284
|
/** Risk addons that replace a `RISK_ADDONS_ONLY` source with their own. */
|
|
1291
1285
|
const RISK_ADDON_SOURCE_OVERRIDES = { phoneProfile: "PHONE_PROFILE" };
|
|
1292
1286
|
/** Sources whose submit payload must not carry `countryCode`. */
|
|
@@ -1315,9 +1309,6 @@ function mapToEKYCvalue(field) {
|
|
|
1315
1309
|
default: return "user_input";
|
|
1316
1310
|
}
|
|
1317
1311
|
}
|
|
1318
|
-
function hasRiskAddon(riskAddons, allowedAddons) {
|
|
1319
|
-
return allowedAddons.some((addon) => riskAddons?.includes(addon));
|
|
1320
|
-
}
|
|
1321
1312
|
/**
|
|
1322
1313
|
* Resolves the source sent to the backend. A `RISK_ADDONS_ONLY` source is
|
|
1323
1314
|
* replaced by the first configured addon that defines its own source
|
|
@@ -1327,54 +1318,59 @@ function resolveEkycSource(source, riskAddons) {
|
|
|
1327
1318
|
if (source !== "RISK_ADDONS_ONLY") return source;
|
|
1328
1319
|
return riskAddons?.map((addon) => RISK_ADDON_SOURCE_OVERRIDES[addon]).find(Boolean) ?? source;
|
|
1329
1320
|
}
|
|
1330
|
-
/**
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
const shouldRenderEmail = config.checkEmail || hasEmailRiskAddon;
|
|
1335
|
-
const shouldRenderPhone = config.checkPhone || hasPhoneRiskAddon;
|
|
1336
|
-
return {
|
|
1337
|
-
name: config.checkName ? mapToEKYCvalue(config.nameSource ?? "") : false,
|
|
1338
|
-
SSN: config.checkSsn ? mapToEKYCvalue(config.ssnSource ?? "") : false,
|
|
1339
|
-
address: config.checkAddress ? mapToEKYCvalue(config.addressSource ?? "") : false,
|
|
1340
|
-
"date of birth": config.checkDob ? mapToEKYCvalue(config.dobSource ?? "") : false,
|
|
1341
|
-
email: shouldRenderEmail ? mapToEKYCvalue(config.emailSource ?? "") : false,
|
|
1342
|
-
phone: shouldRenderPhone ? mapToEKYCvalue(config.phoneSource ?? "") : false,
|
|
1343
|
-
nationality: config.checkNationality ? mapToEKYCvalue(config.nationalitySource ?? "") : false,
|
|
1344
|
-
dlNumber: config.checkDlNumber ? mapToEKYCvalue(config.dlNumberSource ?? "") : false,
|
|
1345
|
-
dlState: config.checkDlState ? mapToEKYCvalue(config.dlStateSource ?? "") : false,
|
|
1346
|
-
dlExpireAt: config.checkDlExpireAt ? mapToEKYCvalue(config.dlExpireAtSource ?? "") : false,
|
|
1347
|
-
last4SSN: config.checkLast4SSN ? mapToEKYCvalue(config.last4SSNSource ?? "") : false,
|
|
1348
|
-
idNum: config.checkIdNum ? mapToEKYCvalue(config.idNumSource ?? "") : false,
|
|
1349
|
-
idNum1: config.checkIdNum1 ? mapToEKYCvalue(config.idNum1Source ?? "") : false,
|
|
1350
|
-
gender: config.checkGender ? mapToEKYCvalue(config.genderSource ?? "") : false,
|
|
1351
|
-
panNumber: config.checkPanNumber ? mapToEKYCvalue(config.panNumberSource ?? "") : false,
|
|
1352
|
-
idType: config.checkIdType ? mapToEKYCvalue(config.idTypeSource ?? "") : false,
|
|
1353
|
-
issueDate: config.checkIssueDate ? mapToEKYCvalue(config.issueDateSource ?? "") : false,
|
|
1354
|
-
fileNumber: config.checkFileNumber ? mapToEKYCvalue(config.fileNumberSource ?? "") : false
|
|
1355
|
-
};
|
|
1356
|
-
}
|
|
1357
|
-
/** eKYC group id → the key `getEKYCFields` sets in `EkycVerificationFields`. */
|
|
1321
|
+
/**
|
|
1322
|
+
* eKYC group id → the key `getEKYCFields` sets in `EkycVerificationFields`, in
|
|
1323
|
+
* the order `getEKYCFields` has always written them.
|
|
1324
|
+
*/
|
|
1358
1325
|
const EKYC_GROUP_KEYS = {
|
|
1359
1326
|
name: "name",
|
|
1327
|
+
ssn: "SSN",
|
|
1328
|
+
address: "address",
|
|
1360
1329
|
dateOfBirth: "date of birth",
|
|
1361
1330
|
email: "email",
|
|
1362
1331
|
phone: "phone",
|
|
1363
|
-
|
|
1364
|
-
|
|
1332
|
+
nationality: "nationality",
|
|
1333
|
+
dlNumber: "dlNumber",
|
|
1334
|
+
dlState: "dlState",
|
|
1335
|
+
dlExpireAt: "dlExpireAt",
|
|
1365
1336
|
last4SSN: "last4SSN",
|
|
1366
1337
|
idNumber: "idNum",
|
|
1367
1338
|
idNumber1: "idNum1",
|
|
1368
|
-
nationality: "nationality",
|
|
1369
1339
|
gender: "gender",
|
|
1370
1340
|
panNumber: "panNumber",
|
|
1371
|
-
dlNumber: "dlNumber",
|
|
1372
|
-
dlState: "dlState",
|
|
1373
|
-
dlExpireAt: "dlExpireAt",
|
|
1374
1341
|
idType: "idType",
|
|
1375
1342
|
issueDate: "issueDate",
|
|
1376
1343
|
fileNumber: "fileNumber"
|
|
1377
1344
|
};
|
|
1345
|
+
const RISK_ADDON_PREFIX = "riskAddon:";
|
|
1346
|
+
/**
|
|
1347
|
+
* Each verification field's switches, from its vocabulary group: the config
|
|
1348
|
+
* flags and risk add-ons that turn it on (`enabledBy`, where a risk add-on is
|
|
1349
|
+
* `riskAddon:<id>`), and the config key that names its source (`sourceKey`).
|
|
1350
|
+
*/
|
|
1351
|
+
const FIELD_SWITCHES = Object.entries(EKYC_GROUP_KEYS).flatMap(([id, field]) => {
|
|
1352
|
+
const group = VOCABULARY.entries.find((entry) => entry.type === "group" && entry.id === id);
|
|
1353
|
+
if (!group?.enabledBy?.length || !group.sourceKey) throw new Error(`eKYC group "${id}" has no enabledBy or sourceKey in the vocabulary`);
|
|
1354
|
+
const enabledBy = group.enabledBy;
|
|
1355
|
+
return [{
|
|
1356
|
+
field,
|
|
1357
|
+
flags: enabledBy.filter((flag) => !flag.startsWith(RISK_ADDON_PREFIX)),
|
|
1358
|
+
riskAddons: enabledBy.filter((flag) => flag.startsWith(RISK_ADDON_PREFIX)).map((flag) => flag.slice(10)),
|
|
1359
|
+
sourceKey: group.sourceKey
|
|
1360
|
+
}];
|
|
1361
|
+
});
|
|
1362
|
+
/** Maps raw backend module config to a field-source mapping */
|
|
1363
|
+
function getEKYCFields(config) {
|
|
1364
|
+
const values = config;
|
|
1365
|
+
const riskAddons = config.riskAddons;
|
|
1366
|
+
const fields = {};
|
|
1367
|
+
for (const switches of FIELD_SWITCHES) {
|
|
1368
|
+
const on = switches.flags.some((flag) => values[flag]) || switches.riskAddons.some((addon) => riskAddons?.includes(addon));
|
|
1369
|
+
const source = values[switches.sourceKey];
|
|
1370
|
+
fields[switches.field] = on ? mapToEKYCvalue(typeof source === "string" ? source : "") : false;
|
|
1371
|
+
}
|
|
1372
|
+
return fields;
|
|
1373
|
+
}
|
|
1378
1374
|
/**
|
|
1379
1375
|
* Each verification field's display-mode key in module configuration, from
|
|
1380
1376
|
* the vocabulary's `displayModeKey` on its group.
|
|
@@ -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-DVp6ECFq.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 };
|
|
@@ -2,7 +2,7 @@ import { n as eventModuleNames } from "./types-DYYMdAGv.esm.js";
|
|
|
2
2
|
import { t as api, u as endpoints } from "./api-CZpuJuZl.esm.js";
|
|
3
3
|
import { t as createManagerInstrumentation } from "./events-CP3yOzAl.esm.js";
|
|
4
4
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
5
|
-
import { i as toIncodeApiError, n as isConnectivityError, t as IncodeApiError } from "./apiError-
|
|
5
|
+
import { i as toIncodeApiError, n as isConnectivityError, t as IncodeApiError } from "./apiError-BGLJwanM.esm.js";
|
|
6
6
|
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
7
7
|
import { i as assign, s as createActor, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
8
8
|
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
package/dist/extensibility.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ import "./StreamCanvasCapture-ixfy84ys.js";
|
|
|
12
12
|
import { i as createIdCaptureManagerFromActor, n as IdCaptureManager, q as WasmUtilProvider, r as IdCaptureState, y as IdCaptureActor } from "./idCaptureManager-BRYJflLy.js";
|
|
13
13
|
import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-aZzFZo6V.js";
|
|
14
14
|
import { a as CertificateIssuanceActor, i as createCertificateIssuanceManagerFromActor, n as CertificateIssuanceState, t as CertificateIssuanceManager } from "./certificateIssuanceManager-BcYhxO63.js";
|
|
15
|
-
import { a as ConsentActor, i as createConsentManagerFromActor, n as ConsentState, t as ConsentManager } from "./consentManager-
|
|
15
|
+
import { a as ConsentActor, i as createConsentManagerFromActor, n as ConsentState, t as ConsentManager } from "./consentManager-B2F_VeAo.js";
|
|
16
16
|
import { a as CrossDocumentDataMatchActor, i as createCrossDocumentDataMatchManagerFromActor, n as CrossDocumentDataMatchState, t as CrossDocumentDataMatchManager } from "./crossDocumentDataMatchManager-crZcIUSY.js";
|
|
17
17
|
import { a as CurpValidationActor, i as createCurpValidationManagerFromActor, n as CurpValidationState, t as CurpValidationManager } from "./curpValidationManager-BfF2Qa5b.js";
|
|
18
18
|
import { a as createCustomFieldsManagerFromActor, n as CustomFieldsState, o as CustomFieldsActor, t as CustomFieldsManager } from "./customFieldsManager-CdWTbsew.js";
|
|
@@ -20,7 +20,7 @@ import { a as CustomWatchlistActor, i as createCustomWatchlistManagerFromActor,
|
|
|
20
20
|
import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, t as DocumentCaptureManager } from "./documentCaptureManager-BZBmcOKI.js";
|
|
21
21
|
import { a as DynamicFormsActor, i as createDynamicFormsManagerFromActor, n as DynamicFormsState, t as DynamicFormsManager } from "./dynamicFormsManager-C45pTncO.js";
|
|
22
22
|
import { a as EkybActor, i as createEkybManagerFromActor, n as EkybState, t as EkybManager } from "./ekybManager-BflWuTe4.js";
|
|
23
|
-
import { c as EkycPrefillManager, m as EkycPrefillActor, p as createEkycPrefillManagerFromActor, u as EkycPrefillState } from "./ekycPrefillManager-
|
|
23
|
+
import { c as EkycPrefillManager, m as EkycPrefillActor, p as createEkycPrefillManagerFromActor, u as EkycPrefillState } from "./ekycPrefillManager-DOTl3Y2w.js";
|
|
24
24
|
import { i as createEkycManagerFromActor, n as EkycState, o as EkycActor, t as EkycManager } from "./ekycManager-BKVQazAb.js";
|
|
25
25
|
import { a as EmailActor, i as createEmailManagerFromActor, n as EmailState, t as EmailManager } from "./emailManager-pM7ZPuMa.js";
|
|
26
26
|
import { i as createSelfieManagerFromActor, n as SelfieState, t as SelfieManager } from "./selfieManager-KLP66c1d.js";
|
|
@@ -30,7 +30,7 @@ import { a as WatchlistActor, i as createWatchlistManagerFromActor, n as Watchli
|
|
|
30
30
|
import { i as WatchlistForBusinessState, o as createWatchlistForBusinessManagerFromActor, r as WatchlistForBusinessManager, s as WatchlistForBusinessActor } from "./watchlistForBusinessManager-l7ZERQcV.js";
|
|
31
31
|
import { a as IdentityReuseActor, i as createIdentityReuseManagerFromActor, n as IdentityReuseState, t as IdentityReuseManager } from "./identityReuseManager-CZ-qJ_Aa.js";
|
|
32
32
|
import { a as FieldComparisonActor, i as createFieldComparisonManagerFromActor, n as FieldComparisonState, t as FieldComparisonManager } from "./fieldComparisonManager-mFOHRhVd.js";
|
|
33
|
-
import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, t as MandatoryConsentManager } from "./mandatoryConsentManager-
|
|
33
|
+
import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, t as MandatoryConsentManager } from "./mandatoryConsentManager-DgNuWWQw.js";
|
|
34
34
|
import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, t as IdOcrManager } from "./idOcrManager-C0C7lFGd.js";
|
|
35
35
|
import { a as RedirectToMobileActor, i as createRedirectToMobileManagerFromActor, n as RedirectToMobileState, t as RedirectToMobileManager } from "./redirectToMobileManager-pT6FiPE7.js";
|
|
36
36
|
import { a as createSignatureManagerFromActor, n as SignatureManager, o as SignatureActor, r as SignatureState } from "./signatureManager-daT_8fj_.js";
|