Skip to content

Commit 1a220ea

Browse files
committed
fix: ensures support for additional Facet types (beyond 'terms')
1 parent 1d0c1b3 commit 1a220ea

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

static.ts

+4-7
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
import _STATIC from "./static.json";
1+
import _STATIC from "./static-andy-11-11.json" with { type: "json" };
22
import { defaultsDeep, get as _get } from "lodash";
33
import { ThemeSettings } from "@/theme";
44

55
import type { ResultListingComponentOptions } from "@/components/ResultListing";
66
import type { ResultComponentOptions } from "@/components/Result";
77
import { NavigationOptions } from "@/components/Navigation";
88

9+
import type { GFacet } from "@globus/sdk/cjs/services/search/service/query";
10+
911
/**
1012
* The base type for a `static.json` file.
1113
*/
@@ -141,12 +143,7 @@ export type Data = {
141143
* The UUID of the Globus Search Index that will be used as the data source.
142144
*/
143145
index: string;
144-
facets?: {
145-
name?: string;
146-
field_name: string;
147-
type: string;
148-
size: number;
149-
}[];
146+
facets?: GFacet[];
150147
};
151148
};
152149
};

0 commit comments

Comments
 (0)