Compare commits
9 Commits
mk/revert-
...
1488862c77
Author | SHA1 | Date | |
---|---|---|---|
1488862c77 | |||
6462a6a464 | |||
41a5bb7609 | |||
b8aaabea8b | |||
2745521664 | |||
8efa2e067c | |||
919fe5ba24 | |||
7ff60dc9c5 | |||
7e0d8a84ee |
104
src/index.tsx
104
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>;
|
||||
@@ -2141,9 +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"];
|
||||
@@ -2153,6 +2167,7 @@ export type Mutation = {
|
||||
getHlsInitUploadLink: GetUploadLinkReturn;
|
||||
getProfileImageUploadLink: GetProfileUploadLinkReturn;
|
||||
getUploadLink: GetUploadLinkReturn;
|
||||
retireTags: Scalars["Boolean"]["output"];
|
||||
setLoggerLevel: Scalars["Boolean"]["output"];
|
||||
setSegmentDuration: Scalars["Boolean"]["output"];
|
||||
unfollowUser: UserGql;
|
||||
@@ -2165,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;
|
||||
};
|
||||
@@ -2173,10 +2194,26 @@ 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"];
|
||||
};
|
||||
|
||||
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"];
|
||||
};
|
||||
@@ -2217,6 +2254,10 @@ export type MutationGetUploadLinkArgs = {
|
||||
videoId: Scalars["Int"]["input"];
|
||||
};
|
||||
|
||||
export type MutationRetireTagsArgs = {
|
||||
tagIds: Array<Scalars["Int"]["input"]>;
|
||||
};
|
||||
|
||||
export type MutationSetLoggerLevelArgs = {
|
||||
level: Scalars["String"]["input"];
|
||||
path: Scalars["String"]["input"];
|
||||
@@ -2434,6 +2475,10 @@ export type QueryGetUserRelationshipsMatchingArgs = {
|
||||
userId: Scalars["Int"]["input"];
|
||||
};
|
||||
|
||||
export type QueryGetUserTagsArgs = {
|
||||
includeRetiredTags?: InputMaybe<Scalars["Boolean"]["input"]>;
|
||||
};
|
||||
|
||||
export type QueryGetUserVideosArgs = {
|
||||
after?: InputMaybe<Scalars["String"]["input"]>;
|
||||
filters?: InputMaybe<VideoFilterInput>;
|
||||
@@ -2726,6 +2771,7 @@ export type TagGql = {
|
||||
__typename?: "TagGQL";
|
||||
id: Scalars["Int"]["output"];
|
||||
name: Scalars["String"]["output"];
|
||||
retired: Scalars["Boolean"]["output"];
|
||||
tagClasses?: Maybe<Array<TagClassGql>>;
|
||||
};
|
||||
|
||||
@@ -2885,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>;
|
||||
@@ -3845,6 +3892,15 @@ export type EditShotMutation = {
|
||||
};
|
||||
};
|
||||
|
||||
export type RetireTagsMutationVariables = Exact<{
|
||||
tagIds: Array<Scalars["Int"]["input"]> | Scalars["Int"]["input"];
|
||||
}>;
|
||||
|
||||
export type RetireTagsMutation = {
|
||||
__typename?: "Mutation";
|
||||
retireTags: boolean;
|
||||
};
|
||||
|
||||
export type GetProfileImageUploadLinkMutationVariables = Exact<{
|
||||
fileExt?: InputMaybe<Scalars["String"]["input"]>;
|
||||
}>;
|
||||
@@ -6595,6 +6651,54 @@ export type EditShotMutationOptions = Apollo.BaseMutationOptions<
|
||||
EditShotMutation,
|
||||
EditShotMutationVariables
|
||||
>;
|
||||
export const RetireTagsDocument = gql`
|
||||
mutation RetireTags($tagIds: [Int!]!) {
|
||||
retireTags(tagIds: $tagIds)
|
||||
}
|
||||
`;
|
||||
export type RetireTagsMutationFn = Apollo.MutationFunction<
|
||||
RetireTagsMutation,
|
||||
RetireTagsMutationVariables
|
||||
>;
|
||||
|
||||
/**
|
||||
* __useRetireTagsMutation__
|
||||
*
|
||||
* To run a mutation, you first call `useRetireTagsMutation` within a React component and pass it any options that fit your needs.
|
||||
* When your component renders, `useRetireTagsMutation` 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 [retireTagsMutation, { data, loading, error }] = useRetireTagsMutation({
|
||||
* variables: {
|
||||
* tagIds: // value for 'tagIds'
|
||||
* },
|
||||
* });
|
||||
*/
|
||||
export function useRetireTagsMutation(
|
||||
baseOptions?: Apollo.MutationHookOptions<
|
||||
RetireTagsMutation,
|
||||
RetireTagsMutationVariables
|
||||
>,
|
||||
) {
|
||||
const options = { ...defaultOptions, ...baseOptions };
|
||||
return Apollo.useMutation<RetireTagsMutation, RetireTagsMutationVariables>(
|
||||
RetireTagsDocument,
|
||||
options,
|
||||
);
|
||||
}
|
||||
export type RetireTagsMutationHookResult = ReturnType<
|
||||
typeof useRetireTagsMutation
|
||||
>;
|
||||
export type RetireTagsMutationResult =
|
||||
Apollo.MutationResult<RetireTagsMutation>;
|
||||
export type RetireTagsMutationOptions = Apollo.BaseMutationOptions<
|
||||
RetireTagsMutation,
|
||||
RetireTagsMutationVariables
|
||||
>;
|
||||
export const GetProfileImageUploadLinkDocument = gql`
|
||||
mutation getProfileImageUploadLink($fileExt: String = ".png") {
|
||||
getProfileImageUploadLink(fileExt: $fileExt) {
|
||||
|
3
src/operations/tags.gql
Normal file
3
src/operations/tags.gql
Normal file
@@ -0,0 +1,3 @@
|
||||
mutation RetireTags($tagIds: [Int!]!) {
|
||||
retireTags(tagIds: $tagIds)
|
||||
}
|
@@ -60,7 +60,7 @@ type Query {
|
||||
after: String = null
|
||||
filters: VideoFilterInput = null
|
||||
): VideoHistoryGQL!
|
||||
getUserTags: [TagGQL!]!
|
||||
getUserTags(includeRetiredTags: Boolean = false): [TagGQL!]!
|
||||
getVideo(videoId: Int!, debuggingJson: JSON = null): VideoGQL!
|
||||
getVideos(videoIds: [Int!]!): [VideoGQL!]!
|
||||
getFeedVideos(
|
||||
@@ -478,6 +478,7 @@ type VideoGQL {
|
||||
currentHomography: HomographyInfoGQL
|
||||
homographyHistory: [HomographyInfoGQL!]!
|
||||
currentProcessing: VideoProcessingGQL
|
||||
comments: [CommentGQL!]!
|
||||
}
|
||||
|
||||
type UploadStreamGQL {
|
||||
@@ -611,6 +612,15 @@ type VideoProcessingStatusGQL {
|
||||
updatedAt: DateTime
|
||||
}
|
||||
|
||||
type CommentGQL {
|
||||
id: Int!
|
||||
user: UserGQL!
|
||||
message: String!
|
||||
replies: [CommentGQL!]!
|
||||
createdAt: DateTime
|
||||
updatedAt: DateTime
|
||||
}
|
||||
|
||||
type RunFeaturesGQL {
|
||||
runId: Int!
|
||||
indexInRun: Int!
|
||||
@@ -718,6 +728,7 @@ type TagGQL {
|
||||
id: Int!
|
||||
name: String!
|
||||
tagClasses: [TagClassGQL!]
|
||||
retired: Boolean!
|
||||
}
|
||||
|
||||
type TagClassGQL {
|
||||
@@ -784,6 +795,7 @@ type Mutation {
|
||||
editUser(input: EditUserInputGQL!): UserGQL!
|
||||
followUser(followedUserId: Int!): UserGQL!
|
||||
unfollowUser(followedUserId: Int!): UserGQL!
|
||||
retireTags(tagIds: [Int!]!): Boolean!
|
||||
findPrerecordTableLayout(b64Image: String!, videoId: Int!): HomographyInfoGQL
|
||||
createUploadStream(
|
||||
videoMetadata: VideoMetadataInput!
|
||||
@@ -797,6 +809,14 @@ type Mutation {
|
||||
): Boolean!
|
||||
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!
|
||||
}
|
||||
|
||||
input CreateBucketSetInput {
|
||||
|
Reference in New Issue
Block a user