apacuana-sdk-core 0.8.0 → 0.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.
Files changed (33) hide show
  1. package/README.md +85 -0
  2. package/coverage/clover.xml +196 -128
  3. package/coverage/coverage-final.json +7 -7
  4. package/coverage/lcov-report/index.html +29 -29
  5. package/coverage/lcov-report/src/api/certs.js.html +1 -1
  6. package/coverage/lcov-report/src/api/index.html +32 -32
  7. package/coverage/lcov-report/src/api/revocations.js.html +79 -43
  8. package/coverage/lcov-report/src/api/signatures.js.html +595 -73
  9. package/coverage/lcov-report/src/api/users.js.html +1 -1
  10. package/coverage/lcov-report/src/config/index.html +1 -1
  11. package/coverage/lcov-report/src/config/index.js.html +6 -6
  12. package/coverage/lcov-report/src/errors/index.html +1 -1
  13. package/coverage/lcov-report/src/errors/index.js.html +8 -8
  14. package/coverage/lcov-report/src/index.html +1 -1
  15. package/coverage/lcov-report/src/index.js.html +36 -3
  16. package/coverage/lcov-report/src/utils/constant.js.html +4 -4
  17. package/coverage/lcov-report/src/utils/helpers.js.html +1 -1
  18. package/coverage/lcov-report/src/utils/httpClient.js.html +65 -35
  19. package/coverage/lcov-report/src/utils/index.html +15 -15
  20. package/coverage/lcov.info +352 -220
  21. package/dist/api/signatures.d.ts +5 -0
  22. package/dist/index.d.ts +6 -0
  23. package/dist/index.js +374 -79
  24. package/dist/index.js.map +1 -1
  25. package/dist/index.mjs +374 -79
  26. package/dist/index.mjs.map +1 -1
  27. package/package.json +1 -1
  28. package/src/api/revocations.js +14 -2
  29. package/src/api/signatures.js +174 -0
  30. package/src/index.js +12 -1
  31. package/src/utils/httpClient.js +29 -19
  32. package/tests/api/revocations.test.js +118 -5
  33. package/tests/api/signatures.test.js +306 -0
package/README.md CHANGED
@@ -261,6 +261,91 @@ Obtiene la lista de códigos de motivo de revocación disponibles que se pueden
261
261
  - **`ONBOARDING`**: Obtiene la lista de motivos desde la API.
262
262
  - **`ONPREMISE`**: No soportado. Lanza una `ApacuanaAPIError` con el código `NOT_IMPLEMENTED`.
263
263
 
264
+ ### uploadSignatureVariant(data)
265
+
266
+ Sube una variante de firma (imagen) para un firmante específico. Esta imagen se utilizará como la representación gráfica de la firma en los documentos.
267
+
268
+ **Parámetros:**
269
+
270
+ - `data` (`UploadSignatureVariantData`): Objeto que contiene los datos para la subida.
271
+ - `file` (`File`): El archivo de imagen de la firma. Debe ser una instancia de `File` y de tipo `image/png`.
272
+ - `signerId` (`string`): El identificador del firmante al que se asociará la imagen.
273
+
274
+ **Retorna:**
275
+
276
+ - `Promise<UploadSignatureVariantResponse>`: Un objeto que contiene:
277
+ - `message` (String): Un mensaje de confirmación.
278
+ - `success` (Boolean): Indicador de éxito de la operación.
279
+
280
+ **Comportamiento por `integrationType`:**
281
+
282
+ - **`ONBOARDING`**: Sube el archivo a la API.
283
+ - **`ONPREMISE`**: No soportado. Lanza una `ApacuanaAPIError` con el código `NOT_IMPLEMENTED`.
284
+
285
+ ### getSignatureVariant()
286
+
287
+ Obtiene la variante de firma (imagen) de un firmante.
288
+
289
+ **Parámetros:** Ninguno
290
+
291
+ **Retorna:**
292
+
293
+ - `Promise<GetSignatureVariantResponse>`: Un objeto que contiene:
294
+ - `file` (String): La imagen de la firma en formato base64.
295
+ - `success` (Boolean): Indicador de éxito de la operación.
296
+
297
+ **Comportamiento por `integrationType`:**
298
+
299
+ - **`ONBOARDING`**: Realiza una petición `GET` para obtener la imagen.
300
+ - **`ONPREMISE`**: No soportado. Lanza una `ApacuanaAPIError` con el código `NOT_IMPLEMENTED`.
301
+
302
+ **Ejemplo:**
303
+
304
+ ```javascript
305
+ try {
306
+ const { file, success } = await apacuana.getSignatureVariant();
307
+ if (success) {
308
+ console.log("Imagen de la firma obtenida.");
309
+ // Puedes usar 'file' para mostrar la imagen, por ejemplo:
310
+ // const img = document.createElement('img');
311
+ // img.src = `data:image/png;base64,${file}`;
312
+ // document.body.appendChild(img);
313
+ }
314
+ } catch (error) {
315
+ console.error("Error al obtener la variante de firma:", error.message);
316
+ }
317
+ ```
318
+
319
+ ### deleteSignatureVariant()
320
+
321
+ Elimina la variante de firma (imagen) de un firmante.
322
+
323
+ **Parámetros:** Ninguno
324
+
325
+ **Retorna:**
326
+
327
+ - `Promise<DeleteSignatureVariantResponse>`: Un objeto que contiene:
328
+ - `message` (String): Un mensaje de confirmación.
329
+ - `success` (Boolean): Indicador de éxito de la operación.
330
+
331
+ **Comportamiento por `integrationType`:**
332
+
333
+ - **`ONBOARDING`**: Realiza una petición `DELETE` para eliminar la imagen.
334
+ - **`ONPREMISE`**: No soportado. Lanza una `ApacuanaAPIError` con el código `NOT_IMPLEMENTED`.
335
+
336
+ **Ejemplo:**
337
+
338
+ ```javascript
339
+ try {
340
+ const { message, success } = await apacuana.deleteSignatureVariant();
341
+ if (success) {
342
+ console.log(message); // "Signature variant deleted successfully."
343
+ }
344
+ } catch (error) {
345
+ console.error("Error al eliminar la variante de firma:", error.message);
346
+ }
347
+ ```
348
+
264
349
  ### getDocs(data)
265
350
 
266
351
  Obtiene una lista de documentos paginada.
@@ -1,29 +1,29 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1756828998996" clover="3.2.0">
3
- <project timestamp="1756828998997" name="All files">
4
- <metrics statements="282" coveredstatements="116" conditionals="227" coveredconditionals="37" methods="41" coveredmethods="13" elements="550" coveredelements="166" complexity="0" loc="282" ncloc="282" packages="5" files="10" classes="10"/>
2
+ <coverage generated="1757079771634" clover="3.2.0">
3
+ <project timestamp="1757079771634" name="All files">
4
+ <metrics statements="350" coveredstatements="209" conditionals="269" coveredconditionals="80" methods="52" coveredmethods="31" elements="671" coveredelements="320" complexity="0" loc="350" ncloc="350" packages="5" files="10" classes="10"/>
5
5
  <package name="src">
6
6
  <metrics statements="14" coveredstatements="12" conditionals="2" coveredconditionals="1" methods="2" coveredmethods="1"/>
7
7
  <file name="index.js" path="/builds/3dlinkweb/apacuana/libs/apacuana-sdk-core/main/src/index.js">
8
8
  <metrics statements="14" coveredstatements="12" conditionals="2" coveredconditionals="1" methods="2" coveredmethods="1"/>
9
- <line num="8" count="1" type="stmt"/>
10
- <line num="22" count="4" type="stmt"/>
11
- <line num="23" count="4" type="stmt"/>
12
- <line num="24" count="3" type="stmt"/>
13
- <line num="25" count="3" type="stmt"/>
14
- <line num="26" count="3" type="cond" truecount="1" falsecount="1"/>
15
- <line num="27" count="0" type="stmt"/>
9
+ <line num="16" count="1" type="stmt"/>
10
+ <line num="30" count="4" type="stmt"/>
11
+ <line num="31" count="4" type="stmt"/>
16
12
  <line num="32" count="3" type="stmt"/>
17
- <line num="33" count="2" type="stmt"/>
18
- <line num="34" count="2" type="stmt"/>
19
- <line num="35" count="2" type="stmt"/>
20
- <line num="38" count="2" type="stmt"/>
21
- <line num="39" count="2" type="stmt"/>
22
- <line num="42" count="0" type="stmt"/>
13
+ <line num="33" count="3" type="stmt"/>
14
+ <line num="34" count="3" type="cond" truecount="1" falsecount="1"/>
15
+ <line num="35" count="0" type="stmt"/>
16
+ <line num="40" count="3" type="stmt"/>
17
+ <line num="41" count="2" type="stmt"/>
18
+ <line num="42" count="2" type="stmt"/>
19
+ <line num="43" count="2" type="stmt"/>
20
+ <line num="46" count="2" type="stmt"/>
21
+ <line num="47" count="2" type="stmt"/>
22
+ <line num="50" count="0" type="stmt"/>
23
23
  </file>
24
24
  </package>
25
25
  <package name="src.api">
26
- <metrics statements="136" coveredstatements="77" conditionals="68" coveredconditionals="33" methods="20" coveredmethods="11"/>
26
+ <metrics statements="194" coveredstatements="170" conditionals="104" coveredconditionals="76" methods="29" coveredmethods="29"/>
27
27
  <file name="certs.js" path="/builds/3dlinkweb/apacuana/libs/apacuana-sdk-core/main/src/api/certs.js">
28
28
  <metrics statements="24" coveredstatements="20" conditionals="11" coveredconditionals="7" methods="4" coveredmethods="4"/>
29
29
  <line num="28" count="2" type="stmt"/>
@@ -52,51 +52,54 @@
52
52
  <line num="97" count="1" type="stmt"/>
53
53
  </file>
54
54
  <file name="revocations.js" path="/builds/3dlinkweb/apacuana/libs/apacuana-sdk-core/main/src/api/revocations.js">
55
- <metrics statements="16" coveredstatements="2" conditionals="6" coveredconditionals="0" methods="2" coveredmethods="0"/>
56
- <line num="39" count="1" type="stmt"/>
57
- <line num="40" count="0" type="cond" truecount="0" falsecount="2"/>
58
- <line num="41" count="0" type="stmt"/>
59
- <line num="44" count="0" type="stmt"/>
60
- <line num="45" count="0" type="stmt"/>
61
- <line num="51" count="0" type="stmt"/>
62
- <line num="53" count="0" type="stmt"/>
63
- <line num="62" count="1" type="stmt"/>
64
- <line num="63" count="0" type="stmt"/>
65
- <line num="64" count="0" type="stmt"/>
66
- <line num="70" count="0" type="cond" truecount="0" falsecount="2"/>
67
- <line num="71" count="0" type="stmt"/>
68
- <line num="74" count="0" type="stmt"/>
69
- <line num="76" count="0" type="cond" truecount="0" falsecount="2"/>
70
- <line num="77" count="0" type="stmt"/>
71
- <line num="79" count="0" type="stmt"/>
55
+ <metrics statements="19" coveredstatements="19" conditionals="8" coveredconditionals="8" methods="2" coveredmethods="2"/>
56
+ <line num="41" count="2" type="stmt"/>
57
+ <line num="42" count="3" type="cond" truecount="2" falsecount="0"/>
58
+ <line num="43" count="1" type="stmt"/>
59
+ <line num="46" count="2" type="stmt"/>
60
+ <line num="47" count="2" type="stmt"/>
61
+ <line num="53" count="1" type="stmt"/>
62
+ <line num="55" count="1" type="stmt"/>
63
+ <line num="64" count="2" type="stmt"/>
64
+ <line num="65" count="5" type="stmt"/>
65
+ <line num="67" count="5" type="cond" truecount="2" falsecount="0"/>
66
+ <line num="68" count="1" type="stmt"/>
67
+ <line num="75" count="4" type="stmt"/>
68
+ <line num="76" count="4" type="stmt"/>
69
+ <line num="82" count="2" type="cond" truecount="2" falsecount="0"/>
70
+ <line num="83" count="1" type="stmt"/>
71
+ <line num="86" count="1" type="stmt"/>
72
+ <line num="88" count="3" type="cond" truecount="2" falsecount="0"/>
73
+ <line num="89" count="2" type="stmt"/>
74
+ <line num="91" count="1" type="stmt"/>
72
75
  </file>
73
76
  <file name="signatures.js" path="/builds/3dlinkweb/apacuana/libs/apacuana-sdk-core/main/src/api/signatures.js">
74
- <metrics statements="83" coveredstatements="42" conditionals="39" coveredconditionals="15" methods="13" coveredmethods="6"/>
77
+ <metrics statements="138" coveredstatements="118" conditionals="73" coveredconditionals="50" methods="22" coveredmethods="22"/>
75
78
  <line num="76" count="2" type="stmt"/>
76
- <line num="77" count="0" type="stmt"/>
77
- <line num="78" count="0" type="stmt"/>
78
- <line num="79" count="0" type="stmt"/>
79
- <line num="80" count="0" type="stmt"/>
80
- <line num="82" count="0" type="stmt"/>
81
- <line num="93" count="0" type="stmt"/>
82
- <line num="98" count="0" type="stmt"/>
79
+ <line num="77" count="1" type="stmt"/>
80
+ <line num="78" count="1" type="stmt"/>
81
+ <line num="79" count="1" type="stmt"/>
82
+ <line num="80" count="1" type="stmt"/>
83
+ <line num="82" count="1" type="stmt"/>
84
+ <line num="93" count="1" type="stmt"/>
85
+ <line num="98" count="1" type="stmt"/>
83
86
  <line num="100" count="0" type="cond" truecount="0" falsecount="2"/>
84
87
  <line num="101" count="0" type="stmt"/>
85
88
  <line num="103" count="0" type="stmt"/>
86
89
  <line num="109" count="2" type="stmt"/>
87
- <line num="110" count="0" type="stmt"/>
90
+ <line num="110" count="1" type="stmt"/>
88
91
  <line num="117" count="2" type="stmt"/>
89
- <line num="118" count="0" type="stmt"/>
90
- <line num="119" count="0" type="stmt"/>
91
- <line num="126" count="0" type="cond" truecount="0" falsecount="2"/>
92
- <line num="127" count="0" type="cond" truecount="0" falsecount="2"/>
93
- <line num="128" count="0" type="stmt"/>
94
- <line num="135" count="0" type="stmt"/>
95
- <line num="137" count="0" type="cond" truecount="0" falsecount="2"/>
96
- <line num="138" count="0" type="stmt"/>
92
+ <line num="118" count="2" type="stmt"/>
93
+ <line num="119" count="2" type="stmt"/>
94
+ <line num="126" count="2" type="cond" truecount="2" falsecount="0"/>
95
+ <line num="127" count="2" type="cond" truecount="2" falsecount="0"/>
96
+ <line num="128" count="1" type="stmt"/>
97
+ <line num="135" count="1" type="stmt"/>
98
+ <line num="137" count="1" type="cond" truecount="1" falsecount="1"/>
99
+ <line num="138" count="1" type="stmt"/>
97
100
  <line num="140" count="0" type="stmt"/>
98
101
  <line num="146" count="2" type="stmt"/>
99
- <line num="147" count="0" type="stmt"/>
102
+ <line num="147" count="1" type="stmt"/>
100
103
  <line num="154" count="2" type="stmt"/>
101
104
  <line num="155" count="1" type="stmt"/>
102
105
  <line num="156" count="1" type="stmt"/>
@@ -123,38 +126,93 @@
123
126
  <line num="212" count="0" type="cond" truecount="0" falsecount="2"/>
124
127
  <line num="213" count="0" type="stmt"/>
125
128
  <line num="215" count="0" type="stmt"/>
126
- <line num="232" count="2" type="stmt"/>
129
+ <line num="221" count="2" type="stmt"/>
130
+ <line num="222" count="1" type="stmt"/>
131
+ <line num="223" count="1" type="stmt"/>
132
+ <line num="228" count="1" type="stmt"/>
133
+ <line num="230" count="0" type="cond" truecount="0" falsecount="2"/>
134
+ <line num="231" count="0" type="stmt"/>
127
135
  <line num="233" count="0" type="stmt"/>
128
- <line num="235" count="0" type="cond" truecount="0" falsecount="2"/>
129
- <line num="236" count="0" type="stmt"/>
130
- <line num="239" count="0" type="cond" truecount="0" falsecount="2"/>
131
- <line num="240" count="0" type="stmt"/>
132
- <line num="243" count="0" type="stmt"/>
133
- <line num="256" count="2" type="stmt"/>
134
- <line num="257" count="0" type="stmt"/>
135
- <line num="259" count="0" type="stmt"/>
136
- <line num="261" count="0" type="cond" truecount="0" falsecount="2"/>
137
- <line num="262" count="0" type="stmt"/>
138
- <line num="265" count="0" type="cond" truecount="0" falsecount="2"/>
139
- <line num="266" count="0" type="stmt"/>
140
- <line num="269" count="0" type="stmt"/>
141
- <line num="307" count="2" type="stmt"/>
142
- <line num="308" count="4" type="cond" truecount="2" falsecount="0"/>
143
- <line num="313" count="1" type="stmt"/>
144
- <line num="319" count="3" type="stmt"/>
145
- <line num="321" count="3" type="cond" truecount="2" falsecount="0"/>
136
+ <line num="239" count="2" type="stmt"/>
137
+ <line num="240" count="1" type="stmt"/>
138
+ <line num="247" count="2" type="stmt"/>
139
+ <line num="248" count="1" type="stmt"/>
140
+ <line num="249" count="1" type="stmt"/>
141
+ <line num="250" count="1" type="stmt"/>
142
+ <line num="255" count="1" type="stmt"/>
143
+ <line num="257" count="0" type="cond" truecount="0" falsecount="2"/>
144
+ <line num="258" count="0" type="stmt"/>
145
+ <line num="260" count="0" type="stmt"/>
146
+ <line num="266" count="2" type="stmt"/>
147
+ <line num="267" count="1" type="stmt"/>
148
+ <line num="274" count="2" type="stmt"/>
149
+ <line num="275" count="1" type="stmt"/>
150
+ <line num="276" count="1" type="stmt"/>
151
+ <line num="281" count="1" type="stmt"/>
152
+ <line num="283" count="0" type="cond" truecount="0" falsecount="2"/>
153
+ <line num="284" count="0" type="stmt"/>
154
+ <line num="286" count="0" type="stmt"/>
155
+ <line num="292" count="2" type="stmt"/>
156
+ <line num="293" count="1" type="stmt"/>
157
+ <line num="311" count="2" type="stmt"/>
158
+ <line num="312" count="3" type="stmt"/>
159
+ <line num="314" count="3" type="cond" truecount="2" falsecount="0"/>
160
+ <line num="315" count="1" type="stmt"/>
161
+ <line num="318" count="2" type="cond" truecount="2" falsecount="0"/>
162
+ <line num="319" count="1" type="stmt"/>
146
163
  <line num="322" count="1" type="stmt"/>
147
- <line num="325" count="2" type="cond" truecount="2" falsecount="0"/>
148
- <line num="326" count="1" type="stmt"/>
149
- <line num="329" count="1" type="stmt"/>
150
- <line num="342" count="2" type="stmt"/>
151
- <line num="343" count="5" type="stmt"/>
152
- <line num="345" count="3" type="stmt"/>
153
- <line num="347" count="3" type="cond" truecount="2" falsecount="0"/>
154
- <line num="348" count="2" type="stmt"/>
155
- <line num="351" count="1" type="cond" truecount="1" falsecount="1"/>
156
- <line num="352" count="1" type="stmt"/>
157
- <line num="355" count="0" type="stmt"/>
164
+ <line num="335" count="2" type="stmt"/>
165
+ <line num="336" count="4" type="stmt"/>
166
+ <line num="338" count="4" type="stmt"/>
167
+ <line num="340" count="4" type="cond" truecount="2" falsecount="0"/>
168
+ <line num="341" count="2" type="stmt"/>
169
+ <line num="344" count="2" type="cond" truecount="2" falsecount="0"/>
170
+ <line num="345" count="1" type="stmt"/>
171
+ <line num="348" count="1" type="stmt"/>
172
+ <line num="386" count="2" type="stmt"/>
173
+ <line num="387" count="4" type="cond" truecount="2" falsecount="0"/>
174
+ <line num="392" count="1" type="stmt"/>
175
+ <line num="398" count="3" type="stmt"/>
176
+ <line num="400" count="3" type="cond" truecount="2" falsecount="0"/>
177
+ <line num="401" count="1" type="stmt"/>
178
+ <line num="404" count="2" type="cond" truecount="2" falsecount="0"/>
179
+ <line num="405" count="1" type="stmt"/>
180
+ <line num="408" count="1" type="stmt"/>
181
+ <line num="421" count="2" type="stmt"/>
182
+ <line num="422" count="5" type="stmt"/>
183
+ <line num="424" count="3" type="stmt"/>
184
+ <line num="426" count="3" type="cond" truecount="2" falsecount="0"/>
185
+ <line num="427" count="2" type="stmt"/>
186
+ <line num="430" count="1" type="cond" truecount="1" falsecount="1"/>
187
+ <line num="431" count="1" type="stmt"/>
188
+ <line num="434" count="0" type="stmt"/>
189
+ <line num="448" count="2" type="stmt"/>
190
+ <line num="449" count="7" type="cond" truecount="4" falsecount="0"/>
191
+ <line num="450" count="2" type="stmt"/>
192
+ <line num="457" count="5" type="cond" truecount="4" falsecount="0"/>
193
+ <line num="458" count="1" type="stmt"/>
194
+ <line num="465" count="4" type="cond" truecount="2" falsecount="0"/>
195
+ <line num="466" count="1" type="stmt"/>
196
+ <line num="473" count="3" type="stmt"/>
197
+ <line num="475" count="3" type="cond" truecount="2" falsecount="0"/>
198
+ <line num="476" count="1" type="stmt"/>
199
+ <line num="479" count="2" type="cond" truecount="2" falsecount="0"/>
200
+ <line num="480" count="1" type="stmt"/>
201
+ <line num="483" count="1" type="stmt"/>
202
+ <line num="495" count="2" type="stmt"/>
203
+ <line num="496" count="3" type="stmt"/>
204
+ <line num="498" count="3" type="cond" truecount="2" falsecount="0"/>
205
+ <line num="499" count="1" type="stmt"/>
206
+ <line num="502" count="2" type="cond" truecount="2" falsecount="0"/>
207
+ <line num="503" count="1" type="stmt"/>
208
+ <line num="506" count="1" type="stmt"/>
209
+ <line num="518" count="2" type="stmt"/>
210
+ <line num="519" count="3" type="stmt"/>
211
+ <line num="521" count="3" type="cond" truecount="2" falsecount="0"/>
212
+ <line num="522" count="1" type="stmt"/>
213
+ <line num="525" count="2" type="cond" truecount="2" falsecount="0"/>
214
+ <line num="526" count="1" type="stmt"/>
215
+ <line num="529" count="1" type="stmt"/>
158
216
  </file>
159
217
  <file name="users.js" path="/builds/3dlinkweb/apacuana/libs/apacuana-sdk-core/main/src/api/users.js">
160
218
  <metrics statements="13" coveredstatements="13" conditionals="12" coveredconditionals="11" methods="1" coveredmethods="1"/>
@@ -177,17 +235,17 @@
177
235
  <metrics statements="12" coveredstatements="5" conditionals="9" coveredconditionals="0" methods="3" coveredmethods="0"/>
178
236
  <file name="index.js" path="/builds/3dlinkweb/apacuana/libs/apacuana-sdk-core/main/src/config/index.js">
179
237
  <metrics statements="12" coveredstatements="5" conditionals="9" coveredconditionals="0" methods="3" coveredmethods="0"/>
180
- <line num="16" count="2" type="stmt"/>
181
- <line num="28" count="2" type="stmt"/>
182
- <line num="30" count="2" type="stmt"/>
238
+ <line num="16" count="3" type="stmt"/>
239
+ <line num="28" count="3" type="stmt"/>
240
+ <line num="30" count="3" type="stmt"/>
183
241
  <line num="32" count="0" type="stmt"/>
184
242
  <line num="34" count="0" type="cond" truecount="0" falsecount="7"/>
185
243
  <line num="35" count="0" type="stmt"/>
186
244
  <line num="42" count="0" type="cond" truecount="0" falsecount="2"/>
187
245
  <line num="43" count="0" type="stmt"/>
188
246
  <line num="49" count="0" type="stmt"/>
189
- <line num="53" count="2" type="stmt"/>
190
- <line num="55" count="2" type="stmt"/>
247
+ <line num="53" count="3" type="stmt"/>
248
+ <line num="55" count="3" type="stmt"/>
191
249
  <line num="56" count="0" type="stmt"/>
192
250
  </file>
193
251
  </package>
@@ -195,22 +253,22 @@
195
253
  <metrics statements="7" coveredstatements="7" conditionals="4" coveredconditionals="3" methods="1" coveredmethods="1"/>
196
254
  <file name="index.js" path="/builds/3dlinkweb/apacuana/libs/apacuana-sdk-core/main/src/errors/index.js">
197
255
  <metrics statements="7" coveredstatements="7" conditionals="4" coveredconditionals="3" methods="1" coveredmethods="1"/>
198
- <line num="8" count="19" type="stmt"/>
199
- <line num="9" count="19" type="stmt"/>
200
- <line num="10" count="19" type="stmt"/>
201
- <line num="11" count="19" type="stmt"/>
202
- <line num="12" count="19" type="stmt"/>
203
- <line num="15" count="19" type="cond" truecount="1" falsecount="1"/>
204
- <line num="16" count="19" type="stmt"/>
256
+ <line num="8" count="53" type="stmt"/>
257
+ <line num="9" count="53" type="stmt"/>
258
+ <line num="10" count="53" type="stmt"/>
259
+ <line num="11" count="53" type="stmt"/>
260
+ <line num="12" count="53" type="stmt"/>
261
+ <line num="15" count="53" type="cond" truecount="1" falsecount="1"/>
262
+ <line num="16" count="53" type="stmt"/>
205
263
  </file>
206
264
  </package>
207
265
  <package name="src.utils">
208
- <metrics statements="113" coveredstatements="15" conditionals="144" coveredconditionals="0" methods="15" coveredmethods="0"/>
266
+ <metrics statements="123" coveredstatements="15" conditionals="150" coveredconditionals="0" methods="17" coveredmethods="0"/>
209
267
  <file name="constant.js" path="/builds/3dlinkweb/apacuana/libs/apacuana-sdk-core/main/src/utils/constant.js">
210
268
  <metrics statements="3" coveredstatements="3" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
211
- <line num="1" count="6" type="stmt"/>
212
- <line num="12" count="6" type="stmt"/>
213
- <line num="17" count="6" type="stmt"/>
269
+ <line num="1" count="8" type="stmt"/>
270
+ <line num="12" count="8" type="stmt"/>
271
+ <line num="17" count="8" type="stmt"/>
214
272
  </file>
215
273
  <file name="helpers.js" path="/builds/3dlinkweb/apacuana/libs/apacuana-sdk-core/main/src/utils/helpers.js">
216
274
  <metrics statements="70" coveredstatements="9" conditionals="104" coveredconditionals="0" methods="10" coveredmethods="0"/>
@@ -286,47 +344,57 @@
286
344
  <line num="240" count="0" type="stmt"/>
287
345
  </file>
288
346
  <file name="httpClient.js" path="/builds/3dlinkweb/apacuana/libs/apacuana-sdk-core/main/src/utils/httpClient.js">
289
- <metrics statements="40" coveredstatements="3" conditionals="40" coveredconditionals="0" methods="5" coveredmethods="0"/>
290
- <line num="12" count="2" type="stmt"/>
347
+ <metrics statements="50" coveredstatements="3" conditionals="46" coveredconditionals="0" methods="7" coveredmethods="0"/>
348
+ <line num="12" count="3" type="stmt"/>
291
349
  <line num="13" count="0" type="stmt"/>
292
350
  <line num="15" count="0" type="cond" truecount="0" falsecount="2"/>
293
351
  <line num="22" count="0" type="stmt"/>
294
352
  <line num="27" count="0" type="stmt"/>
295
- <line num="40" count="0" type="stmt"/>
296
- <line num="43" count="0" type="cond" truecount="0" falsecount="4"/>
297
- <line num="44" count="0" type="stmt"/>
298
- <line num="51" count="0" type="stmt"/>
299
- <line num="56" count="0" type="stmt"/>
300
- <line num="61" count="0" type="cond" truecount="0" falsecount="2"/>
301
- <line num="62" count="0" type="stmt"/>
302
- <line num="63" count="0" type="stmt"/>
303
- <line num="69" count="0" type="cond" truecount="0" falsecount="2"/>
304
- <line num="71" count="0" type="stmt"/>
305
- <line num="78" count="0" type="stmt"/>
306
- <line num="93" count="2" type="stmt"/>
307
- <line num="94" count="0" type="cond" truecount="0" falsecount="2"/>
308
- <line num="95" count="0" type="stmt"/>
309
- <line num="99" count="0" type="cond" truecount="0" falsecount="4"/>
310
- <line num="100" count="0" type="stmt"/>
353
+ <line num="39" count="0" type="stmt"/>
354
+ <line num="42" count="0" type="cond" truecount="0" falsecount="4"/>
355
+ <line num="44" count="0" type="cond" truecount="0" falsecount="3"/>
356
+ <line num="47" count="0" type="stmt"/>
357
+ <line num="53" count="0" type="stmt"/>
358
+ <line num="58" count="0" type="stmt"/>
359
+ <line num="63" count="0" type="cond" truecount="0" falsecount="2"/>
360
+ <line num="64" count="0" type="stmt"/>
361
+ <line num="66" count="0" type="cond" truecount="0" falsecount="3"/>
362
+ <line num="67" count="0" type="stmt"/>
363
+ <line num="73" count="0" type="cond" truecount="0" falsecount="2"/>
364
+ <line num="75" count="0" type="stmt"/>
365
+ <line num="82" count="0" type="stmt"/>
366
+ <line num="97" count="3" type="stmt"/>
367
+ <line num="98" count="0" type="cond" truecount="0" falsecount="2"/>
368
+ <line num="99" count="0" type="stmt"/>
369
+ <line num="103" count="0" type="cond" truecount="0" falsecount="4"/>
311
370
  <line num="104" count="0" type="stmt"/>
312
- <line num="117" count="2" type="cond" truecount="0" falsecount="2"/>
313
- <line num="118" count="0" type="cond" truecount="0" falsecount="2"/>
314
- <line num="119" count="0" type="stmt"/>
315
- <line num="127" count="0" type="stmt"/>
316
- <line num="131" count="0" type="stmt"/>
317
- <line num="133" count="0" type="cond" truecount="0" falsecount="5"/>
318
- <line num="135" count="0" type="stmt"/>
371
+ <line num="108" count="0" type="stmt"/>
372
+ <line num="121" count="3" type="cond" truecount="0" falsecount="2"/>
373
+ <line num="122" count="0" type="cond" truecount="0" falsecount="2"/>
374
+ <line num="123" count="0" type="stmt"/>
375
+ <line num="130" count="0" type="stmt"/>
376
+ <line num="132" count="0" type="stmt"/>
377
+ <line num="133" count="0" type="cond" truecount="0" falsecount="2"/>
378
+ <line num="135" count="0" type="cond" truecount="0" falsecount="2"/>
319
379
  <line num="136" count="0" type="stmt"/>
380
+ <line num="137" count="0" type="stmt"/>
320
381
  <line num="138" count="0" type="stmt"/>
321
- <line num="139" count="0" type="stmt"/>
322
- <line num="141" count="0" type="stmt"/>
382
+ <line num="140" count="0" type="stmt"/>
323
383
  <line num="142" count="0" type="stmt"/>
324
384
  <line num="144" count="0" type="stmt"/>
325
- <line num="145" count="0" type="stmt"/>
326
- <line num="147" count="0" type="stmt"/>
385
+ <line num="146" count="0" type="cond" truecount="0" falsecount="5"/>
386
+ <line num="148" count="0" type="stmt"/>
387
+ <line num="149" count="0" type="stmt"/>
388
+ <line num="151" count="0" type="stmt"/>
389
+ <line num="152" count="0" type="stmt"/>
390
+ <line num="154" count="0" type="stmt"/>
391
+ <line num="155" count="0" type="stmt"/>
327
392
  <line num="157" count="0" type="stmt"/>
328
- <line num="162" count="0" type="stmt"/>
393
+ <line num="161" count="0" type="stmt"/>
329
394
  <line num="163" count="0" type="stmt"/>
395
+ <line num="170" count="0" type="stmt"/>
396
+ <line num="172" count="0" type="stmt"/>
397
+ <line num="173" count="0" type="stmt"/>
330
398
  </file>
331
399
  </package>
332
400
  </project>