UNPKG

@vendasta/store

Version:

Components and data for Store

23 lines (22 loc) 696 B
import { Pricing } from './pricing/pricing'; import { Categories, StoreProduct, ShoppingCartItemType } from '@vendasta/marketplace-packages'; export declare type CategoryToItemListMap = Map<string, StoreItem[]>; export interface StoreItem { name: string; tagline: string; headerImageUrl: string; iconUrl: string; formattedPrice: string; purchased?: boolean; id?: string; pricing?: Pricing; lmiCategories?: Categories[]; type?: ShoppingCartItemType; parentName?: string; } export declare function convertStoreProductToStoreItem(sp: StoreProduct): StoreItem; export declare enum HeaderActionType { BUY_IT_NOW = 1, ADD_TO_CART = 2, NONE = 3 }