@zauru-sdk/services 2.0.32 → 2.0.33
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.
|
@@ -56,7 +56,9 @@ export const getBookings = async (session, wheres = []) => {
|
|
|
56
56
|
return handlePossibleAxiosErrors(async () => {
|
|
57
57
|
const headers = await getGraphQLAPIHeaders(session);
|
|
58
58
|
const response = await httpGraphQLAPI.post("", {
|
|
59
|
-
query: getShipmentsStringQuery(
|
|
59
|
+
query: getShipmentsStringQuery({
|
|
60
|
+
wheres: [...wheres, "delivered: {_eq: false}"],
|
|
61
|
+
}),
|
|
60
62
|
}, { headers });
|
|
61
63
|
if (response.data.errors) {
|
|
62
64
|
throw new Error(response.data.errors.map((x) => x.message).join(";"));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { handlePossibleAxiosErrors } from "@zauru-sdk/common";
|
|
2
2
|
import { getGraphQLAPIHeaders } from "../common.js";
|
|
3
3
|
import httpGraphQLAPI from "./httpGraphQL.js";
|
|
4
|
-
import {
|
|
4
|
+
import { getShipmentsStringQuery } from "@zauru-sdk/graphql";
|
|
5
5
|
import httpZauru from "./httpZauru.js";
|
|
6
6
|
/**
|
|
7
7
|
* getShipments
|
|
@@ -9,7 +9,7 @@ import httpZauru from "./httpZauru.js";
|
|
|
9
9
|
export async function getShipments(session, config) {
|
|
10
10
|
return handlePossibleAxiosErrors(async () => {
|
|
11
11
|
const headers = await getGraphQLAPIHeaders(session);
|
|
12
|
-
const query =
|
|
12
|
+
const query = getShipmentsStringQuery({
|
|
13
13
|
agency_to_id: Number(config.agency_to_id),
|
|
14
14
|
agency_from_id: config.agency_from_id
|
|
15
15
|
? Number(config.agency_from_id)
|
|
@@ -18,6 +18,7 @@ export async function getShipments(session, config) {
|
|
|
18
18
|
id_number: config.id_number,
|
|
19
19
|
id_number_not_null: config.id_number_not_null,
|
|
20
20
|
id_number_not_empty: config.id_number_not_empty,
|
|
21
|
+
withMovementLots: config.withMovementLots,
|
|
21
22
|
});
|
|
22
23
|
const response = await httpGraphQLAPI.post("", {
|
|
23
24
|
query,
|
|
@@ -10,6 +10,7 @@ export declare function getShipments(session: Session, config: {
|
|
|
10
10
|
id_number?: string;
|
|
11
11
|
id_number_not_null?: boolean;
|
|
12
12
|
id_number_not_empty?: boolean;
|
|
13
|
+
withMovementLots?: boolean;
|
|
13
14
|
}): Promise<AxiosUtilsResponse<ShipmentGraphQL[]>>;
|
|
14
15
|
/**
|
|
15
16
|
* receiveShipment_booking
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zauru-sdk/services",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.33",
|
|
4
4
|
"description": "Servicios de consulta a Zauru",
|
|
5
5
|
"main": "./dist/esm/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -24,12 +24,12 @@
|
|
|
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.33",
|
|
28
28
|
"@zauru-sdk/config": "^2.0.0",
|
|
29
|
-
"@zauru-sdk/graphql": "^2.0.
|
|
30
|
-
"@zauru-sdk/types": "^2.0.
|
|
29
|
+
"@zauru-sdk/graphql": "^2.0.33",
|
|
30
|
+
"@zauru-sdk/types": "^2.0.33",
|
|
31
31
|
"axios": "^1.6.7",
|
|
32
32
|
"chalk": "5.3.0"
|
|
33
33
|
},
|
|
34
|
-
"gitHead": "
|
|
34
|
+
"gitHead": "16838516924a5b98ef2fdf89ec46881451b9589b"
|
|
35
35
|
}
|