cardus 0.0.76 → 0.0.77

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.
@@ -53,6 +53,7 @@ const cookTempShipment = (_a) => __awaiter(void 0, [_a], void 0, function* ({ or
53
53
  return compradorLocation;
54
54
  });
55
55
  const setDatosComprador = (order) => __awaiter(void 0, void 0, void 0, function* () {
56
+ var _b;
56
57
  return ({
57
58
  nom_ape_llegada: order.primerApellidoLLegada
58
59
  ? order.nombreLLegada + ' ' + order.primerApellidoLLegada
@@ -65,7 +66,7 @@ const cookTempShipment = (_a) => __awaiter(void 0, [_a], void 0, function* ({ or
65
66
  : order.direccionLLegada1,
66
67
  cod_pos_llegada: order.codigoPostalLLegada,
67
68
  poblacion_llegada: order.ciudadLLegada,
68
- tlf_llegada: order.telefonoLLegada || 'no informado',
69
+ tlf_llegada: ((_b = order.telefonoLLegada) === null || _b === void 0 ? void 0 : _b.replace(/[^0-9+()]/g, '')) || 'no informado',
69
70
  mail_llegada: order.emailLLegada || 'no informado',
70
71
  dni_destinatario: (order === null || order === void 0 ? void 0 : order.numeroIdentificacionLLegada) || null,
71
72
  observaciones_llegada: order === null || order === void 0 ? void 0 : order.observacionesLLegada
@@ -109,7 +109,8 @@ export const cookTempShipment = async ({
109
109
 
110
110
  cod_pos_llegada: order.codigoPostalLLegada,
111
111
  poblacion_llegada: order.ciudadLLegada,
112
- tlf_llegada: order.telefonoLLegada || 'no informado',
112
+ tlf_llegada:
113
+ order.telefonoLLegada?.replace(/[^0-9+()]/g, '') || 'no informado',
113
114
  mail_llegada: order.emailLLegada || 'no informado',
114
115
  dni_destinatario: order?.numeroIdentificacionLLegada || null,
115
116
  observaciones_llegada: order?.observacionesLLegada
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cardus",
3
- "version": "0.0.76",
3
+ "version": "0.0.77",
4
4
  "description": "an integration manager",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",