@zauru-sdk/graphql 2.0.203 → 2.0.206

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";
@@ -323,6 +323,7 @@ const getSerialsStringQuery = (filters) => {
323
323
  agency_id
324
324
  agency_future_id
325
325
  created_at
326
+ }
326
327
  }
327
328
  `;
328
329
  };
@@ -1588,6 +1589,20 @@ const getCasesStringQuery = (filters, includes) => {
1588
1589
  created_at
1589
1590
  }`);
1590
1591
  }
1592
+ if (includes?.includeResponsible) {
1593
+ joins.push(`
1594
+ responsible {
1595
+ id
1596
+ name]
1597
+ }`);
1598
+ }
1599
+ if (includes?.includeSeller) {
1600
+ joins.push(`
1601
+ seller {
1602
+ id
1603
+ name
1604
+ }`);
1605
+ }
1591
1606
  return `query getCases {
1592
1607
  cases (${whereClause} order_by: {id: desc}, limit: ${filters?.limit || 1000})
1593
1608
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zauru-sdk/graphql",
3
- "version": "2.0.203",
3
+ "version": "2.0.206",
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": "71ffd90ef4de8f031f2b507b38151902caaeb006"
24
+ "gitHead": "f4d62b2808133edcd12c983d20e6c7853c02f646"
25
25
  }