UNPKG

@valantic/spartacus-mock

Version:

This project offers you the possibility to mock the OCC Endpoints of your Composable Storefront (Spartacus). It uses the Mock Service Worker to mock the API calls.

7 lines (6 loc) 568 B
import { Occ } from '@spartacus/core'; import { ProductSearchPageModifier, SearchStateModifier } from '../../types'; export declare const createSearchQuery: () => Occ.SearchQuery; export declare const createSearchState: (additionalData?: Occ.SearchState, modifier?: SearchStateModifier) => Occ.SearchState; export declare const createSpellingSuggestion: (additionalData?: Occ.SpellingSuggestion) => Occ.SpellingSuggestion; export declare const productSearchPage: (additionalData?: Occ.ProductSearchPage, modifier?: ProductSearchPageModifier) => Occ.ProductSearchPage;