@dgpholdings/greatoak-shared 1.0.94 → 1.1.4
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.
|
@@ -23,14 +23,11 @@ export type TRecordWeight = Extract<TRecord, {
|
|
|
23
23
|
export type TRecordBodyWeight = Extract<TRecord, {
|
|
24
24
|
type: "reps-only";
|
|
25
25
|
}>;
|
|
26
|
-
export type TExerciseRecord = {
|
|
27
|
-
exerciseId: string;
|
|
28
|
-
templateId: string;
|
|
29
|
-
exerciseNote: string;
|
|
30
|
-
} & TRecord;
|
|
31
26
|
export type TApiExerciseRecordUpdateReq = {
|
|
32
27
|
templateId: string;
|
|
33
28
|
records: {
|
|
29
|
+
enableAuxWeight: boolean;
|
|
30
|
+
enableRestTime: boolean;
|
|
34
31
|
exerciseId: string;
|
|
35
32
|
exerciseNote: string;
|
|
36
33
|
record: TRecord[];
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { TExercise } from "./TApiExercise";
|
|
2
|
+
import { TRecord } from "./TApiExerciseRecord";
|
|
2
3
|
export type TTemplate = {
|
|
3
4
|
name: string;
|
|
4
5
|
templateId: string;
|
|
@@ -41,11 +42,21 @@ export type TExerciseLatestRecord = {
|
|
|
41
42
|
exerciseNote?: string;
|
|
42
43
|
score: number;
|
|
43
44
|
records: {
|
|
44
|
-
kg?:
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
45
|
+
kg?: Extract<TRecord, {
|
|
46
|
+
type: "weight-reps";
|
|
47
|
+
}>["kg"];
|
|
48
|
+
reps?: Extract<TRecord, {
|
|
49
|
+
type: "weight-reps";
|
|
50
|
+
}>["reps"];
|
|
51
|
+
durationSecs?: Extract<TRecord, {
|
|
52
|
+
type: "duration";
|
|
53
|
+
}>["durationSecs"];
|
|
54
|
+
auxWeightKg?: Extract<TRecord, {
|
|
55
|
+
type: "duration";
|
|
56
|
+
}>["auxWeightKg"];
|
|
57
|
+
isDone: Extract<TRecord, {
|
|
58
|
+
type: "weight-reps";
|
|
59
|
+
}>["isDone"];
|
|
49
60
|
}[];
|
|
50
61
|
};
|
|
51
62
|
export type TTemplateData = TTemplate & {
|