@zauru-sdk/utils 1.0.16 → 1.0.17
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.
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [1.0.17](https://github.com/intuitiva/zauru-typescript-sdk/compare/v1.0.16...v1.0.17) (2024-03-21)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @zauru-sdk/utils
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## [1.0.16](https://github.com/intuitiva/zauru-typescript-sdk/compare/v1.0.15...v1.0.16) (2024-03-21)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @zauru-sdk/utils
|
|
@@ -12,7 +12,7 @@ export declare const ESTADOS_COLA_RECEPCIONES: {
|
|
|
12
12
|
* @param session Session object.
|
|
13
13
|
* @returns A Promise of AxiosUtilsResponse<QueueFormReceptionWebAppTable[]>.
|
|
14
14
|
*/
|
|
15
|
-
export declare
|
|
15
|
+
export declare const getQueueFormReceptionHistories: (headers: any, session: Session) => Promise<AxiosUtilsResponse<WebAppRowGraphQL<QueueFormReceptionWebAppTable>[]>>;
|
|
16
16
|
/**
|
|
17
17
|
* Create a template in the web app table.
|
|
18
18
|
* @param headers Request headers.
|
|
@@ -20,18 +20,18 @@ export declare function getQueueFormReceptionHistories(headers: any, session: Se
|
|
|
20
20
|
* @param body QueueFormReceptionWebAppTable data to be created.
|
|
21
21
|
* @returns A Promise of AxiosUtilsResponse<QueueFormReceptionWebAppTable>.
|
|
22
22
|
*/
|
|
23
|
-
export declare
|
|
23
|
+
export declare const createQueueFormReceptionHistory: (headers: any, session: Session, body: QueueFormReceptionWebAppTable) => Promise<AxiosUtilsResponse<WebAppTableUpdateResponse>>;
|
|
24
24
|
/**
|
|
25
25
|
* Put updateQueueFormReception from the web app table.
|
|
26
26
|
* @param headers Request headers.
|
|
27
27
|
* @param session Session object.
|
|
28
28
|
* @returns A Promise of AxiosUtilsResponse<QueueFormReceptionWebAppTable[]>.
|
|
29
29
|
*/
|
|
30
|
-
export declare
|
|
30
|
+
export declare const updateQueueFormReceptionHistory: (headers: any, session: Session, body: Partial<QueueFormReceptionWebAppTable>, id_registro: string | number) => Promise<AxiosUtilsResponse<WebAppTableUpdateResponse>>;
|
|
31
31
|
/**
|
|
32
32
|
* Delete QueueFormReceptionHistory from the web app table.
|
|
33
33
|
* @param headers Request headers.
|
|
34
34
|
* @param session Session object.
|
|
35
35
|
* @returns A Promise of AxiosUtilsResponse<QueueFormReceptionWebAppTable[]>.
|
|
36
36
|
*/
|
|
37
|
-
export declare
|
|
37
|
+
export declare const deleteQueueFormReceptionHistory: (headers: any, session: Session, id: string) => Promise<AxiosUtilsResponse<WebAppTableUpdateResponse>>;
|
|
@@ -12,7 +12,7 @@ export const ESTADOS_COLA_RECEPCIONES = {
|
|
|
12
12
|
* @param session Session object.
|
|
13
13
|
* @returns A Promise of AxiosUtilsResponse<QueueFormReceptionWebAppTable[]>.
|
|
14
14
|
*/
|
|
15
|
-
export
|
|
15
|
+
export const getQueueFormReceptionHistories = (headers, session) => {
|
|
16
16
|
return handlePossibleAxiosErrors(async () => {
|
|
17
17
|
const { queue_form_recepcion_submited_web_app_table_id } = await getVariablesByName(headers, session, [
|
|
18
18
|
"queue_form_recepcion_submited_web_app_table_id",
|
|
@@ -24,7 +24,7 @@ export async function getQueueFormReceptionHistories(headers, session) {
|
|
|
24
24
|
const history = response?.data ?? [];
|
|
25
25
|
return history;
|
|
26
26
|
});
|
|
27
|
-
}
|
|
27
|
+
};
|
|
28
28
|
/**
|
|
29
29
|
* Create a template in the web app table.
|
|
30
30
|
* @param headers Request headers.
|
|
@@ -32,7 +32,7 @@ export async function getQueueFormReceptionHistories(headers, session) {
|
|
|
32
32
|
* @param body QueueFormReceptionWebAppTable data to be created.
|
|
33
33
|
* @returns A Promise of AxiosUtilsResponse<QueueFormReceptionWebAppTable>.
|
|
34
34
|
*/
|
|
35
|
-
export
|
|
35
|
+
export const createQueueFormReceptionHistory = (headers, session, body) => {
|
|
36
36
|
return handlePossibleAxiosErrors(async () => {
|
|
37
37
|
const { queue_form_recepcion_submited_web_app_table_id } = await getVariablesByName(headers, session, [
|
|
38
38
|
"queue_form_recepcion_submited_web_app_table_id",
|
|
@@ -40,14 +40,14 @@ export async function createQueueFormReceptionHistory(headers, session, body) {
|
|
|
40
40
|
const response = await createWebAppTableRegister(headers, queue_form_recepcion_submited_web_app_table_id, body);
|
|
41
41
|
return response;
|
|
42
42
|
});
|
|
43
|
-
}
|
|
43
|
+
};
|
|
44
44
|
/**
|
|
45
45
|
* Put updateQueueFormReception from the web app table.
|
|
46
46
|
* @param headers Request headers.
|
|
47
47
|
* @param session Session object.
|
|
48
48
|
* @returns A Promise of AxiosUtilsResponse<QueueFormReceptionWebAppTable[]>.
|
|
49
49
|
*/
|
|
50
|
-
export
|
|
50
|
+
export const updateQueueFormReceptionHistory = (headers, session, body, id_registro) => {
|
|
51
51
|
return handlePossibleAxiosErrors(async () => {
|
|
52
52
|
const { queue_form_recepcion_submited_web_app_table_id } = await getVariablesByName(headers, session, [
|
|
53
53
|
"queue_form_recepcion_submited_web_app_table_id",
|
|
@@ -55,14 +55,14 @@ export async function updateQueueFormReceptionHistory(headers, session, body, id
|
|
|
55
55
|
const response = await updateWebAppTableRegister(headers, queue_form_recepcion_submited_web_app_table_id, id_registro, { ...body });
|
|
56
56
|
return response;
|
|
57
57
|
});
|
|
58
|
-
}
|
|
58
|
+
};
|
|
59
59
|
/**
|
|
60
60
|
* Delete QueueFormReceptionHistory from the web app table.
|
|
61
61
|
* @param headers Request headers.
|
|
62
62
|
* @param session Session object.
|
|
63
63
|
* @returns A Promise of AxiosUtilsResponse<QueueFormReceptionWebAppTable[]>.
|
|
64
64
|
*/
|
|
65
|
-
export
|
|
65
|
+
export const deleteQueueFormReceptionHistory = (headers, session, id) => {
|
|
66
66
|
return handlePossibleAxiosErrors(async () => {
|
|
67
67
|
const { queue_form_recepcion_submited_web_app_table_id } = await getVariablesByName(headers, session, [
|
|
68
68
|
"queue_form_recepcion_submited_web_app_table_id",
|
|
@@ -70,4 +70,4 @@ export async function deleteQueueFormReceptionHistory(headers, session, id) {
|
|
|
70
70
|
const response = await deleteWebAppTableRegister(headers, queue_form_recepcion_submited_web_app_table_id, Number(id));
|
|
71
71
|
return response;
|
|
72
72
|
});
|
|
73
|
-
}
|
|
73
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zauru-sdk/utils",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.17",
|
|
4
4
|
"description": "Utilidades, parseo de request y demás para desarrollo de webapps de Zauru",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -28,5 +28,5 @@
|
|
|
28
28
|
"engines": {
|
|
29
29
|
"node": ">=18.0.0"
|
|
30
30
|
},
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "9cc8eff662b9eff30669468c617ca5e843721d84"
|
|
32
32
|
}
|
|
@@ -27,12 +27,12 @@ export const ESTADOS_COLA_RECEPCIONES = {
|
|
|
27
27
|
* @param session Session object.
|
|
28
28
|
* @returns A Promise of AxiosUtilsResponse<QueueFormReceptionWebAppTable[]>.
|
|
29
29
|
*/
|
|
30
|
-
export
|
|
30
|
+
export const getQueueFormReceptionHistories = (
|
|
31
31
|
headers: any,
|
|
32
32
|
session: Session
|
|
33
33
|
): Promise<
|
|
34
34
|
AxiosUtilsResponse<WebAppRowGraphQL<QueueFormReceptionWebAppTable>[]>
|
|
35
|
-
> {
|
|
35
|
+
> => {
|
|
36
36
|
return handlePossibleAxiosErrors(async () => {
|
|
37
37
|
const { queue_form_recepcion_submited_web_app_table_id } =
|
|
38
38
|
await getVariablesByName(headers, session, [
|
|
@@ -55,7 +55,7 @@ export async function getQueueFormReceptionHistories(
|
|
|
55
55
|
|
|
56
56
|
return history;
|
|
57
57
|
});
|
|
58
|
-
}
|
|
58
|
+
};
|
|
59
59
|
|
|
60
60
|
/**
|
|
61
61
|
* Create a template in the web app table.
|
|
@@ -64,11 +64,11 @@ export async function getQueueFormReceptionHistories(
|
|
|
64
64
|
* @param body QueueFormReceptionWebAppTable data to be created.
|
|
65
65
|
* @returns A Promise of AxiosUtilsResponse<QueueFormReceptionWebAppTable>.
|
|
66
66
|
*/
|
|
67
|
-
export
|
|
67
|
+
export const createQueueFormReceptionHistory = (
|
|
68
68
|
headers: any,
|
|
69
69
|
session: Session,
|
|
70
70
|
body: QueueFormReceptionWebAppTable
|
|
71
|
-
): Promise<AxiosUtilsResponse<WebAppTableUpdateResponse>> {
|
|
71
|
+
): Promise<AxiosUtilsResponse<WebAppTableUpdateResponse>> => {
|
|
72
72
|
return handlePossibleAxiosErrors(async () => {
|
|
73
73
|
const { queue_form_recepcion_submited_web_app_table_id } =
|
|
74
74
|
await getVariablesByName(headers, session, [
|
|
@@ -82,7 +82,7 @@ export async function createQueueFormReceptionHistory(
|
|
|
82
82
|
);
|
|
83
83
|
return response;
|
|
84
84
|
});
|
|
85
|
-
}
|
|
85
|
+
};
|
|
86
86
|
|
|
87
87
|
/**
|
|
88
88
|
* Put updateQueueFormReception from the web app table.
|
|
@@ -90,12 +90,12 @@ export async function createQueueFormReceptionHistory(
|
|
|
90
90
|
* @param session Session object.
|
|
91
91
|
* @returns A Promise of AxiosUtilsResponse<QueueFormReceptionWebAppTable[]>.
|
|
92
92
|
*/
|
|
93
|
-
export
|
|
93
|
+
export const updateQueueFormReceptionHistory = (
|
|
94
94
|
headers: any,
|
|
95
95
|
session: Session,
|
|
96
96
|
body: Partial<QueueFormReceptionWebAppTable>,
|
|
97
97
|
id_registro: string | number
|
|
98
|
-
): Promise<AxiosUtilsResponse<WebAppTableUpdateResponse>> {
|
|
98
|
+
): Promise<AxiosUtilsResponse<WebAppTableUpdateResponse>> => {
|
|
99
99
|
return handlePossibleAxiosErrors(async () => {
|
|
100
100
|
const { queue_form_recepcion_submited_web_app_table_id } =
|
|
101
101
|
await getVariablesByName(headers, session, [
|
|
@@ -112,7 +112,7 @@ export async function updateQueueFormReceptionHistory(
|
|
|
112
112
|
|
|
113
113
|
return response;
|
|
114
114
|
});
|
|
115
|
-
}
|
|
115
|
+
};
|
|
116
116
|
|
|
117
117
|
/**
|
|
118
118
|
* Delete QueueFormReceptionHistory from the web app table.
|
|
@@ -120,11 +120,11 @@ export async function updateQueueFormReceptionHistory(
|
|
|
120
120
|
* @param session Session object.
|
|
121
121
|
* @returns A Promise of AxiosUtilsResponse<QueueFormReceptionWebAppTable[]>.
|
|
122
122
|
*/
|
|
123
|
-
export
|
|
123
|
+
export const deleteQueueFormReceptionHistory = (
|
|
124
124
|
headers: any,
|
|
125
125
|
session: Session,
|
|
126
126
|
id: string
|
|
127
|
-
): Promise<AxiosUtilsResponse<WebAppTableUpdateResponse>> {
|
|
127
|
+
): Promise<AxiosUtilsResponse<WebAppTableUpdateResponse>> => {
|
|
128
128
|
return handlePossibleAxiosErrors(async () => {
|
|
129
129
|
const { queue_form_recepcion_submited_web_app_table_id } =
|
|
130
130
|
await getVariablesByName(headers, session, [
|
|
@@ -139,4 +139,4 @@ export async function deleteQueueFormReceptionHistory(
|
|
|
139
139
|
|
|
140
140
|
return response;
|
|
141
141
|
});
|
|
142
|
-
}
|
|
142
|
+
};
|