import type { Query } from './Query'; import type { Product } from './Product'; import type { Sort } from './Sort'; /** * @type UnassignedProductSearchResult: Document representing an unassigned product search result. Contains products that are not assigned to the specified category. * * @property catalogId: The ID of the catalog to which the specified category belongs. * - **Min Length:** 1 * - **Max Length:** 256 * * @property categoryId: The ID of the category to which products are not assigned. * - **Min Length:** 1 * - **Max Length:** 256 * * @property hits: A sorted array of search hits (`Product` objects). If there are no hits, the array can be empty. * * @property query: * * @property sorts: The sorting that was applied to the result. * * @property offset: The zero-based index of the first hit/data to include in the result. * * @property limit: Maximum records to retrieve per request. The limit with its constraints (minimum, maximum, default) is defined by the request parameter `limit` of the endpoint returning this schema. * * @property total: The total number of hits that match the search\'s criteria. This can be greater than the number of results returned as search results are pagenated. * */ export type UnassignedProductSearchResult = { catalogId?: string; categoryId?: string; hits: Array; query: Query; sorts?: Array; offset: number; limit: number; total: number; } & { [key: string]: any; };