@zauru-sdk/graphql 1.0.62 → 1.0.63
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.
|
@@ -213,8 +213,8 @@ const getPurchaseOrdersBetweenDatesStringQuery = (config = {
|
|
|
213
213
|
}) => `
|
|
214
214
|
query getPurchaseOrdersBetweenDates(
|
|
215
215
|
$agencyId: Int,
|
|
216
|
-
$startDate: timestamp,
|
|
217
|
-
$endDate: timestamp,
|
|
216
|
+
$startDate: ${config?.betweenIssueDate ? "date" : "timestamp"},
|
|
217
|
+
$endDate: ${config?.betweenIssueDate ? "date" : "timestamp"},
|
|
218
218
|
$lotItemIdExclusion: Int = null,
|
|
219
219
|
$poDetailTagId: Int = null,
|
|
220
220
|
$payeeCategoryId: Int = null
|
|
@@ -237,7 +237,7 @@ query getPurchaseOrdersBetweenDates(
|
|
|
237
237
|
: ""}
|
|
238
238
|
${config.consolidateIdFilter ? "consolidate_id: {_is_null: true}," : ""}
|
|
239
239
|
${config.betweenIssueDate
|
|
240
|
-
? "issue_date: {_gte: $startDate
|
|
240
|
+
? "issue_date: {_gte: $startDate, _lte: $endDate}"
|
|
241
241
|
: "created_at: {_gte: $startDate, _lte: $endDate}"}
|
|
242
242
|
}
|
|
243
243
|
) {
|
|
@@ -213,8 +213,8 @@ const getPurchaseOrdersBetweenDatesStringQuery = (config = {
|
|
|
213
213
|
}) => `
|
|
214
214
|
query getPurchaseOrdersBetweenDates(
|
|
215
215
|
$agencyId: Int,
|
|
216
|
-
$startDate: timestamp,
|
|
217
|
-
$endDate: timestamp,
|
|
216
|
+
$startDate: ${config?.betweenIssueDate ? "date" : "timestamp"},
|
|
217
|
+
$endDate: ${config?.betweenIssueDate ? "date" : "timestamp"},
|
|
218
218
|
$lotItemIdExclusion: Int = null,
|
|
219
219
|
$poDetailTagId: Int = null,
|
|
220
220
|
$payeeCategoryId: Int = null
|
|
@@ -237,7 +237,7 @@ query getPurchaseOrdersBetweenDates(
|
|
|
237
237
|
: ""}
|
|
238
238
|
${config.consolidateIdFilter ? "consolidate_id: {_is_null: true}," : ""}
|
|
239
239
|
${config.betweenIssueDate
|
|
240
|
-
? "issue_date: {_gte: $startDate
|
|
240
|
+
? "issue_date: {_gte: $startDate, _lte: $endDate}"
|
|
241
241
|
: "created_at: {_gte: $startDate, _lte: $endDate}"}
|
|
242
242
|
}
|
|
243
243
|
) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zauru-sdk/graphql",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.63",
|
|
4
4
|
"description": "Queries de uso común para las aplicación de Zauru.",
|
|
5
5
|
"main": "./dist/cjs/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -22,5 +22,5 @@
|
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"typescript": "^5.1.6"
|
|
24
24
|
},
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "59f98ac8f33a5ea4b7c087dd099dbf03bb9ddcd9"
|
|
26
26
|
}
|