Compare commits
1 Commits
master
...
mk/video-c
Author | SHA1 | Date | |
---|---|---|---|
1488862c77 |
198
src/index.tsx
198
src/index.tsx
@ -122,6 +122,16 @@ 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>;
|
||||
@ -235,7 +245,6 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -279,7 +288,6 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -323,7 +331,6 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -367,7 +374,6 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -411,7 +417,6 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -455,7 +460,6 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -499,7 +503,6 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -543,7 +546,6 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -587,7 +589,6 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -631,7 +632,6 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -675,7 +675,6 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -719,7 +718,6 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -763,7 +761,6 @@ export type FilterInput =
|
||||
falsePositiveScore: FloatRangeFilter;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -807,7 +804,6 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating: FloatRangeFilter;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -851,7 +847,6 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType: Array<PocketEnum>;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -895,51 +890,6 @@ 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;
|
||||
@ -983,7 +933,6 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft: Array<Scalars["Boolean"]["input"]>;
|
||||
isLeftMiss?: never;
|
||||
@ -1027,7 +976,6 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss: Array<Scalars["Boolean"]["input"]>;
|
||||
@ -1071,7 +1019,6 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -1115,7 +1062,6 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -1159,7 +1105,6 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -1203,7 +1148,6 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -1247,7 +1191,6 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -1291,7 +1234,6 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -1335,7 +1277,6 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -1379,7 +1320,6 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -1423,7 +1363,6 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -1467,7 +1406,6 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -1511,7 +1449,6 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -1555,7 +1492,6 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -1599,7 +1535,6 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -1643,7 +1578,6 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -1687,7 +1621,6 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -1731,7 +1664,6 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -1775,7 +1707,6 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -1819,7 +1750,6 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -1863,7 +1793,6 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -1907,7 +1836,6 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -1951,7 +1879,6 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -1995,7 +1922,6 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -2039,7 +1965,6 @@ export type FilterInput =
|
||||
falsePositiveScore?: never;
|
||||
fargoRating?: never;
|
||||
intendedPocketType?: never;
|
||||
isBreakHeuristic?: never;
|
||||
isDirect?: never;
|
||||
isLeft?: never;
|
||||
isLeftMiss?: never;
|
||||
@ -2226,10 +2151,13 @@ 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"];
|
||||
@ -2239,7 +2167,6 @@ 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"];
|
||||
@ -2253,6 +2180,12 @@ 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;
|
||||
};
|
||||
@ -2261,6 +2194,11 @@ 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"];
|
||||
@ -2270,6 +2208,12 @@ 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"];
|
||||
};
|
||||
@ -2310,11 +2254,6 @@ 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"]>;
|
||||
};
|
||||
@ -2571,22 +2510,6 @@ 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>;
|
||||
@ -3008,6 +2931,7 @@ 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>;
|
||||
@ -3022,7 +2946,6 @@ 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"]>;
|
||||
@ -3978,16 +3901,6 @@ 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"]>;
|
||||
}>;
|
||||
@ -6786,55 +6699,6 @@ 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,7 +1,3 @@
|
||||
mutation RetireTags($tagIds: [Int!]!) {
|
||||
retireTags(tagIds: $tagIds)
|
||||
}
|
||||
|
||||
mutation DeleteTags($videoId: Int!, $tagsToDelete: [VideoTagInput!]!) {
|
||||
deleteTags(videoId: $videoId, tagsToDelete: $tagsToDelete)
|
||||
}
|
||||
|
@ -195,7 +195,6 @@ input FilterInput @oneOf {
|
||||
isLeftMiss: [Boolean!]
|
||||
isRightMiss: [Boolean!]
|
||||
isDirect: [Boolean!]
|
||||
isBreakHeuristic: [Boolean!]
|
||||
tableSize: FloatRangeFilter
|
||||
bankAngle: FloatRangeFilter
|
||||
bankDistance: FloatRangeFilter
|
||||
@ -479,7 +478,7 @@ type VideoGQL {
|
||||
currentHomography: HomographyInfoGQL
|
||||
homographyHistory: [HomographyInfoGQL!]!
|
||||
currentProcessing: VideoProcessingGQL
|
||||
reactions: [ReactionGQL!]!
|
||||
comments: [CommentGQL!]!
|
||||
}
|
||||
|
||||
type UploadStreamGQL {
|
||||
@ -613,21 +612,15 @@ type VideoProcessingStatusGQL {
|
||||
updatedAt: DateTime
|
||||
}
|
||||
|
||||
type ReactionGQL {
|
||||
videoId: Int!
|
||||
type CommentGQL {
|
||||
id: Int!
|
||||
user: UserGQL!
|
||||
reaction: ReactionEnum!
|
||||
message: String!
|
||||
replies: [CommentGQL!]!
|
||||
createdAt: DateTime
|
||||
updatedAt: DateTime
|
||||
}
|
||||
|
||||
enum ReactionEnum {
|
||||
LIKE
|
||||
HEART
|
||||
BULLSEYE
|
||||
HUNDRED
|
||||
}
|
||||
|
||||
type RunFeaturesGQL {
|
||||
runId: Int!
|
||||
indexInRun: Int!
|
||||
@ -817,7 +810,13 @@ type Mutation {
|
||||
editUploadStream(videoId: Int!, videoMetadata: VideoMetadataInput!): Boolean!
|
||||
deleteVideo(videoId: Int!): Boolean!
|
||||
deleteTags(videoId: Int!, tagsToDelete: [VideoTagInput!]!): Boolean!
|
||||
reactToVideo(videoId: Int!, reaction: ReactionEnum): Boolean!
|
||||
commentOnVideo(
|
||||
videoId: Int!
|
||||
message: String!
|
||||
parentCommentId: Int
|
||||
): Boolean!
|
||||
editComment(videoId: Int!, commentId: Int!, newMessage: String!): Boolean!
|
||||
deleteComment(videoId: Int!, commentId: Int!): Boolean!
|
||||
}
|
||||
|
||||
input CreateBucketSetInput {
|
||||
|
Loading…
x
Reference in New Issue
Block a user