@incodetech/core 0.0.0-dev-20260422-9672ed5 → 0.0.0-dev-20260423-427a341
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{OpenViduRecordingProvider-TbcsfOCu.esm.js → OpenViduRecordingProvider-3SvbmWdi.esm.js} +1 -1
- package/dist/{WasmUtilProvider-BwRC5keX.esm.js → WasmUtilProvider-DmbBSMl1.esm.js} +1 -1
- package/dist/{addressSearch-Cs4y7OGF.esm.js → addressSearch-BvpzLWr4.esm.js} +4 -4
- package/dist/{ae-signature-CEiF03Dz.esm.js → ae-signature-21vUGDha.esm.js} +1 -1
- package/dist/ae-signature.d.ts +3 -3
- package/dist/ae-signature.esm.js +5 -5
- package/dist/antifraud.d.ts +1 -1
- package/dist/antifraud.esm.js +4 -4
- package/dist/{antifraudStateMachine-DLKrV0J6.esm.js → antifraudStateMachine-CIa-IPvP.esm.js} +3 -3
- package/dist/authentication.d.ts +11 -11
- package/dist/authentication.esm.js +22 -22
- package/dist/{authenticationManager-BrjOuXTA.d.ts → authenticationManager-Bv9qL5fe.d.ts} +2 -2
- package/dist/{authenticationManager-D64D2deE.esm.js → authenticationManager-WLXkr-r0.esm.js} +6 -6
- package/dist/{authenticationStateMachine-CureH7Ki.esm.js → authenticationStateMachine-BifJqMei.esm.js} +6 -6
- package/dist/{backCameraStream-BEyWAklK.esm.js → backCameraStream-DSwtYHuO.esm.js} +3 -3
- package/dist/camera.d.ts +5 -3
- package/dist/camera.esm.js +3 -3
- package/dist/consent.d.ts +52 -52
- package/dist/consent.esm.js +4 -4
- package/dist/{consentStateMachine-DKjhzrg2.esm.js → consentStateMachine-DqiR30gw.esm.js} +3 -3
- package/dist/cross-document-data-match.d.ts +1 -1
- package/dist/cross-document-data-match.esm.js +4 -4
- package/dist/curp-validation.d.ts +5 -5
- package/dist/curp-validation.esm.js +4 -4
- package/dist/{curpValidationStateMachine-DC-f6gLD.esm.js → curpValidationStateMachine-Bp-V13CB.esm.js} +3 -3
- package/dist/custom-fields.d.ts +2 -2
- package/dist/custom-fields.esm.js +3 -3
- package/dist/custom-watchlist.d.ts +1 -1
- package/dist/custom-watchlist.esm.js +4 -4
- package/dist/{deepsightLoader-6U4vWDdn.esm.js → deepsightLoader-BTrehKGp.esm.js} +10 -10
- package/dist/{deepsightService-DwQsyY5W.esm.js → deepsightService-B0Z-9gmQ.esm.js} +5 -5
- package/dist/{deepsightService-69fWIZyA.d.ts → deepsightService-BknZgccc.d.ts} +2 -2
- package/dist/device.esm.js +3 -3
- package/dist/document-capture.d.ts +76 -76
- package/dist/document-capture.esm.js +8 -8
- package/dist/document-upload.d.ts +47 -47
- package/dist/document-upload.esm.js +7 -7
- package/dist/{documentCaptureStateMachine-CdMjWoaL.esm.js → documentCaptureStateMachine-CtMhD27q.esm.js} +5 -5
- package/dist/ekyb.d.ts +3 -3
- package/dist/ekyb.esm.js +10 -10
- package/dist/{ekybStateMachine-DyqxW4QC.esm.js → ekybStateMachine-Bn-pLTcp.esm.js} +5 -5
- package/dist/ekyc.d.ts +3 -3
- package/dist/ekyc.esm.js +6 -6
- package/dist/{ekycStateMachine-CCA3-VgA.esm.js → ekycStateMachine-Nmn0Alq9.esm.js} +4 -4
- package/dist/electronic-signature.d.ts +3 -3
- package/dist/electronic-signature.esm.js +4 -4
- package/dist/{electronicSignatureManager-BzCvY11w.esm.js → electronicSignatureManager-DAkg8MF6.esm.js} +3 -3
- package/dist/email.d.ts +3 -3
- package/dist/email.esm.js +6 -6
- package/dist/{emailManager-CrgNddfO.esm.js → emailManager-o6B6AYuE.esm.js} +3 -3
- package/dist/{emailManager-BjaZRPOE.d.ts → emailManager-q2qVoNbM.d.ts} +2 -2
- package/dist/{emailStateMachine-CU7vLH9D.esm.js → emailStateMachine-B5M_HlVm.esm.js} +4 -4
- package/dist/{events-CV5uidDd.esm.js → events-Deg_qfet.esm.js} +4 -2
- package/dist/events.d.ts +1 -0
- package/dist/events.esm.js +2 -2
- package/dist/extensibility.d.ts +15 -15
- package/dist/extensibility.esm.js +33 -33
- package/dist/face-match.d.ts +1 -1
- package/dist/face-match.esm.js +4 -4
- package/dist/{faceCaptureManagerFactory-CMdOPsTP.esm.js → faceCaptureManagerFactory-Bq_skXK4.esm.js} +2 -2
- package/dist/{faceCaptureManagerFactory-GTqrsqKv.d.ts → faceCaptureManagerFactory-DAQqd0EL.d.ts} +8 -8
- package/dist/{faceCaptureSetup-C65JUwp_.esm.js → faceCaptureSetup-C9RqcwR9.esm.js} +7 -6
- package/dist/{faceMatchStateMachine-Di16HdSh.esm.js → faceMatchStateMachine-DCh79GWp.esm.js} +3 -3
- package/dist/flow.d.ts +8 -8
- package/dist/flow.esm.js +9 -9
- package/dist/{flowCompletionService-CPVnNnJ9.esm.js → flowCompletionService-BnZC_DV0.esm.js} +2 -2
- package/dist/{flowServices-vi1byokq.esm.js → flowServices-s0CiH0WO.esm.js} +13 -3
- package/dist/geolocation.d.ts +2 -2
- package/dist/geolocation.esm.js +5 -5
- package/dist/{geolocationStateMachine-DsN-Fw45.esm.js → geolocationStateMachine-CxQCX2NJ.esm.js} +4 -4
- package/dist/{getDeviceClass-Cs-jWK1p.esm.js → getDeviceClass-DStKSj3Q.esm.js} +1 -1
- package/dist/government-validation.d.ts +2 -2
- package/dist/government-validation.esm.js +5 -5
- package/dist/{governmentValidationStateMachine-BZBLJrpr.esm.js → governmentValidationStateMachine-L7nwlJPw.esm.js} +4 -4
- package/dist/home.d.ts +14 -14
- package/dist/home.esm.js +3 -3
- package/dist/http.esm.js +1 -1
- package/dist/id.d.ts +10 -10
- package/dist/id.esm.js +22 -22
- package/dist/{idCaptureManager-CvRf3c1m.d.ts → idCaptureManager-C2L4R8rT.d.ts} +7 -7
- package/dist/{idCaptureManager-CLJJoV74.esm.js → idCaptureManager-Cuq1R8jW.esm.js} +4 -4
- package/dist/{idCaptureStateMachine-DJGWsVbh.esm.js → idCaptureStateMachine-B1eBofuq.esm.js} +19 -18
- package/dist/identity-reuse.d.ts +49 -49
- package/dist/identity-reuse.esm.js +3 -3
- package/dist/{index-C4L3Okdp.d.ts → index-DMN6Upfk.d.ts} +120 -120
- package/dist/index.d.ts +2 -2
- package/dist/index.esm.js +8 -8
- package/dist/{lib-DO0i6JDP.esm.js → lib-DP0jsq7O.esm.js} +1 -1
- package/dist/mandatory-consent.d.ts +55 -55
- package/dist/mandatory-consent.esm.js +4 -4
- package/dist/{mandatoryConsentStateMachine-QSbgUA99.esm.js → mandatoryConsentStateMachine-Bjqy6QyQ.esm.js} +3 -3
- package/dist/openviduLazy-7pgMhjPB.esm.js +3 -0
- package/dist/{openviduLazy-DXvuyuON.esm.js → openviduLazy-CYviBULf.esm.js} +2 -2
- package/dist/{permissionServices-7GX060Fo.esm.js → permissionServices-BJJE4sgW.esm.js} +4 -4
- package/dist/phone.d.ts +3 -3
- package/dist/phone.esm.js +6 -6
- package/dist/{phoneManager-D9CsGQPS.esm.js → phoneManager-C4QrFxRg.esm.js} +3 -3
- package/dist/{phoneManager-B06CapY3.d.ts → phoneManager-DBwE-qB0.d.ts} +3 -3
- package/dist/{phoneStateMachine-BDojEAdF.esm.js → phoneStateMachine-CMbJx57_.esm.js} +55 -39
- package/dist/{qe-signature-CLoM_jp6.esm.js → qe-signature-D7Ou3WtG.esm.js} +1 -1
- package/dist/qe-signature.d.ts +3 -3
- package/dist/qe-signature.esm.js +5 -5
- package/dist/{recordingService-DX6MuFa9.esm.js → recordingService-CtcIvA3E.esm.js} +13 -13
- package/dist/redirect-to-mobile.d.ts +2 -2
- package/dist/redirect-to-mobile.esm.js +5 -5
- package/dist/{redirectToMobileStateMachine-DwN4kV4j.esm.js → redirectToMobileStateMachine-CtWjarUj.esm.js} +4 -4
- package/dist/{runChildModule-CTY5xbQe.esm.js → runChildModule-DM84wxzE.esm.js} +1 -1
- package/dist/selfie.d.ts +11 -11
- package/dist/selfie.esm.js +22 -22
- package/dist/{selfieManager-BKRNGlRn.d.ts → selfieManager-Cfp4MKMu.d.ts} +2 -2
- package/dist/{selfieManager-BnBJ47OE.esm.js → selfieManager-CoyIn3Zl.esm.js} +6 -6
- package/dist/{selfieStateMachine-DbI8xrNK.esm.js → selfieStateMachine-CsI9YnHz.esm.js} +3 -3
- package/dist/{session-B80VcUre.esm.js → session-CrOl1xma.esm.js} +4 -4
- package/dist/session.d.ts +1 -1
- package/dist/session.esm.js +6 -6
- package/dist/{setup-ClMhlqda.esm.js → setup-BFXhW7cP.esm.js} +5 -5
- package/dist/{setup-pTsFPcze.d.ts → setup-VJbRmBIU.d.ts} +1 -1
- package/dist/signature.d.ts +2 -2
- package/dist/signature.esm.js +4 -4
- package/dist/{signatureStateMachine-C8qfgEjP.esm.js → signatureStateMachine-yaoE2OEY.esm.js} +3 -3
- package/dist/{stats-UZA4FM8j.esm.js → stats-BEwRvZG4.esm.js} +1 -1
- package/dist/stats.esm.js +2 -2
- package/dist/{types-DH6IUrUs.d.ts → types-BINKuP3l.d.ts} +1 -1
- package/dist/{types-A5Ncg34e.d.ts → types-BmHAVvm0.d.ts} +1 -1
- package/dist/{types-DoC698nG.d.ts → types-CgZVig-j.d.ts} +1 -1
- package/dist/wasm.d.ts +2 -2
- package/dist/wasm.esm.js +8 -8
- package/dist/watchlist-for-business.d.ts +79 -0
- package/dist/watchlist-for-business.esm.js +147 -0
- package/dist/watchlist.d.ts +1 -1
- package/dist/watchlist.esm.js +4 -4
- package/dist/{watchlistServices-CgFJcYl1.esm.js → watchlistServices-D2I0AZb-.esm.js} +2 -2
- package/dist/workflow.d.ts +116 -116
- package/dist/workflow.esm.js +44 -44
- package/package.json +43 -1
- package/dist/openviduLazy-COOSpMUH.esm.js +0 -3
- /package/dist/{Actor-B15bmdr9.d.ts → Actor-B-9T-DlO.d.ts} +0 -0
- /package/dist/{BaseWasmProvider-CBJzNbhW.esm.js → BaseWasmProvider-Cf3MNlAN.esm.js} +0 -0
- /package/dist/{BrowserStorageProvider-BZEFyh0O.esm.js → BrowserStorageProvider-Drw72wvG.esm.js} +0 -0
- /package/dist/{BrowserTimerProvider-N8UcbvU5.esm.js → BrowserTimerProvider-Dav3_fFy.esm.js} +0 -0
- /package/dist/{ITimerCapability-DS0Vjetp.esm.js → ITimerCapability-BriAkEyj.esm.js} +0 -0
- /package/dist/{IpifyProvider-6IaiettD.esm.js → IpifyProvider-j8lI27Fq.esm.js} +0 -0
- /package/dist/{Manager-gbK55c4u.d.ts → Manager-BCd4NBhe.d.ts} +0 -0
- /package/dist/{MotionSensorProvider-BVO7P6PB.esm.js → MotionSensorProvider-DYYBm_bL.esm.js} +0 -0
- /package/dist/{StateMachine-CnfoQpTv.d.ts → StateMachine-BNiyEj7J.d.ts} +0 -0
- /package/dist/{api-jWFd-4Qh.esm.js → api-CzVamIBG.esm.js} +0 -0
- /package/dist/{browserSimulation-B_fiWprz.esm.js → browserSimulation-C4a2KVIY.esm.js} +0 -0
- /package/dist/{camera-BORJdHZf.d.ts → camera-BZfRhPh2.d.ts} +0 -0
- /package/dist/{camera-YfPOKQXU.esm.js → camera-DaD3X_7m.esm.js} +0 -0
- /package/dist/{chunk-53AOVIGS.esm.js → chunk-DZf7laLq.esm.js} +0 -0
- /package/dist/{displayErrors-DUu76JT9.d.ts → displayErrors-YTUUYe7G.d.ts} +0 -0
- /package/dist/{flowCompletionService-BHqAcsOI.d.ts → flowCompletionService-MFzwlktR.d.ts} +0 -0
- /package/dist/{getBrowser-Bcjdnapi.esm.js → getBrowser-DxB_n8-W.esm.js} +0 -0
- /package/dist/{platform-uIVQUnJP.esm.js → platform-CTBj7PrA.esm.js} +0 -0
- /package/dist/{types-BEXctSKO.d.ts → types-CZwSG43_.d.ts} +0 -0
- /package/dist/{warmup-HP7iIGir.d.ts → warmup-BR9x_9iz.d.ts} +0 -0
- /package/dist/{xstate.esm-DMwldSzU.esm.js → xstate.esm-BXNheqIe.esm.js} +0 -0
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { i as WasmPipelineType, r as mlWasmJSApi_default, t as BaseWasmProvider } from "./BaseWasmProvider-
|
|
2
|
-
import { t as api } from "./api-
|
|
3
|
-
import { _ as endpoints } from "./events-
|
|
4
|
-
import { n as IncodeCanvas } from "./deepsightService-
|
|
5
|
-
import { i as stopCameraStream, r as requestCameraAccess } from "./camera-
|
|
6
|
-
import { t as addDeviceStats } from "./stats-
|
|
7
|
-
import { a as isIPhone14OrHigher, n as isDesktop, r as isIOS, t as isAndroid } from "./platform-
|
|
8
|
-
import { n as getDesktopCameraStream, t as getBackCameraStream } from "./backCameraStream-
|
|
9
|
-
import { t as getDeviceClass } from "./getDeviceClass-
|
|
1
|
+
import { i as WasmPipelineType, r as mlWasmJSApi_default, t as BaseWasmProvider } from "./BaseWasmProvider-Cf3MNlAN.esm.js";
|
|
2
|
+
import { t as api } from "./api-CzVamIBG.esm.js";
|
|
3
|
+
import { _ as endpoints } from "./events-Deg_qfet.esm.js";
|
|
4
|
+
import { n as IncodeCanvas } from "./deepsightService-B0Z-9gmQ.esm.js";
|
|
5
|
+
import { i as stopCameraStream, r as requestCameraAccess } from "./camera-DaD3X_7m.esm.js";
|
|
6
|
+
import { t as addDeviceStats } from "./stats-BEwRvZG4.esm.js";
|
|
7
|
+
import { a as isIPhone14OrHigher, n as isDesktop, r as isIOS, t as isAndroid } from "./platform-CTBj7PrA.esm.js";
|
|
8
|
+
import { n as getDesktopCameraStream, t as getBackCameraStream } from "./backCameraStream-DSwtYHuO.esm.js";
|
|
9
|
+
import { t as getDeviceClass } from "./getDeviceClass-DStKSj3Q.esm.js";
|
|
10
10
|
|
|
11
11
|
//#region src/internal/faceCapture/types.ts
|
|
12
12
|
const FACE_ERROR_CODES = {
|
|
@@ -593,7 +593,7 @@ function buildResolutionFromStream(stream) {
|
|
|
593
593
|
if (typeof width === "number" && typeof height === "number") return `${width}x${height}`;
|
|
594
594
|
}
|
|
595
595
|
async function createOpenViduRecordingProvider() {
|
|
596
|
-
const { OpenViduRecordingProvider } = await import("./OpenViduRecordingProvider-
|
|
596
|
+
const { OpenViduRecordingProvider } = await import("./OpenViduRecordingProvider-3SvbmWdi.esm.js");
|
|
597
597
|
return new OpenViduRecordingProvider();
|
|
598
598
|
}
|
|
599
599
|
async function startRecordingSession(params) {
|
|
@@ -633,7 +633,7 @@ async function stopRecording(session) {
|
|
|
633
633
|
}
|
|
634
634
|
}
|
|
635
635
|
async function initializeDeepsightSession(options) {
|
|
636
|
-
const { loadDeepsightSession } = await import("./deepsightLoader-
|
|
636
|
+
const { loadDeepsightSession } = await import("./deepsightLoader-BTrehKGp.esm.js");
|
|
637
637
|
return loadDeepsightSession({
|
|
638
638
|
ds: options.ds,
|
|
639
639
|
storage: options.storage
|
|
@@ -891,12 +891,12 @@ var LocalRecordingProvider = class {
|
|
|
891
891
|
let openViduProviderImportPromise;
|
|
892
892
|
let openViduBrowserImportPromise;
|
|
893
893
|
function loadOpenViduProviderModule() {
|
|
894
|
-
if (!openViduProviderImportPromise) openViduProviderImportPromise = import("./OpenViduRecordingProvider-
|
|
894
|
+
if (!openViduProviderImportPromise) openViduProviderImportPromise = import("./OpenViduRecordingProvider-3SvbmWdi.esm.js");
|
|
895
895
|
return openViduProviderImportPromise;
|
|
896
896
|
}
|
|
897
897
|
function loadOpenViduBrowserModule() {
|
|
898
898
|
if (!openViduBrowserImportPromise) openViduBrowserImportPromise = (async () => {
|
|
899
|
-
return (await import("./openviduLazy-
|
|
899
|
+
return (await import("./openviduLazy-7pgMhjPB.esm.js")).loadOpenVidu();
|
|
900
900
|
})();
|
|
901
901
|
return openViduBrowserImportPromise;
|
|
902
902
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "./api-
|
|
2
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
3
|
-
import { a as createActor, o as createManager } from "./xstate.esm-
|
|
4
|
-
import "./BrowserTimerProvider-
|
|
5
|
-
import { t as redirectToMobileMachine } from "./redirectToMobileStateMachine-
|
|
1
|
+
import "./api-CzVamIBG.esm.js";
|
|
2
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Deg_qfet.esm.js";
|
|
3
|
+
import { a as createActor, o as createManager } from "./xstate.esm-BXNheqIe.esm.js";
|
|
4
|
+
import "./BrowserTimerProvider-Dav3_fFy.esm.js";
|
|
5
|
+
import { t as redirectToMobileMachine } from "./redirectToMobileStateMachine-CtWjarUj.esm.js";
|
|
6
6
|
|
|
7
7
|
//#region src/modules/redirect-to-mobile/redirectToMobileActor.ts
|
|
8
8
|
function createRedirectToMobileActor(options) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as api } from "./api-
|
|
2
|
-
import { _ as endpoints } from "./events-
|
|
3
|
-
import { i as fromPromise, n as assign, r as fromCallback, t as setup } from "./xstate.esm-
|
|
4
|
-
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-
|
|
1
|
+
import { t as api } from "./api-CzVamIBG.esm.js";
|
|
2
|
+
import { _ as endpoints } from "./events-Deg_qfet.esm.js";
|
|
3
|
+
import { i as fromPromise, n as assign, r as fromCallback, t as setup } from "./xstate.esm-BXNheqIe.esm.js";
|
|
4
|
+
import { t as BrowserTimerProvider } from "./BrowserTimerProvider-Dav3_fFy.esm.js";
|
|
5
5
|
|
|
6
6
|
//#region ../infra/src/url/urlUtils.ts
|
|
7
7
|
function getUrlSearchParam(url, param) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as createActor, r as fromCallback } from "./xstate.esm-
|
|
1
|
+
import { a as createActor, r as fromCallback } from "./xstate.esm-BXNheqIe.esm.js";
|
|
2
2
|
|
|
3
3
|
//#region src/internal/orchestration/runChildModule.ts
|
|
4
4
|
const runChildModule = fromCallback(({ sendBack, input }) => {
|
package/dist/selfie.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "./warmup-
|
|
2
|
-
import "./Manager-
|
|
3
|
-
import "./Actor-
|
|
4
|
-
import "./StateMachine-
|
|
5
|
-
import { a as SelfieMachine, d as SelfieConfig, o as selfieMachine, v as DetectionStatus, y as FaceErrorCode } from "./faceCaptureManagerFactory-
|
|
6
|
-
import { t as CameraStream } from "./camera-
|
|
7
|
-
import "./types-
|
|
8
|
-
import "./types-
|
|
9
|
-
import { t as DeepsightService } from "./deepsightService-
|
|
10
|
-
import { n as PermissionStatus, t as PermissionResult } from "./types-
|
|
11
|
-
import { a as ProcessFaceResponse, n as SelfieState, o as processFace, r as createSelfieManager, t as SelfieManager } from "./selfieManager-
|
|
1
|
+
import "./warmup-BR9x_9iz.js";
|
|
2
|
+
import "./Manager-BCd4NBhe.js";
|
|
3
|
+
import "./Actor-B-9T-DlO.js";
|
|
4
|
+
import "./StateMachine-BNiyEj7J.js";
|
|
5
|
+
import { a as SelfieMachine, d as SelfieConfig, o as selfieMachine, v as DetectionStatus, y as FaceErrorCode } from "./faceCaptureManagerFactory-DAQqd0EL.js";
|
|
6
|
+
import { t as CameraStream } from "./camera-BZfRhPh2.js";
|
|
7
|
+
import "./types-BINKuP3l.js";
|
|
8
|
+
import "./types-CgZVig-j.js";
|
|
9
|
+
import { t as DeepsightService } from "./deepsightService-BknZgccc.js";
|
|
10
|
+
import { n as PermissionStatus, t as PermissionResult } from "./types-CZwSG43_.js";
|
|
11
|
+
import { a as ProcessFaceResponse, n as SelfieState, o as processFace, r as createSelfieManager, t as SelfieManager } from "./selfieManager-Cfp4MKMu.js";
|
|
12
12
|
export { type CameraStream, type DeepsightService, type DetectionStatus, type FaceErrorCode, type PermissionResult, type PermissionStatus, type ProcessFaceResponse, type SelfieConfig, type SelfieMachine, type SelfieManager, type SelfieState, createSelfieManager, processFace, selfieMachine };
|
package/dist/selfie.esm.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
import "./BaseWasmProvider-
|
|
2
|
-
import "./WasmUtilProvider-
|
|
3
|
-
import "./api-
|
|
4
|
-
import "./events-
|
|
5
|
-
import "./browserSimulation-
|
|
6
|
-
import "./xstate.esm-
|
|
7
|
-
import "./faceCaptureManagerFactory-
|
|
8
|
-
import "./BrowserStorageProvider-
|
|
9
|
-
import { l as processFace } from "./recordingService-
|
|
10
|
-
import "./deepsightService-
|
|
11
|
-
import "./permissionServices-
|
|
12
|
-
import "./camera-
|
|
13
|
-
import "./getBrowser-
|
|
14
|
-
import "./stats-
|
|
15
|
-
import "./MotionSensorProvider-
|
|
16
|
-
import "./platform-
|
|
17
|
-
import "./ITimerCapability-
|
|
18
|
-
import "./backCameraStream-
|
|
19
|
-
import "./getDeviceClass-
|
|
20
|
-
import "./faceCaptureSetup-
|
|
21
|
-
import { t as selfieMachine } from "./selfieStateMachine-
|
|
22
|
-
import { t as createSelfieManager } from "./selfieManager-
|
|
1
|
+
import "./BaseWasmProvider-Cf3MNlAN.esm.js";
|
|
2
|
+
import "./WasmUtilProvider-DmbBSMl1.esm.js";
|
|
3
|
+
import "./api-CzVamIBG.esm.js";
|
|
4
|
+
import "./events-Deg_qfet.esm.js";
|
|
5
|
+
import "./browserSimulation-C4a2KVIY.esm.js";
|
|
6
|
+
import "./xstate.esm-BXNheqIe.esm.js";
|
|
7
|
+
import "./faceCaptureManagerFactory-Bq_skXK4.esm.js";
|
|
8
|
+
import "./BrowserStorageProvider-Drw72wvG.esm.js";
|
|
9
|
+
import { l as processFace } from "./recordingService-CtcIvA3E.esm.js";
|
|
10
|
+
import "./deepsightService-B0Z-9gmQ.esm.js";
|
|
11
|
+
import "./permissionServices-BJJE4sgW.esm.js";
|
|
12
|
+
import "./camera-DaD3X_7m.esm.js";
|
|
13
|
+
import "./getBrowser-DxB_n8-W.esm.js";
|
|
14
|
+
import "./stats-BEwRvZG4.esm.js";
|
|
15
|
+
import "./MotionSensorProvider-DYYBm_bL.esm.js";
|
|
16
|
+
import "./platform-CTBj7PrA.esm.js";
|
|
17
|
+
import "./ITimerCapability-BriAkEyj.esm.js";
|
|
18
|
+
import "./backCameraStream-DSwtYHuO.esm.js";
|
|
19
|
+
import "./getDeviceClass-DStKSj3Q.esm.js";
|
|
20
|
+
import "./faceCaptureSetup-C9RqcwR9.esm.js";
|
|
21
|
+
import { t as selfieMachine } from "./selfieStateMachine-CsI9YnHz.esm.js";
|
|
22
|
+
import { t as createSelfieManager } from "./selfieManager-CoyIn3Zl.esm.js";
|
|
23
23
|
|
|
24
24
|
export { createSelfieManager, processFace, selfieMachine };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as Manager } from "./Manager-
|
|
2
|
-
import { i as SelfieActor, n as FaceCaptureManagerState, r as CreateSelfieActorOptions, t as FaceCaptureManager } from "./faceCaptureManagerFactory-
|
|
1
|
+
import { t as Manager } from "./Manager-BCd4NBhe.js";
|
|
2
|
+
import { i as SelfieActor, n as FaceCaptureManagerState, r as CreateSelfieActorOptions, t as FaceCaptureManager } from "./faceCaptureManagerFactory-DAQqd0EL.js";
|
|
3
3
|
|
|
4
4
|
//#region src/modules/selfie/selfieUploadService.d.ts
|
|
5
5
|
type ProcessFaceImageType = 'selfie' | 'videoSelfie';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as WasmUtilProvider } from "./WasmUtilProvider-
|
|
2
|
-
import { n as eventModuleNames } from "./events-
|
|
3
|
-
import { a as createActor } from "./xstate.esm-
|
|
4
|
-
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-
|
|
5
|
-
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-
|
|
6
|
-
import { t as selfieMachine } from "./selfieStateMachine-
|
|
1
|
+
import { t as WasmUtilProvider } from "./WasmUtilProvider-DmbBSMl1.esm.js";
|
|
2
|
+
import { n as eventModuleNames } from "./events-Deg_qfet.esm.js";
|
|
3
|
+
import { a as createActor } from "./xstate.esm-BXNheqIe.esm.js";
|
|
4
|
+
import { t as createFaceCaptureManagerFromActor } from "./faceCaptureManagerFactory-Bq_skXK4.esm.js";
|
|
5
|
+
import { t as BrowserStorageProvider } from "./BrowserStorageProvider-Drw72wvG.esm.js";
|
|
6
|
+
import { t as selfieMachine } from "./selfieStateMachine-CsI9YnHz.esm.js";
|
|
7
7
|
|
|
8
8
|
//#region src/modules/selfie/selfieActor.ts
|
|
9
9
|
function createSelfieActor(options) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as fromPromise, n as assign } from "./xstate.esm-
|
|
2
|
-
import { l as processFace, u as uploadSelfie, v as FACE_ERROR_CODES } from "./recordingService-
|
|
3
|
-
import { t as faceCaptureMachine } from "./faceCaptureSetup-
|
|
1
|
+
import { i as fromPromise, n as assign } from "./xstate.esm-BXNheqIe.esm.js";
|
|
2
|
+
import { l as processFace, u as uploadSelfie, v as FACE_ERROR_CODES } from "./recordingService-CtcIvA3E.esm.js";
|
|
3
|
+
import { t as faceCaptureMachine } from "./faceCaptureSetup-C9RqcwR9.esm.js";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/selfie/selfieErrorUtils.ts
|
|
6
6
|
const FACE_ERROR_CODE_VALUES = Object.values(FACE_ERROR_CODES);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { n as getApi, t as api } from "./api-
|
|
2
|
-
import { _ as endpoints, m as addEvent } from "./events-
|
|
3
|
-
import { n as resetIpifyCache, r as BrowserEnvironmentProvider, t as IpifyProvider } from "./IpifyProvider-
|
|
4
|
-
import { t as isBrowserSimulation } from "./browserSimulation-
|
|
1
|
+
import { n as getApi, t as api } from "./api-CzVamIBG.esm.js";
|
|
2
|
+
import { _ as endpoints, m as addEvent } from "./events-Deg_qfet.esm.js";
|
|
3
|
+
import { n as resetIpifyCache, r as BrowserEnvironmentProvider, t as IpifyProvider } from "./IpifyProvider-j8lI27Fq.esm.js";
|
|
4
|
+
import { t as isBrowserSimulation } from "./browserSimulation-C4a2KVIY.esm.js";
|
|
5
5
|
|
|
6
6
|
//#region src/internal/session/sessionService.ts
|
|
7
7
|
var QrValidationError = class extends Error {
|
package/dist/session.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as GetFinishStatusFn, r as getFinishStatus, t as FinishStatus } from "./flowCompletionService-
|
|
1
|
+
import { n as GetFinishStatusFn, r as getFinishStatus, t as FinishStatus } from "./flowCompletionService-MFzwlktR.js";
|
|
2
2
|
|
|
3
3
|
//#region src/internal/session/sessionService.d.ts
|
|
4
4
|
type CreateSessionOptions = {
|
package/dist/session.esm.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "./api-
|
|
2
|
-
import "./events-
|
|
3
|
-
import { c as createSession, l as validateQrUuid, s as QrValidationError } from "./session-
|
|
4
|
-
import "./IpifyProvider-
|
|
5
|
-
import "./browserSimulation-
|
|
6
|
-
import { t as getFinishStatus } from "./flowCompletionService-
|
|
1
|
+
import "./api-CzVamIBG.esm.js";
|
|
2
|
+
import "./events-Deg_qfet.esm.js";
|
|
3
|
+
import { c as createSession, l as validateQrUuid, s as QrValidationError } from "./session-CrOl1xma.esm.js";
|
|
4
|
+
import "./IpifyProvider-j8lI27Fq.esm.js";
|
|
5
|
+
import "./browserSimulation-C4a2KVIY.esm.js";
|
|
6
|
+
import { t as getFinishStatus } from "./flowCompletionService-BnZC_DV0.esm.js";
|
|
7
7
|
|
|
8
8
|
export { QrValidationError, createSession, getFinishStatus, validateQrUuid };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { n as warmupWasm } from "./BaseWasmProvider-
|
|
2
|
-
import { t as WasmUtilProvider } from "./WasmUtilProvider-
|
|
3
|
-
import { a as resetApi, o as setClient, s as setToken } from "./api-
|
|
4
|
-
import { h as flushEventQueue } from "./events-
|
|
5
|
-
import { i as resetSessionInit, r as initializeSession } from "./session-
|
|
1
|
+
import { n as warmupWasm } from "./BaseWasmProvider-Cf3MNlAN.esm.js";
|
|
2
|
+
import { t as WasmUtilProvider } from "./WasmUtilProvider-DmbBSMl1.esm.js";
|
|
3
|
+
import { a as resetApi, o as setClient, s as setToken } from "./api-CzVamIBG.esm.js";
|
|
4
|
+
import { h as flushEventQueue } from "./events-Deg_qfet.esm.js";
|
|
5
|
+
import { i as resetSessionInit, r as initializeSession } from "./session-CrOl1xma.esm.js";
|
|
6
6
|
|
|
7
7
|
//#region ../infra/src/http/createApi.ts
|
|
8
8
|
var FetchHttpError = class extends Error {
|
package/dist/signature.d.ts
CHANGED
package/dist/signature.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "./api-
|
|
2
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
3
|
-
import { a as createActor, o as createManager } from "./xstate.esm-
|
|
4
|
-
import { t as signatureMachine } from "./signatureStateMachine-
|
|
1
|
+
import "./api-CzVamIBG.esm.js";
|
|
2
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Deg_qfet.esm.js";
|
|
3
|
+
import { a as createActor, o as createManager } from "./xstate.esm-BXNheqIe.esm.js";
|
|
4
|
+
import { t as signatureMachine } from "./signatureStateMachine-yaoE2OEY.esm.js";
|
|
5
5
|
|
|
6
6
|
//#region src/modules/signature/signatureActor.ts
|
|
7
7
|
function createSignatureActor(options) {
|
package/dist/{signatureStateMachine-C8qfgEjP.esm.js → signatureStateMachine-yaoE2OEY.esm.js}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as api } from "./api-
|
|
2
|
-
import { _ as endpoints, m as addEvent, n as eventModuleNames, r as eventScreenNames } from "./events-
|
|
3
|
-
import { i as fromPromise, n as assign, t as setup } from "./xstate.esm-
|
|
1
|
+
import { t as api } from "./api-CzVamIBG.esm.js";
|
|
2
|
+
import { _ as endpoints, m as addEvent, n as eventModuleNames, r as eventScreenNames } from "./events-Deg_qfet.esm.js";
|
|
3
|
+
import { i as fromPromise, n as assign, t as setup } from "./xstate.esm-BXNheqIe.esm.js";
|
|
4
4
|
|
|
5
5
|
//#region src/modules/signature/signatureServices.ts
|
|
6
6
|
/**
|
package/dist/stats.esm.js
CHANGED
package/dist/wasm.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as WasmPipeline, r as warmupWasm, t as WarmupConfig } from "./warmup-
|
|
2
|
-
import { n as WasmConfig, o as setWasmConfig, r as initializeWasmUtil } from "./setup-
|
|
1
|
+
import { n as WasmPipeline, r as warmupWasm, t as WarmupConfig } from "./warmup-BR9x_9iz.js";
|
|
2
|
+
import { n as WasmConfig, o as setWasmConfig, r as initializeWasmUtil } from "./setup-VJbRmBIU.js";
|
|
3
3
|
|
|
4
4
|
//#region ../infra/src/wasm/wasmDefaults.d.ts
|
|
5
5
|
/** The WASM version bundled and tested with this SDK release. */
|
package/dist/wasm.esm.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { c as resolveWasmConfig, i as setWasmConfig, o as DEFAULT_WASM_VERSION, s as buildDefaultWasmConfig, t as initializeWasmUtil } from "./setup-
|
|
2
|
-
import { n as warmupWasm } from "./BaseWasmProvider-
|
|
3
|
-
import "./WasmUtilProvider-
|
|
4
|
-
import "./api-
|
|
5
|
-
import "./events-
|
|
6
|
-
import "./session-
|
|
7
|
-
import "./IpifyProvider-
|
|
8
|
-
import "./browserSimulation-
|
|
1
|
+
import { c as resolveWasmConfig, i as setWasmConfig, o as DEFAULT_WASM_VERSION, s as buildDefaultWasmConfig, t as initializeWasmUtil } from "./setup-BFXhW7cP.esm.js";
|
|
2
|
+
import { n as warmupWasm } from "./BaseWasmProvider-Cf3MNlAN.esm.js";
|
|
3
|
+
import "./WasmUtilProvider-DmbBSMl1.esm.js";
|
|
4
|
+
import "./api-CzVamIBG.esm.js";
|
|
5
|
+
import "./events-Deg_qfet.esm.js";
|
|
6
|
+
import "./session-CrOl1xma.esm.js";
|
|
7
|
+
import "./IpifyProvider-j8lI27Fq.esm.js";
|
|
8
|
+
import "./browserSimulation-C4a2KVIY.esm.js";
|
|
9
9
|
|
|
10
10
|
export { DEFAULT_WASM_VERSION, buildDefaultWasmConfig, initializeWasmUtil, resolveWasmConfig, setWasmConfig, warmupWasm };
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { t as Manager } from "./Manager-BCd4NBhe.js";
|
|
2
|
+
|
|
3
|
+
//#region src/modules/watchlist-for-business/watchlistForBusinessManager.d.ts
|
|
4
|
+
/** Waiting for `load()` to be called. */
|
|
5
|
+
type WatchlistForBusinessIdleState = {
|
|
6
|
+
status: 'idle';
|
|
7
|
+
};
|
|
8
|
+
/** Form is ready — use `setCountry()`, `setBusinessName()`, and `submit()`. */
|
|
9
|
+
type WatchlistForBusinessFormState = {
|
|
10
|
+
status: 'form';
|
|
11
|
+
country: string;
|
|
12
|
+
businessName: string;
|
|
13
|
+
isValid: boolean;
|
|
14
|
+
};
|
|
15
|
+
/** API request in flight. */
|
|
16
|
+
type WatchlistForBusinessSubmittingState = {
|
|
17
|
+
status: 'submitting';
|
|
18
|
+
};
|
|
19
|
+
/**
|
|
20
|
+
* API succeeded — success screen visible for ~3 s before transitioning
|
|
21
|
+
* to `finished`.
|
|
22
|
+
*/
|
|
23
|
+
type WatchlistForBusinessSuccessState = {
|
|
24
|
+
status: 'success';
|
|
25
|
+
};
|
|
26
|
+
/** Module complete. Fires regardless of API outcome (fire-and-forget). */
|
|
27
|
+
type WatchlistForBusinessFinishedState = {
|
|
28
|
+
status: 'finished';
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Discriminated union of all possible watchlist-for-business manager states.
|
|
32
|
+
*/
|
|
33
|
+
type WatchlistForBusinessState = WatchlistForBusinessIdleState | WatchlistForBusinessFormState | WatchlistForBusinessSubmittingState | WatchlistForBusinessSuccessState | WatchlistForBusinessFinishedState;
|
|
34
|
+
/**
|
|
35
|
+
* Creates a watchlist-for-business manager for headless or UI-driven usage.
|
|
36
|
+
*
|
|
37
|
+
* On API error the module completes silently (fire-and-forget).
|
|
38
|
+
*
|
|
39
|
+
* @example Headless usage
|
|
40
|
+
* ```typescript
|
|
41
|
+
* import { createWatchlistForBusinessManager } from '@incodetech/core/watchlist-for-business';
|
|
42
|
+
*
|
|
43
|
+
* const manager = createWatchlistForBusinessManager();
|
|
44
|
+
* manager.subscribe((state) => {
|
|
45
|
+
* if (state.status === 'finished') console.log('Done');
|
|
46
|
+
* });
|
|
47
|
+
* manager.load();
|
|
48
|
+
* manager.setCountry('MX');
|
|
49
|
+
* manager.setBusinessName('Acme Corp');
|
|
50
|
+
* manager.submit();
|
|
51
|
+
* manager.stop();
|
|
52
|
+
* ```
|
|
53
|
+
*/
|
|
54
|
+
declare function createWatchlistForBusinessManager(): Manager<WatchlistForBusinessState> & {
|
|
55
|
+
/** Transitions from `idle` to the form. Must be called before any other method. */
|
|
56
|
+
load(): void;
|
|
57
|
+
/** Updates the selected country code (ISO 3166-1 alpha-2). */
|
|
58
|
+
setCountry(country: string): void;
|
|
59
|
+
/** Updates the business name field and recomputes validity. */
|
|
60
|
+
setBusinessName(value: string): void;
|
|
61
|
+
/** Submits the form. Only transitions when `isValid` is true. */
|
|
62
|
+
submit(): void;
|
|
63
|
+
};
|
|
64
|
+
type WatchlistForBusinessManager = ReturnType<typeof createWatchlistForBusinessManager>;
|
|
65
|
+
//#endregion
|
|
66
|
+
//#region src/modules/watchlist-for-business/watchlistForBusinessStateMachine.d.ts
|
|
67
|
+
declare const watchlistForBusinessMachine: any;
|
|
68
|
+
//#endregion
|
|
69
|
+
//#region src/modules/watchlist-for-business/types.d.ts
|
|
70
|
+
/**
|
|
71
|
+
* Configuration for the watchlist-for-business module.
|
|
72
|
+
*
|
|
73
|
+
* No server-side configuration is required — the module collects
|
|
74
|
+
* country and business name from the user and submits them to the
|
|
75
|
+
* business watchlist endpoint.
|
|
76
|
+
*/
|
|
77
|
+
type WatchlistForBusinessConfig = Record<string, never>;
|
|
78
|
+
//#endregion
|
|
79
|
+
export { type WatchlistForBusinessConfig, type WatchlistForBusinessFinishedState, type WatchlistForBusinessFormState, type WatchlistForBusinessManager, type WatchlistForBusinessState, createWatchlistForBusinessManager, watchlistForBusinessMachine };
|
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
import { t as api } from "./api-CzVamIBG.esm.js";
|
|
2
|
+
import { _ as endpoints, n as eventModuleNames, o as createManagerInstrumentation } from "./events-Deg_qfet.esm.js";
|
|
3
|
+
import { a as createActor, i as fromPromise, n as assign, o as createManager, t as setup } from "./xstate.esm-BXNheqIe.esm.js";
|
|
4
|
+
|
|
5
|
+
//#region src/modules/watchlist-for-business/watchlistForBusinessServices.ts
|
|
6
|
+
async function submitWatchlistForBusiness(data, signal) {
|
|
7
|
+
const res = await api.post(endpoints.watchlistForBusinessSubmit, data, { signal });
|
|
8
|
+
if (!res.ok) throw new Error(`POST ${endpoints.watchlistForBusinessSubmit} failed: ${res.status} ${res.statusText}`);
|
|
9
|
+
return res.data;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
//#endregion
|
|
13
|
+
//#region src/modules/watchlist-for-business/watchlistForBusinessStateMachine.ts
|
|
14
|
+
const DEFAULT_COUNTRY = "US";
|
|
15
|
+
function computeIsValid(businessName) {
|
|
16
|
+
return businessName.trim().length > 0;
|
|
17
|
+
}
|
|
18
|
+
const watchlistForBusinessMachine = setup({
|
|
19
|
+
types: {
|
|
20
|
+
context: {},
|
|
21
|
+
events: {}
|
|
22
|
+
},
|
|
23
|
+
actors: { submitWatchlistForBusiness: fromPromise(async ({ input, signal }) => {
|
|
24
|
+
await submitWatchlistForBusiness(input, signal);
|
|
25
|
+
}) },
|
|
26
|
+
actions: {
|
|
27
|
+
setCountry: assign(({ event }) => {
|
|
28
|
+
const { country } = event;
|
|
29
|
+
return { country };
|
|
30
|
+
}),
|
|
31
|
+
setBusinessName: assign(({ event }) => {
|
|
32
|
+
const { value } = event;
|
|
33
|
+
return {
|
|
34
|
+
businessName: value,
|
|
35
|
+
isValid: computeIsValid(value)
|
|
36
|
+
};
|
|
37
|
+
})
|
|
38
|
+
},
|
|
39
|
+
guards: { isValid: ({ context }) => context.isValid }
|
|
40
|
+
}).createMachine({
|
|
41
|
+
id: "watchlist-for-business",
|
|
42
|
+
initial: "idle",
|
|
43
|
+
context: {
|
|
44
|
+
country: DEFAULT_COUNTRY,
|
|
45
|
+
businessName: "",
|
|
46
|
+
isValid: false
|
|
47
|
+
},
|
|
48
|
+
states: {
|
|
49
|
+
idle: { on: { LOAD: { target: "form" } } },
|
|
50
|
+
form: { on: {
|
|
51
|
+
SET_COUNTRY: { actions: "setCountry" },
|
|
52
|
+
SET_BUSINESS_NAME: { actions: "setBusinessName" },
|
|
53
|
+
SUBMIT: {
|
|
54
|
+
target: "submitting",
|
|
55
|
+
guard: "isValid"
|
|
56
|
+
}
|
|
57
|
+
} },
|
|
58
|
+
submitting: { invoke: {
|
|
59
|
+
id: "submitWatchlistForBusiness",
|
|
60
|
+
src: "submitWatchlistForBusiness",
|
|
61
|
+
input: ({ context }) => ({
|
|
62
|
+
countryCodes: [context.country],
|
|
63
|
+
businessName: context.businessName
|
|
64
|
+
}),
|
|
65
|
+
onDone: { target: "success" },
|
|
66
|
+
onError: { target: "finished" }
|
|
67
|
+
} },
|
|
68
|
+
success: { after: { 3e3: { target: "finished" } } },
|
|
69
|
+
finished: { type: "final" }
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
//#endregion
|
|
74
|
+
//#region src/modules/watchlist-for-business/watchlistForBusinessActor.ts
|
|
75
|
+
function createWatchlistForBusinessActor() {
|
|
76
|
+
return createActor(watchlistForBusinessMachine).start();
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
//#endregion
|
|
80
|
+
//#region src/modules/watchlist-for-business/watchlistForBusinessManager.ts
|
|
81
|
+
function mapState(snapshot) {
|
|
82
|
+
const typedSnapshot = snapshot;
|
|
83
|
+
const { context } = typedSnapshot;
|
|
84
|
+
if (typedSnapshot.matches("form")) return {
|
|
85
|
+
status: "form",
|
|
86
|
+
country: context.country,
|
|
87
|
+
businessName: context.businessName,
|
|
88
|
+
isValid: context.isValid
|
|
89
|
+
};
|
|
90
|
+
if (typedSnapshot.matches("submitting")) return { status: "submitting" };
|
|
91
|
+
if (typedSnapshot.matches("success")) return { status: "success" };
|
|
92
|
+
if (typedSnapshot.matches("finished")) return { status: "finished" };
|
|
93
|
+
return { status: "idle" };
|
|
94
|
+
}
|
|
95
|
+
function createApi({ actor }) {
|
|
96
|
+
return {
|
|
97
|
+
load() {
|
|
98
|
+
actor.send({ type: "LOAD" });
|
|
99
|
+
},
|
|
100
|
+
setCountry(country) {
|
|
101
|
+
actor.send({
|
|
102
|
+
type: "SET_COUNTRY",
|
|
103
|
+
country
|
|
104
|
+
});
|
|
105
|
+
},
|
|
106
|
+
setBusinessName(value) {
|
|
107
|
+
actor.send({
|
|
108
|
+
type: "SET_BUSINESS_NAME",
|
|
109
|
+
value
|
|
110
|
+
});
|
|
111
|
+
},
|
|
112
|
+
submit() {
|
|
113
|
+
actor.send({ type: "SUBMIT" });
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Creates a watchlist-for-business manager for headless or UI-driven usage.
|
|
119
|
+
*
|
|
120
|
+
* On API error the module completes silently (fire-and-forget).
|
|
121
|
+
*
|
|
122
|
+
* @example Headless usage
|
|
123
|
+
* ```typescript
|
|
124
|
+
* import { createWatchlistForBusinessManager } from '@incodetech/core/watchlist-for-business';
|
|
125
|
+
*
|
|
126
|
+
* const manager = createWatchlistForBusinessManager();
|
|
127
|
+
* manager.subscribe((state) => {
|
|
128
|
+
* if (state.status === 'finished') console.log('Done');
|
|
129
|
+
* });
|
|
130
|
+
* manager.load();
|
|
131
|
+
* manager.setCountry('MX');
|
|
132
|
+
* manager.setBusinessName('Acme Corp');
|
|
133
|
+
* manager.submit();
|
|
134
|
+
* manager.stop();
|
|
135
|
+
* ```
|
|
136
|
+
*/
|
|
137
|
+
function createWatchlistForBusinessManager() {
|
|
138
|
+
return createManager({
|
|
139
|
+
actor: createWatchlistForBusinessActor(),
|
|
140
|
+
mapState,
|
|
141
|
+
createApi,
|
|
142
|
+
instrumentation: createManagerInstrumentation(eventModuleNames.watchlistForBusiness)
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
//#endregion
|
|
147
|
+
export { createWatchlistForBusinessManager, watchlistForBusinessMachine };
|
package/dist/watchlist.d.ts
CHANGED
package/dist/watchlist.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "./api-
|
|
2
|
-
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-
|
|
3
|
-
import { a as createActor, i as fromPromise, n as assign, o as createManager, t as setup } from "./xstate.esm-
|
|
4
|
-
import { t as processWatchlist } from "./watchlistServices-
|
|
1
|
+
import "./api-CzVamIBG.esm.js";
|
|
2
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Deg_qfet.esm.js";
|
|
3
|
+
import { a as createActor, i as fromPromise, n as assign, o as createManager, t as setup } from "./xstate.esm-BXNheqIe.esm.js";
|
|
4
|
+
import { t as processWatchlist } from "./watchlistServices-D2I0AZb-.esm.js";
|
|
5
5
|
|
|
6
6
|
//#region src/modules/watchlist/watchlistStateMachine.ts
|
|
7
7
|
const watchlistMachine = setup({
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as api } from "./api-
|
|
2
|
-
import { _ as endpoints } from "./events-
|
|
1
|
+
import { t as api } from "./api-CzVamIBG.esm.js";
|
|
2
|
+
import { _ as endpoints } from "./events-Deg_qfet.esm.js";
|
|
3
3
|
|
|
4
4
|
//#region src/modules/watchlist/watchlistServices.ts
|
|
5
5
|
async function processWatchlist(signal) {
|