@zauru-sdk/services 1.0.65 → 1.0.67

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.
@@ -344,6 +344,7 @@ const getGraphQLPurchaseOrderBetweenDates = (session, dates, config = {
344
344
  useProductionAgencyId: false,
345
345
  withShipmentToMyAgency: false,
346
346
  withLotStocksToMyAgency: false,
347
+ betweenIssueDate: false,
347
348
  }) => {
348
349
  return (0, common_1.handlePossibleAxiosErrors)(async () => {
349
350
  const headers = await (0, common_js_1.getGraphQLAPIHeaders)(session);
@@ -354,18 +355,18 @@ const getGraphQLPurchaseOrderBetweenDates = (session, dates, config = {
354
355
  agency_id = hashAgencyId[session.get("agency_id")];
355
356
  }
356
357
  const query = (0, graphql_1.getPurchaseOrdersBetweenDatesStringQuery)({
357
- agencyFilter: config.agencyFilter,
358
+ agencyId: config.agencyFilter
359
+ ? agency_id ?? session.get("agency_id")
360
+ : undefined,
358
361
  consolidateIdFilter: config.consolidateIdFilter,
359
362
  lotItemIdExclusion: config.lotItemIdExclusion,
360
363
  poDetailTagId: config.poDetailTagId,
361
364
  withLotStocks: config.withLotStocksToMyAgency,
362
- //itemId: config.itemId,
363
- //payeeCategoryId: config.payeeCategoryId,
365
+ itemId: config.itemId,
366
+ payeeCategoryId: config.payeeCategoryId,
367
+ betweenIssueDate: config.betweenIssueDate,
364
368
  });
365
369
  const variables = {
366
- ...(config.agencyFilter
367
- ? { agencyId: agency_id ?? session.get("agency_id") }
368
- : {}),
369
370
  ...(config.lotItemIdExclusion
370
371
  ? { lotItemIdExclusion: config.lotItemIdExclusion }
371
372
  : {}),
@@ -323,6 +323,7 @@ export const getGraphQLPurchaseOrderBetweenDates = (session, dates, config = {
323
323
  useProductionAgencyId: false,
324
324
  withShipmentToMyAgency: false,
325
325
  withLotStocksToMyAgency: false,
326
+ betweenIssueDate: false,
326
327
  }) => {
327
328
  return handlePossibleAxiosErrors(async () => {
328
329
  const headers = await getGraphQLAPIHeaders(session);
@@ -333,18 +334,18 @@ export const getGraphQLPurchaseOrderBetweenDates = (session, dates, config = {
333
334
  agency_id = hashAgencyId[session.get("agency_id")];
334
335
  }
335
336
  const query = getPurchaseOrdersBetweenDatesStringQuery({
336
- agencyFilter: config.agencyFilter,
337
+ agencyId: config.agencyFilter
338
+ ? agency_id ?? session.get("agency_id")
339
+ : undefined,
337
340
  consolidateIdFilter: config.consolidateIdFilter,
338
341
  lotItemIdExclusion: config.lotItemIdExclusion,
339
342
  poDetailTagId: config.poDetailTagId,
340
343
  withLotStocks: config.withLotStocksToMyAgency,
341
- //itemId: config.itemId,
342
- //payeeCategoryId: config.payeeCategoryId,
344
+ itemId: config.itemId,
345
+ payeeCategoryId: config.payeeCategoryId,
346
+ betweenIssueDate: config.betweenIssueDate,
343
347
  });
344
348
  const variables = {
345
- ...(config.agencyFilter
346
- ? { agencyId: agency_id ?? session.get("agency_id") }
347
- : {}),
348
349
  ...(config.lotItemIdExclusion
349
350
  ? { lotItemIdExclusion: config.lotItemIdExclusion }
350
351
  : {}),
@@ -143,6 +143,7 @@ export declare const getGraphQLPurchaseOrderBetweenDates: (session: Session, dat
143
143
  withLotStocksToMyAgency?: boolean;
144
144
  itemId?: number | string;
145
145
  payeeCategoryId?: number | string;
146
+ betweenIssueDate?: boolean;
146
147
  }) => Promise<AxiosUtilsResponse<PurchaseOrderGraphQL[]>>;
147
148
  /**
148
149
  * deletePurchaseOrder
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zauru-sdk/services",
3
- "version": "1.0.65",
3
+ "version": "1.0.67",
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.60",
29
29
  "@zauru-sdk/config": "^1.0.60",
30
- "@zauru-sdk/graphql": "^1.0.65",
30
+ "@zauru-sdk/graphql": "^1.0.66",
31
31
  "@zauru-sdk/types": "^1.0.60",
32
32
  "axios": "^1.6.7",
33
33
  "chalk": "5.3.0"
34
34
  },
35
- "gitHead": "152e91e349c5d10ac3abf947acacf8db42d030e1"
35
+ "gitHead": "fcf6da802e3eb8997f27747c2d5d9a4947540a9d"
36
36
  }