@zauru-sdk/services 2.0.100 → 2.0.102

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.
@@ -1,8 +1,7 @@
1
1
  import { AxiosUtilsResponse } from "@zauru-sdk/types";
2
2
  /**
3
3
  * getCMSGeneralQuery
4
- * @param headers
5
- * @param queryKey - clave dinámica para acceder a los datos en la respuesta (ej. 'purchase_orders', 'users')
4
+ * @param query
6
5
  * @returns
7
6
  */
8
7
  export declare const getCMSGeneralQuery: <T>(query: string) => Promise<AxiosUtilsResponse<T[]>>;
@@ -1,16 +1,15 @@
1
1
  import { handlePossibleAxiosErrors } from "@zauru-sdk/common";
2
2
  import { getCMSHeaders } from "../common.js";
3
- import { httpCMSAPI } from "~/zauru/httpCMS.js";
3
+ import { httpCMSAPI } from "../zauru/httpCMS.js";
4
4
  /**
5
5
  * getCMSGeneralQuery
6
- * @param headers
7
- * @param queryKey - clave dinámica para acceder a los datos en la respuesta (ej. 'purchase_orders', 'users')
6
+ * @param query
8
7
  * @returns
9
8
  */
10
9
  export const getCMSGeneralQuery = async (query) => {
11
10
  return handlePossibleAxiosErrors(async () => {
12
11
  const headers = await getCMSHeaders();
13
- // Respuesta con clave dinámica basada en queryKey
12
+ // Respuesta con clave dinámica basada en query
14
13
  const response = await httpCMSAPI.post("", {
15
14
  query,
16
15
  }, { headers });
package/dist/esm/index.js CHANGED
@@ -1,7 +1,9 @@
1
1
  export * from "./common.js";
2
2
  export * from "./graphql/index.js";
3
+ export * from "./cms/index.js";
3
4
  export * from "./sessions/sessions.js";
4
5
  export * from "./sessions/upstash.js";
6
+ export * from "./zauru/httpCMS.js";
5
7
  export * from "./zauru/httpGraphQL.js";
6
8
  export * from "./zauru/httpOauth.js";
7
9
  export * from "./zauru/httpZauru.js";
package/dist/index.d.ts CHANGED
@@ -1,7 +1,9 @@
1
1
  export * from "./common.js";
2
2
  export * from "./graphql/index.js";
3
+ export * from "./cms/index.js";
3
4
  export * from "./sessions/sessions.js";
4
5
  export * from "./sessions/upstash.js";
6
+ export * from "./zauru/httpCMS.js";
5
7
  export * from "./zauru/httpGraphQL.js";
6
8
  export * from "./zauru/httpOauth.js";
7
9
  export * from "./zauru/httpZauru.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zauru-sdk/services",
3
- "version": "2.0.100",
3
+ "version": "2.0.102",
4
4
  "description": "Servicios de consulta a Zauru",
5
5
  "main": "./dist/esm/index.js",
6
6
  "module": "./dist/esm/index.js",
@@ -31,5 +31,5 @@
31
31
  "axios": "^1.6.7",
32
32
  "chalk": "5.3.0"
33
33
  },
34
- "gitHead": "f44d4fc4f65076588c5bfc8ab9f9394488d21fab"
34
+ "gitHead": "d954c2af263e8cfe9fe92c72ac80d73cff626c1a"
35
35
  }