@zauru-sdk/services 2.32.0 → 2.32.3
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.
|
@@ -90,6 +90,31 @@ export async function updateWebAppTableRegister(headers, id_web_app_table, id_re
|
|
|
90
90
|
});
|
|
91
91
|
return response.data;
|
|
92
92
|
}
|
|
93
|
+
/**
|
|
94
|
+
* associateWebAppTableRegister — links one or more rowables to an existing row
|
|
95
|
+
* POST /apps/webapp_tables/:webapp_table_id/webapp_rows/:id/associate.json
|
|
96
|
+
*/
|
|
97
|
+
export async function associateWebAppTableRegister(headers, id_web_app_table, id_register, body) {
|
|
98
|
+
const response = await httpZauru(`/apps/webapp_tables/${id_web_app_table}/webapp_rows/${id_register}/associate.json`, {
|
|
99
|
+
method: "POST",
|
|
100
|
+
headers: headers,
|
|
101
|
+
data: body,
|
|
102
|
+
});
|
|
103
|
+
return response.data;
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* dissociateWebAppTableRegister — removes rowable associations from an existing row.
|
|
107
|
+
* Pass specific temp_* ids to remove only those, or { all: true } to remove all.
|
|
108
|
+
* DELETE /apps/webapp_tables/:webapp_table_id/webapp_rows/:id/dissociate.json
|
|
109
|
+
*/
|
|
110
|
+
export async function dissociateWebAppTableRegister(headers, id_web_app_table, id_register, body) {
|
|
111
|
+
const response = await httpZauru(`/apps/webapp_tables/${id_web_app_table}/webapp_rows/${id_register}/dissociate.json`, {
|
|
112
|
+
method: "DELETE",
|
|
113
|
+
headers: headers,
|
|
114
|
+
data: body,
|
|
115
|
+
});
|
|
116
|
+
return response.data;
|
|
117
|
+
}
|
|
93
118
|
//============================== WEB APP TABLE
|
|
94
119
|
/**
|
|
95
120
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Session } from "@remix-run/node";
|
|
2
|
-
import { AxiosUtilsResponse, RejectionWebAppTableObject, WebAppRowGraphQL, WebAppTableCreateBody, WebAppTableGraphQL, WebAppTableUpdateResponse } from "@zauru-sdk/types";
|
|
2
|
+
import { AxiosUtilsResponse, RejectionWebAppTableObject, WebAppRowAssociateBody, WebAppRowAssociateResponse, WebAppRowDissociateBody, WebAppRowDissociateResponse, WebAppRowGraphQL, WebAppTableCreateBody, WebAppTableGraphQL, WebAppTableUpdateResponse } from "@zauru-sdk/types";
|
|
3
3
|
/**
|
|
4
4
|
* getWebAppRow
|
|
5
5
|
* @param headers
|
|
@@ -39,6 +39,17 @@ export declare function createWebAppTableRegister<T>(headers: any, id_web_app_ta
|
|
|
39
39
|
* @returns
|
|
40
40
|
*/
|
|
41
41
|
export declare function updateWebAppTableRegister<T>(headers: any, id_web_app_table: string, id_register: number | string, body: Partial<T>): Promise<WebAppTableUpdateResponse>;
|
|
42
|
+
/**
|
|
43
|
+
* associateWebAppTableRegister — links one or more rowables to an existing row
|
|
44
|
+
* POST /apps/webapp_tables/:webapp_table_id/webapp_rows/:id/associate.json
|
|
45
|
+
*/
|
|
46
|
+
export declare function associateWebAppTableRegister(headers: any, id_web_app_table: string, id_register: number | string, body: WebAppRowAssociateBody): Promise<WebAppRowAssociateResponse>;
|
|
47
|
+
/**
|
|
48
|
+
* dissociateWebAppTableRegister — removes rowable associations from an existing row.
|
|
49
|
+
* Pass specific temp_* ids to remove only those, or { all: true } to remove all.
|
|
50
|
+
* DELETE /apps/webapp_tables/:webapp_table_id/webapp_rows/:id/dissociate.json
|
|
51
|
+
*/
|
|
52
|
+
export declare function dissociateWebAppTableRegister(headers: any, id_web_app_table: string, id_register: number | string, body: WebAppRowDissociateBody): Promise<WebAppRowDissociateResponse>;
|
|
42
53
|
/**
|
|
43
54
|
*
|
|
44
55
|
* @param headers
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zauru-sdk/services",
|
|
3
|
-
"version": "2.32.
|
|
3
|
+
"version": "2.32.3",
|
|
4
4
|
"description": "Servicios de consulta a Zauru",
|
|
5
5
|
"main": "./dist/esm/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@remix-run/node": "^2.8.1",
|
|
27
27
|
"@upstash/redis": "^1.34.5",
|
|
28
|
-
"@zauru-sdk/common": "^2.32.
|
|
28
|
+
"@zauru-sdk/common": "^2.32.3",
|
|
29
29
|
"@zauru-sdk/config": "^2.32.0",
|
|
30
30
|
"@zauru-sdk/graphql": "^2.32.0",
|
|
31
|
-
"@zauru-sdk/types": "^2.32.
|
|
31
|
+
"@zauru-sdk/types": "^2.32.3",
|
|
32
32
|
"axios": "^1.6.7",
|
|
33
33
|
"chalk": "5.3.0"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "467ba54112ad8bb5e565faab1e01dff40227e191"
|
|
36
36
|
}
|