(slug: string)
| 157 | // Fetched separately from DATASET_TOOL_QUERY so a not-yet-deployed API |
| 158 | // (missing this field) can't 500 the whole page during the rollout window. |
| 159 | export const getToolFacts = async (slug: string): Promise<ToolFact[]> => { |
| 160 | const result = await gqlClient.request<{ |
| 161 | datasetTool: { facts: ToolFact[] }; |
| 162 | }>(TOOL_FACTS_QUERY, { slug }); |
| 163 | return result.datasetTool.facts; |
| 164 | }; |
| 165 | |
| 166 | const TOOL_VIEWER_CAN_CLAIM_QUERY = gql` |
| 167 | query ToolViewerCanClaim($slug: String!) { |