apacuana-sdk-core 0.6.2 → 0.8.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 (35) hide show
  1. package/README.md +105 -288
  2. package/coverage/clover.xml +141 -136
  3. package/coverage/coverage-final.json +5 -5
  4. package/coverage/lcov-report/index.html +34 -34
  5. package/coverage/lcov-report/src/api/certs.js.html +34 -7
  6. package/coverage/lcov-report/src/api/index.html +19 -19
  7. package/coverage/lcov-report/src/api/revocations.js.html +135 -30
  8. package/coverage/lcov-report/src/api/signatures.js.html +76 -4
  9. package/coverage/lcov-report/src/api/users.js.html +1 -1
  10. package/coverage/lcov-report/src/config/index.html +13 -13
  11. package/coverage/lcov-report/src/config/index.js.html +66 -18
  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 +15 -15
  15. package/coverage/lcov-report/src/index.js.html +14 -68
  16. package/coverage/lcov-report/src/utils/constant.js.html +1 -1
  17. package/coverage/lcov-report/src/utils/helpers.js.html +1 -1
  18. package/coverage/lcov-report/src/utils/httpClient.js.html +1 -1
  19. package/coverage/lcov-report/src/utils/index.html +1 -1
  20. package/coverage/lcov.info +223 -216
  21. package/dist/api/certs.d.ts +11 -1
  22. package/dist/api/revocations.d.ts +32 -12
  23. package/dist/api/signatures.d.ts +37 -5
  24. package/dist/config/index.d.ts +13 -2
  25. package/dist/index.d.ts +4 -1
  26. package/dist/index.js +159 -75
  27. package/dist/index.js.map +1 -1
  28. package/dist/index.mjs +159 -75
  29. package/dist/index.mjs.map +1 -1
  30. package/package.json +1 -1
  31. package/src/api/certs.js +12 -3
  32. package/src/api/revocations.js +55 -20
  33. package/src/api/signatures.js +25 -1
  34. package/src/config/index.js +24 -8
  35. package/src/index.js +4 -22
@@ -1,157 +1,160 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1756239717215" clover="3.2.0">
3
- <project timestamp="1756239717215" name="All files">
4
- <metrics statements="277" coveredstatements="115" conditionals="231" coveredconditionals="37" methods="38" coveredmethods="13" elements="546" coveredelements="165" complexity="0" loc="277" ncloc="277" packages="5" files="10" classes="10"/>
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"/>
5
5
  <package name="src">
6
- <metrics statements="15" coveredstatements="14" conditionals="2" coveredconditionals="1" methods="1" coveredmethods="1"/>
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
- <metrics statements="15" coveredstatements="14" conditionals="2" coveredconditionals="1" methods="1" coveredmethods="1"/>
8
+ <metrics statements="14" coveredstatements="12" conditionals="2" coveredconditionals="1" methods="2" coveredmethods="1"/>
9
9
  <line num="8" count="1" type="stmt"/>
10
+ <line num="22" count="4" type="stmt"/>
10
11
  <line num="23" count="4" type="stmt"/>
11
- <line num="27" count="4" type="stmt"/>
12
- <line num="29" 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"/>
13
16
  <line num="32" count="3" type="stmt"/>
14
- <line num="35" count="3" type="stmt"/>
15
- <line num="36" count="3" type="cond" truecount="1" falsecount="1"/>
16
- <line num="37" count="0" type="stmt"/>
17
- <line num="44" count="3" type="stmt"/>
18
- <line num="48" count="2" type="stmt"/>
19
- <line num="49" count="2" type="stmt"/>
20
- <line num="51" count="2" type="stmt"/>
21
- <line num="55" count="2" type="stmt"/>
22
- <line num="58" count="2" type="stmt"/>
23
- <line num="59" count="2" 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"/>
24
23
  </file>
25
24
  </package>
26
25
  <package name="src.api">
27
- <metrics statements="132" coveredstatements="76" conditionals="72" coveredconditionals="33" methods="19" coveredmethods="11"/>
26
+ <metrics statements="136" coveredstatements="77" conditionals="68" coveredconditionals="33" methods="20" coveredmethods="11"/>
28
27
  <file name="certs.js" path="/builds/3dlinkweb/apacuana/libs/apacuana-sdk-core/main/src/api/certs.js">
29
- <metrics statements="24" coveredstatements="20" conditionals="13" coveredconditionals="7" methods="4" coveredmethods="4"/>
30
- <line num="19" count="2" type="cond" truecount="0" falsecount="1"/>
31
- <line num="20" count="1" type="stmt"/>
32
- <line num="21" count="1" type="stmt"/>
33
- <line num="26" count="1" type="stmt"/>
34
- <line num="27" count="1" type="cond" truecount="3" falsecount="1"/>
35
- <line num="28" count="0" type="stmt"/>
28
+ <metrics statements="24" coveredstatements="20" conditionals="11" coveredconditionals="7" methods="4" coveredmethods="4"/>
29
+ <line num="28" count="2" type="stmt"/>
30
+ <line num="29" count="1" type="stmt"/>
31
+ <line num="30" count="1" type="stmt"/>
36
32
  <line num="35" count="1" type="stmt"/>
37
- <line num="38" count="0" type="cond" truecount="0" falsecount="2"/>
38
- <line num="39" count="0" type="stmt"/>
39
- <line num="41" count="0" type="stmt"/>
40
- <line num="45" count="2" type="stmt"/>
41
- <line num="46" count="1" type="stmt"/>
42
- <line num="60" count="2" type="cond" truecount="0" falsecount="1"/>
43
- <line num="61" count="3" type="stmt"/>
44
- <line num="62" count="3" type="stmt"/>
45
- <line num="63" count="3" type="cond" truecount="2" falsecount="0"/>
46
- <line num="64" count="1" type="stmt"/>
47
- <line num="66" count="2" type="cond" truecount="2" falsecount="0"/>
48
- <line num="67" count="1" type="stmt"/>
49
- <line num="70" count="1" type="stmt"/>
50
- <line num="82" count="2" type="cond" truecount="0" falsecount="1"/>
51
- <line num="83" count="1" type="stmt"/>
52
- <line num="84" count="1" type="stmt"/>
53
- <line num="88" count="1" type="stmt"/>
33
+ <line num="36" count="1" type="cond" truecount="3" falsecount="1"/>
34
+ <line num="37" count="0" type="stmt"/>
35
+ <line num="44" count="1" type="stmt"/>
36
+ <line num="47" count="0" type="cond" truecount="0" falsecount="2"/>
37
+ <line num="48" count="0" type="stmt"/>
38
+ <line num="50" count="0" type="stmt"/>
39
+ <line num="54" count="2" type="stmt"/>
40
+ <line num="55" count="1" type="stmt"/>
41
+ <line num="69" count="2" type="stmt"/>
42
+ <line num="70" count="3" type="stmt"/>
43
+ <line num="71" count="3" type="stmt"/>
44
+ <line num="72" count="3" type="cond" truecount="2" falsecount="0"/>
45
+ <line num="73" count="1" type="stmt"/>
46
+ <line num="75" count="2" type="cond" truecount="2" falsecount="0"/>
47
+ <line num="76" count="1" type="stmt"/>
48
+ <line num="79" count="1" type="stmt"/>
49
+ <line num="91" count="2" type="cond" truecount="0" falsecount="1"/>
50
+ <line num="92" count="1" type="stmt"/>
51
+ <line num="93" count="1" type="stmt"/>
52
+ <line num="97" count="1" type="stmt"/>
54
53
  </file>
55
54
  <file name="revocations.js" path="/builds/3dlinkweb/apacuana/libs/apacuana-sdk-core/main/src/api/revocations.js">
56
- <metrics statements="12" coveredstatements="1" conditionals="8" coveredconditionals="0" methods="1" coveredmethods="0"/>
57
- <line num="15" count="1" type="stmt"/>
58
- <line num="16" count="0" type="stmt"/>
59
- <line num="17" count="0" type="stmt"/>
60
- <line num="21" count="0" type="cond" truecount="0" falsecount="2"/>
61
- <line num="22" count="0" type="stmt"/>
62
- <line num="27" count="0" type="stmt"/>
63
- <line num="28" count="0" type="stmt"/>
64
- <line num="33" count="0" type="stmt"/>
65
- <line num="34" count="0" type="cond" truecount="0" falsecount="2"/>
66
- <line num="35" count="0" type="stmt"/>
67
- <line num="39" count="0" type="stmt"/>
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"/>
68
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"/>
69
72
  </file>
70
73
  <file name="signatures.js" path="/builds/3dlinkweb/apacuana/libs/apacuana-sdk-core/main/src/api/signatures.js">
71
74
  <metrics statements="83" coveredstatements="42" conditionals="39" coveredconditionals="15" methods="13" coveredmethods="6"/>
72
- <line num="77" count="2" type="stmt"/>
75
+ <line num="76" count="2" type="stmt"/>
76
+ <line num="77" count="0" type="stmt"/>
73
77
  <line num="78" count="0" type="stmt"/>
74
78
  <line num="79" count="0" type="stmt"/>
75
79
  <line num="80" count="0" type="stmt"/>
76
- <line num="81" count="0" type="stmt"/>
77
- <line num="83" count="0" type="stmt"/>
78
- <line num="94" count="0" type="stmt"/>
79
- <line num="99" count="0" type="stmt"/>
80
- <line num="101" count="0" type="cond" truecount="0" falsecount="2"/>
81
- <line num="102" count="0" type="stmt"/>
82
- <line num="104" count="0" type="stmt"/>
83
- <line num="110" count="2" type="stmt"/>
84
- <line num="111" count="0" type="stmt"/>
85
- <line num="118" count="2" 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"/>
83
+ <line num="100" count="0" type="cond" truecount="0" falsecount="2"/>
84
+ <line num="101" count="0" type="stmt"/>
85
+ <line num="103" count="0" type="stmt"/>
86
+ <line num="109" count="2" type="stmt"/>
87
+ <line num="110" count="0" type="stmt"/>
88
+ <line num="117" count="2" type="stmt"/>
89
+ <line num="118" count="0" type="stmt"/>
86
90
  <line num="119" count="0" type="stmt"/>
87
- <line num="120" count="0" type="stmt"/>
91
+ <line num="126" count="0" type="cond" truecount="0" falsecount="2"/>
88
92
  <line num="127" count="0" type="cond" truecount="0" falsecount="2"/>
89
- <line num="128" count="0" type="cond" truecount="0" falsecount="2"/>
90
- <line num="129" count="0" type="stmt"/>
91
- <line num="136" count="0" type="stmt"/>
92
- <line num="138" count="0" type="cond" truecount="0" falsecount="2"/>
93
- <line num="139" count="0" type="stmt"/>
94
- <line num="141" count="0" type="stmt"/>
95
- <line num="147" count="2" type="stmt"/>
96
- <line num="148" count="0" type="stmt"/>
97
- <line num="155" count="2" type="stmt"/>
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"/>
97
+ <line num="140" count="0" type="stmt"/>
98
+ <line num="146" count="2" type="stmt"/>
99
+ <line num="147" count="0" type="stmt"/>
100
+ <line num="154" count="2" type="stmt"/>
101
+ <line num="155" count="1" type="stmt"/>
98
102
  <line num="156" count="1" type="stmt"/>
99
103
  <line num="157" count="1" type="stmt"/>
100
104
  <line num="158" count="1" type="stmt"/>
101
- <line num="159" count="1" type="stmt"/>
102
- <line num="161" count="0" type="cond" truecount="0" falsecount="2"/>
103
- <line num="162" count="0" type="stmt"/>
104
- <line num="164" count="0" type="stmt"/>
105
- <line num="168" count="2" type="stmt"/>
106
- <line num="169" count="1" type="stmt"/>
107
- <line num="176" count="2" type="stmt"/>
108
- <line num="177" count="1" type="stmt"/>
105
+ <line num="160" count="0" type="cond" truecount="0" falsecount="2"/>
106
+ <line num="161" count="0" type="stmt"/>
107
+ <line num="163" count="0" type="stmt"/>
108
+ <line num="167" count="2" type="stmt"/>
109
+ <line num="168" count="1" type="stmt"/>
110
+ <line num="175" count="2" type="stmt"/>
111
+ <line num="176" count="1" type="stmt"/>
112
+ <line num="183" count="2" type="stmt"/>
109
113
  <line num="184" count="2" type="stmt"/>
110
- <line num="185" count="2" type="stmt"/>
111
- <line num="186" count="2" type="cond" truecount="2" falsecount="0"/>
112
- <line num="187" count="1" type="stmt"/>
114
+ <line num="185" count="2" type="cond" truecount="2" falsecount="0"/>
115
+ <line num="186" count="1" type="stmt"/>
116
+ <line num="193" count="1" type="stmt"/>
113
117
  <line num="194" count="1" type="stmt"/>
114
- <line num="195" count="1" type="stmt"/>
115
- <line num="201" count="1" type="cond" truecount="1" falsecount="1"/>
116
- <line num="202" count="1" type="stmt"/>
118
+ <line num="200" count="1" type="cond" truecount="1" falsecount="1"/>
119
+ <line num="201" count="1" type="stmt"/>
120
+ <line num="204" count="1" type="stmt"/>
117
121
  <line num="205" count="1" type="stmt"/>
118
122
  <line num="206" count="1" type="stmt"/>
119
- <line num="207" count="1" type="stmt"/>
120
- <line num="213" count="0" type="cond" truecount="0" falsecount="2"/>
121
- <line num="214" count="0" type="stmt"/>
122
- <line num="216" count="0" type="stmt"/>
123
- <line num="233" count="2" type="stmt"/>
124
- <line num="234" count="0" type="stmt"/>
125
- <line num="236" count="0" type="cond" truecount="0" falsecount="2"/>
126
- <line num="237" count="0" type="stmt"/>
127
- <line num="240" count="0" type="cond" truecount="0" falsecount="2"/>
128
- <line num="241" count="0" type="stmt"/>
129
- <line num="244" count="0" type="stmt"/>
130
- <line num="257" count="2" type="stmt"/>
131
- <line num="258" count="0" type="stmt"/>
132
- <line num="260" count="0" type="stmt"/>
133
- <line num="262" count="0" type="cond" truecount="0" falsecount="2"/>
134
- <line num="263" count="0" type="stmt"/>
135
- <line num="266" count="0" type="cond" truecount="0" falsecount="2"/>
136
- <line num="267" count="0" type="stmt"/>
137
- <line num="270" count="0" type="stmt"/>
138
- <line num="283" count="2" type="stmt"/>
139
- <line num="284" count="4" type="cond" truecount="2" falsecount="0"/>
140
- <line num="289" count="1" type="stmt"/>
141
- <line num="295" count="3" type="stmt"/>
142
- <line num="297" count="3" type="cond" truecount="2" falsecount="0"/>
143
- <line num="298" count="1" type="stmt"/>
144
- <line num="301" count="2" type="cond" truecount="2" falsecount="0"/>
145
- <line num="302" count="1" type="stmt"/>
146
- <line num="305" count="1" type="stmt"/>
147
- <line num="318" count="2" type="stmt"/>
148
- <line num="319" count="5" type="stmt"/>
149
- <line num="321" count="3" type="stmt"/>
150
- <line num="323" count="3" type="cond" truecount="2" falsecount="0"/>
151
- <line num="324" count="2" type="stmt"/>
152
- <line num="327" count="1" type="cond" truecount="1" falsecount="1"/>
153
- <line num="328" count="1" type="stmt"/>
154
- <line num="331" count="0" type="stmt"/>
123
+ <line num="212" count="0" type="cond" truecount="0" falsecount="2"/>
124
+ <line num="213" count="0" type="stmt"/>
125
+ <line num="215" count="0" type="stmt"/>
126
+ <line num="232" count="2" type="stmt"/>
127
+ <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"/>
146
+ <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"/>
155
158
  </file>
156
159
  <file name="users.js" path="/builds/3dlinkweb/apacuana/libs/apacuana-sdk-core/main/src/api/users.js">
157
160
  <metrics statements="13" coveredstatements="13" conditionals="12" coveredconditionals="11" methods="1" coveredmethods="1"/>
@@ -171,19 +174,21 @@
171
174
  </file>
172
175
  </package>
173
176
  <package name="src.config">
174
- <metrics statements="10" coveredstatements="3" conditionals="9" coveredconditionals="0" methods="2" coveredmethods="0"/>
177
+ <metrics statements="12" coveredstatements="5" conditionals="9" coveredconditionals="0" methods="3" coveredmethods="0"/>
175
178
  <file name="index.js" path="/builds/3dlinkweb/apacuana/libs/apacuana-sdk-core/main/src/config/index.js">
176
- <metrics statements="10" coveredstatements="3" conditionals="9" coveredconditionals="0" methods="2" coveredmethods="0"/>
177
- <line num="4" count="2" type="stmt"/>
178
- <line num="15" count="2" type="stmt"/>
179
- <line num="16" count="0" type="stmt"/>
180
- <line num="18" count="0" type="cond" truecount="0" falsecount="7"/>
181
- <line num="19" count="0" type="stmt"/>
182
- <line num="26" count="0" type="cond" truecount="0" falsecount="2"/>
183
- <line num="27" count="0" type="stmt"/>
184
- <line num="33" count="0" type="stmt"/>
179
+ <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"/>
183
+ <line num="32" count="0" type="stmt"/>
184
+ <line num="34" count="0" type="cond" truecount="0" falsecount="7"/>
185
185
  <line num="35" count="0" type="stmt"/>
186
- <line num="41" count="2" type="stmt"/>
186
+ <line num="42" count="0" type="cond" truecount="0" falsecount="2"/>
187
+ <line num="43" count="0" type="stmt"/>
188
+ <line num="49" count="0" type="stmt"/>
189
+ <line num="53" count="2" type="stmt"/>
190
+ <line num="55" count="2" type="stmt"/>
191
+ <line num="56" count="0" type="stmt"/>
187
192
  </file>
188
193
  </package>
189
194
  <package name="src.errors">