import type { Bag } from './bag.types.js'; import type { BagItem, BagItemMetadata } from './bagItem.types.js'; import type { Config } from '../../index.js'; import type { PatchBagItemQuery } from './query.types.js'; import type { Product } from '../../products/types/index.js'; export type PatchBagItemData = { productId: Product['result']['id']; merchantId?: number; quantity: number; size: number; scale: number; oldQuantity?: number; oldSize?: number; from?: string; metadata?: BagItemMetadata; }; export type PatchBagItem = (id: Bag['id'] | null, itemId: BagItem['id'], data: PatchBagItemData, query?: PatchBagItemQuery, config?: Config) => Promise;