Dummy query to resolve shot paths #46

Merged
countablecloud merged 2 commits from mk/deserialize-and-render into master 2024-08-29 12:26:24 -06:00
2 changed files with 110 additions and 0 deletions

View File

@ -1830,6 +1830,25 @@ export type GetShotsQuery = {
}>; }>;
}; };
export type GetSerializedShotPathsQueryVariables = Exact<{
filterInput: FilterInput;
}>;
export type GetSerializedShotPathsQuery = {
__typename?: "Query";
getShots: Array<{
__typename?: "ShotGQL";
id: number;
videoId: number;
startFrame: number;
endFrame: number;
serializedShotPaths?: {
__typename?: "SerializedShotPathsGQL";
b64EncodedBuffer?: string | null;
} | null;
}>;
};
export type GetShotAnnotationTypesQueryVariables = Exact<{ export type GetShotAnnotationTypesQueryVariables = Exact<{
[key: string]: never; [key: string]: never;
}>; }>;
@ -2840,6 +2859,85 @@ export type GetShotsQueryResult = Apollo.QueryResult<
GetShotsQuery, GetShotsQuery,
GetShotsQueryVariables GetShotsQueryVariables
>; >;
export const GetSerializedShotPathsDocument = gql`
query GetSerializedShotPaths($filterInput: FilterInput!) {
getShots(filterInput: $filterInput) {
id
videoId
startFrame
endFrame
serializedShotPaths {
b64EncodedBuffer
}
}
}
`;
/**
* __useGetSerializedShotPathsQuery__
*
* To run a query within a React component, call `useGetSerializedShotPathsQuery` and pass it any options that fit your needs.
* When your component renders, `useGetSerializedShotPathsQuery` 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 } = useGetSerializedShotPathsQuery({
* variables: {
* filterInput: // value for 'filterInput'
* },
* });
*/
export function useGetSerializedShotPathsQuery(
baseOptions: Apollo.QueryHookOptions<
GetSerializedShotPathsQuery,
GetSerializedShotPathsQueryVariables
>,
) {
const options = { ...defaultOptions, ...baseOptions };
return Apollo.useQuery<
GetSerializedShotPathsQuery,
GetSerializedShotPathsQueryVariables
>(GetSerializedShotPathsDocument, options);
}
export function useGetSerializedShotPathsLazyQuery(
baseOptions?: Apollo.LazyQueryHookOptions<
GetSerializedShotPathsQuery,
GetSerializedShotPathsQueryVariables
>,
) {
const options = { ...defaultOptions, ...baseOptions };
return Apollo.useLazyQuery<
GetSerializedShotPathsQuery,
GetSerializedShotPathsQueryVariables
>(GetSerializedShotPathsDocument, options);
}
export function useGetSerializedShotPathsSuspenseQuery(
baseOptions?: Apollo.SuspenseQueryHookOptions<
GetSerializedShotPathsQuery,
GetSerializedShotPathsQueryVariables
>,
) {
const options = { ...defaultOptions, ...baseOptions };
return Apollo.useSuspenseQuery<
GetSerializedShotPathsQuery,
GetSerializedShotPathsQueryVariables
>(GetSerializedShotPathsDocument, options);
}
export type GetSerializedShotPathsQueryHookResult = ReturnType<
typeof useGetSerializedShotPathsQuery
>;
export type GetSerializedShotPathsLazyQueryHookResult = ReturnType<
typeof useGetSerializedShotPathsLazyQuery
>;
export type GetSerializedShotPathsSuspenseQueryHookResult = ReturnType<
typeof useGetSerializedShotPathsSuspenseQuery
>;
export type GetSerializedShotPathsQueryResult = Apollo.QueryResult<
GetSerializedShotPathsQuery,
GetSerializedShotPathsQueryVariables
>;
export const GetShotAnnotationTypesDocument = gql` export const GetShotAnnotationTypesDocument = gql`
query GetShotAnnotationTypes { query GetShotAnnotationTypes {
getShotAnnotationTypes { getShotAnnotationTypes {

View File

@ -52,6 +52,18 @@ query GetShots(
} }
} }
query GetSerializedShotPaths($filterInput: FilterInput!) {
getShots(filterInput: $filterInput) {
id
videoId
startFrame
endFrame
serializedShotPaths {
b64EncodedBuffer
}
}
}
query GetShotAnnotationTypes { query GetShotAnnotationTypes {
getShotAnnotationTypes { getShotAnnotationTypes {
id id