@zauru-sdk/graphql 2.0.178 → 2.0.181
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.
|
@@ -136,5 +136,6 @@ export declare const getCasesStringQuery: (filters?: {
|
|
|
136
136
|
client_id?: number;
|
|
137
137
|
closed?: boolean;
|
|
138
138
|
tag_id?: string;
|
|
139
|
+
limit?: number;
|
|
139
140
|
}) => string;
|
|
140
141
|
export declare const getPrintTemplatesStringQuery = "\nquery getPrintTemplates {\n print_templates {\n id\n name\n }\n}\n";
|
|
@@ -1545,13 +1545,13 @@ const getCasesStringQuery = (filters) => {
|
|
|
1545
1545
|
conditions.push(`closed: {_eq: ${filters.closed}}`);
|
|
1546
1546
|
}
|
|
1547
1547
|
if (filters?.tag_id) {
|
|
1548
|
-
conditions.push(`taggings: {tag_id: {_eq: ${filters.tag_id}}}`);
|
|
1548
|
+
conditions.push(`taggings: {tag_id: {_eq: ${filters.tag_id}}, taggeable_type: {_eq: "Case"}}`);
|
|
1549
1549
|
}
|
|
1550
1550
|
const whereClause = conditions.length
|
|
1551
1551
|
? `where: { ${conditions.join(", ")} },`
|
|
1552
1552
|
: "";
|
|
1553
1553
|
return `query getCases {
|
|
1554
|
-
cases (${whereClause} order_by: {id: desc})
|
|
1554
|
+
cases (${whereClause} order_by: {id: desc}, limit: ${filters?.limit || 1000})
|
|
1555
1555
|
{
|
|
1556
1556
|
id
|
|
1557
1557
|
id_number
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zauru-sdk/graphql",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.181",
|
|
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": "5a2a3ebca0acd54873a2701c2b6b31c76b418a69"
|
|
25
25
|
}
|