@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,61 +1,61 @@
|
|
|
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
|
-
import TeacherProfile from "./../objects/TeacherProfile";
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* @deprecated
|
|
15
|
-
*/
|
|
16
|
-
class TeacherProfiles
|
|
17
|
-
{
|
|
18
|
-
static #MODULE = "TeacherProfiles";
|
|
19
|
-
|
|
20
|
-
static #GET_PROFILES = "GetProfiles";
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* @deprecated
|
|
25
|
-
* Retrive all public teacher profiles
|
|
26
|
-
*
|
|
27
|
-
* @returns teachers public profiles as array
|
|
28
|
-
*/
|
|
29
|
-
static async GetProfiles()
|
|
30
|
-
{
|
|
31
|
-
var profiles = await APIController.Get(this.#MODULE, this.#GET_PROFILES);
|
|
32
|
-
|
|
33
|
-
var parsedProfiles;
|
|
34
|
-
try
|
|
35
|
-
{
|
|
36
|
-
parsedProfiles = JSON.parse(profiles);
|
|
37
|
-
}
|
|
38
|
-
catch
|
|
39
|
-
{
|
|
40
|
-
return null;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
var profilesArray = [];
|
|
44
|
-
|
|
45
|
-
for (const [key, value] of Object.entries(parsedProfiles))
|
|
46
|
-
{
|
|
47
|
-
var profile = new TeacherProfile();
|
|
48
|
-
|
|
49
|
-
profile.Name = value['Name'];
|
|
50
|
-
profile.Bio = value['Bio'];
|
|
51
|
-
profile.PhotoPath = value['PhotoPath'];
|
|
52
|
-
profile.Subjects = value['Subjects'] == null ? [] : value['Subjects'];
|
|
53
|
-
|
|
54
|
-
profilesArray[key] = profile;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
return profilesArray;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
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
|
+
import TeacherProfile from "./../objects/TeacherProfile";
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated
|
|
15
|
+
*/
|
|
16
|
+
class TeacherProfiles
|
|
17
|
+
{
|
|
18
|
+
static #MODULE = "TeacherProfiles";
|
|
19
|
+
|
|
20
|
+
static #GET_PROFILES = "GetProfiles";
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* @deprecated
|
|
25
|
+
* Retrive all public teacher profiles
|
|
26
|
+
*
|
|
27
|
+
* @returns teachers public profiles as array
|
|
28
|
+
*/
|
|
29
|
+
static async GetProfiles()
|
|
30
|
+
{
|
|
31
|
+
var profiles = await APIController.Get(this.#MODULE, this.#GET_PROFILES);
|
|
32
|
+
|
|
33
|
+
var parsedProfiles;
|
|
34
|
+
try
|
|
35
|
+
{
|
|
36
|
+
parsedProfiles = JSON.parse(profiles);
|
|
37
|
+
}
|
|
38
|
+
catch
|
|
39
|
+
{
|
|
40
|
+
return null;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
var profilesArray = [];
|
|
44
|
+
|
|
45
|
+
for (const [key, value] of Object.entries(parsedProfiles))
|
|
46
|
+
{
|
|
47
|
+
var profile = new TeacherProfile();
|
|
48
|
+
|
|
49
|
+
profile.Name = value['Name'];
|
|
50
|
+
profile.Bio = value['Bio'];
|
|
51
|
+
profile.PhotoPath = value['PhotoPath'];
|
|
52
|
+
profile.Subjects = value['Subjects'] == null ? [] : value['Subjects'];
|
|
53
|
+
|
|
54
|
+
profilesArray[key] = profile;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
return profilesArray;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
61
|
export default TeacherProfiles;
|
package/modules/Version.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
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 iTutoringApplicationVersion
|
|
13
|
-
{
|
|
14
|
-
static #MODULE = "Version";
|
|
15
|
-
|
|
16
|
-
static #GET_VERSION = "GetVersion";
|
|
17
|
-
|
|
18
|
-
static async GetVersion()
|
|
19
|
-
{
|
|
20
|
-
var ver = await APIController.Get(this.#MODULE, this.#GET_VERSION);
|
|
21
|
-
return ver;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
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 iTutoringApplicationVersion
|
|
13
|
+
{
|
|
14
|
+
static #MODULE = "Version";
|
|
15
|
+
|
|
16
|
+
static #GET_VERSION = "GetVersion";
|
|
17
|
+
|
|
18
|
+
static async GetVersion()
|
|
19
|
+
{
|
|
20
|
+
var ver = await APIController.Get(this.#MODULE, this.#GET_VERSION);
|
|
21
|
+
return ver;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
25
|
export default iTutoringApplicationVersion;
|
package/modules/WebController.js
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (C) 2025 iTutoring s.r.o.
|
|
3
|
-
* All rights reserved.
|
|
4
|
-
*
|
|
5
|
-
|
|
6
|
-
*
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
import APIController from "../apiController";
|
|
10
|
-
|
|
11
|
-
class WebController
|
|
12
|
-
{
|
|
13
|
-
static #MODULE = "WebController";
|
|
14
|
-
|
|
15
|
-
static #GET_GENERAL_PAGE_CONTENT = "GetGeneralPageContent";
|
|
16
|
-
static #GET_PZK_PAGE_CONTENT = "GetPzkPage";
|
|
17
|
-
static #GET_PRICING_PAGE = "GetPricingPage";
|
|
18
|
-
|
|
19
|
-
static async GetGeneralPageContent()
|
|
20
|
-
{
|
|
21
|
-
var res = await APIController.Get(this.#MODULE, this.#GET_GENERAL_PAGE_CONTENT);
|
|
22
|
-
return JSON.parse(res);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
static async GetPzkPageContent()
|
|
26
|
-
{
|
|
27
|
-
var res = await APIController.Get(this.#MODULE, this.#GET_PZK_PAGE_CONTENT);
|
|
28
|
-
return JSON.parse(res);
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
static async GetPricingPage()
|
|
32
|
-
{
|
|
33
|
-
var res = await APIController.Get(this.#MODULE, this.#GET_PRICING_PAGE);
|
|
34
|
-
return JSON.parse(res);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (C) 2025 iTutoring s.r.o.
|
|
3
|
+
* All rights reserved.
|
|
4
|
+
*
|
|
5
|
+
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import APIController from "../apiController";
|
|
10
|
+
|
|
11
|
+
class WebController
|
|
12
|
+
{
|
|
13
|
+
static #MODULE = "WebController";
|
|
14
|
+
|
|
15
|
+
static #GET_GENERAL_PAGE_CONTENT = "GetGeneralPageContent";
|
|
16
|
+
static #GET_PZK_PAGE_CONTENT = "GetPzkPage";
|
|
17
|
+
static #GET_PRICING_PAGE = "GetPricingPage";
|
|
18
|
+
|
|
19
|
+
static async GetGeneralPageContent()
|
|
20
|
+
{
|
|
21
|
+
var res = await APIController.Get(this.#MODULE, this.#GET_GENERAL_PAGE_CONTENT);
|
|
22
|
+
return JSON.parse(res);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
static async GetPzkPageContent()
|
|
26
|
+
{
|
|
27
|
+
var res = await APIController.Get(this.#MODULE, this.#GET_PZK_PAGE_CONTENT);
|
|
28
|
+
return JSON.parse(res);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
static async GetPricingPage()
|
|
32
|
+
{
|
|
33
|
+
var res = await APIController.Get(this.#MODULE, this.#GET_PRICING_PAGE);
|
|
34
|
+
return JSON.parse(res);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
38
|
export default WebController;
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (C) 2024 iTutoring s.r.o.
|
|
3
|
-
* All rights reserved.
|
|
4
|
-
*
|
|
5
|
-
|
|
6
|
-
*
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class AttendanceEvent
|
|
11
|
-
{
|
|
12
|
-
Date;
|
|
13
|
-
Presence;
|
|
14
|
-
Note;
|
|
15
|
-
ID;
|
|
16
|
-
EventName;
|
|
17
|
-
Subject;
|
|
18
|
-
StudentName;
|
|
19
|
-
EventDescription;
|
|
20
|
-
Class;
|
|
21
|
-
Place;
|
|
22
|
-
Recursivity
|
|
23
|
-
|
|
24
|
-
CreateFromJSON(json)
|
|
25
|
-
{
|
|
26
|
-
this.Date = json['Date'];
|
|
27
|
-
this.Presence = json['Presence'];
|
|
28
|
-
this.Note = json['Note'];
|
|
29
|
-
this.ID = json['ID'];
|
|
30
|
-
this.EventName = json['EventName'];
|
|
31
|
-
this.Subject = json['Subject'];
|
|
32
|
-
this.StudentName = json['StudentName'];
|
|
33
|
-
this.EventDescription = json['EventDescription'];
|
|
34
|
-
this.Class = json['Class'];
|
|
35
|
-
this.Place = json['Place'];
|
|
36
|
-
this.Recursivity = json['Recursivity'];
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (C) 2024 iTutoring s.r.o.
|
|
3
|
+
* All rights reserved.
|
|
4
|
+
*
|
|
5
|
+
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class AttendanceEvent
|
|
11
|
+
{
|
|
12
|
+
Date;
|
|
13
|
+
Presence;
|
|
14
|
+
Note;
|
|
15
|
+
ID;
|
|
16
|
+
EventName;
|
|
17
|
+
Subject;
|
|
18
|
+
StudentName;
|
|
19
|
+
EventDescription;
|
|
20
|
+
Class;
|
|
21
|
+
Place;
|
|
22
|
+
Recursivity
|
|
23
|
+
|
|
24
|
+
CreateFromJSON(json)
|
|
25
|
+
{
|
|
26
|
+
this.Date = json['Date'];
|
|
27
|
+
this.Presence = json['Presence'];
|
|
28
|
+
this.Note = json['Note'];
|
|
29
|
+
this.ID = json['ID'];
|
|
30
|
+
this.EventName = json['EventName'];
|
|
31
|
+
this.Subject = json['Subject'];
|
|
32
|
+
this.StudentName = json['StudentName'];
|
|
33
|
+
this.EventDescription = json['EventDescription'];
|
|
34
|
+
this.Class = json['Class'];
|
|
35
|
+
this.Place = json['Place'];
|
|
36
|
+
this.Recursivity = json['Recursivity'];
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
40
|
export default AttendanceEvent;
|
package/objects/AuthUser.js
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (C) 2024 iTutoring s.r.o.
|
|
3
|
-
* All rights reserved.
|
|
4
|
-
*
|
|
5
|
-
|
|
6
|
-
*
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
class AuthUser
|
|
11
|
-
{
|
|
12
|
-
AuthenticationMethod;
|
|
13
|
-
|
|
14
|
-
ID;
|
|
15
|
-
Name;
|
|
16
|
-
Email;
|
|
17
|
-
Phone;
|
|
18
|
-
EduMeetLink;
|
|
19
|
-
BitmojiURL;
|
|
20
|
-
ModuleAccess;
|
|
21
|
-
TeacherProfile;
|
|
22
|
-
TeachedLessons;
|
|
23
|
-
}
|
|
24
|
-
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (C) 2024 iTutoring s.r.o.
|
|
3
|
+
* All rights reserved.
|
|
4
|
+
*
|
|
5
|
+
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class AuthUser
|
|
11
|
+
{
|
|
12
|
+
AuthenticationMethod;
|
|
13
|
+
|
|
14
|
+
ID;
|
|
15
|
+
Name;
|
|
16
|
+
Email;
|
|
17
|
+
Phone;
|
|
18
|
+
EduMeetLink;
|
|
19
|
+
BitmojiURL;
|
|
20
|
+
ModuleAccess;
|
|
21
|
+
TeacherProfile;
|
|
22
|
+
TeachedLessons;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
25
|
export default AuthUser;
|
package/objects/Course.js
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (C) 2024 iTutoring s.r.o.
|
|
3
|
-
* All rights reserved.
|
|
4
|
-
*
|
|
5
|
-
|
|
6
|
-
*
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* @deprecated do not use
|
|
12
|
-
*/
|
|
13
|
-
class Course
|
|
14
|
-
{
|
|
15
|
-
Name;
|
|
16
|
-
NameRaw;
|
|
17
|
-
School;
|
|
18
|
-
Price;
|
|
19
|
-
PriceBeforeSale = -1;
|
|
20
|
-
IsSaled = false;
|
|
21
|
-
CreditPrice;
|
|
22
|
-
ID;
|
|
23
|
-
Day;
|
|
24
|
-
/**
|
|
25
|
-
* as string in hh:mm
|
|
26
|
-
*/
|
|
27
|
-
Time;
|
|
28
|
-
Length;
|
|
29
|
-
/**
|
|
30
|
-
* Array of lesson dates as dd/mm/YYYY
|
|
31
|
-
*/
|
|
32
|
-
Lessons;
|
|
33
|
-
Capacity;
|
|
34
|
-
Item;
|
|
35
|
-
Subject;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export default Course;
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (C) 2024 iTutoring s.r.o.
|
|
3
|
+
* All rights reserved.
|
|
4
|
+
*
|
|
5
|
+
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated do not use
|
|
12
|
+
*/
|
|
13
|
+
class Course
|
|
14
|
+
{
|
|
15
|
+
Name;
|
|
16
|
+
NameRaw;
|
|
17
|
+
School;
|
|
18
|
+
Price;
|
|
19
|
+
PriceBeforeSale = -1;
|
|
20
|
+
IsSaled = false;
|
|
21
|
+
CreditPrice;
|
|
22
|
+
ID;
|
|
23
|
+
Day;
|
|
24
|
+
/**
|
|
25
|
+
* as string in hh:mm
|
|
26
|
+
*/
|
|
27
|
+
Time;
|
|
28
|
+
Length;
|
|
29
|
+
/**
|
|
30
|
+
* Array of lesson dates as dd/mm/YYYY
|
|
31
|
+
*/
|
|
32
|
+
Lessons;
|
|
33
|
+
Capacity;
|
|
34
|
+
Item;
|
|
35
|
+
Subject;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export default Course;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (C) 2024 iTutoring s.r.o.
|
|
3
|
-
* All rights reserved.
|
|
4
|
-
*
|
|
5
|
-
|
|
6
|
-
*
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* @deprecated do not use
|
|
12
|
-
*/
|
|
13
|
-
class CourseReservation
|
|
14
|
-
{
|
|
15
|
-
FirstName;
|
|
16
|
-
LastName;
|
|
17
|
-
CourseId;
|
|
18
|
-
Email;
|
|
19
|
-
TeacherId;
|
|
20
|
-
Phone;
|
|
21
|
-
}
|
|
22
|
-
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (C) 2024 iTutoring s.r.o.
|
|
3
|
+
* All rights reserved.
|
|
4
|
+
*
|
|
5
|
+
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* @deprecated do not use
|
|
12
|
+
*/
|
|
13
|
+
class CourseReservation
|
|
14
|
+
{
|
|
15
|
+
FirstName;
|
|
16
|
+
LastName;
|
|
17
|
+
CourseId;
|
|
18
|
+
Email;
|
|
19
|
+
TeacherId;
|
|
20
|
+
Phone;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
23
|
export default CourseReservation;
|
package/objects/Customer.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (C) 2024 iTutoring s.r.o.
|
|
3
|
-
* All rights reserved.
|
|
4
|
-
*
|
|
5
|
-
|
|
6
|
-
*
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* @deprecated
|
|
11
|
-
*/
|
|
12
|
-
class Customer
|
|
13
|
-
{
|
|
14
|
-
FirstName;
|
|
15
|
-
LastName;
|
|
16
|
-
Email;
|
|
17
|
-
ID;
|
|
18
|
-
Phone;
|
|
19
|
-
}
|
|
20
|
-
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (C) 2024 iTutoring s.r.o.
|
|
3
|
+
* All rights reserved.
|
|
4
|
+
*
|
|
5
|
+
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated
|
|
11
|
+
*/
|
|
12
|
+
class Customer
|
|
13
|
+
{
|
|
14
|
+
FirstName;
|
|
15
|
+
LastName;
|
|
16
|
+
Email;
|
|
17
|
+
ID;
|
|
18
|
+
Phone;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
21
|
export default Customer;
|
package/objects/Enums.js
CHANGED
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (C) 2024 iTutoring s.r.o.
|
|
3
|
-
* All rights reserved.
|
|
4
|
-
*
|
|
5
|
-
|
|
6
|
-
*
|
|
7
|
-
*/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
const BookReturn = {
|
|
11
|
-
SUCCESS: 0,
|
|
12
|
-
NO_TEACHER_AVAILABLE: 1,
|
|
13
|
-
ERROR: 2,
|
|
14
|
-
BAD_RESERVATION: 3,
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
const AuthResult = {
|
|
18
|
-
Authenticated: 0,
|
|
19
|
-
EmailUsed: 1,
|
|
20
|
-
ConnectionError: 2,
|
|
21
|
-
MissingInfo: 3,
|
|
22
|
-
WrongPassword: 4,
|
|
23
|
-
Error: 5,
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
const PaymentType = {
|
|
27
|
-
Stripe: 0,
|
|
28
|
-
Credits: 1,
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
const DeviceOS = {
|
|
32
|
-
WindowsPhone: 0,
|
|
33
|
-
Android: 1,
|
|
34
|
-
iOS: 2,
|
|
35
|
-
Desktop: 3,
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
const PasswordChange = {
|
|
39
|
-
Changed: 0,
|
|
40
|
-
NotAuthenticated: 1,
|
|
41
|
-
NotAuthorized: 2,
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
const R_KEYs = {
|
|
45
|
-
r_key_test: 'r_key_test',
|
|
46
|
-
r_key_live: 'r_key_live'
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
const AuthType = {
|
|
50
|
-
Teacher: 0,
|
|
51
|
-
Customer: 1,
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export
|
|
55
|
-
{
|
|
56
|
-
BookReturn,
|
|
57
|
-
AuthResult,
|
|
58
|
-
PaymentType,
|
|
59
|
-
DeviceOS,
|
|
60
|
-
PasswordChange,
|
|
61
|
-
R_KEYs,
|
|
62
|
-
AuthType
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (C) 2024 iTutoring s.r.o.
|
|
3
|
+
* All rights reserved.
|
|
4
|
+
*
|
|
5
|
+
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
const BookReturn = {
|
|
11
|
+
SUCCESS: 0,
|
|
12
|
+
NO_TEACHER_AVAILABLE: 1,
|
|
13
|
+
ERROR: 2,
|
|
14
|
+
BAD_RESERVATION: 3,
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
const AuthResult = {
|
|
18
|
+
Authenticated: 0,
|
|
19
|
+
EmailUsed: 1,
|
|
20
|
+
ConnectionError: 2,
|
|
21
|
+
MissingInfo: 3,
|
|
22
|
+
WrongPassword: 4,
|
|
23
|
+
Error: 5,
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
const PaymentType = {
|
|
27
|
+
Stripe: 0,
|
|
28
|
+
Credits: 1,
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
const DeviceOS = {
|
|
32
|
+
WindowsPhone: 0,
|
|
33
|
+
Android: 1,
|
|
34
|
+
iOS: 2,
|
|
35
|
+
Desktop: 3,
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
const PasswordChange = {
|
|
39
|
+
Changed: 0,
|
|
40
|
+
NotAuthenticated: 1,
|
|
41
|
+
NotAuthorized: 2,
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
const R_KEYs = {
|
|
45
|
+
r_key_test: 'r_key_test',
|
|
46
|
+
r_key_live: 'r_key_live'
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
const AuthType = {
|
|
50
|
+
Teacher: 0,
|
|
51
|
+
Customer: 1,
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export
|
|
55
|
+
{
|
|
56
|
+
BookReturn,
|
|
57
|
+
AuthResult,
|
|
58
|
+
PaymentType,
|
|
59
|
+
DeviceOS,
|
|
60
|
+
PasswordChange,
|
|
61
|
+
R_KEYs,
|
|
62
|
+
AuthType
|
|
63
63
|
}
|