Compare commits
13 Commits
a55bfa8bd4
...
dean/updat
Author | SHA1 | Date | |
---|---|---|---|
170ff70b7a | |||
8df09b8c93 | |||
644ea66e98 | |||
0a5097c5c0 | |||
f4445f7ecb | |||
b18fedae8e | |||
31baa2b096 | |||
85cd37f70f | |||
b53aa172fa | |||
df2e534745 | |||
|
ea4980947f | ||
65475bca9b | |||
280f5a66bd |
183
src/index.tsx
183
src/index.tsx
@@ -3210,6 +3210,23 @@ export type GetFeedQuery = {
|
|||||||
status: ProcessingStatusEnum;
|
status: ProcessingStatusEnum;
|
||||||
}>;
|
}>;
|
||||||
} | null;
|
} | null;
|
||||||
|
reactions: Array<{
|
||||||
|
__typename?: "ReactionGQL";
|
||||||
|
videoId: number;
|
||||||
|
reaction: ReactionEnum;
|
||||||
|
user: {
|
||||||
|
__typename?: "UserGQL";
|
||||||
|
id: number;
|
||||||
|
username: string;
|
||||||
|
profileImageUri?: string | null;
|
||||||
|
followers?: Array<{
|
||||||
|
__typename?: "UserGQL";
|
||||||
|
id: number;
|
||||||
|
username: string;
|
||||||
|
profileImageUri?: string | null;
|
||||||
|
}> | null;
|
||||||
|
};
|
||||||
|
}>;
|
||||||
}>;
|
}>;
|
||||||
pageInfo: {
|
pageInfo: {
|
||||||
__typename?: "PageInfoGQL";
|
__typename?: "PageInfoGQL";
|
||||||
@@ -3263,6 +3280,23 @@ export type VideoCardFieldsFragment = {
|
|||||||
status: ProcessingStatusEnum;
|
status: ProcessingStatusEnum;
|
||||||
}>;
|
}>;
|
||||||
} | null;
|
} | null;
|
||||||
|
reactions: Array<{
|
||||||
|
__typename?: "ReactionGQL";
|
||||||
|
videoId: number;
|
||||||
|
reaction: ReactionEnum;
|
||||||
|
user: {
|
||||||
|
__typename?: "UserGQL";
|
||||||
|
id: number;
|
||||||
|
username: string;
|
||||||
|
profileImageUri?: string | null;
|
||||||
|
followers?: Array<{
|
||||||
|
__typename?: "UserGQL";
|
||||||
|
id: number;
|
||||||
|
username: string;
|
||||||
|
profileImageUri?: string | null;
|
||||||
|
}> | null;
|
||||||
|
};
|
||||||
|
}>;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type GetVideoFeedQueryVariables = Exact<{
|
export type GetVideoFeedQueryVariables = Exact<{
|
||||||
@@ -3325,6 +3359,23 @@ export type GetVideoFeedQuery = {
|
|||||||
status: ProcessingStatusEnum;
|
status: ProcessingStatusEnum;
|
||||||
}>;
|
}>;
|
||||||
} | null;
|
} | null;
|
||||||
|
reactions: Array<{
|
||||||
|
__typename?: "ReactionGQL";
|
||||||
|
videoId: number;
|
||||||
|
reaction: ReactionEnum;
|
||||||
|
user: {
|
||||||
|
__typename?: "UserGQL";
|
||||||
|
id: number;
|
||||||
|
username: string;
|
||||||
|
profileImageUri?: string | null;
|
||||||
|
followers?: Array<{
|
||||||
|
__typename?: "UserGQL";
|
||||||
|
id: number;
|
||||||
|
username: string;
|
||||||
|
profileImageUri?: string | null;
|
||||||
|
}> | null;
|
||||||
|
};
|
||||||
|
}>;
|
||||||
}>;
|
}>;
|
||||||
pageInfo: {
|
pageInfo: {
|
||||||
__typename?: "PageInfoGQL";
|
__typename?: "PageInfoGQL";
|
||||||
@@ -3528,6 +3579,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"]>;
|
||||||
@@ -3978,6 +4039,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"]>;
|
||||||
}>;
|
}>;
|
||||||
@@ -4996,6 +5067,20 @@ export const VideoCardFieldsFragmentDoc = gql`
|
|||||||
status
|
status
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
reactions {
|
||||||
|
videoId
|
||||||
|
user {
|
||||||
|
id
|
||||||
|
username
|
||||||
|
profileImageUri
|
||||||
|
followers {
|
||||||
|
id
|
||||||
|
username
|
||||||
|
profileImageUri
|
||||||
|
}
|
||||||
|
}
|
||||||
|
reaction
|
||||||
|
}
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
export const MedalFieldsFragmentDoc = gql`
|
export const MedalFieldsFragmentDoc = gql`
|
||||||
@@ -5921,6 +6006,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!
|
||||||
@@ -6776,6 +6910,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) {
|
||||||
|
@@ -58,6 +58,20 @@ fragment VideoCardFields on VideoGQL {
|
|||||||
status
|
status
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
reactions {
|
||||||
|
videoId
|
||||||
|
user {
|
||||||
|
id
|
||||||
|
username
|
||||||
|
profileImageUri
|
||||||
|
followers {
|
||||||
|
id
|
||||||
|
username
|
||||||
|
profileImageUri
|
||||||
|
}
|
||||||
|
}
|
||||||
|
reaction
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
query GetVideoFeed(
|
query GetVideoFeed(
|
||||||
|
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)
|
||||||
|
}
|
@@ -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)
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user