@zauru-sdk/graphql 2.0.46 → 2.0.52
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.
|
@@ -39,6 +39,7 @@ export declare const getPurchaseOrdersBetweenDatesStringQuery: (startDate: strin
|
|
|
39
39
|
withWebAppRows?: boolean;
|
|
40
40
|
payeeCategoryIds?: number[];
|
|
41
41
|
excludePayeeCategoryIds?: number[];
|
|
42
|
+
shipment_reference?: string;
|
|
42
43
|
discountComparisonOperator?: "_eq" | "_neq" | "_gte" | "_lte" | "_gt" | "_lt";
|
|
43
44
|
discount?: number;
|
|
44
45
|
}) => string;
|
|
@@ -284,6 +284,9 @@ const getPurchaseOrdersBetweenDatesStringQuery = (startDate, endDate, config) =>
|
|
|
284
284
|
if (config.id_number) {
|
|
285
285
|
conditions.push(`id_number: { _ilike: "%${config.id_number}%" }`);
|
|
286
286
|
}
|
|
287
|
+
if (config.shipment_reference) {
|
|
288
|
+
conditions.push(`shipment_reference: { _eq: "${config.shipment_reference}" }`);
|
|
289
|
+
}
|
|
287
290
|
if (config.payeeId || config.payeeCategoryId) {
|
|
288
291
|
const payeeConditions = [];
|
|
289
292
|
if (config.payeeId) {
|
|
@@ -342,7 +345,7 @@ const getPurchaseOrdersBetweenDatesStringQuery = (startDate, endDate, config) =>
|
|
|
342
345
|
}`
|
|
343
346
|
: "";
|
|
344
347
|
const lots = config.withLots
|
|
345
|
-
? `lots {
|
|
348
|
+
? `lots (order_by: {id: desc}) {
|
|
346
349
|
id
|
|
347
350
|
name
|
|
348
351
|
description
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zauru-sdk/graphql",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.52",
|
|
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": "
|
|
24
|
+
"gitHead": "3176c02389ca24a162796ddba4c149a3500383dc"
|
|
25
25
|
}
|