@cobre-npm/library-onboarding-core 0.7.6 → 0.7.7

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.
@@ -8,6 +8,7 @@ export type FieldValidationRule = {
8
8
  readonly kind: "numericRange";
9
9
  readonly min: number;
10
10
  readonly max: number;
11
+ readonly exclusiveMin?: boolean;
11
12
  } | {
12
13
  readonly kind: "pastDate";
13
14
  readonly minAgeYears?: number;
@@ -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: 1, max: 100 }, noSpaces: true },
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,8 +2420,10 @@ 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;
2426
2428
  minLength: string;
2427
2429
  maxLength: string;
@@ -2501,8 +2503,10 @@ export declare const locales: {
2501
2503
  nameFormat: string;
2502
2504
  nameMinLength: string;
2503
2505
  numericOnly: string;
2506
+ decimalSeparator: string;
2504
2507
  integerOnly: string;
2505
2508
  numericRange: string;
2509
+ numericRangeExclusiveMin: string;
2506
2510
  alphanumericOnly: string;
2507
2511
  minLength: string;
2508
2512
  maxLength: string;
@@ -69,8 +69,10 @@
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",
75
77
  "minLength": "Must be at least {min} characters",
76
78
  "maxLength": "Cannot exceed {max} characters",
@@ -69,8 +69,10 @@
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",
75
77
  "minLength": "Debe tener al menos {min} caracteres",
76
78
  "maxLength": "No puede tener más de {max} caracteres",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cobre-npm/library-onboarding-core",
3
- "version": "0.7.6",
3
+ "version": "0.7.7",
4
4
  "description": "Shared configurations and resources for onboarding MFEs",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",