Add operation for shot annotation types

This commit is contained in:
Ivan Malison 2024-07-15 15:37:43 -06:00
parent dc214e878f
commit 4ca27317b4
2 changed files with 93 additions and 0 deletions

View File

@ -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<Scalars["String"]["input"]>;
}>;
@ -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) {

View File

@ -36,3 +36,10 @@ query GetShots(
}
}
}
query GetShotAnnotationTypes {
getShotAnnotationTypes {
id
name
}
}