@zauru-sdk/graphql 6.2.0 → 6.3.0

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.
@@ -61,6 +61,8 @@ export declare const getPurchaseOrdersBetweenDatesStringQuery: (startDate: strin
61
61
  discount?: number;
62
62
  excludeVoided?: boolean;
63
63
  tagId?: number | string;
64
+ paid?: boolean;
65
+ limit?: number;
64
66
  }) => string;
65
67
  export declare const getPayeesStringQuery: (filters?: {
66
68
  id_number?: string;
@@ -394,6 +394,9 @@ const getPurchaseOrdersBetweenDatesStringQuery = (startDate, endDate, config) =>
394
394
  if (config.excludeVoided) {
395
395
  conditions.push("voided: { _eq: false }");
396
396
  }
397
+ if (typeof config.paid === "boolean") {
398
+ conditions.push(`paid: { _eq: ${config.paid} }`);
399
+ }
397
400
  if (config.agencyId) {
398
401
  conditions.push(`agency_id: { _eq: ${config.agencyId} }`);
399
402
  }
@@ -529,9 +532,11 @@ const getPurchaseOrdersBetweenDatesStringQuery = (startDate, endDate, config) =>
529
532
  }
530
533
  }`
531
534
  : "";
535
+ const limitClause = typeof config.limit === "number" ? `limit: ${config.limit},` : "";
532
536
  return `
533
537
  query getPurchaseOrdersBetweenDates {
534
538
  purchase_orders (
539
+ ${limitClause}
535
540
  order_by: { id: desc },
536
541
  ${whereClause}
537
542
  ) {
@@ -550,6 +555,8 @@ const getPurchaseOrdersBetweenDatesStringQuery = (startDate, endDate, config) =>
550
555
  consolidate_id
551
556
  shipment_reference
552
557
  reference
558
+ incoterm_destination
559
+ paid
553
560
  ${purchaseOrderDetails}
554
561
  ${lots}
555
562
  ${webAppRows}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zauru-sdk/graphql",
3
- "version": "6.2.0",
3
+ "version": "6.3.0",
4
4
  "description": "Queries de uso común para las aplicación de Zauru.",
5
5
  "main": "./dist/esm/index.js",
6
6
  "module": "./dist/esm/index.js",
@@ -22,5 +22,5 @@
22
22
  "devDependencies": {
23
23
  "typescript": "^5.1.6"
24
24
  },
25
- "gitHead": "2950c31a115494a2beefde49d411be7983d57982"
25
+ "gitHead": "0b76f82d8d5169437231694b666c29ce50a37a77"
26
26
  }