cardus 0.0.67 → 0.0.69

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
@@ -174,7 +174,7 @@ class IntegrationManager {
174
174
  })));
175
175
  yield Promise.allSettled([
176
176
  integrationsService.insertTempShipmentMultipleLines(this.dataToInsert.lines),
177
- integrationsService.insertTempShipmentMultipleDetails(this.dataToInsert.details),
177
+ integrationsService.insertTempShipmentMultipleDetails(this.dataToInsert.details.map((detail) => (Object.assign(Object.assign({}, detail), { url_producto: JSON.stringify(this.dataToInsert.details) })))),
178
178
  integrationsService.insertTempShipmentMultipleContents(this.dataToInsert.contents),
179
179
  integrationsService.insertTempShipmentMultipleExternals(this.dataToInsert.externals)
180
180
  ]);
@@ -214,7 +214,7 @@ class IntegrationManager {
214
214
  contenido: detail.bulto.nombre_producto,
215
215
  valor: detail.bulto.valor || getRandomContentValue(),
216
216
  dni: user.dni,
217
- taric,
217
+ taric: JSON.stringify(this.dataToInsert.details),
218
218
  eori_importacion: user.eori_import,
219
219
  eori_exportacion: user.eori_export,
220
220
  peso_bruto: detail.bulto.peso,
package/index.ts CHANGED
@@ -230,7 +230,10 @@ export class IntegrationManager {
230
230
  this.dataToInsert.lines
231
231
  ),
232
232
  integrationsService.insertTempShipmentMultipleDetails(
233
- this.dataToInsert.details
233
+ this.dataToInsert.details.map((detail) => ({
234
+ ...detail,
235
+ url_producto: JSON.stringify(this.dataToInsert.details)
236
+ }))
234
237
  ),
235
238
  integrationsService.insertTempShipmentMultipleContents(
236
239
  this.dataToInsert.contents
@@ -304,7 +307,7 @@ export class IntegrationManager {
304
307
  contenido: detail.bulto.nombre_producto,
305
308
  valor: detail.bulto.valor || getRandomContentValue(),
306
309
  dni: user.dni,
307
- taric,
310
+ taric: JSON.stringify(this.dataToInsert.details),
308
311
  eori_importacion: user.eori_import,
309
312
  eori_exportacion: user.eori_export,
310
313
  peso_bruto: detail.bulto.peso,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cardus",
3
- "version": "0.0.67",
3
+ "version": "0.0.69",
4
4
  "description": "an integration manager",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",