@spartacus/storefront
Version:
Spartacus Storefront is a package that you can include in your application, which allows you to add default storefront features.
40 lines (39 loc) • 970 B
TypeScript
/**
* Contains specific route parameters for the product listing page.
*/
export interface ProductListRouteParams {
/**
* The query parameter which used to query the backend API.
*/
query?: string;
/**
* The category code which is used to query the backend API.
*/
categoryCode?: string;
/**
* The brand code is actually a category code, which is used to
* query the backend API.
*/
brandCode?: string;
}
/**
* Contains search related data for querying the backend API.
*/
export interface SearchCriteria {
/**
* Contains the search text that is used to query the backend API.
*/
query?: string;
/**
* The current page of the search result.
*/
currentPage?: number;
/**
* The number of items in the search results.
*/
pageSize?: number;
/**
* The sort code that is used to sort the items in the search result.
*/
sortCode?: string;
}