@incodetech/core 0.0.0-dev-20260604-edfbb573 → 0.0.0-dev-20260604-0577f678
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/{OpenViduRecordingProvider-CwJjdB_y.esm.js → OpenViduRecordingProvider-BEWn10vB.esm.js} +1 -1
- package/dist/ae-signature.d.ts +3 -3
- package/dist/antifraud.d.ts +3 -3
- package/dist/{antifraudManager-DilnUuVJ.d.ts → antifraudManager-DXDJ88Iy.d.ts} +2 -2
- package/dist/authentication.d.ts +12 -12
- package/dist/authentication.esm.js +4 -4
- package/dist/{authenticationManager-BuofM548.d.ts → authenticationManager-B7066qjf.d.ts} +2 -2
- package/dist/{authenticationManager-DVM4c1N2.esm.js → authenticationManager-BgtXT783.esm.js} +1 -1
- package/dist/{authenticationStateMachine-CWkBPcZL.esm.js → authenticationStateMachine-Bx9QKZmx.esm.js} +2 -2
- package/dist/camera.d.ts +1 -1
- package/dist/consent.d.ts +3 -3
- package/dist/{consentManager-CIQBAgKS.d.ts → consentManager-Dmp2yhJW.d.ts} +52 -52
- package/dist/cpf-ocr.d.ts +3 -3
- package/dist/{cpfOcrManager-DJwjf8zl.d.ts → cpfOcrManager-pQxe0h9U.d.ts} +19 -19
- package/dist/cross-document-data-match.d.ts +1 -1
- package/dist/curp-validation.d.ts +7 -7
- package/dist/{curpValidationManager-A17z2p8Z.d.ts → curpValidationManager-DXSx8qde.d.ts} +3 -3
- package/dist/custom-fields.d.ts +2 -2
- package/dist/custom-watchlist.d.ts +1 -1
- package/dist/{deepsightService-BoGtutuJ.d.ts → deepsightService-BvxizhpY.d.ts} +2 -2
- package/dist/document-capture.d.ts +74 -74
- package/dist/document-upload.d.ts +50 -50
- package/dist/dynamic-forms.d.ts +2 -2
- package/dist/ekyb.d.ts +6 -6
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybStateMachine-C4w71OsI.esm.js → ekybStateMachine-D5CVgzWE.esm.js} +1 -1
- package/dist/ekyc.d.ts +3 -3
- package/dist/electronic-signature.d.ts +3 -3
- package/dist/email.d.ts +4 -3
- package/dist/email.esm.js +3 -2
- package/dist/{emailManager-CSCqkDqa.d.ts → emailManager-DWauVgqH.d.ts} +65 -7
- package/dist/{emailManager-BkpKfAWF.esm.js → emailManager-DrAlmZxR.esm.js} +28 -5
- package/dist/{emailStateMachine-DBl6u0yY.esm.js → emailStateMachine-BTlQbFIU.esm.js} +44 -9
- package/dist/extensibility.d.ts +25 -24
- package/dist/extensibility.esm.js +21 -20
- package/dist/face-match.d.ts +1 -1
- package/dist/face-match.esm.js +1 -1
- package/dist/{faceCaptureManagerFactory-Cg6hZagK.d.ts → faceCaptureManagerFactory-BncOywLG.d.ts} +8 -8
- package/dist/{faceCaptureSetup-BE6JdX3x.esm.js → faceCaptureSetup-BV_JfZOM.esm.js} +1 -1
- package/dist/field-comparison.d.ts +3 -3
- package/dist/field-comparison.esm.js +1 -1
- package/dist/{fieldComparisonManager-DMzy5lNY.d.ts → fieldComparisonManager-DLL9MVqE.d.ts} +2 -2
- package/dist/flow-events.d.ts +6 -6
- package/dist/flow.d.ts +12 -12
- package/dist/flow.esm.js +4 -4
- package/dist/{flowServices-sy-cx8x9.esm.js → flowServices-juBbztCy.esm.js} +1 -1
- package/dist/geolocation.d.ts +2 -2
- package/dist/geolocation.esm.js +1 -1
- package/dist/government-validation.d.ts +10 -2
- package/dist/government-validation.esm.js +15 -3
- package/dist/{governmentValidationStateMachine-BA9lwNSL.esm.js → governmentValidationStateMachine-CfxotwRJ.esm.js} +17 -3
- package/dist/home.d.ts +15 -15
- package/dist/id-ocr.d.ts +54 -54
- package/dist/id-ocr.esm.js +1 -1
- package/dist/id-verification.d.ts +27 -27
- package/dist/id-verification.esm.js +1 -1
- package/dist/id.d.ts +11 -11
- package/dist/id.esm.js +5 -5
- package/dist/{idCaptureManager-vAt1jY71.esm.js → idCaptureManager-B2C7sszi.esm.js} +1 -1
- package/dist/{idCaptureManager-CmJuubTO.d.ts → idCaptureManager-Dv5Hb6ZQ.d.ts} +7 -7
- package/dist/{idCaptureStateMachine-BfCiOhLX.esm.js → idCaptureStateMachine-BPlJG8rV.esm.js} +4 -4
- package/dist/identity-reuse.d.ts +3 -3
- package/dist/identity-reuse.esm.js +2 -2
- package/dist/{identityReuseManager-5v-hOOjz.esm.js → identityReuseManager-BUlApFOI.esm.js} +1 -1
- package/dist/{identityReuseManager-G-GKzGDP.d.ts → identityReuseManager-G8OBXRBS.d.ts} +33 -33
- package/dist/{index-D2Mcat5v.d.ts → index-C4i7kdU9.d.ts} +2 -2
- package/dist/{index-F-xtscHn.d.ts → index-Dlszx51Y.d.ts} +127 -127
- package/dist/index.d.ts +2 -2
- package/dist/index.esm.js +2 -2
- package/dist/mandatory-consent.d.ts +7 -7
- package/dist/mandatory-consent.esm.js +2 -2
- package/dist/{mandatoryConsentManager-CoAu8yf4.d.ts → mandatoryConsentManager-DvtPF0wk.d.ts} +50 -50
- package/dist/{mandatoryConsentManager-DaV3Kasq.esm.js → mandatoryConsentManager-vRY1lhnH.esm.js} +1 -1
- package/dist/openviduLazy-Bys_w8LJ.esm.js +3 -0
- package/dist/{openviduLazy--WQ7S77K.esm.js → openviduLazy-DjQv_EQK.esm.js} +1 -1
- package/dist/otp-B33JDqfa.esm.js +33 -0
- package/dist/otp-BEvNq7gp.d.ts +8 -0
- package/dist/phone.d.ts +4 -3
- package/dist/phone.esm.js +3 -2
- package/dist/{phoneManager-CkcMvwa6.esm.js → phoneManager-BAuNvs-i.esm.js} +23 -5
- package/dist/{phoneManager-eEOZV-Ag.d.ts → phoneManager-pvDvZ_gv.d.ts} +40 -2
- package/dist/{phoneStateMachine-XdnP18Rl.esm.js → phoneStateMachine-BfcrU9Ge.esm.js} +18 -3
- package/dist/qe-signature.d.ts +3 -3
- package/dist/qe-signature.esm.js +1 -1
- package/dist/{recordingService-yq4IvyVq.esm.js → recordingService-CGlyfFQ7.esm.js} +4 -4
- package/dist/redirect-to-mobile.d.ts +3 -3
- package/dist/redirect-to-mobile.esm.js +2 -2
- package/dist/{redirectToMobileManager-DC-_CWcd.d.ts → redirectToMobileManager-CquT4odi.d.ts} +2 -2
- package/dist/{redirectToMobileManager-CghtrIDs.esm.js → redirectToMobileManager-DTE12sg_.esm.js} +1 -1
- package/dist/selfie.d.ts +12 -12
- package/dist/selfie.esm.js +5 -5
- package/dist/{selfieManager-DgRA1tKd.esm.js → selfieManager-BdH-6KoN.esm.js} +1 -1
- package/dist/{selfieManager-BWhEOmu5.d.ts → selfieManager-Uk6VyeRs.d.ts} +2 -2
- package/dist/{selfieStateMachine-ijqe-SXy.esm.js → selfieStateMachine-Dwuu_grk.esm.js} +2 -2
- package/dist/session.d.ts +5 -5
- package/dist/session.esm.js +2 -2
- package/dist/{sessionInitializer-CBZGnMbc.esm.js → sessionInitializer-RsPNFUZW.esm.js} +1 -1
- package/dist/{setup-Cl42jOa1.esm.js → setup-6QUffFnD.esm.js} +1 -1
- package/dist/{setup-VFySrRdV.d.ts → setup-DASS8vHb.d.ts} +1 -1
- package/dist/signature.d.ts +2 -2
- package/dist/signature.esm.js +1 -1
- package/dist/trust-graph.d.ts +3 -3
- package/dist/{types-DGzov-rE.d.ts → types-D2CwpM2b.d.ts} +1 -1
- package/dist/{types-BPTRiryB.d.ts → types-DVwRlm7y.d.ts} +2 -2
- package/dist/{types-Cb02Rr8D.d.ts → types-iye7_56N.d.ts} +1 -1
- package/dist/wasm.d.ts +2 -2
- package/dist/wasm.esm.js +2 -2
- package/dist/watchlist-for-business.d.ts +1 -1
- package/dist/watchlist-for-business.esm.js +1 -1
- package/dist/watchlist.d.ts +1 -1
- package/dist/watchlist.esm.js +1 -1
- package/dist/workflow.d.ts +144 -144
- package/dist/workflow.esm.js +25 -24
- package/package.json +1 -1
- package/dist/openviduLazy-BPa_szFr.esm.js +0 -3
- /package/dist/{Actor-CcQ_EteO.d.ts → Actor-JBsgjVQJ.d.ts} +0 -0
- /package/dist/{Manager-C6PZlp2a.d.ts → Manager-BtbwDUTY.d.ts} +0 -0
- /package/dist/{StateMachine-terkPOx4.d.ts → StateMachine-Crq3LOHm.d.ts} +0 -0
- /package/dist/{camera-BCAbwFy2.d.ts → camera-BDklS02l.d.ts} +0 -0
- /package/dist/{deepsightLoader-CCGbu9d3.esm.js → deepsightLoader-YRBL_Fj-.esm.js} +0 -0
- /package/dist/{faceMatchStateMachine-vJUfrhXF.esm.js → faceMatchStateMachine-Da2xvnb3.esm.js} +0 -0
- /package/dist/{fieldComparisonManager-B7BNkgoh.esm.js → fieldComparisonManager-DIxV_S3C.esm.js} +0 -0
- /package/dist/{flowCompletionService-aI4wGC9f.esm.js → flowCompletionService-C-sNwEG5.esm.js} +0 -0
- /package/dist/{flowCompletionService-CCtTGPU9.d.ts → flowCompletionService-DEfKnIhU.d.ts} +0 -0
- /package/dist/{geolocationStateMachine-B9l_wr_h.esm.js → geolocationStateMachine-N_ZKLTIs.esm.js} +0 -0
- /package/dist/{idOcrStateMachine-wRa-XU9T.esm.js → idOcrStateMachine-C8BBD47N.esm.js} +0 -0
- /package/dist/{idVerificationStateMachine-FB5EETJU.esm.js → idVerificationStateMachine-__OS4Ktt.esm.js} +0 -0
- /package/dist/{identityReuseStateMachine-DHVSN2L1.esm.js → identityReuseStateMachine-BN_TuE9C.esm.js} +0 -0
- /package/dist/{invokeOnCaptureCallback-CIfXHrFp.esm.js → invokeOnCaptureCallback-BwWx2Kqq.esm.js} +0 -0
- /package/dist/{lib-Co05siK6.esm.js → lib-Dhki73Gp.esm.js} +0 -0
- /package/dist/{mandatoryConsentStateMachine-BvRq9XtS.esm.js → mandatoryConsentStateMachine-BSqA6UaU.esm.js} +0 -0
- /package/dist/{qe-signature-p2zhYha3.esm.js → qe-signature-DRTvm7c_.esm.js} +0 -0
- /package/dist/{redirectToMobileStateMachine-DfJ6xylP.esm.js → redirectToMobileStateMachine-S55Apm7m.esm.js} +0 -0
- /package/dist/{runChildModule-BPowizCN.esm.js → runChildModule-De5-f8Fk.esm.js} +0 -0
- /package/dist/{signatureStateMachine-vr7sJ5bw.esm.js → signatureStateMachine-DRcJ6Vci.esm.js} +0 -0
- /package/dist/{types-CURk4uNi.d.ts → types-BG62yJk8.d.ts} +0 -0
- /package/dist/{types-C076XDan.d.ts → types-CuY-AIPp.d.ts} +0 -0
- /package/dist/{warmup-L_VrEKjj.d.ts → warmup-C-Me8RNj.d.ts} +0 -0
- /package/dist/{watchlistForBusinessStateMachine-Bu8oGHHk.esm.js → watchlistForBusinessStateMachine-By54Yfgd.esm.js} +0 -0
- /package/dist/{watchlistStateMachine-BUNqDKp4.esm.js → watchlistStateMachine-DHod_nLg.esm.js} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as Manager } from "./Manager-
|
|
2
|
-
import { t as ActorRefFrom } from "./Actor-
|
|
1
|
+
import { t as Manager } from "./Manager-BtbwDUTY.js";
|
|
2
|
+
import { t as ActorRefFrom } from "./Actor-JBsgjVQJ.js";
|
|
3
3
|
|
|
4
4
|
//#region src/modules/field-comparison/types.d.ts
|
|
5
5
|
|
package/dist/flow-events.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "./camera-
|
|
2
|
-
import "./types-
|
|
3
|
-
import "./types-
|
|
4
|
-
import "./types-
|
|
5
|
-
import "./flowCompletionService-
|
|
6
|
-
import { a as FlowEventListener, c as FlowModuleStartedEvent, i as FlowEvent, l as FlowReadyEvent, n as FlowCompletedEvent, o as FlowEventSubscribable, r as FlowErrorEvent, s as FlowModuleCompletedEvent, t as FlowClosedEvent, u as FlowStartedEvent } from "./index-
|
|
1
|
+
import "./camera-BDklS02l.js";
|
|
2
|
+
import "./types-D2CwpM2b.js";
|
|
3
|
+
import "./types-BG62yJk8.js";
|
|
4
|
+
import "./types-DVwRlm7y.js";
|
|
5
|
+
import "./flowCompletionService-DEfKnIhU.js";
|
|
6
|
+
import { a as FlowEventListener, c as FlowModuleStartedEvent, i as FlowEvent, l as FlowReadyEvent, n as FlowCompletedEvent, o as FlowEventSubscribable, r as FlowErrorEvent, s as FlowModuleCompletedEvent, t as FlowClosedEvent, u as FlowStartedEvent } from "./index-C4i7kdU9.js";
|
|
7
7
|
export { FlowClosedEvent, FlowCompletedEvent, FlowErrorEvent, FlowEvent, FlowEventListener, FlowEventSubscribable, FlowModuleCompletedEvent, FlowModuleStartedEvent, FlowReadyEvent, FlowStartedEvent };
|
package/dist/flow.d.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { n as WasmPipeline } from "./warmup-
|
|
2
|
-
import { t as Manager } from "./Manager-
|
|
3
|
-
import { t as AnyStateMachine } from "./StateMachine-
|
|
4
|
-
import "./camera-
|
|
5
|
-
import "./types-
|
|
6
|
-
import "./types-
|
|
7
|
-
import { i as FlowModuleConfig, n as Flow, r as FlowModule } from "./types-
|
|
8
|
-
import { n as GetFinishStatusFn, t as FinishStatus } from "./flowCompletionService-
|
|
9
|
-
import { o as FlowEventSubscribable } from "./index-
|
|
10
|
-
import { n as ModuleRegistry } from "./types-
|
|
11
|
-
import * as
|
|
1
|
+
import { n as WasmPipeline } from "./warmup-C-Me8RNj.js";
|
|
2
|
+
import { t as Manager } from "./Manager-BtbwDUTY.js";
|
|
3
|
+
import { t as AnyStateMachine } from "./StateMachine-Crq3LOHm.js";
|
|
4
|
+
import "./camera-BDklS02l.js";
|
|
5
|
+
import "./types-D2CwpM2b.js";
|
|
6
|
+
import "./types-BG62yJk8.js";
|
|
7
|
+
import { i as FlowModuleConfig, n as Flow, r as FlowModule } from "./types-DVwRlm7y.js";
|
|
8
|
+
import { n as GetFinishStatusFn, t as FinishStatus } from "./flowCompletionService-DEfKnIhU.js";
|
|
9
|
+
import { o as FlowEventSubscribable } from "./index-C4i7kdU9.js";
|
|
10
|
+
import { n as ModuleRegistry } from "./types-iye7_56N.js";
|
|
11
|
+
import * as xstate517 from "xstate";
|
|
12
12
|
|
|
13
13
|
//#region src/modules/flow/flowUtils.d.ts
|
|
14
14
|
type NormalizeFlowModulesOptions = {
|
|
@@ -60,7 +60,7 @@ type GetFlow = (signal: AbortSignal, options?: GetFlowOptions) => Promise<Flow>;
|
|
|
60
60
|
declare const getFlow: GetFlow;
|
|
61
61
|
//#endregion
|
|
62
62
|
//#region src/modules/flow/noOpFlowModuleMachine.d.ts
|
|
63
|
-
declare const noOpFlowModuleMachine:
|
|
63
|
+
declare const noOpFlowModuleMachine: xstate517.StateMachine<xstate517.MachineContext, xstate517.AnyEventObject, {}, never, never, never, never, "finished", string, xstate517.NonReducibleUnknown, xstate517.NonReducibleUnknown, xstate517.EventObject, xstate517.MetaObject, {
|
|
64
64
|
readonly id: "noOpFlowModule";
|
|
65
65
|
readonly initial: "finished";
|
|
66
66
|
readonly states: {
|
package/dist/flow.esm.js
CHANGED
|
@@ -4,16 +4,16 @@ import "./endpoints-BPHddOTi.esm.js";
|
|
|
4
4
|
import "./stats-AwLva7-C.esm.js";
|
|
5
5
|
import "./IpifyProvider-BQKB2PR-.esm.js";
|
|
6
6
|
import "./browserSimulation-CHpyEI-W.esm.js";
|
|
7
|
-
import "./sessionInitializer-
|
|
7
|
+
import "./sessionInitializer-RsPNFUZW.esm.js";
|
|
8
8
|
import "./platform-D871crJL.esm.js";
|
|
9
9
|
import "./getBrowser-CMJJeBF8.esm.js";
|
|
10
10
|
import { a as fromPromise, c as createManager, r as assign, s as createActor, t as setup } from "./xstate.esm-CWoFJOio.esm.js";
|
|
11
11
|
import "./apiError-76Dulrw9.esm.js";
|
|
12
12
|
import "./types-CRp-Maxh.esm.js";
|
|
13
13
|
import "./session-BK_FUgjz.esm.js";
|
|
14
|
-
import { n as getRequiredWasmPipelines, r as normalizeFlowModules, t as getFlow } from "./flowServices-
|
|
15
|
-
import { n as isAdvanceableError, r as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-
|
|
16
|
-
import { t as getFinishStatus } from "./flowCompletionService-
|
|
14
|
+
import { n as getRequiredWasmPipelines, r as normalizeFlowModules, t as getFlow } from "./flowServices-juBbztCy.esm.js";
|
|
15
|
+
import { n as isAdvanceableError, r as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-De5-f8Fk.esm.js";
|
|
16
|
+
import { t as getFinishStatus } from "./flowCompletionService-C-sNwEG5.esm.js";
|
|
17
17
|
|
|
18
18
|
//#region src/modules/flow/noOpFlowModuleMachine.ts
|
|
19
19
|
const noOpFlowModuleMachine = setup({}).createMachine({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as api } from "./api-YxPMtty2.esm.js";
|
|
2
2
|
import { t as endpoints } from "./endpoints-BPHddOTi.esm.js";
|
|
3
|
-
import { n as getSessionFingerprintResult, r as initializeSession } from "./sessionInitializer-
|
|
3
|
+
import { n as getSessionFingerprintResult, r as initializeSession } from "./sessionInitializer-RsPNFUZW.esm.js";
|
|
4
4
|
import { n as toIncodeApiError } from "./apiError-76Dulrw9.esm.js";
|
|
5
5
|
|
|
6
6
|
//#region src/modules/flow/flowUtils.ts
|
package/dist/geolocation.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as Manager } from "./Manager-
|
|
2
|
-
import "./Actor-
|
|
1
|
+
import { t as Manager } from "./Manager-BtbwDUTY.js";
|
|
2
|
+
import "./Actor-JBsgjVQJ.js";
|
|
3
3
|
|
|
4
4
|
//#region ../infra/src/capabilities/IGeolocationCapability.d.ts
|
|
5
5
|
type GeolocationCoords = {
|
package/dist/geolocation.esm.js
CHANGED
|
@@ -3,7 +3,7 @@ import { n as eventModuleNames, o as createManagerInstrumentation } from "./even
|
|
|
3
3
|
import "./endpoints-BPHddOTi.esm.js";
|
|
4
4
|
import "./platform-D871crJL.esm.js";
|
|
5
5
|
import { c as createManager, s as createActor } from "./xstate.esm-CWoFJOio.esm.js";
|
|
6
|
-
import { t as geolocationMachine } from "./geolocationStateMachine-
|
|
6
|
+
import { t as geolocationMachine } from "./geolocationStateMachine-N_ZKLTIs.esm.js";
|
|
7
7
|
|
|
8
8
|
//#region ../infra/src/providers/browser/BrowserGeolocationProvider.ts
|
|
9
9
|
var BrowserGeolocationProvider = class {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { t as Manager } from "./Manager-
|
|
2
|
-
import "./Actor-
|
|
1
|
+
import { t as Manager } from "./Manager-BtbwDUTY.js";
|
|
2
|
+
import "./Actor-JBsgjVQJ.js";
|
|
3
|
+
import { t as OtpValidationErrors } from "./otp-BEvNq7gp.js";
|
|
3
4
|
|
|
4
5
|
//#region src/modules/government-validation/types.d.ts
|
|
5
6
|
type GovernmentValidationConfig = {
|
|
@@ -48,9 +49,15 @@ type GovernmentValidationAwaitingOtpState = {
|
|
|
48
49
|
canResend: boolean;
|
|
49
50
|
attemptsRemaining: number;
|
|
50
51
|
otpError?: string;
|
|
52
|
+
otpCode: string;
|
|
53
|
+
otpLength: number;
|
|
54
|
+
otpValidationErrors?: OtpValidationErrors;
|
|
55
|
+
isOtpValid: boolean;
|
|
51
56
|
};
|
|
52
57
|
type GovernmentValidationVerifyingOtpState = {
|
|
53
58
|
status: 'verifyingOtp';
|
|
59
|
+
otpCode: string;
|
|
60
|
+
otpLength: number;
|
|
54
61
|
};
|
|
55
62
|
type GovernmentValidationFinishedState = {
|
|
56
63
|
status: 'finished';
|
|
@@ -70,6 +77,7 @@ type GovernmentValidationState = GovernmentValidationIdleState | GovernmentValid
|
|
|
70
77
|
declare function createGovernmentValidationManager(options: CreateGovernmentValidationActorOptions): Manager<GovernmentValidationState> & {
|
|
71
78
|
load(): void;
|
|
72
79
|
setOtpCode(code: string): void;
|
|
80
|
+
validateOtp(): void;
|
|
73
81
|
submitOtp(code: string): void;
|
|
74
82
|
resendOtp(): void;
|
|
75
83
|
retry(): void;
|
|
@@ -3,7 +3,8 @@ import "./api-YxPMtty2.esm.js";
|
|
|
3
3
|
import { o as createManagerInstrumentation } from "./events-Bsw1l0pH.esm.js";
|
|
4
4
|
import "./endpoints-BPHddOTi.esm.js";
|
|
5
5
|
import { c as createManager, s as createActor } from "./xstate.esm-CWoFJOio.esm.js";
|
|
6
|
-
import { t as
|
|
6
|
+
import { t as OTP_CODE_LENGTH } from "./otp-B33JDqfa.esm.js";
|
|
7
|
+
import { t as governmentValidationMachine } from "./governmentValidationStateMachine-CfxotwRJ.esm.js";
|
|
7
8
|
|
|
8
9
|
//#region src/modules/government-validation/governmentValidationActor.ts
|
|
9
10
|
function createGovernmentValidationActor(options) {
|
|
@@ -23,9 +24,17 @@ function mapState(snapshot) {
|
|
|
23
24
|
resendTimer: context.resendTimer,
|
|
24
25
|
canResend: !context.resendTimerActive,
|
|
25
26
|
attemptsRemaining: context.attemptsRemaining,
|
|
26
|
-
otpError: context.otpError
|
|
27
|
+
otpError: context.otpError,
|
|
28
|
+
otpCode: context.otpCode,
|
|
29
|
+
otpLength: OTP_CODE_LENGTH,
|
|
30
|
+
otpValidationErrors: context.otpValidationErrors,
|
|
31
|
+
isOtpValid: Object.keys(context.otpValidationErrors ?? {}).length === 0
|
|
32
|
+
};
|
|
33
|
+
if (typedSnapshot.matches("verifyingOtp")) return {
|
|
34
|
+
status: "verifyingOtp",
|
|
35
|
+
otpCode: context.otpCode,
|
|
36
|
+
otpLength: OTP_CODE_LENGTH
|
|
27
37
|
};
|
|
28
|
-
if (typedSnapshot.matches("verifyingOtp")) return { status: "verifyingOtp" };
|
|
29
38
|
if (typedSnapshot.matches("displaySuccess")) return { status: "displaySuccess" };
|
|
30
39
|
if (typedSnapshot.matches("displayProcessing")) return { status: "processing" };
|
|
31
40
|
if (typedSnapshot.matches("finished")) return { status: "finished" };
|
|
@@ -50,6 +59,9 @@ function createApi({ actor, trackElementClicked }) {
|
|
|
50
59
|
code
|
|
51
60
|
});
|
|
52
61
|
},
|
|
62
|
+
validateOtp() {
|
|
63
|
+
actor.send({ type: "VALIDATE_OTP" });
|
|
64
|
+
},
|
|
53
65
|
submitOtp(code) {
|
|
54
66
|
trackElementClicked?.("submitOtp");
|
|
55
67
|
actor.send({
|
|
@@ -2,6 +2,7 @@ import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BESs49g_.esm.j
|
|
|
2
2
|
import { t as api } from "./api-YxPMtty2.esm.js";
|
|
3
3
|
import { t as endpoints } from "./endpoints-BPHddOTi.esm.js";
|
|
4
4
|
import { a as fromPromise, i as fromCallback, r as assign, t as setup } from "./xstate.esm-CWoFJOio.esm.js";
|
|
5
|
+
import { n as computeOtpValidationErrors, r as isOtpComplete } from "./otp-B33JDqfa.esm.js";
|
|
5
6
|
|
|
6
7
|
//#region src/modules/government-validation/governmentValidationServices.ts
|
|
7
8
|
async function processGovernmentValidation(signal) {
|
|
@@ -60,15 +61,21 @@ const governmentValidationMachine = setup({
|
|
|
60
61
|
clearError: assign({ error: () => void 0 }),
|
|
61
62
|
setOtpCode: assign(({ event }) => ({
|
|
62
63
|
otpCode: event.code,
|
|
63
|
-
otpError: void 0
|
|
64
|
+
otpError: void 0,
|
|
65
|
+
otpValidationErrors: void 0
|
|
64
66
|
})),
|
|
67
|
+
validateOtpField: assign(({ context }) => {
|
|
68
|
+
const errors = computeOtpValidationErrors(context.otpCode);
|
|
69
|
+
return { otpValidationErrors: errors.otp ? errors : void 0 };
|
|
70
|
+
}),
|
|
65
71
|
setOtpError: assign(({ context }) => ({
|
|
66
72
|
otpError: "Invalid OTP code",
|
|
67
73
|
attemptsRemaining: context.attemptsRemaining - 1
|
|
68
74
|
})),
|
|
69
75
|
clearOtpError: assign({
|
|
70
76
|
otpError: () => void 0,
|
|
71
|
-
otpCode: () => ""
|
|
77
|
+
otpCode: () => "",
|
|
78
|
+
otpValidationErrors: () => void 0
|
|
72
79
|
}),
|
|
73
80
|
startResendTimer: assign({
|
|
74
81
|
resendTimer: () => RESEND_TIMER_SECONDS,
|
|
@@ -88,6 +95,7 @@ const governmentValidationMachine = setup({
|
|
|
88
95
|
error: void 0,
|
|
89
96
|
otpCode: "",
|
|
90
97
|
otpError: void 0,
|
|
98
|
+
otpValidationErrors: void 0,
|
|
91
99
|
attemptsRemaining: context.config.maxOtpAttempts ?? 3,
|
|
92
100
|
resendTimer: 0,
|
|
93
101
|
resendTimerActive: false,
|
|
@@ -102,6 +110,7 @@ const governmentValidationMachine = setup({
|
|
|
102
110
|
isOtpRequested: (_, params) => params.response.otpResponse?.authBridge?.otpCodeRequested === true,
|
|
103
111
|
isUnknown: (_, params) => params.response.validationStatus?.status === "UNKNOWN",
|
|
104
112
|
hasAttemptsRemaining: ({ context }) => context.attemptsRemaining > 0,
|
|
113
|
+
hasCompleteOtp: ({ context }) => isOtpComplete(context.otpCode),
|
|
105
114
|
canResend: ({ context }) => !context.resendTimerActive,
|
|
106
115
|
hasReachedMaxPolls: ({ context }) => context.pollCount >= MAX_POLL_COUNT
|
|
107
116
|
}
|
|
@@ -113,6 +122,7 @@ const governmentValidationMachine = setup({
|
|
|
113
122
|
error: void 0,
|
|
114
123
|
otpCode: "",
|
|
115
124
|
otpError: void 0,
|
|
125
|
+
otpValidationErrors: void 0,
|
|
116
126
|
attemptsRemaining: input.config.maxOtpAttempts ?? 3,
|
|
117
127
|
resendTimer: 0,
|
|
118
128
|
resendTimerActive: false,
|
|
@@ -229,7 +239,11 @@ const governmentValidationMachine = setup({
|
|
|
229
239
|
on: {
|
|
230
240
|
TICK: { actions: "tickResendTimer" },
|
|
231
241
|
OTP_CHANGED: { actions: "setOtpCode" },
|
|
232
|
-
|
|
242
|
+
VALIDATE_OTP: { actions: "validateOtpField" },
|
|
243
|
+
SUBMIT_OTP: [{
|
|
244
|
+
guard: "hasCompleteOtp",
|
|
245
|
+
target: "verifyingOtp"
|
|
246
|
+
}, { actions: "validateOtpField" }],
|
|
233
247
|
RESEND_OTP: {
|
|
234
248
|
target: "loading",
|
|
235
249
|
guard: "canResend"
|
package/dist/home.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as Manager } from "./Manager-
|
|
2
|
-
import "./camera-
|
|
3
|
-
import "./types-
|
|
4
|
-
import "./types-
|
|
5
|
-
import { t as EmptyConfig } from "./types-
|
|
6
|
-
import * as
|
|
1
|
+
import { t as Manager } from "./Manager-BtbwDUTY.js";
|
|
2
|
+
import "./camera-BDklS02l.js";
|
|
3
|
+
import "./types-D2CwpM2b.js";
|
|
4
|
+
import "./types-BG62yJk8.js";
|
|
5
|
+
import { t as EmptyConfig } from "./types-DVwRlm7y.js";
|
|
6
|
+
import * as xstate0 from "xstate";
|
|
7
7
|
|
|
8
8
|
//#region src/modules/home/types.d.ts
|
|
9
9
|
type HomeConfig = EmptyConfig;
|
|
@@ -35,41 +35,41 @@ type HomeContext = {
|
|
|
35
35
|
type HomeInput = {
|
|
36
36
|
config: EmptyConfig;
|
|
37
37
|
};
|
|
38
|
-
declare const homeMachine:
|
|
38
|
+
declare const homeMachine: xstate0.StateMachine<HomeContext, {
|
|
39
39
|
type: "LOAD";
|
|
40
40
|
} | {
|
|
41
41
|
type: "COMPLETE";
|
|
42
42
|
} | {
|
|
43
43
|
type: "RESET";
|
|
44
|
-
}, {}, never, never, never, never, "idle" | "finished" | "main", string, HomeInput,
|
|
44
|
+
}, {}, never, never, never, never, "idle" | "finished" | "main", string, HomeInput, xstate0.NonReducibleUnknown, xstate0.EventObject, xstate0.MetaObject, {
|
|
45
45
|
readonly id: "home";
|
|
46
46
|
readonly initial: "idle";
|
|
47
47
|
readonly context: ({
|
|
48
48
|
input
|
|
49
49
|
}: {
|
|
50
50
|
spawn: {
|
|
51
|
-
<TSrc extends never>(logic: TSrc, ...[options]: never):
|
|
52
|
-
<TLogic extends
|
|
51
|
+
<TSrc extends never>(logic: TSrc, ...[options]: never): xstate0.ActorRefFromLogic<never>;
|
|
52
|
+
<TLogic extends xstate0.AnyActorLogic>(src: TLogic, ...[options]: xstate0.ConditionalRequired<[options?: ({
|
|
53
53
|
id?: never;
|
|
54
54
|
systemId?: string;
|
|
55
|
-
input?:
|
|
55
|
+
input?: xstate0.InputFrom<TLogic> | undefined;
|
|
56
56
|
syncSnapshot?: boolean;
|
|
57
|
-
} & { [K in
|
|
57
|
+
} & { [K in xstate0.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate0.IsNotNever<xstate0.RequiredLogicInput<TLogic>>>): xstate0.ActorRefFromLogic<TLogic>;
|
|
58
58
|
};
|
|
59
59
|
input: HomeInput;
|
|
60
|
-
self:
|
|
60
|
+
self: xstate0.ActorRef<xstate0.MachineSnapshot<HomeContext, {
|
|
61
61
|
type: "LOAD";
|
|
62
62
|
} | {
|
|
63
63
|
type: "COMPLETE";
|
|
64
64
|
} | {
|
|
65
65
|
type: "RESET";
|
|
66
|
-
}, Record<string,
|
|
66
|
+
}, Record<string, xstate0.AnyActorRef | undefined>, xstate0.StateValue, string, unknown, any, any>, {
|
|
67
67
|
type: "LOAD";
|
|
68
68
|
} | {
|
|
69
69
|
type: "COMPLETE";
|
|
70
70
|
} | {
|
|
71
71
|
type: "RESET";
|
|
72
|
-
},
|
|
72
|
+
}, xstate0.AnyEventObject>;
|
|
73
73
|
}) => {
|
|
74
74
|
config: EmptyConfig;
|
|
75
75
|
};
|
package/dist/id-ocr.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as Manager } from "./Manager-
|
|
2
|
-
import "./Actor-
|
|
3
|
-
import * as
|
|
1
|
+
import { t as Manager } from "./Manager-BtbwDUTY.js";
|
|
2
|
+
import "./Actor-JBsgjVQJ.js";
|
|
3
|
+
import * as xstate918 from "xstate";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/id-ocr/types.d.ts
|
|
6
6
|
type IdOcrConfig = {
|
|
@@ -177,7 +177,7 @@ type IdOcrContext = {
|
|
|
177
177
|
type IdOcrInput = {
|
|
178
178
|
config: IdOcrConfig;
|
|
179
179
|
};
|
|
180
|
-
declare const idOcrStateMachine:
|
|
180
|
+
declare const idOcrStateMachine: xstate918.StateMachine<IdOcrContext, {
|
|
181
181
|
type: "LOAD";
|
|
182
182
|
} | {
|
|
183
183
|
type: "DATA_CHANGED";
|
|
@@ -191,66 +191,66 @@ declare const idOcrStateMachine: xstate897.StateMachine<IdOcrContext, {
|
|
|
191
191
|
} | {
|
|
192
192
|
type: "RETRY";
|
|
193
193
|
}, {
|
|
194
|
-
[x: string]:
|
|
194
|
+
[x: string]: xstate918.ActorRefFromLogic<xstate918.PromiseActorLogic<OcrData, {
|
|
195
195
|
isSecondId: boolean;
|
|
196
|
-
},
|
|
196
|
+
}, xstate918.EventObject>> | xstate918.ActorRefFromLogic<xstate918.PromiseActorLogic<UpdateOcrResponse, {
|
|
197
197
|
params: UpdateOcrDataParams;
|
|
198
198
|
isSecondId: boolean;
|
|
199
|
-
},
|
|
200
|
-
},
|
|
199
|
+
}, xstate918.EventObject>> | undefined;
|
|
200
|
+
}, xstate918.Values<{
|
|
201
201
|
getOcrData: {
|
|
202
202
|
src: "getOcrData";
|
|
203
|
-
logic:
|
|
203
|
+
logic: xstate918.PromiseActorLogic<OcrData, {
|
|
204
204
|
isSecondId: boolean;
|
|
205
|
-
},
|
|
205
|
+
}, xstate918.EventObject>;
|
|
206
206
|
id: string | undefined;
|
|
207
207
|
};
|
|
208
208
|
updateOcrData: {
|
|
209
209
|
src: "updateOcrData";
|
|
210
|
-
logic:
|
|
210
|
+
logic: xstate918.PromiseActorLogic<UpdateOcrResponse, {
|
|
211
211
|
params: UpdateOcrDataParams;
|
|
212
212
|
isSecondId: boolean;
|
|
213
|
-
},
|
|
213
|
+
}, xstate918.EventObject>;
|
|
214
214
|
id: string | undefined;
|
|
215
215
|
};
|
|
216
|
-
}>,
|
|
216
|
+
}>, xstate918.Values<{
|
|
217
217
|
setError: {
|
|
218
218
|
type: "setError";
|
|
219
|
-
params:
|
|
219
|
+
params: xstate918.NonReducibleUnknown;
|
|
220
220
|
};
|
|
221
221
|
setInitialData: {
|
|
222
222
|
type: "setInitialData";
|
|
223
|
-
params:
|
|
223
|
+
params: xstate918.NonReducibleUnknown;
|
|
224
224
|
};
|
|
225
225
|
updateField: {
|
|
226
226
|
type: "updateField";
|
|
227
|
-
params:
|
|
227
|
+
params: xstate918.NonReducibleUnknown;
|
|
228
228
|
};
|
|
229
229
|
clearFieldValidationError: {
|
|
230
230
|
type: "clearFieldValidationError";
|
|
231
|
-
params:
|
|
231
|
+
params: xstate918.NonReducibleUnknown;
|
|
232
232
|
};
|
|
233
233
|
setOcrValidationErrors: {
|
|
234
234
|
type: "setOcrValidationErrors";
|
|
235
|
-
params:
|
|
235
|
+
params: xstate918.NonReducibleUnknown;
|
|
236
236
|
};
|
|
237
237
|
validateFormField: {
|
|
238
238
|
type: "validateFormField";
|
|
239
|
-
params:
|
|
239
|
+
params: xstate918.NonReducibleUnknown;
|
|
240
240
|
};
|
|
241
241
|
beginSecondIdOcrPhase: {
|
|
242
242
|
type: "beginSecondIdOcrPhase";
|
|
243
|
-
params:
|
|
243
|
+
params: xstate918.NonReducibleUnknown;
|
|
244
244
|
};
|
|
245
245
|
resetForRetry: {
|
|
246
246
|
type: "resetForRetry";
|
|
247
|
-
params:
|
|
247
|
+
params: xstate918.NonReducibleUnknown;
|
|
248
248
|
};
|
|
249
249
|
computeValidationResult: {
|
|
250
250
|
type: "computeValidationResult";
|
|
251
|
-
params:
|
|
251
|
+
params: xstate918.NonReducibleUnknown;
|
|
252
252
|
};
|
|
253
|
-
}>,
|
|
253
|
+
}>, xstate918.Values<{
|
|
254
254
|
isOcrEditable: {
|
|
255
255
|
type: "isOcrEditable";
|
|
256
256
|
params: unknown;
|
|
@@ -271,7 +271,7 @@ declare const idOcrStateMachine: xstate897.StateMachine<IdOcrContext, {
|
|
|
271
271
|
type: "shouldProceedWithoutSubmitToSecondId";
|
|
272
272
|
params: unknown;
|
|
273
273
|
};
|
|
274
|
-
}>, never, "error" | "idle" | "success" | "finished" | "loading" | "
|
|
274
|
+
}>, never, "error" | "idle" | "success" | "finished" | "loading" | "inputting" | "submitting" | "readonly" | "validatingContinue", string, IdOcrInput, xstate918.NonReducibleUnknown, xstate918.EventObject, xstate918.MetaObject, {
|
|
275
275
|
readonly id: "idOcr";
|
|
276
276
|
readonly initial: "idle";
|
|
277
277
|
readonly context: ({
|
|
@@ -280,70 +280,70 @@ declare const idOcrStateMachine: xstate897.StateMachine<IdOcrContext, {
|
|
|
280
280
|
spawn: {
|
|
281
281
|
<TSrc extends "getOcrData" | "updateOcrData">(logic: TSrc, ...[options]: ({
|
|
282
282
|
src: "getOcrData";
|
|
283
|
-
logic:
|
|
283
|
+
logic: xstate918.PromiseActorLogic<OcrData, {
|
|
284
284
|
isSecondId: boolean;
|
|
285
|
-
},
|
|
285
|
+
}, xstate918.EventObject>;
|
|
286
286
|
id: string | undefined;
|
|
287
287
|
} extends infer T ? T extends {
|
|
288
288
|
src: "getOcrData";
|
|
289
|
-
logic:
|
|
289
|
+
logic: xstate918.PromiseActorLogic<OcrData, {
|
|
290
290
|
isSecondId: boolean;
|
|
291
|
-
},
|
|
291
|
+
}, xstate918.EventObject>;
|
|
292
292
|
id: string | undefined;
|
|
293
293
|
} ? T extends {
|
|
294
294
|
src: TSrc;
|
|
295
|
-
} ?
|
|
295
|
+
} ? xstate918.ConditionalRequired<[options?: ({
|
|
296
296
|
id?: T["id"] | undefined;
|
|
297
297
|
systemId?: string;
|
|
298
|
-
input?:
|
|
298
|
+
input?: xstate918.InputFrom<T["logic"]> | undefined;
|
|
299
299
|
syncSnapshot?: boolean;
|
|
300
|
-
} & { [K in
|
|
300
|
+
} & { [K in xstate918.RequiredActorOptions<T>]: unknown }) | undefined], xstate918.IsNotNever<xstate918.RequiredActorOptions<T>>> : never : never : never) | ({
|
|
301
301
|
src: "updateOcrData";
|
|
302
|
-
logic:
|
|
302
|
+
logic: xstate918.PromiseActorLogic<UpdateOcrResponse, {
|
|
303
303
|
params: UpdateOcrDataParams;
|
|
304
304
|
isSecondId: boolean;
|
|
305
|
-
},
|
|
305
|
+
}, xstate918.EventObject>;
|
|
306
306
|
id: string | undefined;
|
|
307
307
|
} extends infer T_1 ? T_1 extends {
|
|
308
308
|
src: "updateOcrData";
|
|
309
|
-
logic:
|
|
309
|
+
logic: xstate918.PromiseActorLogic<UpdateOcrResponse, {
|
|
310
310
|
params: UpdateOcrDataParams;
|
|
311
311
|
isSecondId: boolean;
|
|
312
|
-
},
|
|
312
|
+
}, xstate918.EventObject>;
|
|
313
313
|
id: string | undefined;
|
|
314
314
|
} ? T_1 extends {
|
|
315
315
|
src: TSrc;
|
|
316
|
-
} ?
|
|
316
|
+
} ? xstate918.ConditionalRequired<[options?: ({
|
|
317
317
|
id?: T_1["id"] | undefined;
|
|
318
318
|
systemId?: string;
|
|
319
|
-
input?:
|
|
319
|
+
input?: xstate918.InputFrom<T_1["logic"]> | undefined;
|
|
320
320
|
syncSnapshot?: boolean;
|
|
321
|
-
} & { [K_1 in
|
|
321
|
+
} & { [K_1 in xstate918.RequiredActorOptions<T_1>]: unknown }) | undefined], xstate918.IsNotNever<xstate918.RequiredActorOptions<T_1>>> : never : never : never)): xstate918.ActorRefFromLogic<xstate918.GetConcreteByKey<xstate918.Values<{
|
|
322
322
|
getOcrData: {
|
|
323
323
|
src: "getOcrData";
|
|
324
|
-
logic:
|
|
324
|
+
logic: xstate918.PromiseActorLogic<OcrData, {
|
|
325
325
|
isSecondId: boolean;
|
|
326
|
-
},
|
|
326
|
+
}, xstate918.EventObject>;
|
|
327
327
|
id: string | undefined;
|
|
328
328
|
};
|
|
329
329
|
updateOcrData: {
|
|
330
330
|
src: "updateOcrData";
|
|
331
|
-
logic:
|
|
331
|
+
logic: xstate918.PromiseActorLogic<UpdateOcrResponse, {
|
|
332
332
|
params: UpdateOcrDataParams;
|
|
333
333
|
isSecondId: boolean;
|
|
334
|
-
},
|
|
334
|
+
}, xstate918.EventObject>;
|
|
335
335
|
id: string | undefined;
|
|
336
336
|
};
|
|
337
337
|
}>, "src", TSrc>["logic"]>;
|
|
338
|
-
<TLogic extends
|
|
338
|
+
<TLogic extends xstate918.AnyActorLogic>(src: TLogic, ...[options]: xstate918.ConditionalRequired<[options?: ({
|
|
339
339
|
id?: never;
|
|
340
340
|
systemId?: string;
|
|
341
|
-
input?:
|
|
341
|
+
input?: xstate918.InputFrom<TLogic> | undefined;
|
|
342
342
|
syncSnapshot?: boolean;
|
|
343
|
-
} & { [K in
|
|
343
|
+
} & { [K in xstate918.RequiredLogicInput<TLogic>]: unknown }) | undefined], xstate918.IsNotNever<xstate918.RequiredLogicInput<TLogic>>>): xstate918.ActorRefFromLogic<TLogic>;
|
|
344
344
|
};
|
|
345
345
|
input: IdOcrInput;
|
|
346
|
-
self:
|
|
346
|
+
self: xstate918.ActorRef<xstate918.MachineSnapshot<IdOcrContext, {
|
|
347
347
|
type: "LOAD";
|
|
348
348
|
} | {
|
|
349
349
|
type: "DATA_CHANGED";
|
|
@@ -356,7 +356,7 @@ declare const idOcrStateMachine: xstate897.StateMachine<IdOcrContext, {
|
|
|
356
356
|
type: "CONTINUE";
|
|
357
357
|
} | {
|
|
358
358
|
type: "RETRY";
|
|
359
|
-
}, Record<string,
|
|
359
|
+
}, Record<string, xstate918.AnyActorRef | undefined>, xstate918.StateValue, string, unknown, any, any>, {
|
|
360
360
|
type: "LOAD";
|
|
361
361
|
} | {
|
|
362
362
|
type: "DATA_CHANGED";
|
|
@@ -369,7 +369,7 @@ declare const idOcrStateMachine: xstate897.StateMachine<IdOcrContext, {
|
|
|
369
369
|
type: "CONTINUE";
|
|
370
370
|
} | {
|
|
371
371
|
type: "RETRY";
|
|
372
|
-
},
|
|
372
|
+
}, xstate918.AnyEventObject>;
|
|
373
373
|
}) => {
|
|
374
374
|
config: IdOcrConfig;
|
|
375
375
|
formData: UpdateOcrDataParams;
|
|
@@ -405,7 +405,7 @@ declare const idOcrStateMachine: xstate897.StateMachine<IdOcrContext, {
|
|
|
405
405
|
} | {
|
|
406
406
|
type: "RETRY";
|
|
407
407
|
};
|
|
408
|
-
self:
|
|
408
|
+
self: xstate918.ActorRef<xstate918.MachineSnapshot<IdOcrContext, {
|
|
409
409
|
type: "LOAD";
|
|
410
410
|
} | {
|
|
411
411
|
type: "DATA_CHANGED";
|
|
@@ -418,7 +418,7 @@ declare const idOcrStateMachine: xstate897.StateMachine<IdOcrContext, {
|
|
|
418
418
|
type: "CONTINUE";
|
|
419
419
|
} | {
|
|
420
420
|
type: "RETRY";
|
|
421
|
-
}, Record<string,
|
|
421
|
+
}, Record<string, xstate918.AnyActorRef>, xstate918.StateValue, string, unknown, any, any>, {
|
|
422
422
|
type: "LOAD";
|
|
423
423
|
} | {
|
|
424
424
|
type: "DATA_CHANGED";
|
|
@@ -431,7 +431,7 @@ declare const idOcrStateMachine: xstate897.StateMachine<IdOcrContext, {
|
|
|
431
431
|
type: "CONTINUE";
|
|
432
432
|
} | {
|
|
433
433
|
type: "RETRY";
|
|
434
|
-
},
|
|
434
|
+
}, xstate918.AnyEventObject>;
|
|
435
435
|
}) => {
|
|
436
436
|
isSecondId: boolean;
|
|
437
437
|
};
|
|
@@ -510,7 +510,7 @@ declare const idOcrStateMachine: xstate897.StateMachine<IdOcrContext, {
|
|
|
510
510
|
} | {
|
|
511
511
|
type: "RETRY";
|
|
512
512
|
};
|
|
513
|
-
self:
|
|
513
|
+
self: xstate918.ActorRef<xstate918.MachineSnapshot<IdOcrContext, {
|
|
514
514
|
type: "LOAD";
|
|
515
515
|
} | {
|
|
516
516
|
type: "DATA_CHANGED";
|
|
@@ -523,7 +523,7 @@ declare const idOcrStateMachine: xstate897.StateMachine<IdOcrContext, {
|
|
|
523
523
|
type: "CONTINUE";
|
|
524
524
|
} | {
|
|
525
525
|
type: "RETRY";
|
|
526
|
-
}, Record<string,
|
|
526
|
+
}, Record<string, xstate918.AnyActorRef>, xstate918.StateValue, string, unknown, any, any>, {
|
|
527
527
|
type: "LOAD";
|
|
528
528
|
} | {
|
|
529
529
|
type: "DATA_CHANGED";
|
|
@@ -536,7 +536,7 @@ declare const idOcrStateMachine: xstate897.StateMachine<IdOcrContext, {
|
|
|
536
536
|
type: "CONTINUE";
|
|
537
537
|
} | {
|
|
538
538
|
type: "RETRY";
|
|
539
|
-
},
|
|
539
|
+
}, xstate918.AnyEventObject>;
|
|
540
540
|
}) => {
|
|
541
541
|
params: UpdateOcrDataParams;
|
|
542
542
|
isSecondId: boolean;
|
package/dist/id-ocr.esm.js
CHANGED
|
@@ -3,7 +3,7 @@ import { n as eventModuleNames, o as createManagerInstrumentation } from "./even
|
|
|
3
3
|
import "./endpoints-BPHddOTi.esm.js";
|
|
4
4
|
import { c as createManager, s as createActor } from "./xstate.esm-CWoFJOio.esm.js";
|
|
5
5
|
import "./cpf-DuVa7wl0.esm.js";
|
|
6
|
-
import { a as MIN_AGE, i as CPFFlowIds, n as OCR_FIELDS, r as getOcrFields, t as idOcrStateMachine } from "./idOcrStateMachine-
|
|
6
|
+
import { a as MIN_AGE, i as CPFFlowIds, n as OCR_FIELDS, r as getOcrFields, t as idOcrStateMachine } from "./idOcrStateMachine-C8BBD47N.esm.js";
|
|
7
7
|
|
|
8
8
|
//#region src/modules/id-ocr/idOcrActor.ts
|
|
9
9
|
function createIdOcrActor(options) {
|