@zauru-sdk/graphql 2.25.3 → 2.32.0
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.
|
@@ -46,7 +46,6 @@ export declare const getPurchaseOrdersBetweenDatesStringQuery: (startDate: strin
|
|
|
46
46
|
payeeId?: number | string;
|
|
47
47
|
consolidateIdFilter?: boolean;
|
|
48
48
|
lotItemIdExclusion?: number;
|
|
49
|
-
poDetailTagId?: number;
|
|
50
49
|
withLotStocks?: boolean;
|
|
51
50
|
betweenIssueDate?: boolean;
|
|
52
51
|
id_number?: string;
|
|
@@ -61,6 +60,7 @@ export declare const getPurchaseOrdersBetweenDatesStringQuery: (startDate: strin
|
|
|
61
60
|
discountComparisonOperator?: "_eq" | "_neq" | "_gte" | "_lte" | "_gt" | "_lt";
|
|
62
61
|
discount?: number;
|
|
63
62
|
excludeVoided?: boolean;
|
|
63
|
+
tagId?: number | string;
|
|
64
64
|
}) => string;
|
|
65
65
|
export declare const getPayeesStringQuery: (filters?: {
|
|
66
66
|
id_number?: string;
|
|
@@ -448,9 +448,6 @@ const getPurchaseOrdersBetweenDatesStringQuery = (startDate, endDate, config) =>
|
|
|
448
448
|
purchaseOrderDetailsConditions.push(`item_id: { _eq: ${config.itemId} }`);
|
|
449
449
|
}
|
|
450
450
|
}
|
|
451
|
-
if (config.poDetailTagId) {
|
|
452
|
-
purchaseOrderDetailsConditions.push(`tag_id: { _eq: ${config.poDetailTagId} }`);
|
|
453
|
-
}
|
|
454
451
|
if (purchaseOrderDetailsConditions.length > 0) {
|
|
455
452
|
conditions.push(`purchase_order_details: { ${purchaseOrderDetailsConditions.join(", ")} }`);
|
|
456
453
|
}
|
|
@@ -473,6 +470,9 @@ const getPurchaseOrdersBetweenDatesStringQuery = (startDate, endDate, config) =>
|
|
|
473
470
|
if (!!config.discountComparisonOperator && !!config.discount) {
|
|
474
471
|
conditions.push(`discount: { ${config.discountComparisonOperator}: ${config.discount} }`);
|
|
475
472
|
}
|
|
473
|
+
if (config.tagId) {
|
|
474
|
+
conditions.push(`taggings: { tag_id: { _eq: ${config.tagId} } }`);
|
|
475
|
+
}
|
|
476
476
|
const whereClause = conditions.length
|
|
477
477
|
? `where: { ${conditions.join(", ")} }`
|
|
478
478
|
: "";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zauru-sdk/graphql",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.32.0",
|
|
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": "7d60e08b42f068fedf556d18689d850eada2b250"
|
|
25
25
|
}
|