@win2win/shared 1.0.113 → 1.0.114

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/README.md ADDED
@@ -0,0 +1,11 @@
1
+ # README #
2
+ version 1.0.1
3
+
4
+ ### Como hacer deploy del repo
5
+
6
+ * Correr el comando
7
+ `npm run deploy`
8
+
9
+ * [Enlace al repo](https://www.npmjs.com/package/@win2win/shared)
10
+
11
+
@@ -12,7 +12,9 @@ export declare enum PropValidatorKeys {
12
12
  EMAIL = "email",
13
13
  URL = "url",
14
14
  DNI = "dni",
15
- IBAN = "iban"
15
+ IBAN = "iban",
16
+ INE = "ine",
17
+ RFC = "rfc"
16
18
  }
17
19
  export declare const VALIDATORS: {
18
20
  fn: (val: number) => (control: GamaPropModel) => boolean;
@@ -97,6 +97,20 @@ exports.GamaPropValidatorsMap = {
97
97
  message: "El IBAN no es válido",
98
98
  label: "Cuenta Bancaria (IBAN)",
99
99
  },
100
+ ine: {
101
+ fn: () => (control) => {
102
+ return true;
103
+ },
104
+ message: "El INE no es válido",
105
+ label: "Identificador (INE)",
106
+ },
107
+ rfc: {
108
+ fn: () => (control) => {
109
+ return true;
110
+ },
111
+ message: "El RFC no es válido",
112
+ label: "Identificador (RFC)",
113
+ },
100
114
  };
101
115
  var PropValidatorKeys;
102
116
  (function (PropValidatorKeys) {
@@ -106,7 +120,11 @@ var PropValidatorKeys;
106
120
  PropValidatorKeys["SOLO_NUMEROS"] = "onlyNumbers";
107
121
  PropValidatorKeys["EMAIL"] = "email";
108
122
  PropValidatorKeys["URL"] = "url";
123
+ // ID España
109
124
  PropValidatorKeys["DNI"] = "dni";
110
125
  PropValidatorKeys["IBAN"] = "iban";
126
+ // ID México
127
+ PropValidatorKeys["INE"] = "ine";
128
+ PropValidatorKeys["RFC"] = "rfc";
111
129
  })(PropValidatorKeys || (exports.PropValidatorKeys = PropValidatorKeys = {}));
112
130
  exports.VALIDATORS = Object.entries(exports.GamaPropValidatorsMap).map(([key, value]) => ({ value: key, ...value }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@win2win/shared",
3
- "version": "1.0.113",
3
+ "version": "1.0.114",
4
4
  "description": "Tipos, interfaces, funciones, constantes, clases y enums compartidos por todos los proyectos de Win2Win",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",