@zauru-sdk/graphql 2.0.203 → 2.0.204
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.
|
@@ -151,5 +151,7 @@ export declare const getCasesStringQuery: (filters?: {
|
|
|
151
151
|
limit?: number;
|
|
152
152
|
}, includes?: {
|
|
153
153
|
includeSerial?: boolean;
|
|
154
|
+
includeResponsible?: boolean;
|
|
155
|
+
includeSeller?: boolean;
|
|
154
156
|
}) => string;
|
|
155
157
|
export declare const getPrintTemplatesStringQuery = "\nquery getPrintTemplates {\n print_templates {\n id\n name\n }\n}\n";
|
|
@@ -1588,6 +1588,20 @@ const getCasesStringQuery = (filters, includes) => {
|
|
|
1588
1588
|
created_at
|
|
1589
1589
|
}`);
|
|
1590
1590
|
}
|
|
1591
|
+
if (includes?.includeResponsible) {
|
|
1592
|
+
joins.push(`
|
|
1593
|
+
responsible {
|
|
1594
|
+
id
|
|
1595
|
+
name]
|
|
1596
|
+
}`);
|
|
1597
|
+
}
|
|
1598
|
+
if (includes?.includeSeller) {
|
|
1599
|
+
joins.push(`
|
|
1600
|
+
seller {
|
|
1601
|
+
id
|
|
1602
|
+
name
|
|
1603
|
+
}`);
|
|
1604
|
+
}
|
|
1591
1605
|
return `query getCases {
|
|
1592
1606
|
cases (${whereClause} order_by: {id: desc}, limit: ${filters?.limit || 1000})
|
|
1593
1607
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zauru-sdk/graphql",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.204",
|
|
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": "1d4f8ef72286e9f7575109be154b09f53c3107f4"
|
|
25
25
|
}
|