@incodetech/core 0.0.0-dev-20261201-5456180d → 0.0.0-dev-20261201-e37652f8
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-DH7QsBFD.esm.js → FaceDetectionProvider-DQYbHLxC.esm.js} +4 -4
- package/dist/{addressSearch-Cxpb5vKl.esm.js → addressSearch-gginelz3.esm.js} +28 -26
- package/dist/ae-signature.esm.js +1 -1
- package/dist/{apiError-BVYipHwI.esm.js → apiError-BRiJu_rv.esm.js} +1 -1
- package/dist/authentication.esm.js +2 -2
- package/dist/{authenticationManager-Kfm9HxbR.esm.js → authenticationManager-CrBlRkAd.esm.js} +3 -3
- package/dist/{authenticationStateMachine-DCVCf6tZ.esm.js → authenticationStateMachine-DLwEyCeH.esm.js} +3 -3
- package/dist/consent.d.ts +1 -1
- package/dist/{consentManager-vI6QHkHU.d.ts → consentManager-Bow34QP_.d.ts} +9 -9
- package/dist/{deepsightCaptureConfig-BfIw-FNj.esm.js → deepsightCaptureConfig-BVJANeRn.esm.js} +2 -2
- package/dist/{deepsightLoader-DCSozoXG.esm.js → deepsightLoader-C6nKqY9Q.esm.js} +4 -4
- package/dist/{desktopCameraElection-C7OkCslA.esm.js → desktopCameraElection-BAq-Kaiq.esm.js} +4 -4
- package/dist/document-capture.d.ts +1 -1
- package/dist/document-signature.esm.js +1 -1
- package/dist/{documentCaptureManager-sJWgqtUy.d.ts → documentCaptureManager-DOgJTJ4F.d.ts} +4 -4
- package/dist/{documentSignatureStateMachine-C1CsjsVW.esm.js → documentSignatureStateMachine-Btlg3q7j.esm.js} +1 -1
- package/dist/dynamic-forms.esm.js +2 -2
- package/dist/{dynamicFormsManager-DhyIhZ1C.esm.js → dynamicFormsManager-SbEUnFoF.esm.js} +1 -1
- package/dist/{dynamicFormsStateMachine-CDyk9sXA.esm.js → dynamicFormsStateMachine-Dxv36mAP.esm.js} +1 -1
- package/dist/ekyb.esm.js +2 -2
- package/dist/{ekybManager-4ESLrIAZ.esm.js → ekybManager-xhoOX9O9.esm.js} +1 -1
- package/dist/{ekybStateMachine-BVQ7DyO1.esm.js → ekybStateMachine-CCjUH0j3.esm.js} +183 -56
- package/dist/ekyc-prefill.d.ts +1 -1
- package/dist/ekyc-prefill.esm.js +2 -2
- package/dist/ekyc.d.ts +3 -0
- package/dist/ekyc.esm.js +3 -3
- package/dist/{ekycManager-k0d38zcZ.esm.js → ekycManager-DrGuK0kT.esm.js} +1 -1
- package/dist/{ekycPrefillManager-3nHwnh_4.esm.js → ekycPrefillManager-C9kdwCC6.esm.js} +2 -2
- package/dist/{ekycPrefillManager-BwmPXfhY.d.ts → ekycPrefillManager-Di6aMx68.d.ts} +4 -4
- package/dist/{ekycPrefillStateMachine-bz_k9jTV.esm.js → ekycPrefillStateMachine-DiQifkkd.esm.js} +8 -87
- package/dist/{ekycStateMachine-BudF0QZu.esm.js → ekycStateMachine-BmMdLe2G.esm.js} +298 -125
- package/dist/{ekycUtils-BnTyeA-_.esm.js → ekycUtils-DfBNTcvX.esm.js} +41 -5
- package/dist/electronic-signature.esm.js +1 -1
- package/dist/{electronicSignatureManager-BMalzzyT.esm.js → electronicSignatureManager-C6liTNbu.esm.js} +1 -1
- package/dist/extensibility.d.ts +6 -6
- package/dist/extensibility.esm.js +13 -13
- package/dist/{faceCaptureManagerFactory-cQl5HDIn.esm.js → faceCaptureManagerFactory-OL8BWaIW.esm.js} +2 -2
- package/dist/{faceCaptureSetup-DzWl2VJI.esm.js → faceCaptureSetup-DQVtmb1q.esm.js} +7 -7
- package/dist/{feature-management-BVxb2LDw.esm.js → feature-management-D_T-MG_i.esm.js} +1 -1
- package/dist/feature-management.esm.js +1 -1
- package/dist/flow.esm.js +3 -3
- package/dist/{flowCompletionService-DK-fZm71.esm.js → flowCompletionService-L0J63ui-.esm.js} +1 -1
- package/dist/{flowServices-DO_evfcT.esm.js → flowServices-3OXrEqDE.esm.js} +5 -5
- package/dist/formDefinitionsRollout-B-c4yO2z.esm.js +30 -0
- package/dist/{formErrors-lSfh7Y8J.esm.js → formErrors-kpskZLNT.esm.js} +39 -180
- package/dist/geolocation.d.ts +1 -1
- package/dist/geolocation.esm.js +2 -2
- package/dist/{geolocationManager-DcuPbxtE.esm.js → geolocationManager-CREfQNgO.esm.js} +1 -1
- package/dist/{geolocationManager-CENrvxpK.d.ts → geolocationManager-Del2ddmt.d.ts} +1 -1
- package/dist/{geolocationStateMachine-C2r0HXYO.esm.js → geolocationStateMachine-D9_bBr19.esm.js} +1 -1
- package/dist/id-ocr.d.ts +1 -1
- package/dist/id-selfie-flow.esm.js +6 -6
- package/dist/id.esm.js +3 -3
- package/dist/{idCaptureManager-B3e-0VFl.esm.js → idCaptureManager-B5ZN7scK.esm.js} +4 -4
- package/dist/{idCaptureServices-CoHVsKtz.esm.js → idCaptureServices-7zZ457LW.esm.js} +2 -2
- package/dist/{idCaptureStateMachine-Cbg0iyXR.esm.js → idCaptureStateMachine-FP4j-qeT.esm.js} +11 -11
- package/dist/{idOcrManager-DflRx-_u.d.ts → idOcrManager-C0C7lFGd.d.ts} +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/kyb-checks.esm.js +2 -2
- package/dist/{kybChecksManager-BDHpxk15.esm.js → kybChecksManager-tUsFKBCN.esm.js} +1 -1
- package/dist/{kybChecksStateMachine-UIwv8ipY.esm.js → kybChecksStateMachine-D1q4K7Xr.esm.js} +3 -3
- package/dist/mandatory-consent.d.ts +1 -1
- package/dist/{mandatoryConsentManager-ESpx168S.d.ts → mandatoryConsentManager-De9ZX6o4.d.ts} +5 -5
- package/dist/qe-signature.esm.js +1 -1
- package/dist/{recordingService-G0FrtpAb.esm.js → recordingService-OcyZO_w6.esm.js} +1 -1
- package/dist/{runChildModule-Dgi34yo9.esm.js → runChildModule-BuZFd3Df.esm.js} +1 -1
- package/dist/{sdkVersion-CrFzbh9y.esm.js → sdkVersion-BY8g-EEL.esm.js} +1 -1
- package/dist/selfie.esm.js +7 -7
- package/dist/{selfieErrorUtils-DR2Gve4F.esm.js → selfieErrorUtils-DIVWh0ih.esm.js} +1 -1
- package/dist/{selfieManager-B3Jd7q4s.esm.js → selfieManager-DQ5xB8y6.esm.js} +3 -3
- package/dist/{selfieStateMachine-DM40H79_.esm.js → selfieStateMachine-fyNh2r31.esm.js} +3 -3
- package/dist/{session-C7-dU7kj.esm.js → session-DKnCv6zu.esm.js} +4 -4
- package/dist/session.esm.js +4 -4
- package/dist/{sessionInitializer-NEJvsqjQ.esm.js → sessionInitializer-q5b8Qwr3.esm.js} +4 -4
- package/dist/{setup-DXnJ1L0L.esm.js → setup-JGwc0kgu.esm.js} +5 -5
- package/dist/trim-OmrUb6mG.esm.js +297 -0
- package/dist/trueSight-9VsfHXFt.esm.js +1 -0
- package/dist/{trueSightService-MNEZaA-i.esm.js → trueSightService-Dx8AqgKD.esm.js} +1 -1
- package/dist/uppercase-CwlIuiwR.esm.js +115 -0
- package/dist/video-selfie.esm.js +3 -3
- package/dist/{videoSelfieCameraWarmer-CPrXznbc.esm.js → videoSelfieCameraWarmer-AoMytGBD.esm.js} +3 -3
- package/dist/wasm.esm.js +1 -1
- package/dist/workflow.d.ts +4 -4
- package/dist/workflow.esm.js +19 -19
- package/package.json +1 -1
- package/dist/definitionSource-B9WTvQb9.esm.js +0 -30
- package/dist/resolveForm-DaaQSVWp.esm.js +0 -146
- package/dist/trueSight-CjUsM1U4.esm.js +0 -1
|
@@ -1,14 +1,17 @@
|
|
|
1
|
+
import { t as getLocalIsoDate } from "./IBrowserEnvironmentCapability-D7JG7ML3.esm.js";
|
|
1
2
|
import { t as api, u as endpoints } from "./api-CsXnB7m6.esm.js";
|
|
2
|
-
import { n as getFlow } from "./flowServices-
|
|
3
|
+
import { n as getFlow } from "./flowServices-3OXrEqDE.esm.js";
|
|
4
|
+
import { n as loadPhoneValidation } from "./phoneValidation-OggtfjRt.esm.js";
|
|
3
5
|
import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
4
6
|
import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
|
|
5
7
|
import { a as requiresAddressValidation, c as ADDRESS_FIELDS, d as TAX_ID_RULES_BY_COUNTRY, f as UBO_FIELD_LABELS, i as isFormFieldEntry, l as FIELD_NAME_MAPPING, n as hasAtLeastOneAddressField, o as sortModulesByOrder, p as collectsUbos, r as isFieldOptional, s as toEkybConfig, u as FIELD_ORDER } from "./ekybUtils-CX-dR5p9.esm.js";
|
|
6
8
|
import { t as usStateOptions } from "./usStates-CwOQ2kAx.esm.js";
|
|
7
9
|
import { t as validateCNPJ } from "./cnpj-CVq3vL39.esm.js";
|
|
8
10
|
import { n as requiresCnpjValidation } from "./cnpj-D5cxwIe-.esm.js";
|
|
9
|
-
import { a as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
11
|
+
import { a as formatPostalCode, c as getPostalCodeMaxLength, d as fillFromSuggestion, f as getStreetLevelErrorForSuggestion, i as PAYLOAD_TRANSFORMS, l as validatePostalCode, o as getPostalCodeErrorKey, p as keepSuggestionInOptions, r as standardDeps, s as getPostalCodeErrorParams, t as debounceSearchActor, u as STREET_LEVEL_REQUIRED_ERROR } from "./addressSearch-gginelz3.esm.js";
|
|
12
|
+
import { a as buildPayload, i as checkSupport, l as DYNAMIC_REQUIRED_KEY, r as resolveForm } from "./trim-OmrUb6mG.esm.js";
|
|
13
|
+
import { o as createBundledDefinitionSource, s as matchesCharTemplate } from "./uppercase-CwlIuiwR.esm.js";
|
|
14
|
+
import { t as isFormDefinitionsEnabled } from "./formDefinitionsRollout-B-c4yO2z.esm.js";
|
|
12
15
|
//#region ../form-definitions/generated/ekyb.ts
|
|
13
16
|
const EKYB_DEFINITIONS = {
|
|
14
17
|
"ekyb/AR": {
|
|
@@ -90,13 +93,16 @@ const EKYB_DEFINITIONS = {
|
|
|
90
93
|
}
|
|
91
94
|
],
|
|
92
95
|
submit: {
|
|
93
|
-
static: {
|
|
96
|
+
static: {
|
|
97
|
+
plugins: ["ekyb"],
|
|
98
|
+
uboNames: []
|
|
99
|
+
},
|
|
94
100
|
context: { country: "country" }
|
|
95
101
|
}
|
|
96
102
|
},
|
|
97
103
|
"ekyb/BR": {
|
|
98
104
|
schemaVersion: 1,
|
|
99
|
-
vocabulary: "1.
|
|
105
|
+
vocabulary: "1.4",
|
|
100
106
|
id: "ekyb/BR",
|
|
101
107
|
module: "ekyb",
|
|
102
108
|
country: "BR",
|
|
@@ -193,7 +199,8 @@ const EKYB_DEFINITIONS = {
|
|
|
193
199
|
}],
|
|
194
200
|
payload: {
|
|
195
201
|
key: "uboNames",
|
|
196
|
-
join: ["name", "surname"]
|
|
202
|
+
join: ["name", "surname"],
|
|
203
|
+
always: true
|
|
197
204
|
}
|
|
198
205
|
}],
|
|
199
206
|
submit: {
|
|
@@ -203,7 +210,7 @@ const EKYB_DEFINITIONS = {
|
|
|
203
210
|
},
|
|
204
211
|
"ekyb/CM": {
|
|
205
212
|
schemaVersion: 1,
|
|
206
|
-
vocabulary: "1.
|
|
213
|
+
vocabulary: "1.4",
|
|
207
214
|
id: "ekyb/CM",
|
|
208
215
|
module: "ekyb",
|
|
209
216
|
country: "CM",
|
|
@@ -296,7 +303,8 @@ const EKYB_DEFINITIONS = {
|
|
|
296
303
|
}],
|
|
297
304
|
payload: {
|
|
298
305
|
key: "uboNames",
|
|
299
|
-
join: ["name", "surname"]
|
|
306
|
+
join: ["name", "surname"],
|
|
307
|
+
always: true
|
|
300
308
|
}
|
|
301
309
|
}],
|
|
302
310
|
submit: {
|
|
@@ -306,7 +314,7 @@ const EKYB_DEFINITIONS = {
|
|
|
306
314
|
},
|
|
307
315
|
"ekyb/CN": {
|
|
308
316
|
schemaVersion: 1,
|
|
309
|
-
vocabulary: "1.
|
|
317
|
+
vocabulary: "1.4",
|
|
310
318
|
id: "ekyb/CN",
|
|
311
319
|
module: "ekyb",
|
|
312
320
|
country: "CN",
|
|
@@ -398,7 +406,8 @@ const EKYB_DEFINITIONS = {
|
|
|
398
406
|
}],
|
|
399
407
|
payload: {
|
|
400
408
|
key: "uboNames",
|
|
401
|
-
join: ["name", "surname"]
|
|
409
|
+
join: ["name", "surname"],
|
|
410
|
+
always: true
|
|
402
411
|
}
|
|
403
412
|
}],
|
|
404
413
|
submit: {
|
|
@@ -408,7 +417,7 @@ const EKYB_DEFINITIONS = {
|
|
|
408
417
|
},
|
|
409
418
|
"ekyb/CO": {
|
|
410
419
|
schemaVersion: 1,
|
|
411
|
-
vocabulary: "1.
|
|
420
|
+
vocabulary: "1.4",
|
|
412
421
|
id: "ekyb/CO",
|
|
413
422
|
module: "ekyb",
|
|
414
423
|
country: "CO",
|
|
@@ -510,7 +519,8 @@ const EKYB_DEFINITIONS = {
|
|
|
510
519
|
}],
|
|
511
520
|
payload: {
|
|
512
521
|
key: "uboNames",
|
|
513
|
-
join: ["name", "surname"]
|
|
522
|
+
join: ["name", "surname"],
|
|
523
|
+
always: true
|
|
514
524
|
}
|
|
515
525
|
}],
|
|
516
526
|
submit: {
|
|
@@ -520,7 +530,7 @@ const EKYB_DEFINITIONS = {
|
|
|
520
530
|
},
|
|
521
531
|
"ekyb/DE": {
|
|
522
532
|
schemaVersion: 1,
|
|
523
|
-
vocabulary: "1.
|
|
533
|
+
vocabulary: "1.4",
|
|
524
534
|
id: "ekyb/DE",
|
|
525
535
|
module: "ekyb",
|
|
526
536
|
country: "DE",
|
|
@@ -612,7 +622,8 @@ const EKYB_DEFINITIONS = {
|
|
|
612
622
|
}],
|
|
613
623
|
payload: {
|
|
614
624
|
key: "uboNames",
|
|
615
|
-
join: ["name", "surname"]
|
|
625
|
+
join: ["name", "surname"],
|
|
626
|
+
always: true
|
|
616
627
|
}
|
|
617
628
|
}],
|
|
618
629
|
submit: {
|
|
@@ -622,7 +633,7 @@ const EKYB_DEFINITIONS = {
|
|
|
622
633
|
},
|
|
623
634
|
"ekyb/ES": {
|
|
624
635
|
schemaVersion: 1,
|
|
625
|
-
vocabulary: "1.
|
|
636
|
+
vocabulary: "1.4",
|
|
626
637
|
id: "ekyb/ES",
|
|
627
638
|
module: "ekyb",
|
|
628
639
|
country: "ES",
|
|
@@ -714,7 +725,8 @@ const EKYB_DEFINITIONS = {
|
|
|
714
725
|
}],
|
|
715
726
|
payload: {
|
|
716
727
|
key: "uboNames",
|
|
717
|
-
join: ["name", "surname"]
|
|
728
|
+
join: ["name", "surname"],
|
|
729
|
+
always: true
|
|
718
730
|
}
|
|
719
731
|
}],
|
|
720
732
|
submit: {
|
|
@@ -724,7 +736,7 @@ const EKYB_DEFINITIONS = {
|
|
|
724
736
|
},
|
|
725
737
|
"ekyb/FR": {
|
|
726
738
|
schemaVersion: 1,
|
|
727
|
-
vocabulary: "1.
|
|
739
|
+
vocabulary: "1.4",
|
|
728
740
|
id: "ekyb/FR",
|
|
729
741
|
module: "ekyb",
|
|
730
742
|
country: "FR",
|
|
@@ -816,7 +828,8 @@ const EKYB_DEFINITIONS = {
|
|
|
816
828
|
}],
|
|
817
829
|
payload: {
|
|
818
830
|
key: "uboNames",
|
|
819
|
-
join: ["name", "surname"]
|
|
831
|
+
join: ["name", "surname"],
|
|
832
|
+
always: true
|
|
820
833
|
}
|
|
821
834
|
}],
|
|
822
835
|
submit: {
|
|
@@ -826,7 +839,7 @@ const EKYB_DEFINITIONS = {
|
|
|
826
839
|
},
|
|
827
840
|
"ekyb/GB": {
|
|
828
841
|
schemaVersion: 1,
|
|
829
|
-
vocabulary: "1.
|
|
842
|
+
vocabulary: "1.4",
|
|
830
843
|
id: "ekyb/GB",
|
|
831
844
|
module: "ekyb",
|
|
832
845
|
country: "GB",
|
|
@@ -910,7 +923,8 @@ const EKYB_DEFINITIONS = {
|
|
|
910
923
|
}],
|
|
911
924
|
payload: {
|
|
912
925
|
key: "uboNames",
|
|
913
|
-
join: ["name", "surname"]
|
|
926
|
+
join: ["name", "surname"],
|
|
927
|
+
always: true
|
|
914
928
|
}
|
|
915
929
|
}],
|
|
916
930
|
submit: {
|
|
@@ -920,7 +934,7 @@ const EKYB_DEFINITIONS = {
|
|
|
920
934
|
},
|
|
921
935
|
"ekyb/IL": {
|
|
922
936
|
schemaVersion: 1,
|
|
923
|
-
vocabulary: "1.
|
|
937
|
+
vocabulary: "1.4",
|
|
924
938
|
id: "ekyb/IL",
|
|
925
939
|
module: "ekyb",
|
|
926
940
|
country: "IL",
|
|
@@ -1012,7 +1026,8 @@ const EKYB_DEFINITIONS = {
|
|
|
1012
1026
|
}],
|
|
1013
1027
|
payload: {
|
|
1014
1028
|
key: "uboNames",
|
|
1015
|
-
join: ["name", "surname"]
|
|
1029
|
+
join: ["name", "surname"],
|
|
1030
|
+
always: true
|
|
1016
1031
|
}
|
|
1017
1032
|
}],
|
|
1018
1033
|
submit: {
|
|
@@ -1022,7 +1037,7 @@ const EKYB_DEFINITIONS = {
|
|
|
1022
1037
|
},
|
|
1023
1038
|
"ekyb/IT": {
|
|
1024
1039
|
schemaVersion: 1,
|
|
1025
|
-
vocabulary: "1.
|
|
1040
|
+
vocabulary: "1.4",
|
|
1026
1041
|
id: "ekyb/IT",
|
|
1027
1042
|
module: "ekyb",
|
|
1028
1043
|
country: "IT",
|
|
@@ -1114,7 +1129,8 @@ const EKYB_DEFINITIONS = {
|
|
|
1114
1129
|
}],
|
|
1115
1130
|
payload: {
|
|
1116
1131
|
key: "uboNames",
|
|
1117
|
-
join: ["name", "surname"]
|
|
1132
|
+
join: ["name", "surname"],
|
|
1133
|
+
always: true
|
|
1118
1134
|
}
|
|
1119
1135
|
}],
|
|
1120
1136
|
submit: {
|
|
@@ -1124,7 +1140,7 @@ const EKYB_DEFINITIONS = {
|
|
|
1124
1140
|
},
|
|
1125
1141
|
"ekyb/KE": {
|
|
1126
1142
|
schemaVersion: 1,
|
|
1127
|
-
vocabulary: "1.
|
|
1143
|
+
vocabulary: "1.4",
|
|
1128
1144
|
id: "ekyb/KE",
|
|
1129
1145
|
module: "ekyb",
|
|
1130
1146
|
country: "KE",
|
|
@@ -1217,7 +1233,8 @@ const EKYB_DEFINITIONS = {
|
|
|
1217
1233
|
}],
|
|
1218
1234
|
payload: {
|
|
1219
1235
|
key: "uboNames",
|
|
1220
|
-
join: ["name", "surname"]
|
|
1236
|
+
join: ["name", "surname"],
|
|
1237
|
+
always: true
|
|
1221
1238
|
}
|
|
1222
1239
|
}],
|
|
1223
1240
|
submit: {
|
|
@@ -1261,13 +1278,16 @@ const EKYB_DEFINITIONS = {
|
|
|
1261
1278
|
}
|
|
1262
1279
|
],
|
|
1263
1280
|
submit: {
|
|
1264
|
-
static: {
|
|
1281
|
+
static: {
|
|
1282
|
+
plugins: ["ekyb"],
|
|
1283
|
+
uboNames: []
|
|
1284
|
+
},
|
|
1265
1285
|
context: { country: "country" }
|
|
1266
1286
|
}
|
|
1267
1287
|
},
|
|
1268
1288
|
"ekyb/NG": {
|
|
1269
1289
|
schemaVersion: 1,
|
|
1270
|
-
vocabulary: "1.
|
|
1290
|
+
vocabulary: "1.4",
|
|
1271
1291
|
id: "ekyb/NG",
|
|
1272
1292
|
module: "ekyb",
|
|
1273
1293
|
country: "NG",
|
|
@@ -1360,7 +1380,8 @@ const EKYB_DEFINITIONS = {
|
|
|
1360
1380
|
}],
|
|
1361
1381
|
payload: {
|
|
1362
1382
|
key: "uboNames",
|
|
1363
|
-
join: ["name", "surname"]
|
|
1383
|
+
join: ["name", "surname"],
|
|
1384
|
+
always: true
|
|
1364
1385
|
}
|
|
1365
1386
|
}],
|
|
1366
1387
|
submit: {
|
|
@@ -1446,13 +1467,16 @@ const EKYB_DEFINITIONS = {
|
|
|
1446
1467
|
}
|
|
1447
1468
|
],
|
|
1448
1469
|
submit: {
|
|
1449
|
-
static: {
|
|
1470
|
+
static: {
|
|
1471
|
+
plugins: ["ekyb"],
|
|
1472
|
+
uboNames: []
|
|
1473
|
+
},
|
|
1450
1474
|
context: { country: "country" }
|
|
1451
1475
|
}
|
|
1452
1476
|
},
|
|
1453
1477
|
"ekyb/US": {
|
|
1454
1478
|
schemaVersion: 1,
|
|
1455
|
-
vocabulary: "1.
|
|
1479
|
+
vocabulary: "1.4",
|
|
1456
1480
|
id: "ekyb/US",
|
|
1457
1481
|
module: "ekyb",
|
|
1458
1482
|
country: "US",
|
|
@@ -1547,7 +1571,8 @@ const EKYB_DEFINITIONS = {
|
|
|
1547
1571
|
}],
|
|
1548
1572
|
payload: {
|
|
1549
1573
|
key: "uboNames",
|
|
1550
|
-
join: ["name", "surname"]
|
|
1574
|
+
join: ["name", "surname"],
|
|
1575
|
+
always: true
|
|
1551
1576
|
}
|
|
1552
1577
|
}],
|
|
1553
1578
|
submit: {
|
|
@@ -1729,10 +1754,12 @@ function validateEkybUboField(ubos, fieldKey) {
|
|
|
1729
1754
|
*
|
|
1730
1755
|
* Selects the bundled definition for a country, resolves it against the
|
|
1731
1756
|
* verification fields from module configuration, and projects the result to
|
|
1732
|
-
* today's public `EkybFieldDef[]` shape.
|
|
1733
|
-
* definition
|
|
1734
|
-
*
|
|
1735
|
-
*
|
|
1757
|
+
* today's public `EkybFieldDef[]` shape. The request body comes from the
|
|
1758
|
+
* definition itself (`buildEkybSubmitBody`), so any kernel request transform,
|
|
1759
|
+
* `payload.omit`, key renames, `submit.copies` and any owners request key are
|
|
1760
|
+
* fine. A country without a projectable definition, or a custom field list
|
|
1761
|
+
* that can't be expressed as groups, keeps the current builder, and so does
|
|
1762
|
+
* every country while the form definitions rollout is off.
|
|
1736
1763
|
*/
|
|
1737
1764
|
/** eKYB group id → the verification-field entries that turn it on. */
|
|
1738
1765
|
const EKYB_GROUP_ENTRIES = {
|
|
@@ -1763,18 +1790,26 @@ const RULES = {
|
|
|
1763
1790
|
...ignoreCase !== void 0 && { ignoreCase }
|
|
1764
1791
|
} : void 0
|
|
1765
1792
|
};
|
|
1793
|
+
/**
|
|
1794
|
+
* What eKYB can use today. The vocabulary is the current one (a test keeps it
|
|
1795
|
+
* equal to `VOCABULARY.version`, which eKYB doesn't bundle): each id is still
|
|
1796
|
+
* checked on its own. The request body is the kernel's, so every request
|
|
1797
|
+
* transform it implements is listed, and both payload flags:
|
|
1798
|
+
* `omitWhenEmpty` (the kernel leaves every empty value out) and `always` on
|
|
1799
|
+
* a collection (K3 keeps `uboNames: []` with it).
|
|
1800
|
+
*/
|
|
1766
1801
|
const EKYB_SUPPORTED_IDS = {
|
|
1767
1802
|
schemaVersions: [1],
|
|
1768
|
-
vocabulary: "1.
|
|
1803
|
+
vocabulary: "1.4",
|
|
1769
1804
|
kinds: /* @__PURE__ */ new Set(["text", "choice"]),
|
|
1770
1805
|
groups: new Set(Object.keys(EKYB_GROUP_ENTRIES)),
|
|
1771
1806
|
rules: new Set(Object.keys(RULES)),
|
|
1772
|
-
transforms:
|
|
1807
|
+
transforms: new Set(PAYLOAD_TRANSFORMS.transforms.keys()),
|
|
1773
1808
|
groupRules: /* @__PURE__ */ new Set(),
|
|
1774
1809
|
optionLists: new Set(Object.keys(OPTION_LISTS)),
|
|
1775
1810
|
conditions: /* @__PURE__ */ new Set(),
|
|
1776
1811
|
prefillSources: /* @__PURE__ */ new Set(),
|
|
1777
|
-
flags: /* @__PURE__ */ new Set()
|
|
1812
|
+
flags: /* @__PURE__ */ new Set(["payload.omitWhenEmpty", "payload.always"])
|
|
1778
1813
|
};
|
|
1779
1814
|
/** Today's UBO actions use a fixed limit and a single collection. */
|
|
1780
1815
|
const UBO_COLLECTION = "ubos";
|
|
@@ -1782,12 +1817,12 @@ const UBO_COLLECTION = "ubos";
|
|
|
1782
1817
|
* Whether today's code handles a field the way its definition says. Today's
|
|
1783
1818
|
* validators show their own message, so a rule can't carry one. The field
|
|
1784
1819
|
* shape has no hint, suggestions, sections or Text params, and the UI shows a
|
|
1785
|
-
* placeholder only on dropdowns.
|
|
1786
|
-
*
|
|
1787
|
-
*
|
|
1820
|
+
* placeholder only on dropdowns. Input formatting stays in today's code
|
|
1821
|
+
* until P2. Its request key, transforms and `omit` are the kernel's to apply,
|
|
1822
|
+
* so any are fine.
|
|
1788
1823
|
*/
|
|
1789
1824
|
function isProjectableField(field) {
|
|
1790
|
-
return !field.hint && !field.suggestionsRef && !field.section && !field.label.params && !field.displayLabel?.params && (field.options ?? []).every((option) => !option.label.params) && (!field.placeholder || field.kind === "choice" && !field.placeholder.params) && (field.rules ?? []).every((rule) => !rule.message) && !field.input?.format?.length
|
|
1825
|
+
return !field.hint && !field.suggestionsRef && !field.section && !field.label.params && !field.displayLabel?.params && (field.options ?? []).every((option) => !option.label.params) && (!field.placeholder || field.kind === "choice" && !field.placeholder.params) && (field.rules ?? []).every((rule) => !rule.message) && !field.input?.format?.length;
|
|
1791
1826
|
}
|
|
1792
1827
|
/** The only properties today's owner fields honor. */
|
|
1793
1828
|
const UBO_FIELD_KEYS = /* @__PURE__ */ new Set([
|
|
@@ -1799,14 +1834,17 @@ const UBO_FIELD_KEYS = /* @__PURE__ */ new Set([
|
|
|
1799
1834
|
]);
|
|
1800
1835
|
/**
|
|
1801
1836
|
* Today's owner code is fixed: owner 1 is required, up to `UBO_INPUT_LIMIT`
|
|
1802
|
-
* owners, each with a required name and surname under `UBO_FIELD_LABELS
|
|
1803
|
-
*
|
|
1804
|
-
*
|
|
1837
|
+
* owners, each with a required name and surname under `UBO_FIELD_LABELS`. A
|
|
1838
|
+
* collection is projectable only when it declares exactly that. How the
|
|
1839
|
+
* owners are sent (`payload`) is the kernel's to apply, so any request key
|
|
1840
|
+
* and join are fine, but the collection must say `payload.always`. Today's
|
|
1841
|
+
* body sends `uboNames` even when no owner is named, as `[]` (K3: the empty
|
|
1842
|
+
* list is sent until backend Q1 says otherwise). Without the flag, the
|
|
1843
|
+
* kernel's body would leave the key out.
|
|
1805
1844
|
*/
|
|
1806
1845
|
function isProjectableUboCollection(collection) {
|
|
1807
|
-
const { key, join } = collection.payload;
|
|
1808
1846
|
const names = collection.fields.map((field) => field.name);
|
|
1809
|
-
return collection.id === UBO_COLLECTION && collection.min === 1 && collection.max === 8 &&
|
|
1847
|
+
return collection.id === UBO_COLLECTION && collection.min === 1 && collection.max === 8 && collection.payload.always === true && names.length === 2 && names[0] === "name" && names[1] === "surname" && collection.fields.every((field) => Object.keys(field).every((prop) => UBO_FIELD_KEYS.has(prop)) && field.kind === "text" && field.required === true && Object.keys(field.label).length === 1 && field.label.key === UBO_FIELD_LABELS[field.name]);
|
|
1810
1848
|
}
|
|
1811
1849
|
/**
|
|
1812
1850
|
* Caches the check per definition object. Bundled definitions are singletons
|
|
@@ -1983,12 +2021,13 @@ function processEkybFieldValue(name, value, country) {
|
|
|
1983
2021
|
*/
|
|
1984
2022
|
const isLeftOut = (value) => value === void 0 || value === null || typeof value === "string" && value.trim() === "";
|
|
1985
2023
|
/**
|
|
1986
|
-
*
|
|
1987
|
-
*
|
|
1988
|
-
*
|
|
1989
|
-
*
|
|
2024
|
+
* The request body with no form definition (the rollout off, or a custom
|
|
2025
|
+
* field list that isn't whole groups), and the body the side-by-side runner
|
|
2026
|
+
* checks the kernel against. A catalog form's body comes from the kernel
|
|
2027
|
+
* (`buildEkybSubmitBody` in `ekybSubmit.ts`). It always sends `uboNames`,
|
|
2028
|
+
* which the catalog keeps as `payload.always` (K3).
|
|
1990
2029
|
*/
|
|
1991
|
-
function
|
|
2030
|
+
function legacyBuildEkybSubmitPayload(ctx) {
|
|
1992
2031
|
const uboNames = ctx.ubos.filter((u) => u.name.trim() || u.surname.trim()).map((u) => `${u.name.trim()} ${u.surname.trim()}`.trim());
|
|
1993
2032
|
const payload = {
|
|
1994
2033
|
country: ctx.country,
|
|
@@ -2002,6 +2041,89 @@ function buildEkybSubmitPayload(ctx) {
|
|
|
2002
2041
|
return payload;
|
|
2003
2042
|
}
|
|
2004
2043
|
//#endregion
|
|
2044
|
+
//#region src/modules/ekyb/ekybSubmit.ts
|
|
2045
|
+
/**
|
|
2046
|
+
* eKYB's submit step, shaped like eKYC's, KYB Checks' and Pre-fill's: the
|
|
2047
|
+
* `submitting` state invokes the `submitEkyb` actor with the form, its values
|
|
2048
|
+
* and the owners (`toEkybSubmitInput`), and the actor builds the request body
|
|
2049
|
+
* (`buildEkybSubmitBody`) and sends it. Another destination later is another
|
|
2050
|
+
* actor through `ekybMachine.provide()`, with no machine change.
|
|
2051
|
+
*
|
|
2052
|
+
* Nothing new is kept in machine context: the form is selected and resolved
|
|
2053
|
+
* again at submit, from the same context inputs that built `context.fields`
|
|
2054
|
+
* (module configuration and the country), so a country change can't leave a
|
|
2055
|
+
* stale form behind. Internal: not exported from `ekyb/index.ts`.
|
|
2056
|
+
*/
|
|
2057
|
+
/**
|
|
2058
|
+
* The form `context.fields` was built from, selected and resolved again as
|
|
2059
|
+
* `buildEkybForm` does. `undefined` with the rollout off or for a custom
|
|
2060
|
+
* field list that isn't whole groups, which keeps the legacy body.
|
|
2061
|
+
*/
|
|
2062
|
+
function resolveEkybSubmitForm(context) {
|
|
2063
|
+
return selectEkybForm(context.config, getDefaultVerificationFields(context.config), context.country, context._formDefinitions);
|
|
2064
|
+
}
|
|
2065
|
+
/** The request transforms that read the phone rules (`deps.phone`). */
|
|
2066
|
+
const PHONE_TRANSFORMS = /* @__PURE__ */ new Set([
|
|
2067
|
+
"e164",
|
|
2068
|
+
"e164NoPlus",
|
|
2069
|
+
"nationalNumber"
|
|
2070
|
+
]);
|
|
2071
|
+
/**
|
|
2072
|
+
* Whether a form's body needs the phone rules: a shown field has a phone
|
|
2073
|
+
* transform. eKYB loads them for nothing else, so `prepareEkybSubmitBody`
|
|
2074
|
+
* loads them first, as KYB Checks does.
|
|
2075
|
+
*/
|
|
2076
|
+
function needsPhoneRules(form) {
|
|
2077
|
+
return (form?.fields ?? []).some(({ field }) => (field.payload?.transforms ?? []).some((ref) => PHONE_TRANSFORMS.has(ref.id)));
|
|
2078
|
+
}
|
|
2079
|
+
/** The `submitEkyb` actor's input, from the machine context at submit. */
|
|
2080
|
+
function toEkybSubmitInput(context) {
|
|
2081
|
+
const form = resolveEkybSubmitForm(context);
|
|
2082
|
+
return {
|
|
2083
|
+
form,
|
|
2084
|
+
values: context.values,
|
|
2085
|
+
entries: { ubos: context.ubos.map(({ name, surname }) => ({
|
|
2086
|
+
name,
|
|
2087
|
+
surname
|
|
2088
|
+
})) },
|
|
2089
|
+
env: { country: form?.definition.country ?? context.country },
|
|
2090
|
+
legacy: {
|
|
2091
|
+
country: context.country,
|
|
2092
|
+
fields: context.fields,
|
|
2093
|
+
values: context.values,
|
|
2094
|
+
ubos: context.ubos
|
|
2095
|
+
}
|
|
2096
|
+
};
|
|
2097
|
+
}
|
|
2098
|
+
/**
|
|
2099
|
+
* The `POST /omni/externalVerification/ekyb` body. A catalog form's is the
|
|
2100
|
+
* kernel's `buildPayload`: every shown field with a value, after its request
|
|
2101
|
+
* transforms, the owners as `uboNames`, then the definition's `submit` keys.
|
|
2102
|
+
* Without a form, the legacy body. A served form the compiler never saw can
|
|
2103
|
+
* still repeat a request key; the first writer wins, with a warning.
|
|
2104
|
+
*/
|
|
2105
|
+
function buildEkybSubmitBody(input) {
|
|
2106
|
+
if (!input.form) return legacyBuildEkybSubmitPayload(input.legacy);
|
|
2107
|
+
const { body, problems } = buildPayload(input.form, input.values, PAYLOAD_TRANSFORMS, {
|
|
2108
|
+
...input.env,
|
|
2109
|
+
today: getLocalIsoDate(),
|
|
2110
|
+
deps: standardDeps()
|
|
2111
|
+
}, input.entries);
|
|
2112
|
+
if (problems.length > 0) console.warn("[ekyb] Request body problems", problems);
|
|
2113
|
+
return { ...body };
|
|
2114
|
+
}
|
|
2115
|
+
/**
|
|
2116
|
+
* The body as the submit actor sends it: the phone rules are loaded first
|
|
2117
|
+
* when the form needs them (`needsPhoneRules`), so a phone transform sends
|
|
2118
|
+
* the formatted value. If they fail to load, the value is sent as typed, as
|
|
2119
|
+
* in KYB Checks. Parity, the Playground and the tests build bodies with it
|
|
2120
|
+
* too, so they show what eKYB sends.
|
|
2121
|
+
*/
|
|
2122
|
+
async function prepareEkybSubmitBody(input) {
|
|
2123
|
+
if (needsPhoneRules(input.form)) await loadPhoneValidation();
|
|
2124
|
+
return buildEkybSubmitBody(input);
|
|
2125
|
+
}
|
|
2126
|
+
//#endregion
|
|
2005
2127
|
//#region src/modules/ekyb/ekybGuards.ts
|
|
2006
2128
|
const hasFlowIdGuard = ({ context }) => !!context.config.flowId;
|
|
2007
2129
|
const hasNoValidationErrorsGuard = ({ context }) => Object.keys(context.validationErrors ?? {}).length === 0;
|
|
@@ -2029,7 +2151,12 @@ async function submitEkyb(data, signal) {
|
|
|
2029
2151
|
//#endregion
|
|
2030
2152
|
//#region src/modules/ekyb/ekybActors.ts
|
|
2031
2153
|
const fetchEkybModuleConfigActor = fromPromise(async ({ signal }) => fetchEkybModuleConfig(signal));
|
|
2032
|
-
|
|
2154
|
+
/**
|
|
2155
|
+
* Builds the request body from the form and its values, then sends it. A form
|
|
2156
|
+
* with a phone transform loads the phone rules first (they load lazily, on
|
|
2157
|
+
* their own chunk): `prepareEkybSubmitBody`.
|
|
2158
|
+
*/
|
|
2159
|
+
const submitEkybActor = fromPromise(async ({ input, signal }) => submitEkyb(await prepareEkybSubmitBody(input), signal));
|
|
2033
2160
|
//#endregion
|
|
2034
2161
|
//#region src/modules/ekyb/ekybStateMachine.ts
|
|
2035
2162
|
const ADDRESS_AUTOCOMPLETE_KEYS = [
|
|
@@ -2341,7 +2468,7 @@ const ekybMachine = setup({
|
|
|
2341
2468
|
submitting: { invoke: {
|
|
2342
2469
|
id: "submitEkyb",
|
|
2343
2470
|
src: "submitEkyb",
|
|
2344
|
-
input: ({ context }) =>
|
|
2471
|
+
input: ({ context }) => toEkybSubmitInput(context),
|
|
2345
2472
|
onDone: { target: "success" },
|
|
2346
2473
|
onError: {
|
|
2347
2474
|
target: "error",
|
package/dist/ekyc-prefill.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as EkycPrefillFieldDef, f as EkycPrefillValues, i as EkycPrefillErrorKind, l as EkycPrefillModuleConfig, n as EkycPrefillConfigField, o as EkycPrefillFieldError, s as EkycPrefillFieldErrors, t as EkycPrefillConfig, u as EkycPrefillServedField } from "./types-g3NuVCT9.js";
|
|
2
|
-
import { a as EkycPrefillFormState, c as EkycPrefillManager, d as EkycPrefillSubmittingState, f as createEkycPrefillManager, h as ekycPrefillMachine, i as EkycPrefillFinishedState, l as EkycPrefillMisconfiguredState, n as EkycPrefillClosedState, o as EkycPrefillIdleState, r as EkycPrefillErrorState, s as EkycPrefillLimitReachedState, t as EkycPrefillAnyOfState, u as EkycPrefillState } from "./ekycPrefillManager-
|
|
2
|
+
import { a as EkycPrefillFormState, c as EkycPrefillManager, d as EkycPrefillSubmittingState, f as createEkycPrefillManager, h as ekycPrefillMachine, i as EkycPrefillFinishedState, l as EkycPrefillMisconfiguredState, n as EkycPrefillClosedState, o as EkycPrefillIdleState, r as EkycPrefillErrorState, s as EkycPrefillLimitReachedState, t as EkycPrefillAnyOfState, u as EkycPrefillState } from "./ekycPrefillManager-Di6aMx68.js";
|
|
3
3
|
//#region src/modules/ekyc-prefill/ekycPrefillConfig.d.ts
|
|
4
4
|
/**
|
|
5
5
|
* Normalizes the served `EKYC_PREFILL` configuration. Idempotent, so a
|
package/dist/ekyc-prefill.esm.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { r as toEkycPrefillConfig, t as ekycPrefillMachine } from "./ekycPrefillStateMachine-
|
|
2
|
-
import { t as createEkycPrefillManager } from "./ekycPrefillManager-
|
|
1
|
+
import { r as toEkycPrefillConfig, t as ekycPrefillMachine } from "./ekycPrefillStateMachine-DiQifkkd.esm.js";
|
|
2
|
+
import { t as createEkycPrefillManager } from "./ekycPrefillManager-C9kdwCC6.esm.js";
|
|
3
3
|
export { createEkycPrefillManager, ekycPrefillMachine, toEkycPrefillConfig };
|
package/dist/ekyc.d.ts
CHANGED
|
@@ -16,6 +16,9 @@ import { a as EkycStep, n as EkycState, r as createEkycManager, s as ekycMachine
|
|
|
16
16
|
* empty form.
|
|
17
17
|
*
|
|
18
18
|
* Idempotent: `toEkycConfig(toEkycConfig(x))` equals `toEkycConfig(x)`.
|
|
19
|
+
*
|
|
20
|
+
* It reads the form definitions switch when it runs, so a test or the
|
|
21
|
+
* playground sets the switch before it converts a config.
|
|
19
22
|
*/
|
|
20
23
|
declare function toEkycConfig(config: Partial<EkycModuleConfig> & Partial<EkycConfig>): EkycConfig;
|
|
21
24
|
//#endregion
|
package/dist/ekyc.esm.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as toEkycConfig } from "./ekycUtils-
|
|
2
|
-
import { t as ekycMachine } from "./ekycStateMachine-
|
|
3
|
-
import { t as createEkycManager } from "./ekycManager-
|
|
1
|
+
import { d as toEkycConfig } from "./ekycUtils-DfBNTcvX.esm.js";
|
|
2
|
+
import { t as ekycMachine } from "./ekycStateMachine-BmMdLe2G.esm.js";
|
|
3
|
+
import { t as createEkycManager } from "./ekycManager-DrGuK0kT.esm.js";
|
|
4
4
|
export { createEkycManager, ekycMachine, toEkycConfig };
|
|
@@ -3,7 +3,7 @@ import { t as createManagerInstrumentation } from "./events-Dlkhhx5O.esm.js";
|
|
|
3
3
|
import { t as topLevelStateName } from "./topLevelStateName-B5i2avbh.esm.js";
|
|
4
4
|
import { t as createManager } from "./Manager-BvXAwDv9.esm.js";
|
|
5
5
|
import { s as createActor } from "./xstate.esm-CIqUf_i6.esm.js";
|
|
6
|
-
import { i as isStepValid, n as buildEkycSteps, r as clampStepIndex, t as ekycMachine } from "./ekycStateMachine-
|
|
6
|
+
import { i as isStepValid, n as buildEkycSteps, r as clampStepIndex, t as ekycMachine } from "./ekycStateMachine-BmMdLe2G.esm.js";
|
|
7
7
|
//#region src/modules/ekyc/ekycActor.ts
|
|
8
8
|
/**
|
|
9
9
|
* Creates and starts an eKYC actor.
|
|
@@ -1,7 +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 {
|
|
4
|
-
import {
|
|
3
|
+
import { n as ekycPrefillFormCheck, t as ekycPrefillMachine } from "./ekycPrefillStateMachine-DiQifkkd.esm.js";
|
|
4
|
+
import { s as validateAllValues } from "./formErrors-kpskZLNT.esm.js";
|
|
5
5
|
//#region src/modules/ekyc-prefill/ekycPrefillActor.ts
|
|
6
6
|
/** Creates and starts an eKYC Pre-fill actor, idle until `LOAD`. */
|
|
7
7
|
function createEkycPrefillActor(options = {}) {
|
|
@@ -44,6 +44,10 @@ declare const ekycPrefillMachine: StateMachine<EkycPrefillContext, {
|
|
|
44
44
|
id: string | undefined;
|
|
45
45
|
};
|
|
46
46
|
}>, Values<{
|
|
47
|
+
clearError: {
|
|
48
|
+
type: "clearError";
|
|
49
|
+
params: NonReducibleUnknown;
|
|
50
|
+
};
|
|
47
51
|
applyForm: {
|
|
48
52
|
type: "applyForm";
|
|
49
53
|
params: NonReducibleUnknown;
|
|
@@ -76,10 +80,6 @@ declare const ekycPrefillMachine: StateMachine<EkycPrefillContext, {
|
|
|
76
80
|
type: "setSubmitError";
|
|
77
81
|
params: NonReducibleUnknown;
|
|
78
82
|
};
|
|
79
|
-
clearError: {
|
|
80
|
-
type: "clearError";
|
|
81
|
-
params: NonReducibleUnknown;
|
|
82
|
-
};
|
|
83
83
|
}>, Values<{
|
|
84
84
|
isValid: {
|
|
85
85
|
type: "isValid";
|