export type Wishlist = any; export type WishlistItemBody = { variantId: string | number; productId: string; }; export type WishlistTypes = { wishlist: Wishlist; itemBody: WishlistItemBody; }; export type GetWishlistHook = { data: T['wishlist'] | null; body: { includeProducts?: boolean; }; input: { includeProducts?: boolean; }; fetcherInput: { customerId: string; includeProducts?: boolean; }; swrState: { isEmpty: boolean; }; }; export type AddItemHook = { data: T['wishlist']; body: { item: T['itemBody']; }; fetcherInput: { item: T['itemBody']; }; actionInput: T['itemBody']; }; export type RemoveItemHook = { data: T['wishlist'] | null; body: { itemId: string; }; fetcherInput: { itemId: string; }; actionInput: { id: string; }; input: { wishlist?: { includeProducts?: boolean; }; }; }; export type WishlistSchema = { endpoint: { options: {}; handlers: { getWishlist: GetWishlistHook & { data: T['wishlist'] | null; body: { customerToken?: string; }; }; addItem: AddItemHook & { body: { customerToken?: string; }; }; removeItem: RemoveItemHook & { body: { customerToken?: string; }; }; }; }; }; export type GetCustomerWishlistOperation = { data: { wishlist?: T['wishlist']; }; variables: { customerId: string; }; };