Skip to content

Commit

Permalink
fix(api-client): Fix Facet types to match API v2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
richterb committed Oct 11, 2023
1 parent 36272ee commit 914e36d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/api-client/src/client/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -51,7 +57,7 @@ export interface ApiDatasets {

export interface ApiFacets {
links: Link[];
facets: Facet[];
facets: FacetRoot[];
}

export interface ApiQuery<T> {
Expand Down

0 comments on commit 914e36d

Please sign in to comment.