apacuana-sdk-core 1.26.3 → 1.26.4

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 (32) hide show
  1. package/coverage/clover.xml +125 -123
  2. package/coverage/coverage-final.json +2 -2
  3. package/coverage/lcov-report/index.html +13 -13
  4. package/coverage/lcov-report/src/api/certs.js.html +1 -1
  5. package/coverage/lcov-report/src/api/faceLiveness.js.html +1 -1
  6. package/coverage/lcov-report/src/api/index.html +1 -1
  7. package/coverage/lcov-report/src/api/revocations.js.html +1 -1
  8. package/coverage/lcov-report/src/api/signatures.js.html +10 -4
  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 +1 -1
  12. package/coverage/lcov-report/src/errors/index.html +1 -1
  13. package/coverage/lcov-report/src/errors/index.js.html +1 -1
  14. package/coverage/lcov-report/src/index.html +1 -1
  15. package/coverage/lcov-report/src/index.js.html +1 -1
  16. package/coverage/lcov-report/src/success/index.html +1 -1
  17. package/coverage/lcov-report/src/success/index.js.html +1 -1
  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 +51 -9
  21. package/coverage/lcov-report/src/utils/index.html +12 -12
  22. package/coverage/lcov.info +218 -213
  23. package/dist/index.js +17 -4
  24. package/dist/index.js.map +1 -1
  25. package/dist/index.mjs +17 -4
  26. package/dist/index.mjs.map +1 -1
  27. package/dist/utils/httpClient.d.ts +3 -1
  28. package/package.json +1 -1
  29. package/src/api/signatures.js +4 -2
  30. package/src/utils/httpClient.js +16 -2
  31. package/tests/api/signatures.test.js +4 -2
  32. package/tests/integration/createAndLockDocument.test.js +3 -2
@@ -1,7 +1,7 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1781723684073" clover="3.2.0">
3
- <project timestamp="1781723684073" name="All files">
4
- <metrics statements="637" coveredstatements="358" conditionals="466" coveredconditionals="155" methods="105" coveredmethods="55" elements="1208" coveredelements="568" complexity="0" loc="637" ncloc="637" packages="6" files="12" classes="12"/>
2
+ <coverage generated="1781728108971" clover="3.2.0">
3
+ <project timestamp="1781728108971" name="All files">
4
+ <metrics statements="639" coveredstatements="358" conditionals="469" coveredconditionals="155" methods="105" coveredmethods="55" elements="1213" coveredelements="568" complexity="0" loc="639" ncloc="639" packages="6" files="12" classes="12"/>
5
5
  <package name="src">
6
6
  <metrics statements="61" coveredstatements="15" conditionals="15" coveredconditionals="3" methods="22" coveredmethods="1"/>
7
7
  <file name="index.js" path="/builds/3dlinkweb/apacuana/libs/apacuana-sdk-core/main/src/index.js">
@@ -312,107 +312,107 @@
312
312
  <line num="276" count="2" type="stmt"/>
313
313
  <line num="277" count="2" type="stmt"/>
314
314
  <line num="278" count="2" type="stmt"/>
315
- <line num="283" count="1" type="stmt"/>
316
- <line num="288" count="1" type="cond" truecount="1" falsecount="1"/>
317
- <line num="289" count="0" type="stmt"/>
318
- <line num="291" count="1" type="stmt"/>
319
- <line num="297" count="2" type="stmt"/>
320
- <line num="298" count="1" type="stmt"/>
321
- <line num="305" count="2" type="stmt"/>
315
+ <line num="284" count="1" type="stmt"/>
316
+ <line num="289" count="1" type="cond" truecount="1" falsecount="1"/>
317
+ <line num="290" count="0" type="stmt"/>
318
+ <line num="292" count="1" type="stmt"/>
319
+ <line num="298" count="2" type="stmt"/>
320
+ <line num="299" count="1" type="stmt"/>
322
321
  <line num="306" count="2" type="stmt"/>
323
322
  <line num="307" count="2" type="stmt"/>
324
- <line num="312" count="1" type="stmt"/>
325
- <line num="314" count="1" type="cond" truecount="1" falsecount="1"/>
326
- <line num="315" count="0" type="stmt"/>
327
- <line num="317" count="1" type="stmt"/>
328
- <line num="323" count="2" type="stmt"/>
329
- <line num="324" count="1" type="stmt"/>
330
- <line num="342" count="2" type="stmt"/>
331
- <line num="343" count="3" type="stmt"/>
332
- <line num="345" count="3" type="cond" truecount="2" falsecount="0"/>
333
- <line num="346" count="1" type="stmt"/>
334
- <line num="349" count="2" type="cond" truecount="2" falsecount="0"/>
335
- <line num="350" count="1" type="stmt"/>
336
- <line num="353" count="1" type="stmt"/>
337
- <line num="366" count="2" type="stmt"/>
338
- <line num="367" count="4" type="stmt"/>
323
+ <line num="308" count="2" type="stmt"/>
324
+ <line num="314" count="1" type="stmt"/>
325
+ <line num="316" count="1" type="cond" truecount="1" falsecount="1"/>
326
+ <line num="317" count="0" type="stmt"/>
327
+ <line num="319" count="1" type="stmt"/>
328
+ <line num="325" count="2" type="stmt"/>
329
+ <line num="326" count="1" type="stmt"/>
330
+ <line num="344" count="2" type="stmt"/>
331
+ <line num="345" count="3" type="stmt"/>
332
+ <line num="347" count="3" type="cond" truecount="2" falsecount="0"/>
333
+ <line num="348" count="1" type="stmt"/>
334
+ <line num="351" count="2" type="cond" truecount="2" falsecount="0"/>
335
+ <line num="352" count="1" type="stmt"/>
336
+ <line num="355" count="1" type="stmt"/>
337
+ <line num="368" count="2" type="stmt"/>
339
338
  <line num="369" count="4" type="stmt"/>
340
- <line num="371" count="4" type="cond" truecount="2" falsecount="0"/>
341
- <line num="372" count="2" type="stmt"/>
342
- <line num="375" count="2" type="cond" truecount="2" falsecount="0"/>
343
- <line num="376" count="1" type="stmt"/>
344
- <line num="379" count="1" type="stmt"/>
345
- <line num="392" count="2" type="stmt"/>
346
- <line num="393" count="4" type="cond" truecount="2" falsecount="0"/>
347
- <line num="398" count="1" type="stmt"/>
348
- <line num="404" count="3" type="stmt"/>
349
- <line num="406" count="3" type="cond" truecount="2" falsecount="0"/>
350
- <line num="407" count="1" type="stmt"/>
351
- <line num="410" count="2" type="cond" truecount="2" falsecount="0"/>
352
- <line num="411" count="1" type="stmt"/>
353
- <line num="414" count="1" type="stmt"/>
354
- <line num="427" count="2" type="stmt"/>
355
- <line num="428" count="5" type="stmt"/>
356
- <line num="430" count="3" type="stmt"/>
357
- <line num="432" count="3" type="cond" truecount="2" falsecount="0"/>
358
- <line num="433" count="2" type="stmt"/>
359
- <line num="436" count="1" type="cond" truecount="1" falsecount="1"/>
360
- <line num="437" count="1" type="stmt"/>
361
- <line num="440" count="0" type="stmt"/>
362
- <line num="454" count="2" type="stmt"/>
363
- <line num="455" count="7" type="cond" truecount="4" falsecount="0"/>
339
+ <line num="371" count="4" type="stmt"/>
340
+ <line num="373" count="4" type="cond" truecount="2" falsecount="0"/>
341
+ <line num="374" count="2" type="stmt"/>
342
+ <line num="377" count="2" type="cond" truecount="2" falsecount="0"/>
343
+ <line num="378" count="1" type="stmt"/>
344
+ <line num="381" count="1" type="stmt"/>
345
+ <line num="394" count="2" type="stmt"/>
346
+ <line num="395" count="4" type="cond" truecount="2" falsecount="0"/>
347
+ <line num="400" count="1" type="stmt"/>
348
+ <line num="406" count="3" type="stmt"/>
349
+ <line num="408" count="3" type="cond" truecount="2" falsecount="0"/>
350
+ <line num="409" count="1" type="stmt"/>
351
+ <line num="412" count="2" type="cond" truecount="2" falsecount="0"/>
352
+ <line num="413" count="1" type="stmt"/>
353
+ <line num="416" count="1" type="stmt"/>
354
+ <line num="429" count="2" type="stmt"/>
355
+ <line num="430" count="5" type="stmt"/>
356
+ <line num="432" count="3" type="stmt"/>
357
+ <line num="434" count="3" type="cond" truecount="2" falsecount="0"/>
358
+ <line num="435" count="2" type="stmt"/>
359
+ <line num="438" count="1" type="cond" truecount="1" falsecount="1"/>
360
+ <line num="439" count="1" type="stmt"/>
361
+ <line num="442" count="0" type="stmt"/>
364
362
  <line num="456" count="2" type="stmt"/>
365
- <line num="463" count="5" type="cond" truecount="4" falsecount="0"/>
366
- <line num="464" count="1" type="stmt"/>
367
- <line num="471" count="4" type="cond" truecount="2" falsecount="0"/>
368
- <line num="472" count="1" type="stmt"/>
369
- <line num="479" count="3" type="stmt"/>
370
- <line num="481" count="3" type="cond" truecount="2" falsecount="0"/>
371
- <line num="482" count="1" type="stmt"/>
372
- <line num="485" count="2" type="cond" truecount="2" falsecount="0"/>
373
- <line num="486" count="1" type="stmt"/>
374
- <line num="489" count="1" type="stmt"/>
375
- <line num="501" count="2" type="stmt"/>
376
- <line num="502" count="3" type="stmt"/>
377
- <line num="504" count="3" type="cond" truecount="2" falsecount="0"/>
378
- <line num="505" count="1" type="stmt"/>
379
- <line num="508" count="2" type="cond" truecount="2" falsecount="0"/>
380
- <line num="509" count="1" type="stmt"/>
381
- <line num="512" count="1" type="stmt"/>
382
- <line num="524" count="2" type="stmt"/>
383
- <line num="525" count="3" type="stmt"/>
384
- <line num="527" count="3" type="cond" truecount="2" falsecount="0"/>
385
- <line num="528" count="1" type="stmt"/>
386
- <line num="531" count="2" type="cond" truecount="2" falsecount="0"/>
387
- <line num="532" count="1" type="stmt"/>
388
- <line num="535" count="1" type="stmt"/>
389
- <line num="548" count="2" type="stmt"/>
390
- <line num="549" count="5" type="stmt"/>
391
- <line num="551" count="5" type="cond" truecount="2" falsecount="0"/>
392
- <line num="552" count="3" type="stmt"/>
393
- <line num="555" count="2" type="cond" truecount="2" falsecount="0"/>
394
- <line num="556" count="1" type="stmt"/>
395
- <line num="559" count="1" type="stmt"/>
396
- <line num="574" count="2" type="stmt"/>
397
- <line num="575" count="6" type="cond" truecount="2" falsecount="0"/>
398
- <line num="580" count="1" type="stmt"/>
399
- <line num="587" count="5" type="cond" truecount="4" falsecount="0"/>
400
- <line num="588" count="1" type="stmt"/>
401
- <line num="595" count="4" type="stmt"/>
402
- <line num="597" count="4" type="cond" truecount="2" falsecount="0"/>
403
- <line num="598" count="2" type="stmt"/>
404
- <line num="601" count="2" type="cond" truecount="2" falsecount="0"/>
405
- <line num="602" count="1" type="stmt"/>
406
- <line num="605" count="1" type="stmt"/>
407
- <line num="618" count="2" type="stmt"/>
408
- <line num="619" count="6" type="cond" truecount="4" falsecount="0"/>
363
+ <line num="457" count="7" type="cond" truecount="4" falsecount="0"/>
364
+ <line num="458" count="2" type="stmt"/>
365
+ <line num="465" count="5" type="cond" truecount="4" falsecount="0"/>
366
+ <line num="466" count="1" type="stmt"/>
367
+ <line num="473" count="4" type="cond" truecount="2" falsecount="0"/>
368
+ <line num="474" count="1" type="stmt"/>
369
+ <line num="481" count="3" type="stmt"/>
370
+ <line num="483" count="3" type="cond" truecount="2" falsecount="0"/>
371
+ <line num="484" count="1" type="stmt"/>
372
+ <line num="487" count="2" type="cond" truecount="2" falsecount="0"/>
373
+ <line num="488" count="1" type="stmt"/>
374
+ <line num="491" count="1" type="stmt"/>
375
+ <line num="503" count="2" type="stmt"/>
376
+ <line num="504" count="3" type="stmt"/>
377
+ <line num="506" count="3" type="cond" truecount="2" falsecount="0"/>
378
+ <line num="507" count="1" type="stmt"/>
379
+ <line num="510" count="2" type="cond" truecount="2" falsecount="0"/>
380
+ <line num="511" count="1" type="stmt"/>
381
+ <line num="514" count="1" type="stmt"/>
382
+ <line num="526" count="2" type="stmt"/>
383
+ <line num="527" count="3" type="stmt"/>
384
+ <line num="529" count="3" type="cond" truecount="2" falsecount="0"/>
385
+ <line num="530" count="1" type="stmt"/>
386
+ <line num="533" count="2" type="cond" truecount="2" falsecount="0"/>
387
+ <line num="534" count="1" type="stmt"/>
388
+ <line num="537" count="1" type="stmt"/>
389
+ <line num="550" count="2" type="stmt"/>
390
+ <line num="551" count="5" type="stmt"/>
391
+ <line num="553" count="5" type="cond" truecount="2" falsecount="0"/>
392
+ <line num="554" count="3" type="stmt"/>
393
+ <line num="557" count="2" type="cond" truecount="2" falsecount="0"/>
394
+ <line num="558" count="1" type="stmt"/>
395
+ <line num="561" count="1" type="stmt"/>
396
+ <line num="576" count="2" type="stmt"/>
397
+ <line num="577" count="6" type="cond" truecount="2" falsecount="0"/>
398
+ <line num="582" count="1" type="stmt"/>
399
+ <line num="589" count="5" type="cond" truecount="4" falsecount="0"/>
400
+ <line num="590" count="1" type="stmt"/>
401
+ <line num="597" count="4" type="stmt"/>
402
+ <line num="599" count="4" type="cond" truecount="2" falsecount="0"/>
403
+ <line num="600" count="2" type="stmt"/>
404
+ <line num="603" count="2" type="cond" truecount="2" falsecount="0"/>
405
+ <line num="604" count="1" type="stmt"/>
406
+ <line num="607" count="1" type="stmt"/>
409
407
  <line num="620" count="2" type="stmt"/>
410
- <line num="627" count="4" type="stmt"/>
411
- <line num="629" count="4" type="cond" truecount="2" falsecount="0"/>
412
- <line num="630" count="2" type="stmt"/>
413
- <line num="633" count="2" type="cond" truecount="2" falsecount="0"/>
414
- <line num="634" count="1" type="stmt"/>
415
- <line num="637" count="1" type="stmt"/>
408
+ <line num="621" count="6" type="cond" truecount="4" falsecount="0"/>
409
+ <line num="622" count="2" type="stmt"/>
410
+ <line num="629" count="4" type="stmt"/>
411
+ <line num="631" count="4" type="cond" truecount="2" falsecount="0"/>
412
+ <line num="632" count="2" type="stmt"/>
413
+ <line num="635" count="2" type="cond" truecount="2" falsecount="0"/>
414
+ <line num="636" count="1" type="stmt"/>
415
+ <line num="639" count="1" type="stmt"/>
416
416
  </file>
417
417
  <file name="users.js" path="/builds/3dlinkweb/apacuana/libs/apacuana-sdk-core/main/src/api/users.js">
418
418
  <metrics statements="28" coveredstatements="14" conditionals="29" coveredconditionals="11" methods="3" coveredmethods="1"/>
@@ -488,7 +488,7 @@
488
488
  </file>
489
489
  </package>
490
490
  <package name="src.utils">
491
- <metrics statements="194" coveredstatements="19" conditionals="230" coveredconditionals="0" methods="23" coveredmethods="0"/>
491
+ <metrics statements="196" coveredstatements="19" conditionals="233" coveredconditionals="0" methods="23" coveredmethods="0"/>
492
492
  <file name="constant.js" path="/builds/3dlinkweb/apacuana/libs/apacuana-sdk-core/main/src/utils/constant.js">
493
493
  <metrics statements="4" coveredstatements="4" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
494
494
  <line num="1" count="9" type="stmt"/>
@@ -638,7 +638,7 @@
638
638
  <line num="440" count="0" type="stmt"/>
639
639
  </file>
640
640
  <file name="httpClient.js" path="/builds/3dlinkweb/apacuana/libs/apacuana-sdk-core/main/src/utils/httpClient.js">
641
- <metrics statements="52" coveredstatements="3" conditionals="49" coveredconditionals="0" methods="7" coveredmethods="0"/>
641
+ <metrics statements="54" coveredstatements="3" conditionals="52" coveredconditionals="0" methods="7" coveredmethods="0"/>
642
642
  <line num="12" count="3" type="stmt"/>
643
643
  <line num="13" count="0" type="stmt"/>
644
644
  <line num="15" count="0" type="cond" truecount="0" falsecount="2"/>
@@ -663,34 +663,36 @@
663
663
  <line num="102" count="0" type="cond" truecount="0" falsecount="4"/>
664
664
  <line num="103" count="0" type="stmt"/>
665
665
  <line num="107" count="0" type="stmt"/>
666
- <line num="120" count="3" type="cond" truecount="0" falsecount="2"/>
667
- <line num="121" count="0" type="cond" truecount="0" falsecount="2"/>
668
- <line num="122" count="0" type="stmt"/>
666
+ <line num="122" count="3" type="stmt"/>
667
+ <line num="128" count="0" type="cond" truecount="0" falsecount="2"/>
669
668
  <line num="129" count="0" type="stmt"/>
670
- <line num="131" count="0" type="cond" truecount="0" falsecount="4"/>
671
- <line num="132" count="0" type="stmt"/>
672
- <line num="134" count="0" type="stmt"/>
673
- <line num="135" count="0" type="cond" truecount="0" falsecount="2"/>
674
- <line num="137" count="0" type="cond" truecount="0" falsecount="2"/>
675
- <line num="138" count="0" type="stmt"/>
669
+ <line num="136" count="0" type="stmt"/>
670
+ <line num="138" count="0" type="cond" truecount="0" falsecount="2"/>
676
671
  <line num="139" count="0" type="stmt"/>
677
- <line num="140" count="0" type="stmt"/>
678
- <line num="142" count="0" type="stmt"/>
679
- <line num="144" count="0" type="stmt"/>
680
- <line num="148" count="0" type="stmt"/>
681
- <line num="150" count="0" type="cond" truecount="0" falsecount="5"/>
682
- <line num="152" count="0" type="stmt"/>
672
+ <line num="142" count="0" type="cond" truecount="0" falsecount="4"/>
673
+ <line num="143" count="0" type="stmt"/>
674
+ <line num="145" count="0" type="stmt"/>
675
+ <line num="146" count="0" type="cond" truecount="0" falsecount="2"/>
676
+ <line num="148" count="0" type="cond" truecount="0" falsecount="2"/>
677
+ <line num="149" count="0" type="stmt"/>
678
+ <line num="150" count="0" type="stmt"/>
679
+ <line num="151" count="0" type="stmt"/>
683
680
  <line num="153" count="0" type="stmt"/>
684
681
  <line num="155" count="0" type="stmt"/>
685
- <line num="156" count="0" type="stmt"/>
686
- <line num="158" count="0" type="stmt"/>
687
682
  <line num="159" count="0" type="stmt"/>
688
- <line num="161" count="0" type="stmt"/>
689
- <line num="165" count="0" type="stmt"/>
683
+ <line num="161" count="0" type="cond" truecount="0" falsecount="5"/>
684
+ <line num="163" count="0" type="stmt"/>
690
685
  <line num="167" count="0" type="stmt"/>
691
- <line num="174" count="0" type="stmt"/>
692
- <line num="176" count="0" type="stmt"/>
693
- <line num="177" count="0" type="stmt"/>
686
+ <line num="169" count="0" type="stmt"/>
687
+ <line num="170" count="0" type="stmt"/>
688
+ <line num="172" count="0" type="stmt"/>
689
+ <line num="173" count="0" type="stmt"/>
690
+ <line num="175" count="0" type="stmt"/>
691
+ <line num="179" count="0" type="stmt"/>
692
+ <line num="181" count="0" type="stmt"/>
693
+ <line num="188" count="0" type="stmt"/>
694
+ <line num="190" count="0" type="stmt"/>
695
+ <line num="191" count="0" type="stmt"/>
694
696
  </file>
695
697
  </package>
696
698
  </project>