cardus 0.0.44 → 0.0.46

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
@@ -65,8 +65,7 @@ class IntegrationManager {
65
65
  : null,
66
66
  marketplaceId: order.marketplaceId,
67
67
  id_documento_holded: order.idDocumentoHolded,
68
- tipo_documento_holded: order.tipoDocumentoHolded || '',
69
- agencia_envio_integracion: order.agenciaEnvioIntegracion || ''
68
+ tipo_documento_holded: order.tipoDocumentoHolded || ''
70
69
  });
71
70
  };
72
71
  this.insertTempShipmentLines = (_c) => __awaiter(this, [_c], void 0, function* ({ idEnvioTemporal, group }) {
@@ -103,7 +103,8 @@ const cookTempShipment = (_a) => __awaiter(void 0, [_a], void 0, function* ({ or
103
103
  num_bultos: warehouseId ? 0 : order.lineas.length,
104
104
  tipo_envio: shipmentType,
105
105
  codigo_envio_externo: order.codigoEnvioExterno,
106
- id_almacen: warehouseId
106
+ id_almacen: warehouseId,
107
+ agencia_envio_integracion: order.agenciaEnvioIntegracion
107
108
  });
108
109
  const setters = [
109
110
  setDatosVendedor,
package/index.ts CHANGED
@@ -326,8 +326,7 @@ export class IntegrationManager {
326
326
  : null,
327
327
  marketplaceId: order.marketplaceId,
328
328
  id_documento_holded: order.idDocumentoHolded,
329
- tipo_documento_holded: order.tipoDocumentoHolded || '',
330
- agencia_envio_integracion: order.agenciaEnvioIntegracion || ''
329
+ tipo_documento_holded: order.tipoDocumentoHolded || ''
331
330
  });
332
331
  };
333
332
 
@@ -150,7 +150,8 @@ export const cookTempShipment = async ({
150
150
  num_bultos: warehouseId ? 0 : order.lineas.length,
151
151
  tipo_envio: shipmentType,
152
152
  codigo_envio_externo: order.codigoEnvioExterno,
153
- id_almacen: warehouseId
153
+ id_almacen: warehouseId,
154
+ agencia_envio_integracion: order.agenciaEnvioIntegracion
154
155
  });
155
156
 
156
157
  const setters = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cardus",
3
- "version": "0.0.44",
3
+ "version": "0.0.46",
4
4
  "description": "an integration manager",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
package/types/index.ts CHANGED
@@ -33,6 +33,7 @@ export type Shipment = {
33
33
  codigo_envio_externo: string;
34
34
  id_almacen: number;
35
35
  priority: 0 | 1;
36
+ agencia_envio_integracion: string | null;
36
37
  };
37
38
 
38
39
  const shipmentTypes = {
@@ -167,7 +168,6 @@ export type IntegrationsService = {
167
168
  marketplaceId?: string | null;
168
169
  id_documento_holded?: string;
169
170
  tipo_documento_holded?: string;
170
- agencia_envio_integracion: string | null;
171
171
  }) => number | false;
172
172
 
173
173
  insertTempShipmentLines: (params: {
@@ -355,5 +355,4 @@ type InsertContentShipmentExternal = {
355
355
  marketplaceId?: string | null;
356
356
  id_documento_holded?: string;
357
357
  tipo_documento_holded?: string;
358
- agencia_envio_integracion: string | null;
359
358
  };