( slug: string, )
| 126 | // Fetched separately from DATASET_TOOL_QUERY so a not-yet-deployed API |
| 127 | // (missing this field) can't 500 the whole page during the rollout window. |
| 128 | export const getToolClaimedBy = async ( |
| 129 | slug: string, |
| 130 | ): Promise<ToolClaimedBy | null> => { |
| 131 | const result = await gqlClient.request<{ |
| 132 | datasetTool: { claimedBy: ToolClaimedBy | null }; |
| 133 | }>(TOOL_CLAIMED_BY_QUERY, { slug }); |
| 134 | return result.datasetTool.claimedBy; |
| 135 | }; |
| 136 | |
| 137 | export interface ToolFact { |
| 138 | key: string; |