Compare commits
8 Commits
dean/feed-
...
dean/add-f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5fbc134c42 | ||
| f67288d387 | |||
|
|
71425a22a6 | ||
| 47339caa74 | |||
| 3c8be1d647 | |||
| 09267529cd | |||
| 2b48ec48d5 | |||
|
|
93bf341c0f |
@@ -3535,6 +3535,7 @@ export type GetAggregatedShotMetricsQuery = {
|
||||
__typename?: "TargetMetricsGQL";
|
||||
count: number;
|
||||
makePercentage?: number | null;
|
||||
averageDifficulty?: number | null;
|
||||
};
|
||||
}>;
|
||||
};
|
||||
@@ -5386,6 +5387,8 @@ export type GetUserQuery = {
|
||||
updatedAt?: any | null;
|
||||
videosPrivateByDefault?: boolean | null;
|
||||
agreesToMarketing?: boolean | null;
|
||||
following?: Array<{ __typename?: "UserGQL"; id: number }> | null;
|
||||
followers?: Array<{ __typename?: "UserGQL"; id: number }> | null;
|
||||
} | null;
|
||||
};
|
||||
|
||||
@@ -5685,6 +5688,7 @@ export type GetVideoDetailsQuery = {
|
||||
endTime?: any | null;
|
||||
makePercentage: number;
|
||||
medianRun?: number | null;
|
||||
averageDifficulty?: number | null;
|
||||
startTime?: any | null;
|
||||
totalShots: number;
|
||||
totalShotsMade: number;
|
||||
@@ -5950,6 +5954,19 @@ export type GetMedianRunForVideoQuery = {
|
||||
getVideo: { __typename?: "VideoGQL"; id: number; medianRun?: number | null };
|
||||
};
|
||||
|
||||
export type GetAverageDifficultyForVideoQueryVariables = Exact<{
|
||||
videoId: Scalars["Int"]["input"];
|
||||
}>;
|
||||
|
||||
export type GetAverageDifficultyForVideoQuery = {
|
||||
__typename?: "Query";
|
||||
getVideo: {
|
||||
__typename?: "VideoGQL";
|
||||
id: number;
|
||||
averageDifficulty?: number | null;
|
||||
};
|
||||
};
|
||||
|
||||
export type StreamWithEndFramesFragment = {
|
||||
__typename?: "UploadStreamGQL";
|
||||
id: string;
|
||||
@@ -6693,6 +6710,7 @@ export const GetAggregatedShotMetricsDocument = gql`
|
||||
targetMetrics {
|
||||
count
|
||||
makePercentage
|
||||
averageDifficulty
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -10878,6 +10896,12 @@ export const GetUserDocument = gql`
|
||||
query GetUser($userId: Int!) {
|
||||
getUser(userId: $userId) {
|
||||
...UserFragment
|
||||
following {
|
||||
id
|
||||
}
|
||||
followers {
|
||||
id
|
||||
}
|
||||
}
|
||||
}
|
||||
${UserFragmentFragmentDoc}
|
||||
@@ -11957,6 +11981,7 @@ export const GetVideoDetailsDocument = gql`
|
||||
endTime
|
||||
makePercentage
|
||||
medianRun
|
||||
averageDifficulty
|
||||
startTime
|
||||
totalShots
|
||||
totalShotsMade
|
||||
@@ -12610,6 +12635,80 @@ export type GetMedianRunForVideoQueryResult = Apollo.QueryResult<
|
||||
GetMedianRunForVideoQuery,
|
||||
GetMedianRunForVideoQueryVariables
|
||||
>;
|
||||
export const GetAverageDifficultyForVideoDocument = gql`
|
||||
query GetAverageDifficultyForVideo($videoId: Int!) {
|
||||
getVideo(videoId: $videoId) {
|
||||
id
|
||||
averageDifficulty
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
/**
|
||||
* __useGetAverageDifficultyForVideoQuery__
|
||||
*
|
||||
* To run a query within a React component, call `useGetAverageDifficultyForVideoQuery` and pass it any options that fit your needs.
|
||||
* When your component renders, `useGetAverageDifficultyForVideoQuery` 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 } = useGetAverageDifficultyForVideoQuery({
|
||||
* variables: {
|
||||
* videoId: // value for 'videoId'
|
||||
* },
|
||||
* });
|
||||
*/
|
||||
export function useGetAverageDifficultyForVideoQuery(
|
||||
baseOptions: Apollo.QueryHookOptions<
|
||||
GetAverageDifficultyForVideoQuery,
|
||||
GetAverageDifficultyForVideoQueryVariables
|
||||
>,
|
||||
) {
|
||||
const options = { ...defaultOptions, ...baseOptions };
|
||||
return Apollo.useQuery<
|
||||
GetAverageDifficultyForVideoQuery,
|
||||
GetAverageDifficultyForVideoQueryVariables
|
||||
>(GetAverageDifficultyForVideoDocument, options);
|
||||
}
|
||||
export function useGetAverageDifficultyForVideoLazyQuery(
|
||||
baseOptions?: Apollo.LazyQueryHookOptions<
|
||||
GetAverageDifficultyForVideoQuery,
|
||||
GetAverageDifficultyForVideoQueryVariables
|
||||
>,
|
||||
) {
|
||||
const options = { ...defaultOptions, ...baseOptions };
|
||||
return Apollo.useLazyQuery<
|
||||
GetAverageDifficultyForVideoQuery,
|
||||
GetAverageDifficultyForVideoQueryVariables
|
||||
>(GetAverageDifficultyForVideoDocument, options);
|
||||
}
|
||||
export function useGetAverageDifficultyForVideoSuspenseQuery(
|
||||
baseOptions?: Apollo.SuspenseQueryHookOptions<
|
||||
GetAverageDifficultyForVideoQuery,
|
||||
GetAverageDifficultyForVideoQueryVariables
|
||||
>,
|
||||
) {
|
||||
const options = { ...defaultOptions, ...baseOptions };
|
||||
return Apollo.useSuspenseQuery<
|
||||
GetAverageDifficultyForVideoQuery,
|
||||
GetAverageDifficultyForVideoQueryVariables
|
||||
>(GetAverageDifficultyForVideoDocument, options);
|
||||
}
|
||||
export type GetAverageDifficultyForVideoQueryHookResult = ReturnType<
|
||||
typeof useGetAverageDifficultyForVideoQuery
|
||||
>;
|
||||
export type GetAverageDifficultyForVideoLazyQueryHookResult = ReturnType<
|
||||
typeof useGetAverageDifficultyForVideoLazyQuery
|
||||
>;
|
||||
export type GetAverageDifficultyForVideoSuspenseQueryHookResult = ReturnType<
|
||||
typeof useGetAverageDifficultyForVideoSuspenseQuery
|
||||
>;
|
||||
export type GetAverageDifficultyForVideoQueryResult = Apollo.QueryResult<
|
||||
GetAverageDifficultyForVideoQuery,
|
||||
GetAverageDifficultyForVideoQueryVariables
|
||||
>;
|
||||
export const GetVideoForClipTimesDocument = gql`
|
||||
query GetVideoForClipTimes($videoId: Int!) {
|
||||
getVideo(videoId: $videoId) {
|
||||
|
||||
@@ -7,6 +7,7 @@ query GetAggregatedShotMetrics($aggregateInput: AggregateInputGQL!) {
|
||||
targetMetrics {
|
||||
count
|
||||
makePercentage
|
||||
averageDifficulty
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,6 +34,12 @@ query getLoggedInUser {
|
||||
query GetUser($userId: Int!) {
|
||||
getUser(userId: $userId) {
|
||||
...UserFragment
|
||||
following {
|
||||
id
|
||||
}
|
||||
followers {
|
||||
id
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -61,6 +61,7 @@ query GetVideoDetails($videoId: Int!) {
|
||||
endTime
|
||||
makePercentage
|
||||
medianRun
|
||||
averageDifficulty
|
||||
startTime
|
||||
totalShots
|
||||
totalShotsMade
|
||||
@@ -211,6 +212,13 @@ query GetMedianRunForVideo($videoId: Int!) {
|
||||
}
|
||||
}
|
||||
|
||||
query GetAverageDifficultyForVideo($videoId: Int!) {
|
||||
getVideo(videoId: $videoId) {
|
||||
id
|
||||
averageDifficulty
|
||||
}
|
||||
}
|
||||
|
||||
fragment StreamWithEndFrames on UploadStreamGQL {
|
||||
id
|
||||
streamSegmentType
|
||||
|
||||
@@ -1108,7 +1108,7 @@ type AddShotAnnotationReturn {
|
||||
}
|
||||
|
||||
union SuccessfulAddAddShotAnnotationErrors =
|
||||
| SuccessfulAdd
|
||||
SuccessfulAdd
|
||||
| AddShotAnnotationErrors
|
||||
|
||||
type SuccessfulAdd {
|
||||
@@ -1120,7 +1120,7 @@ type AddShotAnnotationErrors {
|
||||
}
|
||||
|
||||
union DoesNotOwnShotErrOtherErrorNeedsNote =
|
||||
| DoesNotOwnShotErr
|
||||
DoesNotOwnShotErr
|
||||
| OtherErrorNeedsNote
|
||||
|
||||
type DoesNotOwnShotErr {
|
||||
@@ -1163,7 +1163,7 @@ type GetProfileUploadLinkReturn {
|
||||
}
|
||||
|
||||
union UploadLinkGetProfileUploadLinkErrors =
|
||||
| UploadLink
|
||||
UploadLink
|
||||
| GetProfileUploadLinkErrors
|
||||
|
||||
type UploadLink {
|
||||
@@ -1239,7 +1239,7 @@ type GetUploadLinkErrors {
|
||||
}
|
||||
|
||||
union MustHaveSetForUploadLinkErrSegmentAlreadyUploadedErrProcessingFailedErrNoInitForChunkedUploadErrTooManyProfileImageUploadsErrInitUploadAlreadyCompletedErrTooManyInitUploadsErr =
|
||||
| MustHaveSetForUploadLinkErr
|
||||
MustHaveSetForUploadLinkErr
|
||||
| SegmentAlreadyUploadedErr
|
||||
| ProcessingFailedErr
|
||||
| NoInitForChunkedUploadErr
|
||||
|
||||
Reference in New Issue
Block a user