|
|
|
|
@@ -140,6 +140,21 @@ 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"];
|
|
|
|
|
@@ -2361,6 +2376,7 @@ 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;
|
|
|
|
|
@@ -2537,6 +2553,12 @@ 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"];
|
|
|
|
|
@@ -3535,6 +3557,7 @@ export type GetAggregatedShotMetricsQuery = {
|
|
|
|
|
__typename?: "TargetMetricsGQL";
|
|
|
|
|
count: number;
|
|
|
|
|
makePercentage?: number | null;
|
|
|
|
|
averageDifficulty?: number | null;
|
|
|
|
|
};
|
|
|
|
|
}>;
|
|
|
|
|
};
|
|
|
|
|
@@ -4017,6 +4040,7 @@ export type GetFeedQuery = {
|
|
|
|
|
private: boolean;
|
|
|
|
|
elapsedTime?: number | null;
|
|
|
|
|
tableSize: number;
|
|
|
|
|
pocketSize?: number | null;
|
|
|
|
|
owner?: {
|
|
|
|
|
__typename?: "UserGQL";
|
|
|
|
|
id: number;
|
|
|
|
|
@@ -4118,6 +4142,7 @@ export type VideoCardFieldsFragment = {
|
|
|
|
|
private: boolean;
|
|
|
|
|
elapsedTime?: number | null;
|
|
|
|
|
tableSize: number;
|
|
|
|
|
pocketSize?: number | null;
|
|
|
|
|
owner?: {
|
|
|
|
|
__typename?: "UserGQL";
|
|
|
|
|
id: number;
|
|
|
|
|
@@ -4215,6 +4240,7 @@ export type GetVideoFeedQuery = {
|
|
|
|
|
private: boolean;
|
|
|
|
|
elapsedTime?: number | null;
|
|
|
|
|
tableSize: number;
|
|
|
|
|
pocketSize?: number | null;
|
|
|
|
|
owner?: {
|
|
|
|
|
__typename?: "UserGQL";
|
|
|
|
|
id: number;
|
|
|
|
|
@@ -4703,6 +4729,17 @@ export type CancelSubscriptionMutation = {
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type SubmitCancellationFeedbackMutationVariables = Exact<{
|
|
|
|
|
reasons?: InputMaybe<Array<CancellationReasonEnum> | CancellationReasonEnum>;
|
|
|
|
|
feedback?: InputMaybe<Scalars["String"]["input"]>;
|
|
|
|
|
metadata?: InputMaybe<CancellationFeedbackMetadataInput>;
|
|
|
|
|
}>;
|
|
|
|
|
|
|
|
|
|
export type SubmitCancellationFeedbackMutation = {
|
|
|
|
|
__typename?: "Mutation";
|
|
|
|
|
submitCancellationFeedback: boolean;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type ReactToVideoMutationVariables = Exact<{
|
|
|
|
|
videoId: Scalars["Int"]["input"];
|
|
|
|
|
reaction?: InputMaybe<ReactionEnum>;
|
|
|
|
|
@@ -5383,6 +5420,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;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
@@ -5682,6 +5721,7 @@ export type GetVideoDetailsQuery = {
|
|
|
|
|
endTime?: any | null;
|
|
|
|
|
makePercentage: number;
|
|
|
|
|
medianRun?: number | null;
|
|
|
|
|
averageDifficulty?: number | null;
|
|
|
|
|
startTime?: any | null;
|
|
|
|
|
totalShots: number;
|
|
|
|
|
totalShotsMade: number;
|
|
|
|
|
@@ -5947,6 +5987,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;
|
|
|
|
|
@@ -6382,6 +6435,7 @@ export const VideoCardFieldsFragmentDoc = gql`
|
|
|
|
|
streamSegmentType
|
|
|
|
|
}
|
|
|
|
|
tableSize
|
|
|
|
|
pocketSize
|
|
|
|
|
tags {
|
|
|
|
|
tagClasses {
|
|
|
|
|
name
|
|
|
|
|
@@ -6689,6 +6743,7 @@ export const GetAggregatedShotMetricsDocument = gql`
|
|
|
|
|
targetMetrics {
|
|
|
|
|
count
|
|
|
|
|
makePercentage
|
|
|
|
|
averageDifficulty
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
@@ -9622,6 +9677,65 @@ export type CancelSubscriptionMutationOptions = Apollo.BaseMutationOptions<
|
|
|
|
|
CancelSubscriptionMutation,
|
|
|
|
|
CancelSubscriptionMutationVariables
|
|
|
|
|
>;
|
|
|
|
|
export const SubmitCancellationFeedbackDocument = gql`
|
|
|
|
|
mutation SubmitCancellationFeedback(
|
|
|
|
|
$reasons: [CancellationReasonEnum!]
|
|
|
|
|
$feedback: String
|
|
|
|
|
$metadata: CancellationFeedbackMetadataInput
|
|
|
|
|
) {
|
|
|
|
|
submitCancellationFeedback(
|
|
|
|
|
reasons: $reasons
|
|
|
|
|
feedback: $feedback
|
|
|
|
|
metadata: $metadata
|
|
|
|
|
)
|
|
|
|
|
}
|
|
|
|
|
`;
|
|
|
|
|
export type SubmitCancellationFeedbackMutationFn = Apollo.MutationFunction<
|
|
|
|
|
SubmitCancellationFeedbackMutation,
|
|
|
|
|
SubmitCancellationFeedbackMutationVariables
|
|
|
|
|
>;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* __useSubmitCancellationFeedbackMutation__
|
|
|
|
|
*
|
|
|
|
|
* To run a mutation, you first call `useSubmitCancellationFeedbackMutation` within a React component and pass it any options that fit your needs.
|
|
|
|
|
* When your component renders, `useSubmitCancellationFeedbackMutation` returns a tuple that includes:
|
|
|
|
|
* - A mutate function that you can call at any time to execute the mutation
|
|
|
|
|
* - An object with fields that represent the current status of the mutation's execution
|
|
|
|
|
*
|
|
|
|
|
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
|
|
|
|
|
*
|
|
|
|
|
* @example
|
|
|
|
|
* const [submitCancellationFeedbackMutation, { data, loading, error }] = useSubmitCancellationFeedbackMutation({
|
|
|
|
|
* variables: {
|
|
|
|
|
* reasons: // value for 'reasons'
|
|
|
|
|
* feedback: // value for 'feedback'
|
|
|
|
|
* metadata: // value for 'metadata'
|
|
|
|
|
* },
|
|
|
|
|
* });
|
|
|
|
|
*/
|
|
|
|
|
export function useSubmitCancellationFeedbackMutation(
|
|
|
|
|
baseOptions?: Apollo.MutationHookOptions<
|
|
|
|
|
SubmitCancellationFeedbackMutation,
|
|
|
|
|
SubmitCancellationFeedbackMutationVariables
|
|
|
|
|
>,
|
|
|
|
|
) {
|
|
|
|
|
const options = { ...defaultOptions, ...baseOptions };
|
|
|
|
|
return Apollo.useMutation<
|
|
|
|
|
SubmitCancellationFeedbackMutation,
|
|
|
|
|
SubmitCancellationFeedbackMutationVariables
|
|
|
|
|
>(SubmitCancellationFeedbackDocument, options);
|
|
|
|
|
}
|
|
|
|
|
export type SubmitCancellationFeedbackMutationHookResult = ReturnType<
|
|
|
|
|
typeof useSubmitCancellationFeedbackMutation
|
|
|
|
|
>;
|
|
|
|
|
export type SubmitCancellationFeedbackMutationResult =
|
|
|
|
|
Apollo.MutationResult<SubmitCancellationFeedbackMutation>;
|
|
|
|
|
export type SubmitCancellationFeedbackMutationOptions =
|
|
|
|
|
Apollo.BaseMutationOptions<
|
|
|
|
|
SubmitCancellationFeedbackMutation,
|
|
|
|
|
SubmitCancellationFeedbackMutationVariables
|
|
|
|
|
>;
|
|
|
|
|
export const ReactToVideoDocument = gql`
|
|
|
|
|
mutation ReactToVideo($videoId: Int!, $reaction: ReactionEnum) {
|
|
|
|
|
reactToVideo(videoId: $videoId, reaction: $reaction)
|
|
|
|
|
@@ -10874,6 +10988,12 @@ export const GetUserDocument = gql`
|
|
|
|
|
query GetUser($userId: Int!) {
|
|
|
|
|
getUser(userId: $userId) {
|
|
|
|
|
...UserFragment
|
|
|
|
|
following {
|
|
|
|
|
id
|
|
|
|
|
}
|
|
|
|
|
followers {
|
|
|
|
|
id
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
${UserFragmentFragmentDoc}
|
|
|
|
|
@@ -11953,6 +12073,7 @@ export const GetVideoDetailsDocument = gql`
|
|
|
|
|
endTime
|
|
|
|
|
makePercentage
|
|
|
|
|
medianRun
|
|
|
|
|
averageDifficulty
|
|
|
|
|
startTime
|
|
|
|
|
totalShots
|
|
|
|
|
totalShotsMade
|
|
|
|
|
@@ -12606,6 +12727,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) {
|
|
|
|
|
|