@shopify/hydrogen-react
Version:
React components, hooks, and utilities for creating custom Shopify storefronts
55 lines (54 loc) • 1.71 kB
TypeScript
export declare const AnalyticsEventName: {
readonly PAGE_VIEW: "PAGE_VIEW";
readonly ADD_TO_CART: "ADD_TO_CART";
readonly PAGE_VIEW_2: "PAGE_VIEW_2";
readonly COLLECTION_VIEW: "COLLECTION_VIEW";
readonly PRODUCT_VIEW: "PRODUCT_VIEW";
readonly SEARCH_VIEW: "SEARCH_VIEW";
};
export declare const AnalyticsPageType: AnalyticsPageType;
export declare const ShopifySalesChannel: ShopifySalesChannel;
export declare const ShopifyAppId: {
readonly hydrogen: "6167201";
readonly headless: "12875497473";
};
/**
* These duplicated interface declaration is so that we can generate proper documentation
* for these public facing constants
*/
export interface AnalyticsEventName {
/** Page view */
PAGE_VIEW: 'PAGE_VIEW';
/** Add to cart */
ADD_TO_CART: 'ADD_TO_CART';
}
export interface AnalyticsPageType {
article: 'article';
blog: 'blog';
captcha: 'captcha';
cart: 'cart';
collection: 'collection';
customersAccount: 'customers/account';
customersActivateAccount: 'customers/activate_account';
customersAddresses: 'customers/addresses';
customersLogin: 'customers/login';
customersOrder: 'customers/order';
customersRegister: 'customers/register';
customersResetPassword: 'customers/reset_password';
giftCard: 'gift_card';
home: 'index';
listCollections: 'list-collections';
forbidden: '403';
notFound: '404';
page: 'page';
password: 'password';
product: 'product';
policy: 'policy';
search: 'search';
}
export interface ShopifySalesChannel {
/** Shopify Hydrogen sales channel */
hydrogen: 'hydrogen';
/** Shopify Headless sales channel */
headless: 'headless';
}