@itutoring/itutoring_application_js_api 1.6.8 → 1.6.10

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 (46) hide show
  1. package/CookiesManager.js +9 -0
  2. package/apiController.js +17 -0
  3. package/cache.js +9 -0
  4. package/index.d.ts +9 -0
  5. package/index.js +9 -0
  6. package/modules/AttendanceManager.js +9 -0
  7. package/modules/Authentication.js +9 -0
  8. package/modules/CustomerAuth.js +9 -0
  9. package/modules/CustomerEduPortal.js +9 -0
  10. package/modules/CustomerPortal.js +8 -0
  11. package/modules/Email.js +9 -0
  12. package/modules/EventManager.js +9 -0
  13. package/modules/FAQ.js +9 -0
  14. package/modules/GoogleReviews.js +10 -0
  15. package/modules/Inventory.js +9 -1
  16. package/modules/LectorDatabase.js +9 -0
  17. package/modules/LessonManager.js +9 -0
  18. package/modules/Models.js +247 -0
  19. package/modules/Newsletters.js +9 -0
  20. package/modules/Payments.js +9 -0
  21. package/modules/Pricing.js +9 -0
  22. package/modules/ReservationSystem.js +9 -0
  23. package/modules/Reviews.js +9 -0
  24. package/modules/SubjectManager.js +9 -0
  25. package/modules/TableExplorer.js +207 -0
  26. package/modules/TeacherAuth.js +9 -0
  27. package/modules/TeacherManager.js +9 -1
  28. package/modules/TeacherPortal.js +9 -1
  29. package/modules/TeacherProfileModule.js +9 -0
  30. package/modules/TeacherProfiles.js +9 -0
  31. package/modules/Version.js +9 -0
  32. package/modules/WebinarsSystem.js +9 -0
  33. package/objects/AttendanceEvent.js +9 -0
  34. package/objects/AuthUser.js +9 -0
  35. package/objects/Course.js +8 -0
  36. package/objects/CourseReservation.js +8 -0
  37. package/objects/Customer.js +11 -0
  38. package/objects/Enums.js +9 -0
  39. package/objects/Event.js +11 -1
  40. package/objects/Reservation.js +9 -0
  41. package/objects/Subject.js +9 -0
  42. package/objects/Teacher.js +9 -0
  43. package/objects/TeacherProfile.js +9 -0
  44. package/objects/Webinar.js +9 -0
  45. package/objects/billingInfo.js +9 -0
  46. package/package.json +1 -1
package/CookiesManager.js CHANGED
@@ -1,3 +1,12 @@
1
+ /*
2
+ * Copyright (C) 2024 iTutoring s.r.o.
3
+ * All rights reserved.
4
+ *
5
+
6
+ *
7
+ */
8
+
9
+
1
10
  class CookiesManager
2
11
  {
3
12
  static SetCookie(name, value, expiracy)
package/apiController.js CHANGED
@@ -1,3 +1,12 @@
1
+ /*
2
+ * Copyright (C) 2024 iTutoring s.r.o.
3
+ * All rights reserved.
4
+ *
5
+
6
+ *
7
+ */
8
+
9
+
1
10
  import CookiesManager from "./CookiesManager";
2
11
  import APICache from "./cache";
3
12
  import { R_KEYs } from "./objects/Enums";
@@ -13,6 +22,7 @@ class APIController
13
22
  static UserSource = null;
14
23
 
15
24
  static onErrorReceived = null
25
+ static onConfimationReceived = null;
16
26
 
17
27
  /**
18
28
  * R_KEY MUST be loaded before calling this method!
@@ -78,6 +88,13 @@ class APIController
78
88
  {
79
89
  window.location.href = json.url;
80
90
  }
91
+ if (json.data['conf_request'] !== undefined)
92
+ {
93
+ if (APIController.onConfimationReceived !== null && APIController.onConfimationReceived !== undefined)
94
+ {
95
+ APIController.onConfimationReceived(json.data['conf_request']);
96
+ }
97
+ }
81
98
  return (json.data);
82
99
  }
83
100
  if (json.code === 400)
package/cache.js CHANGED
@@ -1,3 +1,12 @@
1
+ /*
2
+ * Copyright (C) 2024 iTutoring s.r.o.
3
+ * All rights reserved.
4
+ *
5
+
6
+ *
7
+ */
8
+
9
+
1
10
  class APICache
2
11
  {
3
12
  static CacheStorage = {}
package/index.d.ts CHANGED
@@ -1,3 +1,12 @@
1
+ /*
2
+ * Copyright (C) 2024 iTutoring s.r.o.
3
+ * All rights reserved.
4
+ *
5
+
6
+ *
7
+ */
8
+
9
+
1
10
  declare module 'iTutoring Application JS API';
2
11
 
3
12
  "use strict";
package/index.js CHANGED
@@ -1,3 +1,12 @@
1
+ /*
2
+ * Copyright (C) 2024 iTutoring s.r.o.
3
+ * All rights reserved.
4
+ *
5
+
6
+ *
7
+ */
8
+
9
+
1
10
  "use strict";
2
11
 
3
12
  import APIController from "./apiController";
@@ -1,3 +1,12 @@
1
+ /*
2
+ * Copyright (C) 2024 iTutoring s.r.o.
3
+ * All rights reserved.
4
+ *
5
+
6
+ *
7
+ */
8
+
9
+
1
10
  import APIController from "../apiController";
2
11
  import AttendanceEvent from "../objects/AttendanceEvent";
3
12
 
@@ -1,3 +1,12 @@
1
+ /*
2
+ * Copyright (C) 2024 iTutoring s.r.o.
3
+ * All rights reserved.
4
+ *
5
+
6
+ *
7
+ */
8
+
9
+
1
10
  import APIController from "../apiController";
2
11
  import AuthUser from "../objects/AuthUser";
3
12
  import TeacherProfile from "../objects/TeacherProfile";
@@ -1,3 +1,12 @@
1
+ /*
2
+ * Copyright (C) 2024 iTutoring s.r.o.
3
+ * All rights reserved.
4
+ *
5
+
6
+ *
7
+ */
8
+
9
+
1
10
  import APIController from "./../apiController";
2
11
  //import EventHandling from "./EventHandling";
3
12
 
@@ -1,3 +1,12 @@
1
+ /*
2
+ * Copyright (C) 2024 iTutoring s.r.o.
3
+ * All rights reserved.
4
+ *
5
+
6
+ *
7
+ */
8
+
9
+
1
10
  import APIController from "../apiController";
2
11
  import iEvent from "../objects/Event";
3
12
 
@@ -1,3 +1,11 @@
1
+ /*
2
+ * Copyright (C) 2024 iTutoring s.r.o.
3
+ * All rights reserved.
4
+ *
5
+
6
+ *
7
+ */
8
+
1
9
  import APIController from "./../apiController";
2
10
  import Customer from "./../objects/Customer";
3
11
 
package/modules/Email.js CHANGED
@@ -1,3 +1,12 @@
1
+ /*
2
+ * Copyright (C) 2024 iTutoring s.r.o.
3
+ * All rights reserved.
4
+ *
5
+
6
+ *
7
+ */
8
+
9
+
1
10
  import APIController from "./../apiController";
2
11
 
3
12
  class Email
@@ -1,3 +1,12 @@
1
+ /*
2
+ * Copyright (C) 2024 iTutoring s.r.o.
3
+ * All rights reserved.
4
+ *
5
+
6
+ *
7
+ */
8
+
9
+
1
10
  import APIController from "../apiController";
2
11
 
3
12
  class EventManager
package/modules/FAQ.js CHANGED
@@ -1,3 +1,12 @@
1
+ /*
2
+ * Copyright (C) 2024 iTutoring s.r.o.
3
+ * All rights reserved.
4
+ *
5
+
6
+ *
7
+ */
8
+
9
+
1
10
  import APIController from "../apiController";
2
11
 
3
12
  class FAQ
@@ -1,5 +1,15 @@
1
+ /*
2
+ * Copyright (C) 2024 iTutoring s.r.o.
3
+ * All rights reserved.
4
+ *
5
+
6
+ *
7
+ */
8
+
9
+
1
10
  import APIController from "../apiController";
2
11
 
12
+
3
13
  /**
4
14
  * @deprecated Use general Reviews class instead.
5
15
  */
@@ -1,5 +1,13 @@
1
+ /*
2
+ * Copyright (C) 2024 iTutoring s.r.o.
3
+ * All rights reserved.
4
+ *
5
+
6
+ *
7
+ */
8
+
9
+
1
10
  import APIController from "../apiController";
2
- import APICache from "../cache";
3
11
 
4
12
  class Inventory
5
13
  {
@@ -1,3 +1,12 @@
1
+ /*
2
+ * Copyright (C) 2024 iTutoring s.r.o.
3
+ * All rights reserved.
4
+ *
5
+
6
+ *
7
+ */
8
+
9
+
1
10
  import APIController from "../apiController";
2
11
 
3
12
  class LectorDatabase
@@ -1,3 +1,12 @@
1
+ /*
2
+ * Copyright (C) 2024 iTutoring s.r.o.
3
+ * All rights reserved.
4
+ *
5
+
6
+ *
7
+ */
8
+
9
+
1
10
  import APIController from "../apiController";
2
11
  import iEvent from "../objects/Event";
3
12
 
@@ -0,0 +1,247 @@
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 Models
13
+ {
14
+ static #MODULE = 'Models';
15
+
16
+ static #SET_EVENT = 'SetEvent';
17
+ static #GET_EVENT = 'GetEvent';
18
+ static #DELETE_EVENT = 'DeleteEvent';
19
+ static #SET_INQUIRY = 'SetInquiry';
20
+ static #GET_INQUIRY = 'GetInquiry';
21
+ static #DELETE_INQUIRY = 'DeleteInquiry';
22
+ static #SET_OFFER = 'SetOffer';
23
+ static #GET_OFFER = 'GetOffer';
24
+ static #DELETE_OFFER = 'DeleteOffer';
25
+ static #SET_CUSTOMER = 'SetCustomer';
26
+ static #GET_CUSTOMER = 'GetCustomer';
27
+ static #DELETE_CUSTOMER = 'DeleteCustomer';
28
+ static #SET_STUDENT = 'SetStudent';
29
+ static #GET_STUDENT = 'GetStudent';
30
+ static #DELETE_STUDENT = 'DeleteStudent';
31
+ static #SET_LECTURE = 'SetLecture';
32
+ static #GET_LECTURE = 'GetLecture';
33
+ static #DELETE_LECTURE = 'DeleteLecture';
34
+ static #SET_LECTURE_ATTENDANCE = 'SetLectureAttendance';
35
+ static #GET_LECTURE_ATTENDANCE = 'GetLectureAttendance';
36
+ static #DELETE_LECTURE_ATTENDANCE = 'DeleteLectureAttendance';
37
+ static #GET_OFFERS_FOR_INQUIRY = 'GetOffersForInquiry';
38
+ static #GET_STUDENTS_FOR_CUSTOMER = 'GetStudentsForCustomer';
39
+ static #GET_LECTURES_FOR_EVENT = 'GetLecturesForEvent';
40
+ static #GET_ATTENDANCE_FOR_LECTURE = 'GetAttendanceForLecture';
41
+
42
+ static async setEvent(event)
43
+ {
44
+ await APIController.Post(this.#MODULE, this.#SET_EVENT, {
45
+ 'event': JSON.stringify(event),
46
+ });
47
+ }
48
+
49
+ static async getEvent(id)
50
+ {
51
+ var data = await APIController.Get(this.#MODULE, this.#GET_EVENT, {
52
+ 'id': id,
53
+ });
54
+
55
+ return data;
56
+ }
57
+
58
+ static async deleteEvent(id, toTrash = true)
59
+ {
60
+ await APIController.Post(this.#MODULE, this.#DELETE_EVENT, {
61
+ 'id': id,
62
+ 'toTrash': toTrash,
63
+ });
64
+ }
65
+
66
+ static async setInquiry(inquiry)
67
+ {
68
+ await APIController.Post(this.#MODULE, this.#SET_INQUIRY, {
69
+ 'inquiry': JSON.stringify(inquiry),
70
+ });
71
+ }
72
+
73
+ static async getInquiry(id)
74
+ {
75
+ var data = await APIController.Get(this.#MODULE, this.#GET_INQUIRY, {
76
+ 'id': id,
77
+ });
78
+
79
+ return data;
80
+ }
81
+
82
+ static async deleteInquiry(id, toTrash = true)
83
+ {
84
+ await APIController.Post(this.#MODULE, this.#DELETE_INQUIRY, {
85
+ 'id': id,
86
+ 'toTrash': toTrash,
87
+ });
88
+ }
89
+
90
+ static async setOffer(offer)
91
+ {
92
+ await APIController.Post(this.#MODULE, this.#SET_OFFER, {
93
+ 'offer': JSON.stringify(offer),
94
+ });
95
+ }
96
+
97
+ static async getOffer(id)
98
+ {
99
+ var data = await APIController.Get(this.#MODULE, this.#GET_OFFER, {
100
+ 'id': id,
101
+ });
102
+
103
+ return data;
104
+ }
105
+
106
+ static async deleteOffer(id, toTrash = true)
107
+ {
108
+ await APIController.Post(this.#MODULE, this.#DELETE_OFFER, {
109
+ 'id': id,
110
+ 'toTrash': toTrash,
111
+ });
112
+ }
113
+
114
+ static async setCustomer(customer)
115
+ {
116
+ await APIController.Post(this.#MODULE, this.#SET_CUSTOMER, {
117
+ 'customer': JSON.stringify(customer),
118
+ });
119
+ }
120
+
121
+ static async getCustomer(id)
122
+ {
123
+ var data = await APIController.Get(this.#MODULE, this.#GET_CUSTOMER, {
124
+ 'id': id,
125
+ });
126
+
127
+ return data;
128
+ }
129
+
130
+ static async deleteCustomer(id, toTrash = true)
131
+ {
132
+ await APIController.Post(this.#MODULE, this.#DELETE_CUSTOMER, {
133
+ 'id': id,
134
+ 'toTrash': toTrash,
135
+ });
136
+ }
137
+
138
+ static async setStudent(student)
139
+ {
140
+ await APIController.Post(this.#MODULE, this.#SET_STUDENT, {
141
+ 'student': JSON.stringify(student),
142
+ });
143
+ }
144
+
145
+ static async getStudent(id)
146
+ {
147
+ var data = await APIController.Get(this.#MODULE, this.#GET_STUDENT, {
148
+ 'id': id,
149
+ });
150
+
151
+ return data;
152
+ }
153
+
154
+ static async deleteStudent(id, toTrash = true)
155
+ {
156
+ await APIController.Post(this.#MODULE, this.#DELETE_STUDENT, {
157
+ 'id': id,
158
+ 'toTrash': toTrash,
159
+ });
160
+ }
161
+
162
+ static async setLecture(lecture)
163
+ {
164
+ await APIController.Post(this.#MODULE, this.#SET_LECTURE, {
165
+ 'lecture': JSON.stringify(lecture),
166
+ });
167
+ }
168
+
169
+ static async getLecture(id)
170
+ {
171
+ var data = await APIController.Get(this.#MODULE, this.#GET_LECTURE, {
172
+ 'id': id,
173
+ });
174
+
175
+ return data;
176
+ }
177
+
178
+ static async deleteLecture(id, toTrash = true)
179
+ {
180
+ await APIController.Post(this.#MODULE, this.#DELETE_LECTURE, {
181
+ 'id': id,
182
+ 'toTrash': toTrash,
183
+ });
184
+ }
185
+
186
+ static async setLectureAttendance(attendance)
187
+ {
188
+ await APIController.Post(this.#MODULE, this.#SET_LECTURE_ATTENDANCE, {
189
+ 'attendance': JSON.stringify(attendance),
190
+ });
191
+ }
192
+
193
+ static async getLectureAttendance(id)
194
+ {
195
+ var data = await APIController.Get(this.#MODULE, this.#GET_LECTURE_ATTENDANCE, {
196
+ 'id': id,
197
+ });
198
+
199
+ return data;
200
+ }
201
+
202
+ static async deleteLectureAttendance(id, toTrash = true)
203
+ {
204
+ await APIController.Post(this.#MODULE, this.#DELETE_LECTURE_ATTENDANCE, {
205
+ 'id': id,
206
+ 'toTrash': toTrash,
207
+ });
208
+ }
209
+
210
+ static async getOffersForInquiry(inquiryId)
211
+ {
212
+ var data = await APIController.Get(this.#MODULE, this.#GET_OFFERS_FOR_INQUIRY, {
213
+ 'inquiryId': inquiryId,
214
+ });
215
+
216
+ return data;
217
+ }
218
+
219
+ static async getStudentsForCustomer(customerId)
220
+ {
221
+ var data = await APIController.Get(this.#MODULE, this.#GET_STUDENTS_FOR_CUSTOMER, {
222
+ 'customerId': customerId,
223
+ });
224
+
225
+ return data;
226
+ }
227
+
228
+ static async getLecturesForEvent(eventId)
229
+ {
230
+ var data = await APIController.Get(this.#MODULE, this.#GET_LECTURES_FOR_EVENT, {
231
+ 'eventId': eventId,
232
+ });
233
+
234
+ return data;
235
+ }
236
+
237
+ static async getAttendanceForLecture(lectureId)
238
+ {
239
+ var data = await APIController.Get(this.#MODULE, this.#GET_ATTENDANCE_FOR_LECTURE, {
240
+ 'lectureId': lectureId,
241
+ });
242
+
243
+ return data;
244
+ }
245
+ }
246
+
247
+ export default Models;
@@ -1,3 +1,12 @@
1
+ /*
2
+ * Copyright (C) 2024 iTutoring s.r.o.
3
+ * All rights reserved.
4
+ *
5
+
6
+ *
7
+ */
8
+
9
+
1
10
  import APIController from "./../apiController";
2
11
 
3
12
  class Newsletters
@@ -1,3 +1,12 @@
1
+ /*
2
+ * Copyright (C) 2024 iTutoring s.r.o.
3
+ * All rights reserved.
4
+ *
5
+
6
+ *
7
+ */
8
+
9
+
1
10
  import APIController from "./../apiController";
2
11
 
3
12
  class Payments
@@ -1,3 +1,12 @@
1
+ /*
2
+ * Copyright (C) 2024 iTutoring s.r.o.
3
+ * All rights reserved.
4
+ *
5
+
6
+ *
7
+ */
8
+
9
+
1
10
  import APIController from "../apiController";
2
11
 
3
12
  class Pricing
@@ -1,3 +1,12 @@
1
+ /*
2
+ * Copyright (C) 2024 iTutoring s.r.o.
3
+ * All rights reserved.
4
+ *
5
+
6
+ *
7
+ */
8
+
9
+
1
10
  import BillingInfo from "../objects/billingInfo";
2
11
  import APIController from "./../apiController";
3
12
 
@@ -1,3 +1,12 @@
1
+ /*
2
+ * Copyright (C) 2024 iTutoring s.r.o.
3
+ * All rights reserved.
4
+ *
5
+
6
+ *
7
+ */
8
+
9
+
1
10
  import APIController from "../apiController";
2
11
 
3
12
  class Reviews
@@ -1,3 +1,12 @@
1
+ /*
2
+ * Copyright (C) 2024 iTutoring s.r.o.
3
+ * All rights reserved.
4
+ *
5
+
6
+ *
7
+ */
8
+
9
+
1
10
  import Subject from "./../objects/Subject";
2
11
  import APIController from "./../apiController";
3
12
  import Course from "./../objects/Course";
@@ -0,0 +1,207 @@
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 TableExplorer
13
+ {
14
+ static #MODULE = "TableExplorer";
15
+
16
+ static #CREATE_INQUIRY_EXPLORER = "CreateInquiryExplorer";
17
+ static #CREATE_EVENT_EXPLORER = "CreateEventExplorer";
18
+ static #CREATE_OFFER_EXPLORER = "CreateOfferExplorer";
19
+ static #CREATE_CUSTOMER_EXPLORER = "CreateCustomerExplorer";
20
+ static #CREATE_LECTURE_EXPLORER = "CreateLectureExplorer";
21
+ static #CREATE_LECTURE_ATTENDANCE_EXPLORER = "CreateLectureAttendanceExplorer";
22
+ static #CREATE_STUDENT_EXPLORER = "CreateStudentExplorer";
23
+
24
+ static #CHECK_EXPLORER = "CheckExplorer";
25
+ static #GET_MAX_PAGES = "GetMaxPages";
26
+ static #SET_PAGE_SIZE = "SetPageSize";
27
+ static #GET_PAGE_SIZE = "GetPageSize";
28
+ static #GET_CURRENT_PAGE_INDEX = "GetCurrentPageIndex";
29
+ static #GET_CURRENT_PAGE = "GetCurrentPage";
30
+ static #GET_PAGE = "GetPage";
31
+ static #GET_NEXT_PAGE = "GetNextPage";
32
+ static #GET_PREVIOUS_PAGE = "GetPreviousPage";
33
+ static #GET_FILTERED_RESULTS = "GetFilteredResults";
34
+ static #SEARCH = "Search";
35
+ static #ADD_FILTER = "AddFilter";
36
+ static #RESET_FILTER = "ResetFilter";
37
+
38
+ static async createInquiryExplorer()
39
+ {
40
+ var data = await APIController.Get(this.#MODULE, this.#CREATE_INQUIRY_EXPLORER);
41
+
42
+ return data['token'];
43
+ }
44
+
45
+ static async createEventExplorer()
46
+ {
47
+ var data = await APIController.Get(this.#MODULE, this.#CREATE_EVENT_EXPLORER);
48
+
49
+ return data['token'];
50
+ }
51
+
52
+ static async createOfferExplorer()
53
+ {
54
+ var data = await APIController.Get(this.#MODULE, this.#CREATE_OFFER_EXPLORER);
55
+
56
+ return data['token'];
57
+ }
58
+
59
+ static async createCustomerExplorer()
60
+ {
61
+ var data = await APIController.Get(this.#MODULE, this.#CREATE_CUSTOMER_EXPLORER);
62
+
63
+ return data['token'];
64
+ }
65
+
66
+ static async createLectureExplorer()
67
+ {
68
+ var data = await APIController.Get(this.#MODULE, this.#CREATE_LECTURE_EXPLORER);
69
+
70
+ return data['token'];
71
+ }
72
+
73
+ static async createLectureAttendanceExplorer()
74
+ {
75
+ var data = await APIController.Get(this.#MODULE, this.#CREATE_LECTURE_ATTENDANCE_EXPLORER);
76
+
77
+ return data['token'];
78
+ }
79
+
80
+ static async createStudentExplorer()
81
+ {
82
+ var data = await APIController.Get(this.#MODULE, this.#CREATE_STUDENT_EXPLORER);
83
+
84
+ return data['token'];
85
+ }
86
+
87
+ static async checkExplorer(token)
88
+ {
89
+ var data = await APIController.Get(this.#MODULE, this.#CHECK_EXPLORER, {
90
+ 'token': token,
91
+ });
92
+
93
+ return data;
94
+ }
95
+
96
+ static async getMaxPages(token)
97
+ {
98
+ var data = await APIController.Get(this.#MODULE, this.#GET_MAX_PAGES, {
99
+ 'token': token,
100
+ });
101
+
102
+ return data;
103
+ }
104
+
105
+ static async setPageSize(token, pageSize)
106
+ {
107
+ await APIController.Post(this.#MODULE, this.#SET_PAGE_SIZE, {
108
+ 'token': token,
109
+ 'pageSize': pageSize,
110
+ });
111
+ }
112
+
113
+ static async getPageSize(token)
114
+ {
115
+ var data = await APIController.Get(this.#MODULE, this.#GET_PAGE_SIZE, {
116
+ 'token': token,
117
+ });
118
+
119
+ return data;
120
+ }
121
+
122
+ static async getCurrentPageIndex(token)
123
+ {
124
+ var data = await APIController.Get(this.#MODULE, this.#GET_CURRENT_PAGE_INDEX, {
125
+ 'token': token,
126
+ });
127
+
128
+ return data;
129
+ }
130
+
131
+ static async getCurrentPage(token)
132
+ {
133
+ var data = await APIController.Get(this.#MODULE, this.#GET_CURRENT_PAGE, {
134
+ 'token': token,
135
+ });
136
+
137
+ return data;
138
+ }
139
+
140
+ static async getPage(token, pageIndex)
141
+ {
142
+ var data = await APIController.Get(this.#MODULE, this.#GET_PAGE, {
143
+ 'token': token,
144
+ 'pageIndex': pageIndex,
145
+ });
146
+
147
+ return data;
148
+ }
149
+
150
+ static async getNextPage(token)
151
+ {
152
+ var data = await APIController.Get(this.#MODULE, this.#GET_NEXT_PAGE, {
153
+ 'token': token,
154
+ });
155
+
156
+ return data;
157
+ }
158
+
159
+ static async getPreviousPage(token)
160
+ {
161
+ var data = await APIController.Get(this.#MODULE, this.#GET_PREVIOUS_PAGE, {
162
+ 'token': token,
163
+ });
164
+
165
+ return data;
166
+ }
167
+
168
+ static async getFilteredResults(token, filters)
169
+ {
170
+ var data = await APIController.Get(this.#MODULE, this.#GET_FILTERED_RESULTS, {
171
+ 'token': token,
172
+ 'filters': JSON.stringify(filters),
173
+ });
174
+
175
+ return data;
176
+ }
177
+
178
+ static async search(token, searchPhrase, base64encoded = true)
179
+ {
180
+ var data = await APIController.Get(this.#MODULE, this.#SEARCH, {
181
+ 'token': token,
182
+ 'searchPhrase': searchPhrase,
183
+ 'base64encoded': base64encoded,
184
+ });
185
+
186
+ return data;
187
+ }
188
+
189
+ static async addFilter(token, filter, filterValue, filterOperation)
190
+ {
191
+ await APIController.Post(this.#MODULE, this.#ADD_FILTER, {
192
+ 'token': token,
193
+ 'filter': filter,
194
+ 'filterValue': filterValue,
195
+ 'filterOperation': filterOperation,
196
+ });
197
+ }
198
+
199
+ static async resetFilter(token)
200
+ {
201
+ await APIController.Post(this.#MODULE, this.#RESET_FILTER, {
202
+ 'token': token,
203
+ });
204
+ }
205
+ }
206
+
207
+ export default TableExplorer;
@@ -1,3 +1,12 @@
1
+ /*
2
+ * Copyright (C) 2024 iTutoring s.r.o.
3
+ * All rights reserved.
4
+ *
5
+
6
+ *
7
+ */
8
+
9
+
1
10
  import APIController from "./../apiController";
2
11
 
3
12
  class TeacherAuth
@@ -1,4 +1,12 @@
1
- import TeacherProfile from "../objects/TeacherProfile";
1
+ /*
2
+ * Copyright (C) 2024 iTutoring s.r.o.
3
+ * All rights reserved.
4
+ *
5
+
6
+ *
7
+ */
8
+
9
+
2
10
  import APIController from "./../apiController";
3
11
  import Teacher from "./../objects/Teacher";
4
12
 
@@ -1,4 +1,12 @@
1
- import TeacherProfile from "../objects/TeacherProfile";
1
+ /*
2
+ * Copyright (C) 2024 iTutoring s.r.o.
3
+ * All rights reserved.
4
+ *
5
+
6
+ *
7
+ */
8
+
9
+
2
10
  import APIController from "./../apiController";
3
11
  import Reservation from "./../objects/Reservation";
4
12
  import Teacher from "./../objects/Teacher";
@@ -1,3 +1,12 @@
1
+ /*
2
+ * Copyright (C) 2024 iTutoring s.r.o.
3
+ * All rights reserved.
4
+ *
5
+
6
+ *
7
+ */
8
+
9
+
1
10
  import APIController from "../apiController";
2
11
 
3
12
  class TeacherProfileModule
@@ -1,3 +1,12 @@
1
+ /*
2
+ * Copyright (C) 2024 iTutoring s.r.o.
3
+ * All rights reserved.
4
+ *
5
+
6
+ *
7
+ */
8
+
9
+
1
10
  import APIController from "./../apiController";
2
11
  import TeacherProfile from "./../objects/TeacherProfile";
3
12
 
@@ -1,3 +1,12 @@
1
+ /*
2
+ * Copyright (C) 2024 iTutoring s.r.o.
3
+ * All rights reserved.
4
+ *
5
+
6
+ *
7
+ */
8
+
9
+
1
10
  import APIController from "../apiController";
2
11
 
3
12
  class iTutoringApplicationVersion
@@ -1,3 +1,12 @@
1
+ /*
2
+ * Copyright (C) 2024 iTutoring s.r.o.
3
+ * All rights reserved.
4
+ *
5
+
6
+ *
7
+ */
8
+
9
+
1
10
  import APIController from "../apiController"
2
11
  import Webinar from "../objects/Webinar";
3
12
 
@@ -1,3 +1,12 @@
1
+ /*
2
+ * Copyright (C) 2024 iTutoring s.r.o.
3
+ * All rights reserved.
4
+ *
5
+
6
+ *
7
+ */
8
+
9
+
1
10
  class AttendanceEvent
2
11
  {
3
12
  Date;
@@ -1,3 +1,12 @@
1
+ /*
2
+ * Copyright (C) 2024 iTutoring s.r.o.
3
+ * All rights reserved.
4
+ *
5
+
6
+ *
7
+ */
8
+
9
+
1
10
  class AuthUser
2
11
  {
3
12
  AuthenticationMethod;
package/objects/Course.js CHANGED
@@ -1,3 +1,11 @@
1
+ /*
2
+ * Copyright (C) 2024 iTutoring s.r.o.
3
+ * All rights reserved.
4
+ *
5
+
6
+ *
7
+ */
8
+
1
9
 
2
10
  /**
3
11
  * @deprecated do not use
@@ -1,3 +1,11 @@
1
+ /*
2
+ * Copyright (C) 2024 iTutoring s.r.o.
3
+ * All rights reserved.
4
+ *
5
+
6
+ *
7
+ */
8
+
1
9
 
2
10
  /**
3
11
  * @deprecated do not use
@@ -1,3 +1,14 @@
1
+ /*
2
+ * Copyright (C) 2024 iTutoring s.r.o.
3
+ * All rights reserved.
4
+ *
5
+
6
+ *
7
+ */
8
+
9
+ /**
10
+ * @deprecated
11
+ */
1
12
  class Customer
2
13
  {
3
14
  FirstName;
package/objects/Enums.js CHANGED
@@ -1,3 +1,12 @@
1
+ /*
2
+ * Copyright (C) 2024 iTutoring s.r.o.
3
+ * All rights reserved.
4
+ *
5
+
6
+ *
7
+ */
8
+
9
+
1
10
  const BookReturn = {
2
11
  SUCCESS: 0,
3
12
  NO_TEACHER_AVAILABLE: 1,
package/objects/Event.js CHANGED
@@ -1,4 +1,14 @@
1
-
1
+ /*
2
+ * Copyright (C) 2024 iTutoring s.r.o.
3
+ * All rights reserved.
4
+ *
5
+
6
+ *
7
+ */
8
+
9
+ /**
10
+ * @deprecated
11
+ */
2
12
  class iEvent
3
13
  {
4
14
  /**
@@ -1,3 +1,12 @@
1
+ /*
2
+ * Copyright (C) 2024 iTutoring s.r.o.
3
+ * All rights reserved.
4
+ *
5
+
6
+ *
7
+ */
8
+
9
+
1
10
  /**
2
11
  * @deprecated do not use
3
12
 
@@ -1,3 +1,12 @@
1
+ /*
2
+ * Copyright (C) 2024 iTutoring s.r.o.
3
+ * All rights reserved.
4
+ *
5
+
6
+ *
7
+ */
8
+
9
+
1
10
  class Subject
2
11
  {
3
12
  Name;
@@ -1,3 +1,12 @@
1
+ /*
2
+ * Copyright (C) 2024 iTutoring s.r.o.
3
+ * All rights reserved.
4
+ *
5
+
6
+ *
7
+ */
8
+
9
+
1
10
  class Teacher
2
11
  {
3
12
  Name;
@@ -1,3 +1,12 @@
1
+ /*
2
+ * Copyright (C) 2024 iTutoring s.r.o.
3
+ * All rights reserved.
4
+ *
5
+
6
+ *
7
+ */
8
+
9
+
1
10
  class TeacherProfile
2
11
  {
3
12
  Name;
@@ -1,3 +1,12 @@
1
+ /*
2
+ * Copyright (C) 2024 iTutoring s.r.o.
3
+ * All rights reserved.
4
+ *
5
+
6
+ *
7
+ */
8
+
9
+
1
10
  class Webinar
2
11
  {
3
12
  Name;
@@ -1,3 +1,12 @@
1
+ /*
2
+ * Copyright (C) 2024 iTutoring s.r.o.
3
+ * All rights reserved.
4
+ *
5
+
6
+ *
7
+ */
8
+
9
+
1
10
  /**
2
11
  * BillingInfo API model representation.
3
12
  * See documentation: https://zabesstudio.atlassian.net/wiki/spaces/ITUTAPP/pages/70549505/BillingInfo
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itutoring/itutoring_application_js_api",
3
- "version": "1.6.8",
3
+ "version": "1.6.10",
4
4
  "description": "Javascript API for iTutoring Application",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",