@itutoring/itutoring_application_js_api 1.27.5 → 1.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.d.ts CHANGED
@@ -37,6 +37,7 @@ import ActiveTraining from "./modules/ActiveTraining";
37
37
  import Training from "./modules/Training";
38
38
  import Hr from "./modules/Hr";
39
39
  import SaleEvents from "./modules/SaleEvents";
40
+ import Accounting from "./modules/Accounting";
40
41
 
41
42
  import Course from "./objects/Course";
42
43
  import CourseReservation from "./objects/CourseReservation";
@@ -111,6 +112,7 @@ export
111
112
  Training,
112
113
  Hr,
113
114
  SaleEvents,
115
+ Accounting,
114
116
 
115
117
  Course,
116
118
  CourseReservation,
package/index.js CHANGED
@@ -33,6 +33,7 @@ import ActiveTraining from "./modules/ActiveTraining";
33
33
  import Training from "./modules/Training";
34
34
  import Hr from "./modules/Hr";
35
35
  import SaleEvents from "./modules/SaleEvents";
36
+ import Accounting from "./modules/Accounting";
36
37
 
37
38
  import Course from "./objects/Course";
38
39
  import CourseReservation from "./objects/CourseReservation";
@@ -110,6 +111,7 @@ export
110
111
  ApplicationInfo,
111
112
  Hr,
112
113
  SaleEvents,
114
+ Accounting,
113
115
 
114
116
  Course,
115
117
  CourseReservation,
@@ -0,0 +1,57 @@
1
+ /*
2
+ * Copyright (C) 2026 iTutoring s.r.o.
3
+ * All rights reserved.
4
+ *
5
+ *
6
+ */
7
+
8
+ import APIController from "../apiController";
9
+
10
+ class Accounting
11
+ {
12
+ static #MODULE = "Accounting";
13
+
14
+ static #ADD_TAX_SALE_INTERVAL_TO_LECTOR = "AddTaxSaleIntervalToLector";
15
+ static #REMOVE_TAX_SALE_INTERVAL_FROM_LECTOR = "RemoveTaxSaleIntervalFromLector";
16
+ static #UPDATE_TAX_SALE_INTERVAL_FOR_LECTOR = "UpdateTaxSaleIntervalForLector";
17
+ static #GET_TAX_SALE_INTERVALS_FOR_LECTOR = "GetTaxSaleIntervalsForLector";
18
+
19
+ static async addTaxSaleIntervalToLector(lectorId, start, end = 0, sale = 15000)
20
+ {
21
+ var res = await APIController.Post(this.#MODULE, this.#ADD_TAX_SALE_INTERVAL_TO_LECTOR, {
22
+ lectorId: lectorId,
23
+ start: start,
24
+ end: end,
25
+ sale: sale
26
+ });
27
+ return res;
28
+ }
29
+
30
+ static async removeTaxSaleIntervalFromLector(lectorId, intervalId)
31
+ {
32
+ var res = await APIController.Post(this.#MODULE, this.#REMOVE_TAX_SALE_INTERVAL_FROM_LECTOR, {
33
+ lectorId: lectorId,
34
+ intervalId: intervalId
35
+ });
36
+ return res;
37
+ }
38
+
39
+ static async updateTaxSaleIntervalForLector(lectorId, intervalModel)
40
+ {
41
+ var res = await APIController.Post(this.#MODULE, this.#UPDATE_TAX_SALE_INTERVAL_FOR_LECTOR, {
42
+ lectorId: lectorId,
43
+ interval: intervalModel
44
+ });
45
+ return res;
46
+ }
47
+
48
+ static async getTaxSaleIntervalsForLector(lectorId)
49
+ {
50
+ var res = await APIController.Get(this.#MODULE, this.#GET_TAX_SALE_INTERVALS_FOR_LECTOR, {
51
+ lectorId: lectorId
52
+ });
53
+ return res;
54
+ }
55
+ }
56
+
57
+ export default Accounting;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itutoring/itutoring_application_js_api",
3
- "version": "1.27.5",
3
+ "version": "1.28.0",
4
4
  "description": "Javascript API for iTutoring Application",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",