diff --git a/src/index.tsx b/src/index.tsx index bee8ed7..f06455c 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1972,6 +1972,13 @@ export type GetUsernamesQuery = { getUsernames: Array; }; +export type GetUserTagsQueryVariables = Exact<{ [key: string]: never }>; + +export type GetUserTagsQuery = { + __typename?: "Query"; + getUserTags: Array<{ __typename?: "TagGQL"; id: number; name: string }>; +}; + export type GetStreamMonitoringDetailsQueryVariables = Exact<{ videoId: Scalars["Int"]["input"]; debuggingJson?: InputMaybe; @@ -3399,6 +3406,77 @@ export type GetUsernamesQueryResult = Apollo.QueryResult< GetUsernamesQuery, GetUsernamesQueryVariables >; +export const GetUserTagsDocument = gql` + query GetUserTags { + getUserTags { + id + name + } + } +`; + +/** + * __useGetUserTagsQuery__ + * + * To run a query within a React component, call `useGetUserTagsQuery` and pass it any options that fit your needs. + * When your component renders, `useGetUserTagsQuery` 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 } = useGetUserTagsQuery({ + * variables: { + * }, + * }); + */ +export function useGetUserTagsQuery( + baseOptions?: Apollo.QueryHookOptions< + GetUserTagsQuery, + GetUserTagsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery( + GetUserTagsDocument, + options, + ); +} +export function useGetUserTagsLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + GetUserTagsQuery, + GetUserTagsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery( + GetUserTagsDocument, + options, + ); +} +export function useGetUserTagsSuspenseQuery( + baseOptions?: Apollo.SuspenseQueryHookOptions< + GetUserTagsQuery, + GetUserTagsQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useSuspenseQuery( + GetUserTagsDocument, + options, + ); +} +export type GetUserTagsQueryHookResult = ReturnType; +export type GetUserTagsLazyQueryHookResult = ReturnType< + typeof useGetUserTagsLazyQuery +>; +export type GetUserTagsSuspenseQueryHookResult = ReturnType< + typeof useGetUserTagsSuspenseQuery +>; +export type GetUserTagsQueryResult = Apollo.QueryResult< + GetUserTagsQuery, + GetUserTagsQueryVariables +>; export const GetStreamMonitoringDetailsDocument = gql` query GetStreamMonitoringDetails($videoId: Int!, $debuggingJson: JSON) { getVideo(videoId: $videoId, debuggingJson: $debuggingJson) { diff --git a/src/operations/user.gql b/src/operations/user.gql index 3f5088a..0f150a5 100644 --- a/src/operations/user.gql +++ b/src/operations/user.gql @@ -56,3 +56,10 @@ query getUsernames( ) { getUsernames(matchString: $matchString, limit: $limit, after: $after) } + +query GetUserTags { + getUserTags { + id + name + } +}