@win2win/shared 1.0.170 → 1.0.172
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 +11 -0
- package/dist/consts/index.d.ts +1 -0
- package/dist/consts/index.js +17 -0
- package/dist/consts/visitas/index.d.ts +1 -0
- package/dist/consts/visitas/index.js +17 -0
- package/dist/consts/visitas/resultado.d.ts +4 -0
- package/dist/consts/visitas/resultado.js +37 -0
- package/dist/helpers/formatters.d.ts +4 -0
- package/dist/helpers/formatters.js +6 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/package.json +1 -1
package/README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./visitas";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./visitas"), exports);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./resultado";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./resultado"), exports);
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RESULTADOS_VISITA = void 0;
|
|
4
|
+
exports.RESULTADOS_VISITA = [
|
|
5
|
+
{
|
|
6
|
+
label: "Sí contrata",
|
|
7
|
+
value: "si_contrata",
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
label: "No contrata",
|
|
11
|
+
value: "no_contrata",
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
label: "Contrata más tarde",
|
|
15
|
+
value: "contrata_mas_tarde",
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
label: "No abrieron la puerta",
|
|
19
|
+
value: "no_abrieron_la_puerta",
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
label: "Seguridad",
|
|
23
|
+
value: "seguridad",
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
label: "Opositor",
|
|
27
|
+
value: "opositor",
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
label: "Consultar a familiar",
|
|
31
|
+
value: "consultar_a_familiar",
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
label: "Mala referencia",
|
|
35
|
+
value: "mala_referencia",
|
|
36
|
+
},
|
|
37
|
+
];
|
|
@@ -26,6 +26,10 @@ export declare function formatContactName(contact?: {
|
|
|
26
26
|
NOMBRE?: string | null;
|
|
27
27
|
APELLIDO?: string | null;
|
|
28
28
|
APELLIDO2?: string | null;
|
|
29
|
+
} | {
|
|
30
|
+
CONTACTO_NOMBRE?: string | null;
|
|
31
|
+
CONTACTO_APELLIDO?: string | null;
|
|
32
|
+
CONTACTO_APELLIDO2?: string | null;
|
|
29
33
|
} | {
|
|
30
34
|
nombre?: string | null;
|
|
31
35
|
apellido: string | null;
|
|
@@ -114,7 +114,12 @@ function capitalize(text, allWords = false) {
|
|
|
114
114
|
function formatContactName(contact) {
|
|
115
115
|
if (!contact)
|
|
116
116
|
return "";
|
|
117
|
-
const { nombre, apellido, apellido2 } = (0, lodash_1.mapKeys)(contact, (v, k) =>
|
|
117
|
+
const { nombre, apellido, apellido2 } = (0, lodash_1.mapKeys)(contact, (v, k) => {
|
|
118
|
+
if (k.startsWith("CONTACTO_")) {
|
|
119
|
+
return k.replace("CONTACTO_", "").toLowerCase();
|
|
120
|
+
}
|
|
121
|
+
return k.toLowerCase();
|
|
122
|
+
});
|
|
118
123
|
return capitalize([nombre, apellido, apellido2]
|
|
119
124
|
.map((v) => (v || "").trim())
|
|
120
125
|
.filter(Boolean)
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./consts"), exports);
|
|
17
18
|
__exportStar(require("./enums"), exports);
|
|
18
19
|
__exportStar(require("./helpers"), exports);
|
|
19
20
|
__exportStar(require("./interfaces"), exports);
|
package/package.json
CHANGED