Add operation for shot annotation types
This commit is contained in:
parent
dc214e878f
commit
4ca27317b4
@ -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<{
|
export type GetProfileImageUploadLinkMutationVariables = Exact<{
|
||||||
fileExt?: InputMaybe<Scalars["String"]["input"]>;
|
fileExt?: InputMaybe<Scalars["String"]["input"]>;
|
||||||
}>;
|
}>;
|
||||||
@ -2157,6 +2170,79 @@ export type GetShotsQueryResult = Apollo.QueryResult<
|
|||||||
GetShotsQuery,
|
GetShotsQuery,
|
||||||
GetShotsQueryVariables
|
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`
|
export const GetProfileImageUploadLinkDocument = gql`
|
||||||
mutation getProfileImageUploadLink($fileExt: String = ".png") {
|
mutation getProfileImageUploadLink($fileExt: String = ".png") {
|
||||||
getProfileImageUploadLink(fileExt: $fileExt) {
|
getProfileImageUploadLink(fileExt: $fileExt) {
|
||||||
|
@ -36,3 +36,10 @@ query GetShots(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
query GetShotAnnotationTypes {
|
||||||
|
getShotAnnotationTypes {
|
||||||
|
id
|
||||||
|
name
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user