mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 21:45:31 +09:00
feat(api): return discovery category counts and banners for faceted search (#1686)
This commit is contained in:
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> {
|
||||
|
||||
Reference in new issue
Block a user