@incodetech/core 0.0.0-dev-20260819-588cf821 → 0.0.0-dev-20260819-d97c25cd
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/{BrowserDiagnosticsCryptoProvider-CYEBHxM-.esm.js → BrowserDiagnosticsCryptoProvider-C1kB1eB6.esm.js} +1 -1
- package/dist/ae-signature.esm.js +1 -1
- package/dist/{apiError-DjfnJEmY.esm.js → apiError-DlY6lEte.esm.js} +1 -1
- package/dist/authentication.d.ts +3 -3
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-Djd5VRUN.esm.js → authenticationManager-C3Pdo3OC.esm.js} +2 -2
- package/dist/{authenticationManager-Bo5oW5Rh.d.ts → authenticationManager-CG7g38ad.d.ts} +1 -1
- package/dist/{authenticationStateMachine-CWI30EGE.esm.js → authenticationStateMachine-CpBOgS9i.esm.js} +2 -2
- package/dist/{backCameraStream-DtkmDQo7.esm.js → backCameraStream-D30zZBEZ.esm.js} +1 -1
- package/dist/consent.d.ts +1 -1
- package/dist/{consentManager-uhDPdU6i.d.ts → consentManager-3Pbtj-RV.d.ts} +4 -4
- package/dist/curp-validation.d.ts +1 -1
- package/dist/{curpValidationManager-BAE-uh7L.d.ts → curpValidationManager-DrMLHzVF.d.ts} +1 -1
- package/dist/{deepsightLoader-Cx7VIdZs.esm.js → deepsightLoader-Ct8Fmn7_.esm.js} +3 -3
- package/dist/device.d.ts +1 -1
- package/dist/device.esm.js +1 -1
- package/dist/document-capture.esm.js +2 -2
- package/dist/document-upload.d.ts +4 -4
- package/dist/document-upload.esm.js +1 -1
- package/dist/{documentCaptureManager-qEXTbJmQ.esm.js → documentCaptureManager-C1UC1WYh.esm.js} +1 -1
- package/dist/{documentCaptureStateMachine-DXfStru4.esm.js → documentCaptureStateMachine-CBHmgyM7.esm.js} +1 -1
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-7O0OYLKC.esm.js → dynamicFormsManager-CWXstugw.esm.js} +1 -1
- package/dist/{dynamicFormsStateMachine-BhxBhuUG.esm.js → dynamicFormsStateMachine-BN5EojBS.esm.js} +1 -1
- package/dist/ekyb.d.ts +1 -1
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-DU3ehxwx.esm.js → ekybManager-CS2eKYaZ.esm.js} +1 -1
- package/dist/{ekybStateMachine-B5r4Ovj1.esm.js → ekybStateMachine-CUbUpf93.esm.js} +1 -1
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-eINhsO8o.esm.js → electronicSignatureManager-DAV5Qd7D.esm.js} +1 -1
- package/dist/extensibility.d.ts +10 -10
- package/dist/extensibility.esm.js +12 -12
- package/dist/{faceCaptureManagerFactory-CE-6YvEi.esm.js → faceCaptureManagerFactory-CA_aJRiS.esm.js} +1 -1
- package/dist/{faceCaptureManagerFactory-C8MlI6-0.d.ts → faceCaptureManagerFactory-D6qnBVUw.d.ts} +3 -3
- package/dist/{faceCaptureSetup-DlttCnYM.esm.js → faceCaptureSetup-q_Csi0hg.esm.js} +2 -2
- package/dist/{feature-management-Cd9XIX1T.esm.js → feature-management-Cl__Mk57.esm.js} +1 -1
- package/dist/feature-management.esm.js +1 -1
- package/dist/fiscal-qr.esm.js +1 -1
- package/dist/{fiscalQrManager-CP5XlFP0.esm.js → fiscalQrManager-7UH-ZMea.esm.js} +1 -1
- package/dist/flow-events.d.ts +1 -1
- package/dist/flow.d.ts +5 -5
- package/dist/flow.esm.js +3 -3
- package/dist/{flowCompletionService-CwmhqmA6.esm.js → flowCompletionService-B0iuFfdZ.esm.js} +1 -1
- package/dist/{flowServices-BtS-fOVI.esm.js → flowServices-D6lWadVX.esm.js} +4 -4
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-BqsxPcAd.esm.js → geolocationManager-CZJwhj_d.esm.js} +1 -1
- package/dist/{geolocationStateMachine-BxXAG2Et.esm.js → geolocationStateMachine-BOH8p4nS.esm.js} +1 -1
- package/dist/{getBrowser-DNrQeL4T.esm.js → getBrowser-DmNprTMV.esm.js} +1 -0
- package/dist/government-validation.d.ts +1 -1
- package/dist/government-validation.esm.js +2 -2
- package/dist/{governmentValidationManager-DUzWUMjT.d.ts → governmentValidationManager-D02vT4yY.d.ts} +11 -44
- package/dist/governmentValidationManager-DnVUyppQ.esm.js +79 -0
- package/dist/governmentValidationStateMachine-CNzJ5UQb.esm.js +54 -0
- package/dist/home.d.ts +1 -1
- package/dist/id-selfie-flow.d.ts +1 -1
- package/dist/id-selfie-flow.esm.js +6 -6
- package/dist/id.d.ts +2 -2
- package/dist/id.esm.js +3 -3
- package/dist/{idCaptureManager-Bn1CF1jN.esm.js → idCaptureManager-CdJ5tIzZ.esm.js} +2 -2
- package/dist/{idCaptureManager-BfgptftY.d.ts → idCaptureManager-CfE4iEi0.d.ts} +2 -2
- package/dist/{idCaptureServices-CZwsPLMG.esm.js → idCaptureServices-DLNKi_EM.esm.js} +4 -4
- package/dist/{idCaptureStateMachine-CUZyF8Bl.esm.js → idCaptureStateMachine-C4UMP5JD.esm.js} +9 -9
- package/dist/{index-LHJIYIKJ.d.ts → index-LA6R9BLR.d.ts} +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/mandatory-consent.d.ts +2 -2
- package/dist/{mandatoryConsentManager-Cz98fh9O.d.ts → mandatoryConsentManager-DbGLEuuz.d.ts} +5 -5
- package/dist/{onDeviceFaceResults-B7628vP4.esm.js → onDeviceFaceResults-RJnRexzw.esm.js} +4 -4
- package/dist/personhood.d.ts +1 -1
- package/dist/personhood.esm.js +3 -3
- package/dist/qe-signature.esm.js +1 -1
- package/dist/{recordingService-D8KodYem.esm.js → recordingService-CLsBGwrX.esm.js} +1 -1
- package/dist/{runChildModule-CL2hhhUD.esm.js → runChildModule-btHrg-mD.esm.js} +1 -1
- package/dist/{sdkVersion-BHGhwczw.esm.js → sdkVersion-x6P2avb7.esm.js} +1 -1
- package/dist/selfie.d.ts +3 -3
- package/dist/selfie.esm.js +4 -4
- package/dist/{selfieManager-DDlagDor.esm.js → selfieManager-BNRQ9O-F.esm.js} +2 -2
- package/dist/{selfieManager-yz6zt2t0.d.ts → selfieManager-dki4G9tK.d.ts} +1 -1
- package/dist/{selfieStateMachine-CEZ0hvCQ.esm.js → selfieStateMachine-BCruqTSI.esm.js} +2 -2
- package/dist/{session-BDsfrJHD.esm.js → session-Bgkz0Bl9.esm.js} +4 -4
- package/dist/session.d.ts +1 -1
- package/dist/session.esm.js +4 -4
- package/dist/{sessionInitializer-BMj0ulTi.esm.js → sessionInitializer-BWxNWUni.esm.js} +4 -4
- package/dist/{setup-6Ab1eT8N.esm.js → setup-CXsJAvBD.esm.js} +5 -5
- package/dist/trueSight-CzaYWY8k.esm.js +1 -0
- package/dist/{trueSightService-CFXnK5HX.esm.js → trueSightService-C8mkify_.esm.js} +2 -2
- package/dist/{types-DNNUCM_n.d.ts → types-BqezaTnP.d.ts} +0 -2
- package/dist/{types-BNs7Klh_.d.ts → types-C6pPfQxo.d.ts} +1 -1
- package/dist/{types-DqtyPNWa.d.ts → types-D10PIjOT.d.ts} +1 -1
- package/dist/types-DQpi7nkW.d.ts +6 -0
- package/dist/{types-CaqgEfzk.d.ts → types-KeV54Tt6.d.ts} +1 -1
- package/dist/{types-rpRSIpv4.d.ts → types-isCyg__O.d.ts} +1 -1
- package/dist/video-selfie.d.ts +1 -1
- package/dist/video-selfie.esm.js +3 -3
- package/dist/{videoSelfieCameraWarmer-CEFb7dCk.esm.js → videoSelfieCameraWarmer-BwvCvHQQ.esm.js} +3 -3
- package/dist/{videoSelfieStepDetector-CcBSD8Gc.d.ts → videoSelfieStepDetector-tHovquP4.d.ts} +2 -2
- package/dist/wasm.esm.js +1 -1
- package/dist/workflow.d.ts +5 -5
- package/dist/workflow.esm.js +17 -17
- package/package.json +3 -3
- package/dist/governmentValidationManager-Dheo7fh_.esm.js +0 -123
- package/dist/governmentValidationStateMachine-BYKYUdza.esm.js +0 -226
- package/dist/trueSight-B-rervIk.esm.js +0 -1
- package/dist/types-Dm7dzIXw.d.ts +0 -6
|
@@ -2,8 +2,8 @@ import { r as WasmUtilProvider } from "./safeStorage-2nOSCCnG.esm.js";
|
|
|
2
2
|
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-C8847M9W.esm.js";
|
|
3
3
|
import { n as eventModuleNames } from "./events-DYiyoSlx.esm.js";
|
|
4
4
|
import { o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
5
|
-
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-
|
|
6
|
-
import { t as selfieMachine } from "./selfieStateMachine-
|
|
5
|
+
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-CA_aJRiS.esm.js";
|
|
6
|
+
import { t as selfieMachine } from "./selfieStateMachine-BCruqTSI.esm.js";
|
|
7
7
|
//#region src/modules/selfie/selfieActor.ts
|
|
8
8
|
function createSelfieActor(options) {
|
|
9
9
|
const dependencies = options.dependencies ?? {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as Manager } from "./Manager-CQQ99QOI.js";
|
|
2
2
|
import { t as IVisibilityObserverCapability } from "./IVisibilityObserverCapability-D4tvIB5v.js";
|
|
3
|
-
import { c as SelfieActor, n as FaceCaptureManagerState, s as CreateSelfieActorOptions, t as FaceCaptureManager } from "./faceCaptureManagerFactory-
|
|
3
|
+
import { c as SelfieActor, n as FaceCaptureManagerState, s as CreateSelfieActorOptions, t as FaceCaptureManager } from "./faceCaptureManagerFactory-D6qnBVUw.js";
|
|
4
4
|
//#region src/modules/selfie/selfieManager.d.ts
|
|
5
5
|
type SelfieState = FaceCaptureManagerState;
|
|
6
6
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as assign } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
2
2
|
import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
3
|
-
import { n as manualFaceUploadMachine, t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
4
|
-
import { i as prepareOnDeviceFaceUpload, n as isOnDeviceMode, r as postOnDeviceFaceResults, t as defaultPrepareFaceUpload } from "./onDeviceFaceResults-
|
|
3
|
+
import { n as manualFaceUploadMachine, t as faceCaptureMachine } from "./faceCaptureSetup-q_Csi0hg.esm.js";
|
|
4
|
+
import { i as prepareOnDeviceFaceUpload, n as isOnDeviceMode, r as postOnDeviceFaceResults, t as defaultPrepareFaceUpload } from "./onDeviceFaceResults-RJnRexzw.esm.js";
|
|
5
5
|
import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
|
|
6
6
|
import { a as uploadSelfie, i as uploadManualSelfie, n as validateUploadResponse, r as processFace } from "./selfieErrorUtils-ArUCoICg.esm.js";
|
|
7
7
|
//#region src/modules/selfie/selfieStateMachine.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as getApi } from "./api-Bx3gKW_y.esm.js";
|
|
2
|
-
import { h as noteSessionCreated, l as trueSightLog } from "./trueSightService-
|
|
3
|
-
import "./sessionInitializer-
|
|
2
|
+
import { h as noteSessionCreated, l as trueSightLog } from "./trueSightService-C8mkify_.esm.js";
|
|
3
|
+
import "./sessionInitializer-BWxNWUni.esm.js";
|
|
4
4
|
import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
|
|
5
|
-
import "./trueSight-
|
|
6
|
-
import { r as toIncodeApiError } from "./apiError-
|
|
5
|
+
import "./trueSight-CzaYWY8k.esm.js";
|
|
6
|
+
import { r as toIncodeApiError } from "./apiError-DlY6lEte.esm.js";
|
|
7
7
|
//#region src/internal/session/sessionService.ts
|
|
8
8
|
/**
|
|
9
9
|
* HTTP status codes the QR validation endpoint emits, keyed by their semantic
|
package/dist/session.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as DeviceFingerprintResult } from "./types-
|
|
1
|
+
import { t as DeviceFingerprintResult } from "./types-C6pPfQxo.js";
|
|
2
2
|
import { n as FinishStatus, r as GetFinishStatusFn, s as getFinishStatus } from "./flowCompletionService-BlAHsKyv.js";
|
|
3
3
|
//#region src/internal/session/sessionService.d.ts
|
|
4
4
|
type CreateSessionOptions = {
|
package/dist/session.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as initializeSession } from "./sessionInitializer-
|
|
2
|
-
import { t as IncodeApiError } from "./apiError-
|
|
3
|
-
import { a as refreshQrUrlUuid, i as createSession, n as QrValidationError, o as validateQrUuid, r as bootstrapSession, t as QR_VALIDATION_ERROR_CODES } from "./session-
|
|
4
|
-
import { n as getFinishStatus } from "./flowCompletionService-
|
|
1
|
+
import { i as initializeSession } from "./sessionInitializer-BWxNWUni.esm.js";
|
|
2
|
+
import { t as IncodeApiError } from "./apiError-DlY6lEte.esm.js";
|
|
3
|
+
import { a as refreshQrUrlUuid, i as createSession, n as QrValidationError, o as validateQrUuid, r as bootstrapSession, t as QR_VALIDATION_ERROR_CODES } from "./session-Bgkz0Bl9.esm.js";
|
|
4
|
+
import { n as getFinishStatus } from "./flowCompletionService-B0iuFfdZ.esm.js";
|
|
5
5
|
export { IncodeApiError, QR_VALIDATION_ERROR_CODES, QrValidationError, bootstrapSession, createSession, getFinishStatus, initializeSession, refreshQrUrlUuid, validateQrUuid };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { E as updateFeatureManagementUser } from "./feature-management-
|
|
1
|
+
import { E as updateFeatureManagementUser } from "./feature-management-Cl__Mk57.esm.js";
|
|
2
2
|
import { c as setToken, r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
|
|
3
|
-
import { _ as noteTokenActivated, d as fetchFeatureConfig, f as isFeatureEnabled, l as trueSightLog, m as noteEnvironment, p as resetFeatureConfigCache, s as startTrueSightCollection } from "./trueSightService-
|
|
3
|
+
import { _ as noteTokenActivated, d as fetchFeatureConfig, f as isFeatureEnabled, l as trueSightLog, m as noteEnvironment, p as resetFeatureConfigCache, s as startTrueSightCollection } from "./trueSightService-C8mkify_.esm.js";
|
|
4
4
|
import { v as addEvent, y as getAnalyticsBatcher } from "./events-DYiyoSlx.esm.js";
|
|
5
|
-
import { t as SDK_VERSION } from "./sdkVersion-
|
|
5
|
+
import { t as SDK_VERSION } from "./sdkVersion-x6P2avb7.esm.js";
|
|
6
6
|
import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
|
|
7
|
-
import "./trueSight-
|
|
7
|
+
import "./trueSight-CzaYWY8k.esm.js";
|
|
8
8
|
import { n as flushDeviceStatsQueue, r as resetDeviceStatsQueue } from "./stats-B0nFKawG.esm.js";
|
|
9
9
|
import { n as UAParser, t as getParsedUserAgent } from "./getParsedUserAgent-pJjATANs.esm.js";
|
|
10
10
|
import { a as isIOS } from "./platform-Q4r1nvWX.esm.js";
|
|
@@ -2,17 +2,17 @@ import { a as resolveWasmConfig } from "./wasmDefaults-BrwMccqW.esm.js";
|
|
|
2
2
|
import { o as setWasmOnDeviceMode, r as WasmUtilProvider, s as warmupWasm } from "./safeStorage-2nOSCCnG.esm.js";
|
|
3
3
|
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-C8847M9W.esm.js";
|
|
4
4
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
5
|
-
import { C as resetFeatureManagement, D as applyEnvironment, O as getEnvironment, S as optOutFeatureManagement, b as initializeFeatureManagement, c as resetResolvedExperiments, k as resetEnvironment, v as getIsFeatureManagementLocked, w as resetFeatureManagementProviderInstance } from "./feature-management-
|
|
5
|
+
import { C as resetFeatureManagement, D as applyEnvironment, O as getEnvironment, S as optOutFeatureManagement, b as initializeFeatureManagement, c as resetResolvedExperiments, k as resetEnvironment, v as getIsFeatureManagementLocked, w as resetFeatureManagementProviderInstance } from "./feature-management-Cl__Mk57.esm.js";
|
|
6
6
|
import { t as getTimestamp } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
|
|
7
7
|
import { a as resetApi, i as isApiConfigured, n as getApi, r as getToken, s as setHttpRequestObserver, t as api } from "./api-Bx3gKW_y.esm.js";
|
|
8
|
-
import { S as upgradeToWasmHttpClient$1, b as installFreshHttpClient, g as noteTestingSignals, l as trueSightLog, n as initializeTrueSightDiagnostics, o as resetTrueSight, t as finalizeTrueSight, u as categoryForEndpoint, x as resetHttpClientState, y as getStoredHttpConfig } from "./trueSightService-
|
|
8
|
+
import { S as upgradeToWasmHttpClient$1, b as installFreshHttpClient, g as noteTestingSignals, l as trueSightLog, n as initializeTrueSightDiagnostics, o as resetTrueSight, t as finalizeTrueSight, u as categoryForEndpoint, x as resetHttpClientState, y as getStoredHttpConfig } from "./trueSightService-C8mkify_.esm.js";
|
|
9
9
|
import { b as resetAnalyticsBatcher, c as resetExperimentAssignments, x as setAnalyticsBatcher, y as getAnalyticsBatcher } from "./events-DYiyoSlx.esm.js";
|
|
10
|
-
import { a as resetSessionInit, d as resolveStandaloneFlowPolicy, f as setStandaloneFlowPolicy, i as initializeSession, l as registerFlowPreloader, o as setClientFingerprintEnabled, s as setClientIpLookupEnabled, u as resetStandaloneFlowPolicy, v as BrowserEnvironmentProvider } from "./sessionInitializer-
|
|
10
|
+
import { a as resetSessionInit, d as resolveStandaloneFlowPolicy, f as setStandaloneFlowPolicy, i as initializeSession, l as registerFlowPreloader, o as setClientFingerprintEnabled, s as setClientIpLookupEnabled, u as resetStandaloneFlowPolicy, v as BrowserEnvironmentProvider } from "./sessionInitializer-BWxNWUni.esm.js";
|
|
11
11
|
import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
|
|
12
|
-
import "./trueSight-
|
|
12
|
+
import "./trueSight-CzaYWY8k.esm.js";
|
|
13
13
|
import { r as resetDeviceStatsQueue, t as addDeviceStats } from "./stats-B0nFKawG.esm.js";
|
|
14
14
|
import { a as resetTRI, n as initializeTRI, o as resetTRIProviderInstance } from "./tri-4RsGrIt6.esm.js";
|
|
15
|
-
import { n as preloadDashboardFlow, r as resetDashboardFlowCache } from "./flowServices-
|
|
15
|
+
import { n as preloadDashboardFlow, r as resetDashboardFlowCache } from "./flowServices-D6lWadVX.esm.js";
|
|
16
16
|
//#region ../infra/src/providers/browser/BrowserPageLifecycleProvider.ts
|
|
17
17
|
var BrowserPageLifecycleProvider = class {
|
|
18
18
|
sendBeacon(url, body, contentType = "application/json") {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./trueSightService-C8mkify_.esm.js";
|
|
@@ -2,7 +2,7 @@ import { a as setWebApiHttpTransport, i as initializeWasmWebClient, o as setupWa
|
|
|
2
2
|
import { t as getTimestamp } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
|
|
3
3
|
import { i as isApiConfigured, n as getApi, o as setClient, r as getToken, t as api } from "./api-Bx3gKW_y.esm.js";
|
|
4
4
|
import { S as subscribeEvent, n as eventModuleNames } from "./events-DYiyoSlx.esm.js";
|
|
5
|
-
import { t as SDK_VERSION } from "./sdkVersion-
|
|
5
|
+
import { t as SDK_VERSION } from "./sdkVersion-x6P2avb7.esm.js";
|
|
6
6
|
import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
|
|
7
7
|
//#region ../infra/src/http/createApi.ts
|
|
8
8
|
var FetchHttpError = class extends Error {
|
|
@@ -1320,7 +1320,7 @@ let cryptoProviderPromise = null;
|
|
|
1320
1320
|
* the service's prewarm).
|
|
1321
1321
|
*/
|
|
1322
1322
|
function loadDiagnosticsCryptoProvider() {
|
|
1323
|
-
cryptoProviderPromise ??= import("./BrowserDiagnosticsCryptoProvider-
|
|
1323
|
+
cryptoProviderPromise ??= import("./BrowserDiagnosticsCryptoProvider-C1kB1eB6.esm.js").then((module) => new module.BrowserDiagnosticsCryptoProvider());
|
|
1324
1324
|
return cryptoProviderPromise;
|
|
1325
1325
|
}
|
|
1326
1326
|
/**
|
|
@@ -183,7 +183,6 @@ type FlowModuleConfig = {
|
|
|
183
183
|
scrapingV3: boolean;
|
|
184
184
|
failUnsupportedId: boolean;
|
|
185
185
|
dataValidation: boolean;
|
|
186
|
-
backgroundExecution: boolean;
|
|
187
186
|
mockConnectionError: boolean;
|
|
188
187
|
mockUserNotFoundError: boolean;
|
|
189
188
|
mockOK: boolean;
|
|
@@ -194,7 +193,6 @@ type FlowModuleConfig = {
|
|
|
194
193
|
dataValidation: boolean;
|
|
195
194
|
faceAndDataValidation: boolean;
|
|
196
195
|
addressValidation: boolean;
|
|
197
|
-
backgroundExecution: boolean;
|
|
198
196
|
faceMatchOverrideDataScore: boolean;
|
|
199
197
|
useCroppedIdFacePhoto: boolean;
|
|
200
198
|
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { i as FlowModuleConfig } from "./types-BqezaTnP.js";
|
|
2
|
+
import { t as BaseFaceCaptureConfig } from "./types-KeV54Tt6.js";
|
|
3
|
+
//#region src/modules/authentication/types.d.ts
|
|
4
|
+
type AuthenticationConfig = FlowModuleConfig['AUTHENTICATION'] & BaseFaceCaptureConfig;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { AuthenticationConfig as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as AvatarAssetsOverrides } from "./createFaceAvatar-pUEkdk4X.js";
|
|
2
|
-
import { n as Flow, s as SelfieConcealmentOption } from "./types-
|
|
2
|
+
import { n as Flow, s as SelfieConcealmentOption } from "./types-BqezaTnP.js";
|
|
3
3
|
import { a as IRecordingCapability, i as IStorageCapability, t as IWasmUtilCapability } from "./IWasmUtilCapability-5-Pncgma.js";
|
|
4
4
|
//#region src/internal/faceCapture/types.d.ts
|
|
5
5
|
type CameraResolution = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as CameraStream } from "./camera-9wWD-pwg.js";
|
|
2
2
|
import { y as IncodeCanvas } from "./createFaceAvatar-pUEkdk4X.js";
|
|
3
|
-
import { a as RegulationTypes, n as Flow, o as TutorialIdConfig } from "./types-
|
|
3
|
+
import { a as RegulationTypes, n as Flow, o as TutorialIdConfig } from "./types-BqezaTnP.js";
|
|
4
4
|
import { a as IRecordingCapability, i as IStorageCapability, o as RecordingConnection } from "./IWasmUtilCapability-5-Pncgma.js";
|
|
5
5
|
import { t as PermissionResult } from "./types-BEwVKkLJ.js";
|
|
6
6
|
import { n as StreamCanvasCapture, t as DeepsightService } from "./deepsightService-Dr7sNZ5r.js";
|
package/dist/video-selfie.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import "./StateMachine-EDpYWy0i.js";
|
|
|
4
4
|
import "./Actor-iTq7YY48.js";
|
|
5
5
|
import { t as CameraStream } from "./camera-9wWD-pwg.js";
|
|
6
6
|
import { t as DetectionOrientation } from "./IIdCaptureCapability-DDWlQzhi.js";
|
|
7
|
-
import { a as FacingMode, i as CameraCompositor, n as VideoSelfieDetectionStatus, o as VideoSelfieConfig, r as VideoSelfieValidationFailure, s as VideoSelfieStep, t as StepDetector } from "./videoSelfieStepDetector-
|
|
7
|
+
import { a as FacingMode, i as CameraCompositor, n as VideoSelfieDetectionStatus, o as VideoSelfieConfig, r as VideoSelfieValidationFailure, s as VideoSelfieStep, t as StepDetector } from "./videoSelfieStepDetector-tHovquP4.js";
|
|
8
8
|
//#region ../infra/src/capabilities/ITimerCapability.d.ts
|
|
9
9
|
type TimerHandle = ReturnType<typeof setTimeout>;
|
|
10
10
|
type ITimerCapability = {
|
package/dist/video-selfie.esm.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { r as WasmUtilProvider } from "./safeStorage-2nOSCCnG.esm.js";
|
|
2
|
-
import { d as initiateVideoSelfieUpload, f as uploadVideoSelfiePart, l as abortVideoSelfieUpload, t as ensureWasmPipelines, u as completeVideoSelfieUpload } from "./setup-
|
|
2
|
+
import { d as initiateVideoSelfieUpload, f as uploadVideoSelfiePart, l as abortVideoSelfieUpload, t as ensureWasmPipelines, u as completeVideoSelfieUpload } from "./setup-CXsJAvBD.esm.js";
|
|
3
3
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
4
4
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
5
5
|
import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
|
|
6
|
-
import { d as videoSelfieWasmPipelines, l as facingModeForStep, u as resolveVideoSelfieSteps } from "./flowServices-
|
|
6
|
+
import { d as videoSelfieWasmPipelines, l as facingModeForStep, u as resolveVideoSelfieSteps } from "./flowServices-D6lWadVX.esm.js";
|
|
7
7
|
import { c as createManager, n as sendTo, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
8
8
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
9
9
|
import { n as getSupportedMediaRecorderMimeType } from "./mediaRecorderOptions-vXDI73LZ.esm.js";
|
|
10
|
-
import { i as createDefaultStepDetector, n as defaultAcquireCamera, o as isConnectionError, r as CameraCompositor, t as createVideoSelfieCameraWarmer } from "./videoSelfieCameraWarmer-
|
|
10
|
+
import { i as createDefaultStepDetector, n as defaultAcquireCamera, o as isConnectionError, r as CameraCompositor, t as createVideoSelfieCameraWarmer } from "./videoSelfieCameraWarmer-BwvCvHQQ.esm.js";
|
|
11
11
|
//#region ../infra/src/providers/browser/MultipartRecordingProvider.ts
|
|
12
12
|
/**
|
|
13
13
|
* How often `MediaRecorder` hands us buffered data (incremental blobs).
|
package/dist/{videoSelfieCameraWarmer-CEFb7dCk.esm.js → videoSelfieCameraWarmer-BwvCvHQQ.esm.js}
RENAMED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
2
2
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
3
3
|
import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
|
|
4
|
-
import { l as facingModeForStep, u as resolveVideoSelfieSteps } from "./flowServices-
|
|
4
|
+
import { l as facingModeForStep, u as resolveVideoSelfieSteps } from "./flowServices-D6lWadVX.esm.js";
|
|
5
5
|
import { i as requestCameraWithFallback, r as requestCameraAccess } from "./camera-_2sXMXiF.esm.js";
|
|
6
6
|
import { t as checkPermission } from "./permissionServices-Dgtg_4Lv.esm.js";
|
|
7
|
-
import { _ as StreamCanvasProcessingSession, a as encryptSelfieImage, l as startDetection, v as FaceDetectionProvider } from "./onDeviceFaceResults-
|
|
8
|
-
import { n as getBackCameraStream } from "./backCameraStream-
|
|
7
|
+
import { _ as StreamCanvasProcessingSession, a as encryptSelfieImage, l as startDetection, v as FaceDetectionProvider } from "./onDeviceFaceResults-RJnRexzw.esm.js";
|
|
8
|
+
import { n as getBackCameraStream } from "./backCameraStream-D30zZBEZ.esm.js";
|
|
9
9
|
import { n as getWindowDimensions } from "./getDeviceClass-CeBiEayS.esm.js";
|
|
10
10
|
import { t as FACE_ERROR_CODES } from "./types-BN5RPPIZ.esm.js";
|
|
11
11
|
import { a as uploadSelfie, r as processFace, t as getFaceErrorCodeFromUnknown } from "./selfieErrorUtils-ArUCoICg.esm.js";
|
package/dist/{videoSelfieStepDetector-CcBSD8Gc.d.ts → videoSelfieStepDetector-tHovquP4.d.ts}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as CameraStream } from "./camera-9wWD-pwg.js";
|
|
2
|
-
import { i as FlowModuleConfig } from "./types-
|
|
2
|
+
import { i as FlowModuleConfig } from "./types-BqezaTnP.js";
|
|
3
3
|
import "./IWasmUtilCapability-5-Pncgma.js";
|
|
4
|
-
import { n as DetectionStatus } from "./types-
|
|
4
|
+
import { n as DetectionStatus } from "./types-KeV54Tt6.js";
|
|
5
5
|
import { t as DetectionOrientation } from "./IIdCaptureCapability-DDWlQzhi.js";
|
|
6
6
|
//#region src/modules/video-selfie/types.d.ts
|
|
7
7
|
/**
|
package/dist/wasm.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { d as WASM_MODEL_FILES, f as WASM_PIPELINE_LAZY_MODEL_NAMES, m as WASM_PIPELINE_MODEL_NAMES } from "./wasmWebClient-BzFsDjU6.esm.js";
|
|
2
2
|
import { a as resolveWasmConfig, n as buildDefaultWasmConfig, r as buildWasmConfigFromBasePath, t as DEFAULT_WASM_VERSION } from "./wasmDefaults-BrwMccqW.esm.js";
|
|
3
3
|
import { s as warmupWasm } from "./safeStorage-2nOSCCnG.esm.js";
|
|
4
|
-
import { a as resolveWasmConfigForPipelines, c as upgradeToWasmHttpClient, n as initializeWasmUtil, o as setWasmConfig, t as ensureWasmPipelines } from "./setup-
|
|
4
|
+
import { a as resolveWasmConfigForPipelines, c as upgradeToWasmHttpClient, n as initializeWasmUtil, o as setWasmConfig, t as ensureWasmPipelines } from "./setup-CXsJAvBD.esm.js";
|
|
5
5
|
//#region src/defineWasm.ts
|
|
6
6
|
function requiredModels(pipelines) {
|
|
7
7
|
const models = /* @__PURE__ */ new Set();
|
package/dist/workflow.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { t as CallbackActorLogic } from "./callback-645_omgz.js";
|
|
|
3
3
|
import "./StateMachine-EDpYWy0i.js";
|
|
4
4
|
import { t as Manager } from "./Manager-CQQ99QOI.js";
|
|
5
5
|
import { a as TotalScore, i as GetTotalScoreStatusFn, n as FinishStatus, r as GetFinishStatusFn } from "./flowCompletionService-BlAHsKyv.js";
|
|
6
|
-
import { o as FlowEventSubscribable } from "./index-
|
|
6
|
+
import { o as FlowEventSubscribable } from "./index-LA6R9BLR.js";
|
|
7
7
|
import { a as WorkflowModuleRegistry, i as RunChildModuleInput, r as RunChildModuleEvent, t as ModuleConfigMappers } from "./types-BfgmV7s7.js";
|
|
8
8
|
//#region src/modules/workflow/types.d.ts
|
|
9
9
|
/** Possible node types returned by the workflow server. */
|
|
@@ -334,6 +334,10 @@ declare const workflowMachine: StateMachine<WorkflowContext, {
|
|
|
334
334
|
id: string | undefined;
|
|
335
335
|
};
|
|
336
336
|
}>, Values<{
|
|
337
|
+
setError: {
|
|
338
|
+
type: "setError";
|
|
339
|
+
params: NonReducibleUnknown;
|
|
340
|
+
};
|
|
337
341
|
setLoadingResult: {
|
|
338
342
|
type: "setLoadingResult";
|
|
339
343
|
params: NonReducibleUnknown;
|
|
@@ -366,10 +370,6 @@ declare const workflowMachine: StateMachine<WorkflowContext, {
|
|
|
366
370
|
type: "setFinishStatusFailed";
|
|
367
371
|
params: NonReducibleUnknown;
|
|
368
372
|
};
|
|
369
|
-
setError: {
|
|
370
|
-
type: "setError";
|
|
371
|
-
params: NonReducibleUnknown;
|
|
372
|
-
};
|
|
373
373
|
setModuleError: {
|
|
374
374
|
type: "setModuleError";
|
|
375
375
|
params: NonReducibleUnknown;
|
package/dist/workflow.esm.js
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { E as updateFeatureManagementUser } from "./feature-management-
|
|
1
|
+
import { E as updateFeatureManagementUser } from "./feature-management-Cl__Mk57.esm.js";
|
|
2
2
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
3
|
-
import { l as trueSightLog } from "./trueSightService-
|
|
3
|
+
import { l as trueSightLog } from "./trueSightService-C8mkify_.esm.js";
|
|
4
4
|
import { n as eventModuleNames, o as createManagerInstrumentation, v as addEvent } from "./events-DYiyoSlx.esm.js";
|
|
5
|
-
import { i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-
|
|
5
|
+
import { i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-BWxNWUni.esm.js";
|
|
6
6
|
import { t as endpoints } from "./endpoints-CCzL3XD_.esm.js";
|
|
7
|
-
import "./trueSight-
|
|
8
|
-
import { r as toIncodeApiError } from "./apiError-
|
|
9
|
-
import { g as toEkybConfig } from "./flowServices-
|
|
7
|
+
import "./trueSight-CzaYWY8k.esm.js";
|
|
8
|
+
import { r as toIncodeApiError } from "./apiError-DlY6lEte.esm.js";
|
|
9
|
+
import { g as toEkybConfig } from "./flowServices-D6lWadVX.esm.js";
|
|
10
10
|
import { i as toEkycConfig } from "./ekycUtils-Dew1rBG0.esm.js";
|
|
11
11
|
import { c as createManager, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
12
12
|
import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
13
|
-
import { r as electronicSignatureMachine } from "./electronicSignatureManager-
|
|
13
|
+
import { r as electronicSignatureMachine } from "./electronicSignatureManager-DAV5Qd7D.esm.js";
|
|
14
14
|
import "./ae-signature.esm.js";
|
|
15
15
|
import { t as antifraudMachine } from "./antifraudStateMachine-r4VxSBS4.esm.js";
|
|
16
|
-
import { t as authenticationMachine } from "./authenticationStateMachine-
|
|
16
|
+
import { t as authenticationMachine } from "./authenticationStateMachine-CpBOgS9i.esm.js";
|
|
17
17
|
import { t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-COd7_l2T.esm.js";
|
|
18
18
|
import { t as consentMachine } from "./consentStateMachine-WD-S-Yhs.esm.js";
|
|
19
19
|
import { t as curpValidationMachine } from "./curpValidationStateMachine-9KwnqeoB.esm.js";
|
|
20
20
|
import { t as customWatchlistMachine } from "./customWatchlistStateMachine-B_ey3TFj.esm.js";
|
|
21
|
-
import { t as documentCaptureMachine } from "./documentCaptureStateMachine-
|
|
22
|
-
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-
|
|
23
|
-
import { t as ekybMachine } from "./ekybStateMachine-
|
|
21
|
+
import { t as documentCaptureMachine } from "./documentCaptureStateMachine-CBHmgyM7.esm.js";
|
|
22
|
+
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-BN5EojBS.esm.js";
|
|
23
|
+
import { t as ekybMachine } from "./ekybStateMachine-CUbUpf93.esm.js";
|
|
24
24
|
import { t as ekycMachine } from "./ekycStateMachine-DHvksnrr.esm.js";
|
|
25
25
|
import { t as emailMachine } from "./emailStateMachine-Bm894MHB.esm.js";
|
|
26
|
-
import { t as selfieMachine } from "./selfieStateMachine-
|
|
27
|
-
import { t as idCaptureMachine } from "./idCaptureStateMachine-
|
|
26
|
+
import { t as selfieMachine } from "./selfieStateMachine-BCruqTSI.esm.js";
|
|
27
|
+
import { t as idCaptureMachine } from "./idCaptureStateMachine-C4UMP5JD.esm.js";
|
|
28
28
|
import { t as phoneMachine } from "./phoneStateMachine-E1fUUcNM.esm.js";
|
|
29
29
|
import { t as watchlistMachine } from "./watchlistStateMachine-Bl7Wy9Cm.esm.js";
|
|
30
30
|
import { n as identityReuseMachine } from "./identityReuseStateMachine-AubRPhIi.esm.js";
|
|
@@ -32,12 +32,12 @@ import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-zro
|
|
|
32
32
|
import { t as idOcrStateMachine } from "./idOcrStateMachine-Bq_e3l4E.esm.js";
|
|
33
33
|
import { n as redirectToMobileMachine } from "./redirectToMobileStateMachine-C9SYCJcH.esm.js";
|
|
34
34
|
import { t as signatureMachine } from "./signatureStateMachine-Cf73DGWO.esm.js";
|
|
35
|
-
import { t as geolocationMachine } from "./geolocationStateMachine-
|
|
36
|
-
import { t as governmentValidationMachine } from "./governmentValidationStateMachine-
|
|
35
|
+
import { t as geolocationMachine } from "./geolocationStateMachine-BOH8p4nS.esm.js";
|
|
36
|
+
import { t as governmentValidationMachine } from "./governmentValidationStateMachine-CNzJ5UQb.esm.js";
|
|
37
37
|
import { t as idVerificationMachine } from "./idVerificationStateMachine-GEQWUPU2.esm.js";
|
|
38
38
|
import { t as faceMatchMachine } from "./faceMatchStateMachine-CJiO2yLO.esm.js";
|
|
39
|
-
import { n as getFinishStatus, r as getTotalScoreStatus } from "./flowCompletionService-
|
|
40
|
-
import { n as isAdvanceableError, r as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-
|
|
39
|
+
import { n as getFinishStatus, r as getTotalScoreStatus } from "./flowCompletionService-B0iuFfdZ.esm.js";
|
|
40
|
+
import { n as isAdvanceableError, r as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-btHrg-mD.esm.js";
|
|
41
41
|
import "./qe-signature.esm.js";
|
|
42
42
|
import { t as watchlistForBusinessMachine } from "./watchlistForBusinessStateMachine-BcBMkMvV.esm.js";
|
|
43
43
|
//#region src/internal/orchestration/defaultModules.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@incodetech/core",
|
|
3
|
-
"version": "0.0.0-dev-20260819-
|
|
3
|
+
"version": "0.0.0-dev-20260819-d97c25cd",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -282,8 +282,8 @@
|
|
|
282
282
|
"tsdown": "^0.22.8",
|
|
283
283
|
"typescript": "^5.9.3",
|
|
284
284
|
"vitest": "4.1.10",
|
|
285
|
-
"@incodetech/
|
|
286
|
-
"@incodetech/
|
|
285
|
+
"@incodetech/infra": "1.2.1",
|
|
286
|
+
"@incodetech/config": "1.0.2"
|
|
287
287
|
},
|
|
288
288
|
"scripts": {
|
|
289
289
|
"build": "tsdown -c tsdown.config.ts",
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-DYiyoSlx.esm.js";
|
|
2
|
-
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
|
-
import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
4
|
-
import { t as governmentValidationMachine } from "./governmentValidationStateMachine-BYKYUdza.esm.js";
|
|
5
|
-
//#region src/modules/government-validation/governmentValidationActor.ts
|
|
6
|
-
function createGovernmentValidationActor(options) {
|
|
7
|
-
return createActor(governmentValidationMachine, { input: { config: options.config } }).start();
|
|
8
|
-
}
|
|
9
|
-
//#endregion
|
|
10
|
-
//#region src/modules/government-validation/governmentValidationManager.ts
|
|
11
|
-
/**
|
|
12
|
-
* Maps a Government Validation state-machine snapshot to the exact Figma
|
|
13
|
-
* "Tracked Events" screen name. Source: Government Record Verification
|
|
14
|
-
* Figma file (`https://www.figma.com/design/5J4kaLMl19s8cLyRMUMW32/Government-Record-Verification---Latest-Design?node-id=25911-4095`).
|
|
15
|
-
* Family is `GovernmentRecordValidation.*` (PascalCase verbatim from
|
|
16
|
-
* Figma); spans the background record-lookup flow only. The mapper returns
|
|
17
|
-
* Figma-verbatim spellings which the adapter emits as-is on `event.screen`
|
|
18
|
-
* (e.g. `GovernmentRecordValidation.analyzing.default`). See
|
|
19
|
-
* `docs/patterns/INSTRUMENTATION.md`.
|
|
20
|
-
*
|
|
21
|
-
* Figma sub-states the state machine does not surface as discrete states
|
|
22
|
-
* (intentionally not mapped here):
|
|
23
|
-
*
|
|
24
|
-
* - The OTP sub-flow (`awaitingOtp`, `verifyingOtp`) is the
|
|
25
|
-
* INE_VALIDATION variant. Figma does not define screens for it under
|
|
26
|
-
* this family; those states fall back to the generic
|
|
27
|
-
* `<module>.<state>` default.
|
|
28
|
-
* - `displayUnknown` reflects an unrecognised API status code. Figma does
|
|
29
|
-
* not define a tracked-event surface for it.
|
|
30
|
-
*
|
|
31
|
-
* `idle` and `finished` are intentionally unmapped — Figma does not
|
|
32
|
-
* define screens for them and `finished` collapses into `moduleClosed`.
|
|
33
|
-
*/
|
|
34
|
-
function getGovernmentValidationScreenName(snapshot) {
|
|
35
|
-
const stateName = topLevelStateName(snapshot.value);
|
|
36
|
-
if (stateName === void 0) return void 0;
|
|
37
|
-
switch (stateName) {
|
|
38
|
-
case "loading":
|
|
39
|
-
case "displayProcessing": return "GovernmentRecordValidation.analyzing.default";
|
|
40
|
-
case "displaySuccess": return "GovernmentRecordValidation.success.default";
|
|
41
|
-
case "displayError": return "GovernmentRecordValidation.error.usernotfound";
|
|
42
|
-
default: return;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
function mapState(snapshot) {
|
|
46
|
-
const typedSnapshot = snapshot;
|
|
47
|
-
const { context } = typedSnapshot;
|
|
48
|
-
if (typedSnapshot.matches("idle")) return { status: "idle" };
|
|
49
|
-
if (typedSnapshot.matches("loading")) return { status: "loading" };
|
|
50
|
-
if (typedSnapshot.matches("awaitingOtp")) return {
|
|
51
|
-
status: "awaitingOtp",
|
|
52
|
-
resendTimer: context.resendTimer,
|
|
53
|
-
canResend: !context.resendTimerActive,
|
|
54
|
-
attemptsRemaining: context.attemptsRemaining,
|
|
55
|
-
otpError: context.otpError,
|
|
56
|
-
otpCode: context.otpCode,
|
|
57
|
-
otpLength: 6,
|
|
58
|
-
otpValidationErrors: context.otpValidationErrors,
|
|
59
|
-
isOtpValid: Object.keys(context.otpValidationErrors ?? {}).length === 0
|
|
60
|
-
};
|
|
61
|
-
if (typedSnapshot.matches("verifyingOtp")) return {
|
|
62
|
-
status: "verifyingOtp",
|
|
63
|
-
otpCode: context.otpCode,
|
|
64
|
-
otpLength: 6
|
|
65
|
-
};
|
|
66
|
-
if (typedSnapshot.matches("displaySuccess")) return { status: "displaySuccess" };
|
|
67
|
-
if (typedSnapshot.matches("displayProcessing")) return { status: "processing" };
|
|
68
|
-
if (typedSnapshot.matches("finished")) return { status: "finished" };
|
|
69
|
-
if (typedSnapshot.matches("displayError")) return {
|
|
70
|
-
status: "error",
|
|
71
|
-
error: context.error ?? "An error occurred"
|
|
72
|
-
};
|
|
73
|
-
if (typedSnapshot.matches("displayUnknown")) return {
|
|
74
|
-
status: "unknown",
|
|
75
|
-
error: context.error ?? "Unknown validation status"
|
|
76
|
-
};
|
|
77
|
-
return { status: "idle" };
|
|
78
|
-
}
|
|
79
|
-
function createApi({ actor, trackElementClicked }) {
|
|
80
|
-
return {
|
|
81
|
-
load() {
|
|
82
|
-
actor.send({ type: "LOAD" });
|
|
83
|
-
},
|
|
84
|
-
setOtpCode(code) {
|
|
85
|
-
actor.send({
|
|
86
|
-
type: "OTP_CHANGED",
|
|
87
|
-
code
|
|
88
|
-
});
|
|
89
|
-
},
|
|
90
|
-
validateOtp() {
|
|
91
|
-
actor.send({ type: "VALIDATE_OTP" });
|
|
92
|
-
},
|
|
93
|
-
submitOtp(code) {
|
|
94
|
-
trackElementClicked?.("submitOtp");
|
|
95
|
-
actor.send({
|
|
96
|
-
type: "OTP_CHANGED",
|
|
97
|
-
code
|
|
98
|
-
});
|
|
99
|
-
actor.send({ type: "SUBMIT_OTP" });
|
|
100
|
-
},
|
|
101
|
-
resendOtp() {
|
|
102
|
-
trackElementClicked?.("resendOtp");
|
|
103
|
-
actor.send({ type: "RESEND_OTP" });
|
|
104
|
-
},
|
|
105
|
-
retry() {
|
|
106
|
-
trackElementClicked?.("retry");
|
|
107
|
-
actor.send({ type: "RETRY" });
|
|
108
|
-
}
|
|
109
|
-
};
|
|
110
|
-
}
|
|
111
|
-
function createGovernmentValidationManager(options) {
|
|
112
|
-
return createGovernmentValidationManagerFromActor(createGovernmentValidationActor(options));
|
|
113
|
-
}
|
|
114
|
-
function createGovernmentValidationManagerFromActor(actor) {
|
|
115
|
-
return createManager({
|
|
116
|
-
actor,
|
|
117
|
-
mapState,
|
|
118
|
-
createApi,
|
|
119
|
-
instrumentation: createManagerInstrumentation(eventModuleNames.governmentValidation, { getEventScreenName: getGovernmentValidationScreenName })
|
|
120
|
-
});
|
|
121
|
-
}
|
|
122
|
-
//#endregion
|
|
123
|
-
export { createGovernmentValidationManagerFromActor as n, createGovernmentValidationManager as t };
|