@burdenoff/microfe-mybodyshield 2026.820.1 → 2026.821.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.
Files changed (48) hide show
  1. package/dist/mybodyshield/MyBodyShieldRoot.d.ts.map +1 -1
  2. package/dist/mybodyshield/MyBodyShieldRoot.js +68 -44
  3. package/dist/mybodyshield/MyBodyShieldRoot.js.map +1 -1
  4. package/dist/mybodyshield/MyBodyShieldRoutes.d.ts.map +1 -1
  5. package/dist/mybodyshield/MyBodyShieldRoutes.js +37 -16
  6. package/dist/mybodyshield/MyBodyShieldRoutes.js.map +1 -1
  7. package/dist/mybodyshield/hooks/useMyBodyShieldApi.d.ts +11 -1
  8. package/dist/mybodyshield/hooks/useMyBodyShieldApi.d.ts.map +1 -1
  9. package/dist/mybodyshield/hooks/useMyBodyShieldApi.js +113 -46
  10. package/dist/mybodyshield/hooks/useMyBodyShieldApi.js.map +1 -1
  11. package/dist/mybodyshield/pages/SettingsPage.d.ts +10 -0
  12. package/dist/mybodyshield/pages/SettingsPage.d.ts.map +1 -0
  13. package/dist/mybodyshield/pages/SettingsPage.js +104 -0
  14. package/dist/mybodyshield/pages/SettingsPage.js.map +1 -0
  15. package/dist/mybodyshield/pages/ai/AiControlsPage.d.ts +10 -0
  16. package/dist/mybodyshield/pages/ai/AiControlsPage.d.ts.map +1 -0
  17. package/dist/mybodyshield/pages/ai/AiControlsPage.js +378 -0
  18. package/dist/mybodyshield/pages/ai/AiControlsPage.js.map +1 -0
  19. package/dist/mybodyshield/pages/insights/InsightsCharts.d.ts +18 -0
  20. package/dist/mybodyshield/pages/insights/InsightsCharts.d.ts.map +1 -0
  21. package/dist/mybodyshield/pages/insights/InsightsCharts.js +549 -0
  22. package/dist/mybodyshield/pages/insights/InsightsCharts.js.map +1 -0
  23. package/dist/mybodyshield/pages/insights/InsightsPage.d.ts +12 -0
  24. package/dist/mybodyshield/pages/insights/InsightsPage.d.ts.map +1 -0
  25. package/dist/mybodyshield/pages/insights/InsightsPage.js +317 -0
  26. package/dist/mybodyshield/pages/insights/InsightsPage.js.map +1 -0
  27. package/dist/mybodyshield/types/index.d.ts +75 -0
  28. package/dist/mybodyshield/types/index.d.ts.map +1 -1
  29. package/dist/mybodyshield/utils/pageContext.d.ts.map +1 -1
  30. package/dist/mybodyshield/utils/pageContext.js +4 -1
  31. package/dist/mybodyshield/utils/pageContext.js.map +1 -1
  32. package/dist/node_modules/recharts/es6/cartesian/Line.js +473 -0
  33. package/dist/node_modules/recharts/es6/cartesian/Line.js.map +1 -0
  34. package/dist/node_modules/recharts/es6/cartesian/Scatter.js +368 -0
  35. package/dist/node_modules/recharts/es6/cartesian/Scatter.js.map +1 -0
  36. package/dist/node_modules/recharts/es6/cartesian/ZAxis.js +103 -0
  37. package/dist/node_modules/recharts/es6/cartesian/ZAxis.js.map +1 -0
  38. package/dist/node_modules/recharts/es6/chart/BarChart.js +24 -0
  39. package/dist/node_modules/recharts/es6/chart/BarChart.js.map +1 -0
  40. package/dist/node_modules/recharts/es6/chart/ComposedChart.js +38 -0
  41. package/dist/node_modules/recharts/es6/chart/ComposedChart.js.map +1 -0
  42. package/dist/node_modules/recharts/es6/util/DataUtils.js +12 -2
  43. package/dist/node_modules/recharts/es6/util/DataUtils.js.map +1 -1
  44. package/dist/node_modules/recharts/es6/util/ScatterUtils.js +48 -0
  45. package/dist/node_modules/recharts/es6/util/ScatterUtils.js.map +1 -0
  46. package/dist/stories/InsightsCharts.stories.d.ts +15 -0
  47. package/dist/stories/InsightsCharts.stories.d.ts.map +1 -0
  48. package/package.json +1 -1
@@ -64,6 +64,11 @@ var a = () => {
64
64
  coaching: ["mybodyshield", "coaching"],
65
65
  deviceConnections: ["mybodyshield", "device-connections"],
66
66
  guidance: ["mybodyshield", "guidance"],
67
+ insights: (e) => [
68
+ "mybodyshield",
69
+ "insights",
70
+ e
71
+ ],
67
72
  foodSearch: (e) => [
68
73
  "mybodyshield",
69
74
  "food-search",
@@ -73,11 +78,19 @@ var a = () => {
73
78
  "mybodyshield",
74
79
  "food-barcode",
75
80
  e
76
- ]
77
- }, 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", b = "\n memberId date readinessScore aiSummary cards { signal action reason }\n", x = "\n barcode name brand servingG calories proteinG carbsG fatG imageUrl\n", S = "\n date calories proteinG carbsG fatG calorieTarget proteinTarget carbsTarget fatTarget\n", C = (e) => e.map(({ exercises: e, ...t }) => ({
81
+ ],
82
+ aiSettings: ["mybodyshield", "ai-settings"],
83
+ aiOperationLogs: ["mybodyshield", "ai-operation-logs"],
84
+ aiConsent: ["mybodyshield", "ai-consent"]
85
+ }, 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", b = "\n memberId date readinessScore aiSummary cards { signal action reason }\n", ee = `
86
+ dateRangeStart dateRangeEnd
87
+ summary { consistencyStreakDays totalSessions totalVolumeKg averageReadiness macroAdherencePercent }
88
+ daily { date sessions volumeKg readiness sleepHours calories proteinG carbsG fatG weight }
89
+ goals { ${m} }
90
+ `, x = "\n id workspaceId memberId provider hasProviderKey modelName dailyAllowance dailyAllowanceUsed allowanceResetAt createdAt updatedAt\n", S = "\n id workspaceId memberId operationType provider modelName inputTokens outputTokens status errorMessage createdAt\n", C = "\n id workspaceId actorId enabled acceptedAt withdrawnAt createdAt updatedAt\n", w = "\n barcode name brand servingG calories proteinG carbsG fatG imageUrl\n", T = "\n date calories proteinG carbsG fatG calorieTarget proteinTarget carbsTarget fatTarget\n", E = (e) => e.map(({ exercises: e, ...t }) => ({
78
91
  ...t,
79
92
  exercises: e.items
80
- })), w = (t = {}) => {
93
+ })), D = (t = {}) => {
81
94
  let { apiGatewayUrl: r } = e();
82
95
  return n({
83
96
  queryKey: [...s.programs, t],
@@ -92,7 +105,7 @@ var a = () => {
92
105
  pagination: t.pagination ?? c
93
106
  }, r)).mybListPrograms
94
107
  });
95
- }, T = (t) => {
108
+ }, O = (t) => {
96
109
  let { apiGatewayUrl: r } = e();
97
110
  return n({
98
111
  queryKey: s.program(t ?? ""),
@@ -113,16 +126,16 @@ var a = () => {
113
126
  let { workouts: n, ...i } = e.mybProgram;
114
127
  return {
115
128
  ...i,
116
- workouts: C(n.items)
129
+ workouts: E(n.items)
117
130
  };
118
131
  }
119
132
  });
120
- }, E = (t) => {
133
+ }, k = (t) => {
121
134
  let { apiGatewayUrl: r } = e();
122
135
  return n({
123
136
  queryKey: s.programWorkouts(t ?? ""),
124
137
  enabled: !!t,
125
- queryFn: async () => C((await o(`query MybProgramWorkouts($programId: ID!) {
138
+ queryFn: async () => E((await o(`query MybProgramWorkouts($programId: ID!) {
126
139
  mybProgramWorkouts(programId: $programId) {
127
140
  items {
128
141
  ${d}
@@ -131,7 +144,7 @@ var a = () => {
131
144
  }
132
145
  }`, { programId: t }, r)).mybProgramWorkouts.items)
133
146
  });
134
- }, D = (t) => {
147
+ }, A = (t) => {
135
148
  let { apiGatewayUrl: r } = e();
136
149
  return n({
137
150
  queryKey: s.workoutExercises(t ?? ""),
@@ -142,7 +155,7 @@ var a = () => {
142
155
  }
143
156
  }`, { workoutId: t }, r)).mybWorkoutExercises.items.slice().sort((e, t) => e.orderIndex - t.orderIndex)
144
157
  });
145
- }, O = () => {
158
+ }, j = () => {
146
159
  let { apiGatewayUrl: n } = e(), i = r();
147
160
  return t({
148
161
  mutationFn: async (e) => (await o(`mutation MybCreateProgram($input: MybCreateProgramInput!) {
@@ -150,7 +163,7 @@ var a = () => {
150
163
  }`, { input: e }, n)).mybCreateProgram,
151
164
  onSuccess: () => i.invalidateQueries({ queryKey: s.programs })
152
165
  });
153
- }, k = () => {
166
+ }, M = () => {
154
167
  let { apiGatewayUrl: n } = e(), i = r();
155
168
  return t({
156
169
  mutationFn: async (e) => (await o(`mutation MybUpdateProgram($id: ID!, $input: MybUpdateProgramInput!) {
@@ -160,7 +173,7 @@ var a = () => {
160
173
  i.invalidateQueries({ queryKey: s.programs }), i.invalidateQueries({ queryKey: s.program(e.id) });
161
174
  }
162
175
  });
163
- }, A = () => {
176
+ }, N = () => {
164
177
  let { apiGatewayUrl: n } = e(), i = r();
165
178
  return t({
166
179
  mutationFn: async (e) => (await o(`mutation MybTransitionProgram($id: ID!, $status: MybProgramStatus!) {
@@ -170,13 +183,13 @@ var a = () => {
170
183
  i.invalidateQueries({ queryKey: s.programs }), i.invalidateQueries({ queryKey: s.program(e.id) });
171
184
  }
172
185
  });
173
- }, j = () => {
186
+ }, P = () => {
174
187
  let { apiGatewayUrl: n } = e(), i = r();
175
188
  return t({
176
189
  mutationFn: async (e) => (await o("mutation MybArchiveProgram($id: ID!) { mybArchiveProgram(id: $id) }", { id: e }, n)).mybArchiveProgram,
177
190
  onSuccess: () => i.invalidateQueries({ queryKey: s.programs })
178
191
  });
179
- }, M = () => {
192
+ }, F = () => {
180
193
  let { apiGatewayUrl: n } = e(), i = r();
181
194
  return t({
182
195
  mutationFn: async (e) => (await o(`mutation MybAddWorkout($input: MybCreateWorkoutInput!) {
@@ -186,7 +199,7 @@ var a = () => {
186
199
  i.invalidateQueries({ queryKey: s.program(e.programId) }), i.invalidateQueries({ queryKey: s.programWorkouts(e.programId) });
187
200
  }
188
201
  });
189
- }, N = () => {
202
+ }, I = () => {
190
203
  let { apiGatewayUrl: n } = e(), i = r();
191
204
  return t({
192
205
  mutationFn: async (e) => (await o("mutation MybAddExercise($input: MybCreateExerciseInput!) {\n mybAddExercise(input: $input) { id workoutId }\n }", { input: e }, n)).mybAddExercise,
@@ -194,7 +207,7 @@ var a = () => {
194
207
  i.invalidateQueries({ queryKey: ["mybodyshield", "program"] }), i.invalidateQueries({ queryKey: ["mybodyshield", "program-workouts"] });
195
208
  }
196
209
  });
197
- }, P = (t = {}) => {
210
+ }, L = (t = {}) => {
198
211
  let { apiGatewayUrl: r } = e();
199
212
  return n({
200
213
  queryKey: [...s.sessions, t],
@@ -209,7 +222,7 @@ var a = () => {
209
222
  pagination: t.pagination ?? c
210
223
  }, r)).mybListSessions
211
224
  });
212
- }, F = (t) => {
225
+ }, R = (t) => {
213
226
  let { apiGatewayUrl: r } = e();
214
227
  return n({
215
228
  queryKey: s.session(t ?? ""),
@@ -229,7 +242,7 @@ var a = () => {
229
242
  };
230
243
  }
231
244
  });
232
- }, I = (t) => {
245
+ }, z = (t) => {
233
246
  let { apiGatewayUrl: r } = e(), i = t.trim();
234
247
  return n({
235
248
  queryKey: s.exerciseBestSet(i),
@@ -239,7 +252,7 @@ var a = () => {
239
252
  }`, { exerciseName: i }, r)).mybExerciseBestSet,
240
253
  staleTime: 15e3
241
254
  });
242
- }, L = () => {
255
+ }, B = () => {
243
256
  let { apiGatewayUrl: n } = e(), i = r();
244
257
  return t({
245
258
  mutationFn: async (e) => (await o(`mutation MybStartSession($input: MybStartSessionInput!) {
@@ -247,7 +260,7 @@ var a = () => {
247
260
  }`, { input: e }, n)).mybStartSession,
248
261
  onSuccess: () => i.invalidateQueries({ queryKey: s.sessions })
249
262
  });
250
- }, R = () => {
263
+ }, V = () => {
251
264
  let { apiGatewayUrl: n } = e(), i = r();
252
265
  return t({
253
266
  mutationFn: async (e) => (await o(`mutation MybLogSet($input: MybLogSetInput!) {
@@ -257,7 +270,7 @@ var a = () => {
257
270
  i.invalidateQueries({ queryKey: s.session(e.sessionId) }), i.invalidateQueries({ queryKey: s.sessions }), i.invalidateQueries({ queryKey: s.exerciseBestSet(e.exerciseName) });
258
271
  }
259
272
  });
260
- }, ee = () => {
273
+ }, H = () => {
261
274
  let { apiGatewayUrl: n } = e(), i = r();
262
275
  return t({
263
276
  mutationFn: async (e) => (await o(`mutation MybCompleteSession($id: ID!, $input: MybCompleteSessionInput!) {
@@ -267,7 +280,7 @@ var a = () => {
267
280
  i.invalidateQueries({ queryKey: s.session(e.id) }), i.invalidateQueries({ queryKey: s.sessions });
268
281
  }
269
282
  });
270
- }, z = (t = {}) => {
283
+ }, U = (t = {}) => {
271
284
  let { apiGatewayUrl: r } = e();
272
285
  return n({
273
286
  queryKey: [...s.goals, t],
@@ -282,7 +295,7 @@ var a = () => {
282
295
  pagination: t.pagination ?? c
283
296
  }, r)).mybListGoals
284
297
  });
285
- }, B = () => {
298
+ }, te = () => {
286
299
  let { apiGatewayUrl: n } = e(), i = r();
287
300
  return t({
288
301
  mutationFn: async (e) => (await o(`mutation MybCreateGoal($input: MybCreateGoalInput!) {
@@ -290,7 +303,7 @@ var a = () => {
290
303
  }`, { input: e }, n)).mybCreateGoal,
291
304
  onSuccess: () => i.invalidateQueries({ queryKey: s.goals })
292
305
  });
293
- }, V = () => {
306
+ }, W = () => {
294
307
  let { apiGatewayUrl: n } = e(), i = r();
295
308
  return t({
296
309
  mutationFn: async (e) => (await o(`mutation MybUpdateGoal($id: ID!, $input: MybUpdateGoalInput!) {
@@ -298,7 +311,7 @@ var a = () => {
298
311
  }`, e, n)).mybUpdateGoal,
299
312
  onSuccess: () => i.invalidateQueries({ queryKey: s.goals })
300
313
  });
301
- }, H = () => {
314
+ }, G = () => {
302
315
  let { apiGatewayUrl: n } = e(), i = r();
303
316
  return t({
304
317
  mutationFn: async (e) => (await o(`mutation MybAchieveGoal($id: ID!) {
@@ -306,7 +319,7 @@ var a = () => {
306
319
  }`, { id: e }, n)).mybAchieveGoal,
307
320
  onSuccess: () => i.invalidateQueries({ queryKey: s.goals })
308
321
  });
309
- }, U = (t) => {
322
+ }, K = (t) => {
310
323
  let { apiGatewayUrl: r } = e();
311
324
  return n({
312
325
  queryKey: [...s.activePlan, t ?? "me"],
@@ -314,7 +327,7 @@ var a = () => {
314
327
  mybActiveNutritionPlan(memberId: $memberId) { ${g} }
315
328
  }`, { memberId: t }, r)).mybActiveNutritionPlan
316
329
  });
317
- }, W = (t = {}) => {
330
+ }, q = (t = {}) => {
318
331
  let { apiGatewayUrl: r } = e();
319
332
  return n({
320
333
  queryKey: [...s.meals, t],
@@ -329,7 +342,7 @@ var a = () => {
329
342
  pagination: t.pagination ?? c
330
343
  }, r)).mybListMeals
331
344
  });
332
- }, G = (t, r) => {
345
+ }, J = (t, r) => {
333
346
  let { apiGatewayUrl: i } = e();
334
347
  return n({
335
348
  queryKey: [
@@ -338,13 +351,13 @@ var a = () => {
338
351
  r ?? "me"
339
352
  ],
340
353
  queryFn: async () => (await o(`query MybDailyMacros($date: DateTime, $memberId: ID) {
341
- mybDailyMacros(date: $date, memberId: $memberId) { ${S} }
354
+ mybDailyMacros(date: $date, memberId: $memberId) { ${T} }
342
355
  }`, {
343
356
  date: t,
344
357
  memberId: r
345
358
  }, i)).mybDailyMacros
346
359
  });
347
- }, K = () => {
360
+ }, Y = () => {
348
361
  let { apiGatewayUrl: n } = e(), i = r();
349
362
  return t({
350
363
  mutationFn: async (e) => (await o(`mutation MybCreateNutritionPlan($input: MybCreateNutritionPlanInput!) {
@@ -354,7 +367,7 @@ var a = () => {
354
367
  i.invalidateQueries({ queryKey: s.activePlan });
355
368
  }
356
369
  });
357
- }, q = () => {
370
+ }, X = () => {
358
371
  let { apiGatewayUrl: n } = e(), i = r();
359
372
  return t({
360
373
  mutationFn: async (e) => (await o(`mutation MybUpdateNutritionPlan($id: ID!, $input: MybUpdateNutritionPlanInput!) {
@@ -364,7 +377,7 @@ var a = () => {
364
377
  i.invalidateQueries({ queryKey: s.activePlan }), i.invalidateQueries({ queryKey: s.nutritionPlan(e.id) });
365
378
  }
366
379
  });
367
- }, J = () => {
380
+ }, Z = () => {
368
381
  let { apiGatewayUrl: n } = e(), i = r();
369
382
  return t({
370
383
  mutationFn: async (e) => (await o(`mutation MybActivateNutritionPlan($id: ID!) {
@@ -374,7 +387,7 @@ var a = () => {
374
387
  i.invalidateQueries({ queryKey: s.activePlan }), i.invalidateQueries({ queryKey: s.nutritionPlan(e.id) });
375
388
  }
376
389
  });
377
- }, Y = () => {
390
+ }, Q = () => {
378
391
  let { apiGatewayUrl: n } = e(), i = r();
379
392
  return t({
380
393
  mutationFn: async (e) => (await o(`mutation MybLogMeal($input: MybLogMealInput!) {
@@ -384,7 +397,7 @@ var a = () => {
384
397
  i.invalidateQueries({ queryKey: s.meals }), i.invalidateQueries({ queryKey: s.dailyMacros }), e.planId && i.invalidateQueries({ queryKey: s.nutritionPlan(e.planId) });
385
398
  }
386
399
  });
387
- }, X = () => {
400
+ }, ne = () => {
388
401
  let { apiGatewayUrl: n } = e(), i = r();
389
402
  return t({
390
403
  mutationFn: async (e) => (await o("mutation MybDeleteMeal($id: ID!) { mybDeleteMeal(id: $id) }", { id: e }, n)).mybDeleteMeal,
@@ -392,7 +405,7 @@ var a = () => {
392
405
  i.invalidateQueries({ queryKey: s.meals }), i.invalidateQueries({ queryKey: s.dailyMacros });
393
406
  }
394
407
  });
395
- }, Z = (t = {}) => {
408
+ }, re = (t = {}) => {
396
409
  let { apiGatewayUrl: r } = e();
397
410
  return n({
398
411
  queryKey: [...s.bodyMetrics, t],
@@ -407,7 +420,7 @@ var a = () => {
407
420
  pagination: t.pagination ?? c
408
421
  }, r)).mybListBodyMetrics
409
422
  });
410
- }, Q = () => {
423
+ }, ie = () => {
411
424
  let { apiGatewayUrl: n } = e(), i = r();
412
425
  return t({
413
426
  mutationFn: async (e) => (await o(`mutation MybRecordBodyMetric($input: MybRecordMetricInput!) {
@@ -415,7 +428,7 @@ var a = () => {
415
428
  }`, { input: e }, n)).mybRecordBodyMetric,
416
429
  onSuccess: () => i.invalidateQueries({ queryKey: s.bodyMetrics })
417
430
  });
418
- }, $ = (t, r) => {
431
+ }, ae = (t, r) => {
419
432
  let { apiGatewayUrl: i } = e();
420
433
  return n({
421
434
  queryKey: [
@@ -433,7 +446,7 @@ var a = () => {
433
446
  memberId: r
434
447
  }, i)).mybListRecoveryLogs
435
448
  });
436
- }, te = () => {
449
+ }, oe = () => {
437
450
  let { apiGatewayUrl: n } = e(), i = r();
438
451
  return t({
439
452
  mutationFn: async (e) => (await o(`mutation MybLogRecovery($input: MybLogRecoveryInput!) {
@@ -441,7 +454,7 @@ var a = () => {
441
454
  }`, { input: e }, n)).mybLogRecovery,
442
455
  onSuccess: () => i.invalidateQueries({ queryKey: s.recovery })
443
456
  });
444
- }, ne = (t, r) => {
457
+ }, se = (t, r) => {
445
458
  let { apiGatewayUrl: i } = e();
446
459
  return n({
447
460
  queryKey: [
@@ -459,7 +472,7 @@ var a = () => {
459
472
  memberId: r
460
473
  }, i)).mybListCoaching
461
474
  });
462
- }, re = () => {
475
+ }, ce = () => {
463
476
  let { apiGatewayUrl: n } = e(), i = r();
464
477
  return t({
465
478
  mutationFn: async (e) => (await o(`mutation MybCreateCoaching($input: MybCreateCoachingInput!) {
@@ -467,7 +480,7 @@ var a = () => {
467
480
  }`, { input: e }, n)).mybCreateCoaching,
468
481
  onSuccess: () => i.invalidateQueries({ queryKey: s.coaching })
469
482
  });
470
- }, ie = () => {
483
+ }, le = () => {
471
484
  let { apiGatewayUrl: n } = e(), i = r();
472
485
  return t({
473
486
  mutationFn: async (e) => (await o(`mutation MybTransitionCoaching($id: ID!, $status: MybCoachingStatus!) {
@@ -475,7 +488,7 @@ var a = () => {
475
488
  }`, e, n)).mybTransitionCoaching,
476
489
  onSuccess: () => i.invalidateQueries({ queryKey: s.coaching })
477
490
  });
478
- }, ae = (t) => {
491
+ }, ue = (t) => {
479
492
  let { apiGatewayUrl: r } = e();
480
493
  return n({
481
494
  queryKey: [...s.guidance, t ?? "me"],
@@ -484,26 +497,80 @@ var a = () => {
484
497
  }`, { memberId: t }, r)).mybTodayGuidance,
485
498
  staleTime: 6e4
486
499
  });
487
- }, oe = (t, r = 10) => {
500
+ }, de = (t = {}) => {
501
+ let { apiGatewayUrl: r } = e(), i = `${t.dateRangeStart ?? ""}|${t.dateRangeEnd ?? ""}`;
502
+ return n({
503
+ queryKey: s.insights(i),
504
+ queryFn: async () => (await o(`query MybInsights($dateRangeStart: DateTime, $dateRangeEnd: DateTime) {
505
+ mybInsights(dateRangeStart: $dateRangeStart, dateRangeEnd: $dateRangeEnd) { ${ee} }
506
+ }`, {
507
+ dateRangeStart: t.dateRangeStart,
508
+ dateRangeEnd: t.dateRangeEnd
509
+ }, r)).mybInsights
510
+ });
511
+ }, fe = () => {
512
+ let { apiGatewayUrl: t } = e();
513
+ return n({
514
+ queryKey: s.aiSettings,
515
+ queryFn: async () => (await o(`query MybAiSettings { mybAiSettings { ${x} } }`, {}, t)).mybAiSettings
516
+ });
517
+ }, pe = () => {
518
+ let { apiGatewayUrl: n } = e(), i = r();
519
+ return t({
520
+ mutationFn: async (e) => (await o(`mutation MybUpdateAiSettings($input: MybUpdateAiSettingsInput!) {
521
+ mybUpdateAiSettings(input: $input) { ${x} }
522
+ }`, { input: e }, n)).mybUpdateAiSettings,
523
+ onSuccess: () => {
524
+ i.invalidateQueries({ queryKey: s.aiSettings });
525
+ }
526
+ });
527
+ }, $ = (t) => {
528
+ let { apiGatewayUrl: r } = e();
529
+ return n({
530
+ queryKey: [...s.aiOperationLogs, t ?? c],
531
+ queryFn: async () => (await o(`query MybListAiOperationLogs($pagination: PaginationInput) {
532
+ mybListAiOperationLogs(pagination: $pagination) {
533
+ items { ${S} }
534
+ pageInfo { cursor hasMore }
535
+ }
536
+ }`, { pagination: t ?? c }, r)).mybListAiOperationLogs
537
+ });
538
+ }, me = () => {
539
+ let { apiGatewayUrl: t } = e();
540
+ return n({
541
+ queryKey: s.aiConsent,
542
+ queryFn: async () => (await o(`query MybMyAiProcessingConsent { mybMyAiProcessingConsent { ${C} } }`, {}, t)).mybMyAiProcessingConsent
543
+ });
544
+ }, he = () => {
545
+ let { apiGatewayUrl: n } = e(), i = r();
546
+ return t({
547
+ mutationFn: async (e) => (await o(`mutation MybSetAiProcessingConsent($enabled: Boolean!) {
548
+ mybSetAiProcessingConsent(enabled: $enabled) { ${C} }
549
+ }`, { enabled: e }, n)).mybSetAiProcessingConsent,
550
+ onSuccess: () => {
551
+ i.invalidateQueries({ queryKey: s.aiConsent });
552
+ }
553
+ });
554
+ }, ge = (t, r = 10) => {
488
555
  let { apiGatewayUrl: i } = e(), a = t.trim();
489
556
  return n({
490
557
  queryKey: s.foodSearch(a),
491
558
  enabled: a.length >= 2,
492
559
  queryFn: async () => (await o(`query MybSearchFoods($query: String!, $limit: Int) {
493
- mybSearchFoods(query: $query, limit: $limit) { ${x} }
560
+ mybSearchFoods(query: $query, limit: $limit) { ${w} }
494
561
  }`, {
495
562
  query: a,
496
563
  limit: r
497
564
  }, i)).mybSearchFoods,
498
565
  staleTime: 3e4
499
566
  });
500
- }, se = () => {
567
+ }, _e = () => {
501
568
  let { apiGatewayUrl: n } = e();
502
569
  return t({ mutationFn: async (e) => (await o(`query MybFoodByBarcode($barcode: String!) {
503
- mybFoodByBarcode(barcode: $barcode) { ${x} }
570
+ mybFoodByBarcode(barcode: $barcode) { ${w} }
504
571
  }`, { barcode: e }, n)).mybFoodByBarcode });
505
572
  };
506
573
  //#endregion
507
- export { H as useMybAchieveGoal, J as useMybActivateNutritionPlan, U as useMybActiveNutritionPlan, N as useMybAddExercise, M as useMybAddWorkout, j as useMybArchiveProgram, Z as useMybBodyMetrics, ne as useMybCoaching, ee as useMybCompleteSession, re as useMybCreateCoaching, B as useMybCreateGoal, K as useMybCreateNutritionPlan, O as useMybCreateProgram, G as useMybDailyMacros, X as useMybDeleteMeal, I as useMybExerciseBestSet, se as useMybFoodByBarcode, z as useMybGoals, Y as useMybLogMeal, te as useMybLogRecovery, R as useMybLogSet, W as useMybMeals, T as useMybProgram, E as useMybProgramWorkouts, w as useMybPrograms, Q as useMybRecordBodyMetric, $ as useMybRecoveryLogs, oe as useMybSearchFoods, F as useMybSession, P as useMybSessions, L as useMybStartSession, ae as useMybTodayGuidance, ie as useMybTransitionCoaching, A as useMybTransitionProgram, V as useMybUpdateGoal, q as useMybUpdateNutritionPlan, k as useMybUpdateProgram, D as useMybWorkoutExercises };
574
+ export { G as useMybAchieveGoal, Z as useMybActivateNutritionPlan, K as useMybActiveNutritionPlan, I as useMybAddExercise, F as useMybAddWorkout, $ as useMybAiOperationLogs, me as useMybAiProcessingConsent, fe as useMybAiSettings, P as useMybArchiveProgram, re as useMybBodyMetrics, se as useMybCoaching, H as useMybCompleteSession, ce as useMybCreateCoaching, te as useMybCreateGoal, Y as useMybCreateNutritionPlan, j as useMybCreateProgram, J as useMybDailyMacros, ne as useMybDeleteMeal, z as useMybExerciseBestSet, _e as useMybFoodByBarcode, U as useMybGoals, de as useMybInsights, Q as useMybLogMeal, oe as useMybLogRecovery, V as useMybLogSet, q as useMybMeals, O as useMybProgram, k as useMybProgramWorkouts, D as useMybPrograms, ie as useMybRecordBodyMetric, ae as useMybRecoveryLogs, ge as useMybSearchFoods, R as useMybSession, L as useMybSessions, he as useMybSetAiProcessingConsent, B as useMybStartSession, ue as useMybTodayGuidance, le as useMybTransitionCoaching, N as useMybTransitionProgram, pe as useMybUpdateAiSettings, W as useMybUpdateGoal, X as useMybUpdateNutritionPlan, M as useMybUpdateProgram, A as useMybWorkoutExercises };
508
575
 
509
576
  //# sourceMappingURL=useMyBodyShieldApi.js.map