({
toolId,
first,
}: {
toolId: string;
first?: number;
})
| 186 | }; |
| 187 | |
| 188 | export const getTopSquadsForTool = async ({ |
| 189 | toolId, |
| 190 | first, |
| 191 | }: { |
| 192 | toolId: string; |
| 193 | first?: number; |
| 194 | }): Promise<ToolTopSquad[]> => { |
| 195 | const result = await gqlClient.request<{ |
| 196 | sources: Connection<ToolTopSquad>; |
| 197 | }>(TOP_SQUADS_FOR_TOOL_QUERY, { toolId, first }); |
| 198 | |
| 199 | return result.sources.edges.map(({ node }) => node); |
| 200 | }; |
| 201 | |
| 202 | export const addUserStack = async ( |
| 203 | input: AddUserStackInput, |
no outgoing calls
no test coverage detected