@dgpholdings/greatoak-shared 1.0.26 → 1.0.28
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.
|
@@ -16,8 +16,8 @@ exports.bodyCategories = [
|
|
|
16
16
|
exports.bodySubCategories = {
|
|
17
17
|
Chest: ["pectoralis-major", "pectoralis-minor"],
|
|
18
18
|
Core: ["abs-lower", "abs-upper", "obliques"],
|
|
19
|
-
Shoulders: ["deltoids-front", "
|
|
20
|
-
Back: ["trapezius", "latissimus-dorsi", "rhomboids"],
|
|
19
|
+
Shoulders: ["deltoids-front", "lateral-deltoids-center"],
|
|
20
|
+
Back: ["trapezius", "latissimus-dorsi", "rhomboids", "lower-back"],
|
|
21
21
|
Bicep: ["bicep-short-inner", "bicep-long-outer"],
|
|
22
22
|
Tricep: ["brachii-lateral-rear", "brachii-long-outer"],
|
|
23
23
|
"Fore arm": ["fore-arm-inner", "fore-arm-outer"],
|
|
@@ -13,12 +13,10 @@ export declare enum EBodyParts {
|
|
|
13
13
|
"bicep-long-outer" = "Bicep long (outer)",
|
|
14
14
|
"brachii-long-outer" = "Brachii long (outer)",
|
|
15
15
|
"brachii-lateral-rear" = "Brachii lateral (rear)",
|
|
16
|
-
"medial-rear-2" = "Medial (rear 2)",
|
|
17
16
|
"fore-arm-inner" = "Fore arm inner",
|
|
18
17
|
"fore-arm-outer" = "Fore arm outer",
|
|
19
18
|
"deltoids-front" = "Deltoids front",
|
|
20
19
|
"lateral-deltoids-center" = "Lateral deltoids (center)",
|
|
21
|
-
"deltoids-rear" = "Deltoids rear",
|
|
22
20
|
"calf-inner" = "Calf inner",
|
|
23
21
|
"calf-outer" = "Calf outer",
|
|
24
22
|
"hamstrings" = "Hamstrings",
|
|
@@ -26,6 +24,7 @@ export declare enum EBodyParts {
|
|
|
26
24
|
"medius-upper" = "Gluteus medius (upper)",
|
|
27
25
|
"maximus-lower" = "Gluteus Maximus (lower)",
|
|
28
26
|
"cardio" = "Cardio",
|
|
27
|
+
"lower-back" = "Lower back",
|
|
29
28
|
"grip" = "Grip"
|
|
30
29
|
}
|
|
31
30
|
export type TBodyPartKeys = Array<keyof typeof EBodyParts>;
|
|
@@ -40,14 +39,7 @@ export type TExercise = {
|
|
|
40
39
|
videoUrl: string[];
|
|
41
40
|
thumbnailUrl: string;
|
|
42
41
|
};
|
|
43
|
-
export type
|
|
44
|
-
exerciseId: string;
|
|
45
|
-
name: string;
|
|
46
|
-
bodyPart: TBodyPart;
|
|
47
|
-
primaryMuscles: TBodyPartKeys[];
|
|
48
|
-
thumbnailUrl: TBodyPartKeys;
|
|
49
|
-
};
|
|
50
|
-
export type TBodyPartExercises = Record<TBodyPart, Record<string, TExerciseMinimum>>;
|
|
42
|
+
export type TBodyPartExercises = Record<TBodyPart, TExercise[]>;
|
|
51
43
|
export type TApiCreateExerciseReq = {
|
|
52
44
|
bodyPart: TBodyPart;
|
|
53
45
|
exercise: Omit<TExercise, "id">;
|
|
@@ -58,7 +50,7 @@ export type TApiCreateExerciseRes = {
|
|
|
58
50
|
};
|
|
59
51
|
export type TApiListExercisesReq = null;
|
|
60
52
|
export type TApiListExercisesRes = {
|
|
61
|
-
data:
|
|
53
|
+
data: TExercise[];
|
|
62
54
|
};
|
|
63
55
|
export type TApiGetOneExerciseReq = {
|
|
64
56
|
exerciseId: string;
|
|
@@ -15,12 +15,10 @@ var EBodyParts;
|
|
|
15
15
|
EBodyParts["bicep-long-outer"] = "Bicep long (outer)";
|
|
16
16
|
EBodyParts["brachii-long-outer"] = "Brachii long (outer)";
|
|
17
17
|
EBodyParts["brachii-lateral-rear"] = "Brachii lateral (rear)";
|
|
18
|
-
EBodyParts["medial-rear-2"] = "Medial (rear 2)";
|
|
19
18
|
EBodyParts["fore-arm-inner"] = "Fore arm inner";
|
|
20
19
|
EBodyParts["fore-arm-outer"] = "Fore arm outer";
|
|
21
20
|
EBodyParts["deltoids-front"] = "Deltoids front";
|
|
22
21
|
EBodyParts["lateral-deltoids-center"] = "Lateral deltoids (center)";
|
|
23
|
-
EBodyParts["deltoids-rear"] = "Deltoids rear";
|
|
24
22
|
EBodyParts["calf-inner"] = "Calf inner";
|
|
25
23
|
EBodyParts["calf-outer"] = "Calf outer";
|
|
26
24
|
EBodyParts["hamstrings"] = "Hamstrings";
|
|
@@ -28,5 +26,6 @@ var EBodyParts;
|
|
|
28
26
|
EBodyParts["medius-upper"] = "Gluteus medius (upper)";
|
|
29
27
|
EBodyParts["maximus-lower"] = "Gluteus Maximus (lower)";
|
|
30
28
|
EBodyParts["cardio"] = "Cardio";
|
|
29
|
+
EBodyParts["lower-back"] = "Lower back";
|
|
31
30
|
EBodyParts["grip"] = "Grip";
|
|
32
31
|
})(EBodyParts || (exports.EBodyParts = EBodyParts = {}));
|