Compare commits
No commits in common. "1cc0660a93a7753565bf28126898fa18519f134a" and "9ee4d43c892b5d24703bcb87ff39ae52b5b13344" have entirely different histories.
1cc0660a93
...
9ee4d43c89
251
src/index.tsx
251
src/index.tsx
@ -1044,36 +1044,6 @@ export type GetVideoQuery = {
|
||||
};
|
||||
};
|
||||
|
||||
export type GetAverageTimePerShotForVideoQueryVariables = Exact<{
|
||||
videoId: Scalars["Int"]["input"];
|
||||
}>;
|
||||
|
||||
export type GetAverageTimePerShotForVideoQuery = {
|
||||
__typename?: "Query";
|
||||
getVideo: {
|
||||
__typename?: "VideoGQL";
|
||||
averageTimeBetweenShots?: number | null;
|
||||
};
|
||||
};
|
||||
|
||||
export type GetElapsedTimeForVideoQueryVariables = Exact<{
|
||||
videoId: Scalars["Int"]["input"];
|
||||
}>;
|
||||
|
||||
export type GetElapsedTimeForVideoQuery = {
|
||||
__typename?: "Query";
|
||||
getVideo: { __typename?: "VideoGQL"; elapsedTime?: number | null };
|
||||
};
|
||||
|
||||
export type GetMedianRunForVideoQueryVariables = Exact<{
|
||||
videoId: Scalars["Int"]["input"];
|
||||
}>;
|
||||
|
||||
export type GetMedianRunForVideoQuery = {
|
||||
__typename?: "Query";
|
||||
getVideo: { __typename?: "VideoGQL"; medianRun?: number | null };
|
||||
};
|
||||
|
||||
export type CreateUploadStreamMutationVariables = Exact<{
|
||||
videoMetadataInput: VideoMetadataInput;
|
||||
}>;
|
||||
@ -2145,9 +2115,11 @@ export const GetVideoDetailsDocument = gql`
|
||||
elapsedTime
|
||||
endTime
|
||||
makePercentage
|
||||
makePercentage
|
||||
medianRun
|
||||
startTime
|
||||
totalShots
|
||||
totalShots
|
||||
totalShotsMade
|
||||
createdAt
|
||||
updatedAt
|
||||
@ -2391,225 +2363,6 @@ export type GetVideoQueryResult = Apollo.QueryResult<
|
||||
GetVideoQuery,
|
||||
GetVideoQueryVariables
|
||||
>;
|
||||
export const GetAverageTimePerShotForVideoDocument = gql`
|
||||
query GetAverageTimePerShotForVideo($videoId: Int!) {
|
||||
getVideo(videoId: $videoId) {
|
||||
averageTimeBetweenShots
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
/**
|
||||
* __useGetAverageTimePerShotForVideoQuery__
|
||||
*
|
||||
* To run a query within a React component, call `useGetAverageTimePerShotForVideoQuery` and pass it any options that fit your needs.
|
||||
* When your component renders, `useGetAverageTimePerShotForVideoQuery` 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 } = useGetAverageTimePerShotForVideoQuery({
|
||||
* variables: {
|
||||
* videoId: // value for 'videoId'
|
||||
* },
|
||||
* });
|
||||
*/
|
||||
export function useGetAverageTimePerShotForVideoQuery(
|
||||
baseOptions: Apollo.QueryHookOptions<
|
||||
GetAverageTimePerShotForVideoQuery,
|
||||
GetAverageTimePerShotForVideoQueryVariables
|
||||
>,
|
||||
) {
|
||||
const options = { ...defaultOptions, ...baseOptions };
|
||||
return Apollo.useQuery<
|
||||
GetAverageTimePerShotForVideoQuery,
|
||||
GetAverageTimePerShotForVideoQueryVariables
|
||||
>(GetAverageTimePerShotForVideoDocument, options);
|
||||
}
|
||||
export function useGetAverageTimePerShotForVideoLazyQuery(
|
||||
baseOptions?: Apollo.LazyQueryHookOptions<
|
||||
GetAverageTimePerShotForVideoQuery,
|
||||
GetAverageTimePerShotForVideoQueryVariables
|
||||
>,
|
||||
) {
|
||||
const options = { ...defaultOptions, ...baseOptions };
|
||||
return Apollo.useLazyQuery<
|
||||
GetAverageTimePerShotForVideoQuery,
|
||||
GetAverageTimePerShotForVideoQueryVariables
|
||||
>(GetAverageTimePerShotForVideoDocument, options);
|
||||
}
|
||||
export function useGetAverageTimePerShotForVideoSuspenseQuery(
|
||||
baseOptions?: Apollo.SuspenseQueryHookOptions<
|
||||
GetAverageTimePerShotForVideoQuery,
|
||||
GetAverageTimePerShotForVideoQueryVariables
|
||||
>,
|
||||
) {
|
||||
const options = { ...defaultOptions, ...baseOptions };
|
||||
return Apollo.useSuspenseQuery<
|
||||
GetAverageTimePerShotForVideoQuery,
|
||||
GetAverageTimePerShotForVideoQueryVariables
|
||||
>(GetAverageTimePerShotForVideoDocument, options);
|
||||
}
|
||||
export type GetAverageTimePerShotForVideoQueryHookResult = ReturnType<
|
||||
typeof useGetAverageTimePerShotForVideoQuery
|
||||
>;
|
||||
export type GetAverageTimePerShotForVideoLazyQueryHookResult = ReturnType<
|
||||
typeof useGetAverageTimePerShotForVideoLazyQuery
|
||||
>;
|
||||
export type GetAverageTimePerShotForVideoSuspenseQueryHookResult = ReturnType<
|
||||
typeof useGetAverageTimePerShotForVideoSuspenseQuery
|
||||
>;
|
||||
export type GetAverageTimePerShotForVideoQueryResult = Apollo.QueryResult<
|
||||
GetAverageTimePerShotForVideoQuery,
|
||||
GetAverageTimePerShotForVideoQueryVariables
|
||||
>;
|
||||
export const GetElapsedTimeForVideoDocument = gql`
|
||||
query GetElapsedTimeForVideo($videoId: Int!) {
|
||||
getVideo(videoId: $videoId) {
|
||||
elapsedTime
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
/**
|
||||
* __useGetElapsedTimeForVideoQuery__
|
||||
*
|
||||
* To run a query within a React component, call `useGetElapsedTimeForVideoQuery` and pass it any options that fit your needs.
|
||||
* When your component renders, `useGetElapsedTimeForVideoQuery` 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 } = useGetElapsedTimeForVideoQuery({
|
||||
* variables: {
|
||||
* videoId: // value for 'videoId'
|
||||
* },
|
||||
* });
|
||||
*/
|
||||
export function useGetElapsedTimeForVideoQuery(
|
||||
baseOptions: Apollo.QueryHookOptions<
|
||||
GetElapsedTimeForVideoQuery,
|
||||
GetElapsedTimeForVideoQueryVariables
|
||||
>,
|
||||
) {
|
||||
const options = { ...defaultOptions, ...baseOptions };
|
||||
return Apollo.useQuery<
|
||||
GetElapsedTimeForVideoQuery,
|
||||
GetElapsedTimeForVideoQueryVariables
|
||||
>(GetElapsedTimeForVideoDocument, options);
|
||||
}
|
||||
export function useGetElapsedTimeForVideoLazyQuery(
|
||||
baseOptions?: Apollo.LazyQueryHookOptions<
|
||||
GetElapsedTimeForVideoQuery,
|
||||
GetElapsedTimeForVideoQueryVariables
|
||||
>,
|
||||
) {
|
||||
const options = { ...defaultOptions, ...baseOptions };
|
||||
return Apollo.useLazyQuery<
|
||||
GetElapsedTimeForVideoQuery,
|
||||
GetElapsedTimeForVideoQueryVariables
|
||||
>(GetElapsedTimeForVideoDocument, options);
|
||||
}
|
||||
export function useGetElapsedTimeForVideoSuspenseQuery(
|
||||
baseOptions?: Apollo.SuspenseQueryHookOptions<
|
||||
GetElapsedTimeForVideoQuery,
|
||||
GetElapsedTimeForVideoQueryVariables
|
||||
>,
|
||||
) {
|
||||
const options = { ...defaultOptions, ...baseOptions };
|
||||
return Apollo.useSuspenseQuery<
|
||||
GetElapsedTimeForVideoQuery,
|
||||
GetElapsedTimeForVideoQueryVariables
|
||||
>(GetElapsedTimeForVideoDocument, options);
|
||||
}
|
||||
export type GetElapsedTimeForVideoQueryHookResult = ReturnType<
|
||||
typeof useGetElapsedTimeForVideoQuery
|
||||
>;
|
||||
export type GetElapsedTimeForVideoLazyQueryHookResult = ReturnType<
|
||||
typeof useGetElapsedTimeForVideoLazyQuery
|
||||
>;
|
||||
export type GetElapsedTimeForVideoSuspenseQueryHookResult = ReturnType<
|
||||
typeof useGetElapsedTimeForVideoSuspenseQuery
|
||||
>;
|
||||
export type GetElapsedTimeForVideoQueryResult = Apollo.QueryResult<
|
||||
GetElapsedTimeForVideoQuery,
|
||||
GetElapsedTimeForVideoQueryVariables
|
||||
>;
|
||||
export const GetMedianRunForVideoDocument = gql`
|
||||
query GetMedianRunForVideo($videoId: Int!) {
|
||||
getVideo(videoId: $videoId) {
|
||||
medianRun
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
/**
|
||||
* __useGetMedianRunForVideoQuery__
|
||||
*
|
||||
* To run a query within a React component, call `useGetMedianRunForVideoQuery` and pass it any options that fit your needs.
|
||||
* When your component renders, `useGetMedianRunForVideoQuery` 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 } = useGetMedianRunForVideoQuery({
|
||||
* variables: {
|
||||
* videoId: // value for 'videoId'
|
||||
* },
|
||||
* });
|
||||
*/
|
||||
export function useGetMedianRunForVideoQuery(
|
||||
baseOptions: Apollo.QueryHookOptions<
|
||||
GetMedianRunForVideoQuery,
|
||||
GetMedianRunForVideoQueryVariables
|
||||
>,
|
||||
) {
|
||||
const options = { ...defaultOptions, ...baseOptions };
|
||||
return Apollo.useQuery<
|
||||
GetMedianRunForVideoQuery,
|
||||
GetMedianRunForVideoQueryVariables
|
||||
>(GetMedianRunForVideoDocument, options);
|
||||
}
|
||||
export function useGetMedianRunForVideoLazyQuery(
|
||||
baseOptions?: Apollo.LazyQueryHookOptions<
|
||||
GetMedianRunForVideoQuery,
|
||||
GetMedianRunForVideoQueryVariables
|
||||
>,
|
||||
) {
|
||||
const options = { ...defaultOptions, ...baseOptions };
|
||||
return Apollo.useLazyQuery<
|
||||
GetMedianRunForVideoQuery,
|
||||
GetMedianRunForVideoQueryVariables
|
||||
>(GetMedianRunForVideoDocument, options);
|
||||
}
|
||||
export function useGetMedianRunForVideoSuspenseQuery(
|
||||
baseOptions?: Apollo.SuspenseQueryHookOptions<
|
||||
GetMedianRunForVideoQuery,
|
||||
GetMedianRunForVideoQueryVariables
|
||||
>,
|
||||
) {
|
||||
const options = { ...defaultOptions, ...baseOptions };
|
||||
return Apollo.useSuspenseQuery<
|
||||
GetMedianRunForVideoQuery,
|
||||
GetMedianRunForVideoQueryVariables
|
||||
>(GetMedianRunForVideoDocument, options);
|
||||
}
|
||||
export type GetMedianRunForVideoQueryHookResult = ReturnType<
|
||||
typeof useGetMedianRunForVideoQuery
|
||||
>;
|
||||
export type GetMedianRunForVideoLazyQueryHookResult = ReturnType<
|
||||
typeof useGetMedianRunForVideoLazyQuery
|
||||
>;
|
||||
export type GetMedianRunForVideoSuspenseQueryHookResult = ReturnType<
|
||||
typeof useGetMedianRunForVideoSuspenseQuery
|
||||
>;
|
||||
export type GetMedianRunForVideoQueryResult = Apollo.QueryResult<
|
||||
GetMedianRunForVideoQuery,
|
||||
GetMedianRunForVideoQueryVariables
|
||||
>;
|
||||
export const CreateUploadStreamDocument = gql`
|
||||
mutation CreateUploadStream($videoMetadataInput: VideoMetadataInput!) {
|
||||
createUploadStream(videoMetadata: $videoMetadataInput) {
|
||||
|
@ -91,9 +91,11 @@ query GetVideoDetails($videoId: Int!) {
|
||||
elapsedTime
|
||||
endTime
|
||||
makePercentage
|
||||
makePercentage
|
||||
medianRun
|
||||
startTime
|
||||
totalShots
|
||||
totalShots
|
||||
totalShotsMade
|
||||
createdAt
|
||||
updatedAt
|
||||
@ -146,19 +148,3 @@ query GetVideo($videoId: Int!) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
query GetAverageTimePerShotForVideo($videoId: Int!) {
|
||||
getVideo(videoId: $videoId) {
|
||||
averageTimeBetweenShots
|
||||
}
|
||||
}
|
||||
query GetElapsedTimeForVideo($videoId: Int!) {
|
||||
getVideo(videoId: $videoId) {
|
||||
elapsedTime
|
||||
}
|
||||
}
|
||||
query GetMedianRunForVideo($videoId: Int!) {
|
||||
getVideo(videoId: $videoId) {
|
||||
medianRun
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user