@incodetech/core 0.0.0-dev-20260723-e73d5099 → 0.0.0-dev-20260723-397b76d8
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 +2 -1
- package/dist/ae-signature.esm.js +1 -1
- package/dist/authentication.d.ts +3 -2
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-BCm7eGoK.d.ts → authenticationManager-Ce1nLm5y.d.ts} +1 -1
- package/dist/{authenticationManager-Cmio9w7i.esm.js → authenticationManager-DW449fW3.esm.js} +2 -2
- package/dist/{authenticationStateMachine-CrkXvIhE.esm.js → authenticationStateMachine-CrvxMmoJ.esm.js} +2 -2
- package/dist/consent.d.ts +1 -1
- package/dist/{consentManager-3Pbtj-RV.d.ts → consentManager-uhDPdU6i.d.ts} +4 -4
- package/dist/{deepsightLoader-Be2xONxN.esm.js → deepsightLoader-BCxEZjuI.esm.js} +1 -1
- package/dist/document-capture.d.ts +2 -1
- package/dist/document-upload.d.ts +4 -4
- package/dist/{documentCaptureManager-CBP2DkPr.d.ts → documentCaptureManager-pEqMY_Oo.d.ts} +2 -104
- package/dist/dynamic-forms.d.ts +2 -1
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-Dposae2l.d.ts → dynamicFormsManager-BYac2uEY.d.ts} +2 -48
- package/dist/{dynamicFormsManager-Fi2O2RUM.esm.js → dynamicFormsManager-DI0sCyVB.esm.js} +1 -1
- package/dist/ekyb.d.ts +2 -1
- package/dist/ekyb.esm.js +3 -2
- package/dist/{ekybManager-CObZ7foB.esm.js → ekybManager-D46NN7cx.esm.js} +1 -1
- package/dist/{ekybManager-CBX0tM04.d.ts → ekybManager-Dzswb_b8.d.ts} +3 -48
- package/dist/{ekybStateMachine-Cw4pz_hf.esm.js → ekybStateMachine-DX7KeqlM.esm.js} +2 -170
- package/dist/ekyc.esm.js +3 -2
- package/dist/{ekycManager-CI7sN4Ln.esm.js → ekycManager-DRrG5I6e.esm.js} +1 -1
- package/dist/{ekycStateMachine-DFQdmBXl.esm.js → ekycStateMachine-DRbbavZy.esm.js} +2 -223
- package/dist/ekycUtils-Dew1rBG0.esm.js +223 -0
- package/dist/electronic-signature.d.ts +2 -1
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/extensibility.d.ts +12 -11
- package/dist/extensibility.esm.js +9 -9
- package/dist/{faceCaptureManagerFactory-DPf1rRsd.d.ts → faceCaptureManagerFactory-BUE6z9iY.d.ts} +2 -4
- package/dist/{faceCaptureManagerFactory-CeUzH_6U.esm.js → faceCaptureManagerFactory-BcntOvvC.esm.js} +1 -1
- package/dist/{faceCaptureSetup-CtiVwaPe.esm.js → faceCaptureSetup-BUAw6zY_.esm.js} +2 -2
- package/dist/flow.d.ts +44 -1
- package/dist/flow.esm.js +4 -11
- package/dist/flowServices-BU1mMxoQ.esm.js +596 -0
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-bZDyI0gy.esm.js → geolocationManager-zeqAcVHC.esm.js} +1 -1
- package/dist/id-ocr.d.ts +2 -1
- package/dist/id.d.ts +2 -1
- package/dist/id.esm.js +2 -2
- package/dist/{idCaptureManager-Dqn6U25Q.esm.js → idCaptureManager-BqmmPXFm.esm.js} +3 -4
- package/dist/idCaptureManager-CtsYvX-Z.d.ts +405 -0
- package/dist/{idCaptureStateMachine-B7atraNp.esm.js → idCaptureStateMachine-CnKkMNrI.esm.js} +8 -50
- package/dist/{idOcrManager-B-JyjyPb.d.ts → idOcrManager-DlYG277_.d.ts} +2 -163
- package/dist/{index-CKbmDFNq.d.ts → index-DGcdhk8Y.d.ts} +2 -64
- package/dist/index.d.ts +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/mandatory-consent.d.ts +2 -1
- package/dist/{mandatoryConsentManager-Bc9AKBft.d.ts → mandatoryConsentManager-Ck2e2W4o.d.ts} +6 -25
- package/dist/{onDeviceFaceResults-CbO3AqMC.esm.js → onDeviceFaceResults-CWMT6JTR.esm.js} +1 -1
- package/dist/personhood.esm.js +2 -2
- package/dist/qe-signature.d.ts +2 -1
- package/dist/qe-signature.esm.js +1 -1
- package/dist/{recordingService-YhyXG0Ch.esm.js → recordingService-CfT3nmFO.esm.js} +1 -1
- package/dist/redirect-to-mobile.d.ts +2 -1
- package/dist/{redirectToMobileManager-NVQM3o5P.d.ts → redirectToMobileManager-DZlJhqvq.d.ts} +2 -40
- package/dist/selfie.d.ts +2 -2
- package/dist/selfie.esm.js +4 -4
- package/dist/{selfieManager-CgmJu62N.esm.js → selfieManager-D-QJUh3X.esm.js} +2 -2
- package/dist/{selfieManager-Dq9wNlcg.d.ts → selfieManager-LabfZln4.d.ts} +1 -1
- package/dist/{selfieStateMachine-C_piZ4gb.esm.js → selfieStateMachine-BH-U-y6R.esm.js} +2 -2
- package/dist/session-BU4MkUEc.esm.js +1 -0
- package/dist/session.d.ts +2 -0
- package/dist/session.esm.js +2 -2
- package/dist/{sessionInitializer-B5tU3IQv.esm.js → sessionInitializer-DT7IYwRx.esm.js} +58 -11
- package/dist/{setup-BBfVpTog.d.ts → setup-B1WTXTQV.d.ts} +15 -0
- package/dist/{setup-Cx9IY17e.esm.js → setup-DXdKnXXf.esm.js} +21 -7
- package/dist/types-B4BObr_7.d.ts +105 -0
- package/dist/types-BAvkiv6L.d.ts +6 -0
- package/dist/types-BQgIv5p8.d.ts +21 -0
- package/dist/types-BfHiko5D.d.ts +48 -0
- package/dist/types-CBJI9n6h.d.ts +163 -0
- package/dist/{idCaptureManager-DTe_5dcI.d.ts → types-D0ohdBDu.d.ts} +2 -407
- package/dist/types-DPIDuhut2.d.ts +40 -0
- package/dist/types-DWaEoU0I.d.ts +64 -0
- package/dist/types-xIEGXWk8.d.ts +48 -0
- package/dist/video-selfie.esm.js +3 -3
- package/dist/wasm.d.ts +1 -1
- package/dist/wasm.esm.js +1 -1
- package/dist/workflow.d.ts +4 -4
- package/dist/workflow.esm.js +16 -11
- package/package.json +1 -1
- package/dist/flowServices-Caz-Bdol.esm.js +0 -209
- package/dist/session-CoL4WBRi.esm.js +0 -1
- package/dist/videoSelfieSteps-DHcibfYH.esm.js +0 -57
- package/dist/{dynamicFormsStateMachine-DiPpuHgF.esm.js → dynamicFormsStateMachine-BQqAwNQ-.esm.js} +1 -1
- package/dist/{electronicSignatureManager-DGFwHdro.esm.js → electronicSignatureManager-BXIpAJ5m.esm.js} +1 -1
- package/dist/{geolocationStateMachine-ByU6-nbM.esm.js → geolocationStateMachine-DxSETS9_.esm.js} +1 -1
package/dist/flow.d.ts
CHANGED
|
@@ -2,7 +2,17 @@ import { n as WasmPipeline } from "./warmup-Dv2alr2-.js";
|
|
|
2
2
|
import { A as StateMachine, _ as MachineContext, c as AnyEventObject, l as AnyStateMachine, p as EventObject, v as MetaObject, y as NonReducibleUnknown } from "./spawn-D9jgw9pW.js";
|
|
3
3
|
import "./StateMachine-EDpYWy0i.js";
|
|
4
4
|
import { t as Manager } from "./Manager-CQQ99QOI.js";
|
|
5
|
+
import { a as ElectronicSignatureConfig } from "./types-DWaEoU0I.js";
|
|
6
|
+
import { t as EkycConfig } from "./types-Bk_6dmDa.js";
|
|
5
7
|
import { i as FlowModuleConfig, n as Flow, r as FlowModule } from "./types-BjTTkLmd.js";
|
|
8
|
+
import { t as AuthenticationConfig } from "./types-BAvkiv6L.js";
|
|
9
|
+
import { r as DocumentCaptureConfig } from "./types-B4BObr_7.js";
|
|
10
|
+
import { t as DynamicFormsConfig } from "./types-xIEGXWk8.js";
|
|
11
|
+
import { t as EkybConfig } from "./types-BfHiko5D.js";
|
|
12
|
+
import { c as IdCaptureConfig } from "./types-D0ohdBDu.js";
|
|
13
|
+
import { r as MandatoryConsentConfig } from "./types-BQgIv5p8.js";
|
|
14
|
+
import { t as IdOcrConfig } from "./types-CBJI9n6h.js";
|
|
15
|
+
import { t as RedirectToMobileConfig } from "./types-DPIDuhut2.js";
|
|
6
16
|
import { a as TotalScore, c as getTotalScoreStatus, n as FinishStatus, o as classifyScoreStatus, r as GetFinishStatusFn, t as FinishScreenVariant } from "./flowCompletionService-BlAHsKyv.js";
|
|
7
17
|
import { o as FlowEventSubscribable } from "./index-Ci9wEPiD.js";
|
|
8
18
|
import { n as ModuleRegistry } from "./types-BfgmV7s7.js";
|
|
@@ -14,6 +24,7 @@ type NormalizeFlowModulesOptions = {
|
|
|
14
24
|
useCPF?: boolean;
|
|
15
25
|
};
|
|
16
26
|
type FlowForNormalization = Pick<Flow, 'flowId' | 'flowModules' | 'redirectDesktopToMobile' | 'disableSmsOption' | 'addContinueToDesktop' | 'qrPhishingResistance'>;
|
|
27
|
+
declare function enrichFlowModuleConfig(module: FlowModule, flow: Flow): Record<string, unknown>;
|
|
17
28
|
/**
|
|
18
29
|
* Analyzes a flow configuration and returns the WASM pipelines needed.
|
|
19
30
|
* Use this to conditionally warmup WASM only when required by the flow.
|
|
@@ -45,6 +56,12 @@ declare function getRequiredWasmPipelines(flow: Flow): WasmPipeline[];
|
|
|
45
56
|
*/
|
|
46
57
|
declare function normalizeFlowModules(flow: FlowForNormalization, options?: NormalizeFlowModulesOptions): FlowModule[];
|
|
47
58
|
//#endregion
|
|
59
|
+
//#region src/modules/flow/dashboardConfig.d.ts
|
|
60
|
+
type DeepPartialValue<T> = T extends Record<string, unknown> ? DeepPartial<T> : T;
|
|
61
|
+
type PreserveArray<T> = T extends readonly unknown[] ? T : DeepPartialValue<T>;
|
|
62
|
+
type DeepPartial<T> = { [K in keyof T]?: PreserveArray<T[K]>; };
|
|
63
|
+
declare function mergeDashboardConfig<T>(dashboardConfig: T, localConfig: DeepPartial<T> | undefined): T;
|
|
64
|
+
//#endregion
|
|
48
65
|
//#region src/modules/flow/flowServices.d.ts
|
|
49
66
|
type GetFlowOptions = {
|
|
50
67
|
isDesktop?: boolean;
|
|
@@ -53,7 +70,33 @@ type GetFlowOptions = {
|
|
|
53
70
|
useCPF?: boolean;
|
|
54
71
|
};
|
|
55
72
|
type GetFlow = (signal: AbortSignal, options?: GetFlowOptions) => Promise<Flow>;
|
|
73
|
+
type DashboardResolvedModuleConfigMap = {
|
|
74
|
+
ADDRESS: DocumentCaptureConfig;
|
|
75
|
+
AE_SIGNATURE: Omit<ElectronicSignatureConfig, 'variant'>;
|
|
76
|
+
AUTHENTICATION: AuthenticationConfig;
|
|
77
|
+
DOCUMENT_CAPTURE: DocumentCaptureConfig;
|
|
78
|
+
DYNAMIC_FORMS: DynamicFormsConfig;
|
|
79
|
+
EKYB: EkybConfig;
|
|
80
|
+
EXTERNAL_VERIFICATION: EkycConfig;
|
|
81
|
+
ID: IdCaptureConfig;
|
|
82
|
+
ID_OCR: IdOcrConfig;
|
|
83
|
+
MANDATORY_CONSENT: MandatoryConsentConfig;
|
|
84
|
+
ML_CONSENT: MandatoryConsentConfig;
|
|
85
|
+
QE_SIGNATURE: Omit<ElectronicSignatureConfig, 'variant'>;
|
|
86
|
+
REDIRECT_TO_MOBILE: RedirectToMobileConfig;
|
|
87
|
+
SECOND_ID: IdCaptureConfig;
|
|
88
|
+
TUTORIAL_ID: IdCaptureConfig;
|
|
89
|
+
};
|
|
90
|
+
type ResolvedDashboardModuleConfig<K extends keyof FlowModuleConfig> = K extends keyof DashboardResolvedModuleConfigMap ? DashboardResolvedModuleConfigMap[K] : FlowModuleConfig[K];
|
|
91
|
+
type ResolveDashboardModuleConfigOptions<K extends keyof FlowModuleConfig> = {
|
|
92
|
+
moduleKey: K;
|
|
93
|
+
config?: DeepPartial<ResolvedDashboardModuleConfig<K>>;
|
|
94
|
+
occurrence?: number;
|
|
95
|
+
signal?: AbortSignal;
|
|
96
|
+
};
|
|
97
|
+
declare function preloadDashboardFlow(signal?: AbortSignal): Promise<Flow>;
|
|
56
98
|
declare const getFlow: GetFlow;
|
|
99
|
+
declare function resolveDashboardModuleConfig<K extends keyof FlowModuleConfig>(options: ResolveDashboardModuleConfigOptions<K>): Promise<ResolvedDashboardModuleConfig<K>>;
|
|
57
100
|
//#endregion
|
|
58
101
|
//#region src/modules/flow/noOpFlowModuleMachine.d.ts
|
|
59
102
|
declare const noOpFlowModuleMachine: StateMachine<MachineContext, AnyEventObject, {}, never, never, never, never, "finished", string, NonReducibleUnknown, NonReducibleUnknown, EventObject, MetaObject, {
|
|
@@ -376,4 +419,4 @@ declare function createOrchestratedFlowManager(options: CreateOrchestratedFlowAc
|
|
|
376
419
|
continueFromHome(): Promise<void>;
|
|
377
420
|
} & FlowEventSubscribable;
|
|
378
421
|
//#endregion
|
|
379
|
-
export { type FinishScreenVariant, type FinishStatus, type Flow, type FlowModule, type FlowModuleConfig, type FlowReadyState, type FlowState, type LazyModule, type LazyModuleRegistry, type ModuleLoader, type ModuleLoaderRegistry, type ModuleRegistry, type OrchestratedFlowCompletingState, type OrchestratedFlowFinishedState, type OrchestratedFlowHomeScreen, type OrchestratedFlowInput, type OrchestratedFlowPresentation, type OrchestratedFlowReadyState, type OrchestratedFlowState, type TotalScore, classifyScoreStatus, createFlowManager, createModuleLoader, createOrchestratedFlowManager, getFlow, getRequiredWasmPipelines, getTotalScoreStatus, noOpFlowModuleMachine, normalizeFlowModules };
|
|
422
|
+
export { type DeepPartial, type FinishScreenVariant, type FinishStatus, type Flow, type FlowModule, type FlowModuleConfig, type FlowReadyState, type FlowState, type LazyModule, type LazyModuleRegistry, type ModuleLoader, type ModuleLoaderRegistry, type ModuleRegistry, type OrchestratedFlowCompletingState, type OrchestratedFlowFinishedState, type OrchestratedFlowHomeScreen, type OrchestratedFlowInput, type OrchestratedFlowPresentation, type OrchestratedFlowReadyState, type OrchestratedFlowState, type ResolveDashboardModuleConfigOptions, type ResolvedDashboardModuleConfig, type TotalScore, classifyScoreStatus, createFlowManager, createModuleLoader, createOrchestratedFlowManager, enrichFlowModuleConfig, getFlow, getRequiredWasmPipelines, getTotalScoreStatus, mergeDashboardConfig, noOpFlowModuleMachine, normalizeFlowModules, preloadDashboardFlow, resolveDashboardModuleConfig };
|
package/dist/flow.esm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { m as addEvent } from "./events-Dy8PyVO5.esm.js";
|
|
2
|
+
import { a as enrichFlowModuleConfig, c as resolveFlowModuleConfig, i as resolveDashboardModuleConfig, k as mergeDashboardConfig, n as preloadDashboardFlow, o as getRequiredWasmPipelines, s as normalizeFlowModules, t as getFlow } from "./flowServices-BU1mMxoQ.esm.js";
|
|
2
3
|
import { c as createManager, o as createActor, r as assign, t as setup } from "./xstate.esm-Cf4e0Cfd.esm.js";
|
|
3
4
|
import { n as fromPromise } from "./xstate-actors.esm-CtI5S0f4.esm.js";
|
|
4
|
-
import { n as getRequiredWasmPipelines, r as normalizeFlowModules, t as getFlow } from "./flowServices-Caz-Bdol.esm.js";
|
|
5
5
|
import { n as getFinishStatus, r as getTotalScoreStatus, t as classifyScoreStatus } from "./flowCompletionService-D5oIlcza.esm.js";
|
|
6
6
|
import { n as isAdvanceableError, r as attachFlowEventEmitter, t as runChildModule } from "./runChildModule-Crz1nHwJ.esm.js";
|
|
7
7
|
//#region src/modules/flow/noOpFlowModuleMachine.ts
|
|
@@ -328,15 +328,8 @@ function createModuleLoader(registry) {
|
|
|
328
328
|
//#endregion
|
|
329
329
|
//#region src/modules/flow/orchestratedFlowStateMachine.ts
|
|
330
330
|
function getModuleConfig(module, flow) {
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
ds: flow?.ds
|
|
334
|
-
};
|
|
335
|
-
if (module?.key === "ID" || module?.key === "TUTORIAL_ID" || module?.key === "SECOND_ID" || module?.key === "SELFIE") return {
|
|
336
|
-
...config,
|
|
337
|
-
ageAssurance: config.ageAssurance ?? flow?.ageAssurance
|
|
338
|
-
};
|
|
339
|
-
return config;
|
|
331
|
+
if (!module || !flow) return {};
|
|
332
|
+
return resolveFlowModuleConfig(module, flow);
|
|
340
333
|
}
|
|
341
334
|
function createBaseContext(context, isHomeContinueLoading) {
|
|
342
335
|
return {
|
|
@@ -970,4 +963,4 @@ function createOrchestratedFlowManager(options) {
|
|
|
970
963
|
}));
|
|
971
964
|
}
|
|
972
965
|
//#endregion
|
|
973
|
-
export { classifyScoreStatus, createFlowManager, createModuleLoader, createOrchestratedFlowManager, getFlow, getRequiredWasmPipelines, getTotalScoreStatus, noOpFlowModuleMachine, normalizeFlowModules };
|
|
966
|
+
export { classifyScoreStatus, createFlowManager, createModuleLoader, createOrchestratedFlowManager, enrichFlowModuleConfig, getFlow, getRequiredWasmPipelines, getTotalScoreStatus, mergeDashboardConfig, noOpFlowModuleMachine, normalizeFlowModules, preloadDashboardFlow, resolveDashboardModuleConfig };
|