cardus 0.0.115 → 0.0.116

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/dist/index.js CHANGED
@@ -195,7 +195,7 @@ class IntegrationManager {
195
195
  // mete los contents
196
196
  yield this.insertUserDefaultConfigurationContent({
197
197
  user,
198
- countryName: country.nombre_pais_en,
198
+ countryName: country.nombre_pais,
199
199
  shipmentDetails
200
200
  });
201
201
  return Object.assign(parsedOrder, { idEnvioTemporal, agencyId });
@@ -256,7 +256,7 @@ class IntegrationManager {
256
256
  if (e instanceof Error)
257
257
  console.error(e.stack);
258
258
  }
259
- const { nombre_pais_en } = yield countriesService.getCountryFromCountryCode(detail.bulto.origen);
259
+ const { nombre_pais } = yield countriesService.getCountryFromCountryCode(detail.bulto.origen);
260
260
  return {
261
261
  id_envio: detail.id_envio,
262
262
  id_usuario: idUsuario,
@@ -270,7 +270,7 @@ class IntegrationManager {
270
270
  eori_exportacion: user.eori_export,
271
271
  peso_bruto: detail.bulto.peso,
272
272
  peso_neto: detail.bulto.peso,
273
- origen: nombre_pais_en || countryName,
273
+ origen: nombre_pais || countryName,
274
274
  cantidad: detail.cantidad,
275
275
  reason_export: '1'
276
276
  };
package/index.ts CHANGED
@@ -313,7 +313,7 @@ export class IntegrationManager {
313
313
  // mete los contents
314
314
  await this.insertUserDefaultConfigurationContent({
315
315
  user,
316
- countryName: country.nombre_pais_en,
316
+ countryName: country.nombre_pais,
317
317
  shipmentDetails
318
318
  });
319
319
 
@@ -414,7 +414,7 @@ export class IntegrationManager {
414
414
  if (e instanceof Error) console.error(e.stack);
415
415
  }
416
416
 
417
- const { nombre_pais_en } =
417
+ const { nombre_pais } =
418
418
  await countriesService.getCountryFromCountryCode(
419
419
  detail.bulto.origen
420
420
  );
@@ -432,7 +432,7 @@ export class IntegrationManager {
432
432
  eori_exportacion: user.eori_export,
433
433
  peso_bruto: detail.bulto.peso,
434
434
  peso_neto: detail.bulto.peso,
435
- origen: nombre_pais_en || countryName,
435
+ origen: nombre_pais || countryName,
436
436
  cantidad: detail.cantidad,
437
437
  reason_export: '1'
438
438
  } as UserDefaultConfigurationContent;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cardus",
3
- "version": "0.0.115",
3
+ "version": "0.0.116",
4
4
  "description": "an integration manager",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
package/types/index.ts CHANGED
@@ -326,11 +326,7 @@ export type CountriesService = {
326
326
 
327
327
  getCountryFromCountryCode: (
328
328
  countryCode: string
329
- ) => Promise<{
330
- nombre_pais: string;
331
- id_pais?: number;
332
- nombre_pais_en: string;
333
- }>;
329
+ ) => Promise<{ nombre_pais: string; id_pais?: number }>;
334
330
 
335
331
  getProvinceByCountryIdAndPostalCode: (
336
332
  id_pais: Country['id_pais'],