@itutoring/itutoring_application_js_api 1.28.2 → 1.29.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
@@ -38,6 +38,7 @@ import Training from "./modules/Training";
38
38
  import Hr from "./modules/Hr";
39
39
  import SaleEvents from "./modules/SaleEvents";
40
40
  import Accounting from "./modules/Accounting";
41
+ import WebConfig from "./modules/WebConfig";
41
42
 
42
43
  import Course from "./objects/Course";
43
44
  import CourseReservation from "./objects/CourseReservation";
@@ -113,6 +114,7 @@ export
113
114
  Hr,
114
115
  SaleEvents,
115
116
  Accounting,
117
+ WebConfig,
116
118
 
117
119
  Course,
118
120
  CourseReservation,
package/index.js CHANGED
@@ -34,6 +34,7 @@ import Training from "./modules/Training";
34
34
  import Hr from "./modules/Hr";
35
35
  import SaleEvents from "./modules/SaleEvents";
36
36
  import Accounting from "./modules/Accounting";
37
+ import WebConfig from "./modules/WebConfig";
37
38
 
38
39
  import Course from "./objects/Course";
39
40
  import CourseReservation from "./objects/CourseReservation";
@@ -112,6 +113,7 @@ export
112
113
  Hr,
113
114
  SaleEvents,
114
115
  Accounting,
116
+ WebConfig,
115
117
 
116
118
  Course,
117
119
  CourseReservation,
@@ -2,7 +2,6 @@
2
2
  * Copyright (C) 2026 iTutoring s.r.o.
3
3
  * All rights reserved.
4
4
  *
5
- *
6
5
  */
7
6
 
8
7
  import APIController from "../apiController";
@@ -17,6 +17,13 @@ class Inventory
17
17
  static #SALE_COUPON_EXISTS = "SaleCouponExists";
18
18
  static #SEARCH = "Search";
19
19
  static #GET_ITEM = "GetItem";
20
+ static #GET_ITEM_COUNT = "GetItemCount";
21
+
22
+ static async getItemCount()
23
+ {
24
+ var count = await APIController.Get(this.#MODULE, this.#GET_ITEM_COUNT);
25
+ return count;
26
+ }
20
27
 
21
28
  static async getItem(id)
22
29
  {
@@ -15,6 +15,13 @@ class LessonInventory
15
15
  static #GET_SUBJECT = "GetSubject";
16
16
  static #GET_SUBJECT_NAME = "GetSubjectName";
17
17
  static #SEARCH = "Search";
18
+ static #GET_SUBJECT_COUNT = "GetSubjectCount";
19
+
20
+ static async getSubjectCount()
21
+ {
22
+ var count = await APIController.Get(this.#MODULE, this.#GET_SUBJECT_COUNT);
23
+ return count;
24
+ }
18
25
 
19
26
  static async getAvailableSubjects(category = 'ANY', max = -1, offset = 0, filter = [])
20
27
  {
@@ -22,7 +22,23 @@ class MarketplaceController
22
22
  static #GET_ORDER_DETAIL = "GetOrderDetail";
23
23
  static #GET_INQUIRY_ACCEPT_PAGE = "GetInquiryAcceptPage";
24
24
  static #GET_LECTURE_PACKAGE_SELECT_PAGE = "GetLecturePackageSelectPage";
25
- static $GET_OFFER_STATUS_PAGE = "GetOfferStatusPage";
25
+ static #GET_OFFER_STATUS_PAGE = "GetOfferStatusPage";
26
+ static #GET_MATURITA = "GetMaturita";
27
+ static #AUTOCOMPLETE_SEARCH = "AutocompleteSearch";
28
+
29
+ static async autocompleteSearch(query)
30
+ {
31
+ var res = await APIController.Get(this.#MODULE, this.#AUTOCOMPLETE_SEARCH, {
32
+ 'query': query
33
+ });
34
+ return JSON.parse(res);
35
+ }
36
+
37
+ static async getMaturita()
38
+ {
39
+ var res = await APIController.Get(this.#MODULE, this.#GET_MATURITA);
40
+ return JSON.parse(res);
41
+ }
26
42
 
27
43
  static async getTabory(place = null, turnus = null)
28
44
  {
@@ -35,7 +51,7 @@ class MarketplaceController
35
51
 
36
52
  static async getOfferStatusPage(inquiryId, orderId = null)
37
53
  {
38
- var res = await APIController.Get(this.#MODULE, this.$GET_OFFER_STATUS_PAGE, {
54
+ var res = await APIController.Get(this.#MODULE, this.#GET_OFFER_STATUS_PAGE, {
39
55
  'inquiryId': inquiryId,
40
56
  'orderId': orderId
41
57
  });
@@ -0,0 +1,21 @@
1
+ /*
2
+ * Copyright (C) 2026 iTutoring s.r.o.
3
+ * All rights reserved.
4
+ *
5
+ */
6
+
7
+ import APIController from "../apiController";
8
+
9
+ class WebConfig
10
+ {
11
+ static #MODULE = "WebConfig";
12
+
13
+ static #GET_MARKETPLACE_HERO = "GetMarketplaceHero";
14
+
15
+ static async GetMarketplaceHero()
16
+ {
17
+ return await APIController.Get(this.#MODULE, this.#GET_MARKETPLACE_HERO);
18
+ }
19
+ }
20
+
21
+ export default WebConfig;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itutoring/itutoring_application_js_api",
3
- "version": "1.28.2",
3
+ "version": "1.29.0",
4
4
  "description": "Javascript API for iTutoring Application",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",