|
|
|
@@ -3210,23 +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;
|
|
|
|
|
followers?: Array<{
|
|
|
|
|
__typename?: "UserGQL";
|
|
|
|
|
id: number;
|
|
|
|
|
username: string;
|
|
|
|
|
profileImageUri?: string | null;
|
|
|
|
|
}> | null;
|
|
|
|
|
};
|
|
|
|
|
}>;
|
|
|
|
|
}>;
|
|
|
|
|
pageInfo: {
|
|
|
|
|
__typename?: "PageInfoGQL";
|
|
|
|
@@ -3280,23 +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;
|
|
|
|
|
followers?: Array<{
|
|
|
|
|
__typename?: "UserGQL";
|
|
|
|
|
id: number;
|
|
|
|
|
username: string;
|
|
|
|
|
profileImageUri?: string | null;
|
|
|
|
|
}> | null;
|
|
|
|
|
};
|
|
|
|
|
}>;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type GetVideoFeedQueryVariables = Exact<{
|
|
|
|
@@ -3359,23 +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;
|
|
|
|
|
followers?: Array<{
|
|
|
|
|
__typename?: "UserGQL";
|
|
|
|
|
id: number;
|
|
|
|
|
username: string;
|
|
|
|
|
profileImageUri?: string | null;
|
|
|
|
|
}> | null;
|
|
|
|
|
};
|
|
|
|
|
}>;
|
|
|
|
|
}>;
|
|
|
|
|
pageInfo: {
|
|
|
|
|
__typename?: "PageInfoGQL";
|
|
|
|
@@ -3579,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"]>;
|
|
|
|
@@ -3612,38 +3551,6 @@ export type GetRunsForHighlightsQuery = {
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type GetRunsWithTimestampsQueryVariables = Exact<{
|
|
|
|
|
filterInput: RunFilterInput;
|
|
|
|
|
runIds?: InputMaybe<Array<Scalars["Int"]["input"]> | Scalars["Int"]["input"]>;
|
|
|
|
|
runsOrdering?: InputMaybe<GetRunsOrdering>;
|
|
|
|
|
}>;
|
|
|
|
|
|
|
|
|
|
export type GetRunsWithTimestampsQuery = {
|
|
|
|
|
__typename?: "Query";
|
|
|
|
|
getRuns: {
|
|
|
|
|
__typename?: "GetRunsResult";
|
|
|
|
|
count?: number | null;
|
|
|
|
|
runIds: Array<number>;
|
|
|
|
|
runs: Array<{
|
|
|
|
|
__typename?: "RunGQL";
|
|
|
|
|
id: number;
|
|
|
|
|
runLength: number;
|
|
|
|
|
userId: number;
|
|
|
|
|
videoId: number;
|
|
|
|
|
shots: Array<{
|
|
|
|
|
__typename?: "ShotGQL";
|
|
|
|
|
videoId: number;
|
|
|
|
|
id: number;
|
|
|
|
|
createdAt?: any | null;
|
|
|
|
|
shotDifficulty?: {
|
|
|
|
|
__typename?: "PocketingIntentionFeaturesGQL";
|
|
|
|
|
difficulty?: number | null;
|
|
|
|
|
} | null;
|
|
|
|
|
}>;
|
|
|
|
|
}>;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type GetSerializedShotPathsQueryVariables = Exact<{
|
|
|
|
|
filterInput: FilterInput;
|
|
|
|
|
}>;
|
|
|
|
@@ -4071,16 +3978,6 @@ export type RetireTagsMutation = {
|
|
|
|
|
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<{
|
|
|
|
|
fileExt?: InputMaybe<Scalars["String"]["input"]>;
|
|
|
|
|
}>;
|
|
|
|
@@ -5099,20 +4996,6 @@ export const VideoCardFieldsFragmentDoc = gql`
|
|
|
|
|
status
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
reactions {
|
|
|
|
|
videoId
|
|
|
|
|
user {
|
|
|
|
|
id
|
|
|
|
|
username
|
|
|
|
|
profileImageUri
|
|
|
|
|
followers {
|
|
|
|
|
id
|
|
|
|
|
username
|
|
|
|
|
profileImageUri
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
reaction
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
`;
|
|
|
|
|
export const MedalFieldsFragmentDoc = gql`
|
|
|
|
@@ -6038,55 +5921,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!
|
|
|
|
@@ -6181,104 +6015,6 @@ export type GetRunsForHighlightsQueryResult = Apollo.QueryResult<
|
|
|
|
|
GetRunsForHighlightsQuery,
|
|
|
|
|
GetRunsForHighlightsQueryVariables
|
|
|
|
|
>;
|
|
|
|
|
export const GetRunsWithTimestampsDocument = gql`
|
|
|
|
|
query GetRunsWithTimestamps(
|
|
|
|
|
$filterInput: RunFilterInput!
|
|
|
|
|
$runIds: [Int!] = null
|
|
|
|
|
$runsOrdering: GetRunsOrdering
|
|
|
|
|
) {
|
|
|
|
|
getRuns(
|
|
|
|
|
filterInput: $filterInput
|
|
|
|
|
runIds: $runIds
|
|
|
|
|
runsOrdering: $runsOrdering
|
|
|
|
|
) {
|
|
|
|
|
count
|
|
|
|
|
runs {
|
|
|
|
|
id
|
|
|
|
|
runLength
|
|
|
|
|
userId
|
|
|
|
|
videoId
|
|
|
|
|
shots {
|
|
|
|
|
videoId
|
|
|
|
|
id
|
|
|
|
|
createdAt
|
|
|
|
|
shotDifficulty: pocketingIntentionFeatures {
|
|
|
|
|
difficulty
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
runIds
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* __useGetRunsWithTimestampsQuery__
|
|
|
|
|
*
|
|
|
|
|
* To run a query within a React component, call `useGetRunsWithTimestampsQuery` and pass it any options that fit your needs.
|
|
|
|
|
* When your component renders, `useGetRunsWithTimestampsQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
|
|
|
* you can use to render your UI.
|
|
|
|
|
*
|
|
|
|
|
* @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
|
|
|
*
|
|
|
|
|
* @example
|
|
|
|
|
* const { data, loading, error } = useGetRunsWithTimestampsQuery({
|
|
|
|
|
* variables: {
|
|
|
|
|
* filterInput: // value for 'filterInput'
|
|
|
|
|
* runIds: // value for 'runIds'
|
|
|
|
|
* runsOrdering: // value for 'runsOrdering'
|
|
|
|
|
* },
|
|
|
|
|
* });
|
|
|
|
|
*/
|
|
|
|
|
export function useGetRunsWithTimestampsQuery(
|
|
|
|
|
baseOptions: Apollo.QueryHookOptions<
|
|
|
|
|
GetRunsWithTimestampsQuery,
|
|
|
|
|
GetRunsWithTimestampsQueryVariables
|
|
|
|
|
>,
|
|
|
|
|
) {
|
|
|
|
|
const options = { ...defaultOptions, ...baseOptions };
|
|
|
|
|
return Apollo.useQuery<
|
|
|
|
|
GetRunsWithTimestampsQuery,
|
|
|
|
|
GetRunsWithTimestampsQueryVariables
|
|
|
|
|
>(GetRunsWithTimestampsDocument, options);
|
|
|
|
|
}
|
|
|
|
|
export function useGetRunsWithTimestampsLazyQuery(
|
|
|
|
|
baseOptions?: Apollo.LazyQueryHookOptions<
|
|
|
|
|
GetRunsWithTimestampsQuery,
|
|
|
|
|
GetRunsWithTimestampsQueryVariables
|
|
|
|
|
>,
|
|
|
|
|
) {
|
|
|
|
|
const options = { ...defaultOptions, ...baseOptions };
|
|
|
|
|
return Apollo.useLazyQuery<
|
|
|
|
|
GetRunsWithTimestampsQuery,
|
|
|
|
|
GetRunsWithTimestampsQueryVariables
|
|
|
|
|
>(GetRunsWithTimestampsDocument, options);
|
|
|
|
|
}
|
|
|
|
|
export function useGetRunsWithTimestampsSuspenseQuery(
|
|
|
|
|
baseOptions?: Apollo.SuspenseQueryHookOptions<
|
|
|
|
|
GetRunsWithTimestampsQuery,
|
|
|
|
|
GetRunsWithTimestampsQueryVariables
|
|
|
|
|
>,
|
|
|
|
|
) {
|
|
|
|
|
const options = { ...defaultOptions, ...baseOptions };
|
|
|
|
|
return Apollo.useSuspenseQuery<
|
|
|
|
|
GetRunsWithTimestampsQuery,
|
|
|
|
|
GetRunsWithTimestampsQueryVariables
|
|
|
|
|
>(GetRunsWithTimestampsDocument, options);
|
|
|
|
|
}
|
|
|
|
|
export type GetRunsWithTimestampsQueryHookResult = ReturnType<
|
|
|
|
|
typeof useGetRunsWithTimestampsQuery
|
|
|
|
|
>;
|
|
|
|
|
export type GetRunsWithTimestampsLazyQueryHookResult = ReturnType<
|
|
|
|
|
typeof useGetRunsWithTimestampsLazyQuery
|
|
|
|
|
>;
|
|
|
|
|
export type GetRunsWithTimestampsSuspenseQueryHookResult = ReturnType<
|
|
|
|
|
typeof useGetRunsWithTimestampsSuspenseQuery
|
|
|
|
|
>;
|
|
|
|
|
export type GetRunsWithTimestampsQueryResult = Apollo.QueryResult<
|
|
|
|
|
GetRunsWithTimestampsQuery,
|
|
|
|
|
GetRunsWithTimestampsQueryVariables
|
|
|
|
|
>;
|
|
|
|
|
export const GetSerializedShotPathsDocument = gql`
|
|
|
|
|
query GetSerializedShotPaths($filterInput: FilterInput!) {
|
|
|
|
|
getShots(filterInput: $filterInput) {
|
|
|
|
@@ -7040,55 +6776,6 @@ export type RetireTagsMutationOptions = Apollo.BaseMutationOptions<
|
|
|
|
|
RetireTagsMutation,
|
|
|
|
|
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`
|
|
|
|
|
mutation getProfileImageUploadLink($fileExt: String = ".png") {
|
|
|
|
|
getProfileImageUploadLink(fileExt: $fileExt) {
|
|
|
|
|