@dgpholdings/greatoak-shared 1.1.79 → 1.1.81
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/dist/types/TApiAuth.d.ts +4 -1
- package/dist/types/TApiUser.d.ts +17 -3
- package/package.json +1 -1
package/dist/types/TApiAuth.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TAuthType, TFitnessGoal, TGender, TUserMetric } from "./TApiUser";
|
|
1
|
+
import { TAuthType, TFitnessGoal, TGender, TProfessionalCategory, TUserMetric, TUserType } from "./TApiUser";
|
|
2
2
|
export type TApiSignupReq = {
|
|
3
3
|
email: string;
|
|
4
4
|
password: string;
|
|
@@ -13,6 +13,9 @@ export type TOnboardingData = {
|
|
|
13
13
|
gender: TGender;
|
|
14
14
|
fitnessGoal: TFitnessGoal;
|
|
15
15
|
fitnessLevel: number;
|
|
16
|
+
userCode: string;
|
|
17
|
+
userType: TUserType;
|
|
18
|
+
professionType?: TProfessionalCategory;
|
|
16
19
|
email?: string;
|
|
17
20
|
};
|
|
18
21
|
export type TApiSignupRes = TApiSigninRes & {
|
package/dist/types/TApiUser.d.ts
CHANGED
|
@@ -1,14 +1,20 @@
|
|
|
1
1
|
export type TAuthType = "email" | "apple" | "anonymous";
|
|
2
2
|
export type TGender = "male" | "female" | "unmentioned";
|
|
3
|
+
export type TUserType = "regular" | "professional";
|
|
4
|
+
export type TProfessionalCategory = "fitness" | "wellness" | "medical" | "sports" | "other";
|
|
5
|
+
export type TUserTrainerType = "personal_trainer" | "strength_conditioning_coach" | "gym_instructor" | "fitness_coach" | "bodybuilding_coach" | "crossfit_coach" | "functional_training_specialist" | "calisthenics_trainer" | "yoga_instructor" | "pilates_instructor" | "meditation_coach" | "mindfulness_practitioner" | "breathwork_coach" | "physiotherapist" | "sports_physiotherapist" | "rehabilitation_specialist" | "chiropractor" | "orthopedic_doctor" | "sports_medicine_doctor" | "general_practitioner" | "occupational_therapist" | "kinesiologist" | "sports_coach" | "running_coach" | "cycling_coach" | "swimming_coach" | "athletic_trainer" | "performance_specialist" | "nutritionist" | "dietitian" | "health_coach" | "wellness_consultant" | "lifestyle_medicine_practitioner" | "physical_education_teacher" | "fitness_influencer" | "exercise_scientist" | "student_professional" | "other";
|
|
3
6
|
export type TFitnessGoal = "strength" | "hypertrophy" | "endurance" | "general" | "fat_burn" | "flexibility";
|
|
4
7
|
export type TUserMetric = {
|
|
5
8
|
dob: Date;
|
|
9
|
+
userCode: string;
|
|
10
|
+
userType: TUserType;
|
|
11
|
+
professionType?: TProfessionalCategory;
|
|
12
|
+
gender: TGender;
|
|
13
|
+
appLanguage: string;
|
|
14
|
+
fitnessGoal: TFitnessGoal;
|
|
6
15
|
weightKg?: number;
|
|
7
16
|
heightCm?: number;
|
|
8
|
-
appLanguage: string;
|
|
9
17
|
emailAddress?: string;
|
|
10
|
-
gender: TGender;
|
|
11
|
-
fitnessGoal: TFitnessGoal;
|
|
12
18
|
fitnessLevel?: number;
|
|
13
19
|
bodyFatPercentage?: number;
|
|
14
20
|
createdAt: Date;
|
|
@@ -22,6 +28,14 @@ export type TApiUserUpdateRes = {
|
|
|
22
28
|
status: 200;
|
|
23
29
|
user: TUserMetric;
|
|
24
30
|
};
|
|
31
|
+
export type TApiIsUserExistReq = {
|
|
32
|
+
type: "code" | "email";
|
|
33
|
+
value: string;
|
|
34
|
+
};
|
|
35
|
+
export type TApiIsUserExistsRes = {
|
|
36
|
+
state: boolean;
|
|
37
|
+
status: 403 | 404 | 400 | 200;
|
|
38
|
+
};
|
|
25
39
|
export type TApiGetUserProfileReq = {};
|
|
26
40
|
export type TApiGetUserProfileRes = {
|
|
27
41
|
user: TUserMetric;
|