import type { Query } from './Query'; import type { Sort } from './Sort'; /** * @type SearchRequest: Document representing a search request for retrieving items within the Data API. The query is a potentially complex set of expressions. The fields and expands that each query supports are defined within the search resource. * * @property limit: Maximum records to retrieve per request, not to exceed 200. * * @property query: * * @property sorts: The list of sort clauses configured for the search request. Sort clauses are optional. See the description of the search endpoint for details on the default sorting behavior that is used when explicit sorts are not passed. * * @property offset: The zero-based index of the first hit/data to include in the result. * */ export type SearchRequest = { limit?: number; query: Query; sorts?: Array; offset?: number; } & { [key: string]: any; };