@itutoring/itutoring_application_js_api 1.11.0 → 1.11.2

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 (51) hide show
  1. package/.idea/iTutoring_Application_API-js.iml +11 -11
  2. package/.idea/modules.xml +7 -7
  3. package/.idea/vcs.xml +5 -5
  4. package/CookiesManager.js +47 -47
  5. package/LICENSE +21 -21
  6. package/README.md +6 -6
  7. package/apiController.js +436 -436
  8. package/cache.js +31 -31
  9. package/index.d.ts +116 -116
  10. package/index.js +114 -114
  11. package/modules/AiAssist.js +31 -31
  12. package/modules/Authentication.js +86 -86
  13. package/modules/Cart.js +83 -81
  14. package/modules/Checkout.js +60 -50
  15. package/modules/CustomerAuth.js +57 -57
  16. package/modules/CustomerLessonManager.js +29 -29
  17. package/modules/CustomerPortal.js +31 -31
  18. package/modules/FAQ.js +39 -39
  19. package/modules/GoogleReviews.js +36 -36
  20. package/modules/Inventory.js +51 -51
  21. package/modules/LectorDatabase.js +185 -185
  22. package/modules/LectorsCalendar.js +67 -67
  23. package/modules/LessonInventory.js +47 -47
  24. package/modules/MarketplaceController.js +86 -86
  25. package/modules/Models.js +380 -380
  26. package/modules/Payments.js +75 -75
  27. package/modules/Pricing.js +70 -70
  28. package/modules/ReservationSystem.js +48 -48
  29. package/modules/Reviews.js +53 -53
  30. package/modules/SubjectManager.js +139 -139
  31. package/modules/TableExplorer.js +246 -246
  32. package/modules/TeacherAuth.js +57 -57
  33. package/modules/TeacherProfileModule.js +299 -299
  34. package/modules/TeacherProfiles.js +60 -60
  35. package/modules/Version.js +24 -24
  36. package/modules/WebController.js +37 -37
  37. package/objects/AttendanceEvent.js +39 -39
  38. package/objects/AuthUser.js +24 -24
  39. package/objects/Course.js +38 -38
  40. package/objects/CourseReservation.js +22 -22
  41. package/objects/Customer.js +20 -20
  42. package/objects/Enums.js +62 -62
  43. package/objects/Event.js +125 -125
  44. package/objects/Reservation.js +42 -42
  45. package/objects/Subject.js +24 -24
  46. package/objects/Teacher.js +18 -18
  47. package/objects/TeacherProfile.js +17 -17
  48. package/objects/Webinar.js +25 -25
  49. package/objects/billingInfo.js +29 -29
  50. package/package.json +1 -1
  51. package/toolkit/Toolkit.jsx +51 -51
@@ -1,87 +1,87 @@
1
- /*
2
- * Copyright (C) 2025 iTutoring s.r.o.
3
- * All rights reserved.
4
- *
5
- *
6
- */
7
-
8
- import APIController from "../apiController";
9
-
10
- class MarketplaceController
11
- {
12
- static #MODULE = "MarketplaceController";
13
-
14
- static #GET_HOME_PAGE = "GetHome";
15
- static #GET_TUTORING_LECTURES = "GetTutoringLectures";
16
- static #GET_PZK = "GetPzk";
17
- static #GET_VS_EXAMS = "GetVsExams";
18
- static #GET_KROUZKY = "GetKrouzky";
19
- static #SEARCH = "Search";
20
- static #GET_PRODUCT_PAGE = "GetProductPage";
21
-
22
- static async getProductPage(sku, instanceId = null)
23
- {
24
- var res = await APIController.Get(this.#MODULE, this.#GET_PRODUCT_PAGE, {
25
- 'sku': sku,
26
- 'instanceId': instanceId
27
- });
28
- return JSON.parse(res);
29
- }
30
-
31
- static async getHome()
32
- {
33
- var res = await APIController.Get(this.#MODULE, this.#GET_HOME_PAGE);
34
- return JSON.parse(res);
35
- }
36
-
37
- static async getTutoringLectures(category, level, max, offset)
38
- {
39
- var res = await APIController.Get(this.#MODULE, this.#GET_TUTORING_LECTURES, {
40
- 'category': category,
41
- 'level': level,
42
- 'max': max,
43
- 'offset': offset
44
- });
45
- return JSON.parse(res);
46
- }
47
-
48
- static async getPzk(lessonType, max, offset, obor = null, dayIndex = null, lessonCount = null, subject = null)
49
- {
50
- var res = await APIController.Get(this.#MODULE, this.#GET_PZK, {
51
- 'lessonType': lessonType,
52
- 'max': max,
53
- 'offset': offset,
54
- 'obor': obor,
55
- 'dayIndex': dayIndex,
56
- 'lessonCount': lessonCount,
57
- 'subject': subject
58
- });
59
- return JSON.parse(res);
60
- }
61
-
62
- static async getVsExams()
63
- {
64
- var res = await APIController.Get(this.#MODULE, this.#GET_VS_EXAMS);
65
- return JSON.parse(res);
66
- }
67
-
68
- static async getKrouzky(subcategory = null, dayIndex = null, level = null)
69
- {
70
- var res = await APIController.Get(this.#MODULE, this.#GET_KROUZKY, {
71
- 'subcategory': subcategory,
72
- 'dayIndex': dayIndex,
73
- 'level': level
74
- });
75
- return JSON.parse(res);
76
- }
77
-
78
- static async search(query)
79
- {
80
- var res = await APIController.Get(this.#MODULE, this.#SEARCH, {
81
- 'query': query
82
- });
83
- return JSON.parse(res);
84
- }
85
- }
86
-
1
+ /*
2
+ * Copyright (C) 2025 iTutoring s.r.o.
3
+ * All rights reserved.
4
+ *
5
+ *
6
+ */
7
+
8
+ import APIController from "../apiController";
9
+
10
+ class MarketplaceController
11
+ {
12
+ static #MODULE = "MarketplaceController";
13
+
14
+ static #GET_HOME_PAGE = "GetHome";
15
+ static #GET_TUTORING_LECTURES = "GetTutoringLectures";
16
+ static #GET_PZK = "GetPzk";
17
+ static #GET_VS_EXAMS = "GetVsExams";
18
+ static #GET_KROUZKY = "GetKrouzky";
19
+ static #SEARCH = "Search";
20
+ static #GET_PRODUCT_PAGE = "GetProductPage";
21
+
22
+ static async getProductPage(sku, instanceId = null)
23
+ {
24
+ var res = await APIController.Get(this.#MODULE, this.#GET_PRODUCT_PAGE, {
25
+ 'sku': sku,
26
+ 'instanceId': instanceId
27
+ });
28
+ return JSON.parse(res);
29
+ }
30
+
31
+ static async getHome()
32
+ {
33
+ var res = await APIController.Get(this.#MODULE, this.#GET_HOME_PAGE);
34
+ return JSON.parse(res);
35
+ }
36
+
37
+ static async getTutoringLectures(category, level, max, offset)
38
+ {
39
+ var res = await APIController.Get(this.#MODULE, this.#GET_TUTORING_LECTURES, {
40
+ 'category': category,
41
+ 'level': level,
42
+ 'max': max,
43
+ 'offset': offset
44
+ });
45
+ return JSON.parse(res);
46
+ }
47
+
48
+ static async getPzk(lessonType, max, offset, obor = null, dayIndex = null, lessonCount = null, subject = null)
49
+ {
50
+ var res = await APIController.Get(this.#MODULE, this.#GET_PZK, {
51
+ 'lessonType': lessonType,
52
+ 'max': max,
53
+ 'offset': offset,
54
+ 'obor': obor,
55
+ 'dayIndex': dayIndex,
56
+ 'lessonCount': lessonCount,
57
+ 'subject': subject
58
+ });
59
+ return JSON.parse(res);
60
+ }
61
+
62
+ static async getVsExams()
63
+ {
64
+ var res = await APIController.Get(this.#MODULE, this.#GET_VS_EXAMS);
65
+ return JSON.parse(res);
66
+ }
67
+
68
+ static async getKrouzky(subcategory = null, dayIndex = null, level = null)
69
+ {
70
+ var res = await APIController.Get(this.#MODULE, this.#GET_KROUZKY, {
71
+ 'subcategory': subcategory,
72
+ 'dayIndex': dayIndex,
73
+ 'level': level
74
+ });
75
+ return JSON.parse(res);
76
+ }
77
+
78
+ static async search(query)
79
+ {
80
+ var res = await APIController.Get(this.#MODULE, this.#SEARCH, {
81
+ 'query': query
82
+ });
83
+ return JSON.parse(res);
84
+ }
85
+ }
86
+
87
87
  export default MarketplaceController;