Compare commits
3 Commits
a55bfa8bd4
...
ea4980947f
Author | SHA1 | Date | |
---|---|---|---|
|
ea4980947f | ||
65475bca9b | |||
280f5a66bd |
@ -2239,6 +2239,7 @@ export type Mutation = {
|
|||||||
getHlsInitUploadLink: GetUploadLinkReturn;
|
getHlsInitUploadLink: GetUploadLinkReturn;
|
||||||
getProfileImageUploadLink: GetProfileUploadLinkReturn;
|
getProfileImageUploadLink: GetProfileUploadLinkReturn;
|
||||||
getUploadLink: GetUploadLinkReturn;
|
getUploadLink: GetUploadLinkReturn;
|
||||||
|
reactToVideo: Scalars["Boolean"]["output"];
|
||||||
retireTags: Scalars["Boolean"]["output"];
|
retireTags: Scalars["Boolean"]["output"];
|
||||||
setLoggerLevel: Scalars["Boolean"]["output"];
|
setLoggerLevel: Scalars["Boolean"]["output"];
|
||||||
setSegmentDuration: Scalars["Boolean"]["output"];
|
setSegmentDuration: Scalars["Boolean"]["output"];
|
||||||
@ -2309,6 +2310,11 @@ export type MutationGetUploadLinkArgs = {
|
|||||||
videoId: Scalars["Int"]["input"];
|
videoId: Scalars["Int"]["input"];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type MutationReactToVideoArgs = {
|
||||||
|
reaction?: InputMaybe<ReactionEnum>;
|
||||||
|
videoId: Scalars["Int"]["input"];
|
||||||
|
};
|
||||||
|
|
||||||
export type MutationRetireTagsArgs = {
|
export type MutationRetireTagsArgs = {
|
||||||
tagIds: Array<Scalars["Int"]["input"]>;
|
tagIds: Array<Scalars["Int"]["input"]>;
|
||||||
};
|
};
|
||||||
@ -2565,6 +2571,22 @@ export type QueryWaitForArgs = {
|
|||||||
duration: Scalars["Float"]["input"];
|
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 = {
|
export type RequestedMedalsGql = {
|
||||||
__typename?: "RequestedMedalsGQL";
|
__typename?: "RequestedMedalsGQL";
|
||||||
dailyMakes50?: Maybe<MedalGql>;
|
dailyMakes50?: Maybe<MedalGql>;
|
||||||
@ -3000,6 +3022,7 @@ export type VideoGql = {
|
|||||||
owner?: Maybe<UserGql>;
|
owner?: Maybe<UserGql>;
|
||||||
playlist?: Maybe<HlsPlaylistGql>;
|
playlist?: Maybe<HlsPlaylistGql>;
|
||||||
private: Scalars["Boolean"]["output"];
|
private: Scalars["Boolean"]["output"];
|
||||||
|
reactions: Array<ReactionGql>;
|
||||||
screenshotUri?: Maybe<Scalars["String"]["output"]>;
|
screenshotUri?: Maybe<Scalars["String"]["output"]>;
|
||||||
shots: Array<ShotGql>;
|
shots: Array<ShotGql>;
|
||||||
startTime?: Maybe<Scalars["DateTime"]["output"]>;
|
startTime?: Maybe<Scalars["DateTime"]["output"]>;
|
||||||
@ -3955,6 +3978,16 @@ export type RetireTagsMutation = {
|
|||||||
retireTags: boolean;
|
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<{
|
export type GetProfileImageUploadLinkMutationVariables = Exact<{
|
||||||
fileExt?: InputMaybe<Scalars["String"]["input"]>;
|
fileExt?: InputMaybe<Scalars["String"]["input"]>;
|
||||||
}>;
|
}>;
|
||||||
@ -6753,6 +6786,55 @@ export type RetireTagsMutationOptions = Apollo.BaseMutationOptions<
|
|||||||
RetireTagsMutation,
|
RetireTagsMutation,
|
||||||
RetireTagsMutationVariables
|
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`
|
export const GetProfileImageUploadLinkDocument = gql`
|
||||||
mutation getProfileImageUploadLink($fileExt: String = ".png") {
|
mutation getProfileImageUploadLink($fileExt: String = ".png") {
|
||||||
getProfileImageUploadLink(fileExt: $fileExt) {
|
getProfileImageUploadLink(fileExt: $fileExt) {
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
mutation RetireTags($tagIds: [Int!]!) {
|
mutation RetireTags($tagIds: [Int!]!) {
|
||||||
retireTags(tagIds: $tagIds)
|
retireTags(tagIds: $tagIds)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mutation DeleteTags($videoId: Int!, $tagsToDelete: [VideoTagInput!]!) {
|
||||||
|
deleteTags(videoId: $videoId, tagsToDelete: $tagsToDelete)
|
||||||
|
}
|
||||||
|
@ -479,6 +479,7 @@ type VideoGQL {
|
|||||||
currentHomography: HomographyInfoGQL
|
currentHomography: HomographyInfoGQL
|
||||||
homographyHistory: [HomographyInfoGQL!]!
|
homographyHistory: [HomographyInfoGQL!]!
|
||||||
currentProcessing: VideoProcessingGQL
|
currentProcessing: VideoProcessingGQL
|
||||||
|
reactions: [ReactionGQL!]!
|
||||||
}
|
}
|
||||||
|
|
||||||
type UploadStreamGQL {
|
type UploadStreamGQL {
|
||||||
@ -612,6 +613,21 @@ type VideoProcessingStatusGQL {
|
|||||||
updatedAt: DateTime
|
updatedAt: DateTime
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type ReactionGQL {
|
||||||
|
videoId: Int!
|
||||||
|
user: UserGQL!
|
||||||
|
reaction: ReactionEnum!
|
||||||
|
createdAt: DateTime
|
||||||
|
updatedAt: DateTime
|
||||||
|
}
|
||||||
|
|
||||||
|
enum ReactionEnum {
|
||||||
|
LIKE
|
||||||
|
HEART
|
||||||
|
BULLSEYE
|
||||||
|
HUNDRED
|
||||||
|
}
|
||||||
|
|
||||||
type RunFeaturesGQL {
|
type RunFeaturesGQL {
|
||||||
runId: Int!
|
runId: Int!
|
||||||
indexInRun: Int!
|
indexInRun: Int!
|
||||||
@ -801,6 +817,7 @@ type Mutation {
|
|||||||
editUploadStream(videoId: Int!, videoMetadata: VideoMetadataInput!): Boolean!
|
editUploadStream(videoId: Int!, videoMetadata: VideoMetadataInput!): Boolean!
|
||||||
deleteVideo(videoId: Int!): Boolean!
|
deleteVideo(videoId: Int!): Boolean!
|
||||||
deleteTags(videoId: Int!, tagsToDelete: [VideoTagInput!]!): Boolean!
|
deleteTags(videoId: Int!, tagsToDelete: [VideoTagInput!]!): Boolean!
|
||||||
|
reactToVideo(videoId: Int!, reaction: ReactionEnum): Boolean!
|
||||||
}
|
}
|
||||||
|
|
||||||
input CreateBucketSetInput {
|
input CreateBucketSetInput {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user