@win2win/shared 1.0.277 → 1.0.279

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.
@@ -0,0 +1,8 @@
1
+ export declare enum TIPOS_INCIDENCIA {
2
+ DOCUMENTACION = "documentacion",
3
+ AUDIO_LLAMADAS = "audio_llamadas",
4
+ DATOS_CONTACTO = "datos_contacto",
5
+ FORMULARIO = "formulario",
6
+ LOCALIZACION = "localizacion"
7
+ }
8
+ export declare const DEFAULT_REASONS_INCIDENCIA: Record<TIPOS_INCIDENCIA, string[]>;
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.DEFAULT_REASONS_INCIDENCIA = exports.TIPOS_INCIDENCIA = void 0;
4
+ var TIPOS_INCIDENCIA;
5
+ (function (TIPOS_INCIDENCIA) {
6
+ TIPOS_INCIDENCIA["DOCUMENTACION"] = "documentacion";
7
+ TIPOS_INCIDENCIA["AUDIO_LLAMADAS"] = "audio_llamadas";
8
+ TIPOS_INCIDENCIA["DATOS_CONTACTO"] = "datos_contacto";
9
+ TIPOS_INCIDENCIA["FORMULARIO"] = "formulario";
10
+ TIPOS_INCIDENCIA["LOCALIZACION"] = "localizacion";
11
+ })(TIPOS_INCIDENCIA || (exports.TIPOS_INCIDENCIA = TIPOS_INCIDENCIA = {}));
12
+ exports.DEFAULT_REASONS_INCIDENCIA = Object.freeze({
13
+ [TIPOS_INCIDENCIA.DOCUMENTACION]: [
14
+ "Falta de documento",
15
+ "Documento ilegible",
16
+ "Documento incorrecto",
17
+ "Documento caducado",
18
+ "Otros",
19
+ ],
20
+ [TIPOS_INCIDENCIA.AUDIO_LLAMADAS]: [
21
+ "Audio no claro",
22
+ "Llamada interrumpida",
23
+ "No se recibió llamada",
24
+ "Otros",
25
+ ],
26
+ [TIPOS_INCIDENCIA.DATOS_CONTACTO]: [
27
+ "Número de teléfono incorrecto",
28
+ "Correo electrónico inválido",
29
+ "Dirección incompleta",
30
+ "Otros",
31
+ ],
32
+ [TIPOS_INCIDENCIA.FORMULARIO]: [
33
+ "Campos obligatorios faltantes",
34
+ "Errores de validación",
35
+ "Formato incorrecto",
36
+ "Otros",
37
+ ],
38
+ [TIPOS_INCIDENCIA.LOCALIZACION]: [
39
+ "Dirección incorrecta",
40
+ "Ubicación no encontrada",
41
+ "Coordenadas erróneas",
42
+ "Otros",
43
+ ],
44
+ });
@@ -1,8 +1,9 @@
1
- export * from './captacion';
2
- export * from './garantia';
3
- export * from './importacion';
4
- export * from './liquidacion';
5
- export * from './notificacion';
6
- export * from './pedido';
7
- export * from './producto';
8
- export * from './shared';
1
+ export * from "./captacion";
2
+ export * from "./garantia";
3
+ export * from "./importacion";
4
+ export * from "./incidencia";
5
+ export * from "./liquidacion";
6
+ export * from "./notificacion";
7
+ export * from "./pedido";
8
+ export * from "./producto";
9
+ export * from "./shared";
@@ -17,6 +17,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./captacion"), exports);
18
18
  __exportStar(require("./garantia"), exports);
19
19
  __exportStar(require("./importacion"), exports);
20
+ __exportStar(require("./incidencia"), exports);
20
21
  __exportStar(require("./liquidacion"), exports);
21
22
  __exportStar(require("./notificacion"), exports);
22
23
  __exportStar(require("./pedido"), exports);
@@ -150,7 +150,7 @@ function formatContactName(contact) {
150
150
  return capitalize([nombre, apellido, apellido2]
151
151
  .map((v) => String(v || "").trim())
152
152
  .filter(Boolean)
153
- .join(" "), true).trim();
153
+ .join(" "), true, { ignoreStopWords: true }).trim();
154
154
  }
155
155
  const upperSnakeCase = (text) => (0, lodash_1.snakeCase)(text).toUpperCase();
156
156
  exports.upperSnakeCase = upperSnakeCase;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@win2win/shared",
3
- "version": "1.0.277",
3
+ "version": "1.0.279",
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",