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.

26 lines (25 loc) 1.62 kB
import { FacetField } from './interfaces/facet-field'; import { FacetElement } from './interfaces/facet-element'; import { FacetResponseDto } from '../../rest-sdk/dto/facets/facet-response-dto'; import { SearchFacetModel } from './search-facets-class'; export declare class SearchFacetsModelBuilder { static buildFacetsViewProps(facetsWidgetDefinition: FacetField[], facets: { [key: string]: FacetResponseDto[]; }, facetableFieldsKeysFromIndex: string[], sortType: string): SearchFacetModel[]; static sortFacetsModel(facetableFieldsFromIndex: { [key: string]: FacetField; }, searchFacets: SearchFacetModel[], sortType: string): SearchFacetModel[]; static mapToFacetElementModel(facetResponses: FacetResponseDto[], facetName: string, widgetFacetableFields: { [key: string]: FacetField; }): FacetElement[]; static getFacetLabel(facetResponse: FacetResponseDto, facetField: FacetField): string; static getRangeDateLabel(facetResponse: FacetResponseDto, facetableFieldSettings: FacetField): string; static formatDateInterval(dateStep: string, intervalValue: Date): string | null; static getRangeNumberLabel(facetResponse: FacetResponseDto, facetableFieldSettings: FacetField): string; static getIntervalNumberLabel(facetResponse: FacetResponseDto, facetableFieldSettings: FacetField): string; static parseRangeValue(val: string): number; static computeFacetValue(f: FacetResponseDto): string; static hasAnyFacetElements(searchFacets: SearchFacetModel[]): boolean; static AlphabeticallySort: string; static RangeSeparator: string; }