@dgpholdings/greatoak-shared 1.1.45 → 1.1.47
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.
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import { TTemplateExercise } from "./commonTypes";
|
|
1
|
+
import { TRecord, TTemplateExercise } from "./commonTypes";
|
|
2
2
|
export type TApiExerciseRecordUpdateReq = {
|
|
3
3
|
templateId: string;
|
|
4
4
|
startTime: Date;
|
|
5
|
-
records: TTemplateExercise
|
|
5
|
+
records: (Omit<TTemplateExercise, "initialRecords"> & {
|
|
6
|
+
record: TRecord[];
|
|
7
|
+
})[];
|
|
6
8
|
};
|
|
7
9
|
export type TApiExerciseRecordUpdateRes = {
|
|
8
10
|
status: 201;
|
|
@@ -1,13 +1,19 @@
|
|
|
1
1
|
import { TRecord, TTemplateExercise } from "./commonTypes";
|
|
2
|
+
export type TTemplateDb = TTemplate & {
|
|
3
|
+
programId: string;
|
|
4
|
+
slug: string;
|
|
5
|
+
userId: string;
|
|
6
|
+
createAt: Date;
|
|
7
|
+
updatedAt: Date;
|
|
8
|
+
};
|
|
2
9
|
export type TTemplate = {
|
|
3
10
|
name: string;
|
|
4
11
|
templateId: string;
|
|
5
12
|
lastUsed?: Date[];
|
|
6
13
|
createdAt?: string;
|
|
7
14
|
colorHex?: string;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
})[];
|
|
15
|
+
type: "system-cloned" | "regular";
|
|
16
|
+
exercises: TTemplateExercise[];
|
|
11
17
|
config: {
|
|
12
18
|
isEnabledStrictDurationTrackingMode: boolean;
|
|
13
19
|
};
|
|
@@ -15,6 +21,8 @@ export type TTemplate = {
|
|
|
15
21
|
export type TApiTemplateCreateReq = {
|
|
16
22
|
name: string;
|
|
17
23
|
programId: string | null;
|
|
24
|
+
colorHex?: string;
|
|
25
|
+
config: TTemplate["config"];
|
|
18
26
|
};
|
|
19
27
|
export type TApiTemplateCreateRes = {
|
|
20
28
|
status: number;
|
|
@@ -27,10 +35,14 @@ export type TApiTemplateUpdateReq = {
|
|
|
27
35
|
} & ({
|
|
28
36
|
name: string;
|
|
29
37
|
exerciseIds: string[];
|
|
38
|
+
config: TTemplate["config"];
|
|
39
|
+
colorHex?: string;
|
|
30
40
|
isDelete?: never | undefined;
|
|
31
41
|
} | {
|
|
32
42
|
isDelete: true;
|
|
43
|
+
config?: never | undefined;
|
|
33
44
|
name?: never | undefined;
|
|
45
|
+
colorHex?: never | undefined;
|
|
34
46
|
exerciseIds?: never | undefined;
|
|
35
47
|
});
|
|
36
48
|
export type TApiTemplateUpdateRes = {
|
package/dist/types/TApiUser.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export type TAuthType = "email" | "apple" | "anonymous";
|
|
2
2
|
export type TGender = "male" | "female" | "unmentioned";
|
|
3
|
-
export type TFitnessGoal = "strength" | "hypertrophy" | "endurance" | "general";
|
|
3
|
+
export type TFitnessGoal = "strength" | "hypertrophy" | "endurance" | "general" | "fat_burn" | "flexibility";
|
|
4
4
|
export type TUserFitnessGoal = "strength" | "hypertrophy" | "endurance" | "general";
|
|
5
5
|
export type TUserMetric = {
|
|
6
6
|
dob: Date;
|