bexio 3.8.1 → 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 (274) hide show
  1. package/lib/index.d.mts +2908 -0
  2. package/lib/index.d.ts +2879 -55
  3. package/lib/index.js +2045 -100
  4. package/lib/index.js.map +1 -1
  5. package/lib/index.mjs +1990 -0
  6. package/lib/index.mjs.map +1 -0
  7. package/package.json +20 -4
  8. package/lib/interfaces/AccountsStatic.d.ts +0 -14
  9. package/lib/interfaces/AccountsStatic.js +0 -3
  10. package/lib/interfaces/AccountsStatic.js.map +0 -1
  11. package/lib/interfaces/BankAccountsStatic.d.ts +0 -25
  12. package/lib/interfaces/BankAccountsStatic.js +0 -3
  13. package/lib/interfaces/BankAccountsStatic.js.map +0 -1
  14. package/lib/interfaces/BaseStatic.d.ts +0 -20
  15. package/lib/interfaces/BaseStatic.js +0 -3
  16. package/lib/interfaces/BaseStatic.js.map +0 -1
  17. package/lib/interfaces/BillsStatic.d.ts +0 -167
  18. package/lib/interfaces/BillsStatic.js +0 -25
  19. package/lib/interfaces/BillsStatic.js.map +0 -1
  20. package/lib/interfaces/BillsV4Static.d.ts +0 -204
  21. package/lib/interfaces/BillsV4Static.js +0 -60
  22. package/lib/interfaces/BillsV4Static.js.map +0 -1
  23. package/lib/interfaces/BusinessActivitiesStatic.d.ts +0 -24
  24. package/lib/interfaces/BusinessActivitiesStatic.js +0 -11
  25. package/lib/interfaces/BusinessActivitiesStatic.js.map +0 -1
  26. package/lib/interfaces/CalendarStatic.d.ts +0 -30
  27. package/lib/interfaces/CalendarStatic.js +0 -18
  28. package/lib/interfaces/CalendarStatic.js.map +0 -1
  29. package/lib/interfaces/ContactGroupsStatic.d.ts +0 -12
  30. package/lib/interfaces/ContactGroupsStatic.js +0 -11
  31. package/lib/interfaces/ContactGroupsStatic.js.map +0 -1
  32. package/lib/interfaces/ContactRelationsStatic.d.ts +0 -24
  33. package/lib/interfaces/ContactRelationsStatic.js +0 -13
  34. package/lib/interfaces/ContactRelationsStatic.js.map +0 -1
  35. package/lib/interfaces/ContactSectorsStatic.d.ts +0 -9
  36. package/lib/interfaces/ContactSectorsStatic.js +0 -11
  37. package/lib/interfaces/ContactSectorsStatic.js.map +0 -1
  38. package/lib/interfaces/ContactTypesStatic.d.ts +0 -9
  39. package/lib/interfaces/ContactTypesStatic.js +0 -11
  40. package/lib/interfaces/ContactTypesStatic.js.map +0 -1
  41. package/lib/interfaces/ContactsStatic.d.ts +0 -118
  42. package/lib/interfaces/ContactsStatic.js +0 -27
  43. package/lib/interfaces/ContactsStatic.js.map +0 -1
  44. package/lib/interfaces/CurrenciesStatic.d.ts +0 -20
  45. package/lib/interfaces/CurrenciesStatic.js +0 -3
  46. package/lib/interfaces/CurrenciesStatic.js.map +0 -1
  47. package/lib/interfaces/ExpensesStatic.d.ts +0 -83
  48. package/lib/interfaces/ExpensesStatic.js +0 -25
  49. package/lib/interfaces/ExpensesStatic.js.map +0 -1
  50. package/lib/interfaces/InvoicesStatic.d.ts +0 -162
  51. package/lib/interfaces/InvoicesStatic.js +0 -46
  52. package/lib/interfaces/InvoicesStatic.js.map +0 -1
  53. package/lib/interfaces/ItemsStatic.d.ts +0 -120
  54. package/lib/interfaces/ItemsStatic.js +0 -47
  55. package/lib/interfaces/ItemsStatic.js.map +0 -1
  56. package/lib/interfaces/ManualEntriesStatic.d.ts +0 -42
  57. package/lib/interfaces/ManualEntriesStatic.js +0 -3
  58. package/lib/interfaces/ManualEntriesStatic.js.map +0 -1
  59. package/lib/interfaces/NotesStatic.d.ts +0 -23
  60. package/lib/interfaces/NotesStatic.js +0 -16
  61. package/lib/interfaces/NotesStatic.js.map +0 -1
  62. package/lib/interfaces/OrdersStatic.d.ts +0 -117
  63. package/lib/interfaces/OrdersStatic.js +0 -25
  64. package/lib/interfaces/OrdersStatic.js.map +0 -1
  65. package/lib/interfaces/OutgoingPaymentsStatic.d.ts +0 -142
  66. package/lib/interfaces/OutgoingPaymentsStatic.js +0 -39
  67. package/lib/interfaces/OutgoingPaymentsStatic.js.map +0 -1
  68. package/lib/interfaces/PaymentsStatic.d.ts +0 -22
  69. package/lib/interfaces/PaymentsStatic.js +0 -3
  70. package/lib/interfaces/PaymentsStatic.js.map +0 -1
  71. package/lib/interfaces/PositionStatic.d.ts +0 -35
  72. package/lib/interfaces/PositionStatic.js +0 -3
  73. package/lib/interfaces/PositionStatic.js.map +0 -1
  74. package/lib/interfaces/PositionsStatic.d.ts +0 -46
  75. package/lib/interfaces/PositionsStatic.js +0 -3
  76. package/lib/interfaces/PositionsStatic.js.map +0 -1
  77. package/lib/interfaces/ProjectStatusesStatic.d.ts +0 -9
  78. package/lib/interfaces/ProjectStatusesStatic.js +0 -11
  79. package/lib/interfaces/ProjectStatusesStatic.js.map +0 -1
  80. package/lib/interfaces/ProjectTypesStatic.d.ts +0 -9
  81. package/lib/interfaces/ProjectTypesStatic.js +0 -11
  82. package/lib/interfaces/ProjectTypesStatic.js.map +0 -1
  83. package/lib/interfaces/ProjectsStatic.d.ts +0 -55
  84. package/lib/interfaces/ProjectsStatic.js +0 -13
  85. package/lib/interfaces/ProjectsStatic.js.map +0 -1
  86. package/lib/interfaces/SalesOrderManagementStatic.d.ts +0 -289
  87. package/lib/interfaces/SalesOrderManagementStatic.js +0 -69
  88. package/lib/interfaces/SalesOrderManagementStatic.js.map +0 -1
  89. package/lib/interfaces/TaxesStatic.d.ts +0 -31
  90. package/lib/interfaces/TaxesStatic.js +0 -3
  91. package/lib/interfaces/TaxesStatic.js.map +0 -1
  92. package/lib/interfaces/TimetrackingStatusesStatic.d.ts +0 -9
  93. package/lib/interfaces/TimetrackingStatusesStatic.js +0 -11
  94. package/lib/interfaces/TimetrackingStatusesStatic.js.map +0 -1
  95. package/lib/interfaces/TimetrackingsStatic.d.ts +0 -69
  96. package/lib/interfaces/TimetrackingsStatic.js +0 -16
  97. package/lib/interfaces/TimetrackingsStatic.js.map +0 -1
  98. package/lib/interfaces/UsersStatic.d.ts +0 -23
  99. package/lib/interfaces/UsersStatic.js +0 -15
  100. package/lib/interfaces/UsersStatic.js.map +0 -1
  101. package/lib/resources/Accounts.d.ts +0 -49
  102. package/lib/resources/Accounts.js +0 -85
  103. package/lib/resources/Accounts.js.map +0 -1
  104. package/lib/resources/BankAccounts.d.ts +0 -49
  105. package/lib/resources/BankAccounts.js +0 -85
  106. package/lib/resources/BankAccounts.js.map +0 -1
  107. package/lib/resources/BaseCrud.d.ts +0 -89
  108. package/lib/resources/BaseCrud.js +0 -181
  109. package/lib/resources/BaseCrud.js.map +0 -1
  110. package/lib/resources/Bills.d.ts +0 -67
  111. package/lib/resources/Bills.js +0 -107
  112. package/lib/resources/Bills.js.map +0 -1
  113. package/lib/resources/BillsV4.d.ts +0 -52
  114. package/lib/resources/BillsV4.js +0 -86
  115. package/lib/resources/BillsV4.js.map +0 -1
  116. package/lib/resources/BusinessActivities.d.ts +0 -5
  117. package/lib/resources/BusinessActivities.js +0 -13
  118. package/lib/resources/BusinessActivities.js.map +0 -1
  119. package/lib/resources/ContactGroups.d.ts +0 -13
  120. package/lib/resources/ContactGroups.js +0 -34
  121. package/lib/resources/ContactGroups.js.map +0 -1
  122. package/lib/resources/ContactRelations.d.ts +0 -5
  123. package/lib/resources/ContactRelations.js +0 -13
  124. package/lib/resources/ContactRelations.js.map +0 -1
  125. package/lib/resources/ContactSectors.d.ts +0 -39
  126. package/lib/resources/ContactSectors.js +0 -72
  127. package/lib/resources/ContactSectors.js.map +0 -1
  128. package/lib/resources/ContactTypes.d.ts +0 -39
  129. package/lib/resources/ContactTypes.js +0 -72
  130. package/lib/resources/ContactTypes.js.map +0 -1
  131. package/lib/resources/Contacts.d.ts +0 -5
  132. package/lib/resources/Contacts.js +0 -13
  133. package/lib/resources/Contacts.js.map +0 -1
  134. package/lib/resources/Currencies.d.ts +0 -33
  135. package/lib/resources/Currencies.js +0 -61
  136. package/lib/resources/Currencies.js.map +0 -1
  137. package/lib/resources/DefaultPositions.d.ts +0 -33
  138. package/lib/resources/DefaultPositions.js +0 -61
  139. package/lib/resources/DefaultPositions.js.map +0 -1
  140. package/lib/resources/Expenses.d.ts +0 -5
  141. package/lib/resources/Expenses.js +0 -13
  142. package/lib/resources/Expenses.js.map +0 -1
  143. package/lib/resources/Invoices.d.ts +0 -113
  144. package/lib/resources/Invoices.js +0 -189
  145. package/lib/resources/Invoices.js.map +0 -1
  146. package/lib/resources/ItemPositions.d.ts +0 -33
  147. package/lib/resources/ItemPositions.js +0 -61
  148. package/lib/resources/ItemPositions.js.map +0 -1
  149. package/lib/resources/Items.d.ts +0 -5
  150. package/lib/resources/Items.js +0 -13
  151. package/lib/resources/Items.js.map +0 -1
  152. package/lib/resources/ManualEntries.d.ts +0 -50
  153. package/lib/resources/ManualEntries.js +0 -84
  154. package/lib/resources/ManualEntries.js.map +0 -1
  155. package/lib/resources/Orders.d.ts +0 -33
  156. package/lib/resources/Orders.js +0 -64
  157. package/lib/resources/Orders.js.map +0 -1
  158. package/lib/resources/OutgoingPayments.d.ts +0 -63
  159. package/lib/resources/OutgoingPayments.js +0 -117
  160. package/lib/resources/OutgoingPayments.js.map +0 -1
  161. package/lib/resources/Payments.d.ts +0 -36
  162. package/lib/resources/Payments.js +0 -64
  163. package/lib/resources/Payments.js.map +0 -1
  164. package/lib/resources/ProjectStatuses.d.ts +0 -39
  165. package/lib/resources/ProjectStatuses.js +0 -72
  166. package/lib/resources/ProjectStatuses.js.map +0 -1
  167. package/lib/resources/ProjectTypes.d.ts +0 -39
  168. package/lib/resources/ProjectTypes.js +0 -72
  169. package/lib/resources/ProjectTypes.js.map +0 -1
  170. package/lib/resources/Projects.d.ts +0 -5
  171. package/lib/resources/Projects.js +0 -13
  172. package/lib/resources/Projects.js.map +0 -1
  173. package/lib/resources/Taxes.d.ts +0 -30
  174. package/lib/resources/Taxes.js +0 -70
  175. package/lib/resources/Taxes.js.map +0 -1
  176. package/lib/resources/TextPositions.d.ts +0 -33
  177. package/lib/resources/TextPositions.js +0 -61
  178. package/lib/resources/TextPositions.js.map +0 -1
  179. package/lib/resources/TimetrackingStatuses.d.ts +0 -39
  180. package/lib/resources/TimetrackingStatuses.js +0 -72
  181. package/lib/resources/TimetrackingStatuses.js.map +0 -1
  182. package/lib/resources/Timetrackings.d.ts +0 -14
  183. package/lib/resources/Timetrackings.js +0 -35
  184. package/lib/resources/Timetrackings.js.map +0 -1
  185. package/lib/resources/Users.d.ts +0 -39
  186. package/lib/resources/Users.js +0 -72
  187. package/lib/resources/Users.js.map +0 -1
  188. package/lib/tests/Accounts.test.d.ts +0 -1
  189. package/lib/tests/Accounts.test.js +0 -86
  190. package/lib/tests/Accounts.test.js.map +0 -1
  191. package/lib/tests/BankAccounts.test.d.ts +0 -1
  192. package/lib/tests/BankAccounts.test.js +0 -86
  193. package/lib/tests/BankAccounts.test.js.map +0 -1
  194. package/lib/tests/BaseCrud.test.d.ts +0 -1
  195. package/lib/tests/BaseCrud.test.js +0 -302
  196. package/lib/tests/BaseCrud.test.js.map +0 -1
  197. package/lib/tests/Bills.test.d.ts +0 -1
  198. package/lib/tests/Bills.test.js +0 -110
  199. package/lib/tests/Bills.test.js.map +0 -1
  200. package/lib/tests/BillsV4.test.d.ts +0 -1
  201. package/lib/tests/BillsV4.test.js +0 -134
  202. package/lib/tests/BillsV4.test.js.map +0 -1
  203. package/lib/tests/BusinessActivities.test.d.ts +0 -1
  204. package/lib/tests/BusinessActivities.test.js +0 -21
  205. package/lib/tests/BusinessActivities.test.js.map +0 -1
  206. package/lib/tests/ContactGroups.test.d.ts +0 -1
  207. package/lib/tests/ContactGroups.test.js +0 -21
  208. package/lib/tests/ContactGroups.test.js.map +0 -1
  209. package/lib/tests/ContactRelations.test.d.ts +0 -1
  210. package/lib/tests/ContactRelations.test.js +0 -21
  211. package/lib/tests/ContactRelations.test.js.map +0 -1
  212. package/lib/tests/ContactSectors.test.d.ts +0 -1
  213. package/lib/tests/ContactSectors.test.js +0 -21
  214. package/lib/tests/ContactSectors.test.js.map +0 -1
  215. package/lib/tests/ContactTypes.test.d.ts +0 -1
  216. package/lib/tests/ContactTypes.test.js +0 -21
  217. package/lib/tests/ContactTypes.test.js.map +0 -1
  218. package/lib/tests/Contacts.test.d.ts +0 -1
  219. package/lib/tests/Contacts.test.js +0 -21
  220. package/lib/tests/Contacts.test.js.map +0 -1
  221. package/lib/tests/Currencies.test.d.ts +0 -1
  222. package/lib/tests/Currencies.test.js +0 -21
  223. package/lib/tests/Currencies.test.js.map +0 -1
  224. package/lib/tests/DefaultPositions.test.d.ts +0 -1
  225. package/lib/tests/DefaultPositions.test.js +0 -22
  226. package/lib/tests/DefaultPositions.test.js.map +0 -1
  227. package/lib/tests/Expenses.test.d.ts +0 -1
  228. package/lib/tests/Expenses.test.js +0 -21
  229. package/lib/tests/Expenses.test.js.map +0 -1
  230. package/lib/tests/Invoices.test.d.ts +0 -1
  231. package/lib/tests/Invoices.test.js +0 -207
  232. package/lib/tests/Invoices.test.js.map +0 -1
  233. package/lib/tests/ItemPositions.test.d.ts +0 -1
  234. package/lib/tests/ItemPositions.test.js +0 -22
  235. package/lib/tests/ItemPositions.test.js.map +0 -1
  236. package/lib/tests/Items.test.d.ts +0 -1
  237. package/lib/tests/Items.test.js +0 -21
  238. package/lib/tests/Items.test.js.map +0 -1
  239. package/lib/tests/ManualEntries.test.d.ts +0 -1
  240. package/lib/tests/ManualEntries.test.js +0 -116
  241. package/lib/tests/ManualEntries.test.js.map +0 -1
  242. package/lib/tests/Orders.test.d.ts +0 -1
  243. package/lib/tests/Orders.test.js +0 -137
  244. package/lib/tests/Orders.test.js.map +0 -1
  245. package/lib/tests/OutgoingPayments.test.d.ts +0 -1
  246. package/lib/tests/OutgoingPayments.test.js +0 -125
  247. package/lib/tests/OutgoingPayments.test.js.map +0 -1
  248. package/lib/tests/Payments.test.d.ts +0 -1
  249. package/lib/tests/Payments.test.js +0 -22
  250. package/lib/tests/Payments.test.js.map +0 -1
  251. package/lib/tests/ProjectStatuses.test.d.ts +0 -1
  252. package/lib/tests/ProjectStatuses.test.js +0 -21
  253. package/lib/tests/ProjectStatuses.test.js.map +0 -1
  254. package/lib/tests/ProjectTypes.test.d.ts +0 -1
  255. package/lib/tests/ProjectTypes.test.js +0 -21
  256. package/lib/tests/ProjectTypes.test.js.map +0 -1
  257. package/lib/tests/Projects.test.d.ts +0 -1
  258. package/lib/tests/Projects.test.js +0 -21
  259. package/lib/tests/Projects.test.js.map +0 -1
  260. package/lib/tests/Taxes.test.d.ts +0 -1
  261. package/lib/tests/Taxes.test.js +0 -107
  262. package/lib/tests/Taxes.test.js.map +0 -1
  263. package/lib/tests/TextPositions.test.d.ts +0 -1
  264. package/lib/tests/TextPositions.test.js +0 -22
  265. package/lib/tests/TextPositions.test.js.map +0 -1
  266. package/lib/tests/TimetrackingStatuses.test.d.ts +0 -1
  267. package/lib/tests/TimetrackingStatuses.test.js +0 -21
  268. package/lib/tests/TimetrackingStatuses.test.js.map +0 -1
  269. package/lib/tests/Timetrackings.test.d.ts +0 -1
  270. package/lib/tests/Timetrackings.test.js +0 -21
  271. package/lib/tests/Timetrackings.test.js.map +0 -1
  272. package/lib/tests/Users.test.d.ts +0 -1
  273. package/lib/tests/Users.test.js +0 -21
  274. package/lib/tests/Users.test.js.map +0 -1
@@ -1,107 +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 Payments_1 = __importDefault(require("./Payments"));
17
- /**
18
- * @deprecated Use BillsV4 instead
19
- */
20
- class Bills extends BaseCrud_1.default {
21
- constructor(apiToken) {
22
- super(apiToken, "/2.0/kb_bill");
23
- }
24
- /**
25
- * issue a bill
26
- *
27
- * @param {number} id
28
- * @returns {Promise<{ success: boolean }>}
29
- * @memberof Bills
30
- */
31
- issue(id) {
32
- return __awaiter(this, void 0, void 0, function* () {
33
- return this.request("POST", `${this.apiEndpoint}/${id.toString()}/issue`);
34
- });
35
- }
36
- /**
37
- * revert a bill issue
38
- *
39
- * @param {number} id
40
- * @returns {Promise<{ success: boolean }>}
41
- * @memberof Bills
42
- */
43
- revertIssue(id) {
44
- return __awaiter(this, void 0, void 0, function* () {
45
- return this.request("POST", `${this.apiEndpoint}/${id.toString()}/revert_issue`);
46
- });
47
- }
48
- /**
49
- * List all payments for this bill
50
- *
51
- * @param {number} billId
52
- * @param {BaseStatic.BaseOptions} [options]
53
- * @returns {Promise<PaymentsStatic.Payment[]>}
54
- * @memberof Bills
55
- */
56
- listPayments(billId, options) {
57
- return __awaiter(this, void 0, void 0, function* () {
58
- const paymentCrud = new Payments_1.default(this.apiToken, billId);
59
- return paymentCrud.list(options);
60
- });
61
- }
62
- /**
63
- * Show a specific payment for this bill
64
- *
65
- * @param {number} billId
66
- * @param {number} paymentId
67
- * @param {BaseStatic.BaseOptions} [options]
68
- * @returns {Promise<PaymentsStatic.Payment>}
69
- * @memberof Bills
70
- */
71
- showPayment(billId, paymentId, options) {
72
- return __awaiter(this, void 0, void 0, function* () {
73
- const paymentCrud = new Payments_1.default(this.apiToken, billId);
74
- return paymentCrud.show(paymentId, options);
75
- });
76
- }
77
- /**
78
- * Create a new payment for this bill
79
- *
80
- * @param {number} billId
81
- * @param {PaymentsStatic.PaymentCreate} payment
82
- * @returns {Promise<PaymentsStatic.Payment>}
83
- * @memberof Bills
84
- */
85
- createPayment(billId, payment) {
86
- return __awaiter(this, void 0, void 0, function* () {
87
- const paymentCrud = new Payments_1.default(this.apiToken, billId);
88
- return paymentCrud.create(payment);
89
- });
90
- }
91
- /**
92
- * delete a specific payment for this bill
93
- *
94
- * @param {number} billId
95
- * @param {number} paymentId
96
- * @returns {Promise<boolean>}
97
- * @memberof Bills
98
- */
99
- deletePayment(billId, paymentId) {
100
- return __awaiter(this, void 0, void 0, function* () {
101
- const paymentCrud = new Payments_1.default(this.apiToken, billId);
102
- return paymentCrud.delete(paymentId);
103
- });
104
- }
105
- }
106
- exports.default = Bills;
107
- //# sourceMappingURL=Bills.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Bills.js","sourceRoot":"","sources":["../../src/resources/Bills.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AACA,0DAAkC;AAClC,0DAAkC;AAIlC;;GAEG;AACH,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"}
@@ -1,52 +0,0 @@
1
- import { BillsV4Static } from "../interfaces/BillsV4Static";
2
- import BaseCrud from "./BaseCrud";
3
- import { BaseStatic } from "../interfaces/BaseStatic";
4
- export default class BillsV4 extends BaseCrud<BillsV4Static.Bill, BillsV4Static.BillFull, BillsV4Static.Bill, BillsV4Static.SearchParameters, BillsV4Static.BillCreate, BillsV4Static.BillOverwrite> {
5
- constructor(apiToken: string);
6
- /**
7
- * Lists the ressource
8
- *
9
- * @param {BillsV4Static.ListOptions} [options]
10
- * @returns {Promise<Array<BillsV4Static.Bill>>}
11
- * @memberof BillsV4
12
- */
13
- list(options?: BillsV4Static.ListOptions): Promise<Array<BillsV4Static.Bill>>;
14
- /**
15
- * Not implemented by Bexio yet
16
- *
17
- * @param {Array<BaseStatic.SearchParameter<BillsV4Static.SearchParameters>>} searchOptions
18
- * @param {BaseStatic.BaseOptions} [options]
19
- * @returns {Promise<BillsV4Static.Bill[]>}
20
- * @memberof BillsV4
21
- */
22
- search(searchOptions: Array<BaseStatic.SearchParameter<BillsV4Static.SearchParameters>>, options?: BaseStatic.BaseOptions): Promise<BillsV4Static.Bill[]>;
23
- /**
24
- * Update bill status
25
- *
26
- * @param {string} id
27
- * @param {BillsV4Static.BillStatusUpdate} status
28
- * @returns {Promise<BillsV4Static.BillFull>}
29
- * @memberof BillsV4
30
- */
31
- updateStatus(id: string, status: BillsV4Static.BillStatusUpdate): Promise<BillsV4Static.BillFull>;
32
- /**
33
- * Execute bill action
34
- *
35
- * @param {string} id
36
- * @param {BillsV4Static.BillAction} action
37
- * @returns {Promise<BillsV4Static.BillFull>}
38
- * @memberof BillsV4
39
- */
40
- executeAction(id: string, action: BillsV4Static.BillAction): Promise<BillsV4Static.BillFull>;
41
- /**
42
- * Validate whether document number is available or not
43
- *
44
- * @param {string} documentNo
45
- * @returns {Promise<{ valid: boolean; next_available_no: string }>}
46
- * @memberof BillsV4
47
- */
48
- validateDocumentNumber(documentNo: string): Promise<{
49
- valid: boolean;
50
- next_available_no: string;
51
- }>;
52
- }
@@ -1,86 +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 BillsV4 extends BaseCrud_1.default {
17
- constructor(apiToken) {
18
- super(apiToken, "/4.0/purchase/bills");
19
- }
20
- /**
21
- * Lists the ressource
22
- *
23
- * @param {BillsV4Static.ListOptions} [options]
24
- * @returns {Promise<Array<BillsV4Static.Bill>>}
25
- * @memberof BillsV4
26
- */
27
- list(options) {
28
- return __awaiter(this, void 0, void 0, function* () {
29
- const resp = yield this.request("GET", this.apiEndpoint, options);
30
- return resp.data;
31
- });
32
- }
33
- /**
34
- * Not implemented by Bexio yet
35
- *
36
- * @param {Array<BaseStatic.SearchParameter<BillsV4Static.SearchParameters>>} searchOptions
37
- * @param {BaseStatic.BaseOptions} [options]
38
- * @returns {Promise<BillsV4Static.Bill[]>}
39
- * @memberof BillsV4
40
- */
41
- search(searchOptions, options) {
42
- return __awaiter(this, void 0, void 0, function* () {
43
- throw new Error("not implemented by Bexio yet");
44
- });
45
- }
46
- /**
47
- * Update bill status
48
- *
49
- * @param {string} id
50
- * @param {BillsV4Static.BillStatusUpdate} status
51
- * @returns {Promise<BillsV4Static.BillFull>}
52
- * @memberof BillsV4
53
- */
54
- updateStatus(id, status) {
55
- return __awaiter(this, void 0, void 0, function* () {
56
- return this.request("PUT", `${this.apiEndpoint}/${id}/bookings/${status}`);
57
- });
58
- }
59
- /**
60
- * Execute bill action
61
- *
62
- * @param {string} id
63
- * @param {BillsV4Static.BillAction} action
64
- * @returns {Promise<BillsV4Static.BillFull>}
65
- * @memberof BillsV4
66
- */
67
- executeAction(id, action) {
68
- return __awaiter(this, void 0, void 0, function* () {
69
- return this.request("POST", `${this.apiEndpoint}/${id}/actions`, undefined, { action });
70
- });
71
- }
72
- /**
73
- * Validate whether document number is available or not
74
- *
75
- * @param {string} documentNo
76
- * @returns {Promise<{ valid: boolean; next_available_no: string }>}
77
- * @memberof BillsV4
78
- */
79
- validateDocumentNumber(documentNo) {
80
- return __awaiter(this, void 0, void 0, function* () {
81
- return this.request("GET", "/4.0/purchase/documentnumbers/bills", { document_no: documentNo });
82
- });
83
- }
84
- }
85
- exports.default = BillsV4;
86
- //# sourceMappingURL=BillsV4.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BillsV4.js","sourceRoot":"","sources":["../../src/resources/BillsV4.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AACA,0DAAkC;AAGlC,MAAqB,OAAQ,SAAQ,kBAOpC;IACC,YAAY,QAAgB;QAC1B,KAAK,CAAC,QAAQ,EAAE,qBAAqB,CAAC,CAAC;IACzC,CAAC;IAGD;;;;;;OAMG;IACU,IAAI,CACf,OAAmC;;YAEnC,MAAM,IAAI,GAAG,MAAM,IAAI,CAAC,OAAO,CAQ5B,KAAK,EAAE,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;YACrC,OAAO,IAAI,CAAC,IAAI,CAAC;QACnB,CAAC;KAAA;IAED;;;;;;;OAOG;IACU,MAAM,CACjB,aAEC,EACD,OAAgC;;YAEhC,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;KAAA;IAED;;;;;;;OAOG;IACU,YAAY,CACvB,EAAU,EACV,MAAsC;;YAEtC,OAAO,IAAI,CAAC,OAAO,CACjB,KAAK,EACL,GAAG,IAAI,CAAC,WAAW,IAAI,EAAE,aAAa,MAAM,EAAE,CAC/C,CAAC;QACJ,CAAC;KAAA;IAED;;;;;;;OAOG;IACU,aAAa,CACxB,EAAU,EACV,MAAgC;;YAEhC,OAAO,IAAI,CAAC,OAAO,CACjB,MAAM,EACN,GAAG,IAAI,CAAC,WAAW,IAAI,EAAE,UAAU,EACnC,SAAS,EACT,EAAE,MAAM,EAAE,CACX,CAAC;QACJ,CAAC;KAAA;IAED;;;;;;OAMG;IACU,sBAAsB,CACjC,UAAkB;;YAElB,OAAO,IAAI,CAAC,OAAO,CACjB,KAAK,EACL,qCAAqC,EACrC,EAAE,WAAW,EAAE,UAAU,EAAE,CAC5B,CAAC;QACJ,CAAC;KAAA;CACF;AA1GD,0BA0GC"}
@@ -1,5 +0,0 @@
1
- import { BusinessActivitiesStatic } from "../interfaces/BusinessActivitiesStatic";
2
- import BaseCrud from "./BaseCrud";
3
- export default class ClientServices extends BaseCrud<BusinessActivitiesStatic.BusinessActivity, BusinessActivitiesStatic.BusinessActivity, BusinessActivitiesStatic.BusinessActivity, BusinessActivitiesStatic.BusinessActivitySearchParameters, BusinessActivitiesStatic.BusinessActivityCreate, BusinessActivitiesStatic.BusinessActivityOverwrite> {
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 ClientServices extends BaseCrud_1.default {
8
- constructor(apiToken) {
9
- super(apiToken, "/2.0/client_service");
10
- }
11
- }
12
- exports.default = ClientServices;
13
- //# sourceMappingURL=BusinessActivities.js.map
@@ -1 +0,0 @@
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"}
@@ -1,13 +0,0 @@
1
- import { ContactGroupsStatic } from "./../interfaces/ContactGroupsStatic";
2
- import BaseCrud from "./BaseCrud";
3
- export default class ContactGroups extends BaseCrud<ContactGroupsStatic.ContactGroup, ContactGroupsStatic.ContactGroup, ContactGroupsStatic.ContactGroup, ContactGroupsStatic.ContactGroupSearchParameters, ContactGroupsStatic.ContactGroupCreate, ContactGroupsStatic.ContactGroup> {
4
- constructor(apiToken: string);
5
- /**
6
- * Not implemented by Bexio yet
7
- *
8
- * @param {number} id
9
- * @returns {Promise<boolean>}
10
- * @memberof ContactGroups
11
- */
12
- delete(id: number): Promise<boolean>;
13
- }
@@ -1,34 +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 ContactGroups extends BaseCrud_1.default {
17
- constructor(apiToken) {
18
- super(apiToken, "/2.0/contact_group");
19
- }
20
- /**
21
- * Not implemented by Bexio yet
22
- *
23
- * @param {number} id
24
- * @returns {Promise<boolean>}
25
- * @memberof ContactGroups
26
- */
27
- delete(id) {
28
- return __awaiter(this, void 0, void 0, function* () {
29
- throw new Error("not implemented by Bexio yet");
30
- });
31
- }
32
- }
33
- exports.default = ContactGroups;
34
- //# sourceMappingURL=ContactGroups.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ContactGroups.js","sourceRoot":"","sources":["../../src/resources/ContactGroups.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AACA,0DAAkC;AAElC,MAAqB,aAAc,SAAQ,kBAO1C;IACC,YAAY,QAAgB;QAC1B,KAAK,CAAC,QAAQ,EAAE,oBAAoB,CAAC,CAAC;IACxC,CAAC;IAED;;;;;;OAMG;IACU,MAAM,CAAC,EAAU;;YAC5B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;KAAA;CACF;AAtBD,gCAsBC"}
@@ -1,5 +0,0 @@
1
- import { ContactRelationsStatic } from "./../interfaces/ContactRelationsStatic";
2
- import BaseCrud from "./BaseCrud";
3
- export default class ContactRelations extends BaseCrud<ContactRelationsStatic.ContactRelation, ContactRelationsStatic.ContactRelation, ContactRelationsStatic.ContactRelation, ContactRelationsStatic.ContactRelationSearchParameters, ContactRelationsStatic.ContactRelationCreate, ContactRelationsStatic.ContactRelationOverwrite> {
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 ContactRelations extends BaseCrud_1.default {
8
- constructor(apiToken) {
9
- super(apiToken, "/2.0/contact_relation");
10
- }
11
- }
12
- exports.default = ContactRelations;
13
- //# sourceMappingURL=ContactRelations.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ContactRelations.js","sourceRoot":"","sources":["../../src/resources/ContactRelations.ts"],"names":[],"mappings":";;;;;AACA,0DAAkC;AAElC,MAAqB,gBAAiB,SAAQ,kBAO7C;IACC,YAAY,QAAgB;QAC1B,KAAK,CAAC,QAAQ,EAAE,uBAAuB,CAAC,CAAC;IAC3C,CAAC;CACF;AAXD,mCAWC"}
@@ -1,39 +0,0 @@
1
- import { ContactSectorsStatic } from "./../interfaces/ContactSectorsStatic";
2
- import BaseCrud from "./BaseCrud";
3
- export default class ContactSectors extends BaseCrud<ContactSectorsStatic.ContactSector, ContactSectorsStatic.ContactSector, ContactSectorsStatic.ContactSector, ContactSectorsStatic.ContactSectorSearchParameters, {}, ContactSectorsStatic.ContactSector> {
4
- constructor(apiToken: string);
5
- /**
6
- * Not implemented by Bexio yet
7
- *
8
- * @param {{}} ressource
9
- * @returns {Promise<ContactSectorsStatic.ContactSector>}
10
- * @memberof ContactSectors
11
- */
12
- create(ressource: {}): Promise<ContactSectorsStatic.ContactSector>;
13
- /**
14
- * Not implemented by Bexio yet
15
- *
16
- * @param {number} id
17
- * @param {{}} ressource
18
- * @returns {Promise<ContactSectorsStatic.ContactSector>}
19
- * @memberof ContactSectors
20
- */
21
- edit(id: number, ressource: {}): Promise<ContactSectorsStatic.ContactSector>;
22
- /**
23
- * Not implemented by Bexio yet
24
- *
25
- * @param {number} id
26
- * @param {{}} ressource
27
- * @returns {Promise<ContactSectorsStatic.ContactSector>}
28
- * @memberof ContactSectors
29
- */
30
- overwrite(id: number, ressource: {}): Promise<ContactSectorsStatic.ContactSector>;
31
- /**
32
- * Not implemented by Bexio yet
33
- *
34
- * @param {number} id
35
- * @returns {Promise<boolean>}
36
- * @memberof ContactSectors
37
- */
38
- delete(id: number): Promise<boolean>;
39
- }
@@ -1,72 +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 ContactSectors extends BaseCrud_1.default {
17
- constructor(apiToken) {
18
- super(apiToken, "/2.0/contact_branch");
19
- }
20
- /**
21
- * Not implemented by Bexio yet
22
- *
23
- * @param {{}} ressource
24
- * @returns {Promise<ContactSectorsStatic.ContactSector>}
25
- * @memberof ContactSectors
26
- */
27
- create(ressource) {
28
- return __awaiter(this, void 0, void 0, function* () {
29
- throw new Error("not implemented by Bexio yet");
30
- });
31
- }
32
- /**
33
- * Not implemented by Bexio yet
34
- *
35
- * @param {number} id
36
- * @param {{}} ressource
37
- * @returns {Promise<ContactSectorsStatic.ContactSector>}
38
- * @memberof ContactSectors
39
- */
40
- edit(id, ressource) {
41
- return __awaiter(this, void 0, void 0, function* () {
42
- throw new Error("not implemented by Bexio yet");
43
- });
44
- }
45
- /**
46
- * Not implemented by Bexio yet
47
- *
48
- * @param {number} id
49
- * @param {{}} ressource
50
- * @returns {Promise<ContactSectorsStatic.ContactSector>}
51
- * @memberof ContactSectors
52
- */
53
- overwrite(id, ressource) {
54
- return __awaiter(this, void 0, void 0, function* () {
55
- throw new Error("not implemented by Bexio yet");
56
- });
57
- }
58
- /**
59
- * Not implemented by Bexio yet
60
- *
61
- * @param {number} id
62
- * @returns {Promise<boolean>}
63
- * @memberof ContactSectors
64
- */
65
- delete(id) {
66
- return __awaiter(this, void 0, void 0, function* () {
67
- throw new Error("not implemented by Bexio yet");
68
- });
69
- }
70
- }
71
- exports.default = ContactSectors;
72
- //# sourceMappingURL=ContactSectors.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ContactSectors.js","sourceRoot":"","sources":["../../src/resources/ContactSectors.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AACA,0DAAkC;AAElC,MAAqB,cAAe,SAAQ,kBAO3C;IACC,YAAY,QAAgB;QAC1B,KAAK,CAAC,QAAQ,EAAE,qBAAqB,CAAC,CAAC;IACzC,CAAC;IAED;;;;;;OAMG;IACU,MAAM,CAAC,SAAa;;YAG/B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;KAAA;IAED;;;;;;;OAOG;IACU,IAAI,CACf,EAAU,EACV,SAAa;;YAEb,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;;;;;;OAMG;IACU,MAAM,CAAC,EAAU;;YAC5B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;KAAA;CACF;AAjED,iCAiEC"}
@@ -1,39 +0,0 @@
1
- import { ContactTypesStatic } from "./../interfaces/ContactTypesStatic";
2
- import BaseCrud from "./BaseCrud";
3
- export default class ContactTypes extends BaseCrud<ContactTypesStatic.ContactType, ContactTypesStatic.ContactType, ContactTypesStatic.ContactType, ContactTypesStatic.ContactTypeSearchParameters, {}, ContactTypesStatic.ContactType> {
4
- constructor(apiToken: string);
5
- /**
6
- * Not implemented by Bexio yet
7
- *
8
- * @param {{}} ressource
9
- * @returns {Promise<ContactTypesStatic.ContactSector>}
10
- * @memberof ContactTypes
11
- */
12
- create(ressource: {}): Promise<ContactTypesStatic.ContactType>;
13
- /**
14
- * Not implemented by Bexio yet
15
- *
16
- * @param {number} id
17
- * @param {{}} ressource
18
- * @returns {Promise<ContactTypesStatic.ContactSector>}
19
- * @memberof ContactTypes
20
- */
21
- edit(id: number, ressource: {}): Promise<ContactTypesStatic.ContactType>;
22
- /**
23
- * Not implemented by Bexio yet
24
- *
25
- * @param {number} id
26
- * @param {{}} ressource
27
- * @returns {Promise<ContactTypesStatic.ContactSector>}
28
- * @memberof ContactTypes
29
- */
30
- overwrite(id: number, ressource: {}): Promise<ContactTypesStatic.ContactType>;
31
- /**
32
- * Not implemented by Bexio yet
33
- *
34
- * @param {number} id
35
- * @returns {Promise<boolean>}
36
- * @memberof ContactTypes
37
- */
38
- delete(id: number): Promise<boolean>;
39
- }
@@ -1,72 +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 ContactTypes extends BaseCrud_1.default {
17
- constructor(apiToken) {
18
- super(apiToken, "/2.0/contact_type");
19
- }
20
- /**
21
- * Not implemented by Bexio yet
22
- *
23
- * @param {{}} ressource
24
- * @returns {Promise<ContactTypesStatic.ContactSector>}
25
- * @memberof ContactTypes
26
- */
27
- create(ressource) {
28
- return __awaiter(this, void 0, void 0, function* () {
29
- throw new Error("not implemented by Bexio yet");
30
- });
31
- }
32
- /**
33
- * Not implemented by Bexio yet
34
- *
35
- * @param {number} id
36
- * @param {{}} ressource
37
- * @returns {Promise<ContactTypesStatic.ContactSector>}
38
- * @memberof ContactTypes
39
- */
40
- edit(id, ressource) {
41
- return __awaiter(this, void 0, void 0, function* () {
42
- throw new Error("not implemented by Bexio yet");
43
- });
44
- }
45
- /**
46
- * Not implemented by Bexio yet
47
- *
48
- * @param {number} id
49
- * @param {{}} ressource
50
- * @returns {Promise<ContactTypesStatic.ContactSector>}
51
- * @memberof ContactTypes
52
- */
53
- overwrite(id, ressource) {
54
- return __awaiter(this, void 0, void 0, function* () {
55
- throw new Error("not implemented by Bexio yet");
56
- });
57
- }
58
- /**
59
- * Not implemented by Bexio yet
60
- *
61
- * @param {number} id
62
- * @returns {Promise<boolean>}
63
- * @memberof ContactTypes
64
- */
65
- delete(id) {
66
- return __awaiter(this, void 0, void 0, function* () {
67
- throw new Error("not implemented by Bexio yet");
68
- });
69
- }
70
- }
71
- exports.default = ContactTypes;
72
- //# sourceMappingURL=ContactTypes.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ContactTypes.js","sourceRoot":"","sources":["../../src/resources/ContactTypes.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AACA,0DAAkC;AAElC,MAAqB,YAAa,SAAQ,kBAOzC;IACC,YAAY,QAAgB;QAC1B,KAAK,CAAC,QAAQ,EAAE,mBAAmB,CAAC,CAAC;IACvC,CAAC;IACD;;;;;;OAMG;IACU,MAAM,CAAC,SAAa;;YAC/B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;KAAA;IAED;;;;;;;OAOG;IACU,IAAI,CACf,EAAU,EACV,SAAa;;YAEb,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;;;;;;OAMG;IACU,MAAM,CAAC,EAAU;;YAC5B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;KAAA;CACF;AA9DD,+BA8DC"}
@@ -1,5 +0,0 @@
1
- import { ContactsStatic } from "./../interfaces/ContactsStatic";
2
- import BaseCrud from "./BaseCrud";
3
- export default class Contacts extends BaseCrud<ContactsStatic.ContactSmall, ContactsStatic.ContactFull, ContactsStatic.ContactSmall, ContactsStatic.ContactSearchParameters, ContactsStatic.ContactCreate, ContactsStatic.ContactOverwrite> {
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 Contacts extends BaseCrud_1.default {
8
- constructor(apiToken) {
9
- super(apiToken, "/2.0/contact");
10
- }
11
- }
12
- exports.default = Contacts;
13
- //# sourceMappingURL=Contacts.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Contacts.js","sourceRoot":"","sources":["../../src/resources/Contacts.ts"],"names":[],"mappings":";;;;;AACA,0DAAkC;AAElC,MAAqB,QAAS,SAAQ,kBAOrC;IACC,YAAY,QAAgB;QAC1B,KAAK,CAAC,QAAQ,EAAE,cAAc,CAAC,CAAC;IAClC,CAAC;CACF;AAXD,2BAWC"}
@@ -1,33 +0,0 @@
1
- import BaseCrud from "./BaseCrud";
2
- import { CurrenciesStatic } from "../interfaces/CurrenciesStatic";
3
- import { BaseStatic } from "../interfaces/BaseStatic";
4
- export default class Currencies extends BaseCrud<CurrenciesStatic.CurrencyFull, CurrenciesStatic.Currency, {}, {}, CurrenciesStatic.CurrencyCreate, {}> {
5
- constructor(apiToken: string);
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 Currencies
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 {Overwrite} ressource
20
- * @returns {Promise<{}>}
21
- * @memberof Currencies
22
- */
23
- overwrite(id: number, ressource: CurrenciesStatic.Currency): Promise<CurrenciesStatic.Currency>;
24
- /**
25
- * NOT IMPLEMENTED BY BEXIO YET
26
- *
27
- * @param {number} id
28
- * @param {Partial<{}>} ressource
29
- * @returns {Promise<CurrenciesStatic.Currency>}
30
- * @memberof BaseCrud
31
- */
32
- edit(id: number, ressource: Partial<{}>): Promise<CurrenciesStatic.Currency>;
33
- }