UNPKG

@scayle/storefront-core

Version:

Collection of essential utilities to work with the Storefront API

27 lines (26 loc) 849 B
import type { ValuesType } from 'utility-types'; /** * Enumeration of sort options by internal name. */ declare const SortName: { readonly TOPSELLER: "topseller"; readonly DATE_NEWEST: "date_newest"; readonly PRICE_DESC: "price_desc"; readonly PRICE_ASC: "price_asc"; readonly REDUCTION_DESC: "reduction_desc"; readonly REDUCTION_ASC: "reduction_asc"; }; /** * Enumeration of sort options as used in query parameters. */ declare const SortQuery: { readonly TOPSELLER: "topseller"; readonly DATE_NEWEST: "date-newest"; readonly PRICE_DESC: "price-desc"; readonly PRICE_ASC: "price-asc"; readonly REDUCTION_DESC: "reduction-desc"; readonly REDUCTION_ASC: "reduction-asc"; }; type SortName = ValuesType<typeof SortName>; type SortQuery = ValuesType<typeof SortQuery>; export { SortName, SortQuery };