@cobre-npm/library-onboarding-core 0.7.6 → 0.7.8
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.
|
@@ -27,7 +27,7 @@ exports.FIELD_VALIDATIONS = {
|
|
|
27
27
|
operations_start_date: { rule: { kind: "pastDate" } },
|
|
28
28
|
birth_date: { rule: { kind: "pastDate", minAgeYears: 18 } },
|
|
29
29
|
// Percentage KYC data points — a space is never part of a number.
|
|
30
|
-
percentage_ownership: { rule: { kind: "numericRange", min:
|
|
30
|
+
percentage_ownership: { rule: { kind: "numericRange", min: 0, max: 100, exclusiveMin: true }, noSpaces: true },
|
|
31
31
|
cash_transaction_percentage: { rule: { kind: "numericRange", min: 0, max: 100 }, noSpaces: true },
|
|
32
32
|
// Identifiers/codes — length + no-spaces (whitespace is never part of the value).
|
|
33
33
|
tax_id_number: { maxLength: 50, noSpaces: true },
|
package/dist/index.d.ts
CHANGED
|
@@ -2420,9 +2420,13 @@ export declare const locales: {
|
|
|
2420
2420
|
nameFormat: string;
|
|
2421
2421
|
nameMinLength: string;
|
|
2422
2422
|
numericOnly: string;
|
|
2423
|
+
decimalSeparator: string;
|
|
2423
2424
|
integerOnly: string;
|
|
2424
2425
|
numericRange: string;
|
|
2426
|
+
numericRangeExclusiveMin: string;
|
|
2425
2427
|
alphanumericOnly: string;
|
|
2428
|
+
minAge: string;
|
|
2429
|
+
futureDate: string;
|
|
2426
2430
|
minLength: string;
|
|
2427
2431
|
maxLength: string;
|
|
2428
2432
|
emailFormat: string;
|
|
@@ -2501,9 +2505,13 @@ export declare const locales: {
|
|
|
2501
2505
|
nameFormat: string;
|
|
2502
2506
|
nameMinLength: string;
|
|
2503
2507
|
numericOnly: string;
|
|
2508
|
+
decimalSeparator: string;
|
|
2504
2509
|
integerOnly: string;
|
|
2505
2510
|
numericRange: string;
|
|
2511
|
+
numericRangeExclusiveMin: string;
|
|
2506
2512
|
alphanumericOnly: string;
|
|
2513
|
+
minAge: string;
|
|
2514
|
+
futureDate: string;
|
|
2507
2515
|
minLength: string;
|
|
2508
2516
|
maxLength: string;
|
|
2509
2517
|
emailFormat: string;
|
|
@@ -69,9 +69,13 @@
|
|
|
69
69
|
"nameFormat": "Use only letters, spaces, apostrophes and hyphens",
|
|
70
70
|
"nameMinLength": "Name must be at least {min} characters",
|
|
71
71
|
"numericOnly": "Use digits only, no letters or symbols",
|
|
72
|
+
"decimalSeparator": "Use a period as the decimal separator (for example, 33.33)",
|
|
72
73
|
"integerOnly": "Enter a whole number, no decimals",
|
|
73
74
|
"numericRange": "Enter a value between {min} and {max}",
|
|
75
|
+
"numericRangeExclusiveMin": "Enter a value greater than {min} and up to {max}",
|
|
74
76
|
"alphanumericOnly": "Use letters and numbers only",
|
|
77
|
+
"minAge": "The person must be at least {min} years old",
|
|
78
|
+
"futureDate": "The date cannot be in the future",
|
|
75
79
|
"minLength": "Must be at least {min} characters",
|
|
76
80
|
"maxLength": "Cannot exceed {max} characters",
|
|
77
81
|
"emailFormat": "Enter a valid email (e.g. name@company.com)",
|
|
@@ -69,9 +69,13 @@
|
|
|
69
69
|
"nameFormat": "Usa solo letras, espacios, apóstrofes y guiones",
|
|
70
70
|
"nameMinLength": "El nombre debe tener al menos {min} caracteres",
|
|
71
71
|
"numericOnly": "Usa solo números, sin letras ni símbolos",
|
|
72
|
+
"decimalSeparator": "Usa el punto como separador decimal (por ejemplo, 33.33)",
|
|
72
73
|
"integerOnly": "Ingresa un número entero, sin decimales",
|
|
73
74
|
"numericRange": "Ingresa un valor entre {min} y {max}",
|
|
75
|
+
"numericRangeExclusiveMin": "Ingresa un valor mayor a {min} y hasta {max}",
|
|
74
76
|
"alphanumericOnly": "Usa solo letras y números",
|
|
77
|
+
"minAge": "La persona debe tener al menos {min} años",
|
|
78
|
+
"futureDate": "La fecha no puede ser futura",
|
|
75
79
|
"minLength": "Debe tener al menos {min} caracteres",
|
|
76
80
|
"maxLength": "No puede tener más de {max} caracteres",
|
|
77
81
|
"emailFormat": "Ingresa un correo válido (ej. nombre@empresa.com)",
|