@burdenoff/microfe-mybodyshield 2026.716.1 → 2026.720.2
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/mybodyshield/data/programTemplates.d.ts +23 -0
- package/dist/mybodyshield/data/programTemplates.d.ts.map +1 -0
- package/dist/mybodyshield/data/programTemplates.js +212 -0
- package/dist/mybodyshield/data/programTemplates.js.map +1 -0
- package/dist/mybodyshield/hooks/useMyBodyShieldApi.d.ts +54 -5
- package/dist/mybodyshield/hooks/useMyBodyShieldApi.d.ts.map +1 -1
- package/dist/mybodyshield/hooks/useMyBodyShieldApi.js +101 -43
- package/dist/mybodyshield/hooks/useMyBodyShieldApi.js.map +1 -1
- package/dist/mybodyshield/pages/DashboardPage.js +1 -1
- package/dist/mybodyshield/pages/DashboardPage.js.map +1 -1
- package/dist/mybodyshield/pages/coaching/CoachingPage.js +1 -1
- package/dist/mybodyshield/pages/coaching/CoachingPage.js.map +1 -1
- package/dist/mybodyshield/pages/programs/ProgramsPage.d.ts.map +1 -1
- package/dist/mybodyshield/pages/programs/ProgramsPage.js +169 -121
- package/dist/mybodyshield/pages/programs/ProgramsPage.js.map +1 -1
- package/dist/mybodyshield/pages/recovery/RecoveryPage.js +1 -1
- package/dist/mybodyshield/pages/recovery/RecoveryPage.js.map +1 -1
- package/dist/mybodyshield/pages/train/SessionDetailPage.d.ts.map +1 -1
- package/dist/mybodyshield/pages/train/SessionDetailPage.js +438 -266
- package/dist/mybodyshield/pages/train/SessionDetailPage.js.map +1 -1
- package/dist/mybodyshield/types/assistant.d.ts.map +1 -1
- package/dist/mybodyshield/types/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { MybFitnessLevel, MybGoalType, MybWorkoutType } from '../types';
|
|
2
|
+
|
|
3
|
+
export interface ProgramTemplateWorkout {
|
|
4
|
+
name: string;
|
|
5
|
+
type: MybWorkoutType;
|
|
6
|
+
dayOfWeek: number;
|
|
7
|
+
weekNumber: number;
|
|
8
|
+
durationMin: number;
|
|
9
|
+
}
|
|
10
|
+
export interface ProgramTemplate {
|
|
11
|
+
id: string;
|
|
12
|
+
name: string;
|
|
13
|
+
description: string;
|
|
14
|
+
goalType: MybGoalType;
|
|
15
|
+
level: MybFitnessLevel;
|
|
16
|
+
weeks: number;
|
|
17
|
+
daysPerWeek: number;
|
|
18
|
+
/** First week's workouts only — a real starter block; members extend later weeks manually. */
|
|
19
|
+
workouts: readonly ProgramTemplateWorkout[];
|
|
20
|
+
}
|
|
21
|
+
export declare const PROGRAM_TEMPLATES: readonly ProgramTemplate[];
|
|
22
|
+
export declare function findProgramTemplate(id: string): ProgramTemplate | undefined;
|
|
23
|
+
//# sourceMappingURL=programTemplates.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"programTemplates.d.ts","sourceRoot":"","sources":["../../../src/mybodyshield/data/programTemplates.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE7E,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,cAAc,CAAC;IACrB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,WAAW,CAAC;IACtB,KAAK,EAAE,eAAe,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,8FAA8F;IAC9F,QAAQ,EAAE,SAAS,sBAAsB,EAAE,CAAC;CAC7C;AAED,eAAO,MAAM,iBAAiB,EAAE,SAAS,eAAe,EA8G9C,CAAC;AAEX,wBAAgB,mBAAmB,CAAC,EAAE,EAAE,MAAM,GAAG,eAAe,GAAG,SAAS,CAE3E"}
|
|
@@ -0,0 +1,212 @@
|
|
|
1
|
+
//#region src/mybodyshield/data/programTemplates.ts
|
|
2
|
+
var e = [
|
|
3
|
+
{
|
|
4
|
+
id: "couch-to-5k",
|
|
5
|
+
name: "Couch to 5K",
|
|
6
|
+
description: "Progressive walk-run intervals building to a continuous 5K run — for true beginners.",
|
|
7
|
+
goalType: "ENDURANCE",
|
|
8
|
+
level: "BEGINNER",
|
|
9
|
+
weeks: 9,
|
|
10
|
+
daysPerWeek: 3,
|
|
11
|
+
workouts: [
|
|
12
|
+
{
|
|
13
|
+
name: "Walk-Run Intervals",
|
|
14
|
+
type: "CARDIO",
|
|
15
|
+
dayOfWeek: 1,
|
|
16
|
+
weekNumber: 1,
|
|
17
|
+
durationMin: 30
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
name: "Easy Run",
|
|
21
|
+
type: "CARDIO",
|
|
22
|
+
dayOfWeek: 3,
|
|
23
|
+
weekNumber: 1,
|
|
24
|
+
durationMin: 25
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
name: "Recovery Walk",
|
|
28
|
+
type: "RECOVERY",
|
|
29
|
+
dayOfWeek: 5,
|
|
30
|
+
weekNumber: 1,
|
|
31
|
+
durationMin: 20
|
|
32
|
+
}
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
id: "run-and-burn-8wk",
|
|
37
|
+
name: "Run & Burn — 8 Week",
|
|
38
|
+
description: "High-volume running paired with metabolic conditioning, built for fat-loss goals.",
|
|
39
|
+
goalType: "WEIGHT_LOSS",
|
|
40
|
+
level: "INTERMEDIATE",
|
|
41
|
+
weeks: 8,
|
|
42
|
+
daysPerWeek: 4,
|
|
43
|
+
workouts: [
|
|
44
|
+
{
|
|
45
|
+
name: "Tempo Run",
|
|
46
|
+
type: "CARDIO",
|
|
47
|
+
dayOfWeek: 1,
|
|
48
|
+
weekNumber: 1,
|
|
49
|
+
durationMin: 35
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
name: "HIIT Circuit",
|
|
53
|
+
type: "HIIT",
|
|
54
|
+
dayOfWeek: 2,
|
|
55
|
+
weekNumber: 1,
|
|
56
|
+
durationMin: 30
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
name: "Long Slow Run",
|
|
60
|
+
type: "CARDIO",
|
|
61
|
+
dayOfWeek: 4,
|
|
62
|
+
weekNumber: 1,
|
|
63
|
+
durationMin: 50
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
name: "Active Recovery Mobility",
|
|
67
|
+
type: "MOBILITY",
|
|
68
|
+
dayOfWeek: 6,
|
|
69
|
+
weekNumber: 1,
|
|
70
|
+
durationMin: 25
|
|
71
|
+
}
|
|
72
|
+
]
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
id: "hiit-shred",
|
|
76
|
+
name: "HIIT Shred",
|
|
77
|
+
description: "Short, intense interval sessions for maximum calorie burn in minimal time.",
|
|
78
|
+
goalType: "WEIGHT_LOSS",
|
|
79
|
+
level: "INTERMEDIATE",
|
|
80
|
+
weeks: 6,
|
|
81
|
+
daysPerWeek: 4,
|
|
82
|
+
workouts: [
|
|
83
|
+
{
|
|
84
|
+
name: "Full-Body HIIT",
|
|
85
|
+
type: "HIIT",
|
|
86
|
+
dayOfWeek: 1,
|
|
87
|
+
weekNumber: 1,
|
|
88
|
+
durationMin: 25
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
name: "Sprint Intervals",
|
|
92
|
+
type: "CARDIO",
|
|
93
|
+
dayOfWeek: 3,
|
|
94
|
+
weekNumber: 1,
|
|
95
|
+
durationMin: 20
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
name: "Tabata Circuit",
|
|
99
|
+
type: "HIIT",
|
|
100
|
+
dayOfWeek: 5,
|
|
101
|
+
weekNumber: 1,
|
|
102
|
+
durationMin: 20
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
name: "Yoga Flow Recovery",
|
|
106
|
+
type: "YOGA",
|
|
107
|
+
dayOfWeek: 6,
|
|
108
|
+
weekNumber: 1,
|
|
109
|
+
durationMin: 30
|
|
110
|
+
}
|
|
111
|
+
]
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
id: "hybrid-strength-cardio",
|
|
115
|
+
name: "Hybrid Strength + Cardio",
|
|
116
|
+
description: "Balanced periodized block pairing strength days with dedicated cardio conditioning.",
|
|
117
|
+
goalType: "GENERAL_FITNESS",
|
|
118
|
+
level: "INTERMEDIATE",
|
|
119
|
+
weeks: 10,
|
|
120
|
+
daysPerWeek: 5,
|
|
121
|
+
workouts: [
|
|
122
|
+
{
|
|
123
|
+
name: "Lower Body Strength",
|
|
124
|
+
type: "STRENGTH",
|
|
125
|
+
dayOfWeek: 1,
|
|
126
|
+
weekNumber: 1,
|
|
127
|
+
durationMin: 55
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
name: "Steady-State Cardio",
|
|
131
|
+
type: "CARDIO",
|
|
132
|
+
dayOfWeek: 2,
|
|
133
|
+
weekNumber: 1,
|
|
134
|
+
durationMin: 35
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
name: "Upper Body Strength",
|
|
138
|
+
type: "STRENGTH",
|
|
139
|
+
dayOfWeek: 3,
|
|
140
|
+
weekNumber: 1,
|
|
141
|
+
durationMin: 55
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
name: "HIIT Finisher",
|
|
145
|
+
type: "HIIT",
|
|
146
|
+
dayOfWeek: 4,
|
|
147
|
+
weekNumber: 1,
|
|
148
|
+
durationMin: 25
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
name: "Full-Body Strength",
|
|
152
|
+
type: "STRENGTH",
|
|
153
|
+
dayOfWeek: 5,
|
|
154
|
+
weekNumber: 1,
|
|
155
|
+
durationMin: 50
|
|
156
|
+
}
|
|
157
|
+
]
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
id: "marathon-base-builder",
|
|
161
|
+
name: "Marathon Base Builder",
|
|
162
|
+
description: "Aerobic base-building mileage with strength support for marathon prep.",
|
|
163
|
+
goalType: "ENDURANCE",
|
|
164
|
+
level: "ADVANCED",
|
|
165
|
+
weeks: 12,
|
|
166
|
+
daysPerWeek: 5,
|
|
167
|
+
workouts: [
|
|
168
|
+
{
|
|
169
|
+
name: "Easy Base Run",
|
|
170
|
+
type: "CARDIO",
|
|
171
|
+
dayOfWeek: 1,
|
|
172
|
+
weekNumber: 1,
|
|
173
|
+
durationMin: 45
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
name: "Tempo Run",
|
|
177
|
+
type: "CARDIO",
|
|
178
|
+
dayOfWeek: 2,
|
|
179
|
+
weekNumber: 1,
|
|
180
|
+
durationMin: 40
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
name: "Strength & Mobility",
|
|
184
|
+
type: "STRENGTH",
|
|
185
|
+
dayOfWeek: 3,
|
|
186
|
+
weekNumber: 1,
|
|
187
|
+
durationMin: 45
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
name: "Hill Repeats",
|
|
191
|
+
type: "CARDIO",
|
|
192
|
+
dayOfWeek: 4,
|
|
193
|
+
weekNumber: 1,
|
|
194
|
+
durationMin: 40
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
name: "Long Run",
|
|
198
|
+
type: "CARDIO",
|
|
199
|
+
dayOfWeek: 6,
|
|
200
|
+
weekNumber: 1,
|
|
201
|
+
durationMin: 75
|
|
202
|
+
}
|
|
203
|
+
]
|
|
204
|
+
}
|
|
205
|
+
];
|
|
206
|
+
function t(t) {
|
|
207
|
+
return e.find((e) => e.id === t);
|
|
208
|
+
}
|
|
209
|
+
//#endregion
|
|
210
|
+
export { e as PROGRAM_TEMPLATES, t as findProgramTemplate };
|
|
211
|
+
|
|
212
|
+
//# sourceMappingURL=programTemplates.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"programTemplates.js","names":[],"sources":["../../../src/mybodyshield/data/programTemplates.ts"],"sourcesContent":["/**\n * Named program templates — BOFF-4182.\n * @module mybodyshield/data/programTemplates\n *\n * Program creation today (`ProgramsPage`'s create dialog) is a blank\n * strength-style form regardless of the member's goal, even though the\n * backend's `MybWorkoutType` enum already has CARDIO/HIIT/MOBILITY/YOGA/\n * RECOVERY values (`wspace-mybodyshield-svc/prisma/schema/enums.prisma`) —\n * nothing in the UI ever offers them as a starting point. These are seed\n * presets only: picking one pre-fills the create-program form and, once the\n * program is created via the real `mybCreateProgram` mutation, seeds its\n * first week of workouts via the real `mybAddWorkout` mutation (same\n * mutations a member would call manually) — no schema change, no new\n * backend endpoint.\n */\n\nimport type { MybFitnessLevel, MybGoalType, MybWorkoutType } from '../types';\n\nexport interface ProgramTemplateWorkout {\n name: string;\n type: MybWorkoutType;\n dayOfWeek: number;\n weekNumber: number;\n durationMin: number;\n}\n\nexport interface ProgramTemplate {\n id: string;\n name: string;\n description: string;\n goalType: MybGoalType;\n level: MybFitnessLevel;\n weeks: number;\n daysPerWeek: number;\n /** First week's workouts only — a real starter block; members extend later weeks manually. */\n workouts: readonly ProgramTemplateWorkout[];\n}\n\nexport const PROGRAM_TEMPLATES: readonly ProgramTemplate[] = [\n {\n id: 'couch-to-5k',\n name: 'Couch to 5K',\n description:\n 'Progressive walk-run intervals building to a continuous 5K run — for true beginners.',\n goalType: 'ENDURANCE',\n level: 'BEGINNER',\n weeks: 9,\n daysPerWeek: 3,\n workouts: [\n { name: 'Walk-Run Intervals', type: 'CARDIO', dayOfWeek: 1, weekNumber: 1, durationMin: 30 },\n { name: 'Easy Run', type: 'CARDIO', dayOfWeek: 3, weekNumber: 1, durationMin: 25 },\n { name: 'Recovery Walk', type: 'RECOVERY', dayOfWeek: 5, weekNumber: 1, durationMin: 20 },\n ],\n },\n {\n id: 'run-and-burn-8wk',\n name: 'Run & Burn — 8 Week',\n description:\n 'High-volume running paired with metabolic conditioning, built for fat-loss goals.',\n goalType: 'WEIGHT_LOSS',\n level: 'INTERMEDIATE',\n weeks: 8,\n daysPerWeek: 4,\n workouts: [\n { name: 'Tempo Run', type: 'CARDIO', dayOfWeek: 1, weekNumber: 1, durationMin: 35 },\n { name: 'HIIT Circuit', type: 'HIIT', dayOfWeek: 2, weekNumber: 1, durationMin: 30 },\n { name: 'Long Slow Run', type: 'CARDIO', dayOfWeek: 4, weekNumber: 1, durationMin: 50 },\n {\n name: 'Active Recovery Mobility',\n type: 'MOBILITY',\n dayOfWeek: 6,\n weekNumber: 1,\n durationMin: 25,\n },\n ],\n },\n {\n id: 'hiit-shred',\n name: 'HIIT Shred',\n description: 'Short, intense interval sessions for maximum calorie burn in minimal time.',\n goalType: 'WEIGHT_LOSS',\n level: 'INTERMEDIATE',\n weeks: 6,\n daysPerWeek: 4,\n workouts: [\n { name: 'Full-Body HIIT', type: 'HIIT', dayOfWeek: 1, weekNumber: 1, durationMin: 25 },\n { name: 'Sprint Intervals', type: 'CARDIO', dayOfWeek: 3, weekNumber: 1, durationMin: 20 },\n { name: 'Tabata Circuit', type: 'HIIT', dayOfWeek: 5, weekNumber: 1, durationMin: 20 },\n { name: 'Yoga Flow Recovery', type: 'YOGA', dayOfWeek: 6, weekNumber: 1, durationMin: 30 },\n ],\n },\n {\n id: 'hybrid-strength-cardio',\n name: 'Hybrid Strength + Cardio',\n description:\n 'Balanced periodized block pairing strength days with dedicated cardio conditioning.',\n goalType: 'GENERAL_FITNESS',\n level: 'INTERMEDIATE',\n weeks: 10,\n daysPerWeek: 5,\n workouts: [\n {\n name: 'Lower Body Strength',\n type: 'STRENGTH',\n dayOfWeek: 1,\n weekNumber: 1,\n durationMin: 55,\n },\n { name: 'Steady-State Cardio', type: 'CARDIO', dayOfWeek: 2, weekNumber: 1, durationMin: 35 },\n {\n name: 'Upper Body Strength',\n type: 'STRENGTH',\n dayOfWeek: 3,\n weekNumber: 1,\n durationMin: 55,\n },\n { name: 'HIIT Finisher', type: 'HIIT', dayOfWeek: 4, weekNumber: 1, durationMin: 25 },\n {\n name: 'Full-Body Strength',\n type: 'STRENGTH',\n dayOfWeek: 5,\n weekNumber: 1,\n durationMin: 50,\n },\n ],\n },\n {\n id: 'marathon-base-builder',\n name: 'Marathon Base Builder',\n description: 'Aerobic base-building mileage with strength support for marathon prep.',\n goalType: 'ENDURANCE',\n level: 'ADVANCED',\n weeks: 12,\n daysPerWeek: 5,\n workouts: [\n { name: 'Easy Base Run', type: 'CARDIO', dayOfWeek: 1, weekNumber: 1, durationMin: 45 },\n { name: 'Tempo Run', type: 'CARDIO', dayOfWeek: 2, weekNumber: 1, durationMin: 40 },\n {\n name: 'Strength & Mobility',\n type: 'STRENGTH',\n dayOfWeek: 3,\n weekNumber: 1,\n durationMin: 45,\n },\n { name: 'Hill Repeats', type: 'CARDIO', dayOfWeek: 4, weekNumber: 1, durationMin: 40 },\n { name: 'Long Run', type: 'CARDIO', dayOfWeek: 6, weekNumber: 1, durationMin: 75 },\n ],\n },\n] as const;\n\nexport function findProgramTemplate(id: string): ProgramTemplate | undefined {\n return PROGRAM_TEMPLATES.find((t) => t.id === id);\n}\n"],"mappings":";AAsCA,IAAa,IAAgD;CAC3D;EACE,IAAI;EACJ,MAAM;EACN,aACE;EACF,UAAU;EACV,OAAO;EACP,OAAO;EACP,aAAa;EACb,UAAU;GACR;IAAE,MAAM;IAAsB,MAAM;IAAU,WAAW;IAAG,YAAY;IAAG,aAAa;IAAI;GAC5F;IAAE,MAAM;IAAY,MAAM;IAAU,WAAW;IAAG,YAAY;IAAG,aAAa;IAAI;GAClF;IAAE,MAAM;IAAiB,MAAM;IAAY,WAAW;IAAG,YAAY;IAAG,aAAa;IAAI;GAC1F;EACF;CACD;EACE,IAAI;EACJ,MAAM;EACN,aACE;EACF,UAAU;EACV,OAAO;EACP,OAAO;EACP,aAAa;EACb,UAAU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AU;GACR;IAAE,MAAM;IAAiB,MAAM;IAAU,WAAW;IAAG,YAAY;IAAG,aAAa;IAAI;GACvF;IAAE,MAAM;IAAa,MAAM;IAAU,WAAW;IAAG,YAAY;IAAG,aAAa;IAAI;GACnF;IACE,MAAM;IACN,MAAM;IACN,WAAW;IACX,YAAY;IACZ,aAAa;IACd;GACD;IAAE,MAAM;IAAgB,MAAM;IAAU,WAAW;IAAG,YAAY;IAAG,aAAa;IAAI;GACtF;IAAE,MAAM;IAAY,MAAM;IAAU,WAAW;IAAG,YAAY;IAAG,aAAa;IAAI;GACnF;EACF;CACF;AAED,SAAgB,EAAoB,GAAyC;AAC3E,QAAO,EAAkB,MAAM,MAAM,EAAE,OAAO,EAAG"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MybConnection, MybProgram, MybProgramStatus, MybWorkout, MybWorkoutSession, MybSessionStatus, MybSessionSet, MybGoal, MybGoalStatus, MybMealLog, MybMealType, MybNutritionPlan, MybDailyMacros, MybBodyMetric, MybBodyMetricType, MybRecoveryLog, MybRecoveryMetric, MybCoachingRelationship, MybCoachingStatus, MybCreateProgramInput, MybUpdateProgramInput, MybCreateWorkoutInput, MybCreateExerciseInput, MybStartSessionInput, MybLogSetInput, MybCompleteSessionInput, MybCreateGoalInput, MybUpdateGoalInput, MybCreateNutritionPlanInput, MybUpdateNutritionPlanInput, MybLogMealInput, MybRecordMetricInput, MybLogRecoveryInput, MybCreateCoachingInput, PaginationInput } from '../types';
|
|
1
|
+
import { MybConnection, MybProgram, MybProgramStatus, MybWorkout, MybExercise, MybWorkoutSession, MybSessionStatus, MybSessionSet, MybGoal, MybGoalStatus, MybMealLog, MybMealType, MybNutritionPlan, MybDailyMacros, MybBodyMetric, MybBodyMetricType, MybRecoveryLog, MybRecoveryMetric, MybCoachingRelationship, MybCoachingStatus, MybCreateProgramInput, MybUpdateProgramInput, MybCreateWorkoutInput, MybCreateExerciseInput, MybStartSessionInput, MybLogSetInput, MybCompleteSessionInput, MybCreateGoalInput, MybUpdateGoalInput, MybCreateNutritionPlanInput, MybUpdateNutritionPlanInput, MybLogMealInput, MybRecordMetricInput, MybLogRecoveryInput, MybCreateCoachingInput, PaginationInput } from '../types';
|
|
2
2
|
|
|
3
3
|
export interface ProgramFilters {
|
|
4
4
|
status?: MybProgramStatus;
|
|
@@ -6,8 +6,33 @@ export interface ProgramFilters {
|
|
|
6
6
|
pagination?: PaginationInput;
|
|
7
7
|
}
|
|
8
8
|
export declare const useMybPrograms: (filters?: ProgramFilters) => import('@tanstack/react-query').UseQueryResult<NoInfer<MybConnection<MybProgram>>, Error>;
|
|
9
|
-
export declare const useMybProgram: (id: string | undefined) => import('@tanstack/react-query').UseQueryResult<NoInfer<
|
|
9
|
+
export declare const useMybProgram: (id: string | undefined) => import('@tanstack/react-query').UseQueryResult<NoInfer<{
|
|
10
|
+
workouts: MybWorkout[];
|
|
11
|
+
status: MybProgramStatus;
|
|
12
|
+
memberId: string;
|
|
13
|
+
name: string;
|
|
14
|
+
description?: string | null | undefined;
|
|
15
|
+
coachId?: string | null | undefined;
|
|
16
|
+
goalType: import('../types').MybGoalType;
|
|
17
|
+
level: import('../types').MybFitnessLevel;
|
|
18
|
+
phase: import('../types').MybProgramPhase;
|
|
19
|
+
weeks: number;
|
|
20
|
+
daysPerWeek: number;
|
|
21
|
+
startDate?: string | null | undefined;
|
|
22
|
+
endDate?: string | null | undefined;
|
|
23
|
+
tags: string[];
|
|
24
|
+
workspaceId: string;
|
|
25
|
+
id: string;
|
|
26
|
+
createdAt: string;
|
|
27
|
+
updatedAt: string;
|
|
28
|
+
} | null>, Error>;
|
|
10
29
|
export declare const useMybProgramWorkouts: (programId: string | undefined) => import('@tanstack/react-query').UseQueryResult<NoInfer<MybWorkout[]>, Error>;
|
|
30
|
+
/**
|
|
31
|
+
* Planned exercises for a single workout, in `orderIndex` order — the
|
|
32
|
+
* guided-workout stepper (BOFF-4096) walks a live session's `workoutId`
|
|
33
|
+
* through these to drive the "next exercise" flow.
|
|
34
|
+
*/
|
|
35
|
+
export declare const useMybWorkoutExercises: (workoutId: string | undefined) => import('@tanstack/react-query').UseQueryResult<NoInfer<MybExercise[]>, Error>;
|
|
11
36
|
export declare const useMybCreateProgram: () => import('@tanstack/react-query').UseMutationResult<MybProgram, Error, MybCreateProgramInput, unknown>;
|
|
12
37
|
export declare const useMybUpdateProgram: () => import('@tanstack/react-query').UseMutationResult<MybProgram, Error, {
|
|
13
38
|
id: string;
|
|
@@ -29,7 +54,31 @@ export interface SessionFilters {
|
|
|
29
54
|
pagination?: PaginationInput;
|
|
30
55
|
}
|
|
31
56
|
export declare const useMybSessions: (filters?: SessionFilters) => import('@tanstack/react-query').UseQueryResult<NoInfer<MybConnection<MybWorkoutSession>>, Error>;
|
|
32
|
-
export declare const useMybSession: (id: string | undefined) => import('@tanstack/react-query').UseQueryResult<NoInfer<
|
|
57
|
+
export declare const useMybSession: (id: string | undefined) => import('@tanstack/react-query').UseQueryResult<NoInfer<{
|
|
58
|
+
sets: MybSessionSet[];
|
|
59
|
+
status: MybSessionStatus;
|
|
60
|
+
memberId: string;
|
|
61
|
+
workspaceId: string;
|
|
62
|
+
id: string;
|
|
63
|
+
programId?: string | null | undefined;
|
|
64
|
+
createdAt: string;
|
|
65
|
+
updatedAt: string;
|
|
66
|
+
workoutId?: string | null | undefined;
|
|
67
|
+
scheduledFor?: string | null | undefined;
|
|
68
|
+
startedAt?: string | null | undefined;
|
|
69
|
+
completedAt?: string | null | undefined;
|
|
70
|
+
caloriesBurned: number;
|
|
71
|
+
perceivedExertion?: number | null | undefined;
|
|
72
|
+
notes?: string | null | undefined;
|
|
73
|
+
} | null>, Error>;
|
|
74
|
+
/**
|
|
75
|
+
* The calling member's own best-ever logged set for `exerciseName` (backend:
|
|
76
|
+
* `mybExerciseBestSet`, self-scoped — no memberId argument). Drives live
|
|
77
|
+
* auto-PR detection in the log-set dialog (BOFF-4096): `null` means the
|
|
78
|
+
* member has never logged this exercise before, so there is no record to
|
|
79
|
+
* beat yet.
|
|
80
|
+
*/
|
|
81
|
+
export declare const useMybExerciseBestSet: (exerciseName: string) => import('@tanstack/react-query').UseQueryResult<NoInfer<MybSessionSet | null>, Error>;
|
|
33
82
|
export declare const useMybStartSession: () => import('@tanstack/react-query').UseMutationResult<MybWorkoutSession, Error, MybStartSessionInput, unknown>;
|
|
34
83
|
export declare const useMybLogSet: () => import('@tanstack/react-query').UseMutationResult<MybSessionSet, Error, MybLogSetInput, unknown>;
|
|
35
84
|
export declare const useMybCompleteSession: () => import('@tanstack/react-query').UseMutationResult<MybWorkoutSession, Error, {
|
|
@@ -72,9 +121,9 @@ export interface BodyMetricFilters {
|
|
|
72
121
|
}
|
|
73
122
|
export declare const useMybBodyMetrics: (filters?: BodyMetricFilters) => import('@tanstack/react-query').UseQueryResult<NoInfer<MybConnection<MybBodyMetric>>, Error>;
|
|
74
123
|
export declare const useMybRecordBodyMetric: () => import('@tanstack/react-query').UseMutationResult<MybBodyMetric, Error, MybRecordMetricInput, unknown>;
|
|
75
|
-
export declare const useMybRecoveryLogs: (metric?: MybRecoveryMetric, memberId?: string) => import('@tanstack/react-query').UseQueryResult<NoInfer<MybRecoveryLog
|
|
124
|
+
export declare const useMybRecoveryLogs: (metric?: MybRecoveryMetric, memberId?: string) => import('@tanstack/react-query').UseQueryResult<NoInfer<MybConnection<MybRecoveryLog>>, Error>;
|
|
76
125
|
export declare const useMybLogRecovery: () => import('@tanstack/react-query').UseMutationResult<MybRecoveryLog, Error, MybLogRecoveryInput, unknown>;
|
|
77
|
-
export declare const useMybCoaching: (status?: MybCoachingStatus, memberId?: string) => import('@tanstack/react-query').UseQueryResult<NoInfer<MybCoachingRelationship
|
|
126
|
+
export declare const useMybCoaching: (status?: MybCoachingStatus, memberId?: string) => import('@tanstack/react-query').UseQueryResult<NoInfer<MybConnection<MybCoachingRelationship>>, Error>;
|
|
78
127
|
export declare const useMybCreateCoaching: () => import('@tanstack/react-query').UseMutationResult<MybCoachingRelationship, Error, MybCreateCoachingInput, unknown>;
|
|
79
128
|
export declare const useMybTransitionCoaching: () => import('@tanstack/react-query').UseMutationResult<MybCoachingRelationship, Error, {
|
|
80
129
|
id: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMyBodyShieldApi.d.ts","sourceRoot":"","sources":["../../../src/mybodyshield/hooks/useMyBodyShieldApi.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAMH,OAAO,KAAK,EACV,aAAa,EACb,UAAU,EACV,gBAAgB,EAChB,UAAU,EACV,iBAAiB,EACjB,gBAAgB,EAChB,aAAa,EACb,OAAO,EACP,aAAa,EACb,UAAU,EACV,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,aAAa,EACb,iBAAiB,EACjB,cAAc,EACd,iBAAiB,EACjB,uBAAuB,EACvB,iBAAiB,EACjB,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,EACrB,sBAAsB,EACtB,oBAAoB,EACpB,cAAc,EACd,uBAAuB,EACvB,kBAAkB,EAClB,kBAAkB,EAClB,2BAA2B,EAC3B,2BAA2B,EAC3B,eAAe,EACf,oBAAoB,EACpB,mBAAmB,EACnB,sBAAsB,EACtB,eAAe,EAChB,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"useMyBodyShieldApi.d.ts","sourceRoot":"","sources":["../../../src/mybodyshield/hooks/useMyBodyShieldApi.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAMH,OAAO,KAAK,EACV,aAAa,EACb,UAAU,EACV,gBAAgB,EAChB,UAAU,EACV,WAAW,EACX,iBAAiB,EACjB,gBAAgB,EAChB,aAAa,EACb,OAAO,EACP,aAAa,EACb,UAAU,EACV,WAAW,EACX,gBAAgB,EAChB,cAAc,EACd,aAAa,EACb,iBAAiB,EACjB,cAAc,EACd,iBAAiB,EACjB,uBAAuB,EACvB,iBAAiB,EACjB,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,EACrB,sBAAsB,EACtB,o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