feat(api): return discovery category counts and banners for faceted search (#1686)

This commit is contained in:
Hampus authored and GitHub committed 2026-08-16 22:39:21 +02:00
1 parent be69157811
commit 8a14281b87
11 files changed
+199 -22

No files matched your search

@@ -6,12 +6,16 @@ export interface SearchOptions {
limit?: number;
offset?: number;
cursor?: Array<string>;
facets?: Array<string>;
}
export type SearchFacetCounts = Readonly<Record<string, Readonly<Record<string, number>>>>;
export interface SearchResult<TResult> {
hits: Array<TResult>;
total: number;
cursor?: Array<string>;
facetCounts?: SearchFacetCounts;
}
export interface ISearchAdapter<TFilters, TResult> {