@zauru-sdk/graphql 2.0.206 → 2.0.215

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.
@@ -17,7 +17,7 @@ export declare const getShipmentsStringQuery: ({ agency_to_id, agency_from_id, s
17
17
  withMovementLots?: boolean;
18
18
  withPurchaseOrdersByShipmentReference?: boolean;
19
19
  limit?: number;
20
- id?: number;
20
+ id?: number | string;
21
21
  wheres?: string[];
22
22
  memoILike?: string;
23
23
  plannedShippingDateRange?: {
@@ -36,6 +36,7 @@ export declare const getSerialsStringQuery: (filters: {
36
36
  id?: number | string;
37
37
  }) => string;
38
38
  export declare const getPurchaseOrdersBetweenDatesStringQuery: (startDate: string, endDate: string, config: {
39
+ ids?: number[] | string[];
39
40
  agencyId?: number | string;
40
41
  itemId?: number | string;
41
42
  reference?: string;
@@ -330,6 +330,9 @@ const getSerialsStringQuery = (filters) => {
330
330
  exports.getSerialsStringQuery = getSerialsStringQuery;
331
331
  const getPurchaseOrdersBetweenDatesStringQuery = (startDate, endDate, config) => {
332
332
  const conditions = [];
333
+ if (config.ids && config.ids.length > 0) {
334
+ conditions.push(`id: { _in: [${config.ids.join(",")}] }`);
335
+ }
333
336
  if (config.excludeVoided) {
334
337
  conditions.push("voided: { _eq: false }");
335
338
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zauru-sdk/graphql",
3
- "version": "2.0.206",
3
+ "version": "2.0.215",
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": "f4d62b2808133edcd12c983d20e6c7853c02f646"
24
+ "gitHead": "de66fec20d71561f11b35a0113838db838db6b56"
25
25
  }