@spartacus/storefront
Version:
Spartacus Storefront is a package that you can include in your application, which allows you to add default storefront features.
34 lines (33 loc) • 1 kB
TypeScript
import { Category, Price } from '@spartacus/core';
import { PageEvent } from '../page/page.events';
/**
* Indicates that a user visited a product details page.
*/
export declare class ProductDetailsPageEvent extends PageEvent {
/** event's type */
static readonly type = "ProductDetailsPageEvent";
categories?: Category[];
code?: string;
name?: string;
price?: Price;
}
/**
* Indicates that a user visited a category page.
*/
export declare class CategoryPageResultsEvent extends PageEvent {
/** event's type */
static readonly type = "CategoryPageResultsEvent";
categoryCode: string;
categoryName?: string;
numberOfResults: Number;
}
/**
* Indicates that the a user visited the search results page,
* and that the search results have been retrieved.
*/
export declare class SearchPageResultsEvent extends PageEvent {
/** event's type */
static readonly type = "SearchPageResultsEvent";
searchTerm: string;
numberOfResults: Number;
}