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