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,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,113 +0,0 @@
1
- import BaseCrud from "./BaseCrud";
2
- import { BaseStatic } from "../interfaces/BaseStatic";
3
- import { InvoicesStatic } from "../interfaces/InvoicesStatic";
4
- import { PositionsStatic } from "../interfaces/PositionsStatic";
5
- export default class Invoices extends BaseCrud<InvoicesStatic.Invoice, InvoicesStatic.Invoice, InvoicesStatic.Invoice, InvoicesStatic.InvoiceSearchParameters, InvoicesStatic.InvoiceCreate, InvoicesStatic.InvoiceOverwrite> {
6
- constructor(apiToken: string);
7
- /**
8
- * Send an invoice by email.
9
- *
10
- * @param {number} id
11
- * @param {Partial<InvoicesStatic.InvoiceSend>} ressource
12
- * @returns {Promise<InvoicesStatic.InvoiceSentAnswer>}
13
- * @memberof Invoices
14
- */
15
- send(id: number, ressource: Partial<InvoicesStatic.InvoiceSend>): Promise<InvoicesStatic.InvoiceSentAnswer>;
16
- /**
17
- * @deprecated Use `send` instead.
18
- */
19
- sent(id: number, ressource: Partial<InvoicesStatic.InvoiceSend>): Promise<InvoicesStatic.InvoiceSentAnswer>;
20
- cancel(id: number): Promise<InvoicesStatic.InvoiceCancelled>;
21
- /**
22
- * This action returns a pdf document of the invoice.
23
- *
24
- * @param {number} id
25
- * @param {0 | 1} [logopaper] Whether the PDF should be generated using the letterhead, or not.
26
- * @returns {Promise<BaseStatic.PdfResponse>}
27
- * @memberof Invoices
28
- */
29
- showPdf(id: number, logopaper?: 0 | 1): Promise<BaseStatic.PdfResponse>;
30
- /**
31
- * Issue an invoice. The invoice must be in the draft status.
32
- *
33
- * @param {number} id
34
- * @returns {Promise<InvoicesStatic.InvoiceIssued>}
35
- * @memberof Invoices
36
- */
37
- issue(id: number): Promise<InvoicesStatic.InvoiceIssued>;
38
- /**
39
- * Mark an invoice as sent.
40
- *
41
- * @param {number} id
42
- * @returns {Promise<InvoicesStatic.InvoiceSentAnswer>}
43
- * @memberof Invoices
44
- */
45
- markAsSent(id: number): Promise<InvoicesStatic.InvoiceSentAnswer>;
46
- /**
47
- * revert a Invoice issue
48
- *
49
- * @param {number} id
50
- * @returns {Promise<{ success: boolean }>}
51
- * @memberof Invoices
52
- */
53
- revertIssue(id: number): Promise<{
54
- success: boolean;
55
- }>;
56
- /**
57
- * Create a payment for an invoice
58
- *
59
- * @param {number} invoiceId
60
- * @param {Date} date
61
- * @param {string} value
62
- * @param {number} [bank_account_id]
63
- * @param {number} [payment_service_id]
64
- * @return {*} {Promise<InvoicesStatic.Payment>}
65
- * @memberof Invoices
66
- */
67
- createPayment(invoiceId: number, date: Date, value: string, bank_account_id?: number, payment_service_id?: number): Promise<InvoicesStatic.Payment>;
68
- /**
69
- * Get a payment for an invoice
70
- *
71
- * @param {number} invoiceId
72
- * @param {number} paymentId
73
- * @return {*} {Promise<InvoicesStatic.Payment>}
74
- * @memberof Invoices
75
- */
76
- getPayment(invoiceId: number, paymentId: number): Promise<InvoicesStatic.Payment>;
77
- /**
78
- * Delete a payment for an invoice
79
- *
80
- * @param {number} invoiceId
81
- * @param {number} paymentId
82
- * @return {*} {Promise<void>}
83
- * @memberof Invoices
84
- */
85
- deletePayment(invoiceId: number, paymentId: number): Promise<void>;
86
- /**
87
- * Create a default position for an invoice
88
- *
89
- * @param {number} invoiceId
90
- * @param {PositionsStatic.DefaultPositionCreate} position
91
- * @returns {Promise<PositionsStatic.DefaultPosition>}
92
- * @memberof Invoices
93
- */
94
- createDefaultPosition(invoiceId: number, position: PositionsStatic.DefaultPositionCreate): Promise<PositionsStatic.DefaultPosition>;
95
- /**
96
- * Create an item position for an invoice
97
- *
98
- * @param {number} invoiceId
99
- * @param {PositionsStatic.ItemPositionCreate} position
100
- * @returns {Promise<PositionsStatic.ItemPosition>}
101
- * @memberof Invoices
102
- */
103
- createItemPosition(invoiceId: number, position: PositionsStatic.ItemPositionCreate): Promise<PositionsStatic.ItemPosition>;
104
- /**
105
- * Create a text position for an invoice
106
- *
107
- * @param {number} invoiceId
108
- * @param {PositionsStatic.TextPositionCreate} position
109
- * @returns {Promise<PositionsStatic.TextPosition>}
110
- * @memberof Invoices
111
- */
112
- createTextPosition(invoiceId: number, position: PositionsStatic.TextPositionCreate): Promise<PositionsStatic.TextPosition>;
113
- }
@@ -1,189 +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
- * This action returns a pdf document of the invoice.
51
- *
52
- * @param {number} id
53
- * @param {0 | 1} [logopaper] Whether the PDF should be generated using the letterhead, or not.
54
- * @returns {Promise<BaseStatic.PdfResponse>}
55
- * @memberof Invoices
56
- */
57
- showPdf(id, logopaper) {
58
- return __awaiter(this, void 0, void 0, function* () {
59
- const response = yield this.request("GET", `${this.apiEndpoint}/${id}/pdf`, logopaper !== undefined ? { logopaper } : undefined);
60
- return Object.assign(Object.assign({}, response), { content: Buffer.from(response.content, "base64") });
61
- });
62
- }
63
- /**
64
- * Issue an invoice. The invoice must be in the draft status.
65
- *
66
- * @param {number} id
67
- * @returns {Promise<InvoicesStatic.InvoiceIssued>}
68
- * @memberof Invoices
69
- */
70
- issue(id) {
71
- return __awaiter(this, void 0, void 0, function* () {
72
- return this.request("POST", `${this.apiEndpoint}/${id}/issue`);
73
- });
74
- }
75
- /**
76
- * Mark an invoice as sent.
77
- *
78
- * @param {number} id
79
- * @returns {Promise<InvoicesStatic.InvoiceSentAnswer>}
80
- * @memberof Invoices
81
- */
82
- markAsSent(id) {
83
- return __awaiter(this, void 0, void 0, function* () {
84
- return this.request("POST", `${this.apiEndpoint}/${id}/mark_as_sent`);
85
- });
86
- }
87
- /**
88
- * revert a Invoice issue
89
- *
90
- * @param {number} id
91
- * @returns {Promise<{ success: boolean }>}
92
- * @memberof Invoices
93
- */
94
- revertIssue(id) {
95
- return __awaiter(this, void 0, void 0, function* () {
96
- return this.request("POST", `${this.apiEndpoint}/${id.toString()}/revert_issue`);
97
- });
98
- }
99
- /**
100
- * Create a payment for an invoice
101
- *
102
- * @param {number} invoiceId
103
- * @param {Date} date
104
- * @param {string} value
105
- * @param {number} [bank_account_id]
106
- * @param {number} [payment_service_id]
107
- * @return {*} {Promise<InvoicesStatic.Payment>}
108
- * @memberof Invoices
109
- */
110
- createPayment(invoiceId, date, value, bank_account_id, payment_service_id) {
111
- return __awaiter(this, void 0, void 0, function* () {
112
- return this.request("POST", `${this.apiEndpoint}/${invoiceId.toString()}/payment`, undefined, {
113
- date: `${date.getFullYear()}-${(date.getMonth() + 1)
114
- .toString()
115
- .padStart(2, "0")}-${date.getDate().toString().padStart(2, "0")}`,
116
- value,
117
- bank_account_id,
118
- payment_service_id,
119
- });
120
- });
121
- }
122
- /**
123
- * Get a payment for an invoice
124
- *
125
- * @param {number} invoiceId
126
- * @param {number} paymentId
127
- * @return {*} {Promise<InvoicesStatic.Payment>}
128
- * @memberof Invoices
129
- */
130
- getPayment(invoiceId, paymentId) {
131
- return __awaiter(this, void 0, void 0, function* () {
132
- return this.request("GET", `${this.apiEndpoint}/${invoiceId.toString()}/payment/${paymentId.toString()}`);
133
- });
134
- }
135
- /**
136
- * Delete a payment for an invoice
137
- *
138
- * @param {number} invoiceId
139
- * @param {number} paymentId
140
- * @return {*} {Promise<void>}
141
- * @memberof Invoices
142
- */
143
- deletePayment(invoiceId, paymentId) {
144
- return __awaiter(this, void 0, void 0, function* () {
145
- return this.request("DELETE", `${this.apiEndpoint}/${invoiceId.toString()}/payment/${paymentId.toString()}`);
146
- });
147
- }
148
- /**
149
- * Create a default position for an invoice
150
- *
151
- * @param {number} invoiceId
152
- * @param {PositionsStatic.DefaultPositionCreate} position
153
- * @returns {Promise<PositionsStatic.DefaultPosition>}
154
- * @memberof Invoices
155
- */
156
- createDefaultPosition(invoiceId, position) {
157
- return __awaiter(this, void 0, void 0, function* () {
158
- return new DefaultPositions_1.default(this.apiToken, "kb_invoice", invoiceId).create(position);
159
- });
160
- }
161
- /**
162
- * Create an item position for an invoice
163
- *
164
- * @param {number} invoiceId
165
- * @param {PositionsStatic.ItemPositionCreate} position
166
- * @returns {Promise<PositionsStatic.ItemPosition>}
167
- * @memberof Invoices
168
- */
169
- createItemPosition(invoiceId, position) {
170
- return __awaiter(this, void 0, void 0, function* () {
171
- return new ItemPositions_1.default(this.apiToken, "kb_invoice", invoiceId).create(position);
172
- });
173
- }
174
- /**
175
- * Create a text position for an invoice
176
- *
177
- * @param {number} invoiceId
178
- * @param {PositionsStatic.TextPositionCreate} position
179
- * @returns {Promise<PositionsStatic.TextPosition>}
180
- * @memberof Invoices
181
- */
182
- createTextPosition(invoiceId, position) {
183
- return __awaiter(this, void 0, void 0, function* () {
184
- return new TextPositions_1.default(this.apiToken, "kb_invoice", invoiceId).create(position);
185
- });
186
- }
187
- }
188
- exports.default = Invoices;
189
- //# 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"}