cardus 0.0.27 → 0.0.29

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
@@ -120,10 +120,10 @@ class IntegrationManager {
120
120
  return 0;
121
121
  }
122
122
  else {
123
- return +user.priority; // 1 o 0
123
+ return +user.priority_defecto;
124
124
  }
125
125
  });
126
- const insertOrdersResult = new this.executionManager({
126
+ const insertOrdersResult = yield new this.executionManager({
127
127
  arrayParams: allOrders,
128
128
  executable: (order) => __awaiter(this, void 0, void 0, function* () {
129
129
  const parsedOrder = yield modificarOrdenOriginal({
package/index.ts CHANGED
@@ -106,11 +106,11 @@ export class IntegrationManager {
106
106
  if (!esPotencialmentePriority) {
107
107
  return 0;
108
108
  } else {
109
- return +user.priority; // 1 o 0
109
+ return +user.priority_defecto;
110
110
  }
111
111
  };
112
112
 
113
- const insertOrdersResult = new this.executionManager({
113
+ const insertOrdersResult = await new this.executionManager({
114
114
  arrayParams: allOrders,
115
115
  executable: async (order: OriginalOrder) => {
116
116
  const parsedOrder = await modificarOrdenOriginal({
@@ -407,4 +407,4 @@ export class IntegrationManager {
407
407
 
408
408
  await Promise.allSettled(quantityRelatedFunctions);
409
409
  }
410
- }
410
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cardus",
3
- "version": "0.0.27",
3
+ "version": "0.0.29",
4
4
  "description": "an integration manager",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
package/types/index.ts CHANGED
@@ -246,7 +246,7 @@ type User = {
246
246
  id_usuario: number;
247
247
  tipo_cliente: number;
248
248
  id_comercial: number;
249
- priority: number;
249
+ priority_defecto: number;
250
250
  };
251
251
 
252
252
  export type ConfigurationService = {
@@ -303,4 +303,4 @@ export type GetAgencyIdForTempShipment = (params: {
303
303
  export type ExecutionManager = {
304
304
  upload(): ExecutionManagerUploadReturn[];
305
305
  new (params: ExecutionManagerConstructorParams): ExecutionManager;
306
- };
306
+ };