|
|
|
|
@@ -79,12 +79,6 @@ export enum AlignedIntervalEnum {
|
|
|
|
|
Year = "YEAR",
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type AuthHandoffTokenGql = {
|
|
|
|
|
__typename?: "AuthHandoffTokenGQL";
|
|
|
|
|
expiresInSeconds: Scalars["Int"]["output"];
|
|
|
|
|
token: Scalars["String"]["output"];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type BankFeaturesGql = {
|
|
|
|
|
__typename?: "BankFeaturesGQL";
|
|
|
|
|
bankAngle: Scalars["Float"]["output"];
|
|
|
|
|
@@ -146,21 +140,6 @@ export type BucketSetInputGql = {
|
|
|
|
|
feature: Scalars["String"]["input"];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type CancellationFeedbackMetadataInput = {
|
|
|
|
|
appVersion?: InputMaybe<Scalars["String"]["input"]>;
|
|
|
|
|
gitRevision?: InputMaybe<Scalars["String"]["input"]>;
|
|
|
|
|
platform?: InputMaybe<Scalars["String"]["input"]>;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export enum CancellationReasonEnum {
|
|
|
|
|
DataNotAccurate = "DATA_NOT_ACCURATE",
|
|
|
|
|
DontPlayEnough = "DONT_PLAY_ENOUGH",
|
|
|
|
|
MissingFeatures = "MISSING_FEATURES",
|
|
|
|
|
Other = "OTHER",
|
|
|
|
|
TechnicalIssues = "TECHNICAL_ISSUES",
|
|
|
|
|
TooExpensive = "TOO_EXPENSIVE",
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export type Challenge = {
|
|
|
|
|
__typename?: "Challenge";
|
|
|
|
|
createdAt: Scalars["DateTime"]["output"];
|
|
|
|
|
@@ -324,12 +303,6 @@ export type EnumAggregation = {
|
|
|
|
|
feature: Scalars["String"]["input"];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type ExchangeAuthHandoffResultGql = {
|
|
|
|
|
__typename?: "ExchangeAuthHandoffResultGQL";
|
|
|
|
|
customToken: Scalars["String"]["output"];
|
|
|
|
|
userId: Scalars["Int"]["output"];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type FilterInput =
|
|
|
|
|
| {
|
|
|
|
|
andFilters: Array<FilterInput>;
|
|
|
|
|
@@ -2354,7 +2327,6 @@ export type Mutation = {
|
|
|
|
|
blockUser: Scalars["Boolean"]["output"];
|
|
|
|
|
cancelSubscription: UserSubscriptionStatusGql;
|
|
|
|
|
commentOnVideo: Scalars["Boolean"]["output"];
|
|
|
|
|
createAuthHandoffToken: AuthHandoffTokenGql;
|
|
|
|
|
createBucketSet: BucketSetGql;
|
|
|
|
|
createChallenge: Challenge;
|
|
|
|
|
createRuleSet: RuleSet;
|
|
|
|
|
@@ -2372,7 +2344,6 @@ export type Mutation = {
|
|
|
|
|
editUploadStream: Scalars["Boolean"]["output"];
|
|
|
|
|
editUser: UserGql;
|
|
|
|
|
ensureStripeCustomerExists: UserGql;
|
|
|
|
|
exchangeAuthHandoffToken: ExchangeAuthHandoffResultGql;
|
|
|
|
|
findPrerecordTableLayout?: Maybe<HomographyInfoGql>;
|
|
|
|
|
followUser: UserGql;
|
|
|
|
|
getHlsInitUploadLink: GetUploadLinkReturn;
|
|
|
|
|
@@ -2390,7 +2361,6 @@ export type Mutation = {
|
|
|
|
|
setLoggerLevel: Scalars["Boolean"]["output"];
|
|
|
|
|
setSegmentDuration: Scalars["Boolean"]["output"];
|
|
|
|
|
startChallenge: ChallengeEntry;
|
|
|
|
|
submitCancellationFeedback: Scalars["Boolean"]["output"];
|
|
|
|
|
submitChallengeEntry: ChallengeEntry;
|
|
|
|
|
undismissChallenge: Scalars["Boolean"]["output"];
|
|
|
|
|
unfollowUser: UserGql;
|
|
|
|
|
@@ -2493,10 +2463,6 @@ export type MutationEditUserArgs = {
|
|
|
|
|
input: EditUserInputGql;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type MutationExchangeAuthHandoffTokenArgs = {
|
|
|
|
|
token: Scalars["String"]["input"];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type MutationFindPrerecordTableLayoutArgs = {
|
|
|
|
|
b64Image: Scalars["String"]["input"];
|
|
|
|
|
videoId: Scalars["Int"]["input"];
|
|
|
|
|
@@ -2571,12 +2537,6 @@ export type MutationStartChallengeArgs = {
|
|
|
|
|
challengeId: Scalars["ID"]["input"];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type MutationSubmitCancellationFeedbackArgs = {
|
|
|
|
|
feedback?: InputMaybe<Scalars["String"]["input"]>;
|
|
|
|
|
metadata?: InputMaybe<CancellationFeedbackMetadataInput>;
|
|
|
|
|
reasons?: InputMaybe<Array<CancellationReasonEnum>>;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type MutationSubmitChallengeEntryArgs = {
|
|
|
|
|
entryId: Scalars["ID"]["input"];
|
|
|
|
|
videoId: Scalars["ID"]["input"];
|
|
|
|
|
@@ -3575,6 +3535,7 @@ export type GetAggregatedShotMetricsQuery = {
|
|
|
|
|
__typename?: "TargetMetricsGQL";
|
|
|
|
|
count: number;
|
|
|
|
|
makePercentage?: number | null;
|
|
|
|
|
averageDifficulty?: number | null;
|
|
|
|
|
};
|
|
|
|
|
}>;
|
|
|
|
|
};
|
|
|
|
|
@@ -4057,6 +4018,7 @@ export type GetFeedQuery = {
|
|
|
|
|
private: boolean;
|
|
|
|
|
elapsedTime?: number | null;
|
|
|
|
|
tableSize: number;
|
|
|
|
|
pocketSize?: number | null;
|
|
|
|
|
owner?: {
|
|
|
|
|
__typename?: "UserGQL";
|
|
|
|
|
id: number;
|
|
|
|
|
@@ -4158,6 +4120,7 @@ export type VideoCardFieldsFragment = {
|
|
|
|
|
private: boolean;
|
|
|
|
|
elapsedTime?: number | null;
|
|
|
|
|
tableSize: number;
|
|
|
|
|
pocketSize?: number | null;
|
|
|
|
|
owner?: {
|
|
|
|
|
__typename?: "UserGQL";
|
|
|
|
|
id: number;
|
|
|
|
|
@@ -4255,6 +4218,7 @@ export type GetVideoFeedQuery = {
|
|
|
|
|
private: boolean;
|
|
|
|
|
elapsedTime?: number | null;
|
|
|
|
|
tableSize: number;
|
|
|
|
|
pocketSize?: number | null;
|
|
|
|
|
owner?: {
|
|
|
|
|
__typename?: "UserGQL";
|
|
|
|
|
id: number;
|
|
|
|
|
@@ -5423,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;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
@@ -5722,6 +5688,7 @@ export type GetVideoDetailsQuery = {
|
|
|
|
|
endTime?: any | null;
|
|
|
|
|
makePercentage: number;
|
|
|
|
|
medianRun?: number | null;
|
|
|
|
|
averageDifficulty?: number | null;
|
|
|
|
|
startTime?: any | null;
|
|
|
|
|
totalShots: number;
|
|
|
|
|
totalShotsMade: number;
|
|
|
|
|
@@ -5987,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;
|
|
|
|
|
@@ -6422,6 +6402,7 @@ export const VideoCardFieldsFragmentDoc = gql`
|
|
|
|
|
streamSegmentType
|
|
|
|
|
}
|
|
|
|
|
tableSize
|
|
|
|
|
pocketSize
|
|
|
|
|
tags {
|
|
|
|
|
tagClasses {
|
|
|
|
|
name
|
|
|
|
|
@@ -6729,6 +6710,7 @@ export const GetAggregatedShotMetricsDocument = gql`
|
|
|
|
|
targetMetrics {
|
|
|
|
|
count
|
|
|
|
|
makePercentage
|
|
|
|
|
averageDifficulty
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@@ -10914,6 +10896,12 @@ export const GetUserDocument = gql`
|
|
|
|
|
query GetUser($userId: Int!) {
|
|
|
|
|
getUser(userId: $userId) {
|
|
|
|
|
...UserFragment
|
|
|
|
|
following {
|
|
|
|
|
id
|
|
|
|
|
}
|
|
|
|
|
followers {
|
|
|
|
|
id
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
${UserFragmentFragmentDoc}
|
|
|
|
|
@@ -11993,6 +11981,7 @@ export const GetVideoDetailsDocument = gql`
|
|
|
|
|
endTime
|
|
|
|
|
makePercentage
|
|
|
|
|
medianRun
|
|
|
|
|
averageDifficulty
|
|
|
|
|
startTime
|
|
|
|
|
totalShots
|
|
|
|
|
totalShotsMade
|
|
|
|
|
@@ -12646,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) {
|
|
|
|
|
|