apacuana-sdk-core 0.15.0 → 0.17.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.
- package/README.md +30 -100
- package/coverage/clover.xml +150 -147
- package/coverage/coverage-final.json +2 -2
- package/coverage/lcov-report/index.html +13 -13
- package/coverage/lcov-report/src/api/certs.js.html +6 -3
- package/coverage/lcov-report/src/api/faceLiveness.js.html +1 -1
- package/coverage/lcov-report/src/api/index.html +1 -1
- package/coverage/lcov-report/src/api/revocations.js.html +1 -1
- package/coverage/lcov-report/src/api/signatures.js.html +1 -1
- package/coverage/lcov-report/src/api/users.js.html +1 -1
- package/coverage/lcov-report/src/config/index.html +1 -1
- package/coverage/lcov-report/src/config/index.js.html +1 -1
- package/coverage/lcov-report/src/errors/index.html +1 -1
- package/coverage/lcov-report/src/errors/index.js.html +1 -1
- package/coverage/lcov-report/src/index.html +1 -1
- package/coverage/lcov-report/src/index.js.html +1 -1
- package/coverage/lcov-report/src/success/index.html +1 -1
- package/coverage/lcov-report/src/success/index.js.html +1 -1
- package/coverage/lcov-report/src/utils/constant.js.html +1 -1
- package/coverage/lcov-report/src/utils/helpers.js.html +112 -40
- package/coverage/lcov-report/src/utils/httpClient.js.html +1 -1
- package/coverage/lcov-report/src/utils/index.html +12 -12
- package/coverage/lcov.info +312 -311
- package/dist/index.js +18 -13
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +18 -13
- package/dist/index.mjs.map +1 -1
- package/dist/utils/helpers.d.ts +1 -1
- package/package.json +1 -1
- package/src/api/certs.js +2 -1
- package/src/utils/helpers.js +54 -30
- package/tests/api/certs.test.js +6 -2
package/README.md
CHANGED
|
@@ -64,18 +64,18 @@ El SDK puede inicializarse sin el parámetro `customerId`, lo que permite el acc
|
|
|
64
64
|
- `getConfig()`
|
|
65
65
|
- `getCertTypes()`
|
|
66
66
|
- `getRequerimentsByTypeUser(params)`
|
|
67
|
-
- `createApacuanaUser(
|
|
67
|
+
- `createApacuanaUser(params)`
|
|
68
68
|
|
|
69
69
|
**Funciones privadas (requieren `customerId`):**
|
|
70
70
|
|
|
71
71
|
- `getCustomer()`
|
|
72
|
-
- `generateCert(
|
|
73
|
-
- `getCertStatus(
|
|
74
|
-
- `addSigner(
|
|
75
|
-
- `getDocs(
|
|
76
|
-
- `getDigest(
|
|
77
|
-
- `signDocument(
|
|
78
|
-
- `uploadSignatureVariant(
|
|
72
|
+
- `generateCert(params)`
|
|
73
|
+
- `getCertStatus(params)`
|
|
74
|
+
- `addSigner(params)`
|
|
75
|
+
- `getDocs(params)`
|
|
76
|
+
- `getDigest(params)`
|
|
77
|
+
- `signDocument(params)`
|
|
78
|
+
- `uploadSignatureVariant(params)`
|
|
79
79
|
- `getSignatureVariant()`
|
|
80
80
|
- `deleteSignatureVariant()`
|
|
81
81
|
- `createFaceLivenessSession()`
|
|
@@ -165,13 +165,13 @@ const result = await apacuana.getCustomer();
|
|
|
165
165
|
// result.data contendrá los datos del usuario y el token
|
|
166
166
|
```
|
|
167
167
|
|
|
168
|
-
### `generateCert(
|
|
168
|
+
### `generateCert(params)`
|
|
169
169
|
|
|
170
170
|
Genera un nuevo certificado digital.
|
|
171
171
|
|
|
172
172
|
#### Parámetros:
|
|
173
173
|
|
|
174
|
-
- `
|
|
174
|
+
- `params`: Objeto con la propiedad obligatoria:
|
|
175
175
|
- `csr` (String): Certificate Signing Request encriptado (por ejemplo, en formato Base64).
|
|
176
176
|
|
|
177
177
|
#### Comportamiento:
|
|
@@ -204,13 +204,13 @@ try {
|
|
|
204
204
|
}
|
|
205
205
|
```
|
|
206
206
|
|
|
207
|
-
### `getCertStatus(
|
|
207
|
+
### `getCertStatus(params)`
|
|
208
208
|
|
|
209
209
|
Obtiene el estado del certificado del usuario.
|
|
210
210
|
|
|
211
211
|
#### Parámetros:
|
|
212
212
|
|
|
213
|
-
- `
|
|
213
|
+
- `params` (Boolean): Indica si el certificado ya está almacenado localmente en el dispositivo.
|
|
214
214
|
|
|
215
215
|
#### Respuesta:
|
|
216
216
|
|
|
@@ -321,13 +321,13 @@ try {
|
|
|
321
321
|
}
|
|
322
322
|
```
|
|
323
323
|
|
|
324
|
-
### `addSigner(
|
|
324
|
+
### `addSigner(params)`
|
|
325
325
|
|
|
326
326
|
Añade un firmante a un documento. El comportamiento y los campos obligatorios dependen del `integrationType` configurado durante la inicialización.
|
|
327
327
|
|
|
328
328
|
#### Parámetros:
|
|
329
329
|
|
|
330
|
-
- **`
|
|
330
|
+
- **`params`**: Objeto con los datos del firmante y el documento.
|
|
331
331
|
- `name` (String, **obligatorio**): Nombre del documento.
|
|
332
332
|
- `document` (File, **opcional**): El archivo del documento a firmar (ej. un PDF). No puede coexistir con `reference`.
|
|
333
333
|
- `reference` (String, **opcional**): Referencia única para un documento ya existente en la plataforma. No puede coexistir con `document`.
|
|
@@ -380,7 +380,9 @@ try {
|
|
|
380
380
|
|
|
381
381
|
Obtiene una lista paginada de documentos asociados al usuario autenticado, permitiendo aplicar filtros avanzados.
|
|
382
382
|
|
|
383
|
-
- `data`: Objeto con parámetros de paginación (`page`, `size`) y filtros opcionales (`status
|
|
383
|
+
- `data`: Objeto con parámetros de paginación (`page`, `size`) y filtros opcionales (`status`). Puedes combinar estos filtros para obtener solo los documentos que cumplan con los criterios deseados.
|
|
384
|
+
|
|
385
|
+
- `filtros` : (`status`) 0 pendiente, 1 = completado/firmado, -1 rechazado
|
|
384
386
|
|
|
385
387
|
**Ejemplo:**
|
|
386
388
|
|
|
@@ -403,11 +405,11 @@ try {
|
|
|
403
405
|
- Si no se especifican filtros, se devolverán todos los documentos paginados.
|
|
404
406
|
- Los filtros disponibles pueden variar según la integración y la versión de la API.
|
|
405
407
|
|
|
406
|
-
### `getDigest(
|
|
408
|
+
### `getDigest(params)`
|
|
407
409
|
|
|
408
410
|
Obtiene el digest (resumen criptográfico) de un documento para el usuario autenticado. Este método requiere que el SDK esté inicializado con customerId.
|
|
409
411
|
|
|
410
|
-
El parámetro `
|
|
412
|
+
El parámetro `params` debe incluir:
|
|
411
413
|
|
|
412
414
|
- `cert` (String, obligatorio): Certificado en formato Base64.
|
|
413
415
|
- `signatureId` (String, obligatorio): ID de la firma que se está procesando.
|
|
@@ -437,11 +439,11 @@ const result = await apacuana.getDigest({
|
|
|
437
439
|
// result.data contendrá el digest y detalles para la firma
|
|
438
440
|
```
|
|
439
441
|
|
|
440
|
-
### `signDocument(
|
|
442
|
+
### `signDocument(params)`
|
|
441
443
|
|
|
442
444
|
Firma un documento utilizando el digest firmado y los datos de la firma. Este método requiere que el SDK esté inicializado con customerId.
|
|
443
445
|
|
|
444
|
-
El parámetro `
|
|
446
|
+
El parámetro `params` debe incluir:
|
|
445
447
|
|
|
446
448
|
- `signature` (Object, obligatorio):
|
|
447
449
|
- `id` (String): ID de la firma.
|
|
@@ -452,6 +454,8 @@ El parámetro `signData` debe incluir:
|
|
|
452
454
|
|
|
453
455
|
**Importante:**
|
|
454
456
|
|
|
457
|
+
- El objeto `signature` debe ser obtenido directamente del array de documentos devuelto por el método `getDocsByCustomer`, específicamente del atributo `signaturedata` de dicho documento.
|
|
458
|
+
|
|
455
459
|
- Si en el método `addSigner` se utilizó el parámetro `reference`, no es necesario incluir el archivo `document` al firmar, ya que el documento está referenciado en la plataforma.
|
|
456
460
|
- Si en `addSigner` se utilizó el parámetro `document` (archivo), será necesario proporcionar nuevamente el archivo en este método para completar la firma.
|
|
457
461
|
|
|
@@ -476,11 +480,11 @@ const result = await apacuana.signDocument({
|
|
|
476
480
|
// result.data contendrá la información del documento firmado
|
|
477
481
|
```
|
|
478
482
|
|
|
479
|
-
### `uploadSignatureVariant(
|
|
483
|
+
### `uploadSignatureVariant(params)`
|
|
480
484
|
|
|
481
485
|
Sube una imagen de variante de firma para el usuario autenticado. Este método requiere que el SDK esté inicializado con customerId.
|
|
482
486
|
|
|
483
|
-
El parámetro `
|
|
487
|
+
El parámetro `params` debe incluir:
|
|
484
488
|
|
|
485
489
|
- `file` (File, obligatorio): Archivo de imagen en formato PNG (`image/png`).
|
|
486
490
|
|
|
@@ -561,89 +565,13 @@ try {
|
|
|
561
565
|
|
|
562
566
|
### `requestRevocation(params)`
|
|
563
567
|
|
|
564
|
-
Solicita la revocación de un certificado.
|
|
565
|
-
|
|
566
|
-
Los documentos requeridos se obtienen previamente usando el método `getRequerimentsByTypeUser`. Deben enviarse bajo la estructura `{ file-ID: File }`, donde cada clave corresponde al identificador del documento y el valor es el archivo correspondiente.
|
|
568
|
+
Solicita la revocación de un certificado.
|
|
567
569
|
|
|
568
570
|
Ejemplo de estructura de parámetros:
|
|
569
571
|
|
|
570
572
|
```js
|
|
571
573
|
{
|
|
572
574
|
reasonCode: 1, // Código de la razón de revocación
|
|
573
|
-
doc: "12345678", // Documento de identidad (obligatorio en cada llamada)
|
|
574
|
-
files: {
|
|
575
|
-
"file-1": file1, // Instancia de File
|
|
576
|
-
"file-2": file2
|
|
577
|
-
// ...otros documentos según los requerimientos
|
|
578
|
-
}
|
|
579
|
-
}
|
|
580
|
-
```
|
|
581
|
-
|
|
582
|
-
El objeto completo de usuario que puede acompañar la solicitud es:
|
|
583
|
-
|
|
584
|
-
```js
|
|
585
|
-
{
|
|
586
|
-
email: "usuario@correo.com",
|
|
587
|
-
typeuser: 1,
|
|
588
|
-
name: "Nombre",
|
|
589
|
-
lastname: "Apellido",
|
|
590
|
-
kinddoc: "V",
|
|
591
|
-
doc: 12345678,
|
|
592
|
-
birthdate: "1990-01-01",
|
|
593
|
-
kindrif: "V",
|
|
594
|
-
gender: "M",
|
|
595
|
-
rif: 12345678,
|
|
596
|
-
phone: 4121234567,
|
|
597
|
-
kindphone: "0424",
|
|
598
|
-
state: "Estado",
|
|
599
|
-
municipality: "Municipio",
|
|
600
|
-
parish: "Parroquia",
|
|
601
|
-
postalcode: "1010",
|
|
602
|
-
address: "Dirección",
|
|
603
|
-
fiscaladdress: "Dirección fiscal",
|
|
604
|
-
fiscalkindphone: "0424",
|
|
605
|
-
fiscalphone: 4121234567,
|
|
606
|
-
occupation: "Ocupación",
|
|
607
|
-
degree: "Título",
|
|
608
|
-
university: "Universidad",
|
|
609
|
-
graduationyear: "2010",
|
|
610
|
-
collegiatenumber: "12345",
|
|
611
|
-
collegiateyear: "2011",
|
|
612
|
-
companyname: "Empresa",
|
|
613
|
-
companykindrif: "J",
|
|
614
|
-
companyrif: "J12345678",
|
|
615
|
-
companystate: "Estado",
|
|
616
|
-
companymunicipality: "Municipio",
|
|
617
|
-
companyparish: "Parroquia",
|
|
618
|
-
companyaddress: "Dirección empresa",
|
|
619
|
-
companykindphone: "0212",
|
|
620
|
-
companyphone: "2121234567",
|
|
621
|
-
companypostalcode: "1010",
|
|
622
|
-
companywebpage: "https://empresa.com",
|
|
623
|
-
companycommercialregister: "Registro comercial",
|
|
624
|
-
companyregisterdate: "2015-01-01",
|
|
625
|
-
companyregisternumber: "123456",
|
|
626
|
-
companyconstitutiondate: "2015-01-01",
|
|
627
|
-
companypublishdate: "2015-01-01",
|
|
628
|
-
companyconstitutiondecree: "Decreto",
|
|
629
|
-
companynumberdecree: "123",
|
|
630
|
-
positionprivate: "Cargo privado",
|
|
631
|
-
departmentprivate: "Departamento privado",
|
|
632
|
-
authorizedprivate: "Autorizado privado",
|
|
633
|
-
functionsprivate: "Funciones privado",
|
|
634
|
-
publishprivate: "2015-01-01",
|
|
635
|
-
issuedateprivate: "2015-01-01",
|
|
636
|
-
kindphoneprivate: "0424",
|
|
637
|
-
phoneprivate: 4121234567,
|
|
638
|
-
positionpublic: "Cargo público",
|
|
639
|
-
departmentpublic: "Departamento público",
|
|
640
|
-
authorizedpublic: "Autorizado público",
|
|
641
|
-
functionspublic: "Funciones público",
|
|
642
|
-
publishpublic: "2015-01-01",
|
|
643
|
-
issuedatepublic: "2015-01-01",
|
|
644
|
-
kindphonepublic: "0424",
|
|
645
|
-
phonepublic: 4121234567,
|
|
646
|
-
companyid: "uuid-empresa"
|
|
647
575
|
}
|
|
648
576
|
```
|
|
649
577
|
|
|
@@ -657,7 +585,9 @@ El objeto completo de usuario que puede acompañar la solicitud es:
|
|
|
657
585
|
```js
|
|
658
586
|
{
|
|
659
587
|
success: true,
|
|
660
|
-
data: {
|
|
588
|
+
data: {
|
|
589
|
+
...
|
|
590
|
+
}
|
|
661
591
|
}
|
|
662
592
|
```
|
|
663
593
|
|
|
@@ -703,7 +633,7 @@ try {
|
|
|
703
633
|
}
|
|
704
634
|
```
|
|
705
635
|
|
|
706
|
-
### `createApacuanaUser(
|
|
636
|
+
### `createApacuanaUser(params)`
|
|
707
637
|
|
|
708
638
|
Crea un nuevo usuario en la plataforma de Apacuana. Este método puede llamarse varias veces para ir completando la información de forma parcial; no es necesario enviar todos los datos en una sola llamada. Sin embargo, en cada actualización es obligatorio enviar el número de documento de identidad (`kinddoc+doc`). El registro inicial debe incluir el documento de identidad.
|
|
709
639
|
|
package/coverage/clover.xml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<coverage generated="
|
|
3
|
-
<project timestamp="
|
|
4
|
-
<metrics statements="
|
|
2
|
+
<coverage generated="1759352925379" clover="3.2.0">
|
|
3
|
+
<project timestamp="1759352925379" name="All files">
|
|
4
|
+
<metrics statements="566" coveredstatements="324" conditionals="386" coveredconditionals="134" methods="95" coveredmethods="49" elements="1047" coveredelements="507" complexity="0" loc="566" ncloc="566" packages="6" files="12" classes="12"/>
|
|
5
5
|
<package name="src">
|
|
6
6
|
<metrics statements="57" coveredstatements="15" conditionals="15" coveredconditionals="3" methods="20" coveredmethods="1"/>
|
|
7
7
|
<file name="index.js" path="/builds/3dlinkweb/apacuana/libs/apacuana-sdk-core/main/src/index.js">
|
|
@@ -92,61 +92,61 @@
|
|
|
92
92
|
<line num="85" count="2" type="cond" truecount="0" falsecount="1"/>
|
|
93
93
|
<line num="86" count="1" type="stmt"/>
|
|
94
94
|
<line num="87" count="1" type="stmt"/>
|
|
95
|
-
<line num="
|
|
96
|
-
<line num="
|
|
97
|
-
<line num="
|
|
98
|
-
<line num="97" count="1" type="stmt"/>
|
|
95
|
+
<line num="92" count="1" type="stmt"/>
|
|
96
|
+
<line num="94" count="1" type="stmt"/>
|
|
97
|
+
<line num="97" count="2" type="stmt"/>
|
|
99
98
|
<line num="98" count="1" type="stmt"/>
|
|
100
|
-
<line num="
|
|
101
|
-
<line num="
|
|
102
|
-
<line num="107" count="0" type="
|
|
103
|
-
<line num="
|
|
104
|
-
<line num="
|
|
105
|
-
<line num="114" count="
|
|
106
|
-
<line num="
|
|
107
|
-
<line num="128" count="
|
|
108
|
-
<line num="129" count="3" type="
|
|
109
|
-
<line num="130" count="
|
|
110
|
-
<line num="
|
|
111
|
-
<line num="133" count="
|
|
112
|
-
<line num="
|
|
113
|
-
<line num="
|
|
99
|
+
<line num="99" count="1" type="stmt"/>
|
|
100
|
+
<line num="105" count="1" type="stmt"/>
|
|
101
|
+
<line num="107" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
102
|
+
<line num="108" count="0" type="stmt"/>
|
|
103
|
+
<line num="110" count="0" type="stmt"/>
|
|
104
|
+
<line num="114" count="2" type="stmt"/>
|
|
105
|
+
<line num="115" count="1" type="stmt"/>
|
|
106
|
+
<line num="128" count="2" type="stmt"/>
|
|
107
|
+
<line num="129" count="3" type="stmt"/>
|
|
108
|
+
<line num="130" count="3" type="cond" truecount="2" falsecount="0"/>
|
|
109
|
+
<line num="131" count="1" type="stmt"/>
|
|
110
|
+
<line num="133" count="2" type="cond" truecount="2" falsecount="0"/>
|
|
111
|
+
<line num="134" count="1" type="stmt"/>
|
|
112
|
+
<line num="137" count="1" type="stmt"/>
|
|
114
113
|
<line num="144" count="2" type="stmt"/>
|
|
115
114
|
<line num="145" count="2" type="stmt"/>
|
|
116
|
-
<line num="
|
|
117
|
-
<line num="
|
|
118
|
-
<line num="154" count="
|
|
119
|
-
<line num="
|
|
120
|
-
<line num="
|
|
121
|
-
<line num="161" count="
|
|
122
|
-
<line num="
|
|
123
|
-
<line num="177" count="
|
|
124
|
-
<line num="178" count="
|
|
125
|
-
<line num="
|
|
126
|
-
<line num="
|
|
127
|
-
<line num="185" count="4" type="
|
|
128
|
-
<line num="186" count="
|
|
129
|
-
<line num="
|
|
130
|
-
<line num="189" count="
|
|
131
|
-
<line num="
|
|
132
|
-
<line num="
|
|
133
|
-
<line num="200" count="
|
|
115
|
+
<line num="146" count="2" type="stmt"/>
|
|
116
|
+
<line num="152" count="1" type="stmt"/>
|
|
117
|
+
<line num="154" count="1" type="cond" truecount="1" falsecount="1"/>
|
|
118
|
+
<line num="155" count="0" type="stmt"/>
|
|
119
|
+
<line num="157" count="1" type="stmt"/>
|
|
120
|
+
<line num="161" count="2" type="stmt"/>
|
|
121
|
+
<line num="162" count="1" type="stmt"/>
|
|
122
|
+
<line num="177" count="2" type="stmt"/>
|
|
123
|
+
<line num="178" count="7" type="cond" truecount="4" falsecount="0"/>
|
|
124
|
+
<line num="179" count="3" type="stmt"/>
|
|
125
|
+
<line num="183" count="4" type="stmt"/>
|
|
126
|
+
<line num="185" count="4" type="stmt"/>
|
|
127
|
+
<line num="186" count="4" type="cond" truecount="2" falsecount="0"/>
|
|
128
|
+
<line num="187" count="2" type="stmt"/>
|
|
129
|
+
<line num="189" count="2" type="cond" truecount="2" falsecount="0"/>
|
|
130
|
+
<line num="190" count="1" type="stmt"/>
|
|
131
|
+
<line num="193" count="1" type="stmt"/>
|
|
132
|
+
<line num="200" count="2" type="stmt"/>
|
|
134
133
|
<line num="201" count="3" type="stmt"/>
|
|
135
|
-
<line num="
|
|
136
|
-
<line num="
|
|
137
|
-
<line num="210" count="
|
|
138
|
-
<line num="
|
|
139
|
-
<line num="
|
|
140
|
-
<line num="217" count="
|
|
141
|
-
<line num="
|
|
142
|
-
<line num="232" count="
|
|
143
|
-
<line num="
|
|
144
|
-
<line num="
|
|
145
|
-
<line num="243" count="5" type="
|
|
146
|
-
<line num="244" count="
|
|
147
|
-
<line num="
|
|
148
|
-
<line num="247" count="
|
|
149
|
-
<line num="
|
|
134
|
+
<line num="202" count="3" type="stmt"/>
|
|
135
|
+
<line num="208" count="1" type="stmt"/>
|
|
136
|
+
<line num="210" count="2" type="cond" truecount="2" falsecount="0"/>
|
|
137
|
+
<line num="211" count="1" type="stmt"/>
|
|
138
|
+
<line num="213" count="1" type="stmt"/>
|
|
139
|
+
<line num="217" count="2" type="stmt"/>
|
|
140
|
+
<line num="218" count="1" type="stmt"/>
|
|
141
|
+
<line num="232" count="2" type="stmt"/>
|
|
142
|
+
<line num="233" count="8" type="cond" truecount="2" falsecount="0"/>
|
|
143
|
+
<line num="238" count="3" type="stmt"/>
|
|
144
|
+
<line num="243" count="5" type="stmt"/>
|
|
145
|
+
<line num="244" count="5" type="cond" truecount="2" falsecount="0"/>
|
|
146
|
+
<line num="245" count="3" type="stmt"/>
|
|
147
|
+
<line num="247" count="2" type="cond" truecount="2" falsecount="0"/>
|
|
148
|
+
<line num="248" count="1" type="stmt"/>
|
|
149
|
+
<line num="251" count="1" type="stmt"/>
|
|
150
150
|
</file>
|
|
151
151
|
<file name="faceLiveness.js" path="/builds/3dlinkweb/apacuana/libs/apacuana-sdk-core/main/src/api/faceLiveness.js">
|
|
152
152
|
<metrics statements="46" coveredstatements="44" conditionals="21" coveredconditionals="19" methods="6" coveredmethods="6"/>
|
|
@@ -449,7 +449,7 @@
|
|
|
449
449
|
</file>
|
|
450
450
|
</package>
|
|
451
451
|
<package name="src.utils">
|
|
452
|
-
<metrics statements="
|
|
452
|
+
<metrics statements="162" coveredstatements="17" conditionals="183" coveredconditionals="0" methods="21" coveredmethods="0"/>
|
|
453
453
|
<file name="constant.js" path="/builds/3dlinkweb/apacuana/libs/apacuana-sdk-core/main/src/utils/constant.js">
|
|
454
454
|
<metrics statements="4" coveredstatements="4" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
|
|
455
455
|
<line num="1" count="9" type="stmt"/>
|
|
@@ -458,110 +458,113 @@
|
|
|
458
458
|
<line num="54" count="9" type="stmt"/>
|
|
459
459
|
</file>
|
|
460
460
|
<file name="helpers.js" path="/builds/3dlinkweb/apacuana/libs/apacuana-sdk-core/main/src/utils/helpers.js">
|
|
461
|
-
<metrics statements="
|
|
462
|
-
<line num="
|
|
463
|
-
<line num="
|
|
464
|
-
<line num="
|
|
465
|
-
<line num="
|
|
466
|
-
<line num="
|
|
467
|
-
<line num="
|
|
468
|
-
<line num="
|
|
469
|
-
<line num="
|
|
470
|
-
<line num="20" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
471
|
-
<line num="24" count="0" type="stmt"/>
|
|
472
|
-
<line num="25" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
473
|
-
<line num="32" count="0" type="stmt"/>
|
|
474
|
-
<line num="33" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
461
|
+
<metrics statements="106" coveredstatements="10" conditionals="134" coveredconditionals="0" methods="14" coveredmethods="0"/>
|
|
462
|
+
<line num="10" count="2" type="stmt"/>
|
|
463
|
+
<line num="12" count="2" type="stmt"/>
|
|
464
|
+
<line num="17" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
465
|
+
<line num="18" count="0" type="stmt"/>
|
|
466
|
+
<line num="24" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
467
|
+
<line num="25" count="0" type="stmt"/>
|
|
468
|
+
<line num="32" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
469
|
+
<line num="33" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
475
470
|
<line num="34" count="0" type="stmt"/>
|
|
476
471
|
<line num="35" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
477
|
-
<line num="
|
|
478
|
-
<line num="
|
|
479
|
-
<line num="
|
|
480
|
-
<line num="
|
|
481
|
-
<line num="47" count="2" type="stmt"/>
|
|
482
|
-
<line num="48" count="0" type="stmt"/>
|
|
472
|
+
<line num="42" count="0" type="stmt"/>
|
|
473
|
+
<line num="43" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
474
|
+
<line num="44" count="0" type="stmt"/>
|
|
475
|
+
<line num="45" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
483
476
|
<line num="49" count="0" type="stmt"/>
|
|
484
|
-
<line num="
|
|
477
|
+
<line num="50" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
478
|
+
<line num="51" count="0" type="stmt"/>
|
|
479
|
+
<line num="52" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
485
480
|
<line num="54" count="0" type="stmt"/>
|
|
486
|
-
<line num="
|
|
487
|
-
<line num="
|
|
488
|
-
<line num="
|
|
489
|
-
<line num="
|
|
490
|
-
<line num="
|
|
491
|
-
<line num="69" count="2" type="stmt"/>
|
|
492
|
-
<line num="70" count="0" type="stmt"/>
|
|
481
|
+
<line num="56" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
482
|
+
<line num="57" count="0" type="stmt"/>
|
|
483
|
+
<line num="63" count="0" type="stmt"/>
|
|
484
|
+
<line num="71" count="2" type="stmt"/>
|
|
485
|
+
<line num="72" count="0" type="stmt"/>
|
|
493
486
|
<line num="73" count="0" type="stmt"/>
|
|
494
|
-
<line num="
|
|
487
|
+
<line num="77" count="0" type="stmt"/>
|
|
495
488
|
<line num="78" count="0" type="stmt"/>
|
|
496
|
-
<line num="79" count="0" type="
|
|
489
|
+
<line num="79" count="0" type="stmt"/>
|
|
497
490
|
<line num="80" count="0" type="stmt"/>
|
|
498
|
-
<line num="83" count="
|
|
499
|
-
<line num="
|
|
500
|
-
<line num="
|
|
501
|
-
<line num="
|
|
491
|
+
<line num="83" count="2" type="cond" truecount="0" falsecount="1"/>
|
|
492
|
+
<line num="84" count="0" type="stmt"/>
|
|
493
|
+
<line num="90" count="0" type="stmt"/>
|
|
494
|
+
<line num="93" count="2" type="stmt"/>
|
|
502
495
|
<line num="94" count="0" type="stmt"/>
|
|
503
|
-
<line num="
|
|
496
|
+
<line num="97" count="0" type="stmt"/>
|
|
497
|
+
<line num="100" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
498
|
+
<line num="102" count="0" type="stmt"/>
|
|
499
|
+
<line num="103" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
500
|
+
<line num="104" count="0" type="stmt"/>
|
|
504
501
|
<line num="107" count="0" type="stmt"/>
|
|
505
|
-
<line num="
|
|
506
|
-
<line num="
|
|
507
|
-
<line num="
|
|
508
|
-
<line num="
|
|
509
|
-
<line num="
|
|
510
|
-
<line num="
|
|
511
|
-
<line num="
|
|
512
|
-
<line num="
|
|
513
|
-
<line num="
|
|
514
|
-
<line num="
|
|
515
|
-
<line num="
|
|
516
|
-
<line num="
|
|
502
|
+
<line num="110" count="2" type="stmt"/>
|
|
503
|
+
<line num="112" count="0" type="stmt"/>
|
|
504
|
+
<line num="114" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
505
|
+
<line num="118" count="0" type="stmt"/>
|
|
506
|
+
<line num="126" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
507
|
+
<line num="131" count="0" type="stmt"/>
|
|
508
|
+
<line num="135" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
509
|
+
<line num="140" count="0" type="stmt"/>
|
|
510
|
+
<line num="144" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
511
|
+
<line num="145" count="0" type="stmt"/>
|
|
512
|
+
<line num="152" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
513
|
+
<line num="153" count="0" type="stmt"/>
|
|
517
514
|
<line num="160" count="0" type="stmt"/>
|
|
518
|
-
<line num="
|
|
519
|
-
<line num="
|
|
520
|
-
<line num="
|
|
521
|
-
<line num="
|
|
522
|
-
<line num="
|
|
523
|
-
<line num="
|
|
524
|
-
<line num="
|
|
525
|
-
<line num="
|
|
526
|
-
<line num="
|
|
527
|
-
<line num="
|
|
528
|
-
<line num="
|
|
529
|
-
<line num="
|
|
530
|
-
<line num="
|
|
531
|
-
<line num="
|
|
532
|
-
<line num="
|
|
533
|
-
<line num="
|
|
534
|
-
<line num="
|
|
535
|
-
<line num="
|
|
536
|
-
<line num="
|
|
537
|
-
<line num="
|
|
538
|
-
<line num="
|
|
539
|
-
<line num="
|
|
540
|
-
<line num="
|
|
541
|
-
<line num="
|
|
542
|
-
<line num="
|
|
543
|
-
<line num="
|
|
544
|
-
<line num="
|
|
545
|
-
<line num="
|
|
546
|
-
<line num="
|
|
547
|
-
<line num="
|
|
548
|
-
<line num="
|
|
549
|
-
<line num="
|
|
550
|
-
<line num="
|
|
551
|
-
<line num="
|
|
552
|
-
<line num="
|
|
553
|
-
<line num="
|
|
554
|
-
<line num="
|
|
555
|
-
<line num="306" count="0" type="cond" truecount="0" falsecount="
|
|
515
|
+
<line num="161" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
516
|
+
<line num="165" count="0" type="stmt"/>
|
|
517
|
+
<line num="172" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
518
|
+
<line num="173" count="0" type="stmt"/>
|
|
519
|
+
<line num="180" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
520
|
+
<line num="184" count="0" type="stmt"/>
|
|
521
|
+
<line num="191" count="0" type="stmt"/>
|
|
522
|
+
<line num="192" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
523
|
+
<line num="193" count="0" type="stmt"/>
|
|
524
|
+
<line num="202" count="0" type="cond" truecount="0" falsecount="5"/>
|
|
525
|
+
<line num="203" count="0" type="stmt"/>
|
|
526
|
+
<line num="212" count="0" type="cond" truecount="0" falsecount="5"/>
|
|
527
|
+
<line num="213" count="0" type="stmt"/>
|
|
528
|
+
<line num="223" count="0" type="stmt"/>
|
|
529
|
+
<line num="224" count="0" type="stmt"/>
|
|
530
|
+
<line num="225" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
531
|
+
<line num="226" count="0" type="stmt"/>
|
|
532
|
+
<line num="227" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
533
|
+
<line num="228" count="0" type="stmt"/>
|
|
534
|
+
<line num="229" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
535
|
+
<line num="230" count="0" type="stmt"/>
|
|
536
|
+
<line num="234" count="0" type="stmt"/>
|
|
537
|
+
<line num="237" count="2" type="stmt"/>
|
|
538
|
+
<line num="238" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
539
|
+
<line num="245" count="0" type="stmt"/>
|
|
540
|
+
<line num="254" count="2" type="stmt"/>
|
|
541
|
+
<line num="255" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
542
|
+
<line num="260" count="0" type="stmt"/>
|
|
543
|
+
<line num="267" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
544
|
+
<line num="271" count="0" type="stmt"/>
|
|
545
|
+
<line num="279" count="2" type="stmt"/>
|
|
546
|
+
<line num="280" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
547
|
+
<line num="287" count="0" type="stmt"/>
|
|
548
|
+
<line num="295" count="2" type="stmt"/>
|
|
549
|
+
<line num="296" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
550
|
+
<line num="297" count="0" type="stmt"/>
|
|
551
|
+
<line num="304" count="0" type="stmt"/>
|
|
552
|
+
<line num="306" count="0" type="cond" truecount="0" falsecount="5"/>
|
|
556
553
|
<line num="307" count="0" type="stmt"/>
|
|
557
|
-
<line num="314" count="0" type="
|
|
554
|
+
<line num="314" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
558
555
|
<line num="315" count="0" type="stmt"/>
|
|
559
|
-
<line num="
|
|
560
|
-
<line num="
|
|
561
|
-
<line num="
|
|
562
|
-
<line num="
|
|
563
|
-
<line num="
|
|
564
|
-
<line num="
|
|
556
|
+
<line num="322" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
557
|
+
<line num="323" count="0" type="stmt"/>
|
|
558
|
+
<line num="330" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
559
|
+
<line num="331" count="0" type="stmt"/>
|
|
560
|
+
<line num="338" count="0" type="stmt"/>
|
|
561
|
+
<line num="339" count="0" type="stmt"/>
|
|
562
|
+
<line num="342" count="0" type="stmt"/>
|
|
563
|
+
<line num="350" count="0" type="stmt"/>
|
|
564
|
+
<line num="351" count="0" type="stmt"/>
|
|
565
|
+
<line num="352" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
566
|
+
<line num="353" count="0" type="stmt"/>
|
|
567
|
+
<line num="356" count="0" type="stmt"/>
|
|
565
568
|
</file>
|
|
566
569
|
<file name="httpClient.js" path="/builds/3dlinkweb/apacuana/libs/apacuana-sdk-core/main/src/utils/httpClient.js">
|
|
567
570
|
<metrics statements="52" coveredstatements="3" conditionals="49" coveredconditionals="0" methods="7" coveredmethods="0"/>
|