|
|
|
@@ -3191,6 +3191,7 @@ export type GetFeedQuery = {
|
|
|
|
|
id: string;
|
|
|
|
|
lastIntendedSegmentBound?: number | null;
|
|
|
|
|
isCompleted: boolean;
|
|
|
|
|
streamSegmentType: StreamSegmentTypeEnum;
|
|
|
|
|
} | null;
|
|
|
|
|
tags: Array<{
|
|
|
|
|
__typename?: "VideoTag";
|
|
|
|
@@ -3264,6 +3265,7 @@ export type VideoCardFieldsFragment = {
|
|
|
|
|
id: string;
|
|
|
|
|
lastIntendedSegmentBound?: number | null;
|
|
|
|
|
isCompleted: boolean;
|
|
|
|
|
streamSegmentType: StreamSegmentTypeEnum;
|
|
|
|
|
} | null;
|
|
|
|
|
tags: Array<{
|
|
|
|
|
__typename?: "VideoTag";
|
|
|
|
@@ -3340,6 +3342,7 @@ export type GetVideoFeedQuery = {
|
|
|
|
|
id: string;
|
|
|
|
|
lastIntendedSegmentBound?: number | null;
|
|
|
|
|
isCompleted: boolean;
|
|
|
|
|
streamSegmentType: StreamSegmentTypeEnum;
|
|
|
|
|
} | null;
|
|
|
|
|
tags: Array<{
|
|
|
|
|
__typename?: "VideoTag";
|
|
|
|
@@ -3593,6 +3596,8 @@ export type GetRunsForHighlightsQueryVariables = Exact<{
|
|
|
|
|
filterInput: RunFilterInput;
|
|
|
|
|
runIds?: InputMaybe<Array<Scalars["Int"]["input"]> | Scalars["Int"]["input"]>;
|
|
|
|
|
runsOrdering?: InputMaybe<GetRunsOrdering>;
|
|
|
|
|
limit?: Scalars["Int"]["input"];
|
|
|
|
|
countRespectsLimit?: Scalars["Boolean"]["input"];
|
|
|
|
|
}>;
|
|
|
|
|
|
|
|
|
|
export type GetRunsForHighlightsQuery = {
|
|
|
|
@@ -3612,6 +3617,55 @@ export type GetRunsForHighlightsQuery = {
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type PocketingIntentionFragmentFragment = {
|
|
|
|
|
__typename?: "PocketingIntentionFeaturesGQL";
|
|
|
|
|
make?: boolean | null;
|
|
|
|
|
targetPocketDistance?: number | null;
|
|
|
|
|
targetPocketAngle?: number | null;
|
|
|
|
|
targetPocketAngleDirection?: ShotDirectionEnum | null;
|
|
|
|
|
marginOfErrorInDegrees?: number | null;
|
|
|
|
|
intendedPocketType?: PocketEnum | null;
|
|
|
|
|
difficulty?: number | null;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
pocketingIntentionFeatures?: {
|
|
|
|
|
__typename?: "PocketingIntentionFeaturesGQL";
|
|
|
|
|
make?: boolean | null;
|
|
|
|
|
targetPocketDistance?: number | null;
|
|
|
|
|
targetPocketAngle?: number | null;
|
|
|
|
|
targetPocketAngleDirection?: ShotDirectionEnum | null;
|
|
|
|
|
marginOfErrorInDegrees?: number | null;
|
|
|
|
|
intendedPocketType?: PocketEnum | null;
|
|
|
|
|
difficulty?: number | null;
|
|
|
|
|
} | null;
|
|
|
|
|
}>;
|
|
|
|
|
}>;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type GetSerializedShotPathsQueryVariables = Exact<{
|
|
|
|
|
filterInput: FilterInput;
|
|
|
|
|
}>;
|
|
|
|
@@ -3780,6 +3834,15 @@ export type GetShotsWithMetadataFilterResultQuery = {
|
|
|
|
|
name: string;
|
|
|
|
|
};
|
|
|
|
|
}>;
|
|
|
|
|
video?: {
|
|
|
|
|
__typename?: "VideoGQL";
|
|
|
|
|
id: number;
|
|
|
|
|
stream?: {
|
|
|
|
|
__typename?: "UploadStreamGQL";
|
|
|
|
|
id: string;
|
|
|
|
|
streamSegmentType: StreamSegmentTypeEnum;
|
|
|
|
|
} | null;
|
|
|
|
|
} | null;
|
|
|
|
|
}>;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
@@ -3849,6 +3912,15 @@ export type GetShotsWithMetadataQuery = {
|
|
|
|
|
name: string;
|
|
|
|
|
};
|
|
|
|
|
}>;
|
|
|
|
|
video?: {
|
|
|
|
|
__typename?: "VideoGQL";
|
|
|
|
|
id: number;
|
|
|
|
|
stream?: {
|
|
|
|
|
__typename?: "UploadStreamGQL";
|
|
|
|
|
id: string;
|
|
|
|
|
streamSegmentType: StreamSegmentTypeEnum;
|
|
|
|
|
} | null;
|
|
|
|
|
} | null;
|
|
|
|
|
}>;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
@@ -3907,6 +3979,15 @@ export type GetShotsByIdsQuery = {
|
|
|
|
|
notes: string;
|
|
|
|
|
type: { __typename?: "ShotAnnotationTypeGQL"; id: number; name: string };
|
|
|
|
|
}>;
|
|
|
|
|
video?: {
|
|
|
|
|
__typename?: "VideoGQL";
|
|
|
|
|
id: number;
|
|
|
|
|
stream?: {
|
|
|
|
|
__typename?: "UploadStreamGQL";
|
|
|
|
|
id: string;
|
|
|
|
|
streamSegmentType: StreamSegmentTypeEnum;
|
|
|
|
|
} | null;
|
|
|
|
|
} | null;
|
|
|
|
|
}>;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
@@ -3958,6 +4039,15 @@ export type ShotWithAllFeaturesFragment = {
|
|
|
|
|
notes: string;
|
|
|
|
|
type: { __typename?: "ShotAnnotationTypeGQL"; id: number; name: string };
|
|
|
|
|
}>;
|
|
|
|
|
video?: {
|
|
|
|
|
__typename?: "VideoGQL";
|
|
|
|
|
id: number;
|
|
|
|
|
stream?: {
|
|
|
|
|
__typename?: "UploadStreamGQL";
|
|
|
|
|
id: string;
|
|
|
|
|
streamSegmentType: StreamSegmentTypeEnum;
|
|
|
|
|
} | null;
|
|
|
|
|
} | null;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export type EditShotMutationVariables = Exact<{
|
|
|
|
@@ -4026,6 +4116,15 @@ export type EditShotMutation = {
|
|
|
|
|
name: string;
|
|
|
|
|
};
|
|
|
|
|
}>;
|
|
|
|
|
video?: {
|
|
|
|
|
__typename?: "VideoGQL";
|
|
|
|
|
id: number;
|
|
|
|
|
stream?: {
|
|
|
|
|
__typename?: "UploadStreamGQL";
|
|
|
|
|
id: string;
|
|
|
|
|
streamSegmentType: StreamSegmentTypeEnum;
|
|
|
|
|
} | null;
|
|
|
|
|
} | null;
|
|
|
|
|
} | null;
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
@@ -5049,6 +5148,7 @@ export const VideoCardFieldsFragmentDoc = gql`
|
|
|
|
|
id
|
|
|
|
|
lastIntendedSegmentBound
|
|
|
|
|
isCompleted
|
|
|
|
|
streamSegmentType
|
|
|
|
|
}
|
|
|
|
|
tableSize
|
|
|
|
|
tags {
|
|
|
|
@@ -5089,6 +5189,17 @@ export const MedalFieldsFragmentDoc = gql`
|
|
|
|
|
nickname
|
|
|
|
|
}
|
|
|
|
|
`;
|
|
|
|
|
export const PocketingIntentionFragmentFragmentDoc = gql`
|
|
|
|
|
fragment PocketingIntentionFragment on PocketingIntentionFeaturesGQL {
|
|
|
|
|
make
|
|
|
|
|
targetPocketDistance
|
|
|
|
|
targetPocketAngle
|
|
|
|
|
targetPocketAngleDirection
|
|
|
|
|
marginOfErrorInDegrees
|
|
|
|
|
intendedPocketType
|
|
|
|
|
difficulty
|
|
|
|
|
}
|
|
|
|
|
`;
|
|
|
|
|
export const ShotWithAllFeaturesFragmentDoc = gql`
|
|
|
|
|
fragment ShotWithAllFeatures on ShotGQL {
|
|
|
|
|
id
|
|
|
|
@@ -5143,6 +5254,13 @@ export const ShotWithAllFeaturesFragmentDoc = gql`
|
|
|
|
|
}
|
|
|
|
|
notes
|
|
|
|
|
}
|
|
|
|
|
video {
|
|
|
|
|
id
|
|
|
|
|
stream {
|
|
|
|
|
id
|
|
|
|
|
streamSegmentType
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
`;
|
|
|
|
|
export const UserFragmentFragmentDoc = gql`
|
|
|
|
@@ -6060,11 +6178,15 @@ export const GetRunsForHighlightsDocument = gql`
|
|
|
|
|
$filterInput: RunFilterInput!
|
|
|
|
|
$runIds: [Int!] = null
|
|
|
|
|
$runsOrdering: GetRunsOrdering
|
|
|
|
|
$limit: Int! = 500
|
|
|
|
|
$countRespectsLimit: Boolean! = false
|
|
|
|
|
) {
|
|
|
|
|
getRuns(
|
|
|
|
|
filterInput: $filterInput
|
|
|
|
|
runIds: $runIds
|
|
|
|
|
runsOrdering: $runsOrdering
|
|
|
|
|
limit: $limit
|
|
|
|
|
countRespectsLimit: $countRespectsLimit
|
|
|
|
|
) {
|
|
|
|
|
count
|
|
|
|
|
runs {
|
|
|
|
@@ -6097,6 +6219,8 @@ export const GetRunsForHighlightsDocument = gql`
|
|
|
|
|
* filterInput: // value for 'filterInput'
|
|
|
|
|
* runIds: // value for 'runIds'
|
|
|
|
|
* runsOrdering: // value for 'runsOrdering'
|
|
|
|
|
* limit: // value for 'limit'
|
|
|
|
|
* countRespectsLimit: // value for 'countRespectsLimit'
|
|
|
|
|
* },
|
|
|
|
|
* });
|
|
|
|
|
*/
|
|
|
|
@@ -6149,6 +6273,105 @@ 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
|
|
|
|
|
pocketingIntentionFeatures {
|
|
|
|
|
...PocketingIntentionFragment
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
runIds
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
${PocketingIntentionFragmentFragmentDoc}
|
|
|
|
|
`;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* __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) {
|
|
|
|
|