bexio 3.2.0 → 3.3.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/Readme.md +1 -12
- package/junit.xml +155 -0
- package/lib/index.d.ts +3 -0
- package/lib/index.js +3 -0
- package/lib/index.js.map +1 -1
- package/lib/interfaces/BaseStatic.d.ts +1 -1
- package/lib/interfaces/ContactsStatic.d.ts +7 -1
- package/lib/interfaces/ContactsStatic.js.map +1 -1
- package/lib/interfaces/CurrenciesStatic.d.ts +20 -0
- package/lib/interfaces/CurrenciesStatic.js +3 -0
- package/lib/interfaces/CurrenciesStatic.js.map +1 -0
- package/lib/interfaces/InvoicesStatic.d.ts +122 -70
- package/lib/interfaces/InvoicesStatic.js +21 -0
- package/lib/interfaces/InvoicesStatic.js.map +1 -1
- package/lib/resources/BaseCrud.js +1 -1
- package/lib/resources/BaseCrud.js.map +1 -1
- package/lib/resources/Bills.js +1 -1
- package/lib/resources/Bills.js.map +1 -1
- package/lib/resources/BusinessActivities.js +1 -1
- package/lib/resources/BusinessActivities.js.map +1 -1
- package/lib/resources/ContactGroups.js +1 -1
- package/lib/resources/ContactGroups.js.map +1 -1
- package/lib/resources/ContactRelations.js +1 -1
- package/lib/resources/ContactRelations.js.map +1 -1
- package/lib/resources/ContactSectors.js +1 -1
- package/lib/resources/ContactSectors.js.map +1 -1
- package/lib/resources/ContactTypes.js +1 -1
- package/lib/resources/ContactTypes.js.map +1 -1
- package/lib/resources/Contacts.js +1 -1
- package/lib/resources/Contacts.js.map +1 -1
- package/lib/resources/Currencies.d.ts +33 -0
- package/lib/resources/Currencies.js +61 -0
- package/lib/resources/Currencies.js.map +1 -0
- package/lib/resources/Expenses.js +1 -1
- package/lib/resources/Expenses.js.map +1 -1
- package/lib/resources/Invoices.d.ts +21 -0
- package/lib/resources/Invoices.js +37 -1
- package/lib/resources/Invoices.js.map +1 -1
- package/lib/resources/Items.js +1 -1
- package/lib/resources/Items.js.map +1 -1
- package/lib/resources/Orders.js +1 -1
- package/lib/resources/Orders.js.map +1 -1
- package/lib/resources/Payments.js +1 -1
- package/lib/resources/Payments.js.map +1 -1
- package/lib/resources/ProjectStatuses.js +1 -1
- package/lib/resources/ProjectStatuses.js.map +1 -1
- package/lib/resources/ProjectTypes.js +1 -1
- package/lib/resources/ProjectTypes.js.map +1 -1
- package/lib/resources/Projects.js +1 -1
- package/lib/resources/Projects.js.map +1 -1
- package/lib/resources/TimetrackingStatuses.js +1 -1
- package/lib/resources/TimetrackingStatuses.js.map +1 -1
- package/lib/resources/Timetrackings.js +1 -1
- package/lib/resources/Timetrackings.js.map +1 -1
- package/lib/resources/Users.js +1 -1
- package/lib/resources/Users.js.map +1 -1
- package/lib/tests/BaseCrud.test.js +12 -12
- package/lib/tests/BaseCrud.test.js.map +1 -1
- package/lib/tests/Bills.test.js +1 -1
- package/lib/tests/Bills.test.js.map +1 -1
- package/lib/tests/BusinessActivities.test.js +1 -1
- package/lib/tests/BusinessActivities.test.js.map +1 -1
- package/lib/tests/ContactGroups.test.js +1 -1
- package/lib/tests/ContactGroups.test.js.map +1 -1
- package/lib/tests/ContactRelations.test.js +1 -1
- package/lib/tests/ContactRelations.test.js.map +1 -1
- package/lib/tests/ContactSectors.test.js +1 -1
- package/lib/tests/ContactSectors.test.js.map +1 -1
- package/lib/tests/ContactTypes.test.js +1 -1
- package/lib/tests/ContactTypes.test.js.map +1 -1
- package/lib/tests/Contacts.test.js +1 -1
- package/lib/tests/Contacts.test.js.map +1 -1
- package/lib/tests/Currencies.test.d.ts +1 -0
- package/lib/tests/Currencies.test.js +21 -0
- package/lib/tests/Currencies.test.js.map +1 -0
- package/lib/tests/Expenses.test.js +1 -1
- package/lib/tests/Expenses.test.js.map +1 -1
- package/lib/tests/Invoices.test.js +1 -1
- package/lib/tests/Invoices.test.js.map +1 -1
- package/lib/tests/Items.test.js +1 -1
- package/lib/tests/Items.test.js.map +1 -1
- package/lib/tests/Orders.test.js +1 -1
- package/lib/tests/Orders.test.js.map +1 -1
- package/lib/tests/Payments.test.js +1 -1
- package/lib/tests/Payments.test.js.map +1 -1
- package/lib/tests/ProjectStatuses.test.js +1 -1
- package/lib/tests/ProjectStatuses.test.js.map +1 -1
- package/lib/tests/ProjectTypes.test.js +1 -1
- package/lib/tests/ProjectTypes.test.js.map +1 -1
- package/lib/tests/Projects.test.js +1 -1
- package/lib/tests/Projects.test.js.map +1 -1
- package/lib/tests/TimetrackingStatuses.test.js +1 -1
- package/lib/tests/TimetrackingStatuses.test.js.map +1 -1
- package/lib/tests/Timetrackings.test.js +1 -1
- package/lib/tests/Timetrackings.test.js.map +1 -1
- package/lib/tests/Users.test.js +1 -1
- package/lib/tests/Users.test.js.map +1 -1
- package/package.json +2 -2
package/Readme.md
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
# Bexio
|
|
2
2
|
|
|
3
|
-
[](https://david-dm.org/mathewmeconry/bexio)
|
|
4
|
-
[](https://snyk.io/test/npm/bexio)
|
|
5
|
-
[](https://codecov.io/gh/mathewmeconry/bexio)
|
|
6
3
|
[](https://github.com/mathewmeconry/bexio/actions)
|
|
7
|
-
[](https://github.com/mathewmeconry/bexio/actions)
|
|
8
4
|

|
|
9
5
|
|
|
10
6
|
## Description
|
|
@@ -27,14 +23,7 @@ NodeJS >= 18.14
|
|
|
27
23
|
|
|
28
24
|
## Functions
|
|
29
25
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
You can find a list of all implements functions in the [wiki](https://github.com/mathewmeconry/bexio/wiki)
|
|
33
|
-
|
|
34
|
-
### Missing
|
|
35
|
-
|
|
36
|
-
You can find a list of all missing functions here: [Missing Functions](https://github.com/mathewmeconry/bexio/wiki#missing-functions).
|
|
37
|
-
If you need a function implemented, please fill out an issue.
|
|
26
|
+
Not all API endpoints are implemented yet. If an endpoint you need is missing, please open a pull request.
|
|
38
27
|
|
|
39
28
|
## Example
|
|
40
29
|
|
package/junit.xml
ADDED
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<testsuites name="jest tests" tests="57" failures="0" errors="0" time="5.588">
|
|
3
|
+
<testsuite name="Contacts" errors="0" failures="0" skipped="0" timestamp="2025-11-25T13:59:43" time="4.276" tests="1">
|
|
4
|
+
<testcase classname="Contacts Should use init the base correctly" name="Contacts Should use init the base correctly" time="0.012">
|
|
5
|
+
</testcase>
|
|
6
|
+
</testsuite>
|
|
7
|
+
<testsuite name="ContactRelations" errors="0" failures="0" skipped="0" timestamp="2025-11-25T13:59:43" time="4.468" tests="1">
|
|
8
|
+
<testcase classname="ContactRelations Should use init the base correctly" name="ContactRelations Should use init the base correctly" time="0.017">
|
|
9
|
+
</testcase>
|
|
10
|
+
</testsuite>
|
|
11
|
+
<testsuite name="Expenses" errors="0" failures="0" skipped="0" timestamp="2025-11-25T13:59:43" time="4.583" tests="1">
|
|
12
|
+
<testcase classname="Expenses Should use init the base correctly" name="Expenses Should use init the base correctly" time="0.012">
|
|
13
|
+
</testcase>
|
|
14
|
+
</testsuite>
|
|
15
|
+
<testsuite name="BaseCrud" errors="0" failures="0" skipped="0" timestamp="2025-11-25T13:59:43" time="4.471" tests="29">
|
|
16
|
+
<testcase classname="BaseCrud list Should be a GET request" name="BaseCrud list Should be a GET request" time="0.009">
|
|
17
|
+
</testcase>
|
|
18
|
+
<testcase classname="BaseCrud list Should use the given endpoint" name="BaseCrud list Should use the given endpoint" time="0.002">
|
|
19
|
+
</testcase>
|
|
20
|
+
<testcase classname="BaseCrud list Should pass the options to request" name="BaseCrud list Should pass the options to request" time="0.002">
|
|
21
|
+
</testcase>
|
|
22
|
+
<testcase classname="BaseCrud search Should be a POST request" name="BaseCrud search Should be a POST request" time="0.002">
|
|
23
|
+
</testcase>
|
|
24
|
+
<testcase classname="BaseCrud search Should use the given endpoint" name="BaseCrud search Should use the given endpoint" time="0.005">
|
|
25
|
+
</testcase>
|
|
26
|
+
<testcase classname="BaseCrud search Should contain the request body" name="BaseCrud search Should contain the request body" time="0.003">
|
|
27
|
+
</testcase>
|
|
28
|
+
<testcase classname="BaseCrud search Should pass the options to request" name="BaseCrud search Should pass the options to request" time="0.005">
|
|
29
|
+
</testcase>
|
|
30
|
+
<testcase classname="BaseCrud show Should be a GET request" name="BaseCrud show Should be a GET request" time="0.001">
|
|
31
|
+
</testcase>
|
|
32
|
+
<testcase classname="BaseCrud show Should use the given endpoint" name="BaseCrud show Should use the given endpoint" time="0.01">
|
|
33
|
+
</testcase>
|
|
34
|
+
<testcase classname="BaseCrud show Should pass the options to request" name="BaseCrud show Should pass the options to request" time="0.001">
|
|
35
|
+
</testcase>
|
|
36
|
+
<testcase classname="BaseCrud create Should be a POST request" name="BaseCrud create Should be a POST request" time="0.001">
|
|
37
|
+
</testcase>
|
|
38
|
+
<testcase classname="BaseCrud create Should use the given endpoint" name="BaseCrud create Should use the given endpoint" time="0.004">
|
|
39
|
+
</testcase>
|
|
40
|
+
<testcase classname="BaseCrud create Should contain the request body" name="BaseCrud create Should contain the request body" time="0.001">
|
|
41
|
+
</testcase>
|
|
42
|
+
<testcase classname="BaseCrud overwrite Should be a PUT request" name="BaseCrud overwrite Should be a PUT request" time="0.004">
|
|
43
|
+
</testcase>
|
|
44
|
+
<testcase classname="BaseCrud overwrite Should use the given endpoint" name="BaseCrud overwrite Should use the given endpoint" time="0.001">
|
|
45
|
+
</testcase>
|
|
46
|
+
<testcase classname="BaseCrud overwrite Should contain the request body" name="BaseCrud overwrite Should contain the request body" time="0.002">
|
|
47
|
+
</testcase>
|
|
48
|
+
<testcase classname="BaseCrud edit Should be a POST request" name="BaseCrud edit Should be a POST request" time="0.001">
|
|
49
|
+
</testcase>
|
|
50
|
+
<testcase classname="BaseCrud edit Should use the given endpoint" name="BaseCrud edit Should use the given endpoint" time="0.001">
|
|
51
|
+
</testcase>
|
|
52
|
+
<testcase classname="BaseCrud edit Should contain the request body" name="BaseCrud edit Should contain the request body" time="0.028">
|
|
53
|
+
</testcase>
|
|
54
|
+
<testcase classname="BaseCrud delete Should be a DELETE request" name="BaseCrud delete Should be a DELETE request" time="0.002">
|
|
55
|
+
</testcase>
|
|
56
|
+
<testcase classname="BaseCrud delete Should use the given endpoint" name="BaseCrud delete Should use the given endpoint" time="0.001">
|
|
57
|
+
</testcase>
|
|
58
|
+
<testcase classname="BaseCrud delete Should return the success value" name="BaseCrud delete Should return the success value" time="0.001">
|
|
59
|
+
</testcase>
|
|
60
|
+
<testcase classname="BaseCrud request Should create the request options" name="BaseCrud request Should create the request options" time="0.002">
|
|
61
|
+
</testcase>
|
|
62
|
+
<testcase classname="BaseCrud request Should add a data param if present" name="BaseCrud request Should add a data param if present" time="0.001">
|
|
63
|
+
</testcase>
|
|
64
|
+
<testcase classname="BaseCrud request Should add options as GET params" name="BaseCrud request Should add options as GET params" time="0.004">
|
|
65
|
+
</testcase>
|
|
66
|
+
<testcase classname="BaseCrud request Should normalize an error" name="BaseCrud request Should normalize an error" time="0.006">
|
|
67
|
+
</testcase>
|
|
68
|
+
<testcase classname="BaseCrud optionsToQuery Should return an empty string" name="BaseCrud optionsToQuery Should return an empty string" time="0.001">
|
|
69
|
+
</testcase>
|
|
70
|
+
<testcase classname="BaseCrud optionsToQuery Should return an GET parameter string" name="BaseCrud optionsToQuery Should return an GET parameter string" time="0.001">
|
|
71
|
+
</testcase>
|
|
72
|
+
<testcase classname="BaseCrud optionsToQuery Should url encode the parameters" name="BaseCrud optionsToQuery Should url encode the parameters" time="0.001">
|
|
73
|
+
</testcase>
|
|
74
|
+
</testsuite>
|
|
75
|
+
<testsuite name="ProjectStatuses" errors="0" failures="0" skipped="0" timestamp="2025-11-25T13:59:43" time="4.473" tests="1">
|
|
76
|
+
<testcase classname="ProjectStatuses Should use init the base correctly" name="ProjectStatuses Should use init the base correctly" time="0.016">
|
|
77
|
+
</testcase>
|
|
78
|
+
</testsuite>
|
|
79
|
+
<testsuite name="Payments" errors="0" failures="0" skipped="0" timestamp="2025-11-25T13:59:43" time="4.618" tests="1">
|
|
80
|
+
<testcase classname="Payments Should use init the base correctly" name="Payments Should use init the base correctly" time="0.011">
|
|
81
|
+
</testcase>
|
|
82
|
+
</testsuite>
|
|
83
|
+
<testsuite name="Users" errors="0" failures="0" skipped="0" timestamp="2025-11-25T13:59:43" time="4.634" tests="1">
|
|
84
|
+
<testcase classname="Users Should use init the base correctly" name="Users Should use init the base correctly" time="0.01">
|
|
85
|
+
</testcase>
|
|
86
|
+
</testsuite>
|
|
87
|
+
<testsuite name="ProjectTypes" errors="0" failures="0" skipped="0" timestamp="2025-11-25T13:59:43" time="4.67" tests="1">
|
|
88
|
+
<testcase classname="ProjectTypes Should use init the base correctly" name="ProjectTypes Should use init the base correctly" time="0.011">
|
|
89
|
+
</testcase>
|
|
90
|
+
</testsuite>
|
|
91
|
+
<testsuite name="TimetrackingStatuses" errors="0" failures="0" skipped="0" timestamp="2025-11-25T13:59:43" time="4.711" tests="1">
|
|
92
|
+
<testcase classname="TimetrackingStatuses Should use init the base correctly" name="TimetrackingStatuses Should use init the base correctly" time="0.011">
|
|
93
|
+
</testcase>
|
|
94
|
+
</testsuite>
|
|
95
|
+
<testsuite name="Bills" errors="0" failures="0" skipped="0" timestamp="2025-11-25T13:59:43" time="4.736" tests="11">
|
|
96
|
+
<testcase classname="Bills Should use init the base correctly" name="Bills Should use init the base correctly" time="0.013">
|
|
97
|
+
</testcase>
|
|
98
|
+
<testcase classname="Bills issue request" name="Bills issue request" time="0.002">
|
|
99
|
+
</testcase>
|
|
100
|
+
<testcase classname="Bills revertIssue request" name="Bills revertIssue request" time="0.002">
|
|
101
|
+
</testcase>
|
|
102
|
+
<testcase classname="Bills list Should call base list" name="Bills list Should call base list" time="0.002">
|
|
103
|
+
</testcase>
|
|
104
|
+
<testcase classname="Bills list Should pass options to base list" name="Bills list Should pass options to base list" time="0.002">
|
|
105
|
+
</testcase>
|
|
106
|
+
<testcase classname="Bills showPayment Should create a new Payment object" name="Bills showPayment Should create a new Payment object" time="0.003">
|
|
107
|
+
</testcase>
|
|
108
|
+
<testcase classname="Bills showPayment Should pass the options down" name="Bills showPayment Should pass the options down" time="0.004">
|
|
109
|
+
</testcase>
|
|
110
|
+
<testcase classname="Bills createPayment Should create a new Payment object" name="Bills createPayment Should create a new Payment object" time="0.003">
|
|
111
|
+
</testcase>
|
|
112
|
+
<testcase classname="Bills createPayment Should call create" name="Bills createPayment Should call create" time="0.01">
|
|
113
|
+
</testcase>
|
|
114
|
+
<testcase classname="Bills deletePayment Should create a new Payment object" name="Bills deletePayment Should create a new Payment object" time="0.002">
|
|
115
|
+
</testcase>
|
|
116
|
+
<testcase classname="Bills deletePayment Should call delete" name="Bills deletePayment Should call delete" time="0.002">
|
|
117
|
+
</testcase>
|
|
118
|
+
</testsuite>
|
|
119
|
+
<testsuite name="Invoices" errors="0" failures="0" skipped="0" timestamp="2025-11-25T13:59:43" time="4.745" tests="1">
|
|
120
|
+
<testcase classname="Invoices Should use init the base correctly" name="Invoices Should use init the base correctly" time="0.006">
|
|
121
|
+
</testcase>
|
|
122
|
+
</testsuite>
|
|
123
|
+
<testsuite name="Orders" errors="0" failures="0" skipped="0" timestamp="2025-11-25T13:59:43" time="4.746" tests="1">
|
|
124
|
+
<testcase classname="Orders Should use init the base correctly" name="Orders Should use init the base correctly" time="0.009">
|
|
125
|
+
</testcase>
|
|
126
|
+
</testsuite>
|
|
127
|
+
<testsuite name="Projects" errors="0" failures="0" skipped="0" timestamp="2025-11-25T13:59:43" time="4.76" tests="1">
|
|
128
|
+
<testcase classname="Projects Should use init the base correctly" name="Projects Should use init the base correctly" time="0.011">
|
|
129
|
+
</testcase>
|
|
130
|
+
</testsuite>
|
|
131
|
+
<testsuite name="Timetrackings" errors="0" failures="0" skipped="0" timestamp="2025-11-25T13:59:43" time="4.783" tests="1">
|
|
132
|
+
<testcase classname="Timetrackings Should use init the base correctly" name="Timetrackings Should use init the base correctly" time="0.005">
|
|
133
|
+
</testcase>
|
|
134
|
+
</testsuite>
|
|
135
|
+
<testsuite name="ContactTypes" errors="0" failures="0" skipped="0" timestamp="2025-11-25T13:59:43" time="4.745" tests="1">
|
|
136
|
+
<testcase classname="ContactTypes Should use init the base correctly" name="ContactTypes Should use init the base correctly" time="0.008">
|
|
137
|
+
</testcase>
|
|
138
|
+
</testsuite>
|
|
139
|
+
<testsuite name="ContactSectors" errors="0" failures="0" skipped="0" timestamp="2025-11-25T13:59:43" time="4.744" tests="1">
|
|
140
|
+
<testcase classname="ContactSectors Should use init the base correctly" name="ContactSectors Should use init the base correctly" time="0.008">
|
|
141
|
+
</testcase>
|
|
142
|
+
</testsuite>
|
|
143
|
+
<testsuite name="ContactGroups" errors="0" failures="0" skipped="0" timestamp="2025-11-25T13:59:43" time="4.815" tests="1">
|
|
144
|
+
<testcase classname="ContactGroups Should use init the base correctly" name="ContactGroups Should use init the base correctly" time="0.01">
|
|
145
|
+
</testcase>
|
|
146
|
+
</testsuite>
|
|
147
|
+
<testsuite name="Items" errors="0" failures="0" skipped="0" timestamp="2025-11-25T13:59:43" time="4.858" tests="1">
|
|
148
|
+
<testcase classname="Items Should use init the base correctly" name="Items Should use init the base correctly" time="0.006">
|
|
149
|
+
</testcase>
|
|
150
|
+
</testsuite>
|
|
151
|
+
<testsuite name="BusinessActivities" errors="0" failures="0" skipped="0" timestamp="2025-11-25T13:59:43" time="4.847" tests="1">
|
|
152
|
+
<testcase classname="BusinessActivities Should use init the base correctly" name="BusinessActivities Should use init the base correctly" time="0.005">
|
|
153
|
+
</testcase>
|
|
154
|
+
</testsuite>
|
|
155
|
+
</testsuites>
|
package/lib/index.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ import TimetrackingStatuses from "./resources/TimetrackingStatuses";
|
|
|
15
15
|
import Users from "./resources/Users";
|
|
16
16
|
import Items from "./resources/Items";
|
|
17
17
|
import Invoices from "./resources/Invoices";
|
|
18
|
+
import Currencies from "./resources/Currencies";
|
|
18
19
|
export * from "./interfaces/BillsStatic";
|
|
19
20
|
export * from "./interfaces/BusinessActivitiesStatic";
|
|
20
21
|
export * from "./interfaces/CalendarStatic";
|
|
@@ -36,6 +37,7 @@ export * from "./interfaces/UsersStatic";
|
|
|
36
37
|
export * from "./interfaces/ItemsStatic";
|
|
37
38
|
export * from "./interfaces/InvoicesStatic";
|
|
38
39
|
export * from "./interfaces/PositionStatic";
|
|
40
|
+
export * from "./interfaces/CurrenciesStatic";
|
|
39
41
|
export default class Bexio {
|
|
40
42
|
private token;
|
|
41
43
|
businessActivities: BusinessActivities;
|
|
@@ -55,5 +57,6 @@ export default class Bexio {
|
|
|
55
57
|
users: Users;
|
|
56
58
|
items: Items;
|
|
57
59
|
invoices: Invoices;
|
|
60
|
+
currencies: Currencies;
|
|
58
61
|
constructor(token: string);
|
|
59
62
|
}
|
package/lib/index.js
CHANGED
|
@@ -34,6 +34,7 @@ const TimetrackingStatuses_1 = __importDefault(require("./resources/Timetracking
|
|
|
34
34
|
const Users_1 = __importDefault(require("./resources/Users"));
|
|
35
35
|
const Items_1 = __importDefault(require("./resources/Items"));
|
|
36
36
|
const Invoices_1 = __importDefault(require("./resources/Invoices"));
|
|
37
|
+
const Currencies_1 = __importDefault(require("./resources/Currencies"));
|
|
37
38
|
__exportStar(require("./interfaces/BillsStatic"), exports);
|
|
38
39
|
__exportStar(require("./interfaces/BusinessActivitiesStatic"), exports);
|
|
39
40
|
__exportStar(require("./interfaces/CalendarStatic"), exports);
|
|
@@ -55,6 +56,7 @@ __exportStar(require("./interfaces/UsersStatic"), exports);
|
|
|
55
56
|
__exportStar(require("./interfaces/ItemsStatic"), exports);
|
|
56
57
|
__exportStar(require("./interfaces/InvoicesStatic"), exports);
|
|
57
58
|
__exportStar(require("./interfaces/PositionStatic"), exports);
|
|
59
|
+
__exportStar(require("./interfaces/CurrenciesStatic"), exports);
|
|
58
60
|
class Bexio {
|
|
59
61
|
constructor(token) {
|
|
60
62
|
this.token = token;
|
|
@@ -76,6 +78,7 @@ class Bexio {
|
|
|
76
78
|
this.users = new Users_1.default(this.token);
|
|
77
79
|
this.items = new Items_1.default(this.token);
|
|
78
80
|
this.invoices = new Invoices_1.default(this.token);
|
|
81
|
+
this.currencies = new Currencies_1.default(this.token);
|
|
79
82
|
}
|
|
80
83
|
}
|
|
81
84
|
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;
|
|
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;AAEhD,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;AAE9C,MAAqB,KAAK;IAwCxB,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,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;IAC/C,CAAC;CACF;AA/DD,wBA+DC"}
|
|
@@ -5,7 +5,7 @@ export declare namespace BaseStatic {
|
|
|
5
5
|
mime: string;
|
|
6
6
|
content: string;
|
|
7
7
|
}
|
|
8
|
-
type SearchCriteria = "=" | "!=" | ">" | "<" | ">=" | "<=" | "equal" | "not_equal" | "greater_than" | "less_than" | "greater_equal" | "less_equal" | "like" | "not_like" | "is_null" | "not_null";
|
|
8
|
+
type SearchCriteria = "=" | "!=" | ">" | "<" | ">=" | "<=" | "equal" | "not_equal" | "greater_than" | "less_than" | "greater_equal" | "less_equal" | "like" | "not_like" | "is_null" | "not_null" | "in" | "not_in";
|
|
9
9
|
interface SearchParameter<T> {
|
|
10
10
|
field: T;
|
|
11
11
|
value: any;
|
|
@@ -9,7 +9,10 @@ export declare namespace ContactsStatic {
|
|
|
9
9
|
salutation_form?: number;
|
|
10
10
|
title_id?: number;
|
|
11
11
|
birthday?: string;
|
|
12
|
-
|
|
12
|
+
/** @deprecated */
|
|
13
|
+
address?: string;
|
|
14
|
+
street_name?: string;
|
|
15
|
+
house_number?: string;
|
|
13
16
|
postcode: string;
|
|
14
17
|
city: string;
|
|
15
18
|
country_id: number;
|
|
@@ -55,7 +58,10 @@ export declare namespace ContactsStatic {
|
|
|
55
58
|
salutation_form?: number;
|
|
56
59
|
title_id?: number;
|
|
57
60
|
birthday?: string;
|
|
61
|
+
/** @deprecated */
|
|
58
62
|
address?: string;
|
|
63
|
+
street_name?: string;
|
|
64
|
+
house_number?: string;
|
|
59
65
|
postcode?: string;
|
|
60
66
|
city?: string;
|
|
61
67
|
mail?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContactsStatic.js","sourceRoot":"","sources":["../../src/interfaces/ContactsStatic.ts"],"names":[],"mappings":";;;AAAA,IAAiB,cAAc,
|
|
1
|
+
{"version":3,"file":"ContactsStatic.js","sourceRoot":"","sources":["../../src/interfaces/ContactsStatic.ts"],"names":[],"mappings":";;;AAAA,IAAiB,cAAc,CAwG9B;AAxGD,WAAiB,cAAc;IAqF7B,IAAY,uBAkBX;IAlBD,WAAY,uBAAuB;QACjC,oCAAS,CAAA;QACT,4CAAiB,CAAA;QACjB,4CAAiB,CAAA;QACjB,oCAAS,CAAA;QACT,8CAAmB,CAAA;QACnB,wCAAa,CAAA;QACb,sDAA2B,CAAA;QAC3B,gDAAqB,CAAA;QACrB,wCAAa,CAAA;QACb,oDAAyB,CAAA;QACzB,kEAAuC,CAAA;QACvC,8DAAmC,CAAA;QACnC,oDAAyB,CAAA;QACzB,8CAAmB,CAAA;QACnB,sDAA2B,CAAA;QAC3B,wDAA6B,CAAA;QAC7B,sCAAW,CAAA;IACb,CAAC,EAlBW,uBAAuB,GAAvB,sCAAuB,KAAvB,sCAAuB,QAkBlC;AACH,CAAC,EAxGgB,cAAc,8BAAd,cAAc,QAwG9B"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare namespace CurrenciesStatic {
|
|
2
|
+
interface Currency {
|
|
3
|
+
id: number;
|
|
4
|
+
name: string;
|
|
5
|
+
round_factor: number;
|
|
6
|
+
}
|
|
7
|
+
interface CurrencyFull extends Currency {
|
|
8
|
+
exchange_rate?: number;
|
|
9
|
+
exchange_rate_id?: number;
|
|
10
|
+
ratio?: number;
|
|
11
|
+
exchange_rate_to_ratio?: number;
|
|
12
|
+
source?: "custom" | "monthly_average";
|
|
13
|
+
source_reason?: "monthly_average_provided" | "monthly_average_unavailable" | "monthly_average_unreachable" | "source_custom";
|
|
14
|
+
exchange_rate_date?: string;
|
|
15
|
+
}
|
|
16
|
+
interface CurrencyCreate {
|
|
17
|
+
name: string;
|
|
18
|
+
round_factor: number;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CurrenciesStatic.js","sourceRoot":"","sources":["../../src/interfaces/CurrenciesStatic.ts"],"names":[],"mappings":""}
|
|
@@ -1,74 +1,94 @@
|
|
|
1
1
|
import { PositionStatic } from "./PositionStatic";
|
|
2
2
|
export declare namespace InvoicesStatic {
|
|
3
3
|
interface Invoice {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
4
|
+
id: number;
|
|
5
|
+
title: string | null;
|
|
6
|
+
contact_id: number;
|
|
7
|
+
contact_sub_id: number | null;
|
|
8
|
+
user_id: number;
|
|
9
|
+
pr_project_id: number | null;
|
|
10
|
+
logopaper_id: number;
|
|
11
|
+
language_id: number;
|
|
12
|
+
bank_account_id: number;
|
|
13
|
+
currency_id: number;
|
|
14
|
+
payment_type_id: number;
|
|
15
|
+
header: string;
|
|
16
|
+
footer: string;
|
|
17
|
+
mwst_type: number;
|
|
18
|
+
mwst_is_net: boolean;
|
|
19
|
+
show_position_taxes: boolean;
|
|
20
|
+
is_valid_from: string;
|
|
21
|
+
is_valid_to: string;
|
|
22
|
+
reference: null | string;
|
|
23
|
+
api_reference: null | string;
|
|
24
|
+
template_slug: string;
|
|
25
|
+
positions: PositionStatic.Position[];
|
|
26
|
+
document_nr: string;
|
|
27
|
+
total_gross: string;
|
|
28
|
+
total_net: string;
|
|
29
|
+
total_taxes: string;
|
|
30
|
+
total_received_payments: string;
|
|
31
|
+
total_credit_vouchers: string;
|
|
32
|
+
total_remaining_payments: string;
|
|
33
|
+
total: string;
|
|
34
|
+
total_rounding_difference: number;
|
|
35
|
+
contact_address: string;
|
|
36
|
+
kb_item_status_id: number;
|
|
37
|
+
viewed_by_client_at: string | null;
|
|
38
|
+
updated_at: string;
|
|
39
|
+
esr_id: number;
|
|
40
|
+
qr_invoice_id: number;
|
|
41
|
+
taxs: {
|
|
42
|
+
percentage: string;
|
|
43
|
+
value: string;
|
|
44
|
+
}[];
|
|
45
|
+
network_link: string | null;
|
|
26
46
|
}
|
|
27
47
|
interface InvoiceCreate {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
48
|
+
title?: string | null;
|
|
49
|
+
contact_id: number;
|
|
50
|
+
contact_sub_id?: number | null;
|
|
51
|
+
user_id: number;
|
|
52
|
+
pr_project_id?: number | null;
|
|
53
|
+
logopaper_id?: number;
|
|
54
|
+
language_id?: number;
|
|
55
|
+
bank_account_id?: number;
|
|
56
|
+
currency_id?: number;
|
|
57
|
+
payment_type_id?: number;
|
|
58
|
+
header?: string;
|
|
59
|
+
footer?: string;
|
|
60
|
+
mwst_type?: number;
|
|
61
|
+
mwst_is_net?: boolean;
|
|
62
|
+
show_position_taxes?: boolean;
|
|
63
|
+
is_valid_from?: string;
|
|
64
|
+
is_valid_to?: string;
|
|
65
|
+
reference?: string | null;
|
|
66
|
+
api_reference?: string | null;
|
|
67
|
+
template_slug?: string;
|
|
68
|
+
positions: PositionStatic.PositionCreate[];
|
|
49
69
|
}
|
|
50
70
|
interface InvoiceOverwrite {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
71
|
+
title?: string | null;
|
|
72
|
+
contact_id?: number;
|
|
73
|
+
contact_sub_id?: number | null;
|
|
74
|
+
user_id?: number;
|
|
75
|
+
pr_project_id?: number | null;
|
|
76
|
+
logopaper_id?: number;
|
|
77
|
+
language_id?: number;
|
|
78
|
+
bank_account_id?: number;
|
|
79
|
+
currency_id?: number;
|
|
80
|
+
payment_type_id?: number;
|
|
81
|
+
header?: string;
|
|
82
|
+
footer?: string;
|
|
83
|
+
mwst_type?: number;
|
|
84
|
+
mwst_is_net?: boolean;
|
|
85
|
+
show_position_taxes?: boolean;
|
|
86
|
+
is_valid_from?: string;
|
|
87
|
+
is_valid_to?: string;
|
|
88
|
+
reference?: null;
|
|
89
|
+
api_reference?: null;
|
|
90
|
+
template_slug?: string;
|
|
91
|
+
positions: PositionStatic.PositionCreate[];
|
|
72
92
|
}
|
|
73
93
|
enum InvoiceSearchParameters {
|
|
74
94
|
id = "id",
|
|
@@ -88,13 +108,45 @@ export declare namespace InvoicesStatic {
|
|
|
88
108
|
updated_at = "updated_at"
|
|
89
109
|
}
|
|
90
110
|
interface InvoiceSent {
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
111
|
+
recipient_email: string;
|
|
112
|
+
subject: string;
|
|
113
|
+
message: string;
|
|
114
|
+
mark_as_open: boolean;
|
|
115
|
+
attach_pdf?: boolean;
|
|
96
116
|
}
|
|
97
117
|
interface InvoiceSentAnswer {
|
|
98
|
-
|
|
118
|
+
success: boolean;
|
|
119
|
+
}
|
|
120
|
+
interface Payment {
|
|
121
|
+
id: number;
|
|
122
|
+
date: string;
|
|
123
|
+
value: string;
|
|
124
|
+
bank_account_id?: number | null;
|
|
125
|
+
title?: string | null;
|
|
126
|
+
payment_service_id?: number | null;
|
|
127
|
+
is_client_account_redemption: boolean;
|
|
128
|
+
is_cash_discount: boolean;
|
|
129
|
+
kb_invoice_id?: number | null;
|
|
130
|
+
kb_credit_voucher_id?: number | null;
|
|
131
|
+
kb_bill_id?: number | null;
|
|
132
|
+
kb_credit_voucher_text?: number | null;
|
|
133
|
+
}
|
|
134
|
+
enum KB_ITEM_STATUS {
|
|
135
|
+
Draft = 7,
|
|
136
|
+
Pending = 8,
|
|
137
|
+
Paid = 9,
|
|
138
|
+
Partial = 16,
|
|
139
|
+
Canceled = 19,
|
|
140
|
+
Unpaid = 31
|
|
141
|
+
}
|
|
142
|
+
enum MWST_TYPE {
|
|
143
|
+
INCLUDING_TAXES = 0,
|
|
144
|
+
EXCLUDING_TAXES = 1,
|
|
145
|
+
EXEMPT_FROM_TAXES = 2
|
|
146
|
+
}
|
|
147
|
+
enum PAYMENT_SERVICE {
|
|
148
|
+
PAYPAL = 1,
|
|
149
|
+
STRIPE = 2,
|
|
150
|
+
SIX_PAYMENTS = 3
|
|
99
151
|
}
|
|
100
152
|
}
|
|
@@ -21,5 +21,26 @@ var InvoicesStatic;
|
|
|
21
21
|
InvoiceSearchParameters["is_valid_to"] = "is_valid_to";
|
|
22
22
|
InvoiceSearchParameters["updated_at"] = "updated_at";
|
|
23
23
|
})(InvoiceSearchParameters = InvoicesStatic.InvoiceSearchParameters || (InvoicesStatic.InvoiceSearchParameters = {}));
|
|
24
|
+
let KB_ITEM_STATUS;
|
|
25
|
+
(function (KB_ITEM_STATUS) {
|
|
26
|
+
KB_ITEM_STATUS[KB_ITEM_STATUS["Draft"] = 7] = "Draft";
|
|
27
|
+
KB_ITEM_STATUS[KB_ITEM_STATUS["Pending"] = 8] = "Pending";
|
|
28
|
+
KB_ITEM_STATUS[KB_ITEM_STATUS["Paid"] = 9] = "Paid";
|
|
29
|
+
KB_ITEM_STATUS[KB_ITEM_STATUS["Partial"] = 16] = "Partial";
|
|
30
|
+
KB_ITEM_STATUS[KB_ITEM_STATUS["Canceled"] = 19] = "Canceled";
|
|
31
|
+
KB_ITEM_STATUS[KB_ITEM_STATUS["Unpaid"] = 31] = "Unpaid";
|
|
32
|
+
})(KB_ITEM_STATUS = InvoicesStatic.KB_ITEM_STATUS || (InvoicesStatic.KB_ITEM_STATUS = {}));
|
|
33
|
+
let MWST_TYPE;
|
|
34
|
+
(function (MWST_TYPE) {
|
|
35
|
+
MWST_TYPE[MWST_TYPE["INCLUDING_TAXES"] = 0] = "INCLUDING_TAXES";
|
|
36
|
+
MWST_TYPE[MWST_TYPE["EXCLUDING_TAXES"] = 1] = "EXCLUDING_TAXES";
|
|
37
|
+
MWST_TYPE[MWST_TYPE["EXEMPT_FROM_TAXES"] = 2] = "EXEMPT_FROM_TAXES";
|
|
38
|
+
})(MWST_TYPE = InvoicesStatic.MWST_TYPE || (InvoicesStatic.MWST_TYPE = {}));
|
|
39
|
+
let PAYMENT_SERVICE;
|
|
40
|
+
(function (PAYMENT_SERVICE) {
|
|
41
|
+
PAYMENT_SERVICE[PAYMENT_SERVICE["PAYPAL"] = 1] = "PAYPAL";
|
|
42
|
+
PAYMENT_SERVICE[PAYMENT_SERVICE["STRIPE"] = 2] = "STRIPE";
|
|
43
|
+
PAYMENT_SERVICE[PAYMENT_SERVICE["SIX_PAYMENTS"] = 3] = "SIX_PAYMENTS";
|
|
44
|
+
})(PAYMENT_SERVICE = InvoicesStatic.PAYMENT_SERVICE || (InvoicesStatic.PAYMENT_SERVICE = {}));
|
|
24
45
|
})(InvoicesStatic || (exports.InvoicesStatic = InvoicesStatic = {}));
|
|
25
46
|
//# sourceMappingURL=InvoicesStatic.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InvoicesStatic.js","sourceRoot":"","sources":["../../src/interfaces/InvoicesStatic.ts"],"names":[],"mappings":";;;AAEA,IAAiB,cAAc,
|
|
1
|
+
{"version":3,"file":"InvoicesStatic.js","sourceRoot":"","sources":["../../src/interfaces/InvoicesStatic.ts"],"names":[],"mappings":";;;AAEA,IAAiB,cAAc,CA6J9B;AA7JD,WAAiB,cAAc;IA6F7B,IAAY,uBAgBX;IAhBD,WAAY,uBAAuB;QACjC,oCAAS,CAAA;QACT,kEAAuC,CAAA;QACvC,sDAA2B,CAAA;QAC3B,0CAAe,CAAA;QACf,0DAA+B,CAAA;QAC/B,oDAAyB,CAAA;QACzB,4DAAiC,CAAA;QACjC,8CAAmB,CAAA;QACnB,sDAA2B,CAAA;QAC3B,sDAA2B,CAAA;QAC3B,kDAAuB,CAAA;QACvB,0CAAe,CAAA;QACf,0DAA+B,CAAA;QAC/B,sDAA2B,CAAA;QAC3B,oDAAyB,CAAA;IAC3B,CAAC,EAhBW,uBAAuB,GAAvB,sCAAuB,KAAvB,sCAAuB,QAgBlC;IA4BD,IAAY,cAOX;IAPD,WAAY,cAAc;QACxB,qDAAS,CAAA;QACT,yDAAW,CAAA;QACX,mDAAQ,CAAA;QACR,0DAAY,CAAA;QACZ,4DAAa,CAAA;QACb,wDAAW,CAAA;IACb,CAAC,EAPW,cAAc,GAAd,6BAAc,KAAd,6BAAc,QAOzB;IAED,IAAY,SAIX;IAJD,WAAY,SAAS;QACnB,+DAAmB,CAAA;QACnB,+DAAmB,CAAA;QACnB,mEAAqB,CAAA;IACvB,CAAC,EAJW,SAAS,GAAT,wBAAS,KAAT,wBAAS,QAIpB;IAED,IAAY,eAIX;IAJD,WAAY,eAAe;QACzB,yDAAU,CAAA;QACV,yDAAU,CAAA;QACV,qEAAgB,CAAA;IAClB,CAAC,EAJW,eAAe,GAAf,8BAAe,KAAf,8BAAe,QAI1B;AACH,CAAC,EA7JgB,cAAc,8BAAd,cAAc,QA6J9B"}
|
|
@@ -15,7 +15,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
15
15
|
const axios_1 = __importDefault(require("axios"));
|
|
16
16
|
class BaseCrud {
|
|
17
17
|
constructor(apiToken, apiEndpoint) {
|
|
18
|
-
this.baseApiUrl = "https://api.bexio.com
|
|
18
|
+
this.baseApiUrl = "https://api.bexio.com";
|
|
19
19
|
this.apiToken = apiToken;
|
|
20
20
|
this.apiEndpoint = apiEndpoint;
|
|
21
21
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseCrud.js","sourceRoot":"","sources":["../../src/resources/BaseCrud.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AACA,kDAA8D;AAE9D,MAAqB,QAAQ;IAY3B,YAAY,QAAgB,EAAE,WAAmB;QAFvC,eAAU,GAAW,
|
|
1
|
+
{"version":3,"file":"BaseCrud.js","sourceRoot":"","sources":["../../src/resources/BaseCrud.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AACA,kDAA8D;AAE9D,MAAqB,QAAQ;IAY3B,YAAY,QAAgB,EAAE,WAAmB;QAFvC,eAAU,GAAW,uBAAuB,CAAC;QAGrD,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;IACjC,CAAC;IAED;;;;;;OAMG;IACU,IAAI,CAAC,OAAgC;;YAChD,OAAO,IAAI,CAAC,OAAO,CAAe,KAAK,EAAE,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;QACtE,CAAC;KAAA;IAED;;;;;;;OAOG;IACU,MAAM,CACjB,aAA4D,EAC5D,OAAgC;;YAEhC,OAAO,IAAI,CAAC,OAAO,CACjB,MAAM,EACN,IAAI,CAAC,WAAW,GAAG,SAAS,EAC5B,OAAO,EACP,aAAa,CACd,CAAC;QACJ,CAAC;KAAA;IAED;;;;;;;OAOG;IACU,IAAI,CACf,EAAU,EACV,OAAgC;;YAEhC,OAAO,IAAI,CAAC,OAAO,CAAO,KAAK,EAAE,IAAI,CAAC,WAAW,GAAG,GAAG,GAAG,EAAE,EAAE,OAAO,CAAC,CAAC;QACzE,CAAC;KAAA;IAED;;;;;;OAMG;IACU,MAAM,CAAC,SAAiB;;YACnC,OAAO,IAAI,CAAC,OAAO,CAAO,MAAM,EAAE,IAAI,CAAC,WAAW,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC;QAC5E,CAAC;KAAA;IAED;;;;;;;OAOG;IACU,SAAS,CAAC,EAAU,EAAE,SAAoB;;YACrD,OAAO,IAAI,CAAC,OAAO,CACjB,KAAK,EACL,IAAI,CAAC,WAAW,GAAG,GAAG,GAAG,EAAE,EAC3B,SAAS,EACT,SAAS,CACV,CAAC;QACJ,CAAC;KAAA;IAED;;;;;;;OAOG;IACU,IAAI,CAAC,EAAU,EAAE,SAA6B;;YACzD,OAAO,IAAI,CAAC,OAAO,CACjB,MAAM,EACN,IAAI,CAAC,WAAW,GAAG,GAAG,GAAG,EAAE,EAC3B,SAAS,EACT,SAAS,CACV,CAAC;QACJ,CAAC;KAAA;IAED;;;;;;OAMG;IACU,MAAM,CAAC,EAAU;;YAC5B,OAAO,CACL,MAAM,IAAI,CAAC,OAAO,CAChB,QAAQ,EACR,IAAI,CAAC,WAAW,GAAG,GAAG,GAAG,EAAE,CAC5B,CACF,CAAC,OAAO,CAAC;QACZ,CAAC;KAAA;IAED;;;;;;;;;;;OAWG;IACa,OAAO,CACrB,MAoBY,EACZ,IAAY,EACZ,OAAgC,EAChC,IAAU;;;YAEV,IAAI,cAAc,GAAuB;gBACvC,MAAM,EAAE,MAAM;gBACd,GAAG,EAAE,IAAI,CAAC,UAAU,GAAG,IAAI,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,CAAC;gBAC1D,OAAO,EAAE;oBACP,aAAa,EAAE,UAAU,IAAI,CAAC,QAAQ,EAAE;oBACxC,cAAc,EAAE,kBAAkB;oBAClC,MAAM,EAAE,kBAAkB;iBAC3B;aACF,CAAC;YAEF,IAAI,IAAI,EAAE,CAAC;gBACT,YAAY;gBACZ,cAAc,CAAC,IAAI,GAAG,IAAI,CAAC;YAC7B,CAAC;YAED,IAAI,CAAC;gBACH,MAAM,OAAO,GAAG,MAAM,eAAK,CAAC,OAAO,CAAC,cAAc,CAAC,CAAC;gBACpD,OAAO,OAAO,CAAC,IAAI,CAAC;YACtB,CAAC;YAAC,OAAO,CAAC,EAAE,CAAC;gBACX,MAAM,KAAK,GAAG,CAAe,CAAC;gBAC9B,OAAO,OAAO,CAAC,MAAM,CAAC;oBACpB,IAAI,EAAE,MAAA,KAAK,CAAC,QAAQ,0CAAE,MAAM;oBAC5B,OAAO,EAAE,MAAA,KAAK,CAAC,QAAQ,0CAAE,IAAI;iBAC9B,CAAC,CAAC;YACL,CAAC;QACH,CAAC;KAAA;IAED;;;;;;;OAOG;IACO,cAAc,CAAC,OAAgC;QACvD,IAAI,GAAG,GAAG,EAAE,CAAC;QACb,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,EAAE,CAAC;QACZ,CAAC;QAED,KAAK,IAAI,CAAC,IAAI,OAAO,EAAE,CAAC;YACtB,IAAI,OAAO,CAAC,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC;gBAC9B,GAAG,CAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,kBAAkB,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YACzE,CAAC;QACH,CAAC;QAED,OAAO,IAAI,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;IAC7B,CAAC;CACF;AAnND,2BAmNC"}
|
package/lib/resources/Bills.js
CHANGED
|
@@ -16,7 +16,7 @@ const BaseCrud_1 = __importDefault(require("./BaseCrud"));
|
|
|
16
16
|
const Payments_1 = __importDefault(require("./Payments"));
|
|
17
17
|
class Bills extends BaseCrud_1.default {
|
|
18
18
|
constructor(apiToken) {
|
|
19
|
-
super(apiToken, "/kb_bill");
|
|
19
|
+
super(apiToken, "/2.0/kb_bill");
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
22
22
|
* issue a bill
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Bills.js","sourceRoot":"","sources":["../../src/resources/Bills.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AACA,0DAAkC;AAClC,0DAAkC;AAIlC,MAAqB,KAAM,SAAQ,kBAOlC;IACC,YAAY,QAAgB;QAC1B,KAAK,CAAC,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"Bills.js","sourceRoot":"","sources":["../../src/resources/Bills.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AACA,0DAAkC;AAClC,0DAAkC;AAIlC,MAAqB,KAAM,SAAQ,kBAOlC;IACC,YAAY,QAAgB;QAC1B,KAAK,CAAC,QAAQ,EAAE,cAAc,CAAC,CAAC;IAClC,CAAC;IAED;;;;;;OAMG;IACU,KAAK,CAAC,EAAU;;YAC3B,OAAO,IAAI,CAAC,OAAO,CACjB,MAAM,EACN,GAAG,IAAI,CAAC,WAAW,IAAI,EAAE,CAAC,QAAQ,EAAE,QAAQ,CAC7C,CAAC;QACJ,CAAC;KAAA;IAED;;;;;;OAMG;IACU,WAAW,CAAC,EAAU;;YACjC,OAAO,IAAI,CAAC,OAAO,CACjB,MAAM,EACN,GAAG,IAAI,CAAC,WAAW,IAAI,EAAE,CAAC,QAAQ,EAAE,eAAe,CACpD,CAAC;QACJ,CAAC;KAAA;IAED;;;;;;;OAOG;IACU,YAAY,CACvB,MAAc,EACd,OAAgC;;YAEhC,MAAM,WAAW,GAAG,IAAI,kBAAQ,CAAC,IAAI,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;YACxD,OAAO,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACnC,CAAC;KAAA;IAED;;;;;;;;OAQG;IACU,WAAW,CACtB,MAAc,EACd,SAAiB,EACjB,OAAgC;;YAEhC,MAAM,WAAW,GAAG,IAAI,kBAAQ,CAAC,IAAI,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;YACxD,OAAO,WAAW,CAAC,IAAI,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;QAC9C,CAAC;KAAA;IAED;;;;;;;OAOG;IACU,aAAa,CACxB,MAAc,EACd,OAAqC;;YAErC,MAAM,WAAW,GAAG,IAAI,kBAAQ,CAAC,IAAI,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;YACxD,OAAO,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QACrC,CAAC;KAAA;IAED;;;;;;;OAOG;IACU,aAAa,CACxB,MAAc,EACd,SAAiB;;YAEjB,MAAM,WAAW,GAAG,IAAI,kBAAQ,CAAC,IAAI,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;YACxD,OAAO,WAAW,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;QACvC,CAAC;KAAA;CACF;AAzGD,wBAyGC"}
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
const BaseCrud_1 = __importDefault(require("./BaseCrud"));
|
|
7
7
|
class ClientServices extends BaseCrud_1.default {
|
|
8
8
|
constructor(apiToken) {
|
|
9
|
-
super(apiToken, "/client_service");
|
|
9
|
+
super(apiToken, "/2.0/client_service");
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
exports.default = ClientServices;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BusinessActivities.js","sourceRoot":"","sources":["../../src/resources/BusinessActivities.ts"],"names":[],"mappings":";;;;;AACA,0DAAkC;AAElC,MAAqB,cAAe,SAAQ,kBAO3C;IACC,YAAY,QAAgB;QAC1B,KAAK,CAAC,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"BusinessActivities.js","sourceRoot":"","sources":["../../src/resources/BusinessActivities.ts"],"names":[],"mappings":";;;;;AACA,0DAAkC;AAElC,MAAqB,cAAe,SAAQ,kBAO3C;IACC,YAAY,QAAgB;QAC1B,KAAK,CAAC,QAAQ,EAAE,qBAAqB,CAAC,CAAC;IACzC,CAAC;CACF;AAXD,iCAWC"}
|