@incodetech/core 0.0.0-dev-20260623-261da85a → 0.0.0-dev-20260624-b4a7d4cb
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/ae-signature.d.ts +1 -1
- package/dist/certificate-issuance.d.ts +28 -28
- package/dist/consent.d.ts +1 -1
- package/dist/{consentManager-D9e394-2.d.ts → consentManager-CWme-QZE.d.ts} +52 -52
- package/dist/cpf-ocr.d.ts +1 -1
- package/dist/{cpfOcrManager-By8JYicU.d.ts → cpfOcrManager-DS3At60f.d.ts} +20 -20
- package/dist/document-capture.d.ts +225 -225
- package/dist/document-upload.d.ts +46 -46
- package/dist/ekyb.esm.js +3 -3
- package/dist/{ekybStateMachine-CuYbJ-ZZ.esm.js → ekybStateMachine-pLPP6-43.esm.js} +1 -1
- package/dist/electronic-signature.d.ts +1 -1
- package/dist/extensibility.d.ts +4 -4
- package/dist/extensibility.esm.js +3 -3
- package/dist/flow-events.d.ts +2 -2
- package/dist/flow.d.ts +4 -4
- package/dist/flow.esm.js +2 -2
- package/dist/{flowCompletionService-CdGDKv0z.d.ts → flowCompletionService-W_gSMyD5.d.ts} +2 -1
- package/dist/{flowServices-CntI2mxN.esm.js → flowServices-DS6xavyw.esm.js} +1 -1
- package/dist/home.d.ts +10 -10
- package/dist/id-ocr.d.ts +52 -52
- package/dist/id-verification.d.ts +25 -25
- package/dist/id.esm.js +3 -3
- package/dist/{idCaptureManager-A5Ve8KAF.esm.js → idCaptureManager-7fzPshJ9.esm.js} +1 -1
- package/dist/{idCaptureStateMachine-DZEPM0qo.esm.js → idCaptureStateMachine-CqOIgzbV.esm.js} +1 -1
- package/dist/identity-reuse.d.ts +1 -1
- package/dist/{identityReuseManager-DZGrLgPM.d.ts → identityReuseManager-BWflNP-S.d.ts} +34 -34
- package/dist/{index-BH82fGn_.d.ts → index-CZia19dI.d.ts} +168 -168
- package/dist/{index-BgxYUYuD.d.ts → index-CdqrfCh3.d.ts} +1 -1
- package/dist/index.esm.js +2 -2
- package/dist/mandatory-consent.d.ts +1 -1
- package/dist/{mandatoryConsentManager-CZZMJcKp.d.ts → mandatoryConsentManager-CtIhLXvP.d.ts} +50 -50
- package/dist/qe-signature.d.ts +1 -1
- package/dist/session.d.ts +1 -1
- package/dist/session.esm.js +1 -1
- package/dist/{sessionInitializer-BKO7Je9X.esm.js → sessionInitializer-cNqVNoiR.esm.js} +1 -1
- package/dist/{setup-VJmUsMmm.esm.js → setup-CE71Z1pk.esm.js} +1 -1
- package/dist/trust-graph.d.ts +2 -2
- package/dist/wasm.esm.js +2 -2
- package/dist/workflow.d.ts +269 -144
- package/dist/workflow.esm.js +49 -17
- package/package.json +3 -3
package/dist/workflow.esm.js
CHANGED
|
@@ -6,7 +6,7 @@ import { t as endpoints } from "./endpoints-BM2_j_IE.esm.js";
|
|
|
6
6
|
import "./stats-DntyIiGr.esm.js";
|
|
7
7
|
import "./IpifyProvider-oZf7Ke1O.esm.js";
|
|
8
8
|
import "./browserSimulation-CGjpdNA1.esm.js";
|
|
9
|
-
import { n as getSessionFingerprintResult, r as initializeSession } from "./sessionInitializer-
|
|
9
|
+
import { n as getSessionFingerprintResult, r as initializeSession } from "./sessionInitializer-cNqVNoiR.esm.js";
|
|
10
10
|
import "./platform-BfoqeM61.esm.js";
|
|
11
11
|
import "./getBrowser-Dv8LZyHE.esm.js";
|
|
12
12
|
import "./tri-CtxWthxz.esm.js";
|
|
@@ -40,21 +40,21 @@ import "./dateUtils-8dCcuArE.esm.js";
|
|
|
40
40
|
import { t as customWatchlistMachine } from "./customWatchlistStateMachine-Bi4P59HM.esm.js";
|
|
41
41
|
import { t as documentCaptureMachine } from "./documentCaptureStateMachine-MpwpJO7t.esm.js";
|
|
42
42
|
import { t as dynamicFormsMachine } from "./dynamicFormsStateMachine-Do84A4uU.esm.js";
|
|
43
|
-
import { n as toEkybConfig, t as ekybMachine } from "./ekybStateMachine-
|
|
43
|
+
import { n as toEkybConfig, t as ekybMachine } from "./ekybStateMachine-pLPP6-43.esm.js";
|
|
44
44
|
import "./addressSearch-BH96a3fq.esm.js";
|
|
45
45
|
import "./session-Be_IA1e0.esm.js";
|
|
46
|
-
import "./flowServices-
|
|
46
|
+
import "./flowServices-DS6xavyw.esm.js";
|
|
47
47
|
import { n as toEkycConfig, t as ekycMachine } from "./ekycStateMachine-DcynX0rj.esm.js";
|
|
48
48
|
import { t as emailMachine } from "./emailStateMachine-758f34gg.esm.js";
|
|
49
49
|
import "./otp-D87RTwrx.esm.js";
|
|
50
50
|
import { t as selfieMachine } from "./selfieStateMachine-D2Q0uwDK.esm.js";
|
|
51
|
-
import { t as idCaptureMachine } from "./idCaptureStateMachine-
|
|
51
|
+
import { t as idCaptureMachine } from "./idCaptureStateMachine-CqOIgzbV.esm.js";
|
|
52
52
|
import { t as phoneMachine } from "./phoneStateMachine-W3c6Z8sj.esm.js";
|
|
53
53
|
import { n as identityReuseMachine } from "./identityReuseStateMachine-CSQfZOqD.esm.js";
|
|
54
54
|
import { t as mandatoryConsentMachine } from "./mandatoryConsentStateMachine-D_dZ7IF6.esm.js";
|
|
55
55
|
import { t as redirectToMobileMachine } from "./redirectToMobileStateMachine-DC9z4Vfu.esm.js";
|
|
56
56
|
import { t as faceMatchMachine } from "./faceMatchStateMachine-FikRaUZH.esm.js";
|
|
57
|
-
import { n as getFinishStatus } from "./flowCompletionService-D_CsiDZM.esm.js";
|
|
57
|
+
import { n as getFinishStatus, r as getTotalScoreStatus } from "./flowCompletionService-D_CsiDZM.esm.js";
|
|
58
58
|
import { n as isAdvanceableError, r as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-C9G0wfVC.esm.js";
|
|
59
59
|
import { t as geolocationMachine } from "./geolocationStateMachine-BWjrMGS_.esm.js";
|
|
60
60
|
import { t as governmentValidationMachine } from "./governmentValidationStateMachine-BoF7U1of.esm.js";
|
|
@@ -332,6 +332,9 @@ const workflowMachine = setup({
|
|
|
332
332
|
notifyBackend: fromPromise(async ({ input, signal }) => {
|
|
333
333
|
return input.getFinishStatus(input.workflowId, signal);
|
|
334
334
|
}),
|
|
335
|
+
resolveScore: fromPromise(async ({ input, signal }) => {
|
|
336
|
+
return input.getTotalScoreStatus(signal);
|
|
337
|
+
}),
|
|
335
338
|
runChildModule
|
|
336
339
|
},
|
|
337
340
|
actions: {
|
|
@@ -359,6 +362,7 @@ const workflowMachine = setup({
|
|
|
359
362
|
}),
|
|
360
363
|
setResolvedMachine: assign(({ event }) => ({ resolvedMachine: event.output })),
|
|
361
364
|
setFinishStatus: assign(({ event }) => ({ finishStatus: event.output })),
|
|
365
|
+
setTotalScoreStatus: assign(({ event }) => ({ totalScoreStatus: event.output })),
|
|
362
366
|
setFinishStatusFailed: assign({ moduleErrorCode: "FINISH_STATUS_FAILED" }),
|
|
363
367
|
setError: assign(({ event }) => {
|
|
364
368
|
const { message, code } = extractErrorInfo(event.error);
|
|
@@ -400,6 +404,8 @@ const workflowMachine = setup({
|
|
|
400
404
|
},
|
|
401
405
|
isOnboardingFinishedSignal: ({ event }) => event.output?.action === "onboardingFinished",
|
|
402
406
|
isAdvanceableModuleError: ({ event }) => isAdvanceableError(event.moduleErrorCode),
|
|
407
|
+
shouldResolveScore: ({ context }) => context.workflowConfig?.showFinishScreenBySessionStatus === true,
|
|
408
|
+
isOnboardingFinishedWithStatusScreen: ({ context, event }) => event.output?.action === "onboardingFinished" && context.workflowConfig?.showFinishScreenBySessionStatus === true,
|
|
403
409
|
shouldEnterHome: ({ event }) => {
|
|
404
410
|
const result = event.output;
|
|
405
411
|
if (!result || result.currentNode.nodeType !== "MODULE") return false;
|
|
@@ -422,12 +428,14 @@ const workflowMachine = setup({
|
|
|
422
428
|
registeredModules: input.modules,
|
|
423
429
|
configMappers: input.configMappers ?? {},
|
|
424
430
|
finishStatus: void 0,
|
|
431
|
+
totalScoreStatus: void 0,
|
|
425
432
|
customModuleCallback: input.customModuleCallback,
|
|
426
433
|
interviewId: input.interviewId ?? "",
|
|
427
434
|
isDesktop: input.isDesktop ?? true,
|
|
428
435
|
isInjectedNode: false,
|
|
429
436
|
isHomeContinueLoading: false,
|
|
430
|
-
getFinishStatus: input.getFinishStatus ?? getFinishStatus
|
|
437
|
+
getFinishStatus: input.getFinishStatus ?? getFinishStatus,
|
|
438
|
+
getTotalScoreStatus: input.getTotalScoreStatus ?? getTotalScoreStatus
|
|
431
439
|
}),
|
|
432
440
|
states: {
|
|
433
441
|
idle: { on: { LOAD: "loading" } },
|
|
@@ -505,10 +513,17 @@ const workflowMachine = setup({
|
|
|
505
513
|
}
|
|
506
514
|
},
|
|
507
515
|
on: {
|
|
508
|
-
MODULE_COMPLETE: [
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
516
|
+
MODULE_COMPLETE: [
|
|
517
|
+
{
|
|
518
|
+
target: "resolvingScore",
|
|
519
|
+
guard: "isOnboardingFinishedWithStatusScreen"
|
|
520
|
+
},
|
|
521
|
+
{
|
|
522
|
+
target: "finished",
|
|
523
|
+
guard: "isOnboardingFinishedSignal"
|
|
524
|
+
},
|
|
525
|
+
{ target: "processingNode" }
|
|
526
|
+
],
|
|
512
527
|
MODULE_ERROR: [{
|
|
513
528
|
guard: "isAdvanceableModuleError",
|
|
514
529
|
target: "processingNode",
|
|
@@ -518,7 +533,10 @@ const workflowMachine = setup({
|
|
|
518
533
|
actions: "setModuleError"
|
|
519
534
|
}],
|
|
520
535
|
COMPLETE_FLOW: "completing",
|
|
521
|
-
FINISH_WORKFLOW:
|
|
536
|
+
FINISH_WORKFLOW: [{
|
|
537
|
+
target: "resolvingScore",
|
|
538
|
+
guard: "shouldResolveScore"
|
|
539
|
+
}, { target: "finished" }]
|
|
522
540
|
}
|
|
523
541
|
},
|
|
524
542
|
handlingCustomModule: { invoke: {
|
|
@@ -604,6 +622,16 @@ const workflowMachine = setup({
|
|
|
604
622
|
actions: ["setError", "setFinishStatusFailed"]
|
|
605
623
|
}
|
|
606
624
|
} },
|
|
625
|
+
resolvingScore: { invoke: {
|
|
626
|
+
id: "resolveScore",
|
|
627
|
+
src: "resolveScore",
|
|
628
|
+
input: ({ context }) => ({ getTotalScoreStatus: context.getTotalScoreStatus }),
|
|
629
|
+
onDone: {
|
|
630
|
+
target: "finished",
|
|
631
|
+
actions: "setTotalScoreStatus"
|
|
632
|
+
},
|
|
633
|
+
onError: { target: "finished" }
|
|
634
|
+
} },
|
|
607
635
|
finished: { type: "final" },
|
|
608
636
|
asyncResolution: { type: "final" },
|
|
609
637
|
closed: { type: "final" },
|
|
@@ -681,17 +709,21 @@ function mapState(snapshot) {
|
|
|
681
709
|
homeScreen
|
|
682
710
|
};
|
|
683
711
|
}
|
|
684
|
-
if (snapshot.matches("finished"))
|
|
685
|
-
|
|
686
|
-
workflowConfig: context.workflowConfig,
|
|
687
|
-
finishStatus: context.finishStatus ?? {
|
|
712
|
+
if (snapshot.matches("finished")) {
|
|
713
|
+
const finishStatus = context.finishStatus ?? {
|
|
688
714
|
redirectionUrl: "",
|
|
689
715
|
action: "none",
|
|
690
716
|
scoreStatus: "UNKNOWN",
|
|
691
717
|
endScreenTitle: null,
|
|
692
718
|
endScreenText: null
|
|
693
|
-
}
|
|
694
|
-
|
|
719
|
+
};
|
|
720
|
+
return {
|
|
721
|
+
status: "finished",
|
|
722
|
+
workflowConfig: context.workflowConfig,
|
|
723
|
+
finishStatus,
|
|
724
|
+
scoreStatus: context.totalScoreStatus ?? finishStatus.scoreStatus
|
|
725
|
+
};
|
|
726
|
+
}
|
|
695
727
|
if (snapshot.matches("asyncResolution")) return {
|
|
696
728
|
status: "asyncResolution",
|
|
697
729
|
workflowConfig: context.workflowConfig,
|
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-20260624-b4a7d4cb",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/IncodeTechnologies/incode-web-sdk.git"
|
|
@@ -261,8 +261,8 @@
|
|
|
261
261
|
"tsdown": "^0.16.6",
|
|
262
262
|
"typescript": "^5.9.3",
|
|
263
263
|
"vitest": "^4.0.13",
|
|
264
|
-
"@incodetech/
|
|
265
|
-
"@incodetech/
|
|
264
|
+
"@incodetech/infra": "1.1.0",
|
|
265
|
+
"@incodetech/config": "1.0.1"
|
|
266
266
|
},
|
|
267
267
|
"scripts": {
|
|
268
268
|
"build": "tsdown -c tsdown.config.ts",
|