@incodetech/core 0.0.0-dev-20260930-d1feeeff → 0.0.0-dev-20260930-90072124
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-DP-KOMOR.esm.js → FaceDetectionProvider-D7EgGetD.esm.js} +4 -4
- package/dist/ae-signature.esm.js +1 -1
- package/dist/{apiError-D1JzGdm_.esm.js → apiError-ruTAo5oZ.esm.js} +1 -1
- package/dist/authentication.d.ts +3 -3
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-CvbfpOId.esm.js → authenticationManager--SnXz-Qz.esm.js} +3 -3
- package/dist/{authenticationManager-C_cujb6s.d.ts → authenticationManager-BtyZRAoe.d.ts} +1 -1
- package/dist/{authenticationStateMachine-BrMgj_C7.esm.js → authenticationStateMachine-DYTXxUeE.esm.js} +2 -2
- package/dist/consent.d.ts +1 -1
- package/dist/{consentManager-CTdFloVJ.d.ts → consentManager-Cv_0QKLD.d.ts} +1 -1
- package/dist/curp-validation.d.ts +1 -1
- package/dist/{curpValidationManager-kDsAANm7.d.ts → curpValidationManager-C7qzg_Cm.d.ts} +1 -1
- package/dist/{deepsightLoader-B8p0iO0G.esm.js → deepsightLoader-DxRjy2gm.esm.js} +3 -3
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-DOBelkeF.esm.js → dynamicFormsManager-BMVl_P07.esm.js} +1 -1
- package/dist/{dynamicFormsStateMachine-DxSM2Xcq.esm.js → dynamicFormsStateMachine-BeUeM9aA.esm.js} +1 -1
- package/dist/ekyb.d.ts +4 -4
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-BaVhKFz3.d.ts → ekybManager-BaZ_7CEu.d.ts} +2 -2
- package/dist/{ekybManager-Do-KrbR6.esm.js → ekybManager-DZcR8AX4.esm.js} +1 -1
- package/dist/{ekybStateMachine-BeROYkFL.esm.js → ekybStateMachine-BN1PQlBt.esm.js} +1 -1
- package/dist/ekyc.d.ts +2 -2
- package/dist/ekyc.esm.js +3 -3
- package/dist/{ekycManager-CSNRbrBe.d.ts → ekycManager-DW-ynodd.d.ts} +1 -1
- package/dist/{ekycManager-DExptxPG.esm.js → ekycManager-pYMEF56-.esm.js} +1 -1
- package/dist/{ekycStateMachine-C8dlTXeT.esm.js → ekycStateMachine-DtTIJSz_.esm.js} +32 -7
- package/dist/{ekycUtils-BpizZaIl.esm.js → ekycUtils-3FIL6m1x.esm.js} +33 -6
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-BOyK_Soz.esm.js → electronicSignatureManager-DUOTGmlj.esm.js} +1 -1
- package/dist/extensibility.d.ts +12 -12
- package/dist/extensibility.esm.js +11 -11
- package/dist/{faceCaptureManagerFactory-fzEcJA3d.esm.js → faceCaptureManagerFactory-Q4xJZa5O.esm.js} +1 -1
- package/dist/{faceCaptureManagerFactory-Bf4gmpsC.d.ts → faceCaptureManagerFactory-tA3wd0gP.d.ts} +3 -3
- package/dist/{faceCaptureSetup-CLWzDSJy.esm.js → faceCaptureSetup-CezT30XZ.esm.js} +3 -3
- package/dist/{feature-management-CvglK2eB.esm.js → feature-management-DfMz4_nA.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 +7 -7
- package/dist/flow.esm.js +3 -3
- package/dist/{flowCompletionService-Cqvm8bI9.esm.js → flowCompletionService-NlcdEZS9.esm.js} +1 -1
- package/dist/{flowServices-Cp5VWdn6.esm.js → flowServices-B3m-Sh8x.esm.js} +5 -5
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-CUwpnK-t.esm.js → geolocationManager-CEZumJZc.esm.js} +1 -1
- package/dist/{geolocationStateMachine-BQRtQzO2.esm.js → geolocationStateMachine-bQIEHJTm.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 +1 -1
- package/dist/id-selfie-flow.esm.js +7 -7
- package/dist/id.d.ts +2 -2
- package/dist/id.esm.js +3 -3
- package/dist/{idCaptureDefaults-D8KpmgJk.esm.js → idCaptureDefaults-DJXGqhdJ.esm.js} +1 -1
- package/dist/{idCaptureManager-C0qwu2Bj.esm.js → idCaptureManager-C8eI691-.esm.js} +3 -3
- package/dist/{idCaptureManager-BtH7mD0W.d.ts → idCaptureManager-DHfSJbYv.d.ts} +2 -2
- package/dist/{idCaptureServices-CuwA7Rpd.esm.js → idCaptureServices-CYLDzPYX.esm.js} +3 -3
- package/dist/{idCaptureStateMachine-v93gWAc1.esm.js → idCaptureStateMachine-B3SU9TvX.esm.js} +9 -9
- package/dist/{idOcrManager-BTdHlJ9D.d.ts → idOcrManager-DT3kPIB3.d.ts} +1 -1
- package/dist/{index-D1Lm3D23.d.ts → index-DI1L7lKK.d.ts} +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/mandatory-consent.d.ts +2 -2
- package/dist/{mandatoryConsentManager-CLBF_y3k.d.ts → mandatoryConsentManager-B6glP66e.d.ts} +2 -2
- package/dist/qe-signature.esm.js +1 -1
- package/dist/{runChildModule-Dal0oGfy.esm.js → runChildModule-D3Dlqhco.esm.js} +1 -1
- package/dist/{sdkVersion-CGonTr-F.esm.js → sdkVersion-DMdEDBaH.esm.js} +1 -1
- package/dist/selfie.d.ts +3 -3
- package/dist/selfie.esm.js +5 -5
- package/dist/{selfieManager-BmYhj3aE.esm.js → selfieManager-BtragiV_.esm.js} +3 -3
- package/dist/{selfieManager-BQRdCEGx.d.ts → selfieManager-Chxm9JRK.d.ts} +1 -1
- package/dist/{selfieStateMachine-DAGOJo3Y.esm.js → selfieStateMachine-x6yG4UH-.esm.js} +2 -2
- package/dist/{session-Dojh2hoe.esm.js → session-Dbl188i2.esm.js} +3 -3
- package/dist/session.d.ts +1 -1
- package/dist/session.esm.js +4 -4
- package/dist/{sessionInitializer-BADGLy7r.esm.js → sessionInitializer-CXqqCeR3.esm.js} +3 -3
- package/dist/{setup-BYp_UBWY.esm.js → setup-CwKoox5p.esm.js} +4 -4
- package/dist/{trueSightService-D3ZyEA57.esm.js → trueSightService-tAGH_jvD.esm.js} +1 -1
- package/dist/{types-DCYnayP-.d.ts → types-0L-eFDmr.d.ts} +1 -1
- package/dist/types-Be6MuAYF.d.ts +6 -0
- package/dist/{types-BxbEr-0N.d.ts → types-BvLo3U4u.d.ts} +3 -0
- package/dist/{types-BNqkP6RF2.d.ts → types-CrZKPInf2.d.ts} +1 -1
- package/dist/{types-CqheLTam.d.ts → types-CsKLnlNL.d.ts} +1 -1
- package/dist/{types-e0tp2C1t.d.ts → types-D6Vvbiz9.d.ts} +2 -2
- package/dist/{types-B8aLmVz7.d.ts → types-DovOQmax.d.ts} +1 -1
- package/dist/{types-c9fgRH1w.d.ts → types-QR85Tpur.d.ts} +1 -1
- package/dist/video-selfie.d.ts +1 -1
- package/dist/video-selfie.esm.js +3 -3
- package/dist/{videoSelfieCameraWarmer-ZC_pJQ_p.esm.js → videoSelfieCameraWarmer-CuTleylk.esm.js} +3 -3
- package/dist/{videoSelfieStepDetector-C4dCC5mZ.d.ts → videoSelfieStepDetector-CL33zKtO.d.ts} +2 -2
- package/dist/wasm.esm.js +2 -2
- package/dist/workflow.d.ts +1 -1
- package/dist/workflow.esm.js +16 -16
- package/package.json +1 -1
- package/dist/types-BG1FQKeS.d.ts +0 -6
package/dist/{FaceDetectionProvider-DP-KOMOR.esm.js → FaceDetectionProvider-D7EgGetD.esm.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { c as trueSightHintTransition, r as noteTrueSightCaptureActivity } from "./trueSightService-
|
|
1
|
+
import { c as trueSightHintTransition, r as noteTrueSightCaptureActivity } from "./trueSightService-tAGH_jvD.esm.js";
|
|
2
2
|
import { s as wasmRuntime } from "./warmup-DLq_t-Zu.esm.js";
|
|
3
3
|
import { i as BaseWasmProvider } from "./safeStorage-Q_iUpxa8.esm.js";
|
|
4
|
-
import { t as ensureWasmPipelines } from "./setup-
|
|
5
|
-
import "./sessionInitializer-
|
|
4
|
+
import { t as ensureWasmPipelines } from "./setup-CwKoox5p.esm.js";
|
|
5
|
+
import "./sessionInitializer-CXqqCeR3.esm.js";
|
|
6
6
|
import { t as addDeviceStats } from "./stats-Dz3XWA64.esm.js";
|
|
7
7
|
import { c as isIPhone14OrHigher, i as isDesktop } from "./platform-DkcRc9JV.esm.js";
|
|
8
8
|
import { i as requestCameraAccess, o as stopCameraStream, r as getCameraReacquisitionConstraints } from "./camera-sIa9ceW2.esm.js";
|
|
@@ -156,7 +156,7 @@ function startDetection(params) {
|
|
|
156
156
|
};
|
|
157
157
|
}
|
|
158
158
|
async function initializeDeepsightSession(options) {
|
|
159
|
-
const { loadDeepsightSession } = await import("./deepsightLoader-
|
|
159
|
+
const { loadDeepsightSession } = await import("./deepsightLoader-DxRjy2gm.esm.js");
|
|
160
160
|
return loadDeepsightSession({
|
|
161
161
|
ds: options.ds,
|
|
162
162
|
storage: options.storage
|
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-DUOTGmlj.esm.js";
|
|
2
2
|
//#region src/modules/ae-signature/index.ts
|
|
3
3
|
function createAeSignatureManager(options) {
|
|
4
4
|
return createElectronicSignatureManager({ config: {
|
package/dist/authentication.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as authenticationMachine, S as createAuthenticationActor, b as AuthenticationActor, x as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-
|
|
2
|
-
import { t as AuthenticationConfig } from "./types-
|
|
3
|
-
import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-
|
|
1
|
+
import { C as authenticationMachine, S as createAuthenticationActor, b as AuthenticationActor, x as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-tA3wd0gP.js";
|
|
2
|
+
import { t as AuthenticationConfig } from "./types-Be6MuAYF.js";
|
|
3
|
+
import { n as AuthenticationState, r as createAuthenticationManager, t as AuthenticationManager } from "./authenticationManager-BtyZRAoe.js";
|
|
4
4
|
export { type AuthenticationActor, type AuthenticationConfig, type AuthenticationManager, type AuthenticationState, type CreateAuthenticationActorOptions, authenticationMachine, createAuthenticationActor, createAuthenticationManager };
|
|
@@ -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-DYTXxUeE.esm.js";
|
|
2
|
+
import { r as createAuthenticationActor, t as createAuthenticationManager } from "./authenticationManager--SnXz-Qz.esm.js";
|
|
3
3
|
export { authenticationMachine, createAuthenticationActor, createAuthenticationManager };
|
package/dist/{authenticationManager-CvbfpOId.esm.js → authenticationManager--SnXz-Qz.esm.js}
RENAMED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { r as WasmUtilProvider } from "./safeStorage-Q_iUpxa8.esm.js";
|
|
2
|
-
import { l as BrowserStorageProvider } from "./setup-
|
|
2
|
+
import { l as BrowserStorageProvider } from "./setup-CwKoox5p.esm.js";
|
|
3
3
|
import { n as eventModuleNames } from "./events-ijlbX_Wx.esm.js";
|
|
4
4
|
import { s as createActor } from "./xstate.esm-Bg3FuvIs.esm.js";
|
|
5
|
-
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-
|
|
6
|
-
import { t as authenticationMachine } from "./authenticationStateMachine-
|
|
5
|
+
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-Q4xJZa5O.esm.js";
|
|
6
|
+
import { t as authenticationMachine } from "./authenticationStateMachine-DYTXxUeE.esm.js";
|
|
7
7
|
//#region src/modules/authentication/authenticationActor.ts
|
|
8
8
|
function createAuthenticationActor(options) {
|
|
9
9
|
const dependencies = options.dependencies ?? {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as Manager } from "./Manager-C9T5amUN.js";
|
|
2
2
|
import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
|
|
3
|
-
import { b as AuthenticationActor, n as FaceCaptureManagerState, t as FaceCaptureManager, x as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-
|
|
3
|
+
import { b as AuthenticationActor, n as FaceCaptureManagerState, t as FaceCaptureManager, x as CreateAuthenticationActorOptions } from "./faceCaptureManagerFactory-tA3wd0gP.js";
|
|
4
4
|
//#region src/modules/authentication/authenticationManager.d.ts
|
|
5
5
|
type AuthenticationState = FaceCaptureManagerState;
|
|
6
6
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i as assign } from "./xstate.esm-Bg3FuvIs.esm.js";
|
|
2
2
|
import { n as fromPromise } from "./xstate-actors.esm-Ccyzgxj1.esm.js";
|
|
3
|
-
import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
4
|
-
import { c as isOnDeviceMode } from "./FaceDetectionProvider-
|
|
3
|
+
import { n as createDefaultProtectedFaceControllerActor, t as faceCaptureMachine } from "./faceCaptureSetup-CezT30XZ.esm.js";
|
|
4
|
+
import { c as isOnDeviceMode } from "./FaceDetectionProvider-D7EgGetD.esm.js";
|
|
5
5
|
import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
|
|
6
6
|
import { o as PROTECTED_CAPTURE_TARGET } from "./createCameraCycleOwnership-26-cuXnc.esm.js";
|
|
7
7
|
//#region src/modules/authentication/authenticationErrorUtils.ts
|
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-Cv_0QKLD.js";
|
|
2
2
|
export { type ConsentActor, type ConsentCheckbox, type ConsentConfig, type ConsentManager, type ConsentState, consentMachine, createConsentManager, createConsentManagerFromActor };
|
|
@@ -96,7 +96,7 @@ declare const consentMachine: StateMachine<ConsentContext, {
|
|
|
96
96
|
}>, {
|
|
97
97
|
type: "canSubmit";
|
|
98
98
|
params: unknown;
|
|
99
|
-
}, never, "error" | "idle" | "finished" | "
|
|
99
|
+
}, never, "error" | "idle" | "finished" | "submitting" | "loading" | "display", string, ConsentInput, NonReducibleUnknown, EventObject, MetaObject, {
|
|
100
100
|
readonly id: "consent";
|
|
101
101
|
readonly initial: "idle";
|
|
102
102
|
readonly context: ({ input }: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as CurpValidationActor, c as CurpValidationErrors, d as GenerateCurpFieldDef, f as GenerateCurpFieldType, i as createCurpValidationManagerFromActor, l as CurpValidationRule, n as CurpValidationState, o as curpValidationMachine, p as GenerateCurpForm, r as createCurpValidationManager, s as CurpValidationConfig, t as CurpValidationManager, u as EnterCurpFieldDef } from "./curpValidationManager-
|
|
1
|
+
import { a as CurpValidationActor, c as CurpValidationErrors, d as GenerateCurpFieldDef, f as GenerateCurpFieldType, i as createCurpValidationManagerFromActor, l as CurpValidationRule, n as CurpValidationState, o as curpValidationMachine, p as GenerateCurpForm, r as createCurpValidationManager, s as CurpValidationConfig, t as CurpValidationManager, u as EnterCurpFieldDef } from "./curpValidationManager-C7qzg_Cm.js";
|
|
2
2
|
//#region src/modules/curp-validation/curpValidationUtils.d.ts
|
|
3
3
|
type MexicanState = {
|
|
4
4
|
value: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i as ActorRefFrom } from "./spawn-D9jgw9pW.js";
|
|
2
2
|
import { t as Manager } from "./Manager-C9T5amUN.js";
|
|
3
3
|
import "./Actor-DpTj5PFb.js";
|
|
4
|
-
import { i as FlowModuleConfig } from "./types-
|
|
4
|
+
import { i as FlowModuleConfig } from "./types-D6Vvbiz9.js";
|
|
5
5
|
//#region src/modules/curp-validation/types.d.ts
|
|
6
6
|
type CurpValidationConfig = FlowModuleConfig['CURP_VALIDATION'] & {
|
|
7
7
|
/** Maximum validation retries before auto-advancing. @default 1 */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { l as trueSightLog } from "./trueSightService-
|
|
1
|
+
import { l as trueSightLog } from "./trueSightService-tAGH_jvD.esm.js";
|
|
2
2
|
import { r as WasmUtilProvider } from "./safeStorage-Q_iUpxa8.esm.js";
|
|
3
|
-
import { _ as IpifyProvider, b as BrowserEnvironmentProvider, h as isBrowserSimulation, n as getFingerprintEnabled, t as getDisableIpify, v as getThumbmarkId } from "./sessionInitializer-
|
|
4
|
-
import { t as SDK_VERSION } from "./sdkVersion-
|
|
3
|
+
import { _ as IpifyProvider, b as BrowserEnvironmentProvider, h as isBrowserSimulation, n as getFingerprintEnabled, t as getDisableIpify, v as getThumbmarkId } from "./sessionInitializer-CXqqCeR3.esm.js";
|
|
4
|
+
import { t as SDK_VERSION } from "./sdkVersion-DMdEDBaH.esm.js";
|
|
5
5
|
import { t as getParsedUserAgent } from "./getParsedUserAgent-B2iFDql1.esm.js";
|
|
6
6
|
import { t as getUserAgent } from "./getBrowser-CBiibsL-.esm.js";
|
|
7
7
|
import { t as setWasmDsFlagSync } from "./wasmDsFlagSync-DyNj8RY_.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-BeUeM9aA.esm.js";
|
|
2
|
+
import { t as createDynamicFormsManager } from "./dynamicFormsManager-BMVl_P07.esm.js";
|
|
3
3
|
export { createDynamicFormsManager, dynamicFormsMachine };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ijlbX_Wx.esm.js";
|
|
2
2
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
3
|
import { s as createActor, u as createManager } from "./xstate.esm-Bg3FuvIs.esm.js";
|
|
4
|
-
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-
|
|
4
|
+
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-BeUeM9aA.esm.js";
|
|
5
5
|
//#region src/modules/dynamic-forms/dynamicFormsActor.ts
|
|
6
6
|
function createDynamicFormsActor(options) {
|
|
7
7
|
return createActor(dynamicFormsMachine, { input: { config: options.config } }).start();
|
package/dist/{dynamicFormsStateMachine-DxSM2Xcq.esm.js → dynamicFormsStateMachine-BeUeM9aA.esm.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
2
2
|
import { t as endpoints } from "./endpoints-Bs3D8B_G.esm.js";
|
|
3
|
-
import { i as toIncodeApiError, r as isServerError, t as IncodeApiError } from "./apiError-
|
|
3
|
+
import { i as toIncodeApiError, r as isServerError, t as IncodeApiError } from "./apiError-ruTAo5oZ.esm.js";
|
|
4
4
|
import { i as assign, t as setup } from "./xstate.esm-Bg3FuvIs.esm.js";
|
|
5
5
|
import { n as fromPromise } from "./xstate-actors.esm-Ccyzgxj1.esm.js";
|
|
6
6
|
import { t as isoDateToMs } from "./dateUtils-CvG0FvK8.esm.js";
|
package/dist/ekyb.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./Manager-C9T5amUN.js";
|
|
2
|
-
import { c as AddressSuggestion } from "./types-
|
|
3
|
-
import { i as FlowModuleConfig } from "./types-
|
|
4
|
-
import { a as EkybValidationError, n as EkybCountry, o as EkybValidationErrors, r as EkybFieldDef, s as UboEntry, t as EkybConfig } from "./types-
|
|
5
|
-
import { n as EkybState, o as ekybMachine, r as createEkybManager, t as EkybManager } from "./ekybManager-
|
|
2
|
+
import { c as AddressSuggestion } from "./types-BvLo3U4u.js";
|
|
3
|
+
import { i as FlowModuleConfig } from "./types-D6Vvbiz9.js";
|
|
4
|
+
import { a as EkybValidationError, n as EkybCountry, o as EkybValidationErrors, r as EkybFieldDef, s as UboEntry, t as EkybConfig } from "./types-0L-eFDmr.js";
|
|
5
|
+
import { n as EkybState, o as ekybMachine, r as createEkybManager, t as EkybManager } from "./ekybManager-BaZ_7CEu.js";
|
|
6
6
|
//#region src/modules/ekyb/ekybServices.d.ts
|
|
7
7
|
type EkybFlowConfig = FlowModuleConfig['EKYB'];
|
|
8
8
|
//#endregion
|
package/dist/ekyb.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as isSupportedCountry, O as SUPPORTED_COUNTRIES, b as ALL_COUNTRIES, v as toEkybConfig, w as DEV_ONLY_COUNTRIES } from "./flowServices-
|
|
2
|
-
import { t as ekybMachine } from "./ekybStateMachine-
|
|
3
|
-
import { t as createEkybManager } from "./ekybManager-
|
|
1
|
+
import { A as isSupportedCountry, O as SUPPORTED_COUNTRIES, b as ALL_COUNTRIES, v as toEkybConfig, w as DEV_ONLY_COUNTRIES } from "./flowServices-B3m-Sh8x.esm.js";
|
|
2
|
+
import { t as ekybMachine } from "./ekybStateMachine-BN1PQlBt.esm.js";
|
|
3
|
+
import { t as createEkybManager } from "./ekybManager-DZcR8AX4.esm.js";
|
|
4
4
|
export { ALL_COUNTRIES, DEV_ONLY_COUNTRIES, SUPPORTED_COUNTRIES, createEkybManager, ekybMachine, isSupportedCountry, toEkybConfig };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { i as ActorRefFrom } from "./spawn-D9jgw9pW.js";
|
|
2
2
|
import { t as Manager } from "./Manager-C9T5amUN.js";
|
|
3
3
|
import "./Actor-DpTj5PFb.js";
|
|
4
|
-
import { c as AddressSuggestion } from "./types-
|
|
5
|
-
import { i as EkybFormValues, o as EkybValidationErrors, r as EkybFieldDef, s as UboEntry, t as EkybConfig } from "./types-
|
|
4
|
+
import { c as AddressSuggestion } from "./types-BvLo3U4u.js";
|
|
5
|
+
import { i as EkybFormValues, o as EkybValidationErrors, r as EkybFieldDef, s as UboEntry, t as EkybConfig } from "./types-0L-eFDmr.js";
|
|
6
6
|
//#region src/modules/ekyb/ekybStateMachine.d.ts
|
|
7
7
|
declare const ekybMachine: any;
|
|
8
8
|
type EkybMachine = typeof ekybMachine;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ijlbX_Wx.esm.js";
|
|
2
2
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
3
|
import { s as createActor, u as createManager } from "./xstate.esm-Bg3FuvIs.esm.js";
|
|
4
|
-
import { t as ekybMachine } from "./ekybStateMachine-
|
|
4
|
+
import { t as ekybMachine } from "./ekybStateMachine-BN1PQlBt.esm.js";
|
|
5
5
|
//#region src/modules/ekyb/ekybActor.ts
|
|
6
6
|
/**
|
|
7
7
|
* Creates and starts an eKYB actor.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
2
2
|
import { t as endpoints } from "./endpoints-Bs3D8B_G.esm.js";
|
|
3
|
-
import { A as isSupportedCountry, C as COUNTRIES_WITH_CNPJ_VALIDATION, D as INVALID_CNPJ_PATTERNS, E as FIELD_ORDER, S as CNPJ_SECOND_DIGIT_FACTORS, T as FIELD_NAME_MAPPING, _ as sortModulesByOrder, b as ALL_COUNTRIES, g as requiresAddressValidation, h as isFieldOptional, k as UBO_FIELD_LABELS, m as hasAtLeastOneAddressField, n as getFlow, v as toEkybConfig, x as CNPJ_FIRST_DIGIT_FACTORS, y as ADDRESS_FIELDS } from "./flowServices-
|
|
3
|
+
import { A as isSupportedCountry, C as COUNTRIES_WITH_CNPJ_VALIDATION, D as INVALID_CNPJ_PATTERNS, E as FIELD_ORDER, S as CNPJ_SECOND_DIGIT_FACTORS, T as FIELD_NAME_MAPPING, _ as sortModulesByOrder, b as ALL_COUNTRIES, g as requiresAddressValidation, h as isFieldOptional, k as UBO_FIELD_LABELS, m as hasAtLeastOneAddressField, n as getFlow, v as toEkybConfig, x as CNPJ_FIRST_DIGIT_FACTORS, y as ADDRESS_FIELDS } from "./flowServices-B3m-Sh8x.esm.js";
|
|
4
4
|
import { i as assign, t as setup } from "./xstate.esm-Bg3FuvIs.esm.js";
|
|
5
5
|
import { n as fromPromise } from "./xstate-actors.esm-Ccyzgxj1.esm.js";
|
|
6
6
|
import { a as getPostalCodeMaxLength, c as STREET_LEVEL_REQUIRED_ERROR, d as usStateOptions, i as getPostalCodeErrorKey, l as fillFromSuggestion, n as FIXED_DIGIT_POSTAL_CODE_LENGTH, o as validatePostalCode, r as formatPostalCode, s as DYNAMIC_REQUIRED_KEY, t as debounceSearchActor, u as getStreetLevelErrorForSuggestion } from "./addressSearch-CoXo7lfZ.esm.js";
|
package/dist/ekyc.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as EkycValidationError, c as AddressSuggestion, i as EkycModuleConfig, o as EkycValidationErrors, t as EkycConfig } from "./types-
|
|
2
|
-
import { n as EkycState, o as ekycMachine, r as createEkycManager, t as EkycManager } from "./ekycManager-
|
|
1
|
+
import { a as EkycValidationError, c as AddressSuggestion, i as EkycModuleConfig, o as EkycValidationErrors, t as EkycConfig } from "./types-BvLo3U4u.js";
|
|
2
|
+
import { n as EkycState, o as ekycMachine, r as createEkycManager, t as EkycManager } from "./ekycManager-DW-ynodd.js";
|
|
3
3
|
//#region src/modules/ekyc/ekycUtils.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Normalizes any supported eKYC config input into a manager-ready `EkycConfig`.
|
package/dist/ekyc.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as toEkycConfig } from "./ekycUtils-
|
|
2
|
-
import { t as ekycMachine } from "./ekycStateMachine-
|
|
3
|
-
import { t as createEkycManager } from "./ekycManager-
|
|
1
|
+
import { a as toEkycConfig } from "./ekycUtils-3FIL6m1x.esm.js";
|
|
2
|
+
import { t as ekycMachine } from "./ekycStateMachine-DtTIJSz_.esm.js";
|
|
3
|
+
import { t as createEkycManager } from "./ekycManager-pYMEF56-.esm.js";
|
|
4
4
|
export { createEkycManager, ekycMachine, toEkycConfig };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i as ActorRefFrom } from "./spawn-D9jgw9pW.js";
|
|
2
2
|
import { t as Manager } from "./Manager-C9T5amUN.js";
|
|
3
3
|
import "./Actor-DpTj5PFb.js";
|
|
4
|
-
import { c as AddressSuggestion, n as EkycFieldDef, o as EkycValidationErrors, r as EkycFormValues, t as EkycConfig } from "./types-
|
|
4
|
+
import { c as AddressSuggestion, n as EkycFieldDef, o as EkycValidationErrors, r as EkycFormValues, t as EkycConfig } from "./types-BvLo3U4u.js";
|
|
5
5
|
//#region src/modules/ekyc/ekycStateMachine.d.ts
|
|
6
6
|
declare const ekycMachine: any;
|
|
7
7
|
type EkycMachine = typeof ekycMachine;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ijlbX_Wx.esm.js";
|
|
2
2
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
3
|
import { s as createActor, u as createManager } from "./xstate.esm-Bg3FuvIs.esm.js";
|
|
4
|
-
import { t as ekycMachine } from "./ekycStateMachine-
|
|
4
|
+
import { t as ekycMachine } from "./ekycStateMachine-DtTIJSz_.esm.js";
|
|
5
5
|
//#region src/modules/ekyc/ekycActor.ts
|
|
6
6
|
/**
|
|
7
7
|
* Creates and starts an eKYC actor.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
2
2
|
import { t as endpoints } from "./endpoints-Bs3D8B_G.esm.js";
|
|
3
|
-
import { _ as
|
|
3
|
+
import { _ as STATE_CODE_HINTS, a as toEkycConfig, c as CITY_SOURCES, d as EMAIL_SOURCES, f as HOUSE_NO_SOURCES, g as POSTAL_CODE_SOURCES, h as ONE_OF_REQUIRED_GROUPS, i as resolveEkycSource, l as COUNTRY_CODE_OMITTED_SOURCES, m as NAME_SOURCES, n as getEKYCFields, o as ADDRESS_STATE_SOURCES, p as MIDDLE_NAME_SOURCES, r as isFieldOptional, s as APARTMENT_SOURCES, t as getEKYCCountry, u as COUNTRY_SELECTOR_DISABLED_SOURCES, v as STREET_SOURCES, y as TAX_ID_SOURCES } from "./ekycUtils-3FIL6m1x.esm.js";
|
|
4
4
|
import { i as assign, t as setup } from "./xstate.esm-Bg3FuvIs.esm.js";
|
|
5
5
|
import { n as fromPromise } from "./xstate-actors.esm-Ccyzgxj1.esm.js";
|
|
6
6
|
import { a as getPostalCodeMaxLength, c as STREET_LEVEL_REQUIRED_ERROR, d as usStateOptions, i as getPostalCodeErrorKey, l as fillFromSuggestion, n as FIXED_DIGIT_POSTAL_CODE_LENGTH, o as validatePostalCode, r as formatPostalCode, s as DYNAMIC_REQUIRED_KEY, t as debounceSearchActor, u as getStreetLevelErrorForSuggestion } from "./addressSearch-CoXo7lfZ.esm.js";
|
|
@@ -33,6 +33,8 @@ function validatePhone(phone, country) {
|
|
|
33
33
|
function formatPhoneE164(phone, country) {
|
|
34
34
|
return phoneValidator.formatE164(phone, country) ?? phone;
|
|
35
35
|
}
|
|
36
|
+
const ONE_OF_REQUIRED_ERROR_KEY = "verification.errors.dobOrSsnRequired";
|
|
37
|
+
const normalizeFieldValue = (value) => typeof value === "string" ? value : String(value ?? "");
|
|
36
38
|
const SSN_FORMAT_REGEX = /^\d{3}-\d{2}-\d{4}$/;
|
|
37
39
|
const EMAIL_FORMAT_REGEX = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
|
|
38
40
|
const buildPostalCodeParams = (country) => {
|
|
@@ -90,13 +92,16 @@ const createValidators = () => ({
|
|
|
90
92
|
if (rule.type !== "exactLength") return void 0;
|
|
91
93
|
if (value.trim().length === 0) return void 0;
|
|
92
94
|
return value.length === rule.length ? void 0 : { key: "verification.errors.exactly10Characters" };
|
|
95
|
+
},
|
|
96
|
+
oneOfRequired: (_value, rule, _field, values) => {
|
|
97
|
+
if (rule.type !== "oneOfRequired") return void 0;
|
|
98
|
+
return rule.fields.some((name) => normalizeFieldValue(values[name]).trim().length > 0) ? void 0 : { key: ONE_OF_REQUIRED_ERROR_KEY };
|
|
93
99
|
}
|
|
94
100
|
});
|
|
95
|
-
const
|
|
96
|
-
const evaluateRules = (value, rules, field, validators) => {
|
|
101
|
+
const evaluateRules = (value, rules, field, values, validators) => {
|
|
97
102
|
if (!rules) return void 0;
|
|
98
103
|
for (const rule of rules) {
|
|
99
|
-
const error = validators[rule.type](value, rule, field);
|
|
104
|
+
const error = validators[rule.type](value, rule, field, values);
|
|
100
105
|
if (error) return error;
|
|
101
106
|
}
|
|
102
107
|
};
|
|
@@ -104,7 +109,7 @@ function validateEkycForm(values, fields) {
|
|
|
104
109
|
const validators = createValidators();
|
|
105
110
|
return fields.reduce((errors, field) => {
|
|
106
111
|
const value = normalizeFieldValue(values[field.name]);
|
|
107
|
-
const error = evaluateRules(value, field.validation, field, validators);
|
|
112
|
+
const error = evaluateRules(value, field.validation, field, values, validators);
|
|
108
113
|
if (error) errors[field.name] = error;
|
|
109
114
|
return errors;
|
|
110
115
|
}, {});
|
|
@@ -114,7 +119,7 @@ function validateEkycField(values, fieldName, fields) {
|
|
|
114
119
|
if (!field) return void 0;
|
|
115
120
|
const validators = createValidators();
|
|
116
121
|
const value = normalizeFieldValue(values[field.name]);
|
|
117
|
-
return evaluateRules(value, field.validation, field, validators);
|
|
122
|
+
return evaluateRules(value, field.validation, field, values, validators);
|
|
118
123
|
}
|
|
119
124
|
//#endregion
|
|
120
125
|
//#region src/modules/ekyc/ekycActions.ts
|
|
@@ -140,6 +145,16 @@ function buildValidationRules(field, country, configSource) {
|
|
|
140
145
|
});
|
|
141
146
|
return rules;
|
|
142
147
|
}
|
|
148
|
+
function applyOneOfRequiredGroups(defs, configSource) {
|
|
149
|
+
for (const group of ONE_OF_REQUIRED_GROUPS[configSource] ?? []) {
|
|
150
|
+
const members = defs.filter((def) => group.includes(def.name));
|
|
151
|
+
const fields = members.map((def) => def.name);
|
|
152
|
+
for (const def of members) def.validation = [{
|
|
153
|
+
type: "oneOfRequired",
|
|
154
|
+
fields
|
|
155
|
+
}, ...def.validation ?? []];
|
|
156
|
+
}
|
|
157
|
+
}
|
|
143
158
|
function buildFieldDefs(fields, configSource, country, enablePhoneRisk = false) {
|
|
144
159
|
const defs = [];
|
|
145
160
|
const add = (name, type, label, source, opts) => {
|
|
@@ -222,6 +237,10 @@ function buildFieldDefs(fields, configSource, country, enablePhoneRisk = false)
|
|
|
222
237
|
if (!addrSource) return;
|
|
223
238
|
if (HOUSE_NO_SOURCES.includes(configSource)) add("houseNo", "text", "verification.labels.houseNo", addrSource, { section: "address" });
|
|
224
239
|
if (STREET_SOURCES.includes(configSource)) add("street", "text", "verification.labels.street", addrSource, { section: "address" });
|
|
240
|
+
if (APARTMENT_SOURCES.includes(configSource)) add("apartment", "text", "verification.labels.apartment", addrSource, {
|
|
241
|
+
section: "address",
|
|
242
|
+
placeholder: "verification.placeholder.apartment"
|
|
243
|
+
});
|
|
225
244
|
if (CITY_SOURCES.includes(configSource)) add("city", "text", "verification.labels.city", addrSource, { section: "address" });
|
|
226
245
|
if (ADDRESS_STATE_SOURCES.includes(configSource)) add("state", country === "US" ? "dropdown" : "text", country === "US" ? "verification.labels.chooseState" : "verification.labels.state", addrSource, {
|
|
227
246
|
section: "address",
|
|
@@ -254,6 +273,7 @@ function buildFieldDefs(fields, configSource, country, enablePhoneRisk = false)
|
|
|
254
273
|
addAddressFields();
|
|
255
274
|
addDriversLicenseFields();
|
|
256
275
|
}
|
|
276
|
+
applyOneOfRequiredGroups(defs, configSource);
|
|
257
277
|
return defs;
|
|
258
278
|
}
|
|
259
279
|
function applyPrefill(fields, ocrData, otpStatus, _country) {
|
|
@@ -496,9 +516,14 @@ const ekycMachine = setup({
|
|
|
496
516
|
clearFieldValidationError: assign(({ context, event }) => {
|
|
497
517
|
if (event.type !== "DATA_CHANGED") return {};
|
|
498
518
|
const errs = context.validationErrors;
|
|
499
|
-
if (!errs
|
|
519
|
+
if (!errs) return {};
|
|
500
520
|
const next = { ...errs };
|
|
501
521
|
delete next[event.name];
|
|
522
|
+
const oneOfRule = context.fields.find((f) => f.name === event.name)?.validation?.find((rule) => rule.type === "oneOfRequired");
|
|
523
|
+
if (oneOfRule?.type === "oneOfRequired") {
|
|
524
|
+
for (const sibling of oneOfRule.fields) if (next[sibling]?.key === "verification.errors.dobOrSsnRequired") delete next[sibling];
|
|
525
|
+
}
|
|
526
|
+
if (Object.keys(next).length === Object.keys(errs).length) return {};
|
|
502
527
|
return { validationErrors: Object.keys(next).length > 0 ? next : void 0 };
|
|
503
528
|
}),
|
|
504
529
|
validateFormField: assign(({ context, event }) => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
//#region src/modules/ekyc/ekycConsts.ts
|
|
2
|
-
const COUNTRY_SELECTOR_DISABLED_SOURCES = ["UK_VOTER_REGISTER"];
|
|
2
|
+
const COUNTRY_SELECTOR_DISABLED_SOURCES = ["UK_VOTER_REGISTER", "US_CREDIT_TELCO"];
|
|
3
3
|
const STATE_CODE_HINTS = {
|
|
4
4
|
US: "CA, NY",
|
|
5
5
|
CA: "ON, QC",
|
|
@@ -13,6 +13,7 @@ const ADDRESS_FIELDS = [
|
|
|
13
13
|
"address",
|
|
14
14
|
"houseNo",
|
|
15
15
|
"street",
|
|
16
|
+
"apartment",
|
|
16
17
|
"address2",
|
|
17
18
|
"city",
|
|
18
19
|
"state",
|
|
@@ -23,19 +24,39 @@ const DRIVERS_LICENSE_FIELDS = [
|
|
|
23
24
|
"dlState",
|
|
24
25
|
"dlExpireAt"
|
|
25
26
|
];
|
|
26
|
-
const DOB_OPTIONAL_SOURCES = [
|
|
27
|
-
|
|
27
|
+
const DOB_OPTIONAL_SOURCES = [
|
|
28
|
+
"US_TELCO_1",
|
|
29
|
+
"US_CREDIT_TELCO",
|
|
30
|
+
"UK_VOTER_REGISTER"
|
|
31
|
+
];
|
|
32
|
+
const ADDRESS_OPTIONAL_SOURCES = [
|
|
33
|
+
"US_TELCO_1",
|
|
34
|
+
"US_CREDIT_TELCO",
|
|
35
|
+
"UK_VOTER_REGISTER"
|
|
36
|
+
];
|
|
37
|
+
const STREET_OPTIONAL_SOURCES = ["US_CREDIT_TELCO"];
|
|
38
|
+
const SSN_OPTIONAL_SOURCES = ["US_CREDIT_TELCO"];
|
|
28
39
|
const LAST4SSN_OPTIONAL_SOURCES = ["US_TELCO_1"];
|
|
29
40
|
const DRIVERS_LICENSE_OPTIONAL_SOURCES = ["US_TELCO_1"];
|
|
30
41
|
const EMAIL_SOURCES = ["US_TELCO_1", "US_CREDIT_BUREAU_1"];
|
|
31
42
|
const EMAIL_OPTIONAL_SOURCES = ["US_TELCO_1"];
|
|
32
|
-
const PHONE_OPTIONAL_SOURCES = [
|
|
43
|
+
const PHONE_OPTIONAL_SOURCES = [
|
|
44
|
+
"CA_RES_CREDIT",
|
|
45
|
+
"UK_VOTER_REGISTER",
|
|
46
|
+
"US_CREDIT_TELCO"
|
|
47
|
+
];
|
|
48
|
+
/**
|
|
49
|
+
* Groups of fields where at least one member must be filled. Members are
|
|
50
|
+
* individually optional; the group rule enforces the "one of" requirement.
|
|
51
|
+
*/
|
|
52
|
+
const ONE_OF_REQUIRED_GROUPS = { US_CREDIT_TELCO: [["dateOfBirth", "ssn"]] };
|
|
33
53
|
const NAME_SOURCES = [
|
|
34
54
|
"US_TELCO_1",
|
|
35
55
|
"US_TELCO_2",
|
|
36
56
|
"US_TELCO_4",
|
|
37
57
|
"US_ADDRESS_1",
|
|
38
58
|
"US_CREDIT_BUREAU_1",
|
|
59
|
+
"US_CREDIT_TELCO",
|
|
39
60
|
"US_DRIVERS_LICENSE_1",
|
|
40
61
|
"CA_RES_CREDIT",
|
|
41
62
|
"SERPRO",
|
|
@@ -58,6 +79,7 @@ const STREET_SOURCES = [
|
|
|
58
79
|
"US_TELCO_1",
|
|
59
80
|
"US_TELCO_2",
|
|
60
81
|
"US_CREDIT_BUREAU_1",
|
|
82
|
+
"US_CREDIT_TELCO",
|
|
61
83
|
"CA_RES_CREDIT",
|
|
62
84
|
"SERPRO",
|
|
63
85
|
"BR_GOVT_1",
|
|
@@ -69,6 +91,7 @@ const CITY_SOURCES = [
|
|
|
69
91
|
"US_TELCO_1",
|
|
70
92
|
"US_TELCO_2",
|
|
71
93
|
"US_CREDIT_BUREAU_1",
|
|
94
|
+
"US_CREDIT_TELCO",
|
|
72
95
|
"CA_RES_CREDIT",
|
|
73
96
|
"SERPRO",
|
|
74
97
|
"BR_GOVT_1",
|
|
@@ -80,6 +103,7 @@ const ADDRESS_STATE_SOURCES = [
|
|
|
80
103
|
"US_TELCO_1",
|
|
81
104
|
"US_TELCO_2",
|
|
82
105
|
"US_CREDIT_BUREAU_1",
|
|
106
|
+
"US_CREDIT_TELCO",
|
|
83
107
|
"US_DRIVERS_LICENSE_1",
|
|
84
108
|
"CA_RES_CREDIT",
|
|
85
109
|
"SERPRO",
|
|
@@ -91,6 +115,7 @@ const POSTAL_CODE_SOURCES = [
|
|
|
91
115
|
"US_TELCO_1",
|
|
92
116
|
"US_TELCO_2",
|
|
93
117
|
"US_CREDIT_BUREAU_1",
|
|
118
|
+
"US_CREDIT_TELCO",
|
|
94
119
|
"CA_RES_CREDIT",
|
|
95
120
|
"SERPRO",
|
|
96
121
|
"BR_GOVT_1",
|
|
@@ -98,6 +123,7 @@ const POSTAL_CODE_SOURCES = [
|
|
|
98
123
|
"ES_1",
|
|
99
124
|
"UK_VOTER_REGISTER"
|
|
100
125
|
];
|
|
126
|
+
const APARTMENT_SOURCES = ["US_CREDIT_TELCO"];
|
|
101
127
|
const TAX_ID_SOURCES = [
|
|
102
128
|
"GT_1",
|
|
103
129
|
"ES_1",
|
|
@@ -228,8 +254,9 @@ function toEkycConfig(config) {
|
|
|
228
254
|
function isFieldOptional(fieldName, configSource) {
|
|
229
255
|
if (fieldName === "middleName") return true;
|
|
230
256
|
if (fieldName === "dateOfBirth") return DOB_OPTIONAL_SOURCES.includes(configSource);
|
|
231
|
-
if (fieldName === "street") return
|
|
257
|
+
if (fieldName === "street") return STREET_OPTIONAL_SOURCES.includes(configSource);
|
|
232
258
|
if (ADDRESS_FIELDS.includes(fieldName)) return ADDRESS_OPTIONAL_SOURCES.includes(configSource);
|
|
259
|
+
if (fieldName === "ssn") return SSN_OPTIONAL_SOURCES.includes(configSource);
|
|
233
260
|
if (fieldName === "last4SSN") return LAST4SSN_OPTIONAL_SOURCES.includes(configSource);
|
|
234
261
|
if (DRIVERS_LICENSE_FIELDS.includes(fieldName)) return DRIVERS_LICENSE_OPTIONAL_SOURCES.includes(configSource);
|
|
235
262
|
if (fieldName === "email") return EMAIL_OPTIONAL_SOURCES.includes(configSource);
|
|
@@ -237,4 +264,4 @@ function isFieldOptional(fieldName, configSource) {
|
|
|
237
264
|
return false;
|
|
238
265
|
}
|
|
239
266
|
//#endregion
|
|
240
|
-
export {
|
|
267
|
+
export { STATE_CODE_HINTS as _, toEkycConfig as a, CITY_SOURCES as c, EMAIL_SOURCES as d, HOUSE_NO_SOURCES as f, POSTAL_CODE_SOURCES as g, ONE_OF_REQUIRED_GROUPS as h, resolveEkycSource as i, COUNTRY_CODE_OMITTED_SOURCES as l, NAME_SOURCES as m, getEKYCFields as n, ADDRESS_STATE_SOURCES as o, MIDDLE_NAME_SOURCES as p, isFieldOptional as r, APARTMENT_SOURCES as s, getEKYCCountry as t, COUNTRY_SELECTOR_DISABLED_SOURCES as u, STREET_SOURCES as v, TAX_ID_SOURCES as y };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as NAMIRIAL_QES_CONSENT_KEYS, c as areAllConsented, i as AE_CONSENT_KEYS, l as getConsentKeys, n as createElectronicSignatureManagerFromActor, o as NAMIRIAL_QES_PROVIDER_CODE, r as electronicSignatureMachine, s as QE_CONSENT_KEYS, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-
|
|
1
|
+
import { a as NAMIRIAL_QES_CONSENT_KEYS, c as areAllConsented, i as AE_CONSENT_KEYS, l as getConsentKeys, n as createElectronicSignatureManagerFromActor, o as NAMIRIAL_QES_PROVIDER_CODE, r as electronicSignatureMachine, s as QE_CONSENT_KEYS, t as createElectronicSignatureManager, u as getDefaultConsentChecks } from "./electronicSignatureManager-DUOTGmlj.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 { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
|
2
2
|
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ijlbX_Wx.esm.js";
|
|
3
3
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
4
4
|
import { t as endpoints } from "./endpoints-Bs3D8B_G.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-ruTAo5oZ.esm.js";
|
|
6
6
|
import { i as assign, s as createActor, t as setup, u as createManager } from "./xstate.esm-Bg3FuvIs.esm.js";
|
|
7
7
|
import { n as fromPromise } from "./xstate-actors.esm-Ccyzgxj1.esm.js";
|
|
8
8
|
import { t as externalFetch } from "./externalFetch-CEp51O83.esm.js";
|
package/dist/extensibility.d.ts
CHANGED
|
@@ -5,32 +5,32 @@ import "./Actor-DpTj5PFb.js";
|
|
|
5
5
|
import { c as ElectronicSignatureFileDataHolder } from "./types-D0gekt4U.js";
|
|
6
6
|
import { a as ElectronicSignatureActor, i as createElectronicSignatureManagerFromActor, n as ElectronicSignatureState, t as ElectronicSignatureManager } from "./electronicSignatureManager-DTSLOvKR.js";
|
|
7
7
|
import { a as AntifraudActor, i as createAntifraudManagerFromActor, n as AntifraudState, t as AntifraudManager } from "./antifraudManager-DbGCvlJs.js";
|
|
8
|
-
import { b as AuthenticationActor, c as SelfieActor, d as FaceCaptureContext, f as FaceCaptureEvent, h as ProcessFaceResponse, m as faceCaptureMachine, n as FaceCaptureManagerState, p as FaceCaptureInput, t as FaceCaptureManager, y as SendFaceImageResponse } from "./faceCaptureManagerFactory-
|
|
8
|
+
import { b as AuthenticationActor, c as SelfieActor, d as FaceCaptureContext, f as FaceCaptureEvent, h as ProcessFaceResponse, m as faceCaptureMachine, n as FaceCaptureManagerState, p as FaceCaptureInput, t as FaceCaptureManager, y as SendFaceImageResponse } from "./faceCaptureManagerFactory-tA3wd0gP.js";
|
|
9
9
|
import "./createFaceAvatar-DXgmQmQy.js";
|
|
10
10
|
import { i as IStorageCapability } from "./IWasmUtilCapability-VC40Kx9N.js";
|
|
11
11
|
import "./StreamCanvasCapture-CeBBJ_RC.js";
|
|
12
|
-
import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-
|
|
12
|
+
import { i as createAuthenticationManagerFromActor, n as AuthenticationState, t as AuthenticationManager } from "./authenticationManager-BtyZRAoe.js";
|
|
13
13
|
import { a as CertificateIssuanceActor, i as createCertificateIssuanceManagerFromActor, n as CertificateIssuanceState, t as CertificateIssuanceManager } from "./certificateIssuanceManager-Dr8A4Lgr.js";
|
|
14
|
-
import { a as ConsentActor, i as createConsentManagerFromActor, n as ConsentState, t as ConsentManager } from "./consentManager-
|
|
14
|
+
import { a as ConsentActor, i as createConsentManagerFromActor, n as ConsentState, t as ConsentManager } from "./consentManager-Cv_0QKLD.js";
|
|
15
15
|
import { a as CrossDocumentDataMatchActor, i as createCrossDocumentDataMatchManagerFromActor, n as CrossDocumentDataMatchState, t as CrossDocumentDataMatchManager } from "./crossDocumentDataMatchManager-yCWCOzcU.js";
|
|
16
|
-
import { a as CurpValidationActor, i as createCurpValidationManagerFromActor, n as CurpValidationState, t as CurpValidationManager } from "./curpValidationManager-
|
|
16
|
+
import { a as CurpValidationActor, i as createCurpValidationManagerFromActor, n as CurpValidationState, t as CurpValidationManager } from "./curpValidationManager-C7qzg_Cm.js";
|
|
17
17
|
import { a as createCustomFieldsManagerFromActor, n as CustomFieldsState, o as CustomFieldsActor, t as CustomFieldsManager } from "./customFieldsManager-CF-cO8ap.js";
|
|
18
18
|
import { a as CustomWatchlistActor, i as createCustomWatchlistManagerFromActor, n as CustomWatchlistState, t as CustomWatchlistManager } from "./customWatchlistManager-DolUswyR.js";
|
|
19
19
|
import { a as DocumentCaptureActor, i as createDocumentCaptureManagerFromActor, n as DocumentCaptureState, t as DocumentCaptureManager } from "./documentCaptureManager-C8eO0hbv.js";
|
|
20
20
|
import { a as DynamicFormsActor, i as createDynamicFormsManagerFromActor, n as DynamicFormsState, t as DynamicFormsManager } from "./dynamicFormsManager-9kwY8Bf5.js";
|
|
21
|
-
import { a as EkybActor, i as createEkybManagerFromActor, n as EkybState, t as EkybManager } from "./ekybManager-
|
|
22
|
-
import { a as EkycActor, i as createEkycManagerFromActor, n as EkycState, t as EkycManager } from "./ekycManager-
|
|
21
|
+
import { a as EkybActor, i as createEkybManagerFromActor, n as EkybState, t as EkybManager } from "./ekybManager-BaZ_7CEu.js";
|
|
22
|
+
import { a as EkycActor, i as createEkycManagerFromActor, n as EkycState, t as EkycManager } from "./ekycManager-DW-ynodd.js";
|
|
23
23
|
import { a as EmailActor, i as createEmailManagerFromActor, n as EmailState, t as EmailManager } from "./emailManager-Dy6omJVp.js";
|
|
24
|
-
import { i as createSelfieManagerFromActor, n as SelfieState, t as SelfieManager } from "./selfieManager-
|
|
25
|
-
import { i as CaptureIdResponse } from "./types-
|
|
26
|
-
import { G as WasmUtilProvider, i as createIdCaptureManagerFromActor, n as IdCaptureManager, r as IdCaptureState, v as IdCaptureActor } from "./idCaptureManager-
|
|
24
|
+
import { i as createSelfieManagerFromActor, n as SelfieState, t as SelfieManager } from "./selfieManager-Chxm9JRK.js";
|
|
25
|
+
import { i as CaptureIdResponse } from "./types-CrZKPInf2.js";
|
|
26
|
+
import { G as WasmUtilProvider, i as createIdCaptureManagerFromActor, n as IdCaptureManager, r as IdCaptureState, v as IdCaptureActor } from "./idCaptureManager-DHfSJbYv.js";
|
|
27
27
|
import { a as PhoneActor, i as createPhoneManagerFromActor, n as PhoneState, t as PhoneManager } from "./phoneManager-D4FVaENS.js";
|
|
28
28
|
import { a as WatchlistActor, i as createWatchlistManagerFromActor, n as WatchlistState, t as WatchlistManager } from "./watchlistManager-DJQOd8Pw.js";
|
|
29
29
|
import { i as WatchlistForBusinessState, l as WatchlistForBusinessActor, o as createWatchlistForBusinessManagerFromActor, r as WatchlistForBusinessManager } from "./watchlistForBusinessManager-B3GDPZrr.js";
|
|
30
30
|
import { a as IdentityReuseActor, i as createIdentityReuseManagerFromActor, n as IdentityReuseState, t as IdentityReuseManager } from "./identityReuseManager-ooAbp6Kc.js";
|
|
31
31
|
import { a as FieldComparisonActor, i as createFieldComparisonManagerFromActor, n as FieldComparisonState, t as FieldComparisonManager } from "./fieldComparisonManager-DN9b5rtc.js";
|
|
32
|
-
import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, t as MandatoryConsentManager } from "./mandatoryConsentManager-
|
|
33
|
-
import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, t as IdOcrManager } from "./idOcrManager-
|
|
32
|
+
import { a as MandatoryConsentActor, i as createMandatoryConsentManagerFromActor, n as MandatoryConsentState, t as MandatoryConsentManager } from "./mandatoryConsentManager-B6glP66e.js";
|
|
33
|
+
import { a as IdOcrActor, i as createIdOcrManagerFromActor, n as IdOcrState, t as IdOcrManager } from "./idOcrManager-DT3kPIB3.js";
|
|
34
34
|
import { a as RedirectToMobileActor, i as createRedirectToMobileManagerFromActor, n as RedirectToMobileState, t as RedirectToMobileManager } from "./redirectToMobileManager-CVsvpVbQ.js";
|
|
35
35
|
import { a as createSignatureManagerFromActor, n as SignatureManager, o as SignatureActor, r as SignatureState } from "./signatureManager-BpVt_Jv7.js";
|
|
36
36
|
import { a as GeolocationActor, i as createGeolocationManagerFromActor, n as GeolocationState, t as GeolocationManager } from "./geolocationManager-Dn24g1fl.js";
|
|
@@ -38,7 +38,7 @@ import { a as GovernmentValidationActor, i as createGovernmentValidationManagerF
|
|
|
38
38
|
import { a as IdVerificationActor, i as createIdVerificationManagerFromActor, n as IdVerificationState, t as IdVerificationManager } from "./idVerificationManager-BJapZfpy.js";
|
|
39
39
|
import { a as FaceMatchActor, i as createFaceMatchManagerFromActor, n as FaceMatchState, t as FaceMatchManager } from "./faceMatchManager-DIgG-UFS.js";
|
|
40
40
|
import { a as FiscalQrActor, i as createFiscalQrManagerFromActor, n as FiscalQrState, t as FiscalQrManager } from "./fiscalQrManager-D0Iy7EKR.js";
|
|
41
|
-
import "./types-
|
|
41
|
+
import "./types-QR85Tpur.js";
|
|
42
42
|
//#region src/modules/authentication/authenticationUploadService.d.ts
|
|
43
43
|
type AuthenticationUploadResponse = {
|
|
44
44
|
overallStatus: 'PASS' | 'FAIL';
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { r as WasmUtilProvider } from "./safeStorage-Q_iUpxa8.esm.js";
|
|
2
|
-
import { l as BrowserStorageProvider } from "./setup-
|
|
3
|
-
import { g as getFingerprint, y as getDeviceFingerprintInfo } from "./sessionInitializer-
|
|
2
|
+
import { l as BrowserStorageProvider } from "./setup-CwKoox5p.esm.js";
|
|
3
|
+
import { g as getFingerprint, y as getDeviceFingerprintInfo } from "./sessionInitializer-CXqqCeR3.esm.js";
|
|
4
4
|
import { s as createActor } from "./xstate.esm-Bg3FuvIs.esm.js";
|
|
5
5
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-Ccyzgxj1.esm.js";
|
|
6
|
-
import { n as createElectronicSignatureManagerFromActor } from "./electronicSignatureManager-
|
|
6
|
+
import { n as createElectronicSignatureManagerFromActor } from "./electronicSignatureManager-DUOTGmlj.esm.js";
|
|
7
7
|
import { n as createAntifraudManagerFromActor } from "./antifraudManager-GZ1hVKjb.esm.js";
|
|
8
|
-
import { t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
9
|
-
import { n as createAuthenticationManagerFromActor } from "./authenticationManager-
|
|
8
|
+
import { t as faceCaptureMachine } from "./faceCaptureSetup-CezT30XZ.esm.js";
|
|
9
|
+
import { n as createAuthenticationManagerFromActor } from "./authenticationManager--SnXz-Qz.esm.js";
|
|
10
10
|
import { n as createCertificateIssuanceManagerFromActor } from "./certificateIssuanceManager-J6v-R_BZ.esm.js";
|
|
11
11
|
import { n as createConsentManagerFromActor } from "./consentManager-C-G9BmH0.esm.js";
|
|
12
12
|
import { n as createCrossDocumentDataMatchManagerFromActor } from "./crossDocumentDataMatchManager-De2pPrbH.esm.js";
|
|
@@ -14,12 +14,12 @@ import { n as createCurpValidationManagerFromActor } from "./curpValidationManag
|
|
|
14
14
|
import { n as createCustomFieldsManagerFromActor } from "./customFieldsManager-Dv6q4FDh.esm.js";
|
|
15
15
|
import { n as createCustomWatchlistManagerFromActor } from "./customWatchlistManager-DEBrvDy2.esm.js";
|
|
16
16
|
import { n as createDocumentCaptureManagerFromActor } from "./documentCaptureManager-D7qUUMWK.esm.js";
|
|
17
|
-
import { n as createDynamicFormsManagerFromActor } from "./dynamicFormsManager-
|
|
18
|
-
import { n as createEkybManagerFromActor } from "./ekybManager-
|
|
19
|
-
import { n as createEkycManagerFromActor } from "./ekycManager-
|
|
17
|
+
import { n as createDynamicFormsManagerFromActor } from "./dynamicFormsManager-BMVl_P07.esm.js";
|
|
18
|
+
import { n as createEkybManagerFromActor } from "./ekybManager-DZcR8AX4.esm.js";
|
|
19
|
+
import { n as createEkycManagerFromActor } from "./ekycManager-pYMEF56-.esm.js";
|
|
20
20
|
import { n as createEmailManagerFromActor } from "./emailManager-BG1i_Sg_.esm.js";
|
|
21
|
-
import { n as createSelfieManagerFromActor } from "./selfieManager-
|
|
22
|
-
import { r as createIdCaptureManagerFromActor } from "./idCaptureManager-
|
|
21
|
+
import { n as createSelfieManagerFromActor } from "./selfieManager-BtragiV_.esm.js";
|
|
22
|
+
import { r as createIdCaptureManagerFromActor } from "./idCaptureManager-C8eI691-.esm.js";
|
|
23
23
|
import { n as createPhoneManagerFromActor } from "./phoneManager-D46pkVfg.esm.js";
|
|
24
24
|
import { n as createWatchlistManagerFromActor } from "./watchlistManager-C2fFRjfx.esm.js";
|
|
25
25
|
import { n as createWatchlistForBusinessManagerFromActor } from "./watchlistForBusinessManager-Lcvy9ZUU.esm.js";
|
|
@@ -29,7 +29,7 @@ import { n as createMandatoryConsentManagerFromActor } from "./mandatoryConsentM
|
|
|
29
29
|
import { n as createIdOcrManagerFromActor } from "./idOcrManager-rcTMBnAD.esm.js";
|
|
30
30
|
import { n as createRedirectToMobileManagerFromActor } from "./redirectToMobileManager-BV0CBEHA.esm.js";
|
|
31
31
|
import { n as createSignatureManagerFromActor } from "./signatureManager-CmIjQ-cK.esm.js";
|
|
32
|
-
import { n as createGeolocationManagerFromActor } from "./geolocationManager-
|
|
32
|
+
import { n as createGeolocationManagerFromActor } from "./geolocationManager-CEZumJZc.esm.js";
|
|
33
33
|
import { n as createGovernmentValidationManagerFromActor } from "./governmentValidationManager-BLo9Ai_v.esm.js";
|
|
34
34
|
import { n as createIdVerificationManagerFromActor } from "./idVerificationManager-BE5cnWcf.esm.js";
|
|
35
35
|
import { n as createFaceMatchManagerFromActor } from "./faceMatchManager-DmDy-g8s.esm.js";
|