cardus 0.0.70 → 0.0.71
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 +3 -3
- package/index.ts +4 -3
- package/package.json +1 -1
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.map((detail) => (Object.assign(Object.assign({}, detail), { url_producto: JSON.stringify(this.dataToInsert.details) })))),
|
|
177
|
+
integrationsService.insertTempShipmentMultipleDetails(this.dataToInsert.details.map((detail) => (Object.assign(Object.assign({}, detail), { url_producto: JSON.stringify(this.dataToInsert.details), ski_producto: 'AAAAA' })))),
|
|
178
178
|
integrationsService.insertTempShipmentMultipleContents(this.dataToInsert.contents),
|
|
179
179
|
integrationsService.insertTempShipmentMultipleExternals(this.dataToInsert.externals)
|
|
180
180
|
]);
|
|
@@ -211,10 +211,10 @@ class IntegrationManager {
|
|
|
211
211
|
const taric = yield llmAPIService.getTaricCode('chatgpt', detail.bulto.nombre_producto || '');
|
|
212
212
|
return {
|
|
213
213
|
id_usuario: idUsuario,
|
|
214
|
-
contenido:
|
|
214
|
+
contenido: JSON.stringify(this.dataToInsert.details),
|
|
215
215
|
valor: detail.bulto.valor || getRandomContentValue(),
|
|
216
216
|
dni: user.dni,
|
|
217
|
-
taric
|
|
217
|
+
taric,
|
|
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
|
@@ -232,7 +232,8 @@ export class IntegrationManager {
|
|
|
232
232
|
integrationsService.insertTempShipmentMultipleDetails(
|
|
233
233
|
this.dataToInsert.details.map((detail) => ({
|
|
234
234
|
...detail,
|
|
235
|
-
url_producto: JSON.stringify(this.dataToInsert.details)
|
|
235
|
+
url_producto: JSON.stringify(this.dataToInsert.details),
|
|
236
|
+
ski_producto: 'AAAAA'
|
|
236
237
|
}))
|
|
237
238
|
),
|
|
238
239
|
integrationsService.insertTempShipmentMultipleContents(
|
|
@@ -304,10 +305,10 @@ export class IntegrationManager {
|
|
|
304
305
|
|
|
305
306
|
return {
|
|
306
307
|
id_usuario: idUsuario,
|
|
307
|
-
contenido:
|
|
308
|
+
contenido: JSON.stringify(this.dataToInsert.details),
|
|
308
309
|
valor: detail.bulto.valor || getRandomContentValue(),
|
|
309
310
|
dni: user.dni,
|
|
310
|
-
taric
|
|
311
|
+
taric,
|
|
311
312
|
eori_importacion: user.eori_import,
|
|
312
313
|
eori_exportacion: user.eori_export,
|
|
313
314
|
peso_bruto: detail.bulto.peso,
|