@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,32 +1,32 @@
1
- /*
2
- * Copyright (C) 2024 iTutoring s.r.o.
3
- * All rights reserved.
4
- *
5
-
6
- *
7
- */
8
-
9
- import APIController from "./../apiController";
10
-
11
- class CustomerPortal
12
- {
13
- /**
14
- * Respective module name for this class
15
- */
16
- static #MODULE = "CustomerPortal";
17
-
18
- // All method names
19
- static #GET_CUSTOMER_INFO = "GetCustomerInfo";
20
-
21
- /**
22
- * Customer must be logged in otherwise this method will return null object.
23
- * @returns Customer (CRM Object)
24
- */
25
- static async GetCustomerInfo()
26
- {
27
- var customer = await APIController.Get(this.#MODULE, this.#GET_CUSTOMER_INFO);
28
- return customer;
29
- }
30
- }
31
-
1
+ /*
2
+ * Copyright (C) 2024 iTutoring s.r.o.
3
+ * All rights reserved.
4
+ *
5
+
6
+ *
7
+ */
8
+
9
+ import APIController from "./../apiController";
10
+
11
+ class CustomerPortal
12
+ {
13
+ /**
14
+ * Respective module name for this class
15
+ */
16
+ static #MODULE = "CustomerPortal";
17
+
18
+ // All method names
19
+ static #GET_CUSTOMER_INFO = "GetCustomerInfo";
20
+
21
+ /**
22
+ * Customer must be logged in otherwise this method will return null object.
23
+ * @returns Customer (CRM Object)
24
+ */
25
+ static async GetCustomerInfo()
26
+ {
27
+ var customer = await APIController.Get(this.#MODULE, this.#GET_CUSTOMER_INFO);
28
+ return customer;
29
+ }
30
+ }
31
+
32
32
  export default CustomerPortal;
package/modules/FAQ.js CHANGED
@@ -1,40 +1,40 @@
1
- /*
2
- * Copyright (C) 2024 iTutoring s.r.o.
3
- * All rights reserved.
4
- *
5
-
6
- *
7
- */
8
-
9
-
10
- import APIController from "../apiController";
11
-
12
- class FAQ
13
- {
14
- static #MODULE = "Faq";
15
-
16
- static #GET_FAQ = "GetFAQ";
17
- static #ASK_QUESTION = "AskQuestion";
18
-
19
- /**
20
- * desc: Get FAQ
21
- * @returns
22
- */
23
- static async GetFAQ()
24
- {
25
- const faq = await APIController.Get(this.#MODULE, this.#GET_FAQ, {}, true);
26
-
27
- return faq;
28
- }
29
-
30
- static async AskQuestion(question)
31
- {
32
- const res = await APIController.Post(this.#MODULE, this.#ASK_QUESTION, {
33
- 'question': question
34
- });
35
-
36
- return res;
37
- }
38
- }
39
-
1
+ /*
2
+ * Copyright (C) 2024 iTutoring s.r.o.
3
+ * All rights reserved.
4
+ *
5
+
6
+ *
7
+ */
8
+
9
+
10
+ import APIController from "../apiController";
11
+
12
+ class FAQ
13
+ {
14
+ static #MODULE = "Faq";
15
+
16
+ static #GET_FAQ = "GetFAQ";
17
+ static #ASK_QUESTION = "AskQuestion";
18
+
19
+ /**
20
+ * desc: Get FAQ
21
+ * @returns
22
+ */
23
+ static async GetFAQ()
24
+ {
25
+ const faq = await APIController.Get(this.#MODULE, this.#GET_FAQ, {}, true);
26
+
27
+ return faq;
28
+ }
29
+
30
+ static async AskQuestion(question)
31
+ {
32
+ const res = await APIController.Post(this.#MODULE, this.#ASK_QUESTION, {
33
+ 'question': question
34
+ });
35
+
36
+ return res;
37
+ }
38
+ }
39
+
40
40
  export default FAQ;
@@ -1,37 +1,37 @@
1
- /*
2
- * Copyright (C) 2024 iTutoring s.r.o.
3
- * All rights reserved.
4
- *
5
-
6
- *
7
- */
8
-
9
-
10
- import APIController from "../apiController";
11
-
12
-
13
- /**
14
- * @deprecated Use general Reviews class instead.
15
- */
16
- class GoogleReviews
17
- {
18
- static #MODULE = "Reviews";
19
-
20
- static #GET_RANDOM_REVIEW = "GetRandomReview";
21
-
22
- /**
23
- * @deprecated Use general Reviews class instead.
24
- * @param {*} last_review_timestamp
25
- * @returns
26
- */
27
- static async GetRandomReview(last_review_timestamp = -1)
28
- {
29
- var review = await APIController.Get(this.#MODULE, this.#GET_RANDOM_REVIEW, {
30
- "last_review": last_review_timestamp,
31
- }, true);
32
-
33
- return JSON.parse(review);
34
- }
35
- }
36
-
1
+ /*
2
+ * Copyright (C) 2024 iTutoring s.r.o.
3
+ * All rights reserved.
4
+ *
5
+
6
+ *
7
+ */
8
+
9
+
10
+ import APIController from "../apiController";
11
+
12
+
13
+ /**
14
+ * @deprecated Use general Reviews class instead.
15
+ */
16
+ class GoogleReviews
17
+ {
18
+ static #MODULE = "Reviews";
19
+
20
+ static #GET_RANDOM_REVIEW = "GetRandomReview";
21
+
22
+ /**
23
+ * @deprecated Use general Reviews class instead.
24
+ * @param {*} last_review_timestamp
25
+ * @returns
26
+ */
27
+ static async GetRandomReview(last_review_timestamp = -1)
28
+ {
29
+ var review = await APIController.Get(this.#MODULE, this.#GET_RANDOM_REVIEW, {
30
+ "last_review": last_review_timestamp,
31
+ }, true);
32
+
33
+ return JSON.parse(review);
34
+ }
35
+ }
36
+
37
37
  export default GoogleReviews;
@@ -1,52 +1,52 @@
1
- /*
2
- * Copyright (C) 2024 iTutoring s.r.o.
3
- * All rights reserved.
4
- *
5
-
6
- *
7
- */
8
-
9
-
10
- import APIController from "../apiController";
11
-
12
- class Inventory
13
- {
14
- static #MODULE = "Inventory";
15
-
16
- static #GET_AVAILABLE_ITEMS = "GetAvailableItems";
17
- static #SALE_COUPON_EXISTS = "SaleCouponExists";
18
- static #SEARCH = "Search";
19
-
20
- static async saleCouponExists(code)
21
- {
22
- var exists = await APIController.Get(this.#MODULE, this.#SALE_COUPON_EXISTS, {
23
- 'code': code,
24
- });
25
-
26
- return exists;
27
- }
28
-
29
- static async getAvailableItems(category = "ANY", max = -1, offset = 0, filter = {}, startingWithinHours = -1)
30
- {
31
- var items = await APIController.Get(this.#MODULE, this.#GET_AVAILABLE_ITEMS, {
32
- 'category': category,
33
- 'max': max,
34
- 'offset': offset,
35
- 'filter': JSON.stringify(filter),
36
- 'startingWithinHours': startingWithinHours
37
- });
38
-
39
- return items;
40
- }
41
-
42
- static async search(query)
43
- {
44
- var items = await APIController.Get(this.#MODULE, this.#SEARCH, {
45
- 'query': query
46
- });
47
-
48
- return items;
49
- }
50
- }
51
-
1
+ /*
2
+ * Copyright (C) 2024 iTutoring s.r.o.
3
+ * All rights reserved.
4
+ *
5
+
6
+ *
7
+ */
8
+
9
+
10
+ import APIController from "../apiController";
11
+
12
+ class Inventory
13
+ {
14
+ static #MODULE = "Inventory";
15
+
16
+ static #GET_AVAILABLE_ITEMS = "GetAvailableItems";
17
+ static #SALE_COUPON_EXISTS = "SaleCouponExists";
18
+ static #SEARCH = "Search";
19
+
20
+ static async saleCouponExists(code)
21
+ {
22
+ var exists = await APIController.Get(this.#MODULE, this.#SALE_COUPON_EXISTS, {
23
+ 'code': code,
24
+ });
25
+
26
+ return exists;
27
+ }
28
+
29
+ static async getAvailableItems(category = "ANY", max = -1, offset = 0, filter = {}, startingWithinHours = -1)
30
+ {
31
+ var items = await APIController.Get(this.#MODULE, this.#GET_AVAILABLE_ITEMS, {
32
+ 'category': category,
33
+ 'max': max,
34
+ 'offset': offset,
35
+ 'filter': JSON.stringify(filter),
36
+ 'startingWithinHours': startingWithinHours
37
+ });
38
+
39
+ return items;
40
+ }
41
+
42
+ static async search(query)
43
+ {
44
+ var items = await APIController.Get(this.#MODULE, this.#SEARCH, {
45
+ 'query': query
46
+ });
47
+
48
+ return items;
49
+ }
50
+ }
51
+
52
52
  export default Inventory;