@zauru-sdk/graphql 1.0.62 → 1.0.64
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.
|
@@ -30,7 +30,7 @@ export declare const getPayeeByIdStringQuery = "\nquery getPayeeById ($id: Int)
|
|
|
30
30
|
export declare const getSuperCategoryByIdStringQuery = "\nquery getSuperCategoryById ($id: Int) {\n item_super_categories (where: {id: {_eq: $id }}) {\n item_categories {\n id\n name\n notes\n items_count\n }\n }\n}\n";
|
|
31
31
|
export declare const getItemCategoryByIdStringQuery = "\nquery getItemCategoryById ($id: Int) {\n item_categories (where: {id: {_eq: $id }}) {\n id\n name\n notes\n items_count\n }\n}\n";
|
|
32
32
|
export declare const getItemsByCategoryStringQuery = "\nquery getItemsByCategory ($id: Int) {\n item_categories (where: {id: {_eq: $id }}) {\n items (where: {active: {_eq: true }}) {\n id,\n name,\n stocks_only_integer,\n code\n product_type\n }\n }\n}\n";
|
|
33
|
-
export declare const getItemsStringQuery = "\nquery getItems {\n items (where: {active: {_eq: true }}) {\n id,\n name\n }\n}\n";
|
|
33
|
+
export declare const getItemsStringQuery = "\nquery getItems {\n items (where: {active: {_eq: true }}) {\n id,\n name,\n code\n }\n}\n";
|
|
34
34
|
export declare const getItemsBySuperCategoryStringQuery = "\nquery getItemsBySuperCategory ($id: Int, $agency_id: Int) {\n item_super_categories (where: {id: {_eq: $id }}, order_by: {id: desc}) {\n item_categories {\n items (where: {active: {_eq: true }}) {\n id,\n name,\n stocks_only_integer,\n code,\n item_category_id,\n measurement_unit,\n description\n product_type\n stocks(where: {agency_id: {_eq: $agency_id}}, order_by: {id: desc}) {\n available\n id\n incoming\n outgoing\n }\n }\n }\n }\n}\n";
|
|
35
35
|
export declare const getConsolidatesBetweenDatesStringQuery = "\nquery getConsolidatesBetweenDates ($startDate: timestamp, $endDate: timestamp) {\n consolidates (order_by: {id: desc}, where: {created_at: {_gte: $startDate, _lte: $endDate}}) {\n id\n id_number\n created_at\n name\n purchase_orders {\n id\n due\n }\n }\n}\n";
|
|
36
36
|
export declare const getEmployeeProfileStringQuery = "\nquery getEmployeeProfile ($id: Int) {\n employees(where: {id: {_eq: $id}}) {\n agency_id\n email\n entity_id\n id\n name\n user_id\n }\n}\n";
|
|
@@ -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
|
) {
|
|
@@ -468,7 +468,8 @@ exports.getItemsStringQuery = `
|
|
|
468
468
|
query getItems {
|
|
469
469
|
items (where: {active: {_eq: true }}) {
|
|
470
470
|
id,
|
|
471
|
-
name
|
|
471
|
+
name,
|
|
472
|
+
code
|
|
472
473
|
}
|
|
473
474
|
}
|
|
474
475
|
`;
|
|
@@ -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
|
) {
|
|
@@ -468,7 +468,8 @@ exports.getItemsStringQuery = `
|
|
|
468
468
|
query getItems {
|
|
469
469
|
items (where: {active: {_eq: true }}) {
|
|
470
470
|
id,
|
|
471
|
-
name
|
|
471
|
+
name,
|
|
472
|
+
code
|
|
472
473
|
}
|
|
473
474
|
}
|
|
474
475
|
`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zauru-sdk/graphql",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.64",
|
|
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": "7edda6e02380d48667a0daa4625ad3e87341f6b4"
|
|
26
26
|
}
|