@zauru-sdk/services 1.0.89 → 1.0.90

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.
@@ -329,6 +329,8 @@ const getGraphQLPurchaseOrderBetweenDates = (session, dates, config = {
329
329
  withLots: true,
330
330
  withShipmentPurchaseOrders: true,
331
331
  withWebAppRows: true,
332
+ payeeCategoryIds: [],
333
+ excludePayeeCategoryIds: [],
332
334
  }) => {
333
335
  return (0, common_1.handlePossibleAxiosErrors)(async () => {
334
336
  const headers = await (0, common_js_1.getGraphQLAPIHeaders)(session);
@@ -355,6 +357,8 @@ const getGraphQLPurchaseOrderBetweenDates = (session, dates, config = {
355
357
  withLots: config.withLots,
356
358
  withShipmentPurchaseOrders: config.withShipmentPurchaseOrders,
357
359
  withWebAppRows: config.withWebAppRows,
360
+ payeeCategoryIds: config.payeeCategoryIds,
361
+ excludePayeeCategoryIds: config.excludePayeeCategoryIds,
358
362
  });
359
363
  const variables = {
360
364
  startDate: (0, common_1.formatDateToUTC)(dates.startDate),
@@ -309,6 +309,8 @@ export const getGraphQLPurchaseOrderBetweenDates = (session, dates, config = {
309
309
  withLots: true,
310
310
  withShipmentPurchaseOrders: true,
311
311
  withWebAppRows: true,
312
+ payeeCategoryIds: [],
313
+ excludePayeeCategoryIds: [],
312
314
  }) => {
313
315
  return handlePossibleAxiosErrors(async () => {
314
316
  const headers = await getGraphQLAPIHeaders(session);
@@ -335,6 +337,8 @@ export const getGraphQLPurchaseOrderBetweenDates = (session, dates, config = {
335
337
  withLots: config.withLots,
336
338
  withShipmentPurchaseOrders: config.withShipmentPurchaseOrders,
337
339
  withWebAppRows: config.withWebAppRows,
340
+ payeeCategoryIds: config.payeeCategoryIds,
341
+ excludePayeeCategoryIds: config.excludePayeeCategoryIds,
338
342
  });
339
343
  const variables = {
340
344
  startDate: formatDateToUTC(dates.startDate),
@@ -125,7 +125,7 @@ export declare const getGraphQLPurchaseOrderBetweenDates: (session: Session, dat
125
125
  endDate: string;
126
126
  }, config?: {
127
127
  agencyFilter: boolean;
128
- agencyId?: number;
128
+ agencyId?: number | string;
129
129
  id_number?: string;
130
130
  useProductionAgencyId?: boolean;
131
131
  consolidateIdFilter?: boolean;
@@ -141,6 +141,8 @@ export declare const getGraphQLPurchaseOrderBetweenDates: (session: Session, dat
141
141
  withLots?: boolean;
142
142
  withShipmentPurchaseOrders?: boolean;
143
143
  withWebAppRows?: boolean;
144
+ payeeCategoryIds?: number[];
145
+ excludePayeeCategoryIds?: number[];
144
146
  }) => Promise<AxiosUtilsResponse<PurchaseOrderGraphQL[]>>;
145
147
  /**
146
148
  * deletePurchaseOrder
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zauru-sdk/services",
3
- "version": "1.0.89",
3
+ "version": "1.0.90",
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.89",
30
+ "@zauru-sdk/graphql": "^1.0.90",
31
31
  "@zauru-sdk/types": "^1.0.88",
32
32
  "axios": "^1.6.7",
33
33
  "chalk": "5.3.0"
34
34
  },
35
- "gitHead": "289145b578d297a2247e5017c894d3a2e1fd6629"
35
+ "gitHead": "478ab8b28cd8758f4048969c94f6b8962a1751c7"
36
36
  }