@zauru-sdk/graphql 2.0.110 → 2.0.112

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