@itutoring/itutoring_application_js_api 1.1.11 → 1.1.13
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 +2 -0
- package/index.js +2 -0
- package/modules/GoogleReviews.js +19 -0
- package/modules/TeacherProfiles.js +1 -0
- package/objects/TeacherProfile.js +1 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -18,6 +18,7 @@ import TeacherManager from "./modules/TeacherManager";
|
|
|
18
18
|
import TeacherPortal from "./modules/TeacherPortal";
|
|
19
19
|
import TeacherProfiles from "./modules/TeacherProfiles";
|
|
20
20
|
import WebinarSystem from "./modules/WebinarsSystem";
|
|
21
|
+
import GoogleReviews from "./modules/GoogleReviews";
|
|
21
22
|
|
|
22
23
|
import Course from "./objects/Course";
|
|
23
24
|
import CourseReservation from "./objects/CourseReservation";
|
|
@@ -55,6 +56,7 @@ export
|
|
|
55
56
|
TeacherPortal,
|
|
56
57
|
TeacherProfiles,
|
|
57
58
|
WebinarSystem,
|
|
59
|
+
GoogleReviews,
|
|
58
60
|
|
|
59
61
|
Course,
|
|
60
62
|
CourseReservation,
|
package/index.js
CHANGED
|
@@ -16,6 +16,7 @@ import TeacherManager from "./modules/TeacherManager";
|
|
|
16
16
|
import TeacherPortal from "./modules/TeacherPortal";
|
|
17
17
|
import TeacherProfiles from "./modules/TeacherProfiles";
|
|
18
18
|
import WebinarSystem from "./modules/WebinarsSystem";
|
|
19
|
+
import GoogleReviews from "./modules/GoogleReviews";
|
|
19
20
|
|
|
20
21
|
import Course from "./objects/Course";
|
|
21
22
|
import CourseReservation from "./objects/CourseReservation";
|
|
@@ -53,6 +54,7 @@ export
|
|
|
53
54
|
TeacherPortal,
|
|
54
55
|
TeacherProfiles,
|
|
55
56
|
WebinarSystem,
|
|
57
|
+
GoogleReviews,
|
|
56
58
|
|
|
57
59
|
Course,
|
|
58
60
|
CourseReservation,
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import APIController from "../apiController";
|
|
2
|
+
|
|
3
|
+
class GoogleReviews
|
|
4
|
+
{
|
|
5
|
+
static #MODULE = "GoogleReviews";
|
|
6
|
+
|
|
7
|
+
static #GET_RANDOM_REVIEW = "GetRandomReview";
|
|
8
|
+
|
|
9
|
+
static async GetRandomReview(last_review_timestamp = -1)
|
|
10
|
+
{
|
|
11
|
+
var review = await APIController.Get(this.#MODULE, this.#GET_RANDOM_REVIEW, {
|
|
12
|
+
"last_review": last_review_timestamp,
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
return JSON.parse(review);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export default GoogleReviews;
|