@zauru-sdk/graphql 2.0.110 → 2.0.113

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,13 @@ 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 ? `, id: {_eq: ${filters?.invoice_id}}` : ""}
1349
+ ${filters?.tag_id
1346
1350
  ? `, tagging_invoices: { tag_id: {_eq: ${filters?.tag_id}}}`
1347
1351
  : ""}
1348
1352
  }, order_by: {id: desc}) {
@@ -1385,6 +1389,7 @@ query getInvoicesByAgencyId {
1385
1389
  }
1386
1390
  payee {
1387
1391
  name
1392
+ tin
1388
1393
  payee_category_id
1389
1394
  }
1390
1395
  }
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.113",
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": "0251ee194f152e5ddbf5e35bea38d050b2309f31"
25
25
  }