@zauru-sdk/graphql 2.0.93 → 2.0.110

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.
@@ -113,6 +113,8 @@ export declare const getPaymentMethodsStringQuery: (config: {
113
113
  onlyActives: boolean;
114
114
  }) => string;
115
115
  export declare const getPaymentTermByIdStringQuery: (id: number) => string;
116
- export declare const getInvoicesByAgencyIdStringQuery: (id: number) => string;
116
+ export declare const getInvoicesByAgencyIdStringQuery: (id: number, filters: {
117
+ tag_id?: string;
118
+ }) => string;
117
119
  export declare const getCasesByResponsibleIdStringQuery: (responsible_id: number, wheres?: string[]) => string;
118
120
  export declare const getPrintTemplatesStringQuery = "\nquery getPrintTemplates {\n print_templates {\n id\n name\n }\n}\n";
@@ -1338,9 +1338,14 @@ query getPaymentTermById {
1338
1338
  }
1339
1339
  `;
1340
1340
  exports.getPaymentTermByIdStringQuery = getPaymentTermByIdStringQuery;
1341
- const getInvoicesByAgencyIdStringQuery = (id) => `
1341
+ const getInvoicesByAgencyIdStringQuery = (id, filters) => `
1342
1342
  query getInvoicesByAgencyId {
1343
- invoices(limit: 1000, where: {agency_id: {_eq: ${id}}, voided: {_eq: false}}, order_by: {id: desc}) {
1343
+ invoices(limit: 1000,
1344
+ where: {agency_id: {_eq: ${id}}, voided: {_eq: false}
1345
+ ${filters?.tag_id
1346
+ ? `, tagging_invoices: { tag_id: {_eq: ${filters?.tag_id}}}`
1347
+ : ""}
1348
+ }, order_by: {id: desc}) {
1344
1349
  id
1345
1350
  zid
1346
1351
  id_number
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zauru-sdk/graphql",
3
- "version": "2.0.93",
3
+ "version": "2.0.110",
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": "22ed9078c4b82bbcb19ecff097926890a35570b6"
24
+ "gitHead": "48da37315a5c24db0135c55e41c8fa1aa0f0adf5"
25
25
  }