@zauru-sdk/utils 2.0.22 → 2.0.24
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.
|
@@ -11,7 +11,7 @@ export const register4pinosShipment = async ({ cookie, idWebAppTable, values, })
|
|
|
11
11
|
for (const purchaseOrder of values.purchase_orders) {
|
|
12
12
|
const response = await updateReceivedPurchaseOrder(headers, {
|
|
13
13
|
purchase_order: {
|
|
14
|
-
|
|
14
|
+
shipment_reference: values.shipment_reference,
|
|
15
15
|
},
|
|
16
16
|
}, purchaseOrder.id);
|
|
17
17
|
if (response.error) {
|
|
@@ -20,10 +20,11 @@ export const register4pinosShipment = async ({ cookie, idWebAppTable, values, })
|
|
|
20
20
|
}
|
|
21
21
|
//PASO 2: CREAR EL ENVIO
|
|
22
22
|
const shipmentBody = {
|
|
23
|
-
reference: `Envío: ${values.
|
|
23
|
+
reference: `Envío: ${values.shipment_reference} realizado desde la aplicación web.`,
|
|
24
24
|
agency_from_id: values.agency_from_id,
|
|
25
25
|
agency_to_id: values.agency_to_id,
|
|
26
26
|
booker_id: values.booker_id,
|
|
27
|
+
id_number: values.shipment_reference,
|
|
27
28
|
transporter_id: values.transporter_id,
|
|
28
29
|
planned_delivery: values.planned_delivery,
|
|
29
30
|
planned_shipping: values.planned_shipping,
|
|
@@ -69,7 +70,7 @@ export const retryShipmennt = async (register, session, headers, hostname, cooki
|
|
|
69
70
|
};
|
|
70
71
|
}
|
|
71
72
|
if (hostname.includes("localhost")) {
|
|
72
|
-
console.log("------- EJECUTANDO LOCALMENTE", ` para ${register.data?.formSubmited?.
|
|
73
|
+
console.log("------- EJECUTANDO LOCALMENTE", ` para ${register.data?.formSubmited?.shipment_reference}`);
|
|
73
74
|
register4pinosShipment({
|
|
74
75
|
values: register.data?.formSubmited,
|
|
75
76
|
cookie: cookie || "",
|
|
@@ -77,7 +78,7 @@ export const retryShipmennt = async (register, session, headers, hostname, cooki
|
|
|
77
78
|
});
|
|
78
79
|
}
|
|
79
80
|
else {
|
|
80
|
-
console.log("------- ENVIANDO A EJECUTAR NETLIFY FUNCTION: 4pinosNewShipment-background", ` para ${register.data?.formSubmited?.
|
|
81
|
+
console.log("------- ENVIANDO A EJECUTAR NETLIFY FUNCTION: 4pinosNewShipment-background", ` para ${register.data?.formSubmited?.shipment_reference}`);
|
|
81
82
|
fetch(`https://${hostname}/.netlify/functions/4pinosNewShipment-background`, {
|
|
82
83
|
method: "post",
|
|
83
84
|
headers: { "Content-type": "application/json" },
|
|
@@ -10,7 +10,7 @@ export declare const register4pinosShipment: ({ cookie, idWebAppTable, values, }
|
|
|
10
10
|
transporter_id: number;
|
|
11
11
|
planned_shipping: string;
|
|
12
12
|
planned_delivery: string;
|
|
13
|
-
|
|
13
|
+
shipment_reference: string;
|
|
14
14
|
agency_to_id: number;
|
|
15
15
|
purchase_orders: {
|
|
16
16
|
id: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zauru-sdk/utils",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.24",
|
|
4
4
|
"description": "Utilidades, parseo de request y demás para desarrollo de webapps de Zauru",
|
|
5
5
|
"main": "./dist/esm/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -24,11 +24,11 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@remix-run/node": "^2.8.1",
|
|
27
|
-
"@zauru-sdk/common": "^2.0.
|
|
27
|
+
"@zauru-sdk/common": "^2.0.24",
|
|
28
28
|
"@zauru-sdk/config": "^2.0.0",
|
|
29
|
-
"@zauru-sdk/graphql": "^2.0.
|
|
30
|
-
"@zauru-sdk/services": "^2.0.
|
|
31
|
-
"@zauru-sdk/types": "^2.0.
|
|
29
|
+
"@zauru-sdk/graphql": "^2.0.23",
|
|
30
|
+
"@zauru-sdk/services": "^2.0.24",
|
|
31
|
+
"@zauru-sdk/types": "^2.0.24"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "4246f96df338c55f7c90d565f466691de6729ec2"
|
|
34
34
|
}
|