Compare commits
6 Commits
mk/video-c
...
master
Author | SHA1 | Date | |
---|---|---|---|
df2e534745 | |||
|
ea4980947f | ||
65475bca9b | |||
280f5a66bd | |||
84daf2d136 | |||
6558fb60e9 |
198
src/index.tsx
198
src/index.tsx
@ -122,16 +122,6 @@ export enum ClientUploadStatusEnum {
|
||||
UploadEnabled = "UPLOAD_ENABLED",
|
||||
}
|
||||
|
||||
export type CommentGql = {
|
||||
__typename?: "CommentGQL";
|
||||
createdAt?: Maybe<Scalars["DateTime"]["output"]>;
|
||||
id: Scalars["Int"]["output"];
|
||||
message: Scalars["String"]["output"];
|
||||
replies: Array<CommentGql>;
|
||||
updatedAt?: Maybe<Scalars["DateTime"]["output"]>;
|
||||
user: UserGql;
|
||||
};
|
||||
|
||||
export type CountLeaderboardGql = {
|
||||
__typename?: "CountLeaderboardGQL";
|
||||
entries: Array<UserShotCountEntry>;
|
||||
@ -245,6 +235,7 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -288,6 +279,7 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -331,6 +323,7 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -374,6 +367,7 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -417,6 +411,7 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -460,6 +455,7 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -503,6 +499,7 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -546,6 +543,7 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -589,6 +587,7 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -632,6 +631,7 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -675,6 +675,7 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -718,6 +719,7 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -761,6 +763,7 @@ export type FilterInput =
|
||||
falsePositiveScore: FloatRangeFilter;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -804,6 +807,7 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating: FloatRangeFilter;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -847,6 +851,7 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType: Array<PocketEnum>;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -890,6 +895,51 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic: Array<Scalars["Boolean"]["input"]>;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
isRight?: never;
|
||||
isRightMiss?: never;
|
||||
isStraight?: never;
|
||||
kickAngle?: never;
|
||||
kickDistance?: never;
|
||||
make?: never;
|
||||
marginOfErrorInDegrees?: never;
|
||||
missAngleInDegrees?: never;
|
||||
notFilter?: never;
|
||||
orFilters?: never;
|
||||
runId?: never;
|
||||
runLength?: never;
|
||||
shotDirection?: never;
|
||||
spinType?: never;
|
||||
tableSize?: never;
|
||||
tags?: never;
|
||||
targetPocketAngle?: never;
|
||||
targetPocketAngleDirection?: never;
|
||||
targetPocketDistance?: never;
|
||||
totalDistance?: never;
|
||||
userId?: never;
|
||||
username?: never;
|
||||
videoId?: never;
|
||||
}
|
||||
| {
|
||||
andFilters?: never;
|
||||
annotations?: never;
|
||||
backcut?: never;
|
||||
bankAngle?: never;
|
||||
bankDistance?: never;
|
||||
createdAt?: never;
|
||||
cueAngleAfterObject?: never;
|
||||
cueBallSpeed?: never;
|
||||
cueObjectAngle?: never;
|
||||
cueObjectDistance?: never;
|
||||
cueSpeedAfterObject?: never;
|
||||
difficulty?: never;
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect: Array<Scalars["Boolean"]["input"]>;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -933,6 +983,7 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft: Array<Scalars["Boolean"]["input"]>;
|
||||
isLeftMiss?: never;
|
||||
@ -976,6 +1027,7 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss: Array<Scalars["Boolean"]["input"]>;
|
||||
@ -1019,6 +1071,7 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -1062,6 +1115,7 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -1105,6 +1159,7 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -1148,6 +1203,7 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -1191,6 +1247,7 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -1234,6 +1291,7 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -1277,6 +1335,7 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -1320,6 +1379,7 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -1363,6 +1423,7 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -1406,6 +1467,7 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -1449,6 +1511,7 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -1492,6 +1555,7 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -1535,6 +1599,7 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -1578,6 +1643,7 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -1621,6 +1687,7 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -1664,6 +1731,7 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -1707,6 +1775,7 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -1750,6 +1819,7 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -1793,6 +1863,7 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -1836,6 +1907,7 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -1879,6 +1951,7 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -1922,6 +1995,7 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -1965,6 +2039,7 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -2151,13 +2226,10 @@ export type MustHaveSetForUploadLinkErrSegmentAlreadyUploadedErrProcessingFailed
|
||||
export type Mutation = {
|
||||
__typename?: "Mutation";
|
||||
addAnnotationToShot: AddShotAnnotationReturn;
|
||||
commentOnVideo: Scalars["Boolean"]["output"];
|
||||
createBucketSet: BucketSetGql;
|
||||
createUploadStream: CreateUploadStreamReturn;
|
||||
deleteComment: Scalars["Boolean"]["output"];
|
||||
deleteTags: Scalars["Boolean"]["output"];
|
||||
deleteVideo: Scalars["Boolean"]["output"];
|
||||
editComment: Scalars["Boolean"]["output"];
|
||||
editProfileImageUri: UserGql;
|
||||
editShot: EditShotReturn;
|
||||
editUploadStream: Scalars["Boolean"]["output"];
|
||||
@ -2167,6 +2239,7 @@ export type Mutation = {
|
||||
getHlsInitUploadLink: GetUploadLinkReturn;
|
||||
getProfileImageUploadLink: GetProfileUploadLinkReturn;
|
||||
getUploadLink: GetUploadLinkReturn;
|
||||
reactToVideo: Scalars["Boolean"]["output"];
|
||||
retireTags: Scalars["Boolean"]["output"];
|
||||
setLoggerLevel: Scalars["Boolean"]["output"];
|
||||
setSegmentDuration: Scalars["Boolean"]["output"];
|
||||
@ -2180,12 +2253,6 @@ export type MutationAddAnnotationToShotArgs = {
|
||||
shotId: Scalars["Int"]["input"];
|
||||
};
|
||||
|
||||
export type MutationCommentOnVideoArgs = {
|
||||
message: Scalars["String"]["input"];
|
||||
parentCommentId?: InputMaybe<Scalars["Int"]["input"]>;
|
||||
videoId: Scalars["Int"]["input"];
|
||||
};
|
||||
|
||||
export type MutationCreateBucketSetArgs = {
|
||||
params: CreateBucketSetInput;
|
||||
};
|
||||
@ -2194,11 +2261,6 @@ export type MutationCreateUploadStreamArgs = {
|
||||
videoMetadata: VideoMetadataInput;
|
||||
};
|
||||
|
||||
export type MutationDeleteCommentArgs = {
|
||||
commentId: Scalars["Int"]["input"];
|
||||
videoId: Scalars["Int"]["input"];
|
||||
};
|
||||
|
||||
export type MutationDeleteTagsArgs = {
|
||||
tagsToDelete: Array<VideoTagInput>;
|
||||
videoId: Scalars["Int"]["input"];
|
||||
@ -2208,12 +2270,6 @@ export type MutationDeleteVideoArgs = {
|
||||
videoId: Scalars["Int"]["input"];
|
||||
};
|
||||
|
||||
export type MutationEditCommentArgs = {
|
||||
commentId: Scalars["Int"]["input"];
|
||||
newMessage: Scalars["String"]["input"];
|
||||
videoId: Scalars["Int"]["input"];
|
||||
};
|
||||
|
||||
export type MutationEditProfileImageUriArgs = {
|
||||
profileImageUri: Scalars["String"]["input"];
|
||||
};
|
||||
@ -2254,6 +2310,11 @@ export type MutationGetUploadLinkArgs = {
|
||||
videoId: Scalars["Int"]["input"];
|
||||
};
|
||||
|
||||
export type MutationReactToVideoArgs = {
|
||||
reaction?: InputMaybe<ReactionEnum>;
|
||||
videoId: Scalars["Int"]["input"];
|
||||
};
|
||||
|
||||
export type MutationRetireTagsArgs = {
|
||||
tagIds: Array<Scalars["Int"]["input"]>;
|
||||
};
|
||||
@ -2510,6 +2571,22 @@ export type QueryWaitForArgs = {
|
||||
duration: Scalars["Float"]["input"];
|
||||
};
|
||||
|
||||
export enum ReactionEnum {
|
||||
Bullseye = "BULLSEYE",
|
||||
Heart = "HEART",
|
||||
Hundred = "HUNDRED",
|
||||
Like = "LIKE",
|
||||
}
|
||||
|
||||
export type ReactionGql = {
|
||||
__typename?: "ReactionGQL";
|
||||
createdAt?: Maybe<Scalars["DateTime"]["output"]>;
|
||||
reaction: ReactionEnum;
|
||||
updatedAt?: Maybe<Scalars["DateTime"]["output"]>;
|
||||
user: UserGql;
|
||||
videoId: Scalars["Int"]["output"];
|
||||
};
|
||||
|
||||
export type RequestedMedalsGql = {
|
||||
__typename?: "RequestedMedalsGQL";
|
||||
dailyMakes50?: Maybe<MedalGql>;
|
||||
@ -2931,7 +3008,6 @@ export type VideoGql = {
|
||||
__typename?: "VideoGQL";
|
||||
averageDifficulty?: Maybe<Scalars["Float"]["output"]>;
|
||||
averageTimeBetweenShots?: Maybe<Scalars["Float"]["output"]>;
|
||||
comments: Array<CommentGql>;
|
||||
createdAt?: Maybe<Scalars["DateTime"]["output"]>;
|
||||
currentHomography?: Maybe<HomographyInfoGql>;
|
||||
currentProcessing?: Maybe<VideoProcessingGql>;
|
||||
@ -2946,6 +3022,7 @@ export type VideoGql = {
|
||||
owner?: Maybe<UserGql>;
|
||||
playlist?: Maybe<HlsPlaylistGql>;
|
||||
private: Scalars["Boolean"]["output"];
|
||||
reactions: Array<ReactionGql>;
|
||||
screenshotUri?: Maybe<Scalars["String"]["output"]>;
|
||||
shots: Array<ShotGql>;
|
||||
startTime?: Maybe<Scalars["DateTime"]["output"]>;
|
||||
@ -3901,6 +3978,16 @@ export type RetireTagsMutation = {
|
||||
retireTags: boolean;
|
||||
};
|
||||
|
||||
export type DeleteTagsMutationVariables = Exact<{
|
||||
videoId: Scalars["Int"]["input"];
|
||||
tagsToDelete: Array<VideoTagInput> | VideoTagInput;
|
||||
}>;
|
||||
|
||||
export type DeleteTagsMutation = {
|
||||
__typename?: "Mutation";
|
||||
deleteTags: boolean;
|
||||
};
|
||||
|
||||
export type GetProfileImageUploadLinkMutationVariables = Exact<{
|
||||
fileExt?: InputMaybe<Scalars["String"]["input"]>;
|
||||
}>;
|
||||
@ -6699,6 +6786,55 @@ export type RetireTagsMutationOptions = Apollo.BaseMutationOptions<
|
||||
RetireTagsMutation,
|
||||
RetireTagsMutationVariables
|
||||
>;
|
||||
export const DeleteTagsDocument = gql`
|
||||
mutation DeleteTags($videoId: Int!, $tagsToDelete: [VideoTagInput!]!) {
|
||||
deleteTags(videoId: $videoId, tagsToDelete: $tagsToDelete)
|
||||
}
|
||||
`;
|
||||
export type DeleteTagsMutationFn = Apollo.MutationFunction<
|
||||
DeleteTagsMutation,
|
||||
DeleteTagsMutationVariables
|
||||
>;
|
||||
|
||||
/**
|
||||
* __useDeleteTagsMutation__
|
||||
*
|
||||
* To run a mutation, you first call `useDeleteTagsMutation` within a React component and pass it any options that fit your needs.
|
||||
* When your component renders, `useDeleteTagsMutation` 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 [deleteTagsMutation, { data, loading, error }] = useDeleteTagsMutation({
|
||||
* variables: {
|
||||
* videoId: // value for 'videoId'
|
||||
* tagsToDelete: // value for 'tagsToDelete'
|
||||
* },
|
||||
* });
|
||||
*/
|
||||
export function useDeleteTagsMutation(
|
||||
baseOptions?: Apollo.MutationHookOptions<
|
||||
DeleteTagsMutation,
|
||||
DeleteTagsMutationVariables
|
||||
>,
|
||||
) {
|
||||
const options = { ...defaultOptions, ...baseOptions };
|
||||
return Apollo.useMutation<DeleteTagsMutation, DeleteTagsMutationVariables>(
|
||||
DeleteTagsDocument,
|
||||
options,
|
||||
);
|
||||
}
|
||||
export type DeleteTagsMutationHookResult = ReturnType<
|
||||
typeof useDeleteTagsMutation
|
||||
>;
|
||||
export type DeleteTagsMutationResult =
|
||||
Apollo.MutationResult<DeleteTagsMutation>;
|
||||
export type DeleteTagsMutationOptions = Apollo.BaseMutationOptions<
|
||||
DeleteTagsMutation,
|
||||
DeleteTagsMutationVariables
|
||||
>;
|
||||
export const GetProfileImageUploadLinkDocument = gql`
|
||||
mutation getProfileImageUploadLink($fileExt: String = ".png") {
|
||||
getProfileImageUploadLink(fileExt: $fileExt) {
|
||||
|
@ -1,3 +1,7 @@
|
||||
mutation RetireTags($tagIds: [Int!]!) {
|
||||
retireTags(tagIds: $tagIds)
|
||||
}
|
||||
|
||||
mutation DeleteTags($videoId: Int!, $tagsToDelete: [VideoTagInput!]!) {
|
||||
deleteTags(videoId: $videoId, tagsToDelete: $tagsToDelete)
|
||||
}
|
||||
|
@ -195,6 +195,7 @@ input FilterInput @oneOf {
|
||||
isLeftMiss: [Boolean!]
|
||||
isRightMiss: [Boolean!]
|
||||
isDirect: [Boolean!]
|
||||
isBreakHeuristic: [Boolean!]
|
||||
tableSize: FloatRangeFilter
|
||||
bankAngle: FloatRangeFilter
|
||||
bankDistance: FloatRangeFilter
|
||||
@ -478,7 +479,7 @@ type VideoGQL {
|
||||
currentHomography: HomographyInfoGQL
|
||||
homographyHistory: [HomographyInfoGQL!]!
|
||||
currentProcessing: VideoProcessingGQL
|
||||
comments: [CommentGQL!]!
|
||||
reactions: [ReactionGQL!]!
|
||||
}
|
||||
|
||||
type UploadStreamGQL {
|
||||
@ -612,15 +613,21 @@ type VideoProcessingStatusGQL {
|
||||
updatedAt: DateTime
|
||||
}
|
||||
|
||||
type CommentGQL {
|
||||
id: Int!
|
||||
type ReactionGQL {
|
||||
videoId: Int!
|
||||
user: UserGQL!
|
||||
message: String!
|
||||
replies: [CommentGQL!]!
|
||||
reaction: ReactionEnum!
|
||||
createdAt: DateTime
|
||||
updatedAt: DateTime
|
||||
}
|
||||
|
||||
enum ReactionEnum {
|
||||
LIKE
|
||||
HEART
|
||||
BULLSEYE
|
||||
HUNDRED
|
||||
}
|
||||
|
||||
type RunFeaturesGQL {
|
||||
runId: Int!
|
||||
indexInRun: Int!
|
||||
@ -810,13 +817,7 @@ type Mutation {
|
||||
editUploadStream(videoId: Int!, videoMetadata: VideoMetadataInput!): Boolean!
|
||||
deleteVideo(videoId: Int!): Boolean!
|
||||
deleteTags(videoId: Int!, tagsToDelete: [VideoTagInput!]!): Boolean!
|
||||
commentOnVideo(
|
||||
videoId: Int!
|
||||
message: String!
|
||||
parentCommentId: Int
|
||||
): Boolean!
|
||||
editComment(videoId: Int!, commentId: Int!, newMessage: String!): Boolean!
|
||||
deleteComment(videoId: Int!, commentId: Int!): Boolean!
|
||||
reactToVideo(videoId: Int!, reaction: ReactionEnum): Boolean!
|
||||
}
|
||||
|
||||
input CreateBucketSetInput {
|
||||
|
Loading…
x
Reference in New Issue
Block a user