@zauru-sdk/services 2.0.33 → 2.0.35

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.
@@ -10,7 +10,9 @@ export async function getShipments(session, config) {
10
10
  return handlePossibleAxiosErrors(async () => {
11
11
  const headers = await getGraphQLAPIHeaders(session);
12
12
  const query = getShipmentsStringQuery({
13
- agency_to_id: Number(config.agency_to_id),
13
+ agency_to_id: config.agency_to_id
14
+ ? Number(config.agency_to_id)
15
+ : undefined,
14
16
  agency_from_id: config.agency_from_id
15
17
  ? Number(config.agency_from_id)
16
18
  : undefined,
@@ -4,7 +4,7 @@ import { AxiosUtilsResponse, ShipmentGraphQL } from "@zauru-sdk/types";
4
4
  * getShipments
5
5
  */
6
6
  export declare function getShipments(session: Session, config: {
7
- agency_to_id: string | number;
7
+ agency_to_id?: string | number;
8
8
  agency_from_id?: string | number;
9
9
  suffix?: string;
10
10
  id_number?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zauru-sdk/services",
3
- "version": "2.0.33",
3
+ "version": "2.0.35",
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.33",
27
+ "@zauru-sdk/common": "^2.0.34",
28
28
  "@zauru-sdk/config": "^2.0.0",
29
29
  "@zauru-sdk/graphql": "^2.0.33",
30
- "@zauru-sdk/types": "^2.0.33",
30
+ "@zauru-sdk/types": "^2.0.34",
31
31
  "axios": "^1.6.7",
32
32
  "chalk": "5.3.0"
33
33
  },
34
- "gitHead": "16838516924a5b98ef2fdf89ec46881451b9589b"
34
+ "gitHead": "5736aff4b853109557c218e2757d3b607aaf32f8"
35
35
  }