diff --git a/src/index.tsx b/src/index.tsx index eb5984e..5a3a533 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1335,6 +1335,19 @@ export type GetShotsQuery = { }>; }; +export type GetShotAnnotationTypesQueryVariables = Exact<{ + [key: string]: never; +}>; + +export type GetShotAnnotationTypesQuery = { + __typename?: "Query"; + getShotAnnotationTypes: Array<{ + __typename?: "ShotAnnotationTypeGQL"; + id: number; + name: string; + }>; +}; + export type GetProfileImageUploadLinkMutationVariables = Exact<{ fileExt?: InputMaybe; }>; @@ -2157,6 +2170,79 @@ export type GetShotsQueryResult = Apollo.QueryResult< GetShotsQuery, GetShotsQueryVariables >; +export const GetShotAnnotationTypesDocument = gql` + query GetShotAnnotationTypes { + getShotAnnotationTypes { + id + name + } + } +`; + +/** + * __useGetShotAnnotationTypesQuery__ + * + * To run a query within a React component, call `useGetShotAnnotationTypesQuery` and pass it any options that fit your needs. + * When your component renders, `useGetShotAnnotationTypesQuery` 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 } = useGetShotAnnotationTypesQuery({ + * variables: { + * }, + * }); + */ +export function useGetShotAnnotationTypesQuery( + baseOptions?: Apollo.QueryHookOptions< + GetShotAnnotationTypesQuery, + GetShotAnnotationTypesQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useQuery< + GetShotAnnotationTypesQuery, + GetShotAnnotationTypesQueryVariables + >(GetShotAnnotationTypesDocument, options); +} +export function useGetShotAnnotationTypesLazyQuery( + baseOptions?: Apollo.LazyQueryHookOptions< + GetShotAnnotationTypesQuery, + GetShotAnnotationTypesQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useLazyQuery< + GetShotAnnotationTypesQuery, + GetShotAnnotationTypesQueryVariables + >(GetShotAnnotationTypesDocument, options); +} +export function useGetShotAnnotationTypesSuspenseQuery( + baseOptions?: Apollo.SuspenseQueryHookOptions< + GetShotAnnotationTypesQuery, + GetShotAnnotationTypesQueryVariables + >, +) { + const options = { ...defaultOptions, ...baseOptions }; + return Apollo.useSuspenseQuery< + GetShotAnnotationTypesQuery, + GetShotAnnotationTypesQueryVariables + >(GetShotAnnotationTypesDocument, options); +} +export type GetShotAnnotationTypesQueryHookResult = ReturnType< + typeof useGetShotAnnotationTypesQuery +>; +export type GetShotAnnotationTypesLazyQueryHookResult = ReturnType< + typeof useGetShotAnnotationTypesLazyQuery +>; +export type GetShotAnnotationTypesSuspenseQueryHookResult = ReturnType< + typeof useGetShotAnnotationTypesSuspenseQuery +>; +export type GetShotAnnotationTypesQueryResult = Apollo.QueryResult< + GetShotAnnotationTypesQuery, + GetShotAnnotationTypesQueryVariables +>; export const GetProfileImageUploadLinkDocument = gql` mutation getProfileImageUploadLink($fileExt: String = ".png") { getProfileImageUploadLink(fileExt: $fileExt) { diff --git a/src/operations/shots.gql b/src/operations/shots.gql index 1a842b6..f52f0aa 100644 --- a/src/operations/shots.gql +++ b/src/operations/shots.gql @@ -36,3 +36,10 @@ query GetShots( } } } + +query GetShotAnnotationTypes { + getShotAnnotationTypes { + id + name + } +}