khansama-api 1.66.0 → 1.68.0

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/index.d.ts CHANGED
@@ -1277,9 +1277,11 @@ export interface GenerateRecipeRequest {
1277
1277
  expiry_days_threshold?: number;
1278
1278
  }
1279
1279
  export type GoalProfileType = HouseholdGoalTypeEnum | null;
1280
+ export type GoalProfileCalorieTarget = number | null;
1280
1281
  export type GoalProfileMacroTargets = MacroTargets | null;
1281
1282
  export interface GoalProfile {
1282
1283
  type?: GoalProfileType;
1284
+ calorie_target?: GoalProfileCalorieTarget;
1283
1285
  macro_targets?: GoalProfileMacroTargets;
1284
1286
  }
1285
1287
  export interface GoogleLogin {
@@ -2467,6 +2469,17 @@ export interface PlanGroceryListResponse {
2467
2469
  skipped?: string[];
2468
2470
  have_some?: string[];
2469
2471
  }
2472
+ /**
2473
+ * Per-day macros for a saved plan (``GET /plans/{id}/macros``, PAN-537).
2474
+
2475
+ The same recomputation as ``PlanWeekViewResponse.days`` — totals from the
2476
+ plan's persisted slots plus the household's targets — but strictly
2477
+ read-only: no shopping-list refresh, so a plain view of the plan never
2478
+ writes list rows.
2479
+ */
2480
+ export interface PlanMacrosResponse {
2481
+ days: AIWeekPlanDay[];
2482
+ }
2470
2483
  export type PlanSlotBulkItemId = number | null;
2471
2484
  export type PlanSlotBulkItemRecipeId = number | null;
2472
2485
  export type PlanSlotBulkItemCatalogRecipeId = number | null;
@@ -7186,6 +7199,31 @@ export declare function useGetPlanWeekViewPlansPlanIdWeekViewGet<TData = Awaited
7186
7199
  }): UseQueryResult<TData, TError> & {
7187
7200
  queryKey: QueryKey;
7188
7201
  };
7202
+ /**
7203
+ * Read-only per-day macros for a plan (PAN-537), recomputed from its
7204
+ persisted slots — the week-view numbers without the shopping-list
7205
+ refresh, so viewing the plan never writes list rows.
7206
+ * @summary Get Plan Macros
7207
+ */
7208
+ export declare const getPlanMacrosPlansPlanIdMacrosGet: (planId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<PlanMacrosResponse>>;
7209
+ export declare const getGetPlanMacrosPlansPlanIdMacrosGetQueryKey: (planId?: number) => readonly ["/plans/undefined/macros" | `/plans/${number}/macros`];
7210
+ export declare const getGetPlanMacrosPlansPlanIdMacrosGetQueryOptions: <TData = Awaited<ReturnType<typeof getPlanMacrosPlansPlanIdMacrosGet>>, TError = AxiosError<HTTPValidationError>>(planId: number, options?: {
7211
+ query?: UseQueryOptions<Awaited<ReturnType<typeof getPlanMacrosPlansPlanIdMacrosGet>>, TError, TData>;
7212
+ axios?: AxiosRequestConfig;
7213
+ }) => UseQueryOptions<Awaited<ReturnType<typeof getPlanMacrosPlansPlanIdMacrosGet>>, TError, TData> & {
7214
+ queryKey: QueryKey;
7215
+ };
7216
+ export type GetPlanMacrosPlansPlanIdMacrosGetQueryResult = NonNullable<Awaited<ReturnType<typeof getPlanMacrosPlansPlanIdMacrosGet>>>;
7217
+ export type GetPlanMacrosPlansPlanIdMacrosGetQueryError = AxiosError<HTTPValidationError>;
7218
+ /**
7219
+ * @summary Get Plan Macros
7220
+ */
7221
+ export declare function useGetPlanMacrosPlansPlanIdMacrosGet<TData = Awaited<ReturnType<typeof getPlanMacrosPlansPlanIdMacrosGet>>, TError = AxiosError<HTTPValidationError>>(planId: number, options?: {
7222
+ query?: UseQueryOptions<Awaited<ReturnType<typeof getPlanMacrosPlansPlanIdMacrosGet>>, TError, TData>;
7223
+ axios?: AxiosRequestConfig;
7224
+ }): UseQueryResult<TData, TError> & {
7225
+ queryKey: QueryKey;
7226
+ };
7189
7227
  /**
7190
7228
  * The plan editor's workhorse (§5.5): create/update/delete slot cells
7191
7229
  with per-item results. Items without id create; with id update (or delete