cardus 0.0.35 → 0.0.37

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
@@ -56,7 +56,7 @@ class IntegrationManager {
56
56
  countriesService: this.services.countriesService,
57
57
  isPriority
58
58
  });
59
- return yield this.services.integrationsService.insertTempShipment(tempShipmentData);
59
+ return yield this.services.integrationsService.insertTempShipment(tempShipmentData, false);
60
60
  });
61
61
  this.insertExternalShipment = ({ idUsuario, order, idEnvioTemporal }) => {
62
62
  dataToInsert.externals.push({
@@ -151,7 +151,7 @@ class IntegrationManager {
151
151
  isPriority: yield isPriorityByDefault(),
152
152
  });
153
153
  }),
154
- regularExecutionTime: 100, // ms
154
+ regularExecutionTime: 8000, // ms
155
155
  initialBatchQuantity: 5 // de cinco en cinco
156
156
  }).upload();
157
157
  const successfullShipments = insertOrdersResult
package/index.ts CHANGED
@@ -141,7 +141,7 @@ export class IntegrationManager {
141
141
  isPriority: await isPriorityByDefault(),
142
142
  });
143
143
  },
144
- regularExecutionTime: 100, // ms
144
+ regularExecutionTime: 8000, // ms
145
145
  initialBatchQuantity: 5 // de cinco en cinco
146
146
  }).upload();
147
147
 
@@ -285,7 +285,8 @@ export class IntegrationManager {
285
285
  });
286
286
 
287
287
  return await this.services.integrationsService.insertTempShipment(
288
- tempShipmentData
288
+ tempShipmentData,
289
+ false
289
290
  );
290
291
  };
291
292
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cardus",
3
- "version": "0.0.35",
3
+ "version": "0.0.37",
4
4
  "description": "an integration manager",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
package/types/index.ts CHANGED
@@ -153,7 +153,7 @@ export type IntegrationsService = {
153
153
  idUsuario: number
154
154
  ) => Promise<boolean>;
155
155
 
156
- insertTempShipment: (params: Shipment) => number | false;
156
+ insertTempShipment: (params: Shipment, check?: boolean) => number | false;
157
157
 
158
158
  insertExternalShipment: (params: {
159
159
  id_envio_temporal_usuario: number;