|
|
|
@@ -2153,6 +2153,7 @@ export type Mutation = {
|
|
|
|
|
getHlsInitUploadLink: GetUploadLinkReturn;
|
|
|
|
|
getProfileImageUploadLink: GetProfileUploadLinkReturn;
|
|
|
|
|
getUploadLink: GetUploadLinkReturn;
|
|
|
|
|
retireTags: Scalars["Boolean"]["output"];
|
|
|
|
|
setLoggerLevel: Scalars["Boolean"]["output"];
|
|
|
|
|
setSegmentDuration: Scalars["Boolean"]["output"];
|
|
|
|
|
unfollowUser: UserGql;
|
|
|
|
@@ -2217,6 +2218,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 +2439,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>;
|
|
|
|
@@ -2556,6 +2565,12 @@ export type SegmentEndFramesGql = {
|
|
|
|
|
segmentEndFrames: Array<Scalars["Int"]["output"]>;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type SegmentInfo = {
|
|
|
|
|
__typename?: "SegmentInfo";
|
|
|
|
|
index: Scalars["Int"]["output"];
|
|
|
|
|
time: Scalars["Float"]["output"];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type SegmentStartTimesGql = {
|
|
|
|
|
__typename?: "SegmentStartTimesGQL";
|
|
|
|
|
id: Scalars["Int"]["output"];
|
|
|
|
@@ -2608,6 +2623,7 @@ export type ShotGql = {
|
|
|
|
|
createdAt?: Maybe<Scalars["DateTime"]["output"]>;
|
|
|
|
|
cueObjectFeatures?: Maybe<CueObjectFeaturesGql>;
|
|
|
|
|
endFrame: Scalars["Int"]["output"];
|
|
|
|
|
endSegment: SegmentInfo;
|
|
|
|
|
endTime: Scalars["Float"]["output"];
|
|
|
|
|
falsePositiveScore?: Maybe<Scalars["Float"]["output"]>;
|
|
|
|
|
id: Scalars["Int"]["output"];
|
|
|
|
@@ -2617,6 +2633,7 @@ export type ShotGql = {
|
|
|
|
|
runFeatures?: Maybe<RunFeaturesGql>;
|
|
|
|
|
serializedShotPaths?: Maybe<SerializedShotPathsGql>;
|
|
|
|
|
startFrame: Scalars["Int"]["output"];
|
|
|
|
|
startSegment: SegmentInfo;
|
|
|
|
|
startTime: Scalars["Float"]["output"];
|
|
|
|
|
updatedAt?: Maybe<Scalars["DateTime"]["output"]>;
|
|
|
|
|
user?: Maybe<UserGql>;
|
|
|
|
@@ -2708,13 +2725,20 @@ export type SuccessfulAddAddShotAnnotationErrors =
|
|
|
|
|
| AddShotAnnotationErrors
|
|
|
|
|
| SuccessfulAdd;
|
|
|
|
|
|
|
|
|
|
export type TagGql = {
|
|
|
|
|
__typename?: "TagGQL";
|
|
|
|
|
group?: Maybe<Scalars["String"]["output"]>;
|
|
|
|
|
export type TagClassGql = {
|
|
|
|
|
__typename?: "TagClassGQL";
|
|
|
|
|
id: Scalars["Int"]["output"];
|
|
|
|
|
name: Scalars["String"]["output"];
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type TagGql = {
|
|
|
|
|
__typename?: "TagGQL";
|
|
|
|
|
id: Scalars["Int"]["output"];
|
|
|
|
|
name: Scalars["String"]["output"];
|
|
|
|
|
retired: Scalars["Boolean"]["output"];
|
|
|
|
|
tagClasses?: Maybe<Array<TagClassGql>>;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type TargetMetricsGql = {
|
|
|
|
|
__typename?: "TargetMetricsGQL";
|
|
|
|
|
averageDifficulty?: Maybe<Scalars["Float"]["output"]>;
|
|
|
|
@@ -2869,6 +2893,7 @@ export type VideoFilterInput = {
|
|
|
|
|
|
|
|
|
|
export type VideoGql = {
|
|
|
|
|
__typename?: "VideoGQL";
|
|
|
|
|
averageDifficulty?: Maybe<Scalars["Float"]["output"]>;
|
|
|
|
|
averageTimeBetweenShots?: Maybe<Scalars["Float"]["output"]>;
|
|
|
|
|
createdAt?: Maybe<Scalars["DateTime"]["output"]>;
|
|
|
|
|
currentHomography?: Maybe<HomographyInfoGql>;
|
|
|
|
@@ -3032,6 +3057,8 @@ export type GetFeedQuery = {
|
|
|
|
|
totalShotsMade: number;
|
|
|
|
|
totalShots: number;
|
|
|
|
|
makePercentage: number;
|
|
|
|
|
averageTimeBetweenShots?: number | null;
|
|
|
|
|
averageDifficulty?: number | null;
|
|
|
|
|
createdAt?: any | null;
|
|
|
|
|
updatedAt?: any | null;
|
|
|
|
|
startTime?: any | null;
|
|
|
|
@@ -3086,6 +3113,8 @@ export type VideoCardFieldsFragment = {
|
|
|
|
|
totalShotsMade: number;
|
|
|
|
|
totalShots: number;
|
|
|
|
|
makePercentage: number;
|
|
|
|
|
averageTimeBetweenShots?: number | null;
|
|
|
|
|
averageDifficulty?: number | null;
|
|
|
|
|
createdAt?: any | null;
|
|
|
|
|
updatedAt?: any | null;
|
|
|
|
|
startTime?: any | null;
|
|
|
|
@@ -3143,6 +3172,8 @@ export type GetVideoFeedQuery = {
|
|
|
|
|
totalShotsMade: number;
|
|
|
|
|
totalShots: number;
|
|
|
|
|
makePercentage: number;
|
|
|
|
|
averageTimeBetweenShots?: number | null;
|
|
|
|
|
averageDifficulty?: number | null;
|
|
|
|
|
createdAt?: any | null;
|
|
|
|
|
updatedAt?: any | null;
|
|
|
|
|
startTime?: any | null;
|
|
|
|
@@ -3383,6 +3414,29 @@ export type GetMedalsQuery = {
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type GetRunsForHighlightsQueryVariables = Exact<{
|
|
|
|
|
filterInput: RunFilterInput;
|
|
|
|
|
runIds?: InputMaybe<Array<Scalars["Int"]["input"]> | Scalars["Int"]["input"]>;
|
|
|
|
|
runsOrdering?: InputMaybe<GetRunsOrdering>;
|
|
|
|
|
}>;
|
|
|
|
|
|
|
|
|
|
export type GetRunsForHighlightsQuery = {
|
|
|
|
|
__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 }>;
|
|
|
|
|
}>;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type GetSerializedShotPathsQueryVariables = Exact<{
|
|
|
|
|
filterInput: FilterInput;
|
|
|
|
|
}>;
|
|
|
|
@@ -3510,6 +3564,8 @@ export type GetShotsWithMetadataFilterResultQuery = {
|
|
|
|
|
falsePositiveScore?: number | null;
|
|
|
|
|
createdAt?: any | null;
|
|
|
|
|
updatedAt?: any | null;
|
|
|
|
|
startSegment: { __typename?: "SegmentInfo"; index: number; time: number };
|
|
|
|
|
endSegment: { __typename?: "SegmentInfo"; index: number; time: number };
|
|
|
|
|
user?: { __typename?: "UserGQL"; id: number } | null;
|
|
|
|
|
cueObjectFeatures?: {
|
|
|
|
|
__typename?: "CueObjectFeaturesGQL";
|
|
|
|
@@ -3577,6 +3633,8 @@ export type GetShotsWithMetadataQuery = {
|
|
|
|
|
falsePositiveScore?: number | null;
|
|
|
|
|
createdAt?: any | null;
|
|
|
|
|
updatedAt?: any | null;
|
|
|
|
|
startSegment: { __typename?: "SegmentInfo"; index: number; time: number };
|
|
|
|
|
endSegment: { __typename?: "SegmentInfo"; index: number; time: number };
|
|
|
|
|
user?: { __typename?: "UserGQL"; id: number } | null;
|
|
|
|
|
cueObjectFeatures?: {
|
|
|
|
|
__typename?: "CueObjectFeaturesGQL";
|
|
|
|
@@ -3637,6 +3695,8 @@ export type GetShotsByIdsQuery = {
|
|
|
|
|
falsePositiveScore?: number | null;
|
|
|
|
|
createdAt?: any | null;
|
|
|
|
|
updatedAt?: any | null;
|
|
|
|
|
startSegment: { __typename?: "SegmentInfo"; index: number; time: number };
|
|
|
|
|
endSegment: { __typename?: "SegmentInfo"; index: number; time: number };
|
|
|
|
|
user?: { __typename?: "UserGQL"; id: number } | null;
|
|
|
|
|
cueObjectFeatures?: {
|
|
|
|
|
__typename?: "CueObjectFeaturesGQL";
|
|
|
|
@@ -3686,6 +3746,8 @@ export type ShotWithAllFeaturesFragment = {
|
|
|
|
|
falsePositiveScore?: number | null;
|
|
|
|
|
createdAt?: any | null;
|
|
|
|
|
updatedAt?: any | null;
|
|
|
|
|
startSegment: { __typename?: "SegmentInfo"; index: number; time: number };
|
|
|
|
|
endSegment: { __typename?: "SegmentInfo"; index: number; time: number };
|
|
|
|
|
user?: { __typename?: "UserGQL"; id: number } | null;
|
|
|
|
|
cueObjectFeatures?: {
|
|
|
|
|
__typename?: "CueObjectFeaturesGQL";
|
|
|
|
@@ -3748,6 +3810,8 @@ export type EditShotMutation = {
|
|
|
|
|
falsePositiveScore?: number | null;
|
|
|
|
|
createdAt?: any | null;
|
|
|
|
|
updatedAt?: any | null;
|
|
|
|
|
startSegment: { __typename?: "SegmentInfo"; index: number; time: number };
|
|
|
|
|
endSegment: { __typename?: "SegmentInfo"; index: number; time: number };
|
|
|
|
|
user?: { __typename?: "UserGQL"; id: number } | null;
|
|
|
|
|
cueObjectFeatures?: {
|
|
|
|
|
__typename?: "CueObjectFeaturesGQL";
|
|
|
|
@@ -3791,6 +3855,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"]>;
|
|
|
|
|
}>;
|
|
|
|
@@ -3930,7 +4003,16 @@ export type GetUserTagsQueryVariables = Exact<{ [key: string]: never }>;
|
|
|
|
|
|
|
|
|
|
export type GetUserTagsQuery = {
|
|
|
|
|
__typename?: "Query";
|
|
|
|
|
getUserTags: Array<{ __typename?: "TagGQL"; id: number; name: string }>;
|
|
|
|
|
getUserTags: Array<{
|
|
|
|
|
__typename?: "TagGQL";
|
|
|
|
|
id: number;
|
|
|
|
|
name: string;
|
|
|
|
|
tagClasses?: Array<{
|
|
|
|
|
__typename?: "TagClassGQL";
|
|
|
|
|
id: number;
|
|
|
|
|
name: string;
|
|
|
|
|
}> | null;
|
|
|
|
|
}>;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type FollowUserMutationVariables = Exact<{
|
|
|
|
@@ -4769,6 +4851,8 @@ export const VideoCardFieldsFragmentDoc = gql`
|
|
|
|
|
totalShotsMade
|
|
|
|
|
totalShots
|
|
|
|
|
makePercentage
|
|
|
|
|
averageTimeBetweenShots
|
|
|
|
|
averageDifficulty
|
|
|
|
|
createdAt
|
|
|
|
|
updatedAt
|
|
|
|
|
startTime
|
|
|
|
@@ -4814,6 +4898,14 @@ export const ShotWithAllFeaturesFragmentDoc = gql`
|
|
|
|
|
endFrame
|
|
|
|
|
startTime @client
|
|
|
|
|
endTime @client
|
|
|
|
|
startSegment @client {
|
|
|
|
|
index
|
|
|
|
|
time
|
|
|
|
|
}
|
|
|
|
|
endSegment @client {
|
|
|
|
|
index
|
|
|
|
|
time
|
|
|
|
|
}
|
|
|
|
|
user {
|
|
|
|
|
id
|
|
|
|
|
}
|
|
|
|
@@ -5715,6 +5807,100 @@ export type GetMedalsQueryResult = Apollo.QueryResult<
|
|
|
|
|
GetMedalsQuery,
|
|
|
|
|
GetMedalsQueryVariables
|
|
|
|
|
>;
|
|
|
|
|
export const GetRunsForHighlightsDocument = gql`
|
|
|
|
|
query GetRunsForHighlights(
|
|
|
|
|
$filterInput: RunFilterInput!
|
|
|
|
|
$runIds: [Int!] = null
|
|
|
|
|
$runsOrdering: GetRunsOrdering
|
|
|
|
|
) {
|
|
|
|
|
getRuns(
|
|
|
|
|
filterInput: $filterInput
|
|
|
|
|
runIds: $runIds
|
|
|
|
|
runsOrdering: $runsOrdering
|
|
|
|
|
) {
|
|
|
|
|
count
|
|
|
|
|
runs {
|
|
|
|
|
id
|
|
|
|
|
runLength
|
|
|
|
|
userId
|
|
|
|
|
videoId
|
|
|
|
|
shots {
|
|
|
|
|
videoId
|
|
|
|
|
id
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
runIds
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* __useGetRunsForHighlightsQuery__
|
|
|
|
|
*
|
|
|
|
|
* To run a query within a React component, call `useGetRunsForHighlightsQuery` and pass it any options that fit your needs.
|
|
|
|
|
* When your component renders, `useGetRunsForHighlightsQuery` 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 } = useGetRunsForHighlightsQuery({
|
|
|
|
|
* variables: {
|
|
|
|
|
* filterInput: // value for 'filterInput'
|
|
|
|
|
* runIds: // value for 'runIds'
|
|
|
|
|
* runsOrdering: // value for 'runsOrdering'
|
|
|
|
|
* },
|
|
|
|
|
* });
|
|
|
|
|
*/
|
|
|
|
|
export function useGetRunsForHighlightsQuery(
|
|
|
|
|
baseOptions: Apollo.QueryHookOptions<
|
|
|
|
|
GetRunsForHighlightsQuery,
|
|
|
|
|
GetRunsForHighlightsQueryVariables
|
|
|
|
|
>,
|
|
|
|
|
) {
|
|
|
|
|
const options = { ...defaultOptions, ...baseOptions };
|
|
|
|
|
return Apollo.useQuery<
|
|
|
|
|
GetRunsForHighlightsQuery,
|
|
|
|
|
GetRunsForHighlightsQueryVariables
|
|
|
|
|
>(GetRunsForHighlightsDocument, options);
|
|
|
|
|
}
|
|
|
|
|
export function useGetRunsForHighlightsLazyQuery(
|
|
|
|
|
baseOptions?: Apollo.LazyQueryHookOptions<
|
|
|
|
|
GetRunsForHighlightsQuery,
|
|
|
|
|
GetRunsForHighlightsQueryVariables
|
|
|
|
|
>,
|
|
|
|
|
) {
|
|
|
|
|
const options = { ...defaultOptions, ...baseOptions };
|
|
|
|
|
return Apollo.useLazyQuery<
|
|
|
|
|
GetRunsForHighlightsQuery,
|
|
|
|
|
GetRunsForHighlightsQueryVariables
|
|
|
|
|
>(GetRunsForHighlightsDocument, options);
|
|
|
|
|
}
|
|
|
|
|
export function useGetRunsForHighlightsSuspenseQuery(
|
|
|
|
|
baseOptions?: Apollo.SuspenseQueryHookOptions<
|
|
|
|
|
GetRunsForHighlightsQuery,
|
|
|
|
|
GetRunsForHighlightsQueryVariables
|
|
|
|
|
>,
|
|
|
|
|
) {
|
|
|
|
|
const options = { ...defaultOptions, ...baseOptions };
|
|
|
|
|
return Apollo.useSuspenseQuery<
|
|
|
|
|
GetRunsForHighlightsQuery,
|
|
|
|
|
GetRunsForHighlightsQueryVariables
|
|
|
|
|
>(GetRunsForHighlightsDocument, options);
|
|
|
|
|
}
|
|
|
|
|
export type GetRunsForHighlightsQueryHookResult = ReturnType<
|
|
|
|
|
typeof useGetRunsForHighlightsQuery
|
|
|
|
|
>;
|
|
|
|
|
export type GetRunsForHighlightsLazyQueryHookResult = ReturnType<
|
|
|
|
|
typeof useGetRunsForHighlightsLazyQuery
|
|
|
|
|
>;
|
|
|
|
|
export type GetRunsForHighlightsSuspenseQueryHookResult = ReturnType<
|
|
|
|
|
typeof useGetRunsForHighlightsSuspenseQuery
|
|
|
|
|
>;
|
|
|
|
|
export type GetRunsForHighlightsQueryResult = Apollo.QueryResult<
|
|
|
|
|
GetRunsForHighlightsQuery,
|
|
|
|
|
GetRunsForHighlightsQueryVariables
|
|
|
|
|
>;
|
|
|
|
|
export const GetSerializedShotPathsDocument = gql`
|
|
|
|
|
query GetSerializedShotPaths($filterInput: FilterInput!) {
|
|
|
|
|
getShots(filterInput: $filterInput) {
|
|
|
|
@@ -6428,6 +6614,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) {
|
|
|
|
@@ -6935,6 +7169,10 @@ export const GetUserTagsDocument = gql`
|
|
|
|
|
getUserTags {
|
|
|
|
|
id
|
|
|
|
|
name
|
|
|
|
|
tagClasses {
|
|
|
|
|
id
|
|
|
|
|
name
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
`;
|
|
|
|
|