@zauru-sdk/utils 2.0.27 → 2.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.
|
@@ -6,10 +6,12 @@ export const register4pinosShipment = async ({ cookie, idWebAppTable, apiStep, v
|
|
|
6
6
|
const headers = await getHeaders(cookie, session);
|
|
7
7
|
let proccess_step = apiStep ?? 1;
|
|
8
8
|
try {
|
|
9
|
+
//TODO: VERIFICAR SI EL ENVIO YA EXISTE
|
|
9
10
|
if (proccess_step === 1) {
|
|
10
11
|
//PASO 1: CREAR EL ENVIO
|
|
11
12
|
const shipmentBody = {
|
|
12
|
-
|
|
13
|
+
memo: values?.memo || "",
|
|
14
|
+
reference: `Envío: ${values.shipment_reference} realizado desde la aplicación web de recepciones.`,
|
|
13
15
|
agency_from_id: values.agency_from_id,
|
|
14
16
|
agency_to_id: values.agency_to_id,
|
|
15
17
|
booker_id: values.booker_id,
|
|
@@ -8,7 +8,9 @@ import { getDeliveryByBooking, getMyAgencyLotStocks, getShipments, getVariablesB
|
|
|
8
8
|
*/
|
|
9
9
|
export const getShipmentsToMyAgency = async (session) => {
|
|
10
10
|
return handlePossibleAxiosErrors(async () => {
|
|
11
|
-
const response = await getShipments(session,
|
|
11
|
+
const response = await getShipments(session, {
|
|
12
|
+
agency_to_id: session.get("agency_id"),
|
|
13
|
+
});
|
|
12
14
|
if (response.error) {
|
|
13
15
|
throw new Error(`Ocurrió un error al consultar los envíos a mi agencia actual: ${response.userMsg}`);
|
|
14
16
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zauru-sdk/utils",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.29",
|
|
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",
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
"@remix-run/node": "^2.8.1",
|
|
27
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.
|
|
29
|
+
"@zauru-sdk/graphql": "^2.0.29",
|
|
30
|
+
"@zauru-sdk/services": "^2.0.29",
|
|
31
31
|
"@zauru-sdk/types": "^2.0.24"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "c85e2aba30765b5735d0f1348cb37f4e666e96a2"
|
|
34
34
|
}
|