@zauru-sdk/graphql 2.0.31 → 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,8 +3,9 @@ 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, id_number_not_empty, }: {
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;
@@ -152,17 +152,18 @@ 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, id_number_not_empty = false, }) => {
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
  }
164
+ if (agency_from_id) {
165
+ conditions.push(`agency_from_id: {_eq: ${agency_from_id}}`);
166
+ }
166
167
  if (id_number) {
167
168
  conditions.push(`id_number: {_eq: "${id_number}"}`);
168
169
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zauru-sdk/graphql",
3
- "version": "2.0.31",
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": "06b14f4fc6a5a06dba2e0ad910afbc57c9448d7d"
24
+ "gitHead": "a8ae6ccbcb3c0f52ec84250385dcc9d04008489f"
25
25
  }