Compare commits
2 Commits
653f31e96a
...
mk/video-r
Author | SHA1 | Date | |
---|---|---|---|
d6b9d5e9c5 | |||
1f33ba2531 |
132
src/index.tsx
132
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>;
|
||||
@@ -2236,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"];
|
||||
@@ -2266,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;
|
||||
};
|
||||
@@ -2280,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"];
|
||||
@@ -2294,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"];
|
||||
};
|
||||
@@ -3038,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>;
|
||||
@@ -3241,17 +3210,6 @@ export type GetFeedQuery = {
|
||||
status: ProcessingStatusEnum;
|
||||
}>;
|
||||
} | null;
|
||||
reactions: Array<{
|
||||
__typename?: "ReactionGQL";
|
||||
videoId: number;
|
||||
reaction: ReactionEnum;
|
||||
user: {
|
||||
__typename?: "UserGQL";
|
||||
id: number;
|
||||
username: string;
|
||||
profileImageUri?: string | null;
|
||||
};
|
||||
}>;
|
||||
}>;
|
||||
pageInfo: {
|
||||
__typename?: "PageInfoGQL";
|
||||
@@ -3305,17 +3263,6 @@ export type VideoCardFieldsFragment = {
|
||||
status: ProcessingStatusEnum;
|
||||
}>;
|
||||
} | null;
|
||||
reactions: Array<{
|
||||
__typename?: "ReactionGQL";
|
||||
videoId: number;
|
||||
reaction: ReactionEnum;
|
||||
user: {
|
||||
__typename?: "UserGQL";
|
||||
id: number;
|
||||
username: string;
|
||||
profileImageUri?: string | null;
|
||||
};
|
||||
}>;
|
||||
};
|
||||
|
||||
export type GetVideoFeedQueryVariables = Exact<{
|
||||
@@ -3378,17 +3325,6 @@ export type GetVideoFeedQuery = {
|
||||
status: ProcessingStatusEnum;
|
||||
}>;
|
||||
} | null;
|
||||
reactions: Array<{
|
||||
__typename?: "ReactionGQL";
|
||||
videoId: number;
|
||||
reaction: ReactionEnum;
|
||||
user: {
|
||||
__typename?: "UserGQL";
|
||||
id: number;
|
||||
username: string;
|
||||
profileImageUri?: string | null;
|
||||
};
|
||||
}>;
|
||||
}>;
|
||||
pageInfo: {
|
||||
__typename?: "PageInfoGQL";
|
||||
@@ -3592,16 +3528,6 @@ export type GetMedalsQuery = {
|
||||
};
|
||||
};
|
||||
|
||||
export type ReactToVideoMutationVariables = Exact<{
|
||||
videoId: Scalars["Int"]["input"];
|
||||
reaction?: InputMaybe<ReactionEnum>;
|
||||
}>;
|
||||
|
||||
export type ReactToVideoMutation = {
|
||||
__typename?: "Mutation";
|
||||
reactToVideo: boolean;
|
||||
};
|
||||
|
||||
export type GetRunsForHighlightsQueryVariables = Exact<{
|
||||
filterInput: RunFilterInput;
|
||||
runIds?: InputMaybe<Array<Scalars["Int"]["input"]> | Scalars["Int"]["input"]>;
|
||||
@@ -5080,15 +5006,6 @@ export const VideoCardFieldsFragmentDoc = gql`
|
||||
status
|
||||
}
|
||||
}
|
||||
reactions {
|
||||
videoId
|
||||
user {
|
||||
id
|
||||
username
|
||||
profileImageUri
|
||||
}
|
||||
reaction
|
||||
}
|
||||
}
|
||||
`;
|
||||
export const MedalFieldsFragmentDoc = gql`
|
||||
@@ -6014,55 +5931,6 @@ export type GetMedalsQueryResult = Apollo.QueryResult<
|
||||
GetMedalsQuery,
|
||||
GetMedalsQueryVariables
|
||||
>;
|
||||
export const ReactToVideoDocument = gql`
|
||||
mutation ReactToVideo($videoId: Int!, $reaction: ReactionEnum) {
|
||||
reactToVideo(videoId: $videoId, reaction: $reaction)
|
||||
}
|
||||
`;
|
||||
export type ReactToVideoMutationFn = Apollo.MutationFunction<
|
||||
ReactToVideoMutation,
|
||||
ReactToVideoMutationVariables
|
||||
>;
|
||||
|
||||
/**
|
||||
* __useReactToVideoMutation__
|
||||
*
|
||||
* To run a mutation, you first call `useReactToVideoMutation` within a React component and pass it any options that fit your needs.
|
||||
* When your component renders, `useReactToVideoMutation` 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 [reactToVideoMutation, { data, loading, error }] = useReactToVideoMutation({
|
||||
* variables: {
|
||||
* videoId: // value for 'videoId'
|
||||
* reaction: // value for 'reaction'
|
||||
* },
|
||||
* });
|
||||
*/
|
||||
export function useReactToVideoMutation(
|
||||
baseOptions?: Apollo.MutationHookOptions<
|
||||
ReactToVideoMutation,
|
||||
ReactToVideoMutationVariables
|
||||
>,
|
||||
) {
|
||||
const options = { ...defaultOptions, ...baseOptions };
|
||||
return Apollo.useMutation<
|
||||
ReactToVideoMutation,
|
||||
ReactToVideoMutationVariables
|
||||
>(ReactToVideoDocument, options);
|
||||
}
|
||||
export type ReactToVideoMutationHookResult = ReturnType<
|
||||
typeof useReactToVideoMutation
|
||||
>;
|
||||
export type ReactToVideoMutationResult =
|
||||
Apollo.MutationResult<ReactToVideoMutation>;
|
||||
export type ReactToVideoMutationOptions = Apollo.BaseMutationOptions<
|
||||
ReactToVideoMutation,
|
||||
ReactToVideoMutationVariables
|
||||
>;
|
||||
export const GetRunsForHighlightsDocument = gql`
|
||||
query GetRunsForHighlights(
|
||||
$filterInput: RunFilterInput!
|
||||
|
@@ -58,15 +58,6 @@ fragment VideoCardFields on VideoGQL {
|
||||
status
|
||||
}
|
||||
}
|
||||
reactions {
|
||||
videoId
|
||||
user {
|
||||
id
|
||||
username
|
||||
profileImageUri
|
||||
}
|
||||
reaction
|
||||
}
|
||||
}
|
||||
|
||||
query GetVideoFeed(
|
||||
|
@@ -1,3 +0,0 @@
|
||||
mutation ReactToVideo($videoId: Int!, $reaction: ReactionEnum) {
|
||||
reactToVideo(videoId: $videoId, reaction: $reaction)
|
||||
}
|
@@ -480,7 +480,6 @@ type VideoGQL {
|
||||
homographyHistory: [HomographyInfoGQL!]!
|
||||
currentProcessing: VideoProcessingGQL
|
||||
reactions: [ReactionGQL!]!
|
||||
comments: [CommentGQL!]!
|
||||
}
|
||||
|
||||
type UploadStreamGQL {
|
||||
@@ -622,15 +621,6 @@ type ReactionGQL {
|
||||
updatedAt: DateTime
|
||||
}
|
||||
|
||||
type CommentGQL {
|
||||
id: Int!
|
||||
user: UserGQL!
|
||||
message: String!
|
||||
replies: [CommentGQL!]!
|
||||
createdAt: DateTime
|
||||
updatedAt: DateTime
|
||||
}
|
||||
|
||||
enum ReactionEnum {
|
||||
LIKE
|
||||
HEART
|
||||
@@ -828,13 +818,6 @@ type Mutation {
|
||||
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 {
|
||||
@@ -869,7 +852,7 @@ type AddShotAnnotationReturn {
|
||||
}
|
||||
|
||||
union SuccessfulAddAddShotAnnotationErrors =
|
||||
| SuccessfulAdd
|
||||
SuccessfulAdd
|
||||
| AddShotAnnotationErrors
|
||||
|
||||
type SuccessfulAdd {
|
||||
@@ -881,7 +864,7 @@ type AddShotAnnotationErrors {
|
||||
}
|
||||
|
||||
union DoesNotOwnShotErrOtherErrorNeedsNote =
|
||||
| DoesNotOwnShotErr
|
||||
DoesNotOwnShotErr
|
||||
| OtherErrorNeedsNote
|
||||
|
||||
type OtherErrorNeedsNote {
|
||||
@@ -903,7 +886,7 @@ type GetProfileUploadLinkReturn {
|
||||
}
|
||||
|
||||
union UploadLinkGetProfileUploadLinkErrors =
|
||||
| UploadLink
|
||||
UploadLink
|
||||
| GetProfileUploadLinkErrors
|
||||
|
||||
type UploadLink {
|
||||
@@ -972,7 +955,7 @@ type GetUploadLinkErrors {
|
||||
}
|
||||
|
||||
union MustHaveSetForUploadLinkErrSegmentAlreadyUploadedErrProcessingFailedErrNoInitForChunkedUploadErrTooManyProfileImageUploadsErrInitUploadAlreadyCompletedErrTooManyInitUploadsErr =
|
||||
| MustHaveSetForUploadLinkErr
|
||||
MustHaveSetForUploadLinkErr
|
||||
| SegmentAlreadyUploadedErr
|
||||
| ProcessingFailedErr
|
||||
| NoInitForChunkedUploadErr
|
||||
|
Reference in New Issue
Block a user