From 4a493b4e8dcf195add2b9907ae1e0f2c91e52d63 Mon Sep 17 00:00:00 2001 From: Kat Huang Date: Wed, 2 Oct 2024 17:43:06 -0600 Subject: [PATCH] Delete unused get shots operation --- src/index.tsx | 190 --------------------------------------- src/operations/shots.gql | 56 ------------ 2 files changed, 246 deletions(-) diff --git a/src/index.tsx b/src/index.tsx index 65808fe..65d3841 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -2218,64 +2218,6 @@ export type GetVideoMakePercentageIntervalsQuery = { }>; }; -export type GetShotsQueryVariables = Exact<{ - filterInput: FilterInput; - shotsPagination?: InputMaybe; - limit?: InputMaybe; - includeCreatedAt?: Scalars["Boolean"]["input"]; - includeUpdatedAt?: Scalars["Boolean"]["input"]; - includeCueObjectFeatures?: Scalars["Boolean"]["input"]; - includePocketingIntentionFeatures?: Scalars["Boolean"]["input"]; - includeCueObjectDistance?: Scalars["Boolean"]["input"]; - includeCueObjectAngle?: Scalars["Boolean"]["input"]; - includeCueBallSpeed?: Scalars["Boolean"]["input"]; - includeSpinType?: Scalars["Boolean"]["input"]; - includeShotDirection?: Scalars["Boolean"]["input"]; - includeTargetPocketDistance?: Scalars["Boolean"]["input"]; - includeMake?: Scalars["Boolean"]["input"]; - includeIntendedPocketType?: Scalars["Boolean"]["input"]; -}>; - -export type GetShotsQuery = { - __typename?: "Query"; - getShots: Array<{ - __typename?: "ShotGQL"; - id: number; - videoId: number; - startFrame: number; - endFrame: number; - falsePositiveScore?: number | null; - createdAt?: any | null; - updatedAt?: any | null; - user?: { __typename?: "UserGQL"; id: number } | null; - video?: { - __typename?: "VideoGQL"; - stream?: { - __typename?: "UploadStreamGQL"; - resolution: { - __typename?: "VideoResolutionGQL"; - width?: number | null; - height?: number | null; - }; - } | null; - } | null; - cueObjectFeatures?: { - __typename?: "CueObjectFeaturesGQL"; - cueObjectDistance?: number | null; - cueObjectAngle?: number | null; - cueBallSpeed?: number | null; - shotDirection?: ShotDirectionEnum | null; - spinType?: SpinTypeEnum | null; - } | null; - pocketingIntentionFeatures?: { - __typename?: "PocketingIntentionFeaturesGQL"; - targetPocketDistance?: number | null; - make?: boolean | null; - intendedPocketType?: PocketEnum | null; - } | null; - }>; -}; - export type GetSerializedShotPathsQueryVariables = Exact<{ filterInput: FilterInput; }>; @@ -3380,138 +3322,6 @@ export type GetVideoMakePercentageIntervalsQueryResult = Apollo.QueryResult< GetVideoMakePercentageIntervalsQuery, GetVideoMakePercentageIntervalsQueryVariables >; -export const GetShotsDocument = gql` - query GetShots( - $filterInput: FilterInput! - $shotsPagination: GetShotsPagination - $limit: Int - $includeCreatedAt: Boolean! = false - $includeUpdatedAt: Boolean! = false - $includeCueObjectFeatures: Boolean! = false - $includePocketingIntentionFeatures: Boolean! = false - $includeCueObjectDistance: Boolean! = false - $includeCueObjectAngle: Boolean! = false - $includeCueBallSpeed: Boolean! = false - $includeSpinType: Boolean! = false - $includeShotDirection: Boolean! = false - $includeTargetPocketDistance: Boolean! = false - $includeMake: Boolean! = false - $includeIntendedPocketType: Boolean! = false - ) { - getShots( - filterInput: $filterInput - shotsPagination: $shotsPagination - limit: $limit - ) { - id - videoId - startFrame - endFrame - user { - id - } - falsePositiveScore - video { - stream { - resolution { - width - height - } - } - } - createdAt @include(if: $includeCreatedAt) - updatedAt @include(if: $includeUpdatedAt) - cueObjectFeatures @include(if: $includeCueObjectFeatures) { - cueObjectDistance @include(if: $includeCueObjectDistance) - cueObjectAngle @include(if: $includeCueObjectAngle) - cueBallSpeed @include(if: $includeCueBallSpeed) - shotDirection @include(if: $includeShotDirection) - spinType @include(if: $includeSpinType) - } - pocketingIntentionFeatures - @include(if: $includePocketingIntentionFeatures) { - targetPocketDistance @include(if: $includeTargetPocketDistance) - make @include(if: $includeMake) - intendedPocketType @include(if: $includeIntendedPocketType) - } - } - } -`; - -/** - * __useGetShotsQuery__ - * - * To run a query within a React component, call `useGetShotsQuery` and pass it any options that fit your needs. - * When your component renders, `useGetShotsQuery` 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 } = useGetShotsQuery({ - * variables: { - * filterInput: // value for 'filterInput' - * shotsPagination: // value for 'shotsPagination' - * limit: // value for 'limit' - * includeCreatedAt: // value for 'includeCreatedAt' - * includeUpdatedAt: // value for 'includeUpdatedAt' - * includeCueObjectFeatures: // value for 'includeCueObjectFeatures' - * includePocketingIntentionFeatures: // value for 'includePocketingIntentionFeatures' - * includeCueObjectDistance: // value for 'includeCueObjectDistance' - * includeCueObjectAngle: // value for 'includeCueObjectAngle' - * includeCueBallSpeed: // value for 'includeCueBallSpeed' - * includeSpinType: // value for 'includeSpinType' - * includeShotDirection: // value for 'includeShotDirection' - * includeTargetPocketDistance: // value for 'includeTargetPocketDistance' - * includeMake: // value for 'includeMake' - * includeIntendedPocketType: // value for 'includeIntendedPocketType' - * }, - * }); - */ -export function useGetShotsQuery( - baseOptions: Apollo.QueryHookOptions, -) { - const options = { ...defaultOptions, ...baseOptions }; - return Apollo.useQuery( - GetShotsDocument, - options, - ); -} -export function useGetShotsLazyQuery( - baseOptions?: Apollo.LazyQueryHookOptions< - GetShotsQuery, - GetShotsQueryVariables - >, -) { - const options = { ...defaultOptions, ...baseOptions }; - return Apollo.useLazyQuery( - GetShotsDocument, - options, - ); -} -export function useGetShotsSuspenseQuery( - baseOptions?: Apollo.SuspenseQueryHookOptions< - GetShotsQuery, - GetShotsQueryVariables - >, -) { - const options = { ...defaultOptions, ...baseOptions }; - return Apollo.useSuspenseQuery( - GetShotsDocument, - options, - ); -} -export type GetShotsQueryHookResult = ReturnType; -export type GetShotsLazyQueryHookResult = ReturnType< - typeof useGetShotsLazyQuery ->; -export type GetShotsSuspenseQueryHookResult = ReturnType< - typeof useGetShotsSuspenseQuery ->; -export type GetShotsQueryResult = Apollo.QueryResult< - GetShotsQuery, - GetShotsQueryVariables ->; export const GetSerializedShotPathsDocument = gql` query GetSerializedShotPaths($filterInput: FilterInput!) { getShots(filterInput: $filterInput) { diff --git a/src/operations/shots.gql b/src/operations/shots.gql index c035ac7..8dca102 100644 --- a/src/operations/shots.gql +++ b/src/operations/shots.gql @@ -1,59 +1,3 @@ -query GetShots( - $filterInput: FilterInput! - $shotsPagination: GetShotsPagination - $limit: Int - $includeCreatedAt: Boolean! = false - $includeUpdatedAt: Boolean! = false - $includeCueObjectFeatures: Boolean! = false - $includePocketingIntentionFeatures: Boolean! = false - $includeCueObjectDistance: Boolean! = false - $includeCueObjectAngle: Boolean! = false - $includeCueBallSpeed: Boolean! = false - $includeSpinType: Boolean! = false - $includeShotDirection: Boolean! = false - $includeTargetPocketDistance: Boolean! = false - $includeMake: Boolean! = false - $includeIntendedPocketType: Boolean! = false -) { - getShots( - filterInput: $filterInput - shotsPagination: $shotsPagination - limit: $limit - ) { - id - videoId - startFrame - endFrame - user { - id - } - falsePositiveScore - video { - stream { - resolution { - width - height - } - } - } - createdAt @include(if: $includeCreatedAt) - updatedAt @include(if: $includeUpdatedAt) - cueObjectFeatures @include(if: $includeCueObjectFeatures) { - cueObjectDistance @include(if: $includeCueObjectDistance) - cueObjectAngle @include(if: $includeCueObjectAngle) - cueBallSpeed @include(if: $includeCueBallSpeed) - shotDirection @include(if: $includeShotDirection) - spinType @include(if: $includeSpinType) - } - pocketingIntentionFeatures - @include(if: $includePocketingIntentionFeatures) { - targetPocketDistance @include(if: $includeTargetPocketDistance) - make @include(if: $includeMake) - intendedPocketType @include(if: $includeIntendedPocketType) - } - } -} - query GetSerializedShotPaths($filterInput: FilterInput!) { getShots(filterInput: $filterInput) { id