@zauru-sdk/services 1.0.88 → 1.0.89

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.
@@ -325,6 +325,10 @@ const getGraphQLPurchaseOrderBetweenDates = (session, dates, config = {
325
325
  withShipmentToMyAgency: false,
326
326
  withLotStocksToMyAgency: false,
327
327
  betweenIssueDate: false,
328
+ withPODetails: true,
329
+ withLots: true,
330
+ withShipmentPurchaseOrders: true,
331
+ withWebAppRows: true,
328
332
  }) => {
329
333
  return (0, common_1.handlePossibleAxiosErrors)(async () => {
330
334
  const headers = await (0, common_js_1.getGraphQLAPIHeaders)(session);
@@ -347,6 +351,10 @@ const getGraphQLPurchaseOrderBetweenDates = (session, dates, config = {
347
351
  betweenIssueDate: config.betweenIssueDate,
348
352
  payeeId: config.payeeId,
349
353
  id_number: config.id_number,
354
+ withPODetails: config.withPODetails,
355
+ withLots: config.withLots,
356
+ withShipmentPurchaseOrders: config.withShipmentPurchaseOrders,
357
+ withWebAppRows: config.withWebAppRows,
350
358
  });
351
359
  const variables = {
352
360
  startDate: (0, common_1.formatDateToUTC)(dates.startDate),
@@ -305,6 +305,10 @@ export const getGraphQLPurchaseOrderBetweenDates = (session, dates, config = {
305
305
  withShipmentToMyAgency: false,
306
306
  withLotStocksToMyAgency: false,
307
307
  betweenIssueDate: false,
308
+ withPODetails: true,
309
+ withLots: true,
310
+ withShipmentPurchaseOrders: true,
311
+ withWebAppRows: true,
308
312
  }) => {
309
313
  return handlePossibleAxiosErrors(async () => {
310
314
  const headers = await getGraphQLAPIHeaders(session);
@@ -327,6 +331,10 @@ export const getGraphQLPurchaseOrderBetweenDates = (session, dates, config = {
327
331
  betweenIssueDate: config.betweenIssueDate,
328
332
  payeeId: config.payeeId,
329
333
  id_number: config.id_number,
334
+ withPODetails: config.withPODetails,
335
+ withLots: config.withLots,
336
+ withShipmentPurchaseOrders: config.withShipmentPurchaseOrders,
337
+ withWebAppRows: config.withWebAppRows,
330
338
  });
331
339
  const variables = {
332
340
  startDate: formatDateToUTC(dates.startDate),
@@ -137,6 +137,10 @@ export declare const getGraphQLPurchaseOrderBetweenDates: (session: Session, dat
137
137
  payeeCategoryId?: number | string;
138
138
  payeeId?: number | string;
139
139
  betweenIssueDate?: boolean;
140
+ withPODetails?: boolean;
141
+ withLots?: boolean;
142
+ withShipmentPurchaseOrders?: boolean;
143
+ withWebAppRows?: boolean;
140
144
  }) => Promise<AxiosUtilsResponse<PurchaseOrderGraphQL[]>>;
141
145
  /**
142
146
  * deletePurchaseOrder
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zauru-sdk/services",
3
- "version": "1.0.88",
3
+ "version": "1.0.89",
4
4
  "description": "Servicios de consulta a Zauru",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",
@@ -27,10 +27,10 @@
27
27
  "@remix-run/node": "^2.8.1",
28
28
  "@zauru-sdk/common": "^1.0.88",
29
29
  "@zauru-sdk/config": "^1.0.60",
30
- "@zauru-sdk/graphql": "^1.0.83",
30
+ "@zauru-sdk/graphql": "^1.0.89",
31
31
  "@zauru-sdk/types": "^1.0.88",
32
32
  "axios": "^1.6.7",
33
33
  "chalk": "5.3.0"
34
34
  },
35
- "gitHead": "353e46a3cbd7087e8a09c5489b8e66baf71a027b"
35
+ "gitHead": "289145b578d297a2247e5017c894d3a2e1fd6629"
36
36
  }