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 +3 -1
- package/package.json +1 -1
- package/types/index.ts +5 -1
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({
|
|
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
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;
|