From 28ba01c07fdd05b2c41be0b15c2b80e27028e76d Mon Sep 17 00:00:00 2001 From: Loewy Date: Mon, 30 Mar 2026 15:31:24 -0700 Subject: [PATCH] operation --- src/index.tsx | 95 +++++++++++++++++++++++++++++++++++++++++ src/operations/user.gql | 11 +++++ 2 files changed, 106 insertions(+) diff --git a/src/index.tsx b/src/index.tsx index 27ba398..242a25e 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -5571,6 +5571,23 @@ export type GetUserTagsQuery = { }>; }; +export type GetGameTypeTagMetricsQueryVariables = Exact<{ + input: GameTypeTagMetricsInput; +}>; + +export type GetGameTypeTagMetricsQuery = { + __typename?: "Query"; + getGameTypeTagMetrics: Array<{ + __typename?: "GameTypeTagMetric"; + tagName: string; + tagLabel: string; + tableSize?: number | null; + shotCount: number; + madeShots: number; + makeRate: number; + }>; +}; + export type FollowUserMutationVariables = Exact<{ followedUserId: Scalars["Int"]["input"]; }>; @@ -11554,6 +11571,84 @@ export type GetUserTagsQueryResult = Apollo.QueryResult< GetUserTagsQuery, GetUserTagsQueryVariables >; +export const GetGameTypeTagMetricsDocument = gql` + query GetGameTypeTagMetrics($input: GameTypeTagMetricsInput!) { + getGameTypeTagMetrics(input: $input) { + tagName + tagLabel + tableSize + shotCount + madeShots + makeRate + } + } +`; + +/** + * __useGetGameTypeTagMetricsQuery__ + * + * To run a query within a React component, call `useGetGameTypeTagMetricsQuery` and pass it any options that fit your needs. + * When your component renders, `useGetGameTypeTagMetricsQuery` returns an object from Apollo Client that contains loading, error, and data properties + * you can use to render your UI. + * + * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options; + * + * @example + * const { data, loading, error } = useGetGameTypeTagMetricsQuery({ + * variables: { + * input: // value for 'input' + * }, + * }); + */ +export function useGetGameTypeTagMetricsQuery( + baseOptions: Apollo.QueryHookOptions< + GetGameTypeTagMetricsQuery, + GetGameTypeTagMetricsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery< + GetGameTypeTagMetricsQuery, + GetGameTypeTagMetricsQueryVariables + >(GetGameTypeTagMetricsDocument, options); +} +export function useGetGameTypeTagMetricsLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + GetGameTypeTagMetricsQuery, + GetGameTypeTagMetricsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + GetGameTypeTagMetricsQuery, + GetGameTypeTagMetricsQueryVariables + >(GetGameTypeTagMetricsDocument, options); +} +export function useGetGameTypeTagMetricsSuspenseQuery( + baseOptions?: Apollo.SuspenseQueryHookOptions< + GetGameTypeTagMetricsQuery, + GetGameTypeTagMetricsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useSuspenseQuery< + GetGameTypeTagMetricsQuery, + GetGameTypeTagMetricsQueryVariables + >(GetGameTypeTagMetricsDocument, options); +} +export type GetGameTypeTagMetricsQueryHookResult = ReturnType< + typeof useGetGameTypeTagMetricsQuery +>; +export type GetGameTypeTagMetricsLazyQueryHookResult = ReturnType< + typeof useGetGameTypeTagMetricsLazyQuery +>; +export type GetGameTypeTagMetricsSuspenseQueryHookResult = ReturnType< + typeof useGetGameTypeTagMetricsSuspenseQuery +>; +export type GetGameTypeTagMetricsQueryResult = Apollo.QueryResult< + GetGameTypeTagMetricsQuery, + GetGameTypeTagMetricsQueryVariables +>; export const FollowUserDocument = gql` mutation followUser($followedUserId: Int!) { followUser(followedUserId: $followedUserId) { diff --git a/src/operations/user.gql b/src/operations/user.gql index 0a2b1c7..8fefa5b 100644 --- a/src/operations/user.gql +++ b/src/operations/user.gql @@ -92,6 +92,17 @@ query GetUserTags { } } +query GetGameTypeTagMetrics($input: GameTypeTagMetricsInput!) { + getGameTypeTagMetrics(input: $input) { + tagName + tagLabel + tableSize + shotCount + madeShots + makeRate + } +} + mutation followUser($followedUserId: Int!) { followUser(followedUserId: $followedUserId) { id