cardus 0.0.11 → 0.0.12

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
@@ -101,7 +101,9 @@ class IntegrationManager {
101
101
  const insertOrdersResult = yield new this.executionManager({
102
102
  arrayParams: allOrders,
103
103
  executable: (order) => __awaiter(this, void 0, void 0, function* () {
104
- const parsedOrder = yield modificarOrdenOriginal({ originalOrder: order });
104
+ const parsedOrder = yield modificarOrdenOriginal({
105
+ originalOrder: order
106
+ });
105
107
  const duplicatedTempShipment = yield integrationsService.checkDuplicateTempShipment(parsedOrder.codigoEnvioExterno, idUsuario);
106
108
  if (duplicatedTempShipment)
107
109
  throw new Error('Envio Duplicado');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cardus",
3
- "version": "0.0.11",
3
+ "version": "0.0.12",
4
4
  "description": "an integration manager",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
package/types/index.ts CHANGED
@@ -70,6 +70,10 @@ export type Bulto = {
70
70
  alto: number;
71
71
  ancho: number;
72
72
  largo: number;
73
+ sku_producto: string | null;
74
+ id_producto: number | null;
75
+ url_imagen: string | null;
76
+ nombre_producto: string | null;
73
77
  };
74
78
  cantidad: number;
75
79
  };
@@ -152,7 +156,7 @@ export type IntegrationsService = {
152
156
  }) => number | false;
153
157
  insertTempShipmentLines: (params: {
154
158
  id_envio: number;
155
- bulto: Bulto['bulto'];
159
+ bulto: Pick<Bulto['bulto'], 'peso' | 'alto' | 'ancho' | 'largo'>;
156
160
  }) => Promise<undefined>;
157
161
  insertTempDetailsShipment: (params: {
158
162
  id_envio: number;