UNPKG

contentful-management

Version:
24 lines (23 loc) 757 B
import type { DefaultElements, Link, MakeRequest, SemanticRequestFilter } from '../common-types'; export type GetSemanticSearchProps = { query: string; filter?: SemanticRequestFilter; }; export type SemanticSearchResult = { sys: { type: 'SemanticSearchResult'; entity: Link<'Entry'>; space: Link<'Space'>; environment: Link<'Environment'>; }; }; export type SemanticSearchProps = { sys: { type: 'Array'; correlationId?: string; }; items: SemanticSearchResult[]; }; export interface SemanticSearch extends SemanticSearchProps, DefaultElements<SemanticSearchProps> { } export declare function wrapSemanticSearch(_makeRequest: MakeRequest, data: SemanticSearchProps): SemanticSearch;