@incodetech/core 2.3.2 → 2.4.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 +1243 -3
- package/dist/Actor-DpTj5PFb.d.ts +1 -0
- package/dist/{BaseWasmProvider-Dyi6dKp1.d.ts → BaseWasmProvider-BL9wIRnN.d.ts} +2 -2
- package/dist/{FaceDetectionProvider-DtmtCKa9.esm.js → FaceDetectionProvider-BjTer9h3.esm.js} +126 -10
- package/dist/HttpRequestError-Bh0pNGSC.esm.js +35 -0
- package/dist/{IIdCaptureCapability-RNiFhvXR.d.ts → IIdCaptureCapability-DBsv9-7M.d.ts} +2 -2
- package/dist/{IWasmUtilCapability-CNWRl7jr.d.ts → IWasmUtilCapability-CPX0RGdQ.d.ts} +28 -5
- package/dist/{Manager-CQQ99QOI.d.ts → Manager-C9T5amUN.d.ts} +7 -1
- package/dist/{MotionSensorProvider-DyhbM4Si.esm.js → MotionSensorProvider-DYxh8TjR.esm.js} +1 -1
- package/dist/{ekycStateMachine-UeJRO8_p.esm.js → PhoneValidationProvider-SZiOS0jB.esm.js} +232 -827
- package/dist/{StreamCanvasCapture-_8gdW5Lk.d.ts → StreamCanvasCapture-DVmzJux5.d.ts} +2 -2
- package/dist/{safeStorage-BdU9_m2E.esm.js → WasmUtilProvider-CIdnE7Fx.esm.js} +95 -46
- package/dist/{addressSearch-DyHGgeX8.esm.js → addressSearch-BiYZjvp3.esm.js} +143 -4
- package/dist/{advanceableErrors-CpF2cBy6.esm.js → advanceableErrors-q_pfU3Cn.esm.js} +5 -4
- package/dist/ae-signature.d.ts +2 -2
- package/dist/ae-signature.esm.js +1 -1
- package/dist/antifraud.d.ts +1 -1
- package/dist/antifraud.esm.js +2 -2
- package/dist/{antifraudManager-BY36bS12.d.ts → antifraudManager-DbGCvlJs.d.ts} +2 -2
- package/dist/{antifraudManager-DNkw66oW.esm.js → antifraudManager-HL08jeDX.esm.js} +3 -3
- package/dist/{antifraudStateMachine-DBeq47D2.esm.js → antifraudStateMachine-DoJVzblM.esm.js} +3 -3
- package/dist/{apiError-CmGEmaGU.esm.js → apiError-DcSWedC6.esm.js} +2 -1
- package/dist/authentication.d.ts +3 -3
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-CboRCl_N.d.ts → authenticationManager-CANv5-W5.d.ts} +2 -8
- package/dist/{authenticationManager-BFjSjtQ_.esm.js → authenticationManager-SaiAxqvS.esm.js} +6 -6
- package/dist/{authenticationStateMachine-Dfo34ZiI.esm.js → authenticationStateMachine-CHSxmV7z.esm.js} +5 -6
- package/dist/avatar.d.ts +1 -1
- package/dist/{backCameraStream-B0-YgP_y.esm.js → backCameraStream-CMvXj4X4.esm.js} +1 -1
- package/dist/camera.esm.js +1 -1
- package/dist/certificate-issuance.d.ts +1 -1
- package/dist/certificate-issuance.esm.js +2 -2
- package/dist/{certificateIssuanceManager-C3-CI0_s.esm.js → certificateIssuanceManager-CMg4SgL4.esm.js} +3 -3
- package/dist/{certificateIssuanceManager-DCgEidHz.d.ts → certificateIssuanceManager-Dr8A4Lgr.d.ts} +2 -3
- package/dist/{certificateIssuanceStateMachine-CxqS_nD-.esm.js → certificateIssuanceStateMachine-Cs64QmYH.esm.js} +4 -4
- package/dist/consent.d.ts +1 -1
- package/dist/consent.esm.js +2 -2
- package/dist/{consentManager-B6E1XJDw.esm.js → consentManager-CjrxY737.esm.js} +3 -3
- package/dist/{consentManager-2h_w6wFc.d.ts → consentManager-DgzWQpAR.d.ts} +6 -7
- package/dist/{consentStateMachine-DTSfdGiW.esm.js → consentStateMachine-BCj5Jb3g.esm.js} +3 -3
- package/dist/{createCameraCycleOwnership-DnwTl1ad.esm.js → createCameraCycleOwnership-kdlhkmmY.esm.js} +71 -65
- package/dist/{createFaceAvatar-BlcTYgJv.d.ts → createFaceAvatar-DXgmQmQy.d.ts} +1 -1
- package/dist/cross-document-data-match.d.ts +1 -1
- package/dist/cross-document-data-match.esm.js +1 -1
- package/dist/{crossDocumentDataMatchManager-9XhFVZ5S.esm.js → crossDocumentDataMatchManager-BHnGRsto.esm.js} +4 -4
- package/dist/{crossDocumentDataMatchManager-Dq8Z3SOg.d.ts → crossDocumentDataMatchManager-yCWCOzcU.d.ts} +2 -2
- package/dist/curp-validation.d.ts +1 -1
- package/dist/curp-validation.esm.js +2 -2
- package/dist/{curpValidationManager-DNuZn9fn.d.ts → curpValidationManager-B-1EZbP_.d.ts} +3 -3
- package/dist/{curpValidationManager-DbIMYFcJ.esm.js → curpValidationManager-DBNIn8BF.esm.js} +15 -22
- package/dist/{curpValidationStateMachine-g5kMfuLj.esm.js → curpValidationStateMachine-DAxImy8p.esm.js} +4 -4
- package/dist/custom-fields.d.ts +1 -1
- package/dist/custom-fields.esm.js +1 -1
- package/dist/custom-watchlist.d.ts +1 -1
- package/dist/custom-watchlist.esm.js +2 -2
- package/dist/{customFieldsManager-CzWZTkW-.esm.js → customFieldsManager-BV6UyLFV.esm.js} +4 -4
- package/dist/{customFieldsManager-8-W2KY4n.d.ts → customFieldsManager-CF-cO8ap.d.ts} +2 -2
- package/dist/{customWatchlistManager-DWTED5Ur.esm.js → customWatchlistManager-DML0UPzf.esm.js} +3 -3
- package/dist/{customWatchlistManager-PBWHr_oM.d.ts → customWatchlistManager-DolUswyR.d.ts} +2 -2
- package/dist/{customWatchlistStateMachine-DOQou6TW.esm.js → customWatchlistStateMachine-D9gI5uu7.esm.js} +3 -3
- package/dist/deepsightLoader-DvfAYnzg.esm.js +55 -0
- package/dist/{deepsightLoader-v-dLejS-.esm.js → deepsightService-DLGO9yv1.esm.js} +51 -56
- package/dist/device.esm.js +1 -1
- package/dist/document-capture.d.ts +2 -2
- package/dist/document-capture.esm.js +2 -2
- package/dist/{documentCaptureManager-BRPxqYD2.esm.js → documentCaptureManager-C9XUnYU6.esm.js} +17 -18
- package/dist/{documentCaptureManager-lEtCM320.d.ts → documentCaptureManager-DkyDtm3Y.d.ts} +11 -34
- package/dist/{documentCaptureStateMachine-D312sSIu.esm.js → documentCaptureStateMachine-BHDsCfhL.esm.js} +55 -58
- package/dist/dynamic-forms.d.ts +2 -2
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-C-9Jhnd3.esm.js → dynamicFormsManager-5uIXobxi.esm.js} +3 -3
- package/dist/{dynamicFormsManager-D5R_uxLQ.d.ts → dynamicFormsManager-C0dHs1ty.d.ts} +3 -3
- package/dist/{dynamicFormsStateMachine-DGI_F2PP.esm.js → dynamicFormsStateMachine-DQmok084.esm.js} +4 -4
- package/dist/ekyb.d.ts +5 -5
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-BwRuGAwt.d.ts → ekybManager-BaZ_7CEu.d.ts} +4 -4
- package/dist/{ekybManager-DeoMcZEz.esm.js → ekybManager-CazShiQz.esm.js} +23 -27
- package/dist/{ekybStateMachine-D1IJ1Z72.esm.js → ekybStateMachine-hstiCNmW.esm.js} +338 -13
- package/dist/ekyc.d.ts +2 -2
- package/dist/ekyc.esm.js +3 -3
- package/dist/{ekycManager-BX2d46FY.esm.js → ekycManager-BdJRUsz0.esm.js} +29 -36
- package/dist/{ekycManager-DLzDuBzI.d.ts → ekycManager-DW-ynodd.d.ts} +3 -3
- package/dist/ekycStateMachine-x6Klot8g.esm.js +1444 -0
- package/dist/{ekycUtils-D6wfSpPN.esm.js → ekycUtils-zY8CdKJL.esm.js} +53 -3
- package/dist/electronic-signature.d.ts +1 -1
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-yYUc30na.esm.js → electronicSignatureManager-Bc8spG8p.esm.js} +10 -10
- package/dist/{electronicSignatureManager-Ds-KEVTq.d.ts → electronicSignatureManager-DTSLOvKR.d.ts} +2 -3
- package/dist/email.d.ts +1 -1
- package/dist/email.esm.js +2 -2
- package/dist/{emailManager-bR1N5rV_.esm.js → emailManager-CtlKRRaR.esm.js} +20 -26
- package/dist/{emailManager-CADXW_9X.d.ts → emailManager-Dy6omJVp.d.ts} +2 -2
- package/dist/{emailStateMachine-Bc_6oIYw.esm.js → emailStateMachine-5Neq3rE5.esm.js} +4 -4
- package/dist/{endpoints-B-3Q-LUw.esm.js → endpoints-DHzlkQNe.esm.js} +2 -0
- package/dist/{events-ijlbX_Wx.esm.js → events-CAgFE-k3.esm.js} +19 -7
- package/dist/events.d.ts +3 -2
- package/dist/events.esm.js +1 -1
- package/dist/extensibility.d.ts +38 -38
- package/dist/extensibility.esm.js +36 -36
- package/dist/{externalFetch-BKBThAUC.esm.js → externalFetch-DrR9xshk.esm.js} +3 -2
- package/dist/face-match.d.ts +1 -1
- package/dist/face-match.esm.js +2 -2
- package/dist/{faceCaptureManagerFactory-m-7ae67q.d.ts → faceCaptureManagerFactory-jKQ2QtY-.d.ts} +11 -51
- package/dist/{faceCaptureManagerFactory-B6i9QcAk.esm.js → faceCaptureManagerFactory-uFm1AcaY.esm.js} +19 -54
- package/dist/{faceCaptureSetup-DU1mjRr6.esm.js → faceCaptureSetup-Cu2wabzo.esm.js} +99 -395
- package/dist/{faceMatchManager-Bmv0HzuY.esm.js → faceMatchManager-9Nj9aPci.esm.js} +3 -3
- package/dist/{faceMatchManager-BnvrZM2F.d.ts → faceMatchManager-DIgG-UFS.d.ts} +1 -2
- package/dist/{faceMatchStateMachine-mRIHQ3dA.esm.js → faceMatchStateMachine-B9ZUnlyU.esm.js} +6 -4
- package/dist/{feature-management-C8CuN0os.esm.js → feature-management-BTbYruNe.esm.js} +3 -3
- package/dist/feature-management.esm.js +1 -1
- package/dist/field-comparison.d.ts +2 -2
- package/dist/field-comparison.esm.js +1 -1
- package/dist/{fieldComparisonManager-CBvEGxFx.d.ts → fieldComparisonManager-CUX4gza2.d.ts} +6 -3
- package/dist/{fieldComparisonManager-CC-klG0h.esm.js → fieldComparisonManager-Dk38hXZP.esm.js} +35 -17
- package/dist/fiscal-qr.d.ts +1 -1
- package/dist/fiscal-qr.esm.js +1 -1
- package/dist/{fiscalQrManager-B1STmT6z.d.ts → fiscalQrManager-D0Iy7EKR.d.ts} +2 -2
- package/dist/fiscalQrManager-DmBkQfs0.esm.js +6798 -0
- package/dist/flow-events.d.ts +1 -1
- package/dist/flow.d.ts +14 -13
- package/dist/flow.esm.js +14 -14
- package/dist/{flowCompletionService-DccgtDnm.esm.js → flowCompletionService-xnn_SlJU.esm.js} +2 -2
- package/dist/{flowServices-CdsWsppG.esm.js → flowServices-DA64AEZC.esm.js} +11 -7
- package/dist/geolocation.d.ts +1 -1
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-CGHBxtMb.esm.js → geolocationManager-CqNLY45e.esm.js} +6 -7
- package/dist/{geolocationManager-Cz744E5S.d.ts → geolocationManager-Dn24g1fl.d.ts} +2 -3
- package/dist/{geolocationStateMachine-CdEb1Gn0.esm.js → geolocationStateMachine-D-cQi7ar.esm.js} +4 -4
- package/dist/{getDeviceClass-5NYZg9s6.esm.js → getDeviceClass-bsWdEDxP.esm.js} +1 -1
- package/dist/{getParsedUserAgent-B2iFDql1.esm.js → getParsedUserAgent-DhQPeKqw.esm.js} +1 -1
- package/dist/government-validation.d.ts +1 -1
- package/dist/government-validation.esm.js +2 -2
- package/dist/{governmentValidationManager-D02vT4yY.d.ts → governmentValidationManager-B82zOut8.d.ts} +3 -3
- package/dist/{governmentValidationManager-CacFOtKO.esm.js → governmentValidationManager-CP0SiOOe.esm.js} +3 -3
- package/dist/{governmentValidationStateMachine-CoaZOSTP.esm.js → governmentValidationStateMachine-C3YQ8yCZ.esm.js} +3 -3
- package/dist/home.d.ts +3 -26
- package/dist/home.esm.js +2 -2
- package/dist/id-ocr.d.ts +1 -1
- package/dist/id-ocr.esm.js +2 -2
- package/dist/id-selfie-flow.d.ts +6 -9
- package/dist/id-selfie-flow.esm.js +23 -28
- package/dist/id-verification.d.ts +1 -1
- package/dist/id-verification.esm.js +2 -2
- package/dist/id.d.ts +4 -4
- package/dist/id.esm.js +4 -205
- package/dist/{idCaptureDefaults-Dl64Trv5.esm.js → idCaptureDefaults-CBg73RnV.esm.js} +8 -5
- package/dist/{idCaptureManager-BHwL2Z0V.d.ts → idCaptureManager-BY97SRCV.d.ts} +242 -98
- package/dist/{idCaptureManager-BNmVJQkd.esm.js → idCaptureManager-D4V8vXtY.esm.js} +276 -210
- package/dist/{idCaptureServices-dtDG2HXS.esm.js → idCaptureServices-DJ33k3-p.esm.js} +21 -39
- package/dist/{idCaptureStateMachine-BbiZD3uf.esm.js → idCaptureStateMachine-PJt0yzom.esm.js} +989 -872
- package/dist/{idOcrManager-CFlDwUvN.d.ts → idOcrManager-BTdHlJ9D.d.ts} +2 -3
- package/dist/{idOcrManager-ByWuQ4ej.esm.js → idOcrManager-DxoCesYP.esm.js} +3 -3
- package/dist/{idOcrStateMachine-Bt_abXQQ.esm.js → idOcrStateMachine-kPn7DB2I.esm.js} +3 -3
- package/dist/{idVerificationManager-BB4Pj_N6.d.ts → idVerificationManager-BJapZfpy.d.ts} +2 -3
- package/dist/{idVerificationManager-DT42c77H.esm.js → idVerificationManager-CDhRUU5n.esm.js} +3 -3
- package/dist/{idVerificationStateMachine-DbDVIh9t.esm.js → idVerificationStateMachine-0HTVVxse.esm.js} +3 -3
- package/dist/identity-reuse.d.ts +2 -2
- package/dist/identity-reuse.esm.js +2 -2
- package/dist/{identityReuseManager-yG3acUrQ.esm.js → identityReuseManager-BleUi6TK.esm.js} +26 -13
- package/dist/{identityReuseManager-BXEBBI3N.d.ts → identityReuseManager-ooAbp6Kc.d.ts} +164 -46
- package/dist/{identityReuseStateMachine-BhAkuIra.esm.js → identityReuseStateMachine-BrBUpfn5.esm.js} +89 -23
- package/dist/{index-CeaC32qI.d.ts → index-DfEuu-Ew.d.ts} +2 -2
- package/dist/index-DpTj5PFb.d.ts +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/{invokeOnCaptureCallback-BjzPjJ_p.esm.js → invokeOnCaptureCallback-BW7V3vub.esm.js} +1 -1
- package/dist/lamejs-B6TzhU5q.esm.js +10 -0
- package/dist/mandatory-consent.d.ts +2 -2
- package/dist/mandatory-consent.esm.js +2 -2
- package/dist/{mandatoryConsentManager-7dI0D08q.esm.js → mandatoryConsentManager-CX_Dyht7.esm.js} +3 -3
- package/dist/{mandatoryConsentManager-DFVm_i2B.d.ts → mandatoryConsentManager-TkX57U6f.d.ts} +3 -4
- package/dist/{mandatoryConsentStateMachine-DC5Mo6M1.esm.js → mandatoryConsentStateMachine-CoaSB7P7.esm.js} +3 -3
- package/dist/{multipartRecordingService-mwKFTlhR.esm.js → multipartRecordingService-DbeQpXdU.esm.js} +2 -2
- package/dist/{permissionGuards-D6TfVop2.esm.js → permissionGuards-Bf4LbHjC.esm.js} +1 -1
- package/dist/{permissionServices-EY3_Vx6c.esm.js → permissionServices-d2UW0r_L.esm.js} +34 -3
- package/dist/phone-number.d.ts +24 -0
- package/dist/phone-number.esm.js +1922 -0
- package/dist/phone.d.ts +1 -1
- package/dist/phone.esm.js +2 -2
- package/dist/{phoneManager-IjhSv5XS.esm.js → phoneManager-BGBcpqsk.esm.js} +31 -22
- package/dist/{phoneManager-BBU8Lq0O.d.ts → phoneManager-BO-LTih5.d.ts} +16 -3
- package/dist/{phoneStateMachine-CXdXufKg.esm.js → phoneStateMachine-CEm2y7yG.esm.js} +39 -20
- package/dist/phoneValidation-DnBcNUNh.esm.js +48 -0
- package/dist/qe-signature.d.ts +2 -2
- package/dist/qe-signature.esm.js +1 -1
- package/dist/redirect-to-mobile.d.ts +1 -1
- package/dist/redirect-to-mobile.esm.js +2 -2
- package/dist/{redirectToMobileManager-FLEWJtv8.esm.js → redirectToMobileManager-B1yQHFLu.esm.js} +4 -4
- package/dist/{redirectToMobileManager-BD2PvT5B.d.ts → redirectToMobileManager-CVsvpVbQ.d.ts} +2 -2
- package/dist/{redirectToMobileStateMachine-CSWWgUTO.esm.js → redirectToMobileStateMachine--Sr9NEVT.esm.js} +5 -5
- package/dist/{rolldown-runtime-FDOR9p9I.esm.js → rolldown-runtime-B-1-B7_t.esm.js} +10 -1
- package/dist/{runChildModule-B2Y_hlix.esm.js → runChildModule-vdxQMCmO.esm.js} +13 -12
- package/dist/safeStorage-UxDrnjwa.esm.js +35 -0
- package/dist/{sdkVersion-N1UiyFiY.esm.js → sdkVersion-F5YZbjip.esm.js} +1 -1
- package/dist/selfie.d.ts +4 -4
- package/dist/selfie.esm.js +12 -12
- package/dist/selfieErrorUtils-D-tsgEuX.esm.js +21 -0
- package/dist/{selfieManager-BSZG891S.d.ts → selfieManager-1J0IEyFq.d.ts} +2 -8
- package/dist/{selfieManager-AS6wfUvZ.esm.js → selfieManager-26pENXxw.esm.js} +6 -6
- package/dist/selfieStateMachine-BhfKsl3I.esm.js +41 -0
- package/dist/{session-BESZc05k.esm.js → session-Bu7djCsj.esm.js} +5 -5
- package/dist/session.d.ts +15 -3
- package/dist/session.esm.js +30 -5
- package/dist/sessionInitializer-jxbfCnE-.esm.js +974 -0
- package/dist/{setup-BuPbxpwF.esm.js → setup-C38QkrSP.esm.js} +232 -112
- package/dist/{setup-Cyko6cAn.d.ts → setup-lgkQ8dJW.d.ts} +20 -11
- package/dist/signature.d.ts +1 -1
- package/dist/signature.esm.js +2 -2
- package/dist/{signatureManager-DGBSWz2_.d.ts → signatureManager-BpVt_Jv7.d.ts} +2 -2
- package/dist/{signatureManager-B72np4ZO.esm.js → signatureManager-qqXyH93e.esm.js} +7 -11
- package/dist/{signatureStateMachine-ce_XMA3l.esm.js → signatureStateMachine-BkRSrkKp.esm.js} +3 -3
- package/dist/splitTrackedName-3zJRd2RD.esm.js +19 -0
- package/dist/{src-35ekGRzK.esm.js → src-DJAJjRYQ.esm.js} +1 -1
- package/dist/{stats-CZcy2J53.esm.js → stats-DmG_tkGk.esm.js} +1 -1
- package/dist/stats.esm.js +1 -1
- package/dist/{sessionInitializer-CnhAkMUN.esm.js → thumbmark.esm-CRc0cYvz.esm.js} +33 -776
- package/dist/{trueSightService-M5VpCo96.esm.js → trueSightService-BWgRVGIT.esm.js} +893 -900
- package/dist/trust-graph.d.ts +1 -2
- package/dist/trust-graph.esm.js +2 -2
- package/dist/{types-C0oWGUzg.d.ts → types-0L-eFDmr.d.ts} +1 -1
- package/dist/{types-C1g9itHE.d.ts → types-BGXxRwQM.d.ts} +6 -7
- package/dist/{types-BfgmV7s7.d.ts → types-BQA7lRDV.d.ts} +1 -1
- package/dist/{types-CxGdmzxa.d.ts → types-BvFmYX5c.d.ts} +1 -1
- package/dist/{types-Cx-1zo-i.d.ts → types-BvLo3U4u.d.ts} +1 -1
- package/dist/types-C71Zo6vl.d.ts +6 -0
- package/dist/{types-DEGVXwsk2.d.ts → types-CyPUIpzf.d.ts} +110 -62
- package/dist/{types-Bx-BWveD.d.ts → types-DTYr9pCB.d.ts} +1 -1
- package/dist/{types-BjSly8cp.d.ts → types-DUnFZ08M.d.ts} +1 -1
- package/dist/{types-ESdtnHtg.d.ts → types-zpO4fU6a.d.ts} +3 -4
- package/dist/{urlUtils-D6phjq1-.esm.js → urlUtils-6jsE6rKp.esm.js} +9 -1
- package/dist/video-selfie.d.ts +6 -9
- package/dist/video-selfie.esm.js +1386 -1344
- package/dist/{videoSelfieCameraWarmer-q9ZjvXu9.esm.js → videoSelfieCameraWarmer-C366RKqu.esm.js} +11 -11
- package/dist/{videoSelfieFlowModuleMachine-BUe2uACW.esm.js → videoSelfieFlowModuleMachine-BCFVHBQ1.esm.js} +1 -1
- package/dist/{videoSelfieStepDetector-ChYgFM15.d.ts → videoSelfieStepDetector-C5QHOvWb.d.ts} +4 -4
- package/dist/videoTrimByCopy-BFfAiNpv.esm.js +15901 -0
- package/dist/{warmup-Cis2p6O0.d.ts → warmup-BUPPRAA1.d.ts} +7 -0
- package/dist/{warmup-ChDwHSel.esm.js → warmup-DMtbyb2l.esm.js} +27 -9
- package/dist/wasm.d.ts +2 -2
- package/dist/wasm.esm.js +4 -4
- package/dist/{wasmDsFlagSync-DYrLUEII.esm.js → wasmDsFlagSync-BXCGqP48.esm.js} +1 -1
- package/dist/{wasmWebClient-B7baE-Wf.esm.js → wasmWebClient-kbYZ2sxw.esm.js} +259 -20
- package/dist/watchlist-for-business.d.ts +1 -1
- package/dist/watchlist-for-business.esm.js +2 -2
- package/dist/watchlist.d.ts +1 -1
- package/dist/watchlist.esm.js +2 -2
- package/dist/{watchlistForBusinessManager-CsnJnG-C.d.ts → watchlistForBusinessManager-B3GDPZrr.d.ts} +2 -2
- package/dist/{watchlistForBusinessManager-CIMkpEhu.esm.js → watchlistForBusinessManager-BvF4jK3S.esm.js} +7 -5
- package/dist/{watchlistForBusinessStateMachine-CJ-MvUre.esm.js → watchlistForBusinessStateMachine-121XK-Et.esm.js} +3 -3
- package/dist/{watchlistManager-CixcLNDT.esm.js → watchlistManager-CNWEOYSq.esm.js} +3 -3
- package/dist/{watchlistManager-DLXef90v.d.ts → watchlistManager-DJQOd8Pw.d.ts} +2 -2
- package/dist/{watchlistStateMachine-CBqk2w-h.esm.js → watchlistStateMachine-Dgfm42w2.esm.js} +3 -3
- package/dist/workflow.d.ts +34 -5
- package/dist/workflow.esm.js +64 -46
- package/dist/{xstate-actors.esm-BXeQ-Ucz.esm.js → xstate-actors.esm-8Gzepa_A.esm.js} +1 -1
- package/dist/{xstate.esm-BuFLFuzz.esm.js → xstate.esm-DSajW7CJ.esm.js} +24 -10
- package/package.json +13 -5
- package/dist/Actor-iTq7YY48.d.ts +0 -1
- package/dist/StateMachine-EDpYWy0i.d.ts +0 -6
- package/dist/fiscalQrManager-DbCVMIBx.esm.js +0 -34143
- package/dist/index-B8weJxmL.d.ts +0 -1
- package/dist/selfieErrorUtils-UiQ46EBa.esm.js +0 -116
- package/dist/selfieStateMachine-DY7vJVNY.esm.js +0 -71
- package/dist/types-BN5RPPIZ.esm.js +0 -34
- package/dist/types-Bt9RuRqt.d.ts +0 -6
- package/dist/virtualCameraCheck-Cjab7FTI.esm.js +0 -48
- /package/dist/{types-BSBzhHRH.d.ts → types-BSBzhHRH2.d.ts} +0 -0
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { A as StateMachine, C as StateValue, D as PromiseActorLogic, a as ActorRefFromLogic, b as RequiredActorOptions, c as AnyEventObject, g as IsNotNever, h as InputFrom, i as ActorRefFrom, k as MachineSnapshot, m as GetConcreteByKey, o as AnyActorLogic, p as EventObject, r as ActorRef, s as AnyActorRef, u as ConditionalRequired, v as MetaObject, w as Values, x as RequiredLogicInput, y as NonReducibleUnknown } from "./spawn-D9jgw9pW.js";
|
|
2
|
-
import "./
|
|
3
|
-
import
|
|
4
|
-
import "./Actor-iTq7YY48.js";
|
|
2
|
+
import { t as Manager } from "./Manager-C9T5amUN.js";
|
|
3
|
+
import "./Actor-DpTj5PFb.js";
|
|
5
4
|
import { a as UpdateOcrResponse, i as UpdateOcrDataParams, n as OcrData, t as IdOcrConfig } from "./types-CJ7Yl9K-.js";
|
|
6
5
|
//#region src/modules/id-ocr/idOcrStateMachine.d.ts
|
|
7
6
|
type IdOcrOcrDocument = 'first' | 'second';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
2
|
-
import { s as createActor, u as createManager } from "./xstate.esm-
|
|
3
|
-
import { t as idOcrStateMachine } from "./idOcrStateMachine-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CAgFE-k3.esm.js";
|
|
2
|
+
import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
3
|
+
import { t as idOcrStateMachine } from "./idOcrStateMachine-kPn7DB2I.esm.js";
|
|
4
4
|
//#region src/modules/id-ocr/idOcrActor.ts
|
|
5
5
|
function createIdOcrActor(options) {
|
|
6
6
|
return createActor(idOcrStateMachine, { input: { config: options.config } }).start();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as getTimestamp } from "./IBrowserEnvironmentCapability-DEaRRk-R.esm.js";
|
|
2
2
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
3
|
-
import { t as endpoints } from "./endpoints-
|
|
4
|
-
import { i as assign, t as setup } from "./xstate.esm-
|
|
5
|
-
import { n as fromPromise } from "./xstate-actors.esm-
|
|
3
|
+
import { t as endpoints } from "./endpoints-DHzlkQNe.esm.js";
|
|
4
|
+
import { i as assign, t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
5
|
+
import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
6
6
|
import { n as DateFormattingProvider, t as validateCPF } from "./cpf-uAZTPUBy.esm.js";
|
|
7
7
|
//#region src/modules/id-ocr/idOcrUtils.ts
|
|
8
8
|
const dateFormattingInstance$1 = new DateFormattingProvider();
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { A as StateMachine, C as StateValue, D as PromiseActorLogic, a as ActorRefFromLogic, b as RequiredActorOptions, c as AnyEventObject, g as IsNotNever, h as InputFrom, i as ActorRefFrom, k as MachineSnapshot, m as GetConcreteByKey, o as AnyActorLogic, p as EventObject, r as ActorRef, s as AnyActorRef, u as ConditionalRequired, v as MetaObject, x as RequiredLogicInput, y as NonReducibleUnknown } from "./spawn-D9jgw9pW.js";
|
|
2
|
-
import "./
|
|
3
|
-
import
|
|
4
|
-
import "./Actor-iTq7YY48.js";
|
|
2
|
+
import { t as Manager } from "./Manager-C9T5amUN.js";
|
|
3
|
+
import "./Actor-DpTj5PFb.js";
|
|
5
4
|
//#region src/modules/id-verification/types.d.ts
|
|
6
5
|
type IdVerificationConfig = {
|
|
7
6
|
/** When true, verify the second captured ID via `/omni/process/second-id`. */
|
package/dist/{idVerificationManager-DT42c77H.esm.js → idVerificationManager-CDhRUU5n.esm.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
2
|
-
import { s as createActor, u as createManager } from "./xstate.esm-
|
|
3
|
-
import { t as idVerificationMachine } from "./idVerificationStateMachine-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CAgFE-k3.esm.js";
|
|
2
|
+
import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
3
|
+
import { t as idVerificationMachine } from "./idVerificationStateMachine-0HTVVxse.esm.js";
|
|
4
4
|
//#region src/modules/id-verification/idVerificationActor.ts
|
|
5
5
|
function createIdVerificationActor(options) {
|
|
6
6
|
return createActor(idVerificationMachine, { input: { config: options.config } }).start();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as api } from "./api-Bx3gKW_y.esm.js";
|
|
2
|
-
import { t as endpoints } from "./endpoints-
|
|
3
|
-
import { t as setup } from "./xstate.esm-
|
|
4
|
-
import { n as fromPromise } from "./xstate-actors.esm-
|
|
2
|
+
import { t as endpoints } from "./endpoints-DHzlkQNe.esm.js";
|
|
3
|
+
import { t as setup } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
4
|
+
import { n as fromPromise } from "./xstate-actors.esm-8Gzepa_A.esm.js";
|
|
5
5
|
//#region src/modules/id-verification/idVerificationServices.ts
|
|
6
6
|
/**
|
|
7
7
|
* Submits the captured ID for backend verification. Wraps `POST /omni/process/id`
|
package/dist/identity-reuse.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { c as identityReuseMachine, d as
|
|
2
|
-
export { type FetchDocumentsResponse, type IdentityReuseConfig, type IdentityReuseManager, type IdentityReuseState, type ReusableDocument, SCAN_NEW_DOCUMENT, type SelectedDocumentId, type SubmitResponse, createIdentityReuseManager, createIdentityReuseManagerFromActor, identityReuseMachine };
|
|
1
|
+
import { c as identityReuseMachine, d as IdentityReuseConfig, f as ReusableDocument, i as createIdentityReuseManagerFromActor, l as FetchCompanyNameResponse, n as IdentityReuseState, o as SCAN_NEW_DOCUMENT, p as SubmitResponse, r as createIdentityReuseManager, s as SelectedDocumentId, t as IdentityReuseManager, u as FetchDocumentsResponse } from "./identityReuseManager-ooAbp6Kc.js";
|
|
2
|
+
export { type FetchCompanyNameResponse, type FetchDocumentsResponse, type IdentityReuseConfig, type IdentityReuseManager, type IdentityReuseState, type ReusableDocument, SCAN_NEW_DOCUMENT, type SelectedDocumentId, type SubmitResponse, createIdentityReuseManager, createIdentityReuseManagerFromActor, identityReuseMachine };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as identityReuseMachine, t as SCAN_NEW_DOCUMENT } from "./identityReuseStateMachine-
|
|
2
|
-
import { n as createIdentityReuseManagerFromActor, t as createIdentityReuseManager } from "./identityReuseManager-
|
|
1
|
+
import { n as identityReuseMachine, t as SCAN_NEW_DOCUMENT } from "./identityReuseStateMachine-BrBUpfn5.esm.js";
|
|
2
|
+
import { n as createIdentityReuseManagerFromActor, t as createIdentityReuseManager } from "./identityReuseManager-BleUi6TK.esm.js";
|
|
3
3
|
export { SCAN_NEW_DOCUMENT, createIdentityReuseManager, createIdentityReuseManagerFromActor, identityReuseMachine };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
2
|
-
import { s as createActor, u as createManager } from "./xstate.esm-
|
|
3
|
-
import { n as identityReuseMachine } from "./identityReuseStateMachine-
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-CAgFE-k3.esm.js";
|
|
2
|
+
import { s as createActor, u as createManager } from "./xstate.esm-DSajW7CJ.esm.js";
|
|
3
|
+
import { n as identityReuseMachine } from "./identityReuseStateMachine-BrBUpfn5.esm.js";
|
|
4
4
|
//#region src/modules/identity-reuse/identityReuseActor.ts
|
|
5
5
|
/**
|
|
6
6
|
* Creates and starts an IdentityReuse actor.
|
|
@@ -19,7 +19,8 @@ function mapState(snapshot) {
|
|
|
19
19
|
if (snapshot.matches("documentsFound")) return {
|
|
20
20
|
status: "documentsFound",
|
|
21
21
|
documents: context.documents,
|
|
22
|
-
selectedDocumentId: context.selectedDocumentId
|
|
22
|
+
selectedDocumentId: context.selectedDocumentId,
|
|
23
|
+
...context.companyName !== void 0 && { companyName: context.companyName }
|
|
23
24
|
};
|
|
24
25
|
if (snapshot.matches("submitting")) return { status: "submitting" };
|
|
25
26
|
if (snapshot.matches("finished")) return { status: "finished" };
|
|
@@ -40,7 +41,9 @@ function createApi({ actor, trackElementClicked }) {
|
|
|
40
41
|
},
|
|
41
42
|
/**
|
|
42
43
|
* Selects a document by id, or the `'scanNew'` sentinel to indicate the
|
|
43
|
-
* user prefers to scan a new document instead of reusing one.
|
|
44
|
+
* user prefers to scan a new document instead of reusing one. Only needed
|
|
45
|
+
* for two-step UIs; `submit(documentId)` selects and submits in one call.
|
|
46
|
+
* Ids that are not among the offered documents are ignored.
|
|
44
47
|
*/
|
|
45
48
|
chooseDocument(documentId) {
|
|
46
49
|
trackElementClicked?.("chooseDocument");
|
|
@@ -50,13 +53,18 @@ function createApi({ actor, trackElementClicked }) {
|
|
|
50
53
|
});
|
|
51
54
|
},
|
|
52
55
|
/**
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
+
* Submits a document for reuse. Pass a document id (or `'scanNew'`) to
|
|
57
|
+
* select and submit in one step; omit it to submit the current selection.
|
|
58
|
+
* A document is submitted with `{ accepted: true }`; scan-new submits
|
|
59
|
+
* `{ accepted: false }` so orchestration loads the next node. Ids that are
|
|
60
|
+
* not among the offered documents are ignored.
|
|
56
61
|
*/
|
|
57
|
-
submit() {
|
|
62
|
+
submit(documentId) {
|
|
58
63
|
trackElementClicked?.("submit");
|
|
59
|
-
actor.send({
|
|
64
|
+
actor.send({
|
|
65
|
+
type: "SUBMIT",
|
|
66
|
+
documentId
|
|
67
|
+
});
|
|
60
68
|
},
|
|
61
69
|
/**
|
|
62
70
|
* Skips identity reuse entirely. Finishes the module without submitting;
|
|
@@ -75,6 +83,9 @@ function createApi({ actor, trackElementClicked }) {
|
|
|
75
83
|
}
|
|
76
84
|
};
|
|
77
85
|
}
|
|
86
|
+
function createInstrumentation() {
|
|
87
|
+
return createManagerInstrumentation(eventModuleNames.identityReuse, { getScreenName: (snapshot) => snapshot.matches("loading") ? "loading" : void 0 });
|
|
88
|
+
}
|
|
78
89
|
/**
|
|
79
90
|
* Creates an IdentityReuse manager for headless or UI-driven usage.
|
|
80
91
|
*
|
|
@@ -82,7 +93,9 @@ function createApi({ actor, trackElementClicked }) {
|
|
|
82
93
|
* ```typescript
|
|
83
94
|
* const manager = createIdentityReuseManager({ config: {} });
|
|
84
95
|
* manager.subscribe((state) => {
|
|
85
|
-
* if (state.status === 'documentsFound')
|
|
96
|
+
* if (state.status === 'documentsFound') {
|
|
97
|
+
* manager.submit(state.documents[0].id);
|
|
98
|
+
* }
|
|
86
99
|
* if (state.status === 'finished') console.log('Done!');
|
|
87
100
|
* });
|
|
88
101
|
* manager.load();
|
|
@@ -93,7 +106,7 @@ function createIdentityReuseManager(options) {
|
|
|
93
106
|
actor: createIdentityReuseActor(options),
|
|
94
107
|
mapState,
|
|
95
108
|
createApi,
|
|
96
|
-
instrumentation:
|
|
109
|
+
instrumentation: createInstrumentation()
|
|
97
110
|
});
|
|
98
111
|
}
|
|
99
112
|
/**
|
|
@@ -105,7 +118,7 @@ function createIdentityReuseManagerFromActor(actor) {
|
|
|
105
118
|
actor,
|
|
106
119
|
mapState,
|
|
107
120
|
createApi,
|
|
108
|
-
instrumentation:
|
|
121
|
+
instrumentation: createInstrumentation()
|
|
109
122
|
});
|
|
110
123
|
}
|
|
111
124
|
//#endregion
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { A as StateMachine, C as StateValue, D as PromiseActorLogic, a as ActorRefFromLogic, b as RequiredActorOptions, c as AnyEventObject, g as IsNotNever, h as InputFrom, i as ActorRefFrom, k as MachineSnapshot, m as GetConcreteByKey, o as AnyActorLogic, p as EventObject, r as ActorRef, s as AnyActorRef, u as ConditionalRequired, v as MetaObject, w as Values, x as RequiredLogicInput, y as NonReducibleUnknown } from "./spawn-D9jgw9pW.js";
|
|
2
|
-
import "./
|
|
3
|
-
import
|
|
4
|
-
import "./Actor-iTq7YY48.js";
|
|
2
|
+
import { t as Manager } from "./Manager-C9T5amUN.js";
|
|
3
|
+
import "./Actor-DpTj5PFb.js";
|
|
5
4
|
//#region src/modules/identity-reuse/types.d.ts
|
|
6
5
|
/**
|
|
7
6
|
* Configuration options for the IdentityReuse module.
|
|
@@ -44,6 +43,12 @@ type ReusableDocument = {
|
|
|
44
43
|
* Always an array; ordered by backend with the best match first.
|
|
45
44
|
*/
|
|
46
45
|
type FetchDocumentsResponse = ReusableDocument[];
|
|
46
|
+
/**
|
|
47
|
+
* Name of the organization receiving the reused document, as resolved by the
|
|
48
|
+
* `fetchCompanyName` actor, or `undefined` when the backend does not provide
|
|
49
|
+
* one. Use it to type a `fetchCompanyName` override passed to `.provide()`.
|
|
50
|
+
*/
|
|
51
|
+
type FetchCompanyNameResponse = string | undefined;
|
|
47
52
|
/**
|
|
48
53
|
* @internal Request body for POST /omni/identity-reuse/submit.
|
|
49
54
|
*
|
|
@@ -70,6 +75,7 @@ type IdentityReuseContext = {
|
|
|
70
75
|
config: IdentityReuseConfig;
|
|
71
76
|
documents: ReusableDocument[];
|
|
72
77
|
selectedDocumentId: SelectedDocumentId | undefined;
|
|
78
|
+
companyName: string | undefined;
|
|
73
79
|
error: string | undefined;
|
|
74
80
|
};
|
|
75
81
|
type IdentityReuseInput = {
|
|
@@ -82,18 +88,24 @@ declare const identityReuseMachine: StateMachine<IdentityReuseContext, {
|
|
|
82
88
|
documentId: SelectedDocumentId;
|
|
83
89
|
} | {
|
|
84
90
|
type: "SUBMIT";
|
|
91
|
+
documentId?: SelectedDocumentId;
|
|
85
92
|
} | {
|
|
86
93
|
type: "SKIP";
|
|
87
94
|
} | {
|
|
88
95
|
type: "RETRY";
|
|
89
96
|
}, {
|
|
90
|
-
[x: string]: ActorRefFromLogic<PromiseActorLogic<FetchDocumentsResponse, void, EventObject>> | ActorRefFromLogic<PromiseActorLogic<SubmitResponse, SubmitParams, EventObject>> | undefined;
|
|
97
|
+
[x: string]: ActorRefFromLogic<PromiseActorLogic<FetchDocumentsResponse, void, EventObject>> | ActorRefFromLogic<PromiseActorLogic<FetchCompanyNameResponse, void, EventObject>> | ActorRefFromLogic<PromiseActorLogic<SubmitResponse, SubmitParams, EventObject>> | undefined;
|
|
91
98
|
}, Values<{
|
|
92
99
|
fetchDocuments: {
|
|
93
100
|
src: "fetchDocuments";
|
|
94
101
|
logic: PromiseActorLogic<FetchDocumentsResponse, void, EventObject>;
|
|
95
102
|
id: string | undefined;
|
|
96
103
|
};
|
|
104
|
+
fetchCompanyName: {
|
|
105
|
+
src: "fetchCompanyName";
|
|
106
|
+
logic: PromiseActorLogic<FetchCompanyNameResponse, void, EventObject>;
|
|
107
|
+
id: string | undefined;
|
|
108
|
+
};
|
|
97
109
|
submitDocument: {
|
|
98
110
|
src: "submitDocument";
|
|
99
111
|
logic: PromiseActorLogic<SubmitResponse, SubmitParams, EventObject>;
|
|
@@ -108,12 +120,16 @@ declare const identityReuseMachine: StateMachine<IdentityReuseContext, {
|
|
|
108
120
|
type: "setError";
|
|
109
121
|
params: NonReducibleUnknown;
|
|
110
122
|
};
|
|
123
|
+
clearError: {
|
|
124
|
+
type: "clearError";
|
|
125
|
+
params: NonReducibleUnknown;
|
|
126
|
+
};
|
|
111
127
|
setSelectedDocument: {
|
|
112
128
|
type: "setSelectedDocument";
|
|
113
129
|
params: NonReducibleUnknown;
|
|
114
130
|
};
|
|
115
|
-
|
|
116
|
-
type: "
|
|
131
|
+
setCompanyName: {
|
|
132
|
+
type: "setCompanyName";
|
|
117
133
|
params: NonReducibleUnknown;
|
|
118
134
|
};
|
|
119
135
|
}>, Values<{
|
|
@@ -121,16 +137,25 @@ declare const identityReuseMachine: StateMachine<IdentityReuseContext, {
|
|
|
121
137
|
type: "hasDocuments";
|
|
122
138
|
params: unknown;
|
|
123
139
|
};
|
|
124
|
-
|
|
125
|
-
type: "
|
|
140
|
+
hasCompanyName: {
|
|
141
|
+
type: "hasCompanyName";
|
|
126
142
|
params: unknown;
|
|
127
143
|
};
|
|
128
|
-
|
|
144
|
+
isKnownSelection: {
|
|
145
|
+
type: "isKnownSelection";
|
|
146
|
+
params: unknown;
|
|
147
|
+
};
|
|
148
|
+
}>, "companyNameTimeout", "error" | "idle" | "finished" | "submitting" | "documentsFound" | {
|
|
149
|
+
loading: {
|
|
150
|
+
documents: "done" | "fetching";
|
|
151
|
+
company: "done" | "fetching" | "check";
|
|
152
|
+
};
|
|
153
|
+
}, string, IdentityReuseInput, NonReducibleUnknown, EventObject, MetaObject, {
|
|
129
154
|
readonly id: "identityReuse";
|
|
130
155
|
readonly initial: "idle";
|
|
131
156
|
readonly context: ({ input }: {
|
|
132
157
|
spawn: {
|
|
133
|
-
<TSrc extends "fetchDocuments" | "submitDocument">(logic: TSrc, ...[options]: ({
|
|
158
|
+
<TSrc extends "fetchDocuments" | "fetchCompanyName" | "submitDocument">(logic: TSrc, ...[options]: ({
|
|
134
159
|
src: "fetchDocuments";
|
|
135
160
|
logic: PromiseActorLogic<FetchDocumentsResponse, void, EventObject>;
|
|
136
161
|
id: string | undefined;
|
|
@@ -146,12 +171,12 @@ declare const identityReuseMachine: StateMachine<IdentityReuseContext, {
|
|
|
146
171
|
input?: InputFrom<T["logic"]> | undefined;
|
|
147
172
|
syncSnapshot?: boolean;
|
|
148
173
|
} & { [K in RequiredActorOptions<T>]: unknown; }) | undefined], IsNotNever<RequiredActorOptions<T>>> : never : never : never) | ({
|
|
149
|
-
src: "
|
|
150
|
-
logic: PromiseActorLogic<
|
|
174
|
+
src: "fetchCompanyName";
|
|
175
|
+
logic: PromiseActorLogic<FetchCompanyNameResponse, void, EventObject>;
|
|
151
176
|
id: string | undefined;
|
|
152
177
|
} extends (infer T_1) ? T_1 extends {
|
|
153
|
-
src: "
|
|
154
|
-
logic: PromiseActorLogic<
|
|
178
|
+
src: "fetchCompanyName";
|
|
179
|
+
logic: PromiseActorLogic<FetchCompanyNameResponse, void, EventObject>;
|
|
155
180
|
id: string | undefined;
|
|
156
181
|
} ? T_1 extends {
|
|
157
182
|
src: TSrc;
|
|
@@ -160,12 +185,32 @@ declare const identityReuseMachine: StateMachine<IdentityReuseContext, {
|
|
|
160
185
|
systemId?: string;
|
|
161
186
|
input?: InputFrom<T_1["logic"]> | undefined;
|
|
162
187
|
syncSnapshot?: boolean;
|
|
163
|
-
} & { [K_1 in RequiredActorOptions<T_1>]: unknown; }) | undefined], IsNotNever<RequiredActorOptions<T_1>>> : never : never : never)
|
|
188
|
+
} & { [K_1 in RequiredActorOptions<T_1>]: unknown; }) | undefined], IsNotNever<RequiredActorOptions<T_1>>> : never : never : never) | ({
|
|
189
|
+
src: "submitDocument";
|
|
190
|
+
logic: PromiseActorLogic<SubmitResponse, SubmitParams, EventObject>;
|
|
191
|
+
id: string | undefined;
|
|
192
|
+
} extends (infer T_2) ? T_2 extends {
|
|
193
|
+
src: "submitDocument";
|
|
194
|
+
logic: PromiseActorLogic<SubmitResponse, SubmitParams, EventObject>;
|
|
195
|
+
id: string | undefined;
|
|
196
|
+
} ? T_2 extends {
|
|
197
|
+
src: TSrc;
|
|
198
|
+
} ? ConditionalRequired<[options?: ({
|
|
199
|
+
id?: T_2["id"] | undefined;
|
|
200
|
+
systemId?: string;
|
|
201
|
+
input?: InputFrom<T_2["logic"]> | undefined;
|
|
202
|
+
syncSnapshot?: boolean;
|
|
203
|
+
} & { [K_2 in RequiredActorOptions<T_2>]: unknown; }) | undefined], IsNotNever<RequiredActorOptions<T_2>>> : never : never : never)): ActorRefFromLogic<GetConcreteByKey<Values<{
|
|
164
204
|
fetchDocuments: {
|
|
165
205
|
src: "fetchDocuments";
|
|
166
206
|
logic: PromiseActorLogic<FetchDocumentsResponse, void, EventObject>;
|
|
167
207
|
id: string | undefined;
|
|
168
208
|
};
|
|
209
|
+
fetchCompanyName: {
|
|
210
|
+
src: "fetchCompanyName";
|
|
211
|
+
logic: PromiseActorLogic<FetchCompanyNameResponse, void, EventObject>;
|
|
212
|
+
id: string | undefined;
|
|
213
|
+
};
|
|
169
214
|
submitDocument: {
|
|
170
215
|
src: "submitDocument";
|
|
171
216
|
logic: PromiseActorLogic<SubmitResponse, SubmitParams, EventObject>;
|
|
@@ -187,6 +232,7 @@ declare const identityReuseMachine: StateMachine<IdentityReuseContext, {
|
|
|
187
232
|
documentId: SelectedDocumentId;
|
|
188
233
|
} | {
|
|
189
234
|
type: "SUBMIT";
|
|
235
|
+
documentId?: SelectedDocumentId;
|
|
190
236
|
} | {
|
|
191
237
|
type: "SKIP";
|
|
192
238
|
} | {
|
|
@@ -198,6 +244,7 @@ declare const identityReuseMachine: StateMachine<IdentityReuseContext, {
|
|
|
198
244
|
documentId: SelectedDocumentId;
|
|
199
245
|
} | {
|
|
200
246
|
type: "SUBMIT";
|
|
247
|
+
documentId?: SelectedDocumentId;
|
|
201
248
|
} | {
|
|
202
249
|
type: "SKIP";
|
|
203
250
|
} | {
|
|
@@ -207,6 +254,7 @@ declare const identityReuseMachine: StateMachine<IdentityReuseContext, {
|
|
|
207
254
|
config: IdentityReuseConfig;
|
|
208
255
|
documents: never[];
|
|
209
256
|
selectedDocumentId: undefined;
|
|
257
|
+
companyName: undefined;
|
|
210
258
|
error: undefined;
|
|
211
259
|
};
|
|
212
260
|
readonly states: {
|
|
@@ -218,30 +266,82 @@ declare const identityReuseMachine: StateMachine<IdentityReuseContext, {
|
|
|
218
266
|
};
|
|
219
267
|
};
|
|
220
268
|
readonly loading: {
|
|
221
|
-
readonly
|
|
222
|
-
|
|
223
|
-
readonly
|
|
224
|
-
|
|
225
|
-
readonly
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
269
|
+
readonly type: "parallel";
|
|
270
|
+
readonly states: {
|
|
271
|
+
readonly documents: {
|
|
272
|
+
readonly initial: "fetching";
|
|
273
|
+
readonly states: {
|
|
274
|
+
readonly fetching: {
|
|
275
|
+
readonly invoke: {
|
|
276
|
+
readonly id: "fetchDocuments";
|
|
277
|
+
readonly src: "fetchDocuments";
|
|
278
|
+
readonly onDone: {
|
|
279
|
+
readonly target: "done";
|
|
280
|
+
readonly actions: "setDocuments";
|
|
281
|
+
};
|
|
282
|
+
readonly onError: {
|
|
283
|
+
readonly target: "#identityReuse.error";
|
|
284
|
+
readonly actions: "setError";
|
|
285
|
+
};
|
|
286
|
+
};
|
|
287
|
+
};
|
|
288
|
+
readonly done: {
|
|
289
|
+
readonly type: "final";
|
|
290
|
+
};
|
|
291
|
+
};
|
|
292
|
+
};
|
|
293
|
+
readonly company: {
|
|
294
|
+
readonly initial: "check";
|
|
295
|
+
readonly states: {
|
|
296
|
+
readonly check: {
|
|
297
|
+
readonly always: readonly [{
|
|
298
|
+
readonly target: "done";
|
|
299
|
+
readonly guard: "hasCompanyName";
|
|
300
|
+
}, {
|
|
301
|
+
readonly target: "fetching";
|
|
302
|
+
}];
|
|
303
|
+
};
|
|
304
|
+
readonly fetching: {
|
|
305
|
+
readonly invoke: {
|
|
306
|
+
readonly id: "fetchCompanyName";
|
|
307
|
+
readonly src: "fetchCompanyName";
|
|
308
|
+
readonly onDone: {
|
|
309
|
+
readonly target: "done";
|
|
310
|
+
readonly actions: "setCompanyName";
|
|
311
|
+
};
|
|
312
|
+
readonly onError: {
|
|
313
|
+
readonly target: "done";
|
|
314
|
+
};
|
|
315
|
+
};
|
|
316
|
+
readonly after: {
|
|
317
|
+
readonly companyNameTimeout: {
|
|
318
|
+
readonly target: "done";
|
|
319
|
+
};
|
|
320
|
+
};
|
|
321
|
+
};
|
|
322
|
+
readonly done: {
|
|
323
|
+
readonly type: "final";
|
|
324
|
+
};
|
|
325
|
+
};
|
|
234
326
|
};
|
|
235
327
|
};
|
|
328
|
+
readonly onDone: readonly [{
|
|
329
|
+
readonly target: "documentsFound";
|
|
330
|
+
readonly guard: "hasDocuments";
|
|
331
|
+
}, {
|
|
332
|
+
readonly target: "finished";
|
|
333
|
+
}];
|
|
236
334
|
};
|
|
237
335
|
readonly documentsFound: {
|
|
238
336
|
readonly on: {
|
|
239
337
|
readonly DOCUMENT_CHOSEN: {
|
|
338
|
+
readonly guard: "isKnownSelection";
|
|
240
339
|
readonly actions: "setSelectedDocument";
|
|
241
340
|
};
|
|
242
341
|
readonly SUBMIT: {
|
|
243
342
|
readonly target: "submitting";
|
|
244
|
-
readonly guard: "
|
|
343
|
+
readonly guard: "isKnownSelection";
|
|
344
|
+
readonly actions: "setSelectedDocument";
|
|
245
345
|
};
|
|
246
346
|
readonly SKIP: {
|
|
247
347
|
readonly target: "finished";
|
|
@@ -300,24 +400,32 @@ type IdentityReuseActor = ActorRefFrom<IdentityReuseMachine>;
|
|
|
300
400
|
type IdentityReuseIdleState = {
|
|
301
401
|
status: 'idle';
|
|
302
402
|
};
|
|
303
|
-
/**
|
|
403
|
+
/**
|
|
404
|
+
* Fetching reusable documents and, in parallel, the name of the organization
|
|
405
|
+
* receiving them. The name lookup is non-fatal and never keeps this state
|
|
406
|
+
* longer than one second after loading starts, unless the documents
|
|
407
|
+
* themselves take longer.
|
|
408
|
+
*/
|
|
304
409
|
type IdentityReuseLoadingState = {
|
|
305
410
|
status: 'loading';
|
|
306
411
|
};
|
|
307
412
|
/**
|
|
308
|
-
* Documents are available — user picks one (or "scan new")
|
|
309
|
-
* The first document in the list is the
|
|
310
|
-
* "Recommended" tag based on position alone.
|
|
413
|
+
* Documents are available — user picks one (or "scan new"), which submits
|
|
414
|
+
* immediately via `submit(documentId)`. The first document in the list is the
|
|
415
|
+
* recommended one; the UI surfaces a "Recommended" tag based on position alone.
|
|
311
416
|
*
|
|
312
417
|
* @property documents - Ordered documents; index 0 is the best match.
|
|
313
418
|
* @property selectedDocumentId - Currently selected document id, or
|
|
314
419
|
* `'scanNew'` if the user picked the scan-new row. Auto-populated to
|
|
315
|
-
* `documents[0].id` on entry.
|
|
420
|
+
* `documents[0].id` on entry, so a bare `submit()` reuses the best match.
|
|
421
|
+
* @property companyName - Name of the organization receiving the reused
|
|
422
|
+
* document. Absent when the backend does not provide one.
|
|
316
423
|
*/
|
|
317
424
|
type IdentityReuseDocumentsFoundState = {
|
|
318
425
|
status: 'documentsFound';
|
|
319
426
|
documents: ReusableDocument[];
|
|
320
427
|
selectedDocumentId: SelectedDocumentId | undefined;
|
|
428
|
+
companyName?: string;
|
|
321
429
|
};
|
|
322
430
|
/** Submitting the chosen document for reuse */
|
|
323
431
|
type IdentityReuseSubmittingState = {
|
|
@@ -354,7 +462,9 @@ type IdentityReuseState = IdentityReuseIdleState | IdentityReuseLoadingState | I
|
|
|
354
462
|
* ```typescript
|
|
355
463
|
* const manager = createIdentityReuseManager({ config: {} });
|
|
356
464
|
* manager.subscribe((state) => {
|
|
357
|
-
* if (state.status === 'documentsFound')
|
|
465
|
+
* if (state.status === 'documentsFound') {
|
|
466
|
+
* manager.submit(state.documents[0].id);
|
|
467
|
+
* }
|
|
358
468
|
* if (state.status === 'finished') console.log('Done!');
|
|
359
469
|
* });
|
|
360
470
|
* manager.load();
|
|
@@ -368,15 +478,19 @@ declare function createIdentityReuseManager(options: CreateIdentityReuseActorOpt
|
|
|
368
478
|
load(): void;
|
|
369
479
|
/**
|
|
370
480
|
* Selects a document by id, or the `'scanNew'` sentinel to indicate the
|
|
371
|
-
* user prefers to scan a new document instead of reusing one.
|
|
481
|
+
* user prefers to scan a new document instead of reusing one. Only needed
|
|
482
|
+
* for two-step UIs; `submit(documentId)` selects and submits in one call.
|
|
483
|
+
* Ids that are not among the offered documents are ignored.
|
|
372
484
|
*/
|
|
373
485
|
chooseDocument(documentId: SelectedDocumentId): void;
|
|
374
486
|
/**
|
|
375
|
-
*
|
|
376
|
-
*
|
|
377
|
-
*
|
|
487
|
+
* Submits a document for reuse. Pass a document id (or `'scanNew'`) to
|
|
488
|
+
* select and submit in one step; omit it to submit the current selection.
|
|
489
|
+
* A document is submitted with `{ accepted: true }`; scan-new submits
|
|
490
|
+
* `{ accepted: false }` so orchestration loads the next node. Ids that are
|
|
491
|
+
* not among the offered documents are ignored.
|
|
378
492
|
*/
|
|
379
|
-
submit(): void;
|
|
493
|
+
submit(documentId?: SelectedDocumentId): void;
|
|
380
494
|
/**
|
|
381
495
|
* Skips identity reuse entirely. Finishes the module without submitting;
|
|
382
496
|
* orchestration moves on to the next node.
|
|
@@ -399,15 +513,19 @@ declare function createIdentityReuseManagerFromActor(actor: IdentityReuseActor):
|
|
|
399
513
|
load(): void;
|
|
400
514
|
/**
|
|
401
515
|
* Selects a document by id, or the `'scanNew'` sentinel to indicate the
|
|
402
|
-
* user prefers to scan a new document instead of reusing one.
|
|
516
|
+
* user prefers to scan a new document instead of reusing one. Only needed
|
|
517
|
+
* for two-step UIs; `submit(documentId)` selects and submits in one call.
|
|
518
|
+
* Ids that are not among the offered documents are ignored.
|
|
403
519
|
*/
|
|
404
520
|
chooseDocument(documentId: SelectedDocumentId): void;
|
|
405
521
|
/**
|
|
406
|
-
*
|
|
407
|
-
*
|
|
408
|
-
*
|
|
522
|
+
* Submits a document for reuse. Pass a document id (or `'scanNew'`) to
|
|
523
|
+
* select and submit in one step; omit it to submit the current selection.
|
|
524
|
+
* A document is submitted with `{ accepted: true }`; scan-new submits
|
|
525
|
+
* `{ accepted: false }` so orchestration loads the next node. Ids that are
|
|
526
|
+
* not among the offered documents are ignored.
|
|
409
527
|
*/
|
|
410
|
-
submit(): void;
|
|
528
|
+
submit(documentId?: SelectedDocumentId): void;
|
|
411
529
|
/**
|
|
412
530
|
* Skips identity reuse entirely. Finishes the module without submitting;
|
|
413
531
|
* orchestration moves on to the next node.
|
|
@@ -420,4 +538,4 @@ declare function createIdentityReuseManagerFromActor(actor: IdentityReuseActor):
|
|
|
420
538
|
};
|
|
421
539
|
type IdentityReuseManager = ReturnType<typeof createIdentityReuseManager>;
|
|
422
540
|
//#endregion
|
|
423
|
-
export { IdentityReuseActor as a, identityReuseMachine as c,
|
|
541
|
+
export { IdentityReuseActor as a, identityReuseMachine as c, IdentityReuseConfig as d, ReusableDocument as f, createIdentityReuseManagerFromActor as i, FetchCompanyNameResponse as l, IdentityReuseState as n, SCAN_NEW_DOCUMENT as o, SubmitResponse as p, createIdentityReuseManager as r, SelectedDocumentId as s, IdentityReuseManager as t, FetchDocumentsResponse as u };
|