khansama-api 1.70.0 → 1.71.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
@@ -489,6 +489,7 @@ export interface BodyCreatePantryItemPantryItemsPost {
489
489
  notes?: BodyCreatePantryItemPantryItemsPostNotes;
490
490
  icon_tint?: BodyCreatePantryItemPantryItemsPostIconTint;
491
491
  ingredient_id?: BodyCreatePantryItemPantryItemsPostIngredientId;
492
+ is_staple?: boolean;
492
493
  image?: BodyCreatePantryItemPantryItemsPostImage;
493
494
  }
494
495
  export interface BodyCreateRecipeRecipesPost {
@@ -548,6 +549,7 @@ export type BodyUpdatePantryItemPantryItemsItemIdPutLocationId = number | null;
548
549
  export type BodyUpdatePantryItemPantryItemsItemIdPutNotes = string | null;
549
550
  export type BodyUpdatePantryItemPantryItemsItemIdPutIconTint = string | null;
550
551
  export type BodyUpdatePantryItemPantryItemsItemIdPutClearIconTint = string | null;
552
+ export type BodyUpdatePantryItemPantryItemsItemIdPutIsStaple = boolean | null;
551
553
  export type BodyUpdatePantryItemPantryItemsItemIdPutImage = string | null;
552
554
  export type BodyUpdatePantryItemPantryItemsItemIdPutClearImage = string | null;
553
555
  export interface BodyUpdatePantryItemPantryItemsItemIdPut {
@@ -563,6 +565,7 @@ export interface BodyUpdatePantryItemPantryItemsItemIdPut {
563
565
  notes?: BodyUpdatePantryItemPantryItemsItemIdPutNotes;
564
566
  icon_tint?: BodyUpdatePantryItemPantryItemsItemIdPutIconTint;
565
567
  clear_icon_tint?: BodyUpdatePantryItemPantryItemsItemIdPutClearIconTint;
568
+ is_staple?: BodyUpdatePantryItemPantryItemsItemIdPutIsStaple;
566
569
  image?: BodyUpdatePantryItemPantryItemsItemIdPutImage;
567
570
  clear_image?: BodyUpdatePantryItemPantryItemsItemIdPutClearImage;
568
571
  }
@@ -2375,6 +2378,7 @@ export interface PantryItemResponse {
2375
2378
  last_verified_at?: PantryItemResponseLastVerifiedAt;
2376
2379
  quantity_level?: PantryItemResponseQuantityLevel;
2377
2380
  icon_tint?: PantryItemResponseIconTint;
2381
+ is_staple?: boolean;
2378
2382
  }
2379
2383
  export type PantryPromptItemQuantity = number | null;
2380
2384
  export type PantryPromptItemUnit = string | null;
@@ -3455,6 +3459,15 @@ export declare const SpiceLevelEnum: {
3455
3459
  readonly medium: "medium";
3456
3460
  readonly hot: "hot";
3457
3461
  };
3462
+ /**
3463
+ * The Running low strip's one tap (PAN-565): the shopping row the tap
3464
+ produced — the row already waiting when the item was on the list — and
3465
+ whether it was already there.
3466
+ */
3467
+ export interface StapleShoppingAddResponse {
3468
+ item: ShoppingListItemResponse;
3469
+ already_listed: boolean;
3470
+ }
3458
3471
  export type StorageLocationCreateIcon = string | null;
3459
3472
  export type StorageLocationCreateSortOrder = number | null;
3460
3473
  export interface StorageLocationCreate {
@@ -4471,6 +4484,31 @@ export declare function useGetQuickCheckItemsPantryItemsQuickCheckGet<TData = Aw
4471
4484
  }): UseQueryResult<TData, TError> & {
4472
4485
  queryKey: QueryKey;
4473
4486
  };
4487
+ /**
4488
+ * The household's staples that need restocking (PAN-565): used up,
4489
+ marked finished (low/gone level), or under the household's per-item
4490
+ minimum. Each one offers a one-tap add to the shopping list.
4491
+ * @summary Get Running Low Staples
4492
+ */
4493
+ export declare const getRunningLowStaplesPantryItemsStaplesRunningLowGet: (options?: AxiosRequestConfig) => Promise<AxiosResponse<PantryItemResponse[]>>;
4494
+ export declare const getGetRunningLowStaplesPantryItemsStaplesRunningLowGetQueryKey: () => readonly ["/pantry-items/staples/running-low"];
4495
+ export declare const getGetRunningLowStaplesPantryItemsStaplesRunningLowGetQueryOptions: <TData = Awaited<ReturnType<typeof getRunningLowStaplesPantryItemsStaplesRunningLowGet>>, TError = AxiosError<unknown>>(options?: {
4496
+ query?: UseQueryOptions<Awaited<ReturnType<typeof getRunningLowStaplesPantryItemsStaplesRunningLowGet>>, TError, TData>;
4497
+ axios?: AxiosRequestConfig;
4498
+ }) => UseQueryOptions<Awaited<ReturnType<typeof getRunningLowStaplesPantryItemsStaplesRunningLowGet>>, TError, TData> & {
4499
+ queryKey: QueryKey;
4500
+ };
4501
+ export type GetRunningLowStaplesPantryItemsStaplesRunningLowGetQueryResult = NonNullable<Awaited<ReturnType<typeof getRunningLowStaplesPantryItemsStaplesRunningLowGet>>>;
4502
+ export type GetRunningLowStaplesPantryItemsStaplesRunningLowGetQueryError = AxiosError<unknown>;
4503
+ /**
4504
+ * @summary Get Running Low Staples
4505
+ */
4506
+ export declare function useGetRunningLowStaplesPantryItemsStaplesRunningLowGet<TData = Awaited<ReturnType<typeof getRunningLowStaplesPantryItemsStaplesRunningLowGet>>, TError = AxiosError<unknown>>(options?: {
4507
+ query?: UseQueryOptions<Awaited<ReturnType<typeof getRunningLowStaplesPantryItemsStaplesRunningLowGet>>, TError, TData>;
4508
+ axios?: AxiosRequestConfig;
4509
+ }): UseQueryResult<TData, TError> & {
4510
+ queryKey: QueryKey;
4511
+ };
4474
4512
  /**
4475
4513
  * @summary Get Inventory Events
4476
4514
  */
@@ -4697,6 +4735,35 @@ export declare const useUndoLevelLowStockPantryItemsItemIdLevelUndoPost: <TError
4697
4735
  itemId: number;
4698
4736
  data: LevelUndoRequest;
4699
4737
  }, TContext>;
4738
+ /**
4739
+ * The Running low strip's one tap (PAN-565): put the staple on the
4740
+ household's shopping list, deduplicated — a tap never duplicates what is
4741
+ already waiting there. Deliberately not automatic: staples are excluded
4742
+ from the level change's auto-add.
4743
+ * @summary Add Running Low Staple
4744
+ */
4745
+ export declare const addRunningLowStaplePantryItemsItemIdAddToShoppingListPost: (itemId: number, options?: AxiosRequestConfig) => Promise<AxiosResponse<StapleShoppingAddResponse>>;
4746
+ export declare const getAddRunningLowStaplePantryItemsItemIdAddToShoppingListPostMutationOptions: <TError = AxiosError<HTTPValidationError>, TContext = unknown>(options?: {
4747
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof addRunningLowStaplePantryItemsItemIdAddToShoppingListPost>>, TError, {
4748
+ itemId: number;
4749
+ }, TContext>;
4750
+ axios?: AxiosRequestConfig;
4751
+ }) => UseMutationOptions<Awaited<ReturnType<typeof addRunningLowStaplePantryItemsItemIdAddToShoppingListPost>>, TError, {
4752
+ itemId: number;
4753
+ }, TContext>;
4754
+ export type AddRunningLowStaplePantryItemsItemIdAddToShoppingListPostMutationResult = NonNullable<Awaited<ReturnType<typeof addRunningLowStaplePantryItemsItemIdAddToShoppingListPost>>>;
4755
+ export type AddRunningLowStaplePantryItemsItemIdAddToShoppingListPostMutationError = AxiosError<HTTPValidationError>;
4756
+ /**
4757
+ * @summary Add Running Low Staple
4758
+ */
4759
+ export declare const useAddRunningLowStaplePantryItemsItemIdAddToShoppingListPost: <TError = AxiosError<HTTPValidationError>, TContext = unknown>(options?: {
4760
+ mutation?: UseMutationOptions<Awaited<ReturnType<typeof addRunningLowStaplePantryItemsItemIdAddToShoppingListPost>>, TError, {
4761
+ itemId: number;
4762
+ }, TContext>;
4763
+ axios?: AxiosRequestConfig;
4764
+ }) => UseMutationResult<Awaited<ReturnType<typeof addRunningLowStaplePantryItemsItemIdAddToShoppingListPost>>, TError, {
4765
+ itemId: number;
4766
+ }, TContext>;
4700
4767
  /**
4701
4768
  * Confirm an item is still there; optionally correct its expiry and level.
4702
4769
  * @summary Verify Pantry Item