@incodetech/core 0.0.0-dev-20261118-bea87396 → 0.0.0-dev-20261118-4e70dc73

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.
Files changed (61) hide show
  1. package/dist/{FaceDetectionProvider-DyOp7qno.esm.js → FaceDetectionProvider-B8VjYLtX.esm.js} +4 -4
  2. package/dist/ae-signature.esm.js +1 -1
  3. package/dist/{apiError-BHbNQK6g.esm.js → apiError-Bx2a1X-l.esm.js} +1 -1
  4. package/dist/authentication.esm.js +2 -2
  5. package/dist/{authenticationManager-DojIy3-r.esm.js → authenticationManager-BeN9d9et.esm.js} +3 -3
  6. package/dist/{authenticationStateMachine-CQptatmq.esm.js → authenticationStateMachine-D591MWdP.esm.js} +2 -2
  7. package/dist/{deepsightLoader-C7tRlbHE.esm.js → deepsightLoader-BNRWpi5D.esm.js} +3 -3
  8. package/dist/document-signature.esm.js +1 -1
  9. package/dist/{documentSignatureStateMachine-L0CAzXlq.esm.js → documentSignatureStateMachine-3n12_IiO.esm.js} +1 -1
  10. package/dist/dynamic-forms.esm.js +2 -2
  11. package/dist/{dynamicFormsManager-BmYwxjMz.esm.js → dynamicFormsManager-BoSFVRj1.esm.js} +1 -1
  12. package/dist/{dynamicFormsStateMachine-BGrwidye.esm.js → dynamicFormsStateMachine-Q1Ryntc3.esm.js} +1 -1
  13. package/dist/ekyb.esm.js +3 -3
  14. package/dist/{ekybManager-C6wd7abj.esm.js → ekybManager-BS46AGjk.esm.js} +1 -1
  15. package/dist/{ekybStateMachine-DcXruUEw.esm.js → ekybStateMachine-X2Mvy5mZ.esm.js} +1137 -10
  16. package/dist/{ekybUtils-Cw8Ta9Qi.esm.js → ekybUtils-Z9MhFAer.esm.js} +11 -1
  17. package/dist/ekyc-prefill.d.ts +1 -1
  18. package/dist/ekyc-prefill.esm.js +2 -2
  19. package/dist/{ekycPrefillManager-CQeOyK3g.esm.js → ekycPrefillManager-BNQXkYf5.esm.js} +1 -1
  20. package/dist/{ekycPrefillManager-BF6YIJ_s.d.ts → ekycPrefillManager-BcLhkpp8.d.ts} +4 -4
  21. package/dist/{ekycPrefillStateMachine-B9j3N9tg.esm.js → ekycPrefillStateMachine-HwtoiZkX.esm.js} +1 -1
  22. package/dist/electronic-signature.esm.js +1 -1
  23. package/dist/{electronicSignatureManager-CZJT-cP0.esm.js → electronicSignatureManager-BaF5Hzmu.esm.js} +1 -1
  24. package/dist/extensibility.d.ts +1 -1
  25. package/dist/extensibility.esm.js +12 -12
  26. package/dist/{faceCaptureManagerFactory-zl1-x8X3.esm.js → faceCaptureManagerFactory-Da6Tfbo8.esm.js} +1 -1
  27. package/dist/{faceCaptureSetup-BHhaHasA.esm.js → faceCaptureSetup-t20PYion.esm.js} +3 -3
  28. package/dist/{feature-management-Bmj87Idj.esm.js → feature-management-C_-xbYLN.esm.js} +1 -1
  29. package/dist/feature-management.esm.js +1 -1
  30. package/dist/flow.esm.js +3 -3
  31. package/dist/{flowCompletionService-CctBH9ME.esm.js → flowCompletionService-Dn9nzX6q.esm.js} +1 -1
  32. package/dist/{flowServices-BqKFA-KF.esm.js → flowServices-BASJH6dk.esm.js} +5 -5
  33. package/dist/geolocation.esm.js +2 -2
  34. package/dist/{geolocationManager-iima-ArA.esm.js → geolocationManager-MrZjrAYb.esm.js} +1 -1
  35. package/dist/{geolocationStateMachine-BgGrUi1V.esm.js → geolocationStateMachine-wAE4tuGY.esm.js} +1 -1
  36. package/dist/id-selfie-flow.esm.js +6 -6
  37. package/dist/id.esm.js +3 -3
  38. package/dist/{idCaptureManager-BlBSgE33.esm.js → idCaptureManager-CaRxd7_4.esm.js} +3 -3
  39. package/dist/{idCaptureServices-Cd6JUTug.esm.js → idCaptureServices-CfXKITWC.esm.js} +2 -2
  40. package/dist/{idCaptureStateMachine-BSNB8Rpp.esm.js → idCaptureStateMachine-BNxournC.esm.js} +8 -8
  41. package/dist/index.esm.js +1 -1
  42. package/dist/kyb-checks.esm.js +2 -2
  43. package/dist/{kybChecksManager-Cn5RfoVj.esm.js → kybChecksManager-VRf3BMre.esm.js} +1 -1
  44. package/dist/{kybChecksStateMachine-Bw3n70_i.esm.js → kybChecksStateMachine--xKRJ5aM.esm.js} +1 -1
  45. package/dist/qe-signature.esm.js +1 -1
  46. package/dist/{runChildModule-BsmLJkbX.esm.js → runChildModule-OzZ_AsrW.esm.js} +1 -1
  47. package/dist/{sdkVersion-_BuyE9lC.esm.js → sdkVersion-bwyLIRlS.esm.js} +1 -1
  48. package/dist/selfie.esm.js +6 -6
  49. package/dist/{selfieErrorUtils-CEjbbyBL.esm.js → selfieErrorUtils-DWaArwL1.esm.js} +1 -1
  50. package/dist/{selfieManager-BZTasf11.esm.js → selfieManager-BjntOr-o.esm.js} +3 -3
  51. package/dist/{selfieStateMachine-DwgbLrWQ.esm.js → selfieStateMachine-CZS_oXhL.esm.js} +3 -3
  52. package/dist/{session-zsv6dtH2.esm.js → session-C1uJNFOS.esm.js} +3 -3
  53. package/dist/session.esm.js +4 -4
  54. package/dist/{sessionInitializer-BgR-PvPZ.esm.js → sessionInitializer-Dj9Psc_3.esm.js} +3 -3
  55. package/dist/{setup-BlyLHjUD.esm.js → setup-DtedaNiv.esm.js} +4 -4
  56. package/dist/{trueSightService-DN8S9-4m.esm.js → trueSightService-BoJpFzW9.esm.js} +1 -1
  57. package/dist/video-selfie.esm.js +3 -3
  58. package/dist/{videoSelfieCameraWarmer-DjFYeAU8.esm.js → videoSelfieCameraWarmer-3D3LKUAj.esm.js} +3 -3
  59. package/dist/wasm.esm.js +1 -1
  60. package/dist/workflow.esm.js +17 -17
  61. package/package.json +3 -3
@@ -1,8 +1,8 @@
1
1
  import { t as api, u as endpoints } from "./api-DSZSaaWr.esm.js";
2
- import { n as getFlow } from "./flowServices-BqKFA-KF.esm.js";
2
+ import { n as getFlow } from "./flowServices-BASJH6dk.esm.js";
3
3
  import { i as assign, t as setup } from "./xstate.esm-CIqUf_i6.esm.js";
4
4
  import { n as fromPromise } from "./xstate-actors.esm-BCcwgosu.esm.js";
5
- import { a as sortModulesByOrder, c as ALL_COUNTRIES, d as FIELD_ORDER, i as requiresAddressValidation, m as isSupportedCountry, n as hasAtLeastOneAddressField, o as toEkybConfig, p as UBO_FIELD_LABELS, r as isFieldOptional, s as ADDRESS_FIELDS, u as FIELD_NAME_MAPPING } from "./ekybUtils-Cw8Ta9Qi.esm.js";
5
+ import { a as requiresAddressValidation, c as ADDRESS_FIELDS, d as FIELD_NAME_MAPPING, f as FIELD_ORDER, h as isSupportedCountry, i as isFormFieldEntry, l as ALL_COUNTRIES, m as UBO_FIELD_LABELS, n as hasAtLeastOneAddressField, o as sortModulesByOrder, r as isFieldOptional, s as toEkybConfig } from "./ekybUtils-Z9MhFAer.esm.js";
6
6
  import { t as usStateOptions } from "./usStates-CwOQ2kAx.esm.js";
7
7
  import { n as requiresCnpjValidation, r as validateCNPJ } from "./cnpj-Bl_olpdX.esm.js";
8
8
  import { a as getPostalCodeMaxLength, c as fillFromSuggestion, i as getPostalCodeErrorParams, l as getStreetLevelErrorForSuggestion, n as formatPostalCode, o as validatePostalCode, r as getPostalCodeErrorKey, s as STREET_LEVEL_REQUIRED_ERROR, t as createBundledDefinitionSource, u as keepSuggestedStateInOptions } from "./definitionSource-Nw0YCbpe.esm.js";
@@ -145,6 +145,1025 @@ function validateEkybUboField(ubos, fieldKey) {
145
145
  //#endregion
146
146
  //#region ../form-definitions/generated/ekyb.ts
147
147
  const EKYB_DEFINITIONS = {
148
+ "ekyb/BR": {
149
+ schemaVersion: 1,
150
+ vocabulary: "1.0",
151
+ id: "ekyb/BR",
152
+ module: "ekyb",
153
+ country: "BR",
154
+ fields: [
155
+ {
156
+ name: "businessName",
157
+ kind: "text",
158
+ group: "businessName",
159
+ required: true,
160
+ label: { key: "ekyb.businessName" },
161
+ input: { autofill: "organization" }
162
+ },
163
+ {
164
+ name: "taxId",
165
+ kind: "text",
166
+ group: "taxId",
167
+ required: true,
168
+ label: { key: "ekyb.taxId" },
169
+ displayLabel: {
170
+ key: "verification.labels.cpf",
171
+ text: "CPF"
172
+ },
173
+ rules: [{ id: "cnpj" }]
174
+ },
175
+ {
176
+ name: "street",
177
+ kind: "text",
178
+ group: "address",
179
+ required: true,
180
+ widget: "addressSearch",
181
+ label: { key: "ekyb.street" },
182
+ input: { autofill: "addressLine1" }
183
+ },
184
+ {
185
+ name: "houseNo",
186
+ kind: "text",
187
+ group: "address",
188
+ required: true,
189
+ label: { key: "ekyb.houseNo" }
190
+ },
191
+ {
192
+ name: "addressLine2",
193
+ kind: "text",
194
+ group: "address",
195
+ label: { key: "ekyb.addressLine2" },
196
+ input: { autofill: "addressLine2" }
197
+ },
198
+ {
199
+ name: "city",
200
+ kind: "text",
201
+ group: "address",
202
+ required: true,
203
+ label: { key: "ekyb.city" },
204
+ input: { autofill: "addressLevel2" }
205
+ },
206
+ {
207
+ name: "state",
208
+ kind: "text",
209
+ group: "address",
210
+ required: true,
211
+ label: { key: "ekyb.state" },
212
+ input: { autofill: "addressLevel1" }
213
+ },
214
+ {
215
+ name: "postalCode",
216
+ kind: "text",
217
+ group: "address",
218
+ required: true,
219
+ label: { key: "ekyb.postalCode" },
220
+ input: {
221
+ maxLength: 9,
222
+ autofill: "postalCode"
223
+ },
224
+ rules: [{ id: "postalCodeFormat" }]
225
+ }
226
+ ],
227
+ collections: [{
228
+ id: "ubos",
229
+ group: "ubos",
230
+ min: 1,
231
+ max: 8,
232
+ fields: [{
233
+ name: "name",
234
+ kind: "text",
235
+ group: "ubos",
236
+ required: true,
237
+ label: { key: "ekyb.uboName" }
238
+ }, {
239
+ name: "surname",
240
+ kind: "text",
241
+ group: "ubos",
242
+ required: true,
243
+ label: { key: "ekyb.uboSurname" }
244
+ }],
245
+ payload: {
246
+ key: "uboNames",
247
+ join: ["name", "surname"]
248
+ }
249
+ }],
250
+ submit: {
251
+ static: { plugins: ["ekyb"] },
252
+ context: { country: "country" }
253
+ }
254
+ },
255
+ "ekyb/CM": {
256
+ schemaVersion: 1,
257
+ vocabulary: "1.0",
258
+ id: "ekyb/CM",
259
+ module: "ekyb",
260
+ country: "CM",
261
+ availableIn: ["development", "staging"],
262
+ fields: [
263
+ {
264
+ name: "businessName",
265
+ kind: "text",
266
+ group: "businessName",
267
+ required: true,
268
+ label: { key: "ekyb.businessName" },
269
+ input: { autofill: "organization" }
270
+ },
271
+ {
272
+ name: "taxId",
273
+ kind: "text",
274
+ group: "taxId",
275
+ required: true,
276
+ label: { key: "ekyb.taxId" }
277
+ },
278
+ {
279
+ name: "street",
280
+ kind: "text",
281
+ group: "address",
282
+ required: true,
283
+ widget: "addressSearch",
284
+ label: { key: "ekyb.street" },
285
+ input: { autofill: "addressLine1" }
286
+ },
287
+ {
288
+ name: "houseNo",
289
+ kind: "text",
290
+ group: "address",
291
+ required: true,
292
+ label: { key: "ekyb.houseNo" }
293
+ },
294
+ {
295
+ name: "addressLine2",
296
+ kind: "text",
297
+ group: "address",
298
+ label: { key: "ekyb.addressLine2" },
299
+ input: { autofill: "addressLine2" }
300
+ },
301
+ {
302
+ name: "city",
303
+ kind: "text",
304
+ group: "address",
305
+ required: true,
306
+ label: { key: "ekyb.city" },
307
+ input: { autofill: "addressLevel2" }
308
+ },
309
+ {
310
+ name: "state",
311
+ kind: "text",
312
+ group: "address",
313
+ required: true,
314
+ label: { key: "ekyb.state" },
315
+ input: { autofill: "addressLevel1" }
316
+ },
317
+ {
318
+ name: "postalCode",
319
+ kind: "text",
320
+ group: "address",
321
+ required: true,
322
+ label: { key: "ekyb.postalCode" },
323
+ input: {
324
+ maxLength: 8,
325
+ autofill: "postalCode"
326
+ },
327
+ rules: [{ id: "postalCodeFormat" }]
328
+ }
329
+ ],
330
+ collections: [{
331
+ id: "ubos",
332
+ group: "ubos",
333
+ min: 1,
334
+ max: 8,
335
+ fields: [{
336
+ name: "name",
337
+ kind: "text",
338
+ group: "ubos",
339
+ required: true,
340
+ label: { key: "ekyb.uboName" }
341
+ }, {
342
+ name: "surname",
343
+ kind: "text",
344
+ group: "ubos",
345
+ required: true,
346
+ label: { key: "ekyb.uboSurname" }
347
+ }],
348
+ payload: {
349
+ key: "uboNames",
350
+ join: ["name", "surname"]
351
+ }
352
+ }],
353
+ submit: {
354
+ static: { plugins: ["ekyb"] },
355
+ context: { country: "country" }
356
+ }
357
+ },
358
+ "ekyb/CN": {
359
+ schemaVersion: 1,
360
+ vocabulary: "1.0",
361
+ id: "ekyb/CN",
362
+ module: "ekyb",
363
+ country: "CN",
364
+ fields: [
365
+ {
366
+ name: "businessName",
367
+ kind: "text",
368
+ group: "businessName",
369
+ required: true,
370
+ label: { key: "ekyb.businessName" },
371
+ input: { autofill: "organization" }
372
+ },
373
+ {
374
+ name: "taxId",
375
+ kind: "text",
376
+ group: "taxId",
377
+ required: true,
378
+ label: { key: "verification.labels.prcId" }
379
+ },
380
+ {
381
+ name: "street",
382
+ kind: "text",
383
+ group: "address",
384
+ required: true,
385
+ widget: "addressSearch",
386
+ label: { key: "ekyb.street" },
387
+ input: { autofill: "addressLine1" }
388
+ },
389
+ {
390
+ name: "houseNo",
391
+ kind: "text",
392
+ group: "address",
393
+ required: true,
394
+ label: { key: "ekyb.houseNo" }
395
+ },
396
+ {
397
+ name: "addressLine2",
398
+ kind: "text",
399
+ group: "address",
400
+ label: { key: "ekyb.addressLine2" },
401
+ input: { autofill: "addressLine2" }
402
+ },
403
+ {
404
+ name: "city",
405
+ kind: "text",
406
+ group: "address",
407
+ required: true,
408
+ label: { key: "ekyb.city" },
409
+ input: { autofill: "addressLevel2" }
410
+ },
411
+ {
412
+ name: "state",
413
+ kind: "text",
414
+ group: "address",
415
+ required: true,
416
+ label: { key: "ekyb.state" },
417
+ input: { autofill: "addressLevel1" }
418
+ },
419
+ {
420
+ name: "postalCode",
421
+ kind: "text",
422
+ group: "address",
423
+ required: true,
424
+ label: { key: "ekyb.postalCode" },
425
+ input: {
426
+ maxLength: 6,
427
+ autofill: "postalCode"
428
+ },
429
+ rules: [{ id: "postalCodeFormat" }]
430
+ }
431
+ ],
432
+ collections: [{
433
+ id: "ubos",
434
+ group: "ubos",
435
+ min: 1,
436
+ max: 8,
437
+ fields: [{
438
+ name: "name",
439
+ kind: "text",
440
+ group: "ubos",
441
+ required: true,
442
+ label: { key: "ekyb.uboName" }
443
+ }, {
444
+ name: "surname",
445
+ kind: "text",
446
+ group: "ubos",
447
+ required: true,
448
+ label: { key: "ekyb.uboSurname" }
449
+ }],
450
+ payload: {
451
+ key: "uboNames",
452
+ join: ["name", "surname"]
453
+ }
454
+ }],
455
+ submit: {
456
+ static: { plugins: ["ekyb"] },
457
+ context: { country: "country" }
458
+ }
459
+ },
460
+ "ekyb/DE": {
461
+ schemaVersion: 1,
462
+ vocabulary: "1.0",
463
+ id: "ekyb/DE",
464
+ module: "ekyb",
465
+ country: "DE",
466
+ fields: [
467
+ {
468
+ name: "businessName",
469
+ kind: "text",
470
+ group: "businessName",
471
+ required: true,
472
+ label: { key: "ekyb.businessName" },
473
+ input: { autofill: "organization" }
474
+ },
475
+ {
476
+ name: "taxId",
477
+ kind: "text",
478
+ group: "taxId",
479
+ required: true,
480
+ label: { key: "ekyb.taxId" }
481
+ },
482
+ {
483
+ name: "street",
484
+ kind: "text",
485
+ group: "address",
486
+ required: true,
487
+ widget: "addressSearch",
488
+ label: { key: "ekyb.street" },
489
+ input: { autofill: "addressLine1" }
490
+ },
491
+ {
492
+ name: "houseNo",
493
+ kind: "text",
494
+ group: "address",
495
+ required: true,
496
+ label: { key: "ekyb.houseNo" }
497
+ },
498
+ {
499
+ name: "addressLine2",
500
+ kind: "text",
501
+ group: "address",
502
+ label: { key: "ekyb.addressLine2" },
503
+ input: { autofill: "addressLine2" }
504
+ },
505
+ {
506
+ name: "city",
507
+ kind: "text",
508
+ group: "address",
509
+ required: true,
510
+ label: { key: "ekyb.city" },
511
+ input: { autofill: "addressLevel2" }
512
+ },
513
+ {
514
+ name: "state",
515
+ kind: "text",
516
+ group: "address",
517
+ required: true,
518
+ label: { key: "ekyb.state" },
519
+ input: { autofill: "addressLevel1" }
520
+ },
521
+ {
522
+ name: "postalCode",
523
+ kind: "text",
524
+ group: "address",
525
+ required: true,
526
+ label: { key: "ekyb.postalCode" },
527
+ input: {
528
+ maxLength: 5,
529
+ autofill: "postalCode"
530
+ },
531
+ rules: [{ id: "postalCodeFormat" }]
532
+ }
533
+ ],
534
+ collections: [{
535
+ id: "ubos",
536
+ group: "ubos",
537
+ min: 1,
538
+ max: 8,
539
+ fields: [{
540
+ name: "name",
541
+ kind: "text",
542
+ group: "ubos",
543
+ required: true,
544
+ label: { key: "ekyb.uboName" }
545
+ }, {
546
+ name: "surname",
547
+ kind: "text",
548
+ group: "ubos",
549
+ required: true,
550
+ label: { key: "ekyb.uboSurname" }
551
+ }],
552
+ payload: {
553
+ key: "uboNames",
554
+ join: ["name", "surname"]
555
+ }
556
+ }],
557
+ submit: {
558
+ static: { plugins: ["ekyb"] },
559
+ context: { country: "country" }
560
+ }
561
+ },
562
+ "ekyb/ES": {
563
+ schemaVersion: 1,
564
+ vocabulary: "1.0",
565
+ id: "ekyb/ES",
566
+ module: "ekyb",
567
+ country: "ES",
568
+ fields: [
569
+ {
570
+ name: "businessName",
571
+ kind: "text",
572
+ group: "businessName",
573
+ required: true,
574
+ label: { key: "ekyb.businessName" },
575
+ input: { autofill: "organization" }
576
+ },
577
+ {
578
+ name: "taxId",
579
+ kind: "text",
580
+ group: "taxId",
581
+ required: true,
582
+ label: { key: "ekyb.taxId" }
583
+ },
584
+ {
585
+ name: "street",
586
+ kind: "text",
587
+ group: "address",
588
+ required: true,
589
+ widget: "addressSearch",
590
+ label: { key: "ekyb.street" },
591
+ input: { autofill: "addressLine1" }
592
+ },
593
+ {
594
+ name: "houseNo",
595
+ kind: "text",
596
+ group: "address",
597
+ required: true,
598
+ label: { key: "ekyb.houseNo" }
599
+ },
600
+ {
601
+ name: "addressLine2",
602
+ kind: "text",
603
+ group: "address",
604
+ label: { key: "ekyb.addressLine2" },
605
+ input: { autofill: "addressLine2" }
606
+ },
607
+ {
608
+ name: "city",
609
+ kind: "text",
610
+ group: "address",
611
+ required: true,
612
+ label: { key: "ekyb.city" },
613
+ input: { autofill: "addressLevel2" }
614
+ },
615
+ {
616
+ name: "state",
617
+ kind: "text",
618
+ group: "address",
619
+ required: true,
620
+ label: { key: "ekyb.state" },
621
+ input: { autofill: "addressLevel1" }
622
+ },
623
+ {
624
+ name: "postalCode",
625
+ kind: "text",
626
+ group: "address",
627
+ required: true,
628
+ label: { key: "ekyb.postalCode" },
629
+ input: {
630
+ maxLength: 5,
631
+ autofill: "postalCode"
632
+ },
633
+ rules: [{ id: "postalCodeFormat" }]
634
+ }
635
+ ],
636
+ collections: [{
637
+ id: "ubos",
638
+ group: "ubos",
639
+ min: 1,
640
+ max: 8,
641
+ fields: [{
642
+ name: "name",
643
+ kind: "text",
644
+ group: "ubos",
645
+ required: true,
646
+ label: { key: "ekyb.uboName" }
647
+ }, {
648
+ name: "surname",
649
+ kind: "text",
650
+ group: "ubos",
651
+ required: true,
652
+ label: { key: "ekyb.uboSurname" }
653
+ }],
654
+ payload: {
655
+ key: "uboNames",
656
+ join: ["name", "surname"]
657
+ }
658
+ }],
659
+ submit: {
660
+ static: { plugins: ["ekyb"] },
661
+ context: { country: "country" }
662
+ }
663
+ },
664
+ "ekyb/FR": {
665
+ schemaVersion: 1,
666
+ vocabulary: "1.0",
667
+ id: "ekyb/FR",
668
+ module: "ekyb",
669
+ country: "FR",
670
+ fields: [
671
+ {
672
+ name: "businessName",
673
+ kind: "text",
674
+ group: "businessName",
675
+ required: true,
676
+ label: { key: "ekyb.businessName" },
677
+ input: { autofill: "organization" }
678
+ },
679
+ {
680
+ name: "taxId",
681
+ kind: "text",
682
+ group: "taxId",
683
+ required: true,
684
+ label: { key: "ekyb.taxId" }
685
+ },
686
+ {
687
+ name: "street",
688
+ kind: "text",
689
+ group: "address",
690
+ required: true,
691
+ widget: "addressSearch",
692
+ label: { key: "ekyb.street" },
693
+ input: { autofill: "addressLine1" }
694
+ },
695
+ {
696
+ name: "houseNo",
697
+ kind: "text",
698
+ group: "address",
699
+ required: true,
700
+ label: { key: "ekyb.houseNo" }
701
+ },
702
+ {
703
+ name: "addressLine2",
704
+ kind: "text",
705
+ group: "address",
706
+ label: { key: "ekyb.addressLine2" },
707
+ input: { autofill: "addressLine2" }
708
+ },
709
+ {
710
+ name: "city",
711
+ kind: "text",
712
+ group: "address",
713
+ required: true,
714
+ label: { key: "ekyb.city" },
715
+ input: { autofill: "addressLevel2" }
716
+ },
717
+ {
718
+ name: "state",
719
+ kind: "text",
720
+ group: "address",
721
+ required: true,
722
+ label: { key: "ekyb.state" },
723
+ input: { autofill: "addressLevel1" }
724
+ },
725
+ {
726
+ name: "postalCode",
727
+ kind: "text",
728
+ group: "address",
729
+ required: true,
730
+ label: { key: "ekyb.postalCode" },
731
+ input: {
732
+ maxLength: 5,
733
+ autofill: "postalCode"
734
+ },
735
+ rules: [{ id: "postalCodeFormat" }]
736
+ }
737
+ ],
738
+ collections: [{
739
+ id: "ubos",
740
+ group: "ubos",
741
+ min: 1,
742
+ max: 8,
743
+ fields: [{
744
+ name: "name",
745
+ kind: "text",
746
+ group: "ubos",
747
+ required: true,
748
+ label: { key: "ekyb.uboName" }
749
+ }, {
750
+ name: "surname",
751
+ kind: "text",
752
+ group: "ubos",
753
+ required: true,
754
+ label: { key: "ekyb.uboSurname" }
755
+ }],
756
+ payload: {
757
+ key: "uboNames",
758
+ join: ["name", "surname"]
759
+ }
760
+ }],
761
+ submit: {
762
+ static: { plugins: ["ekyb"] },
763
+ context: { country: "country" }
764
+ }
765
+ },
766
+ "ekyb/GB": {
767
+ schemaVersion: 1,
768
+ vocabulary: "1.0",
769
+ id: "ekyb/GB",
770
+ module: "ekyb",
771
+ country: "GB",
772
+ fields: [
773
+ {
774
+ name: "businessName",
775
+ kind: "text",
776
+ group: "businessName",
777
+ required: true,
778
+ label: { key: "ekyb.businessName" },
779
+ input: { autofill: "organization" }
780
+ },
781
+ {
782
+ name: "taxId",
783
+ kind: "text",
784
+ group: "taxId",
785
+ required: true,
786
+ label: { key: "ekyb.taxId" }
787
+ },
788
+ {
789
+ name: "street",
790
+ kind: "text",
791
+ group: "address",
792
+ required: true,
793
+ widget: "addressSearch",
794
+ label: { key: "ekyb.street" },
795
+ input: { autofill: "addressLine1" }
796
+ },
797
+ {
798
+ name: "houseNo",
799
+ kind: "text",
800
+ group: "address",
801
+ required: true,
802
+ label: { key: "ekyb.houseNo" }
803
+ },
804
+ {
805
+ name: "addressLine2",
806
+ kind: "text",
807
+ group: "address",
808
+ label: { key: "ekyb.addressLine2" },
809
+ input: { autofill: "addressLine2" }
810
+ },
811
+ {
812
+ name: "city",
813
+ kind: "text",
814
+ group: "address",
815
+ required: true,
816
+ label: { key: "ekyb.city" },
817
+ input: { autofill: "addressLevel2" }
818
+ },
819
+ {
820
+ name: "postalCode",
821
+ kind: "text",
822
+ group: "address",
823
+ required: true,
824
+ label: { key: "ekyb.postalCode" },
825
+ input: {
826
+ maxLength: 8,
827
+ autofill: "postalCode"
828
+ },
829
+ rules: [{ id: "postalCodeFormat" }]
830
+ }
831
+ ],
832
+ collections: [{
833
+ id: "ubos",
834
+ group: "ubos",
835
+ min: 1,
836
+ max: 8,
837
+ fields: [{
838
+ name: "name",
839
+ kind: "text",
840
+ group: "ubos",
841
+ required: true,
842
+ label: { key: "ekyb.uboName" }
843
+ }, {
844
+ name: "surname",
845
+ kind: "text",
846
+ group: "ubos",
847
+ required: true,
848
+ label: { key: "ekyb.uboSurname" }
849
+ }],
850
+ payload: {
851
+ key: "uboNames",
852
+ join: ["name", "surname"]
853
+ }
854
+ }],
855
+ submit: {
856
+ static: { plugins: ["ekyb"] },
857
+ context: { country: "country" }
858
+ }
859
+ },
860
+ "ekyb/IL": {
861
+ schemaVersion: 1,
862
+ vocabulary: "1.0",
863
+ id: "ekyb/IL",
864
+ module: "ekyb",
865
+ country: "IL",
866
+ fields: [
867
+ {
868
+ name: "businessName",
869
+ kind: "text",
870
+ group: "businessName",
871
+ required: true,
872
+ label: { key: "ekyb.businessName" },
873
+ input: { autofill: "organization" }
874
+ },
875
+ {
876
+ name: "taxId",
877
+ kind: "text",
878
+ group: "taxId",
879
+ required: true,
880
+ label: { key: "ekyb.taxId" }
881
+ },
882
+ {
883
+ name: "street",
884
+ kind: "text",
885
+ group: "address",
886
+ required: true,
887
+ widget: "addressSearch",
888
+ label: { key: "ekyb.street" },
889
+ input: { autofill: "addressLine1" }
890
+ },
891
+ {
892
+ name: "houseNo",
893
+ kind: "text",
894
+ group: "address",
895
+ required: true,
896
+ label: { key: "ekyb.houseNo" }
897
+ },
898
+ {
899
+ name: "addressLine2",
900
+ kind: "text",
901
+ group: "address",
902
+ label: { key: "ekyb.addressLine2" },
903
+ input: { autofill: "addressLine2" }
904
+ },
905
+ {
906
+ name: "city",
907
+ kind: "text",
908
+ group: "address",
909
+ required: true,
910
+ label: { key: "ekyb.city" },
911
+ input: { autofill: "addressLevel2" }
912
+ },
913
+ {
914
+ name: "state",
915
+ kind: "text",
916
+ group: "address",
917
+ required: true,
918
+ label: { key: "ekyb.state" },
919
+ input: { autofill: "addressLevel1" }
920
+ },
921
+ {
922
+ name: "postalCode",
923
+ kind: "text",
924
+ group: "address",
925
+ required: true,
926
+ label: { key: "ekyb.postalCode" },
927
+ input: {
928
+ maxLength: 7,
929
+ autofill: "postalCode"
930
+ },
931
+ rules: [{ id: "postalCodeFormat" }]
932
+ }
933
+ ],
934
+ collections: [{
935
+ id: "ubos",
936
+ group: "ubos",
937
+ min: 1,
938
+ max: 8,
939
+ fields: [{
940
+ name: "name",
941
+ kind: "text",
942
+ group: "ubos",
943
+ required: true,
944
+ label: { key: "ekyb.uboName" }
945
+ }, {
946
+ name: "surname",
947
+ kind: "text",
948
+ group: "ubos",
949
+ required: true,
950
+ label: { key: "ekyb.uboSurname" }
951
+ }],
952
+ payload: {
953
+ key: "uboNames",
954
+ join: ["name", "surname"]
955
+ }
956
+ }],
957
+ submit: {
958
+ static: { plugins: ["ekyb"] },
959
+ context: { country: "country" }
960
+ }
961
+ },
962
+ "ekyb/IT": {
963
+ schemaVersion: 1,
964
+ vocabulary: "1.0",
965
+ id: "ekyb/IT",
966
+ module: "ekyb",
967
+ country: "IT",
968
+ fields: [
969
+ {
970
+ name: "businessName",
971
+ kind: "text",
972
+ group: "businessName",
973
+ required: true,
974
+ label: { key: "ekyb.businessName" },
975
+ input: { autofill: "organization" }
976
+ },
977
+ {
978
+ name: "taxId",
979
+ kind: "text",
980
+ group: "taxId",
981
+ required: true,
982
+ label: { key: "ekyb.taxId" }
983
+ },
984
+ {
985
+ name: "street",
986
+ kind: "text",
987
+ group: "address",
988
+ required: true,
989
+ widget: "addressSearch",
990
+ label: { key: "ekyb.street" },
991
+ input: { autofill: "addressLine1" }
992
+ },
993
+ {
994
+ name: "houseNo",
995
+ kind: "text",
996
+ group: "address",
997
+ required: true,
998
+ label: { key: "ekyb.houseNo" }
999
+ },
1000
+ {
1001
+ name: "addressLine2",
1002
+ kind: "text",
1003
+ group: "address",
1004
+ label: { key: "ekyb.addressLine2" },
1005
+ input: { autofill: "addressLine2" }
1006
+ },
1007
+ {
1008
+ name: "city",
1009
+ kind: "text",
1010
+ group: "address",
1011
+ required: true,
1012
+ label: { key: "ekyb.city" },
1013
+ input: { autofill: "addressLevel2" }
1014
+ },
1015
+ {
1016
+ name: "state",
1017
+ kind: "text",
1018
+ group: "address",
1019
+ required: true,
1020
+ label: { key: "ekyb.state" },
1021
+ input: { autofill: "addressLevel1" }
1022
+ },
1023
+ {
1024
+ name: "postalCode",
1025
+ kind: "text",
1026
+ group: "address",
1027
+ required: true,
1028
+ label: { key: "ekyb.postalCode" },
1029
+ input: {
1030
+ maxLength: 5,
1031
+ autofill: "postalCode"
1032
+ },
1033
+ rules: [{ id: "postalCodeFormat" }]
1034
+ }
1035
+ ],
1036
+ collections: [{
1037
+ id: "ubos",
1038
+ group: "ubos",
1039
+ min: 1,
1040
+ max: 8,
1041
+ fields: [{
1042
+ name: "name",
1043
+ kind: "text",
1044
+ group: "ubos",
1045
+ required: true,
1046
+ label: { key: "ekyb.uboName" }
1047
+ }, {
1048
+ name: "surname",
1049
+ kind: "text",
1050
+ group: "ubos",
1051
+ required: true,
1052
+ label: { key: "ekyb.uboSurname" }
1053
+ }],
1054
+ payload: {
1055
+ key: "uboNames",
1056
+ join: ["name", "surname"]
1057
+ }
1058
+ }],
1059
+ submit: {
1060
+ static: { plugins: ["ekyb"] },
1061
+ context: { country: "country" }
1062
+ }
1063
+ },
1064
+ "ekyb/KE": {
1065
+ schemaVersion: 1,
1066
+ vocabulary: "1.0",
1067
+ id: "ekyb/KE",
1068
+ module: "ekyb",
1069
+ country: "KE",
1070
+ availableIn: ["development", "staging"],
1071
+ fields: [
1072
+ {
1073
+ name: "businessName",
1074
+ kind: "text",
1075
+ group: "businessName",
1076
+ required: true,
1077
+ label: { key: "ekyb.businessName" },
1078
+ input: { autofill: "organization" }
1079
+ },
1080
+ {
1081
+ name: "taxId",
1082
+ kind: "text",
1083
+ group: "taxId",
1084
+ required: true,
1085
+ label: { key: "ekyb.taxId" }
1086
+ },
1087
+ {
1088
+ name: "street",
1089
+ kind: "text",
1090
+ group: "address",
1091
+ required: true,
1092
+ widget: "addressSearch",
1093
+ label: { key: "ekyb.street" },
1094
+ input: { autofill: "addressLine1" }
1095
+ },
1096
+ {
1097
+ name: "houseNo",
1098
+ kind: "text",
1099
+ group: "address",
1100
+ required: true,
1101
+ label: { key: "ekyb.houseNo" }
1102
+ },
1103
+ {
1104
+ name: "addressLine2",
1105
+ kind: "text",
1106
+ group: "address",
1107
+ label: { key: "ekyb.addressLine2" },
1108
+ input: { autofill: "addressLine2" }
1109
+ },
1110
+ {
1111
+ name: "city",
1112
+ kind: "text",
1113
+ group: "address",
1114
+ required: true,
1115
+ label: { key: "ekyb.city" },
1116
+ input: { autofill: "addressLevel2" }
1117
+ },
1118
+ {
1119
+ name: "state",
1120
+ kind: "text",
1121
+ group: "address",
1122
+ required: true,
1123
+ label: { key: "ekyb.state" },
1124
+ input: { autofill: "addressLevel1" }
1125
+ },
1126
+ {
1127
+ name: "postalCode",
1128
+ kind: "text",
1129
+ group: "address",
1130
+ required: true,
1131
+ label: { key: "ekyb.postalCode" },
1132
+ input: {
1133
+ maxLength: 5,
1134
+ autofill: "postalCode"
1135
+ },
1136
+ rules: [{ id: "postalCodeFormat" }]
1137
+ }
1138
+ ],
1139
+ collections: [{
1140
+ id: "ubos",
1141
+ group: "ubos",
1142
+ min: 1,
1143
+ max: 8,
1144
+ fields: [{
1145
+ name: "name",
1146
+ kind: "text",
1147
+ group: "ubos",
1148
+ required: true,
1149
+ label: { key: "ekyb.uboName" }
1150
+ }, {
1151
+ name: "surname",
1152
+ kind: "text",
1153
+ group: "ubos",
1154
+ required: true,
1155
+ label: { key: "ekyb.uboSurname" }
1156
+ }],
1157
+ payload: {
1158
+ key: "uboNames",
1159
+ join: ["name", "surname"]
1160
+ }
1161
+ }],
1162
+ submit: {
1163
+ static: { plugins: ["ekyb"] },
1164
+ context: { country: "country" }
1165
+ }
1166
+ },
148
1167
  "ekyb/MX": {
149
1168
  schemaVersion: 1,
150
1169
  vocabulary: "1.0",
@@ -185,6 +1204,109 @@ const EKYB_DEFINITIONS = {
185
1204
  context: { country: "country" }
186
1205
  }
187
1206
  },
1207
+ "ekyb/NG": {
1208
+ schemaVersion: 1,
1209
+ vocabulary: "1.0",
1210
+ id: "ekyb/NG",
1211
+ module: "ekyb",
1212
+ country: "NG",
1213
+ availableIn: ["development", "staging"],
1214
+ fields: [
1215
+ {
1216
+ name: "businessName",
1217
+ kind: "text",
1218
+ group: "businessName",
1219
+ required: true,
1220
+ label: { key: "ekyb.businessName" },
1221
+ input: { autofill: "organization" }
1222
+ },
1223
+ {
1224
+ name: "taxId",
1225
+ kind: "text",
1226
+ group: "taxId",
1227
+ required: true,
1228
+ label: { key: "ekyb.taxId" }
1229
+ },
1230
+ {
1231
+ name: "street",
1232
+ kind: "text",
1233
+ group: "address",
1234
+ required: true,
1235
+ widget: "addressSearch",
1236
+ label: { key: "ekyb.street" },
1237
+ input: { autofill: "addressLine1" }
1238
+ },
1239
+ {
1240
+ name: "houseNo",
1241
+ kind: "text",
1242
+ group: "address",
1243
+ required: true,
1244
+ label: { key: "ekyb.houseNo" }
1245
+ },
1246
+ {
1247
+ name: "addressLine2",
1248
+ kind: "text",
1249
+ group: "address",
1250
+ label: { key: "ekyb.addressLine2" },
1251
+ input: { autofill: "addressLine2" }
1252
+ },
1253
+ {
1254
+ name: "city",
1255
+ kind: "text",
1256
+ group: "address",
1257
+ required: true,
1258
+ label: { key: "ekyb.city" },
1259
+ input: { autofill: "addressLevel2" }
1260
+ },
1261
+ {
1262
+ name: "state",
1263
+ kind: "text",
1264
+ group: "address",
1265
+ required: true,
1266
+ label: { key: "ekyb.state" },
1267
+ input: { autofill: "addressLevel1" }
1268
+ },
1269
+ {
1270
+ name: "postalCode",
1271
+ kind: "text",
1272
+ group: "address",
1273
+ required: true,
1274
+ label: { key: "ekyb.postalCode" },
1275
+ input: {
1276
+ maxLength: 6,
1277
+ autofill: "postalCode"
1278
+ },
1279
+ rules: [{ id: "postalCodeFormat" }]
1280
+ }
1281
+ ],
1282
+ collections: [{
1283
+ id: "ubos",
1284
+ group: "ubos",
1285
+ min: 1,
1286
+ max: 8,
1287
+ fields: [{
1288
+ name: "name",
1289
+ kind: "text",
1290
+ group: "ubos",
1291
+ required: true,
1292
+ label: { key: "ekyb.uboName" }
1293
+ }, {
1294
+ name: "surname",
1295
+ kind: "text",
1296
+ group: "ubos",
1297
+ required: true,
1298
+ label: { key: "ekyb.uboSurname" }
1299
+ }],
1300
+ payload: {
1301
+ key: "uboNames",
1302
+ join: ["name", "surname"]
1303
+ }
1304
+ }],
1305
+ submit: {
1306
+ static: { plugins: ["ekyb"] },
1307
+ context: { country: "country" }
1308
+ }
1309
+ },
188
1310
  "ekyb/US": {
189
1311
  schemaVersion: 1,
190
1312
  vocabulary: "1.0",
@@ -394,7 +1516,7 @@ function isProjectableEkybDefinition(definition) {
394
1516
  * address), so the current builder keeps handling it.
395
1517
  */
396
1518
  function toEkybResolveContext(config, verificationFields) {
397
- const entries = verificationFields.filter((entry) => !entry.startsWith("socure"));
1519
+ const entries = verificationFields.filter(isFormFieldEntry);
398
1520
  if (entries.some((entry) => !KNOWN_ENTRIES.has(entry))) return void 0;
399
1521
  const groups = {};
400
1522
  for (const [group, groupEntries] of Object.entries(EKYB_GROUP_ENTRIES)) {
@@ -467,11 +1589,12 @@ function buildEkybValidationRules(fieldName, required, country) {
467
1589
  return rules;
468
1590
  }
469
1591
  /**
470
- * Fields and beneficial-owner state for a country. A country with a form
471
- * definition (`packages/form-definitions/catalog/ekyb`) reads it; any other
472
- * country, or a custom field list that isn't whole groups, keeps the current
473
- * builder and its UBO rule. `useDefinitions` is the rollout answer the
474
- * machine read once, when it was created (`selectEkybForm`).
1592
+ * Fields and beneficial-owner state for a country. With the rollout on, the
1593
+ * country reads its form definition (`packages/form-definitions/catalog/ekyb`),
1594
+ * unless the custom field list isn't whole groups. Otherwise the current
1595
+ * builder and its UBO rule apply; the parity fixtures keep the two equal.
1596
+ * `useDefinitions` is the rollout answer the machine read once, when it was
1597
+ * created (`selectEkybForm`).
475
1598
  */
476
1599
  function buildEkybForm(config, verificationFields, country, useDefinitions) {
477
1600
  const form = selectEkybForm(config, verificationFields, country, useDefinitions);
@@ -485,9 +1608,13 @@ function buildEkybForm(config, verificationFields, country, useDefinitions) {
485
1608
  hasUbos
486
1609
  };
487
1610
  }
488
- /** The per-country builder for countries without a form definition yet. */
1611
+ /**
1612
+ * The per-country builder, used with the rollout off and for custom field
1613
+ * lists that aren't whole groups. Every country's form definition must give
1614
+ * the same fields (parity), so change both together.
1615
+ */
489
1616
  function buildEkybFields(verificationFields, country, _hasUbos) {
490
- let modules = verificationFields.filter((f) => f !== "ubos-user_input" && !f.startsWith("socure"));
1617
+ let modules = verificationFields.filter((f) => f !== "ubos-user_input" && isFormFieldEntry(f));
491
1618
  if (country === "GB") modules = modules.filter((m) => m !== "state-user_input");
492
1619
  if (country === "MX") modules = modules.filter((m) => {
493
1620
  if (m === "ubos-user_input") return false;