bexio 3.8.0 → 4.0.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 (277) hide show
  1. package/coverage/index.html +18 -18
  2. package/jest-html-reporters-attach/jest_html_reporters/result.js +1 -1
  3. package/junit.xml +185 -179
  4. package/lib/index.d.mts +2908 -0
  5. package/lib/index.d.ts +2879 -55
  6. package/lib/index.js +2045 -100
  7. package/lib/index.js.map +1 -1
  8. package/lib/index.mjs +1990 -0
  9. package/lib/index.mjs.map +1 -0
  10. package/package.json +20 -4
  11. package/lib/interfaces/AccountsStatic.d.ts +0 -14
  12. package/lib/interfaces/AccountsStatic.js +0 -3
  13. package/lib/interfaces/AccountsStatic.js.map +0 -1
  14. package/lib/interfaces/BankAccountsStatic.d.ts +0 -25
  15. package/lib/interfaces/BankAccountsStatic.js +0 -3
  16. package/lib/interfaces/BankAccountsStatic.js.map +0 -1
  17. package/lib/interfaces/BaseStatic.d.ts +0 -20
  18. package/lib/interfaces/BaseStatic.js +0 -3
  19. package/lib/interfaces/BaseStatic.js.map +0 -1
  20. package/lib/interfaces/BillsStatic.d.ts +0 -167
  21. package/lib/interfaces/BillsStatic.js +0 -25
  22. package/lib/interfaces/BillsStatic.js.map +0 -1
  23. package/lib/interfaces/BillsV4Static.d.ts +0 -204
  24. package/lib/interfaces/BillsV4Static.js +0 -60
  25. package/lib/interfaces/BillsV4Static.js.map +0 -1
  26. package/lib/interfaces/BusinessActivitiesStatic.d.ts +0 -24
  27. package/lib/interfaces/BusinessActivitiesStatic.js +0 -11
  28. package/lib/interfaces/BusinessActivitiesStatic.js.map +0 -1
  29. package/lib/interfaces/CalendarStatic.d.ts +0 -30
  30. package/lib/interfaces/CalendarStatic.js +0 -18
  31. package/lib/interfaces/CalendarStatic.js.map +0 -1
  32. package/lib/interfaces/ContactGroupsStatic.d.ts +0 -12
  33. package/lib/interfaces/ContactGroupsStatic.js +0 -11
  34. package/lib/interfaces/ContactGroupsStatic.js.map +0 -1
  35. package/lib/interfaces/ContactRelationsStatic.d.ts +0 -24
  36. package/lib/interfaces/ContactRelationsStatic.js +0 -13
  37. package/lib/interfaces/ContactRelationsStatic.js.map +0 -1
  38. package/lib/interfaces/ContactSectorsStatic.d.ts +0 -9
  39. package/lib/interfaces/ContactSectorsStatic.js +0 -11
  40. package/lib/interfaces/ContactSectorsStatic.js.map +0 -1
  41. package/lib/interfaces/ContactTypesStatic.d.ts +0 -9
  42. package/lib/interfaces/ContactTypesStatic.js +0 -11
  43. package/lib/interfaces/ContactTypesStatic.js.map +0 -1
  44. package/lib/interfaces/ContactsStatic.d.ts +0 -118
  45. package/lib/interfaces/ContactsStatic.js +0 -27
  46. package/lib/interfaces/ContactsStatic.js.map +0 -1
  47. package/lib/interfaces/CurrenciesStatic.d.ts +0 -20
  48. package/lib/interfaces/CurrenciesStatic.js +0 -3
  49. package/lib/interfaces/CurrenciesStatic.js.map +0 -1
  50. package/lib/interfaces/ExpensesStatic.d.ts +0 -83
  51. package/lib/interfaces/ExpensesStatic.js +0 -25
  52. package/lib/interfaces/ExpensesStatic.js.map +0 -1
  53. package/lib/interfaces/InvoicesStatic.d.ts +0 -162
  54. package/lib/interfaces/InvoicesStatic.js +0 -46
  55. package/lib/interfaces/InvoicesStatic.js.map +0 -1
  56. package/lib/interfaces/ItemsStatic.d.ts +0 -120
  57. package/lib/interfaces/ItemsStatic.js +0 -47
  58. package/lib/interfaces/ItemsStatic.js.map +0 -1
  59. package/lib/interfaces/ManualEntriesStatic.d.ts +0 -42
  60. package/lib/interfaces/ManualEntriesStatic.js +0 -3
  61. package/lib/interfaces/ManualEntriesStatic.js.map +0 -1
  62. package/lib/interfaces/NotesStatic.d.ts +0 -23
  63. package/lib/interfaces/NotesStatic.js +0 -16
  64. package/lib/interfaces/NotesStatic.js.map +0 -1
  65. package/lib/interfaces/OrdersStatic.d.ts +0 -117
  66. package/lib/interfaces/OrdersStatic.js +0 -25
  67. package/lib/interfaces/OrdersStatic.js.map +0 -1
  68. package/lib/interfaces/OutgoingPaymentsStatic.d.ts +0 -142
  69. package/lib/interfaces/OutgoingPaymentsStatic.js +0 -39
  70. package/lib/interfaces/OutgoingPaymentsStatic.js.map +0 -1
  71. package/lib/interfaces/PaymentsStatic.d.ts +0 -22
  72. package/lib/interfaces/PaymentsStatic.js +0 -3
  73. package/lib/interfaces/PaymentsStatic.js.map +0 -1
  74. package/lib/interfaces/PositionStatic.d.ts +0 -35
  75. package/lib/interfaces/PositionStatic.js +0 -3
  76. package/lib/interfaces/PositionStatic.js.map +0 -1
  77. package/lib/interfaces/PositionsStatic.d.ts +0 -46
  78. package/lib/interfaces/PositionsStatic.js +0 -3
  79. package/lib/interfaces/PositionsStatic.js.map +0 -1
  80. package/lib/interfaces/ProjectStatusesStatic.d.ts +0 -9
  81. package/lib/interfaces/ProjectStatusesStatic.js +0 -11
  82. package/lib/interfaces/ProjectStatusesStatic.js.map +0 -1
  83. package/lib/interfaces/ProjectTypesStatic.d.ts +0 -9
  84. package/lib/interfaces/ProjectTypesStatic.js +0 -11
  85. package/lib/interfaces/ProjectTypesStatic.js.map +0 -1
  86. package/lib/interfaces/ProjectsStatic.d.ts +0 -55
  87. package/lib/interfaces/ProjectsStatic.js +0 -13
  88. package/lib/interfaces/ProjectsStatic.js.map +0 -1
  89. package/lib/interfaces/SalesOrderManagementStatic.d.ts +0 -289
  90. package/lib/interfaces/SalesOrderManagementStatic.js +0 -69
  91. package/lib/interfaces/SalesOrderManagementStatic.js.map +0 -1
  92. package/lib/interfaces/TaxesStatic.d.ts +0 -31
  93. package/lib/interfaces/TaxesStatic.js +0 -3
  94. package/lib/interfaces/TaxesStatic.js.map +0 -1
  95. package/lib/interfaces/TimetrackingStatusesStatic.d.ts +0 -9
  96. package/lib/interfaces/TimetrackingStatusesStatic.js +0 -11
  97. package/lib/interfaces/TimetrackingStatusesStatic.js.map +0 -1
  98. package/lib/interfaces/TimetrackingsStatic.d.ts +0 -69
  99. package/lib/interfaces/TimetrackingsStatic.js +0 -16
  100. package/lib/interfaces/TimetrackingsStatic.js.map +0 -1
  101. package/lib/interfaces/UsersStatic.d.ts +0 -23
  102. package/lib/interfaces/UsersStatic.js +0 -15
  103. package/lib/interfaces/UsersStatic.js.map +0 -1
  104. package/lib/resources/Accounts.d.ts +0 -49
  105. package/lib/resources/Accounts.js +0 -85
  106. package/lib/resources/Accounts.js.map +0 -1
  107. package/lib/resources/BankAccounts.d.ts +0 -49
  108. package/lib/resources/BankAccounts.js +0 -85
  109. package/lib/resources/BankAccounts.js.map +0 -1
  110. package/lib/resources/BaseCrud.d.ts +0 -89
  111. package/lib/resources/BaseCrud.js +0 -181
  112. package/lib/resources/BaseCrud.js.map +0 -1
  113. package/lib/resources/Bills.d.ts +0 -67
  114. package/lib/resources/Bills.js +0 -107
  115. package/lib/resources/Bills.js.map +0 -1
  116. package/lib/resources/BillsV4.d.ts +0 -52
  117. package/lib/resources/BillsV4.js +0 -86
  118. package/lib/resources/BillsV4.js.map +0 -1
  119. package/lib/resources/BusinessActivities.d.ts +0 -5
  120. package/lib/resources/BusinessActivities.js +0 -13
  121. package/lib/resources/BusinessActivities.js.map +0 -1
  122. package/lib/resources/ContactGroups.d.ts +0 -13
  123. package/lib/resources/ContactGroups.js +0 -34
  124. package/lib/resources/ContactGroups.js.map +0 -1
  125. package/lib/resources/ContactRelations.d.ts +0 -5
  126. package/lib/resources/ContactRelations.js +0 -13
  127. package/lib/resources/ContactRelations.js.map +0 -1
  128. package/lib/resources/ContactSectors.d.ts +0 -39
  129. package/lib/resources/ContactSectors.js +0 -72
  130. package/lib/resources/ContactSectors.js.map +0 -1
  131. package/lib/resources/ContactTypes.d.ts +0 -39
  132. package/lib/resources/ContactTypes.js +0 -72
  133. package/lib/resources/ContactTypes.js.map +0 -1
  134. package/lib/resources/Contacts.d.ts +0 -5
  135. package/lib/resources/Contacts.js +0 -13
  136. package/lib/resources/Contacts.js.map +0 -1
  137. package/lib/resources/Currencies.d.ts +0 -33
  138. package/lib/resources/Currencies.js +0 -61
  139. package/lib/resources/Currencies.js.map +0 -1
  140. package/lib/resources/DefaultPositions.d.ts +0 -33
  141. package/lib/resources/DefaultPositions.js +0 -61
  142. package/lib/resources/DefaultPositions.js.map +0 -1
  143. package/lib/resources/Expenses.d.ts +0 -5
  144. package/lib/resources/Expenses.js +0 -13
  145. package/lib/resources/Expenses.js.map +0 -1
  146. package/lib/resources/Invoices.d.ts +0 -103
  147. package/lib/resources/Invoices.js +0 -175
  148. package/lib/resources/Invoices.js.map +0 -1
  149. package/lib/resources/ItemPositions.d.ts +0 -33
  150. package/lib/resources/ItemPositions.js +0 -61
  151. package/lib/resources/ItemPositions.js.map +0 -1
  152. package/lib/resources/Items.d.ts +0 -5
  153. package/lib/resources/Items.js +0 -13
  154. package/lib/resources/Items.js.map +0 -1
  155. package/lib/resources/ManualEntries.d.ts +0 -50
  156. package/lib/resources/ManualEntries.js +0 -84
  157. package/lib/resources/ManualEntries.js.map +0 -1
  158. package/lib/resources/Orders.d.ts +0 -33
  159. package/lib/resources/Orders.js +0 -64
  160. package/lib/resources/Orders.js.map +0 -1
  161. package/lib/resources/OutgoingPayments.d.ts +0 -63
  162. package/lib/resources/OutgoingPayments.js +0 -117
  163. package/lib/resources/OutgoingPayments.js.map +0 -1
  164. package/lib/resources/Payments.d.ts +0 -36
  165. package/lib/resources/Payments.js +0 -64
  166. package/lib/resources/Payments.js.map +0 -1
  167. package/lib/resources/ProjectStatuses.d.ts +0 -39
  168. package/lib/resources/ProjectStatuses.js +0 -72
  169. package/lib/resources/ProjectStatuses.js.map +0 -1
  170. package/lib/resources/ProjectTypes.d.ts +0 -39
  171. package/lib/resources/ProjectTypes.js +0 -72
  172. package/lib/resources/ProjectTypes.js.map +0 -1
  173. package/lib/resources/Projects.d.ts +0 -5
  174. package/lib/resources/Projects.js +0 -13
  175. package/lib/resources/Projects.js.map +0 -1
  176. package/lib/resources/Taxes.d.ts +0 -30
  177. package/lib/resources/Taxes.js +0 -70
  178. package/lib/resources/Taxes.js.map +0 -1
  179. package/lib/resources/TextPositions.d.ts +0 -33
  180. package/lib/resources/TextPositions.js +0 -61
  181. package/lib/resources/TextPositions.js.map +0 -1
  182. package/lib/resources/TimetrackingStatuses.d.ts +0 -39
  183. package/lib/resources/TimetrackingStatuses.js +0 -72
  184. package/lib/resources/TimetrackingStatuses.js.map +0 -1
  185. package/lib/resources/Timetrackings.d.ts +0 -14
  186. package/lib/resources/Timetrackings.js +0 -35
  187. package/lib/resources/Timetrackings.js.map +0 -1
  188. package/lib/resources/Users.d.ts +0 -39
  189. package/lib/resources/Users.js +0 -72
  190. package/lib/resources/Users.js.map +0 -1
  191. package/lib/tests/Accounts.test.d.ts +0 -1
  192. package/lib/tests/Accounts.test.js +0 -86
  193. package/lib/tests/Accounts.test.js.map +0 -1
  194. package/lib/tests/BankAccounts.test.d.ts +0 -1
  195. package/lib/tests/BankAccounts.test.js +0 -86
  196. package/lib/tests/BankAccounts.test.js.map +0 -1
  197. package/lib/tests/BaseCrud.test.d.ts +0 -1
  198. package/lib/tests/BaseCrud.test.js +0 -302
  199. package/lib/tests/BaseCrud.test.js.map +0 -1
  200. package/lib/tests/Bills.test.d.ts +0 -1
  201. package/lib/tests/Bills.test.js +0 -110
  202. package/lib/tests/Bills.test.js.map +0 -1
  203. package/lib/tests/BillsV4.test.d.ts +0 -1
  204. package/lib/tests/BillsV4.test.js +0 -134
  205. package/lib/tests/BillsV4.test.js.map +0 -1
  206. package/lib/tests/BusinessActivities.test.d.ts +0 -1
  207. package/lib/tests/BusinessActivities.test.js +0 -21
  208. package/lib/tests/BusinessActivities.test.js.map +0 -1
  209. package/lib/tests/ContactGroups.test.d.ts +0 -1
  210. package/lib/tests/ContactGroups.test.js +0 -21
  211. package/lib/tests/ContactGroups.test.js.map +0 -1
  212. package/lib/tests/ContactRelations.test.d.ts +0 -1
  213. package/lib/tests/ContactRelations.test.js +0 -21
  214. package/lib/tests/ContactRelations.test.js.map +0 -1
  215. package/lib/tests/ContactSectors.test.d.ts +0 -1
  216. package/lib/tests/ContactSectors.test.js +0 -21
  217. package/lib/tests/ContactSectors.test.js.map +0 -1
  218. package/lib/tests/ContactTypes.test.d.ts +0 -1
  219. package/lib/tests/ContactTypes.test.js +0 -21
  220. package/lib/tests/ContactTypes.test.js.map +0 -1
  221. package/lib/tests/Contacts.test.d.ts +0 -1
  222. package/lib/tests/Contacts.test.js +0 -21
  223. package/lib/tests/Contacts.test.js.map +0 -1
  224. package/lib/tests/Currencies.test.d.ts +0 -1
  225. package/lib/tests/Currencies.test.js +0 -21
  226. package/lib/tests/Currencies.test.js.map +0 -1
  227. package/lib/tests/DefaultPositions.test.d.ts +0 -1
  228. package/lib/tests/DefaultPositions.test.js +0 -22
  229. package/lib/tests/DefaultPositions.test.js.map +0 -1
  230. package/lib/tests/Expenses.test.d.ts +0 -1
  231. package/lib/tests/Expenses.test.js +0 -21
  232. package/lib/tests/Expenses.test.js.map +0 -1
  233. package/lib/tests/Invoices.test.d.ts +0 -1
  234. package/lib/tests/Invoices.test.js +0 -182
  235. package/lib/tests/Invoices.test.js.map +0 -1
  236. package/lib/tests/ItemPositions.test.d.ts +0 -1
  237. package/lib/tests/ItemPositions.test.js +0 -22
  238. package/lib/tests/ItemPositions.test.js.map +0 -1
  239. package/lib/tests/Items.test.d.ts +0 -1
  240. package/lib/tests/Items.test.js +0 -21
  241. package/lib/tests/Items.test.js.map +0 -1
  242. package/lib/tests/ManualEntries.test.d.ts +0 -1
  243. package/lib/tests/ManualEntries.test.js +0 -116
  244. package/lib/tests/ManualEntries.test.js.map +0 -1
  245. package/lib/tests/Orders.test.d.ts +0 -1
  246. package/lib/tests/Orders.test.js +0 -137
  247. package/lib/tests/Orders.test.js.map +0 -1
  248. package/lib/tests/OutgoingPayments.test.d.ts +0 -1
  249. package/lib/tests/OutgoingPayments.test.js +0 -125
  250. package/lib/tests/OutgoingPayments.test.js.map +0 -1
  251. package/lib/tests/Payments.test.d.ts +0 -1
  252. package/lib/tests/Payments.test.js +0 -22
  253. package/lib/tests/Payments.test.js.map +0 -1
  254. package/lib/tests/ProjectStatuses.test.d.ts +0 -1
  255. package/lib/tests/ProjectStatuses.test.js +0 -21
  256. package/lib/tests/ProjectStatuses.test.js.map +0 -1
  257. package/lib/tests/ProjectTypes.test.d.ts +0 -1
  258. package/lib/tests/ProjectTypes.test.js +0 -21
  259. package/lib/tests/ProjectTypes.test.js.map +0 -1
  260. package/lib/tests/Projects.test.d.ts +0 -1
  261. package/lib/tests/Projects.test.js +0 -21
  262. package/lib/tests/Projects.test.js.map +0 -1
  263. package/lib/tests/Taxes.test.d.ts +0 -1
  264. package/lib/tests/Taxes.test.js +0 -107
  265. package/lib/tests/Taxes.test.js.map +0 -1
  266. package/lib/tests/TextPositions.test.d.ts +0 -1
  267. package/lib/tests/TextPositions.test.js +0 -22
  268. package/lib/tests/TextPositions.test.js.map +0 -1
  269. package/lib/tests/TimetrackingStatuses.test.d.ts +0 -1
  270. package/lib/tests/TimetrackingStatuses.test.js +0 -21
  271. package/lib/tests/TimetrackingStatuses.test.js.map +0 -1
  272. package/lib/tests/Timetrackings.test.d.ts +0 -1
  273. package/lib/tests/Timetrackings.test.js +0 -21
  274. package/lib/tests/Timetrackings.test.js.map +0 -1
  275. package/lib/tests/Users.test.d.ts +0 -1
  276. package/lib/tests/Users.test.js +0 -21
  277. package/lib/tests/Users.test.js.map +0 -1
@@ -1,61 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- var __importDefault = (this && this.__importDefault) || function (mod) {
12
- return (mod && mod.__esModule) ? mod : { "default": mod };
13
- };
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- const BaseCrud_1 = __importDefault(require("./BaseCrud"));
16
- class Currencies extends BaseCrud_1.default {
17
- constructor(apiToken) {
18
- super(apiToken, `/3.0/currencies`);
19
- }
20
- /**
21
- * NOT IMPLEMENTED BY BEXIO YET
22
- *
23
- * @param {Array<BaseStatic.SearchParameter<{}>>} searchOptions
24
- * @param {BaseStatic.BaseOptions} [options]
25
- * @returns {Promise<Array<{}>>}
26
- * @memberof Currencies
27
- */
28
- search(searchOptions, options) {
29
- return __awaiter(this, void 0, void 0, function* () {
30
- throw new Error("not implemented by Bexio yet");
31
- });
32
- }
33
- /**
34
- * NOT IMPLEMENTED BY BEXIO YET
35
- *
36
- * @param {number} id
37
- * @param {Overwrite} ressource
38
- * @returns {Promise<{}>}
39
- * @memberof Currencies
40
- */
41
- overwrite(id, ressource) {
42
- return __awaiter(this, void 0, void 0, function* () {
43
- throw new Error("not implemented by Bexio yet");
44
- });
45
- }
46
- /**
47
- * NOT IMPLEMENTED BY BEXIO YET
48
- *
49
- * @param {number} id
50
- * @param {Partial<{}>} ressource
51
- * @returns {Promise<CurrenciesStatic.Currency>}
52
- * @memberof BaseCrud
53
- */
54
- edit(id, ressource) {
55
- return __awaiter(this, void 0, void 0, function* () {
56
- throw new Error("not implemented by Bexio yet");
57
- });
58
- }
59
- }
60
- exports.default = Currencies;
61
- //# sourceMappingURL=Currencies.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Currencies.js","sourceRoot":"","sources":["../../src/resources/Currencies.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,0DAAkC;AAIlC,MAAqB,UAAW,SAAQ,kBAQvC;IACC,YAAY,QAAgB;QAC1B,KAAK,CAAC,QAAQ,EAAE,iBAAiB,CAAC,CAAC;IACrC,CAAC;IAED;;;;;;;OAOG;IACU,MAAM,CACjB,aAAoD,EACpD,OAAgC;;YAEhC,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;KAAA;IAED;;;;;;;OAOG;IACU,SAAS,CACpB,EAAU,EACV,SAAoC;;YAEpC,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;KAAA;IAED;;;;;;;OAOG;IACU,IAAI,CACf,EAAU,EACV,SAAsB;;YAEtB,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;KAAA;CACF;AAzDD,6BAyDC"}
@@ -1,33 +0,0 @@
1
- import BaseCrud from "./BaseCrud";
2
- import { PositionsStatic } from "../interfaces/PositionsStatic";
3
- import { BaseStatic } from "../interfaces/BaseStatic";
4
- export default class DefaultPositions extends BaseCrud<PositionsStatic.DefaultPosition, PositionsStatic.DefaultPosition, {}, {}, PositionsStatic.DefaultPositionCreate, {}> {
5
- constructor(apiToken: string, documentType: PositionsStatic.KbDocumentType, documentId: number);
6
- /**
7
- * Not implemented by Bexio yet
8
- *
9
- * @param {Array<BaseStatic.SearchParameter<{}>>} searchOptions
10
- * @param {BaseStatic.BaseOptions} [options]
11
- * @returns {Promise<Array<{}>>}
12
- * @memberof DefaultPositions
13
- */
14
- search(searchOptions: Array<BaseStatic.SearchParameter<{}>>, options?: BaseStatic.BaseOptions): Promise<Array<{}>>;
15
- /**
16
- * Not implemented by Bexio yet
17
- *
18
- * @param {number} id
19
- * @param {{}} ressource
20
- * @returns {Promise<PositionsStatic.DefaultPosition>}
21
- * @memberof DefaultPositions
22
- */
23
- overwrite(id: number, ressource: {}): Promise<PositionsStatic.DefaultPosition>;
24
- /**
25
- * Not implemented by Bexio yet
26
- *
27
- * @param {number} id
28
- * @param {Partial<{}>} ressource
29
- * @returns {Promise<PositionsStatic.DefaultPosition>}
30
- * @memberof DefaultPositions
31
- */
32
- edit(id: number, ressource: Partial<{}>): Promise<PositionsStatic.DefaultPosition>;
33
- }
@@ -1,61 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- var __importDefault = (this && this.__importDefault) || function (mod) {
12
- return (mod && mod.__esModule) ? mod : { "default": mod };
13
- };
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- const BaseCrud_1 = __importDefault(require("./BaseCrud"));
16
- class DefaultPositions extends BaseCrud_1.default {
17
- constructor(apiToken, documentType, documentId) {
18
- super(apiToken, `/2.0/${documentType}/${documentId}/kb_position_custom`);
19
- }
20
- /**
21
- * Not implemented by Bexio yet
22
- *
23
- * @param {Array<BaseStatic.SearchParameter<{}>>} searchOptions
24
- * @param {BaseStatic.BaseOptions} [options]
25
- * @returns {Promise<Array<{}>>}
26
- * @memberof DefaultPositions
27
- */
28
- search(searchOptions, options) {
29
- return __awaiter(this, void 0, void 0, function* () {
30
- throw new Error("not implemented by Bexio yet");
31
- });
32
- }
33
- /**
34
- * Not implemented by Bexio yet
35
- *
36
- * @param {number} id
37
- * @param {{}} ressource
38
- * @returns {Promise<PositionsStatic.DefaultPosition>}
39
- * @memberof DefaultPositions
40
- */
41
- overwrite(id, ressource) {
42
- return __awaiter(this, void 0, void 0, function* () {
43
- throw new Error("not implemented by Bexio yet");
44
- });
45
- }
46
- /**
47
- * Not implemented by Bexio yet
48
- *
49
- * @param {number} id
50
- * @param {Partial<{}>} ressource
51
- * @returns {Promise<PositionsStatic.DefaultPosition>}
52
- * @memberof DefaultPositions
53
- */
54
- edit(id, ressource) {
55
- return __awaiter(this, void 0, void 0, function* () {
56
- throw new Error("not implemented by Bexio yet");
57
- });
58
- }
59
- }
60
- exports.default = DefaultPositions;
61
- //# sourceMappingURL=DefaultPositions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DefaultPositions.js","sourceRoot":"","sources":["../../src/resources/DefaultPositions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,0DAAkC;AAIlC,MAAqB,gBAAiB,SAAQ,kBAO7C;IACC,YACE,QAAgB,EAChB,YAA4C,EAC5C,UAAkB;QAElB,KAAK,CACH,QAAQ,EACR,QAAQ,YAAY,IAAI,UAAU,qBAAqB,CACxD,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACU,MAAM,CACjB,aAAoD,EACpD,OAAgC;;YAEhC,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;KAAA;IAED;;;;;;;OAOG;IACU,SAAS,CACpB,EAAU,EACV,SAAa;;YAEb,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;KAAA;IAED;;;;;;;OAOG;IACU,IAAI,CACf,EAAU,EACV,SAAsB;;YAEtB,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;KAAA;CACF;AA/DD,mCA+DC"}
@@ -1,5 +0,0 @@
1
- import BaseCrud from "./BaseCrud";
2
- import { ExpensesStatic } from "../interfaces/ExpensesStatic";
3
- export default class Expenses extends BaseCrud<ExpensesStatic.Expense, ExpensesStatic.Expense, ExpensesStatic.Expense, ExpensesStatic.SearchParameters, ExpensesStatic.ExpenseCreate, ExpensesStatic.ExpenseOverwrite> {
4
- constructor(apiToken: string);
5
- }
@@ -1,13 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const BaseCrud_1 = __importDefault(require("./BaseCrud"));
7
- class Expenses extends BaseCrud_1.default {
8
- constructor(apiToken) {
9
- super(apiToken, "/2.0/kb_expense");
10
- }
11
- }
12
- exports.default = Expenses;
13
- //# sourceMappingURL=Expenses.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Expenses.js","sourceRoot":"","sources":["../../src/resources/Expenses.ts"],"names":[],"mappings":";;;;;AAAA,0DAAkC;AAGlC,MAAqB,QAAS,SAAQ,kBAOrC;IACC,YAAY,QAAgB;QAC1B,KAAK,CAAC,QAAQ,EAAE,iBAAiB,CAAC,CAAC;IACrC,CAAC;CACF;AAXD,2BAWC"}
@@ -1,103 +0,0 @@
1
- import BaseCrud from "./BaseCrud";
2
- import { InvoicesStatic } from "../interfaces/InvoicesStatic";
3
- import { PositionsStatic } from "../interfaces/PositionsStatic";
4
- export default class Invoices extends BaseCrud<InvoicesStatic.Invoice, InvoicesStatic.Invoice, InvoicesStatic.Invoice, InvoicesStatic.InvoiceSearchParameters, InvoicesStatic.InvoiceCreate, InvoicesStatic.InvoiceOverwrite> {
5
- constructor(apiToken: string);
6
- /**
7
- * Send an invoice by email.
8
- *
9
- * @param {number} id
10
- * @param {Partial<InvoicesStatic.InvoiceSend>} ressource
11
- * @returns {Promise<InvoicesStatic.InvoiceSentAnswer>}
12
- * @memberof Invoices
13
- */
14
- send(id: number, ressource: Partial<InvoicesStatic.InvoiceSend>): Promise<InvoicesStatic.InvoiceSentAnswer>;
15
- /**
16
- * @deprecated Use `send` instead.
17
- */
18
- sent(id: number, ressource: Partial<InvoicesStatic.InvoiceSend>): Promise<InvoicesStatic.InvoiceSentAnswer>;
19
- cancel(id: number): Promise<InvoicesStatic.InvoiceCancelled>;
20
- /**
21
- * Issue an invoice. The invoice must be in the draft status.
22
- *
23
- * @param {number} id
24
- * @returns {Promise<InvoicesStatic.InvoiceIssued>}
25
- * @memberof Invoices
26
- */
27
- issue(id: number): Promise<InvoicesStatic.InvoiceIssued>;
28
- /**
29
- * Mark an invoice as sent.
30
- *
31
- * @param {number} id
32
- * @returns {Promise<InvoicesStatic.InvoiceSentAnswer>}
33
- * @memberof Invoices
34
- */
35
- markAsSent(id: number): Promise<InvoicesStatic.InvoiceSentAnswer>;
36
- /**
37
- * revert a Invoice issue
38
- *
39
- * @param {number} id
40
- * @returns {Promise<{ success: boolean }>}
41
- * @memberof Invoices
42
- */
43
- revertIssue(id: number): Promise<{
44
- success: boolean;
45
- }>;
46
- /**
47
- * Create a payment for an invoice
48
- *
49
- * @param {number} invoiceId
50
- * @param {Date} date
51
- * @param {string} value
52
- * @param {number} [bank_account_id]
53
- * @param {number} [payment_service_id]
54
- * @return {*} {Promise<InvoicesStatic.Payment>}
55
- * @memberof Invoices
56
- */
57
- createPayment(invoiceId: number, date: Date, value: string, bank_account_id?: number, payment_service_id?: number): Promise<InvoicesStatic.Payment>;
58
- /**
59
- * Get a payment for an invoice
60
- *
61
- * @param {number} invoiceId
62
- * @param {number} paymentId
63
- * @return {*} {Promise<InvoicesStatic.Payment>}
64
- * @memberof Invoices
65
- */
66
- getPayment(invoiceId: number, paymentId: number): Promise<InvoicesStatic.Payment>;
67
- /**
68
- * Delete a payment for an invoice
69
- *
70
- * @param {number} invoiceId
71
- * @param {number} paymentId
72
- * @return {*} {Promise<void>}
73
- * @memberof Invoices
74
- */
75
- deletePayment(invoiceId: number, paymentId: number): Promise<void>;
76
- /**
77
- * Create a default position for an invoice
78
- *
79
- * @param {number} invoiceId
80
- * @param {PositionsStatic.DefaultPositionCreate} position
81
- * @returns {Promise<PositionsStatic.DefaultPosition>}
82
- * @memberof Invoices
83
- */
84
- createDefaultPosition(invoiceId: number, position: PositionsStatic.DefaultPositionCreate): Promise<PositionsStatic.DefaultPosition>;
85
- /**
86
- * Create an item position for an invoice
87
- *
88
- * @param {number} invoiceId
89
- * @param {PositionsStatic.ItemPositionCreate} position
90
- * @returns {Promise<PositionsStatic.ItemPosition>}
91
- * @memberof Invoices
92
- */
93
- createItemPosition(invoiceId: number, position: PositionsStatic.ItemPositionCreate): Promise<PositionsStatic.ItemPosition>;
94
- /**
95
- * Create a text position for an invoice
96
- *
97
- * @param {number} invoiceId
98
- * @param {PositionsStatic.TextPositionCreate} position
99
- * @returns {Promise<PositionsStatic.TextPosition>}
100
- * @memberof Invoices
101
- */
102
- createTextPosition(invoiceId: number, position: PositionsStatic.TextPositionCreate): Promise<PositionsStatic.TextPosition>;
103
- }
@@ -1,175 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- var __importDefault = (this && this.__importDefault) || function (mod) {
12
- return (mod && mod.__esModule) ? mod : { "default": mod };
13
- };
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- const BaseCrud_1 = __importDefault(require("./BaseCrud"));
16
- const DefaultPositions_1 = __importDefault(require("./DefaultPositions"));
17
- const ItemPositions_1 = __importDefault(require("./ItemPositions"));
18
- const TextPositions_1 = __importDefault(require("./TextPositions"));
19
- class Invoices extends BaseCrud_1.default {
20
- constructor(apiToken) {
21
- super(apiToken, "/2.0/kb_invoice");
22
- }
23
- /**
24
- * Send an invoice by email.
25
- *
26
- * @param {number} id
27
- * @param {Partial<InvoicesStatic.InvoiceSend>} ressource
28
- * @returns {Promise<InvoicesStatic.InvoiceSentAnswer>}
29
- * @memberof Invoices
30
- */
31
- send(id, ressource) {
32
- return __awaiter(this, void 0, void 0, function* () {
33
- return this.request("POST", `${this.apiEndpoint}/${id}/send`, undefined, ressource);
34
- });
35
- }
36
- /**
37
- * @deprecated Use `send` instead.
38
- */
39
- sent(id, ressource) {
40
- return __awaiter(this, void 0, void 0, function* () {
41
- return this.send(id, ressource);
42
- });
43
- }
44
- cancel(id) {
45
- return __awaiter(this, void 0, void 0, function* () {
46
- return this.request("POST", `${this.apiEndpoint}/${id}/cancel`);
47
- });
48
- }
49
- /**
50
- * Issue an invoice. The invoice must be in the draft status.
51
- *
52
- * @param {number} id
53
- * @returns {Promise<InvoicesStatic.InvoiceIssued>}
54
- * @memberof Invoices
55
- */
56
- issue(id) {
57
- return __awaiter(this, void 0, void 0, function* () {
58
- return this.request("POST", `${this.apiEndpoint}/${id}/issue`);
59
- });
60
- }
61
- /**
62
- * Mark an invoice as sent.
63
- *
64
- * @param {number} id
65
- * @returns {Promise<InvoicesStatic.InvoiceSentAnswer>}
66
- * @memberof Invoices
67
- */
68
- markAsSent(id) {
69
- return __awaiter(this, void 0, void 0, function* () {
70
- return this.request("POST", `${this.apiEndpoint}/${id}/mark_as_sent`);
71
- });
72
- }
73
- /**
74
- * revert a Invoice issue
75
- *
76
- * @param {number} id
77
- * @returns {Promise<{ success: boolean }>}
78
- * @memberof Invoices
79
- */
80
- revertIssue(id) {
81
- return __awaiter(this, void 0, void 0, function* () {
82
- return this.request("POST", `${this.apiEndpoint}/${id.toString()}/revert_issue`);
83
- });
84
- }
85
- /**
86
- * Create a payment for an invoice
87
- *
88
- * @param {number} invoiceId
89
- * @param {Date} date
90
- * @param {string} value
91
- * @param {number} [bank_account_id]
92
- * @param {number} [payment_service_id]
93
- * @return {*} {Promise<InvoicesStatic.Payment>}
94
- * @memberof Invoices
95
- */
96
- createPayment(invoiceId, date, value, bank_account_id, payment_service_id) {
97
- return __awaiter(this, void 0, void 0, function* () {
98
- return this.request("POST", `${this.apiEndpoint}/${invoiceId.toString()}/payment`, undefined, {
99
- date: `${date.getFullYear()}-${(date.getMonth() + 1)
100
- .toString()
101
- .padStart(2, "0")}-${date.getDate().toString().padStart(2, "0")}`,
102
- value,
103
- bank_account_id,
104
- payment_service_id,
105
- });
106
- });
107
- }
108
- /**
109
- * Get a payment for an invoice
110
- *
111
- * @param {number} invoiceId
112
- * @param {number} paymentId
113
- * @return {*} {Promise<InvoicesStatic.Payment>}
114
- * @memberof Invoices
115
- */
116
- getPayment(invoiceId, paymentId) {
117
- return __awaiter(this, void 0, void 0, function* () {
118
- return this.request("GET", `${this.apiEndpoint}/${invoiceId.toString()}/payment/${paymentId.toString()}`);
119
- });
120
- }
121
- /**
122
- * Delete a payment for an invoice
123
- *
124
- * @param {number} invoiceId
125
- * @param {number} paymentId
126
- * @return {*} {Promise<void>}
127
- * @memberof Invoices
128
- */
129
- deletePayment(invoiceId, paymentId) {
130
- return __awaiter(this, void 0, void 0, function* () {
131
- return this.request("DELETE", `${this.apiEndpoint}/${invoiceId.toString()}/payment/${paymentId.toString()}`);
132
- });
133
- }
134
- /**
135
- * Create a default position for an invoice
136
- *
137
- * @param {number} invoiceId
138
- * @param {PositionsStatic.DefaultPositionCreate} position
139
- * @returns {Promise<PositionsStatic.DefaultPosition>}
140
- * @memberof Invoices
141
- */
142
- createDefaultPosition(invoiceId, position) {
143
- return __awaiter(this, void 0, void 0, function* () {
144
- return new DefaultPositions_1.default(this.apiToken, "kb_invoice", invoiceId).create(position);
145
- });
146
- }
147
- /**
148
- * Create an item position for an invoice
149
- *
150
- * @param {number} invoiceId
151
- * @param {PositionsStatic.ItemPositionCreate} position
152
- * @returns {Promise<PositionsStatic.ItemPosition>}
153
- * @memberof Invoices
154
- */
155
- createItemPosition(invoiceId, position) {
156
- return __awaiter(this, void 0, void 0, function* () {
157
- return new ItemPositions_1.default(this.apiToken, "kb_invoice", invoiceId).create(position);
158
- });
159
- }
160
- /**
161
- * Create a text position for an invoice
162
- *
163
- * @param {number} invoiceId
164
- * @param {PositionsStatic.TextPositionCreate} position
165
- * @returns {Promise<PositionsStatic.TextPosition>}
166
- * @memberof Invoices
167
- */
168
- createTextPosition(invoiceId, position) {
169
- return __awaiter(this, void 0, void 0, function* () {
170
- return new TextPositions_1.default(this.apiToken, "kb_invoice", invoiceId).create(position);
171
- });
172
- }
173
- }
174
- exports.default = Invoices;
175
- //# sourceMappingURL=Invoices.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Invoices.js","sourceRoot":"","sources":["../../src/resources/Invoices.ts"],"names":[],"mappings":"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"}
@@ -1,33 +0,0 @@
1
- import BaseCrud from "./BaseCrud";
2
- import { PositionsStatic } from "../interfaces/PositionsStatic";
3
- import { BaseStatic } from "../interfaces/BaseStatic";
4
- export default class ItemPositions extends BaseCrud<PositionsStatic.ItemPosition, PositionsStatic.ItemPosition, {}, {}, PositionsStatic.ItemPositionCreate, {}> {
5
- constructor(apiToken: string, documentType: PositionsStatic.KbDocumentType, documentId: number);
6
- /**
7
- * Not implemented by Bexio yet
8
- *
9
- * @param {Array<BaseStatic.SearchParameter<{}>>} searchOptions
10
- * @param {BaseStatic.BaseOptions} [options]
11
- * @returns {Promise<Array<{}>>}
12
- * @memberof ItemPositions
13
- */
14
- search(searchOptions: Array<BaseStatic.SearchParameter<{}>>, options?: BaseStatic.BaseOptions): Promise<Array<{}>>;
15
- /**
16
- * Not implemented by Bexio yet
17
- *
18
- * @param {number} id
19
- * @param {{}} ressource
20
- * @returns {Promise<PositionsStatic.ItemPosition>}
21
- * @memberof ItemPositions
22
- */
23
- overwrite(id: number, ressource: {}): Promise<PositionsStatic.ItemPosition>;
24
- /**
25
- * Not implemented by Bexio yet
26
- *
27
- * @param {number} id
28
- * @param {Partial<{}>} ressource
29
- * @returns {Promise<PositionsStatic.ItemPosition>}
30
- * @memberof ItemPositions
31
- */
32
- edit(id: number, ressource: Partial<{}>): Promise<PositionsStatic.ItemPosition>;
33
- }
@@ -1,61 +0,0 @@
1
- "use strict";
2
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
- return new (P || (P = Promise))(function (resolve, reject) {
5
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
- step((generator = generator.apply(thisArg, _arguments || [])).next());
9
- });
10
- };
11
- var __importDefault = (this && this.__importDefault) || function (mod) {
12
- return (mod && mod.__esModule) ? mod : { "default": mod };
13
- };
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- const BaseCrud_1 = __importDefault(require("./BaseCrud"));
16
- class ItemPositions extends BaseCrud_1.default {
17
- constructor(apiToken, documentType, documentId) {
18
- super(apiToken, `/2.0/${documentType}/${documentId}/kb_position_article`);
19
- }
20
- /**
21
- * Not implemented by Bexio yet
22
- *
23
- * @param {Array<BaseStatic.SearchParameter<{}>>} searchOptions
24
- * @param {BaseStatic.BaseOptions} [options]
25
- * @returns {Promise<Array<{}>>}
26
- * @memberof ItemPositions
27
- */
28
- search(searchOptions, options) {
29
- return __awaiter(this, void 0, void 0, function* () {
30
- throw new Error("not implemented by Bexio yet");
31
- });
32
- }
33
- /**
34
- * Not implemented by Bexio yet
35
- *
36
- * @param {number} id
37
- * @param {{}} ressource
38
- * @returns {Promise<PositionsStatic.ItemPosition>}
39
- * @memberof ItemPositions
40
- */
41
- overwrite(id, ressource) {
42
- return __awaiter(this, void 0, void 0, function* () {
43
- throw new Error("not implemented by Bexio yet");
44
- });
45
- }
46
- /**
47
- * Not implemented by Bexio yet
48
- *
49
- * @param {number} id
50
- * @param {Partial<{}>} ressource
51
- * @returns {Promise<PositionsStatic.ItemPosition>}
52
- * @memberof ItemPositions
53
- */
54
- edit(id, ressource) {
55
- return __awaiter(this, void 0, void 0, function* () {
56
- throw new Error("not implemented by Bexio yet");
57
- });
58
- }
59
- }
60
- exports.default = ItemPositions;
61
- //# sourceMappingURL=ItemPositions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ItemPositions.js","sourceRoot":"","sources":["../../src/resources/ItemPositions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,0DAAkC;AAIlC,MAAqB,aAAc,SAAQ,kBAO1C;IACC,YACE,QAAgB,EAChB,YAA4C,EAC5C,UAAkB;QAElB,KAAK,CACH,QAAQ,EACR,QAAQ,YAAY,IAAI,UAAU,sBAAsB,CACzD,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACU,MAAM,CACjB,aAAoD,EACpD,OAAgC;;YAEhC,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;KAAA;IAED;;;;;;;OAOG;IACU,SAAS,CACpB,EAAU,EACV,SAAa;;YAEb,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;KAAA;IAED;;;;;;;OAOG;IACU,IAAI,CACf,EAAU,EACV,SAAsB;;YAEtB,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;KAAA;CACF;AA/DD,gCA+DC"}
@@ -1,5 +0,0 @@
1
- import { ItemsStatic } from "../interfaces/ItemsStatic";
2
- import BaseCrud from "./BaseCrud";
3
- export default class Items extends BaseCrud<ItemsStatic.Item, ItemsStatic.Item, ItemsStatic.Item, ItemsStatic.ItemSearchParameters, ItemsStatic.ItemCreate, ItemsStatic.ItemOverwrite> {
4
- constructor(apiToken: string);
5
- }
@@ -1,13 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- const BaseCrud_1 = __importDefault(require("./BaseCrud"));
7
- class Items extends BaseCrud_1.default {
8
- constructor(apiToken) {
9
- super(apiToken, "/2.0/article");
10
- }
11
- }
12
- exports.default = Items;
13
- //# sourceMappingURL=Items.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Items.js","sourceRoot":"","sources":["../../src/resources/Items.ts"],"names":[],"mappings":";;;;;AACA,0DAAkC;AAElC,MAAqB,KAAM,SAAQ,kBAOlC;IACC,YAAY,QAAgB;QAC1B,KAAK,CAAC,QAAQ,EAAE,cAAc,CAAC,CAAC;IAClC,CAAC;CACF;AAXD,wBAWC"}
@@ -1,50 +0,0 @@
1
- import { ManualEntriesStatic } from "../interfaces/ManualEntriesStatic";
2
- import BaseCrud from "./BaseCrud";
3
- import { BaseStatic } from "../interfaces/BaseStatic";
4
- export default class ManualEntries extends BaseCrud<ManualEntriesStatic.ManualEntry, ManualEntriesStatic.ManualEntry, ManualEntriesStatic.ManualEntry, ManualEntriesStatic.SearchParameters, ManualEntriesStatic.ManualEntryCreate, ManualEntriesStatic.ManualEntryUpdate> {
5
- constructor(apiToken: string);
6
- /**
7
- * Lists the manual entries
8
- *
9
- * @param {ManualEntriesStatic.ListOptions} [options]
10
- * @returns {Promise<Array<ManualEntriesStatic.ManualEntry>>}
11
- * @memberof ManualEntries
12
- */
13
- list(options?: ManualEntriesStatic.ListOptions): Promise<Array<ManualEntriesStatic.ManualEntry>>;
14
- /**
15
- * Not implemented by Bexio yet
16
- *
17
- * @param {string | number} id
18
- * @param {BaseStatic.BaseOptions} [options]
19
- * @returns {Promise<ManualEntriesStatic.ManualEntry>}
20
- * @memberof ManualEntries
21
- */
22
- show(id: string | number, options?: BaseStatic.BaseOptions): Promise<ManualEntriesStatic.ManualEntry>;
23
- /**
24
- * Not implemented by Bexio yet
25
- *
26
- * @param {Array<BaseStatic.SearchParameter<ManualEntriesStatic.SearchParameters>>} searchOptions
27
- * @param {BaseStatic.BaseOptions} [options]
28
- * @returns {Promise<ManualEntriesStatic.ManualEntry[]>}
29
- * @memberof ManualEntries
30
- */
31
- search(searchOptions: Array<BaseStatic.SearchParameter<ManualEntriesStatic.SearchParameters>>, options?: BaseStatic.BaseOptions): Promise<ManualEntriesStatic.ManualEntry[]>;
32
- /**
33
- * Not implemented by Bexio yet
34
- *
35
- * @param {number} id
36
- * @param {Partial<ManualEntriesStatic.ManualEntryUpdate>} ressource
37
- * @returns {Promise<ManualEntriesStatic.ManualEntry>}
38
- * @memberof ManualEntries
39
- */
40
- edit(id: number, ressource: Partial<ManualEntriesStatic.ManualEntryUpdate>): Promise<ManualEntriesStatic.ManualEntry>;
41
- /**
42
- * Get the next reference number for a manual entry
43
- *
44
- * @returns {Promise<{ next_ref_nr: string }>}
45
- * @memberof ManualEntries
46
- */
47
- getNextReferenceNumber(): Promise<{
48
- next_ref_nr: string;
49
- }>;
50
- }