WineStyles
Which WineStyles franchise locations offer online order-for-pickup, and a live search of one store's own in-stock wine/beer/cheese catalog with real…
Which WineStyles franchise locations offer online order-for-pickup, and a live search of one store's own in-stock wine/beer/cheese catalog with real prices and quantities — read off the same pickup.winestyles.com app the store's own pickup checkout uses.
Domain: winestyles.com
Also known as: WineStyles, WineStyles Tasting Station, winestyles.com
Call it directly
bowmark.providers.winestyles.listStores(): Promise<WinestylesStore[]>
bowmark.providers.winestyles.searchStoreInventory(storeId: string, term?: string): Promise<WinestylesInventorySearch>Functions
| Function | What it does |
|---|---|
listStores | Lists the WineStyles franchise locations that currently offer online order-for-pickup, with each store's numeric id, city and state, read off the site's own store-locator nav. |
searchStoreInventory | Searches one WineStyles store's own live pickup catalog for a term (grape, style, region, brand) and returns matching wine/beer/cheese rows with real prices and in-stock quantities. |
Types
interface WinestylesStore {
storeId: string;
city: string;
state: string;
shopUrl: string;
}
interface WinestylesProduct {
sku: string;
name: string;
department: string;
style: string;
quantityAvailable: number;
price: { value: number | null; formatted: string | null };
}
interface WinestylesInventorySearch {
storeId: string;
term: string;
shopUrl: string;
results: WinestylesProduct[];
}Examples
// which WineStyles stores can I order pickup from, and what's this one's Cabernet selection?
const stores = await bowmark.providers.winestyles.listStores();
const westDesMoines = stores.find(s => s.city === "West Des Moines");
const search = await bowmark.providers.winestyles.searchStoreInventory(westDesMoines.storeId, "cabernet");
log(search.results.map(r => `${r.name}: ${r.price.formatted} (${r.quantityAvailable} left)`).join("\n"));