apacuana-sdk-core 1.26.1 → 1.26.3

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 (46) hide show
  1. package/.env +8 -0
  2. package/README.md +69 -0
  3. package/coverage/clover.xml +181 -136
  4. package/coverage/coverage-final.json +4 -4
  5. package/coverage/lcov-report/index.html +27 -27
  6. package/coverage/lcov-report/src/api/certs.js.html +1 -1
  7. package/coverage/lcov-report/src/api/faceLiveness.js.html +1 -1
  8. package/coverage/lcov-report/src/api/index.html +18 -18
  9. package/coverage/lcov-report/src/api/revocations.js.html +1 -1
  10. package/coverage/lcov-report/src/api/signatures.js.html +417 -9
  11. package/coverage/lcov-report/src/api/users.js.html +1 -1
  12. package/coverage/lcov-report/src/config/index.html +1 -1
  13. package/coverage/lcov-report/src/config/index.js.html +1 -1
  14. package/coverage/lcov-report/src/errors/index.html +1 -1
  15. package/coverage/lcov-report/src/errors/index.js.html +8 -8
  16. package/coverage/lcov-report/src/index.html +15 -15
  17. package/coverage/lcov-report/src/index.js.html +41 -8
  18. package/coverage/lcov-report/src/success/index.html +1 -1
  19. package/coverage/lcov-report/src/success/index.js.html +5 -5
  20. package/coverage/lcov-report/src/utils/constant.js.html +1 -1
  21. package/coverage/lcov-report/src/utils/helpers.js.html +1 -1
  22. package/coverage/lcov-report/src/utils/httpClient.js.html +1 -1
  23. package/coverage/lcov-report/src/utils/index.html +1 -1
  24. package/coverage/lcov.info +325 -235
  25. package/dist/api/signatures.d.ts +5 -0
  26. package/dist/index.d.ts +2 -0
  27. package/dist/index.js +288 -90
  28. package/dist/index.js.map +1 -1
  29. package/dist/index.mjs +288 -90
  30. package/dist/index.mjs.map +1 -1
  31. package/package.json +1 -1
  32. package/src/api/signatures.js +136 -0
  33. package/src/index.js +11 -0
  34. package/tests/api/signatures.test.js +166 -2
  35. package/tests/integration/createAndLockDocument.test.js +93 -0
  36. package/coverage/lcov-report/api/index.html +0 -131
  37. package/coverage/lcov-report/api/signatures.js.html +0 -1093
  38. package/coverage/lcov-report/api/users.js.html +0 -292
  39. package/coverage/lcov-report/certs.js.html +0 -175
  40. package/coverage/lcov-report/config/index.html +0 -116
  41. package/coverage/lcov-report/config/index.js.html +0 -208
  42. package/coverage/lcov-report/errors/index.html +0 -116
  43. package/coverage/lcov-report/errors/index.js.html +0 -148
  44. package/coverage/lcov-report/utils/constant.js.html +0 -145
  45. package/coverage/lcov-report/utils/httpClient.js.html +0 -646
  46. package/coverage/lcov-report/utils/index.html +0 -131
@@ -23,30 +23,30 @@
23
23
  <div class='clearfix'>
24
24
 
25
25
  <div class='fl pad1y space-right2'>
26
- <span class="strong">53.7% </span>
26
+ <span class="strong">56.02% </span>
27
27
  <span class="quiet">Statements</span>
28
- <span class='fraction'>319/594</span>
28
+ <span class='fraction'>358/639</span>
29
29
  </div>
30
30
 
31
31
 
32
32
  <div class='fl pad1y space-right2'>
33
- <span class="strong">29.74% </span>
33
+ <span class="strong">33.26% </span>
34
34
  <span class="quiet">Branches</span>
35
- <span class='fraction'>130/437</span>
35
+ <span class='fraction'>155/466</span>
36
36
  </div>
37
37
 
38
38
 
39
39
  <div class='fl pad1y space-right2'>
40
- <span class="strong">50.51% </span>
40
+ <span class="strong">52.38% </span>
41
41
  <span class="quiet">Functions</span>
42
- <span class='fraction'>49/97</span>
42
+ <span class='fraction'>55/105</span>
43
43
  </div>
44
44
 
45
45
 
46
46
  <div class='fl pad1y space-right2'>
47
- <span class="strong">53.88% </span>
47
+ <span class="strong">56.2% </span>
48
48
  <span class="quiet">Lines</span>
49
- <span class='fraction'>319/592</span>
49
+ <span class='fraction'>358/637</span>
50
50
  </div>
51
51
 
52
52
 
@@ -80,32 +80,32 @@
80
80
  </thead>
81
81
  <tbody><tr>
82
82
  <td class="file low" data-value="src"><a href="src/index.html">src</a></td>
83
- <td data-value="26.31" class="pic low">
84
- <div class="chart"><div class="cover-fill" style="width: 26%"></div><div class="cover-empty" style="width: 74%"></div></div>
83
+ <td data-value="24.59" class="pic low">
84
+ <div class="chart"><div class="cover-fill" style="width: 24%"></div><div class="cover-empty" style="width: 76%"></div></div>
85
85
  </td>
86
- <td data-value="26.31" class="pct low">26.31%</td>
87
- <td data-value="57" class="abs low">15/57</td>
86
+ <td data-value="24.59" class="pct low">24.59%</td>
87
+ <td data-value="61" class="abs low">15/61</td>
88
88
  <td data-value="20" class="pct low">20%</td>
89
89
  <td data-value="15" class="abs low">3/15</td>
90
- <td data-value="5" class="pct low">5%</td>
91
- <td data-value="20" class="abs low">1/20</td>
92
- <td data-value="26.31" class="pct low">26.31%</td>
93
- <td data-value="57" class="abs low">15/57</td>
90
+ <td data-value="4.54" class="pct low">4.54%</td>
91
+ <td data-value="22" class="abs low">1/22</td>
92
+ <td data-value="24.59" class="pct low">24.59%</td>
93
+ <td data-value="61" class="abs low">15/61</td>
94
94
  </tr>
95
95
 
96
96
  <tr>
97
97
  <td class="file high" data-value="src/api"><a href="src/api/index.html">src/api</a></td>
98
- <td data-value="84.59" class="pic high">
99
- <div class="chart"><div class="cover-fill" style="width: 84%"></div><div class="cover-empty" style="width: 16%"></div></div>
98
+ <td data-value="85.79" class="pic high">
99
+ <div class="chart"><div class="cover-fill" style="width: 85%"></div><div class="cover-empty" style="width: 15%"></div></div>
100
100
  </td>
101
- <td data-value="84.59" class="pct high">84.59%</td>
102
- <td data-value="318" class="abs high">269/318</td>
103
- <td data-value="69.1" class="pct medium">69.1%</td>
104
- <td data-value="178" class="abs medium">123/178</td>
105
- <td data-value="93.87" class="pct high">93.87%</td>
106
- <td data-value="49" class="abs high">46/49</td>
107
- <td data-value="84.59" class="pct high">84.59%</td>
108
- <td data-value="318" class="abs high">269/318</td>
101
+ <td data-value="85.79" class="pct high">85.79%</td>
102
+ <td data-value="359" class="abs high">308/359</td>
103
+ <td data-value="71.49" class="pct medium">71.49%</td>
104
+ <td data-value="207" class="abs medium">148/207</td>
105
+ <td data-value="94.54" class="pct high">94.54%</td>
106
+ <td data-value="55" class="abs high">52/55</td>
107
+ <td data-value="85.79" class="pct high">85.79%</td>
108
+ <td data-value="359" class="abs high">308/359</td>
109
109
  </tr>
110
110
 
111
111
  <tr>
@@ -176,7 +176,7 @@
176
176
  <div class='footer quiet pad2 space-top1 center small'>
177
177
  Code coverage generated by
178
178
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
179
- at 2026-06-17T15:19:12.631Z
179
+ at 2026-06-17T19:14:44.038Z
180
180
  </div>
181
181
  <script src="prettify.js"></script>
182
182
  <script>
@@ -1018,7 +1018,7 @@ export const requestCertificate = async (params) =&gt; {
1018
1018
  <div class='footer quiet pad2 space-top1 center small'>
1019
1019
  Code coverage generated by
1020
1020
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
1021
- at 2026-06-17T15:19:12.631Z
1021
+ at 2026-06-17T19:14:44.038Z
1022
1022
  </div>
1023
1023
  <script src="../../prettify.js"></script>
1024
1024
  <script>
@@ -274,7 +274,7 @@ export const sendFaceLiveness = async ({ faceLiveness, documentprefid }) =&gt; {
274
274
  <div class='footer quiet pad2 space-top1 center small'>
275
275
  Code coverage generated by
276
276
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
277
- at 2026-06-17T15:19:12.631Z
277
+ at 2026-06-17T19:14:44.038Z
278
278
  </div>
279
279
  <script src="../../prettify.js"></script>
280
280
  <script>
@@ -23,30 +23,30 @@
23
23
  <div class='clearfix'>
24
24
 
25
25
  <div class='fl pad1y space-right2'>
26
- <span class="strong">84.59% </span>
26
+ <span class="strong">85.79% </span>
27
27
  <span class="quiet">Statements</span>
28
- <span class='fraction'>269/318</span>
28
+ <span class='fraction'>308/359</span>
29
29
  </div>
30
30
 
31
31
 
32
32
  <div class='fl pad1y space-right2'>
33
- <span class="strong">69.1% </span>
33
+ <span class="strong">71.49% </span>
34
34
  <span class="quiet">Branches</span>
35
- <span class='fraction'>123/178</span>
35
+ <span class='fraction'>148/207</span>
36
36
  </div>
37
37
 
38
38
 
39
39
  <div class='fl pad1y space-right2'>
40
- <span class="strong">93.87% </span>
40
+ <span class="strong">94.54% </span>
41
41
  <span class="quiet">Functions</span>
42
- <span class='fraction'>46/49</span>
42
+ <span class='fraction'>52/55</span>
43
43
  </div>
44
44
 
45
45
 
46
46
  <div class='fl pad1y space-right2'>
47
- <span class="strong">84.59% </span>
47
+ <span class="strong">85.79% </span>
48
48
  <span class="quiet">Lines</span>
49
- <span class='fraction'>269/318</span>
49
+ <span class='fraction'>308/359</span>
50
50
  </div>
51
51
 
52
52
 
@@ -125,17 +125,17 @@
125
125
 
126
126
  <tr>
127
127
  <td class="file high" data-value="signatures.js"><a href="signatures.js.html">signatures.js</a></td>
128
- <td data-value="86.45" class="pic high">
129
- <div class="chart"><div class="cover-fill" style="width: 86%"></div><div class="cover-empty" style="width: 14%"></div></div>
128
+ <td data-value="88.26" class="pic high">
129
+ <div class="chart"><div class="cover-fill" style="width: 88%"></div><div class="cover-empty" style="width: 12%"></div></div>
130
130
  </td>
131
- <td data-value="86.45" class="pct high">86.45%</td>
132
- <td data-value="155" class="abs high">134/155</td>
133
- <td data-value="69.13" class="pct medium">69.13%</td>
134
- <td data-value="81" class="abs medium">56/81</td>
131
+ <td data-value="88.26" class="pct high">88.26%</td>
132
+ <td data-value="196" class="abs high">173/196</td>
133
+ <td data-value="73.63" class="pct medium">73.63%</td>
134
+ <td data-value="110" class="abs medium">81/110</td>
135
135
  <td data-value="100" class="pct high">100%</td>
136
- <td data-value="24" class="abs high">24/24</td>
137
- <td data-value="86.45" class="pct high">86.45%</td>
138
- <td data-value="155" class="abs high">134/155</td>
136
+ <td data-value="30" class="abs high">30/30</td>
137
+ <td data-value="88.26" class="pct high">88.26%</td>
138
+ <td data-value="196" class="abs high">173/196</td>
139
139
  </tr>
140
140
 
141
141
  <tr>
@@ -161,7 +161,7 @@
161
161
  <div class='footer quiet pad2 space-top1 center small'>
162
162
  Code coverage generated by
163
163
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
164
- at 2026-06-17T15:19:12.631Z
164
+ at 2026-06-17T19:14:44.038Z
165
165
  </div>
166
166
  <script src="../../prettify.js"></script>
167
167
  <script>
@@ -397,7 +397,7 @@ export const getRevocationReasons = async () =&gt; {
397
397
  <div class='footer quiet pad2 space-top1 center small'>
398
398
  Code coverage generated by
399
399
  <a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
400
- at 2026-06-17T15:19:12.631Z
400
+ at 2026-06-17T19:14:44.038Z
401
401
  </div>
402
402
  <script src="../../prettify.js"></script>
403
403
  <script>