diff --git a/src/index.tsx b/src/index.tsx index 22de09d..ea00d99 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -6696,6 +6696,7 @@ export type ReactToVideoMutation = { }; export type GetShotLabVideosQueryVariables = Exact<{ + userId: Scalars["Int"]["input"]; limit?: Scalars["Int"]["input"]; }>; @@ -6746,29 +6747,13 @@ export type GetRecordedStreamShotsQuery = { __typename?: "SerializedShotPathsGQL"; b64EncodedBuffer?: string | null; } | null; - cueObjectFeatures?: { - __typename?: "CueObjectFeaturesGQL"; - cueObjectDistance?: number | null; - cueObjectAngle?: number | null; - cueBallSpeed?: number | null; - shotDirection?: ShotDirectionEnum | null; - spinType?: SpinTypeEnum | null; - } | 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; pocketingIntentionInfo?: { __typename?: "PocketingIntentionInfoGQL"; - ballId: number; pocketId: PocketIdentifier; - pathMetadataIndex: number; } | null; }>; }; @@ -14468,11 +14453,12 @@ export type ReactToVideoMutationOptions = Apollo.BaseMutationOptions< ReactToVideoMutationVariables >; export const GetShotLabVideosDocument = gql` - query GetShotLabVideos($limit: Int! = 25) { + query GetShotLabVideos($userId: Int!, $limit: Int! = 25) { getFeedVideos( limit: $limit + includeCallersVideos: false includePrivate: MINE - feedInput: { allUsers: true } + feedInput: { userId: $userId } ) { videos { id @@ -14508,12 +14494,13 @@ export const GetShotLabVideosDocument = gql` * @example * const { data, loading, error } = useGetShotLabVideosQuery({ * variables: { + * userId: // value for 'userId' * limit: // value for 'limit' * }, * }); */ export function useGetShotLabVideosQuery( - baseOptions?: Apollo.QueryHookOptions< + baseOptions: Apollo.QueryHookOptions< GetShotLabVideosQuery, GetShotLabVideosQueryVariables >, @@ -14576,26 +14563,11 @@ export const GetRecordedStreamShotsDocument = gql` serializedShotPaths { b64EncodedBuffer } - cueObjectFeatures { - cueObjectDistance - cueObjectAngle - cueBallSpeed - shotDirection - spinType - } pocketingIntentionFeatures { make - targetPocketDistance - targetPocketAngle - targetPocketAngleDirection - marginOfErrorInDegrees - intendedPocketType - difficulty } pocketingIntentionInfo { - ballId pocketId - pathMetadataIndex } } } diff --git a/src/operations/recorded_shots.gql b/src/operations/recorded_shots.gql index 2b518cb..c302b3c 100644 --- a/src/operations/recorded_shots.gql +++ b/src/operations/recorded_shots.gql @@ -1,12 +1,12 @@ -# Lightweight two-step picker data for Shot Lab's video-first source: recent -# videos (completed or still uploading — no completion gate, so an in-progress -# recording with no shots yet still appears), then that video's shots. The -# stream fields let the client hint at "actively updating" without gating. -query GetShotLabVideos($limit: Int! = 25) { +# Lightweight two-step picker data for Shot Lab's video-first source: the +# caller's recent videos (completed or still uploading), then that video's +# shots. The stream fields hint at "actively updating" without gating. +query GetShotLabVideos($userId: Int!, $limit: Int! = 25) { getFeedVideos( limit: $limit + includeCallersVideos: false includePrivate: MINE - feedInput: { allUsers: true } + feedInput: { userId: $userId } ) { videos { id @@ -43,26 +43,11 @@ query GetRecordedStreamShots($videoId: Int!, $limit: Int! = 200) { serializedShotPaths { b64EncodedBuffer } - cueObjectFeatures { - cueObjectDistance - cueObjectAngle - cueBallSpeed - shotDirection - spinType - } pocketingIntentionFeatures { make - targetPocketDistance - targetPocketAngle - targetPocketAngleDirection - marginOfErrorInDegrees - intendedPocketType - difficulty } pocketingIntentionInfo { - ballId pocketId - pathMetadataIndex } } }