@zauru-sdk/graphql 2.0.30 → 2.0.32

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,15 +3,16 @@ 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, voided, shipped, delivered, id_number_not_null, id_number_not_equal, id_number, }: {
6
+ export declare const getLast100ShipmentsStringQuery: ({ agency_to_id, agency_from_id, suffix, voided, id_number_not_null, id_number, id_number_not_empty, }: {
7
7
  agency_to_id?: number;
8
+ agency_from_id?: number;
8
9
  suffix?: string;
9
10
  id_number_not_null?: boolean;
10
11
  voided?: boolean;
11
12
  shipped?: boolean;
12
13
  delivered?: boolean;
13
14
  id_number?: string;
14
- id_number_not_equal?: string;
15
+ id_number_not_empty?: boolean;
15
16
  }) => string;
16
17
  export declare const getLotsByNameStringQuery: (name: string, entity_id: number) => string;
17
18
  export declare const getLotStocksByAgencyIdStringQuery: (agency_id: number) => string;
@@ -152,25 +152,26 @@ query getPurchaseOrder($id: bigint) @cached {
152
152
  }
153
153
  `;
154
154
  exports.getPurchaseOrderStringQuery = getPurchaseOrderStringQuery;
155
- const getLast100ShipmentsStringQuery = ({ agency_to_id, suffix, voided = false, shipped = false, delivered = false, id_number_not_null = false, id_number_not_equal, id_number, }) => {
155
+ const getLast100ShipmentsStringQuery = ({ agency_to_id, agency_from_id, suffix, voided = false, id_number_not_null = false, id_number, id_number_not_empty = false, }) => {
156
156
  let conditions = [];
157
157
  conditions.push(`voided: {_eq: ${voided}}`);
158
- conditions.push(`shipped: {_eq: ${shipped}}`);
159
- conditions.push(`delivered: {_eq: ${delivered}}`);
160
158
  if (suffix) {
161
159
  conditions.push(`id_number: {_ilike: "%${suffix}%"}`);
162
160
  }
163
161
  if (agency_to_id) {
164
162
  conditions.push(`agency_to_id: {_eq: ${agency_to_id}}`);
165
163
  }
166
- if (id_number_not_null) {
167
- conditions.push(`id_number: {_is_null: false}`);
164
+ if (agency_from_id) {
165
+ conditions.push(`agency_from_id: {_eq: ${agency_from_id}}`);
168
166
  }
169
167
  if (id_number) {
170
168
  conditions.push(`id_number: {_eq: "${id_number}"}`);
171
169
  }
172
- if (id_number_not_equal) {
173
- conditions.push(`id_number: {_neq: "${id_number_not_equal}"}`);
170
+ if (id_number_not_empty) {
171
+ conditions.push(`id_number: {_neq: ""}`);
172
+ }
173
+ if (id_number_not_null) {
174
+ conditions.push(`id_number: {_is_null: false}`);
174
175
  }
175
176
  return `query getLast100Shipments {
176
177
  shipments(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zauru-sdk/graphql",
3
- "version": "2.0.30",
3
+ "version": "2.0.32",
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": "de76ce81a88c3b44584ff217570d192db435161f"
24
+ "gitHead": "a8ae6ccbcb3c0f52ec84250385dcc9d04008489f"
25
25
  }