@incodetech/core 2.4.0 → 2.4.1-agentic
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-DcPOC2gS.esm.js → FaceDetectionProvider-B83VmClw.esm.js} +29 -64
- package/dist/IBrowserEnvironmentCapability-D7JG7ML3.esm.js +16 -0
- package/dist/IGeolocationCapability-r49Qo7rR.d.ts +10 -0
- package/dist/{IWasmUtilCapability-GF2n7sfm.d.ts → IWasmUtilCapability-Cqiaxydi.d.ts} +31 -4
- package/dist/{PhoneValidationProvider-SZiOS0jB.esm.js → PhoneValidationProvider-Co4zk2en.esm.js} +7 -0
- package/dist/{StreamCanvasCapture-7JRf-2ck.d.ts → StreamCanvasCapture-C3xNfOsv.d.ts} +12 -3
- package/dist/{WasmUtilProvider-DtJuBdt-.esm.js → WasmUtilProvider-GTkoJyFY.esm.js} +75 -22
- package/dist/{addressSearch-DPjIKJrX.esm.js → addressSearch-41sMcnJk.esm.js} +72 -31
- package/dist/{advanceableErrors-q_pfU3Cn.esm.js → advanceableErrors-k-U-cL5m.esm.js} +1 -2
- package/dist/ae-signature.esm.js +1 -1
- package/dist/antifraud.esm.js +2 -2
- package/dist/{antifraudManager-CaweCYnY.esm.js → antifraudManager-CQ08atTC.esm.js} +2 -2
- package/dist/{antifraudStateMachine-DRl0UVyA.esm.js → antifraudStateMachine-BcsUTTIr.esm.js} +1 -1
- package/dist/{api-Cz90EHyu.esm.js → api-BO8JA7Pf.esm.js} +6 -5
- package/dist/{apiError-DPwFas2f.esm.js → apiError-CfuIvnUy.esm.js} +1 -1
- package/dist/attemptCarry-BjTJ6bMQ.esm.js +45 -0
- package/dist/authentication.d.ts +3 -3
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-BIZC55Bi.d.ts → authenticationManager-C-cOki0Y.d.ts} +1 -1
- package/dist/{authenticationManager-2Lr5V_7p.esm.js → authenticationManager-DvmklBTE.esm.js} +5 -5
- package/dist/{authenticationStateMachine-C99B0GFP.esm.js → authenticationStateMachine-BL2ptOA0.esm.js} +3 -3
- package/dist/{backCameraStream-CMvXj4X4.esm.js → backCameraStream-C5_NNfUN.esm.js} +3 -43
- package/dist/{browser-DlFgHpoC-DnyrCR8r.esm.js → browser-pQZA35G2-DtkAf6sn.esm.js} +161 -150
- package/dist/{camera-sIa9ceW2.esm.js → camera-E_Kcre4O.esm.js} +15 -23
- package/dist/camera.esm.js +1 -1
- package/dist/certificate-issuance.esm.js +2 -2
- package/dist/{certificateIssuanceManager-BfeMv2PU.esm.js → certificateIssuanceManager-CM0fuqDC.esm.js} +2 -2
- package/dist/{certificateIssuanceStateMachine-Frgjbjw8.esm.js → certificateIssuanceStateMachine-kksIUOPD.esm.js} +2 -2
- package/dist/cnpj-Co1ottYN.esm.js +77 -0
- package/dist/connectivity-HSl0diCx.esm.js +133 -0
- package/dist/consent.d.ts +1 -1
- package/dist/consent.esm.js +2 -2
- package/dist/{consentManager-CvEu8h_W.esm.js → consentManager-CBwFozhv.esm.js} +4 -3
- package/dist/{consentManager-Cv_0QKLD.d.ts → consentManager-_q9yJUku.d.ts} +14 -7
- package/dist/{consentStateMachine-DJTgN_-1.esm.js → consentStateMachine-CpmRAcr2.esm.js} +20 -7
- package/dist/cross-document-data-match.esm.js +1 -1
- package/dist/{crossDocumentDataMatchManager-Cu141CE8.esm.js → crossDocumentDataMatchManager-64O8t10a.esm.js} +2 -2
- package/dist/curp-validation.d.ts +1 -1
- package/dist/curp-validation.esm.js +2 -2
- package/dist/{curpValidationManager-B-z9q5V3.esm.js → curpValidationManager-CLgJQcx0.esm.js} +3 -2
- package/dist/{curpValidationManager-C9sqoh9n.d.ts → curpValidationManager-CXpFE-Mv.d.ts} +1 -1
- package/dist/{curpValidationStateMachine-vDEFLMPw.esm.js → curpValidationStateMachine-Bx9YhVkJ.esm.js} +28 -20
- package/dist/custom-fields.esm.js +1 -1
- package/dist/custom-watchlist.esm.js +2 -2
- package/dist/{customFieldsManager-D1ex2cFM.esm.js → customFieldsManager-DWt_0YtJ.esm.js} +2 -2
- package/dist/{customWatchlistManager-CTI-SGk0.esm.js → customWatchlistManager-D8o-2Nej.esm.js} +2 -2
- package/dist/{customWatchlistStateMachine-hmRd0f2I.esm.js → customWatchlistStateMachine-Sbi6DIcK.esm.js} +1 -1
- package/dist/{deepsightLoader-DeNvGU3c.esm.js → deepsightLoader-DMxtowCm.esm.js} +6 -28
- package/dist/{deepsightService-CKTYDIXD.esm.js → deepsightService-twg3bXqY.esm.js} +20 -59
- package/dist/{createCameraCycleOwnership-Dj_LHUvN.esm.js → desktopCameraElection-kHY2IDJi.esm.js} +177 -40
- package/dist/device.esm.js +2 -2
- package/dist/document-capture.d.ts +2 -2
- package/dist/document-capture.esm.js +2 -2
- package/dist/{documentCaptureManager-DkyDtm3Y.d.ts → documentCaptureManager-6tnnDkMX.d.ts} +14 -2
- package/dist/{documentCaptureManager-DUJwpKC5.esm.js → documentCaptureManager-CMSC_Mhd.esm.js} +26 -19
- package/dist/{documentCaptureStateMachine-B8i7GnLh.esm.js → documentCaptureStateMachine-BCwD5Rto.esm.js} +43 -35
- package/dist/dynamic-forms.d.ts +2 -2
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-C0dHs1ty.d.ts → dynamicFormsManager-9kwY8Bf5.d.ts} +1 -1
- package/dist/{dynamicFormsManager-DiKYjcF3.esm.js → dynamicFormsManager-DU6W1e20.esm.js} +2 -2
- package/dist/{dynamicFormsStateMachine-DEI45xYW.esm.js → dynamicFormsStateMachine-C8Z7k3vo.esm.js} +2 -2
- package/dist/ekyb.d.ts +4 -4
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-BaZ_7CEu.d.ts → ekybManager-TB6ZG5lX.d.ts} +2 -2
- package/dist/{ekybManager-8WLkNcqg.esm.js → ekybManager-TGfqyjuu.esm.js} +2 -2
- package/dist/{ekybStateMachine-BLRT45Ex.esm.js → ekybStateMachine-DBgFuEPK.esm.js} +26 -44
- package/dist/ekyc.d.ts +3 -3
- package/dist/ekyc.esm.js +3 -3
- package/dist/{ekycManager-DW-ynodd.d.ts → ekycManager-BSQteIfC.d.ts} +1 -1
- package/dist/{ekycManager-BO-Lui3t.esm.js → ekycManager-C2cgG2Pl.esm.js} +2 -2
- package/dist/ekycStateMachine-CuNF7z4O.esm.js +7505 -0
- package/dist/ekycUtils-BFncpC4F.esm.js +1401 -0
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-CcIMOb_Y.esm.js → electronicSignatureManager-C7pqXsRm.esm.js} +4 -4
- package/dist/email.esm.js +2 -2
- package/dist/{emailManager-ButFktRm.esm.js → emailManager-FH_CP0cT.esm.js} +2 -2
- package/dist/{emailStateMachine-BXtlC0NV.esm.js → emailStateMachine-Cx-uTaBV.esm.js} +32 -20
- package/dist/{events-Du2A4-Qr.esm.js → events-CQteqXfy.esm.js} +2 -2
- package/dist/events.esm.js +1 -1
- package/dist/extensibility.d.ts +34 -20
- package/dist/extensibility.esm.js +34 -34
- package/dist/{externalFetch-DrR9xshk.esm.js → externalFetch-CQY41QT1.esm.js} +4 -1
- package/dist/face-match.d.ts +1 -1
- package/dist/face-match.esm.js +2 -2
- package/dist/{faceCaptureManagerFactory-1hzeS_rB.d.ts → faceCaptureManagerFactory-C-xKdj-d.d.ts} +71 -66
- package/dist/{faceCaptureManagerFactory-BlGvXzXA.esm.js → faceCaptureManagerFactory-CBm05KnT.esm.js} +4 -4
- package/dist/{faceCaptureSetup-TY8RXc2N.esm.js → faceCaptureSetup-BQjCbL51.esm.js} +82 -64
- package/dist/{faceMatchManager-DWFUQjMQ.esm.js → faceMatchManager-B2zp7yP4.esm.js} +2 -2
- package/dist/{faceMatchManager-DIgG-UFS.d.ts → faceMatchManager-Z4UDLwAv.d.ts} +16 -7
- package/dist/{faceMatchStateMachine-CUCvlydD.esm.js → faceMatchStateMachine-ByTMQCUC.esm.js} +40 -27
- package/dist/{feature-management-B5rR10uS.esm.js → feature-management-DjAG5lsJ.esm.js} +1 -1
- package/dist/feature-management.esm.js +1 -1
- package/dist/field-comparison.esm.js +1 -1
- package/dist/{fieldComparisonManager-v3knTYV_.esm.js → fieldComparisonManager-CC0vKmpf.esm.js} +2 -2
- package/dist/fiscal-qr.esm.js +1 -1
- package/dist/{fiscalQrManager-Dt9fHG7h.esm.js → fiscalQrManager-Be-r4oZj.esm.js} +4 -4
- package/dist/flow-events.d.ts +1 -1
- package/dist/flow.d.ts +10 -10
- package/dist/flow.esm.js +8 -11
- package/dist/{flowCompletionService-BDI5QpfR.esm.js → flowCompletionService-ChMU2v79.esm.js} +2 -2
- package/dist/{flowServices-roD0oIQL.esm.js → flowServices-g2tVWsJl.esm.js} +8 -50
- package/dist/geolocation.d.ts +1 -1
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-Dn24g1fl.d.ts → geolocationManager-6e1i9UIR.d.ts} +15 -17
- package/dist/{geolocationManager-DnONzWL5.esm.js → geolocationManager-DLbvZwUB.esm.js} +6 -8
- package/dist/{geolocationStateMachine-eWy_G4Os.esm.js → geolocationStateMachine-CAJVongM.esm.js} +12 -8
- package/dist/{getDeviceClass-bsWdEDxP.esm.js → getDeviceClass-DoIWuKI8.esm.js} +1 -1
- package/dist/government-validation.esm.js +2 -2
- package/dist/{governmentValidationManager-BtXWHICu.esm.js → governmentValidationManager-CkX9TEkh.esm.js} +2 -2
- package/dist/{governmentValidationStateMachine-COL-Vs48.esm.js → governmentValidationStateMachine-PTPCP26N.esm.js} +1 -1
- package/dist/home.d.ts +1 -1
- package/dist/home.esm.js +1 -1
- package/dist/http.esm.js +1 -1
- package/dist/id-ocr.esm.js +2 -2
- package/dist/id-selfie-flow.d.ts +1 -1
- package/dist/id-selfie-flow.esm.js +9 -9
- package/dist/id-verification.esm.js +2 -2
- package/dist/id.d.ts +3 -16
- package/dist/id.esm.js +3 -3
- package/dist/{idCaptureDefaults-BGsG2OAs.esm.js → idCaptureDefaults-MSQoqScU.esm.js} +3 -3
- package/dist/{idCaptureManager-0M02hSuC.d.ts → idCaptureManager-DzTfQ1Am.d.ts} +66 -5
- package/dist/{idCaptureManager-BrfYjCm_.esm.js → idCaptureManager-zZdTcpG1.esm.js} +63 -17
- package/dist/{idCaptureServices-BSj6EH2l.esm.js → idCaptureServices-8OHinO0N.esm.js} +9 -9
- package/dist/{idCaptureStateMachine-dXKBYHQp.esm.js → idCaptureStateMachine-B3G6XoDG.esm.js} +914 -536
- package/dist/{idOcrManager-D3-HNMXP.esm.js → idOcrManager-B64-fjWg.esm.js} +2 -2
- package/dist/{idOcrStateMachine-DyENX6Ki.esm.js → idOcrStateMachine-B1aZnobs.esm.js} +2 -2
- package/dist/{idVerificationManager-iWz7Avkr.esm.js → idVerificationManager-_Kebv-Ue.esm.js} +2 -2
- package/dist/{idVerificationStateMachine-CL1kUdBe.esm.js → idVerificationStateMachine-DQn6c84z.esm.js} +1 -1
- package/dist/identity-reuse.esm.js +2 -2
- package/dist/{identityReuseManager-CD1ucp1d.esm.js → identityReuseManager-DDXkNVZi.esm.js} +2 -2
- package/dist/{identityReuseStateMachine-DfV81wQC.esm.js → identityReuseStateMachine-Bcnkbjf8.esm.js} +1 -1
- package/dist/{index-BKOWUhxG.d.ts → index-DEfwds5y.d.ts} +55 -8
- package/dist/{index-CKQ9QBZP.d.ts → index-DMDAk85K.d.ts} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/{invokeOnCaptureCallback-DYrkOXO6.esm.js → invokeOnCaptureCallback-CXIBwBeE.esm.js} +1 -1
- package/dist/mandatory-consent.d.ts +2 -2
- package/dist/mandatory-consent.esm.js +2 -2
- package/dist/{mandatoryConsentManager-Cwqx1nK7.esm.js → mandatoryConsentManager-43W5d_8G.esm.js} +4 -3
- package/dist/{mandatoryConsentManager-BQ43yndC.d.ts → mandatoryConsentManager-xx3mY-xw.d.ts} +11 -4
- package/dist/{mandatoryConsentStateMachine-pXWqAHo_.esm.js → mandatoryConsentStateMachine-CVlgdlnt.esm.js} +20 -7
- package/dist/{multipartRecordingService-CLwrF5wD.esm.js → multipartRecordingService-DMBxHKS2.esm.js} +3 -13
- package/dist/nationalIds-B91f_RuB.esm.js +99 -0
- package/dist/{permissionGuards-gcy3U0SL.esm.js → permissionGuards-B3OPL8Si.esm.js} +1 -1
- package/dist/{permissionServices-Ca-tSNhT.esm.js → permissionServices-DnBAN_hW.esm.js} +4 -4
- package/dist/phone-number.d.ts +7 -1
- package/dist/phone-number.esm.js +15 -2
- package/dist/phone.d.ts +1 -1
- package/dist/phone.esm.js +2 -2
- package/dist/{phoneManager-BO-LTih5.d.ts → phoneManager-6nrJkvkG.d.ts} +5 -0
- package/dist/{phoneManager-KKUq-Vgo.esm.js → phoneManager-C6jut_pz.esm.js} +3 -3
- package/dist/{phoneStateMachine-D2QWS2cu.esm.js → phoneStateMachine-T1-drWfG.esm.js} +37 -25
- package/dist/{phoneValidation-DnBcNUNh.esm.js → phoneValidation-OggtfjRt.esm.js} +1 -2
- package/dist/{platform-DkcRc9JV.esm.js → platform-aPh7gTWh.esm.js} +15 -1
- package/dist/processFaceMatch-BWme3kVV.esm.js +21 -0
- package/dist/qe-signature.esm.js +1 -1
- package/dist/redirect-to-mobile.d.ts +2 -2
- package/dist/redirect-to-mobile.esm.js +2 -2
- package/dist/{redirectToMobileManager-uHW3dyuQ.esm.js → redirectToMobileManager-BJXC6Kx9.esm.js} +4 -3
- package/dist/{redirectToMobileManager-CVsvpVbQ.d.ts → redirectToMobileManager-Dm9ctRCC.d.ts} +3 -1
- package/dist/{redirectToMobileStateMachine-b-H-ipGM.esm.js → redirectToMobileStateMachine-BBMAc2Gb.esm.js} +27 -6
- package/dist/{runChildModule-BF_atgNx.esm.js → runChildModule-DPHTqSdF.esm.js} +3 -3
- package/dist/{sdkVersion-CsIbltJF.esm.js → sdkVersion-C3_P-Qbq.esm.js} +1 -1
- package/dist/selfie.d.ts +4 -4
- package/dist/selfie.esm.js +10 -10
- package/dist/{selfieErrorUtils-BY0-YbPW.esm.js → selfieErrorUtils-BL0BLMnp.esm.js} +1 -1
- package/dist/{selfieManager-BJdNu_nd.d.ts → selfieManager-BMmpUii2.d.ts} +1 -1
- package/dist/{selfieManager-vAAwzsHk.esm.js → selfieManager-Cbliomv7.esm.js} +5 -5
- package/dist/{selfieStateMachine-BFVp3ElQ.esm.js → selfieStateMachine-B5m_Kn0O.esm.js} +3 -3
- package/dist/{session-CpwfoVdH.esm.js → session-DAaAewMX.esm.js} +77 -9
- package/dist/session.d.ts +96 -10
- package/dist/session.esm.js +7 -6
- package/dist/{sessionInitializer-BTjYgE-V.esm.js → sessionInitializer-CWFT4dfw.esm.js} +402 -202
- package/dist/{setup-BInNAvQw.esm.js → setup-CDAKwTr7.esm.js} +32 -19
- package/dist/{setup-YPKTUCY5.d.ts → setup-D9qt8YVU.d.ts} +2 -2
- package/dist/signature.esm.js +2 -2
- package/dist/{signatureManager-f_dPAGXn.esm.js → signatureManager-BeEVCcsC.esm.js} +2 -2
- package/dist/{signatureStateMachine-C-nUq_oq.esm.js → signatureStateMachine-_1c1vSid.esm.js} +1 -1
- package/dist/{stats-BEvexnKC.esm.js → stats-BpMz-hTP.esm.js} +1 -1
- package/dist/stats.esm.js +1 -1
- package/dist/{tri-xzRLIIMN.esm.js → tri-BajQnjbf.esm.js} +142 -8
- package/dist/tri.d.ts +1 -1
- package/dist/tri.esm-CzTNi5Q_.esm.js +3826 -0
- package/dist/tri.esm.js +1 -1
- package/dist/{trueSightService-BMT-TubT.esm.js → trueSightService-BujtUIW6.esm.js} +19 -10
- package/dist/trust-graph.esm.js +1 -1
- package/dist/{types-yPH8lAH-.d.ts → types--3HDl2SF.d.ts} +2 -2
- package/dist/types-B2FK_wYb.d.ts +249 -0
- package/dist/types-B9C8W01q.d.ts +34 -0
- package/dist/{types-0L-eFDmr.d.ts → types-C397LhmN.d.ts} +1 -1
- package/dist/types-D9r3zRfY.d.ts +6 -0
- package/dist/{types-DPIDuhut.d.ts → types-DNVzoRvi.d.ts} +2 -1
- package/dist/{types-B6HsSzpk.d.ts → types-DuD8TRJU.d.ts} +3 -2
- package/dist/{types-Ckir_BEs.d.ts → types-PTZHRhGX.d.ts} +1 -1
- package/dist/{types-DUnFZ08M.d.ts → types-ZTZelfbM.d.ts} +2 -2
- package/dist/{types-CK8Jbjkp.d.ts → types-e8fCsvvk.d.ts} +1 -1
- package/dist/{types-BAxn7MpY.d.ts → types-xEEWCx1j.d.ts} +123 -48
- package/dist/{urlUtils-6jsE6rKp.esm.js → urlUtils-eYiyWjh0.esm.js} +4 -1
- package/dist/video-selfie.d.ts +8 -8
- package/dist/video-selfie.esm.js +95 -22
- package/dist/{videoSelfieCameraWarmer-D1xA0u8y.esm.js → videoSelfieCameraWarmer-DjkPpoj_.esm.js} +18 -21
- package/dist/{videoSelfieStepDetector-CGsTltqB.d.ts → videoSelfieStepDetector-RfSmlFFW.d.ts} +9 -4
- package/dist/{warmup-BElYWRh7.esm.js → warmup-BkfxQZsC.esm.js} +175 -11
- package/dist/wasm.d.ts +2 -2
- package/dist/wasm.esm.js +3 -3
- package/dist/{wasmDsFlagSync-CYj5LL9z.esm.js → wasmDsFlagSync-BhU5H2oR.esm.js} +1 -1
- package/dist/wasmMetadataVersionSync-U8EFUr1T.esm.js +27 -0
- package/dist/{wasmWebClient-BjZw_7OB.esm.js → wasmWebClient-DTj9auyA.esm.js} +43 -17
- package/dist/watchlist-for-business.d.ts +2 -1
- package/dist/watchlist-for-business.esm.js +2 -2
- package/dist/watchlist.esm.js +2 -2
- package/dist/{watchlistForBusinessManager-CZZOFkGl.esm.js → watchlistForBusinessManager-CVay6-9A.esm.js} +37 -7
- package/dist/{watchlistForBusinessManager-B3GDPZrr.d.ts → watchlistForBusinessManager-DX2AyM4Y.d.ts} +54 -18
- package/dist/watchlistForBusinessStateMachine-DA6K5na4.esm.js +166 -0
- package/dist/{watchlistManager-DXtX94SN.esm.js → watchlistManager-B8gQ_rw3.esm.js} +2 -2
- package/dist/{watchlistStateMachine-McALifag.esm.js → watchlistStateMachine-CSi_ZhtT.esm.js} +1 -1
- package/dist/workflow.d.ts +5 -2
- package/dist/workflow.esm.js +57 -47
- package/package.json +2 -1
- package/dist/IBrowserEnvironmentCapability-DEaRRk-R.esm.js +0 -9
- package/dist/ekycStateMachine-CDnI_NRq.esm.js +0 -1443
- package/dist/ekycUtils-zY8CdKJL.esm.js +0 -300
- package/dist/thumbmark.esm-CRc0cYvz.esm.js +0 -1242
- package/dist/tri.esm-BIjHhBJ2.esm.js +0 -2620
- package/dist/types-BvLo3U4u.d.ts +0 -134
- package/dist/types-zOgZqMni.d.ts +0 -6
- package/dist/watchlistForBusinessStateMachine-B66E7jud.esm.js +0 -78
- /package/dist/{types-BSBzhHRH2.d.ts → types-BSBzhHRH.d.ts} +0 -0
package/dist/{watchlistForBusinessManager-B3GDPZrr.d.ts → watchlistForBusinessManager-DX2AyM4Y.d.ts}
RENAMED
|
@@ -1,36 +1,47 @@
|
|
|
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 { n as WatchlistForBusinessValidationErrors, t as WatchlistForBusinessConfig } from "./types-B9C8W01q.js";
|
|
4
5
|
//#region src/modules/watchlist-for-business/watchlistForBusinessStateMachine.d.ts
|
|
5
6
|
declare const watchlistForBusinessMachine: any;
|
|
6
7
|
type WatchlistForBusinessMachine = typeof watchlistForBusinessMachine;
|
|
7
8
|
//#endregion
|
|
8
9
|
//#region src/modules/watchlist-for-business/watchlistForBusinessActor.d.ts
|
|
9
|
-
type
|
|
10
|
-
|
|
11
|
-
//#region src/modules/watchlist-for-business/types.d.ts
|
|
12
|
-
/**
|
|
13
|
-
* Configuration for the watchlist-for-business module.
|
|
14
|
-
*
|
|
15
|
-
* No server-side configuration is required — the module collects
|
|
16
|
-
* country and business name from the user and submits them to the
|
|
17
|
-
* business watchlist endpoint.
|
|
18
|
-
*/
|
|
19
|
-
type WatchlistForBusinessConfig = Record<string, never>;
|
|
20
|
-
type WatchlistForBusinessValidationErrors = {
|
|
21
|
-
businessName?: string;
|
|
10
|
+
type CreateWatchlistForBusinessActorOptions = {
|
|
11
|
+
config?: WatchlistForBusinessConfig;
|
|
22
12
|
};
|
|
13
|
+
type WatchlistForBusinessActor = ActorRefFrom<WatchlistForBusinessMachine>;
|
|
23
14
|
//#endregion
|
|
24
15
|
//#region src/modules/watchlist-for-business/watchlistForBusinessManager.d.ts
|
|
25
16
|
/** Waiting for `load()` to be called. */
|
|
26
17
|
type WatchlistForBusinessIdleState = {
|
|
27
18
|
status: 'idle';
|
|
28
19
|
};
|
|
29
|
-
/**
|
|
20
|
+
/**
|
|
21
|
+
* Form is ready — use `setCountry()`, `setBusinessName()`, `setTaxId()`,
|
|
22
|
+
* `setDateOfIncorporation()`, and `submit()`.
|
|
23
|
+
*/
|
|
30
24
|
type WatchlistForBusinessFormState = {
|
|
31
25
|
status: 'form';
|
|
32
26
|
country: string;
|
|
33
27
|
businessName: string;
|
|
28
|
+
/** Optional. Sent only when `showTaxId` is true and the value is not blank. */
|
|
29
|
+
taxId: string;
|
|
30
|
+
/**
|
|
31
|
+
* Optional, `YYYY-MM-DD`. Sent only when `showDateOfIncorporation` is true
|
|
32
|
+
* and the value is not blank.
|
|
33
|
+
*/
|
|
34
|
+
dateOfIncorporation: string;
|
|
35
|
+
/** Whether the module config enables the optional Tax ID input. */
|
|
36
|
+
showTaxId: boolean;
|
|
37
|
+
/** Whether the module config enables the optional date-of-incorporation input. */
|
|
38
|
+
showDateOfIncorporation: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Latest allowed date of incorporation (`YYYY-MM-DD`): today in the user's
|
|
41
|
+
* local time. Use it as the date input's `max`; a later date fails submit.
|
|
42
|
+
*/
|
|
43
|
+
maxDateOfIncorporation: string;
|
|
44
|
+
/** Whether the required business name is filled. Optional fields never affect it. */
|
|
34
45
|
isValid: boolean;
|
|
35
46
|
validationErrors?: WatchlistForBusinessValidationErrors;
|
|
36
47
|
canSubmit: boolean;
|
|
@@ -59,6 +70,11 @@ type WatchlistForBusinessState = WatchlistForBusinessIdleState | WatchlistForBus
|
|
|
59
70
|
*
|
|
60
71
|
* On API error the module completes silently (fire-and-forget).
|
|
61
72
|
*
|
|
73
|
+
* @param options.config - Optional module config. `taxIdEnabled` and
|
|
74
|
+
* `dateOfIncorporationEnabled` turn on the optional Tax ID and date-of-
|
|
75
|
+
* incorporation inputs. Without config only country and business name are
|
|
76
|
+
* collected.
|
|
77
|
+
*
|
|
62
78
|
* @example Headless usage
|
|
63
79
|
* ```typescript
|
|
64
80
|
* import { createWatchlistForBusinessManager } from '@incodetech/core/watchlist-for-business';
|
|
@@ -74,14 +90,24 @@ type WatchlistForBusinessState = WatchlistForBusinessIdleState | WatchlistForBus
|
|
|
74
90
|
* manager.stop();
|
|
75
91
|
* ```
|
|
76
92
|
*/
|
|
77
|
-
declare function createWatchlistForBusinessManager(): Manager<WatchlistForBusinessState> & {
|
|
93
|
+
declare function createWatchlistForBusinessManager(options?: CreateWatchlistForBusinessActorOptions): Manager<WatchlistForBusinessState> & {
|
|
78
94
|
/** Transitions from `idle` to the form. Must be called before any other method. */
|
|
79
95
|
load(): void;
|
|
80
96
|
/** Updates the selected country code (ISO 3166-1 alpha-2). */
|
|
81
97
|
setCountry(country: string): void;
|
|
82
98
|
/** Updates the business name field and recomputes validity. */
|
|
83
99
|
setBusinessName(value: string): void;
|
|
84
|
-
/**
|
|
100
|
+
/** Updates the optional Tax ID field. A blank value is not sent. */
|
|
101
|
+
setTaxId(value: string): void;
|
|
102
|
+
/**
|
|
103
|
+
* Updates the optional date of incorporation (`YYYY-MM-DD`). A blank value
|
|
104
|
+
* is not sent; a future date blocks submit.
|
|
105
|
+
*/
|
|
106
|
+
setDateOfIncorporation(value: string): void;
|
|
107
|
+
/**
|
|
108
|
+
* Submits the form. Transitions only when the business name is filled and
|
|
109
|
+
* every filled optional field is valid; otherwise sets `validationErrors`.
|
|
110
|
+
*/
|
|
85
111
|
submit(): void;
|
|
86
112
|
};
|
|
87
113
|
declare function createWatchlistForBusinessManagerFromActor(actor: WatchlistForBusinessActor): Manager<WatchlistForBusinessState> & {
|
|
@@ -91,9 +117,19 @@ declare function createWatchlistForBusinessManagerFromActor(actor: WatchlistForB
|
|
|
91
117
|
setCountry(country: string): void;
|
|
92
118
|
/** Updates the business name field and recomputes validity. */
|
|
93
119
|
setBusinessName(value: string): void;
|
|
94
|
-
/**
|
|
120
|
+
/** Updates the optional Tax ID field. A blank value is not sent. */
|
|
121
|
+
setTaxId(value: string): void;
|
|
122
|
+
/**
|
|
123
|
+
* Updates the optional date of incorporation (`YYYY-MM-DD`). A blank value
|
|
124
|
+
* is not sent; a future date blocks submit.
|
|
125
|
+
*/
|
|
126
|
+
setDateOfIncorporation(value: string): void;
|
|
127
|
+
/**
|
|
128
|
+
* Submits the form. Transitions only when the business name is filled and
|
|
129
|
+
* every filled optional field is valid; otherwise sets `validationErrors`.
|
|
130
|
+
*/
|
|
95
131
|
submit(): void;
|
|
96
132
|
};
|
|
97
133
|
type WatchlistForBusinessManager = ReturnType<typeof createWatchlistForBusinessManager>;
|
|
98
134
|
//#endregion
|
|
99
|
-
export { createWatchlistForBusinessManager as a,
|
|
135
|
+
export { createWatchlistForBusinessManager as a, watchlistForBusinessMachine as c, WatchlistForBusinessState as i, WatchlistForBusinessFormState as n, createWatchlistForBusinessManagerFromActor as o, WatchlistForBusinessManager as r, WatchlistForBusinessActor as s, WatchlistForBusinessFinishedState as t };
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import { n as getTimestamp } from "./IBrowserEnvironmentCapability-D7JG7ML3.esm.js";
|
|
2
|
+
import { t as api, u as endpoints } from "./api-BO8JA7Pf.esm.js";
|
|
3
|
+
import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
4
|
+
import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
5
|
+
import { r as validateCNPJ, t as COUNTRIES_WITH_CNPJ_VALIDATION } from "./cnpj-Co1ottYN.esm.js";
|
|
6
|
+
//#region ../infra/src/time/epochMsToLocalIsoDate.ts
|
|
7
|
+
/**
|
|
8
|
+
* Converts an epoch-milliseconds timestamp to the user's local calendar date
|
|
9
|
+
* as `YYYY-MM-DD` — the format of an `<input type="date">` value.
|
|
10
|
+
*
|
|
11
|
+
* Use it to compare a user-entered date with "today" as the user sees it.
|
|
12
|
+
* `DateFormattingProvider.utcToIsoDateString` returns the UTC date, which is a
|
|
13
|
+
* day off near midnight outside UTC. Lives in Infra (L0) because Core cannot
|
|
14
|
+
* touch the `Date` global (`no-browser-api-in-core`); see `epochMsToIsoString`.
|
|
15
|
+
*/
|
|
16
|
+
function epochMsToLocalIsoDate(epochMs) {
|
|
17
|
+
const date = new Date(epochMs);
|
|
18
|
+
const month = String(date.getMonth() + 1).padStart(2, "0");
|
|
19
|
+
const day = String(date.getDate()).padStart(2, "0");
|
|
20
|
+
return `${date.getFullYear()}-${month}-${day}`;
|
|
21
|
+
}
|
|
22
|
+
//#endregion
|
|
23
|
+
//#region src/modules/watchlist-for-business/watchlistForBusinessServices.ts
|
|
24
|
+
async function submitWatchlistForBusiness(data, signal) {
|
|
25
|
+
const res = await api.post(endpoints.watchlistForBusinessSubmit, data, { signal });
|
|
26
|
+
if (!res.ok) throw new Error(`POST ${endpoints.watchlistForBusinessSubmit} failed: ${res.status} ${res.statusText}`);
|
|
27
|
+
return res.data;
|
|
28
|
+
}
|
|
29
|
+
//#endregion
|
|
30
|
+
//#region src/modules/watchlist-for-business/watchlistForBusinessStateMachine.ts
|
|
31
|
+
const DEFAULT_COUNTRY = "US";
|
|
32
|
+
const BUSINESS_NAME_REQUIRED_ERROR = "dynamicForms.fieldRequired";
|
|
33
|
+
const INVALID_TAX_ID_ERROR = "ekyb.error.invalidTaxId";
|
|
34
|
+
const FUTURE_DATE_OF_INCORPORATION_ERROR = "watchlistForBusiness.dateOfIncorporationFuture";
|
|
35
|
+
/**
|
|
36
|
+
* Country-specific Tax ID format checks, applied only to a filled Tax ID.
|
|
37
|
+
* Countries without an entry accept any value. The CNPJ countries come from
|
|
38
|
+
* the shared list eKYB also uses, so the two modules cannot drift.
|
|
39
|
+
*/
|
|
40
|
+
const TAX_ID_VALIDATORS = Object.fromEntries(COUNTRIES_WITH_CNPJ_VALIDATION.map((country) => [country, validateCNPJ]));
|
|
41
|
+
/**
|
|
42
|
+
* Latest allowed date of incorporation: today in the user's local time, as
|
|
43
|
+
* `YYYY-MM-DD`. The single source for both the future-date check and the
|
|
44
|
+
* date picker's `max` (exposed through the manager's `form` state).
|
|
45
|
+
*/
|
|
46
|
+
function getMaxDateOfIncorporation() {
|
|
47
|
+
return epochMsToLocalIsoDate(getTimestamp());
|
|
48
|
+
}
|
|
49
|
+
function computeIsValid(businessName) {
|
|
50
|
+
return businessName.trim().length > 0;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Returns the trimmed value of an optional field, or `undefined` when the
|
|
54
|
+
* field is disabled or blank — a blank optional field is never sent.
|
|
55
|
+
*/
|
|
56
|
+
function optionalValue(enabled, value) {
|
|
57
|
+
if (!enabled) return void 0;
|
|
58
|
+
const trimmed = value.trim();
|
|
59
|
+
return trimmed.length > 0 ? trimmed : void 0;
|
|
60
|
+
}
|
|
61
|
+
function getTaxId(context) {
|
|
62
|
+
return optionalValue(context.config?.taxIdEnabled, context.taxId);
|
|
63
|
+
}
|
|
64
|
+
function getDateOfIncorporation(context) {
|
|
65
|
+
return optionalValue(context.config?.dateOfIncorporationEnabled, context.dateOfIncorporation);
|
|
66
|
+
}
|
|
67
|
+
function computeValidationErrors(context) {
|
|
68
|
+
const errors = {};
|
|
69
|
+
if (!computeIsValid(context.businessName)) errors.businessName = BUSINESS_NAME_REQUIRED_ERROR;
|
|
70
|
+
const taxId = getTaxId(context);
|
|
71
|
+
const validateTaxId = TAX_ID_VALIDATORS[context.country];
|
|
72
|
+
if (taxId && validateTaxId && !validateTaxId(taxId)) errors.taxId = INVALID_TAX_ID_ERROR;
|
|
73
|
+
const dateOfIncorporation = getDateOfIncorporation(context);
|
|
74
|
+
if (dateOfIncorporation && dateOfIncorporation > getMaxDateOfIncorporation()) errors.dateOfIncorporation = FUTURE_DATE_OF_INCORPORATION_ERROR;
|
|
75
|
+
return Object.keys(errors).length > 0 ? errors : void 0;
|
|
76
|
+
}
|
|
77
|
+
function buildSubmitRequest(context) {
|
|
78
|
+
const request = {
|
|
79
|
+
countryCodes: [context.country],
|
|
80
|
+
businessName: context.businessName.trim()
|
|
81
|
+
};
|
|
82
|
+
const taxId = getTaxId(context);
|
|
83
|
+
if (taxId) request.taxId = taxId;
|
|
84
|
+
const dateOfIncorporation = getDateOfIncorporation(context);
|
|
85
|
+
if (dateOfIncorporation) request.dateOfIncorporation = dateOfIncorporation;
|
|
86
|
+
return request;
|
|
87
|
+
}
|
|
88
|
+
/** Drops one field's error once the user edits what it depends on. */
|
|
89
|
+
function withoutValidationError(context, field) {
|
|
90
|
+
if (!context.validationErrors?.[field]) return {};
|
|
91
|
+
const remaining = { ...context.validationErrors };
|
|
92
|
+
delete remaining[field];
|
|
93
|
+
return { validationErrors: Object.keys(remaining).length > 0 ? remaining : void 0 };
|
|
94
|
+
}
|
|
95
|
+
const watchlistForBusinessMachine = setup({
|
|
96
|
+
types: {
|
|
97
|
+
context: {},
|
|
98
|
+
events: {},
|
|
99
|
+
input: {}
|
|
100
|
+
},
|
|
101
|
+
actors: { submitWatchlistForBusiness: fromPromise(async ({ input, signal }) => {
|
|
102
|
+
await submitWatchlistForBusiness(input, signal);
|
|
103
|
+
}) },
|
|
104
|
+
actions: {
|
|
105
|
+
setCountry: assign(({ event }) => {
|
|
106
|
+
const { country } = event;
|
|
107
|
+
return { country };
|
|
108
|
+
}),
|
|
109
|
+
setBusinessName: assign(({ event }) => {
|
|
110
|
+
const { value } = event;
|
|
111
|
+
return {
|
|
112
|
+
businessName: value,
|
|
113
|
+
isValid: computeIsValid(value)
|
|
114
|
+
};
|
|
115
|
+
}),
|
|
116
|
+
setTaxId: assign(({ event }) => {
|
|
117
|
+
const { value } = event;
|
|
118
|
+
return { taxId: value };
|
|
119
|
+
}),
|
|
120
|
+
setDateOfIncorporation: assign(({ event }) => {
|
|
121
|
+
const { value } = event;
|
|
122
|
+
return { dateOfIncorporation: value };
|
|
123
|
+
}),
|
|
124
|
+
clearBusinessNameValidationError: assign(({ context }) => withoutValidationError(context, "businessName")),
|
|
125
|
+
clearTaxIdValidationError: assign(({ context }) => withoutValidationError(context, "taxId")),
|
|
126
|
+
clearDateOfIncorporationValidationError: assign(({ context }) => withoutValidationError(context, "dateOfIncorporation")),
|
|
127
|
+
setValidationErrors: assign(({ context }) => ({ validationErrors: computeValidationErrors(context) }))
|
|
128
|
+
},
|
|
129
|
+
guards: { canSubmit: ({ context }) => computeValidationErrors(context) === void 0 }
|
|
130
|
+
}).createMachine({
|
|
131
|
+
id: "watchlist-for-business",
|
|
132
|
+
initial: "idle",
|
|
133
|
+
context: ({ input }) => ({
|
|
134
|
+
config: input?.config ?? {},
|
|
135
|
+
country: DEFAULT_COUNTRY,
|
|
136
|
+
businessName: "",
|
|
137
|
+
taxId: "",
|
|
138
|
+
dateOfIncorporation: "",
|
|
139
|
+
isValid: false,
|
|
140
|
+
validationErrors: void 0
|
|
141
|
+
}),
|
|
142
|
+
states: {
|
|
143
|
+
idle: { on: { LOAD: { target: "form" } } },
|
|
144
|
+
form: { on: {
|
|
145
|
+
SET_COUNTRY: { actions: ["setCountry", "clearTaxIdValidationError"] },
|
|
146
|
+
SET_BUSINESS_NAME: { actions: ["setBusinessName", "clearBusinessNameValidationError"] },
|
|
147
|
+
SET_TAX_ID: { actions: ["setTaxId", "clearTaxIdValidationError"] },
|
|
148
|
+
SET_DATE_OF_INCORPORATION: { actions: ["setDateOfIncorporation", "clearDateOfIncorporationValidationError"] },
|
|
149
|
+
SUBMIT: [{
|
|
150
|
+
target: "submitting",
|
|
151
|
+
guard: "canSubmit"
|
|
152
|
+
}, { actions: "setValidationErrors" }]
|
|
153
|
+
} },
|
|
154
|
+
submitting: { invoke: {
|
|
155
|
+
id: "submitWatchlistForBusiness",
|
|
156
|
+
src: "submitWatchlistForBusiness",
|
|
157
|
+
input: ({ context }) => buildSubmitRequest(context),
|
|
158
|
+
onDone: { target: "success" },
|
|
159
|
+
onError: { target: "finished" }
|
|
160
|
+
} },
|
|
161
|
+
success: { after: { 3e3: { target: "finished" } } },
|
|
162
|
+
finished: { type: "final" }
|
|
163
|
+
}
|
|
164
|
+
});
|
|
165
|
+
//#endregion
|
|
166
|
+
export { watchlistForBusinessMachine as n, getMaxDateOfIncorporation as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CQteqXfy.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-DSajW7CJ.esm.js";
|
|
4
|
-
import { t as watchlistMachine } from "./watchlistStateMachine-
|
|
4
|
+
import { t as watchlistMachine } from "./watchlistStateMachine-CSi_ZhtT.esm.js";
|
|
5
5
|
//#region src/modules/watchlist/watchlistActor.ts
|
|
6
6
|
function createWatchlistActor() {
|
|
7
7
|
return createActor(watchlistMachine).start();
|
package/dist/{watchlistStateMachine-McALifag.esm.js → watchlistStateMachine-CSi_ZhtT.esm.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as api, u as endpoints } from "./api-
|
|
1
|
+
import { t as api, u as endpoints } from "./api-BO8JA7Pf.esm.js";
|
|
2
2
|
import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
3
3
|
import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
4
4
|
//#region src/modules/watchlist/watchlistServices.ts
|
package/dist/workflow.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { A as StateMachine, C as StateValue, D as PromiseActorLogic, a as ActorR
|
|
|
2
2
|
import { t as CallbackActorLogic } from "./callback-645_omgz.js";
|
|
3
3
|
import { t as Manager } from "./Manager-C9T5amUN.js";
|
|
4
4
|
import { a as TotalScore, i as GetTotalScoreStatusFn, n as FinishStatus, r as GetFinishStatusFn } from "./flowCompletionService-BlAHsKyv.js";
|
|
5
|
-
import { o as FlowEventSubscribable } from "./index-
|
|
5
|
+
import { o as FlowEventSubscribable } from "./index-DMDAk85K.js";
|
|
6
6
|
import { a as WorkflowModuleRegistry, i as RunChildModuleInput, r as RunChildModuleEvent, t as ModuleConfigMappers } from "./types-BQA7lRDV.js";
|
|
7
7
|
//#region src/modules/workflow/types.d.ts
|
|
8
8
|
/** Possible node types returned by the workflow server. */
|
|
@@ -215,6 +215,8 @@ type LoadingResult = {
|
|
|
215
215
|
type ProcessNextNodeInput = {
|
|
216
216
|
isInjectedNode: boolean;
|
|
217
217
|
firstNode: WorkflowNode | undefined;
|
|
218
|
+
/** The node being left; compared with the server node after a reconnect. */
|
|
219
|
+
currentNodeId: string | undefined;
|
|
218
220
|
currentNodeModuleKey: string | undefined;
|
|
219
221
|
workflowConfigId: string | undefined;
|
|
220
222
|
workflowRedirectDesktopToMobile: boolean;
|
|
@@ -889,7 +891,7 @@ declare const workflowMachine: StateMachine<WorkflowContext, {
|
|
|
889
891
|
readonly actions: readonly ["setModuleErrorCode", "trackAdvanceableModuleError"];
|
|
890
892
|
}, {
|
|
891
893
|
readonly target: "error";
|
|
892
|
-
readonly actions: readonly ["setModuleError", "trackTerminalModuleError"];
|
|
894
|
+
readonly actions: readonly ["setModuleError", "setModuleErrorCode", "trackTerminalModuleError"];
|
|
893
895
|
}];
|
|
894
896
|
readonly COMPLETE_FLOW: "completing";
|
|
895
897
|
readonly FINISH_WORKFLOW: readonly [{
|
|
@@ -1033,6 +1035,7 @@ declare const workflowMachine: StateMachine<WorkflowContext, {
|
|
|
1033
1035
|
}) => {
|
|
1034
1036
|
isInjectedNode: boolean;
|
|
1035
1037
|
firstNode: WorkflowNode | undefined;
|
|
1038
|
+
currentNodeId: string | undefined;
|
|
1036
1039
|
currentNodeModuleKey: string | undefined;
|
|
1037
1040
|
workflowConfigId: string | undefined;
|
|
1038
1041
|
workflowRedirectDesktopToMobile: boolean;
|
package/dist/workflow.esm.js
CHANGED
|
@@ -1,43 +1,44 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation, y as addEvent } from "./events-
|
|
2
|
-
import { t as api, u as endpoints } from "./api-
|
|
3
|
-
import { u as trueSightLog } from "./trueSightService-
|
|
4
|
-
import { i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-
|
|
5
|
-
import { E as updateFeatureManagementUser } from "./feature-management-
|
|
6
|
-
import { i as
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation, y as addEvent } from "./events-CQteqXfy.esm.js";
|
|
2
|
+
import { t as api, u as endpoints } from "./api-BO8JA7Pf.esm.js";
|
|
3
|
+
import { u as trueSightLog } from "./trueSightService-BujtUIW6.esm.js";
|
|
4
|
+
import { i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-CWFT4dfw.esm.js";
|
|
5
|
+
import { E as updateFeatureManagementUser } from "./feature-management-DjAG5lsJ.esm.js";
|
|
6
|
+
import { i as retryAfterReconnect } from "./connectivity-HSl0diCx.esm.js";
|
|
7
|
+
import { i as toIncodeApiError } from "./apiError-CfuIvnUy.esm.js";
|
|
8
|
+
import { v as toEkybConfig } from "./flowServices-g2tVWsJl.esm.js";
|
|
9
|
+
import { c as toEkycConfig } from "./ekycUtils-BFncpC4F.esm.js";
|
|
9
10
|
import { i as assign, s as createActor, t as setup, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
10
11
|
import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
11
|
-
import { r as electronicSignatureMachine } from "./electronicSignatureManager-
|
|
12
|
+
import { r as electronicSignatureMachine } from "./electronicSignatureManager-C7pqXsRm.esm.js";
|
|
12
13
|
import "./ae-signature.esm.js";
|
|
13
|
-
import { t as antifraudMachine } from "./antifraudStateMachine-
|
|
14
|
-
import { t as authenticationMachine } from "./authenticationStateMachine-
|
|
15
|
-
import { t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-
|
|
16
|
-
import { t as consentMachine } from "./consentStateMachine-
|
|
17
|
-
import { t as curpValidationMachine } from "./curpValidationStateMachine-
|
|
18
|
-
import { t as customWatchlistMachine } from "./customWatchlistStateMachine-
|
|
19
|
-
import { t as documentCaptureMachine } from "./documentCaptureStateMachine-
|
|
20
|
-
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-
|
|
21
|
-
import { t as ekybMachine } from "./ekybStateMachine-
|
|
22
|
-
import { t as ekycMachine } from "./ekycStateMachine-
|
|
23
|
-
import { t as emailMachine } from "./emailStateMachine-
|
|
24
|
-
import { t as selfieMachine } from "./selfieStateMachine-
|
|
25
|
-
import { t as idCaptureMachine } from "./idCaptureStateMachine-
|
|
26
|
-
import { t as phoneMachine } from "./phoneStateMachine-
|
|
27
|
-
import { t as watchlistMachine } from "./watchlistStateMachine-
|
|
28
|
-
import {
|
|
29
|
-
import { n as identityReuseMachine } from "./identityReuseStateMachine-
|
|
30
|
-
import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-
|
|
31
|
-
import { t as idOcrStateMachine } from "./idOcrStateMachine-
|
|
32
|
-
import { n as redirectToMobileMachine } from "./redirectToMobileStateMachine-
|
|
33
|
-
import { t as signatureMachine } from "./signatureStateMachine-
|
|
34
|
-
import { t as geolocationMachine } from "./geolocationStateMachine-
|
|
35
|
-
import { t as governmentValidationMachine } from "./governmentValidationStateMachine-
|
|
36
|
-
import { t as idVerificationMachine } from "./idVerificationStateMachine-
|
|
37
|
-
import { t as faceMatchMachine } from "./faceMatchStateMachine-
|
|
38
|
-
import { n as getFinishStatus, r as getTotalScoreStatus } from "./flowCompletionService-
|
|
39
|
-
import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-
|
|
40
|
-
import { n as isAdvanceableError } from "./advanceableErrors-
|
|
14
|
+
import { t as antifraudMachine } from "./antifraudStateMachine-BcsUTTIr.esm.js";
|
|
15
|
+
import { t as authenticationMachine } from "./authenticationStateMachine-BL2ptOA0.esm.js";
|
|
16
|
+
import { t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-kksIUOPD.esm.js";
|
|
17
|
+
import { t as consentMachine } from "./consentStateMachine-CpmRAcr2.esm.js";
|
|
18
|
+
import { t as curpValidationMachine } from "./curpValidationStateMachine-Bx9YhVkJ.esm.js";
|
|
19
|
+
import { t as customWatchlistMachine } from "./customWatchlistStateMachine-Sbi6DIcK.esm.js";
|
|
20
|
+
import { t as documentCaptureMachine } from "./documentCaptureStateMachine-BCwD5Rto.esm.js";
|
|
21
|
+
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-C8Z7k3vo.esm.js";
|
|
22
|
+
import { t as ekybMachine } from "./ekybStateMachine-DBgFuEPK.esm.js";
|
|
23
|
+
import { t as ekycMachine } from "./ekycStateMachine-CuNF7z4O.esm.js";
|
|
24
|
+
import { t as emailMachine } from "./emailStateMachine-Cx-uTaBV.esm.js";
|
|
25
|
+
import { t as selfieMachine } from "./selfieStateMachine-B5m_Kn0O.esm.js";
|
|
26
|
+
import { t as idCaptureMachine } from "./idCaptureStateMachine-B3G6XoDG.esm.js";
|
|
27
|
+
import { t as phoneMachine } from "./phoneStateMachine-T1-drWfG.esm.js";
|
|
28
|
+
import { t as watchlistMachine } from "./watchlistStateMachine-CSi_ZhtT.esm.js";
|
|
29
|
+
import { n as watchlistForBusinessMachine } from "./watchlistForBusinessStateMachine-DA6K5na4.esm.js";
|
|
30
|
+
import { n as identityReuseMachine } from "./identityReuseStateMachine-Bcnkbjf8.esm.js";
|
|
31
|
+
import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-CVlgdlnt.esm.js";
|
|
32
|
+
import { t as idOcrStateMachine } from "./idOcrStateMachine-B1aZnobs.esm.js";
|
|
33
|
+
import { n as redirectToMobileMachine } from "./redirectToMobileStateMachine-BBMAc2Gb.esm.js";
|
|
34
|
+
import { t as signatureMachine } from "./signatureStateMachine-_1c1vSid.esm.js";
|
|
35
|
+
import { t as geolocationMachine } from "./geolocationStateMachine-CAJVongM.esm.js";
|
|
36
|
+
import { t as governmentValidationMachine } from "./governmentValidationStateMachine-PTPCP26N.esm.js";
|
|
37
|
+
import { t as idVerificationMachine } from "./idVerificationStateMachine-DQn6c84z.esm.js";
|
|
38
|
+
import { t as faceMatchMachine } from "./faceMatchStateMachine-ByTMQCUC.esm.js";
|
|
39
|
+
import { n as getFinishStatus, r as getTotalScoreStatus } from "./flowCompletionService-ChMU2v79.esm.js";
|
|
40
|
+
import { n as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-DPHTqSdF.esm.js";
|
|
41
|
+
import { n as isAdvanceableError } from "./advanceableErrors-k-U-cL5m.esm.js";
|
|
41
42
|
import "./qe-signature.esm.js";
|
|
42
43
|
import { t as videoSelfieFlowModuleMachine } from "./videoSelfieFlowModuleMachine-BCFVHBQ1.esm.js";
|
|
43
44
|
//#region src/internal/orchestration/defaultModules.ts
|
|
@@ -165,9 +166,9 @@ async function loadWorkflow(input, signal) {
|
|
|
165
166
|
signal,
|
|
166
167
|
preloadFlow: false
|
|
167
168
|
}).catch(() => void 0);
|
|
168
|
-
const workflowConfig = await getWorkflowConfig(signal);
|
|
169
|
+
const workflowConfig = await retryAfterReconnect(() => getWorkflowConfig(signal), signal);
|
|
169
170
|
await updateFeatureManagementUser({ customIDs: { workflow_id: workflowConfig.id } });
|
|
170
|
-
const realNode = await getCurrentNode(signal);
|
|
171
|
+
const realNode = await retryAfterReconnect(() => getCurrentNode(signal), signal);
|
|
171
172
|
const fingerprintResult = getSessionFingerprintResult();
|
|
172
173
|
let currentNode = realNode;
|
|
173
174
|
let firstNode;
|
|
@@ -228,8 +229,16 @@ async function processNextNode(input, signal) {
|
|
|
228
229
|
isInjectedNode: false
|
|
229
230
|
};
|
|
230
231
|
}
|
|
232
|
+
let resync = false;
|
|
231
233
|
return {
|
|
232
|
-
nextNode: await
|
|
234
|
+
nextNode: await retryAfterReconnect(async () => {
|
|
235
|
+
if (resync) {
|
|
236
|
+
const serverNode = await getCurrentNode(signal);
|
|
237
|
+
if (serverNode.id !== input.currentNodeId) return serverNode;
|
|
238
|
+
}
|
|
239
|
+
resync = true;
|
|
240
|
+
return processNode(signal);
|
|
241
|
+
}, signal),
|
|
233
242
|
isInjectedNode: false
|
|
234
243
|
};
|
|
235
244
|
}
|
|
@@ -337,12 +346,8 @@ const workflowMachine = setup({
|
|
|
337
346
|
processNextNode: fromPromise(({ input, signal }) => processNextNode(input, signal)),
|
|
338
347
|
handleCustomModule: fromPromise(({ input, signal }) => handleCustomModule(input, signal)),
|
|
339
348
|
resolveModule: fromPromise(({ input }) => resolveModule(input)),
|
|
340
|
-
notifyBackend: fromPromise(
|
|
341
|
-
|
|
342
|
-
}),
|
|
343
|
-
resolveScore: fromPromise(async ({ input, signal }) => {
|
|
344
|
-
return input.getTotalScoreStatus(signal);
|
|
345
|
-
}),
|
|
349
|
+
notifyBackend: fromPromise(({ input, signal }) => retryAfterReconnect(() => input.getFinishStatus(input.workflowId, signal), signal)),
|
|
350
|
+
resolveScore: fromPromise(({ input, signal }) => retryAfterReconnect(() => input.getTotalScoreStatus(signal), signal)),
|
|
346
351
|
runChildModule
|
|
347
352
|
},
|
|
348
353
|
actions: {
|
|
@@ -574,7 +579,11 @@ const workflowMachine = setup({
|
|
|
574
579
|
actions: ["setModuleErrorCode", "trackAdvanceableModuleError"]
|
|
575
580
|
}, {
|
|
576
581
|
target: "error",
|
|
577
|
-
actions: [
|
|
582
|
+
actions: [
|
|
583
|
+
"setModuleError",
|
|
584
|
+
"setModuleErrorCode",
|
|
585
|
+
"trackTerminalModuleError"
|
|
586
|
+
]
|
|
578
587
|
}],
|
|
579
588
|
COMPLETE_FLOW: "completing",
|
|
580
589
|
FINISH_WORKFLOW: [{
|
|
@@ -619,6 +628,7 @@ const workflowMachine = setup({
|
|
|
619
628
|
input: ({ context }) => ({
|
|
620
629
|
isInjectedNode: context.isInjectedNode,
|
|
621
630
|
firstNode: context.firstNode,
|
|
631
|
+
currentNodeId: context.currentNode?.id,
|
|
622
632
|
currentNodeModuleKey: context.currentNode?.moduleKey,
|
|
623
633
|
workflowConfigId: context.workflowConfig?.id,
|
|
624
634
|
workflowRedirectDesktopToMobile: context.workflowConfig?.redirectDesktopToMobile ?? false,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@incodetech/core",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.1-agentic",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -286,6 +286,7 @@
|
|
|
286
286
|
"build:dev": "tsdown -c tsdown.config.ts",
|
|
287
287
|
"check:dist-types": "tsgo -p tsconfig.dist-types.json",
|
|
288
288
|
"test": "vitest run",
|
|
289
|
+
"test:changed": "vitest run --changed origin/main --passWithNoTests",
|
|
289
290
|
"coverage": "vitest run --coverage",
|
|
290
291
|
"lint": "eslint .",
|
|
291
292
|
"lint:fix": "eslint . --fix",
|