@zauru-sdk/graphql 2.0.26 → 2.0.27

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.
@@ -3,9 +3,12 @@ export declare const getPurchaseOrderByIdNumberStringQuery: (id_number: string)
3
3
  export declare const getPurchaseOrderStringQuery: (id: number, config?: {
4
4
  withLotStocks: boolean;
5
5
  }) => string;
6
- export declare const getLast100ShipmentsStringQuery: ({ agency_to_id, suffix, }: {
6
+ export declare const getLast100ShipmentsStringQuery: ({ agency_to_id, suffix, voided, shipped, delivered, }: {
7
7
  agency_to_id?: number;
8
8
  suffix?: string;
9
+ voided?: boolean;
10
+ shipped?: boolean;
11
+ delivered?: boolean;
9
12
  }) => string;
10
13
  export declare const getLotsByNameStringQuery: (name: string, entity_id: number) => string;
11
14
  export declare const getLotStocksByAgencyIdStringQuery: (agency_id: number) => string;
@@ -152,12 +152,11 @@ query getPurchaseOrder($id: bigint) @cached {
152
152
  }
153
153
  `;
154
154
  exports.getPurchaseOrderStringQuery = getPurchaseOrderStringQuery;
155
- const getLast100ShipmentsStringQuery = ({ agency_to_id, suffix, }) => {
156
- let conditions = [
157
- "voided: {_eq: false}",
158
- "shipped: {_eq: false}",
159
- "delivered: {_eq: false}",
160
- ];
155
+ const getLast100ShipmentsStringQuery = ({ agency_to_id, suffix, voided = false, shipped = false, delivered = false, }) => {
156
+ let conditions = [];
157
+ conditions.push(`voided: {_eq: ${voided}}`);
158
+ conditions.push(`shipped: {_eq: ${shipped}}`);
159
+ conditions.push(`delivered: {_eq: ${delivered}}`);
161
160
  if (suffix) {
162
161
  conditions.push(`id_number: {_ilike: "%${suffix}%"}`);
163
162
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zauru-sdk/graphql",
3
- "version": "2.0.26",
3
+ "version": "2.0.27",
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": "41440682edbc853c6e9ce4f7c982dbf4ac9a185b"
24
+ "gitHead": "e47184fd3aadb65484a4cf3bd6627f58cc7841e3"
25
25
  }