Compare commits
9 Commits
loewy/add-
...
55bbf723ba
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
55bbf723ba | ||
|
|
88650706e0 | ||
|
|
8a393e9a42 | ||
|
|
a00b50d985 | ||
|
|
36ed501cd9 | ||
|
|
d17c1a2ecc | ||
|
|
cc9bc98b32 | ||
|
|
eec12c61a3 | ||
|
|
b7b482694e |
5423
package-lock.json
generated
Normal file
5423
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
253
src/index.tsx
253
src/index.tsx
@@ -140,21 +140,6 @@ export type BucketSetInputGql = {
|
|||||||
feature: Scalars["String"]["input"];
|
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 = {
|
export type Challenge = {
|
||||||
__typename?: "Challenge";
|
__typename?: "Challenge";
|
||||||
createdAt: Scalars["DateTime"]["output"];
|
createdAt: Scalars["DateTime"]["output"];
|
||||||
@@ -2376,7 +2361,6 @@ export type Mutation = {
|
|||||||
setLoggerLevel: Scalars["Boolean"]["output"];
|
setLoggerLevel: Scalars["Boolean"]["output"];
|
||||||
setSegmentDuration: Scalars["Boolean"]["output"];
|
setSegmentDuration: Scalars["Boolean"]["output"];
|
||||||
startChallenge: ChallengeEntry;
|
startChallenge: ChallengeEntry;
|
||||||
submitCancellationFeedback: Scalars["Boolean"]["output"];
|
|
||||||
submitChallengeEntry: ChallengeEntry;
|
submitChallengeEntry: ChallengeEntry;
|
||||||
undismissChallenge: Scalars["Boolean"]["output"];
|
undismissChallenge: Scalars["Boolean"]["output"];
|
||||||
unfollowUser: UserGql;
|
unfollowUser: UserGql;
|
||||||
@@ -2553,12 +2537,6 @@ export type MutationStartChallengeArgs = {
|
|||||||
challengeId: Scalars["ID"]["input"];
|
challengeId: Scalars["ID"]["input"];
|
||||||
};
|
};
|
||||||
|
|
||||||
export type MutationSubmitCancellationFeedbackArgs = {
|
|
||||||
feedback?: InputMaybe<Scalars["String"]["input"]>;
|
|
||||||
metadata?: InputMaybe<CancellationFeedbackMetadataInput>;
|
|
||||||
reasons?: InputMaybe<Array<CancellationReasonEnum>>;
|
|
||||||
};
|
|
||||||
|
|
||||||
export type MutationSubmitChallengeEntryArgs = {
|
export type MutationSubmitChallengeEntryArgs = {
|
||||||
entryId: Scalars["ID"]["input"];
|
entryId: Scalars["ID"]["input"];
|
||||||
videoId: Scalars["ID"]["input"];
|
videoId: Scalars["ID"]["input"];
|
||||||
@@ -3557,7 +3535,6 @@ export type GetAggregatedShotMetricsQuery = {
|
|||||||
__typename?: "TargetMetricsGQL";
|
__typename?: "TargetMetricsGQL";
|
||||||
count: number;
|
count: number;
|
||||||
makePercentage?: number | null;
|
makePercentage?: number | null;
|
||||||
averageDifficulty?: number | null;
|
|
||||||
};
|
};
|
||||||
}>;
|
}>;
|
||||||
};
|
};
|
||||||
@@ -4040,7 +4017,6 @@ export type GetFeedQuery = {
|
|||||||
private: boolean;
|
private: boolean;
|
||||||
elapsedTime?: number | null;
|
elapsedTime?: number | null;
|
||||||
tableSize: number;
|
tableSize: number;
|
||||||
pocketSize?: number | null;
|
|
||||||
owner?: {
|
owner?: {
|
||||||
__typename?: "UserGQL";
|
__typename?: "UserGQL";
|
||||||
id: number;
|
id: number;
|
||||||
@@ -4142,7 +4118,6 @@ export type VideoCardFieldsFragment = {
|
|||||||
private: boolean;
|
private: boolean;
|
||||||
elapsedTime?: number | null;
|
elapsedTime?: number | null;
|
||||||
tableSize: number;
|
tableSize: number;
|
||||||
pocketSize?: number | null;
|
|
||||||
owner?: {
|
owner?: {
|
||||||
__typename?: "UserGQL";
|
__typename?: "UserGQL";
|
||||||
id: number;
|
id: number;
|
||||||
@@ -4240,7 +4215,6 @@ export type GetVideoFeedQuery = {
|
|||||||
private: boolean;
|
private: boolean;
|
||||||
elapsedTime?: number | null;
|
elapsedTime?: number | null;
|
||||||
tableSize: number;
|
tableSize: number;
|
||||||
pocketSize?: number | null;
|
|
||||||
owner?: {
|
owner?: {
|
||||||
__typename?: "UserGQL";
|
__typename?: "UserGQL";
|
||||||
id: number;
|
id: number;
|
||||||
@@ -4729,17 +4703,6 @@ 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<{
|
export type ReactToVideoMutationVariables = Exact<{
|
||||||
videoId: Scalars["Int"]["input"];
|
videoId: Scalars["Int"]["input"];
|
||||||
reaction?: InputMaybe<ReactionEnum>;
|
reaction?: InputMaybe<ReactionEnum>;
|
||||||
@@ -5002,7 +4965,6 @@ export type GetShotsWithMetadataFilterResultQuery = {
|
|||||||
} | null;
|
} | null;
|
||||||
playlist?: {
|
playlist?: {
|
||||||
__typename?: "HLSPlaylistGQL";
|
__typename?: "HLSPlaylistGQL";
|
||||||
videoId: number;
|
|
||||||
segmentDurations: Array<number>;
|
segmentDurations: Array<number>;
|
||||||
} | null;
|
} | null;
|
||||||
} | null;
|
} | null;
|
||||||
@@ -5085,7 +5047,6 @@ export type GetShotsWithMetadataQuery = {
|
|||||||
} | null;
|
} | null;
|
||||||
playlist?: {
|
playlist?: {
|
||||||
__typename?: "HLSPlaylistGQL";
|
__typename?: "HLSPlaylistGQL";
|
||||||
videoId: number;
|
|
||||||
segmentDurations: Array<number>;
|
segmentDurations: Array<number>;
|
||||||
} | null;
|
} | null;
|
||||||
} | null;
|
} | null;
|
||||||
@@ -5157,7 +5118,6 @@ export type GetShotsByIdsQuery = {
|
|||||||
} | null;
|
} | null;
|
||||||
playlist?: {
|
playlist?: {
|
||||||
__typename?: "HLSPlaylistGQL";
|
__typename?: "HLSPlaylistGQL";
|
||||||
videoId: number;
|
|
||||||
segmentDurations: Array<number>;
|
segmentDurations: Array<number>;
|
||||||
} | null;
|
} | null;
|
||||||
} | null;
|
} | null;
|
||||||
@@ -5222,7 +5182,6 @@ export type ShotWithAllFeaturesFragment = {
|
|||||||
} | null;
|
} | null;
|
||||||
playlist?: {
|
playlist?: {
|
||||||
__typename?: "HLSPlaylistGQL";
|
__typename?: "HLSPlaylistGQL";
|
||||||
videoId: number;
|
|
||||||
segmentDurations: Array<number>;
|
segmentDurations: Array<number>;
|
||||||
} | null;
|
} | null;
|
||||||
} | null;
|
} | null;
|
||||||
@@ -5304,7 +5263,6 @@ export type EditShotMutation = {
|
|||||||
} | null;
|
} | null;
|
||||||
playlist?: {
|
playlist?: {
|
||||||
__typename?: "HLSPlaylistGQL";
|
__typename?: "HLSPlaylistGQL";
|
||||||
videoId: number;
|
|
||||||
segmentDurations: Array<number>;
|
segmentDurations: Array<number>;
|
||||||
} | null;
|
} | null;
|
||||||
} | null;
|
} | null;
|
||||||
@@ -5420,8 +5378,6 @@ export type GetUserQuery = {
|
|||||||
updatedAt?: any | null;
|
updatedAt?: any | null;
|
||||||
videosPrivateByDefault?: boolean | null;
|
videosPrivateByDefault?: boolean | null;
|
||||||
agreesToMarketing?: boolean | null;
|
agreesToMarketing?: boolean | null;
|
||||||
following?: Array<{ __typename?: "UserGQL"; id: number }> | null;
|
|
||||||
followers?: Array<{ __typename?: "UserGQL"; id: number }> | null;
|
|
||||||
} | null;
|
} | null;
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -5493,7 +5449,21 @@ export type FollowUserMutationVariables = Exact<{
|
|||||||
|
|
||||||
export type FollowUserMutation = {
|
export type FollowUserMutation = {
|
||||||
__typename?: "Mutation";
|
__typename?: "Mutation";
|
||||||
followUser: { __typename?: "UserGQL"; id: number; username: string };
|
followUser: {
|
||||||
|
__typename?: "UserGQL";
|
||||||
|
username: string;
|
||||||
|
id: number;
|
||||||
|
following?: Array<{
|
||||||
|
__typename?: "UserGQL";
|
||||||
|
id: number;
|
||||||
|
username: string;
|
||||||
|
}> | null;
|
||||||
|
followers?: Array<{
|
||||||
|
__typename?: "UserGQL";
|
||||||
|
id: number;
|
||||||
|
username: string;
|
||||||
|
}> | null;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
export type UnfollowUserMutationVariables = Exact<{
|
export type UnfollowUserMutationVariables = Exact<{
|
||||||
@@ -5502,7 +5472,21 @@ export type UnfollowUserMutationVariables = Exact<{
|
|||||||
|
|
||||||
export type UnfollowUserMutation = {
|
export type UnfollowUserMutation = {
|
||||||
__typename?: "Mutation";
|
__typename?: "Mutation";
|
||||||
unfollowUser: { __typename?: "UserGQL"; id: number; username: string };
|
unfollowUser: {
|
||||||
|
__typename?: "UserGQL";
|
||||||
|
username: string;
|
||||||
|
id: number;
|
||||||
|
following?: Array<{
|
||||||
|
__typename?: "UserGQL";
|
||||||
|
id: number;
|
||||||
|
username: string;
|
||||||
|
}> | null;
|
||||||
|
followers?: Array<{
|
||||||
|
__typename?: "UserGQL";
|
||||||
|
id: number;
|
||||||
|
username: string;
|
||||||
|
}> | null;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
export type GetUserFollowingFollowersQueryVariables = Exact<{
|
export type GetUserFollowingFollowersQueryVariables = Exact<{
|
||||||
@@ -5519,14 +5503,12 @@ export type GetUserFollowingFollowersQuery = {
|
|||||||
id: number;
|
id: number;
|
||||||
username: string;
|
username: string;
|
||||||
profileImageUri?: string | null;
|
profileImageUri?: string | null;
|
||||||
isFollowedByCurrentUser?: boolean | null;
|
|
||||||
}> | null;
|
}> | null;
|
||||||
followers?: Array<{
|
followers?: Array<{
|
||||||
__typename?: "UserGQL";
|
__typename?: "UserGQL";
|
||||||
id: number;
|
id: number;
|
||||||
username: string;
|
username: string;
|
||||||
profileImageUri?: string | null;
|
profileImageUri?: string | null;
|
||||||
isFollowedByCurrentUser?: boolean | null;
|
|
||||||
}> | null;
|
}> | null;
|
||||||
} | null;
|
} | null;
|
||||||
};
|
};
|
||||||
@@ -5721,7 +5703,6 @@ export type GetVideoDetailsQuery = {
|
|||||||
endTime?: any | null;
|
endTime?: any | null;
|
||||||
makePercentage: number;
|
makePercentage: number;
|
||||||
medianRun?: number | null;
|
medianRun?: number | null;
|
||||||
averageDifficulty?: number | null;
|
|
||||||
startTime?: any | null;
|
startTime?: any | null;
|
||||||
totalShots: number;
|
totalShots: number;
|
||||||
totalShotsMade: number;
|
totalShotsMade: number;
|
||||||
@@ -5987,19 +5968,6 @@ export type GetMedianRunForVideoQuery = {
|
|||||||
getVideo: { __typename?: "VideoGQL"; id: number; medianRun?: number | null };
|
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 = {
|
export type StreamWithEndFramesFragment = {
|
||||||
__typename?: "UploadStreamGQL";
|
__typename?: "UploadStreamGQL";
|
||||||
id: string;
|
id: string;
|
||||||
@@ -6435,7 +6403,6 @@ export const VideoCardFieldsFragmentDoc = gql`
|
|||||||
streamSegmentType
|
streamSegmentType
|
||||||
}
|
}
|
||||||
tableSize
|
tableSize
|
||||||
pocketSize
|
|
||||||
tags {
|
tags {
|
||||||
tagClasses {
|
tagClasses {
|
||||||
name
|
name
|
||||||
@@ -6584,7 +6551,6 @@ export const ShotWithAllFeaturesFragmentDoc = gql`
|
|||||||
streamSegmentType
|
streamSegmentType
|
||||||
}
|
}
|
||||||
playlist {
|
playlist {
|
||||||
videoId
|
|
||||||
segmentDurations
|
segmentDurations
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -6743,7 +6709,6 @@ export const GetAggregatedShotMetricsDocument = gql`
|
|||||||
targetMetrics {
|
targetMetrics {
|
||||||
count
|
count
|
||||||
makePercentage
|
makePercentage
|
||||||
averageDifficulty
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -9677,65 +9642,6 @@ export type CancelSubscriptionMutationOptions = Apollo.BaseMutationOptions<
|
|||||||
CancelSubscriptionMutation,
|
CancelSubscriptionMutation,
|
||||||
CancelSubscriptionMutationVariables
|
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`
|
export const ReactToVideoDocument = gql`
|
||||||
mutation ReactToVideo($videoId: Int!, $reaction: ReactionEnum) {
|
mutation ReactToVideo($videoId: Int!, $reaction: ReactionEnum) {
|
||||||
reactToVideo(videoId: $videoId, reaction: $reaction)
|
reactToVideo(videoId: $videoId, reaction: $reaction)
|
||||||
@@ -10988,12 +10894,6 @@ export const GetUserDocument = gql`
|
|||||||
query GetUser($userId: Int!) {
|
query GetUser($userId: Int!) {
|
||||||
getUser(userId: $userId) {
|
getUser(userId: $userId) {
|
||||||
...UserFragment
|
...UserFragment
|
||||||
following {
|
|
||||||
id
|
|
||||||
}
|
|
||||||
followers {
|
|
||||||
id
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
${UserFragmentFragmentDoc}
|
${UserFragmentFragmentDoc}
|
||||||
@@ -11380,9 +11280,17 @@ export type GetUserTagsQueryResult = Apollo.QueryResult<
|
|||||||
export const FollowUserDocument = gql`
|
export const FollowUserDocument = gql`
|
||||||
mutation followUser($followedUserId: Int!) {
|
mutation followUser($followedUserId: Int!) {
|
||||||
followUser(followedUserId: $followedUserId) {
|
followUser(followedUserId: $followedUserId) {
|
||||||
|
username
|
||||||
|
id
|
||||||
|
following {
|
||||||
id
|
id
|
||||||
username
|
username
|
||||||
}
|
}
|
||||||
|
followers {
|
||||||
|
id
|
||||||
|
username
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
export type FollowUserMutationFn = Apollo.MutationFunction<
|
export type FollowUserMutationFn = Apollo.MutationFunction<
|
||||||
@@ -11431,9 +11339,17 @@ export type FollowUserMutationOptions = Apollo.BaseMutationOptions<
|
|||||||
export const UnfollowUserDocument = gql`
|
export const UnfollowUserDocument = gql`
|
||||||
mutation unfollowUser($followedUserId: Int!) {
|
mutation unfollowUser($followedUserId: Int!) {
|
||||||
unfollowUser(followedUserId: $followedUserId) {
|
unfollowUser(followedUserId: $followedUserId) {
|
||||||
|
username
|
||||||
|
id
|
||||||
|
following {
|
||||||
id
|
id
|
||||||
username
|
username
|
||||||
}
|
}
|
||||||
|
followers {
|
||||||
|
id
|
||||||
|
username
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
export type UnfollowUserMutationFn = Apollo.MutationFunction<
|
export type UnfollowUserMutationFn = Apollo.MutationFunction<
|
||||||
@@ -11487,13 +11403,11 @@ export const GetUserFollowingFollowersDocument = gql`
|
|||||||
id
|
id
|
||||||
username
|
username
|
||||||
profileImageUri
|
profileImageUri
|
||||||
isFollowedByCurrentUser
|
|
||||||
}
|
}
|
||||||
followers {
|
followers {
|
||||||
id
|
id
|
||||||
username
|
username
|
||||||
profileImageUri
|
profileImageUri
|
||||||
isFollowedByCurrentUser
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -12073,7 +11987,6 @@ export const GetVideoDetailsDocument = gql`
|
|||||||
endTime
|
endTime
|
||||||
makePercentage
|
makePercentage
|
||||||
medianRun
|
medianRun
|
||||||
averageDifficulty
|
|
||||||
startTime
|
startTime
|
||||||
totalShots
|
totalShots
|
||||||
totalShotsMade
|
totalShotsMade
|
||||||
@@ -12727,80 +12640,6 @@ export type GetMedianRunForVideoQueryResult = Apollo.QueryResult<
|
|||||||
GetMedianRunForVideoQuery,
|
GetMedianRunForVideoQuery,
|
||||||
GetMedianRunForVideoQueryVariables
|
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`
|
export const GetVideoForClipTimesDocument = gql`
|
||||||
query GetVideoForClipTimes($videoId: Int!) {
|
query GetVideoForClipTimes($videoId: Int!) {
|
||||||
getVideo(videoId: $videoId) {
|
getVideo(videoId: $videoId) {
|
||||||
|
|||||||
@@ -7,7 +7,6 @@ query GetAggregatedShotMetrics($aggregateInput: AggregateInputGQL!) {
|
|||||||
targetMetrics {
|
targetMetrics {
|
||||||
count
|
count
|
||||||
makePercentage
|
makePercentage
|
||||||
averageDifficulty
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -50,7 +50,6 @@ fragment VideoCardFields on VideoGQL {
|
|||||||
streamSegmentType
|
streamSegmentType
|
||||||
}
|
}
|
||||||
tableSize
|
tableSize
|
||||||
pocketSize
|
|
||||||
tags {
|
tags {
|
||||||
tagClasses {
|
tagClasses {
|
||||||
name
|
name
|
||||||
|
|||||||
@@ -63,14 +63,3 @@ mutation CancelSubscription {
|
|||||||
stripeSubscriptionId
|
stripeSubscriptionId
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
mutation SubmitCancellationFeedback(
|
|
||||||
$reasons: [CancellationReasonEnum!]
|
|
||||||
$feedback: String
|
|
||||||
$metadata: CancellationFeedbackMetadataInput
|
|
||||||
) {
|
|
||||||
submitCancellationFeedback(
|
|
||||||
reasons: $reasons
|
|
||||||
feedback: $feedback
|
|
||||||
metadata: $metadata
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|||||||
@@ -192,7 +192,6 @@ fragment ShotWithAllFeatures on ShotGQL {
|
|||||||
streamSegmentType
|
streamSegmentType
|
||||||
}
|
}
|
||||||
playlist {
|
playlist {
|
||||||
videoId
|
|
||||||
segmentDurations
|
segmentDurations
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -34,12 +34,6 @@ query getLoggedInUser {
|
|||||||
query GetUser($userId: Int!) {
|
query GetUser($userId: Int!) {
|
||||||
getUser(userId: $userId) {
|
getUser(userId: $userId) {
|
||||||
...UserFragment
|
...UserFragment
|
||||||
following {
|
|
||||||
id
|
|
||||||
}
|
|
||||||
followers {
|
|
||||||
id
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -94,16 +88,32 @@ query GetUserTags {
|
|||||||
|
|
||||||
mutation followUser($followedUserId: Int!) {
|
mutation followUser($followedUserId: Int!) {
|
||||||
followUser(followedUserId: $followedUserId) {
|
followUser(followedUserId: $followedUserId) {
|
||||||
|
username
|
||||||
|
id
|
||||||
|
following {
|
||||||
id
|
id
|
||||||
username
|
username
|
||||||
}
|
}
|
||||||
|
followers {
|
||||||
|
id
|
||||||
|
username
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
mutation unfollowUser($followedUserId: Int!) {
|
mutation unfollowUser($followedUserId: Int!) {
|
||||||
unfollowUser(followedUserId: $followedUserId) {
|
unfollowUser(followedUserId: $followedUserId) {
|
||||||
|
username
|
||||||
|
id
|
||||||
|
following {
|
||||||
id
|
id
|
||||||
username
|
username
|
||||||
}
|
}
|
||||||
|
followers {
|
||||||
|
id
|
||||||
|
username
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
query getUserFollowingFollowers {
|
query getUserFollowingFollowers {
|
||||||
@@ -113,13 +123,11 @@ query getUserFollowingFollowers {
|
|||||||
id
|
id
|
||||||
username
|
username
|
||||||
profileImageUri
|
profileImageUri
|
||||||
isFollowedByCurrentUser
|
|
||||||
}
|
}
|
||||||
followers {
|
followers {
|
||||||
id
|
id
|
||||||
username
|
username
|
||||||
profileImageUri
|
profileImageUri
|
||||||
isFollowedByCurrentUser
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -61,7 +61,6 @@ query GetVideoDetails($videoId: Int!) {
|
|||||||
endTime
|
endTime
|
||||||
makePercentage
|
makePercentage
|
||||||
medianRun
|
medianRun
|
||||||
averageDifficulty
|
|
||||||
startTime
|
startTime
|
||||||
totalShots
|
totalShots
|
||||||
totalShotsMade
|
totalShotsMade
|
||||||
@@ -212,13 +211,6 @@ query GetMedianRunForVideo($videoId: Int!) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
query GetAverageDifficultyForVideo($videoId: Int!) {
|
|
||||||
getVideo(videoId: $videoId) {
|
|
||||||
id
|
|
||||||
averageDifficulty
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
fragment StreamWithEndFrames on UploadStreamGQL {
|
fragment StreamWithEndFrames on UploadStreamGQL {
|
||||||
id
|
id
|
||||||
streamSegmentType
|
streamSegmentType
|
||||||
|
|||||||
1922
src/schema.gql
1922
src/schema.gql
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user