@zauru-sdk/services 6.9.1 → 6.11.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.
@@ -56,6 +56,15 @@ export async function deleteWebAppTableRegister(headers, id_web_app_table, id_re
56
56
  });
57
57
  return response.data;
58
58
  }
59
+ /**
60
+ * REST listing of webapp table rows (no GraphQL session token required).
61
+ */
62
+ export async function getWebAppTableRegistersRest(headers, id_web_app_table) {
63
+ return handlePossibleAxiosErrors(async () => {
64
+ const response = await httpZauru.get(`/apps/webapp_tables/${id_web_app_table}/webapp_rows.json`, { headers });
65
+ return Array.isArray(response.data) ? response.data : [];
66
+ });
67
+ }
59
68
  /**
60
69
  * createWebAppTableRegister function for create a new web app table register
61
70
  * @param headers
@@ -23,6 +23,10 @@ export declare function getWebAppTableRegisters<T>(session: Session, webapp_tabl
23
23
  * @returns
24
24
  */
25
25
  export declare function deleteWebAppTableRegister(headers: any, id_web_app_table: string, id_register: number): Promise<WebAppTableUpdateResponse>;
26
+ /**
27
+ * REST listing of webapp table rows (no GraphQL session token required).
28
+ */
29
+ export declare function getWebAppTableRegistersRest<T>(headers: any, id_web_app_table: string): Promise<AxiosUtilsResponse<WebAppRowGraphQL<T>[]>>;
26
30
  /**
27
31
  * createWebAppTableRegister function for create a new web app table register
28
32
  * @param headers
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zauru-sdk/services",
3
- "version": "6.9.1",
3
+ "version": "6.11.0",
4
4
  "description": "Servicios de consulta a Zauru",
5
5
  "main": "./dist/esm/index.js",
6
6
  "module": "./dist/esm/index.js",
@@ -26,13 +26,13 @@
26
26
  "dependencies": {
27
27
  "@remix-run/node": "^2.8.1",
28
28
  "@upstash/redis": "^1.34.5",
29
- "@zauru-sdk/common": "^6.4.1",
29
+ "@zauru-sdk/common": "^6.6.0",
30
30
  "@zauru-sdk/config": "^6.0.0",
31
31
  "@zauru-sdk/graphql": "^6.7.0",
32
- "@zauru-sdk/types": "^6.15.0",
32
+ "@zauru-sdk/types": "^6.16.0",
33
33
  "axios": "^1.6.7",
34
34
  "chalk": "5.3.0",
35
35
  "moment": "^2.30.1"
36
36
  },
37
- "gitHead": "ab1ff7197a4688c0e887942b4e7a1f6b729a510e"
37
+ "gitHead": "9e840d01a540f2ab49233dda2cb2b0c916ffba0b"
38
38
  }