@itutoring/itutoring_application_js_api 1.25.5 → 1.26.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/apiController.js CHANGED
@@ -317,6 +317,10 @@ class APIController
317
317
  let jsonVal = JSON.stringify(value);
318
318
  formData.append(key, jsonVal);
319
319
  }
320
+ else
321
+ {
322
+ formData.append(key, value);
323
+ }
320
324
  });
321
325
 
322
326
  return formData;
package/index.d.ts CHANGED
@@ -36,6 +36,7 @@ import DbTags from "./modules/DbTags";
36
36
  import ActiveTraining from "./modules/ActiveTraining";
37
37
  import Training from "./modules/Training";
38
38
  import Hr from "./modules/Hr";
39
+ import SaleEvents from "./modules/SaleEvents";
39
40
 
40
41
  import Course from "./objects/Course";
41
42
  import CourseReservation from "./objects/CourseReservation";
@@ -109,6 +110,7 @@ export
109
110
  ActiveTraining,
110
111
  Training,
111
112
  Hr,
113
+ SaleEvents,
112
114
 
113
115
  Course,
114
116
  CourseReservation,
package/index.js CHANGED
@@ -32,6 +32,7 @@ import DbTags from "./modules/DbTags";
32
32
  import ActiveTraining from "./modules/ActiveTraining";
33
33
  import Training from "./modules/Training";
34
34
  import Hr from "./modules/Hr";
35
+ import SaleEvents from "./modules/SaleEvents";
35
36
 
36
37
  import Course from "./objects/Course";
37
38
  import CourseReservation from "./objects/CourseReservation";
@@ -108,6 +109,7 @@ export
108
109
  ApiFile,
109
110
  ApplicationInfo,
110
111
  Hr,
112
+ SaleEvents,
111
113
 
112
114
  Course,
113
115
  CourseReservation,
@@ -0,0 +1,25 @@
1
+ /*
2
+ * Copyright (c) 2026 iTutoring s.r.o.
3
+ *
4
+ * This source code is proprietary and confidential.
5
+ * Unauthorized copying, distribution, or disclosure is prohibited.
6
+ *
7
+ */
8
+
9
+ import APIController from "../apiController";
10
+
11
+ class SaleEvents
12
+ {
13
+ static #MODULE = "SaleEvents";
14
+
15
+ static #GET_SALE_EVENTS = "GetSaleEvents";
16
+
17
+ static async getSaleEvents(max = -1, offset = 0)
18
+ {
19
+ var res = await APIController.Get(this.#MODULE, this.#GET_SALE_EVENTS, { max: max, offset: offset });
20
+ return res;
21
+ }
22
+
23
+ }
24
+
25
+ export default SaleEvents;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itutoring/itutoring_application_js_api",
3
- "version": "1.25.5",
3
+ "version": "1.26.0",
4
4
  "description": "Javascript API for iTutoring Application",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",