@burdenoff/microfe-mybodyshield 2026.830.1 → 2026.1026.1
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/MyBodyShieldRoutes.d.ts.map +1 -1
- package/dist/mybodyshield/MyBodyShieldRoutes.js +35 -24
- package/dist/mybodyshield/MyBodyShieldRoutes.js.map +1 -1
- package/dist/mybodyshield/components/FilterTabs.js +1 -1
- package/dist/mybodyshield/components/FilterTabs.js.map +1 -1
- package/dist/mybodyshield/hooks/useMyBodyShieldApi.d.ts +4 -1
- package/dist/mybodyshield/hooks/useMyBodyShieldApi.d.ts.map +1 -1
- package/dist/mybodyshield/hooks/useMyBodyShieldApi.js +85 -60
- package/dist/mybodyshield/hooks/useMyBodyShieldApi.js.map +1 -1
- package/dist/mybodyshield/pages/insights/InsightsPage.js +1 -1
- package/dist/mybodyshield/pages/insights/InsightsPage.js.map +1 -1
- package/dist/mybodyshield/pages/recovery/MindfulnessPage.d.ts +2 -0
- package/dist/mybodyshield/pages/recovery/MindfulnessPage.d.ts.map +1 -0
- package/dist/mybodyshield/pages/recovery/MindfulnessPage.js +181 -0
- package/dist/mybodyshield/pages/recovery/MindfulnessPage.js.map +1 -0
- package/dist/mybodyshield/pages/recovery/RecoveryPage.d.ts.map +1 -1
- package/dist/mybodyshield/pages/recovery/RecoveryPage.js +210 -201
- package/dist/mybodyshield/pages/recovery/RecoveryPage.js.map +1 -1
- package/dist/mybodyshield/types/index.d.ts +31 -0
- package/dist/mybodyshield/types/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -81,16 +81,18 @@ var a = () => {
|
|
|
81
81
|
],
|
|
82
82
|
aiSettings: ["mybodyshield", "ai-settings"],
|
|
83
83
|
aiOperationLogs: ["mybodyshield", "ai-operation-logs"],
|
|
84
|
-
aiConsent: ["mybodyshield", "ai-consent"]
|
|
85
|
-
|
|
84
|
+
aiConsent: ["mybodyshield", "ai-consent"],
|
|
85
|
+
mindfulnessExercises: ["mybodyshield", "mindfulness-exercises"],
|
|
86
|
+
mindfulnessSessions: ["mybodyshield", "mindfulness-sessions"]
|
|
87
|
+
}, c = { limit: 50 }, l = "\n id workspaceId memberId coachId name description goalType level phase status\n weeks daysPerWeek startDate endDate tags createdAt updatedAt\n", u = "\n id workspaceId workoutId name instructions muscleGroup sets reps targetWeight\n restSeconds orderIndex demo { id } createdAt updatedAt\n", d = "\n id workspaceId programId name description type dayOfWeek weekNumber orderIndex\n durationMin createdAt updatedAt\n", f = "\n id workspaceId sessionId exerciseName setNumber reps weight distanceM durationSec\n isPersonalRecord createdAt updatedAt\n", p = "\n id workspaceId memberId programId workoutId status scheduledFor startedAt completedAt\n caloriesBurned perceivedExertion notes createdAt updatedAt\n", m = "\n id workspaceId memberId title description type status targetValue currentValue\n baselineValue unit targetDate achievedAt createdAt updatedAt\n", h = "\n id workspaceId memberId planId name mealType calories proteinG carbsG fatG servings\n isFavorite loggedAt barcode createdAt updatedAt\n", g = "\n id workspaceId memberId coachId name goalType calorieTarget proteinTarget carbsTarget\n fatTarget startDate endDate isActive notes createdAt updatedAt\n", _ = "\n id workspaceId memberId type value unit measuredAt notes photo { id } createdAt updatedAt\n", v = "\n id workspaceId memberId metric score sleepHours notes loggedAt createdAt updatedAt\n", y = "\n id workspaceId coachId memberId status specialty shareWorkouts shareNutrition\n shareMetrics startedAt endedAt notes createdAt updatedAt\n", ee = "\n memberId date readinessScore aiSummary cards { signal action reason }\n", te = `
|
|
86
88
|
dateRangeStart dateRangeEnd
|
|
87
89
|
summary { consistencyStreakDays totalSessions totalVolumeKg averageReadiness macroAdherencePercent }
|
|
88
90
|
daily { date sessions volumeKg readiness sleepHours calories proteinG carbsG fatG weight }
|
|
89
91
|
goals { ${m} }
|
|
90
|
-
`,
|
|
92
|
+
`, b = "\n id workspaceId memberId provider hasProviderKey modelName dailyAllowance dailyAllowanceUsed allowanceResetAt createdAt updatedAt\n", x = "\n id workspaceId memberId operationType provider modelName inputTokens outputTokens status errorMessage createdAt\n", S = "\n id workspaceId actorId enabled acceptedAt withdrawnAt createdAt updatedAt\n", C = "\n barcode name brand servingG calories proteinG carbsG fatG imageUrl\n", ne = "\n date calories proteinG carbsG fatG calorieTarget proteinTarget carbsTarget fatTarget\n", w = (e) => e.map(({ exercises: e, ...t }) => ({
|
|
91
93
|
...t,
|
|
92
94
|
exercises: e.items
|
|
93
|
-
})),
|
|
95
|
+
})), T = (t = {}) => {
|
|
94
96
|
let { apiGatewayUrl: r } = e();
|
|
95
97
|
return n({
|
|
96
98
|
queryKey: [...s.programs, t],
|
|
@@ -105,7 +107,7 @@ var a = () => {
|
|
|
105
107
|
pagination: t.pagination ?? c
|
|
106
108
|
}, r)).mybListPrograms
|
|
107
109
|
});
|
|
108
|
-
},
|
|
110
|
+
}, E = (t) => {
|
|
109
111
|
let { apiGatewayUrl: r } = e();
|
|
110
112
|
return n({
|
|
111
113
|
queryKey: s.program(t ?? ""),
|
|
@@ -126,16 +128,16 @@ var a = () => {
|
|
|
126
128
|
let { workouts: n, ...i } = e.mybProgram;
|
|
127
129
|
return {
|
|
128
130
|
...i,
|
|
129
|
-
workouts:
|
|
131
|
+
workouts: w(n.items)
|
|
130
132
|
};
|
|
131
133
|
}
|
|
132
134
|
});
|
|
133
|
-
},
|
|
135
|
+
}, D = (t) => {
|
|
134
136
|
let { apiGatewayUrl: r } = e();
|
|
135
137
|
return n({
|
|
136
138
|
queryKey: s.programWorkouts(t ?? ""),
|
|
137
139
|
enabled: !!t,
|
|
138
|
-
queryFn: async () =>
|
|
140
|
+
queryFn: async () => w((await o(`query MybProgramWorkouts($programId: ID!) {
|
|
139
141
|
mybProgramWorkouts(programId: $programId) {
|
|
140
142
|
items {
|
|
141
143
|
${d}
|
|
@@ -144,7 +146,7 @@ var a = () => {
|
|
|
144
146
|
}
|
|
145
147
|
}`, { programId: t }, r)).mybProgramWorkouts.items)
|
|
146
148
|
});
|
|
147
|
-
},
|
|
149
|
+
}, O = (t) => {
|
|
148
150
|
let { apiGatewayUrl: r } = e();
|
|
149
151
|
return n({
|
|
150
152
|
queryKey: s.workoutExercises(t ?? ""),
|
|
@@ -155,7 +157,7 @@ var a = () => {
|
|
|
155
157
|
}
|
|
156
158
|
}`, { workoutId: t }, r)).mybWorkoutExercises.items.slice().sort((e, t) => e.orderIndex - t.orderIndex)
|
|
157
159
|
});
|
|
158
|
-
},
|
|
160
|
+
}, k = () => {
|
|
159
161
|
let { apiGatewayUrl: n } = e(), i = r();
|
|
160
162
|
return t({
|
|
161
163
|
mutationFn: async (e) => (await o(`mutation MybCreateProgram($input: MybCreateProgramInput!) {
|
|
@@ -163,7 +165,7 @@ var a = () => {
|
|
|
163
165
|
}`, { input: e }, n)).mybCreateProgram,
|
|
164
166
|
onSuccess: () => i.invalidateQueries({ queryKey: s.programs })
|
|
165
167
|
});
|
|
166
|
-
},
|
|
168
|
+
}, A = () => {
|
|
167
169
|
let { apiGatewayUrl: n } = e(), i = r();
|
|
168
170
|
return t({
|
|
169
171
|
mutationFn: async (e) => (await o(`mutation MybUpdateProgram($id: ID!, $input: MybUpdateProgramInput!) {
|
|
@@ -173,7 +175,7 @@ var a = () => {
|
|
|
173
175
|
i.invalidateQueries({ queryKey: s.programs }), i.invalidateQueries({ queryKey: s.program(e.id) });
|
|
174
176
|
}
|
|
175
177
|
});
|
|
176
|
-
},
|
|
178
|
+
}, j = () => {
|
|
177
179
|
let { apiGatewayUrl: n } = e(), i = r();
|
|
178
180
|
return t({
|
|
179
181
|
mutationFn: async (e) => (await o(`mutation MybTransitionProgram($id: ID!, $status: MybProgramStatus!) {
|
|
@@ -183,13 +185,13 @@ var a = () => {
|
|
|
183
185
|
i.invalidateQueries({ queryKey: s.programs }), i.invalidateQueries({ queryKey: s.program(e.id) });
|
|
184
186
|
}
|
|
185
187
|
});
|
|
186
|
-
},
|
|
188
|
+
}, M = () => {
|
|
187
189
|
let { apiGatewayUrl: n } = e(), i = r();
|
|
188
190
|
return t({
|
|
189
191
|
mutationFn: async (e) => (await o("mutation MybArchiveProgram($id: ID!) { mybArchiveProgram(id: $id) }", { id: e }, n)).mybArchiveProgram,
|
|
190
192
|
onSuccess: () => i.invalidateQueries({ queryKey: s.programs })
|
|
191
193
|
});
|
|
192
|
-
},
|
|
194
|
+
}, N = () => {
|
|
193
195
|
let { apiGatewayUrl: n } = e(), i = r();
|
|
194
196
|
return t({
|
|
195
197
|
mutationFn: async (e) => (await o(`mutation MybAddWorkout($input: MybCreateWorkoutInput!) {
|
|
@@ -199,7 +201,7 @@ var a = () => {
|
|
|
199
201
|
i.invalidateQueries({ queryKey: s.program(e.programId) }), i.invalidateQueries({ queryKey: s.programWorkouts(e.programId) });
|
|
200
202
|
}
|
|
201
203
|
});
|
|
202
|
-
},
|
|
204
|
+
}, P = () => {
|
|
203
205
|
let { apiGatewayUrl: n } = e(), i = r();
|
|
204
206
|
return t({
|
|
205
207
|
mutationFn: async (e) => (await o("mutation MybAddExercise($input: MybCreateExerciseInput!) {\n mybAddExercise(input: $input) { id workoutId }\n }", { input: e }, n)).mybAddExercise,
|
|
@@ -207,7 +209,7 @@ var a = () => {
|
|
|
207
209
|
i.invalidateQueries({ queryKey: ["mybodyshield", "program"] }), i.invalidateQueries({ queryKey: ["mybodyshield", "program-workouts"] });
|
|
208
210
|
}
|
|
209
211
|
});
|
|
210
|
-
},
|
|
212
|
+
}, F = (t = {}) => {
|
|
211
213
|
let { apiGatewayUrl: r } = e();
|
|
212
214
|
return n({
|
|
213
215
|
queryKey: [...s.sessions, t],
|
|
@@ -222,7 +224,7 @@ var a = () => {
|
|
|
222
224
|
pagination: t.pagination ?? c
|
|
223
225
|
}, r)).mybListSessions
|
|
224
226
|
});
|
|
225
|
-
},
|
|
227
|
+
}, I = (t) => {
|
|
226
228
|
let { apiGatewayUrl: r } = e();
|
|
227
229
|
return n({
|
|
228
230
|
queryKey: s.session(t ?? ""),
|
|
@@ -242,7 +244,7 @@ var a = () => {
|
|
|
242
244
|
};
|
|
243
245
|
}
|
|
244
246
|
});
|
|
245
|
-
},
|
|
247
|
+
}, L = (t) => {
|
|
246
248
|
let { apiGatewayUrl: r } = e(), i = t.trim();
|
|
247
249
|
return n({
|
|
248
250
|
queryKey: s.exerciseBestSet(i),
|
|
@@ -252,7 +254,7 @@ var a = () => {
|
|
|
252
254
|
}`, { exerciseName: i }, r)).mybExerciseBestSet,
|
|
253
255
|
staleTime: 15e3
|
|
254
256
|
});
|
|
255
|
-
},
|
|
257
|
+
}, R = () => {
|
|
256
258
|
let { apiGatewayUrl: n } = e(), i = r();
|
|
257
259
|
return t({
|
|
258
260
|
mutationFn: async (e) => (await o(`mutation MybStartSession($input: MybStartSessionInput!) {
|
|
@@ -260,7 +262,7 @@ var a = () => {
|
|
|
260
262
|
}`, { input: e }, n)).mybStartSession,
|
|
261
263
|
onSuccess: () => i.invalidateQueries({ queryKey: s.sessions })
|
|
262
264
|
});
|
|
263
|
-
},
|
|
265
|
+
}, z = () => {
|
|
264
266
|
let { apiGatewayUrl: n } = e(), i = r();
|
|
265
267
|
return t({
|
|
266
268
|
mutationFn: async (e) => (await o(`mutation MybLogSet($input: MybLogSetInput!) {
|
|
@@ -270,7 +272,7 @@ var a = () => {
|
|
|
270
272
|
i.invalidateQueries({ queryKey: s.session(e.sessionId) }), i.invalidateQueries({ queryKey: s.sessions }), i.invalidateQueries({ queryKey: s.exerciseBestSet(e.exerciseName) });
|
|
271
273
|
}
|
|
272
274
|
});
|
|
273
|
-
},
|
|
275
|
+
}, B = () => {
|
|
274
276
|
let { apiGatewayUrl: n } = e(), i = r();
|
|
275
277
|
return t({
|
|
276
278
|
mutationFn: async (e) => (await o(`mutation MybCompleteSession($id: ID!, $input: MybCompleteSessionInput!) {
|
|
@@ -280,7 +282,7 @@ var a = () => {
|
|
|
280
282
|
i.invalidateQueries({ queryKey: s.session(e.id) }), i.invalidateQueries({ queryKey: s.sessions });
|
|
281
283
|
}
|
|
282
284
|
});
|
|
283
|
-
},
|
|
285
|
+
}, V = (t = {}) => {
|
|
284
286
|
let { apiGatewayUrl: r } = e();
|
|
285
287
|
return n({
|
|
286
288
|
queryKey: [...s.goals, t],
|
|
@@ -295,7 +297,7 @@ var a = () => {
|
|
|
295
297
|
pagination: t.pagination ?? c
|
|
296
298
|
}, r)).mybListGoals
|
|
297
299
|
});
|
|
298
|
-
},
|
|
300
|
+
}, H = () => {
|
|
299
301
|
let { apiGatewayUrl: n } = e(), i = r();
|
|
300
302
|
return t({
|
|
301
303
|
mutationFn: async (e) => (await o(`mutation MybCreateGoal($input: MybCreateGoalInput!) {
|
|
@@ -303,7 +305,7 @@ var a = () => {
|
|
|
303
305
|
}`, { input: e }, n)).mybCreateGoal,
|
|
304
306
|
onSuccess: () => i.invalidateQueries({ queryKey: s.goals })
|
|
305
307
|
});
|
|
306
|
-
},
|
|
308
|
+
}, U = () => {
|
|
307
309
|
let { apiGatewayUrl: n } = e(), i = r();
|
|
308
310
|
return t({
|
|
309
311
|
mutationFn: async (e) => (await o(`mutation MybUpdateGoal($id: ID!, $input: MybUpdateGoalInput!) {
|
|
@@ -311,7 +313,7 @@ var a = () => {
|
|
|
311
313
|
}`, e, n)).mybUpdateGoal,
|
|
312
314
|
onSuccess: () => i.invalidateQueries({ queryKey: s.goals })
|
|
313
315
|
});
|
|
314
|
-
},
|
|
316
|
+
}, W = () => {
|
|
315
317
|
let { apiGatewayUrl: n } = e(), i = r();
|
|
316
318
|
return t({
|
|
317
319
|
mutationFn: async (e) => (await o(`mutation MybAchieveGoal($id: ID!) {
|
|
@@ -319,7 +321,7 @@ var a = () => {
|
|
|
319
321
|
}`, { id: e }, n)).mybAchieveGoal,
|
|
320
322
|
onSuccess: () => i.invalidateQueries({ queryKey: s.goals })
|
|
321
323
|
});
|
|
322
|
-
},
|
|
324
|
+
}, G = (t) => {
|
|
323
325
|
let { apiGatewayUrl: r } = e();
|
|
324
326
|
return n({
|
|
325
327
|
queryKey: [...s.activePlan, t ?? "me"],
|
|
@@ -327,7 +329,7 @@ var a = () => {
|
|
|
327
329
|
mybActiveNutritionPlan(memberId: $memberId) { ${g} }
|
|
328
330
|
}`, { memberId: t }, r)).mybActiveNutritionPlan
|
|
329
331
|
});
|
|
330
|
-
},
|
|
332
|
+
}, K = (t = {}) => {
|
|
331
333
|
let { apiGatewayUrl: r } = e();
|
|
332
334
|
return n({
|
|
333
335
|
queryKey: [...s.meals, t],
|
|
@@ -342,7 +344,7 @@ var a = () => {
|
|
|
342
344
|
pagination: t.pagination ?? c
|
|
343
345
|
}, r)).mybListMeals
|
|
344
346
|
});
|
|
345
|
-
},
|
|
347
|
+
}, q = (t, r) => {
|
|
346
348
|
let { apiGatewayUrl: i } = e();
|
|
347
349
|
return n({
|
|
348
350
|
queryKey: [
|
|
@@ -351,13 +353,13 @@ var a = () => {
|
|
|
351
353
|
r ?? "me"
|
|
352
354
|
],
|
|
353
355
|
queryFn: async () => (await o(`query MybDailyMacros($date: DateTime, $memberId: ID) {
|
|
354
|
-
mybDailyMacros(date: $date, memberId: $memberId) { ${
|
|
356
|
+
mybDailyMacros(date: $date, memberId: $memberId) { ${ne} }
|
|
355
357
|
}`, {
|
|
356
358
|
date: t,
|
|
357
359
|
memberId: r
|
|
358
360
|
}, i)).mybDailyMacros
|
|
359
361
|
});
|
|
360
|
-
},
|
|
362
|
+
}, re = () => {
|
|
361
363
|
let { apiGatewayUrl: n } = e(), i = r();
|
|
362
364
|
return t({
|
|
363
365
|
mutationFn: async (e) => (await o(`mutation MybCreateNutritionPlan($input: MybCreateNutritionPlanInput!) {
|
|
@@ -367,7 +369,7 @@ var a = () => {
|
|
|
367
369
|
i.invalidateQueries({ queryKey: s.activePlan });
|
|
368
370
|
}
|
|
369
371
|
});
|
|
370
|
-
},
|
|
372
|
+
}, J = () => {
|
|
371
373
|
let { apiGatewayUrl: n } = e(), i = r();
|
|
372
374
|
return t({
|
|
373
375
|
mutationFn: async (e) => (await o(`mutation MybUpdateNutritionPlan($id: ID!, $input: MybUpdateNutritionPlanInput!) {
|
|
@@ -377,7 +379,7 @@ var a = () => {
|
|
|
377
379
|
i.invalidateQueries({ queryKey: s.activePlan }), i.invalidateQueries({ queryKey: s.nutritionPlan(e.id) });
|
|
378
380
|
}
|
|
379
381
|
});
|
|
380
|
-
},
|
|
382
|
+
}, Y = () => {
|
|
381
383
|
let { apiGatewayUrl: n } = e(), i = r();
|
|
382
384
|
return t({
|
|
383
385
|
mutationFn: async (e) => (await o(`mutation MybActivateNutritionPlan($id: ID!) {
|
|
@@ -387,7 +389,7 @@ var a = () => {
|
|
|
387
389
|
i.invalidateQueries({ queryKey: s.activePlan }), i.invalidateQueries({ queryKey: s.nutritionPlan(e.id) });
|
|
388
390
|
}
|
|
389
391
|
});
|
|
390
|
-
},
|
|
392
|
+
}, X = () => {
|
|
391
393
|
let { apiGatewayUrl: n } = e(), i = r();
|
|
392
394
|
return t({
|
|
393
395
|
mutationFn: async (e) => (await o(`mutation MybLogMeal($input: MybLogMealInput!) {
|
|
@@ -397,7 +399,7 @@ var a = () => {
|
|
|
397
399
|
i.invalidateQueries({ queryKey: s.meals }), i.invalidateQueries({ queryKey: s.dailyMacros }), e.planId && i.invalidateQueries({ queryKey: s.nutritionPlan(e.planId) });
|
|
398
400
|
}
|
|
399
401
|
});
|
|
400
|
-
},
|
|
402
|
+
}, ie = () => {
|
|
401
403
|
let { apiGatewayUrl: n } = e(), i = r();
|
|
402
404
|
return t({
|
|
403
405
|
mutationFn: async (e) => (await o("mutation MybDeleteMeal($id: ID!) { mybDeleteMeal(id: $id) }", { id: e }, n)).mybDeleteMeal,
|
|
@@ -405,7 +407,7 @@ var a = () => {
|
|
|
405
407
|
i.invalidateQueries({ queryKey: s.meals }), i.invalidateQueries({ queryKey: s.dailyMacros });
|
|
406
408
|
}
|
|
407
409
|
});
|
|
408
|
-
},
|
|
410
|
+
}, ae = (t = {}) => {
|
|
409
411
|
let { apiGatewayUrl: r } = e();
|
|
410
412
|
return n({
|
|
411
413
|
queryKey: [...s.bodyMetrics, t],
|
|
@@ -420,7 +422,7 @@ var a = () => {
|
|
|
420
422
|
pagination: t.pagination ?? c
|
|
421
423
|
}, r)).mybListBodyMetrics
|
|
422
424
|
});
|
|
423
|
-
},
|
|
425
|
+
}, oe = () => {
|
|
424
426
|
let { apiGatewayUrl: n } = e(), i = r();
|
|
425
427
|
return t({
|
|
426
428
|
mutationFn: async (e) => (await o(`mutation MybRecordBodyMetric($input: MybRecordMetricInput!) {
|
|
@@ -428,7 +430,7 @@ var a = () => {
|
|
|
428
430
|
}`, { input: e }, n)).mybRecordBodyMetric,
|
|
429
431
|
onSuccess: () => i.invalidateQueries({ queryKey: s.bodyMetrics })
|
|
430
432
|
});
|
|
431
|
-
},
|
|
433
|
+
}, se = (t, r) => {
|
|
432
434
|
let { apiGatewayUrl: i } = e();
|
|
433
435
|
return n({
|
|
434
436
|
queryKey: [
|
|
@@ -446,7 +448,7 @@ var a = () => {
|
|
|
446
448
|
memberId: r
|
|
447
449
|
}, i)).mybListRecoveryLogs
|
|
448
450
|
});
|
|
449
|
-
},
|
|
451
|
+
}, ce = () => {
|
|
450
452
|
let { apiGatewayUrl: n } = e(), i = r();
|
|
451
453
|
return t({
|
|
452
454
|
mutationFn: async (e) => (await o(`mutation MybLogRecovery($input: MybLogRecoveryInput!) {
|
|
@@ -454,7 +456,30 @@ var a = () => {
|
|
|
454
456
|
}`, { input: e }, n)).mybLogRecovery,
|
|
455
457
|
onSuccess: () => i.invalidateQueries({ queryKey: s.recovery })
|
|
456
458
|
});
|
|
457
|
-
},
|
|
459
|
+
}, Z = "\n id slug title description kind durationSeconds inhaleSeconds holdSeconds\n exhaleSeconds cycles contentSource\n", Q = `
|
|
460
|
+
id workspaceId memberId startedAt completedAt durationSeconds cyclesCompleted createdAt
|
|
461
|
+
exercise { ${Z} }
|
|
462
|
+
`, le = () => {
|
|
463
|
+
let { apiGatewayUrl: t } = e();
|
|
464
|
+
return n({
|
|
465
|
+
queryKey: s.mindfulnessExercises,
|
|
466
|
+
queryFn: async () => (await o(`query MybListMindfulnessExercises { mybListMindfulnessExercises { ${Z} } }`, {}, t)).mybListMindfulnessExercises
|
|
467
|
+
});
|
|
468
|
+
}, ue = () => {
|
|
469
|
+
let { apiGatewayUrl: t } = e();
|
|
470
|
+
return n({
|
|
471
|
+
queryKey: s.mindfulnessSessions,
|
|
472
|
+
queryFn: async () => (await o(`query MybListMindfulnessSessions { mybListMindfulnessSessions { items { ${Q} } pageInfo { cursor hasMore } } }`, {}, t)).mybListMindfulnessSessions
|
|
473
|
+
});
|
|
474
|
+
}, de = () => {
|
|
475
|
+
let { apiGatewayUrl: n } = e(), i = r();
|
|
476
|
+
return t({
|
|
477
|
+
mutationFn: async (e) => (await o(`mutation MybCompleteMindfulnessSession($input: MybCompleteMindfulnessSessionInput!) {
|
|
478
|
+
mybCompleteMindfulnessSession(input: $input) { ${Q} }
|
|
479
|
+
}`, { input: e }, n)).mybCompleteMindfulnessSession,
|
|
480
|
+
onSuccess: () => i.invalidateQueries({ queryKey: s.mindfulnessSessions })
|
|
481
|
+
});
|
|
482
|
+
}, fe = (t, r) => {
|
|
458
483
|
let { apiGatewayUrl: i } = e();
|
|
459
484
|
return n({
|
|
460
485
|
queryKey: [
|
|
@@ -472,7 +497,7 @@ var a = () => {
|
|
|
472
497
|
memberId: r
|
|
473
498
|
}, i)).mybListCoaching
|
|
474
499
|
});
|
|
475
|
-
},
|
|
500
|
+
}, pe = () => {
|
|
476
501
|
let { apiGatewayUrl: n } = e(), i = r();
|
|
477
502
|
return t({
|
|
478
503
|
mutationFn: async (e) => (await o(`mutation MybCreateCoaching($input: MybCreateCoachingInput!) {
|
|
@@ -480,7 +505,7 @@ var a = () => {
|
|
|
480
505
|
}`, { input: e }, n)).mybCreateCoaching,
|
|
481
506
|
onSuccess: () => i.invalidateQueries({ queryKey: s.coaching })
|
|
482
507
|
});
|
|
483
|
-
},
|
|
508
|
+
}, $ = () => {
|
|
484
509
|
let { apiGatewayUrl: n } = e(), i = r();
|
|
485
510
|
return t({
|
|
486
511
|
mutationFn: async (e) => (await o(`mutation MybTransitionCoaching($id: ID!, $status: MybCoachingStatus!) {
|
|
@@ -488,89 +513,89 @@ var a = () => {
|
|
|
488
513
|
}`, e, n)).mybTransitionCoaching,
|
|
489
514
|
onSuccess: () => i.invalidateQueries({ queryKey: s.coaching })
|
|
490
515
|
});
|
|
491
|
-
},
|
|
516
|
+
}, me = (t) => {
|
|
492
517
|
let { apiGatewayUrl: r } = e();
|
|
493
518
|
return n({
|
|
494
519
|
queryKey: [...s.guidance, t ?? "me"],
|
|
495
520
|
queryFn: async () => (await o(`query MybTodayGuidance($memberId: ID) {
|
|
496
|
-
mybTodayGuidance(memberId: $memberId) { ${
|
|
521
|
+
mybTodayGuidance(memberId: $memberId) { ${ee} }
|
|
497
522
|
}`, { memberId: t }, r)).mybTodayGuidance,
|
|
498
523
|
staleTime: 6e4
|
|
499
524
|
});
|
|
500
|
-
},
|
|
525
|
+
}, he = (t = {}) => {
|
|
501
526
|
let { apiGatewayUrl: r } = e(), i = `${t.dateRangeStart ?? ""}|${t.dateRangeEnd ?? ""}`;
|
|
502
527
|
return n({
|
|
503
528
|
queryKey: s.insights(i),
|
|
504
529
|
queryFn: async () => (await o(`query MybInsights($dateRangeStart: DateTime, $dateRangeEnd: DateTime) {
|
|
505
|
-
mybInsights(dateRangeStart: $dateRangeStart, dateRangeEnd: $dateRangeEnd) { ${
|
|
530
|
+
mybInsights(dateRangeStart: $dateRangeStart, dateRangeEnd: $dateRangeEnd) { ${te} }
|
|
506
531
|
}`, {
|
|
507
532
|
dateRangeStart: t.dateRangeStart,
|
|
508
533
|
dateRangeEnd: t.dateRangeEnd
|
|
509
534
|
}, r)).mybInsights
|
|
510
535
|
});
|
|
511
|
-
},
|
|
536
|
+
}, ge = () => {
|
|
512
537
|
let { apiGatewayUrl: t } = e();
|
|
513
538
|
return n({
|
|
514
539
|
queryKey: s.aiSettings,
|
|
515
|
-
queryFn: async () => (await o(`query MybAiSettings { mybAiSettings { ${
|
|
540
|
+
queryFn: async () => (await o(`query MybAiSettings { mybAiSettings { ${b} } }`, {}, t)).mybAiSettings
|
|
516
541
|
});
|
|
517
|
-
},
|
|
542
|
+
}, _e = () => {
|
|
518
543
|
let { apiGatewayUrl: n } = e(), i = r();
|
|
519
544
|
return t({
|
|
520
545
|
mutationFn: async (e) => (await o(`mutation MybUpdateAiSettings($input: MybUpdateAiSettingsInput!) {
|
|
521
|
-
mybUpdateAiSettings(input: $input) { ${
|
|
546
|
+
mybUpdateAiSettings(input: $input) { ${b} }
|
|
522
547
|
}`, { input: e }, n)).mybUpdateAiSettings,
|
|
523
548
|
onSuccess: () => {
|
|
524
549
|
i.invalidateQueries({ queryKey: s.aiSettings });
|
|
525
550
|
}
|
|
526
551
|
});
|
|
527
|
-
},
|
|
552
|
+
}, ve = (t) => {
|
|
528
553
|
let { apiGatewayUrl: r } = e();
|
|
529
554
|
return n({
|
|
530
555
|
queryKey: [...s.aiOperationLogs, t ?? c],
|
|
531
556
|
queryFn: async () => (await o(`query MybListAiOperationLogs($pagination: PaginationInput) {
|
|
532
557
|
mybListAiOperationLogs(pagination: $pagination) {
|
|
533
|
-
items { ${
|
|
558
|
+
items { ${x} }
|
|
534
559
|
pageInfo { cursor hasMore }
|
|
535
560
|
}
|
|
536
561
|
}`, { pagination: t ?? c }, r)).mybListAiOperationLogs
|
|
537
562
|
});
|
|
538
|
-
},
|
|
563
|
+
}, ye = () => {
|
|
539
564
|
let { apiGatewayUrl: t } = e();
|
|
540
565
|
return n({
|
|
541
566
|
queryKey: s.aiConsent,
|
|
542
|
-
queryFn: async () => (await o(`query MybMyAiProcessingConsent { mybMyAiProcessingConsent { ${
|
|
567
|
+
queryFn: async () => (await o(`query MybMyAiProcessingConsent { mybMyAiProcessingConsent { ${S} } }`, {}, t)).mybMyAiProcessingConsent
|
|
543
568
|
});
|
|
544
|
-
},
|
|
569
|
+
}, be = () => {
|
|
545
570
|
let { apiGatewayUrl: n } = e(), i = r();
|
|
546
571
|
return t({
|
|
547
572
|
mutationFn: async (e) => (await o(`mutation MybSetAiProcessingConsent($enabled: Boolean!) {
|
|
548
|
-
mybSetAiProcessingConsent(enabled: $enabled) { ${
|
|
573
|
+
mybSetAiProcessingConsent(enabled: $enabled) { ${S} }
|
|
549
574
|
}`, { enabled: e }, n)).mybSetAiProcessingConsent,
|
|
550
575
|
onSuccess: () => {
|
|
551
576
|
i.invalidateQueries({ queryKey: s.aiConsent });
|
|
552
577
|
}
|
|
553
578
|
});
|
|
554
|
-
},
|
|
579
|
+
}, xe = (t, r = 10) => {
|
|
555
580
|
let { apiGatewayUrl: i } = e(), a = t.trim();
|
|
556
581
|
return n({
|
|
557
582
|
queryKey: s.foodSearch(a),
|
|
558
583
|
enabled: a.length >= 2,
|
|
559
584
|
queryFn: async () => (await o(`query MybSearchFoods($query: String!, $limit: Int) {
|
|
560
|
-
mybSearchFoods(query: $query, limit: $limit) { ${
|
|
585
|
+
mybSearchFoods(query: $query, limit: $limit) { ${C} }
|
|
561
586
|
}`, {
|
|
562
587
|
query: a,
|
|
563
588
|
limit: r
|
|
564
589
|
}, i)).mybSearchFoods,
|
|
565
590
|
staleTime: 3e4
|
|
566
591
|
});
|
|
567
|
-
},
|
|
592
|
+
}, Se = () => {
|
|
568
593
|
let { apiGatewayUrl: n } = e();
|
|
569
594
|
return t({ mutationFn: async (e) => (await o(`query MybFoodByBarcode($barcode: String!) {
|
|
570
|
-
mybFoodByBarcode(barcode: $barcode) { ${
|
|
595
|
+
mybFoodByBarcode(barcode: $barcode) { ${C} }
|
|
571
596
|
}`, { barcode: e }, n)).mybFoodByBarcode });
|
|
572
597
|
};
|
|
573
598
|
//#endregion
|
|
574
|
-
export {
|
|
599
|
+
export { W as useMybAchieveGoal, Y as useMybActivateNutritionPlan, G as useMybActiveNutritionPlan, P as useMybAddExercise, N as useMybAddWorkout, ve as useMybAiOperationLogs, ye as useMybAiProcessingConsent, ge as useMybAiSettings, M as useMybArchiveProgram, ae as useMybBodyMetrics, fe as useMybCoaching, de as useMybCompleteMindfulnessSession, B as useMybCompleteSession, pe as useMybCreateCoaching, H as useMybCreateGoal, re as useMybCreateNutritionPlan, k as useMybCreateProgram, q as useMybDailyMacros, ie as useMybDeleteMeal, L as useMybExerciseBestSet, Se as useMybFoodByBarcode, V as useMybGoals, he as useMybInsights, X as useMybLogMeal, ce as useMybLogRecovery, z as useMybLogSet, K as useMybMeals, le as useMybMindfulnessExercises, ue as useMybMindfulnessSessions, E as useMybProgram, D as useMybProgramWorkouts, T as useMybPrograms, oe as useMybRecordBodyMetric, se as useMybRecoveryLogs, xe as useMybSearchFoods, I as useMybSession, F as useMybSessions, be as useMybSetAiProcessingConsent, R as useMybStartSession, me as useMybTodayGuidance, $ as useMybTransitionCoaching, j as useMybTransitionProgram, _e as useMybUpdateAiSettings, U as useMybUpdateGoal, J as useMybUpdateNutritionPlan, A as useMybUpdateProgram, O as useMybWorkoutExercises };
|
|
575
600
|
|
|
576
601
|
//# sourceMappingURL=useMyBodyShieldApi.js.map
|