@zauru-sdk/graphql 1.0.60 → 1.0.62
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.
|
@@ -14,6 +14,7 @@ export declare const getPurchaseOrdersBetweenDatesStringQuery: (config?: {
|
|
|
14
14
|
lotItemIdExclusion?: number;
|
|
15
15
|
poDetailTagId?: number;
|
|
16
16
|
withLotStocks?: boolean;
|
|
17
|
+
betweenIssueDate?: boolean;
|
|
17
18
|
}) => string;
|
|
18
19
|
export declare const getPayeesStringQuery = "\nquery getPayees {\n payees {\n id\n id_number\n name\n tin\n vendor\n address_line_1\n }\n}\n";
|
|
19
20
|
export declare const getProvidersStringQuery = "\nquery getProviders {\n payees (where: {vendor: {_eq: true}}) {\n id\n id_number\n name\n tin\n address_line_1\n }\n}\n";
|
|
@@ -209,6 +209,7 @@ const getPurchaseOrdersBetweenDatesStringQuery = (config = {
|
|
|
209
209
|
itemIdFilter: false,
|
|
210
210
|
consolidateIdFilter: false,
|
|
211
211
|
withLotStocks: false,
|
|
212
|
+
betweenIssueDate: false,
|
|
212
213
|
}) => `
|
|
213
214
|
query getPurchaseOrdersBetweenDates(
|
|
214
215
|
$agencyId: Int,
|
|
@@ -235,7 +236,9 @@ query getPurchaseOrdersBetweenDates(
|
|
|
235
236
|
? "purchase_order_details: {tag_id: {_eq: $poDetailTagId}},"
|
|
236
237
|
: ""}
|
|
237
238
|
${config.consolidateIdFilter ? "consolidate_id: {_is_null: true}," : ""}
|
|
238
|
-
|
|
239
|
+
${config.betweenIssueDate
|
|
240
|
+
? "issue_date: {_gte: $startDate::date, _lte: $endDate::date}"
|
|
241
|
+
: "created_at: {_gte: $startDate, _lte: $endDate}"}
|
|
239
242
|
}
|
|
240
243
|
) {
|
|
241
244
|
id
|
|
@@ -209,6 +209,7 @@ const getPurchaseOrdersBetweenDatesStringQuery = (config = {
|
|
|
209
209
|
itemIdFilter: false,
|
|
210
210
|
consolidateIdFilter: false,
|
|
211
211
|
withLotStocks: false,
|
|
212
|
+
betweenIssueDate: false,
|
|
212
213
|
}) => `
|
|
213
214
|
query getPurchaseOrdersBetweenDates(
|
|
214
215
|
$agencyId: Int,
|
|
@@ -235,7 +236,9 @@ query getPurchaseOrdersBetweenDates(
|
|
|
235
236
|
? "purchase_order_details: {tag_id: {_eq: $poDetailTagId}},"
|
|
236
237
|
: ""}
|
|
237
238
|
${config.consolidateIdFilter ? "consolidate_id: {_is_null: true}," : ""}
|
|
238
|
-
|
|
239
|
+
${config.betweenIssueDate
|
|
240
|
+
? "issue_date: {_gte: $startDate::date, _lte: $endDate::date}"
|
|
241
|
+
: "created_at: {_gte: $startDate, _lte: $endDate}"}
|
|
239
242
|
}
|
|
240
243
|
) {
|
|
241
244
|
id
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zauru-sdk/graphql",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.62",
|
|
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": "afaa820e0f482c6e2f57ae673aa420d362fd2561"
|
|
26
26
|
}
|