@incodetech/core 0.0.0-dev-20261124-bcd99b1e → 0.0.0-dev-20261125-a91bf928
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/{FaceDetectionProvider-D4ncumfe.esm.js → FaceDetectionProvider-D-1rS3WB.esm.js} +4 -4
- package/dist/{definitionSource-B-Z2EgJJ.esm.js → addressSearch-DKdOJ_e-.esm.js} +67 -8
- package/dist/ae-signature.esm.js +1 -1
- package/dist/{phoneFormat-C3q0Ukh4.esm.js → allowedCharacters-Bnir--CN.esm.js} +1 -11
- package/dist/{apiError-a7tezk_O.esm.js → apiError-CxKf45Ky.esm.js} +1 -1
- package/dist/authentication.d.ts +3 -3
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-Cp64l__H.d.ts → authenticationManager-BManpfgb.d.ts} +1 -1
- package/dist/{authenticationManager-IpVKgxPn.esm.js → authenticationManager-CThxh6EJ.esm.js} +3 -3
- package/dist/{authenticationStateMachine-B4CuMBgC.esm.js → authenticationStateMachine-DN122Cii.esm.js} +3 -3
- package/dist/{calendarDate-DcqGuEht.esm.js → calendarDate-D2zWfUlA.esm.js} +1 -1
- package/dist/{cnpj-Bl_olpdX.esm.js → cnpj-CVq3vL39.esm.js} +1 -9
- package/dist/cnpj-D5cxwIe-.esm.js +9 -0
- package/dist/curp-validation.d.ts +1 -1
- package/dist/curp-validation.esm.js +2 -2
- package/dist/{curpValidationManager-C6WmQToS.esm.js → curpValidationManager-4v5qMUXm.esm.js} +1 -1
- package/dist/{curpValidationManager-Dynwqu2z.d.ts → curpValidationManager-9U7zMZt8.d.ts} +1 -1
- package/dist/{curpValidationStateMachine-BbJ4YAzE.esm.js → curpValidationStateMachine-BPkEZtmd.esm.js} +1 -1
- package/dist/custom-fields.esm.js +1 -1
- package/dist/{customFieldsManager-BBy6X9nh.esm.js → customFieldsManager-BX3u8VPe.esm.js} +1 -1
- package/dist/{deepsightCaptureConfig-D0PCzVcM.esm.js → deepsightCaptureConfig-B7HX2BKP.esm.js} +2 -2
- package/dist/{deepsightLoader-nbl5Dhvf.esm.js → deepsightLoader-C_fdJi9H.esm.js} +4 -4
- package/dist/definitionSource-C_pmsYIx.esm.js +12 -0
- package/dist/{desktopCameraElection-C2jhy2Fd.esm.js → desktopCameraElection-A7IPW-RU.esm.js} +4 -4
- package/dist/document-capture.d.ts +1 -1
- package/dist/document-signature.esm.js +1 -1
- package/dist/{documentCaptureManager-DOgJTJ4F.d.ts → documentCaptureManager-sJWgqtUy.d.ts} +4 -4
- package/dist/{documentSignatureStateMachine-DoeIrTmr.esm.js → documentSignatureStateMachine-ClNEf1FQ.esm.js} +1 -1
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-D_QpTKfT.esm.js → dynamicFormsManager-nl9-642J.esm.js} +1 -1
- package/dist/{dynamicFormsStateMachine-D_KmQwDZ.esm.js → dynamicFormsStateMachine-DwjwenOE.esm.js} +2 -2
- package/dist/ekyb.d.ts +4 -4
- package/dist/ekyb.esm.js +2 -2
- package/dist/{ekybManager-BG7eju18.esm.js → ekybManager-B-tbtSFb.esm.js} +1 -1
- package/dist/{ekybManager-BflWuTe4.d.ts → ekybManager-DZdSXQMK.d.ts} +2 -2
- package/dist/{ekybStateMachine-Bc-m_PHQ.esm.js → ekybStateMachine-BC4eZWrb.esm.js} +5 -4
- package/dist/ekyc-prefill.d.ts +3 -4
- package/dist/ekyc-prefill.esm.js +2 -2
- package/dist/ekyc.d.ts +3 -3
- package/dist/ekyc.esm.js +2 -2
- package/dist/{ekycManager-BPUHoUHy.esm.js → ekycManager-CDxoP5gL.esm.js} +1 -1
- package/dist/{ekycManager-BldDiWTJ.d.ts → ekycManager-DusmB-4j.d.ts} +2 -2
- package/dist/{ekycPrefillManager-qgG_uUKA.d.ts → ekycPrefillManager-BwmPXfhY.d.ts} +17 -17
- package/dist/{ekycPrefillManager-BaX95xIW.esm.js → ekycPrefillManager-Cu5EAnkQ.esm.js} +6 -7
- package/dist/{ekycPrefillStateMachine-C8FEAHbH.esm.js → ekycPrefillStateMachine-DdHdgSaW.esm.js} +567 -165
- package/dist/{ekycStateMachine-Cq94FpIm.esm.js → ekycStateMachine-CM1YRW27.esm.js} +483 -155
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-bgoE6nL8.esm.js → electronicSignatureManager-knl_X2jh.esm.js} +1 -1
- package/dist/extensibility.d.ts +15 -15
- package/dist/extensibility.esm.js +17 -17
- package/dist/{faceCaptureManagerFactory-DvH9-zIi.esm.js → faceCaptureManagerFactory-D0eN82qj.esm.js} +2 -2
- package/dist/{faceCaptureManagerFactory-BZ2XHhkj.d.ts → faceCaptureManagerFactory-Dm7p3T_t.d.ts} +3 -3
- package/dist/{faceCaptureSetup-DuFiwK9F.esm.js → faceCaptureSetup-BfedgErd.esm.js} +7 -7
- package/dist/{feature-management-DiL2uBlX.esm.js → feature-management-BD2hrfZ3.esm.js} +1 -1
- package/dist/feature-management.esm.js +1 -1
- package/dist/flow-events.d.ts +1 -1
- package/dist/flow.d.ts +7 -7
- package/dist/flow.esm.js +3 -3
- package/dist/{flowCompletionService-Bs4oWd_W.esm.js → flowCompletionService-DlXzGwgu.esm.js} +1 -1
- package/dist/{flowServices-KLGZ3eWm.esm.js → flowServices-CxTdN-OL.esm.js} +4 -4
- package/dist/formErrors-lSfh7Y8J.esm.js +512 -0
- package/dist/geolocation.d.ts +1 -1
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-Del2ddmt.d.ts → geolocationManager-CENrvxpK.d.ts} +1 -1
- package/dist/{geolocationManager-el4FUmYy.esm.js → geolocationManager-Ch5lOvYH.esm.js} +1 -1
- package/dist/{geolocationStateMachine-BnM-qTe3.esm.js → geolocationStateMachine-EN7it_FF.esm.js} +1 -1
- package/dist/home.d.ts +1 -1
- package/dist/id-ocr.d.ts +1 -1
- package/dist/id-ocr.esm.js +2 -2
- package/dist/id-selfie-flow.d.ts +1 -1
- package/dist/id-selfie-flow.esm.js +6 -6
- package/dist/id.d.ts +2 -2
- package/dist/id.esm.js +3 -3
- package/dist/{idCaptureManager-UnWwLa3I.esm.js → idCaptureManager-CH2bkanx.esm.js} +4 -4
- package/dist/{idCaptureManager-Co4ZZ-pd.d.ts → idCaptureManager-jjNknNiP.d.ts} +2 -2
- package/dist/{idCaptureServices-DFUdwccM.esm.js → idCaptureServices-BN57-oba.esm.js} +2 -2
- package/dist/{idCaptureStateMachine-DGWGB0Tz.esm.js → idCaptureStateMachine-DIM0ZxBY.esm.js} +11 -11
- package/dist/{idOcrManager-C3BHGgSb.d.ts → idOcrManager-C0C7lFGd.d.ts} +1 -1
- package/dist/{idOcrManager-XTbpfHoF.esm.js → idOcrManager-Dl9eNhT8.esm.js} +1 -1
- package/dist/{idOcrStateMachine-B-00PgPh.esm.js → idOcrStateMachine-CEkUWxGy.esm.js} +1 -1
- package/dist/{index-RghgiJVx.d.ts → index-B-K_tV2Q.d.ts} +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/kyb-checks.d.ts +3 -3
- package/dist/kyb-checks.esm.js +2 -2
- package/dist/{kybChecksManager-CbkCctw0.esm.js → kybChecksManager-Bh-oiXei.esm.js} +2 -2
- package/dist/{kybChecksManager-B7Di9auB.d.ts → kybChecksManager-CKDy1mel.d.ts} +1 -1
- package/dist/{kybChecksStateMachine-BeB_cgk4.esm.js → kybChecksStateMachine-WIdi80Sq.esm.js} +175 -178
- package/dist/mandatory-consent.d.ts +2 -2
- package/dist/{mandatoryConsentManager-B_eFZmo-.d.ts → mandatoryConsentManager-Bwl0YPwg.d.ts} +1 -1
- package/dist/numericRange-zDZFvRb8.esm.js +274 -0
- package/dist/qe-signature.esm.js +1 -1
- package/dist/{recordingService-PUU8CObN.esm.js → recordingService-5o50qJ9A.esm.js} +1 -1
- package/dist/{runChildModule-BOvtfM8r.esm.js → runChildModule-vqgSWeEF.esm.js} +1 -1
- package/dist/{sdkVersion-thMGaHAC.esm.js → sdkVersion-C3x7ZDSE.esm.js} +1 -1
- package/dist/selfie.d.ts +3 -3
- package/dist/selfie.esm.js +7 -7
- package/dist/{selfieErrorUtils-CqudCvHN.esm.js → selfieErrorUtils-BB-nxdeJ.esm.js} +1 -1
- package/dist/{selfieManager-DWRVOhOE.esm.js → selfieManager-CpV6Lw0q.esm.js} +3 -3
- package/dist/{selfieManager-CKm034l4.d.ts → selfieManager-DOwu6Ukf.d.ts} +1 -1
- package/dist/{selfieStateMachine-CNELgWFK.esm.js → selfieStateMachine-Bxi31PsA.esm.js} +3 -3
- package/dist/{session-pNSU6n3-.esm.js → session-syFGvfFW.esm.js} +4 -4
- package/dist/session.d.ts +1 -1
- package/dist/session.esm.js +4 -4
- package/dist/{sessionInitializer-BzvYgZCQ.esm.js → sessionInitializer-C4cinkbs.esm.js} +4 -4
- package/dist/{setup-BQVlJnC0.esm.js → setup-cZWqRr7-.esm.js} +5 -5
- package/dist/trueSight-DK2Q1w9z.esm.js +1 -0
- package/dist/{trueSightService-DjwNQ37t.esm.js → trueSightService-Bm5K21-R.esm.js} +1 -1
- package/dist/types-BTJWXYHA.d.ts +6 -0
- package/dist/{types-BgRHw-dR.d.ts → types-BaA0Qscz.d.ts} +1 -1
- package/dist/{types-_rJ2GjgK.d.ts → types-BqDc7tER.d.ts} +1 -1
- package/dist/{types-DFgJ26nw.d.ts → types-CH9u9ikn.d.ts} +1 -1
- package/dist/{types-Dy4XI7jR.d.ts → types-CRzImo5V.d.ts} +1 -1
- package/dist/{types-BiUMy0Vp.d.ts → types-CoXJsu1W.d.ts} +1 -1
- package/dist/{textRules-D4NRinKY.d.ts → types-D6Q1D1kx.d.ts} +1 -9
- package/dist/{types-CTaL0XJz.d.ts → types-DWqO7owj.d.ts} +2 -24
- package/dist/{types-mK4qyHxM.d.ts → types-g3NuVCT9.d.ts} +16 -29
- package/dist/{types-aKXf9SVN.d.ts → types-ia31g4VQ.d.ts} +3 -3
- package/dist/{types-Bdes6iC1.d.ts → types-tOSLpcSa.d.ts} +10 -2
- package/dist/video-selfie.d.ts +1 -1
- package/dist/video-selfie.esm.js +3 -3
- package/dist/{videoSelfieCameraWarmer-M25qqewS.esm.js → videoSelfieCameraWarmer-B5atbHuu.esm.js} +3 -3
- package/dist/{videoSelfieStepDetector-BBXE3DnI.d.ts → videoSelfieStepDetector-Dfj7UUF3.d.ts} +2 -2
- package/dist/wasm.esm.js +1 -1
- package/dist/watchlist-for-business.esm.js +2 -2
- package/dist/{watchlistForBusinessManager-DxeSH80T.esm.js → watchlistForBusinessManager-CiSWk1Lh.esm.js} +1 -1
- package/dist/{watchlistForBusinessStateMachine-BC9UWLuZ.esm.js → watchlistForBusinessStateMachine-DiQW42sd.esm.js} +3 -2
- package/dist/workflow.d.ts +1 -1
- package/dist/workflow.esm.js +21 -21
- package/package.json +1 -1
- package/dist/addressSearch-BKlynuBr.esm.js +0 -71
- package/dist/ekycRules-B7kUzSgu.esm.js +0 -598
- package/dist/trueSight-CiveOb7r.esm.js +0 -1
- package/dist/types-J7D0pbWH.d.ts +0 -6
|
@@ -2,12 +2,11 @@ import { A as MachineSnapshot, O as PromiseActorLogic, S as RequiredLogicInput,
|
|
|
2
2
|
import "./xstate.cjs-D6Ur0X1F.js";
|
|
3
3
|
import { t as Manager } from "./Manager-DufwKlav.js";
|
|
4
4
|
import "./Actor-DqjOqDfU.js";
|
|
5
|
-
import { a as
|
|
6
|
-
import { a as EkycPrefillFieldDef, i as EkycPrefillErrorKind, l as EkycPrefillSubmitPlan, o as EkycPrefillInput, r as EkycPrefillContext, s as EkycPrefillModuleConfig, t as EkycPrefillConfig, u as EkycPrefillSubmitResponse } from "./types-mK4qyHxM.js";
|
|
5
|
+
import { a as EkycPrefillFieldDef, c as EkycPrefillInput, d as EkycPrefillSubmitResponse, f as EkycPrefillValues, i as EkycPrefillErrorKind, l as EkycPrefillModuleConfig, r as EkycPrefillContext, s as EkycPrefillFieldErrors, t as EkycPrefillConfig } from "./types-g3NuVCT9.js";
|
|
7
6
|
//#region src/modules/ekyc-prefill/ekycPrefillStateMachine.d.ts
|
|
8
7
|
type SubmitInput = {
|
|
9
|
-
|
|
10
|
-
values:
|
|
8
|
+
config: EkycPrefillConfig;
|
|
9
|
+
values: EkycPrefillValues;
|
|
11
10
|
};
|
|
12
11
|
declare const ekycPrefillMachine: StateMachine<EkycPrefillContext, {
|
|
13
12
|
type: "LOAD";
|
|
@@ -82,6 +81,10 @@ declare const ekycPrefillMachine: StateMachine<EkycPrefillContext, {
|
|
|
82
81
|
params: NonReducibleUnknown;
|
|
83
82
|
};
|
|
84
83
|
}>, Values<{
|
|
84
|
+
isValid: {
|
|
85
|
+
type: "isValid";
|
|
86
|
+
params: unknown;
|
|
87
|
+
};
|
|
85
88
|
phoneRulesFailed: {
|
|
86
89
|
type: "phoneRulesFailed";
|
|
87
90
|
params: unknown;
|
|
@@ -94,10 +97,6 @@ declare const ekycPrefillMachine: StateMachine<EkycPrefillContext, {
|
|
|
94
97
|
type: "canRender";
|
|
95
98
|
params: unknown;
|
|
96
99
|
};
|
|
97
|
-
isValid: {
|
|
98
|
-
type: "isValid";
|
|
99
|
-
params: unknown;
|
|
100
|
-
};
|
|
101
100
|
isBadRequest: {
|
|
102
101
|
type: "isBadRequest";
|
|
103
102
|
params: unknown;
|
|
@@ -110,7 +109,7 @@ declare const ekycPrefillMachine: StateMachine<EkycPrefillContext, {
|
|
|
110
109
|
type: "isLimitReached";
|
|
111
110
|
params: unknown;
|
|
112
111
|
};
|
|
113
|
-
}>, never, "error" | "idle" | "closed" | "finished" | "
|
|
112
|
+
}>, never, "error" | "idle" | "closed" | "finished" | "submitting" | "misconfigured" | "limitReached" | {
|
|
114
113
|
form: "inputting" | "validating";
|
|
115
114
|
}, string, EkycPrefillInput, NonReducibleUnknown, EventObject, MetaObject, {
|
|
116
115
|
readonly id: "ekycPrefill";
|
|
@@ -216,7 +215,6 @@ declare const ekycPrefillMachine: StateMachine<EkycPrefillContext, {
|
|
|
216
215
|
values: {};
|
|
217
216
|
errors: {};
|
|
218
217
|
invalidFormats: {};
|
|
219
|
-
anyOfError: false;
|
|
220
218
|
phoneRulesLoaded: false;
|
|
221
219
|
phoneRulesFailed: false;
|
|
222
220
|
submitError: undefined;
|
|
@@ -401,8 +399,8 @@ declare const ekycPrefillMachine: StateMachine<EkycPrefillContext, {
|
|
|
401
399
|
type: "CLOSE";
|
|
402
400
|
}, AnyEventObject>;
|
|
403
401
|
}) => {
|
|
404
|
-
|
|
405
|
-
values:
|
|
402
|
+
config: EkycPrefillConfig;
|
|
403
|
+
values: EkycPrefillValues;
|
|
406
404
|
};
|
|
407
405
|
readonly onDone: {
|
|
408
406
|
readonly target: "finished";
|
|
@@ -474,20 +472,22 @@ type CreateEkycPrefillActorOptions = {
|
|
|
474
472
|
type EkycPrefillIdleState = {
|
|
475
473
|
status: 'idle';
|
|
476
474
|
};
|
|
477
|
-
/**
|
|
475
|
+
/**
|
|
476
|
+
* The "at least one of" rule: its members and its message. Show the message
|
|
477
|
+
* as a hint under them. A member left empty gets it as its own error (in
|
|
478
|
+
* `errors`); show the hint only while no member does.
|
|
479
|
+
*/
|
|
478
480
|
type EkycPrefillAnyOfState = {
|
|
479
481
|
fields: string[];
|
|
480
482
|
/** Message key. Its `fields` param lists the members' labels. */
|
|
481
483
|
message: string;
|
|
482
|
-
/** Show the message as an error; otherwise as a hint. */
|
|
483
|
-
showError: boolean;
|
|
484
484
|
};
|
|
485
485
|
type EkycPrefillFormState = {
|
|
486
486
|
status: 'form';
|
|
487
487
|
country: string;
|
|
488
488
|
fields: EkycPrefillFieldDef[];
|
|
489
|
-
values:
|
|
490
|
-
errors:
|
|
489
|
+
values: EkycPrefillValues;
|
|
490
|
+
errors: EkycPrefillFieldErrors;
|
|
491
491
|
anyOf: EkycPrefillAnyOfState | undefined;
|
|
492
492
|
/** A rejection the form can't pin on one field. Message key. */
|
|
493
493
|
submitError: string | undefined;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
2
2
|
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
3
|
-
import {
|
|
3
|
+
import { l as validateAllValues } from "./formErrors-lSfh7Y8J.esm.js";
|
|
4
|
+
import { n as ekycPrefillFormCheck, t as ekycPrefillMachine } from "./ekycPrefillStateMachine-DdHdgSaW.esm.js";
|
|
4
5
|
//#region src/modules/ekyc-prefill/ekycPrefillActor.ts
|
|
5
6
|
/** Creates and starts an eKYC Pre-fill actor, idle until `LOAD`. */
|
|
6
7
|
function createEkycPrefillActor(options = {}) {
|
|
@@ -12,18 +13,16 @@ function mapState(snapshot) {
|
|
|
12
13
|
const typedSnapshot = snapshot;
|
|
13
14
|
const { context } = typedSnapshot;
|
|
14
15
|
if (typedSnapshot.matches("form") && context.prepared) {
|
|
15
|
-
const { prepared, values
|
|
16
|
-
const
|
|
16
|
+
const { prepared, values } = context;
|
|
17
|
+
const check = ekycPrefillFormCheck(context.config);
|
|
18
|
+
const canSubmit = !!check && Object.keys(validateAllValues(context, check)).length === 0;
|
|
17
19
|
return {
|
|
18
20
|
status: "form",
|
|
19
21
|
country: prepared.country,
|
|
20
22
|
fields: prepared.fields,
|
|
21
23
|
values,
|
|
22
24
|
errors: context.errors,
|
|
23
|
-
anyOf: prepared.anyOf && {
|
|
24
|
-
...prepared.anyOf,
|
|
25
|
-
showError: context.anyOfError
|
|
26
|
-
},
|
|
25
|
+
anyOf: prepared.anyOf && { ...prepared.anyOf },
|
|
27
26
|
submitError: context.submitError,
|
|
28
27
|
canSubmit
|
|
29
28
|
};
|