@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.
- package/.idea/iTutoring_Application_API-js.iml +11 -11
- package/.idea/modules.xml +7 -7
- package/.idea/vcs.xml +5 -5
- package/CookiesManager.js +47 -47
- package/LICENSE +21 -21
- package/README.md +6 -6
- package/apiController.js +436 -436
- package/cache.js +31 -31
- package/index.d.ts +116 -116
- package/index.js +114 -114
- package/modules/AiAssist.js +31 -31
- package/modules/Authentication.js +86 -86
- package/modules/Cart.js +83 -81
- package/modules/Checkout.js +60 -50
- package/modules/CustomerAuth.js +57 -57
- package/modules/CustomerLessonManager.js +29 -29
- package/modules/CustomerPortal.js +31 -31
- package/modules/FAQ.js +39 -39
- package/modules/GoogleReviews.js +36 -36
- package/modules/Inventory.js +51 -51
- package/modules/LectorDatabase.js +185 -185
- package/modules/LectorsCalendar.js +67 -67
- package/modules/LessonInventory.js +47 -47
- package/modules/MarketplaceController.js +86 -86
- package/modules/Models.js +380 -380
- package/modules/Payments.js +75 -75
- package/modules/Pricing.js +70 -70
- package/modules/ReservationSystem.js +48 -48
- package/modules/Reviews.js +53 -53
- package/modules/SubjectManager.js +139 -139
- package/modules/TableExplorer.js +246 -246
- package/modules/TeacherAuth.js +57 -57
- package/modules/TeacherProfileModule.js +299 -299
- package/modules/TeacherProfiles.js +60 -60
- package/modules/Version.js +24 -24
- package/modules/WebController.js +37 -37
- package/objects/AttendanceEvent.js +39 -39
- package/objects/AuthUser.js +24 -24
- package/objects/Course.js +38 -38
- package/objects/CourseReservation.js +22 -22
- package/objects/Customer.js +20 -20
- package/objects/Enums.js +62 -62
- package/objects/Event.js +125 -125
- package/objects/Reservation.js +42 -42
- package/objects/Subject.js +24 -24
- package/objects/Teacher.js +18 -18
- package/objects/TeacherProfile.js +17 -17
- package/objects/Webinar.js +25 -25
- package/objects/billingInfo.js +29 -29
- package/package.json +1 -1
- 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;
|