import { Action } from '@evlop/commons'; import type { MoneyV2, ShopifyMetafields } from '../types'; import ShopifyProductVariant from './ShopifyProductVariant'; import ShopifyImage from './ShopifyImage'; export interface ProductOption { id: string; name: string; values: string[]; } export interface ProductPriceRange { minVariantPrice: MoneyV2; maxVariantPrice: MoneyV2; } export interface ProductActions { addToCart: Action; addToWishlist: Action; openDetailsPage: Action; } export interface ShopifyProduct { id?: string; gid?: string; title?: string; handle?: string; description?: string; descriptionHtml?: string; tags?: string[]; options?: ProductOption[]; priceRange?: ProductPriceRange; availableForSale?: boolean; requiresSellingPlan?: boolean; totalInventory?: number; productType?: string; vendor?: string; onlineStoreUrl?: string; variants?: ShopifyProductVariant[] & Record; sellingPlanGroups?: any[]; images?: ShopifyImage[]; media?: any[]; collections?: string[]; collectionIds?: string[]; collectionHandles?: string[]; thumbnail?: ShopifyImage | null; /** @deprecated use metafields instead */ metadata?: ShopifyMetafields; metafields?: ShopifyMetafields; actions?: ProductActions; } export default ShopifyProduct; //# sourceMappingURL=ShopifyProduct.d.ts.map