UNPKG

@progress/sitefinity-nextjs-sdk

Version:

Provides OOB widgets developed using the Next.js framework, which includes an abstraction layer for Sitefinity communication. Additionally, it offers an expanded API, typings, and tools for further development and integration.

27 lines (26 loc) 1.27 kB
import { Facet } from '../../rest-sdk/dto/facets/facet'; import { FacetResponseDto } from '../../rest-sdk/dto/facets/facet-response-dto'; import { FacetField } from './interfaces/facet-field'; import { SearchFacetModel } from './search-facets-class'; import { SearchFacetsEntity } from './search-facets.entity'; export declare function getSearchFacets(searchQuery: string, culture: string, indexCatalogue: string, filter: string, resultsForAllSites: string, searchFields: any, facets: Facet[], ctx?: any): Promise<{ [k: string]: FacetResponseDto[]; }>; export declare function getSelectedFacetsToBeUsed(searchFacets: SearchFacetModel[]): FacetField[]; export declare function getFacets(selectedFacetsToBeUsed: FacetField[], newSearchParams: { [key: string]: string; }): Facet[]; export declare function updateFacetsViewProps(newSearchParams: { [key: string]: string; }, facetResponse: { [k: string]: FacetResponseDto[]; }, selectedFacetsToBeUsed: FacetField[]): Promise<{ searchFacets: SearchFacetModel[]; hasAnyFacetElements: boolean; }>; export declare function getInitialFacetsWithModels(searchParams: { [key: string]: any; }, entity: SearchFacetsEntity): Promise<{ searchFacets: SearchFacetModel[]; hasAnyFacetElements: boolean; }>;