diff --git a/packages/api-client/src/client/types.ts b/packages/api-client/src/client/types.ts index 07963bd9..2c102dbf 100644 --- a/packages/api-client/src/client/types.ts +++ b/packages/api-client/src/client/types.ts @@ -3,10 +3,16 @@ export interface Facet { name: string; count: number; - path?: string; + value: string; + state: 'displayed' | 'refined' | 'excluded'; facets?: Facet[]; } +export interface FacetRoot { + name: string; + facets: Facet[]; +} + export interface Link { href: string; rel: string; @@ -51,7 +57,7 @@ export interface ApiDatasets { export interface ApiFacets { links: Link[]; - facets: Facet[]; + facets: FacetRoot[]; } export interface ApiQuery {