@zauru-sdk/services 2.0.215 → 2.0.216

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.
@@ -262,7 +262,9 @@ export const updateReceivedPurchaseOrder = (headers, body, purchase_order_id) =>
262
262
  */
263
263
  export const shallowUpdatePurchaseOrder = (headers, body) => {
264
264
  return handlePossibleAxiosErrors(async () => {
265
- const response = await httpZauru.put(`/purchases/closed_purchase_orders/${body.id}/shallow_edit.json`, body, { headers });
265
+ const id = body.id;
266
+ delete body.id;
267
+ const response = await httpZauru.patch(`/purchases/closed_purchase_orders/${id}/shallow_update.json`, { purchase_order: body }, { headers });
266
268
  return response.data;
267
269
  });
268
270
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zauru-sdk/services",
3
- "version": "2.0.215",
3
+ "version": "2.0.216",
4
4
  "description": "Servicios de consulta a Zauru",
5
5
  "main": "./dist/esm/index.js",
6
6
  "module": "./dist/esm/index.js",
@@ -27,10 +27,10 @@
27
27
  "@upstash/redis": "^1.34.5",
28
28
  "@zauru-sdk/common": "^2.0.210",
29
29
  "@zauru-sdk/config": "^2.0.100",
30
- "@zauru-sdk/graphql": "^2.0.215",
30
+ "@zauru-sdk/graphql": "^2.0.216",
31
31
  "@zauru-sdk/types": "^2.0.210",
32
32
  "axios": "^1.6.7",
33
33
  "chalk": "5.3.0"
34
34
  },
35
- "gitHead": "de66fec20d71561f11b35a0113838db838db6b56"
35
+ "gitHead": "66b6f658705bd4642f63be3a28a0f24aebce73d7"
36
36
  }