apacuana-sdk-core 0.11.0 → 0.12.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 (42) hide show
  1. package/coverage/clover.xml +117 -114
  2. package/coverage/coverage-final.json +6 -6
  3. package/coverage/lcov-report/index.html +12 -12
  4. package/coverage/lcov-report/src/api/certs.js.html +1 -1
  5. package/coverage/lcov-report/src/api/faceLiveness.js.html +34 -7
  6. package/coverage/lcov-report/src/api/index.html +1 -1
  7. package/coverage/lcov-report/src/api/revocations.js.html +50 -5
  8. package/coverage/lcov-report/src/api/signatures.js.html +1 -1
  9. package/coverage/lcov-report/src/api/users.js.html +20 -5
  10. package/coverage/lcov-report/src/config/index.html +1 -1
  11. package/coverage/lcov-report/src/config/index.js.html +1 -1
  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 +13 -13
  15. package/coverage/lcov-report/src/index.js.html +72 -12
  16. package/coverage/lcov-report/src/success/index.html +1 -1
  17. package/coverage/lcov-report/src/success/index.js.html +5 -5
  18. package/coverage/lcov-report/src/utils/constant.js.html +1 -1
  19. package/coverage/lcov-report/src/utils/helpers.js.html +1 -1
  20. package/coverage/lcov-report/src/utils/httpClient.js.html +1 -1
  21. package/coverage/lcov-report/src/utils/index.html +1 -1
  22. package/coverage/lcov.info +195 -188
  23. package/dist/api/revocations.d.ts +6 -3
  24. package/dist/api/users.d.ts +16 -6
  25. package/dist/index.js +58 -15
  26. package/dist/index.js.map +1 -1
  27. package/dist/index.mjs +58 -15
  28. package/dist/index.mjs.map +1 -1
  29. package/dist/types/faceLiveness.d.ts +6 -5
  30. package/dist/types/revocations.d.ts +26 -15
  31. package/dist/types/signatures.d.ts +60 -65
  32. package/package.json +1 -1
  33. package/src/api/faceLiveness.js +13 -4
  34. package/src/api/revocations.js +18 -3
  35. package/src/api/users.js +8 -3
  36. package/src/index.js +25 -5
  37. package/src/types/faceLiveness.js +11 -2
  38. package/src/types/revocations.js +29 -9
  39. package/src/types/signatures.js +42 -28
  40. package/tests/api/faceLiveness.test.js +28 -30
  41. package/tests/api/revocations.test.js +4 -4
  42. package/tests/index.test.js +16 -8
@@ -1,25 +1,28 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1757629223043" clover="3.2.0">
3
- <project timestamp="1757629223043" name="All files">
4
- <metrics statements="470" coveredstatements="318" conditionals="330" coveredconditionals="132" methods="72" coveredmethods="50" elements="872" coveredelements="500" complexity="0" loc="470" ncloc="470" packages="6" files="12" classes="12"/>
2
+ <coverage generated="1757961333066" clover="3.2.0">
3
+ <project timestamp="1757961333066" name="All files">
4
+ <metrics statements="473" coveredstatements="320" conditionals="334" coveredconditionals="134" methods="72" coveredmethods="50" elements="879" coveredelements="504" complexity="0" loc="473" ncloc="473" packages="6" files="12" classes="12"/>
5
5
  <package name="src">
6
- <metrics statements="14" coveredstatements="12" conditionals="2" coveredconditionals="1" methods="2" coveredmethods="1"/>
6
+ <metrics statements="17" coveredstatements="14" conditionals="6" coveredconditionals="3" methods="2" coveredmethods="1"/>
7
7
  <file name="index.js" path="/builds/3dlinkweb/apacuana/libs/apacuana-sdk-core/main/src/index.js">
8
- <metrics statements="14" coveredstatements="12" conditionals="2" coveredconditionals="1" methods="2" coveredmethods="1"/>
9
- <line num="26" count="1" type="stmt"/>
10
- <line num="40" count="4" type="stmt"/>
11
- <line num="41" count="4" type="stmt"/>
12
- <line num="42" count="3" type="stmt"/>
13
- <line num="43" count="3" type="stmt"/>
14
- <line num="44" count="3" type="cond" truecount="1" falsecount="1"/>
15
- <line num="45" count="0" type="stmt"/>
16
- <line num="50" count="3" type="stmt"/>
17
- <line num="51" count="2" type="stmt"/>
18
- <line num="52" count="2" type="stmt"/>
19
- <line num="53" count="2" type="stmt"/>
8
+ <metrics statements="17" coveredstatements="14" conditionals="6" coveredconditionals="3" methods="2" coveredmethods="1"/>
9
+ <line num="28" count="1" type="stmt"/>
10
+ <line num="42" count="4" type="stmt"/>
11
+ <line num="43" count="4" type="stmt"/>
12
+ <line num="44" count="3" type="stmt"/>
13
+ <line num="45" count="3" type="stmt"/>
14
+ <line num="46" count="3" type="cond" truecount="1" falsecount="1"/>
15
+ <line num="47" count="0" type="stmt"/>
16
+ <line num="55" count="3" type="stmt"/>
20
17
  <line num="56" count="2" type="stmt"/>
21
18
  <line num="57" count="2" type="stmt"/>
22
- <line num="60" count="0" type="stmt"/>
19
+ <line num="58" count="2" type="stmt"/>
20
+ <line num="59" count="2" type="stmt"/>
21
+ <line num="65" count="2" type="stmt"/>
22
+ <line num="66" count="2" type="cond" truecount="1" falsecount="1"/>
23
+ <line num="67" count="0" type="stmt"/>
24
+ <line num="69" count="2" type="stmt"/>
25
+ <line num="80" count="0" type="stmt"/>
23
26
  </file>
24
27
  </package>
25
28
  <package name="src.api">
@@ -106,91 +109,91 @@
106
109
  </file>
107
110
  <file name="faceLiveness.js" path="/builds/3dlinkweb/apacuana/libs/apacuana-sdk-core/main/src/api/faceLiveness.js">
108
111
  <metrics statements="46" coveredstatements="44" conditionals="21" coveredconditionals="19" methods="6" coveredmethods="6"/>
109
- <line num="11" count="2" type="stmt"/>
110
- <line num="12" count="4" type="stmt"/>
111
- <line num="13" count="4" type="stmt"/>
112
- <line num="19" count="2" type="cond" truecount="2" falsecount="0"/>
113
- <line num="20" count="1" type="stmt"/>
114
- <line num="27" count="1" type="stmt"/>
115
- <line num="29" count="3" type="cond" truecount="2" falsecount="0"/>
116
- <line num="30" count="2" type="stmt"/>
112
+ <line num="17" count="2" type="stmt"/>
113
+ <line num="18" count="4" type="stmt"/>
114
+ <line num="19" count="4" type="stmt"/>
115
+ <line num="24" count="2" type="cond" truecount="2" falsecount="0"/>
116
+ <line num="25" count="1" type="stmt"/>
117
117
  <line num="32" count="1" type="stmt"/>
118
- <line num="36" count="2" type="stmt"/>
119
- <line num="37" count="1" type="stmt"/>
120
- <line num="44" count="2" type="stmt"/>
121
- <line num="45" count="6" type="stmt"/>
122
- <line num="46" count="6" type="stmt"/>
123
- <line num="51" count="1" type="stmt"/>
124
- <line num="53" count="5" type="cond" truecount="1" falsecount="1"/>
125
- <line num="55" count="5" type="cond" truecount="5" falsecount="0"/>
126
- <line num="57" count="1" type="stmt"/>
127
- <line num="58" count="1" type="stmt"/>
118
+ <line num="36" count="3" type="cond" truecount="2" falsecount="0"/>
119
+ <line num="37" count="2" type="stmt"/>
120
+ <line num="39" count="1" type="stmt"/>
121
+ <line num="45" count="2" type="stmt"/>
122
+ <line num="46" count="1" type="stmt"/>
123
+ <line num="53" count="2" type="stmt"/>
124
+ <line num="54" count="6" type="stmt"/>
125
+ <line num="55" count="6" type="stmt"/>
128
126
  <line num="60" count="1" type="stmt"/>
129
- <line num="61" count="1" type="stmt"/>
130
- <line num="63" count="1" type="stmt"/>
131
- <line num="64" count="1" type="stmt"/>
127
+ <line num="62" count="5" type="cond" truecount="1" falsecount="1"/>
128
+ <line num="64" count="5" type="cond" truecount="5" falsecount="0"/>
132
129
  <line num="66" count="1" type="stmt"/>
133
130
  <line num="67" count="1" type="stmt"/>
134
131
  <line num="69" count="1" type="stmt"/>
135
- <line num="71" count="4" type="stmt"/>
136
- <line num="73" count="0" type="stmt"/>
137
- <line num="77" count="2" type="stmt"/>
132
+ <line num="70" count="1" type="stmt"/>
133
+ <line num="72" count="1" type="stmt"/>
134
+ <line num="73" count="1" type="stmt"/>
135
+ <line num="75" count="1" type="stmt"/>
136
+ <line num="76" count="1" type="stmt"/>
138
137
  <line num="78" count="1" type="stmt"/>
139
- <line num="91" count="2" type="stmt"/>
140
- <line num="92" count="6" type="stmt"/>
141
- <line num="94" count="6" type="cond" truecount="2" falsecount="0"/>
142
- <line num="95" count="4" type="stmt"/>
143
- <line num="97" count="2" type="cond" truecount="2" falsecount="0"/>
144
- <line num="98" count="1" type="stmt"/>
145
- <line num="101" count="1" type="stmt"/>
146
- <line num="114" count="2" type="stmt"/>
147
- <line num="115" count="8" type="cond" truecount="2" falsecount="0"/>
148
- <line num="116" count="1" type="stmt"/>
149
- <line num="123" count="7" type="stmt"/>
150
- <line num="125" count="7" type="cond" truecount="2" falsecount="0"/>
151
- <line num="126" count="6" type="stmt"/>
152
- <line num="128" count="1" type="cond" truecount="1" falsecount="1"/>
153
- <line num="129" count="1" type="stmt"/>
154
- <line num="132" count="0" type="stmt"/>
138
+ <line num="80" count="4" type="stmt"/>
139
+ <line num="82" count="0" type="stmt"/>
140
+ <line num="86" count="2" type="stmt"/>
141
+ <line num="87" count="1" type="stmt"/>
142
+ <line num="100" count="2" type="stmt"/>
143
+ <line num="101" count="6" type="stmt"/>
144
+ <line num="103" count="6" type="cond" truecount="2" falsecount="0"/>
145
+ <line num="104" count="4" type="stmt"/>
146
+ <line num="106" count="2" type="cond" truecount="2" falsecount="0"/>
147
+ <line num="107" count="1" type="stmt"/>
148
+ <line num="110" count="1" type="stmt"/>
149
+ <line num="123" count="2" type="stmt"/>
150
+ <line num="124" count="8" type="cond" truecount="2" falsecount="0"/>
151
+ <line num="125" count="1" type="stmt"/>
152
+ <line num="132" count="7" type="stmt"/>
153
+ <line num="134" count="7" type="cond" truecount="2" falsecount="0"/>
154
+ <line num="135" count="6" type="stmt"/>
155
+ <line num="137" count="1" type="cond" truecount="1" falsecount="1"/>
156
+ <line num="138" count="1" type="stmt"/>
157
+ <line num="141" count="0" type="stmt"/>
155
158
  </file>
156
159
  <file name="revocations.js" path="/builds/3dlinkweb/apacuana/libs/apacuana-sdk-core/main/src/api/revocations.js">
157
160
  <metrics statements="36" coveredstatements="31" conditionals="20" coveredconditionals="16" methods="6" coveredmethods="5"/>
158
- <line num="7" count="2" type="stmt"/>
159
- <line num="8" count="3" type="stmt"/>
160
- <line num="9" count="3" type="stmt"/>
161
- <line num="14" count="1" type="stmt"/>
162
- <line num="16" count="2" type="cond" truecount="2" falsecount="0"/>
161
+ <line num="10" count="2" type="stmt"/>
162
+ <line num="11" count="3" type="stmt"/>
163
+ <line num="12" count="3" type="stmt"/>
163
164
  <line num="17" count="1" type="stmt"/>
164
- <line num="19" count="1" type="stmt"/>
165
- <line num="23" count="2" type="stmt"/>
166
- <line num="24" count="0" type="stmt"/>
167
- <line num="31" count="2" type="stmt"/>
168
- <line num="32" count="5" type="cond" truecount="4" falsecount="0"/>
169
- <line num="33" count="2" type="stmt"/>
170
- <line num="38" count="3" type="stmt"/>
171
- <line num="40" count="3" type="cond" truecount="1" falsecount="1"/>
172
- <line num="41" count="3" type="stmt"/>
173
- <line num="43" count="0" type="cond" truecount="0" falsecount="2"/>
174
- <line num="44" count="0" type="stmt"/>
175
- <line num="46" count="0" type="stmt"/>
176
- <line num="53" count="2" type="stmt"/>
177
- <line num="54" count="4" type="stmt"/>
178
- <line num="55" count="4" type="stmt"/>
179
- <line num="60" count="2" type="cond" truecount="4" falsecount="0"/>
180
- <line num="61" count="1" type="stmt"/>
181
- <line num="63" count="1" type="stmt"/>
182
- <line num="65" count="3" type="cond" truecount="2" falsecount="0"/>
183
- <line num="66" count="2" type="stmt"/>
184
- <line num="68" count="1" type="stmt"/>
185
- <line num="72" count="2" type="stmt"/>
165
+ <line num="19" count="2" type="cond" truecount="2" falsecount="0"/>
166
+ <line num="20" count="1" type="stmt"/>
167
+ <line num="22" count="1" type="stmt"/>
168
+ <line num="26" count="2" type="stmt"/>
169
+ <line num="27" count="0" type="stmt"/>
170
+ <line num="41" count="2" type="stmt"/>
171
+ <line num="42" count="5" type="cond" truecount="4" falsecount="0"/>
172
+ <line num="43" count="2" type="stmt"/>
173
+ <line num="48" count="3" type="stmt"/>
174
+ <line num="50" count="3" type="cond" truecount="1" falsecount="1"/>
175
+ <line num="51" count="3" type="stmt"/>
176
+ <line num="53" count="0" type="cond" truecount="0" falsecount="2"/>
177
+ <line num="54" count="0" type="stmt"/>
178
+ <line num="56" count="0" type="stmt"/>
179
+ <line num="63" count="2" type="stmt"/>
180
+ <line num="64" count="4" type="stmt"/>
181
+ <line num="65" count="4" type="stmt"/>
182
+ <line num="70" count="2" type="cond" truecount="4" falsecount="0"/>
183
+ <line num="71" count="1" type="stmt"/>
186
184
  <line num="73" count="1" type="stmt"/>
187
- <line num="80" count="2" type="stmt"/>
188
- <line num="81" count="5" type="stmt"/>
189
- <line num="83" count="5" type="cond" truecount="2" falsecount="0"/>
190
- <line num="84" count="4" type="stmt"/>
191
- <line num="86" count="1" type="cond" truecount="1" falsecount="1"/>
192
- <line num="87" count="1" type="stmt"/>
193
- <line num="89" count="0" type="stmt"/>
185
+ <line num="75" count="3" type="cond" truecount="2" falsecount="0"/>
186
+ <line num="76" count="2" type="stmt"/>
187
+ <line num="78" count="1" type="stmt"/>
188
+ <line num="82" count="2" type="stmt"/>
189
+ <line num="83" count="1" type="stmt"/>
190
+ <line num="95" count="2" type="stmt"/>
191
+ <line num="96" count="5" type="stmt"/>
192
+ <line num="98" count="5" type="cond" truecount="2" falsecount="0"/>
193
+ <line num="99" count="4" type="stmt"/>
194
+ <line num="101" count="1" type="cond" truecount="1" falsecount="1"/>
195
+ <line num="102" count="1" type="stmt"/>
196
+ <line num="104" count="0" type="stmt"/>
194
197
  </file>
195
198
  <file name="signatures.js" path="/builds/3dlinkweb/apacuana/libs/apacuana-sdk-core/main/src/api/signatures.js">
196
199
  <metrics statements="138" coveredstatements="118" conditionals="73" coveredconditionals="50" methods="22" coveredmethods="22"/>
@@ -335,19 +338,19 @@
335
338
  </file>
336
339
  <file name="users.js" path="/builds/3dlinkweb/apacuana/libs/apacuana-sdk-core/main/src/api/users.js">
337
340
  <metrics statements="13" coveredstatements="13" conditionals="12" coveredconditionals="11" methods="1" coveredmethods="1"/>
338
- <line num="22" count="1" type="stmt"/>
339
- <line num="23" count="5" type="stmt"/>
340
- <line num="25" count="5" type="cond" truecount="4" falsecount="0"/>
341
- <line num="26" count="1" type="stmt"/>
342
- <line num="33" count="4" type="stmt"/>
341
+ <line num="27" count="1" type="stmt"/>
342
+ <line num="28" count="5" type="stmt"/>
343
+ <line num="30" count="5" type="cond" truecount="4" falsecount="0"/>
344
+ <line num="31" count="1" type="stmt"/>
343
345
  <line num="38" count="4" type="stmt"/>
344
- <line num="39" count="4" type="stmt"/>
345
- <line num="45" count="2" type="cond" truecount="4" falsecount="0"/>
346
- <line num="46" count="1" type="stmt"/>
347
- <line num="53" count="1" type="stmt"/>
348
- <line num="58" count="3" type="cond" truecount="2" falsecount="0"/>
349
- <line num="59" count="2" type="stmt"/>
350
- <line num="61" count="1" type="stmt"/>
346
+ <line num="43" count="4" type="stmt"/>
347
+ <line num="44" count="4" type="stmt"/>
348
+ <line num="50" count="2" type="cond" truecount="4" falsecount="0"/>
349
+ <line num="51" count="1" type="stmt"/>
350
+ <line num="58" count="1" type="stmt"/>
351
+ <line num="63" count="3" type="cond" truecount="2" falsecount="0"/>
352
+ <line num="64" count="2" type="stmt"/>
353
+ <line num="66" count="1" type="stmt"/>
351
354
  </file>
352
355
  </package>
353
356
  <package name="src.config">
@@ -372,23 +375,23 @@
372
375
  <metrics statements="7" coveredstatements="7" conditionals="4" coveredconditionals="3" methods="1" coveredmethods="1"/>
373
376
  <file name="index.js" path="/builds/3dlinkweb/apacuana/libs/apacuana-sdk-core/main/src/errors/index.js">
374
377
  <metrics statements="7" coveredstatements="7" conditionals="4" coveredconditionals="3" methods="1" coveredmethods="1"/>
375
- <line num="8" count="83" type="stmt"/>
376
- <line num="9" count="83" type="stmt"/>
377
- <line num="10" count="83" type="stmt"/>
378
- <line num="11" count="83" type="stmt"/>
379
- <line num="12" count="83" type="stmt"/>
380
- <line num="15" count="83" type="cond" truecount="1" falsecount="1"/>
381
- <line num="16" count="83" type="stmt"/>
378
+ <line num="8" count="86" type="stmt"/>
379
+ <line num="9" count="86" type="stmt"/>
380
+ <line num="10" count="86" type="stmt"/>
381
+ <line num="11" count="86" type="stmt"/>
382
+ <line num="12" count="86" type="stmt"/>
383
+ <line num="15" count="86" type="cond" truecount="1" falsecount="1"/>
384
+ <line num="16" count="86" type="stmt"/>
382
385
  </file>
383
386
  </package>
384
387
  <package name="src.success">
385
388
  <metrics statements="4" coveredstatements="4" conditionals="1" coveredconditionals="1" methods="1" coveredmethods="1"/>
386
389
  <file name="index.js" path="/builds/3dlinkweb/apacuana/libs/apacuana-sdk-core/main/src/success/index.js">
387
390
  <metrics statements="4" coveredstatements="4" conditionals="1" coveredconditionals="1" methods="1" coveredmethods="1"/>
388
- <line num="3" count="21" type="stmt"/>
389
- <line num="4" count="21" type="stmt"/>
390
- <line num="5" count="21" type="stmt"/>
391
- <line num="6" count="21" type="stmt"/>
391
+ <line num="3" count="23" type="stmt"/>
392
+ <line num="4" count="23" type="stmt"/>
393
+ <line num="5" count="23" type="stmt"/>
394
+ <line num="6" count="23" type="stmt"/>
392
395
  </file>
393
396
  </package>
394
397
  <package name="src.utils">