bexio 3.4.0 → 3.6.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/coverage/index.html +32 -32
- package/junit.xml +12 -226
- package/lib/index.d.ts +9 -0
- package/lib/index.js +9 -0
- package/lib/index.js.map +1 -1
- package/lib/interfaces/AccountsStatic.d.ts +14 -0
- package/lib/interfaces/AccountsStatic.js +3 -0
- package/lib/interfaces/AccountsStatic.js.map +1 -0
- package/lib/interfaces/ManualEntriesStatic.d.ts +42 -0
- package/lib/interfaces/ManualEntriesStatic.js +3 -0
- package/lib/interfaces/ManualEntriesStatic.js.map +1 -0
- package/lib/interfaces/TaxesStatic.d.ts +31 -0
- package/lib/interfaces/TaxesStatic.js +3 -0
- package/lib/interfaces/TaxesStatic.js.map +1 -0
- package/lib/resources/Accounts.d.ts +49 -0
- package/lib/resources/Accounts.js +85 -0
- package/lib/resources/Accounts.js.map +1 -0
- package/lib/resources/ManualEntries.d.ts +50 -0
- package/lib/resources/ManualEntries.js +84 -0
- package/lib/resources/ManualEntries.js.map +1 -0
- package/lib/resources/Taxes.d.ts +30 -0
- package/lib/resources/Taxes.js +70 -0
- package/lib/resources/Taxes.js.map +1 -0
- package/lib/tests/Accounts.test.d.ts +1 -0
- package/lib/tests/Accounts.test.js +86 -0
- package/lib/tests/Accounts.test.js.map +1 -0
- package/lib/tests/ManualEntries.test.d.ts +1 -0
- package/lib/tests/ManualEntries.test.js +116 -0
- package/lib/tests/ManualEntries.test.js.map +1 -0
- package/lib/tests/OutgoingPayments.test.js +1 -1
- package/lib/tests/OutgoingPayments.test.js.map +1 -1
- package/lib/tests/Taxes.test.d.ts +1 -0
- package/lib/tests/Taxes.test.js +107 -0
- package/lib/tests/Taxes.test.js.map +1 -0
- package/package.json +1 -1
- package/coverage/block-navigation.js +0 -87
- package/coverage/prettify.js +0 -2
- package/coverage/sorter.js +0 -210
- package/jest-html-reporters-attach/jest_html_reporters/index.js +0 -3
- package/jest-html-reporters-attach/jest_html_reporters/result.js +0 -1
package/coverage/index.html
CHANGED
|
@@ -23,30 +23,30 @@
|
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">
|
|
26
|
+
<span class="strong">2.77% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>16/577</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">
|
|
33
|
+
<span class="strong">0% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>
|
|
35
|
+
<span class='fraction'>0/137</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
<div class='fl pad1y space-right2'>
|
|
40
|
-
<span class="strong">
|
|
40
|
+
<span class="strong">6.06% </span>
|
|
41
41
|
<span class="quiet">Functions</span>
|
|
42
|
-
<span class='fraction'>
|
|
42
|
+
<span class='fraction'>10/165</span>
|
|
43
43
|
</div>
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">
|
|
47
|
+
<span class="strong">2.78% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>16/574</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -84,43 +84,43 @@
|
|
|
84
84
|
<div class="chart"><div class="cover-fill" style="width: 0%"></div><div class="cover-empty" style="width: 100%"></div></div>
|
|
85
85
|
</td>
|
|
86
86
|
<td data-value="0" class="pct low">0%</td>
|
|
87
|
-
<td data-value="
|
|
87
|
+
<td data-value="75" class="abs low">0/75</td>
|
|
88
88
|
<td data-value="100" class="pct high">100%</td>
|
|
89
89
|
<td data-value="0" class="abs high">0/0</td>
|
|
90
90
|
<td data-value="0" class="pct low">0%</td>
|
|
91
91
|
<td data-value="1" class="abs low">0/1</td>
|
|
92
92
|
<td data-value="0" class="pct low">0%</td>
|
|
93
|
-
<td data-value="
|
|
93
|
+
<td data-value="75" class="abs low">0/75</td>
|
|
94
94
|
</tr>
|
|
95
95
|
|
|
96
96
|
<tr>
|
|
97
97
|
<td class="file low" data-value="src/interfaces"><a href="src/interfaces/index.html">src/interfaces</a></td>
|
|
98
|
-
<td data-value="
|
|
99
|
-
<div class="chart"><div class="cover-fill" style="width:
|
|
98
|
+
<td data-value="0" class="pic low">
|
|
99
|
+
<div class="chart"><div class="cover-fill" style="width: 0%"></div><div class="cover-empty" style="width: 100%"></div></div>
|
|
100
100
|
</td>
|
|
101
|
-
<td data-value="
|
|
102
|
-
<td data-value="318" class="abs low">
|
|
103
|
-
<td data-value="
|
|
104
|
-
<td data-value="116" class="abs low">
|
|
105
|
-
<td data-value="
|
|
106
|
-
<td data-value="58" class="abs low">
|
|
107
|
-
<td data-value="
|
|
108
|
-
<td data-value="315" class="abs low">
|
|
101
|
+
<td data-value="0" class="pct low">0%</td>
|
|
102
|
+
<td data-value="318" class="abs low">0/318</td>
|
|
103
|
+
<td data-value="0" class="pct low">0%</td>
|
|
104
|
+
<td data-value="116" class="abs low">0/116</td>
|
|
105
|
+
<td data-value="0" class="pct low">0%</td>
|
|
106
|
+
<td data-value="58" class="abs low">0/58</td>
|
|
107
|
+
<td data-value="0" class="pct low">0%</td>
|
|
108
|
+
<td data-value="315" class="abs low">0/315</td>
|
|
109
109
|
</tr>
|
|
110
110
|
|
|
111
111
|
<tr>
|
|
112
|
-
<td class="file
|
|
113
|
-
<td data-value="
|
|
114
|
-
<div class="chart"><div class="cover-fill" style="width:
|
|
112
|
+
<td class="file low" data-value="src/resources"><a href="src/resources/index.html">src/resources</a></td>
|
|
113
|
+
<td data-value="8.69" class="pic low">
|
|
114
|
+
<div class="chart"><div class="cover-fill" style="width: 8%"></div><div class="cover-empty" style="width: 92%"></div></div>
|
|
115
115
|
</td>
|
|
116
|
-
<td data-value="
|
|
117
|
-
<td data-value="
|
|
118
|
-
<td data-value="
|
|
119
|
-
<td data-value="21" class="abs
|
|
120
|
-
<td data-value="
|
|
121
|
-
<td data-value="
|
|
122
|
-
<td data-value="
|
|
123
|
-
<td data-value="
|
|
116
|
+
<td data-value="8.69" class="pct low">8.69%</td>
|
|
117
|
+
<td data-value="184" class="abs low">16/184</td>
|
|
118
|
+
<td data-value="0" class="pct low">0%</td>
|
|
119
|
+
<td data-value="21" class="abs low">0/21</td>
|
|
120
|
+
<td data-value="9.43" class="pct low">9.43%</td>
|
|
121
|
+
<td data-value="106" class="abs low">10/106</td>
|
|
122
|
+
<td data-value="8.69" class="pct low">8.69%</td>
|
|
123
|
+
<td data-value="184" class="abs low">16/184</td>
|
|
124
124
|
</tr>
|
|
125
125
|
|
|
126
126
|
</tbody>
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
132
132
|
Code coverage generated by
|
|
133
133
|
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
134
|
-
at
|
|
134
|
+
at 2026-01-05T19:12:38.115Z
|
|
135
135
|
</div>
|
|
136
136
|
<script src="prettify.js"></script>
|
|
137
137
|
<script>
|
package/junit.xml
CHANGED
|
@@ -1,239 +1,25 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<testsuites name="jest tests" tests="
|
|
3
|
-
<testsuite name="
|
|
4
|
-
<testcase classname="
|
|
2
|
+
<testsuites name="jest tests" tests="10" failures="0" errors="0" time="1.558">
|
|
3
|
+
<testsuite name="ManualEntries" errors="0" failures="0" skipped="0" timestamp="2026-01-05T19:12:30" time="1.365" tests="10">
|
|
4
|
+
<testcase classname="ManualEntries Should use init the base correctly" name="ManualEntries Should use init the base correctly" time="0.002">
|
|
5
5
|
</testcase>
|
|
6
|
-
|
|
7
|
-
<testsuite name="ContactRelations" errors="0" failures="0" skipped="0" timestamp="2025-12-29T17:39:40" time="3.952" tests="1">
|
|
8
|
-
<testcase classname="ContactRelations Should use init the base correctly" name="ContactRelations Should use init the base correctly" time="0.018">
|
|
9
|
-
</testcase>
|
|
10
|
-
</testsuite>
|
|
11
|
-
<testsuite name="Expenses" errors="0" failures="0" skipped="0" timestamp="2025-12-29T17:39:40" time="3.944" tests="1">
|
|
12
|
-
<testcase classname="Expenses Should use init the base correctly" name="Expenses Should use init the base correctly" time="0.017">
|
|
13
|
-
</testcase>
|
|
14
|
-
</testsuite>
|
|
15
|
-
<testsuite name="Currencies" errors="0" failures="0" skipped="0" timestamp="2025-12-29T17:39:44" time="0.151" tests="1">
|
|
16
|
-
<testcase classname="Currencies Should use init the base correctly" name="Currencies Should use init the base correctly" time="0.002">
|
|
17
|
-
</testcase>
|
|
18
|
-
</testsuite>
|
|
19
|
-
<testsuite name="Timetrackings" errors="0" failures="0" skipped="0" timestamp="2025-12-29T17:39:40" time="3.998" tests="1">
|
|
20
|
-
<testcase classname="Timetrackings Should use init the base correctly" name="Timetrackings Should use init the base correctly" time="0.01">
|
|
21
|
-
</testcase>
|
|
22
|
-
</testsuite>
|
|
23
|
-
<testsuite name="Users" errors="0" failures="0" skipped="0" timestamp="2025-12-29T17:39:40" time="4.054" tests="1">
|
|
24
|
-
<testcase classname="Users Should use init the base correctly" name="Users Should use init the base correctly" time="0.011">
|
|
25
|
-
</testcase>
|
|
26
|
-
</testsuite>
|
|
27
|
-
<testsuite name="Contacts" errors="0" failures="0" skipped="0" timestamp="2025-12-29T17:39:40" time="4.285" tests="1">
|
|
28
|
-
<testcase classname="Contacts Should use init the base correctly" name="Contacts Should use init the base correctly" time="0.016">
|
|
29
|
-
</testcase>
|
|
30
|
-
</testsuite>
|
|
31
|
-
<testsuite name="Invoices" errors="0" failures="0" skipped="0" timestamp="2025-12-29T17:39:44" time="0.265" tests="7">
|
|
32
|
-
<testcase classname="Invoices Should use init the base correctly" name="Invoices Should use init the base correctly" time="0.003">
|
|
33
|
-
</testcase>
|
|
34
|
-
<testcase classname="Invoices sent Should call request with POST and correct path" name="Invoices sent Should call request with POST and correct path" time="0.003">
|
|
35
|
-
</testcase>
|
|
36
|
-
<testcase classname="Invoices revertIssue Should call request with POST and correct path" name="Invoices revertIssue Should call request with POST and correct path" time="0.001">
|
|
37
|
-
</testcase>
|
|
38
|
-
<testcase classname="Invoices createPayment Should call request with POST and correct path and formatted data" name="Invoices createPayment Should call request with POST and correct path and formatted data" time="0.002">
|
|
39
|
-
</testcase>
|
|
40
|
-
<testcase classname="Invoices createPayment Should call request without optional parameters" name="Invoices createPayment Should call request without optional parameters" time="0.001">
|
|
41
|
-
</testcase>
|
|
42
|
-
<testcase classname="Invoices getPayment Should call request with GET and correct path" name="Invoices getPayment Should call request with GET and correct path" time="0.002">
|
|
43
|
-
</testcase>
|
|
44
|
-
<testcase classname="Invoices deletePayment Should call request with DELETE and correct path" name="Invoices deletePayment Should call request with DELETE and correct path" time="0.001">
|
|
45
|
-
</testcase>
|
|
46
|
-
</testsuite>
|
|
47
|
-
<testsuite name="BaseCrud" errors="0" failures="0" skipped="0" timestamp="2025-12-29T17:39:40" time="4.392" tests="30">
|
|
48
|
-
<testcase classname="BaseCrud list Should be a GET request" name="BaseCrud list Should be a GET request" time="0.009">
|
|
49
|
-
</testcase>
|
|
50
|
-
<testcase classname="BaseCrud list Should use the given endpoint" name="BaseCrud list Should use the given endpoint" time="0.001">
|
|
51
|
-
</testcase>
|
|
52
|
-
<testcase classname="BaseCrud list Should pass the options to request" name="BaseCrud list Should pass the options to request" time="0.001">
|
|
53
|
-
</testcase>
|
|
54
|
-
<testcase classname="BaseCrud list Should handle array options correctly" name="BaseCrud list Should handle array options correctly" time="0.001">
|
|
55
|
-
</testcase>
|
|
56
|
-
<testcase classname="BaseCrud search Should be a POST request" name="BaseCrud search Should be a POST request" time="0.001">
|
|
57
|
-
</testcase>
|
|
58
|
-
<testcase classname="BaseCrud search Should use the given endpoint" name="BaseCrud search Should use the given endpoint" time="0.001">
|
|
59
|
-
</testcase>
|
|
60
|
-
<testcase classname="BaseCrud search Should contain the request body" name="BaseCrud search Should contain the request body" time="0.001">
|
|
61
|
-
</testcase>
|
|
62
|
-
<testcase classname="BaseCrud search Should pass the options to request" name="BaseCrud search Should pass the options to request" time="0.001">
|
|
63
|
-
</testcase>
|
|
64
|
-
<testcase classname="BaseCrud show Should be a GET request" name="BaseCrud show Should be a GET request" time="0.001">
|
|
65
|
-
</testcase>
|
|
66
|
-
<testcase classname="BaseCrud show Should use the given endpoint" name="BaseCrud show Should use the given endpoint" time="0">
|
|
67
|
-
</testcase>
|
|
68
|
-
<testcase classname="BaseCrud show Should pass the options to request" name="BaseCrud show Should pass the options to request" time="0">
|
|
69
|
-
</testcase>
|
|
70
|
-
<testcase classname="BaseCrud create Should be a POST request" name="BaseCrud create Should be a POST request" time="0">
|
|
71
|
-
</testcase>
|
|
72
|
-
<testcase classname="BaseCrud create Should use the given endpoint" name="BaseCrud create Should use the given endpoint" time="0.001">
|
|
73
|
-
</testcase>
|
|
74
|
-
<testcase classname="BaseCrud create Should contain the request body" name="BaseCrud create Should contain the request body" time="0">
|
|
75
|
-
</testcase>
|
|
76
|
-
<testcase classname="BaseCrud overwrite Should be a PUT request" name="BaseCrud overwrite Should be a PUT request" time="0.001">
|
|
77
|
-
</testcase>
|
|
78
|
-
<testcase classname="BaseCrud overwrite Should use the given endpoint" name="BaseCrud overwrite Should use the given endpoint" time="0.001">
|
|
79
|
-
</testcase>
|
|
80
|
-
<testcase classname="BaseCrud overwrite Should contain the request body" name="BaseCrud overwrite Should contain the request body" time="0">
|
|
81
|
-
</testcase>
|
|
82
|
-
<testcase classname="BaseCrud edit Should be a POST request" name="BaseCrud edit Should be a POST request" time="0.001">
|
|
83
|
-
</testcase>
|
|
84
|
-
<testcase classname="BaseCrud edit Should use the given endpoint" name="BaseCrud edit Should use the given endpoint" time="0.001">
|
|
85
|
-
</testcase>
|
|
86
|
-
<testcase classname="BaseCrud edit Should contain the request body" name="BaseCrud edit Should contain the request body" time="0">
|
|
87
|
-
</testcase>
|
|
88
|
-
<testcase classname="BaseCrud delete Should be a DELETE request" name="BaseCrud delete Should be a DELETE request" time="0">
|
|
89
|
-
</testcase>
|
|
90
|
-
<testcase classname="BaseCrud delete Should use the given endpoint" name="BaseCrud delete Should use the given endpoint" time="0.001">
|
|
91
|
-
</testcase>
|
|
92
|
-
<testcase classname="BaseCrud delete Should return the success value" name="BaseCrud delete Should return the success value" time="0">
|
|
93
|
-
</testcase>
|
|
94
|
-
<testcase classname="BaseCrud request Should create the request options" name="BaseCrud request Should create the request options" time="0.001">
|
|
95
|
-
</testcase>
|
|
96
|
-
<testcase classname="BaseCrud request Should add a data param if present" name="BaseCrud request Should add a data param if present" time="0.001">
|
|
97
|
-
</testcase>
|
|
98
|
-
<testcase classname="BaseCrud request Should add options as GET params" name="BaseCrud request Should add options as GET params" time="0.001">
|
|
99
|
-
</testcase>
|
|
100
|
-
<testcase classname="BaseCrud request Should normalize an error" name="BaseCrud request Should normalize an error" time="0.003">
|
|
101
|
-
</testcase>
|
|
102
|
-
<testcase classname="BaseCrud optionsToQuery Should return an empty string" name="BaseCrud optionsToQuery Should return an empty string" time="0">
|
|
103
|
-
</testcase>
|
|
104
|
-
<testcase classname="BaseCrud optionsToQuery Should return an GET parameter string" name="BaseCrud optionsToQuery Should return an GET parameter string" time="0.001">
|
|
105
|
-
</testcase>
|
|
106
|
-
<testcase classname="BaseCrud optionsToQuery Should url encode the parameters" name="BaseCrud optionsToQuery Should url encode the parameters" time="0.001">
|
|
107
|
-
</testcase>
|
|
108
|
-
</testsuite>
|
|
109
|
-
<testsuite name="ContactSectors" errors="0" failures="0" skipped="0" timestamp="2025-12-29T17:39:44" time="0.374" tests="1">
|
|
110
|
-
<testcase classname="ContactSectors Should use init the base correctly" name="ContactSectors Should use init the base correctly" time="0.001">
|
|
111
|
-
</testcase>
|
|
112
|
-
</testsuite>
|
|
113
|
-
<testsuite name="BillsV4" errors="0" failures="0" skipped="0" timestamp="2025-12-29T17:39:40" time="4.389" tests="11">
|
|
114
|
-
<testcase classname="BillsV4 Should use init the base correctly" name="BillsV4 Should use init the base correctly" time="0.012">
|
|
115
|
-
</testcase>
|
|
116
|
-
<testcase classname="BillsV4 list Should call request with GET" name="BillsV4 list Should call request with GET" time="0.005">
|
|
117
|
-
</testcase>
|
|
118
|
-
<testcase classname="BillsV4 list Should pass options to request" name="BillsV4 list Should pass options to request" time="0.002">
|
|
119
|
-
</testcase>
|
|
120
|
-
<testcase classname="BillsV4 list should list bills with options" name="BillsV4 list should list bills with options" time="0.009">
|
|
121
|
-
</testcase>
|
|
122
|
-
<testcase classname="BillsV4 updateStatus Should call request with PUT and correct path" name="BillsV4 updateStatus Should call request with PUT and correct path" time="0.006">
|
|
123
|
-
</testcase>
|
|
124
|
-
<testcase classname="BillsV4 executeAction Should call request with POST and correct path and data" name="BillsV4 executeAction Should call request with POST and correct path and data" time="0.002">
|
|
125
|
-
</testcase>
|
|
126
|
-
<testcase classname="BillsV4 validateDocumentNumber Should call request with GET and correct path and data" name="BillsV4 validateDocumentNumber Should call request with GET and correct path and data" time="0.002">
|
|
127
|
-
</testcase>
|
|
128
|
-
<testcase classname="BillsV4 search Should throw not implemented error" name="BillsV4 search Should throw not implemented error" time="0.046">
|
|
129
|
-
</testcase>
|
|
130
|
-
<testcase classname="BillsV4 updateStatus Should call request with PUT and correct path" name="BillsV4 updateStatus Should call request with PUT and correct path" time="0.014">
|
|
131
|
-
</testcase>
|
|
132
|
-
<testcase classname="BillsV4 executeAction Should call request with POST and correct path and data" name="BillsV4 executeAction Should call request with POST and correct path and data" time="0.001">
|
|
133
|
-
</testcase>
|
|
134
|
-
<testcase classname="BillsV4 validateDocumentNumber Should call request with GET and correct path and query" name="BillsV4 validateDocumentNumber Should call request with GET and correct path and query" time="0.007">
|
|
135
|
-
</testcase>
|
|
136
|
-
</testsuite>
|
|
137
|
-
<testsuite name="BusinessActivities" errors="0" failures="0" skipped="0" timestamp="2025-12-29T17:39:40" time="4.412" tests="1">
|
|
138
|
-
<testcase classname="BusinessActivities Should use init the base correctly" name="BusinessActivities Should use init the base correctly" time="0.015">
|
|
139
|
-
</testcase>
|
|
140
|
-
</testsuite>
|
|
141
|
-
<testsuite name="Bills" errors="0" failures="0" skipped="0" timestamp="2025-12-29T17:39:40" time="4.402" tests="11">
|
|
142
|
-
<testcase classname="Bills Should use init the base correctly" name="Bills Should use init the base correctly" time="0.013">
|
|
143
|
-
</testcase>
|
|
144
|
-
<testcase classname="Bills issue request" name="Bills issue request" time="0.002">
|
|
145
|
-
</testcase>
|
|
146
|
-
<testcase classname="Bills revertIssue request" name="Bills revertIssue request" time="0.002">
|
|
147
|
-
</testcase>
|
|
148
|
-
<testcase classname="Bills list Should call base list" name="Bills list Should call base list" time="0.009">
|
|
149
|
-
</testcase>
|
|
150
|
-
<testcase classname="Bills list Should pass options to base list" name="Bills list Should pass options to base list" time="0.001">
|
|
151
|
-
</testcase>
|
|
152
|
-
<testcase classname="Bills showPayment Should create a new Payment object" name="Bills showPayment Should create a new Payment object" time="0.006">
|
|
153
|
-
</testcase>
|
|
154
|
-
<testcase classname="Bills showPayment Should pass the options down" name="Bills showPayment Should pass the options down" time="0.007">
|
|
155
|
-
</testcase>
|
|
156
|
-
<testcase classname="Bills createPayment Should create a new Payment object" name="Bills createPayment Should create a new Payment object" time="0.009">
|
|
157
|
-
</testcase>
|
|
158
|
-
<testcase classname="Bills createPayment Should call create" name="Bills createPayment Should call create" time="0.014">
|
|
159
|
-
</testcase>
|
|
160
|
-
<testcase classname="Bills deletePayment Should create a new Payment object" name="Bills deletePayment Should create a new Payment object" time="0.009">
|
|
161
|
-
</testcase>
|
|
162
|
-
<testcase classname="Bills deletePayment Should call delete" name="Bills deletePayment Should call delete" time="0.01">
|
|
163
|
-
</testcase>
|
|
164
|
-
</testsuite>
|
|
165
|
-
<testsuite name="ProjectStatuses" errors="0" failures="0" skipped="0" timestamp="2025-12-29T17:39:40" time="4.496" tests="1">
|
|
166
|
-
<testcase classname="ProjectStatuses Should use init the base correctly" name="ProjectStatuses Should use init the base correctly" time="0.01">
|
|
167
|
-
</testcase>
|
|
168
|
-
</testsuite>
|
|
169
|
-
<testsuite name="ProjectTypes" errors="0" failures="0" skipped="0" timestamp="2025-12-29T17:39:40" time="4.669" tests="1">
|
|
170
|
-
<testcase classname="ProjectTypes Should use init the base correctly" name="ProjectTypes Should use init the base correctly" time="0.008">
|
|
171
|
-
</testcase>
|
|
172
|
-
</testsuite>
|
|
173
|
-
<testsuite name="BankAccounts" errors="0" failures="0" skipped="0" timestamp="2025-12-29T17:39:40" time="4.681" tests="9">
|
|
174
|
-
<testcase classname="BankAccounts Should use init the base correctly" name="BankAccounts Should use init the base correctly" time="0.009">
|
|
175
|
-
</testcase>
|
|
176
|
-
<testcase classname="BankAccounts list Should call request with GET" name="BankAccounts list Should call request with GET" time="0.003">
|
|
177
|
-
</testcase>
|
|
178
|
-
<testcase classname="BankAccounts list Should pass options to request" name="BankAccounts list Should pass options to request" time="0">
|
|
179
|
-
</testcase>
|
|
180
|
-
<testcase classname="BankAccounts show Should call request with GET and correct path" name="BankAccounts show Should call request with GET and correct path" time="0.001">
|
|
181
|
-
</testcase>
|
|
182
|
-
<testcase classname="BankAccounts Unsupported methods search should throw error" name="BankAccounts Unsupported methods search should throw error" time="0.01">
|
|
183
|
-
</testcase>
|
|
184
|
-
<testcase classname="BankAccounts Unsupported methods create should throw error" name="BankAccounts Unsupported methods create should throw error" time="0.001">
|
|
185
|
-
</testcase>
|
|
186
|
-
<testcase classname="BankAccounts Unsupported methods overwrite should throw error" name="BankAccounts Unsupported methods overwrite should throw error" time="0.001">
|
|
187
|
-
</testcase>
|
|
188
|
-
<testcase classname="BankAccounts Unsupported methods edit should throw error" name="BankAccounts Unsupported methods edit should throw error" time="0.002">
|
|
189
|
-
</testcase>
|
|
190
|
-
<testcase classname="BankAccounts Unsupported methods delete should throw error" name="BankAccounts Unsupported methods delete should throw error" time="0.001">
|
|
191
|
-
</testcase>
|
|
192
|
-
</testsuite>
|
|
193
|
-
<testsuite name="ContactGroups" errors="0" failures="0" skipped="0" timestamp="2025-12-29T17:39:40" time="4.798" tests="1">
|
|
194
|
-
<testcase classname="ContactGroups Should use init the base correctly" name="ContactGroups Should use init the base correctly" time="0.008">
|
|
195
|
-
</testcase>
|
|
196
|
-
</testsuite>
|
|
197
|
-
<testsuite name="ContactTypes" errors="0" failures="0" skipped="0" timestamp="2025-12-29T17:39:40" time="4.809" tests="1">
|
|
198
|
-
<testcase classname="ContactTypes Should use init the base correctly" name="ContactTypes Should use init the base correctly" time="0.008">
|
|
199
|
-
</testcase>
|
|
200
|
-
</testsuite>
|
|
201
|
-
<testsuite name="Orders" errors="0" failures="0" skipped="0" timestamp="2025-12-29T17:39:40" time="4.911" tests="1">
|
|
202
|
-
<testcase classname="Orders Should use init the base correctly" name="Orders Should use init the base correctly" time="0.008">
|
|
203
|
-
</testcase>
|
|
204
|
-
</testsuite>
|
|
205
|
-
<testsuite name="Items" errors="0" failures="0" skipped="0" timestamp="2025-12-29T17:39:40" time="4.932" tests="1">
|
|
206
|
-
<testcase classname="Items Should use init the base correctly" name="Items Should use init the base correctly" time="0.012">
|
|
207
|
-
</testcase>
|
|
208
|
-
</testsuite>
|
|
209
|
-
<testsuite name="Payments" errors="0" failures="0" skipped="0" timestamp="2025-12-29T17:39:40" time="4.961" tests="1">
|
|
210
|
-
<testcase classname="Payments Should use init the base correctly" name="Payments Should use init the base correctly" time="0.007">
|
|
211
|
-
</testcase>
|
|
212
|
-
</testsuite>
|
|
213
|
-
<testsuite name="TimetrackingStatuses" errors="0" failures="0" skipped="0" timestamp="2025-12-29T17:39:40" time="5.09" tests="1">
|
|
214
|
-
<testcase classname="TimetrackingStatuses Should use init the base correctly" name="TimetrackingStatuses Should use init the base correctly" time="0.005">
|
|
215
|
-
</testcase>
|
|
216
|
-
</testsuite>
|
|
217
|
-
<testsuite name="OutgoingPayments" errors="0" failures="0" skipped="0" timestamp="2025-12-29T17:39:44" time="1.283" tests="10">
|
|
218
|
-
<testcase classname="OutgoingPayments Should use init the base correctly" name="OutgoingPayments Should use init the base correctly" time="0.001">
|
|
219
|
-
</testcase>
|
|
220
|
-
<testcase classname="OutgoingPayments list Should call request with GET" name="OutgoingPayments list Should call request with GET" time="0">
|
|
6
|
+
<testcase classname="ManualEntries list Should call request with GET" name="ManualEntries list Should call request with GET" time="0.002">
|
|
221
7
|
</testcase>
|
|
222
|
-
<testcase classname="
|
|
8
|
+
<testcase classname="ManualEntries list Should pass options to request" name="ManualEntries list Should pass options to request" time="0">
|
|
223
9
|
</testcase>
|
|
224
|
-
<testcase classname="
|
|
10
|
+
<testcase classname="ManualEntries create Should call request with POST and correct data" name="ManualEntries create Should call request with POST and correct data" time="0">
|
|
225
11
|
</testcase>
|
|
226
|
-
<testcase classname="
|
|
12
|
+
<testcase classname="ManualEntries show Should throw not implemented error" name="ManualEntries show Should throw not implemented error" time="0.005">
|
|
227
13
|
</testcase>
|
|
228
|
-
<testcase classname="
|
|
14
|
+
<testcase classname="ManualEntries overwrite Should call request with PUT and correct path and data" name="ManualEntries overwrite Should call request with PUT and correct path and data" time="0.001">
|
|
229
15
|
</testcase>
|
|
230
|
-
<testcase classname="
|
|
16
|
+
<testcase classname="ManualEntries delete Should call request with DELETE and correct path" name="ManualEntries delete Should call request with DELETE and correct path" time="0">
|
|
231
17
|
</testcase>
|
|
232
|
-
<testcase classname="
|
|
18
|
+
<testcase classname="ManualEntries search Should throw not implemented error" name="ManualEntries search Should throw not implemented error" time="0">
|
|
233
19
|
</testcase>
|
|
234
|
-
<testcase classname="
|
|
20
|
+
<testcase classname="ManualEntries edit Should throw not implemented error" name="ManualEntries edit Should throw not implemented error" time="0.001">
|
|
235
21
|
</testcase>
|
|
236
|
-
<testcase classname="
|
|
22
|
+
<testcase classname="ManualEntries getNextReferenceNumber Should call request with GET and correct path" name="ManualEntries getNextReferenceNumber Should call request with GET and correct path" time="0.001">
|
|
237
23
|
</testcase>
|
|
238
24
|
</testsuite>
|
|
239
25
|
</testsuites>
|
package/lib/index.d.ts
CHANGED
|
@@ -19,6 +19,9 @@ import Currencies from "./resources/Currencies";
|
|
|
19
19
|
import BillsV4 from "./resources/BillsV4";
|
|
20
20
|
import OutgoingPayments from "./resources/OutgoingPayments";
|
|
21
21
|
import BankAccounts from "./resources/BankAccounts";
|
|
22
|
+
import Accounts from "./resources/Accounts";
|
|
23
|
+
import ManualEntries from "./resources/ManualEntries";
|
|
24
|
+
import Taxes from "./resources/Taxes";
|
|
22
25
|
export * from "./interfaces/BillsStatic";
|
|
23
26
|
export * from "./interfaces/BusinessActivitiesStatic";
|
|
24
27
|
export * from "./interfaces/CalendarStatic";
|
|
@@ -44,6 +47,9 @@ export * from "./interfaces/CurrenciesStatic";
|
|
|
44
47
|
export * from "./interfaces/BillsV4Static";
|
|
45
48
|
export * from "./interfaces/OutgoingPaymentsStatic";
|
|
46
49
|
export * from "./interfaces/BankAccountsStatic";
|
|
50
|
+
export * from "./interfaces/AccountsStatic";
|
|
51
|
+
export * from "./interfaces/ManualEntriesStatic";
|
|
52
|
+
export * from "./interfaces/TaxesStatic";
|
|
47
53
|
export default class Bexio {
|
|
48
54
|
private token;
|
|
49
55
|
businessActivities: BusinessActivities;
|
|
@@ -70,5 +76,8 @@ export default class Bexio {
|
|
|
70
76
|
invoices: Invoices;
|
|
71
77
|
currencies: Currencies;
|
|
72
78
|
bankAccounts: BankAccounts;
|
|
79
|
+
accounts: Accounts;
|
|
80
|
+
manualEntries: ManualEntries;
|
|
81
|
+
taxes: Taxes;
|
|
73
82
|
constructor(token: string);
|
|
74
83
|
}
|
package/lib/index.js
CHANGED
|
@@ -38,6 +38,9 @@ const Currencies_1 = __importDefault(require("./resources/Currencies"));
|
|
|
38
38
|
const BillsV4_1 = __importDefault(require("./resources/BillsV4"));
|
|
39
39
|
const OutgoingPayments_1 = __importDefault(require("./resources/OutgoingPayments"));
|
|
40
40
|
const BankAccounts_1 = __importDefault(require("./resources/BankAccounts"));
|
|
41
|
+
const Accounts_1 = __importDefault(require("./resources/Accounts"));
|
|
42
|
+
const ManualEntries_1 = __importDefault(require("./resources/ManualEntries"));
|
|
43
|
+
const Taxes_1 = __importDefault(require("./resources/Taxes"));
|
|
41
44
|
__exportStar(require("./interfaces/BillsStatic"), exports);
|
|
42
45
|
__exportStar(require("./interfaces/BusinessActivitiesStatic"), exports);
|
|
43
46
|
__exportStar(require("./interfaces/CalendarStatic"), exports);
|
|
@@ -63,6 +66,9 @@ __exportStar(require("./interfaces/CurrenciesStatic"), exports);
|
|
|
63
66
|
__exportStar(require("./interfaces/BillsV4Static"), exports);
|
|
64
67
|
__exportStar(require("./interfaces/OutgoingPaymentsStatic"), exports);
|
|
65
68
|
__exportStar(require("./interfaces/BankAccountsStatic"), exports);
|
|
69
|
+
__exportStar(require("./interfaces/AccountsStatic"), exports);
|
|
70
|
+
__exportStar(require("./interfaces/ManualEntriesStatic"), exports);
|
|
71
|
+
__exportStar(require("./interfaces/TaxesStatic"), exports);
|
|
66
72
|
class Bexio {
|
|
67
73
|
constructor(token) {
|
|
68
74
|
this.token = token;
|
|
@@ -88,6 +94,9 @@ class Bexio {
|
|
|
88
94
|
this.invoices = new Invoices_1.default(this.token);
|
|
89
95
|
this.currencies = new Currencies_1.default(this.token);
|
|
90
96
|
this.bankAccounts = new BankAccounts_1.default(this.token);
|
|
97
|
+
this.accounts = new Accounts_1.default(this.token);
|
|
98
|
+
this.manualEntries = new ManualEntries_1.default(this.token);
|
|
99
|
+
this.taxes = new Taxes_1.default(this.token);
|
|
91
100
|
}
|
|
92
101
|
}
|
|
93
102
|
exports.default = Bexio;
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,wFAAgE;AAChE,oEAA4C;AAC5C,4EAAoD;AACpD,gFAAwD;AACxD,8EAAsD;AACtD,oFAA4D;AAC5D,oEAA4C;AAC5C,8DAAsC;AACtC,gEAAwC;AACxC,oEAA4C;AAC5C,kFAA0D;AAC1D,4EAAoD;AACpD,8EAAsD;AACtD,4FAAoE;AACpE,8DAAsC;AACtC,8DAAsC;AACtC,oEAA4C;AAC5C,wEAAgD;AAChD,kEAA0C;AAC1C,oFAA4D;AAC5D,4EAAoD;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AAAA,wFAAgE;AAChE,oEAA4C;AAC5C,4EAAoD;AACpD,gFAAwD;AACxD,8EAAsD;AACtD,oFAA4D;AAC5D,oEAA4C;AAC5C,8DAAsC;AACtC,gEAAwC;AACxC,oEAA4C;AAC5C,kFAA0D;AAC1D,4EAAoD;AACpD,8EAAsD;AACtD,4FAAoE;AACpE,8DAAsC;AACtC,8DAAsC;AACtC,oEAA4C;AAC5C,wEAAgD;AAChD,kEAA0C;AAC1C,oFAA4D;AAC5D,4EAAoD;AACpD,oEAA4C;AAC5C,8EAAsD;AACtD,8DAAsC;AAEtC,2DAAyC;AACzC,wEAAsD;AACtD,8DAA4C;AAC5C,mEAAiD;AACjD,sEAAoD;AACpD,oEAAkD;AAClD,kEAAgD;AAChD,8DAA4C;AAC5C,8DAA4C;AAC5C,2DAAyC;AACzC,4DAA0C;AAC1C,8DAA4C;AAC5C,qEAAmD;AACnD,kEAAgD;AAChD,0EAAwD;AACxD,mEAAiD;AACjD,0EAAwD;AACxD,2DAAyC;AACzC,2DAAyC;AACzC,8DAA4C;AAC5C,8DAA4C;AAC5C,gEAA8C;AAC9C,6DAA2C;AAC3C,sEAAoD;AACpD,kEAAgD;AAChD,8DAA4C;AAC5C,mEAAiD;AACjD,2DAAyC;AAEzC,MAAqB,KAAK;IAkDxB,YAAY,KAAa;QACvB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QAEnB,iBAAiB;QACjB,IAAI,CAAC,kBAAkB,GAAG,IAAI,4BAAkB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC7D,IAAI,CAAC,QAAQ,GAAG,IAAI,kBAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACzC,IAAI,CAAC,YAAY,GAAG,IAAI,sBAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACjD,IAAI,CAAC,cAAc,GAAG,IAAI,wBAAc,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACrD,IAAI,CAAC,aAAa,GAAG,IAAI,uBAAa,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACnD,IAAI,CAAC,gBAAgB,GAAG,IAAI,0BAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACzD,IAAI,CAAC,MAAM,GAAG,IAAI,gBAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACrC,IAAI,CAAC,QAAQ,GAAG,IAAI,kBAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACzC,IAAI,CAAC,eAAe,GAAG,IAAI,yBAAe,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACvD,IAAI,CAAC,YAAY,GAAG,IAAI,sBAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACjD,IAAI,CAAC,QAAQ,GAAG,IAAI,kBAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACzC,IAAI,CAAC,OAAO,GAAG,IAAI,iBAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACvC,IAAI,CAAC,gBAAgB,GAAG,IAAI,0BAAgB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACzD,IAAI,CAAC,KAAK,GAAG,IAAI,eAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACnC,IAAI,CAAC,aAAa,GAAG,IAAI,uBAAa,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACnD,IAAI,CAAC,oBAAoB,GAAG,IAAI,8BAAoB,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACjE,IAAI,CAAC,KAAK,GAAG,IAAI,eAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACnC,IAAI,CAAC,KAAK,GAAG,IAAI,eAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACnC,IAAI,CAAC,QAAQ,GAAG,IAAI,kBAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACzC,IAAI,CAAC,UAAU,GAAG,IAAI,oBAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC7C,IAAI,CAAC,YAAY,GAAG,IAAI,sBAAY,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACjD,IAAI,CAAC,QAAQ,GAAG,IAAI,kBAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACzC,IAAI,CAAC,aAAa,GAAG,IAAI,uBAAa,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACnD,IAAI,CAAC,KAAK,GAAG,IAAI,eAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;IACrC,CAAC;CACF;AA/ED,wBA+EC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare namespace AccountsStatic {
|
|
2
|
+
interface Account {
|
|
3
|
+
id: number;
|
|
4
|
+
uuid: string;
|
|
5
|
+
account_no: string;
|
|
6
|
+
name: string;
|
|
7
|
+
account_type: number;
|
|
8
|
+
tax_id: number;
|
|
9
|
+
fibu_account_group_id: number;
|
|
10
|
+
is_active: boolean;
|
|
11
|
+
is_locked: boolean;
|
|
12
|
+
}
|
|
13
|
+
type SearchParameters = "account_no" | "fibu_account_group_id" | "name" | "account_type";
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AccountsStatic.js","sourceRoot":"","sources":["../../src/interfaces/AccountsStatic.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { BaseStatic } from "./BaseStatic";
|
|
2
|
+
export declare namespace ManualEntriesStatic {
|
|
3
|
+
type ManualEntryType = "manual_single_entry" | "manual_compound_entry" | "manual_group_entry";
|
|
4
|
+
interface Entry {
|
|
5
|
+
id?: number;
|
|
6
|
+
debit_account_id: number;
|
|
7
|
+
credit_account_id: number;
|
|
8
|
+
tax_id?: number;
|
|
9
|
+
tax_account_id?: number;
|
|
10
|
+
amount: number;
|
|
11
|
+
currency_id: number;
|
|
12
|
+
exchange_rate?: number;
|
|
13
|
+
text?: string;
|
|
14
|
+
}
|
|
15
|
+
interface ManualEntry {
|
|
16
|
+
id: number;
|
|
17
|
+
type: ManualEntryType;
|
|
18
|
+
date: string;
|
|
19
|
+
reference_nr: string;
|
|
20
|
+
entries: Entry[];
|
|
21
|
+
created_by_user_id: number;
|
|
22
|
+
edited_by_user_id: number;
|
|
23
|
+
is_locked: boolean;
|
|
24
|
+
locked_info?: string;
|
|
25
|
+
}
|
|
26
|
+
interface ManualEntryCreate {
|
|
27
|
+
type: ManualEntryType;
|
|
28
|
+
date: string;
|
|
29
|
+
reference_nr?: string;
|
|
30
|
+
entries: Entry[];
|
|
31
|
+
}
|
|
32
|
+
interface ManualEntryUpdate extends ManualEntryCreate {
|
|
33
|
+
id: number;
|
|
34
|
+
}
|
|
35
|
+
interface ListOptions extends BaseStatic.BaseOptions {
|
|
36
|
+
}
|
|
37
|
+
interface SearchParameters {
|
|
38
|
+
id?: number;
|
|
39
|
+
date?: string;
|
|
40
|
+
reference_nr?: string;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ManualEntriesStatic.js","sourceRoot":"","sources":["../../src/interfaces/ManualEntriesStatic.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { BaseStatic } from "./BaseStatic";
|
|
2
|
+
export declare namespace TaxesStatic {
|
|
3
|
+
interface Tax {
|
|
4
|
+
id: number;
|
|
5
|
+
uuid: string;
|
|
6
|
+
name: string;
|
|
7
|
+
code: string;
|
|
8
|
+
digit: string;
|
|
9
|
+
type: 'sales_tax' | 'pre_tax';
|
|
10
|
+
account_id: number;
|
|
11
|
+
tax_settlement_type: string;
|
|
12
|
+
value: number;
|
|
13
|
+
net_tax_value: number | null;
|
|
14
|
+
start_year: number;
|
|
15
|
+
end_year: number | null;
|
|
16
|
+
is_active: boolean;
|
|
17
|
+
display_name: string;
|
|
18
|
+
start_month: number;
|
|
19
|
+
end_month: number;
|
|
20
|
+
}
|
|
21
|
+
interface TaxOptions extends BaseStatic.BaseOptions {
|
|
22
|
+
scope?: 'active' | 'inactive';
|
|
23
|
+
date?: string;
|
|
24
|
+
types?: 'sales_tax' | 'pre_tax';
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* @deprecated Use TaxOptions instead
|
|
28
|
+
*/
|
|
29
|
+
interface SearchParameters extends TaxOptions {
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TaxesStatic.js","sourceRoot":"","sources":["../../src/interfaces/TaxesStatic.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { AccountsStatic } from "../interfaces/AccountsStatic";
|
|
2
|
+
import BaseCrud from "./BaseCrud";
|
|
3
|
+
import { BaseStatic } from "../interfaces/BaseStatic";
|
|
4
|
+
export default class Accounts extends BaseCrud<AccountsStatic.Account, AccountsStatic.Account, AccountsStatic.Account, AccountsStatic.SearchParameters, AccountsStatic.Account, AccountsStatic.Account> {
|
|
5
|
+
constructor(apiToken: string);
|
|
6
|
+
/**
|
|
7
|
+
* show a specific ressource
|
|
8
|
+
*
|
|
9
|
+
* @param {string | number} id
|
|
10
|
+
* @param {BaseStatic.BaseOptions} [options]
|
|
11
|
+
* @returns {Promise<AccountsStatic.Account>}
|
|
12
|
+
* @memberof Accounts
|
|
13
|
+
*/
|
|
14
|
+
show(id: string | number, options?: BaseStatic.BaseOptions): Promise<AccountsStatic.Account>;
|
|
15
|
+
/**
|
|
16
|
+
* create a new ressource
|
|
17
|
+
*
|
|
18
|
+
* @param {AccountsStatic.Account} ressource
|
|
19
|
+
* @returns {Promise<AccountsStatic.Account>}
|
|
20
|
+
* @memberof Accounts
|
|
21
|
+
*/
|
|
22
|
+
create(ressource: AccountsStatic.Account): Promise<AccountsStatic.Account>;
|
|
23
|
+
/**
|
|
24
|
+
* overwrite an existing ressource
|
|
25
|
+
*
|
|
26
|
+
* @param {number} id
|
|
27
|
+
* @param {AccountsStatic.Account} ressource
|
|
28
|
+
* @returns {Promise<AccountsStatic.Account>}
|
|
29
|
+
* @memberof Accounts
|
|
30
|
+
*/
|
|
31
|
+
overwrite(id: number, ressource: AccountsStatic.Account): Promise<AccountsStatic.Account>;
|
|
32
|
+
/**
|
|
33
|
+
* edit an existing ressource
|
|
34
|
+
*
|
|
35
|
+
* @param {number} id
|
|
36
|
+
* @param {Partial<AccountsStatic.Account>} ressource
|
|
37
|
+
* @returns {Promise<AccountsStatic.Account>}
|
|
38
|
+
* @memberof Accounts
|
|
39
|
+
*/
|
|
40
|
+
edit(id: number, ressource: Partial<AccountsStatic.Account>): Promise<AccountsStatic.Account>;
|
|
41
|
+
/**
|
|
42
|
+
* delete a ressource
|
|
43
|
+
*
|
|
44
|
+
* @param {number} id
|
|
45
|
+
* @returns {Promise<boolean>}
|
|
46
|
+
* @memberof Accounts
|
|
47
|
+
*/
|
|
48
|
+
delete(id: number): Promise<boolean>;
|
|
49
|
+
}
|