@burdenoff/sdk-libs 2026.627.4 → 2026.627.5

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.
@@ -0,0 +1,259 @@
1
+ 'use strict';var m=`
2
+ fragment FileRef on File { id }
3
+ `,i=`
4
+ fragment PageInfoFields on MybPageInfo { cursor hasMore }
5
+ `,l=`
6
+ ${m}
7
+ fragment ExerciseFields on MybExercise {
8
+ id workoutId name muscleGroup sets reps targetWeight restSeconds orderIndex
9
+ instructions demo { ...FileRef }
10
+ workspaceId createdAt updatedAt
11
+ }
12
+ `,d=`
13
+ ${l}
14
+ fragment WorkoutFields on MybWorkout {
15
+ id programId name description type weekNumber dayOfWeek durationMin orderIndex
16
+ exercises { ...ExerciseFields }
17
+ workspaceId createdAt updatedAt
18
+ }
19
+ `,r=`
20
+ ${d}
21
+ fragment ProgramFields on MybProgram {
22
+ id memberId coachId name description goalType level phase status
23
+ weeks daysPerWeek tags startDate endDate
24
+ workouts { ...WorkoutFields }
25
+ workspaceId createdAt updatedAt
26
+ }
27
+ `,g=`
28
+ fragment SessionSetFields on MybSessionSet {
29
+ id sessionId exerciseName setNumber reps weight durationSec distanceM
30
+ isPersonalRecord workspaceId createdAt updatedAt
31
+ }
32
+ `,M=`
33
+ ${g}
34
+ fragment SessionFields on MybWorkoutSession {
35
+ id memberId programId workoutId status scheduledFor startedAt completedAt
36
+ caloriesBurned perceivedExertion notes
37
+ sets { ...SessionSetFields }
38
+ workspaceId createdAt updatedAt
39
+ }
40
+ `,n=`
41
+ fragment GoalFields on MybGoal {
42
+ id memberId title type status baselineValue currentValue targetValue unit
43
+ description targetDate achievedAt workspaceId createdAt updatedAt
44
+ }
45
+ `,u=`
46
+ fragment MealFields on MybMealLog {
47
+ id memberId planId name mealType servings calories proteinG carbsG fatG
48
+ isFavorite loggedAt workspaceId createdAt updatedAt
49
+ }
50
+ `,s=`
51
+ ${u}
52
+ fragment NutritionPlanFields on MybNutritionPlan {
53
+ id memberId coachId name goalType calorieTarget proteinTarget carbsTarget fatTarget
54
+ isActive notes startDate endDate
55
+ meals { ...MealFields }
56
+ workspaceId createdAt updatedAt
57
+ }
58
+ `,I=`
59
+ ${m}
60
+ fragment BodyMetricFields on MybBodyMetric {
61
+ id memberId type value unit measuredAt notes photo { ...FileRef }
62
+ workspaceId createdAt updatedAt
63
+ }
64
+ `,P=`
65
+ fragment RecoveryFields on MybRecoveryLog {
66
+ id memberId metric score sleepHours notes loggedAt
67
+ workspaceId createdAt updatedAt
68
+ }
69
+ `,c=`
70
+ fragment CoachingFields on MybCoachingRelationship {
71
+ id coachId memberId status specialty shareWorkouts shareNutrition shareMetrics
72
+ notes startedAt endedAt workspaceId createdAt updatedAt
73
+ }
74
+ `,ot=`
75
+ fragment DailyMacrosFields on MybDailyMacros {
76
+ date calories proteinG carbsG fatG calorieTarget proteinTarget carbsTarget fatTarget
77
+ }
78
+ `,A=`
79
+ ${r}
80
+ query MybGetProgram($id: ID!) { mybProgram(id: $id) { ...ProgramFields } }
81
+ `,S=`
82
+ ${r}
83
+ ${i}
84
+ query MybListPrograms($memberId: ID, $status: MybProgramStatus, $pagination: PaginationInput) {
85
+ mybListPrograms(memberId: $memberId, status: $status, pagination: $pagination) {
86
+ items { ...ProgramFields }
87
+ pageInfo { ...PageInfoFields }
88
+ }
89
+ }
90
+ `,_=`
91
+ ${r}
92
+ mutation MybCreateProgram($input: MybCreateProgramInput!) {
93
+ mybCreateProgram(input: $input) { ...ProgramFields }
94
+ }
95
+ `,C=`
96
+ ${r}
97
+ mutation MybUpdateProgram($id: ID!, $input: MybUpdateProgramInput!) {
98
+ mybUpdateProgram(id: $id, input: $input) { ...ProgramFields }
99
+ }
100
+ `,$=`
101
+ ${r}
102
+ mutation MybTransitionProgram($id: ID!, $status: MybProgramStatus!) {
103
+ mybTransitionProgram(id: $id, status: $status) { ...ProgramFields }
104
+ }
105
+ `,L=`
106
+ mutation MybArchiveProgram($id: ID!) { mybArchiveProgram(id: $id) }
107
+ `,R=`
108
+ ${d}
109
+ query MybProgramWorkouts($programId: ID!) {
110
+ mybProgramWorkouts(programId: $programId) { ...WorkoutFields }
111
+ }
112
+ `,E=`
113
+ ${d}
114
+ mutation MybAddWorkout($input: MybCreateWorkoutInput!) {
115
+ mybAddWorkout(input: $input) { ...WorkoutFields }
116
+ }
117
+ `,T=`
118
+ ${l}
119
+ mutation MybAddExercise($input: MybCreateExerciseInput!) {
120
+ mybAddExercise(input: $input) { ...ExerciseFields }
121
+ }
122
+ `,G=`
123
+ ${M}
124
+ query MybGetSession($id: ID!) { mybSession(id: $id) { ...SessionFields } }
125
+ `,N=`
126
+ ${M}
127
+ ${i}
128
+ query MybListSessions($programId: ID, $status: MybSessionStatus, $pagination: PaginationInput) {
129
+ mybListSessions(programId: $programId, status: $status, pagination: $pagination) {
130
+ items { ...SessionFields }
131
+ pageInfo { ...PageInfoFields }
132
+ }
133
+ }
134
+ `,h=`
135
+ ${M}
136
+ mutation MybStartSession($input: MybStartSessionInput!) {
137
+ mybStartSession(input: $input) { ...SessionFields }
138
+ }
139
+ `,B=`
140
+ ${M}
141
+ mutation MybCompleteSession($id: ID!, $input: MybCompleteSessionInput!) {
142
+ mybCompleteSession(id: $id, input: $input) { ...SessionFields }
143
+ }
144
+ `,O=`
145
+ ${g}
146
+ mutation MybLogSet($input: MybLogSetInput!) {
147
+ mybLogSet(input: $input) { ...SessionSetFields }
148
+ }
149
+ `,Y=`
150
+ ${n}
151
+ query MybGetGoal($id: ID!) { mybGoal(id: $id) { ...GoalFields } }
152
+ `,D=`
153
+ ${n}
154
+ ${i}
155
+ query MybListGoals($memberId: ID, $status: MybGoalStatus, $pagination: PaginationInput) {
156
+ mybListGoals(memberId: $memberId, status: $status, pagination: $pagination) {
157
+ items { ...GoalFields }
158
+ pageInfo { ...PageInfoFields }
159
+ }
160
+ }
161
+ `,F=`
162
+ ${n}
163
+ mutation MybCreateGoal($input: MybCreateGoalInput!) {
164
+ mybCreateGoal(input: $input) { ...GoalFields }
165
+ }
166
+ `,x=`
167
+ ${n}
168
+ mutation MybUpdateGoal($id: ID!, $input: MybUpdateGoalInput!) {
169
+ mybUpdateGoal(id: $id, input: $input) { ...GoalFields }
170
+ }
171
+ `,k=`
172
+ ${n}
173
+ mutation MybAchieveGoal($id: ID!) { mybAchieveGoal(id: $id) { ...GoalFields } }
174
+ `,v=`
175
+ ${s}
176
+ query MybGetNutritionPlan($id: ID!) {
177
+ mybNutritionPlan(id: $id) { ...NutritionPlanFields }
178
+ }
179
+ `,w=`
180
+ ${s}
181
+ query MybActiveNutritionPlan($memberId: ID) {
182
+ mybActiveNutritionPlan(memberId: $memberId) { ...NutritionPlanFields }
183
+ }
184
+ `,f=`
185
+ ${s}
186
+ mutation MybCreateNutritionPlan($input: MybCreateNutritionPlanInput!) {
187
+ mybCreateNutritionPlan(input: $input) { ...NutritionPlanFields }
188
+ }
189
+ `,q=`
190
+ ${s}
191
+ mutation MybUpdateNutritionPlan($id: ID!, $input: MybUpdateNutritionPlanInput!) {
192
+ mybUpdateNutritionPlan(id: $id, input: $input) { ...NutritionPlanFields }
193
+ }
194
+ `,W=`
195
+ ${s}
196
+ mutation MybActivateNutritionPlan($id: ID!) {
197
+ mybActivateNutritionPlan(id: $id) { ...NutritionPlanFields }
198
+ }
199
+ `,U=`
200
+ ${u}
201
+ ${i}
202
+ query MybListMeals($mealType: MybMealType, $planId: ID, $pagination: PaginationInput) {
203
+ mybListMeals(mealType: $mealType, planId: $planId, pagination: $pagination) {
204
+ items { ...MealFields }
205
+ pageInfo { ...PageInfoFields }
206
+ }
207
+ }
208
+ `,H=`
209
+ ${u}
210
+ mutation MybLogMeal($input: MybLogMealInput!) {
211
+ mybLogMeal(input: $input) { ...MealFields }
212
+ }
213
+ `,V=`
214
+ mutation MybDeleteMeal($id: ID!) { mybDeleteMeal(id: $id) }
215
+ `,K=`
216
+ ${ot}
217
+ query MybDailyMacros($date: DateTime, $memberId: ID) {
218
+ mybDailyMacros(date: $date, memberId: $memberId) { ...DailyMacrosFields }
219
+ }
220
+ `,j=`
221
+ ${I}
222
+ ${i}
223
+ query MybListBodyMetrics($memberId: ID, $type: MybBodyMetricType, $pagination: PaginationInput) {
224
+ mybListBodyMetrics(memberId: $memberId, type: $type, pagination: $pagination) {
225
+ items { ...BodyMetricFields }
226
+ pageInfo { ...PageInfoFields }
227
+ }
228
+ }
229
+ `,X=`
230
+ ${I}
231
+ mutation MybRecordBodyMetric($input: MybRecordMetricInput!) {
232
+ mybRecordBodyMetric(input: $input) { ...BodyMetricFields }
233
+ }
234
+ `,z=`
235
+ ${P}
236
+ query MybListRecoveryLogs($memberId: ID, $metric: MybRecoveryMetric) {
237
+ mybListRecoveryLogs(memberId: $memberId, metric: $metric) { ...RecoveryFields }
238
+ }
239
+ `,J=`
240
+ ${P}
241
+ mutation MybLogRecovery($input: MybLogRecoveryInput!) {
242
+ mybLogRecovery(input: $input) { ...RecoveryFields }
243
+ }
244
+ `,Q=`
245
+ ${c}
246
+ query MybListCoaching($memberId: ID, $status: MybCoachingStatus) {
247
+ mybListCoaching(memberId: $memberId, status: $status) { ...CoachingFields }
248
+ }
249
+ `,Z=`
250
+ ${c}
251
+ mutation MybCreateCoaching($input: MybCreateCoachingInput!) {
252
+ mybCreateCoaching(input: $input) { ...CoachingFields }
253
+ }
254
+ `,tt=`
255
+ ${c}
256
+ mutation MybTransitionCoaching($id: ID!, $status: MybCoachingStatus!) {
257
+ mybTransitionCoaching(id: $id, status: $status) { ...CoachingFields }
258
+ }
259
+ `,et="query MybHealth { mybHealth }";function at(b){let{workspace:a}=b.gql;return {programs:{async get(t){return (await a.request(A,{id:t})).mybProgram},async list(t,e,o){return (await a.request(S,{memberId:t,status:e,pagination:o})).mybListPrograms},async create(t){return (await a.request(_,{input:t})).mybCreateProgram},async update(t,e){return (await a.request(C,{id:t,input:e})).mybUpdateProgram},async transition(t,e){return (await a.request($,{id:t,status:e})).mybTransitionProgram},async archive(t){return (await a.request(L,{id:t})).mybArchiveProgram}},workouts:{async listByProgram(t){return (await a.request(R,{programId:t})).mybProgramWorkouts},async add(t){return (await a.request(E,{input:t})).mybAddWorkout},async addExercise(t){return (await a.request(T,{input:t})).mybAddExercise}},sessions:{async get(t){return (await a.request(G,{id:t})).mybSession},async list(t,e,o){return (await a.request(N,{programId:t,status:e,pagination:o})).mybListSessions},async start(t){return (await a.request(h,{input:t})).mybStartSession},async complete(t,e){return (await a.request(B,{id:t,input:e})).mybCompleteSession},async logSet(t){return (await a.request(O,{input:t})).mybLogSet}},goals:{async get(t){return (await a.request(Y,{id:t})).mybGoal},async list(t,e,o){return (await a.request(D,{memberId:t,status:e,pagination:o})).mybListGoals},async create(t){return (await a.request(F,{input:t})).mybCreateGoal},async update(t,e){return (await a.request(x,{id:t,input:e})).mybUpdateGoal},async achieve(t){return (await a.request(k,{id:t})).mybAchieveGoal}},nutrition:{async getPlan(t){return (await a.request(v,{id:t})).mybNutritionPlan},async activePlan(t){return (await a.request(w,{memberId:t})).mybActiveNutritionPlan},async createPlan(t){return (await a.request(f,{input:t})).mybCreateNutritionPlan},async updatePlan(t,e){return (await a.request(q,{id:t,input:e})).mybUpdateNutritionPlan},async activatePlan(t){return (await a.request(W,{id:t})).mybActivateNutritionPlan},async listMeals(t,e,o){return (await a.request(U,{mealType:t,planId:e,pagination:o})).mybListMeals},async logMeal(t){return (await a.request(H,{input:t})).mybLogMeal},async deleteMeal(t){return (await a.request(V,{id:t})).mybDeleteMeal},async dailyMacros(t,e){return (await a.request(K,{date:t,memberId:e})).mybDailyMacros}},metrics:{async list(t,e,o){return (await a.request(j,{memberId:t,type:e,pagination:o})).mybListBodyMetrics},async record(t){return (await a.request(X,{input:t})).mybRecordBodyMetric}},recovery:{async list(t,e){return (await a.request(z,{memberId:t,metric:e})).mybListRecoveryLogs},async log(t){return (await a.request(J,{input:t})).mybLogRecovery}},coaching:{async list(t,e){return (await a.request(Q,{memberId:t,status:e})).mybListCoaching},async create(t){return (await a.request(Z,{input:t})).mybCreateCoaching},async transition(t,e){return (await a.request(tt,{id:t,status:e})).mybTransitionCoaching}},health:{async check(){return (await a.request(et)).mybHealth}}}}var it={id:"mybodyshield",version:"1.0.0",displayName:"MyBodyShield",dependsOn:["auth"],attach(b){return at(b)}},At=it;module.exports=At;
@@ -0,0 +1,455 @@
1
+ import { S as SdkModule } from '../../module-JDbvil5h.cjs';
2
+ import 'graphql-request';
3
+
4
+ type MybBodyMetricType = 'ARM' | 'BODY_FAT' | 'CHEST' | 'HIPS' | 'RESTING_HEART_RATE' | 'THIGH' | 'WAIST' | 'WEIGHT';
5
+ type MybCoachingStatus = 'ACTIVE' | 'ENDED' | 'PAUSED' | 'PENDING';
6
+ type MybFitnessLevel = 'ADVANCED' | 'BEGINNER' | 'ELITE' | 'INTERMEDIATE';
7
+ type MybGoalStatus = 'ABANDONED' | 'ACHIEVED' | 'ACTIVE' | 'PAUSED';
8
+ type MybGoalType = 'ENDURANCE' | 'GENERAL_FITNESS' | 'MOBILITY' | 'MUSCLE_GAIN' | 'STRENGTH' | 'WEIGHT_LOSS';
9
+ type MybMealType = 'BREAKFAST' | 'DINNER' | 'LUNCH' | 'SNACK';
10
+ type MybMuscleGroup = 'ARMS' | 'BACK' | 'CHEST' | 'CORE' | 'FULL_BODY' | 'LEGS' | 'SHOULDERS';
11
+ type MybProgramPhase = 'BUILD' | 'DELOAD' | 'MAINTENANCE' | 'PEAK';
12
+ type MybProgramStatus = 'ACTIVE' | 'ARCHIVED' | 'COMPLETED' | 'DRAFT';
13
+ type MybRecoveryMetric = 'MOOD' | 'READINESS' | 'SLEEP' | 'SORENESS' | 'STRESS';
14
+ type MybSessionStatus = 'COMPLETED' | 'IN_PROGRESS' | 'SCHEDULED' | 'SKIPPED';
15
+ type MybWorkoutType = 'CARDIO' | 'HIIT' | 'MOBILITY' | 'RECOVERY' | 'STRENGTH' | 'YOGA';
16
+ interface MybFileRef {
17
+ id: string;
18
+ }
19
+ interface MybPageInfo {
20
+ cursor?: string | null;
21
+ hasMore: boolean;
22
+ }
23
+ interface MybBodyMetric {
24
+ id: string;
25
+ memberId: string;
26
+ type: MybBodyMetricType;
27
+ value: number;
28
+ unit: string;
29
+ measuredAt: string;
30
+ notes?: string | null;
31
+ photo?: MybFileRef | null;
32
+ workspaceId: string;
33
+ createdAt: string;
34
+ updatedAt: string;
35
+ }
36
+ interface MybCoachingRelationship {
37
+ id: string;
38
+ coachId: string;
39
+ memberId: string;
40
+ status: MybCoachingStatus;
41
+ specialty?: string | null;
42
+ shareWorkouts: boolean;
43
+ shareNutrition: boolean;
44
+ shareMetrics: boolean;
45
+ notes?: string | null;
46
+ startedAt?: string | null;
47
+ endedAt?: string | null;
48
+ workspaceId: string;
49
+ createdAt: string;
50
+ updatedAt: string;
51
+ }
52
+ interface MybExercise {
53
+ id: string;
54
+ workoutId: string;
55
+ name: string;
56
+ muscleGroup: MybMuscleGroup;
57
+ sets: number;
58
+ reps: number;
59
+ targetWeight: number;
60
+ restSeconds: number;
61
+ orderIndex: number;
62
+ instructions?: string | null;
63
+ demo?: MybFileRef | null;
64
+ workspaceId: string;
65
+ createdAt: string;
66
+ updatedAt: string;
67
+ }
68
+ interface MybGoal {
69
+ id: string;
70
+ memberId: string;
71
+ title: string;
72
+ type: MybGoalType;
73
+ status: MybGoalStatus;
74
+ baselineValue: number;
75
+ currentValue: number;
76
+ targetValue: number;
77
+ unit?: string | null;
78
+ description?: string | null;
79
+ targetDate?: string | null;
80
+ achievedAt?: string | null;
81
+ workspaceId: string;
82
+ createdAt: string;
83
+ updatedAt: string;
84
+ }
85
+ interface MybMealLog {
86
+ id: string;
87
+ memberId: string;
88
+ planId?: string | null;
89
+ name: string;
90
+ mealType: MybMealType;
91
+ servings: number;
92
+ calories: number;
93
+ proteinG: number;
94
+ carbsG: number;
95
+ fatG: number;
96
+ isFavorite: boolean;
97
+ loggedAt: string;
98
+ workspaceId: string;
99
+ createdAt: string;
100
+ updatedAt: string;
101
+ }
102
+ interface MybNutritionPlan {
103
+ id: string;
104
+ memberId: string;
105
+ coachId?: string | null;
106
+ name: string;
107
+ goalType: MybGoalType;
108
+ calorieTarget: number;
109
+ proteinTarget: number;
110
+ carbsTarget: number;
111
+ fatTarget: number;
112
+ isActive: boolean;
113
+ notes?: string | null;
114
+ startDate?: string | null;
115
+ endDate?: string | null;
116
+ meals: MybMealLog[];
117
+ workspaceId: string;
118
+ createdAt: string;
119
+ updatedAt: string;
120
+ }
121
+ interface MybProgram {
122
+ id: string;
123
+ memberId: string;
124
+ coachId?: string | null;
125
+ name: string;
126
+ description?: string | null;
127
+ goalType: MybGoalType;
128
+ level: MybFitnessLevel;
129
+ phase: MybProgramPhase;
130
+ status: MybProgramStatus;
131
+ weeks: number;
132
+ daysPerWeek: number;
133
+ tags: string[];
134
+ startDate?: string | null;
135
+ endDate?: string | null;
136
+ workouts: MybWorkout[];
137
+ workspaceId: string;
138
+ createdAt: string;
139
+ updatedAt: string;
140
+ }
141
+ interface MybRecoveryLog {
142
+ id: string;
143
+ memberId: string;
144
+ metric: MybRecoveryMetric;
145
+ score: number;
146
+ sleepHours: number;
147
+ notes?: string | null;
148
+ loggedAt: string;
149
+ workspaceId: string;
150
+ createdAt: string;
151
+ updatedAt: string;
152
+ }
153
+ interface MybSessionSet {
154
+ id: string;
155
+ sessionId: string;
156
+ exerciseName: string;
157
+ setNumber: number;
158
+ reps: number;
159
+ weight: number;
160
+ durationSec: number;
161
+ distanceM: number;
162
+ isPersonalRecord: boolean;
163
+ workspaceId: string;
164
+ createdAt: string;
165
+ updatedAt: string;
166
+ }
167
+ interface MybWorkout {
168
+ id: string;
169
+ programId: string;
170
+ name: string;
171
+ description?: string | null;
172
+ type: MybWorkoutType;
173
+ weekNumber: number;
174
+ dayOfWeek: number;
175
+ durationMin: number;
176
+ orderIndex: number;
177
+ exercises: MybExercise[];
178
+ workspaceId: string;
179
+ createdAt: string;
180
+ updatedAt: string;
181
+ }
182
+ interface MybWorkoutSession {
183
+ id: string;
184
+ memberId: string;
185
+ programId?: string | null;
186
+ workoutId?: string | null;
187
+ status: MybSessionStatus;
188
+ scheduledFor?: string | null;
189
+ startedAt?: string | null;
190
+ completedAt?: string | null;
191
+ caloriesBurned: number;
192
+ perceivedExertion?: number | null;
193
+ notes?: string | null;
194
+ sets: MybSessionSet[];
195
+ workspaceId: string;
196
+ createdAt: string;
197
+ updatedAt: string;
198
+ }
199
+ interface MybDailyMacros {
200
+ date: string;
201
+ calories: number;
202
+ proteinG: number;
203
+ carbsG: number;
204
+ fatG: number;
205
+ calorieTarget: number;
206
+ proteinTarget: number;
207
+ carbsTarget: number;
208
+ fatTarget: number;
209
+ }
210
+ interface MybProgramConnection {
211
+ items: MybProgram[];
212
+ pageInfo: MybPageInfo;
213
+ }
214
+ interface MybWorkoutSessionConnection {
215
+ items: MybWorkoutSession[];
216
+ pageInfo: MybPageInfo;
217
+ }
218
+ interface MybGoalConnection {
219
+ items: MybGoal[];
220
+ pageInfo: MybPageInfo;
221
+ }
222
+ interface MybMealLogConnection {
223
+ items: MybMealLog[];
224
+ pageInfo: MybPageInfo;
225
+ }
226
+ interface MybBodyMetricConnection {
227
+ items: MybBodyMetric[];
228
+ pageInfo: MybPageInfo;
229
+ }
230
+ interface MybPaginationInput {
231
+ cursor?: string;
232
+ limit?: number;
233
+ offset?: number;
234
+ }
235
+ interface MybCreateProgramInput {
236
+ name: string;
237
+ coachId?: string;
238
+ daysPerWeek?: number;
239
+ description?: string;
240
+ endDate?: string;
241
+ goalType?: MybGoalType;
242
+ level?: MybFitnessLevel;
243
+ memberId?: string;
244
+ phase?: MybProgramPhase;
245
+ startDate?: string;
246
+ tags?: string[];
247
+ weeks?: number;
248
+ }
249
+ interface MybUpdateProgramInput {
250
+ coachId?: string;
251
+ daysPerWeek?: number;
252
+ description?: string;
253
+ endDate?: string;
254
+ goalType?: MybGoalType;
255
+ level?: MybFitnessLevel;
256
+ name?: string;
257
+ phase?: MybProgramPhase;
258
+ startDate?: string;
259
+ tags?: string[];
260
+ weeks?: number;
261
+ }
262
+ interface MybCreateWorkoutInput {
263
+ programId: string;
264
+ name: string;
265
+ dayOfWeek?: number;
266
+ description?: string;
267
+ durationMin?: number;
268
+ orderIndex?: number;
269
+ type?: MybWorkoutType;
270
+ weekNumber?: number;
271
+ }
272
+ interface MybCreateExerciseInput {
273
+ workoutId: string;
274
+ name: string;
275
+ demoFileId?: string;
276
+ instructions?: string;
277
+ muscleGroup?: MybMuscleGroup;
278
+ orderIndex?: number;
279
+ reps?: number;
280
+ restSeconds?: number;
281
+ sets?: number;
282
+ targetWeight?: number;
283
+ }
284
+ interface MybStartSessionInput {
285
+ notes?: string;
286
+ programId?: string;
287
+ scheduledFor?: string;
288
+ workoutId?: string;
289
+ }
290
+ interface MybCompleteSessionInput {
291
+ caloriesBurned?: number;
292
+ notes?: string;
293
+ perceivedExertion?: number;
294
+ }
295
+ interface MybLogSetInput {
296
+ sessionId: string;
297
+ exerciseName: string;
298
+ distanceM?: number;
299
+ durationSec?: number;
300
+ isPersonalRecord?: boolean;
301
+ reps?: number;
302
+ setNumber?: number;
303
+ weight?: number;
304
+ }
305
+ interface MybCreateGoalInput {
306
+ title: string;
307
+ baselineValue?: number;
308
+ description?: string;
309
+ memberId?: string;
310
+ targetDate?: string;
311
+ targetValue?: number;
312
+ type?: MybGoalType;
313
+ unit?: string;
314
+ }
315
+ interface MybUpdateGoalInput {
316
+ baselineValue?: number;
317
+ currentValue?: number;
318
+ description?: string;
319
+ targetDate?: string;
320
+ targetValue?: number;
321
+ title?: string;
322
+ type?: MybGoalType;
323
+ unit?: string;
324
+ }
325
+ interface MybCreateNutritionPlanInput {
326
+ name: string;
327
+ calorieTarget?: number;
328
+ carbsTarget?: number;
329
+ coachId?: string;
330
+ endDate?: string;
331
+ fatTarget?: number;
332
+ goalType?: MybGoalType;
333
+ memberId?: string;
334
+ notes?: string;
335
+ proteinTarget?: number;
336
+ startDate?: string;
337
+ }
338
+ interface MybUpdateNutritionPlanInput {
339
+ calorieTarget?: number;
340
+ carbsTarget?: number;
341
+ endDate?: string;
342
+ fatTarget?: number;
343
+ goalType?: MybGoalType;
344
+ name?: string;
345
+ notes?: string;
346
+ proteinTarget?: number;
347
+ startDate?: string;
348
+ }
349
+ interface MybLogMealInput {
350
+ name: string;
351
+ calories?: number;
352
+ carbsG?: number;
353
+ fatG?: number;
354
+ isFavorite?: boolean;
355
+ loggedAt?: string;
356
+ mealType?: MybMealType;
357
+ planId?: string;
358
+ proteinG?: number;
359
+ servings?: number;
360
+ }
361
+ interface MybRecordMetricInput {
362
+ type: MybBodyMetricType;
363
+ value: number;
364
+ measuredAt?: string;
365
+ memberId?: string;
366
+ notes?: string;
367
+ photoFileId?: string;
368
+ unit?: string;
369
+ }
370
+ interface MybLogRecoveryInput {
371
+ loggedAt?: string;
372
+ memberId?: string;
373
+ metric?: MybRecoveryMetric;
374
+ notes?: string;
375
+ score?: number;
376
+ sleepHours?: number;
377
+ }
378
+ interface MybCreateCoachingInput {
379
+ coachId: string;
380
+ memberId: string;
381
+ shareMetrics?: boolean;
382
+ shareNutrition?: boolean;
383
+ shareWorkouts?: boolean;
384
+ specialty?: string;
385
+ }
386
+
387
+ interface MybProgramsApi {
388
+ get(id: string): Promise<MybProgram | null>;
389
+ list(memberId?: string, status?: MybProgramStatus, pagination?: MybPaginationInput): Promise<MybProgramConnection>;
390
+ create(input: MybCreateProgramInput): Promise<MybProgram>;
391
+ update(id: string, input: MybUpdateProgramInput): Promise<MybProgram>;
392
+ transition(id: string, status: MybProgramStatus): Promise<MybProgram>;
393
+ archive(id: string): Promise<boolean>;
394
+ }
395
+ interface MybWorkoutsApi {
396
+ listByProgram(programId: string): Promise<MybWorkout[]>;
397
+ add(input: MybCreateWorkoutInput): Promise<MybWorkout>;
398
+ addExercise(input: MybCreateExerciseInput): Promise<MybExercise>;
399
+ }
400
+ interface MybSessionsApi {
401
+ get(id: string): Promise<MybWorkoutSession | null>;
402
+ list(programId?: string, status?: MybSessionStatus, pagination?: MybPaginationInput): Promise<MybWorkoutSessionConnection>;
403
+ start(input: MybStartSessionInput): Promise<MybWorkoutSession>;
404
+ complete(id: string, input: MybCompleteSessionInput): Promise<MybWorkoutSession>;
405
+ logSet(input: MybLogSetInput): Promise<MybSessionSet>;
406
+ }
407
+ interface MybGoalsApi {
408
+ get(id: string): Promise<MybGoal | null>;
409
+ list(memberId?: string, status?: MybGoalStatus, pagination?: MybPaginationInput): Promise<MybGoalConnection>;
410
+ create(input: MybCreateGoalInput): Promise<MybGoal>;
411
+ update(id: string, input: MybUpdateGoalInput): Promise<MybGoal>;
412
+ achieve(id: string): Promise<MybGoal>;
413
+ }
414
+ interface MybNutritionApi {
415
+ getPlan(id: string): Promise<MybNutritionPlan | null>;
416
+ activePlan(memberId?: string): Promise<MybNutritionPlan | null>;
417
+ createPlan(input: MybCreateNutritionPlanInput): Promise<MybNutritionPlan>;
418
+ updatePlan(id: string, input: MybUpdateNutritionPlanInput): Promise<MybNutritionPlan>;
419
+ activatePlan(id: string): Promise<MybNutritionPlan>;
420
+ listMeals(mealType?: MybMealType, planId?: string, pagination?: MybPaginationInput): Promise<MybMealLogConnection>;
421
+ logMeal(input: MybLogMealInput): Promise<MybMealLog>;
422
+ deleteMeal(id: string): Promise<boolean>;
423
+ dailyMacros(date?: string, memberId?: string): Promise<MybDailyMacros>;
424
+ }
425
+ interface MybMetricsApi {
426
+ list(memberId?: string, type?: MybBodyMetricType, pagination?: MybPaginationInput): Promise<MybBodyMetricConnection>;
427
+ record(input: MybRecordMetricInput): Promise<MybBodyMetric>;
428
+ }
429
+ interface MybRecoveryApi {
430
+ list(memberId?: string, metric?: MybRecoveryMetric): Promise<MybRecoveryLog[]>;
431
+ log(input: MybLogRecoveryInput): Promise<MybRecoveryLog>;
432
+ }
433
+ interface MybCoachingApi {
434
+ list(memberId?: string, status?: MybCoachingStatus): Promise<MybCoachingRelationship[]>;
435
+ create(input: MybCreateCoachingInput): Promise<MybCoachingRelationship>;
436
+ transition(id: string, status: MybCoachingStatus): Promise<MybCoachingRelationship>;
437
+ }
438
+ interface MybHealthApi {
439
+ check(): Promise<string>;
440
+ }
441
+ interface MybodyshieldApi {
442
+ programs: MybProgramsApi;
443
+ workouts: MybWorkoutsApi;
444
+ sessions: MybSessionsApi;
445
+ goals: MybGoalsApi;
446
+ nutrition: MybNutritionApi;
447
+ metrics: MybMetricsApi;
448
+ recovery: MybRecoveryApi;
449
+ coaching: MybCoachingApi;
450
+ health: MybHealthApi;
451
+ }
452
+
453
+ declare const mybodyshieldModule: SdkModule<MybodyshieldApi>;
454
+
455
+ export { type MybBodyMetric, type MybBodyMetricConnection, type MybBodyMetricType, type MybCoachingApi, type MybCoachingRelationship, type MybCoachingStatus, type MybCompleteSessionInput, type MybCreateCoachingInput, type MybCreateExerciseInput, type MybCreateGoalInput, type MybCreateNutritionPlanInput, type MybCreateProgramInput, type MybCreateWorkoutInput, type MybDailyMacros, type MybExercise, type MybFileRef, type MybFitnessLevel, type MybGoal, type MybGoalConnection, type MybGoalStatus, type MybGoalType, type MybGoalsApi, type MybHealthApi, type MybLogMealInput, type MybLogRecoveryInput, type MybLogSetInput, type MybMealLog, type MybMealLogConnection, type MybMealType, type MybMetricsApi, type MybMuscleGroup, type MybNutritionApi, type MybNutritionPlan, type MybPageInfo, type MybPaginationInput, type MybProgram, type MybProgramConnection, type MybProgramPhase, type MybProgramStatus, type MybProgramsApi, type MybRecordMetricInput, type MybRecoveryApi, type MybRecoveryLog, type MybRecoveryMetric, type MybSessionSet, type MybSessionStatus, type MybSessionsApi, type MybStartSessionInput, type MybUpdateGoalInput, type MybUpdateNutritionPlanInput, type MybUpdateProgramInput, type MybWorkout, type MybWorkoutSession, type MybWorkoutSessionConnection, type MybWorkoutType, type MybWorkoutsApi, type MybodyshieldApi, mybodyshieldModule as default };