@zauru-sdk/graphql 2.0.69 → 2.0.93

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.
@@ -42,6 +42,7 @@ export declare const getPurchaseOrdersBetweenDatesStringQuery: (startDate: strin
42
42
  shipment_reference?: string;
43
43
  discountComparisonOperator?: "_eq" | "_neq" | "_gte" | "_lte" | "_gt" | "_lt";
44
44
  discount?: number;
45
+ excludeVoided?: boolean;
45
46
  }) => string;
46
47
  export declare const getPayeesStringQuery = "\nquery getPayees {\n payees {\n id\n id_number\n name\n tin\n vendor\n address_line_1\n }\n}\n";
47
48
  export declare const getProvidersStringQuery = "\nquery getProviders {\n payees (where: {vendor: {_eq: true}}) {\n id\n id_number\n name\n tin\n address_line_1\n }\n}\n";
@@ -275,6 +275,9 @@ query getLotStocksByAgencyId {
275
275
  exports.getLotStocksByAgencyIdStringQuery = getLotStocksByAgencyIdStringQuery;
276
276
  const getPurchaseOrdersBetweenDatesStringQuery = (startDate, endDate, config) => {
277
277
  const conditions = [];
278
+ if (config.excludeVoided) {
279
+ conditions.push("voided: { _eq: false }");
280
+ }
278
281
  if (config.agencyId) {
279
282
  conditions.push(`agency_id: { _eq: ${config.agencyId} }`);
280
283
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zauru-sdk/graphql",
3
- "version": "2.0.69",
3
+ "version": "2.0.93",
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",
@@ -21,5 +21,5 @@
21
21
  "devDependencies": {
22
22
  "typescript": "^5.1.6"
23
23
  },
24
- "gitHead": "31cfa9c9573dbc294d5aae1d2a52da883c596cf8"
24
+ "gitHead": "22ed9078c4b82bbcb19ecff097926890a35570b6"
25
25
  }