cardus 0.0.28 → 0.0.30

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
@@ -123,7 +123,7 @@ class IntegrationManager {
123
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
@@ -110,7 +110,7 @@ export class IntegrationManager {
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.28",
3
+ "version": "0.0.30",
4
4
  "description": "an integration manager",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
package/types/index.ts CHANGED
@@ -96,6 +96,7 @@ export type ModifiedOrder = {
96
96
  idDocumentoHolded?: string;
97
97
  tipoDocumentoHolded?: string;
98
98
  isPriority: 0 | 1;
99
+ idCarrier: number | null;
99
100
  };
100
101
 
101
102
  export interface ModifiedOrderExtended extends ModifiedOrder {
@@ -303,4 +304,4 @@ export type GetAgencyIdForTempShipment = (params: {
303
304
  export type ExecutionManager = {
304
305
  upload(): ExecutionManagerUploadReturn[];
305
306
  new (params: ExecutionManagerConstructorParams): ExecutionManager;
306
- };
307
+ };