@zauru-sdk/services 2.0.109 → 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.
@@ -6,11 +6,11 @@ import { httpZauru } from "./httpZauru.js";
6
6
  /**
7
7
  * getInvoicesByAgencyId
8
8
  */
9
- export async function getInvoicesByAgencyId(session, id) {
9
+ export async function getInvoicesByAgencyId(session, id, filters) {
10
10
  return handlePossibleAxiosErrors(async () => {
11
11
  const headers = await getGraphQLAPIHeaders(session);
12
12
  const response = await httpGraphQLAPI.post("", {
13
- query: getInvoicesByAgencyIdStringQuery(Number(id ?? 0)),
13
+ query: getInvoicesByAgencyIdStringQuery(Number(id ?? 0), filters),
14
14
  }, { headers });
15
15
  if (response.data.errors) {
16
16
  throw new Error(response.data.errors.map((x) => x.message).join(";"));
@@ -3,7 +3,9 @@ import { AxiosUtilsResponse, InvoiceGraphQL } from "@zauru-sdk/types";
3
3
  /**
4
4
  * getInvoicesByAgencyId
5
5
  */
6
- export declare function getInvoicesByAgencyId(session: Session, id: string | null): Promise<AxiosUtilsResponse<InvoiceGraphQL[]>>;
6
+ export declare function getInvoicesByAgencyId(session: Session, id: string | null, filters: {
7
+ tag_id?: string;
8
+ }): Promise<AxiosUtilsResponse<InvoiceGraphQL[]>>;
7
9
  /**
8
10
  * createInvoice
9
11
  * @param headers
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zauru-sdk/services",
3
- "version": "2.0.109",
3
+ "version": "2.0.110",
4
4
  "description": "Servicios de consulta a Zauru",
5
5
  "main": "./dist/esm/index.js",
6
6
  "module": "./dist/esm/index.js",
@@ -26,10 +26,10 @@
26
26
  "@remix-run/node": "^2.8.1",
27
27
  "@zauru-sdk/common": "^2.0.109",
28
28
  "@zauru-sdk/config": "^2.0.100",
29
- "@zauru-sdk/graphql": "^2.0.93",
29
+ "@zauru-sdk/graphql": "^2.0.110",
30
30
  "@zauru-sdk/types": "^2.0.109",
31
31
  "axios": "^1.6.7",
32
32
  "chalk": "5.3.0"
33
33
  },
34
- "gitHead": "28c068f92c6bc6cec5fac9543b35ebb7e277cb46"
34
+ "gitHead": "48da37315a5c24db0135c55e41c8fa1aa0f0adf5"
35
35
  }