Add reactions gql to feed and react mutation operation #175
@ -3528,6 +3528,16 @@ 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<{
|
export type GetRunsForHighlightsQueryVariables = Exact<{
|
||||||
filterInput: RunFilterInput;
|
filterInput: RunFilterInput;
|
||||||
runIds?: InputMaybe<Array<Scalars["Int"]["input"]> | Scalars["Int"]["input"]>;
|
runIds?: InputMaybe<Array<Scalars["Int"]["input"]> | Scalars["Int"]["input"]>;
|
||||||
@ -5931,6 +5941,55 @@ export type GetMedalsQueryResult = Apollo.QueryResult<
|
|||||||
GetMedalsQuery,
|
GetMedalsQuery,
|
||||||
GetMedalsQueryVariables
|
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`
|
export const GetRunsForHighlightsDocument = gql`
|
||||||
query GetRunsForHighlights(
|
query GetRunsForHighlights(
|
||||||
$filterInput: RunFilterInput!
|
$filterInput: RunFilterInput!
|
||||||
|
3
src/operations/reactions.gql
Normal file
3
src/operations/reactions.gql
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
mutation ReactToVideo($videoId: Int!, $reaction: ReactionEnum) {
|
||||||
|
reactToVideo(videoId: $videoId, reaction: $reaction)
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user