@zauru-sdk/services 6.8.0 → 6.9.0

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.
@@ -24,14 +24,14 @@ export async function getWebAppRow(session, id) {
24
24
  * getWebAppTableRegisters Function for get all web app table registers
25
25
  * @param headers
26
26
  * @param webapp_table_id web app table id
27
- * @param limitOrOptions optional row limit, or `{ limit, data }` JSONB filters
27
+ * @param options optional `{ limit, data }` JSONB filters
28
28
  * @returns
29
29
  */
30
- export async function getWebAppTableRegisters(session, webapp_table_id, limitOrOptions) {
30
+ export async function getWebAppTableRegisters(session, webapp_table_id, options) {
31
31
  return handlePossibleAxiosErrors(async () => {
32
32
  const headers = await getGraphQLAPIHeaders(session);
33
33
  const response = await httpGraphQLAPI.post("", {
34
- query: getWebAppRowsByWebAppTableIdStringQuery(Number(webapp_table_id), limitOrOptions),
34
+ query: getWebAppRowsByWebAppTableIdStringQuery(Number(webapp_table_id), options),
35
35
  }, { headers });
36
36
  if (response.data.errors) {
37
37
  throw new Error(response.data.errors.map((x) => x.message).join(";"));
@@ -11,10 +11,10 @@ export declare function getWebAppRow<T>(session: Session, id: number): Promise<A
11
11
  * getWebAppTableRegisters Function for get all web app table registers
12
12
  * @param headers
13
13
  * @param webapp_table_id web app table id
14
- * @param limitOrOptions optional row limit, or `{ limit, data }` JSONB filters
14
+ * @param options optional `{ limit, data }` JSONB filters
15
15
  * @returns
16
16
  */
17
- export declare function getWebAppTableRegisters<T>(session: Session, webapp_table_id: string, limitOrOptions?: number | GetWebAppRowsByTableIdOptions): Promise<AxiosUtilsResponse<WebAppRowGraphQL<T>[]>>;
17
+ export declare function getWebAppTableRegisters<T>(session: Session, webapp_table_id: string, options?: GetWebAppRowsByTableIdOptions): Promise<AxiosUtilsResponse<WebAppRowGraphQL<T>[]>>;
18
18
  /**
19
19
  * deleteWebAppTableRegister Function for delete a web app table register
20
20
  * @param headers
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zauru-sdk/services",
3
- "version": "6.8.0",
3
+ "version": "6.9.0",
4
4
  "description": "Servicios de consulta a Zauru",
5
5
  "main": "./dist/esm/index.js",
6
6
  "module": "./dist/esm/index.js",
@@ -28,11 +28,11 @@
28
28
  "@upstash/redis": "^1.34.5",
29
29
  "@zauru-sdk/common": "^6.4.0",
30
30
  "@zauru-sdk/config": "^6.0.0",
31
- "@zauru-sdk/graphql": "^6.6.0",
31
+ "@zauru-sdk/graphql": "^6.7.0",
32
32
  "@zauru-sdk/types": "^6.14.0",
33
33
  "axios": "^1.6.7",
34
34
  "chalk": "5.3.0",
35
35
  "moment": "^2.30.1"
36
36
  },
37
- "gitHead": "e32a0a82d185dbd8feb512c2252e458b415edc95"
37
+ "gitHead": "add1b36bf68bad8debe05c25fd826d68acce2810"
38
38
  }