@zauru-sdk/services 2.0.28 → 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,14 +6,15 @@ import httpZauru from "./httpZauru.js";
|
|
|
6
6
|
/**
|
|
7
7
|
* getShipments
|
|
8
8
|
*/
|
|
9
|
-
export async function getShipments(session,
|
|
9
|
+
export async function getShipments(session, config) {
|
|
10
10
|
return handlePossibleAxiosErrors(async () => {
|
|
11
11
|
const headers = await getGraphQLAPIHeaders(session);
|
|
12
12
|
const query = getLast100ShipmentsStringQuery({
|
|
13
|
-
agency_to_id: Number(agency_to_id),
|
|
14
|
-
suffix,
|
|
13
|
+
agency_to_id: Number(config.agency_to_id),
|
|
14
|
+
suffix: config.suffix,
|
|
15
|
+
id_number: config.id_number,
|
|
16
|
+
id_number_not_null: config.id_number_not_null,
|
|
15
17
|
});
|
|
16
|
-
console.log("BUSCANDO: ", JSON.stringify({ query }));
|
|
17
18
|
const response = await httpGraphQLAPI.post("", {
|
|
18
19
|
query,
|
|
19
20
|
}, { headers });
|
|
@@ -3,7 +3,12 @@ import { AxiosUtilsResponse, ShipmentGraphQL } from "@zauru-sdk/types";
|
|
|
3
3
|
/**
|
|
4
4
|
* getShipments
|
|
5
5
|
*/
|
|
6
|
-
export declare function getShipments(session: Session,
|
|
6
|
+
export declare function getShipments(session: Session, config: {
|
|
7
|
+
agency_to_id: string | number;
|
|
8
|
+
suffix?: string;
|
|
9
|
+
id_number?: string;
|
|
10
|
+
id_number_not_null?: boolean;
|
|
11
|
+
}): Promise<AxiosUtilsResponse<ShipmentGraphQL[]>>;
|
|
7
12
|
/**
|
|
8
13
|
* receiveShipment_booking
|
|
9
14
|
* @param headers
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zauru-sdk/services",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.29",
|
|
4
4
|
"description": "Servicios de consulta a Zauru",
|
|
5
5
|
"main": "./dist/esm/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -26,10 +26,10 @@
|
|
|
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.
|
|
29
|
+
"@zauru-sdk/graphql": "^2.0.29",
|
|
30
30
|
"@zauru-sdk/types": "^2.0.24",
|
|
31
31
|
"axios": "^1.6.7",
|
|
32
32
|
"chalk": "5.3.0"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "c85e2aba30765b5735d0f1348cb37f4e666e96a2"
|
|
35
35
|
}
|