mirror of
https://github.com/vercel/commerce.git
synced 2025-03-28 16:25:53 +00:00
24 lines
623 B
TypeScript
24 lines
623 B
TypeScript
import { OperationContext } from '@commerce/api/operations'
|
|
import { Provider, VendureConfig } from '../'
|
|
|
|
export default function getCustomerWishlistOperation({
|
|
commerce,
|
|
}: OperationContext<Provider>) {
|
|
async function getCustomerWishlist({
|
|
config: cfg,
|
|
variables,
|
|
includeProducts,
|
|
}: {
|
|
url?: string
|
|
variables: any
|
|
config?: Partial<VendureConfig>
|
|
includeProducts?: boolean
|
|
}): Promise<any> {
|
|
// Not implemented as Vendure does not ship with wishlist functionality at present
|
|
const config = commerce.getConfig(cfg)
|
|
return { wishlist: {} }
|
|
}
|
|
|
|
return getCustomerWishlist
|
|
}
|