@incodetech/core 0.0.0-dev-20260728-13fa1fcf → 0.0.0-dev-20260729-9461bce1
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/{addressSearch-DEYnZoez.esm.js → addressSearch-oyJf4OZO.esm.js} +1 -1
- package/dist/ae-signature.esm.js +1 -1
- package/dist/antifraud.esm.js +2 -2
- package/dist/{antifraudManager-CFsD4BgV.esm.js → antifraudManager-CQ0zC0jZ.esm.js} +1 -1
- package/dist/{antifraudStateMachine-VB-aXHct.esm.js → antifraudStateMachine-MfVOsgZf.esm.js} +1 -1
- package/dist/authentication.d.ts +3 -3
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-B2KZQ9zw.d.ts → authenticationManager-BGM8bpD0.d.ts} +1 -1
- package/dist/{authenticationManager-_ORG1UHc.esm.js → authenticationManager-G4OrneRc.esm.js} +2 -2
- package/dist/{authenticationStateMachine-B6D1-OHs.esm.js → authenticationStateMachine-CRaoYKLp.esm.js} +4 -4
- package/dist/certificate-issuance.esm.js +1 -1
- package/dist/{certificateIssuanceStateMachine-Di_bLlkP.esm.js → certificateIssuanceStateMachine-BrbhvQ3k.esm.js} +1 -1
- package/dist/consent.d.ts +1 -1
- package/dist/consent.esm.js +2 -2
- package/dist/{consentManager-3Pbtj-RV.d.ts → consentManager-DLOyIZzt.d.ts} +5 -5
- package/dist/{consentManager-0EiBXYtL.esm.js → consentManager-fOURtjzF.esm.js} +1 -1
- package/dist/{consentStateMachine-STURxpEc.esm.js → consentStateMachine-BCVxc6mI.esm.js} +1 -1
- package/dist/cross-document-data-match.esm.js +1 -1
- package/dist/{crossDocumentDataMatchManager-Dw7euiiZ.esm.js → crossDocumentDataMatchManager-DaJvZ8m1.esm.js} +1 -1
- package/dist/curp-validation.d.ts +1 -1
- package/dist/curp-validation.esm.js +2 -2
- package/dist/{curpValidationManager-BGj9U3E0.esm.js → curpValidationManager-CKRo8Mch.esm.js} +1 -1
- package/dist/{curpValidationManager-BEWD-Lvo.d.ts → curpValidationManager-DVGr7Fq7.d.ts} +1 -1
- package/dist/{curpValidationStateMachine-Dq6l4oeZ.esm.js → curpValidationStateMachine-DMdmcv5-.esm.js} +1 -1
- package/dist/custom-fields.esm.js +1 -1
- package/dist/custom-watchlist.esm.js +1 -1
- package/dist/{customWatchlistStateMachine-BuQML-pk.esm.js → customWatchlistStateMachine-DB2I9_OR.esm.js} +1 -1
- package/dist/{deepsightLoader-BTaHIFJe.esm.js → deepsightLoader-AdX0vjwb.esm.js} +2 -2
- package/dist/document-capture.esm.js +2 -2
- package/dist/document-upload.d.ts +4 -4
- package/dist/document-upload.esm.js +1 -1
- package/dist/{documentCaptureManager-DBRQX16v.esm.js → documentCaptureManager-iTx0jqU4.esm.js} +1 -1
- package/dist/{documentCaptureStateMachine-BXgH9gGq.esm.js → documentCaptureStateMachine-CrdQsDn2.esm.js} +1 -1
- package/dist/dynamic-forms.d.ts +2 -2
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-DI0sCyVB.esm.js → dynamicFormsManager-BNIbGJmh.esm.js} +7 -3
- package/dist/{dynamicFormsManager-BYac2uEY.d.ts → dynamicFormsManager-fhK0yINk.d.ts} +9 -1
- package/dist/{dynamicFormsStateMachine-BQqAwNQ-.esm.js → dynamicFormsStateMachine-DKUOlqmi.esm.js} +69 -4
- package/dist/ekyb.d.ts +1 -1
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybManager-DUFNmJTE.esm.js → ekybManager-BUWJUews.esm.js} +1 -1
- package/dist/{ekybStateMachine-B_2GynKh.esm.js → ekybStateMachine-CYLZDKC7.esm.js} +3 -3
- package/dist/ekyc.esm.js +2 -2
- package/dist/{ekycManager-Cl2e4Knv.esm.js → ekycManager-C6Wc4wRj.esm.js} +1 -1
- package/dist/{ekycStateMachine-9Mm7LBea.esm.js → ekycStateMachine-fHXM6pc0.esm.js} +2 -2
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-BXIpAJ5m.esm.js → electronicSignatureManager-hJ9YaAvD.esm.js} +1 -1
- package/dist/email.esm.js +2 -2
- package/dist/{emailManager-Dmt1YrtS.esm.js → emailManager-B_Q6MfUq.esm.js} +1 -1
- package/dist/{emailStateMachine-DQS-QMgQ.esm.js → emailStateMachine-DHfDd8LI.esm.js} +1 -1
- package/dist/{endpoints-CfRg7iAr.esm.js → endpoints-BwKx4Gne.esm.js} +1 -0
- package/dist/extensibility.d.ts +14 -13
- package/dist/extensibility.esm.js +25 -24
- package/dist/face-match.esm.js +2 -2
- package/dist/{faceCaptureManagerFactory-B2TUje5s.d.ts → faceCaptureManagerFactory-B92LFT16.d.ts} +3 -3
- package/dist/{faceCaptureManagerFactory-padlYUpO.esm.js → faceCaptureManagerFactory-Bkc1HLRL.esm.js} +1 -1
- package/dist/{faceCaptureSetup-D7wL9pqU.esm.js → faceCaptureSetup-BQEQriDi.esm.js} +2 -2
- package/dist/{faceMatchManager-fPX11GnX.esm.js → faceMatchManager-Bh5wFMyh.esm.js} +1 -1
- package/dist/{faceMatchStateMachine-D_7UX1rV.esm.js → faceMatchStateMachine-QIf8gak4.esm.js} +1 -1
- package/dist/field-comparison.esm.js +1 -1
- package/dist/{fieldComparisonManager-USUE9qDr.esm.js → fieldComparisonManager-B_3cIH9t.esm.js} +1 -1
- package/dist/fiscal-qr.esm.js +1 -1
- package/dist/flow-events.d.ts +1 -1
- package/dist/flow.d.ts +8 -8
- package/dist/flow.esm.js +2 -2
- package/dist/{flowCompletionService-D5oIlcza.esm.js → flowCompletionService-6yWz7xwZ.esm.js} +1 -1
- package/dist/{flowServices-DSlnJDz_.esm.js → flowServices-Cf63iD-o.esm.js} +6 -4
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-zeqAcVHC.esm.js → geolocationManager-gKopAolS.esm.js} +1 -1
- package/dist/{geolocationStateMachine-DxSETS9_.esm.js → geolocationStateMachine-Cac3eKge.esm.js} +1 -1
- package/dist/government-validation.esm.js +1 -1
- package/dist/{governmentValidationStateMachine-loZfWcU9.esm.js → governmentValidationStateMachine-Be1ruaNj.esm.js} +1 -1
- package/dist/home.d.ts +1 -1
- package/dist/id-ocr.d.ts +2 -2
- package/dist/id-ocr.esm.js +2 -2
- package/dist/id-verification.esm.js +2 -2
- package/dist/id.d.ts +2 -2
- package/dist/id.esm.js +2 -2
- package/dist/{idCaptureManager-D6fKtXhM.d.ts → idCaptureManager-C-WjmsN4.d.ts} +2 -2
- package/dist/{idCaptureManager-iTvQbzxA.esm.js → idCaptureManager-Dg8pxseH.esm.js} +1 -1
- package/dist/{idCaptureStateMachine-q4n-6o5I.esm.js → idCaptureStateMachine-B2e_wX0x.esm.js} +7 -7
- package/dist/{idOcrManager-CnIWzuqU.esm.js → idOcrManager-8WPK22Kq.esm.js} +1 -1
- package/dist/{idOcrManager-BF_cXZq8.d.ts → idOcrManager-dLuxey6y.d.ts} +2 -2
- package/dist/{idOcrStateMachine-Cqi8173Y.esm.js → idOcrStateMachine-Cfq5gJ0f.esm.js} +1 -1
- package/dist/{idVerificationManager-BTsyXjv6.esm.js → idVerificationManager-DBVs8TRS.esm.js} +1 -1
- package/dist/{idVerificationStateMachine-7BSciEJk.esm.js → idVerificationStateMachine-xtTSJDrB.esm.js} +1 -1
- package/dist/identity-reuse.d.ts +1 -1
- package/dist/identity-reuse.esm.js +2 -2
- package/dist/{identityReuseManager-BjMJHKLP.esm.js → identityReuseManager-B8jNZNHu.esm.js} +1 -1
- package/dist/{identityReuseManager-v2TH5g7e.d.ts → identityReuseManager-D6pD4hcZ.d.ts} +1 -1
- package/dist/{identityReuseStateMachine-B0IFF3R7.esm.js → identityReuseStateMachine-DdwSrghH.esm.js} +1 -1
- package/dist/{index-X9serOZT.d.ts → index-CLMF0QLQ.d.ts} +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/mandatory-consent.d.ts +2 -2
- package/dist/mandatory-consent.esm.js +2 -2
- package/dist/{mandatoryConsentManager-BOOjm7SU.esm.js → mandatoryConsentManager-BAKnA7U_.esm.js} +1 -1
- package/dist/{mandatoryConsentManager-XOWt-AgD.d.ts → mandatoryConsentManager-Dcgmj1Cd.d.ts} +6 -6
- package/dist/{mandatoryConsentStateMachine-BP3npRnI.esm.js → mandatoryConsentStateMachine-3a1psaoK.esm.js} +1 -1
- package/dist/{onDeviceFaceResults-BmqIjCbi.esm.js → onDeviceFaceResults-DbSP6iTw.esm.js} +3 -3
- package/dist/personhood.d.ts +1 -1
- package/dist/personhood.esm.js +3 -3
- package/dist/phone.esm.js +2 -2
- package/dist/{phoneManager-C3aqq6jS.esm.js → phoneManager-dizEvG20.esm.js} +1 -1
- package/dist/{phoneStateMachine-CLGcLA8t.esm.js → phoneStateMachine-DxmYoLg8.esm.js} +1 -1
- package/dist/qe-signature.esm.js +1 -1
- package/dist/{recordingService-yaOQEalD.esm.js → recordingService-C8jFtEKZ.esm.js} +2 -2
- package/dist/redirect-to-mobile.esm.js +2 -2
- package/dist/{redirectToMobileManager-BO0BVfgM.esm.js → redirectToMobileManager-BCInKNqp.esm.js} +1 -1
- package/dist/{redirectToMobileStateMachine-BQuhw8_L.esm.js → redirectToMobileStateMachine-TSHtrr5D.esm.js} +1 -1
- package/dist/selfie.d.ts +3 -3
- package/dist/selfie.esm.js +5 -5
- package/dist/{selfieErrorUtils-BAEYvNVr.esm.js → selfieErrorUtils-1aFaxF3Q.esm.js} +2 -2
- package/dist/{selfieManager-BT7dmOHi.d.ts → selfieManager-CxeMb2tM.d.ts} +1 -1
- package/dist/{selfieManager-B2_n13LR.esm.js → selfieManager-KbDEkivf.esm.js} +2 -2
- package/dist/{selfieStateMachine-CrEcZaGF.esm.js → selfieStateMachine-BiuQiED3.esm.js} +3 -3
- package/dist/session-CrAUqlgX.esm.js +1 -0
- package/dist/session.d.ts +1 -1
- package/dist/session.esm.js +4 -4
- package/dist/{sessionInitializer-D2MRL--r.esm.js → sessionInitializer-DyJ4nLFJ.esm.js} +3 -3
- package/dist/{setup-BIxOSpxN.esm.js → setup-MlGXfrG8.esm.js} +4 -4
- package/dist/signature.esm.js +1 -1
- package/dist/{signatureStateMachine-zRLvEGTw.esm.js → signatureStateMachine-CCcFhvuv.esm.js} +1 -1
- package/dist/{stats-4DAk7TYl.esm.js → stats-CKtpeAhi.esm.js} +1 -1
- package/dist/stats.esm.js +1 -1
- package/dist/{types-BK-v1UYb.d.ts → types-BBQjIaK4.d.ts} +1 -1
- package/dist/{types-xIEGXWk8.d.ts → types-BSBzhHRH.d.ts} +9 -0
- package/dist/{types-DjHL5Wa9.d.ts → types-BX_XkMsQ.d.ts} +1 -1
- package/dist/{types-DznwkfTc.d.ts → types-C2n-6lCx.d.ts} +1 -1
- package/dist/types-CrUhpMDP.d.ts +6 -0
- package/dist/{types-NSJbROLr.d.ts → types-KPvmag_B.d.ts} +2 -0
- package/dist/video-selfie.d.ts +2 -2
- package/dist/video-selfie.esm.js +5 -5
- package/dist/wasm.esm.js +1 -1
- package/dist/watchlist-for-business.esm.js +1 -1
- package/dist/watchlist.d.ts +1 -50
- package/dist/watchlist.esm.js +2 -70
- package/dist/{watchlistForBusinessStateMachine-Rc6BAwlr.esm.js → watchlistForBusinessStateMachine-DZZNfYsA.esm.js} +1 -1
- package/dist/watchlistManager-CMFZ0aqP.esm.js +83 -0
- package/dist/watchlistManager-DLXef90v.d.ts +68 -0
- package/dist/{watchlistStateMachine-64y9XBjm.esm.js → watchlistStateMachine-CmhlwIhk.esm.js} +1 -1
- package/dist/workflow.d.ts +6 -6
- package/dist/workflow.esm.js +30 -30
- package/package.json +3 -3
- package/dist/session-DInWb8_z.esm.js +0 -1
- package/dist/types-sK-eGomM.d.ts +0 -6
- /package/dist/{types-BfgmV7s7.d.ts → types-BfgmV7s72.d.ts} +0 -0
- /package/dist/{types-CJ7Yl9K-.d.ts → types-CJ7Yl9K-2.d.ts} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Dy8PyVO5.esm.js";
|
|
2
2
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
3
|
import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
4
|
-
import { t as watchlistForBusinessMachine } from "./watchlistForBusinessStateMachine-
|
|
4
|
+
import { t as watchlistForBusinessMachine } from "./watchlistForBusinessStateMachine-DZZNfYsA.esm.js";
|
|
5
5
|
//#region src/modules/watchlist-for-business/watchlistForBusinessActor.ts
|
|
6
6
|
function createWatchlistForBusinessActor() {
|
|
7
7
|
return createActor(watchlistForBusinessMachine).start();
|
package/dist/watchlist.d.ts
CHANGED
|
@@ -1,53 +1,4 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
//#region src/modules/watchlist/watchlistStateMachine.d.ts
|
|
3
|
-
type WatchlistResult = 'success' | 'skipped';
|
|
4
|
-
declare const watchlistMachine: any;
|
|
5
|
-
//#endregion
|
|
6
|
-
//#region src/modules/watchlist/watchlistManager.d.ts
|
|
7
|
-
type WatchlistIdleState = {
|
|
8
|
-
status: 'idle';
|
|
9
|
-
};
|
|
10
|
-
type WatchlistProcessingState = {
|
|
11
|
-
status: 'processing';
|
|
12
|
-
};
|
|
13
|
-
type WatchlistSuccessState = {
|
|
14
|
-
status: 'success';
|
|
15
|
-
};
|
|
16
|
-
type WatchlistFinishedState = {
|
|
17
|
-
status: 'finished';
|
|
18
|
-
result: WatchlistResult;
|
|
19
|
-
};
|
|
20
|
-
/**
|
|
21
|
-
* Union of all possible global watchlist manager states.
|
|
22
|
-
*
|
|
23
|
-
* @example
|
|
24
|
-
* ```typescript
|
|
25
|
-
* const state = watchlistManager.getState();
|
|
26
|
-
* if (state.status === 'finished') {
|
|
27
|
-
* console.log('Global watchlist check complete');
|
|
28
|
-
* }
|
|
29
|
-
* ```
|
|
30
|
-
*/
|
|
31
|
-
type WatchlistState = WatchlistIdleState | WatchlistProcessingState | WatchlistSuccessState | WatchlistFinishedState;
|
|
32
|
-
/**
|
|
33
|
-
* Creates a global watchlist manager for headless or UI-driven usage.
|
|
34
|
-
*
|
|
35
|
-
* @example Headless usage
|
|
36
|
-
* ```typescript
|
|
37
|
-
* const manager = createWatchlistManager();
|
|
38
|
-
* manager.subscribe((state) => console.log(state.status));
|
|
39
|
-
* manager.load();
|
|
40
|
-
* ```
|
|
41
|
-
*/
|
|
42
|
-
declare function createWatchlistManager(): Manager<WatchlistState> & {
|
|
43
|
-
/**
|
|
44
|
-
* Kicks off the global watchlist check.
|
|
45
|
-
* Transitions from 'idle' to 'processing'.
|
|
46
|
-
*/
|
|
47
|
-
load(): void;
|
|
48
|
-
};
|
|
49
|
-
type WatchlistManager = ReturnType<typeof createWatchlistManager>;
|
|
50
|
-
//#endregion
|
|
1
|
+
import { n as WatchlistState, o as watchlistMachine, r as createWatchlistManager, t as WatchlistManager } from "./watchlistManager-DLXef90v.js";
|
|
51
2
|
//#region src/modules/watchlist/types.d.ts
|
|
52
3
|
/**
|
|
53
4
|
* Configuration options for the global watchlist module.
|
package/dist/watchlist.esm.js
CHANGED
|
@@ -1,71 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as
|
|
3
|
-
import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
4
|
-
import { t as watchlistMachine } from "./watchlistStateMachine-64y9XBjm.esm.js";
|
|
5
|
-
//#region src/modules/watchlist/watchlistActor.ts
|
|
6
|
-
function createWatchlistActor() {
|
|
7
|
-
return createActor(watchlistMachine).start();
|
|
8
|
-
}
|
|
9
|
-
//#endregion
|
|
10
|
-
//#region src/modules/watchlist/watchlistManager.ts
|
|
11
|
-
/**
|
|
12
|
-
* Maps a Watchlist state-machine snapshot to the exact Figma "Tracked
|
|
13
|
-
* Events" screen name. Source: Watchlist | Custom Watchlist Figma file
|
|
14
|
-
* (`https://www.figma.com/design/Xm4BgXotNwdi5iRdHTIX0N/Watchlist-%7C-Custom-Watchlist----Latest-Design?node-id=3031-82920`).
|
|
15
|
-
* Family is `watchlist.*` — shared across global watchlist, custom
|
|
16
|
-
* watchlist, and watchlist-for-business (distinct module tokens per
|
|
17
|
-
* AdSign/QSign precedent).
|
|
18
|
-
*
|
|
19
|
-
* `idle` and `finished` are intentionally unmapped — the Figma canvas does
|
|
20
|
-
* not define screens for the entry / terminal moments. `finished` collapses
|
|
21
|
-
* into `moduleClosed`.
|
|
22
|
-
*/
|
|
23
|
-
function getWatchlistScreenName(snapshot) {
|
|
24
|
-
const stateName = topLevelStateName(snapshot.value);
|
|
25
|
-
if (stateName === void 0) return void 0;
|
|
26
|
-
switch (stateName) {
|
|
27
|
-
case "processing": return "watchlist.processing";
|
|
28
|
-
case "success": return "watchlist.success";
|
|
29
|
-
default: return;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
function mapState(snapshot) {
|
|
33
|
-
const typedSnapshot = snapshot;
|
|
34
|
-
if (typedSnapshot.matches("processing")) return { status: "processing" };
|
|
35
|
-
if (typedSnapshot.matches("success")) return { status: "success" };
|
|
36
|
-
if (typedSnapshot.matches("finished")) return {
|
|
37
|
-
status: "finished",
|
|
38
|
-
result: typedSnapshot.context.result ?? "skipped"
|
|
39
|
-
};
|
|
40
|
-
return { status: "idle" };
|
|
41
|
-
}
|
|
42
|
-
function createApi({ actor }) {
|
|
43
|
-
return {
|
|
44
|
-
/**
|
|
45
|
-
* Kicks off the global watchlist check.
|
|
46
|
-
* Transitions from 'idle' to 'processing'.
|
|
47
|
-
*/
|
|
48
|
-
load() {
|
|
49
|
-
actor.send({ type: "LOAD" });
|
|
50
|
-
} };
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Creates a global watchlist manager for headless or UI-driven usage.
|
|
54
|
-
*
|
|
55
|
-
* @example Headless usage
|
|
56
|
-
* ```typescript
|
|
57
|
-
* const manager = createWatchlistManager();
|
|
58
|
-
* manager.subscribe((state) => console.log(state.status));
|
|
59
|
-
* manager.load();
|
|
60
|
-
* ```
|
|
61
|
-
*/
|
|
62
|
-
function createWatchlistManager() {
|
|
63
|
-
return createManager({
|
|
64
|
-
actor: createWatchlistActor(),
|
|
65
|
-
mapState,
|
|
66
|
-
createApi,
|
|
67
|
-
instrumentation: createManagerInstrumentation(eventModuleNames.watchlist, { getEventScreenName: getWatchlistScreenName })
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
//#endregion
|
|
1
|
+
import { t as watchlistMachine } from "./watchlistStateMachine-CmhlwIhk.esm.js";
|
|
2
|
+
import { t as createWatchlistManager } from "./watchlistManager-CMFZ0aqP.esm.js";
|
|
71
3
|
export { createWatchlistManager, watchlistMachine };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as api } from "./api-BDTZNnca.esm.js";
|
|
2
|
-
import { t as endpoints } from "./endpoints-
|
|
2
|
+
import { t as endpoints } from "./endpoints-BwKx4Gne.esm.js";
|
|
3
3
|
import { r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
4
4
|
import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
5
5
|
//#region src/modules/watchlist-for-business/watchlistForBusinessServices.ts
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { n as eventModuleNames, o as createManagerInstrumentation } from "./events-Dy8PyVO5.esm.js";
|
|
2
|
+
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
3
|
+
import { c as createManager, o as createActor } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
4
|
+
import { t as watchlistMachine } from "./watchlistStateMachine-CmhlwIhk.esm.js";
|
|
5
|
+
//#region src/modules/watchlist/watchlistActor.ts
|
|
6
|
+
function createWatchlistActor() {
|
|
7
|
+
return createActor(watchlistMachine).start();
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region src/modules/watchlist/watchlistManager.ts
|
|
11
|
+
/**
|
|
12
|
+
* Maps a Watchlist state-machine snapshot to the exact Figma "Tracked
|
|
13
|
+
* Events" screen name. Source: Watchlist | Custom Watchlist Figma file
|
|
14
|
+
* (`https://www.figma.com/design/Xm4BgXotNwdi5iRdHTIX0N/Watchlist-%7C-Custom-Watchlist----Latest-Design?node-id=3031-82920`).
|
|
15
|
+
* Family is `watchlist.*` — shared across global watchlist, custom
|
|
16
|
+
* watchlist, and watchlist-for-business (distinct module tokens per
|
|
17
|
+
* AdSign/QSign precedent).
|
|
18
|
+
*
|
|
19
|
+
* `idle` and `finished` are intentionally unmapped — the Figma canvas does
|
|
20
|
+
* not define screens for the entry / terminal moments. `finished` collapses
|
|
21
|
+
* into `moduleClosed`.
|
|
22
|
+
*/
|
|
23
|
+
function getWatchlistScreenName(snapshot) {
|
|
24
|
+
const stateName = topLevelStateName(snapshot.value);
|
|
25
|
+
if (stateName === void 0) return void 0;
|
|
26
|
+
switch (stateName) {
|
|
27
|
+
case "processing": return "watchlist.processing";
|
|
28
|
+
case "success": return "watchlist.success";
|
|
29
|
+
default: return;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
function mapState(snapshot) {
|
|
33
|
+
const typedSnapshot = snapshot;
|
|
34
|
+
if (typedSnapshot.matches("processing")) return { status: "processing" };
|
|
35
|
+
if (typedSnapshot.matches("success")) return { status: "success" };
|
|
36
|
+
if (typedSnapshot.matches("finished")) return {
|
|
37
|
+
status: "finished",
|
|
38
|
+
result: typedSnapshot.context.result ?? "skipped"
|
|
39
|
+
};
|
|
40
|
+
return { status: "idle" };
|
|
41
|
+
}
|
|
42
|
+
function createApi({ actor }) {
|
|
43
|
+
return {
|
|
44
|
+
/**
|
|
45
|
+
* Kicks off the global watchlist check.
|
|
46
|
+
* Transitions from 'idle' to 'processing'.
|
|
47
|
+
*/
|
|
48
|
+
load() {
|
|
49
|
+
actor.send({ type: "LOAD" });
|
|
50
|
+
} };
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Creates a global watchlist manager for headless or UI-driven usage.
|
|
54
|
+
*
|
|
55
|
+
* @example Headless usage
|
|
56
|
+
* ```typescript
|
|
57
|
+
* const manager = createWatchlistManager();
|
|
58
|
+
* manager.subscribe((state) => console.log(state.status));
|
|
59
|
+
* manager.load();
|
|
60
|
+
* ```
|
|
61
|
+
*/
|
|
62
|
+
function createWatchlistManager() {
|
|
63
|
+
return createManager({
|
|
64
|
+
actor: createWatchlistActor(),
|
|
65
|
+
mapState,
|
|
66
|
+
createApi,
|
|
67
|
+
instrumentation: createManagerInstrumentation(eventModuleNames.watchlist, { getEventScreenName: getWatchlistScreenName })
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Creates a watchlist manager from a pre-built actor.
|
|
72
|
+
* Use this when overriding the machine via `.provide()` for custom backends or testing.
|
|
73
|
+
*/
|
|
74
|
+
function createWatchlistManagerFromActor(actor) {
|
|
75
|
+
return createManager({
|
|
76
|
+
actor,
|
|
77
|
+
mapState,
|
|
78
|
+
createApi,
|
|
79
|
+
instrumentation: createManagerInstrumentation(eventModuleNames.watchlist, { getEventScreenName: getWatchlistScreenName })
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
//#endregion
|
|
83
|
+
export { createWatchlistManagerFromActor as n, createWatchlistManager as t };
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { i as ActorRefFrom } from "./spawn-D9jgw9pW.js";
|
|
2
|
+
import { t as Manager } from "./Manager-CQQ99QOI.js";
|
|
3
|
+
import "./Actor-iTq7YY48.js";
|
|
4
|
+
//#region src/modules/watchlist/watchlistStateMachine.d.ts
|
|
5
|
+
type WatchlistResult = 'success' | 'skipped';
|
|
6
|
+
declare const watchlistMachine: any;
|
|
7
|
+
type WatchlistMachine = typeof watchlistMachine;
|
|
8
|
+
//#endregion
|
|
9
|
+
//#region src/modules/watchlist/watchlistActor.d.ts
|
|
10
|
+
type WatchlistActor = ActorRefFrom<WatchlistMachine>;
|
|
11
|
+
//#endregion
|
|
12
|
+
//#region src/modules/watchlist/watchlistManager.d.ts
|
|
13
|
+
type WatchlistIdleState = {
|
|
14
|
+
status: 'idle';
|
|
15
|
+
};
|
|
16
|
+
type WatchlistProcessingState = {
|
|
17
|
+
status: 'processing';
|
|
18
|
+
};
|
|
19
|
+
type WatchlistSuccessState = {
|
|
20
|
+
status: 'success';
|
|
21
|
+
};
|
|
22
|
+
type WatchlistFinishedState = {
|
|
23
|
+
status: 'finished';
|
|
24
|
+
result: WatchlistResult;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Union of all possible global watchlist manager states.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```typescript
|
|
31
|
+
* const state = watchlistManager.getState();
|
|
32
|
+
* if (state.status === 'finished') {
|
|
33
|
+
* console.log('Global watchlist check complete');
|
|
34
|
+
* }
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
type WatchlistState = WatchlistIdleState | WatchlistProcessingState | WatchlistSuccessState | WatchlistFinishedState;
|
|
38
|
+
/**
|
|
39
|
+
* Creates a global watchlist manager for headless or UI-driven usage.
|
|
40
|
+
*
|
|
41
|
+
* @example Headless usage
|
|
42
|
+
* ```typescript
|
|
43
|
+
* const manager = createWatchlistManager();
|
|
44
|
+
* manager.subscribe((state) => console.log(state.status));
|
|
45
|
+
* manager.load();
|
|
46
|
+
* ```
|
|
47
|
+
*/
|
|
48
|
+
declare function createWatchlistManager(): Manager<WatchlistState> & {
|
|
49
|
+
/**
|
|
50
|
+
* Kicks off the global watchlist check.
|
|
51
|
+
* Transitions from 'idle' to 'processing'.
|
|
52
|
+
*/
|
|
53
|
+
load(): void;
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* Creates a watchlist manager from a pre-built actor.
|
|
57
|
+
* Use this when overriding the machine via `.provide()` for custom backends or testing.
|
|
58
|
+
*/
|
|
59
|
+
declare function createWatchlistManagerFromActor(actor: WatchlistActor): Manager<WatchlistState> & {
|
|
60
|
+
/**
|
|
61
|
+
* Kicks off the global watchlist check.
|
|
62
|
+
* Transitions from 'idle' to 'processing'.
|
|
63
|
+
*/
|
|
64
|
+
load(): void;
|
|
65
|
+
};
|
|
66
|
+
type WatchlistManager = ReturnType<typeof createWatchlistManager>;
|
|
67
|
+
//#endregion
|
|
68
|
+
export { WatchlistActor as a, createWatchlistManagerFromActor as i, WatchlistState as n, watchlistMachine as o, createWatchlistManager as r, WatchlistManager as t };
|
package/dist/{watchlistStateMachine-64y9XBjm.esm.js → watchlistStateMachine-CmhlwIhk.esm.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as api } from "./api-BDTZNnca.esm.js";
|
|
2
|
-
import { t as endpoints } from "./endpoints-
|
|
2
|
+
import { t as endpoints } from "./endpoints-BwKx4Gne.esm.js";
|
|
3
3
|
import { r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
4
4
|
import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
5
5
|
//#region src/modules/watchlist/watchlistServices.ts
|
package/dist/workflow.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ import { t as CallbackActorLogic } from "./callback-645_omgz.js";
|
|
|
3
3
|
import "./StateMachine-EDpYWy0i.js";
|
|
4
4
|
import { t as Manager } from "./Manager-CQQ99QOI.js";
|
|
5
5
|
import { a as TotalScore, i as GetTotalScoreStatusFn, n as FinishStatus, r as GetFinishStatusFn } from "./flowCompletionService-BlAHsKyv.js";
|
|
6
|
-
import { o as FlowEventSubscribable } from "./index-
|
|
7
|
-
import { a as WorkflowModuleRegistry, i as RunChildModuleInput, r as RunChildModuleEvent, t as ModuleConfigMappers } from "./types-
|
|
6
|
+
import { o as FlowEventSubscribable } from "./index-CLMF0QLQ.js";
|
|
7
|
+
import { a as WorkflowModuleRegistry, i as RunChildModuleInput, r as RunChildModuleEvent, t as ModuleConfigMappers } from "./types-BfgmV7s72.js";
|
|
8
8
|
//#region src/modules/workflow/types.d.ts
|
|
9
9
|
/** Possible node types returned by the workflow server. */
|
|
10
10
|
type WorkflowNodeType = 'MODULE' | 'FINISH' | 'ASYNC_RESOLUTION';
|
|
@@ -320,10 +320,6 @@ declare const workflowMachine: StateMachine<WorkflowContext, {
|
|
|
320
320
|
id: string | undefined;
|
|
321
321
|
};
|
|
322
322
|
}>, Values<{
|
|
323
|
-
setError: {
|
|
324
|
-
type: "setError";
|
|
325
|
-
params: NonReducibleUnknown;
|
|
326
|
-
};
|
|
327
323
|
setLoadingResult: {
|
|
328
324
|
type: "setLoadingResult";
|
|
329
325
|
params: NonReducibleUnknown;
|
|
@@ -352,6 +348,10 @@ declare const workflowMachine: StateMachine<WorkflowContext, {
|
|
|
352
348
|
type: "setFinishStatusFailed";
|
|
353
349
|
params: NonReducibleUnknown;
|
|
354
350
|
};
|
|
351
|
+
setError: {
|
|
352
|
+
type: "setError";
|
|
353
|
+
params: NonReducibleUnknown;
|
|
354
|
+
};
|
|
355
355
|
setModuleError: {
|
|
356
356
|
type: "setModuleError";
|
|
357
357
|
params: NonReducibleUnknown;
|
package/dist/workflow.esm.js
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
import { g as updateFeatureManagementUser } from "./feature-management-Dw96qEMs.esm.js";
|
|
2
2
|
import { t as api } from "./api-BDTZNnca.esm.js";
|
|
3
3
|
import { m as addEvent, n as eventModuleNames, o as createManagerInstrumentation } from "./events-Dy8PyVO5.esm.js";
|
|
4
|
-
import { t as endpoints } from "./endpoints-
|
|
5
|
-
import { i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-
|
|
4
|
+
import { t as endpoints } from "./endpoints-BwKx4Gne.esm.js";
|
|
5
|
+
import { i as initializeSession, r as getSessionFingerprintResult } from "./sessionInitializer-DyJ4nLFJ.esm.js";
|
|
6
6
|
import { r as toIncodeApiError } from "./apiError-B-PkYxln.esm.js";
|
|
7
|
-
import { g as toEkybConfig } from "./flowServices-
|
|
7
|
+
import { g as toEkybConfig } from "./flowServices-Cf63iD-o.esm.js";
|
|
8
8
|
import { i as toEkycConfig } from "./ekycUtils-Dew1rBG0.esm.js";
|
|
9
9
|
import { c as createManager, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
10
10
|
import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
11
|
-
import { n as electronicSignatureMachine } from "./electronicSignatureManager-
|
|
11
|
+
import { n as electronicSignatureMachine } from "./electronicSignatureManager-hJ9YaAvD.esm.js";
|
|
12
12
|
import "./ae-signature.esm.js";
|
|
13
|
-
import { t as antifraudMachine } from "./antifraudStateMachine-
|
|
14
|
-
import { t as authenticationMachine } from "./authenticationStateMachine-
|
|
15
|
-
import { t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-
|
|
16
|
-
import { t as consentMachine } from "./consentStateMachine-
|
|
17
|
-
import { t as curpValidationMachine } from "./curpValidationStateMachine-
|
|
18
|
-
import { t as customWatchlistMachine } from "./customWatchlistStateMachine-
|
|
19
|
-
import { t as documentCaptureMachine } from "./documentCaptureStateMachine-
|
|
20
|
-
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-
|
|
21
|
-
import { t as ekybMachine } from "./ekybStateMachine-
|
|
22
|
-
import { t as ekycMachine } from "./ekycStateMachine-
|
|
23
|
-
import { t as emailMachine } from "./emailStateMachine-
|
|
24
|
-
import { t as selfieMachine } from "./selfieStateMachine-
|
|
25
|
-
import { t as idCaptureMachine } from "./idCaptureStateMachine-
|
|
26
|
-
import { t as phoneMachine } from "./phoneStateMachine-
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import { t as
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import { t as
|
|
33
|
-
import { t as
|
|
34
|
-
import {
|
|
13
|
+
import { t as antifraudMachine } from "./antifraudStateMachine-MfVOsgZf.esm.js";
|
|
14
|
+
import { t as authenticationMachine } from "./authenticationStateMachine-CRaoYKLp.esm.js";
|
|
15
|
+
import { t as certificateIssuanceMachine } from "./certificateIssuanceStateMachine-BrbhvQ3k.esm.js";
|
|
16
|
+
import { t as consentMachine } from "./consentStateMachine-BCVxc6mI.esm.js";
|
|
17
|
+
import { t as curpValidationMachine } from "./curpValidationStateMachine-DMdmcv5-.esm.js";
|
|
18
|
+
import { t as customWatchlistMachine } from "./customWatchlistStateMachine-DB2I9_OR.esm.js";
|
|
19
|
+
import { t as documentCaptureMachine } from "./documentCaptureStateMachine-CrdQsDn2.esm.js";
|
|
20
|
+
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-DKUOlqmi.esm.js";
|
|
21
|
+
import { t as ekybMachine } from "./ekybStateMachine-CYLZDKC7.esm.js";
|
|
22
|
+
import { t as ekycMachine } from "./ekycStateMachine-fHXM6pc0.esm.js";
|
|
23
|
+
import { t as emailMachine } from "./emailStateMachine-DHfDd8LI.esm.js";
|
|
24
|
+
import { t as selfieMachine } from "./selfieStateMachine-BiuQiED3.esm.js";
|
|
25
|
+
import { t as idCaptureMachine } from "./idCaptureStateMachine-B2e_wX0x.esm.js";
|
|
26
|
+
import { t as phoneMachine } from "./phoneStateMachine-DxmYoLg8.esm.js";
|
|
27
|
+
import { t as watchlistMachine } from "./watchlistStateMachine-CmhlwIhk.esm.js";
|
|
28
|
+
import { n as identityReuseMachine } from "./identityReuseStateMachine-DdwSrghH.esm.js";
|
|
29
|
+
import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-3a1psaoK.esm.js";
|
|
30
|
+
import { t as idOcrStateMachine } from "./idOcrStateMachine-Cfq5gJ0f.esm.js";
|
|
31
|
+
import { n as redirectToMobileMachine } from "./redirectToMobileStateMachine-TSHtrr5D.esm.js";
|
|
32
|
+
import { t as geolocationMachine } from "./geolocationStateMachine-Cac3eKge.esm.js";
|
|
33
|
+
import { t as idVerificationMachine } from "./idVerificationStateMachine-xtTSJDrB.esm.js";
|
|
34
|
+
import { t as faceMatchMachine } from "./faceMatchStateMachine-QIf8gak4.esm.js";
|
|
35
|
+
import { n as getFinishStatus, r as getTotalScoreStatus } from "./flowCompletionService-6yWz7xwZ.esm.js";
|
|
35
36
|
import { n as isAdvanceableError, r as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-Crz1nHwJ.esm.js";
|
|
36
|
-
import { t as governmentValidationMachine } from "./governmentValidationStateMachine-
|
|
37
|
+
import { t as governmentValidationMachine } from "./governmentValidationStateMachine-Be1ruaNj.esm.js";
|
|
37
38
|
import "./qe-signature.esm.js";
|
|
38
|
-
import { t as signatureMachine } from "./signatureStateMachine-
|
|
39
|
-
import { t as
|
|
40
|
-
import { t as watchlistForBusinessMachine } from "./watchlistForBusinessStateMachine-Rc6BAwlr.esm.js";
|
|
39
|
+
import { t as signatureMachine } from "./signatureStateMachine-CCcFhvuv.esm.js";
|
|
40
|
+
import { t as watchlistForBusinessMachine } from "./watchlistForBusinessStateMachine-DZZNfYsA.esm.js";
|
|
41
41
|
//#region src/internal/orchestration/defaultModules.ts
|
|
42
42
|
/**
|
|
43
43
|
* Shared default module registry — single source of truth for module key → machine mappings.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@incodetech/core",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20260729-9461bce1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/IncodeTechnologies/incode-web-sdk.git"
|
|
@@ -276,8 +276,8 @@
|
|
|
276
276
|
"tsdown": "^0.22.8",
|
|
277
277
|
"typescript": "^5.9.3",
|
|
278
278
|
"vitest": "4.1.4",
|
|
279
|
-
"@incodetech/
|
|
280
|
-
"@incodetech/
|
|
279
|
+
"@incodetech/infra": "1.2.0",
|
|
280
|
+
"@incodetech/config": "1.0.2"
|
|
281
281
|
},
|
|
282
282
|
"scripts": {
|
|
283
283
|
"build": "tsdown -c tsdown.config.ts",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "./sessionInitializer-D2MRL--r.esm.js";
|
package/dist/types-sK-eGomM.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { i as FlowModuleConfig } from "./types-NSJbROLr.js";
|
|
2
|
-
import { t as BaseFaceCaptureConfig } from "./types-BK-v1UYb.js";
|
|
3
|
-
//#region src/modules/authentication/types.d.ts
|
|
4
|
-
type AuthenticationConfig = FlowModuleConfig['AUTHENTICATION'] & BaseFaceCaptureConfig;
|
|
5
|
-
//#endregion
|
|
6
|
-
export { AuthenticationConfig as t };
|
|
File without changes
|
|
File without changes
|