Update GetVideoMakePercentage query

This commit is contained in:
Kat Huang 2024-03-05 01:24:03 -07:00
parent f64fc0e54a
commit 47df3adce5
2 changed files with 95 additions and 6 deletions

View File

@ -456,6 +456,21 @@ export type GetFeedQuery = {
};
};
export type GetVideoMakePercentageIntervalsQueryVariables = Exact<{
videoId: Scalars["ID"]["input"];
}>;
export type GetVideoMakePercentageIntervalsQuery = {
__typename?: "Query";
getVideoMakePercentageIntervals: Array<{
__typename?: "MakePercentageIntervalGQL";
startFrame: number;
endFrame: number;
framesPerSecond: number;
makePercentage: number;
}>;
};
export type GetShotsQueryVariables = Exact<{
filterInput?: InputMaybe<FilterInput>;
includeCueObjectDistance?: Scalars["Boolean"]["input"];
@ -721,6 +736,82 @@ export type GetFeedQueryResult = Apollo.QueryResult<
GetFeedQuery,
GetFeedQueryVariables
>;
export const GetVideoMakePercentageIntervalsDocument = gql`
query GetVideoMakePercentageIntervals($videoId: ID!) {
getVideoMakePercentageIntervals(videoId: $videoId) {
startFrame
endFrame
framesPerSecond
makePercentage
}
}
`;
/**
* __useGetVideoMakePercentageIntervalsQuery__
*
* To run a query within a React component, call `useGetVideoMakePercentageIntervalsQuery` and pass it any options that fit your needs.
* When your component renders, `useGetVideoMakePercentageIntervalsQuery` 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 } = useGetVideoMakePercentageIntervalsQuery({
* variables: {
* videoId: // value for 'videoId'
* },
* });
*/
export function useGetVideoMakePercentageIntervalsQuery(
baseOptions: Apollo.QueryHookOptions<
GetVideoMakePercentageIntervalsQuery,
GetVideoMakePercentageIntervalsQueryVariables
>,
) {
const options = { ...defaultOptions, ...baseOptions };
return Apollo.useQuery<
GetVideoMakePercentageIntervalsQuery,
GetVideoMakePercentageIntervalsQueryVariables
>(GetVideoMakePercentageIntervalsDocument, options);
}
export function useGetVideoMakePercentageIntervalsLazyQuery(
baseOptions?: Apollo.LazyQueryHookOptions<
GetVideoMakePercentageIntervalsQuery,
GetVideoMakePercentageIntervalsQueryVariables
>,
) {
const options = { ...defaultOptions, ...baseOptions };
return Apollo.useLazyQuery<
GetVideoMakePercentageIntervalsQuery,
GetVideoMakePercentageIntervalsQueryVariables
>(GetVideoMakePercentageIntervalsDocument, options);
}
export function useGetVideoMakePercentageIntervalsSuspenseQuery(
baseOptions?: Apollo.SuspenseQueryHookOptions<
GetVideoMakePercentageIntervalsQuery,
GetVideoMakePercentageIntervalsQueryVariables
>,
) {
const options = { ...defaultOptions, ...baseOptions };
return Apollo.useSuspenseQuery<
GetVideoMakePercentageIntervalsQuery,
GetVideoMakePercentageIntervalsQueryVariables
>(GetVideoMakePercentageIntervalsDocument, options);
}
export type GetVideoMakePercentageIntervalsQueryHookResult = ReturnType<
typeof useGetVideoMakePercentageIntervalsQuery
>;
export type GetVideoMakePercentageIntervalsLazyQueryHookResult = ReturnType<
typeof useGetVideoMakePercentageIntervalsLazyQuery
>;
export type GetVideoMakePercentageIntervalsSuspenseQueryHookResult = ReturnType<
typeof useGetVideoMakePercentageIntervalsSuspenseQuery
>;
export type GetVideoMakePercentageIntervalsQueryResult = Apollo.QueryResult<
GetVideoMakePercentageIntervalsQuery,
GetVideoMakePercentageIntervalsQueryVariables
>;
export const GetShotsDocument = gql`
query GetShots(
$filterInput: FilterInput

View File

@ -1,10 +1,8 @@
query GetVideoMakePercentageIntervals($videoId: ID!) {
getVideoMakePercentageIntervals(videoId: $videoId) {
makePercentageIntervals {
startFrame
endFrame
framesPerSecond
makePercentage
}
startFrame
endFrame
framesPerSecond
makePercentage
}
}