@zauru-sdk/utils 1.0.17 → 1.0.18

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.
Files changed (35) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/zauru/bitacora-edicion-masiva.utils.d.ts +3 -3
  3. package/dist/zauru/bitacora-edicion-masiva.utils.js +6 -6
  4. package/dist/zauru/consolidated-history.utils.d.ts +3 -3
  5. package/dist/zauru/consolidated-history.utils.js +6 -6
  6. package/dist/zauru/costos-items.utils.d.ts +9 -9
  7. package/dist/zauru/costos-items.utils.js +17 -17
  8. package/dist/zauru/discharges-histsory.utils.d.ts +3 -3
  9. package/dist/zauru/discharges-histsory.utils.js +6 -6
  10. package/dist/zauru/items.utils.d.ts +3 -3
  11. package/dist/zauru/items.utils.js +6 -6
  12. package/dist/zauru/motivos-rechazo.utils.d.ts +2 -2
  13. package/dist/zauru/motivos-rechazo.utils.js +4 -4
  14. package/dist/zauru/payees.utils.d.ts +5 -5
  15. package/dist/zauru/payees.utils.js +10 -10
  16. package/dist/zauru/specialItem.utils.d.ts +4 -4
  17. package/dist/zauru/specialItem.utils.js +9 -9
  18. package/dist/zauru/templates.utils.d.ts +6 -6
  19. package/dist/zauru/templates.utils.js +12 -12
  20. package/dist/zauru/tiposMuestra.utils.d.ts +4 -4
  21. package/dist/zauru/tiposMuestra.utils.js +8 -8
  22. package/dist/zauru/webapp-tables.utils.d.ts +1 -1
  23. package/dist/zauru/webapp-tables.utils.js +2 -2
  24. package/package.json +3 -3
  25. package/src/zauru/bitacora-edicion-masiva.utils.ts +9 -9
  26. package/src/zauru/consolidated-history.utils.ts +9 -9
  27. package/src/zauru/costos-items.utils.ts +31 -25
  28. package/src/zauru/discharges-histsory.utils.ts +9 -9
  29. package/src/zauru/items.utils.ts +9 -9
  30. package/src/zauru/motivos-rechazo.utils.ts +6 -6
  31. package/src/zauru/payees.utils.ts +15 -15
  32. package/src/zauru/specialItem.utils.ts +25 -15
  33. package/src/zauru/templates.utils.ts +18 -18
  34. package/src/zauru/tiposMuestra.utils.ts +12 -12
  35. package/src/zauru/webapp-tables.utils.ts +2 -2
@@ -21,10 +21,10 @@ import {
21
21
  * @param session Session object.
22
22
  * @returns A Promise of AxiosUtilsResponse<TemplateWebAppTable[]>.
23
23
  */
24
- export async function getTemplates(
24
+ export const getTemplates = (
25
25
  headers: any,
26
26
  session: Session
27
- ): Promise<AxiosUtilsResponse<WebAppRowGraphQL<Template>[]>> {
27
+ ): Promise<AxiosUtilsResponse<WebAppRowGraphQL<Template>[]>> => {
28
28
  return handlePossibleAxiosErrors(async () => {
29
29
  const { templates_web_app_table_id } = await getVariablesByName(
30
30
  headers,
@@ -47,7 +47,7 @@ export async function getTemplates(
47
47
 
48
48
  return templateRegisters;
49
49
  });
50
- }
50
+ };
51
51
 
52
52
  /**
53
53
  * Create a template in the web app table.
@@ -56,11 +56,11 @@ export async function getTemplates(
56
56
  * @param body Template data to be created.
57
57
  * @returns A Promise of AxiosUtilsResponse<WebAppTableUpdateResponse>.
58
58
  */
59
- export async function createTemplate(
59
+ export const createTemplate = (
60
60
  headers: any,
61
61
  session: Session,
62
62
  body: Template
63
- ): Promise<AxiosUtilsResponse<WebAppTableUpdateResponse>> {
63
+ ): Promise<AxiosUtilsResponse<WebAppTableUpdateResponse>> => {
64
64
  return handlePossibleAxiosErrors(async () => {
65
65
  const { templates_web_app_table_id } = await getVariablesByName(
66
66
  headers,
@@ -74,7 +74,7 @@ export async function createTemplate(
74
74
  );
75
75
  return response;
76
76
  });
77
- }
77
+ };
78
78
 
79
79
  /**
80
80
  * Delete a template from the web app table.
@@ -83,11 +83,11 @@ export async function createTemplate(
83
83
  * @param id ID of the template to be deleted.
84
84
  * @returns A Promise of AxiosUtilsResponse<WebAppTableUpdateResponse>.
85
85
  */
86
- export async function deleteTemplate(
86
+ export const deleteTemplate = (
87
87
  headers: any,
88
88
  session: Session,
89
89
  id: string
90
- ): Promise<AxiosUtilsResponse<WebAppTableUpdateResponse>> {
90
+ ): Promise<AxiosUtilsResponse<WebAppTableUpdateResponse>> => {
91
91
  return handlePossibleAxiosErrors(async () => {
92
92
  const { templates_web_app_table_id } = await getVariablesByName(
93
93
  headers,
@@ -102,7 +102,7 @@ export async function deleteTemplate(
102
102
  );
103
103
  return response;
104
104
  });
105
- }
105
+ };
106
106
 
107
107
  /**
108
108
  * Update a template in the web app table.
@@ -112,12 +112,12 @@ export async function deleteTemplate(
112
112
  * @param body Updated template data.
113
113
  * @returns A Promise of AxiosUtilsResponse<WebAppTableUpdateResponse>.
114
114
  */
115
- export async function updateTemplate(
115
+ export const updateTemplate = (
116
116
  headers: any,
117
117
  session: Session,
118
118
  id: string,
119
119
  body: Partial<Template>
120
- ): Promise<AxiosUtilsResponse<WebAppTableUpdateResponse>> {
120
+ ): Promise<AxiosUtilsResponse<WebAppTableUpdateResponse>> => {
121
121
  return handlePossibleAxiosErrors(async () => {
122
122
  const { templates_web_app_table_id } = await getVariablesByName(
123
123
  headers,
@@ -134,7 +134,7 @@ export async function updateTemplate(
134
134
 
135
135
  return response;
136
136
  });
137
- }
137
+ };
138
138
 
139
139
  /**
140
140
  * Create a template history entry in the web app table.
@@ -143,11 +143,11 @@ export async function updateTemplate(
143
143
  * @param body Template history data to be created.
144
144
  * @returns A Promise of AxiosUtilsResponse<WebAppTableUpdateResponse>.
145
145
  */
146
- export async function createTemplateHistory(
146
+ export const createTemplateHistory = (
147
147
  headers: any,
148
148
  session: Session,
149
149
  body: Partial<HistoryTemplate>
150
- ): Promise<AxiosUtilsResponse<WebAppTableUpdateResponse>> {
150
+ ): Promise<AxiosUtilsResponse<WebAppTableUpdateResponse>> => {
151
151
  return handlePossibleAxiosErrors(async () => {
152
152
  const { history_templates_web_app_table_id } = await getVariablesByName(
153
153
  headers,
@@ -163,7 +163,7 @@ export async function createTemplateHistory(
163
163
 
164
164
  return response;
165
165
  });
166
- }
166
+ };
167
167
 
168
168
  /**
169
169
  * Get template history entries from the web app table.
@@ -171,10 +171,10 @@ export async function createTemplateHistory(
171
171
  * @param session Session object.
172
172
  * @returns A Promise of AxiosUtilsResponse<TemplateHistoryWebAppTable[]>.
173
173
  */
174
- export async function getTemplatesHistory(
174
+ export const getTemplatesHistory = (
175
175
  headers: any,
176
176
  session: Session
177
- ): Promise<AxiosUtilsResponse<WebAppRowGraphQL<HistoryTemplate>[]>> {
177
+ ): Promise<AxiosUtilsResponse<WebAppRowGraphQL<HistoryTemplate>[]>> => {
178
178
  return handlePossibleAxiosErrors(async () => {
179
179
  const { history_templates_web_app_table_id } = await getVariablesByName(
180
180
  headers,
@@ -196,4 +196,4 @@ export async function getTemplatesHistory(
196
196
 
197
197
  return templateRegisters;
198
198
  });
199
- }
199
+ };
@@ -20,10 +20,10 @@ import {
20
20
  * @param session Session object.
21
21
  * @returns A Promise of AxiosUtilsResponse<WebAppRowGraphQL<TipoMuestra>[]>>.
22
22
  */
23
- export async function getTipoMuestras(
23
+ export const getTipoMuestras = (
24
24
  headers: any,
25
25
  session: Session
26
- ): Promise<AxiosUtilsResponse<WebAppRowGraphQL<TipoMuestra>[]>> {
26
+ ): Promise<AxiosUtilsResponse<WebAppRowGraphQL<TipoMuestra>[]>> => {
27
27
  return handlePossibleAxiosErrors(async () => {
28
28
  const { tipo_muestra_web_app_table_id } = await getVariablesByName(
29
29
  headers,
@@ -46,7 +46,7 @@ export async function getTipoMuestras(
46
46
 
47
47
  return tipoMuestras;
48
48
  });
49
- }
49
+ };
50
50
 
51
51
  /**
52
52
  * Create a tipoMuestra in the web app table.
@@ -55,11 +55,11 @@ export async function getTipoMuestras(
55
55
  * @param body TipoMuestra data to be created.
56
56
  * @returns A Promise of AxiosUtilsResponse<WebAppTableUpdateResponse>.
57
57
  */
58
- export async function createTipoMuestra(
58
+ export const createTipoMuestra = (
59
59
  headers: any,
60
60
  session: Session,
61
61
  body: TipoMuestra
62
- ): Promise<AxiosUtilsResponse<WebAppTableUpdateResponse>> {
62
+ ): Promise<AxiosUtilsResponse<WebAppTableUpdateResponse>> => {
63
63
  return handlePossibleAxiosErrors(async () => {
64
64
  const { tipo_muestra_web_app_table_id } = await getVariablesByName(
65
65
  headers,
@@ -73,7 +73,7 @@ export async function createTipoMuestra(
73
73
  );
74
74
  return response;
75
75
  });
76
- }
76
+ };
77
77
 
78
78
  /**
79
79
  * Delete a tipoMuestra from the web app table.
@@ -82,11 +82,11 @@ export async function createTipoMuestra(
82
82
  * @param id ID of the tipoMuestra to be deleted.
83
83
  * @returns A Promise of AxiosUtilsResponse<WebAppTableUpdateResponse>.
84
84
  */
85
- export async function deleteTipoMuestra(
85
+ export const deleteTipoMuestra = (
86
86
  headers: any,
87
87
  session: Session,
88
88
  id: string
89
- ): Promise<AxiosUtilsResponse<WebAppTableUpdateResponse>> {
89
+ ): Promise<AxiosUtilsResponse<WebAppTableUpdateResponse>> => {
90
90
  return handlePossibleAxiosErrors(async () => {
91
91
  const { tipo_muestra_web_app_table_id } = await getVariablesByName(
92
92
  headers,
@@ -101,7 +101,7 @@ export async function deleteTipoMuestra(
101
101
  );
102
102
  return response;
103
103
  });
104
- }
104
+ };
105
105
 
106
106
  /**
107
107
  * Update a tipoMuestra in the web app table.
@@ -111,12 +111,12 @@ export async function deleteTipoMuestra(
111
111
  * @param body Updated tipoMuestra data.
112
112
  * @returns A Promise of AxiosUtilsResponse<WebAppTableUpdateResponse>.
113
113
  */
114
- export async function updateTipoMuestra(
114
+ export const updateTipoMuestra = (
115
115
  headers: any,
116
116
  session: Session,
117
117
  id: string,
118
118
  body: Partial<TipoMuestra>
119
- ): Promise<AxiosUtilsResponse<WebAppTableUpdateResponse>> {
119
+ ): Promise<AxiosUtilsResponse<WebAppTableUpdateResponse>> => {
120
120
  return handlePossibleAxiosErrors(async () => {
121
121
  const { tipo_muestra_web_app_table_id } = await getVariablesByName(
122
122
  headers,
@@ -133,4 +133,4 @@ export async function updateTipoMuestra(
133
133
 
134
134
  return response;
135
135
  });
136
- }
136
+ };
@@ -74,10 +74,10 @@ export const getRejectionWebAppTable = async (
74
74
  * @param session Session object.
75
75
  * @returns A Promise of AxiosUtilsResponse<ReceptionType[]>.
76
76
  */
77
- export async function getReceptionTypes(
77
+ export const getReceptionTypes = (
78
78
  headers: any,
79
79
  session: Session
80
- ): Promise<AxiosUtilsResponse<WebAppRowGraphQL<ReceptionType>[]>> {
80
+ ): Promise<AxiosUtilsResponse<WebAppRowGraphQL<ReceptionType>[]>> => {
81
81
  return handlePossibleAxiosErrors(async () => {
82
82
  const { recepciones_receptions_type_table_id } = await getVariablesByName(
83
83
  headers,