forked from benlhachemi/BestShape
-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.h.ts
100 lines (88 loc) · 1.79 KB
/
types.h.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
export type stepType = {
id: string;
component: any;
title: string;
description: string;
icon: string;
answers: object;
};
export type stepsType = {
step_num: number;
animation: string;
is_next_btn: boolean;
is_previous_btn: boolean;
is_generate_btn: boolean;
steps_list: stepType[];
is_blocked: boolean;
};
export type breakpointType = {
id: string;
icon: JSX.Element;
status: 'done' | 'not_done';
};
export type roadType = {
breakpoints: breakpointType[];
current_breakpoint: breakpointType;
start_icon: JSX.Element;
finish_icon: JSX.Element;
};
export type exerciceType = {
name: string;
sets: string;
reps: string;
rest_between_sets: string;
};
export type workoutType = {
day_number: number;
workout_clock_time: string;
workout_type: string;
session_minutes: number;
exercices: exerciceType[];
rest_after_exercice: string;
};
export type mealType = {
schedule: string;
meal_type: string;
examples: string[];
calories: number;
protein: number;
carbs: number;
fats: number;
};
export type dietType = {
summary: string;
calories: number;
calories_explanation: string;
protein: number;
protein_explanation: string;
carbs: number;
carbs_explanation: string;
fats: number;
fats_explanation: string;
meals: mealType[];
};
export type sleep_cons = {
con: string;
fix: string;
};
export type sleepType = {
cons_fixes: sleep_cons[];
sleep_time: string;
wakeup_time: string;
tips: string;
importance: string;
};
export type overviewProblemType = {
bad_habit: string;
impact: string;
};
export type overviewType = {
fitness_plan_summary: string;
problem_roles: overviewProblemType[];
};
export type programType = {
overview: overviewType;
workout: workoutType[];
diet: dietType;
sleep: sleepType;
};