@incodetech/core 2.2.0 → 2.3.0-rc.0
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/THIRD_PARTY_NOTICES.txt +281 -0
- package/dist/BaseWasmProvider-Dyi6dKp1.d.ts +65 -0
- package/dist/{BrowserDiagnosticsCryptoProvider-B8vorxN5.esm.js → BrowserDiagnosticsCryptoProvider-C_9o3L2L.esm.js} +1 -1
- package/dist/{BrowserVisibilityObserverProvider-BX1BiLDK.esm.js → BrowserVisibilityObserverProvider-BrJN1B8A.esm.js} +2 -0
- package/dist/FaceDetectionProvider-DTetAE8H.esm.js +476 -0
- package/dist/FaceDetectionProvider-LdZ47bWy.d.ts +36 -0
- package/dist/{IIdCaptureCapability-DHTT3FC2.d.ts → IIdCaptureCapability-RNiFhvXR.d.ts} +7 -33
- package/dist/IWasmUtilCapability-CXXDA5l1.d.ts +159 -0
- package/dist/{MotionSensorProvider-DGiV77J_.esm.js → MotionSensorProvider-BgTYwg9L.esm.js} +1 -1
- package/dist/{deepsightService-DLVQS_RH.d.ts → StreamCanvasCapture-B3YT2Bt6.d.ts} +54 -41
- package/dist/{StreamCanvasCapture-D2XcXCZ4.esm.js → StreamCanvasCapture-C9jtgBdT.esm.js} +2 -2
- package/dist/{addressSearch-D1XpBdUS.esm.js → addressSearch-BRSu_aGA.esm.js} +1 -1
- package/dist/advanceableErrors-CpF2cBy6.esm.js +21 -0
- package/dist/ae-signature.d.ts +4 -2
- package/dist/ae-signature.esm.js +1 -1
- package/dist/antifraud.esm.js +2 -2
- package/dist/{antifraudManager-CQFNgSPt.esm.js → antifraudManager-Bg9ynGum.esm.js} +2 -2
- package/dist/{antifraudStateMachine-Bf_JVNwn.esm.js → antifraudStateMachine-BHxehiJZ.esm.js} +1 -1
- package/dist/{apiError-BA1d_au0.esm.js → apiError-D0v5hFyN.esm.js} +14 -2
- package/dist/authentication.d.ts +3 -3
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-zh9TC62P.esm.js → authenticationManager-C4B4-29g.esm.js} +5 -5
- package/dist/{authenticationManager-BBMGTcwW.d.ts → authenticationManager-DXTIUcma.d.ts} +7 -1
- package/dist/{authenticationStateMachine-xzi-vnvE.esm.js → authenticationStateMachine-DJ0zUm-A.esm.js} +6 -62
- package/dist/avatar.d.ts +1 -2
- package/dist/avatar.esm.js +1 -1
- package/dist/{backCameraStream-CUeYm5eu.esm.js → backCameraStream-BOtyQowf.esm.js} +83 -22
- package/dist/{camera-_2sXMXiF.esm.js → camera-sIa9ceW2.esm.js} +19 -1
- package/dist/camera.esm.js +1 -1
- package/dist/{canvas-E1zGkel4.esm.js → canvas-BxFzWTt-.esm.js} +19 -0
- package/dist/certificate-issuance.d.ts +2 -302
- package/dist/certificate-issuance.esm.js +3 -66
- package/dist/certificateIssuanceManager-Bfvkq7Cy.esm.js +69 -0
- package/dist/certificateIssuanceManager-DCgEidHz.d.ts +312 -0
- package/dist/{certificateIssuanceStateMachine-D_R92TYu.esm.js → certificateIssuanceStateMachine-BBD5h8c4.esm.js} +1 -1
- package/dist/consent.d.ts +1 -1
- package/dist/consent.esm.js +2 -2
- package/dist/{consentManager-BxjpLZAG.esm.js → consentManager-B5Vqdez-.esm.js} +2 -2
- package/dist/{consentManager-3Pbtj-RV.d.ts → consentManager-uhDPdU6i.d.ts} +4 -4
- package/dist/{consentStateMachine-D9D4ON8Z.esm.js → consentStateMachine-DbUmqWgV.esm.js} +1 -1
- package/dist/createCameraCycleOwnership-DQ5-F2oW.esm.js +826 -0
- package/dist/{createFaceAvatar-DQKaRise.esm.js → createFaceAvatar-BNHdeFj8.esm.js} +2 -2
- package/dist/createFaceAvatar-BlcTYgJv.d.ts +497 -0
- package/dist/cross-document-data-match.esm.js +1 -1
- package/dist/{crossDocumentDataMatchManager-CGT0V6RV.esm.js → crossDocumentDataMatchManager-QMOGwHXR.esm.js} +2 -2
- package/dist/curp-validation.d.ts +1 -1
- package/dist/curp-validation.esm.js +2 -2
- package/dist/{curpValidationManager-6Nmkn5u1.esm.js → curpValidationManager-D1ppROcF.esm.js} +2 -2
- package/dist/{curpValidationManager-DVGr7Fq7.d.ts → curpValidationManager-SSKNrm5Z.d.ts} +1 -1
- package/dist/{curpValidationStateMachine-Ds7KMacK.esm.js → curpValidationStateMachine-DvUPC_8S.esm.js} +1 -1
- package/dist/custom-fields.d.ts +2 -114
- package/dist/custom-fields.esm.js +2 -232
- package/dist/custom-watchlist.d.ts +2 -51
- package/dist/custom-watchlist.esm.js +3 -70
- package/dist/customFieldsManager-2j_PBq4U.esm.js +264 -0
- package/dist/customFieldsManager-8-W2KY4n.d.ts +141 -0
- package/dist/customWatchlistManager-DUVrEdw9.esm.js +73 -0
- package/dist/customWatchlistManager-PBWHr_oM.d.ts +64 -0
- package/dist/{customWatchlistStateMachine-YWSgKLbF.esm.js → customWatchlistStateMachine-qZVgkKgP.esm.js} +1 -1
- package/dist/{deepsightLoader--wMKWECS.esm.js → deepsightLoader-Dm7ejW4v.esm.js} +27 -71
- package/dist/device.d.ts +25 -2
- package/dist/device.esm.js +69 -7
- package/dist/document-capture.d.ts +2 -2
- package/dist/document-capture.esm.js +2 -2
- package/dist/{documentCaptureManager-DsQQhWry.esm.js → documentCaptureManager-DR_Wv-3H.esm.js} +2 -2
- package/dist/{documentCaptureManager-B3t0ydtg.d.ts → documentCaptureManager-DensIj5F.d.ts} +83 -83
- package/dist/{documentCaptureStateMachine-BM4Ex_5x.esm.js → documentCaptureStateMachine-CWOATHfE.esm.js} +5 -5
- package/dist/dynamic-forms.d.ts +1 -1
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-fhK0yINk.d.ts → dynamicFormsManager-D5R_uxLQ.d.ts} +25 -3
- package/dist/{dynamicFormsManager-fFVIRBNv.esm.js → dynamicFormsManager-Dt98SDfV.esm.js} +16 -5
- package/dist/{dynamicFormsStateMachine-D6D7oEYk.esm.js → dynamicFormsStateMachine-obKr4IIp.esm.js} +35 -3
- package/dist/ekyb.d.ts +1 -1
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-Y3MkoXpC.esm.js → ekybManager-DNZKrKF3.esm.js} +2 -2
- package/dist/{ekybStateMachine-3nlnqdlr.esm.js → ekybStateMachine-DjhHQXZ8.esm.js} +3 -3
- package/dist/ekyc.esm.js +2 -2
- package/dist/{ekycManager-DgT48ky6.esm.js → ekycManager-CmQBpeiI.esm.js} +2 -2
- package/dist/{ekycStateMachine-CQwqiR-R.esm.js → ekycStateMachine-CmdW2gVm.esm.js} +2 -2
- package/dist/electronic-signature.d.ts +3 -3
- package/dist/electronic-signature.esm.js +2 -2
- package/dist/electronicSignatureManager-Ds-KEVTq.d.ts +2786 -0
- package/dist/{electronicSignatureManager-DGbAJ00W.esm.js → electronicSignatureManager-DzulxM4_.esm.js} +357 -51
- package/dist/email.esm.js +2 -2
- package/dist/{emailManager-BY0jeYwR.esm.js → emailManager-B5ek_UfM.esm.js} +2 -2
- package/dist/{emailStateMachine-Crw8QVmc.esm.js → emailStateMachine-CyPFZ7dW.esm.js} +1 -1
- package/dist/{endpoints-CCzL3XD_.esm.js → endpoints-D3B9mUHh.esm.js} +24 -7
- package/dist/{events-DYiyoSlx.esm.js → events-ijlbX_Wx.esm.js} +2 -2
- package/dist/events.d.ts +1 -1
- package/dist/events.esm.js +1 -1
- package/dist/extensibility.d.ts +24 -64
- package/dist/extensibility.esm.js +35 -29
- package/dist/face-match.esm.js +2 -2
- package/dist/{faceCaptureManagerFactory-BxWPpxyd.d.ts → faceCaptureManagerFactory-CvtqcLxs.d.ts} +87 -54
- package/dist/{faceCaptureManagerFactory-CVnZ0fa5.esm.js → faceCaptureManagerFactory-pCmG4MeF.esm.js} +68 -7
- package/dist/faceCaptureSetup-BSextack.esm.js +2106 -0
- package/dist/{faceMatchManager-Ri4UbNz0.esm.js → faceMatchManager-Caal2zyV.esm.js} +2 -2
- package/dist/{faceMatchStateMachine-20DdZ3jg.esm.js → faceMatchStateMachine-BUc5FXYy.esm.js} +1 -1
- package/dist/{feature-management-CPQ4qv3F.esm.js → feature-management-B0sGlozZ.esm.js} +32 -7
- package/dist/feature-management.d.ts +1 -1
- package/dist/feature-management.esm.js +1 -1
- package/dist/field-comparison.esm.js +1 -1
- package/dist/{fieldComparisonManager-Cg6kPQQx.esm.js → fieldComparisonManager-BIs6HPJG.esm.js} +2 -2
- package/dist/fiscal-qr.d.ts +2 -56
- package/dist/fiscal-qr.esm.js +2 -308
- package/dist/fiscalQrManager-Bp_-3LJr.esm.js +34131 -0
- package/dist/fiscalQrManager-CHcBJwUM.d.ts +68 -0
- package/dist/flow-events.d.ts +1 -1
- package/dist/flow.d.ts +212 -185
- package/dist/flow.esm.js +119 -30
- package/dist/{flowCompletionService-tfeoGre9.esm.js → flowCompletionService-CLtbWhSK.esm.js} +2 -2
- package/dist/{flowServices-f5Ruz7R9.esm.js → flowServices-B5FwukTQ.esm.js} +91 -26
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-CH6RfqFH.esm.js → geolocationManager-DIw-xq9a.esm.js} +2 -2
- package/dist/{geolocationStateMachine-DmbWFely.esm.js → geolocationStateMachine-DpG0TFOU.esm.js} +3 -3
- package/dist/getBrowser-CBiibsL-.esm.js +19 -0
- package/dist/{getBrowser-DNrQeL4T.esm.js → getBrowser-Cbe1C4Tn.esm.js} +2 -1
- package/dist/{getDeviceClass-9y-kbVDw.esm.js → getDeviceClass-5NYZg9s6.esm.js} +2 -2
- package/dist/getParsedUserAgent-B2iFDql1.esm.js +1278 -0
- package/dist/government-validation.d.ts +2 -85
- package/dist/government-validation.esm.js +3 -120
- package/dist/governmentValidationManager-D02vT4yY.d.ts +63 -0
- package/dist/governmentValidationManager-TjC9iVjH.esm.js +79 -0
- package/dist/governmentValidationStateMachine-D1ZnEqdd.esm.js +54 -0
- package/dist/home.d.ts +1 -1
- package/dist/home.esm.js +1 -1
- package/dist/id-ocr.d.ts +2 -2
- package/dist/id-ocr.esm.js +2 -2
- package/dist/id-selfie-flow.d.ts +3 -2
- package/dist/id-selfie-flow.esm.js +11 -10
- package/dist/id-verification.esm.js +2 -2
- package/dist/id.d.ts +29 -5
- package/dist/id.esm.js +48 -46
- package/dist/idCaptureDefaults-BcxjQDI3.esm.js +484 -0
- package/dist/{idCaptureManager-CqrqSjJV.d.ts → idCaptureManager-CvmHOWWd.d.ts} +227 -39
- package/dist/{idCaptureManager-BYwTZ2H8.esm.js → idCaptureManager-Vby8oYqh.esm.js} +259 -46
- package/dist/{idCaptureServices-44kwQItl.esm.js → idCaptureServices-CJIxD9ep.esm.js} +342 -31
- package/dist/idCaptureStateMachine-CmqihkUy.esm.js +5343 -0
- package/dist/{idOcrManager-DXc_xRN7.d.ts → idOcrManager-BF_cXZq8.d.ts} +1 -1
- package/dist/{idOcrManager-BIQYQXXj.esm.js → idOcrManager-DHU22hVn.esm.js} +2 -2
- package/dist/{idOcrStateMachine-cSxzHpHt.esm.js → idOcrStateMachine-33UvRAHE.esm.js} +1 -1
- package/dist/{idVerificationManager-JpV_SAsl.esm.js → idVerificationManager-CyaixD0D.esm.js} +2 -2
- package/dist/{idVerificationStateMachine-nPeUNyFq.esm.js → idVerificationStateMachine-BPGrQZEm.esm.js} +1 -1
- package/dist/identity-reuse.esm.js +2 -2
- package/dist/{identityReuseManager-kNCg9AbD.esm.js → identityReuseManager-CWaNHBO3.esm.js} +2 -2
- package/dist/{identityReuseStateMachine-DyulxDjP.esm.js → identityReuseStateMachine-CQgnATo5.esm.js} +1 -1
- package/dist/{index-CLMF0QLQ.d.ts → index-DLcJT5YP.d.ts} +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/{invokeOnCaptureCallback-GpvMuz9o.esm.js → invokeOnCaptureCallback-BjzPjJ_p.esm.js} +1 -1
- package/dist/mandatory-consent.d.ts +2 -2
- package/dist/mandatory-consent.esm.js +2 -2
- package/dist/{mandatoryConsentManager-DyPzUmsZ.d.ts → mandatoryConsentManager-CJSyhTpi.d.ts} +5 -5
- package/dist/{mandatoryConsentManager-B4Niyg_u.esm.js → mandatoryConsentManager-Du-m-tZ_.esm.js} +2 -2
- package/dist/{mandatoryConsentStateMachine-B4-1u-L8.esm.js → mandatoryConsentStateMachine-DSDAk7WZ.esm.js} +1 -1
- package/dist/multipartRecordingService-B3C_zlev.esm.js +594 -0
- package/dist/{permissionGuards-KINpmKtI.esm.js → permissionGuards-uYZYFu4J.esm.js} +1 -1
- package/dist/{permissionServices-UvUcOSRb.esm.js → permissionServices-Bj_fyWtv.esm.js} +5 -5
- package/dist/personhood.d.ts +6 -5
- package/dist/personhood.esm.js +10 -10
- package/dist/phone.esm.js +2 -2
- package/dist/{phoneManager-FsJ0W2Ei.esm.js → phoneManager-N1-sbrY4.esm.js} +2 -2
- package/dist/{phoneStateMachine-Ba0wKHyX.esm.js → phoneStateMachine-jl8LJKCo.esm.js} +1 -1
- package/dist/{platform-BJrm5nzZ.esm.js → platform-DkcRc9JV.esm.js} +29 -1
- package/dist/qe-signature.d.ts +5 -3
- package/dist/qe-signature.esm.js +2 -2
- package/dist/recordingsRepository-CCWy13M-.esm.js +72 -0
- package/dist/redirect-to-mobile.esm.js +2 -2
- package/dist/{redirectToMobileManager-y4VQB11M.esm.js → redirectToMobileManager-DsFzdTwA.esm.js} +2 -2
- package/dist/{redirectToMobileStateMachine-Cyv2x0PP.esm.js → redirectToMobileStateMachine-v3otpT-L.esm.js} +1 -1
- package/dist/{rolldown-runtime-FZ4Itg2g.esm.js → rolldown-runtime-FDOR9p9I.esm.js} +1 -19
- package/dist/{runChildModule-Dukuw23X.esm.js → runChildModule-TuyGE00X.esm.js} +3 -21
- package/dist/safeStorage-B-trhxg6.esm.js +423 -0
- package/dist/{sdkVersion-D1Bm59g6.esm.js → sdkVersion-CLxKvdyz.esm.js} +1 -1
- package/dist/selfie.d.ts +5 -5
- package/dist/selfie.esm.js +14 -76
- package/dist/{selfieErrorUtils-C2PYBVsp.esm.js → selfieErrorUtils-C77GXJH6.esm.js} +30 -4
- package/dist/{selfieManager-Bj6B2ZVy.esm.js → selfieManager-CihVnODO.esm.js} +5 -5
- package/dist/{selfieManager-DwlCppg0.d.ts → selfieManager-D1KRJ39M.d.ts} +8 -11
- package/dist/selfieStateMachine-fwMmNtOi.esm.js +69 -0
- package/dist/{session-BFdLgN4i.esm.js → session-BHIeAamR.esm.js} +4 -5
- package/dist/session.d.ts +21 -11
- package/dist/session.esm.js +5 -5
- package/dist/{sessionInitializer-dlfDehHk.esm.js → sessionInitializer-BLoK7SP9.esm.js} +187 -68
- package/dist/{setup-BgoWtvIS.d.ts → setup-Cv-JM9QC.d.ts} +63 -69
- package/dist/{setup-BIAtLa8k.esm.js → setup-msLybMbC.esm.js} +226 -100
- package/dist/signature.esm.js +2 -2
- package/dist/{signatureManager-Ca43yhwk.esm.js → signatureManager-ChsB-nMD.esm.js} +2 -2
- package/dist/{signatureStateMachine-K1LMRrxG.esm.js → signatureStateMachine-BHPwkJZS.esm.js} +1 -1
- package/dist/{src-0Jurt29N.esm.js → src-35ekGRzK.esm.js} +1 -1
- package/dist/{stats-B0nFKawG.esm.js → stats-DkK-f8JT.esm.js} +1 -1
- package/dist/stats.esm.js +1 -1
- package/dist/{trueSightService---iW2KKJ.esm.js → trueSightService-CKrrfV0Q.esm.js} +7 -7
- package/dist/trust-graph.esm.js +1 -1
- package/dist/{types-BX_XkMsQ2.d.ts → types-9_esGTPj.d.ts} +1 -1
- package/dist/types-BT_Oalip.d.ts +1 -0
- package/dist/{types-DelMqZLe.d.ts → types-BjSly8cp.d.ts} +1 -1
- package/dist/{types-Hmd7U0JA.d.ts → types-CM-jtjJ2.d.ts} +6 -81
- package/dist/{types-Bdf8_LYB2.d.ts → types-CjKBS37a2.d.ts} +303 -13
- package/dist/{types-DVmXIdzW.d.ts → types-D0gekt4U.d.ts} +38 -5
- package/dist/types-DgDvvzg0.d.ts +10 -0
- package/dist/{types-KPvmag_B.d.ts → types-Do5rEXij.d.ts} +7 -4
- package/dist/types-ZT1XFIJ8.d.ts +6 -0
- package/dist/video-selfie.d.ts +59 -35
- package/dist/video-selfie.esm.js +510 -601
- package/dist/{videoSelfieCameraWarmer-NEhFZvWx.esm.js → videoSelfieCameraWarmer-CB1IzZkt.esm.js} +14 -153
- package/dist/videoSelfieFlowModuleMachine-BUe2uACW.esm.js +32 -0
- package/dist/{videoSelfieStepDetector-D3oo2ofo.d.ts → videoSelfieStepDetector-5YHFe0Mq.d.ts} +21 -5
- package/dist/virtualCameraCheck-WOloJ-do.esm.js +48 -0
- package/dist/warmup-CUUnwYxe.esm.js +714 -0
- package/dist/warmup-Cis2p6O0.d.ts +128 -0
- package/dist/wasm.d.ts +30 -6
- package/dist/wasm.esm.js +36 -4
- package/dist/{wasmDsFlagSync-BqUCwLY8.esm.js → wasmDsFlagSync-B2e8p268.esm.js} +2 -2
- package/dist/{wasmWebClient-DM8lkb0z.esm.js → wasmWebClient-B7baE-Wf.esm.js} +358 -28
- package/dist/watchlist-for-business.d.ts +2 -78
- package/dist/watchlist-for-business.esm.js +3 -102
- package/dist/watchlist.esm.js +2 -2
- package/dist/watchlistForBusinessManager-CpuuB1J2.esm.js +107 -0
- package/dist/watchlistForBusinessManager-CsnJnG-C.d.ts +99 -0
- package/dist/{watchlistForBusinessStateMachine-CxFnlshm.esm.js → watchlistForBusinessStateMachine-DEzgjz7C.esm.js} +13 -6
- package/dist/{watchlistManager-LoNZH9qm.esm.js → watchlistManager-CI8BHFob.esm.js} +2 -2
- package/dist/{watchlistStateMachine-DIKQDoUT.esm.js → watchlistStateMachine-DvOby3a-.esm.js} +1 -1
- package/dist/workflow.d.ts +12 -8
- package/dist/workflow.esm.js +48 -39
- package/package.json +4 -10
- package/dist/BrowserStorageProvider-k-FDkC4W.esm.js +0 -67
- package/dist/FaceDetectionProvider-Mh6q3EbA.d.ts +0 -349
- package/dist/IFaceAvatarCapability-BrL19G0s.d.ts +0 -23
- package/dist/IStorageCapability-ORkQfK3F.d.ts +0 -242
- package/dist/OpenViduRecordingProvider-Du98qevC.esm.js +0 -85
- package/dist/createFaceAvatar-BEj18KXi.d.ts +0 -50
- package/dist/document-upload.d.ts +0 -325
- package/dist/document-upload.esm.js +0 -197
- package/dist/electronicSignatureManager-CcUXQZS7.d.ts +0 -1300
- package/dist/faceCaptureSetup-Cd-04W_X.esm.js +0 -863
- package/dist/getBrowser-Cb8Zgrgp.esm.js +0 -7
- package/dist/getParsedUserAgent-pJjATANs.esm.js +0 -1622
- package/dist/governmentValidationStateMachine-CK9DrZXX.esm.js +0 -226
- package/dist/idCaptureDefaults-WeHbQM7W.esm.js +0 -225
- package/dist/idCaptureStateMachine-kZ5OpdfM.esm.js +0 -3342
- package/dist/lib-DAyUtOTj.esm.js +0 -12420
- package/dist/manualReviewService-D4IkipnN.esm.js +0 -15
- package/dist/mediaRecorderOptions-dALSV8af.esm.js +0 -40
- package/dist/onDeviceFaceResults-CUHwyZT4.esm.js +0 -646
- package/dist/openviduLazy-CCDpFWg1.esm.js +0 -10
- package/dist/recordingService-3NSENVwp.esm.js +0 -329
- package/dist/safeStorage-Ep56I-f_.esm.js +0 -982
- package/dist/selfieStateMachine-CHV_WNst.esm.js +0 -55
- package/dist/trueSight-B_icM8r2.esm.js +0 -1
- package/dist/types-EELWyWpd.d.ts +0 -6
- package/dist/types-Vb4P9ovf.d.ts +0 -22
- package/dist/warmup-Dv2alr2-.d.ts +0 -82
- package/dist/wasmDefaults-DTUrftxR.esm.js +0 -125
- package/dist/{Face2DProvider-UUQt_vRC.esm.js → Face2DProvider-BF48sz5c.esm.js} +1 -1
- package/dist/{PrivacyLensProvider-D8PS7AJa.esm.js → PrivacyLensProvider-EwnC_C5n.esm.js} +1 -1
- /package/dist/{types-BfgmV7s72.d.ts → types-BfgmV7s7.d.ts} +0 -0
- /package/dist/{types-CJ7Yl9K-2.d.ts → types-CJ7Yl9K-.d.ts} +0 -0
|
@@ -1,16 +1,38 @@
|
|
|
1
1
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
2
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
2
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ijlbX_Wx.esm.js";
|
|
3
3
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
4
|
-
import { t as endpoints } from "./endpoints-
|
|
5
|
-
import {
|
|
4
|
+
import { t as endpoints } from "./endpoints-D3B9mUHh.esm.js";
|
|
5
|
+
import { i as toIncodeApiError, n as isConnectivityError, t as IncodeApiError } from "./apiError-D0v5hFyN.esm.js";
|
|
6
6
|
import { i as assign, s as createActor, t as setup, u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
7
7
|
import { n as fromPromise } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
|
|
8
8
|
import { t as externalFetch } from "./externalFetch-BKBThAUC.esm.js";
|
|
9
9
|
//#region src/modules/electronic-signature/electronicSignatureServices.ts
|
|
10
10
|
async function fetchUnsignedDocuments(signal) {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
try {
|
|
12
|
+
const res = await api.get(endpoints.aesUnsignedDocuments, { signal });
|
|
13
|
+
if (!res.ok) throw res;
|
|
14
|
+
return res.data;
|
|
15
|
+
} catch (error) {
|
|
16
|
+
toIncodeApiError(endpoints.aesUnsignedDocuments, error);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
async function fetchSignedDocuments(signal) {
|
|
20
|
+
try {
|
|
21
|
+
const res = await api.get(endpoints.esSignedDocuments, { signal });
|
|
22
|
+
if (!res.ok) throw res;
|
|
23
|
+
return res.data;
|
|
24
|
+
} catch (error) {
|
|
25
|
+
toIncodeApiError(endpoints.esSignedDocuments, error);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
async function fetchQesTerms(languageCode, signal) {
|
|
29
|
+
try {
|
|
30
|
+
const res = await api.post(endpoints.qesTerms, { languageCode }, { signal });
|
|
31
|
+
if (!res.ok) throw res;
|
|
32
|
+
return res.data;
|
|
33
|
+
} catch (error) {
|
|
34
|
+
toIncodeApiError(endpoints.qesTerms, error);
|
|
35
|
+
}
|
|
14
36
|
}
|
|
15
37
|
function getSignEndpoint(variant) {
|
|
16
38
|
return variant === "qe" ? endpoints.qesSignDocument : endpoints.aesSignDocument;
|
|
@@ -43,8 +65,13 @@ async function uploadDocumentFile(presignedUrl, data, signal) {
|
|
|
43
65
|
//#endregion
|
|
44
66
|
//#region src/modules/electronic-signature/electronicSignatureActors.ts
|
|
45
67
|
const fetchUnsignedDocsActor = fromPromise(async ({ signal }) => fetchUnsignedDocuments(signal));
|
|
68
|
+
const fetchSignedDocsActor = fromPromise(async ({ signal }) => fetchSignedDocuments(signal));
|
|
69
|
+
const fetchQesTermsActor = fromPromise(async ({ input, signal }) => fetchQesTerms(input.languageCode, signal));
|
|
46
70
|
const signDocumentsActor = fromPromise(async ({ input, signal }) => {
|
|
47
|
-
|
|
71
|
+
const results = [];
|
|
72
|
+
if (input.variant === "qe" && input.sequential) for (const signatureDocument of input.documents) results.push(await signDocument(signatureDocument.documentRef, input.variant, signal));
|
|
73
|
+
else results.push(...await Promise.all(input.documents.map((signatureDocument) => signDocument(signatureDocument.documentRef, input.variant, signal))));
|
|
74
|
+
return results.map((r) => ({
|
|
48
75
|
signed: r.success === true || !!r.signedDocumentUrl,
|
|
49
76
|
signedDocumentUrl: r.signedDocumentUrl
|
|
50
77
|
}));
|
|
@@ -61,7 +88,45 @@ const uploadFileActor = fromPromise(async ({ input, signal }) => {
|
|
|
61
88
|
await uploadDocumentFile(input.preSignedUrl, fileData, signal);
|
|
62
89
|
});
|
|
63
90
|
//#endregion
|
|
91
|
+
//#region src/modules/electronic-signature/electronicSignatureErrors.ts
|
|
92
|
+
const QES_ERROR_TYPES = [
|
|
93
|
+
"MISSING_REQUIRED_IDENTITY_DATA",
|
|
94
|
+
"MISSING_EXTERNAL_OTP_EVIDENCE",
|
|
95
|
+
"HOLDER_DATA_MISMATCH",
|
|
96
|
+
"CERTIFICATE_EXPIRED",
|
|
97
|
+
"PROVIDER_AUTHENTICATION_ERROR",
|
|
98
|
+
"PROVIDER_CONFIGURATION_ERROR",
|
|
99
|
+
"UNKNOWN_PROVIDER_ERROR"
|
|
100
|
+
];
|
|
101
|
+
function isRecord(value) {
|
|
102
|
+
return typeof value === "object" && value !== null;
|
|
103
|
+
}
|
|
104
|
+
function qesErrorTypeFromCause(cause) {
|
|
105
|
+
if (!isRecord(cause) || !isRecord(cause.data)) return null;
|
|
106
|
+
const rawType = (isRecord(cause.data.details) ? cause.data.details : null)?.qesErrorType ?? cause.data.qesErrorType;
|
|
107
|
+
if (typeof rawType !== "string") return null;
|
|
108
|
+
return QES_ERROR_TYPES.includes(rawType) ? rawType : "UNKNOWN_PROVIDER_ERROR";
|
|
109
|
+
}
|
|
110
|
+
function hasSignatureFailedMessage(error) {
|
|
111
|
+
if (error.message.toLowerCase().includes("signature failed")) return true;
|
|
112
|
+
if (!isRecord(error.cause) || !isRecord(error.cause.data)) return false;
|
|
113
|
+
const { message, error: errorMessage } = error.cause.data;
|
|
114
|
+
return [message, errorMessage].some((value) => typeof value === "string" && value.toLowerCase().includes("signature failed"));
|
|
115
|
+
}
|
|
116
|
+
function getQesErrorType(error) {
|
|
117
|
+
return error instanceof IncodeApiError ? qesErrorTypeFromCause(error.cause) : null;
|
|
118
|
+
}
|
|
119
|
+
function isRetryableQesFailure(error) {
|
|
120
|
+
if (isConnectivityError(error) || error instanceof IncodeApiError && isConnectivityError(error.cause)) return true;
|
|
121
|
+
const qesErrorType = getQesErrorType(error);
|
|
122
|
+
if (qesErrorType !== null) return qesErrorType === "CERTIFICATE_EXPIRED" || qesErrorType === "MISSING_EXTERNAL_OTP_EVIDENCE" || qesErrorType === "MISSING_REQUIRED_IDENTITY_DATA";
|
|
123
|
+
if (!(error instanceof IncodeApiError)) return false;
|
|
124
|
+
if (error.httpStatus === 500 || error.httpStatus === 409) return true;
|
|
125
|
+
return error.httpStatus === 400 && hasSignatureFailedMessage(error);
|
|
126
|
+
}
|
|
127
|
+
//#endregion
|
|
64
128
|
//#region src/modules/electronic-signature/types.ts
|
|
129
|
+
const NAMIRIAL_QES_PROVIDER_CODE = "QES_3";
|
|
65
130
|
const AE_CONSENT_KEYS = [
|
|
66
131
|
"terms",
|
|
67
132
|
"signElectronically",
|
|
@@ -74,6 +139,7 @@ const QE_CONSENT_KEYS = [
|
|
|
74
139
|
"termsAgreement",
|
|
75
140
|
"documentsReviewed"
|
|
76
141
|
];
|
|
142
|
+
const NAMIRIAL_QES_CONSENT_KEYS = ["providerTerm0", "providerTerm1"];
|
|
77
143
|
function getConsentKeys(variant) {
|
|
78
144
|
return variant === "qe" ? QE_CONSENT_KEYS : AE_CONSENT_KEYS;
|
|
79
145
|
}
|
|
@@ -81,9 +147,42 @@ function getDefaultConsentChecks(variant) {
|
|
|
81
147
|
const keys = getConsentKeys(variant);
|
|
82
148
|
return Object.fromEntries(keys.map((k) => [k, false]));
|
|
83
149
|
}
|
|
150
|
+
function isNamirialQesConfig(config) {
|
|
151
|
+
return config.variant === "qe" && config.providerCode === "QES_3";
|
|
152
|
+
}
|
|
153
|
+
function getInitialConsentChecks(config) {
|
|
154
|
+
const keys = isNamirialQesConfig(config) ? NAMIRIAL_QES_CONSENT_KEYS : getConsentKeys(config.variant ?? "ae");
|
|
155
|
+
return Object.fromEntries(keys.map((key) => [key, false]));
|
|
156
|
+
}
|
|
84
157
|
function areAllConsented(checks) {
|
|
85
158
|
return Object.values(checks).every(Boolean);
|
|
86
159
|
}
|
|
160
|
+
const SUPPORTED_QES_TERM_LANGUAGES = /* @__PURE__ */ new Set([
|
|
161
|
+
"en",
|
|
162
|
+
"it",
|
|
163
|
+
"de"
|
|
164
|
+
]);
|
|
165
|
+
function resolveQesTermsLanguage(language) {
|
|
166
|
+
const baseLanguage = language?.split(/[-_]/u)[0]?.trim().toLowerCase();
|
|
167
|
+
return baseLanguage && SUPPORTED_QES_TERM_LANGUAGES.has(baseLanguage) ? baseLanguage : "en";
|
|
168
|
+
}
|
|
169
|
+
/**
|
|
170
|
+
* Converts both the temporary three-item backend response (intro + two
|
|
171
|
+
* controls) and the final two-item response into the exact two labels the UI
|
|
172
|
+
* must render. Labels and contract text are validated without modifying their
|
|
173
|
+
* provider-supplied content.
|
|
174
|
+
*/
|
|
175
|
+
function normalizeNamirialQesTerms(response, fallbackLanguage) {
|
|
176
|
+
const labels = response.checkBoxes?.length === 3 ? response.checkBoxes.slice(1) : response.checkBoxes;
|
|
177
|
+
const [firstLabel, secondLabel] = labels ?? [];
|
|
178
|
+
const contractText = response.contractText;
|
|
179
|
+
if (labels?.length !== 2 || firstLabel === void 0 || secondLabel === void 0 || firstLabel.trim().length === 0 || secondLabel.trim().length === 0 || contractText === void 0 || contractText.trim().length === 0) return null;
|
|
180
|
+
return {
|
|
181
|
+
consentLabels: [firstLabel, secondLabel],
|
|
182
|
+
contractText,
|
|
183
|
+
languageCode: resolveQesTermsLanguage(response.languageCode ?? fallbackLanguage)
|
|
184
|
+
};
|
|
185
|
+
}
|
|
87
186
|
//#endregion
|
|
88
187
|
//#region src/modules/electronic-signature/electronicSignatureStateMachine.ts
|
|
89
188
|
function resolveFileDataHolder(input) {
|
|
@@ -105,6 +204,8 @@ const electronicSignatureMachine = setup({
|
|
|
105
204
|
input: {}
|
|
106
205
|
},
|
|
107
206
|
actors: {
|
|
207
|
+
fetchQesTerms: fetchQesTermsActor,
|
|
208
|
+
fetchSignedDocs: fetchSignedDocsActor,
|
|
108
209
|
fetchUnsignedDocs: fetchUnsignedDocsActor,
|
|
109
210
|
signDocuments: signDocumentsActor,
|
|
110
211
|
generateUploadUrl: generateUploadUrlActor,
|
|
@@ -119,6 +220,18 @@ const electronicSignatureMachine = setup({
|
|
|
119
220
|
const { output } = event;
|
|
120
221
|
return { signedDocuments: output };
|
|
121
222
|
}),
|
|
223
|
+
setSignedDocumentsFromResponse: assign(({ event }) => {
|
|
224
|
+
const { output } = event;
|
|
225
|
+
return { signedDocuments: output.documents.map((signatureDocument) => ({
|
|
226
|
+
signed: true,
|
|
227
|
+
signedDocumentUrl: signatureDocument.documentUrl
|
|
228
|
+
})) };
|
|
229
|
+
}),
|
|
230
|
+
setProviderTerms: assign(({ context, event }) => {
|
|
231
|
+
const { output } = event;
|
|
232
|
+
const providerTerms = normalizeNamirialQesTerms(output, context.config.language);
|
|
233
|
+
return providerTerms === null ? {} : { providerTerms };
|
|
234
|
+
}),
|
|
122
235
|
setFile: assign(({ event }) => {
|
|
123
236
|
const { fileName, fileSize, fileUrl } = event;
|
|
124
237
|
return {
|
|
@@ -139,21 +252,50 @@ const electronicSignatureMachine = setup({
|
|
|
139
252
|
} };
|
|
140
253
|
}),
|
|
141
254
|
setViewingDocument: assign(({ event }) => ({ viewingDocumentUrl: event.url })),
|
|
142
|
-
clearViewingDocument: assign({ viewingDocumentUrl: () => null })
|
|
255
|
+
clearViewingDocument: assign({ viewingDocumentUrl: () => null }),
|
|
256
|
+
showApplicationForm: assign({ viewingApplicationForm: () => true }),
|
|
257
|
+
hideApplicationForm: assign({ viewingApplicationForm: () => false })
|
|
143
258
|
},
|
|
144
259
|
guards: {
|
|
145
260
|
errorFromUpload: ({ context }) => context.errorSource === "upload",
|
|
261
|
+
errorFromTerms: ({ context }) => context.errorSource === "terms",
|
|
262
|
+
errorFromSigning: ({ context }) => context.errorSource === "signing",
|
|
263
|
+
errorFromSignedDocs: ({ context }) => context.errorSource === "signedDocs",
|
|
146
264
|
shouldUpload: ({ context }) => context.config.uploadDocument === true,
|
|
265
|
+
shouldFetchProviderTerms: ({ context }) => isNamirialQesConfig(context.config),
|
|
266
|
+
hasProviderTerms: ({ context }) => context.providerTerms !== null,
|
|
147
267
|
hasUploadUrl: ({ context }) => context.preSignedUrl !== null,
|
|
148
268
|
allConsented: ({ context }) => areAllConsented(context.consentChecks),
|
|
149
269
|
hasDocuments: ({ event }) => {
|
|
150
270
|
const { output } = event;
|
|
151
271
|
return (output.documents?.length ?? 0) > 0;
|
|
152
272
|
},
|
|
273
|
+
hasSignedDocuments: ({ event }) => {
|
|
274
|
+
const { output } = event;
|
|
275
|
+
return (output.documents?.length ?? 0) > 0 && output.documents.every((signatureDocument) => signatureDocument.documentUrl.trim().length > 0);
|
|
276
|
+
},
|
|
277
|
+
hasSignedDocumentsAndDownload: ({ context, event }) => {
|
|
278
|
+
const { output } = event;
|
|
279
|
+
return context.config.downloadDocument === true && (output.documents?.length ?? 0) > 0 && output.documents.every((signatureDocument) => signatureDocument.documentUrl.trim().length > 0);
|
|
280
|
+
},
|
|
281
|
+
hasValidProviderTerms: ({ event }) => {
|
|
282
|
+
const { output } = event;
|
|
283
|
+
return normalizeNamirialQesTerms(output) !== null;
|
|
284
|
+
},
|
|
285
|
+
isProviderTermsFlow: ({ context }) => isNamirialQesConfig(context.config),
|
|
286
|
+
isRetryableProviderFailure: ({ context, event }) => {
|
|
287
|
+
if (!isNamirialQesConfig(context.config)) return false;
|
|
288
|
+
const { error } = event;
|
|
289
|
+
return isRetryableQesFailure(error);
|
|
290
|
+
},
|
|
153
291
|
allSigned: ({ event }) => {
|
|
154
292
|
const { output } = event;
|
|
155
293
|
return output.every((d) => d.signed);
|
|
156
294
|
},
|
|
295
|
+
allSignedAndProviderTerms: ({ context, event }) => {
|
|
296
|
+
const { output } = event;
|
|
297
|
+
return isNamirialQesConfig(context.config) && output.every((signatureDocument) => signatureDocument.signed);
|
|
298
|
+
},
|
|
157
299
|
allSignedAndDownload: ({ context, event }) => {
|
|
158
300
|
const { output } = event;
|
|
159
301
|
return output.every((d) => d.signed && !!d.signedDocumentUrl) && context.config.downloadDocument === true;
|
|
@@ -171,16 +313,25 @@ const electronicSignatureMachine = setup({
|
|
|
171
313
|
fileSize: null,
|
|
172
314
|
fileUrl: null,
|
|
173
315
|
preSignedUrl: null,
|
|
174
|
-
consentChecks:
|
|
316
|
+
consentChecks: getInitialConsentChecks(input.config),
|
|
317
|
+
providerTerms: null,
|
|
175
318
|
viewingDocumentUrl: null,
|
|
319
|
+
viewingApplicationForm: false,
|
|
176
320
|
errorMessage: "",
|
|
177
321
|
errorSource: null
|
|
178
322
|
}),
|
|
179
323
|
states: {
|
|
180
|
-
idle: { on: { LOAD: [
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
324
|
+
idle: { on: { LOAD: [
|
|
325
|
+
{
|
|
326
|
+
target: "uploading",
|
|
327
|
+
guard: "shouldUpload"
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
target: "fetchingTerms",
|
|
331
|
+
guard: "shouldFetchProviderTerms"
|
|
332
|
+
},
|
|
333
|
+
{ target: "fetchingDocs" }
|
|
334
|
+
] } },
|
|
184
335
|
uploading: { on: {
|
|
185
336
|
SELECT_FILE: {
|
|
186
337
|
target: "reviewing",
|
|
@@ -225,7 +376,10 @@ const electronicSignatureMachine = setup({
|
|
|
225
376
|
preSignedUrl: context.preSignedUrl,
|
|
226
377
|
fileDataHolder: context.fileDataHolder
|
|
227
378
|
}),
|
|
228
|
-
onDone: {
|
|
379
|
+
onDone: [{
|
|
380
|
+
target: "fetchingTerms",
|
|
381
|
+
guard: "shouldFetchProviderTerms"
|
|
382
|
+
}, { target: "fetchingDocs" }],
|
|
229
383
|
onError: {
|
|
230
384
|
target: "error",
|
|
231
385
|
actions: assign(({ event }) => ({
|
|
@@ -234,32 +388,96 @@ const electronicSignatureMachine = setup({
|
|
|
234
388
|
}))
|
|
235
389
|
}
|
|
236
390
|
} },
|
|
237
|
-
|
|
238
|
-
id: "
|
|
239
|
-
src: "
|
|
391
|
+
fetchingTerms: { invoke: {
|
|
392
|
+
id: "fetchQesTerms",
|
|
393
|
+
src: "fetchQesTerms",
|
|
394
|
+
input: ({ context }) => ({ languageCode: resolveQesTermsLanguage(context.config.language) }),
|
|
240
395
|
onDone: [{
|
|
241
|
-
target: "
|
|
242
|
-
guard: "
|
|
243
|
-
actions: "
|
|
396
|
+
target: "fetchingDocs",
|
|
397
|
+
guard: "hasValidProviderTerms",
|
|
398
|
+
actions: "setProviderTerms"
|
|
244
399
|
}, {
|
|
245
|
-
target: "
|
|
400
|
+
target: "signError",
|
|
246
401
|
actions: assign({
|
|
247
|
-
errorMessage: () => "
|
|
248
|
-
errorSource: () => "
|
|
402
|
+
errorMessage: () => "qes.invalidProviderTerms",
|
|
403
|
+
errorSource: () => "terms"
|
|
249
404
|
})
|
|
250
405
|
}],
|
|
251
|
-
onError: {
|
|
406
|
+
onError: [{
|
|
252
407
|
target: "error",
|
|
408
|
+
guard: "isRetryableProviderFailure",
|
|
253
409
|
actions: assign(({ event }) => ({
|
|
254
410
|
errorMessage: String(event.error ?? "aes.error"),
|
|
255
|
-
errorSource: "
|
|
411
|
+
errorSource: "terms"
|
|
256
412
|
}))
|
|
257
|
-
}
|
|
413
|
+
}, {
|
|
414
|
+
target: "signError",
|
|
415
|
+
actions: assign(({ event }) => ({
|
|
416
|
+
errorMessage: String(event.error ?? "aes.error"),
|
|
417
|
+
errorSource: "terms"
|
|
418
|
+
}))
|
|
419
|
+
}]
|
|
420
|
+
} },
|
|
421
|
+
fetchingDocs: { invoke: {
|
|
422
|
+
id: "fetchUnsignedDocs",
|
|
423
|
+
src: "fetchUnsignedDocs",
|
|
424
|
+
onDone: [
|
|
425
|
+
{
|
|
426
|
+
target: "signing",
|
|
427
|
+
guard: "hasDocuments",
|
|
428
|
+
actions: "setDocuments"
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
target: "signError",
|
|
432
|
+
guard: "isProviderTermsFlow",
|
|
433
|
+
actions: assign({
|
|
434
|
+
errorMessage: () => "aes.noDocuments",
|
|
435
|
+
errorSource: () => "fetchDocs"
|
|
436
|
+
})
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
target: "error",
|
|
440
|
+
actions: assign({
|
|
441
|
+
errorMessage: () => "aes.noDocuments",
|
|
442
|
+
errorSource: () => "fetchDocs"
|
|
443
|
+
})
|
|
444
|
+
}
|
|
445
|
+
],
|
|
446
|
+
onError: [
|
|
447
|
+
{
|
|
448
|
+
target: "error",
|
|
449
|
+
guard: "isRetryableProviderFailure",
|
|
450
|
+
actions: assign(({ event }) => ({
|
|
451
|
+
errorMessage: String(event.error ?? "aes.error"),
|
|
452
|
+
errorSource: "fetchDocs"
|
|
453
|
+
}))
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
target: "signError",
|
|
457
|
+
guard: "isProviderTermsFlow",
|
|
458
|
+
actions: assign(({ event }) => ({
|
|
459
|
+
errorMessage: String(event.error ?? "aes.error"),
|
|
460
|
+
errorSource: "fetchDocs"
|
|
461
|
+
}))
|
|
462
|
+
},
|
|
463
|
+
{
|
|
464
|
+
target: "error",
|
|
465
|
+
actions: assign(({ event }) => ({
|
|
466
|
+
errorMessage: String(event.error ?? "aes.error"),
|
|
467
|
+
errorSource: "fetchDocs"
|
|
468
|
+
}))
|
|
469
|
+
}
|
|
470
|
+
]
|
|
258
471
|
} },
|
|
259
472
|
signing: { on: {
|
|
260
473
|
SET_CONSENT: { actions: "updateConsent" },
|
|
261
474
|
VIEW_DOCUMENT: { actions: "setViewingDocument" },
|
|
262
475
|
CLOSE_DOCUMENT_VIEW: { actions: "clearViewingDocument" },
|
|
476
|
+
VIEW_APPLICATION_FORM: {
|
|
477
|
+
guard: "hasProviderTerms",
|
|
478
|
+
actions: "showApplicationForm"
|
|
479
|
+
},
|
|
480
|
+
CLOSE_APPLICATION_FORM: { actions: "hideApplicationForm" },
|
|
263
481
|
SIGN: {
|
|
264
482
|
target: "processing",
|
|
265
483
|
guard: "allConsented"
|
|
@@ -271,9 +489,14 @@ const electronicSignatureMachine = setup({
|
|
|
271
489
|
src: "signDocuments",
|
|
272
490
|
input: ({ context }) => ({
|
|
273
491
|
documents: context.documents,
|
|
492
|
+
sequential: isNamirialQesConfig(context.config),
|
|
274
493
|
variant: context.config.variant ?? "ae"
|
|
275
494
|
}),
|
|
276
495
|
onDone: [
|
|
496
|
+
{
|
|
497
|
+
target: "fetchingSignedDocs",
|
|
498
|
+
guard: "allSignedAndProviderTerms"
|
|
499
|
+
},
|
|
277
500
|
{
|
|
278
501
|
target: "successDownload",
|
|
279
502
|
guard: "allSignedAndDownload",
|
|
@@ -292,13 +515,57 @@ const electronicSignatureMachine = setup({
|
|
|
292
515
|
})
|
|
293
516
|
}
|
|
294
517
|
],
|
|
295
|
-
onError: {
|
|
518
|
+
onError: [{
|
|
519
|
+
target: "error",
|
|
520
|
+
guard: "isRetryableProviderFailure",
|
|
521
|
+
actions: assign(({ event }) => ({
|
|
522
|
+
errorMessage: String(event.error ?? "aes.error"),
|
|
523
|
+
errorSource: "signing"
|
|
524
|
+
}))
|
|
525
|
+
}, {
|
|
296
526
|
target: "signError",
|
|
297
527
|
actions: assign(({ event }) => ({
|
|
298
528
|
errorMessage: String(event.error ?? "aes.error"),
|
|
299
529
|
errorSource: "signing"
|
|
300
530
|
}))
|
|
301
|
-
}
|
|
531
|
+
}]
|
|
532
|
+
} },
|
|
533
|
+
fetchingSignedDocs: { invoke: {
|
|
534
|
+
id: "fetchSignedDocs",
|
|
535
|
+
src: "fetchSignedDocs",
|
|
536
|
+
onDone: [
|
|
537
|
+
{
|
|
538
|
+
target: "successDownload",
|
|
539
|
+
guard: "hasSignedDocumentsAndDownload",
|
|
540
|
+
actions: "setSignedDocumentsFromResponse"
|
|
541
|
+
},
|
|
542
|
+
{
|
|
543
|
+
target: "success",
|
|
544
|
+
guard: "hasSignedDocuments",
|
|
545
|
+
actions: "setSignedDocumentsFromResponse"
|
|
546
|
+
},
|
|
547
|
+
{
|
|
548
|
+
target: "signError",
|
|
549
|
+
actions: assign({
|
|
550
|
+
errorMessage: () => "aes.noDocuments",
|
|
551
|
+
errorSource: () => "signedDocs"
|
|
552
|
+
})
|
|
553
|
+
}
|
|
554
|
+
],
|
|
555
|
+
onError: [{
|
|
556
|
+
target: "error",
|
|
557
|
+
guard: "isRetryableProviderFailure",
|
|
558
|
+
actions: assign(({ event }) => ({
|
|
559
|
+
errorMessage: String(event.error ?? "aes.error"),
|
|
560
|
+
errorSource: "signedDocs"
|
|
561
|
+
}))
|
|
562
|
+
}, {
|
|
563
|
+
target: "signError",
|
|
564
|
+
actions: assign(({ event }) => ({
|
|
565
|
+
errorMessage: String(event.error ?? "aes.error"),
|
|
566
|
+
errorSource: "signedDocs"
|
|
567
|
+
}))
|
|
568
|
+
}]
|
|
302
569
|
} },
|
|
303
570
|
success: { after: { 3e3: "finished" } },
|
|
304
571
|
successDownload: { on: {
|
|
@@ -307,23 +574,50 @@ const electronicSignatureMachine = setup({
|
|
|
307
574
|
} },
|
|
308
575
|
signError: { after: { 3e3: "finished" } },
|
|
309
576
|
error: { on: {
|
|
310
|
-
RETRY: [
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
577
|
+
RETRY: [
|
|
578
|
+
{
|
|
579
|
+
target: "uploading",
|
|
580
|
+
guard: "errorFromUpload",
|
|
581
|
+
actions: assign({
|
|
582
|
+
errorMessage: () => "",
|
|
583
|
+
errorSource: () => null,
|
|
584
|
+
fileName: () => null,
|
|
585
|
+
fileSize: () => null,
|
|
586
|
+
fileUrl: () => null
|
|
587
|
+
})
|
|
588
|
+
},
|
|
589
|
+
{
|
|
590
|
+
target: "fetchingTerms",
|
|
591
|
+
guard: "errorFromTerms",
|
|
592
|
+
actions: assign({
|
|
593
|
+
errorMessage: () => "",
|
|
594
|
+
errorSource: () => null
|
|
595
|
+
})
|
|
596
|
+
},
|
|
597
|
+
{
|
|
598
|
+
target: "processing",
|
|
599
|
+
guard: "errorFromSigning",
|
|
600
|
+
actions: assign({
|
|
601
|
+
errorMessage: () => "",
|
|
602
|
+
errorSource: () => null
|
|
603
|
+
})
|
|
604
|
+
},
|
|
605
|
+
{
|
|
606
|
+
target: "fetchingSignedDocs",
|
|
607
|
+
guard: "errorFromSignedDocs",
|
|
608
|
+
actions: assign({
|
|
609
|
+
errorMessage: () => "",
|
|
610
|
+
errorSource: () => null
|
|
611
|
+
})
|
|
612
|
+
},
|
|
613
|
+
{
|
|
614
|
+
target: "fetchingDocs",
|
|
615
|
+
actions: assign({
|
|
616
|
+
errorMessage: () => "",
|
|
617
|
+
errorSource: () => null
|
|
618
|
+
})
|
|
619
|
+
}
|
|
620
|
+
],
|
|
327
621
|
CLOSE: { target: "closed" }
|
|
328
622
|
} },
|
|
329
623
|
finished: { type: "final" },
|
|
@@ -372,9 +666,11 @@ function getAdSignatureScreenName(snapshot) {
|
|
|
372
666
|
case "reviewing":
|
|
373
667
|
case "generatingUploadUrl":
|
|
374
668
|
case "uploadingFile": return "AdSign.reviewDoc.default";
|
|
669
|
+
case "fetchingTerms":
|
|
375
670
|
case "fetchingDocs":
|
|
376
671
|
case "signing": return "AdSign.AcceptSign.default";
|
|
377
|
-
case "processing":
|
|
672
|
+
case "processing":
|
|
673
|
+
case "fetchingSignedDocs": return "AdSign.AcceptSign.processing";
|
|
378
674
|
case "success":
|
|
379
675
|
case "successDownload":
|
|
380
676
|
case "finished": return "AdSign.success";
|
|
@@ -415,9 +711,11 @@ function getQSignatureScreenName(snapshot) {
|
|
|
415
711
|
case "reviewing":
|
|
416
712
|
case "generatingUploadUrl":
|
|
417
713
|
case "uploadingFile": return "QSign.review.default";
|
|
714
|
+
case "fetchingTerms":
|
|
418
715
|
case "fetchingDocs":
|
|
419
716
|
case "signing": return "QSign.AcceptSign.default";
|
|
420
|
-
case "processing":
|
|
717
|
+
case "processing":
|
|
718
|
+
case "fetchingSignedDocs": return "QSign.AcceptSign.processing";
|
|
421
719
|
case "success":
|
|
422
720
|
case "successDownload":
|
|
423
721
|
case "finished": return "QSign.success";
|
|
@@ -428,7 +726,7 @@ function getQSignatureScreenName(snapshot) {
|
|
|
428
726
|
}
|
|
429
727
|
function mapState(snapshot) {
|
|
430
728
|
const { context } = snapshot;
|
|
431
|
-
if (snapshot.matches("idle") || snapshot.matches("fetchingDocs") || snapshot.matches("generatingUploadUrl") || snapshot.matches("uploadingFile")) return { status: "loading" };
|
|
729
|
+
if (snapshot.matches("idle") || snapshot.matches("fetchingTerms") || snapshot.matches("fetchingDocs") || snapshot.matches("generatingUploadUrl") || snapshot.matches("uploadingFile")) return { status: "loading" };
|
|
432
730
|
if (snapshot.matches("uploading")) return {
|
|
433
731
|
status: "uploading",
|
|
434
732
|
fileName: context.fileName
|
|
@@ -444,9 +742,11 @@ function mapState(snapshot) {
|
|
|
444
742
|
documents: context.documents,
|
|
445
743
|
consentChecks: context.consentChecks,
|
|
446
744
|
allConsented: areAllConsented(context.consentChecks),
|
|
447
|
-
|
|
745
|
+
providerTerms: context.providerTerms,
|
|
746
|
+
viewingDocumentUrl: context.viewingDocumentUrl,
|
|
747
|
+
viewingApplicationForm: context.viewingApplicationForm
|
|
448
748
|
};
|
|
449
|
-
if (snapshot.matches("processing")) return { status: "processing" };
|
|
749
|
+
if (snapshot.matches("processing") || snapshot.matches("fetchingSignedDocs")) return { status: "processing" };
|
|
450
750
|
if (snapshot.matches("success") || snapshot.matches("successDownload")) return {
|
|
451
751
|
status: "success",
|
|
452
752
|
signedDocuments: context.signedDocuments,
|
|
@@ -502,6 +802,12 @@ function createApi({ actor, trackElementClicked, fileDataHolder }) {
|
|
|
502
802
|
closeDocumentView() {
|
|
503
803
|
actor.send({ type: "CLOSE_DOCUMENT_VIEW" });
|
|
504
804
|
},
|
|
805
|
+
viewApplicationForm() {
|
|
806
|
+
actor.send({ type: "VIEW_APPLICATION_FORM" });
|
|
807
|
+
},
|
|
808
|
+
closeApplicationForm() {
|
|
809
|
+
actor.send({ type: "CLOSE_APPLICATION_FORM" });
|
|
810
|
+
},
|
|
505
811
|
sign() {
|
|
506
812
|
trackElementClicked?.("sign");
|
|
507
813
|
actor.send({ type: "SIGN" });
|
|
@@ -549,4 +855,4 @@ function createElectronicSignatureManager(options) {
|
|
|
549
855
|
}));
|
|
550
856
|
}
|
|
551
857
|
//#endregion
|
|
552
|
-
export {
|
|
858
|
+
export { NAMIRIAL_QES_CONSENT_KEYS as a, areAllConsented as c, AE_CONSENT_KEYS as i, getConsentKeys as l, createElectronicSignatureManagerFromActor as n, NAMIRIAL_QES_PROVIDER_CODE as o, electronicSignatureMachine as r, QE_CONSENT_KEYS as s, createElectronicSignatureManager as t, getDefaultConsentChecks as u };
|
package/dist/email.esm.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { t as emailMachine } from "./emailStateMachine-
|
|
2
|
-
import { t as createEmailManager } from "./emailManager-
|
|
1
|
+
import { t as emailMachine } from "./emailStateMachine-CyPFZ7dW.esm.js";
|
|
2
|
+
import { t as createEmailManager } from "./emailManager-B5ek_UfM.esm.js";
|
|
3
3
|
export { createEmailManager, emailMachine };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-ijlbX_Wx.esm.js";
|
|
2
2
|
import { s as createActor, u as createManager } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
3
|
-
import { t as emailMachine } from "./emailStateMachine-
|
|
3
|
+
import { t as emailMachine } from "./emailStateMachine-CyPFZ7dW.esm.js";
|
|
4
4
|
//#region src/modules/email/emailActor.ts
|
|
5
5
|
function createEmailActor(options) {
|
|
6
6
|
return createActor(emailMachine, { input: { config: options.config } }).start();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-BXhgNxLt.esm.js";
|
|
2
2
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
3
|
-
import { t as endpoints } from "./endpoints-
|
|
3
|
+
import { t as endpoints } from "./endpoints-D3B9mUHh.esm.js";
|
|
4
4
|
import { i as assign, t as setup } from "./xstate.esm-BuFLFuzz.esm.js";
|
|
5
5
|
import { n as fromPromise, t as fromCallback } from "./xstate-actors.esm-BXeQ-Ucz.esm.js";
|
|
6
6
|
import { n as isOtpComplete, t as computeOtpValidationErrors } from "./otp-D2k3PeSL.esm.js";
|
|
@@ -11,12 +11,10 @@ const endpoints = {
|
|
|
11
11
|
deepsightVideoImport: "/omni/recordings/import",
|
|
12
12
|
/**
|
|
13
13
|
* Video-selfie multipart upload — served by the dedicated
|
|
14
|
-
* video-selfie-service.
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
* stage). Auth is the regular session token (`X-Incode-Hardware-Id`);
|
|
19
|
-
* no x-api-key.
|
|
14
|
+
* video-selfie-service. These paths resolve against the main `apiURL` like
|
|
15
|
+
* every other endpoint, and the service mesh (Istio) routes them to the
|
|
16
|
+
* service. Auth is the regular session token
|
|
17
|
+
* (`X-Incode-Hardware-Id`); no x-api-key.
|
|
20
18
|
*/
|
|
21
19
|
videoSelfieUploadInitiate: "/v1/video-upload/initiate",
|
|
22
20
|
videoSelfieUploadPart: "/v1/video-upload/part",
|
|
@@ -95,8 +93,10 @@ const endpoints = {
|
|
|
95
93
|
processWatchlist: "/omni/process/watchlist",
|
|
96
94
|
watchlistForBusinessSubmit: "/omni/businessWatchlist-result",
|
|
97
95
|
aesUnsignedDocuments: "/omni/es/documents/unsigned",
|
|
96
|
+
esSignedDocuments: "/omni/es/documents/signed",
|
|
98
97
|
aesSignDocument: "/omni/es/process/sign",
|
|
99
98
|
qesSignDocument: "/omni/es/process/signQes",
|
|
99
|
+
qesTerms: "/omni/es/qes/terms",
|
|
100
100
|
aesGenerateUploadUrl: "/omni/es/generateDocumentUploadUrl",
|
|
101
101
|
workflowCurrentNode: "/omni/workflow/current/node",
|
|
102
102
|
workflowProcessNode: "/omni/workflow/process/node",
|
|
@@ -148,7 +148,24 @@ const endpoints = {
|
|
|
148
148
|
* forwards the sealed envelope to the diagnostics backend. The request body
|
|
149
149
|
* is the bare envelope JSON; trailing slash is part of the contract.
|
|
150
150
|
*/
|
|
151
|
-
diagnosticsData: "/omni/add/diagnostics-data/"
|
|
151
|
+
diagnosticsData: "/omni/add/diagnostics-data/",
|
|
152
|
+
/**
|
|
153
|
+
* Trinsic digital-ID web-redirect (iDIN/FTN). Auth is `X-Api-Key` + the
|
|
154
|
+
* session token. The parameterized legs (`/{id}/response|status|refresh`)
|
|
155
|
+
* are built from `digitalIdVerifications` in `digitalIdRedirectServices`.
|
|
156
|
+
*/
|
|
157
|
+
digitalIdProviders: "/omni/v2/digital-id/providers",
|
|
158
|
+
digitalIdVerifications: "/omni/v2/digital-id/verifications",
|
|
159
|
+
/**
|
|
160
|
+
* Device-wallet (mDL) handshake — Apple Wallet (web) and Google Wallet via
|
|
161
|
+
* the W3C Digital Credentials API. Auth is the session token
|
|
162
|
+
* (X-Incode-Hardware-Id, auto-injected) plus an explicit `api-version: '1.0'`
|
|
163
|
+
* header. The request/decrypt payloads are opaque to the SDK.
|
|
164
|
+
*/
|
|
165
|
+
deviceWalletAppleRequest: "/omni/v1/device/wallet/apple/web/request",
|
|
166
|
+
deviceWalletAppleDecrypt: "/omni/v1/device/wallet/apple/web/decrypt",
|
|
167
|
+
deviceWalletGoogleRequest: "/omni/v1/device/wallet/google/request",
|
|
168
|
+
deviceWalletGoogleDecrypt: "/omni/v1/device/wallet/google/decrypt"
|
|
152
169
|
};
|
|
153
170
|
//#endregion
|
|
154
171
|
export { endpoints as t };
|